@yuuvis/user-management-app 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as i1$3 from '@angular/common';
|
|
2
1
|
import { CommonModule } from '@angular/common';
|
|
3
2
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, Component, Injectable, signal, linkedSignal, input, output, computed, effect, Inject,
|
|
3
|
+
import { inject, Component, Injectable, signal, Input, linkedSignal, input, output, computed, effect, Inject, HostBinding, ViewChild } from '@angular/core';
|
|
5
4
|
import * as i1 from '@angular/router';
|
|
6
5
|
import { RouterModule } from '@angular/router';
|
|
7
6
|
import * as i2 from '@yuuvis/client-core';
|
|
@@ -10,43 +9,44 @@ import { Title } from '@angular/platform-browser';
|
|
|
10
9
|
import { ShellService } from '@yuuvis/client-shell-core';
|
|
11
10
|
import * as i2$1 from '@angular/material/button';
|
|
12
11
|
import { MatButtonModule } from '@angular/material/button';
|
|
12
|
+
import { MatDialogRef, MAT_DIALOG_DATA, MatDialog } from '@angular/material/dialog';
|
|
13
13
|
import * as i1$2 from '@angular/material/icon';
|
|
14
14
|
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
-
import * as
|
|
16
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
17
|
-
import { MatSortModule } from '@angular/material/sort';
|
|
18
|
-
import * as i5$1 from '@angular/material/paginator';
|
|
15
|
+
import * as i2$2 from '@angular/material/paginator';
|
|
19
16
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
20
|
-
import
|
|
17
|
+
import { MatSortModule } from '@angular/material/sort';
|
|
18
|
+
import * as i3$3 from '@angular/material/table';
|
|
21
19
|
import { MatTableModule } from '@angular/material/table';
|
|
20
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
21
|
+
import * as i4 from '@angular/material/tooltip';
|
|
22
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
23
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
24
|
+
import { ConfirmService, BusyOverlayDirective, DialogComponent, ClickDoubleDirective } from '@yuuvis/client-framework/common';
|
|
25
|
+
import { SimpleSearchComponent } from '@yuuvis/client-framework/simple-search';
|
|
26
|
+
import * as i9 from '@yuuvis/client-framework/overflow-menu';
|
|
27
|
+
import { YuvOverflowMenuModule } from '@yuuvis/client-framework/overflow-menu';
|
|
28
|
+
import * as i8 from '@yuuvis/client-shell';
|
|
29
|
+
import { YuvClientShellModule } from '@yuuvis/client-shell';
|
|
22
30
|
import { YmtButtonDirective, YmtIconButtonDirective } from '@yuuvis/material';
|
|
23
|
-
import * as
|
|
31
|
+
import * as i6 from '@yuuvis/material/layout';
|
|
24
32
|
import { YmtLayoutModule } from '@yuuvis/material/layout';
|
|
25
|
-
import * as
|
|
33
|
+
import * as i7$1 from '@yuuvis/material/panes';
|
|
26
34
|
import { YmtPanesModule } from '@yuuvis/material/panes';
|
|
27
35
|
import { HttpParams } from '@angular/common/http';
|
|
28
36
|
import { map, switchMap, of, forkJoin } from 'rxjs';
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { YuvClientShellModule } from '@yuuvis/client-shell';
|
|
37
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
38
|
+
import * as i3 from '@angular/material/chips';
|
|
39
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
33
40
|
import * as i1$1 from '@angular/forms';
|
|
34
41
|
import { ReactiveFormsModule, FormBuilder, FormControl, Validators } from '@angular/forms';
|
|
35
|
-
import
|
|
36
|
-
import * as i3 from '@angular/material/form-field';
|
|
42
|
+
import * as i3$1 from '@angular/material/form-field';
|
|
37
43
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
38
|
-
import * as i4 from '@angular/material/slide-toggle';
|
|
39
|
-
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
40
44
|
import * as i5 from '@angular/material/input';
|
|
41
45
|
import { MatInputModule } from '@angular/material/input';
|
|
42
|
-
import * as
|
|
46
|
+
import * as i7 from '@angular/material/slide-toggle';
|
|
47
|
+
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
48
|
+
import * as i3$2 from '@angular/material/list';
|
|
43
49
|
import { MatListModule } from '@angular/material/list';
|
|
44
|
-
import { SelectionModel } from '@angular/cdk/collections';
|
|
45
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
46
|
-
import * as i3$2 from '@angular/material/chips';
|
|
47
|
-
import { MatChipsModule } from '@angular/material/chips';
|
|
48
|
-
import * as i10 from '@yuuvis/client-framework/overflow-menu';
|
|
49
|
-
import { YuvOverflowMenuModule } from '@yuuvis/client-framework/overflow-menu';
|
|
50
50
|
|
|
51
51
|
const APP_ID = 'io.yuuvis.app.user-management';
|
|
52
52
|
const APP_ICONS = {
|
|
@@ -161,6 +161,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
161
161
|
}]
|
|
162
162
|
}] });
|
|
163
163
|
|
|
164
|
+
class UserDetailsComponent {
|
|
165
|
+
userService;
|
|
166
|
+
formBuilder;
|
|
167
|
+
userDetails = signal(undefined);
|
|
168
|
+
userDetailsForm;
|
|
169
|
+
currentUserId;
|
|
170
|
+
set userId(value) {
|
|
171
|
+
this.currentUserId = value;
|
|
172
|
+
this.loadUserDetails();
|
|
173
|
+
}
|
|
174
|
+
loadUserDetails() {
|
|
175
|
+
if (this.currentUserId) {
|
|
176
|
+
this.userService.getUserDetails(this.currentUserId).subscribe(user => {
|
|
177
|
+
this.userDetails.set(user);
|
|
178
|
+
this.userDetailsForm.patchValue({
|
|
179
|
+
id: user.id,
|
|
180
|
+
username: user.username,
|
|
181
|
+
firstName: user.firstName,
|
|
182
|
+
lastName: user.lastName,
|
|
183
|
+
email: user.email,
|
|
184
|
+
enabled: user.enabled
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
this.userDetails.set(undefined);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Refresh the user details by reloading the data from the server
|
|
194
|
+
*/
|
|
195
|
+
refresh() {
|
|
196
|
+
this.loadUserDetails();
|
|
197
|
+
}
|
|
198
|
+
constructor(userService, formBuilder) {
|
|
199
|
+
this.userService = userService;
|
|
200
|
+
this.formBuilder = formBuilder;
|
|
201
|
+
this.userDetailsForm = this.formBuilder.group({
|
|
202
|
+
id: [{ value: '' }],
|
|
203
|
+
username: [{ value: '' }],
|
|
204
|
+
firstName: [{ value: '' }],
|
|
205
|
+
lastName: [{ value: '' }],
|
|
206
|
+
email: [{ value: '' }],
|
|
207
|
+
enabled: [{ value: false, disabled: true }]
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserDetailsComponent, deps: [{ token: YuvUserManagementService }, { token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
211
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: UserDetailsComponent, isStandalone: true, selector: "ymusrmgmt-user-details", inputs: { userId: "userId" }, ngImport: i0, template: "@let currentUserDetails = userDetails();\n@if (currentUserDetails) {\n <form [formGroup]=\"userDetailsForm\" class=\"user-details-form\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{('yuv.app.user-management.users.object.property.id' | translate)}}</mat-label>\n <input matInput formControlName=\"id\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.username' | translate)}}</mat-label>\n <input matInput formControlName=\"username\" readonly>\n <mat-icon matPrefix>account_box</mat-icon>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.email' | translate)}}</mat-label>\n <input matInput formControlName=\"email\" readonly>\n <mat-icon matPrefix>email</mat-icon>\n </mat-form-field> \n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.firstname' | translate)}}</mat-label>\n <input matInput formControlName=\"firstName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.lastname' | translate)}}</mat-label>\n <input matInput formControlName=\"lastName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.groups' | translate)}}</mat-label>\n <mat-chip-grid #groupChipGrid>\n @if (currentUserDetails.groups) {\n @for (group of currentUserDetails.groups.sort(); track group) {\n <mat-chip-row [editable]=\"false\"><div class=\"chip\">{{group}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"groupChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.roles' | translate)}}</mat-label>\n <mat-chip-grid #roleChipGrid>\n @if (currentUserDetails.effectiveRoles) {\n @for (role of currentUserDetails.effectiveRoles; track role) {\n <mat-chip-row [editable]=\"false\" [disabled]=\"currentUserDetails.roles.indexOf(role) === -1\"><div class=\"chip\">{{role}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"roleChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-slide-toggle formControlName=\"enabled\">\n {{ userDetailsForm.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) :\n ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle> \n </form>\n}", styles: [":host{height:100%;overflow:hidden;display:flex;flex-flow:column}:host .user-details-form{display:grid;gap:var(--ymt-spacing-m);padding:1rem}:host .user-details-form mat-chip-row{overflow:hidden}\n"], dependencies: [{ kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i3.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i3.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "component", type: i3.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i7.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "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: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
212
|
+
}
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserDetailsComponent, decorators: [{
|
|
214
|
+
type: Component,
|
|
215
|
+
args: [{ selector: 'ymusrmgmt-user-details', imports: [
|
|
216
|
+
MatChipsModule,
|
|
217
|
+
MatFormFieldModule,
|
|
218
|
+
MatInputModule,
|
|
219
|
+
MatIconModule,
|
|
220
|
+
MatCheckboxModule,
|
|
221
|
+
MatSlideToggleModule,
|
|
222
|
+
ReactiveFormsModule,
|
|
223
|
+
TranslateModule
|
|
224
|
+
], template: "@let currentUserDetails = userDetails();\n@if (currentUserDetails) {\n <form [formGroup]=\"userDetailsForm\" class=\"user-details-form\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{('yuv.app.user-management.users.object.property.id' | translate)}}</mat-label>\n <input matInput formControlName=\"id\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.username' | translate)}}</mat-label>\n <input matInput formControlName=\"username\" readonly>\n <mat-icon matPrefix>account_box</mat-icon>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.email' | translate)}}</mat-label>\n <input matInput formControlName=\"email\" readonly>\n <mat-icon matPrefix>email</mat-icon>\n </mat-form-field> \n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.firstname' | translate)}}</mat-label>\n <input matInput formControlName=\"firstName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.lastname' | translate)}}</mat-label>\n <input matInput formControlName=\"lastName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.groups' | translate)}}</mat-label>\n <mat-chip-grid #groupChipGrid>\n @if (currentUserDetails.groups) {\n @for (group of currentUserDetails.groups.sort(); track group) {\n <mat-chip-row [editable]=\"false\"><div class=\"chip\">{{group}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"groupChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.roles' | translate)}}</mat-label>\n <mat-chip-grid #roleChipGrid>\n @if (currentUserDetails.effectiveRoles) {\n @for (role of currentUserDetails.effectiveRoles; track role) {\n <mat-chip-row [editable]=\"false\" [disabled]=\"currentUserDetails.roles.indexOf(role) === -1\"><div class=\"chip\">{{role}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"roleChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-slide-toggle formControlName=\"enabled\">\n {{ userDetailsForm.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) :\n ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle> \n </form>\n}", styles: [":host{height:100%;overflow:hidden;display:flex;flex-flow:column}:host .user-details-form{display:grid;gap:var(--ymt-spacing-m);padding:1rem}:host .user-details-form mat-chip-row{overflow:hidden}\n"] }]
|
|
225
|
+
}], ctorParameters: () => [{ type: YuvUserManagementService }, { type: i1$1.FormBuilder }], propDecorators: { userId: [{
|
|
226
|
+
type: Input
|
|
227
|
+
}] } });
|
|
228
|
+
|
|
164
229
|
const components$1 = [BusyOverlayDirective, YmtButtonDirective, DialogComponent];
|
|
165
230
|
const modules$1 = [
|
|
166
231
|
CommonModule,
|
|
@@ -252,7 +317,7 @@ class CreateUserComponent {
|
|
|
252
317
|
});
|
|
253
318
|
}
|
|
254
319
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CreateUserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
255
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: CreateUserComponent, isStandalone: true, selector: "ymusrmgmt-create-user", host: { properties: { "class.busy": "!busy()" } }, ngImport: i0, template: "<yuv-dialog [yuvBusyOverlay]=\"busy()\" [headertitel]=\"'yuv.app.user-management.users.action.create.label' | translate\">\n <main class=\"yuv-dialog-content\">\n <form [formGroup]=\"form\">\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.username\" | translate }}</mat-label>\n <input matInput [formControl]=\"username\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.email\" | translate}}</mat-label>\n <input matInput [formControl]=\"email\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.firstname\" | translate}}</mat-label>\n <input matInput [formControl]=\"firstname\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.lastname\" | translate}}</mat-label>\n <input matInput [formControl]=\"lastname\" type=\"text\"/>\n </mat-form-field>\n <div class=\"yuv-form-field\" id=\"enabledPropDiv\">\n <mat-slide-toggle formControlName=\"enabled\">\n {{ form.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) : ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle>\n </div>\n @if (error()) {\n <p class=\"error\">{{ error() }}</p>\n }\n </form>\n </main>\n <footer>\n <button ymtButton=\"secondary\" [disabled]=\"busy()\" (click)=\"close()\">\n {{ \"yuv.app.user-management.users.action.button.cancel\" | translate }}\n </button>\n <button ymtButton=\"primary\" [disabled]=\"disabledSubmit()\" (click)=\"createUser()\">\n {{ 'yuv.app.user-management.users.action.button.create' | translate }}\n </button>\n </footer>\n</yuv-dialog>\n", styles: [":host{display:block;position:relative}:host main form{padding:var(--ymt-spacing-m)}:host main form .yuv-form-field{width:100%;margin:var(--ymt-spacing-xs) 0}:host main form .error{color:var(--ymt-on-danger-container);background-color:var(--ymt-danger-container);padding:var(--ymt-spacing-m);border-radius:var(--ymt-corner-xs)}:host main form #enabledPropDiv{display:flex;justify-content:center;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { 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: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type:
|
|
320
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: CreateUserComponent, isStandalone: true, selector: "ymusrmgmt-create-user", host: { properties: { "class.busy": "!busy()" } }, ngImport: i0, template: "<yuv-dialog [yuvBusyOverlay]=\"busy()\" [headertitel]=\"'yuv.app.user-management.users.action.create.label' | translate\">\n <main class=\"yuv-dialog-content\">\n <form [formGroup]=\"form\">\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.username\" | translate }}</mat-label>\n <input matInput [formControl]=\"username\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.email\" | translate}}</mat-label>\n <input matInput [formControl]=\"email\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.firstname\" | translate}}</mat-label>\n <input matInput [formControl]=\"firstname\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.lastname\" | translate}}</mat-label>\n <input matInput [formControl]=\"lastname\" type=\"text\"/>\n </mat-form-field>\n <div class=\"yuv-form-field\" id=\"enabledPropDiv\">\n <mat-slide-toggle formControlName=\"enabled\">\n {{ form.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) : ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle>\n </div>\n @if (error()) {\n <p class=\"error\">{{ error() }}</p>\n }\n </form>\n </main>\n <footer>\n <button ymtButton=\"secondary\" [disabled]=\"busy()\" (click)=\"close()\">\n {{ \"yuv.app.user-management.users.action.button.cancel\" | translate }}\n </button>\n <button ymtButton=\"primary\" [disabled]=\"disabledSubmit()\" (click)=\"createUser()\">\n {{ 'yuv.app.user-management.users.action.button.create' | translate }}\n </button>\n </footer>\n</yuv-dialog>\n", styles: [":host{display:block;position:relative}:host main form{padding:var(--ymt-spacing-m)}:host main form .yuv-form-field{width:100%;margin:var(--ymt-spacing-xs) 0}:host main form .error{color:var(--ymt-on-danger-container);background-color:var(--ymt-danger-container);padding:var(--ymt-spacing-m);border-radius:var(--ymt-corner-xs)}:host main form #enabledPropDiv{display:flex;justify-content:center;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { 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: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i7.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: BusyOverlayDirective, selector: "[yuvBusyOverlay]", inputs: ["yuvBusyOverlay", "yuvBusyOverlayConfig", "yuvBusyError"], outputs: ["yuvBusyErrorDismiss"] }, { kind: "directive", type: YmtButtonDirective, selector: "button[ymtButton], a[ymtButton]", inputs: ["ymtButton", "disabled", "aria-disabled", "disableRipple", "disabledInteractive", "button-size"] }, { kind: "component", type: DialogComponent, selector: "yuv-dialog", inputs: ["headertitle", "headertitel"] }] });
|
|
256
321
|
}
|
|
257
322
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CreateUserComponent, decorators: [{
|
|
258
323
|
type: Component,
|
|
@@ -343,7 +408,7 @@ class EditUserRolesComponent {
|
|
|
343
408
|
return this.selectedAssigned().includes(role);
|
|
344
409
|
}
|
|
345
410
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditUserRolesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
346
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: EditUserRolesComponent, isStandalone: true, selector: "ymusrmgmt-edit-user-roles", inputs: { allRoles: { classPropertyName: "allRoles", publicName: "allRoles", isSignal: true, isRequired: true, transformFunction: null }, assignedRoles: { classPropertyName: "assignedRoles", publicName: "assignedRoles", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { rolesChange: "rolesChange" }, ngImport: i0, template: "<div class=\"role-selector\">\n <!-- Available Roles (Left) -->\n <div class=\"role-list-container\">\n <div class=\"role-list-header\">\n {{ 'yuv.app.user-management.users.roles.available' | translate }}\n </div>\n <mat-selection-list class=\"role-list\" #availableList hideSingleSelectionIndicator=\"true\">\n @for (role of availableRoles(); track role) {\n <mat-list-option \n [value]=\"role\" \n [selected]=\"isAvailableSelected(role)\"\n (click)=\"toggleAvailableRole(role)\">\n {{ role }}\n </mat-list-option>\n }\n @empty {\n <div class=\"empty-message\">\n {{ 'yuv.app.user-management.users.roles.noAvailable' | translate }}\n </div>\n }\n </mat-selection-list>\n </div>\n\n <!-- Control Buttons (Center) -->\n <div class=\"control-buttons\">\n <button \n mat-icon-button \n [disabled]=\"availableRoles().length === 0\"\n (click)=\"assignAllRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.assignAll' | translate\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"!canAssign()\"\n (click)=\"assignRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.assign' | translate\">\n <mat-icon>chevron_right</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"!canRemove()\"\n (click)=\"removeRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.remove' | translate\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"userRoles().length === 0\"\n (click)=\"removeAllRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.removeAll' | translate\">\n <mat-icon>keyboard_double_arrow_left</mat-icon>\n </button>\n </div>\n\n <!-- Assigned Roles (Right) -->\n <div class=\"role-list-container\">\n <div class=\"role-list-header\">\n {{ 'yuv.app.user-management.users.roles.assigned' | translate }}\n </div>\n <mat-selection-list class=\"role-list\" #assignedList hideSingleSelectionIndicator=\"true\">\n @for (role of userRoles(); track role) {\n <mat-list-option \n [value]=\"role\" \n [selected]=\"isAssignedSelected(role)\"\n (click)=\"toggleAssignedRole(role)\">\n {{ role }}\n </mat-list-option>\n }\n @empty {\n <div class=\"empty-message\">\n {{ 'yuv.app.user-management.users.roles.noAssigned' | translate }}\n </div>\n }\n </mat-selection-list>\n </div>\n</div>\n", styles: [".role-selector{display:flex;gap:var(--ymt-spacing-m);align-items:stretch;min-height:300px;padding:var(--ymt-spacing-xs) 0}.role-list-container{flex:1;display:flex;flex-direction:column;border:var(--ymt-outline-width) solid var(--ymt-outline-variant);border-radius:var(--ymt-corner-xs);overflow:hidden;background-color:var(--ymt-surface-container-lowest);max-height:300px}.role-list-header{padding:var(--ymt-spacing-s) var(--ymt-spacing-m);background-color:var(--ymt-surface-container-high);color:var(--ymt-on-surface);font:var(--ymt-font-title-smallest);border-bottom:var(--ymt-outline-width) solid var(--ymt-outline-variant)}.role-list{flex:1;overflow-y:auto;min-height:0}.role-list ::ng-deep .mat-mdc-list-option{font:var(--ymt-font-body-subtle);min-height:var(--ymt-sizing-2xl)}.role-list ::ng-deep .mdc-list-item__primary-text{font:var(--ymt-font-body-subtle)}.role-list ::ng-deep .mdc-checkbox{display:none}.role-list ::ng-deep .mat-mdc-list-option[aria-selected=true]{background-color:var(--ymt-selection-background)!important}.role-list ::ng-deep .mat-mdc-list-option[aria-selected=true] .mdc-list-item__primary-text{color:var(--ymt-on-selection-background);font-weight:500}.role-list ::ng-deep .mat-mdc-list-option:hover:not([aria-selected=true]){background-color:var(--ymt-hover-background)}.control-buttons{display:flex;flex-direction:column;justify-content:center;gap:var(--ymt-spacing-xs)}.empty-message{padding:var(--ymt-spacing-m);text-align:center;color:var(--ymt-text-color-subtle);font:var(--ymt-font-body-subtle)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i3$
|
|
411
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: EditUserRolesComponent, isStandalone: true, selector: "ymusrmgmt-edit-user-roles", inputs: { allRoles: { classPropertyName: "allRoles", publicName: "allRoles", isSignal: true, isRequired: true, transformFunction: null }, assignedRoles: { classPropertyName: "assignedRoles", publicName: "assignedRoles", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { rolesChange: "rolesChange" }, ngImport: i0, template: "<div class=\"role-selector\">\n <!-- Available Roles (Left) -->\n <div class=\"role-list-container\">\n <div class=\"role-list-header\">\n {{ 'yuv.app.user-management.users.roles.available' | translate }}\n </div>\n <mat-selection-list class=\"role-list\" #availableList hideSingleSelectionIndicator=\"true\">\n @for (role of availableRoles(); track role) {\n <mat-list-option \n [value]=\"role\" \n [selected]=\"isAvailableSelected(role)\"\n (click)=\"toggleAvailableRole(role)\">\n {{ role }}\n </mat-list-option>\n }\n @empty {\n <div class=\"empty-message\">\n {{ 'yuv.app.user-management.users.roles.noAvailable' | translate }}\n </div>\n }\n </mat-selection-list>\n </div>\n\n <!-- Control Buttons (Center) -->\n <div class=\"control-buttons\">\n <button \n mat-icon-button \n [disabled]=\"availableRoles().length === 0\"\n (click)=\"assignAllRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.assignAll' | translate\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"!canAssign()\"\n (click)=\"assignRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.assign' | translate\">\n <mat-icon>chevron_right</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"!canRemove()\"\n (click)=\"removeRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.remove' | translate\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"userRoles().length === 0\"\n (click)=\"removeAllRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.removeAll' | translate\">\n <mat-icon>keyboard_double_arrow_left</mat-icon>\n </button>\n </div>\n\n <!-- Assigned Roles (Right) -->\n <div class=\"role-list-container\">\n <div class=\"role-list-header\">\n {{ 'yuv.app.user-management.users.roles.assigned' | translate }}\n </div>\n <mat-selection-list class=\"role-list\" #assignedList hideSingleSelectionIndicator=\"true\">\n @for (role of userRoles(); track role) {\n <mat-list-option \n [value]=\"role\" \n [selected]=\"isAssignedSelected(role)\"\n (click)=\"toggleAssignedRole(role)\">\n {{ role }}\n </mat-list-option>\n }\n @empty {\n <div class=\"empty-message\">\n {{ 'yuv.app.user-management.users.roles.noAssigned' | translate }}\n </div>\n }\n </mat-selection-list>\n </div>\n</div>\n", styles: [".role-selector{display:flex;gap:var(--ymt-spacing-m);align-items:stretch;min-height:300px;padding:var(--ymt-spacing-xs) 0}.role-list-container{flex:1;display:flex;flex-direction:column;border:var(--ymt-outline-width) solid var(--ymt-outline-variant);border-radius:var(--ymt-corner-xs);overflow:hidden;background-color:var(--ymt-surface-container-lowest);max-height:300px}.role-list-header{padding:var(--ymt-spacing-s) var(--ymt-spacing-m);background-color:var(--ymt-surface-container-high);color:var(--ymt-on-surface);font:var(--ymt-font-title-smallest);border-bottom:var(--ymt-outline-width) solid var(--ymt-outline-variant)}.role-list{flex:1;overflow-y:auto;min-height:0}.role-list ::ng-deep .mat-mdc-list-option{font:var(--ymt-font-body-subtle);min-height:var(--ymt-sizing-2xl)}.role-list ::ng-deep .mdc-list-item__primary-text{font:var(--ymt-font-body-subtle)}.role-list ::ng-deep .mdc-checkbox{display:none}.role-list ::ng-deep .mat-mdc-list-option[aria-selected=true]{background-color:var(--ymt-selection-background)!important}.role-list ::ng-deep .mat-mdc-list-option[aria-selected=true] .mdc-list-item__primary-text{color:var(--ymt-on-selection-background);font-weight:500}.role-list ::ng-deep .mat-mdc-list-option:hover:not([aria-selected=true]){background-color:var(--ymt-hover-background)}.control-buttons{display:flex;flex-direction:column;justify-content:center;gap:var(--ymt-spacing-xs)}.empty-message{padding:var(--ymt-spacing-m);text-align:center;color:var(--ymt-text-color-subtle);font:var(--ymt-font-body-subtle)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i3$2.MatSelectionList, selector: "mat-selection-list", inputs: ["color", "compareWith", "multiple", "hideSingleSelectionIndicator", "disabled"], outputs: ["selectionChange"], exportAs: ["matSelectionList"] }, { kind: "component", type: i3$2.MatListOption, selector: "mat-list-option", inputs: ["togglePosition", "checkboxPosition", "color", "value", "selected"], outputs: ["selectedChange"], exportAs: ["matListOption"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
347
412
|
}
|
|
348
413
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditUserRolesComponent, decorators: [{
|
|
349
414
|
type: Component,
|
|
@@ -469,7 +534,7 @@ class EditUserComponent {
|
|
|
469
534
|
this.#dialogRef.close();
|
|
470
535
|
}
|
|
471
536
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditUserComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
472
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: EditUserComponent, isStandalone: true, selector: "ymusrmgmt-edit-user", host: { properties: { "class.busy": "!busy()" } }, ngImport: i0, template: "<yuv-dialog [yuvBusyOverlay]=\"busy()\" [headertitel]=\"'yuv.app.user-management.users.action.edit.label' | translate\">\n <main class=\"yuv-dialog-content\">\n <form [formGroup]=\"form\">\n <mat-form-field class=\"yuv-form-field readonly-field\">\n <mat-label class=\"readonly-label\">{{\"yuv.app.user-management.users.object.property.username\" | translate }}</mat-label>\n <input matInput [formControl]=\"username\" type=\"text\" [attr.tabindex]=\"-1\" readonly/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.email\" | translate}}</mat-label>\n <input matInput [formControl]=\"email\" type=\"text\" #emailField/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.firstname\" | translate}}</mat-label>\n <input matInput [formControl]=\"firstName\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.lastname\" | translate}}</mat-label>\n <input matInput [formControl]=\"lastName\" type=\"text\"/>\n </mat-form-field>\n \n <div class=\"roles-section\" [class.has-error]=\"roles.invalid && roles.touched\">\n <ymusrmgmt-edit-user-roles\n [allRoles]=\"allAvailableRoles()\"\n [assignedRoles]=\"userRoles()\"\n (rolesChange)=\"onRolesChange($event)\">\n </ymusrmgmt-edit-user-roles>\n </div>\n \n @if (error()) {\n <p class=\"error\">{{ error() }}</p>\n }\n </form>\n </main>\n <footer>\n <button ymtButton=\"secondary\" [disabled]=\"busy()\" (click)=\"close()\">\n {{ \"yuv.app.user-management.users.action.button.cancel\" | translate }}\n </button>\n <button ymtButton=\"primary\" [disabled]=\"disabledSubmit()\" (click)=\"editUser()\">\n {{ 'yuv.app.user-management.users.action.button.save' | translate }}\n </button>\n </footer>\n</yuv-dialog>\n", styles: [":host{display:block;position:relative}:host main form{padding:var(--ymt-spacing-m)}:host main form .yuv-form-field{width:100%;margin:var(--ymt-spacing-xs) 0}:host main form .readonly-field{opacity:.5;pointer-events:none}:host main form .readonly-label{pointer-events:none}:host main form .error{color:var(--ymt-on-danger-container);background-color:var(--ymt-danger-container);padding:var(--ymt-spacing-m);border-radius:var(--ymt-corner-xs)}:host main form .roles-section{margin:var(--ymt-spacing-m) 0}:host main form .roles-section .roles-label{display:block;font-size:12px;font-weight:400;color:#0009;margin-bottom:var(--ymt-spacing-xs)}:host main form .roles-section.has-error .roles-label{color:var(--ymt-danger)}:host main form .roles-section.has-error ymusrmgmt-edit-user-roles{border:2px solid var(--ymt-danger);border-radius:var(--ymt-corner-xs);display:block}:host main form .roles-section .roles-error{color:var(--ymt-danger);font-size:12px;margin-top:var(--ymt-spacing-xs);padding-left:var(--ymt-spacing-m)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: BusyOverlayDirective, selector: "[yuvBusyOverlay]", inputs: ["yuvBusyOverlay", "yuvBusyOverlayConfig", "yuvBusyError"], outputs: ["yuvBusyErrorDismiss"] }, { kind: "directive", type: YmtButtonDirective, selector: "button[ymtButton], a[ymtButton]", inputs: ["ymtButton", "disabled", "aria-disabled", "disableRipple", "disabledInteractive", "button-size"] }, { kind: "component", type: DialogComponent, selector: "yuv-dialog", inputs: ["headertitle", "headertitel"] }, { kind: "component", type: EditUserRolesComponent, selector: "ymusrmgmt-edit-user-roles", inputs: ["allRoles", "assignedRoles"], outputs: ["rolesChange"] }] });
|
|
537
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: EditUserComponent, isStandalone: true, selector: "ymusrmgmt-edit-user", host: { properties: { "class.busy": "!busy()" } }, ngImport: i0, template: "<yuv-dialog [yuvBusyOverlay]=\"busy()\" [headertitel]=\"'yuv.app.user-management.users.action.edit.label' | translate\">\n <main class=\"yuv-dialog-content\">\n <form [formGroup]=\"form\">\n <mat-form-field class=\"yuv-form-field readonly-field\">\n <mat-label class=\"readonly-label\">{{\"yuv.app.user-management.users.object.property.username\" | translate }}</mat-label>\n <input matInput [formControl]=\"username\" type=\"text\" [attr.tabindex]=\"-1\" readonly/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.email\" | translate}}</mat-label>\n <input matInput [formControl]=\"email\" type=\"text\" #emailField/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.firstname\" | translate}}</mat-label>\n <input matInput [formControl]=\"firstName\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.lastname\" | translate}}</mat-label>\n <input matInput [formControl]=\"lastName\" type=\"text\"/>\n </mat-form-field>\n \n <div class=\"roles-section\" [class.has-error]=\"roles.invalid && roles.touched\">\n <ymusrmgmt-edit-user-roles\n [allRoles]=\"allAvailableRoles()\"\n [assignedRoles]=\"userRoles()\"\n (rolesChange)=\"onRolesChange($event)\">\n </ymusrmgmt-edit-user-roles>\n </div>\n \n @if (error()) {\n <p class=\"error\">{{ error() }}</p>\n }\n </form>\n </main>\n <footer>\n <button ymtButton=\"secondary\" [disabled]=\"busy()\" (click)=\"close()\">\n {{ \"yuv.app.user-management.users.action.button.cancel\" | translate }}\n </button>\n <button ymtButton=\"primary\" [disabled]=\"disabledSubmit()\" (click)=\"editUser()\">\n {{ 'yuv.app.user-management.users.action.button.save' | translate }}\n </button>\n </footer>\n</yuv-dialog>\n", styles: [":host{display:block;position:relative}:host main form{padding:var(--ymt-spacing-m)}:host main form .yuv-form-field{width:100%;margin:var(--ymt-spacing-xs) 0}:host main form .readonly-field{opacity:.5;pointer-events:none}:host main form .readonly-label{pointer-events:none}:host main form .error{color:var(--ymt-on-danger-container);background-color:var(--ymt-danger-container);padding:var(--ymt-spacing-m);border-radius:var(--ymt-corner-xs)}:host main form .roles-section{margin:var(--ymt-spacing-m) 0}:host main form .roles-section .roles-label{display:block;font-size:12px;font-weight:400;color:#0009;margin-bottom:var(--ymt-spacing-xs)}:host main form .roles-section.has-error .roles-label{color:var(--ymt-danger)}:host main form .roles-section.has-error ymusrmgmt-edit-user-roles{border:2px solid var(--ymt-danger);border-radius:var(--ymt-corner-xs);display:block}:host main form .roles-section .roles-error{color:var(--ymt-danger);font-size:12px;margin-top:var(--ymt-spacing-xs);padding-left:var(--ymt-spacing-m)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: BusyOverlayDirective, selector: "[yuvBusyOverlay]", inputs: ["yuvBusyOverlay", "yuvBusyOverlayConfig", "yuvBusyError"], outputs: ["yuvBusyErrorDismiss"] }, { kind: "directive", type: YmtButtonDirective, selector: "button[ymtButton], a[ymtButton]", inputs: ["ymtButton", "disabled", "aria-disabled", "disableRipple", "disabledInteractive", "button-size"] }, { kind: "component", type: DialogComponent, selector: "yuv-dialog", inputs: ["headertitle", "headertitel"] }, { kind: "component", type: EditUserRolesComponent, selector: "ymusrmgmt-edit-user-roles", inputs: ["allRoles", "assignedRoles"], outputs: ["rolesChange"] }] });
|
|
473
538
|
}
|
|
474
539
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditUserComponent, decorators: [{
|
|
475
540
|
type: Component,
|
|
@@ -481,71 +546,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
481
546
|
args: [MAT_DIALOG_DATA]
|
|
482
547
|
}] }] });
|
|
483
548
|
|
|
484
|
-
class UserDetailsComponent {
|
|
485
|
-
userService;
|
|
486
|
-
formBuilder;
|
|
487
|
-
userDetails = signal(undefined);
|
|
488
|
-
userDetailsForm;
|
|
489
|
-
currentUserId;
|
|
490
|
-
set userId(value) {
|
|
491
|
-
this.currentUserId = value;
|
|
492
|
-
this.loadUserDetails();
|
|
493
|
-
}
|
|
494
|
-
loadUserDetails() {
|
|
495
|
-
if (this.currentUserId) {
|
|
496
|
-
this.userService.getUserDetails(this.currentUserId).subscribe(user => {
|
|
497
|
-
this.userDetails.set(user);
|
|
498
|
-
this.userDetailsForm.patchValue({
|
|
499
|
-
id: user.id,
|
|
500
|
-
username: user.username,
|
|
501
|
-
firstName: user.firstName,
|
|
502
|
-
lastName: user.lastName,
|
|
503
|
-
email: user.email,
|
|
504
|
-
enabled: user.enabled
|
|
505
|
-
});
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
else {
|
|
509
|
-
this.userDetails.set(undefined);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* Refresh the user details by reloading the data from the server
|
|
514
|
-
*/
|
|
515
|
-
refresh() {
|
|
516
|
-
this.loadUserDetails();
|
|
517
|
-
}
|
|
518
|
-
constructor(userService, formBuilder) {
|
|
519
|
-
this.userService = userService;
|
|
520
|
-
this.formBuilder = formBuilder;
|
|
521
|
-
this.userDetailsForm = this.formBuilder.group({
|
|
522
|
-
id: [{ value: '' }],
|
|
523
|
-
username: [{ value: '' }],
|
|
524
|
-
firstName: [{ value: '' }],
|
|
525
|
-
lastName: [{ value: '' }],
|
|
526
|
-
email: [{ value: '' }],
|
|
527
|
-
enabled: [{ value: false, disabled: true }]
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserDetailsComponent, deps: [{ token: YuvUserManagementService }, { token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
531
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: UserDetailsComponent, isStandalone: true, selector: "ymusrmgmt-user-details", inputs: { userId: "userId" }, ngImport: i0, template: "@let currentUserDetails = userDetails();\n@if (currentUserDetails) {\n <form [formGroup]=\"userDetailsForm\" class=\"user-details-form\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{('yuv.app.user-management.users.object.property.id' | translate)}}</mat-label>\n <input matInput formControlName=\"id\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.username' | translate)}}</mat-label>\n <input matInput formControlName=\"username\" readonly>\n <mat-icon matPrefix>account_box</mat-icon>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.email' | translate)}}</mat-label>\n <input matInput formControlName=\"email\" readonly>\n <mat-icon matPrefix>email</mat-icon>\n </mat-form-field> \n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.firstname' | translate)}}</mat-label>\n <input matInput formControlName=\"firstName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.lastname' | translate)}}</mat-label>\n <input matInput formControlName=\"lastName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.groups' | translate)}}</mat-label>\n <mat-chip-grid #groupChipGrid>\n @if (currentUserDetails.groups) {\n @for (group of currentUserDetails.groups.sort(); track group) {\n <mat-chip-row [editable]=\"false\"><div class=\"chip\">{{group}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"groupChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.roles' | translate)}}</mat-label>\n <mat-chip-grid #roleChipGrid>\n @if (currentUserDetails.effectiveRoles) {\n @for (role of currentUserDetails.effectiveRoles; track role) {\n <mat-chip-row [editable]=\"false\" [disabled]=\"currentUserDetails.roles.indexOf(role) === -1\"><div class=\"chip\">{{role}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"roleChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-slide-toggle formControlName=\"enabled\">\n {{ userDetailsForm.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) :\n ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle> \n </form>\n}", styles: [":host{height:100%;overflow:hidden;display:flex;flex-flow:column}:host .user-details-form{display:grid;gap:var(--ymt-spacing-m);padding:1rem}:host .user-details-form mat-chip-row{overflow:hidden}\n"], dependencies: [{ kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i3$2.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i3$2.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "component", type: i3$2.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i4.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "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: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
532
|
-
}
|
|
533
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserDetailsComponent, decorators: [{
|
|
534
|
-
type: Component,
|
|
535
|
-
args: [{ selector: 'ymusrmgmt-user-details', imports: [
|
|
536
|
-
MatChipsModule,
|
|
537
|
-
MatFormFieldModule,
|
|
538
|
-
MatInputModule,
|
|
539
|
-
MatIconModule,
|
|
540
|
-
MatCheckboxModule,
|
|
541
|
-
MatSlideToggleModule,
|
|
542
|
-
ReactiveFormsModule,
|
|
543
|
-
TranslateModule
|
|
544
|
-
], template: "@let currentUserDetails = userDetails();\n@if (currentUserDetails) {\n <form [formGroup]=\"userDetailsForm\" class=\"user-details-form\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{('yuv.app.user-management.users.object.property.id' | translate)}}</mat-label>\n <input matInput formControlName=\"id\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.username' | translate)}}</mat-label>\n <input matInput formControlName=\"username\" readonly>\n <mat-icon matPrefix>account_box</mat-icon>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.email' | translate)}}</mat-label>\n <input matInput formControlName=\"email\" readonly>\n <mat-icon matPrefix>email</mat-icon>\n </mat-form-field> \n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.firstname' | translate)}}</mat-label>\n <input matInput formControlName=\"firstName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.lastname' | translate)}}</mat-label>\n <input matInput formControlName=\"lastName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.groups' | translate)}}</mat-label>\n <mat-chip-grid #groupChipGrid>\n @if (currentUserDetails.groups) {\n @for (group of currentUserDetails.groups.sort(); track group) {\n <mat-chip-row [editable]=\"false\"><div class=\"chip\">{{group}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"groupChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.roles' | translate)}}</mat-label>\n <mat-chip-grid #roleChipGrid>\n @if (currentUserDetails.effectiveRoles) {\n @for (role of currentUserDetails.effectiveRoles; track role) {\n <mat-chip-row [editable]=\"false\" [disabled]=\"currentUserDetails.roles.indexOf(role) === -1\"><div class=\"chip\">{{role}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"roleChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-slide-toggle formControlName=\"enabled\">\n {{ userDetailsForm.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) :\n ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle> \n </form>\n}", styles: [":host{height:100%;overflow:hidden;display:flex;flex-flow:column}:host .user-details-form{display:grid;gap:var(--ymt-spacing-m);padding:1rem}:host .user-details-form mat-chip-row{overflow:hidden}\n"] }]
|
|
545
|
-
}], ctorParameters: () => [{ type: YuvUserManagementService }, { type: i1$1.FormBuilder }], propDecorators: { userId: [{
|
|
546
|
-
type: Input
|
|
547
|
-
}] } });
|
|
548
|
-
|
|
549
549
|
class YuvUsersPageComponent {
|
|
550
550
|
layoutSettingsID = APP_ID + '#root.layout.settings';
|
|
551
551
|
#logger = inject(Logger);
|
|
@@ -565,6 +565,7 @@ class YuvUsersPageComponent {
|
|
|
565
565
|
};
|
|
566
566
|
dataSource = signal([]);
|
|
567
567
|
selection = signal(new SelectionModel(false, undefined));
|
|
568
|
+
detailsActive = true;
|
|
568
569
|
layoutOptions = {
|
|
569
570
|
resizable: true,
|
|
570
571
|
detailsSize: 25,
|
|
@@ -575,6 +576,7 @@ class YuvUsersPageComponent {
|
|
|
575
576
|
#updateActions(selectedUser) {
|
|
576
577
|
if (!selectedUser) {
|
|
577
578
|
this.actions = [];
|
|
579
|
+
this.detailsActive = false;
|
|
578
580
|
return;
|
|
579
581
|
}
|
|
580
582
|
const currentUser = this.#userService.getCurrentUser();
|
|
@@ -606,6 +608,7 @@ class YuvUsersPageComponent {
|
|
|
606
608
|
callback: () => this.deleteSelectedUser(),
|
|
607
609
|
};
|
|
608
610
|
this.actions = [editAction, activateAction, deactivateAction, deleteAction];
|
|
611
|
+
this.detailsActive = true;
|
|
609
612
|
}
|
|
610
613
|
createNewUser() {
|
|
611
614
|
this.#logger.debug('Create new user ...');
|
|
@@ -760,33 +763,19 @@ class YuvUsersPageComponent {
|
|
|
760
763
|
},
|
|
761
764
|
complete: () => {
|
|
762
765
|
const selected = this.selection().hasValue() ? this.selection().selected[0] : undefined;
|
|
763
|
-
if (selected) {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
this.select(updatedSelected);
|
|
767
|
-
}
|
|
768
|
-
else {
|
|
769
|
-
this.#userManagementService.getUserDetails(selected.id).subscribe({
|
|
770
|
-
next: (user) => {
|
|
771
|
-
this.select(user);
|
|
772
|
-
},
|
|
773
|
-
error: (e) => {
|
|
774
|
-
this.#logger.error(`Failed to fetch data for selected user with id '${selected.id}'. Deselecting user...`, e);
|
|
775
|
-
this.deselect();
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
this.refreshUserDetails();
|
|
766
|
+
if (selected && this.dataSource().some(u => u.id === selected.id)) {
|
|
767
|
+
const updatedSelected = this.dataSource().find(u => u.id === selected.id);
|
|
768
|
+
this.select(updatedSelected);
|
|
780
769
|
}
|
|
781
770
|
else {
|
|
782
|
-
this.
|
|
771
|
+
this.select(this.dataSource()[0]);
|
|
783
772
|
}
|
|
784
773
|
this.busy.set(false);
|
|
785
774
|
},
|
|
786
775
|
});
|
|
787
776
|
}
|
|
788
777
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: YuvUsersPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
789
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: YuvUsersPageComponent, isStandalone: true, selector: "ymusrmgmt-users", host: { properties: { "class.busy": "!busy()", "class.pagination": "this.pagination" } }, viewQueries: [{ propertyName: "userDetailsComponent", first: true, predicate: UserDetailsComponent, descendants: true }], ngImport: i0, template: "<ng-template yuvAppHeaderSlot=\"actions\">\n <button ymtButton=\"primary\" (click)=\"createNewUser()\" [matTooltip]=\"'yuv.app.user-management.users.action.create.description' | translate\">\n <mat-icon>{{icons.actionCreateNewUser}}</mat-icon>{{'yuv.app.user-management.users.action.create.label' | translate }}\n </button>\n</ng-template>\n\n<ng-template yuvAppHeaderSlot=\"search\">\n <yuv-simple-search (queryChange)=\"onQueryChange($event)\"></yuv-simple-search>\n</ng-template>\n\n<ymt-master-details-layout [yuvBusyOverlay]=\"busy()\"
|
|
778
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: YuvUsersPageComponent, isStandalone: true, selector: "ymusrmgmt-users", host: { properties: { "class.busy": "!busy()", "class.pagination": "this.pagination" } }, viewQueries: [{ propertyName: "userDetailsComponent", first: true, predicate: UserDetailsComponent, descendants: true }], ngImport: i0, template: "<ng-template yuvAppHeaderSlot=\"actions\">\n <button ymtButton=\"primary\" (click)=\"createNewUser()\" [matTooltip]=\"'yuv.app.user-management.users.action.create.description' | translate\">\n <mat-icon>{{icons.actionCreateNewUser}}</mat-icon>{{'yuv.app.user-management.users.action.create.label' | translate }}\n </button>\n</ng-template>\n\n<ng-template yuvAppHeaderSlot=\"search\">\n <yuv-simple-search (queryChange)=\"onQueryChange($event)\"></yuv-simple-search>\n</ng-template>\n\n<ymt-master-details-layout [yuvBusyOverlay]=\"busy()\" [(detailsActive)]=\"detailsActive\" [options]=\"layoutOptions\" [layoutSettingsID]=\"layoutSettingsID\">\n <ng-template ymtLayoutPane role=\"master\" [topBarActions]=\"masterPaneActions\">\n <ymt-pane-body>\n <mat-table [dataSource]=\"dataSource()\" class=\"user-table mat-elevation-z8\" row>\n <ng-container matColumnDef=\"state\">\n <mat-header-cell *matHeaderCellDef />\n <mat-cell *matCellDef=\"let element\"><mat-icon>{{ element.enabled ? icons.stateActive : icons.stateInactive\n }}</mat-icon></mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"name\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.username' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.username}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"firstName\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.firstname' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.firstName}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"lastName\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.lastname' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.lastName}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"email\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.email' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.email}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"id\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.id' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.id}} </mat-cell>\n </ng-container>\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row \n *matRowDef=\"let row; columns: displayedColumns;\" \n (click.single)=\"select(row)\" \n [class.selected-row]=\"this.isSelected(row)\" class=\"user-row\">\n </mat-row>\n </mat-table>\n </ymt-pane-body>\n </ng-template>\n <ng-template ymtLayoutPane role=\"details\">\n @let selectedUser = selection().selected.at(0);\n <ymt-pane-header [icon]=\"'person'\" [title]=\"'yuv.app.user-management.users.details.title' | translate\" [subtitle]=\"selectedUser?.id || ('yuv.app.user-management.users.details.empty' | translate)\" [actions]=\"listActions\"></ymt-pane-header>\n <ymt-pane-body>\n <ymusrmgmt-user-details [userId]=\"selectedUser?.id\" />\n </ymt-pane-body>\n </ng-template>\n</ymt-master-details-layout>\n\n<ng-template #masterPaneActions>\n @if (pagination) {\n <mat-paginator class=\"paginator\" [length]=\"pagination.total\" [pageSize]=\"getPageSize()\" aria-label=\"Select page\" (page)=\"onChangePage($event)\" hidePageSize></mat-paginator>\n }\n <button ymt-icon-button (click)=\"refresh()\" [matTooltip]=\"'yuv.app.user-management.users.navigation.refresh.tooltip' | translate\"><mat-icon>{{icons.refresh}}</mat-icon></button>\n</ng-template>\n\n<ng-template #listActions>\n <yuv-overflow-menu [menuItems]=\"actions\"></yuv-overflow-menu>\n</ng-template>", styles: [":host{--mat-table-row-item-outline-color: var(--ymt-outline-variant);height:100%;overflow:hidden;display:flex;flex-flow:column}:host ymt-master-details-layout{height:100%;padding:1rem}:host .user-table{overflow:auto;height:100%}:host .user-row:hover{background-color:var(--ymt-hover-background)}:host .selected-row{background-color:var(--ymt-selection-background)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i2$2.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i3$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "component", type: SimpleSearchComponent, selector: "yuv-simple-search", inputs: ["query"], outputs: ["querySubmit", "clearInput", "targetSelectionChanged", "queryChange", "typeAggregation"] }, { kind: "directive", type: BusyOverlayDirective, selector: "[yuvBusyOverlay]", inputs: ["yuvBusyOverlay", "yuvBusyOverlayConfig", "yuvBusyError"], outputs: ["yuvBusyErrorDismiss"] }, { kind: "directive", type: ClickDoubleDirective, selector: "[click.single],[click.double]", inputs: ["debounceTime"], outputs: ["click.double", "click.single"] }, { kind: "component", type: UserDetailsComponent, selector: "ymusrmgmt-user-details", inputs: ["userId"] }, { kind: "directive", type: YmtButtonDirective, selector: "button[ymtButton], a[ymtButton]", inputs: ["ymtButton", "disabled", "aria-disabled", "disableRipple", "disabledInteractive", "button-size"] }, { kind: "directive", type: YmtIconButtonDirective, selector: "button[ymtIconButton],button[ymt-icon-button],a[ymtIconButton],a[ymt-icon-button]", inputs: ["disabled", "disableRipple", "aria-disabled", "disabledInteractive", "icon-button-size"] }, { kind: "ngmodule", type: YmtLayoutModule }, { kind: "component", type: i6.MasterDetailsLayoutComponent, selector: "ymt-master-details-layout", inputs: ["layoutSettingsID", "options", "direction", "gutterSize", "detailsActive"], outputs: ["detailsActiveChange"] }, { kind: "directive", type: i6.YmtLayoutPaneDirective, selector: "[ymtLayoutPane]", inputs: ["role", "topBarActions"] }, { kind: "ngmodule", type: YmtPanesModule }, { kind: "component", type: i7$1.YmtPaneHeaderComponent, selector: "ymt-pane-header", inputs: ["title", "icon", "subtitle", "actions"] }, { kind: "component", type: i7$1.YmtPaneBodyComponent, selector: "ymt-pane-body" }, { kind: "ngmodule", type: YuvClientShellModule }, { kind: "directive", type: i8.YuvAppHeaderSlotDirective, selector: "ng-template[yuvAppHeaderSlot]", inputs: ["yuvAppHeaderSlot"] }, { kind: "ngmodule", type: YuvOverflowMenuModule }, { kind: "component", type: i9.OverflowMenuComponent, selector: "yuv-overflow-menu", inputs: ["overflowIcon", "groupLabels", "menuItems", "vertical"] }] });
|
|
790
779
|
}
|
|
791
780
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: YuvUsersPageComponent, decorators: [{
|
|
792
781
|
type: Component,
|
|
@@ -794,10 +783,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
794
783
|
CommonModule,
|
|
795
784
|
MatButtonModule,
|
|
796
785
|
MatIconModule,
|
|
797
|
-
MatTooltipModule,
|
|
798
|
-
MatTableModule,
|
|
799
786
|
MatPaginatorModule,
|
|
800
787
|
MatSortModule,
|
|
788
|
+
MatTableModule,
|
|
789
|
+
MatTabsModule,
|
|
790
|
+
MatTooltipModule,
|
|
801
791
|
RouterModule,
|
|
802
792
|
TranslateModule,
|
|
803
793
|
SimpleSearchComponent,
|
|
@@ -812,7 +802,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
812
802
|
YuvOverflowMenuModule,
|
|
813
803
|
], host: {
|
|
814
804
|
'[class.busy]': '!busy()',
|
|
815
|
-
}, template: "<ng-template yuvAppHeaderSlot=\"actions\">\n <button ymtButton=\"primary\" (click)=\"createNewUser()\" [matTooltip]=\"'yuv.app.user-management.users.action.create.description' | translate\">\n <mat-icon>{{icons.actionCreateNewUser}}</mat-icon>{{'yuv.app.user-management.users.action.create.label' | translate }}\n </button>\n</ng-template>\n\n<ng-template yuvAppHeaderSlot=\"search\">\n <yuv-simple-search (queryChange)=\"onQueryChange($event)\"></yuv-simple-search>\n</ng-template>\n\n<ymt-master-details-layout [yuvBusyOverlay]=\"busy()\"
|
|
805
|
+
}, template: "<ng-template yuvAppHeaderSlot=\"actions\">\n <button ymtButton=\"primary\" (click)=\"createNewUser()\" [matTooltip]=\"'yuv.app.user-management.users.action.create.description' | translate\">\n <mat-icon>{{icons.actionCreateNewUser}}</mat-icon>{{'yuv.app.user-management.users.action.create.label' | translate }}\n </button>\n</ng-template>\n\n<ng-template yuvAppHeaderSlot=\"search\">\n <yuv-simple-search (queryChange)=\"onQueryChange($event)\"></yuv-simple-search>\n</ng-template>\n\n<ymt-master-details-layout [yuvBusyOverlay]=\"busy()\" [(detailsActive)]=\"detailsActive\" [options]=\"layoutOptions\" [layoutSettingsID]=\"layoutSettingsID\">\n <ng-template ymtLayoutPane role=\"master\" [topBarActions]=\"masterPaneActions\">\n <ymt-pane-body>\n <mat-table [dataSource]=\"dataSource()\" class=\"user-table mat-elevation-z8\" row>\n <ng-container matColumnDef=\"state\">\n <mat-header-cell *matHeaderCellDef />\n <mat-cell *matCellDef=\"let element\"><mat-icon>{{ element.enabled ? icons.stateActive : icons.stateInactive\n }}</mat-icon></mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"name\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.username' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.username}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"firstName\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.firstname' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.firstName}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"lastName\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.lastname' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.lastName}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"email\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.email' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.email}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"id\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.id' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.id}} </mat-cell>\n </ng-container>\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row \n *matRowDef=\"let row; columns: displayedColumns;\" \n (click.single)=\"select(row)\" \n [class.selected-row]=\"this.isSelected(row)\" class=\"user-row\">\n </mat-row>\n </mat-table>\n </ymt-pane-body>\n </ng-template>\n <ng-template ymtLayoutPane role=\"details\">\n @let selectedUser = selection().selected.at(0);\n <ymt-pane-header [icon]=\"'person'\" [title]=\"'yuv.app.user-management.users.details.title' | translate\" [subtitle]=\"selectedUser?.id || ('yuv.app.user-management.users.details.empty' | translate)\" [actions]=\"listActions\"></ymt-pane-header>\n <ymt-pane-body>\n <ymusrmgmt-user-details [userId]=\"selectedUser?.id\" />\n </ymt-pane-body>\n </ng-template>\n</ymt-master-details-layout>\n\n<ng-template #masterPaneActions>\n @if (pagination) {\n <mat-paginator class=\"paginator\" [length]=\"pagination.total\" [pageSize]=\"getPageSize()\" aria-label=\"Select page\" (page)=\"onChangePage($event)\" hidePageSize></mat-paginator>\n }\n <button ymt-icon-button (click)=\"refresh()\" [matTooltip]=\"'yuv.app.user-management.users.navigation.refresh.tooltip' | translate\"><mat-icon>{{icons.refresh}}</mat-icon></button>\n</ng-template>\n\n<ng-template #listActions>\n <yuv-overflow-menu [menuItems]=\"actions\"></yuv-overflow-menu>\n</ng-template>", styles: [":host{--mat-table-row-item-outline-color: var(--ymt-outline-variant);height:100%;overflow:hidden;display:flex;flex-flow:column}:host ymt-master-details-layout{height:100%;padding:1rem}:host .user-table{overflow:auto;height:100%}:host .user-row:hover{background-color:var(--ymt-hover-background)}:host .selected-row{background-color:var(--ymt-selection-background)!important}\n"] }]
|
|
816
806
|
}], propDecorators: { userDetailsComponent: [{
|
|
817
807
|
type: ViewChild,
|
|
818
808
|
args: [UserDetailsComponent]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yuuvis-user-management-app.mjs","sources":["../../../../../projects/yuuvis/user-management-app/src/lib/user-management.schema.ts","../../../../../projects/yuuvis/user-management-app/src/lib/container/user-management.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/container/user-management.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/user-management.service.ts","../../../../../projects/yuuvis/user-management-app/src/lib/overlays/create-user/create-user.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/overlays/create-user/create-user.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/components/edit-user-roles/edit-user-roles.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/components/edit-user-roles/edit-user-roles.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/overlays/edit-user/edit-user.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/overlays/edit-user/edit-user.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/components/user-details/user-details.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/components/user-details/user-details.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/pages/users/users.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/pages/users/users.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/lib.routes.ts","../../../../../projects/yuuvis/user-management-app/src/yuuvis-user-management-app.ts"],"sourcesContent":["export const APP_ID = 'io.yuuvis.app.user-management';\n\nexport interface UserObject {\n id: string,\n username: string;\n firstName: string;\n lastName: string;\n email: string;\n enabled: boolean;\n}\n\nexport interface UserDetailsObject extends UserObject {\n groups: string[];\n roles: string[];\n effectiveRoles: string[];\n}\n\nexport interface UsersSearchResponse {\n hasMoreItems: boolean;\n numItems: number;\n totalNumItems: number;\n objects: UserObject[];\n}\n\nexport const APP_ICONS = {\n refresh: 'refresh',\n stateActive: 'account_circle',\n stateInactive: 'account_circle_off',\n actionCreateNewUser: 'person_add',\n actionEditUser: 'person_edit',\n actionActivateUser: 'person_check',\n actionDeactivateUser: 'person_off',\n actionDeleteUser: 'delete',\n};","import { CommonModule } from '@angular/common';\nimport { Component, inject, OnInit } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { TranslateModule, TranslateService } from '@yuuvis/client-core';\nimport { Title } from '@angular/platform-browser';\n\nimport { APP_ID } from '../user-management.schema';\nimport { ShellService } from '@yuuvis/client-shell-core';\n\n@Component({\n selector: 'ymusrmgmt-root',\n standalone: true,\n imports: [\n CommonModule,\n RouterModule,\n TranslateModule,\n ],\n templateUrl: './user-management.component.html',\n styleUrl: './user-management.component.scss',\n})\nexport class YuvUserManagementComponent implements OnInit {\n \n #shell = inject(ShellService);\n #titleService = inject(Title);\n #translateService = inject(TranslateService);\n \n #app = this.#shell.getApp(APP_ID);\n appName = this.#app?.title as string;\n appIcon = this.#app?.iconName;\n\n ngOnInit() {\n // Browser-Tab-Titel lokalisiert setzen\n const translatedTitle = this.appName.startsWith('yuv.') \n ? this.#translateService.instant(this.appName) \n : this.appName\n this.#titleService.setTitle(translatedTitle);\n }\n}\n","<section class=\"usrmgmt-main__content\" [attr.aria-label]=\"'yuv.app.user-management.content.aria.label' | translate\">\n <router-outlet></router-outlet>\n</section>\n\n<router-outlet name=\"modal\"></router-outlet>\n","import { inject, Injectable } from '@angular/core';\nimport { ApiBase, BackendService, TranslateService } from '@yuuvis/client-core';\nimport { UserDetailsObject, UserObject, UsersSearchResponse } from './user-management.schema';\nimport { HttpParams } from '@angular/common/http';\nimport { forkJoin, map, Observable, of, switchMap } from 'rxjs';\nimport { UserRequest } from './user-request';\nimport { ConfirmService } from '@yuuvis/client-framework/common';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class YuvUserManagementService {\n\n static DEFAULT_PAGE_SIZE = 15;\n\n readonly #backendService = inject(BackendService);\n readonly #translateService = inject(TranslateService);\n readonly #confirmService = inject(ConfirmService);\n\n fetchUsers(page = 0, search?: string): Observable<UsersSearchResponse> {\n const filterParams = new HttpParams()\n .set('page', page)\n .set('size', YuvUserManagementService.DEFAULT_PAGE_SIZE)\n .set('sort', 'username%2Casc')\n .set('search', search || '');\n\n return this.#backendService\n .get(`/tenant-management/api/idm/users?${filterParams}`, ApiBase.none);\n }\n\n fetchAllRoles(): Observable<string[]> {\n return this.#backendService\n .get(`/tenant-management/api/idm/roles`, ApiBase.none)\n .pipe(\n map((roles: { name: string, description: string }[]) => roles.map(role => role.name))\n );\n }\n\n createUser(createUserRequest: UserRequest, withInvitation?: boolean): Observable<string> {\n const createParams = new HttpParams()\n .set('withInvitation', withInvitation || false)\n .set('temporaryPassword', true);\n\n return this.#backendService\n .post(`/tenant-management/api/idm/users?${createParams}`, createUserRequest, ApiBase.none, { responseType: 'text' })\n .pipe(\n map((createdUserId: string) => createdUserId)\n );\n }\n\n editUser(userId: string, updateUserRequest: UserRequest): Observable<void> {\n return this.#backendService\n .put(`/tenant-management/api/idm/users/${userId}`, updateUserRequest, ApiBase.none);\n }\n\n deleteUser(user: UserObject): Observable<boolean> {\n return this.#confirmService\n .confirm({\n title: this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.label'\n ),\n message: this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.confirm.message',\n { username: user.username }\n ),\n })\n .pipe(\n switchMap((confirmed: boolean) => {\n if (confirmed) {\n return this.#backendService\n .delete(`/tenant-management/api/idm/users/${user.id}`, ApiBase.none)\n .pipe(\n map(() => true)\n );\n } else return of(false);\n })\n );\n }\n\n getUserDetails(id: string): Observable<UserDetailsObject> {\n const queryParams = new HttpParams()\n .set('briefRepresentation', false)\n\n const combined$: Observable<UserDetailsObject> = forkJoin({\n userDetails: this.#backendService\n .get(`/tenant-management/api/idm/users/${id}?${queryParams}`, ApiBase.none)\n .pipe(\n map(user => {\n const { roles: effectiveRoles, ...rest } = user;\n return { effectiveRoles, ...rest };\n })\n ),\n userRoles: this.#backendService\n .get(`/tenant-management/api/idm/users/${id}/roles`, ApiBase.none)\n }).pipe(\n map((response): UserDetailsObject => ({\n ...response.userDetails,\n roles: response.userRoles\n })));\n\n return combined$;\n }\n}","import { CommonModule } from '@angular/common';\nimport { Component, inject, linkedSignal, signal } from '@angular/core';\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n ReactiveFormsModule,\n Validators\n} from '@angular/forms';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { Logger, TranslateModule, TranslateService } from '@yuuvis/client-core';\nimport { YmtButtonDirective } from '@yuuvis/material';\nimport { BusyOverlayDirective, DialogComponent } from '@yuuvis/client-framework/common';\n\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { YuvUserManagementService } from '../../user-management.service';\nimport { UserObject } from '../../user-management.schema';\nimport { UserRequest } from '../../user-request';\nimport { MatInputModule } from '@angular/material/input';\n\nconst components = [BusyOverlayDirective, YmtButtonDirective, DialogComponent];\n\nconst modules = [\n CommonModule,\n ReactiveFormsModule,\n TranslateModule,\n MatFormFieldModule,\n MatSlideToggleModule,\n MatInputModule\n];\n\n@Component({\n selector: 'ymusrmgmt-create-user',\n templateUrl: './create-user.component.html',\n styleUrl: './create-user.component.scss',\n standalone: true,\n imports: [...modules, ...components],\n host: {\n '[class.busy]': '!busy()',\n },\n})\nexport class CreateUserComponent {\n readonly #fb = inject(FormBuilder);\n readonly #userManagementService = inject(YuvUserManagementService);\n readonly #dialogRef = inject(MatDialogRef<CreateUserComponent, UserObject>);\n readonly #translateService = inject(TranslateService);\n readonly #logger = inject(Logger);\n\n busy = signal<boolean>(false);\n\n error = signal<string | undefined>(undefined);\n\n username = new FormControl('', [Validators.required, Validators.minLength(3), Validators.maxLength(255), Validators.pattern('^[a-zA-Z0-9._-]*$')]);\n email = new FormControl('', [Validators.required, Validators.email]);\n firstname = new FormControl('', [Validators.minLength(1), Validators.maxLength(255), Validators.pattern(\"^[^#!<>&/%=;*§$()[\\\\]{}]*$\")]);\n lastname = new FormControl('', [Validators.minLength(1), Validators.maxLength(255), Validators.pattern(\"^[^#!<>&/%=;*§$()[\\\\]{}]*$\")]);\n enabled = new FormControl(true, []);\n\n form: FormGroup = this.#fb.group({\n username: this.username,\n email: this.email,\n firstname: this.firstname,\n lastname: this.lastname,\n enabled: this.enabled\n });\n\n changedInput = signal<any | undefined>(undefined);\n \n disabledSubmit = linkedSignal({\n source: this.changedInput,\n computation: () => {\n return this.busy() || this.form.invalid;\n }\n });\n\n createUser() {\n let createdUserId: string;\n const createParams = this.form.value;\n\n this.busy.set(true);\n this.error.set(undefined);\n\n const createUserRequest: UserRequest = {\n username: createParams.username,\n email: createParams.email,\n firstName: createParams.firstname ? createParams.firstname : null,\n lastName: createParams.lastname ? createParams.lastname : null,\n enabled: createParams.enabled,\n roles: []\n };\n\n this.#userManagementService\n .createUser(createUserRequest, true)\n .subscribe({\n error: (e: any) => {\n switch (e.status) {\n case 409: { \n const errorMsg = JSON.parse(e.error).message;\n if (errorMsg === \"User exists with same username\") {\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.usernameExists\"));\n } else if (errorMsg === \"User exists with same email\") {\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.emailExists\"));\n } else {\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.unknown\"));\n }\n break;\n }\n default:\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.unknown\"));\n }\n this.#logger.error(`Failed to create user with username ${createUserRequest.username}`, e);\n this.busy.set(false);\n },\n next: (userId : string) => {\n createdUserId = userId;\n },\n complete: () => {\n this.busy.set(false);\n this.#dialogRef.close(createdUserId);\n },\n });\n }\n\n close() {\n this.#dialogRef.close();\n }\n\n ngAfterViewInit() {\n this.form.valueChanges.subscribe((value) => {\n this.changedInput.set(value);\n });\n }\n}\n","<yuv-dialog [yuvBusyOverlay]=\"busy()\" [headertitel]=\"'yuv.app.user-management.users.action.create.label' | translate\">\n <main class=\"yuv-dialog-content\">\n <form [formGroup]=\"form\">\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.username\" | translate }}</mat-label>\n <input matInput [formControl]=\"username\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.email\" | translate}}</mat-label>\n <input matInput [formControl]=\"email\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.firstname\" | translate}}</mat-label>\n <input matInput [formControl]=\"firstname\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.lastname\" | translate}}</mat-label>\n <input matInput [formControl]=\"lastname\" type=\"text\"/>\n </mat-form-field>\n <div class=\"yuv-form-field\" id=\"enabledPropDiv\">\n <mat-slide-toggle formControlName=\"enabled\">\n {{ form.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) : ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle>\n </div>\n @if (error()) {\n <p class=\"error\">{{ error() }}</p>\n }\n </form>\n </main>\n <footer>\n <button ymtButton=\"secondary\" [disabled]=\"busy()\" (click)=\"close()\">\n {{ \"yuv.app.user-management.users.action.button.cancel\" | translate }}\n </button>\n <button ymtButton=\"primary\" [disabled]=\"disabledSubmit()\" (click)=\"createUser()\">\n {{ 'yuv.app.user-management.users.action.button.create' | translate }}\n </button>\n </footer>\n</yuv-dialog>\n","import { Component, input, output, signal, computed, effect } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatListModule } from '@angular/material/list';\nimport { TranslateModule } from '@yuuvis/client-core';\n\n@Component({\n selector: 'ymusrmgmt-edit-user-roles',\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatListModule,\n TranslateModule,\n ],\n standalone: true,\n templateUrl: './edit-user-roles.component.html',\n styleUrl: './edit-user-roles.component.css',\n})\nexport class EditUserRolesComponent {\n allRoles = input.required<string[]>();\n assignedRoles = input.required<string[]>();\n rolesChange = output<string[]>();\n availableRoles = signal<string[]>([]);\n userRoles = signal<string[]>([]);\n selectedAvailable = signal<string[]>([]);\n selectedAssigned = signal<string[]>([]);\n canAssign = computed(() => this.selectedAvailable().length > 0);\n canRemove = computed(() => this.selectedAssigned().length > 0);\n\n constructor() {\n // Initialize internal state when inputs change\n effect(() => {\n const all = this.allRoles();\n const assigned = this.assignedRoles();\n\n this.userRoles.set([...assigned]);\n this.availableRoles.set(all.filter((role) => !assigned.includes(role)));\n this.selectedAvailable.set([]);\n this.selectedAssigned.set([]);\n });\n }\n\n toggleAvailableRole(role: string) {\n const current = this.selectedAvailable();\n if (current.includes(role)) {\n this.selectedAvailable.set(current.filter((r) => r !== role));\n } else {\n this.selectedAvailable.set([...current, role]);\n }\n }\n\n toggleAssignedRole(role: string) {\n const current = this.selectedAssigned();\n if (current.includes(role)) {\n this.selectedAssigned.set(current.filter((r) => r !== role));\n } else {\n this.selectedAssigned.set([...current, role]);\n }\n }\n\n assignRoles() {\n const toAssign = this.selectedAvailable();\n if (toAssign.length === 0) return;\n\n this.availableRoles.update((roles) =>\n roles.filter((r) => !toAssign.includes(r))\n );\n this.userRoles.update((roles) => [...roles, ...toAssign].sort());\n this.selectedAvailable.set([]);\n\n this.rolesChange.emit(this.userRoles());\n }\n\n removeRoles() {\n const toRemove = this.selectedAssigned();\n if (toRemove.length === 0) return;\n\n this.userRoles.update((roles) =>\n roles.filter((r) => !toRemove.includes(r))\n );\n this.availableRoles.update((roles) => [...roles, ...toRemove].sort());\n this.selectedAssigned.set([]);\n\n this.rolesChange.emit(this.userRoles());\n }\n\n assignAllRoles() {\n const allAvailable = this.availableRoles();\n if (allAvailable.length === 0) return;\n\n this.userRoles.update((roles) => [...roles, ...allAvailable].sort());\n this.availableRoles.set([]);\n this.selectedAvailable.set([]);\n\n this.rolesChange.emit(this.userRoles());\n }\n\n removeAllRoles() {\n const allAssigned = this.userRoles();\n if (allAssigned.length === 0) return;\n\n this.availableRoles.update((roles) => [...roles, ...allAssigned].sort());\n this.userRoles.set([]);\n this.selectedAssigned.set([]);\n\n this.rolesChange.emit(this.userRoles());\n }\n\n isAvailableSelected(role: string): boolean {\n return this.selectedAvailable().includes(role);\n }\n\n isAssignedSelected(role: string): boolean {\n return this.selectedAssigned().includes(role);\n }\n}\n","<div class=\"role-selector\">\n <!-- Available Roles (Left) -->\n <div class=\"role-list-container\">\n <div class=\"role-list-header\">\n {{ 'yuv.app.user-management.users.roles.available' | translate }}\n </div>\n <mat-selection-list class=\"role-list\" #availableList hideSingleSelectionIndicator=\"true\">\n @for (role of availableRoles(); track role) {\n <mat-list-option \n [value]=\"role\" \n [selected]=\"isAvailableSelected(role)\"\n (click)=\"toggleAvailableRole(role)\">\n {{ role }}\n </mat-list-option>\n }\n @empty {\n <div class=\"empty-message\">\n {{ 'yuv.app.user-management.users.roles.noAvailable' | translate }}\n </div>\n }\n </mat-selection-list>\n </div>\n\n <!-- Control Buttons (Center) -->\n <div class=\"control-buttons\">\n <button \n mat-icon-button \n [disabled]=\"availableRoles().length === 0\"\n (click)=\"assignAllRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.assignAll' | translate\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"!canAssign()\"\n (click)=\"assignRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.assign' | translate\">\n <mat-icon>chevron_right</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"!canRemove()\"\n (click)=\"removeRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.remove' | translate\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"userRoles().length === 0\"\n (click)=\"removeAllRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.removeAll' | translate\">\n <mat-icon>keyboard_double_arrow_left</mat-icon>\n </button>\n </div>\n\n <!-- Assigned Roles (Right) -->\n <div class=\"role-list-container\">\n <div class=\"role-list-header\">\n {{ 'yuv.app.user-management.users.roles.assigned' | translate }}\n </div>\n <mat-selection-list class=\"role-list\" #assignedList hideSingleSelectionIndicator=\"true\">\n @for (role of userRoles(); track role) {\n <mat-list-option \n [value]=\"role\" \n [selected]=\"isAssignedSelected(role)\"\n (click)=\"toggleAssignedRole(role)\">\n {{ role }}\n </mat-list-option>\n }\n @empty {\n <div class=\"empty-message\">\n {{ 'yuv.app.user-management.users.roles.noAssigned' | translate }}\n </div>\n }\n </mat-selection-list>\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { AfterViewInit, Component, Inject, inject, linkedSignal, signal } from '@angular/core';\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n ReactiveFormsModule,\n Validators\n} from '@angular/forms';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { Logger, TranslateModule, TranslateService } from '@yuuvis/client-core';\nimport { YmtButtonDirective } from '@yuuvis/material';\nimport { BusyOverlayDirective, DialogComponent } from '@yuuvis/client-framework/common';\n\nimport { YuvUserManagementService } from '../../user-management.service';\nimport { UserObject } from '../../user-management.schema';\nimport { UserRequest } from '../../user-request';\nimport { MatInputModule } from '@angular/material/input';\nimport { MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { EditUserRolesComponent } from '../../components/edit-user-roles/edit-user-roles.component';\n\nconst components = [BusyOverlayDirective, YmtButtonDirective, DialogComponent, EditUserRolesComponent];\n\nconst modules = [\n CommonModule,\n ReactiveFormsModule,\n TranslateModule,\n MatFormFieldModule,\n MatInputModule,\n];\n\n@Component({\n selector: 'ymusrmgmt-edit-user',\n templateUrl: './edit-user.component.html',\n styleUrl: './edit-user.component.scss',\n standalone: true,\n imports: [...modules, ...components],\n host: {\n '[class.busy]': '!busy()',\n },\n})\nexport class EditUserComponent implements AfterViewInit {\n readonly #fb = inject(FormBuilder);\n readonly #userManagementService = inject(YuvUserManagementService);\n readonly #dialogRef = inject(MatDialogRef<EditUserComponent, UserObject>);\n readonly #translateService = inject(TranslateService);\n readonly #logger = inject(Logger);\n\n busy = signal<boolean>(false);\n\n error = signal<string | undefined>(undefined);\n\n allAvailableRoles = signal<string[]>([]);\n\n userRoles = signal<string[]>([]);\n\n username = new FormControl('');\n email = new FormControl('', [Validators.required, Validators.email]);\n firstName = new FormControl('', [Validators.minLength(1), Validators.maxLength(255), Validators.pattern(\"^[^#!<>&/%=;*§$()[\\\\]{}]*$\")]);\n lastName = new FormControl('', [Validators.minLength(1), Validators.maxLength(255), Validators.pattern(\"^[^#!<>&/%=;*§$()[\\\\]{}]*$\")]);\n roles = new FormControl<string[]>([]);\n\n form: FormGroup = this.#fb.group({\n username: this.username,\n email: this.email,\n firstName: this.firstName,\n lastName: this.lastName,\n roles: this.roles\n });\n\n changedInput = signal<any | undefined>(undefined);\n\n disabledSubmit = linkedSignal({\n source: this.changedInput,\n computation: () => {\n return this.busy() || this.form.invalid || !this.isDataChanged();\n }\n });\n\n constructor(@Inject(MAT_DIALOG_DATA) public data: any) {\n this.form.patchValue({\n username: this.data.user.username,\n firstName: this.data.user.firstName,\n lastName: this.data.user.lastName,\n email: this.data.user.email,\n roles: this.data.user.roles\n });\n\n // Initialize userRoles from the data\n this.userRoles.set(this.data.user.roles || []);\n\n // Fetch all available roles\n this.#userManagementService.fetchAllRoles().subscribe({\n next: (roles) => {\n this.allAvailableRoles.set(roles);\n },\n error: (e) => {\n this.#logger.error('Failed to fetch roles', e);\n }\n });\n }\n\n ngAfterViewInit() {\n this.form.valueChanges.subscribe((value) => {\n this.changedInput.set(value);\n });\n }\n\n isDataChanged(): boolean {\n const isDataUnchanged = Object.keys(this.form.value).every((key) => this.isEquals(key));\n return !isDataUnchanged;\n }\n\n isEquals(key: string) {\n const oldVal = this.data.user?.[key];\n const newVal = this.form.get(key)?.value;\n return oldVal === newVal;\n }\n\n onRolesChange(roles: string[]) {\n this.userRoles.set(roles);\n this.form.patchValue({ roles: roles });\n this.roles.markAsTouched(); // Mark as touched to trigger validation display\n }\n\n editUser() {\n const editParams = this.form.value;\n\n this.busy.set(true);\n this.error.set(undefined);\n\n const updateUserRequest: UserRequest = {\n email: editParams.email,\n firstName: editParams.firstName ? editParams.firstName : \"\",\n lastName: editParams.lastName ? editParams.lastName : \"\",\n roles: editParams.roles\n };\n\n this.#userManagementService\n .editUser(this.data.user.id, updateUserRequest)\n .subscribe({\n error: (e: any) => {\n switch (e.status) {\n case 409: {\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.emailExists\"));\n break;\n }\n default:\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.edit.error.unknown\"));\n }\n this.#logger.error(`Failed to update user with id ${this.data.user.id}`, e);\n this.busy.set(false);\n },\n complete: () => {\n this.busy.set(false);\n this.#dialogRef.close(this.data.user.id);\n },\n });\n }\n\n close() {\n this.#dialogRef.close();\n }\n}\n","<yuv-dialog [yuvBusyOverlay]=\"busy()\" [headertitel]=\"'yuv.app.user-management.users.action.edit.label' | translate\">\n <main class=\"yuv-dialog-content\">\n <form [formGroup]=\"form\">\n <mat-form-field class=\"yuv-form-field readonly-field\">\n <mat-label class=\"readonly-label\">{{\"yuv.app.user-management.users.object.property.username\" | translate }}</mat-label>\n <input matInput [formControl]=\"username\" type=\"text\" [attr.tabindex]=\"-1\" readonly/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.email\" | translate}}</mat-label>\n <input matInput [formControl]=\"email\" type=\"text\" #emailField/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.firstname\" | translate}}</mat-label>\n <input matInput [formControl]=\"firstName\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.lastname\" | translate}}</mat-label>\n <input matInput [formControl]=\"lastName\" type=\"text\"/>\n </mat-form-field>\n \n <div class=\"roles-section\" [class.has-error]=\"roles.invalid && roles.touched\">\n <ymusrmgmt-edit-user-roles\n [allRoles]=\"allAvailableRoles()\"\n [assignedRoles]=\"userRoles()\"\n (rolesChange)=\"onRolesChange($event)\">\n </ymusrmgmt-edit-user-roles>\n </div>\n \n @if (error()) {\n <p class=\"error\">{{ error() }}</p>\n }\n </form>\n </main>\n <footer>\n <button ymtButton=\"secondary\" [disabled]=\"busy()\" (click)=\"close()\">\n {{ \"yuv.app.user-management.users.action.button.cancel\" | translate }}\n </button>\n <button ymtButton=\"primary\" [disabled]=\"disabledSubmit()\" (click)=\"editUser()\">\n {{ 'yuv.app.user-management.users.action.button.save' | translate }}\n </button>\n </footer>\n</yuv-dialog>\n","import { Component, Input, signal } from '@angular/core';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { FormBuilder, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { TranslateModule } from '@yuuvis/client-core';\nimport { UserDetailsObject } from '../../user-management.schema';\nimport { YuvUserManagementService } from '../../user-management.service';\n\n\n@Component({\n selector: 'ymusrmgmt-user-details',\n imports: [\n MatChipsModule,\n MatFormFieldModule,\n MatInputModule,\n MatIconModule,\n MatCheckboxModule,\n MatSlideToggleModule,\n ReactiveFormsModule,\n TranslateModule\n ],\n templateUrl: './user-details.component.html',\n styleUrl: './user-details.component.scss'\n})\nexport class UserDetailsComponent {\n\n userDetails = signal<UserDetailsObject | undefined>(undefined);\n userDetailsForm: FormGroup;\n\n private currentUserId: string | undefined;\n\n @Input() set userId(value: string | undefined) {\n this.currentUserId = value;\n this.loadUserDetails();\n }\n\n private loadUserDetails() {\n if (this.currentUserId) {\n this.userService.getUserDetails(this.currentUserId).subscribe(user => {\n this.userDetails.set(user);\n this.userDetailsForm.patchValue({\n id: user.id,\n username: user.username,\n firstName: user.firstName,\n lastName: user.lastName,\n email: user.email,\n enabled: user.enabled\n });\n });\n } else {\n this.userDetails.set(undefined);\n }\n }\n\n /**\n * Refresh the user details by reloading the data from the server\n */\n refresh(): void {\n this.loadUserDetails();\n }\n\n constructor(private userService: YuvUserManagementService, private formBuilder: FormBuilder) {\n this.userDetailsForm = this.formBuilder.group({\n id: [{ value: '' }],\n username: [{ value: '' }],\n firstName: [{ value: '' }],\n lastName: [{ value: '' }],\n email: [{ value: '' }],\n enabled: [{ value: false, disabled: true }]\n });\n }\n}\n","@let currentUserDetails = userDetails();\n@if (currentUserDetails) {\n <form [formGroup]=\"userDetailsForm\" class=\"user-details-form\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{('yuv.app.user-management.users.object.property.id' | translate)}}</mat-label>\n <input matInput formControlName=\"id\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.username' | translate)}}</mat-label>\n <input matInput formControlName=\"username\" readonly>\n <mat-icon matPrefix>account_box</mat-icon>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.email' | translate)}}</mat-label>\n <input matInput formControlName=\"email\" readonly>\n <mat-icon matPrefix>email</mat-icon>\n </mat-form-field> \n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.firstname' | translate)}}</mat-label>\n <input matInput formControlName=\"firstName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.lastname' | translate)}}</mat-label>\n <input matInput formControlName=\"lastName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.groups' | translate)}}</mat-label>\n <mat-chip-grid #groupChipGrid>\n @if (currentUserDetails.groups) {\n @for (group of currentUserDetails.groups.sort(); track group) {\n <mat-chip-row [editable]=\"false\"><div class=\"chip\">{{group}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"groupChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.roles' | translate)}}</mat-label>\n <mat-chip-grid #roleChipGrid>\n @if (currentUserDetails.effectiveRoles) {\n @for (role of currentUserDetails.effectiveRoles; track role) {\n <mat-chip-row [editable]=\"false\" [disabled]=\"currentUserDetails.roles.indexOf(role) === -1\"><div class=\"chip\">{{role}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"roleChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-slide-toggle formControlName=\"enabled\">\n {{ userDetailsForm.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) :\n ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle> \n </form>\n}","import { CommonModule } from '@angular/common';\nimport { Component, HostBinding, inject, OnInit, signal, ViewChild } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { RouterModule } from '@angular/router';\nimport { Logger, NotificationService, SearchQuery, TranslateModule, TranslateService, UserService } from '@yuuvis/client-core';\nimport { MatSortModule } from '@angular/material/sort';\nimport { MatPaginatorModule, PageEvent } from '@angular/material/paginator';\nimport { MatTableModule } from '@angular/material/table';\n\nimport { YmtButtonDirective, YmtIconButtonDirective } from '@yuuvis/material';\nimport { MasterDetailsPaneLayoutOptions, YmtLayoutModule } from '@yuuvis/material/layout';\nimport { YmtPanesModule } from '@yuuvis/material/panes';\nimport { Pagination } from '@yuuvis/client-framework/pagination';\n\nimport { APP_ICONS, APP_ID, UserObject, UsersSearchResponse } from '../../user-management.schema';\nimport { YuvUserManagementService } from '../../user-management.service';\nimport { SimpleSearchComponent } from '@yuuvis/client-framework/simple-search';\nimport { YuvClientShellModule } from '@yuuvis/client-shell';\nimport { CreateUserComponent } from '../../overlays/create-user/create-user.component';\nimport { EditUserComponent } from '../../overlays/edit-user/edit-user.component';\nimport { MatDialog } from '@angular/material/dialog';\nimport { SelectionModel } from '@angular/cdk/collections'\nimport { BusyOverlayDirective, ClickDoubleDirective, ConfirmService } from '@yuuvis/client-framework/common';\nimport { UserDetailsComponent } from '../../components/user-details/user-details.component';\nimport { OverflowMenuItem, YuvOverflowMenuModule } from '@yuuvis/client-framework/overflow-menu';\n\nimport { UserRequest } from '../../user-request';\n\n@Component({\n selector: 'ymusrmgmt-users',\n standalone: true,\n imports: [\n CommonModule,\n MatButtonModule,\n MatIconModule,\n MatTooltipModule,\n MatTableModule,\n MatPaginatorModule,\n MatSortModule,\n RouterModule,\n TranslateModule,\n SimpleSearchComponent,\n BusyOverlayDirective,\n ClickDoubleDirective,\n UserDetailsComponent,\n YmtButtonDirective,\n YmtIconButtonDirective,\n YmtLayoutModule,\n YmtPanesModule,\n YuvClientShellModule,\n YuvOverflowMenuModule,\n],\n templateUrl: './users.component.html',\n styleUrl: './users.component.scss',\n host: {\n '[class.busy]': '!busy()',\n },\n})\nexport class YuvUsersPageComponent implements OnInit {\n\n readonly layoutSettingsID = APP_ID + '#root.layout.settings';\n\n readonly #logger = inject(Logger);\n readonly #userManagementService = inject(YuvUserManagementService);\n readonly #translateService = inject(TranslateService);\n readonly #dialog = inject(MatDialog);\n readonly #notificationService = inject(NotificationService);\n readonly #userService = inject(UserService)\n readonly #confirmService = inject(ConfirmService);\n\n @ViewChild(UserDetailsComponent) userDetailsComponent!: UserDetailsComponent;\n\n @HostBinding('class.pagination') pagination?: Pagination;\n\n busy = signal<boolean>(false);\n\n actions: OverflowMenuItem[] = [];\n\n displayedColumns: string[] = ['state', 'name', 'firstName', 'lastName', 'email', 'id'];\n\n icons = {\n ...APP_ICONS,\n };\n\n dataSource = signal<UserObject[]>([]);\n\n selection = signal(new SelectionModel<UserObject>(false, undefined));\n\n layoutOptions: MasterDetailsPaneLayoutOptions = {\n resizable: true,\n detailsSize: 25,\n detailsMinSize: 25,\n detailsMaxSize: 75\n };\n\n #query: SearchQuery = { term: '' }\n\n #updateActions(selectedUser: UserObject | undefined) {\n if (!selectedUser) {\n this.actions = [];\n return;\n }\n\n const currentUser = this.#userService.getCurrentUser();\n\n const editAction = {\n id: 'yuv.app.users.action.edit',\n icon: APP_ICONS.actionEditUser,\n label: this.#translateService.instant(\n 'yuv.app.user-management.users.action.edit.label'\n ),\n callback: () => this.editSelectedUser(),\n };\n const activateAction = {\n id: 'yuv.app.users.action.activate',\n icon: APP_ICONS.actionActivateUser,\n label: this.#translateService.instant(\n 'yuv.app.user-management.users.action.activate.label'\n ),\n disabled: selectedUser.id === currentUser.id || selectedUser.enabled,\n callback: () => this.activateSelectedUser(),\n };\n const deactivateAction = {\n id: 'yuv.app.users.action.deactivate',\n icon: APP_ICONS.actionDeactivateUser,\n label: this.#translateService.instant(\n 'yuv.app.user-management.users.action.deactivate.label'\n ),\n disabled: selectedUser.id === currentUser.id || !selectedUser.enabled,\n callback: () => this.deactivateSelectedUser(),\n };\n const deleteAction = {\n id: 'yuv.app.users.action.delete',\n icon: APP_ICONS.actionDeleteUser,\n label: this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.label'\n ),\n disabled: selectedUser.id === currentUser.id,\n callback: () => this.deleteSelectedUser(),\n };\n\n this.actions = [editAction, activateAction, deactivateAction, deleteAction];\n }\n\n createNewUser() {\n this.#logger.debug('Create new user ...');\n\n this.#dialog.open(CreateUserComponent, {\n width: '400px',\n maxWidth: '90vw',\n }).afterClosed().subscribe((createdUserId: string | undefined) => {\n if (createdUserId) {\n this.#logger.debug(\"New user created with ID: \" + createdUserId);\n this.#notificationService.success(\n this.#translateService.instant(\n 'yuv.app.user-management.users.action.create.success'\n )\n );\n\n this.refresh();\n }\n });\n }\n\n editSelectedUser() {\n const selected = this.selection().hasValue() ? this.selection().selected[0] : undefined;\n if (selected) {\n this.#logger.debug(`Edit selected user with id '${selected.id}'...`);\n\n this.#dialog.open(EditUserComponent, {\n width: '600px',\n maxWidth: '90vw',\n data: {\n user: this.userDetailsComponent.userDetails()\n },\n }).afterClosed().subscribe((editedUserId: string | undefined) => {\n if (editedUserId) {\n this.#logger.debug(\"User edited with ID: \" + editedUserId);\n this.#notificationService.success(\n this.#translateService.instant(\n 'yuv.app.user-management.users.action.edit.success',\n { username: selected.username }\n )\n );\n\n this.refresh();\n }\n });\n }\n }\n\n activateSelectedUser() {\n this.updateUserEnabledState(true);\n }\n\n deactivateSelectedUser() {\n this.updateUserEnabledState(false);\n }\n\n updateUserEnabledState(enabled: boolean) {\n const selected = this.selection().hasValue() ? this.selection().selected[0] : undefined;\n if (!selected) return;\n\n const action = enabled ? 'activate' : 'deactivate';\n const updateUserRequest: UserRequest = { enabled };\n\n const performUpdate = () => {\n this.busy.set(true);\n this.#userManagementService.editUser(selected.id, updateUserRequest).subscribe({\n error: (e: any) => {\n this.#notificationService.error(\n this.#translateService.instant(\n `yuv.app.user-management.users.action.${action}.error`,\n { username: selected.username }\n )\n );\n this.#logger.error(`Failed to ${action} user with id ${selected.id}`, e);\n this.busy.set(false);\n },\n complete: () => {\n this.#notificationService.success(\n this.#translateService.instant(\n `yuv.app.user-management.users.action.${action}.success`,\n { username: selected.username }\n )\n );\n this.busy.set(false);\n this.refresh();\n },\n });\n };\n\n if (!enabled) {\n this.#confirmService\n .confirm({\n title: this.#translateService.instant(\n 'yuv.app.user-management.users.action.deactivate.label'\n ),\n message: this.#translateService.instant(\n 'yuv.app.user-management.users.action.deactivate.confirm.message',\n { username: selected.username }\n ),\n })\n .subscribe({\n next: (confirmed: boolean) => {\n if (confirmed) {\n performUpdate();\n }\n }\n });\n } else {\n performUpdate();\n }\n }\n\n deleteSelectedUser() {\n const selected = this.selection().hasValue() ? this.selection().selected[0] : undefined;\n if (selected) {\n this.#logger.debug(`Delete selected user with id '${selected.id}'...`);\n\n this.#userManagementService.deleteUser(selected).subscribe({\n next: (result: boolean) => {\n if (result) {\n this.#notificationService.success(\n this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.success',\n { username: selected.username }\n )\n );\n this.deselect()\n this.refresh();\n }\n },\n error: (e: any) => {\n this.#logger.error(`Failed to delete user with id '${selected.id}'`, e);\n this.#notificationService.error(\n this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.error',\n { username: selected.username }\n )\n );\n }\n });\n }\n }\n\n select(row) {\n if (this.selection().isSelected(row)) {\n this.deselect();\n } else {\n this.selection().select(row);\n this.#updateActions(row);\n }\n }\n\n deselect() {\n this.selection().clear();\n this.#updateActions(undefined);\n }\n\n isSelected(row: UserObject): boolean {\n return this.selection().selected?.some(item => item.id === row.id);\n }\n\n refresh() {\n this.#loadUserList(this.pagination?.page || 0);\n }\n\n refreshUserDetails() {\n if (this.userDetailsComponent) {\n this.userDetailsComponent.refresh();\n }\n }\n\n getPageSize(): number {\n return YuvUserManagementService.DEFAULT_PAGE_SIZE;\n }\n\n onChangePage($event: PageEvent) {\n const { pageIndex } = $event;\n this.#loadUserList(pageIndex);\n }\n\n onQueryChange(q: SearchQuery) {\n this.#query.term = q.term || '';\n this.#loadUserList(0);\n }\n\n ngOnInit() {\n this.#loadUserList(0);\n }\n\n #loadUserList(page: number) {\n this.busy.set(true);\n\n this.#userManagementService.fetchUsers(page, this.#query.term).subscribe(\n {\n next: (response: UsersSearchResponse) => {\n console.log(`fetched users: ${response}`);\n\n this.dataSource.set(response.objects);\n\n this.pagination = (response.totalNumItems > YuvUserManagementService.DEFAULT_PAGE_SIZE)\n ? {\n total: response.totalNumItems,\n pages: Math.ceil(response.totalNumItems / YuvUserManagementService.DEFAULT_PAGE_SIZE),\n page: page\n } : undefined;\n },\n error: (e: any) => {\n this.#logger.error('Failed to fetch users', e);\n this.busy.set(false);\n },\n complete: () => {\n const selected = this.selection().hasValue() ? this.selection().selected[0] : undefined;\n if (selected) {\n if (this.dataSource().some(u => u.id === selected.id)) {\n const updatedSelected = this.dataSource().find(u => u.id === selected.id);\n this.select(updatedSelected);\n } else {\n this.#userManagementService.getUserDetails(selected.id).subscribe({\n next: (user) => {\n this.select(user);\n },\n error: (e) => {\n this.#logger.error(`Failed to fetch data for selected user with id '${selected.id}'. Deselecting user...`, e);\n this.deselect();\n }\n });\n }\n this.refreshUserDetails();\n } else {\n this.deselect();\n }\n this.busy.set(false);\n },\n });\n }\n}","<ng-template yuvAppHeaderSlot=\"actions\">\n <button ymtButton=\"primary\" (click)=\"createNewUser()\" [matTooltip]=\"'yuv.app.user-management.users.action.create.description' | translate\">\n <mat-icon>{{icons.actionCreateNewUser}}</mat-icon>{{'yuv.app.user-management.users.action.create.label' | translate }}\n </button>\n</ng-template>\n\n<ng-template yuvAppHeaderSlot=\"search\">\n <yuv-simple-search (queryChange)=\"onQueryChange($event)\"></yuv-simple-search>\n</ng-template>\n\n<ymt-master-details-layout [yuvBusyOverlay]=\"busy()\"\n [gutterSize]=\"16\"\n [options]=\"layoutOptions\"\n [layoutSettingsID]=\"layoutSettingsID\">\n <ng-template ymtLayoutPane role=\"master\" [topBarActions]=\"masterPaneActions\">\n <ng-container *ngTemplateOutlet=\"masterPaneContent\"></ng-container>\n </ng-template>\n <ng-template ymtLayoutPane role=\"details\">\n <ng-container *ngTemplateOutlet=\"detailsPaneContent\"></ng-container>\n </ng-template>\n</ymt-master-details-layout>\n\n<ng-template #masterPaneActions>\n @if (pagination) {\n <mat-paginator class=\"paginator\" [length]=\"pagination.total\" [pageSize]=\"getPageSize()\" aria-label=\"Select page\" (page)=\"onChangePage($event)\" hidePageSize></mat-paginator>\n }\n <button ymt-icon-button (click)=\"refresh()\" [matTooltip]=\"'yuv.app.user-management.users.navigation.refresh.tooltip' | translate\"><mat-icon>{{icons.refresh}}</mat-icon></button>\n</ng-template>\n\n<ng-template #listActions>\n <yuv-overflow-menu [menuItems]=\"actions\"></yuv-overflow-menu>\n</ng-template>\n\n<ng-template #masterPaneContent>\n <ymt-pane-body>\n <mat-table [dataSource]=\"dataSource()\" class=\"user-table mat-elevation-z8\" row>\n <ng-container matColumnDef=\"state\">\n <mat-header-cell *matHeaderCellDef />\n <mat-cell *matCellDef=\"let element\"><mat-icon>{{ element.enabled ? icons.stateActive : icons.stateInactive\n }}</mat-icon></mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"name\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.username' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.username}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"firstName\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.firstname' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.firstName}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"lastName\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.lastname' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.lastName}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"email\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.email' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.email}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"id\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.id' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.id}} </mat-cell>\n </ng-container>\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row \n *matRowDef=\"let row; columns: displayedColumns;\" \n (click.single)=\"select(row)\" \n [class.selected-row]=\"this.isSelected(row)\" class=\"user-row\">\n </mat-row>\n </mat-table>\n </ymt-pane-body>\n</ng-template>\n\n<ng-template #detailsPaneContent>\n <ymt-pane-header [icon]=\"'person'\" [title]=\"'yuv.app.user-management.users.details.title' | translate\" [subtitle]=\"selection().selected.at(0)?.id || ('yuv.app.user-management.users.details.empty' | translate)\" [actions]=\"listActions\"></ymt-pane-header>\n <ymt-pane-body>\n <ymusrmgmt-user-details #userDetails [userId]=\"selection().selected.at(0)?.id\" />\n </ymt-pane-body>\n</ng-template>","import { Route } from '@angular/router';\nimport { YuvUserManagementComponent } from './container/user-management.component';\nimport { YuvUsersPageComponent } from './pages/users/users.component';\n\nexport const YuvUserManagementRoutes: Route[] = [\n {\n path: '',\n component: YuvUserManagementComponent,\n children: [\n { path: 'users', component: YuvUsersPageComponent },\n { path: '', redirectTo: 'users', pathMatch: 'full' }\n ]\n }\n];","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["components","modules","i1","i2","i3","i4","i1.YuvUserManagementService","i7","i8","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,MAAM,GAAG,+BAA+B;AAwB9C,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,WAAW,EAAE,gBAAgB;AAC7B,IAAA,aAAa,EAAE,oBAAoB;AACnC,IAAA,mBAAmB,EAAE,YAAY;AACjC,IAAA,cAAc,EAAE,aAAa;AAC7B,IAAA,kBAAkB,EAAE,cAAc;AAClC,IAAA,oBAAoB,EAAE,YAAY;AAClC,IAAA,gBAAgB,EAAE,QAAQ;CAC3B;;MCbY,0BAA0B,CAAA;AAErC,IAAA,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC;AAC7B,IAAA,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC;AAC7B,IAAA,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IAE5C,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;AACjC,IAAA,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,KAAe;AACpC,IAAA,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,QAAQ;IAE7B,QAAQ,GAAA;;QAEN,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM;cAChD,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;AAC7C,cAAE,IAAI,CAAC,OAAO;A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ACrC,QAAA,QAAQ,EAAE;AACR,YAAA,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE;YACnD,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM;AACnD;AACF;;;ACZH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"yuuvis-user-management-app.mjs","sources":["../../../../../projects/yuuvis/user-management-app/src/lib/user-management.schema.ts","../../../../../projects/yuuvis/user-management-app/src/lib/container/user-management.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/container/user-management.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/user-management.service.ts","../../../../../projects/yuuvis/user-management-app/src/lib/components/user-details/user-details.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/components/user-details/user-details.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/overlays/create-user/create-user.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/overlays/create-user/create-user.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/components/edit-user-roles/edit-user-roles.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/components/edit-user-roles/edit-user-roles.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/overlays/edit-user/edit-user.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/overlays/edit-user/edit-user.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/pages/users/users.component.ts","../../../../../projects/yuuvis/user-management-app/src/lib/pages/users/users.component.html","../../../../../projects/yuuvis/user-management-app/src/lib/lib.routes.ts","../../../../../projects/yuuvis/user-management-app/src/yuuvis-user-management-app.ts"],"sourcesContent":["export const APP_ID = 'io.yuuvis.app.user-management';\n\nexport interface UserObject {\n id: string,\n username: string;\n firstName: string;\n lastName: string;\n email: string;\n enabled: boolean;\n}\n\nexport interface UserDetailsObject extends UserObject {\n groups: string[];\n roles: string[];\n effectiveRoles: string[];\n}\n\nexport interface UsersSearchResponse {\n hasMoreItems: boolean;\n numItems: number;\n totalNumItems: number;\n objects: UserObject[];\n}\n\nexport const APP_ICONS = {\n refresh: 'refresh',\n stateActive: 'account_circle',\n stateInactive: 'account_circle_off',\n actionCreateNewUser: 'person_add',\n actionEditUser: 'person_edit',\n actionActivateUser: 'person_check',\n actionDeactivateUser: 'person_off',\n actionDeleteUser: 'delete',\n};","import { CommonModule } from '@angular/common';\nimport { Component, inject, OnInit } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { TranslateModule, TranslateService } from '@yuuvis/client-core';\nimport { Title } from '@angular/platform-browser';\n\nimport { APP_ID } from '../user-management.schema';\nimport { ShellService } from '@yuuvis/client-shell-core';\n\n@Component({\n selector: 'ymusrmgmt-root',\n standalone: true,\n imports: [\n CommonModule,\n RouterModule,\n TranslateModule,\n ],\n templateUrl: './user-management.component.html',\n styleUrl: './user-management.component.scss',\n})\nexport class YuvUserManagementComponent implements OnInit {\n \n #shell = inject(ShellService);\n #titleService = inject(Title);\n #translateService = inject(TranslateService);\n \n #app = this.#shell.getApp(APP_ID);\n appName = this.#app?.title as string;\n appIcon = this.#app?.iconName;\n\n ngOnInit() {\n // Browser-Tab-Titel lokalisiert setzen\n const translatedTitle = this.appName.startsWith('yuv.') \n ? this.#translateService.instant(this.appName) \n : this.appName\n this.#titleService.setTitle(translatedTitle);\n }\n}\n","<section class=\"usrmgmt-main__content\" [attr.aria-label]=\"'yuv.app.user-management.content.aria.label' | translate\">\n <router-outlet></router-outlet>\n</section>\n\n<router-outlet name=\"modal\"></router-outlet>\n","import { inject, Injectable } from '@angular/core';\nimport { ApiBase, BackendService, TranslateService } from '@yuuvis/client-core';\nimport { UserDetailsObject, UserObject, UsersSearchResponse } from './user-management.schema';\nimport { HttpParams } from '@angular/common/http';\nimport { forkJoin, map, Observable, of, switchMap } from 'rxjs';\nimport { UserRequest } from './user-request';\nimport { ConfirmService } from '@yuuvis/client-framework/common';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class YuvUserManagementService {\n\n static DEFAULT_PAGE_SIZE = 15;\n\n readonly #backendService = inject(BackendService);\n readonly #translateService = inject(TranslateService);\n readonly #confirmService = inject(ConfirmService);\n\n fetchUsers(page = 0, search?: string): Observable<UsersSearchResponse> {\n const filterParams = new HttpParams()\n .set('page', page)\n .set('size', YuvUserManagementService.DEFAULT_PAGE_SIZE)\n .set('sort', 'username%2Casc')\n .set('search', search || '');\n\n return this.#backendService\n .get(`/tenant-management/api/idm/users?${filterParams}`, ApiBase.none);\n }\n\n fetchAllRoles(): Observable<string[]> {\n return this.#backendService\n .get(`/tenant-management/api/idm/roles`, ApiBase.none)\n .pipe(\n map((roles: { name: string, description: string }[]) => roles.map(role => role.name))\n );\n }\n\n createUser(createUserRequest: UserRequest, withInvitation?: boolean): Observable<string> {\n const createParams = new HttpParams()\n .set('withInvitation', withInvitation || false)\n .set('temporaryPassword', true);\n\n return this.#backendService\n .post(`/tenant-management/api/idm/users?${createParams}`, createUserRequest, ApiBase.none, { responseType: 'text' })\n .pipe(\n map((createdUserId: string) => createdUserId)\n );\n }\n\n editUser(userId: string, updateUserRequest: UserRequest): Observable<void> {\n return this.#backendService\n .put(`/tenant-management/api/idm/users/${userId}`, updateUserRequest, ApiBase.none);\n }\n\n deleteUser(user: UserObject): Observable<boolean> {\n return this.#confirmService\n .confirm({\n title: this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.label'\n ),\n message: this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.confirm.message',\n { username: user.username }\n ),\n })\n .pipe(\n switchMap((confirmed: boolean) => {\n if (confirmed) {\n return this.#backendService\n .delete(`/tenant-management/api/idm/users/${user.id}`, ApiBase.none)\n .pipe(\n map(() => true)\n );\n } else return of(false);\n })\n );\n }\n\n getUserDetails(id: string): Observable<UserDetailsObject> {\n const queryParams = new HttpParams()\n .set('briefRepresentation', false)\n\n const combined$: Observable<UserDetailsObject> = forkJoin({\n userDetails: this.#backendService\n .get(`/tenant-management/api/idm/users/${id}?${queryParams}`, ApiBase.none)\n .pipe(\n map(user => {\n const { roles: effectiveRoles, ...rest } = user;\n return { effectiveRoles, ...rest };\n })\n ),\n userRoles: this.#backendService\n .get(`/tenant-management/api/idm/users/${id}/roles`, ApiBase.none)\n }).pipe(\n map((response): UserDetailsObject => ({\n ...response.userDetails,\n roles: response.userRoles\n })));\n\n return combined$;\n }\n}","import { Component, Input, signal } from '@angular/core';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { FormBuilder, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { TranslateModule } from '@yuuvis/client-core';\nimport { UserDetailsObject } from '../../user-management.schema';\nimport { YuvUserManagementService } from '../../user-management.service';\n\n\n@Component({\n selector: 'ymusrmgmt-user-details',\n imports: [\n MatChipsModule,\n MatFormFieldModule,\n MatInputModule,\n MatIconModule,\n MatCheckboxModule,\n MatSlideToggleModule,\n ReactiveFormsModule,\n TranslateModule\n ],\n templateUrl: './user-details.component.html',\n styleUrl: './user-details.component.scss'\n})\nexport class UserDetailsComponent {\n\n userDetails = signal<UserDetailsObject | undefined>(undefined);\n userDetailsForm: FormGroup;\n\n private currentUserId: string | undefined;\n\n @Input() set userId(value: string | undefined) {\n this.currentUserId = value;\n this.loadUserDetails();\n }\n\n private loadUserDetails() {\n if (this.currentUserId) {\n this.userService.getUserDetails(this.currentUserId).subscribe(user => {\n this.userDetails.set(user);\n this.userDetailsForm.patchValue({\n id: user.id,\n username: user.username,\n firstName: user.firstName,\n lastName: user.lastName,\n email: user.email,\n enabled: user.enabled\n });\n });\n } else {\n this.userDetails.set(undefined);\n }\n }\n\n /**\n * Refresh the user details by reloading the data from the server\n */\n refresh(): void {\n this.loadUserDetails();\n }\n\n constructor(private userService: YuvUserManagementService, private formBuilder: FormBuilder) {\n this.userDetailsForm = this.formBuilder.group({\n id: [{ value: '' }],\n username: [{ value: '' }],\n firstName: [{ value: '' }],\n lastName: [{ value: '' }],\n email: [{ value: '' }],\n enabled: [{ value: false, disabled: true }]\n });\n }\n}\n","@let currentUserDetails = userDetails();\n@if (currentUserDetails) {\n <form [formGroup]=\"userDetailsForm\" class=\"user-details-form\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{('yuv.app.user-management.users.object.property.id' | translate)}}</mat-label>\n <input matInput formControlName=\"id\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.username' | translate)}}</mat-label>\n <input matInput formControlName=\"username\" readonly>\n <mat-icon matPrefix>account_box</mat-icon>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.email' | translate)}}</mat-label>\n <input matInput formControlName=\"email\" readonly>\n <mat-icon matPrefix>email</mat-icon>\n </mat-form-field> \n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.firstname' | translate)}}</mat-label>\n <input matInput formControlName=\"firstName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.lastname' | translate)}}</mat-label>\n <input matInput formControlName=\"lastName\" readonly>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.groups' | translate)}}</mat-label>\n <mat-chip-grid #groupChipGrid>\n @if (currentUserDetails.groups) {\n @for (group of currentUserDetails.groups.sort(); track group) {\n <mat-chip-row [editable]=\"false\"><div class=\"chip\">{{group}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"groupChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{('yuv.app.user-management.users.object.property.roles' | translate)}}</mat-label>\n <mat-chip-grid #roleChipGrid>\n @if (currentUserDetails.effectiveRoles) {\n @for (role of currentUserDetails.effectiveRoles; track role) {\n <mat-chip-row [editable]=\"false\" [disabled]=\"currentUserDetails.roles.indexOf(role) === -1\"><div class=\"chip\">{{role}}</div></mat-chip-row>\n }\n }\n <input [matChipInputFor]=\"roleChipGrid\" readonly/>\n </mat-chip-grid>\n </mat-form-field>\n <mat-slide-toggle formControlName=\"enabled\">\n {{ userDetailsForm.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) :\n ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle> \n </form>\n}","import { CommonModule } from '@angular/common';\nimport { Component, inject, linkedSignal, signal } from '@angular/core';\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n ReactiveFormsModule,\n Validators\n} from '@angular/forms';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { Logger, TranslateModule, TranslateService } from '@yuuvis/client-core';\nimport { YmtButtonDirective } from '@yuuvis/material';\nimport { BusyOverlayDirective, DialogComponent } from '@yuuvis/client-framework/common';\n\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { YuvUserManagementService } from '../../user-management.service';\nimport { UserObject } from '../../user-management.schema';\nimport { UserRequest } from '../../user-request';\nimport { MatInputModule } from '@angular/material/input';\n\nconst components = [BusyOverlayDirective, YmtButtonDirective, DialogComponent];\n\nconst modules = [\n CommonModule,\n ReactiveFormsModule,\n TranslateModule,\n MatFormFieldModule,\n MatSlideToggleModule,\n MatInputModule\n];\n\n@Component({\n selector: 'ymusrmgmt-create-user',\n templateUrl: './create-user.component.html',\n styleUrl: './create-user.component.scss',\n standalone: true,\n imports: [...modules, ...components],\n host: {\n '[class.busy]': '!busy()',\n },\n})\nexport class CreateUserComponent {\n readonly #fb = inject(FormBuilder);\n readonly #userManagementService = inject(YuvUserManagementService);\n readonly #dialogRef = inject(MatDialogRef<CreateUserComponent, UserObject>);\n readonly #translateService = inject(TranslateService);\n readonly #logger = inject(Logger);\n\n busy = signal<boolean>(false);\n\n error = signal<string | undefined>(undefined);\n\n username = new FormControl('', [Validators.required, Validators.minLength(3), Validators.maxLength(255), Validators.pattern('^[a-zA-Z0-9._-]*$')]);\n email = new FormControl('', [Validators.required, Validators.email]);\n firstname = new FormControl('', [Validators.minLength(1), Validators.maxLength(255), Validators.pattern(\"^[^#!<>&/%=;*§$()[\\\\]{}]*$\")]);\n lastname = new FormControl('', [Validators.minLength(1), Validators.maxLength(255), Validators.pattern(\"^[^#!<>&/%=;*§$()[\\\\]{}]*$\")]);\n enabled = new FormControl(true, []);\n\n form: FormGroup = this.#fb.group({\n username: this.username,\n email: this.email,\n firstname: this.firstname,\n lastname: this.lastname,\n enabled: this.enabled\n });\n\n changedInput = signal<any | undefined>(undefined);\n \n disabledSubmit = linkedSignal({\n source: this.changedInput,\n computation: () => {\n return this.busy() || this.form.invalid;\n }\n });\n\n createUser() {\n let createdUserId: string;\n const createParams = this.form.value;\n\n this.busy.set(true);\n this.error.set(undefined);\n\n const createUserRequest: UserRequest = {\n username: createParams.username,\n email: createParams.email,\n firstName: createParams.firstname ? createParams.firstname : null,\n lastName: createParams.lastname ? createParams.lastname : null,\n enabled: createParams.enabled,\n roles: []\n };\n\n this.#userManagementService\n .createUser(createUserRequest, true)\n .subscribe({\n error: (e: any) => {\n switch (e.status) {\n case 409: { \n const errorMsg = JSON.parse(e.error).message;\n if (errorMsg === \"User exists with same username\") {\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.usernameExists\"));\n } else if (errorMsg === \"User exists with same email\") {\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.emailExists\"));\n } else {\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.unknown\"));\n }\n break;\n }\n default:\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.unknown\"));\n }\n this.#logger.error(`Failed to create user with username ${createUserRequest.username}`, e);\n this.busy.set(false);\n },\n next: (userId : string) => {\n createdUserId = userId;\n },\n complete: () => {\n this.busy.set(false);\n this.#dialogRef.close(createdUserId);\n },\n });\n }\n\n close() {\n this.#dialogRef.close();\n }\n\n ngAfterViewInit() {\n this.form.valueChanges.subscribe((value) => {\n this.changedInput.set(value);\n });\n }\n}\n","<yuv-dialog [yuvBusyOverlay]=\"busy()\" [headertitel]=\"'yuv.app.user-management.users.action.create.label' | translate\">\n <main class=\"yuv-dialog-content\">\n <form [formGroup]=\"form\">\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.username\" | translate }}</mat-label>\n <input matInput [formControl]=\"username\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.email\" | translate}}</mat-label>\n <input matInput [formControl]=\"email\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.firstname\" | translate}}</mat-label>\n <input matInput [formControl]=\"firstname\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.lastname\" | translate}}</mat-label>\n <input matInput [formControl]=\"lastname\" type=\"text\"/>\n </mat-form-field>\n <div class=\"yuv-form-field\" id=\"enabledPropDiv\">\n <mat-slide-toggle formControlName=\"enabled\">\n {{ form.get('enabled')?.value ? ('yuv.app.user-management.users.object.property.enabled' | translate) : ('yuv.app.user-management.users.object.property.disabled' | translate) }}\n </mat-slide-toggle>\n </div>\n @if (error()) {\n <p class=\"error\">{{ error() }}</p>\n }\n </form>\n </main>\n <footer>\n <button ymtButton=\"secondary\" [disabled]=\"busy()\" (click)=\"close()\">\n {{ \"yuv.app.user-management.users.action.button.cancel\" | translate }}\n </button>\n <button ymtButton=\"primary\" [disabled]=\"disabledSubmit()\" (click)=\"createUser()\">\n {{ 'yuv.app.user-management.users.action.button.create' | translate }}\n </button>\n </footer>\n</yuv-dialog>\n","import { Component, input, output, signal, computed, effect } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatListModule } from '@angular/material/list';\nimport { TranslateModule } from '@yuuvis/client-core';\n\n@Component({\n selector: 'ymusrmgmt-edit-user-roles',\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatListModule,\n TranslateModule,\n ],\n standalone: true,\n templateUrl: './edit-user-roles.component.html',\n styleUrl: './edit-user-roles.component.css',\n})\nexport class EditUserRolesComponent {\n allRoles = input.required<string[]>();\n assignedRoles = input.required<string[]>();\n rolesChange = output<string[]>();\n availableRoles = signal<string[]>([]);\n userRoles = signal<string[]>([]);\n selectedAvailable = signal<string[]>([]);\n selectedAssigned = signal<string[]>([]);\n canAssign = computed(() => this.selectedAvailable().length > 0);\n canRemove = computed(() => this.selectedAssigned().length > 0);\n\n constructor() {\n // Initialize internal state when inputs change\n effect(() => {\n const all = this.allRoles();\n const assigned = this.assignedRoles();\n\n this.userRoles.set([...assigned]);\n this.availableRoles.set(all.filter((role) => !assigned.includes(role)));\n this.selectedAvailable.set([]);\n this.selectedAssigned.set([]);\n });\n }\n\n toggleAvailableRole(role: string) {\n const current = this.selectedAvailable();\n if (current.includes(role)) {\n this.selectedAvailable.set(current.filter((r) => r !== role));\n } else {\n this.selectedAvailable.set([...current, role]);\n }\n }\n\n toggleAssignedRole(role: string) {\n const current = this.selectedAssigned();\n if (current.includes(role)) {\n this.selectedAssigned.set(current.filter((r) => r !== role));\n } else {\n this.selectedAssigned.set([...current, role]);\n }\n }\n\n assignRoles() {\n const toAssign = this.selectedAvailable();\n if (toAssign.length === 0) return;\n\n this.availableRoles.update((roles) =>\n roles.filter((r) => !toAssign.includes(r))\n );\n this.userRoles.update((roles) => [...roles, ...toAssign].sort());\n this.selectedAvailable.set([]);\n\n this.rolesChange.emit(this.userRoles());\n }\n\n removeRoles() {\n const toRemove = this.selectedAssigned();\n if (toRemove.length === 0) return;\n\n this.userRoles.update((roles) =>\n roles.filter((r) => !toRemove.includes(r))\n );\n this.availableRoles.update((roles) => [...roles, ...toRemove].sort());\n this.selectedAssigned.set([]);\n\n this.rolesChange.emit(this.userRoles());\n }\n\n assignAllRoles() {\n const allAvailable = this.availableRoles();\n if (allAvailable.length === 0) return;\n\n this.userRoles.update((roles) => [...roles, ...allAvailable].sort());\n this.availableRoles.set([]);\n this.selectedAvailable.set([]);\n\n this.rolesChange.emit(this.userRoles());\n }\n\n removeAllRoles() {\n const allAssigned = this.userRoles();\n if (allAssigned.length === 0) return;\n\n this.availableRoles.update((roles) => [...roles, ...allAssigned].sort());\n this.userRoles.set([]);\n this.selectedAssigned.set([]);\n\n this.rolesChange.emit(this.userRoles());\n }\n\n isAvailableSelected(role: string): boolean {\n return this.selectedAvailable().includes(role);\n }\n\n isAssignedSelected(role: string): boolean {\n return this.selectedAssigned().includes(role);\n }\n}\n","<div class=\"role-selector\">\n <!-- Available Roles (Left) -->\n <div class=\"role-list-container\">\n <div class=\"role-list-header\">\n {{ 'yuv.app.user-management.users.roles.available' | translate }}\n </div>\n <mat-selection-list class=\"role-list\" #availableList hideSingleSelectionIndicator=\"true\">\n @for (role of availableRoles(); track role) {\n <mat-list-option \n [value]=\"role\" \n [selected]=\"isAvailableSelected(role)\"\n (click)=\"toggleAvailableRole(role)\">\n {{ role }}\n </mat-list-option>\n }\n @empty {\n <div class=\"empty-message\">\n {{ 'yuv.app.user-management.users.roles.noAvailable' | translate }}\n </div>\n }\n </mat-selection-list>\n </div>\n\n <!-- Control Buttons (Center) -->\n <div class=\"control-buttons\">\n <button \n mat-icon-button \n [disabled]=\"availableRoles().length === 0\"\n (click)=\"assignAllRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.assignAll' | translate\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"!canAssign()\"\n (click)=\"assignRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.assign' | translate\">\n <mat-icon>chevron_right</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"!canRemove()\"\n (click)=\"removeRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.remove' | translate\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n <button \n mat-icon-button \n [disabled]=\"userRoles().length === 0\"\n (click)=\"removeAllRoles()\"\n [title]=\"'yuv.app.user-management.users.roles.removeAll' | translate\">\n <mat-icon>keyboard_double_arrow_left</mat-icon>\n </button>\n </div>\n\n <!-- Assigned Roles (Right) -->\n <div class=\"role-list-container\">\n <div class=\"role-list-header\">\n {{ 'yuv.app.user-management.users.roles.assigned' | translate }}\n </div>\n <mat-selection-list class=\"role-list\" #assignedList hideSingleSelectionIndicator=\"true\">\n @for (role of userRoles(); track role) {\n <mat-list-option \n [value]=\"role\" \n [selected]=\"isAssignedSelected(role)\"\n (click)=\"toggleAssignedRole(role)\">\n {{ role }}\n </mat-list-option>\n }\n @empty {\n <div class=\"empty-message\">\n {{ 'yuv.app.user-management.users.roles.noAssigned' | translate }}\n </div>\n }\n </mat-selection-list>\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { AfterViewInit, Component, Inject, inject, linkedSignal, signal } from '@angular/core';\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n ReactiveFormsModule,\n Validators\n} from '@angular/forms';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { Logger, TranslateModule, TranslateService } from '@yuuvis/client-core';\nimport { YmtButtonDirective } from '@yuuvis/material';\nimport { BusyOverlayDirective, DialogComponent } from '@yuuvis/client-framework/common';\n\nimport { YuvUserManagementService } from '../../user-management.service';\nimport { UserObject } from '../../user-management.schema';\nimport { UserRequest } from '../../user-request';\nimport { MatInputModule } from '@angular/material/input';\nimport { MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { EditUserRolesComponent } from '../../components/edit-user-roles/edit-user-roles.component';\n\nconst components = [BusyOverlayDirective, YmtButtonDirective, DialogComponent, EditUserRolesComponent];\n\nconst modules = [\n CommonModule,\n ReactiveFormsModule,\n TranslateModule,\n MatFormFieldModule,\n MatInputModule,\n];\n\n@Component({\n selector: 'ymusrmgmt-edit-user',\n templateUrl: './edit-user.component.html',\n styleUrl: './edit-user.component.scss',\n standalone: true,\n imports: [...modules, ...components],\n host: {\n '[class.busy]': '!busy()',\n },\n})\nexport class EditUserComponent implements AfterViewInit {\n readonly #fb = inject(FormBuilder);\n readonly #userManagementService = inject(YuvUserManagementService);\n readonly #dialogRef = inject(MatDialogRef<EditUserComponent, UserObject>);\n readonly #translateService = inject(TranslateService);\n readonly #logger = inject(Logger);\n\n busy = signal<boolean>(false);\n\n error = signal<string | undefined>(undefined);\n\n allAvailableRoles = signal<string[]>([]);\n\n userRoles = signal<string[]>([]);\n\n username = new FormControl('');\n email = new FormControl('', [Validators.required, Validators.email]);\n firstName = new FormControl('', [Validators.minLength(1), Validators.maxLength(255), Validators.pattern(\"^[^#!<>&/%=;*§$()[\\\\]{}]*$\")]);\n lastName = new FormControl('', [Validators.minLength(1), Validators.maxLength(255), Validators.pattern(\"^[^#!<>&/%=;*§$()[\\\\]{}]*$\")]);\n roles = new FormControl<string[]>([]);\n\n form: FormGroup = this.#fb.group({\n username: this.username,\n email: this.email,\n firstName: this.firstName,\n lastName: this.lastName,\n roles: this.roles\n });\n\n changedInput = signal<any | undefined>(undefined);\n\n disabledSubmit = linkedSignal({\n source: this.changedInput,\n computation: () => {\n return this.busy() || this.form.invalid || !this.isDataChanged();\n }\n });\n\n constructor(@Inject(MAT_DIALOG_DATA) public data: any) {\n this.form.patchValue({\n username: this.data.user.username,\n firstName: this.data.user.firstName,\n lastName: this.data.user.lastName,\n email: this.data.user.email,\n roles: this.data.user.roles\n });\n\n // Initialize userRoles from the data\n this.userRoles.set(this.data.user.roles || []);\n\n // Fetch all available roles\n this.#userManagementService.fetchAllRoles().subscribe({\n next: (roles) => {\n this.allAvailableRoles.set(roles);\n },\n error: (e) => {\n this.#logger.error('Failed to fetch roles', e);\n }\n });\n }\n\n ngAfterViewInit() {\n this.form.valueChanges.subscribe((value) => {\n this.changedInput.set(value);\n });\n }\n\n isDataChanged(): boolean {\n const isDataUnchanged = Object.keys(this.form.value).every((key) => this.isEquals(key));\n return !isDataUnchanged;\n }\n\n isEquals(key: string) {\n const oldVal = this.data.user?.[key];\n const newVal = this.form.get(key)?.value;\n return oldVal === newVal;\n }\n\n onRolesChange(roles: string[]) {\n this.userRoles.set(roles);\n this.form.patchValue({ roles: roles });\n this.roles.markAsTouched(); // Mark as touched to trigger validation display\n }\n\n editUser() {\n const editParams = this.form.value;\n\n this.busy.set(true);\n this.error.set(undefined);\n\n const updateUserRequest: UserRequest = {\n email: editParams.email,\n firstName: editParams.firstName ? editParams.firstName : \"\",\n lastName: editParams.lastName ? editParams.lastName : \"\",\n roles: editParams.roles\n };\n\n this.#userManagementService\n .editUser(this.data.user.id, updateUserRequest)\n .subscribe({\n error: (e: any) => {\n switch (e.status) {\n case 409: {\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.create.error.emailExists\"));\n break;\n }\n default:\n this.error.set(this.#translateService.instant(\"yuv.app.user-management.users.action.edit.error.unknown\"));\n }\n this.#logger.error(`Failed to update user with id ${this.data.user.id}`, e);\n this.busy.set(false);\n },\n complete: () => {\n this.busy.set(false);\n this.#dialogRef.close(this.data.user.id);\n },\n });\n }\n\n close() {\n this.#dialogRef.close();\n }\n}\n","<yuv-dialog [yuvBusyOverlay]=\"busy()\" [headertitel]=\"'yuv.app.user-management.users.action.edit.label' | translate\">\n <main class=\"yuv-dialog-content\">\n <form [formGroup]=\"form\">\n <mat-form-field class=\"yuv-form-field readonly-field\">\n <mat-label class=\"readonly-label\">{{\"yuv.app.user-management.users.object.property.username\" | translate }}</mat-label>\n <input matInput [formControl]=\"username\" type=\"text\" [attr.tabindex]=\"-1\" readonly/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.email\" | translate}}</mat-label>\n <input matInput [formControl]=\"email\" type=\"text\" #emailField/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.firstname\" | translate}}</mat-label>\n <input matInput [formControl]=\"firstName\" type=\"text\"/>\n </mat-form-field>\n <mat-form-field class=\"yuv-form-field\">\n <mat-label>{{\"yuv.app.user-management.users.object.property.lastname\" | translate}}</mat-label>\n <input matInput [formControl]=\"lastName\" type=\"text\"/>\n </mat-form-field>\n \n <div class=\"roles-section\" [class.has-error]=\"roles.invalid && roles.touched\">\n <ymusrmgmt-edit-user-roles\n [allRoles]=\"allAvailableRoles()\"\n [assignedRoles]=\"userRoles()\"\n (rolesChange)=\"onRolesChange($event)\">\n </ymusrmgmt-edit-user-roles>\n </div>\n \n @if (error()) {\n <p class=\"error\">{{ error() }}</p>\n }\n </form>\n </main>\n <footer>\n <button ymtButton=\"secondary\" [disabled]=\"busy()\" (click)=\"close()\">\n {{ \"yuv.app.user-management.users.action.button.cancel\" | translate }}\n </button>\n <button ymtButton=\"primary\" [disabled]=\"disabledSubmit()\" (click)=\"editUser()\">\n {{ 'yuv.app.user-management.users.action.button.save' | translate }}\n </button>\n </footer>\n</yuv-dialog>\n","import { CommonModule } from '@angular/common';\nimport { Component, HostBinding, inject, OnInit, signal, ViewChild } from '@angular/core';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialog } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatPaginatorModule, PageEvent } from '@angular/material/paginator';\nimport { MatSortModule } from '@angular/material/sort';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport { RouterModule } from '@angular/router';\nimport { SelectionModel } from '@angular/cdk/collections'\n\nimport { Logger, NotificationService, SearchQuery, TranslateModule, TranslateService, UserService } from '@yuuvis/client-core';\nimport { BusyOverlayDirective, ClickDoubleDirective, ConfirmService } from '@yuuvis/client-framework/common';\nimport { SimpleSearchComponent } from '@yuuvis/client-framework/simple-search';\nimport { OverflowMenuItem, YuvOverflowMenuModule } from '@yuuvis/client-framework/overflow-menu';\nimport { Pagination } from '@yuuvis/client-framework/pagination';\n\nimport { YuvClientShellModule } from '@yuuvis/client-shell';\n\nimport { YmtButtonDirective, YmtIconButtonDirective } from '@yuuvis/material';\nimport { MasterDetailsPaneLayoutOptions, YmtLayoutModule } from '@yuuvis/material/layout';\nimport { YmtPanesModule } from '@yuuvis/material/panes';\n\nimport { APP_ICONS, APP_ID, UserObject, UsersSearchResponse } from '../../user-management.schema';\nimport { YuvUserManagementService } from '../../user-management.service';\nimport { UserDetailsComponent } from '../../components/user-details/user-details.component';\nimport { CreateUserComponent } from '../../overlays/create-user/create-user.component';\nimport { EditUserComponent } from '../../overlays/edit-user/edit-user.component';\n\nimport { UserRequest } from '../../user-request';\n\n@Component({\n selector: 'ymusrmgmt-users',\n standalone: true,\n imports: [\n CommonModule,\n MatButtonModule,\n MatIconModule,\n MatPaginatorModule,\n MatSortModule,\n MatTableModule,\n MatTabsModule,\n MatTooltipModule,\n RouterModule,\n TranslateModule,\n SimpleSearchComponent,\n BusyOverlayDirective,\n ClickDoubleDirective,\n UserDetailsComponent,\n YmtButtonDirective,\n YmtIconButtonDirective,\n YmtLayoutModule,\n YmtPanesModule,\n YuvClientShellModule,\n YuvOverflowMenuModule,\n],\n templateUrl: './users.component.html',\n styleUrl: './users.component.scss',\n host: {\n '[class.busy]': '!busy()',\n },\n})\nexport class YuvUsersPageComponent implements OnInit {\n\n readonly layoutSettingsID = APP_ID + '#root.layout.settings';\n\n readonly #logger = inject(Logger);\n readonly #userManagementService = inject(YuvUserManagementService);\n readonly #translateService = inject(TranslateService);\n readonly #dialog = inject(MatDialog);\n readonly #notificationService = inject(NotificationService);\n readonly #userService = inject(UserService)\n readonly #confirmService = inject(ConfirmService);\n\n @ViewChild(UserDetailsComponent) userDetailsComponent!: UserDetailsComponent;\n\n @HostBinding('class.pagination') pagination?: Pagination;\n\n busy = signal<boolean>(false);\n\n actions: OverflowMenuItem[] = [];\n\n displayedColumns: string[] = ['state', 'name', 'firstName', 'lastName', 'email', 'id'];\n\n icons = {\n ...APP_ICONS,\n };\n\n dataSource = signal<UserObject[]>([]);\n\n selection = signal(new SelectionModel<UserObject>(false, undefined));\n\n detailsActive = true;\n\n layoutOptions: MasterDetailsPaneLayoutOptions = {\n resizable: true,\n detailsSize: 25,\n detailsMinSize: 25,\n detailsMaxSize: 75\n };\n\n #query: SearchQuery = { term: '' }\n\n #updateActions(selectedUser: UserObject | undefined) {\n if (!selectedUser) {\n this.actions = [];\n this.detailsActive = false;\n return;\n }\n\n const currentUser = this.#userService.getCurrentUser();\n\n const editAction = {\n id: 'yuv.app.users.action.edit',\n icon: APP_ICONS.actionEditUser,\n label: this.#translateService.instant(\n 'yuv.app.user-management.users.action.edit.label'\n ),\n callback: () => this.editSelectedUser(),\n };\n const activateAction = {\n id: 'yuv.app.users.action.activate',\n icon: APP_ICONS.actionActivateUser,\n label: this.#translateService.instant(\n 'yuv.app.user-management.users.action.activate.label'\n ),\n disabled: selectedUser.id === currentUser.id || selectedUser.enabled,\n callback: () => this.activateSelectedUser(),\n };\n const deactivateAction = {\n id: 'yuv.app.users.action.deactivate',\n icon: APP_ICONS.actionDeactivateUser,\n label: this.#translateService.instant(\n 'yuv.app.user-management.users.action.deactivate.label'\n ),\n disabled: selectedUser.id === currentUser.id || !selectedUser.enabled,\n callback: () => this.deactivateSelectedUser(),\n };\n const deleteAction = {\n id: 'yuv.app.users.action.delete',\n icon: APP_ICONS.actionDeleteUser,\n label: this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.label'\n ),\n disabled: selectedUser.id === currentUser.id,\n callback: () => this.deleteSelectedUser(),\n };\n\n this.actions = [editAction, activateAction, deactivateAction, deleteAction];\n this.detailsActive = true;\n }\n\n createNewUser() {\n this.#logger.debug('Create new user ...');\n\n this.#dialog.open(CreateUserComponent, {\n width: '400px',\n maxWidth: '90vw',\n }).afterClosed().subscribe((createdUserId: string | undefined) => {\n if (createdUserId) {\n this.#logger.debug(\"New user created with ID: \" + createdUserId);\n this.#notificationService.success(\n this.#translateService.instant(\n 'yuv.app.user-management.users.action.create.success'\n )\n );\n\n this.refresh();\n }\n });\n }\n\n editSelectedUser() {\n const selected = this.selection().hasValue() ? this.selection().selected[0] : undefined;\n if (selected) {\n this.#logger.debug(`Edit selected user with id '${selected.id}'...`);\n\n this.#dialog.open(EditUserComponent, {\n width: '600px',\n maxWidth: '90vw',\n data: {\n user: this.userDetailsComponent.userDetails()\n },\n }).afterClosed().subscribe((editedUserId: string | undefined) => {\n if (editedUserId) {\n this.#logger.debug(\"User edited with ID: \" + editedUserId);\n this.#notificationService.success(\n this.#translateService.instant(\n 'yuv.app.user-management.users.action.edit.success',\n { username: selected.username }\n )\n );\n\n this.refresh();\n }\n });\n }\n }\n\n activateSelectedUser() {\n this.updateUserEnabledState(true);\n }\n\n deactivateSelectedUser() {\n this.updateUserEnabledState(false);\n }\n\n updateUserEnabledState(enabled: boolean) {\n const selected = this.selection().hasValue() ? this.selection().selected[0] : undefined;\n if (!selected) return;\n\n const action = enabled ? 'activate' : 'deactivate';\n const updateUserRequest: UserRequest = { enabled };\n\n const performUpdate = () => {\n this.busy.set(true);\n this.#userManagementService.editUser(selected.id, updateUserRequest).subscribe({\n error: (e: any) => {\n this.#notificationService.error(\n this.#translateService.instant(\n `yuv.app.user-management.users.action.${action}.error`,\n { username: selected.username }\n )\n );\n this.#logger.error(`Failed to ${action} user with id ${selected.id}`, e);\n this.busy.set(false);\n },\n complete: () => {\n this.#notificationService.success(\n this.#translateService.instant(\n `yuv.app.user-management.users.action.${action}.success`,\n { username: selected.username }\n )\n );\n this.busy.set(false);\n this.refresh();\n },\n });\n };\n\n if (!enabled) {\n this.#confirmService\n .confirm({\n title: this.#translateService.instant(\n 'yuv.app.user-management.users.action.deactivate.label'\n ),\n message: this.#translateService.instant(\n 'yuv.app.user-management.users.action.deactivate.confirm.message',\n { username: selected.username }\n ),\n })\n .subscribe({\n next: (confirmed: boolean) => {\n if (confirmed) {\n performUpdate();\n }\n }\n });\n } else {\n performUpdate();\n }\n }\n\n deleteSelectedUser() {\n const selected = this.selection().hasValue() ? this.selection().selected[0] : undefined;\n if (selected) {\n this.#logger.debug(`Delete selected user with id '${selected.id}'...`);\n\n this.#userManagementService.deleteUser(selected).subscribe({\n next: (result: boolean) => {\n if (result) {\n this.#notificationService.success(\n this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.success',\n { username: selected.username }\n )\n );\n this.deselect()\n this.refresh();\n }\n },\n error: (e: any) => {\n this.#logger.error(`Failed to delete user with id '${selected.id}'`, e);\n this.#notificationService.error(\n this.#translateService.instant(\n 'yuv.app.user-management.users.action.delete.error',\n { username: selected.username }\n )\n );\n }\n });\n }\n }\n\n select(row) {\n if (this.selection().isSelected(row)) {\n this.deselect();\n } else {\n this.selection().select(row);\n this.#updateActions(row);\n }\n }\n\n deselect() {\n this.selection().clear();\n this.#updateActions(undefined);\n }\n\n isSelected(row: UserObject): boolean {\n return this.selection().selected?.some(item => item.id === row.id);\n }\n\n refresh() {\n this.#loadUserList(this.pagination?.page || 0);\n }\n\n refreshUserDetails() {\n if (this.userDetailsComponent) {\n this.userDetailsComponent.refresh();\n }\n }\n\n getPageSize(): number {\n return YuvUserManagementService.DEFAULT_PAGE_SIZE;\n }\n\n onChangePage($event: PageEvent) {\n const { pageIndex } = $event;\n this.#loadUserList(pageIndex);\n }\n\n onQueryChange(q: SearchQuery) {\n this.#query.term = q.term || '';\n this.#loadUserList(0);\n }\n\n ngOnInit() {\n this.#loadUserList(0);\n }\n\n #loadUserList(page: number) {\n this.busy.set(true);\n\n this.#userManagementService.fetchUsers(page, this.#query.term).subscribe(\n {\n next: (response: UsersSearchResponse) => {\n console.log(`fetched users: ${response}`);\n\n this.dataSource.set(response.objects);\n\n this.pagination = (response.totalNumItems > YuvUserManagementService.DEFAULT_PAGE_SIZE)\n ? {\n total: response.totalNumItems,\n pages: Math.ceil(response.totalNumItems / YuvUserManagementService.DEFAULT_PAGE_SIZE),\n page: page\n } : undefined;\n },\n error: (e: any) => {\n this.#logger.error('Failed to fetch users', e);\n this.busy.set(false);\n },\n complete: () => {\n const selected = this.selection().hasValue() ? this.selection().selected[0] : undefined;\n if (selected && this.dataSource().some(u => u.id === selected.id)) {\n const updatedSelected = this.dataSource().find(u => u.id === selected.id);\n this.select(updatedSelected); \n } else {\n this.select(this.dataSource()[0])\n }\n this.busy.set(false);\n },\n });\n }\n}","<ng-template yuvAppHeaderSlot=\"actions\">\n <button ymtButton=\"primary\" (click)=\"createNewUser()\" [matTooltip]=\"'yuv.app.user-management.users.action.create.description' | translate\">\n <mat-icon>{{icons.actionCreateNewUser}}</mat-icon>{{'yuv.app.user-management.users.action.create.label' | translate }}\n </button>\n</ng-template>\n\n<ng-template yuvAppHeaderSlot=\"search\">\n <yuv-simple-search (queryChange)=\"onQueryChange($event)\"></yuv-simple-search>\n</ng-template>\n\n<ymt-master-details-layout [yuvBusyOverlay]=\"busy()\" [(detailsActive)]=\"detailsActive\" [options]=\"layoutOptions\" [layoutSettingsID]=\"layoutSettingsID\">\n <ng-template ymtLayoutPane role=\"master\" [topBarActions]=\"masterPaneActions\">\n <ymt-pane-body>\n <mat-table [dataSource]=\"dataSource()\" class=\"user-table mat-elevation-z8\" row>\n <ng-container matColumnDef=\"state\">\n <mat-header-cell *matHeaderCellDef />\n <mat-cell *matCellDef=\"let element\"><mat-icon>{{ element.enabled ? icons.stateActive : icons.stateInactive\n }}</mat-icon></mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"name\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.username' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.username}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"firstName\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.firstname' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.firstName}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"lastName\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.lastname' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.lastName}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"email\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.email' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.email}} </mat-cell>\n </ng-container>\n <ng-container matColumnDef=\"id\">\n <mat-header-cell *matHeaderCellDef>{{'yuv.app.user-management.users.object.property.id' | translate\n }}</mat-header-cell>\n <mat-cell *matCellDef=\"let element\"> {{element.id}} </mat-cell>\n </ng-container>\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row \n *matRowDef=\"let row; columns: displayedColumns;\" \n (click.single)=\"select(row)\" \n [class.selected-row]=\"this.isSelected(row)\" class=\"user-row\">\n </mat-row>\n </mat-table>\n </ymt-pane-body>\n </ng-template>\n <ng-template ymtLayoutPane role=\"details\">\n @let selectedUser = selection().selected.at(0);\n <ymt-pane-header [icon]=\"'person'\" [title]=\"'yuv.app.user-management.users.details.title' | translate\" [subtitle]=\"selectedUser?.id || ('yuv.app.user-management.users.details.empty' | translate)\" [actions]=\"listActions\"></ymt-pane-header>\n <ymt-pane-body>\n <ymusrmgmt-user-details [userId]=\"selectedUser?.id\" />\n </ymt-pane-body>\n </ng-template>\n</ymt-master-details-layout>\n\n<ng-template #masterPaneActions>\n @if (pagination) {\n <mat-paginator class=\"paginator\" [length]=\"pagination.total\" [pageSize]=\"getPageSize()\" aria-label=\"Select page\" (page)=\"onChangePage($event)\" hidePageSize></mat-paginator>\n }\n <button ymt-icon-button (click)=\"refresh()\" [matTooltip]=\"'yuv.app.user-management.users.navigation.refresh.tooltip' | translate\"><mat-icon>{{icons.refresh}}</mat-icon></button>\n</ng-template>\n\n<ng-template #listActions>\n <yuv-overflow-menu [menuItems]=\"actions\"></yuv-overflow-menu>\n</ng-template>","import { Route } from '@angular/router';\nimport { YuvUserManagementComponent } from './container/user-management.component';\nimport { YuvUsersPageComponent } from './pages/users/users.component';\n\nexport const YuvUserManagementRoutes: Route[] = [\n {\n path: '',\n component: YuvUserManagementComponent,\n children: [\n { path: 'users', component: YuvUsersPageComponent },\n { path: '', redirectTo: 'users', pathMatch: 'full' }\n ]\n }\n];","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.YuvUserManagementService","i2","i4","i8","components","modules","i3","i1","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,MAAM,GAAG,+BAA+B;AAwB9C,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,WAAW,EAAE,gBAAgB;AAC7B,IAAA,aAAa,EAAE,oBAAoB;AACnC,IAAA,mBAAmB,EAAE,YAAY;AACjC,IAAA,cAAc,EAAE,aAAa;AAC7B,IAAA,kBAAkB,EAAE,cAAc;AAClC,IAAA,oBAAoB,EAAE,YAAY;AAClC,IAAA,gBAAgB,EAAE,QAAQ;CAC3B;;MCbY,0BAA0B,CAAA;AAErC,IAAA,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC;AAC7B,IAAA,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC;AAC7B,IAAA,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IAE5C,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;AACjC,IAAA,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,KAAe;AACpC,IAAA,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,QAAQ;IAE7B,QAAQ,GAAA;;QAEN,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM;cAChD,IAAI,CAAC,iBAAiB,CAAC,OAAO,C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AAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,eAAe;wBACf,aAAa;wBACb,kBAAkB;wBAClB,aAAa;wBACb,cAAc;wBACd,aAAa;wBACb,gBAAgB;wBAChB,YAAY;wBACZ,eAAe;wBACf,qBAAqB;wBACrB,oBAAoB;wBACpB,oBAAoB;wBACpB,oBAAoB;wBACpB,kBAAkB;wBAClB,sBAAsB;wBACtB,eAAe;wBACf,cAAc;wBACd,oBAAoB;wBACpB,qBAAqB;qBACxB,EAGO,IAAA,EAAA;AACJ,wBAAA,cAAc,EAAE,SAAS;AAC1B,qBAAA,EAAA,QAAA,EAAA,o/HAAA,EAAA,MAAA,EAAA,CAAA,0XAAA,CAAA,EAAA;8BAcgC,oBAAoB,EAAA,CAAA;sBAApD,SAAS;uBAAC,oBAAoB;gBAEE,UAAU,EAAA,CAAA;sBAA1C,WAAW;uBAAC,kBAAkB;;;AE5EpB,MAAA,uBAAuB,GAAY;AAC9C,IAAA;AACE,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,0BAA0B;AACrC,QAAA,QAAQ,EAAE;AACR,YAAA,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE;YACnD,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM;AACnD;AACF;;;ACZH;;AAEG;;;;"}
|
package/lib/assets/i18n/en.json
CHANGED
|
@@ -3,47 +3,48 @@
|
|
|
3
3
|
"yuv.app.user-management.users.action.button.cancel": "Cancel",
|
|
4
4
|
"yuv.app.user-management.users.action.button.create": "Create",
|
|
5
5
|
"yuv.app.user-management.users.action.button.save": "Save",
|
|
6
|
-
"yuv.app.user-management.users.action.activate.error": "
|
|
6
|
+
"yuv.app.user-management.users.action.activate.error": "Unable to activate user '{{username}}'.",
|
|
7
7
|
"yuv.app.user-management.users.action.activate.label": "Activate user",
|
|
8
|
-
"yuv.app.user-management.users.action.activate.success": "User '{{username}}' was activated
|
|
9
|
-
"yuv.app.user-management.users.action.create.error.emailExists": "A user with this
|
|
10
|
-
"yuv.app.user-management.users.action.create.error.unknown": "
|
|
11
|
-
"yuv.app.user-management.users.action.create.error.usernameExists": "A user with this
|
|
8
|
+
"yuv.app.user-management.users.action.activate.success": "User '{{username}}' was successfully activated.",
|
|
9
|
+
"yuv.app.user-management.users.action.create.error.emailExists": "A user with this e-mail address already exists.",
|
|
10
|
+
"yuv.app.user-management.users.action.create.error.unknown": "Unable to create user due to an unknown error. Please try again later or change the values of your entry.",
|
|
11
|
+
"yuv.app.user-management.users.action.create.error.usernameExists": "A user with this user name already exists.",
|
|
12
12
|
"yuv.app.user-management.users.action.create.label": "Create new user",
|
|
13
13
|
"yuv.app.user-management.users.action.create.description": "Create new user",
|
|
14
|
-
"yuv.app.user-management.users.action.create.success": "The user was created
|
|
15
|
-
"yuv.app.user-management.users.action.deactivate.confirm.message": "Do you really want to deactivate
|
|
16
|
-
"yuv.app.user-management.users.action.deactivate.error": "
|
|
14
|
+
"yuv.app.user-management.users.action.create.success": "The user was successfully created.",
|
|
15
|
+
"yuv.app.user-management.users.action.deactivate.confirm.message": "Do you really want to deactivate user '{{username}}'?",
|
|
16
|
+
"yuv.app.user-management.users.action.deactivate.error": "Unable to deactivate user '{{username}}'.",
|
|
17
17
|
"yuv.app.user-management.users.action.deactivate.label": "Deactivate user",
|
|
18
|
-
"yuv.app.user-management.users.action.deactivate.success": "User '{{username}}' was deactivated
|
|
19
|
-
"yuv.app.user-management.users.action.delete.confirm.message": "Do you really want to delete
|
|
20
|
-
"yuv.app.user-management.users.action.delete.error": "
|
|
18
|
+
"yuv.app.user-management.users.action.deactivate.success": "User '{{username}}' was successfully deactivated.",
|
|
19
|
+
"yuv.app.user-management.users.action.delete.confirm.message": "Do you really want to delete user '{{username}}'?",
|
|
20
|
+
"yuv.app.user-management.users.action.delete.error": "Unable to delete user '{{username}}'.",
|
|
21
21
|
"yuv.app.user-management.users.action.delete.label": "Delete user",
|
|
22
|
-
"yuv.app.user-management.users.action.delete.success": "User '{{username}}' was deleted
|
|
23
|
-
"yuv.app.user-management.users.action.edit.error.unknown": "
|
|
22
|
+
"yuv.app.user-management.users.action.delete.success": "User '{{username}}' was successfully deleted.",
|
|
23
|
+
"yuv.app.user-management.users.action.edit.error.unknown": "Unable to edit user due to an unknown error. Please try again later or change the values of your entry.",
|
|
24
24
|
"yuv.app.user-management.users.action.edit.label": "Edit user",
|
|
25
|
-
"yuv.app.user-management.users.action.edit.success": "
|
|
25
|
+
"yuv.app.user-management.users.action.edit.success": "User '{{username}}' was successfully edited.",
|
|
26
26
|
"yuv.app.user-management.users.details.empty": "No user selected",
|
|
27
|
-
"yuv.app.user-management.users.details.title": "
|
|
27
|
+
"yuv.app.user-management.users.details.title": "Credentials",
|
|
28
|
+
"yuv.app.user-management.users.naviagtion.aria.label": "",
|
|
28
29
|
"yuv.app.user-management.users.navigation.refresh.tooltip": "Refresh",
|
|
29
|
-
"yuv.app.user-management.users.navigation.hidedetails.tooltip": "Hide
|
|
30
|
-
"yuv.app.user-management.users.navigation.showdetails.tooltip": "Show
|
|
31
|
-
"yuv.app.user-management.users.object.property.disabled": "
|
|
30
|
+
"yuv.app.user-management.users.navigation.hidedetails.tooltip": "Hide credentials",
|
|
31
|
+
"yuv.app.user-management.users.navigation.showdetails.tooltip": "Show credentials",
|
|
32
|
+
"yuv.app.user-management.users.object.property.disabled": "Deactivated",
|
|
32
33
|
"yuv.app.user-management.users.object.property.email": "E-mail",
|
|
33
|
-
"yuv.app.user-management.users.object.property.enabled": "
|
|
34
|
+
"yuv.app.user-management.users.object.property.enabled": "Activated",
|
|
34
35
|
"yuv.app.user-management.users.object.property.firstname": "First name",
|
|
35
36
|
"yuv.app.user-management.users.object.property.groups": "Groups",
|
|
36
37
|
"yuv.app.user-management.users.object.property.id": "ID",
|
|
37
38
|
"yuv.app.user-management.users.object.property.lastname": "Last name",
|
|
38
39
|
"yuv.app.user-management.users.object.property.roles": "Roles",
|
|
39
|
-
"yuv.app.user-management.users.object.property.roles.required": "
|
|
40
|
-
"yuv.app.user-management.users.object.property.username": "
|
|
41
|
-
"yuv.app.user-management.users.roles.available": "Available
|
|
42
|
-
"yuv.app.user-management.users.roles.assigned": "Assigned
|
|
40
|
+
"yuv.app.user-management.users.object.property.roles.required": "You need to assign at least one role.",
|
|
41
|
+
"yuv.app.user-management.users.object.property.username": "User name",
|
|
42
|
+
"yuv.app.user-management.users.roles.available": "Available roles",
|
|
43
|
+
"yuv.app.user-management.users.roles.assigned": "Assigned roles",
|
|
43
44
|
"yuv.app.user-management.users.roles.assign": "Assign selected roles",
|
|
44
45
|
"yuv.app.user-management.users.roles.assignAll": "Assign all roles",
|
|
45
46
|
"yuv.app.user-management.users.roles.remove": "Remove selected roles",
|
|
46
47
|
"yuv.app.user-management.users.roles.removeAll": "Remove all roles",
|
|
47
|
-
"yuv.app.user-management.users.roles.noAvailable": "All roles assigned",
|
|
48
|
-
"yuv.app.user-management.users.roles.noAssigned": "No roles assigned"
|
|
48
|
+
"yuv.app.user-management.users.roles.noAvailable": "All roles have been assigned",
|
|
49
|
+
"yuv.app.user-management.users.roles.noAssigned": "No roles have been assigned"
|
|
49
50
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { SearchQuery } from '@yuuvis/client-core';
|
|
3
2
|
import { PageEvent } from '@angular/material/paginator';
|
|
4
|
-
import {
|
|
3
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
4
|
+
import { SearchQuery } from '@yuuvis/client-core';
|
|
5
|
+
import { OverflowMenuItem } from '@yuuvis/client-framework/overflow-menu';
|
|
5
6
|
import { Pagination } from '@yuuvis/client-framework/pagination';
|
|
7
|
+
import { MasterDetailsPaneLayoutOptions } from '@yuuvis/material/layout';
|
|
6
8
|
import { UserObject } from '../../user-management.schema';
|
|
7
|
-
import { SelectionModel } from '@angular/cdk/collections';
|
|
8
9
|
import { UserDetailsComponent } from '../../components/user-details/user-details.component';
|
|
9
|
-
import { OverflowMenuItem } from '@yuuvis/client-framework/overflow-menu';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class YuvUsersPageComponent implements OnInit {
|
|
12
12
|
#private;
|
|
@@ -28,6 +28,7 @@ export declare class YuvUsersPageComponent implements OnInit {
|
|
|
28
28
|
};
|
|
29
29
|
dataSource: import("@angular/core").WritableSignal<UserObject[]>;
|
|
30
30
|
selection: import("@angular/core").WritableSignal<SelectionModel<UserObject>>;
|
|
31
|
+
detailsActive: boolean;
|
|
31
32
|
layoutOptions: MasterDetailsPaneLayoutOptions;
|
|
32
33
|
createNewUser(): void;
|
|
33
34
|
editSelectedUser(): void;
|
package/package.json
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
"@angular/forms": "^19.2.0",
|
|
8
8
|
"@angular/material": "19.2.19",
|
|
9
9
|
"@angular/router": "^19.2.0",
|
|
10
|
-
"@yuuvis/client-core": "^2.1
|
|
11
|
-
"@yuuvis/client-framework": "^2.
|
|
12
|
-
"@yuuvis/client-shell
|
|
10
|
+
"@yuuvis/client-core": "^2.10.1",
|
|
11
|
+
"@yuuvis/client-framework": "^2.10.0",
|
|
12
|
+
"@yuuvis/client-shell": "^2.10.0",
|
|
13
|
+
"@yuuvis/material": "^2.10.0"
|
|
13
14
|
},
|
|
14
15
|
"sideEffects": false,
|
|
15
16
|
"module": "fesm2022/yuuvis-user-management-app.mjs",
|
|
@@ -30,5 +31,5 @@
|
|
|
30
31
|
"dependencies": {
|
|
31
32
|
"tslib": "^2.3.0"
|
|
32
33
|
},
|
|
33
|
-
"version": "1.2.
|
|
34
|
+
"version": "1.2.1"
|
|
34
35
|
}
|