feat(848-3): 제어 구역 층 색 · 「고침」 글 걷음 · 기계 한 줄 되돌림 · M01 기초 제어 구역 엶 · 기초 [초기화] · 알림 지킴 줄 [위 값으로]

- 셈 · 산출근거 · 제어 구역 = layeredCover(문서, 위덮음) · 기본 = upperOf · putCover(…, ①) · 칸 테두리 = sourcesOf(나 파랑 · 위 주황)
- 작업량 묶음 = mergeWork(①, ②) · ① 과 다른 칸만(pruneWorkLayer) · 위 층 시간당이면 일당 = 내 고침
- 기계 줄 머리 = 이름 단추 테두리 + [원래 값](그 기계 고침 통째) · 기계 보기 저장 안 한 바뀜 = 파랑
- M01 단가산출 기초 = 시스템 관리자에게 제어 구역 엶 · 머리 [초기화] = 기계 고침 목록 확인 → 걷고 저장
- 갱신 알림 = 지킴 줄 따로 표(위 값 전 → 후 · 내 값 · [위 값으로] = 그 칸 고침 지움 → [저장]) · 다시복사 · 지워짐 = 지금 꼴
- 걷기 셈 = common_util_formula_doc_cover_drop.ts(dropCover · dropPath) · 시험 test_848_3_cover_drop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 20:29:20 +09:00
co-authored by Claude Opus 5.5
parent bfe27d0ad7
commit 64972fcaec
12 changed files with 463 additions and 86 deletions
+7 -6
View File
@@ -11,6 +11,7 @@
* ========================================================================== */
import { API_BASE_URL } from "@config/config_frontend";
import { setUiDiff } from "@ui/ui_template_button";
import { attachCollapsible, createPanelCard } from "@ui/ui_template_collapsible";
import { createInputField, createSelectField, el } from "@ui/ui_template_elements";
import { createFindList } from "@ui/ui_template_find_list";
@@ -305,7 +306,7 @@ export function createMachineSheet(o: MachineSheetOptions) {
f.input.inputMode = "decimal";
f.input.dataset.key = k;
f.input.readOnly = ro || read;
f.root.classList.toggle("is-changed", !sameVal(v, orig.값?.[k]));
setUiDiff(f.input, !sameVal(v, orig.값?.[k]) ? "mine" : null); // 848-3 저장 안 한 바뀜 = 파랑
f.input.addEventListener("change", () => {
const t = f.input.value.replace(/,/g, "").trim();
const box = (cur.값 ??= {});
@@ -322,7 +323,7 @@ export function createMachineSheet(o: MachineSheetOptions) {
else delete box[k];
} else box[k] = n;
if ((MACHINE_INPUTS as readonly string[]).includes(k)) recoef();
f.root.classList.toggle("is-changed", !sameVal(box[k], orig.값?.[k]));
setUiDiff(f.input, !sameVal(box[k], orig.값?.[k]) ? "mine" : null); // 848-3 저장 안 한 바뀜 = 파랑
changed(PICKY.includes(k));
if ((MACHINE_INPUTS as readonly string[]).includes(k)) drawBase();
});
@@ -341,13 +342,13 @@ export function createMachineSheet(o: MachineSheetOptions) {
f.select.dataset.key = k;
f.select.disabled = ro;
attachPickSearch(f.select, { placeholder: L("MF_PickFind") });
f.root.classList.toggle("is-changed", !sameVal(now, orig.값?.[k]));
setUiDiff(f.select, !sameVal(now, orig.값?.[k]) ? "mine" : null); // 848-3 저장 안 한 바뀜 = 파랑
f.select.addEventListener("change", () => {
const box = (cur.값 ??= {});
if (f.select.value) box[k] = f.select.value;
else if (k in (orig.값 ?? {})) box[k] = orig.값![k] === "" ? "" : null;
else delete box[k];
f.root.classList.toggle("is-changed", !sameVal(box[k], orig.값?.[k]));
setUiDiff(f.select, !sameVal(box[k], orig.값?.[k]) ? "mine" : null); // 848-3 저장 안 한 바뀜 = 파랑
changed(true);
});
return f.root;
@@ -400,10 +401,10 @@ export function createMachineSheet(o: MachineSheetOptions) {
): HTMLElement => {
const f = createInputField({ label: lab, value: get, size: 28 });
f.input.readOnly = ro;
f.root.classList.toggle("is-changed", get !== was);
setUiDiff(f.input, get !== was ? "mine" : null); // 848-3 저장 안 한 바뀜 = 파랑
f.input.addEventListener("input", () => {
set(f.input.value);
f.root.classList.toggle("is-changed", f.input.value !== was);
setUiDiff(f.input, f.input.value !== was ? "mine" : null); // 848-3 저장 안 한 바뀜 = 파랑
o.onChange?.();
});
return f.root;