@bwg-ui/core 1.1.2 → 1.1.3
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/{BwgLargeUploader-CwaZ2WwY.js → BwgLargeUploader-CZllyq7K.js} +515 -506
- package/dist/chunks/BwgLargeUploader-CZllyq7K.js.map +1 -0
- package/dist/chunks/BwgLargeUploader-xAjj4TQ1.cjs +3 -0
- package/dist/chunks/BwgLargeUploader-xAjj4TQ1.cjs.map +1 -0
- package/dist/chunks/{SSOHandler-CvYiloZ5.js → SSOHandler-BFys-2Zz.js} +1645 -1640
- package/dist/chunks/SSOHandler-BFys-2Zz.js.map +1 -0
- package/dist/chunks/SSOHandler-De8MPtGZ.cjs +184 -0
- package/dist/chunks/SSOHandler-De8MPtGZ.cjs.map +1 -0
- package/dist/chunks/{UtilsContext-B6P_aohP.cjs → UtilsContext-5l7yFRQI.cjs} +2 -2
- package/dist/chunks/{UtilsContext-B6P_aohP.cjs.map → UtilsContext-5l7yFRQI.cjs.map} +1 -1
- package/dist/chunks/{UtilsContext-B9uAvAVF.js → UtilsContext-CSgz9o2Z.js} +2 -2
- package/dist/chunks/{UtilsContext-B9uAvAVF.js.map → UtilsContext-CSgz9o2Z.js.map} +1 -1
- package/dist/chunks/popupStore-BGubYHZh.cjs +2 -0
- package/dist/chunks/popupStore-BGubYHZh.cjs.map +1 -0
- package/dist/chunks/{popupStore-BFIHOcoZ.js → popupStore-BJ_IYrdY.js} +2 -2
- package/dist/chunks/popupStore-BJ_IYrdY.js.map +1 -0
- package/dist/components/common/BwgGrid.d.ts +2 -0
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/BwgFormItem.d.ts +1 -1
- package/dist/components/core/BwgFormItem.d.ts.map +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +1 -1
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.cjs.map +1 -1
- package/dist/stores/index.d.ts +1 -1
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +1 -1
- package/dist/stores/index.js.map +1 -1
- package/dist/styles/components.css +50 -17
- package/dist/styles/layout.css +7 -0
- package/dist/styles/popup.css +4 -0
- package/dist/styles/variables.css +7 -1
- package/package.json +1 -1
- package/dist/chunks/BwgLargeUploader-CaH2F8x6.cjs +0 -3
- package/dist/chunks/BwgLargeUploader-CaH2F8x6.cjs.map +0 -1
- package/dist/chunks/BwgLargeUploader-CwaZ2WwY.js.map +0 -1
- package/dist/chunks/SSOHandler-CpCGcq5k.cjs +0 -184
- package/dist/chunks/SSOHandler-CpCGcq5k.cjs.map +0 -1
- package/dist/chunks/SSOHandler-CvYiloZ5.js.map +0 -1
- package/dist/chunks/popupStore--hKZUZcO.cjs +0 -2
- package/dist/chunks/popupStore--hKZUZcO.cjs.map +0 -1
- package/dist/chunks/popupStore-BFIHOcoZ.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const u=require("react"),b=require("./popupStore
|
|
2
|
-
//# sourceMappingURL=UtilsContext-
|
|
1
|
+
"use strict";const u=require("react"),b=require("./popupStore-BGubYHZh.cjs"),y=require("./jsx-runtime-CeSfJrVB.cjs"),L=require("./codeStore-BG8S_mdS.cjs"),o=require("./commonUtils-L9Jgc5y-.cjs"),i=require("./serviceConfig-Cc8jfw_Y.cjs"),x=()=>!1,E=()=>{const{popups:e,activePopupId:r,setActivePopup:s,closePopup:m,openPopup:c}=b.usePopupStore(),l=u.useCallback(async(d,g,C)=>{try{await c(d,g,C)}catch(p){throw console.error("팝업 열기 실패:",p),p}},[c]);return{popups:e,activePopupId:r,setActivePopup:s,closePopup:m,showPopup:l,isPopup:e.length>0}},D=u.createContext(void 0),S=({children:e})=>{const{codeData:r,isLoading:s,error:m,lastUpdated:c,getCodeList:l,getCodeListByOption:d,getCodeName:g,getCodeColor:C,getCodeByOption:p,getAvailableGroupCodes:U,getGridLookup:f,fetchCommonCodes:P}=L.useCodeStore(),v={codeData:r,isLoading:s,error:m,lastUpdated:c,getCodeList:l,getCodeListByOption:d,getCodeName:g,getCodeColor:C,getCodeByOption:p,getAvailableGroupCodes:U,getGridLookup:f,refreshCodes:P};return y.jsxRuntimeExports.jsx(D.Provider,{value:v,children:e})},a=()=>{const e=u.useContext(D);if(e===void 0)throw new Error("useCommonCode must be used within a CommonCodeProvider");return e},A=()=>{const{getCodeList:e,isLoading:r,error:s}=a();return{getCodeList:e,isLoading:r,error:s}},I=()=>{const{getCodeName:e,isLoading:r,error:s}=a();return{getCodeName:e,isLoading:r,error:s}},N=()=>{const{getCodeColor:e,isLoading:r,error:s}=a();return{getCodeColor:e,isLoading:r,error:s}},T=()=>{const{getCodeListByOption:e,isLoading:r,error:s}=a();return{getCodeListByOption:e,isLoading:r,error:s}},G=()=>{const{getGridLookup:e,isLoading:r,error:s}=a();return{getGridLookup:e,isLoading:r,error:s}},k={...o.dateUtils,...i.stringUtils,isEmptyArray:o.isEmptyArray,isNotEmptyArray:o.isNotEmptyArray,unique:o.unique,shuffle:o.shuffle,sortBy:o.sortBy,max:o.max,min:o.min,average:o.average,sum:o.sum,randomFromArray:o.randomFromArray,flattenArray:o.flattenArray,...o.objectUtils,debounce:o.debounce,throttle:o.throttle,setLocalStorage:o.setLocalStorage,getLocalStorage:o.getLocalStorage,formatNumber:o.formatNumber,formatCurrency:o.formatCurrency,copyToClipboard:o.copyToClipboard,isMobile:o.isMobile,isDesktop:o.isDesktop,callService:i.callService,apiGet:i.apiGet,apiPost:i.apiPost,apiPut:i.apiPut,apiDelete:i.apiDelete,apiPatch:i.apiPatch},h=u.createContext(void 0),q=({children:e})=>y.jsxRuntimeExports.jsx(h.Provider,{value:{utils:k},children:e}),n=()=>{const e=u.useContext(h);if(e===void 0)throw new Error("useUtils must be used within a UtilsProvider");return e.utils},t=(e,r,s)=>e&&typeof e[r]=="function"?e[r]:s||(()=>{}),w=()=>{const e=n();return{formatDate:t(e,"formatDate"),formatDateKorean:t(e,"formatDateKorean"),getCurrentDate:t(e,"getCurrentDate"),getCurrentDateString:t(e,"getCurrentDateString"),getRelativeTime:t(e,"getRelativeTime"),isToday:t(e,"isToday"),isThisWeek:t(e,"isThisWeek"),isThisMonth:t(e,"isThisMonth"),getDateDiff:t(e,"getDateDiff"),calculateAge:t(e,"calculateAge")}},B=()=>{const e=n();return{isEmpty:t(e,"isEmpty"),isNotEmpty:t(e,"isNotEmpty"),truncate:t(e,"truncate"),capitalize:t(e,"capitalize"),formatPhoneNumber:t(e,"formatPhoneNumber"),isValidEmail:t(e,"isValidEmail"),removeHtmlTags:t(e,"removeHtmlTags"),generateUID:t(e,"generateUID"),generateShortUID:t(e,"generateShortUID"),generateLongUID:t(e,"generateLongUID"),generateNumericUID:t(e,"generateNumericUID"),generateAlphanumericUID:t(e,"generateAlphanumericUID"),generateGUID:t(e,"generateGUID"),generateGUIDWithoutHyphens:t(e,"generateGUIDWithoutHyphens"),generateTimestampUID:t(e,"generateTimestampUID"),generateCustomUID:t(e,"generateCustomUID"),encryptSha256:t(e,"encryptSha256"),bxmEncrypt:t(e,"bxmEncrypt"),bxmDecrypt:t(e,"bxmDecrypt"),simpleEncrypt:t(e,"simpleEncrypt"),simpleDecrypt:t(e,"simpleDecrypt"),md5Hash:t(e,"md5Hash"),sha256Hash:t(e,"sha256Hash"),base64Encode:t(e,"base64Encode"),base64Decode:t(e,"base64Decode")}},H=()=>{const e=n();return{isEmptyArray:t(e,"isEmptyArray"),isNotEmptyArray:t(e,"isNotEmptyArray"),unique:t(e,"unique"),shuffle:t(e,"shuffle"),sortBy:t(e,"sortBy"),max:t(e,"max"),min:t(e,"min"),average:t(e,"average"),sum:t(e,"sum")}},M=()=>{const e=n();return{debounce:t(e,"debounce"),throttle:t(e,"throttle"),setLocalStorage:t(e,"setLocalStorage"),getLocalStorage:t(e,"getLocalStorage"),formatNumber:t(e,"formatNumber"),formatCurrency:t(e,"formatCurrency"),copyToClipboard:t(e,"copyToClipboard"),isMobile:t(e,"isMobile"),isDesktop:t(e,"isDesktop")}},R=()=>{const e=n();return{callService:t(e,"callService"),apiGet:t(e,"apiGet"),apiPost:t(e,"apiPost"),apiPut:t(e,"apiPut"),apiDelete:t(e,"apiDelete"),apiPatch:t(e,"apiPatch")}};exports.CommonCodeProvider=S;exports.UtilsProvider=q;exports.useApiUtils=R;exports.useArrayUtils=H;exports.useCodeColor=N;exports.useCodeList=A;exports.useCodeListByOption=T;exports.useCodeName=I;exports.useCommonCode=a;exports.useCommonUtils=M;exports.useDateUtils=w;exports.useGridLookup=G;exports.usePopup=E;exports.usePopupContext=x;exports.useStringUtils=B;exports.useUtils=n;
|
|
2
|
+
//# sourceMappingURL=UtilsContext-5l7yFRQI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UtilsContext-B6P_aohP.cjs","sources":["../../src/provider/hooks/usePopup.ts","../../src/provider/contexts/CommonCodeContext.tsx","../../src/provider/contexts/UtilsContext.tsx"],"sourcesContent":["import { useCallback } from 'react';\r\nimport { usePopupStore, type PopupConfig } from '../../stores/popupStore';\r\n\r\n/**\r\n * 팝업 컨텍스트를 감지하는 훅\r\n * 팝업 내부에서 사용하면 true, 일반 페이지에서는 false 반환\r\n */\r\nexport const usePopupContext = (): boolean => {\r\n // 팝업 내부에서만 true를 반환하도록 수정\r\n // 현재는 팝업이 열려있으면 모든 컴포넌트가 팝업으로 인식되는 문제가 있음\r\n // 임시로 false 반환 (수동으로 isPopup prop 사용 권장)\r\n return false;\r\n};\r\n\r\n/**\r\n * 팝업 데이터와 이벤트를 관리하는 훅\r\n */\r\nexport const usePopup = () => {\r\n const { popups, activePopupId, setActivePopup, closePopup, openPopup } =\r\n usePopupStore();\r\n\r\n // 팝업 열기 함수\r\n const showPopup = useCallback(\r\n async (popupCode: string, popParams?: any, config?: PopupConfig) => {\r\n try {\r\n await openPopup(popupCode, popParams, config);\r\n } catch (error) {\r\n console.error('팝업 열기 실패:', error);\r\n throw error;\r\n }\r\n },\r\n [openPopup]\r\n );\r\n\r\n return {\r\n popups,\r\n activePopupId,\r\n setActivePopup,\r\n closePopup,\r\n showPopup,\r\n isPopup: popups.length > 0,\r\n };\r\n};\r\n","import { useCodeStore, type CommonCodeContextType } from '../../stores/codeStore';\r\nimport { createContext, useContext, ReactNode } from 'react';\r\n\r\n// 공통코드 컨텍스트 생성\r\nconst CommonCodeContext = createContext<CommonCodeContextType | undefined>(\r\n undefined\r\n);\r\n\r\n// 공통코드 컨텍스트 프로바이더 컴포넌트\r\ninterface CommonCodeProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const CommonCodeProvider: React.FC<CommonCodeProviderProps> = ({\r\n children,\r\n}) => {\r\n const {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n fetchCommonCodes,\r\n } = useCodeStore();\r\n\r\n const contextValue: CommonCodeContextType = {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n refreshCodes: fetchCommonCodes,\r\n };\r\n\r\n return (\r\n <CommonCodeContext.Provider value={contextValue}>\r\n {children}\r\n </CommonCodeContext.Provider>\r\n );\r\n};\r\n\r\n// 공통코드 컨텍스트 사용 훅\r\nexport const useCommonCode = (): CommonCodeContextType => {\r\n const context = useContext(CommonCodeContext);\r\n if (context === undefined) {\r\n throw new Error('useCommonCode must be used within a CommonCodeProvider');\r\n }\r\n return context;\r\n};\r\n\r\n// 편의 훅들 (Fast Refresh 호환성을 위해 매개변수 없는 함수로 변경)\r\nexport const useCodeList = () => {\r\n const { getCodeList, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeList,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeName = () => {\r\n const { getCodeName, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeName,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeColor = () => {\r\n const { getCodeColor, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeColor,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeListByOption = () => {\r\n const { getCodeListByOption, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeListByOption,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useGridLookup = () => {\r\n const { getGridLookup, isLoading, error } = useCommonCode();\r\n return {\r\n getGridLookup,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n","import React, { createContext, useContext } from \"react\";\r\nimport type { ReactNode } from \"react\";\r\nimport * as dateUtils from \"../../utils/dateUtils\";\r\nimport * as stringUtils from \"../../utils/stringUtils\";\r\nimport * as arrayUtils from \"../../utils/arrayUtils\";\r\nimport * as objectUtils from \"../../utils/objectUtils\";\r\nimport * as commonUtils from \"../../utils/commonUtils\";\r\nimport * as apiUtils from \"../../utils/apiUtils\";\r\n\r\n// 모든 유틸리티 함수들을 하나의 객체로 결합 (충돌하는 함수명은 별칭 사용)\r\nconst utils = {\r\n // 날짜 유틸리티\r\n ...dateUtils,\r\n // 문자열 유틸리티\r\n ...stringUtils,\r\n // 배열 유틸리티 (충돌하는 함수명은 별칭 사용)\r\n isEmptyArray: arrayUtils.isEmptyArray,\r\n isNotEmptyArray: arrayUtils.isNotEmptyArray,\r\n unique: arrayUtils.unique,\r\n shuffle: arrayUtils.shuffle,\r\n sortBy: arrayUtils.sortBy,\r\n max: arrayUtils.max,\r\n min: arrayUtils.min,\r\n average: arrayUtils.average,\r\n sum: arrayUtils.sum,\r\n randomFromArray: arrayUtils.randomFromArray,\r\n flattenArray: arrayUtils.flattenArray,\r\n // 객체 유틸리티\r\n ...objectUtils,\r\n // 일반 유틸리티 (충돌하는 함수명은 별칭 사용)\r\n debounce: commonUtils.debounce,\r\n throttle: commonUtils.throttle,\r\n setLocalStorage: commonUtils.setLocalStorage,\r\n getLocalStorage: commonUtils.getLocalStorage,\r\n formatNumber: commonUtils.formatNumber,\r\n formatCurrency: commonUtils.formatCurrency,\r\n copyToClipboard: commonUtils.copyToClipboard,\r\n isMobile: commonUtils.isMobile,\r\n isDesktop: commonUtils.isDesktop,\r\n // API 유틸리티\r\n callService: apiUtils.callService,\r\n apiGet: apiUtils.apiGet,\r\n apiPost: apiUtils.apiPost,\r\n apiPut: apiUtils.apiPut,\r\n apiDelete: apiUtils.apiDelete,\r\n apiPatch: apiUtils.apiPatch,\r\n};\r\n\r\n// Context 타입 정의\r\ninterface UtilsContextType {\r\n utils: typeof utils;\r\n}\r\n\r\n// Context 생성\r\nconst UtilsContext = createContext<UtilsContextType | undefined>(undefined);\r\n\r\n// Provider 컴포넌트\r\ninterface UtilsProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const UtilsProvider: React.FC<UtilsProviderProps> = ({ children }) => {\r\n return (\r\n <UtilsContext.Provider value={{ utils }}>{children}</UtilsContext.Provider>\r\n );\r\n};\r\n\r\n// Hook for using utils\r\nexport const useUtils = () => {\r\n const context = useContext(UtilsContext);\r\n if (context === undefined) {\r\n throw new Error(\"useUtils must be used within a UtilsProvider\");\r\n }\r\n return context.utils;\r\n};\r\n\r\n// 안전한 함수 가져오기 헬퍼\r\nconst safeGet = (obj: any, key: string, fallback?: any) => {\r\n return obj && typeof obj[key] === \"function\"\r\n ? obj[key]\r\n : fallback || (() => {});\r\n};\r\n\r\n// 개별 유틸리티 훅들 (선택사항)\r\nexport const useDateUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n formatDate: safeGet(utils, \"formatDate\"),\r\n formatDateKorean: safeGet(utils, \"formatDateKorean\"),\r\n getCurrentDate: safeGet(utils, \"getCurrentDate\"),\r\n getCurrentDateString: safeGet(utils, \"getCurrentDateString\"),\r\n getRelativeTime: safeGet(utils, \"getRelativeTime\"),\r\n isToday: safeGet(utils, \"isToday\"),\r\n isThisWeek: safeGet(utils, \"isThisWeek\"),\r\n isThisMonth: safeGet(utils, \"isThisMonth\"),\r\n getDateDiff: safeGet(utils, \"getDateDiff\"),\r\n calculateAge: safeGet(utils, \"calculateAge\"),\r\n };\r\n};\r\n\r\nexport const useStringUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n isEmpty: safeGet(utils, \"isEmpty\"),\r\n isNotEmpty: safeGet(utils, \"isNotEmpty\"),\r\n truncate: safeGet(utils, \"truncate\"),\r\n capitalize: safeGet(utils, \"capitalize\"),\r\n formatPhoneNumber: safeGet(utils, \"formatPhoneNumber\"),\r\n isValidEmail: safeGet(utils, \"isValidEmail\"),\r\n removeHtmlTags: safeGet(utils, \"removeHtmlTags\"),\r\n // UID 생성 함수들\r\n generateUID: safeGet(utils, \"generateUID\"),\r\n generateShortUID: safeGet(utils, \"generateShortUID\"),\r\n generateLongUID: safeGet(utils, \"generateLongUID\"),\r\n generateNumericUID: safeGet(utils, \"generateNumericUID\"),\r\n generateAlphanumericUID: safeGet(utils, \"generateAlphanumericUID\"),\r\n generateGUID: safeGet(utils, \"generateGUID\"),\r\n generateGUIDWithoutHyphens: safeGet(utils, \"generateGUIDWithoutHyphens\"),\r\n generateTimestampUID: safeGet(utils, \"generateTimestampUID\"),\r\n generateCustomUID: safeGet(utils, \"generateCustomUID\"),\r\n // 암호화 관련 함수들\r\n encryptSha256: safeGet(utils, \"encryptSha256\"),\r\n bxmEncrypt: safeGet(utils, \"bxmEncrypt\"),\r\n bxmDecrypt: safeGet(utils, \"bxmDecrypt\"),\r\n simpleEncrypt: safeGet(utils, \"simpleEncrypt\"),\r\n simpleDecrypt: safeGet(utils, \"simpleDecrypt\"),\r\n md5Hash: safeGet(utils, \"md5Hash\"),\r\n sha256Hash: safeGet(utils, \"sha256Hash\"),\r\n base64Encode: safeGet(utils, \"base64Encode\"),\r\n base64Decode: safeGet(utils, \"base64Decode\"),\r\n };\r\n};\r\n\r\nexport const useArrayUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n isEmptyArray: safeGet(utils, \"isEmptyArray\"),\r\n isNotEmptyArray: safeGet(utils, \"isNotEmptyArray\"),\r\n unique: safeGet(utils, \"unique\"),\r\n shuffle: safeGet(utils, \"shuffle\"),\r\n sortBy: safeGet(utils, \"sortBy\"),\r\n max: safeGet(utils, \"max\"),\r\n min: safeGet(utils, \"min\"),\r\n average: safeGet(utils, \"average\"),\r\n sum: safeGet(utils, \"sum\"),\r\n };\r\n};\r\n\r\nexport const useCommonUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n debounce: safeGet(utils, \"debounce\"),\r\n throttle: safeGet(utils, \"throttle\"),\r\n setLocalStorage: safeGet(utils, \"setLocalStorage\"),\r\n getLocalStorage: safeGet(utils, \"getLocalStorage\"),\r\n formatNumber: safeGet(utils, \"formatNumber\"),\r\n formatCurrency: safeGet(utils, \"formatCurrency\"),\r\n copyToClipboard: safeGet(utils, \"copyToClipboard\"),\r\n isMobile: safeGet(utils, \"isMobile\"),\r\n isDesktop: safeGet(utils, \"isDesktop\"),\r\n };\r\n};\r\n\r\nexport const useApiUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n callService: safeGet(utils, \"callService\"),\r\n apiGet: safeGet(utils, \"apiGet\"),\r\n apiPost: safeGet(utils, \"apiPost\"),\r\n apiPut: safeGet(utils, \"apiPut\"),\r\n apiDelete: safeGet(utils, \"apiDelete\"),\r\n apiPatch: safeGet(utils, \"apiPatch\"),\r\n };\r\n};\r\n"],"names":["usePopupContext","usePopup","popups","activePopupId","setActivePopup","closePopup","openPopup","usePopupStore","showPopup","useCallback","popupCode","popParams","config","error","CommonCodeContext","createContext","CommonCodeProvider","children","codeData","isLoading","lastUpdated","getCodeList","getCodeListByOption","getCodeName","getCodeColor","getCodeByOption","getAvailableGroupCodes","getGridLookup","fetchCommonCodes","useCodeStore","contextValue","useCommonCode","context","useContext","useCodeList","useCodeName","useCodeColor","useCodeListByOption","useGridLookup","utils","dateUtils","stringUtils","arrayUtils.isEmptyArray","arrayUtils.isNotEmptyArray","arrayUtils.unique","arrayUtils.shuffle","arrayUtils.sortBy","arrayUtils.max","arrayUtils.min","arrayUtils.average","arrayUtils.sum","arrayUtils.randomFromArray","arrayUtils.flattenArray","objectUtils","commonUtils.debounce","commonUtils.throttle","commonUtils.setLocalStorage","commonUtils.getLocalStorage","commonUtils.formatNumber","commonUtils.formatCurrency","commonUtils.copyToClipboard","commonUtils.isMobile","commonUtils.isDesktop","apiUtils.callService","apiUtils.apiGet","apiUtils.apiPost","apiUtils.apiPut","apiUtils.apiDelete","apiUtils.apiPatch","UtilsContext","UtilsProvider","jsx","useUtils","safeGet","obj","key","fallback","useDateUtils","useStringUtils","useArrayUtils","useCommonUtils","useApiUtils"],"mappings":"6OAOaA,EAAkB,IAItB,GAMIC,EAAW,IAAM,CAC5B,KAAM,CAAE,OAAAC,EAAQ,cAAAC,EAAe,eAAAC,EAAgB,WAAAC,EAAY,UAAAC,CAAA,EACzDC,gBAAA,EAGIC,EAAYC,EAAAA,YAChB,MAAOC,EAAmBC,EAAiBC,IAAyB,CAClE,GAAI,CACF,MAAMN,EAAUI,EAAWC,EAAWC,CAAM,CAC9C,OAASC,EAAO,CACd,cAAQ,MAAM,YAAaA,CAAK,EAC1BA,CACR,CACF,EACA,CAACP,CAAS,CAAA,EAGZ,MAAO,CACL,OAAAJ,EACA,cAAAC,EACA,eAAAC,EACA,WAAAC,EACA,UAAAG,EACA,QAASN,EAAO,OAAS,CAAA,CAE7B,ECtCMY,EAAoBC,EAAAA,cACxB,MACF,EAOaC,EAAwD,CAAC,CACpE,SAAAC,CACF,IAAM,CACJ,KAAM,CACJ,SAAAC,EACA,UAAAC,EACA,MAAAN,EACA,YAAAO,EACA,YAAAC,EACA,oBAAAC,EACA,YA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c,CAAA,CAE/C,EAEawC,EAAgB,IAAM,CACjC,MAAMxC,EAAQiC,EAAA,EACd,MAAO,CACL,aAAcC,EAAQlC,EAAO,cAAc,EAC3C,gBAAiBkC,EAAQlC,EAAO,iBAAiB,EACjD,OAAQkC,EAAQlC,EAAO,QAAQ,EAC/B,QAASkC,EAAQlC,EAAO,SAAS,EACjC,OAAQkC,EAAQlC,EAAO,QAAQ,EAC/B,IAAKkC,EAAQlC,EAAO,KAAK,EACzB,IAAKkC,EAAQlC,EAAO,KAAK,EACzB,QAASkC,EAAQlC,EAAO,SAAS,EACjC,IAAKkC,EAAQlC,EAAO,KAAK,CAAA,CAE7B,EAEayC,EAAiB,IAAM,CAClC,MAAMzC,EAAQiC,EAAA,EACd,MAAO,CACL,SAAUC,EAAQlC,EAAO,UAAU,EACnC,SAAUkC,EAAQlC,EAAO,UAAU,EACnC,gBAAiBkC,EAAQlC,EAAO,iBAAiB,EACjD,gBAAiBkC,EAAQlC,EAAO,iBAAiB,EACjD,aAAckC,EAAQlC,EAAO,cAAc,EAC3C,eAAgBkC,EAAQlC,EAAO,gBAAgB,EAC/C,gBAAiBkC,EAAQlC,EAAO,iBAAiB,EACjD,SAAUkC,EAAQlC,EAAO,UAAU,EACnC,UAAWkC,EAAQlC,EAAO,WAAW,CAAA,CAEzC,EAEa0C,EAAc,IAAM,CAC/B,MAAM1C,EAAQiC,EAAA,EACd,MAAO,CACL,YAAaC,EAAQlC,EAAO,aAAa,EACzC,OAAQkC,EAAQlC,EAAO,QAAQ,EAC/B,QAASkC,EAAQlC,EAAO,SAAS,EACjC,OAAQkC,EAAQlC,EAAO,QAAQ,EAC/B,UAAWkC,EAAQlC,EAAO,WAAW,EACrC,SAAUkC,EAAQlC,EAAO,UAAU,CAAA,CAEvC"}
|
|
1
|
+
{"version":3,"file":"UtilsContext-5l7yFRQI.cjs","sources":["../../src/provider/hooks/usePopup.ts","../../src/provider/contexts/CommonCodeContext.tsx","../../src/provider/contexts/UtilsContext.tsx"],"sourcesContent":["import { useCallback } from 'react';\r\nimport { usePopupStore, type PopupConfig } from '../../stores/popupStore';\r\n\r\n/**\r\n * 팝업 컨텍스트를 감지하는 훅\r\n * 팝업 내부에서 사용하면 true, 일반 페이지에서는 false 반환\r\n */\r\nexport const usePopupContext = (): boolean => {\r\n // 팝업 내부에서만 true를 반환하도록 수정\r\n // 현재는 팝업이 열려있으면 모든 컴포넌트가 팝업으로 인식되는 문제가 있음\r\n // 임시로 false 반환 (수동으로 isPopup prop 사용 권장)\r\n return false;\r\n};\r\n\r\n/**\r\n * 팝업 데이터와 이벤트를 관리하는 훅\r\n */\r\nexport const usePopup = () => {\r\n const { popups, activePopupId, setActivePopup, closePopup, openPopup } =\r\n usePopupStore();\r\n\r\n // 팝업 열기 함수\r\n const showPopup = useCallback(\r\n async (popupCode: string, popParams?: any, config?: PopupConfig) => {\r\n try {\r\n await openPopup(popupCode, popParams, config);\r\n } catch (error) {\r\n console.error('팝업 열기 실패:', error);\r\n throw error;\r\n }\r\n },\r\n [openPopup]\r\n );\r\n\r\n return {\r\n popups,\r\n activePopupId,\r\n setActivePopup,\r\n closePopup,\r\n showPopup,\r\n isPopup: popups.length > 0,\r\n };\r\n};\r\n","import { useCodeStore, type CommonCodeContextType } from '../../stores/codeStore';\r\nimport { createContext, useContext, ReactNode } from 'react';\r\n\r\n// 공통코드 컨텍스트 생성\r\nconst CommonCodeContext = createContext<CommonCodeContextType | undefined>(\r\n undefined\r\n);\r\n\r\n// 공통코드 컨텍스트 프로바이더 컴포넌트\r\ninterface CommonCodeProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const CommonCodeProvider: React.FC<CommonCodeProviderProps> = ({\r\n children,\r\n}) => {\r\n const {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n fetchCommonCodes,\r\n } = useCodeStore();\r\n\r\n const contextValue: CommonCodeContextType = {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n refreshCodes: fetchCommonCodes,\r\n };\r\n\r\n return (\r\n <CommonCodeContext.Provider value={contextValue}>\r\n {children}\r\n </CommonCodeContext.Provider>\r\n );\r\n};\r\n\r\n// 공통코드 컨텍스트 사용 훅\r\nexport const useCommonCode = (): CommonCodeContextType => {\r\n const context = useContext(CommonCodeContext);\r\n if (context === undefined) {\r\n throw new Error('useCommonCode must be used within a CommonCodeProvider');\r\n }\r\n return context;\r\n};\r\n\r\n// 편의 훅들 (Fast Refresh 호환성을 위해 매개변수 없는 함수로 변경)\r\nexport const useCodeList = () => {\r\n const { getCodeList, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeList,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeName = () => {\r\n const { getCodeName, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeName,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeColor = () => {\r\n const { getCodeColor, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeColor,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeListByOption = () => {\r\n const { getCodeListByOption, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeListByOption,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useGridLookup = () => {\r\n const { getGridLookup, isLoading, error } = useCommonCode();\r\n return {\r\n getGridLookup,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n","import React, { createContext, useContext } from \"react\";\r\nimport type { ReactNode } from \"react\";\r\nimport * as dateUtils from \"../../utils/dateUtils\";\r\nimport * as stringUtils from \"../../utils/stringUtils\";\r\nimport * as arrayUtils from \"../../utils/arrayUtils\";\r\nimport * as objectUtils from \"../../utils/objectUtils\";\r\nimport * as commonUtils from \"../../utils/commonUtils\";\r\nimport * as apiUtils from \"../../utils/apiUtils\";\r\n\r\n// 모든 유틸리티 함수들을 하나의 객체로 결합 (충돌하는 함수명은 별칭 사용)\r\nconst utils = {\r\n // 날짜 유틸리티\r\n ...dateUtils,\r\n // 문자열 유틸리티\r\n ...stringUtils,\r\n // 배열 유틸리티 (충돌하는 함수명은 별칭 사용)\r\n isEmptyArray: arrayUtils.isEmptyArray,\r\n isNotEmptyArray: arrayUtils.isNotEmptyArray,\r\n unique: arrayUtils.unique,\r\n shuffle: arrayUtils.shuffle,\r\n sortBy: arrayUtils.sortBy,\r\n max: arrayUtils.max,\r\n min: arrayUtils.min,\r\n average: arrayUtils.average,\r\n sum: arrayUtils.sum,\r\n randomFromArray: arrayUtils.randomFromArray,\r\n flattenArray: arrayUtils.flattenArray,\r\n // 객체 유틸리티\r\n ...objectUtils,\r\n // 일반 유틸리티 (충돌하는 함수명은 별칭 사용)\r\n debounce: commonUtils.debounce,\r\n throttle: commonUtils.throttle,\r\n setLocalStorage: commonUtils.setLocalStorage,\r\n getLocalStorage: commonUtils.getLocalStorage,\r\n formatNumber: commonUtils.formatNumber,\r\n formatCurrency: commonUtils.formatCurrency,\r\n copyToClipboard: commonUtils.copyToClipboard,\r\n isMobile: commonUtils.isMobile,\r\n isDesktop: commonUtils.isDesktop,\r\n // API 유틸리티\r\n callService: apiUtils.callService,\r\n apiGet: apiUtils.apiGet,\r\n apiPost: apiUtils.apiPost,\r\n apiPut: apiUtils.apiPut,\r\n apiDelete: apiUtils.apiDelete,\r\n apiPatch: apiUtils.apiPatch,\r\n};\r\n\r\n// Context 타입 정의\r\ninterface UtilsContextType {\r\n utils: typeof utils;\r\n}\r\n\r\n// Context 생성\r\nconst UtilsContext = createContext<UtilsContextType | undefined>(undefined);\r\n\r\n// Provider 컴포넌트\r\ninterface UtilsProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const UtilsProvider: React.FC<UtilsProviderProps> = ({ children }) => {\r\n return (\r\n <UtilsContext.Provider value={{ utils }}>{children}</UtilsContext.Provider>\r\n );\r\n};\r\n\r\n// Hook for using utils\r\nexport const useUtils = () => {\r\n const context = useContext(UtilsContext);\r\n if (context === undefined) {\r\n throw new Error(\"useUtils must be used within a UtilsProvider\");\r\n }\r\n return context.utils;\r\n};\r\n\r\n// 안전한 함수 가져오기 헬퍼\r\nconst safeGet = (obj: any, key: string, fallback?: any) => {\r\n return obj && typeof obj[key] === \"function\"\r\n ? obj[key]\r\n : fallback || (() => {});\r\n};\r\n\r\n// 개별 유틸리티 훅들 (선택사항)\r\nexport const useDateUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n formatDate: safeGet(utils, \"formatDate\"),\r\n formatDateKorean: safeGet(utils, \"formatDateKorean\"),\r\n getCurrentDate: safeGet(utils, \"getCurrentDate\"),\r\n getCurrentDateString: safeGet(utils, \"getCurrentDateString\"),\r\n getRelativeTime: safeGet(utils, \"getRelativeTime\"),\r\n isToday: safeGet(utils, \"isToday\"),\r\n isThisWeek: safeGet(utils, \"isThisWeek\"),\r\n isThisMonth: safeGet(utils, \"isThisMonth\"),\r\n getDateDiff: safeGet(utils, \"getDateDiff\"),\r\n calculateAge: safeGet(utils, \"calculateAge\"),\r\n };\r\n};\r\n\r\nexport const useStringUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n isEmpty: safeGet(utils, \"isEmpty\"),\r\n isNotEmpty: safeGet(utils, \"isNotEmpty\"),\r\n truncate: safeGet(utils, \"truncate\"),\r\n capitalize: safeGet(utils, \"capitalize\"),\r\n formatPhoneNumber: safeGet(utils, \"formatPhoneNumber\"),\r\n isValidEmail: safeGet(utils, \"isValidEmail\"),\r\n removeHtmlTags: safeGet(utils, \"removeHtmlTags\"),\r\n // UID 생성 함수들\r\n generateUID: safeGet(utils, \"generateUID\"),\r\n generateShortUID: safeGet(utils, \"generateShortUID\"),\r\n generateLongUID: safeGet(utils, \"generateLongUID\"),\r\n generateNumericUID: safeGet(utils, \"generateNumericUID\"),\r\n generateAlphanumericUID: safeGet(utils, \"generateAlphanumericUID\"),\r\n generateGUID: safeGet(utils, \"generateGUID\"),\r\n generateGUIDWithoutHyphens: safeGet(utils, \"generateGUIDWithoutHyphens\"),\r\n generateTimestampUID: safeGet(utils, \"generateTimestampUID\"),\r\n generateCustomUID: safeGet(utils, \"generateCustomUID\"),\r\n // 암호화 관련 함수들\r\n encryptSha256: safeGet(utils, \"encryptSha256\"),\r\n bxmEncrypt: safeGet(utils, \"bxmEncrypt\"),\r\n bxmDecrypt: safeGet(utils, \"bxmDecrypt\"),\r\n simpleEncrypt: safeGet(utils, \"simpleEncrypt\"),\r\n simpleDecrypt: safeGet(utils, \"simpleDecrypt\"),\r\n md5Hash: safeGet(utils, \"md5Hash\"),\r\n sha256Hash: safeGet(utils, \"sha256Hash\"),\r\n base64Encode: safeGet(utils, \"base64Encode\"),\r\n base64Decode: safeGet(utils, \"base64Decode\"),\r\n };\r\n};\r\n\r\nexport const useArrayUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n isEmptyArray: safeGet(utils, \"isEmptyArray\"),\r\n isNotEmptyArray: safeGet(utils, \"isNotEmptyArray\"),\r\n unique: safeGet(utils, \"unique\"),\r\n shuffle: safeGet(utils, \"shuffle\"),\r\n sortBy: safeGet(utils, \"sortBy\"),\r\n max: safeGet(utils, \"max\"),\r\n min: safeGet(utils, \"min\"),\r\n average: safeGet(utils, \"average\"),\r\n sum: safeGet(utils, \"sum\"),\r\n };\r\n};\r\n\r\nexport const useCommonUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n debounce: safeGet(utils, \"debounce\"),\r\n throttle: safeGet(utils, \"throttle\"),\r\n setLocalStorage: safeGet(utils, \"setLocalStorage\"),\r\n getLocalStorage: safeGet(utils, \"getLocalStorage\"),\r\n formatNumber: safeGet(utils, \"formatNumber\"),\r\n formatCurrency: safeGet(utils, \"formatCurrency\"),\r\n copyToClipboard: safeGet(utils, \"copyToClipboard\"),\r\n isMobile: safeGet(utils, \"isMobile\"),\r\n isDesktop: safeGet(utils, \"isDesktop\"),\r\n };\r\n};\r\n\r\nexport const useApiUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n callService: safeGet(utils, \"callService\"),\r\n apiGet: safeGet(utils, \"apiGet\"),\r\n apiPost: safeGet(utils, \"apiPost\"),\r\n apiPut: safeGet(utils, \"apiPut\"),\r\n apiDelete: safeGet(utils, \"apiDelete\"),\r\n apiPatch: safeGet(utils, \"apiPatch\"),\r\n };\r\n};\r\n"],"names":["usePopupContext","usePopup","popups","activePopupId","setActivePopup","closePopup","openPopup","usePopupStore","showPopup","useCallback","popupCode","popParams","config","error","CommonCodeContext","createContext","CommonCodeProvider","children","codeData","isLoading","lastUpdated","getCodeList","getCodeListByOption","getCodeName","getCodeColor","getCodeByOption","getAvailableGroupCodes","getGridLookup","fetchCommonCodes","useCodeStore","contextValue","useCommonCode","context","useContext","useCodeList","useCodeName","useCodeColor","useCodeListByOption","useGridLookup","utils","dateUtils","stringUtils","arrayUtils.isEmptyArray","arrayUtils.isNotEmptyArray","arrayUtils.unique","arrayUtils.shuffle","arrayUtils.sortBy","arrayUtils.max","arrayUtils.min","arrayUtils.average","arrayUtils.sum","arrayUtils.randomFromArray","arrayUtils.flattenArray","objectUtils","commonUtils.debounce","commonUtils.throttle","commonUtils.setLocalStorage","commonUtils.getLocalStorage","commonUtils.formatNumber","commonUtils.formatCurrency","commonUtils.copyToClipboard","commonUtils.isMobile","commonUtils.isDesktop","apiUtils.callService","apiUtils.apiGet","apiUtils.apiPost","apiUtils.apiPut","apiUtils.apiDelete","apiUtils.apiPatch","UtilsContext","UtilsProvider","jsx","useUtils","safeGet","obj","key","fallback","useDateUtils","useStringUtils","useArrayUtils","useCommonUtils","useApiUtils"],"mappings":"6OAOaA,EAAkB,IAItB,GAMIC,EAAW,IAAM,CAC5B,KAAM,CAAE,OAAAC,EAAQ,cAAAC,EAAe,eAAAC,EAAgB,WAAAC,EAAY,UAAAC,C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iB,EACjD,SAAUkC,EAAQlC,EAAO,UAAU,EACnC,UAAWkC,EAAQlC,EAAO,WAAW,CAAA,CAEzC,EAEa0C,EAAc,IAAM,CAC/B,MAAM1C,EAAQiC,EAAA,EACd,MAAO,CACL,YAAaC,EAAQlC,EAAO,aAAa,EACzC,OAAQkC,EAAQlC,EAAO,QAAQ,EAC/B,QAASkC,EAAQlC,EAAO,SAAS,EACjC,OAAQkC,EAAQlC,EAAO,QAAQ,EAC/B,UAAWkC,EAAQlC,EAAO,WAAW,EACrC,SAAUkC,EAAQlC,EAAO,UAAU,CAAA,CAEvC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback as P, createContext as g, useContext as d } from "react";
|
|
2
|
-
import { u as v } from "./popupStore-
|
|
2
|
+
import { u as v } from "./popupStore-BJ_IYrdY.js";
|
|
3
3
|
import { j as y } from "./jsx-runtime-Dpn_P65e.js";
|
|
4
4
|
import { u as L } from "./codeStore-rU4v3QIA.js";
|
|
5
5
|
import { am as E, ap as S, ac as x, aI as A, aJ as I, ai as N, aF as T, aH as G, ad as k, aK as w, a6 as H, T as B, Z as M, Y as q, X as O, W as R, P as W, O as j, R as V, aL as F, aM as K, aN as z } from "./commonUtils-BV6WFv-z.js";
|
|
@@ -238,4 +238,4 @@ export {
|
|
|
238
238
|
ue as m,
|
|
239
239
|
r as u
|
|
240
240
|
};
|
|
241
|
-
//# sourceMappingURL=UtilsContext-
|
|
241
|
+
//# sourceMappingURL=UtilsContext-CSgz9o2Z.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UtilsContext-B9uAvAVF.js","sources":["../../src/provider/hooks/usePopup.ts","../../src/provider/contexts/CommonCodeContext.tsx","../../src/provider/contexts/UtilsContext.tsx"],"sourcesContent":["import { useCallback } from 'react';\r\nimport { usePopupStore, type PopupConfig } from '../../stores/popupStore';\r\n\r\n/**\r\n * 팝업 컨텍스트를 감지하는 훅\r\n * 팝업 내부에서 사용하면 true, 일반 페이지에서는 false 반환\r\n */\r\nexport const usePopupContext = (): boolean => {\r\n // 팝업 내부에서만 true를 반환하도록 수정\r\n // 현재는 팝업이 열려있으면 모든 컴포넌트가 팝업으로 인식되는 문제가 있음\r\n // 임시로 false 반환 (수동으로 isPopup prop 사용 권장)\r\n return false;\r\n};\r\n\r\n/**\r\n * 팝업 데이터와 이벤트를 관리하는 훅\r\n */\r\nexport const usePopup = () => {\r\n const { popups, activePopupId, setActivePopup, closePopup, openPopup } =\r\n usePopupStore();\r\n\r\n // 팝업 열기 함수\r\n const showPopup = useCallback(\r\n async (popupCode: string, popParams?: any, config?: PopupConfig) => {\r\n try {\r\n await openPopup(popupCode, popParams, config);\r\n } catch (error) {\r\n console.error('팝업 열기 실패:', error);\r\n throw error;\r\n }\r\n },\r\n [openPopup]\r\n );\r\n\r\n return {\r\n popups,\r\n activePopupId,\r\n setActivePopup,\r\n closePopup,\r\n showPopup,\r\n isPopup: popups.length > 0,\r\n };\r\n};\r\n","import { useCodeStore, type CommonCodeContextType } from '../../stores/codeStore';\r\nimport { createContext, useContext, ReactNode } from 'react';\r\n\r\n// 공통코드 컨텍스트 생성\r\nconst CommonCodeContext = createContext<CommonCodeContextType | undefined>(\r\n undefined\r\n);\r\n\r\n// 공통코드 컨텍스트 프로바이더 컴포넌트\r\ninterface CommonCodeProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const CommonCodeProvider: React.FC<CommonCodeProviderProps> = ({\r\n children,\r\n}) => {\r\n const {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n fetchCommonCodes,\r\n } = useCodeStore();\r\n\r\n const contextValue: CommonCodeContextType = {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n refreshCodes: fetchCommonCodes,\r\n };\r\n\r\n return (\r\n <CommonCodeContext.Provider value={contextValue}>\r\n {children}\r\n </CommonCodeContext.Provider>\r\n );\r\n};\r\n\r\n// 공통코드 컨텍스트 사용 훅\r\nexport const useCommonCode = (): CommonCodeContextType => {\r\n const context = useContext(CommonCodeContext);\r\n if (context === undefined) {\r\n throw new Error('useCommonCode must be used within a CommonCodeProvider');\r\n }\r\n return context;\r\n};\r\n\r\n// 편의 훅들 (Fast Refresh 호환성을 위해 매개변수 없는 함수로 변경)\r\nexport const useCodeList = () => {\r\n const { getCodeList, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeList,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeName = () => {\r\n const { getCodeName, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeName,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeColor = () => {\r\n const { getCodeColor, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeColor,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeListByOption = () => {\r\n const { getCodeListByOption, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeListByOption,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useGridLookup = () => {\r\n const { getGridLookup, isLoading, error } = useCommonCode();\r\n return {\r\n getGridLookup,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n","import React, { createContext, useContext } from \"react\";\r\nimport type { ReactNode } from \"react\";\r\nimport * as dateUtils from \"../../utils/dateUtils\";\r\nimport * as stringUtils from \"../../utils/stringUtils\";\r\nimport * as arrayUtils from \"../../utils/arrayUtils\";\r\nimport * as objectUtils from \"../../utils/objectUtils\";\r\nimport * as commonUtils from \"../../utils/commonUtils\";\r\nimport * as apiUtils from \"../../utils/apiUtils\";\r\n\r\n// 모든 유틸리티 함수들을 하나의 객체로 결합 (충돌하는 함수명은 별칭 사용)\r\nconst utils = {\r\n // 날짜 유틸리티\r\n ...dateUtils,\r\n // 문자열 유틸리티\r\n ...stringUtils,\r\n // 배열 유틸리티 (충돌하는 함수명은 별칭 사용)\r\n isEmptyArray: arrayUtils.isEmptyArray,\r\n isNotEmptyArray: arrayUtils.isNotEmptyArray,\r\n unique: arrayUtils.unique,\r\n shuffle: arrayUtils.shuffle,\r\n sortBy: arrayUtils.sortBy,\r\n max: arrayUtils.max,\r\n min: arrayUtils.min,\r\n average: arrayUtils.average,\r\n sum: arrayUtils.sum,\r\n randomFromArray: arrayUtils.randomFromArray,\r\n flattenArray: arrayUtils.flattenArray,\r\n // 객체 유틸리티\r\n ...objectUtils,\r\n // 일반 유틸리티 (충돌하는 함수명은 별칭 사용)\r\n debounce: commonUtils.debounce,\r\n throttle: commonUtils.throttle,\r\n setLocalStorage: commonUtils.setLocalStorage,\r\n getLocalStorage: commonUtils.getLocalStorage,\r\n formatNumber: commonUtils.formatNumber,\r\n formatCurrency: commonUtils.formatCurrency,\r\n copyToClipboard: commonUtils.copyToClipboard,\r\n isMobile: commonUtils.isMobile,\r\n isDesktop: commonUtils.isDesktop,\r\n // API 유틸리티\r\n callService: apiUtils.callService,\r\n apiGet: apiUtils.apiGet,\r\n apiPost: apiUtils.apiPost,\r\n apiPut: apiUtils.apiPut,\r\n apiDelete: apiUtils.apiDelete,\r\n apiPatch: apiUtils.apiPatch,\r\n};\r\n\r\n// Context 타입 정의\r\ninterface UtilsContextType {\r\n utils: typeof utils;\r\n}\r\n\r\n// Context 생성\r\nconst UtilsContext = createContext<UtilsContextType | undefined>(undefined);\r\n\r\n// Provider 컴포넌트\r\ninterface UtilsProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const UtilsProvider: React.FC<UtilsProviderProps> = ({ children }) => {\r\n return (\r\n <UtilsContext.Provider value={{ utils }}>{children}</UtilsContext.Provider>\r\n );\r\n};\r\n\r\n// Hook for using utils\r\nexport const useUtils = () => {\r\n const context = useContext(UtilsContext);\r\n if (context === undefined) {\r\n throw new Error(\"useUtils must be used within a UtilsProvider\");\r\n }\r\n return context.utils;\r\n};\r\n\r\n// 안전한 함수 가져오기 헬퍼\r\nconst safeGet = (obj: any, key: string, fallback?: any) => {\r\n return obj && typeof obj[key] === \"function\"\r\n ? obj[key]\r\n : fallback || (() => {});\r\n};\r\n\r\n// 개별 유틸리티 훅들 (선택사항)\r\nexport const useDateUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n formatDate: safeGet(utils, \"formatDate\"),\r\n formatDateKorean: safeGet(utils, \"formatDateKorean\"),\r\n getCurrentDate: safeGet(utils, \"getCurrentDate\"),\r\n getCurrentDateString: safeGet(utils, \"getCurrentDateString\"),\r\n getRelativeTime: safeGet(utils, \"getRelativeTime\"),\r\n isToday: safeGet(utils, \"isToday\"),\r\n isThisWeek: safeGet(utils, \"isThisWeek\"),\r\n isThisMonth: safeGet(utils, \"isThisMonth\"),\r\n getDateDiff: safeGet(utils, \"getDateDiff\"),\r\n calculateAge: safeGet(utils, \"calculateAge\"),\r\n };\r\n};\r\n\r\nexport const useStringUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n isEmpty: safeGet(utils, \"isEmpty\"),\r\n isNotEmpty: safeGet(utils, \"isNotEmpty\"),\r\n truncate: safeGet(utils, \"truncate\"),\r\n capitalize: safeGet(utils, \"capitalize\"),\r\n formatPhoneNumber: safeGet(utils, \"formatPhoneNumber\"),\r\n isValidEmail: safeGet(utils, \"isValidEmail\"),\r\n removeHtmlTags: safeGet(utils, \"removeHtmlTags\"),\r\n // UID 생성 함수들\r\n generateUID: safeGet(utils, \"generateUID\"),\r\n generateShortUID: safeGet(utils, \"generateShortUID\"),\r\n generateLongUID: safeGet(utils, \"generateLongUID\"),\r\n generateNumericUID: safeGet(utils, \"generateNumericUID\"),\r\n generateAlphanumericUID: safeGet(utils, \"generateAlphanumericUID\"),\r\n generateGUID: safeGet(utils, \"generateGUID\"),\r\n generateGUIDWithoutHyphens: safeGet(utils, \"generateGUIDWithoutHyphens\"),\r\n generateTimestampUID: safeGet(utils, \"generateTimestampUID\"),\r\n generateCustomUID: safeGet(utils, \"generateCustomUID\"),\r\n // 암호화 관련 함수들\r\n encryptSha256: safeGet(utils, \"encryptSha256\"),\r\n bxmEncrypt: safeGet(utils, \"bxmEncrypt\"),\r\n bxmDecrypt: safeGet(utils, \"bxmDecrypt\"),\r\n simpleEncrypt: safeGet(utils, \"simpleEncrypt\"),\r\n simpleDecrypt: safeGet(utils, \"simpleDecrypt\"),\r\n md5Hash: safeGet(utils, \"md5Hash\"),\r\n sha256Hash: safeGet(utils, \"sha256Hash\"),\r\n base64Encode: safeGet(utils, \"base64Encode\"),\r\n base64Decode: safeGet(utils, \"base64Decode\"),\r\n };\r\n};\r\n\r\nexport const useArrayUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n isEmptyArray: safeGet(utils, \"isEmptyArray\"),\r\n isNotEmptyArray: safeGet(utils, \"isNotEmptyArray\"),\r\n unique: safeGet(utils, \"unique\"),\r\n shuffle: safeGet(utils, \"shuffle\"),\r\n sortBy: safeGet(utils, \"sortBy\"),\r\n max: safeGet(utils, \"max\"),\r\n min: safeGet(utils, \"min\"),\r\n average: safeGet(utils, \"average\"),\r\n sum: safeGet(utils, \"sum\"),\r\n };\r\n};\r\n\r\nexport const useCommonUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n debounce: safeGet(utils, \"debounce\"),\r\n throttle: safeGet(utils, \"throttle\"),\r\n setLocalStorage: safeGet(utils, \"setLocalStorage\"),\r\n getLocalStorage: safeGet(utils, \"getLocalStorage\"),\r\n formatNumber: safeGet(utils, \"formatNumber\"),\r\n formatCurrency: safeGet(utils, \"formatCurrency\"),\r\n copyToClipboard: safeGet(utils, \"copyToClipboard\"),\r\n isMobile: safeGet(utils, \"isMobile\"),\r\n isDesktop: safeGet(utils, \"isDesktop\"),\r\n };\r\n};\r\n\r\nexport const useApiUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n callService: safeGet(utils, \"callService\"),\r\n apiGet: safeGet(utils, \"apiGet\"),\r\n apiPost: safeGet(utils, \"apiPost\"),\r\n apiPut: safeGet(utils, \"apiPut\"),\r\n apiDelete: safeGet(utils, \"apiDelete\"),\r\n apiPatch: safeGet(utils, \"apiPatch\"),\r\n };\r\n};\r\n"],"names":["usePopupContext","usePopup","popups","activePopupId","setActivePopup","closePopup","openPopup","usePopupStore","showPopup","useCallback","popupCode","popParams","config","error","CommonCodeContext","createContext","CommonCodeProvider","children","codeData","isLoading","lastUpdated","getCodeList","getCodeListByOption","getCodeName","getCodeColor","getCodeByOption","getAvailableGroupCodes","getGridLookup","fetchCommonCodes","useCodeStore","contextValue","useCommonCode","context","useContext","useCodeList","useCodeName","useCodeColor","useCodeListByOption","useGridLookup","utils","dateUtils","stringUtils","arrayUtils.isEmptyArray","arrayUtils.isNotEmptyArray","arrayUtils.unique","arrayUtils.shuffle","arrayUtils.sortBy","arrayUtils.max","arrayUtils.min","arrayUtils.average","arrayUtils.sum","arrayUtils.randomFromArray","arrayUtils.flattenArray","objectUtils","commonUtils.debounce","commonUtils.throttle","commonUtils.setLocalStorage","commonUtils.getLocalStorage","commonUtils.formatNumber","commonUtils.formatCurrency","commonUtils.copyToClipboard","commonUtils.isMobile","commonUtils.isDesktop","apiUtils.callService","apiUtils.apiGet","apiUtils.apiPost","apiUtils.apiPut","apiUtils.apiDelete","apiUtils.apiPatch","UtilsContext","UtilsProvider","jsx","useUtils","safeGet","obj","key","fallback","useDateUtils","useStringUtils","useArrayUtils","useCommonUtils","useApiUtils"],"mappings":";;;;;;AAOO,MAAMA,KAAkB,MAItB,IAMIC,KAAW,MAAM;AAC5B,QAAM,EAAE,QAAAC,GAAQ,eAAAC,GAAe,gBAAAC,GAAgB,YAAAC,GAAY,WAAAC,EAAA,IACzDC,EAAA,GAGIC,IAAYC;AAAA,IAChB,OAAOC,GAAmBC,GAAiBC,MAAyB;AAClE,UAAI;AACF,cAAMN,EAAUI,GAAWC,GAAWC,CAAM;A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AAQkC,EAAQlC,GAAO,QAAQ;AAAA,IAC/B,KAAKkC,EAAQlC,GAAO,KAAK;AAAA,IACzB,KAAKkC,EAAQlC,GAAO,KAAK;AAAA,IACzB,SAASkC,EAAQlC,GAAO,SAAS;AAAA,IACjC,KAAKkC,EAAQlC,GAAO,KAAK;AAAA,EAAA;AAE7B,GAEayC,KAAiB,MAAM;AAClC,QAAMzC,IAAQiC,EAAA;AACd,SAAO;AAAA,IACL,UAAUC,EAAQlC,GAAO,UAAU;AAAA,IACnC,UAAUkC,EAAQlC,GAAO,UAAU;AAAA,IACnC,iBAAiBkC,EAAQlC,GAAO,iBAAiB;AAAA,IACjD,iBAAiBkC,EAAQlC,GAAO,iBAAiB;AAAA,IACjD,cAAckC,EAAQlC,GAAO,cAAc;AAAA,IAC3C,gBAAgBkC,EAAQlC,GAAO,gBAAgB;AAAA,IAC/C,iBAAiBkC,EAAQlC,GAAO,iBAAiB;AAAA,IACjD,UAAUkC,EAAQlC,GAAO,UAAU;AAAA,IACnC,WAAWkC,EAAQlC,GAAO,WAAW;AAAA,EAAA;AAEzC,GAEa0C,KAAc,MAAM;AAC/B,QAAM1C,IAAQiC,EAAA;AACd,SAAO;AAAA,IACL,aAAaC,EAAQlC,GAAO,aAAa;AAAA,IACzC,QAAQkC,EAAQlC,GAAO,QAAQ;AAAA,IAC/B,SAASkC,EAAQlC,GAAO,SAAS;AAAA,IACjC,QAAQkC,EAAQlC,GAAO,QAAQ;AAAA,IAC/B,WAAWkC,EAAQlC,GAAO,WAAW;AAAA,IACrC,UAAUkC,EAAQlC,GAAO,UAAU;AAAA,EAAA;AAEvC;"}
|
|
1
|
+
{"version":3,"file":"UtilsContext-CSgz9o2Z.js","sources":["../../src/provider/hooks/usePopup.ts","../../src/provider/contexts/CommonCodeContext.tsx","../../src/provider/contexts/UtilsContext.tsx"],"sourcesContent":["import { useCallback } from 'react';\r\nimport { usePopupStore, type PopupConfig } from '../../stores/popupStore';\r\n\r\n/**\r\n * 팝업 컨텍스트를 감지하는 훅\r\n * 팝업 내부에서 사용하면 true, 일반 페이지에서는 false 반환\r\n */\r\nexport const usePopupContext = (): boolean => {\r\n // 팝업 내부에서만 true를 반환하도록 수정\r\n // 현재는 팝업이 열려있으면 모든 컴포넌트가 팝업으로 인식되는 문제가 있음\r\n // 임시로 false 반환 (수동으로 isPopup prop 사용 권장)\r\n return false;\r\n};\r\n\r\n/**\r\n * 팝업 데이터와 이벤트를 관리하는 훅\r\n */\r\nexport const usePopup = () => {\r\n const { popups, activePopupId, setActivePopup, closePopup, openPopup } =\r\n usePopupStore();\r\n\r\n // 팝업 열기 함수\r\n const showPopup = useCallback(\r\n async (popupCode: string, popParams?: any, config?: PopupConfig) => {\r\n try {\r\n await openPopup(popupCode, popParams, config);\r\n } catch (error) {\r\n console.error('팝업 열기 실패:', error);\r\n throw error;\r\n }\r\n },\r\n [openPopup]\r\n );\r\n\r\n return {\r\n popups,\r\n activePopupId,\r\n setActivePopup,\r\n closePopup,\r\n showPopup,\r\n isPopup: popups.length > 0,\r\n };\r\n};\r\n","import { useCodeStore, type CommonCodeContextType } from '../../stores/codeStore';\r\nimport { createContext, useContext, ReactNode } from 'react';\r\n\r\n// 공통코드 컨텍스트 생성\r\nconst CommonCodeContext = createContext<CommonCodeContextType | undefined>(\r\n undefined\r\n);\r\n\r\n// 공통코드 컨텍스트 프로바이더 컴포넌트\r\ninterface CommonCodeProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const CommonCodeProvider: React.FC<CommonCodeProviderProps> = ({\r\n children,\r\n}) => {\r\n const {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n fetchCommonCodes,\r\n } = useCodeStore();\r\n\r\n const contextValue: CommonCodeContextType = {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n refreshCodes: fetchCommonCodes,\r\n };\r\n\r\n return (\r\n <CommonCodeContext.Provider value={contextValue}>\r\n {children}\r\n </CommonCodeContext.Provider>\r\n );\r\n};\r\n\r\n// 공통코드 컨텍스트 사용 훅\r\nexport const useCommonCode = (): CommonCodeContextType => {\r\n const context = useContext(CommonCodeContext);\r\n if (context === undefined) {\r\n throw new Error('useCommonCode must be used within a CommonCodeProvider');\r\n }\r\n return context;\r\n};\r\n\r\n// 편의 훅들 (Fast Refresh 호환성을 위해 매개변수 없는 함수로 변경)\r\nexport const useCodeList = () => {\r\n const { getCodeList, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeList,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeName = () => {\r\n const { getCodeName, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeName,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeColor = () => {\r\n const { getCodeColor, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeColor,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeListByOption = () => {\r\n const { getCodeListByOption, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeListByOption,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useGridLookup = () => {\r\n const { getGridLookup, isLoading, error } = useCommonCode();\r\n return {\r\n getGridLookup,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n","import React, { createContext, useContext } from \"react\";\r\nimport type { ReactNode } from \"react\";\r\nimport * as dateUtils from \"../../utils/dateUtils\";\r\nimport * as stringUtils from \"../../utils/stringUtils\";\r\nimport * as arrayUtils from \"../../utils/arrayUtils\";\r\nimport * as objectUtils from \"../../utils/objectUtils\";\r\nimport * as commonUtils from \"../../utils/commonUtils\";\r\nimport * as apiUtils from \"../../utils/apiUtils\";\r\n\r\n// 모든 유틸리티 함수들을 하나의 객체로 결합 (충돌하는 함수명은 별칭 사용)\r\nconst utils = {\r\n // 날짜 유틸리티\r\n ...dateUtils,\r\n // 문자열 유틸리티\r\n ...stringUtils,\r\n // 배열 유틸리티 (충돌하는 함수명은 별칭 사용)\r\n isEmptyArray: arrayUtils.isEmptyArray,\r\n isNotEmptyArray: arrayUtils.isNotEmptyArray,\r\n unique: arrayUtils.unique,\r\n shuffle: arrayUtils.shuffle,\r\n sortBy: arrayUtils.sortBy,\r\n max: arrayUtils.max,\r\n min: arrayUtils.min,\r\n average: arrayUtils.average,\r\n sum: arrayUtils.sum,\r\n randomFromArray: arrayUtils.randomFromArray,\r\n flattenArray: arrayUtils.flattenArray,\r\n // 객체 유틸리티\r\n ...objectUtils,\r\n // 일반 유틸리티 (충돌하는 함수명은 별칭 사용)\r\n debounce: commonUtils.debounce,\r\n throttle: commonUtils.throttle,\r\n setLocalStorage: commonUtils.setLocalStorage,\r\n getLocalStorage: commonUtils.getLocalStorage,\r\n formatNumber: commonUtils.formatNumber,\r\n formatCurrency: commonUtils.formatCurrency,\r\n copyToClipboard: commonUtils.copyToClipboard,\r\n isMobile: commonUtils.isMobile,\r\n isDesktop: commonUtils.isDesktop,\r\n // API 유틸리티\r\n callService: apiUtils.callService,\r\n apiGet: apiUtils.apiGet,\r\n apiPost: apiUtils.apiPost,\r\n apiPut: apiUtils.apiPut,\r\n apiDelete: apiUtils.apiDelete,\r\n apiPatch: apiUtils.apiPatch,\r\n};\r\n\r\n// Context 타입 정의\r\ninterface UtilsContextType {\r\n utils: typeof utils;\r\n}\r\n\r\n// Context 생성\r\nconst UtilsContext = createContext<UtilsContextType | undefined>(undefined);\r\n\r\n// Provider 컴포넌트\r\ninterface UtilsProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const UtilsProvider: React.FC<UtilsProviderProps> = ({ children }) => {\r\n return (\r\n <UtilsContext.Provider value={{ utils }}>{children}</UtilsContext.Provider>\r\n );\r\n};\r\n\r\n// Hook for using utils\r\nexport const useUtils = () => {\r\n const context = useContext(UtilsContext);\r\n if (context === undefined) {\r\n throw new Error(\"useUtils must be used within a UtilsProvider\");\r\n }\r\n return context.utils;\r\n};\r\n\r\n// 안전한 함수 가져오기 헬퍼\r\nconst safeGet = (obj: any, key: string, fallback?: any) => {\r\n return obj && typeof obj[key] === \"function\"\r\n ? obj[key]\r\n : fallback || (() => {});\r\n};\r\n\r\n// 개별 유틸리티 훅들 (선택사항)\r\nexport const useDateUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n formatDate: safeGet(utils, \"formatDate\"),\r\n formatDateKorean: safeGet(utils, \"formatDateKorean\"),\r\n getCurrentDate: safeGet(utils, \"getCurrentDate\"),\r\n getCurrentDateString: safeGet(utils, \"getCurrentDateString\"),\r\n getRelativeTime: safeGet(utils, \"getRelativeTime\"),\r\n isToday: safeGet(utils, \"isToday\"),\r\n isThisWeek: safeGet(utils, \"isThisWeek\"),\r\n isThisMonth: safeGet(utils, \"isThisMonth\"),\r\n getDateDiff: safeGet(utils, \"getDateDiff\"),\r\n calculateAge: safeGet(utils, \"calculateAge\"),\r\n };\r\n};\r\n\r\nexport const useStringUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n isEmpty: safeGet(utils, \"isEmpty\"),\r\n isNotEmpty: safeGet(utils, \"isNotEmpty\"),\r\n truncate: safeGet(utils, \"truncate\"),\r\n capitalize: safeGet(utils, \"capitalize\"),\r\n formatPhoneNumber: safeGet(utils, \"formatPhoneNumber\"),\r\n isValidEmail: safeGet(utils, \"isValidEmail\"),\r\n removeHtmlTags: safeGet(utils, \"removeHtmlTags\"),\r\n // UID 생성 함수들\r\n generateUID: safeGet(utils, \"generateUID\"),\r\n generateShortUID: safeGet(utils, \"generateShortUID\"),\r\n generateLongUID: safeGet(utils, \"generateLongUID\"),\r\n generateNumericUID: safeGet(utils, \"generateNumericUID\"),\r\n generateAlphanumericUID: safeGet(utils, \"generateAlphanumericUID\"),\r\n generateGUID: safeGet(utils, \"generateGUID\"),\r\n generateGUIDWithoutHyphens: safeGet(utils, \"generateGUIDWithoutHyphens\"),\r\n generateTimestampUID: safeGet(utils, \"generateTimestampUID\"),\r\n generateCustomUID: safeGet(utils, \"generateCustomUID\"),\r\n // 암호화 관련 함수들\r\n encryptSha256: safeGet(utils, \"encryptSha256\"),\r\n bxmEncrypt: safeGet(utils, \"bxmEncrypt\"),\r\n bxmDecrypt: safeGet(utils, \"bxmDecrypt\"),\r\n simpleEncrypt: safeGet(utils, \"simpleEncrypt\"),\r\n simpleDecrypt: safeGet(utils, \"simpleDecrypt\"),\r\n md5Hash: safeGet(utils, \"md5Hash\"),\r\n sha256Hash: safeGet(utils, \"sha256Hash\"),\r\n base64Encode: safeGet(utils, \"base64Encode\"),\r\n base64Decode: safeGet(utils, \"base64Decode\"),\r\n };\r\n};\r\n\r\nexport const useArrayUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n isEmptyArray: safeGet(utils, \"isEmptyArray\"),\r\n isNotEmptyArray: safeGet(utils, \"isNotEmptyArray\"),\r\n unique: safeGet(utils, \"unique\"),\r\n shuffle: safeGet(utils, \"shuffle\"),\r\n sortBy: safeGet(utils, \"sortBy\"),\r\n max: safeGet(utils, \"max\"),\r\n min: safeGet(utils, \"min\"),\r\n average: safeGet(utils, \"average\"),\r\n sum: safeGet(utils, \"sum\"),\r\n };\r\n};\r\n\r\nexport const useCommonUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n debounce: safeGet(utils, \"debounce\"),\r\n throttle: safeGet(utils, \"throttle\"),\r\n setLocalStorage: safeGet(utils, \"setLocalStorage\"),\r\n getLocalStorage: safeGet(utils, \"getLocalStorage\"),\r\n formatNumber: safeGet(utils, \"formatNumber\"),\r\n formatCurrency: safeGet(utils, \"formatCurrency\"),\r\n copyToClipboard: safeGet(utils, \"copyToClipboard\"),\r\n isMobile: safeGet(utils, \"isMobile\"),\r\n isDesktop: safeGet(utils, \"isDesktop\"),\r\n };\r\n};\r\n\r\nexport const useApiUtils = () => {\r\n const utils = useUtils();\r\n return {\r\n callService: safeGet(utils, \"callService\"),\r\n apiGet: safeGet(utils, \"apiGet\"),\r\n apiPost: safeGet(utils, \"apiPost\"),\r\n apiPut: safeGet(utils, \"apiPut\"),\r\n apiDelete: safeGet(utils, \"apiDelete\"),\r\n apiPatch: safeGet(utils, \"apiPatch\"),\r\n };\r\n};\r\n"],"names":["usePopupContext","usePopup","popups","activePopupId","setActivePopup","closePopup","openPopup","usePopupStore","showPopup","useCallback","popupCode","popParams","config","error","CommonCodeContext","createContext","CommonCodeProvider","children","codeData","isLoading","lastUpdated","getCodeList","getCodeListByOption","getCodeName","getCodeColor","getCodeByOption","getAvailableGroupCodes","getGridLookup","fetchCommonCodes","useCodeStore","contextValue","useCommonCode","context","useContext","useCodeList","useCodeName","useCodeColor","useCodeListByOption","useGridLookup","utils","dateUtils","stringUtils","arrayUtils.isEmptyArray","arrayUtils.isNotEmptyArray","arrayUtils.unique","arrayUtils.shuffle","arrayUtils.sortBy","arrayUtils.max","arrayUtils.min","arrayUtils.average","arrayUtils.sum","arrayUtils.randomFromArray","arrayUtils.flattenArray","objectUtils","commonUtils.debounce","commonUtils.throttle","commonUtils.setLocalStorage","commonUtils.getLocalStorage","commonUtils.formatNumber","commonUtils.formatCurrency","commonUtils.copyToClipboard","commonUtils.isMobile","commonUtils.isDesktop","apiUtils.callService","apiUtils.apiGet","apiUtils.apiPost","apiUtils.apiPut","apiUtils.apiDelete","apiUtils.apiPatch","UtilsContext","UtilsProvider","jsx","useUtils","safeGet","obj","key","fallback","useDateUtils","useStringUtils","useArrayUtils","useCommonUtils","useApiUtils"],"mappings":";;;;;;AAOO,MAAMA,KAAkB,MAItB,IAMIC,KAAW,MAAM;AAC5B,QAAM,EAAE,QAAAC,GAAQ,eAAAC,GAAe,gBAAAC,GAAgB,YAAAC,GAAY,WAAAC,EAAA,IACzDC,EAAA,GAGIC,IAAYC;AAAA,IAChB,OAAOC,GAAmBC,GAAiBC,MAAyB;AAClE,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AC/B,SAASkC,EAAQlC,GAAO,SAAS;AAAA,IACjC,QAAQkC,EAAQlC,GAAO,QAAQ;AAAA,IAC/B,KAAKkC,EAAQlC,GAAO,KAAK;AAAA,IACzB,KAAKkC,EAAQlC,GAAO,KAAK;AAAA,IACzB,SAASkC,EAAQlC,GAAO,SAAS;AAAA,IACjC,KAAKkC,EAAQlC,GAAO,KAAK;AAAA,EAAA;AAE7B,GAEayC,KAAiB,MAAM;AAClC,QAAMzC,IAAQiC,EAAA;AACd,SAAO;AAAA,IACL,UAAUC,EAAQlC,GAAO,UAAU;AAAA,IACnC,UAAUkC,EAAQlC,GAAO,UAAU;AAAA,IACnC,iBAAiBkC,EAAQlC,GAAO,iBAAiB;AAAA,IACjD,iBAAiBkC,EAAQlC,GAAO,iBAAiB;AAAA,IACjD,cAAckC,EAAQlC,GAAO,cAAc;AAAA,IAC3C,gBAAgBkC,EAAQlC,GAAO,gBAAgB;AAAA,IAC/C,iBAAiBkC,EAAQlC,GAAO,iBAAiB;AAAA,IACjD,UAAUkC,EAAQlC,GAAO,UAAU;AAAA,IACnC,WAAWkC,EAAQlC,GAAO,WAAW;AAAA,EAAA;AAEzC,GAEa0C,KAAc,MAAM;AAC/B,QAAM1C,IAAQiC,EAAA;AACd,SAAO;AAAA,IACL,aAAaC,EAAQlC,GAAO,aAAa;AAAA,IACzC,QAAQkC,EAAQlC,GAAO,QAAQ;AAAA,IAC/B,SAASkC,EAAQlC,GAAO,SAAS;AAAA,IACjC,QAAQkC,EAAQlC,GAAO,QAAQ;AAAA,IAC/B,WAAWkC,EAAQlC,GAAO,WAAW;AAAA,IACrC,UAAUkC,EAAQlC,GAAO,UAAU;AAAA,EAAA;AAEvC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const g=require("zustand"),a=require("./serviceConfig-Cc8jfw_Y.cjs"),P=g.create((r,i)=>({popups:[],activePopupId:null,isLoading:!1,error:null,openPopup:async(p,s,u)=>{console.log("팝업 열기 요청:",{popupCode:p,data:s,config:u}),r({isLoading:!0,error:null});try{console.log("팝업 열기 시작:",p);let o=null;const n=await a.callService(a.getServiceCode("SRCH_POPU"),{crprCd:a.getUserInfo()?.crprCd,popuCd:p});console.log("팝업 정보 조회 결과:",n),o=n?.mstr;const t=n?.dtls||[];if(console.info("popupInfo:",o),!o||!o.popuUrl){const e=`팝업 정보를 찾을 수 없습니다: ${p}`;throw console.error(e),new Error(e)}console.log("파싱된 팝업 정보:",o),console.log("버튼 목록:",t);const d=(e=>`/src/pages/views/popup/${e}`)(o.popuUrl);console.log("변환된 팝업 URL:",d);const l={popupId:`popup_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,popupCode:p,popupTitle:o.popuNm||"팝업",popupUrl:d,popupParams:s,width:o.popuWdth||800,height:o.popuHght||600,resizable:!0,draggable:!0,buttonList:t,config:u};console.log("생성된 팝업 아이템:",l);const c=i().popups.find(e=>e.popupCode===p);if(c){console.log("기존 팝업 업데이트:",c.popupId),r({activePopupId:c.popupId,popups:i().popups.map(e=>e.popupId===c.popupId?{...e,config:u}:e),isLoading:!1});return}console.log("새 팝업 추가:",l.popupId),r(e=>({popups:[...e.popups,l],activePopupId:l.popupId,isLoading:!1})),console.log("팝업 열기 완료:",l)}catch(o){console.error("팝업 열기 실패:",o),r({error:o instanceof Error?o.message:"팝업 열기 실패",isLoading:!1})}},closePopup:p=>{const{popups:s,activePopupId:u}=i(),o=s.filter(t=>t.popupId!==p);let n=u;u===p&&(n=o.length>0?o[o.length-1].popupId:null),r({popups:o,activePopupId:n})},closeAllPopups:()=>{r({popups:[],activePopupId:null})},setActivePopup:p=>{r({activePopupId:p})},updatePopupConfig:(p,s)=>{r(u=>({popups:u.popups.map(o=>o.popupId===p?{...o,config:{...o.config,...s}}:o)}))}}));exports.usePopupStore=P;
|
|
2
|
+
//# sourceMappingURL=popupStore-BGubYHZh.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popupStore-BGubYHZh.cjs","sources":["../../src/stores/popupStore.ts"],"sourcesContent":["import { create } from \"zustand\";\r\nimport { callService } from \"../utils/apiUtils\";\r\nimport { getServiceCode } from \"../utils/serviceConfig\";\r\nimport { getUserInfo } from \"@/utils\";\r\n\r\n// 팝업 아이템 타입 정의\r\nexport interface PopupItem {\r\n popupId: string; // 팝업 ID\r\n popupCode: string; // 팝업 코드\r\n popupTitle: string; // 팝업 제목\r\n popupUrl: string; // 팝업 프로그램 URL\r\n popupParams?: any; // 팝업 파라미터\r\n buttonList?: any[]; // 버튼 목록\r\n width?: number; // 팝업 너비\r\n height?: number; // 팝업 높이\r\n resizable?: boolean; // 크기 조절 가능 여부\r\n draggable?: boolean; // 드래그 가능 여부\r\n config?: PopupConfig; // 팝업 설정\r\n close?: () => void; // 팝업 닫기 함수\r\n}\r\n\r\n// 팝업 스토어 타입 정의\r\nexport interface PopupStore {\r\n popups: PopupItem[]; // 열린 팝업 목록\r\n activePopupId: string | null; // 현재 활성 팝업 ID\r\n isLoading: boolean; // 로딩 상태\r\n error: string | null; // 에러 상태\r\n\r\n // 팝업 관련 액션들\r\n openPopup: (\r\n popupCode: string,\r\n data?: any,\r\n config?: PopupConfig\r\n ) => Promise<void>;\r\n closePopup: (popupId: string) => void;\r\n closeAllPopups: () => void;\r\n setActivePopup: (popupId: string) => void;\r\n\r\n updatePopupConfig: (popupId: string, config: Partial<PopupConfig>) => void;\r\n}\r\n\r\nexport interface PopupButton {\r\n key: string; // 버튼 고유 키\r\n text: string; // 버튼 텍스트\r\n type?: \"primary\" | \"default\" | \"dashed\" | \"link\" | \"text\"; // 버튼 타입\r\n danger?: boolean; // 위험 버튼 여부\r\n disabled?: boolean; // 비활성화 여부\r\n icon?: string; // 아이콘 (Ant Design 아이콘명)\r\n onClick?: (popupData?: any) => void | Promise<void>; // 클릭 이벤트\r\n}\r\n\r\n/**\r\n * 팝업 설정 타입 정의\r\n */\r\nexport interface PopupConfig {\r\n width?: number; // 팝업 너비\r\n height?: number; // 팝업 높이\r\n title?: string; // 팝업 제목\r\n buttons?: PopupButton[]; // 팝업 버튼들\r\n resizable?: boolean; // 크기 조절 가능 여부\r\n draggable?: boolean; // 드래그 가능 여부\r\n closable?: boolean; // 닫기 버튼 표시 여부\r\n maskClosable?: boolean; // 마스크 클릭 시 닫기 여부\r\n destroyOnClose?: boolean; // 닫을 때 컴포넌트 파괴 여부\r\n searchBox?: {\r\n reqArea: any;\r\n subArea?: any;\r\n style?: any;\r\n };\r\n /**\r\n * 팝업 콜백\r\n * 팝업 콜백은 팝업이 닫힐 때 호출되는 함수입니다.\r\n */\r\n callback?: (callbackParams?: any) => void;\r\n}\r\n\r\n/**\r\n * 팝업 내부 뷰 컴포넌트 타입\r\n */\r\nexport interface PopupViewProps {\r\n /**\r\n * 팝업정보\r\n */\r\n popup?: PopupItem;\r\n /** 팝업 이벤트 전달 프로퍼티 */\r\n popupEvent?: any;\r\n /** 팝업 닫기 이벤트 전달 프로퍼티 */\r\n onClose?: () => void;\r\n}\r\n\r\n// 팝업 스토어 생성\r\nexport const usePopupStore = create<PopupStore>((set, get) => ({\r\n popups: [],\r\n activePopupId: null,\r\n isLoading: false,\r\n error: null,\r\n\r\n // 팝업 열기\r\n openPopup: async (popupCode: string, data?: any, config?: PopupConfig) => {\r\n console.log(\"팝업 열기 요청:\", { popupCode, data, config });\r\n set({ isLoading: true, error: null });\r\n\r\n try {\r\n console.log(\"팝업 열기 시작:\", popupCode);\r\n\r\n // 개발 환경에서는 모의 데이터 사용\r\n let popupInfo: any = null;\r\n\r\n const response = await callService(getServiceCode(\"SRCH_POPU\"), {\r\n crprCd: getUserInfo()?.crprCd,\r\n popuCd: popupCode,\r\n });\r\n console.log(\"팝업 정보 조회 결과:\", response);\r\n\r\n // 응답 구조 파싱: { mstr: {...}, dtls: [...] }\r\n popupInfo = response?.mstr;\r\n const buttonList = response?.dtls || [];\r\n\r\n console.info(\"popupInfo:\", popupInfo);\r\n\r\n if (!popupInfo || !popupInfo.popuUrl) {\r\n const errorMsg = `팝업 정보를 찾을 수 없습니다: ${popupCode}`;\r\n console.error(errorMsg);\r\n throw new Error(errorMsg);\r\n }\r\n\r\n console.log(\"파싱된 팝업 정보:\", popupInfo);\r\n console.log(\"버튼 목록:\", buttonList);\r\n\r\n // 팝업 URL 경로 변환: 서버 경로 -> 클라이언트 경로\r\n const convertPopupUrl = (serverUrl: string): string => {\r\n // 서버에서 받은 경로: \"cm/CMAuthMstrP01\"\r\n // 클라이언트에서 사용할 경로: \"/src/pages/views/popup/cm/CMAuthMstrP01\"\r\n return `/src/pages/views/popup/${serverUrl}`;\r\n };\r\n\r\n const convertedPopupUrl = convertPopupUrl(popupInfo.popuUrl);\r\n console.log(\"변환된 팝업 URL:\", convertedPopupUrl);\r\n\r\n // 팝업 아이템 생성\r\n const popupItem: PopupItem = {\r\n popupId: `popup_${Date.now()}_${Math.random()\r\n .toString(36)\r\n .substr(2, 9)}`,\r\n popupCode: popupCode,\r\n popupTitle: popupInfo.popuNm || \"팝업\",\r\n popupUrl: convertedPopupUrl,\r\n popupParams: data,\r\n width: popupInfo.popuWdth || 800,\r\n height: popupInfo.popuHght || 600,\r\n resizable: true,\r\n draggable: true,\r\n buttonList: buttonList, // 버튼 목록 추가\r\n config: config,\r\n };\r\n\r\n console.log(\"생성된 팝업 아이템:\", popupItem);\r\n\r\n // 이미 같은 팝업이 열려있는지 확인\r\n const existingPopup = get().popups.find((p) => p.popupCode === popupCode);\r\n if (existingPopup) {\r\n console.log(\"기존 팝업 업데이트:\", existingPopup.popupId);\r\n // 기존 팝업을 활성화하고 데이터 업데이트\r\n set({\r\n activePopupId: existingPopup.popupId,\r\n popups: get().popups.map((p) =>\r\n p.popupId === existingPopup.popupId ? { ...p, config: config } : p\r\n ),\r\n isLoading: false,\r\n });\r\n return;\r\n }\r\n\r\n // 새 팝업 추가\r\n console.log(\"새 팝업 추가:\", popupItem.popupId);\r\n set((state) => ({\r\n popups: [...state.popups, popupItem],\r\n activePopupId: popupItem.popupId,\r\n isLoading: false,\r\n }));\r\n\r\n console.log(\"팝업 열기 완료:\", popupItem);\r\n } catch (error) {\r\n console.error(\"팝업 열기 실패:\", error);\r\n set({\r\n error: error instanceof Error ? error.message : \"팝업 열기 실패\",\r\n isLoading: false,\r\n });\r\n }\r\n },\r\n\r\n // 팝업 닫기\r\n closePopup: (popupId: string) => {\r\n const { popups, activePopupId } = get();\r\n const newPopups = popups.filter((p) => p.popupId !== popupId);\r\n\r\n // 닫힌 팝업이 현재 활성 팝업이었다면 다른 팝업을 활성화\r\n let newActivePopupId = activePopupId;\r\n if (activePopupId === popupId) {\r\n newActivePopupId =\r\n newPopups.length > 0 ? newPopups[newPopups.length - 1].popupId : null;\r\n }\r\n\r\n set({\r\n popups: newPopups,\r\n activePopupId: newActivePopupId,\r\n });\r\n },\r\n\r\n // 모든 팝업 닫기\r\n closeAllPopups: () => {\r\n set({\r\n popups: [],\r\n activePopupId: null,\r\n });\r\n },\r\n\r\n // 활성 팝업 설정\r\n setActivePopup: (popupId: string) => {\r\n set({ activePopupId: popupId });\r\n },\r\n\r\n // 팝업 설정 업데이트\r\n updatePopupConfig: (popupId: string, config: Partial<PopupConfig>) => {\r\n set((state) => ({\r\n popups: state.popups.map((p) =>\r\n p.popupId === popupId ? { ...p, config: { ...p.config, ...config } } : p\r\n ),\r\n }));\r\n },\r\n}));\r\n"],"names":["usePopupStore","create","set","get","popupCode","data","config","popupInfo","response","callService","getServiceCode","getUserInfo","buttonList","errorMsg","convertedPopupUrl","serverUrl","popupItem","existingPopup","p","state","error","popupId","popups","activePopupId","newPopups","newActivePopupId"],"mappings":"kFA2FaA,EAAgBC,EAAAA,OAAmB,CAACC,EAAKC,KAAS,CAC7D,OAAQ,CAAA,EACR,cAAe,KACf,UAAW,GACX,MAAO,KAGP,UAAW,MAAOC,EAAmBC,EAAYC,IAAyB,CACxE,QAAQ,IAAI,YAAa,CAAE,UAAAF,EAAW,KAAAC,EAAM,OAAAC,EAAQ,EACpDJ,EAAI,CAAE,UAAW,GAAM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AAA,CACZ,EACD,MACF,CAGA,QAAQ,IAAI,WAAYF,EAAU,OAAO,EACzCd,EAAKiB,IAAW,CACd,OAAQ,CAAC,GAAGA,EAAM,OAAQH,CAAS,EACnC,cAAeA,EAAU,QACzB,UAAW,EAAA,EACX,EAEF,QAAQ,IAAI,YAAaA,CAAS,CACpC,OAASI,EAAO,CACd,QAAQ,MAAM,YAAaA,CAAK,EAChClB,EAAI,CACF,MAAOkB,aAAiB,MAAQA,EAAM,QAAU,WAChD,UAAW,EAAA,CACZ,CACH,CACF,EAGA,WAAaC,GAAoB,CAC/B,KAAM,CAAE,OAAAC,EAAQ,cAAAC,CAAA,EAAkBpB,EAAA,EAC5BqB,EAAYF,EAAO,OAAQJ,GAAMA,EAAE,UAAYG,CAAO,EAG5D,IAAII,EAAmBF,EACnBA,IAAkBF,IACpBI,EACED,EAAU,OAAS,EAAIA,EAAUA,EAAU,OAAS,CAAC,EAAE,QAAU,MAGrEtB,EAAI,CACF,OAAQsB,EACR,cAAeC,CAAA,CAChB,CACH,EAGA,eAAgB,IAAM,CACpBvB,EAAI,CACF,OAAQ,CAAA,EACR,cAAe,IAAA,CAChB,CACH,EAGA,eAAiBmB,GAAoB,CACnCnB,EAAI,CAAE,cAAemB,EAAS,CAChC,EAGA,kBAAmB,CAACA,EAAiBf,IAAiC,CACpEJ,EAAKiB,IAAW,CACd,OAAQA,EAAM,OAAO,IAAKD,GACxBA,EAAE,UAAYG,EAAU,CAAE,GAAGH,EAAG,OAAQ,CAAE,GAAGA,EAAE,OAAQ,GAAGZ,CAAA,GAAaY,CAAA,CACzE,EACA,CACJ,CACF,EAAE"}
|
|
@@ -12,7 +12,7 @@ const h = d((r, i) => ({
|
|
|
12
12
|
console.log("팝업 열기 시작:", p);
|
|
13
13
|
let o = null;
|
|
14
14
|
const l = await g(P("SRCH_POPU"), {
|
|
15
|
-
crprCd: I()
|
|
15
|
+
crprCd: I()?.crprCd,
|
|
16
16
|
popuCd: p
|
|
17
17
|
});
|
|
18
18
|
console.log("팝업 정보 조회 결과:", l), o = l?.mstr;
|
|
@@ -94,4 +94,4 @@ const h = d((r, i) => ({
|
|
|
94
94
|
export {
|
|
95
95
|
h as u
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=popupStore-
|
|
97
|
+
//# sourceMappingURL=popupStore-BJ_IYrdY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popupStore-BJ_IYrdY.js","sources":["../../src/stores/popupStore.ts"],"sourcesContent":["import { create } from \"zustand\";\r\nimport { callService } from \"../utils/apiUtils\";\r\nimport { getServiceCode } from \"../utils/serviceConfig\";\r\nimport { getUserInfo } from \"@/utils\";\r\n\r\n// 팝업 아이템 타입 정의\r\nexport interface PopupItem {\r\n popupId: string; // 팝업 ID\r\n popupCode: string; // 팝업 코드\r\n popupTitle: string; // 팝업 제목\r\n popupUrl: string; // 팝업 프로그램 URL\r\n popupParams?: any; // 팝업 파라미터\r\n buttonList?: any[]; // 버튼 목록\r\n width?: number; // 팝업 너비\r\n height?: number; // 팝업 높이\r\n resizable?: boolean; // 크기 조절 가능 여부\r\n draggable?: boolean; // 드래그 가능 여부\r\n config?: PopupConfig; // 팝업 설정\r\n close?: () => void; // 팝업 닫기 함수\r\n}\r\n\r\n// 팝업 스토어 타입 정의\r\nexport interface PopupStore {\r\n popups: PopupItem[]; // 열린 팝업 목록\r\n activePopupId: string | null; // 현재 활성 팝업 ID\r\n isLoading: boolean; // 로딩 상태\r\n error: string | null; // 에러 상태\r\n\r\n // 팝업 관련 액션들\r\n openPopup: (\r\n popupCode: string,\r\n data?: any,\r\n config?: PopupConfig\r\n ) => Promise<void>;\r\n closePopup: (popupId: string) => void;\r\n closeAllPopups: () => void;\r\n setActivePopup: (popupId: string) => void;\r\n\r\n updatePopupConfig: (popupId: string, config: Partial<PopupConfig>) => void;\r\n}\r\n\r\nexport interface PopupButton {\r\n key: string; // 버튼 고유 키\r\n text: string; // 버튼 텍스트\r\n type?: \"primary\" | \"default\" | \"dashed\" | \"link\" | \"text\"; // 버튼 타입\r\n danger?: boolean; // 위험 버튼 여부\r\n disabled?: boolean; // 비활성화 여부\r\n icon?: string; // 아이콘 (Ant Design 아이콘명)\r\n onClick?: (popupData?: any) => void | Promise<void>; // 클릭 이벤트\r\n}\r\n\r\n/**\r\n * 팝업 설정 타입 정의\r\n */\r\nexport interface PopupConfig {\r\n width?: number; // 팝업 너비\r\n height?: number; // 팝업 높이\r\n title?: string; // 팝업 제목\r\n buttons?: PopupButton[]; // 팝업 버튼들\r\n resizable?: boolean; // 크기 조절 가능 여부\r\n draggable?: boolean; // 드래그 가능 여부\r\n closable?: boolean; // 닫기 버튼 표시 여부\r\n maskClosable?: boolean; // 마스크 클릭 시 닫기 여부\r\n destroyOnClose?: boolean; // 닫을 때 컴포넌트 파괴 여부\r\n searchBox?: {\r\n reqArea: any;\r\n subArea?: any;\r\n style?: any;\r\n };\r\n /**\r\n * 팝업 콜백\r\n * 팝업 콜백은 팝업이 닫힐 때 호출되는 함수입니다.\r\n */\r\n callback?: (callbackParams?: any) => void;\r\n}\r\n\r\n/**\r\n * 팝업 내부 뷰 컴포넌트 타입\r\n */\r\nexport interface PopupViewProps {\r\n /**\r\n * 팝업정보\r\n */\r\n popup?: PopupItem;\r\n /** 팝업 이벤트 전달 프로퍼티 */\r\n popupEvent?: any;\r\n /** 팝업 닫기 이벤트 전달 프로퍼티 */\r\n onClose?: () => void;\r\n}\r\n\r\n// 팝업 스토어 생성\r\nexport const usePopupStore = create<PopupStore>((set, get) => ({\r\n popups: [],\r\n activePopupId: null,\r\n isLoading: false,\r\n error: null,\r\n\r\n // 팝업 열기\r\n openPopup: async (popupCode: string, data?: any, config?: PopupConfig) => {\r\n console.log(\"팝업 열기 요청:\", { popupCode, data, config });\r\n set({ isLoading: true, error: null });\r\n\r\n try {\r\n console.log(\"팝업 열기 시작:\", popupCode);\r\n\r\n // 개발 환경에서는 모의 데이터 사용\r\n let popupInfo: any = null;\r\n\r\n const response = await callService(getServiceCode(\"SRCH_POPU\"), {\r\n crprCd: getUserInfo()?.crprCd,\r\n popuCd: popupCode,\r\n });\r\n console.log(\"팝업 정보 조회 결과:\", response);\r\n\r\n // 응답 구조 파싱: { mstr: {...}, dtls: [...] }\r\n popupInfo = response?.mstr;\r\n const buttonList = response?.dtls || [];\r\n\r\n console.info(\"popupInfo:\", popupInfo);\r\n\r\n if (!popupInfo || !popupInfo.popuUrl) {\r\n const errorMsg = `팝업 정보를 찾을 수 없습니다: ${popupCode}`;\r\n console.error(errorMsg);\r\n throw new Error(errorMsg);\r\n }\r\n\r\n console.log(\"파싱된 팝업 정보:\", popupInfo);\r\n console.log(\"버튼 목록:\", buttonList);\r\n\r\n // 팝업 URL 경로 변환: 서버 경로 -> 클라이언트 경로\r\n const convertPopupUrl = (serverUrl: string): string => {\r\n // 서버에서 받은 경로: \"cm/CMAuthMstrP01\"\r\n // 클라이언트에서 사용할 경로: \"/src/pages/views/popup/cm/CMAuthMstrP01\"\r\n return `/src/pages/views/popup/${serverUrl}`;\r\n };\r\n\r\n const convertedPopupUrl = convertPopupUrl(popupInfo.popuUrl);\r\n console.log(\"변환된 팝업 URL:\", convertedPopupUrl);\r\n\r\n // 팝업 아이템 생성\r\n const popupItem: PopupItem = {\r\n popupId: `popup_${Date.now()}_${Math.random()\r\n .toString(36)\r\n .substr(2, 9)}`,\r\n popupCode: popupCode,\r\n popupTitle: popupInfo.popuNm || \"팝업\",\r\n popupUrl: convertedPopupUrl,\r\n popupParams: data,\r\n width: popupInfo.popuWdth || 800,\r\n height: popupInfo.popuHght || 600,\r\n resizable: true,\r\n draggable: true,\r\n buttonList: buttonList, // 버튼 목록 추가\r\n config: config,\r\n };\r\n\r\n console.log(\"생성된 팝업 아이템:\", popupItem);\r\n\r\n // 이미 같은 팝업이 열려있는지 확인\r\n const existingPopup = get().popups.find((p) => p.popupCode === popupCode);\r\n if (existingPopup) {\r\n console.log(\"기존 팝업 업데이트:\", existingPopup.popupId);\r\n // 기존 팝업을 활성화하고 데이터 업데이트\r\n set({\r\n activePopupId: existingPopup.popupId,\r\n popups: get().popups.map((p) =>\r\n p.popupId === existingPopup.popupId ? { ...p, config: config } : p\r\n ),\r\n isLoading: false,\r\n });\r\n return;\r\n }\r\n\r\n // 새 팝업 추가\r\n console.log(\"새 팝업 추가:\", popupItem.popupId);\r\n set((state) => ({\r\n popups: [...state.popups, popupItem],\r\n activePopupId: popupItem.popupId,\r\n isLoading: false,\r\n }));\r\n\r\n console.log(\"팝업 열기 완료:\", popupItem);\r\n } catch (error) {\r\n console.error(\"팝업 열기 실패:\", error);\r\n set({\r\n error: error instanceof Error ? error.message : \"팝업 열기 실패\",\r\n isLoading: false,\r\n });\r\n }\r\n },\r\n\r\n // 팝업 닫기\r\n closePopup: (popupId: string) => {\r\n const { popups, activePopupId } = get();\r\n const newPopups = popups.filter((p) => p.popupId !== popupId);\r\n\r\n // 닫힌 팝업이 현재 활성 팝업이었다면 다른 팝업을 활성화\r\n let newActivePopupId = activePopupId;\r\n if (activePopupId === popupId) {\r\n newActivePopupId =\r\n newPopups.length > 0 ? newPopups[newPopups.length - 1].popupId : null;\r\n }\r\n\r\n set({\r\n popups: newPopups,\r\n activePopupId: newActivePopupId,\r\n });\r\n },\r\n\r\n // 모든 팝업 닫기\r\n closeAllPopups: () => {\r\n set({\r\n popups: [],\r\n activePopupId: null,\r\n });\r\n },\r\n\r\n // 활성 팝업 설정\r\n setActivePopup: (popupId: string) => {\r\n set({ activePopupId: popupId });\r\n },\r\n\r\n // 팝업 설정 업데이트\r\n updatePopupConfig: (popupId: string, config: Partial<PopupConfig>) => {\r\n set((state) => ({\r\n popups: state.popups.map((p) =>\r\n p.popupId === popupId ? { ...p, config: { ...p.config, ...config } } : p\r\n ),\r\n }));\r\n },\r\n}));\r\n"],"names":["usePopupStore","create","set","get","popupCode","data","config","popupInfo","response","callService","getServiceCode","getUserInfo","buttonList","errorMsg","convertedPopupUrl","serverUrl","popupItem","existingPopup","p","state","error","popupId","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ACnB,sBAAsB;IACtB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,sCAAsC;IACtC,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,CACd,EAAE,EAAE,GAAG,EACP,KAAK,EAAE,GAAG,EACV,SAAS,EAAE,GAAG,EACd,UAAU,EAAE,GAAG,EACf,MAAM,EAAE,GAAG,KACR,GAAG,CAAC;CACV;AAED,UAAU,kBAAkB;IAC1B,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS;IACT,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS;IACT,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"BwgGrid.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgGrid.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,YAAY,EAKb,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,EAEZ,gBAAgB,EAOjB,MAAM,OAAO,CAAC;AACf,OAAO,QAAQ,EAAE,EACf,SAAS,EACT,SAAS,EACT,wBAAwB,EACxB,UAAU,EACV,gBAAgB,EAEhB,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EAGd,QAAQ,EACR,eAAe,EACf,SAAS,EACV,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAg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GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACxD,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC;IAClC,KAAK,EAAE,MAAM,GAAG,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,KACzE,iBAkCF,CAAC;wBAGwB,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC;AAA3D,wBAA4D;AAC5D,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,UAAU,GACX,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/SSOHandler-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/SSOHandler-De8MPtGZ.cjs"),r=require("../../chunks/BwgSpace-b0hmM1Ht.cjs"),o=require("../../chunks/realFormat-Cha7OTd9.cjs");exports.BwgButtonGroup=e.BwgButtonGroup;exports.BwgCmptArea=e.BwgCmptArea;exports.BwgCol=e.BwgCol;exports.BwgConfigProvider=e.BwgConfigProvider;exports.BwgDrawer=e.BwgDrawer;exports.BwgGrid=e.BwgGrid;exports.BwgInfoArea=e.BwgInfoArea;exports.BwgPopup=e.BwgPopup;exports.BwgRow=e.BwgRow;exports.BwgTable=e.BwgTable;exports.BwgTabs=e.BwgTabs;exports.BwgTitleBox=e.BwgTitleBox;exports.BwgView=e.BwgView;exports.ContentBox=e.ContentBox;exports.ContentLayOut=e.ContentLayOut;exports.GlobalConfigProvider=e.GlobalConfigProvider;exports.QuickServiceToggle=e.QuickServiceToggle;exports.SSOHandler=e.SSOHandler;exports.SearchBox=e.SearchBox;exports.createBwgGridRenderer=e.createBwgGridRenderer;exports.BwgSpace=r.BwgSpace;exports.realFormat=o.realFormat;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as r, a as o, b as s, c as B, d as g, e as w, f as t, g as i, h as n, i as l, j as p, k as d, l as f, C, m as c, G as m, Q as x, n as S, S as u, o as G } from "../../chunks/SSOHandler-
|
|
1
|
+
import { B as r, a as o, b as s, c as B, d as g, e as w, f as t, g as i, h as n, i as l, j as p, k as d, l as f, C, m as c, G as m, Q as x, n as S, S as u, o as G } from "../../chunks/SSOHandler-BFys-2Zz.js";
|
|
2
2
|
import { B as T } from "../../chunks/BwgSpace-CnLM4qcg.js";
|
|
3
3
|
import { r as P } from "../../chunks/realFormat-DRGLFabQ.js";
|
|
4
4
|
export {
|
|
@@ -13,6 +13,6 @@ export interface BwgFormItemProps extends FormItemProps {
|
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
}
|
|
15
15
|
/** 입력 폼 아이템 컴포넌트 */
|
|
16
|
-
declare const BwgFormItem: React.MemoExoticComponent<({ children, label, name, rules, initialValue, style }: BwgFormItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
+
declare const BwgFormItem: React.MemoExoticComponent<({ children, label, name, rules, initialValue, style, ...rest }: BwgFormItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
17
17
|
export default BwgFormItem;
|
|
18
18
|
//# sourceMappingURL=BwgFormItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BwgFormItem.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgFormItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,eAAe;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,gBAAgB;IAChB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,oBAAoB;AACpB,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"BwgFormItem.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgFormItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,eAAe;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,gBAAgB;IAChB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,oBAAoB;AACpB,QAAA,MAAM,WAAW,6FASZ,gBAAgB,6CAwCpB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/BwgLargeUploader-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/BwgLargeUploader-xAjj4TQ1.cjs");exports.BwgButton=e.BwgButton;exports.BwgCheck=e.BwgCheck;exports.BwgCheckList=e.BwgCheckList;exports.BwgDatePicker=e.BwgDatePicker;exports.BwgForm=e.BwgForm;exports.BwgFormItem=e.BwgFormItem;exports.BwgInput=e.BwgInput;exports.BwgLargeUploader=e.BwgLargeUploader;exports.BwgMaskedInput=e.BwgMaskedInput;exports.BwgMaskedPicker=e.BwgMaskedPicker;exports.BwgMultiSelect=e.BwgMultiSelect;exports.BwgNumber=e.BwgNumber;exports.BwgRadio=e.BwgRadio;exports.BwgRangePicker=e.BwgRangePicker;exports.BwgSearch=e.BwgSearch;exports.BwgSelect=e.BwgSelect;exports.BwgTextArea=e.BwgTextArea;exports.BwgUploader=e.BwgUploader;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as g, j as s, k as B, g as w, a as r, B as t, f as c, q as o, d as k, e as i, n as d, m as l, i as m, h as p, c as n, b as u, l as h, p as I } from "../../chunks/BwgLargeUploader-
|
|
1
|
+
import { o as g, j as s, k as B, g as w, a as r, B as t, f as c, q as o, d as k, e as i, n as d, m as l, i as m, h as p, c as n, b as u, l as h, p as I } from "../../chunks/BwgLargeUploader-CZllyq7K.js";
|
|
2
2
|
export {
|
|
3
3
|
g as BwgButton,
|
|
4
4
|
s as BwgCheck,
|
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-CpCGcq5k.cjs"),p=require("./chunks/BwgSpace-b0hmM1Ht.cjs"),S=require("./chunks/realFormat-Cha7OTd9.cjs"),a=require("./chunks/BwgLargeUploader-CaH2F8x6.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--hKZUZcO.cjs"),d=require("./chunks/AuthContext-CXng9fj0.cjs"),s=require("./chunks/UtilsContext-B6P_aohP.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-De8MPtGZ.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;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-BFys-2Zz.js";
|
|
3
3
|
import { B as P } from "./chunks/BwgSpace-CnLM4qcg.js";
|
|
4
4
|
import { r as E } from "./chunks/realFormat-DRGLFabQ.js";
|
|
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-
|
|
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";
|
|
6
6
|
import { P as Z, a as $, b as aa } from "./chunks/PublicLayout-g9WMtoZ0.js";
|
|
7
7
|
import { Y as sa, t as oa, J as ra, a9 as ta, aa as ia, ab as na, ac as ga, _ as la, ad as ua, u as ma, ae as da, K as ca, af as pa, L as Sa, v as fa, a0 as Ca, a1 as ha, a6 as Ba, a7 as wa, f as va, a as Da, b as Ia, c as ya, d as ba, ag as xa, w as ka, g as Ua, e as Pa, h as Aa, i as Ea, j as La, ah as Ta, ai as Na, k as Ra, l as Ma, m as Fa, aj as Oa, n as Ga, o as Ka, M as Wa, x as ja, a5 as qa, N as Ha, ak as Va, al as za, am as Qa, y as _a, an as Ja, ao as Xa, ap as Ya, aq as Za, ar as $a, as as ae, at as ee, au as se, av as oe, p as re, q as te, r as ie, aw as ne, s as ge, z as le, $ as ue, A as me, W as de, B as ce, X as pe, C as Se, D as fe, ax as Ce, ay as he, T as Be, az as we, U as ve, a8 as De, a2 as Ie, a3 as ye, E as be, aA as xe, F as ke, aB as Ue, a4 as Pe, aC as Ae, aD as Ee, aE as Le, G as Te, aF as Ne, aG as Re, O as Me, H as Fe, P as Oe, V as Ge, Z as Ke, aH as We, Q as je, R as qe, S as He, I as Ve } from "./chunks/commonUtils-BV6WFv-z.js";
|
|
8
8
|
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, d as es, e as ss, V as os, f as rs, g as ts, h as is, ae as ns, i as gs, j as ls, af as us, k as ms, l as ds, m as cs, n as ps, o as Ss, p as fs, q as Cs, r as hs, s as Bs, t as ws, u as vs, v as Ds, w as Is, x as ys, al as bs, W as xs, _ as ks, $ as Us, a0 as Ps, a1 as As, a2 as Es, a3 as Ls, X as Ts, a4 as Ns, am as Rs, a5 as Ms, a6 as Fs, a7 as Os, a8 as Gs, a9 as Ks, aa as Ws, ab as js, ac as qs, y as Hs, ad as Vs, z as zs, A as Qs, B as _s, C as Js, D as Xs, ag as Ys, E as Zs, F as $s, G as ao, H as eo, I as so, Y as oo, an as ro, J as to, ah as io, ai as no, aj as go, ak as lo, K as uo, L as mo, M as co, N as po, O as So, P as fo, ao as Co, Z as ho } from "./chunks/serviceConfig-lAlRNVIw.js";
|
|
@@ -10,9 +10,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,
|
|
|
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
12
|
import { a as er, u as sr } from "./chunks/menuStore-CvQrMo35.js";
|
|
13
|
-
import { u as rr } from "./chunks/popupStore-
|
|
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
|
-
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-
|
|
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";
|
|
16
16
|
import { S as xr, u as kr } from "./chunks/ScreenProtectContext-zByHldrr.js";
|
|
17
17
|
import { S as Pr, a as Ar, d as Er, e as Lr, u as Tr, b as Nr, c as Rr } from "./chunks/SearchBoxContext-CzDzVCVm.js";
|
|
18
18
|
export {
|
package/dist/provider/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/UtilsContext-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/UtilsContext-5l7yFRQI.cjs"),s=require("../chunks/AuthContext-CXng9fj0.cjs"),r=require("../chunks/ScreenProtectContext-ofv2QgMp.cjs"),o=require("../chunks/SearchBoxContext-mcPWk862.cjs");exports.CommonCodeProvider=e.CommonCodeProvider;exports.UtilsProvider=e.UtilsProvider;exports.useApiUtils=e.useApiUtils;exports.useArrayUtils=e.useArrayUtils;exports.useCodeColor=e.useCodeColor;exports.useCodeList=e.useCodeList;exports.useCodeListByOption=e.useCodeListByOption;exports.useCodeName=e.useCodeName;exports.useCommonCode=e.useCommonCode;exports.useCommonUtils=e.useCommonUtils;exports.useDateUtils=e.useDateUtils;exports.useGridLookup=e.useGridLookup;exports.usePopup=e.usePopup;exports.usePopupContext=e.usePopupContext;exports.useStringUtils=e.useStringUtils;exports.useUtils=e.useUtils;exports.AuthProvider=s.AuthProvider;exports.useAuth=s.useAuth;exports.ScreenProtectProvider=r.ScreenProtectProvider;exports.useLock=r.useLock;exports.SearchBoxProvider=o.SearchBoxProvider;exports.ServiceCodeProvider=o.ServiceCodeProvider;exports.useAllServiceCodes=o.useAllServiceCodes;exports.useLogServiceCodeConfig=o.useLogServiceCodeConfig;exports.useSearchBox=o.useSearchBox;exports.useServiceCode=o.useServiceCode;exports.useServiceCodeValue=o.useServiceCodeValue;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/provider/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as o, U as a, k as r, i as u, c as i, a as t, d, b as C, u as c, j as l, g as m, e as p, m as v, l as S, h as P, f as n } from "../chunks/UtilsContext-
|
|
1
|
+
import { C as o, U as a, k as r, i as u, c as i, a as t, d, b as C, u as c, j as l, g as m, e as p, m as v, l as S, h as P, f as n } from "../chunks/UtilsContext-CSgz9o2Z.js";
|
|
2
2
|
import { A as x, u as f } from "../chunks/AuthContext-Ei2P-z4d.js";
|
|
3
3
|
import { S as h, u as L } from "../chunks/ScreenProtectContext-zByHldrr.js";
|
|
4
4
|
import { S as k, a as B, d as b, e as y, u as j, b as D, c as G } from "../chunks/SearchBoxContext-CzDzVCVm.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-CBvENehP.cjs"),o=require("../chunks/serviceConfig-Cc8jfw_Y.cjs"),u=require("../chunks/popupStore
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/codeStore-BG8S_mdS.cjs"),t=require("../chunks/menuStore-CBvENehP.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/stores/index.ts"],"sourcesContent":["// 스토어 import\r\nimport { useCodeStore, useOptionStore, useColorStore } from
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/stores/index.ts"],"sourcesContent":["// 스토어 import\r\nimport { useCodeStore, useOptionStore, useColorStore } from \"./codeStore\";\r\nimport { useMenuStore } from \"./menuStore\";\r\nimport { useUserStore } from \"./userStore\";\r\nimport { usePopupStore } from \"./popupStore\";\r\nimport { useFavoriteStore } from \"./favoriteStore\";\r\n\r\n// 스토어 export\r\nexport { useCodeStore, useOptionStore, useColorStore } from \"./codeStore\";\r\nexport { useMenuStore } from \"./menuStore\";\r\nexport { useUserStore } from \"./userStore\";\r\nexport { usePopupStore } from \"./popupStore\";\r\nexport { useFavoriteStore } from \"./favoriteStore\";\r\n\r\n// 스토어 별칭 (간단한 사용을 위한)\r\nexport const useCode = () => useCodeStore.getState();\r\nexport const usePopupState = () => usePopupStore.getState();\r\nexport const useMenu = () => useMenuStore.getState();\r\nexport const useUser = () => useUserStore.getState();\r\nexport const useFavorite = () => useFavoriteStore.getState();\r\n\r\n// 타입들도 함께 export\r\nexport type { MenuItem, TabItem } from \"./menuStore\";\r\nexport type { PopupItem, PopupButton, PopupViewProps } from \"./popupStore\";\r\nexport type { FavoriteMenuItem } from \"./favoriteStore\";\r\nexport type {\r\n CommonCodeState,\r\n CommonCodeData,\r\n CodeGroup,\r\n CodeItem,\r\n} from \"./codeStore\";\r\n"],"names":["useCode","useCodeStore","usePopupState","usePopupStore","useMenu","useMenuStore","useUser","useUserStore","useFavorite","useFavoriteStore"],"mappings":"mRAeaA,EAAU,IAAMC,EAAAA,aAAa,SAAA,EAC7BC,EAAgB,IAAMC,EAAAA,cAAc,SAAA,EACpCC,EAAU,IAAMC,EAAAA,aAAa,SAAA,EAC7BC,EAAU,IAAMC,EAAAA,aAAa,SAAA,EAC7BC,EAAc,IAAMC,EAAAA,iBAAiB,SAAA"}
|
package/dist/stores/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const useMenu: () => import('./menuStore').MenuStore;
|
|
|
9
9
|
export declare const useUser: () => import('./userStore').UserStore;
|
|
10
10
|
export declare const useFavorite: () => import('./favoriteStore').FavoriteStore;
|
|
11
11
|
export type { MenuItem, TabItem } from './menuStore';
|
|
12
|
-
export type { PopupItem } from './popupStore';
|
|
12
|
+
export type { PopupItem, PopupButton, PopupViewProps } from './popupStore';
|
|
13
13
|
export type { FavoriteMenuItem } from './favoriteStore';
|
|
14
14
|
export type { CommonCodeState, CommonCodeData, CodeGroup, CodeItem, } from './codeStore';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,eAAO,MAAM,OAAO,4CAAgC,CAAC;AACrD,eAAO,MAAM,aAAa,yCAAiC,CAAC;AAC5D,eAAO,MAAM,OAAO,uCAAgC,CAAC;AACrD,eAAO,MAAM,OAAO,uCAAgC,CAAC;AACrD,eAAO,MAAM,WAAW,+CAAoC,CAAC;AAG7D,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,eAAO,MAAM,OAAO,4CAAgC,CAAC;AACrD,eAAO,MAAM,aAAa,yCAAiC,CAAC;AAC5D,eAAO,MAAM,OAAO,uCAAgC,CAAC;AACrD,eAAO,MAAM,OAAO,uCAAgC,CAAC;AACrD,eAAO,MAAM,WAAW,+CAAoC,CAAC;AAG7D,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3E,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,YAAY,EACV,eAAe,EACf,cAAc,EACd,SAAS,EACT,QAAQ,GACT,MAAM,aAAa,CAAC"}
|
package/dist/stores/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { u as e } from "../chunks/codeStore-rU4v3QIA.js";
|
|
|
2
2
|
import { b as d, a as v } from "../chunks/codeStore-rU4v3QIA.js";
|
|
3
3
|
import { u as t, a as o } from "../chunks/menuStore-CvQrMo35.js";
|
|
4
4
|
import { ao as s } from "../chunks/serviceConfig-lAlRNVIw.js";
|
|
5
|
-
import { u as r } from "../chunks/popupStore-
|
|
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();
|
|
7
7
|
export {
|
|
8
8
|
m as useCode,
|