vor kompletter umsetllung
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { RouterOutlet } from '@angular/router';
|
import { RouterOutlet } from '@angular/router';
|
||||||
import { SnackbarContainerComponent } from './shared/components/snackbar-container/snackbar-container.component';
|
import { SnackbarContainerComponent } from './shared/components/ui/snackbar-container/snackbar-container.component';
|
||||||
import { CookieConsentComponent } from './core/components/cookie-consent/cookie-consent.component';
|
import { CookieConsentComponent } from './core/components/cookie-consent/cookie-consent.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -57,11 +57,11 @@
|
|||||||
|
|
||||||
<app-card class="grid-col-span-2">
|
<app-card class="grid-col-span-2">
|
||||||
<h3 class="card-header">Letzte Bestellungen</h3>
|
<h3 class="card-header">Letzte Bestellungen</h3>
|
||||||
<!-- <app-orders-table
|
<app-orders-table
|
||||||
[orders]="ordersData"
|
[orders]="ordersData"
|
||||||
(deleteOrder)="handleDeleteOrder($event)"
|
(deleteOrder)="handleDeleteOrder($event)"
|
||||||
>
|
>
|
||||||
</app-orders-table> -->
|
</app-orders-table>
|
||||||
<app-paginator
|
<app-paginator
|
||||||
[currentPage]="currentPage"
|
[currentPage]="currentPage"
|
||||||
[totalItems]="totalItems"
|
[totalItems]="totalItems"
|
||||||
|
|||||||
@@ -1,3 +1,61 @@
|
|||||||
|
/* WICHTIG: Diese Stile sollten aus der globalen styles.css HIERHER VERSCHOBEN werden. */
|
||||||
|
:host {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kpi-card {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kpi-icon {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
background-color: var(--color-surface);
|
||||||
|
}
|
||||||
|
|
||||||
|
.kpi-icon app-icon {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-blue {
|
||||||
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
||||||
|
}
|
||||||
|
.icon-green {
|
||||||
|
background: linear-gradient(135deg, #2ecc71, #27ae60);
|
||||||
|
}
|
||||||
|
.icon-orange {
|
||||||
|
background: linear-gradient(135deg, #f39c12, #f1c40f);
|
||||||
|
}
|
||||||
|
.icon-purple {
|
||||||
|
background: linear-gradient(135deg, #9b59b6, #8e44ad);
|
||||||
|
}
|
||||||
|
|
||||||
|
.kpi-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kpi-value {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--color-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.kpi-label {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--color-text-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Verschieben Sie alle Tabellen-Stile aus styles.css hierher */
|
/* Verschieben Sie alle Tabellen-Stile aus styles.css hierher */
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -82,4 +140,27 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
color: var(--color-text-light);
|
color: var(--color-text-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Verschieben Sie diese Stile aus der globalen styles.css hierher */
|
||||||
|
:host {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paginator {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1.5rem;
|
||||||
|
padding: 1rem;
|
||||||
|
border-top: 1px solid var(--color-border);
|
||||||
|
}
|
||||||
|
.paginator-info {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--color-text-light);
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.paginator-controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
/* WICHTIG: Diese Stile sollten aus der globalen styles.css HIERHER VERSCHOBEN werden. */
|
|
||||||
:host {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kpi-card {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 1rem;
|
|
||||||
padding: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kpi-icon {
|
|
||||||
width: 50px;
|
|
||||||
height: 50px;
|
|
||||||
border-radius: 50%;
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
flex-shrink: 0;
|
|
||||||
background-color: var(--color-surface);
|
|
||||||
}
|
|
||||||
|
|
||||||
.kpi-icon app-icon {
|
|
||||||
width: 24px;
|
|
||||||
height: 24px;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-blue {
|
|
||||||
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
||||||
}
|
|
||||||
.icon-green {
|
|
||||||
background: linear-gradient(135deg, #2ecc71, #27ae60);
|
|
||||||
}
|
|
||||||
.icon-orange {
|
|
||||||
background: linear-gradient(135deg, #f39c12, #f1c40f);
|
|
||||||
}
|
|
||||||
.icon-purple {
|
|
||||||
background: linear-gradient(135deg, #9b59b6, #8e44ad);
|
|
||||||
}
|
|
||||||
|
|
||||||
.kpi-content {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kpi-value {
|
|
||||||
font-size: 1.75rem;
|
|
||||||
font-weight: 700;
|
|
||||||
color: var(--color-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.kpi-label {
|
|
||||||
font-size: 0.9rem;
|
|
||||||
color: var(--color-text-light);
|
|
||||||
}
|
|
||||||
@@ -2,14 +2,14 @@ import { Component, Input } from '@angular/core';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { IconComponent } from '../../ui/icon/icon.component';
|
import { IconComponent } from '../../ui/icon/icon.component';
|
||||||
|
|
||||||
type KpiColor = 'blue' | 'green' | 'orange' | 'purple';
|
type KpiColor = 'blue' | 'green' | 'orange' | 'purple';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-kpi-card',
|
selector: 'app-kpi-card',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [CommonModule, IconComponent],
|
imports: [CommonModule, IconComponent],
|
||||||
templateUrl: './kpi-card.component.html',
|
templateUrl: './kpi-card.component.html',
|
||||||
styleUrl: './kpi-card.component.css',
|
styleUrl: '../data-display.css',
|
||||||
})
|
})
|
||||||
export class KpiCardComponent {
|
export class KpiCardComponent {
|
||||||
@Input() value: string = '';
|
@Input() value: string = '';
|
||||||
@@ -17,4 +17,4 @@ export class KpiCardComponent {
|
|||||||
@Input() color: KpiColor = 'blue';
|
@Input() color: KpiColor = 'blue';
|
||||||
@Input() iconName: string | null = null;
|
@Input() iconName: string | null = null;
|
||||||
@Input() svgColor: string | null = null;
|
@Input() svgColor: string | null = null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export interface Order {
|
|||||||
IconComponent
|
IconComponent
|
||||||
],
|
],
|
||||||
templateUrl: './orders-table.component.html',
|
templateUrl: './orders-table.component.html',
|
||||||
styleUrl: './orders-table.component.css'
|
styleUrl: '../data-display.css'
|
||||||
})
|
})
|
||||||
export class OrdersTableComponent {
|
export class OrdersTableComponent {
|
||||||
// Nimmt die anzuzeigenden Bestelldaten entgegen
|
// Nimmt die anzuzeigenden Bestelldaten entgegen
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
/* Verschieben Sie diese Stile aus der globalen styles.css hierher */
|
|
||||||
:host {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.paginator {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
align-items: center;
|
|
||||||
gap: 1.5rem;
|
|
||||||
padding: 1rem;
|
|
||||||
border-top: 1px solid var(--color-border);
|
|
||||||
}
|
|
||||||
.paginator-info {
|
|
||||||
font-size: 0.9rem;
|
|
||||||
color: var(--color-text-light);
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
.paginator-controls {
|
|
||||||
display: flex;
|
|
||||||
gap: 0.5rem;
|
|
||||||
}
|
|
||||||
@@ -7,7 +7,7 @@ import { ButtonComponent } from '../../ui/button/button.component';
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [CommonModule, ButtonComponent],
|
imports: [CommonModule, ButtonComponent],
|
||||||
templateUrl: './paginator.component.html',
|
templateUrl: './paginator.component.html',
|
||||||
styleUrl: './paginator.component.css'
|
styleUrl: '../data-display.css'
|
||||||
})
|
})
|
||||||
export class PaginatorComponent {
|
export class PaginatorComponent {
|
||||||
// --- EINGABEN von außen ---
|
// --- EINGABEN von außen ---
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { Snackbar, SnackbarService } from '../../services/snackbar.service';
|
import { Snackbar, SnackbarService } from '../../../services/snackbar.service';
|
||||||
import { SnackbarComponent } from '../snackbar/snackbar.component';
|
import { SnackbarComponent } from '../snackbar/snackbar.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
Reference in New Issue
Block a user