[208] Anonyme Abgabe vollständig: Berichte, IFC, DXF-Blattnamen, STEP, Blender-Paket, Dateinamen über zentrale competitionIdentity; Test über alle Formate

This commit is contained in:
Claude committed 2026-11-13 15:43:26 +00:00
1 parent 0933205f65
commit fff8470bd0
29 files changed
+488 -72

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@
import { useMemo, useState } from "react";
import { t } from "../i18n";
import { areaReportToCsv, buildAreaReport, buildAreaReportPdf } from "../core";
import { exportProjectName, areaReportToCsv, buildAreaReport, buildAreaReportPdf } from "../core";
import type { AgfBasis } from "../core";
import { DEFAULT_AREA_INPUTS, ivhbOptionsOf, type AreaInputs } from "./areaInputs";
import { downloadCsv } from "./downloadFile";
@@ -26,7 +26,7 @@ export function AreaTableSection() {
[project, inputs],
);
const set = (patch: Partial<AreaInputs>) => setInputs((i) => ({ ...i, ...patch }));
const stem = `${project.name || "projekt"}-flaechen`;
const stem = `${exportProjectName(project) || "projekt"}-flaechen`;
const exportPdf = () => {
try {
+2 -2
View File
@@ -9,7 +9,7 @@
import { useEffect, useMemo, useState } from "react";
import { t } from "../i18n";
import { areaReportToCsv, buildAreaReportPdf, buildCostReport, computeCostEstimate, costGroupLabel, costUnitLabel, defaultCostEstimate, formatChf, setField } from "../core";
import { exportProjectName, areaReportToCsv, buildAreaReportPdf, buildCostReport, computeCostEstimate, costGroupLabel, costUnitLabel, defaultCostEstimate, formatChf, setField } from "../core";
import type { CostBasis, CostEstimate, CostGroup, CostMethod, CostResult } from "../core";
import type { Project } from "../model/types";
import { downloadCsv } from "./downloadFile";
@@ -65,7 +65,7 @@ export function CostEstimateSection() {
const notify = useStore((s) => s.notify);
const res = useMemo(() => computeCostEstimate(project), [project]);
const est: CostEstimate = useMemo(() => project.costEstimate ?? defaultCostEstimate(project, "gv"), [project]);
const stem = `${project.name || "projekt"}-kosten`;
const stem = `${exportProjectName(project) || "projekt"}-kosten`;
const update = (next: (e: CostEstimate) => CostEstimate, key: string) =>
applyChange((p: Project) => [setField("costEstimate", next(p.costEstimate ?? defaultCostEstimate(p, "gv")))], `costEstimate.${key}`);
+2 -2
View File
@@ -4,7 +4,7 @@
import { useMemo } from "react";
import { t } from "../i18n";
import { areaReportToCsv, buildAreaReportPdf, buildElementReport, elementSchedule } from "../core";
import { exportProjectName, areaReportToCsv, buildAreaReportPdf, buildElementReport, elementSchedule } from "../core";
import { downloadCsv } from "./downloadFile";
import { useStore } from "../state/appStore";
@@ -12,7 +12,7 @@ export function ElementScheduleSection() {
const project = useStore((s) => s.project);
const notify = useStore((s) => s.notify);
const rows = useMemo(() => elementSchedule(project), [project]);
const stem = `${project.name || "projekt"}-bauteile`;
const stem = `${exportProjectName(project) || "projekt"}-bauteile`;
const exportPdf = () => {
try {
buildAreaReportPdf(buildElementReport(project)).save(`${stem}.pdf`);
+2 -2
View File
@@ -7,7 +7,7 @@
import { useMemo } from "react";
import { t } from "../i18n";
import { usePanelHost } from "./host";
import { areaReportToCsv, buildAreaReportPdf, buildOpeningReport, externalText, openingSchedule, patchItem, revealArea, revealColumns, roomsText, swingText } from "../core";
import { exportProjectName, areaReportToCsv, buildAreaReportPdf, buildOpeningReport, externalText, openingSchedule, patchItem, revealArea, revealColumns, roomsText, swingText } from "../core";
import type { OpeningScheduleRow } from "../core";
import type { Opening, Project } from "../model/types";
import { downloadCsv } from "./downloadFile";
@@ -25,7 +25,7 @@ export function OpeningScheduleSection() {
const rows = useMemo(() => openingSchedule(project), [project]);
// [106] Leibungsflächen je Schicht: Spalten nur, wenn eine Öffnung Schichteinzug hat.
const reveals = useMemo(() => revealColumns(rows), [rows]);
const stem = `${project.name || "projekt"}-fenster-tueren`;
const stem = `${exportProjectName(project) || "projekt"}-fenster-tueren`;
const patch = (id: string, change: Partial<Opening>, field: string) =>
applyChange((p: Project) => patchItem(p, "openings", id, change), `opening:${id}:${field}`);
+2 -2
View File
@@ -11,7 +11,7 @@ import { t } from "../i18n";
import type { TranslationKey } from "../i18n";
import { usePanelHost } from "./host";
import { useStore } from "../state/appStore";
import { addProgramSheetOps, areaReportToCsv, buildAreaReportPdf, buildProgramReport, buildProgramSheet, compareRoomProgram, defaultSheetLabels, DEFAULT_PROGRAM_TOLERANCE, setFieldIfChanged } from "../core";
import { exportProjectName, addProgramSheetOps, areaReportToCsv, buildAreaReportPdf, buildProgramReport, buildProgramSheet, compareRoomProgram, defaultSheetLabels, DEFAULT_PROGRAM_TOLERANCE, setFieldIfChanged } from "../core";
import type { CompareRow, CompareSum, Light } from "../core";
import type { Project } from "../model/types";
import { downloadCsv } from "./downloadFile";
@@ -45,7 +45,7 @@ export function ProgramCompareSection({ statusLabel }: { statusLabel: (status: C
const notify = useStore((s) => s.notify);
const c = compareRoomProgram(project);
if (c.rows.length === 0) return null;
const stem = `${project.name || "projekt"}-raumprogramm`;
const stem = `${exportProjectName(project) || "projekt"}-raumprogramm`;
const hasGroups = c.groups.some((g) => g.key !== "");
const hasKinds = c.kinds.some((k) => k.key !== "");
+2 -2
View File
@@ -5,7 +5,7 @@
import { useMemo } from "react";
import { t } from "../i18n";
import { areaReportToCsv, buildAreaReportPdf, buildRoomBookReport, hasSlope, roomBook, usageLabel } from "../core";
import { exportProjectName, areaReportToCsv, buildAreaReportPdf, buildRoomBookReport, hasSlope, roomBook, usageLabel } from "../core";
import { downloadCsv } from "./downloadFile";
import { useStore } from "../state/appStore";
@@ -16,7 +16,7 @@ export function RoomBookSection() {
const notify = useStore((s) => s.notify);
const book = useMemo(() => roomBook(project), [project]);
const sloped = book.rows.some(hasSlope);
const stem = `${project.name || "projekt"}-raumbuch`;
const stem = `${exportProjectName(project) || "projekt"}-raumbuch`;
const exportPdf = () => {
try {