@owp/core 1.5.2 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{QuickPanel-CXDfHpcK.js → QuickPanel-CU-3xMyw.js} +2 -2
- package/dist/{QuickPanel-CXDfHpcK.js.map → QuickPanel-CU-3xMyw.js.map} +1 -1
- package/dist/{index-GbcqmMYR.js → index-CWtbF1dU.js} +13289 -12921
- package/dist/index-CWtbF1dU.js.map +1 -0
- package/dist/index.js +196 -171
- package/dist/types/components/OwpCommonCode/OwpCommonCodeRadioGroup.d.ts +16 -0
- package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +16 -0
- package/dist/types/components/OwpCommonCode/index.d.ts +4 -0
- package/dist/types/components/OwpMoreActionsButton/OwpMoreActionsButton.d.ts +2 -2
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +42 -33
- package/dist/types/components/OwpTreeGrid/utils.d.ts +15 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/CommonCodeUtils.d.ts +13 -3
- package/dist/types/utils/getFormDefaultValues.d.ts +6 -0
- package/dist/types/utils/treeGridUtil.d.ts +112 -21
- package/package.json +1 -1
- package/dist/index-GbcqmMYR.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,177 +1,202 @@
|
|
|
1
|
-
import {
|
|
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, 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";
|
|
3
3
|
import "@mui/material/styles";
|
|
4
4
|
import "@mui/material/Typography";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
r as CommonCodeRadioGroup,
|
|
7
|
+
o as CommonCodeSelector,
|
|
8
|
+
As as DialogsProvider,
|
|
9
|
+
i as ErrorBoundary,
|
|
10
|
+
l as FALLBACK_LANGUAGE_LIST,
|
|
9
11
|
p as OwpAppContext,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
u as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
S as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
v as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
k as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
H as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
q as
|
|
52
|
-
J as
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
ps as
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
12
|
+
d as OwpAppProvider,
|
|
13
|
+
n as OwpAutoLogoutDialog,
|
|
14
|
+
w as OwpBarcodeInputField,
|
|
15
|
+
b as OwpButtonDelete,
|
|
16
|
+
c as OwpButtonSave,
|
|
17
|
+
g as OwpCommonCodeRadioGroup,
|
|
18
|
+
O as OwpCommonCodeSelector,
|
|
19
|
+
u as OwpCommonDialog,
|
|
20
|
+
m as OwpDataTable,
|
|
21
|
+
C as OwpDatePicker,
|
|
22
|
+
T as OwpDateRangePicker,
|
|
23
|
+
S as OwpDialog,
|
|
24
|
+
L as OwpExportDataToExcelButton,
|
|
25
|
+
h as OwpFileUploadButton,
|
|
26
|
+
G as OwpLanguageSwitcherSelect,
|
|
27
|
+
I as OwpLayout,
|
|
28
|
+
y as OwpLayoutConfig,
|
|
29
|
+
B as OwpLayoutConfigs,
|
|
30
|
+
D as OwpLoading,
|
|
31
|
+
v as OwpMessage,
|
|
32
|
+
N as OwpMoreActionsButton,
|
|
33
|
+
E as OwpNavBadge,
|
|
34
|
+
R as OwpNavHorizontalCollapse,
|
|
35
|
+
P as OwpNavHorizontalGroup,
|
|
36
|
+
f as OwpNavHorizontalItem,
|
|
37
|
+
x as OwpNavHorizontalLayout1,
|
|
38
|
+
k as OwpNavHorizontalLink,
|
|
39
|
+
V as OwpNavItem,
|
|
40
|
+
A as OwpNavItemModel,
|
|
41
|
+
H as OwpNavVerticalCollapse,
|
|
42
|
+
_ as OwpNavVerticalGroup,
|
|
43
|
+
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,
|
|
91
|
+
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,
|
|
97
|
+
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,
|
|
145
|
+
xa as selectFooterThemeDark,
|
|
146
|
+
ka as selectFooterThemeLight,
|
|
147
|
+
Va as selectMainTheme,
|
|
148
|
+
Aa as selectMainThemeDark,
|
|
149
|
+
Ha as selectMainThemeLight,
|
|
150
|
+
_a as selectNavbarTheme,
|
|
151
|
+
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,
|
|
199
|
+
xs as useThemeMediaQuery,
|
|
200
|
+
ks as useTimeout
|
|
176
201
|
};
|
|
177
202
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CommonCode } from '@/utils/CommonCodeUtils';
|
|
2
|
+
import { FormControlProps, RadioGroupProps } from '@mui/material';
|
|
3
|
+
export type OwpCommonCodeRadioGroupProps = FormControlProps & RadioGroupProps & {
|
|
4
|
+
codeId: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
useValueKeyDescription?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
helperText?: string;
|
|
9
|
+
filterOptions?: (commonCode: CommonCode) => boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 공통코드 목록을 기반으로 라디오 그룹을 렌더링합니다.
|
|
13
|
+
* @param props 공통코드 라디오 그룹 props
|
|
14
|
+
*/
|
|
15
|
+
export declare const OwpCommonCodeRadioGroup: ({ codeId, description, label, fullWidth, defaultValue, useValueKeyDescription, required, error, helperText, filterOptions, ...commonCodeProps }: OwpCommonCodeRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const CommonCodeRadioGroup: ({ codeId, description, label, fullWidth, defaultValue, useValueKeyDescription, required, error, helperText, filterOptions, ...commonCodeProps }: OwpCommonCodeRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CommonCode } from '@/utils/CommonCodeUtils';
|
|
2
|
+
import { SelectProps } from '@mui/material';
|
|
3
|
+
export type OwpCommonCodeSelectorProps = SelectProps<string> & {
|
|
4
|
+
codeId: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
useValueKeyDescription?: boolean;
|
|
7
|
+
disableAllValueItem?: boolean;
|
|
8
|
+
helperText?: string;
|
|
9
|
+
filterOptions?: (commonCode: CommonCode) => boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 공통코드 목록을 기반으로 단일/다중 선택 Select를 제공합니다.
|
|
13
|
+
* @param props 공통코드 선택기 props
|
|
14
|
+
*/
|
|
15
|
+
export declare const OwpCommonCodeSelector: (props: OwpCommonCodeSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const CommonCodeSelector: (props: OwpCommonCodeSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { OwpCommonCodeSelector, CommonCodeSelector } from './OwpCommonCodeSelector';
|
|
2
|
+
export type { OwpCommonCodeSelectorProps } from './OwpCommonCodeSelector';
|
|
3
|
+
export { OwpCommonCodeRadioGroup, CommonCodeRadioGroup } from './OwpCommonCodeRadioGroup';
|
|
4
|
+
export type { OwpCommonCodeRadioGroupProps } from './OwpCommonCodeRadioGroup';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IconButtonProps } from '@mui/material/IconButton';
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { exportTreeGridToExcelById } from '../../utils/treeGridUtil';
|
|
5
5
|
import { type OwpFileUploadButtonProps } from '../OwpFileUploadButton/OwpFileUploadButton';
|
|
6
6
|
export type OwpMoreButtonActionColor = NonNullable<IconButtonProps['color']> | string;
|
|
7
7
|
type OwpMoreButtonActionBase = {
|
|
@@ -32,7 +32,7 @@ export type OwpMoreButtonFileUploadAction = OwpMoreButtonActionBase & {
|
|
|
32
32
|
};
|
|
33
33
|
export type OwpMoreButtonTreeGridExportExcelAction = OwpMoreButtonActionBase & {
|
|
34
34
|
type: 'treeGridExportExcel';
|
|
35
|
-
exportExcelArgs: Parameters<typeof
|
|
35
|
+
exportExcelArgs: Parameters<typeof exportTreeGridToExcelById>;
|
|
36
36
|
};
|
|
37
37
|
export type OwpMoreButtonAction = OwpMoreButtonClickAction | OwpMoreButtonFileUploadAction | OwpMoreButtonTreeGridExportExcelAction;
|
|
38
38
|
export type OwpMoreActionsButtonProps = {
|
|
@@ -1,44 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export type
|
|
15
|
-
|
|
1
|
+
import { type CSSProperties } from 'react';
|
|
2
|
+
type TreeGridLayoutScalarValue = string | number;
|
|
3
|
+
type TreeGridNestedLayoutFields = Record<string, TreeGridLayoutScalarValue>;
|
|
4
|
+
type TreeGridLayoutFields = Record<string, TreeGridLayoutScalarValue | TreeGridNestedLayoutFields>;
|
|
5
|
+
type TreeGridSectionFields = Record<string, TreeGridLayoutScalarValue>;
|
|
6
|
+
export interface OwpTreeGridLayout {
|
|
7
|
+
Header?: TreeGridLayoutFields;
|
|
8
|
+
Toolbar?: TreeGridSectionFields;
|
|
9
|
+
Foot?: TreeGridSectionFields;
|
|
10
|
+
}
|
|
11
|
+
export type OwpTreeGridLayoutConfig = OwpTreeGridLayout;
|
|
12
|
+
export type THeader = OwpTreeGridLayoutConfig;
|
|
13
|
+
export type OwpTreeGridBodyData<T> = Record<string, never> | [] | undefined | T[];
|
|
14
|
+
export type OwpTreeGridData<T> = OwpTreeGridBodyData<T>;
|
|
15
|
+
export type TData<T> = OwpTreeGridBodyData<T>;
|
|
16
|
+
export type OwpTreeGridRowModel<T> = TRow & T;
|
|
17
|
+
export type OwpTreeGridSelectedRows<T> = OwpTreeGridRowModel<T>[];
|
|
18
|
+
type OwpTreeGridSelectHandler<T> = (selectedRows: OwpTreeGridSelectedRows<T>) => void;
|
|
19
|
+
type OwpTreeGridRowAddHandler<T> = (grid: TGrid, row: OwpTreeGridRowModel<T>) => void;
|
|
20
|
+
type OwpTreeGridRowDeleteHandler<T> = (grid: TGrid, row: OwpTreeGridRowModel<T>, deleteType: number) => void;
|
|
21
|
+
type OwpTreeGridRowUndeleteHandler<T> = (grid: TGrid, row: OwpTreeGridRowModel<T>) => void;
|
|
22
|
+
type OwpTreeGridButtonClickHandler<T> = (grid: TGrid, row: OwpTreeGridRowModel<T>, col: string, event: Event) => void;
|
|
23
|
+
type OwpTreeGridRowClickHandler<T> = (grid: TGrid, row: OwpTreeGridRowModel<T>, col: string, x: number, y: number, event: Event) => void;
|
|
24
|
+
type OwpTreeGridSaveHandler<T> = (grid: TGrid, row: OwpTreeGridRowModel<T>, autoupdate: boolean | number) => void;
|
|
25
|
+
type OwpTreeGridCellValue = unknown;
|
|
26
|
+
type OwpTreeGridAfterValueChangedHandler<T> = (grid: TGrid, row: OwpTreeGridRowModel<T>, col: string, value: OwpTreeGridCellValue) => void;
|
|
27
|
+
export interface OwpTreeGridProps<T> {
|
|
16
28
|
id: string;
|
|
17
29
|
className?: string;
|
|
18
|
-
containerStyle?:
|
|
19
|
-
[key: string]: string | number;
|
|
20
|
-
};
|
|
30
|
+
containerStyle?: CSSProperties;
|
|
21
31
|
containerClassName?: string;
|
|
22
32
|
LayoutUrl?: string;
|
|
33
|
+
layoutUrl?: string;
|
|
23
34
|
DataUrl?: string;
|
|
24
|
-
data?:
|
|
25
|
-
layout?:
|
|
26
|
-
style?:
|
|
27
|
-
[key: string]: string | number;
|
|
28
|
-
};
|
|
35
|
+
data?: OwpTreeGridBodyData<T>;
|
|
36
|
+
layout?: OwpTreeGridLayoutConfig;
|
|
37
|
+
style?: CSSProperties;
|
|
29
38
|
height?: string | number;
|
|
30
39
|
width?: string | number;
|
|
31
40
|
useDataUrl?: boolean;
|
|
32
|
-
onSelect?:
|
|
33
|
-
onRowAdd?:
|
|
34
|
-
onRowDelete?:
|
|
35
|
-
onRowUndelete?:
|
|
36
|
-
onRowChange?:
|
|
37
|
-
onClickButton?:
|
|
41
|
+
onSelect?: OwpTreeGridSelectHandler<T>;
|
|
42
|
+
onRowAdd?: OwpTreeGridRowAddHandler<T>;
|
|
43
|
+
onRowDelete?: OwpTreeGridRowDeleteHandler<T>;
|
|
44
|
+
onRowUndelete?: OwpTreeGridRowUndeleteHandler<T>;
|
|
45
|
+
onRowChange?: OwpTreeGridAfterValueChangedHandler<T>;
|
|
46
|
+
onClickButton?: OwpTreeGridButtonClickHandler<T>;
|
|
38
47
|
onReady?: (grid: TGrid) => void;
|
|
39
|
-
onRowClick?:
|
|
40
|
-
onSave?:
|
|
41
|
-
onAfterValueChanged?:
|
|
48
|
+
onRowClick?: OwpTreeGridRowClickHandler<T>;
|
|
49
|
+
onSave?: OwpTreeGridSaveHandler<T>;
|
|
50
|
+
onAfterValueChanged?: OwpTreeGridAfterValueChangedHandler<T>;
|
|
42
51
|
}
|
|
43
|
-
declare const OwpTreeGrid: <T>({ id, containerStyle, containerClassName, className, style, height, width, LayoutUrl, DataUrl, data, layout, useDataUrl, onSelect, onRowClick, onRowAdd, onRowDelete, onRowUndelete, onRowChange, onClickButton, onSave, onReady, onAfterValueChanged, }: OwpTreeGridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
declare const OwpTreeGrid: <T>({ id, containerStyle, containerClassName, className, style, height, width, LayoutUrl, layoutUrl, DataUrl: dataUrl, data, layout, useDataUrl, onSelect, onRowClick, onRowAdd, onRowDelete, onRowUndelete, onRowChange, onClickButton, onSave, onReady, onAfterValueChanged, }: OwpTreeGridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
44
53
|
export { OwpTreeGrid };
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type OwpTreeGridLayoutConfig } from './OwpTreeGrid';
|
|
2
|
+
type TreeGridHeaderLayoutConfig = NonNullable<OwpTreeGridLayoutConfig['Header']>;
|
|
3
|
+
export declare const TREE_GRID_HEADER_SECTION = "Header";
|
|
4
|
+
export declare const TREE_GRID_TOOLBAR_SECTION = "Toolbar";
|
|
5
|
+
export declare const TREE_GRID_FOOT_SECTION = "Foot";
|
|
6
|
+
export declare const TREE_GRID_NEXT_SIBLING_KEY = "nextSibling";
|
|
7
|
+
export declare const TREE_GRID_LAYOUT_SECTION_KEYS: readonly ["Header", "Toolbar", "Foot"];
|
|
2
8
|
export declare const HEADER = "Header";
|
|
3
9
|
export declare const TOOLBAR = "Toolbar";
|
|
4
10
|
export declare const FOOTER = "Foot";
|
|
5
11
|
export declare const NEXT_SIBLING = "nextSibling";
|
|
6
|
-
export declare const
|
|
12
|
+
export declare const applyTreeGridSubHeaderLayoutText: (grid: TTGrid, headerLayout?: TreeGridHeaderLayoutConfig) => void;
|
|
13
|
+
export declare const applySubHeaderLayoutTextToGrid: (grid: TTGrid, headerLayout?: TreeGridHeaderLayoutConfig) => void;
|
|
14
|
+
export declare const changeSubHeaderLayoutTextByGrid: (grid: TTGrid, headerLayout?: TreeGridHeaderLayoutConfig) => void;
|
|
15
|
+
export declare const parseTreeGridXmlToJson: (xmlString?: string) => {}[];
|
|
7
16
|
export declare const convertXmlToJson: (xmlString?: string) => {}[];
|
|
8
|
-
export declare const
|
|
17
|
+
export declare const applyTreeGridLayoutToGrid: (grid: TTGrid | TGrid, layoutConfig?: OwpTreeGridLayoutConfig, disableBodyReload?: boolean) => void;
|
|
18
|
+
export declare const updateLayoutByGrid: (grid: TTGrid | TGrid, layoutConfig?: OwpTreeGridLayoutConfig, disableBodyReload?: boolean) => void;
|
|
19
|
+
export declare const applyTreeGridLayoutByGrid: (grid: TTGrid | TGrid, layoutConfig?: OwpTreeGridLayoutConfig, disableBodyReload?: boolean) => void;
|
|
20
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './utils/barcodeUtil';
|
|
|
22
22
|
export * from './utils/CommonCodeUtils';
|
|
23
23
|
export * from './utils/ErrorBoundary';
|
|
24
24
|
export * from './utils/excelUtil';
|
|
25
|
+
export * from './utils/getFormDefaultValues';
|
|
25
26
|
export * from './utils/OwpUtils';
|
|
26
27
|
export * from './utils/qrCodeUtil';
|
|
27
28
|
export * from './utils/treeGridExportExcelUtil';
|
|
@@ -35,6 +36,7 @@ export * from './components/OwpBarcodeInput/OwpBarcodeInputField';
|
|
|
35
36
|
export * from './components/OwpButtonDelete';
|
|
36
37
|
export * from './components/OwpButtonSave';
|
|
37
38
|
export * from './components/OwpCommonDialog';
|
|
39
|
+
export * from './components/OwpCommonCode';
|
|
38
40
|
export * from './components/OwpDialog';
|
|
39
41
|
export * from './components/OwpExportExcelButton/OwpExportExcelButton';
|
|
40
42
|
export * from './components/OwpFileUploadButton/OwpFileUploadButton';
|
|
@@ -11,7 +11,17 @@ export interface CommonCode {
|
|
|
11
11
|
export interface CommonCodeRes {
|
|
12
12
|
resultData?: Array<CommonCode>;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
type TreeGridEnumAttributeMap = Record<string, string>;
|
|
15
|
+
/**
|
|
16
|
+
* 공통코드 목록을 TreeGrid Enum 속성 객체로 변환합니다.
|
|
17
|
+
* @param commonCodeListData 공통코드 목록
|
|
18
|
+
* @param fieldKey TreeGrid 컬럼 필드 키
|
|
19
|
+
*/
|
|
20
|
+
export declare const transformGridEnumByCommonCodeList: (commonCodeListData?: Array<CommonCode> | undefined, fieldKey?: string) => TreeGridEnumAttributeMap;
|
|
21
|
+
/**
|
|
22
|
+
* 공통코드 목록을 그룹 ID 기준으로 묶습니다.
|
|
23
|
+
* @param commonCodeList 공통코드 목록
|
|
24
|
+
*/
|
|
17
25
|
export declare const transformCommonCodeBasedOnGroupId: (commonCodeList: Array<CommonCode>) => Record<string, CommonCode[]>;
|
|
26
|
+
export declare const buildTreeGridEnumAttributesByCommonCodeList: (commonCodeListData?: Array<CommonCode> | undefined, fieldKey?: string) => TreeGridEnumAttributeMap;
|
|
27
|
+
export {};
|