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.
14 lines
451 B
TypeScript
14 lines
451 B
TypeScript
import {Component, input} from '@angular/core';
|
|
import {Sitzplatz} from '@infinimotion/model-frontend';
|
|
import {TheaterSeatState} from '../model/theater-seat-state.model';
|
|
|
|
@Component({
|
|
selector: 'app-seat-row',
|
|
standalone: false,
|
|
templateUrl: './seat-row.component.html',
|
|
styleUrl: './seat-row.component.css'
|
|
})
|
|
export class SeatRowComponent {
|
|
rowSeatList = input.required<{ seat: Sitzplatz | null, state: TheaterSeatState | null }[]>();
|
|
}
|