@bwg-ui/core 1.2.9 → 1.2.11
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/{MenuReport-CuAfCZbc.cjs → MenuReport-CXsmjSvg.cjs} +1 -1
- package/dist/chunks/{MenuReport-iuRC_snf.js → MenuReport-Dgq2wH6w.js} +1 -1
- package/dist/chunks/{common-components-CFIJNFN0.js → common-components-Bp95qOup.js} +6 -6
- package/dist/chunks/{common-components-CioS_8Bi.cjs → common-components-CoRIM-Z-.cjs} +2 -2
- package/dist/chunks/{layout-components-DMR4tl9_.cjs → layout-components-hCEUMfz3.cjs} +2 -2
- package/dist/chunks/{layout-components-C-9ATcL9.js → layout-components-yyItu5pi.js} +2 -2
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +5 -5
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +107 -107
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/pages/auth/CMAuthMstrM01.d.ts +7 -0
- package/dist/components/pages/auth/CMAuthMstrM01.d.ts.map +1 -0
- package/dist/components/pages/auth/CMRoleMstrM01.d.ts +3 -0
- package/dist/components/pages/auth/CMRoleMstrM01.d.ts.map +1 -0
- package/dist/components/pages/guide/BwgComponentGuideM01.d.ts +3 -0
- package/dist/components/pages/guide/BwgComponentGuideM01.d.ts.map +1 -0
- package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts +3 -0
- package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts.map +1 -0
- package/dist/components/pages/guide/BwgReactGuideM01.d.ts +3 -0
- package/dist/components/pages/guide/BwgReactGuideM01.d.ts.map +1 -0
- package/dist/components/pages/index.d.ts +20 -0
- package/dist/components/pages/index.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMFileMstrM01.d.ts +3 -0
- package/dist/components/pages/rsrc/CMFileMstrM01.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMMenuMstrM01.d.ts +3 -0
- package/dist/components/pages/rsrc/CMMenuMstrM01.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMMenuPrgrSelectModal.d.ts +16 -0
- package/dist/components/pages/rsrc/CMMenuPrgrSelectModal.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMMenuPrntSelectModal.d.ts +16 -0
- package/dist/components/pages/rsrc/CMMenuPrntSelectModal.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts +3 -0
- package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts.map +1 -0
- package/dist/components/pages/rsrc/CMPrgrMstrM01.d.ts +3 -0
- package/dist/components/pages/rsrc/CMPrgrMstrM01.d.ts.map +1 -0
- package/dist/components/pages/syst/CMSystCfgM01.d.ts +3 -0
- package/dist/components/pages/syst/CMSystCfgM01.d.ts.map +1 -0
- package/dist/components/pages/syst/CMSystCodeM01.d.ts +3 -0
- package/dist/components/pages/syst/CMSystCodeM01.d.ts.map +1 -0
- package/dist/components/pages/user/CMUserMstrM01.d.ts +3 -0
- package/dist/components/pages/user/CMUserMstrM01.d.ts.map +1 -0
- package/dist/components/popup/SearchAddressModalM01.d.ts +7 -0
- package/dist/components/popup/SearchAddressModalM01.d.ts.map +1 -0
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +1 -1
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +17 -17
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/types/bwg-global.d.ts +2 -1
- package/dist/utils/commonUtils.d.ts +0 -6
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1386 -748
- package/package.json +1 -1
- package/dist/chunks/core-CA7iRgyb.cjs +0 -1
- package/dist/chunks/core-D18HD1It.js +0 -513
- package/dist/chunks/enc-base64-CdWu8KMI.js +0 -101
- package/dist/chunks/enc-base64-DSIiAsI5.cjs +0 -1
- package/dist/chunks/sha256-D5iKSlK6.cjs +0 -1
- package/dist/chunks/sha256-DQcqzuys.js +0 -78
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as q } from "react/jsx-runtime";
|
|
2
|
-
import { Button as J, Form as E, Checkbox as ie, ConfigProvider as pe, DatePicker as le, message as
|
|
2
|
+
import { Button as J, Form as E, Checkbox as ie, ConfigProvider as pe, DatePicker as le, message as L, Card as Fe, List as P, Input as te, Spin as Le, Upload as G, Typography as ye, Flex as de, Progress as Se, notification as we, Tooltip as Ie, Select as se, Space as ae, InputNumber as _e, Radio as Ne, Switch as Me } from "antd";
|
|
3
3
|
import { memo as De, useState as T, useEffect as j, useMemo as ee, forwardRef as ke, useRef as X, cloneElement as ve } from "react";
|
|
4
4
|
import z from "dayjs";
|
|
5
5
|
import { PaperClipOutlined as xe, DownloadOutlined as Ee, DeleteOutlined as Be, InboxOutlined as Oe, UploadOutlined as Ye, CloudUploadOutlined as Ve, CheckCircleOutlined as Ue, CloseCircleOutlined as Ae, FileTextOutlined as ze, SearchOutlined as Te } from "@ant-design/icons";
|
|
@@ -31,7 +31,7 @@ const yt = (t) => /* @__PURE__ */ r(J, { ...t, className: "bwg-btn" }), D = De(
|
|
|
31
31
|
{
|
|
32
32
|
className: "bwg-form-item",
|
|
33
33
|
label: e ? s() : void 0,
|
|
34
|
-
labelAlign: "left",
|
|
34
|
+
labelAlign: d.labelAlign || "left",
|
|
35
35
|
name: l,
|
|
36
36
|
rules: i,
|
|
37
37
|
colon: !1,
|
|
@@ -70,10 +70,10 @@ const yt = (t) => /* @__PURE__ */ r(J, { ...t, className: "bwg-btn" }), D = De(
|
|
|
70
70
|
n(i);
|
|
71
71
|
}, [i]);
|
|
72
72
|
const s = (Y) => {
|
|
73
|
-
const
|
|
73
|
+
const b = [];
|
|
74
74
|
return (Y || []).map((k, B) => {
|
|
75
|
-
|
|
76
|
-
}),
|
|
75
|
+
b.push(k.value);
|
|
76
|
+
}), b;
|
|
77
77
|
}, C = (Y) => {
|
|
78
78
|
n(Y.target.checked ? o : []), l.setFieldValue(t?.name, Y.target.checked ? o : []);
|
|
79
79
|
}, F = (Y) => {
|
|
@@ -115,7 +115,7 @@ const yt = (t) => /* @__PURE__ */ r(J, { ...t, className: "bwg-btn" }), D = De(
|
|
|
115
115
|
displayFormat: "YYYY-MM-DD HH:mm",
|
|
116
116
|
outputFormat: "YYYYMMDDHHmm"
|
|
117
117
|
}
|
|
118
|
-
},
|
|
118
|
+
}, bt = ({
|
|
119
119
|
itemProps: t,
|
|
120
120
|
inputProps: e,
|
|
121
121
|
type: l = "date",
|
|
@@ -155,7 +155,7 @@ const yt = (t) => /* @__PURE__ */ r(J, { ...t, className: "bwg-btn" }), D = De(
|
|
|
155
155
|
)
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
|
-
},
|
|
158
|
+
}, Lt = ({
|
|
159
159
|
fileGrpKey: t,
|
|
160
160
|
onFetchFilesTrxCd: e = "SCMFILE00101",
|
|
161
161
|
readOnly: l = !1,
|
|
@@ -177,7 +177,7 @@ const yt = (t) => /* @__PURE__ */ r(J, { ...t, className: "bwg-btn" }), D = De(
|
|
|
177
177
|
o(u);
|
|
178
178
|
}
|
|
179
179
|
}).catch((a) => {
|
|
180
|
-
console.error("파일 목록 조회 서비스 호출에 실패했습니다.", a),
|
|
180
|
+
console.error("파일 목록 조회 서비스 호출에 실패했습니다.", a), L.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
|
|
181
181
|
}) : W(e, {
|
|
182
182
|
crprCd: K()?.crprCd,
|
|
183
183
|
sysCd: i,
|
|
@@ -192,7 +192,7 @@ const yt = (t) => /* @__PURE__ */ r(J, { ...t, className: "bwg-btn" }), D = De(
|
|
|
192
192
|
o(u);
|
|
193
193
|
}
|
|
194
194
|
}).catch((a) => {
|
|
195
|
-
console.error("파일 목록 조회 서비스 호출에 실패했습니다.", a),
|
|
195
|
+
console.error("파일 목록 조회 서비스 호출에 실패했습니다.", a), L.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
|
|
196
196
|
}) : o([]);
|
|
197
197
|
}, [t, e]);
|
|
198
198
|
const d = async (a) => {
|
|
@@ -219,7 +219,7 @@ const yt = (t) => /* @__PURE__ */ r(J, { ...t, className: "bwg-btn" }), D = De(
|
|
|
219
219
|
const C = await s.blob(), F = window.URL.createObjectURL(C), Y = document.createElement("a");
|
|
220
220
|
Y.href = F, Y.setAttribute("download", a.name), document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), window.URL.revokeObjectURL(F);
|
|
221
221
|
} catch (u) {
|
|
222
|
-
console.error(u),
|
|
222
|
+
console.error(u), L.error(
|
|
223
223
|
u.message || "파일을 다운로드하는 중 오류가 발생했습니다."
|
|
224
224
|
);
|
|
225
225
|
}
|
|
@@ -304,14 +304,14 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
304
304
|
maxFileSize: d = 2048
|
|
305
305
|
// 기본값 2GB
|
|
306
306
|
}) => {
|
|
307
|
-
const [a, u] = T([]), [s, C] = T(!1), [F, Y] = T(!1), [
|
|
307
|
+
const [a, u] = T([]), [s, C] = T(!1), [F, Y] = T(!1), [b, k] = T(0), B = (m) => {
|
|
308
308
|
if (o && o.length > 0) {
|
|
309
309
|
const I = ((O) => {
|
|
310
310
|
const H = O.lastIndexOf(".");
|
|
311
311
|
return H === -1 ? "" : O.substring(H).toLowerCase();
|
|
312
312
|
})(m.name);
|
|
313
313
|
if (!o.includes(I))
|
|
314
|
-
return
|
|
314
|
+
return L.error(
|
|
315
315
|
`${m.name} 파일은 허용되지 않는 확장자입니다. (${o.join(
|
|
316
316
|
", "
|
|
317
317
|
)}만 가능)`
|
|
@@ -319,11 +319,11 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
319
319
|
}
|
|
320
320
|
return !0;
|
|
321
321
|
}, v = async () => {
|
|
322
|
-
const m = a.filter((_) => _.status !== "done"),
|
|
322
|
+
const m = a.filter((_) => _.status !== "done"), h = m.reduce(
|
|
323
323
|
(_, R) => _ + (R.size || 0),
|
|
324
324
|
0
|
|
325
325
|
), I = 2 * 1024 * 1024 * 1024;
|
|
326
|
-
if (
|
|
326
|
+
if (h > I) {
|
|
327
327
|
we.error({
|
|
328
328
|
message: "업로드 용량 초과",
|
|
329
329
|
description: "한 번에 업로드할 수 있는 총 파일 용량은 2GB를 초과할 수 없습니다."
|
|
@@ -331,7 +331,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
if (m.length === 0) {
|
|
334
|
-
|
|
334
|
+
L.warning(
|
|
335
335
|
"업로드할 파일이 없거나 모든 파일이 이미 업로드되었습니다."
|
|
336
336
|
);
|
|
337
337
|
return;
|
|
@@ -351,7 +351,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
} catch (_) {
|
|
354
|
-
Y(!1),
|
|
354
|
+
Y(!1), L.error("파일을 압축하는 중 오류가 발생했습니다."), console.error("Zipping error:", _);
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
357
|
Y(!1);
|
|
@@ -388,7 +388,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
388
388
|
S(new Error("네트워크 오류가 발생했습니다."));
|
|
389
389
|
}, x.send(H);
|
|
390
390
|
});
|
|
391
|
-
|
|
391
|
+
L.success(
|
|
392
392
|
_.message || "압축 파일이 성공적으로 업로드되었습니다."
|
|
393
393
|
);
|
|
394
394
|
const R = a.map(
|
|
@@ -431,7 +431,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
431
431
|
sub: re
|
|
432
432
|
});
|
|
433
433
|
}).catch((N) => {
|
|
434
|
-
console.error("후처리 서비스 호출 실패:", N),
|
|
434
|
+
console.error("후처리 서비스 호출 실패:", N), L.error(
|
|
435
435
|
`${S.fileNameL} 파일의 후처리 작업에 실패했습니다.`
|
|
436
436
|
);
|
|
437
437
|
}), l && l({
|
|
@@ -441,7 +441,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
} catch (_) {
|
|
444
|
-
|
|
444
|
+
L.error(_.message || "파일 업로드 중 오류가 발생했습니다.");
|
|
445
445
|
const R = a.map(
|
|
446
446
|
(p) => m.find((S) => S.uid === p.uid) ? {
|
|
447
447
|
...p,
|
|
@@ -456,29 +456,29 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
456
456
|
}, f = {
|
|
457
457
|
multiple: !0,
|
|
458
458
|
fileList: a,
|
|
459
|
-
beforeUpload: (m) => B(m) ? d && m.size >= d * 1024 * 1024 ? (
|
|
459
|
+
beforeUpload: (m) => B(m) ? d && m.size >= d * 1024 * 1024 ? (L.error(
|
|
460
460
|
`대용량 첨부 파일 최대 크기는 ${(d / 1024).toFixed(
|
|
461
461
|
1
|
|
462
462
|
)}GB입니다.`
|
|
463
463
|
), G.LIST_IGNORE) : !1 : G.LIST_IGNORE,
|
|
464
464
|
onChange: ({ fileList: m }) => {
|
|
465
|
-
const
|
|
465
|
+
const h = new Map(a.map((I) => [I.uid, I]));
|
|
466
466
|
m.forEach((I) => {
|
|
467
|
-
|
|
468
|
-
}), u(Array.from(
|
|
467
|
+
h.set(I.uid, I);
|
|
468
|
+
}), u(Array.from(h.values()));
|
|
469
469
|
},
|
|
470
470
|
onRemove: (m) => {
|
|
471
|
-
const
|
|
472
|
-
u(
|
|
471
|
+
const h = a.filter((I) => I.uid !== m.uid);
|
|
472
|
+
u(h);
|
|
473
473
|
},
|
|
474
474
|
showUploadList: !1
|
|
475
475
|
// 수동으로 목록을 렌더링하므로 antd의 기본 목록은 숨깁니다.
|
|
476
476
|
};
|
|
477
477
|
return /* @__PURE__ */ r(
|
|
478
|
-
|
|
478
|
+
Le,
|
|
479
479
|
{
|
|
480
480
|
spinning: s || F,
|
|
481
|
-
tip: F ? "파일 압축 중..." : `파일 업로드 중... ${
|
|
481
|
+
tip: F ? "파일 압축 중..." : `파일 업로드 중... ${b}%`,
|
|
482
482
|
children: /* @__PURE__ */ q("div", { className: "bwg-large-uploader-container", children: [
|
|
483
483
|
/* @__PURE__ */ r(
|
|
484
484
|
Fe,
|
|
@@ -501,9 +501,9 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
501
501
|
style: { textAlign: "left" },
|
|
502
502
|
dataSource: a,
|
|
503
503
|
renderItem: (m) => {
|
|
504
|
-
const
|
|
504
|
+
const h = m.status === "done", I = m.status === "error";
|
|
505
505
|
let O;
|
|
506
|
-
return
|
|
506
|
+
return h ? O = /* @__PURE__ */ r(
|
|
507
507
|
Ue,
|
|
508
508
|
{
|
|
509
509
|
style: { color: "#52c41a", fontSize: 14 }
|
|
@@ -575,7 +575,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
575
575
|
gap: "large",
|
|
576
576
|
style: { marginTop: 16 },
|
|
577
577
|
children: [
|
|
578
|
-
s && /* @__PURE__ */ r("div", { style: { width: "250px" }, children: /* @__PURE__ */ r(Se, { percent:
|
|
578
|
+
s && /* @__PURE__ */ r("div", { style: { width: "250px" }, children: /* @__PURE__ */ r(Se, { percent: b, size: "small" }) }),
|
|
579
579
|
/* @__PURE__ */ r(
|
|
580
580
|
J,
|
|
581
581
|
{
|
|
@@ -639,7 +639,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
639
639
|
itemProps: e = { name: "calendar" },
|
|
640
640
|
inputProps: l
|
|
641
641
|
}) => {
|
|
642
|
-
const { format: i, mask: n, outputFormat: o } = tt(t), d = X(null), a = X(null), u = E.useFormInstance(), [s, C] = T(!1), [F, Y] = T(!1),
|
|
642
|
+
const { format: i, mask: n, outputFormat: o } = tt(t), d = X(null), a = X(null), u = E.useFormInstance(), [s, C] = T(!1), [F, Y] = T(!1), b = e?.name, [k, B] = T(null);
|
|
643
643
|
j(() => {
|
|
644
644
|
if (!d.current?.input) return;
|
|
645
645
|
const f = Ce(d.current.input, {
|
|
@@ -648,14 +648,14 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
648
648
|
});
|
|
649
649
|
return a.current = f, f.on("accept", () => {
|
|
650
650
|
console.log("input :: ", f.value);
|
|
651
|
-
const m = f.value,
|
|
652
|
-
console.log("input :: ",
|
|
651
|
+
const m = f.value, h = z(m, i, !0);
|
|
652
|
+
console.log("input :: ", h), m.length === i.length && h.isValid() && (console.log("parsed :: ", h.format(o)), u.setFieldValue(b, h.format(o)), a.current?.updateValue(), C(!1));
|
|
653
653
|
}), () => {
|
|
654
654
|
f.destroy();
|
|
655
655
|
};
|
|
656
656
|
}, [i, n]), j(() => {
|
|
657
|
-
B(z(u.getFieldValue(
|
|
658
|
-
}, [u.getFieldValue(
|
|
657
|
+
B(z(u.getFieldValue(b)));
|
|
658
|
+
}, [u.getFieldValue(b)]);
|
|
659
659
|
const v = (f) => {
|
|
660
660
|
if (!f) {
|
|
661
661
|
a.current?.updateValue();
|
|
@@ -675,7 +675,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
675
675
|
/* @__PURE__ */ r(
|
|
676
676
|
E.Item,
|
|
677
677
|
{
|
|
678
|
-
name:
|
|
678
|
+
name: b,
|
|
679
679
|
getValueProps: (f) => ({
|
|
680
680
|
value: f ? z(f).format(i) : void 0
|
|
681
681
|
}),
|
|
@@ -820,7 +820,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
820
820
|
)
|
|
821
821
|
}
|
|
822
822
|
);
|
|
823
|
-
},
|
|
823
|
+
}, ge = te.Search, vt = (t) => {
|
|
824
824
|
const e = E.useFormInstance(), { openPopup: l } = Ke(), i = t.itemProps?.name || [], n = t.popupConfig || {
|
|
825
825
|
callback(d) {
|
|
826
826
|
console.log("callback data :: ", d), i.length > 1 ? (e.setFieldValue(i[0], d.code), e.setFieldValue(i[1], d.name)) : e.setFieldValue(i, d.code);
|
|
@@ -855,7 +855,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
855
855
|
}
|
|
856
856
|
),
|
|
857
857
|
/* @__PURE__ */ r(E.Item, { name: i[1], style: { width: "60%", marginBottom: 0 }, children: /* @__PURE__ */ r(
|
|
858
|
-
|
|
858
|
+
ge,
|
|
859
859
|
{
|
|
860
860
|
readOnly: t.readOnly,
|
|
861
861
|
enterButton: /* @__PURE__ */ r(
|
|
@@ -868,7 +868,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
868
868
|
...o
|
|
869
869
|
}
|
|
870
870
|
) })
|
|
871
|
-
] }) }) : /* @__PURE__ */ r(D, { ...t.itemProps, children: /* @__PURE__ */ r(
|
|
871
|
+
] }) }) : /* @__PURE__ */ r(D, { ...t.itemProps, children: /* @__PURE__ */ r(ge, { ...o }) });
|
|
872
872
|
}, xt = ({
|
|
873
873
|
itemProps: t,
|
|
874
874
|
selectProps: e = {
|
|
@@ -957,7 +957,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
957
957
|
".gif",
|
|
958
958
|
// 압축
|
|
959
959
|
".zip"
|
|
960
|
-
],
|
|
960
|
+
], he = {
|
|
961
961
|
FILE: "file"
|
|
962
962
|
}, at = ({
|
|
963
963
|
originNode: t,
|
|
@@ -967,30 +967,30 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
967
967
|
onDrop: n
|
|
968
968
|
}) => {
|
|
969
969
|
const o = X(null), [{ handlerId: d }, a] = qe({
|
|
970
|
-
accept:
|
|
970
|
+
accept: he.FILE,
|
|
971
971
|
collect: (F) => ({
|
|
972
972
|
handlerId: F.getHandlerId()
|
|
973
973
|
}),
|
|
974
974
|
hover(F, Y) {
|
|
975
975
|
if (!o.current)
|
|
976
976
|
return;
|
|
977
|
-
const
|
|
978
|
-
if (
|
|
977
|
+
const b = F.uid, k = e.uid;
|
|
978
|
+
if (b === k)
|
|
979
979
|
return;
|
|
980
|
-
const B = ne(l, { uid: k }), v = ne(l, { uid:
|
|
980
|
+
const B = ne(l, { uid: k }), v = ne(l, { uid: b });
|
|
981
981
|
if (v === -1 || B === -1)
|
|
982
982
|
return;
|
|
983
983
|
const f = o.current.getBoundingClientRect(), m = Y.getClientOffset();
|
|
984
984
|
if (!m)
|
|
985
985
|
return;
|
|
986
|
-
const
|
|
987
|
-
v < B && I <
|
|
986
|
+
const h = (f.bottom - f.top) / 2, I = m.y - f.top;
|
|
987
|
+
v < B && I < h || v > B && I > h || i(b, k);
|
|
988
988
|
},
|
|
989
989
|
drop() {
|
|
990
990
|
n();
|
|
991
991
|
}
|
|
992
992
|
}), [{ isDragging: u }, s] = We({
|
|
993
|
-
type:
|
|
993
|
+
type: he.FILE,
|
|
994
994
|
item: () => ({
|
|
995
995
|
uid: e.uid,
|
|
996
996
|
index: ne(l, { uid: e.uid })
|
|
@@ -1015,12 +1015,12 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
1015
1015
|
multiple: C = !1,
|
|
1016
1016
|
newFileGrpKeyonModify: F = !1,
|
|
1017
1017
|
buttonText: Y = "파일 선택",
|
|
1018
|
-
localOnly:
|
|
1018
|
+
localOnly: b = !1,
|
|
1019
1019
|
onFilesChange: k
|
|
1020
1020
|
}) => {
|
|
1021
|
-
const [B, v] = T([]), f = X(e), m = X([]),
|
|
1021
|
+
const [B, v] = T([]), f = X(e), m = X([]), h = E.useFormInstance(), O = X(
|
|
1022
1022
|
$e(() => {
|
|
1023
|
-
if (
|
|
1023
|
+
if (b || m.current.length === 0)
|
|
1024
1024
|
return;
|
|
1025
1025
|
const c = [...m.current];
|
|
1026
1026
|
if (m.current = [], n) {
|
|
@@ -1047,8 +1047,8 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
1047
1047
|
sub: w
|
|
1048
1048
|
}).then((y) => {
|
|
1049
1049
|
if (y?.sub && y.sub.length > 0) {
|
|
1050
|
-
const
|
|
1051
|
-
(!f.current || F) && (f.current =
|
|
1050
|
+
const g = y.sub[0].fileGrpKey;
|
|
1051
|
+
(!f.current || F) && (f.current = g);
|
|
1052
1052
|
const V = /* @__PURE__ */ new Map();
|
|
1053
1053
|
y.sub.forEach((M) => {
|
|
1054
1054
|
const U = c.find(
|
|
@@ -1059,24 +1059,24 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
1059
1059
|
const Q = t?.name;
|
|
1060
1060
|
((M) => {
|
|
1061
1061
|
if (p) {
|
|
1062
|
-
const U =
|
|
1063
|
-
|
|
1062
|
+
const U = h?.getFieldValue(Q) || [], $ = M(U);
|
|
1063
|
+
h?.setFieldValue(Q, $);
|
|
1064
1064
|
} else
|
|
1065
1065
|
v((U) => M(U));
|
|
1066
1066
|
})((M) => M.map((U) => {
|
|
1067
1067
|
const $ = V.get(U.uid);
|
|
1068
1068
|
if ($) {
|
|
1069
1069
|
const ce = c.find(
|
|
1070
|
-
(
|
|
1070
|
+
(be) => be.tempId === U.uid
|
|
1071
1071
|
);
|
|
1072
1072
|
return l && ce && l({
|
|
1073
1073
|
...ce,
|
|
1074
|
-
fileGrpKey:
|
|
1074
|
+
fileGrpKey: g,
|
|
1075
1075
|
fileKey: $.fileKey
|
|
1076
1076
|
}), {
|
|
1077
1077
|
...U,
|
|
1078
1078
|
name: $.lgclFileNm,
|
|
1079
|
-
fileGrpKey:
|
|
1079
|
+
fileGrpKey: g,
|
|
1080
1080
|
fileKey: $.fileKey,
|
|
1081
1081
|
uid: $.fileKey,
|
|
1082
1082
|
status: "done",
|
|
@@ -1087,17 +1087,17 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
1087
1087
|
}));
|
|
1088
1088
|
}
|
|
1089
1089
|
}).catch((y) => {
|
|
1090
|
-
console.error("업로드 후처리 서비스 호출 실패:", y),
|
|
1091
|
-
const
|
|
1090
|
+
console.error("업로드 후처리 서비스 호출 실패:", y), L.error("파일 후처리 중 오류가 발생했습니다.");
|
|
1091
|
+
const g = new Set(c.map((A) => A.tempId)), V = t?.name;
|
|
1092
1092
|
((A) => {
|
|
1093
1093
|
if (p) {
|
|
1094
|
-
const M =
|
|
1095
|
-
|
|
1094
|
+
const M = h?.getFieldValue(V) || [], U = A(M);
|
|
1095
|
+
h?.setFieldValue(V, U);
|
|
1096
1096
|
} else
|
|
1097
1097
|
v((M) => A(M));
|
|
1098
1098
|
})(
|
|
1099
1099
|
(A) => A.map(
|
|
1100
|
-
(M) =>
|
|
1100
|
+
(M) => g.has(M.uid) ? { ...M, status: "error", error: "후처리 실패" } : M
|
|
1101
1101
|
)
|
|
1102
1102
|
);
|
|
1103
1103
|
});
|
|
@@ -1109,64 +1109,64 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
1109
1109
|
}, [O]), j(() => {
|
|
1110
1110
|
f.current = e;
|
|
1111
1111
|
}, [e]), j(() => {
|
|
1112
|
-
|
|
1112
|
+
b || e && i && W(i, {
|
|
1113
1113
|
crprCd: K()?.crprCd,
|
|
1114
1114
|
sysCd: __SYS_CD__,
|
|
1115
1115
|
fileGrpKey: e
|
|
1116
1116
|
}).then((c) => {
|
|
1117
1117
|
if (c?.sub) {
|
|
1118
|
-
const w = c.sub.map((
|
|
1119
|
-
uid:
|
|
1120
|
-
name:
|
|
1118
|
+
const w = c.sub.map((g) => ({
|
|
1119
|
+
uid: g.fileKey,
|
|
1120
|
+
name: g.lgclFileNm,
|
|
1121
1121
|
status: "done",
|
|
1122
|
-
url: `/api/download?filePath=${
|
|
1122
|
+
url: `/api/download?filePath=${g.filePath}&logicalName=${g.lgclFileNm}`
|
|
1123
1123
|
})), y = t?.name;
|
|
1124
|
-
p ?
|
|
1124
|
+
p ? h?.setFieldValue(y, w) : v(w);
|
|
1125
1125
|
} else {
|
|
1126
1126
|
const w = t?.name;
|
|
1127
|
-
p ?
|
|
1127
|
+
p ? h?.setFieldValue(w, []) : v([]);
|
|
1128
1128
|
}
|
|
1129
1129
|
}).catch((c) => {
|
|
1130
|
-
console.error("파일 목록 조회 서비스 호출에 실패했습니다.", c),
|
|
1130
|
+
console.error("파일 목록 조회 서비스 호출에 실패했습니다.", c), L.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
|
|
1131
1131
|
});
|
|
1132
1132
|
}, [e, i]);
|
|
1133
1133
|
const H = (c, w) => {
|
|
1134
|
-
const y = t?.name,
|
|
1134
|
+
const y = t?.name, g = p ? h?.getFieldValue(y) || [] : B, V = ne(g, { uid: c }), Q = ne(g, { uid: w });
|
|
1135
1135
|
if (V < 0 || Q < 0) return;
|
|
1136
|
-
const A = [...
|
|
1137
|
-
A.splice(Q, 0, M), p ?
|
|
1136
|
+
const A = [...g], [M] = A.splice(V, 1);
|
|
1137
|
+
A.splice(Q, 0, M), p ? h?.setFieldValue(y, A) : v(A);
|
|
1138
1138
|
}, _ = () => {
|
|
1139
|
-
if (!
|
|
1140
|
-
const c = t?.name, y = (p ?
|
|
1139
|
+
if (!b && e && d) {
|
|
1140
|
+
const c = t?.name, y = (p ? h?.getFieldValue(c) || [] : B).map((g) => g.uid);
|
|
1141
1141
|
W(d, {
|
|
1142
1142
|
crprCd: K()?.crprCd,
|
|
1143
1143
|
sysCd: __SYS_CD__,
|
|
1144
1144
|
fileGrpKey: e,
|
|
1145
1145
|
reorderedFileKeys: y
|
|
1146
1146
|
}).then(() => {
|
|
1147
|
-
|
|
1148
|
-
}).catch((
|
|
1149
|
-
console.error("파일 순서 저장 서비스 호출 실패:",
|
|
1147
|
+
L.success("파일 순서가 성공적으로 저장되었습니다.");
|
|
1148
|
+
}).catch((g) => {
|
|
1149
|
+
console.error("파일 순서 저장 서비스 호출 실패:", g), L.error("파일 순서 저장 중 오류가 발생했습니다.");
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
1152
1152
|
}, R = (c) => {
|
|
1153
|
-
const w = t?.name, y = p ?
|
|
1153
|
+
const w = t?.name, y = p ? h?.getFieldValue(w) || [] : B;
|
|
1154
1154
|
if (!C && y.length > 0)
|
|
1155
|
-
return
|
|
1155
|
+
return L.error("하나의 파일만 업로드할 수 있습니다."), G.LIST_IGNORE;
|
|
1156
1156
|
if (a && a.length > 0) {
|
|
1157
|
-
const
|
|
1158
|
-
if (!a.includes(
|
|
1159
|
-
return
|
|
1157
|
+
const g = `.${c.name.split(".").pop()?.toLowerCase()}`;
|
|
1158
|
+
if (!a.includes(g))
|
|
1159
|
+
return L.error(
|
|
1160
1160
|
`${c.name} 파일은 허용되지 않는 확장자입니다. (${a.join(
|
|
1161
1161
|
", "
|
|
1162
1162
|
)})`
|
|
1163
1163
|
), G.LIST_IGNORE;
|
|
1164
1164
|
}
|
|
1165
|
-
return u && !(c.size / 1024 / 1024 < u) ? (
|
|
1165
|
+
return u && !(c.size / 1024 / 1024 < u) ? (L.error(`일반업로드의 최대용량은 ${u}MB입니다.`), G.LIST_IGNORE) : !b;
|
|
1166
1166
|
}, p = !!t?.name, S = {
|
|
1167
1167
|
name: "file",
|
|
1168
1168
|
multiple: C,
|
|
1169
|
-
action:
|
|
1169
|
+
action: b ? void 0 : "/api/upload",
|
|
1170
1170
|
beforeUpload: R,
|
|
1171
1171
|
showUploadList: {
|
|
1172
1172
|
showRemoveIcon: s
|
|
@@ -1175,7 +1175,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
1175
1175
|
onChange(c) {
|
|
1176
1176
|
const { status: w, uid: y } = c.file;
|
|
1177
1177
|
if (w === "removed") {
|
|
1178
|
-
if (!
|
|
1178
|
+
if (!b && o)
|
|
1179
1179
|
W(o, {
|
|
1180
1180
|
crprCd: K()?.crprCd,
|
|
1181
1181
|
sysCd: __SYS_CD__,
|
|
@@ -1183,22 +1183,22 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
1183
1183
|
fileKey: y,
|
|
1184
1184
|
oldFileGrpKey: f.current,
|
|
1185
1185
|
newFileGrpKeyonModify: F
|
|
1186
|
-
}).then((
|
|
1187
|
-
if (
|
|
1186
|
+
}).then((g) => {
|
|
1187
|
+
if (L.success("파일이 성공적으로 삭제되었습니다."), F && (f.current = g.fileGrpKey), p) {
|
|
1188
1188
|
const V = t?.name;
|
|
1189
|
-
|
|
1189
|
+
h?.setFieldValue(V, c.fileList);
|
|
1190
1190
|
} else
|
|
1191
1191
|
v(c.fileList);
|
|
1192
1192
|
k?.(c.fileList), l?.({
|
|
1193
|
-
fileGrpKey:
|
|
1193
|
+
fileGrpKey: g.fileGrpKey
|
|
1194
1194
|
});
|
|
1195
|
-
}).catch((
|
|
1196
|
-
console.error("파일 삭제 서비스 호출에 실패했습니다.",
|
|
1195
|
+
}).catch((g) => {
|
|
1196
|
+
console.error("파일 삭제 서비스 호출에 실패했습니다.", g), L.error("파일 삭제 중 오류가 발생했습니다.");
|
|
1197
1197
|
});
|
|
1198
1198
|
else {
|
|
1199
1199
|
if (p) {
|
|
1200
|
-
const
|
|
1201
|
-
|
|
1200
|
+
const g = t?.name;
|
|
1201
|
+
h?.setFieldValue(g, c.fileList);
|
|
1202
1202
|
} else
|
|
1203
1203
|
v(c.fileList);
|
|
1204
1204
|
k?.(c.fileList);
|
|
@@ -1206,35 +1206,35 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
1206
1206
|
return;
|
|
1207
1207
|
}
|
|
1208
1208
|
if (p) {
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1209
|
+
const g = t?.name;
|
|
1210
|
+
h?.setFieldValue(g, c.fileList);
|
|
1211
1211
|
} else
|
|
1212
1212
|
v(c.fileList);
|
|
1213
1213
|
if (k?.(c.fileList), w === "done")
|
|
1214
|
-
if (!
|
|
1215
|
-
const { uploadedFiles:
|
|
1216
|
-
|
|
1214
|
+
if (!b && c.file.response?.success) {
|
|
1215
|
+
const { uploadedFiles: g } = c.file.response;
|
|
1216
|
+
g && Array.isArray(g) && g.length > 0 && (g.forEach((V) => {
|
|
1217
1217
|
V.tempId = c.file.uid, m.current.push(V);
|
|
1218
|
-
}), O()),
|
|
1218
|
+
}), O()), L.success(
|
|
1219
1219
|
c.file.response.message || `${c.file.name} 파일이 성공적으로 업로드되었습니다.`
|
|
1220
1220
|
);
|
|
1221
1221
|
} else
|
|
1222
|
-
|
|
1222
|
+
L.error(
|
|
1223
1223
|
c.file.response?.message || `${c.file.name} 파일 업로드에 실패했습니다.`
|
|
1224
1224
|
);
|
|
1225
|
-
else w === "error" &&
|
|
1225
|
+
else w === "error" && L.error(
|
|
1226
1226
|
c.file.response?.message || `${c.file.name} 파일 업로드 중 오류가 발생했습니다.`
|
|
1227
1227
|
);
|
|
1228
1228
|
},
|
|
1229
1229
|
itemRender(c, w, y) {
|
|
1230
|
-
const
|
|
1230
|
+
const g = ve(c, {
|
|
1231
1231
|
href: w.url || void 0,
|
|
1232
1232
|
title: void 0
|
|
1233
1233
|
});
|
|
1234
1234
|
return /* @__PURE__ */ r(
|
|
1235
1235
|
at,
|
|
1236
1236
|
{
|
|
1237
|
-
originNode:
|
|
1237
|
+
originNode: g,
|
|
1238
1238
|
file: w,
|
|
1239
1239
|
fileList: y,
|
|
1240
1240
|
moveFile: H,
|
|
@@ -1245,7 +1245,7 @@ const St = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ r(D, { ...t, chi
|
|
|
1245
1245
|
}
|
|
1246
1246
|
};
|
|
1247
1247
|
p || (S.fileList = B);
|
|
1248
|
-
const x = (c) => Array.isArray(c) ? c : c && c.fileList, N = t?.name, re = p ? E.useWatch?.(N,
|
|
1248
|
+
const x = (c) => Array.isArray(c) ? c : c && c.fileList, N = t?.name, re = p ? E.useWatch?.(N, h) : void 0, Z = p ? re || [] : B;
|
|
1249
1249
|
return /* @__PURE__ */ r(Ge, { backend: Je, children: /* @__PURE__ */ r(
|
|
1250
1250
|
D,
|
|
1251
1251
|
{
|
|
@@ -1268,8 +1268,8 @@ export {
|
|
|
1268
1268
|
yt as BwgButton,
|
|
1269
1269
|
Yt as BwgCheck,
|
|
1270
1270
|
Ct as BwgCheckList,
|
|
1271
|
-
|
|
1272
|
-
|
|
1271
|
+
bt as BwgDatePicker,
|
|
1272
|
+
Lt as BwgDownload,
|
|
1273
1273
|
Xe as BwgForm,
|
|
1274
1274
|
D as BwgFormItem,
|
|
1275
1275
|
St as BwgInput,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../chunks/common-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../chunks/common-components-CoRIM-Z-.cjs"),n=()=>e.jsx(o.BwgSpace,{children:"BwgComponentGuide"}),r=()=>e.jsx(o.BwgSpace,{children:"BwgDeveloperGuide"});exports.BwgComponentGuide=n;exports.BwgDeveloperGuide=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b as o } from "../../chunks/common-components-Bp95qOup.js";
|
|
3
3
|
const t = () => /* @__PURE__ */ e(o, { children: "BwgComponentGuide" }), i = () => /* @__PURE__ */ e(o, { children: "BwgDeveloperGuide" });
|
|
4
4
|
export {
|
|
5
5
|
t as BwgComponentGuide,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../chunks/layout-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../chunks/layout-components-hCEUMfz3.cjs");exports.AppWrapper=n.AppWrapper;exports.BwgPortal01=n.BwgPortal01;exports.BwgPortal02=n.BwgPortal02;exports.ConfigurableContent=n.ConfigurableContent;exports.ConfigurableHeader=n.ConfigurableHeader;exports.ConfigurableMenuTab=n.ConfigurableMenuTab;exports.ConfigurableSidebar=n.ConfigurableSidebar;exports.ContentContainer=n.ContentContainer;exports.LandingContainer=n.LandingContainer;exports.LoadingContainer=n.LoadingContainer;exports.PopupContainer=n.PopupContainer;exports.ProtectWrapper=n.ProtectWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, B as r, a as o, c as t, d as s, e as i, f as C, C as g, b as p, L as b, P as f, g as l } from "../../chunks/layout-components-
|
|
1
|
+
import { A as e, B as r, a as o, c as t, d as s, e as i, f as C, C as g, b as p, L as b, P as f, g as l } from "../../chunks/layout-components-yyItu5pi.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AppWrapper,
|
|
4
4
|
r as BwgPortal01,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMAuthMstrM01.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/CMAuthMstrM01.tsx"],"names":[],"mappings":"AAqCA,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AACF,QAAA,MAAM,aAAa,GAAI,kBAAkB,SAAS,4CAi1BjD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CMRoleMstrM01.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/CMRoleMstrM01.tsx"],"names":[],"mappings":"AAyBA,QAAA,MAAM,aAAa,+CAohBlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BwgComponentGuideM01.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/guide/BwgComponentGuideM01.tsx"],"names":[],"mappings":"AAoSA,QAAA,MAAM,oBAAoB,+CAg/IzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BwgDeveloperGuideM01.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/guide/BwgDeveloperGuideM01.tsx"],"names":[],"mappings":"AAmnBA,QAAA,MAAM,oBAAoB,+CA0+CzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|