From 8e35375c544c27192cbc2f499cca075bc0e103bf Mon Sep 17 00:00:00 2001 From: umsangdon Date: Fri, 2 Oct 2026 07:56:33 +0900 Subject: [PATCH] =?UTF-8?q?feat(M02):=20=ED=9D=90=EB=A6=84=EB=8F=84=20?= =?UTF-8?q?=ED=8C=A8=EB=84=90=20=EB=A8=B8=EB=A6=AC=EC=97=90=20=E3=80=8C?= =?UTF-8?q?=ED=91=9C=EC=A4=80=20=ED=91=9C=E3=80=8D=20=EB=8B=A8=EC=B6=94=20?= =?UTF-8?q?=E2=80=94=20=EB=8B=A8=EC=9C=84=20=C2=B7=20=EA=B8=88=EC=95=A1=20?= =?UTF-8?q?=ED=91=9C=EC=A4=80=20=EB=AA=A8=EB=8B=AC(renderStandards=20title?= =?UTF-8?q?=20false)=20=C2=B7=20=EB=B3=B4=EA=B8=B0=EB=A7=8C=EC=9D=B4?= =?UTF-8?q?=EB=A9=B4=20=EC=B9=B8=20=C2=B7=20=EB=8B=A8=EC=B6=94=20=EB=A7=89?= =?UTF-8?q?=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 시험판 페이지를 지워 사라진 표준 표 여는 길을 패널로 옮김 · 고치기는 시스템 관리자만(readOnly 면 fieldset 으로 막음) - typecheck · DataFlow 전부 검사 초록 · 시험 2 통과 · ORCA: 모달 「표준 표」 줄 80 · 고치기 열림 / 보기만 막힘 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ly2oHAaTDYRjcniAmHR81z --- M02_MasterTemplete/DataFlow/M02_DF_Panel.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/M02_MasterTemplete/DataFlow/M02_DF_Panel.ts b/M02_MasterTemplete/DataFlow/M02_DF_Panel.ts index 18c80030c..1d2c68ee0 100644 --- a/M02_MasterTemplete/DataFlow/M02_DF_Panel.ts +++ b/M02_MasterTemplete/DataFlow/M02_DF_Panel.ts @@ -10,12 +10,15 @@ import { currentLanguageIndex } from "@ui/ui_template_locale"; import { createButton, el } from "@ui/ui_template_elements"; +import { openModal } from "@ui/ui_template_modal"; import type { CfLogic } from "./M02_DF_Model"; import { createPaper } from "./M02_DF_Paper"; +import { renderStandards } from "./M02_DF_Standards"; import "./M02_DF_Panel.css"; const TEXT = { Big: ["크게 보기", "Full screen"], + Standards: ["표준 표", "Standards"], Toggle: ["흐름도", "Flow"], ToggleOpen: ["흐름도 펴기", "Open the flow panel"], ToggleClose: ["흐름도 접기", "Collapse the flow panel"], @@ -122,9 +125,24 @@ export function mountFlowPanel(host: HTMLElement, opts: FlowPanelOpts): FlowPane toggle, el("strong", { className: "m02-dfp__title", text: opts.title }), sm(tf("Big"), () => expand()), + sm(tf("Standards"), () => openStandards()), ], }); + /** 「표준 표」(단위 · 금액 표준) — 고치기는 시스템 관리자만(보기만이면 칸 · 단추를 막음) */ + const openStandards = (): void => { + openModal({ + title: tf("Standards"), + closeLabel: tf("Close"), + mount: (box: HTMLElement) => { + const lock = el("fieldset", { className: "m02-dfp__lock" }); + lock.disabled = !!opts.readOnly; + box.append(lock); + renderStandards(lock, { change: () => paper.redraw() }, { title: false }); + }, + }); + }; + /* 펼친 패널 */ const costBox = el("details", { className: "m02-dfp__cost",