@valtimo/plugin-management 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/esm2020/lib/components/plugin-add-modal/plugin-add-modal.component.mjs +81 -0
- package/esm2020/lib/components/plugin-add-select/plugin-add-select.component.mjs +66 -0
- package/esm2020/lib/components/plugin-management/plugin-management.component.mjs +65 -0
- package/esm2020/lib/models/index.mjs +14 -0
- package/esm2020/lib/models/plugin-modal.model.mjs +13 -0
- package/esm2020/lib/models/plugin.model.mjs +13 -0
- package/esm2020/lib/plugin-management-routing.mjs +41 -0
- package/esm2020/lib/plugin-management.module.mjs +74 -0
- package/esm2020/lib/services/index.mjs +14 -0
- package/esm2020/lib/services/plugin-management-state.service.mjs +117 -0
- package/esm2020/lib/services/plugin.service.mjs +84 -0
- package/esm2020/public-api.mjs +21 -0
- package/esm2020/valtimo-plugin-management.mjs +5 -0
- package/fesm2015/valtimo-plugin-management.mjs +533 -0
- package/fesm2015/valtimo-plugin-management.mjs.map +1 -0
- package/fesm2020/valtimo-plugin-management.mjs +559 -0
- package/fesm2020/valtimo-plugin-management.mjs.map +1 -0
- package/lib/components/plugin-add-modal/plugin-add-modal.component.d.ts +27 -0
- package/lib/components/plugin-add-modal/plugin-add-modal.component.d.ts.map +1 -0
- package/lib/components/plugin-add-select/plugin-add-select.component.d.ts +25 -0
- package/lib/components/plugin-add-select/plugin-add-select.component.d.ts.map +1 -0
- package/lib/components/plugin-management/plugin-management.component.d.ts +23 -0
- package/lib/components/plugin-management/plugin-management.component.d.ts.map +1 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/models/plugin-modal.model.d.ts +3 -0
- package/lib/models/plugin-modal.model.d.ts.map +1 -0
- package/lib/models/plugin.model.d.ts +13 -0
- package/lib/models/plugin.model.d.ts.map +1 -0
- package/lib/plugin-management-routing.d.ts +9 -0
- package/lib/plugin-management-routing.d.ts.map +1 -0
- package/lib/plugin-management.module.d.ts +15 -0
- package/lib/plugin-management.module.d.ts.map +1 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/plugin-management-state.service.d.ts +43 -0
- package/lib/services/plugin-management-state.service.d.ts.map +1 -0
- package/lib/services/plugin.service.d.ts +13 -0
- package/lib/services/plugin.service.d.ts.map +1 -0
- package/package.json +33 -0
- package/public-api.d.ts +7 -0
- package/public-api.d.ts.map +1 -0
- package/valtimo-plugin-management.d.ts +6 -0
- package/valtimo-plugin-management.d.ts.map +1 -0
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Component, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import { of, Subject, BehaviorSubject, combineLatest } from 'rxjs';
|
|
4
|
+
import { delay, take, map, tap } from 'rxjs/operators';
|
|
5
|
+
import * as i1 from '@angular/router';
|
|
6
|
+
import { RouterModule } from '@angular/router';
|
|
7
|
+
import * as i4 from '@angular/common';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
import { AuthGuardService } from '@valtimo/security';
|
|
10
|
+
import { ROLE_ADMIN } from '@valtimo/config';
|
|
11
|
+
import * as i2 from '@ngx-translate/core';
|
|
12
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
13
|
+
import * as i3 from '@valtimo/user-interface';
|
|
14
|
+
import { PageModule, ParagraphModule, TitleModule, TableModule, StepperModule, ModalModule, ButtonModule, CardModule } from '@valtimo/user-interface';
|
|
15
|
+
import * as i5 from '@angular/flex-layout/flex';
|
|
16
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
20
|
+
*
|
|
21
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
22
|
+
* you may not use this file except in compliance with the License.
|
|
23
|
+
* You may obtain a copy of the License at
|
|
24
|
+
*
|
|
25
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
26
|
+
*
|
|
27
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/*
|
|
31
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
32
|
+
*
|
|
33
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
34
|
+
* you may not use this file except in compliance with the License.
|
|
35
|
+
* You may obtain a copy of the License at
|
|
36
|
+
*
|
|
37
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
38
|
+
*
|
|
39
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
40
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
41
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
42
|
+
* See the License for the specific language governing permissions and
|
|
43
|
+
* limitations under the License.
|
|
44
|
+
*/
|
|
45
|
+
class PluginService {
|
|
46
|
+
constructor() {
|
|
47
|
+
this.OPEN_ZAAK_CONFIGURATIONS = [
|
|
48
|
+
{
|
|
49
|
+
definitionKey: 'openzaak',
|
|
50
|
+
key: '1ebdad87-3899-4ab7-b4ad-403237b17dbd',
|
|
51
|
+
title: 'Den Haag Open Zaak 1',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
definitionKey: 'openzaak',
|
|
55
|
+
key: '1ebdad87-3899-4ab7-b4ad-403237b17dbe',
|
|
56
|
+
title: 'Den Haag Open Zaak 2',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
definitionKey: 'openzaak',
|
|
60
|
+
key: '1ebdad87-3899-4ab7-b4ad-403237b17dbf',
|
|
61
|
+
title: 'Den Haag Open Zaak 3',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
definitionKey: 'openzaak',
|
|
65
|
+
key: '1ebdad87-3899-4ab7-b4ad-403237b17dbg',
|
|
66
|
+
title: 'Den Haag Open Zaak 4',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
definitionKey: 'openzaak',
|
|
70
|
+
key: '1ebdad87-3899-4ab7-b4ad-403237b17dbh',
|
|
71
|
+
title: 'Den Haag Open Zaak 5',
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
}
|
|
75
|
+
getPluginDefinitions() {
|
|
76
|
+
return of([{ key: 'openzaak' }]).pipe(delay(1500));
|
|
77
|
+
}
|
|
78
|
+
getPluginConfigurations(pluginDefinitionId) {
|
|
79
|
+
return of(this.OPEN_ZAAK_CONFIGURATIONS).pipe(delay(1500));
|
|
80
|
+
}
|
|
81
|
+
getPluginFunctions(pluginDefinitionId) {
|
|
82
|
+
return of([
|
|
83
|
+
{
|
|
84
|
+
key: 'create-zaak',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: 'set-status',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
key: 'set-resultaat',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: 'set-besluit',
|
|
94
|
+
},
|
|
95
|
+
]).pipe(delay(1500));
|
|
96
|
+
}
|
|
97
|
+
getAllPluginConfigurations() {
|
|
98
|
+
return of(this.OPEN_ZAAK_CONFIGURATIONS).pipe(delay(1500));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
PluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
102
|
+
PluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginService, providedIn: 'root' });
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginService, decorators: [{
|
|
104
|
+
type: Injectable,
|
|
105
|
+
args: [{
|
|
106
|
+
providedIn: 'root',
|
|
107
|
+
}]
|
|
108
|
+
}] });
|
|
109
|
+
|
|
110
|
+
/*
|
|
111
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
112
|
+
*
|
|
113
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
114
|
+
* you may not use this file except in compliance with the License.
|
|
115
|
+
* You may obtain a copy of the License at
|
|
116
|
+
*
|
|
117
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
118
|
+
*
|
|
119
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.
|
|
120
|
+
*/
|
|
121
|
+
class PluginManagementStateService {
|
|
122
|
+
constructor() {
|
|
123
|
+
this._showModal$ = new Subject();
|
|
124
|
+
this._hideModal$ = new Subject();
|
|
125
|
+
this._inputDisabled$ = new BehaviorSubject(false);
|
|
126
|
+
this._saveButtonDisabled$ = new BehaviorSubject(true);
|
|
127
|
+
this._refresh$ = new BehaviorSubject(null);
|
|
128
|
+
this._save$ = new Subject();
|
|
129
|
+
this._delete$ = new Subject();
|
|
130
|
+
this._hideModalSaveButton$ = new BehaviorSubject(false);
|
|
131
|
+
this._pluginDefinitions$ = new BehaviorSubject(undefined);
|
|
132
|
+
this._selectedPluginDefinition$ = new BehaviorSubject(undefined);
|
|
133
|
+
}
|
|
134
|
+
get showModal$() {
|
|
135
|
+
return this._showModal$.asObservable();
|
|
136
|
+
}
|
|
137
|
+
get hideModal$() {
|
|
138
|
+
return this._hideModal$.asObservable();
|
|
139
|
+
}
|
|
140
|
+
get inputDisabled$() {
|
|
141
|
+
return this._inputDisabled$.asObservable();
|
|
142
|
+
}
|
|
143
|
+
get refresh$() {
|
|
144
|
+
return this._refresh$.asObservable();
|
|
145
|
+
}
|
|
146
|
+
get pluginDefinitions$() {
|
|
147
|
+
return this._pluginDefinitions$.asObservable();
|
|
148
|
+
}
|
|
149
|
+
get selectedPluginDefinition$() {
|
|
150
|
+
return this._selectedPluginDefinition$.asObservable();
|
|
151
|
+
}
|
|
152
|
+
get saveButtonDisabled$() {
|
|
153
|
+
return this._saveButtonDisabled$.asObservable();
|
|
154
|
+
}
|
|
155
|
+
get save$() {
|
|
156
|
+
return this._save$.asObservable();
|
|
157
|
+
}
|
|
158
|
+
get delete$() {
|
|
159
|
+
return this._delete$.asObservable();
|
|
160
|
+
}
|
|
161
|
+
get hideModalSaveButton$() {
|
|
162
|
+
return this._hideModalSaveButton$.asObservable();
|
|
163
|
+
}
|
|
164
|
+
showModal(modalType) {
|
|
165
|
+
this._showModal$.next(modalType);
|
|
166
|
+
}
|
|
167
|
+
hideModal() {
|
|
168
|
+
this._hideModal$.next();
|
|
169
|
+
}
|
|
170
|
+
disableInput() {
|
|
171
|
+
this._inputDisabled$.next(true);
|
|
172
|
+
}
|
|
173
|
+
enableInput() {
|
|
174
|
+
this._inputDisabled$.next(false);
|
|
175
|
+
}
|
|
176
|
+
refresh() {
|
|
177
|
+
this._refresh$.next(null);
|
|
178
|
+
}
|
|
179
|
+
setPluginDefinitions(definitions) {
|
|
180
|
+
this._pluginDefinitions$.next(definitions);
|
|
181
|
+
}
|
|
182
|
+
selectPluginDefinition(definition) {
|
|
183
|
+
this._selectedPluginDefinition$.next(definition);
|
|
184
|
+
}
|
|
185
|
+
clearSelectedPluginDefinition() {
|
|
186
|
+
this._selectedPluginDefinition$.next(undefined);
|
|
187
|
+
}
|
|
188
|
+
enableSaveButton() {
|
|
189
|
+
this._saveButtonDisabled$.next(false);
|
|
190
|
+
}
|
|
191
|
+
disableSaveButton() {
|
|
192
|
+
this._saveButtonDisabled$.next(true);
|
|
193
|
+
}
|
|
194
|
+
save() {
|
|
195
|
+
this._saveButtonDisabled$.pipe(take(1)).subscribe(saveButtonDisabled => {
|
|
196
|
+
if (!saveButtonDisabled) {
|
|
197
|
+
this._save$.next();
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
delete() {
|
|
202
|
+
this._delete$.next();
|
|
203
|
+
}
|
|
204
|
+
hideModalSaveButton() {
|
|
205
|
+
this._hideModalSaveButton$.next(true);
|
|
206
|
+
}
|
|
207
|
+
showModalSaveButton() {
|
|
208
|
+
this._hideModalSaveButton$.next(false);
|
|
209
|
+
}
|
|
210
|
+
clear() {
|
|
211
|
+
this._selectedPluginDefinition$.next(undefined);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
PluginManagementStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
215
|
+
PluginManagementStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementStateService, providedIn: 'root' });
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementStateService, decorators: [{
|
|
217
|
+
type: Injectable,
|
|
218
|
+
args: [{
|
|
219
|
+
providedIn: 'root',
|
|
220
|
+
}]
|
|
221
|
+
}] });
|
|
222
|
+
|
|
223
|
+
/*
|
|
224
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
225
|
+
*
|
|
226
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
227
|
+
* you may not use this file except in compliance with the License.
|
|
228
|
+
* You may obtain a copy of the License at
|
|
229
|
+
*
|
|
230
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
231
|
+
*
|
|
232
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
/*
|
|
236
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
237
|
+
*
|
|
238
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
239
|
+
* you may not use this file except in compliance with the License.
|
|
240
|
+
* You may obtain a copy of the License at
|
|
241
|
+
*
|
|
242
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
243
|
+
*
|
|
244
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
245
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
246
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
247
|
+
* See the License for the specific language governing permissions and
|
|
248
|
+
* limitations under the License.
|
|
249
|
+
*/
|
|
250
|
+
class PluginAddSelectComponent {
|
|
251
|
+
constructor(pluginService, stateService, translateService) {
|
|
252
|
+
this.pluginService = pluginService;
|
|
253
|
+
this.stateService = stateService;
|
|
254
|
+
this.translateService = translateService;
|
|
255
|
+
this.selectedPluginDefinition$ = this.stateService.selectedPluginDefinition$;
|
|
256
|
+
this.disabled$ = this.stateService.inputDisabled$;
|
|
257
|
+
this.pluginDefinitions$ = this.stateService.pluginDefinitions$;
|
|
258
|
+
}
|
|
259
|
+
ngOnInit() {
|
|
260
|
+
this.openRefreshSubscription();
|
|
261
|
+
this.getPluginDefinitions();
|
|
262
|
+
}
|
|
263
|
+
ngOnDestroy() {
|
|
264
|
+
var _a;
|
|
265
|
+
(_a = this.refreshSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
266
|
+
}
|
|
267
|
+
selectPluginDefinition(pluginDefinition) {
|
|
268
|
+
this.stateService.selectPluginDefinition(pluginDefinition);
|
|
269
|
+
}
|
|
270
|
+
deselectPluginDefinition() {
|
|
271
|
+
this.stateService.clearSelectedPluginDefinition();
|
|
272
|
+
}
|
|
273
|
+
getPluginDefinitions() {
|
|
274
|
+
this.pluginService.getPluginDefinitions().subscribe(pluginDefinitions => {
|
|
275
|
+
this.stateService.setPluginDefinitions(pluginDefinitions);
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
openRefreshSubscription() {
|
|
279
|
+
this.refreshSubscription = combineLatest([
|
|
280
|
+
this.stateService.showModal$,
|
|
281
|
+
this.stateService.refresh$,
|
|
282
|
+
]).subscribe(() => {
|
|
283
|
+
this.stateService.clearSelectedPluginDefinition();
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
PluginAddSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginAddSelectComponent, deps: [{ token: PluginService }, { token: PluginManagementStateService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
288
|
+
PluginAddSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: PluginAddSelectComponent, selector: "valtimo-plugin-add-select", ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 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=\"pluginDefinitions$ | async as pluginDefinitions; else loading\">\n <div fxLayout=\"row wrap\" fxLayoutGap=\"22px grid\">\n <div fxFlex=\"33.3%\" *ngFor=\"let pluginDefinition of pluginDefinitions\">\n <v-card\n [titleTranslationKey]=\"'plugin.' + pluginDefinition.key + '.title'\"\n [descriptionTranslationKey]=\"'plugin.' + pluginDefinition.key + '.description'\"\n [selectable]=\"true\"\n [selected]=\"(selectedPluginDefinition$ | async)?.key === pluginDefinition.key\"\n [fullHeight]=\"true\"\n (selectEvent)=\"selectPluginDefinition(pluginDefinition)\"\n (deselectEvent)=\"deselectPluginDefinition()\"\n ></v-card>\n </div>\n </div>\n</ng-container>\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-2020 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}\n"], components: [{ type: i3.CardComponent, selector: "v-card", inputs: ["titleTranslationKey", "title", "descriptionTranslationKey", "description", "selectable", "selected", "fullHeight", "loading", "loadingTitle", "loadingDescription"], outputs: ["selectEvent", "deselectEvent"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }, { 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"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i4.AsyncPipe } });
|
|
289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginAddSelectComponent, decorators: [{
|
|
290
|
+
type: Component,
|
|
291
|
+
args: [{ selector: 'valtimo-plugin-add-select', template: "<!--\n ~ Copyright 2015-2020 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=\"pluginDefinitions$ | async as pluginDefinitions; else loading\">\n <div fxLayout=\"row wrap\" fxLayoutGap=\"22px grid\">\n <div fxFlex=\"33.3%\" *ngFor=\"let pluginDefinition of pluginDefinitions\">\n <v-card\n [titleTranslationKey]=\"'plugin.' + pluginDefinition.key + '.title'\"\n [descriptionTranslationKey]=\"'plugin.' + pluginDefinition.key + '.description'\"\n [selectable]=\"true\"\n [selected]=\"(selectedPluginDefinition$ | async)?.key === pluginDefinition.key\"\n [fullHeight]=\"true\"\n (selectEvent)=\"selectPluginDefinition(pluginDefinition)\"\n (deselectEvent)=\"deselectPluginDefinition()\"\n ></v-card>\n </div>\n </div>\n</ng-container>\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-2020 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}\n"] }]
|
|
292
|
+
}], ctorParameters: function () { return [{ type: PluginService }, { type: PluginManagementStateService }, { type: i2.TranslateService }]; } });
|
|
293
|
+
|
|
294
|
+
/*
|
|
295
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
296
|
+
*
|
|
297
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
298
|
+
* you may not use this file except in compliance with the License.
|
|
299
|
+
* You may obtain a copy of the License at
|
|
300
|
+
*
|
|
301
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
302
|
+
*
|
|
303
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
304
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
305
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
306
|
+
* See the License for the specific language governing permissions and
|
|
307
|
+
* limitations under the License.
|
|
308
|
+
*/
|
|
309
|
+
class PluginAddModalComponent {
|
|
310
|
+
constructor(stateService, modalService) {
|
|
311
|
+
this.stateService = stateService;
|
|
312
|
+
this.modalService = modalService;
|
|
313
|
+
this.inputDisabled$ = this.stateService.inputDisabled$;
|
|
314
|
+
this.selectedPluginDefinition$ = this.stateService.selectedPluginDefinition$;
|
|
315
|
+
this.returnToFirstStepSubject$ = new Subject();
|
|
316
|
+
}
|
|
317
|
+
ngOnInit() {
|
|
318
|
+
this.openShowSubscription();
|
|
319
|
+
this.openHideSubscription();
|
|
320
|
+
}
|
|
321
|
+
complete() {
|
|
322
|
+
this.stateService.save();
|
|
323
|
+
}
|
|
324
|
+
delete() {
|
|
325
|
+
this.stateService.delete();
|
|
326
|
+
}
|
|
327
|
+
hide() {
|
|
328
|
+
this.stateService.disableInput();
|
|
329
|
+
this.modalService.closeModal();
|
|
330
|
+
this.modalService.appearingDelayMs$.pipe(take(1)).subscribe(appearingDelay => {
|
|
331
|
+
setTimeout(() => {
|
|
332
|
+
this.returnToFirstStep();
|
|
333
|
+
this.stateService.enableInput();
|
|
334
|
+
this.stateService.clear();
|
|
335
|
+
}, appearingDelay);
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
openShowSubscription() {
|
|
339
|
+
this.showSubscription = this.stateService.showModal$.subscribe(modalType => {
|
|
340
|
+
if (modalType === 'add') {
|
|
341
|
+
this.show();
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
openHideSubscription() {
|
|
346
|
+
this.hideSubscription = this.stateService.hideModal$.subscribe(() => {
|
|
347
|
+
this.hide();
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
returnToFirstStep() {
|
|
351
|
+
this.returnToFirstStepSubject$.next(true);
|
|
352
|
+
}
|
|
353
|
+
show() {
|
|
354
|
+
this.modalService.openModal(this.pluginAddModal);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
PluginAddModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginAddModalComponent, deps: [{ token: PluginManagementStateService }, { token: i3.ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
358
|
+
PluginAddModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: PluginAddModalComponent, selector: "valtimo-plugin-add-modal", viewQueries: [{ propertyName: "pluginAddModal", first: true, predicate: ["pluginAddModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 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 configure plugin\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 nextButtonTranslationKey=\"pluginManagement.addSteps.step2\"\n [nextButtonEnabled]=\"false\"\n ></v-stepper-footer-step>\n </v-stepper-footer>\n </div>\n </v-modal>\n</v-stepper-container>\n", styles: ["/*!\n * Copyright 2015-2020 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"], components: [{ type: i3.StepperContainerComponent, selector: "v-stepper-container", inputs: ["returnToFirstStepSubject$", "disabled"], outputs: ["cancelClickEvent", "completeEvent", "nextStepEvent"] }, { type: i3.ModalComponent, selector: "v-modal", inputs: ["appearingDelayMs", "maxWidthPx"], outputs: ["closeEvent"] }, { type: i3.StepperHeaderComponent, selector: "v-stepper-header" }, { type: i3.StepperContentComponent, selector: "v-stepper-content" }, { type: i3.StepperStepComponent, selector: "v-stepper-step", inputs: ["titleTranslationKey"] }, { type: PluginAddSelectComponent, selector: "valtimo-plugin-add-select" }, { type: i3.StepperFooterComponent, selector: "v-stepper-footer" }, { type: i3.StepperFooterStepComponent, selector: "v-stepper-footer-step", inputs: ["nextButtonEnabled", "completeButtonEnabled", "nextButtonTranslationKey", "cancelButtonTranslationKey", "completeButtonTranslationKey", "completeButtonMdiIcon", "showCompleteButton"] }], pipes: { "async": i4.AsyncPipe } });
|
|
359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginAddModalComponent, decorators: [{
|
|
360
|
+
type: Component,
|
|
361
|
+
args: [{ selector: 'valtimo-plugin-add-modal', template: "<!--\n ~ Copyright 2015-2020 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 configure plugin\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 nextButtonTranslationKey=\"pluginManagement.addSteps.step2\"\n [nextButtonEnabled]=\"false\"\n ></v-stepper-footer-step>\n </v-stepper-footer>\n </div>\n </v-modal>\n</v-stepper-container>\n", styles: ["/*!\n * Copyright 2015-2020 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"] }]
|
|
362
|
+
}], ctorParameters: function () { return [{ type: PluginManagementStateService }, { type: i3.ModalService }]; }, propDecorators: { pluginAddModal: [{
|
|
363
|
+
type: ViewChild,
|
|
364
|
+
args: ['pluginAddModal']
|
|
365
|
+
}] } });
|
|
366
|
+
|
|
367
|
+
/*
|
|
368
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
369
|
+
*
|
|
370
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
371
|
+
* you may not use this file except in compliance with the License.
|
|
372
|
+
* You may obtain a copy of the License at
|
|
373
|
+
*
|
|
374
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
375
|
+
*
|
|
376
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
377
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
378
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
379
|
+
* See the License for the specific language governing permissions and
|
|
380
|
+
* limitations under the License.
|
|
381
|
+
*/
|
|
382
|
+
class PluginManagementComponent {
|
|
383
|
+
constructor(pluginService, translateService, stateService) {
|
|
384
|
+
this.pluginService = pluginService;
|
|
385
|
+
this.translateService = translateService;
|
|
386
|
+
this.stateService = stateService;
|
|
387
|
+
this.loading$ = new BehaviorSubject(true);
|
|
388
|
+
this.columns$ = new BehaviorSubject([
|
|
389
|
+
{
|
|
390
|
+
labelTranslationKey: 'pluginManagement.labels.pluginName',
|
|
391
|
+
dataKey: 'pluginName',
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
labelTranslationKey: 'pluginManagement.labels.identifier',
|
|
395
|
+
dataKey: 'definitionKey',
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
labelTranslationKey: 'pluginManagement.labels.configurationName',
|
|
399
|
+
dataKey: 'title',
|
|
400
|
+
},
|
|
401
|
+
]);
|
|
402
|
+
this.pluginConfigurations$ = combineLatest([
|
|
403
|
+
this.pluginService.getAllPluginConfigurations(),
|
|
404
|
+
this.translateService.stream('key'),
|
|
405
|
+
]).pipe(map(([pluginConfigurations]) => pluginConfigurations.map(configuration => (Object.assign(Object.assign({}, configuration), { pluginName: this.translateService.instant(`plugin.${configuration.definitionKey}.title`) })))), tap(() => {
|
|
406
|
+
this.loading$.next(false);
|
|
407
|
+
}));
|
|
408
|
+
}
|
|
409
|
+
showAddModal() {
|
|
410
|
+
this.stateService.showModal('add');
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
PluginManagementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementComponent, deps: [{ token: PluginService }, { token: i2.TranslateService }, { token: PluginManagementStateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
414
|
+
PluginManagementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: PluginManagementComponent, selector: "valtimo-plugin-management", ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 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-title>{{ 'pages.plugins.title' | translate }}</v-title>\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]=\"false\"\n [amountOfLoadingRows]=\"2\"\n [itemsTranslationKey]=\"'pluginManagement.tableItemsText'\"\n [showPagination]=\"false\"\n ></v-table>\n </v-page-content>\n</v-page-container>\n\n<valtimo-plugin-add-modal></valtimo-plugin-add-modal>\n", styles: ["/*!\n * Copyright 2015-2020 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"], components: [{ type: i3.PageContainerComponent, selector: "v-page-container" }, { type: i3.PageHeaderComponent, selector: "v-page-header" }, { type: i3.PageHeaderIntroductionComponent, selector: "v-page-header-introduction" }, { type: i3.TitleComponent, selector: "v-title", inputs: ["type", "margin"] }, { type: i3.ParagraphComponent, selector: "v-paragraph" }, { type: i3.PageHeaderActionsComponent, selector: "v-page-header-actions" }, { type: i3.ButtonComponent, selector: "v-button", inputs: ["type", "mdiIcon", "disabled"], outputs: ["clickEvent"] }, { type: i3.PageContentComponent, selector: "v-page-content" }, { type: i3.TableComponent, selector: "v-table", inputs: ["items", "columns", "loading", "showEditButtons", "showPagination", "editButtonTranslationKey", "itemsTranslationKey", "mobileBreakpointPx", "amountOfLoadingRows", "collectionSize", "maxPaginationItemSize", "page", "size"], outputs: ["editButtonClicked", "paginationSizeSet", "paginationPageSet"] }, { type: PluginAddModalComponent, selector: "valtimo-plugin-add-modal" }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4.AsyncPipe, "translate": i2.TranslatePipe } });
|
|
415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementComponent, decorators: [{
|
|
416
|
+
type: Component,
|
|
417
|
+
args: [{ selector: 'valtimo-plugin-management', template: "<!--\n ~ Copyright 2015-2020 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-title>{{ 'pages.plugins.title' | translate }}</v-title>\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]=\"false\"\n [amountOfLoadingRows]=\"2\"\n [itemsTranslationKey]=\"'pluginManagement.tableItemsText'\"\n [showPagination]=\"false\"\n ></v-table>\n </v-page-content>\n</v-page-container>\n\n<valtimo-plugin-add-modal></valtimo-plugin-add-modal>\n", styles: ["/*!\n * Copyright 2015-2020 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"] }]
|
|
418
|
+
}], ctorParameters: function () { return [{ type: PluginService }, { type: i2.TranslateService }, { type: PluginManagementStateService }]; } });
|
|
419
|
+
|
|
420
|
+
/*
|
|
421
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
422
|
+
*
|
|
423
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
424
|
+
* you may not use this file except in compliance with the License.
|
|
425
|
+
* You may obtain a copy of the License at
|
|
426
|
+
*
|
|
427
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
428
|
+
*
|
|
429
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.
|
|
430
|
+
*/
|
|
431
|
+
const routes = [
|
|
432
|
+
{
|
|
433
|
+
path: 'plugins',
|
|
434
|
+
component: PluginManagementComponent,
|
|
435
|
+
canActivate: [AuthGuardService],
|
|
436
|
+
data: { title: 'Plugins', roles: [ROLE_ADMIN] },
|
|
437
|
+
},
|
|
438
|
+
];
|
|
439
|
+
class PluginManagementRoutingModule {
|
|
440
|
+
}
|
|
441
|
+
PluginManagementRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
442
|
+
PluginManagementRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementRoutingModule, imports: [CommonModule, i1.RouterModule], exports: [RouterModule] });
|
|
443
|
+
PluginManagementRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementRoutingModule, imports: [[CommonModule, RouterModule.forChild(routes)], RouterModule] });
|
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementRoutingModule, decorators: [{
|
|
445
|
+
type: NgModule,
|
|
446
|
+
args: [{
|
|
447
|
+
declarations: [],
|
|
448
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
449
|
+
exports: [RouterModule],
|
|
450
|
+
}]
|
|
451
|
+
}] });
|
|
452
|
+
|
|
453
|
+
/*
|
|
454
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
455
|
+
*
|
|
456
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
457
|
+
* you may not use this file except in compliance with the License.
|
|
458
|
+
* You may obtain a copy of the License at
|
|
459
|
+
*
|
|
460
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
461
|
+
*
|
|
462
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.
|
|
463
|
+
*/
|
|
464
|
+
class PluginManagementModule {
|
|
465
|
+
}
|
|
466
|
+
PluginManagementModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
467
|
+
PluginManagementModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementModule, declarations: [PluginManagementComponent, PluginAddModalComponent, PluginAddSelectComponent], imports: [CommonModule,
|
|
468
|
+
PluginManagementRoutingModule,
|
|
469
|
+
TranslateModule,
|
|
470
|
+
FlexLayoutModule,
|
|
471
|
+
PageModule,
|
|
472
|
+
ParagraphModule,
|
|
473
|
+
TitleModule,
|
|
474
|
+
TableModule,
|
|
475
|
+
StepperModule,
|
|
476
|
+
ModalModule,
|
|
477
|
+
ButtonModule,
|
|
478
|
+
CardModule], exports: [PluginManagementComponent, PluginAddModalComponent, PluginAddSelectComponent] });
|
|
479
|
+
PluginManagementModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementModule, providers: [PluginManagementStateService], imports: [[
|
|
480
|
+
CommonModule,
|
|
481
|
+
PluginManagementRoutingModule,
|
|
482
|
+
TranslateModule,
|
|
483
|
+
FlexLayoutModule,
|
|
484
|
+
PageModule,
|
|
485
|
+
ParagraphModule,
|
|
486
|
+
TitleModule,
|
|
487
|
+
TableModule,
|
|
488
|
+
StepperModule,
|
|
489
|
+
ModalModule,
|
|
490
|
+
ButtonModule,
|
|
491
|
+
CardModule,
|
|
492
|
+
]] });
|
|
493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginManagementModule, decorators: [{
|
|
494
|
+
type: NgModule,
|
|
495
|
+
args: [{
|
|
496
|
+
providers: [PluginManagementStateService],
|
|
497
|
+
declarations: [PluginManagementComponent, PluginAddModalComponent, PluginAddSelectComponent],
|
|
498
|
+
imports: [
|
|
499
|
+
CommonModule,
|
|
500
|
+
PluginManagementRoutingModule,
|
|
501
|
+
TranslateModule,
|
|
502
|
+
FlexLayoutModule,
|
|
503
|
+
PageModule,
|
|
504
|
+
ParagraphModule,
|
|
505
|
+
TitleModule,
|
|
506
|
+
TableModule,
|
|
507
|
+
StepperModule,
|
|
508
|
+
ModalModule,
|
|
509
|
+
ButtonModule,
|
|
510
|
+
CardModule,
|
|
511
|
+
],
|
|
512
|
+
exports: [PluginManagementComponent, PluginAddModalComponent, PluginAddSelectComponent],
|
|
513
|
+
}]
|
|
514
|
+
}] });
|
|
515
|
+
|
|
516
|
+
/*
|
|
517
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
518
|
+
*
|
|
519
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
520
|
+
* you may not use this file except in compliance with the License.
|
|
521
|
+
* You may obtain a copy of the License at
|
|
522
|
+
*
|
|
523
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
524
|
+
*
|
|
525
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.
|
|
526
|
+
*/
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Generated bundle index. Do not edit.
|
|
530
|
+
*/
|
|
531
|
+
|
|
532
|
+
export { PluginAddModalComponent, PluginAddSelectComponent, PluginManagementComponent, PluginManagementModule, PluginManagementStateService, PluginService };
|
|
533
|
+
//# sourceMappingURL=valtimo-plugin-management.mjs.map
|