@valtimo/access-control-management 0.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.
@@ -0,0 +1,792 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, ViewChild, NgModule } from '@angular/core';
3
+ import { BehaviorSubject, tap, switchMap, take, catchError, of, combineLatest, map, Subject, finalize, delay, filter } from 'rxjs';
4
+ import * as i1 from '@valtimo/shared';
5
+ import { ROLE_ADMIN } from '@valtimo/shared';
6
+ import * as i2 from '@angular/common/http';
7
+ import * as i4 from '@angular/common';
8
+ import { CommonModule } from '@angular/common';
9
+ import * as i5 from '@ngx-translate/core';
10
+ import { TranslateModule } from '@ngx-translate/core';
11
+ import * as i3$1 from '@valtimo/components';
12
+ import { CARBON_CONSTANTS, ViewType, CarbonListComponent, ConfirmationModalModule, EditorModule, RenderInPageHeaderDirective, CarbonListModule } from '@valtimo/components';
13
+ import * as i2$1 from '@angular/router';
14
+ import { RouterModule } from '@angular/router';
15
+ import { AuthGuardService } from '@valtimo/security';
16
+ import * as i3 from 'carbon-components-angular';
17
+ import { ButtonModule, ModalModule, InputModule, IconModule, LoadingModule, DialogModule, NotificationModule } from 'carbon-components-angular';
18
+ import * as i1$1 from '@angular/forms';
19
+ import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
20
+
21
+ /*
22
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
23
+ *
24
+ * Licensed under EUPL, Version 1.2 (the "License");
25
+ * you may not use this file except in compliance with the License.
26
+ * You may obtain a copy of the License at
27
+ *
28
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
29
+ *
30
+ * Unless required by applicable law or agreed to in writing, software
31
+ * distributed under the License is distributed on an "AS IS" basis,
32
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33
+ * See the License for the specific language governing permissions and
34
+ * limitations under the License.
35
+ */
36
+
37
+ /*
38
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
39
+ *
40
+ * Licensed under EUPL, Version 1.2 (the "License");
41
+ * you may not use this file except in compliance with the License.
42
+ * You may obtain a copy of the License at
43
+ *
44
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
45
+ *
46
+ * Unless required by applicable law or agreed to in writing, software
47
+ * distributed under the License is distributed on an "AS IS" basis,
48
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
49
+ * See the License for the specific language governing permissions and
50
+ * limitations under the License.
51
+ */
52
+
53
+ class AccessControlService {
54
+ get roleDtos$() {
55
+ return this.http.get(`${this.valtimoEndpointUri}v1/roles`);
56
+ }
57
+ constructor(configService, http) {
58
+ this.configService = configService;
59
+ this.http = http;
60
+ this.roles$ = new BehaviorSubject([]);
61
+ this.loading$ = new BehaviorSubject(false);
62
+ this.valtimoEndpointUri = `${this.configService.config.valtimoApi.endpointUri}management/`;
63
+ }
64
+ addRole(role) {
65
+ return this.http.post(`${this.valtimoEndpointUri}v1/roles`, role);
66
+ }
67
+ deleteRoles(request) {
68
+ return this.http.delete(`${this.valtimoEndpointUri}v1/roles`, { body: request });
69
+ }
70
+ dispatchAction(actionResult) {
71
+ actionResult
72
+ .pipe(tap(() => {
73
+ this.loading$.next(true);
74
+ }), switchMap(() => this.roleDtos$), take(1), catchError(error => of(error)))
75
+ .subscribe({
76
+ next: (roles) => {
77
+ this.roles$.next(roles);
78
+ this.loading$.next(false);
79
+ },
80
+ error: error => {
81
+ console.error(error);
82
+ },
83
+ });
84
+ }
85
+ loadRoles() {
86
+ this.roleDtos$
87
+ .pipe(tap(() => {
88
+ this.loading$.next(true);
89
+ }), take(1))
90
+ .subscribe({
91
+ next: (items) => {
92
+ this.roles$.next(items);
93
+ this.loading$.next(false);
94
+ },
95
+ error: error => {
96
+ console.error(error);
97
+ },
98
+ });
99
+ }
100
+ getRolePermissions(roleKey) {
101
+ return this.http.get(`${this.valtimoEndpointUri}v1/roles/${roleKey}/permissions`);
102
+ }
103
+ exportRolePermissions(roles) {
104
+ return this.http.post(`${this.valtimoEndpointUri}v1/permissions/search`, { roles });
105
+ }
106
+ updateRolePermissions(roleKey, updatedPermission) {
107
+ return this.http.put(`${this.valtimoEndpointUri}v1/roles/${roleKey}/permissions`, updatedPermission);
108
+ }
109
+ updateRole(roleKey, request) {
110
+ return this.http.put(`${this.valtimoEndpointUri}v1/roles/${roleKey}`, request);
111
+ }
112
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
113
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlService, providedIn: 'root' }); }
114
+ }
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlService, decorators: [{
116
+ type: Injectable,
117
+ args: [{ providedIn: 'root' }]
118
+ }], ctorParameters: () => [{ type: i1.ConfigService }, { type: i2.HttpClient }] });
119
+
120
+ /*
121
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
122
+ *
123
+ * Licensed under EUPL, Version 1.2 (the "License");
124
+ * you may not use this file except in compliance with the License.
125
+ * You may obtain a copy of the License at
126
+ *
127
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
128
+ *
129
+ * Unless required by applicable law or agreed to in writing, software
130
+ * distributed under the License is distributed on an "AS IS" basis,
131
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132
+ * See the License for the specific language governing permissions and
133
+ * limitations under the License.
134
+ */
135
+
136
+ /*
137
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
138
+ *
139
+ * Licensed under EUPL, Version 1.2 (the "License");
140
+ * you may not use this file except in compliance with the License.
141
+ * You may obtain a copy of the License at
142
+ *
143
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
144
+ *
145
+ * Unless required by applicable law or agreed to in writing, software
146
+ * distributed under the License is distributed on an "AS IS" basis,
147
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
148
+ * See the License for the specific language governing permissions and
149
+ * limitations under the License.
150
+ */
151
+ class AccessControlExportService {
152
+ constructor(accessControlService) {
153
+ this.accessControlService = accessControlService;
154
+ }
155
+ exportRoles(event) {
156
+ return (event.type === 'unified'
157
+ ? this.accessControlService.exportRolePermissions(event.roleKeys).pipe(tap(res => {
158
+ this.downloadJson(res, event.type);
159
+ }))
160
+ : combineLatest(event.roleKeys.map((roleKey) => this.accessControlService.exportRolePermissions([roleKey]))).pipe(tap(res => {
161
+ res.forEach((permissions, index) => {
162
+ const roleKey = event.roleKeys[index];
163
+ this.downloadJson(permissions, event.type, roleKey);
164
+ });
165
+ }))).pipe(map(() => true), catchError(() => of(false)));
166
+ }
167
+ downloadJson(permissions, type, roleKey) {
168
+ const sJson = JSON.stringify({ permissions }, null, 2);
169
+ const element = document.createElement('a');
170
+ element.setAttribute('href', 'data:text/json;charset=UTF-8,' + encodeURIComponent(sJson));
171
+ element.setAttribute('download', `${type === 'separate' ? roleKey : 'combined'}.permission.json`);
172
+ element.style.display = 'none';
173
+ document.body.appendChild(element);
174
+ element.click(); // simulate click
175
+ document.body.removeChild(element);
176
+ }
177
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlExportService, deps: [{ token: AccessControlService }], target: i0.ɵɵFactoryTarget.Injectable }); }
178
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlExportService, providedIn: 'root' }); }
179
+ }
180
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlExportService, decorators: [{
181
+ type: Injectable,
182
+ args: [{ providedIn: 'root' }]
183
+ }], ctorParameters: () => [{ type: AccessControlService }] });
184
+
185
+ /*
186
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
187
+ *
188
+ * Licensed under EUPL, Version 1.2 (the "License");
189
+ * you may not use this file except in compliance with the License.
190
+ * You may obtain a copy of the License at
191
+ *
192
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
193
+ *
194
+ * Unless required by applicable law or agreed to in writing, software
195
+ * distributed under the License is distributed on an "AS IS" basis,
196
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
197
+ * See the License for the specific language governing permissions and
198
+ * limitations under the License.
199
+ */
200
+ class RoleMetadataModalComponent {
201
+ set defaultKeyValue(value) {
202
+ this._defaultKeyValue = value;
203
+ this.setDefaultKeyValue(value);
204
+ }
205
+ get key() {
206
+ return this.form?.get('key');
207
+ }
208
+ constructor(fb) {
209
+ this.fb = fb;
210
+ this.open = false;
211
+ this.type = 'add';
212
+ this.closeEvent = new EventEmitter();
213
+ this.form = this.fb.group({
214
+ key: this.fb.control('', Validators.required),
215
+ });
216
+ }
217
+ onCancel() {
218
+ this.closeEvent.emit(null);
219
+ this.resetForm();
220
+ }
221
+ onConfirm() {
222
+ if (!this.key) {
223
+ return;
224
+ }
225
+ this.closeEvent.emit({ roleKey: this.key.value });
226
+ this.resetForm();
227
+ }
228
+ setDefaultKeyValue(value) {
229
+ this.key.setValue(value);
230
+ }
231
+ resetForm() {
232
+ setTimeout(() => {
233
+ this.form.reset();
234
+ if (this.type === 'edit') {
235
+ this.setDefaultKeyValue(this._defaultKeyValue);
236
+ }
237
+ }, CARBON_CONSTANTS.modalAnimationMs);
238
+ }
239
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: RoleMetadataModalComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
240
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: RoleMetadataModalComponent, isStandalone: false, selector: "valtimo-role-metadata-modal", inputs: { open: "open", type: "type", defaultKeyValue: "defaultKeyValue" }, outputs: { closeEvent: "closeEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-modal\n *ngIf=\"{\n isAdd: type === 'add',\n } as vars\"\n [open]=\"open\"\n showFooter=\"true\"\n [title]=\"vars.title\"\n valtimoCdsModal\n (close)=\"onCancel()\"\n>\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"onCancel()\">\n <h3 cdsModalHeaderHeading>\n {{\n vars.isAdd\n ? ('accessControl.roles.add' | translate)\n : ('accessControl.roles.editRole' | translate)\n }}\n </h3>\n </cds-modal-header>\n\n <section cdsModalContent>\n <form [formGroup]=\"form\">\n <cds-label [invalid]=\"key.dirty && key.invalid\">\n {{ 'accessControl.roles.name' | translate }}\n\n <input\n formControlName=\"key\"\n cdsText\n placeholder=\"{{ 'accessControl.roles.name' | translate }}\"\n [attr.modal-primary-focus]=\"true\"\n [invalid]=\"key.dirty && key.invalid\"\n />\n </cds-label>\n </form>\n </section>\n\n <cds-modal-footer>\n <button cdsButton=\"ghost\" (click)=\"onCancel()\">\n {{ 'interface.cancel' | translate }}\n </button>\n\n <button [disabled]=\"this.form.invalid\" (click)=\"onConfirm()\" cdsButton=\"primary\">\n {{ vars.isAdd ? ('interface.create' | translate) : ('interface.save' | translate) }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i3.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i3.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i3.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i3.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i3.ModalHeaderHeading, selector: "[cdsModalHeaderHeading], [ibmModalHeaderHeading]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3.Label, selector: "cds-label, ibm-label", inputs: ["labelInputID", "disabled", "skeleton", "helperText", "invalidText", "invalid", "warn", "warnText", "ariaLabel"] }, { kind: "directive", type: i3.TextInput, selector: "[cdsText], [ibmText]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
241
+ }
242
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: RoleMetadataModalComponent, decorators: [{
243
+ type: Component,
244
+ args: [{ standalone: false, selector: 'valtimo-role-metadata-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-modal\n *ngIf=\"{\n isAdd: type === 'add',\n } as vars\"\n [open]=\"open\"\n showFooter=\"true\"\n [title]=\"vars.title\"\n valtimoCdsModal\n (close)=\"onCancel()\"\n>\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"onCancel()\">\n <h3 cdsModalHeaderHeading>\n {{\n vars.isAdd\n ? ('accessControl.roles.add' | translate)\n : ('accessControl.roles.editRole' | translate)\n }}\n </h3>\n </cds-modal-header>\n\n <section cdsModalContent>\n <form [formGroup]=\"form\">\n <cds-label [invalid]=\"key.dirty && key.invalid\">\n {{ 'accessControl.roles.name' | translate }}\n\n <input\n formControlName=\"key\"\n cdsText\n placeholder=\"{{ 'accessControl.roles.name' | translate }}\"\n [attr.modal-primary-focus]=\"true\"\n [invalid]=\"key.dirty && key.invalid\"\n />\n </cds-label>\n </form>\n </section>\n\n <cds-modal-footer>\n <button cdsButton=\"ghost\" (click)=\"onCancel()\">\n {{ 'interface.cancel' | translate }}\n </button>\n\n <button [disabled]=\"this.form.invalid\" (click)=\"onConfirm()\" cdsButton=\"primary\">\n {{ vars.isAdd ? ('interface.create' | translate) : ('interface.save' | translate) }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n" }]
245
+ }], ctorParameters: () => [{ type: i1$1.FormBuilder }], propDecorators: { open: [{
246
+ type: Input
247
+ }], type: [{
248
+ type: Input
249
+ }], defaultKeyValue: [{
250
+ type: Input
251
+ }], closeEvent: [{
252
+ type: Output
253
+ }] } });
254
+
255
+ /*
256
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
257
+ *
258
+ * Licensed under EUPL, Version 1.2 (the "License");
259
+ * you may not use this file except in compliance with the License.
260
+ * You may obtain a copy of the License at
261
+ *
262
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
263
+ *
264
+ * Unless required by applicable law or agreed to in writing, software
265
+ * distributed under the License is distributed on an "AS IS" basis,
266
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
267
+ * See the License for the specific language governing permissions and
268
+ * limitations under the License.
269
+ */
270
+ class DeleteRoleModalComponent {
271
+ constructor() {
272
+ this.deleteEvent = new EventEmitter();
273
+ }
274
+ onDelete(roles) {
275
+ this.deleteEvent.emit(roles);
276
+ }
277
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DeleteRoleModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
278
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: DeleteRoleModalComponent, isStandalone: false, selector: "valtimo-delete-role-modal", inputs: { deleteRowKeys: "deleteRowKeys", showDeleteModal$: "showDeleteModal$" }, outputs: { deleteEvent: "deleteEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"interface.delete\"\n confirmButtonType=\"danger\"\n contentTranslationKey=\"accessControl.roles.deleteModalContent\"\n [outputOnConfirm]=\"deleteRowKeys\"\n [showModalSubject$]=\"showDeleteModal$\"\n titleTranslationKey=\"interface.delete\"\n (confirmEvent)=\"onDelete($event)\"\n></valtimo-confirmation-modal>\n", dependencies: [{ kind: "component", type: i3$1.ConfirmationModalComponent, selector: "valtimo-confirmation-modal", inputs: ["titleTranslationKey", "title", "content", "contentTranslationKey", "confirmButtonText", "confirmButtonTextTranslationKey", "confirmButtonType", "showOptionalButton", "optionalButtonText", "optionalButtonTextTranslationKey", "optionalButtonType", "cancelButtonText", "cancelButtonTextTranslationKey", "cancelButtonType", "showModalSubject$", "outputOnConfirm", "outputOnOptional", "spacerAfterCancelButton"], outputs: ["confirmEvent", "optionalEvent", "cancelEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
279
+ }
280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DeleteRoleModalComponent, decorators: [{
281
+ type: Component,
282
+ args: [{ standalone: false, selector: 'valtimo-delete-role-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"interface.delete\"\n confirmButtonType=\"danger\"\n contentTranslationKey=\"accessControl.roles.deleteModalContent\"\n [outputOnConfirm]=\"deleteRowKeys\"\n [showModalSubject$]=\"showDeleteModal$\"\n titleTranslationKey=\"interface.delete\"\n (confirmEvent)=\"onDelete($event)\"\n></valtimo-confirmation-modal>\n" }]
283
+ }], propDecorators: { deleteRowKeys: [{
284
+ type: Input
285
+ }], showDeleteModal$: [{
286
+ type: Input
287
+ }], deleteEvent: [{
288
+ type: Output
289
+ }] } });
290
+
291
+ /*
292
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
293
+ *
294
+ * Licensed under EUPL, Version 1.2 (the "License");
295
+ * you may not use this file except in compliance with the License.
296
+ * You may obtain a copy of the License at
297
+ *
298
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
299
+ *
300
+ * Unless required by applicable law or agreed to in writing, software
301
+ * distributed under the License is distributed on an "AS IS" basis,
302
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
303
+ * See the License for the specific language governing permissions and
304
+ * limitations under the License.
305
+ */
306
+ class ExportRoleModalComponent {
307
+ constructor() {
308
+ this.open = false;
309
+ this.exportEvent = new EventEmitter();
310
+ this.closeEvent = new EventEmitter();
311
+ this.selectedType$ = new BehaviorSubject(null);
312
+ }
313
+ ngOnInit() {
314
+ this.openResetSubscription();
315
+ }
316
+ ngOnDestroy() {
317
+ this._resetSubscription?.unsubscribe();
318
+ }
319
+ onCancel() {
320
+ if (!this.disabled) {
321
+ this.resetType();
322
+ this.closeEvent.emit();
323
+ }
324
+ }
325
+ onConfirm(type) {
326
+ this.exportEvent.emit({ type, roleKeys: this.exportRowKeys });
327
+ }
328
+ selectType(type) {
329
+ this.selectedType$.next(type);
330
+ }
331
+ resetType() {
332
+ setTimeout(() => {
333
+ this.selectedType$.next(null);
334
+ }, CARBON_CONSTANTS.modalAnimationMs);
335
+ }
336
+ openResetSubscription() {
337
+ this._resetSubscription = this.reset$?.subscribe(() => {
338
+ this.closeEvent.emit();
339
+ this.resetType();
340
+ });
341
+ }
342
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ExportRoleModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
343
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: ExportRoleModalComponent, isStandalone: false, selector: "valtimo-export-role-modal", inputs: { open: "open", exportRowKeys: "exportRowKeys", reset$: "reset$", disabled: "disabled" }, outputs: { exportEvent: "exportEvent", closeEvent: "closeEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-modal\n *ngIf=\"{title: ('interface.export' | translate), selectedType: selectedType$ | async} as vars\"\n valtimoCdsModal\n [open]=\"open\"\n size=\"sm\"\n showFooter=\"true\"\n [title]=\"vars.title\"\n (close)=\"onCancel()\"\n>\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"onCancel()\">\n <h3 cdsModalHeaderHeading>\n {{ vars.title }}\n </h3>\n </cds-modal-header>\n\n <section cdsModalContent>\n <div class=\"export-buttons\">\n <button [disabled]=\"disabled\" cdsButton=\"secondary\" (click)=\"selectType('unified')\">\n {{ 'accessControl.roles.singleExport' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"document\" size=\"16\"></svg>\n </button>\n\n <button [disabled]=\"disabled\" cdsButton=\"secondary\" (click)=\"selectType('separate')\">\n {{ 'accessControl.roles.multipleExport' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"copy--file\" size=\"16\"></svg>\n </button>\n </div>\n </section>\n\n <cds-modal-footer>\n <button [disabled]=\"disabled\" cdsButton=\"ghost\" (click)=\"onCancel()\">\n {{ 'interface.cancel' | translate }}\n </button>\n\n <button\n [disabled]=\"!vars.selectedType || disabled\"\n cdsButton=\"primary\"\n (click)=\"onConfirm(vars.selectedType)\"\n >\n {{ vars.title }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n", styles: [".export-buttons{display:grid;width:100%;grid-template-columns:1fr 1fr;column-gap:16px}.export-buttons button{width:100%}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "component", type: i3.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i3.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i3.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i3.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i3.ModalHeaderHeading, selector: "[cdsModalHeaderHeading], [ibmModalHeaderHeading]" }, { kind: "directive", type: i3.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
344
+ }
345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ExportRoleModalComponent, decorators: [{
346
+ type: Component,
347
+ args: [{ standalone: false, selector: 'valtimo-export-role-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-modal\n *ngIf=\"{title: ('interface.export' | translate), selectedType: selectedType$ | async} as vars\"\n valtimoCdsModal\n [open]=\"open\"\n size=\"sm\"\n showFooter=\"true\"\n [title]=\"vars.title\"\n (close)=\"onCancel()\"\n>\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"onCancel()\">\n <h3 cdsModalHeaderHeading>\n {{ vars.title }}\n </h3>\n </cds-modal-header>\n\n <section cdsModalContent>\n <div class=\"export-buttons\">\n <button [disabled]=\"disabled\" cdsButton=\"secondary\" (click)=\"selectType('unified')\">\n {{ 'accessControl.roles.singleExport' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"document\" size=\"16\"></svg>\n </button>\n\n <button [disabled]=\"disabled\" cdsButton=\"secondary\" (click)=\"selectType('separate')\">\n {{ 'accessControl.roles.multipleExport' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"copy--file\" size=\"16\"></svg>\n </button>\n </div>\n </section>\n\n <cds-modal-footer>\n <button [disabled]=\"disabled\" cdsButton=\"ghost\" (click)=\"onCancel()\">\n {{ 'interface.cancel' | translate }}\n </button>\n\n <button\n [disabled]=\"!vars.selectedType || disabled\"\n cdsButton=\"primary\"\n (click)=\"onConfirm(vars.selectedType)\"\n >\n {{ vars.title }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n", styles: [".export-buttons{display:grid;width:100%;grid-template-columns:1fr 1fr;column-gap:16px}.export-buttons button{width:100%}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
348
+ }], propDecorators: { open: [{
349
+ type: Input
350
+ }], exportRowKeys: [{
351
+ type: Input
352
+ }], reset$: [{
353
+ type: Input
354
+ }], disabled: [{
355
+ type: Input
356
+ }], exportEvent: [{
357
+ type: Output
358
+ }], closeEvent: [{
359
+ type: Output
360
+ }] } });
361
+
362
+ /*
363
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
364
+ *
365
+ * Licensed under EUPL, Version 1.2 (the "License");
366
+ * you may not use this file except in compliance with the License.
367
+ * You may obtain a copy of the License at
368
+ *
369
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
370
+ *
371
+ * Unless required by applicable law or agreed to in writing, software
372
+ * distributed under the License is distributed on an "AS IS" basis,
373
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
374
+ * See the License for the specific language governing permissions and
375
+ * limitations under the License.
376
+ */
377
+ class AccessControlOverviewComponent {
378
+ constructor(accessControlService, accessControlExportService, router) {
379
+ this.accessControlService = accessControlService;
380
+ this.accessControlExportService = accessControlExportService;
381
+ this.router = router;
382
+ this.fields = [
383
+ {
384
+ viewType: ViewType.TEXT,
385
+ key: 'roleKey',
386
+ label: 'accessControl.roles.key',
387
+ },
388
+ ];
389
+ this.roles$ = this.accessControlService.roles$;
390
+ this.loading$ = this.accessControlService.loading$;
391
+ this.skeleton$ = new BehaviorSubject(false);
392
+ this.showAddModal$ = new BehaviorSubject(false);
393
+ this.showDeleteModal$ = new BehaviorSubject(false);
394
+ this.showExportModal$ = new BehaviorSubject(false);
395
+ this.selectedRowKeys$ = new BehaviorSubject([]);
396
+ this.resetExportType$ = new Subject();
397
+ this.exportDisabled$ = new BehaviorSubject(false);
398
+ }
399
+ ngOnInit() {
400
+ this.accessControlService.loadRoles();
401
+ }
402
+ openAddModal() {
403
+ this.showAddModal$.next(true);
404
+ }
405
+ onAdd(data) {
406
+ this.showAddModal$.next(false);
407
+ if (!data) {
408
+ return;
409
+ }
410
+ this.accessControlService.dispatchAction(this.accessControlService.addRole(data).pipe(finalize(() => {
411
+ this.showAddModal$.next(false);
412
+ })));
413
+ }
414
+ showDeleteModal() {
415
+ this.setSelectedRoleKeys();
416
+ this.showDeleteModal$.next(true);
417
+ }
418
+ showExportModal() {
419
+ this.setSelectedRoleKeys();
420
+ this.showExportModal$.next(true);
421
+ }
422
+ closeExportModal() {
423
+ this.showExportModal$.next(false);
424
+ }
425
+ onDelete(roles) {
426
+ this.enableSkeleton();
427
+ this.accessControlService.dispatchAction(this.accessControlService.deleteRoles({ roles }).pipe(finalize(() => {
428
+ this.disableSkeleton();
429
+ })));
430
+ }
431
+ onExport(event) {
432
+ this.exportDisabled$.next(true);
433
+ this.accessControlExportService
434
+ .exportRoles(event)
435
+ .pipe(tap(() => {
436
+ this.resetExportType$.next(null);
437
+ }), delay(CARBON_CONSTANTS.modalAnimationMs), tap(() => {
438
+ this.exportDisabled$.next(false);
439
+ }))
440
+ .subscribe();
441
+ }
442
+ onRowClick(role) {
443
+ this.router.navigate([`/access-control/${role.roleKey}`]);
444
+ }
445
+ enableSkeleton() {
446
+ this.skeleton$.next(true);
447
+ }
448
+ disableSkeleton() {
449
+ this.skeleton$.next(false);
450
+ }
451
+ setSelectedRoleKeys() {
452
+ this.selectedRowKeys$.next(this.carbonList.selectedItems.map((role) => role.roleKey));
453
+ }
454
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlOverviewComponent, deps: [{ token: AccessControlService }, { token: AccessControlExportService }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
455
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: AccessControlOverviewComponent, isStandalone: false, selector: "ng-component", viewQueries: [{ propertyName: "carbonList", first: true, predicate: CarbonListComponent, descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-carbon-list\n [header]=\"false\"\n [items]=\"roles$ | async\"\n [fields]=\"fields\"\n [loading]=\"loading$ | async\"\n [showSelectionColumn]=\"true\"\n (rowClicked)=\"onRowClick($event)\"\n>\n <ng-container header> {{ 'accessControl.roles.title' | translate }} </ng-container>\n\n <div carbonToolbarContent>\n <ng-container [ngTemplateOutlet]=\"addRoleButton\"></ng-container>\n </div>\n\n <ng-container carbonToolbarActions>\n <button cdsButton=\"primary\" (click)=\"showDeleteModal()\">\n {{ 'interface.delete' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"trash-can\" size=\"16\"></svg>\n </button>\n\n <button cdsButton=\"primary\" (click)=\"showExportModal()\">\n {{ 'interface.export' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"download\" size=\"16\"></svg>\n </button>\n </ng-container>\n\n <valtimo-no-results\n [action]=\"addRoleButton\"\n description=\"{{ 'accessControl.roles.noResults.description' | translate }}\"\n title=\"{{ 'accessControl.roles.noResults.title' | translate }}\"\n ></valtimo-no-results>\n</valtimo-carbon-list>\n\n<valtimo-role-metadata-modal\n [open]=\"showAddModal$ | async\"\n (closeEvent)=\"onAdd($event)\"\n></valtimo-role-metadata-modal>\n\n<ng-container *ngIf=\"{selectedRowKeys: selectedRowKeys$ | async} as obs\">\n <valtimo-delete-role-modal\n [deleteRowKeys]=\"obs.selectedRowKeys\"\n [showDeleteModal$]=\"showDeleteModal$\"\n (deleteEvent)=\"onDelete($event)\"\n >\n </valtimo-delete-role-modal>\n\n <valtimo-export-role-modal\n [disabled]=\"exportDisabled$ | async\"\n [exportRowKeys]=\"obs.selectedRowKeys\"\n [open]=\"showExportModal$ | async\"\n [reset$]=\"resetExportType$\"\n (exportEvent)=\"onExport($event)\"\n (closeEvent)=\"closeExportModal()\"\n >\n </valtimo-export-role-modal>\n</ng-container>\n\n<ng-template #addRoleButton>\n <button cdsButton=\"primary\" (click)=\"openAddModal()\">\n {{ 'accessControl.roles.add' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n</ng-template>\n", dependencies: [{ 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: i3.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i3.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i3$1.CarbonListComponent, selector: "valtimo-carbon-list", inputs: ["items", "fields", "tableTranslations", "paginatorConfig", "pagination", "loading", "actions", "actionItems", "showActionItems", "header", "hideColumnHeader", "initialSortState", "sortState", "isSearchable", "enableSingleSelection", "lastColumnTemplate", "paginationIdentifier", "showSelectionColumn", "striped", "hideToolbar", "lockedTooltipTranslationKey", "movingRowsEnabled", "dragAndDrop", "dragAndDropDisabled"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged", "moveRow", "itemsReordered"] }, { kind: "component", type: i3$1.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title", "smallPadding", "collapseVertically", "alwaysRenderVertically"] }, { kind: "component", type: RoleMetadataModalComponent, selector: "valtimo-role-metadata-modal", inputs: ["open", "type", "defaultKeyValue"], outputs: ["closeEvent"] }, { kind: "component", type: DeleteRoleModalComponent, selector: "valtimo-delete-role-modal", inputs: ["deleteRowKeys", "showDeleteModal$"], outputs: ["deleteEvent"] }, { kind: "component", type: ExportRoleModalComponent, selector: "valtimo-export-role-modal", inputs: ["open", "exportRowKeys", "reset$", "disabled"], outputs: ["exportEvent", "closeEvent"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
456
+ }
457
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlOverviewComponent, decorators: [{
458
+ type: Component,
459
+ args: [{ standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-carbon-list\n [header]=\"false\"\n [items]=\"roles$ | async\"\n [fields]=\"fields\"\n [loading]=\"loading$ | async\"\n [showSelectionColumn]=\"true\"\n (rowClicked)=\"onRowClick($event)\"\n>\n <ng-container header> {{ 'accessControl.roles.title' | translate }} </ng-container>\n\n <div carbonToolbarContent>\n <ng-container [ngTemplateOutlet]=\"addRoleButton\"></ng-container>\n </div>\n\n <ng-container carbonToolbarActions>\n <button cdsButton=\"primary\" (click)=\"showDeleteModal()\">\n {{ 'interface.delete' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"trash-can\" size=\"16\"></svg>\n </button>\n\n <button cdsButton=\"primary\" (click)=\"showExportModal()\">\n {{ 'interface.export' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"download\" size=\"16\"></svg>\n </button>\n </ng-container>\n\n <valtimo-no-results\n [action]=\"addRoleButton\"\n description=\"{{ 'accessControl.roles.noResults.description' | translate }}\"\n title=\"{{ 'accessControl.roles.noResults.title' | translate }}\"\n ></valtimo-no-results>\n</valtimo-carbon-list>\n\n<valtimo-role-metadata-modal\n [open]=\"showAddModal$ | async\"\n (closeEvent)=\"onAdd($event)\"\n></valtimo-role-metadata-modal>\n\n<ng-container *ngIf=\"{selectedRowKeys: selectedRowKeys$ | async} as obs\">\n <valtimo-delete-role-modal\n [deleteRowKeys]=\"obs.selectedRowKeys\"\n [showDeleteModal$]=\"showDeleteModal$\"\n (deleteEvent)=\"onDelete($event)\"\n >\n </valtimo-delete-role-modal>\n\n <valtimo-export-role-modal\n [disabled]=\"exportDisabled$ | async\"\n [exportRowKeys]=\"obs.selectedRowKeys\"\n [open]=\"showExportModal$ | async\"\n [reset$]=\"resetExportType$\"\n (exportEvent)=\"onExport($event)\"\n (closeEvent)=\"closeExportModal()\"\n >\n </valtimo-export-role-modal>\n</ng-container>\n\n<ng-template #addRoleButton>\n <button cdsButton=\"primary\" (click)=\"openAddModal()\">\n {{ 'accessControl.roles.add' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n</ng-template>\n" }]
460
+ }], ctorParameters: () => [{ type: AccessControlService }, { type: AccessControlExportService }, { type: i2$1.Router }], propDecorators: { carbonList: [{
461
+ type: ViewChild,
462
+ args: [CarbonListComponent]
463
+ }] } });
464
+
465
+ /*
466
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
467
+ *
468
+ * Licensed under EUPL, Version 1.2 (the "License");
469
+ * you may not use this file except in compliance with the License.
470
+ * You may obtain a copy of the License at
471
+ *
472
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
473
+ *
474
+ * Unless required by applicable law or agreed to in writing, software
475
+ * distributed under the License is distributed on an "AS IS" basis,
476
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
477
+ * See the License for the specific language governing permissions and
478
+ * limitations under the License.
479
+ */
480
+ class AccessControlEditorComponent {
481
+ constructor(accessControlService, route, pageTitleService, router, globalNotificationService, translateService, accessControlExportService, pageHeaderService) {
482
+ this.accessControlService = accessControlService;
483
+ this.route = route;
484
+ this.pageTitleService = pageTitleService;
485
+ this.router = router;
486
+ this.globalNotificationService = globalNotificationService;
487
+ this.translateService = translateService;
488
+ this.accessControlExportService = accessControlExportService;
489
+ this.pageHeaderService = pageHeaderService;
490
+ this.model$ = new BehaviorSubject(null);
491
+ this.saveDisabled$ = new BehaviorSubject(true);
492
+ this.editorDisabled$ = new BehaviorSubject(false);
493
+ this.moreDisabled$ = new BehaviorSubject(true);
494
+ this.showDeleteModal$ = new BehaviorSubject(false);
495
+ this.showEditModal$ = new BehaviorSubject(false);
496
+ this.selectedRowKeys$ = new BehaviorSubject(null);
497
+ this.compactMode$ = this.pageHeaderService.compactMode$;
498
+ this._updatedModelValue$ = new BehaviorSubject('');
499
+ }
500
+ ngOnInit() {
501
+ this.getPermissions();
502
+ this.openRoleKeySubscription();
503
+ }
504
+ ngOnDestroy() {
505
+ this.pageTitleService.enableReset();
506
+ this._roleKeySubscription?.unsubscribe();
507
+ }
508
+ onValid(valid) {
509
+ this.saveDisabled$.next(valid === false);
510
+ }
511
+ onValueChange(value) {
512
+ this._updatedModelValue$.next(value);
513
+ }
514
+ updatePermissions() {
515
+ this.disableEditor();
516
+ this.disableSave();
517
+ this.disableMore();
518
+ this._updatedModelValue$
519
+ .pipe(take(1), switchMap(updatedModelValue => this.accessControlService.updateRolePermissions(this._roleKey, JSON.parse(updatedModelValue))))
520
+ .subscribe({
521
+ next: result => {
522
+ this.enableMore();
523
+ this.enableSave();
524
+ this.enableEditor();
525
+ this.showSuccessMessage(this._roleKey);
526
+ this.setModel(result);
527
+ },
528
+ error: () => {
529
+ this.enableMore();
530
+ this.enableSave();
531
+ this.enableEditor();
532
+ },
533
+ });
534
+ }
535
+ onDelete(roles) {
536
+ this.disableEditor();
537
+ this.disableSave();
538
+ this.disableMore();
539
+ this.accessControlService.dispatchAction(this.accessControlService.deleteRoles({ roles }).pipe(finalize(() => {
540
+ this.router.navigate(['/access-control']);
541
+ })));
542
+ }
543
+ showDeleteModal() {
544
+ this.showDeleteModal$.next(true);
545
+ }
546
+ showEditModal() {
547
+ this.showEditModal$.next(true);
548
+ }
549
+ onEdit(currentRoleKey, data) {
550
+ this.showEditModal$.next(false);
551
+ if (!data) {
552
+ return;
553
+ }
554
+ this.disableEditor();
555
+ this.disableSave();
556
+ this.disableMore();
557
+ this.accessControlService.updateRole(currentRoleKey, data).subscribe(() => {
558
+ this.router.navigate([`/access-control/${data.roleKey}`]);
559
+ this.showSuccessMessage(data.roleKey);
560
+ });
561
+ }
562
+ exportPermissions() {
563
+ this.accessControlExportService
564
+ .exportRoles({ type: 'separate', roleKeys: [this._roleKey] })
565
+ .subscribe();
566
+ }
567
+ openRoleKeySubscription() {
568
+ this._roleKeySubscription = this.route.params
569
+ .pipe(filter(params => params?.id), map(params => params.id), tap(roleKey => {
570
+ this._roleKey = roleKey;
571
+ this.pageTitleService.setCustomPageTitle(roleKey, true);
572
+ this.selectedRowKeys$.next([roleKey]);
573
+ }), switchMap(roleKey => this.accessControlService.getRolePermissions(roleKey)), tap(permissions => {
574
+ this.enableMore();
575
+ this.enableSave();
576
+ this.enableEditor();
577
+ this.setModel(permissions);
578
+ }))
579
+ .subscribe();
580
+ }
581
+ getPermissions() {
582
+ this.route.params
583
+ .pipe(tap(params => {
584
+ this.pageTitleService.setCustomPageTitle(params?.id);
585
+ this.selectedRowKeys$.next([params?.id]);
586
+ }), switchMap(params => this.accessControlService.getRolePermissions(params.id)))
587
+ .subscribe(permissions => {
588
+ this.enableMore();
589
+ this.enableSave();
590
+ this.enableEditor();
591
+ this.setModel(permissions);
592
+ });
593
+ }
594
+ setModel(permissions) {
595
+ this.model$.next({
596
+ value: JSON.stringify(permissions),
597
+ language: 'json',
598
+ });
599
+ }
600
+ disableMore() {
601
+ this.moreDisabled$.next(true);
602
+ }
603
+ enableMore() {
604
+ this.moreDisabled$.next(false);
605
+ }
606
+ disableSave() {
607
+ this.saveDisabled$.next(true);
608
+ }
609
+ enableSave() {
610
+ this.saveDisabled$.next(false);
611
+ }
612
+ disableEditor() {
613
+ this.editorDisabled$.next(true);
614
+ }
615
+ enableEditor() {
616
+ this.editorDisabled$.next(false);
617
+ }
618
+ showSuccessMessage(roleKey) {
619
+ this.globalNotificationService.showToast({
620
+ title: this.translateService.instant('accessControl.roles.savedSuccessTitle'),
621
+ caption: this.translateService.instant('accessControl.roles.savedSuccessTitleMessage', {
622
+ roleKey,
623
+ }),
624
+ type: 'success',
625
+ });
626
+ }
627
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlEditorComponent, deps: [{ token: AccessControlService }, { token: i2$1.ActivatedRoute }, { token: i3$1.PageTitleService }, { token: i2$1.Router }, { token: i1.GlobalNotificationService }, { token: i5.TranslateService }, { token: AccessControlExportService }, { token: i3$1.PageHeaderService }], target: i0.ɵɵFactoryTarget.Component }); }
628
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: AccessControlEditorComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"model$ | async as model; else loading\">\n <valtimo-editor\n [disabled]=\"editorDisabled$ | async\"\n [model]=\"model\"\n (validEvent)=\"onValid($event)\"\n (valueChangeEvent)=\"onValueChange($event)\"\n [fitPage]=\"true\"\n ></valtimo-editor>\n</ng-container>\n\n<ng-container renderInPageHeader>\n <ng-template>\n <div\n *ngIf=\"{\n model: model$ | async,\n moreDisabled: moreDisabled$ | async,\n compactMode: compactMode$ | async,\n } as obs\"\n class=\"buttons-container\"\n >\n <cds-overflow-menu class=\"overflow-button\">\n <cds-overflow-menu-option [disabled]=\"obs.moreDisabled\" (selected)=\"showEditModal()\">{{\n 'accessControl.roles.editMetadata' | translate\n }}</cds-overflow-menu-option>\n\n <cds-overflow-menu-option [disabled]=\"obs.moreDisabled\" (selected)=\"exportPermissions()\">{{\n 'interface.export' | translate\n }}</cds-overflow-menu-option>\n\n <cds-overflow-menu-option\n [disabled]=\"obs.moreDisabled\"\n type=\"danger\"\n (selected)=\"showDeleteModal()\"\n >{{ 'interface.delete' | translate }}</cds-overflow-menu-option\n >\n </cds-overflow-menu>\n\n <button\n [disabled]=\"saveDisabled$ | async\"\n cdsButton=\"primary\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n (click)=\"updatePermissions()\"\n >\n {{ 'interface.save' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"save\" size=\"16\"></svg>\n </button>\n </div>\n </ng-template>\n</ng-container>\n\n<ng-container *ngIf=\"{selectedRowKeys: selectedRowKeys$ | async} as obs\">\n <valtimo-delete-role-modal\n [deleteRowKeys]=\"obs.selectedRowKeys\"\n [showDeleteModal$]=\"showDeleteModal$\"\n (deleteEvent)=\"onDelete($event)\"\n >\n </valtimo-delete-role-modal>\n\n <valtimo-role-metadata-modal\n [defaultKeyValue]=\"obs.selectedRowKeys[0]\"\n [open]=\"showEditModal$ | async\"\n type=\"edit\"\n (closeEvent)=\"onEdit(obs.selectedRowKeys[0], $event)\"\n ></valtimo-role-metadata-modal>\n</ng-container>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".loading-container{display:flex;width:100%;justify-content:center}.overflow-button{margin-right:16px}.buttons-container{display:flex;flex-direction:row;align-items:center}.buttons-container button{height:min-content}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i3.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i3$1.EditorComponent, selector: "valtimo-editor", inputs: ["editorOptions", "model", "disabled", "formatOnLoad", "widthPx", "heightPx", "heightStyle", "jsonSchema", "fitPage", "fitPageSpaceAdjustment"], outputs: ["validEvent", "valueChangeEvent"] }, { kind: "directive", type: i3$1.RenderInPageHeaderDirective, selector: "[renderInPageHeader]", inputs: ["fullWidth"] }, { kind: "component", type: i3.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i3.OverflowMenu, selector: "cds-overflow-menu, ibm-overflow-menu", inputs: ["buttonLabel", "description", "flip", "placement", "open", "customTrigger", "offset", "wrapperClass", "triggerClass"], outputs: ["openChange"] }, { kind: "component", type: i3.OverflowMenuOption, selector: "cds-overflow-menu-option, ibm-overflow-menu-option", inputs: ["divider", "type", "disabled", "href", "target", "innerClass"], outputs: ["selected"] }, { kind: "component", type: RoleMetadataModalComponent, selector: "valtimo-role-metadata-modal", inputs: ["open", "type", "defaultKeyValue"], outputs: ["closeEvent"] }, { kind: "component", type: DeleteRoleModalComponent, selector: "valtimo-delete-role-modal", inputs: ["deleteRowKeys", "showDeleteModal$"], outputs: ["deleteEvent"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
629
+ }
630
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlEditorComponent, decorators: [{
631
+ type: Component,
632
+ args: [{ standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"model$ | async as model; else loading\">\n <valtimo-editor\n [disabled]=\"editorDisabled$ | async\"\n [model]=\"model\"\n (validEvent)=\"onValid($event)\"\n (valueChangeEvent)=\"onValueChange($event)\"\n [fitPage]=\"true\"\n ></valtimo-editor>\n</ng-container>\n\n<ng-container renderInPageHeader>\n <ng-template>\n <div\n *ngIf=\"{\n model: model$ | async,\n moreDisabled: moreDisabled$ | async,\n compactMode: compactMode$ | async,\n } as obs\"\n class=\"buttons-container\"\n >\n <cds-overflow-menu class=\"overflow-button\">\n <cds-overflow-menu-option [disabled]=\"obs.moreDisabled\" (selected)=\"showEditModal()\">{{\n 'accessControl.roles.editMetadata' | translate\n }}</cds-overflow-menu-option>\n\n <cds-overflow-menu-option [disabled]=\"obs.moreDisabled\" (selected)=\"exportPermissions()\">{{\n 'interface.export' | translate\n }}</cds-overflow-menu-option>\n\n <cds-overflow-menu-option\n [disabled]=\"obs.moreDisabled\"\n type=\"danger\"\n (selected)=\"showDeleteModal()\"\n >{{ 'interface.delete' | translate }}</cds-overflow-menu-option\n >\n </cds-overflow-menu>\n\n <button\n [disabled]=\"saveDisabled$ | async\"\n cdsButton=\"primary\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n (click)=\"updatePermissions()\"\n >\n {{ 'interface.save' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"save\" size=\"16\"></svg>\n </button>\n </div>\n </ng-template>\n</ng-container>\n\n<ng-container *ngIf=\"{selectedRowKeys: selectedRowKeys$ | async} as obs\">\n <valtimo-delete-role-modal\n [deleteRowKeys]=\"obs.selectedRowKeys\"\n [showDeleteModal$]=\"showDeleteModal$\"\n (deleteEvent)=\"onDelete($event)\"\n >\n </valtimo-delete-role-modal>\n\n <valtimo-role-metadata-modal\n [defaultKeyValue]=\"obs.selectedRowKeys[0]\"\n [open]=\"showEditModal$ | async\"\n type=\"edit\"\n (closeEvent)=\"onEdit(obs.selectedRowKeys[0], $event)\"\n ></valtimo-role-metadata-modal>\n</ng-container>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".loading-container{display:flex;width:100%;justify-content:center}.overflow-button{margin-right:16px}.buttons-container{display:flex;flex-direction:row;align-items:center}.buttons-container button{height:min-content}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
633
+ }], ctorParameters: () => [{ type: AccessControlService }, { type: i2$1.ActivatedRoute }, { type: i3$1.PageTitleService }, { type: i2$1.Router }, { type: i1.GlobalNotificationService }, { type: i5.TranslateService }, { type: AccessControlExportService }, { type: i3$1.PageHeaderService }] });
634
+
635
+ /*
636
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
637
+ *
638
+ * Licensed under EUPL, Version 1.2 (the "License");
639
+ * you may not use this file except in compliance with the License.
640
+ * You may obtain a copy of the License at
641
+ *
642
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
643
+ *
644
+ * Unless required by applicable law or agreed to in writing, software
645
+ * distributed under the License is distributed on an "AS IS" basis,
646
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
647
+ * See the License for the specific language governing permissions and
648
+ * limitations under the License.
649
+ */
650
+ const routes = [
651
+ {
652
+ path: 'access-control',
653
+ component: AccessControlOverviewComponent,
654
+ canActivate: [AuthGuardService],
655
+ data: { title: 'Access control', roles: [ROLE_ADMIN] },
656
+ },
657
+ {
658
+ path: 'access-control/:id',
659
+ component: AccessControlEditorComponent,
660
+ canActivate: [AuthGuardService],
661
+ data: {
662
+ title: 'Role details',
663
+ roles: [ROLE_ADMIN],
664
+ customPageTitle: true,
665
+ },
666
+ },
667
+ ];
668
+ class AccessControlManagementRoutingModule {
669
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlManagementRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
670
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: AccessControlManagementRoutingModule, imports: [CommonModule, i2$1.RouterModule], exports: [RouterModule] }); }
671
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlManagementRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
672
+ }
673
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlManagementRoutingModule, decorators: [{
674
+ type: NgModule,
675
+ args: [{
676
+ imports: [CommonModule, RouterModule.forChild(routes)],
677
+ exports: [RouterModule],
678
+ }]
679
+ }] });
680
+
681
+ /*
682
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
683
+ *
684
+ * Licensed under EUPL, Version 1.2 (the "License");
685
+ * you may not use this file except in compliance with the License.
686
+ * You may obtain a copy of the License at
687
+ *
688
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
689
+ *
690
+ * Unless required by applicable law or agreed to in writing, software
691
+ * distributed under the License is distributed on an "AS IS" basis,
692
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
693
+ * See the License for the specific language governing permissions and
694
+ * limitations under the License.
695
+ */
696
+ class AccessControlManagementModule {
697
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
698
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: AccessControlManagementModule, declarations: [AccessControlOverviewComponent,
699
+ RoleMetadataModalComponent,
700
+ AccessControlEditorComponent,
701
+ DeleteRoleModalComponent,
702
+ ExportRoleModalComponent], imports: [CommonModule,
703
+ AccessControlManagementRoutingModule,
704
+ ButtonModule,
705
+ FormsModule,
706
+ ModalModule,
707
+ TranslateModule,
708
+ ReactiveFormsModule,
709
+ InputModule,
710
+ IconModule,
711
+ ConfirmationModalModule,
712
+ EditorModule,
713
+ RenderInPageHeaderDirective,
714
+ LoadingModule,
715
+ IconModule,
716
+ DialogModule,
717
+ NotificationModule,
718
+ CarbonListModule] }); }
719
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlManagementModule, imports: [CommonModule,
720
+ AccessControlManagementRoutingModule,
721
+ ButtonModule,
722
+ FormsModule,
723
+ ModalModule,
724
+ TranslateModule,
725
+ ReactiveFormsModule,
726
+ InputModule,
727
+ IconModule,
728
+ ConfirmationModalModule,
729
+ EditorModule,
730
+ LoadingModule,
731
+ IconModule,
732
+ DialogModule,
733
+ NotificationModule,
734
+ CarbonListModule] }); }
735
+ }
736
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AccessControlManagementModule, decorators: [{
737
+ type: NgModule,
738
+ args: [{
739
+ declarations: [
740
+ AccessControlOverviewComponent,
741
+ RoleMetadataModalComponent,
742
+ AccessControlEditorComponent,
743
+ DeleteRoleModalComponent,
744
+ ExportRoleModalComponent,
745
+ ],
746
+ imports: [
747
+ CommonModule,
748
+ AccessControlManagementRoutingModule,
749
+ ButtonModule,
750
+ FormsModule,
751
+ ModalModule,
752
+ TranslateModule,
753
+ ReactiveFormsModule,
754
+ InputModule,
755
+ IconModule,
756
+ ConfirmationModalModule,
757
+ EditorModule,
758
+ RenderInPageHeaderDirective,
759
+ LoadingModule,
760
+ IconModule,
761
+ DialogModule,
762
+ NotificationModule,
763
+ CarbonListModule,
764
+ ],
765
+ }]
766
+ }] });
767
+
768
+ /*
769
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
770
+ *
771
+ * Licensed under EUPL, Version 1.2 (the "License");
772
+ * you may not use this file except in compliance with the License.
773
+ * You may obtain a copy of the License at
774
+ *
775
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
776
+ *
777
+ * Unless required by applicable law or agreed to in writing, software
778
+ * distributed under the License is distributed on an "AS IS" basis,
779
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
780
+ * See the License for the specific language governing permissions and
781
+ * limitations under the License.
782
+ */
783
+ /*
784
+ * Public API Surface of access-control
785
+ */
786
+
787
+ /**
788
+ * Generated bundle index. Do not edit.
789
+ */
790
+
791
+ export { AccessControlManagementModule, AccessControlService };
792
+ //# sourceMappingURL=valtimo-access-control-management.mjs.map