fix(m02-df): 재료 조건 찾기 「검색어」 면 틀을 채운 글로 값 물음(fillTemplate)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016PSXsvyDxjNmufteN5bqmt
This commit is contained in:
2026-10-02 00:40:53 +09:00
co-authored by Claude Opus 5.5
parent 85432ae68c
commit fcd45afe9f
@@ -9,6 +9,7 @@ import { currentLanguageIndex } from "@ui/ui_template_locale";
import { el } from "@ui/ui_template_elements";
import { fetchLogics } from "../../M01_MasterData/M01_MasterData_UI_Logic_Api";
import type { CfAnswer, CfQuery } from "./M02_DF_Api";
import { fillTemplate } from "./M02_DF_InputPanel_Build";
import type { CfBreak, CfValues } from "./M02_DF_Eval";
import type { CfElementRef, CfLogic, CfPort } from "./M02_DF_Model";
@@ -190,7 +191,12 @@ export function queriesOf(
unit: e.unit,
slot: { ...e, field: e.rule?.field, op: e.rule?.op },
};
if (e.mode === "rule" && e.rule) q.value = pill(e.rule.from);
// 조건 찾기 — 「검색어」 면 틀에 알약 값을 채운 글 · 그 밖은 이어진 알약 값
if (e.mode === "rule" && e.rule)
q.value =
e.rule.field === "검색어"
? fillTemplate(e.rule.template ?? "", e.rule.slots ?? [], pill).text
: pill(e.rule.from);
return { q, box: b.id, port };
});
const els = inp.elements