@bwg-ui/core 1.3.4 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/chunks/{CMSearchIntfGwP01-DBpDpgQr.js → CMSearchIntfGwP01-BBdPmalj.js} +1 -1
  2. package/dist/chunks/{CMSearchIntfGwP01-CuGDAfFM.cjs → CMSearchIntfGwP01-Cs78BtE7.cjs} +1 -1
  3. package/dist/chunks/{MenuReport-yw8tZDUk.cjs → MenuReport-BCO-gXwk.cjs} +1 -1
  4. package/dist/chunks/{MenuReport-CCbCy7yt.js → MenuReport-CYK_Eaqa.js} +1 -1
  5. package/dist/chunks/{common-components-DtzVj5lz.js → common-components-C61ER0qC.js} +12846 -13367
  6. package/dist/chunks/common-components-mXgJEMpT.cjs +1109 -0
  7. package/dist/chunks/layout-components-D7I6VhXN.cjs +38 -0
  8. package/dist/chunks/{layout-components-ljht1sHh.js → layout-components-gqu1pmfr.js} +486 -438
  9. package/dist/components/common/BwgGrid.d.ts +31 -8
  10. package/dist/components/common/BwgGrid.d.ts.map +1 -1
  11. package/dist/components/common/BwgView.d.ts.map +1 -1
  12. package/dist/components/common/index.cjs +1 -1
  13. package/dist/components/common/index.js +1 -1
  14. package/dist/components/core/BwgDatePicker.d.ts.map +1 -1
  15. package/dist/components/core/BwgEmpSearch.d.ts +2 -2
  16. package/dist/components/core/BwgEmpSearch.d.ts.map +1 -1
  17. package/dist/components/core/BwgMaskedDate.d.ts.map +1 -1
  18. package/dist/components/core/BwgMaskedRange.d.ts.map +1 -1
  19. package/dist/components/core/index.cjs +1 -1
  20. package/dist/components/core/index.js +210 -210
  21. package/dist/components/guide/index.cjs +1 -1
  22. package/dist/components/guide/index.js +1 -1
  23. package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -1
  24. package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
  25. package/dist/components/layout/extension/ContentWrapper.d.ts.map +1 -1
  26. package/dist/components/layout/index.cjs +1 -1
  27. package/dist/components/layout/index.js +1 -1
  28. package/dist/components/pages/board/CMMyBoardM01.d.ts.map +1 -1
  29. package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
  30. package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
  31. package/dist/components/popup/index.cjs +1 -1
  32. package/dist/components/popup/index.js +1 -1
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.js +2 -2
  35. package/dist/public/realgrid/css/realgrid-style-custom.css +6 -10
  36. package/dist/stores/index.cjs +1 -1
  37. package/dist/stores/index.js +1 -1
  38. package/dist/styles/assets/images/backgrounds/kiam_login_bg.png +0 -0
  39. package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
  40. package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
  41. package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
  42. package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
  43. package/dist/styles/components_02.css +35 -0
  44. package/dist/styles/global.css +9 -1
  45. package/dist/styles/index.css +3 -0
  46. package/dist/styles/layout.css +14 -4
  47. package/dist/styles/layout_02.css +99 -0
  48. package/dist/styles/login.css +7 -44
  49. package/dist/styles/login_02.css +35 -0
  50. package/dist/utils/apiUtils.d.ts.map +1 -1
  51. package/dist/utils/index.cjs +1 -1
  52. package/dist/utils/index.d.ts.map +1 -1
  53. package/dist/utils/index.js +67 -66
  54. package/package.json +1 -1
  55. package/dist/chunks/common-components-CbkWoYfX.cjs +0 -1111
  56. package/dist/chunks/layout-components-BzLAGXiu.cjs +0 -38
@@ -1,9 +1,9 @@
1
- import { jsx as a, jsxs as K } from "react/jsx-runtime";
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 P, cloneElement as Oe, useCallback as ce } from "react";
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 Pe, CloseCircleOutlined as Ke, FileTextOutlined as Ge, CalendarOutlined as de, ExclamationCircleOutlined as Se, SearchOutlined as Ne } from "@ant-design/icons";
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";
@@ -12,18 +12,18 @@ 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: r } = ze(), f = Q(() => e.size ? e.size : {
15
+ const { componentSize: t } = ze(), f = Q(() => e.size ? e.size : {
16
16
  0: "small",
17
17
  1: "middle",
18
18
  2: "large"
19
- }[r], [r, e.size]), s = Q(() => ({
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
- })[r], [r]);
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: r,
40
+ label: t,
41
41
  name: f,
42
42
  rules: s,
43
- initialValue: t,
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: `${r}을(를) 입력해주세요.`
54
+ message: `${t}을(를) 입력해주세요.`
55
55
  }
56
56
  ]);
57
- const c = Array.isArray(s) && s.some((Y) => Y.required === !0), u = () => typeof r == "string" ? /* @__PURE__ */ K("span", { style: y, children: [
58
- r,
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: r });
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: r ? u() : void 0,
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: t,
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: r = {
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: (t) => ({ checked: r.format === "boolean" ? !!t : t === "Y" }),
89
- normalize: (t) => typeof t == "boolean" ? r.format === "boolean" ? t : t ? "Y" : "N" : r.format === "boolean" ? !!t : t ? "Y" : "N",
90
- children: /* @__PURE__ */ a(ue, { ...r, onChange: (t) => {
91
- r.format === "boolean" ? f.setFieldValue(e?.name, t.target.checked) : f.setFieldValue(e?.name, t.target.checked ? "Y" : "N"), r.onChange && r.onChange(t);
92
- }, children: r?.title })
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: r }) => {
96
- const f = E.useFormInstance(), [s, t] = j(
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(r?.options));
101
- }, [r?.options]), G(() => {
102
- t(s);
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
- t(F.target.checked ? l : []), f.setFieldValue(e?.name, F.target.checked ? l : []);
110
+ r(F.target.checked ? l : []), f.setFieldValue(e?.name, F.target.checked ? l : []);
111
111
  }, Y = (F) => {
112
- t(F), f.setFieldValue(e?.name, F), r?.onChange && typeof r?.onChange == "function" && r?.onChange(F);
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__ */ K(se, { theme: {
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
- r?.allCheck && /* @__PURE__ */ a(
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: r?.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: r,
152
+ inputProps: t,
153
153
  type: f = "date",
154
154
  returnType: s = "string"
155
155
  }) => {
156
- const { displayFormat: t, outputFormat: l } = Q(
156
+ const { displayFormat: r, outputFormat: l } = Q(
157
157
  () => pe[f],
158
158
  [f]
159
159
  ), g = Q(
@@ -179,26 +179,23 @@ const vt = (e) => {
179
179
  children: /* @__PURE__ */ a(
180
180
  ie,
181
181
  {
182
- ...r,
182
+ ...t,
183
183
  picker: f === "datetime" ? "date" : f,
184
- showTime: r?.showTime ?? (f === "datetime" || f === "time"),
185
- format: r?.format ? {
186
- format: r?.format?.format,
187
- type: "mask"
188
- } : t
184
+ showTime: t?.showTime ?? (f === "datetime" || f === "time"),
185
+ format: t?.format ?? r
189
186
  }
190
187
  )
191
188
  }
192
189
  );
193
190
  }, Dt = ({
194
191
  fileGrpKey: e,
195
- onFetchFilesTrxCd: r = "SCMFILE00101",
192
+ onFetchFilesTrxCd: t = "SCMFILE00101",
196
193
  readOnly: f = !1,
197
194
  appCd: s = __APP_CD__
198
195
  }) => {
199
- const [t, l] = j([]);
196
+ const [r, l] = j([]);
200
197
  G(() => {
201
- if (r)
198
+ if (t)
202
199
  if (s != __APP_CD__) {
203
200
  const y = he().findSystemByAppCd?.(s ?? __APP_CD__);
204
201
  if (!y || !y.sysCd) {
@@ -206,7 +203,7 @@ const vt = (e) => {
206
203
  return;
207
204
  }
208
205
  We(
209
- { trxCd: r, appCd: s },
206
+ { trxCd: t, appCd: s },
210
207
  {
211
208
  crprCd: qe(),
212
209
  sysCd: y.sysCd,
@@ -225,7 +222,7 @@ const vt = (e) => {
225
222
  console.error("파일 목록 조회 서비스 호출에 실패했습니다.", c), z.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
226
223
  });
227
224
  } else
228
- J(r, {
225
+ J(t, {
229
226
  crprCd: te()?.crprCd,
230
227
  sysCd: __SYS_CD__,
231
228
  fileGrpKey: e
@@ -243,7 +240,7 @@ const vt = (e) => {
243
240
  });
244
241
  else
245
242
  l([]);
246
- }, [e, r, s]);
243
+ }, [e, t, s]);
247
244
  const g = async (i) => {
248
245
  try {
249
246
  const c = he().findSystemByAppCd?.(s ?? __APP_CD__);
@@ -279,7 +276,7 @@ const vt = (e) => {
279
276
  return /* @__PURE__ */ a(Ve, { title: "파일 목록", children: /* @__PURE__ */ a(
280
277
  re,
281
278
  {
282
- dataSource: t,
279
+ dataSource: r,
283
280
  renderItem: (i) => /* @__PURE__ */ a(
284
281
  re.Item,
285
282
  {
@@ -300,7 +297,7 @@ const vt = (e) => {
300
297
  }
301
298
  ) });
302
299
  }, nt = Be(
303
- ({ children: e, labelCol: r, style: f, className: s, ...t }, l) => /* @__PURE__ */ a(
300
+ ({ children: e, labelCol: t, style: f, className: s, ...r }, l) => /* @__PURE__ */ a(
304
301
  se,
305
302
  {
306
303
  form: {
@@ -314,9 +311,9 @@ const vt = (e) => {
314
311
  E,
315
312
  {
316
313
  ref: l,
317
- ...t,
314
+ ...r,
318
315
  requiredMark: !1,
319
- labelCol: r || { flex: "100px" },
316
+ labelCol: t || { flex: "100px" },
320
317
  style: { padding: "10px", ...f },
321
318
  className: `bwg-form ${s ?? ""}`,
322
319
  children: e
@@ -326,7 +323,7 @@ const vt = (e) => {
326
323
  )
327
324
  );
328
325
  nt.displayName = "BwgForm";
329
- const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(q, { ...r }) }), { Text: oe } = be, { Dragger: at } = Z, ot = [
326
+ const Et = ({ itemProps: e, inputProps: t }) => /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(q, { ...t }) }), { Text: oe } = be, { Dragger: at } = Z, ot = [
330
327
  ".pdf",
331
328
  ".xlsx",
332
329
  ".xls",
@@ -344,17 +341,17 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
344
341
  ".gif",
345
342
  // 압축
346
343
  ".zip"
347
- ], lt = (e, r = 2) => {
344
+ ], lt = (e, t = 2) => {
348
345
  if (e === 0) return "0 Bytes";
349
- const f = 1024, s = r < 0 ? 0 : r, t = ["Bytes", "KB", "MB", "GB", "TB"], l = Math.floor(Math.log(e) / Math.log(f));
350
- return parseFloat((e / Math.pow(f, l)).toFixed(s)) + " " + t[l];
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];
351
348
  }, xt = ({
352
349
  title: e = "첨부파일",
353
- fileGrpKey: r,
350
+ fileGrpKey: t,
354
351
  onUploadComplete: f,
355
352
  onSuccessTrxCd: s = "SCMFILE00102",
356
353
  // BwgUploader와 동일한 기본 trxCd 설정
357
- anotherServiceTrxCd: t = "SCMFILE00105",
354
+ anotherServiceTrxCd: r = "SCMFILE00105",
358
355
  allowedExtensions: l = ot,
359
356
  maxFileSize: g = 2048
360
357
  // 기본값 2GB
@@ -455,12 +452,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
455
452
  const O = {
456
453
  crprCd: I?.crprCd,
457
454
  sysCd: __SYS_CD__,
458
- fileGrpKey: r,
455
+ fileGrpKey: t,
459
456
  sub: [
460
457
  {
461
458
  crprCd: I?.crprCd,
462
459
  sysCd: __SYS_CD__,
463
- fileGrpKey: r,
460
+ fileGrpKey: t,
464
461
  physFileNm: B.fileNameP,
465
462
  lgclFileNm: B.fileNameL,
466
463
  filePath: B.filePath,
@@ -481,7 +478,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
481
478
  fileExtn: W.name.split(".").pop(),
482
479
  fileType: W.type
483
480
  }));
484
- J(t, {
481
+ J(r, {
485
482
  // 파일 목록에 fileKey를 추가합니다.
486
483
  sub: ee
487
484
  });
@@ -534,7 +531,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
534
531
  {
535
532
  spinning: c || Y,
536
533
  tip: Y ? "파일 압축 중..." : `파일 업로드 중... ${v}%`,
537
- children: /* @__PURE__ */ K("div", { className: "bwg-large-uploader-container", children: [
534
+ children: /* @__PURE__ */ P("div", { className: "bwg-large-uploader-container", children: [
538
535
  /* @__PURE__ */ a(
539
536
  Ve,
540
537
  {
@@ -559,7 +556,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
559
556
  const L = h.status === "done", x = h.status === "error";
560
557
  let $;
561
558
  return L ? $ = /* @__PURE__ */ a(
562
- Pe,
559
+ Ke,
563
560
  {
564
561
  style: { color: "#52c41a", fontSize: 14 }
565
562
  }
@@ -568,7 +565,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
568
565
  {
569
566
  title: typeof h.response == "string" ? h.response : "업로드 실패",
570
567
  children: /* @__PURE__ */ a(
571
- Ke,
568
+ Pe,
572
569
  {
573
570
  style: { color: "#ff4d4f", fontSize: 14 }
574
571
  }
@@ -604,7 +601,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
604
601
  );
605
602
  }
606
603
  }
607
- ) : /* @__PURE__ */ K(
604
+ ) : /* @__PURE__ */ P(
608
605
  ge,
609
606
  {
610
607
  gap: "middle",
@@ -622,7 +619,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
622
619
  )
623
620
  }
624
621
  ),
625
- i.length > 0 && /* @__PURE__ */ K(
622
+ i.length > 0 && /* @__PURE__ */ P(
626
623
  ge,
627
624
  {
628
625
  justify: "flex-end",
@@ -653,8 +650,8 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
653
650
  if (Array.isArray(e))
654
651
  return e[0].replace(/0/g, "_");
655
652
  if (typeof e == "object" && "mask" in e && "blocks" in e) {
656
- const { mask: r, blocks: f } = e;
657
- return r.split(".").map((s) => {
653
+ const { mask: t, blocks: f } = e;
654
+ return t.split(".").map((s) => {
658
655
  const l = f?.[s]?.maxLength ?? 3;
659
656
  return "_".repeat(l);
660
657
  }).join(".");
@@ -662,19 +659,19 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
662
659
  return "";
663
660
  }, Bt = ({
664
661
  itemProps: e,
665
- inputProps: r,
662
+ inputProps: t,
666
663
  mask: f
667
664
  }) => {
668
- const s = P(null), t = E.useFormInstance(), l = Q(() => st(f), [f]);
665
+ const s = K(null), r = E.useFormInstance(), l = Q(() => st(f), [f]);
669
666
  return G(() => {
670
667
  if (!s.current?.input) return;
671
668
  const g = typeof f == "string" || Array.isArray(f) ? { mask: f } : f, i = le(s.current.input, g);
672
669
  return i.on("accept", () => {
673
- t && e?.name && t.setFieldValue(e.name, i.value);
670
+ r && e?.name && r.setFieldValue(e.name, i.value);
674
671
  }), () => {
675
672
  i.destroy();
676
673
  };
677
- }, [f, t, e?.name]), /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(q, { ...r, ref: s, placeholder: l }) });
674
+ }, [f, r, e?.name]), /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(q, { ...t, ref: s, placeholder: l }) });
678
675
  }, it = (e) => {
679
676
  switch (e) {
680
677
  case "year":
@@ -691,11 +688,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
691
688
  }
692
689
  }, Ot = ({
693
690
  type: e = "date",
694
- itemProps: r = { name: "calendar" },
691
+ itemProps: t = { name: "calendar" },
695
692
  inputProps: f,
696
693
  pickerProps: s
697
694
  }) => {
698
- const { format: t, mask: l, outputFormat: g } = it(e), i = P(null), y = P(null), c = P(null), u = E.useFormInstance(), [Y, F] = j(!1), [v, V] = j(!1), R = r?.name, [N, M] = j(null), h = E.useWatch(R, u), L = we();
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();
699
696
  G(() => {
700
697
  if (!i.current?.input) return;
701
698
  const o = le(i.current.input, {
@@ -705,12 +702,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
705
702
  return y.current = o, o.on("accept", () => {
706
703
  const C = o.value;
707
704
  C.length > 0 && F(!0);
708
- const w = _(C, t, !0);
709
- C.length === t.length && w.isValid() && (u.setFieldValue(R, w.format(g)), M(w), y.current?.updateValue());
705
+ const w = _(C, r, !0);
706
+ C.length === r.length && w.isValid() && (u.setFieldValue(R, w.format(g)), M(w), y.current?.updateValue());
710
707
  }), () => {
711
708
  o.destroy();
712
709
  };
713
- }, [t, l]), G(() => {
710
+ }, [r, l]), G(() => {
714
711
  if (!h) {
715
712
  M(null);
716
713
  return;
@@ -719,15 +716,15 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
719
716
  if (typeof h == "string" && h.length === g.length && /^\d+$/.test(h))
720
717
  if (e === "date") {
721
718
  const C = h.substring(0, 4), w = h.substring(4, 6), I = h.substring(6, 8);
722
- o = _(`${C}-${w}-${I}`, t, !0);
719
+ o = _(`${C}-${w}-${I}`, r, !0);
723
720
  } else if (e === "month") {
724
721
  const C = h.substring(0, 4), w = h.substring(4, 6);
725
- o = _(`${C}-${w}`, t, !0);
726
- } else e === "year" && (o = _(h, t, !0));
722
+ o = _(`${C}-${w}`, r, !0);
723
+ } else e === "year" && (o = _(h, r, !0));
727
724
  else
728
- o = _(h, t, !0);
725
+ o = _(h, r, !0);
729
726
  o && o.isValid() ? M(o) : M(null), V(!1);
730
- }, [h, t, g, e]);
727
+ }, [h, r, g, e]);
731
728
  const x = (o) => {
732
729
  if (!o) {
733
730
  u.setFieldValue(R, void 0), M(null), y.current?.updateValue();
@@ -735,7 +732,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
735
732
  }
736
733
  M(o);
737
734
  const C = o.format(g);
738
- u.setFieldValue(R, C), y.current && (y.current.value = o.format(t), y.current.updateValue()), V(!1);
735
+ u.setFieldValue(R, C), y.current && (y.current.value = o.format(r), y.current.updateValue()), V(!1);
739
736
  }, $ = (o) => {
740
737
  setTimeout(() => {
741
738
  const C = document.activeElement, w = c.current, I = w?.querySelector(".ant-picker-dropdown");
@@ -745,10 +742,10 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
745
742
  return /* @__PURE__ */ a(
746
743
  T,
747
744
  {
748
- ...r,
745
+ ...t,
749
746
  name: void 0,
750
747
  validateStatus: v ? "warning" : void 0,
751
- children: /* @__PURE__ */ K(
748
+ children: /* @__PURE__ */ P(
752
749
  se,
753
750
  {
754
751
  componentSize: L.componentSize,
@@ -765,10 +762,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
765
762
  {
766
763
  name: R,
767
764
  getValueProps: (o) => ({
768
- value: o ? _(o).format(t) : void 0
765
+ value: o ? _(o).format(r) : void 0
769
766
  }),
770
767
  normalize: (o) => o ? _(o).format(g) : void 0,
771
768
  noStyle: !0,
769
+ rules: t?.rules ?? [],
772
770
  children: /* @__PURE__ */ a(
773
771
  q,
774
772
  {
@@ -783,8 +781,8 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
783
781
  onKeyDown: (o) => {
784
782
  if (o.key === "Backspace" && F(!0), o.key === "Tab" && F(!1), o.key === "Enter")
785
783
  if (Y) {
786
- const C = y.current?.value || "", w = _(C, t, !0);
787
- C.length === t.length && w.isValid() ? (F(!1), V(!1)) : V(!0);
784
+ const C = y.current?.value || "", w = _(C, r, !0);
785
+ C.length === r.length && w.isValid() ? (F(!1), V(!1)) : V(!0);
788
786
  } else
789
787
  F(!0);
790
788
  },
@@ -806,7 +804,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
806
804
  open: Y,
807
805
  picker: e,
808
806
  format: {
809
- format: t,
807
+ format: r,
810
808
  type: "mask"
811
809
  },
812
810
  showNow: !0,
@@ -815,7 +813,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
815
813
  onOpenChange: (o) => {
816
814
  F(o), o || $(!1);
817
815
  },
818
- renderExtraFooter: () => v ? /* @__PURE__ */ K(
816
+ renderExtraFooter: () => v ? /* @__PURE__ */ P(
819
817
  "div",
820
818
  {
821
819
  style: {
@@ -866,11 +864,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
866
864
  }
867
865
  }, zt = ({
868
866
  type: e = "date",
869
- itemProps: r = { name: "dateRange" },
867
+ itemProps: t = { name: "dateRange" },
870
868
  inputProps: f,
871
869
  pickerProps: s
872
870
  }) => {
873
- const { format: t, mask: l, outputFormat: g } = ut(e), i = P(null), y = P(null), c = P(null), u = P(null), Y = P(null), F = E.useFormInstance(), [v, V] = j(!1), [R, N] = j(!1), [M, h] = j(null), [L, x] = j(!1), $ = P(!1), o = r?.name, [C, w] = j([
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([
874
872
  null,
875
873
  null
876
874
  ]), I = E.useWatch(
@@ -892,12 +890,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
892
890
  maskValue: m,
893
891
  unmaskedValue: p,
894
892
  length: m.length,
895
- formatLength: t.length
893
+ formatLength: r.length
896
894
  }), m.length > 0 && (h("start"), V(!0), x(!1)), p.length === g.length) {
897
- const d = _(m, t, !0);
895
+ const d = _(m, r, !0);
898
896
  if (d.isValid()) {
899
897
  console.log("🔵 [시작일] 입력 완료 및 검증 통과:", {
900
- parsed: d.format(t)
898
+ parsed: d.format(r)
901
899
  });
902
900
  const A = d.format(g);
903
901
  $.current = !0;
@@ -918,7 +916,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
918
916
  }), () => {
919
917
  n.destroy();
920
918
  };
921
- }, [t, l, o]), G(() => {
919
+ }, [r, l, o]), G(() => {
922
920
  if (!y.current?.input) return;
923
921
  const n = le(y.current.input, {
924
922
  mask: l,
@@ -930,7 +928,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
930
928
  maskValue: m,
931
929
  unmaskedValue: p,
932
930
  length: m.length,
933
- formatLength: t.length
931
+ formatLength: r.length
934
932
  }), p === "" || p.length === 0) {
935
933
  const d = Array.isArray(o) ? [...o, 1] : [o, 1];
936
934
  F.setFieldValue(d, void 0), w([C[0], null]), u.current && (u.current.value = "", u.current.updateValue()), setTimeout(() => {
@@ -938,16 +936,16 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
938
936
  }, 0);
939
937
  return;
940
938
  }
941
- if (m.length > 0 && (h("end"), V(!0)), m.length < t.length) {
939
+ if (m.length > 0 && (h("end"), V(!0)), m.length < r.length) {
942
940
  N(!1);
943
941
  return;
944
942
  }
945
943
  if (p.length === g.length) {
946
- const d = _(m, t, !0);
944
+ const d = _(m, r, !0);
947
945
  if (d.isValid()) {
948
946
  const A = d.format(g);
949
947
  console.log("🟢 [종료일] 입력 완료:", {
950
- parsed: d.format(t),
948
+ parsed: d.format(r),
951
949
  formatted: A
952
950
  }), $.current = !0;
953
951
  const k = Array.isArray(o) ? [...o, 1] : [o, 1];
@@ -960,7 +958,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
960
958
  }), () => {
961
959
  n.destroy();
962
960
  };
963
- }, [t, l, o]), G(() => {
961
+ }, [r, l, o]), G(() => {
964
962
  console.log("🟡 [useEffect] form 값 변경 감지:", {
965
963
  startFormValue: I,
966
964
  endFormValue: B,
@@ -977,25 +975,25 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
977
975
  if (typeof k == "string" && k.length === g.length && /^\d+$/.test(k))
978
976
  if (e === "date") {
979
977
  const S = k.substring(0, 4), D = k.substring(4, 6), H = k.substring(6, 8);
980
- b = _(`${S}-${D}-${H}`, t, !0);
978
+ b = _(`${S}-${D}-${H}`, r, !0);
981
979
  } else if (e === "month") {
982
980
  const S = k.substring(0, 4), D = k.substring(4, 6);
983
- b = _(`${S}-${D}`, t, !0);
984
- } else e === "year" && (b = _(k, t, !0));
981
+ b = _(`${S}-${D}`, r, !0);
982
+ } else e === "year" && (b = _(k, r, !0));
985
983
  else
986
- b = _(k, t, !0);
984
+ b = _(k, r, !0);
987
985
  return b && b.isValid() ? b : null;
988
986
  }, d = p(n), A = p(m);
989
987
  if (console.log("🟡 [useEffect] 파싱 결과:", {
990
- startParsed: d ? d.format(t) : null,
991
- endParsed: A ? A.format(t) : null,
988
+ startParsed: d ? d.format(r) : null,
989
+ endParsed: A ? A.format(r) : null,
992
990
  isStartDateFromPicker: L
993
991
  }), w([d, A]), $.current) {
994
992
  console.log("🟡 [useEffect] 사용자 입력 중 - 마스크 값 업데이트 스킵"), N(!1);
995
993
  return;
996
994
  }
997
995
  if (!L && c.current) {
998
- const k = c.current.value || "", b = d ? d.format(t) : "", S = c.current.unmaskedValue || "", D = d ? d.format(g) : "";
996
+ const k = c.current.value || "", b = d ? d.format(r) : "", S = c.current.unmaskedValue || "", D = d ? d.format(g) : "";
999
997
  console.log("🟡 [useEffect] 시작일 마스크 값 체크:", {
1000
998
  currentMaskValue: k,
1001
999
  expectedMaskValue: b,
@@ -1005,13 +1003,13 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1005
1003
  canUpdate: S === "" || S === D
1006
1004
  }), (k === "" || k !== b) && (S === "" || S === D ? (console.log("🟡 [useEffect] 시작일 마스크 값 업데이트:", {
1007
1005
  before: k,
1008
- after: d ? d.format(t) : ""
1009
- }), d ? (c.current.value = d.format(t), c.current.updateValue()) : (c.current.value = "", c.current.updateValue())) : console.log(
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(
1010
1008
  "🟡 [useEffect] 시작일 마스크 값 업데이트 스킵 (사용자 입력 중)"
1011
1009
  ));
1012
1010
  }
1013
1011
  if (u.current) {
1014
- const k = u.current.value || "", b = A ? A.format(t) : "", S = u.current.unmaskedValue || "", D = A ? A.format(g) : "";
1012
+ const k = u.current.value || "", b = A ? A.format(r) : "", S = u.current.unmaskedValue || "", D = A ? A.format(g) : "";
1015
1013
  console.log("🟡 [useEffect] 종료일 마스크 값 체크:", {
1016
1014
  currentMaskValue: k,
1017
1015
  expectedMaskValue: b,
@@ -1022,21 +1020,21 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1022
1020
  }), (k === "" || k !== b) && (S === "" || S === D ? (console.log("🟡 [useEffect] 종료일 마스크 값 업데이트:", {
1023
1021
  before: k,
1024
1022
  after: b
1025
- }), A ? (u.current.value = A.format(t), u.current.updateValue()) : (u.current.value = "", u.current.updateValue())) : console.log(
1023
+ }), A ? (u.current.value = A.format(r), u.current.updateValue()) : (u.current.value = "", u.current.updateValue())) : console.log(
1026
1024
  "🟡 [useEffect] 종료일 마스크 값 업데이트 스킵 (사용자 입력 중)"
1027
1025
  ));
1028
1026
  }
1029
1027
  N(!1);
1030
- }, [I, B, O, t, g, e]);
1028
+ }, [I, B, O, r, g, e]);
1031
1029
  const ee = (n) => {
1032
1030
  if (console.log("🔴 [RangePicker] 날짜 변경:", {
1033
1031
  dates: n ? [
1034
- n[0] ? n[0].format(t) : null,
1035
- n[1] ? n[1].format(t) : null
1032
+ n[0] ? n[0].format(r) : null,
1033
+ n[1] ? n[1].format(r) : null
1036
1034
  ] : null,
1037
1035
  prevRange: [
1038
- C[0] ? C[0].format(t) : null,
1039
- C[1] ? C[1].format(t) : null
1036
+ C[0] ? C[0].format(r) : null,
1037
+ C[1] ? C[1].format(r) : null
1040
1038
  ]
1041
1039
  }), !n) {
1042
1040
  w([null, null]);
@@ -1050,8 +1048,8 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1050
1048
  ));
1051
1049
  if (console.log("🔴 [RangePicker] 시작일 변경 여부:", {
1052
1050
  isStartDateChanged: A,
1053
- startDate: m ? m.format(t) : null,
1054
- prevStartDate: d ? d.format(t) : null
1051
+ startDate: m ? m.format(r) : null,
1052
+ prevStartDate: d ? d.format(r) : null
1055
1053
  }), w([m, p]), A) {
1056
1054
  console.log("🔴 [RangePicker] 시작일 선택됨 - input 비우기"), x(!0), c.current && (c.current.value = "", c.current.updateValue());
1057
1055
  const b = m.format(g);
@@ -1069,7 +1067,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1069
1067
  const k = Array.isArray(o) ? [...o, 1] : [o, 1];
1070
1068
  if (p) {
1071
1069
  const b = p.format(g);
1072
- F.setFieldValue(k, b), u.current && (u.current.value = p.format(t), u.current.updateValue());
1070
+ F.setFieldValue(k, b), u.current && (u.current.value = p.format(r), u.current.updateValue());
1073
1071
  } else
1074
1072
  F.setFieldValue(k, void 0), u.current && (u.current.value = "", u.current.updateValue());
1075
1073
  N(!1);
@@ -1082,10 +1080,10 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1082
1080
  return /* @__PURE__ */ a(
1083
1081
  T,
1084
1082
  {
1085
- ...r,
1083
+ ...t,
1086
1084
  name: void 0,
1087
1085
  validateStatus: R ? "warning" : void 0,
1088
- children: /* @__PURE__ */ K(
1086
+ children: /* @__PURE__ */ P(
1089
1087
  se,
1090
1088
  {
1091
1089
  componentSize: U.componentSize,
@@ -1097,7 +1095,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1097
1095
  }
1098
1096
  },
1099
1097
  children: [
1100
- /* @__PURE__ */ K(
1098
+ /* @__PURE__ */ P(
1101
1099
  "div",
1102
1100
  {
1103
1101
  ref: Y,
@@ -1124,10 +1122,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1124
1122
  } else if (e === "year")
1125
1123
  return { value: n };
1126
1124
  }
1127
- return { value: _(n).format(t) };
1125
+ return { value: _(n).format(r) };
1128
1126
  },
1129
1127
  normalize: (n) => n ? _(n).format(g) : (s?.allowEmpty, void 0),
1130
1128
  noStyle: !0,
1129
+ rules: t?.rules ?? [],
1131
1130
  children: /* @__PURE__ */ a(
1132
1131
  q,
1133
1132
  {
@@ -1147,7 +1146,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1147
1146
  if (n.key === "Backspace" && (h("start"), V(!0)), n.key === "Enter")
1148
1147
  if (v && M === "start") {
1149
1148
  const m = c.current?.value || "";
1150
- m.length === t.length ? _(m, t, !0).isValid() ? (V(!1), N(!1)) : s?.allowEmpty ? N(!1) : N(!0) : N(!1);
1149
+ m.length === r.length ? _(m, r, !0).isValid() ? (V(!1), N(!1)) : s?.allowEmpty ? N(!1) : N(!0) : N(!1);
1151
1150
  } else
1152
1151
  h("start"), V(!0);
1153
1152
  },
@@ -1179,10 +1178,11 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1179
1178
  } else if (e === "year")
1180
1179
  return { value: n };
1181
1180
  }
1182
- return { value: _(n).format(t) };
1181
+ return { value: _(n).format(r) };
1183
1182
  },
1184
1183
  normalize: (n) => n ? _(n).format(g) : (s?.allowEmpty, void 0),
1185
1184
  noStyle: !0,
1185
+ rules: t?.rules ?? [],
1186
1186
  children: /* @__PURE__ */ a(
1187
1187
  q,
1188
1188
  {
@@ -1214,7 +1214,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1214
1214
  if (n.key === "Tab" && V(!1), n.key === "Enter")
1215
1215
  if (v && M === "end") {
1216
1216
  const m = u.current?.value || "";
1217
- m.length === t.length ? _(m, t, !0).isValid() ? (V(!1), N(!1)) : s?.allowEmpty ? N(!1) : N(!0) : N(!1);
1217
+ m.length === r.length ? _(m, r, !0).isValid() ? (V(!1), N(!1)) : s?.allowEmpty ? N(!1) : N(!0) : N(!1);
1218
1218
  } else
1219
1219
  h("end"), V(!0);
1220
1220
  },
@@ -1245,7 +1245,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1245
1245
  open: v,
1246
1246
  picker: e,
1247
1247
  format: {
1248
- format: t,
1248
+ format: r,
1249
1249
  type: "mask"
1250
1250
  },
1251
1251
  showNow: !0,
@@ -1254,7 +1254,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1254
1254
  onOpenChange: (n) => {
1255
1255
  V(n), n || W(!1);
1256
1256
  },
1257
- renderExtraFooter: () => R ? /* @__PURE__ */ K(
1257
+ renderExtraFooter: () => R ? /* @__PURE__ */ P(
1258
1258
  "div",
1259
1259
  {
1260
1260
  style: {
@@ -1289,46 +1289,46 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1289
1289
  )
1290
1290
  }
1291
1291
  );
1292
- }, { Option: ye } = fe, $t = ({ itemProps: e, inputProps: r }) => {
1292
+ }, { Option: ye } = fe, $t = ({ itemProps: e, inputProps: t }) => {
1293
1293
  const [f, s] = j([]);
1294
1294
  return G(() => {
1295
- r?.addField === "ALL" ? s([
1295
+ t?.addField === "ALL" ? s([
1296
1296
  { label: "전체", value: "" },
1297
- ...r?.list || []
1298
- ]) : r?.addField === "NULL" ? s([{ label: "", value: "" }, ...r?.list || []]) : s(r?.list || []);
1299
- }, [r?.list]), /* @__PURE__ */ a(
1297
+ ...t?.list || []
1298
+ ]) : t?.addField === "NULL" ? s([{ label: "", value: "" }, ...t?.list || []]) : s(t?.list || []);
1299
+ }, [t?.list]), /* @__PURE__ */ a(
1300
1300
  T,
1301
1301
  {
1302
1302
  ...e,
1303
- getValueProps: (t) => t ? {
1304
- value: t && t.indexOf(",") > 0 ? t.split(",") : [t]
1303
+ getValueProps: (r) => r ? {
1304
+ value: r && r.indexOf(",") > 0 ? r.split(",") : [r]
1305
1305
  } : {
1306
1306
  value: []
1307
1307
  },
1308
- normalize: (t) => t != null && t != null && t.length > 0 ? t.toString() : "",
1309
- children: /* @__PURE__ */ a(fe, { ...r, mode: "multiple", children: f.map((t) => {
1310
- const { value: l, label: g } = t;
1311
- return r?.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);
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);
1312
1312
  }) })
1313
1313
  }
1314
1314
  );
1315
- }, Rt = ({ itemProps: e, inputProps: r }) => {
1316
- const f = (t) => {
1317
- let l = t.toString().split(".");
1318
- return r?.decimalPoint != null && l[1] != null && r?.decimalPoint > 0 ? l[1].length > r?.decimalPoint ? l[1] = "." + l[1].substring(0, r?.decimalPoint) : l[1] = "." + l[1] : l[1] = "", l[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",") + l[1];
1319
- }, s = (t) => {
1320
- let l = t.toString().split(".");
1321
- return r?.decimalPoint != null && l[1] != null && r?.decimalPoint > 0 ? l[1].length > r?.decimalPoint ? l[1] = "." + l[1].substring(0, r?.decimalPoint) : l[1] = "." + l[1] : l[1] = "", l[0].replace(/\$\s?|(,*)/g, "") + l[1];
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];
1322
1322
  };
1323
1323
  return /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(
1324
1324
  _e,
1325
1325
  {
1326
- ...r,
1327
- formatter: (t) => f(t),
1328
- parser: (t) => s(t)
1326
+ ...t,
1327
+ formatter: (r) => f(r),
1328
+ parser: (r) => s(r)
1329
1329
  }
1330
1330
  ) });
1331
- }, Ut = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(De.Group, { ...r }) }), { RangePicker: dt } = ie, Fe = {
1331
+ }, Ut = ({ itemProps: e, inputProps: t }) => /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(De.Group, { ...t }) }), { RangePicker: dt } = ie, Fe = {
1332
1332
  year: { displayFormat: "YYYY", outputFormat: "YYYY" },
1333
1333
  month: { displayFormat: "YYYY-MM", outputFormat: "YYYYMM" },
1334
1334
  date: { displayFormat: "YYYY-MM-DD", outputFormat: "YYYYMMDD" },
@@ -1339,10 +1339,10 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1339
1339
  }
1340
1340
  }, Tt = ({
1341
1341
  itemProps: e,
1342
- inputProps: r,
1342
+ inputProps: t,
1343
1343
  type: f = "date",
1344
1344
  minDate: s,
1345
- maxDate: t,
1345
+ maxDate: r,
1346
1346
  returnType: l = "string"
1347
1347
  }) => {
1348
1348
  const { displayFormat: g, outputFormat: i } = Q(
@@ -1377,33 +1377,33 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1377
1377
  children: /* @__PURE__ */ a(
1378
1378
  dt,
1379
1379
  {
1380
- ...r,
1380
+ ...t,
1381
1381
  order: !0,
1382
1382
  minDate: s ? _(s, y) : void 0,
1383
- maxDate: t ? _(t, y) : void 0,
1383
+ maxDate: r ? _(r, y) : void 0,
1384
1384
  picker: f === "datetime" ? "date" : f,
1385
- showTime: r?.showTime ?? (f === "datetime" || f === "time"),
1385
+ showTime: t?.showTime ?? (f === "datetime" || f === "time"),
1386
1386
  format: g
1387
1387
  }
1388
1388
  )
1389
1389
  }
1390
1390
  );
1391
1391
  }, Ce = q.Search, jt = (e) => {
1392
- const r = E.useFormInstance(), { openPopup: f } = $e(), s = e.itemProps?.name || [], t = e.popupConfig || {
1392
+ const t = E.useFormInstance(), { openPopup: f } = $e(), s = e.itemProps?.name || [], r = e.popupConfig || {
1393
1393
  callback(g) {
1394
- Array.isArray(s) && s.length > 1 ? (r.setFieldValue(s[0], g.code), r.setFieldValue(s[1], g.name)) : r.setFieldValue(s, g.code);
1394
+ Array.isArray(s) && s.length > 1 ? (t.setFieldValue(s[0], g.code), t.setFieldValue(s[1], g.name)) : t.setFieldValue(s, g.code);
1395
1395
  }
1396
1396
  }, l = {
1397
1397
  ...e,
1398
1398
  placeholder: typeof e.placeholder == "string" ? e.placeholder : e.placeholder?.[0] || "",
1399
1399
  onChange: (g) => {
1400
- Array.isArray(s) && s.length > 1 && r.setFieldValue(s[0], ""), e.onChange?.(g);
1400
+ Array.isArray(s) && s.length > 1 && t.setFieldValue(s[0], ""), e.onChange?.(g);
1401
1401
  },
1402
1402
  onSearch: (g) => {
1403
- e.popuCd ? f(e.popuCd, e.popupParams, t) : e.onSearch?.(g);
1403
+ e.popuCd ? f(e.popuCd, e.popupParams, r) : e.onSearch?.(g);
1404
1404
  }
1405
1405
  };
1406
- return Array.isArray(s) && s.length > 1 ? /* @__PURE__ */ a(T, { ...e.itemProps, name: void 0, children: /* @__PURE__ */ K(ae.Compact, { block: !0, children: [
1406
+ return Array.isArray(s) && s.length > 1 ? /* @__PURE__ */ a(T, { ...e.itemProps, name: void 0, children: /* @__PURE__ */ P(ae.Compact, { block: !0, children: [
1407
1407
  /* @__PURE__ */ a(
1408
1408
  E.Item,
1409
1409
  {
@@ -1439,23 +1439,23 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1439
1439
  ] }) }) : /* @__PURE__ */ a(T, { ...e.itemProps, children: /* @__PURE__ */ a(Ce, { ...l }) });
1440
1440
  }, Ht = ({
1441
1441
  itemProps: e,
1442
- selectProps: r = {
1442
+ selectProps: t = {
1443
1443
  options: [],
1444
1444
  allowClear: !0
1445
1445
  }
1446
1446
  }) => {
1447
- const f = E.useFormInstance(), s = !!f, t = Q(() => r?.addField === "ALL" ? [{ label: "전체", value: "" }, ...r?.options || []] : r?.addField === "NULL" ? [{ label: "", value: "" }, ...r?.options || []] : r?.options || [], [r.options, r.addField]), l = (y) => {
1448
- r.onChange?.(y);
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);
1449
1449
  }, g = {
1450
- ...r,
1451
- allowClear: r.allowClear ?? !0,
1452
- options: t,
1450
+ ...t,
1451
+ allowClear: t.allowClear ?? !0,
1452
+ options: r,
1453
1453
  onChange: l,
1454
- variant: r.variant
1455
- }, i = /* @__PURE__ */ a(fe, { ...g, disabled: r.disabled });
1456
- return r.copyable && !s && console.warn(
1454
+ variant: t.variant
1455
+ }, i = /* @__PURE__ */ a(fe, { ...g, disabled: t.disabled });
1456
+ return t.copyable && !s && console.warn(
1457
1457
  "BwgSelect: copyable 기능은 Form 컨텍스트 내에서만 사용 가능합니다."
1458
- ), r.copyable ? /* @__PURE__ */ a(T, { ...e, name: void 0, children: /* @__PURE__ */ K(ae.Compact, { block: !0, children: [
1458
+ ), t.copyable ? /* @__PURE__ */ a(T, { ...e, name: void 0, children: /* @__PURE__ */ P(ae.Compact, { block: !0, children: [
1459
1459
  /* @__PURE__ */ a(
1460
1460
  E.Item,
1461
1461
  {
@@ -1489,25 +1489,25 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1489
1489
  }
1490
1490
  )
1491
1491
  ] }) }) : /* @__PURE__ */ a(T, { ...e, children: i });
1492
- }, Pt = ({
1492
+ }, Kt = ({
1493
1493
  itemProps: e,
1494
- inputProps: r = {
1494
+ inputProps: t = {
1495
1495
  format: "YN"
1496
1496
  }
1497
1497
  }) => {
1498
- const f = E.useFormInstance(), s = (t, l) => {
1499
- r.format === "boolean" ? f.setFieldValue(e?.name, t) : f.setFieldValue(e?.name, t ? "Y" : "N"), r.onChange && r.onChange(t, l);
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);
1500
1500
  };
1501
1501
  return /* @__PURE__ */ a(
1502
1502
  T,
1503
1503
  {
1504
1504
  ...e,
1505
- getValueProps: (t) => ({ checked: r.format === "boolean" ? !!t : t === "Y" }),
1506
- normalize: (t) => typeof t == "boolean" ? r.format === "boolean" ? t : t ? "Y" : "N" : r.format === "boolean" ? !!t : t ? "Y" : "N",
1507
- children: /* @__PURE__ */ a(Ee, { ...r, onChange: (t, l) => s(t, l) })
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) })
1508
1508
  }
1509
1509
  );
1510
- }, { TextArea: ft } = q, Kt = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(ft, { ...r }) }), mt = [
1510
+ }, { TextArea: ft } = q, Pt = ({ itemProps: e, inputProps: t }) => /* @__PURE__ */ a(T, { ...e, children: /* @__PURE__ */ a(ft, { ...t }) }), mt = [
1511
1511
  ".pdf",
1512
1512
  ".xlsx",
1513
1513
  ".xls",
@@ -1529,12 +1529,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1529
1529
  FILE: "file"
1530
1530
  }, gt = ({
1531
1531
  originNode: e,
1532
- file: r,
1532
+ file: t,
1533
1533
  fileList: f,
1534
1534
  moveFile: s,
1535
- onDrop: t
1535
+ onDrop: r
1536
1536
  }) => {
1537
- const l = P(null), [{ handlerId: g }, i] = et({
1537
+ const l = K(null), [{ handlerId: g }, i] = et({
1538
1538
  accept: Ye.FILE,
1539
1539
  collect: (Y) => ({
1540
1540
  handlerId: Y.getHandlerId()
@@ -1542,7 +1542,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1542
1542
  hover(Y, F) {
1543
1543
  if (!l.current)
1544
1544
  return;
1545
- const v = Y.uid, V = r.uid;
1545
+ const v = Y.uid, V = t.uid;
1546
1546
  if (v === V)
1547
1547
  return;
1548
1548
  const R = ne(f, { uid: V }), N = ne(f, { uid: v });
@@ -1555,13 +1555,13 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1555
1555
  N < R && x < L || N > R && x > L || s(v, V);
1556
1556
  },
1557
1557
  drop() {
1558
- t();
1558
+ r();
1559
1559
  }
1560
1560
  }), [{ isDragging: y }, c] = tt({
1561
1561
  type: Ye.FILE,
1562
1562
  item: () => ({
1563
- uid: r.uid,
1564
- index: ne(f, { uid: r.uid })
1563
+ uid: t.uid,
1564
+ index: ne(f, { uid: t.uid })
1565
1565
  }),
1566
1566
  collect: (Y) => ({
1567
1567
  isDragging: Y.isDragging()
@@ -1570,10 +1570,10 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1570
1570
  return c(i(l)), /* @__PURE__ */ a("div", { ref: l, style: { opacity: u }, "data-handler-id": g, children: e });
1571
1571
  }, Gt = ({
1572
1572
  itemProps: e,
1573
- fileGrpKey: r,
1573
+ fileGrpKey: t,
1574
1574
  onUploadComplete: f,
1575
1575
  onFetchFilesTrxCd: s = "SCMFILE00101",
1576
- onSuccessTrxCd: t = "SCMFILE00102",
1576
+ onSuccessTrxCd: r = "SCMFILE00102",
1577
1577
  onDeleteFileTrxCd: l = "SCMFILE00103",
1578
1578
  onReorderFilesTrxCd: g = "SCMFILE00104",
1579
1579
  allowedExtensions: i = mt,
@@ -1586,12 +1586,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1586
1586
  localOnly: v = !1,
1587
1587
  onFilesChange: V
1588
1588
  }) => {
1589
- const [R, N] = j([]), M = P(r), h = P([]), L = E.useFormInstance(), $ = P(
1589
+ const [R, N] = j([]), M = K(t), h = K([]), L = E.useFormInstance(), $ = K(
1590
1590
  Xe(() => {
1591
1591
  if (v || h.current.length === 0)
1592
1592
  return;
1593
1593
  const n = [...h.current];
1594
- if (h.current = [], t) {
1594
+ if (h.current = [], r) {
1595
1595
  const m = n.map((p) => ({
1596
1596
  crprCd: te()?.crprCd,
1597
1597
  sysCd: __SYS_CD__,
@@ -1606,7 +1606,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1606
1606
  console.log("newFileGrpKeyonModify", Y), console.log(
1607
1607
  "newFileGrpKeyonModify",
1608
1608
  Y ? 0 : M.current
1609
- ), J(t, {
1609
+ ), J(r, {
1610
1610
  crprCd: te()?.crprCd,
1611
1611
  sysCd: __SYS_CD__,
1612
1612
  fileGrpKey: Y ? 0 : M.current,
@@ -1675,12 +1675,12 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1675
1675
  G(() => () => {
1676
1676
  $.cancel();
1677
1677
  }, [$]), G(() => {
1678
- M.current = r;
1679
- }, [r]), G(() => {
1680
- v || r && s && J(s, {
1678
+ M.current = t;
1679
+ }, [t]), G(() => {
1680
+ v || t && s && J(s, {
1681
1681
  crprCd: te()?.crprCd,
1682
1682
  sysCd: __SYS_CD__,
1683
- fileGrpKey: r
1683
+ fileGrpKey: t
1684
1684
  }).then((n) => {
1685
1685
  if (n?.sub) {
1686
1686
  const m = n.sub.map((d) => ({
@@ -1697,19 +1697,19 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1697
1697
  }).catch((n) => {
1698
1698
  console.error("파일 목록 조회 서비스 호출에 실패했습니다.", n), z.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
1699
1699
  });
1700
- }, [r, s]);
1700
+ }, [t, s]);
1701
1701
  const o = (n, m) => {
1702
1702
  const p = e?.name, d = I ? L?.getFieldValue(p) || [] : R, A = ne(d, { uid: n }), k = ne(d, { uid: m });
1703
1703
  if (A < 0 || k < 0) return;
1704
1704
  const b = [...d], [S] = b.splice(A, 1);
1705
1705
  b.splice(k, 0, S), I ? L?.setFieldValue(p, b) : N(b);
1706
1706
  }, C = () => {
1707
- if (!v && r && g) {
1707
+ if (!v && t && g) {
1708
1708
  const n = e?.name, p = (I ? L?.getFieldValue(n) || [] : R).map((d) => d.uid);
1709
1709
  J(g, {
1710
1710
  crprCd: te()?.crprCd,
1711
1711
  sysCd: __SYS_CD__,
1712
- fileGrpKey: r,
1712
+ fileGrpKey: t,
1713
1713
  reorderedFileKeys: p
1714
1714
  }).then(() => {
1715
1715
  z.success("파일 순서가 성공적으로 저장되었습니다.");
@@ -1832,25 +1832,25 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1832
1832
  }
1833
1833
  ) });
1834
1834
  }, ht = q.Search, Wt = (e) => {
1835
- const r = E.useFormInstance(), { openCorePopup: f } = Je(), s = {
1836
- value: "empNm",
1837
- fieldName: "empNm",
1838
- placeholder: "사원명"
1839
- }, t = {
1835
+ const t = E.useFormInstance(), { openCorePopup: f } = Je(), s = {
1840
1836
  value: "deptNm",
1841
1837
  fieldName: "deptNm",
1842
- placeholder: "부서"
1843
- }, l = e.field1 || s, g = e.field2 || t, i = ce(
1838
+ placeholder: "부서명"
1839
+ }, r = {
1840
+ value: "empNm",
1841
+ fieldName: "empNm",
1842
+ placeholder: "사원명 입력"
1843
+ }, l = e.field1 || s, g = e.field2 || r, i = ce(
1844
1844
  (u) => {
1845
- r.setFieldValue(e.employeeFieldName || "employee", u), r.setFieldValue(e.empNoFieldName || "empNo", u.empNo ?? ""), r.setFieldValue(
1845
+ t.setFieldValue(e.employeeFieldName || "employee", u), t.setFieldValue(e.empNoFieldName || "empNo", u.empNo ?? ""), t.setFieldValue(
1846
1846
  l.fieldName,
1847
- u[l.value || "empNm"] ?? ""
1848
- ), r.setFieldValue(
1847
+ u[l.value || "deptNm"] ?? ""
1848
+ ), t.setFieldValue(
1849
1849
  g.fieldName,
1850
- u[g.value || "deptNm"] ?? ""
1850
+ u[g.value || "empNm"] ?? ""
1851
1851
  ), e.onFinish?.();
1852
1852
  },
1853
- [r, l, g, e.employeeFieldName]
1853
+ [t, l, g, e.employeeFieldName]
1854
1854
  ), y = ce(
1855
1855
  (u) => {
1856
1856
  f("CORE_ORGANIZATION_01", {
@@ -1895,7 +1895,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1895
1895
  },
1896
1896
  [i, y]
1897
1897
  );
1898
- return /* @__PURE__ */ a(T, { label: e.label || "사원", name: void 0, children: /* @__PURE__ */ K(ae.Compact, { block: !0, children: [
1898
+ return /* @__PURE__ */ a(T, { label: e.label || "사원", name: void 0, children: /* @__PURE__ */ P(ae.Compact, { block: !0, children: [
1899
1899
  /* @__PURE__ */ a(
1900
1900
  E.Item,
1901
1901
  {
@@ -1944,7 +1944,7 @@ const Et = ({ itemProps: e, inputProps: r }) => /* @__PURE__ */ a(T, { ...e, chi
1944
1944
  ),
1945
1945
  onSearch: c,
1946
1946
  onChange: (u) => {
1947
- r.setFieldValue(e.empNoFieldName || "empNo", ""), r.setFieldValue(l.fieldName, ""), r.setFieldValue(g.fieldName, u.target.value), r.setFieldValue(e.employeeFieldName || "employee", null);
1947
+ t.setFieldValue(l.fieldName, ""), t.setFieldValue(e.employeeFieldName || "employee", null), t.setFieldValue(e.empNoFieldName || "empNo", "");
1948
1948
  }
1949
1949
  }
1950
1950
  )
@@ -1972,7 +1972,7 @@ export {
1972
1972
  Tt as BwgRangePicker,
1973
1973
  jt as BwgSearch,
1974
1974
  Ht as BwgSelect,
1975
- Pt as BwgSwitch,
1976
- Kt as BwgTextArea,
1975
+ Kt as BwgSwitch,
1976
+ Pt as BwgTextArea,
1977
1977
  Gt as BwgUploader
1978
1978
  };