ERP-node/frontend/lib/registry/components/file-upload
kjs 7c96461f59 feat: enhance audit log functionality and file upload components
- Updated the audit log controller to determine super admin status based on user type instead of company code.
- Added detailed logging for column settings updates and batch updates in the table management controller, capturing user actions and changes made.
- Implemented security measures in the audit log service to mask sensitive data for non-super admin users.
- Introduced a new TableCellFile component to handle file attachments, supporting both objid and JSON array formats for file information.
- Enhanced the file upload component to manage file states more effectively during record changes and mode transitions.

These updates aim to improve the audit logging capabilities and file management features within the ERP system, ensuring better security and user experience.
2026-03-17 11:31:54 +09:00
..
FileManagerModal.tsx refactor: 전체 프론트엔드 하드코딩 색상 → CSS 변수 일괄 치환 2026-03-09 14:31:59 +09:00
FileUploadComponent.tsx feat: enhance audit log functionality and file upload components 2026-03-17 11:31:54 +09:00
FileUploadConfigPanel.tsx 컴포넌트 추가방식 변경 2025-09-11 18:38:28 +09:00
FileUploadRenderer.tsx 컴포넌트 추가방식 변경 2025-09-11 18:38:28 +09:00
FileViewerModal.tsx refactor: 전체 프론트엔드 하드코딩 색상 → CSS 변수 일괄 치환 2026-03-09 14:31:59 +09:00
README.md 컴포넌트 추가방식 변경 2025-09-11 18:38:28 +09:00
config.ts 컴포넌트 추가방식 변경 2025-09-11 18:38:28 +09:00
index.ts feat: 파일 정보 조회 API 추가 및 파일 업로드 컴포넌트 개선 2026-02-05 13:45:23 +09:00
types.ts 파일 업로드 쪽 수정 2025-11-04 17:32:46 +09:00

README.md

FileUpload 컴포넌트

file-upload 컴포넌트입니다

개요

  • ID: file-upload
  • 카테고리: input
  • 웹타입: file
  • 작성자: 개발팀
  • 버전: 1.0.0

특징

  • 자동 등록 시스템
  • 타입 안전성
  • Hot Reload 지원
  • 설정 패널 제공
  • 반응형 디자인

사용법

기본 사용법

import { FileUploadComponent } from "@/lib/registry/components/file-upload";

<FileUploadComponent
  component={{
    id: "my-file-upload",
    type: "widget",
    webType: "file",
    position: { x: 100, y: 100, z: 1 },
    size: { width: 250, height: 36 },
    config: {
      // 설정값들
    }
  }}
  isDesignMode={false}
/>

설정 옵션

속성 타입 기본값 설명
placeholder string "" 플레이스홀더 텍스트
disabled boolean false 비활성화 여부
required boolean false 필수 입력 여부
readonly boolean false 읽기 전용 여부

이벤트

  • onChange: 값 변경 시
  • onFocus: 포커스 시
  • onBlur: 포커스 해제 시
  • onClick: 클릭 시

스타일링

컴포넌트는 다음과 같은 스타일 옵션을 제공합니다:

  • variant: "default" | "outlined" | "filled"
  • size: "sm" | "md" | "lg"

예시

// 기본 예시
<FileUploadComponent
  component={{
    id: "sample-file-upload",
    config: {
      placeholder: "입력하세요",
      required: true,
      variant: "outlined"
    }
  }}
/>

개발자 정보

  • 생성일: 2025-09-11
  • CLI 명령어: node scripts/create-component.js file-upload --category=input --webType=file
  • 경로: lib/registry/components/file-upload/

관련 문서