테이블 데이터 필터링 기능 및 textarea컴포넌트 자동 매핑 삭제

This commit is contained in:
kjs
2025-11-13 17:06:41 +09:00
parent a828f54663
commit 296ee3e825
17 changed files with 941 additions and 98 deletions

View File

@@ -137,6 +137,9 @@ export interface DataTableComponent extends BaseComponent {
filterColumn: string; // 필터링할 테이블 컬럼 (예: company_code, dept_code)
userField: 'companyCode' | 'userId' | 'deptCode'; // 사용자 정보에서 가져올 필드
};
// 🆕 컬럼 값 기반 데이터 필터링
dataFilter?: DataFilterConfig;
}
/**
@@ -173,6 +176,8 @@ export interface FlowComponent extends BaseComponent {
stepColumnConfig?: {
[stepId: number]: FlowStepColumnConfig;
};
// 🆕 컬럼 값 기반 데이터 필터링
dataFilter?: DataFilterConfig;
}
/**
@@ -435,6 +440,26 @@ export interface DataTableFilter {
logicalOperator?: "AND" | "OR";
}
/**
* 컬럼 필터 조건 (단일 필터)
*/
export interface ColumnFilter {
id: string;
columnName: string; // 필터링할 컬럼명
operator: "equals" | "not_equals" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "is_null" | "is_not_null";
value: string | string[]; // 필터 값 (in/not_in은 배열)
valueType: "static" | "category" | "code"; // 값 타입
}
/**
* 데이터 필터 설정 (여러 필터의 조합)
*/
export interface DataFilterConfig {
enabled: boolean; // 필터 활성화 여부
filters: ColumnFilter[]; // 필터 조건 목록
matchType: "all" | "any"; // AND(모두 만족) / OR(하나 이상 만족)
}
// ===== 파일 업로드 관련 =====
/**