@valtimo/plugin-management 10.8.0 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/esm2022/lib/components/plugin-add-modal/plugin-add-modal.component.mjs +109 -0
  2. package/esm2022/lib/components/plugin-add-select/plugin-add-select.component.mjs +66 -0
  3. package/{esm2020 → esm2022}/lib/components/plugin-configure/plugin-configure.component.mjs +4 -4
  4. package/{esm2020 → esm2022}/lib/components/plugin-edit/plugin-edit.component.mjs +4 -4
  5. package/esm2022/lib/components/plugin-edit-modal/plugin-edit-modal.component.mjs +113 -0
  6. package/esm2022/lib/components/plugin-management/plugin-management.component.mjs +73 -0
  7. package/{esm2020 → esm2022}/lib/plugin-management-routing.mjs +5 -5
  8. package/esm2022/lib/plugin-management.module.mjs +106 -0
  9. package/{esm2020 → esm2022}/lib/services/plugin-management-state.service.mjs +4 -4
  10. package/{fesm2020 → fesm2022}/valtimo-plugin-management.mjs +72 -74
  11. package/fesm2022/valtimo-plugin-management.mjs.map +1 -0
  12. package/lib/components/plugin-add-modal/plugin-add-modal.component.d.ts +3 -3
  13. package/lib/components/plugin-add-modal/plugin-add-modal.component.d.ts.map +1 -1
  14. package/lib/components/plugin-add-select/plugin-add-select.component.d.ts +1 -1
  15. package/lib/components/plugin-configure/plugin-configure.component.d.ts +1 -1
  16. package/lib/components/plugin-edit/plugin-edit.component.d.ts +1 -1
  17. package/lib/components/plugin-edit-modal/plugin-edit-modal.component.d.ts +3 -3
  18. package/lib/components/plugin-edit-modal/plugin-edit-modal.component.d.ts.map +1 -1
  19. package/lib/components/plugin-management/plugin-management.component.d.ts +2 -2
  20. package/lib/components/plugin-management/plugin-management.component.d.ts.map +1 -1
  21. package/lib/models/plugin-modal.model.d.ts +1 -1
  22. package/lib/models/plugin-modal.model.d.ts.map +1 -1
  23. package/lib/plugin-management.module.d.ts +3 -4
  24. package/lib/plugin-management.module.d.ts.map +1 -1
  25. package/lib/services/plugin-management-state.service.d.ts.map +1 -1
  26. package/package.json +8 -15
  27. package/esm2020/lib/components/plugin-add-modal/plugin-add-modal.component.mjs +0 -109
  28. package/esm2020/lib/components/plugin-add-select/plugin-add-select.component.mjs +0 -67
  29. package/esm2020/lib/components/plugin-edit-modal/plugin-edit-modal.component.mjs +0 -113
  30. package/esm2020/lib/components/plugin-management/plugin-management.component.mjs +0 -73
  31. package/esm2020/lib/plugin-management.module.mjs +0 -110
  32. package/fesm2015/valtimo-plugin-management.mjs +0 -747
  33. package/fesm2015/valtimo-plugin-management.mjs.map +0 -1
  34. package/fesm2020/valtimo-plugin-management.mjs.map +0 -1
  35. /package/{esm2020 → esm2022}/lib/models/index.mjs +0 -0
  36. /package/{esm2020 → esm2022}/lib/models/plugin-modal.model.mjs +0 -0
  37. /package/{esm2020 → esm2022}/lib/services/index.mjs +0 -0
  38. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  39. /package/{esm2020 → esm2022}/valtimo-plugin-management.mjs +0 -0
@@ -1,747 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, Component, EventEmitter, Output, ViewChild, NgModule } from '@angular/core';
3
- import { Subject, BehaviorSubject, combineLatest, of } from 'rxjs';
4
- import { map, take, switchMap, tap } from 'rxjs/operators';
5
- import * as i1 from '@valtimo/plugin';
6
- import { PluginTranslatePipeModule, PluginConfigurationContainerModule } from '@valtimo/plugin';
7
- import * as i2 from '@angular/platform-browser';
8
- import * as i1$1 from '@angular/router';
9
- import { RouterModule } from '@angular/router';
10
- import * as i4 from '@angular/common';
11
- import { CommonModule } from '@angular/common';
12
- import { AuthGuardService } from '@valtimo/security';
13
- import { ROLE_ADMIN } from '@valtimo/config';
14
- import * as i3 from '@ngx-translate/core';
15
- import { TranslateModule } from '@ngx-translate/core';
16
- import * as i2$1 from '@valtimo/user-interface';
17
- import { PageModule, ParagraphModule, TitleModule, TableModule, StepperModule, ModalModule, ButtonModule, CardModule } from '@valtimo/user-interface';
18
- import * as i4$1 from 'ngx-logger';
19
- import * as i5 from '@angular/flex-layout/flex';
20
- import { FlexLayoutModule } from '@angular/flex-layout';
21
-
22
- /*
23
- * Copyright 2015-2023 Ritense BV, the Netherlands.
24
- *
25
- * Licensed under EUPL, Version 1.2 (the "License");
26
- * you may not use this file except in compliance with the License.
27
- * You may obtain a copy of the License at
28
- *
29
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
30
- *
31
- * Unless required by applicable law or agreed to in writing, software
32
- * distributed under the License is distributed on an "AS IS" basis,
33
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34
- * See the License for the specific language governing permissions and
35
- * limitations under the License.
36
- */
37
-
38
- /*
39
- * Copyright 2015-2023 Ritense BV, the Netherlands.
40
- *
41
- * Licensed under EUPL, Version 1.2 (the "License");
42
- * you may not use this file except in compliance with the License.
43
- * You may obtain a copy of the License at
44
- *
45
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
46
- *
47
- * Unless required by applicable law or agreed to in writing, software
48
- * distributed under the License is distributed on an "AS IS" basis,
49
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
- * See the License for the specific language governing permissions and
51
- * limitations under the License.
52
- */
53
- class PluginManagementStateService {
54
- constructor(pluginService, sanitizer) {
55
- this.pluginService = pluginService;
56
- this.sanitizer = sanitizer;
57
- this._showModal$ = new Subject();
58
- this._hideModal$ = new Subject();
59
- this._inputDisabled$ = new BehaviorSubject(false);
60
- this._refresh$ = new BehaviorSubject(null);
61
- this._save$ = new Subject();
62
- this._saveEdit$ = new Subject();
63
- this._delete$ = new Subject();
64
- this._hideModalSaveButton$ = new BehaviorSubject(false);
65
- this._pluginDefinitions$ = new BehaviorSubject(undefined);
66
- this._pluginDefinitionsWithLogos$ = combineLatest([
67
- this._pluginDefinitions$,
68
- this.pluginService.pluginSpecifications$,
69
- this.pluginService.availablePluginIds$,
70
- ]).pipe(map(([pluginDefinitions, pluginSpecifications, availablePluginIds]) => pluginDefinitions === null || pluginDefinitions === void 0 ? void 0 : pluginDefinitions.filter(pluginDefinition => availablePluginIds.includes(pluginDefinition.key)).map(pluginDefinition => {
71
- const pluginSpecification = pluginSpecifications.find(specification => specification.pluginId === pluginDefinition.key);
72
- return Object.assign(Object.assign({}, pluginDefinition), ((pluginSpecification === null || pluginSpecification === void 0 ? void 0 : pluginSpecification.pluginLogoBase64) && {
73
- pluginLogoBase64: this.sanitizer.bypassSecurityTrustResourceUrl(pluginSpecification === null || pluginSpecification === void 0 ? void 0 : pluginSpecification.pluginLogoBase64),
74
- }));
75
- })));
76
- this._selectedPluginDefinition$ = new BehaviorSubject(undefined);
77
- this._selectedPluginConfiguration$ = new BehaviorSubject(undefined);
78
- }
79
- get showModal$() {
80
- return this._showModal$.asObservable();
81
- }
82
- get hideModal$() {
83
- return this._hideModal$.asObservable();
84
- }
85
- get inputDisabled$() {
86
- return this._inputDisabled$.asObservable();
87
- }
88
- get refresh$() {
89
- return this._refresh$.asObservable();
90
- }
91
- get pluginDefinitions$() {
92
- return this._pluginDefinitions$.asObservable();
93
- }
94
- get pluginDefinitionsWithLogos$() {
95
- return this._pluginDefinitionsWithLogos$;
96
- }
97
- get selectedPluginDefinition$() {
98
- return this._selectedPluginDefinition$.asObservable();
99
- }
100
- get selectedPluginConfiguration$() {
101
- return this._selectedPluginConfiguration$.asObservable();
102
- }
103
- get save$() {
104
- return this._save$.asObservable();
105
- }
106
- get saveEdit$() {
107
- return this._saveEdit$.asObservable();
108
- }
109
- get delete$() {
110
- return this._delete$.asObservable();
111
- }
112
- get hideModalSaveButton$() {
113
- return this._hideModalSaveButton$.asObservable();
114
- }
115
- showModal(modalType) {
116
- this._showModal$.next(modalType);
117
- }
118
- hideModal() {
119
- this._hideModal$.next(null);
120
- }
121
- disableInput() {
122
- this._inputDisabled$.next(true);
123
- }
124
- enableInput() {
125
- this._inputDisabled$.next(false);
126
- }
127
- refresh() {
128
- this._refresh$.next(null);
129
- }
130
- setPluginDefinitions(definitions) {
131
- this._pluginDefinitions$.next(definitions);
132
- }
133
- selectPluginDefinition(definition) {
134
- this._selectedPluginDefinition$.next(definition);
135
- }
136
- selectPluginConfiguration(configuration) {
137
- this._selectedPluginConfiguration$.next(configuration);
138
- }
139
- clearSelectedPluginDefinition() {
140
- this._selectedPluginDefinition$.next(undefined);
141
- }
142
- clearSelectedPluginConfiguration() {
143
- this._selectedPluginConfiguration$.next(undefined);
144
- }
145
- save() {
146
- this._save$.next(null);
147
- }
148
- saveEdit() {
149
- this._saveEdit$.next(null);
150
- }
151
- delete() {
152
- this._delete$.next(null);
153
- }
154
- hideModalSaveButton() {
155
- this._hideModalSaveButton$.next(true);
156
- }
157
- showModalSaveButton() {
158
- this._hideModalSaveButton$.next(false);
159
- }
160
- clear() {
161
- this.clearSelectedPluginDefinition();
162
- this.clearSelectedPluginConfiguration();
163
- }
164
- }
165
- PluginManagementStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementStateService, deps: [{ token: i1.PluginService }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
166
- PluginManagementStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementStateService, providedIn: 'root' });
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementStateService, decorators: [{
168
- type: Injectable,
169
- args: [{
170
- providedIn: 'root',
171
- }]
172
- }], ctorParameters: function () { return [{ type: i1.PluginService }, { type: i2.DomSanitizer }]; } });
173
-
174
- /*
175
- * Copyright 2015-2023 Ritense BV, the Netherlands.
176
- *
177
- * Licensed under EUPL, Version 1.2 (the "License");
178
- * you may not use this file except in compliance with the License.
179
- * You may obtain a copy of the License at
180
- *
181
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
182
- *
183
- * Unless required by applicable law or agreed to in writing, software
184
- * distributed under the License is distributed on an "AS IS" basis,
185
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
186
- * See the License for the specific language governing permissions and
187
- * limitations under the License.
188
- */
189
-
190
- /*
191
- * Copyright 2015-2023 Ritense BV, the Netherlands.
192
- *
193
- * Licensed under EUPL, Version 1.2 (the "License");
194
- * you may not use this file except in compliance with the License.
195
- * You may obtain a copy of the License at
196
- *
197
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
198
- *
199
- * Unless required by applicable law or agreed to in writing, software
200
- * distributed under the License is distributed on an "AS IS" basis,
201
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
- * See the License for the specific language governing permissions and
203
- * limitations under the License.
204
- */
205
- class PluginAddSelectComponent {
206
- constructor(pluginManagementService, stateService, translateService) {
207
- this.pluginManagementService = pluginManagementService;
208
- this.stateService = stateService;
209
- this.translateService = translateService;
210
- this.selectedPluginDefinition$ = this.stateService.selectedPluginDefinition$;
211
- this.disabled$ = this.stateService.inputDisabled$;
212
- this.pluginDefinitionsWithLogos$ = this.stateService.pluginDefinitionsWithLogos$;
213
- }
214
- ngOnInit() {
215
- this.openRefreshSubscription();
216
- this.getPluginDefinitions();
217
- }
218
- ngOnDestroy() {
219
- var _a;
220
- (_a = this.refreshSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
221
- }
222
- selectPluginDefinition(pluginDefinition) {
223
- this.stateService.selectPluginDefinition(pluginDefinition);
224
- }
225
- deselectPluginDefinition() {
226
- this.stateService.clearSelectedPluginDefinition();
227
- }
228
- getPluginDefinitions() {
229
- this.pluginManagementService.getPluginDefinitions().subscribe(pluginDefinitions => {
230
- this.stateService.setPluginDefinitions(pluginDefinitions);
231
- });
232
- }
233
- openRefreshSubscription() {
234
- this.refreshSubscription = combineLatest([
235
- this.stateService.showModal$,
236
- this.stateService.refresh$,
237
- ]).subscribe(() => {
238
- this.stateService.clearSelectedPluginDefinition();
239
- });
240
- }
241
- }
242
- PluginAddSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginAddSelectComponent, deps: [{ token: i1.PluginManagementService }, { token: PluginManagementStateService }, { token: i3.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
243
- PluginAddSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PluginAddSelectComponent, selector: "valtimo-plugin-add-select", ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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 fxLayout=\"row wrap\" fxLayoutGap=\"22px grid\">\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 fxFlex=\"100%\" *ngIf=\"pluginDefinitions?.length === 0\">\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 <div fxFlex=\"33.3%\" *ngFor=\"let pluginDefinition of pluginDefinitions\">\n <v-card\n [title]=\"'title' | pluginTranslate : pluginDefinition.key | async\"\n [description]=\"'description' | pluginTranslate : pluginDefinition.key | async\"\n [selectable]=\"true\"\n [selected]=\"(selectedPluginDefinition$ | async)?.key === pluginDefinition.key\"\n [fullHeight]=\"true\"\n (selectEvent)=\"selectPluginDefinition(pluginDefinition)\"\n (deselectEvent)=\"deselectPluginDefinition()\"\n >\n <div *ngIf=\"pluginDefinition.pluginLogoBase64\" role=\"header\">\n <img\n class=\"plugin-definition-logo\"\n [title]=\"'title' | pluginTranslate : pluginDefinition.key | async\"\n [src]=\"pluginDefinition.pluginLogoBase64\"\n />\n </div>\n </v-card>\n </div>\n</ng-template>\n\n<ng-template #loading>\n <div fxLayout=\"row wrap\" fxLayoutGap=\"22px 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 fxFlex=\"33.3%\">\n <v-card [loading]=\"true\" [loadingDescription]=\"true\" [loadingTitle]=\"true\"></v-card>\n </div>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2023 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 */.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%}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i2$1.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic", "loading"] }, { kind: "component", type: i2$1.CardComponent, selector: "v-card", inputs: ["titleTranslationKey", "title", "descriptionTranslationKey", "description", "selectable", "selected", "fullHeight", "loading", "loadingTitle", "loadingDescription"], outputs: ["selectEvent", "deselectEvent"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "pipe", type: i1.PluginTranslatePipe, name: "pluginTranslate" }] });
244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginAddSelectComponent, decorators: [{
245
- type: Component,
246
- args: [{ selector: 'valtimo-plugin-add-select', template: "<!--\n ~ Copyright 2015-2023 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 fxLayout=\"row wrap\" fxLayoutGap=\"22px grid\">\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 fxFlex=\"100%\" *ngIf=\"pluginDefinitions?.length === 0\">\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 <div fxFlex=\"33.3%\" *ngFor=\"let pluginDefinition of pluginDefinitions\">\n <v-card\n [title]=\"'title' | pluginTranslate : pluginDefinition.key | async\"\n [description]=\"'description' | pluginTranslate : pluginDefinition.key | async\"\n [selectable]=\"true\"\n [selected]=\"(selectedPluginDefinition$ | async)?.key === pluginDefinition.key\"\n [fullHeight]=\"true\"\n (selectEvent)=\"selectPluginDefinition(pluginDefinition)\"\n (deselectEvent)=\"deselectPluginDefinition()\"\n >\n <div *ngIf=\"pluginDefinition.pluginLogoBase64\" role=\"header\">\n <img\n class=\"plugin-definition-logo\"\n [title]=\"'title' | pluginTranslate : pluginDefinition.key | async\"\n [src]=\"pluginDefinition.pluginLogoBase64\"\n />\n </div>\n </v-card>\n </div>\n</ng-template>\n\n<ng-template #loading>\n <div fxLayout=\"row wrap\" fxLayoutGap=\"22px 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 fxFlex=\"33.3%\">\n <v-card [loading]=\"true\" [loadingDescription]=\"true\" [loadingTitle]=\"true\"></v-card>\n </div>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2023 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 */.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%}\n"] }]
247
- }], ctorParameters: function () { return [{ type: i1.PluginManagementService }, { type: PluginManagementStateService }, { type: i3.TranslateService }]; } });
248
-
249
- /*
250
- * Copyright 2015-2023 Ritense BV, the Netherlands.
251
- *
252
- * Licensed under EUPL, Version 1.2 (the "License");
253
- * you may not use this file except in compliance with the License.
254
- * You may obtain a copy of the License at
255
- *
256
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
257
- *
258
- * Unless required by applicable law or agreed to in writing, software
259
- * distributed under the License is distributed on an "AS IS" basis,
260
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
261
- * See the License for the specific language governing permissions and
262
- * limitations under the License.
263
- */
264
- class PluginConfigureComponent {
265
- constructor(stateService) {
266
- this.stateService = stateService;
267
- this.valid = new EventEmitter();
268
- this.configuration = new EventEmitter();
269
- this.save$ = this.stateService.save$;
270
- this.pluginDefinitionKey$ = this.stateService.selectedPluginDefinition$.pipe(map(definition => definition === null || definition === void 0 ? void 0 : definition.key));
271
- this.prefillConfiguration$ = of(undefined);
272
- this.disabled$ = this.stateService.inputDisabled$;
273
- }
274
- onValid(valid) {
275
- this.valid.emit(valid);
276
- }
277
- onFunctionConfiguration(configuration) {
278
- this.configuration.emit(configuration);
279
- }
280
- }
281
- PluginConfigureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginConfigureComponent, deps: [{ token: PluginManagementStateService }], target: i0.ɵɵFactoryTarget.Component });
282
- PluginConfigureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PluginConfigureComponent, selector: "valtimo-plugin-configure", outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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 [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-2023 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: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1.PluginConfigurationContainerComponent, selector: "valtimo-plugin-configuration-container", inputs: ["type", "pluginDefinitionKey", "functionKey", "save$", "disabled$", "prefillConfiguration$"], outputs: ["valid", "configuration"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }] });
283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginConfigureComponent, decorators: [{
284
- type: Component,
285
- args: [{ selector: 'valtimo-plugin-configure', template: "<!--\n ~ Copyright 2015-2023 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 [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-2023 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"] }]
286
- }], ctorParameters: function () { return [{ type: PluginManagementStateService }]; }, propDecorators: { valid: [{
287
- type: Output
288
- }], configuration: [{
289
- type: Output
290
- }] } });
291
-
292
- /*
293
- * Copyright 2015-2023 Ritense BV, the Netherlands.
294
- *
295
- * Licensed under EUPL, Version 1.2 (the "License");
296
- * you may not use this file except in compliance with the License.
297
- * You may obtain a copy of the License at
298
- *
299
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
300
- *
301
- * Unless required by applicable law or agreed to in writing, software
302
- * distributed under the License is distributed on an "AS IS" basis,
303
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
304
- * See the License for the specific language governing permissions and
305
- * limitations under the License.
306
- */
307
- class PluginAddModalComponent {
308
- constructor(stateService, modalService, pluginManagementService, logger) {
309
- this.stateService = stateService;
310
- this.modalService = modalService;
311
- this.pluginManagementService = pluginManagementService;
312
- this.logger = logger;
313
- this.inputDisabled$ = this.stateService.inputDisabled$;
314
- this.selectedPluginDefinition$ = this.stateService.selectedPluginDefinition$;
315
- this.configurationValid$ = new BehaviorSubject(false);
316
- this.returnToFirstStepSubject$ = new Subject();
317
- }
318
- ngOnInit() {
319
- this.openShowSubscription();
320
- this.openHideSubscription();
321
- }
322
- complete() {
323
- this.stateService.save();
324
- }
325
- delete() {
326
- this.stateService.delete();
327
- }
328
- hide() {
329
- this.stateService.disableInput();
330
- this.modalService.closeModal(() => {
331
- this.returnToFirstStep();
332
- this.stateService.enableInput();
333
- this.stateService.clear();
334
- });
335
- }
336
- onValid(valid) {
337
- this.configurationValid$.next(valid);
338
- }
339
- onConfiguration(configuration) {
340
- const pluginConfiguration = Object.assign({}, configuration);
341
- delete pluginConfiguration['configurationTitle'];
342
- this.stateService.disableInput();
343
- this.stateService.selectedPluginDefinition$.pipe(take(1)).subscribe(selectedDefinition => {
344
- this.pluginManagementService
345
- .savePluginConfiguration({
346
- definitionKey: selectedDefinition.key,
347
- title: configuration.configurationTitle,
348
- properties: pluginConfiguration,
349
- })
350
- .subscribe({
351
- next: () => {
352
- this.stateService.refresh();
353
- this.hide();
354
- },
355
- error: () => {
356
- this.logger.error('Something went wrong with saving the plugin configuration.');
357
- },
358
- });
359
- });
360
- }
361
- openShowSubscription() {
362
- this.showSubscription = this.stateService.showModal$.subscribe(modalType => {
363
- if (modalType === 'add') {
364
- this.show();
365
- }
366
- });
367
- }
368
- openHideSubscription() {
369
- this.hideSubscription = this.stateService.hideModal$.subscribe(() => {
370
- this.hide();
371
- });
372
- }
373
- returnToFirstStep() {
374
- this.returnToFirstStepSubject$.next(true);
375
- }
376
- show() {
377
- this.modalService.openModal(this.pluginAddModal);
378
- }
379
- }
380
- PluginAddModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginAddModalComponent, deps: [{ token: PluginManagementStateService }, { token: i2$1.ModalService }, { token: i1.PluginManagementService }, { token: i4$1.NGXLogger }], target: i0.ɵɵFactoryTarget.Component });
381
- PluginAddModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PluginAddModalComponent, selector: "valtimo-plugin-add-modal", viewQueries: [{ propertyName: "pluginAddModal", first: true, predicate: ["pluginAddModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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 <v-modal #pluginAddModal (closeEvent)=\"hide()\">\n <div role=\"header\">\n <v-stepper-header></v-stepper-header>\n </div>\n <div role=\"content\">\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 </div>\n <div role=\"footer\">\n <v-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 </div>\n </v-modal>\n</v-stepper-container>\n", styles: ["/*!\n * Copyright 2015-2023 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: i2$1.StepperContainerComponent, selector: "v-stepper-container", inputs: ["returnToFirstStepSubject$", "disabled"], outputs: ["cancelClickEvent", "completeEvent", "nextStepEvent"] }, { kind: "component", type: i2$1.StepperContentComponent, selector: "v-stepper-content" }, { kind: "component", type: i2$1.StepperFooterComponent, selector: "v-stepper-footer" }, { kind: "component", type: i2$1.StepperHeaderComponent, selector: "v-stepper-header" }, { kind: "component", type: i2$1.StepperStepComponent, selector: "v-stepper-step", inputs: ["titleTranslationKey"] }, { kind: "component", type: i2$1.StepperFooterStepComponent, selector: "v-stepper-footer-step", inputs: ["nextButtonEnabled", "completeButtonEnabled", "nextButtonTranslationKey", "cancelButtonTranslationKey", "completeButtonTranslationKey", "completeButtonMdiIcon", "showCompleteButton"] }, { kind: "component", type: i2$1.ModalComponent, selector: "v-modal", inputs: ["appearingDelayMs", "maxWidthPx", "hideFooter"], outputs: ["closeEvent"] }, { kind: "component", type: PluginAddSelectComponent, selector: "valtimo-plugin-add-select" }, { kind: "component", type: PluginConfigureComponent, selector: "valtimo-plugin-configure", outputs: ["valid", "configuration"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }] });
382
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginAddModalComponent, decorators: [{
383
- type: Component,
384
- args: [{ selector: 'valtimo-plugin-add-modal', template: "<!--\n ~ Copyright 2015-2023 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 <v-modal #pluginAddModal (closeEvent)=\"hide()\">\n <div role=\"header\">\n <v-stepper-header></v-stepper-header>\n </div>\n <div role=\"content\">\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 </div>\n <div role=\"footer\">\n <v-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 </div>\n </v-modal>\n</v-stepper-container>\n", styles: ["/*!\n * Copyright 2015-2023 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"] }]
385
- }], ctorParameters: function () { return [{ type: PluginManagementStateService }, { type: i2$1.ModalService }, { type: i1.PluginManagementService }, { type: i4$1.NGXLogger }]; }, propDecorators: { pluginAddModal: [{
386
- type: ViewChild,
387
- args: ['pluginAddModal']
388
- }] } });
389
-
390
- /*
391
- * Copyright 2015-2023 Ritense BV, the Netherlands.
392
- *
393
- * Licensed under EUPL, Version 1.2 (the "License");
394
- * you may not use this file except in compliance with the License.
395
- * You may obtain a copy of the License at
396
- *
397
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
398
- *
399
- * Unless required by applicable law or agreed to in writing, software
400
- * distributed under the License is distributed on an "AS IS" basis,
401
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
402
- * See the License for the specific language governing permissions and
403
- * limitations under the License.
404
- */
405
- class PluginEditComponent {
406
- constructor(stateService) {
407
- this.stateService = stateService;
408
- this.valid = new EventEmitter();
409
- this.configuration = new EventEmitter();
410
- this.saveEdit$ = this.stateService.saveEdit$;
411
- this.pluginDefinitionKey$ = this.stateService.selectedPluginConfiguration$.pipe(map(configuration => { var _a; return (_a = configuration === null || configuration === void 0 ? void 0 : configuration.pluginDefinition) === null || _a === void 0 ? void 0 : _a.key; }));
412
- this.prefillConfiguration$ = this.stateService.selectedPluginConfiguration$.pipe(map(configuration => configuration
413
- ? Object.assign(Object.assign({}, configuration.properties), { configurationTitle: configuration.title }) : undefined));
414
- this.disabled$ = this.stateService.inputDisabled$;
415
- }
416
- onValid(valid) {
417
- this.valid.emit(valid);
418
- }
419
- onFunctionConfiguration(configuration) {
420
- this.configuration.emit(configuration);
421
- }
422
- }
423
- PluginEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginEditComponent, deps: [{ token: PluginManagementStateService }], target: i0.ɵɵFactoryTarget.Component });
424
- PluginEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PluginEditComponent, selector: "valtimo-plugin-edit", outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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 [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-2023 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: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1.PluginConfigurationContainerComponent, selector: "valtimo-plugin-configuration-container", inputs: ["type", "pluginDefinitionKey", "functionKey", "save$", "disabled$", "prefillConfiguration$"], outputs: ["valid", "configuration"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }] });
425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginEditComponent, decorators: [{
426
- type: Component,
427
- args: [{ selector: 'valtimo-plugin-edit', template: "<!--\n ~ Copyright 2015-2023 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 [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-2023 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"] }]
428
- }], ctorParameters: function () { return [{ type: PluginManagementStateService }]; }, propDecorators: { valid: [{
429
- type: Output
430
- }], configuration: [{
431
- type: Output
432
- }] } });
433
-
434
- /*
435
- * Copyright 2015-2023 Ritense BV, the Netherlands.
436
- *
437
- * Licensed under EUPL, Version 1.2 (the "License");
438
- * you may not use this file except in compliance with the License.
439
- * You may obtain a copy of the License at
440
- *
441
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
442
- *
443
- * Unless required by applicable law or agreed to in writing, software
444
- * distributed under the License is distributed on an "AS IS" basis,
445
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
446
- * See the License for the specific language governing permissions and
447
- * limitations under the License.
448
- */
449
- class PluginEditModalComponent {
450
- constructor(stateService, modalService, pluginManagementService, logger) {
451
- this.stateService = stateService;
452
- this.modalService = modalService;
453
- this.pluginManagementService = pluginManagementService;
454
- this.logger = logger;
455
- this.inputDisabled$ = this.stateService.inputDisabled$;
456
- this.selectedPluginConfiguration$ = this.stateService.selectedPluginConfiguration$;
457
- this.configurationValid$ = new BehaviorSubject(false);
458
- }
459
- ngOnInit() {
460
- this.openShowSubscription();
461
- this.openHideSubscription();
462
- }
463
- save() {
464
- this.stateService.saveEdit();
465
- }
466
- delete() {
467
- this.stateService.disableInput();
468
- this.stateService.selectedPluginConfiguration$
469
- .pipe(take(1))
470
- .subscribe(selectedPluginConfiguration => {
471
- this.pluginManagementService
472
- .deletePluginConfiguration(selectedPluginConfiguration.id)
473
- .subscribe(() => {
474
- this.stateService.refresh();
475
- this.hide();
476
- }, () => {
477
- this.logger.error('Something went wrong with deleting the plugin configuration.');
478
- this.stateService.enableInput();
479
- });
480
- });
481
- }
482
- hide() {
483
- this.modalService.closeModal(() => {
484
- this.stateService.enableInput();
485
- this.stateService.clear();
486
- });
487
- }
488
- onPluginValid(valid) {
489
- this.configurationValid$.next(valid);
490
- }
491
- onPluginConfiguration(configuration) {
492
- this.stateService.disableInput();
493
- this.stateService.selectedPluginConfiguration$
494
- .pipe(take(1))
495
- .subscribe(selectedPluginConfiguration => {
496
- const configurationTitle = configuration.configurationTitle;
497
- const configurationData = Object.assign({}, configuration);
498
- delete configurationData['configurationTitle'];
499
- this.pluginManagementService
500
- .updatePluginConfiguration(selectedPluginConfiguration.id, configurationTitle, configurationData)
501
- .subscribe(() => {
502
- this.stateService.refresh();
503
- this.hide();
504
- }, () => {
505
- this.logger.error('Something went wrong with updating the plugin configuration.');
506
- this.stateService.enableInput();
507
- });
508
- });
509
- }
510
- openShowSubscription() {
511
- this.showSubscription = this.stateService.showModal$.subscribe(modalType => {
512
- if (modalType === 'edit') {
513
- this.show();
514
- }
515
- });
516
- }
517
- openHideSubscription() {
518
- this.hideSubscription = this.stateService.hideModal$.subscribe(() => {
519
- this.hide();
520
- });
521
- }
522
- show() {
523
- this.modalService.openModal(this.pluginEditModal);
524
- }
525
- }
526
- PluginEditModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginEditModalComponent, deps: [{ token: PluginManagementStateService }, { token: i2$1.ModalService }, { token: i1.PluginManagementService }, { token: i4$1.NGXLogger }], target: i0.ɵɵFactoryTarget.Component });
527
- PluginEditModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PluginEditModalComponent, selector: "valtimo-plugin-edit-modal", viewQueries: [{ propertyName: "pluginEditModal", first: true, predicate: ["pluginEditModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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-modal\n #pluginEditModal\n (closeEvent)=\"hide()\"\n *ngIf=\"{selectedConfiguration: selectedPluginConfiguration$ | async} as obs\"\n>\n <div role=\"header\">\n <div class=\"edit-configuration-title\">\n <v-title [margin]=\"false\" type=\"h2\">{{\n obs.selectedConfiguration?.title +\n ' - ' +\n ('title' | pluginTranslate : obs.selectedConfiguration?.pluginDefinition?.key | async)\n }}</v-title>\n </div>\n </div>\n <div role=\"content\">\n <valtimo-plugin-edit\n (valid)=\"onPluginValid($event)\"\n (configuration)=\"onPluginConfiguration($event)\"\n ></valtimo-plugin-edit>\n </div>\n <div role=\"footer\">\n <div class=\"edit-plugin-buttons\">\n <v-button\n [disabled]=\"inputDisabled$ | async\"\n (clickEvent)=\"delete()\"\n [mdiIcon]=\"'delete'\"\n type=\"danger\"\n >{{ 'pluginManagement.remove' | translate }}</v-button\n >\n <v-button\n [disabled]=\"(configurationValid$ | async) === false || (inputDisabled$ | async)\"\n (clickEvent)=\"save()\"\n [mdiIcon]=\"'check'\"\n type=\"success\"\n >{{ 'pluginManagement.save' | translate }}</v-button\n >\n </div>\n </div>\n</v-modal>\n", styles: ["/*!\n * Copyright 2015-2023 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 */.edit-plugin-buttons{display:flex;width:100%;justify-content:space-between}.edit-configuration-title{display:flex;width:100%;justify-content:center}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.TitleComponent, selector: "v-title", inputs: ["type", "margin", "fullWidth", "center"] }, { kind: "component", type: i2$1.ModalComponent, selector: "v-modal", inputs: ["appearingDelayMs", "maxWidthPx", "hideFooter"], outputs: ["closeEvent"] }, { kind: "component", type: i2$1.ButtonComponent, selector: "v-button", inputs: ["type", "mdiIcon", "disabled", "title", "titleTranslationKey"], outputs: ["clickEvent"] }, { kind: "component", type: PluginEditComponent, selector: "valtimo-plugin-edit", outputs: ["valid", "configuration"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "pipe", type: i1.PluginTranslatePipe, name: "pluginTranslate" }] });
528
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginEditModalComponent, decorators: [{
529
- type: Component,
530
- args: [{ selector: 'valtimo-plugin-edit-modal', template: "<!--\n ~ Copyright 2015-2023 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-modal\n #pluginEditModal\n (closeEvent)=\"hide()\"\n *ngIf=\"{selectedConfiguration: selectedPluginConfiguration$ | async} as obs\"\n>\n <div role=\"header\">\n <div class=\"edit-configuration-title\">\n <v-title [margin]=\"false\" type=\"h2\">{{\n obs.selectedConfiguration?.title +\n ' - ' +\n ('title' | pluginTranslate : obs.selectedConfiguration?.pluginDefinition?.key | async)\n }}</v-title>\n </div>\n </div>\n <div role=\"content\">\n <valtimo-plugin-edit\n (valid)=\"onPluginValid($event)\"\n (configuration)=\"onPluginConfiguration($event)\"\n ></valtimo-plugin-edit>\n </div>\n <div role=\"footer\">\n <div class=\"edit-plugin-buttons\">\n <v-button\n [disabled]=\"inputDisabled$ | async\"\n (clickEvent)=\"delete()\"\n [mdiIcon]=\"'delete'\"\n type=\"danger\"\n >{{ 'pluginManagement.remove' | translate }}</v-button\n >\n <v-button\n [disabled]=\"(configurationValid$ | async) === false || (inputDisabled$ | async)\"\n (clickEvent)=\"save()\"\n [mdiIcon]=\"'check'\"\n type=\"success\"\n >{{ 'pluginManagement.save' | translate }}</v-button\n >\n </div>\n </div>\n</v-modal>\n", styles: ["/*!\n * Copyright 2015-2023 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 */.edit-plugin-buttons{display:flex;width:100%;justify-content:space-between}.edit-configuration-title{display:flex;width:100%;justify-content:center}\n"] }]
531
- }], ctorParameters: function () { return [{ type: PluginManagementStateService }, { type: i2$1.ModalService }, { type: i1.PluginManagementService }, { type: i4$1.NGXLogger }]; }, propDecorators: { pluginEditModal: [{
532
- type: ViewChild,
533
- args: ['pluginEditModal']
534
- }] } });
535
-
536
- /*
537
- * Copyright 2015-2023 Ritense BV, the Netherlands.
538
- *
539
- * Licensed under EUPL, Version 1.2 (the "License");
540
- * you may not use this file except in compliance with the License.
541
- * You may obtain a copy of the License at
542
- *
543
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
544
- *
545
- * Unless required by applicable law or agreed to in writing, software
546
- * distributed under the License is distributed on an "AS IS" basis,
547
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
548
- * See the License for the specific language governing permissions and
549
- * limitations under the License.
550
- */
551
- class PluginManagementComponent {
552
- constructor(pluginManagementService, translateService, stateService, pluginTranslationService) {
553
- this.pluginManagementService = pluginManagementService;
554
- this.translateService = translateService;
555
- this.stateService = stateService;
556
- this.pluginTranslationService = pluginTranslationService;
557
- this.loading$ = new BehaviorSubject(true);
558
- this.columns$ = new BehaviorSubject([
559
- {
560
- labelTranslationKey: 'pluginManagement.labels.pluginName',
561
- dataKey: 'pluginName',
562
- },
563
- {
564
- labelTranslationKey: 'pluginManagement.labels.identifier',
565
- dataKey: 'definitionKey',
566
- },
567
- {
568
- labelTranslationKey: 'pluginManagement.labels.configurationName',
569
- dataKey: 'title',
570
- },
571
- ]);
572
- this.pluginConfigurations$ = this.stateService.refresh$.pipe(switchMap(() => combineLatest([
573
- this.pluginManagementService.getAllPluginConfigurations(),
574
- this.translateService.stream('key'),
575
- ]).pipe(map(([pluginConfigurations]) => pluginConfigurations.map(configuration => (Object.assign(Object.assign({}, configuration), { pluginName: this.pluginTranslationService.instant('title', configuration.pluginDefinition.key), definitionKey: configuration.pluginDefinition.key })))), tap(() => {
576
- this.loading$.next(false);
577
- }))));
578
- }
579
- showAddModal() {
580
- this.stateService.showModal('add');
581
- }
582
- rowClicked(configuration) {
583
- this.stateService.selectPluginConfiguration(configuration);
584
- this.stateService.showModal('edit');
585
- }
586
- }
587
- PluginManagementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementComponent, deps: [{ token: i1.PluginManagementService }, { token: i3.TranslateService }, { token: PluginManagementStateService }, { token: i1.PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component });
588
- PluginManagementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PluginManagementComponent, selector: "valtimo-plugin-management", ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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-page-container\n *ngIf=\"{\n pluginConfigurations: pluginConfigurations$ | async,\n columns: columns$ | async,\n loading: loading$ | async\n } as obs\"\n>\n <v-page-header>\n <v-page-header-introduction>\n <v-paragraph>{{ 'pages.plugins.description' | translate }}</v-paragraph>\n </v-page-header-introduction>\n <v-page-header-actions>\n <v-button\n (clickEvent)=\"showAddModal()\"\n type=\"primary\"\n mdiIcon=\"plus\"\n [disabled]=\"obs.loading\"\n >\n {{ 'pluginManagement.add' | translate }}\n </v-button>\n </v-page-header-actions>\n </v-page-header>\n <v-page-content>\n <v-table\n [loading]=\"obs.loading\"\n [items]=\"obs.pluginConfigurations\"\n [columns]=\"obs.columns\"\n [showEditButtons]=\"true\"\n [amountOfLoadingRows]=\"2\"\n [itemsTranslationKey]=\"'pluginManagement.tableItemsText'\"\n [showPagination]=\"false\"\n (editButtonClicked)=\"rowClicked($event)\"\n ></v-table>\n </v-page-content>\n</v-page-container>\n\n<valtimo-plugin-add-modal></valtimo-plugin-add-modal>\n\n<valtimo-plugin-edit-modal></valtimo-plugin-edit-modal>\n", styles: ["/*!\n * Copyright 2015-2023 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: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.PageContainerComponent, selector: "v-page-container" }, { kind: "component", type: i2$1.PageContentComponent, selector: "v-page-content" }, { kind: "component", type: i2$1.PageHeaderComponent, selector: "v-page-header" }, { kind: "component", type: i2$1.PageHeaderActionsComponent, selector: "v-page-header-actions" }, { kind: "component", type: i2$1.PageHeaderIntroductionComponent, selector: "v-page-header-introduction" }, { kind: "component", type: i2$1.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic", "loading"] }, { kind: "component", type: i2$1.TableComponent, selector: "v-table", inputs: ["items", "columns", "loading", "showEditButtons", "showPagination", "editButtonTranslationKey", "itemsTranslationKey", "noResultsTranslationKey", "mobileBreakpointPx", "amountOfLoadingRows", "collectionSize", "maxPaginationItemSize", "page", "size"], outputs: ["editButtonClicked", "paginationSizeSet", "paginationPageSet"] }, { kind: "component", type: i2$1.ButtonComponent, selector: "v-button", inputs: ["type", "mdiIcon", "disabled", "title", "titleTranslationKey"], outputs: ["clickEvent"] }, { kind: "component", type: PluginAddModalComponent, selector: "valtimo-plugin-add-modal" }, { kind: "component", type: PluginEditModalComponent, selector: "valtimo-plugin-edit-modal" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementComponent, decorators: [{
590
- type: Component,
591
- args: [{ selector: 'valtimo-plugin-management', template: "<!--\n ~ Copyright 2015-2023 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-page-container\n *ngIf=\"{\n pluginConfigurations: pluginConfigurations$ | async,\n columns: columns$ | async,\n loading: loading$ | async\n } as obs\"\n>\n <v-page-header>\n <v-page-header-introduction>\n <v-paragraph>{{ 'pages.plugins.description' | translate }}</v-paragraph>\n </v-page-header-introduction>\n <v-page-header-actions>\n <v-button\n (clickEvent)=\"showAddModal()\"\n type=\"primary\"\n mdiIcon=\"plus\"\n [disabled]=\"obs.loading\"\n >\n {{ 'pluginManagement.add' | translate }}\n </v-button>\n </v-page-header-actions>\n </v-page-header>\n <v-page-content>\n <v-table\n [loading]=\"obs.loading\"\n [items]=\"obs.pluginConfigurations\"\n [columns]=\"obs.columns\"\n [showEditButtons]=\"true\"\n [amountOfLoadingRows]=\"2\"\n [itemsTranslationKey]=\"'pluginManagement.tableItemsText'\"\n [showPagination]=\"false\"\n (editButtonClicked)=\"rowClicked($event)\"\n ></v-table>\n </v-page-content>\n</v-page-container>\n\n<valtimo-plugin-add-modal></valtimo-plugin-add-modal>\n\n<valtimo-plugin-edit-modal></valtimo-plugin-edit-modal>\n", styles: ["/*!\n * Copyright 2015-2023 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"] }]
592
- }], ctorParameters: function () { return [{ type: i1.PluginManagementService }, { type: i3.TranslateService }, { type: PluginManagementStateService }, { type: i1.PluginTranslationService }]; } });
593
-
594
- /*
595
- * Copyright 2015-2023 Ritense BV, the Netherlands.
596
- *
597
- * Licensed under EUPL, Version 1.2 (the "License");
598
- * you may not use this file except in compliance with the License.
599
- * You may obtain a copy of the License at
600
- *
601
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
602
- *
603
- * Unless required by applicable law or agreed to in writing, software
604
- * distributed under the License is distributed on an "AS IS" basis,
605
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
606
- * See the License for the specific language governing permissions and
607
- * limitations under the License.
608
- */
609
- const routes = [
610
- {
611
- path: 'plugins',
612
- component: PluginManagementComponent,
613
- canActivate: [AuthGuardService],
614
- data: { title: 'Plugins', roles: [ROLE_ADMIN] },
615
- },
616
- ];
617
- class PluginManagementRoutingModule {
618
- }
619
- PluginManagementRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
620
- PluginManagementRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementRoutingModule, imports: [CommonModule, i1$1.RouterModule], exports: [RouterModule] });
621
- PluginManagementRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] });
622
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementRoutingModule, decorators: [{
623
- type: NgModule,
624
- args: [{
625
- declarations: [],
626
- imports: [CommonModule, RouterModule.forChild(routes)],
627
- exports: [RouterModule],
628
- }]
629
- }] });
630
-
631
- /*
632
- * Copyright 2015-2023 Ritense BV, the Netherlands.
633
- *
634
- * Licensed under EUPL, Version 1.2 (the "License");
635
- * you may not use this file except in compliance with the License.
636
- * You may obtain a copy of the License at
637
- *
638
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
639
- *
640
- * Unless required by applicable law or agreed to in writing, software
641
- * distributed under the License is distributed on an "AS IS" basis,
642
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
643
- * See the License for the specific language governing permissions and
644
- * limitations under the License.
645
- */
646
- class PluginManagementModule {
647
- }
648
- PluginManagementModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
649
- PluginManagementModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementModule, declarations: [PluginManagementComponent,
650
- PluginAddModalComponent,
651
- PluginAddSelectComponent,
652
- PluginConfigureComponent,
653
- PluginEditModalComponent,
654
- PluginEditComponent], imports: [CommonModule,
655
- PluginManagementRoutingModule,
656
- TranslateModule,
657
- FlexLayoutModule,
658
- PageModule,
659
- ParagraphModule,
660
- TitleModule,
661
- TableModule,
662
- StepperModule,
663
- ModalModule,
664
- ButtonModule,
665
- CardModule,
666
- PluginTranslatePipeModule,
667
- PluginConfigurationContainerModule], exports: [PluginManagementComponent,
668
- PluginAddModalComponent,
669
- PluginAddSelectComponent,
670
- PluginConfigureComponent,
671
- PluginEditModalComponent,
672
- PluginEditComponent] });
673
- PluginManagementModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementModule, providers: [PluginManagementStateService], imports: [CommonModule,
674
- PluginManagementRoutingModule,
675
- TranslateModule,
676
- FlexLayoutModule,
677
- PageModule,
678
- ParagraphModule,
679
- TitleModule,
680
- TableModule,
681
- StepperModule,
682
- ModalModule,
683
- ButtonModule,
684
- CardModule,
685
- PluginTranslatePipeModule,
686
- PluginConfigurationContainerModule] });
687
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PluginManagementModule, decorators: [{
688
- type: NgModule,
689
- args: [{
690
- providers: [PluginManagementStateService],
691
- declarations: [
692
- PluginManagementComponent,
693
- PluginAddModalComponent,
694
- PluginAddSelectComponent,
695
- PluginConfigureComponent,
696
- PluginEditModalComponent,
697
- PluginEditComponent,
698
- ],
699
- imports: [
700
- CommonModule,
701
- PluginManagementRoutingModule,
702
- TranslateModule,
703
- FlexLayoutModule,
704
- PageModule,
705
- ParagraphModule,
706
- TitleModule,
707
- TableModule,
708
- StepperModule,
709
- ModalModule,
710
- ButtonModule,
711
- CardModule,
712
- PluginTranslatePipeModule,
713
- PluginConfigurationContainerModule,
714
- ],
715
- exports: [
716
- PluginManagementComponent,
717
- PluginAddModalComponent,
718
- PluginAddSelectComponent,
719
- PluginConfigureComponent,
720
- PluginEditModalComponent,
721
- PluginEditComponent,
722
- ],
723
- }]
724
- }] });
725
-
726
- /*
727
- * Copyright 2015-2023 Ritense BV, the Netherlands.
728
- *
729
- * Licensed under EUPL, Version 1.2 (the "License");
730
- * you may not use this file except in compliance with the License.
731
- * You may obtain a copy of the License at
732
- *
733
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
734
- *
735
- * Unless required by applicable law or agreed to in writing, software
736
- * distributed under the License is distributed on an "AS IS" basis,
737
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
738
- * See the License for the specific language governing permissions and
739
- * limitations under the License.
740
- */
741
-
742
- /**
743
- * Generated bundle index. Do not edit.
744
- */
745
-
746
- export { PluginAddModalComponent, PluginAddSelectComponent, PluginConfigureComponent, PluginEditComponent, PluginEditModalComponent, PluginManagementComponent, PluginManagementModule, PluginManagementStateService };
747
- //# sourceMappingURL=valtimo-plugin-management.mjs.map