@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.
- package/dist/{QuickPanel-DkEllWDJ.js → QuickPanel-DVTv2o_s.js} +2 -2
- package/dist/{QuickPanel-DkEllWDJ.js.map → QuickPanel-DVTv2o_s.js.map} +1 -1
- package/dist/index-COtWRLj0.js +77320 -0
- package/dist/index-COtWRLj0.js.map +1 -0
- package/dist/index.js +165 -164
- package/dist/types/components/OwpExportExcelButton/OwpExportExcelButton.d.ts +5 -5
- package/dist/types/components/OwpFileUploadButton/OwpFileUploadButton.d.ts +1 -1
- package/dist/types/components/OwpMrtTable/index.d.ts +4 -0
- package/dist/types/components/OwpSection/index.d.ts +3 -1
- package/dist/types/components/OwpTable/OwpDataTable.d.ts +6 -1
- package/dist/types/components/OwpTable/OwpTable.d.ts +6 -8
- package/dist/types/components/OwpTable/OwpVerticalTable.d.ts +17 -16
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +42 -33
- package/dist/types/components/OwpTreeGrid/utils.d.ts +17 -4
- package/dist/types/components/OwpTreeView/OwpSlotTreeView.d.ts +14 -9
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/CommonCodeUtils.d.ts +2 -2
- package/dist/types/utils/excelUtil.d.ts +33 -0
- package/dist/types/utils/getFormDefaultValues.d.ts +1 -1
- package/dist/types/utils/treeGridUtil.d.ts +13 -13
- package/package.json +1 -1
- package/dist/index-CPi4nNXt.js +0 -54567
- package/dist/index-CPi4nNXt.js.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
-
* 공통코드
|
|
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
|
-
* 공통코드
|
|
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;
|
|
@@ -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
|
|
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
|
|
101
|
+
* TreeGrid Enum 컬럼 옵션 반영
|
|
102
102
|
* @param gridId TreeGrid 인스턴스 ID
|
|
103
103
|
* @param columnName Enum을 적용할 컬럼명
|
|
104
104
|
* @param options Enum 옵션 목록
|