@bwg-ui/core 1.3.7 → 1.3.9
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/CMPrgrMstrP02-CIPnCdt3.cjs +1 -0
- package/dist/chunks/CMPrgrMstrP02-jC3zDeFU.js +154 -0
- package/dist/chunks/CMSearchIntfGwP01-D4qj6J2N.cjs +1 -0
- package/dist/chunks/{CMSearchIntfGwP01-DCHZJn2H.js → CMSearchIntfGwP01-DzTHXQi3.js} +31 -31
- package/dist/chunks/MenuReport-BtP1uAmq.cjs +1 -0
- package/dist/chunks/{MenuReport-IBdoU2S3.js → MenuReport-DgMjx5Hs.js} +5 -5
- package/dist/chunks/SearchAddressP01-B25Exa9E.cjs +1 -0
- package/dist/chunks/SearchAddressP01-B_D3nrkn.js +605 -0
- package/dist/chunks/SearchDepartmentP01-D5ihO3l8.cjs +1 -0
- package/dist/chunks/SearchDepartmentP01-pUAav3Xp.js +352 -0
- package/dist/chunks/SearchDepartmentP02-B3oL1B-h.js +518 -0
- package/dist/chunks/SearchDepartmentP02-CWs8sLuu.cjs +1 -0
- package/dist/chunks/SearchHolidayP01-SuuyAk9T.js +188 -0
- package/dist/chunks/SearchHolidayP01-cJ8Wlkwr.cjs +1 -0
- package/dist/chunks/SearchOrganizationP01-3nDwrB08.cjs +1 -0
- package/dist/chunks/SearchOrganizationP01-ChwLBfVt.js +420 -0
- package/dist/chunks/SearchOrganizationP02-0Suj4DLH.cjs +1 -0
- package/dist/chunks/SearchOrganizationP02-DI0V4Bdz.js +516 -0
- package/dist/chunks/UploadMultiFileP01-CffgcIXm.cjs +1 -0
- package/dist/chunks/UploadMultiFileP01-Cy2LeYfy.js +38 -0
- package/dist/chunks/{layout-components-DnuV2Psp.js → layout-components-Cpzy8mH1.js} +1053 -951
- package/dist/chunks/layout-components-y9YpQQbx.cjs +38 -0
- package/dist/chunks/provider-DrmM0H4o.cjs +1 -0
- package/dist/chunks/provider-ff4RVDYo.js +711 -0
- package/dist/components/common/ButtonAccessController.d.ts +2 -3
- package/dist/components/common/ButtonAccessController.d.ts.map +1 -1
- package/dist/components/common/BwgButtonGroup.d.ts +1 -1
- package/dist/components/common/BwgButtonGroup.d.ts.map +1 -1
- package/dist/components/common/BwgCol.d.ts +1 -1
- package/dist/components/common/BwgCol.d.ts.map +1 -1
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/BwgModal.d.ts +10 -0
- package/dist/components/common/BwgModal.d.ts.map +1 -0
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.d.ts +2 -1
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +4887 -28
- package/dist/components/core/BwgCmnFileItems.d.ts +47 -0
- package/dist/components/core/BwgCmnFileItems.d.ts.map +1 -0
- package/dist/components/core/BwgDeptSearch.d.ts +38 -0
- package/dist/components/core/BwgDeptSearch.d.ts.map +1 -0
- package/dist/components/core/BwgDraggerUploader.d.ts +13 -0
- package/dist/components/core/BwgDraggerUploader.d.ts.map +1 -0
- package/dist/components/core/BwgEmpSearch.d.ts +12 -4
- package/dist/components/core/BwgEmpSearch.d.ts.map +1 -1
- package/dist/components/core/BwgUploader.d.ts +6 -92
- package/dist/components/core/BwgUploader.d.ts.map +1 -1
- package/dist/components/core/BwgUploader_bak.d.ts +98 -0
- package/dist/components/core/BwgUploader_bak.d.ts.map +1 -0
- package/dist/components/core/BwgXlsxUploader.d.ts +25 -0
- package/dist/components/core/BwgXlsxUploader.d.ts.map +1 -0
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.d.ts +11 -2
- package/dist/components/core/index.d.ts.map +1 -1
- package/dist/components/core/index.js +1318 -1164
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +17 -17
- package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableSidebar.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/auth/AuthManagement.d.ts +8 -0
- package/dist/components/pages/auth/AuthManagement.d.ts.map +1 -0
- package/dist/components/pages/auth/AuthSelector.d.ts +28 -0
- package/dist/components/pages/auth/AuthSelector.d.ts.map +1 -0
- package/dist/components/pages/auth/RoleAuthMapper.d.ts +8 -0
- package/dist/components/pages/auth/RoleAuthMapper.d.ts.map +1 -0
- package/dist/components/pages/auth/RoleDashBoard.d.ts +13 -0
- package/dist/components/pages/auth/RoleDashBoard.d.ts.map +1 -0
- package/dist/components/pages/auth/RoleView.d.ts +17 -0
- package/dist/components/pages/auth/RoleView.d.ts.map +1 -0
- package/dist/components/pages/board/AdminBoard.d.ts +6 -0
- package/dist/components/pages/board/AdminBoard.d.ts.map +1 -0
- package/dist/components/pages/board/BoardComment.d.ts +8 -0
- package/dist/components/pages/board/BoardComment.d.ts.map +1 -0
- package/dist/components/pages/board/MyBoard.d.ts +6 -0
- package/dist/components/pages/board/MyBoard.d.ts.map +1 -0
- package/dist/components/pages/index.d.ts +10 -10
- package/dist/components/pages/index.d.ts.map +1 -1
- package/dist/components/pages/rsrc/MenuManagement.d.ts +4 -0
- package/dist/components/pages/rsrc/MenuManagement.d.ts.map +1 -0
- package/dist/components/pages/rsrc/{CMMenuPrntSelectModal.d.ts → MenuSelector.d.ts} +5 -4
- package/dist/components/pages/rsrc/MenuSelector.d.ts.map +1 -0
- package/dist/components/pages/rsrc/ProgramManagement.d.ts +4 -0
- package/dist/components/pages/rsrc/ProgramManagement.d.ts.map +1 -0
- package/dist/components/pages/rsrc/{CMMenuPrgrSelectModal.d.ts → ProgramSelector.d.ts} +5 -4
- package/dist/components/pages/rsrc/ProgramSelector.d.ts.map +1 -0
- package/dist/components/pages/syst/CommonCodeManagement.d.ts +4 -0
- package/dist/components/pages/syst/CommonCodeManagement.d.ts.map +1 -0
- package/dist/components/pages/syst/CommonCodeTester.d.ts +7 -0
- package/dist/components/pages/syst/CommonCodeTester.d.ts.map +1 -0
- package/dist/components/pages/types.d.ts +5 -1
- package/dist/components/pages/types.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP01.d.ts +1 -1
- package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
- package/dist/components/popup/UploadMultiFileP01.d.ts +14 -0
- package/dist/components/popup/UploadMultiFileP01.d.ts.map +1 -0
- package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +1 -0
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +16 -8
- package/dist/index.cjs +186 -1
- package/dist/index.js +32378 -290
- package/dist/provider/contexts/BwgViewContext.d.ts +8 -1
- package/dist/provider/contexts/BwgViewContext.d.ts.map +1 -1
- package/dist/provider/contexts/CommonCodeContext.d.ts +15 -28
- package/dist/provider/contexts/CommonCodeContext.d.ts.map +1 -1
- package/dist/provider/contexts/MenuButtonContentx.d.ts +1 -0
- package/dist/provider/contexts/MenuButtonContentx.d.ts.map +1 -0
- package/dist/provider/contexts/MenuButtonContext.d.ts +42 -0
- package/dist/provider/contexts/MenuButtonContext.d.ts.map +1 -0
- package/dist/provider/hooks/index.d.ts +1 -0
- package/dist/provider/hooks/index.d.ts.map +1 -1
- package/dist/provider/hooks/useFileUploader.d.ts +74 -0
- package/dist/provider/hooks/useFileUploader.d.ts.map +1 -0
- package/dist/provider/hooks/useSizeConfig.d.ts +2 -2
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +8 -7
- package/dist/stores/codeStore.d.ts +65 -128
- package/dist/stores/codeStore.d.ts.map +1 -1
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.d.ts +3 -3
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +815 -1625
- package/dist/stores/menuModelStore.d.ts +22 -7
- package/dist/stores/menuModelStore.d.ts.map +1 -1
- package/dist/stores/menuViewStore.d.ts +3 -3
- package/dist/stores/menuViewStore.d.ts.map +1 -1
- package/dist/stores/systemStore.d.ts +50 -17
- package/dist/stores/systemStore.d.ts.map +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/styles/assets/images/menus/ico1-completed.png +0 -0
- package/dist/styles/assets/images/menus/ico1-design.png +0 -0
- package/dist/styles/assets/images/menus/ico1-dev.png +0 -0
- package/dist/styles/assets/images/menus/ico2-completed.png +0 -0
- package/dist/styles/assets/images/menus/ico2-design.png +0 -0
- package/dist/styles/assets/images/menus/ico2-dev.png +0 -0
- package/dist/styles/assets/images/menus/ico3-completed.png +0 -0
- package/dist/styles/assets/images/menus/ico3-design.png +0 -0
- package/dist/styles/assets/images/menus/ico3-dev.png +0 -0
- package/dist/utils/apiUtils.d.ts.map +1 -1
- package/dist/utils/colorFormat.d.ts.map +1 -1
- package/dist/utils/commonUtils.d.ts +1 -2
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +9 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1118 -1962
- package/dist/utils/serviceConfig.d.ts +9 -3
- package/dist/utils/serviceConfig.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunks/CMSearchIntfGwP01-0t3umcc_.cjs +0 -1
- package/dist/chunks/MenuReport-C70mGz2g.cjs +0 -1
- package/dist/chunks/common-components-DNgQR-Ge.cjs +0 -1109
- package/dist/chunks/common-components-DeYL3J6X.js +0 -52604
- package/dist/chunks/layout-components-Bf9IsLUS.cjs +0 -38
- package/dist/chunks/provider-Bi5OYngn.cjs +0 -1
- package/dist/chunks/provider-Bx4VpaFf.js +0 -465
- package/dist/components/pages/board/CMAdminBoardM01.d.ts +0 -6
- package/dist/components/pages/board/CMAdminBoardM01.d.ts.map +0 -1
- package/dist/components/pages/board/CMBoardS01.d.ts +0 -8
- package/dist/components/pages/board/CMBoardS01.d.ts.map +0 -1
- package/dist/components/pages/board/CMMyBoardM01.d.ts +0 -6
- package/dist/components/pages/board/CMMyBoardM01.d.ts.map +0 -1
- package/dist/components/pages/guide/BwgComponentGuideM01.d.ts +0 -3
- package/dist/components/pages/guide/BwgComponentGuideM01.d.ts.map +0 -1
- package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts +0 -3
- package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts.map +0 -1
- package/dist/components/pages/guide/BwgReactGuideM01.d.ts +0 -3
- package/dist/components/pages/guide/BwgReactGuideM01.d.ts.map +0 -1
- package/dist/components/pages/rsrc/CMMenuPrgrSelectModal.d.ts.map +0 -1
- package/dist/components/pages/rsrc/CMMenuPrntSelectModal.d.ts.map +0 -1
- package/dist/components/pages/syst/CMSystCodeM01.d.ts +0 -4
- package/dist/components/pages/syst/CMSystCodeM01.d.ts.map +0 -1
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { jsx as d, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { SearchOutlined as j, TeamOutlined as A, RestOutlined as U } from "@ant-design/icons";
|
|
3
|
+
import { message as T, Splitter as L, Flex as W, Row as M, Col as Y, Input as G, Spin as J, Tree as q, Button as H } from "antd";
|
|
4
|
+
import { useState as S, useCallback as y, useEffect as Q, useMemo as N } from "react";
|
|
5
|
+
import { callService as V } from "../utils/index.js";
|
|
6
|
+
import { BwgPopup as X, ContentLayOut as Z, ContentBox as _, BwgTitleBox as $ } from "../components/common/index.js";
|
|
7
|
+
const ee = (e) => {
|
|
8
|
+
if (e == null) return "";
|
|
9
|
+
const s = String(e).trim();
|
|
10
|
+
return !s || s.toUpperCase() === "NULL" ? "" : s.toUpperCase();
|
|
11
|
+
}, O = (e, s = 0) => {
|
|
12
|
+
const a = Number(e);
|
|
13
|
+
return Number.isFinite(a) ? a : s;
|
|
14
|
+
};
|
|
15
|
+
function v(e) {
|
|
16
|
+
return {
|
|
17
|
+
crprCd: e.crprCd || void 0,
|
|
18
|
+
wkplCd: e.wkplCd || void 0,
|
|
19
|
+
deptCd: ee(e.deptCd),
|
|
20
|
+
deptNm: (e.deptNm ?? "").toString().trim(),
|
|
21
|
+
hrnkDeptCd: e.hrnkDeptCd || null,
|
|
22
|
+
hrnkDeptNm: e.hrnkDeptNm || null,
|
|
23
|
+
deptGbCd: e.deptGbCd || null,
|
|
24
|
+
deptLvl: O(e.deptLvl, e.hrnkDeptCd ? 2 : 1),
|
|
25
|
+
orgSortOrd: O(e.orgSortOrd, 0),
|
|
26
|
+
orgOtptOrd: O(e.orgOtptOrd, 0),
|
|
27
|
+
deptAbrv: e.deptAbrv || null,
|
|
28
|
+
deptFullNm: e.deptFullNm || null,
|
|
29
|
+
deptEnglNm: e.deptEnglNm || null,
|
|
30
|
+
isLeaf: e.isLeaf || null
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function te(e) {
|
|
34
|
+
const s = /* @__PURE__ */ new Set(), a = e.map(v).filter((t) => t.deptCd).filter((t) => (t.deptCd === t.hrnkDeptCd && (t.hrnkDeptCd = ""), !0)).filter((t) => s.has(t.deptCd) ? !1 : (s.add(t.deptCd), !0));
|
|
35
|
+
a.sort(
|
|
36
|
+
(t, o) => (t.deptLvl || 0) - (o.deptLvl || 0) || (t.orgSortOrd || 0) - (o.orgSortOrd || 0) || t.deptCd.localeCompare(o.deptCd)
|
|
37
|
+
);
|
|
38
|
+
const i = /* @__PURE__ */ new Map();
|
|
39
|
+
for (const t of a)
|
|
40
|
+
i.set(t.deptCd, {
|
|
41
|
+
...t,
|
|
42
|
+
children: []
|
|
43
|
+
});
|
|
44
|
+
const f = [];
|
|
45
|
+
for (const t of a) {
|
|
46
|
+
const o = i.get(t.deptCd), u = t.hrnkDeptCd;
|
|
47
|
+
u && i.has(u) ? i.get(u).children.push(o) : f.push(o);
|
|
48
|
+
}
|
|
49
|
+
const C = (t) => {
|
|
50
|
+
!t || t.length === 0 || (t.sort((o, u) => o.deptCd.localeCompare(u.deptCd)), t.forEach((o) => C(o.children)));
|
|
51
|
+
};
|
|
52
|
+
C(f);
|
|
53
|
+
const m = (t) => {
|
|
54
|
+
if (!t.children || t.children.length === 0) {
|
|
55
|
+
delete t.children;
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
t.children.forEach(m);
|
|
59
|
+
};
|
|
60
|
+
if (f.forEach(m), f.length > 1) {
|
|
61
|
+
const t = f.find((o) => o.deptCd === "D00");
|
|
62
|
+
if (t) return [t];
|
|
63
|
+
}
|
|
64
|
+
return f;
|
|
65
|
+
}
|
|
66
|
+
function ne(e) {
|
|
67
|
+
const s = e.map(v), a = s.filter((i) => i.isLeaf !== "Y").map((i) => i.deptCd);
|
|
68
|
+
return a.length > 200 ? s.filter((i) => (i.deptLvl || 0) <= 2).map((i) => i.deptCd) : a;
|
|
69
|
+
}
|
|
70
|
+
const se = ({ popup: e, onClose: s }) => {
|
|
71
|
+
const [a, i] = S(""), [f, C] = S([]), [m, t] = S([]), [o, u] = S([]), [z, w] = S(!1), B = y(
|
|
72
|
+
async (n) => {
|
|
73
|
+
try {
|
|
74
|
+
w(!0);
|
|
75
|
+
const r = await V("SCMUTIL00103", {
|
|
76
|
+
...n
|
|
77
|
+
});
|
|
78
|
+
e?.popupParams?.keyword && i(e?.popupParams?.keyword);
|
|
79
|
+
const c = Array.isArray(r?.deptList) && r.deptList || [], l = te(c);
|
|
80
|
+
u(l);
|
|
81
|
+
const g = ne(c);
|
|
82
|
+
C(g);
|
|
83
|
+
const x = l[0]?.deptCd || v(
|
|
84
|
+
c.find((k) => v(k).deptLvl === 1) || {}
|
|
85
|
+
).deptCd || v(c[0] || {}).deptCd || "";
|
|
86
|
+
t(x ? [x] : []);
|
|
87
|
+
} catch {
|
|
88
|
+
T.error("조직 데이터를 불러오는 중 오류가 발생했습니다.");
|
|
89
|
+
} finally {
|
|
90
|
+
w(!1);
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
[e?.popupParams]
|
|
94
|
+
);
|
|
95
|
+
Q(() => {
|
|
96
|
+
B();
|
|
97
|
+
}, [B]);
|
|
98
|
+
const b = y(
|
|
99
|
+
(n, r) => {
|
|
100
|
+
for (const c of n) {
|
|
101
|
+
if (c.deptCd === r) return c;
|
|
102
|
+
if (c.children) {
|
|
103
|
+
const l = b(c.children, r);
|
|
104
|
+
if (l) return l;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return null;
|
|
108
|
+
},
|
|
109
|
+
[]
|
|
110
|
+
), p = N(() => {
|
|
111
|
+
const n = m[0];
|
|
112
|
+
return n ? b(o, n) : null;
|
|
113
|
+
}, [m, o, b]), D = N(() => {
|
|
114
|
+
const n = (c) => c.map((l) => ({
|
|
115
|
+
title: l.deptNm,
|
|
116
|
+
key: l.deptCd,
|
|
117
|
+
meta: l,
|
|
118
|
+
children: l.children ? n(l.children) : void 0
|
|
119
|
+
}));
|
|
120
|
+
return n(o);
|
|
121
|
+
}, [o]), E = N(() => {
|
|
122
|
+
const n = a.trim().toLowerCase();
|
|
123
|
+
if (!n) return D;
|
|
124
|
+
const r = (c) => c.map((l) => {
|
|
125
|
+
const g = l.meta, x = (g?.deptNm || "").toLowerCase().includes(n) || (g?.deptCd || "").toLowerCase().includes(n), k = l.children ? r(l.children) : void 0;
|
|
126
|
+
return x || k && k.length ? { ...l, children: k } : null;
|
|
127
|
+
}).filter(Boolean);
|
|
128
|
+
return r(D);
|
|
129
|
+
}, [D, a]), K = y((n) => {
|
|
130
|
+
t(n.slice(0, 1).map(String));
|
|
131
|
+
}, []), I = y(
|
|
132
|
+
(n) => C(n.map(String)),
|
|
133
|
+
[]
|
|
134
|
+
), P = y(
|
|
135
|
+
(n, r) => {
|
|
136
|
+
if (n.stopPropagation(), !r.children || r.children.length === 0) return;
|
|
137
|
+
const c = f.includes(r.key);
|
|
138
|
+
C(
|
|
139
|
+
(l) => c ? l.filter((g) => g !== r.key) : [...l, r.key]
|
|
140
|
+
);
|
|
141
|
+
},
|
|
142
|
+
[f]
|
|
143
|
+
), R = y(() => t([]), []), F = {
|
|
144
|
+
confirm: () => {
|
|
145
|
+
if (!p) {
|
|
146
|
+
T.error("부서를 선택해주세요.");
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const n = {
|
|
150
|
+
deptCd: p.deptCd,
|
|
151
|
+
deptNm: p.deptNm,
|
|
152
|
+
hrnkDeptCd: p.hrnkDeptCd,
|
|
153
|
+
hrnkDeptNm: p.hrnkDeptNm,
|
|
154
|
+
deptLvl: p.deptLvl,
|
|
155
|
+
orgSortOrd: p.orgSortOrd
|
|
156
|
+
}, r = e?.config;
|
|
157
|
+
r?.onSelect ? r.onSelect(n) : e?.config?.callback && e.config.callback(JSON.stringify(n)), r?.onClose && r.onClose(), e?.close?.();
|
|
158
|
+
},
|
|
159
|
+
cancel: () => {
|
|
160
|
+
const n = e?.config;
|
|
161
|
+
n?.onCancel && n.onCancel(), e?.close?.();
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
return /* @__PURE__ */ d(
|
|
165
|
+
X,
|
|
166
|
+
{
|
|
167
|
+
popup: e,
|
|
168
|
+
buttons: [
|
|
169
|
+
{
|
|
170
|
+
id: "confirm",
|
|
171
|
+
label: "확인",
|
|
172
|
+
onClick: () => {
|
|
173
|
+
F.confirm();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
onClose: () => {
|
|
178
|
+
e?.close?.(), s?.();
|
|
179
|
+
},
|
|
180
|
+
children: /* @__PURE__ */ d(Z, { children: /* @__PURE__ */ d(_, { border: !1, style: { paddingBottom: 20 }, children: /* @__PURE__ */ h(L, { layout: "vertical", style: { height: "100%" }, children: [
|
|
181
|
+
/* @__PURE__ */ h(L.Panel, { defaultSize: "70%", min: "70%", max: "75%", children: [
|
|
182
|
+
/* @__PURE__ */ d(
|
|
183
|
+
"div",
|
|
184
|
+
{
|
|
185
|
+
style: {
|
|
186
|
+
position: "sticky",
|
|
187
|
+
top: 0,
|
|
188
|
+
zIndex: 10,
|
|
189
|
+
backgroundColor: "white",
|
|
190
|
+
borderBottom: "1px solid #e0e0e0",
|
|
191
|
+
padding: 8
|
|
192
|
+
},
|
|
193
|
+
children: /* @__PURE__ */ h(W, { gap: 8, vertical: !0, style: { marginBottom: 6 }, children: [
|
|
194
|
+
/* @__PURE__ */ d($, { title: "조직도" }),
|
|
195
|
+
/* @__PURE__ */ d(M, { gutter: [16, 16], children: /* @__PURE__ */ d(Y, { span: 24, children: /* @__PURE__ */ d(
|
|
196
|
+
G,
|
|
197
|
+
{
|
|
198
|
+
placeholder: "부서명, 부서코드 검색",
|
|
199
|
+
prefix: /* @__PURE__ */ d(j, {}),
|
|
200
|
+
value: a,
|
|
201
|
+
allowClear: !0,
|
|
202
|
+
onChange: (n) => i(n.target.value)
|
|
203
|
+
}
|
|
204
|
+
) }) })
|
|
205
|
+
] })
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
/* @__PURE__ */ d("div", { style: { padding: 16, overflowY: "hidden" }, children: /* @__PURE__ */ d(J, { spinning: z, children: /* @__PURE__ */ d(
|
|
209
|
+
q,
|
|
210
|
+
{
|
|
211
|
+
treeData: E,
|
|
212
|
+
expandedKeys: f,
|
|
213
|
+
selectedKeys: m,
|
|
214
|
+
onSelect: K,
|
|
215
|
+
onExpand: I,
|
|
216
|
+
onDoubleClick: P,
|
|
217
|
+
showLine: !0,
|
|
218
|
+
showIcon: !1,
|
|
219
|
+
selectable: !0,
|
|
220
|
+
style: { overflow: "hidden" },
|
|
221
|
+
titleRender: (n) => {
|
|
222
|
+
const r = n.meta;
|
|
223
|
+
return /* @__PURE__ */ h(
|
|
224
|
+
"span",
|
|
225
|
+
{
|
|
226
|
+
style: {
|
|
227
|
+
display: "flex",
|
|
228
|
+
justifyContent: "space-between",
|
|
229
|
+
alignItems: "center",
|
|
230
|
+
padding: "2px 4px",
|
|
231
|
+
width: "100%",
|
|
232
|
+
fontWeight: m.includes(n.key) ? "bold" : "normal"
|
|
233
|
+
},
|
|
234
|
+
children: [
|
|
235
|
+
/* @__PURE__ */ d("span", { children: r.deptNm }),
|
|
236
|
+
/* @__PURE__ */ d(
|
|
237
|
+
"span",
|
|
238
|
+
{
|
|
239
|
+
style: {
|
|
240
|
+
fontSize: 11,
|
|
241
|
+
color: "#999",
|
|
242
|
+
marginLeft: 8
|
|
243
|
+
},
|
|
244
|
+
children: r.deptCd
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
) }) })
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ d(L.Panel, { collapsible: !0, children: /* @__PURE__ */ h("div", { style: { padding: 16, overflowY: "hidden", height: "100%" }, children: [
|
|
255
|
+
/* @__PURE__ */ d(
|
|
256
|
+
"h3",
|
|
257
|
+
{
|
|
258
|
+
style: {
|
|
259
|
+
margin: "0 0 12px 0",
|
|
260
|
+
fontSize: 16,
|
|
261
|
+
fontWeight: 700
|
|
262
|
+
},
|
|
263
|
+
children: "선택된 부서"
|
|
264
|
+
}
|
|
265
|
+
),
|
|
266
|
+
p ? /* @__PURE__ */ h(
|
|
267
|
+
"div",
|
|
268
|
+
{
|
|
269
|
+
style: {
|
|
270
|
+
display: "flex",
|
|
271
|
+
alignItems: "center",
|
|
272
|
+
padding: 14,
|
|
273
|
+
border: "1px solid #e0e0e0",
|
|
274
|
+
borderRadius: 12,
|
|
275
|
+
background: "#fafafa"
|
|
276
|
+
},
|
|
277
|
+
children: [
|
|
278
|
+
/* @__PURE__ */ d(
|
|
279
|
+
"div",
|
|
280
|
+
{
|
|
281
|
+
style: {
|
|
282
|
+
width: 42,
|
|
283
|
+
height: 42,
|
|
284
|
+
borderRadius: "50%",
|
|
285
|
+
border: "1px solid #e6e6e6",
|
|
286
|
+
display: "flex",
|
|
287
|
+
alignItems: "center",
|
|
288
|
+
justifyContent: "center",
|
|
289
|
+
marginRight: 12,
|
|
290
|
+
fontSize: 18,
|
|
291
|
+
color: "#8c8c8c",
|
|
292
|
+
background: "#fff",
|
|
293
|
+
flex: "0 0 auto"
|
|
294
|
+
},
|
|
295
|
+
children: /* @__PURE__ */ d(A, {})
|
|
296
|
+
}
|
|
297
|
+
),
|
|
298
|
+
/* @__PURE__ */ h("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
299
|
+
/* @__PURE__ */ h(
|
|
300
|
+
"div",
|
|
301
|
+
{
|
|
302
|
+
style: {
|
|
303
|
+
fontSize: 15,
|
|
304
|
+
fontWeight: 700,
|
|
305
|
+
marginBottom: 4
|
|
306
|
+
},
|
|
307
|
+
children: [
|
|
308
|
+
p.deptNm,
|
|
309
|
+
" ",
|
|
310
|
+
/* @__PURE__ */ h("span", { style: { color: "#8c8c8c", fontSize: 12 }, children: [
|
|
311
|
+
"(",
|
|
312
|
+
p.deptCd,
|
|
313
|
+
")"
|
|
314
|
+
] })
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
|
+
),
|
|
318
|
+
/* @__PURE__ */ h(
|
|
319
|
+
"div",
|
|
320
|
+
{
|
|
321
|
+
style: { fontSize: 12, color: "#666", marginBottom: 2 },
|
|
322
|
+
children: [
|
|
323
|
+
"상위부서: ",
|
|
324
|
+
p.hrnkDeptNm || "-"
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
)
|
|
328
|
+
] }),
|
|
329
|
+
/* @__PURE__ */ d(
|
|
330
|
+
H,
|
|
331
|
+
{
|
|
332
|
+
type: "text",
|
|
333
|
+
onClick: R,
|
|
334
|
+
icon: /* @__PURE__ */ d(
|
|
335
|
+
U,
|
|
336
|
+
{
|
|
337
|
+
style: { fontSize: 24, color: "#FF6363" }
|
|
338
|
+
}
|
|
339
|
+
)
|
|
340
|
+
}
|
|
341
|
+
)
|
|
342
|
+
]
|
|
343
|
+
}
|
|
344
|
+
) : /* @__PURE__ */ d("div", { style: { color: "#999", fontSize: 14 }, children: "부서를 선택해주세요." })
|
|
345
|
+
] }) })
|
|
346
|
+
] }) }) })
|
|
347
|
+
}
|
|
348
|
+
);
|
|
349
|
+
};
|
|
350
|
+
export {
|
|
351
|
+
se as default
|
|
352
|
+
};
|