@valtimo/plugin-management 0.0.0-test

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.
@@ -0,0 +1,837 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, EventEmitter, Output, Input, NgModule } from '@angular/core';
3
+ import { Subject, BehaviorSubject, combineLatest, of } from 'rxjs';
4
+ import { map, take, switchMap, tap } from 'rxjs/operators';
5
+ import * as i2 from '@valtimo/plugin';
6
+ import { PLUGIN_CATALOG_TEST_IDS, PluginTranslatePipeModule, PluginConfigurationContainerModule } from '@valtimo/plugin';
7
+ import * as i2$1 from '@angular/platform-browser';
8
+ import * as i1 from '@angular/router';
9
+ import { RouterModule } from '@angular/router';
10
+ import * as i3 from '@angular/common';
11
+ import { CommonModule } from '@angular/common';
12
+ import { AuthGuardService } from '@valtimo/security';
13
+ import { ROLE_ADMIN } from '@valtimo/shared';
14
+ import * as i4 from '@valtimo/components';
15
+ import { CARBON_CONSTANTS, ViewType, ParagraphModule, TableModule, StepperModule, VModalModule, CarbonListModule, ValtimoCdsModalDirective } from '@valtimo/components';
16
+ import { cloneDeep } from 'lodash';
17
+ import { v4 } from 'uuid';
18
+ import * as i3$1 from 'ngx-logger';
19
+ import * as i4$1 from '@ngx-translate/core';
20
+ import { TranslateModule } from '@ngx-translate/core';
21
+ import * as i5 from 'carbon-components-angular';
22
+ import { ButtonModule, ModalModule, IconModule, LayerModule, TilesModule, LoadingModule } from 'carbon-components-angular';
23
+
24
+ /*
25
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
26
+ *
27
+ * Licensed under EUPL, Version 1.2 (the "License");
28
+ * you may not use this file except in compliance with the License.
29
+ * You may obtain a copy of the License at
30
+ *
31
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
32
+ *
33
+ * Unless required by applicable law or agreed to in writing, software
34
+ * distributed under the License is distributed on an "AS IS" basis,
35
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36
+ * See the License for the specific language governing permissions and
37
+ * limitations under the License.
38
+ */
39
+
40
+ /*
41
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
42
+ *
43
+ * Licensed under EUPL, Version 1.2 (the "License");
44
+ * you may not use this file except in compliance with the License.
45
+ * You may obtain a copy of the License at
46
+ *
47
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
48
+ *
49
+ * Unless required by applicable law or agreed to in writing, software
50
+ * distributed under the License is distributed on an "AS IS" basis,
51
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
52
+ * See the License for the specific language governing permissions and
53
+ * limitations under the License.
54
+ */
55
+
56
+ /*
57
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
58
+ *
59
+ * Licensed under EUPL, Version 1.2 (the "License");
60
+ * you may not use this file except in compliance with the License.
61
+ * You may obtain a copy of the License at
62
+ *
63
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
64
+ *
65
+ * Unless required by applicable law or agreed to in writing, software
66
+ * distributed under the License is distributed on an "AS IS" basis,
67
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68
+ * See the License for the specific language governing permissions and
69
+ * limitations under the License.
70
+ */
71
+ class PluginManagementStateService {
72
+ constructor(pluginService, sanitizer) {
73
+ this.pluginService = pluginService;
74
+ this.sanitizer = sanitizer;
75
+ this._showModal$ = new Subject();
76
+ this._hideModal$ = new Subject();
77
+ this._inputDisabled$ = new BehaviorSubject(false);
78
+ this._refresh$ = new BehaviorSubject(null);
79
+ this._save$ = new Subject();
80
+ this._saveEdit$ = new Subject();
81
+ this._delete$ = new Subject();
82
+ this._hideModalSaveButton$ = new BehaviorSubject(false);
83
+ this._pluginDefinitions$ = new BehaviorSubject(undefined);
84
+ this._pluginDefinitionsWithLogos$ = combineLatest([
85
+ this._pluginDefinitions$,
86
+ this.pluginService.pluginSpecifications$,
87
+ this.pluginService.availablePluginIds$,
88
+ ]).pipe(map(([pluginDefinitions, pluginSpecifications, availablePluginIds]) => pluginDefinitions
89
+ ?.filter(pluginDefinition => availablePluginIds.includes(pluginDefinition.key))
90
+ .map(pluginDefinition => {
91
+ const pluginSpecification = pluginSpecifications.find(specification => specification.pluginId === pluginDefinition.key);
92
+ return {
93
+ ...pluginDefinition,
94
+ ...(pluginSpecification?.pluginLogoBase64 && {
95
+ pluginLogoBase64: this.sanitizer.bypassSecurityTrustResourceUrl(pluginSpecification?.pluginLogoBase64),
96
+ }),
97
+ };
98
+ })));
99
+ this._selectedPluginDefinition$ = new BehaviorSubject(undefined);
100
+ this._selectedPluginConfiguration$ = new BehaviorSubject(undefined);
101
+ }
102
+ get showModal$() {
103
+ return this._showModal$.asObservable();
104
+ }
105
+ get hideModal$() {
106
+ return this._hideModal$.asObservable();
107
+ }
108
+ get inputDisabled$() {
109
+ return this._inputDisabled$.asObservable();
110
+ }
111
+ get refresh$() {
112
+ return this._refresh$.asObservable();
113
+ }
114
+ get pluginDefinitions$() {
115
+ return this._pluginDefinitions$.asObservable();
116
+ }
117
+ get pluginDefinitionsWithLogos$() {
118
+ return this._pluginDefinitionsWithLogos$;
119
+ }
120
+ get selectedPluginDefinition$() {
121
+ return this._selectedPluginDefinition$.asObservable();
122
+ }
123
+ get selectedPluginConfiguration$() {
124
+ return this._selectedPluginConfiguration$.asObservable();
125
+ }
126
+ get save$() {
127
+ return this._save$.asObservable();
128
+ }
129
+ get saveEdit$() {
130
+ return this._saveEdit$.asObservable();
131
+ }
132
+ get delete$() {
133
+ return this._delete$.asObservable();
134
+ }
135
+ get hideModalSaveButton$() {
136
+ return this._hideModalSaveButton$.asObservable();
137
+ }
138
+ showModal(modalType) {
139
+ this._showModal$.next(modalType);
140
+ }
141
+ hideModal() {
142
+ this._hideModal$.next(null);
143
+ }
144
+ disableInput() {
145
+ this._inputDisabled$.next(true);
146
+ }
147
+ enableInput() {
148
+ this._inputDisabled$.next(false);
149
+ }
150
+ refresh() {
151
+ this._refresh$.next(null);
152
+ }
153
+ setPluginDefinitions(definitions) {
154
+ this._pluginDefinitions$.next(definitions);
155
+ }
156
+ selectPluginDefinition(definition) {
157
+ this._selectedPluginDefinition$.next(definition);
158
+ }
159
+ selectPluginConfiguration(configuration) {
160
+ this._selectedPluginConfiguration$.next(configuration);
161
+ }
162
+ clearSelectedPluginDefinition() {
163
+ this._selectedPluginDefinition$.next(undefined);
164
+ }
165
+ clearSelectedPluginConfiguration() {
166
+ this._selectedPluginConfiguration$.next(undefined);
167
+ }
168
+ save() {
169
+ this._save$.next(null);
170
+ }
171
+ saveEdit() {
172
+ this._saveEdit$.next(null);
173
+ }
174
+ delete() {
175
+ this._delete$.next(null);
176
+ }
177
+ hideModalSaveButton() {
178
+ this._hideModalSaveButton$.next(true);
179
+ }
180
+ showModalSaveButton() {
181
+ this._hideModalSaveButton$.next(false);
182
+ }
183
+ clear() {
184
+ this.clearSelectedPluginDefinition();
185
+ this.clearSelectedPluginConfiguration();
186
+ }
187
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementStateService, deps: [{ token: i2.PluginService }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable }); }
188
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementStateService, providedIn: 'root' }); }
189
+ }
190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementStateService, decorators: [{
191
+ type: Injectable,
192
+ args: [{
193
+ providedIn: 'root',
194
+ }]
195
+ }], ctorParameters: () => [{ type: i2.PluginService }, { type: i2$1.DomSanitizer }] });
196
+
197
+ /*
198
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
199
+ *
200
+ * Licensed under EUPL, Version 1.2 (the "License");
201
+ * you may not use this file except in compliance with the License.
202
+ * You may obtain a copy of the License at
203
+ *
204
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
205
+ *
206
+ * Unless required by applicable law or agreed to in writing, software
207
+ * distributed under the License is distributed on an "AS IS" basis,
208
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
209
+ * See the License for the specific language governing permissions and
210
+ * limitations under the License.
211
+ */
212
+
213
+ /*
214
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
215
+ *
216
+ * Licensed under EUPL, Version 1.2 (the "License");
217
+ * you may not use this file except in compliance with the License.
218
+ * You may obtain a copy of the License at
219
+ *
220
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
221
+ *
222
+ * Unless required by applicable law or agreed to in writing, software
223
+ * distributed under the License is distributed on an "AS IS" basis,
224
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
225
+ * See the License for the specific language governing permissions and
226
+ * limitations under the License.
227
+ */
228
+ class PluginAddSelectComponent {
229
+ constructor(pluginManagementService, stateService) {
230
+ this.pluginManagementService = pluginManagementService;
231
+ this.stateService = stateService;
232
+ this.selectedPluginDefinition$ = this.stateService.selectedPluginDefinition$;
233
+ this.disabled$ = this.stateService.inputDisabled$;
234
+ this.pluginDefinitionsWithLogos$ = this.stateService.pluginDefinitionsWithLogos$;
235
+ this.testIds = PLUGIN_CATALOG_TEST_IDS;
236
+ }
237
+ ngOnInit() {
238
+ this.openRefreshSubscription();
239
+ this.getPluginDefinitions();
240
+ }
241
+ ngOnDestroy() {
242
+ this.refreshSubscription?.unsubscribe();
243
+ }
244
+ selectPluginDefinition(event) {
245
+ this.stateService.selectPluginDefinition(event.value);
246
+ }
247
+ deselectPluginDefinition() {
248
+ this.stateService.clearSelectedPluginDefinition();
249
+ }
250
+ getPluginDefinitions() {
251
+ this.pluginManagementService.getPluginDefinitions().subscribe(pluginDefinitions => {
252
+ this.stateService.setPluginDefinitions(pluginDefinitions);
253
+ });
254
+ }
255
+ openRefreshSubscription() {
256
+ this.refreshSubscription = combineLatest([
257
+ this.stateService.showModal$,
258
+ this.stateService.refresh$,
259
+ ]).subscribe(() => {
260
+ this.stateService.clearSelectedPluginDefinition();
261
+ });
262
+ }
263
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginAddSelectComponent, deps: [{ token: i2.PluginManagementService }, { token: PluginManagementStateService }], target: i0.ɵɵFactoryTarget.Component }); }
264
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: PluginAddSelectComponent, isStandalone: false, selector: "valtimo-plugin-add-select", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"pluginDefinitionsWithLogos$ | async as pluginDefinitions; else loading\">\n <div class=\"plugin-definition__grid\" [attr.data-test-id]=\"testIds.tileGrid\">\n <ng-container\n *ngTemplateOutlet=\"pluginDefinitionsTemplate; context: {pluginDefinitions: pluginDefinitions}\"\n ></ng-container>\n <ng-container\n *ngTemplateOutlet=\"\n noPluginDefinitionsTemplate;\n context: {pluginDefinitions: pluginDefinitions}\n \"\n ></ng-container>\n </div>\n</ng-container>\n\n<ng-template #noPluginDefinitionsTemplate let-pluginDefinitions=\"pluginDefinitions\">\n <div *ngIf=\"pluginDefinitions?.length === 0\" class=\"plugin-definition__no-results\">\n <v-paragraph [center]=\"true\" [fullWidth]=\"true\">{{\n 'pluginManagement.noDefinitions' | translate\n }}</v-paragraph>\n </div>\n</ng-template>\n\n<ng-template #pluginDefinitionsTemplate let-pluginDefinitions=\"pluginDefinitions\">\n <cds-tile-group [multiple]=\"false\" (selected)=\"selectPluginDefinition($event)\" [cdsLayer]=\"1\">\n <cds-selection-tile\n *ngFor=\"let pluginDefinition of pluginDefinitions\"\n [value]=\"pluginDefinition\"\n [selected]=\"(selectedPluginDefinition$ | async)?.key === pluginDefinition.key\"\n >\n <img\n class=\"plugin-definition-logo\"\n [title]=\"'title' | pluginTranslate: pluginDefinition.key | async\"\n [src]=\"pluginDefinition.pluginLogoBase64\"\n [attr.data-test-id]=\"testIds.tileLogo\"\n />\n\n <h5 [attr.data-test-id]=\"testIds.tileTitle\">\n {{ 'title' | pluginTranslate: pluginDefinition.key | async }}\n </h5>\n\n <p [attr.data-test-id]=\"testIds.tileDescription\">\n {{ 'description' | pluginTranslate: pluginDefinition.key | async }}\n </p>\n </cds-selection-tile>\n </cds-tile-group>\n</ng-template>\n\n<ng-template #loading>\n <div class=\"plugin-definition__grid\">\n <ng-container *ngTemplateOutlet=\"loadingCard\"></ng-container>\n <ng-container *ngTemplateOutlet=\"loadingCard\"></ng-container>\n <ng-container *ngTemplateOutlet=\"loadingCard\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #loadingCard>\n <div class=\"plugin-definition__item\">\n <cds-loading size=\"sm\"></cds-loading>\n </div>\n</ng-template>\n", styles: [".btn-back{position:absolute}.cards-container{display:flex;flex-flow:row wrap;width:100%}.card{width:calc(33.3% - 20px);margin-right:30px}.card:nth-child(3n+3){margin-right:0}.card-header{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.plugin-definition-logo{object-fit:contain;height:60px;width:100%}.plugin-definition__grid{flex-flow:wrap;box-sizing:border-box;display:flex;margin:0 -22px -22px 0}.plugin-definition__item{flex:1 1 33.3%;box-sizing:border-box;max-width:33.3%;padding:0 22px 22px 0}.plugin-definition__no-results{box-sizing:border-box;flex:1 1 100%;padding:0 22px 22px 0}:host ::ng-deep fieldset{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;width:calc(100% - 24px)}:host ::ng-deep .cds--tile--selectable{height:100%;padding:16px}:host ::ng-deep .cds--tile-content{display:flex;flex-direction:column;gap:16px;color:var(--cds-text-primary)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic", "loading", "dataTestId"] }, { kind: "directive", type: i5.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "component", type: i5.SelectionTile, selector: "cds-selection-tile, ibm-selection-tile", inputs: ["theme", "id", "selected", "value", "disabled"], outputs: ["change"] }, { kind: "component", type: i5.TileGroup, selector: "cds-tile-group, ibm-tile-group", inputs: ["name", "multiple", "legend"], outputs: ["selected"] }, { kind: "component", type: i5.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: i2.PluginTranslatePipe, name: "pluginTranslate" }] }); }
265
+ }
266
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginAddSelectComponent, decorators: [{
267
+ type: Component,
268
+ args: [{ standalone: false, selector: 'valtimo-plugin-add-select', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"pluginDefinitionsWithLogos$ | async as pluginDefinitions; else loading\">\n <div class=\"plugin-definition__grid\" [attr.data-test-id]=\"testIds.tileGrid\">\n <ng-container\n *ngTemplateOutlet=\"pluginDefinitionsTemplate; context: {pluginDefinitions: pluginDefinitions}\"\n ></ng-container>\n <ng-container\n *ngTemplateOutlet=\"\n noPluginDefinitionsTemplate;\n context: {pluginDefinitions: pluginDefinitions}\n \"\n ></ng-container>\n </div>\n</ng-container>\n\n<ng-template #noPluginDefinitionsTemplate let-pluginDefinitions=\"pluginDefinitions\">\n <div *ngIf=\"pluginDefinitions?.length === 0\" class=\"plugin-definition__no-results\">\n <v-paragraph [center]=\"true\" [fullWidth]=\"true\">{{\n 'pluginManagement.noDefinitions' | translate\n }}</v-paragraph>\n </div>\n</ng-template>\n\n<ng-template #pluginDefinitionsTemplate let-pluginDefinitions=\"pluginDefinitions\">\n <cds-tile-group [multiple]=\"false\" (selected)=\"selectPluginDefinition($event)\" [cdsLayer]=\"1\">\n <cds-selection-tile\n *ngFor=\"let pluginDefinition of pluginDefinitions\"\n [value]=\"pluginDefinition\"\n [selected]=\"(selectedPluginDefinition$ | async)?.key === pluginDefinition.key\"\n >\n <img\n class=\"plugin-definition-logo\"\n [title]=\"'title' | pluginTranslate: pluginDefinition.key | async\"\n [src]=\"pluginDefinition.pluginLogoBase64\"\n [attr.data-test-id]=\"testIds.tileLogo\"\n />\n\n <h5 [attr.data-test-id]=\"testIds.tileTitle\">\n {{ 'title' | pluginTranslate: pluginDefinition.key | async }}\n </h5>\n\n <p [attr.data-test-id]=\"testIds.tileDescription\">\n {{ 'description' | pluginTranslate: pluginDefinition.key | async }}\n </p>\n </cds-selection-tile>\n </cds-tile-group>\n</ng-template>\n\n<ng-template #loading>\n <div class=\"plugin-definition__grid\">\n <ng-container *ngTemplateOutlet=\"loadingCard\"></ng-container>\n <ng-container *ngTemplateOutlet=\"loadingCard\"></ng-container>\n <ng-container *ngTemplateOutlet=\"loadingCard\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #loadingCard>\n <div class=\"plugin-definition__item\">\n <cds-loading size=\"sm\"></cds-loading>\n </div>\n</ng-template>\n", styles: [".btn-back{position:absolute}.cards-container{display:flex;flex-flow:row wrap;width:100%}.card{width:calc(33.3% - 20px);margin-right:30px}.card:nth-child(3n+3){margin-right:0}.card-header{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.plugin-definition-logo{object-fit:contain;height:60px;width:100%}.plugin-definition__grid{flex-flow:wrap;box-sizing:border-box;display:flex;margin:0 -22px -22px 0}.plugin-definition__item{flex:1 1 33.3%;box-sizing:border-box;max-width:33.3%;padding:0 22px 22px 0}.plugin-definition__no-results{box-sizing:border-box;flex:1 1 100%;padding:0 22px 22px 0}:host ::ng-deep fieldset{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;width:calc(100% - 24px)}:host ::ng-deep .cds--tile--selectable{height:100%;padding:16px}:host ::ng-deep .cds--tile-content{display:flex;flex-direction:column;gap:16px;color:var(--cds-text-primary)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
269
+ }], ctorParameters: () => [{ type: i2.PluginManagementService }, { type: PluginManagementStateService }] });
270
+
271
+ /*
272
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
273
+ *
274
+ * Licensed under EUPL, Version 1.2 (the "License");
275
+ * you may not use this file except in compliance with the License.
276
+ * You may obtain a copy of the License at
277
+ *
278
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
279
+ *
280
+ * Unless required by applicable law or agreed to in writing, software
281
+ * distributed under the License is distributed on an "AS IS" basis,
282
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
283
+ * See the License for the specific language governing permissions and
284
+ * limitations under the License.
285
+ */
286
+ class PluginConfigureComponent {
287
+ constructor(stateService) {
288
+ this.stateService = stateService;
289
+ this.valid = new EventEmitter();
290
+ this.configuration = new EventEmitter();
291
+ this.save$ = this.stateService.save$;
292
+ this.pluginDefinitionKey$ = this.stateService.selectedPluginDefinition$.pipe(map(definition => definition?.key));
293
+ this.prefillConfiguration$ = of(undefined);
294
+ this.disabled$ = this.stateService.inputDisabled$;
295
+ }
296
+ onValid(valid) {
297
+ this.valid.emit(valid);
298
+ }
299
+ onFunctionConfiguration(configuration) {
300
+ this.configuration.emit(configuration);
301
+ }
302
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginConfigureComponent, deps: [{ token: PluginManagementStateService }], target: i0.ɵɵFactoryTarget.Component }); }
303
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: PluginConfigureComponent, isStandalone: false, selector: "valtimo-plugin-configure", outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-plugin-configuration-container\n *ngIf=\"pluginDefinitionKey$ | async as pluginDefinitionKey\"\n [cdsLayer]=\"1\"\n [pluginDefinitionKey]=\"pluginDefinitionKey\"\n [prefillConfiguration$]=\"prefillConfiguration$\"\n [save$]=\"save$\"\n [disabled$]=\"disabled$\"\n (valid)=\"onValid($event)\"\n (configuration)=\"onFunctionConfiguration($event)\"\n type=\"configuration\"\n></valtimo-plugin-configuration-container>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.PluginConfigurationContainerComponent, selector: "valtimo-plugin-configuration-container", inputs: ["type", "pluginDefinitionKey", "functionKey", "save$", "disabled$", "selectedPluginConfiguration$", "prefillConfiguration$"], outputs: ["valid", "configuration"] }, { kind: "directive", type: i5.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] }); }
304
+ }
305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginConfigureComponent, decorators: [{
306
+ type: Component,
307
+ args: [{ standalone: false, selector: 'valtimo-plugin-configure', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-plugin-configuration-container\n *ngIf=\"pluginDefinitionKey$ | async as pluginDefinitionKey\"\n [cdsLayer]=\"1\"\n [pluginDefinitionKey]=\"pluginDefinitionKey\"\n [prefillConfiguration$]=\"prefillConfiguration$\"\n [save$]=\"save$\"\n [disabled$]=\"disabled$\"\n (valid)=\"onValid($event)\"\n (configuration)=\"onFunctionConfiguration($event)\"\n type=\"configuration\"\n></valtimo-plugin-configuration-container>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
308
+ }], ctorParameters: () => [{ type: PluginManagementStateService }], propDecorators: { valid: [{
309
+ type: Output
310
+ }], configuration: [{
311
+ type: Output
312
+ }] } });
313
+
314
+ /*
315
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
316
+ *
317
+ * Licensed under EUPL, Version 1.2 (the "License");
318
+ * you may not use this file except in compliance with the License.
319
+ * You may obtain a copy of the License at
320
+ *
321
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
322
+ *
323
+ * Unless required by applicable law or agreed to in writing, software
324
+ * distributed under the License is distributed on an "AS IS" basis,
325
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
326
+ * See the License for the specific language governing permissions and
327
+ * limitations under the License.
328
+ */
329
+ class PluginAddModalComponent {
330
+ constructor(stateService, pluginManagementService, logger) {
331
+ this.stateService = stateService;
332
+ this.pluginManagementService = pluginManagementService;
333
+ this.logger = logger;
334
+ this.open = false;
335
+ this.closeModal = new EventEmitter();
336
+ this.inputDisabled$ = this.stateService.inputDisabled$;
337
+ this.selectedPluginDefinition$ = this.stateService.selectedPluginDefinition$;
338
+ this.configurationValid$ = new BehaviorSubject(false);
339
+ this.returnToFirstStepSubject$ = new Subject();
340
+ }
341
+ complete() {
342
+ this.stateService.save();
343
+ }
344
+ hide() {
345
+ this.closeModal.emit();
346
+ setTimeout(() => {
347
+ this.returnToFirstStep();
348
+ this.stateService.enableInput();
349
+ this.stateService.clear();
350
+ }, CARBON_CONSTANTS.modalAnimationMs);
351
+ }
352
+ onValid(valid) {
353
+ this.configurationValid$.next(valid);
354
+ }
355
+ onConfiguration(configuration) {
356
+ const pluginConfiguration = { ...configuration };
357
+ delete pluginConfiguration['configurationId'];
358
+ delete pluginConfiguration['configurationTitle'];
359
+ this.stateService.disableInput();
360
+ this.stateService.selectedPluginDefinition$.pipe(take(1)).subscribe(selectedDefinition => {
361
+ this.pluginManagementService
362
+ .savePluginConfiguration({
363
+ id: configuration.configurationId,
364
+ definitionKey: selectedDefinition.key,
365
+ title: configuration.configurationTitle,
366
+ properties: pluginConfiguration,
367
+ })
368
+ .subscribe({
369
+ next: () => {
370
+ this.stateService.refresh();
371
+ this.hide();
372
+ },
373
+ error: () => {
374
+ this.logger.error('Something went wrong with saving the plugin configuration.');
375
+ this.stateService.enableInput();
376
+ },
377
+ });
378
+ });
379
+ }
380
+ returnToFirstStep() {
381
+ this.returnToFirstStepSubject$.next(true);
382
+ }
383
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginAddModalComponent, deps: [{ token: PluginManagementStateService }, { token: i2.PluginManagementService }, { token: i3$1.NGXLogger }], target: i0.ɵɵFactoryTarget.Component }); }
384
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: PluginAddModalComponent, isStandalone: false, selector: "valtimo-plugin-add-modal", inputs: { open: "open" }, outputs: { closeModal: "closeModal" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-stepper-container\n (completeEvent)=\"complete()\"\n (cancelClickEvent)=\"hide()\"\n [disabled]=\"inputDisabled$ | async\"\n [returnToFirstStepSubject$]=\"returnToFirstStepSubject$\"\n>\n <cds-modal valtimoCdsModal #pluginAddModal [open]=\"open\" (close)=\"hide()\">\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"hide()\">\n <v-stepper-header></v-stepper-header>\n </cds-modal-header>\n <section cdsModalContent>\n <v-stepper-content>\n <v-stepper-step titleTranslationKey=\"pluginManagement.addSteps.step0\">\n <valtimo-plugin-add-select></valtimo-plugin-add-select>\n </v-stepper-step>\n <v-stepper-step titleTranslationKey=\"pluginManagement.addSteps.step1\">\n <valtimo-plugin-configure\n (valid)=\"onValid($event)\"\n (configuration)=\"onConfiguration($event)\"\n ></valtimo-plugin-configure>\n </v-stepper-step>\n </v-stepper-content>\n </section>\n <cds-modal-footer>\n <v-stepper-footer class=\"stepper-footer\">\n <v-stepper-footer-step\n nextButtonTranslationKey=\"pluginManagement.addSteps.step1\"\n [nextButtonEnabled]=\"selectedPluginDefinition$ | async\"\n ></v-stepper-footer-step>\n <v-stepper-footer-step\n completeButtonTranslationKey=\"pluginManagement.addSteps.complete\"\n [completeButtonEnabled]=\"configurationValid$ | async\"\n ></v-stepper-footer-step>\n </v-stepper-footer>\n </cds-modal-footer>\n </cds-modal>\n</v-stepper-container>\n", styles: [".stepper-footer{width:100%}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "component", type: i4.StepperContainerComponent, selector: "v-stepper-container", inputs: ["returnToFirstStepSubject$", "disabled"], outputs: ["cancelClickEvent", "completeEvent", "nextStepEvent"] }, { kind: "component", type: i4.StepperContentComponent, selector: "v-stepper-content" }, { kind: "component", type: i4.StepperFooterComponent, selector: "v-stepper-footer" }, { kind: "component", type: i4.StepperHeaderComponent, selector: "v-stepper-header" }, { kind: "component", type: i4.StepperStepComponent, selector: "v-stepper-step", inputs: ["titleTranslationKey"] }, { kind: "component", type: i4.StepperFooterStepComponent, selector: "v-stepper-footer-step", inputs: ["nextButtonEnabled", "completeButtonEnabled", "nextButtonTranslationKey", "cancelButtonTranslationKey", "completeButtonTranslationKey", "completeButtonMdiIcon", "showCompleteButton"] }, { kind: "component", type: i5.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i5.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i5.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i5.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i4.ValtimoCdsModalDirective, selector: "[valtimoCdsModal]", inputs: ["minContentHeight"] }, { kind: "component", type: PluginAddSelectComponent, selector: "valtimo-plugin-add-select" }, { kind: "component", type: PluginConfigureComponent, selector: "valtimo-plugin-configure", outputs: ["valid", "configuration"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] }); }
385
+ }
386
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginAddModalComponent, decorators: [{
387
+ type: Component,
388
+ args: [{ standalone: false, selector: 'valtimo-plugin-add-modal', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-stepper-container\n (completeEvent)=\"complete()\"\n (cancelClickEvent)=\"hide()\"\n [disabled]=\"inputDisabled$ | async\"\n [returnToFirstStepSubject$]=\"returnToFirstStepSubject$\"\n>\n <cds-modal valtimoCdsModal #pluginAddModal [open]=\"open\" (close)=\"hide()\">\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"hide()\">\n <v-stepper-header></v-stepper-header>\n </cds-modal-header>\n <section cdsModalContent>\n <v-stepper-content>\n <v-stepper-step titleTranslationKey=\"pluginManagement.addSteps.step0\">\n <valtimo-plugin-add-select></valtimo-plugin-add-select>\n </v-stepper-step>\n <v-stepper-step titleTranslationKey=\"pluginManagement.addSteps.step1\">\n <valtimo-plugin-configure\n (valid)=\"onValid($event)\"\n (configuration)=\"onConfiguration($event)\"\n ></valtimo-plugin-configure>\n </v-stepper-step>\n </v-stepper-content>\n </section>\n <cds-modal-footer>\n <v-stepper-footer class=\"stepper-footer\">\n <v-stepper-footer-step\n nextButtonTranslationKey=\"pluginManagement.addSteps.step1\"\n [nextButtonEnabled]=\"selectedPluginDefinition$ | async\"\n ></v-stepper-footer-step>\n <v-stepper-footer-step\n completeButtonTranslationKey=\"pluginManagement.addSteps.complete\"\n [completeButtonEnabled]=\"configurationValid$ | async\"\n ></v-stepper-footer-step>\n </v-stepper-footer>\n </cds-modal-footer>\n </cds-modal>\n</v-stepper-container>\n", styles: [".stepper-footer{width:100%}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
389
+ }], ctorParameters: () => [{ type: PluginManagementStateService }, { type: i2.PluginManagementService }, { type: i3$1.NGXLogger }], propDecorators: { open: [{
390
+ type: Input
391
+ }], closeModal: [{
392
+ type: Output
393
+ }] } });
394
+
395
+ /*
396
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
397
+ *
398
+ * Licensed under EUPL, Version 1.2 (the "License");
399
+ * you may not use this file except in compliance with the License.
400
+ * You may obtain a copy of the License at
401
+ *
402
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
403
+ *
404
+ * Unless required by applicable law or agreed to in writing, software
405
+ * distributed under the License is distributed on an "AS IS" basis,
406
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
407
+ * See the License for the specific language governing permissions and
408
+ * limitations under the License.
409
+ */
410
+ class PluginEditComponent {
411
+ constructor(stateService) {
412
+ this.stateService = stateService;
413
+ this.valid = new EventEmitter();
414
+ this.configuration = new EventEmitter();
415
+ this.saveEdit$ = this.stateService.saveEdit$;
416
+ this.pluginDefinitionKey$ = this.stateService.selectedPluginConfiguration$.pipe(map(configuration => configuration?.pluginDefinition?.key));
417
+ this.prefillConfiguration$ = this.stateService.selectedPluginConfiguration$.pipe(map(configuration => configuration
418
+ ? {
419
+ ...configuration.properties,
420
+ configurationId: configuration.id,
421
+ configurationTitle: configuration.title,
422
+ }
423
+ : undefined));
424
+ this.disabled$ = this.stateService.inputDisabled$;
425
+ }
426
+ onValid(valid) {
427
+ this.valid.emit(valid);
428
+ }
429
+ onFunctionConfiguration(configuration) {
430
+ this.configuration.emit(configuration);
431
+ }
432
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginEditComponent, deps: [{ token: PluginManagementStateService }], target: i0.ɵɵFactoryTarget.Component }); }
433
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: PluginEditComponent, isStandalone: false, selector: "valtimo-plugin-edit", outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-plugin-configuration-container\n *ngIf=\"pluginDefinitionKey$ | async as pluginDefinitionKey\"\n [cdsLayer]=\"1\"\n [pluginDefinitionKey]=\"pluginDefinitionKey\"\n [prefillConfiguration$]=\"prefillConfiguration$\"\n [save$]=\"saveEdit$\"\n [disabled$]=\"disabled$\"\n (valid)=\"onValid($event)\"\n (configuration)=\"onFunctionConfiguration($event)\"\n type=\"configuration\"\n></valtimo-plugin-configuration-container>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.PluginConfigurationContainerComponent, selector: "valtimo-plugin-configuration-container", inputs: ["type", "pluginDefinitionKey", "functionKey", "save$", "disabled$", "selectedPluginConfiguration$", "prefillConfiguration$"], outputs: ["valid", "configuration"] }, { kind: "directive", type: i5.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] }); }
434
+ }
435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginEditComponent, decorators: [{
436
+ type: Component,
437
+ args: [{ standalone: false, selector: 'valtimo-plugin-edit', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-plugin-configuration-container\n *ngIf=\"pluginDefinitionKey$ | async as pluginDefinitionKey\"\n [cdsLayer]=\"1\"\n [pluginDefinitionKey]=\"pluginDefinitionKey\"\n [prefillConfiguration$]=\"prefillConfiguration$\"\n [save$]=\"saveEdit$\"\n [disabled$]=\"disabled$\"\n (valid)=\"onValid($event)\"\n (configuration)=\"onFunctionConfiguration($event)\"\n type=\"configuration\"\n></valtimo-plugin-configuration-container>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
438
+ }], ctorParameters: () => [{ type: PluginManagementStateService }], propDecorators: { valid: [{
439
+ type: Output
440
+ }], configuration: [{
441
+ type: Output
442
+ }] } });
443
+
444
+ /*
445
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
446
+ *
447
+ * Licensed under EUPL, Version 1.2 (the "License");
448
+ * you may not use this file except in compliance with the License.
449
+ * You may obtain a copy of the License at
450
+ *
451
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
452
+ *
453
+ * Unless required by applicable law or agreed to in writing, software
454
+ * distributed under the License is distributed on an "AS IS" basis,
455
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
456
+ * See the License for the specific language governing permissions and
457
+ * limitations under the License.
458
+ */
459
+ class PluginEditModalComponent {
460
+ constructor(stateService, pluginManagementService, logger) {
461
+ this.stateService = stateService;
462
+ this.pluginManagementService = pluginManagementService;
463
+ this.logger = logger;
464
+ this.open = false;
465
+ this.saveNewConfiguration = false;
466
+ this.closeModal = new EventEmitter();
467
+ this.inputDisabled$ = this.stateService.inputDisabled$;
468
+ this.selectedPluginConfiguration$ = this.stateService.selectedPluginConfiguration$;
469
+ this.configurationValid$ = new BehaviorSubject(false);
470
+ }
471
+ save() {
472
+ this.stateService.saveEdit();
473
+ }
474
+ delete() {
475
+ this.stateService.delete();
476
+ this.stateService.disableInput();
477
+ this.stateService.selectedPluginConfiguration$
478
+ .pipe(take(1))
479
+ .subscribe(selectedPluginConfiguration => {
480
+ this.pluginManagementService
481
+ .deletePluginConfiguration(selectedPluginConfiguration.id)
482
+ .subscribe(() => {
483
+ this.stateService.refresh();
484
+ this.hide();
485
+ }, () => {
486
+ this.logger.error('Something went wrong with deleting the plugin configuration.');
487
+ this.stateService.enableInput();
488
+ });
489
+ });
490
+ }
491
+ hide() {
492
+ this.closeModal.emit();
493
+ this.stateService.enableInput();
494
+ }
495
+ onPluginValid(valid) {
496
+ this.configurationValid$.next(valid);
497
+ }
498
+ onPluginConfiguration(configuration) {
499
+ this.stateService.disableInput();
500
+ if (this.saveNewConfiguration) {
501
+ this.saveNewPluginConfiguration(configuration);
502
+ return;
503
+ }
504
+ this.stateService.selectedPluginConfiguration$
505
+ .pipe(take(1))
506
+ .subscribe(selectedPluginConfiguration => {
507
+ const configurationId = configuration.configurationId;
508
+ const configurationTitle = configuration.configurationTitle;
509
+ const configurationData = { ...configuration };
510
+ delete configurationData['configurationTitle'];
511
+ this.pluginManagementService
512
+ .updatePluginConfiguration(selectedPluginConfiguration.id, configurationId, configurationTitle, configurationData)
513
+ .subscribe({
514
+ next: () => {
515
+ this.stateService.refresh();
516
+ this.hide();
517
+ },
518
+ error: () => {
519
+ this.logger.error('Something went wrong with updating the plugin configuration.');
520
+ this.stateService.enableInput();
521
+ },
522
+ });
523
+ });
524
+ }
525
+ saveNewPluginConfiguration(configuration) {
526
+ this.stateService.selectedPluginConfiguration$
527
+ .pipe(take(1))
528
+ .subscribe(selectedPluginConfiguration => {
529
+ const duplicatedConfiguration = { ...selectedPluginConfiguration, properties: configuration };
530
+ duplicatedConfiguration.title = duplicatedConfiguration.properties.configurationTitle;
531
+ delete duplicatedConfiguration.properties.configurationTitle;
532
+ delete duplicatedConfiguration.properties.configurationId;
533
+ this.pluginManagementService.savePluginConfiguration(duplicatedConfiguration).subscribe({
534
+ next: () => {
535
+ this.stateService.refresh();
536
+ this.hide();
537
+ },
538
+ error: () => {
539
+ this.logger.error('Something went wrong with saving the duplicated plugin configuration.');
540
+ this.stateService.enableInput();
541
+ },
542
+ });
543
+ });
544
+ }
545
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginEditModalComponent, deps: [{ token: PluginManagementStateService }, { token: i2.PluginManagementService }, { token: i3$1.NGXLogger }], target: i0.ɵɵFactoryTarget.Component }); }
546
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: PluginEditModalComponent, isStandalone: false, selector: "valtimo-plugin-edit-modal", inputs: { open: "open", saveNewConfiguration: "saveNewConfiguration" }, outputs: { closeModal: "closeModal" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-modal\n #pluginEditModal\n valtimoCdsModal\n [open]=\"open\"\n (close)=\"hide()\"\n *ngIf=\"{selectedConfiguration: selectedPluginConfiguration$ | async} as obs\"\n>\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"hide()\">\n {{\n obs.selectedConfiguration?.title +\n ' - ' +\n ('title' | pluginTranslate: obs.selectedConfiguration?.pluginDefinition?.key | async)\n }}\n </cds-modal-header>\n <section cdsModalContent>\n <valtimo-plugin-edit\n (valid)=\"onPluginValid($event)\"\n (configuration)=\"onPluginConfiguration($event)\"\n ></valtimo-plugin-edit>\n </section>\n <cds-modal-footer>\n <button cdsButton=\"danger\" (click)=\"delete()\" [disabled]=\"inputDisabled$ | async\">\n {{ 'pluginManagement.remove' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n [disabled]=\"(configurationValid$ | async) === false || (inputDisabled$ | async)\"\n (click)=\"save()\"\n >\n {{ 'pluginManagement.save' | translate }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "component", type: i5.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i5.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i5.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i5.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i4.ValtimoCdsModalDirective, selector: "[valtimoCdsModal]", inputs: ["minContentHeight"] }, { kind: "component", type: PluginEditComponent, selector: "valtimo-plugin-edit", outputs: ["valid", "configuration"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: i2.PluginTranslatePipe, name: "pluginTranslate" }] }); }
547
+ }
548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginEditModalComponent, decorators: [{
549
+ type: Component,
550
+ args: [{ standalone: false, selector: 'valtimo-plugin-edit-modal', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-modal\n #pluginEditModal\n valtimoCdsModal\n [open]=\"open\"\n (close)=\"hide()\"\n *ngIf=\"{selectedConfiguration: selectedPluginConfiguration$ | async} as obs\"\n>\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"hide()\">\n {{\n obs.selectedConfiguration?.title +\n ' - ' +\n ('title' | pluginTranslate: obs.selectedConfiguration?.pluginDefinition?.key | async)\n }}\n </cds-modal-header>\n <section cdsModalContent>\n <valtimo-plugin-edit\n (valid)=\"onPluginValid($event)\"\n (configuration)=\"onPluginConfiguration($event)\"\n ></valtimo-plugin-edit>\n </section>\n <cds-modal-footer>\n <button cdsButton=\"danger\" (click)=\"delete()\" [disabled]=\"inputDisabled$ | async\">\n {{ 'pluginManagement.remove' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n [disabled]=\"(configurationValid$ | async) === false || (inputDisabled$ | async)\"\n (click)=\"save()\"\n >\n {{ 'pluginManagement.save' | translate }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
551
+ }], ctorParameters: () => [{ type: PluginManagementStateService }, { type: i2.PluginManagementService }, { type: i3$1.NGXLogger }], propDecorators: { open: [{
552
+ type: Input
553
+ }], saveNewConfiguration: [{
554
+ type: Input
555
+ }], closeModal: [{
556
+ type: Output
557
+ }] } });
558
+
559
+ /*
560
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
561
+ *
562
+ * Licensed under EUPL, Version 1.2 (the "License");
563
+ * you may not use this file except in compliance with the License.
564
+ * You may obtain a copy of the License at
565
+ *
566
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
567
+ *
568
+ * Unless required by applicable law or agreed to in writing, software
569
+ * distributed under the License is distributed on an "AS IS" basis,
570
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
571
+ * See the License for the specific language governing permissions and
572
+ * limitations under the License.
573
+ */
574
+ class PluginManagementComponent {
575
+ constructor(logger, pluginManagementService, pluginTranslationService, stateService, translateService) {
576
+ this.logger = logger;
577
+ this.pluginManagementService = pluginManagementService;
578
+ this.pluginTranslationService = pluginTranslationService;
579
+ this.stateService = stateService;
580
+ this.translateService = translateService;
581
+ this.fields = [
582
+ {
583
+ key: 'title',
584
+ label: 'pluginManagement.labels.configurationName',
585
+ viewType: ViewType.TEXT,
586
+ },
587
+ {
588
+ key: 'pluginName',
589
+ label: 'pluginManagement.labels.pluginName',
590
+ viewType: ViewType.TEXT,
591
+ },
592
+ {
593
+ key: 'definitionKey',
594
+ label: 'pluginManagement.labels.identifier',
595
+ viewType: ViewType.TEXT,
596
+ },
597
+ ];
598
+ this.actionItems = [
599
+ {
600
+ callback: this.editConfiguration.bind(this),
601
+ label: 'interface.edit',
602
+ },
603
+ {
604
+ label: 'interface.duplicate',
605
+ callback: this.duplicateConfiguration.bind(this),
606
+ },
607
+ {
608
+ callback: this.deleteConfiguration.bind(this),
609
+ label: 'interface.delete',
610
+ type: 'danger',
611
+ },
612
+ ];
613
+ this.loading$ = new BehaviorSubject(true);
614
+ this.showEditModal$ = new BehaviorSubject(false);
615
+ this.showAddModal$ = new BehaviorSubject(false);
616
+ this.pluginConfigurations$ = this.stateService.refresh$.pipe(switchMap(() => combineLatest([
617
+ this.pluginManagementService.getAllPluginConfigurations(),
618
+ this.translateService.stream('key'),
619
+ ]).pipe(map(([pluginConfigurations]) => pluginConfigurations.map(configuration => ({
620
+ ...configuration,
621
+ pluginName: this.pluginTranslationService.instant('title', configuration.pluginDefinition?.key ?? ''),
622
+ definitionKey: configuration.pluginDefinition?.key ?? '',
623
+ }))), tap(() => {
624
+ this.loading$.next(false);
625
+ }))));
626
+ this.saveNewConfiguration$ = new BehaviorSubject(false);
627
+ }
628
+ showAddModal() {
629
+ this.showAddModal$.next(true);
630
+ }
631
+ editConfiguration(configuration) {
632
+ this.showEditModal$.next(true);
633
+ this.saveNewConfiguration$.next(false);
634
+ this.stateService.selectPluginConfiguration(configuration);
635
+ }
636
+ deleteConfiguration(configuration) {
637
+ if (!configuration.id) {
638
+ return;
639
+ }
640
+ this.pluginManagementService
641
+ .deletePluginConfiguration(configuration.id)
642
+ .pipe(take(1))
643
+ .subscribe({
644
+ next: () => {
645
+ this.stateService.refresh();
646
+ },
647
+ error: () => {
648
+ this.logger.error('Something went wrong with deleting the plugin configuration.');
649
+ },
650
+ });
651
+ }
652
+ closeEditModal() {
653
+ this.showEditModal$.next(false);
654
+ }
655
+ closeAddModal() {
656
+ this.showAddModal$.next(false);
657
+ }
658
+ duplicateConfiguration(configuration) {
659
+ const configurationClone = cloneDeep(configuration);
660
+ configurationClone.id = v4();
661
+ this.showEditModal$.next(true);
662
+ this.saveNewConfiguration$.next(true);
663
+ this.stateService.selectPluginConfiguration(configurationClone);
664
+ }
665
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementComponent, deps: [{ token: i3$1.NGXLogger }, { token: i2.PluginManagementService }, { token: i2.PluginTranslationService }, { token: PluginManagementStateService }, { token: i4$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
666
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: PluginManagementComponent, isStandalone: false, selector: "valtimo-plugin-management", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n<ng-container\n *ngIf=\"{\n pluginConfigurations: pluginConfigurations$ | async,\n loading: loading$ | async,\n } as obs\"\n>\n <valtimo-carbon-list\n [actionItems]=\"actionItems\"\n [loading]=\"obs.loading\"\n [items]=\"obs.pluginConfigurations\"\n [fields]=\"fields\"\n [header]=\"false\"\n (rowClicked)=\"editConfiguration($event)\"\n >\n <ng-container carbonToolbarContent [ngTemplateOutlet]=\"configurePluginButton\"></ng-container>\n\n <valtimo-no-results\n [action]=\"configurePluginButton\"\n [title]=\"'pages.plugins.noResults' | translate\"\n ></valtimo-no-results>\n </valtimo-carbon-list>\n\n <ng-template #configurePluginButton>\n <button cdsButton=\"primary\" [disabled]=\"obs.loading\" (click)=\"showAddModal()\">\n {{ 'pluginManagement.add' | translate }}\n\n <svg cdsIcon=\"add\" size=\"16\" class=\"cds--btn__icon\"></svg>\n </button>\n </ng-template>\n</ng-container>\n\n<valtimo-plugin-add-modal\n [open]=\"showAddModal$ | async\"\n (closeModal)=\"closeAddModal()\"\n></valtimo-plugin-add-modal>\n\n<valtimo-plugin-edit-modal\n [open]=\"showEditModal$ | async\"\n [saveNewConfiguration]=\"saveNewConfiguration$ | async\"\n (closeModal)=\"closeEditModal()\"\n></valtimo-plugin-edit-modal>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i5.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "component", type: i4.CarbonListComponent, selector: "valtimo-carbon-list", inputs: ["items", "fields", "tableTranslations", "paginatorConfig", "pagination", "loading", "skeletonRowCount", "actions", "actionItems", "showActionItems", "header", "hideColumnHeader", "initialSortState", "sortState", "isSearchable", "enableSingleSelection", "lastColumnTemplate", "paginationIdentifier", "showSelectionColumn", "striped", "hideToolbar", "lockedTooltipTranslationKey", "movingRowsEnabled", "dragAndDrop", "dragAndDropDisabled"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged", "moveRow", "itemsReordered"] }, { kind: "component", type: i4.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title", "smallPadding", "collapseVertically", "alwaysRenderVertically"] }, { kind: "directive", type: i5.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: PluginAddModalComponent, selector: "valtimo-plugin-add-modal", inputs: ["open"], outputs: ["closeModal"] }, { kind: "component", type: PluginEditModalComponent, selector: "valtimo-plugin-edit-modal", inputs: ["open", "saveNewConfiguration"], outputs: ["closeModal"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4$1.TranslatePipe, name: "translate" }] }); }
667
+ }
668
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementComponent, decorators: [{
669
+ type: Component,
670
+ args: [{ standalone: false, selector: 'valtimo-plugin-management', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n<ng-container\n *ngIf=\"{\n pluginConfigurations: pluginConfigurations$ | async,\n loading: loading$ | async,\n } as obs\"\n>\n <valtimo-carbon-list\n [actionItems]=\"actionItems\"\n [loading]=\"obs.loading\"\n [items]=\"obs.pluginConfigurations\"\n [fields]=\"fields\"\n [header]=\"false\"\n (rowClicked)=\"editConfiguration($event)\"\n >\n <ng-container carbonToolbarContent [ngTemplateOutlet]=\"configurePluginButton\"></ng-container>\n\n <valtimo-no-results\n [action]=\"configurePluginButton\"\n [title]=\"'pages.plugins.noResults' | translate\"\n ></valtimo-no-results>\n </valtimo-carbon-list>\n\n <ng-template #configurePluginButton>\n <button cdsButton=\"primary\" [disabled]=\"obs.loading\" (click)=\"showAddModal()\">\n {{ 'pluginManagement.add' | translate }}\n\n <svg cdsIcon=\"add\" size=\"16\" class=\"cds--btn__icon\"></svg>\n </button>\n </ng-template>\n</ng-container>\n\n<valtimo-plugin-add-modal\n [open]=\"showAddModal$ | async\"\n (closeModal)=\"closeAddModal()\"\n></valtimo-plugin-add-modal>\n\n<valtimo-plugin-edit-modal\n [open]=\"showEditModal$ | async\"\n [saveNewConfiguration]=\"saveNewConfiguration$ | async\"\n (closeModal)=\"closeEditModal()\"\n></valtimo-plugin-edit-modal>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
671
+ }], ctorParameters: () => [{ type: i3$1.NGXLogger }, { type: i2.PluginManagementService }, { type: i2.PluginTranslationService }, { type: PluginManagementStateService }, { type: i4$1.TranslateService }] });
672
+
673
+ /*
674
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
675
+ *
676
+ * Licensed under EUPL, Version 1.2 (the "License");
677
+ * you may not use this file except in compliance with the License.
678
+ * You may obtain a copy of the License at
679
+ *
680
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
681
+ *
682
+ * Unless required by applicable law or agreed to in writing, software
683
+ * distributed under the License is distributed on an "AS IS" basis,
684
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
685
+ * See the License for the specific language governing permissions and
686
+ * limitations under the License.
687
+ */
688
+ const routes = [
689
+ {
690
+ path: 'plugins',
691
+ component: PluginManagementComponent,
692
+ canActivate: [AuthGuardService],
693
+ data: { title: 'Plugins', roles: [ROLE_ADMIN] },
694
+ },
695
+ ];
696
+ class PluginManagementRoutingModule {
697
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
698
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementRoutingModule, imports: [CommonModule, i1.RouterModule], exports: [RouterModule] }); }
699
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
700
+ }
701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementRoutingModule, decorators: [{
702
+ type: NgModule,
703
+ args: [{
704
+ declarations: [],
705
+ imports: [CommonModule, RouterModule.forChild(routes)],
706
+ exports: [RouterModule],
707
+ }]
708
+ }] });
709
+
710
+ /*
711
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
712
+ *
713
+ * Licensed under EUPL, Version 1.2 (the "License");
714
+ * you may not use this file except in compliance with the License.
715
+ * You may obtain a copy of the License at
716
+ *
717
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
718
+ *
719
+ * Unless required by applicable law or agreed to in writing, software
720
+ * distributed under the License is distributed on an "AS IS" basis,
721
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
722
+ * See the License for the specific language governing permissions and
723
+ * limitations under the License.
724
+ */
725
+ class PluginManagementModule {
726
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
727
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementModule, declarations: [PluginManagementComponent,
728
+ PluginAddModalComponent,
729
+ PluginAddSelectComponent,
730
+ PluginConfigureComponent,
731
+ PluginEditModalComponent,
732
+ PluginEditComponent], imports: [CommonModule,
733
+ PluginManagementRoutingModule,
734
+ TranslateModule,
735
+ ParagraphModule,
736
+ TableModule,
737
+ StepperModule,
738
+ VModalModule,
739
+ PluginTranslatePipeModule,
740
+ PluginConfigurationContainerModule,
741
+ ButtonModule,
742
+ CarbonListModule,
743
+ ModalModule,
744
+ IconModule,
745
+ ValtimoCdsModalDirective,
746
+ LayerModule,
747
+ TilesModule,
748
+ LoadingModule], exports: [PluginManagementComponent,
749
+ PluginAddModalComponent,
750
+ PluginAddSelectComponent,
751
+ PluginConfigureComponent,
752
+ PluginEditModalComponent,
753
+ PluginEditComponent] }); }
754
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementModule, providers: [PluginManagementStateService], imports: [CommonModule,
755
+ PluginManagementRoutingModule,
756
+ TranslateModule,
757
+ ParagraphModule,
758
+ TableModule,
759
+ StepperModule,
760
+ VModalModule,
761
+ PluginTranslatePipeModule,
762
+ PluginConfigurationContainerModule,
763
+ ButtonModule,
764
+ CarbonListModule,
765
+ ModalModule,
766
+ IconModule,
767
+ LayerModule,
768
+ TilesModule,
769
+ LoadingModule] }); }
770
+ }
771
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PluginManagementModule, decorators: [{
772
+ type: NgModule,
773
+ args: [{
774
+ providers: [PluginManagementStateService],
775
+ declarations: [
776
+ PluginManagementComponent,
777
+ PluginAddModalComponent,
778
+ PluginAddSelectComponent,
779
+ PluginConfigureComponent,
780
+ PluginEditModalComponent,
781
+ PluginEditComponent,
782
+ ],
783
+ imports: [
784
+ CommonModule,
785
+ PluginManagementRoutingModule,
786
+ TranslateModule,
787
+ ParagraphModule,
788
+ TableModule,
789
+ StepperModule,
790
+ VModalModule,
791
+ PluginTranslatePipeModule,
792
+ PluginConfigurationContainerModule,
793
+ ButtonModule,
794
+ CarbonListModule,
795
+ ModalModule,
796
+ IconModule,
797
+ ValtimoCdsModalDirective,
798
+ LayerModule,
799
+ TilesModule,
800
+ LoadingModule,
801
+ ],
802
+ exports: [
803
+ PluginManagementComponent,
804
+ PluginAddModalComponent,
805
+ PluginAddSelectComponent,
806
+ PluginConfigureComponent,
807
+ PluginEditModalComponent,
808
+ PluginEditComponent,
809
+ ],
810
+ }]
811
+ }] });
812
+
813
+ /*
814
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
815
+ *
816
+ * Licensed under EUPL, Version 1.2 (the "License");
817
+ * you may not use this file except in compliance with the License.
818
+ * You may obtain a copy of the License at
819
+ *
820
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
821
+ *
822
+ * Unless required by applicable law or agreed to in writing, software
823
+ * distributed under the License is distributed on an "AS IS" basis,
824
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
825
+ * See the License for the specific language governing permissions and
826
+ * limitations under the License.
827
+ */
828
+ /*
829
+ * Public API Surface of plugin-management
830
+ */
831
+
832
+ /**
833
+ * Generated bundle index. Do not edit.
834
+ */
835
+
836
+ export { PluginAddModalComponent, PluginAddSelectComponent, PluginConfigureComponent, PluginEditComponent, PluginEditModalComponent, PluginManagementComponent, PluginManagementModule, PluginManagementStateService };
837
+ //# sourceMappingURL=valtimo-plugin-management.mjs.map