@owp/core 1.6.1 → 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/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { aL as r, aJ as o, V as i, F as l, h as p, i as d, aD as n, aE as w, aF as b, aG as c, aK as g, aI as O, aH as u, c4 as m, bk as C, bl as T, aM as S, aN as L, aO as h, aB as G, aP as I, bs as y, bt as B, aQ as D, aR as v, aS as N, a$ as E, aV as R, aW as P, aX as f, aU as x, aY as k, b0 as V, a_ as A, b3 as H, b4 as _, b5 as F, b1 as M, b2 as U, b6 as z, b7 as Q, aT as W, b8 as Z, b9 as K, ba as Y, bb as j, bc as q, bd as J, be as X, bf as $, bg as ee, bh as ae, bi as se, bj as te, d as re, bo as oe, bp as ie, bq as le, br as pe, aC as de, c0 as ne, c1 as we, cf as be, c2 as ce, c3 as ge, O as Oe, ci as ue, c7 as me, cj as Ce, c9 as Te, ca as Se, cb as Le, cc as he, ce as Ge, a0 as Ie, c8 as ye, bm as Be, bn as De, ch as ve, c5 as Ne, c6 as Ee, a5 as Re, a6 as Pe, a4 as fe, a3 as xe, cd as ke, aa as Ve, ao as Ae, e as He, U as _e, bw as Fe, ae as Me, Q as Ue, bv as ze, Y as Qe, a2 as We, ac as Ze, aq as Ke, R as Ye, a1 as je, bx as qe, ab as Je, a8 as Xe, bH as $e, bL as ea, $ as aa, a7 as sa, W as ta, X as ra, bI as oa, bJ as ia, ad as la, bK as pa, al as da, am as na, ap as wa, ar as ba, at as ca, aZ as ga, bu as Oa, N as ua, o as ma, bz as Ca, a9 as Ta, an as Sa, ai as La, ag as ha, aj as Ga, ah as Ia, bZ as ya, aw as Ba, ax as Da, au as va, av as Na, az as Ea, bM as Ra, bG as Pa, bW as fa, bX as xa, bY as ka, bN as Va, bO as Aa, bP as Ha, bQ as _a, bR as Fa, bS as Ma, bA as Ua, bB as za, bF as Qa, bC as Wa, bE as Za, bD as Ka, bT as Ya, bU as ja, bV as qa, Z as Ja, by as Xa, ak as $a, af as es, b_ as as, _ as ss, b$ as ts, ay as rs, as as os, g as is, P as ls, aA as ps, T as ds, S as ns, cg as ws, n as bs, z as cs, G as gs, H as Os, E as us, l as ms, q as Cs, v as Ts, x as Ss, p as Ls, A as hs, I as Gs, k as Is, D as ys, C as Bs, m as Ds, r as vs, w as Ns, y as Es, B as Rs, J as Ps, K as fs, L as xs, M as ks } from "./index-CWtbF1dU.js";
2
- import { DialogsProvider as As } from "@toolpad/core/useDialogs";
1
+ import { aL as r, aJ as o, V as i, F as l, h as p, i as d, aD as n, aE as w, aF as b, aG as c, aK as g, aI as O, aH as u, c5 as m, bl as C, bm as T, aM as S, aN as L, aO as h, aB as G, aP as I, bt as y, bu as B, aQ as D, aR as v, aT as N, aS as E, b0 as R, aW as P, aX as f, aY as k, aV as x, aZ as V, b1 as A, a$ as H, b4 as _, b5 as M, b6 as F, b2 as U, b3 as z, b7 as Q, b8 as W, aU as Z, b9 as K, ba as Y, bb as j, bc as q, bd as J, be as X, bf as $, bg as ee, bh as ae, bi as se, bj as te, bk as re, d as oe, bp as ie, bq as le, br as pe, bs as de, aC as ne, c1 as we, c2 as be, cg as ce, c3 as ge, c4 as Oe, O as ue, cj as me, c8 as Ce, ck as Te, ca as Se, cb as Le, cc as he, cd as Ge, cf as Ie, a0 as ye, c9 as Be, bn as De, bo as ve, ci as Ne, c6 as Ee, c7 as Re, a5 as Pe, a6 as fe, a4 as ke, a3 as xe, ce as Ve, aa as Ae, ao as He, e as _e, U as Me, bx as Fe, ae as Ue, Q as ze, bw as Qe, Y as We, a2 as Ze, ac as Ke, aq as Ye, R as je, a1 as qe, by as Je, ab as Xe, a8 as $e, bI as ea, bM as aa, $ as sa, a7 as ta, W as ra, X as oa, bJ as ia, bK as la, ad as pa, bL as da, al as na, am as wa, ap as ba, ar as ca, at as ga, a_ as Oa, bv as ua, N as ma, o as Ca, bA as Ta, a9 as Sa, an as La, ai as ha, ag as Ga, aj as Ia, ah as ya, b_ as Ba, aw as Da, ax as va, au as Na, av as Ea, az as Ra, bN as Pa, bH as fa, bX as ka, bY as xa, bZ as Va, bO as Aa, bP as Ha, bQ as _a, bR as Ma, bS as Fa, bT as Ua, bB as za, bC as Qa, bG as Wa, bD as Za, bF as Ka, bE as Ya, bU as ja, bV as qa, bW as Ja, Z as Xa, bz as $a, ak as es, af as as, b$ as ss, _ as ts, c0 as rs, ay as os, as as is, g as ls, P as ps, aA as ds, T as ns, S as ws, ch as bs, n as cs, z as gs, G as Os, H as us, E as ms, l as Cs, q as Ts, v as Ss, x as Ls, p as hs, A as Gs, I as Is, k as ys, D as Bs, C as Ds, m as vs, r as Ns, w as Es, y as Rs, B as Ps, J as fs, K as ks, L as xs, M as Vs } from "./index-COtWRLj0.js";
2
+ import { DialogsProvider as Hs } 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
- As as DialogsProvider,
8
+ Hs as DialogsProvider,
9
9
  i as ErrorBoundary,
10
10
  l as FALLBACK_LANGUAGE_LIST,
11
11
  p as OwpAppContext,
@@ -30,173 +30,174 @@ export {
30
30
  D as OwpLoading,
31
31
  v as OwpMessage,
32
32
  N as OwpMoreActionsButton,
33
- E as OwpNavBadge,
34
- R as OwpNavHorizontalCollapse,
35
- P as OwpNavHorizontalGroup,
36
- f as OwpNavHorizontalItem,
33
+ E as OwpMrtTable,
34
+ R as OwpNavBadge,
35
+ P as OwpNavHorizontalCollapse,
36
+ f as OwpNavHorizontalGroup,
37
+ k as OwpNavHorizontalItem,
37
38
  x as OwpNavHorizontalLayout1,
38
- k as OwpNavHorizontalLink,
39
- V as OwpNavItem,
40
- A as OwpNavItemModel,
41
- H as OwpNavVerticalCollapse,
42
- _ as OwpNavVerticalGroup,
39
+ V as OwpNavHorizontalLink,
40
+ A as OwpNavItem,
41
+ H as OwpNavItemModel,
42
+ _ as OwpNavVerticalCollapse,
43
+ M as OwpNavVerticalGroup,
43
44
  F as OwpNavVerticalItem,
44
- M as OwpNavVerticalLayout1,
45
- U as OwpNavVerticalLayout2,
46
- z as OwpNavVerticalLink,
47
- Q as OwpNavVerticalTab,
48
- W as OwpNavigation,
49
- Z as OwpNumberField,
50
- K as OwpPageCarded,
51
- Y as OwpPageCardedHeader,
52
- j as OwpPageCardedSidebar,
53
- q as OwpPageCardedSidebarContent,
54
- J as OwpPageContent,
55
- X as OwpPageLockLoading,
56
- $ as OwpPageSimple,
57
- ee as OwpPageSimpleHeader,
58
- ae as OwpPageSimpleSidebar,
59
- se as OwpPageSimpleSidebarContent,
60
- te as OwpPageTitle,
61
- re as OwpScrollbars,
62
- oe as OwpSearch,
63
- ie as OwpSearchFilter,
64
- le as OwpSection,
65
- pe as OwpSettings,
66
- de as OwpSettingsViewerDialog,
67
- ne as OwpShortcuts,
68
- we as OwpSidePanel,
69
- be as OwpSlotTreeView,
70
- ce as OwpSplashScreen,
71
- ge as OwpSuspense,
72
- Oe as OwpSvgIcon,
73
- ue as OwpTab,
74
- me as OwpTable,
75
- Ce as OwpTabs,
76
- Te as OwpTextMaskField,
77
- Se as OwpTheme,
78
- Le as OwpThemeSelector,
79
- he as OwpTreeGrid,
80
- Ge as OwpTreeGridToolbar,
81
- Ie as OwpUtils,
82
- ye as OwpVerticalTable,
83
- Be as OwpWeekDatePicker,
84
- De as OwpYearRangePicker,
85
- ve as OwpZoomImageSlider,
86
- Ne as StyledTable,
87
- Ee as StyledTableRow,
88
- Re as TREEGRID_CELL_HIGHLIGHT_CLASS,
89
- Pe as TREEGRID_CELL_HIGHLIGHT_COLOR,
90
- fe as TREEGRID_INPUT_CELL_COLOR,
45
+ U as OwpNavVerticalLayout1,
46
+ z as OwpNavVerticalLayout2,
47
+ Q as OwpNavVerticalLink,
48
+ W as OwpNavVerticalTab,
49
+ Z as OwpNavigation,
50
+ K as OwpNumberField,
51
+ Y as OwpPageCarded,
52
+ j as OwpPageCardedHeader,
53
+ q as OwpPageCardedSidebar,
54
+ J as OwpPageCardedSidebarContent,
55
+ X as OwpPageContent,
56
+ $ as OwpPageLockLoading,
57
+ ee as OwpPageSimple,
58
+ ae as OwpPageSimpleHeader,
59
+ se as OwpPageSimpleSidebar,
60
+ te as OwpPageSimpleSidebarContent,
61
+ re as OwpPageTitle,
62
+ oe as OwpScrollbars,
63
+ ie as OwpSearch,
64
+ le as OwpSearchFilter,
65
+ pe as OwpSection,
66
+ de as OwpSettings,
67
+ ne as OwpSettingsViewerDialog,
68
+ we as OwpShortcuts,
69
+ be as OwpSidePanel,
70
+ ce as OwpSlotTreeView,
71
+ ge as OwpSplashScreen,
72
+ Oe as OwpSuspense,
73
+ ue as OwpSvgIcon,
74
+ me as OwpTab,
75
+ Ce as OwpTable,
76
+ Te as OwpTabs,
77
+ Se as OwpTextMaskField,
78
+ Le as OwpTheme,
79
+ he as OwpThemeSelector,
80
+ Ge as OwpTreeGrid,
81
+ Ie as OwpTreeGridToolbar,
82
+ ye as OwpUtils,
83
+ Be as OwpVerticalTable,
84
+ De as OwpWeekDatePicker,
85
+ ve as OwpYearRangePicker,
86
+ Ne as OwpZoomImageSlider,
87
+ Ee as StyledTable,
88
+ Re as StyledTableRow,
89
+ Pe as TREEGRID_CELL_HIGHLIGHT_CLASS,
90
+ fe as TREEGRID_CELL_HIGHLIGHT_COLOR,
91
+ ke as TREEGRID_INPUT_CELL_COLOR,
91
92
  xe as TREEGRID_WARNING_CELL_COLOR,
92
- ke as TreeGrid,
93
- Ve as addRowById,
94
- Ae as addTreeGridRowById,
95
- He as authRoles,
96
- _e as buildTreeGridEnumAttributesByCommonCodeList,
93
+ Ve as TreeGrid,
94
+ Ae as addRowById,
95
+ He as addTreeGridRowById,
96
+ _e as authRoles,
97
+ Me as buildTreeGridEnumAttributesByCommonCodeList,
97
98
  Fe as changeOwpTheme,
98
- Me as changeVisibleCellByGridId,
99
- Ue as createAppSelector,
100
- ze as darkPaletteText,
101
- Qe as exportExcelByBuffer,
102
- We as exportExcelByGrid,
103
- Ze as exportExcelById,
104
- Ke as exportTreeGridToExcelById,
105
- Ye as generateBarcodeUrl,
106
- je as generateQrCodeUrl,
107
- qe as generateSettings,
108
- Je as getChangedDataRowsById,
109
- Xe as getDataRowsById,
110
- $e as getDirection,
111
- ea as getFooterTheme,
112
- aa as getFormDefaultValues,
113
- sa as getGridById,
114
- ta as getIndexByLetters,
115
- ra as getLettersByIndex,
116
- oa as getMainTheme,
117
- ia as getNavbarTheme,
118
- la as getSelectedRowsById,
119
- pa as getToolbarTheme,
120
- da as getTreeGridById,
121
- na as getTreeGridDataRowsById,
122
- wa as getTreeGridRowChangesById,
123
- ba as getTreeGridSelectedRowsById,
124
- ca as highlightTreeGridCellById,
125
- ga as isUrlInChildren,
126
- Oa as lightPaletteText,
127
- ua as makeStore,
128
- ma as owpDark,
129
- Ca as owpSettingsSlice,
130
- Ta as reloadBodyById,
131
- Sa as reloadTreeGridBodyById,
132
- La as resetGridChanges,
133
- ha as resetGridSelection,
134
- Ga as resetGridsChanges,
135
- Ia as resetGridsSelection,
136
- ya as resetSettings,
137
- Ba as resetTreeGridChangesById,
138
- Da as resetTreeGridChangesByIds,
139
- va as resetTreeGridSelectionById,
140
- Na as resetTreeGridSelectionsByIds,
141
- Ea as saveAsZipFile,
142
- Ra as selectContrastMainTheme,
143
- Pa as selectCustomScrollbarsEnabled,
144
- fa as selectFooterTheme,
99
+ Ue as changeVisibleCellByGridId,
100
+ ze as createAppSelector,
101
+ Qe as darkPaletteText,
102
+ We as exportExcelByBuffer,
103
+ Ze as exportExcelByGrid,
104
+ Ke as exportExcelById,
105
+ Ye as exportTreeGridToExcelById,
106
+ je as generateBarcodeUrl,
107
+ qe as generateQrCodeUrl,
108
+ Je as generateSettings,
109
+ Xe as getChangedDataRowsById,
110
+ $e as getDataRowsById,
111
+ ea as getDirection,
112
+ aa as getFooterTheme,
113
+ sa as getFormDefaultValues,
114
+ ta as getGridById,
115
+ ra as getIndexByLetters,
116
+ oa as getLettersByIndex,
117
+ ia as getMainTheme,
118
+ la as getNavbarTheme,
119
+ pa as getSelectedRowsById,
120
+ da as getToolbarTheme,
121
+ na as getTreeGridById,
122
+ wa as getTreeGridDataRowsById,
123
+ ba as getTreeGridRowChangesById,
124
+ ca as getTreeGridSelectedRowsById,
125
+ ga as highlightTreeGridCellById,
126
+ Oa as isUrlInChildren,
127
+ ua as lightPaletteText,
128
+ ma as makeStore,
129
+ Ca as owpDark,
130
+ Ta as owpSettingsSlice,
131
+ Sa as reloadBodyById,
132
+ La as reloadTreeGridBodyById,
133
+ ha as resetGridChanges,
134
+ Ga as resetGridSelection,
135
+ Ia as resetGridsChanges,
136
+ ya as resetGridsSelection,
137
+ Ba as resetSettings,
138
+ Da as resetTreeGridChangesById,
139
+ va as resetTreeGridChangesByIds,
140
+ Na as resetTreeGridSelectionById,
141
+ Ea as resetTreeGridSelectionsByIds,
142
+ Ra as saveAsZipFile,
143
+ Pa as selectContrastMainTheme,
144
+ fa as selectCustomScrollbarsEnabled,
145
+ ka as selectFooterTheme,
145
146
  xa as selectFooterThemeDark,
146
- ka as selectFooterThemeLight,
147
- Va as selectMainTheme,
148
- Aa as selectMainThemeDark,
149
- Ha as selectMainThemeLight,
150
- _a as selectNavbarTheme,
147
+ Va as selectFooterThemeLight,
148
+ Aa as selectMainTheme,
149
+ Ha as selectMainThemeDark,
150
+ _a as selectMainThemeLight,
151
+ Ma as selectNavbarTheme,
151
152
  Fa as selectNavbarThemeDark,
152
- Ma as selectNavbarThemeLight,
153
- Ua as selectOwpCurrentLayoutConfig,
154
- za as selectOwpCurrentSettings,
155
- Qa as selectOwpDefaultSettings,
156
- Wa as selectOwpSettings,
157
- Za as selectOwpSettingsCurrent,
158
- Ka as selectOwpSettingsDefaults,
159
- Ya as selectToolbarTheme,
160
- ja as selectToolbarThemeDark,
161
- qa as selectToolbarThemeLight,
162
- Ja as setCellValue,
163
- Xa as setDefaultSettings,
164
- $a as setGridEnum,
165
- es as setHighlightTargetCellByGridId,
166
- as as setInitialSettings,
167
- ss as setMergeCells,
168
- ts as setSettings,
169
- rs as setTreeGridColumnEnumOptionsById,
170
- os as setTreeGridColumnVisibilityById,
171
- is as skyBlue,
172
- ls as store,
173
- ps as themeLayouts,
174
- ds as transformCommonCodeBasedOnGroupId,
175
- ns as transformGridEnumByCommonCodeList,
176
- ws as transformTreeViewListData,
177
- bs as useConfirm,
178
- cs as useDebounce,
179
- gs as useDeepCompareEffect,
180
- Os as useDeepCompareEffectNoCheck,
181
- us as useDeepCompareMemoize,
182
- ms as useGetCommonCodeList,
183
- Cs as useGetCurrentLanguage,
184
- Ts as useGetCurrentLogoSrc,
185
- Ss as useGetCurrentUserId,
186
- Ls as useGetLanguageList,
187
- hs as useGetNavigationList,
188
- Gs as useGetShortcuts,
189
- Is as useOwpAppContext,
190
- ys as useOwpTranslation,
191
- Bs as usePrevious,
192
- Ds as useSetCommonCodeList,
193
- vs as useSetCurrentLanguage,
194
- Ns as useSetCurrentLogoSrc,
195
- Es as useSetCurrentUserId,
196
- Rs as useSetNavigationList,
197
- Ps as useSetShortcuts,
198
- fs as useStorage,
153
+ Ua as selectNavbarThemeLight,
154
+ za as selectOwpCurrentLayoutConfig,
155
+ Qa as selectOwpCurrentSettings,
156
+ Wa as selectOwpDefaultSettings,
157
+ Za as selectOwpSettings,
158
+ Ka as selectOwpSettingsCurrent,
159
+ Ya as selectOwpSettingsDefaults,
160
+ ja as selectToolbarTheme,
161
+ qa as selectToolbarThemeDark,
162
+ Ja as selectToolbarThemeLight,
163
+ Xa as setCellValue,
164
+ $a as setDefaultSettings,
165
+ es as setGridEnum,
166
+ as as setHighlightTargetCellByGridId,
167
+ ss as setInitialSettings,
168
+ ts as setMergeCells,
169
+ rs as setSettings,
170
+ os as setTreeGridColumnEnumOptionsById,
171
+ is as setTreeGridColumnVisibilityById,
172
+ ls as skyBlue,
173
+ ps as store,
174
+ ds as themeLayouts,
175
+ ns as transformCommonCodeBasedOnGroupId,
176
+ ws as transformGridEnumByCommonCodeList,
177
+ bs as transformTreeViewListData,
178
+ cs as useConfirm,
179
+ gs as useDebounce,
180
+ Os as useDeepCompareEffect,
181
+ us as useDeepCompareEffectNoCheck,
182
+ ms as useDeepCompareMemoize,
183
+ Cs as useGetCommonCodeList,
184
+ Ts as useGetCurrentLanguage,
185
+ Ss as useGetCurrentLogoSrc,
186
+ Ls as useGetCurrentUserId,
187
+ hs as useGetLanguageList,
188
+ Gs as useGetNavigationList,
189
+ Is as useGetShortcuts,
190
+ ys as useOwpAppContext,
191
+ Bs as useOwpTranslation,
192
+ Ds as usePrevious,
193
+ vs as useSetCommonCodeList,
194
+ Ns as useSetCurrentLanguage,
195
+ Es as useSetCurrentLogoSrc,
196
+ Rs as useSetCurrentUserId,
197
+ Ps as useSetNavigationList,
198
+ fs as useSetShortcuts,
199
+ ks as useStorage,
199
200
  xs as useThemeMediaQuery,
200
- ks as useTimeout
201
+ Vs as useTimeout
201
202
  };
202
203
  //# sourceMappingURL=index.js.map
@@ -1,22 +1,22 @@
1
- import { ButtonProps } from '@mui/material';
2
- type ExcelHeader = {
1
+ import { type ButtonProps } from '@mui/material';
2
+ export type ExcelHeader = {
3
3
  key?: string;
4
4
  range?: string;
5
5
  value: string;
6
6
  };
7
- type ExcelDataMapper = {
7
+ export type ExcelDataMapper = {
8
8
  key: string;
9
9
  colSpan?: string;
10
10
  rowSpan?: string;
11
11
  prefix?: string;
12
12
  suffix?: string;
13
13
  };
14
- interface OwpExportDataToExcelButtonProp<T> extends ButtonProps {
14
+ interface OwpExportDataToExcelButtonProps<T> extends ButtonProps {
15
15
  header: ExcelHeader[];
16
16
  mapper: ExcelDataMapper[];
17
17
  data?: T;
18
18
  title?: string;
19
19
  exportName?: string;
20
20
  }
21
- export declare function OwpExportDataToExcelButton<T>({ header, mapper, data, exportName, title, ...restProps }: OwpExportDataToExcelButtonProp<T>): import("react/jsx-runtime").JSX.Element;
21
+ export declare function OwpExportDataToExcelButton<T>({ header, mapper, data, exportName, title, ...restProps }: OwpExportDataToExcelButtonProps<T>): import("react/jsx-runtime").JSX.Element;
22
22
  export {};
@@ -1,4 +1,4 @@
1
- import { LoadingButtonProps } from '@mui/lab/LoadingButton';
1
+ import { type LoadingButtonProps } from '@mui/lab/LoadingButton';
2
2
  import { type ChangeEvent, type ReactNode } from 'react';
3
3
  export interface OwpFileUploadButtonOwnProps {
4
4
  multiple?: boolean;
@@ -0,0 +1,4 @@
1
+ import type { MRT_RowData, MaterialReactTableProps } from 'material-react-table';
2
+ export type OwpMrtTableProps<TData extends MRT_RowData> = MaterialReactTableProps<TData>;
3
+ declare const OwpMrtTable: <TData extends MRT_RowData>(props: OwpMrtTableProps<TData>) => import("react/jsx-runtime").JSX.Element;
4
+ export { OwpMrtTable };
@@ -3,11 +3,13 @@ interface OwpSectionProps {
3
3
  className?: string;
4
4
  headerProps?: React.HTMLAttributes<HTMLDivElement>;
5
5
  disableTitleIcon?: boolean;
6
+ usePageTitle?: boolean;
6
7
  title?: React.ReactNode;
7
8
  actions?: React.ReactNode;
8
9
  leftSlot?: React.ReactNode;
10
+ centerSlot?: React.ReactNode;
9
11
  children?: React.ReactNode;
10
12
  iconSize?: IconProps['fontSize'];
11
13
  }
12
- declare const OwpSection: ({ className, title, disableTitleIcon, headerProps, actions, leftSlot, children, iconSize, }: OwpSectionProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const OwpSection: ({ className, title, disableTitleIcon, headerProps, usePageTitle, actions, leftSlot, centerSlot, children, iconSize, }: OwpSectionProps) => import("react/jsx-runtime").JSX.Element;
13
15
  export { OwpSection };
@@ -30,9 +30,14 @@ interface OwpDataTableProps {
30
30
  canTotalCountRow?: boolean;
31
31
  selected?: Row[];
32
32
  onSelect?: (rows: Row[] | []) => void;
33
- onBlur?: (evt: any, dataIndex: number) => void;
33
+ onBlur?: (evt: OwpDataTableBlurEvent, dataIndex: number) => void;
34
34
  canSelectingSingle?: boolean;
35
35
  canUseOrderBy?: boolean;
36
36
  }
37
+ type OwpDataTableBlurEvent = Record<string, unknown> & {
38
+ target: {
39
+ value: string | number | undefined;
40
+ };
41
+ };
37
42
  export declare function OwpDataTable({ className, sx, headSx, headCells, rows, selected, canCheckbox, canTotalCountRow, canSelectingSingle, canUseOrderBy, onSelect, onBlur, }: OwpDataTableProps): import("react/jsx-runtime").JSX.Element;
38
43
  export {};
@@ -1,6 +1,8 @@
1
- import { Theme } from '@mui/material';
2
- import { TableProps } from '@mui/material/Table';
3
- import { TableContainerProps } from '@mui/material/TableContainer';
1
+ import { type Theme } from '@mui/material';
2
+ import { type TableProps } from '@mui/material/Table';
3
+ import { type TableContainerProps } from '@mui/material/TableContainer';
4
+ type OwpTableCellValue = string | number;
5
+ type OwpTableHeaderRow = Record<string, OwpTableCellValue>;
4
6
  interface StyledTableProps extends TableProps {
5
7
  containerProps?: TableContainerProps;
6
8
  title?: string;
@@ -11,11 +13,7 @@ export declare const StyledTableRow: import("@emotion/styled").StyledComponent<i
11
13
  ref?: import("react").Ref<HTMLTableRowElement>;
12
14
  }, "children" | "sx" | "classes" | "style" | "hover" | "selected" | "className"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
13
15
  interface OwpTableProps<T> extends TableProps {
14
- headers: {
15
- [key: string]: string | number;
16
- } | Array<{
17
- [key: string]: string | number;
18
- }>;
16
+ headers: OwpTableHeaderRow | OwpTableHeaderRow[];
19
17
  rows: T[];
20
18
  }
21
19
  export declare function OwpTable<T>({ headers, rows, ...restTableProps }: OwpTableProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +1,21 @@
1
- import { TableCellProps } from '@mui/material';
2
- import { CSSProperties, ReactNode } from 'react';
1
+ import { type TableCellProps } from '@mui/material';
2
+ import { type CSSProperties, type ReactNode } from 'react';
3
+ type OwpVerticalTableCell = {
4
+ title: string;
5
+ key: string;
6
+ disableLocaleString?: boolean;
7
+ useDate?: boolean;
8
+ withTime?: boolean;
9
+ withTimeAndSec?: boolean;
10
+ useCheckbox?: boolean;
11
+ colSpan?: number;
12
+ rowSpan?: number;
13
+ style?: CSSProperties;
14
+ render?: () => ReactNode;
15
+ validate?: (v?: number | string) => boolean;
16
+ };
3
17
  interface OwpVerticalTableProps {
4
- layout: Array<Array<{
5
- title: string;
6
- key: string;
7
- disableLocaleString?: boolean;
8
- useDate?: boolean;
9
- withTime?: boolean;
10
- withTimeAndSec?: boolean;
11
- useCheckbox?: boolean;
12
- colSpan?: number;
13
- rowSpan?: number;
14
- style?: CSSProperties;
15
- render?: () => void;
16
- validate?: (v?: number | string) => boolean;
17
- }>>;
18
+ layout: OwpVerticalTableCell[][];
18
19
  data?: Array<{
19
20
  [key: string]: string | number | '';
20
21
  }>;
@@ -1,5 +1,6 @@
1
1
  import { type OwpTreeGridLayoutConfig } from './OwpTreeGrid';
2
2
  type TreeGridHeaderLayoutConfig = NonNullable<OwpTreeGridLayoutConfig['Header']>;
3
+ type TreeGridSectionConfig = Record<string, unknown>;
3
4
  export declare const TREE_GRID_HEADER_SECTION = "Header";
4
5
  export declare const TREE_GRID_TOOLBAR_SECTION = "Toolbar";
5
6
  export declare const TREE_GRID_FOOT_SECTION = "Foot";
@@ -12,8 +13,8 @@ export declare const NEXT_SIBLING = "nextSibling";
12
13
  export declare const applyTreeGridSubHeaderLayoutText: (grid: TTGrid, headerLayout?: TreeGridHeaderLayoutConfig) => void;
13
14
  export declare const applySubHeaderLayoutTextToGrid: (grid: TTGrid, headerLayout?: TreeGridHeaderLayoutConfig) => void;
14
15
  export declare const changeSubHeaderLayoutTextByGrid: (grid: TTGrid, headerLayout?: TreeGridHeaderLayoutConfig) => void;
15
- export declare const parseTreeGridXmlToJson: (xmlString?: string) => {}[];
16
- export declare const convertXmlToJson: (xmlString?: string) => {}[];
16
+ export declare const parseTreeGridXmlToJson: (xmlString?: string) => TreeGridSectionConfig[];
17
+ export declare const convertXmlToJson: (xmlString?: string) => TreeGridSectionConfig[];
17
18
  export declare const applyTreeGridLayoutToGrid: (grid: TTGrid | TGrid, layoutConfig?: OwpTreeGridLayoutConfig, disableBodyReload?: boolean) => void;
18
19
  export declare const updateLayoutByGrid: (grid: TTGrid | TGrid, layoutConfig?: OwpTreeGridLayoutConfig, disableBodyReload?: boolean) => void;
19
20
  export declare const applyTreeGridLayoutByGrid: (grid: TTGrid | TGrid, layoutConfig?: OwpTreeGridLayoutConfig, disableBodyReload?: boolean) => void;
@@ -1,11 +1,16 @@
1
- import { TreeViewBaseItem } from '@mui/x-tree-view/models';
2
- import { RichTreeViewPropsBase } from '@mui/x-tree-view/RichTreeView';
3
- export declare function OwpSlotTreeView<T extends TreeViewBaseItem[]>({ expanded, data, ...restProps }: {
1
+ import { type TreeViewBaseItem } from '@mui/x-tree-view/models';
2
+ import { type RichTreeViewPropsBase } from '@mui/x-tree-view/RichTreeView';
3
+ type OwpSlotTreeViewProps<T extends TreeViewBaseItem> = {
4
4
  expanded: boolean;
5
5
  data: T[];
6
- } & RichTreeViewPropsBase): import("react/jsx-runtime").JSX.Element;
7
- export declare const transformTreeViewListData: (id: number, data: any, keyProps: {
8
- id: string;
9
- parent: string;
10
- label: string;
11
- }) => any;
6
+ } & RichTreeViewPropsBase;
7
+ type TreeViewTransformValue = string | number | null | undefined;
8
+ type TreeViewTransformItem = Record<string, TreeViewTransformValue>;
9
+ type TreeViewTransformKeyProps<T extends TreeViewTransformItem> = {
10
+ id: keyof T & string;
11
+ parent: keyof T & string;
12
+ label: keyof T & string;
13
+ };
14
+ export declare function OwpSlotTreeView<T extends TreeViewBaseItem>({ expanded, data, ...restProps }: OwpSlotTreeViewProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ export declare const transformTreeViewListData: <T extends TreeViewTransformItem>(id: T[keyof T], data: T[], keyProps: TreeViewTransformKeyProps<T>) => TreeViewBaseItem[];
16
+ export {};
@@ -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
  */