Compact circuit grid columns

This commit is contained in:
Julian Appel 2026-07-29 11:12:24 +02:00
parent 1b2ca84258
commit 602ae6da0b
4 changed files with 82 additions and 25 deletions

View file

@ -49,6 +49,7 @@ export type GridValue = string | number | boolean | undefined;
export interface ColumnDef {
key: CellKey;
label: string;
fullLabel?: string;
numeric?: boolean;
defaultVisible?: boolean;
locked?: boolean;
@ -57,35 +58,64 @@ export interface ColumnDef {
// BMK stays locked as the first column because circuit identity and circuit drag
// handles depend on an always-visible equipment identifier.
export const allColumns: ColumnDef[] = [
{ key: "equipmentIdentifier", label: "Betriebsmittelkennzeichen", defaultVisible: true, locked: true },
{
key: "equipmentIdentifier",
label: "SK-Nr.",
fullLabel: "Stromkreisnummer / Betriebsmittelkennzeichen",
defaultVisible: true,
locked: true,
},
{ key: "displayName", label: "Anzeigename", defaultVisible: true },
{ key: "quantity", label: "Anzahl", numeric: true, defaultVisible: true },
{ key: "powerPerUnit", label: "Leistung / Gerät [kW]", numeric: true, defaultVisible: true },
{ key: "simultaneityFactor", label: "Gleichzeitigkeit", numeric: true, defaultVisible: true },
{ key: "rowTotalPower", label: "Gesamtsumme [kW]", numeric: true, defaultVisible: true },
{
key: "powerPerUnit",
label: "P/Stk. [kW]",
fullLabel: "Leistung je Gerät [kW]",
numeric: true,
defaultVisible: true,
},
{
key: "simultaneityFactor",
label: "GZF",
fullLabel: "Gleichzeitigkeitsfaktor",
numeric: true,
defaultVisible: true,
},
{
key: "rowTotalPower",
label: "Ges.-Leistung [kW]",
fullLabel: "Gesamtleistung [kW]",
numeric: true,
defaultVisible: true,
},
{ key: "protectionSummary", label: "Schutz", defaultVisible: true },
{ key: "cableSummary", label: "Kabel", defaultVisible: true },
{ key: "roomSummary", label: "Raum", defaultVisible: true },
{ key: "remark", label: "Bemerkung", defaultVisible: true },
{ key: "technicalName", label: "Technischer Name" },
{ key: "connectionKind", label: "Anschlussart" },
{ key: "technicalName", label: "Techn. Name", fullLabel: "Technischer Name" },
{ key: "connectionKind", label: "Anschluss", fullLabel: "Anschlussart" },
{ key: "phaseType", label: "Phasenart" },
{ key: "costGroup", label: "Kostengruppe" },
{ key: "costGroup", label: "KG", fullLabel: "Kostengruppe" },
{ key: "category", label: "Kategorie" },
{ key: "level", label: "Ebene" },
{ key: "roomNumberSnapshot", label: "Raumnummer" },
{ key: "roomNumberSnapshot", label: "Raum-Nr.", fullLabel: "Raumnummer" },
{ key: "roomNameSnapshot", label: "Raumname" },
{ key: "cosPhi", label: "cos φ", numeric: true },
{ key: "protectionType", label: "Schutzart" },
{ key: "protectionRatedCurrent", label: "Bemessungsstrom", numeric: true },
{
key: "protectionRatedCurrent",
label: "Bem.-Strom",
fullLabel: "Bemessungsstrom",
numeric: true,
},
{ key: "protectionCharacteristic", label: "Charakteristik" },
{ key: "cableType", label: "Kabeltyp" },
{ key: "cableCrossSection", label: "Kabelquerschnitt" },
{ key: "cableCrossSection", label: "Querschnitt", fullLabel: "Kabelquerschnitt" },
{ key: "cableLength", label: "Kabellänge", numeric: true },
{ key: "rcdAssignment", label: "RCD-Zuordnung" },
{ key: "terminalDesignation", label: "Klemmenbezeichnung" },
{ key: "terminalDesignation", label: "Klemme", fullLabel: "Klemmenbezeichnung" },
{ key: "voltage", label: "Spannung", numeric: true },
{ key: "controlRequirement", label: "Steuerungsanforderung" },
{ key: "controlRequirement", label: "Steuerung", fullLabel: "Steuerungsanforderung" },
{ key: "status", label: "Status" },
{ key: "isReserve", label: "Reserve" },
];