Files
vexplor/frontend/lib/registry/components/image-display/config.ts
kjs 17d4cc297c feat: Introduce new date picker components for enhanced date selection
- Added `FormDatePicker` and `InlineCellDatePicker` components to provide flexible date selection options.
- Implemented a modernized date picker interface with calendar navigation, year selection, and time input capabilities.
- Enhanced `DateWidget` to support both date and datetime formats, improving user experience in date handling.
- Updated `CategoryColumnList` to group columns dynamically and manage expanded states for better organization.
- Improved `AlertDialog` z-index for better visibility in modal interactions.
- Refactored `ScreenModal` to ensure consistent modal behavior across the application.
2026-02-26 17:32:20 +09:00

54 lines
1.3 KiB
TypeScript

"use client";
import { ImageDisplayConfig } from "./types";
/**
* ImageDisplay 컴포넌트 기본 설정
*/
export const ImageDisplayDefaultConfig: ImageDisplayConfig = {
imageUrl: "",
altText: "이미지",
objectFit: "contain",
borderRadius: 8,
showBorder: true,
backgroundColor: "#f9fafb",
placeholder: "이미지 없음",
disabled: false,
required: false,
readonly: false,
variant: "default",
size: "md",
};
/**
* ImageDisplay 컴포넌트 설정 스키마
*/
export const ImageDisplayConfigSchema = {
imageUrl: { type: "string", default: "" },
altText: { type: "string", default: "이미지" },
objectFit: {
type: "enum",
values: ["contain", "cover", "fill", "none", "scale-down"],
default: "contain",
},
borderRadius: { type: "number", default: 8 },
showBorder: { type: "boolean", default: true },
backgroundColor: { type: "string", default: "#f9fafb" },
placeholder: { type: "string", default: "이미지 없음" },
disabled: { type: "boolean", default: false },
required: { type: "boolean", default: false },
readonly: { type: "boolean", default: false },
variant: {
type: "enum",
values: ["default", "outlined", "filled"],
default: "default",
},
size: {
type: "enum",
values: ["sm", "md", "lg"],
default: "md",
},
};