@bwg-ui/core 1.1.25 → 1.1.27
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/common-components-CniOkOzu.js +15776 -0
- package/dist/chunks/common-components-DrcQahsO.cjs +183 -0
- package/dist/chunks/{core-Dl0PdDdT.js → core-CEDyqniq.js} +1 -2
- package/dist/chunks/core-lmAmbqvY.cjs +1 -0
- package/dist/chunks/{enc-base64-D7t4BoUA.js → enc-base64-CF2tIkYl.js} +4 -5
- package/dist/chunks/enc-base64-Dxq399hI.cjs +1 -0
- package/dist/chunks/{sha256-C2-s1oZe.js → sha256-DYurgXCU.js} +12 -13
- package/dist/chunks/sha256-H5WWQnKT.cjs +1 -0
- package/dist/components/common/BwgPagination.d.ts +1 -1
- package/dist/components/common/BwgPagination.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -2
- package/dist/components/common/index.d.ts +3 -1
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +16 -17
- package/dist/components/core/BwgFormItem.d.ts +2 -2
- package/dist/components/core/BwgFormItem.d.ts.map +1 -1
- package/dist/components/core/BwgInput.d.ts.map +1 -1
- package/dist/components/core/index.cjs +1 -2
- package/dist/components/core/index.js +1218 -23
- package/dist/components/guide/index.cjs +1 -2
- package/dist/components/guide/index.js +3 -4
- package/dist/components/layout/index.cjs +35 -2
- package/dist/components/layout/index.js +350 -10
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +211 -222
- package/dist/provider/index.cjs +1 -2
- package/dist/provider/index.js +384 -25
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +1394 -24
- package/dist/utils/index.cjs +1 -2
- package/dist/utils/index.js +1369 -200
- package/package.json +2 -3
- package/dist/chunks/AuthContext-CXng9fj0.cjs +0 -2
- package/dist/chunks/AuthContext-CXng9fj0.cjs.map +0 -1
- package/dist/chunks/AuthContext-DrEpBrpB.js +0 -57
- package/dist/chunks/AuthContext-DrEpBrpB.js.map +0 -1
- package/dist/chunks/BwgSpace-CnLM4qcg.js +0 -27
- package/dist/chunks/BwgSpace-CnLM4qcg.js.map +0 -1
- package/dist/chunks/BwgSpace-b0hmM1Ht.cjs +0 -2
- package/dist/chunks/BwgSpace-b0hmM1Ht.cjs.map +0 -1
- package/dist/chunks/BwgSwitch-DOlc57wi.cjs +0 -2
- package/dist/chunks/BwgSwitch-DOlc57wi.cjs.map +0 -1
- package/dist/chunks/BwgSwitch-D_scwi9_.js +0 -269
- package/dist/chunks/BwgSwitch-D_scwi9_.js.map +0 -1
- package/dist/chunks/BwgUploader-CkXwkcUL.cjs +0 -3
- package/dist/chunks/BwgUploader-CkXwkcUL.cjs.map +0 -1
- package/dist/chunks/BwgUploader-DBFF9BPF.js +0 -3250
- package/dist/chunks/BwgUploader-DBFF9BPF.js.map +0 -1
- package/dist/chunks/LoadingOverlay-DAZJF5wg.js +0 -19
- package/dist/chunks/LoadingOverlay-DAZJF5wg.js.map +0 -1
- package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs +0 -2
- package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs.map +0 -1
- package/dist/chunks/SSOHandler-BY6LXMLc.cjs +0 -237
- package/dist/chunks/SSOHandler-BY6LXMLc.cjs.map +0 -1
- package/dist/chunks/SSOHandler-CxvxEBaH.js +0 -28654
- package/dist/chunks/SSOHandler-CxvxEBaH.js.map +0 -1
- package/dist/chunks/ScreenProtectContext-3my4PHFa.js +0 -154
- package/dist/chunks/ScreenProtectContext-3my4PHFa.js.map +0 -1
- package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs +0 -2
- package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs.map +0 -1
- package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs +0 -2
- package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs.map +0 -1
- package/dist/chunks/SearchBoxContext-gWM7FHIw.js +0 -86
- package/dist/chunks/SearchBoxContext-gWM7FHIw.js.map +0 -1
- package/dist/chunks/ViewContainer-Bhq22_B3.cjs +0 -36
- package/dist/chunks/ViewContainer-Bhq22_B3.cjs.map +0 -1
- package/dist/chunks/ViewContainer-D9SKBnrn.js +0 -338
- package/dist/chunks/ViewContainer-D9SKBnrn.js.map +0 -1
- package/dist/chunks/apiUtils-BZ6s0_NI.cjs +0 -3
- package/dist/chunks/apiUtils-BZ6s0_NI.cjs.map +0 -1
- package/dist/chunks/apiUtils-DSwE62oG.js +0 -1450
- package/dist/chunks/apiUtils-DSwE62oG.js.map +0 -1
- package/dist/chunks/codeStore-il4-kZPe.cjs +0 -2
- package/dist/chunks/codeStore-il4-kZPe.cjs.map +0 -1
- package/dist/chunks/codeStore-vPj4Y0TK.js +0 -450
- package/dist/chunks/codeStore-vPj4Y0TK.js.map +0 -1
- package/dist/chunks/core-BHejg5iS.cjs +0 -2
- package/dist/chunks/core-BHejg5iS.cjs.map +0 -1
- package/dist/chunks/core-Dl0PdDdT.js.map +0 -1
- package/dist/chunks/enc-base64-BkBtNBQV.cjs +0 -2
- package/dist/chunks/enc-base64-BkBtNBQV.cjs.map +0 -1
- package/dist/chunks/enc-base64-D7t4BoUA.js.map +0 -1
- package/dist/chunks/favoriteStore-Bh1FuZm9.js +0 -439
- package/dist/chunks/favoriteStore-Bh1FuZm9.js.map +0 -1
- package/dist/chunks/favoriteStore-CcKg_nEH.cjs +0 -2
- package/dist/chunks/favoriteStore-CcKg_nEH.cjs.map +0 -1
- package/dist/chunks/jsx-runtime-CeSfJrVB.cjs +0 -31
- package/dist/chunks/jsx-runtime-CeSfJrVB.cjs.map +0 -1
- package/dist/chunks/jsx-runtime-Dpn_P65e.js +0 -634
- package/dist/chunks/jsx-runtime-Dpn_P65e.js.map +0 -1
- package/dist/chunks/popupStore-BRRmB4zH.js +0 -92
- package/dist/chunks/popupStore-BRRmB4zH.js.map +0 -1
- package/dist/chunks/popupStore-DUApUBF2.cjs +0 -2
- package/dist/chunks/popupStore-DUApUBF2.cjs.map +0 -1
- package/dist/chunks/realFormat-Cha7OTd9.cjs +0 -2
- package/dist/chunks/realFormat-Cha7OTd9.cjs.map +0 -1
- package/dist/chunks/realFormat-DRGLFabQ.js +0 -305
- package/dist/chunks/realFormat-DRGLFabQ.js.map +0 -1
- package/dist/chunks/sha256-C2-s1oZe.js.map +0 -1
- package/dist/chunks/sha256-DiIRoCQ8.cjs +0 -2
- package/dist/chunks/sha256-DiIRoCQ8.cjs.map +0 -1
- package/dist/chunks/usePopup-D2JEuDrO.cjs +0 -2
- package/dist/chunks/usePopup-D2JEuDrO.cjs.map +0 -1
- package/dist/chunks/usePopup-DarKTbRC.js +0 -109
- package/dist/chunks/usePopup-DarKTbRC.js.map +0 -1
- package/dist/components/common/index.cjs.map +0 -1
- package/dist/components/common/index.js.map +0 -1
- package/dist/components/core/index.cjs.map +0 -1
- package/dist/components/core/index.js.map +0 -1
- package/dist/components/guide/index.cjs.map +0 -1
- package/dist/components/guide/index.js.map +0 -1
- package/dist/components/layout/index.cjs.map +0 -1
- package/dist/components/layout/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/provider/index.cjs.map +0 -1
- package/dist/provider/index.js.map +0 -1
- package/dist/stores/index.cjs.map +0 -1
- package/dist/stores/index.js.map +0 -1
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
package/dist/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/utils/fileUtils.ts","../../src/utils/messageUtils.ts","../../src/utils/index.ts"],"sourcesContent":["import { callService } from \"./apiUtils\";\r\nimport { getUserInfo } from \"./userUtils\";\r\n\r\n/**\r\n * 파일 다운로드\r\n * @param data \r\n * @param filename \r\n * @param type \r\n * @returns \r\n */\r\nexport const downloadFile = (data: string, filename: string, type: string = 'text/plain'): void => {\r\n const blob = new Blob([data], { type })\r\n const url = URL.createObjectURL(blob)\r\n const link = document.createElement('a')\r\n link.href = url\r\n link.download = filename\r\n document.body.appendChild(link)\r\n link.click()\r\n document.body.removeChild(link)\r\n URL.revokeObjectURL(url)\r\n}\r\n\r\n/**\r\n * 파일 키를 사용하여 파일 상세 정보를 조회하고, 해당 정보를 바탕으로 다운로드를 시작하는 유틸리티 함수입니다.\r\n *\r\n * @param fileKey - 조회할 파일의 키 (fileGrpKey)\r\n * @returns API 호출 결과 또는 오류\r\n */\r\nexport async function downloadByFileKey(fileKey: string): Promise<any> {\r\n try {\r\n // 1. fileKey를 매개변수로 파일 상세 정보 조회 서비스 호출\r\n const fileDetailsResponse = await callService(\"SCMFILE00101\", {\r\n crprCd: getUserInfo()?.crprCd,\r\n sysCd: __SYS_CD__,\r\n fileKey,\r\n }).then((res) => {\r\n let response;\r\n if (res.sub) {\r\n response = res.sub[0];\r\n }\r\n console.log(res);\r\n console.log(response);\r\n if (!response.lgclFileNm) {\r\n console.error(\"논리파일명이 없습니다.\");\r\n throw new Error(\"논리 파일명 누락\");\r\n }\r\n if (!response.filePath) {\r\n console.error(\"파일 경로가 없습니다.\");\r\n throw new Error(\"파일 경로 누락\");\r\n }\r\n\r\n // download api 호출\r\n const downloadUrl = `api/download?filePath=${encodeURIComponent(\r\n response.filePath\r\n )}&logicalName=${encodeURIComponent(response.lgclFileNm)}`;\r\n window.open(downloadUrl, \"_blank\"); // 새 탭에서 열어 다운로드 트리거\r\n\r\n return { success: true, message: \"파일 다운로드 요청 성공\" }; // 다운로드 요청 성공을 나타내는 객체 반환\r\n });\r\n\r\n return fileDetailsResponse; // .then() 블록의 결과 반환\r\n } catch (error) {\r\n console.error(\"downloadByFileKey 함수 실행 중 오류 발생:\", error);\r\n throw error;\r\n }\r\n}\r\n","import { message } from 'antd';\r\n\r\n/**\r\n * 성공 메시지 표시\r\n * @param content 메시지 내용\r\n * @param duration 표시 시간 (초)\r\n */\r\nexport const showSuccess = (content: string, duration: number = 3) => {\r\n message.success({\r\n content,\r\n duration,\r\n });\r\n};\r\n\r\n/**\r\n * 오류 메시지 표시\r\n * @param content 메시지 내용\r\n * @param duration 표시 시간 (초)\r\n */\r\nexport const showError = (content: string, duration: number = 5) => {\r\n message.error({\r\n content,\r\n duration,\r\n });\r\n};\r\n\r\n/**\r\n * 경고 메시지 표시\r\n * @param content 메시지 내용\r\n * @param duration 표시 시간 (초)\r\n */\r\nexport const showWarning = (content: string, duration: number = 4) => {\r\n message.warning({\r\n content,\r\n duration,\r\n });\r\n};\r\n\r\n/**\r\n * 정보 메시지 표시\r\n * @param content 메시지 내용\r\n * @param duration 표시 시간 (초)\r\n */\r\nexport const showInfo = (content: string, duration: number = 3) => {\r\n message.info({\r\n content,\r\n duration,\r\n });\r\n};\r\n\r\n/**\r\n * 로딩 메시지 표시\r\n * @param content 메시지 내용\r\n * @returns 메시지 키 (닫을 때 사용)\r\n */\r\nexport const showLoading = (content: string = '처리중...') => {\r\n return message.loading({\r\n content,\r\n duration: 0, // 수동으로 닫을 때까지 유지\r\n });\r\n};\r\n\r\n/**\r\n * 메시지 닫기\r\n * @param key 메시지 키\r\n */\r\nexport const closeMessage = (key: string) => {\r\n message.destroy(key);\r\n};\r\n\r\n/**\r\n * 모든 메시지 닫기\r\n */\r\nexport const closeAllMessages = () => {\r\n message.destroy();\r\n};\r\n\r\n/**\r\n * API 오류 메시지 표시 (공통)\r\n * @param error 오류 객체\r\n * @param defaultMessage 기본 오류 메시지\r\n */\r\nexport const showApiError = (\r\n error: any,\r\n defaultMessage: string = '처리 중 오류가 발생했습니다.'\r\n) => {\r\n const errorMessage =\r\n error?.response?.data?.message || error?.message || defaultMessage;\r\n showError(errorMessage);\r\n};\r\n\r\n/**\r\n * 저장 성공 메시지 표시\r\n * @param type 저장 타입 ('등록', '수정', '삭제' 등)\r\n */\r\nexport const showSaveSuccess = (type: string = '저장') => {\r\n showSuccess(`${type}이 완료되었습니다.`);\r\n};\r\n\r\n/**\r\n * 저장 실패 메시지 표시\r\n * @param type 저장 타입 ('등록', '수정', '삭제' 등)\r\n */\r\nexport const showSaveError = (type: string = '저장') => {\r\n showError(`${type} 중 오류가 발생했습니다.`);\r\n};\r\n\r\n/**\r\n * 중복 체크 실패 메시지 표시\r\n * @param fieldName 필드명\r\n */\r\nexport const showDuplicateError = (fieldName: string) => {\r\n showError(`이미 사용중인 ${fieldName}입니다.`);\r\n};\r\n\r\n/**\r\n * 필수 입력 항목 메시지 표시\r\n * @param fieldName 필드명\r\n */\r\nexport const showRequiredError = (fieldName: string) => {\r\n showError(`${fieldName}을(를) 입력해주세요.`);\r\n};\r\n","// 기존 방식: 개별 함수들을 직접 export\r\nexport * from './apiUtils';\r\nexport * from './commonUtils';\r\nexport * from './envUtils';\r\nexport * from './fileUtils';\r\nexport * from './messageUtils';\r\nexport * from './notificationUtils';\r\nexport { default as realFormat } from './realFormat';\r\nexport * from './serviceConfig';\r\nexport * from './userUtils';\r\n\r\n// 네임스페이스 객체들도 함께 제공\r\nimport * as apiUtilsModule from './apiUtils';\r\nimport * as commonUtilsModule from './commonUtils';\r\nimport * as envUtilsModule from './envUtils';\r\nimport * as fileUtilsModule from './fileUtils';\r\nimport * as messageUtilsModule from './messageUtils';\r\nimport * as notificationUtilsModule from './notificationUtils';\r\nimport { default as realFormat } from './realFormat';\r\nimport * as serviceConfigModule from './serviceConfig';\r\nimport * as userUtilsModule from './userUtils';\r\n\r\n// 개별 네임스페이스 객체들\r\nexport const apiUtils = apiUtilsModule;\r\nexport const commonUtils = commonUtilsModule;\r\nexport const envUtils = envUtilsModule;\r\nexport const fileUtils = fileUtilsModule;\r\nexport const messageUtils = messageUtilsModule;\r\nexport const notificationUtils = notificationUtilsModule;\r\nexport const serviceUtils = serviceConfigModule;\r\nexport const userUtils = userUtilsModule;\r\n\r\n// 통합 bwgUtils 객체 (모든 유틸리티를 하나로)\r\nexport const bwgUtils = {\r\n ...apiUtilsModule,\r\n ...commonUtilsModule,\r\n ...envUtilsModule,\r\n ...fileUtilsModule,\r\n ...messageUtilsModule,\r\n ...notificationUtilsModule,\r\n ...serviceConfigModule,\r\n ...userUtilsModule,\r\n realFormat,\r\n};\r\n\r\n// 기본 export로 bwgUtils 제공\r\nexport default bwgUtils;"],"names":["downloadFile","data","filename","type","blob","url","link","downloadByFileKey","fileKey","callService","getUserInfo","res","response","downloadUrl","error","showSuccess","content","duration","message","showError","showWarning","showInfo","showLoading","closeMessage","key","closeAllMessages","showApiError","defaultMessage","errorMessage","showSaveSuccess","showSaveError","showDuplicateError","fieldName","showRequiredError","apiUtils","apiUtilsModule","commonUtils","commonUtilsModule","envUtils","envUtilsModule","fileUtils","fileUtilsModule","messageUtils","messageUtilsModule","notificationUtils","notificationUtilsModule","serviceUtils","serviceConfigModule","userUtils","userUtilsModule","bwgUtils","realFormat"],"mappings":";;;;AAUO,MAAMA,IAAe,CAACC,GAAcC,GAAkBC,IAAe,iBAAuB;AACjG,QAAMC,IAAO,IAAI,KAAK,CAACH,CAAI,GAAG,EAAE,MAAAE,GAAM,GAChCE,IAAM,IAAI,gBAAgBD,CAAI,GAC9BE,IAAO,SAAS,cAAc,GAAG;AACvC,EAAAA,EAAK,OAAOD,GACZC,EAAK,WAAWJ,GAChB,SAAS,KAAK,YAAYI,CAAI,GAC9BA,EAAK,MAAA,GACL,SAAS,KAAK,YAAYA,CAAI,GAC9B,IAAI,gBAAgBD,CAAG;AACzB;AAQA,eAAsBE,EAAkBC,GAA+B;AACrE,MAAI;AA+BF,WA7B4B,MAAMC,EAAY,gBAAgB;AAAA,MAC5D,QAAQC,KAAe;AAAA,MACvB,OAAO;AAAA,MACP,SAAAF;AAAA,IAAA,CACD,EAAE,KAAK,CAACG,MAAQ;AACf,UAAIC;AAMJ,UALID,EAAI,QACNC,IAAWD,EAAI,IAAI,CAAC,IAEtB,QAAQ,IAAIA,CAAG,GACf,QAAQ,IAAIC,CAAQ,GAChB,CAACA,EAAS;AACZ,sBAAQ,MAAM,cAAc,GACtB,IAAI,MAAM,WAAW;AAE7B,UAAI,CAACA,EAAS;AACZ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