@bwg-ui/core 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/chunks/{CMSearchIntfGwP01-BWm9OqAH.js → CMSearchIntfGwP01-Co6lrDf9.js} +9 -9
  2. package/dist/chunks/CMSearchIntfGwP01-Do_ZDjmX.cjs +1 -0
  3. package/dist/chunks/{MenuReport-yYhMOHyq.js → MenuReport-BTtoDFz-.js} +146 -141
  4. package/dist/chunks/MenuReport-Bn5NyNel.cjs +1 -0
  5. package/dist/chunks/{common-components-coAoWxE9.js → common-components-0IMhPxxg.js} +11604 -10999
  6. package/dist/chunks/common-components-Csd3OioX.cjs +1109 -0
  7. package/dist/chunks/core-components-CX6NGtTh.cjs +1 -0
  8. package/dist/chunks/core-components-Ckwf4Rd7.js +1969 -0
  9. package/dist/chunks/layout-components-BMLp8YAy.cjs +38 -0
  10. package/dist/chunks/{layout-components-C1DG2B74.js → layout-components-DphZY34c.js} +954 -737
  11. package/dist/components/common/BwgDetail.d.ts.map +1 -1
  12. package/dist/components/common/BwgGrid.d.ts.map +1 -1
  13. package/dist/components/common/index.cjs +1 -1
  14. package/dist/components/common/index.js +1 -1
  15. package/dist/components/core/BwgEmpSearch.d.ts +28 -0
  16. package/dist/components/core/BwgEmpSearch.d.ts.map +1 -0
  17. package/dist/components/core/index.cjs +1 -1
  18. package/dist/components/core/index.js +22 -1846
  19. package/dist/components/guide/index.cjs +1 -1
  20. package/dist/components/guide/index.js +13 -13
  21. package/dist/components/layout/AppWrapper.d.ts +2 -1
  22. package/dist/components/layout/AppWrapper.d.ts.map +1 -1
  23. package/dist/components/layout/BwgCoreLogin.d.ts +1 -2
  24. package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -1
  25. package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
  26. package/dist/components/layout/BwgSessionNotice.d.ts +15 -0
  27. package/dist/components/layout/BwgSessionNotice.d.ts.map +1 -0
  28. package/dist/components/layout/BwgSsoLogin.d.ts +19 -0
  29. package/dist/components/layout/BwgSsoLogin.d.ts.map +1 -0
  30. package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
  31. package/dist/components/layout/custom/ConfigurableMenuTab.d.ts.map +1 -1
  32. package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
  33. package/dist/components/layout/default/LoadingContainer.d.ts.map +1 -1
  34. package/dist/components/layout/index.cjs +1 -1
  35. package/dist/components/layout/index.d.ts +2 -0
  36. package/dist/components/layout/index.d.ts.map +1 -1
  37. package/dist/components/layout/index.js +16 -14
  38. package/dist/components/pages/board/CMAdminBoardM01.d.ts.map +1 -1
  39. package/dist/components/pages/board/CMMyBoardM01.d.ts.map +1 -1
  40. package/dist/components/popup/MenuReport.d.ts.map +1 -1
  41. package/dist/components/popup/SearchOrganizationP01.d.ts +1 -1
  42. package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
  43. package/dist/components/popup/index.cjs +1 -1
  44. package/dist/components/popup/index.js +1 -1
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.js +160 -157
  47. package/dist/stores/index.cjs +2 -2
  48. package/dist/stores/index.d.ts +8 -3
  49. package/dist/stores/index.d.ts.map +1 -1
  50. package/dist/stores/index.js +416 -367
  51. package/dist/stores/loginStore.d.ts +55 -10
  52. package/dist/stores/loginStore.d.ts.map +1 -1
  53. package/dist/stores/menuViewStore.d.ts +6 -2
  54. package/dist/stores/menuViewStore.d.ts.map +1 -1
  55. package/dist/stores/userStore.d.ts +1 -2
  56. package/dist/stores/userStore.d.ts.map +1 -1
  57. package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
  58. package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
  59. package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
  60. package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
  61. package/dist/utils/index.cjs +1 -1
  62. package/dist/utils/index.d.ts.map +1 -1
  63. package/dist/utils/index.js +455 -454
  64. package/package.json +1 -1
  65. package/dist/chunks/CMSearchIntfGwP01-CihGc5Q1.cjs +0 -1
  66. package/dist/chunks/MenuReport-khjaUz1Q.cjs +0 -1
  67. package/dist/chunks/common-components-DletnDTf.cjs +0 -1109
  68. package/dist/chunks/layout-components-C6KeWPIu.cjs +0 -35
@@ -1,19 +1,19 @@
1
1
  import { jsx as e, Fragment as k, jsxs as n } from "react/jsx-runtime";
2
- import { AlertTwoTone as se, ReloadOutlined as ae, DeleteOutlined as ze, EyeFilled as Oe, EditOutlined as Le } from "@ant-design/icons";
3
- import { Form as d, Tag as oe, message as g, Row as x, Col as l, Space as D, Input as a, Splitter as W, Flex as Ve, Progress as Ae, Button as z, List as H, Avatar as Ue, DatePicker as de } from "antd";
4
- import Ye from "dayjs";
5
- import { useRef as O, useState as b, useMemo as J, useEffect as E } from "react";
6
- import { useUserStore as Ge, useMenuViewStore as je } from "../stores/index.js";
7
- import { m as qe, d as L, S as Qe, h as We, n as He, o as ce } from "./common-components-coAoWxE9.js";
8
- import { createBwgGridRenderer as $, callService as S, realFormat as K } from "../utils/index.js";
9
- import { BwgFormItem as I, BwgSelect as V, BwgRangePicker as Je, BwgSwitch as $e, BwgInput as Ke, BwgDatePicker as X, BwgCheck as me, BwgForm as Xe } from "../components/core/index.js";
10
- import { e as Ze } from "./provider-VCa8UGvF.js";
11
- const { TextArea: _e } = a, A = [
2
+ import { AlertTwoTone as se, ReloadOutlined as ae, DeleteOutlined as Oe, EyeFilled as Le, EditOutlined as Ve } from "@ant-design/icons";
3
+ import { Form as d, Tag as oe, message as g, Row as x, Col as l, Space as D, Input as a, Splitter as W, Flex as Ue, Progress as Ae, Button as z, List as H, Avatar as Ye, DatePicker as de } from "antd";
4
+ import je from "dayjs";
5
+ import { useRef as O, useState as b, useMemo as J, useEffect as M } from "react";
6
+ import { useUserStore as Ge, useMenuViewStore as qe } from "../stores/index.js";
7
+ import { m as Qe, d as L, S as We, h as He, n as Je, o as ce } from "./common-components-0IMhPxxg.js";
8
+ import { createBwgGridRenderer as $, callService as w, realFormat as K } from "../utils/index.js";
9
+ import { d as C, c as V, j as $e, u as Ke, b as Xe, i as X, k as me, a as Ze } from "./core-components-Ckwf4Rd7.js";
10
+ import { e as _e } from "./provider-VCa8UGvF.js";
11
+ const { TextArea: et } = a, U = [
12
12
  { label: "요청", value: "RQST" },
13
13
  { label: "문의", value: "INQR" }
14
14
  // { label: '신고', value: 'RPRT' },
15
15
  // { label: '건의', value: 'SGSN' },
16
- ], et = {
16
+ ], tt = {
17
17
  INQR: "blue",
18
18
  RQST: "green",
19
19
  RPRT: "red",
@@ -24,47 +24,47 @@ const { TextArea: _e } = a, A = [
24
24
  { label: "처리중", value: "PROCESSING" },
25
25
  { label: "처리완료", value: "COMPLETED" },
26
26
  { label: "반려", value: "REJECTED" }
27
- ], tt = {
27
+ ], rt = {
28
28
  READY: "gray",
29
29
  ASSIGNED: "blue",
30
30
  PROCESSING: "yellow",
31
31
  COMPLETED: "green",
32
32
  REJECTED: "red"
33
- }, he = {
33
+ }, pe = {
34
34
  READY: 0,
35
35
  ASSIGNED: 25,
36
36
  PROCESSING: 50,
37
37
  COMPLETED: 100,
38
38
  REJECTED: 100
39
- }, ht = ({ popup: w, onClose: Z }) => {
40
- const { searchBoxRef: B } = Ze(), N = O(null), U = O(null), { user: v } = Ge(), { activeMenuItem: m } = je(), [i] = d.useForm(), [_, ee] = b(!1), [te, re] = b(!1), [T, pe] = b(!1), [y, ge] = b(!1), [o, M] = b(!1), [c, C] = b(
39
+ }, ht = ({ popup: E, onClose: Z }) => {
40
+ const { searchBoxRef: S } = _e(), N = O(null), A = O(null), { user: B, hrInfo: he } = Ge(), { activeMenuItem: m } = qe(), [i] = d.useForm(), [_, ee] = b(!1), [te, re] = b(!1), [T, ge] = b(!1), [y, fe] = b(!1), [o, v] = b(!1), [c, I] = b(
41
41
  "list"
42
42
  );
43
43
  b(null);
44
- const F = O(null), [Y, ne] = b([]), [P, le] = b(""), [G, rt] = b(!1), [fe, j] = b(15), q = O(null), ye = J(
44
+ const F = O(null), [Y, ne] = b([]), [P, le] = b(""), [j, nt] = b(!1), [ye, G] = b(15), q = O(null), xe = J(
45
45
  () => $(
46
- (t, r, s, h, p) => {
46
+ (t, r, s, p, h) => {
47
47
  const f = t.getValue(r.index?.itemIndex, "type");
48
- p.render(
49
- /* @__PURE__ */ e(oe, { color: et[f], children: A.find((R) => R.value === f)?.label })
48
+ h.render(
49
+ /* @__PURE__ */ e(oe, { color: tt[f], children: U.find((R) => R.value === f)?.label })
50
50
  );
51
51
  }
52
52
  ),
53
53
  []
54
- ), xe = J(
54
+ ), be = J(
55
55
  () => $(
56
- (t, r, s, h, p) => {
56
+ (t, r, s, p, h) => {
57
57
  const f = t.getValue(r.index?.itemIndex, "status");
58
- p.render(
59
- /* @__PURE__ */ e(oe, { color: tt[f], children: ue.find((R) => R.value === f)?.label })
58
+ h.render(
59
+ /* @__PURE__ */ e(oe, { color: rt[f], children: ue.find((R) => R.value === f)?.label })
60
60
  );
61
61
  }
62
62
  ),
63
63
  []
64
- ), be = J(
64
+ ), Ce = J(
65
65
  () => $(
66
- (t, r, s, h, p) => {
67
- t.getValue(r.index?.itemIndex, "urgentYn") === "Y" ? p.render(/* @__PURE__ */ e(se, { twoToneColor: "red" })) : p.render(/* @__PURE__ */ e(k, {}));
66
+ (t, r, s, p, h) => {
67
+ t.getValue(r.index?.itemIndex, "urgentYn") === "Y" ? h.render(/* @__PURE__ */ e(se, { twoToneColor: "red" })) : h.render(/* @__PURE__ */ e(k, {}));
68
68
  }
69
69
  ),
70
70
  []
@@ -108,6 +108,10 @@ const { TextArea: _e } = a, A = [
108
108
  header: { text: "등록자" },
109
109
  width: 100
110
110
  },
111
+ {
112
+ fieldName: "rgstUserDeptNm",
113
+ visible: !1
114
+ },
111
115
  {
112
116
  fieldName: "rgstDt",
113
117
  header: { text: "등록일자" },
@@ -153,24 +157,24 @@ const { TextArea: _e } = a, A = [
153
157
  width: 100,
154
158
  visible: !1
155
159
  }
156
- ], Ce = {
160
+ ], we = {
157
161
  onCellDblClicked: (t, r) => {
158
162
  const s = r.itemIndex ?? -1;
159
163
  if (s < 0) return;
160
- const h = t.getValues(s);
161
- console.log("🔍 그리드 셀 더블클릭 이벤트:", h);
162
- const p = {
163
- ...h,
164
+ const p = t.getValues(s);
165
+ console.log("🔍 그리드 셀 더블클릭 이벤트:", p);
166
+ const h = {
167
+ ...p,
164
168
  menuId: m?.menuId,
165
169
  menuNm: m?.menuNm,
166
170
  scrnId: m?.scrnId
167
171
  };
168
- i.setFieldsValue(p), pe(p.rgstUserId === v?.userId), ge(
169
- p.status === "COMPLETED" || p.status === "REJECTED"
170
- ), C("detail");
172
+ i.setFieldsValue(h), ge(h.rgstUserId === B?.userId), fe(
173
+ h.status === "COMPLETED" || h.status === "REJECTED"
174
+ ), I("detail");
171
175
  }
172
176
  }, Q = () => {
173
- i.resetFields(), C("list"), u.SCMBoardMstr0001(1, 20);
177
+ i.resetFields(), I("list"), u.SCMBoardMstr0001(1, 20);
174
178
  }, ie = async (t) => {
175
179
  ee(!0);
176
180
  try {
@@ -182,19 +186,19 @@ const { TextArea: _e } = a, A = [
182
186
  } finally {
183
187
  ee(!1);
184
188
  }
185
- }, we = () => {
186
- u.SCMBoardMstr0005();
187
189
  }, Se = () => {
188
- B?.current?.resetForm(), i.resetFields(), c === "new" ? C("list") : (C("list"), w?.close?.() || Z?.());
190
+ u.SCMBoardMstr0005();
189
191
  }, Be = () => {
190
- B?.current?.resetForm(), i.resetFields(), C("list"), w?.close?.() || Z?.();
192
+ S?.current?.resetForm(), i.resetFields(), c === "new" ? I("list") : (I("list"), Z?.());
191
193
  }, ve = () => {
192
- (c === "detail" || c === "new") && C("list");
193
- }, Me = () => {
194
- i.resetFields(), C("new");
194
+ S?.current?.resetForm(), i.resetFields(), I("list"), Z?.();
195
195
  }, De = () => {
196
- console.log("댓글 수동 새로고침"), j(15);
196
+ (c === "detail" || c === "new") && I("list");
197
+ }, Me = () => {
198
+ i.resetFields(), I("new");
197
199
  }, Ee = () => {
200
+ console.log("댓글 수동 새로고침"), G(15);
201
+ }, Ne = () => {
198
202
  if (!P.trim()) {
199
203
  g.warning("댓글 상세내용 작성");
200
204
  return;
@@ -205,27 +209,27 @@ const { TextArea: _e } = a, A = [
205
209
  ), le(""), setTimeout(() => {
206
210
  F.current && (F.current.scrollTop = F.current.scrollHeight);
207
211
  }, 100);
208
- }, Ne = (t) => {
212
+ }, Pe = (t) => {
209
213
  const r = Y.find((s) => s.id === t);
210
- if (r && r.regUserId !== v?.userId) {
214
+ if (r && r.regUserId !== B?.userId) {
211
215
  g.error("본인이 작성한 댓글만 삭제할 수 있습니다.");
212
216
  return;
213
217
  }
214
218
  u.SCMBoardDtls0003(i.getFieldValue("boardMstrId"), t);
215
219
  };
216
- E(() => {
217
- w && setTimeout(() => {
220
+ M(() => {
221
+ E && setTimeout(() => {
218
222
  u.SCMBoardMstr0001(1, 20);
219
223
  }, 100);
220
- }, [w]);
221
- const Pe = () => /* @__PURE__ */ n(L, { border: !1, children: [
224
+ }, [E]);
225
+ const Re = () => /* @__PURE__ */ n(L, { border: !1, children: [
222
226
  /* @__PURE__ */ e(
223
- Qe,
227
+ We,
224
228
  {
225
229
  border: !0,
226
- ref: B,
230
+ ref: S,
227
231
  reqRows: /* @__PURE__ */ n(k, { children: [
228
- /* @__PURE__ */ e(x, { gutter: [16, 8], style: { marginBottom: "8px" }, children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(I, { label: "화면 정보", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
232
+ /* @__PURE__ */ e(x, { gutter: [16, 8], style: { marginBottom: "8px" }, children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(C, { label: "화면 정보", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
229
233
  /* @__PURE__ */ e(
230
234
  d.Item,
231
235
  {
@@ -258,12 +262,12 @@ const { TextArea: _e } = a, A = [
258
262
  name: "type"
259
263
  },
260
264
  selectProps: {
261
- options: A
265
+ options: U
262
266
  }
263
267
  }
264
268
  ) }),
265
269
  /* @__PURE__ */ e(l, { span: 12, children: /* @__PURE__ */ e(
266
- Je,
270
+ $e,
267
271
  {
268
272
  itemProps: {
269
273
  label: "등록일자",
@@ -275,7 +279,7 @@ const { TextArea: _e } = a, A = [
275
279
  }
276
280
  ) }),
277
281
  /* @__PURE__ */ e(l, { span: 6, children: /* @__PURE__ */ e(
278
- $e,
282
+ Ke,
279
283
  {
280
284
  itemProps: {
281
285
  name: "myArticle",
@@ -289,7 +293,7 @@ const { TextArea: _e } = a, A = [
289
293
  ) })
290
294
  ] }),
291
295
  /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(
292
- Ke,
296
+ Xe,
293
297
  {
294
298
  itemProps: {
295
299
  label: "제목 및 내용",
@@ -301,30 +305,30 @@ const { TextArea: _e } = a, A = [
301
305
  }
302
306
  ),
303
307
  /* @__PURE__ */ e(
304
- We,
308
+ He,
305
309
  {
306
310
  ref: q,
307
311
  gridColumns: Ie,
308
- gridEvents: Ce,
312
+ gridEvents: we,
309
313
  gridOptions: {},
310
314
  renderers: [
311
315
  {
312
316
  name: "tagType",
313
- renderer: ye
317
+ renderer: xe
314
318
  },
315
319
  {
316
320
  name: "statusTag",
317
- renderer: xe
321
+ renderer: be
318
322
  },
319
323
  {
320
324
  name: "alert",
321
- renderer: be
325
+ renderer: Ce
322
326
  }
323
327
  ]
324
328
  }
325
329
  ),
326
330
  /* @__PURE__ */ e(
327
- He,
331
+ Je,
328
332
  {
329
333
  ref: N,
330
334
  mode: "server",
@@ -334,7 +338,7 @@ const { TextArea: _e } = a, A = [
334
338
  pageSizeOptions: [10, 20, 50, 100]
335
339
  }
336
340
  )
337
- ] }), Re = () => /* @__PURE__ */ n(W, { children: [
341
+ ] }), Te = () => /* @__PURE__ */ n(W, { children: [
338
342
  /* @__PURE__ */ e(
339
343
  W.Panel,
340
344
  {
@@ -361,12 +365,12 @@ const { TextArea: _e } = a, A = [
361
365
  V,
362
366
  {
363
367
  itemProps: { name: "type", label: "구분" },
364
- selectProps: { options: A }
368
+ selectProps: { options: U }
365
369
  }
366
370
  )
367
371
  ] }),
368
372
  /* @__PURE__ */ n(l, { span: 16, children: [
369
- /* @__PURE__ */ e(I, { label: "화면 정보", name: void 0, children: /* @__PURE__ */ n(D.Compact, { children: [
373
+ /* @__PURE__ */ e(C, { label: "화면 정보", name: void 0, children: /* @__PURE__ */ n(D.Compact, { children: [
370
374
  /* @__PURE__ */ e(
371
375
  d.Item,
372
376
  {
@@ -394,11 +398,11 @@ const { TextArea: _e } = a, A = [
394
398
  ] })
395
399
  ] }),
396
400
  /* @__PURE__ */ n(x, { gutter: [16, 8], children: [
397
- /* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(I, { label: "작성자", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
401
+ /* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(C, { label: "작성자", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
398
402
  /* @__PURE__ */ e(
399
403
  d.Item,
400
404
  {
401
- name: "rgstUserId",
405
+ name: "rgstUserDeptNm",
402
406
  style: {
403
407
  width: "40%",
404
408
  marginBottom: 0,
@@ -446,15 +450,15 @@ const { TextArea: _e } = a, A = [
446
450
  }
447
451
  }
448
452
  ) }),
449
- /* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ n(Ve, { vertical: !0, gap: 2, children: [
453
+ /* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ n(Ue, { vertical: !0, gap: 2, children: [
450
454
  /* @__PURE__ */ e("span", { style: { fontSize: "12px", color: "#000000E0" }, children: "진척률" }),
451
455
  /* @__PURE__ */ e(
452
456
  Ae,
453
457
  {
454
- percent: he[i.getFieldValue(
458
+ percent: pe[i.getFieldValue(
455
459
  "status"
456
460
  )],
457
- status: he[i.getFieldValue(
461
+ status: pe[i.getFieldValue(
458
462
  "status"
459
463
  )] > 0 ? "active" : "normal",
460
464
  size: "small",
@@ -470,7 +474,7 @@ const { TextArea: _e } = a, A = [
470
474
  ) })
471
475
  ] }),
472
476
  /* @__PURE__ */ n(x, { gutter: [16, 8], children: [
473
- /* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(I, { label: "처리담당자", name: void 0, help: "", children: /* @__PURE__ */ n(D.Compact, { children: [
477
+ /* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(C, { label: "처리담당자", name: void 0, help: "", children: /* @__PURE__ */ n(D.Compact, { children: [
474
478
  /* @__PURE__ */ e(
475
479
  d.Item,
476
480
  {
@@ -505,7 +509,7 @@ const { TextArea: _e } = a, A = [
505
509
  ) })
506
510
  ] }),
507
511
  /* @__PURE__ */ e(x, { gutter: [16, 8], children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(
508
- I,
512
+ C,
509
513
  {
510
514
  label: "제목",
511
515
  name: "title",
@@ -570,9 +574,9 @@ const { TextArea: _e } = a, A = [
570
574
  z,
571
575
  {
572
576
  type: "text",
573
- icon: /* @__PURE__ */ e(ae, { spin: G || o }),
574
- onClick: De,
575
- disabled: G || o,
577
+ icon: /* @__PURE__ */ e(ae, { spin: j || o }),
578
+ onClick: Ee,
579
+ disabled: j || o,
576
580
  size: "small",
577
581
  style: {
578
582
  fontSize: "12px",
@@ -591,7 +595,7 @@ const { TextArea: _e } = a, A = [
591
595
  right: "-4px",
592
596
  fontSize: "10px",
593
597
  fontWeight: "700",
594
- color: G ? "#8c8c8c" : "#1890ff",
598
+ color: j ? "#8c8c8c" : "#1890ff",
595
599
  minWidth: "14px",
596
600
  height: "14px",
597
601
  lineHeight: "14px",
@@ -599,7 +603,7 @@ const { TextArea: _e } = a, A = [
599
603
  borderRadius: "50%",
600
604
  pointerEvents: "none"
601
605
  },
602
- children: fe
606
+ children: ye
603
607
  }
604
608
  )
605
609
  ] })
@@ -664,7 +668,7 @@ const { TextArea: _e } = a, A = [
664
668
  H.Item.Meta,
665
669
  {
666
670
  avatar: /* @__PURE__ */ e(
667
- Ue,
671
+ Ye,
668
672
  {
669
673
  size: 32,
670
674
  style: {
@@ -721,14 +725,14 @@ const { TextArea: _e } = a, A = [
721
725
  )
722
726
  }
723
727
  ),
724
- t.regUserId === v?.userId && /* @__PURE__ */ e(
728
+ t.regUserId === B?.userId && /* @__PURE__ */ e(
725
729
  z,
726
730
  {
727
731
  type: "text",
728
732
  danger: !0,
729
- icon: /* @__PURE__ */ e(ze, { style: { fontSize: "12px" } }),
733
+ icon: /* @__PURE__ */ e(Oe, { style: { fontSize: "12px" } }),
730
734
  size: "small",
731
- onClick: () => Ne(t.id),
735
+ onClick: () => Pe(t.id),
732
736
  disabled: o,
733
737
  style: {
734
738
  position: "absolute",
@@ -786,7 +790,7 @@ const { TextArea: _e } = a, A = [
786
790
  }
787
791
  ) : /* @__PURE__ */ n(k, { children: [
788
792
  /* @__PURE__ */ e("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ e(
789
- _e,
793
+ et,
790
794
  {
791
795
  rows: 2,
792
796
  placeholder: o ? "댓글 처리 중..." : "댓글을 입력하세요...",
@@ -824,7 +828,7 @@ const { TextArea: _e } = a, A = [
824
828
  z,
825
829
  {
826
830
  type: "primary",
827
- onClick: Ee,
831
+ onClick: Ne,
828
832
  size: "small",
829
833
  loading: o,
830
834
  style: {
@@ -847,8 +851,8 @@ const { TextArea: _e } = a, A = [
847
851
  ]
848
852
  }
849
853
  ) })
850
- ] }), Te = () => /* @__PURE__ */ e(L, { children: /* @__PURE__ */ n(
851
- Xe,
854
+ ] }), Fe = () => /* @__PURE__ */ e(L, { children: /* @__PURE__ */ n(
855
+ Ze,
852
856
  {
853
857
  form: i,
854
858
  onFinish: ie,
@@ -868,11 +872,11 @@ const { TextArea: _e } = a, A = [
868
872
  label: "구분",
869
873
  rules: [{ required: !0, message: "구분을 선택해주세요." }]
870
874
  },
871
- selectProps: { options: A }
875
+ selectProps: { options: U }
872
876
  }
873
877
  ) }),
874
878
  /* @__PURE__ */ n(l, { span: 16, children: [
875
- /* @__PURE__ */ e(I, { label: "화면 정보", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
879
+ /* @__PURE__ */ e(C, { label: "화면 정보", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
876
880
  /* @__PURE__ */ e(
877
881
  d.Item,
878
882
  {
@@ -900,11 +904,11 @@ const { TextArea: _e } = a, A = [
900
904
  ] })
901
905
  ] }),
902
906
  /* @__PURE__ */ n(x, { gutter: [16, 8], children: [
903
- /* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(I, { label: "작성자", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
907
+ /* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(C, { label: "작성자", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
904
908
  /* @__PURE__ */ e(
905
909
  d.Item,
906
910
  {
907
- name: "rgstUserId",
911
+ name: "rgstUserNm",
908
912
  style: {
909
913
  width: "40%",
910
914
  marginBottom: 0,
@@ -918,14 +922,14 @@ const { TextArea: _e } = a, A = [
918
922
  /* @__PURE__ */ e(
919
923
  d.Item,
920
924
  {
921
- name: "rgstUserNm",
925
+ name: "rgstUserDeptNm",
922
926
  style: { width: "60%", marginBottom: 0 },
923
927
  children: /* @__PURE__ */ e(a, { readOnly: !0 })
924
928
  }
925
929
  )
926
930
  ] }) }) }),
927
931
  /* @__PURE__ */ e(l, { span: 6, children: /* @__PURE__ */ e(
928
- I,
932
+ C,
929
933
  {
930
934
  label: "작성일자",
931
935
  name: "rgstDt",
@@ -934,7 +938,7 @@ const { TextArea: _e } = a, A = [
934
938
  }
935
939
  ) }),
936
940
  /* @__PURE__ */ e(l, { span: 6, children: /* @__PURE__ */ e(
937
- I,
941
+ C,
938
942
  {
939
943
  label: "마감요청일",
940
944
  name: "dueDate",
@@ -950,7 +954,7 @@ const { TextArea: _e } = a, A = [
950
954
  ) })
951
955
  ] }),
952
956
  /* @__PURE__ */ e(x, { gutter: [16, 8], children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(
953
- I,
957
+ C,
954
958
  {
955
959
  label: "제목",
956
960
  name: "title",
@@ -968,13 +972,13 @@ const { TextArea: _e } = a, A = [
968
972
  isEditing: te,
969
973
  title: {
970
974
  title: /* @__PURE__ */ n(k, { children: [
971
- /* @__PURE__ */ e(Le, { style: { marginRight: "5px" } }),
975
+ /* @__PURE__ */ e(Ve, { style: { marginRight: "5px" } }),
972
976
  " 상세내용 작성"
973
977
  ] }),
974
978
  children: /* @__PURE__ */ e(
975
979
  z,
976
980
  {
977
- icon: /* @__PURE__ */ e(Oe, {}),
981
+ icon: /* @__PURE__ */ e(Le, {}),
978
982
  onClick: () => re(!te),
979
983
  children: "미리보기"
980
984
  }
@@ -986,53 +990,54 @@ const { TextArea: _e } = a, A = [
986
990
  ]
987
991
  }
988
992
  ) });
989
- E(() => {
993
+ M(() => {
990
994
  c === "new" && (re(!0), i.setFieldsValue({
991
995
  type: "INQR",
992
996
  // 기본값: 문의
993
997
  menuId: m?.menuId,
994
998
  menuNm: m?.menuNm,
995
999
  scrnId: m?.scrnId,
996
- rgstUserId: v?.userId,
997
- rgstUserNm: v?.userNm,
998
- rgstDt: Ye(),
1000
+ rgstUserId: B?.userId,
1001
+ rgstUserNm: B?.userNm,
1002
+ rgstUserDeptNm: he?.deptNm,
1003
+ rgstDt: je(),
999
1004
  // 오늘 날짜 자동 설정
1000
1005
  content: ""
1001
1006
  // 에디터 초기화
1002
1007
  }));
1003
- }, [c, i, m, v]), E(() => {
1008
+ }, [c, i, m, B]), M(() => {
1004
1009
  if (c === "detail" && !y) {
1005
1010
  const t = setInterval(() => {
1006
- j((r) => r <= 1 ? (console.log("🔄 댓글 자동 갱신 실행 (카운트다운 완료)"), u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")), 15) : r - 1);
1011
+ G((r) => r <= 1 ? (console.log("🔄 댓글 자동 갱신 실행 (카운트다운 완료)"), u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")), 15) : r - 1);
1007
1012
  }, 1e3);
1008
1013
  return u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")), () => {
1009
1014
  console.log("🧹 댓글 인터벌 정리"), clearInterval(t);
1010
1015
  };
1011
1016
  } else c === "detail" && y && (console.log("📋 완료된 게시글 - 댓글 조회만"), u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")));
1012
- }, [c, y, i]), E(() => () => {
1013
- console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"), U.current && (clearInterval(U.current), U.current = null);
1014
- }, []), E(() => {
1015
- c === "list" && m && (B?.current?.setFormData({
1017
+ }, [c, y, i]), M(() => () => {
1018
+ console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"), A.current && (clearInterval(A.current), A.current = null);
1019
+ }, []), M(() => {
1020
+ c === "list" && m && (S?.current?.setFormData({
1016
1021
  menuId: m?.menuId,
1017
1022
  menuNm: m?.menuNm
1018
1023
  }), u.SCMBoardMstr0001(1, 20));
1019
- }, [c, m]), E(() => {
1020
- w && m && B?.current?.setFormData({
1024
+ }, [c, m]), M(() => {
1025
+ E && m && S?.current?.setFormData({
1021
1026
  menuId: m?.menuId,
1022
1027
  menuNm: m?.menuNm
1023
1028
  });
1024
- }, [w, m]);
1029
+ }, [E, m]);
1025
1030
  const u = {
1026
1031
  SCMBoardMstr0001: async (t, r) => {
1027
- const s = t || N.current?.currentPage || 1, h = r || N.current?.pageSize || 20, p = {
1028
- ...B?.current?.getFormData(),
1032
+ const s = t || N.current?.currentPage || 1, p = r || N.current?.pageSize || 20, h = {
1033
+ ...S?.current?.getFormData(),
1029
1034
  pageNum: s,
1030
1035
  // 1-based
1031
- pageCount: h
1036
+ pageCount: p
1032
1037
  };
1033
- console.log("🔍 서버 모드 페이징 요청:", p);
1038
+ console.log("🔍 서버 모드 페이징 요청:", h);
1034
1039
  try {
1035
- const f = await S("SCMBoardMstr0001", p, {
1040
+ const f = await w("SCMBoardMstr0001", h, {
1036
1041
  isPopup: !0
1037
1042
  });
1038
1043
  if (f && f.pageList) {
@@ -1049,7 +1054,7 @@ const { TextArea: _e } = a, A = [
1049
1054
  * @param values
1050
1055
  */
1051
1056
  SCMBoardMstr0003: (t) => {
1052
- S(
1057
+ w(
1053
1058
  "SCMBoardMstr0003",
1054
1059
  {
1055
1060
  ...t,
@@ -1067,7 +1072,7 @@ const { TextArea: _e } = a, A = [
1067
1072
  * @param values
1068
1073
  */
1069
1074
  SCMBoardMstr0004: (t) => {
1070
- S(
1075
+ w(
1071
1076
  "SCMBoardMstr0004",
1072
1077
  {
1073
1078
  boardMstrId: i.getFieldValue("boardMstrId"),
@@ -1081,7 +1086,7 @@ const { TextArea: _e } = a, A = [
1081
1086
  });
1082
1087
  },
1083
1088
  SCMBoardMstr0005: () => {
1084
- S(
1089
+ w(
1085
1090
  "SCMBoardMstr0005",
1086
1091
  { boardMstrId: i.getFieldValue("boardMstrId") },
1087
1092
  { isPopup: !0 }
@@ -1095,7 +1100,7 @@ const { TextArea: _e } = a, A = [
1095
1100
  * @returns 댓글 목록
1096
1101
  */
1097
1102
  SCMBoardDtls0001: (t) => {
1098
- M(!0), S(
1103
+ v(!0), w(
1099
1104
  "SCMBoardDtls0001",
1100
1105
  {
1101
1106
  boardMstrId: t
@@ -1103,12 +1108,12 @@ const { TextArea: _e } = a, A = [
1103
1108
  { isPopup: !0, showLoading: !1 }
1104
1109
  ).then((r) => {
1105
1110
  if (r && r.subList) {
1106
- const s = r.subList.map((h) => ({
1107
- id: h.seq,
1108
- author: h.userNm || h.regUserId,
1109
- regUserId: h.regUserId,
1110
- content: h.content,
1111
- regDt: h.regDt
1111
+ const s = r.subList.map((p) => ({
1112
+ id: p.seq,
1113
+ author: p.userNm || p.regUserId,
1114
+ regUserId: p.regUserId,
1115
+ content: p.content,
1116
+ regDt: p.regDt
1112
1117
  }));
1113
1118
  ne(s);
1114
1119
  } else
@@ -1116,7 +1121,7 @@ const { TextArea: _e } = a, A = [
1116
1121
  }).catch((r) => {
1117
1122
  console.error("게시글 댓글 목록 조회 실패:", r), g.error("댓글 목록 조회 중 오류가 발생했습니다.");
1118
1123
  }).finally(() => {
1119
- M(!1), j(15);
1124
+ v(!1), G(15);
1120
1125
  });
1121
1126
  },
1122
1127
  /**
@@ -1127,7 +1132,7 @@ const { TextArea: _e } = a, A = [
1127
1132
  * @returns
1128
1133
  */
1129
1134
  SCMBoardDtls0002: (t, r) => {
1130
- M(!0), S(
1135
+ v(!0), w(
1131
1136
  "SCMBoardDtls0002",
1132
1137
  {
1133
1138
  boardMstrId: t,
@@ -1139,7 +1144,7 @@ const { TextArea: _e } = a, A = [
1139
1144
  }).catch((s) => {
1140
1145
  g.error("댓글 등록 중 오류가 발생했습니다.");
1141
1146
  }).finally(() => {
1142
- M(!1);
1147
+ v(!1);
1143
1148
  });
1144
1149
  },
1145
1150
  /**
@@ -1149,7 +1154,7 @@ const { TextArea: _e } = a, A = [
1149
1154
  * @returns
1150
1155
  */
1151
1156
  SCMBoardDtls0003: (t, r) => {
1152
- M(!0), S(
1157
+ v(!0), w(
1153
1158
  "SCMBoardDtls0003",
1154
1159
  {
1155
1160
  boardMstrId: t,
@@ -1161,10 +1166,10 @@ const { TextArea: _e } = a, A = [
1161
1166
  }).catch((s) => {
1162
1167
  g.error("댓글 삭제 중 오류가 발생했습니다.");
1163
1168
  }).finally(() => {
1164
- M(!1);
1169
+ v(!1);
1165
1170
  });
1166
1171
  }
1167
- }, Fe = () => {
1172
+ }, ke = () => {
1168
1173
  switch (c) {
1169
1174
  case "list":
1170
1175
  return [
@@ -1188,7 +1193,7 @@ const { TextArea: _e } = a, A = [
1188
1193
  id: "BACK",
1189
1194
  label: "뒤로",
1190
1195
  type: "default",
1191
- onClick: ve
1196
+ onClick: De
1192
1197
  },
1193
1198
  {
1194
1199
  id: "EDIT",
@@ -1202,7 +1207,7 @@ const { TextArea: _e } = a, A = [
1202
1207
  label: "삭제",
1203
1208
  type: "default",
1204
1209
  disabled: !T || y,
1205
- onClick: we
1210
+ onClick: Se
1206
1211
  }
1207
1212
  ];
1208
1213
  case "new":
@@ -1218,24 +1223,24 @@ const { TextArea: _e } = a, A = [
1218
1223
  id: "CANCEL",
1219
1224
  label: "취소",
1220
1225
  type: "default",
1221
- onClick: Se
1226
+ onClick: Be
1222
1227
  }
1223
1228
  ];
1224
1229
  default:
1225
1230
  return [];
1226
1231
  }
1227
- }, ke = {};
1232
+ }, ze = {};
1228
1233
  return /* @__PURE__ */ n(
1229
- qe,
1234
+ Qe,
1230
1235
  {
1231
- popup: w,
1232
- buttons: Fe(),
1233
- popupEvent: ke,
1234
- onClose: Be,
1236
+ popup: E,
1237
+ buttons: ke(),
1238
+ popupEvent: ze,
1239
+ onClose: ve,
1235
1240
  children: [
1236
- c === "list" && Pe(),
1237
- c === "detail" && Re(),
1238
- c === "new" && Te()
1241
+ c === "list" && Re(),
1242
+ c === "detail" && Te(),
1243
+ c === "new" && Fe()
1239
1244
  ]
1240
1245
  }
1241
1246
  );