@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.
Files changed (38) hide show
  1. package/dist/chunks/{common-components-CnAjT_Gi.js → common-components-BiUtYMIt.js} +7287 -5555
  2. package/dist/chunks/common-components-DyOLtUJx.cjs +183 -0
  3. package/dist/chunks/{core-MOICJvq5.cjs → core-CF_HWm44.cjs} +1 -1
  4. package/dist/chunks/{core-C5T-8H8j.js → core-Cb5dF0QU.js} +13 -13
  5. package/dist/chunks/{enc-base64-8MLFBYmR.cjs → enc-base64-CAxIzedh.cjs} +1 -1
  6. package/dist/chunks/{enc-base64-Ciw6cw8D.js → enc-base64-Dy-3zKzn.js} +2 -2
  7. package/dist/chunks/{sha256-CsieizMm.js → sha256-DKma8qua.js} +2 -2
  8. package/dist/chunks/{sha256-CpH38gS4.cjs → sha256-DbQnwvPn.cjs} +1 -1
  9. package/dist/components/common/index.cjs +1 -1
  10. package/dist/components/common/index.js +8 -8
  11. package/dist/components/guide/index.cjs +1 -1
  12. package/dist/components/guide/index.js +1 -1
  13. package/dist/components/layout/index.cjs +1 -1
  14. package/dist/components/layout/index.js +1 -1
  15. package/dist/components/popup/SearchDepartmentP01.d.ts +21 -1
  16. package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
  17. package/dist/components/popup/SearchDepartmentP02.d.ts +21 -1
  18. package/dist/components/popup/SearchDepartmentP02.d.ts.map +1 -1
  19. package/dist/components/popup/SearchOrganizationP01.d.ts +36 -1
  20. package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
  21. package/dist/components/popup/SearchOrganizationP02.d.ts +36 -1
  22. package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
  23. package/dist/components/popup/index.cjs +1 -1
  24. package/dist/components/popup/index.d.ts +4 -0
  25. package/dist/components/popup/index.d.ts.map +1 -1
  26. package/dist/components/popup/index.js +5 -1738
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +120 -117
  31. package/dist/provider/hooks/usePopup.d.ts +0 -5
  32. package/dist/provider/hooks/usePopup.d.ts.map +1 -1
  33. package/dist/provider/index.cjs +1 -1
  34. package/dist/provider/index.js +60 -61
  35. package/dist/utils/index.cjs +1 -1
  36. package/dist/utils/index.js +3 -3
  37. package/package.json +1 -1
  38. 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-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-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
@@ -1,6 +1,7 @@
1
1
  export * from './components/common';
2
2
  export * from './components/core';
3
3
  export * from './components/layout';
4
+ export * from './components/popup';
4
5
  export * from './utils';
5
6
  export * from './stores';
6
7
  export * from './provider';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAA;AAGnC,cAAc,mBAAmB,CAAA;AAGjC,cAAc,qBAAqB,CAAA;AAGnC,cAAc,SAAS,CAAA;AAGvB,cAAc,UAAU,CAAA;AAGxB,cAAc,YAAY,CAAA"}
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 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 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 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 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 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 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 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 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, 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 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
- Ur as AppWrapper,
10
- Tr as AuthProvider,
11
- rr as BwgButton,
9
+ yr as AppWrapper,
10
+ Vr as AuthProvider,
11
+ ar as BwgButton,
12
12
  Io as BwgButtonGroup,
13
- tr as BwgCheck,
14
- ir as BwgCheckList,
13
+ nr as BwgCheck,
14
+ gr as BwgCheckList,
15
15
  ko as BwgCmptArea,
16
16
  xo as BwgCol,
17
17
  Ro as BwgConfigProvider,
18
- sr as BwgDatePicker,
18
+ lr as BwgDatePicker,
19
19
  No as BwgDetail,
20
- ar as BwgDownload,
21
- To as BwgDrawer,
22
- Oo as BwgEditor,
23
- nr as BwgForm,
24
- gr as BwgFormItem,
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
- lr as BwgInput,
28
- ur as BwgLargeUploader,
29
- dr as BwgMaskedInput,
30
- pr as BwgMaskedPicker,
31
- cr as BwgMultiSelect,
32
- Cr as BwgNumber,
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
- Er as BwgPortal01,
36
- br as BwgPortal02,
37
- wr as BwgRadio,
38
- Sr as BwgRangePicker,
35
+ Ar as BwgPortal01,
36
+ Lr as BwgPortal02,
37
+ vr as BwgRadio,
38
+ fr as BwgRangePicker,
39
39
  qo as BwgRow,
40
- Br as BwgSearch,
41
- mr as BwgSelect,
42
- Ho as BwgSpace,
43
- vr as BwgSwitch,
44
- _o as BwgTable,
45
- jo as BwgTabs,
46
- fr as BwgTextArea,
47
- Ko as BwgTitleBox,
48
- hr as BwgUploader,
49
- Qo as BwgView,
50
- Or as CommonCodeProvider,
51
- Dr as ConfigurableContent,
52
- Ar as ConfigurableHeader,
53
- Lr as ConfigurableMenuTab,
54
- Mr as ConfigurableSidebar,
55
- Yo as ContentBox,
56
- yr as ContentContainer,
57
- zo as ContentLayOut,
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
- Ir as LandingContainer,
60
- kr as LoadingContainer,
61
- xr as PopupContainer,
62
- Rr as ProtectWrapper,
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
- Fr as ScreenProtectProvider,
65
+ qr as ScreenProtectProvider,
66
66
  $o as SearchBox,
67
- Gr as SearchBoxProvider,
68
- Vr as ServiceCodeProvider,
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
- p as arrMax,
79
- c as arrMin,
80
- C as arrReverse,
82
+ c as arrMax,
83
+ p as arrMin,
84
+ S as arrReverse,
81
85
  w as arrSum,
82
- S as arrUnique,
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
- E as closeNotification,
91
- b as commonUtils,
92
- D as configureEnvUtils,
93
- A as copyToClipboard,
94
- er as createBwgGridRenderer,
95
- L as debounce,
96
- M as deleteCookie,
97
- y as destroyNotifications,
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
- T as fileUtils,
104
- O as generateRandomColor,
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
- H as getCrprCd,
111
- _ as getCurrentDate,
112
- j as getCurrentDateString,
113
- K as getDepartmentInfo,
114
- Q as getDeviceType,
115
- Y as getDisplayName,
116
- z as getDprtCd,
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
- pe as isBoolean,
134
- ce as isDesktop,
135
- Ce as isDev,
137
+ ce as isBoolean,
138
+ pe as isDesktop,
139
+ Se as isDev,
136
140
  we as isEmpty,
137
- Se as isEmptyArray,
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
- Ee as isObject,
146
- be as isProd,
147
- De as isSafeEmpty,
148
- Ae as isString,
149
- Le as isTablet,
150
- Me as isUndefined,
151
- ye as isValidEmail,
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
- Te as notiInfo,
158
- Oe as notiSuccess,
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
- He as random,
165
- _e as realFormat,
166
- je as removeSessionStorage,
167
- Ke as round,
168
- Qe as serviceUtils,
169
- Ye as setClientIp,
170
- ze as setCookie,
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
- Wr as useAllServiceCodes,
186
- qr as useAuth,
187
- Co as useCode,
188
- Hr as useCodeColor,
189
- _r as useCodeList,
190
- jr as useCodeListByOption,
191
- Kr as useCodeName,
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
- So as useColorStore,
194
- Qr as useCommonCode,
197
+ Co as useColorStore,
198
+ Xr as useCommonCode,
195
199
  Bo as useFavorite,
196
200
  mo as useFavoriteStore,
197
- Yr as useGridLookup,
201
+ Zr as useGridLookup,
198
202
  vo as useLoadingStore,
199
- zr as useLock,
200
- Jr as useLogServiceCodeConfig,
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
- Eo as useOptionStore,
206
- Xr as usePopup,
207
- Zr as usePopupContext,
208
- bo as usePopupLoadingStore,
209
- Do as usePopupState,
210
- Ao as usePopupStore,
211
- $r as useSearchBox,
212
- et as useServiceCode,
213
- ot as useServiceCodeValue,
214
- Lo as useUser,
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
- po as verifyClientIp
220
+ co as verifyClientIp
218
221
  };
@@ -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;