@bwg-ui/core 1.2.4 → 1.2.6

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/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-Bhr_MU0K.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.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.usePopupContext=i.usePopupContext;exports.useSearchBox=i.useSearchBox;exports.useServiceCode=i.useServiceCode;exports.useServiceCodeValue=i.useServiceCodeValue;
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-Bhr_MU0K.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.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.js CHANGED
@@ -1,17 +1,17 @@
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 p, arrMin as c, arrReverse as C, arrSum as w, arrUnique as S, bwgUtils as B, callService as m, callService_SYSCD as v, clamp as f, clearSessionStorage as h, closeAllMessages as P, closeMessage as U, closeNotification as E, commonUtils as D, configureEnvUtils as b, copyToClipboard as A, debounce as L, deleteCookie as M, destroyNotifications as y, downloadByFileKey as I, downloadFile as k, duplicates as x, encryptSha256 as R, envUtils as N, fileUtils as T, generateRandomColor as O, generateRandomString as F, generateUID as G, getAllServiceCodes as V, getClientIp as W, getCookie as q, getCrprCd as H, getCurrentDate as _, getCurrentDateString as j, getDepartmentInfo as K, getDeviceType as Q, 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 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 pe, isDesktop as ce, isDev as Ce, isEmpty as we, isEmptyArray as Se, isFunction as Be, isLocal as me, isLoggedIn as ve, isMobile as fe, isNull as he, isNullOrUndefined as Pe, isNumber as Ue, isObject as Ee, isProd as De, isSafeEmpty as be, isString as Ae, isTablet as Le, isUndefined as Me, isValidEmail as ye, isValidUrl as Ie, logServiceCodeConfig as ke, messageUtils as xe, notiBwgError as Re, notiError as Ne, notiInfo as Te, notiSuccess as Oe, notiWarning as Fe, notificationService as Ge, notificationUtils as Ve, padLeft as We, padRight as qe, random as He, realFormat as _e, removeSessionStorage as je, round as Ke, serviceUtils as Qe, 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 to, showSaveError as io, showSaveSuccess as so, showSuccess as ao, showWarning as no, throttle as go, toCamelCase as lo, userUtils as uo, verifyClientIp as po } from "./utils/index.js";
2
- import { useCode as Co, useCodeStore as wo, useColorStore as So, useFavorite as Bo, useFavoriteStore as mo, useLoadingStore as vo, useMenuModel as fo, useMenuModelStore as ho, useMenuView as Po, useMenuViewStore as Uo, useOptionStore as Eo, usePopupLoadingStore as Do, usePopupState as bo, usePopupStore as Ao, useUser as Lo, useUserStore as Mo } from "./stores/index.js";
3
- import { d as Io, e as ko, f as xo, B as Ro, h as No, i as To, j as Oo, k as Fo, l as Go, m as Vo, n as Wo, o as qo, a as Ho, p as _o, q as jo, r as Ko, s as Qo, 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-6bDxIO7h.js";
4
- import { BwgButton as rr, BwgCheck as tr, BwgCheckList as ir, BwgDatePicker as sr, BwgDownload as ar, BwgForm as nr, BwgFormItem as gr, BwgInput as lr, BwgLargeUploader as ur, BwgMaskedInput as dr, BwgMaskedPicker as pr, BwgMultiSelect as cr, BwgNumber as Cr, BwgRadio as wr, BwgRangePicker as Sr, BwgSearch as Br, BwgSelect as mr, BwgSwitch as vr, BwgTextArea as fr, BwgUploader as hr } from "./components/core/index.js";
5
- import { AppWrapper as Ur, BwgPortal01 as Er, BwgPortal02 as Dr, ConfigurableContent as br, ConfigurableHeader as Ar, ConfigurableMenuTab as Lr, ConfigurableSidebar as Mr, ContentContainer as yr, LandingContainer as Ir, LoadingContainer as kr, PopupContainer as xr, ProtectWrapper as Rr } from "./components/layout/index.js";
6
- import { AuthProvider as Tr, CommonCodeProvider as Or, ScreenProtectProvider as Fr, SearchBoxProvider as Gr, ServiceCodeProvider as Vr, useAllServiceCodes as Wr, useAuth as qr, useCodeColor as Hr, useCodeList as _r, useCodeListByOption as jr, useCodeName as Kr, useCommonCode as Qr, useGridLookup as Yr, useLock as zr, useLogServiceCodeConfig as Jr, usePopup as Xr, usePopupContext as Zr, useSearchBox as $r, useServiceCode as et, useServiceCodeValue as ot } from "./provider/index.js";
1
+ import { ApiError as r, THEME_COOKIE_NAME as i, apiDelete as t, apiGet as s, apiPatch as a, apiPost as n, apiPut as g, apiUtils as l, arrAverage as u, arrCount as d, arrMax as p, arrMin as c, arrReverse as w, arrSum as C, arrUnique as S, bwgUtils as B, callService as m, callService_SYSCD as v, clamp as f, clearSessionStorage as h, closeAllMessages as P, closeMessage as U, closeNotification as E, commonUtils as b, configureEnvUtils as D, copyToClipboard as A, debounce as L, deleteCookie as M, destroyNotifications as y, downloadByFileKey as I, downloadFile as k, duplicates as x, encryptSha256 as R, envUtils as N, fileUtils as T, generateRandomColor as O, generateRandomString as F, generateUID as G, getAllServiceCodes as V, getClientIp as W, getCookie as q, getCrprCd as H, getCurrentDate as _, getCurrentDateString as j, getDepartmentInfo as K, getDeviceType as Q, 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 ie, getUserId as te, getUserInfo as se, getUserNm as ae, hasAllRoles as ne, hasAnyRole as ge, hasRole as le, hasUserInfo as ue, isArray as de, isBoolean as pe, isDesktop as ce, isDev as we, isEmpty as Ce, isEmptyArray as Se, isFunction as Be, isLocal as me, isLoggedIn as ve, isMobile as fe, isNull as he, isNullOrUndefined as Pe, isNumber as Ue, isObject as Ee, isProd as be, isSafeEmpty as De, isString as Ae, isTablet as Le, isUndefined as Me, isValidEmail as ye, isValidUrl as Ie, logServiceCodeConfig as ke, messageUtils as xe, notiBwgError as Re, notiError as Ne, notiInfo as Te, notiSuccess as Oe, notiWarning as Fe, notificationService as Ge, notificationUtils as Ve, padLeft as We, padRight as qe, random as He, realFormat as _e, removeSessionStorage as je, round as Ke, serviceUtils as Qe, 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 io, showSaveError as to, showSaveSuccess as so, showSuccess as ao, showWarning as no, throttle as go, toCamelCase as lo, userUtils as uo, verifyClientIp as po } from "./utils/index.js";
2
+ import { useCode as wo, useCodeStore as Co, useColorStore as So, useFavorite as Bo, useFavoriteStore as mo, useLoadingStore as vo, useMenuModel as fo, useMenuModelStore as ho, useMenuView as Po, useMenuViewStore as Uo, useOptionStore as Eo, usePopupLoadingStore as bo, usePopupState as Do, usePopupStore as Ao, useUser as Lo, useUserStore as Mo } from "./stores/index.js";
3
+ import { h as Io, i as ko, j as xo, B as Ro, k as No, l as To, m as Oo, n as Fo, o as Go, p as Vo, b as Wo, q as qo, a as Ho, r as _o, s as jo, d as Ko, t as Qo, c as Yo, C as zo, G as Jo, Q as Xo, u as Zo, S as $o, v as er } from "./chunks/common-components-CnAjT_Gi.js";
4
+ import { BwgButton as rr, BwgCheck as ir, BwgCheckList as tr, BwgDatePicker as sr, BwgDownload as ar, BwgForm as nr, BwgFormItem as gr, BwgInput as lr, BwgLargeUploader as ur, BwgMaskedInput as dr, BwgMaskedPicker as pr, BwgMultiSelect as cr, BwgNumber as wr, BwgRadio as Cr, BwgRangePicker as Sr, BwgSearch as Br, BwgSelect as mr, BwgSwitch as vr, BwgTextArea as fr, BwgUploader as hr } from "./components/core/index.js";
5
+ import { AppWrapper as Ur, BwgPortal01 as Er, BwgPortal02 as br, ConfigurableContent as Dr, ConfigurableHeader as Ar, ConfigurableMenuTab as Lr, ConfigurableSidebar as Mr, ContentContainer as yr, LandingContainer as Ir, LoadingContainer as kr, PopupContainer as xr, ProtectWrapper as Rr } from "./components/layout/index.js";
6
+ import { AuthProvider as Tr, CommonCodeProvider as Or, ScreenProtectProvider as Fr, SearchBoxProvider as Gr, ServiceCodeProvider as Vr, useAllServiceCodes as Wr, useAuth as qr, useCodeColor as Hr, useCodeList as _r, useCodeListByOption as jr, useCodeName as Kr, useCommonCode as Qr, useGridLookup as Yr, useLock as zr, useLogServiceCodeConfig as Jr, usePopup as Xr, useSearchBox as Zr, useServiceCode as $r, useServiceCodeValue as ei } from "./provider/index.js";
7
7
  export {
8
8
  r as ApiError,
9
9
  Ur as AppWrapper,
10
10
  Tr as AuthProvider,
11
11
  rr as BwgButton,
12
12
  Io as BwgButtonGroup,
13
- tr as BwgCheck,
14
- ir as BwgCheckList,
13
+ ir as BwgCheck,
14
+ tr as BwgCheckList,
15
15
  ko as BwgCmptArea,
16
16
  xo as BwgCol,
17
17
  Ro as BwgConfigProvider,
@@ -29,12 +29,12 @@ export {
29
29
  dr as BwgMaskedInput,
30
30
  pr as BwgMaskedPicker,
31
31
  cr as BwgMultiSelect,
32
- Cr as BwgNumber,
32
+ wr as BwgNumber,
33
33
  Vo as BwgPagination,
34
34
  Wo as BwgPopup,
35
35
  Er as BwgPortal01,
36
- Dr as BwgPortal02,
37
- wr as BwgRadio,
36
+ br as BwgPortal02,
37
+ Cr as BwgRadio,
38
38
  Sr as BwgRangePicker,
39
39
  qo as BwgRow,
40
40
  Br as BwgSearch,
@@ -48,7 +48,7 @@ export {
48
48
  hr as BwgUploader,
49
49
  Qo as BwgView,
50
50
  Or as CommonCodeProvider,
51
- br as ConfigurableContent,
51
+ Dr as ConfigurableContent,
52
52
  Ar as ConfigurableHeader,
53
53
  Lr as ConfigurableMenuTab,
54
54
  Mr as ConfigurableSidebar,
@@ -66,8 +66,8 @@ export {
66
66
  $o as SearchBox,
67
67
  Gr as SearchBoxProvider,
68
68
  Vr as ServiceCodeProvider,
69
- t as THEME_COOKIE_NAME,
70
- i as apiDelete,
69
+ i as THEME_COOKIE_NAME,
70
+ t as apiDelete,
71
71
  s as apiGet,
72
72
  a as apiPatch,
73
73
  n as apiPost,
@@ -77,8 +77,8 @@ export {
77
77
  d as arrCount,
78
78
  p as arrMax,
79
79
  c as arrMin,
80
- C as arrReverse,
81
- w as arrSum,
80
+ w as arrReverse,
81
+ C as arrSum,
82
82
  S as arrUnique,
83
83
  B as bwgUtils,
84
84
  m as callService,
@@ -88,8 +88,8 @@ export {
88
88
  P as closeAllMessages,
89
89
  U as closeMessage,
90
90
  E as closeNotification,
91
- D as commonUtils,
92
- b as configureEnvUtils,
91
+ b as commonUtils,
92
+ D as configureEnvUtils,
93
93
  A as copyToClipboard,
94
94
  er as createBwgGridRenderer,
95
95
  L as debounce,
@@ -121,8 +121,8 @@ export {
121
121
  ee as getRoleList,
122
122
  oe as getServiceCode,
123
123
  re as getSessionStorage,
124
- te as getUserDvsn,
125
- ie as getUserId,
124
+ ie as getUserDvsn,
125
+ te as getUserId,
126
126
  se as getUserInfo,
127
127
  ae as getUserNm,
128
128
  ne as hasAllRoles,
@@ -132,8 +132,8 @@ export {
132
132
  de as isArray,
133
133
  pe as isBoolean,
134
134
  ce as isDesktop,
135
- Ce as isDev,
136
- we as isEmpty,
135
+ we as isDev,
136
+ Ce as isEmpty,
137
137
  Se as isEmptyArray,
138
138
  Be as isFunction,
139
139
  me as isLocal,
@@ -143,8 +143,8 @@ export {
143
143
  Pe as isNullOrUndefined,
144
144
  Ue as isNumber,
145
145
  Ee as isObject,
146
- De as isProd,
147
- be as isSafeEmpty,
146
+ be as isProd,
147
+ De as isSafeEmpty,
148
148
  Ae as isString,
149
149
  Le as isTablet,
150
150
  Me as isUndefined,
@@ -175,8 +175,8 @@ export {
175
175
  eo as showError,
176
176
  oo as showInfo,
177
177
  ro as showLoading,
178
- to as showRequiredError,
179
- io as showSaveError,
178
+ io as showRequiredError,
179
+ to as showSaveError,
180
180
  so as showSaveSuccess,
181
181
  ao as showSuccess,
182
182
  no as showWarning,
@@ -184,12 +184,12 @@ export {
184
184
  lo as toCamelCase,
185
185
  Wr as useAllServiceCodes,
186
186
  qr as useAuth,
187
- Co as useCode,
187
+ wo as useCode,
188
188
  Hr as useCodeColor,
189
189
  _r as useCodeList,
190
190
  jr as useCodeListByOption,
191
191
  Kr as useCodeName,
192
- wo as useCodeStore,
192
+ Co as useCodeStore,
193
193
  So as useColorStore,
194
194
  Qr as useCommonCode,
195
195
  Bo as useFavorite,
@@ -204,13 +204,12 @@ export {
204
204
  Uo as useMenuViewStore,
205
205
  Eo as useOptionStore,
206
206
  Xr as usePopup,
207
- Zr as usePopupContext,
208
- Do as usePopupLoadingStore,
209
- bo as usePopupState,
207
+ bo as usePopupLoadingStore,
208
+ Do as usePopupState,
210
209
  Ao as usePopupStore,
211
- $r as useSearchBox,
212
- et as useServiceCode,
213
- ot as useServiceCodeValue,
210
+ Zr as useSearchBox,
211
+ $r as useServiceCode,
212
+ ei as useServiceCodeValue,
214
213
  Lo as useUser,
215
214
  Mo as useUserStore,
216
215
  uo as userUtils,
@@ -1,9 +1,4 @@
1
1
  import { PopupConfig } from '../../stores/popupStore';
2
- /**
3
- * 팝업 컨텍스트를 감지하는 훅
4
- * 팝업 내부에서 사용하면 true, 일반 페이지에서는 false 반환
5
- */
6
- export declare const usePopupContext: () => boolean;
7
2
  /**
8
3
  * 팝업 데이터와 이벤트를 관리하는 훅
9
4
  */
@@ -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;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,OAKlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;2BAMC,MAAM,cAAc,GAAG,WAAW,WAAW;;CAmBlE,CAAC"}
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"}
@@ -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,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=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=ne;exports.usePopupContext=re;exports.useSearchBox=H;exports.useServiceCode=y;exports.useServiceCodeValue=G;
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;
@@ -1,4 +1,4 @@
1
- import { useEffect as b, createContext as y, useContext as P, useRef as N, useState as w, useMemo as A, useCallback as $ } from "react";
1
+ import { useEffect as b, createContext as y, useContext as k, useRef as N, useState as w, useMemo as A, useCallback as $ } from "react";
2
2
  import { useCodeStore as H, usePopupStore as W } from "../stores/index.js";
3
3
  import { jsx as d, jsxs as T } from "react/jsx-runtime";
4
4
  import { Input as z } from "antd";
@@ -35,7 +35,7 @@ const I = {
35
35
  };
36
36
  return /* @__PURE__ */ d(D.Provider, { value: n, children: e });
37
37
  }, O = () => {
38
- const e = P(D);
38
+ const e = k(D);
39
39
  if (!e)
40
40
  throw new Error("useServiceCode must be used within a ServiceCodeProvider");
41
41
  return e;
@@ -58,8 +58,8 @@ const I = {
58
58
  const t = N(null), l = {
59
59
  searchBoxRef: t,
60
60
  getFormData: () => t.current?.getFormData() || {},
61
- setFormData: (u) => {
62
- t.current?.setFormData(u);
61
+ setFormData: (a) => {
62
+ t.current?.setFormData(a);
63
63
  },
64
64
  resetForm: () => {
65
65
  t.current?.resetForm();
@@ -71,20 +71,20 @@ const I = {
71
71
  };
72
72
  return /* @__PURE__ */ d(M.Provider, { value: l, children: e });
73
73
  }, se = () => {
74
- const e = P(M);
74
+ const e = k(M);
75
75
  if (!e)
76
76
  throw new Error("useSearchBox must be used within a SearchBoxProvider");
77
77
  return e;
78
78
  }, R = y(null), ce = () => {
79
- const e = P(R);
79
+ const e = k(R);
80
80
  if (!e) throw new Error("useAuth must be used within AuthProvider");
81
81
  return e;
82
82
  }, ie = ({ children: e }) => {
83
83
  const [t, o] = w(!1), [n, r] = w(!1), s = async (c) => {
84
84
  const i = (await c.text()).trim().toLowerCase();
85
85
  try {
86
- const a = JSON.parse(i);
87
- if (typeof a == "object" && a && (a.ok === !0 || a.success === !0))
86
+ const u = JSON.parse(i);
87
+ if (typeof u == "object" && u && (u.ok === !0 || u.success === !0))
88
88
  return !0;
89
89
  } catch {
90
90
  }
@@ -96,14 +96,14 @@ const I = {
96
96
  method: "POST",
97
97
  headers: { "Content-Type": "application/x-www-form-urlencoded" },
98
98
  body: "token=" + encodeURIComponent(c)
99
- }), a = i.ok && await s(i);
100
- return o(a), a;
99
+ }), u = i.ok && await s(i);
100
+ return o(u), u;
101
101
  } catch {
102
102
  return !1;
103
103
  } finally {
104
104
  r(!1);
105
105
  }
106
- }, u = async (c) => {
106
+ }, a = async (c) => {
107
107
  r(!0);
108
108
  try {
109
109
  const i = await fetch("/serviceEndpoint/sso_reauth.jsp", {
@@ -119,14 +119,14 @@ const I = {
119
119
  }
120
120
  }, f = () => {
121
121
  o(!1);
122
- }, m = A(
123
- () => ({ authed: t, busy: n, verifyWithToken: l, reauthWithPin: u, logout: f }),
122
+ }, p = A(
123
+ () => ({ authed: t, busy: n, verifyWithToken: l, reauthWithPin: a, logout: f }),
124
124
  [t, n]
125
125
  );
126
- return /* @__PURE__ */ d(R.Provider, { value: m, children: e });
126
+ return /* @__PURE__ */ d(R.Provider, { value: p, children: e });
127
127
  }, U = y(
128
128
  void 0
129
- ), ue = ({
129
+ ), ae = ({
130
130
  children: e
131
131
  }) => {
132
132
  const {
@@ -136,12 +136,12 @@ const I = {
136
136
  lastUpdated: r,
137
137
  getCodeList: s,
138
138
  getCodeListByOption: l,
139
- getCodeName: u,
139
+ getCodeName: a,
140
140
  getCodeColor: f,
141
- getCodeByOption: m,
141
+ getCodeByOption: p,
142
142
  getAvailableGroupCodes: c,
143
143
  getGridLookup: i,
144
- fetchCommonCodes: a
144
+ fetchCommonCodes: u
145
145
  } = H(), L = {
146
146
  codeData: t,
147
147
  isLoading: o,
@@ -149,56 +149,56 @@ const I = {
149
149
  lastUpdated: r,
150
150
  getCodeList: s,
151
151
  getCodeListByOption: l,
152
- getCodeName: u,
152
+ getCodeName: a,
153
153
  getCodeColor: f,
154
- getCodeByOption: m,
154
+ getCodeByOption: p,
155
155
  getAvailableGroupCodes: c,
156
156
  getGridLookup: i,
157
- refreshCodes: a
157
+ refreshCodes: u
158
158
  };
159
159
  return /* @__PURE__ */ d(U.Provider, { value: L, children: e });
160
- }, k = () => {
161
- const e = P(U);
160
+ }, P = () => {
161
+ const e = k(U);
162
162
  if (e === void 0)
163
163
  throw new Error("useCommonCode must be used within a CommonCodeProvider");
164
164
  return e;
165
- }, ae = () => {
166
- const { getCodeList: e, isLoading: t, error: o } = k();
165
+ }, ue = () => {
166
+ const { getCodeList: e, isLoading: t, error: o } = P();
167
167
  return {
168
168
  getCodeList: e,
169
169
  isLoading: t,
170
170
  error: o
171
171
  };
172
172
  }, de = () => {
173
- const { getCodeName: e, isLoading: t, error: o } = k();
173
+ const { getCodeName: e, isLoading: t, error: o } = P();
174
174
  return {
175
175
  getCodeName: e,
176
176
  isLoading: t,
177
177
  error: o
178
178
  };
179
179
  }, le = () => {
180
- const { getCodeColor: e, isLoading: t, error: o } = k();
180
+ const { getCodeColor: e, isLoading: t, error: o } = P();
181
181
  return {
182
182
  getCodeColor: e,
183
183
  isLoading: t,
184
184
  error: o
185
185
  };
186
- }, pe = () => {
187
- const { getCodeListByOption: e, isLoading: t, error: o } = k();
186
+ }, me = () => {
187
+ const { getCodeListByOption: e, isLoading: t, error: o } = P();
188
188
  return {
189
189
  getCodeListByOption: e,
190
190
  isLoading: t,
191
191
  error: o
192
192
  };
193
- }, me = () => {
194
- const { getGridLookup: e, isLoading: t, error: o } = k();
193
+ }, pe = () => {
194
+ const { getGridLookup: e, isLoading: t, error: o } = P();
195
195
  return {
196
196
  getGridLookup: e,
197
197
  isLoading: t,
198
198
  error: o
199
199
  };
200
200
  }, j = y(null), fe = () => {
201
- const e = P(j);
201
+ const e = k(j);
202
202
  if (!e)
203
203
  throw new Error("useLock must be used within ScreenProtectProvider");
204
204
  return e;
@@ -210,10 +210,10 @@ const I = {
210
210
  storageKey: r = "inactivityLocked",
211
211
  eventTarget: s,
212
212
  overlayScope: l = "global",
213
- overlayId: u = "lock-overlay-root",
213
+ overlayId: a = "lock-overlay-root",
214
214
  overlayPosition: f = "fixed"
215
215
  }) => {
216
- const m = n && typeof window < "u" && window.localStorage.getItem(r) === "1", [c, i] = w(m), [a, L] = w(t), x = Number.isFinite(a) && a > 0, C = N(null), _ = () => {
216
+ const p = n && typeof window < "u" && window.localStorage.getItem(r) === "1", [c, i] = w(p), [u, L] = w(t), x = Number.isFinite(u) && u > 0, v = N(null), _ = () => {
217
217
  try {
218
218
  n && window.localStorage.setItem(r, "1");
219
219
  } catch {
@@ -234,30 +234,30 @@ const I = {
234
234
  }
235
235
  i(!0);
236
236
  }, E = () => {
237
- x && (C.current && window.clearTimeout(C.current), C.current = window.setTimeout(() => {
237
+ x && (v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
238
238
  G();
239
- }, a));
239
+ }, u));
240
240
  };
241
241
  b(() => {
242
242
  if (!x) return;
243
243
  const h = () => {
244
244
  c || E();
245
- }, v = { passive: !0 }, g = [
245
+ }, C = { passive: !0 }, g = [
246
246
  "pointermove",
247
247
  "pointerdown",
248
248
  "keydown",
249
249
  "wheel",
250
250
  "touchstart"
251
251
  ], S = s ?? window;
252
- return g.forEach((p) => S.addEventListener(p, h, v)), E(), () => {
253
- C.current && window.clearTimeout(C.current), g.forEach((p) => S.removeEventListener(p, h));
252
+ return g.forEach((m) => S.addEventListener(m, h, C)), E(), () => {
253
+ v.current && window.clearTimeout(v.current), g.forEach((m) => S.removeEventListener(m, h));
254
254
  };
255
- }, [a, c, s, x]), b(() => {
255
+ }, [u, c, s, x]), b(() => {
256
256
  if (!c) return;
257
- const h = (p) => {
258
- const B = document.getElementById(u);
259
- B && B.contains(p.target) || (p.stopPropagation(), p.preventDefault());
260
- }, v = { capture: !0 }, g = [
257
+ const h = (m) => {
258
+ const B = document.getElementById(a);
259
+ B && B.contains(m.target) || (m.stopPropagation(), m.preventDefault());
260
+ }, C = { capture: !0 }, g = [
261
261
  "pointerdown",
262
262
  "pointerup",
263
263
  "pointermove",
@@ -268,8 +268,8 @@ const I = {
268
268
  "touchstart",
269
269
  "touchmove"
270
270
  ], S = l === "scoped" ? s ?? window : window;
271
- return g.forEach((p) => S.addEventListener(p, h, v)), () => g.forEach((p) => S.removeEventListener(p, h, v));
272
- }, [c, l, u, s]);
271
+ return g.forEach((m) => S.addEventListener(m, h, C)), () => g.forEach((m) => S.removeEventListener(m, h, C));
272
+ }, [c, l, a, s]);
273
273
  const V = A(
274
274
  () => ({ locked: c, lock: _, unlock: F, setIdleMs: L }),
275
275
  [c]
@@ -288,7 +288,7 @@ const I = {
288
288
  q,
289
289
  {
290
290
  onUnlock: F,
291
- overlayId: u,
291
+ overlayId: a,
292
292
  overlayPosition: f
293
293
  }
294
294
  )
@@ -332,8 +332,8 @@ const I = {
332
332
  length: n,
333
333
  value: r,
334
334
  onChange: (l) => {
335
- const u = (l ?? "").replace(/\D/g, "").slice(0, n);
336
- s(u), u.length === n && e(u);
335
+ const a = (l ?? "").replace(/\D/g, "").slice(0, n);
336
+ s(a), a.length === n && e(a);
337
337
  }
338
338
  }
339
339
  )
@@ -342,13 +342,13 @@ const I = {
342
342
  ] })
343
343
  }
344
344
  );
345
- }, we = () => !1, Ce = () => {
345
+ }, we = () => {
346
346
  const { popups: e, activePopupId: t, setActivePopup: o, closePopup: n, openPopup: r } = W(), s = $(
347
- async (l, u, f) => {
347
+ async (l, a, f) => {
348
348
  try {
349
- await r(l, u, f);
350
- } catch (m) {
351
- throw console.error("팝업 열기 실패:", m), m;
349
+ await r(l, a, f);
350
+ } catch (p) {
351
+ throw console.error("팝업 열기 실패:", p), p;
352
352
  }
353
353
  },
354
354
  [r]
@@ -364,22 +364,21 @@ const I = {
364
364
  };
365
365
  export {
366
366
  ie as AuthProvider,
367
- ue as CommonCodeProvider,
367
+ ae as CommonCodeProvider,
368
368
  he as ScreenProtectProvider,
369
369
  ne as SearchBoxProvider,
370
370
  ee as ServiceCodeProvider,
371
371
  oe as useAllServiceCodes,
372
372
  ce as useAuth,
373
373
  le as useCodeColor,
374
- ae as useCodeList,
375
- pe as useCodeListByOption,
374
+ ue as useCodeList,
375
+ me as useCodeListByOption,
376
376
  de as useCodeName,
377
- k as useCommonCode,
378
- me as useGridLookup,
377
+ P as useCommonCode,
378
+ pe as useGridLookup,
379
379
  fe as useLock,
380
380
  re as useLogServiceCodeConfig,
381
- Ce as usePopup,
382
- we as usePopupContext,
381
+ we as usePopup,
383
382
  se as useSearchBox,
384
383
  O as useServiceCode,
385
384
  te as useServiceCodeValue
@@ -1,6 +1,6 @@
1
1
  import X from "axios";
2
2
  import L from "dayjs";
3
- import { g as Q } from "../chunks/common-components-6bDxIO7h.js";
3
+ import { g as Q } from "../chunks/common-components-CnAjT_Gi.js";
4
4
  import { notification as U, message as _ } from "antd";
5
5
  import { useUserStore as O, useMenuViewStore as ie, useLoadingStore as Z, usePopupLoadingStore as J } from "../stores/index.js";
6
6
  const ce = {
@@ -358,8 +358,8 @@ const ot = /* @__PURE__ */ Q(rt), st = "ui_theme", nt = (e) => typeof e == "stri
358
358
  };
359
359
  async function Wt(e) {
360
360
  const [{ default: t }, { default: r }] = await Promise.all([
361
- import("../chunks/sha256-CX4t6ExL.js").then((o) => o.s),
362
- import("../chunks/enc-base64-D-UXiasf.js").then((o) => o.e)
361
+ import("../chunks/sha256-CsieizMm.js").then((o) => o.s),
362
+ import("../chunks/enc-base64-Ciw6cw8D.js").then((o) => o.e)
363
363
  ]);
364
364
  return t(e).toString(r);
365
365
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bwg-ui/core",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "bankwareglobal UI 라이브러리입니다.",
5
5
  "author": "kyeongdon.park",
6
6
  "license": "ISC",
@@ -49,6 +49,11 @@
49
49
  "import": "./dist/provider/index.js",
50
50
  "require": "./dist/provider/index.cjs"
51
51
  },
52
+ "./popup": {
53
+ "types": "./dist/components/popup/index.d.ts",
54
+ "import": "./dist/components/popup/index.js",
55
+ "require": "./dist/components/popup/index.cjs"
56
+ },
52
57
  "./styles/*": "./dist/styles/*",
53
58
  "./public/*": "./dist/public/*",
54
59
  "./package.json": "./package.json"