@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/{QuickPanel-CU-3xMyw.js → QuickPanel-DVTv2o_s.js} +2 -2
- package/dist/{QuickPanel-CU-3xMyw.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/utils.d.ts +3 -2
- 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-CWtbF1dU.js +0 -54676
- package/dist/index-CWtbF1dU.js.map +0 -1
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,
|
|
2
|
-
import { DialogsProvider as
|
|
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
|
-
|
|
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
|
|
34
|
-
R as
|
|
35
|
-
P as
|
|
36
|
-
f as
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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 }:
|
|
21
|
+
export declare function OwpExportDataToExcelButton<T>({ header, mapper, data, exportName, title, ...restProps }: OwpExportDataToExcelButtonProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -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:
|
|
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:
|
|
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
|
-
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 {};
|
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;
|