@opsnow-mcp/opsnow-mcp-common-ui-server 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -308,14 +308,10 @@ export const CurrencySwitcherSchema = z.object({
|
|
|
308
308
|
labels: z.string().optional().describe("문구 개별 커스텀 객체 변수명 — Partial<CurrencySwitcherLabels>, 우선순위 labels > 앱 i18n 리소스(common.currency_switcher.*) > 패키지 내장 ko/en/ja ({placeholder} 템플릿 치환 지원). 기준 통화 행 문구는 baseCurrencyDescription, 히스토리 테이블 첫 컬럼 머리는 payerColumnLabel 키로 교체"),
|
|
309
309
|
size: z.enum(["small", "medium"]).optional().describe("트리거 크기"),
|
|
310
310
|
disabled: z.boolean().optional().describe("비활성화 여부"),
|
|
311
|
-
//
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
// customRate: z.string().optional().describe("직접 입력 시뮬레이션 환율 상태 변수명 (number | null, controlled 모드 — 미지정 시 내부 관리)"),
|
|
316
|
-
// onCustomRateChange: z.string().optional().describe("직접 입력 환율 변경 핸들러 함수명 — (rate, context) => void 형태, 저장되지 않는 what-if 값 통지 (onChange는 호출되지 않음)"),
|
|
317
|
-
// showDetail: z.boolean().optional().describe("환율 설정(직접 입력 시뮬레이션) 섹션 노출 여부 (기본값: true)"),
|
|
318
|
-
// historyMode: z.enum(["auto", "popup"]).optional().describe("히스토리 열림 방식 — 'popup'이면 항상 화면 중앙 팝업, 'auto'는 다중 환율=팝업/단일 환율·기준 통화=인라인 분기 (기본값: 'auto')"),
|
|
311
|
+
// 환율 설정(직접 입력 · 시뮬레이션) 영역 props — dropdown 컴포넌트 쪽. 대상 통화는 항상 현재 선택 통화(value)
|
|
312
|
+
customRate: z.string().optional().describe("직접 입력 시뮬레이션 환율 상태 변수명 (number | null, controlled 모드 — 미지정 시 내부 관리)"),
|
|
313
|
+
onCustomRateChange: z.string().optional().describe("직접 입력 환율 변경 핸들러 함수명 — (rate, context) => void 형태, 저장되지 않는 what-if 값 통지 (onChange는 호출되지 않음)"),
|
|
314
|
+
showDetail: z.boolean().optional().describe("환율 설정(직접 입력 시뮬레이션) 섹션 노출 여부 (기본값: false). true여도 선택 통화가 기준 통화면 환산이 없어 노출되지 않음"),
|
|
319
315
|
});
|
|
320
316
|
// Forms 컴포넌트 함수 - 배열 반환
|
|
321
317
|
export function createFormsComponent() {
|
|
@@ -1201,13 +1197,12 @@ export function createFormsComponent() {
|
|
|
1201
1197
|
entries.push(["baseCurrency", `'${args.baseCurrency}'`]);
|
|
1202
1198
|
if (args.nativeCurrency)
|
|
1203
1199
|
entries.push(["nativeCurrency", `'${args.nativeCurrency}'`]);
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
// if (args.historyMode) entries.push(["historyMode", `'${args.historyMode}'`]);
|
|
1200
|
+
if (args.customRate)
|
|
1201
|
+
entries.push(["customRate", args.customRate]);
|
|
1202
|
+
if (args.onCustomRateChange)
|
|
1203
|
+
entries.push(["onCustomRateChange", args.onCustomRateChange]);
|
|
1204
|
+
if (args.showDetail !== undefined)
|
|
1205
|
+
entries.push(["showDetail", String(args.showDetail)]);
|
|
1211
1206
|
if (args.showHistory !== undefined)
|
|
1212
1207
|
entries.push(["showHistory", String(args.showHistory)]);
|
|
1213
1208
|
if (args.renderChart)
|