@rxap/ngx-changelog 19.1.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 (78) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/compodoc/changelog.html +34 -0
  3. package/compodoc/components/ChangelogComponent.html +77 -64
  4. package/compodoc/components/ChangelogDialogComponent.html +89 -52
  5. package/compodoc/dependencies.html +9 -9
  6. package/compodoc/injectables/ChangelogService.html +10 -9
  7. package/compodoc/js/search/search_index.js +2 -2
  8. package/compodoc/properties.html +1 -1
  9. package/docs/documentation.json +634 -713
  10. package/docs/html/assets/search.js +1 -1
  11. package/docs/html/classes/ChangelogComponent.html +2 -8
  12. package/docs/html/classes/ChangelogControllerGetLatestRemoteMethod.html +14 -14
  13. package/docs/html/classes/ChangelogControllerGetVersionRemoteMethod.html +14 -14
  14. package/docs/html/classes/ChangelogControllerListRemoteMethod.html +14 -14
  15. package/docs/html/classes/ChangelogDialogComponent.html +2 -6
  16. package/docs/html/classes/ChangelogService.html +2 -2
  17. package/docs/html/functions/ProvideChangelog.html +1 -1
  18. package/docs/html/index.html +2 -2
  19. package/docs/html/interfaces/ChangelogControllerGetLatestParameter.html +2 -2
  20. package/docs/html/interfaces/ChangelogControllerGetLatestResponse.html +2 -2
  21. package/docs/html/interfaces/ChangelogControllerGetVersionParameter.html +2 -2
  22. package/docs/html/interfaces/ChangelogControllerGetVersionResponse.html +2 -2
  23. package/docs/html/interfaces/ChangelogDto.html +2 -2
  24. package/docs/html/modules.html +1 -1
  25. package/docs/html/types/ChangelogControllerListResponse.html +1 -1
  26. package/docs/html/variables/RXAP_CHANGELOG_DISABLED.html +1 -1
  27. package/docs/html/variables/RXAP_CHANGELOG_LAST_VERSION.html +1 -1
  28. package/docs/markdown/README.md +1 -1
  29. package/docs/markdown/classes/ChangelogComponent.md +12 -36
  30. package/docs/markdown/classes/ChangelogControllerGetLatestRemoteMethod.md +51 -51
  31. package/docs/markdown/classes/ChangelogControllerGetVersionRemoteMethod.md +51 -51
  32. package/docs/markdown/classes/ChangelogControllerListRemoteMethod.md +51 -51
  33. package/docs/markdown/classes/ChangelogDialogComponent.md +11 -33
  34. package/docs/markdown/classes/ChangelogService.md +7 -7
  35. package/docs/markdown/functions/ProvideChangelog.md +2 -2
  36. package/docs/markdown/globals.md +2 -2
  37. package/docs/markdown/interfaces/ChangelogControllerGetLatestParameter.md +3 -3
  38. package/docs/markdown/interfaces/ChangelogControllerGetLatestResponse.md +4 -4
  39. package/docs/markdown/interfaces/ChangelogControllerGetVersionParameter.md +4 -4
  40. package/docs/markdown/interfaces/ChangelogControllerGetVersionResponse.md +4 -4
  41. package/docs/markdown/interfaces/ChangelogDto.md +4 -4
  42. package/docs/markdown/type-aliases/ChangelogControllerListResponse.md +2 -2
  43. package/docs/markdown/variables/RXAP_CHANGELOG_DISABLED.md +2 -2
  44. package/docs/markdown/variables/RXAP_CHANGELOG_LAST_VERSION.md +2 -2
  45. package/docs/wiki/Class.ChangelogComponent.md +11 -35
  46. package/docs/wiki/Class.ChangelogControllerGetLatestRemoteMethod.md +50 -50
  47. package/docs/wiki/Class.ChangelogControllerGetVersionRemoteMethod.md +50 -50
  48. package/docs/wiki/Class.ChangelogControllerListRemoteMethod.md +50 -50
  49. package/docs/wiki/Class.ChangelogDialogComponent.md +10 -32
  50. package/docs/wiki/Class.ChangelogService.md +6 -6
  51. package/docs/wiki/Function.ProvideChangelog.md +1 -1
  52. package/docs/wiki/Interface.ChangelogControllerGetLatestParameter.md +2 -2
  53. package/docs/wiki/Interface.ChangelogControllerGetLatestResponse.md +3 -3
  54. package/docs/wiki/Interface.ChangelogControllerGetVersionParameter.md +3 -3
  55. package/docs/wiki/Interface.ChangelogControllerGetVersionResponse.md +3 -3
  56. package/docs/wiki/Interface.ChangelogDto.md +3 -3
  57. package/docs/wiki/TypeAlias.ChangelogControllerListResponse.md +1 -1
  58. package/docs/wiki/Variable.RXAP_CHANGELOG_DISABLED.md +1 -1
  59. package/docs/wiki/Variable.RXAP_CHANGELOG_LAST_VERSION.md +1 -1
  60. package/docs/wiki/globals.md +1 -1
  61. package/fesm2022/rxap-ngx-changelog.mjs +46 -63
  62. package/fesm2022/rxap-ngx-changelog.mjs.map +1 -1
  63. package/package.json +34 -33
  64. package/types/rxap-ngx-changelog.d.ts +100 -0
  65. package/index.d.ts +0 -13
  66. package/lib/changelog/changelog.component.d.ts +0 -26
  67. package/lib/changelog-dialog/changelog-dialog.component.d.ts +0 -11
  68. package/lib/changelog.service.d.ts +0 -14
  69. package/lib/openapi/components/changelog-dto.d.ts +0 -4
  70. package/lib/openapi/parameters/changelog-controller-get-latest.parameter.d.ts +0 -3
  71. package/lib/openapi/parameters/changelog-controller-get-version.parameter.d.ts +0 -4
  72. package/lib/openapi/remote-methods/changelog-controller-get-latest.remote-method.d.ts +0 -9
  73. package/lib/openapi/remote-methods/changelog-controller-get-version.remote-method.d.ts +0 -9
  74. package/lib/openapi/remote-methods/changelog-controller-list.remote-method.d.ts +0 -8
  75. package/lib/openapi/responses/changelog-controller-get-latest.response.d.ts +0 -4
  76. package/lib/openapi/responses/changelog-controller-get-version.response.d.ts +0 -4
  77. package/lib/openapi/responses/changelog-controller-list.response.d.ts +0 -1
  78. package/lib/provide-changelog.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,39 @@
1
+ ## 21.0.1-dev.1 (2026-11-22)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **angular:** add ng-prism showcases from the leaf library outwards
6
+ - **angular:** add ng-prism styleguide targets and environment showcase
7
+
8
+ ### 🧱 Updated Dependencies
9
+
10
+ - Updated angular-environment to 21.0.1-dev.1
11
+ - Updated angular-directives to 21.0.1-dev.1
12
+ - Updated angular-open-api to 21.0.1-dev.1
13
+ - Updated pattern to 1.1.16-dev.1
14
+
15
+ ### ❤️ Thank You
16
+
17
+ - Claude Opus 5.5
18
+ - Merzough Münker
19
+
20
+ ## 21.0.1-dev.0 (2026-11-20)
21
+
22
+ ### 🩹 Fixes
23
+
24
+ - **upgrade:** TestBed.get->inject (removed in angular) + dedupe rxjs to single version
25
+
26
+ ### 🧱 Updated Dependencies
27
+
28
+ - Updated angular-environment to 21.0.1-dev.0
29
+ - Updated angular-directives to 21.0.1-dev.0
30
+ - Updated angular-open-api to 21.0.1-dev.0
31
+ - Updated pattern to 1.1.16-dev.0
32
+
33
+ ### ❤️ Thank You
34
+
35
+ - Merzough Münker
36
+
1
37
  ## 19.1.0 (2026-11-20)
2
38
 
3
39
  This was a version bump only for angular-changelog to align it with other projects, there were no code changes.
@@ -82,6 +82,40 @@
82
82
  <div class="content getting-started">
83
83
  <div class="content-data">
84
84
 
85
+ <h2>21.0.1-dev.1 (2026-11-22)</h2>
86
+ <h3>🚀 Features</h3>
87
+ <ul>
88
+ <li><strong>angular:</strong> add ng-prism showcases from the leaf library outwards</li>
89
+ <li><strong>angular:</strong> add ng-prism styleguide targets and environment showcase</li>
90
+ </ul>
91
+ <h3>🧱 Updated Dependencies</h3>
92
+ <ul>
93
+ <li>Updated angular-environment to 21.0.1-dev.1</li>
94
+ <li>Updated angular-directives to 21.0.1-dev.1</li>
95
+ <li>Updated angular-open-api to 21.0.1-dev.1</li>
96
+ <li>Updated pattern to 1.1.16-dev.1</li>
97
+ </ul>
98
+ <h3>❤️ Thank You</h3>
99
+ <ul>
100
+ <li>Claude Opus 5.5</li>
101
+ <li>Merzough Münker</li>
102
+ </ul>
103
+ <h2>21.0.1-dev.0 (2026-11-20)</h2>
104
+ <h3>🩹 Fixes</h3>
105
+ <ul>
106
+ <li><strong>upgrade:</strong> TestBed.get-&gt;inject (removed in angular) + dedupe rxjs to single version</li>
107
+ </ul>
108
+ <h3>🧱 Updated Dependencies</h3>
109
+ <ul>
110
+ <li>Updated angular-environment to 21.0.1-dev.0</li>
111
+ <li>Updated angular-directives to 21.0.1-dev.0</li>
112
+ <li>Updated angular-open-api to 21.0.1-dev.0</li>
113
+ <li>Updated pattern to 1.1.16-dev.0</li>
114
+ </ul>
115
+ <h3>❤️ Thank You</h3>
116
+ <ul>
117
+ <li>Merzough Münker</li>
118
+ </ul>
85
119
  <h2>19.1.0 (2026-11-20)</h2>
86
120
  <p>This was a version bump only for angular-changelog to align it with other projects, there were no code changes.</p>
87
121
  <h2>19.1.0-dev.0 (2026-06-19)</h2>
@@ -126,12 +126,6 @@
126
126
 
127
127
 
128
128
 
129
- <p class="comment">
130
- <h3>Implements</h3>
131
- </p>
132
- <p class="comment">
133
- <code>OnInit</code>
134
- </p>
135
129
 
136
130
 
137
131
  <section data-compodoc="block-metadata">
@@ -139,6 +133,10 @@
139
133
  <table class="table table-sm table-hover metadata">
140
134
  <tbody>
141
135
 
136
+ <tr>
137
+ <td class="col-md-3">changeDetection</td>
138
+ <td class="col-md-9"><code>ChangeDetectionStrategy.OnPush</code></td>
139
+ </tr>
142
140
 
143
141
 
144
142
 
@@ -161,8 +159,6 @@
161
159
  <td class="col-md-9">
162
160
  <code>MethodTemplateDirective</code>
163
161
  <code>MarkdownModule</code>
164
- <code>NgForOf</code>
165
- <code>NgIf</code>
166
162
  <code>NgClass</code>
167
163
  </td>
168
164
  </tr>
@@ -255,6 +251,24 @@
255
251
  </table>
256
252
  </section>
257
253
 
254
+ <section data-compodoc="block-constructor">
255
+ <h3 id="constructor">Constructor</h3>
256
+ <table class="table table-sm table-bordered">
257
+ <tbody>
258
+ <tr>
259
+ <td class="col-md-4">
260
+ <code>constructor()</code>
261
+ </td>
262
+ </tr>
263
+ <tr>
264
+ <td class="col-md-4">
265
+ <div class="io-line">Defined in <a href="" data-line="76" class="link-to-prism">src/lib/changelog/changelog.component.ts:76</a></div>
266
+ </td>
267
+ </tr>
268
+
269
+ </tbody>
270
+ </table>
271
+ </section>
258
272
 
259
273
 
260
274
 
@@ -286,7 +300,7 @@
286
300
  </tr>
287
301
  <tr>
288
302
  <td class="col-md-4">
289
- <div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">src/lib/changelog/changelog.component.ts:35</a></div>
303
+ <div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/changelog/changelog.component.ts:30</a></div>
290
304
  </td>
291
305
  </tr>
292
306
 
@@ -313,7 +327,7 @@
313
327
  </tr>
314
328
  <tr>
315
329
  <td class="col-md-4">
316
- <div class="io-line">Defined in <a href="" data-line="70" class="link-to-prism">src/lib/changelog/changelog.component.ts:70</a></div>
330
+ <div class="io-line">Defined in <a href="" data-line="65" class="link-to-prism">src/lib/changelog/changelog.component.ts:65</a></div>
317
331
  </td>
318
332
  </tr>
319
333
 
@@ -340,7 +354,7 @@
340
354
  </tr>
341
355
  <tr>
342
356
  <td class="col-md-4">
343
- <div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/changelog/changelog.component.ts:33</a></div>
357
+ <div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/changelog/changelog.component.ts:28</a></div>
344
358
  </td>
345
359
  </tr>
346
360
 
@@ -390,7 +404,7 @@
390
404
  </tr>
391
405
  <tr>
392
406
  <td class="col-md-4">
393
- <div class="io-line">Defined in <a href="" data-line="45" class="link-to-prism">src/lib/changelog/changelog.component.ts:45</a></div>
407
+ <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/changelog/changelog.component.ts:40</a></div>
394
408
  </td>
395
409
  </tr>
396
410
 
@@ -417,7 +431,7 @@
417
431
  </tr>
418
432
  <tr>
419
433
  <td class="col-md-4">
420
- <div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/changelog/changelog.component.ts:34</a></div>
434
+ <div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/lib/changelog/changelog.component.ts:29</a></div>
421
435
  </td>
422
436
  </tr>
423
437
 
@@ -444,7 +458,7 @@
444
458
  </tr>
445
459
  <tr>
446
460
  <td class="col-md-4">
447
- <div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/lib/changelog/changelog.component.ts:72</a></div>
461
+ <div class="io-line">Defined in <a href="" data-line="67" class="link-to-prism">src/lib/changelog/changelog.component.ts:67</a></div>
448
462
  </td>
449
463
  </tr>
450
464
 
@@ -476,7 +490,7 @@
476
490
  </tr>
477
491
  <tr>
478
492
  <td class="col-md-4">
479
- <div class="io-line">Defined in <a href="" data-line="74" class="link-to-prism">src/lib/changelog/changelog.component.ts:74</a></div>
493
+ <div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/lib/changelog/changelog.component.ts:69</a></div>
480
494
  </td>
481
495
  </tr>
482
496
 
@@ -510,7 +524,7 @@
510
524
  </tr>
511
525
  <tr>
512
526
  <td class="col-md-4">
513
- <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/changelog/changelog.component.ts:36</a></div>
527
+ <div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/changelog/changelog.component.ts:31</a></div>
514
528
  </td>
515
529
  </tr>
516
530
 
@@ -523,16 +537,12 @@
523
537
 
524
538
 
525
539
  <div class="tab-pane fade tab-source-code" id="source">
526
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
527
- NgClass,
528
- NgForOf,
529
- NgIf,
530
- } from &#x27;@angular/common&#x27;;
540
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { NgClass } from &#x27;@angular/common&#x27;;
531
541
  import {
542
+ ChangeDetectionStrategy,
532
543
  Component,
533
544
  computed,
534
545
  inject,
535
- OnInit,
536
546
  signal,
537
547
  } from &#x27;@angular/core&#x27;;
538
548
  import { MethodTemplateDirective } from &#x27;@rxap/directives&#x27;;
@@ -544,16 +554,15 @@ import { ChangelogControllerListRemoteMethod } from &#x27;../openapi/remote-meth
544
554
  @Component({
545
555
  selector: &#x27;rxap-changelog&#x27;,
546
556
  imports: [
547
- MethodTemplateDirective,
548
- MarkdownModule,
549
- NgForOf,
550
- NgIf,
551
- NgClass,
552
- ],
557
+ MethodTemplateDirective,
558
+ MarkdownModule,
559
+ NgClass
560
+ ],
561
+ changeDetection: ChangeDetectionStrategy.OnPush,
553
562
  templateUrl: &#x27;./changelog.component.html&#x27;,
554
563
  styleUrls: [&#x27;./changelog.component.scss&#x27;]
555
564
  })
556
- export class ChangelogComponent implements OnInit {
565
+ export class ChangelogComponent {
557
566
 
558
567
  public readonly availableVersions &#x3D; signal&lt;string[]&gt;([]);
559
568
  public readonly error &#x3D; signal&lt;string | null&gt;(null);
@@ -605,7 +614,7 @@ export class ChangelogComponent implements OnInit {
605
614
 
606
615
  private readonly getAvailableVersionsMethod &#x3D; inject(ChangelogControllerListRemoteMethod);
607
616
 
608
- ngOnInit() {
617
+ constructor() {
609
618
  this.loadAvailableVersions();
610
619
  }
611
620
 
@@ -624,54 +633,58 @@ export class ChangelogComponent implements OnInit {
624
633
  </div>
625
634
 
626
635
  <div class="tab-pane fade " id="templateData">
627
- <pre class="line-numbers"><code class="language-html">&lt;ng-container *ngIf&#x3D;&quot;error(); else noError&quot;&gt;
636
+ <pre class="line-numbers"><code class="language-html">@if (error()) {
628
637
  &lt;h2 class&#x3D;&quot;text-2xl pb-2&quot; i18n&gt;Something has gone wrong!&lt;/h2&gt;
629
638
  &lt;p i18n&gt;Unable to load the application changelog&lt;/p&gt;
630
- &lt;/ng-container&gt;
631
- &lt;ng-template #noError&gt;
632
- &lt;div class&#x3D;&quot;flex flex-col gap-3&quot;&gt;
633
- &lt;ng-container *ngIf&#x3D;&quot;availableVersions().length&quot;&gt;
634
- &lt;div class&#x3D;&quot;controls flex justify-center space-x-2 my-4&quot;&gt;
635
- &lt;button
636
- (click)&#x3D;&quot;activeIndex.set(activeIndex() - 1)&quot;
637
- [disabled]&#x3D;&quot;activeIndex() &lt;&#x3D; 0&quot;
639
+ } @else {
640
+ &lt;div class&#x3D;&quot;flex flex-col gap-3&quot;&gt;
641
+ @if (availableVersions().length) {
642
+ &lt;div class&#x3D;&quot;controls flex justify-center space-x-2 my-4&quot;&gt;
643
+ &lt;button
644
+ (click)&#x3D;&quot;activeIndex.set(activeIndex() - 1)&quot;
645
+ [disabled]&#x3D;&quot;activeIndex() &lt;&#x3D; 0&quot;
638
646
  [ngClass]&#x3D;&quot;{
639
647
  &#x27;bg-gray-100 dark:bg-gray-900&#x27;: activeIndex() &lt;&#x3D; 0,
640
648
  &#x27;hover:bg-gray-300&#x27;: activeIndex() &gt; 0,
641
649
  }&quot;
642
- class&#x3D;&quot;px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 transition-colors duration-150 rounded&quot;&gt;Previous
643
- &lt;/button&gt;
644
- &lt;button (click)&#x3D;&quot;activeIndex.set(item.index)&quot;
645
- *ngFor&#x3D;&quot;let item of displayedButtons()&quot;
650
+ class&#x3D;&quot;px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 transition-colors duration-150 rounded&quot;&gt;Previous
651
+ &lt;/button&gt;
652
+ @for (item of displayedButtons(); track item) {
653
+ &lt;button (click)&#x3D;&quot;activeIndex.set(item.index)&quot;
646
654
  [ngClass]&#x3D;&quot;{
647
655
  &#x27;bg-primary-500&#x27;: item.index &#x3D;&#x3D;&#x3D; activeIndex(),
648
656
  &#x27;bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150&#x27;: item.index !&#x3D;&#x3D; activeIndex()
649
657
  }&quot;
650
- class&#x3D;&quot;px-4 py-2 rounded&quot;&gt;
651
- {{ item.version }}
652
- &lt;/button&gt;
653
- &lt;button
654
- (click)&#x3D;&quot;activeIndex.set(activeIndex() + 1)&quot;
655
- [disabled]&#x3D;&quot;activeIndex() &gt;&#x3D; availableVersions().length - 1&quot;
658
+ class&#x3D;&quot;px-4 py-2 rounded&quot;&gt;
659
+ {{ item.version }}
660
+ &lt;/button&gt;
661
+ }
662
+ &lt;button
663
+ (click)&#x3D;&quot;activeIndex.set(activeIndex() + 1)&quot;
664
+ [disabled]&#x3D;&quot;activeIndex() &gt;&#x3D; availableVersions().length - 1&quot;
656
665
  [ngClass]&#x3D;&quot;{
657
666
  &#x27;bg-gray-100 dark:bg-gray-900&#x27;: activeIndex() &gt;&#x3D; availableVersions().length - 1,
658
667
  &#x27;hover:bg-gray-300&#x27;: activeIndex() &lt; availableVersions().length - 1,
659
668
  }&quot;
660
- class&#x3D;&quot;px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded&quot;&gt;Next
661
- &lt;/button&gt;
669
+ class&#x3D;&quot;px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded&quot;&gt;Next
670
+ &lt;/button&gt;
671
+ &lt;/div&gt;
672
+ &lt;hr&gt;
673
+ }
674
+ &lt;div class&#x3D;&quot;flex flex-col gap-6 p-8 overflow-auto&quot; style&#x3D;&quot;max-height: 60vh&quot;&gt;
675
+ &lt;ng-container *rxapMethod&#x3D;&quot;let changelog call getChangelogMethod; parameters: getChangelogMethodParameters()&quot;&gt;
676
+ @for (general of changelog.general; track general) {
677
+ &lt;markdown [data]&#x3D;&quot;general&quot; class&#x3D;&quot;prose dark:prose-invert&quot;&gt;
678
+ &lt;/markdown&gt;
679
+ }
680
+ @for (application of changelog.application; track application) {
681
+ &lt;markdown [data]&#x3D;&quot;application&quot; class&#x3D;&quot;prose dark:prose-invert&quot;&gt;
682
+ &lt;/markdown&gt;
683
+ }
684
+ &lt;/ng-container&gt;
685
+ &lt;/div&gt;
662
686
  &lt;/div&gt;
663
- &lt;hr&gt;
664
- &lt;/ng-container&gt;
665
- &lt;div class&#x3D;&quot;flex flex-col gap-6 p-8 overflow-auto&quot; style&#x3D;&quot;max-height: 60vh&quot;&gt;
666
- &lt;ng-container *rxapMethod&#x3D;&quot;let changelog call getChangelogMethod; parameters: getChangelogMethodParameters()&quot;&gt;
667
- &lt;markdown *ngFor&#x3D;&quot;let general of changelog.general&quot; [data]&#x3D;&quot;general&quot; class&#x3D;&quot;prose dark:prose-invert&quot;&gt;
668
- &lt;/markdown&gt;
669
- &lt;markdown *ngFor&#x3D;&quot;let application of changelog.application&quot; [data]&#x3D;&quot;application&quot; class&#x3D;&quot;prose dark:prose-invert&quot;&gt;
670
- &lt;/markdown&gt;
671
- &lt;/ng-container&gt;
672
- &lt;/div&gt;
673
- &lt;/div&gt;
674
- &lt;/ng-template&gt;
687
+ }
675
688
  </code></pre>
676
689
  </div>
677
690
 
@@ -707,7 +720,7 @@ export class ChangelogComponent implements OnInit {
707
720
  <script src="../js/libs/htmlparser.js"></script>
708
721
  <script src="../js/libs/deep-iterator.js"></script>
709
722
  <script>
710
- var COMPONENT_TEMPLATE = '<div><ng-container *ngIf="error(); else noError"> <h2 class="text-2xl pb-2" i18n>Something has gone wrong!</h2> <p i18n>Unable to load the application changelog</p></ng-container><ng-template #noError><div class="flex flex-col gap-3"> <ng-container *ngIf="availableVersions().length"> <div class="controls flex justify-center space-x-2 my-4"> <button (click)="activeIndex.set(activeIndex() - 1)" [disabled]="activeIndex() <= 0" [ngClass]="{ \'bg-gray-100 dark:bg-gray-900\': activeIndex() <= 0, \'hover:bg-gray-300\': activeIndex() > 0, }" class="px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 transition-colors duration-150 rounded">Previous </button> <button (click)="activeIndex.set(item.index)" *ngFor="let item of displayedButtons()" [ngClass]="{ \'bg-primary-500\': item.index === activeIndex(), \'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150\': item.index !== activeIndex() }" class="px-4 py-2 rounded"> {{ item.version }} </button> <button (click)="activeIndex.set(activeIndex() + 1)" [disabled]="activeIndex() >= availableVersions().length - 1" [ngClass]="{ \'bg-gray-100 dark:bg-gray-900\': activeIndex() >= availableVersions().length - 1, \'hover:bg-gray-300\': activeIndex() < availableVersions().length - 1, }" class="px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded">Next </button> </div> <hr> </ng-container> <div class="flex flex-col gap-6 p-8 overflow-auto" style="max-height: 60vh"> <ng-container *rxapMethod="let changelog call getChangelogMethod; parameters: getChangelogMethodParameters()"> <markdown *ngFor="let general of changelog.general" [data]="general" class="prose dark:prose-invert"> </markdown> <markdown *ngFor="let application of changelog.application" [data]="application" class="prose dark:prose-invert"> </markdown> </ng-container> </div></div></ng-template></div>'
723
+ var COMPONENT_TEMPLATE = '<div>@if (error()) { <h2 class="text-2xl pb-2" i18n>Something has gone wrong!</h2> <p i18n>Unable to load the application changelog</p>} @else { <div class="flex flex-col gap-3"> @if (availableVersions().length) { <div class="controls flex justify-center space-x-2 my-4"> <button (click)="activeIndex.set(activeIndex() - 1)" [disabled]="activeIndex() <= 0" [ngClass]="{ \'bg-gray-100 dark:bg-gray-900\': activeIndex() <= 0, \'hover:bg-gray-300\': activeIndex() > 0, }" class="px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 transition-colors duration-150 rounded">Previous </button> @for (item of displayedButtons(); track item) { <button (click)="activeIndex.set(item.index)" [ngClass]="{ \'bg-primary-500\': item.index === activeIndex(), \'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150\': item.index !== activeIndex() }" class="px-4 py-2 rounded"> {{ item.version }} </button> } <button (click)="activeIndex.set(activeIndex() + 1)" [disabled]="activeIndex() >= availableVersions().length - 1" [ngClass]="{ \'bg-gray-100 dark:bg-gray-900\': activeIndex() >= availableVersions().length - 1, \'hover:bg-gray-300\': activeIndex() < availableVersions().length - 1, }" class="px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded">Next </button> </div> <hr> } <div class="flex flex-col gap-6 p-8 overflow-auto" style="max-height: 60vh"> <ng-container *rxapMethod="let changelog call getChangelogMethod; parameters: getChangelogMethodParameters()"> @for (general of changelog.general; track general) { <markdown [data]="general" class="prose dark:prose-invert"> </markdown> } @for (application of changelog.application; track application) { <markdown [data]="application" class="prose dark:prose-invert"> </markdown> } </ng-container> </div> </div> }</div>'
711
724
  var COMPONENTS = [{'name': 'ChangelogComponent', 'selector': 'rxap-changelog'},{'name': 'ChangelogDialogComponent', 'selector': 'rxap-changelog-dialog'}];
712
725
  var DIRECTIVES = [];
713
726
  var ACTUAL_COMPONENT = {'name': 'ChangelogComponent'};
@@ -126,12 +126,6 @@
126
126
 
127
127
 
128
128
 
129
- <p class="comment">
130
- <h3>Implements</h3>
131
- </p>
132
- <p class="comment">
133
- <code>AfterViewInit</code>
134
- </p>
135
129
 
136
130
 
137
131
  <section data-compodoc="block-metadata">
@@ -139,6 +133,10 @@
139
133
  <table class="table table-sm table-hover metadata">
140
134
  <tbody>
141
135
 
136
+ <tr>
137
+ <td class="col-md-3">changeDetection</td>
138
+ <td class="col-md-9"><code>ChangeDetectionStrategy.OnPush</code></td>
139
+ </tr>
142
140
 
143
141
 
144
142
 
@@ -159,7 +157,6 @@
159
157
  <tr>
160
158
  <td class="col-md-3">imports</td>
161
159
  <td class="col-md-9">
162
- <code>CommonModule</code>
163
160
  <code><a href="../components/ChangelogComponent.html" target="_self" >ChangelogComponent</a></code>
164
161
  <code>FormsModule</code>
165
162
  </td>
@@ -201,12 +198,18 @@
201
198
  <td class="col-md-4">
202
199
  <ul class="index-list">
203
200
  <li>
204
- <span class="modifier"></span>
205
201
  <span class="modifier">Public</span>
202
+ <span class="modifier">Readonly</span>
203
+ <a href="#closeDialog" >closeDialog</a>
204
+ </li>
205
+ <li>
206
+ <span class="modifier">Public</span>
207
+ <span class="modifier">Readonly</span>
206
208
  <a href="#dialog" >dialog</a>
207
209
  </li>
208
210
  <li>
209
211
  <span class="modifier">Public</span>
212
+ <span class="modifier">Readonly</span>
210
213
  <a href="#remember" >remember</a>
211
214
  </li>
212
215
  </ul>
@@ -250,6 +253,24 @@
250
253
  </table>
251
254
  </section>
252
255
 
256
+ <section data-compodoc="block-constructor">
257
+ <h3 id="constructor">Constructor</h3>
258
+ <table class="table table-sm table-bordered">
259
+ <tbody>
260
+ <tr>
261
+ <td class="col-md-4">
262
+ <code>constructor()</code>
263
+ </td>
264
+ </tr>
265
+ <tr>
266
+ <td class="col-md-4">
267
+ <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:36</a></div>
268
+ </td>
269
+ </tr>
270
+
271
+ </tbody>
272
+ </table>
273
+ </section>
253
274
 
254
275
 
255
276
  <section data-compodoc="block-outputs">
@@ -261,16 +282,10 @@
261
282
  <a name="closeDialog"></a>
262
283
  <b>closeDialog</b>
263
284
  </td>
264
- </tr>
265
- <tr>
266
- <td class="col-md-4">
267
- <i>Type : </i> <code>EventEmitter</code>
268
-
269
- </td>
270
285
  </tr>
271
286
  <tr>
272
287
  <td class="col-md-2" colspan="2">
273
- <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:25</a></div>
288
+ <div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:34</a></div>
274
289
  </td>
275
290
  </tr>
276
291
  </tbody>
@@ -303,8 +318,8 @@
303
318
 
304
319
  <tr>
305
320
  <td class="col-md-4">
306
- <div class="io-line">Defined in <a href="" data-line="33"
307
- class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:33</a></div>
321
+ <div class="io-line">Defined in <a href="" data-line="42"
322
+ class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:42</a></div>
308
323
  </td>
309
324
  </tr>
310
325
 
@@ -336,7 +351,7 @@
336
351
  </td>
337
352
 
338
353
  <td>
339
- <code>this.remember</code>
354
+ <code>this.remember()</code>
340
355
  </td>
341
356
 
342
357
  </tr>
@@ -360,14 +375,36 @@
360
375
  <h3 id="inputs">
361
376
  Properties
362
377
  </h3>
378
+ <table class="table table-sm table-bordered">
379
+ <tbody>
380
+ <tr>
381
+ <td class="col-md-4">
382
+ <a name="closeDialog"></a>
383
+ <span class="name">
384
+ <span class="modifier">Public</span>
385
+ <span class="modifier">Readonly</span>
386
+ <span ><b>closeDialog</b></span>
387
+ <a href="#closeDialog"><span class="icon ion-ios-link"></span></a>
388
+ </span>
389
+ </td>
390
+ </tr>
391
+ <tr>
392
+ <td class="col-md-4">
393
+ <div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:34</a></div>
394
+ </td>
395
+ </tr>
396
+
397
+
398
+ </tbody>
399
+ </table>
363
400
  <table class="table table-sm table-bordered">
364
401
  <tbody>
365
402
  <tr>
366
403
  <td class="col-md-4">
367
404
  <a name="dialog"></a>
368
405
  <span class="name">
369
- <span class="modifier"></span>
370
406
  <span class="modifier">Public</span>
407
+ <span class="modifier">Readonly</span>
371
408
  <span ><b>dialog</b></span>
372
409
  <a href="#dialog"><span class="icon ion-ios-link"></span></a>
373
410
  </span>
@@ -375,22 +412,12 @@
375
412
  </tr>
376
413
  <tr>
377
414
  <td class="col-md-4">
378
- <i>Type : </i> <code>ElementRef&lt;HTMLDialogElement&gt;</code>
379
-
380
- </td>
381
- </tr>
382
- <tr>
383
- <td class="col-md-4">
384
- <b>Decorators : </b>
385
- <br />
386
- <code>
387
- @ViewChild(&#x27;dialog&#x27;, {static: true})<br />
388
- </code>
415
+ <i>Default value : </i><code>viewChild.required&lt;ElementRef&lt;HTMLDialogElement&gt;&gt;(&#x27;dialog&#x27;)</code>
389
416
  </td>
390
417
  </tr>
391
418
  <tr>
392
419
  <td class="col-md-4">
393
- <div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:22</a></div>
420
+ <div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:32</a></div>
394
421
  </td>
395
422
  </tr>
396
423
 
@@ -404,6 +431,7 @@
404
431
  <a name="remember"></a>
405
432
  <span class="name">
406
433
  <span class="modifier">Public</span>
434
+ <span class="modifier">Readonly</span>
407
435
  <span ><b>remember</b></span>
408
436
  <a href="#remember"><span class="icon ion-ios-link"></span></a>
409
437
  </span>
@@ -411,12 +439,12 @@
411
439
  </tr>
412
440
  <tr>
413
441
  <td class="col-md-4">
414
- <i>Default value : </i><code>true</code>
442
+ <i>Default value : </i><code>signal(true)</code>
415
443
  </td>
416
444
  </tr>
417
445
  <tr>
418
446
  <td class="col-md-4">
419
- <div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:27</a></div>
447
+ <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:36</a></div>
420
448
  </td>
421
449
  </tr>
422
450
 
@@ -429,40 +457,49 @@
429
457
 
430
458
 
431
459
  <div class="tab-pane fade tab-source-code" id="source">
432
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { CommonModule } from &#x27;@angular/common&#x27;;
433
- import {
434
- AfterViewInit,
460
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
461
+ afterNextRender,
462
+ ChangeDetectionStrategy,
435
463
  Component,
436
464
  ElementRef,
437
- EventEmitter,
438
- Output,
439
- ViewChild,
465
+ output,
466
+ signal,
467
+ viewChild,
440
468
  } from &#x27;@angular/core&#x27;;
441
469
  import { FormsModule } from &#x27;@angular/forms&#x27;;
442
470
  import { ChangelogComponent } from &#x27;../changelog/changelog.component&#x27;;
443
-
471
+ import { Showcase } from &#x27;@ng-prism/core&#x27;;
472
+
473
+ @Showcase({
474
+ title: &#x27;Changelog Dialog&#x27;,
475
+ category: &#x27;Changelog&#x27;,
476
+ description: &#x27;Modal dialog that shows the changelog of the latest release.&#x27;,
477
+ status: &#x27;stable&#x27;,
478
+ variants: [
479
+ { name: &#x27;Default&#x27; },
480
+ ],
481
+ })
444
482
  @Component({
445
483
  selector: &#x27;rxap-changelog-dialog&#x27;,
446
- imports: [CommonModule, ChangelogComponent, FormsModule],
484
+ imports: [ChangelogComponent, FormsModule],
447
485
  templateUrl: &#x27;./changelog-dialog.component.html&#x27;,
448
- styleUrls: [&#x27;./changelog-dialog.component.scss&#x27;]
486
+ styleUrls: [&#x27;./changelog-dialog.component.scss&#x27;],
487
+ changeDetection: ChangeDetectionStrategy.OnPush,
449
488
  })
450
- export class ChangelogDialogComponent implements AfterViewInit {
489
+ export class ChangelogDialogComponent {
451
490
 
452
- @ViewChild(&#x27;dialog&#x27;, { static: true })
453
- public dialog!: ElementRef&lt;HTMLDialogElement&gt;;
491
+ public readonly dialog &#x3D; viewChild.required&lt;ElementRef&lt;HTMLDialogElement&gt;&gt;(&#x27;dialog&#x27;);
454
492
 
455
- @Output()
456
- public closeDialog &#x3D; new EventEmitter&lt;boolean&gt;();
493
+ public readonly closeDialog &#x3D; output&lt;boolean&gt;();
457
494
 
458
- public remember &#x3D; true;
495
+ public readonly remember &#x3D; signal(true);
459
496
 
460
- ngAfterViewInit() {
461
- this.dialog.nativeElement.showModal();
497
+ constructor() {
498
+ afterNextRender(() &#x3D;&gt; this.dialog().nativeElement.showModal());
462
499
  }
463
500
 
464
- close(remember: boolean &#x3D; this.remember) {
465
- this.dialog.nativeElement.close();
501
+ close(remember: boolean &#x3D; this.remember()) {
502
+ this.dialog().nativeElement.close();
466
503
  this.closeDialog.emit(remember);
467
504
  }
468
505