Handle empty seats and rows in theater layout

Updated seat and row data structures to allow null values for seats and states, enabling the display of empty seat spaces and rows. Adjusted rendering logic and styles to visually represent gaps in seating, and enhanced the converter to fill missing seats and rows with placeholders.
This commit is contained in:
2025-11-15 16:34:20 +01:00
parent be680da692
commit bd56f3242e
5 changed files with 63 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ import {TheaterSeatState} from '../model/theater-seat-state.model';
styleUrl: './theater-layout.component.css'
})
export class TheaterLayoutComponent {
seatsPerRow = input.required<{ seat: Sitzplatz, state: TheaterSeatState }[][]>();
seatsPerRow = input.required<{ seat: Sitzplatz | null, state: TheaterSeatState | null }[][]>();
protected selectedSeatsService = inject(SelectedSeatsService);
}