/* ============================================================================= * M02_MasterTemplete_UI_Side_Sangeun.ts * 좌측 맨 위 「단가산출」 칸(717-2a · 요구서 4장 12) — 서고 칸(`UI_Side_Library` · 716-4)에 단가산출 몫만 줌: * 종류 sangeun(SK-) · 그 층 목록표 고름 · 새 문서 몸 · 글. 층 단추는 페이지가 만듦(칸마다 따로 · 기본 개인). * 문서 누름 = 편집 칸(UI_Main 종류 sangeun = `Sangeun_View`) · 켜진 층 단추 다시 누름 = 목록표(`Library_List`). * ========================================================================== */ import { t as L } from "@ui/ui_template_locale"; import { sangeunBlank } from "./M02_MasterTemplete_Library_List"; import type { Selection } from "./M02_MasterTemplete_UI_Main"; import { buildLibrarySection, type LibraryHandle, type LibraryOptions, type LibraryScope, } from "./M02_MasterTemplete_UI_Side_Library"; /** 그 층 목록표 고름(켜진 층 단추 다시 누름) */ export const sangeunList = (scope: LibraryScope): Selection => ({ layer: scope.layer, owner: scope.owner, canWrite: scope.canWrite, projectId: null, kind: "sangeun", name: "", label: L("M02_SangeunTitle"), }); export type SangeunOptions = Pick< LibraryOptions, "scope" | "bar" | "confirmLeave" | "onOpen" | "getOpen" >; export const buildSangeunSection = (opt: SangeunOptions): LibraryHandle => buildLibrarySection({ ...opt, kind: "sangeun", list: sangeunList, blank: sangeunBlank, text: { none: L("M02_SangeunNone"), newHere: L("M02_SangeunNewHere") }, });