/* ============================================================================= * M01_MasterData_UI_LogicLab_Formula.ts * 「텍스트 수식」 컨테이너 자리 — 비목 묶음별 `이름 : 단가 * 수량식 = 금액` 줄은 여기서 채움(PLAN 3-2) * ========================================================================== */ import { el } from "@ui/ui_template_elements"; import type { CalcLine, LogicRow } from "./M01_MasterData_UI_Logic_Api"; import { tl } from "./M01_MasterData_UI_LogicLab_Text"; export interface FormulaContext { row: LogicRow; /** 마지막 시험 계산의 줄 — 호표 차례 뒤에 덧줄 */ lines: CalcLine[] | null; } /** 자리만 — 줄을 채우는 일감이 `host` 안에 그림 */ export function buildFormula(host: HTMLElement, _ctx: FormulaContext): void { host.replaceChildren(el("p", { className: "m01-logic__muted", text: tl("Formula_Slot") })); }