Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QfHKQs7J3hQELKMWQMUJEy
23 lines
1011 B
TypeScript
23 lines
1011 B
TypeScript
/* =============================================================================
|
|
* B09_Draft_Print_UI.ts
|
|
* 인쇄 미리보기 등록 입구(PLAN 302-1 · 초안) — B09 셸이 `import.meta.glob("./draft/*_UI.ts")` 로 불러올 때
|
|
* 좌측 하단 고정 줄(`DRAFT.actions`)에 [인쇄 미리보기] 단추 → #/b09-print(`…_Print_Route`)
|
|
* draft 폴더째 지우면 단추 · 길 · 서버 길이 함께 사라짐
|
|
* ========================================================================== */
|
|
|
|
import type { RoutePath } from "@config/config_frontend";
|
|
import { createButton } from "@ui/ui_template_elements";
|
|
import { navigateTo } from "../../A00_Common/router";
|
|
import { DRAFT } from "../B09_Estimation_UI_Tabs";
|
|
import { ROUTE } from "./B09_Draft_Print_Route";
|
|
|
|
DRAFT.actions.push(() => {
|
|
const button = createButton({
|
|
label: "인쇄 미리보기",
|
|
variant: "ghost",
|
|
onClick: () => navigateTo(ROUTE.path as RoutePath),
|
|
});
|
|
button.dataset.b09Print = "";
|
|
return button;
|
|
});
|