v7.0.0 release

This commit is contained in:
HeuJung committed 2026-07-01 10:30:32 +09:00
1 parent 0e7fa04b03
commit c4ea9a6cd1
3582 files changed
+626189 -160151

No files matched your search

@@ -17,6 +17,12 @@ export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectE
searchable?: boolean;
/** 검색 input placeholder */
searchPlaceholder?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용). Select 는 커스텀 드롭다운 루트에
* 개별 data-editor-* 키를 spread 해야 선택/편집이 닿는다(커스텀 루트
* passthrough). basic 컴포넌트라 `{...props}` 로 DOM 표준 속성(id 등)도 함께 흐른다.
*/
editorAttrs?: Record<string, unknown>;
}
/**
* 커스텀 Select 컴포넌트
@@ -0,0 +1,70 @@
import { default as React } from 'react';
/**
* UnifiedIcon 크기 타입
*/
export type UnifiedIconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
/**
* UnifiedIcon Props
*/
export interface UnifiedIconProps {
/**
* 아이콘 지정자
*
* @example
* // Font Awesome (기본)
* "fa:cart-shopping"
* "fa-solid fa-cart-shopping"
* "cart-shopping" // 접두사 없으면 FA 기본
*
* // 외부 SVG 파일
* "svg:/modules/my-module/assets/icon.svg"
*
* // 이미지 파일
* "img:/images/custom-icon.png"
*/
icon: string;
/**
* 아이콘 크기
* - xs: 12px (w-3 h-3)
* - sm: 16px (w-4 h-4)
* - md: 20px (w-5 h-5) - 기본값
* - lg: 24px (w-6 h-6)
* - xl: 32px (w-8 h-8)
*
* @default 'md'
*/
size?: UnifiedIconSize;
/**
* 추가 CSS 클래스
*/
className?: string;
/**
* 색상 (Tailwind 클래스)
*
* @example
* "text-blue-500"
* "text-slate-600 dark:text-slate-300"
*/
color?: string;
/**
* 접근성 레이블
*/
ariaLabel?: string;
}
/**
* UnifiedIcon 컴포넌트
*
* 다양한 아이콘 소스(Font Awesome, SVG, 이미지)를 통합하여 렌더링하는 컴포넌트입니다.
*
* @example
* // Font Awesome 아이콘 (기본)
* <UnifiedIcon icon="fa:cart-shopping" size="md" />
* <UnifiedIcon icon="cart-shopping" /> // 접두사 없으면 FA 기본
*
* // 외부 SVG 파일
* <UnifiedIcon icon="svg:/modules/my-module/assets/icon.svg" size="lg" />
*
* // 이미지 파일
* <UnifiedIcon icon="img:/images/custom-icon.png" size="sm" />
*/
export declare const UnifiedIcon: React.FC<UnifiedIconProps>;
@@ -36,8 +36,10 @@ export { Nav, type NavProps } from './Nav';
export { Section, type SectionProps } from './Section';
export { Svg, type SvgProps } from './Svg';
export { Icon, type IconProps } from './Icon';
export { UnifiedIcon, type UnifiedIconProps, type UnifiedIconSize } from './UnifiedIcon';
export { Code, type CodeProps } from './Code';
export { Pre, type PreProps } from './Pre';
export { Fragment, type FragmentProps } from './Fragment';
export { Hr, type HrProps } from './Hr';
export { I, type IProps } from './I';
export { IconName, type IconStyle, type IconSize } from './IconTypes';
@@ -1,4 +1,5 @@
import { default as React, ReactNode } from 'react';
import { EditorAttrs } from '../../types';
export interface AccordionProps {
/** 기본 열림 상태 */
defaultOpen?: boolean;
@@ -14,6 +15,12 @@ export interface AccordionProps {
children?: ReactNode;
/** 비활성화 여부 */
disabled?: boolean;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* Accordion 집합 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
export interface ActionMenuItem {
id: string | number;
label?: string;
@@ -36,6 +37,12 @@ export interface ActionMenuProps {
* @param item - 클릭된 아이템 전체 객체
*/
onItemClick?: (itemId: string | number, item: ActionMenuItem) => void;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* ActionMenu 집합 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
/**
* 빠른 링크 인터페이스
*/
@@ -19,6 +20,12 @@ export interface AdminFooterProps {
className?: string;
copyrightModalId?: string;
changelogModalId?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* AdminFooter 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/**
* 메뉴 아이템 인터페이스 (API 응답 구조)
*/
@@ -27,6 +28,12 @@ export interface AdminSidebarProps {
className?: string;
/** 현재 로케일 (다국어 메뉴 이름 표시용). 미지정 시 G7Core.locale.current() 자동 사용 */
currentLocale?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* AdminSidebar 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/**
* 알림 타입
*/
@@ -24,6 +25,14 @@ export interface AlertProps {
* 사용자 정의 클래스
*/
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Alert 알림 컴포넌트
@@ -1,10 +1,20 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface BadgeProps {
/** 색상명 직접 지정 (blue/green/red/gray/yellow/... ). variant 보다 우선 적용 */
color?: string;
/** 의미 기반 변형 (success/warning/danger/info/primary/secondary/text). 백엔드 Enum variant() 출력과 매핑 */
variant?: string;
text?: string;
size?: 'sm' | 'md' | 'lg';
className?: string;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* Badge 집합 컴포넌트
@@ -14,13 +24,16 @@ export interface BadgeProps {
* 기본 컴포넌트 조합: Span
*
* @example
* // 레이아웃 JSON 사용 예시
* // 레이아웃 JSON 사용 예시 — 색상 직접 지정
* {
* "name": "Badge",
* "props": {
* "color": "blue",
* "text": "활성"
* }
* "props": { "color": "blue", "text": "활성" }
* }
* @example
* // 의미 기반 variant (백엔드 Enum variant() 출력 바인딩)
* {
* "name": "Badge",
* "props": { "variant": "{{row.option_status_variant}}", "text": "{{row.option_status_label}}" }
* }
*/
export declare const Badge: React.FC<React.PropsWithChildren<BadgeProps>>;
@@ -0,0 +1,43 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface BarChartDataset {
label: string;
data: number[];
backgroundColor?: string;
borderRadius?: number;
/**
* 사용할 Y축 ID. 'y'(기본, 좌측) 또는 'y1'(보조, 우측).
* 단위/규모가 크게 다른 두 계열(예: 판매 수량 vs 매출액)을 한 차트에 그릴 때,
* 한 계열을 'y1' 로 지정하면 각자 스케일로 그려져 작은 값 계열이 묻히지 않는다.
*/
yAxisID?: 'y' | 'y1';
}
export interface BarChartProps {
/** X축 라벨 배열 */
labels: string[];
/** 데이터셋 배열 */
datasets: BarChartDataset[];
/** 차트 높이 (px 숫자, 또는 단위 포함 문자열 — 편집기 text 위젯은 숫자 문자열 전달) */
height?: number | string;
/** 범례 표시 여부 */
showLegend?: boolean;
/** X축 그리드(세로선) 표시 여부 */
showGrid?: boolean;
/** Y축 그리드(가로선) 표시 여부 */
showYGrid?: boolean;
/** Y축 눈금 표시 여부 */
showYAxis?: boolean;
/** 추가 CSS 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* React.memo로 감싸서 props가 같으면 re-render 스킵
* 페이지 로딩바 완료 시 불필요한 리렌더링 방지
*/
export declare const BarChart: React.NamedExoticComponent<BarChartProps>;
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface BreadcrumbItem {
label: string;
href?: string;
@@ -11,6 +12,12 @@ export interface BreadcrumbProps {
homeHref?: string;
maxItems?: number;
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* Breadcrumb 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface CardProps {
title?: string;
content?: string;
@@ -7,6 +8,12 @@ export interface CardProps {
className?: string;
onClick?: () => void;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* Card 집합 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { ActionMenuItem } from './ActionMenu';
import { EditorAttrs } from '../../types';
/**
* CardGrid 셀 자식 요소 타입
*/
@@ -60,6 +61,12 @@ export interface CardGridProps {
showSkeleton?: boolean;
skeletonCount?: number;
skeletonCellChildren?: CardGridCellChild[];
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* CardGrid 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/**
* 카테고리 노드 인터페이스 (CategoryResource API 응답 기반)
*/
@@ -30,6 +31,12 @@ export interface CategoryTreeProps {
onToggle?: (expandedIds: number[]) => void;
/** 선택 변경 콜백: (selectedIds: number[]) => void */
onSelectionChange?: (selectedIds: number[]) => void;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* CategoryTree 집합 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
export interface ChipCheckboxProps {
value: string;
checked?: boolean;
@@ -10,6 +11,12 @@ export interface ChipCheckboxProps {
className?: string;
style?: React.CSSProperties;
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* ChipCheckbox 집합 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
/**
* 전역 window 타입 확장
* 그누보드7 Core의 AuthManager에 접근하기 위한 타입 선언
@@ -60,6 +61,8 @@ export interface ColumnSelectorProps {
* 지정하지 않으면 columns 끝에 추가됩니다.
*/
dynamicColumnsInsertAfter?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* ColumnSelector 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
import { IconName } from '../basic/IconTypes';
import { ActionMenuItem } from './ActionMenu';
export interface DataGridCellChild {
@@ -231,7 +232,7 @@ export interface DataGridProps {
/**
* 서브 행 셀의 CSS 클래스 (선택적)
*
* @default "px-6 py-2 bg-gray-50 dark:bg-gray-750"
* @default "px-6 py-2 bg-gray-50 dark:bg-gray-900"
*/
subRowClassName?: string;
/**
@@ -269,6 +270,8 @@ export interface DataGridProps {
* 미지정 시 footerCells를 key-value 형태로 자동 렌더링합니다.
*/
footerCardChildren?: DataGridCellChild[];
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* DataGrid 집합 컴포넌트
@@ -0,0 +1,55 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface DonutChartDataItem {
/** 항목 이름 */
name: string;
/** 값 */
value: number;
/** 색상 (hex) */
color: string;
}
export interface DonutChartProps {
/** 데이터 배열 */
data: DonutChartDataItem[];
/** 중앙 라벨 (예: "April 2025") */
centerLabel?: string;
/** 중앙 값 (예: "$14,582.94") */
centerValue?: string;
/** 차트 크기 (px 숫자, 또는 단위 포함 문자열 — 편집기 text 위젯은 숫자 문자열 전달) */
size?: number | string;
/** 도넛 두께 비율 (0-1) */
cutout?: string;
/** 범례 표시 여부 */
showLegend?: boolean;
/** 추가 CSS 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* DonutChart 컴포넌트
*
* Chart.js 기반 도넛 차트 컴포넌트입니다.
* 중앙에 총액이나 기간을 표시할 수 있습니다.
*
* @example
* // 레이아웃 JSON 사용 예시
* {
* "name": "DonutChart",
* "props": {
* "data": [
* { "name": "Direct link", "value": 1600, "color": "#8B5CF6" },
* { "name": "Advertising", "value": 1900, "color": "#EC4899" },
* { "name": "Email", "value": 2096, "color": "#3B82F6" }
* ],
* "centerLabel": "April 2025",
* "centerValue": "$14,582.94",
* "size": 200
* }
* }
*/
export declare const DonutChart: React.FC<DonutChartProps>;
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface DropdownItem {
label: string;
value: string;
@@ -15,6 +16,12 @@ export interface DropdownProps {
variant?: 'default' | 'text';
className?: string;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* Dropdown 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../../types';
/**
* 컬럼 타입
*/
@@ -115,6 +116,10 @@ export interface DynamicFieldListProps {
itemIdKey?: string;
/** 검증 에러 객체 (예: {"fields.0.name.ko": ["에러 메시지"], "fields.1.content.ko": ["에러 메시지"]}) */
errors?: Record<string, string[]>;
/** DOM id 속성 (레이아웃 편집기 코어 일괄 ID) */
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* DynamicFieldListItem Props
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
export interface EmptyStateAction {
label: string;
onClick: () => void;
@@ -14,6 +15,12 @@ export interface EmptyStateProps {
illustrationAlt?: string;
actions?: EmptyStateAction[];
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* EmptyState 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export type ExtensionType = 'module' | 'plugin';
/**
* 설치된 모듈/플러그인 정보 인터페이스
@@ -25,6 +26,12 @@ export interface ExtensionBadgeProps {
className?: string;
/** 인라인 스타일 */
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* ExtensionBadge 집합 컴포넌트
@@ -1,8 +1,4 @@
/**
* FileUploader 타입 정의
*
* @module composite/FileUploader/types
*/
import { EditorAttrs } from '../../../types';
export interface Attachment {
id: number;
hash: string;
@@ -159,6 +155,10 @@ export interface FileUploaderProps {
/** 순서 변경 API (기본값: /api/admin/attachments/reorder) */
reorder?: string;
};
/** DOM id 속성 (레이아웃 편집기 코어 일괄 ID) */
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
export interface FileUploaderRef {
/** 모든 대기 파일 업로드 */
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface FilterOption {
id: string | number;
label: string;
@@ -19,6 +20,12 @@ export interface FilterGroupProps {
showResetButton?: boolean;
className?: string;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* FilterGroup 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface FormFieldProps {
/** 필드 레이블 */
label?: string;
@@ -18,6 +19,12 @@ export interface FormFieldProps {
horizontal?: boolean;
/** 레이블 너비 (수평 레이아웃 시) */
labelWidth?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* FormField 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface HtmlContentProps {
/**
* 콘텐츠 (HTML 또는 일반 텍스트)
@@ -24,6 +25,12 @@ export interface HtmlContentProps {
* content보다 우선순위가 높음
*/
text?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* HtmlContent 콘텐츠 렌더링 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface MultilingualValue {
[locale: string]: string;
}
@@ -88,6 +89,12 @@ export interface HtmlEditorProps {
* 읽기 전용 모드
*/
readOnly?: boolean;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* HtmlEditor 컴포넌트
@@ -1,14 +1,21 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
export interface IconButtonProps {
iconName: IconName;
label?: string;
onClick?: () => void;
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
variant?: 'primary' | 'secondary' | 'danger' | 'ghost' | 'outline';
size?: 'sm' | 'md' | 'lg';
disabled?: boolean;
className?: string;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* IconButton 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface IconOption {
value: string;
label: string;
@@ -14,7 +15,14 @@ export interface IconSelectProps {
className?: string;
disabled?: boolean;
name?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
export declare const defaultIconOptions: IconOption[];
/**
* IconSelect 컴포넌트
* 아이콘 선택 드롭다운
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface GalleryImage {
/** 이미지 표시용 URL (라이트박스에서 보여줄 이미지) */
src: string;
@@ -38,6 +39,17 @@ export interface ImageGalleryProps {
showThumbnails?: boolean;
/** 커스텀 다운로드 핸들러 (제공 시 기본 다운로드 로직 대신 실행) */
onDownload?: (image: GalleryImage, index: number) => void;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용).
* 본 컴포넌트는 서드파티 Lightbox 모달(`createPortal` 로 body 렌더)이라 런타임에는
* 인라인 DOM 이 없다. 편집 모드(editorAttrs 존재)에서는 캔버스 선택·속성 편집이
* 가능하도록 인라인 placeholder(이미지 썸네일 그리드)를 대신 렌더하고 거기에
* editorAttrs·id 를 부착한다. 런타임(editorAttrs 미주입)은 종전 Lightbox 동작 그대로.
*
*/
editorAttrs?: EditorAttrs;
/** DOM id 속성 (레이아웃 편집기 코어 일괄 ID — 편집 placeholder 루트에 부착) */
id?: string;
}
/**
* 이미지 다운로드 실행
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/**
* LanguageSelector Props
*/
@@ -15,6 +16,17 @@ export interface LanguageSelectorProps {
className?: string;
/** 인라인 모드 (드롭다운 메뉴 내에서 사용) */
inline?: boolean;
/**
* 독립 모드 버튼에 현재 선택 언어 코드를 globe 아이콘 옆에 표시한다.
* 유저 템플릿 헤더 언어 버튼과 동일한 표기(아이콘 + 로케일 코드)를 위해 사용.
*/
showCode?: boolean;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* LanguageSelector 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export type SpinnerSize = 'sm' | 'md' | 'lg' | 'xl';
export interface LoadingSpinnerProps {
id?: string;
@@ -7,6 +8,8 @@ export interface LoadingSpinnerProps {
fullscreen?: boolean;
text?: string;
className?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* LoadingSpinner 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface MultilingualValue {
[locale: string]: string;
}
@@ -40,6 +41,12 @@ export interface MultilingualInputProps {
showCodeOnMobile?: boolean;
/** 에러 메시지 (입력 필드에 적색 테두리 표시) */
error?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* 다국어 입력 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/** 다국어 값 객체 */
export interface MultilingualValue {
[locale: string]: string;
@@ -46,6 +47,12 @@ export interface MultilingualTagInputProps {
state: Record<string, any>;
setState: (updates: any) => void;
};
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* 다국어 태그 입력 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
/**
* 알림 아이템 인터페이스
*/
@@ -54,6 +55,12 @@ export interface NotificationCenterProps {
/** 드롭다운 정렬 방향 — "right"(기본): 우측 정렬되어 좌측으로 확장 / "left": 좌측 정렬되어 우측으로 확장 */
dropdownAlign?: 'left' | 'right';
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* NotificationCenter 컴포넌트
@@ -1,6 +1,7 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { BreadcrumbItem } from './Breadcrumb';
import { EditorAttrs } from '../../types';
/**
* 탭 아이템 인터페이스
*/
@@ -34,6 +35,12 @@ export interface PageHeaderProps {
actions?: ActionButton[];
className?: string;
children?: React.ReactNode;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* PageHeader 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface PaginationProps {
currentPage: number;
totalPages: number;
@@ -9,6 +10,12 @@ export interface PaginationProps {
style?: React.CSSProperties;
prevText?: string;
nextText?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* Pagination 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
import { ExtensionInfo } from './ExtensionBadge';
/**
* 권한 값 인터페이스 (id + scope_type)
@@ -54,6 +55,12 @@ export interface PermissionTreeProps {
installedModules?: ExtensionInfo[];
/** 설치된 플러그인 목록 (_global.installedPlugins에서 전달) */
installedPlugins?: ExtensionInfo[];
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* PermissionTree 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface ProductCardProps {
imageUrl?: string;
imageAlt?: string;
@@ -13,6 +14,12 @@ export interface ProductCardProps {
onButtonClick?: () => void;
className?: string;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* ProductCard 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface RadioOption {
/** 라디오 버튼의 값 */
value: string;
@@ -28,6 +29,12 @@ export interface RadioGroupProps {
label?: string;
/** 에러 메시지 */
error?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* RadioGroup 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface RichSelectOption {
/** 옵션 고유 값 */
value: string | number;
@@ -48,6 +49,12 @@ export interface RichSelectProps {
/** 선택된 항목 표시용 레이아웃 정의 */
selected?: any[];
};
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* 리치 셀렉트 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface SearchSuggestion {
id: string | number;
text: string;
@@ -15,6 +16,12 @@ export interface SearchBarProps {
showSuggestions?: boolean;
className?: string;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* SearchBar 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface SearchableDropdownOption {
value: string | number;
label: string;
@@ -30,6 +31,12 @@ export interface SearchableDropdownProps {
disabled?: boolean;
/** 추가 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* 검색 가능한 드롭다운 컴포넌트
@@ -0,0 +1,41 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface SectionHeaderProps {
title?: string;
description?: string;
className?: string;
style?: React.CSSProperties;
children?: React.ReactNode;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* SectionHeader 집합 컴포넌트
*
* 페이지 내부의 섹션 (카드 / 탭 / 폼 그룹 등) 머리 부분을 표준화하는
* 가벼운 헤더 시맨틱. 제목 (좌측) + 액션 자식 (우측) 의 균형 배치.
*
* PageHeader 와 다른 점:
* - PageHeader 는 페이지 단위 머리 (제목 + description + actions array
* + tabs + breadcrumb) 등 풍부한 구조.
* - SectionHeader 는 카드/탭/폼 그룹 안의 섹션 머리 — 제목과 우측
* children 슬롯만. 인라인 `flex items-center justify-between` 패턴
* 중 "제목 + 액션" 묶음을 흡수.
*
* 기본 컴포넌트 조합: Div + H2 + P
*
* @example
* // 레이아웃 JSON 사용 예시
* {
* "name": "SectionHeader",
* "props": { "title": "최근 활동", "className": "mb-4" },
* "children": [
* { "type": "basic", "name": "Button", ... }
* ]
* }
*/
export declare const SectionHeader: React.FC<SectionHeaderProps>;
@@ -1,4 +1,19 @@
import { default as React } from 'react';
/**
* 슬롯에 주입된 컴포넌트의 root id 를 컨테이너 id 로 스코프해 고유화한다.
*
* 같은 슬롯 컴포넌트가 여러 SlotContainer(예: 헤더 데스크톱/모바일)에서 렌더되면 주입
* 컴포넌트의 정적 root id 가 컨테이너마다 같은 값으로 중복 출력되어 HTML id 유일성을
* 위반한다. 컨테이너 고유 id 가 있고 컴포넌트가 root id 를 가지면 `{id}__{containerId}`
* 로 스코프한다. 둘 중 하나라도 없으면 원본 그대로(무영향).
*
* @param componentDef 주입 컴포넌트 정의
* @param containerId 이 SlotContainer 의 DOM id (없으면 스코프 안 함)
* @returns 스코프된(또는 원본) 컴포넌트 정의
*/
export declare function scopeSlotChildDef<T extends {
id?: unknown;
}>(componentDef: T, containerId: string | undefined): T;
/**
* SlotContainer Props
*/
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface MenuItem {
id: number;
name: string | Record<string, string>;
@@ -59,6 +60,12 @@ export interface SortableMenuListProps {
titleClassName?: string;
enableDrag?: boolean;
toggleDisabled?: boolean;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/** 평탄화된 트리 아이템 */
interface FlatItem {
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
export interface StatCardProps {
value: string | number;
label: string;
@@ -9,6 +10,12 @@ export interface StatCardProps {
trend?: 'up' | 'down' | 'neutral';
className?: string;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* StatCard 집합 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
export type StatusType = 'success' | 'warning' | 'error' | 'info' | 'pending' | 'default';
export interface StatusBadgeProps {
status: StatusType;
@@ -8,6 +9,12 @@ export interface StatusBadgeProps {
iconName?: IconName;
className?: string;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* StatusBadge 집합 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
export interface Tab {
id: string | number;
label: string;
@@ -16,6 +17,12 @@ export interface TabNavigationProps {
style?: React.CSSProperties;
/** 모바일 전환 임계값 (px). 기본값 768 — G7 ResponsiveContext mobile 프리셋과 동일 */
mobileBreakpoint?: number;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* TabNavigation 집합 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
/**
* 탭 정의 인터페이스
*/
@@ -46,6 +47,12 @@ export interface TabNavigationScrollProps {
scrollSpyOffset?: number;
/** 스크롤 컨테이너 ID (IntersectionObserver root 및 scrollToSection 대상, 미지정 시 window) */
scrollContainerId?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* 탭 네비게이션 컴포넌트 (자동 스크롤 기능 내장)
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface TagOption {
value: string | number;
label: string;
@@ -59,6 +60,10 @@ export interface TagInputProps {
splitOnPaste?: boolean;
/** 검색 입력 변경 콜백 (비동기 검색용, 매 키 입력 시 호출) */
onInputChange?: (event: any) => void;
/** 요소 ID (레이아웃 편집기 elemId / DOM id) */
id?: string;
/** 레이아웃 편집기 주입 속성 (data-editor-* 등 — 편집 모드 선택용) */
editorAttrs?: EditorAttrs;
}
/**
* 태그 입력 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface TagSelectOption {
value: string | number;
label: string;
@@ -16,6 +17,12 @@ export interface TagSelectProps {
disabled?: boolean;
/** 추가 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* 태그 선택 표시 컴포넌트
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { ActionMenuItem } from './ActionMenu';
import { EditorAttrs } from '../../types';
/**
* 템플릿 상태
*/
@@ -21,6 +22,12 @@ export interface TemplateCardProps {
actions?: ActionMenuItem[];
onLayoutEditClick?: () => void;
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* TemplateCard 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/**
* 테마 모드 타입
*/
@@ -17,5 +18,11 @@ export interface ThemeToggleProps {
lightText?: string;
/** 다크 모드 텍스트 (다국어 키 사용 권장) */
darkText?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
export declare const ThemeToggle: React.FC<ThemeToggleProps>;
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface ToggleProps {
/** 체크 상태 */
checked?: boolean;
@@ -18,6 +19,12 @@ export interface ToggleProps {
name?: string;
/** 값 (checked의 대체) */
value?: boolean;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* Toggle 스위치 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/**
* 사용자 정보 인터페이스
*/
@@ -30,6 +31,18 @@ export interface UserProfileProps {
logoutEndpoint?: string;
/** 로그아웃 후 리다이렉션 경로 (기본값: /admin/login) */
redirectPath?: string;
/** Chevron 아이콘 표시 여부 (기본값: true) */
showChevron?: boolean;
/** 드롭다운 열림 방향 (기본값: 'up') */
dropdownDirection?: 'up' | 'down';
/** 드롭다운만 표시 (버튼 영역 숨김, 외부 요소 클릭 트리거용) */
dropdownOnly?: boolean;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* UserProfile 컴포넌트
@@ -56,6 +56,8 @@ export { AdminFooter } from './AdminFooter';
export type { AdminFooterProps, QuickLink } from './AdminFooter';
export { PageHeader } from './PageHeader';
export type { PageHeaderProps, TabItem, ActionButton } from './PageHeader';
export { SectionHeader } from './SectionHeader';
export type { SectionHeaderProps } from './SectionHeader';
export { TemplateCard } from './TemplateCard';
export type { TemplateCardProps, TemplateStatus } from './TemplateCard';
export { Alert } from './Alert';
@@ -140,3 +142,7 @@ export { FormField } from './FormField';
export type { FormFieldProps } from './FormField';
export { MultilingualLocaleContext, useCurrentMultilingualLocale, } from './MultilingualLocaleContext';
export type { MultilingualLocaleContextValue, UseCurrentMultilingualLocaleResult, } from './MultilingualLocaleContext';
export { BarChart } from './BarChart';
export type { BarChartProps, BarChartDataset } from './BarChart';
export { DonutChart } from './DonutChart';
export type { DonutChartProps, DonutChartDataItem } from './DonutChart';
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface ContainerProps {
/**
* DOM id 속성
@@ -16,6 +17,10 @@ export interface ContainerProps {
* 자식 요소
*/
children?: React.ReactNode;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Container 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface FlexProps {
/**
* Flex 방향
@@ -44,6 +45,14 @@ export interface FlexProps {
* 클릭 이벤트 핸들러
*/
onClick?: () => void;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Flex 레이아웃 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface GridProps {
/**
* Grid 열 개수
@@ -54,6 +55,14 @@ export interface GridProps {
* 클릭 이벤트 핸들러
*/
onClick?: () => void;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Grid 레이아웃 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface SectionLayoutProps {
/**
* 섹션 제목
@@ -52,6 +53,14 @@ export interface SectionLayoutProps {
* 클릭 이벤트 핸들러
*/
onClick?: () => void;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Section 레이아웃 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface ThreeColumnLayoutProps {
/**
* 왼쪽 영역 너비
@@ -28,6 +29,14 @@ export interface ThreeColumnLayoutProps {
* 인라인 스타일
*/
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* ThreeColumnLayout 레이아웃 컴포넌트
@@ -11,3 +11,5 @@ export { Flex } from './Flex';
export type { FlexProps } from './Flex';
export { SectionLayout } from './SectionLayout';
export type { SectionLayoutProps } from './SectionLayout';
export { ThreeColumnLayout } from './ThreeColumnLayout';
export type { ThreeColumnLayoutProps } from './ThreeColumnLayout';