pop-field 컴포넌트 전체 구현 (types, component, config, registry): - 6개 서브타입 (text/number/date/select/auto/numpad) - 섹션 기반 레이아웃 (summary/form, auto 열 수 계산) - 저장 탭 5섹션 (테이블/읽기/입력/숨은/자동생성 필드) - 자동생성 레이아웃 연결 (linkedFieldId) - 숨은 필드 DB/JSON 소스 선택 (JsonKeySelect 재사용) - 채번 규칙 API 연동 (getAvailableNumberingRulesForScreen) - 저장 탭 섹션별 접기/펼치기 토글 - 팔레트 4곳 등록 + index.ts 활성화
28 lines
682 B
TypeScript
28 lines
682 B
TypeScript
"use client";
|
|
|
|
/**
|
|
* POP 컴포넌트 자동 등록 진입점
|
|
*
|
|
* [역할]
|
|
* - 각 컴포넌트 파일을 import하면 해당 파일 끝의 registerComponent()가 실행되어 자동 등록됨
|
|
* - 예: import "./pop-text" → pop-text.tsx 실행 → PopComponentRegistry.registerComponent() 호출
|
|
*/
|
|
|
|
// 공통 타입 re-export (외부에서 필요 시 사용 가능)
|
|
export * from "./types";
|
|
|
|
// POP 컴포넌트 등록
|
|
import "./pop-text";
|
|
import "./pop-icon";
|
|
import "./pop-dashboard";
|
|
import "./pop-card-list";
|
|
|
|
import "./pop-button";
|
|
import "./pop-string-list";
|
|
import "./pop-search";
|
|
|
|
import "./pop-field";
|
|
|
|
// 향후 추가될 컴포넌트들:
|
|
// import "./pop-list";
|