@rxap/ngx-changelog 16.1.0-dev.0
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 +14 -0
- package/LICENSE +621 -0
- package/LICENSE.md +621 -0
- package/README.md +20 -0
- package/esm2022/index.mjs +25 -0
- package/esm2022/lib/changelog/changelog.component.mjs +81 -0
- package/esm2022/lib/changelog-dialog/changelog-dialog.component.mjs +31 -0
- package/esm2022/lib/changelog.service.mjs +50 -0
- package/esm2022/lib/parameters/changelog-controller-get-latest.parameter.mjs +2 -0
- package/esm2022/lib/parameters/changelog-controller-get-version.parameter.mjs +2 -0
- package/esm2022/lib/provide-changelog.mjs +11 -0
- package/esm2022/lib/remote-methods/changelog-controller-get-latest.remote-method.mjs +25 -0
- package/esm2022/lib/remote-methods/changelog-controller-get-version.remote-method.mjs +25 -0
- package/esm2022/lib/remote-methods/changelog-controller-list.remote-method.mjs +25 -0
- package/esm2022/lib/responses/changelog-controller-get-latest.response.mjs +2 -0
- package/esm2022/lib/responses/changelog-controller-get-version.response.mjs +2 -0
- package/esm2022/lib/responses/changelog-controller-list.response.mjs +2 -0
- package/esm2022/rxap-ngx-changelog.mjs +5 -0
- package/fesm2022/rxap-ngx-changelog.mjs +236 -0
- package/fesm2022/rxap-ngx-changelog.mjs.map +1 -0
- package/index.d.ts +12 -0
- package/lib/changelog/changelog.component.d.ts +26 -0
- package/lib/changelog-dialog/changelog-dialog.component.d.ts +11 -0
- package/lib/changelog.service.d.ts +10 -0
- package/lib/parameters/changelog-controller-get-latest.parameter.d.ts +3 -0
- package/lib/parameters/changelog-controller-get-version.parameter.d.ts +4 -0
- package/lib/provide-changelog.d.ts +2 -0
- package/lib/remote-methods/changelog-controller-get-latest.remote-method.d.ts +9 -0
- package/lib/remote-methods/changelog-controller-get-version.remote-method.d.ts +9 -0
- package/lib/remote-methods/changelog-controller-list.remote-method.d.ts +8 -0
- package/lib/responses/changelog-controller-get-latest.response.d.ts +4 -0
- package/lib/responses/changelog-controller-get-version.response.d.ts +4 -0
- package/lib/responses/changelog-controller-list.response.d.ts +1 -0
- package/package.json +60 -0
- package/theme.css +1 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, signal, computed, inject, Component, EventEmitter, ViewChild, Output, ApplicationRef, createComponent, APP_INITIALIZER } from '@angular/core';
|
|
4
|
+
import { OpenApiRemoteMethod, RxapOpenApiRemoteMethod } from '@rxap/open-api/remote-method';
|
|
5
|
+
import { NgForOf, NgIf, NgClass, CommonModule } from '@angular/common';
|
|
6
|
+
import * as i1$1 from '@angular/forms';
|
|
7
|
+
import { FormsModule } from '@angular/forms';
|
|
8
|
+
import { MethodTemplateDirective } from '@rxap/directives';
|
|
9
|
+
import { RXAP_ENVIRONMENT } from '@rxap/environment';
|
|
10
|
+
import * as i1 from 'ngx-markdown';
|
|
11
|
+
import { MarkdownModule } from 'ngx-markdown';
|
|
12
|
+
import { take } from 'rxjs';
|
|
13
|
+
import { tap } from 'rxjs/operators';
|
|
14
|
+
|
|
15
|
+
let ChangelogControllerGetLatestRemoteMethod = class ChangelogControllerGetLatestRemoteMethod extends OpenApiRemoteMethod {
|
|
16
|
+
call(parameters) {
|
|
17
|
+
return super.call(parameters);
|
|
18
|
+
}
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogControllerGetLatestRemoteMethod, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
20
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogControllerGetLatestRemoteMethod, providedIn: 'root' }); }
|
|
21
|
+
};
|
|
22
|
+
ChangelogControllerGetLatestRemoteMethod = __decorate([
|
|
23
|
+
RxapOpenApiRemoteMethod({
|
|
24
|
+
serverId: 'service-changelog',
|
|
25
|
+
operationId: 'ChangelogController_getLatest',
|
|
26
|
+
operation: '{"operationId":"ChangelogController_getLatest","parameters":[{"name":"application","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"general":{"type":"array","items":{"type":"string"}},"application":{"type":"array","items":{"type":"string"}}},"required":["general","application"]}}}}},"method":"get","path":"/latest/{application}"}',
|
|
27
|
+
})
|
|
28
|
+
], ChangelogControllerGetLatestRemoteMethod);
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogControllerGetLatestRemoteMethod, decorators: [{
|
|
30
|
+
type: Injectable,
|
|
31
|
+
args: [{
|
|
32
|
+
providedIn: 'root',
|
|
33
|
+
}]
|
|
34
|
+
}] });
|
|
35
|
+
|
|
36
|
+
let ChangelogControllerGetVersionRemoteMethod = class ChangelogControllerGetVersionRemoteMethod extends OpenApiRemoteMethod {
|
|
37
|
+
call(parameters) {
|
|
38
|
+
return super.call(parameters);
|
|
39
|
+
}
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogControllerGetVersionRemoteMethod, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
41
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogControllerGetVersionRemoteMethod, providedIn: 'root' }); }
|
|
42
|
+
};
|
|
43
|
+
ChangelogControllerGetVersionRemoteMethod = __decorate([
|
|
44
|
+
RxapOpenApiRemoteMethod({
|
|
45
|
+
serverId: 'service-changelog',
|
|
46
|
+
operationId: 'ChangelogController_getVersion',
|
|
47
|
+
operation: '{"operationId":"ChangelogController_getVersion","parameters":[{"name":"version","required":true,"in":"path","schema":{"type":"string"}},{"name":"application","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"general":{"type":"array","items":{"type":"string"}},"application":{"type":"array","items":{"type":"string"}}},"required":["general","application"]}}}}},"method":"get","path":"/{version}/{application}"}',
|
|
48
|
+
})
|
|
49
|
+
], ChangelogControllerGetVersionRemoteMethod);
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogControllerGetVersionRemoteMethod, decorators: [{
|
|
51
|
+
type: Injectable,
|
|
52
|
+
args: [{
|
|
53
|
+
providedIn: 'root',
|
|
54
|
+
}]
|
|
55
|
+
}] });
|
|
56
|
+
|
|
57
|
+
let ChangelogControllerListRemoteMethod = class ChangelogControllerListRemoteMethod extends OpenApiRemoteMethod {
|
|
58
|
+
call() {
|
|
59
|
+
return super.call();
|
|
60
|
+
}
|
|
61
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogControllerListRemoteMethod, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
62
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogControllerListRemoteMethod, providedIn: 'root' }); }
|
|
63
|
+
};
|
|
64
|
+
ChangelogControllerListRemoteMethod = __decorate([
|
|
65
|
+
RxapOpenApiRemoteMethod({
|
|
66
|
+
serverId: 'service-changelog',
|
|
67
|
+
operationId: 'ChangelogController_list',
|
|
68
|
+
operation: '{"operationId":"ChangelogController_list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"method":"get","path":"/available-versions"}',
|
|
69
|
+
})
|
|
70
|
+
], ChangelogControllerListRemoteMethod);
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogControllerListRemoteMethod, decorators: [{
|
|
72
|
+
type: Injectable,
|
|
73
|
+
args: [{
|
|
74
|
+
providedIn: 'root',
|
|
75
|
+
}]
|
|
76
|
+
}] });
|
|
77
|
+
|
|
78
|
+
class ChangelogComponent {
|
|
79
|
+
constructor() {
|
|
80
|
+
this.availableVersions = signal([]);
|
|
81
|
+
this.error = signal(null);
|
|
82
|
+
this.activeIndex = signal(-1);
|
|
83
|
+
this.selectedVersion = computed(() => {
|
|
84
|
+
const activeIndex = this.activeIndex();
|
|
85
|
+
const availableVersions = this.availableVersions();
|
|
86
|
+
if (activeIndex > -1) {
|
|
87
|
+
return availableVersions[activeIndex] ?? 'latest';
|
|
88
|
+
}
|
|
89
|
+
return availableVersions[availableVersions.length - 1] ?? 'latest';
|
|
90
|
+
});
|
|
91
|
+
this.displayedButtons = computed(() => {
|
|
92
|
+
let activeIndex = this.activeIndex();
|
|
93
|
+
if (activeIndex === -1) {
|
|
94
|
+
activeIndex = this.availableVersions().length - 1;
|
|
95
|
+
}
|
|
96
|
+
let start = Math.max(0, activeIndex - 2);
|
|
97
|
+
let end = Math.min(this.availableVersions().length, activeIndex + 3);
|
|
98
|
+
if (end - start < 5) {
|
|
99
|
+
if (start === 0) {
|
|
100
|
+
end += 5 - (end - start);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
start -= 5 - (end - start);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
end = Math.min(this.availableVersions().length, end);
|
|
107
|
+
start = Math.max(0, start);
|
|
108
|
+
return Array.from({ length: end - start }, (_, i) => ({
|
|
109
|
+
index: start + i,
|
|
110
|
+
version: this.availableVersions()[start + i],
|
|
111
|
+
}));
|
|
112
|
+
});
|
|
113
|
+
this.application = inject(RXAP_ENVIRONMENT).app;
|
|
114
|
+
this.getChangelogMethod = inject(ChangelogControllerGetVersionRemoteMethod);
|
|
115
|
+
this.getChangelogMethodParameters = computed(() => ({
|
|
116
|
+
parameters: {
|
|
117
|
+
version: this.selectedVersion(),
|
|
118
|
+
application: this.application,
|
|
119
|
+
},
|
|
120
|
+
}));
|
|
121
|
+
this.getAvailableVersionsMethod = inject(ChangelogControllerListRemoteMethod);
|
|
122
|
+
}
|
|
123
|
+
ngOnInit() {
|
|
124
|
+
this.loadAvailableVersions();
|
|
125
|
+
}
|
|
126
|
+
async loadAvailableVersions() {
|
|
127
|
+
try {
|
|
128
|
+
const availableVersions = await this.getAvailableVersionsMethod.call();
|
|
129
|
+
this.availableVersions.set(availableVersions);
|
|
130
|
+
this.activeIndex.set(availableVersions.length - 1);
|
|
131
|
+
}
|
|
132
|
+
catch (e) {
|
|
133
|
+
this.error.set(e.message);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
137
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ChangelogComponent, isStandalone: true, selector: "rxap-changelog", ngImport: i0, template: "<ng-container *ngIf=\"error(); else noError\">\n <h2 class=\"text-2xl pb-2\" i18n>Something has gone wrong!</h2>\n <p i18n>Unable to load the application changelog</p>\n</ng-container>\n<ng-template #noError>\n<div class=\"flex flex-col gap-3\">\n <ng-container *ngIf=\"availableVersions().length\">\n <div class=\"controls flex justify-center space-x-2 my-4\">\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n [disabled]=\"activeIndex() <= 0\"\n [ngClass]=\"{\n 'bg-gray-100 dark:bg-gray-900': activeIndex() <= 0,\n 'hover:bg-gray-300': activeIndex() > 0,\n }\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 transition-colors duration-150 rounded\">Previous\n </button>\n <button (click)=\"activeIndex.set(item.index)\"\n *ngFor=\"let item of displayedButtons()\"\n [ngClass]=\"{\n 'bg-primary-500': item.index === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item.index !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item.version }}\n </button>\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n [disabled]=\"activeIndex() >= availableVersions().length - 1\"\n [ngClass]=\"{\n 'bg-gray-100 dark:bg-gray-900': activeIndex() >= availableVersions().length - 1,\n 'hover:bg-gray-300': activeIndex() < availableVersions().length - 1,\n }\"\n 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\n </button>\n </div>\n <hr>\n </ng-container>\n <div class=\"flex flex-col gap-6 p-8 overflow-auto\" style=\"max-height: 60vh\">\n <ng-container *rxapMethod=\"let changelog call getChangelogMethod; parameters: getChangelogMethodParameters()\">\n <markdown *ngFor=\"let general of changelog.general\" [data]=\"general\" class=\"prose dark:prose-invert\">\n </markdown>\n <markdown *ngFor=\"let application of changelog.application\" [data]=\"application\" class=\"prose dark:prose-invert\">\n </markdown>\n </ng-container>\n </div>\n</div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: MethodTemplateDirective, selector: "[rxapMethod]", inputs: ["rxapMethodCall", "rxapMethodParameters", "rxapMethodError", "rxapMethodLoading", "rxapMethodWithoutParameters", "immediately"], outputs: ["executed", "failure", "successful", "executing", "embedded"], exportAs: ["rxapMethod"] }, { kind: "ngmodule", type: MarkdownModule }, { kind: "component", type: i1.MarkdownComponent, selector: "markdown, [markdown]", inputs: ["data", "src", "disableSanitizer", "inline", "srcRelativeLink", "clipboard", "clipboardButtonComponent", "clipboardButtonTemplate", "emoji", "katex", "katexOptions", "mermaid", "mermaidOptions", "lineHighlight", "line", "lineOffset", "lineNumbers", "start", "commandLine", "filterOutput", "host", "prompt", "output", "user"], outputs: ["error", "load", "ready"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
138
|
+
}
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogComponent, decorators: [{
|
|
140
|
+
type: Component,
|
|
141
|
+
args: [{ selector: 'rxap-changelog', standalone: true, imports: [
|
|
142
|
+
MethodTemplateDirective,
|
|
143
|
+
MarkdownModule,
|
|
144
|
+
NgForOf,
|
|
145
|
+
NgIf,
|
|
146
|
+
NgClass,
|
|
147
|
+
], template: "<ng-container *ngIf=\"error(); else noError\">\n <h2 class=\"text-2xl pb-2\" i18n>Something has gone wrong!</h2>\n <p i18n>Unable to load the application changelog</p>\n</ng-container>\n<ng-template #noError>\n<div class=\"flex flex-col gap-3\">\n <ng-container *ngIf=\"availableVersions().length\">\n <div class=\"controls flex justify-center space-x-2 my-4\">\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n [disabled]=\"activeIndex() <= 0\"\n [ngClass]=\"{\n 'bg-gray-100 dark:bg-gray-900': activeIndex() <= 0,\n 'hover:bg-gray-300': activeIndex() > 0,\n }\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 transition-colors duration-150 rounded\">Previous\n </button>\n <button (click)=\"activeIndex.set(item.index)\"\n *ngFor=\"let item of displayedButtons()\"\n [ngClass]=\"{\n 'bg-primary-500': item.index === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item.index !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item.version }}\n </button>\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n [disabled]=\"activeIndex() >= availableVersions().length - 1\"\n [ngClass]=\"{\n 'bg-gray-100 dark:bg-gray-900': activeIndex() >= availableVersions().length - 1,\n 'hover:bg-gray-300': activeIndex() < availableVersions().length - 1,\n }\"\n 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\n </button>\n </div>\n <hr>\n </ng-container>\n <div class=\"flex flex-col gap-6 p-8 overflow-auto\" style=\"max-height: 60vh\">\n <ng-container *rxapMethod=\"let changelog call getChangelogMethod; parameters: getChangelogMethodParameters()\">\n <markdown *ngFor=\"let general of changelog.general\" [data]=\"general\" class=\"prose dark:prose-invert\">\n </markdown>\n <markdown *ngFor=\"let application of changelog.application\" [data]=\"application\" class=\"prose dark:prose-invert\">\n </markdown>\n </ng-container>\n </div>\n</div>\n</ng-template>\n" }]
|
|
148
|
+
}] });
|
|
149
|
+
|
|
150
|
+
class ChangelogDialogComponent {
|
|
151
|
+
constructor() {
|
|
152
|
+
this.closeDialog = new EventEmitter();
|
|
153
|
+
this.remember = true;
|
|
154
|
+
}
|
|
155
|
+
ngAfterViewInit() {
|
|
156
|
+
this.dialog.nativeElement.showModal();
|
|
157
|
+
}
|
|
158
|
+
close(remember = this.remember) {
|
|
159
|
+
this.dialog.nativeElement.close();
|
|
160
|
+
this.closeDialog.emit(remember);
|
|
161
|
+
}
|
|
162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
163
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ChangelogDialogComponent, isStandalone: true, selector: "rxap-changelog-dialog", outputs: { closeDialog: "closeDialog" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, static: true }], ngImport: i0, template: "<dialog #dialog\n class=\"max-w-6xl rounded overflow-auto drop-shadow-2xl dark:bg-black dark:text-white flex flex-col gap-3 p-6\">\n <rxap-changelog></rxap-changelog>\n <div class=\"flex flex-row justify-end gap-6\">\n <div class=\"flex flex-row gap-3 items-center\">\n <input [(ngModel)]=\"remember\" id=\"rxap-changelog-remember\" type=\"checkbox\">\n <label for=\"rxap-changelog-remember\" i18n>Don't show again until next new version</label>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n </div>\n</dialog>\n", styles: ["dialog::-webkit-backdrop{background:rgba(0,0,0,.7)}dialog::backdrop{background:rgba(0,0,0,.7)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ChangelogComponent, selector: "rxap-changelog" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
164
|
+
}
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogDialogComponent, decorators: [{
|
|
166
|
+
type: Component,
|
|
167
|
+
args: [{ selector: 'rxap-changelog-dialog', standalone: true, imports: [CommonModule, ChangelogComponent, FormsModule], template: "<dialog #dialog\n class=\"max-w-6xl rounded overflow-auto drop-shadow-2xl dark:bg-black dark:text-white flex flex-col gap-3 p-6\">\n <rxap-changelog></rxap-changelog>\n <div class=\"flex flex-row justify-end gap-6\">\n <div class=\"flex flex-row gap-3 items-center\">\n <input [(ngModel)]=\"remember\" id=\"rxap-changelog-remember\" type=\"checkbox\">\n <label for=\"rxap-changelog-remember\" i18n>Don't show again until next new version</label>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n </div>\n</dialog>\n", styles: ["dialog::-webkit-backdrop{background:rgba(0,0,0,.7)}dialog::backdrop{background:rgba(0,0,0,.7)}\n"] }]
|
|
168
|
+
}], propDecorators: { dialog: [{
|
|
169
|
+
type: ViewChild,
|
|
170
|
+
args: ['dialog', { static: true }]
|
|
171
|
+
}], closeDialog: [{
|
|
172
|
+
type: Output
|
|
173
|
+
}] } });
|
|
174
|
+
|
|
175
|
+
const RXAP_CHANGELOG_LAST_VERSION = 'RXAP_CHANGELOG_LAST_VERSION';
|
|
176
|
+
class ChangelogService {
|
|
177
|
+
constructor() {
|
|
178
|
+
this.version = inject(RXAP_ENVIRONMENT).name;
|
|
179
|
+
this.applicationRef = inject(ApplicationRef);
|
|
180
|
+
}
|
|
181
|
+
showChangelogDialog() {
|
|
182
|
+
if (localStorage.getItem(RXAP_CHANGELOG_LAST_VERSION) === this.version) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const body = document.getElementsByTagName('body')[0];
|
|
186
|
+
const div = document.createElement('div');
|
|
187
|
+
body.appendChild(div);
|
|
188
|
+
const componentRef = createComponent(ChangelogDialogComponent, {
|
|
189
|
+
hostElement: div,
|
|
190
|
+
environmentInjector: this.applicationRef.injector,
|
|
191
|
+
});
|
|
192
|
+
this.applicationRef.attachView(componentRef.hostView);
|
|
193
|
+
componentRef.instance.closeDialog.pipe(take(1), tap(remember => {
|
|
194
|
+
componentRef.destroy();
|
|
195
|
+
body.removeChild(div);
|
|
196
|
+
div.remove();
|
|
197
|
+
if (remember && this.version) {
|
|
198
|
+
localStorage.setItem(RXAP_CHANGELOG_LAST_VERSION, this.version);
|
|
199
|
+
}
|
|
200
|
+
})).subscribe();
|
|
201
|
+
}
|
|
202
|
+
showChangelogDialogIfNewVersion() {
|
|
203
|
+
const lastVersion = localStorage.getItem(RXAP_CHANGELOG_LAST_VERSION);
|
|
204
|
+
if (this.version && lastVersion && this.version !== lastVersion) {
|
|
205
|
+
localStorage.removeItem(RXAP_CHANGELOG_LAST_VERSION);
|
|
206
|
+
}
|
|
207
|
+
this.showChangelogDialog();
|
|
208
|
+
}
|
|
209
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
210
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogService, providedIn: 'root' }); }
|
|
211
|
+
}
|
|
212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChangelogService, decorators: [{
|
|
213
|
+
type: Injectable,
|
|
214
|
+
args: [{
|
|
215
|
+
providedIn: 'root',
|
|
216
|
+
}]
|
|
217
|
+
}] });
|
|
218
|
+
|
|
219
|
+
function ProvideChangelog() {
|
|
220
|
+
return {
|
|
221
|
+
provide: APP_INITIALIZER,
|
|
222
|
+
multi: true,
|
|
223
|
+
deps: [ChangelogService],
|
|
224
|
+
useFactory: (changelogService) => () => changelogService.showChangelogDialogIfNewVersion(),
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// region responses
|
|
229
|
+
// endregion
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Generated bundle index. Do not edit.
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
export { ChangelogComponent, ChangelogControllerGetLatestRemoteMethod, ChangelogControllerGetVersionRemoteMethod, ChangelogControllerListRemoteMethod, ChangelogDialogComponent, ChangelogService, ProvideChangelog, RXAP_CHANGELOG_LAST_VERSION };
|
|
236
|
+
//# sourceMappingURL=rxap-ngx-changelog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rxap-ngx-changelog.mjs","sources":["../../../../../packages/angular/changelog/src/lib/remote-methods/changelog-controller-get-latest.remote-method.ts","../../../../../packages/angular/changelog/src/lib/remote-methods/changelog-controller-get-version.remote-method.ts","../../../../../packages/angular/changelog/src/lib/remote-methods/changelog-controller-list.remote-method.ts","../../../../../packages/angular/changelog/src/lib/changelog/changelog.component.ts","../../../../../packages/angular/changelog/src/lib/changelog/changelog.component.html","../../../../../packages/angular/changelog/src/lib/changelog-dialog/changelog-dialog.component.ts","../../../../../packages/angular/changelog/src/lib/changelog-dialog/changelog-dialog.component.html","../../../../../packages/angular/changelog/src/lib/changelog.service.ts","../../../../../packages/angular/changelog/src/lib/provide-changelog.ts","../../../../../packages/angular/changelog/src/index.ts","../../../../../packages/angular/changelog/src/rxap-ngx-changelog.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n OpenApiRemoteMethod,\n OpenApiRemoteMethodParameter,\n RxapOpenApiRemoteMethod,\n} from '@rxap/open-api/remote-method';\nimport { ChangelogControllerGetLatestParameter } from '../parameters/changelog-controller-get-latest.parameter';\nimport { ChangelogControllerGetLatestResponse } from '../responses/changelog-controller-get-latest.response';\n\n@Injectable({\n providedIn: 'root',\n})\n@RxapOpenApiRemoteMethod({\n serverId: 'service-changelog',\n operationId: 'ChangelogController_getLatest',\n operation: '{\"operationId\":\"ChangelogController_getLatest\",\"parameters\":[{\"name\":\"application\",\"required\":true,\"in\":\"path\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"general\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"application\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"general\",\"application\"]}}}}},\"method\":\"get\",\"path\":\"/latest/{application}\"}',\n})\nexport class ChangelogControllerGetLatestRemoteMethod\n extends OpenApiRemoteMethod<ChangelogControllerGetLatestResponse, ChangelogControllerGetLatestParameter, void> {\n public override call(parameters: OpenApiRemoteMethodParameter<ChangelogControllerGetLatestParameter, void>): Promise<ChangelogControllerGetLatestResponse> {\n return super.call(parameters);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n OpenApiRemoteMethod,\n OpenApiRemoteMethodParameter,\n RxapOpenApiRemoteMethod,\n} from '@rxap/open-api/remote-method';\nimport { ChangelogControllerGetVersionParameter } from '../parameters/changelog-controller-get-version.parameter';\nimport { ChangelogControllerGetVersionResponse } from '../responses/changelog-controller-get-version.response';\n\n@Injectable({\n providedIn: 'root',\n})\n@RxapOpenApiRemoteMethod({\n serverId: 'service-changelog',\n operationId: 'ChangelogController_getVersion',\n operation: '{\"operationId\":\"ChangelogController_getVersion\",\"parameters\":[{\"name\":\"version\",\"required\":true,\"in\":\"path\",\"schema\":{\"type\":\"string\"}},{\"name\":\"application\",\"required\":true,\"in\":\"path\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"general\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"application\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"general\",\"application\"]}}}}},\"method\":\"get\",\"path\":\"/{version}/{application}\"}',\n})\nexport class ChangelogControllerGetVersionRemoteMethod\n extends OpenApiRemoteMethod<ChangelogControllerGetVersionResponse, ChangelogControllerGetVersionParameter, void> {\n public override call(parameters: OpenApiRemoteMethodParameter<ChangelogControllerGetVersionParameter, void>): Promise<ChangelogControllerGetVersionResponse> {\n return super.call(parameters);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n OpenApiRemoteMethod,\n RxapOpenApiRemoteMethod,\n} from '@rxap/open-api/remote-method';\nimport { ChangelogControllerListResponse } from '../responses/changelog-controller-list.response';\n\n@Injectable({\n providedIn: 'root',\n})\n@RxapOpenApiRemoteMethod({\n serverId: 'service-changelog',\n operationId: 'ChangelogController_list',\n operation: '{\"operationId\":\"ChangelogController_list\",\"parameters\":[],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}}},\"method\":\"get\",\"path\":\"/available-versions\"}',\n})\nexport class ChangelogControllerListRemoteMethod\n extends OpenApiRemoteMethod<ChangelogControllerListResponse, void, void> {\n public override call(): Promise<ChangelogControllerListResponse> {\n return super.call();\n }\n}\n","import {\n NgClass,\n NgForOf,\n NgIf,\n} from '@angular/common';\nimport {\n Component,\n computed,\n inject,\n OnInit,\n signal,\n} from '@angular/core';\nimport { MethodTemplateDirective } from '@rxap/directives';\nimport { RXAP_ENVIRONMENT } from '@rxap/environment';\nimport { MarkdownModule } from 'ngx-markdown';\nimport { ChangelogControllerGetVersionRemoteMethod } from '../remote-methods/changelog-controller-get-version.remote-method';\nimport { ChangelogControllerListRemoteMethod } from '../remote-methods/changelog-controller-list.remote-method';\n\n@Component({\n selector: 'rxap-changelog',\n standalone: true,\n imports: [\n MethodTemplateDirective,\n MarkdownModule,\n NgForOf,\n NgIf,\n NgClass,\n ],\n templateUrl: './changelog.component.html',\n styleUrls: [ './changelog.component.scss' ],\n})\nexport class ChangelogComponent implements OnInit {\n\n public readonly availableVersions = signal<string[]>([]);\n public readonly error = signal<string | null>(null);\n public readonly activeIndex = signal(-1);\n public readonly selectedVersion = computed(() => {\n const activeIndex = this.activeIndex();\n const availableVersions = this.availableVersions();\n if (activeIndex > -1) {\n return availableVersions[activeIndex] ?? 'latest';\n }\n return availableVersions[availableVersions.length - 1] ?? 'latest';\n });\n\n public readonly displayedButtons = computed(() => {\n let activeIndex = this.activeIndex();\n if (activeIndex === -1) {\n activeIndex = this.availableVersions().length - 1;\n }\n let start = Math.max(0, activeIndex - 2);\n let end = Math.min(this.availableVersions().length, activeIndex + 3);\n if (end - start < 5) {\n if (start === 0) {\n end += 5 - (end - start);\n } else {\n start -= 5 - (end - start);\n }\n }\n end = Math.min(this.availableVersions().length, end);\n start = Math.max(0, start);\n return Array.from(\n { length: end - start },\n (_, i) => ({\n index: start + i,\n version: this.availableVersions()[start + i],\n }),\n );\n });\n\n public readonly application = inject(RXAP_ENVIRONMENT).app;\n\n public readonly getChangelogMethod = inject(ChangelogControllerGetVersionRemoteMethod);\n\n public readonly getChangelogMethodParameters = computed(() => ({\n parameters: {\n version: this.selectedVersion(),\n application: this.application,\n },\n }));\n\n private readonly getAvailableVersionsMethod = inject(ChangelogControllerListRemoteMethod);\n\n ngOnInit() {\n this.loadAvailableVersions();\n }\n\n private async loadAvailableVersions() {\n try {\n const availableVersions = await this.getAvailableVersionsMethod.call();\n this.availableVersions.set(availableVersions);\n this.activeIndex.set(availableVersions.length - 1);\n } catch (e: any) {\n this.error.set(e.message);\n }\n }\n\n}\n","<ng-container *ngIf=\"error(); else noError\">\n <h2 class=\"text-2xl pb-2\" i18n>Something has gone wrong!</h2>\n <p i18n>Unable to load the application changelog</p>\n</ng-container>\n<ng-template #noError>\n<div class=\"flex flex-col gap-3\">\n <ng-container *ngIf=\"availableVersions().length\">\n <div class=\"controls flex justify-center space-x-2 my-4\">\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n [disabled]=\"activeIndex() <= 0\"\n [ngClass]=\"{\n 'bg-gray-100 dark:bg-gray-900': activeIndex() <= 0,\n 'hover:bg-gray-300': activeIndex() > 0,\n }\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 transition-colors duration-150 rounded\">Previous\n </button>\n <button (click)=\"activeIndex.set(item.index)\"\n *ngFor=\"let item of displayedButtons()\"\n [ngClass]=\"{\n 'bg-primary-500': item.index === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item.index !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item.version }}\n </button>\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n [disabled]=\"activeIndex() >= availableVersions().length - 1\"\n [ngClass]=\"{\n 'bg-gray-100 dark:bg-gray-900': activeIndex() >= availableVersions().length - 1,\n 'hover:bg-gray-300': activeIndex() < availableVersions().length - 1,\n }\"\n 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\n </button>\n </div>\n <hr>\n </ng-container>\n <div class=\"flex flex-col gap-6 p-8 overflow-auto\" style=\"max-height: 60vh\">\n <ng-container *rxapMethod=\"let changelog call getChangelogMethod; parameters: getChangelogMethodParameters()\">\n <markdown *ngFor=\"let general of changelog.general\" [data]=\"general\" class=\"prose dark:prose-invert\">\n </markdown>\n <markdown *ngFor=\"let application of changelog.application\" [data]=\"application\" class=\"prose dark:prose-invert\">\n </markdown>\n </ng-container>\n </div>\n</div>\n</ng-template>\n","import { CommonModule } from '@angular/common';\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MockInstance } from 'ng-mocks';\nimport { ChangelogComponent } from '../changelog/changelog.component';\n\n@Component({\n selector: 'rxap-changelog-dialog',\n standalone: true,\n imports: [ CommonModule, ChangelogComponent, FormsModule ],\n templateUrl: './changelog-dialog.component.html',\n styleUrls: [ './changelog-dialog.component.scss' ],\n})\nexport class ChangelogDialogComponent implements AfterViewInit {\n\n @ViewChild('dialog', { static: true })\n public dialog!: ElementRef<HTMLDialogElement>;\n\n @Output()\n public closeDialog = new EventEmitter<boolean>();\n\n public remember = true;\n\n ngAfterViewInit() {\n this.dialog.nativeElement.showModal();\n }\n\n close(remember: boolean = this.remember) {\n this.dialog.nativeElement.close();\n this.closeDialog.emit(remember);\n }\n\n}\n","<dialog #dialog\n class=\"max-w-6xl rounded overflow-auto drop-shadow-2xl dark:bg-black dark:text-white flex flex-col gap-3 p-6\">\n <rxap-changelog></rxap-changelog>\n <div class=\"flex flex-row justify-end gap-6\">\n <div class=\"flex flex-row gap-3 items-center\">\n <input [(ngModel)]=\"remember\" id=\"rxap-changelog-remember\" type=\"checkbox\">\n <label for=\"rxap-changelog-remember\" i18n>Don't show again until next new version</label>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n </div>\n</dialog>\n","import {\n ApplicationRef,\n createComponent,\n inject,\n Injectable,\n} from '@angular/core';\nimport { RXAP_ENVIRONMENT } from '@rxap/environment';\nimport { take } from 'rxjs';\nimport { tap } from 'rxjs/operators';\nimport { ChangelogDialogComponent } from './changelog-dialog/changelog-dialog.component';\n\nexport const RXAP_CHANGELOG_LAST_VERSION = 'RXAP_CHANGELOG_LAST_VERSION';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ChangelogService {\n\n private readonly version = inject(RXAP_ENVIRONMENT).name;\n\n private readonly applicationRef = inject(ApplicationRef);\n\n public showChangelogDialog() {\n if (localStorage.getItem(RXAP_CHANGELOG_LAST_VERSION) === this.version) {\n return;\n }\n const body = document.getElementsByTagName('body')[0];\n const div = document.createElement('div');\n body.appendChild(div);\n const componentRef = createComponent(ChangelogDialogComponent, {\n hostElement: div,\n environmentInjector: this.applicationRef.injector,\n });\n this.applicationRef.attachView(componentRef.hostView);\n componentRef.instance.closeDialog.pipe(\n take(1),\n tap(remember => {\n componentRef.destroy();\n body.removeChild(div);\n div.remove();\n if (remember && this.version) {\n localStorage.setItem(RXAP_CHANGELOG_LAST_VERSION, this.version);\n }\n }),\n ).subscribe();\n }\n\n public showChangelogDialogIfNewVersion() {\n\n const lastVersion = localStorage.getItem(RXAP_CHANGELOG_LAST_VERSION);\n\n if (this.version && lastVersion && this.version !== lastVersion) {\n localStorage.removeItem(RXAP_CHANGELOG_LAST_VERSION);\n }\n\n this.showChangelogDialog();\n\n }\n\n}\n","import {\n APP_INITIALIZER,\n Provider,\n} from '@angular/core';\nimport { ChangelogService } from './changelog.service';\n\nexport function ProvideChangelog(): Provider {\n return {\n provide: APP_INITIALIZER,\n multi: true,\n deps: [ ChangelogService ],\n useFactory: (changelogService: ChangelogService) => () => changelogService.showChangelogDialogIfNewVersion(),\n };\n}\n","// region responses\nexport * from './lib/responses/changelog-controller-get-latest.response';\nexport * from './lib/responses/changelog-controller-get-version.response';\nexport * from './lib/responses/changelog-controller-list.response';\n// endregion\n\n// region remote-methods\nexport * from './lib/remote-methods/changelog-controller-get-latest.remote-method';\nexport * from './lib/remote-methods/changelog-controller-get-version.remote-method';\nexport * from './lib/remote-methods/changelog-controller-list.remote-method';\n// endregion\n\n// region parameters\nexport * from './lib/parameters/changelog-controller-get-latest.parameter';\nexport * from './lib/parameters/changelog-controller-get-version.parameter';\n// endregion\n\n// region changelog-dialog\nexport * from './lib/changelog-dialog/changelog-dialog.component';\n// endregion\n\n// region changelog\nexport * from './lib/changelog/changelog.component';\n// endregion\n\n// region \nexport * from './lib/changelog.service';\nexport * from './lib/provide-changelog';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAiBO,IAAM,wCAAwC,GAA9C,MAAM,wCACX,SAAQ,mBAAsG,CAAA;AAC9F,IAAA,IAAI,CAAC,UAAqF,EAAA;AACxG,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KAC/B;8GAJU,wCAAwC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAxC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wCAAwC,cAPvC,MAAM,EAAA,CAAA,CAAA,EAAA;;AAOP,wCAAwC,GAAA,UAAA,CAAA;AALpD,IAAA,uBAAuB,CAAC;AACvB,QAAA,QAAQ,EAAE,mBAAmB;AAC7B,QAAA,WAAW,EAAE,+BAA+B;AAC5C,QAAA,SAAS,EAAE,gbAAgb;KAC5b,CAAC;AACW,CAAA,EAAA,wCAAwC,CAKpD,CAAA;2FALY,wCAAwC,EAAA,UAAA,EAAA,CAAA;kBARpD,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AAC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IAAA,EAAA,gBAAgB,cAFf,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEP,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;SCTe,gBAAgB,GAAA;IAC9B,OAAO;AACL,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,CAAE,gBAAgB,CAAE;AAC1B,QAAA,UAAU,EAAE,CAAC,gBAAkC,KAAK,MAAM,gBAAgB,CAAC,+BAA+B,EAAE;KAC7G,CAAC;AACJ;;ACbA;AA4BA;;AC5BA;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './lib/responses/changelog-controller-get-latest.response';
|
|
2
|
+
export * from './lib/responses/changelog-controller-get-version.response';
|
|
3
|
+
export * from './lib/responses/changelog-controller-list.response';
|
|
4
|
+
export * from './lib/remote-methods/changelog-controller-get-latest.remote-method';
|
|
5
|
+
export * from './lib/remote-methods/changelog-controller-get-version.remote-method';
|
|
6
|
+
export * from './lib/remote-methods/changelog-controller-list.remote-method';
|
|
7
|
+
export * from './lib/parameters/changelog-controller-get-latest.parameter';
|
|
8
|
+
export * from './lib/parameters/changelog-controller-get-version.parameter';
|
|
9
|
+
export * from './lib/changelog-dialog/changelog-dialog.component';
|
|
10
|
+
export * from './lib/changelog/changelog.component';
|
|
11
|
+
export * from './lib/changelog.service';
|
|
12
|
+
export * from './lib/provide-changelog';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ChangelogControllerGetVersionRemoteMethod } from '../remote-methods/changelog-controller-get-version.remote-method';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChangelogComponent implements OnInit {
|
|
5
|
+
readonly availableVersions: import("@angular/core").WritableSignal<string[]>;
|
|
6
|
+
readonly error: import("@angular/core").WritableSignal<string | null>;
|
|
7
|
+
readonly activeIndex: import("@angular/core").WritableSignal<number>;
|
|
8
|
+
readonly selectedVersion: import("@angular/core").Signal<string>;
|
|
9
|
+
readonly displayedButtons: import("@angular/core").Signal<{
|
|
10
|
+
index: number;
|
|
11
|
+
version: string;
|
|
12
|
+
}[]>;
|
|
13
|
+
readonly application: string;
|
|
14
|
+
readonly getChangelogMethod: ChangelogControllerGetVersionRemoteMethod;
|
|
15
|
+
readonly getChangelogMethodParameters: import("@angular/core").Signal<{
|
|
16
|
+
parameters: {
|
|
17
|
+
version: string;
|
|
18
|
+
application: string;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
private readonly getAvailableVersionsMethod;
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
private loadAvailableVersions;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChangelogComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChangelogComponent, "rxap-changelog", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChangelogDialogComponent implements AfterViewInit {
|
|
4
|
+
dialog: ElementRef<HTMLDialogElement>;
|
|
5
|
+
closeDialog: EventEmitter<boolean>;
|
|
6
|
+
remember: boolean;
|
|
7
|
+
ngAfterViewInit(): void;
|
|
8
|
+
close(remember?: boolean): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChangelogDialogComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChangelogDialogComponent, "rxap-changelog-dialog", never, {}, { "closeDialog": "closeDialog"; }, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare const RXAP_CHANGELOG_LAST_VERSION = "RXAP_CHANGELOG_LAST_VERSION";
|
|
3
|
+
export declare class ChangelogService {
|
|
4
|
+
private readonly version;
|
|
5
|
+
private readonly applicationRef;
|
|
6
|
+
showChangelogDialog(): void;
|
|
7
|
+
showChangelogDialogIfNewVersion(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChangelogService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChangelogService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OpenApiRemoteMethod, OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
|
|
2
|
+
import { ChangelogControllerGetLatestParameter } from '../parameters/changelog-controller-get-latest.parameter';
|
|
3
|
+
import { ChangelogControllerGetLatestResponse } from '../responses/changelog-controller-get-latest.response';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ChangelogControllerGetLatestRemoteMethod extends OpenApiRemoteMethod<ChangelogControllerGetLatestResponse, ChangelogControllerGetLatestParameter, void> {
|
|
6
|
+
call(parameters: OpenApiRemoteMethodParameter<ChangelogControllerGetLatestParameter, void>): Promise<ChangelogControllerGetLatestResponse>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChangelogControllerGetLatestRemoteMethod, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChangelogControllerGetLatestRemoteMethod>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OpenApiRemoteMethod, OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
|
|
2
|
+
import { ChangelogControllerGetVersionParameter } from '../parameters/changelog-controller-get-version.parameter';
|
|
3
|
+
import { ChangelogControllerGetVersionResponse } from '../responses/changelog-controller-get-version.response';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ChangelogControllerGetVersionRemoteMethod extends OpenApiRemoteMethod<ChangelogControllerGetVersionResponse, ChangelogControllerGetVersionParameter, void> {
|
|
6
|
+
call(parameters: OpenApiRemoteMethodParameter<ChangelogControllerGetVersionParameter, void>): Promise<ChangelogControllerGetVersionResponse>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChangelogControllerGetVersionRemoteMethod, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChangelogControllerGetVersionRemoteMethod>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OpenApiRemoteMethod } from '@rxap/open-api/remote-method';
|
|
2
|
+
import { ChangelogControllerListResponse } from '../responses/changelog-controller-list.response';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChangelogControllerListRemoteMethod extends OpenApiRemoteMethod<ChangelogControllerListResponse, void, void> {
|
|
5
|
+
call(): Promise<ChangelogControllerListResponse>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChangelogControllerListRemoteMethod, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChangelogControllerListRemoteMethod>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ChangelogControllerListResponse = Array<string>;
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "16.1.0-dev.0",
|
|
3
|
+
"name": "@rxap/ngx-changelog",
|
|
4
|
+
"license": "GPL-3.0-or-later",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"tslib": "^2.3.0"
|
|
7
|
+
},
|
|
8
|
+
"peerDependencies": {
|
|
9
|
+
"@angular/common": "^16.1.4",
|
|
10
|
+
"@angular/core": "^16.1.4",
|
|
11
|
+
"@angular/forms": "^16.1.4",
|
|
12
|
+
"@rxap/directives": "*",
|
|
13
|
+
"@rxap/environment": "*",
|
|
14
|
+
"@rxap/open-api": "*",
|
|
15
|
+
"ng-mocks": "^14.11.0",
|
|
16
|
+
"ngx-markdown": "^16.0.0",
|
|
17
|
+
"rxjs": "^7.8.0"
|
|
18
|
+
},
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "Merzough Münker",
|
|
21
|
+
"email": "mmuenker@digitaix.com"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
25
|
+
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/angular/changelog",
|
|
28
|
+
"keywords": [
|
|
29
|
+
"angular",
|
|
30
|
+
"angular-changelog",
|
|
31
|
+
"ngx",
|
|
32
|
+
"packages",
|
|
33
|
+
"rxap"
|
|
34
|
+
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public",
|
|
37
|
+
"directory": "../../../dist/packages/angular/changelog"
|
|
38
|
+
},
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
42
|
+
"directory": "packages/angular/changelog"
|
|
43
|
+
},
|
|
44
|
+
"sideEffects": false,
|
|
45
|
+
"gitHead": "f00b3223e24ebc98b306b6cc4e0b766cb5f9a844",
|
|
46
|
+
"module": "fesm2022/rxap-ngx-changelog.mjs",
|
|
47
|
+
"typings": "index.d.ts",
|
|
48
|
+
"exports": {
|
|
49
|
+
"./package.json": {
|
|
50
|
+
"default": "./package.json"
|
|
51
|
+
},
|
|
52
|
+
".": {
|
|
53
|
+
"types": "./index.d.ts",
|
|
54
|
+
"esm2022": "./esm2022/rxap-ngx-changelog.mjs",
|
|
55
|
+
"esm": "./esm2022/rxap-ngx-changelog.mjs",
|
|
56
|
+
"default": "./fesm2022/rxap-ngx-changelog.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./theme": "./theme.css"
|
|
59
|
+
}
|
|
60
|
+
}
|
package/theme.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.my-4{margin-top:1rem;margin-bottom:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.contents{display:contents}.hidden{display:none}.w-full{width:100%}.max-w-6xl{max-width:72rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.rounded{border-radius:.25rem}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.p-10{padding:2.5rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem}.pb-2,.py-2{padding-bottom:.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.capitalize{text-transform:capitalize}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.drop-shadow-2xl{--tw-drop-shadow:drop-shadow(0 25px 25px #00000026)}.drop-shadow-2xl,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert:invert(100%)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-colors{transition-duration:.15s}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}@media (prefers-color-scheme:dark){.dark\:bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.dark\:bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\:hover\:bg-gray-900:hover{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}}
|