// Bauteilliste mit U-Werten im Flächenbilanz-Panel ([71]): je Wand, Decke und Dach Typ, Geschoss, Fläche, Dicke und // U-Wert aus dem Schichtaufbau (SIA 180 / EN ISO 6946, λ je Bauteil). Die Zeilen rechnet der Kern (`elementSchedule`); // ein „–" mit Hinweis steht, wo einer Schicht λ fehlt. CSV und PDF kommen aus dem Berichtsmodell wie die Fenster-/Türliste. import { useMemo } from "react"; import { t } from "../i18n"; import { exportProjectName, areaReportToCsv, buildAreaReportPdf, buildElementReport, elementSchedule } from "../core"; import { downloadCsv } from "./downloadFile"; import { runWithAnonymityGate } from "../state/anonymityGate"; import { useStore } from "../state/appStore"; export function ElementScheduleSection() { const project = useStore((s) => s.project); const notify = useStore((s) => s.notify); const rows = useMemo(() => elementSchedule(project), [project]); const stem = `${exportProjectName(project) || "projekt"}-bauteile`; const exportPdf = () => { runWithAnonymityGate(project, [`${stem}.pdf`], async () => { try { (await buildAreaReportPdf(buildElementReport(project))).save(`${stem}.pdf`); } catch { notify(t("openings.exportPdf.fail")); } }); }; return (
| {t("sheetTable.col.kind")} | {t("elemSchedule.col.type")} | {t("openings.col.floor")} | {t("elemSchedule.col.area")} | {t("elemSchedule.col.thickness")} | {t("openings.col.u")} |
|---|---|---|---|---|---|
| {t(`elemSchedule.kind.${r.kind}`)} | {r.typeName} | {r.floor} | {r.area.toFixed(2)} | {(r.thickness * 100).toFixed(1)} | {r.u === null ? "–" : r.u.toFixed(2)} |