@owp/core 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,6 +43,7 @@ export * from './components/OwpFileUploadButton/OwpFileUploadButton';
43
43
  export * from './components/OwpLayout';
44
44
  export * from './components/OwpLoading';
45
45
  export * from './components/OwpMessage';
46
+ export * from './components/OwpMrtTable';
46
47
  export * from './components/OwpMoreActionsButton/OwpMoreActionsButton';
47
48
  export * from './components/OwpNavigation';
48
49
  export * from './components/OwpNavigation/horizontal/OwpNavHorizontalLayout1';
@@ -13,13 +13,13 @@ export interface CommonCodeRes {
13
13
  }
14
14
  type TreeGridEnumAttributeMap = Record<string, string>;
15
15
  /**
16
- * 공통코드 목록을 TreeGrid Enum 속성 객체로 변환합니다.
16
+ * 공통코드 목록 TreeGrid Enum 속성 변환
17
17
  * @param commonCodeListData 공통코드 목록
18
18
  * @param fieldKey TreeGrid 컬럼 필드 키
19
19
  */
20
20
  export declare const transformGridEnumByCommonCodeList: (commonCodeListData?: Array<CommonCode> | undefined, fieldKey?: string) => TreeGridEnumAttributeMap;
21
21
  /**
22
- * 공통코드 목록을 그룹 ID 기준으로 묶습니다.
22
+ * 공통코드 목록 그룹 ID 기준 묶기
23
23
  * @param commonCodeList 공통코드 목록
24
24
  */
25
25
  export declare const transformCommonCodeBasedOnGroupId: (commonCodeList: Array<CommonCode>) => Record<string, CommonCode[]>;
@@ -1,8 +1,31 @@
1
1
  import ExcelJS from 'exceljs';
2
2
  type ExcelCellValue = string | number | boolean | Date | ExcelJS.CellValue | null;
3
+ /**
4
+ * 엑셀 컬럼 문자 인덱스 변환
5
+ * @param letters 엑셀 컬럼 문자
6
+ */
3
7
  export declare const getIndexByLetters: (letters: string) => number;
8
+ /**
9
+ * 엑셀 컬럼 인덱스 문자 변환
10
+ * @param index 엑셀 컬럼 인덱스
11
+ */
4
12
  export declare const getLettersByIndex: (index: number) => string;
13
+ /**
14
+ * 엑셀 버퍼 파일 다운로드
15
+ * @param buffer 엑셀 버퍼 데이터
16
+ * @param title 다운로드 파일명
17
+ */
5
18
  export declare const exportExcelByBuffer: (buffer: ExcelJS.Buffer, title?: string) => void;
19
+ /**
20
+ * 엑셀 셀 값 및 스타일 반영
21
+ * @param ws 엑셀 워크시트
22
+ * @param key 셀 키
23
+ * @param value 셀 값
24
+ * @param font 폰트 옵션
25
+ * @param alignment 정렬 옵션
26
+ * @param fill 채우기 옵션
27
+ * @param isHeader 헤더 셀 여부
28
+ */
6
29
  export declare const setCellValue: (ws: ExcelJS.Worksheet, { key, value, font, alignment, fill, isHeader, }: {
7
30
  key: string;
8
31
  value?: ExcelCellValue;
@@ -11,6 +34,16 @@ export declare const setCellValue: (ws: ExcelJS.Worksheet, { key, value, font, a
11
34
  fill?: ExcelJS.Fill;
12
35
  isHeader?: boolean;
13
36
  }) => void;
37
+ /**
38
+ * 엑셀 병합 셀 값 및 스타일 반영
39
+ * @param ws 엑셀 워크시트
40
+ * @param range 병합 범위
41
+ * @param value 셀 값
42
+ * @param font 폰트 옵션
43
+ * @param alignment 정렬 옵션
44
+ * @param fill 채우기 옵션
45
+ * @param isHeader 헤더 셀 여부
46
+ */
14
47
  export declare const setMergeCells: (ws: ExcelJS.Worksheet, { range, value, font, alignment, fill, isHeader, }: {
15
48
  range: string;
16
49
  value?: ExcelCellValue;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 초기값 객체에서 폼 기본값 키와 일치하는 값만 추려 병합합니다.
2
+ * 초기값 객체 폼 기본값 병합
3
3
  * @param defaultValues 폼 기본값
4
4
  * @param initialValues 서버/외부에서 전달된 초기값
5
5
  */
@@ -19,17 +19,17 @@ export declare const TREEGRID_INPUT_CELL_COLOR = "#ffd6a8";
19
19
  export declare const TREEGRID_CELL_HIGHLIGHT_CLASS = "text-white text-xl font-semibold";
20
20
  export declare const TREEGRID_CELL_HIGHLIGHT_COLOR = "#ff8904";
21
21
  /**
22
- * TreeGrid 인스턴스를 ID 조회합니다.
22
+ * TreeGrid 인스턴스 ID 조회
23
23
  * @param gridId TreeGrid 인스턴스 ID
24
24
  */
25
25
  export declare const getGridById: (gridId: string) => TTGrid;
26
26
  /**
27
- * TreeGrid 데이터 행 목록을 조회합니다.
27
+ * TreeGrid 데이터 행 목록 조회
28
28
  * @param gridId TreeGrid 인스턴스 ID
29
29
  */
30
30
  export declare const getDataRowsById: <T>(gridId: string) => T;
31
31
  /**
32
- * TreeGrid Body 데이터를 교체한 다시 로드합니다.
32
+ * TreeGrid Body 데이터 교체 재로드
33
33
  * @param gridId TreeGrid 인스턴스 ID
34
34
  * @param rows 새로 반영할 행 데이터
35
35
  */
@@ -45,7 +45,7 @@ export declare const reloadBodyById: (gridId: string, rows: unknown) => void;
45
45
  */
46
46
  export declare const addRowById: <T>(gridId: string, options?: TreeGridAddRowOptions<T>) => void;
47
47
  /**
48
- * TreeGrid 추가/수정된 데이터 행을 조회합니다.
48
+ * TreeGrid 추가/수정 데이터 조회
49
49
  * @param gridId TreeGrid 인스턴스 ID
50
50
  */
51
51
  export declare const getChangedDataRowsById: <T>(gridId: string) => {
@@ -53,52 +53,52 @@ export declare const getChangedDataRowsById: <T>(gridId: string) => {
53
53
  changed: T[];
54
54
  };
55
55
  /**
56
- * TreeGrid 데이터를 엑셀로 내보냅니다.
56
+ * TreeGrid 데이터 엑셀 내보내기
57
57
  * @param gridId TreeGrid 인스턴스 ID
58
58
  * @param title 다운로드 파일명
59
59
  */
60
60
  export declare const exportExcelById: (gridId: string, title?: string) => void;
61
61
  /**
62
- * TreeGrid에서 현재 선택된목록을 조회합니다.
62
+ * TreeGrid 현재 선택목록 조회
63
63
  * @param gridId TreeGrid 인스턴스 ID
64
64
  */
65
65
  export declare const getSelectedRowsById: <T>(gridId: string) => any[] | T;
66
66
  /**
67
- * TreeGrid 컬럼의 표시 여부를 변경합니다.
67
+ * TreeGrid 컬럼 표시 여부 변경
68
68
  * @param gridId TreeGrid 인스턴스 ID
69
69
  * @param options.targetKey 표시 상태를 변경할 컬럼 키
70
70
  * @param options.canVisible 컬럼 표시 여부
71
71
  */
72
72
  export declare const changeVisibleCellByGridId: (gridId: string, options: TreeGridColumnVisibilityOptions) => void;
73
73
  /**
74
- * 특정 셀에 강조 스타일을 적용합니다.
74
+ * 특정 강조 스타일 적용
75
75
  * @param gridId TreeGrid 인스턴스 ID
76
76
  * @param targetOption.row 강조할 대상 행
77
77
  * @param targetOption.col 강조할 대상 컬럼
78
78
  */
79
79
  export declare const setHighlightTargetCellByGridId: (gridId: string, targetOption: TreeGridHighlightTargetOption) => void;
80
80
  /**
81
- * TreeGrid 현재 선택 상태를 모두 해제합니다.
81
+ * TreeGrid 현재 선택 상태 전체 해제
82
82
  * @param gridId TreeGrid 인스턴스 ID
83
83
  */
84
84
  export declare const resetGridSelection: (gridId: string) => void;
85
85
  /**
86
- * 여러 TreeGrid 선택 상태를 모두 해제합니다.
86
+ * 여러 TreeGrid 선택 상태 전체 해제
87
87
  * @param gridIds TreeGrid 인스턴스 ID 목록
88
88
  */
89
89
  export declare const resetGridsSelection: (gridIds: string[]) => void;
90
90
  /**
91
- * TreeGrid 변경 사항과 선택 상태를 모두 초기화합니다.
91
+ * TreeGrid 변경 사항 선택 상태 초기화
92
92
  * @param gridId TreeGrid 인스턴스 ID
93
93
  */
94
94
  export declare const resetGridChanges: (gridId: string) => void;
95
95
  /**
96
- * 여러 TreeGrid 변경 사항과 선택 상태를 모두 초기화합니다.
96
+ * 여러 TreeGrid 변경 사항 선택 상태 초기화
97
97
  * @param gridIds TreeGrid 인스턴스 ID 목록
98
98
  */
99
99
  export declare const resetGridsChanges: (gridIds: string[]) => void;
100
100
  /**
101
- * TreeGrid 컬럼을 Enum 타입으로 설정하고 옵션 목록을 반영합니다.
101
+ * TreeGrid Enum 컬럼 옵션 반영
102
102
  * @param gridId TreeGrid 인스턴스 ID
103
103
  * @param columnName Enum을 적용할 컬럼명
104
104
  * @param options Enum 옵션 목록
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@owp/core",
3
3
  "private": false,
4
- "version": "1.6.0",
4
+ "version": "1.7.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",