@bwg-ui/core 1.2.5 → 1.2.7
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/{common-components-CnAjT_Gi.js → common-components-BiUtYMIt.js} +7287 -5555
- package/dist/chunks/common-components-DyOLtUJx.cjs +183 -0
- package/dist/chunks/{core-MOICJvq5.cjs → core-CF_HWm44.cjs} +1 -1
- package/dist/chunks/{core-C5T-8H8j.js → core-Cb5dF0QU.js} +13 -13
- package/dist/chunks/{enc-base64-8MLFBYmR.cjs → enc-base64-CAxIzedh.cjs} +1 -1
- package/dist/chunks/{enc-base64-Ciw6cw8D.js → enc-base64-Dy-3zKzn.js} +2 -2
- package/dist/chunks/{sha256-CsieizMm.js → sha256-DKma8qua.js} +2 -2
- package/dist/chunks/{sha256-CpH38gS4.cjs → sha256-DbQnwvPn.cjs} +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +8 -8
- 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/popup/SearchDepartmentP01.d.ts +21 -1
- package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP02.d.ts +21 -1
- package/dist/components/popup/SearchDepartmentP02.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts +36 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP02.d.ts +36 -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 +4 -0
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +5 -1738
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +120 -117
- package/dist/provider/hooks/usePopup.d.ts +0 -5
- package/dist/provider/hooks/usePopup.d.ts.map +1 -1
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +60 -61
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunks/common-components-Bhr_MU0K.cjs +0 -183
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils/index.cjs"),t=require("./stores/index.cjs"),o=require("./chunks/common-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils/index.cjs"),t=require("./stores/index.cjs"),o=require("./chunks/common-components-DyOLtUJx.cjs"),r=require("./components/core/index.cjs"),s=require("./components/layout/index.cjs"),i=require("./provider/index.cjs");exports.ApiError=e.ApiError;exports.THEME_COOKIE_NAME=e.THEME_COOKIE_NAME;exports.apiDelete=e.apiDelete;exports.apiGet=e.apiGet;exports.apiPatch=e.apiPatch;exports.apiPost=e.apiPost;exports.apiPut=e.apiPut;exports.apiUtils=e.apiUtils;exports.arrAverage=e.arrAverage;exports.arrCount=e.arrCount;exports.arrMax=e.arrMax;exports.arrMin=e.arrMin;exports.arrReverse=e.arrReverse;exports.arrSum=e.arrSum;exports.arrUnique=e.arrUnique;exports.bwgUtils=e.bwgUtils;exports.callService=e.callService;exports.callService_SYSCD=e.callService_SYSCD;exports.clamp=e.clamp;exports.clearSessionStorage=e.clearSessionStorage;exports.closeAllMessages=e.closeAllMessages;exports.closeMessage=e.closeMessage;exports.closeNotification=e.closeNotification;exports.commonUtils=e.commonUtils;exports.configureEnvUtils=e.configureEnvUtils;exports.copyToClipboard=e.copyToClipboard;exports.debounce=e.debounce;exports.deleteCookie=e.deleteCookie;exports.destroyNotifications=e.destroyNotifications;exports.downloadByFileKey=e.downloadByFileKey;exports.downloadFile=e.downloadFile;exports.duplicates=e.duplicates;exports.encryptSha256=e.encryptSha256;exports.envUtils=e.envUtils;exports.fileUtils=e.fileUtils;exports.generateRandomColor=e.generateRandomColor;exports.generateRandomString=e.generateRandomString;exports.generateUID=e.generateUID;exports.getAllServiceCodes=e.getAllServiceCodes;exports.getClientIp=e.getClientIp;exports.getCookie=e.getCookie;exports.getCrprCd=e.getCrprCd;exports.getCurrentDate=e.getCurrentDate;exports.getCurrentDateString=e.getCurrentDateString;exports.getDepartmentInfo=e.getDepartmentInfo;exports.getDeviceType=e.getDeviceType;exports.getDisplayName=e.getDisplayName;exports.getDprtCd=e.getDprtCd;exports.getDprtNm=e.getDprtNm;exports.getEmplNo=e.getEmplNo;exports.getEnvCode=e.getEnvCode;exports.getPermissionService=e.getPermissionService;exports.getRoleList=e.getRoleList;exports.getServiceCode=e.getServiceCode;exports.getSessionStorage=e.getSessionStorage;exports.getUserDvsn=e.getUserDvsn;exports.getUserId=e.getUserId;exports.getUserInfo=e.getUserInfo;exports.getUserNm=e.getUserNm;exports.hasAllRoles=e.hasAllRoles;exports.hasAnyRole=e.hasAnyRole;exports.hasRole=e.hasRole;exports.hasUserInfo=e.hasUserInfo;exports.isArray=e.isArray;exports.isBoolean=e.isBoolean;exports.isDesktop=e.isDesktop;exports.isDev=e.isDev;exports.isEmpty=e.isEmpty;exports.isEmptyArray=e.isEmptyArray;exports.isFunction=e.isFunction;exports.isLocal=e.isLocal;exports.isLoggedIn=e.isLoggedIn;exports.isMobile=e.isMobile;exports.isNull=e.isNull;exports.isNullOrUndefined=e.isNullOrUndefined;exports.isNumber=e.isNumber;exports.isObject=e.isObject;exports.isProd=e.isProd;exports.isSafeEmpty=e.isSafeEmpty;exports.isString=e.isString;exports.isTablet=e.isTablet;exports.isUndefined=e.isUndefined;exports.isValidEmail=e.isValidEmail;exports.isValidUrl=e.isValidUrl;exports.logServiceCodeConfig=e.logServiceCodeConfig;exports.messageUtils=e.messageUtils;exports.notiBwgError=e.notiBwgError;exports.notiError=e.notiError;exports.notiInfo=e.notiInfo;exports.notiSuccess=e.notiSuccess;exports.notiWarning=e.notiWarning;exports.notificationService=e.notificationService;exports.notificationUtils=e.notificationUtils;exports.padLeft=e.padLeft;exports.padRight=e.padRight;exports.random=e.random;exports.realFormat=e.realFormat;exports.removeSessionStorage=e.removeSessionStorage;exports.round=e.round;exports.serviceUtils=e.serviceUtils;exports.setClientIp=e.setClientIp;exports.setCookie=e.setCookie;exports.setServiceCodeOverrides=e.setServiceCodeOverrides;exports.setSessionStorage=e.setSessionStorage;exports.showApiError=e.showApiError;exports.showDuplicateError=e.showDuplicateError;exports.showError=e.showError;exports.showInfo=e.showInfo;exports.showLoading=e.showLoading;exports.showRequiredError=e.showRequiredError;exports.showSaveError=e.showSaveError;exports.showSaveSuccess=e.showSaveSuccess;exports.showSuccess=e.showSuccess;exports.showWarning=e.showWarning;exports.throttle=e.throttle;exports.toCamelCase=e.toCamelCase;exports.userUtils=e.userUtils;exports.verifyClientIp=e.verifyClientIp;exports.useCode=t.useCode;exports.useCodeStore=t.useCodeStore;exports.useColorStore=t.useColorStore;exports.useFavorite=t.useFavorite;exports.useFavoriteStore=t.useFavoriteStore;exports.useLoadingStore=t.useLoadingStore;exports.useMenuModel=t.useMenuModel;exports.useMenuModelStore=t.useMenuModelStore;exports.useMenuView=t.useMenuView;exports.useMenuViewStore=t.useMenuViewStore;exports.useOptionStore=t.useOptionStore;exports.usePopupLoadingStore=t.usePopupLoadingStore;exports.usePopupState=t.usePopupState;exports.usePopupStore=t.usePopupStore;exports.useUser=t.useUser;exports.useUserStore=t.useUserStore;exports.BwgButtonGroup=o.BwgButtonGroup;exports.BwgCmptArea=o.BwgCmptArea;exports.BwgCol=o.BwgCol;exports.BwgConfigProvider=o.BwgConfigProvider;exports.BwgDetail=o.BwgDetail;exports.BwgDrawer=o.BwgDrawer;exports.BwgEditor=o.BwgEditor;exports.BwgGrid=o.BwgGrid;exports.BwgInfoArea=o.BwgInfoArea;exports.BwgPagination=o.BwgPagination;exports.BwgPopup=o.BwgPopup;exports.BwgRow=o.BwgRow;exports.BwgSpace=o.BwgSpace;exports.BwgTable=o.BwgTable;exports.BwgTabs=o.BwgTabs;exports.BwgTitleBox=o.BwgTitleBox;exports.BwgView=o.BwgView;exports.ContentBox=o.ContentBox;exports.ContentLayOut=o.ContentLayOut;exports.GlobalConfigProvider=o.GlobalConfigProvider;exports.QuickServiceToggle=o.QuickServiceToggle;exports.SSOHandler=o.SSOHandler;exports.SearchBox=o.SearchBox;exports.SearchDepartmentP01=o.SearchDepartmentP01;exports.SearchDepartmentP02=o.SearchDepartmentP02;exports.SearchOrganizationP01=o.SearchOrganizationP01;exports.SearchOrganizationP02=o.SearchOrganizationP02;exports.createBwgGridRenderer=o.createBwgGridRenderer;exports.BwgButton=r.BwgButton;exports.BwgCheck=r.BwgCheck;exports.BwgCheckList=r.BwgCheckList;exports.BwgDatePicker=r.BwgDatePicker;exports.BwgDownload=r.BwgDownload;exports.BwgForm=r.BwgForm;exports.BwgFormItem=r.BwgFormItem;exports.BwgInput=r.BwgInput;exports.BwgLargeUploader=r.BwgLargeUploader;exports.BwgMaskedInput=r.BwgMaskedInput;exports.BwgMaskedPicker=r.BwgMaskedPicker;exports.BwgMultiSelect=r.BwgMultiSelect;exports.BwgNumber=r.BwgNumber;exports.BwgRadio=r.BwgRadio;exports.BwgRangePicker=r.BwgRangePicker;exports.BwgSearch=r.BwgSearch;exports.BwgSelect=r.BwgSelect;exports.BwgSwitch=r.BwgSwitch;exports.BwgTextArea=r.BwgTextArea;exports.BwgUploader=r.BwgUploader;exports.AppWrapper=s.AppWrapper;exports.BwgPortal01=s.BwgPortal01;exports.BwgPortal02=s.BwgPortal02;exports.ConfigurableContent=s.ConfigurableContent;exports.ConfigurableHeader=s.ConfigurableHeader;exports.ConfigurableMenuTab=s.ConfigurableMenuTab;exports.ConfigurableSidebar=s.ConfigurableSidebar;exports.ContentContainer=s.ContentContainer;exports.LandingContainer=s.LandingContainer;exports.LoadingContainer=s.LoadingContainer;exports.PopupContainer=s.PopupContainer;exports.ProtectWrapper=s.ProtectWrapper;exports.AuthProvider=i.AuthProvider;exports.CommonCodeProvider=i.CommonCodeProvider;exports.ScreenProtectProvider=i.ScreenProtectProvider;exports.SearchBoxProvider=i.SearchBoxProvider;exports.ServiceCodeProvider=i.ServiceCodeProvider;exports.useAllServiceCodes=i.useAllServiceCodes;exports.useAuth=i.useAuth;exports.useCodeColor=i.useCodeColor;exports.useCodeList=i.useCodeList;exports.useCodeListByOption=i.useCodeListByOption;exports.useCodeName=i.useCodeName;exports.useCommonCode=i.useCommonCode;exports.useGridLookup=i.useGridLookup;exports.useLock=i.useLock;exports.useLogServiceCodeConfig=i.useLogServiceCodeConfig;exports.usePopup=i.usePopup;exports.useSearchBox=i.useSearchBox;exports.useServiceCode=i.useServiceCode;exports.useServiceCodeValue=i.useServiceCodeValue;
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AAGpC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,71 +1,75 @@
|
|
|
1
|
-
import { ApiError as r, THEME_COOKIE_NAME as t, apiDelete as i, apiGet as s, apiPatch as a, apiPost as n, apiPut as g, apiUtils as l, arrAverage as u, arrCount as d, arrMax as
|
|
2
|
-
import { useCode as
|
|
3
|
-
import {
|
|
4
|
-
import { BwgButton as
|
|
5
|
-
import { AppWrapper as
|
|
6
|
-
import { AuthProvider as
|
|
1
|
+
import { ApiError as r, THEME_COOKIE_NAME as t, apiDelete as i, apiGet as s, apiPatch as a, apiPost as n, apiPut as g, apiUtils as l, arrAverage as u, arrCount as d, arrMax as c, arrMin as p, arrReverse as S, arrSum as w, arrUnique as C, bwgUtils as B, callService as m, callService_SYSCD as v, clamp as f, clearSessionStorage as h, closeAllMessages as P, closeMessage as U, closeNotification as D, commonUtils as E, configureEnvUtils as b, copyToClipboard as y, debounce as A, deleteCookie as L, destroyNotifications as M, downloadByFileKey as I, downloadFile as k, duplicates as x, encryptSha256 as R, envUtils as N, fileUtils as O, generateRandomColor as T, generateRandomString as F, generateUID as G, getAllServiceCodes as V, getClientIp as W, getCookie as q, getCrprCd as z, getCurrentDate as H, getCurrentDateString as _, getDepartmentInfo as j, getDeviceType as K, getDisplayName as Q, getDprtCd as Y, getDprtNm as J, getEmplNo as X, getEnvCode as Z, getPermissionService as $, getRoleList as ee, getServiceCode as oe, getSessionStorage as re, getUserDvsn as te, getUserId as ie, getUserInfo as se, getUserNm as ae, hasAllRoles as ne, hasAnyRole as ge, hasRole as le, hasUserInfo as ue, isArray as de, isBoolean as ce, isDesktop as pe, isDev as Se, isEmpty as we, isEmptyArray as Ce, isFunction as Be, isLocal as me, isLoggedIn as ve, isMobile as fe, isNull as he, isNullOrUndefined as Pe, isNumber as Ue, isObject as De, isProd as Ee, isSafeEmpty as be, isString as ye, isTablet as Ae, isUndefined as Le, isValidEmail as Me, isValidUrl as Ie, logServiceCodeConfig as ke, messageUtils as xe, notiBwgError as Re, notiError as Ne, notiInfo as Oe, notiSuccess as Te, notiWarning as Fe, notificationService as Ge, notificationUtils as Ve, padLeft as We, padRight as qe, random as ze, realFormat as He, removeSessionStorage as _e, round as je, serviceUtils as Ke, setClientIp as Qe, setCookie as Ye, setServiceCodeOverrides as Je, setSessionStorage as Xe, showApiError as Ze, showDuplicateError as $e, showError as eo, showInfo as oo, showLoading as ro, showRequiredError as to, showSaveError as io, showSaveSuccess as so, 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 So, useCodeStore as wo, useColorStore as Co, useFavorite as Bo, useFavoriteStore as mo, useLoadingStore as vo, useMenuModel as fo, useMenuModelStore as ho, useMenuView as Po, useMenuViewStore as Uo, useOptionStore as Do, usePopupLoadingStore as Eo, usePopupState as bo, usePopupStore as yo, useUser as Ao, useUserStore as Lo } from "./stores/index.js";
|
|
3
|
+
import { d as Io, e as ko, f as xo, B as Ro, h as No, i as Oo, j as To, k as Fo, l as Go, m as Vo, n as Wo, o as qo, a as zo, p as Ho, q as _o, r as jo, s as Ko, C as Qo, t as Yo, G as Jo, Q as Xo, u as Zo, S as $o, w as er, x as or, y as rr, z as tr, v as ir } from "./chunks/common-components-BiUtYMIt.js";
|
|
4
|
+
import { BwgButton as ar, BwgCheck as nr, BwgCheckList as gr, BwgDatePicker as lr, BwgDownload as ur, BwgForm as dr, BwgFormItem as cr, BwgInput as pr, BwgLargeUploader as Sr, BwgMaskedInput as wr, BwgMaskedPicker as Cr, BwgMultiSelect as Br, BwgNumber as mr, BwgRadio as vr, BwgRangePicker as fr, BwgSearch as hr, BwgSelect as Pr, BwgSwitch as Ur, BwgTextArea as Dr, BwgUploader as Er } from "./components/core/index.js";
|
|
5
|
+
import { AppWrapper as yr, BwgPortal01 as Ar, BwgPortal02 as Lr, ConfigurableContent as Mr, ConfigurableHeader as Ir, ConfigurableMenuTab as kr, ConfigurableSidebar as xr, ContentContainer as Rr, LandingContainer as Nr, LoadingContainer as Or, PopupContainer as Tr, ProtectWrapper as Fr } from "./components/layout/index.js";
|
|
6
|
+
import { AuthProvider as Vr, CommonCodeProvider as Wr, ScreenProtectProvider as qr, SearchBoxProvider as zr, ServiceCodeProvider as Hr, useAllServiceCodes as _r, useAuth as jr, useCodeColor as Kr, useCodeList as Qr, useCodeListByOption as Yr, useCodeName as Jr, useCommonCode as Xr, useGridLookup as Zr, useLock as $r, useLogServiceCodeConfig as et, usePopup as ot, useSearchBox as rt, useServiceCode as tt, useServiceCodeValue as it } from "./provider/index.js";
|
|
7
7
|
export {
|
|
8
8
|
r as ApiError,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
yr as AppWrapper,
|
|
10
|
+
Vr as AuthProvider,
|
|
11
|
+
ar as BwgButton,
|
|
12
12
|
Io as BwgButtonGroup,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
nr as BwgCheck,
|
|
14
|
+
gr as BwgCheckList,
|
|
15
15
|
ko as BwgCmptArea,
|
|
16
16
|
xo as BwgCol,
|
|
17
17
|
Ro as BwgConfigProvider,
|
|
18
|
-
|
|
18
|
+
lr as BwgDatePicker,
|
|
19
19
|
No as BwgDetail,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
ur as BwgDownload,
|
|
21
|
+
Oo as BwgDrawer,
|
|
22
|
+
To as BwgEditor,
|
|
23
|
+
dr as BwgForm,
|
|
24
|
+
cr as BwgFormItem,
|
|
25
25
|
Fo as BwgGrid,
|
|
26
26
|
Go as BwgInfoArea,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
pr as BwgInput,
|
|
28
|
+
Sr as BwgLargeUploader,
|
|
29
|
+
wr as BwgMaskedInput,
|
|
30
|
+
Cr as BwgMaskedPicker,
|
|
31
|
+
Br as BwgMultiSelect,
|
|
32
|
+
mr as BwgNumber,
|
|
33
33
|
Vo as BwgPagination,
|
|
34
34
|
Wo as BwgPopup,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
Ar as BwgPortal01,
|
|
36
|
+
Lr as BwgPortal02,
|
|
37
|
+
vr as BwgRadio,
|
|
38
|
+
fr as BwgRangePicker,
|
|
39
39
|
qo as BwgRow,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
40
|
+
hr as BwgSearch,
|
|
41
|
+
Pr as BwgSelect,
|
|
42
|
+
zo as BwgSpace,
|
|
43
|
+
Ur as BwgSwitch,
|
|
44
|
+
Ho as BwgTable,
|
|
45
|
+
_o as BwgTabs,
|
|
46
|
+
Dr as BwgTextArea,
|
|
47
|
+
jo as BwgTitleBox,
|
|
48
|
+
Er as BwgUploader,
|
|
49
|
+
Ko as BwgView,
|
|
50
|
+
Wr as CommonCodeProvider,
|
|
51
|
+
Mr as ConfigurableContent,
|
|
52
|
+
Ir as ConfigurableHeader,
|
|
53
|
+
kr as ConfigurableMenuTab,
|
|
54
|
+
xr as ConfigurableSidebar,
|
|
55
|
+
Qo as ContentBox,
|
|
56
|
+
Rr as ContentContainer,
|
|
57
|
+
Yo as ContentLayOut,
|
|
58
58
|
Jo as GlobalConfigProvider,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
Nr as LandingContainer,
|
|
60
|
+
Or as LoadingContainer,
|
|
61
|
+
Tr as PopupContainer,
|
|
62
|
+
Fr as ProtectWrapper,
|
|
63
63
|
Xo as QuickServiceToggle,
|
|
64
64
|
Zo as SSOHandler,
|
|
65
|
-
|
|
65
|
+
qr as ScreenProtectProvider,
|
|
66
66
|
$o as SearchBox,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
zr as SearchBoxProvider,
|
|
68
|
+
er as SearchDepartmentP01,
|
|
69
|
+
or as SearchDepartmentP02,
|
|
70
|
+
rr as SearchOrganizationP01,
|
|
71
|
+
tr as SearchOrganizationP02,
|
|
72
|
+
Hr as ServiceCodeProvider,
|
|
69
73
|
t as THEME_COOKIE_NAME,
|
|
70
74
|
i as apiDelete,
|
|
71
75
|
s as apiGet,
|
|
@@ -75,11 +79,11 @@ export {
|
|
|
75
79
|
l as apiUtils,
|
|
76
80
|
u as arrAverage,
|
|
77
81
|
d as arrCount,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
c as arrMax,
|
|
83
|
+
p as arrMin,
|
|
84
|
+
S as arrReverse,
|
|
81
85
|
w as arrSum,
|
|
82
|
-
|
|
86
|
+
C as arrUnique,
|
|
83
87
|
B as bwgUtils,
|
|
84
88
|
m as callService,
|
|
85
89
|
v as callService_SYSCD,
|
|
@@ -87,33 +91,33 @@ export {
|
|
|
87
91
|
h as clearSessionStorage,
|
|
88
92
|
P as closeAllMessages,
|
|
89
93
|
U as closeMessage,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
D as closeNotification,
|
|
95
|
+
E as commonUtils,
|
|
96
|
+
b as configureEnvUtils,
|
|
97
|
+
y as copyToClipboard,
|
|
98
|
+
ir as createBwgGridRenderer,
|
|
99
|
+
A as debounce,
|
|
100
|
+
L as deleteCookie,
|
|
101
|
+
M as destroyNotifications,
|
|
98
102
|
I as downloadByFileKey,
|
|
99
103
|
k as downloadFile,
|
|
100
104
|
x as duplicates,
|
|
101
105
|
R as encryptSha256,
|
|
102
106
|
N as envUtils,
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
O as fileUtils,
|
|
108
|
+
T as generateRandomColor,
|
|
105
109
|
F as generateRandomString,
|
|
106
110
|
G as generateUID,
|
|
107
111
|
V as getAllServiceCodes,
|
|
108
112
|
W as getClientIp,
|
|
109
113
|
q as getCookie,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
z as getCrprCd,
|
|
115
|
+
H as getCurrentDate,
|
|
116
|
+
_ as getCurrentDateString,
|
|
117
|
+
j as getDepartmentInfo,
|
|
118
|
+
K as getDeviceType,
|
|
119
|
+
Q as getDisplayName,
|
|
120
|
+
Y as getDprtCd,
|
|
117
121
|
J as getDprtNm,
|
|
118
122
|
X as getEmplNo,
|
|
119
123
|
Z as getEnvCode,
|
|
@@ -130,11 +134,11 @@ export {
|
|
|
130
134
|
le as hasRole,
|
|
131
135
|
ue as hasUserInfo,
|
|
132
136
|
de as isArray,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
137
|
+
ce as isBoolean,
|
|
138
|
+
pe as isDesktop,
|
|
139
|
+
Se as isDev,
|
|
136
140
|
we as isEmpty,
|
|
137
|
-
|
|
141
|
+
Ce as isEmptyArray,
|
|
138
142
|
Be as isFunction,
|
|
139
143
|
me as isLocal,
|
|
140
144
|
ve as isLoggedIn,
|
|
@@ -142,32 +146,32 @@ export {
|
|
|
142
146
|
he as isNull,
|
|
143
147
|
Pe as isNullOrUndefined,
|
|
144
148
|
Ue as isNumber,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
De as isObject,
|
|
150
|
+
Ee as isProd,
|
|
151
|
+
be as isSafeEmpty,
|
|
152
|
+
ye as isString,
|
|
153
|
+
Ae as isTablet,
|
|
154
|
+
Le as isUndefined,
|
|
155
|
+
Me as isValidEmail,
|
|
152
156
|
Ie as isValidUrl,
|
|
153
157
|
ke as logServiceCodeConfig,
|
|
154
158
|
xe as messageUtils,
|
|
155
159
|
Re as notiBwgError,
|
|
156
160
|
Ne as notiError,
|
|
157
|
-
|
|
158
|
-
|
|
161
|
+
Oe as notiInfo,
|
|
162
|
+
Te as notiSuccess,
|
|
159
163
|
Fe as notiWarning,
|
|
160
164
|
Ge as notificationService,
|
|
161
165
|
Ve as notificationUtils,
|
|
162
166
|
We as padLeft,
|
|
163
167
|
qe as padRight,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
ze as random,
|
|
169
|
+
He as realFormat,
|
|
170
|
+
_e as removeSessionStorage,
|
|
171
|
+
je as round,
|
|
172
|
+
Ke as serviceUtils,
|
|
173
|
+
Qe as setClientIp,
|
|
174
|
+
Ye as setCookie,
|
|
171
175
|
Je as setServiceCodeOverrides,
|
|
172
176
|
Xe as setSessionStorage,
|
|
173
177
|
Ze as showApiError,
|
|
@@ -182,37 +186,36 @@ export {
|
|
|
182
186
|
no as showWarning,
|
|
183
187
|
go as throttle,
|
|
184
188
|
lo as toCamelCase,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
_r as useAllServiceCodes,
|
|
190
|
+
jr as useAuth,
|
|
191
|
+
So as useCode,
|
|
192
|
+
Kr as useCodeColor,
|
|
193
|
+
Qr as useCodeList,
|
|
194
|
+
Yr as useCodeListByOption,
|
|
195
|
+
Jr as useCodeName,
|
|
192
196
|
wo as useCodeStore,
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
Co as useColorStore,
|
|
198
|
+
Xr as useCommonCode,
|
|
195
199
|
Bo as useFavorite,
|
|
196
200
|
mo as useFavoriteStore,
|
|
197
|
-
|
|
201
|
+
Zr as useGridLookup,
|
|
198
202
|
vo as useLoadingStore,
|
|
199
|
-
|
|
200
|
-
|
|
203
|
+
$r as useLock,
|
|
204
|
+
et as useLogServiceCodeConfig,
|
|
201
205
|
fo as useMenuModel,
|
|
202
206
|
ho as useMenuModelStore,
|
|
203
207
|
Po as useMenuView,
|
|
204
208
|
Uo as useMenuViewStore,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
bo as
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
Lo as
|
|
215
|
-
Mo as useUserStore,
|
|
209
|
+
Do as useOptionStore,
|
|
210
|
+
ot as usePopup,
|
|
211
|
+
Eo as usePopupLoadingStore,
|
|
212
|
+
bo as usePopupState,
|
|
213
|
+
yo as usePopupStore,
|
|
214
|
+
rt as useSearchBox,
|
|
215
|
+
tt as useServiceCode,
|
|
216
|
+
it as useServiceCodeValue,
|
|
217
|
+
Ao as useUser,
|
|
218
|
+
Lo as useUserStore,
|
|
216
219
|
uo as userUtils,
|
|
217
|
-
|
|
220
|
+
co as verifyClientIp
|
|
218
221
|
};
|
|
@@ -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;AAE1E
|
|
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;AAE1E;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;2BAMC,MAAM,cAAc,GAAG,WAAW,WAAW;;CAmBlE,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"),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(void 0),J=({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(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},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}},N=n.createContext(null),ee=()=>{const e=n.useContext(N);if(!e)throw new Error("useLock must be used within ScreenProtectProvider");return e},te=({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(N.Provider,{value:D,children:[l.jsx("div",{style:{width:"100%",height:"100%"},...i?{inert:""}:{},...i?{"aria-hidden":!0}:{},children:e}),i&&l.jsx(oe,{onUnlock:b,overlayId:a,overlayPosition:m})]})},oe=({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)}})})]})})},re=()
|
|
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(void 0),J=({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(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},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}},N=n.createContext(null),ee=()=>{const e=n.useContext(N);if(!e)throw new Error("useLock must be used within ScreenProtectProvider");return e},te=({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(N.Provider,{value:D,children:[l.jsx("div",{style:{width:"100%",height:"100%"},...i?{inert:""}:{},...i?{"aria-hidden":!0}:{},children:e}),i&&l.jsx(oe,{onUnlock:b,overlayId:a,overlayPosition:m})]})},oe=({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)}})})]})})},re=()=>{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=J;exports.ScreenProtectProvider=te;exports.SearchBoxProvider=q;exports.ServiceCodeProvider=_;exports.useAllServiceCodes=V;exports.useAuth=W;exports.useCodeColor=Y;exports.useCodeList=Q;exports.useCodeListByOption=Z;exports.useCodeName=X;exports.useCommonCode=f;exports.useGridLookup=K;exports.useLock=ee;exports.useLogServiceCodeConfig=$;exports.usePopup=re;exports.useSearchBox=H;exports.useServiceCode=y;exports.useServiceCodeValue=G;
|