@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.
- package/CHANGELOG.md +36 -0
- package/compodoc/changelog.html +34 -0
- package/compodoc/components/ChangelogComponent.html +77 -64
- package/compodoc/components/ChangelogDialogComponent.html +89 -52
- package/compodoc/dependencies.html +9 -9
- package/compodoc/injectables/ChangelogService.html +10 -9
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +634 -713
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/ChangelogComponent.html +2 -8
- package/docs/html/classes/ChangelogControllerGetLatestRemoteMethod.html +14 -14
- package/docs/html/classes/ChangelogControllerGetVersionRemoteMethod.html +14 -14
- package/docs/html/classes/ChangelogControllerListRemoteMethod.html +14 -14
- package/docs/html/classes/ChangelogDialogComponent.html +2 -6
- package/docs/html/classes/ChangelogService.html +2 -2
- package/docs/html/functions/ProvideChangelog.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ChangelogControllerGetLatestParameter.html +2 -2
- package/docs/html/interfaces/ChangelogControllerGetLatestResponse.html +2 -2
- package/docs/html/interfaces/ChangelogControllerGetVersionParameter.html +2 -2
- package/docs/html/interfaces/ChangelogControllerGetVersionResponse.html +2 -2
- package/docs/html/interfaces/ChangelogDto.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/ChangelogControllerListResponse.html +1 -1
- package/docs/html/variables/RXAP_CHANGELOG_DISABLED.html +1 -1
- package/docs/html/variables/RXAP_CHANGELOG_LAST_VERSION.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ChangelogComponent.md +12 -36
- package/docs/markdown/classes/ChangelogControllerGetLatestRemoteMethod.md +51 -51
- package/docs/markdown/classes/ChangelogControllerGetVersionRemoteMethod.md +51 -51
- package/docs/markdown/classes/ChangelogControllerListRemoteMethod.md +51 -51
- package/docs/markdown/classes/ChangelogDialogComponent.md +11 -33
- package/docs/markdown/classes/ChangelogService.md +7 -7
- package/docs/markdown/functions/ProvideChangelog.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ChangelogControllerGetLatestParameter.md +3 -3
- package/docs/markdown/interfaces/ChangelogControllerGetLatestResponse.md +4 -4
- package/docs/markdown/interfaces/ChangelogControllerGetVersionParameter.md +4 -4
- package/docs/markdown/interfaces/ChangelogControllerGetVersionResponse.md +4 -4
- package/docs/markdown/interfaces/ChangelogDto.md +4 -4
- package/docs/markdown/type-aliases/ChangelogControllerListResponse.md +2 -2
- package/docs/markdown/variables/RXAP_CHANGELOG_DISABLED.md +2 -2
- package/docs/markdown/variables/RXAP_CHANGELOG_LAST_VERSION.md +2 -2
- package/docs/wiki/Class.ChangelogComponent.md +11 -35
- package/docs/wiki/Class.ChangelogControllerGetLatestRemoteMethod.md +50 -50
- package/docs/wiki/Class.ChangelogControllerGetVersionRemoteMethod.md +50 -50
- package/docs/wiki/Class.ChangelogControllerListRemoteMethod.md +50 -50
- package/docs/wiki/Class.ChangelogDialogComponent.md +10 -32
- package/docs/wiki/Class.ChangelogService.md +6 -6
- package/docs/wiki/Function.ProvideChangelog.md +1 -1
- package/docs/wiki/Interface.ChangelogControllerGetLatestParameter.md +2 -2
- package/docs/wiki/Interface.ChangelogControllerGetLatestResponse.md +3 -3
- package/docs/wiki/Interface.ChangelogControllerGetVersionParameter.md +3 -3
- package/docs/wiki/Interface.ChangelogControllerGetVersionResponse.md +3 -3
- package/docs/wiki/Interface.ChangelogDto.md +3 -3
- package/docs/wiki/TypeAlias.ChangelogControllerListResponse.md +1 -1
- package/docs/wiki/Variable.RXAP_CHANGELOG_DISABLED.md +1 -1
- package/docs/wiki/Variable.RXAP_CHANGELOG_LAST_VERSION.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-changelog.mjs +46 -63
- package/fesm2022/rxap-ngx-changelog.mjs.map +1 -1
- package/package.json +34 -33
- package/types/rxap-ngx-changelog.d.ts +100 -0
- package/index.d.ts +0 -13
- package/lib/changelog/changelog.component.d.ts +0 -26
- package/lib/changelog-dialog/changelog-dialog.component.d.ts +0 -11
- package/lib/changelog.service.d.ts +0 -14
- package/lib/openapi/components/changelog-dto.d.ts +0 -4
- package/lib/openapi/parameters/changelog-controller-get-latest.parameter.d.ts +0 -3
- package/lib/openapi/parameters/changelog-controller-get-version.parameter.d.ts +0 -4
- package/lib/openapi/remote-methods/changelog-controller-get-latest.remote-method.d.ts +0 -9
- package/lib/openapi/remote-methods/changelog-controller-get-version.remote-method.d.ts +0 -9
- package/lib/openapi/remote-methods/changelog-controller-list.remote-method.d.ts +0 -8
- package/lib/openapi/responses/changelog-controller-get-latest.response.d.ts +0 -4
- package/lib/openapi/responses/changelog-controller-get-version.response.d.ts +0 -4
- package/lib/openapi/responses/changelog-controller-list.response.d.ts +0 -1
- 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.
|
package/compodoc/changelog.html
CHANGED
|
@@ -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->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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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 '@angular/common';
|
|
540
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { NgClass } from '@angular/common';
|
|
531
541
|
import {
|
|
542
|
+
ChangeDetectionStrategy,
|
|
532
543
|
Component,
|
|
533
544
|
computed,
|
|
534
545
|
inject,
|
|
535
|
-
OnInit,
|
|
536
546
|
signal,
|
|
537
547
|
} from '@angular/core';
|
|
538
548
|
import { MethodTemplateDirective } from '@rxap/directives';
|
|
@@ -544,16 +554,15 @@ import { ChangelogControllerListRemoteMethod } from '../openapi/remote-meth
|
|
|
544
554
|
@Component({
|
|
545
555
|
selector: 'rxap-changelog',
|
|
546
556
|
imports: [
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
],
|
|
557
|
+
MethodTemplateDirective,
|
|
558
|
+
MarkdownModule,
|
|
559
|
+
NgClass
|
|
560
|
+
],
|
|
561
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
553
562
|
templateUrl: './changelog.component.html',
|
|
554
563
|
styleUrls: ['./changelog.component.scss']
|
|
555
564
|
})
|
|
556
|
-
export class ChangelogComponent
|
|
565
|
+
export class ChangelogComponent {
|
|
557
566
|
|
|
558
567
|
public readonly availableVersions = signal<string[]>([]);
|
|
559
568
|
public readonly error = signal<string | null>(null);
|
|
@@ -605,7 +614,7 @@ export class ChangelogComponent implements OnInit {
|
|
|
605
614
|
|
|
606
615
|
private readonly getAvailableVersionsMethod = inject(ChangelogControllerListRemoteMethod);
|
|
607
616
|
|
|
608
|
-
|
|
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"
|
|
636
|
+
<pre class="line-numbers"><code class="language-html">@if (error()) {
|
|
628
637
|
<h2 class="text-2xl pb-2" i18n>Something has gone wrong!</h2>
|
|
629
638
|
<p i18n>Unable to load the application changelog</p>
|
|
630
|
-
|
|
631
|
-
<
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
[disabled]="activeIndex() <= 0"
|
|
639
|
+
} @else {
|
|
640
|
+
<div class="flex flex-col gap-3">
|
|
641
|
+
@if (availableVersions().length) {
|
|
642
|
+
<div class="controls flex justify-center space-x-2 my-4">
|
|
643
|
+
<button
|
|
644
|
+
(click)="activeIndex.set(activeIndex() - 1)"
|
|
645
|
+
[disabled]="activeIndex() <= 0"
|
|
638
646
|
[ngClass]="{
|
|
639
647
|
'bg-gray-100 dark:bg-gray-900': activeIndex() <= 0,
|
|
640
648
|
'hover:bg-gray-300': activeIndex() > 0,
|
|
641
649
|
}"
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
650
|
+
class="px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 transition-colors duration-150 rounded">Previous
|
|
651
|
+
</button>
|
|
652
|
+
@for (item of displayedButtons(); track item) {
|
|
653
|
+
<button (click)="activeIndex.set(item.index)"
|
|
646
654
|
[ngClass]="{
|
|
647
655
|
'bg-primary-500': item.index === activeIndex(),
|
|
648
656
|
'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item.index !== activeIndex()
|
|
649
657
|
}"
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
658
|
+
class="px-4 py-2 rounded">
|
|
659
|
+
{{ item.version }}
|
|
660
|
+
</button>
|
|
661
|
+
}
|
|
662
|
+
<button
|
|
663
|
+
(click)="activeIndex.set(activeIndex() + 1)"
|
|
664
|
+
[disabled]="activeIndex() >= availableVersions().length - 1"
|
|
656
665
|
[ngClass]="{
|
|
657
666
|
'bg-gray-100 dark:bg-gray-900': activeIndex() >= availableVersions().length - 1,
|
|
658
667
|
'hover:bg-gray-300': activeIndex() < availableVersions().length - 1,
|
|
659
668
|
}"
|
|
660
|
-
|
|
661
|
-
|
|
669
|
+
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
|
|
670
|
+
</button>
|
|
671
|
+
</div>
|
|
672
|
+
<hr>
|
|
673
|
+
}
|
|
674
|
+
<div class="flex flex-col gap-6 p-8 overflow-auto" style="max-height: 60vh">
|
|
675
|
+
<ng-container *rxapMethod="let changelog call getChangelogMethod; parameters: getChangelogMethodParameters()">
|
|
676
|
+
@for (general of changelog.general; track general) {
|
|
677
|
+
<markdown [data]="general" class="prose dark:prose-invert">
|
|
678
|
+
</markdown>
|
|
679
|
+
}
|
|
680
|
+
@for (application of changelog.application; track application) {
|
|
681
|
+
<markdown [data]="application" class="prose dark:prose-invert">
|
|
682
|
+
</markdown>
|
|
683
|
+
}
|
|
684
|
+
</ng-container>
|
|
685
|
+
</div>
|
|
662
686
|
</div>
|
|
663
|
-
|
|
664
|
-
</ng-container>
|
|
665
|
-
<div class="flex flex-col gap-6 p-8 overflow-auto" style="max-height: 60vh">
|
|
666
|
-
<ng-container *rxapMethod="let changelog call getChangelogMethod; parameters: getChangelogMethodParameters()">
|
|
667
|
-
<markdown *ngFor="let general of changelog.general" [data]="general" class="prose dark:prose-invert">
|
|
668
|
-
</markdown>
|
|
669
|
-
<markdown *ngFor="let application of changelog.application" [data]="application" class="prose dark:prose-invert">
|
|
670
|
-
</markdown>
|
|
671
|
-
</ng-container>
|
|
672
|
-
</div>
|
|
673
|
-
</div>
|
|
674
|
-
</ng-template>
|
|
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
|
|
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="
|
|
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="
|
|
307
|
-
class="link-to-prism">src/lib/changelog-dialog/changelog-dialog.component.ts:
|
|
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>
|
|
379
|
-
|
|
380
|
-
</td>
|
|
381
|
-
</tr>
|
|
382
|
-
<tr>
|
|
383
|
-
<td class="col-md-4">
|
|
384
|
-
<b>Decorators : </b>
|
|
385
|
-
<br />
|
|
386
|
-
<code>
|
|
387
|
-
@ViewChild('dialog', {static: true})<br />
|
|
388
|
-
</code>
|
|
415
|
+
<i>Default value : </i><code>viewChild.required<ElementRef<HTMLDialogElement>>('dialog')</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="
|
|
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="
|
|
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 {
|
|
433
|
-
|
|
434
|
-
|
|
460
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
461
|
+
afterNextRender,
|
|
462
|
+
ChangeDetectionStrategy,
|
|
435
463
|
Component,
|
|
436
464
|
ElementRef,
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
465
|
+
output,
|
|
466
|
+
signal,
|
|
467
|
+
viewChild,
|
|
440
468
|
} from '@angular/core';
|
|
441
469
|
import { FormsModule } from '@angular/forms';
|
|
442
470
|
import { ChangelogComponent } from '../changelog/changelog.component';
|
|
443
|
-
|
|
471
|
+
import { Showcase } from '@ng-prism/core';
|
|
472
|
+
|
|
473
|
+
@Showcase({
|
|
474
|
+
title: 'Changelog Dialog',
|
|
475
|
+
category: 'Changelog',
|
|
476
|
+
description: 'Modal dialog that shows the changelog of the latest release.',
|
|
477
|
+
status: 'stable',
|
|
478
|
+
variants: [
|
|
479
|
+
{ name: 'Default' },
|
|
480
|
+
],
|
|
481
|
+
})
|
|
444
482
|
@Component({
|
|
445
483
|
selector: 'rxap-changelog-dialog',
|
|
446
|
-
imports: [
|
|
484
|
+
imports: [ChangelogComponent, FormsModule],
|
|
447
485
|
templateUrl: './changelog-dialog.component.html',
|
|
448
|
-
styleUrls: ['./changelog-dialog.component.scss']
|
|
486
|
+
styleUrls: ['./changelog-dialog.component.scss'],
|
|
487
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
449
488
|
})
|
|
450
|
-
export class ChangelogDialogComponent
|
|
489
|
+
export class ChangelogDialogComponent {
|
|
451
490
|
|
|
452
|
-
|
|
453
|
-
public dialog!: ElementRef<HTMLDialogElement>;
|
|
491
|
+
public readonly dialog = viewChild.required<ElementRef<HTMLDialogElement>>('dialog');
|
|
454
492
|
|
|
455
|
-
|
|
456
|
-
public closeDialog = new EventEmitter<boolean>();
|
|
493
|
+
public readonly closeDialog = output<boolean>();
|
|
457
494
|
|
|
458
|
-
public remember = true;
|
|
495
|
+
public readonly remember = signal(true);
|
|
459
496
|
|
|
460
|
-
|
|
461
|
-
this.dialog.nativeElement.showModal();
|
|
497
|
+
constructor() {
|
|
498
|
+
afterNextRender(() => this.dialog().nativeElement.showModal());
|
|
462
499
|
}
|
|
463
500
|
|
|
464
|
-
close(remember: boolean = this.remember) {
|
|
465
|
-
this.dialog.nativeElement.close();
|
|
501
|
+
close(remember: boolean = this.remember()) {
|
|
502
|
+
this.dialog().nativeElement.close();
|
|
466
503
|
this.closeDialog.emit(remember);
|
|
467
504
|
}
|
|
468
505
|
|