@owp/core 1.5.2 → 1.6.1
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-CXDfHpcK.js → QuickPanel-CU-3xMyw.js} +2 -2
- package/dist/{QuickPanel-CXDfHpcK.js.map → QuickPanel-CU-3xMyw.js.map} +1 -1
- package/dist/{index-GbcqmMYR.js → index-CWtbF1dU.js} +13289 -12921
- package/dist/index-CWtbF1dU.js.map +1 -0
- package/dist/index.js +196 -171
- package/dist/types/components/OwpCommonCode/OwpCommonCodeRadioGroup.d.ts +16 -0
- package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +16 -0
- package/dist/types/components/OwpCommonCode/index.d.ts +4 -0
- package/dist/types/components/OwpMoreActionsButton/OwpMoreActionsButton.d.ts +2 -2
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +42 -33
- package/dist/types/components/OwpTreeGrid/utils.d.ts +15 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/CommonCodeUtils.d.ts +13 -3
- package/dist/types/utils/getFormDefaultValues.d.ts +6 -0
- package/dist/types/utils/treeGridUtil.d.ts +112 -21
- package/package.json +1 -1
- package/dist/index-GbcqmMYR.js.map +0 -1
|
@@ -1,36 +1,127 @@
|
|
|
1
|
+
type TreeGridInsertPosition = 'above' | 'below' | 'top' | 'last';
|
|
2
|
+
type TreeGridAddRowOptions<T> = {
|
|
3
|
+
canSelect?: boolean;
|
|
4
|
+
insertPosition?: TreeGridInsertPosition;
|
|
5
|
+
parent?: TRow & T;
|
|
6
|
+
anchorRow?: TRow & T;
|
|
7
|
+
initialValues?: T;
|
|
8
|
+
};
|
|
9
|
+
type TreeGridColumnVisibilityOptions = {
|
|
10
|
+
targetKey: string;
|
|
11
|
+
canVisible: boolean;
|
|
12
|
+
};
|
|
13
|
+
type TreeGridHighlightTargetOption = {
|
|
14
|
+
row: TRow;
|
|
15
|
+
col: string;
|
|
16
|
+
};
|
|
1
17
|
export declare const TREEGRID_WARNING_CELL_COLOR = "#f44336";
|
|
2
18
|
export declare const TREEGRID_INPUT_CELL_COLOR = "#ffd6a8";
|
|
3
19
|
export declare const TREEGRID_CELL_HIGHLIGHT_CLASS = "text-white text-xl font-semibold";
|
|
4
20
|
export declare const TREEGRID_CELL_HIGHLIGHT_COLOR = "#ff8904";
|
|
21
|
+
/**
|
|
22
|
+
* TreeGrid 인스턴스를 ID로 조회합니다.
|
|
23
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
24
|
+
*/
|
|
5
25
|
export declare const getGridById: (gridId: string) => TTGrid;
|
|
6
|
-
|
|
7
|
-
|
|
26
|
+
/**
|
|
27
|
+
* TreeGrid의 데이터 행 목록을 조회합니다.
|
|
28
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
29
|
+
*/
|
|
30
|
+
export declare const getDataRowsById: <T>(gridId: string) => T;
|
|
31
|
+
/**
|
|
32
|
+
* TreeGrid Body 데이터를 교체한 뒤 다시 로드합니다.
|
|
33
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
34
|
+
* @param rows 새로 반영할 행 데이터
|
|
35
|
+
*/
|
|
36
|
+
export declare const reloadBodyById: (gridId: string, rows: unknown) => void;
|
|
8
37
|
/**
|
|
9
38
|
* 행을 특정 위치에 추가
|
|
10
39
|
* @param gridId TreeGrid 인스턴스 ID
|
|
11
|
-
* @param options.canSelect 행
|
|
12
|
-
* @param options.parent
|
|
13
|
-
* @param options.anchorRow above/below용 기준
|
|
40
|
+
* @param options.canSelect 행 선택 가능 여부
|
|
41
|
+
* @param options.parent 부모 행
|
|
42
|
+
* @param options.anchorRow above/below용 기준 행
|
|
14
43
|
* @param options.insertPosition 행 삽입 위치
|
|
15
44
|
* @param options.initialValues 신규 행 초기값
|
|
16
45
|
*/
|
|
17
|
-
export declare const addRowById: <T>(gridId: string, options?:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
initialValues?: T;
|
|
23
|
-
}) => void;
|
|
46
|
+
export declare const addRowById: <T>(gridId: string, options?: TreeGridAddRowOptions<T>) => void;
|
|
47
|
+
/**
|
|
48
|
+
* TreeGrid의 추가/수정된 데이터 행을 조회합니다.
|
|
49
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
50
|
+
*/
|
|
24
51
|
export declare const getChangedDataRowsById: <T>(gridId: string) => {
|
|
25
|
-
|
|
52
|
+
added: T[];
|
|
53
|
+
changed: T[];
|
|
26
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* TreeGrid 데이터를 엑셀로 내보냅니다.
|
|
57
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
58
|
+
* @param title 다운로드 파일명
|
|
59
|
+
*/
|
|
27
60
|
export declare const exportExcelById: (gridId: string, title?: string) => void;
|
|
61
|
+
/**
|
|
62
|
+
* TreeGrid에서 현재 선택된 행 목록을 조회합니다.
|
|
63
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
64
|
+
*/
|
|
28
65
|
export declare const getSelectedRowsById: <T>(gridId: string) => any[] | T;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
66
|
+
/**
|
|
67
|
+
* TreeGrid 컬럼의 표시 여부를 변경합니다.
|
|
68
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
69
|
+
* @param options.targetKey 표시 상태를 변경할 컬럼 키
|
|
70
|
+
* @param options.canVisible 컬럼 표시 여부
|
|
71
|
+
*/
|
|
72
|
+
export declare const changeVisibleCellByGridId: (gridId: string, options: TreeGridColumnVisibilityOptions) => void;
|
|
73
|
+
/**
|
|
74
|
+
* 특정 셀에 강조 스타일을 적용합니다.
|
|
75
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
76
|
+
* @param targetOption.row 강조할 대상 행
|
|
77
|
+
* @param targetOption.col 강조할 대상 컬럼
|
|
78
|
+
*/
|
|
79
|
+
export declare const setHighlightTargetCellByGridId: (gridId: string, targetOption: TreeGridHighlightTargetOption) => void;
|
|
80
|
+
/**
|
|
81
|
+
* TreeGrid의 현재 선택 상태를 모두 해제합니다.
|
|
82
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
83
|
+
*/
|
|
84
|
+
export declare const resetGridSelection: (gridId: string) => void;
|
|
85
|
+
/**
|
|
86
|
+
* 여러 TreeGrid의 선택 상태를 모두 해제합니다.
|
|
87
|
+
* @param gridIds TreeGrid 인스턴스 ID 목록
|
|
88
|
+
*/
|
|
89
|
+
export declare const resetGridsSelection: (gridIds: string[]) => void;
|
|
90
|
+
/**
|
|
91
|
+
* TreeGrid의 변경 사항과 선택 상태를 모두 초기화합니다.
|
|
92
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
93
|
+
*/
|
|
94
|
+
export declare const resetGridChanges: (gridId: string) => void;
|
|
95
|
+
/**
|
|
96
|
+
* 여러 TreeGrid의 변경 사항과 선택 상태를 모두 초기화합니다.
|
|
97
|
+
* @param gridIds TreeGrid 인스턴스 ID 목록
|
|
98
|
+
*/
|
|
99
|
+
export declare const resetGridsChanges: (gridIds: string[]) => void;
|
|
100
|
+
/**
|
|
101
|
+
* TreeGrid 컬럼을 Enum 타입으로 설정하고 옵션 목록을 반영합니다.
|
|
102
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
103
|
+
* @param columnName Enum을 적용할 컬럼명
|
|
104
|
+
* @param options Enum 옵션 목록
|
|
105
|
+
* @param valueKey Enum 값으로 사용할 필드명
|
|
106
|
+
* @param labelKeys Enum 라벨로 사용할 필드 우선순위 목록
|
|
107
|
+
*/
|
|
108
|
+
export declare const setGridEnum: <T extends object>(gridId: string, columnName: string, options: T[] | undefined, valueKey: keyof T & string, labelKeys: Array<keyof T & string>) => void;
|
|
109
|
+
/** 권장 네이밍 별칭 */
|
|
110
|
+
export declare const getTreeGridById: (gridId: string) => TTGrid;
|
|
111
|
+
export declare const getTreeGridDataRowsById: <T>(gridId: string) => T;
|
|
112
|
+
export declare const reloadTreeGridBodyById: (gridId: string, rows: unknown) => void;
|
|
113
|
+
export declare const addTreeGridRowById: <T>(gridId: string, options?: TreeGridAddRowOptions<T>) => void;
|
|
114
|
+
export declare const getTreeGridRowChangesById: <T>(gridId: string) => {
|
|
115
|
+
added: T[];
|
|
116
|
+
changed: T[];
|
|
117
|
+
};
|
|
118
|
+
export declare const exportTreeGridToExcelById: (gridId: string, title?: string) => void;
|
|
119
|
+
export declare const getTreeGridSelectedRowsById: <T>(gridId: string) => any[] | T;
|
|
120
|
+
export declare const setTreeGridColumnVisibilityById: (gridId: string, options: TreeGridColumnVisibilityOptions) => void;
|
|
121
|
+
export declare const highlightTreeGridCellById: (gridId: string, targetOption: TreeGridHighlightTargetOption) => void;
|
|
122
|
+
export declare const resetTreeGridSelectionById: (gridId: string) => void;
|
|
123
|
+
export declare const resetTreeGridSelectionsByIds: (gridIds: string[]) => void;
|
|
124
|
+
export declare const resetTreeGridChangesById: (gridId: string) => void;
|
|
125
|
+
export declare const resetTreeGridChangesByIds: (gridIds: string[]) => void;
|
|
126
|
+
export declare const setTreeGridColumnEnumOptionsById: <T extends object>(gridId: string, columnName: string, options: T[] | undefined, valueKey: keyof T & string, labelKeys: Array<keyof T & string>) => void;
|
|
127
|
+
export {};
|