@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/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { a_ as r, aY as o, a9 as i, aa as l, F as n, h as p, i as d, aS as c, aT as w, aU as u, aV as g, aZ as b, aX as O, aW as m, cm as C, bB as T, bC as S, a$ as G, b0 as L, b1 as h, aQ as y, b2 as I, bK as B, bL as D, b3 as E, b4 as v, b6 as N, b5 as R, bf as P, b9 as k, ba as x, bb as f, b8 as V, bc as A, bg as H, be as _, bk as M, bl as F, bm as U, bi as z, bj as J, bn as K, bo as Q, b7 as W, bh as Y, bp as Z, bq as q, br as j, bs as X, bt as $, bu as ee, bv as ae, bw as se, bx as te, by as re, bz as oe, bA as ie, d as le, bG as ne, bH as pe, bI as de, bJ as ce, aR as we, ci as ue, cj as ge, cy as be, ck as Oe, cl as me, O as Ce, cC as Te, cp as Se, cD as Ge, cr as Le, cs as he, ct as ye, bD as Ie, cv as Be, cu as De, cx as Ee, a1 as ve, cq as Ne, bE as Re, bF as Pe, cB as ke, cA as xe, cn as fe, co as Ve, ak as Ae, al as He, aj as _e, ai as Me, cw as Fe, ap as Ue, aD as ze, e as Je, a0 as Ke, bO as Qe, at as We, Y as Ye, a2 as Ze, a3 as qe, bN as je, a6 as Xe, ah as $e, ar as ea, aF as aa, ab as sa, Z as ta, af as ra, bP as oa, aq as ia, an as la, bZ as na, ac as pa, c1 as da, ad as ca, am as wa, a4 as ua, a5 as ga, b_ as ba, b$ as Oa, as as ma, c0 as Ca, aA as Ta, aB as Sa, aE as Ga, aG as La, aI as ha, ae as ya, bd as Ia, bM as Ba, W as Da, o as Ea, bR as va, ag as Na, ao as Ra, aC as Pa, ax as ka, av as xa, ay as fa, aw as Va, cf as Aa, aL as Ha, aM as _a, aJ as Ma, aK as Fa, aO as Ua, c2 as za, bY as Ja, cc as Ka, cd as Qa, ce as Wa, c3 as Ya, c4 as Za, c5 as qa, c6 as ja, c7 as Xa, c8 as $a, bS as es, bT as as, bX as ss, bU as ts, bW as rs, bV as os, c9 as is, ca as ls, cb as ns, a7 as ps, bQ as ds, az as cs, au as ws, cg as us, a8 as gs, ch as bs, aN as Os, aH as ms, g as Cs, X as Ts, aP as Ss, $ as Gs, _ as Ls, cz as hs, n as ys, B as Is, K as Bs, L as Ds, J as Es, l as vs, q as Ns, v as Rs, x as Ps, z as ks, p as xs, C as fs, E as Vs, M as As, V as Hs, U as _s, k as Ms, I as Fs, G as Us, H as zs, m as Js, r as Ks, w as Qs, y as Ws, A as Ys, D as Zs, N as qs, P as js, Q as Xs, R as $s, S as et, T as at } from "./index-C5iLGqzC.js";
2
- import { DialogsProvider as tt } from "@toolpad/core/useDialogs";
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
- tt as DialogsProvider,
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
- x as OwpNavHorizontalGroup,
38
- f as OwpNavHorizontalItem,
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
- M as OwpNavVerticalCollapse,
44
- F as OwpNavVerticalGroup,
43
+ F as OwpNavVerticalCollapse,
44
+ M as OwpNavVerticalGroup,
45
45
  U as OwpNavVerticalItem,
46
46
  z as OwpNavVerticalLayout1,
47
- J as OwpNavVerticalLayout2,
48
- K as OwpNavVerticalLink,
49
- Q as OwpNavVerticalTab,
50
- W as OwpNavigation,
51
- Y as OwpNavigationHelper,
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 OwpTabs,
79
- Le as OwpTextMaskField,
80
- he as OwpTheme,
81
- ye as OwpThemeSelector,
82
- Ie as OwpTimePicker,
83
- Be as OwpTreeGrid,
84
- De as OwpTreeGridExcelButton,
85
- Ee as OwpTreeGridToolbar,
86
- ve as OwpUtils,
87
- Ne as OwpVerticalTable,
88
- Re as OwpWeekDatePicker,
89
- Pe as OwpYearRangePicker,
90
- ke as OwpYesNoSelector,
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
- fe as StyledTable,
93
- Ve as StyledTableRow,
94
- Ae as TREEGRID_CELL_HIGHLIGHT_CLASS,
95
- He as TREEGRID_CELL_HIGHLIGHT_COLOR,
96
- _e as TREEGRID_INPUT_CELL_COLOR,
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
- Fe as TreeGrid,
99
- Ue as addRowById,
100
- ze as addTreeGridRowById,
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
- Ye as createAppSelector,
106
- Ze as createJsonBody,
107
- qe as createJsonString,
108
- je as darkPaletteText,
109
- Xe as exportExcelByBuffer,
110
- $e as exportExcelByGrid,
111
- ea as exportExcelById,
112
- aa as exportTreeGridToExcelById,
113
- sa as formatNumber,
114
- ta as generateBarcodeUrl,
115
- ra as generateQrCodeUrl,
116
- oa as generateSettings,
117
- ia as getChangedDataRowsById,
118
- la as getDataRowsById,
119
- na as getDirection,
120
- pa as getDisplayValue,
121
- da as getFooterTheme,
122
- ca as getFormDefaultValues,
123
- wa as getGridById,
124
- ua as getIndexByLetters,
125
- ga as getLettersByIndex,
126
- ba as getMainTheme,
127
- Oa as getNavbarTheme,
128
- ma as getSelectedRowsById,
129
- Ca as getToolbarTheme,
130
- Ta as getTreeGridById,
131
- Sa as getTreeGridDataRowsById,
132
- Ga as getTreeGridRowChangesById,
133
- La as getTreeGridSelectedRowsById,
134
- ha as highlightTreeGridCellById,
135
- ya as isEnterKeyEvent,
136
- Ia as isUrlInChildren,
137
- Ba as lightPaletteText,
138
- Da as makeStore,
139
- Ea as owpDark,
140
- va as owpSettingsSlice,
141
- Na as rebuildValue,
142
- Ra as reloadBodyById,
143
- Pa as reloadTreeGridBodyById,
144
- ka as resetGridChanges,
145
- xa as resetGridSelection,
146
- fa as resetGridsChanges,
147
- Va as resetGridsSelection,
148
- Aa as resetSettings,
149
- Ha as resetTreeGridChangesById,
150
- _a as resetTreeGridChangesByIds,
151
- Ma as resetTreeGridSelectionById,
152
- Fa as resetTreeGridSelectionsByIds,
153
- Ua as saveAsZipFile,
154
- za as selectContrastMainTheme,
155
- Ja as selectCustomScrollbarsEnabled,
156
- Ka as selectFooterTheme,
157
- Qa as selectFooterThemeDark,
158
- Wa as selectFooterThemeLight,
159
- Ya as selectMainTheme,
160
- Za as selectMainThemeDark,
161
- qa as selectMainThemeLight,
162
- ja as selectNavbarTheme,
163
- Xa as selectNavbarThemeDark,
164
- $a as selectNavbarThemeLight,
165
- es as selectOwpCurrentLayoutConfig,
166
- as as selectOwpCurrentSettings,
167
- ss as selectOwpDefaultSettings,
168
- ts as selectOwpSettings,
169
- rs as selectOwpSettingsCurrent,
170
- os as selectOwpSettingsDefaults,
171
- is as selectToolbarTheme,
172
- ls as selectToolbarThemeDark,
173
- ns as selectToolbarThemeLight,
174
- ps as setCellValue,
175
- ds as setDefaultSettings,
176
- cs as setGridEnum,
177
- ws as setHighlightTargetCellByGridId,
178
- us as setInitialSettings,
179
- gs as setMergeCells,
180
- bs as setSettings,
181
- Os as setTreeGridColumnEnumOptionsById,
182
- ms as setTreeGridColumnVisibilityById,
183
- Cs as skyBlue,
184
- Ts as store,
185
- Ss as themeLayouts,
186
- Gs as transformCommonCodeBasedOnGroupId,
187
- Ls as transformGridEnumByCommonCodeList,
188
- hs as transformTreeViewListData,
189
- ys as useConfirm,
190
- Is as useDebounce,
191
- Bs as useDeepCompareEffect,
192
- Ds as useDeepCompareEffectNoCheck,
193
- Es as useDeepCompareMemoize,
194
- vs as useGetCommonCodeList,
195
- Ns as useGetCurrentLanguage,
196
- Rs as useGetCurrentLogoSrc,
197
- Ps as useGetCurrentUser,
198
- ks as useGetCurrentUserId,
199
- xs as useGetLanguageList,
200
- fs as useGetNavigationList,
201
- Vs as useGetPageLockLoading,
202
- As as useGetShortcuts,
203
- Hs as useGetTreeGridEnumByCommonCode,
204
- _s as useGetTreeGridInstance,
205
- Ms as useOwpAppContext,
206
- Fs as useOwpTranslation,
207
- Us as usePageLockLoading,
208
- zs as usePrevious,
209
- Js as useSetCommonCodeList,
210
- Ks as useSetCurrentLanguage,
211
- Qs as useSetCurrentLogoSrc,
212
- Ws as useSetCurrentUser,
213
- Ys as useSetCurrentUserId,
214
- Zs as useSetNavigationList,
215
- qs as useSetShortcuts,
216
- js as useStorage,
217
- Xs as useThemeMediaQuery,
218
- $s as useTimeout,
219
- et as useTreeGridCommonCodeEnum,
220
- at as useTreeGridCommonCodeEnums
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, MaterialReactTableProps } from 'material-react-table';
2
- export type OwpMrtTableProps<TData extends MRT_RowData> = MaterialReactTableProps<TData>;
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
- declare function DataTable<TData>(props: MaterialReactTableProps<TData>): import("react/jsx-runtime").JSX.Element;
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;
@@ -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 getGridById: (gridId: string) => TTGrid;
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 getDataRowsById: <T>(gridId: string) => T;
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 reloadBodyById: (gridId: string, rows: unknown) => void;
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 addRowById: <T>(gridId: string, options?: TreeGridAddRowOptions<T>) => void;
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 getChangedDataRowsById: <T>(gridId: string) => {
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 exportExcelById: (gridId: string, title?: string) => void;
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 getSelectedRowsById: <T>(gridId: string) => any[] | T;
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 changeVisibleCellByGridId: (gridId: string, options: TreeGridColumnVisibilityOptions) => void;
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 setHighlightTargetCellByGridId: (gridId: string, targetOption: TreeGridHighlightTargetOption) => void;
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 resetGridSelection: (gridId: string) => void;
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 resetGridsSelection: (gridIds: string[]) => void;
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 resetGridChanges: (gridId: string) => void;
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 resetGridsChanges: (gridIds: string[]) => void;
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 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) => {
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
- 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;
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 {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@owp/core",
3
3
  "private": false,
4
- "version": "1.18.0",
4
+ "version": "1.20.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",