2c0a97f2ba
- components/builder/* 폐기 (12-grid 미완성 빌더 14개 파일)
- components/template-builder/TemplateBuilder.tsx 신규
(자유배치 + 3뷰 + Zustand 스토어 + 드래그/리사이즈/히스토리/격자)
- admin/builder/page.tsx 진입점 전환 (BuilderLayout → TemplateBuilder)
- 타입 정리: FreePosition / TemplateComponent / ViewConfig / Card /
Dashboard / CardConnection 추가, 레거시(GridPosition/TemplateKind/
DEFAULT_COMPONENT_LAYOUTS/CANVAS_KEYWORDS) @deprecated 표기
- v2-* 마이그레이션 1차:
· 완전: v2-table-list (ResizeObserver), v2-table-search-widget (@container)
· 경량: button/input/select/date/text-display/card-display/aggregation-widget
(withContainerQuery HOC)
- 다크 모드 대응: Tailwind dark: variant 21패턴 71곳 치환
- /test-card-responsive PoC 검증 페이지
세션 후반 버그 픽스 (phase1-log §7):
- test-card-responsive (main) 그룹 밖 이동 (AppLayout 탭 시스템 회피)
- useRegistryPalette default_size {width,height}/{w,h} 포맷 정규화
- dark: variant 중복 체인 정리
검증: (A) 반응형 메커니즘, (B) TemplateBuilder UI 통과
(C) 기존 VEX 화면은 마이그레이션 미완 상태라 Phase 2 이후 개별 진행
스펙: notes/gbpark/2026-04-10-card-engine-final-spec.md
로그: notes/gbpark/2026-04-10-card-engine-phase1-log.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
/**
|
|
* V2Input 컴포넌트 정의
|
|
*
|
|
* 텍스트, 숫자, 비밀번호 등 다양한 입력 타입을 지원하는 통합 입력 컴포넌트
|
|
*/
|
|
|
|
import { ComponentCategory } from "@/types/component";
|
|
import { createComponentDefinition } from "../../utils/createComponentDefinition";
|
|
import { V2FieldConfigPanel } from "@/components/v2/config-panels/V2FieldConfigPanel";
|
|
import { V2Input } from "@/components/v2/V2Input";
|
|
import { withContainerQuery } from "../../hoc/withContainerQuery";
|
|
|
|
export const V2InputDefinition = createComponentDefinition({
|
|
id: "v2-input",
|
|
name: "V2 입력",
|
|
description: "텍스트, 숫자, 비밀번호 등 다양한 입력 타입 지원",
|
|
category: ComponentCategory.INPUT,
|
|
web_type: "text",
|
|
version: "2.0.0",
|
|
component: withContainerQuery(V2Input, "v2-input"),
|
|
|
|
default_size: { width: 200, height: 36 },
|
|
|
|
// 아이콘
|
|
icon: "TextCursorInput",
|
|
|
|
// 태그
|
|
tags: ["input", "text", "number", "v2"],
|
|
|
|
// 설정 패널
|
|
config_panel: V2FieldConfigPanel,
|
|
});
|
|
|
|
export default V2InputDefinition;
|