@bwg-ui/core 1.2.21 → 1.2.23
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-B7wOCWJH.js} +1 -1
- package/dist/chunks/{MenuReport-DbGZz84g.cjs → MenuReport-DWUqzoE_.cjs} +1 -1
- package/dist/chunks/common-components-1B6Dgw0G.cjs +1109 -0
- package/dist/chunks/common-components-DN-4Ydi7.js +51359 -0
- package/dist/chunks/{layout-components-IvmBzdev.js → layout-components-BO9fKUG7.js} +269 -234
- package/dist/chunks/layout-components-CQYHdg88.cjs +35 -0
- 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/SearchOrganizationP01.d.ts +2 -0
- package/dist/components/popup/SearchOrganizationP01.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 +253 -245
- 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 +6 -0
- package/dist/stores/userStore.d.ts.map +1 -1
- package/dist/utils/apiUtils.d.ts.map +1 -1
- package/dist/utils/gwUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +644 -636
- package/dist/utils/serviceConfig.d.ts +1 -1
- package/dist/utils/serviceConfig.d.ts.map +1 -1
- package/dist/utils/userUtils.d.ts +2 -0
- package/dist/utils/userUtils.d.ts.map +1 -1
- package/package.json +2 -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,270 @@
|
|
|
1
|
-
import { ApiError as r, DEFAULT_FMT as s,
|
|
2
|
-
import { useCapsLock 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 l, arrCount as d, 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 D, copyToClipboard as A, debounce as U, deleteCookie as E, destroyNotifications as L, diff as b, downloadByFileKey as I, downloadFile as k, duplicates as R, encryptSha256 as F, endOf as O, envUtils as T, fileUtils as x, format as N, generateRandomColor as V, 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 $, getFullDprtCd as ee, getFullDprtNm as oe, getHrInfo as re, getJbdtCd as se, getJbgdCd as ae, getJbkdCd as te, getJbpsCd as ie, getPermissionService as ne, getRoleList as ge, getServiceCode as le, getSessionStorage as de, getTodateString as ue, getUserDvsn as Ce, getUserId as pe, getUserInfo as Se, getUserNm as ce, getWkplCd as we, hasAllRoles as Me, hasAnyRole as Be, hasRole as me, hasUserInfo as fe, initApiDeps as ve, isArray as Pe, isBoolean as he, isDesktop as ye, isDev as De, isEmpty as Ae, isEmptyArray as Ue, isFunction as Ee, isLocal as Le, isLoggedIn as be, isMobile as Ie, isNull as ke, isNullOrUndefined as Re, isNumber as Fe, isObject as Oe, isProd as Te, isSafeEmpty as xe, isString as Ne, isTablet as Ve, isUndefined as Ge, isValid as He, isValidDate as We, isValidEmail as _e, isValidUrl as Je, isValidYear as Ke, isValidYearMonth as qe, logServiceCodeConfig as ze, messageUtils as Ye, notiBwgError as je, notiError as Qe, notiInfo as Xe, notiSuccess as Ze, notiWarning as $e, notificationService as eo, notificationUtils as oo, now as ro, openGwDraftByAprvKey as so, padLeft as ao, padRight as to, random as io, realFormat as no, removeSessionStorage as go, round as lo, serviceUtils as uo, setClientIp as Co, setCookie as po, setServiceCodeOverrides as So, setSessionStorage as co, showApiError as wo, showDuplicateError as Mo, showError as Bo, showInfo as mo, showLoading as fo, showRequiredError as vo, showSaveError as Po, showSaveSuccess as ho, showSuccess as yo, showWarning as Do, startOf as Ao, submitGwApproval as Uo, throttle as Eo, toCamelCase as Lo, uploadFilesViaSftp as bo, userUtils as Io, verifyClientIp as ko } from "./utils/index.js";
|
|
2
|
+
import { useCapsLock as Fo, useCode as Oo, useCodeStore as To, useColorStore as xo, useFavorite as No, useFavoriteStore as Vo, useLoadingStore as Go, useLogin as Ho, useLogout as Wo, useMenuModel as _o, useMenuModelStore as Jo, useMenuView as Ko, useMenuViewStore as qo, useOptionStore as zo, usePopupLoadingStore as Yo, usePopupState as jo, usePopupStore as Qo, useSystemCode as Xo, useSystemStore as Zo, useUser as $o, useUserStore as er } from "./stores/index.js";
|
|
3
|
+
import { f as rr, q as sr, r as ar, j as tr, I as ir, B as nr, s as gr, J as lr, t as dr, p as ur, h as Cr, u as pr, o as Sr, n as cr, K as wr, i as Mr, b as Br, v as mr, l as fr, e as vr, k as Pr, Y as hr, F as yr, Z as Dr, L as Ar, T as Ur, M as Er, N as Lr, O as br, _ as Ir, P as kr, R as Rr, E as Fr, H as Or, U as Tr, V as xr, X as Nr, d as Vr, C as Gr, G as Hr, Q as Wr, w as _r, S as Jr, x as Kr, y as qr, D as zr, z as Yr, A as jr, W as Qr, m as Xr } from "./chunks/common-components-DN-4Ydi7.js";
|
|
4
|
+
import { BwgButton as $r, BwgCheck as es, BwgCheckList as os, BwgDatePicker as rs, BwgDownload as ss, BwgForm as as, BwgFormItem as ts, BwgInput as is, BwgLargeUploader as ns, BwgMaskedInput as gs, BwgMaskedPicker as ls, BwgMultiSelect as ds, BwgNumber as us, BwgRadio as Cs, BwgRangePicker as ps, BwgSearch as Ss, BwgSelect as cs, BwgSwitch as ws, BwgTextArea as Ms, BwgUploader as Bs } from "./components/core/index.js";
|
|
5
|
+
import { A as fs, b as vs, B as Ps, a as hs, d as ys, e as Ds, f as As, g as Us, C as Es, D as Ls, c as bs, L as Is, P as ks, h as Rs } from "./chunks/layout-components-BO9fKUG7.js";
|
|
6
|
+
import { AuthProvider as Os, CommonCodeProvider as Ts, ScreenProtectProvider as xs, SearchBoxProvider as Ns, ServiceCodeProvider as Vs, useAllServiceCodes as Gs, useAuth as Hs, useCodeColor as Ws, useCodeList as _s, useCodeListByOption as Js, useCodeName as Ks, useCommonCode as qs, useGridLookup as zs, useLock as Ys, useLogServiceCodeConfig as js, usePopup as Qs, useSearchBox as Xs, useServiceCode as Zs, useServiceCodeValue as $s } 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
|
-
|
|
9
|
+
fs as AppWrapper,
|
|
10
|
+
Os as AuthProvider,
|
|
11
|
+
rr as ButtonAccessController,
|
|
12
|
+
$r as BwgButton,
|
|
13
|
+
sr as BwgButtonGroup,
|
|
14
|
+
es as BwgCheck,
|
|
15
|
+
os as BwgCheckList,
|
|
16
|
+
ar as BwgCmptArea,
|
|
17
|
+
tr as BwgCol,
|
|
18
|
+
ir as BwgComponentGuideM01,
|
|
19
|
+
nr as BwgConfigProvider,
|
|
20
|
+
vs as BwgCoreLogin,
|
|
21
|
+
rs as BwgDatePicker,
|
|
22
|
+
gr as BwgDetail,
|
|
23
|
+
lr as BwgDeveloperGuideM01,
|
|
24
|
+
ss as BwgDownload,
|
|
25
|
+
dr as BwgDrawer,
|
|
26
|
+
ur as BwgEditor,
|
|
27
|
+
as as BwgForm,
|
|
28
|
+
ts as BwgFormItem,
|
|
29
|
+
Cr as BwgGrid,
|
|
30
|
+
pr as BwgInfoArea,
|
|
31
|
+
is as BwgInput,
|
|
32
|
+
ns as BwgLargeUploader,
|
|
33
|
+
gs as BwgMaskedInput,
|
|
34
|
+
ls as BwgMaskedPicker,
|
|
35
|
+
ds as BwgMultiSelect,
|
|
36
|
+
us as BwgNumber,
|
|
37
|
+
Sr as BwgPagination,
|
|
38
|
+
cr as BwgPopup,
|
|
39
|
+
Ps as BwgPortal01,
|
|
40
|
+
hs as BwgPortal02,
|
|
41
|
+
Cs as BwgRadio,
|
|
42
|
+
ps as BwgRangePicker,
|
|
43
|
+
wr as BwgReactGuideM01,
|
|
44
|
+
Mr as BwgRow,
|
|
45
|
+
Ss as BwgSearch,
|
|
46
|
+
cs as BwgSelect,
|
|
47
|
+
Br as BwgSpace,
|
|
48
|
+
ws as BwgSwitch,
|
|
49
|
+
mr as BwgTable,
|
|
50
|
+
fr as BwgTabs,
|
|
51
|
+
Ms as BwgTextArea,
|
|
52
|
+
vr as BwgTitleBox,
|
|
53
|
+
Bs as BwgUploader,
|
|
54
|
+
Pr as BwgView,
|
|
55
|
+
hr as CMAdminBoardM01,
|
|
56
|
+
yr as CMAuthMstrM01,
|
|
57
|
+
Dr as CMBoardS01,
|
|
58
|
+
Ar as CMFileMstrM01,
|
|
59
|
+
Ur as CMHldyCfg,
|
|
60
|
+
Er as CMMenuMstrM01,
|
|
61
|
+
Lr as CMMenuPrgrSelectModal,
|
|
62
|
+
br as CMMenuPrntSelectModal,
|
|
63
|
+
Ir as CMMyBoardM01,
|
|
64
|
+
kr as CMPopupMstrM01,
|
|
65
|
+
Rr as CMPrgrMstrM01,
|
|
66
|
+
Fr as CMPrgrMstrP02,
|
|
67
|
+
Or as CMRoleMstrM01,
|
|
68
|
+
Tr as CMSystCfgM01,
|
|
69
|
+
xr as CMSystCodeM01,
|
|
70
|
+
Nr as CMUserMstrM01,
|
|
71
|
+
Ts as CommonCodeProvider,
|
|
72
|
+
ys as ConfigurableContent,
|
|
73
|
+
Ds as ConfigurableHeader,
|
|
74
|
+
As as ConfigurableMenuTab,
|
|
75
|
+
Us as ConfigurableSidebar,
|
|
76
|
+
Vr as ContentBox,
|
|
77
|
+
Es as ContentContainer,
|
|
78
|
+
Gr 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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
80
|
+
a as DEFAULT_SERVICE_CODES,
|
|
81
|
+
Ls as DefaultLoginView,
|
|
82
|
+
Hr as GlobalConfigProvider,
|
|
83
|
+
bs as LandingContainer,
|
|
84
|
+
Is as LoadingContainer,
|
|
85
|
+
ks as PopupContainer,
|
|
86
|
+
Rs as ProtectWrapper,
|
|
87
|
+
Wr as QuickServiceToggle,
|
|
88
|
+
_r as SSOHandler,
|
|
89
|
+
xs as ScreenProtectProvider,
|
|
90
|
+
Jr as SearchBox,
|
|
91
|
+
Ns as SearchBoxProvider,
|
|
92
|
+
Kr as SearchDepartmentP01,
|
|
93
|
+
qr as SearchDepartmentP02,
|
|
94
|
+
zr as SearchHolidayP01,
|
|
95
|
+
Yr as SearchOrganizationP01,
|
|
96
|
+
jr as SearchOrganizationP02,
|
|
97
|
+
Vs as ServiceCodeProvider,
|
|
98
|
+
Qr as SystemCodeManage,
|
|
99
|
+
t as THEME_COOKIE_NAME,
|
|
100
|
+
i as add,
|
|
101
|
+
n as apiGet,
|
|
102
|
+
g as apiUtils,
|
|
103
|
+
l as arrAverage,
|
|
104
|
+
d as arrCount,
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
y as commonUtils,
|
|
119
|
+
D as configureEnvUtils,
|
|
120
|
+
A as copyToClipboard,
|
|
121
|
+
Xr as createBwgGridRenderer,
|
|
122
|
+
U 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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
R as duplicates,
|
|
129
|
+
F as encryptSha256,
|
|
130
|
+
O as endOf,
|
|
131
|
+
T as envUtils,
|
|
132
|
+
x as fileUtils,
|
|
133
|
+
N as format,
|
|
134
|
+
V as generateRandomColor,
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
ce as
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
Be as
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
he as
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
Le as
|
|
173
|
-
be as
|
|
174
|
-
|
|
175
|
-
ke as
|
|
176
|
-
|
|
177
|
-
|
|
146
|
+
X as getDprtNm,
|
|
147
|
+
Z as getEmplNo,
|
|
148
|
+
$ as getEnvCode,
|
|
149
|
+
ee as getFullDprtCd,
|
|
150
|
+
oe as getFullDprtNm,
|
|
151
|
+
re as getHrInfo,
|
|
152
|
+
se as getJbdtCd,
|
|
153
|
+
ae as getJbgdCd,
|
|
154
|
+
te as getJbkdCd,
|
|
155
|
+
ie as getJbpsCd,
|
|
156
|
+
ne as getPermissionService,
|
|
157
|
+
ge as getRoleList,
|
|
158
|
+
le as getServiceCode,
|
|
159
|
+
de as getSessionStorage,
|
|
160
|
+
ue as getTodateString,
|
|
161
|
+
Ce as getUserDvsn,
|
|
162
|
+
pe as getUserId,
|
|
163
|
+
Se as getUserInfo,
|
|
164
|
+
ce as getUserNm,
|
|
165
|
+
we as getWkplCd,
|
|
166
|
+
Me as hasAllRoles,
|
|
167
|
+
Be as hasAnyRole,
|
|
168
|
+
me as hasRole,
|
|
169
|
+
fe as hasUserInfo,
|
|
170
|
+
ve as initApiDeps,
|
|
171
|
+
Pe as isArray,
|
|
172
|
+
he as isBoolean,
|
|
173
|
+
ye as isDesktop,
|
|
174
|
+
De as isDev,
|
|
175
|
+
Ae as isEmpty,
|
|
176
|
+
Ue as isEmptyArray,
|
|
177
|
+
Ee as isFunction,
|
|
178
|
+
Le as isLocal,
|
|
179
|
+
be as isLoggedIn,
|
|
180
|
+
Ie as isMobile,
|
|
181
|
+
ke as isNull,
|
|
182
|
+
Re as isNullOrUndefined,
|
|
183
|
+
Fe as isNumber,
|
|
184
|
+
Oe as isObject,
|
|
185
|
+
Te as isProd,
|
|
178
186
|
xe as isSafeEmpty,
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
187
|
+
Ne as isString,
|
|
188
|
+
Ve as isTablet,
|
|
189
|
+
Ge as isUndefined,
|
|
190
|
+
He as isValid,
|
|
191
|
+
We as isValidDate,
|
|
192
|
+
_e as isValidEmail,
|
|
193
|
+
Je as isValidUrl,
|
|
194
|
+
Ke as isValidYear,
|
|
195
|
+
qe as isValidYearMonth,
|
|
196
|
+
ze as logServiceCodeConfig,
|
|
197
|
+
Ye as messageUtils,
|
|
198
|
+
je as notiBwgError,
|
|
199
|
+
Qe as notiError,
|
|
200
|
+
Xe as notiInfo,
|
|
201
|
+
Ze as notiSuccess,
|
|
202
|
+
$e as notiWarning,
|
|
203
|
+
eo as notificationService,
|
|
204
|
+
oo as notificationUtils,
|
|
205
|
+
ro as now,
|
|
206
|
+
so as openGwDraftByAprvKey,
|
|
207
|
+
ao as padLeft,
|
|
208
|
+
to as padRight,
|
|
209
|
+
io as random,
|
|
210
|
+
no as realFormat,
|
|
211
|
+
go as removeSessionStorage,
|
|
212
|
+
lo as round,
|
|
213
|
+
uo as serviceUtils,
|
|
214
|
+
Co as setClientIp,
|
|
215
|
+
po as setCookie,
|
|
216
|
+
So as setServiceCodeOverrides,
|
|
217
|
+
co as setSessionStorage,
|
|
218
|
+
wo as showApiError,
|
|
219
|
+
Mo as showDuplicateError,
|
|
220
|
+
Bo as showError,
|
|
221
|
+
mo as showInfo,
|
|
222
|
+
fo as showLoading,
|
|
223
|
+
vo as showRequiredError,
|
|
224
|
+
Po as showSaveError,
|
|
225
|
+
ho as showSaveSuccess,
|
|
226
|
+
yo as showSuccess,
|
|
227
|
+
Do as showWarning,
|
|
228
|
+
Ao as startOf,
|
|
229
|
+
Uo as submitGwApproval,
|
|
230
|
+
Eo as throttle,
|
|
231
|
+
Lo as toCamelCase,
|
|
232
|
+
bo as uploadFilesViaSftp,
|
|
233
|
+
Gs as useAllServiceCodes,
|
|
234
|
+
Hs as useAuth,
|
|
235
|
+
Fo as useCapsLock,
|
|
236
|
+
Oo as useCode,
|
|
237
|
+
Ws as useCodeColor,
|
|
238
|
+
_s as useCodeList,
|
|
239
|
+
Js as useCodeListByOption,
|
|
240
|
+
Ks as useCodeName,
|
|
241
|
+
To as useCodeStore,
|
|
234
242
|
xo as useColorStore,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
243
|
+
qs as useCommonCode,
|
|
244
|
+
No as useFavorite,
|
|
245
|
+
Vo as useFavoriteStore,
|
|
246
|
+
zs as useGridLookup,
|
|
247
|
+
Go as useLoadingStore,
|
|
248
|
+
Ys as useLock,
|
|
249
|
+
js as useLogServiceCodeConfig,
|
|
250
|
+
Ho as useLogin,
|
|
251
|
+
Wo as useLogout,
|
|
252
|
+
_o as useMenuModel,
|
|
253
|
+
Jo as useMenuModelStore,
|
|
254
|
+
Ko as useMenuView,
|
|
255
|
+
qo as useMenuViewStore,
|
|
256
|
+
zo as useOptionStore,
|
|
257
|
+
Qs as usePopup,
|
|
258
|
+
Yo as usePopupLoadingStore,
|
|
259
|
+
jo as usePopupState,
|
|
260
|
+
Qo as usePopupStore,
|
|
261
|
+
Xs as useSearchBox,
|
|
262
|
+
Zs as useServiceCode,
|
|
263
|
+
$s as useServiceCodeValue,
|
|
264
|
+
Xo as useSystemCode,
|
|
265
|
+
Zo as useSystemStore,
|
|
266
|
+
$o as useUser,
|
|
267
|
+
er as useUserStore,
|
|
268
|
+
Io as userUtils,
|
|
269
|
+
ko as verifyClientIp
|
|
262
270
|
};
|
|
@@ -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;
|