@bwg-ui/core 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{SSOHandler-C-gPpUbk.js → SSOHandler-Bu3v95k0.js} +2 -2
- package/dist/chunks/{SSOHandler-C-gPpUbk.js.map → SSOHandler-Bu3v95k0.js.map} +1 -1
- package/dist/chunks/{SSOHandler-DcN-_XRB.cjs → SSOHandler-kghWABfM.cjs} +2 -2
- package/dist/chunks/{SSOHandler-DcN-_XRB.cjs.map → SSOHandler-kghWABfM.cjs.map} +1 -1
- package/dist/chunks/menuStore-2zsN-PRt.js +266 -0
- package/dist/chunks/{menuStore-CvQrMo35.js.map → menuStore-2zsN-PRt.js.map} +1 -1
- package/dist/chunks/menuStore-D7zl2c89.cjs +2 -0
- package/dist/chunks/{menuStore-CBvENehP.cjs.map → menuStore-D7zl2c89.cjs.map} +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +1 -1
- package/dist/stores/menuStore.d.ts.map +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -0
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -0
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -0
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -0
- package/package.json +1 -1
- package/dist/chunks/menuStore-CBvENehP.cjs +0 -2
- package/dist/chunks/menuStore-CvQrMo35.js +0 -381
- package/dist/styles/assets/react.svg +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./stores/index.cjs"),o=require("./chunks/SSOHandler-DcN-_XRB.cjs"),p=require("./chunks/BwgSpace-b0hmM1Ht.cjs"),S=require("./chunks/realFormat-Cha7OTd9.cjs"),a=require("./chunks/BwgLargeUploader-xAjj4TQ1.cjs"),l=require("./chunks/PublicLayout-BiTPwkVq.cjs"),e=require("./chunks/commonUtils-L9Jgc5y-.cjs"),t=require("./chunks/serviceConfig-Cc8jfw_Y.cjs"),r=require("./chunks/FileUtils-CmK-zHC5.cjs"),g=require("./chunks/envUtils-CduTHoHu.cjs"),u=require("./chunks/codeStore-BG8S_mdS.cjs"),c=require("./chunks/menuStore-CBvENehP.cjs"),C=require("./chunks/popupStore-BGubYHZh.cjs"),d=require("./chunks/AuthContext-CXng9fj0.cjs"),s=require("./chunks/UtilsContext-5l7yFRQI.cjs"),m=require("./chunks/ScreenProtectContext-ofv2QgMp.cjs"),i=require("./chunks/SearchBoxContext-mcPWk862.cjs");exports.useCode=n.useCode;exports.useFavorite=n.useFavorite;exports.useMenu=n.useMenu;exports.usePopupState=n.usePopupState;exports.useUser=n.useUser;exports.BwgButtonGroup=o.BwgButtonGroup;exports.BwgCmptArea=o.BwgCmptArea;exports.BwgCol=o.BwgCol;exports.BwgConfigProvider=o.BwgConfigProvider;exports.BwgDrawer=o.BwgDrawer;exports.BwgGrid=o.BwgGrid;exports.BwgInfoArea=o.BwgInfoArea;exports.BwgPopup=o.BwgPopup;exports.BwgRow=o.BwgRow;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.BwgSpace=p.BwgSpace;exports.realFormat=S.realFormat;exports.BwgButton=a.BwgButton;exports.BwgCheck=a.BwgCheck;exports.BwgCheckList=a.BwgCheckList;exports.BwgDatePicker=a.BwgDatePicker;exports.BwgForm=a.BwgForm;exports.BwgFormItem=a.BwgFormItem;exports.BwgInput=a.BwgInput;exports.BwgLargeUploader=a.BwgLargeUploader;exports.BwgMaskedInput=a.BwgMaskedInput;exports.BwgMaskedPicker=a.BwgMaskedPicker;exports.BwgMultiSelect=a.BwgMultiSelect;exports.BwgNumber=a.BwgNumber;exports.BwgRadio=a.BwgRadio;exports.BwgRangePicker=a.BwgRangePicker;exports.BwgSearch=a.BwgSearch;exports.BwgSelect=a.BwgSelect;exports.BwgTextArea=a.BwgTextArea;exports.BwgUploader=a.BwgUploader;exports.ProgressOverlay=l.ProgressOverlay;exports.ProtectedLayout=l.ProtectedLayout;exports.PublicLayout=l.PublicLayout;exports.average=e.average;exports.calculateAge=e.calculateAge;exports.chunk=e.chunk;exports.clamp=e.clamp;exports.clearLocalStorage=e.clearLocalStorage;exports.clearSessionStorage=e.clearSessionStorage;exports.copyToClipboard=e.copyToClipboard;exports.count=e.count;exports.debounce=e.debounce;exports.deepClone=e.deepClone;exports.delay=e.delay;exports.difference=e.difference;exports.downloadFile=e.downloadFile;exports.duplicates=e.duplicates;exports.entries=e.entries;exports.find=e.find;exports.findLast=e.findLast;exports.flattenArray=e.flattenArray;exports.flattenDeep=e.flattenDeep;exports.formatDate=e.formatDate;exports.formatDateKST=e.formatDateKST;exports.formatDateKorean=e.formatDateKorean;exports.formatDateTimeKorean=e.formatDateTimeKorean;exports.formatTimeKorean=e.formatTimeKorean;exports.generateRandomColor=e.generateRandomColor;exports.getAllKeys=e.getAllKeys;exports.getCurrentDate=e.getCurrentDate;exports.getCurrentDateString=e.getCurrentDateString;exports.getDateDiff=e.getDateDiff;exports.getDateRange=e.getDateRange;exports.getDateRangeForPicker=e.getDateRangeForPicker;exports.getDeviceType=e.getDeviceType;exports.getLocalStorage=e.getLocalStorage;exports.getMonthEnd=e.getMonthEnd;exports.getMonthStart=e.getMonthStart;exports.getRelativeTime=e.getRelativeTime;exports.getSessionStorage=e.getSessionStorage;exports.getWeekEnd=e.getWeekEnd;exports.getWeekStart=e.getWeekStart;exports.groupBy=e.groupBy;exports.has=e.has;exports.includes=e.includes;exports.intersection=e.intersection;exports.isArray=e.isArray;exports.isBoolean=e.isBoolean;exports.isDesktop=e.isDesktop;exports.isEqual=e.isEqual;exports.isFunction=e.isFunction;exports.isInViewport=e.isInViewport;exports.isMobile=e.isMobile;exports.isNull=e.isNull;exports.isNullOrUndefined=e.isNullOrUndefined;exports.isNumber=e.isNumber;exports.isObject=e.isObject;exports.isString=e.isString;exports.isTablet=e.isTablet;exports.isThisMonth=e.isThisMonth;exports.isThisWeek=e.isThisWeek;exports.isToday=e.isToday;exports.isUndefined=e.isUndefined;exports.isValidDate=e.isValidDate;exports.keys=e.keys;exports.lastIndexOf=e.lastIndexOf;exports.map=e.map;exports.max=e.max;exports.merge=e.merge;exports.min=e.min;exports.omit=e.omit;exports.pick=e.pick;exports.random=e.random;exports.randomChoice=e.randomChoice;exports.randomFromArray=e.randomFromArray;exports.randomInt=e.randomInt;exports.randomMultiple=e.randomMultiple;exports.range=e.range;exports.remove=e.remove;exports.removeAt=e.removeAt;exports.removeEmptyStrings=e.removeEmptyStrings;exports.removeLocalStorage=e.removeLocalStorage;exports.removeNullValues=e.removeNullValues;exports.removeSessionStorage=e.removeSessionStorage;exports.removeWhere=e.removeWhere;exports.round=e.round;exports.scrollToElement=e.scrollToElement;exports.scrollToTop=e.scrollToTop;exports.set=e.set;exports.setLocalStorage=e.setLocalStorage;exports.setSessionStorage=e.setSessionStorage;exports.shuffle=e.shuffle;exports.size=e.size;exports.sortBy=e.sortBy;exports.sortNumbers=e.sortNumbers;exports.sum=e.sum;exports.throttle=e.throttle;exports.union=e.union;exports.unique=e.unique;exports.uniqueBy=e.uniqueBy;exports.values=e.values;exports.apiDelete=t.apiDelete;exports.apiGet=t.apiGet;exports.apiPatch=t.apiPatch;exports.apiPost=t.apiPost;exports.apiPut=t.apiPut;exports.base64Decode=t.base64Decode;exports.base64Encode=t.base64Encode;exports.br2nl=t.br2nl;exports.bxmDecrypt=t.bxmDecrypt;exports.bxmEncrypt=t.bxmEncrypt;exports.callService=t.callService;exports.capitalize=t.capitalize;exports.capitalizeWords=t.capitalizeWords;exports.center=t.center;exports.closeNotification=t.closeNotification;exports.countChar=t.countChar;exports.countWords=t.countWords;exports.destroyNotifications=t.destroyNotifications;exports.encryptSha256=t.encryptSha256;exports.extractNumbers=t.extractNumbers;exports.findPattern=t.findPattern;exports.formatPhoneNumber=t.formatPhoneNumber;exports.generateAlphanumericUID=t.generateAlphanumericUID;exports.generateCustomUID=t.generateCustomUID;exports.generateGUID=t.generateGUID;exports.generateGUIDWithoutHyphens=t.generateGUIDWithoutHyphens;exports.generateLongUID=t.generateLongUID;exports.generateNumericUID=t.generateNumericUID;exports.generateRandomString=t.generateRandomString;exports.generateShortUID=t.generateShortUID;exports.generateTimestampUID=t.generateTimestampUID;exports.generateUID=t.generateUID;exports.getAllServiceCodes=t.getAllServiceCodes;exports.getClientIp=t.getClientIp;exports.getCrprCd=t.getCrprCd;exports.getDepartmentInfo=t.getDepartmentInfo;exports.getDisplayName=t.getDisplayName;exports.getDprtCd=t.getDprtCd;exports.getDprtNm=t.getDprtNm;exports.getEmplNo=t.getEmplNo;exports.getGuid=t.getGuid;exports.getRoleList=t.getRoleList;exports.getServiceCode=t.getServiceCode;exports.getUserDvsn=t.getUserDvsn;exports.getUserId=t.getUserId;exports.getUserInfo=t.getUserInfo;exports.getUserNm=t.getUserNm;exports.hasAllRoles=t.hasAllRoles;exports.hasAnyRole=t.hasAnyRole;exports.hasRole=t.hasRole;exports.hasUserInfo=t.hasUserInfo;exports.isEmpty=t.isEmpty;exports.isLoggedIn=t.isLoggedIn;exports.isSafeEmpty=t.isSafeEmpty;exports.isValidEmail=t.isValidEmail;exports.isValidUrl=t.isValidUrl;exports.md5Hash=t.md5Hash;exports.nl2br=t.nl2br;exports.notificationService=t.notificationService;exports.padLeft=t.padLeft;exports.padRight=t.padRight;exports.removeHtmlTags=t.removeHtmlTags;exports.removeSpecialChars=t.removeSpecialChars;exports.reverse=t.reverse;exports.setClientIp=t.setClientIp;exports.setServiceCodeOverrides=t.setServiceCodeOverrides;exports.sha256Hash=t.sha256Hash;exports.showError=t.showError;exports.showInfo=t.showInfo;exports.showSuccess=t.showSuccess;exports.showWarning=t.showWarning;exports.simpleDecrypt=t.simpleDecrypt;exports.simpleEncrypt=t.simpleEncrypt;exports.toCamelCase=t.toCamelCase;exports.toKebabCase=t.toKebabCase;exports.toSnakeCase=t.toSnakeCase;exports.truncate=t.truncate;exports.useUserStore=t.useUserStore;exports.verifyClientIp=t.verifyClientIp;exports.THEME_COOKIE_NAME=r.THEME_COOKIE_NAME;exports.closeAllMessages=r.closeAllMessages;exports.closeMessage=r.closeMessage;exports.convertImageFormat=r.convertImageFormat;exports.deleteCookie=r.deleteCookie;exports.downloadByFileKey=r.downloadByFileKey;exports.generateSrcSet=r.generateSrcSet;exports.getAvatarImage=r.getAvatarImage;exports.getBackgroundImage=r.getBackgroundImage;exports.getCookie=r.getCookie;exports.getDefaultBackgroundImage=r.getDefaultBackgroundImage;exports.getIconImage=r.getIconImage;exports.getLogoImage=r.getLogoImage;exports.getOptimizedImageUrl=r.getOptimizedImageUrl;exports.handleImageError=r.handleImageError;exports.preloadImage=r.preloadImage;exports.resizeImage=r.resizeImage;exports.setCookie=r.setCookie;exports.showApiError=r.showApiError;exports.showDuplicateError=r.showDuplicateError;exports.showLoading=r.showLoading;exports.showRequiredError=r.showRequiredError;exports.showSaveError=r.showSaveError;exports.showSaveSuccess=r.showSaveSuccess;exports.useImageLoader=r.useImageLoader;exports.getEnvCode=g.getEnvCode;exports.isDev=g.isDev;exports.isLocal=g.isLocal;exports.isProd=g.isProd;exports.useCodeStore=u.useCodeStore;exports.useColorStore=u.useColorStore;exports.useOptionStore=u.useOptionStore;exports.useFavoriteStore=c.useFavoriteStore;exports.useMenuStore=c.useMenuStore;exports.usePopupStore=C.usePopupStore;exports.AuthProvider=d.AuthProvider;exports.useAuth=d.useAuth;exports.CommonCodeProvider=s.CommonCodeProvider;exports.UtilsProvider=s.UtilsProvider;exports.useApiUtils=s.useApiUtils;exports.useArrayUtils=s.useArrayUtils;exports.useCodeColor=s.useCodeColor;exports.useCodeList=s.useCodeList;exports.useCodeListByOption=s.useCodeListByOption;exports.useCodeName=s.useCodeName;exports.useCommonCode=s.useCommonCode;exports.useCommonUtils=s.useCommonUtils;exports.useDateUtils=s.useDateUtils;exports.useGridLookup=s.useGridLookup;exports.usePopup=s.usePopup;exports.usePopupContext=s.usePopupContext;exports.useStringUtils=s.useStringUtils;exports.useUtils=s.useUtils;exports.ScreenProtectProvider=m.ScreenProtectProvider;exports.useLock=m.useLock;exports.SearchBoxProvider=i.SearchBoxProvider;exports.ServiceCodeProvider=i.ServiceCodeProvider;exports.useAllServiceCodes=i.useAllServiceCodes;exports.useLogServiceCodeConfig=i.useLogServiceCodeConfig;exports.useSearchBox=i.useSearchBox;exports.useServiceCode=i.useServiceCode;exports.useServiceCodeValue=i.useServiceCodeValue;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./stores/index.cjs"),o=require("./chunks/SSOHandler-kghWABfM.cjs"),p=require("./chunks/BwgSpace-b0hmM1Ht.cjs"),S=require("./chunks/realFormat-Cha7OTd9.cjs"),a=require("./chunks/BwgLargeUploader-xAjj4TQ1.cjs"),l=require("./chunks/PublicLayout-BiTPwkVq.cjs"),e=require("./chunks/commonUtils-L9Jgc5y-.cjs"),t=require("./chunks/serviceConfig-Cc8jfw_Y.cjs"),r=require("./chunks/FileUtils-CmK-zHC5.cjs"),g=require("./chunks/envUtils-CduTHoHu.cjs"),u=require("./chunks/codeStore-BG8S_mdS.cjs"),c=require("./chunks/menuStore-D7zl2c89.cjs"),C=require("./chunks/popupStore-BGubYHZh.cjs"),d=require("./chunks/AuthContext-CXng9fj0.cjs"),s=require("./chunks/UtilsContext-5l7yFRQI.cjs"),m=require("./chunks/ScreenProtectContext-ofv2QgMp.cjs"),i=require("./chunks/SearchBoxContext-mcPWk862.cjs");exports.useCode=n.useCode;exports.useFavorite=n.useFavorite;exports.useMenu=n.useMenu;exports.usePopupState=n.usePopupState;exports.useUser=n.useUser;exports.BwgButtonGroup=o.BwgButtonGroup;exports.BwgCmptArea=o.BwgCmptArea;exports.BwgCol=o.BwgCol;exports.BwgConfigProvider=o.BwgConfigProvider;exports.BwgDrawer=o.BwgDrawer;exports.BwgGrid=o.BwgGrid;exports.BwgInfoArea=o.BwgInfoArea;exports.BwgPopup=o.BwgPopup;exports.BwgRow=o.BwgRow;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.BwgSpace=p.BwgSpace;exports.realFormat=S.realFormat;exports.BwgButton=a.BwgButton;exports.BwgCheck=a.BwgCheck;exports.BwgCheckList=a.BwgCheckList;exports.BwgDatePicker=a.BwgDatePicker;exports.BwgForm=a.BwgForm;exports.BwgFormItem=a.BwgFormItem;exports.BwgInput=a.BwgInput;exports.BwgLargeUploader=a.BwgLargeUploader;exports.BwgMaskedInput=a.BwgMaskedInput;exports.BwgMaskedPicker=a.BwgMaskedPicker;exports.BwgMultiSelect=a.BwgMultiSelect;exports.BwgNumber=a.BwgNumber;exports.BwgRadio=a.BwgRadio;exports.BwgRangePicker=a.BwgRangePicker;exports.BwgSearch=a.BwgSearch;exports.BwgSelect=a.BwgSelect;exports.BwgTextArea=a.BwgTextArea;exports.BwgUploader=a.BwgUploader;exports.ProgressOverlay=l.ProgressOverlay;exports.ProtectedLayout=l.ProtectedLayout;exports.PublicLayout=l.PublicLayout;exports.average=e.average;exports.calculateAge=e.calculateAge;exports.chunk=e.chunk;exports.clamp=e.clamp;exports.clearLocalStorage=e.clearLocalStorage;exports.clearSessionStorage=e.clearSessionStorage;exports.copyToClipboard=e.copyToClipboard;exports.count=e.count;exports.debounce=e.debounce;exports.deepClone=e.deepClone;exports.delay=e.delay;exports.difference=e.difference;exports.downloadFile=e.downloadFile;exports.duplicates=e.duplicates;exports.entries=e.entries;exports.find=e.find;exports.findLast=e.findLast;exports.flattenArray=e.flattenArray;exports.flattenDeep=e.flattenDeep;exports.formatDate=e.formatDate;exports.formatDateKST=e.formatDateKST;exports.formatDateKorean=e.formatDateKorean;exports.formatDateTimeKorean=e.formatDateTimeKorean;exports.formatTimeKorean=e.formatTimeKorean;exports.generateRandomColor=e.generateRandomColor;exports.getAllKeys=e.getAllKeys;exports.getCurrentDate=e.getCurrentDate;exports.getCurrentDateString=e.getCurrentDateString;exports.getDateDiff=e.getDateDiff;exports.getDateRange=e.getDateRange;exports.getDateRangeForPicker=e.getDateRangeForPicker;exports.getDeviceType=e.getDeviceType;exports.getLocalStorage=e.getLocalStorage;exports.getMonthEnd=e.getMonthEnd;exports.getMonthStart=e.getMonthStart;exports.getRelativeTime=e.getRelativeTime;exports.getSessionStorage=e.getSessionStorage;exports.getWeekEnd=e.getWeekEnd;exports.getWeekStart=e.getWeekStart;exports.groupBy=e.groupBy;exports.has=e.has;exports.includes=e.includes;exports.intersection=e.intersection;exports.isArray=e.isArray;exports.isBoolean=e.isBoolean;exports.isDesktop=e.isDesktop;exports.isEqual=e.isEqual;exports.isFunction=e.isFunction;exports.isInViewport=e.isInViewport;exports.isMobile=e.isMobile;exports.isNull=e.isNull;exports.isNullOrUndefined=e.isNullOrUndefined;exports.isNumber=e.isNumber;exports.isObject=e.isObject;exports.isString=e.isString;exports.isTablet=e.isTablet;exports.isThisMonth=e.isThisMonth;exports.isThisWeek=e.isThisWeek;exports.isToday=e.isToday;exports.isUndefined=e.isUndefined;exports.isValidDate=e.isValidDate;exports.keys=e.keys;exports.lastIndexOf=e.lastIndexOf;exports.map=e.map;exports.max=e.max;exports.merge=e.merge;exports.min=e.min;exports.omit=e.omit;exports.pick=e.pick;exports.random=e.random;exports.randomChoice=e.randomChoice;exports.randomFromArray=e.randomFromArray;exports.randomInt=e.randomInt;exports.randomMultiple=e.randomMultiple;exports.range=e.range;exports.remove=e.remove;exports.removeAt=e.removeAt;exports.removeEmptyStrings=e.removeEmptyStrings;exports.removeLocalStorage=e.removeLocalStorage;exports.removeNullValues=e.removeNullValues;exports.removeSessionStorage=e.removeSessionStorage;exports.removeWhere=e.removeWhere;exports.round=e.round;exports.scrollToElement=e.scrollToElement;exports.scrollToTop=e.scrollToTop;exports.set=e.set;exports.setLocalStorage=e.setLocalStorage;exports.setSessionStorage=e.setSessionStorage;exports.shuffle=e.shuffle;exports.size=e.size;exports.sortBy=e.sortBy;exports.sortNumbers=e.sortNumbers;exports.sum=e.sum;exports.throttle=e.throttle;exports.union=e.union;exports.unique=e.unique;exports.uniqueBy=e.uniqueBy;exports.values=e.values;exports.apiDelete=t.apiDelete;exports.apiGet=t.apiGet;exports.apiPatch=t.apiPatch;exports.apiPost=t.apiPost;exports.apiPut=t.apiPut;exports.base64Decode=t.base64Decode;exports.base64Encode=t.base64Encode;exports.br2nl=t.br2nl;exports.bxmDecrypt=t.bxmDecrypt;exports.bxmEncrypt=t.bxmEncrypt;exports.callService=t.callService;exports.capitalize=t.capitalize;exports.capitalizeWords=t.capitalizeWords;exports.center=t.center;exports.closeNotification=t.closeNotification;exports.countChar=t.countChar;exports.countWords=t.countWords;exports.destroyNotifications=t.destroyNotifications;exports.encryptSha256=t.encryptSha256;exports.extractNumbers=t.extractNumbers;exports.findPattern=t.findPattern;exports.formatPhoneNumber=t.formatPhoneNumber;exports.generateAlphanumericUID=t.generateAlphanumericUID;exports.generateCustomUID=t.generateCustomUID;exports.generateGUID=t.generateGUID;exports.generateGUIDWithoutHyphens=t.generateGUIDWithoutHyphens;exports.generateLongUID=t.generateLongUID;exports.generateNumericUID=t.generateNumericUID;exports.generateRandomString=t.generateRandomString;exports.generateShortUID=t.generateShortUID;exports.generateTimestampUID=t.generateTimestampUID;exports.generateUID=t.generateUID;exports.getAllServiceCodes=t.getAllServiceCodes;exports.getClientIp=t.getClientIp;exports.getCrprCd=t.getCrprCd;exports.getDepartmentInfo=t.getDepartmentInfo;exports.getDisplayName=t.getDisplayName;exports.getDprtCd=t.getDprtCd;exports.getDprtNm=t.getDprtNm;exports.getEmplNo=t.getEmplNo;exports.getGuid=t.getGuid;exports.getRoleList=t.getRoleList;exports.getServiceCode=t.getServiceCode;exports.getUserDvsn=t.getUserDvsn;exports.getUserId=t.getUserId;exports.getUserInfo=t.getUserInfo;exports.getUserNm=t.getUserNm;exports.hasAllRoles=t.hasAllRoles;exports.hasAnyRole=t.hasAnyRole;exports.hasRole=t.hasRole;exports.hasUserInfo=t.hasUserInfo;exports.isEmpty=t.isEmpty;exports.isLoggedIn=t.isLoggedIn;exports.isSafeEmpty=t.isSafeEmpty;exports.isValidEmail=t.isValidEmail;exports.isValidUrl=t.isValidUrl;exports.md5Hash=t.md5Hash;exports.nl2br=t.nl2br;exports.notificationService=t.notificationService;exports.padLeft=t.padLeft;exports.padRight=t.padRight;exports.removeHtmlTags=t.removeHtmlTags;exports.removeSpecialChars=t.removeSpecialChars;exports.reverse=t.reverse;exports.setClientIp=t.setClientIp;exports.setServiceCodeOverrides=t.setServiceCodeOverrides;exports.sha256Hash=t.sha256Hash;exports.showError=t.showError;exports.showInfo=t.showInfo;exports.showSuccess=t.showSuccess;exports.showWarning=t.showWarning;exports.simpleDecrypt=t.simpleDecrypt;exports.simpleEncrypt=t.simpleEncrypt;exports.toCamelCase=t.toCamelCase;exports.toKebabCase=t.toKebabCase;exports.toSnakeCase=t.toSnakeCase;exports.truncate=t.truncate;exports.useUserStore=t.useUserStore;exports.verifyClientIp=t.verifyClientIp;exports.THEME_COOKIE_NAME=r.THEME_COOKIE_NAME;exports.closeAllMessages=r.closeAllMessages;exports.closeMessage=r.closeMessage;exports.convertImageFormat=r.convertImageFormat;exports.deleteCookie=r.deleteCookie;exports.downloadByFileKey=r.downloadByFileKey;exports.generateSrcSet=r.generateSrcSet;exports.getAvatarImage=r.getAvatarImage;exports.getBackgroundImage=r.getBackgroundImage;exports.getCookie=r.getCookie;exports.getDefaultBackgroundImage=r.getDefaultBackgroundImage;exports.getIconImage=r.getIconImage;exports.getLogoImage=r.getLogoImage;exports.getOptimizedImageUrl=r.getOptimizedImageUrl;exports.handleImageError=r.handleImageError;exports.preloadImage=r.preloadImage;exports.resizeImage=r.resizeImage;exports.setCookie=r.setCookie;exports.showApiError=r.showApiError;exports.showDuplicateError=r.showDuplicateError;exports.showLoading=r.showLoading;exports.showRequiredError=r.showRequiredError;exports.showSaveError=r.showSaveError;exports.showSaveSuccess=r.showSaveSuccess;exports.useImageLoader=r.useImageLoader;exports.getEnvCode=g.getEnvCode;exports.isDev=g.isDev;exports.isLocal=g.isLocal;exports.isProd=g.isProd;exports.useCodeStore=u.useCodeStore;exports.useColorStore=u.useColorStore;exports.useOptionStore=u.useOptionStore;exports.useFavoriteStore=c.useFavoriteStore;exports.useMenuStore=c.useMenuStore;exports.usePopupStore=C.usePopupStore;exports.AuthProvider=d.AuthProvider;exports.useAuth=d.useAuth;exports.CommonCodeProvider=s.CommonCodeProvider;exports.UtilsProvider=s.UtilsProvider;exports.useApiUtils=s.useApiUtils;exports.useArrayUtils=s.useArrayUtils;exports.useCodeColor=s.useCodeColor;exports.useCodeList=s.useCodeList;exports.useCodeListByOption=s.useCodeListByOption;exports.useCodeName=s.useCodeName;exports.useCommonCode=s.useCommonCode;exports.useCommonUtils=s.useCommonUtils;exports.useDateUtils=s.useDateUtils;exports.useGridLookup=s.useGridLookup;exports.usePopup=s.usePopup;exports.usePopupContext=s.usePopupContext;exports.useStringUtils=s.useStringUtils;exports.useUtils=s.useUtils;exports.ScreenProtectProvider=m.ScreenProtectProvider;exports.useLock=m.useLock;exports.SearchBoxProvider=i.SearchBoxProvider;exports.ServiceCodeProvider=i.ServiceCodeProvider;exports.useAllServiceCodes=i.useAllServiceCodes;exports.useLogServiceCodeConfig=i.useLogServiceCodeConfig;exports.useSearchBox=i.useSearchBox;exports.useServiceCode=i.useServiceCode;exports.useServiceCodeValue=i.useServiceCodeValue;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCode as s, useFavorite as o, useMenu as r, usePopupState as t, useUser as i } from "./stores/index.js";
|
|
2
|
-
import { B as g, a as l, b as u, c as m, d, e as c, f as p, g as S, h as f, i as C, j as h, k as B, l as w, C as v, m as D, G as I, Q as y, n as b, S as x, o as k } from "./chunks/SSOHandler-
|
|
2
|
+
import { B as g, a as l, b as u, c as m, d, e as c, f as p, g as S, h as f, i as C, j as h, k as B, l as w, C as v, m as D, G as I, Q as y, n as b, S as x, o as k } from "./chunks/SSOHandler-Bu3v95k0.js";
|
|
3
3
|
import { B as P } from "./chunks/BwgSpace-CnLM4qcg.js";
|
|
4
4
|
import { r as E } from "./chunks/realFormat-DRGLFabQ.js";
|
|
5
5
|
import { o as T, j as N, k as R, g as M, a as F, B as O, f as G, q as K, d as W, e as j, n as q, m as H, i as V, h as z, c as Q, b as _, l as J, p as X } from "./chunks/BwgLargeUploader-CZllyq7K.js";
|
|
@@ -9,7 +9,7 @@ import { Q as Qe, R as _e, S as Je, T as Xe, U as Ye, b as Ze, a as $e, c as as,
|
|
|
9
9
|
import { T as wo, n as vo, m as Do, c as Io, j as yo, x as bo, g as xo, a as ko, b as Uo, k as Po, d as Ao, e as Eo, f as Lo, h as To, i as No, p as Ro, r as Mo, s as Fo, o as Oo, v as Go, l as Ko, w as Wo, t as jo, q as qo, u as Ho } from "./chunks/FileUtils-DsA-Sw37.js";
|
|
10
10
|
import { g as zo, a as Qo, i as _o, b as Jo } from "./chunks/envUtils-C9Gf5aek.js";
|
|
11
11
|
import { u as Yo, b as Zo, a as $o } from "./chunks/codeStore-rU4v3QIA.js";
|
|
12
|
-
import { a as er, u as sr } from "./chunks/menuStore-
|
|
12
|
+
import { a as er, u as sr } from "./chunks/menuStore-2zsN-PRt.js";
|
|
13
13
|
import { u as rr } from "./chunks/popupStore-BJ_IYrdY.js";
|
|
14
14
|
import { A as ir, u as nr } from "./chunks/AuthContext-Ei2P-z4d.js";
|
|
15
15
|
import { C as lr, U as ur, k as mr, i as dr, c as cr, a as pr, d as Sr, b as fr, u as Cr, j as hr, g as Br, e as wr, m as vr, l as Dr, h as Ir, f as yr } from "./chunks/UtilsContext-CSgz9o2Z.js";
|
package/dist/stores/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/codeStore-BG8S_mdS.cjs"),t=require("../chunks/menuStore-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/codeStore-BG8S_mdS.cjs"),t=require("../chunks/menuStore-D7zl2c89.cjs"),o=require("../chunks/serviceConfig-Cc8jfw_Y.cjs"),u=require("../chunks/popupStore-BGubYHZh.cjs"),r=()=>e.useCodeStore.getState(),s=()=>u.usePopupStore.getState(),S=()=>t.useMenuStore.getState(),n=()=>o.useUserStore.getState(),i=()=>t.useFavoriteStore.getState();exports.useCodeStore=e.useCodeStore;exports.useColorStore=e.useColorStore;exports.useOptionStore=e.useOptionStore;exports.useFavoriteStore=t.useFavoriteStore;exports.useMenuStore=t.useMenuStore;exports.useUserStore=o.useUserStore;exports.usePopupStore=u.usePopupStore;exports.useCode=r;exports.useFavorite=i;exports.useMenu=S;exports.usePopupState=s;exports.useUser=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/stores/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as e } from "../chunks/codeStore-rU4v3QIA.js";
|
|
2
2
|
import { b as d, a as v } from "../chunks/codeStore-rU4v3QIA.js";
|
|
3
|
-
import { u as t, a as o } from "../chunks/menuStore-
|
|
3
|
+
import { u as t, a as o } from "../chunks/menuStore-2zsN-PRt.js";
|
|
4
4
|
import { ao as s } from "../chunks/serviceConfig-lAlRNVIw.js";
|
|
5
5
|
import { u as r } from "../chunks/popupStore-BJ_IYrdY.js";
|
|
6
6
|
const m = () => e.getState(), n = () => r.getState(), i = () => t.getState(), c = () => s.getState(), f = () => o.getState();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menuStore.d.ts","sourceRoot":"","sources":["../../src/stores/menuStore.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB;AAGD,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAqHD,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,QAAQ,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gBAAgB,EAAE,eAAe,GAAG,IAAI,CAAC;IACzC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,SAAS,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iBAAiB,EAAE,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACrE;AAyFD,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"menuStore.d.ts","sourceRoot":"","sources":["../../src/stores/menuStore.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB;AAGD,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAqHD,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,QAAQ,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gBAAgB,EAAE,eAAe,GAAG,IAAI,CAAC;IACzC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,SAAS,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iBAAiB,EAAE,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACrE;AAyFD,eAAO,MAAM,YAAY,wEAsMtB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M11.9998 19.9993V20.9993C11.9998 21.3932 12.0774 21.7833 12.2282 22.1473C12.3789 22.5112 12.5999 22.8419 12.8785 23.1205C13.157 23.399 13.4877 23.62 13.8517 23.7708C14.2156 23.9215 14.6057 23.9991 14.9997 23.9991C15.3936 23.9991 15.7837 23.9215 16.1477 23.7708C16.5116 23.62 16.8423 23.399 17.1209 23.1205C17.3994 22.8419 17.6204 22.5112 17.7712 22.1473C17.9219 21.7833 17.9995 21.3932 17.9995 20.9993V19.9993M20.9994 11.9997C20.9994 14.9996 22.9993 19.9993 22.9993 19.9993H7.00006C7.00006 19.9993 8.99996 15.9995 8.99996 11.9997C8.99996 8.73187 11.7318 6 14.9997 6C18.2675 6 20.9994 8.73187 20.9994 11.9997Z" stroke="#485299" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_93_4488)">
|
|
3
|
+
<path d="M18 7H21C22.1046 7 23 7.89543 23 9V21C23 22.1046 22.1046 23 21 23H18M11 11L7 15M7 15L11 19M7 15L19 15" stroke="#485299" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_93_4488">
|
|
7
|
+
<rect width="30" height="30" fill="white"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14 6H16C16.5523 6 17 6.44772 17 7V7.56879C17 7.99659 17.2871 8.36825 17.6822 8.53228C18.0775 8.69638 18.5377 8.63384 18.8403 8.33123L19.2426 7.92891C19.6331 7.53838 20.2663 7.53838 20.6568 7.92891L22.071 9.34312C22.4616 9.73365 22.4615 10.3668 22.071 10.7573L21.6688 11.1596C21.3661 11.4622 21.3036 11.9225 21.4677 12.3177C21.6317 12.7129 22.0034 13 22.4313 13L23 13C23.5523 13 24 13.4477 24 14V16C24 16.5523 23.5523 17 23 17H22.4312C22.0034 17 21.6318 17.2871 21.4677 17.6822C21.3036 18.0775 21.3661 18.5377 21.6688 18.8403L22.071 19.2426C22.4616 19.6331 22.4616 20.2663 22.071 20.6568L20.6568 22.071C20.2663 22.4616 19.6331 22.4616 19.2426 22.071L18.8403 21.6688C18.5377 21.3661 18.0775 21.3036 17.6822 21.4677C17.2871 21.6318 17 22.0034 17 22.4312V23C17 23.5523 16.5523 24 16 24H14C13.4477 24 13 23.5523 13 23V22.4313C13 22.0034 12.7129 21.6317 12.3177 21.4677C11.9225 21.3036 11.4622 21.3661 11.1596 21.6688L10.7573 22.071C10.3668 22.4616 9.73363 22.4616 9.34311 22.071L7.92889 20.6568C7.53837 20.2663 7.53837 19.6331 7.92889 19.2426L8.33123 18.8403C8.63384 18.5377 8.69638 18.0775 8.53228 17.6822C8.36825 17.2871 7.99659 17 7.56879 17H7C6.44772 17 6 16.5523 6 16V14C6 13.4477 6.44772 13 7 13L7.56877 13C7.99658 13 8.36825 12.7129 8.53229 12.3178C8.6964 11.9225 8.63386 11.4623 8.33123 11.1597L7.92891 10.7573C7.53838 10.3668 7.53838 9.73365 7.92891 9.34313L9.34312 7.92891C9.73365 7.53839 10.3668 7.53839 10.7573 7.92891L11.1597 8.33123C11.4623 8.63386 11.9225 8.6964 12.3178 8.53229C12.7129 8.36825 13 7.99658 13 7.56876V7C13 6.44772 13.4477 6 14 6Z" stroke="#485299" stroke-width="1.5"/>
|
|
3
|
+
<path d="M17 15C17 16.1046 16.1046 17 15 17C13.8954 17 13 16.1046 13 15C13 13.8954 13.8954 13 15 13C16.1046 13 17 13.8954 17 15Z" stroke="#485299" stroke-width="1.5"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.77771 8.1809C6.37747 8.67607 5.62253 8.67607 5.22229 8.18089L2.98627 5.41454C2.4577 4.7606 2.92314 3.78592 3.76399 3.78592L8.23602 3.78592C9.07687 3.78592 9.5423 4.7606 9.01373 5.41454L6.77771 8.1809Z" fill="#B9B9B9"/>
|
|
3
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const g=require("zustand"),u=require("./serviceConfig-Cc8jfw_Y.cjs"),P=require("./envUtils-CduTHoHu.cjs"),f=g.create((t,i)=>({favorites:[],isLoading:!1,error:null,fetchFavorites:async({crprCd:e,userId:a})=>{console.log("즐겨찾기 메뉴 요청:",{crprCd:e,userId:a}),t({isLoading:!0,error:null});try{const n=await u.callService(u.getServiceCode("AUTH_BMRK"),{crprCd:e,userId:a});let r=[];if(n?.favorites&&Array.isArray(n.favorites)?r=n.favorites:Array.isArray(n)?r=n:(console.warn("즐겨찾기 데이터가 비어있거나 예상과 다른 구조입니다."),r=[]),console.log("즐겨찾기 메뉴 로드 완료:",r),P.isLocal&&r.length===0){const o=[{crprCd:"100",menuGbCd:"CMPRGRP",menuPrntId:"FAV001",menuId:"FAV_TEST001",menuNm:"API 테스트",scrnId:"TEST001",menuNo:1,scrnPath:"/dev/ApiTest",menuLvl:3,rootMenu:"FAV001",addedAt:new Date().toISOString(),userId:a},{crprCd:"100",menuGbCd:"CMPRGRP",menuPrntId:"FAV001",menuId:"FAV_TEST002",menuNm:"프로젝트 개요",scrnId:"DOCS001",menuNo:2,scrnPath:"/docs/ProjectOverview",menuLvl:3,rootMenu:"FAV001",addedAt:new Date().toISOString(),userId:a}];t({favorites:o,isLoading:!1,error:null}),console.log("개발 모드: 테스트용 즐겨찾기 데이터 추가")}else t({favorites:r,isLoading:!1,error:null})}catch(n){console.error("즐겨찾기 메뉴 로드 실패:",n),t({error:n instanceof Error?n.message:"즐겨찾기 로드 실패",isLoading:!1})}},addFavorite:async(e,a)=>{const{favorites:n}=i();if(n.some(r=>r.menuId===e.menuId)){console.log("이미 즐겨찾기에 추가된 메뉴입니다:",e.menuNm);return}try{await u.callService(u.getServiceCode("AUTH_BMRK"),{action:"add",crprCd:e.crprCd,userId:a,menuId:e.menuId,menuNm:e.menuNm,scrnPath:e.scrnPath});const r={...e,addedAt:new Date().toISOString(),userId:a};t({favorites:[...n,r]}),console.log("즐겨찾기 추가 완료:",e.menuNm)}catch(r){throw console.error("즐겨찾기 추가 실패:",r),r}},removeFavorite:async(e,a)=>{const{favorites:n}=i();try{await u.callService(u.getServiceCode("AUTH_BMRK"),{action:"remove",crprCd:"100",userId:a,menuId:e});const r=n.filter(o=>o.menuId!==e);t({favorites:r}),console.log("즐겨찾기 제거 완료:",e)}catch(r){throw console.error("즐겨찾기 제거 실패:",r),r}},isFavorite:e=>{const{favorites:a}=i();return a.some(n=>n.menuId===e)},clearFavorites:()=>{t({favorites:[],isLoading:!1,error:null})}})),m=()=>typeof process<"u"&&process.env.NODE_ENV==="development"||typeof window<"u"&&window.location.hostname==="localhost"?[{crprCd:"100",menuGbCd:"CMPRGRM",menuPrntId:"-",menuId:"DEV001",menuNm:"개발자 도구",scrnId:"",menuNo:0,scrnPath:"",menuLvl:1,rootMenu:"DEV001"},{crprCd:"100",menuGbCd:"CMPRGRS",menuPrntId:"DEV001",menuId:"DEV00101",menuNm:"컴포넌트 가이드",scrnId:"",menuNo:1,scrnPath:"",menuLvl:2,rootMenu:"DEV001"},{crprCd:"100",menuGbCd:"CMPRGRP",menuPrntId:"DEV00101",menuId:"DEV0010101",menuNm:"기본 컴포넌트",scrnId:"BwgComponentGuideM01",menuNo:9991,scrnPath:"/cm/guide/BwgComponentGuideM01",menuLvl:3,rootMenu:"DEV00101"},{crprCd:"100",menuGbCd:"CMPRGRP",menuPrntId:"DEV00101",menuId:"DEV0010102",menuNm:"응용 컴포넌트",scrnId:"BwgComponentGuideM02",menuNo:9992,scrnPath:"/cm/guide/BwgComponentGuideM02",menuLvl:3,rootMenu:"DEV00101"},{crprCd:"100",menuGbCd:"CMPRGRS",menuPrntId:"DEV001",menuId:"DEV00102",menuNm:"개발자 가이드",scrnId:"",menuNo:2,scrnPath:"",menuLvl:2,rootMenu:"DEV001"},{crprCd:"100",menuGbCd:"CMPRGRP",menuPrntId:"DEV00102",menuId:"DEV0010201",menuNm:"개발자 가이드",scrnId:"BwgDeveloperGuideM01",menuNo:9993,scrnPath:"/cm/guide/BwgDeveloperGuideM01",menuLvl:3,rootMenu:"DEV00102"},{crprCd:"100",menuGbCd:"CMPRGRP",menuPrntId:"DEV00102",menuId:"DEV0010202",menuNm:"React 가이드",scrnId:"BwgReactGuideM01",menuNo:9994,scrnPath:"/cm/guide/BwgReactGuideM01",menuLvl:3,rootMenu:"DEV00102"},{crprCd:"100",menuGbCd:"CMPRGRP",menuPrntId:"DEV00102",menuId:"DEV0010203",menuNm:"연습공간",scrnId:"BwgPracticeM01",menuNo:9995,scrnPath:"/cm/guide/BwgPracticeM01",menuLvl:3,rootMenu:"DEV00102"}]:[],v=t=>{if(!t||!Array.isArray(t)||t.length===0)return[];const i=new Map,e=[];t.forEach(o=>{o&&o.menuId&&i.set(o.menuId,{...o,children:[]})}),t.forEach(o=>{if(!o||!o.menuId)return;const s=i.get(o.menuId);if(s)if(o.menuPrntId&&o.menuPrntId!==""&&o.menuPrntId!=="-"){const c=i.get(o.menuPrntId);c&&c.children.push(s)}else e.push(s)});const a=o=>o.sort((s,c)=>s.menuNo-c.menuNo).map(s=>({...s,children:s.children&&s.children.length>0?a(s.children):void 0})),n=a(e),r=n.filter(o=>o.menuId.startsWith("DEV"));return r.length>0&&console.log("DEV 최종 결과:",r),n},h=g.create((t,i)=>({menuList:[],isLoading:!1,error:null,activeMenu:"1",currentProgram:null,tabs:[],activeTabKey:null,sidebarCollapsed:!1,viewStates:{},_lastFetchParams:null,fetchMenu:async({crprCd:e,userId:a,prntGbcd:n})=>{const r={crprCd:e,userId:a,prntGbcd:n??1},{_lastFetchParams:o}=i();if(o&&o.crprCd===r.crprCd&&o.userId===r.userId&&o.prntGbcd===r.prntGbcd){console.log("동일한 파라미터로 중복 요청 방지:",r);return}console.log("메뉴 데이터 요청 시작:",r),t({isLoading:!0,error:null,_lastFetchParams:r});try{const s=await u.callService(u.getServiceCode("AUTH_MENU"),r);let c=[];s?.menus&&Array.isArray(s.menus)?c=s.menus:Array.isArray(s)?c=s:(console.warn("서버 응답이 비어있거나 예상과 다른 구조입니다. 개발자 메뉴만 표시합니다."),c=[]);const l=m();l.length>0&&(c=[...l,...c]);const d=v(c);console.log("메뉴 데이터 로드 완료 (계층 구조):",d),t({menuList:d,isLoading:!1,error:null})}catch(s){console.error("메뉴 데이터 로드 실패:",s);const c=m();if(c.length>0){console.log("서버 오류로 인해 개발자 메뉴만 표시합니다.");const l=v(c);t({menuList:l,isLoading:!1,error:null})}else t({error:s instanceof Error?s.message:"메뉴 로드 실패",isLoading:!1})}},setActiveMenu:e=>{t({activeMenu:e})},setCurrentProgram:e=>{console.log("setCurrentProgram 호출:",e),t({currentProgram:e})},addTab:e=>{const{tabs:a}=i();if(a.find(r=>r.key===e.menuId))t({activeTabKey:e.menuId});else{const r={key:e.menuId,label:e.menuNm,menuItem:e,closable:!0};t({tabs:[...a,r],activeTabKey:e.menuId})}},removeTab:e=>{const{tabs:a,activeTabKey:n}=i(),r=a.filter(s=>s.key!==e);let o=n;if(n===e){const s=a.findIndex(c=>c.key===e);r.length>0?o=r[Math.min(s,r.length-1)]?.key||null:o=null}t({tabs:r,activeTabKey:o,currentProgram:o&&r.find(s=>s.key===o)?.menuItem||null})},setActiveTab:e=>{const{tabs:a}=i(),n=a.find(r=>r.key===e);n&&t({activeTabKey:e,currentProgram:n.menuItem})},clearTabs:()=>{t({tabs:[],activeTabKey:null,currentProgram:null})},clearMenu:()=>{t({menuList:[],error:null,activeMenu:"1",currentProgram:null,tabs:[],activeTabKey:null,_lastFetchParams:null})},toggleSidebar:()=>{const{sidebarCollapsed:e}=i();t({sidebarCollapsed:!e})},updateViewState:(e,a,n)=>{t(r=>({viewStates:{...r.viewStates,[e]:{...r.viewStates[e],[a]:n}}})),console.log(`뷰 상태 업데이트: ${e}.${a}`,n)}}));exports.useFavoriteStore=f;exports.useMenuStore=h;
|
|
2
|
-
//# sourceMappingURL=menuStore-CBvENehP.cjs.map
|
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import { create as f } from "zustand";
|
|
2
|
-
import { V as l, am as d } from "./serviceConfig-lAlRNVIw.js";
|
|
3
|
-
import { i as P } from "./envUtils-C9Gf5aek.js";
|
|
4
|
-
const C = f((t, i) => ({
|
|
5
|
-
favorites: [],
|
|
6
|
-
isLoading: !1,
|
|
7
|
-
error: null,
|
|
8
|
-
// 즐겨찾기 메뉴 가져오기
|
|
9
|
-
fetchFavorites: async ({ crprCd: e, userId: a }) => {
|
|
10
|
-
console.log("즐겨찾기 메뉴 요청:", { crprCd: e, userId: a }), t({ isLoading: !0, error: null });
|
|
11
|
-
try {
|
|
12
|
-
const n = await l(d("AUTH_BMRK"), {
|
|
13
|
-
crprCd: e,
|
|
14
|
-
userId: a
|
|
15
|
-
});
|
|
16
|
-
let r = [];
|
|
17
|
-
if (n?.favorites && Array.isArray(n.favorites) ? r = n.favorites : Array.isArray(n) ? r = n : (console.warn("즐겨찾기 데이터가 비어있거나 예상과 다른 구조입니다."), r = []), console.log("즐겨찾기 메뉴 로드 완료:", r), P && r.length === 0) {
|
|
18
|
-
const o = [
|
|
19
|
-
{
|
|
20
|
-
crprCd: "100",
|
|
21
|
-
menuGbCd: "CMPRGRP",
|
|
22
|
-
menuPrntId: "FAV001",
|
|
23
|
-
menuId: "FAV_TEST001",
|
|
24
|
-
menuNm: "API 테스트",
|
|
25
|
-
scrnId: "TEST001",
|
|
26
|
-
menuNo: 1,
|
|
27
|
-
scrnPath: "/dev/ApiTest",
|
|
28
|
-
menuLvl: 3,
|
|
29
|
-
rootMenu: "FAV001",
|
|
30
|
-
addedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
31
|
-
userId: a
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
crprCd: "100",
|
|
35
|
-
menuGbCd: "CMPRGRP",
|
|
36
|
-
menuPrntId: "FAV001",
|
|
37
|
-
menuId: "FAV_TEST002",
|
|
38
|
-
menuNm: "프로젝트 개요",
|
|
39
|
-
scrnId: "DOCS001",
|
|
40
|
-
menuNo: 2,
|
|
41
|
-
scrnPath: "/docs/ProjectOverview",
|
|
42
|
-
menuLvl: 3,
|
|
43
|
-
rootMenu: "FAV001",
|
|
44
|
-
addedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
45
|
-
userId: a
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
t({ favorites: o, isLoading: !1, error: null }), console.log("개발 모드: 테스트용 즐겨찾기 데이터 추가");
|
|
49
|
-
} else
|
|
50
|
-
t({ favorites: r, isLoading: !1, error: null });
|
|
51
|
-
} catch (n) {
|
|
52
|
-
console.error("즐겨찾기 메뉴 로드 실패:", n), t({
|
|
53
|
-
error: n instanceof Error ? n.message : "즐겨찾기 로드 실패",
|
|
54
|
-
isLoading: !1
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
// 즐겨찾기 추가
|
|
59
|
-
addFavorite: async (e, a) => {
|
|
60
|
-
const { favorites: n } = i();
|
|
61
|
-
if (n.some((r) => r.menuId === e.menuId)) {
|
|
62
|
-
console.log("이미 즐겨찾기에 추가된 메뉴입니다:", e.menuNm);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
try {
|
|
66
|
-
await l(d("AUTH_BMRK"), {
|
|
67
|
-
action: "add",
|
|
68
|
-
crprCd: e.crprCd,
|
|
69
|
-
userId: a,
|
|
70
|
-
menuId: e.menuId,
|
|
71
|
-
menuNm: e.menuNm,
|
|
72
|
-
scrnPath: e.scrnPath
|
|
73
|
-
});
|
|
74
|
-
const r = {
|
|
75
|
-
...e,
|
|
76
|
-
addedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
77
|
-
userId: a
|
|
78
|
-
};
|
|
79
|
-
t({ favorites: [...n, r] }), console.log("즐겨찾기 추가 완료:", e.menuNm);
|
|
80
|
-
} catch (r) {
|
|
81
|
-
throw console.error("즐겨찾기 추가 실패:", r), r;
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
// 즐겨찾기 제거
|
|
85
|
-
removeFavorite: async (e, a) => {
|
|
86
|
-
const { favorites: n } = i();
|
|
87
|
-
try {
|
|
88
|
-
await l(d("AUTH_BMRK"), {
|
|
89
|
-
action: "remove",
|
|
90
|
-
crprCd: "100",
|
|
91
|
-
// 기본값
|
|
92
|
-
userId: a,
|
|
93
|
-
menuId: e
|
|
94
|
-
});
|
|
95
|
-
const r = n.filter((o) => o.menuId !== e);
|
|
96
|
-
t({ favorites: r }), console.log("즐겨찾기 제거 완료:", e);
|
|
97
|
-
} catch (r) {
|
|
98
|
-
throw console.error("즐겨찾기 제거 실패:", r), r;
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
// 즐겨찾기 여부 확인
|
|
102
|
-
isFavorite: (e) => {
|
|
103
|
-
const { favorites: a } = i();
|
|
104
|
-
return a.some((n) => n.menuId === e);
|
|
105
|
-
},
|
|
106
|
-
// 즐겨찾기 초기화
|
|
107
|
-
clearFavorites: () => {
|
|
108
|
-
t({ favorites: [], isLoading: !1, error: null });
|
|
109
|
-
}
|
|
110
|
-
})), v = () => typeof process < "u" && process.env.NODE_ENV === "development" || typeof window < "u" && window.location.hostname === "localhost" ? [
|
|
111
|
-
// 1뎁스: 개발자 도구
|
|
112
|
-
{
|
|
113
|
-
crprCd: "100",
|
|
114
|
-
menuGbCd: "CMPRGRM",
|
|
115
|
-
menuPrntId: "-",
|
|
116
|
-
menuId: "DEV001",
|
|
117
|
-
menuNm: "개발자 도구",
|
|
118
|
-
scrnId: "",
|
|
119
|
-
menuNo: 0,
|
|
120
|
-
scrnPath: "",
|
|
121
|
-
menuLvl: 1,
|
|
122
|
-
rootMenu: "DEV001"
|
|
123
|
-
},
|
|
124
|
-
// 2뎁스: 컴포넌트 가이드
|
|
125
|
-
{
|
|
126
|
-
crprCd: "100",
|
|
127
|
-
menuGbCd: "CMPRGRS",
|
|
128
|
-
menuPrntId: "DEV001",
|
|
129
|
-
menuId: "DEV00101",
|
|
130
|
-
menuNm: "컴포넌트 가이드",
|
|
131
|
-
scrnId: "",
|
|
132
|
-
menuNo: 1,
|
|
133
|
-
scrnPath: "",
|
|
134
|
-
menuLvl: 2,
|
|
135
|
-
rootMenu: "DEV001"
|
|
136
|
-
},
|
|
137
|
-
// 3뎁스: BwgComponentGuideM01 컴포넌트
|
|
138
|
-
{
|
|
139
|
-
crprCd: "100",
|
|
140
|
-
menuGbCd: "CMPRGRP",
|
|
141
|
-
menuPrntId: "DEV00101",
|
|
142
|
-
menuId: "DEV0010101",
|
|
143
|
-
menuNm: "기본 컴포넌트",
|
|
144
|
-
scrnId: "BwgComponentGuideM01",
|
|
145
|
-
menuNo: 9991,
|
|
146
|
-
scrnPath: "/cm/guide/BwgComponentGuideM01",
|
|
147
|
-
menuLvl: 3,
|
|
148
|
-
rootMenu: "DEV00101"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
crprCd: "100",
|
|
152
|
-
menuGbCd: "CMPRGRP",
|
|
153
|
-
menuPrntId: "DEV00101",
|
|
154
|
-
menuId: "DEV0010102",
|
|
155
|
-
menuNm: "응용 컴포넌트",
|
|
156
|
-
scrnId: "BwgComponentGuideM02",
|
|
157
|
-
menuNo: 9992,
|
|
158
|
-
scrnPath: "/cm/guide/BwgComponentGuideM02",
|
|
159
|
-
menuLvl: 3,
|
|
160
|
-
rootMenu: "DEV00101"
|
|
161
|
-
},
|
|
162
|
-
// 2뎁스: 개발자 가이드
|
|
163
|
-
{
|
|
164
|
-
crprCd: "100",
|
|
165
|
-
menuGbCd: "CMPRGRS",
|
|
166
|
-
menuPrntId: "DEV001",
|
|
167
|
-
menuId: "DEV00102",
|
|
168
|
-
menuNm: "개발자 가이드",
|
|
169
|
-
scrnId: "",
|
|
170
|
-
menuNo: 2,
|
|
171
|
-
scrnPath: "",
|
|
172
|
-
menuLvl: 2,
|
|
173
|
-
rootMenu: "DEV001"
|
|
174
|
-
},
|
|
175
|
-
// 3뎁스: BwgDeveloperGuideM01 컴포넌트
|
|
176
|
-
{
|
|
177
|
-
crprCd: "100",
|
|
178
|
-
menuGbCd: "CMPRGRP",
|
|
179
|
-
menuPrntId: "DEV00102",
|
|
180
|
-
menuId: "DEV0010201",
|
|
181
|
-
menuNm: "개발자 가이드",
|
|
182
|
-
scrnId: "BwgDeveloperGuideM01",
|
|
183
|
-
menuNo: 9993,
|
|
184
|
-
scrnPath: "/cm/guide/BwgDeveloperGuideM01",
|
|
185
|
-
menuLvl: 3,
|
|
186
|
-
rootMenu: "DEV00102"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
crprCd: "100",
|
|
190
|
-
menuGbCd: "CMPRGRP",
|
|
191
|
-
menuPrntId: "DEV00102",
|
|
192
|
-
menuId: "DEV0010202",
|
|
193
|
-
menuNm: "React 가이드",
|
|
194
|
-
scrnId: "BwgReactGuideM01",
|
|
195
|
-
menuNo: 9994,
|
|
196
|
-
scrnPath: "/cm/guide/BwgReactGuideM01",
|
|
197
|
-
menuLvl: 3,
|
|
198
|
-
rootMenu: "DEV00102"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
crprCd: "100",
|
|
202
|
-
menuGbCd: "CMPRGRP",
|
|
203
|
-
menuPrntId: "DEV00102",
|
|
204
|
-
menuId: "DEV0010203",
|
|
205
|
-
menuNm: "연습공간",
|
|
206
|
-
scrnId: "BwgPracticeM01",
|
|
207
|
-
menuNo: 9995,
|
|
208
|
-
scrnPath: "/cm/guide/BwgPracticeM01",
|
|
209
|
-
menuLvl: 3,
|
|
210
|
-
rootMenu: "DEV00102"
|
|
211
|
-
}
|
|
212
|
-
] : [], g = (t) => {
|
|
213
|
-
if (!t || !Array.isArray(t) || t.length === 0)
|
|
214
|
-
return [];
|
|
215
|
-
const i = /* @__PURE__ */ new Map(), e = [];
|
|
216
|
-
t.forEach((o) => {
|
|
217
|
-
o && o.menuId && i.set(o.menuId, { ...o, children: [] });
|
|
218
|
-
}), t.forEach((o) => {
|
|
219
|
-
if (!o || !o.menuId) return;
|
|
220
|
-
const s = i.get(o.menuId);
|
|
221
|
-
if (s)
|
|
222
|
-
if (o.menuPrntId && o.menuPrntId !== "" && o.menuPrntId !== "-") {
|
|
223
|
-
const c = i.get(o.menuPrntId);
|
|
224
|
-
c && c.children.push(s);
|
|
225
|
-
} else
|
|
226
|
-
e.push(s);
|
|
227
|
-
});
|
|
228
|
-
const a = (o) => o.sort((s, c) => s.menuNo - c.menuNo).map((s) => ({
|
|
229
|
-
...s,
|
|
230
|
-
children: s.children && s.children.length > 0 ? a(s.children) : void 0
|
|
231
|
-
})), n = a(e), r = n.filter((o) => o.menuId.startsWith("DEV"));
|
|
232
|
-
return r.length > 0 && console.log("DEV 최종 결과:", r), n;
|
|
233
|
-
}, b = f((t, i) => ({
|
|
234
|
-
menuList: [],
|
|
235
|
-
isLoading: !1,
|
|
236
|
-
error: null,
|
|
237
|
-
activeMenu: "1",
|
|
238
|
-
currentProgram: null,
|
|
239
|
-
tabs: [],
|
|
240
|
-
activeTabKey: null,
|
|
241
|
-
sidebarCollapsed: !1,
|
|
242
|
-
// 사이드바 접기/펼치기 상태
|
|
243
|
-
viewStates: {},
|
|
244
|
-
// 뷰별 상태 저장
|
|
245
|
-
_lastFetchParams: null,
|
|
246
|
-
// 마지막 fetch 파라미터 저장
|
|
247
|
-
// 메뉴 데이터 가져오기
|
|
248
|
-
fetchMenu: async ({ crprCd: e, userId: a, prntGbcd: n }) => {
|
|
249
|
-
const r = { crprCd: e, userId: a, prntGbcd: n ?? 1 }, { _lastFetchParams: o } = i();
|
|
250
|
-
if (o && o.crprCd === r.crprCd && o.userId === r.userId && o.prntGbcd === r.prntGbcd) {
|
|
251
|
-
console.log("동일한 파라미터로 중복 요청 방지:", r);
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
console.log("메뉴 데이터 요청 시작:", r), t({ isLoading: !0, error: null, _lastFetchParams: r });
|
|
255
|
-
try {
|
|
256
|
-
const s = await l(
|
|
257
|
-
d("AUTH_MENU"),
|
|
258
|
-
r
|
|
259
|
-
);
|
|
260
|
-
let c = [];
|
|
261
|
-
s?.menus && Array.isArray(s.menus) ? c = s.menus : Array.isArray(s) ? c = s : (console.warn(
|
|
262
|
-
"서버 응답이 비어있거나 예상과 다른 구조입니다. 개발자 메뉴만 표시합니다."
|
|
263
|
-
), c = []);
|
|
264
|
-
const u = v();
|
|
265
|
-
u.length > 0 && (c = [...u, ...c]);
|
|
266
|
-
const m = g(c);
|
|
267
|
-
console.log("메뉴 데이터 로드 완료 (계층 구조):", m), t({
|
|
268
|
-
menuList: m,
|
|
269
|
-
isLoading: !1,
|
|
270
|
-
error: null
|
|
271
|
-
});
|
|
272
|
-
} catch (s) {
|
|
273
|
-
console.error("메뉴 데이터 로드 실패:", s);
|
|
274
|
-
const c = v();
|
|
275
|
-
if (c.length > 0) {
|
|
276
|
-
console.log("서버 오류로 인해 개발자 메뉴만 표시합니다.");
|
|
277
|
-
const u = g(c);
|
|
278
|
-
t({
|
|
279
|
-
menuList: u,
|
|
280
|
-
isLoading: !1,
|
|
281
|
-
error: null
|
|
282
|
-
});
|
|
283
|
-
} else
|
|
284
|
-
t({
|
|
285
|
-
error: s instanceof Error ? s.message : "메뉴 로드 실패",
|
|
286
|
-
isLoading: !1
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
// 활성 메뉴 설정
|
|
291
|
-
setActiveMenu: (e) => {
|
|
292
|
-
t({ activeMenu: e });
|
|
293
|
-
},
|
|
294
|
-
// 현재 프로그램 설정
|
|
295
|
-
setCurrentProgram: (e) => {
|
|
296
|
-
console.log("setCurrentProgram 호출:", e), t({ currentProgram: e });
|
|
297
|
-
},
|
|
298
|
-
// 탭 추가
|
|
299
|
-
addTab: (e) => {
|
|
300
|
-
const { tabs: a } = i();
|
|
301
|
-
if (a.find((r) => r.key === e.menuId))
|
|
302
|
-
t({ activeTabKey: e.menuId });
|
|
303
|
-
else {
|
|
304
|
-
const r = {
|
|
305
|
-
key: e.menuId,
|
|
306
|
-
label: e.menuNm,
|
|
307
|
-
menuItem: e,
|
|
308
|
-
closable: !0
|
|
309
|
-
};
|
|
310
|
-
t({
|
|
311
|
-
tabs: [...a, r],
|
|
312
|
-
activeTabKey: e.menuId
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
// 탭 제거
|
|
317
|
-
removeTab: (e) => {
|
|
318
|
-
const { tabs: a, activeTabKey: n } = i(), r = a.filter((s) => s.key !== e);
|
|
319
|
-
let o = n;
|
|
320
|
-
if (n === e) {
|
|
321
|
-
const s = a.findIndex((c) => c.key === e);
|
|
322
|
-
r.length > 0 ? o = r[Math.min(s, r.length - 1)]?.key || null : o = null;
|
|
323
|
-
}
|
|
324
|
-
t({
|
|
325
|
-
tabs: r,
|
|
326
|
-
activeTabKey: o,
|
|
327
|
-
currentProgram: o && r.find((s) => s.key === o)?.menuItem || null
|
|
328
|
-
});
|
|
329
|
-
},
|
|
330
|
-
// 활성 탭 설정
|
|
331
|
-
setActiveTab: (e) => {
|
|
332
|
-
const { tabs: a } = i(), n = a.find((r) => r.key === e);
|
|
333
|
-
n && t({
|
|
334
|
-
activeTabKey: e,
|
|
335
|
-
currentProgram: n.menuItem
|
|
336
|
-
});
|
|
337
|
-
},
|
|
338
|
-
// 탭 초기화
|
|
339
|
-
clearTabs: () => {
|
|
340
|
-
t({
|
|
341
|
-
tabs: [],
|
|
342
|
-
activeTabKey: null,
|
|
343
|
-
currentProgram: null
|
|
344
|
-
});
|
|
345
|
-
},
|
|
346
|
-
// 메뉴 데이터 초기화
|
|
347
|
-
clearMenu: () => {
|
|
348
|
-
t({
|
|
349
|
-
menuList: [],
|
|
350
|
-
error: null,
|
|
351
|
-
activeMenu: "1",
|
|
352
|
-
currentProgram: null,
|
|
353
|
-
tabs: [],
|
|
354
|
-
activeTabKey: null,
|
|
355
|
-
_lastFetchParams: null
|
|
356
|
-
// 마지막 fetch 파라미터도 초기화
|
|
357
|
-
});
|
|
358
|
-
},
|
|
359
|
-
// 사이드바 접기/펼치기 토글
|
|
360
|
-
toggleSidebar: () => {
|
|
361
|
-
const { sidebarCollapsed: e } = i();
|
|
362
|
-
t({ sidebarCollapsed: !e });
|
|
363
|
-
},
|
|
364
|
-
// 뷰 상태 업데이트
|
|
365
|
-
updateViewState: (e, a, n) => {
|
|
366
|
-
t((r) => ({
|
|
367
|
-
viewStates: {
|
|
368
|
-
...r.viewStates,
|
|
369
|
-
[e]: {
|
|
370
|
-
...r.viewStates[e],
|
|
371
|
-
[a]: n
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
})), console.log(`뷰 상태 업데이트: ${e}.${a}`, n);
|
|
375
|
-
}
|
|
376
|
-
}));
|
|
377
|
-
export {
|
|
378
|
-
C as a,
|
|
379
|
-
b as u
|
|
380
|
-
};
|
|
381
|
-
//# sourceMappingURL=menuStore-CvQrMo35.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|