@owp/core 1.18.0 → 1.20.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-CXwL_kXu.js → QuickPanel-CvvuWvzZ.js} +2 -2
- package/dist/{QuickPanel-CXwL_kXu.js.map → QuickPanel-CvvuWvzZ.js.map} +1 -1
- package/dist/{index-C5iLGqzC.js → index-6p52ESZP.js} +15624 -15174
- package/dist/{index-C5iLGqzC.js.map → index-6p52ESZP.js.map} +1 -1
- package/dist/index.js +152 -149
- package/dist/types/components/OwpMrtTable/index.d.ts +3 -2
- package/dist/types/components/OwpTable/OwpTable.d.ts +19 -2
- package/dist/types/components/OwpTable/OwpVerticalTable.d.ts +3 -1
- package/dist/types/components/shared-components/data-table/DataTable.d.ts +11 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/formatDateToYmd.d.ts +12 -0
- package/dist/types/utils/treeGridUtil.d.ts +70 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DialogsProvider as
|
|
1
|
+
import { b0 as r, a_ as o, a9 as i, aa as l, F as n, h as p, i as d, aU as c, aV as w, aW as u, aX as g, a$ as b, aZ as O, aY as m, co as C, bD as T, bE as S, b1 as G, b2 as L, b3 as h, aS as y, b4 as I, bM as B, bN as D, b5 as E, b6 as v, b8 as N, b7 as R, bh as P, bb as k, bc as f, bd as x, ba as V, be as A, bi as H, bg as _, bm as F, bn as M, bo as U, bk as z, bl as Y, bp as J, bq as K, b9 as Q, bj as W, br as Z, bs as q, bt as j, bu as X, bv as $, bw as ee, bx as ae, by as se, bz as te, bA as re, bB as oe, bC as ie, d as le, bI as ne, bJ as pe, bK as de, bL as ce, aT as we, ck as ue, cl as ge, cB as be, cm as Oe, cn as me, O as Ce, cF as Te, cs as Se, cp as Ge, cG as Le, cu as he, cv as ye, cw as Ie, bF as Be, cy as De, cx as Ee, cA as ve, a1 as Ne, ct as Re, bG as Pe, bH as ke, cE as fe, cD as xe, cq as Ve, cr as Ae, am as He, an as _e, al as Fe, ak as Me, cz as Ue, aF as ze, ar as Ye, e as Je, a0 as Ke, bQ as Qe, aJ as We, Y as Ze, a2 as qe, a3 as je, bP as Xe, a6 as $e, aj as ea, aH as aa, at as sa, ab as ta, ad as ra, Z as oa, ah as ia, bR as la, aG as na, aD as pa, b$ as da, ae as ca, c3 as wa, af as ua, aC as ga, a4 as ba, a5 as Oa, c0 as ma, c1 as Ca, aI as Ta, ac as Sa, c2 as Ga, ao as La, ap as ha, as as ya, au as Ia, aw as Ba, ag as Da, bf as Ea, bO as va, W as Na, o as Ra, bT as Pa, ai as ka, aE as fa, aq as xa, aN as Va, aL as Aa, aO as Ha, aM as _a, ch as Fa, az as Ma, aA as Ua, ax as za, ay as Ya, aQ as Ja, c4 as Ka, b_ as Qa, ce as Wa, cf as Za, cg as qa, c5 as ja, c6 as Xa, c7 as $a, c8 as es, c9 as as, ca as ss, bU as ts, bV as rs, bZ as os, bW as is, bY as ls, bX as ns, cb as ps, cc as ds, cd as cs, a7 as ws, bS as us, aP as gs, aK as bs, ci as Os, a8 as ms, cj as Cs, aB as Ts, av as Ss, g as Gs, X as Ls, aR as hs, $ as ys, _ as Is, cC as Bs, n as Ds, B as Es, K as vs, L as Ns, J as Rs, l as Ps, q as ks, v as fs, x as xs, z as Vs, p as As, C as Hs, E as _s, M as Fs, V as Ms, U as Us, k as zs, I as Ys, G as Js, H as Ks, m as Qs, r as Ws, w as Zs, y as qs, A as js, D as Xs, N as $s, P as et, Q as at, R as st, S as tt, T as rt } from "./index-6p52ESZP.js";
|
|
2
|
+
import { DialogsProvider as it } from "@toolpad/core/useDialogs";
|
|
3
3
|
import "@mui/material/styles";
|
|
4
4
|
import "@mui/material/Typography";
|
|
5
5
|
export {
|
|
6
6
|
r as CommonCodeRadioGroup,
|
|
7
7
|
o as CommonCodeSelector,
|
|
8
|
-
|
|
8
|
+
it as DialogsProvider,
|
|
9
9
|
i as ErrorBoundary,
|
|
10
10
|
l as EventEmitter,
|
|
11
11
|
n as FALLBACK_LANGUAGE_LIST,
|
|
@@ -34,21 +34,21 @@ export {
|
|
|
34
34
|
R as OwpMrtTable,
|
|
35
35
|
P as OwpNavBadge,
|
|
36
36
|
k as OwpNavHorizontalCollapse,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
f as OwpNavHorizontalGroup,
|
|
38
|
+
x as OwpNavHorizontalItem,
|
|
39
39
|
V as OwpNavHorizontalLayout1,
|
|
40
40
|
A as OwpNavHorizontalLink,
|
|
41
41
|
H as OwpNavItem,
|
|
42
42
|
_ as OwpNavItemModel,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
F as OwpNavVerticalCollapse,
|
|
44
|
+
M as OwpNavVerticalGroup,
|
|
45
45
|
U as OwpNavVerticalItem,
|
|
46
46
|
z as OwpNavVerticalLayout1,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
Y as OwpNavVerticalLayout2,
|
|
48
|
+
J as OwpNavVerticalLink,
|
|
49
|
+
K as OwpNavVerticalTab,
|
|
50
|
+
Q as OwpNavigation,
|
|
51
|
+
W as OwpNavigationHelper,
|
|
52
52
|
Z as OwpNumberField,
|
|
53
53
|
q as OwpPageCarded,
|
|
54
54
|
j as OwpPageCardedHeader,
|
|
@@ -75,148 +75,151 @@ export {
|
|
|
75
75
|
Ce as OwpSvgIcon,
|
|
76
76
|
Te as OwpTab,
|
|
77
77
|
Se as OwpTable,
|
|
78
|
-
Ge as
|
|
79
|
-
Le as
|
|
80
|
-
he as
|
|
81
|
-
ye as
|
|
82
|
-
Ie as
|
|
83
|
-
Be as
|
|
84
|
-
De as
|
|
85
|
-
Ee as
|
|
86
|
-
ve as
|
|
87
|
-
Ne as
|
|
88
|
-
Re as
|
|
89
|
-
Pe as
|
|
90
|
-
ke as
|
|
78
|
+
Ge as OwpTableTotalCount,
|
|
79
|
+
Le as OwpTabs,
|
|
80
|
+
he as OwpTextMaskField,
|
|
81
|
+
ye as OwpTheme,
|
|
82
|
+
Ie as OwpThemeSelector,
|
|
83
|
+
Be as OwpTimePicker,
|
|
84
|
+
De as OwpTreeGrid,
|
|
85
|
+
Ee as OwpTreeGridExcelButton,
|
|
86
|
+
ve as OwpTreeGridToolbar,
|
|
87
|
+
Ne as OwpUtils,
|
|
88
|
+
Re as OwpVerticalTable,
|
|
89
|
+
Pe as OwpWeekDatePicker,
|
|
90
|
+
ke as OwpYearRangePicker,
|
|
91
|
+
fe as OwpYesNoSelector,
|
|
91
92
|
xe as OwpZoomImageSlider,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
Ve as StyledTable,
|
|
94
|
+
Ae as StyledTableRow,
|
|
95
|
+
He as TREEGRID_CELL_HIGHLIGHT_CLASS,
|
|
96
|
+
_e as TREEGRID_CELL_HIGHLIGHT_COLOR,
|
|
97
|
+
Fe as TREEGRID_INPUT_CELL_COLOR,
|
|
97
98
|
Me as TREEGRID_WARNING_CELL_COLOR,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
Ue as TreeGrid,
|
|
100
|
+
ze as addRowById,
|
|
101
|
+
Ye as addTreeGridRowById,
|
|
101
102
|
Je as authRoles,
|
|
102
103
|
Ke as buildTreeGridEnumAttributesByCommonCodeList,
|
|
103
104
|
Qe as changeOwpTheme,
|
|
104
105
|
We as changeVisibleCellByGridId,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
xa as
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
Ma as
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
Ja as
|
|
156
|
-
Ka as
|
|
157
|
-
Qa as
|
|
158
|
-
Wa as
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
xs as
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
Ms as
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
Js as
|
|
210
|
-
Ks as
|
|
211
|
-
Qs as
|
|
212
|
-
Ws as
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
106
|
+
Ze as createAppSelector,
|
|
107
|
+
qe as createJsonBody,
|
|
108
|
+
je as createJsonString,
|
|
109
|
+
Xe as darkPaletteText,
|
|
110
|
+
$e as exportExcelByBuffer,
|
|
111
|
+
ea as exportExcelByGrid,
|
|
112
|
+
aa as exportExcelById,
|
|
113
|
+
sa as exportTreeGridToExcelById,
|
|
114
|
+
ta as formatDateToYmd,
|
|
115
|
+
ra as formatNumber,
|
|
116
|
+
oa as generateBarcodeUrl,
|
|
117
|
+
ia as generateQrCodeUrl,
|
|
118
|
+
la as generateSettings,
|
|
119
|
+
na as getChangedDataRowsById,
|
|
120
|
+
pa as getDataRowsById,
|
|
121
|
+
da as getDirection,
|
|
122
|
+
ca as getDisplayValue,
|
|
123
|
+
wa as getFooterTheme,
|
|
124
|
+
ua as getFormDefaultValues,
|
|
125
|
+
ga as getGridById,
|
|
126
|
+
ba as getIndexByLetters,
|
|
127
|
+
Oa as getLettersByIndex,
|
|
128
|
+
ma as getMainTheme,
|
|
129
|
+
Ca as getNavbarTheme,
|
|
130
|
+
Ta as getSelectedRowsById,
|
|
131
|
+
Sa as getTodayYmd,
|
|
132
|
+
Ga as getToolbarTheme,
|
|
133
|
+
La as getTreeGridById,
|
|
134
|
+
ha as getTreeGridDataRowsById,
|
|
135
|
+
ya as getTreeGridRowChangesById,
|
|
136
|
+
Ia as getTreeGridSelectedRowsById,
|
|
137
|
+
Ba as highlightTreeGridCellById,
|
|
138
|
+
Da as isEnterKeyEvent,
|
|
139
|
+
Ea as isUrlInChildren,
|
|
140
|
+
va as lightPaletteText,
|
|
141
|
+
Na as makeStore,
|
|
142
|
+
Ra as owpDark,
|
|
143
|
+
Pa as owpSettingsSlice,
|
|
144
|
+
ka as rebuildValue,
|
|
145
|
+
fa as reloadBodyById,
|
|
146
|
+
xa as reloadTreeGridBodyById,
|
|
147
|
+
Va as resetGridChanges,
|
|
148
|
+
Aa as resetGridSelection,
|
|
149
|
+
Ha as resetGridsChanges,
|
|
150
|
+
_a as resetGridsSelection,
|
|
151
|
+
Fa as resetSettings,
|
|
152
|
+
Ma as resetTreeGridChangesById,
|
|
153
|
+
Ua as resetTreeGridChangesByIds,
|
|
154
|
+
za as resetTreeGridSelectionById,
|
|
155
|
+
Ya as resetTreeGridSelectionsByIds,
|
|
156
|
+
Ja as saveAsZipFile,
|
|
157
|
+
Ka as selectContrastMainTheme,
|
|
158
|
+
Qa as selectCustomScrollbarsEnabled,
|
|
159
|
+
Wa as selectFooterTheme,
|
|
160
|
+
Za as selectFooterThemeDark,
|
|
161
|
+
qa as selectFooterThemeLight,
|
|
162
|
+
ja as selectMainTheme,
|
|
163
|
+
Xa as selectMainThemeDark,
|
|
164
|
+
$a as selectMainThemeLight,
|
|
165
|
+
es as selectNavbarTheme,
|
|
166
|
+
as as selectNavbarThemeDark,
|
|
167
|
+
ss as selectNavbarThemeLight,
|
|
168
|
+
ts as selectOwpCurrentLayoutConfig,
|
|
169
|
+
rs as selectOwpCurrentSettings,
|
|
170
|
+
os as selectOwpDefaultSettings,
|
|
171
|
+
is as selectOwpSettings,
|
|
172
|
+
ls as selectOwpSettingsCurrent,
|
|
173
|
+
ns as selectOwpSettingsDefaults,
|
|
174
|
+
ps as selectToolbarTheme,
|
|
175
|
+
ds as selectToolbarThemeDark,
|
|
176
|
+
cs as selectToolbarThemeLight,
|
|
177
|
+
ws as setCellValue,
|
|
178
|
+
us as setDefaultSettings,
|
|
179
|
+
gs as setGridEnum,
|
|
180
|
+
bs as setHighlightTargetCellByGridId,
|
|
181
|
+
Os as setInitialSettings,
|
|
182
|
+
ms as setMergeCells,
|
|
183
|
+
Cs as setSettings,
|
|
184
|
+
Ts as setTreeGridColumnEnumOptionsById,
|
|
185
|
+
Ss as setTreeGridColumnVisibilityById,
|
|
186
|
+
Gs as skyBlue,
|
|
187
|
+
Ls as store,
|
|
188
|
+
hs as themeLayouts,
|
|
189
|
+
ys as transformCommonCodeBasedOnGroupId,
|
|
190
|
+
Is as transformGridEnumByCommonCodeList,
|
|
191
|
+
Bs as transformTreeViewListData,
|
|
192
|
+
Ds as useConfirm,
|
|
193
|
+
Es as useDebounce,
|
|
194
|
+
vs as useDeepCompareEffect,
|
|
195
|
+
Ns as useDeepCompareEffectNoCheck,
|
|
196
|
+
Rs as useDeepCompareMemoize,
|
|
197
|
+
Ps as useGetCommonCodeList,
|
|
198
|
+
ks as useGetCurrentLanguage,
|
|
199
|
+
fs as useGetCurrentLogoSrc,
|
|
200
|
+
xs as useGetCurrentUser,
|
|
201
|
+
Vs as useGetCurrentUserId,
|
|
202
|
+
As as useGetLanguageList,
|
|
203
|
+
Hs as useGetNavigationList,
|
|
204
|
+
_s as useGetPageLockLoading,
|
|
205
|
+
Fs as useGetShortcuts,
|
|
206
|
+
Ms as useGetTreeGridEnumByCommonCode,
|
|
207
|
+
Us as useGetTreeGridInstance,
|
|
208
|
+
zs as useOwpAppContext,
|
|
209
|
+
Ys as useOwpTranslation,
|
|
210
|
+
Js as usePageLockLoading,
|
|
211
|
+
Ks as usePrevious,
|
|
212
|
+
Qs as useSetCommonCodeList,
|
|
213
|
+
Ws as useSetCurrentLanguage,
|
|
214
|
+
Zs as useSetCurrentLogoSrc,
|
|
215
|
+
qs as useSetCurrentUser,
|
|
216
|
+
js as useSetCurrentUserId,
|
|
217
|
+
Xs as useSetNavigationList,
|
|
218
|
+
$s as useSetShortcuts,
|
|
219
|
+
et as useStorage,
|
|
220
|
+
at as useThemeMediaQuery,
|
|
221
|
+
st as useTimeout,
|
|
222
|
+
tt as useTreeGridCommonCodeEnum,
|
|
223
|
+
rt as useTreeGridCommonCodeEnums
|
|
221
224
|
};
|
|
222
225
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { MRT_RowData
|
|
2
|
-
|
|
1
|
+
import type { MRT_RowData } from 'material-react-table';
|
|
2
|
+
import { type DataTableProps } from '../shared-components/data-table/DataTable';
|
|
3
|
+
export type OwpMrtTableProps<TData extends MRT_RowData> = DataTableProps<TData>;
|
|
3
4
|
/**
|
|
4
5
|
* OwpMrtTable 컴포넌트
|
|
5
6
|
* @param props 컴포넌트 props
|
|
@@ -4,29 +4,46 @@ import { type TableContainerProps } from '@mui/material/TableContainer';
|
|
|
4
4
|
type OwpTableCellValue = string | number;
|
|
5
5
|
type OwpTableHeaderRow = Record<string, OwpTableCellValue>;
|
|
6
6
|
interface StyledTableProps extends TableProps {
|
|
7
|
+
canBodyFullHeight?: boolean;
|
|
8
|
+
canUseTreeGridStyle?: boolean;
|
|
7
9
|
containerProps?: TableContainerProps;
|
|
10
|
+
footerSlot?: React.ReactNode;
|
|
8
11
|
tableLayout?: 'auto' | 'fixed';
|
|
9
12
|
title?: string;
|
|
10
13
|
children: React.ReactNode;
|
|
11
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* 총 row 수 표시 영역
|
|
17
|
+
* @param totalCount 전체 row 수
|
|
18
|
+
*/
|
|
19
|
+
export declare function OwpTableTotalCount({ totalCount }: {
|
|
20
|
+
totalCount?: number;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
22
|
/**
|
|
13
23
|
* StyledTable 스타일 컴포넌트
|
|
24
|
+
* @param canBodyFullHeight body full height 사용 여부
|
|
25
|
+
* @param canUseTreeGridStyle TreeGrid 스타일 사용 여부
|
|
14
26
|
* @param children 하위 콘텐츠
|
|
15
27
|
* @param containerProps containerProps props
|
|
28
|
+
* @param footerSlot footer 영역
|
|
16
29
|
* @param tableLayout tableLayout 값
|
|
17
30
|
*/
|
|
18
|
-
export declare const StyledTable: ({ children, className, containerProps, tableLayout, ...tableProps }: StyledTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const StyledTable: ({ canBodyFullHeight, canUseTreeGridStyle, children, className, containerProps, footerSlot, tableLayout, ...tableProps }: StyledTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
32
|
export declare const StyledTableRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
|
|
20
33
|
ref?: import("react").Ref<HTMLTableRowElement>;
|
|
21
34
|
}, "children" | "sx" | "classes" | "style" | "hover" | "selected" | "className"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
22
35
|
interface OwpTableProps<T> extends Omit<StyledTableProps, 'children'> {
|
|
36
|
+
canTotalCountRow?: boolean;
|
|
23
37
|
headers: OwpTableHeaderRow | OwpTableHeaderRow[];
|
|
24
38
|
rows: T[];
|
|
39
|
+
totalCount?: number;
|
|
25
40
|
}
|
|
26
41
|
/**
|
|
27
42
|
* OwpTable 컴포넌트
|
|
43
|
+
* @param canTotalCountRow 전체 row 수 표시 여부
|
|
28
44
|
* @param headers headers 값
|
|
29
45
|
* @param rows 행 데이터 목록
|
|
46
|
+
* @param totalCount 전체 row 수
|
|
30
47
|
*/
|
|
31
|
-
export declare function OwpTable<T>({ headers, rows, ...restTableProps }: OwpTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function OwpTable<T>({ canTotalCountRow, headers, rows, totalCount, ...restTableProps }: OwpTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
32
49
|
export {};
|
|
@@ -25,6 +25,7 @@ interface OwpVerticalTableProps {
|
|
|
25
25
|
colGroupSlot?: ReactNode;
|
|
26
26
|
className?: string;
|
|
27
27
|
tableLayout?: 'auto' | 'fixed';
|
|
28
|
+
canUseTreeGridStyle?: boolean;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* OwpVerticalTable 컴포넌트
|
|
@@ -36,6 +37,7 @@ interface OwpVerticalTableProps {
|
|
|
36
37
|
* @param colGroupSlot colGroupSlot 값
|
|
37
38
|
* @param className className 값
|
|
38
39
|
* @param tableLayout tableLayout 값
|
|
40
|
+
* @param canUseTreeGridStyle TreeGrid 스타일 사용 여부
|
|
39
41
|
*/
|
|
40
|
-
export declare function OwpVerticalTable({ layout, titleWidth, titleSx, cellSx, data, colGroupSlot, className, tableLayout, }: OwpVerticalTableProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function OwpVerticalTable({ layout, titleWidth, titleSx, cellSx, data, colGroupSlot, className, tableLayout, canUseTreeGridStyle, }: OwpVerticalTableProps): import("react/jsx-runtime").JSX.Element;
|
|
41
43
|
export {};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import { MaterialReactTableProps } from 'material-react-table';
|
|
2
|
-
|
|
1
|
+
import { type MaterialReactTableProps, type MRT_RowData } from 'material-react-table';
|
|
2
|
+
export type DataTableProps<TData extends MRT_RowData> = MaterialReactTableProps<TData> & {
|
|
3
|
+
canTotalCountRow?: boolean;
|
|
4
|
+
canUseTreeGridStyle?: boolean;
|
|
5
|
+
totalCount?: number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* MRT 기반 공통 테이블 컴포넌트
|
|
9
|
+
* @param props Material React Table props
|
|
10
|
+
*/
|
|
11
|
+
declare function DataTable<TData extends MRT_RowData>(props: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
3
12
|
export default DataTable;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './utils/createJsonString';
|
|
|
31
31
|
export * from './utils/excelUtil';
|
|
32
32
|
export * from './utils/errors';
|
|
33
33
|
export * from './utils/events';
|
|
34
|
+
export * from './utils/formatDateToYmd';
|
|
34
35
|
export * from './utils/formatNumber';
|
|
35
36
|
export * from './utils/getDisplayValue';
|
|
36
37
|
export * from './utils/getFormDefaultValues';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ConfigType } from 'dayjs';
|
|
2
|
+
/**
|
|
3
|
+
* 날짜 문자열 포맷 유틸
|
|
4
|
+
* @param date 원본 날짜 값
|
|
5
|
+
* @param format 출력 포맷
|
|
6
|
+
*/
|
|
7
|
+
export declare const formatDateToYmd: (date?: ConfigType | null, format?: string) => string;
|
|
8
|
+
/**
|
|
9
|
+
* 오늘 날짜 문자열 포맷 유틸
|
|
10
|
+
* @param format 출력 포맷
|
|
11
|
+
*/
|
|
12
|
+
export declare const getTodayYmd: (format?: string) => string;
|
|
@@ -22,18 +22,18 @@ export declare const TREEGRID_CELL_HIGHLIGHT_COLOR = "#ff8904";
|
|
|
22
22
|
* TreeGrid 인스턴스 ID 조회
|
|
23
23
|
* @param gridId TreeGrid 인스턴스 ID
|
|
24
24
|
*/
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const getTreeGridById: (gridId: string) => TTGrid;
|
|
26
26
|
/**
|
|
27
27
|
* TreeGrid 데이터 행 목록 조회
|
|
28
28
|
* @param gridId TreeGrid 인스턴스 ID
|
|
29
29
|
*/
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const getTreeGridDataRowsById: <T>(gridId: string) => T;
|
|
31
31
|
/**
|
|
32
32
|
* TreeGrid Body 데이터 교체 후 재로드
|
|
33
33
|
* @param gridId TreeGrid 인스턴스 ID
|
|
34
34
|
* @param rows 새로 반영할 행 데이터
|
|
35
35
|
*/
|
|
36
|
-
export declare const
|
|
36
|
+
export declare const reloadTreeGridBodyById: (gridId: string, rows: unknown) => void;
|
|
37
37
|
/**
|
|
38
38
|
* 행을 특정 위치에 추가
|
|
39
39
|
* @param gridId TreeGrid 인스턴스 ID
|
|
@@ -43,12 +43,12 @@ export declare const reloadBodyById: (gridId: string, rows: unknown) => void;
|
|
|
43
43
|
* @param options.insertPosition 행 삽입 위치
|
|
44
44
|
* @param options.initialValues 신규 행 초기값
|
|
45
45
|
*/
|
|
46
|
-
export declare const
|
|
46
|
+
export declare const addTreeGridRowById: <T>(gridId: string, options?: TreeGridAddRowOptions<T>) => void;
|
|
47
47
|
/**
|
|
48
48
|
* TreeGrid 추가/수정 데이터 행 조회
|
|
49
49
|
* @param gridId TreeGrid 인스턴스 ID
|
|
50
50
|
*/
|
|
51
|
-
export declare const
|
|
51
|
+
export declare const getTreeGridRowChangesById: <T>(gridId: string) => {
|
|
52
52
|
added: T[];
|
|
53
53
|
changed: T[];
|
|
54
54
|
};
|
|
@@ -57,46 +57,46 @@ export declare const getChangedDataRowsById: <T>(gridId: string) => {
|
|
|
57
57
|
* @param gridId TreeGrid 인스턴스 ID
|
|
58
58
|
* @param title 다운로드 파일명
|
|
59
59
|
*/
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const exportTreeGridToExcelById: (gridId: string, title?: string) => void;
|
|
61
61
|
/**
|
|
62
62
|
* TreeGrid 현재 선택 행 목록 조회
|
|
63
63
|
* @param gridId TreeGrid 인스턴스 ID
|
|
64
64
|
*/
|
|
65
|
-
export declare const
|
|
65
|
+
export declare const getTreeGridSelectedRowsById: <T>(gridId: string) => any[] | T;
|
|
66
66
|
/**
|
|
67
67
|
* TreeGrid 컬럼 표시 여부 변경
|
|
68
68
|
* @param gridId TreeGrid 인스턴스 ID
|
|
69
69
|
* @param options.targetKey 표시 상태를 변경할 컬럼 키
|
|
70
70
|
* @param options.canVisible 컬럼 표시 여부
|
|
71
71
|
*/
|
|
72
|
-
export declare const
|
|
72
|
+
export declare const setTreeGridColumnVisibilityById: (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
|
-
export declare const
|
|
79
|
+
export declare const highlightTreeGridCellById: (gridId: string, targetOption: TreeGridHighlightTargetOption) => void;
|
|
80
80
|
/**
|
|
81
81
|
* TreeGrid 현재 선택 상태 전체 해제
|
|
82
82
|
* @param gridId TreeGrid 인스턴스 ID
|
|
83
83
|
*/
|
|
84
|
-
export declare const
|
|
84
|
+
export declare const resetTreeGridSelectionById: (gridId: string) => void;
|
|
85
85
|
/**
|
|
86
86
|
* 여러 TreeGrid 선택 상태 전체 해제
|
|
87
87
|
* @param gridIds TreeGrid 인스턴스 ID 목록
|
|
88
88
|
*/
|
|
89
|
-
export declare const
|
|
89
|
+
export declare const resetTreeGridSelectionsByIds: (gridIds: string[]) => void;
|
|
90
90
|
/**
|
|
91
91
|
* TreeGrid 변경 사항 및 선택 상태 초기화
|
|
92
92
|
* @param gridId TreeGrid 인스턴스 ID
|
|
93
93
|
*/
|
|
94
|
-
export declare const
|
|
94
|
+
export declare const resetTreeGridChangesById: (gridId: string) => void;
|
|
95
95
|
/**
|
|
96
96
|
* 여러 TreeGrid 변경 사항 및 선택 상태 초기화
|
|
97
97
|
* @param gridIds TreeGrid 인스턴스 ID 목록
|
|
98
98
|
*/
|
|
99
|
-
export declare const
|
|
99
|
+
export declare const resetTreeGridChangesByIds: (gridIds: string[]) => void;
|
|
100
100
|
/**
|
|
101
101
|
* TreeGrid Enum 컬럼 옵션 반영
|
|
102
102
|
* @param gridId TreeGrid 인스턴스 ID
|
|
@@ -105,23 +105,64 @@ export declare const resetGridsChanges: (gridIds: string[]) => void;
|
|
|
105
105
|
* @param valueKey Enum 값으로 사용할 필드명
|
|
106
106
|
* @param labelKeys Enum 라벨로 사용할 필드 우선순위 목록
|
|
107
107
|
*/
|
|
108
|
-
export declare const
|
|
109
|
-
/**
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
export declare const
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
export declare const setTreeGridColumnEnumOptionsById: <T extends object>(gridId: string, columnName: string, options: T[] | undefined, valueKey: keyof T & string, labelKeys: Array<keyof T & string>) => void;
|
|
109
|
+
/**
|
|
110
|
+
* @deprecated `getTreeGridById` 사용
|
|
111
|
+
*/
|
|
112
|
+
export declare const getGridById: (gridId: string) => TTGrid;
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated `getTreeGridDataRowsById` 사용
|
|
115
|
+
*/
|
|
116
|
+
export declare const getDataRowsById: <T>(gridId: string) => T;
|
|
117
|
+
/**
|
|
118
|
+
* @deprecated `reloadTreeGridBodyById` 사용
|
|
119
|
+
*/
|
|
120
|
+
export declare const reloadBodyById: (gridId: string, rows: unknown) => void;
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated `addTreeGridRowById` 사용
|
|
123
|
+
*/
|
|
124
|
+
export declare const addRowById: <T>(gridId: string, options?: TreeGridAddRowOptions<T>) => void;
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated `getTreeGridRowChangesById` 사용
|
|
127
|
+
*/
|
|
128
|
+
export declare const getChangedDataRowsById: <T>(gridId: string) => {
|
|
115
129
|
added: T[];
|
|
116
130
|
changed: T[];
|
|
117
131
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
export declare const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
export declare const
|
|
126
|
-
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated `exportTreeGridToExcelById` 사용
|
|
134
|
+
*/
|
|
135
|
+
export declare const exportExcelById: (gridId: string, title?: string) => void;
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated `getTreeGridSelectedRowsById` 사용
|
|
138
|
+
*/
|
|
139
|
+
export declare const getSelectedRowsById: <T>(gridId: string) => any[] | T;
|
|
140
|
+
/**
|
|
141
|
+
* @deprecated `setTreeGridColumnVisibilityById` 사용
|
|
142
|
+
*/
|
|
143
|
+
export declare const changeVisibleCellByGridId: (gridId: string, options: TreeGridColumnVisibilityOptions) => void;
|
|
144
|
+
/**
|
|
145
|
+
* @deprecated `highlightTreeGridCellById` 사용
|
|
146
|
+
*/
|
|
147
|
+
export declare const setHighlightTargetCellByGridId: (gridId: string, targetOption: TreeGridHighlightTargetOption) => void;
|
|
148
|
+
/**
|
|
149
|
+
* @deprecated `resetTreeGridSelectionById` 사용
|
|
150
|
+
*/
|
|
151
|
+
export declare const resetGridSelection: (gridId: string) => void;
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated `resetTreeGridSelectionsByIds` 사용
|
|
154
|
+
*/
|
|
155
|
+
export declare const resetGridsSelection: (gridIds: string[]) => void;
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated `resetTreeGridChangesById` 사용
|
|
158
|
+
*/
|
|
159
|
+
export declare const resetGridChanges: (gridId: string) => void;
|
|
160
|
+
/**
|
|
161
|
+
* @deprecated `resetTreeGridChangesByIds` 사용
|
|
162
|
+
*/
|
|
163
|
+
export declare const resetGridsChanges: (gridIds: string[]) => void;
|
|
164
|
+
/**
|
|
165
|
+
* @deprecated `setTreeGridColumnEnumOptionsById` 사용
|
|
166
|
+
*/
|
|
167
|
+
export declare const setGridEnum: <T extends object>(gridId: string, columnName: string, options: T[] | undefined, valueKey: keyof T & string, labelKeys: Array<keyof T & string>) => void;
|
|
127
168
|
export {};
|