@bwg-ui/core 1.2.21 → 1.2.22
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-D-gxEaXb.js → MenuReport-Bsz0OEet.js} +26 -26
- package/dist/chunks/MenuReport-PYufvmGR.cjs +1 -0
- package/dist/chunks/common-components-CdNJR00U.cjs +1109 -0
- package/dist/chunks/common-components-aD7WLZ5f.js +50899 -0
- package/dist/chunks/layout-components-CIO09Lhe.cjs +35 -0
- package/dist/chunks/{layout-components-IvmBzdev.js → layout-components-OnRWLesF.js} +269 -234
- package/dist/components/common/ButtonAccessController.d.ts.map +1 -1
- package/dist/components/common/BwgTitleBox.d.ts.map +1 -1
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +1 -1
- package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
- package/dist/components/layout/default/LocalPopupContainer.d.ts.map +1 -1
- package/dist/components/layout/default/PopupContainer.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/pages/board/CMAdminBoardM01.d.ts +6 -0
- package/dist/components/pages/board/CMAdminBoardM01.d.ts.map +1 -0
- package/dist/components/pages/board/CMBoardS01.d.ts +8 -0
- package/dist/components/pages/board/CMBoardS01.d.ts.map +1 -0
- package/dist/components/pages/board/CMMyBoardM01.d.ts +6 -0
- package/dist/components/pages/board/CMMyBoardM01.d.ts.map +1 -0
- package/dist/components/pages/index.d.ts +6 -1
- package/dist/components/pages/index.d.ts.map +1 -1
- package/dist/components/pages/syst/SystemCodeManage.d.ts +7 -0
- package/dist/components/pages/syst/SystemCodeManage.d.ts.map +1 -0
- package/dist/components/popup/CMPrgrMstrP02.d.ts +3 -0
- package/dist/components/popup/CMPrgrMstrP02.d.ts.map +1 -0
- package/dist/components/popup/MenuReport.d.ts +1 -1
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +1 -0
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +7 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +220 -214
- package/dist/provider/contexts/ServiceCodeContext.d.ts.map +1 -1
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +115 -134
- package/dist/stores/codeStore.d.ts.map +1 -1
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +342 -247
- package/dist/stores/userStore.d.ts +4 -0
- 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/utils/apiUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +38 -36
- package/dist/utils/serviceConfig.d.ts +1 -1
- package/dist/utils/serviceConfig.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/chunks/MenuReport-DbGZz84g.cjs +0 -1
- package/dist/chunks/common-components-BLgaNCNY.js +0 -30500
- package/dist/chunks/common-components-CeY5flj3.cjs +0 -1028
- package/dist/chunks/layout-components-C_HvgcCg.cjs +0 -35
package/dist/index.js
CHANGED
|
@@ -1,262 +1,268 @@
|
|
|
1
|
-
import { ApiError as r, DEFAULT_FMT as s,
|
|
2
|
-
import { useCapsLock as ko, useCode as
|
|
3
|
-
import { f as
|
|
4
|
-
import { BwgButton as
|
|
5
|
-
import { A as
|
|
6
|
-
import { AuthProvider as
|
|
1
|
+
import { ApiError as r, DEFAULT_FMT as s, DEFAULT_SERVICE_CODES as a, THEME_COOKIE_NAME as t, add as i, apiGet as n, apiUtils as g, arrAverage as d, arrCount as l, arrMax as u, arrMin as C, arrReverse as p, arrSum as S, arrUnique as c, bwgUtils as w, callService as M, callServiceBySysCd as B, clamp as m, clearSessionStorage as f, closeAllMessages as v, closeMessage as P, closeNotification as h, commonUtils as y, configureEnvUtils as A, copyToClipboard as U, debounce as D, deleteCookie as E, destroyNotifications as L, diff as b, downloadByFileKey as I, downloadFile as k, duplicates as R, encryptSha256 as O, endOf as T, envUtils as x, fileUtils as F, format as V, generateRandomColor as N, generateRandomString as G, generateUID as H, getAllServiceCodes as W, getApiDeps as _, getClientIp as J, getCookie as K, getCrprCd as q, getDepartmentInfo as z, getDeviceType as Y, getDisplayName as j, getDprtCd as Q, getDprtNm as X, getEmplNo as Z, getEnvCode as $, getHrInfo as ee, getJbdtCd as oe, getJbgdCd as re, getJbkdCd as se, getJbpsCd as ae, getPermissionService as te, getRoleList as ie, getServiceCode as ne, getSessionStorage as ge, getTodateString as de, getUserDvsn as le, getUserId as ue, getUserInfo as Ce, getUserNm as pe, getWkplCd as Se, hasAllRoles as ce, hasAnyRole as we, hasRole as Me, hasUserInfo as Be, initApiDeps as me, isArray as fe, isBoolean as ve, isDesktop as Pe, isDev as he, isEmpty as ye, isEmptyArray as Ae, isFunction as Ue, isLocal as De, isLoggedIn as Ee, isMobile as Le, isNull as be, isNullOrUndefined as Ie, isNumber as ke, isObject as Re, isProd as Oe, isSafeEmpty as Te, isString as xe, isTablet as Fe, isUndefined as Ve, isValid as Ne, isValidDate as Ge, isValidEmail as He, isValidUrl as We, isValidYear as _e, isValidYearMonth as Je, logServiceCodeConfig as Ke, messageUtils as qe, notiBwgError as ze, notiError as Ye, notiInfo as je, notiSuccess as Qe, notiWarning as Xe, notificationService as Ze, notificationUtils as $e, now as eo, openGwDraftByAprvKey as oo, padLeft as ro, padRight as so, random as ao, realFormat as to, removeSessionStorage as io, round as no, serviceUtils as go, setClientIp as lo, setCookie as uo, setServiceCodeOverrides as Co, setSessionStorage as po, showApiError as So, showDuplicateError as co, showError as wo, showInfo as Mo, showLoading as Bo, showRequiredError as mo, showSaveError as fo, showSaveSuccess as vo, showSuccess as Po, showWarning as ho, startOf as yo, submitGwApproval as Ao, throttle as Uo, toCamelCase as Do, uploadFilesViaSftp as Eo, userUtils as Lo, verifyClientIp as bo } from "./utils/index.js";
|
|
2
|
+
import { useCapsLock as ko, useCode as Ro, useCodeStore as Oo, useColorStore as To, useFavorite as xo, useFavoriteStore as Fo, useLoadingStore as Vo, useLogin as No, useLogout as Go, useMenuModel as Ho, useMenuModelStore as Wo, useMenuView as _o, useMenuViewStore as Jo, useOptionStore as Ko, usePopupLoadingStore as qo, usePopupState as zo, usePopupStore as Yo, useSystemCode as jo, useSystemStore as Qo, useUser as Xo, useUserStore as Zo } from "./stores/index.js";
|
|
3
|
+
import { f as er, q as or, r as rr, j as sr, I as ar, B as tr, s as ir, J as nr, t as gr, p as dr, h as lr, u as ur, o as Cr, n as pr, K as Sr, i as cr, b as wr, v as Mr, l as Br, e as mr, k as fr, Y as vr, F as Pr, Z as hr, L as yr, T as Ar, M as Ur, N as Dr, O as Er, _ as Lr, P as br, R as Ir, E as kr, H as Rr, U as Or, V as Tr, X as xr, d as Fr, C as Vr, G as Nr, Q as Gr, w as Hr, S as Wr, x as _r, y as Jr, D as Kr, z as qr, A as zr, W as Yr, m as jr } from "./chunks/common-components-aD7WLZ5f.js";
|
|
4
|
+
import { BwgButton as Xr, BwgCheck as Zr, BwgCheckList as $r, BwgDatePicker as es, BwgDownload as os, BwgForm as rs, BwgFormItem as ss, BwgInput as as, BwgLargeUploader as ts, BwgMaskedInput as is, BwgMaskedPicker as ns, BwgMultiSelect as gs, BwgNumber as ds, BwgRadio as ls, BwgRangePicker as us, BwgSearch as Cs, BwgSelect as ps, BwgSwitch as Ss, BwgTextArea as cs, BwgUploader as ws } from "./components/core/index.js";
|
|
5
|
+
import { A as Bs, b as ms, B as fs, a as vs, d as Ps, e as hs, f as ys, g as As, C as Us, D as Ds, c as Es, L as Ls, P as bs, h as Is } from "./chunks/layout-components-OnRWLesF.js";
|
|
6
|
+
import { AuthProvider as Rs, CommonCodeProvider as Os, ScreenProtectProvider as Ts, SearchBoxProvider as xs, ServiceCodeProvider as Fs, useAllServiceCodes as Vs, useAuth as Ns, useCodeColor as Gs, useCodeList as Hs, useCodeListByOption as Ws, useCodeName as _s, useCommonCode as Js, useGridLookup as Ks, useLock as qs, useLogServiceCodeConfig as zs, usePopup as Ys, useSearchBox as js, useServiceCode as Qs, useServiceCodeValue as Xs } 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
|
-
|
|
9
|
+
Bs as AppWrapper,
|
|
10
|
+
Rs as AuthProvider,
|
|
11
|
+
er as ButtonAccessController,
|
|
12
|
+
Xr as BwgButton,
|
|
13
|
+
or as BwgButtonGroup,
|
|
14
|
+
Zr as BwgCheck,
|
|
15
|
+
$r as BwgCheckList,
|
|
16
|
+
rr as BwgCmptArea,
|
|
17
|
+
sr as BwgCol,
|
|
18
|
+
ar as BwgComponentGuideM01,
|
|
19
|
+
tr as BwgConfigProvider,
|
|
20
|
+
ms as BwgCoreLogin,
|
|
21
|
+
es as BwgDatePicker,
|
|
22
|
+
ir as BwgDetail,
|
|
23
|
+
nr as BwgDeveloperGuideM01,
|
|
24
|
+
os as BwgDownload,
|
|
25
|
+
gr as BwgDrawer,
|
|
26
|
+
dr as BwgEditor,
|
|
27
|
+
rs as BwgForm,
|
|
28
|
+
ss as BwgFormItem,
|
|
29
29
|
lr as BwgGrid,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
ur as BwgInfoArea,
|
|
31
|
+
as as BwgInput,
|
|
32
|
+
ts as BwgLargeUploader,
|
|
33
|
+
is as BwgMaskedInput,
|
|
34
|
+
ns as BwgMaskedPicker,
|
|
35
|
+
gs as BwgMultiSelect,
|
|
36
|
+
ds as BwgNumber,
|
|
37
|
+
Cr as BwgPagination,
|
|
38
|
+
pr as BwgPopup,
|
|
39
|
+
fs as BwgPortal01,
|
|
40
|
+
vs as BwgPortal02,
|
|
41
|
+
ls as BwgRadio,
|
|
42
|
+
us as BwgRangePicker,
|
|
43
|
+
Sr as BwgReactGuideM01,
|
|
44
44
|
cr as BwgRow,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
Cs as BwgSearch,
|
|
46
|
+
ps as BwgSelect,
|
|
47
|
+
wr as BwgSpace,
|
|
48
|
+
Ss as BwgSwitch,
|
|
49
|
+
Mr as BwgTable,
|
|
50
50
|
Br as BwgTabs,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
hr as
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Ur as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
Lr as
|
|
64
|
-
br as
|
|
65
|
-
|
|
66
|
-
kr as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
51
|
+
cs as BwgTextArea,
|
|
52
|
+
mr as BwgTitleBox,
|
|
53
|
+
ws as BwgUploader,
|
|
54
|
+
fr as BwgView,
|
|
55
|
+
vr as CMAdminBoardM01,
|
|
56
|
+
Pr as CMAuthMstrM01,
|
|
57
|
+
hr as CMBoardS01,
|
|
58
|
+
yr as CMFileMstrM01,
|
|
59
|
+
Ar as CMHldyCfg,
|
|
60
|
+
Ur as CMMenuMstrM01,
|
|
61
|
+
Dr as CMMenuPrgrSelectModal,
|
|
62
|
+
Er as CMMenuPrntSelectModal,
|
|
63
|
+
Lr as CMMyBoardM01,
|
|
64
|
+
br as CMPopupMstrM01,
|
|
65
|
+
Ir as CMPrgrMstrM01,
|
|
66
|
+
kr as CMPrgrMstrP02,
|
|
67
|
+
Rr as CMRoleMstrM01,
|
|
68
|
+
Or as CMSystCfgM01,
|
|
69
|
+
Tr as CMSystCodeM01,
|
|
70
|
+
xr as CMUserMstrM01,
|
|
71
|
+
Os as CommonCodeProvider,
|
|
72
|
+
Ps as ConfigurableContent,
|
|
73
|
+
hs as ConfigurableHeader,
|
|
74
|
+
ys as ConfigurableMenuTab,
|
|
75
|
+
As as ConfigurableSidebar,
|
|
76
|
+
Fr as ContentBox,
|
|
77
|
+
Us as ContentContainer,
|
|
78
|
+
Vr as ContentLayOut,
|
|
75
79
|
s as DEFAULT_FMT,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
80
|
+
a as DEFAULT_SERVICE_CODES,
|
|
81
|
+
Ds as DefaultLoginView,
|
|
82
|
+
Nr as GlobalConfigProvider,
|
|
83
|
+
Es as LandingContainer,
|
|
84
|
+
Ls as LoadingContainer,
|
|
85
|
+
bs as PopupContainer,
|
|
86
|
+
Is as ProtectWrapper,
|
|
87
|
+
Gr as QuickServiceToggle,
|
|
88
|
+
Hr as SSOHandler,
|
|
89
|
+
Ts as ScreenProtectProvider,
|
|
90
|
+
Wr as SearchBox,
|
|
91
|
+
xs as SearchBoxProvider,
|
|
92
|
+
_r as SearchDepartmentP01,
|
|
93
|
+
Jr as SearchDepartmentP02,
|
|
94
|
+
Kr as SearchHolidayP01,
|
|
95
|
+
qr as SearchOrganizationP01,
|
|
96
|
+
zr as SearchOrganizationP02,
|
|
97
|
+
Fs as ServiceCodeProvider,
|
|
98
|
+
Yr as SystemCodeManage,
|
|
99
|
+
t as THEME_COOKIE_NAME,
|
|
100
|
+
i as add,
|
|
101
|
+
n as apiGet,
|
|
102
|
+
g as apiUtils,
|
|
103
|
+
d as arrAverage,
|
|
98
104
|
l as arrCount,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
105
|
+
u as arrMax,
|
|
106
|
+
C as arrMin,
|
|
107
|
+
p as arrReverse,
|
|
108
|
+
S as arrSum,
|
|
103
109
|
c as arrUnique,
|
|
104
|
-
|
|
105
|
-
|
|
110
|
+
w as bwgUtils,
|
|
111
|
+
M as callService,
|
|
106
112
|
B as callServiceBySysCd,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
113
|
+
m as clamp,
|
|
114
|
+
f as clearSessionStorage,
|
|
115
|
+
v as closeAllMessages,
|
|
116
|
+
P as closeMessage,
|
|
111
117
|
h as closeNotification,
|
|
112
|
-
|
|
113
|
-
|
|
118
|
+
y as commonUtils,
|
|
119
|
+
A as configureEnvUtils,
|
|
114
120
|
U as copyToClipboard,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
jr as createBwgGridRenderer,
|
|
122
|
+
D as debounce,
|
|
123
|
+
E as deleteCookie,
|
|
118
124
|
L as destroyNotifications,
|
|
119
125
|
b as diff,
|
|
120
|
-
|
|
126
|
+
I as downloadByFileKey,
|
|
121
127
|
k as downloadFile,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
R as duplicates,
|
|
129
|
+
O as encryptSha256,
|
|
130
|
+
T as endOf,
|
|
131
|
+
x as envUtils,
|
|
132
|
+
F as fileUtils,
|
|
133
|
+
V as format,
|
|
128
134
|
N as generateRandomColor,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
G as generateRandomString,
|
|
136
|
+
H as generateUID,
|
|
137
|
+
W as getAllServiceCodes,
|
|
138
|
+
_ as getApiDeps,
|
|
139
|
+
J as getClientIp,
|
|
134
140
|
K as getCookie,
|
|
135
141
|
q as getCrprCd,
|
|
136
142
|
z as getDepartmentInfo,
|
|
137
|
-
|
|
143
|
+
Y as getDeviceType,
|
|
138
144
|
j as getDisplayName,
|
|
139
145
|
Q as getDprtCd,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
146
|
+
X as getDprtNm,
|
|
147
|
+
Z as getEmplNo,
|
|
148
|
+
$ as getEnvCode,
|
|
149
|
+
ee as getHrInfo,
|
|
150
|
+
oe as getJbdtCd,
|
|
151
|
+
re as getJbgdCd,
|
|
152
|
+
se as getJbkdCd,
|
|
153
|
+
ae as getJbpsCd,
|
|
154
|
+
te as getPermissionService,
|
|
155
|
+
ie as getRoleList,
|
|
156
|
+
ne as getServiceCode,
|
|
157
|
+
ge as getSessionStorage,
|
|
158
|
+
de as getTodateString,
|
|
153
159
|
le as getUserDvsn,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
160
|
+
ue as getUserId,
|
|
161
|
+
Ce as getUserInfo,
|
|
162
|
+
pe as getUserNm,
|
|
163
|
+
Se as getWkplCd,
|
|
158
164
|
ce as hasAllRoles,
|
|
159
|
-
|
|
160
|
-
|
|
165
|
+
we as hasAnyRole,
|
|
166
|
+
Me as hasRole,
|
|
161
167
|
Be as hasUserInfo,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
168
|
+
me as initApiDeps,
|
|
169
|
+
fe as isArray,
|
|
170
|
+
ve as isBoolean,
|
|
171
|
+
Pe as isDesktop,
|
|
166
172
|
he as isDev,
|
|
167
|
-
|
|
168
|
-
|
|
173
|
+
ye as isEmpty,
|
|
174
|
+
Ae as isEmptyArray,
|
|
169
175
|
Ue as isFunction,
|
|
170
|
-
|
|
171
|
-
|
|
176
|
+
De as isLocal,
|
|
177
|
+
Ee as isLoggedIn,
|
|
172
178
|
Le as isMobile,
|
|
173
179
|
be as isNull,
|
|
174
|
-
|
|
180
|
+
Ie as isNullOrUndefined,
|
|
175
181
|
ke as isNumber,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
Re as isObject,
|
|
183
|
+
Oe as isProd,
|
|
184
|
+
Te as isSafeEmpty,
|
|
185
|
+
xe as isString,
|
|
186
|
+
Fe as isTablet,
|
|
187
|
+
Ve as isUndefined,
|
|
182
188
|
Ne as isValid,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
189
|
+
Ge as isValidDate,
|
|
190
|
+
He as isValidEmail,
|
|
191
|
+
We as isValidUrl,
|
|
192
|
+
_e as isValidYear,
|
|
193
|
+
Je as isValidYearMonth,
|
|
188
194
|
Ke as logServiceCodeConfig,
|
|
189
195
|
qe as messageUtils,
|
|
190
196
|
ze as notiBwgError,
|
|
191
|
-
|
|
197
|
+
Ye as notiError,
|
|
192
198
|
je as notiInfo,
|
|
193
199
|
Qe as notiSuccess,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
200
|
+
Xe as notiWarning,
|
|
201
|
+
Ze as notificationService,
|
|
202
|
+
$e as notificationUtils,
|
|
203
|
+
eo as now,
|
|
204
|
+
oo as openGwDraftByAprvKey,
|
|
205
|
+
ro as padLeft,
|
|
206
|
+
so as padRight,
|
|
207
|
+
ao as random,
|
|
208
|
+
to as realFormat,
|
|
209
|
+
io as removeSessionStorage,
|
|
210
|
+
no as round,
|
|
211
|
+
go as serviceUtils,
|
|
212
|
+
lo as setClientIp,
|
|
213
|
+
uo as setCookie,
|
|
214
|
+
Co as setServiceCodeOverrides,
|
|
215
|
+
po as setSessionStorage,
|
|
216
|
+
So as showApiError,
|
|
211
217
|
co as showDuplicateError,
|
|
212
|
-
|
|
213
|
-
|
|
218
|
+
wo as showError,
|
|
219
|
+
Mo as showInfo,
|
|
214
220
|
Bo as showLoading,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
221
|
+
mo as showRequiredError,
|
|
222
|
+
fo as showSaveError,
|
|
223
|
+
vo as showSaveSuccess,
|
|
224
|
+
Po as showSuccess,
|
|
219
225
|
ho as showWarning,
|
|
220
|
-
|
|
221
|
-
|
|
226
|
+
yo as startOf,
|
|
227
|
+
Ao as submitGwApproval,
|
|
222
228
|
Uo as throttle,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
229
|
+
Do as toCamelCase,
|
|
230
|
+
Eo as uploadFilesViaSftp,
|
|
231
|
+
Vs as useAllServiceCodes,
|
|
232
|
+
Ns as useAuth,
|
|
227
233
|
ko as useCapsLock,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
234
|
+
Ro as useCode,
|
|
235
|
+
Gs as useCodeColor,
|
|
236
|
+
Hs as useCodeList,
|
|
237
|
+
Ws as useCodeListByOption,
|
|
238
|
+
_s as useCodeName,
|
|
239
|
+
Oo as useCodeStore,
|
|
240
|
+
To as useColorStore,
|
|
241
|
+
Js as useCommonCode,
|
|
242
|
+
xo as useFavorite,
|
|
243
|
+
Fo as useFavoriteStore,
|
|
244
|
+
Ks as useGridLookup,
|
|
245
|
+
Vo as useLoadingStore,
|
|
246
|
+
qs as useLock,
|
|
247
|
+
zs as useLogServiceCodeConfig,
|
|
242
248
|
No as useLogin,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
249
|
+
Go as useLogout,
|
|
250
|
+
Ho as useMenuModel,
|
|
251
|
+
Wo as useMenuModelStore,
|
|
252
|
+
_o as useMenuView,
|
|
253
|
+
Jo as useMenuViewStore,
|
|
248
254
|
Ko as useOptionStore,
|
|
249
|
-
|
|
255
|
+
Ys as usePopup,
|
|
250
256
|
qo as usePopupLoadingStore,
|
|
251
257
|
zo as usePopupState,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
258
|
+
Yo as usePopupStore,
|
|
259
|
+
js as useSearchBox,
|
|
260
|
+
Qs as useServiceCode,
|
|
261
|
+
Xs as useServiceCodeValue,
|
|
256
262
|
jo as useSystemCode,
|
|
257
263
|
Qo as useSystemStore,
|
|
258
|
-
|
|
259
|
-
|
|
264
|
+
Xo as useUser,
|
|
265
|
+
Zo as useUserStore,
|
|
260
266
|
Lo as userUtils,
|
|
261
267
|
bo as verifyClientIp
|
|
262
268
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceCodeContext.d.ts","sourceRoot":"","sources":["../../../src/provider/contexts/ServiceCodeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAAE,SAAS,EAAyB,MAAM,OAAO,CAAC;AAC5E,OAAO,
|
|
1
|
+
{"version":3,"file":"ServiceCodeContext.d.ts","sourceRoot":"","sources":["../../../src/provider/contexts/ServiceCodeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAAE,SAAS,EAAyB,MAAM,OAAO,CAAC;AAC5E,OAAO,EAEL,cAAc,EAEf,MAAM,2BAA2B,CAAC;AAGnC,UAAU,sBAAsB;IAC9B,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD,cAAc,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,MAAM,CAAC;CACjD;AAMD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;CACxD;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA+B5D,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,QAAO,sBAMjC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,GAAI,KAAK,cAAc,KAAG,MAGzD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,QAAO,MAAM,CAAC,cAAc,EAAE,MAAM,CASlE,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,QAAO,IAU1C,CAAC;AAGF,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/provider/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),F=require("../stores/index.cjs"),l=require("react/jsx-runtime"),V=require("antd"),k=require("../utils/index.cjs"),O=r.createContext(null),_=({children:e,serviceCodes:t={}})=>{r.useEffect(()=>{k.setServiceCodeOverrides(t)},[t]);const i={serviceCodes:t,getServiceCode:n=>t[n]&&t[n].trim()!==""?t[n]:k.DEFAULT_SERVICE_CODES[n]};return l.jsx(O.Provider,{value:i,children:e})},P=()=>{const e=r.useContext(O);if(!e)throw new Error("useServiceCode must be used within a ServiceCodeProvider");return e},U=e=>{const{getServiceCode:t}=P();return t(e)},q=()=>{const{getServiceCode:e}=P(),t={};for(const o of Object.keys(k.DEFAULT_SERVICE_CODES))t[o]=e(o);return t},G=()=>{const{getServiceCode:e}=P();console.log("🔧 bwg-core 서비스코드 설정:"),console.log("📋 Provider 설정 > 기본값 순서로 확인");for(const t of Object.keys(k.DEFAULT_SERVICE_CODES)){const o=e(t);console.log(` ${t}: ${o}`)}},A=r.createContext(null),M=({children:e})=>{const t=r.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})},W=()=>{const e=r.useContext(A);if(!e)throw new Error("useSearchBox must be used within a SearchBoxProvider");return e},$=()=>{const{popups:e,activePopupId:t,setActivePopup:o,closePopup:i,openPopup:n,openCorePopup:u}=F.usePopupStore(),C=r.useCallback(async(h,m,s)=>{try{await n(h,m,s)}catch(c){throw console.error("팝업 열기 실패:",c),c}},[n]),a=r.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=r.createContext(null),z=()=>{const e=r.useContext(I);if(!e)throw new Error("useAuth must be used within AuthProvider");return e},J=({children:e})=>{const[t,o]=r.useState(!1),[i,n]=r.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=>{n(!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{n(!1)}},a=async s=>{n(!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{n(!1)}},h=()=>{o(!1)},m=r.useMemo(()=>({authed:t,busy:i,verifyWithToken:C,reauthWithPin:a,logout:h}),[t,i]);return l.jsx(I.Provider,{value:m,children:e})},B=r.createContext(void 0),H=({children:e})=>{const{codeData:t,isLoading:o,error:i,lastUpdated:n,getCodeList:u,getCodeListByOption:C,getCodeName:a,getCodeColor:h,getCodeByOption:m,getAvailableGroupCodes:s,getGridLookup:c,fetchCommonCodes:d}=F.useCodeStore(),L={codeData:t,isLoading:o,error:i,lastUpdated:n,getCodeList:u,getCodeListByOption:C,getCodeName:a,getCodeColor:h,getCodeByOption:m,getAvailableGroupCodes:s,getGridLookup:c,refreshCodes:d};return l.jsx(B.Provider,{value:L,children:e})},f=()=>{const e=r.useContext(B);if(e===void 0)throw new Error("useCommonCode must be used within a CommonCodeProvider");return e},Q=()=>{const{getCodeList:e,isLoading:t,error:o}=f();return{getCodeList:e,isLoading:t,error:o}},X=()=>{const{getCodeName:e,isLoading:t,error:o}=f();return{getCodeName:e,isLoading:t,error:o}},Y=()=>{const{getCodeColor:e,isLoading:t,error:o}=f();return{getCodeColor:e,isLoading:t,error:o}},Z=()=>{const{getCodeListByOption:e,isLoading:t,error:o}=f();return{getCodeListByOption:e,isLoading:t,error:o}},K=()=>{const{getGridLookup:e,isLoading:t,error:o}=f();return{getGridLookup:e,isLoading:t,error:o}},D=r.createContext(null),ee=()=>{const e=r.useContext(D);if(!e)throw new Error("useLock must be used within ScreenProtectProvider");return e},te=({children:e,idleMs:t=1e4,onUnlock:o,persistLocked:i=!0,storageKey:n="inactivityLocked",eventTarget:u,overlayScope:C="global",overlayId:a="lock-overlay-root",overlayPosition:h="fixed"})=>{const m=i&&typeof window<"u"&&window.localStorage.getItem(n)==="1",[s,c]=r.useState(m),[d,L]=r.useState(t),y=Number.isFinite(d)&&d>0,w=r.useRef(null),T=()=>{try{i&&window.localStorage.setItem(n,"1")}catch{}c(!0)},b=async v=>{if(!(o&&!await o(v))){try{i&&window.localStorage.removeItem(n)}catch{}c(!1),y&&E()}},N=()=>{try{i&&window.localStorage.setItem(n,"1")}catch{}c(!0)},E=()=>{y&&(w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{N()},d))};r.useEffect(()=>{if(!y)return;const v=()=>{s||E()},x={passive:!0},g=["pointermove","pointerdown","keydown","wheel","touchstart"],S=u??window;return g.forEach(p=>S.addEventListener(p,v,x)),E(),()=>{w.current&&window.clearTimeout(w.current),g.forEach(p=>S.removeEventListener(p,v))}},[d,s,u,y]),r.useEffect(()=>{if(!s)return;const v=p=>{const j=document.getElementById(a);j&&j.contains(p.target)||(p.stopPropagation(),p.preventDefault())},x={capture:!0},g=["pointerdown","pointerup","pointermove","click","wheel","keydown","keyup","touchstart","touchmove"],S=C==="scoped"?u??window:window;return g.forEach(p=>S.addEventListener(p,v,x)),()=>g.forEach(p=>S.removeEventListener(p,v,x))},[s,C,a,u]);const R=r.useMemo(()=>({locked:s,lock:T,unlock:b,setIdleMs:L}),[s]);return l.jsxs(D.Provider,{value:R,children:[l.jsx("div",{style:{width:"100%",height:"100%"},...s?{inert:""}:{},...s?{"aria-hidden":!0}:{},children:e}),s&&l.jsx(oe,{onUnlock:b,overlayId:a,overlayPosition:h})]})},oe=({onUnlock:e,overlayId:t="lock-overlay-root",overlayPosition:o="fixed"})=>{const[i]=r.useState(4),[n,u]=r.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(V.Input.OTP,{mask:"*",autoFocus:!0,length:i,value:n,onChange:C=>{const a=(C??"").replace(/\D/g,"").slice(0,i);u(a),a.length===i&&e(a)}})})]})})};exports.AuthProvider=J;exports.CommonCodeProvider=H;exports.ScreenProtectProvider=te;exports.SearchBoxProvider=M;exports.ServiceCodeProvider=_;exports.useAllServiceCodes=q;exports.useAuth=z;exports.useCodeColor=Y;exports.useCodeList=Q;exports.useCodeListByOption=Z;exports.useCodeName=X;exports.useCommonCode=f;exports.useGridLookup=K;exports.useLock=ee;exports.useLogServiceCodeConfig=G;exports.usePopup=$;exports.useSearchBox=W;exports.useServiceCode=P;exports.useServiceCodeValue=U;
|