chore: Modulimporte aktualisiert, um CommonModule für ngClass und die richtigen Generic UI Grid-Module einzuschließen.
This commit is contained in:
parent
20d1fee79d
commit
f468f65192
@ -1,7 +1,10 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ColorModeService, GetLocalTheme, Theme } from 'src/app/services/color-mode.service';
|
import { ColorModeService, GetLocalTheme, Theme } from '../../../services/color-mode.service';
|
||||||
|
import { CommonModule } from '@angular/common'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
standalone: true,
|
||||||
|
imports: [CommonModule],
|
||||||
selector: 'app-color-mode-bttn',
|
selector: 'app-color-mode-bttn',
|
||||||
templateUrl: './color-mode-bttn.component.html',
|
templateUrl: './color-mode-bttn.component.html',
|
||||||
styleUrl: './color-mode-bttn.component.css'
|
styleUrl: './color-mode-bttn.component.css'
|
||||||
@ -17,10 +20,10 @@ export class ColorModeBttnComponent implements OnInit {
|
|||||||
|
|
||||||
readonly Themes = Theme;
|
readonly Themes = Theme;
|
||||||
|
|
||||||
theme : Theme;
|
theme: Theme;
|
||||||
onClick(theme: Theme) {
|
onClick(theme: Theme) {
|
||||||
this.theme = theme;
|
this.theme = theme;
|
||||||
let theTheme:Theme = theme;
|
let theTheme: Theme = theme;
|
||||||
this.cModeService.setTheme(theTheme);
|
this.cModeService.setTheme(theTheme);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -9,6 +9,7 @@ import { DirGroup } from '../../models/user-management.api.models';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [DirGroupTableComponent],
|
||||||
selector: 'app-group-dir-import',
|
selector: 'app-group-dir-import',
|
||||||
templateUrl: './group-dir-import.component.html',
|
templateUrl: './group-dir-import.component.html',
|
||||||
styleUrl: './group-dir-import.component.css'
|
styleUrl: './group-dir-import.component.css'
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { GroupTableComponent } from '../../components/tables/group-table/group-table.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [GroupTableComponent],
|
||||||
selector: 'app-group',
|
selector: 'app-group',
|
||||||
templateUrl: './group.component.html',
|
templateUrl: './group.component.html',
|
||||||
styleUrl: './group.component.css'
|
styleUrl: './group.component.css'
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { ModuleTableComponent } from '../../components/tables/module-table/module-table.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [ModuleTableComponent],
|
||||||
selector: 'app-module',
|
selector: 'app-module',
|
||||||
templateUrl: './module.component.html',
|
templateUrl: './module.component.html',
|
||||||
styleUrl: './module.component.css'
|
styleUrl: './module.component.css'
|
||||||
|
|||||||
@ -1,11 +1,14 @@
|
|||||||
import { AfterViewInit, Component, Inject, Input, OnDestroy, OnInit, ViewChild, input } from '@angular/core';
|
import { Component, Inject, Input, OnDestroy, OnInit, ViewChild, input } from '@angular/core';
|
||||||
import { ApiService } from '../../../services/user-management.api.service';
|
import { ApiService } from '../../../services/user-management.api.service';
|
||||||
import { GuiColumn, GuiColumnMenu, GuiSorting, GuiRowDetail, GuiPaging, GuiPagingDisplay, GuiSearching, GuiCellEdit, GuiInfoPanel, GuiTitlePanel, GuiRowSelection, GuiSelectedRow, GuiGridComponent, GuiGridApi, GuiTheme } from '@generic-ui/ngx-grid';
|
import { GuiGridModule, GuiColumn, GuiColumnMenu, GuiSorting, GuiRowDetail, GuiPaging, GuiPagingDisplay, GuiSearching, GuiCellEdit, GuiInfoPanel, GuiTitlePanel, GuiRowSelection, GuiSelectedRow, GuiGridComponent, GuiGridApi, GuiTheme } from '@generic-ui/ngx-grid';
|
||||||
import { Subscription } from 'rxjs/internal/Subscription';
|
import { Subscription } from 'rxjs/internal/Subscription';
|
||||||
import { ColorModeService, Theme } from '../../../services/color-mode.service';
|
import { ColorModeService, Theme } from '../../../services/color-mode.service';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [CommonModule, FormsModule, GuiGridModule ],
|
||||||
selector: 'app-base-table',
|
selector: 'app-base-table',
|
||||||
templateUrl: './base-table.component.html',
|
templateUrl: './base-table.component.html',
|
||||||
styleUrl: './base-table.component.css'
|
styleUrl: './base-table.component.css'
|
||||||
|
|||||||
@ -2,11 +2,14 @@ import { Component, Inject } from '@angular/core';
|
|||||||
import { BaseTableComponent } from '../base-table/base-table.component';
|
import { BaseTableComponent } from '../base-table/base-table.component';
|
||||||
import { DirGroupService } from '../../../services/dir-group.service';
|
import { DirGroupService } from '../../../services/dir-group.service';
|
||||||
import { DirGroup } from '../../../models/user-management.api.models';
|
import { DirGroup } from '../../../models/user-management.api.models';
|
||||||
import { GuiColumn } from '@generic-ui/ngx-grid';
|
import { GuiColumn, GuiGridModule } from '@generic-ui/ngx-grid';
|
||||||
import { ColorModeService } from '../../../services/color-mode.service';
|
import { ColorModeService } from '../../../services/color-mode.service';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [CommonModule, FormsModule, GuiGridModule ],
|
||||||
selector: 'app-dir-group-table',
|
selector: 'app-dir-group-table',
|
||||||
templateUrl: '../base-table/base-table.component.html',
|
templateUrl: '../base-table/base-table.component.html',
|
||||||
styleUrl: './dir-group-table.component.css'
|
styleUrl: './dir-group-table.component.css'
|
||||||
|
|||||||
@ -2,11 +2,14 @@ import { Component, Inject } from '@angular/core';
|
|||||||
import { DirUser } from '../../../models/user-management.api.models';
|
import { DirUser } from '../../../models/user-management.api.models';
|
||||||
import { DirUserService } from '../../../services/dir-user.service';
|
import { DirUserService } from '../../../services/dir-user.service';
|
||||||
import { BaseTableComponent } from '../base-table/base-table.component';
|
import { BaseTableComponent } from '../base-table/base-table.component';
|
||||||
import { GuiColumn } from '@generic-ui/ngx-grid/gui/grid/src/core/api/gui.grid.public-api';
|
import { GuiGridModule, GuiColumn } from '@generic-ui/ngx-grid';
|
||||||
import { ColorModeService } from '../../../services/color-mode.service';
|
import { ColorModeService } from '../../../services/color-mode.service';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [CommonModule, FormsModule, GuiGridModule],
|
||||||
selector: 'app-dir-user-table',
|
selector: 'app-dir-user-table',
|
||||||
templateUrl: '../base-table/base-table.component.html',
|
templateUrl: '../base-table/base-table.component.html',
|
||||||
styleUrl: './dir-user-table.component.css'
|
styleUrl: './dir-user-table.component.css'
|
||||||
@ -22,7 +25,7 @@ export class DirUserTableComponent extends BaseTableComponent<DirUser, DirUserSe
|
|||||||
this.source = response;
|
this.source = response;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
error: (error: any) => {}
|
error: (error: any) => { }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,12 +1,15 @@
|
|||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { GroupService } from '../../../services/group.service';
|
import { GroupService } from '../../../services/group.service';
|
||||||
import { Group } from '../../../models/user-management.api.models';
|
import { Group } from '../../../models/user-management.api.models';
|
||||||
import { GuiColumn } from '@generic-ui/ngx-grid';
|
import { GuiGridModule, GuiColumn } from '@generic-ui/ngx-grid';
|
||||||
import { BaseTableComponent } from '../base-table/base-table.component';
|
import { BaseTableComponent } from '../base-table/base-table.component';
|
||||||
import { ColorModeService } from '../../../services/color-mode.service';
|
import { ColorModeService } from '../../../services/color-mode.service';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [CommonModule, FormsModule, GuiGridModule],
|
||||||
selector: 'app-group-table',
|
selector: 'app-group-table',
|
||||||
templateUrl: '../base-table/base-table.component.html',
|
templateUrl: '../base-table/base-table.component.html',
|
||||||
styleUrl: './group-table.component.css'
|
styleUrl: './group-table.component.css'
|
||||||
|
|||||||
@ -1,12 +1,15 @@
|
|||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { Module } from '../../../models/user-management.api.models';
|
import { Module } from '../../../models/user-management.api.models';
|
||||||
import { GuiColumn } from '@generic-ui/ngx-grid';
|
import { GuiGridModule, GuiColumn } from '@generic-ui/ngx-grid';
|
||||||
import { BaseTableComponent } from '../base-table/base-table.component';
|
import { BaseTableComponent } from '../base-table/base-table.component';
|
||||||
import { ModuleService } from '../../../services/module.service'
|
import { ModuleService } from '../../../services/module.service'
|
||||||
import { ColorModeService } from '../../../services/color-mode.service';
|
import { ColorModeService } from '../../../services/color-mode.service';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [CommonModule, FormsModule, GuiGridModule],
|
||||||
selector: 'app-module-table',
|
selector: 'app-module-table',
|
||||||
templateUrl: '../base-table/base-table.component.html',
|
templateUrl: '../base-table/base-table.component.html',
|
||||||
styleUrl: './module-table.component.css'
|
styleUrl: './module-table.component.css'
|
||||||
|
|||||||
@ -2,11 +2,14 @@ import { Component, Inject } from '@angular/core';
|
|||||||
import { UserRep } from '../../../models/user-management.api.models';
|
import { UserRep } from '../../../models/user-management.api.models';
|
||||||
import { UserRepService } from '../../../services/user-representation.service';
|
import { UserRepService } from '../../../services/user-representation.service';
|
||||||
import { BaseTableComponent } from '../base-table/base-table.component';
|
import { BaseTableComponent } from '../base-table/base-table.component';
|
||||||
import { GuiColumn } from '@generic-ui/ngx-grid';
|
import { GuiGridModule, GuiColumn } from '@generic-ui/ngx-grid';
|
||||||
import { ColorModeService } from '../../../services/color-mode.service';
|
import { ColorModeService } from '../../../services/color-mode.service';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [CommonModule, FormsModule, GuiGridModule],
|
||||||
selector: 'app-user-rep-table',
|
selector: 'app-user-rep-table',
|
||||||
templateUrl: '../base-table/base-table.component.html',
|
templateUrl: '../base-table/base-table.component.html',
|
||||||
styleUrl: './user-rep-table.component.css'
|
styleUrl: './user-rep-table.component.css'
|
||||||
|
|||||||
@ -3,12 +3,15 @@ import { UserService } from '../../../services/user.service';
|
|||||||
import { ModuleOfUserService } from '../../../services/module-of-user.service';
|
import { ModuleOfUserService } from '../../../services/module-of-user.service';
|
||||||
import { GroupOfUserService } from '../../../services/group-of-user.service';
|
import { GroupOfUserService } from '../../../services/group-of-user.service';
|
||||||
import { User } from '../../../models/user-management.api.models';
|
import { User } from '../../../models/user-management.api.models';
|
||||||
import { GuiColumn } from '@generic-ui/ngx-grid';
|
import { GuiGridModule, GuiColumn } from '@generic-ui/ngx-grid';
|
||||||
import { BaseTableComponent } from '../base-table/base-table.component';
|
import { BaseTableComponent } from '../base-table/base-table.component';
|
||||||
import { ColorModeService } from '../../../services/color-mode.service'
|
import { ColorModeService } from '../../../services/color-mode.service'
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [CommonModule, FormsModule, GuiGridModule],
|
||||||
selector: 'app-user-table',
|
selector: 'app-user-table',
|
||||||
templateUrl: '../base-table/base-table.component.html',
|
templateUrl: '../base-table/base-table.component.html',
|
||||||
styleUrl: './user-table.component.css'
|
styleUrl: './user-table.component.css'
|
||||||
|
|||||||
@ -5,17 +5,18 @@ import { UserTableComponent } from '../tables/user-table/user-table.component';
|
|||||||
import { ModuleTableComponent } from '../tables/module-table/module-table.component';
|
import { ModuleTableComponent } from '../tables/module-table/module-table.component';
|
||||||
import { GroupTableComponent } from '../tables/group-table/group-table.component';
|
import { GroupTableComponent } from '../tables/group-table/group-table.component';
|
||||||
import { User } from '../../models/user-management.api.models';
|
import { User } from '../../models/user-management.api.models';
|
||||||
|
import { MatTabsModule, MatTabGroup } from '@angular/material/tabs';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
standalone: true,
|
imports: [MatTabsModule, MatTabGroup, UserTableComponent, ModuleTableComponent, GroupTableComponent],
|
||||||
selector: 'app-user-assignment',
|
selector: 'app-user-assignment',
|
||||||
templateUrl: './user-assignment.component.html',
|
templateUrl: './user-assignment.component.html',
|
||||||
styleUrl: './user-assignment.component.scss'
|
styleUrl: './user-assignment.component.scss'
|
||||||
})
|
})
|
||||||
export class UserAssignmentComponent implements OnInit, AfterViewInit {
|
export class UserAssignmentComponent implements OnInit, AfterViewInit {
|
||||||
|
|
||||||
initWithoutData = () => {}
|
initWithoutData = () => { }
|
||||||
|
|
||||||
userInLabel: string = "Benutzer in"
|
userInLabel: string = "Benutzer in"
|
||||||
|
|
||||||
@ -43,7 +44,7 @@ export class UserAssignmentComponent implements OnInit, AfterViewInit {
|
|||||||
mode: GuiRowSelectionMode.MULTIPLE
|
mode: GuiRowSelectionMode.MULTIPLE
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
ngOnInit(): void { }
|
||||||
|
|
||||||
ngAfterViewInit(): void {
|
ngAfterViewInit(): void {
|
||||||
//this.unassignedUsers.loading = false;
|
//this.unassignedUsers.loading = false;
|
||||||
|
|||||||
@ -7,9 +7,11 @@ import { catchError, finalize } from 'rxjs/operators';
|
|||||||
import { DirGroupTableComponent } from '../tables/dir-group-table/dir-group-table.component';
|
import { DirGroupTableComponent } from '../tables/dir-group-table/dir-group-table.component';
|
||||||
import { DirUserTableComponent } from '../tables/dir-user-table/dir-user-table.component';
|
import { DirUserTableComponent } from '../tables/dir-user-table/dir-user-table.component';
|
||||||
import { UserService } from '../../services/user.service';
|
import { UserService } from '../../services/user.service';
|
||||||
import {User} from '../../models/user-management.api.models'
|
import { User } from '../../models/user-management.api.models'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
standalone: true,
|
||||||
|
imports: [DirGroupTableComponent, DirUserTableComponent],
|
||||||
selector: 'app-user-group-dir-import',
|
selector: 'app-user-group-dir-import',
|
||||||
templateUrl: './user-group-dir-import.component.html',
|
templateUrl: './user-group-dir-import.component.html',
|
||||||
styleUrl: './user-group-dir-import.component.css'
|
styleUrl: './user-group-dir-import.component.css'
|
||||||
|
|||||||
@ -5,9 +5,11 @@ import { UserRepTableComponent } from '../tables/user-rep-table/user-rep-table.c
|
|||||||
import { GroupTableComponent } from '../tables/group-table/group-table.component';
|
import { GroupTableComponent } from '../tables/group-table/group-table.component';
|
||||||
import { UserRepService } from '../../services/user-representation.service';
|
import { UserRepService } from '../../services/user-representation.service';
|
||||||
import Swal from 'sweetalert2';
|
import Swal from 'sweetalert2';
|
||||||
|
import { MatTabsModule, MatTabGroup } from '@angular/material/tabs';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [MatTabsModule, MatTabGroup, UserTableComponent, GroupTableComponent, UserRepTableComponent],
|
||||||
selector: 'app-user-representation',
|
selector: 'app-user-representation',
|
||||||
templateUrl: './user-representation.component.html',
|
templateUrl: './user-representation.component.html',
|
||||||
styleUrl: './user-representation.component.css'
|
styleUrl: './user-representation.component.css'
|
||||||
@ -57,21 +59,21 @@ export class UserRepresentationComponent {
|
|||||||
|
|
||||||
repUserOnSelectedRows = (rows: GuiSelectedRow[]) => {
|
repUserOnSelectedRows = (rows: GuiSelectedRow[]) => {
|
||||||
if (rows.length == 0 && this.slRepUserId) {
|
if (rows.length == 0 && this.slRepUserId) {
|
||||||
if(!this.slUserId){
|
if (!this.slUserId) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: "error",
|
icon: "error",
|
||||||
title: "Oops...",
|
title: "Oops...",
|
||||||
text: "Bitte wählen Sie den Benutzer!",
|
text: "Bitte wählen Sie den Benutzer!",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if(!this.slRepUserId){
|
else if (!this.slRepUserId) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: "error",
|
icon: "error",
|
||||||
title: "Oops...",
|
title: "Oops...",
|
||||||
text: "Bitte wählen Sie die repräsentative Benutzer!",
|
text: "Bitte wählen Sie die repräsentative Benutzer!",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if(!this.slRightGroupId){
|
else if (!this.slRightGroupId) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: "error",
|
icon: "error",
|
||||||
title: "Oops...",
|
title: "Oops...",
|
||||||
@ -89,7 +91,7 @@ export class UserRepresentationComponent {
|
|||||||
next: (response) => {
|
next: (response) => {
|
||||||
this.slRepUserId = null;
|
this.slRepUserId = null;
|
||||||
this.repUsers.safelyUnselectAll()
|
this.repUsers.safelyUnselectAll()
|
||||||
if(this.slUserId != null)
|
if (this.slUserId != null)
|
||||||
this.userReps.fetchData(this.slUserId)
|
this.userReps.fetchData(this.slUserId)
|
||||||
},
|
},
|
||||||
error: (error) => {
|
error: (error) => {
|
||||||
@ -105,28 +107,28 @@ export class UserRepresentationComponent {
|
|||||||
|
|
||||||
this.slRepUserId = null;
|
this.slRepUserId = null;
|
||||||
}
|
}
|
||||||
else if(rows.length > 0) {
|
else if (rows.length > 0) {
|
||||||
this.slRepUserId = rows[0].source?.id;
|
this.slRepUserId = rows[0].source?.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repGroupOnSelectedRows = (rows: GuiSelectedRow[]) => {
|
repGroupOnSelectedRows = (rows: GuiSelectedRow[]) => {
|
||||||
if (rows.length == 0 && this.slRepGroupId) {
|
if (rows.length == 0 && this.slRepGroupId) {
|
||||||
if(!this.slUserId){
|
if (!this.slUserId) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: "error",
|
icon: "error",
|
||||||
title: "Oops...",
|
title: "Oops...",
|
||||||
text: "Bitte wählen Sie den Benutzer!",
|
text: "Bitte wählen Sie den Benutzer!",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if(!this.slRepGroupId){
|
else if (!this.slRepGroupId) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: "error",
|
icon: "error",
|
||||||
title: "Oops...",
|
title: "Oops...",
|
||||||
text: "Bitte wählen Sie die repräsentative Gruppe!",
|
text: "Bitte wählen Sie die repräsentative Gruppe!",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if(!this.slRightGroupId){
|
else if (!this.slRightGroupId) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: "error",
|
icon: "error",
|
||||||
title: "Oops...",
|
title: "Oops...",
|
||||||
@ -144,7 +146,7 @@ export class UserRepresentationComponent {
|
|||||||
next: (res) => {
|
next: (res) => {
|
||||||
this.slRepGroupId = null;
|
this.slRepGroupId = null;
|
||||||
this.repUsers.safelyUnselectAll()
|
this.repUsers.safelyUnselectAll()
|
||||||
if(this.slUserId != null)
|
if (this.slUserId != null)
|
||||||
this.userReps.fetchData(this.slUserId)
|
this.userReps.fetchData(this.slUserId)
|
||||||
},
|
},
|
||||||
error: (error) => {
|
error: (error) => {
|
||||||
@ -160,7 +162,7 @@ export class UserRepresentationComponent {
|
|||||||
|
|
||||||
this.slRepGroupId = null;
|
this.slRepGroupId = null;
|
||||||
}
|
}
|
||||||
else if(rows.length > 0) {
|
else if (rows.length > 0) {
|
||||||
this.slRepGroupId = rows[0].source?.id;
|
this.slRepGroupId = rows[0].source?.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -171,7 +173,7 @@ export class UserRepresentationComponent {
|
|||||||
next: (res) => {
|
next: (res) => {
|
||||||
this.slUserRepId = null;
|
this.slUserRepId = null;
|
||||||
this.userReps.safelyUnselectAll();
|
this.userReps.safelyUnselectAll();
|
||||||
if(this.slUserId != null)
|
if (this.slUserId != null)
|
||||||
this.userReps.fetchData(this.slUserId)
|
this.userReps.fetchData(this.slUserId)
|
||||||
},
|
},
|
||||||
error: (err) => {
|
error: (err) => {
|
||||||
@ -186,7 +188,7 @@ export class UserRepresentationComponent {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else if(rows.length > 0) {
|
else if (rows.length > 0) {
|
||||||
this.slUserRepId = rows[0].source?.id;
|
this.slUserRepId = rows[0].source?.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
<app-user-table #userTable [cellEditing] = "cellEditing"></app-user-table>
|
<app-user-table #userTable [cellEditing]="cellEditing"></app-user-table>
|
||||||
@ -4,6 +4,7 @@ import { UserTableComponent } from '../tables/user-table/user-table.component';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [UserTableComponent],
|
||||||
selector: 'app-user',
|
selector: 'app-user',
|
||||||
templateUrl: './user.component.html',
|
templateUrl: './user.component.html',
|
||||||
styleUrl: './user.component.css'
|
styleUrl: './user.component.css'
|
||||||
@ -22,5 +23,5 @@ export class UserComponent {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ViewChild("userTable") userTable! : UserTableComponent
|
@ViewChild("userTable") userTable!: UserTableComponent
|
||||||
}
|
}
|
||||||
@ -2,9 +2,12 @@ import { Component, Inject, Input } from '@angular/core';
|
|||||||
import { AuthenticationService } from '../services/authentication.service';
|
import { AuthenticationService } from '../services/authentication.service';
|
||||||
import Swal from 'sweetalert2';
|
import Swal from 'sweetalert2';
|
||||||
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
imports: [CommonModule, FormsModule],
|
||||||
selector: 'app-login',
|
selector: 'app-login',
|
||||||
templateUrl: './login.component.html',
|
templateUrl: './login.component.html',
|
||||||
styleUrl: './login.component.css'
|
styleUrl: './login.component.css'
|
||||||
@ -14,13 +17,13 @@ export class LoginComponent {
|
|||||||
username: string = '';
|
username: string = '';
|
||||||
password: string = '';
|
password: string = '';
|
||||||
|
|
||||||
waitRes:boolean = false;
|
waitRes: boolean = false;
|
||||||
|
|
||||||
IsPwdHidden: boolean = true;
|
IsPwdHidden: boolean = true;
|
||||||
|
|
||||||
constructor(private authService: AuthenticationService, @Inject(MAT_DIALOG_DATA) public data: any) {
|
constructor(private authService: AuthenticationService, @Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
//localStorage.getItem('theme') === 'dark'
|
//localStorage.getItem('theme') === 'dark'
|
||||||
if(typeof(this.afterLogin) == typeof(data.afterLogin))
|
if (typeof (this.afterLogin) == typeof (data.afterLogin))
|
||||||
this.afterLogin = data.afterLogin;
|
this.afterLogin = data.afterLogin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,13 @@ import { UserGroupDirImportComponent } from '../components/user-group-dir-import
|
|||||||
import { GroupDirImportComponent } from '../components/group-dir-import/group-dir-import.component';
|
import { GroupDirImportComponent } from '../components/group-dir-import/group-dir-import.component';
|
||||||
import { AuthenticationService, IsLogedIn } from '../services/authentication.service';
|
import { AuthenticationService, IsLogedIn } from '../services/authentication.service';
|
||||||
import { LoginComponent } from '../login/login.component';
|
import { LoginComponent } from '../login/login.component';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { ColorModeBttnComponent } from '../components/common/color-mode-bttn/color-mode-bttn.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone:true,
|
standalone: true,
|
||||||
|
imports: [RouterModule, CommonModule, ColorModeBttnComponent],
|
||||||
selector: 'app-nav-menu',
|
selector: 'app-nav-menu',
|
||||||
templateUrl: './nav-menu.component.html',
|
templateUrl: './nav-menu.component.html',
|
||||||
styleUrls: ['./nav-menu.component.css']
|
styleUrls: ['./nav-menu.component.css']
|
||||||
|
|||||||
@ -2,8 +2,12 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>UserManagerUi</title>
|
<title>User Manager Portal</title>
|
||||||
<base href="/">
|
<base href="/">
|
||||||
|
<user-manager-api href="/api/" user-route="user" group-route="group" module-route="module"
|
||||||
|
module-of-user-route="moduleOfUser" group-of-user-route="groupOfUser" user-representation-route="userRep"
|
||||||
|
dir-group-route="directory/Group?propName=samaccountname" dir-user-route="directory/user" dir-route="directory"
|
||||||
|
login-route="auth/login" , logout-route="auth/logout" , login-check-route="auth/check" />
|
||||||
<meta name="api-url" content="/api">
|
<meta name="api-url" content="/api">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user