@rxap/ngx-changelog 21.0.1 → 22.0.0-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 +25 -0
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +69 -5
- package/compodoc/components/ChangelogComponent.html +184 -34
- package/compodoc/components/ChangelogDialogComponent.html +127 -59
- package/compodoc/dependencies.html +108 -27
- package/compodoc/index.html +46 -5
- package/compodoc/injectables/ChangelogControllerGetLatestRemoteMethod.html +98 -19
- package/compodoc/injectables/ChangelogControllerGetVersionRemoteMethod.html +98 -19
- package/compodoc/injectables/ChangelogControllerListRemoteMethod.html +98 -19
- package/compodoc/injectables/ChangelogService.html +99 -36
- package/compodoc/interfaces/ChangelogControllerGetLatestParameter.html +114 -64
- package/compodoc/interfaces/ChangelogControllerGetLatestResponse.html +149 -94
- package/compodoc/interfaces/ChangelogControllerGetVersionParameter.html +149 -94
- package/compodoc/interfaces/ChangelogControllerGetVersionResponse.html +149 -94
- package/compodoc/interfaces/ChangelogDto.html +149 -94
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +25 -12
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +135 -0
- package/compodoc/miscellaneous/functions.html +51 -8
- package/compodoc/miscellaneous/typealiases.html +46 -4
- package/compodoc/miscellaneous/variables.html +53 -6
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +2135 -1345
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/ChangelogComponent.html +114 -10
- package/docs/html/classes/ChangelogControllerGetLatestRemoteMethod.html +671 -62
- package/docs/html/classes/ChangelogControllerGetVersionRemoteMethod.html +671 -62
- package/docs/html/classes/ChangelogControllerListRemoteMethod.html +667 -62
- package/docs/html/classes/ChangelogDialogComponent.html +106 -6
- package/docs/html/classes/ChangelogService.html +122 -6
- package/docs/html/functions/ProvideChangelog.html +38 -1
- package/docs/html/hierarchy.html +29 -0
- package/docs/html/index.html +40 -4
- package/docs/html/interfaces/ChangelogControllerGetLatestParameter.html +55 -2
- package/docs/html/interfaces/ChangelogControllerGetLatestResponse.html +61 -3
- package/docs/html/interfaces/ChangelogControllerGetVersionParameter.html +61 -3
- package/docs/html/interfaces/ChangelogControllerGetVersionResponse.html +61 -3
- package/docs/html/interfaces/ChangelogDto.html +61 -3
- package/docs/html/modules.html +52 -1
- package/docs/html/types/ChangelogControllerListResponse.html +33 -1
- package/docs/html/variables/RXAP_CHANGELOG_DISABLED.html +33 -1
- package/docs/html/variables/RXAP_CHANGELOG_LAST_VERSION.html +33 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ChangelogComponent.md +15 -15
- package/docs/markdown/classes/ChangelogControllerGetLatestRemoteMethod.md +97 -97
- package/docs/markdown/classes/ChangelogControllerGetVersionRemoteMethod.md +86 -86
- package/docs/markdown/classes/ChangelogControllerListRemoteMethod.md +86 -86
- package/docs/markdown/classes/ChangelogDialogComponent.md +12 -12
- package/docs/markdown/classes/ChangelogService.md +13 -13
- 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 +3 -3
- 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 +14 -14
- package/docs/wiki/Class.ChangelogControllerGetLatestRemoteMethod.md +96 -96
- package/docs/wiki/Class.ChangelogControllerGetVersionRemoteMethod.md +85 -85
- package/docs/wiki/Class.ChangelogControllerListRemoteMethod.md +85 -85
- package/docs/wiki/Class.ChangelogDialogComponent.md +11 -11
- package/docs/wiki/Class.ChangelogService.md +12 -12
- 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 +2 -2
- 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 +382 -130
- package/fesm2022/rxap-ngx-changelog.mjs.map +1 -1
- package/package.json +31 -31
- package/types/rxap-ngx-changelog.d.ts +79 -89
|
@@ -1,124 +1,177 @@
|
|
|
1
|
-
import { __decorate, __metadata } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { OpenApiRemoteMethod, RxapOpenApiRemoteMethod } from
|
|
5
|
-
import * as i1
|
|
6
|
-
import { FormsModule } from
|
|
7
|
-
import { NgClass } from
|
|
8
|
-
import { MethodTemplateDirective } from
|
|
9
|
-
import { RXAP_ENVIRONMENT } from
|
|
10
|
-
import * as i1 from
|
|
11
|
-
import { MarkdownModule } from
|
|
12
|
-
import { outputToObservable } from
|
|
13
|
-
import { take } from
|
|
14
|
-
import { tap } from
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ApplicationRef, ChangeDetectionStrategy, Component, Injectable, PendingTasks, afterNextRender, computed, createComponent, inject, output, provideAppInitializer, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { OpenApiRemoteMethod, RxapOpenApiRemoteMethod } from "@rxap/open-api/remote-method";
|
|
5
|
+
import * as i1 from "@angular/forms";
|
|
6
|
+
import { FormsModule } from "@angular/forms";
|
|
7
|
+
import { NgClass } from "@angular/common";
|
|
8
|
+
import { MethodTemplateDirective } from "@rxap/directives";
|
|
9
|
+
import { RXAP_ENVIRONMENT } from "@rxap/environment";
|
|
10
|
+
import * as i1$1 from "ngx-markdown";
|
|
11
|
+
import { MarkdownModule } from "ngx-markdown";
|
|
12
|
+
import { outputToObservable } from "@angular/core/rxjs-interop";
|
|
13
|
+
import { take } from "rxjs";
|
|
14
|
+
import { tap } from "rxjs/operators";
|
|
15
15
|
let ChangelogControllerGetLatestRemoteMethod = class ChangelogControllerGetLatestRemoteMethod extends OpenApiRemoteMethod {
|
|
16
16
|
call(parameters) {
|
|
17
17
|
return super.call(parameters);
|
|
18
18
|
}
|
|
19
|
-
static {
|
|
20
|
-
|
|
19
|
+
static {
|
|
20
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
21
|
+
minVersion: "12.0.0",
|
|
22
|
+
version: "22.3.0",
|
|
23
|
+
ngImport: i0,
|
|
24
|
+
type: ChangelogControllerGetLatestRemoteMethod,
|
|
25
|
+
deps: null,
|
|
26
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
static {
|
|
30
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
31
|
+
minVersion: "12.0.0",
|
|
32
|
+
version: "22.3.0",
|
|
33
|
+
ngImport: i0,
|
|
34
|
+
type: ChangelogControllerGetLatestRemoteMethod,
|
|
35
|
+
providedIn: "root"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
21
38
|
};
|
|
22
|
-
ChangelogControllerGetLatestRemoteMethod = __decorate([
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
ChangelogControllerGetLatestRemoteMethod = __decorate([RxapOpenApiRemoteMethod({
|
|
40
|
+
serverId: "service-changelog",
|
|
41
|
+
operationId: "ChangelogController_getLatest",
|
|
42
|
+
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}\"}"
|
|
43
|
+
})], ChangelogControllerGetLatestRemoteMethod);
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
45
|
+
minVersion: "12.0.0",
|
|
46
|
+
version: "22.3.0",
|
|
47
|
+
ngImport: i0,
|
|
48
|
+
type: ChangelogControllerGetLatestRemoteMethod,
|
|
49
|
+
decorators: [{
|
|
30
50
|
type: Injectable,
|
|
31
|
-
args: [{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}] });
|
|
51
|
+
args: [{ providedIn: "root" }]
|
|
52
|
+
}]
|
|
53
|
+
});
|
|
35
54
|
let ChangelogControllerGetVersionRemoteMethod = class ChangelogControllerGetVersionRemoteMethod extends OpenApiRemoteMethod {
|
|
36
55
|
call(parameters) {
|
|
37
56
|
return super.call(parameters);
|
|
38
57
|
}
|
|
39
|
-
static {
|
|
40
|
-
|
|
58
|
+
static {
|
|
59
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
60
|
+
minVersion: "12.0.0",
|
|
61
|
+
version: "22.3.0",
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
type: ChangelogControllerGetVersionRemoteMethod,
|
|
64
|
+
deps: null,
|
|
65
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
static {
|
|
69
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
70
|
+
minVersion: "12.0.0",
|
|
71
|
+
version: "22.3.0",
|
|
72
|
+
ngImport: i0,
|
|
73
|
+
type: ChangelogControllerGetVersionRemoteMethod,
|
|
74
|
+
providedIn: "root"
|
|
75
|
+
});
|
|
76
|
+
}
|
|
41
77
|
};
|
|
42
|
-
ChangelogControllerGetVersionRemoteMethod = __decorate([
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
78
|
+
ChangelogControllerGetVersionRemoteMethod = __decorate([RxapOpenApiRemoteMethod({
|
|
79
|
+
serverId: "service-changelog",
|
|
80
|
+
operationId: "ChangelogController_getVersion",
|
|
81
|
+
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}\"}"
|
|
82
|
+
})], ChangelogControllerGetVersionRemoteMethod);
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
84
|
+
minVersion: "12.0.0",
|
|
85
|
+
version: "22.3.0",
|
|
86
|
+
ngImport: i0,
|
|
87
|
+
type: ChangelogControllerGetVersionRemoteMethod,
|
|
88
|
+
decorators: [{
|
|
50
89
|
type: Injectable,
|
|
51
|
-
args: [{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}] });
|
|
90
|
+
args: [{ providedIn: "root" }]
|
|
91
|
+
}]
|
|
92
|
+
});
|
|
55
93
|
let ChangelogControllerListRemoteMethod = class ChangelogControllerListRemoteMethod extends OpenApiRemoteMethod {
|
|
56
94
|
call() {
|
|
57
95
|
return super.call();
|
|
58
96
|
}
|
|
59
|
-
static {
|
|
60
|
-
|
|
97
|
+
static {
|
|
98
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
99
|
+
minVersion: "12.0.0",
|
|
100
|
+
version: "22.3.0",
|
|
101
|
+
ngImport: i0,
|
|
102
|
+
type: ChangelogControllerListRemoteMethod,
|
|
103
|
+
deps: null,
|
|
104
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
static {
|
|
108
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
109
|
+
minVersion: "12.0.0",
|
|
110
|
+
version: "22.3.0",
|
|
111
|
+
ngImport: i0,
|
|
112
|
+
type: ChangelogControllerListRemoteMethod,
|
|
113
|
+
providedIn: "root"
|
|
114
|
+
});
|
|
115
|
+
}
|
|
61
116
|
};
|
|
62
|
-
ChangelogControllerListRemoteMethod = __decorate([
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
117
|
+
ChangelogControllerListRemoteMethod = __decorate([RxapOpenApiRemoteMethod({
|
|
118
|
+
serverId: "service-changelog",
|
|
119
|
+
operationId: "ChangelogController_list",
|
|
120
|
+
operation: "{\"operationId\":\"ChangelogController_list\",\"parameters\":[],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}}},\"method\":\"get\",\"path\":\"/available-versions\"}"
|
|
121
|
+
})], ChangelogControllerListRemoteMethod);
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
123
|
+
minVersion: "12.0.0",
|
|
124
|
+
version: "22.3.0",
|
|
125
|
+
ngImport: i0,
|
|
126
|
+
type: ChangelogControllerListRemoteMethod,
|
|
127
|
+
decorators: [{
|
|
70
128
|
type: Injectable,
|
|
71
|
-
args: [{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
class ChangelogComponent {
|
|
129
|
+
args: [{ providedIn: "root" }]
|
|
130
|
+
}]
|
|
131
|
+
});
|
|
132
|
+
let ChangelogComponent = class ChangelogComponent {
|
|
76
133
|
constructor() {
|
|
77
|
-
this.availableVersions = signal([], ...
|
|
78
|
-
this.error = signal(null, ...
|
|
79
|
-
this.activeIndex = signal(-1, ...
|
|
134
|
+
this.availableVersions = signal([], ...ngDevMode ? [{ debugName: "availableVersions" }] : /* istanbul ignore next */ []);
|
|
135
|
+
this.error = signal(null, ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
|
|
136
|
+
this.activeIndex = signal(-1, ...ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []);
|
|
80
137
|
this.selectedVersion = computed(() => {
|
|
81
138
|
const activeIndex = this.activeIndex();
|
|
82
139
|
const availableVersions = this.availableVersions();
|
|
83
|
-
if (activeIndex > -1)
|
|
84
|
-
return availableVersions[activeIndex] ??
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}, ...(ngDevMode ? [{ debugName: "selectedVersion" }] : /* istanbul ignore next */ []));
|
|
140
|
+
if (activeIndex > -1)
|
|
141
|
+
return availableVersions[activeIndex] ?? "latest";
|
|
142
|
+
return availableVersions[availableVersions.length - 1] ?? "latest";
|
|
143
|
+
}, ...ngDevMode ? [{ debugName: "selectedVersion" }] : /* istanbul ignore next */ []);
|
|
88
144
|
this.displayedButtons = computed(() => {
|
|
89
145
|
let activeIndex = this.activeIndex();
|
|
90
|
-
if (activeIndex === -1)
|
|
146
|
+
if (activeIndex === -1)
|
|
91
147
|
activeIndex = this.availableVersions().length - 1;
|
|
92
|
-
}
|
|
93
148
|
let start = Math.max(0, activeIndex - 2);
|
|
94
149
|
let end = Math.min(this.availableVersions().length, activeIndex + 3);
|
|
95
150
|
if (end - start < 5) {
|
|
96
|
-
if (start === 0)
|
|
151
|
+
if (start === 0)
|
|
97
152
|
end += 5 - (end - start);
|
|
98
|
-
|
|
99
|
-
else {
|
|
153
|
+
else
|
|
100
154
|
start -= 5 - (end - start);
|
|
101
|
-
}
|
|
102
155
|
}
|
|
103
156
|
end = Math.min(this.availableVersions().length, end);
|
|
104
157
|
start = Math.max(0, start);
|
|
105
158
|
return Array.from({ length: end - start }, (_, i) => ({
|
|
106
159
|
index: start + i,
|
|
107
|
-
version: this.availableVersions()[start + i]
|
|
160
|
+
version: this.availableVersions()[start + i]
|
|
108
161
|
}));
|
|
109
|
-
}, ...
|
|
162
|
+
}, ...ngDevMode ? [{ debugName: "displayedButtons" }] : /* istanbul ignore next */ []);
|
|
110
163
|
this.application = inject(RXAP_ENVIRONMENT).app;
|
|
111
164
|
this.getChangelogMethod = inject(ChangelogControllerGetVersionRemoteMethod);
|
|
112
|
-
this.getChangelogMethodParameters = computed(() => ({
|
|
113
|
-
parameters: {
|
|
165
|
+
this.getChangelogMethodParameters = computed(() => ({ parameters: {
|
|
114
166
|
version: this.selectedVersion(),
|
|
115
|
-
application: this.application
|
|
116
|
-
},
|
|
117
|
-
}), ...(ngDevMode ? [{ debugName: "getChangelogMethodParameters" }] : /* istanbul ignore next */ []));
|
|
167
|
+
application: this.application
|
|
168
|
+
} }), ...ngDevMode ? [{ debugName: "getChangelogMethodParameters" }] : /* istanbul ignore next */ []);
|
|
118
169
|
this.getAvailableVersionsMethod = inject(ChangelogControllerListRemoteMethod);
|
|
170
|
+
this.pendingTasks = inject(PendingTasks);
|
|
119
171
|
this.loadAvailableVersions();
|
|
120
172
|
}
|
|
121
173
|
async loadAvailableVersions() {
|
|
174
|
+
const removeTask = this.pendingTasks.add();
|
|
122
175
|
try {
|
|
123
176
|
const availableVersions = await this.getAvailableVersionsMethod.call();
|
|
124
177
|
this.availableVersions.set(availableVersions);
|
|
@@ -127,109 +180,308 @@ class ChangelogComponent {
|
|
|
127
180
|
catch (e) {
|
|
128
181
|
this.error.set(e.message);
|
|
129
182
|
}
|
|
183
|
+
finally {
|
|
184
|
+
removeTask();
|
|
185
|
+
}
|
|
130
186
|
}
|
|
131
|
-
static {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
187
|
+
static {
|
|
188
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
189
|
+
minVersion: "12.0.0",
|
|
190
|
+
version: "22.3.0",
|
|
191
|
+
ngImport: i0,
|
|
192
|
+
type: ChangelogComponent,
|
|
193
|
+
deps: [],
|
|
194
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
static {
|
|
198
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
199
|
+
minVersion: "17.0.0",
|
|
200
|
+
version: "22.3.0",
|
|
201
|
+
type: ChangelogComponent,
|
|
202
|
+
isStandalone: true,
|
|
203
|
+
selector: "rxap-changelog",
|
|
204
|
+
ngImport: i0,
|
|
205
|
+
template: "@if (error()) {\n <h2 class=\"text-2xl pb-2\" i18n>Something has gone wrong!</h2>\n <p i18n>Unable to load the application changelog</p>\n} @else {\n <div class=\"flex flex-col gap-3\">\n @if (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 @for (item of displayedButtons(); track item) {\n <button (click)=\"activeIndex.set(item.index)\"\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 }\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 }\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 @for (general of changelog.general; track general) {\n <markdown [data]=\"general\" class=\"prose dark:prose-invert\">\n </markdown>\n }\n @for (application of changelog.application; track application) {\n <markdown [data]=\"application\" class=\"prose dark:prose-invert\">\n </markdown>\n }\n </ng-container>\n </div>\n </div>\n }\n",
|
|
206
|
+
styles: [""],
|
|
207
|
+
dependencies: [
|
|
208
|
+
{
|
|
209
|
+
kind: "directive",
|
|
210
|
+
type: MethodTemplateDirective,
|
|
211
|
+
selector: "[rxapMethod]",
|
|
212
|
+
inputs: [
|
|
213
|
+
"rxapMethodCall",
|
|
214
|
+
"rxapMethodParameters",
|
|
215
|
+
"rxapMethodError",
|
|
216
|
+
"rxapMethodLoading",
|
|
217
|
+
"rxapMethodWithoutParameters",
|
|
218
|
+
"immediately"
|
|
219
|
+
],
|
|
220
|
+
outputs: [
|
|
221
|
+
"executed",
|
|
222
|
+
"failure",
|
|
223
|
+
"successful",
|
|
224
|
+
"executing",
|
|
225
|
+
"embedded"
|
|
226
|
+
],
|
|
227
|
+
exportAs: ["rxapMethod"]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
kind: "ngmodule",
|
|
231
|
+
type: MarkdownModule
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
kind: "component",
|
|
235
|
+
type: i1$1.MarkdownComponent,
|
|
236
|
+
selector: "markdown, [markdown]",
|
|
237
|
+
inputs: [
|
|
238
|
+
"data",
|
|
239
|
+
"src",
|
|
240
|
+
"disableSanitizer",
|
|
241
|
+
"inline",
|
|
242
|
+
"clipboard",
|
|
243
|
+
"clipboardButtonComponent",
|
|
244
|
+
"clipboardButtonTemplate",
|
|
245
|
+
"emoji",
|
|
246
|
+
"katex",
|
|
247
|
+
"katexOptions",
|
|
248
|
+
"mermaid",
|
|
249
|
+
"mermaidOptions",
|
|
250
|
+
"lineHighlight",
|
|
251
|
+
"line",
|
|
252
|
+
"lineOffset",
|
|
253
|
+
"lineNumbers",
|
|
254
|
+
"start",
|
|
255
|
+
"commandLine",
|
|
256
|
+
"filterOutput",
|
|
257
|
+
"host",
|
|
258
|
+
"prompt",
|
|
259
|
+
"output",
|
|
260
|
+
"user"
|
|
261
|
+
],
|
|
262
|
+
outputs: [
|
|
263
|
+
"error",
|
|
264
|
+
"load",
|
|
265
|
+
"ready"
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
kind: "directive",
|
|
270
|
+
type: NgClass,
|
|
271
|
+
selector: "[ngClass]",
|
|
272
|
+
inputs: ["class", "ngClass"]
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
ChangelogComponent = __decorate([
|
|
280
|
+
__metadata("design:paramtypes", [])], ChangelogComponent);
|
|
281
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
282
|
+
minVersion: "12.0.0",
|
|
283
|
+
version: "22.3.0",
|
|
284
|
+
ngImport: i0,
|
|
285
|
+
type: ChangelogComponent,
|
|
286
|
+
decorators: [{
|
|
135
287
|
type: Component,
|
|
136
|
-
args: [{
|
|
288
|
+
args: [{
|
|
289
|
+
selector: "rxap-changelog",
|
|
290
|
+
imports: [
|
|
137
291
|
MethodTemplateDirective,
|
|
138
292
|
MarkdownModule,
|
|
139
293
|
NgClass
|
|
140
|
-
],
|
|
141
|
-
|
|
294
|
+
],
|
|
295
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
296
|
+
template: "@if (error()) {\n <h2 class=\"text-2xl pb-2\" i18n>Something has gone wrong!</h2>\n <p i18n>Unable to load the application changelog</p>\n} @else {\n <div class=\"flex flex-col gap-3\">\n @if (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 @for (item of displayedButtons(); track item) {\n <button (click)=\"activeIndex.set(item.index)\"\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 }\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 }\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 @for (general of changelog.general; track general) {\n <markdown [data]=\"general\" class=\"prose dark:prose-invert\">\n </markdown>\n }\n @for (application of changelog.application; track application) {\n <markdown [data]=\"application\" class=\"prose dark:prose-invert\">\n </markdown>\n }\n </ng-container>\n </div>\n </div>\n }\n"
|
|
297
|
+
}]
|
|
298
|
+
}],
|
|
299
|
+
ctorParameters: () => []
|
|
300
|
+
});
|
|
142
301
|
let ChangelogDialogComponent = class ChangelogDialogComponent {
|
|
143
302
|
constructor() {
|
|
144
|
-
this.dialog = viewChild.required(
|
|
303
|
+
this.dialog = viewChild.required("dialog", ...ngDevMode ? [{ debugName: "dialog" }] : /* istanbul ignore next */ []);
|
|
145
304
|
this.closeDialog = output();
|
|
146
|
-
this.remember = signal(true, ...
|
|
305
|
+
this.remember = signal(true, ...ngDevMode ? [{ debugName: "remember" }] : /* istanbul ignore next */ []);
|
|
147
306
|
afterNextRender(() => this.dialog().nativeElement.showModal());
|
|
148
307
|
}
|
|
149
308
|
close(remember = this.remember()) {
|
|
150
309
|
this.dialog().nativeElement.close();
|
|
151
310
|
this.closeDialog.emit(remember);
|
|
152
311
|
}
|
|
153
|
-
static {
|
|
154
|
-
|
|
312
|
+
static {
|
|
313
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
314
|
+
minVersion: "12.0.0",
|
|
315
|
+
version: "22.3.0",
|
|
316
|
+
ngImport: i0,
|
|
317
|
+
type: ChangelogDialogComponent,
|
|
318
|
+
deps: [],
|
|
319
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
static {
|
|
323
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
324
|
+
minVersion: "17.2.0",
|
|
325
|
+
version: "22.3.0",
|
|
326
|
+
type: ChangelogDialogComponent,
|
|
327
|
+
isStandalone: true,
|
|
328
|
+
selector: "rxap-changelog-dialog",
|
|
329
|
+
outputs: { closeDialog: "closeDialog" },
|
|
330
|
+
viewQueries: [{
|
|
331
|
+
propertyName: "dialog",
|
|
332
|
+
first: true,
|
|
333
|
+
predicate: ["dialog"],
|
|
334
|
+
descendants: true,
|
|
335
|
+
isSignal: true
|
|
336
|
+
}],
|
|
337
|
+
ngImport: i0,
|
|
338
|
+
template: "<dialog #dialog\n class=\"max-w-6xl rounded overflow-auto drop-shadow-2xl bg-white text-black 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",
|
|
339
|
+
styles: ["dialog::backdrop{background:#000000b3}\n"],
|
|
340
|
+
dependencies: [
|
|
341
|
+
{
|
|
342
|
+
kind: "component",
|
|
343
|
+
type: ChangelogComponent,
|
|
344
|
+
selector: "rxap-changelog"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
kind: "ngmodule",
|
|
348
|
+
type: FormsModule
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
kind: "directive",
|
|
352
|
+
type: i1.CheckboxControlValueAccessor,
|
|
353
|
+
selector: "input[type=checkbox]:not([ngNoCva])[formControlName],input[type=checkbox]:not([ngNoCva])[formControl],input[type=checkbox]:not([ngNoCva])[ngModel]"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
kind: "directive",
|
|
357
|
+
type: i1.NgControlStatus,
|
|
358
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
kind: "directive",
|
|
362
|
+
type: i1.NgModel,
|
|
363
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
364
|
+
inputs: [
|
|
365
|
+
"name",
|
|
366
|
+
"disabled",
|
|
367
|
+
"ngModel",
|
|
368
|
+
"ngModelOptions"
|
|
369
|
+
],
|
|
370
|
+
outputs: ["ngModelChange"],
|
|
371
|
+
exportAs: ["ngModel"]
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
375
|
+
});
|
|
376
|
+
}
|
|
155
377
|
};
|
|
156
378
|
ChangelogDialogComponent = __decorate([
|
|
157
|
-
__metadata("design:paramtypes", [])
|
|
158
|
-
|
|
159
|
-
|
|
379
|
+
__metadata("design:paramtypes", [])], ChangelogDialogComponent);
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
381
|
+
minVersion: "12.0.0",
|
|
382
|
+
version: "22.3.0",
|
|
383
|
+
ngImport: i0,
|
|
384
|
+
type: ChangelogDialogComponent,
|
|
385
|
+
decorators: [{
|
|
160
386
|
type: Component,
|
|
161
|
-
args: [{
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
class
|
|
387
|
+
args: [{
|
|
388
|
+
selector: "rxap-changelog-dialog",
|
|
389
|
+
imports: [ChangelogComponent, FormsModule],
|
|
390
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
391
|
+
template: "<dialog #dialog\n class=\"max-w-6xl rounded overflow-auto drop-shadow-2xl bg-white text-black 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",
|
|
392
|
+
styles: ["dialog::backdrop{background:#000000b3}\n"]
|
|
393
|
+
}]
|
|
394
|
+
}],
|
|
395
|
+
ctorParameters: () => [],
|
|
396
|
+
propDecorators: {
|
|
397
|
+
dialog: [{
|
|
398
|
+
type: i0.ViewChild,
|
|
399
|
+
args: ["dialog", { isSignal: true }]
|
|
400
|
+
}],
|
|
401
|
+
closeDialog: [{
|
|
402
|
+
type: i0.Output,
|
|
403
|
+
args: ["closeDialog"]
|
|
404
|
+
}]
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
const RXAP_CHANGELOG_LAST_VERSION = "RXAP_CHANGELOG_LAST_VERSION";
|
|
408
|
+
const RXAP_CHANGELOG_DISABLED = "RXAP_CHANGELOG_DISABLED";
|
|
409
|
+
var ChangelogService = class ChangelogService {
|
|
166
410
|
constructor() {
|
|
167
411
|
this.version = inject(RXAP_ENVIRONMENT).name;
|
|
168
412
|
this.applicationRef = inject(ApplicationRef);
|
|
169
413
|
}
|
|
170
414
|
showChangelogDialog() {
|
|
171
|
-
const body = document.getElementsByTagName(
|
|
172
|
-
const div = document.createElement(
|
|
415
|
+
const body = document.getElementsByTagName("body")[0];
|
|
416
|
+
const div = document.createElement("div");
|
|
173
417
|
body.appendChild(div);
|
|
174
418
|
const componentRef = createComponent(ChangelogDialogComponent, {
|
|
175
419
|
hostElement: div,
|
|
176
|
-
environmentInjector: this.applicationRef.injector
|
|
420
|
+
environmentInjector: this.applicationRef.injector
|
|
177
421
|
});
|
|
178
422
|
this.applicationRef.attachView(componentRef.hostView);
|
|
179
|
-
outputToObservable(componentRef.instance.closeDialog).pipe(take(1), tap(remember => {
|
|
423
|
+
outputToObservable(componentRef.instance.closeDialog).pipe(take(1), tap((remember) => {
|
|
180
424
|
componentRef.destroy();
|
|
181
|
-
// destroy() already detaches the host element; remove() is a no-op then
|
|
182
425
|
div.remove();
|
|
183
|
-
if (remember && this.version)
|
|
426
|
+
if (remember && this.version)
|
|
184
427
|
this.lastVersion = this.version;
|
|
185
|
-
}
|
|
186
428
|
})).subscribe();
|
|
187
429
|
}
|
|
188
430
|
get isDisabled() {
|
|
189
|
-
return localStorage.getItem(RXAP_CHANGELOG_DISABLED) ===
|
|
431
|
+
return localStorage.getItem(RXAP_CHANGELOG_DISABLED) === "true";
|
|
190
432
|
}
|
|
191
433
|
get lastVersion() {
|
|
192
434
|
return localStorage.getItem(RXAP_CHANGELOG_LAST_VERSION);
|
|
193
435
|
}
|
|
194
436
|
set lastVersion(version) {
|
|
195
|
-
if (version)
|
|
437
|
+
if (version)
|
|
196
438
|
localStorage.setItem(RXAP_CHANGELOG_LAST_VERSION, version);
|
|
197
|
-
|
|
198
|
-
else {
|
|
439
|
+
else
|
|
199
440
|
localStorage.removeItem(RXAP_CHANGELOG_LAST_VERSION);
|
|
200
|
-
}
|
|
201
441
|
}
|
|
202
442
|
showChangelogDialogIfNewVersion() {
|
|
203
|
-
if (this.isDisabled)
|
|
443
|
+
if (this.isDisabled)
|
|
204
444
|
return;
|
|
205
|
-
}
|
|
206
445
|
const lastVersion = this.lastVersion;
|
|
207
|
-
if (this.version && lastVersion && this.version !== lastVersion)
|
|
446
|
+
if (this.version && lastVersion && this.version !== lastVersion)
|
|
208
447
|
this.lastVersion = null;
|
|
209
|
-
|
|
210
|
-
if (this.lastVersion === this.version) {
|
|
448
|
+
if (this.lastVersion === this.version)
|
|
211
449
|
return;
|
|
212
|
-
}
|
|
213
450
|
this.showChangelogDialog();
|
|
214
451
|
}
|
|
215
|
-
static {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
452
|
+
static {
|
|
453
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
454
|
+
minVersion: "12.0.0",
|
|
455
|
+
version: "22.3.0",
|
|
456
|
+
ngImport: i0,
|
|
457
|
+
type: ChangelogService,
|
|
458
|
+
deps: [],
|
|
459
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
static {
|
|
463
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
464
|
+
minVersion: "12.0.0",
|
|
465
|
+
version: "22.3.0",
|
|
466
|
+
ngImport: i0,
|
|
467
|
+
type: ChangelogService,
|
|
468
|
+
providedIn: "root"
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
473
|
+
minVersion: "12.0.0",
|
|
474
|
+
version: "22.3.0",
|
|
475
|
+
ngImport: i0,
|
|
476
|
+
type: ChangelogService,
|
|
477
|
+
decorators: [{
|
|
219
478
|
type: Injectable,
|
|
220
|
-
args: [{
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}] });
|
|
479
|
+
args: [{ providedIn: "root" }]
|
|
480
|
+
}]
|
|
481
|
+
});
|
|
224
482
|
function ProvideChangelog() {
|
|
225
483
|
return provideAppInitializer(() => {
|
|
226
|
-
|
|
227
|
-
return initializerFn();
|
|
484
|
+
return ((changelogService) => () => changelogService.showChangelogDialogIfNewVersion())(inject(ChangelogService))();
|
|
228
485
|
});
|
|
229
486
|
}
|
|
230
|
-
// region openapi responses
|
|
231
|
-
// endregion
|
|
232
|
-
/**
|
|
233
|
-
* Generated bundle index. Do not edit.
|
|
234
|
-
*/
|
|
235
487
|
export { ChangelogComponent, ChangelogControllerGetLatestRemoteMethod, ChangelogControllerGetVersionRemoteMethod, ChangelogControllerListRemoteMethod, ChangelogDialogComponent, ChangelogService, ProvideChangelog, RXAP_CHANGELOG_DISABLED, RXAP_CHANGELOG_LAST_VERSION };
|