@bwg-ui/core 1.2.6 → 1.2.8

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 (77) hide show
  1. package/README.md +28 -0
  2. package/dist/chunks/MenuReport-CiL4ggPy.js +1244 -0
  3. package/dist/chunks/MenuReport-DIkKwvta.cjs +1 -0
  4. package/dist/chunks/common-components-B4mah7DM.cjs +183 -0
  5. package/dist/chunks/{common-components-CnAjT_Gi.js → common-components-G-FELsbw.js} +7510 -7094
  6. package/dist/chunks/{core-MOICJvq5.cjs → core-CXP75zcn.cjs} +1 -1
  7. package/dist/chunks/{core-C5T-8H8j.js → core-pjW5SaWA.js} +13 -13
  8. package/dist/chunks/{enc-base64-8MLFBYmR.cjs → enc-base64-Bg9x86kU.cjs} +1 -1
  9. package/dist/chunks/{enc-base64-Ciw6cw8D.js → enc-base64-DtP_G7ev.js} +2 -2
  10. package/dist/chunks/layout-components-De-k79AV.cjs +35 -0
  11. package/dist/chunks/layout-components-mRRx1BIz.js +1616 -0
  12. package/dist/chunks/{sha256-CsieizMm.js → sha256-BTxiV_cX.js} +2 -2
  13. package/dist/chunks/{sha256-CpH38gS4.cjs → sha256-CFa0dyCj.cjs} +1 -1
  14. package/dist/components/common/ButtonAccessController.d.ts +5 -0
  15. package/dist/components/common/ButtonAccessController.d.ts.map +1 -0
  16. package/dist/components/common/BwgEditor.d.ts +3 -3
  17. package/dist/components/common/BwgEditor.d.ts.map +1 -1
  18. package/dist/components/common/BwgPopup.d.ts +15 -0
  19. package/dist/components/common/BwgPopup.d.ts.map +1 -1
  20. package/dist/components/common/BwgView.d.ts +2 -23
  21. package/dist/components/common/BwgView.d.ts.map +1 -1
  22. package/dist/components/common/SearchBox.d.ts +1 -57
  23. package/dist/components/common/SearchBox.d.ts.map +1 -1
  24. package/dist/components/common/index.cjs +1 -1
  25. package/dist/components/common/index.d.ts +5 -3
  26. package/dist/components/common/index.d.ts.map +1 -1
  27. package/dist/components/common/index.js +24 -23
  28. package/dist/components/common/type.d.ts +132 -0
  29. package/dist/components/common/type.d.ts.map +1 -0
  30. package/dist/components/guide/index.cjs +1 -1
  31. package/dist/components/guide/index.js +1 -1
  32. package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
  33. package/dist/components/layout/default/LocalPopupContainer.d.ts +3 -0
  34. package/dist/components/layout/default/LocalPopupContainer.d.ts.map +1 -0
  35. package/dist/components/layout/default/PopupContainer.d.ts.map +1 -1
  36. package/dist/components/layout/index.cjs +1 -35
  37. package/dist/components/layout/index.js +13 -1558
  38. package/dist/components/popup/MenuReport.d.ts +2 -5
  39. package/dist/components/popup/MenuReport.d.ts.map +1 -1
  40. package/dist/components/popup/SearchDepartmentP01.d.ts +4 -5
  41. package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
  42. package/dist/components/popup/SearchDepartmentP02.d.ts +3 -5
  43. package/dist/components/popup/SearchDepartmentP02.d.ts.map +1 -1
  44. package/dist/components/popup/SearchEmployeeP01.d.ts +3 -1
  45. package/dist/components/popup/SearchEmployeeP01.d.ts.map +1 -1
  46. package/dist/components/popup/SearchEmployeeP02.d.ts +3 -1
  47. package/dist/components/popup/SearchEmployeeP02.d.ts.map +1 -1
  48. package/dist/components/popup/SearchOrganizationP01.d.ts +2 -4
  49. package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
  50. package/dist/components/popup/SearchOrganizationP02.d.ts +3 -4
  51. package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
  52. package/dist/components/popup/config/localPopupRegistry.d.ts +8 -0
  53. package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -0
  54. package/dist/components/popup/index.cjs +1 -1
  55. package/dist/components/popup/index.d.ts +2 -4
  56. package/dist/components/popup/index.d.ts.map +1 -1
  57. package/dist/components/popup/index.js +5 -1739
  58. package/dist/index.cjs +1 -1
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +154 -147
  62. package/dist/provider/hooks/usePopup.d.ts +1 -0
  63. package/dist/provider/hooks/usePopup.d.ts.map +1 -1
  64. package/dist/provider/index.cjs +1 -1
  65. package/dist/provider/index.js +205 -188
  66. package/dist/stores/index.cjs +2 -2
  67. package/dist/stores/index.js +253 -200
  68. package/dist/stores/popupStore.d.ts +9 -1
  69. package/dist/stores/popupStore.d.ts.map +1 -1
  70. package/dist/utils/gwUtils.d.ts +23 -0
  71. package/dist/utils/gwUtils.d.ts.map +1 -0
  72. package/dist/utils/index.cjs +1 -1
  73. package/dist/utils/index.d.ts +9 -8
  74. package/dist/utils/index.d.ts.map +1 -1
  75. package/dist/utils/index.js +588 -486
  76. package/package.json +4 -4
  77. 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.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"),i=require("./stores/index.cjs"),o=require("./chunks/common-components-B4mah7DM.cjs"),r=require("./components/core/index.cjs"),s=require("./chunks/layout-components-De-k79AV.cjs"),t=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.submitGwApproval=e.submitGwApproval;exports.throttle=e.throttle;exports.toCamelCase=e.toCamelCase;exports.uploadFilesViaSftp=e.uploadFilesViaSftp;exports.userUtils=e.userUtils;exports.verifyClientIp=e.verifyClientIp;exports.useCode=i.useCode;exports.useCodeStore=i.useCodeStore;exports.useColorStore=i.useColorStore;exports.useFavorite=i.useFavorite;exports.useFavoriteStore=i.useFavoriteStore;exports.useLoadingStore=i.useLoadingStore;exports.useMenuModel=i.useMenuModel;exports.useMenuModelStore=i.useMenuModelStore;exports.useMenuView=i.useMenuView;exports.useMenuViewStore=i.useMenuViewStore;exports.useOptionStore=i.useOptionStore;exports.usePopupLoadingStore=i.usePopupLoadingStore;exports.usePopupState=i.usePopupState;exports.usePopupStore=i.usePopupStore;exports.useUser=i.useUser;exports.useUserStore=i.useUserStore;exports.ButtonAccessController=o.ButtonAccessController;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=t.AuthProvider;exports.CommonCodeProvider=t.CommonCodeProvider;exports.ScreenProtectProvider=t.ScreenProtectProvider;exports.SearchBoxProvider=t.SearchBoxProvider;exports.ServiceCodeProvider=t.ServiceCodeProvider;exports.useAllServiceCodes=t.useAllServiceCodes;exports.useAuth=t.useAuth;exports.useCodeColor=t.useCodeColor;exports.useCodeList=t.useCodeList;exports.useCodeListByOption=t.useCodeListByOption;exports.useCodeName=t.useCodeName;exports.useCommonCode=t.useCommonCode;exports.useGridLookup=t.useGridLookup;exports.useLock=t.useLock;exports.useLogServiceCodeConfig=t.useLogServiceCodeConfig;exports.usePopup=t.usePopup;exports.useSearchBox=t.useSearchBox;exports.useServiceCode=t.useServiceCode;exports.useServiceCodeValue=t.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,75 +1,80 @@
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";
1
+ import { ApiError as r, THEME_COOKIE_NAME as s, apiDelete as a, apiGet as t, apiPatch as i, apiPost as n, apiPut as g, apiUtils as l, arrAverage as u, arrCount as d, arrMax as p, arrMin as c, 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 A, commonUtils as D, configureEnvUtils as E, copyToClipboard as b, debounce as L, deleteCookie as y, 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 se, getUserId as ae, getUserInfo as te, getUserNm as ie, hasAllRoles as ne, hasAnyRole as ge, hasRole as le, hasUserInfo as ue, isArray as de, isBoolean as pe, isDesktop as ce, 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 Ae, isProd as De, isSafeEmpty as Ee, isString as be, isTablet as Le, isUndefined as ye, 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 so, showSaveError as ao, showSaveSuccess as to, showSuccess as io, showWarning as no, submitGwApproval as go, throttle as lo, toCamelCase as uo, uploadFilesViaSftp as po, userUtils as co, verifyClientIp as So } from "./utils/index.js";
2
+ import { useCode as Co, useCodeStore as Bo, useColorStore as mo, useFavorite as vo, useFavoriteStore as fo, useLoadingStore as ho, useMenuModel as Po, useMenuModelStore as Uo, useMenuView as Ao, useMenuViewStore as Do, useOptionStore as Eo, usePopupLoadingStore as bo, usePopupState as Lo, usePopupStore as yo, useUser as Mo, useUserStore as Io } from "./stores/index.js";
3
+ import { j as xo, k as Ro, l as No, m as Oo, B as To, n as Fo, o as Go, i as Vo, f as Wo, p as qo, h as zo, e as Ho, q as _o, a as jo, r as Ko, s as Qo, t as Yo, u as Jo, C as Xo, v as Zo, G as $o, Q as er, w as or, S as rr, x as sr, y as ar, z as tr, A as ir, d as nr } from "./chunks/common-components-G-FELsbw.js";
4
+ import { BwgButton as lr, BwgCheck as ur, BwgCheckList as dr, BwgDatePicker as pr, BwgDownload as cr, BwgForm as Sr, BwgFormItem as wr, BwgInput as Cr, BwgLargeUploader as Br, BwgMaskedInput as mr, BwgMaskedPicker as vr, BwgMultiSelect as fr, BwgNumber as hr, BwgRadio as Pr, BwgRangePicker as Ur, BwgSearch as Ar, BwgSelect as Dr, BwgSwitch as Er, BwgTextArea as br, BwgUploader as Lr } from "./components/core/index.js";
5
+ import { A as Mr, B as Ir, a as kr, c as xr, d as Rr, e as Nr, f as Or, C as Tr, b as Fr, L as Gr, P as Vr, g as Wr } from "./chunks/layout-components-mRRx1BIz.js";
6
+ import { AuthProvider as zr, CommonCodeProvider as Hr, ScreenProtectProvider as _r, SearchBoxProvider as jr, ServiceCodeProvider as Kr, useAllServiceCodes as Qr, useAuth as Yr, useCodeColor as Jr, useCodeList as Xr, useCodeListByOption as Zr, useCodeName as $r, useCommonCode as es, useGridLookup as os, useLock as rs, useLogServiceCodeConfig as ss, usePopup as as, useSearchBox as ts, useServiceCode as is, useServiceCodeValue as ns } from "./provider/index.js";
7
7
  export {
8
8
  r as ApiError,
9
- Ur as AppWrapper,
10
- Tr as AuthProvider,
11
- rr as BwgButton,
12
- Io as BwgButtonGroup,
13
- ir as BwgCheck,
14
- tr as BwgCheckList,
15
- ko as BwgCmptArea,
16
- xo as BwgCol,
17
- Ro as BwgConfigProvider,
18
- sr as BwgDatePicker,
19
- No as BwgDetail,
20
- ar as BwgDownload,
21
- To as BwgDrawer,
22
- Oo as BwgEditor,
23
- nr as BwgForm,
24
- gr as BwgFormItem,
25
- Fo as BwgGrid,
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
- wr as BwgNumber,
33
- Vo as BwgPagination,
34
- Wo as BwgPopup,
35
- Er as BwgPortal01,
36
- br as BwgPortal02,
37
- Cr as BwgRadio,
38
- Sr as BwgRangePicker,
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,
58
- Jo as GlobalConfigProvider,
59
- Ir as LandingContainer,
60
- kr as LoadingContainer,
61
- xr as PopupContainer,
62
- Rr as ProtectWrapper,
63
- Xo as QuickServiceToggle,
64
- Zo as SSOHandler,
65
- Fr as ScreenProtectProvider,
66
- $o as SearchBox,
67
- Gr as SearchBoxProvider,
68
- Vr as ServiceCodeProvider,
69
- i as THEME_COOKIE_NAME,
70
- t as apiDelete,
71
- s as apiGet,
72
- a as apiPatch,
9
+ Mr as AppWrapper,
10
+ zr as AuthProvider,
11
+ xo as ButtonAccessController,
12
+ lr as BwgButton,
13
+ Ro as BwgButtonGroup,
14
+ ur as BwgCheck,
15
+ dr as BwgCheckList,
16
+ No as BwgCmptArea,
17
+ Oo as BwgCol,
18
+ To as BwgConfigProvider,
19
+ pr as BwgDatePicker,
20
+ Fo as BwgDetail,
21
+ cr as BwgDownload,
22
+ Go as BwgDrawer,
23
+ Vo as BwgEditor,
24
+ Sr as BwgForm,
25
+ wr as BwgFormItem,
26
+ Wo as BwgGrid,
27
+ qo as BwgInfoArea,
28
+ Cr as BwgInput,
29
+ Br as BwgLargeUploader,
30
+ mr as BwgMaskedInput,
31
+ vr as BwgMaskedPicker,
32
+ fr as BwgMultiSelect,
33
+ hr as BwgNumber,
34
+ zo as BwgPagination,
35
+ Ho as BwgPopup,
36
+ Ir as BwgPortal01,
37
+ kr as BwgPortal02,
38
+ Pr as BwgRadio,
39
+ Ur as BwgRangePicker,
40
+ _o as BwgRow,
41
+ Ar as BwgSearch,
42
+ Dr as BwgSelect,
43
+ jo as BwgSpace,
44
+ Er as BwgSwitch,
45
+ Ko as BwgTable,
46
+ Qo as BwgTabs,
47
+ br as BwgTextArea,
48
+ Yo as BwgTitleBox,
49
+ Lr as BwgUploader,
50
+ Jo as BwgView,
51
+ Hr as CommonCodeProvider,
52
+ xr as ConfigurableContent,
53
+ Rr as ConfigurableHeader,
54
+ Nr as ConfigurableMenuTab,
55
+ Or as ConfigurableSidebar,
56
+ Xo as ContentBox,
57
+ Tr as ContentContainer,
58
+ Zo as ContentLayOut,
59
+ $o as GlobalConfigProvider,
60
+ Fr as LandingContainer,
61
+ Gr as LoadingContainer,
62
+ Vr as PopupContainer,
63
+ Wr as ProtectWrapper,
64
+ er as QuickServiceToggle,
65
+ or as SSOHandler,
66
+ _r as ScreenProtectProvider,
67
+ rr as SearchBox,
68
+ jr as SearchBoxProvider,
69
+ sr as SearchDepartmentP01,
70
+ ar as SearchDepartmentP02,
71
+ tr as SearchOrganizationP01,
72
+ ir as SearchOrganizationP02,
73
+ Kr as ServiceCodeProvider,
74
+ s as THEME_COOKIE_NAME,
75
+ a as apiDelete,
76
+ t as apiGet,
77
+ i as apiPatch,
73
78
  n as apiPost,
74
79
  g as apiPut,
75
80
  l as apiUtils,
@@ -77,9 +82,9 @@ export {
77
82
  d as arrCount,
78
83
  p as arrMax,
79
84
  c as arrMin,
80
- w as arrReverse,
81
- C as arrSum,
82
- S as arrUnique,
85
+ S as arrReverse,
86
+ w as arrSum,
87
+ C as arrUnique,
83
88
  B as bwgUtils,
84
89
  m as callService,
85
90
  v as callService_SYSCD,
@@ -87,33 +92,33 @@ export {
87
92
  h as clearSessionStorage,
88
93
  P as closeAllMessages,
89
94
  U as closeMessage,
90
- E as closeNotification,
91
- b as commonUtils,
92
- D as configureEnvUtils,
93
- A as copyToClipboard,
94
- er as createBwgGridRenderer,
95
+ A as closeNotification,
96
+ D as commonUtils,
97
+ E as configureEnvUtils,
98
+ b as copyToClipboard,
99
+ nr as createBwgGridRenderer,
95
100
  L as debounce,
96
- M as deleteCookie,
97
- y as destroyNotifications,
101
+ y as deleteCookie,
102
+ M as destroyNotifications,
98
103
  I as downloadByFileKey,
99
104
  k as downloadFile,
100
105
  x as duplicates,
101
106
  R as encryptSha256,
102
107
  N as envUtils,
103
- T as fileUtils,
104
- O as generateRandomColor,
108
+ O as fileUtils,
109
+ T as generateRandomColor,
105
110
  F as generateRandomString,
106
111
  G as generateUID,
107
112
  V as getAllServiceCodes,
108
113
  W as getClientIp,
109
114
  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,
115
+ z as getCrprCd,
116
+ H as getCurrentDate,
117
+ _ as getCurrentDateString,
118
+ j as getDepartmentInfo,
119
+ K as getDeviceType,
120
+ Q as getDisplayName,
121
+ Y as getDprtCd,
117
122
  J as getDprtNm,
118
123
  X as getEmplNo,
119
124
  Z as getEnvCode,
@@ -121,10 +126,10 @@ export {
121
126
  ee as getRoleList,
122
127
  oe as getServiceCode,
123
128
  re as getSessionStorage,
124
- ie as getUserDvsn,
125
- te as getUserId,
126
- se as getUserInfo,
127
- ae as getUserNm,
129
+ se as getUserDvsn,
130
+ ae as getUserId,
131
+ te as getUserInfo,
132
+ ie as getUserNm,
128
133
  ne as hasAllRoles,
129
134
  ge as hasAnyRole,
130
135
  le as hasRole,
@@ -132,9 +137,9 @@ export {
132
137
  de as isArray,
133
138
  pe as isBoolean,
134
139
  ce as isDesktop,
135
- we as isDev,
136
- Ce as isEmpty,
137
- Se as isEmptyArray,
140
+ Se as isDev,
141
+ we as isEmpty,
142
+ Ce as isEmptyArray,
138
143
  Be as isFunction,
139
144
  me as isLocal,
140
145
  ve as isLoggedIn,
@@ -142,32 +147,32 @@ export {
142
147
  he as isNull,
143
148
  Pe as isNullOrUndefined,
144
149
  Ue as isNumber,
145
- Ee as isObject,
146
- be as isProd,
147
- De as isSafeEmpty,
148
- Ae as isString,
150
+ Ae as isObject,
151
+ De as isProd,
152
+ Ee as isSafeEmpty,
153
+ be as isString,
149
154
  Le as isTablet,
150
- Me as isUndefined,
151
- ye as isValidEmail,
155
+ ye as isUndefined,
156
+ Me as isValidEmail,
152
157
  Ie as isValidUrl,
153
158
  ke as logServiceCodeConfig,
154
159
  xe as messageUtils,
155
160
  Re as notiBwgError,
156
161
  Ne as notiError,
157
- Te as notiInfo,
158
- Oe as notiSuccess,
162
+ Oe as notiInfo,
163
+ Te as notiSuccess,
159
164
  Fe as notiWarning,
160
165
  Ge as notificationService,
161
166
  Ve as notificationUtils,
162
167
  We as padLeft,
163
168
  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,
169
+ ze as random,
170
+ He as realFormat,
171
+ _e as removeSessionStorage,
172
+ je as round,
173
+ Ke as serviceUtils,
174
+ Qe as setClientIp,
175
+ Ye as setCookie,
171
176
  Je as setServiceCodeOverrides,
172
177
  Xe as setSessionStorage,
173
178
  Ze as showApiError,
@@ -175,43 +180,45 @@ export {
175
180
  eo as showError,
176
181
  oo as showInfo,
177
182
  ro as showLoading,
178
- io as showRequiredError,
179
- to as showSaveError,
180
- so as showSaveSuccess,
181
- ao as showSuccess,
183
+ so as showRequiredError,
184
+ ao as showSaveError,
185
+ to as showSaveSuccess,
186
+ io as showSuccess,
182
187
  no as showWarning,
183
- go as throttle,
184
- lo as toCamelCase,
185
- Wr as useAllServiceCodes,
186
- qr as useAuth,
187
- wo as useCode,
188
- Hr as useCodeColor,
189
- _r as useCodeList,
190
- jr as useCodeListByOption,
191
- Kr as useCodeName,
192
- Co as useCodeStore,
193
- So as useColorStore,
194
- Qr as useCommonCode,
195
- Bo as useFavorite,
196
- mo as useFavoriteStore,
197
- Yr as useGridLookup,
198
- vo as useLoadingStore,
199
- zr as useLock,
200
- Jr as useLogServiceCodeConfig,
201
- fo as useMenuModel,
202
- ho as useMenuModelStore,
203
- Po as useMenuView,
204
- Uo as useMenuViewStore,
188
+ go as submitGwApproval,
189
+ lo as throttle,
190
+ uo as toCamelCase,
191
+ po as uploadFilesViaSftp,
192
+ Qr as useAllServiceCodes,
193
+ Yr as useAuth,
194
+ Co as useCode,
195
+ Jr as useCodeColor,
196
+ Xr as useCodeList,
197
+ Zr as useCodeListByOption,
198
+ $r as useCodeName,
199
+ Bo as useCodeStore,
200
+ mo as useColorStore,
201
+ es as useCommonCode,
202
+ vo as useFavorite,
203
+ fo as useFavoriteStore,
204
+ os as useGridLookup,
205
+ ho as useLoadingStore,
206
+ rs as useLock,
207
+ ss as useLogServiceCodeConfig,
208
+ Po as useMenuModel,
209
+ Uo as useMenuModelStore,
210
+ Ao as useMenuView,
211
+ Do as useMenuViewStore,
205
212
  Eo as useOptionStore,
206
- Xr as usePopup,
213
+ as as usePopup,
207
214
  bo as usePopupLoadingStore,
208
- Do as usePopupState,
209
- Ao as usePopupStore,
210
- Zr as useSearchBox,
211
- $r as useServiceCode,
212
- ei as useServiceCodeValue,
213
- Lo as useUser,
214
- Mo as useUserStore,
215
- uo as userUtils,
216
- po as verifyClientIp
215
+ Lo as usePopupState,
216
+ yo as usePopupStore,
217
+ ts as useSearchBox,
218
+ is as useServiceCode,
219
+ ns as useServiceCodeValue,
220
+ Mo as useUser,
221
+ Io as useUserStore,
222
+ co as userUtils,
223
+ So as verifyClientIp
217
224
  };
@@ -8,6 +8,7 @@ export declare const usePopup: () => {
8
8
  setActivePopup: (popupId: string) => void;
9
9
  closePopup: (popupId: string) => void;
10
10
  showPopup: (popupCode: string, popParams?: any, config?: PopupConfig) => Promise<void>;
11
+ openCorePopup: (localCode: string, popParams?: any, config?: PopupConfig) => void;
11
12
  isPopup: boolean;
12
13
  };
13
14
  //# sourceMappingURL=usePopup.d.ts.map
@@ -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;;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;;;;;2BAYC,MAAM,cAAc,GAAG,WAAW,WAAW;+BAanD,MAAM,cAAc,GAAG,WAAW,WAAW;;CAoB5D,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=()=>{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
+ "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"),b={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 i={serviceCodes:t,getServiceCode:r=>{if(t[r]&&t[r].trim()!=="")return console.log(`🔧 Provider 설정 사용: ${r} = ${t[r]}`),t[r];const u=b[r];return console.log(`🔧 기본값 사용: ${r} = ${u}`),u}};return l.jsx(B.Provider,{value:i,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(b))t[o]=e(o);return t},$=()=>{const{getServiceCode:e}=y();console.log("🔧 bwg-core 서비스코드 설정:"),console.log("📋 Provider 설정 > 기본값 순서로 확인");for(const t of Object.keys(b)){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},W=()=>{const{popups:e,activePopupId:t,setActivePopup:o,closePopup:i,openPopup:r,openCorePopup:u}=O.usePopupStore(),C=n.useCallback(async(h,m,c)=>{try{await r(h,m,c)}catch(s){throw console.error("팝업 열기 실패:",s),s}},[r]),a=n.useCallback((h,m,c)=>{try{u(h,m,c)}catch(s){throw console.error("로컬 팝업 열기 실패:",s),s}},[u]);return{popups:e,activePopupId:t,setActivePopup:o,closePopup:i,showPopup:C,openCorePopup:a,isPopup:e.length>0}},I=n.createContext(null),z=()=>{const e=n.useContext(I);if(!e)throw new Error("useAuth must be used within AuthProvider");return e},J=({children:e})=>{const[t,o]=n.useState(!1),[i,r]=n.useState(!1),u=async c=>{const s=(await c.text()).trim().toLowerCase();try{const d=JSON.parse(s);if(typeof d=="object"&&d&&(d.ok===!0||d.success===!0))return!0}catch{}return!!["true","ok","1","y"].includes(s)},C=async c=>{r(!0);try{const s=await fetch("/serviceEndpoint/sso_check.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"token="+encodeURIComponent(c)}),d=s.ok&&await u(s);return o(d),d}catch{return!1}finally{r(!1)}},a=async c=>{r(!0);try{const s=await fetch("/serviceEndpoint/sso_reauth.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"pin="+encodeURIComponent(c)});return s.ok&&await u(s)?(o(!0),!0):!1}catch{return!1}finally{r(!1)}},h=()=>{o(!1)},m=n.useMemo(()=>({authed:t,busy:i,verifyWithToken:C,reauthWithPin:a,logout:h}),[t,i]);return l.jsx(I.Provider,{value:m,children:e})},F=n.createContext(void 0),Q=({children:e})=>{const{codeData:t,isLoading:o,error:i,lastUpdated:r,getCodeList:u,getCodeListByOption:C,getCodeName:a,getCodeColor:h,getCodeByOption:m,getAvailableGroupCodes:c,getGridLookup:s,fetchCommonCodes:d}=O.useCodeStore(),k={codeData:t,isLoading:o,error:i,lastUpdated:r,getCodeList:u,getCodeListByOption:C,getCodeName:a,getCodeColor:h,getCodeByOption:m,getAvailableGroupCodes:c,getGridLookup:s,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},X=()=>{const{getCodeList:e,isLoading:t,error:o}=f();return{getCodeList:e,isLoading:t,error:o}},Y=()=>{const{getCodeName:e,isLoading:t,error:o}=f();return{getCodeName:e,isLoading:t,error:o}},Z=()=>{const{getCodeColor:e,isLoading:t,error:o}=f();return{getCodeColor:e,isLoading:t,error:o}},K=()=>{const{getCodeListByOption:e,isLoading:t,error:o}=f();return{getCodeListByOption:e,isLoading:t,error:o}},ee=()=>{const{getGridLookup:e,isLoading:t,error:o}=f();return{getGridLookup:e,isLoading:t,error:o}},N=n.createContext(null),te=()=>{const e=n.useContext(N);if(!e)throw new Error("useLock must be used within ScreenProtectProvider");return e},oe=({children:e,idleMs:t=1e4,onUnlock:o,persistLocked:i=!0,storageKey:r="inactivityLocked",eventTarget:u,overlayScope:C="global",overlayId:a="lock-overlay-root",overlayPosition:h="fixed"})=>{const m=i&&typeof window<"u"&&window.localStorage.getItem(r)==="1",[c,s]=n.useState(m),[d,k]=n.useState(t),P=Number.isFinite(d)&&d>0,w=n.useRef(null),T=()=>{try{i&&window.localStorage.setItem(r,"1")}catch{}s(!0)},E=async v=>{if(!(o&&!await o(v))){try{i&&window.localStorage.removeItem(r)}catch{}s(!1),P&&L()}},R=()=>{try{i&&window.localStorage.setItem(r,"1")}catch{}s(!0)},L=()=>{P&&(w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{R()},d))};n.useEffect(()=>{if(!P)return;const v=()=>{c||L()},x={passive:!0},S=["pointermove","pointerdown","keydown","wheel","touchstart"],g=u??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,c,u,P]),n.useEffect(()=>{if(!c)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"?u??window:window;return S.forEach(p=>g.addEventListener(p,v,x)),()=>S.forEach(p=>g.removeEventListener(p,v,x))},[c,C,a,u]);const D=n.useMemo(()=>({locked:c,lock:T,unlock:E,setIdleMs:k}),[c]);return l.jsxs(N.Provider,{value:D,children:[l.jsx("div",{style:{width:"100%",height:"100%"},...c?{inert:""}:{},...c?{"aria-hidden":!0}:{},children:e}),c&&l.jsx(re,{onUnlock:E,overlayId:a,overlayPosition:h})]})},re=({onUnlock:e,overlayId:t="lock-overlay-root",overlayPosition:o="fixed"})=>{const[i]=n.useState(4),[r,u]=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:i,value:r,onChange:C=>{const a=(C??"").replace(/\D/g,"").slice(0,i);u(a),a.length===i&&e(a)}})})]})})};exports.AuthProvider=J;exports.CommonCodeProvider=Q;exports.ScreenProtectProvider=oe;exports.SearchBoxProvider=q;exports.ServiceCodeProvider=_;exports.useAllServiceCodes=V;exports.useAuth=z;exports.useCodeColor=Z;exports.useCodeList=X;exports.useCodeListByOption=K;exports.useCodeName=Y;exports.useCommonCode=f;exports.useGridLookup=ee;exports.useLock=te;exports.useLogServiceCodeConfig=$;exports.usePopup=W;exports.useSearchBox=H;exports.useServiceCode=y;exports.useServiceCodeValue=G;