@bwg-ui/core 1.3.5 → 1.3.7
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/{CMSearchIntfGwP01-CuGDAfFM.cjs → CMSearchIntfGwP01-0t3umcc_.cjs} +1 -1
- package/dist/chunks/{CMSearchIntfGwP01-DBpDpgQr.js → CMSearchIntfGwP01-DCHZJn2H.js} +1 -1
- package/dist/chunks/{MenuReport-yw8tZDUk.cjs → MenuReport-C70mGz2g.cjs} +1 -1
- package/dist/chunks/{MenuReport-CCbCy7yt.js → MenuReport-IBdoU2S3.js} +2 -2
- package/dist/chunks/common-components-DNgQR-Ge.cjs +1109 -0
- package/dist/chunks/{common-components-DtzVj5lz.js → common-components-DeYL3J6X.js} +13058 -13574
- package/dist/chunks/layout-components-Bf9IsLUS.cjs +38 -0
- package/dist/chunks/{layout-components-ljht1sHh.js → layout-components-DnuV2Psp.js} +831 -759
- package/dist/chunks/provider-Bi5OYngn.cjs +1 -0
- package/dist/chunks/{provider-Kxea5IoZ.js → provider-Bx4VpaFf.js} +90 -74
- package/dist/components/common/BwgGrid.d.ts +31 -8
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/BwgView.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/BwgEmpSearch.d.ts +2 -2
- package/dist/components/core/BwgEmpSearch.d.ts.map +1 -1
- package/dist/components/core/BwgMaskedDate.d.ts.map +1 -1
- package/dist/components/core/BwgMaskedRange.d.ts.map +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +211 -208
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +2 -2
- package/dist/components/layout/AppWrapper.d.ts +5 -1
- package/dist/components/layout/AppWrapper.d.ts.map +1 -1
- package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/extension/ContentWrapper.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/pages/board/CMMyBoardM01.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +273 -271
- package/dist/provider/contexts/PageContentContext.d.ts +23 -0
- package/dist/provider/contexts/PageContentContext.d.ts.map +1 -0
- package/dist/provider/contexts/index.d.ts +1 -0
- package/dist/provider/contexts/index.d.ts.map +1 -1
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +21 -19
- package/dist/public/realgrid/css/realgrid-style-custom.css +6 -10
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +1 -1
- package/dist/styles/assets/images/backgrounds/kiam_login_bg.png +0 -0
- 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/styles/components_02.css +35 -0
- package/dist/styles/global.css +9 -1
- package/dist/styles/index.css +3 -0
- package/dist/styles/layout.css +14 -4
- package/dist/styles/layout_02.css +99 -0
- package/dist/styles/login.css +7 -44
- package/dist/styles/login_02.css +35 -0
- package/dist/utils/apiUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +16 -22
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1253 -1222
- package/dist/utils/messageUtils.d.ts +36 -48
- package/dist/utils/messageUtils.d.ts.map +1 -1
- package/dist/utils/modalUtils.d.ts +68 -0
- package/dist/utils/modalUtils.d.ts.map +1 -0
- package/dist/utils/notificationUtils.d.ts +50 -41
- package/dist/utils/notificationUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/common-components-CbkWoYfX.cjs +0 -1111
- package/dist/chunks/layout-components-BzLAGXiu.cjs +0 -38
- package/dist/chunks/provider-r4mkv5Zs.cjs +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as P } from "react/jsx-runtime";
|
|
2
2
|
import { Button as X, Form as E, Checkbox as ue, ConfigProvider as se, DatePicker as ie, message as z, Card as Ve, List as re, Input as q, Spin as Le, Upload as Z, Typography as be, Flex as ge, Progress as ve, notification as Ae, Tooltip as Me, Select as fe, Space as ae, InputNumber as _e, Radio as De, Switch as Ee } from "antd";
|
|
3
|
-
import { useMemo as Q, memo as xe, useState as j, useEffect as G, forwardRef as Be, useRef as
|
|
3
|
+
import { useMemo as Q, memo as xe, useState as j, useEffect as G, forwardRef as Be, useRef as K, cloneElement as Oe, useCallback as ce } from "react";
|
|
4
4
|
import { useUserStore as ze, usePopupStore as $e } from "../../stores/index.js";
|
|
5
5
|
import _ from "dayjs";
|
|
6
|
-
import { PaperClipOutlined as Re, DownloadOutlined as Ue, DeleteOutlined as Te, InboxOutlined as je, UploadOutlined as ke, CloudUploadOutlined as He, CheckCircleOutlined as
|
|
6
|
+
import { PaperClipOutlined as Re, DownloadOutlined as Ue, DeleteOutlined as Te, InboxOutlined as je, UploadOutlined as ke, CloudUploadOutlined as He, CheckCircleOutlined as Ke, CloseCircleOutlined as Pe, FileTextOutlined as Ge, CalendarOutlined as de, ExclamationCircleOutlined as Se, SearchOutlined as Ne } from "@ant-design/icons";
|
|
7
7
|
import { getApiDeps as he, callServiceByAppCd as We, getCrprCd as qe, callService as J, getUserInfo as te } from "../../utils/index.js";
|
|
8
8
|
import Ze from "jszip";
|
|
9
9
|
import le from "imask";
|
|
10
|
-
import { d as we, e as Je } from "../../chunks/provider-
|
|
10
|
+
import { d as we, e as Je } from "../../chunks/provider-Bx4VpaFf.js";
|
|
11
11
|
import { debounce as Xe, findIndex as ne } from "lodash";
|
|
12
12
|
import { DndProvider as Qe, useDrop as et, useDrag as tt } from "react-dnd";
|
|
13
13
|
import { HTML5Backend as rt } from "react-dnd-html5-backend";
|
|
14
14
|
const vt = (e) => {
|
|
15
|
-
const { componentSize:
|
|
15
|
+
const { componentSize: t } = ze(), f = Q(() => e.size ? e.size : {
|
|
16
16
|
0: "small",
|
|
17
17
|
1: "middle",
|
|
18
18
|
2: "large"
|
|
19
|
-
}[
|
|
19
|
+
}[t], [t, e.size]), s = Q(() => ({
|
|
20
20
|
0: 12,
|
|
21
21
|
// 작게
|
|
22
22
|
1: 14,
|
|
23
23
|
// 보통
|
|
24
24
|
2: 16
|
|
25
25
|
// 크게
|
|
26
|
-
})[
|
|
26
|
+
})[t], [t]);
|
|
27
27
|
return /* @__PURE__ */ a(
|
|
28
28
|
X,
|
|
29
29
|
{
|
|
@@ -37,10 +37,10 @@ const vt = (e) => {
|
|
|
37
37
|
}, T = xe(
|
|
38
38
|
({
|
|
39
39
|
children: e,
|
|
40
|
-
label:
|
|
40
|
+
label: t,
|
|
41
41
|
name: f,
|
|
42
42
|
rules: s,
|
|
43
|
-
initialValue:
|
|
43
|
+
initialValue: r,
|
|
44
44
|
style: l,
|
|
45
45
|
required: g,
|
|
46
46
|
...i
|
|
@@ -51,23 +51,23 @@ const vt = (e) => {
|
|
|
51
51
|
(s == null || s == null) && g && (s = [
|
|
52
52
|
{
|
|
53
53
|
required: !0,
|
|
54
|
-
message: `${
|
|
54
|
+
message: `${t}을(를) 입력해주세요.`
|
|
55
55
|
}
|
|
56
56
|
]);
|
|
57
|
-
const c = Array.isArray(s) && s.some((Y) => Y.required === !0), u = () => typeof
|
|
58
|
-
|
|
57
|
+
const c = Array.isArray(s) && s.some((Y) => Y.required === !0), u = () => typeof t == "string" ? /* @__PURE__ */ P("span", { style: y, children: [
|
|
58
|
+
t,
|
|
59
59
|
c && /* @__PURE__ */ a("span", { style: { color: "#ff4d4f", marginLeft: "4px" }, children: "*" })
|
|
60
|
-
] }) : /* @__PURE__ */ a("span", { style: y, children:
|
|
60
|
+
] }) : /* @__PURE__ */ a("span", { style: y, children: t });
|
|
61
61
|
return /* @__PURE__ */ a(
|
|
62
62
|
E.Item,
|
|
63
63
|
{
|
|
64
64
|
className: "bwg-form-item",
|
|
65
|
-
label:
|
|
65
|
+
label: t ? u() : void 0,
|
|
66
66
|
labelAlign: i.labelAlign || "left",
|
|
67
67
|
name: f,
|
|
68
68
|
rules: s,
|
|
69
69
|
colon: !1,
|
|
70
|
-
initialValue:
|
|
70
|
+
initialValue: r,
|
|
71
71
|
style: l,
|
|
72
72
|
...i,
|
|
73
73
|
children: e
|
|
@@ -76,7 +76,7 @@ const vt = (e) => {
|
|
|
76
76
|
}
|
|
77
77
|
), At = ({
|
|
78
78
|
itemProps: e,
|
|
79
|
-
inputProps:
|
|
79
|
+
inputProps: t = {
|
|
80
80
|
format: "YN"
|
|
81
81
|
}
|
|
82
82
|
}) => {
|
|
@@ -85,21 +85,21 @@ const vt = (e) => {
|
|
|
85
85
|
T,
|
|
86
86
|
{
|
|
87
87
|
...e,
|
|
88
|
-
getValueProps: (
|
|
89
|
-
normalize: (
|
|
90
|
-
children: /* @__PURE__ */ a(ue, { ...
|
|
91
|
-
|
|
92
|
-
}, children:
|
|
88
|
+
getValueProps: (r) => ({ checked: t.format === "boolean" ? !!r : r === "Y" }),
|
|
89
|
+
normalize: (r) => typeof r == "boolean" ? t.format === "boolean" ? r : r ? "Y" : "N" : t.format === "boolean" ? !!r : r ? "Y" : "N",
|
|
90
|
+
children: /* @__PURE__ */ a(ue, { ...t, onChange: (r) => {
|
|
91
|
+
t.format === "boolean" ? f.setFieldValue(e?.name, r.target.checked) : f.setFieldValue(e?.name, r.target.checked ? "Y" : "N"), t.onChange && t.onChange(r);
|
|
92
|
+
}, children: t?.title })
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
|
-
}, Mt = ({ itemProps: e, inputProps:
|
|
96
|
-
const f = E.useFormInstance(), [s,
|
|
95
|
+
}, Mt = ({ itemProps: e, inputProps: t }) => {
|
|
96
|
+
const f = E.useFormInstance(), [s, r] = j(
|
|
97
97
|
e?.initialValue ?? []
|
|
98
98
|
), [l, g] = j([]), i = l.length > 0 && l.length == s?.length, y = s?.length > 0 && s.length < l.length;
|
|
99
99
|
G(() => {
|
|
100
|
-
g(c(
|
|
101
|
-
}, [
|
|
102
|
-
|
|
100
|
+
g(c(t?.options));
|
|
101
|
+
}, [t?.options]), G(() => {
|
|
102
|
+
r(s);
|
|
103
103
|
}, [s]);
|
|
104
104
|
const c = (F) => {
|
|
105
105
|
const v = [];
|
|
@@ -107,11 +107,11 @@ const vt = (e) => {
|
|
|
107
107
|
v.push(V.value);
|
|
108
108
|
}), v;
|
|
109
109
|
}, u = (F) => {
|
|
110
|
-
|
|
110
|
+
r(F.target.checked ? l : []), f.setFieldValue(e?.name, F.target.checked ? l : []);
|
|
111
111
|
}, Y = (F) => {
|
|
112
|
-
|
|
112
|
+
r(F), f.setFieldValue(e?.name, F), t?.onChange && typeof t?.onChange == "function" && t?.onChange(F);
|
|
113
113
|
};
|
|
114
|
-
return /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */
|
|
114
|
+
return /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ P(se, { theme: {
|
|
115
115
|
components: {
|
|
116
116
|
Checkbox: {
|
|
117
117
|
colorPrimary: "var(--check-primary)",
|
|
@@ -120,7 +120,7 @@ const vt = (e) => {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
}, children: [
|
|
123
|
-
|
|
123
|
+
t?.allCheck && /* @__PURE__ */ a(
|
|
124
124
|
ue,
|
|
125
125
|
{
|
|
126
126
|
indeterminate: y,
|
|
@@ -132,7 +132,7 @@ const vt = (e) => {
|
|
|
132
132
|
/* @__PURE__ */ a(
|
|
133
133
|
ue.Group,
|
|
134
134
|
{
|
|
135
|
-
options:
|
|
135
|
+
options: t?.options,
|
|
136
136
|
value: s,
|
|
137
137
|
onChange: Y
|
|
138
138
|
}
|
|
@@ -149,11 +149,11 @@ const vt = (e) => {
|
|
|
149
149
|
}
|
|
150
150
|
}, _t = ({
|
|
151
151
|
itemProps: e,
|
|
152
|
-
inputProps:
|
|
152
|
+
inputProps: t,
|
|
153
153
|
type: f = "date",
|
|
154
154
|
returnType: s = "string"
|
|
155
155
|
}) => {
|
|
156
|
-
const { displayFormat:
|
|
156
|
+
const { displayFormat: r, outputFormat: l } = Q(
|
|
157
157
|
() => pe[f],
|
|
158
158
|
[f]
|
|
159
159
|
), g = Q(
|
|
@@ -179,23 +179,23 @@ const vt = (e) => {
|
|
|
179
179
|
children: /* @__PURE__ */ a(
|
|
180
180
|
ie,
|
|
181
181
|
{
|
|
182
|
-
...
|
|
182
|
+
...t,
|
|
183
183
|
picker: f === "datetime" ? "date" : f,
|
|
184
|
-
showTime:
|
|
185
|
-
format:
|
|
184
|
+
showTime: t?.showTime ?? (f === "datetime" || f === "time"),
|
|
185
|
+
format: t?.format ?? r
|
|
186
186
|
}
|
|
187
187
|
)
|
|
188
188
|
}
|
|
189
189
|
);
|
|
190
190
|
}, Dt = ({
|
|
191
191
|
fileGrpKey: e,
|
|
192
|
-
onFetchFilesTrxCd:
|
|
192
|
+
onFetchFilesTrxCd: t = "SCMFILE00101",
|
|
193
193
|
readOnly: f = !1,
|
|
194
194
|
appCd: s = __APP_CD__
|
|
195
195
|
}) => {
|
|
196
|
-
const [
|
|
196
|
+
const [r, l] = j([]);
|
|
197
197
|
G(() => {
|
|
198
|
-
if (
|
|
198
|
+
if (t)
|
|
199
199
|
if (s != __APP_CD__) {
|
|
200
200
|
const y = he().findSystemByAppCd?.(s ?? __APP_CD__);
|
|
201
201
|
if (!y || !y.sysCd) {
|
|
@@ -203,7 +203,7 @@ const vt = (e) => {
|
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
205
|
We(
|
|
206
|
-
{ trxCd:
|
|
206
|
+
{ trxCd: t, appCd: s },
|
|
207
207
|
{
|
|
208
208
|
crprCd: qe(),
|
|
209
209
|
sysCd: y.sysCd,
|
|
@@ -222,7 +222,7 @@ const vt = (e) => {
|
|
|
222
222
|
console.error("파일 목록 조회 서비스 호출에 실패했습니다.", c), z.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
|
|
223
223
|
});
|
|
224
224
|
} else
|
|
225
|
-
J(
|
|
225
|
+
J(t, {
|
|
226
226
|
crprCd: te()?.crprCd,
|
|
227
227
|
sysCd: __SYS_CD__,
|
|
228
228
|
fileGrpKey: e
|
|
@@ -240,7 +240,7 @@ const vt = (e) => {
|
|
|
240
240
|
});
|
|
241
241
|
else
|
|
242
242
|
l([]);
|
|
243
|
-
}, [e,
|
|
243
|
+
}, [e, t, s]);
|
|
244
244
|
const g = async (i) => {
|
|
245
245
|
try {
|
|
246
246
|
const c = he().findSystemByAppCd?.(s ?? __APP_CD__);
|
|
@@ -276,7 +276,7 @@ const vt = (e) => {
|
|
|
276
276
|
return /* @__PURE__ */ a(Ve, { title: "파일 목록", children: /* @__PURE__ */ a(
|
|
277
277
|
re,
|
|
278
278
|
{
|
|
279
|
-
dataSource:
|
|
279
|
+
dataSource: r,
|
|
280
280
|
renderItem: (i) => /* @__PURE__ */ a(
|
|
281
281
|
re.Item,
|
|
282
282
|
{
|
|
@@ -297,7 +297,7 @@ const vt = (e) => {
|
|
|
297
297
|
}
|
|
298
298
|
) });
|
|
299
299
|
}, nt = Be(
|
|
300
|
-
({ children: e, labelCol:
|
|
300
|
+
({ children: e, labelCol: t, style: f, className: s, ...r }, l) => /* @__PURE__ */ a(
|
|
301
301
|
se,
|
|
302
302
|
{
|
|
303
303
|
form: {
|
|
@@ -311,9 +311,9 @@ const vt = (e) => {
|
|
|
311
311
|
E,
|
|
312
312
|
{
|
|
313
313
|
ref: l,
|
|
314
|
-
...
|
|
314
|
+
...r,
|
|
315
315
|
requiredMark: !1,
|
|
316
|
-
labelCol:
|
|
316
|
+
labelCol: t || { flex: "100px" },
|
|
317
317
|
style: { padding: "10px", ...f },
|
|
318
318
|
className: `bwg-form ${s ?? ""}`,
|
|
319
319
|
children: e
|
|
@@ -323,7 +323,7 @@ const vt = (e) => {
|
|
|
323
323
|
)
|
|
324
324
|
);
|
|
325
325
|
nt.displayName = "BwgForm";
|
|
326
|
-
const Et = ({ itemProps: e, inputProps:
|
|
326
|
+
const Et = ({ itemProps: e, inputProps: t }) => /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(q, { ...t }) }), { Text: oe } = be, { Dragger: at } = Z, ot = [
|
|
327
327
|
".pdf",
|
|
328
328
|
".xlsx",
|
|
329
329
|
".xls",
|
|
@@ -341,17 +341,17 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
341
341
|
".gif",
|
|
342
342
|
// 압축
|
|
343
343
|
".zip"
|
|
344
|
-
], lt = (e,
|
|
344
|
+
], lt = (e, t = 2) => {
|
|
345
345
|
if (e === 0) return "0 Bytes";
|
|
346
|
-
const f = 1024, s =
|
|
347
|
-
return parseFloat((e / Math.pow(f, l)).toFixed(s)) + " " +
|
|
346
|
+
const f = 1024, s = t < 0 ? 0 : t, r = ["Bytes", "KB", "MB", "GB", "TB"], l = Math.floor(Math.log(e) / Math.log(f));
|
|
347
|
+
return parseFloat((e / Math.pow(f, l)).toFixed(s)) + " " + r[l];
|
|
348
348
|
}, xt = ({
|
|
349
349
|
title: e = "첨부파일",
|
|
350
|
-
fileGrpKey:
|
|
350
|
+
fileGrpKey: t,
|
|
351
351
|
onUploadComplete: f,
|
|
352
352
|
onSuccessTrxCd: s = "SCMFILE00102",
|
|
353
353
|
// BwgUploader와 동일한 기본 trxCd 설정
|
|
354
|
-
anotherServiceTrxCd:
|
|
354
|
+
anotherServiceTrxCd: r = "SCMFILE00105",
|
|
355
355
|
allowedExtensions: l = ot,
|
|
356
356
|
maxFileSize: g = 2048
|
|
357
357
|
// 기본값 2GB
|
|
@@ -452,12 +452,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
452
452
|
const O = {
|
|
453
453
|
crprCd: I?.crprCd,
|
|
454
454
|
sysCd: __SYS_CD__,
|
|
455
|
-
fileGrpKey:
|
|
455
|
+
fileGrpKey: t,
|
|
456
456
|
sub: [
|
|
457
457
|
{
|
|
458
458
|
crprCd: I?.crprCd,
|
|
459
459
|
sysCd: __SYS_CD__,
|
|
460
|
-
fileGrpKey:
|
|
460
|
+
fileGrpKey: t,
|
|
461
461
|
physFileNm: B.fileNameP,
|
|
462
462
|
lgclFileNm: B.fileNameL,
|
|
463
463
|
filePath: B.filePath,
|
|
@@ -478,7 +478,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
478
478
|
fileExtn: W.name.split(".").pop(),
|
|
479
479
|
fileType: W.type
|
|
480
480
|
}));
|
|
481
|
-
J(
|
|
481
|
+
J(r, {
|
|
482
482
|
// 파일 목록에 fileKey를 추가합니다.
|
|
483
483
|
sub: ee
|
|
484
484
|
});
|
|
@@ -531,7 +531,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
531
531
|
{
|
|
532
532
|
spinning: c || Y,
|
|
533
533
|
tip: Y ? "파일 압축 중..." : `파일 업로드 중... ${v}%`,
|
|
534
|
-
children: /* @__PURE__ */
|
|
534
|
+
children: /* @__PURE__ */ P("div", { className: "bwg-large-uploader-container", children: [
|
|
535
535
|
/* @__PURE__ */ a(
|
|
536
536
|
Ve,
|
|
537
537
|
{
|
|
@@ -556,7 +556,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
556
556
|
const L = h.status === "done", x = h.status === "error";
|
|
557
557
|
let $;
|
|
558
558
|
return L ? $ = /* @__PURE__ */ a(
|
|
559
|
-
|
|
559
|
+
Ke,
|
|
560
560
|
{
|
|
561
561
|
style: { color: "#52c41a", fontSize: 14 }
|
|
562
562
|
}
|
|
@@ -565,7 +565,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
565
565
|
{
|
|
566
566
|
title: typeof h.response == "string" ? h.response : "업로드 실패",
|
|
567
567
|
children: /* @__PURE__ */ a(
|
|
568
|
-
|
|
568
|
+
Pe,
|
|
569
569
|
{
|
|
570
570
|
style: { color: "#ff4d4f", fontSize: 14 }
|
|
571
571
|
}
|
|
@@ -601,7 +601,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
601
601
|
);
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
) : /* @__PURE__ */
|
|
604
|
+
) : /* @__PURE__ */ P(
|
|
605
605
|
ge,
|
|
606
606
|
{
|
|
607
607
|
gap: "middle",
|
|
@@ -619,7 +619,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
619
619
|
)
|
|
620
620
|
}
|
|
621
621
|
),
|
|
622
|
-
i.length > 0 && /* @__PURE__ */
|
|
622
|
+
i.length > 0 && /* @__PURE__ */ P(
|
|
623
623
|
ge,
|
|
624
624
|
{
|
|
625
625
|
justify: "flex-end",
|
|
@@ -650,8 +650,8 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
650
650
|
if (Array.isArray(e))
|
|
651
651
|
return e[0].replace(/0/g, "_");
|
|
652
652
|
if (typeof e == "object" && "mask" in e && "blocks" in e) {
|
|
653
|
-
const { mask:
|
|
654
|
-
return
|
|
653
|
+
const { mask: t, blocks: f } = e;
|
|
654
|
+
return t.split(".").map((s) => {
|
|
655
655
|
const l = f?.[s]?.maxLength ?? 3;
|
|
656
656
|
return "_".repeat(l);
|
|
657
657
|
}).join(".");
|
|
@@ -659,19 +659,19 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
659
659
|
return "";
|
|
660
660
|
}, Bt = ({
|
|
661
661
|
itemProps: e,
|
|
662
|
-
inputProps:
|
|
662
|
+
inputProps: t,
|
|
663
663
|
mask: f
|
|
664
664
|
}) => {
|
|
665
|
-
const s =
|
|
665
|
+
const s = K(null), r = E.useFormInstance(), l = Q(() => st(f), [f]);
|
|
666
666
|
return G(() => {
|
|
667
667
|
if (!s.current?.input) return;
|
|
668
668
|
const g = typeof f == "string" || Array.isArray(f) ? { mask: f } : f, i = le(s.current.input, g);
|
|
669
669
|
return i.on("accept", () => {
|
|
670
|
-
|
|
670
|
+
r && e?.name && r.setFieldValue(e.name, i.value);
|
|
671
671
|
}), () => {
|
|
672
672
|
i.destroy();
|
|
673
673
|
};
|
|
674
|
-
}, [f,
|
|
674
|
+
}, [f, r, e?.name]), /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(q, { ...t, ref: s, placeholder: l }) });
|
|
675
675
|
}, it = (e) => {
|
|
676
676
|
switch (e) {
|
|
677
677
|
case "year":
|
|
@@ -688,11 +688,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
688
688
|
}
|
|
689
689
|
}, Ot = ({
|
|
690
690
|
type: e = "date",
|
|
691
|
-
itemProps:
|
|
691
|
+
itemProps: t = { name: "calendar" },
|
|
692
692
|
inputProps: f,
|
|
693
693
|
pickerProps: s
|
|
694
694
|
}) => {
|
|
695
|
-
const { format:
|
|
695
|
+
const { format: r, mask: l, outputFormat: g } = it(e), i = K(null), y = K(null), c = K(null), u = E.useFormInstance(), [Y, F] = j(!1), [v, V] = j(!1), R = t?.name, [N, M] = j(null), h = E.useWatch(R, u), L = we();
|
|
696
696
|
G(() => {
|
|
697
697
|
if (!i.current?.input) return;
|
|
698
698
|
const o = le(i.current.input, {
|
|
@@ -702,12 +702,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
702
702
|
return y.current = o, o.on("accept", () => {
|
|
703
703
|
const C = o.value;
|
|
704
704
|
C.length > 0 && F(!0);
|
|
705
|
-
const w = _(C,
|
|
706
|
-
C.length ===
|
|
705
|
+
const w = _(C, r, !0);
|
|
706
|
+
C.length === r.length && w.isValid() && (u.setFieldValue(R, w.format(g)), M(w), y.current?.updateValue());
|
|
707
707
|
}), () => {
|
|
708
708
|
o.destroy();
|
|
709
709
|
};
|
|
710
|
-
}, [
|
|
710
|
+
}, [r, l]), G(() => {
|
|
711
711
|
if (!h) {
|
|
712
712
|
M(null);
|
|
713
713
|
return;
|
|
@@ -716,15 +716,15 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
716
716
|
if (typeof h == "string" && h.length === g.length && /^\d+$/.test(h))
|
|
717
717
|
if (e === "date") {
|
|
718
718
|
const C = h.substring(0, 4), w = h.substring(4, 6), I = h.substring(6, 8);
|
|
719
|
-
o = _(`${C}-${w}-${I}`,
|
|
719
|
+
o = _(`${C}-${w}-${I}`, r, !0);
|
|
720
720
|
} else if (e === "month") {
|
|
721
721
|
const C = h.substring(0, 4), w = h.substring(4, 6);
|
|
722
|
-
o = _(`${C}-${w}`,
|
|
723
|
-
} else e === "year" && (o = _(h,
|
|
722
|
+
o = _(`${C}-${w}`, r, !0);
|
|
723
|
+
} else e === "year" && (o = _(h, r, !0));
|
|
724
724
|
else
|
|
725
|
-
o = _(h,
|
|
725
|
+
o = _(h, r, !0);
|
|
726
726
|
o && o.isValid() ? M(o) : M(null), V(!1);
|
|
727
|
-
}, [h,
|
|
727
|
+
}, [h, r, g, e]);
|
|
728
728
|
const x = (o) => {
|
|
729
729
|
if (!o) {
|
|
730
730
|
u.setFieldValue(R, void 0), M(null), y.current?.updateValue();
|
|
@@ -732,7 +732,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
732
732
|
}
|
|
733
733
|
M(o);
|
|
734
734
|
const C = o.format(g);
|
|
735
|
-
u.setFieldValue(R, C), y.current && (y.current.value = o.format(
|
|
735
|
+
u.setFieldValue(R, C), y.current && (y.current.value = o.format(r), y.current.updateValue()), V(!1);
|
|
736
736
|
}, $ = (o) => {
|
|
737
737
|
setTimeout(() => {
|
|
738
738
|
const C = document.activeElement, w = c.current, I = w?.querySelector(".ant-picker-dropdown");
|
|
@@ -742,10 +742,10 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
742
742
|
return /* @__PURE__ */ a(
|
|
743
743
|
T,
|
|
744
744
|
{
|
|
745
|
-
...
|
|
745
|
+
...t,
|
|
746
746
|
name: void 0,
|
|
747
747
|
validateStatus: v ? "warning" : void 0,
|
|
748
|
-
children: /* @__PURE__ */
|
|
748
|
+
children: /* @__PURE__ */ P(
|
|
749
749
|
se,
|
|
750
750
|
{
|
|
751
751
|
componentSize: L.componentSize,
|
|
@@ -762,10 +762,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
762
762
|
{
|
|
763
763
|
name: R,
|
|
764
764
|
getValueProps: (o) => ({
|
|
765
|
-
value: o ? _(o).format(
|
|
765
|
+
value: o ? _(o).format(r) : void 0
|
|
766
766
|
}),
|
|
767
767
|
normalize: (o) => o ? _(o).format(g) : void 0,
|
|
768
768
|
noStyle: !0,
|
|
769
|
+
rules: t?.rules ?? [],
|
|
769
770
|
children: /* @__PURE__ */ a(
|
|
770
771
|
q,
|
|
771
772
|
{
|
|
@@ -780,8 +781,8 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
780
781
|
onKeyDown: (o) => {
|
|
781
782
|
if (o.key === "Backspace" && F(!0), o.key === "Tab" && F(!1), o.key === "Enter")
|
|
782
783
|
if (Y) {
|
|
783
|
-
const C = y.current?.value || "", w = _(C,
|
|
784
|
-
C.length ===
|
|
784
|
+
const C = y.current?.value || "", w = _(C, r, !0);
|
|
785
|
+
C.length === r.length && w.isValid() ? (F(!1), V(!1)) : V(!0);
|
|
785
786
|
} else
|
|
786
787
|
F(!0);
|
|
787
788
|
},
|
|
@@ -803,7 +804,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
803
804
|
open: Y,
|
|
804
805
|
picker: e,
|
|
805
806
|
format: {
|
|
806
|
-
format:
|
|
807
|
+
format: r,
|
|
807
808
|
type: "mask"
|
|
808
809
|
},
|
|
809
810
|
showNow: !0,
|
|
@@ -812,7 +813,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
812
813
|
onOpenChange: (o) => {
|
|
813
814
|
F(o), o || $(!1);
|
|
814
815
|
},
|
|
815
|
-
renderExtraFooter: () => v ? /* @__PURE__ */
|
|
816
|
+
renderExtraFooter: () => v ? /* @__PURE__ */ P(
|
|
816
817
|
"div",
|
|
817
818
|
{
|
|
818
819
|
style: {
|
|
@@ -863,11 +864,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
863
864
|
}
|
|
864
865
|
}, zt = ({
|
|
865
866
|
type: e = "date",
|
|
866
|
-
itemProps:
|
|
867
|
+
itemProps: t = { name: "dateRange" },
|
|
867
868
|
inputProps: f,
|
|
868
869
|
pickerProps: s
|
|
869
870
|
}) => {
|
|
870
|
-
const { format:
|
|
871
|
+
const { format: r, mask: l, outputFormat: g } = ut(e), i = K(null), y = K(null), c = K(null), u = K(null), Y = K(null), F = E.useFormInstance(), [v, V] = j(!1), [R, N] = j(!1), [M, h] = j(null), [L, x] = j(!1), $ = K(!1), o = t?.name, [C, w] = j([
|
|
871
872
|
null,
|
|
872
873
|
null
|
|
873
874
|
]), I = E.useWatch(
|
|
@@ -889,12 +890,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
889
890
|
maskValue: m,
|
|
890
891
|
unmaskedValue: p,
|
|
891
892
|
length: m.length,
|
|
892
|
-
formatLength:
|
|
893
|
+
formatLength: r.length
|
|
893
894
|
}), m.length > 0 && (h("start"), V(!0), x(!1)), p.length === g.length) {
|
|
894
|
-
const d = _(m,
|
|
895
|
+
const d = _(m, r, !0);
|
|
895
896
|
if (d.isValid()) {
|
|
896
897
|
console.log("🔵 [시작일] 입력 완료 및 검증 통과:", {
|
|
897
|
-
parsed: d.format(
|
|
898
|
+
parsed: d.format(r)
|
|
898
899
|
});
|
|
899
900
|
const A = d.format(g);
|
|
900
901
|
$.current = !0;
|
|
@@ -915,7 +916,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
915
916
|
}), () => {
|
|
916
917
|
n.destroy();
|
|
917
918
|
};
|
|
918
|
-
}, [
|
|
919
|
+
}, [r, l, o]), G(() => {
|
|
919
920
|
if (!y.current?.input) return;
|
|
920
921
|
const n = le(y.current.input, {
|
|
921
922
|
mask: l,
|
|
@@ -927,7 +928,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
927
928
|
maskValue: m,
|
|
928
929
|
unmaskedValue: p,
|
|
929
930
|
length: m.length,
|
|
930
|
-
formatLength:
|
|
931
|
+
formatLength: r.length
|
|
931
932
|
}), p === "" || p.length === 0) {
|
|
932
933
|
const d = Array.isArray(o) ? [...o, 1] : [o, 1];
|
|
933
934
|
F.setFieldValue(d, void 0), w([C[0], null]), u.current && (u.current.value = "", u.current.updateValue()), setTimeout(() => {
|
|
@@ -935,16 +936,16 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
935
936
|
}, 0);
|
|
936
937
|
return;
|
|
937
938
|
}
|
|
938
|
-
if (m.length > 0 && (h("end"), V(!0)), m.length <
|
|
939
|
+
if (m.length > 0 && (h("end"), V(!0)), m.length < r.length) {
|
|
939
940
|
N(!1);
|
|
940
941
|
return;
|
|
941
942
|
}
|
|
942
943
|
if (p.length === g.length) {
|
|
943
|
-
const d = _(m,
|
|
944
|
+
const d = _(m, r, !0);
|
|
944
945
|
if (d.isValid()) {
|
|
945
946
|
const A = d.format(g);
|
|
946
947
|
console.log("🟢 [종료일] 입력 완료:", {
|
|
947
|
-
parsed: d.format(
|
|
948
|
+
parsed: d.format(r),
|
|
948
949
|
formatted: A
|
|
949
950
|
}), $.current = !0;
|
|
950
951
|
const k = Array.isArray(o) ? [...o, 1] : [o, 1];
|
|
@@ -957,7 +958,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
957
958
|
}), () => {
|
|
958
959
|
n.destroy();
|
|
959
960
|
};
|
|
960
|
-
}, [
|
|
961
|
+
}, [r, l, o]), G(() => {
|
|
961
962
|
console.log("🟡 [useEffect] form 값 변경 감지:", {
|
|
962
963
|
startFormValue: I,
|
|
963
964
|
endFormValue: B,
|
|
@@ -974,25 +975,25 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
974
975
|
if (typeof k == "string" && k.length === g.length && /^\d+$/.test(k))
|
|
975
976
|
if (e === "date") {
|
|
976
977
|
const S = k.substring(0, 4), D = k.substring(4, 6), H = k.substring(6, 8);
|
|
977
|
-
b = _(`${S}-${D}-${H}`,
|
|
978
|
+
b = _(`${S}-${D}-${H}`, r, !0);
|
|
978
979
|
} else if (e === "month") {
|
|
979
980
|
const S = k.substring(0, 4), D = k.substring(4, 6);
|
|
980
|
-
b = _(`${S}-${D}`,
|
|
981
|
-
} else e === "year" && (b = _(k,
|
|
981
|
+
b = _(`${S}-${D}`, r, !0);
|
|
982
|
+
} else e === "year" && (b = _(k, r, !0));
|
|
982
983
|
else
|
|
983
|
-
b = _(k,
|
|
984
|
+
b = _(k, r, !0);
|
|
984
985
|
return b && b.isValid() ? b : null;
|
|
985
986
|
}, d = p(n), A = p(m);
|
|
986
987
|
if (console.log("🟡 [useEffect] 파싱 결과:", {
|
|
987
|
-
startParsed: d ? d.format(
|
|
988
|
-
endParsed: A ? A.format(
|
|
988
|
+
startParsed: d ? d.format(r) : null,
|
|
989
|
+
endParsed: A ? A.format(r) : null,
|
|
989
990
|
isStartDateFromPicker: L
|
|
990
991
|
}), w([d, A]), $.current) {
|
|
991
992
|
console.log("🟡 [useEffect] 사용자 입력 중 - 마스크 값 업데이트 스킵"), N(!1);
|
|
992
993
|
return;
|
|
993
994
|
}
|
|
994
995
|
if (!L && c.current) {
|
|
995
|
-
const k = c.current.value || "", b = d ? d.format(
|
|
996
|
+
const k = c.current.value || "", b = d ? d.format(r) : "", S = c.current.unmaskedValue || "", D = d ? d.format(g) : "";
|
|
996
997
|
console.log("🟡 [useEffect] 시작일 마스크 값 체크:", {
|
|
997
998
|
currentMaskValue: k,
|
|
998
999
|
expectedMaskValue: b,
|
|
@@ -1002,13 +1003,13 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1002
1003
|
canUpdate: S === "" || S === D
|
|
1003
1004
|
}), (k === "" || k !== b) && (S === "" || S === D ? (console.log("🟡 [useEffect] 시작일 마스크 값 업데이트:", {
|
|
1004
1005
|
before: k,
|
|
1005
|
-
after: d ? d.format(
|
|
1006
|
-
}), d ? (c.current.value = d.format(
|
|
1006
|
+
after: d ? d.format(r) : ""
|
|
1007
|
+
}), d ? (c.current.value = d.format(r), c.current.updateValue()) : (c.current.value = "", c.current.updateValue())) : console.log(
|
|
1007
1008
|
"🟡 [useEffect] 시작일 마스크 값 업데이트 스킵 (사용자 입력 중)"
|
|
1008
1009
|
));
|
|
1009
1010
|
}
|
|
1010
1011
|
if (u.current) {
|
|
1011
|
-
const k = u.current.value || "", b = A ? A.format(
|
|
1012
|
+
const k = u.current.value || "", b = A ? A.format(r) : "", S = u.current.unmaskedValue || "", D = A ? A.format(g) : "";
|
|
1012
1013
|
console.log("🟡 [useEffect] 종료일 마스크 값 체크:", {
|
|
1013
1014
|
currentMaskValue: k,
|
|
1014
1015
|
expectedMaskValue: b,
|
|
@@ -1019,21 +1020,21 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1019
1020
|
}), (k === "" || k !== b) && (S === "" || S === D ? (console.log("🟡 [useEffect] 종료일 마스크 값 업데이트:", {
|
|
1020
1021
|
before: k,
|
|
1021
1022
|
after: b
|
|
1022
|
-
}), A ? (u.current.value = A.format(
|
|
1023
|
+
}), A ? (u.current.value = A.format(r), u.current.updateValue()) : (u.current.value = "", u.current.updateValue())) : console.log(
|
|
1023
1024
|
"🟡 [useEffect] 종료일 마스크 값 업데이트 스킵 (사용자 입력 중)"
|
|
1024
1025
|
));
|
|
1025
1026
|
}
|
|
1026
1027
|
N(!1);
|
|
1027
|
-
}, [I, B, O,
|
|
1028
|
+
}, [I, B, O, r, g, e]);
|
|
1028
1029
|
const ee = (n) => {
|
|
1029
1030
|
if (console.log("🔴 [RangePicker] 날짜 변경:", {
|
|
1030
1031
|
dates: n ? [
|
|
1031
|
-
n[0] ? n[0].format(
|
|
1032
|
-
n[1] ? n[1].format(
|
|
1032
|
+
n[0] ? n[0].format(r) : null,
|
|
1033
|
+
n[1] ? n[1].format(r) : null
|
|
1033
1034
|
] : null,
|
|
1034
1035
|
prevRange: [
|
|
1035
|
-
C[0] ? C[0].format(
|
|
1036
|
-
C[1] ? C[1].format(
|
|
1036
|
+
C[0] ? C[0].format(r) : null,
|
|
1037
|
+
C[1] ? C[1].format(r) : null
|
|
1037
1038
|
]
|
|
1038
1039
|
}), !n) {
|
|
1039
1040
|
w([null, null]);
|
|
@@ -1047,8 +1048,8 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1047
1048
|
));
|
|
1048
1049
|
if (console.log("🔴 [RangePicker] 시작일 변경 여부:", {
|
|
1049
1050
|
isStartDateChanged: A,
|
|
1050
|
-
startDate: m ? m.format(
|
|
1051
|
-
prevStartDate: d ? d.format(
|
|
1051
|
+
startDate: m ? m.format(r) : null,
|
|
1052
|
+
prevStartDate: d ? d.format(r) : null
|
|
1052
1053
|
}), w([m, p]), A) {
|
|
1053
1054
|
console.log("🔴 [RangePicker] 시작일 선택됨 - input 비우기"), x(!0), c.current && (c.current.value = "", c.current.updateValue());
|
|
1054
1055
|
const b = m.format(g);
|
|
@@ -1066,7 +1067,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1066
1067
|
const k = Array.isArray(o) ? [...o, 1] : [o, 1];
|
|
1067
1068
|
if (p) {
|
|
1068
1069
|
const b = p.format(g);
|
|
1069
|
-
F.setFieldValue(k, b), u.current && (u.current.value = p.format(
|
|
1070
|
+
F.setFieldValue(k, b), u.current && (u.current.value = p.format(r), u.current.updateValue());
|
|
1070
1071
|
} else
|
|
1071
1072
|
F.setFieldValue(k, void 0), u.current && (u.current.value = "", u.current.updateValue());
|
|
1072
1073
|
N(!1);
|
|
@@ -1079,10 +1080,10 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1079
1080
|
return /* @__PURE__ */ a(
|
|
1080
1081
|
T,
|
|
1081
1082
|
{
|
|
1082
|
-
...
|
|
1083
|
+
...t,
|
|
1083
1084
|
name: void 0,
|
|
1084
1085
|
validateStatus: R ? "warning" : void 0,
|
|
1085
|
-
children: /* @__PURE__ */
|
|
1086
|
+
children: /* @__PURE__ */ P(
|
|
1086
1087
|
se,
|
|
1087
1088
|
{
|
|
1088
1089
|
componentSize: U.componentSize,
|
|
@@ -1094,7 +1095,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1094
1095
|
}
|
|
1095
1096
|
},
|
|
1096
1097
|
children: [
|
|
1097
|
-
/* @__PURE__ */
|
|
1098
|
+
/* @__PURE__ */ P(
|
|
1098
1099
|
"div",
|
|
1099
1100
|
{
|
|
1100
1101
|
ref: Y,
|
|
@@ -1121,10 +1122,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1121
1122
|
} else if (e === "year")
|
|
1122
1123
|
return { value: n };
|
|
1123
1124
|
}
|
|
1124
|
-
return { value: _(n).format(
|
|
1125
|
+
return { value: _(n).format(r) };
|
|
1125
1126
|
},
|
|
1126
1127
|
normalize: (n) => n ? _(n).format(g) : (s?.allowEmpty, void 0),
|
|
1127
1128
|
noStyle: !0,
|
|
1129
|
+
rules: t?.rules ?? [],
|
|
1128
1130
|
children: /* @__PURE__ */ a(
|
|
1129
1131
|
q,
|
|
1130
1132
|
{
|
|
@@ -1144,7 +1146,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1144
1146
|
if (n.key === "Backspace" && (h("start"), V(!0)), n.key === "Enter")
|
|
1145
1147
|
if (v && M === "start") {
|
|
1146
1148
|
const m = c.current?.value || "";
|
|
1147
|
-
m.length ===
|
|
1149
|
+
m.length === r.length ? _(m, r, !0).isValid() ? (V(!1), N(!1)) : s?.allowEmpty ? N(!1) : N(!0) : N(!1);
|
|
1148
1150
|
} else
|
|
1149
1151
|
h("start"), V(!0);
|
|
1150
1152
|
},
|
|
@@ -1176,10 +1178,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1176
1178
|
} else if (e === "year")
|
|
1177
1179
|
return { value: n };
|
|
1178
1180
|
}
|
|
1179
|
-
return { value: _(n).format(
|
|
1181
|
+
return { value: _(n).format(r) };
|
|
1180
1182
|
},
|
|
1181
1183
|
normalize: (n) => n ? _(n).format(g) : (s?.allowEmpty, void 0),
|
|
1182
1184
|
noStyle: !0,
|
|
1185
|
+
rules: t?.rules ?? [],
|
|
1183
1186
|
children: /* @__PURE__ */ a(
|
|
1184
1187
|
q,
|
|
1185
1188
|
{
|
|
@@ -1211,7 +1214,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1211
1214
|
if (n.key === "Tab" && V(!1), n.key === "Enter")
|
|
1212
1215
|
if (v && M === "end") {
|
|
1213
1216
|
const m = u.current?.value || "";
|
|
1214
|
-
m.length ===
|
|
1217
|
+
m.length === r.length ? _(m, r, !0).isValid() ? (V(!1), N(!1)) : s?.allowEmpty ? N(!1) : N(!0) : N(!1);
|
|
1215
1218
|
} else
|
|
1216
1219
|
h("end"), V(!0);
|
|
1217
1220
|
},
|
|
@@ -1242,7 +1245,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1242
1245
|
open: v,
|
|
1243
1246
|
picker: e,
|
|
1244
1247
|
format: {
|
|
1245
|
-
format:
|
|
1248
|
+
format: r,
|
|
1246
1249
|
type: "mask"
|
|
1247
1250
|
},
|
|
1248
1251
|
showNow: !0,
|
|
@@ -1251,7 +1254,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1251
1254
|
onOpenChange: (n) => {
|
|
1252
1255
|
V(n), n || W(!1);
|
|
1253
1256
|
},
|
|
1254
|
-
renderExtraFooter: () => R ? /* @__PURE__ */
|
|
1257
|
+
renderExtraFooter: () => R ? /* @__PURE__ */ P(
|
|
1255
1258
|
"div",
|
|
1256
1259
|
{
|
|
1257
1260
|
style: {
|
|
@@ -1286,46 +1289,46 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1286
1289
|
)
|
|
1287
1290
|
}
|
|
1288
1291
|
);
|
|
1289
|
-
}, { Option: ye } = fe, $t = ({ itemProps: e, inputProps:
|
|
1292
|
+
}, { Option: ye } = fe, $t = ({ itemProps: e, inputProps: t }) => {
|
|
1290
1293
|
const [f, s] = j([]);
|
|
1291
1294
|
return G(() => {
|
|
1292
|
-
|
|
1295
|
+
t?.addField === "ALL" ? s([
|
|
1293
1296
|
{ label: "전체", value: "" },
|
|
1294
|
-
...
|
|
1295
|
-
]) :
|
|
1296
|
-
}, [
|
|
1297
|
+
...t?.list || []
|
|
1298
|
+
]) : t?.addField === "NULL" ? s([{ label: "", value: "" }, ...t?.list || []]) : s(t?.list || []);
|
|
1299
|
+
}, [t?.list]), /* @__PURE__ */ a(
|
|
1297
1300
|
T,
|
|
1298
1301
|
{
|
|
1299
1302
|
...e,
|
|
1300
|
-
getValueProps: (
|
|
1301
|
-
value:
|
|
1303
|
+
getValueProps: (r) => r ? {
|
|
1304
|
+
value: r && r.indexOf(",") > 0 ? r.split(",") : [r]
|
|
1302
1305
|
} : {
|
|
1303
1306
|
value: []
|
|
1304
1307
|
},
|
|
1305
|
-
normalize: (
|
|
1306
|
-
children: /* @__PURE__ */ a(fe, { ...
|
|
1307
|
-
const { value: l, label: g } =
|
|
1308
|
-
return
|
|
1308
|
+
normalize: (r) => r != null && r != null && r.length > 0 ? r.toString() : "",
|
|
1309
|
+
children: /* @__PURE__ */ a(fe, { ...t, mode: "multiple", children: f.map((r) => {
|
|
1310
|
+
const { value: l, label: g } = r;
|
|
1311
|
+
return t?.printCode ? /* @__PURE__ */ a(ye, { value: l, label: g, children: /* @__PURE__ */ a(ae, { children: `[${l}] ${g}` }) }, l) : /* @__PURE__ */ a(ye, { value: l, label: g, children: /* @__PURE__ */ a(ae, { children: `${g}` }) }, l);
|
|
1309
1312
|
}) })
|
|
1310
1313
|
}
|
|
1311
1314
|
);
|
|
1312
|
-
}, Rt = ({ itemProps: e, inputProps:
|
|
1313
|
-
const f = (
|
|
1314
|
-
let l =
|
|
1315
|
-
return
|
|
1316
|
-
}, s = (
|
|
1317
|
-
let l =
|
|
1318
|
-
return
|
|
1315
|
+
}, Rt = ({ itemProps: e, inputProps: t }) => {
|
|
1316
|
+
const f = (r) => {
|
|
1317
|
+
let l = r.toString().split(".");
|
|
1318
|
+
return t?.decimalPoint != null && l[1] != null && t?.decimalPoint > 0 ? l[1].length > t?.decimalPoint ? l[1] = "." + l[1].substring(0, t?.decimalPoint) : l[1] = "." + l[1] : l[1] = "", l[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",") + l[1];
|
|
1319
|
+
}, s = (r) => {
|
|
1320
|
+
let l = r.toString().split(".");
|
|
1321
|
+
return t?.decimalPoint != null && l[1] != null && t?.decimalPoint > 0 ? l[1].length > t?.decimalPoint ? l[1] = "." + l[1].substring(0, t?.decimalPoint) : l[1] = "." + l[1] : l[1] = "", l[0].replace(/\$\s?|(,*)/g, "") + l[1];
|
|
1319
1322
|
};
|
|
1320
1323
|
return /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(
|
|
1321
1324
|
_e,
|
|
1322
1325
|
{
|
|
1323
|
-
...
|
|
1324
|
-
formatter: (
|
|
1325
|
-
parser: (
|
|
1326
|
+
...t,
|
|
1327
|
+
formatter: (r) => f(r),
|
|
1328
|
+
parser: (r) => s(r)
|
|
1326
1329
|
}
|
|
1327
1330
|
) });
|
|
1328
|
-
}, Ut = ({ itemProps: e, inputProps:
|
|
1331
|
+
}, Ut = ({ itemProps: e, inputProps: t }) => /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(De.Group, { ...t }) }), { RangePicker: dt } = ie, Fe = {
|
|
1329
1332
|
year: { displayFormat: "YYYY", outputFormat: "YYYY" },
|
|
1330
1333
|
month: { displayFormat: "YYYY-MM", outputFormat: "YYYYMM" },
|
|
1331
1334
|
date: { displayFormat: "YYYY-MM-DD", outputFormat: "YYYYMMDD" },
|
|
@@ -1336,10 +1339,10 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1336
1339
|
}
|
|
1337
1340
|
}, Tt = ({
|
|
1338
1341
|
itemProps: e,
|
|
1339
|
-
inputProps:
|
|
1342
|
+
inputProps: t,
|
|
1340
1343
|
type: f = "date",
|
|
1341
1344
|
minDate: s,
|
|
1342
|
-
maxDate:
|
|
1345
|
+
maxDate: r,
|
|
1343
1346
|
returnType: l = "string"
|
|
1344
1347
|
}) => {
|
|
1345
1348
|
const { displayFormat: g, outputFormat: i } = Q(
|
|
@@ -1374,33 +1377,33 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1374
1377
|
children: /* @__PURE__ */ a(
|
|
1375
1378
|
dt,
|
|
1376
1379
|
{
|
|
1377
|
-
...
|
|
1380
|
+
...t,
|
|
1378
1381
|
order: !0,
|
|
1379
1382
|
minDate: s ? _(s, y) : void 0,
|
|
1380
|
-
maxDate:
|
|
1383
|
+
maxDate: r ? _(r, y) : void 0,
|
|
1381
1384
|
picker: f === "datetime" ? "date" : f,
|
|
1382
|
-
showTime:
|
|
1385
|
+
showTime: t?.showTime ?? (f === "datetime" || f === "time"),
|
|
1383
1386
|
format: g
|
|
1384
1387
|
}
|
|
1385
1388
|
)
|
|
1386
1389
|
}
|
|
1387
1390
|
);
|
|
1388
1391
|
}, Ce = q.Search, jt = (e) => {
|
|
1389
|
-
const
|
|
1392
|
+
const t = E.useFormInstance(), { openPopup: f } = $e(), s = e.itemProps?.name || [], r = e.popupConfig || {
|
|
1390
1393
|
callback(g) {
|
|
1391
|
-
Array.isArray(s) && s.length > 1 ? (
|
|
1394
|
+
Array.isArray(s) && s.length > 1 ? (t.setFieldValue(s[0], g.code), t.setFieldValue(s[1], g.name)) : t.setFieldValue(s, g.code);
|
|
1392
1395
|
}
|
|
1393
1396
|
}, l = {
|
|
1394
1397
|
...e,
|
|
1395
1398
|
placeholder: typeof e.placeholder == "string" ? e.placeholder : e.placeholder?.[0] || "",
|
|
1396
1399
|
onChange: (g) => {
|
|
1397
|
-
Array.isArray(s) && s.length > 1 &&
|
|
1400
|
+
Array.isArray(s) && s.length > 1 && t.setFieldValue(s[0], ""), e.onChange?.(g);
|
|
1398
1401
|
},
|
|
1399
1402
|
onSearch: (g) => {
|
|
1400
|
-
e.popuCd ? f(e.popuCd, e.popupParams,
|
|
1403
|
+
e.popuCd ? f(e.popuCd, e.popupParams, r) : e.onSearch?.(g);
|
|
1401
1404
|
}
|
|
1402
1405
|
};
|
|
1403
|
-
return Array.isArray(s) && s.length > 1 ? /* @__PURE__ */ a(T, { ...e.itemProps, name: void 0, children: /* @__PURE__ */
|
|
1406
|
+
return Array.isArray(s) && s.length > 1 ? /* @__PURE__ */ a(T, { ...e.itemProps, name: void 0, children: /* @__PURE__ */ P(ae.Compact, { block: !0, children: [
|
|
1404
1407
|
/* @__PURE__ */ a(
|
|
1405
1408
|
E.Item,
|
|
1406
1409
|
{
|
|
@@ -1436,23 +1439,23 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1436
1439
|
] }) }) : /* @__PURE__ */ a(T, { ...e.itemProps, children: /* @__PURE__ */ a(Ce, { ...l }) });
|
|
1437
1440
|
}, Ht = ({
|
|
1438
1441
|
itemProps: e,
|
|
1439
|
-
selectProps:
|
|
1442
|
+
selectProps: t = {
|
|
1440
1443
|
options: [],
|
|
1441
1444
|
allowClear: !0
|
|
1442
1445
|
}
|
|
1443
1446
|
}) => {
|
|
1444
|
-
const f = E.useFormInstance(), s = !!f,
|
|
1445
|
-
|
|
1447
|
+
const f = E.useFormInstance(), s = !!f, r = Q(() => t?.addField === "ALL" ? [{ label: "전체", value: "" }, ...t?.options || []] : t?.addField === "NULL" ? [{ label: "", value: "" }, ...t?.options || []] : t?.options || [], [t.options, t.addField]), l = (y) => {
|
|
1448
|
+
t.onChange?.(y);
|
|
1446
1449
|
}, g = {
|
|
1447
|
-
...
|
|
1448
|
-
allowClear:
|
|
1449
|
-
options:
|
|
1450
|
+
...t,
|
|
1451
|
+
allowClear: t.allowClear ?? !0,
|
|
1452
|
+
options: r,
|
|
1450
1453
|
onChange: l,
|
|
1451
|
-
variant:
|
|
1452
|
-
}, i = /* @__PURE__ */ a(fe, { ...g, disabled:
|
|
1453
|
-
return
|
|
1454
|
+
variant: t.variant
|
|
1455
|
+
}, i = /* @__PURE__ */ a(fe, { ...g, disabled: t.disabled });
|
|
1456
|
+
return t.copyable && !s && console.warn(
|
|
1454
1457
|
"BwgSelect: copyable 기능은 Form 컨텍스트 내에서만 사용 가능합니다."
|
|
1455
|
-
),
|
|
1458
|
+
), t.copyable ? /* @__PURE__ */ a(T, { ...e, name: void 0, children: /* @__PURE__ */ P(ae.Compact, { block: !0, children: [
|
|
1456
1459
|
/* @__PURE__ */ a(
|
|
1457
1460
|
E.Item,
|
|
1458
1461
|
{
|
|
@@ -1486,25 +1489,25 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1486
1489
|
}
|
|
1487
1490
|
)
|
|
1488
1491
|
] }) }) : /* @__PURE__ */ a(T, { ...e, children: i });
|
|
1489
|
-
},
|
|
1492
|
+
}, Kt = ({
|
|
1490
1493
|
itemProps: e,
|
|
1491
|
-
inputProps:
|
|
1494
|
+
inputProps: t = {
|
|
1492
1495
|
format: "YN"
|
|
1493
1496
|
}
|
|
1494
1497
|
}) => {
|
|
1495
|
-
const f = E.useFormInstance(), s = (
|
|
1496
|
-
|
|
1498
|
+
const f = E.useFormInstance(), s = (r, l) => {
|
|
1499
|
+
t.format === "boolean" ? f.setFieldValue(e?.name, r) : f.setFieldValue(e?.name, r ? "Y" : "N"), t.onChange && t.onChange(r, l);
|
|
1497
1500
|
};
|
|
1498
1501
|
return /* @__PURE__ */ a(
|
|
1499
1502
|
T,
|
|
1500
1503
|
{
|
|
1501
1504
|
...e,
|
|
1502
|
-
getValueProps: (
|
|
1503
|
-
normalize: (
|
|
1504
|
-
children: /* @__PURE__ */ a(Ee, { ...
|
|
1505
|
+
getValueProps: (r) => ({ checked: t.format === "boolean" ? !!r : r === "Y" }),
|
|
1506
|
+
normalize: (r) => typeof r == "boolean" ? t.format === "boolean" ? r : r ? "Y" : "N" : t.format === "boolean" ? !!r : r ? "Y" : "N",
|
|
1507
|
+
children: /* @__PURE__ */ a(Ee, { ...t, onChange: (r, l) => s(r, l) })
|
|
1505
1508
|
}
|
|
1506
1509
|
);
|
|
1507
|
-
}, { TextArea: ft } = q,
|
|
1510
|
+
}, { TextArea: ft } = q, Pt = ({ itemProps: e, inputProps: t }) => /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(ft, { ...t }) }), mt = [
|
|
1508
1511
|
".pdf",
|
|
1509
1512
|
".xlsx",
|
|
1510
1513
|
".xls",
|
|
@@ -1526,12 +1529,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1526
1529
|
FILE: "file"
|
|
1527
1530
|
}, gt = ({
|
|
1528
1531
|
originNode: e,
|
|
1529
|
-
file:
|
|
1532
|
+
file: t,
|
|
1530
1533
|
fileList: f,
|
|
1531
1534
|
moveFile: s,
|
|
1532
|
-
onDrop:
|
|
1535
|
+
onDrop: r
|
|
1533
1536
|
}) => {
|
|
1534
|
-
const l =
|
|
1537
|
+
const l = K(null), [{ handlerId: g }, i] = et({
|
|
1535
1538
|
accept: Ye.FILE,
|
|
1536
1539
|
collect: (Y) => ({
|
|
1537
1540
|
handlerId: Y.getHandlerId()
|
|
@@ -1539,7 +1542,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1539
1542
|
hover(Y, F) {
|
|
1540
1543
|
if (!l.current)
|
|
1541
1544
|
return;
|
|
1542
|
-
const v = Y.uid, V =
|
|
1545
|
+
const v = Y.uid, V = t.uid;
|
|
1543
1546
|
if (v === V)
|
|
1544
1547
|
return;
|
|
1545
1548
|
const R = ne(f, { uid: V }), N = ne(f, { uid: v });
|
|
@@ -1552,13 +1555,13 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1552
1555
|
N < R && x < L || N > R && x > L || s(v, V);
|
|
1553
1556
|
},
|
|
1554
1557
|
drop() {
|
|
1555
|
-
|
|
1558
|
+
r();
|
|
1556
1559
|
}
|
|
1557
1560
|
}), [{ isDragging: y }, c] = tt({
|
|
1558
1561
|
type: Ye.FILE,
|
|
1559
1562
|
item: () => ({
|
|
1560
|
-
uid:
|
|
1561
|
-
index: ne(f, { uid:
|
|
1563
|
+
uid: t.uid,
|
|
1564
|
+
index: ne(f, { uid: t.uid })
|
|
1562
1565
|
}),
|
|
1563
1566
|
collect: (Y) => ({
|
|
1564
1567
|
isDragging: Y.isDragging()
|
|
@@ -1567,10 +1570,10 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1567
1570
|
return c(i(l)), /* @__PURE__ */ a("div", { ref: l, style: { opacity: u }, "data-handler-id": g, children: e });
|
|
1568
1571
|
}, Gt = ({
|
|
1569
1572
|
itemProps: e,
|
|
1570
|
-
fileGrpKey:
|
|
1573
|
+
fileGrpKey: t,
|
|
1571
1574
|
onUploadComplete: f,
|
|
1572
1575
|
onFetchFilesTrxCd: s = "SCMFILE00101",
|
|
1573
|
-
onSuccessTrxCd:
|
|
1576
|
+
onSuccessTrxCd: r = "SCMFILE00102",
|
|
1574
1577
|
onDeleteFileTrxCd: l = "SCMFILE00103",
|
|
1575
1578
|
onReorderFilesTrxCd: g = "SCMFILE00104",
|
|
1576
1579
|
allowedExtensions: i = mt,
|
|
@@ -1583,12 +1586,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1583
1586
|
localOnly: v = !1,
|
|
1584
1587
|
onFilesChange: V
|
|
1585
1588
|
}) => {
|
|
1586
|
-
const [R, N] = j([]), M =
|
|
1589
|
+
const [R, N] = j([]), M = K(t), h = K([]), L = E.useFormInstance(), $ = K(
|
|
1587
1590
|
Xe(() => {
|
|
1588
1591
|
if (v || h.current.length === 0)
|
|
1589
1592
|
return;
|
|
1590
1593
|
const n = [...h.current];
|
|
1591
|
-
if (h.current = [],
|
|
1594
|
+
if (h.current = [], r) {
|
|
1592
1595
|
const m = n.map((p) => ({
|
|
1593
1596
|
crprCd: te()?.crprCd,
|
|
1594
1597
|
sysCd: __SYS_CD__,
|
|
@@ -1603,7 +1606,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1603
1606
|
console.log("newFileGrpKeyonModify", Y), console.log(
|
|
1604
1607
|
"newFileGrpKeyonModify",
|
|
1605
1608
|
Y ? 0 : M.current
|
|
1606
|
-
), J(
|
|
1609
|
+
), J(r, {
|
|
1607
1610
|
crprCd: te()?.crprCd,
|
|
1608
1611
|
sysCd: __SYS_CD__,
|
|
1609
1612
|
fileGrpKey: Y ? 0 : M.current,
|
|
@@ -1672,12 +1675,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1672
1675
|
G(() => () => {
|
|
1673
1676
|
$.cancel();
|
|
1674
1677
|
}, [$]), G(() => {
|
|
1675
|
-
M.current =
|
|
1676
|
-
}, [
|
|
1677
|
-
v ||
|
|
1678
|
+
M.current = t;
|
|
1679
|
+
}, [t]), G(() => {
|
|
1680
|
+
v || t && s && J(s, {
|
|
1678
1681
|
crprCd: te()?.crprCd,
|
|
1679
1682
|
sysCd: __SYS_CD__,
|
|
1680
|
-
fileGrpKey:
|
|
1683
|
+
fileGrpKey: t
|
|
1681
1684
|
}).then((n) => {
|
|
1682
1685
|
if (n?.sub) {
|
|
1683
1686
|
const m = n.sub.map((d) => ({
|
|
@@ -1694,19 +1697,19 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1694
1697
|
}).catch((n) => {
|
|
1695
1698
|
console.error("파일 목록 조회 서비스 호출에 실패했습니다.", n), z.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
|
|
1696
1699
|
});
|
|
1697
|
-
}, [
|
|
1700
|
+
}, [t, s]);
|
|
1698
1701
|
const o = (n, m) => {
|
|
1699
1702
|
const p = e?.name, d = I ? L?.getFieldValue(p) || [] : R, A = ne(d, { uid: n }), k = ne(d, { uid: m });
|
|
1700
1703
|
if (A < 0 || k < 0) return;
|
|
1701
1704
|
const b = [...d], [S] = b.splice(A, 1);
|
|
1702
1705
|
b.splice(k, 0, S), I ? L?.setFieldValue(p, b) : N(b);
|
|
1703
1706
|
}, C = () => {
|
|
1704
|
-
if (!v &&
|
|
1707
|
+
if (!v && t && g) {
|
|
1705
1708
|
const n = e?.name, p = (I ? L?.getFieldValue(n) || [] : R).map((d) => d.uid);
|
|
1706
1709
|
J(g, {
|
|
1707
1710
|
crprCd: te()?.crprCd,
|
|
1708
1711
|
sysCd: __SYS_CD__,
|
|
1709
|
-
fileGrpKey:
|
|
1712
|
+
fileGrpKey: t,
|
|
1710
1713
|
reorderedFileKeys: p
|
|
1711
1714
|
}).then(() => {
|
|
1712
1715
|
z.success("파일 순서가 성공적으로 저장되었습니다.");
|
|
@@ -1829,25 +1832,25 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1829
1832
|
}
|
|
1830
1833
|
) });
|
|
1831
1834
|
}, ht = q.Search, Wt = (e) => {
|
|
1832
|
-
const
|
|
1833
|
-
value: "empNm",
|
|
1834
|
-
fieldName: "empNm",
|
|
1835
|
-
placeholder: "사원명"
|
|
1836
|
-
}, t = {
|
|
1835
|
+
const t = E.useFormInstance(), { openCorePopup: f } = Je(), s = {
|
|
1837
1836
|
value: "deptNm",
|
|
1838
1837
|
fieldName: "deptNm",
|
|
1839
|
-
placeholder: "
|
|
1840
|
-
},
|
|
1838
|
+
placeholder: "부서명"
|
|
1839
|
+
}, r = {
|
|
1840
|
+
value: "empNm",
|
|
1841
|
+
fieldName: "empNm",
|
|
1842
|
+
placeholder: "사원명 입력"
|
|
1843
|
+
}, l = e.field1 || s, g = e.field2 || r, i = ce(
|
|
1841
1844
|
(u) => {
|
|
1842
|
-
|
|
1845
|
+
t.setFieldValue(e.employeeFieldName || "employee", u), t.setFieldValue(e.empNoFieldName || "empNo", u.empNo ?? ""), t.setFieldValue(
|
|
1843
1846
|
l.fieldName,
|
|
1844
|
-
u[l.value || "
|
|
1845
|
-
),
|
|
1847
|
+
u[l.value || "deptNm"] ?? ""
|
|
1848
|
+
), t.setFieldValue(
|
|
1846
1849
|
g.fieldName,
|
|
1847
|
-
u[g.value || "
|
|
1850
|
+
u[g.value || "empNm"] ?? ""
|
|
1848
1851
|
), e.onFinish?.();
|
|
1849
1852
|
},
|
|
1850
|
-
[
|
|
1853
|
+
[t, l, g, e.employeeFieldName]
|
|
1851
1854
|
), y = ce(
|
|
1852
1855
|
(u) => {
|
|
1853
1856
|
f("CORE_ORGANIZATION_01", {
|
|
@@ -1892,7 +1895,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1892
1895
|
},
|
|
1893
1896
|
[i, y]
|
|
1894
1897
|
);
|
|
1895
|
-
return /* @__PURE__ */ a(T, { label: e.label || "사원", name: void 0, children: /* @__PURE__ */
|
|
1898
|
+
return /* @__PURE__ */ a(T, { label: e.label || "사원", name: void 0, children: /* @__PURE__ */ P(ae.Compact, { block: !0, children: [
|
|
1896
1899
|
/* @__PURE__ */ a(
|
|
1897
1900
|
E.Item,
|
|
1898
1901
|
{
|
|
@@ -1941,7 +1944,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
|
|
|
1941
1944
|
),
|
|
1942
1945
|
onSearch: c,
|
|
1943
1946
|
onChange: (u) => {
|
|
1944
|
-
|
|
1947
|
+
t.setFieldValue(l.fieldName, ""), t.setFieldValue(e.employeeFieldName || "employee", null), t.setFieldValue(e.empNoFieldName || "empNo", "");
|
|
1945
1948
|
}
|
|
1946
1949
|
}
|
|
1947
1950
|
)
|
|
@@ -1969,7 +1972,7 @@ export {
|
|
|
1969
1972
|
Tt as BwgRangePicker,
|
|
1970
1973
|
jt as BwgSearch,
|
|
1971
1974
|
Ht as BwgSelect,
|
|
1972
|
-
|
|
1973
|
-
|
|
1975
|
+
Kt as BwgSwitch,
|
|
1976
|
+
Pt as BwgTextArea,
|
|
1974
1977
|
Gt as BwgUploader
|
|
1975
1978
|
};
|