@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.
- package/README.md +28 -0
- package/dist/chunks/MenuReport-CiL4ggPy.js +1244 -0
- package/dist/chunks/MenuReport-DIkKwvta.cjs +1 -0
- package/dist/chunks/common-components-B4mah7DM.cjs +183 -0
- package/dist/chunks/{common-components-CnAjT_Gi.js → common-components-G-FELsbw.js} +7510 -7094
- package/dist/chunks/{core-MOICJvq5.cjs → core-CXP75zcn.cjs} +1 -1
- package/dist/chunks/{core-C5T-8H8j.js → core-pjW5SaWA.js} +13 -13
- package/dist/chunks/{enc-base64-8MLFBYmR.cjs → enc-base64-Bg9x86kU.cjs} +1 -1
- package/dist/chunks/{enc-base64-Ciw6cw8D.js → enc-base64-DtP_G7ev.js} +2 -2
- package/dist/chunks/layout-components-De-k79AV.cjs +35 -0
- package/dist/chunks/layout-components-mRRx1BIz.js +1616 -0
- package/dist/chunks/{sha256-CsieizMm.js → sha256-BTxiV_cX.js} +2 -2
- package/dist/chunks/{sha256-CpH38gS4.cjs → sha256-CFa0dyCj.cjs} +1 -1
- package/dist/components/common/ButtonAccessController.d.ts +5 -0
- package/dist/components/common/ButtonAccessController.d.ts.map +1 -0
- package/dist/components/common/BwgEditor.d.ts +3 -3
- package/dist/components/common/BwgEditor.d.ts.map +1 -1
- package/dist/components/common/BwgPopup.d.ts +15 -0
- package/dist/components/common/BwgPopup.d.ts.map +1 -1
- package/dist/components/common/BwgView.d.ts +2 -23
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/SearchBox.d.ts +1 -57
- package/dist/components/common/SearchBox.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.d.ts +5 -3
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +24 -23
- package/dist/components/common/type.d.ts +132 -0
- package/dist/components/common/type.d.ts.map +1 -0
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/default/LocalPopupContainer.d.ts +3 -0
- package/dist/components/layout/default/LocalPopupContainer.d.ts.map +1 -0
- package/dist/components/layout/default/PopupContainer.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -35
- package/dist/components/layout/index.js +13 -1558
- package/dist/components/popup/MenuReport.d.ts +2 -5
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP01.d.ts +4 -5
- package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP02.d.ts +3 -5
- package/dist/components/popup/SearchDepartmentP02.d.ts.map +1 -1
- package/dist/components/popup/SearchEmployeeP01.d.ts +3 -1
- package/dist/components/popup/SearchEmployeeP01.d.ts.map +1 -1
- package/dist/components/popup/SearchEmployeeP02.d.ts +3 -1
- package/dist/components/popup/SearchEmployeeP02.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts +2 -4
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP02.d.ts +3 -4
- package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
- package/dist/components/popup/config/localPopupRegistry.d.ts +8 -0
- package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -0
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +2 -4
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +5 -1739
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +154 -147
- package/dist/provider/hooks/usePopup.d.ts +1 -0
- package/dist/provider/hooks/usePopup.d.ts.map +1 -1
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +205 -188
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +253 -200
- package/dist/stores/popupStore.d.ts +9 -1
- package/dist/stores/popupStore.d.ts.map +1 -1
- package/dist/utils/gwUtils.d.ts +23 -0
- package/dist/utils/gwUtils.d.ts.map +1 -0
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +9 -8
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +588 -486
- package/package.json +4 -4
- 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"),
|
|
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
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AAGpC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,75 +1,80 @@
|
|
|
1
|
-
import { ApiError as r, THEME_COOKIE_NAME as
|
|
2
|
-
import { useCode as
|
|
3
|
-
import {
|
|
4
|
-
import { BwgButton as
|
|
5
|
-
import {
|
|
6
|
-
import { AuthProvider as
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
97
|
-
|
|
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
|
-
|
|
104
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
Ae as isObject,
|
|
151
|
+
De as isProd,
|
|
152
|
+
Ee as isSafeEmpty,
|
|
153
|
+
be as isString,
|
|
149
154
|
Le as isTablet,
|
|
150
|
-
|
|
151
|
-
|
|
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
|
-
|
|
158
|
-
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
183
|
+
so as showRequiredError,
|
|
184
|
+
ao as showSaveError,
|
|
185
|
+
to as showSaveSuccess,
|
|
186
|
+
io as showSuccess,
|
|
182
187
|
no as showWarning,
|
|
183
|
-
go as
|
|
184
|
-
lo as
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
Po as
|
|
204
|
-
Uo as
|
|
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
|
-
|
|
213
|
+
as as usePopup,
|
|
207
214
|
bo as usePopupLoadingStore,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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;;;;;
|
|
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"}
|
package/dist/provider/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),O=require("../stores/index.cjs"),l=require("react/jsx-runtime"),M=require("antd"),U=require("../utils/index.cjs"),
|
|
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;
|