- B08 줄 [?][<][>][저장][초기화] · POST quantity/reset · 초안 넷 비움 · 이정 저장본 다시 읽음 - B08 B09 쪽 이동 = 저장 뒤 POST quantity/complete · 실패면 머묾 - B09 줄 [?][<][>][초기화] · [내역 초기화] → [초기화] 하나(POST estimation/reset) - B09 [>] = 고친 값 저장 → POST estimation/complete → DRAFT.next(인쇄 미리보기) · 초안 없으면 흐림 - 시험: 새 test_298_2_b08_b09_buttons · test_184_3 · test_304 · test_481_2 고쳐 씀 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
/* =============================================================================
|
|
* B09_Draft_Print_UI.ts
|
|
* 인쇄 미리보기 등록 입구(PLAN 302-1 · 초안) — B09 셸이 `import.meta.glob("./draft/*_UI.ts")` 로 불러올 때
|
|
* 좌측 하단 고정 줄(`DRAFT.actions`)에 [인쇄 미리보기] 단추 → #/b09-print(`…_Print_Route`) ·
|
|
* [>] 다음 길(`DRAFT.next` · 저장 · 단계 6 완료 뒤 · 요구 298-2)
|
|
* 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.next = () => navigateTo(ROUTE.path as RoutePath);
|
|
|
|
DRAFT.actions.push(() => {
|
|
const button = createButton({
|
|
label: "인쇄 미리보기",
|
|
variant: "ghost",
|
|
onClick: () => navigateTo(ROUTE.path as RoutePath),
|
|
});
|
|
button.dataset.b09Print = "";
|
|
return button;
|
|
});
|