SIA-Bilanz CSV-Export aus Elemente-Uebersicht

Download-Button (file_download Icon) neben den Expand/Collapse-Buttons
in der Toolbar. Klick → SaveFileDialog (Default 'sia_bilanz.csv') →
schreibt Excel-kompatible CSV.

Backend (elemente_uebersicht._export_bilanz):
- Wide-Format: Spalten = Kategorie + ein Geschoss + Total
- Zeilen: HNF, NNF, NF, VF, FF, NGF, GF, AGF, Räume (count), Personen
- Werte via _elm.compute_sia_bilanz fuer jeden Scope (gleiche Logik
  wie Bilanz-Stempel + Uebersicht — single source of truth)
- Format: Semikolon-Separator + UTF-8 BOM + Komma als Dezimaltrenner
  (Excel CH/DE-kompatibel, oeffnet ohne Umweg)
- Flaechen mit 2 Nachkommastellen, Raume/Personen als int
This commit is contained in:
2026-05-27 01:13:08 +02:00
parent e2d66a5d64
commit 61923e1b2b
2 changed files with 85 additions and 0 deletions
+3
View File
@@ -128,6 +128,9 @@ export default function ElementeUebersichtApp() {
}} />
<BarButton icon="unfold_more" onClick={expandAll} title="Alle aufklappen" />
<BarButton icon="unfold_less" onClick={collapseAll} title="Alle einklappen" />
<BarButton icon="file_download"
onClick={() => send('EXPORT_BILANZ', {})}
title="SIA-416 Bilanz als CSV exportieren (eine Spalte pro Geschoss + Total)" />
</div>
{/* Kind-Filter Chips */}
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 3 }}>