feat(M02): 구조물 조합 카드 [삭제] · 일위대가 카드 한 줄 표 — 그 항목 비우기(번호 · 열 그대로 · 물음 한 번 · 비운 뒤 빈 카드) · 좁은 카드 단추 줄 바꿈

40-2 ④ ⑤ — clearPart(40-4) 잇기 · 찬 카드 · 쓸 수 있을 때만 · 실패 = 카드 안 까닭 · Labor_View compact(40-1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016PSXsvyDxjNmufteN5bqmt
This commit is contained in:
2026-10-04 22:37:22 +09:00
co-authored by Claude Opus 5.5
parent ffc76efe9c
commit e3236558bd
4 changed files with 47 additions and 5 deletions
@@ -17,6 +17,7 @@
import { showConfirmDialog, showToast } from "@ui/ui_template_elements";
import type { LinkOptions } from "../A00_Common/spreadsheet/spreadsheet_links";
import {
clearPart,
copyPartFrom,
fetchLaborPills,
fetchStructureNumbers,
@@ -222,6 +223,10 @@ export function createStructurePanel(opts: StructurePanelOptions): StructurePane
warnOnFail: (id) => !!numbers[id],
// 「복사해 가져오기」 · 빈 카드 [복사 생성](39-5) — 집계표 줄 「조회 후 선택」 과 같은 길
onImport: (kind) => void pickCopy(kind, shown ?? undefined),
// 카드 [삭제](40-2) — 그 항목 비우기(서버 clear 길 · 번호 · 열 그대로 · 쓰기 권한 없으면 403)
onClear: async (kind) => {
if (column) await clearPart(kind, column);
},
labor: () => void openEdit("labor"), // 일위대가 카드(보기 갈래 · 39-3) — 도면 다음
// 면적산출 카드 미리보기 수정(31-3) — 전체 편집기와 같은 알약 · 저장 길
sheetEdit: {