auto: 2026-11-01 12:05 (ESD_LAPTOP)

This commit is contained in:
2026-11-01 12:05:30 +09:00
parent 4432c18816
commit e6ea6db51d
22 changed files with 650 additions and 143 deletions
+13 -2
View File
@@ -47,8 +47,10 @@ export interface PlanKitParams {
idle?: () => boolean;
onMode: () => void;
onSelect: () => void;
/** 사업연도 시작(연도 고름). */
/** 사업연도 시작(새 세트 고름 · 새 선 처음 해). */
yearStart?: () => number;
/** 마지막 서버 세트 셈(왼쪽 세트 줄 덩이 수 · 고친 뒤 = null). */
sets?: () => ReadonlyArray<{ key: string; parts: number }> | null;
points?: PlanKitPoints;
/** 페이지 키(되돌리기 · 다시하기 · 재기 끔) — 긋기 · 고르기보다 먼저. */
onKey?: (event: KeyboardEvent) => boolean;
@@ -99,6 +101,7 @@ export function createPlanKit(params: PlanKitParams): PlanKit {
commitPoints,
showPoints: (list, next) => (points ? points.show(list, next) : params.show(next)),
enabled: idle,
year: () => params.yearStart?.() ?? new Date().getFullYear(),
editable,
onSelect: params.onSelect,
});
@@ -119,7 +122,15 @@ export function createPlanKit(params: PlanKitParams): PlanKit {
respan: draw.respan,
});
const pieces = featureShown(page, "years")
? createPlanPieces({ network, edit, editable, yearOptions: props.yearOptions, commit })
? createPlanPieces({
network,
edit,
editable,
setOptions: props.setOptions,
assign: props.assign,
commit,
sets: params.sets,
})
: null;
const marks = points
? createPlanPoints({