refactor(861-2): 영어 글 걷기 ⓓ — M02 글 표 짝 → 한국어 글 하나
- M02 글 표 13 개(호표 · 노무 · 서고 · 단가산출 좌측 · 주 단추) 짝 327 개 → 문자열 하나 · 표 타입 → `string` - 읽는 곳 `TEXT[k][currentLanguageIndex] ?? TEXT[k][0]` → `TEXT[k]` · 안 쓰게 된 import · 「[한국어, 영어]」 머리 주석 걷음 - 시험: 글 소스를 짝 꼴로 뽑거나 대조하던 4 개(test_860_3 · 721 · 804_7 · m02_labor_promote_flag)를 새 꼴로 - 표 값 대조 327 같음 · typecheck 0 · 관련 시험 132 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
import { createButton } from "@ui/ui_template_button";
|
||||
import { el, showToast } from "@ui/ui_template_elements";
|
||||
import { loadingError, showLoading } from "@ui/ui_template_loading";
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
|
||||
import { askConfirm, openModal } from "@ui/ui_template_modal";
|
||||
import { call, readTemplate, saveTemplate } from "./M02_MasterTemplete_Api_Fetch";
|
||||
import { openFindPicker } from "./M02_MasterTemplete_Find_Pick";
|
||||
@@ -32,16 +32,16 @@ import {
|
||||
} from "./logic/M02_Hopyo_Imported_Model";
|
||||
|
||||
const TEXT = {
|
||||
Title: ["가져온 식 단가산출 — 단산{n}", "Imported build-up — block {n}"],
|
||||
Reused: ["같은 내용 {k} 를 다시 씀", "Reusing same content {k}"],
|
||||
Made: ["{k} 만듦(엑셀 단가 그대로)", "{k} made (Excel prices)"],
|
||||
Have: ["같은 내용 {k} 가 이미 있음 — 그것을 엶", "Same content {k} exists — opened"],
|
||||
Save: ["저장", "Save"],
|
||||
Saved: ["{k} 저장함", "{k} saved"],
|
||||
Discard: ["저장 안 한 고침이 있음 — 버리고 닫을까?", "Discard unsaved edits?"],
|
||||
Close: ["닫기", "Close"],
|
||||
} as const satisfies Record<string, readonly [string, string]>;
|
||||
const t = (k: keyof typeof TEXT): string => TEXT[k][currentLanguageIndex as 0 | 1] ?? TEXT[k][0];
|
||||
Title: "가져온 식 단가산출 — 단산{n}",
|
||||
Reused: "같은 내용 {k} 를 다시 씀",
|
||||
Made: "{k} 만듦(엑셀 단가 그대로)",
|
||||
Have: "같은 내용 {k} 가 이미 있음 — 그것을 엶",
|
||||
Save: "저장",
|
||||
Saved: "{k} 저장함",
|
||||
Discard: "저장 안 한 고침이 있음 — 버리고 닫을까?",
|
||||
Close: "닫기",
|
||||
} as const satisfies Record<string, string>;
|
||||
const t = (k: keyof typeof TEXT): string => TEXT[k];
|
||||
const why = (e: unknown): string => (e instanceof Error ? e.message : String(e));
|
||||
|
||||
export interface ImportedOptions {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
import { createBadge } from "@ui/ui_template_badge";
|
||||
import { createButton } from "@ui/ui_template_button";
|
||||
import { el } from "@ui/ui_template_elements";
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
|
||||
import { openModal } from "@ui/ui_template_modal";
|
||||
import { createTable } from "@ui/ui_template_table";
|
||||
import { createText } from "@ui/ui_template_text";
|
||||
@@ -29,37 +29,36 @@ import {
|
||||
} from "./logic/M02_Hopyo_Imported_Model";
|
||||
|
||||
const TEXT = {
|
||||
Imported: ["가져온 식", "Imported formula"],
|
||||
Same: ["검산 같음", "Check matches"],
|
||||
Diff: ["검산 다름 {n}", "Check differs {n}"],
|
||||
NoCheck: ["검산 없음", "No check"],
|
||||
Basis: ["단가 기준", "Price basis"],
|
||||
ToOurs: ["우리 단가로", "Use our prices"],
|
||||
ToExcel: ["엑셀 단가로", "Use Excel prices"],
|
||||
Source: ["원본 글 보기", "Show source text"],
|
||||
SourceTitle: ["원본 글", "Source text"],
|
||||
Row: ["행", "Row"],
|
||||
Text: ["글", "Text"],
|
||||
Excel: ["엑셀", "Excel"],
|
||||
Now: ["지금", "Now"],
|
||||
Group: ["묶음", "Group"],
|
||||
Draft: ["미리 보기 — 수식은 [저장] 뒤 고침", "Preview — edit formulas after [Save]"],
|
||||
Unlinked: ["이음 없는 자원 {n}", "Unlinked resources {n}"],
|
||||
Quote: ["견적 {n}", "Quotes {n}"],
|
||||
Link: ["이음 고르기", "Pick link"],
|
||||
Gap: ["바꾸기 전 {a} → 후 {b} ({d})", "Before {a} → after {b} ({d})"],
|
||||
QtyLinks: ["소요량 · 계수 이음 {n}", "Quantity / coefficient links {n}"],
|
||||
QtyOpen: ["이음 보기", "Show links"],
|
||||
MyMade: ["내 기계 생성 {n}", "My machines created {n}"],
|
||||
MyUsed: ["내 기계 이음 {n}", "Linked to my machines {n}"],
|
||||
MyPlan: ["만들어질 내 기계 {n}", "My machines to create {n}"],
|
||||
MyTag: ["내 기계", "My machine"],
|
||||
MyNew: ["이번에 만듦 · 값 확인 필요", "Created now · check values"],
|
||||
MyOld: ["있던 내 기계에 이음", "Linked to an existing one"],
|
||||
Close: ["닫기", "Close"],
|
||||
} as const satisfies Record<string, readonly [string, string]>;
|
||||
export const tx = (k: keyof typeof TEXT): string =>
|
||||
TEXT[k][currentLanguageIndex as 0 | 1] ?? TEXT[k][0];
|
||||
Imported: "가져온 식",
|
||||
Same: "검산 같음",
|
||||
Diff: "검산 다름 {n}",
|
||||
NoCheck: "검산 없음",
|
||||
Basis: "단가 기준",
|
||||
ToOurs: "우리 단가로",
|
||||
ToExcel: "엑셀 단가로",
|
||||
Source: "원본 글 보기",
|
||||
SourceTitle: "원본 글",
|
||||
Row: "행",
|
||||
Text: "글",
|
||||
Excel: "엑셀",
|
||||
Now: "지금",
|
||||
Group: "묶음",
|
||||
Draft: "미리 보기 — 수식은 [저장] 뒤 고침",
|
||||
Unlinked: "이음 없는 자원 {n}",
|
||||
Quote: "견적 {n}",
|
||||
Link: "이음 고르기",
|
||||
Gap: "바꾸기 전 {a} → 후 {b} ({d})",
|
||||
QtyLinks: "소요량 · 계수 이음 {n}",
|
||||
QtyOpen: "이음 보기",
|
||||
MyMade: "내 기계 생성 {n}",
|
||||
MyUsed: "내 기계 이음 {n}",
|
||||
MyPlan: "만들어질 내 기계 {n}",
|
||||
MyTag: "내 기계",
|
||||
MyNew: "이번에 만듦 · 값 확인 필요",
|
||||
MyOld: "있던 내 기계에 이음",
|
||||
Close: "닫기",
|
||||
} as const satisfies Record<string, string>;
|
||||
export const tx = (k: keyof typeof TEXT): string => TEXT[k];
|
||||
|
||||
export interface PanelState {
|
||||
doc: ImportedDoc;
|
||||
|
||||
@@ -10,39 +10,36 @@
|
||||
import { createBadge } from "@ui/ui_template_badge";
|
||||
import { createButton } from "@ui/ui_template_button";
|
||||
import { el } from "@ui/ui_template_elements";
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
|
||||
import { openModal } from "@ui/ui_template_modal";
|
||||
import { createTable } from "@ui/ui_template_table";
|
||||
import { createText } from "@ui/ui_template_text";
|
||||
import { createToolbar } from "@ui/ui_template_toolbar";
|
||||
|
||||
const TEXT = {
|
||||
Title: ["소요량 · 계수 이음", "Quantity / coefficient links"],
|
||||
Head: [
|
||||
"엑셀 수와 같은 값의 M01 표 칸만 후보 — 고르면 기록만 남고 금액은 그대로",
|
||||
"Only M01 cells with the same value are candidates — picking only records the link",
|
||||
],
|
||||
Line: ["줄", "Line"],
|
||||
Num: ["수", "Value"],
|
||||
State: ["상태", "State"],
|
||||
Cells: ["후보 칸", "Candidate cells"],
|
||||
Cand: ["소요량 후보 {n} · 사람 확인", "{n} candidates · confirm"],
|
||||
Empty: ["표 칸 없음", "No table cell"],
|
||||
Unique: ["후보 유일", "One candidate"],
|
||||
Many: ["후보 여럿", "Several candidates"],
|
||||
Picked: ["고름", "Picked"],
|
||||
Dropped: ["버림", "Dropped"],
|
||||
Pick: ["고르기", "Pick"],
|
||||
Drop: ["버리기", "Drop"],
|
||||
Undo: ["되돌리기", "Undo"],
|
||||
Free: ["풀기", "Release"],
|
||||
Changed: ["M01 값 바뀜 {v}", "M01 value changed {v}"],
|
||||
More: ["외 {n}", "+{n} more"],
|
||||
Close: ["닫기", "Close"],
|
||||
None: ["가져온 식에 소요량 · 계수 수가 없음", "No quantity / coefficient values"],
|
||||
Ctx: ["공종", "Work"],
|
||||
} as const satisfies Record<string, readonly [string, string]>;
|
||||
const tx = (k: keyof typeof TEXT): string => TEXT[k][currentLanguageIndex as 0 | 1] ?? TEXT[k][0];
|
||||
Title: "소요량 · 계수 이음",
|
||||
Head: "엑셀 수와 같은 값의 M01 표 칸만 후보 — 고르면 기록만 남고 금액은 그대로",
|
||||
Line: "줄",
|
||||
Num: "수",
|
||||
State: "상태",
|
||||
Cells: "후보 칸",
|
||||
Cand: "소요량 후보 {n} · 사람 확인",
|
||||
Empty: "표 칸 없음",
|
||||
Unique: "후보 유일",
|
||||
Many: "후보 여럿",
|
||||
Picked: "고름",
|
||||
Dropped: "버림",
|
||||
Pick: "고르기",
|
||||
Drop: "버리기",
|
||||
Undo: "되돌리기",
|
||||
Free: "풀기",
|
||||
Changed: "M01 값 바뀜 {v}",
|
||||
More: "외 {n}",
|
||||
Close: "닫기",
|
||||
None: "가져온 식에 소요량 · 계수 수가 없음",
|
||||
Ctx: "공종",
|
||||
} as const satisfies Record<string, string>;
|
||||
const tx = (k: keyof typeof TEXT): string => TEXT[k];
|
||||
|
||||
export interface QtyCell {
|
||||
표: string;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { createBadge } from "@ui/ui_template_badge";
|
||||
import { createButton, el } from "@ui/ui_template_elements";
|
||||
import { loadingError, showLoading } from "@ui/ui_template_loading";
|
||||
import { currentLanguageIndex, t as L } from "@ui/ui_template_locale";
|
||||
import { t as L } from "@ui/ui_template_locale";
|
||||
import { openModal } from "@ui/ui_template_modal";
|
||||
import { createTable } from "@ui/ui_template_table";
|
||||
import { createText } from "@ui/ui_template_text";
|
||||
@@ -31,32 +31,26 @@ import type { LaborDetailHandle } from "./M02_MasterTemplete_Labor_Detail";
|
||||
import { mountLaborTable } from "./M02_MasterTemplete_Labor_Table";
|
||||
|
||||
const TEXT = {
|
||||
Title: ["제{n}호표 — 엑셀 불러오기", "Unit cost #{n} — Excel import"],
|
||||
Mark: ["표지", "Status"],
|
||||
Excel: ["엑셀 금액", "Excel amount"],
|
||||
Linked: ["✓ 연결됨", "✓ Linked"],
|
||||
Near: ["후보 {n}", "{n} candidates"],
|
||||
None: ["못 이음", "Not linked"],
|
||||
Logic: ["로직 {n}", "Logic {n}"],
|
||||
ExcelPrice: ["엑셀 단가", "Excel price"],
|
||||
OurPrice: ["우리 단가", "우리 단가"],
|
||||
ExcelShort: ["엑셀", "엑셀"],
|
||||
OurShort: ["우리", "우리"],
|
||||
Hint: [
|
||||
"경쟁사 로직 그대로 · 요소만 연결 — 단가산출 줄을 누르면 수식 탭 · 금액 = 엑셀",
|
||||
"Competitor logic kept · elements linked — click a build-up line for its formula",
|
||||
],
|
||||
Sheet: ["엑셀 보기", "Show in Excel"],
|
||||
NearTitle: ["이음 후보 — {name}", "Link candidates — {name}"],
|
||||
NearHint: [
|
||||
"고르기 = [내 일위대가로] 뒤 내 일위대가의 [연결]",
|
||||
"Pick after [To my unit costs] with [Link]",
|
||||
],
|
||||
Key: ["키", "Key"],
|
||||
Name: ["이름", "Name"],
|
||||
Close: ["닫기", "Close"],
|
||||
} as const satisfies Record<string, readonly [string, string]>;
|
||||
const t = (k: keyof typeof TEXT): string => TEXT[k][currentLanguageIndex as 0 | 1] ?? TEXT[k][0];
|
||||
Title: "제{n}호표 — 엑셀 불러오기",
|
||||
Mark: "표지",
|
||||
Excel: "엑셀 금액",
|
||||
Linked: "✓ 연결됨",
|
||||
Near: "후보 {n}",
|
||||
None: "못 이음",
|
||||
Logic: "로직 {n}",
|
||||
ExcelPrice: "엑셀 단가",
|
||||
OurPrice: "우리 단가",
|
||||
ExcelShort: "엑셀",
|
||||
OurShort: "우리",
|
||||
Hint: "경쟁사 로직 그대로 · 요소만 연결 — 단가산출 줄을 누르면 수식 탭 · 금액 = 엑셀",
|
||||
Sheet: "엑셀 보기",
|
||||
NearTitle: "이음 후보 — {name}",
|
||||
NearHint: "고르기 = [내 일위대가로] 뒤 내 일위대가의 [연결]",
|
||||
Key: "키",
|
||||
Name: "이름",
|
||||
Close: "닫기",
|
||||
} as const satisfies Record<string, string>;
|
||||
const t = (k: keyof typeof TEXT): string => TEXT[k];
|
||||
const why = (e: unknown): string => (e instanceof Error ? e.message : String(e));
|
||||
const enc = encodeURIComponent;
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
* 자재목록은 카드 하나로 재료비 칸에 이음 · 글 [한, 영] 짝은 아래 TEXT
|
||||
* ========================================================================== */
|
||||
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
import { wheelZoomsIn } from "../A00_Common/touch_bridge";
|
||||
import { guardMenuAfterDrag, isAuxPanButton } from "../A00_Common/input_prefs";
|
||||
import { createButton, el } from "@ui/ui_template_elements";
|
||||
@@ -15,33 +14,27 @@ import "./M02_MasterTemplete_Labor_Diagram.css";
|
||||
import { createEmpty } from "@ui/ui_template_empty";
|
||||
|
||||
const TEXT = {
|
||||
Inputs: ["넣을 값", "Inputs"],
|
||||
Logic: ["일위대가", "Unit price"],
|
||||
Sum: ["모은 값", "Total"],
|
||||
Empty: ["값 없음", "no value"],
|
||||
Wait: ["계산 전", "not calculated"],
|
||||
Stop: ["멈춤", "stopped"],
|
||||
Zoom_In: ["크게", "Zoom in"],
|
||||
Zoom_Out: ["작게", "Zoom out"],
|
||||
Fit: ["한눈에", "Fit"],
|
||||
Hint: [
|
||||
"가운데 버튼 또는 Space + 끌기로 판 옮김 · Ctrl + 휠로 확대",
|
||||
"Middle button or Space + drag to move · Ctrl + wheel to zoom",
|
||||
],
|
||||
None: ["단가산출 기초가 없음", "No logics yet"],
|
||||
Open: [
|
||||
"누르면 이 로직을 단가산출 기초 화면에서 엶",
|
||||
"Open this logic in the unit-price logic screen",
|
||||
],
|
||||
Goto: ["누르면 이 로직 입력 모달을 엶", "Open this logic's inputs"],
|
||||
Mats: ["자재목록", "Materials"],
|
||||
Auto: ["자동값", "auto"],
|
||||
Same: ["같은 이름의 넣을 값", "Same input name"],
|
||||
Won: ["원", "KRW"],
|
||||
Title: ["다이어그램", "Diagram"],
|
||||
Inputs: "넣을 값",
|
||||
Logic: "일위대가",
|
||||
Sum: "모은 값",
|
||||
Empty: "값 없음",
|
||||
Wait: "계산 전",
|
||||
Stop: "멈춤",
|
||||
Zoom_In: "크게",
|
||||
Zoom_Out: "작게",
|
||||
Fit: "한눈에",
|
||||
Hint: "가운데 버튼 또는 Space + 끌기로 판 옮김 · Ctrl + 휠로 확대",
|
||||
None: "단가산출 기초가 없음",
|
||||
Open: "누르면 이 로직을 단가산출 기초 화면에서 엶",
|
||||
Goto: "누르면 이 로직 입력 모달을 엶",
|
||||
Mats: "자재목록",
|
||||
Auto: "자동값",
|
||||
Same: "같은 이름의 넣을 값",
|
||||
Won: "원",
|
||||
Title: "다이어그램",
|
||||
} as const;
|
||||
|
||||
const td = (key: keyof typeof TEXT): string => TEXT[key][currentLanguageIndex === 1 ? 1 : 0];
|
||||
const td = (key: keyof typeof TEXT): string => TEXT[key];
|
||||
|
||||
/** 상세의 접는 칸 제목 */
|
||||
export const diagramTitle = (): string => td("Title");
|
||||
|
||||
@@ -6,20 +6,17 @@
|
||||
* ========================================================================== */
|
||||
|
||||
import { el } from "@ui/ui_template_elements";
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
|
||||
import type { LaborDoc } from "./M02_MasterTemplete_Labor_Api";
|
||||
import { markCells, markHeads } from "./M02_MasterTemplete_Labor_MatMarks";
|
||||
import { tc } from "./M02_MasterTemplete_Labor_Text";
|
||||
|
||||
const TEXT = {
|
||||
Title: [
|
||||
"전국 자재 — 지역은 프로젝트에서 · 금액 없음(보기만)",
|
||||
"Nationwide materials — region set in the project · no price (view only)",
|
||||
],
|
||||
Code: ["전국", "Nationwide"],
|
||||
Region: ["지역은 프로젝트에서", "Region set in the project"],
|
||||
Title: "전국 자재 — 지역은 프로젝트에서 · 금액 없음(보기만)",
|
||||
Code: "전국",
|
||||
Region: "지역은 프로젝트에서",
|
||||
} as const;
|
||||
const say = (k: keyof typeof TEXT): string => TEXT[k][currentLanguageIndex as 0 | 1] ?? TEXT[k][0];
|
||||
const say = (k: keyof typeof TEXT): string => TEXT[k];
|
||||
|
||||
/** `본뜬.전국자재` 표 — 없으면 [] */
|
||||
export function nationalRows(origin: LaborDoc["본뜬"]): HTMLElement[] {
|
||||
|
||||
@@ -27,7 +27,7 @@ import { createHopyoGrid, hopyoCellClass, hopyoGrid } from "@ui/ui_template_hopy
|
||||
import { openTreeMenu, type TreeMenuItem } from "@ui/ui_template_tree";
|
||||
import { askText, showConfirmDialog } from "@ui/ui_template_modal";
|
||||
import { createText } from "@ui/ui_template_text";
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
|
||||
import { createSourceView } from "../M01_MasterData/M01_MasterData_UI_LogicLab_Source";
|
||||
import { getActiveLayer, getActiveOwner, type ItemLogic } from "./M02_MasterTemplete_Api_Fetch";
|
||||
import { lineId, settle, type LaborFixed, type LaborRef } from "./M02_MasterTemplete_Labor_Calc";
|
||||
@@ -73,20 +73,18 @@ import "@ui/ui_template_general_layout.css";
|
||||
import "./M02_MasterTemplete_Labor.css";
|
||||
|
||||
const TEXT = {
|
||||
QtyHint: [
|
||||
QtyHint:
|
||||
"수량 = 이 일위대가 1 단위에 드는 양(저장) — 구조물 조합 · 공사에서 알약 · 계산 값이 이어지면 그 값이 앞섬",
|
||||
"Quantity = amount per 1 unit of this item (saved) — linked pills · project values take precedence",
|
||||
],
|
||||
NeedQty: ["수량 입력", "Enter quantity"],
|
||||
BasePrice: ["기준단위 단가", "Unit price"],
|
||||
QtyAmount: ["수량 반영 금액", "Amount × qty"],
|
||||
Alias: ["별칭", "Alias"],
|
||||
AliasAsk: ["별칭(비우면 지움)", "Alias (empty = clear)"],
|
||||
RemoveAsk: ["「{value}」 줄을 지울까?", "Delete line “{value}”?"],
|
||||
Empty: ["빈 값 {n}", "{n} empty"],
|
||||
NotNumber: ["수가 아님", "Not a number"],
|
||||
} as const satisfies Record<string, readonly [string, string]>;
|
||||
const t = (k: keyof typeof TEXT): string => TEXT[k][currentLanguageIndex as 0 | 1] ?? TEXT[k][0];
|
||||
NeedQty: "수량 입력",
|
||||
BasePrice: "기준단위 단가",
|
||||
QtyAmount: "수량 반영 금액",
|
||||
Alias: "별칭",
|
||||
AliasAsk: "별칭(비우면 지움)",
|
||||
RemoveAsk: "「{value}」 줄을 지울까?",
|
||||
Empty: "빈 값 {n}",
|
||||
NotNumber: "수가 아님",
|
||||
} as const satisfies Record<string, string>;
|
||||
const t = (k: keyof typeof TEXT): string => TEXT[k];
|
||||
|
||||
/** 비율 고정 줄(705-3) — 수량 = 율 */
|
||||
const isRate = (row: LaborRow): boolean => !!row.고정?.비율;
|
||||
|
||||
@@ -1,197 +1,168 @@
|
||||
/* =============================================================================
|
||||
* M02_MasterTemplete_Labor_Text.ts
|
||||
* 일위대가 조합 화면 글자 — [한국어, 영어]
|
||||
* 일위대가 조합 화면 글자
|
||||
* ========================================================================== */
|
||||
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
|
||||
const TEXT = {
|
||||
Title: ["일위대가 조합", "Unit-price combination"],
|
||||
ReadOnly: ["읽기만 — 이 층은 고칠 수 없음", "Read only — this layer cannot be edited"],
|
||||
Sub: ["구분", "Category"],
|
||||
Detail: ["세부 구분", "Detail"],
|
||||
All: ["전체", "All"],
|
||||
Empty: ["조합이 없음 — [새 조합]으로 만듦", "No combinations — press [New combination]"],
|
||||
New: ["새 조합", "New combination"],
|
||||
Delete: ["지우기", "Delete"],
|
||||
Save: ["저장", "Save"],
|
||||
Saved: ["저장함", "Saved"],
|
||||
Deleted: ["지움", "Deleted"],
|
||||
Stale: ["그 사이 조합 파일이 바뀜 — 다시 열어 주세요", "The file changed — reopen it"],
|
||||
Loading: ["불러오는 중…", "Loading…"],
|
||||
Search: ["이름 · 키로 찾기", "Search by name or key"],
|
||||
NeedName: ["이름을 적어야 저장됨", "A name is required"],
|
||||
NeedUnit: ["단위를 골라야 저장됨", "Pick a unit to save"],
|
||||
Draft_Hint: [
|
||||
"저장 전 단가산출 — 일위대가 [저장] 때 만듦(그 전엔 서버에 없음)",
|
||||
"Unsaved — created when the unit-price item is saved",
|
||||
],
|
||||
Draft_Kept: ["일위대가에 담음 — 일위대가 [저장] 때 함께 저장", "Kept — saved with the item"],
|
||||
Draft_LinkLater: ["새 단가산출 줄 — 일위대가 [저장] 뒤 수량 잇기", "Link quantity after saving"],
|
||||
Load_Failed: ["불러오지 못함", "Load failed"],
|
||||
Origin_Self: ["원본", "Original"],
|
||||
Logics_Title: ["단가산출 기초", "Unit-price logics"],
|
||||
Col_Order: ["차례", "No."],
|
||||
Col_Name: ["이름", "Name"],
|
||||
Col_Alias: ["별칭", "Alias"],
|
||||
Alias_Edit: ["눌러서 별칭 고침", "Click to edit alias"],
|
||||
Col_Unit: ["결과 단위", "Result unit"],
|
||||
Col_Move: ["순서", "Move"],
|
||||
Up: ["위로", "Up"],
|
||||
Down: ["아래로", "Down"],
|
||||
Labor_Drag: ["끌어 순서 바꿈", "Drag to reorder"],
|
||||
Remove: ["삭제", "Delete"],
|
||||
Labor_Option: ["옵션", "Options"],
|
||||
Labor_Edit: ["수정", "Edit"],
|
||||
Labor_Sangeun: ["단가산출 보기", "Build-up"],
|
||||
Ref_Shared: [
|
||||
"서고 원본을 고침 — 이 문서를 쓰는 모든 구조물에 따라감",
|
||||
"Edits the library original — every structure using it follows",
|
||||
],
|
||||
Ref_ReadOnly: ["이 층은 고칠 수 없음 — 읽기만", "Read-only layer"],
|
||||
Ref_Copy: [
|
||||
"프로젝트 사본 — 보기만 · 바꾸려면 M02 에서 고친 뒤 구조물 다시 지정",
|
||||
"Project copy — view only · edit in M02, then re-assign the structure",
|
||||
],
|
||||
Sk_NoCopy: ["사본에 이 단가산출 문서가 없음", "This copy has no build-up document"],
|
||||
Logic_Direct: [
|
||||
Title: "일위대가 조합",
|
||||
ReadOnly: "읽기만 — 이 층은 고칠 수 없음",
|
||||
Sub: "구분",
|
||||
Detail: "세부 구분",
|
||||
All: "전체",
|
||||
Empty: "조합이 없음 — [새 조합]으로 만듦",
|
||||
New: "새 조합",
|
||||
Delete: "지우기",
|
||||
Save: "저장",
|
||||
Saved: "저장함",
|
||||
Deleted: "지움",
|
||||
Stale: "그 사이 조합 파일이 바뀜 — 다시 열어 주세요",
|
||||
Loading: "불러오는 중…",
|
||||
Search: "이름 · 키로 찾기",
|
||||
NeedName: "이름을 적어야 저장됨",
|
||||
NeedUnit: "단위를 골라야 저장됨",
|
||||
Draft_Hint: "저장 전 단가산출 — 일위대가 [저장] 때 만듦(그 전엔 서버에 없음)",
|
||||
Draft_Kept: "일위대가에 담음 — 일위대가 [저장] 때 함께 저장",
|
||||
Draft_LinkLater: "새 단가산출 줄 — 일위대가 [저장] 뒤 수량 잇기",
|
||||
Load_Failed: "불러오지 못함",
|
||||
Origin_Self: "원본",
|
||||
Logics_Title: "단가산출 기초",
|
||||
Col_Order: "차례",
|
||||
Col_Name: "이름",
|
||||
Col_Alias: "별칭",
|
||||
Alias_Edit: "눌러서 별칭 고침",
|
||||
Col_Unit: "결과 단위",
|
||||
Col_Move: "순서",
|
||||
Up: "위로",
|
||||
Down: "아래로",
|
||||
Labor_Drag: "끌어 순서 바꿈",
|
||||
Remove: "삭제",
|
||||
Labor_Option: "옵션",
|
||||
Labor_Edit: "수정",
|
||||
Labor_Sangeun: "단가산출 보기",
|
||||
Ref_Shared: "서고 원본을 고침 — 이 문서를 쓰는 모든 구조물에 따라감",
|
||||
Ref_ReadOnly: "이 층은 고칠 수 없음 — 읽기만",
|
||||
Ref_Copy: "프로젝트 사본 — 보기만 · 바꾸려면 M02 에서 고친 뒤 구조물 다시 지정",
|
||||
Sk_NoCopy: "사본에 이 단가산출 문서가 없음",
|
||||
Logic_Direct:
|
||||
"M01 로직을 바로 담은 줄 — 단가산출 화면 없음 · 단가산출로 담아 쓰세요(일위대가 [로직 추가])",
|
||||
"Uses the M01 logic directly — add it as a build-up to view or edit",
|
||||
],
|
||||
Lib_SaveFailed: ["저장 못 함", "Save failed"],
|
||||
Ref_Discard: ["저장 안 한 고침을 버리고 닫음?", "Discard unsaved edits?"],
|
||||
Labor_Source: ["원문", "Source"],
|
||||
Labor_SourceHint: [
|
||||
"단가산출 기초 줄을 고르면 그 원문이 보임",
|
||||
"Pick a logic row to see its source",
|
||||
],
|
||||
AddLogic: ["항목 추가", "Add item"],
|
||||
NoLogic: ["단가산출 기초 없음", "No logics yet"],
|
||||
Open: ["열기", "Open"],
|
||||
Pick_Title: ["로직 고르기", "Pick a logic"],
|
||||
Pick_Search: ["이름·키로 찾기", "Search by name or key"],
|
||||
Pick_None: ["찾은 로직 없음", "No logics found"],
|
||||
Pick_Close: ["닫기", "Close"],
|
||||
Pick_Blocked: ["막힘", "Blocked"],
|
||||
Lib_SaveFailed: "저장 못 함",
|
||||
Ref_Discard: "저장 안 한 고침을 버리고 닫음?",
|
||||
Labor_Source: "원문",
|
||||
Labor_SourceHint: "단가산출 기초 줄을 고르면 그 원문이 보임",
|
||||
AddLogic: "항목 추가",
|
||||
NoLogic: "단가산출 기초 없음",
|
||||
Open: "열기",
|
||||
Pick_Title: "로직 고르기",
|
||||
Pick_Search: "이름·키로 찾기",
|
||||
Pick_None: "찾은 로직 없음",
|
||||
Pick_Close: "닫기",
|
||||
Pick_Blocked: "막힘",
|
||||
// 기준 목록 · 계산서 보기(704)
|
||||
Std_Name: ["품명", "Item"],
|
||||
Std_Spec: ["규격", "Spec"],
|
||||
Std_Unit: ["단위", "Unit"],
|
||||
Std_Money: ["금액", "Amount"],
|
||||
Std_Source: ["출처", "Source"],
|
||||
Std_Kind: ["공종", "Work type"],
|
||||
Std_Sheet: ["계산서", "Cost sheet"],
|
||||
Std_Put: ["담기", "Add"],
|
||||
Std_Sum: ["계", "Total"],
|
||||
Std_Hint: ["줄을 누르면 계산서 · [담기]", "Click a row for its sheet · [Add]"],
|
||||
Prev_Labor: ["노무비", "Labor"],
|
||||
Prev_Material: ["재료비", "Material"],
|
||||
Prev_Expense: ["경비", "Expense"],
|
||||
Prev_Sum: ["합계", "Total"],
|
||||
Std_Name: "품명",
|
||||
Std_Spec: "규격",
|
||||
Std_Unit: "단위",
|
||||
Std_Money: "금액",
|
||||
Std_Source: "출처",
|
||||
Std_Kind: "공종",
|
||||
Std_Sheet: "계산서",
|
||||
Std_Put: "담기",
|
||||
Std_Sum: "계",
|
||||
Std_Hint: "줄을 누르면 계산서 · [담기]",
|
||||
Prev_Labor: "노무비",
|
||||
Prev_Material: "재료비",
|
||||
Prev_Expense: "경비",
|
||||
Prev_Sum: "합계",
|
||||
// 일위대가 상세(39-3) — 구조물 열마다 하나
|
||||
Labor_Unit: ["단위", "Unit"],
|
||||
Labor_Origin: ["본뜬 곳", "Copied from"],
|
||||
Labor_Mats: ["자재목록", "Materials"],
|
||||
Labor_NoMat: ["담은 자재 없음", "No materials yet"],
|
||||
Labor_QtyCol: ["수량산출", "Quantity"],
|
||||
Labor_Hand: ["수기", "Manual"],
|
||||
Labor_QtyPick: ["누르면 수기 입력 · 엑셀에서 고르기", "Manual or pick a cell"],
|
||||
Labor_PickWait: ["계산이 끝난 뒤 고름", "Wait for the calculation"],
|
||||
Labor_NoArea: ["이 열 면적산출을 못 읽음", "Area sheet not loaded"],
|
||||
Labor_BadCell: ["칸 주소가 틀림", "Invalid cell"],
|
||||
Labor_QtyNow: ["지금 수량", "Now"],
|
||||
Labor_Unlink: ["연결 풀기", "Unlink"],
|
||||
Labor_Base: ["기준", "Base"],
|
||||
Labor_Applied: ["반영", "Applied"],
|
||||
Labor_BasePrice: ["기준 단가", "Base price"],
|
||||
Labor_AppliedSum: ["반영 금액", "Applied amount"],
|
||||
Labor_Calc_Fail: ["계산 못 함", "Calculation failed"],
|
||||
Labor_Unit: "단위",
|
||||
Labor_Origin: "본뜬 곳",
|
||||
Labor_Mats: "자재목록",
|
||||
Labor_NoMat: "담은 자재 없음",
|
||||
Labor_QtyCol: "수량산출",
|
||||
Labor_Hand: "수기",
|
||||
Labor_QtyPick: "누르면 수기 입력 · 엑셀에서 고르기",
|
||||
Labor_PickWait: "계산이 끝난 뒤 고름",
|
||||
Labor_NoArea: "이 열 면적산출을 못 읽음",
|
||||
Labor_BadCell: "칸 주소가 틀림",
|
||||
Labor_QtyNow: "지금 수량",
|
||||
Labor_Unlink: "연결 풀기",
|
||||
Labor_Base: "기준",
|
||||
Labor_Applied: "반영",
|
||||
Labor_BasePrice: "기준 단가",
|
||||
Labor_AppliedSum: "반영 금액",
|
||||
Labor_Calc_Fail: "계산 못 함",
|
||||
// 구분(50-4)
|
||||
Kind_Logic: ["단가산출", "Logic"],
|
||||
Kind_Promote: ["일위대가화", "Unit-price item"],
|
||||
Kind_Combo: ["일위조합", "Combination"],
|
||||
Lib_System: ["마스터", "Master"],
|
||||
Lib_Company: ["회사", "Company"],
|
||||
Lib_Personal: ["개인", "Personal"],
|
||||
Labor_AlreadyRef: ["이미 담은 일위대가 조합 — {value}", "Already added — {value}"],
|
||||
Labor_Empty: ["빈 값 {n}", "{n} empty"],
|
||||
Labor_NoQty: [
|
||||
"수량 안 넣은 줄 {n} — 합계에서 빠짐",
|
||||
"{n} rows without quantity — left out of the sum",
|
||||
],
|
||||
Labor_Lost: [
|
||||
"로직 입력이 바뀌어 저장 때 빠지는 값 — {value}",
|
||||
"Inputs no longer in the logic (dropped on save) — {value}",
|
||||
],
|
||||
Labor_Code: ["코드", "Code"],
|
||||
Labor_Spec: ["규격", "Spec"],
|
||||
Labor_AlreadyMat: ["이미 담은 자재 — {value}", "Already added — {value}"],
|
||||
Kind_Logic: "단가산출",
|
||||
Kind_Promote: "일위대가화",
|
||||
Kind_Combo: "일위조합",
|
||||
Lib_System: "마스터",
|
||||
Lib_Company: "회사",
|
||||
Lib_Personal: "개인",
|
||||
Labor_AlreadyRef: "이미 담은 일위대가 조합 — {value}",
|
||||
Labor_Empty: "빈 값 {n}",
|
||||
Labor_NoQty: "수량 안 넣은 줄 {n} — 합계에서 빠짐",
|
||||
Labor_Lost: "로직 입력이 바뀌어 저장 때 빠지는 값 — {value}",
|
||||
Labor_Code: "코드",
|
||||
Labor_Spec: "규격",
|
||||
Labor_AlreadyMat: "이미 담은 자재 — {value}",
|
||||
// 로직 자재(103-1)
|
||||
Labor_InLogicMat: ["로직 자재에 있는 품목 — {value}", "Already a logic material — {value}"],
|
||||
LogicMat_Inside: [
|
||||
"로직 단가 안 금액 — 합계에 다시 안 더함",
|
||||
"Inside the logic price — not added again",
|
||||
],
|
||||
LogicMat_Picked: ["바꾼 품목", "Changed item"],
|
||||
Labor_InLogicMat: "로직 자재에 있는 품목 — {value}",
|
||||
LogicMat_Inside: "로직 단가 안 금액 — 합계에 다시 안 더함",
|
||||
LogicMat_Picked: "바꾼 품목",
|
||||
// 자재목록 세 칸(148-4)
|
||||
Mark_Kind: ["자재구분", "Material type"],
|
||||
Mark_Separate: ["별도계상", "Separate"],
|
||||
Mark_Haul: ["운반비", "Haulage"],
|
||||
Mark_Gov: ["관급", "Gov-supplied"],
|
||||
Mark_Private: ["사급", "Contractor-supplied"],
|
||||
Mark_Direct: ["직접계산", "Direct"],
|
||||
Mark_In: ["포함", "Included"],
|
||||
Mark_Out: ["미포함", "Excluded"],
|
||||
In_Title: ["옵션 — {value}", "Inputs — {value}"],
|
||||
In_None: ["이 로직은 넣을 값이 없음", "This logic has no inputs"],
|
||||
In_Memo: ["메모", "Memo"],
|
||||
In_Layer: ["켜쌓기 적용율 (%)", "Layered-course rate (%)"],
|
||||
In_LayerHint: [
|
||||
"0 초과 200 이하 · 소수 한 자리 · 빈 칸 = 100",
|
||||
"0 < rate ≤ 200 · 1 decimal · empty = 100",
|
||||
],
|
||||
Labor_Layer: ["켜쌓기 {n}%", "Layered {n}%"],
|
||||
In_QtyCell: ["면적산출 칸", "Area sheet cell"],
|
||||
In_QtyEmpty: ["빈 칸", "empty cell"],
|
||||
In_QtyHand: ["수기 입력", "Manual"],
|
||||
In_QtyNeed: ["수기 입력 수량을 수로 적음", "Enter a number"],
|
||||
In_Bad: ["범위 밖 값이 있음 — 고친 뒤 확인", "Out-of-range values — fix first"],
|
||||
In_Ok: ["확인", "OK"],
|
||||
In_Close: ["닫기", "Close"],
|
||||
Lib_Name: ["이름", "Name"],
|
||||
Mark_Kind: "자재구분",
|
||||
Mark_Separate: "별도계상",
|
||||
Mark_Haul: "운반비",
|
||||
Mark_Gov: "관급",
|
||||
Mark_Private: "사급",
|
||||
Mark_Direct: "직접계산",
|
||||
Mark_In: "포함",
|
||||
Mark_Out: "미포함",
|
||||
In_Title: "옵션 — {value}",
|
||||
In_None: "이 로직은 넣을 값이 없음",
|
||||
In_Memo: "메모",
|
||||
In_Layer: "켜쌓기 적용율 (%)",
|
||||
In_LayerHint: "0 초과 200 이하 · 소수 한 자리 · 빈 칸 = 100",
|
||||
Labor_Layer: "켜쌓기 {n}%",
|
||||
In_QtyCell: "면적산출 칸",
|
||||
In_QtyEmpty: "빈 칸",
|
||||
In_QtyHand: "수기 입력",
|
||||
In_QtyNeed: "수기 입력 수량을 수로 적음",
|
||||
In_Bad: "범위 밖 값이 있음 — 고친 뒤 확인",
|
||||
In_Ok: "확인",
|
||||
In_Close: "닫기",
|
||||
Lib_Name: "이름",
|
||||
// 서고 목록표(51-4)
|
||||
Lib_PrecomboAll: ["일위대가", "Unit-cost items"],
|
||||
Lib_None: ["일위대가 없음", "No unit-cost items"],
|
||||
Lib_Unsorted: ["미분류", "Unsorted"],
|
||||
Lib_NewHere: ["여기에 새 일위대가", "New unit-cost item here"],
|
||||
Lib_Create: ["생성", "Create"],
|
||||
Lib_Copy: ["복사", "Copy"],
|
||||
Lib_Delete: ["삭제", "Delete"],
|
||||
Lib_Key: ["키", "Key"],
|
||||
Lib_Unit: ["단위", "Unit"],
|
||||
Lib_Base: ["기준 금액", "Base amount"],
|
||||
Lib_Date: ["고친 날", "Modified"],
|
||||
Lib_PrecomboAll: "일위대가",
|
||||
Lib_None: "일위대가 없음",
|
||||
Lib_Unsorted: "미분류",
|
||||
Lib_NewHere: "여기에 새 일위대가",
|
||||
Lib_Create: "생성",
|
||||
Lib_Copy: "복사",
|
||||
Lib_Delete: "삭제",
|
||||
Lib_Key: "키",
|
||||
Lib_Unit: "단위",
|
||||
Lib_Base: "기준 금액",
|
||||
Lib_Date: "고친 날",
|
||||
// 서고 구분 · 연결(51-12)
|
||||
// 엑셀 꼴 격자(704-3)
|
||||
Grid_Title: ["일위대가표", "Unit-price sheet"],
|
||||
Grid_NoQty: ["수량 없음", "No quantity"],
|
||||
Grid_Apart: ["별도계상 · 합계 밖", "Separate · not in total"],
|
||||
Grid_Title: "일위대가표",
|
||||
Grid_NoQty: "수량 없음",
|
||||
Grid_Apart: "별도계상 · 합계 밖",
|
||||
// 고정 줄 비고(860-3) — 판 · 줄 종류마다 값을 낳은 곳
|
||||
Grid_Ours: ["우리 단가 — {name}", "우리 단가 — {name}"],
|
||||
Grid_Excel: ["엑셀 값", "엑셀 값"],
|
||||
Grid_NoOurs: ["우리 단가 없음 — 엑셀 값", "우리 단가 없음 — 엑셀 값"],
|
||||
Grid_ExcelSk: ["엑셀에서 가져온 단가산출", "엑셀에서 가져온 단가산출"],
|
||||
Grid_Hand: ["손 단가(붙인 값)", "Hand price (pasted)"],
|
||||
Grid_Kept: ["넣을 때 값", "넣을 때 값"],
|
||||
Grid_Rate: ["율 — {base} 기준", "율 — {base} 기준"],
|
||||
Grid_RateRows: ["고른 줄", "고른 줄"],
|
||||
Grid_Head: ["일위대가", "Unit price"],
|
||||
Grid_Mine: ["내 자료집", "My library"],
|
||||
} as const satisfies Record<string, readonly [string, string]>;
|
||||
Grid_Ours: "우리 단가 — {name}",
|
||||
Grid_Excel: "엑셀 값",
|
||||
Grid_NoOurs: "우리 단가 없음 — 엑셀 값",
|
||||
Grid_ExcelSk: "엑셀에서 가져온 단가산출",
|
||||
Grid_Hand: "손 단가(붙인 값)",
|
||||
Grid_Kept: "넣을 때 값",
|
||||
Grid_Rate: "율 — {base} 기준",
|
||||
Grid_RateRows: "고른 줄",
|
||||
Grid_Head: "일위대가",
|
||||
Grid_Mine: "내 자료집",
|
||||
} as const satisfies Record<string, string>;
|
||||
|
||||
export type ComboTextKey = keyof typeof TEXT;
|
||||
|
||||
export function tc(key: ComboTextKey): string {
|
||||
const entry = TEXT[key];
|
||||
return entry[currentLanguageIndex as 0 | 1] ?? entry[0];
|
||||
return TEXT[key];
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* ========================================================================== */
|
||||
|
||||
import { el } from "@ui/ui_template_elements";
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
|
||||
import { askConfirm } from "@ui/ui_template_modal";
|
||||
import { createTable, type Cell } from "@ui/ui_template_table";
|
||||
import { createText } from "@ui/ui_template_text";
|
||||
@@ -20,29 +20,19 @@ import {
|
||||
} from "./M02_MasterTemplete_Api_Fetch";
|
||||
|
||||
const TEXT = {
|
||||
Title: ["쓰는 곳이 있음", "In use"],
|
||||
Warn: [
|
||||
"이 항목을 쓰는 곳 {n} — 지우면 그 줄도 지워짐(금액 다시 셈)",
|
||||
"Used in {n} place(s) — deleting also removes those lines (amounts recalculated)",
|
||||
],
|
||||
Blocked: [
|
||||
"권한 밖 쓰는 곳 {n} — 지울 수 없음(그 층 주인이 먼저 줄을 뺌)",
|
||||
"{n} use(s) outside your permission — cannot delete (their owner must remove the lines first)",
|
||||
],
|
||||
Note: [
|
||||
"프로젝트 사본 · B09 공사는 굳힌 값이라 영향 없음 · 되돌림 = 나무 맨 위 메뉴 [중복 찾기] › 되돌림",
|
||||
"Project copies and B09 estimates keep frozen values · Undo = tree top menu [Find duplicates] › Undo",
|
||||
],
|
||||
Kind: ["종류", "Type"],
|
||||
Name: ["이름", "Name"],
|
||||
Key: ["키", "Key"],
|
||||
Line: ["줄", "Line"],
|
||||
Gone: ["지울 키", "Deleting"],
|
||||
Layer: ["층", "Layer"],
|
||||
Ok: ["확인", "OK"],
|
||||
Title: "쓰는 곳이 있음",
|
||||
Warn: "이 항목을 쓰는 곳 {n} — 지우면 그 줄도 지워짐(금액 다시 셈)",
|
||||
Blocked: "권한 밖 쓰는 곳 {n} — 지울 수 없음(그 층 주인이 먼저 줄을 뺌)",
|
||||
Note: "프로젝트 사본 · B09 공사는 굳힌 값이라 영향 없음 · 되돌림 = 나무 맨 위 메뉴 [중복 찾기] › 되돌림",
|
||||
Kind: "종류",
|
||||
Name: "이름",
|
||||
Key: "키",
|
||||
Line: "줄",
|
||||
Gone: "지울 키",
|
||||
Layer: "층",
|
||||
Ok: "확인",
|
||||
} as const;
|
||||
const tx = (key: keyof typeof TEXT, n = 0): string =>
|
||||
String(TEXT[key][currentLanguageIndex as 0 | 1] ?? TEXT[key][0]).replace("{n}", String(n));
|
||||
const tx = (key: keyof typeof TEXT, n = 0): string => String(TEXT[key]).replace("{n}", String(n));
|
||||
|
||||
/** 쓰는 줄 하나(서버 `M02_Library_Delete.users`) */
|
||||
export interface DeleteUser {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
import { createBadge } from "@ui/ui_template_badge";
|
||||
import { createButton, el, showToast } from "@ui/ui_template_elements";
|
||||
import { createEmpty } from "@ui/ui_template_empty";
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
|
||||
import { askConfirm, openModal } from "@ui/ui_template_modal";
|
||||
import { createTable, type Cell } from "@ui/ui_template_table";
|
||||
import { createText } from "@ui/ui_template_text";
|
||||
@@ -19,65 +19,46 @@ import { call, StaleError, type Layer, type LibraryKind } from "./M02_MasterTemp
|
||||
import "./M02_MasterTemplete_Library_Same.css";
|
||||
|
||||
const TEXT = {
|
||||
Title: ["중복 찾기", "Find duplicates"],
|
||||
Close: ["닫기", "Close"],
|
||||
Intro: [
|
||||
Title: "중복 찾기",
|
||||
Close: "닫기",
|
||||
Intro:
|
||||
"내용이 같은 문서 묶음 — [남김]을 고르고 [합치기]하면 이 층의 나머지 문서를 지우고 쓰는 곳을 남김으로 옮김 · [되돌림]으로 되살림",
|
||||
"Groups with the same content — pick [Keep] and [Merge]: other docs on this layer are removed and their users point to the kept one · [Undo] restores",
|
||||
],
|
||||
None: ["같은 내용 문서 없음", "No duplicates"],
|
||||
Loading: ["찾는 중…", "Searching…"],
|
||||
Same: ["내용 같음", "Same content"],
|
||||
QtyOnly: ["수량만 다름", "Quantity differs"],
|
||||
Layer: ["층", "Layer"],
|
||||
Key: ["키", "Key"],
|
||||
Name: ["이름", "Name"],
|
||||
Class: ["구분", "Category"],
|
||||
Used: ["쓰는 곳", "Used by"],
|
||||
Keep: ["남김", "Keep"],
|
||||
Kept: ["남김 ✓", "Kept ✓"],
|
||||
Merge: ["합치기", "Merge"],
|
||||
Upper: ["위 층", "Upper"],
|
||||
system: ["마스터", "Master"],
|
||||
company: ["회사", "Company"],
|
||||
personal: ["개인", "Personal"],
|
||||
project: ["프로젝트", "Project"],
|
||||
Ask: [
|
||||
"「{keep}」 하나로 합침 — 이 층 문서 {n} 개를 지우고 쓰는 곳 참조를 옮김 · 지운 문서는 [되돌림]으로 되살림",
|
||||
"Merge into “{keep}” — remove {n} doc(s) on this layer and move their users · [Undo] restores",
|
||||
],
|
||||
AskQty: [
|
||||
"⚠ 실무 수량(엑셀 규격)이 서로 다름 — 지운 문서의 실무 수량 기록은 되돌림 때까지 안 보임",
|
||||
"⚠ Practice quantities differ — removed docs' quantity record is hidden until undo",
|
||||
],
|
||||
Done: ["합침 {n} · 옮긴 쓰는 곳 {m}", "Merged {n} · moved users {m}"],
|
||||
Left: [
|
||||
"남김 — 「{key}」 쓰는 곳 {n}(권한 밖 · 못 옮김): {list}",
|
||||
"Kept “{key}” — {n} user(s) not moved: {list}",
|
||||
],
|
||||
Gone: ["합친 것 · 지운 것(되돌림)", "Merged · deleted (undo)"],
|
||||
GoneNone: ["합친 것 · 지운 것 없음", "Nothing merged or deleted"],
|
||||
Deleted: ["지움", "Deleted"],
|
||||
When: ["때", "When"],
|
||||
Into: ["남김", "Kept as"],
|
||||
Undo: ["되돌림", "Undo"],
|
||||
AskUndo: [
|
||||
"「{key}」 되돌림 — 문서를 되살리고 옮긴 쓰는 곳 {n} 을 다시 이 문서로",
|
||||
"Undo “{key}” — restore it and point its {n} user(s) back",
|
||||
],
|
||||
AskUndoDeleted: [
|
||||
None: "같은 내용 문서 없음",
|
||||
Loading: "찾는 중…",
|
||||
Same: "내용 같음",
|
||||
QtyOnly: "수량만 다름",
|
||||
Layer: "층",
|
||||
Key: "키",
|
||||
Name: "이름",
|
||||
Class: "구분",
|
||||
Used: "쓰는 곳",
|
||||
Keep: "남김",
|
||||
Kept: "남김 ✓",
|
||||
Merge: "합치기",
|
||||
Upper: "위 층",
|
||||
system: "마스터",
|
||||
company: "회사",
|
||||
personal: "개인",
|
||||
project: "프로젝트",
|
||||
Ask: "「{keep}」 하나로 합침 — 이 층 문서 {n} 개를 지우고 쓰는 곳 참조를 옮김 · 지운 문서는 [되돌림]으로 되살림",
|
||||
AskQty: "⚠ 실무 수량(엑셀 규격)이 서로 다름 — 지운 문서의 실무 수량 기록은 되돌림 때까지 안 보임",
|
||||
Done: "합침 {n} · 옮긴 쓰는 곳 {m}",
|
||||
Left: "남김 — 「{key}」 쓰는 곳 {n}(권한 밖 · 못 옮김): {list}",
|
||||
Gone: "합친 것 · 지운 것(되돌림)",
|
||||
GoneNone: "합친 것 · 지운 것 없음",
|
||||
Deleted: "지움",
|
||||
When: "때",
|
||||
Into: "남김",
|
||||
Undo: "되돌림",
|
||||
AskUndo: "「{key}」 되돌림 — 문서를 되살리고 옮긴 쓰는 곳 {n} 을 다시 이 문서로",
|
||||
AskUndoDeleted:
|
||||
"「{key}」 되돌림 — 지운 문서를 되살리고 쓰는 곳 {n} 에서 지운 줄을 다시 넣음(그새 고친 곳은 건너뜀)",
|
||||
"Undo “{key}” — restore deleted doc(s) and put the lines back in {n} user(s) (skips ones edited since)",
|
||||
],
|
||||
Undone: ["되돌림 — 쓰는 곳 {n}", "Undone — users {n}"],
|
||||
Stale: ["그새 바뀜 — 다시 찾음", "Changed meanwhile — searching again"],
|
||||
Undone: "되돌림 — 쓰는 곳 {n}",
|
||||
Stale: "그새 바뀜 — 다시 찾음",
|
||||
} as const;
|
||||
type TextKey = keyof typeof TEXT;
|
||||
const tx = (key: TextKey, vars: Record<string, string | number> = {}): string =>
|
||||
Object.entries(vars).reduce(
|
||||
(s, [k, v]) => s.replace(`{${k}}`, String(v)),
|
||||
String(TEXT[key][currentLanguageIndex as 0 | 1] ?? TEXT[key][0]),
|
||||
);
|
||||
Object.entries(vars).reduce((s, [k, v]) => s.replace(`{${k}}`, String(v)), String(TEXT[key]));
|
||||
|
||||
/** 나무 메뉴 글 */
|
||||
export const sameLabel = (): string => tx("Title");
|
||||
|
||||
@@ -6,22 +6,17 @@
|
||||
* 취소 = null. 물음 꼴 = 부품 `askChoice`.
|
||||
* ========================================================================== */
|
||||
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
import { askChoice } from "@ui/ui_template_modal";
|
||||
import { StaleError } from "./M02_MasterTemplete_Api_Fetch";
|
||||
|
||||
const TEXT = {
|
||||
Title: ["같은 내용 있음", "Same content exists"],
|
||||
Message: [
|
||||
"이 층에 내용이 같은 문서가 이미 있음 — {list}",
|
||||
"A document with the same content already exists on this layer — {list}",
|
||||
],
|
||||
More: [" 외 {n}", " and {n} more"],
|
||||
Use: ["그것을 씀", "Use it"],
|
||||
New: ["그래도 새로", "Create anyway"],
|
||||
Title: "같은 내용 있음",
|
||||
Message: "이 층에 내용이 같은 문서가 이미 있음 — {list}",
|
||||
More: " 외 {n}",
|
||||
Use: "그것을 씀",
|
||||
New: "그래도 새로",
|
||||
} as const;
|
||||
const tx = (key: keyof typeof TEXT): string =>
|
||||
TEXT[key][currentLanguageIndex as 0 | 1] ?? TEXT[key][0];
|
||||
const tx = (key: keyof typeof TEXT): string => TEXT[key];
|
||||
|
||||
export interface SameHit {
|
||||
키: string;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
import { createButton, el, showConfirmDialog, showToast } from "@ui/ui_template_elements";
|
||||
import { createText } from "@ui/ui_template_text";
|
||||
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
|
||||
import { askConfirm } from "@ui/ui_template_modal";
|
||||
import {
|
||||
editPrecomboTree,
|
||||
@@ -28,35 +28,22 @@ import { sangeunList } from "./M02_MasterTemplete_UI_Side_Sangeun";
|
||||
import type { Selection } from "./M02_MasterTemplete_UI_Main";
|
||||
|
||||
const TEXT = {
|
||||
Reset: ["초기화", "Reset"], // 848-3 — 그 기초와 같게([되돌림] = 저장 안 한 고침 버림과 다름)
|
||||
ResetTip: [
|
||||
"고친 값 · 기계 고침 · 수식 고침을 걷어 그 기초와 같게 — 옵션 · 기본정보는 그대로",
|
||||
"Clear edited values, machine and formula edits to match the base — options and basic info stay",
|
||||
],
|
||||
Delete: ["삭제", "Delete"],
|
||||
DeleteTip: [
|
||||
"이 항목을 지움 — 쓰는 곳이 있으면 먼저 알림",
|
||||
"Delete this item — warns first if used",
|
||||
],
|
||||
ResetAsk: [
|
||||
"고침 {n} 개를 걷어 그 기초와 같게{k} — 옵션 · 기본정보는 그대로",
|
||||
"Clear {n} edit(s) to match the base{k} — options and basic info stay",
|
||||
],
|
||||
ResetList: ["걷힐 것", "To clear"],
|
||||
Restored: [" (빼 둔 줄 {k} 개 되살림)", " ({k} removed line(s) restored)"],
|
||||
Nothing: ["되돌릴 고침이 없음", "Nothing to revert"],
|
||||
Done: ["초기화했음", "Reset done"],
|
||||
DeleteAsk: ["「{name}」 을(를) 지울까?", "Delete 「{name}」?"],
|
||||
Deleted: ["지웠음", "Deleted"],
|
||||
Undo: ["되돌림", "Revert"],
|
||||
UndoAsk: [
|
||||
"저장 안 한 고친 것(기본정보 · 수식)을 버리고 저장 뒤 상태로 되돌릴까?",
|
||||
"Discard unsaved edits (info · formula) and revert to the saved state?",
|
||||
],
|
||||
Failed: ["못 했음 — {why}", "Failed — {why}"],
|
||||
Reset: "초기화", // 848-3 — 그 기초와 같게([되돌림] = 저장 안 한 고침 버림과 다름)
|
||||
ResetTip: "고친 값 · 기계 고침 · 수식 고침을 걷어 그 기초와 같게 — 옵션 · 기본정보는 그대로",
|
||||
Delete: "삭제",
|
||||
DeleteTip: "이 항목을 지움 — 쓰는 곳이 있으면 먼저 알림",
|
||||
ResetAsk: "고침 {n} 개를 걷어 그 기초와 같게{k} — 옵션 · 기본정보는 그대로",
|
||||
ResetList: "걷힐 것",
|
||||
Restored: " (빼 둔 줄 {k} 개 되살림)",
|
||||
Nothing: "되돌릴 고침이 없음",
|
||||
Done: "초기화했음",
|
||||
DeleteAsk: "「{name}」 을(를) 지울까?",
|
||||
Deleted: "지웠음",
|
||||
Undo: "되돌림",
|
||||
UndoAsk: "저장 안 한 고친 것(기본정보 · 수식)을 버리고 저장 뒤 상태로 되돌릴까?",
|
||||
Failed: "못 했음 — {why}",
|
||||
} as const;
|
||||
const tx = (key: keyof typeof TEXT): string =>
|
||||
String(TEXT[key][currentLanguageIndex as 0 | 1] ?? TEXT[key][0]);
|
||||
const tx = (key: keyof typeof TEXT): string => String(TEXT[key]);
|
||||
const fill = (text: string, vars: Record<string, string | number>): string =>
|
||||
Object.entries(vars).reduce((s, [k, v]) => s.replace(`{${k}}`, String(v)), text);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
import { createSegment } from "@ui/ui_template_segment";
|
||||
import { el } from "@ui/ui_template_elements";
|
||||
import { currentLanguageIndex, t as L } from "@ui/ui_template_locale";
|
||||
import { t as L } from "@ui/ui_template_locale";
|
||||
import { createSidePanels } from "@ui/ui_template_side_panels";
|
||||
import { createText } from "@ui/ui_template_text";
|
||||
import { createButton } from "@ui/ui_template_button";
|
||||
@@ -44,22 +44,21 @@ export const tabOf = (logic: {
|
||||
const OPEN_FROM = 1500;
|
||||
|
||||
const TEXT = {
|
||||
Origin: ["가져온 단가산출 — 어디서 왔나", "Imported build-up — where from"],
|
||||
Program: ["프로그램", "Program"],
|
||||
File: ["파일", "File"],
|
||||
Block: ["블록", "Block"],
|
||||
Rows: ["행", "Rows"],
|
||||
When: ["가져온 때", "Imported"],
|
||||
Marks: ["표지", "Flags"],
|
||||
MarksN: ["{n} 개", "{n}"],
|
||||
Clauses: ["엑셀 글의 품셈 정보", "Standard clauses in the Excel text"],
|
||||
NoClause: ["엑셀 글에 품셈 절 글 없음", "No standard clause in the Excel text"],
|
||||
Hint: ["우리 기초 원문은 위 찾기로", "Find our base above to see its source"],
|
||||
More: ["표지 모두 보기", "Show all flags"],
|
||||
Sure: ["원파일 확정", "Source-file read"],
|
||||
Origin: "가져온 단가산출 — 어디서 왔나",
|
||||
Program: "프로그램",
|
||||
File: "파일",
|
||||
Block: "블록",
|
||||
Rows: "행",
|
||||
When: "가져온 때",
|
||||
Marks: "표지",
|
||||
MarksN: "{n} 개",
|
||||
Clauses: "엑셀 글의 품셈 정보",
|
||||
NoClause: "엑셀 글에 품셈 절 글 없음",
|
||||
Hint: "우리 기초 원문은 위 찾기로",
|
||||
More: "표지 모두 보기",
|
||||
Sure: "원파일 확정",
|
||||
} as const;
|
||||
const tx = (k: keyof typeof TEXT, n = 0): string =>
|
||||
TEXT[k][currentLanguageIndex === 1 ? 1 : 0].replace("{n}", String(n));
|
||||
const tx = (k: keyof typeof TEXT, n = 0): string => TEXT[k].replace("{n}", String(n));
|
||||
|
||||
/** 「어디서 왔나」 카드 — 표지는 셋까지(더 = 단추로 펼침) */
|
||||
function originCard(o: Origin): HTMLElement {
|
||||
|
||||
@@ -97,7 +97,7 @@ def test_736_1_항목_추가_찾기_창_하나():
|
||||
"""736-1 — [로직 추가] → [항목 추가] · [자재 추가] 걷음 · 재료 = 자재 목록 · 자리마다 탭 막음."""
|
||||
locale = _text(ROOT / "ui_template" / "ui_template_locale_m2.ts")
|
||||
assert "[로직 추가]" not in locale and "기초는 [항목 추가]로" in locale
|
||||
assert 'AddLogic: ["항목 추가", "Add item"]' in _text(M02 / "M02_MasterTemplete_Labor_Text.ts")
|
||||
assert 'AddLogic: "항목 추가"' in _text(M02 / "M02_MasterTemplete_Labor_Text.ts")
|
||||
table = _text(M02 / "M02_MasterTemplete_Labor_Table.ts")
|
||||
for text in (table,): # 806-1 — 조합 · 서고 = 같은 Labor_Table
|
||||
assert "addMaterialButton" not in text and "addMat" not in text
|
||||
|
||||
@@ -199,7 +199,7 @@ def test_M02_수식탭_M01과_같은_단추_저장_한_번() -> None:
|
||||
assert "getDoc: () => one.flush().then(() => one.getDoc())" in view
|
||||
acts = _src("M02_MasterTemplete/M02_MasterTemplete_Main_Actions.ts")
|
||||
assert (
|
||||
'Undo: ["되돌림", "Revert"],' in acts and "ctx.page.save.disabled = sk() && !dirty;" in acts
|
||||
'Undo: "되돌림",' in acts and "ctx.page.save.disabled = sk() && !dirty;" in acts
|
||||
)
|
||||
assert "if (sk()) ctx.page.reload.hidden = true;" in acts # 단가산출 상세 = [새로고침] 숨김
|
||||
main = _src("M02_MasterTemplete/M02_MasterTemplete_UI_Main.ts")
|
||||
|
||||
@@ -23,7 +23,7 @@ FILES = [GRID, "M02_MasterTemplete/M02_MasterTemplete_Labor_Calc.ts",
|
||||
"M02_MasterTemplete/M02_MasterTemplete_Labor_Grid.ts"] # fmt: skip
|
||||
# 글 = `Labor_Text.ts` 그대로(한국어 칸) — 이어 붙이면 다른 파일 `TEXT` 와 이름이 겹쳐 글만 뽑음
|
||||
_TEXT = (ROOT / "M02_MasterTemplete/M02_MasterTemplete_Labor_Text.ts").read_text("utf-8")
|
||||
_KO = dict(re.findall(r'^ (\w+): \["([^"]*)"', _TEXT, re.M))
|
||||
_KO = dict(re.findall(r'^ (\w+):\s*"([^"]*)"', _TEXT, re.M))
|
||||
PRELUDE = (
|
||||
f"\nconst tc = (k) => ({json.dumps(_KO, ensure_ascii=False)})[k] ?? k;"
|
||||
+ r"""
|
||||
|
||||
@@ -96,7 +96,7 @@ def test_화면_글은_일위대가화_저장_키는_승격():
|
||||
|
||||
m02 = Path(HERE).parents[1] / "M02_MasterTemplete"
|
||||
text = (m02 / "M02_MasterTemplete_Labor_Text.ts").read_text("utf-8")
|
||||
assert 'Kind_Promote: ["일위대가화", "Unit-price item"],' in text
|
||||
assert 'Kind_Promote: "일위대가화",' in text
|
||||
assert "단가승격" not in text
|
||||
rows = (m02 / "M02_MasterTemplete_Labor_Rows.ts").read_text("utf-8")
|
||||
assert 'tc("Kind_Promote")' in rows
|
||||
|
||||
Reference in New Issue
Block a user