diff --git a/components/AppComponent.html b/components/AppComponent.html index 256e05ad..6f9615e4 100644 --- a/components/AppComponent.html +++ b/components/AppComponent.html @@ -275,7 +275,7 @@
+
+ projects/cobbler-frontend/src/app/common/dialog-item-copy/dialog-item-copy.component.ts
+
changeDetection | +ChangeDetectionStrategy.OnPush |
+
selector | +cobbler-dialog-item-copy |
+
standalone | +true |
+
imports | +
+ MatDialogModule
+ MatButtonModule
+ ReactiveFormsModule
+ MatFormFieldModule
+ MatInputModule
+ FormsModule
+ |
+
templateUrl | +./dialog-item-copy.component.html |
+
styleUrl | +./dialog-item-copy.component.scss |
+
+ Properties+ |
+
+
|
+
+ Methods+ |
+
+
|
+
+constructor(data: DialogItemCopyData)
+ |
+ ||||||
+ + | +||||||
+
+ Parameters :
+
+
|
+
+ + + onNoClick + + + | +
+onNoClick()
+ |
+
+ + | +
+
+
+ Returns :
+ void
+
+ |
+
+ + + + Public + data + + + | +
+ Type : DialogItemCopyData
+
+ |
+
+ Decorators :
+ +
+ @Inject(MAT_DIALOG_DATA)
+ |
+
+ + | +
+ + + Readonly + dialogCloseSignal + + + | +
+ Default value : model('')
+ |
+
+ + | +
+ + + Readonly + dialogRef + + + | +
+ Default value : inject(MatDialogRef<DialogItemCopyComponent>)
+ |
+
+ + | +
import {
+ ChangeDetectionStrategy,
+ Component,
+ inject,
+ Inject,
+ model,
+} from '@angular/core';
+import { FormsModule, ReactiveFormsModule } from '@angular/forms';
+import { MatButton, MatButtonModule } from '@angular/material/button';
+import {
+ MAT_DIALOG_DATA,
+ MatDialogModule,
+ MatDialogRef,
+} from '@angular/material/dialog';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatInputModule } from '@angular/material/input';
+
+export interface DialogItemCopyData {
+ itemType: string;
+ itemName: string;
+ itemUid: string;
+}
+
+@Component({
+ selector: 'cobbler-dialog-item-copy',
+ standalone: true,
+ imports: [
+ MatDialogModule,
+ MatButtonModule,
+ ReactiveFormsModule,
+ MatFormFieldModule,
+ MatInputModule,
+ FormsModule,
+ ],
+ templateUrl: './dialog-item-copy.component.html',
+ styleUrl: './dialog-item-copy.component.scss',
+ changeDetection: ChangeDetectionStrategy.OnPush,
+})
+export class DialogItemCopyComponent {
+ readonly dialogRef = inject(MatDialogRef<DialogItemCopyComponent>);
+ readonly dialogCloseSignal = model('');
+
+ constructor(@Inject(MAT_DIALOG_DATA) public data: DialogItemCopyData) {}
+
+ onNoClick(): void {
+ this.dialogRef.close();
+ }
+}
+
+ <h1 mat-dialog-title>Copy {{ data.itemType }}</h1>
+<mat-dialog-content>
+ <mat-form-field class="form-field-full-width">
+ <mat-label>Old name</mat-label>
+ <input matInput readonly value="{{ data.itemName }}" />
+ </mat-form-field>
+
+ <mat-form-field class="form-field-full-width">
+ <mat-label>New name</mat-label>
+ <input
+ matInput
+ [(ngModel)]="dialogCloseSignal"
+ cdkFocusInitial
+ placeholder="New name"
+ />
+ </mat-form-field>
+</mat-dialog-content>
+<mat-dialog-actions>
+ <button mat-button (click)="onNoClick()">Close</button>
+ <button mat-button [mat-dialog-close]="dialogCloseSignal()">Copy</button>
+</mat-dialog-actions>
+
+
OnInit
+ OnDestroy
constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
MatDialog
+ copyDistro()
+copyDistro(uid: string, name: string)
Name | +Type | +Optional | +
uid | +
+ string
+ |
+
+ + No + | + + +
name | +
+ string
+ |
+
+ + No + | + + +
void
void
+
+ + + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
-constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
copyFile()
+copyFile(uid: string, name: string)
Name | +Type | +Optional | +
uid | +
+ string
+ |
+
+ + No + | + + +
name | +
+ string
+ |
+
+ + No + | + + +
void
void
+
+ + + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
-constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
copyImage()
+copyImage(uid: string, name: string)
Name | +Type | +Optional | +
uid | +
+ string
+ |
+
+ + No + | + + +
name | +
+ string
+ |
+
+ + No + | + + +
void
void
+
+ + + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + |
Constructor
- |
constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
-
+
|
Constructor+dialog |
+
+
+ |
+
+ MatDialog
+
+ No
+ |
+
+ |
copyProfile()
+copyMgmtClass(uid: string, name: string)
Name | +Type | +Optional | +
uid | +
+ string
+ |
+
+ + No + | + + +
name | +
+ string
+ |
+
+ + No + | + + +
void
void
+
+ + + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
-constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
copyPackage()
+copyPackage(uid: string, name: string)
Name | +Type | +Optional | +
uid | +
+ string
+ |
+
+ + No + | + + +
name | +
+ string
+ |
+
+ + No + | + + +
void
void
+
+ + + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
- + | ||
-constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
copyProfile()
+copyProfile(uid: string, name: string)
Name | +Type | +Optional | +
uid | +
+ string
+ |
+
+ + No + | + + +
name | +
+ string
+ |
+
+ + No + | + + +
void
void
+
+ + + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
-constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
copyRepository()
+copyRepository(uid: string, name: string)
Name | +Type | +Optional | +
uid | +
+ string
+ |
+
+ + No + | + + +
name | +
+ string
+ |
+
+ + No + | + + +
void
void
+
+ + + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
- + | ||
- + | ||
- + | ||
-constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(route: ActivatedRoute, userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
copySystem()
+copySystem(uid: string, name: string)
Name | +Type | +Optional | +
uid | +
+ string
+ |
+
+ + No + | + + +
name | +
+ string
+ |
+
+ + No + | + + +
void
void
+
+ + + + Private + ngUnsubscribe + + + | +||||||||||
+ Default value : new Subject<void>()
+ |
+ ||||||||||
+ | ||||||||||
- + | ||||||||||
- + | ||||||||||
- + | ||||||||||
- + | ||||||||||
- + | ||||||||||
- + | ||||||||||
- + | ||||||||||
- + | ||||||||||
- + | ||||||||||
- + | ||||||||||
+ + projects/cobbler-frontend/src/app/common/dialog-item-copy/dialog-item-copy.component.ts + | +component | +DialogItemCopyComponent | ++ 0 % + (0/6) + | +|||||||
+ + projects/cobbler-frontend/src/app/common/dialog-item-copy/dialog-item-copy.component.ts + | +interface | +DialogItemCopyData | ++ 0 % + (0/4) + | +|||||||
@@ -835,7 +859,7 @@ | DistroEditComponent | 0 % - (0/13) + (0/15) | ||||||||
FileEditComponent | 0 % - (0/13) + (0/15) | |||||||||
ImageEditComponent | 0 % - (0/13) + (0/15) | |||||||||
ManagementClassEditComponent | 0 % - (0/13) + (0/15) | |||||||||
PackageEditComponent | 0 % - (0/13) + (0/15) | |||||||||
ProfileEditComponent | 0 % - (0/13) + (0/15) | |||||||||
RepositoryEditComponent | 0 % - (0/13) + (0/15) | |||||||||
SystemEditComponent | 0 % - (0/13) + (0/15) | |||||||||
+ Properties+ |
+
+
|
+
+ + itemName + + + + + | +
+ itemName:
+ |
+
+ Type : string
+
+ |
+
+ + itemType + + + + + | +
+ itemType:
+ |
+
+ Type : string
+
+ |
+
+ + itemUid + + + + + | +
+ itemUid:
+ |
+
+ Type : string
+
+ |
+
import {
+ ChangeDetectionStrategy,
+ Component,
+ inject,
+ Inject,
+ model,
+} from '@angular/core';
+import { FormsModule, ReactiveFormsModule } from '@angular/forms';
+import { MatButton, MatButtonModule } from '@angular/material/button';
+import {
+ MAT_DIALOG_DATA,
+ MatDialogModule,
+ MatDialogRef,
+} from '@angular/material/dialog';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatInputModule } from '@angular/material/input';
+
+export interface DialogItemCopyData {
+ itemType: string;
+ itemName: string;
+ itemUid: string;
+}
+
+@Component({
+ selector: 'cobbler-dialog-item-copy',
+ standalone: true,
+ imports: [
+ MatDialogModule,
+ MatButtonModule,
+ ReactiveFormsModule,
+ MatFormFieldModule,
+ MatInputModule,
+ FormsModule,
+ ],
+ templateUrl: './dialog-item-copy.component.html',
+ styleUrl: './dialog-item-copy.component.scss',
+ changeDetection: ChangeDetectionStrategy.OnPush,
+})
+export class DialogItemCopyComponent {
+ readonly dialogRef = inject(MatDialogRef<DialogItemCopyComponent>);
+ readonly dialogCloseSignal = model('');
+
+ constructor(@Inject(MAT_DIALOG_DATA) public data: DialogItemCopyData) {}
+
+ onNoClick(): void {
+ this.dialogRef.close();
+ }
+}
+
+ 46 Components
+47 Components
45 Interfaces
+46 Interfaces