@bwg-ui/core 1.2.8 → 1.2.11
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/chunks/{MenuReport-DIkKwvta.cjs → MenuReport-CXsmjSvg.cjs} +1 -1
- package/dist/chunks/{MenuReport-CiL4ggPy.js → MenuReport-Dgq2wH6w.js} +1 -1
- package/dist/chunks/{common-components-G-FELsbw.js → common-components-Bp95qOup.js} +1348 -1327
- package/dist/chunks/{common-components-B4mah7DM.cjs → common-components-CoRIM-Z-.cjs} +16 -16
- package/dist/chunks/{layout-components-De-k79AV.cjs → layout-components-hCEUMfz3.cjs} +2 -2
- package/dist/chunks/{layout-components-mRRx1BIz.js → layout-components-yyItu5pi.js} +2 -2
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +5 -5
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +107 -107
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/pages/auth/CMAuthMstrM01.d.ts +7 -0
- package/dist/components/pages/auth/CMAuthMstrM01.d.ts.map +1 -0
- package/dist/components/pages/auth/CMRoleMstrM01.d.ts +3 -0
- package/dist/components/pages/auth/CMRoleMstrM01.d.ts.map +1 -0
- package/dist/components/pages/guide/BwgComponentGuideM01.d.ts +3 -0
- package/dist/components/pages/guide/BwgComponentGuideM01.d.ts.map +1 -0
- package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts +3 -0
- package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts.map +1 -0
- package/dist/components/pages/guide/BwgReactGuideM01.d.ts +3 -0
- package/dist/components/pages/guide/BwgReactGuideM01.d.ts.map +1 -0
- package/dist/components/pages/index.d.ts +20 -0
- package/dist/components/pages/index.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMFileMstrM01.d.ts +3 -0
- package/dist/components/pages/rsrc/CMFileMstrM01.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMMenuMstrM01.d.ts +3 -0
- package/dist/components/pages/rsrc/CMMenuMstrM01.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMMenuPrgrSelectModal.d.ts +16 -0
- package/dist/components/pages/rsrc/CMMenuPrgrSelectModal.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMMenuPrntSelectModal.d.ts +16 -0
- package/dist/components/pages/rsrc/CMMenuPrntSelectModal.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts +3 -0
- package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMPrgrMstrM01.d.ts +3 -0
- package/dist/components/pages/rsrc/CMPrgrMstrM01.d.ts.map +1 -0
- package/dist/components/pages/syst/CMSystCfgM01.d.ts +3 -0
- package/dist/components/pages/syst/CMSystCfgM01.d.ts.map +1 -0
- package/dist/components/pages/syst/CMSystCodeM01.d.ts +3 -0
- package/dist/components/pages/syst/CMSystCodeM01.d.ts.map +1 -0
- package/dist/components/pages/user/CMUserMstrM01.d.ts +3 -0
- package/dist/components/pages/user/CMUserMstrM01.d.ts.map +1 -0
- package/dist/components/popup/SearchAddressModalM01.d.ts +7 -0
- package/dist/components/popup/SearchAddressModalM01.d.ts.map +1 -0
- package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP02.d.ts.map +1 -1
- package/dist/components/popup/SearchEmployeeP01.d.ts.map +1 -1
- package/dist/components/popup/SearchEmployeeP02.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +1 -1
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +237 -219
- package/dist/provider/hooks/usePopup.d.ts +2 -2
- package/dist/provider/hooks/usePopup.d.ts.map +1 -1
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +35 -35
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +93 -77
- package/dist/stores/popupStore.d.ts +9 -1
- package/dist/stores/popupStore.d.ts.map +1 -1
- package/dist/stores/userStore.d.ts +16 -2
- package/dist/stores/userStore.d.ts.map +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/types/bwg-global.d.ts +2 -1
- package/dist/utils/commonUtils.d.ts +76 -11
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +18 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1393 -706
- package/dist/utils/userUtils.d.ts +6 -0
- package/dist/utils/userUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/core-CXP75zcn.cjs +0 -1
- package/dist/chunks/core-pjW5SaWA.js +0 -513
- package/dist/chunks/enc-base64-Bg9x86kU.cjs +0 -1
- package/dist/chunks/enc-base64-DtP_G7ev.js +0 -101
- package/dist/chunks/sha256-BTxiV_cX.js +0 -78
- package/dist/chunks/sha256-CFa0dyCj.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1,224 +1,242 @@
|
|
|
1
|
-
import { ApiError as r, THEME_COOKIE_NAME as s, apiDelete as
|
|
2
|
-
import { useCode as
|
|
3
|
-
import { j as
|
|
4
|
-
import { BwgButton as
|
|
5
|
-
import { A as
|
|
6
|
-
import { AuthProvider as
|
|
1
|
+
import { ApiError as r, COMMON_DATE_FORMAT as a, THEME_COOKIE_NAME as t, addDays as s, addMonths as i, apiDelete as n, apiGet as g, apiPatch as l, apiPost as d, apiPut as u, apiUtils as p, arrAverage as c, arrCount as C, arrMax as S, arrMin as w, arrReverse as B, arrSum as m, arrUnique as v, bwgUtils as f, callService as h, callService_SYSCD as P, clamp as D, clearSessionStorage as b, closeAllMessages as A, closeMessage as U, closeNotification as M, commonUtils as y, configureEnvUtils as E, copyToClipboard as L, datetimeFormat as k, debounce as I, deleteCookie as x, destroyNotifications as O, diffDays as R, downloadByFileKey as N, downloadFile as T, duplicates as F, encryptSha256 as V, envUtils as G, fileUtils as W, generateRandomColor as _, generateRandomString as H, generateUID as J, getAge as q, getAllServiceCodes as z, getClientIp as Y, getCookie as j, getCrprCd as K, getCurrentDate as Q, getCurrentDateString as X, getDepartmentInfo as Z, getDeviceType as $, getDisplayName as ee, getDprtCd as oe, getDprtNm as re, getEmplNo as ae, getEnvCode as te, getHrInfo as se, getJbdtCd as ie, getJbgdCd as ne, getJbkdCd as ge, getJbpsCd as le, getLastDateByDiv as de, getPermissionService as ue, getRoleList as pe, getServiceCode as ce, getSessionStorage as Ce, getStartDateByDiv as Se, getUserDvsn as we, getUserId as Be, getUserInfo as me, getUserNm as ve, getWkplCd as fe, hasAllRoles as he, hasAnyRole as Pe, hasRole as De, hasUserInfo as be, isArray as Ae, isBoolean as Ue, isDesktop as Me, isDev as ye, isEmpty as Ee, isEmptyArray as Le, isFunction as ke, isLocal as Ie, isLoggedIn as xe, isMobile as Oe, isNull as Re, isNullOrUndefined as Ne, isNumber as Te, isObject as Fe, isProd as Ve, isSafeEmpty as Ge, isString as We, isTablet as _e, isUndefined as He, isValidDate as Je, isValidDateTime as qe, isValidEmail as ze, isValidUrl as Ye, isValidYear as je, isValidYearMonth as Ke, logServiceCodeConfig as Qe, messageUtils as Xe, notiBwgError as Ze, notiError as $e, notiInfo as eo, notiSuccess as oo, notiWarning as ro, notificationService as ao, notificationUtils as to, padLeft as so, padRight as io, random as no, realFormat as go, removeSessionStorage as lo, round as uo, serviceUtils as po, setClientIp as co, setCookie as Co, setServiceCodeOverrides as So, setSessionStorage as wo, showApiError as Bo, showDuplicateError as mo, showError as vo, showInfo as fo, showLoading as ho, showRequiredError as Po, showSaveError as Do, showSaveSuccess as bo, showSuccess as Ao, showWarning as Uo, submitGwApproval as Mo, throttle as yo, toCamelCase as Eo, uploadFilesViaSftp as Lo, userUtils as ko, verifyClientIp as Io } from "./utils/index.js";
|
|
2
|
+
import { useCode as Oo, useCodeStore as Ro, useColorStore as No, useFavorite as To, useFavoriteStore as Fo, useLoadingStore as Vo, useMenuModel as Go, useMenuModelStore as Wo, useMenuView as _o, useMenuViewStore as Ho, useOptionStore as Jo, usePopupLoadingStore as qo, usePopupState as zo, usePopupStore as Yo, useUser as jo, useUserStore as Ko } from "./stores/index.js";
|
|
3
|
+
import { j as Xo, k as Zo, l as $o, m as er, B as or, n as rr, o as ar, i as tr, f as sr, p as ir, h as nr, e as gr, q as lr, b as dr, r as ur, s as pr, t as cr, u as Cr, C as Sr, v as wr, G as Br, Q as mr, w as vr, S as fr, x as hr, y as Pr, z as Dr, A as br, d as Ar } from "./chunks/common-components-Bp95qOup.js";
|
|
4
|
+
import { BwgButton as Mr, BwgCheck as yr, BwgCheckList as Er, BwgDatePicker as Lr, BwgDownload as kr, BwgForm as Ir, BwgFormItem as xr, BwgInput as Or, BwgLargeUploader as Rr, BwgMaskedInput as Nr, BwgMaskedPicker as Tr, BwgMultiSelect as Fr, BwgNumber as Vr, BwgRadio as Gr, BwgRangePicker as Wr, BwgSearch as _r, BwgSelect as Hr, BwgSwitch as Jr, BwgTextArea as qr, BwgUploader as zr } from "./components/core/index.js";
|
|
5
|
+
import { A as jr, B as Kr, a as Qr, c as Xr, d as Zr, e as $r, f as ea, C as oa, b as ra, L as aa, P as ta, g as sa } from "./chunks/layout-components-yyItu5pi.js";
|
|
6
|
+
import { AuthProvider as na, CommonCodeProvider as ga, ScreenProtectProvider as la, SearchBoxProvider as da, ServiceCodeProvider as ua, useAllServiceCodes as pa, useAuth as ca, useCodeColor as Ca, useCodeList as Sa, useCodeListByOption as wa, useCodeName as Ba, useCommonCode as ma, useGridLookup as va, useLock as fa, useLogServiceCodeConfig as ha, usePopup as Pa, useSearchBox as Da, useServiceCode as ba, useServiceCodeValue as Aa } from "./provider/index.js";
|
|
7
7
|
export {
|
|
8
8
|
r as ApiError,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
i as
|
|
78
|
-
n as
|
|
79
|
-
g as
|
|
80
|
-
l as
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
p as
|
|
84
|
-
c as
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
B as
|
|
89
|
-
m as
|
|
90
|
-
v as
|
|
91
|
-
f as
|
|
92
|
-
h as
|
|
93
|
-
P as
|
|
9
|
+
jr as AppWrapper,
|
|
10
|
+
na as AuthProvider,
|
|
11
|
+
Xo as ButtonAccessController,
|
|
12
|
+
Mr as BwgButton,
|
|
13
|
+
Zo as BwgButtonGroup,
|
|
14
|
+
yr as BwgCheck,
|
|
15
|
+
Er as BwgCheckList,
|
|
16
|
+
$o as BwgCmptArea,
|
|
17
|
+
er as BwgCol,
|
|
18
|
+
or as BwgConfigProvider,
|
|
19
|
+
Lr as BwgDatePicker,
|
|
20
|
+
rr as BwgDetail,
|
|
21
|
+
kr as BwgDownload,
|
|
22
|
+
ar as BwgDrawer,
|
|
23
|
+
tr as BwgEditor,
|
|
24
|
+
Ir as BwgForm,
|
|
25
|
+
xr as BwgFormItem,
|
|
26
|
+
sr as BwgGrid,
|
|
27
|
+
ir as BwgInfoArea,
|
|
28
|
+
Or as BwgInput,
|
|
29
|
+
Rr as BwgLargeUploader,
|
|
30
|
+
Nr as BwgMaskedInput,
|
|
31
|
+
Tr as BwgMaskedPicker,
|
|
32
|
+
Fr as BwgMultiSelect,
|
|
33
|
+
Vr as BwgNumber,
|
|
34
|
+
nr as BwgPagination,
|
|
35
|
+
gr as BwgPopup,
|
|
36
|
+
Kr as BwgPortal01,
|
|
37
|
+
Qr as BwgPortal02,
|
|
38
|
+
Gr as BwgRadio,
|
|
39
|
+
Wr as BwgRangePicker,
|
|
40
|
+
lr as BwgRow,
|
|
41
|
+
_r as BwgSearch,
|
|
42
|
+
Hr as BwgSelect,
|
|
43
|
+
dr as BwgSpace,
|
|
44
|
+
Jr as BwgSwitch,
|
|
45
|
+
ur as BwgTable,
|
|
46
|
+
pr as BwgTabs,
|
|
47
|
+
qr as BwgTextArea,
|
|
48
|
+
cr as BwgTitleBox,
|
|
49
|
+
zr as BwgUploader,
|
|
50
|
+
Cr as BwgView,
|
|
51
|
+
a as COMMON_DATE_FORMAT,
|
|
52
|
+
ga as CommonCodeProvider,
|
|
53
|
+
Xr as ConfigurableContent,
|
|
54
|
+
Zr as ConfigurableHeader,
|
|
55
|
+
$r as ConfigurableMenuTab,
|
|
56
|
+
ea as ConfigurableSidebar,
|
|
57
|
+
Sr as ContentBox,
|
|
58
|
+
oa as ContentContainer,
|
|
59
|
+
wr as ContentLayOut,
|
|
60
|
+
Br as GlobalConfigProvider,
|
|
61
|
+
ra as LandingContainer,
|
|
62
|
+
aa as LoadingContainer,
|
|
63
|
+
ta as PopupContainer,
|
|
64
|
+
sa as ProtectWrapper,
|
|
65
|
+
mr as QuickServiceToggle,
|
|
66
|
+
vr as SSOHandler,
|
|
67
|
+
la as ScreenProtectProvider,
|
|
68
|
+
fr as SearchBox,
|
|
69
|
+
da as SearchBoxProvider,
|
|
70
|
+
hr as SearchDepartmentP01,
|
|
71
|
+
Pr as SearchDepartmentP02,
|
|
72
|
+
Dr as SearchOrganizationP01,
|
|
73
|
+
br as SearchOrganizationP02,
|
|
74
|
+
ua as ServiceCodeProvider,
|
|
75
|
+
t as THEME_COOKIE_NAME,
|
|
76
|
+
s as addDays,
|
|
77
|
+
i as addMonths,
|
|
78
|
+
n as apiDelete,
|
|
79
|
+
g as apiGet,
|
|
80
|
+
l as apiPatch,
|
|
81
|
+
d as apiPost,
|
|
82
|
+
u as apiPut,
|
|
83
|
+
p as apiUtils,
|
|
84
|
+
c as arrAverage,
|
|
85
|
+
C as arrCount,
|
|
86
|
+
S as arrMax,
|
|
87
|
+
w as arrMin,
|
|
88
|
+
B as arrReverse,
|
|
89
|
+
m as arrSum,
|
|
90
|
+
v as arrUnique,
|
|
91
|
+
f as bwgUtils,
|
|
92
|
+
h as callService,
|
|
93
|
+
P as callService_SYSCD,
|
|
94
|
+
D as clamp,
|
|
95
|
+
b as clearSessionStorage,
|
|
96
|
+
A as closeAllMessages,
|
|
94
97
|
U as closeMessage,
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
M as closeNotification,
|
|
99
|
+
y as commonUtils,
|
|
97
100
|
E as configureEnvUtils,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
q as
|
|
115
|
-
z as
|
|
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
|
-
Ue as
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Ee as
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
qe as
|
|
169
|
-
ze as
|
|
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
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
101
|
+
L as copyToClipboard,
|
|
102
|
+
Ar as createBwgGridRenderer,
|
|
103
|
+
k as datetimeFormat,
|
|
104
|
+
I as debounce,
|
|
105
|
+
x as deleteCookie,
|
|
106
|
+
O as destroyNotifications,
|
|
107
|
+
R as diffDays,
|
|
108
|
+
N as downloadByFileKey,
|
|
109
|
+
T as downloadFile,
|
|
110
|
+
F as duplicates,
|
|
111
|
+
V as encryptSha256,
|
|
112
|
+
G as envUtils,
|
|
113
|
+
W as fileUtils,
|
|
114
|
+
_ as generateRandomColor,
|
|
115
|
+
H as generateRandomString,
|
|
116
|
+
J as generateUID,
|
|
117
|
+
q as getAge,
|
|
118
|
+
z as getAllServiceCodes,
|
|
119
|
+
Y as getClientIp,
|
|
120
|
+
j as getCookie,
|
|
121
|
+
K as getCrprCd,
|
|
122
|
+
Q as getCurrentDate,
|
|
123
|
+
X as getCurrentDateString,
|
|
124
|
+
Z as getDepartmentInfo,
|
|
125
|
+
$ as getDeviceType,
|
|
126
|
+
ee as getDisplayName,
|
|
127
|
+
oe as getDprtCd,
|
|
128
|
+
re as getDprtNm,
|
|
129
|
+
ae as getEmplNo,
|
|
130
|
+
te as getEnvCode,
|
|
131
|
+
se as getHrInfo,
|
|
132
|
+
ie as getJbdtCd,
|
|
133
|
+
ne as getJbgdCd,
|
|
134
|
+
ge as getJbkdCd,
|
|
135
|
+
le as getJbpsCd,
|
|
136
|
+
de as getLastDateByDiv,
|
|
137
|
+
ue as getPermissionService,
|
|
138
|
+
pe as getRoleList,
|
|
139
|
+
ce as getServiceCode,
|
|
140
|
+
Ce as getSessionStorage,
|
|
141
|
+
Se as getStartDateByDiv,
|
|
142
|
+
we as getUserDvsn,
|
|
143
|
+
Be as getUserId,
|
|
144
|
+
me as getUserInfo,
|
|
145
|
+
ve as getUserNm,
|
|
146
|
+
fe as getWkplCd,
|
|
147
|
+
he as hasAllRoles,
|
|
148
|
+
Pe as hasAnyRole,
|
|
149
|
+
De as hasRole,
|
|
150
|
+
be as hasUserInfo,
|
|
151
|
+
Ae as isArray,
|
|
152
|
+
Ue as isBoolean,
|
|
153
|
+
Me as isDesktop,
|
|
154
|
+
ye as isDev,
|
|
155
|
+
Ee as isEmpty,
|
|
156
|
+
Le as isEmptyArray,
|
|
157
|
+
ke as isFunction,
|
|
158
|
+
Ie as isLocal,
|
|
159
|
+
xe as isLoggedIn,
|
|
160
|
+
Oe as isMobile,
|
|
161
|
+
Re as isNull,
|
|
162
|
+
Ne as isNullOrUndefined,
|
|
163
|
+
Te as isNumber,
|
|
164
|
+
Fe as isObject,
|
|
165
|
+
Ve as isProd,
|
|
166
|
+
Ge as isSafeEmpty,
|
|
167
|
+
We as isString,
|
|
168
|
+
_e as isTablet,
|
|
169
|
+
He as isUndefined,
|
|
170
|
+
Je as isValidDate,
|
|
171
|
+
qe as isValidDateTime,
|
|
172
|
+
ze as isValidEmail,
|
|
173
|
+
Ye as isValidUrl,
|
|
174
|
+
je as isValidYear,
|
|
175
|
+
Ke as isValidYearMonth,
|
|
176
|
+
Qe as logServiceCodeConfig,
|
|
177
|
+
Xe as messageUtils,
|
|
178
|
+
Ze as notiBwgError,
|
|
179
|
+
$e as notiError,
|
|
180
|
+
eo as notiInfo,
|
|
181
|
+
oo as notiSuccess,
|
|
182
|
+
ro as notiWarning,
|
|
183
|
+
ao as notificationService,
|
|
184
|
+
to as notificationUtils,
|
|
185
|
+
so as padLeft,
|
|
186
|
+
io as padRight,
|
|
187
|
+
no as random,
|
|
188
|
+
go as realFormat,
|
|
189
|
+
lo as removeSessionStorage,
|
|
190
|
+
uo as round,
|
|
191
|
+
po as serviceUtils,
|
|
192
|
+
co as setClientIp,
|
|
193
|
+
Co as setCookie,
|
|
194
|
+
So as setServiceCodeOverrides,
|
|
195
|
+
wo as setSessionStorage,
|
|
196
|
+
Bo as showApiError,
|
|
197
|
+
mo as showDuplicateError,
|
|
198
|
+
vo as showError,
|
|
199
|
+
fo as showInfo,
|
|
200
|
+
ho as showLoading,
|
|
201
|
+
Po as showRequiredError,
|
|
202
|
+
Do as showSaveError,
|
|
203
|
+
bo as showSaveSuccess,
|
|
204
|
+
Ao as showSuccess,
|
|
205
|
+
Uo as showWarning,
|
|
206
|
+
Mo as submitGwApproval,
|
|
207
|
+
yo as throttle,
|
|
208
|
+
Eo as toCamelCase,
|
|
209
|
+
Lo as uploadFilesViaSftp,
|
|
210
|
+
pa as useAllServiceCodes,
|
|
211
|
+
ca as useAuth,
|
|
212
|
+
Oo as useCode,
|
|
213
|
+
Ca as useCodeColor,
|
|
214
|
+
Sa as useCodeList,
|
|
215
|
+
wa as useCodeListByOption,
|
|
216
|
+
Ba as useCodeName,
|
|
217
|
+
Ro as useCodeStore,
|
|
218
|
+
No as useColorStore,
|
|
219
|
+
ma as useCommonCode,
|
|
220
|
+
To as useFavorite,
|
|
221
|
+
Fo as useFavoriteStore,
|
|
222
|
+
va as useGridLookup,
|
|
223
|
+
Vo as useLoadingStore,
|
|
224
|
+
fa as useLock,
|
|
225
|
+
ha as useLogServiceCodeConfig,
|
|
226
|
+
Go as useMenuModel,
|
|
227
|
+
Wo as useMenuModelStore,
|
|
228
|
+
_o as useMenuView,
|
|
229
|
+
Ho as useMenuViewStore,
|
|
230
|
+
Jo as useOptionStore,
|
|
231
|
+
Pa as usePopup,
|
|
232
|
+
qo as usePopupLoadingStore,
|
|
233
|
+
zo as usePopupState,
|
|
234
|
+
Yo as usePopupStore,
|
|
235
|
+
Da as useSearchBox,
|
|
236
|
+
ba as useServiceCode,
|
|
237
|
+
Aa as useServiceCodeValue,
|
|
238
|
+
jo as useUser,
|
|
239
|
+
Ko as useUserStore,
|
|
240
|
+
ko as userUtils,
|
|
241
|
+
Io as verifyClientIp
|
|
224
242
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PopupConfig } from '../../stores/popupStore';
|
|
1
|
+
import { CorePopupConfig, PopupConfig } from '../../stores/popupStore';
|
|
2
2
|
/**
|
|
3
3
|
* 팝업 데이터와 이벤트를 관리하는 훅
|
|
4
4
|
*/
|
|
@@ -8,7 +8,7 @@ export declare const usePopup: () => {
|
|
|
8
8
|
setActivePopup: (popupId: string) => void;
|
|
9
9
|
closePopup: (popupId: string) => void;
|
|
10
10
|
showPopup: (popupCode: string, popParams?: any, config?: PopupConfig) => Promise<void>;
|
|
11
|
-
openCorePopup: (localCode: string,
|
|
11
|
+
openCorePopup: (localCode: string, config?: CorePopupConfig) => void;
|
|
12
12
|
isPopup: boolean;
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=usePopup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePopup.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/usePopup.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"usePopup.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/usePopup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAiB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3F;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;2BAYC,MAAM,cAAc,GAAG,WAAW,WAAW;+BAanD,MAAM,WAAW,eAAe;;CAoB/C,CAAC"}
|
package/dist/provider/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),O=require("../stores/index.cjs"),l=require("react/jsx-runtime"),M=require("antd"),U=require("../utils/index.cjs"),b={AUTH_BTNS:"SCMSIGN00202",AUTH_MENU:"SCMSIGN00201",SRCH_CODE:"SCMSIGN00301",SRCH_POPU:"SCMPOPU00101",AUTH_BMRK:"SCMBMRK00101"},B=n.createContext(null),_=({children:e,serviceCodes:t={}})=>{n.useEffect(()=>{U.setServiceCodeOverrides(t)},[t]);const i={serviceCodes:t,getServiceCode:r=>{if(t[r]&&t[r].trim()!=="")return console.log(`🔧 Provider 설정 사용: ${r} = ${t[r]}`),t[r];const u=b[r];return console.log(`🔧 기본값 사용: ${r} = ${u}`),u}};return l.jsx(B.Provider,{value:i,children:e})},y=()=>{const e=n.useContext(B);if(!e)throw new Error("useServiceCode must be used within a ServiceCodeProvider");return e},G=e=>{const{getServiceCode:t}=y();return t(e)},V=()=>{const{getServiceCode:e}=y(),t={};for(const o of Object.keys(b))t[o]=e(o);return t},$=()=>{const{getServiceCode:e}=y();console.log("🔧 bwg-core 서비스코드 설정:"),console.log("📋 Provider 설정 > 기본값 순서로 확인");for(const t of Object.keys(b)){const o=e(t);console.log(` ${t}: ${o}`)}},A=n.createContext(null),q=({children:e})=>{const t=n.useRef(null),C={searchBoxRef:t,getFormData:()=>t.current?.getFormData()||{},setFormData:a=>{t.current?.setFormData(a)},resetForm:()=>{t.current?.resetForm()},validateForm:async()=>await t.current?.validateForm()||{success:!1,error:null}};return l.jsx(A.Provider,{value:C,children:e})},H=()=>{const e=n.useContext(A);if(!e)throw new Error("useSearchBox must be used within a SearchBoxProvider");return e},W=()=>{const{popups:e,activePopupId:t,setActivePopup:o,closePopup:i,openPopup:r,openCorePopup:u}=O.usePopupStore(),C=n.useCallback(async(h,m,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),O=require("../stores/index.cjs"),l=require("react/jsx-runtime"),M=require("antd"),U=require("../utils/index.cjs"),b={AUTH_BTNS:"SCMSIGN00202",AUTH_MENU:"SCMSIGN00201",SRCH_CODE:"SCMSIGN00301",SRCH_POPU:"SCMPOPU00101",AUTH_BMRK:"SCMBMRK00101"},B=n.createContext(null),_=({children:e,serviceCodes:t={}})=>{n.useEffect(()=>{U.setServiceCodeOverrides(t)},[t]);const i={serviceCodes:t,getServiceCode:r=>{if(t[r]&&t[r].trim()!=="")return console.log(`🔧 Provider 설정 사용: ${r} = ${t[r]}`),t[r];const u=b[r];return console.log(`🔧 기본값 사용: ${r} = ${u}`),u}};return l.jsx(B.Provider,{value:i,children:e})},y=()=>{const e=n.useContext(B);if(!e)throw new Error("useServiceCode must be used within a ServiceCodeProvider");return e},G=e=>{const{getServiceCode:t}=y();return t(e)},V=()=>{const{getServiceCode:e}=y(),t={};for(const o of Object.keys(b))t[o]=e(o);return t},$=()=>{const{getServiceCode:e}=y();console.log("🔧 bwg-core 서비스코드 설정:"),console.log("📋 Provider 설정 > 기본값 순서로 확인");for(const t of Object.keys(b)){const o=e(t);console.log(` ${t}: ${o}`)}},A=n.createContext(null),q=({children:e})=>{const t=n.useRef(null),C={searchBoxRef:t,getFormData:()=>t.current?.getFormData()||{},setFormData:a=>{t.current?.setFormData(a)},resetForm:()=>{t.current?.resetForm()},validateForm:async()=>await t.current?.validateForm()||{success:!1,error:null}};return l.jsx(A.Provider,{value:C,children:e})},H=()=>{const e=n.useContext(A);if(!e)throw new Error("useSearchBox must be used within a SearchBoxProvider");return e},W=()=>{const{popups:e,activePopupId:t,setActivePopup:o,closePopup:i,openPopup:r,openCorePopup:u}=O.usePopupStore(),C=n.useCallback(async(h,m,s)=>{try{await r(h,m,s)}catch(c){throw console.error("팝업 열기 실패:",c),c}},[r]),a=n.useCallback((h,m)=>{try{u(h,m)}catch(s){throw console.error("로컬 팝업 열기 실패:",s),s}},[u]);return{popups:e,activePopupId:t,setActivePopup:o,closePopup:i,showPopup:C,openCorePopup:a,isPopup:e.length>0}},I=n.createContext(null),z=()=>{const e=n.useContext(I);if(!e)throw new Error("useAuth must be used within AuthProvider");return e},J=({children:e})=>{const[t,o]=n.useState(!1),[i,r]=n.useState(!1),u=async s=>{const c=(await s.text()).trim().toLowerCase();try{const d=JSON.parse(c);if(typeof d=="object"&&d&&(d.ok===!0||d.success===!0))return!0}catch{}return!!["true","ok","1","y"].includes(c)},C=async s=>{r(!0);try{const c=await fetch("/serviceEndpoint/sso_check.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"token="+encodeURIComponent(s)}),d=c.ok&&await u(c);return o(d),d}catch{return!1}finally{r(!1)}},a=async s=>{r(!0);try{const c=await fetch("/serviceEndpoint/sso_reauth.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"pin="+encodeURIComponent(s)});return c.ok&&await u(c)?(o(!0),!0):!1}catch{return!1}finally{r(!1)}},h=()=>{o(!1)},m=n.useMemo(()=>({authed:t,busy:i,verifyWithToken:C,reauthWithPin:a,logout:h}),[t,i]);return l.jsx(I.Provider,{value:m,children:e})},F=n.createContext(void 0),Q=({children:e})=>{const{codeData:t,isLoading:o,error:i,lastUpdated:r,getCodeList:u,getCodeListByOption:C,getCodeName:a,getCodeColor:h,getCodeByOption:m,getAvailableGroupCodes:s,getGridLookup:c,fetchCommonCodes:d}=O.useCodeStore(),k={codeData:t,isLoading:o,error:i,lastUpdated:r,getCodeList:u,getCodeListByOption:C,getCodeName:a,getCodeColor:h,getCodeByOption:m,getAvailableGroupCodes:s,getGridLookup:c,refreshCodes:d};return l.jsx(F.Provider,{value:k,children:e})},f=()=>{const e=n.useContext(F);if(e===void 0)throw new Error("useCommonCode must be used within a CommonCodeProvider");return e},X=()=>{const{getCodeList:e,isLoading:t,error:o}=f();return{getCodeList:e,isLoading:t,error:o}},Y=()=>{const{getCodeName:e,isLoading:t,error:o}=f();return{getCodeName:e,isLoading:t,error:o}},Z=()=>{const{getCodeColor:e,isLoading:t,error:o}=f();return{getCodeColor:e,isLoading:t,error:o}},K=()=>{const{getCodeListByOption:e,isLoading:t,error:o}=f();return{getCodeListByOption:e,isLoading:t,error:o}},ee=()=>{const{getGridLookup:e,isLoading:t,error:o}=f();return{getGridLookup:e,isLoading:t,error:o}},N=n.createContext(null),te=()=>{const e=n.useContext(N);if(!e)throw new Error("useLock must be used within ScreenProtectProvider");return e},oe=({children:e,idleMs:t=1e4,onUnlock:o,persistLocked:i=!0,storageKey:r="inactivityLocked",eventTarget:u,overlayScope:C="global",overlayId:a="lock-overlay-root",overlayPosition:h="fixed"})=>{const m=i&&typeof window<"u"&&window.localStorage.getItem(r)==="1",[s,c]=n.useState(m),[d,k]=n.useState(t),P=Number.isFinite(d)&&d>0,w=n.useRef(null),T=()=>{try{i&&window.localStorage.setItem(r,"1")}catch{}c(!0)},E=async v=>{if(!(o&&!await o(v))){try{i&&window.localStorage.removeItem(r)}catch{}c(!1),P&&L()}},R=()=>{try{i&&window.localStorage.setItem(r,"1")}catch{}c(!0)},L=()=>{P&&(w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{R()},d))};n.useEffect(()=>{if(!P)return;const v=()=>{s||L()},x={passive:!0},S=["pointermove","pointerdown","keydown","wheel","touchstart"],g=u??window;return S.forEach(p=>g.addEventListener(p,v,x)),L(),()=>{w.current&&window.clearTimeout(w.current),S.forEach(p=>g.removeEventListener(p,v))}},[d,s,u,P]),n.useEffect(()=>{if(!s)return;const v=p=>{const j=document.getElementById(a);j&&j.contains(p.target)||(p.stopPropagation(),p.preventDefault())},x={capture:!0},S=["pointerdown","pointerup","pointermove","click","wheel","keydown","keyup","touchstart","touchmove"],g=C==="scoped"?u??window:window;return S.forEach(p=>g.addEventListener(p,v,x)),()=>S.forEach(p=>g.removeEventListener(p,v,x))},[s,C,a,u]);const D=n.useMemo(()=>({locked:s,lock:T,unlock:E,setIdleMs:k}),[s]);return l.jsxs(N.Provider,{value:D,children:[l.jsx("div",{style:{width:"100%",height:"100%"},...s?{inert:""}:{},...s?{"aria-hidden":!0}:{},children:e}),s&&l.jsx(re,{onUnlock:E,overlayId:a,overlayPosition:h})]})},re=({onUnlock:e,overlayId:t="lock-overlay-root",overlayPosition:o="fixed"})=>{const[i]=n.useState(4),[r,u]=n.useState("");return l.jsx("div",{id:t,"aria-modal":"true",role:"dialog","aria-label":"Locked screen",style:{position:o,inset:0,background:"rgba(12, 14, 18, 0.85)",backdropFilter:"blur(4px)",display:"grid",placeItems:"center",zIndex:9999},children:l.jsxs("div",{className:"lockscreen-form",style:{width:420,maxWidth:"92vw"},children:[l.jsx("div",{className:"lock-icon-wrap",children:l.jsx("span",{className:"lock-icon-box"})}),l.jsx("h2",{children:"잠금됨"}),l.jsx("p",{children:"PIN 번호를 입력하세요"}),l.jsx("div",{className:"lock-ipt-wrap",style:{display:"flex",justifyContent:"center"},children:l.jsx(M.Input.OTP,{mask:"*",autoFocus:!0,length:i,value:r,onChange:C=>{const a=(C??"").replace(/\D/g,"").slice(0,i);u(a),a.length===i&&e(a)}})})]})})};exports.AuthProvider=J;exports.CommonCodeProvider=Q;exports.ScreenProtectProvider=oe;exports.SearchBoxProvider=q;exports.ServiceCodeProvider=_;exports.useAllServiceCodes=V;exports.useAuth=z;exports.useCodeColor=Z;exports.useCodeList=X;exports.useCodeListByOption=K;exports.useCodeName=Y;exports.useCommonCode=f;exports.useGridLookup=ee;exports.useLock=te;exports.useLogServiceCodeConfig=$;exports.usePopup=W;exports.useSearchBox=H;exports.useServiceCode=y;exports.useServiceCodeValue=G;
|