feat(836-3): 공용 단가산출 보기 고르기에서 「단가산출 상세」 탭 걷음 — 수식 보기 하나

- M01 단가산출 기초 · M02 단가산출 · 일위대가 줄 모달 머리의 보기 고르기 단추 없음
- 수식 문서 없는 줄(일위대가 로직 줄 등)은 단가산출 상세 몸만 보임(빈 화면 없음)
- 낡은 시험 여섯(보기 둘 확인) = 보기 고르기 없음 확인으로 고침
This commit is contained in:
2026-11-15 13:32:24 +09:00
parent 6f3daf7f3b
commit af5d6a46d3
11 changed files with 36 additions and 96 deletions
+2 -7
View File
@@ -47,7 +47,6 @@ import { tl } from "./M01_MasterData_UI_LogicLab_Text";
import { askBasicInfo } from "./M01_MasterData_UI_LogicLab_Basic";
import { saveRevised } from "./M01_MasterData_UI_LogicLab_Revise";
import { buildLogicSide } from "./M01_MasterData_UI_LogicLab_Side";
import { createViewPicker } from "./M01_MasterData_UI_LogicLab_View";
import { createStackScreen } from "../A00_Common/line_stack_screen";
import { buildHeadBar } from "./M01_MasterData_UI_Head";
import { fetchSessionUser } from "../A06_Login/A06_Login_Api_Fetch";
@@ -123,10 +122,7 @@ export async function mountM01LogicLab(
const editor = el("div", { className: "m01-logic__editor" });
// 로직 상세 — 왼쪽 지금 내용 · 오른쪽 접는 패널 「원문」
const panes = buildLogicSide(editor);
// 보기 고르기 — 머리줄 [신규 로직] 왼쪽
const views = createViewPicker(editor, (v) => {
if (v === "stack") stack.draw(opened?.origKey ?? "", true);
});
editor.dataset.view = "stack"; // 보기 = 수식 하나(836-3) — 「단가산출 상세」 덩이는 CSS 로 숨김
const errors = el("div", {
className: "ui-banner ui-banner--danger m01-logic__reasons",
attrs: { hidden: "" },
@@ -233,7 +229,7 @@ export async function mountM01LogicLab(
list.root.hidden = !listing || !loaded;
waiting.hidden = loaded;
panes.root.hidden = !opened;
back.hidden = views.root.hidden = listing;
back.hidden = listing;
// 로직을 골라야 뜻 있는 단추 = 목록에선 숨김(요구 693 · [신규 로직]만 보임)
copyButton.hidden = deleteButton.hidden = discardButton.hidden = saveButton.hidden = listing;
if (!opened) return;
@@ -542,7 +538,6 @@ export async function mountM01LogicLab(
title: tx("Title"),
status: [pending],
buttons: [
views.root,
createButton({
label: tl("New"),
variant: "filled",