@bwg-ui/core 1.1.25 → 1.1.27

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.
Files changed (122) hide show
  1. package/dist/chunks/common-components-CniOkOzu.js +15776 -0
  2. package/dist/chunks/common-components-DrcQahsO.cjs +183 -0
  3. package/dist/chunks/{core-Dl0PdDdT.js → core-CEDyqniq.js} +1 -2
  4. package/dist/chunks/core-lmAmbqvY.cjs +1 -0
  5. package/dist/chunks/{enc-base64-D7t4BoUA.js → enc-base64-CF2tIkYl.js} +4 -5
  6. package/dist/chunks/enc-base64-Dxq399hI.cjs +1 -0
  7. package/dist/chunks/{sha256-C2-s1oZe.js → sha256-DYurgXCU.js} +12 -13
  8. package/dist/chunks/sha256-H5WWQnKT.cjs +1 -0
  9. package/dist/components/common/BwgPagination.d.ts +1 -1
  10. package/dist/components/common/BwgPagination.d.ts.map +1 -1
  11. package/dist/components/common/index.cjs +1 -2
  12. package/dist/components/common/index.d.ts +3 -1
  13. package/dist/components/common/index.d.ts.map +1 -1
  14. package/dist/components/common/index.js +16 -17
  15. package/dist/components/core/BwgFormItem.d.ts +2 -2
  16. package/dist/components/core/BwgFormItem.d.ts.map +1 -1
  17. package/dist/components/core/BwgInput.d.ts.map +1 -1
  18. package/dist/components/core/index.cjs +1 -2
  19. package/dist/components/core/index.js +1218 -23
  20. package/dist/components/guide/index.cjs +1 -2
  21. package/dist/components/guide/index.js +3 -4
  22. package/dist/components/layout/index.cjs +35 -2
  23. package/dist/components/layout/index.js +350 -10
  24. package/dist/components/popup/MenuReport.d.ts.map +1 -1
  25. package/dist/index.cjs +1 -2
  26. package/dist/index.js +211 -222
  27. package/dist/provider/index.cjs +1 -2
  28. package/dist/provider/index.js +384 -25
  29. package/dist/stores/index.cjs +2 -2
  30. package/dist/stores/index.js +1394 -24
  31. package/dist/utils/index.cjs +1 -2
  32. package/dist/utils/index.js +1369 -200
  33. package/package.json +2 -3
  34. package/dist/chunks/AuthContext-CXng9fj0.cjs +0 -2
  35. package/dist/chunks/AuthContext-CXng9fj0.cjs.map +0 -1
  36. package/dist/chunks/AuthContext-DrEpBrpB.js +0 -57
  37. package/dist/chunks/AuthContext-DrEpBrpB.js.map +0 -1
  38. package/dist/chunks/BwgSpace-CnLM4qcg.js +0 -27
  39. package/dist/chunks/BwgSpace-CnLM4qcg.js.map +0 -1
  40. package/dist/chunks/BwgSpace-b0hmM1Ht.cjs +0 -2
  41. package/dist/chunks/BwgSpace-b0hmM1Ht.cjs.map +0 -1
  42. package/dist/chunks/BwgSwitch-DOlc57wi.cjs +0 -2
  43. package/dist/chunks/BwgSwitch-DOlc57wi.cjs.map +0 -1
  44. package/dist/chunks/BwgSwitch-D_scwi9_.js +0 -269
  45. package/dist/chunks/BwgSwitch-D_scwi9_.js.map +0 -1
  46. package/dist/chunks/BwgUploader-CkXwkcUL.cjs +0 -3
  47. package/dist/chunks/BwgUploader-CkXwkcUL.cjs.map +0 -1
  48. package/dist/chunks/BwgUploader-DBFF9BPF.js +0 -3250
  49. package/dist/chunks/BwgUploader-DBFF9BPF.js.map +0 -1
  50. package/dist/chunks/LoadingOverlay-DAZJF5wg.js +0 -19
  51. package/dist/chunks/LoadingOverlay-DAZJF5wg.js.map +0 -1
  52. package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs +0 -2
  53. package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs.map +0 -1
  54. package/dist/chunks/SSOHandler-BY6LXMLc.cjs +0 -237
  55. package/dist/chunks/SSOHandler-BY6LXMLc.cjs.map +0 -1
  56. package/dist/chunks/SSOHandler-CxvxEBaH.js +0 -28654
  57. package/dist/chunks/SSOHandler-CxvxEBaH.js.map +0 -1
  58. package/dist/chunks/ScreenProtectContext-3my4PHFa.js +0 -154
  59. package/dist/chunks/ScreenProtectContext-3my4PHFa.js.map +0 -1
  60. package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs +0 -2
  61. package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs.map +0 -1
  62. package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs +0 -2
  63. package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs.map +0 -1
  64. package/dist/chunks/SearchBoxContext-gWM7FHIw.js +0 -86
  65. package/dist/chunks/SearchBoxContext-gWM7FHIw.js.map +0 -1
  66. package/dist/chunks/ViewContainer-Bhq22_B3.cjs +0 -36
  67. package/dist/chunks/ViewContainer-Bhq22_B3.cjs.map +0 -1
  68. package/dist/chunks/ViewContainer-D9SKBnrn.js +0 -338
  69. package/dist/chunks/ViewContainer-D9SKBnrn.js.map +0 -1
  70. package/dist/chunks/apiUtils-BZ6s0_NI.cjs +0 -3
  71. package/dist/chunks/apiUtils-BZ6s0_NI.cjs.map +0 -1
  72. package/dist/chunks/apiUtils-DSwE62oG.js +0 -1450
  73. package/dist/chunks/apiUtils-DSwE62oG.js.map +0 -1
  74. package/dist/chunks/codeStore-il4-kZPe.cjs +0 -2
  75. package/dist/chunks/codeStore-il4-kZPe.cjs.map +0 -1
  76. package/dist/chunks/codeStore-vPj4Y0TK.js +0 -450
  77. package/dist/chunks/codeStore-vPj4Y0TK.js.map +0 -1
  78. package/dist/chunks/core-BHejg5iS.cjs +0 -2
  79. package/dist/chunks/core-BHejg5iS.cjs.map +0 -1
  80. package/dist/chunks/core-Dl0PdDdT.js.map +0 -1
  81. package/dist/chunks/enc-base64-BkBtNBQV.cjs +0 -2
  82. package/dist/chunks/enc-base64-BkBtNBQV.cjs.map +0 -1
  83. package/dist/chunks/enc-base64-D7t4BoUA.js.map +0 -1
  84. package/dist/chunks/favoriteStore-Bh1FuZm9.js +0 -439
  85. package/dist/chunks/favoriteStore-Bh1FuZm9.js.map +0 -1
  86. package/dist/chunks/favoriteStore-CcKg_nEH.cjs +0 -2
  87. package/dist/chunks/favoriteStore-CcKg_nEH.cjs.map +0 -1
  88. package/dist/chunks/jsx-runtime-CeSfJrVB.cjs +0 -31
  89. package/dist/chunks/jsx-runtime-CeSfJrVB.cjs.map +0 -1
  90. package/dist/chunks/jsx-runtime-Dpn_P65e.js +0 -634
  91. package/dist/chunks/jsx-runtime-Dpn_P65e.js.map +0 -1
  92. package/dist/chunks/popupStore-BRRmB4zH.js +0 -92
  93. package/dist/chunks/popupStore-BRRmB4zH.js.map +0 -1
  94. package/dist/chunks/popupStore-DUApUBF2.cjs +0 -2
  95. package/dist/chunks/popupStore-DUApUBF2.cjs.map +0 -1
  96. package/dist/chunks/realFormat-Cha7OTd9.cjs +0 -2
  97. package/dist/chunks/realFormat-Cha7OTd9.cjs.map +0 -1
  98. package/dist/chunks/realFormat-DRGLFabQ.js +0 -305
  99. package/dist/chunks/realFormat-DRGLFabQ.js.map +0 -1
  100. package/dist/chunks/sha256-C2-s1oZe.js.map +0 -1
  101. package/dist/chunks/sha256-DiIRoCQ8.cjs +0 -2
  102. package/dist/chunks/sha256-DiIRoCQ8.cjs.map +0 -1
  103. package/dist/chunks/usePopup-D2JEuDrO.cjs +0 -2
  104. package/dist/chunks/usePopup-D2JEuDrO.cjs.map +0 -1
  105. package/dist/chunks/usePopup-DarKTbRC.js +0 -109
  106. package/dist/chunks/usePopup-DarKTbRC.js.map +0 -1
  107. package/dist/components/common/index.cjs.map +0 -1
  108. package/dist/components/common/index.js.map +0 -1
  109. package/dist/components/core/index.cjs.map +0 -1
  110. package/dist/components/core/index.js.map +0 -1
  111. package/dist/components/guide/index.cjs.map +0 -1
  112. package/dist/components/guide/index.js.map +0 -1
  113. package/dist/components/layout/index.cjs.map +0 -1
  114. package/dist/components/layout/index.js.map +0 -1
  115. package/dist/index.cjs.map +0 -1
  116. package/dist/index.js.map +0 -1
  117. package/dist/provider/index.cjs.map +0 -1
  118. package/dist/provider/index.js.map +0 -1
  119. package/dist/stores/index.cjs.map +0 -1
  120. package/dist/stores/index.js.map +0 -1
  121. package/dist/utils/index.cjs.map +0 -1
  122. package/dist/utils/index.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,224 +1,213 @@
1
- import { apiUtils as s, bwgUtils as o, closeAllMessages as r, closeMessage as t, commonUtils as i, downloadByFileKey as g, downloadFile as n, envUtils as l, fileUtils as u, messageUtils as d, notificationUtils as c, serviceUtils as p, showApiError as w, showDuplicateError as S, showError as C, showInfo as B, showLoading as m, showRequiredError as f, showSaveError as v, showSaveSuccess as h, showSuccess as P, showWarning as x, userUtils as U } from "./utils/index.js";
2
- import { useCode as y, useFavorite as b, useMenuModel as D, useMenuView as L, usePopupState as A, useUser as k } from "./stores/index.js";
3
- import { B as M, a as R, b as N, c as O, d as F, e as T, f as G, g as V, h as j, i as q, j as H, k as _, l as K, m as Q, n as W, C as z, o as Y, G as J, Q as X, p as Z, S as $, q as aa } from "./chunks/SSOHandler-CxvxEBaH.js";
4
- import { B as sa } from "./chunks/BwgSpace-CnLM4qcg.js";
5
- import { r as ra } from "./chunks/realFormat-DRGLFabQ.js";
6
- import { B as ia, a as ga, b as na, c as la, d as ua, e as da, f as ca, g as pa, h as wa, i as Sa, j as Ca, k as Ba } from "./chunks/BwgUploader-DBFF9BPF.js";
7
- import { B as fa, a as va, b as ha, c as Pa, d as xa, e as Ua, f as Ea, g as ya } from "./chunks/BwgSwitch-D_scwi9_.js";
8
- import { L as Da } from "./chunks/LoadingOverlay-DAZJF5wg.js";
9
- import { E as Aa, P as ka, a as Ia, b as Ma, c as Ra, V as Na } from "./chunks/ViewContainer-D9SKBnrn.js";
10
- import { A as Fa, T as Ta, f as Ga, b as Va, h as ja, d as qa, e as Ha, H as _a, J as Ka, F as Qa, G as Wa, K as za, I as Ya, E as Ja, c as Xa, a as Za, N as $a, S as ae, aj as ee, a8 as se, w as oe, u as re, W as te, ai as ie, L as ge, a4 as ne, C as le, a2 as ue, a3 as de, am as ce, g as pe, V as we, ao as Se, a5 as Ce, a6 as Be, aD as me, x as fe, aC as ve, at as he, au as Pe, as as xe, ab as Ue, i as Ee, av as ye, al as be, Q as De, ar as Le, ap as Ae, aA as ke, aq as Ie, ay as Me, ax as Re, aw as Ne, aB as Oe, o as Fe, l as Te, B as Ge, a9 as Ve, X as je, D as qe, m as He, a7 as _e, az as Ke, y as Qe, p as We, r as ze, k as Ye, n as Je, aa as Xe, Y as Ze, j as $e, z as as, q as es, _ as ss, $ as os, an as rs, ad as ts, ah as is, af as gs, ae as ns, ag as ls, ac as us, a0 as ds, a1 as cs, M as ps, R as ws, O as Ss, s as Cs, U as Bs, ak as ms, P as fs, t as vs, Z as hs, aE as Ps, aG as xs, aH as Us, aF as Es, aI as ys, v as bs } from "./chunks/apiUtils-DSwE62oG.js";
11
- import { u as Ls, a as As, b as ks } from "./chunks/codeStore-vPj4Y0TK.js";
12
- import { u as Ms } from "./chunks/favoriteStore-Bh1FuZm9.js";
13
- import { u as Ns } from "./chunks/popupStore-BRRmB4zH.js";
14
- import { A as Fs, u as Ts } from "./chunks/AuthContext-DrEpBrpB.js";
15
- import { C as Vs, c as js, a as qs, d as Hs, b as _s, u as Ks, e as Qs, g as Ws, f as zs } from "./chunks/usePopup-DarKTbRC.js";
16
- import { S as Js, u as Xs } from "./chunks/ScreenProtectContext-3my4PHFa.js";
17
- import { S as $s, a as ao, d as eo, e as so, u as oo, b as ro, c as to } from "./chunks/SearchBoxContext-gWM7FHIw.js";
1
+ import { ApiError as r, THEME_COOKIE_NAME as s, apiDelete as t, apiGet as i, apiPatch as a, apiPost as n, apiPut as g, apiUtils as l, arrAverage as u, arrCount as d, arrMax as c, arrMin as w, arrReverse as p, arrSum as S, arrUnique as C, bwgUtils as B, callService as v, callService_SYSCD as m, clamp as f, clearSessionStorage as h, closeAllMessages as P, closeMessage as U, closeNotification as y, commonUtils as E, configureEnvUtils as D, copyToClipboard as L, debounce as A, deleteCookie as I, destroyNotifications as M, downloadByFileKey as k, downloadFile as x, duplicates as b, encryptSha256 as R, envUtils as N, fileUtils as O, generateRandomColor as T, generateRandomString as F, generateUID as G, getAllServiceCodes as V, getClientIp as q, getCookie as _, getCrprCd as j, getCurrentDate as H, getCurrentDateString as K, getDepartmentInfo as Q, getDeviceType as W, getDisplayName as Y, getDprtCd as z, getDprtNm as J, getEmplNo as X, getEnvCode as Z, getPermissionService as $, getRoleList as ee, getServiceCode as oe, getSessionStorage as re, getUserDvsn as se, getUserId as te, getUserInfo as ie, getUserNm as ae, hasAllRoles as ne, hasAnyRole as ge, hasRole as le, hasUserInfo as ue, isArray as de, isBoolean as ce, isDesktop as we, isDev as pe, isEmpty as Se, isEmptyArray as Ce, isFunction as Be, isLocal as ve, isLoggedIn as me, isMobile as fe, isNull as he, isNullOrUndefined as Pe, isNumber as Ue, isObject as ye, isProd as Ee, isSafeEmpty as De, isString as Le, isTablet as Ae, isUndefined as Ie, isValidEmail as Me, isValidUrl as ke, logServiceCodeConfig as xe, messageUtils as be, notiBwgError as Re, notiError as Ne, notiInfo as Oe, notiSuccess as Te, notiWarning as Fe, notificationService as Ge, notificationUtils as Ve, padLeft as qe, padRight as _e, random as je, realFormat as He, removeSessionStorage as Ke, round as Qe, serviceUtils as We, setClientIp as Ye, setCookie as ze, setServiceCodeOverrides as Je, setSessionStorage as Xe, showApiError as Ze, showDuplicateError as $e, showError as eo, showInfo as oo, showLoading as ro, showRequiredError as so, showSaveError as to, showSaveSuccess as io, showSuccess as ao, showWarning as no, throttle as go, toCamelCase as lo, userUtils as uo, verifyClientIp as co } from "./utils/index.js";
2
+ import { useCode as po, useCodeStore as So, useColorStore as Co, useFavorite as Bo, useFavoriteStore as vo, useLoadingStore as mo, useMenuModel as fo, useMenuModelStore as ho, useMenuView as Po, useMenuViewStore as Uo, useOptionStore as yo, usePopupLoadingStore as Eo, usePopupState as Do, usePopupStore as Lo, useUser as Ao, useUserStore as Io } from "./stores/index.js";
3
+ import { b as ko, d as xo, e as bo, f as Ro, h as No, i as Oo, j as To, k as Fo, l as Go, m as Vo, n as qo, o as _o, B as jo, p as Ho, q as Ko, r as Qo, s as Wo, C as Yo, t as zo, G as Jo, Q as Xo, u as Zo, S as $o, v as er } from "./chunks/common-components-CniOkOzu.js";
4
+ import { BwgButton as rr, BwgCheck as sr, BwgCheckList as tr, BwgDatePicker as ir, BwgDownload as ar, BwgForm as nr, BwgFormItem as gr, BwgInput as lr, BwgLargeUploader as ur, BwgMaskedInput as dr, BwgMaskedPicker as cr, BwgMultiSelect as wr, BwgNumber as pr, BwgRadio as Sr, BwgRangePicker as Cr, BwgSearch as Br, BwgSelect as vr, BwgSwitch as mr, BwgTextArea as fr, BwgUploader as hr } from "./components/core/index.js";
5
+ import { ErrorBound as Ur, LoadingOverlay as yr, PrivateProtectedOverlay as Er, ProgressOverlay as Dr, ProtectedLayout as Lr, PublicLayout as Ar, ViewContainer as Ir } from "./components/layout/index.js";
6
+ import { AuthProvider as kr, CommonCodeProvider as xr, ScreenProtectProvider as br, SearchBoxProvider as Rr, ServiceCodeProvider as Nr, useAllServiceCodes as Or, useAuth as Tr, useCodeColor as Fr, useCodeList as Gr, useCodeListByOption as Vr, useCodeName as qr, useCommonCode as _r, useGridLookup as jr, useLock as Hr, useLogServiceCodeConfig as Kr, usePopup as Qr, usePopupContext as Wr, useSearchBox as Yr, useServiceCode as zr, useServiceCodeValue as Jr } from "./provider/index.js";
18
7
  export {
19
- Fa as ApiError,
20
- Fs as AuthProvider,
21
- ia as BwgButton,
22
- M as BwgButtonGroup,
23
- fa as BwgCheck,
24
- ga as BwgCheckList,
25
- R as BwgCmptArea,
26
- N as BwgCol,
27
- O as BwgConfigProvider,
28
- va as BwgDatePicker,
29
- F as BwgDetail,
30
- na as BwgDownload,
31
- T as BwgDrawer,
32
- G as BwgEditor,
33
- ha as BwgForm,
34
- Pa as BwgFormItem,
35
- V as BwgGrid,
36
- j as BwgInfoArea,
37
- xa as BwgInput,
38
- la as BwgLargeUploader,
39
- ua as BwgMaskedInput,
40
- da as BwgMaskedPicker,
41
- ca as BwgMultiSelect,
42
- pa as BwgNumber,
43
- q as BwgPopup,
44
- wa as BwgRadio,
45
- Ua as BwgRangePicker,
46
- H as BwgRow,
47
- Sa as BwgSearch,
48
- Ea as BwgSelect,
49
- sa as BwgSpace,
50
- ya as BwgSwitch,
51
- _ as BwgTable,
52
- K as BwgTabs,
53
- Ca as BwgTextArea,
54
- Q as BwgTitleBox,
55
- Ba as BwgUploader,
56
- W as BwgView,
57
- Vs as CommonCodeProvider,
58
- z as ContentBox,
59
- Y as ContentLayOut,
60
- Aa as ErrorBound,
61
- J as GlobalConfigProvider,
62
- Da as LoadingOverlay,
63
- ka as PrivateProtectedOverlay,
64
- Ia as ProgressOverlay,
65
- Ma as ProtectedLayout,
66
- Ra as PublicLayout,
67
- X as QuickServiceToggle,
68
- Z as SSOHandler,
69
- Js as ScreenProtectProvider,
70
- $ as SearchBox,
71
- $s as SearchBoxProvider,
72
- ao as ServiceCodeProvider,
73
- Ta as THEME_COOKIE_NAME,
74
- Na as ViewContainer,
75
- Ga as apiDelete,
76
- Va as apiGet,
77
- ja as apiPatch,
78
- qa as apiPost,
79
- Ha as apiPut,
80
- s as apiUtils,
81
- _a as arrAverage,
82
- Ka as arrCount,
83
- Qa as arrMax,
84
- Wa as arrMin,
85
- za as arrReverse,
86
- Ya as arrSum,
87
- Ja as arrUnique,
88
- o as bwgUtils,
89
- Xa as callService,
90
- Za as callService_SYSCD,
91
- $a as clamp,
92
- ae as clearSessionStorage,
93
- r as closeAllMessages,
94
- t as closeMessage,
95
- ee as closeNotification,
96
- i as commonUtils,
97
- se as configureEnvUtils,
98
- oe as copyToClipboard,
99
- aa as createBwgGridRenderer,
100
- re as debounce,
101
- te as deleteCookie,
102
- ie as destroyNotifications,
103
- g as downloadByFileKey,
104
- n as downloadFile,
105
- ge as duplicates,
106
- ne as encryptSha256,
107
- l as envUtils,
108
- u as fileUtils,
109
- le as generateRandomColor,
110
- ue as generateRandomString,
111
- de as generateUID,
112
- ce as getAllServiceCodes,
113
- pe as getClientIp,
114
- we as getCookie,
115
- Se as getCrprCd,
116
- Ce as getCurrentDate,
117
- Be as getCurrentDateString,
118
- me as getDepartmentInfo,
119
- fe as getDeviceType,
120
- ve as getDisplayName,
121
- he as getDprtCd,
122
- Pe as getDprtNm,
123
- xe as getEmplNo,
124
- Ue as getEnvCode,
125
- Ee as getPermissionService,
126
- ye as getRoleList,
127
- be as getServiceCode,
128
- De as getSessionStorage,
129
- Le as getUserDvsn,
130
- Ae as getUserId,
131
- ke as getUserInfo,
132
- Ie as getUserNm,
133
- Me as hasAllRoles,
134
- Re as hasAnyRole,
135
- Ne as hasRole,
136
- Oe as hasUserInfo,
137
- Fe as isArray,
138
- Te as isBoolean,
139
- Ge as isDesktop,
140
- Ve as isDev,
141
- je as isEmpty,
142
- qe as isEmptyArray,
143
- He as isFunction,
144
- _e as isLocal,
145
- Ke as isLoggedIn,
146
- Qe as isMobile,
147
- We as isNull,
148
- ze as isNullOrUndefined,
149
- Ye as isNumber,
150
- Je as isObject,
151
- Xe as isProd,
152
- Ze as isSafeEmpty,
153
- $e as isString,
154
- as as isTablet,
155
- es as isUndefined,
156
- ss as isValidEmail,
157
- os as isValidUrl,
158
- rs as logServiceCodeConfig,
159
- d as messageUtils,
160
- ts as notiBwgError,
161
- is as notiError,
162
- gs as notiInfo,
163
- ns as notiSuccess,
164
- ls as notiWarning,
165
- us as notificationService,
166
- c as notificationUtils,
167
- ds as padLeft,
168
- cs as padRight,
169
- ps as random,
170
- ra as realFormat,
171
- ws as removeSessionStorage,
172
- Ss as round,
173
- p as serviceUtils,
174
- Cs as setClientIp,
175
- Bs as setCookie,
176
- ms as setServiceCodeOverrides,
177
- fs as setSessionStorage,
178
- w as showApiError,
179
- S as showDuplicateError,
180
- C as showError,
181
- B as showInfo,
182
- m as showLoading,
183
- f as showRequiredError,
184
- v as showSaveError,
185
- h as showSaveSuccess,
186
- P as showSuccess,
187
- x as showWarning,
188
- vs as throttle,
189
- hs as toCamelCase,
190
- eo as useAllServiceCodes,
191
- Ts as useAuth,
192
- y as useCode,
193
- js as useCodeColor,
194
- qs as useCodeList,
195
- Hs as useCodeListByOption,
196
- _s as useCodeName,
197
- Ls as useCodeStore,
198
- As as useColorStore,
199
- Ks as useCommonCode,
200
- b as useFavorite,
201
- Ms as useFavoriteStore,
202
- Qs as useGridLookup,
203
- Ps as useLoadingStore,
204
- Xs as useLock,
205
- so as useLogServiceCodeConfig,
206
- D as useMenuModel,
207
- xs as useMenuModelStore,
208
- L as useMenuView,
209
- Us as useMenuViewStore,
210
- ks as useOptionStore,
211
- Ws as usePopup,
212
- zs as usePopupContext,
213
- Es as usePopupLoadingStore,
214
- A as usePopupState,
215
- Ns as usePopupStore,
216
- oo as useSearchBox,
217
- ro as useServiceCode,
218
- to as useServiceCodeValue,
219
- k as useUser,
220
- ys as useUserStore,
221
- U as userUtils,
222
- bs as verifyClientIp
8
+ r as ApiError,
9
+ kr as AuthProvider,
10
+ rr as BwgButton,
11
+ ko as BwgButtonGroup,
12
+ sr as BwgCheck,
13
+ tr as BwgCheckList,
14
+ xo as BwgCmptArea,
15
+ bo as BwgCol,
16
+ Ro as BwgConfigProvider,
17
+ ir as BwgDatePicker,
18
+ No as BwgDetail,
19
+ ar as BwgDownload,
20
+ Oo as BwgDrawer,
21
+ To as BwgEditor,
22
+ nr as BwgForm,
23
+ gr as BwgFormItem,
24
+ Fo as BwgGrid,
25
+ Go as BwgInfoArea,
26
+ lr as BwgInput,
27
+ ur as BwgLargeUploader,
28
+ dr as BwgMaskedInput,
29
+ cr as BwgMaskedPicker,
30
+ wr as BwgMultiSelect,
31
+ pr as BwgNumber,
32
+ Vo as BwgPagination,
33
+ qo as BwgPopup,
34
+ Sr as BwgRadio,
35
+ Cr as BwgRangePicker,
36
+ _o as BwgRow,
37
+ Br as BwgSearch,
38
+ vr as BwgSelect,
39
+ jo as BwgSpace,
40
+ mr as BwgSwitch,
41
+ Ho as BwgTable,
42
+ Ko as BwgTabs,
43
+ fr as BwgTextArea,
44
+ Qo as BwgTitleBox,
45
+ hr as BwgUploader,
46
+ Wo as BwgView,
47
+ xr as CommonCodeProvider,
48
+ Yo as ContentBox,
49
+ zo as ContentLayOut,
50
+ Ur as ErrorBound,
51
+ Jo as GlobalConfigProvider,
52
+ yr as LoadingOverlay,
53
+ Er as PrivateProtectedOverlay,
54
+ Dr as ProgressOverlay,
55
+ Lr as ProtectedLayout,
56
+ Ar as PublicLayout,
57
+ Xo as QuickServiceToggle,
58
+ Zo as SSOHandler,
59
+ br as ScreenProtectProvider,
60
+ $o as SearchBox,
61
+ Rr as SearchBoxProvider,
62
+ Nr as ServiceCodeProvider,
63
+ s as THEME_COOKIE_NAME,
64
+ Ir as ViewContainer,
65
+ t as apiDelete,
66
+ i as apiGet,
67
+ a as apiPatch,
68
+ n as apiPost,
69
+ g as apiPut,
70
+ l as apiUtils,
71
+ u as arrAverage,
72
+ d as arrCount,
73
+ c as arrMax,
74
+ w as arrMin,
75
+ p as arrReverse,
76
+ S as arrSum,
77
+ C as arrUnique,
78
+ B as bwgUtils,
79
+ v as callService,
80
+ m as callService_SYSCD,
81
+ f as clamp,
82
+ h as clearSessionStorage,
83
+ P as closeAllMessages,
84
+ U as closeMessage,
85
+ y as closeNotification,
86
+ E as commonUtils,
87
+ D as configureEnvUtils,
88
+ L as copyToClipboard,
89
+ er as createBwgGridRenderer,
90
+ A as debounce,
91
+ I as deleteCookie,
92
+ M as destroyNotifications,
93
+ k as downloadByFileKey,
94
+ x as downloadFile,
95
+ b as duplicates,
96
+ R as encryptSha256,
97
+ N as envUtils,
98
+ O as fileUtils,
99
+ T as generateRandomColor,
100
+ F as generateRandomString,
101
+ G as generateUID,
102
+ V as getAllServiceCodes,
103
+ q as getClientIp,
104
+ _ as getCookie,
105
+ j as getCrprCd,
106
+ H as getCurrentDate,
107
+ K as getCurrentDateString,
108
+ Q as getDepartmentInfo,
109
+ W as getDeviceType,
110
+ Y as getDisplayName,
111
+ z as getDprtCd,
112
+ J as getDprtNm,
113
+ X as getEmplNo,
114
+ Z as getEnvCode,
115
+ $ as getPermissionService,
116
+ ee as getRoleList,
117
+ oe as getServiceCode,
118
+ re as getSessionStorage,
119
+ se as getUserDvsn,
120
+ te as getUserId,
121
+ ie as getUserInfo,
122
+ ae as getUserNm,
123
+ ne as hasAllRoles,
124
+ ge as hasAnyRole,
125
+ le as hasRole,
126
+ ue as hasUserInfo,
127
+ de as isArray,
128
+ ce as isBoolean,
129
+ we as isDesktop,
130
+ pe as isDev,
131
+ Se as isEmpty,
132
+ Ce as isEmptyArray,
133
+ Be as isFunction,
134
+ ve as isLocal,
135
+ me as isLoggedIn,
136
+ fe as isMobile,
137
+ he as isNull,
138
+ Pe as isNullOrUndefined,
139
+ Ue as isNumber,
140
+ ye as isObject,
141
+ Ee as isProd,
142
+ De as isSafeEmpty,
143
+ Le as isString,
144
+ Ae as isTablet,
145
+ Ie as isUndefined,
146
+ Me as isValidEmail,
147
+ ke as isValidUrl,
148
+ xe as logServiceCodeConfig,
149
+ be as messageUtils,
150
+ Re as notiBwgError,
151
+ Ne as notiError,
152
+ Oe as notiInfo,
153
+ Te as notiSuccess,
154
+ Fe as notiWarning,
155
+ Ge as notificationService,
156
+ Ve as notificationUtils,
157
+ qe as padLeft,
158
+ _e as padRight,
159
+ je as random,
160
+ He as realFormat,
161
+ Ke as removeSessionStorage,
162
+ Qe as round,
163
+ We as serviceUtils,
164
+ Ye as setClientIp,
165
+ ze as setCookie,
166
+ Je as setServiceCodeOverrides,
167
+ Xe as setSessionStorage,
168
+ Ze as showApiError,
169
+ $e as showDuplicateError,
170
+ eo as showError,
171
+ oo as showInfo,
172
+ ro as showLoading,
173
+ so as showRequiredError,
174
+ to as showSaveError,
175
+ io as showSaveSuccess,
176
+ ao as showSuccess,
177
+ no as showWarning,
178
+ go as throttle,
179
+ lo as toCamelCase,
180
+ Or as useAllServiceCodes,
181
+ Tr as useAuth,
182
+ po as useCode,
183
+ Fr as useCodeColor,
184
+ Gr as useCodeList,
185
+ Vr as useCodeListByOption,
186
+ qr as useCodeName,
187
+ So as useCodeStore,
188
+ Co as useColorStore,
189
+ _r as useCommonCode,
190
+ Bo as useFavorite,
191
+ vo as useFavoriteStore,
192
+ jr as useGridLookup,
193
+ mo as useLoadingStore,
194
+ Hr as useLock,
195
+ Kr as useLogServiceCodeConfig,
196
+ fo as useMenuModel,
197
+ ho as useMenuModelStore,
198
+ Po as useMenuView,
199
+ Uo as useMenuViewStore,
200
+ yo as useOptionStore,
201
+ Qr as usePopup,
202
+ Wr as usePopupContext,
203
+ Eo as usePopupLoadingStore,
204
+ Do as usePopupState,
205
+ Lo as usePopupStore,
206
+ Yr as useSearchBox,
207
+ zr as useServiceCode,
208
+ Jr as useServiceCodeValue,
209
+ Ao as useUser,
210
+ Io as useUserStore,
211
+ uo as userUtils,
212
+ co as verifyClientIp
223
213
  };
224
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/usePopup-D2JEuDrO.cjs"),r=require("../chunks/AuthContext-CXng9fj0.cjs"),u=require("../chunks/ScreenProtectContext-CVuXrJm6.cjs"),o=require("../chunks/SearchBoxContext-DwFDOyYG.cjs");exports.CommonCodeProvider=e.CommonCodeProvider;exports.useCodeColor=e.useCodeColor;exports.useCodeList=e.useCodeList;exports.useCodeListByOption=e.useCodeListByOption;exports.useCodeName=e.useCodeName;exports.useCommonCode=e.useCommonCode;exports.useGridLookup=e.useGridLookup;exports.usePopup=e.usePopup;exports.usePopupContext=e.usePopupContext;exports.AuthProvider=r.AuthProvider;exports.useAuth=r.useAuth;exports.ScreenProtectProvider=u.ScreenProtectProvider;exports.useLock=u.useLock;exports.SearchBoxProvider=o.SearchBoxProvider;exports.ServiceCodeProvider=o.ServiceCodeProvider;exports.useAllServiceCodes=o.useAllServiceCodes;exports.useLogServiceCodeConfig=o.useLogServiceCodeConfig;exports.useSearchBox=o.useSearchBox;exports.useServiceCode=o.useServiceCode;exports.useServiceCodeValue=o.useServiceCodeValue;
2
- //# sourceMappingURL=index.cjs.map
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"),E={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 s={serviceCodes:t,getServiceCode:r=>{if(t[r]&&t[r].trim()!=="")return console.log(`🔧 Provider 설정 사용: ${r} = ${t[r]}`),t[r];const c=E[r];return console.log(`🔧 기본값 사용: ${r} = ${c}`),c}};return l.jsx(B.Provider,{value:s,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(E))t[o]=e(o);return t},$=()=>{const{getServiceCode:e}=y();console.log("🔧 bwg-core 서비스코드 설정:"),console.log("📋 Provider 설정 > 기본값 순서로 확인");for(const t of Object.keys(E)){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},I=n.createContext(null),W=()=>{const e=n.useContext(I);if(!e)throw new Error("useAuth must be used within AuthProvider");return e},z=({children:e})=>{const[t,o]=n.useState(!1),[s,r]=n.useState(!1),c=async i=>{const u=(await i.text()).trim().toLowerCase();try{const d=JSON.parse(u);if(typeof d=="object"&&d&&(d.ok===!0||d.success===!0))return!0}catch{}return!!["true","ok","1","y"].includes(u)},C=async i=>{r(!0);try{const u=await fetch("/serviceEndpoint/sso_check.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"token="+encodeURIComponent(i)}),d=u.ok&&await c(u);return o(d),d}catch{return!1}finally{r(!1)}},a=async i=>{r(!0);try{const u=await fetch("/serviceEndpoint/sso_reauth.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"pin="+encodeURIComponent(i)});return u.ok&&await c(u)?(o(!0),!0):!1}catch{return!1}finally{r(!1)}},m=()=>{o(!1)},h=n.useMemo(()=>({authed:t,busy:s,verifyWithToken:C,reauthWithPin:a,logout:m}),[t,s]);return l.jsx(I.Provider,{value:h,children:e})},F=n.createContext(null),J=()=>{const e=n.useContext(F);if(!e)throw new Error("useLock must be used within ScreenProtectProvider");return e},Q=({children:e,idleMs:t=1e4,onUnlock:o,persistLocked:s=!0,storageKey:r="inactivityLocked",eventTarget:c,overlayScope:C="global",overlayId:a="lock-overlay-root",overlayPosition:m="fixed"})=>{const h=s&&typeof window<"u"&&window.localStorage.getItem(r)==="1",[i,u]=n.useState(h),[d,k]=n.useState(t),P=Number.isFinite(d)&&d>0,w=n.useRef(null),T=()=>{try{s&&window.localStorage.setItem(r,"1")}catch{}u(!0)},b=async v=>{if(!(o&&!await o(v))){try{s&&window.localStorage.removeItem(r)}catch{}u(!1),P&&L()}},R=()=>{try{s&&window.localStorage.setItem(r,"1")}catch{}u(!0)},L=()=>{P&&(w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{R()},d))};n.useEffect(()=>{if(!P)return;const v=()=>{i||L()},x={passive:!0},S=["pointermove","pointerdown","keydown","wheel","touchstart"],g=c??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,i,c,P]),n.useEffect(()=>{if(!i)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"?c??window:window;return S.forEach(p=>g.addEventListener(p,v,x)),()=>S.forEach(p=>g.removeEventListener(p,v,x))},[i,C,a,c]);const D=n.useMemo(()=>({locked:i,lock:T,unlock:b,setIdleMs:k}),[i]);return l.jsxs(F.Provider,{value:D,children:[l.jsx("div",{style:{width:"100%",height:"100%"},...i?{inert:""}:{},...i?{"aria-hidden":!0}:{},children:e}),i&&l.jsx(X,{onUnlock:b,overlayId:a,overlayPosition:m})]})},X=({onUnlock:e,overlayId:t="lock-overlay-root",overlayPosition:o="fixed"})=>{const[s]=n.useState(4),[r,c]=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:s,value:r,onChange:C=>{const a=(C??"").replace(/\D/g,"").slice(0,s);c(a),a.length===s&&e(a)}})})]})})},N=n.createContext(void 0),Y=({children:e})=>{const{codeData:t,isLoading:o,error:s,lastUpdated:r,getCodeList:c,getCodeListByOption:C,getCodeName:a,getCodeColor:m,getCodeByOption:h,getAvailableGroupCodes:i,getGridLookup:u,fetchCommonCodes:d}=O.useCodeStore(),k={codeData:t,isLoading:o,error:s,lastUpdated:r,getCodeList:c,getCodeListByOption:C,getCodeName:a,getCodeColor:m,getCodeByOption:h,getAvailableGroupCodes:i,getGridLookup:u,refreshCodes:d};return l.jsx(N.Provider,{value:k,children:e})},f=()=>{const e=n.useContext(N);if(e===void 0)throw new Error("useCommonCode must be used within a CommonCodeProvider");return e},Z=()=>{const{getCodeList:e,isLoading:t,error:o}=f();return{getCodeList:e,isLoading:t,error:o}},K=()=>{const{getCodeName:e,isLoading:t,error:o}=f();return{getCodeName:e,isLoading:t,error:o}},ee=()=>{const{getCodeColor:e,isLoading:t,error:o}=f();return{getCodeColor:e,isLoading:t,error:o}},te=()=>{const{getCodeListByOption:e,isLoading:t,error:o}=f();return{getCodeListByOption:e,isLoading:t,error:o}},oe=()=>{const{getGridLookup:e,isLoading:t,error:o}=f();return{getGridLookup:e,isLoading:t,error:o}},re=()=>!1,ne=()=>{const{popups:e,activePopupId:t,setActivePopup:o,closePopup:s,openPopup:r}=O.usePopupStore(),c=n.useCallback(async(C,a,m)=>{try{await r(C,a,m)}catch(h){throw console.error("팝업 열기 실패:",h),h}},[r]);return{popups:e,activePopupId:t,setActivePopup:o,closePopup:s,showPopup:c,isPopup:e.length>0}};exports.AuthProvider=z;exports.CommonCodeProvider=Y;exports.ScreenProtectProvider=Q;exports.SearchBoxProvider=q;exports.ServiceCodeProvider=_;exports.useAllServiceCodes=V;exports.useAuth=W;exports.useCodeColor=ee;exports.useCodeList=Z;exports.useCodeListByOption=te;exports.useCodeName=K;exports.useCommonCode=f;exports.useGridLookup=oe;exports.useLock=J;exports.useLogServiceCodeConfig=$;exports.usePopup=ne;exports.usePopupContext=re;exports.useSearchBox=H;exports.useServiceCode=y;exports.useServiceCodeValue=G;