@owp/core 1.6.1 → 1.8.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-BMaUmpvc.js} +2 -2
- package/dist/{QuickPanel-CU-3xMyw.js.map → QuickPanel-BMaUmpvc.js.map} +1 -1
- package/dist/index-BuJHWoVX.js +77364 -0
- package/dist/index-BuJHWoVX.js.map +1 -0
- package/dist/index.js +182 -170
- 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/hooks/useCurrentUser.d.ts +11 -0
- package/dist/types/hooks/usePageLockLoading.d.ts +11 -0
- package/dist/types/hooks/useTreeGridCommonCodeEnum.d.ts +8 -0
- package/dist/types/hooks/useTreeGridInstance.d.ts +13 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/utils/CommonCodeUtils.d.ts +2 -2
- package/dist/types/utils/createJsonBody.d.ts +8 -0
- package/dist/types/utils/createJsonString.d.ts +8 -0
- package/dist/types/utils/excelUtil.d.ts +33 -0
- package/dist/types/utils/getFormDefaultValues.d.ts +1 -1
- package/dist/types/utils/isEnterKeyEvent.d.ts +6 -0
- package/dist/types/utils/rebuildValue.d.ts +11 -0
- 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,202 +1,214 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DialogsProvider as
|
|
1
|
+
import { aW as r, aU as o, a2 as i, F as l, h as n, i as p, aO as d, aP as c, aQ as w, aR as g, aV as u, aT as b, aS as O, cg as m, bw as C, bx as T, aX as S, aY as G, aZ as L, aM as h, a_ as I, bE as y, bF as B, a$ as D, b0 as E, b2 as v, b1 as N, bb as R, b5 as P, b6 as k, b7 as f, b4 as x, b8 as V, bc as A, ba as H, bf as _, bg as M, bh as F, bd as U, be as z, bi as J, bj as K, b3 as Q, bk as W, bl as Z, bm as q, bn as Y, bo as j, bp as X, bq as $, br as ee, bs as ae, bt as se, bu as te, bv as re, d as oe, bA as ie, bB as le, bC as ne, bD as pe, aN as de, cc as ce, cd as we, cr as ge, ce as ue, cf as be, O as Oe, cu as me, cj as Ce, cv as Te, cl as Se, cm as Ge, cn as Le, co as he, cq as Ie, aa as ye, ck as Be, by as De, bz as Ee, ct as ve, ch as Ne, ci as Re, ag as Pe, ah as ke, af as fe, ae as xe, cp as Ve, al as Ae, az as He, e as _e, $ as Me, bI as Fe, ap as Ue, X as ze, a0 as Je, a1 as Ke, bH as Qe, a5 as We, ad as Ze, an as qe, aB as Ye, Y as je, ab as Xe, bJ as $e, am as ea, aj as aa, bT as sa, bX as ta, a8 as ra, ai as oa, a3 as ia, a4 as la, bU as na, bV as pa, ao as da, bW as ca, aw as wa, ax as ga, aA as ua, aC as ba, aE as Oa, a9 as ma, b9 as Ca, bG as Ta, V as Sa, o as Ga, bL as La, ac as ha, ak as Ia, ay as ya, at as Ba, ar as Da, au as Ea, as as va, c9 as Na, aH as Ra, aI as Pa, aF as ka, aG as fa, aK as xa, bY as Va, bS as Aa, c6 as Ha, c7 as _a, c8 as Ma, bZ as Fa, b_ as Ua, b$ as za, c0 as Ja, c1 as Ka, c2 as Qa, bM as Wa, bN as Za, bR as qa, bO as Ya, bQ as ja, bP as Xa, c3 as $a, c4 as es, c5 as as, a6 as ss, bK as ts, av as rs, aq as os, ca as is, a7 as ls, cb as ns, aJ as ps, aD as ds, g as cs, W as ws, aL as gs, _ as us, Z as bs, cs as Os, n as ms, B as Cs, K as Ts, L as Ss, J as Gs, l as Ls, q as hs, v as Is, x as ys, z as Bs, p as Ds, C as Es, E as vs, M as Ns, U as Rs, T as Ps, k as ks, I as fs, G as xs, H as Vs, m as As, r as Hs, w as _s, y as Ms, A as Fs, D as Us, N as zs, P as Js, Q as Ks, R as Qs, S as Ws } from "./index-BuJHWoVX.js";
|
|
2
|
+
import { DialogsProvider as qs } 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
|
+
qs as DialogsProvider,
|
|
9
9
|
i as ErrorBoundary,
|
|
10
10
|
l as FALLBACK_LANGUAGE_LIST,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
n as OwpAppContext,
|
|
12
|
+
p as OwpAppProvider,
|
|
13
|
+
d as OwpAutoLogoutDialog,
|
|
14
|
+
c as OwpBarcodeInputField,
|
|
15
|
+
w as OwpButtonDelete,
|
|
16
|
+
g as OwpButtonSave,
|
|
17
|
+
u as OwpCommonCodeRadioGroup,
|
|
18
|
+
b as OwpCommonCodeSelector,
|
|
19
|
+
O as OwpCommonDialog,
|
|
20
20
|
m as OwpDataTable,
|
|
21
21
|
C as OwpDatePicker,
|
|
22
22
|
T as OwpDateRangePicker,
|
|
23
23
|
S as OwpDialog,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
G as OwpExportDataToExcelButton,
|
|
25
|
+
L as OwpFileUploadButton,
|
|
26
|
+
h as OwpLanguageSwitcherSelect,
|
|
27
27
|
I as OwpLayout,
|
|
28
28
|
y as OwpLayoutConfig,
|
|
29
29
|
B as OwpLayoutConfigs,
|
|
30
30
|
D as OwpLoading,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
R as
|
|
35
|
-
P as
|
|
31
|
+
E as OwpMessage,
|
|
32
|
+
v as OwpMoreActionsButton,
|
|
33
|
+
N as OwpMrtTable,
|
|
34
|
+
R as OwpNavBadge,
|
|
35
|
+
P as OwpNavHorizontalCollapse,
|
|
36
|
+
k as OwpNavHorizontalGroup,
|
|
36
37
|
f 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
|
-
|
|
45
|
+
U as OwpNavVerticalLayout1,
|
|
46
|
+
z as OwpNavVerticalLayout2,
|
|
47
|
+
J as OwpNavVerticalLink,
|
|
48
|
+
K as OwpNavVerticalTab,
|
|
49
|
+
Q as OwpNavigation,
|
|
50
|
+
W as OwpNumberField,
|
|
51
|
+
Z as OwpPageCarded,
|
|
52
|
+
q as OwpPageCardedHeader,
|
|
53
|
+
Y 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
|
+
ne as OwpSection,
|
|
65
66
|
pe as OwpSettings,
|
|
66
67
|
de as OwpSettingsViewerDialog,
|
|
67
|
-
|
|
68
|
+
ce as OwpShortcuts,
|
|
68
69
|
we as OwpSidePanel,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
ge as OwpSlotTreeView,
|
|
71
|
+
ue as OwpSplashScreen,
|
|
72
|
+
be as OwpSuspense,
|
|
72
73
|
Oe as OwpSvgIcon,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
me as OwpTab,
|
|
75
|
+
Ce as OwpTable,
|
|
76
|
+
Te as OwpTabs,
|
|
77
|
+
Se as OwpTextMaskField,
|
|
78
|
+
Ge as OwpTheme,
|
|
78
79
|
Le as OwpThemeSelector,
|
|
79
80
|
he as OwpTreeGrid,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
Ie as OwpTreeGridToolbar,
|
|
82
|
+
ye as OwpUtils,
|
|
83
|
+
Be as OwpVerticalTable,
|
|
84
|
+
De as OwpWeekDatePicker,
|
|
85
|
+
Ee as OwpYearRangePicker,
|
|
85
86
|
ve as OwpZoomImageSlider,
|
|
86
87
|
Ne as StyledTable,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
Re as StyledTableRow,
|
|
89
|
+
Pe as TREEGRID_CELL_HIGHLIGHT_CLASS,
|
|
90
|
+
ke as TREEGRID_CELL_HIGHLIGHT_COLOR,
|
|
90
91
|
fe 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
|
-
pa as
|
|
120
|
-
da as
|
|
121
|
-
|
|
122
|
-
wa as
|
|
99
|
+
Ue as changeVisibleCellByGridId,
|
|
100
|
+
ze as createAppSelector,
|
|
101
|
+
Je as createJsonBody,
|
|
102
|
+
Ke as createJsonString,
|
|
103
|
+
Qe as darkPaletteText,
|
|
104
|
+
We as exportExcelByBuffer,
|
|
105
|
+
Ze as exportExcelByGrid,
|
|
106
|
+
qe as exportExcelById,
|
|
107
|
+
Ye as exportTreeGridToExcelById,
|
|
108
|
+
je as generateBarcodeUrl,
|
|
109
|
+
Xe as generateQrCodeUrl,
|
|
110
|
+
$e as generateSettings,
|
|
111
|
+
ea as getChangedDataRowsById,
|
|
112
|
+
aa as getDataRowsById,
|
|
113
|
+
sa as getDirection,
|
|
114
|
+
ta as getFooterTheme,
|
|
115
|
+
ra as getFormDefaultValues,
|
|
116
|
+
oa as getGridById,
|
|
117
|
+
ia as getIndexByLetters,
|
|
118
|
+
la as getLettersByIndex,
|
|
119
|
+
na as getMainTheme,
|
|
120
|
+
pa as getNavbarTheme,
|
|
121
|
+
da as getSelectedRowsById,
|
|
122
|
+
ca as getToolbarTheme,
|
|
123
|
+
wa as getTreeGridById,
|
|
124
|
+
ga as getTreeGridDataRowsById,
|
|
125
|
+
ua as getTreeGridRowChangesById,
|
|
123
126
|
ba as getTreeGridSelectedRowsById,
|
|
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
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
bs as
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
127
|
+
Oa as highlightTreeGridCellById,
|
|
128
|
+
ma as isEnterKeyEvent,
|
|
129
|
+
Ca as isUrlInChildren,
|
|
130
|
+
Ta as lightPaletteText,
|
|
131
|
+
Sa as makeStore,
|
|
132
|
+
Ga as owpDark,
|
|
133
|
+
La as owpSettingsSlice,
|
|
134
|
+
ha as rebuildValue,
|
|
135
|
+
Ia as reloadBodyById,
|
|
136
|
+
ya as reloadTreeGridBodyById,
|
|
137
|
+
Ba as resetGridChanges,
|
|
138
|
+
Da as resetGridSelection,
|
|
139
|
+
Ea as resetGridsChanges,
|
|
140
|
+
va as resetGridsSelection,
|
|
141
|
+
Na as resetSettings,
|
|
142
|
+
Ra as resetTreeGridChangesById,
|
|
143
|
+
Pa as resetTreeGridChangesByIds,
|
|
144
|
+
ka as resetTreeGridSelectionById,
|
|
145
|
+
fa as resetTreeGridSelectionsByIds,
|
|
146
|
+
xa as saveAsZipFile,
|
|
147
|
+
Va as selectContrastMainTheme,
|
|
148
|
+
Aa as selectCustomScrollbarsEnabled,
|
|
149
|
+
Ha as selectFooterTheme,
|
|
150
|
+
_a as selectFooterThemeDark,
|
|
151
|
+
Ma as selectFooterThemeLight,
|
|
152
|
+
Fa as selectMainTheme,
|
|
153
|
+
Ua as selectMainThemeDark,
|
|
154
|
+
za as selectMainThemeLight,
|
|
155
|
+
Ja as selectNavbarTheme,
|
|
156
|
+
Ka as selectNavbarThemeDark,
|
|
157
|
+
Qa as selectNavbarThemeLight,
|
|
158
|
+
Wa as selectOwpCurrentLayoutConfig,
|
|
159
|
+
Za as selectOwpCurrentSettings,
|
|
160
|
+
qa as selectOwpDefaultSettings,
|
|
161
|
+
Ya as selectOwpSettings,
|
|
162
|
+
ja as selectOwpSettingsCurrent,
|
|
163
|
+
Xa as selectOwpSettingsDefaults,
|
|
164
|
+
$a as selectToolbarTheme,
|
|
165
|
+
es as selectToolbarThemeDark,
|
|
166
|
+
as as selectToolbarThemeLight,
|
|
167
|
+
ss as setCellValue,
|
|
168
|
+
ts as setDefaultSettings,
|
|
169
|
+
rs as setGridEnum,
|
|
170
|
+
os as setHighlightTargetCellByGridId,
|
|
171
|
+
is as setInitialSettings,
|
|
172
|
+
ls as setMergeCells,
|
|
173
|
+
ns as setSettings,
|
|
174
|
+
ps as setTreeGridColumnEnumOptionsById,
|
|
175
|
+
ds as setTreeGridColumnVisibilityById,
|
|
176
|
+
cs as skyBlue,
|
|
177
|
+
ws as store,
|
|
178
|
+
gs as themeLayouts,
|
|
179
|
+
us as transformCommonCodeBasedOnGroupId,
|
|
180
|
+
bs as transformGridEnumByCommonCodeList,
|
|
181
|
+
Os as transformTreeViewListData,
|
|
182
|
+
ms as useConfirm,
|
|
183
|
+
Cs as useDebounce,
|
|
184
|
+
Ts as useDeepCompareEffect,
|
|
185
|
+
Ss as useDeepCompareEffectNoCheck,
|
|
186
|
+
Gs as useDeepCompareMemoize,
|
|
187
|
+
Ls as useGetCommonCodeList,
|
|
188
|
+
hs as useGetCurrentLanguage,
|
|
189
|
+
Is as useGetCurrentLogoSrc,
|
|
190
|
+
ys as useGetCurrentUser,
|
|
191
|
+
Bs as useGetCurrentUserId,
|
|
192
|
+
Ds as useGetLanguageList,
|
|
193
|
+
Es as useGetNavigationList,
|
|
194
|
+
vs as useGetPageLockLoading,
|
|
195
|
+
Ns as useGetShortcuts,
|
|
196
|
+
Rs as useGetTreeGridEnumByCommonCode,
|
|
197
|
+
Ps as useGetTreeGridInstance,
|
|
198
|
+
ks as useOwpAppContext,
|
|
199
|
+
fs as useOwpTranslation,
|
|
200
|
+
xs as usePageLockLoading,
|
|
201
|
+
Vs as usePrevious,
|
|
202
|
+
As as useSetCommonCodeList,
|
|
203
|
+
Hs as useSetCurrentLanguage,
|
|
204
|
+
_s as useSetCurrentLogoSrc,
|
|
205
|
+
Ms as useSetCurrentUser,
|
|
206
|
+
Fs as useSetCurrentUserId,
|
|
207
|
+
Us as useSetNavigationList,
|
|
208
|
+
zs as useSetShortcuts,
|
|
209
|
+
Js as useStorage,
|
|
210
|
+
Ks as useThemeMediaQuery,
|
|
211
|
+
Qs as useTimeout,
|
|
212
|
+
Ws as useTreeGridCommonCodeEnum
|
|
201
213
|
};
|
|
202
214
|
//# 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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface CurrentUser {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* 현재 사용자 정보 조회
|
|
6
|
+
*/
|
|
7
|
+
export declare const useGetCurrentUser: () => CurrentUser;
|
|
8
|
+
/**
|
|
9
|
+
* 현재 사용자 정보 설정
|
|
10
|
+
*/
|
|
11
|
+
export declare const useSetCurrentUser: () => (args_0: typeof import("jotai/utils").RESET | CurrentUser | ((prev: CurrentUser) => typeof import("jotai/utils").RESET | CurrentUser)) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OwpPageLockLoadingProps } from '@/components/OwpPageLockLoading';
|
|
2
|
+
/**
|
|
3
|
+
* 페이지 잠금 로딩 상태 조회
|
|
4
|
+
*/
|
|
5
|
+
export declare const useGetPageLockLoading: () => OwpPageLockLoadingProps;
|
|
6
|
+
/**
|
|
7
|
+
* 페이지 잠금 로딩 상태 설정
|
|
8
|
+
*/
|
|
9
|
+
export declare const usePageLockLoading: () => {
|
|
10
|
+
setLoading: (args_0: typeof import("jotai/utils").RESET | OwpPageLockLoadingProps | ((prev: OwpPageLockLoadingProps) => typeof import("jotai/utils").RESET | OwpPageLockLoadingProps)) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TreeGrid 공통코드 Enum 옵션 반영
|
|
3
|
+
* @param id TreeGrid 인스턴스 ID
|
|
4
|
+
* @param field Enum을 반영할 컬럼명
|
|
5
|
+
* @param codeId 공통코드 그룹 ID
|
|
6
|
+
* @param isGridReady TreeGrid 준비 여부
|
|
7
|
+
*/
|
|
8
|
+
export declare const useTreeGridCommonCodeEnum: (id: string, field: string, codeId: string, isGridReady: boolean) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TreeGrid 인스턴스 조회
|
|
3
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
4
|
+
*/
|
|
5
|
+
export declare const useGetTreeGridInstance: (gridId: string) => TGrid | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* 공통코드 기반 TreeGrid Enum 속성 조회기
|
|
8
|
+
*/
|
|
9
|
+
export declare const useGetTreeGridEnumByCommonCode: () => {
|
|
10
|
+
getEnumByCommonCodeId: (codeId: string, fieldKey: string) => {
|
|
11
|
+
[x: string]: string;
|
|
12
|
+
};
|
|
13
|
+
};
|