komponents erstellen
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<p>kpi-card works!</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-kpi-card',
|
||||
imports: [],
|
||||
templateUrl: './kpi-card.component.html',
|
||||
styleUrl: './kpi-card.component.css'
|
||||
})
|
||||
export class KpiCardComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>form-field works!</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-form-field',
|
||||
imports: [],
|
||||
templateUrl: './form-field.component.html',
|
||||
styleUrl: './form-field.component.css'
|
||||
})
|
||||
export class FormFieldComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>slide-toggle works!</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-slide-toggle',
|
||||
imports: [],
|
||||
templateUrl: './slide-toggle.component.html',
|
||||
styleUrl: './slide-toggle.component.css'
|
||||
})
|
||||
export class SlideToggleComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>page-header works!</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-page-header',
|
||||
imports: [],
|
||||
templateUrl: './page-header.component.html',
|
||||
styleUrl: './page-header.component.css'
|
||||
})
|
||||
export class PageHeaderComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>search-bar works!</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-search-bar',
|
||||
imports: [],
|
||||
templateUrl: './search-bar.component.html',
|
||||
styleUrl: './search-bar.component.css'
|
||||
})
|
||||
export class SearchBarComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>user-profile works!</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-user-profile',
|
||||
imports: [],
|
||||
templateUrl: './user-profile.component.html',
|
||||
styleUrl: './user-profile.component.css'
|
||||
})
|
||||
export class UserProfileComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>dialog works!</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dialog',
|
||||
imports: [],
|
||||
templateUrl: './dialog.component.html',
|
||||
styleUrl: './dialog.component.css'
|
||||
})
|
||||
export class DialogComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>menu works!</p>
|
||||
11
src/app/shared/components/overlays/menu/menu.component.ts
Normal file
11
src/app/shared/components/overlays/menu/menu.component.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-menu',
|
||||
imports: [],
|
||||
templateUrl: './menu.component.html',
|
||||
styleUrl: './menu.component.css'
|
||||
})
|
||||
export class MenuComponent {
|
||||
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
/* src\app\shared\snackbar\components\snackbar-container\snackbar-container.component.css */
|
||||
/* Stile, die NUR für den Container gelten */
|
||||
.snackbar-container-wrapper {
|
||||
position: fixed;
|
||||
@@ -1,3 +1,4 @@
|
||||
/* src\app\shared\snackbar\components\snackbar\snackbar.component.css */
|
||||
/* Stile, die NUR für eine einzelne Snackbar gelten */
|
||||
:host {
|
||||
position: absolute;
|
||||
1
src/app/shared/components/ui/alert/alert.component.html
Normal file
1
src/app/shared/components/ui/alert/alert.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>alert works!</p>
|
||||
11
src/app/shared/components/ui/alert/alert.component.ts
Normal file
11
src/app/shared/components/ui/alert/alert.component.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-alert',
|
||||
imports: [],
|
||||
templateUrl: './alert.component.html',
|
||||
styleUrl: './alert.component.css'
|
||||
})
|
||||
export class AlertComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>button works!</p>
|
||||
11
src/app/shared/components/ui/button/button.component.ts
Normal file
11
src/app/shared/components/ui/button/button.component.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-button',
|
||||
imports: [],
|
||||
templateUrl: './button.component.html',
|
||||
styleUrl: './button.component.css'
|
||||
})
|
||||
export class ButtonComponent {
|
||||
|
||||
}
|
||||
1
src/app/shared/components/ui/card/card.component.html
Normal file
1
src/app/shared/components/ui/card/card.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>card works!</p>
|
||||
11
src/app/shared/components/ui/card/card.component.ts
Normal file
11
src/app/shared/components/ui/card/card.component.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-card',
|
||||
imports: [],
|
||||
templateUrl: './card.component.html',
|
||||
styleUrl: './card.component.css'
|
||||
})
|
||||
export class CardComponent {
|
||||
|
||||
}
|
||||
1
src/app/shared/components/ui/chip/chip.component.html
Normal file
1
src/app/shared/components/ui/chip/chip.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>chip works!</p>
|
||||
11
src/app/shared/components/ui/chip/chip.component.ts
Normal file
11
src/app/shared/components/ui/chip/chip.component.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-chip',
|
||||
imports: [],
|
||||
templateUrl: './chip.component.html',
|
||||
styleUrl: './chip.component.css'
|
||||
})
|
||||
export class ChipComponent {
|
||||
|
||||
}
|
||||
1
src/app/shared/components/ui/icon/icon.component.html
Normal file
1
src/app/shared/components/ui/icon/icon.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>icon works!</p>
|
||||
11
src/app/shared/components/ui/icon/icon.component.ts
Normal file
11
src/app/shared/components/ui/icon/icon.component.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-icon',
|
||||
imports: [],
|
||||
templateUrl: './icon.component.html',
|
||||
styleUrl: './icon.component.css'
|
||||
})
|
||||
export class IconComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>status-pill works!</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-status-pill',
|
||||
imports: [],
|
||||
templateUrl: './status-pill.component.html',
|
||||
styleUrl: './status-pill.component.css'
|
||||
})
|
||||
export class StatusPillComponent {
|
||||
|
||||
}
|
||||
10
src/app/shared/validators/password-match.validator.ts
Normal file
10
src/app/shared/validators/password-match.validator.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
||||
|
||||
export const passwordMatchValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => {
|
||||
const password = control.get('password');
|
||||
const confirmPassword = control.get('confirmPassword');
|
||||
|
||||
return password && confirmPassword && password.value !== confirmPassword.value
|
||||
? { passwordMismatch: true }
|
||||
: null;
|
||||
};
|
||||
Reference in New Issue
Block a user