[66] Standard-Ansichtsvorlagen: Präsentation, Eingabeplan 1:100, Ausführungsplan 1:50
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
8 files changed
+28
-5
No files matched your search
@@ -1370,6 +1370,7 @@ export const de = {
|
||||
"resources.updateStandards.col.wallTypes": "Wandaufbauten",
|
||||
"resources.updateStandards.col.ceilingTypes": "Deckenaufbauten",
|
||||
"resources.updateStandards.col.roofTypes": "Dachaufbauten",
|
||||
"resources.updateStandards.col.viewTemplates": "Ansichtsvorlagen",
|
||||
"resources.updateStandards.field.pattern": "Muster",
|
||||
"resources.updateStandards.field.scale": "Massstab",
|
||||
"resources.updateStandards.field.angle": "Winkel",
|
||||
@@ -1404,6 +1405,7 @@ export const de = {
|
||||
"resources.loadStandards.n.wallTypes": "{n} Wandaufbauten",
|
||||
"resources.loadStandards.n.ceilingTypes": "{n} Deckenaufbauten",
|
||||
"resources.loadStandards.n.roofTypes": "{n} Dachaufbauten",
|
||||
"resources.loadStandards.n.viewTemplates": "{n} Ansichtsvorlagen",
|
||||
"resources.loadStandards.n.hatches": "{n} Schraffuren",
|
||||
"resources.loadStandards.n.lineStyles": "{n} Linientypen",
|
||||
"resources.col.lambda": "Wärmeleitfähigkeit λ [W/mK]",
|
||||
|
||||
@@ -1363,6 +1363,7 @@ export const en: Record<TranslationKey, string> = {
|
||||
"resources.updateStandards.col.wallTypes": "Wall assemblies",
|
||||
"resources.updateStandards.col.ceilingTypes": "Ceiling assemblies",
|
||||
"resources.updateStandards.col.roofTypes": "Roof assemblies",
|
||||
"resources.updateStandards.col.viewTemplates": "View templates",
|
||||
"resources.updateStandards.field.pattern": "Pattern",
|
||||
"resources.updateStandards.field.scale": "Scale",
|
||||
"resources.updateStandards.field.angle": "Angle",
|
||||
@@ -1397,6 +1398,7 @@ export const en: Record<TranslationKey, string> = {
|
||||
"resources.loadStandards.n.wallTypes": "{n} wall build-ups",
|
||||
"resources.loadStandards.n.ceilingTypes": "{n} ceiling build-ups",
|
||||
"resources.loadStandards.n.roofTypes": "{n} roof build-ups",
|
||||
"resources.loadStandards.n.viewTemplates": "{n} view templates",
|
||||
"resources.loadStandards.n.hatches": "{n} hatches",
|
||||
"resources.loadStandards.n.lineStyles": "{n} line types",
|
||||
"resources.col.lambda": "Thermal conductivity λ [W/mK]",
|
||||
|
||||
@@ -35,7 +35,7 @@ describe("Standard-Bibliothek ([100]–[102])", () => {
|
||||
expect(c.components).toBe(35);
|
||||
expect(c.lineStyles).toBeGreaterThan(5);
|
||||
expect(c.wallTypes + c.ceilingTypes + c.roofTypes).toBe(5);
|
||||
expect(standardsMergeCounts(standardsMergeOps(withStandards(empty)))).toEqual({ lineStyles: 0, hatches: 0, components: 0, wallTypes: 0, ceilingTypes: 0, roofTypes: 0 });
|
||||
expect(standardsMergeCounts(standardsMergeOps(withStandards(empty)))).toEqual({ lineStyles: 0, hatches: 0, components: 0, wallTypes: 0, ceilingTypes: 0, roofTypes: 0, viewTemplates: 0 });
|
||||
});
|
||||
|
||||
it("Sinnbilder nach SIA 400 Fig. 34: Putz leer, Dämmung quer, Beton gekreuzt", () => {
|
||||
|
||||
@@ -26,10 +26,11 @@ export interface StandardsMergeCounts {
|
||||
wallTypes: number;
|
||||
ceilingTypes: number;
|
||||
roofTypes: number;
|
||||
viewTemplates: number;
|
||||
}
|
||||
|
||||
export function standardsMergeCounts(ops: readonly CoreOp[]): StandardsMergeCounts {
|
||||
const out: StandardsMergeCounts = { lineStyles: 0, hatches: 0, components: 0, wallTypes: 0, ceilingTypes: 0, roofTypes: 0 };
|
||||
const out: StandardsMergeCounts = { lineStyles: 0, hatches: 0, components: 0, wallTypes: 0, ceilingTypes: 0, roofTypes: 0, viewTemplates: 0 };
|
||||
for (const op of ops) {
|
||||
const key = op.kind === "add" ? op.collection : op.kind === "setField" ? op.key : null;
|
||||
const n = op.kind === "add" ? op.items.length : op.kind === "setField" && Array.isArray(op.value) ? op.value.length : 0;
|
||||
|
||||
@@ -1035,7 +1035,7 @@ export function createProjectSlice(
|
||||
// Rückmeldung, was hinzukam ([101]); ein Undo-Schritt.
|
||||
const ops = standardsMergeOps(get().project);
|
||||
const c = standardsMergeCounts(ops);
|
||||
const parts = (["components", "wallTypes", "ceilingTypes", "roofTypes", "hatches", "lineStyles"] as const)
|
||||
const parts = (["components", "wallTypes", "ceilingTypes", "roofTypes", "hatches", "lineStyles", "viewTemplates"] as const)
|
||||
.filter((k) => c[k] > 0)
|
||||
.map((k) => t(`resources.loadStandards.n.${k}`, { n: c[k] }));
|
||||
if (ops.length) applyChange(ops);
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { Project } from "../../model/types";
|
||||
import { standardsChangeKey, standardsUpdatePlan } from "../../model/standards";
|
||||
import { t } from "../../i18n";
|
||||
|
||||
const COLLECTION_ORDER = ["components", "hatches", "lineStyles", "wallTypes", "ceilingTypes", "roofTypes"];
|
||||
const COLLECTION_ORDER = ["components", "hatches", "lineStyles", "wallTypes", "ceilingTypes", "roofTypes", "viewTemplates"];
|
||||
|
||||
export function StandardsUpdateDialog({
|
||||
project,
|
||||
|
||||
Reference in new issue
Block a user