@bwg-ui/core 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{CMSearchIntfGwP01-BWm9OqAH.js → CMSearchIntfGwP01-Bx5cpkhH.js} +1 -1
- package/dist/chunks/{CMSearchIntfGwP01-CihGc5Q1.cjs → CMSearchIntfGwP01-Uhl4uqiV.cjs} +1 -1
- package/dist/chunks/{MenuReport-khjaUz1Q.cjs → MenuReport-CPwq8w-z.cjs} +1 -1
- package/dist/chunks/{MenuReport-yYhMOHyq.js → MenuReport-DxJIaW8D.js} +1 -1
- package/dist/chunks/{common-components-DletnDTf.cjs → common-components-Dd_AsKs7.cjs} +36 -36
- package/dist/chunks/{common-components-coAoWxE9.js → common-components-dzN5Nuq0.js} +1380 -1318
- package/dist/chunks/{layout-components-C1DG2B74.js → layout-components-B25FFvXj.js} +679 -663
- package/dist/chunks/layout-components-Cz7Zets7.cjs +35 -0
- package/dist/components/common/BwgDetail.d.ts.map +1 -1
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableMenuTab.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
- package/dist/components/layout/default/LoadingContainer.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.d.ts +6 -2
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +116 -100
- package/dist/stores/menuViewStore.d.ts +6 -2
- package/dist/stores/menuViewStore.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/layout-components-C6KeWPIu.cjs +0 -35
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { o as
|
|
3
|
-
import { Routes as
|
|
4
|
-
import { G as
|
|
5
|
-
import { Spin as re, Layout as Z, Button as B, Divider as
|
|
6
|
-
import { lazy as W, useEffect as
|
|
7
|
-
import { useLogout as
|
|
1
|
+
import { jsxs as b, jsx as e, Fragment as K } from "react/jsx-runtime";
|
|
2
|
+
import { o as Le, C as Be, S as ge, n as Oe, m as Ee } from "./provider-VCa8UGvF.js";
|
|
3
|
+
import { Routes as ke, Route as te, Navigate as Re, useNavigate as fe, useLocation as De } from "react-router-dom";
|
|
4
|
+
import { G as ze, B as Ae, Q as We } from "./common-components-dzN5Nuq0.js";
|
|
5
|
+
import { Spin as re, Layout as Z, Button as B, Divider as le, Flex as ne, Slider as ce, Switch as $e, Modal as Fe, Popover as _e, Avatar as Ge, Dropdown as He, Tabs as je, Tooltip as Q, AutoComplete as Ve, Input as me, Segmented as Ue, ConfigProvider as Ke, Menu as he, Result as Ie, Space as Ze, Typography as Ye, Empty as de, Breadcrumb as qe, Form as U, Checkbox as Qe } from "antd";
|
|
6
|
+
import { lazy as W, useEffect as z, useRef as Y, useCallback as D, useMemo as _, useState as A, createElement as Ne, memo as be, cloneElement as Xe, Component as Je, Suspense as se } from "react";
|
|
7
|
+
import { useLogout as et, useUserStore as Pe, useMenuViewStore as O, useMenuModelStore as ae, useFavoriteStore as tt, usePopupStore as ye, useLogin as nt, useSystemStore as rt } from "../stores/index.js";
|
|
8
8
|
import * as oe from "@ant-design/icons";
|
|
9
|
-
import { UndoOutlined as ee, UserOutlined as
|
|
10
|
-
import { getTodateString as
|
|
11
|
-
import { useSensors as
|
|
12
|
-
import { restrictToHorizontalAxis as
|
|
13
|
-
import { arrayMove as
|
|
14
|
-
const
|
|
15
|
-
() => import("./MenuReport-
|
|
16
|
-
), St = W(
|
|
17
|
-
() => import("./common-components-coAoWxE9.js").then((n) => n.$)
|
|
18
|
-
), Tt = W(
|
|
19
|
-
() => import("./common-components-coAoWxE9.js").then((n) => n.a0)
|
|
20
|
-
), Mt = W(
|
|
21
|
-
() => import("./common-components-coAoWxE9.js").then((n) => n.a1)
|
|
22
|
-
), Lt = W(
|
|
23
|
-
() => import("./common-components-coAoWxE9.js").then((n) => n.a2)
|
|
9
|
+
import { UndoOutlined as ee, UserOutlined as ot, CloseOutlined as X, PushpinOutlined as st, ReloadOutlined as Ce, RestOutlined as at, PushpinTwoTone as it, StepBackwardOutlined as lt, LeftOutlined as ct, RightOutlined as dt, StepForwardOutlined as ut, MenuUnfoldOutlined as mt, MenuFoldOutlined as ht, ExclamationCircleOutlined as pt, WarningOutlined as gt, StarOutlined as ft, FolderOpenOutlined as bt, ExclamationCircleTwoTone as yt } from "@ant-design/icons";
|
|
10
|
+
import { getTodateString as ve, colorFormat as Ct, getUserId as we } from "../utils/index.js";
|
|
11
|
+
import { useSensors as vt, useSensor as wt, PointerSensor as xt, DndContext as kt, closestCenter as It } from "@dnd-kit/core";
|
|
12
|
+
import { restrictToHorizontalAxis as Nt } from "@dnd-kit/modifiers";
|
|
13
|
+
import { arrayMove as Pt, SortableContext as St, horizontalListSortingStrategy as Tt, useSortable as Mt } from "@dnd-kit/sortable";
|
|
14
|
+
const Lt = W(
|
|
15
|
+
() => import("./MenuReport-DxJIaW8D.js")
|
|
24
16
|
), Bt = W(
|
|
25
|
-
() => import("./common-components-
|
|
17
|
+
() => import("./common-components-dzN5Nuq0.js").then((n) => n.$)
|
|
26
18
|
), Ot = W(
|
|
27
|
-
() => import("./
|
|
19
|
+
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a0)
|
|
28
20
|
), Et = W(
|
|
29
|
-
() => import("./common-components-
|
|
21
|
+
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a1)
|
|
30
22
|
), Rt = W(
|
|
31
|
-
() => import("./common-components-
|
|
32
|
-
), Dt =
|
|
23
|
+
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a2)
|
|
24
|
+
), Dt = W(
|
|
25
|
+
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a4)
|
|
26
|
+
), zt = W(
|
|
27
|
+
() => import("./CMSearchIntfGwP01-Bx5cpkhH.js")
|
|
28
|
+
), At = W(
|
|
29
|
+
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a5)
|
|
30
|
+
), Wt = W(
|
|
31
|
+
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a3)
|
|
32
|
+
), $t = {
|
|
33
33
|
// 게시판/문의
|
|
34
34
|
CORE_REPORT: {
|
|
35
|
-
component:
|
|
35
|
+
component: Lt,
|
|
36
36
|
defaultConfig: {
|
|
37
37
|
title: "게시판/문의",
|
|
38
38
|
width: 1200,
|
|
@@ -41,7 +41,7 @@ const Pt = W(
|
|
|
41
41
|
},
|
|
42
42
|
// 조직/부서 검색류
|
|
43
43
|
CORE_DEPARTMENT_01: {
|
|
44
|
-
component:
|
|
44
|
+
component: Bt,
|
|
45
45
|
defaultConfig: {
|
|
46
46
|
title: "부서 검색",
|
|
47
47
|
width: 620,
|
|
@@ -49,7 +49,7 @@ const Pt = W(
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
CORE_DEPARTMENT_02: {
|
|
52
|
-
component:
|
|
52
|
+
component: Ot,
|
|
53
53
|
defaultConfig: {
|
|
54
54
|
title: "부서 검색",
|
|
55
55
|
width: 620,
|
|
@@ -57,7 +57,7 @@ const Pt = W(
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
CORE_ORGANIZATION_01: {
|
|
60
|
-
component:
|
|
60
|
+
component: Et,
|
|
61
61
|
defaultConfig: {
|
|
62
62
|
title: "조직 검색",
|
|
63
63
|
width: 620,
|
|
@@ -65,7 +65,7 @@ const Pt = W(
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
CORE_ORGANIZATION_02: {
|
|
68
|
-
component:
|
|
68
|
+
component: Rt,
|
|
69
69
|
defaultConfig: {
|
|
70
70
|
title: "조직 검색",
|
|
71
71
|
width: 1e3,
|
|
@@ -73,7 +73,7 @@ const Pt = W(
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
CORE_PRGR_02: {
|
|
76
|
-
component:
|
|
76
|
+
component: Dt,
|
|
77
77
|
defaultConfig: {
|
|
78
78
|
title: "프로그램 검색",
|
|
79
79
|
width: 700,
|
|
@@ -81,7 +81,7 @@ const Pt = W(
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
CORE_GW_DRAFTS: {
|
|
84
|
-
component:
|
|
84
|
+
component: zt,
|
|
85
85
|
defaultConfig: {
|
|
86
86
|
title: "기안 목록",
|
|
87
87
|
width: 1e3,
|
|
@@ -89,7 +89,7 @@ const Pt = W(
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
CORE_ADDRESS_01: {
|
|
92
|
-
component:
|
|
92
|
+
component: At,
|
|
93
93
|
defaultConfig: {
|
|
94
94
|
title: "주소 검색",
|
|
95
95
|
width: 750,
|
|
@@ -97,18 +97,18 @@ const Pt = W(
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
CORE_HOLIDAY_01: {
|
|
100
|
-
component:
|
|
100
|
+
component: Wt,
|
|
101
101
|
defaultConfig: {
|
|
102
102
|
title: "휴일 검색",
|
|
103
103
|
width: 750,
|
|
104
104
|
height: 800
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
},
|
|
108
|
-
function
|
|
109
|
-
if (typeof document > "u" || document.getElementById(
|
|
107
|
+
}, xe = "bwg-dot-line-wave-v4";
|
|
108
|
+
function Ft() {
|
|
109
|
+
if (typeof document > "u" || document.getElementById(xe)) return;
|
|
110
110
|
const n = document.createElement("style");
|
|
111
|
-
n.id =
|
|
111
|
+
n.id = xe, n.textContent = `
|
|
112
112
|
.bwg-dotline {
|
|
113
113
|
display: inline-flex;
|
|
114
114
|
align-items: center;
|
|
@@ -144,70 +144,67 @@ function zt() {
|
|
|
144
144
|
}
|
|
145
145
|
`, document.head.appendChild(n);
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const _t = ({
|
|
148
148
|
colors: n = ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
149
149
|
count: t,
|
|
150
150
|
size: r = 12,
|
|
151
151
|
gap: o = 10,
|
|
152
|
-
amp:
|
|
153
|
-
speedMs:
|
|
154
|
-
direction:
|
|
155
|
-
phase:
|
|
152
|
+
amp: a = 16,
|
|
153
|
+
speedMs: i = 900,
|
|
154
|
+
direction: y = "ltr",
|
|
155
|
+
phase: c = 0.7
|
|
156
156
|
}) => {
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
z(() => {
|
|
158
|
+
Ft();
|
|
159
159
|
}, []);
|
|
160
|
-
const
|
|
160
|
+
const u = t ?? n.length, v = Array.from({ length: u }), p = {
|
|
161
161
|
"--bwg-size": `${r}px`,
|
|
162
162
|
"--bwg-gap": `${o}px`,
|
|
163
|
-
"--bwg-amp": `${
|
|
164
|
-
"--bwg-speed": `${
|
|
165
|
-
},
|
|
163
|
+
"--bwg-amp": `${a}px`,
|
|
164
|
+
"--bwg-speed": `${i}ms`
|
|
165
|
+
}, N = i / u * c;
|
|
166
166
|
return /* @__PURE__ */ e(
|
|
167
167
|
"span",
|
|
168
168
|
{
|
|
169
169
|
className: "bwg-dotline",
|
|
170
170
|
role: "img",
|
|
171
171
|
"aria-label": "loading",
|
|
172
|
-
style:
|
|
173
|
-
children: v.map((
|
|
172
|
+
style: p,
|
|
173
|
+
children: v.map((l, m) => /* @__PURE__ */ e(
|
|
174
174
|
"span",
|
|
175
175
|
{
|
|
176
176
|
className: "dot",
|
|
177
177
|
style: {
|
|
178
|
-
backgroundColor: n[
|
|
179
|
-
animationDelay:
|
|
178
|
+
backgroundColor: n[m % n.length],
|
|
179
|
+
animationDelay: y === "ltr" ? `${m * N}ms` : `${(u - 1 - m) * N}ms`
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
m
|
|
183
183
|
))
|
|
184
184
|
}
|
|
185
185
|
);
|
|
186
|
-
},
|
|
186
|
+
}, In = ({
|
|
187
187
|
spin: n = null,
|
|
188
188
|
text: t = "인증중...",
|
|
189
189
|
dimStyle: r = "dark"
|
|
190
190
|
}) => {
|
|
191
191
|
if (!(n ?? !0)) return null;
|
|
192
|
-
const
|
|
193
|
-
return /* @__PURE__ */
|
|
192
|
+
const i = r === "dark";
|
|
193
|
+
return /* @__PURE__ */ b(
|
|
194
194
|
"div",
|
|
195
195
|
{
|
|
196
196
|
className: "loading-overlay",
|
|
197
197
|
style: {
|
|
198
|
-
position: "
|
|
199
|
-
|
|
200
|
-
left: 0,
|
|
201
|
-
right: 0,
|
|
202
|
-
top: 0,
|
|
198
|
+
position: "absolute",
|
|
199
|
+
inset: 0,
|
|
203
200
|
display: "flex",
|
|
204
201
|
flexDirection: "column",
|
|
205
202
|
justifyContent: "center",
|
|
206
203
|
alignItems: "center",
|
|
207
204
|
gap: 8,
|
|
208
205
|
padding: "8px 12px",
|
|
209
|
-
background:
|
|
210
|
-
color:
|
|
206
|
+
background: i ? "rgba(0, 0, 0, 0.6)" : "rgba(255, 255, 255, 0.85)",
|
|
207
|
+
color: i ? "#fff" : "#333",
|
|
211
208
|
backdropFilter: "blur(4px)",
|
|
212
209
|
zIndex: 1e4
|
|
213
210
|
},
|
|
@@ -219,7 +216,7 @@ const At = ({
|
|
|
219
216
|
re,
|
|
220
217
|
{
|
|
221
218
|
indicator: /* @__PURE__ */ e(
|
|
222
|
-
|
|
219
|
+
_t,
|
|
223
220
|
{
|
|
224
221
|
colors: ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
225
222
|
size: 12,
|
|
@@ -236,18 +233,18 @@ const At = ({
|
|
|
236
233
|
]
|
|
237
234
|
}
|
|
238
235
|
);
|
|
239
|
-
},
|
|
236
|
+
}, Nn = ({
|
|
240
237
|
routes: n,
|
|
241
238
|
useCommonProvider: t = !0,
|
|
242
239
|
useServiceProvider: r = !0
|
|
243
240
|
}) => {
|
|
244
|
-
let
|
|
245
|
-
/* @__PURE__ */ e(te, { path: "/", element: /* @__PURE__ */ e(
|
|
241
|
+
let a = /* @__PURE__ */ b(ke, { children: [
|
|
242
|
+
/* @__PURE__ */ e(te, { path: "/", element: /* @__PURE__ */ e(Re, { to: "/login" }) }),
|
|
246
243
|
/* @__PURE__ */ e(te, { path: "/login", element: n.login }),
|
|
247
244
|
/* @__PURE__ */ e(te, { path: "/main/*", element: n.main })
|
|
248
245
|
] });
|
|
249
|
-
return r && (
|
|
250
|
-
}, { Content:
|
|
246
|
+
return r && (a = /* @__PURE__ */ e(Le, { children: a })), t && (a = /* @__PURE__ */ e(Be, { children: a })), /* @__PURE__ */ e(ze, { children: a });
|
|
247
|
+
}, { Content: Gt } = Z, Se = ({
|
|
251
248
|
config: n = {},
|
|
252
249
|
children: t
|
|
253
250
|
}) => {
|
|
@@ -263,11 +260,11 @@ const At = ({
|
|
|
263
260
|
...n
|
|
264
261
|
};
|
|
265
262
|
return /* @__PURE__ */ e(
|
|
266
|
-
|
|
263
|
+
Gt,
|
|
267
264
|
{
|
|
268
265
|
className: r.wrapper.className,
|
|
269
266
|
style: r.wrapper.style,
|
|
270
|
-
children: /* @__PURE__ */ e(
|
|
267
|
+
children: /* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ e(
|
|
271
268
|
"div",
|
|
272
269
|
{
|
|
273
270
|
className: r.body.className,
|
|
@@ -277,7 +274,7 @@ const At = ({
|
|
|
277
274
|
) })
|
|
278
275
|
}
|
|
279
276
|
);
|
|
280
|
-
},
|
|
277
|
+
}, Ht = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.9998%2019.9993V20.9993C11.9998%2021.3932%2012.0774%2021.7833%2012.2282%2022.1473C12.3789%2022.5112%2012.5999%2022.8419%2012.8785%2023.1205C13.157%2023.399%2013.4877%2023.62%2013.8517%2023.7708C14.2156%2023.9215%2014.6057%2023.9991%2014.9997%2023.9991C15.3936%2023.9991%2015.7837%2023.9215%2016.1477%2023.7708C16.5116%2023.62%2016.8423%2023.399%2017.1209%2023.1205C17.3994%2022.8419%2017.6204%2022.5112%2017.7712%2022.1473C17.9219%2021.7833%2017.9995%2021.3932%2017.9995%2020.9993V19.9993M20.9994%2011.9997C20.9994%2014.9996%2022.9993%2019.9993%2022.9993%2019.9993H7.00006C7.00006%2019.9993%208.99996%2015.9995%208.99996%2011.9997C8.99996%208.73187%2011.7318%206%2014.9997%206C18.2675%206%2020.9994%208.73187%2020.9994%2011.9997Z'%20stroke='%23485299'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", jt = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_93_4488)'%3e%3cpath%20d='M18%207H21C22.1046%207%2023%207.89543%2023%209V21C23%2022.1046%2022.1046%2023%2021%2023H18M11%2011L7%2015M7%2015L11%2019M7%2015L19%2015'%20stroke='%23485299'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_93_4488'%3e%3crect%20width='30'%20height='30'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Vt = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%206H16C16.5523%206%2017%206.44772%2017%207V7.56879C17%207.99659%2017.2871%208.36825%2017.6822%208.53228C18.0775%208.69638%2018.5377%208.63384%2018.8403%208.33123L19.2426%207.92891C19.6331%207.53838%2020.2663%207.53838%2020.6568%207.92891L22.071%209.34312C22.4616%209.73365%2022.4615%2010.3668%2022.071%2010.7573L21.6688%2011.1596C21.3661%2011.4622%2021.3036%2011.9225%2021.4677%2012.3177C21.6317%2012.7129%2022.0034%2013%2022.4313%2013L23%2013C23.5523%2013%2024%2013.4477%2024%2014V16C24%2016.5523%2023.5523%2017%2023%2017H22.4312C22.0034%2017%2021.6318%2017.2871%2021.4677%2017.6822C21.3036%2018.0775%2021.3661%2018.5377%2021.6688%2018.8403L22.071%2019.2426C22.4616%2019.6331%2022.4616%2020.2663%2022.071%2020.6568L20.6568%2022.071C20.2663%2022.4616%2019.6331%2022.4616%2019.2426%2022.071L18.8403%2021.6688C18.5377%2021.3661%2018.0775%2021.3036%2017.6822%2021.4677C17.2871%2021.6318%2017%2022.0034%2017%2022.4312V23C17%2023.5523%2016.5523%2024%2016%2024H14C13.4477%2024%2013%2023.5523%2013%2023V22.4313C13%2022.0034%2012.7129%2021.6317%2012.3177%2021.4677C11.9225%2021.3036%2011.4622%2021.3661%2011.1596%2021.6688L10.7573%2022.071C10.3668%2022.4616%209.73363%2022.4616%209.34311%2022.071L7.92889%2020.6568C7.53837%2020.2663%207.53837%2019.6331%207.92889%2019.2426L8.33123%2018.8403C8.63384%2018.5377%208.69638%2018.0775%208.53228%2017.6822C8.36825%2017.2871%207.99659%2017%207.56879%2017H7C6.44772%2017%206%2016.5523%206%2016V14C6%2013.4477%206.44772%2013%207%2013L7.56877%2013C7.99658%2013%208.36825%2012.7129%208.53229%2012.3178C8.6964%2011.9225%208.63386%2011.4623%208.33123%2011.1597L7.92891%2010.7573C7.53838%2010.3668%207.53838%209.73365%207.92891%209.34313L9.34312%207.92891C9.73365%207.53839%2010.3668%207.53839%2010.7573%207.92891L11.1597%208.33123C11.4623%208.63386%2011.9225%208.6964%2012.3178%208.53229C12.7129%208.36825%2013%207.99658%2013%207.56876V7C13%206.44772%2013.4477%206%2014%206Z'%20stroke='%23485299'%20stroke-width='1.5'/%3e%3cpath%20d='M17%2015C17%2016.1046%2016.1046%2017%2015%2017C13.8954%2017%2013%2016.1046%2013%2015C13%2013.8954%2013.8954%2013%2015%2013C16.1046%2013%2017%2013.8954%2017%2015Z'%20stroke='%23485299'%20stroke-width='1.5'/%3e%3c/svg%3e", { Header: Ut } = Z, { confirm: Kt } = Fe, $ = {
|
|
281
278
|
light: {
|
|
282
279
|
headerBg: "#ffffff",
|
|
283
280
|
headerText: "#000000",
|
|
@@ -330,11 +327,11 @@ const At = ({
|
|
|
330
327
|
buttonDefaultBorder: "#dddddd",
|
|
331
328
|
buttonPermissionBorder: "#bdb1ff"
|
|
332
329
|
}
|
|
333
|
-
},
|
|
330
|
+
}, ue = {
|
|
334
331
|
0: "작게",
|
|
335
332
|
1: "보통",
|
|
336
333
|
2: "크게"
|
|
337
|
-
},
|
|
334
|
+
}, Te = ({ config: n = {}, children: t }) => {
|
|
338
335
|
const r = {
|
|
339
336
|
gap: 14,
|
|
340
337
|
minWidth: 200,
|
|
@@ -367,65 +364,65 @@ const At = ({
|
|
|
367
364
|
...n.logo
|
|
368
365
|
},
|
|
369
366
|
right: r
|
|
370
|
-
},
|
|
371
|
-
componentSize:
|
|
372
|
-
setComponentSize:
|
|
367
|
+
}, a = fe(), i = Y(null), y = et(), {
|
|
368
|
+
componentSize: c,
|
|
369
|
+
setComponentSize: u,
|
|
373
370
|
gridSize: v,
|
|
374
|
-
setGridSize:
|
|
375
|
-
spacingSize:
|
|
376
|
-
setSpacingSize:
|
|
377
|
-
enableProtectWrapper:
|
|
378
|
-
setEnableProtectWrapper:
|
|
379
|
-
theme:
|
|
380
|
-
setTheme:
|
|
381
|
-
clearAllGridLayouts:
|
|
382
|
-
} =
|
|
371
|
+
setGridSize: p,
|
|
372
|
+
spacingSize: N,
|
|
373
|
+
setSpacingSize: l,
|
|
374
|
+
enableProtectWrapper: m,
|
|
375
|
+
setEnableProtectWrapper: k,
|
|
376
|
+
theme: g,
|
|
377
|
+
setTheme: d,
|
|
378
|
+
clearAllGridLayouts: C
|
|
379
|
+
} = Pe(), T = 1, E = 2, R = 2, x = (h, S) => {
|
|
383
380
|
try {
|
|
384
|
-
if (!/^[a-zA-Z0-9-]+$/.test(
|
|
385
|
-
document.documentElement.style.setProperty(
|
|
381
|
+
if (!/^[a-zA-Z0-9-]+$/.test(h) || !/^[#a-zA-Z0-9()\s,.-]+$/.test(S)) return;
|
|
382
|
+
document.documentElement.style.setProperty(h, S);
|
|
386
383
|
} catch (I) {
|
|
387
384
|
console.error("CSS variable setting failed:", I);
|
|
388
385
|
}
|
|
389
|
-
}, F = (
|
|
390
|
-
if (!$[
|
|
391
|
-
|
|
392
|
-
const S = { ...$[
|
|
393
|
-
|
|
386
|
+
}, F = (h) => {
|
|
387
|
+
if (!$[h]) return;
|
|
388
|
+
d(h);
|
|
389
|
+
const S = { ...$[h] };
|
|
390
|
+
x("--header-bg", S.headerBg), x("--header-text", S.headerText), x("--sidebar-bg", S.sidebarBg), x("--sidebar-text", S.sidebarText), x("--button-primary", S.buttonPrimary), x("--button-primary-hover", S.buttonPrimaryHover), x("--button-primary-active", S.buttonPrimaryActive), x("--button-default", S.buttonDefault), x("--button-default-hover", S.buttonDefaultHover), x("--button-default-border", S.buttonDefaultBorder), x(
|
|
394
391
|
"--button-permission-border",
|
|
395
392
|
S.buttonPermissionBorder
|
|
396
|
-
),
|
|
393
|
+
), i.current && i.current.setAttribute("data-theme", h), document.documentElement.setAttribute("data-theme", h);
|
|
397
394
|
};
|
|
398
|
-
|
|
399
|
-
if (
|
|
400
|
-
const
|
|
401
|
-
|
|
395
|
+
z(() => {
|
|
396
|
+
if (g && $[g]) {
|
|
397
|
+
const h = { ...$[g] };
|
|
398
|
+
x("--header-bg", h.headerBg), x("--header-text", h.headerText), x("--sidebar-bg", h.sidebarBg), x("--sidebar-text", h.sidebarText), x("--button-primary", h.buttonPrimary), x("--button-primary-hover", h.buttonPrimaryHover), x(
|
|
402
399
|
"--button-primary-active",
|
|
403
|
-
|
|
404
|
-
),
|
|
400
|
+
h.buttonPrimaryActive
|
|
401
|
+
), x("--button-default", h.buttonDefault), x("--button-default-hover", h.buttonDefaultHover), x(
|
|
405
402
|
"--button-default-border",
|
|
406
|
-
|
|
407
|
-
),
|
|
403
|
+
h.buttonDefaultBorder
|
|
404
|
+
), x(
|
|
408
405
|
"--button-permission-border",
|
|
409
|
-
|
|
410
|
-
),
|
|
406
|
+
h.buttonPermissionBorder
|
|
407
|
+
), i.current && i.current.setAttribute("data-theme", g), document.documentElement.setAttribute("data-theme", g);
|
|
411
408
|
} else
|
|
412
409
|
F("modern");
|
|
413
|
-
}, [
|
|
414
|
-
const
|
|
415
|
-
|
|
410
|
+
}, [g]);
|
|
411
|
+
const j = () => {
|
|
412
|
+
y(), a("/login");
|
|
416
413
|
};
|
|
417
|
-
|
|
418
|
-
const
|
|
414
|
+
ve ? ve("HH:mm:ss") : (/* @__PURE__ */ new Date()).toLocaleTimeString("ko-KR");
|
|
415
|
+
const V = $[g]?.headerBg || "#f3f4ff", q = /* @__PURE__ */ b(
|
|
419
416
|
"div",
|
|
420
417
|
{
|
|
421
418
|
style: {
|
|
422
419
|
padding: "16px",
|
|
423
|
-
backgroundColor:
|
|
420
|
+
backgroundColor: V,
|
|
424
421
|
borderRadius: "8px",
|
|
425
422
|
minWidth: "320px"
|
|
426
423
|
},
|
|
427
424
|
children: [
|
|
428
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ b("div", { style: { marginBottom: "16px" }, children: [
|
|
429
426
|
/* @__PURE__ */ e(
|
|
430
427
|
"div",
|
|
431
428
|
{
|
|
@@ -433,7 +430,7 @@ const At = ({
|
|
|
433
430
|
children: "테마 선택"
|
|
434
431
|
}
|
|
435
432
|
),
|
|
436
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ b(
|
|
437
434
|
"div",
|
|
438
435
|
{
|
|
439
436
|
style: {
|
|
@@ -446,42 +443,42 @@ const At = ({
|
|
|
446
443
|
/* @__PURE__ */ e(
|
|
447
444
|
B,
|
|
448
445
|
{
|
|
449
|
-
type:
|
|
446
|
+
type: g === "modern" ? "primary" : "default",
|
|
450
447
|
size: "small",
|
|
451
448
|
onClick: () => F("modern"),
|
|
452
449
|
style: {
|
|
453
450
|
width: "100%",
|
|
454
|
-
backgroundColor:
|
|
455
|
-
color:
|
|
456
|
-
borderColor:
|
|
451
|
+
backgroundColor: g === "modern" ? $.modern.headerBg : void 0,
|
|
452
|
+
color: g === "modern" ? $.modern.headerText : void 0,
|
|
453
|
+
borderColor: g === "modern" ? $.modern.headerBg : void 0
|
|
457
454
|
},
|
|
458
455
|
children: "모던"
|
|
459
456
|
},
|
|
460
457
|
"modern"
|
|
461
458
|
),
|
|
462
|
-
Object.entries($).filter(([
|
|
459
|
+
Object.entries($).filter(([h]) => h !== "modern").map(([h, S]) => /* @__PURE__ */ e(
|
|
463
460
|
B,
|
|
464
461
|
{
|
|
465
|
-
type:
|
|
462
|
+
type: g === h ? "primary" : "default",
|
|
466
463
|
size: "small",
|
|
467
|
-
onClick: () => F(
|
|
464
|
+
onClick: () => F(h),
|
|
468
465
|
style: {
|
|
469
466
|
width: "100%",
|
|
470
|
-
backgroundColor:
|
|
471
|
-
color:
|
|
472
|
-
borderColor:
|
|
467
|
+
backgroundColor: g === h ? S.headerBg : void 0,
|
|
468
|
+
color: g === h ? S.headerText : void 0,
|
|
469
|
+
borderColor: g === h ? S.headerBg : void 0
|
|
473
470
|
},
|
|
474
|
-
children:
|
|
471
|
+
children: h
|
|
475
472
|
},
|
|
476
|
-
|
|
473
|
+
h
|
|
477
474
|
))
|
|
478
475
|
]
|
|
479
476
|
}
|
|
480
477
|
)
|
|
481
478
|
] }),
|
|
482
|
-
/* @__PURE__ */ e(
|
|
483
|
-
/* @__PURE__ */
|
|
484
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ e(le, { style: { margin: "16px 0" } }),
|
|
480
|
+
/* @__PURE__ */ b("div", { style: { marginBottom: "16px" }, children: [
|
|
481
|
+
/* @__PURE__ */ b(
|
|
485
482
|
ne,
|
|
486
483
|
{
|
|
487
484
|
justify: "space-between",
|
|
@@ -495,8 +492,8 @@ const At = ({
|
|
|
495
492
|
type: "text",
|
|
496
493
|
size: "small",
|
|
497
494
|
icon: /* @__PURE__ */ e(ee, {}),
|
|
498
|
-
onClick: () =>
|
|
499
|
-
disabled:
|
|
495
|
+
onClick: () => u(T),
|
|
496
|
+
disabled: c === T,
|
|
500
497
|
style: { padding: "0 4px" }
|
|
501
498
|
}
|
|
502
499
|
)
|
|
@@ -504,19 +501,19 @@ const At = ({
|
|
|
504
501
|
}
|
|
505
502
|
),
|
|
506
503
|
/* @__PURE__ */ e(
|
|
507
|
-
|
|
504
|
+
ce,
|
|
508
505
|
{
|
|
509
|
-
marks:
|
|
510
|
-
value:
|
|
506
|
+
marks: ue,
|
|
507
|
+
value: c,
|
|
511
508
|
min: 0,
|
|
512
509
|
max: 2,
|
|
513
510
|
step: 1,
|
|
514
|
-
onChange: (
|
|
511
|
+
onChange: (h) => u(h)
|
|
515
512
|
}
|
|
516
513
|
)
|
|
517
514
|
] }),
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
/* @__PURE__ */
|
|
515
|
+
/* @__PURE__ */ b("div", { style: { marginBottom: "16px" }, children: [
|
|
516
|
+
/* @__PURE__ */ b(
|
|
520
517
|
ne,
|
|
521
518
|
{
|
|
522
519
|
justify: "space-between",
|
|
@@ -530,8 +527,8 @@ const At = ({
|
|
|
530
527
|
type: "text",
|
|
531
528
|
size: "small",
|
|
532
529
|
icon: /* @__PURE__ */ e(ee, {}),
|
|
533
|
-
onClick: () =>
|
|
534
|
-
disabled: v ===
|
|
530
|
+
onClick: () => p(E),
|
|
531
|
+
disabled: v === E,
|
|
535
532
|
style: { padding: "0 4px" }
|
|
536
533
|
}
|
|
537
534
|
)
|
|
@@ -539,19 +536,19 @@ const At = ({
|
|
|
539
536
|
}
|
|
540
537
|
),
|
|
541
538
|
/* @__PURE__ */ e(
|
|
542
|
-
|
|
539
|
+
ce,
|
|
543
540
|
{
|
|
544
|
-
marks:
|
|
541
|
+
marks: ue,
|
|
545
542
|
value: v,
|
|
546
543
|
min: 0,
|
|
547
544
|
max: 2,
|
|
548
545
|
step: 1,
|
|
549
|
-
onChange: (
|
|
546
|
+
onChange: (h) => p(h)
|
|
550
547
|
}
|
|
551
548
|
)
|
|
552
549
|
] }),
|
|
553
|
-
/* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ b("div", { style: { marginBottom: "16px" }, children: [
|
|
551
|
+
/* @__PURE__ */ b(
|
|
555
552
|
ne,
|
|
556
553
|
{
|
|
557
554
|
justify: "space-between",
|
|
@@ -565,8 +562,8 @@ const At = ({
|
|
|
565
562
|
type: "text",
|
|
566
563
|
size: "small",
|
|
567
564
|
icon: /* @__PURE__ */ e(ee, {}),
|
|
568
|
-
onClick: () =>
|
|
569
|
-
disabled:
|
|
565
|
+
onClick: () => l(R),
|
|
566
|
+
disabled: N === R,
|
|
570
567
|
style: { padding: "0 4px" }
|
|
571
568
|
}
|
|
572
569
|
)
|
|
@@ -574,19 +571,19 @@ const At = ({
|
|
|
574
571
|
}
|
|
575
572
|
),
|
|
576
573
|
/* @__PURE__ */ e(
|
|
577
|
-
|
|
574
|
+
ce,
|
|
578
575
|
{
|
|
579
|
-
marks:
|
|
580
|
-
value:
|
|
576
|
+
marks: ue,
|
|
577
|
+
value: N,
|
|
581
578
|
min: 0,
|
|
582
579
|
max: 2,
|
|
583
580
|
step: 1,
|
|
584
|
-
onChange: (
|
|
581
|
+
onChange: (h) => l(h)
|
|
585
582
|
}
|
|
586
583
|
)
|
|
587
584
|
] }),
|
|
588
|
-
/* @__PURE__ */ e(
|
|
589
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ e(le, { style: { margin: "16px 0" } }),
|
|
586
|
+
/* @__PURE__ */ b(
|
|
590
587
|
"div",
|
|
591
588
|
{
|
|
592
589
|
style: {
|
|
@@ -598,16 +595,16 @@ const At = ({
|
|
|
598
595
|
children: [
|
|
599
596
|
/* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500 }, children: "화면 보호 활성화" }),
|
|
600
597
|
/* @__PURE__ */ e(
|
|
601
|
-
|
|
598
|
+
$e,
|
|
602
599
|
{
|
|
603
|
-
checked:
|
|
604
|
-
onChange:
|
|
600
|
+
checked: m,
|
|
601
|
+
onChange: k
|
|
605
602
|
}
|
|
606
603
|
)
|
|
607
604
|
]
|
|
608
605
|
}
|
|
609
606
|
),
|
|
610
|
-
/* @__PURE__ */ e(
|
|
607
|
+
/* @__PURE__ */ e(le, { style: { margin: "16px 0" } }),
|
|
611
608
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
612
609
|
B,
|
|
613
610
|
{
|
|
@@ -616,11 +613,11 @@ const At = ({
|
|
|
616
613
|
size: "small",
|
|
617
614
|
icon: /* @__PURE__ */ e(ee, {}),
|
|
618
615
|
onClick: () => {
|
|
619
|
-
|
|
616
|
+
Kt({
|
|
620
617
|
title: "전체 그리드 레이아웃 초기화",
|
|
621
618
|
content: "임의 변경한 그리드 레이아웃 변경사항을 초기화하시겠습니까? 기존 열려있는 화면들은 다시 열어야 적용됩니다.",
|
|
622
619
|
onOk() {
|
|
623
|
-
|
|
620
|
+
C();
|
|
624
621
|
}
|
|
625
622
|
});
|
|
626
623
|
},
|
|
@@ -632,8 +629,8 @@ const At = ({
|
|
|
632
629
|
]
|
|
633
630
|
}
|
|
634
631
|
);
|
|
635
|
-
return /* @__PURE__ */
|
|
636
|
-
|
|
632
|
+
return /* @__PURE__ */ b(
|
|
633
|
+
Ut,
|
|
637
634
|
{
|
|
638
635
|
className: o.wrapper.className,
|
|
639
636
|
style: { ...o.wrapper.style },
|
|
@@ -659,7 +656,7 @@ const At = ({
|
|
|
659
656
|
children: t
|
|
660
657
|
}
|
|
661
658
|
),
|
|
662
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ b(
|
|
663
660
|
"div",
|
|
664
661
|
{
|
|
665
662
|
className: "header-right",
|
|
@@ -668,29 +665,29 @@ const At = ({
|
|
|
668
665
|
minWidth: o.right?.minWidth
|
|
669
666
|
},
|
|
670
667
|
children: [
|
|
671
|
-
o.right?.items?.map((
|
|
668
|
+
o.right?.items?.map((h, S) => /* @__PURE__ */ e("div", { children: h }, S)),
|
|
672
669
|
o.right?.alarm?.visible && /* @__PURE__ */ e(
|
|
673
670
|
B,
|
|
674
671
|
{
|
|
675
672
|
type: "text",
|
|
676
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
673
|
+
icon: /* @__PURE__ */ e("img", { src: Ht, alt: "알림" }),
|
|
677
674
|
className: "alarm-btn",
|
|
678
675
|
onClick: o.right?.alarm?.onClick
|
|
679
676
|
}
|
|
680
677
|
),
|
|
681
678
|
o.right?.theme?.visible && /* @__PURE__ */ e(
|
|
682
|
-
|
|
679
|
+
_e,
|
|
683
680
|
{
|
|
684
|
-
content:
|
|
681
|
+
content: q,
|
|
685
682
|
title: "개인 설정",
|
|
686
683
|
trigger: "click",
|
|
687
684
|
placement: "bottomRight",
|
|
688
|
-
onOpenChange: (
|
|
685
|
+
onOpenChange: (h) => o.right?.theme?.onOpenChange?.(h),
|
|
689
686
|
children: /* @__PURE__ */ e(
|
|
690
687
|
B,
|
|
691
688
|
{
|
|
692
689
|
type: "text",
|
|
693
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
690
|
+
icon: /* @__PURE__ */ e("img", { src: Vt, alt: "개인설정" }),
|
|
694
691
|
className: "theme-btn",
|
|
695
692
|
onClick: o.right?.theme?.onClick
|
|
696
693
|
}
|
|
@@ -701,15 +698,15 @@ const At = ({
|
|
|
701
698
|
B,
|
|
702
699
|
{
|
|
703
700
|
type: "text",
|
|
704
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
705
|
-
onClick: o.right?.logout?.onClick ||
|
|
701
|
+
icon: /* @__PURE__ */ e("img", { src: jt, alt: "로그아웃" }),
|
|
702
|
+
onClick: o.right?.logout?.onClick || j,
|
|
706
703
|
className: "logout-btn"
|
|
707
704
|
}
|
|
708
705
|
),
|
|
709
706
|
o.right?.avatar?.visible && /* @__PURE__ */ e(
|
|
710
|
-
|
|
707
|
+
Ge,
|
|
711
708
|
{
|
|
712
|
-
icon: /* @__PURE__ */ e(
|
|
709
|
+
icon: /* @__PURE__ */ e(ot, {}),
|
|
713
710
|
className: "avatar",
|
|
714
711
|
style: {
|
|
715
712
|
width: o.right?.avatar?.width,
|
|
@@ -724,7 +721,7 @@ const At = ({
|
|
|
724
721
|
]
|
|
725
722
|
}
|
|
726
723
|
);
|
|
727
|
-
},
|
|
724
|
+
}, pe = /* @__PURE__ */ Object.freeze({
|
|
728
725
|
Translate: {
|
|
729
726
|
toString(n) {
|
|
730
727
|
if (!n)
|
|
@@ -750,7 +747,7 @@ const At = ({
|
|
|
750
747
|
Transform: {
|
|
751
748
|
toString(n) {
|
|
752
749
|
if (n)
|
|
753
|
-
return [
|
|
750
|
+
return [pe.Translate.toString(n), pe.Scale.toString(n)].join(" ");
|
|
754
751
|
}
|
|
755
752
|
},
|
|
756
753
|
Transition: {
|
|
@@ -763,29 +760,29 @@ const At = ({
|
|
|
763
760
|
return t + " " + r + "ms " + o;
|
|
764
761
|
}
|
|
765
762
|
}
|
|
766
|
-
}),
|
|
763
|
+
}), Zt = be(
|
|
767
764
|
({ className: n, ...t }) => {
|
|
768
|
-
const r =
|
|
765
|
+
const r = Y(null), {
|
|
769
766
|
attributes: o,
|
|
770
|
-
listeners:
|
|
771
|
-
transform:
|
|
772
|
-
transition:
|
|
773
|
-
isDragging:
|
|
774
|
-
setNodeRef:
|
|
775
|
-
} =
|
|
776
|
-
|
|
777
|
-
const
|
|
778
|
-
if (
|
|
779
|
-
if (
|
|
780
|
-
const
|
|
781
|
-
|
|
767
|
+
listeners: a,
|
|
768
|
+
transform: i,
|
|
769
|
+
transition: y,
|
|
770
|
+
isDragging: c,
|
|
771
|
+
setNodeRef: u
|
|
772
|
+
} = Mt({ id: t["data-node-key"] }), [v, p] = A();
|
|
773
|
+
z(() => {
|
|
774
|
+
const C = r.current;
|
|
775
|
+
if (C)
|
|
776
|
+
if (c) {
|
|
777
|
+
const T = Math.round(C.getBoundingClientRect().width);
|
|
778
|
+
p(T);
|
|
782
779
|
} else
|
|
783
|
-
|
|
784
|
-
}, [
|
|
785
|
-
const
|
|
780
|
+
p(void 0);
|
|
781
|
+
}, [c]);
|
|
782
|
+
const N = {
|
|
786
783
|
...t.style,
|
|
787
|
-
transform:
|
|
788
|
-
transition:
|
|
784
|
+
transform: i ? pe.Transform.toString(i) : void 0,
|
|
785
|
+
transition: y ?? "transform 0.16s ease",
|
|
789
786
|
cursor: "grab",
|
|
790
787
|
userSelect: "none",
|
|
791
788
|
willChange: "transform",
|
|
@@ -794,30 +791,31 @@ const At = ({
|
|
|
794
791
|
minWidth: v ?? void 0,
|
|
795
792
|
maxWidth: v ?? void 0,
|
|
796
793
|
flex: v !== void 0 ? "0 0 auto" : void 0
|
|
797
|
-
};
|
|
798
|
-
return
|
|
799
|
-
ref: (
|
|
800
|
-
r.current !==
|
|
794
|
+
}, l = t.children, m = l.props?.className || "", d = t["data-gubun"] === "C" ? m ? `${m} tab-special` : "tab-special" : m;
|
|
795
|
+
return Xe(l, {
|
|
796
|
+
ref: (C) => {
|
|
797
|
+
r.current !== C && (r.current = C), u(C);
|
|
801
798
|
},
|
|
802
|
-
|
|
799
|
+
className: d,
|
|
800
|
+
style: N,
|
|
803
801
|
...o,
|
|
804
|
-
...
|
|
802
|
+
...a
|
|
805
803
|
});
|
|
806
804
|
}
|
|
807
|
-
),
|
|
805
|
+
), Yt = be(function({
|
|
808
806
|
config: t,
|
|
809
807
|
isFirst: r,
|
|
810
808
|
isLast: o,
|
|
811
|
-
canCloseAll:
|
|
812
|
-
onFirst:
|
|
813
|
-
onPrev:
|
|
814
|
-
onNext:
|
|
815
|
-
onLast:
|
|
809
|
+
canCloseAll: a,
|
|
810
|
+
onFirst: i,
|
|
811
|
+
onPrev: y,
|
|
812
|
+
onNext: c,
|
|
813
|
+
onLast: u,
|
|
816
814
|
onCloseAll: v
|
|
817
815
|
}) {
|
|
818
|
-
return /* @__PURE__ */
|
|
816
|
+
return /* @__PURE__ */ b("div", { className: t.wrapper?.className, style: t.wrapper?.style, children: [
|
|
819
817
|
/* @__PURE__ */ e(
|
|
820
|
-
|
|
818
|
+
Q,
|
|
821
819
|
{
|
|
822
820
|
title: "첫 번째 탭",
|
|
823
821
|
className: t.tooltip?.className,
|
|
@@ -828,15 +826,15 @@ const At = ({
|
|
|
828
826
|
className: t.buttons?.className,
|
|
829
827
|
style: t.buttons?.style,
|
|
830
828
|
size: "small",
|
|
831
|
-
icon: /* @__PURE__ */ e(
|
|
832
|
-
onClick:
|
|
829
|
+
icon: /* @__PURE__ */ e(lt, {}),
|
|
830
|
+
onClick: i,
|
|
833
831
|
disabled: r
|
|
834
832
|
}
|
|
835
833
|
)
|
|
836
834
|
}
|
|
837
835
|
),
|
|
838
836
|
/* @__PURE__ */ e(
|
|
839
|
-
|
|
837
|
+
Q,
|
|
840
838
|
{
|
|
841
839
|
title: "이전 탭",
|
|
842
840
|
className: t.tooltip?.className,
|
|
@@ -847,15 +845,15 @@ const At = ({
|
|
|
847
845
|
className: t.buttons?.className,
|
|
848
846
|
style: t.buttons?.style,
|
|
849
847
|
size: "small",
|
|
850
|
-
icon: /* @__PURE__ */ e(
|
|
851
|
-
onClick:
|
|
848
|
+
icon: /* @__PURE__ */ e(ct, {}),
|
|
849
|
+
onClick: y,
|
|
852
850
|
disabled: r
|
|
853
851
|
}
|
|
854
852
|
)
|
|
855
853
|
}
|
|
856
854
|
),
|
|
857
855
|
/* @__PURE__ */ e(
|
|
858
|
-
|
|
856
|
+
Q,
|
|
859
857
|
{
|
|
860
858
|
title: "다음 탭",
|
|
861
859
|
className: t.tooltip?.className,
|
|
@@ -866,15 +864,15 @@ const At = ({
|
|
|
866
864
|
className: t.buttons?.className,
|
|
867
865
|
style: t.buttons?.style,
|
|
868
866
|
size: "small",
|
|
869
|
-
icon: /* @__PURE__ */ e(
|
|
870
|
-
onClick:
|
|
867
|
+
icon: /* @__PURE__ */ e(dt, {}),
|
|
868
|
+
onClick: c,
|
|
871
869
|
disabled: o
|
|
872
870
|
}
|
|
873
871
|
)
|
|
874
872
|
}
|
|
875
873
|
),
|
|
876
874
|
/* @__PURE__ */ e(
|
|
877
|
-
|
|
875
|
+
Q,
|
|
878
876
|
{
|
|
879
877
|
title: "마지막 탭",
|
|
880
878
|
className: t.tooltip?.className,
|
|
@@ -885,15 +883,15 @@ const At = ({
|
|
|
885
883
|
className: t.buttons?.className,
|
|
886
884
|
style: t.buttons?.style,
|
|
887
885
|
size: "small",
|
|
888
|
-
icon: /* @__PURE__ */ e(
|
|
889
|
-
onClick:
|
|
886
|
+
icon: /* @__PURE__ */ e(ut, {}),
|
|
887
|
+
onClick: u,
|
|
890
888
|
disabled: o
|
|
891
889
|
}
|
|
892
890
|
)
|
|
893
891
|
}
|
|
894
892
|
),
|
|
895
893
|
/* @__PURE__ */ e(
|
|
896
|
-
|
|
894
|
+
Q,
|
|
897
895
|
{
|
|
898
896
|
title: "모든 탭 닫기",
|
|
899
897
|
className: t.tooltip?.className,
|
|
@@ -904,15 +902,15 @@ const At = ({
|
|
|
904
902
|
className: t.buttons?.className,
|
|
905
903
|
style: t.buttons?.style,
|
|
906
904
|
size: "small",
|
|
907
|
-
icon: /* @__PURE__ */ e(
|
|
905
|
+
icon: /* @__PURE__ */ e(X, {}),
|
|
908
906
|
onClick: v,
|
|
909
|
-
disabled: !
|
|
907
|
+
disabled: !a
|
|
910
908
|
}
|
|
911
909
|
)
|
|
912
910
|
}
|
|
913
911
|
)
|
|
914
912
|
] });
|
|
915
|
-
}),
|
|
913
|
+
}), qt = ({
|
|
916
914
|
config: n = {}
|
|
917
915
|
}) => {
|
|
918
916
|
const t = {
|
|
@@ -940,57 +938,57 @@ const At = ({
|
|
|
940
938
|
...n?.nav
|
|
941
939
|
},
|
|
942
940
|
...n
|
|
943
|
-
}, r = O((s) => s.tabs), o = O((s) => s.activeMenuId),
|
|
941
|
+
}, r = O((s) => s.tabs), o = O((s) => s.activeMenuId), a = O((s) => s.pinnedTabs), i = O((s) => s.focusTab), y = O((s) => s.closeTab), c = O((s) => s.reorderTabs), u = O((s) => s.togglePinTab), v = O((s) => s.refreshTab), p = O((s) => s.closeOtherTabs), N = O((s) => s.closeRightTabs);
|
|
944
942
|
O((s) => s.closeAllTabs);
|
|
945
|
-
const
|
|
946
|
-
|
|
947
|
-
),
|
|
948
|
-
|
|
949
|
-
},
|
|
950
|
-
|
|
951
|
-
}, y = () => {
|
|
952
|
-
r.length > 0 && a(r[0].key);
|
|
943
|
+
const l = vt(
|
|
944
|
+
wt(xt, { activationConstraint: { distance: 6 } })
|
|
945
|
+
), m = (s) => {
|
|
946
|
+
i(s);
|
|
947
|
+
}, k = (s, w) => {
|
|
948
|
+
w === "remove" && typeof s == "string" && y(s);
|
|
953
949
|
}, g = () => {
|
|
950
|
+
r.length > 0 && i(r[0].key);
|
|
951
|
+
}, d = () => {
|
|
954
952
|
if (!o || r.length <= 1) return;
|
|
955
|
-
const s = r.findIndex((
|
|
956
|
-
s > 0 &&
|
|
957
|
-
},
|
|
953
|
+
const s = r.findIndex((w) => w.key === o);
|
|
954
|
+
s > 0 && i(r[s - 1].key);
|
|
955
|
+
}, C = () => {
|
|
958
956
|
if (!o || r.length <= 1) return;
|
|
959
|
-
const s = r.findIndex((
|
|
960
|
-
s < r.length - 1 &&
|
|
957
|
+
const s = r.findIndex((w) => w.key === o);
|
|
958
|
+
s < r.length - 1 && i(r[s + 1].key);
|
|
961
959
|
}, T = () => {
|
|
962
|
-
r.length > 0 &&
|
|
963
|
-
},
|
|
960
|
+
r.length > 0 && i(r[r.length - 1].key);
|
|
961
|
+
}, E = () => {
|
|
964
962
|
r.forEach((s) => {
|
|
965
|
-
|
|
963
|
+
a.has(s.key) || y(s.key);
|
|
966
964
|
});
|
|
967
|
-
},
|
|
968
|
-
|
|
969
|
-
}, []),
|
|
965
|
+
}, R = D((s) => (w) => {
|
|
966
|
+
w.preventDefault(), w.stopPropagation();
|
|
967
|
+
}, []), x = D(
|
|
970
968
|
(s) => {
|
|
971
|
-
const
|
|
969
|
+
const w = a.has(s), M = r.findIndex((J) => J.key === s), L = M >= 0 && M < r.length - 1, G = r.length > 1;
|
|
972
970
|
return [
|
|
973
971
|
{
|
|
974
972
|
key: "close",
|
|
975
973
|
label: "닫기",
|
|
976
|
-
icon: /* @__PURE__ */ e(
|
|
974
|
+
icon: /* @__PURE__ */ e(X, {}),
|
|
977
975
|
onClick: () => {
|
|
978
|
-
|
|
976
|
+
w || y(s);
|
|
979
977
|
},
|
|
980
|
-
disabled:
|
|
978
|
+
disabled: w
|
|
981
979
|
},
|
|
982
980
|
{
|
|
983
981
|
key: "pin",
|
|
984
|
-
label:
|
|
985
|
-
icon: /* @__PURE__ */ e(
|
|
982
|
+
label: w ? "고정 해제" : "고정",
|
|
983
|
+
icon: /* @__PURE__ */ e(st, {}),
|
|
986
984
|
onClick: () => {
|
|
987
|
-
|
|
985
|
+
u(s);
|
|
988
986
|
}
|
|
989
987
|
},
|
|
990
988
|
{
|
|
991
989
|
key: "refresh",
|
|
992
990
|
label: "새로고침",
|
|
993
|
-
icon: /* @__PURE__ */ e(
|
|
991
|
+
icon: /* @__PURE__ */ e(Ce, {}),
|
|
994
992
|
onClick: () => {
|
|
995
993
|
v(s);
|
|
996
994
|
}
|
|
@@ -1001,27 +999,27 @@ const At = ({
|
|
|
1001
999
|
{
|
|
1002
1000
|
key: "closeOthers",
|
|
1003
1001
|
label: "다른 탭 닫기",
|
|
1004
|
-
icon: /* @__PURE__ */ e(
|
|
1002
|
+
icon: /* @__PURE__ */ e(X, {}),
|
|
1005
1003
|
onClick: () => {
|
|
1006
|
-
|
|
1004
|
+
p(s);
|
|
1007
1005
|
},
|
|
1008
1006
|
disabled: !G
|
|
1009
1007
|
},
|
|
1010
1008
|
{
|
|
1011
1009
|
key: "closeRight",
|
|
1012
1010
|
label: "우측 탭 닫기",
|
|
1013
|
-
icon: /* @__PURE__ */ e(
|
|
1011
|
+
icon: /* @__PURE__ */ e(X, {}),
|
|
1014
1012
|
onClick: () => {
|
|
1015
|
-
|
|
1013
|
+
N(s);
|
|
1016
1014
|
},
|
|
1017
1015
|
disabled: !L
|
|
1018
1016
|
},
|
|
1019
1017
|
{
|
|
1020
1018
|
key: "closeAll",
|
|
1021
1019
|
label: "전체 닫기",
|
|
1022
|
-
icon: /* @__PURE__ */ e(
|
|
1020
|
+
icon: /* @__PURE__ */ e(at, {}),
|
|
1023
1021
|
onClick: () => {
|
|
1024
|
-
|
|
1022
|
+
E();
|
|
1025
1023
|
},
|
|
1026
1024
|
disabled: r.length === 0
|
|
1027
1025
|
}
|
|
@@ -1029,69 +1027,82 @@ const At = ({
|
|
|
1029
1027
|
},
|
|
1030
1028
|
[
|
|
1031
1029
|
r,
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1030
|
+
a,
|
|
1031
|
+
y,
|
|
1032
|
+
u,
|
|
1035
1033
|
v,
|
|
1036
|
-
|
|
1037
|
-
|
|
1034
|
+
p,
|
|
1035
|
+
N
|
|
1038
1036
|
]
|
|
1039
|
-
), F = o ? r.findIndex((s) => s.key === o) : -1,
|
|
1040
|
-
() => r.map((s) =>
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1037
|
+
), F = o ? r.findIndex((s) => s.key === o) : -1, j = F === 0, V = F === r.length - 1, q = _(
|
|
1038
|
+
() => r.map((s) => {
|
|
1039
|
+
const w = a.has(s.key);
|
|
1040
|
+
return {
|
|
1041
|
+
key: s.key,
|
|
1042
|
+
label: /* @__PURE__ */ b("span", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
1043
|
+
w && /* @__PURE__ */ e(
|
|
1044
|
+
it,
|
|
1045
|
+
{
|
|
1046
|
+
twoToneColor: Ct.default.yellow05,
|
|
1047
|
+
style: { fontSize: "12px" }
|
|
1048
|
+
}
|
|
1049
|
+
),
|
|
1050
|
+
s.label
|
|
1051
|
+
] }),
|
|
1052
|
+
closable: !w,
|
|
1053
|
+
// 고정된 탭은 닫을 수 없음
|
|
1054
|
+
children: null
|
|
1055
|
+
// 컨텐츠는 Main 쪽에서 렌더 → 여기선 헤더만 필요
|
|
1056
|
+
};
|
|
1057
|
+
}),
|
|
1058
|
+
[r, a]
|
|
1059
|
+
), [h, S] = A(null), I = D(({ active: s }) => {
|
|
1050
1060
|
S(null);
|
|
1051
|
-
}, []), P =
|
|
1052
|
-
({ active: s, over:
|
|
1053
|
-
if (!
|
|
1054
|
-
const M = r.findIndex((
|
|
1061
|
+
}, []), P = D(
|
|
1062
|
+
({ active: s, over: w }) => {
|
|
1063
|
+
if (!w || s.id === w.id) return;
|
|
1064
|
+
const M = r.findIndex((H) => H.key === s.id), L = r.findIndex((H) => H.key === w.id);
|
|
1055
1065
|
if (M < 0 || L < 0 || M === L) return;
|
|
1056
|
-
const G = r.map((
|
|
1057
|
-
|
|
1066
|
+
const G = r.map((H) => H.key), J = Pt(G, M, L);
|
|
1067
|
+
c?.(J);
|
|
1058
1068
|
},
|
|
1059
|
-
[r,
|
|
1060
|
-
), f =
|
|
1061
|
-
(s,
|
|
1062
|
-
|
|
1069
|
+
[r, c]
|
|
1070
|
+
), f = D(
|
|
1071
|
+
(s, w) => /* @__PURE__ */ e(
|
|
1072
|
+
kt,
|
|
1063
1073
|
{
|
|
1064
|
-
sensors:
|
|
1074
|
+
sensors: l,
|
|
1065
1075
|
onDragStart: I,
|
|
1066
1076
|
onDragEnd: P,
|
|
1067
|
-
collisionDetection:
|
|
1068
|
-
modifiers: [
|
|
1077
|
+
collisionDetection: It,
|
|
1078
|
+
modifiers: [Nt],
|
|
1069
1079
|
children: /* @__PURE__ */ e(
|
|
1070
|
-
|
|
1080
|
+
St,
|
|
1071
1081
|
{
|
|
1072
1082
|
items: r.map((M) => M.key),
|
|
1073
|
-
strategy:
|
|
1074
|
-
children: /* @__PURE__ */ e(
|
|
1075
|
-
const L = M.key, G =
|
|
1083
|
+
strategy: Tt,
|
|
1084
|
+
children: /* @__PURE__ */ e(w, { ...s, children: (M) => {
|
|
1085
|
+
const L = M.key, G = h === L, H = r.find((ie) => ie.key === L)?.gubun;
|
|
1076
1086
|
return /* @__PURE__ */ e(
|
|
1077
|
-
|
|
1087
|
+
He,
|
|
1078
1088
|
{
|
|
1079
|
-
menu: { items:
|
|
1089
|
+
menu: { items: x(L) },
|
|
1080
1090
|
trigger: ["contextMenu"],
|
|
1081
1091
|
open: G,
|
|
1082
|
-
onOpenChange: (
|
|
1083
|
-
S(
|
|
1092
|
+
onOpenChange: (ie) => {
|
|
1093
|
+
S(ie ? L : null);
|
|
1084
1094
|
},
|
|
1085
1095
|
children: /* @__PURE__ */ e(
|
|
1086
1096
|
"span",
|
|
1087
1097
|
{
|
|
1088
|
-
onContextMenu:
|
|
1098
|
+
onContextMenu: R(L),
|
|
1089
1099
|
style: { display: "inline-block", width: "100%" },
|
|
1090
|
-
children: /* @__PURE__ */
|
|
1091
|
-
|
|
1100
|
+
children: /* @__PURE__ */ Ne(
|
|
1101
|
+
Zt,
|
|
1092
1102
|
{
|
|
1093
1103
|
...M.props,
|
|
1094
|
-
key: M.key
|
|
1104
|
+
key: M.key,
|
|
1105
|
+
"data-gubun": H
|
|
1095
1106
|
},
|
|
1096
1107
|
M
|
|
1097
1108
|
)
|
|
@@ -1105,13 +1116,13 @@ const At = ({
|
|
|
1105
1116
|
}
|
|
1106
1117
|
),
|
|
1107
1118
|
[
|
|
1108
|
-
|
|
1119
|
+
l,
|
|
1109
1120
|
I,
|
|
1110
1121
|
P,
|
|
1111
1122
|
r,
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1123
|
+
h,
|
|
1124
|
+
x,
|
|
1125
|
+
R
|
|
1115
1126
|
]
|
|
1116
1127
|
);
|
|
1117
1128
|
return /* @__PURE__ */ e(
|
|
@@ -1123,28 +1134,28 @@ const At = ({
|
|
|
1123
1134
|
display: r.length === 0 ? "none" : "block"
|
|
1124
1135
|
},
|
|
1125
1136
|
children: /* @__PURE__ */ e(
|
|
1126
|
-
|
|
1137
|
+
je,
|
|
1127
1138
|
{
|
|
1128
1139
|
type: "editable-card",
|
|
1129
1140
|
activeKey: o || void 0,
|
|
1130
|
-
onChange:
|
|
1131
|
-
onEdit:
|
|
1141
|
+
onChange: m,
|
|
1142
|
+
onEdit: k,
|
|
1132
1143
|
className: t.tabs.className,
|
|
1133
1144
|
style: t.tabs.style,
|
|
1134
1145
|
hideAdd: !0,
|
|
1135
|
-
items:
|
|
1146
|
+
items: q,
|
|
1136
1147
|
tabBarExtraContent: /* @__PURE__ */ e(
|
|
1137
|
-
|
|
1148
|
+
Yt,
|
|
1138
1149
|
{
|
|
1139
1150
|
config: t?.nav,
|
|
1140
|
-
isFirst: !!
|
|
1141
|
-
isLast: !!
|
|
1151
|
+
isFirst: !!j,
|
|
1152
|
+
isLast: !!V,
|
|
1142
1153
|
canCloseAll: r.length > 0,
|
|
1143
|
-
onFirst:
|
|
1144
|
-
onPrev:
|
|
1145
|
-
onNext:
|
|
1154
|
+
onFirst: g,
|
|
1155
|
+
onPrev: d,
|
|
1156
|
+
onNext: C,
|
|
1146
1157
|
onLast: T,
|
|
1147
|
-
onCloseAll:
|
|
1158
|
+
onCloseAll: E
|
|
1148
1159
|
}
|
|
1149
1160
|
),
|
|
1150
1161
|
renderTabBar: f
|
|
@@ -1152,7 +1163,7 @@ const At = ({
|
|
|
1152
1163
|
)
|
|
1153
1164
|
}
|
|
1154
1165
|
);
|
|
1155
|
-
}, { Sider:
|
|
1166
|
+
}, { Sider: Qt } = Z, Xt = ({
|
|
1156
1167
|
config: n = {}
|
|
1157
1168
|
}) => {
|
|
1158
1169
|
const t = {
|
|
@@ -1194,15 +1205,15 @@ const At = ({
|
|
|
1194
1205
|
...n?.style
|
|
1195
1206
|
},
|
|
1196
1207
|
...n
|
|
1197
|
-
}, [r, o] = A(""), [
|
|
1208
|
+
}, [r, o] = A(""), [a, i] = A(
|
|
1198
1209
|
"category"
|
|
1199
|
-
), [
|
|
1210
|
+
), [y, c] = A([]), { activeMenuId: u, sidebarCollapsed: v, openTabFromMenu: p, toggleSidebar: N } = O(), { menuList: l, isLoading: m, error: k, findMenuById: g, flatMenuList: d } = ae(), { nodes: C, treeNodes: T, loadFavoritesIfNeeded: E } = tt(), R = _(() => {
|
|
1200
1211
|
const I = [], P = (f, s = 0) => {
|
|
1201
1212
|
if (f.menuGbCd === t.menuGubunCode.program && f.scrnPath) {
|
|
1202
|
-
const
|
|
1213
|
+
const w = " ".repeat(s), M = f.menuNo || "";
|
|
1203
1214
|
I.push({
|
|
1204
1215
|
value: f.menuId,
|
|
1205
|
-
label: /* @__PURE__ */
|
|
1216
|
+
label: /* @__PURE__ */ b(
|
|
1206
1217
|
"div",
|
|
1207
1218
|
{
|
|
1208
1219
|
style: {
|
|
@@ -1211,8 +1222,8 @@ const At = ({
|
|
|
1211
1222
|
alignItems: "center"
|
|
1212
1223
|
},
|
|
1213
1224
|
children: [
|
|
1214
|
-
/* @__PURE__ */
|
|
1215
|
-
|
|
1225
|
+
/* @__PURE__ */ b("span", { children: [
|
|
1226
|
+
w,
|
|
1216
1227
|
f.menuNm
|
|
1217
1228
|
] }),
|
|
1218
1229
|
/* @__PURE__ */ e(
|
|
@@ -1235,13 +1246,13 @@ const At = ({
|
|
|
1235
1246
|
menuItem: f
|
|
1236
1247
|
});
|
|
1237
1248
|
}
|
|
1238
|
-
f.children && f.children.length > 0 && f.children.forEach((
|
|
1249
|
+
f.children && f.children.length > 0 && f.children.forEach((w) => P(w, s + 1));
|
|
1239
1250
|
};
|
|
1240
|
-
return
|
|
1241
|
-
}, [
|
|
1251
|
+
return l.forEach((f) => P(f)), I;
|
|
1252
|
+
}, [l]), x = _(() => r.trim() ? R.filter((I) => {
|
|
1242
1253
|
const P = I.menuItem.menuNm.toLowerCase(), f = String(I.menuItem.menuNo || "미지정").toLowerCase(), s = r.toLowerCase();
|
|
1243
1254
|
return P.includes(s) || f.includes(s);
|
|
1244
|
-
}) : [], [
|
|
1255
|
+
}) : [], [R, r]), F = (I) => {
|
|
1245
1256
|
if (!I || typeof I != "string") {
|
|
1246
1257
|
console.warn("Invalid menu selection value:", I);
|
|
1247
1258
|
return;
|
|
@@ -1250,7 +1261,7 @@ const At = ({
|
|
|
1250
1261
|
console.warn("Invalid menu ID format:", I);
|
|
1251
1262
|
return;
|
|
1252
1263
|
}
|
|
1253
|
-
const P =
|
|
1264
|
+
const P = R.find(
|
|
1254
1265
|
(f) => f.value === I
|
|
1255
1266
|
);
|
|
1256
1267
|
if (P) {
|
|
@@ -1268,11 +1279,11 @@ const At = ({
|
|
|
1268
1279
|
f.scrnPath,
|
|
1269
1280
|
"scrnId:",
|
|
1270
1281
|
f.scrnId
|
|
1271
|
-
),
|
|
1282
|
+
), p(f)) : (f.menuGbCd === t.menuGubunCode.mainMenu || f.menuGbCd === t.menuGubunCode.subMenu) && (console.log("❌ 검색으로 메인/서브 메뉴 선택 - 이벤트 무시"), console.log("메뉴명:", f.menuNm, "menuGbCd:", f.menuGbCd)), o("");
|
|
1272
1283
|
}
|
|
1273
|
-
},
|
|
1284
|
+
}, j = D(
|
|
1274
1285
|
(I) => {
|
|
1275
|
-
const P =
|
|
1286
|
+
const P = g(I);
|
|
1276
1287
|
P?.menuGbCd === t.menuGubunCode.program && (console.log(
|
|
1277
1288
|
"메뉴명:",
|
|
1278
1289
|
P.menuNm,
|
|
@@ -1280,10 +1291,10 @@ const At = ({
|
|
|
1280
1291
|
P.scrnPath,
|
|
1281
1292
|
"scrnId:",
|
|
1282
1293
|
P.scrnId
|
|
1283
|
-
),
|
|
1294
|
+
), p(P));
|
|
1284
1295
|
},
|
|
1285
|
-
[
|
|
1286
|
-
),
|
|
1296
|
+
[g, p, t.menuGubunCode.program]
|
|
1297
|
+
), V = D((I) => I.map((P) => ({
|
|
1287
1298
|
key: P.menuId,
|
|
1288
1299
|
label: /* @__PURE__ */ e(
|
|
1289
1300
|
"div",
|
|
@@ -1293,12 +1304,15 @@ const At = ({
|
|
|
1293
1304
|
justifyContent: "space-between",
|
|
1294
1305
|
alignItems: "center"
|
|
1295
1306
|
},
|
|
1307
|
+
onDoubleClick: (s) => {
|
|
1308
|
+
s.preventDefault(), s.stopPropagation();
|
|
1309
|
+
},
|
|
1296
1310
|
children: /* @__PURE__ */ e("span", { children: P.menuNm })
|
|
1297
1311
|
}
|
|
1298
1312
|
),
|
|
1299
|
-
icon:
|
|
1300
|
-
children: P.children && P.children.length > 0 ?
|
|
1301
|
-
})), []),
|
|
1313
|
+
icon: q(P.iconCd, P.menuGbCd),
|
|
1314
|
+
children: P.children && P.children.length > 0 ? V(P.children) : void 0
|
|
1315
|
+
})), []), q = (I, P) => {
|
|
1302
1316
|
if (I) {
|
|
1303
1317
|
const f = oe[I];
|
|
1304
1318
|
if (f)
|
|
@@ -1316,26 +1330,26 @@ const At = ({
|
|
|
1316
1330
|
return null;
|
|
1317
1331
|
}
|
|
1318
1332
|
return null;
|
|
1319
|
-
},
|
|
1333
|
+
}, h = D(
|
|
1320
1334
|
(I) => {
|
|
1321
|
-
if (
|
|
1335
|
+
if (l.length === 0) return [];
|
|
1322
1336
|
const P = (s) => {
|
|
1323
1337
|
if (s)
|
|
1324
|
-
return typeof s == "string" ?
|
|
1338
|
+
return typeof s == "string" ? C[s] : s;
|
|
1325
1339
|
}, f = (s) => {
|
|
1326
1340
|
if (s.type === "M") {
|
|
1327
|
-
const
|
|
1341
|
+
const w = s, M = g(w.menuId) || void 0, L = !!M, G = L ? `${M?.menuNm ?? w.menuNm ?? w.menuId}` : `${w.menuNm ?? w.menuId} (삭제됨)`;
|
|
1328
1342
|
return {
|
|
1329
|
-
key:
|
|
1343
|
+
key: w.menuId,
|
|
1330
1344
|
label: G,
|
|
1331
|
-
icon: L ? void 0 : /* @__PURE__ */ e(
|
|
1345
|
+
icon: L ? void 0 : /* @__PURE__ */ e(gt, { style: { color: "#faad14" } })
|
|
1332
1346
|
};
|
|
1333
1347
|
} else {
|
|
1334
|
-
const
|
|
1348
|
+
const w = s, M = (w.children ?? []).map(P).filter(Boolean).map(f);
|
|
1335
1349
|
return {
|
|
1336
|
-
key:
|
|
1337
|
-
label:
|
|
1338
|
-
icon:
|
|
1350
|
+
key: w.bkmkId,
|
|
1351
|
+
label: w.bkmkNm ?? w.bkmkId,
|
|
1352
|
+
icon: w.prntBkmkId === "-" ? /* @__PURE__ */ e(ft, {}) : /* @__PURE__ */ e(bt, {}),
|
|
1339
1353
|
children: M
|
|
1340
1354
|
// 빈 배열이면 자동으로 말아줌
|
|
1341
1355
|
};
|
|
@@ -1343,22 +1357,22 @@ const At = ({
|
|
|
1343
1357
|
};
|
|
1344
1358
|
return I.map(f);
|
|
1345
1359
|
},
|
|
1346
|
-
[
|
|
1360
|
+
[g, C, l]
|
|
1347
1361
|
), S = _(
|
|
1348
|
-
() =>
|
|
1349
|
-
[
|
|
1362
|
+
() => h(T),
|
|
1363
|
+
[h, T, C]
|
|
1350
1364
|
);
|
|
1351
|
-
return
|
|
1352
|
-
|
|
1353
|
-
}, [
|
|
1354
|
-
|
|
1355
|
-
}, [
|
|
1356
|
-
if (!
|
|
1365
|
+
return z(() => {
|
|
1366
|
+
we() && E(we());
|
|
1367
|
+
}, [E]), z(() => {
|
|
1368
|
+
a === "category" && o("");
|
|
1369
|
+
}, [a]), z(() => {
|
|
1370
|
+
if (!u || a !== "category") return;
|
|
1357
1371
|
const P = ((f) => {
|
|
1358
|
-
const s = [],
|
|
1372
|
+
const s = [], w = new Map(d.map((L) => [L.menuId, L]));
|
|
1359
1373
|
let M = f;
|
|
1360
1374
|
for (; M; ) {
|
|
1361
|
-
const L =
|
|
1375
|
+
const L = w.get(M);
|
|
1362
1376
|
if (!L) break;
|
|
1363
1377
|
if (L.menuPrntId && L.menuPrntId !== "-" && L.menuPrntId !== "")
|
|
1364
1378
|
s.push(L.menuPrntId), M = L.menuPrntId;
|
|
@@ -1366,13 +1380,13 @@ const At = ({
|
|
|
1366
1380
|
break;
|
|
1367
1381
|
}
|
|
1368
1382
|
return s;
|
|
1369
|
-
})(
|
|
1370
|
-
P.length > 0 &&
|
|
1383
|
+
})(u);
|
|
1384
|
+
P.length > 0 && c((f) => {
|
|
1371
1385
|
const s = /* @__PURE__ */ new Set([...f, ...P]);
|
|
1372
1386
|
return Array.from(s);
|
|
1373
1387
|
});
|
|
1374
|
-
}, [
|
|
1375
|
-
|
|
1388
|
+
}, [u, a, d]), /* @__PURE__ */ b(
|
|
1389
|
+
Qt,
|
|
1376
1390
|
{
|
|
1377
1391
|
className: t.className.wrapper,
|
|
1378
1392
|
collapsed: t.collapsed || v,
|
|
@@ -1403,7 +1417,7 @@ const At = ({
|
|
|
1403
1417
|
B,
|
|
1404
1418
|
{
|
|
1405
1419
|
type: "text",
|
|
1406
|
-
icon: t.collapsed || v ? /* @__PURE__ */ e(
|
|
1420
|
+
icon: t.collapsed || v ? /* @__PURE__ */ e(mt, {}) : /* @__PURE__ */ e(ht, {}),
|
|
1407
1421
|
style: {
|
|
1408
1422
|
fontSize: "12px",
|
|
1409
1423
|
color: "#787878",
|
|
@@ -1415,7 +1429,7 @@ const At = ({
|
|
|
1415
1429
|
justifyContent: "center",
|
|
1416
1430
|
borderRadius: "0 10px 10px 0"
|
|
1417
1431
|
},
|
|
1418
|
-
onClick:
|
|
1432
|
+
onClick: N
|
|
1419
1433
|
}
|
|
1420
1434
|
)
|
|
1421
1435
|
}
|
|
@@ -1427,16 +1441,16 @@ const At = ({
|
|
|
1427
1441
|
padding: 10
|
|
1428
1442
|
},
|
|
1429
1443
|
children: /* @__PURE__ */ e(
|
|
1430
|
-
|
|
1444
|
+
Ve,
|
|
1431
1445
|
{
|
|
1432
1446
|
value: r,
|
|
1433
|
-
options:
|
|
1447
|
+
options: x,
|
|
1434
1448
|
onSelect: F,
|
|
1435
1449
|
onSearch: o,
|
|
1436
1450
|
style: { width: "100%" },
|
|
1437
1451
|
allowClear: !0,
|
|
1438
1452
|
children: /* @__PURE__ */ e(
|
|
1439
|
-
|
|
1453
|
+
me,
|
|
1440
1454
|
{
|
|
1441
1455
|
className: t.className.search,
|
|
1442
1456
|
placeholder: t.style.search.placeholder,
|
|
@@ -1479,18 +1493,18 @@ const At = ({
|
|
|
1479
1493
|
marginBottom: "10px"
|
|
1480
1494
|
},
|
|
1481
1495
|
children: /* @__PURE__ */ e(
|
|
1482
|
-
|
|
1496
|
+
Ue,
|
|
1483
1497
|
{
|
|
1484
1498
|
className: t.className.segmented.wrapper,
|
|
1485
1499
|
options: [
|
|
1486
1500
|
{
|
|
1487
|
-
label: /* @__PURE__ */
|
|
1501
|
+
label: /* @__PURE__ */ b(K, { children: [
|
|
1488
1502
|
/* @__PURE__ */ e(
|
|
1489
1503
|
"span",
|
|
1490
1504
|
{
|
|
1491
1505
|
className: t.className.segmented.item,
|
|
1492
1506
|
style: { display: "flex", alignItems: "center" },
|
|
1493
|
-
children: /* @__PURE__ */
|
|
1507
|
+
children: /* @__PURE__ */ b(
|
|
1494
1508
|
"svg",
|
|
1495
1509
|
{
|
|
1496
1510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1539,7 +1553,7 @@ const At = ({
|
|
|
1539
1553
|
value: "category"
|
|
1540
1554
|
},
|
|
1541
1555
|
{
|
|
1542
|
-
label: /* @__PURE__ */
|
|
1556
|
+
label: /* @__PURE__ */ b(K, { children: [
|
|
1543
1557
|
/* @__PURE__ */ e(
|
|
1544
1558
|
"span",
|
|
1545
1559
|
{
|
|
@@ -1571,9 +1585,9 @@ const At = ({
|
|
|
1571
1585
|
value: "favorite"
|
|
1572
1586
|
}
|
|
1573
1587
|
],
|
|
1574
|
-
value:
|
|
1588
|
+
value: a,
|
|
1575
1589
|
onChange: (I) => {
|
|
1576
|
-
|
|
1590
|
+
i(I);
|
|
1577
1591
|
},
|
|
1578
1592
|
style: {
|
|
1579
1593
|
width: "100%"
|
|
@@ -1583,8 +1597,8 @@ const At = ({
|
|
|
1583
1597
|
)
|
|
1584
1598
|
}
|
|
1585
1599
|
),
|
|
1586
|
-
/* @__PURE__ */
|
|
1587
|
-
|
|
1600
|
+
/* @__PURE__ */ b("div", { className: t.className.sider.content, children: [
|
|
1601
|
+
m && /* @__PURE__ */ b(
|
|
1588
1602
|
"div",
|
|
1589
1603
|
{
|
|
1590
1604
|
className: t.className.sider.loading,
|
|
@@ -1596,7 +1610,7 @@ const At = ({
|
|
|
1596
1610
|
},
|
|
1597
1611
|
children: [
|
|
1598
1612
|
/* @__PURE__ */ e(
|
|
1599
|
-
|
|
1613
|
+
Ke,
|
|
1600
1614
|
{
|
|
1601
1615
|
theme: {
|
|
1602
1616
|
components: {
|
|
@@ -1619,16 +1633,16 @@ const At = ({
|
|
|
1619
1633
|
]
|
|
1620
1634
|
}
|
|
1621
1635
|
),
|
|
1622
|
-
|
|
1636
|
+
k && /* @__PURE__ */ b("div", { className: t.className.sider.error, children: [
|
|
1623
1637
|
/* @__PURE__ */ e(
|
|
1624
|
-
|
|
1638
|
+
pt,
|
|
1625
1639
|
{
|
|
1626
1640
|
className: t.className.sider.errorIcon
|
|
1627
1641
|
}
|
|
1628
1642
|
),
|
|
1629
1643
|
/* @__PURE__ */ e("div", { className: t.className.sider.errorText, children: "메뉴 로드 실패" })
|
|
1630
1644
|
] }),
|
|
1631
|
-
!
|
|
1645
|
+
!m && !k && a === "category" && l.length === 0 && /* @__PURE__ */ e(
|
|
1632
1646
|
"div",
|
|
1633
1647
|
{
|
|
1634
1648
|
style: {
|
|
@@ -1640,7 +1654,7 @@ const At = ({
|
|
|
1640
1654
|
children: "메뉴가 없습니다"
|
|
1641
1655
|
}
|
|
1642
1656
|
),
|
|
1643
|
-
!
|
|
1657
|
+
!m && !k && a === "favorite" && S.length === 0 && /* @__PURE__ */ e(
|
|
1644
1658
|
"div",
|
|
1645
1659
|
{
|
|
1646
1660
|
style: {
|
|
@@ -1652,28 +1666,28 @@ const At = ({
|
|
|
1652
1666
|
children: "즐겨찾기된 메뉴가 없습니다"
|
|
1653
1667
|
}
|
|
1654
1668
|
),
|
|
1655
|
-
!
|
|
1656
|
-
|
|
1669
|
+
!m && !k && a === "category" && l.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1670
|
+
he,
|
|
1657
1671
|
{
|
|
1658
1672
|
theme: "light",
|
|
1659
1673
|
mode: "inline",
|
|
1660
|
-
items:
|
|
1674
|
+
items: V(l),
|
|
1661
1675
|
className: t.className.sider.menu,
|
|
1662
|
-
selectedKeys: [
|
|
1663
|
-
openKeys:
|
|
1664
|
-
onOpenChange:
|
|
1665
|
-
onClick: (I) =>
|
|
1676
|
+
selectedKeys: [u || ""],
|
|
1677
|
+
openKeys: y,
|
|
1678
|
+
onOpenChange: c,
|
|
1679
|
+
onClick: (I) => j(I.key)
|
|
1666
1680
|
}
|
|
1667
1681
|
) }),
|
|
1668
|
-
!
|
|
1669
|
-
|
|
1682
|
+
!m && !k && a === "favorite" && S.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1683
|
+
he,
|
|
1670
1684
|
{
|
|
1671
1685
|
theme: "light",
|
|
1672
1686
|
mode: "inline",
|
|
1673
1687
|
items: S,
|
|
1674
1688
|
className: t.className.sider.menu,
|
|
1675
|
-
selectedKeys: [
|
|
1676
|
-
onClick: (I) =>
|
|
1689
|
+
selectedKeys: [u || ""],
|
|
1690
|
+
onClick: (I) => j(I.key)
|
|
1677
1691
|
}
|
|
1678
1692
|
) })
|
|
1679
1693
|
] })
|
|
@@ -1681,7 +1695,7 @@ const At = ({
|
|
|
1681
1695
|
}
|
|
1682
1696
|
);
|
|
1683
1697
|
};
|
|
1684
|
-
class
|
|
1698
|
+
class Jt extends Je {
|
|
1685
1699
|
constructor(t) {
|
|
1686
1700
|
super(t), this.resetError = () => {
|
|
1687
1701
|
this.setState({ hasError: !1, error: void 0, errorInfo: void 0 });
|
|
@@ -1697,7 +1711,7 @@ class Yt extends Xe {
|
|
|
1697
1711
|
});
|
|
1698
1712
|
}
|
|
1699
1713
|
render() {
|
|
1700
|
-
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */
|
|
1714
|
+
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ b(
|
|
1701
1715
|
"div",
|
|
1702
1716
|
{
|
|
1703
1717
|
style: {
|
|
@@ -1711,7 +1725,7 @@ class Yt extends Xe {
|
|
|
1711
1725
|
},
|
|
1712
1726
|
children: [
|
|
1713
1727
|
/* @__PURE__ */ e(
|
|
1714
|
-
|
|
1728
|
+
Ie,
|
|
1715
1729
|
{
|
|
1716
1730
|
status: "error",
|
|
1717
1731
|
title: "컴포넌트 로딩 중 오류가 발생했습니다",
|
|
@@ -1721,7 +1735,7 @@ class Yt extends Xe {
|
|
|
1721
1735
|
B,
|
|
1722
1736
|
{
|
|
1723
1737
|
type: "primary",
|
|
1724
|
-
icon: /* @__PURE__ */ e(
|
|
1738
|
+
icon: /* @__PURE__ */ e(Ce, {}),
|
|
1725
1739
|
onClick: this.resetError,
|
|
1726
1740
|
style: { marginRight: 8 },
|
|
1727
1741
|
children: "다시 시도"
|
|
@@ -1731,7 +1745,7 @@ class Yt extends Xe {
|
|
|
1731
1745
|
]
|
|
1732
1746
|
}
|
|
1733
1747
|
),
|
|
1734
|
-
this.state.error && /* @__PURE__ */
|
|
1748
|
+
this.state.error && /* @__PURE__ */ b(
|
|
1735
1749
|
"details",
|
|
1736
1750
|
{
|
|
1737
1751
|
style: {
|
|
@@ -1766,13 +1780,13 @@ class Yt extends Xe {
|
|
|
1766
1780
|
) : this.props.children;
|
|
1767
1781
|
}
|
|
1768
1782
|
}
|
|
1769
|
-
const
|
|
1783
|
+
const en = ({
|
|
1770
1784
|
isActive: n,
|
|
1771
1785
|
instance: t,
|
|
1772
1786
|
params: r
|
|
1773
1787
|
}) => {
|
|
1774
|
-
const { activeMenuId: o, closeTab:
|
|
1775
|
-
o &&
|
|
1788
|
+
const { activeMenuId: o, closeTab: a } = O(), i = () => {
|
|
1789
|
+
o && a(o);
|
|
1776
1790
|
};
|
|
1777
1791
|
return t ? /* @__PURE__ */ e(
|
|
1778
1792
|
"div",
|
|
@@ -1788,7 +1802,7 @@ const qt = ({
|
|
|
1788
1802
|
transition: "opacity 0.2s ease-in-out",
|
|
1789
1803
|
pointerEvents: n ? "auto" : "none"
|
|
1790
1804
|
},
|
|
1791
|
-
children: /* @__PURE__ */ e(
|
|
1805
|
+
children: /* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ e(se, { fallback: null, children: t && Ne(t, { params: r }) }) })
|
|
1792
1806
|
}
|
|
1793
1807
|
) : /* @__PURE__ */ e(
|
|
1794
1808
|
"div",
|
|
@@ -1819,20 +1833,20 @@ const qt = ({
|
|
|
1819
1833
|
padding: 24
|
|
1820
1834
|
},
|
|
1821
1835
|
children: /* @__PURE__ */ e(
|
|
1822
|
-
|
|
1836
|
+
Ie,
|
|
1823
1837
|
{
|
|
1824
|
-
icon: /* @__PURE__ */ e(
|
|
1838
|
+
icon: /* @__PURE__ */ e(yt, { twoToneColor: "#69b1ff" }),
|
|
1825
1839
|
status: "warning",
|
|
1826
1840
|
title: "등록된 메뉴 정보가 없거나 유효한 메뉴가 아닙니다.",
|
|
1827
|
-
subTitle: /* @__PURE__ */ e(
|
|
1828
|
-
extra: /* @__PURE__ */ e(
|
|
1841
|
+
subTitle: /* @__PURE__ */ e(Ye.Text, { type: "secondary", children: "자세한 내용은 관리자에게 문의바랍니다." }),
|
|
1842
|
+
extra: /* @__PURE__ */ e(Ze, { children: /* @__PURE__ */ e(B, { icon: /* @__PURE__ */ e(X, {}), onClick: i, children: "탭 닫기" }) })
|
|
1829
1843
|
}
|
|
1830
1844
|
)
|
|
1831
1845
|
}
|
|
1832
1846
|
)
|
|
1833
1847
|
}
|
|
1834
1848
|
);
|
|
1835
|
-
},
|
|
1849
|
+
}, tn = be(en), nn = ({
|
|
1836
1850
|
menuGubunCode: n = {
|
|
1837
1851
|
mainMenu: "MAIN",
|
|
1838
1852
|
subMenu: "SUB",
|
|
@@ -1842,15 +1856,15 @@ const qt = ({
|
|
|
1842
1856
|
style: r,
|
|
1843
1857
|
routeMap: o
|
|
1844
1858
|
}) => {
|
|
1845
|
-
const { menuList:
|
|
1846
|
-
(
|
|
1847
|
-
if (
|
|
1848
|
-
const
|
|
1849
|
-
if (
|
|
1850
|
-
return /* @__PURE__ */ e(
|
|
1859
|
+
const { menuList: a, findMenuById: i, flatMenuList: y } = ae(), { activeMenuId: c } = O(), u = fe(), [v, p] = A([]), N = D(
|
|
1860
|
+
(g, d) => {
|
|
1861
|
+
if (g) {
|
|
1862
|
+
const C = oe[g];
|
|
1863
|
+
if (C)
|
|
1864
|
+
return /* @__PURE__ */ e(C, {});
|
|
1851
1865
|
}
|
|
1852
|
-
if (
|
|
1853
|
-
switch (
|
|
1866
|
+
if (d)
|
|
1867
|
+
switch (d) {
|
|
1854
1868
|
case n.mainMenu:
|
|
1855
1869
|
return /* @__PURE__ */ e(oe.HomeOutlined, {});
|
|
1856
1870
|
default:
|
|
@@ -1859,70 +1873,70 @@ const qt = ({
|
|
|
1859
1873
|
return null;
|
|
1860
1874
|
},
|
|
1861
1875
|
[n]
|
|
1862
|
-
),
|
|
1863
|
-
(
|
|
1864
|
-
const
|
|
1876
|
+
), l = D(
|
|
1877
|
+
(g) => g.map((d) => {
|
|
1878
|
+
const C = d.children && d.children.length === 1 && d.children[0].menuGbCd === n.program;
|
|
1865
1879
|
return {
|
|
1866
|
-
key:
|
|
1867
|
-
label:
|
|
1868
|
-
icon: d
|
|
1880
|
+
key: d.menuId,
|
|
1881
|
+
label: d.menuNm,
|
|
1882
|
+
icon: N(d.iconCd, d.menuGbCd),
|
|
1869
1883
|
// children이 1개이고 program이면 드롭다운 없음, 2개 이상이면 드롭다운 표시
|
|
1870
|
-
children:
|
|
1884
|
+
children: d.children && d.children.length > 0 && !C ? l(d.children) : void 0
|
|
1871
1885
|
};
|
|
1872
1886
|
}),
|
|
1873
|
-
[
|
|
1874
|
-
),
|
|
1875
|
-
(
|
|
1876
|
-
const
|
|
1877
|
-
if (
|
|
1878
|
-
if (
|
|
1879
|
-
const
|
|
1880
|
-
let T = o?.[
|
|
1881
|
-
T === "/" ? T = "/main" : T.startsWith("/main") || (T = T.startsWith("/") ? `/main${T}` : `/main/${T}`),
|
|
1887
|
+
[N, n]
|
|
1888
|
+
), m = _(() => l(a), [a, l]), k = D(
|
|
1889
|
+
(g) => {
|
|
1890
|
+
const d = i(g.key);
|
|
1891
|
+
if (d) {
|
|
1892
|
+
if (d.children && d.children.length === 1 && d.children[0].menuGbCd === n.program) {
|
|
1893
|
+
const C = d.children[0];
|
|
1894
|
+
let T = o?.[C.menuId] || C.scrnPath || "/";
|
|
1895
|
+
T === "/" ? T = "/main" : T.startsWith("/main") || (T = T.startsWith("/") ? `/main${T}` : `/main/${T}`), u(T);
|
|
1882
1896
|
return;
|
|
1883
1897
|
}
|
|
1884
|
-
if (
|
|
1885
|
-
let
|
|
1886
|
-
|
|
1898
|
+
if (d.menuGbCd === n.program && d.scrnPath) {
|
|
1899
|
+
let C = o?.[d.menuId] || d.scrnPath || "/";
|
|
1900
|
+
C === "/" ? C = "/main" : C.startsWith("/main") || (C = C.startsWith("/") ? `/main${C}` : `/main/${C}`), u(C);
|
|
1887
1901
|
return;
|
|
1888
1902
|
}
|
|
1889
1903
|
}
|
|
1890
1904
|
},
|
|
1891
|
-
[
|
|
1905
|
+
[i, n, u, o]
|
|
1892
1906
|
);
|
|
1893
|
-
return
|
|
1894
|
-
if (!
|
|
1895
|
-
const
|
|
1896
|
-
const T = [],
|
|
1897
|
-
let
|
|
1898
|
-
for (;
|
|
1899
|
-
const
|
|
1900
|
-
if (!
|
|
1901
|
-
if (
|
|
1902
|
-
T.push(
|
|
1907
|
+
return z(() => {
|
|
1908
|
+
if (!c || t !== "vertical") return;
|
|
1909
|
+
const d = ((C) => {
|
|
1910
|
+
const T = [], E = new Map(y.map((x) => [x.menuId, x]));
|
|
1911
|
+
let R = C;
|
|
1912
|
+
for (; R; ) {
|
|
1913
|
+
const x = E.get(R);
|
|
1914
|
+
if (!x) break;
|
|
1915
|
+
if (x.menuPrntId && x.menuPrntId !== "-" && x.menuPrntId !== "")
|
|
1916
|
+
T.push(x.menuPrntId), R = x.menuPrntId;
|
|
1903
1917
|
else
|
|
1904
1918
|
break;
|
|
1905
1919
|
}
|
|
1906
1920
|
return T;
|
|
1907
|
-
})(
|
|
1908
|
-
|
|
1909
|
-
const T = /* @__PURE__ */ new Set([...
|
|
1921
|
+
})(c);
|
|
1922
|
+
d.length > 0 && p((C) => {
|
|
1923
|
+
const T = /* @__PURE__ */ new Set([...C, ...d]);
|
|
1910
1924
|
return Array.from(T);
|
|
1911
1925
|
});
|
|
1912
|
-
}, [
|
|
1913
|
-
|
|
1926
|
+
}, [c, t, y]), /* @__PURE__ */ e(
|
|
1927
|
+
he,
|
|
1914
1928
|
{
|
|
1915
1929
|
mode: t,
|
|
1916
1930
|
theme: "light",
|
|
1917
|
-
items:
|
|
1918
|
-
selectedKeys: [
|
|
1931
|
+
items: m,
|
|
1932
|
+
selectedKeys: [c || ""],
|
|
1919
1933
|
openKeys: t === "vertical" ? v : void 0,
|
|
1920
|
-
onOpenChange: t === "vertical" ?
|
|
1921
|
-
onClick:
|
|
1934
|
+
onOpenChange: t === "vertical" ? p : void 0,
|
|
1935
|
+
onClick: k,
|
|
1922
1936
|
style: r
|
|
1923
1937
|
}
|
|
1924
1938
|
);
|
|
1925
|
-
},
|
|
1939
|
+
}, rn = () => /* @__PURE__ */ b(K, { children: [
|
|
1926
1940
|
/* @__PURE__ */ e(
|
|
1927
1941
|
"link",
|
|
1928
1942
|
{
|
|
@@ -1932,53 +1946,53 @@ const qt = ({
|
|
|
1932
1946
|
}
|
|
1933
1947
|
),
|
|
1934
1948
|
/* @__PURE__ */ e("div", { className: "LandingContainer-wrap", children: /* @__PURE__ */ e("div", { className: "inner", children: /* @__PURE__ */ e("div", { className: "content" }) }) })
|
|
1935
|
-
] }),
|
|
1949
|
+
] }), on = (n, t) => {
|
|
1936
1950
|
console.log("createPopupViewLoader 호출 - popupUrl:", n);
|
|
1937
|
-
const o = ((
|
|
1938
|
-
if (
|
|
1939
|
-
const
|
|
1940
|
-
return console.log(`팝업 URL 변환: ${
|
|
1951
|
+
const o = ((a) => {
|
|
1952
|
+
if (a.startsWith("/src/pages/views/popup/")) {
|
|
1953
|
+
const c = a + ".tsx";
|
|
1954
|
+
return console.log(`팝업 URL 변환: ${a} -> ${c}`), c;
|
|
1941
1955
|
}
|
|
1942
|
-
const
|
|
1943
|
-
return console.log(`팝업 URL 변환: ${
|
|
1956
|
+
const y = `/src/pages/views/popup/${a.startsWith("/") ? a.substring(1) : a}.tsx`;
|
|
1957
|
+
return console.log(`팝업 URL 변환: ${a} -> ${y}`), y;
|
|
1944
1958
|
})(n);
|
|
1945
1959
|
return !o || !t?.glob || !t.glob[o] ? (console.warn(`팝업 뷰를 찾을 수 없습니다: ${n} (${o})`), console.warn("사용 가능한 팝업 뷰들:", Object.keys(t?.glob || {})), null) : t.glob[o];
|
|
1946
|
-
},
|
|
1947
|
-
const [r, o] = A(null), [
|
|
1948
|
-
console.log("PopupArea - handleClose:", n.popupId),
|
|
1960
|
+
}, sn = ({ popup: n, modules: t }) => {
|
|
1961
|
+
const [r, o] = A(null), [a, i] = A(!1), [y, c] = A(null), u = () => {
|
|
1962
|
+
console.log("PopupArea - handleClose:", n.popupId), ye.getState().closePopup(n.popupId);
|
|
1949
1963
|
};
|
|
1950
|
-
return
|
|
1964
|
+
return z(() => {
|
|
1951
1965
|
(async () => {
|
|
1952
|
-
console.log("팝업 뷰 로드 시작:", n.popupUrl),
|
|
1966
|
+
console.log("팝업 뷰 로드 시작:", n.popupUrl), i(!0), c(null);
|
|
1953
1967
|
try {
|
|
1954
|
-
const
|
|
1955
|
-
if (!
|
|
1956
|
-
const
|
|
1957
|
-
console.error(
|
|
1968
|
+
const p = on(n.popupUrl, t);
|
|
1969
|
+
if (!p) {
|
|
1970
|
+
const m = `팝업 뷰를 찾을 수 없습니다: ${n.popupUrl}`;
|
|
1971
|
+
console.error(m), c(m), i(!1);
|
|
1958
1972
|
return;
|
|
1959
1973
|
}
|
|
1960
1974
|
console.log("팝업 뷰 모듈 로드 중...");
|
|
1961
|
-
const
|
|
1962
|
-
console.log("팝업 뷰 모듈 로드 완료:",
|
|
1963
|
-
const
|
|
1964
|
-
if (console.log("팝업 뷰 컴포넌트:",
|
|
1975
|
+
const N = await p();
|
|
1976
|
+
console.log("팝업 뷰 모듈 로드 완료:", N);
|
|
1977
|
+
const l = N.default;
|
|
1978
|
+
if (console.log("팝업 뷰 컴포넌트:", l), !l)
|
|
1965
1979
|
throw new Error("팝업 뷰 컴포넌트를 찾을 수 없습니다");
|
|
1966
|
-
o(() =>
|
|
1967
|
-
} catch (
|
|
1968
|
-
console.error("팝업 뷰 로드 실패:",
|
|
1980
|
+
o(() => l), console.log("팝업 뷰 설정 완료");
|
|
1981
|
+
} catch (p) {
|
|
1982
|
+
console.error("팝업 뷰 로드 실패:", p), c(p instanceof Error ? p.message : "팝업 뷰 로드 실패");
|
|
1969
1983
|
} finally {
|
|
1970
|
-
|
|
1984
|
+
i(!1);
|
|
1971
1985
|
}
|
|
1972
1986
|
})();
|
|
1973
|
-
}, [n.popupUrl]),
|
|
1987
|
+
}, [n.popupUrl]), a ? /* @__PURE__ */ b("div", { className: "popup-loading", children: [
|
|
1974
1988
|
/* @__PURE__ */ e(re, { size: "large" }),
|
|
1975
1989
|
/* @__PURE__ */ e("p", { children: "팝업을 로드하는 중..." })
|
|
1976
|
-
] }) :
|
|
1977
|
-
/* @__PURE__ */ e(
|
|
1990
|
+
] }) : y ? /* @__PURE__ */ b("div", { className: "popup-error", children: [
|
|
1991
|
+
/* @__PURE__ */ e(de, { description: y, image: de.PRESENTED_IMAGE_SIMPLE }),
|
|
1978
1992
|
/* @__PURE__ */ e(
|
|
1979
1993
|
B,
|
|
1980
1994
|
{
|
|
1981
|
-
icon: /* @__PURE__ */ e(
|
|
1995
|
+
icon: /* @__PURE__ */ e(Ce, {}),
|
|
1982
1996
|
onClick: () => window.location.reload(),
|
|
1983
1997
|
children: "다시 시도"
|
|
1984
1998
|
}
|
|
@@ -1986,7 +2000,7 @@ const qt = ({
|
|
|
1986
2000
|
] }) : r ? /* @__PURE__ */ e(
|
|
1987
2001
|
se,
|
|
1988
2002
|
{
|
|
1989
|
-
fallback: /* @__PURE__ */
|
|
2003
|
+
fallback: /* @__PURE__ */ b("div", { className: "popup-loading", children: [
|
|
1990
2004
|
/* @__PURE__ */ e(re, { size: "large" }),
|
|
1991
2005
|
/* @__PURE__ */ e("p", { children: "컴포넌트를 로드하는 중..." })
|
|
1992
2006
|
] }),
|
|
@@ -1995,77 +2009,77 @@ const qt = ({
|
|
|
1995
2009
|
{
|
|
1996
2010
|
popup: {
|
|
1997
2011
|
...n,
|
|
1998
|
-
close:
|
|
2012
|
+
close: u
|
|
1999
2013
|
// popup 객체에 close 이벤트 추가
|
|
2000
2014
|
},
|
|
2001
|
-
onClose:
|
|
2015
|
+
onClose: u
|
|
2002
2016
|
}
|
|
2003
2017
|
)
|
|
2004
2018
|
}
|
|
2005
|
-
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(
|
|
2006
|
-
},
|
|
2007
|
-
const { popups: t } =
|
|
2019
|
+
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(de, { description: "팝업 내용을 불러올 수 없습니다." }) });
|
|
2020
|
+
}, an = ({ modules: n }) => {
|
|
2021
|
+
const { popups: t } = ye();
|
|
2008
2022
|
return t.length === 0 ? null : /* @__PURE__ */ e(K, { children: t.map((r) => {
|
|
2009
2023
|
if (r.isLocal || r.popupCode.startsWith("CORE_"))
|
|
2010
2024
|
return null;
|
|
2011
|
-
const o = r.config || {},
|
|
2012
|
-
key:
|
|
2013
|
-
text:
|
|
2014
|
-
type:
|
|
2015
|
-
disabled:
|
|
2025
|
+
const o = r.config || {}, a = o.width || r.width || 800, i = o.height || r.height || 600, y = o.title || r.popupTitle, c = r.buttonList?.map((u, v) => ({
|
|
2026
|
+
key: u.btnId || `btn_${v}`,
|
|
2027
|
+
text: u.btnNm,
|
|
2028
|
+
type: u.btnId === "CLOSE" ? "default" : "primary",
|
|
2029
|
+
disabled: u.enblYn !== "Y",
|
|
2016
2030
|
danger: !1
|
|
2017
2031
|
})) || [];
|
|
2018
2032
|
return console.log("팝업 렌더링:", {
|
|
2019
2033
|
popupId: r.popupId,
|
|
2020
2034
|
popupCode: r.popupCode,
|
|
2021
|
-
title:
|
|
2022
|
-
width:
|
|
2023
|
-
height:
|
|
2024
|
-
buttons:
|
|
2025
|
-
}), /* @__PURE__ */ e(
|
|
2035
|
+
title: y,
|
|
2036
|
+
width: a,
|
|
2037
|
+
height: i,
|
|
2038
|
+
buttons: c
|
|
2039
|
+
}), /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(sn, { popup: r, modules: n }) }, r.popupId) }, `sbp-${r.popupId}`);
|
|
2026
2040
|
}) });
|
|
2027
|
-
},
|
|
2028
|
-
const { popups: n, closePopup: t } =
|
|
2041
|
+
}, Me = () => {
|
|
2042
|
+
const { popups: n, closePopup: t } = ye();
|
|
2029
2043
|
return /* @__PURE__ */ e(K, { children: n.map((r) => {
|
|
2030
2044
|
if (!(r.isLocal || r.popupCode.startsWith("CORE_"))) return null;
|
|
2031
|
-
const o =
|
|
2045
|
+
const o = $t[r.popupCode];
|
|
2032
2046
|
if (!o) return null;
|
|
2033
|
-
const
|
|
2034
|
-
return /* @__PURE__ */ e(
|
|
2047
|
+
const a = o.component;
|
|
2048
|
+
return /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(se, { fallback: null, children: /* @__PURE__ */ e(a, { popup: r, onClose: () => t(r.popupId) }) }, r.popupId) }, `sbp-${r.popupId}`);
|
|
2035
2049
|
}) });
|
|
2036
|
-
},
|
|
2050
|
+
}, ln = (n) => ({
|
|
2037
2051
|
position: "absolute",
|
|
2038
2052
|
inset: 0,
|
|
2039
2053
|
visibility: n ? "visible" : "hidden",
|
|
2040
2054
|
opacity: n ? 1 : 0,
|
|
2041
2055
|
transition: "opacity 0.2s ease-in-out",
|
|
2042
2056
|
pointerEvents: n ? "auto" : "none"
|
|
2043
|
-
}),
|
|
2044
|
-
const { lock: t } =
|
|
2045
|
-
return
|
|
2057
|
+
}), cn = ({ once: n = !0 }) => {
|
|
2058
|
+
const { lock: t } = Ee(), r = Y(!1);
|
|
2059
|
+
return z(() => {
|
|
2046
2060
|
n && r.current || (r.current = !0, t());
|
|
2047
2061
|
}, [n, t]), null;
|
|
2048
|
-
},
|
|
2049
|
-
const
|
|
2050
|
-
|
|
2051
|
-
}, []), v =
|
|
2052
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
2053
|
-
|
|
2062
|
+
}, dn = ({ isActive: n, flagged: t, tabKey: r, onUnlock: o, children: a }) => {
|
|
2063
|
+
const i = Y(null), [y, c] = A(!1), u = D((p) => {
|
|
2064
|
+
i.current = p, c(!!p);
|
|
2065
|
+
}, []), v = ln(n);
|
|
2066
|
+
return /* @__PURE__ */ e("div", { ref: u, style: v, children: y ? /* @__PURE__ */ b(
|
|
2067
|
+
Oe,
|
|
2054
2068
|
{
|
|
2055
2069
|
idleMs: Number.POSITIVE_INFINITY,
|
|
2056
2070
|
persistLocked: !1,
|
|
2057
2071
|
overlayScope: "scoped",
|
|
2058
2072
|
overlayPosition: "absolute",
|
|
2059
|
-
eventTarget:
|
|
2073
|
+
eventTarget: i.current,
|
|
2060
2074
|
overlayId: `tab-overlay-${r}`,
|
|
2061
2075
|
onUnlock: async () => (o(), !0),
|
|
2062
2076
|
children: [
|
|
2063
|
-
n && t ? /* @__PURE__ */ e(
|
|
2064
|
-
|
|
2077
|
+
n && t ? /* @__PURE__ */ e(cn, { once: !0 }) : null,
|
|
2078
|
+
a
|
|
2065
2079
|
]
|
|
2066
2080
|
}
|
|
2067
|
-
) :
|
|
2068
|
-
},
|
|
2081
|
+
) : a });
|
|
2082
|
+
}, Pn = ({
|
|
2069
2083
|
config: n = {},
|
|
2070
2084
|
modules: t = {
|
|
2071
2085
|
view: {
|
|
@@ -2076,43 +2090,45 @@ const qt = ({
|
|
|
2076
2090
|
}
|
|
2077
2091
|
}
|
|
2078
2092
|
}) => {
|
|
2079
|
-
const r =
|
|
2093
|
+
const r = Y(
|
|
2080
2094
|
/* @__PURE__ */ new Map()
|
|
2081
2095
|
), {
|
|
2082
2096
|
tabs: o,
|
|
2083
|
-
tabParams:
|
|
2084
|
-
activeMenuId:
|
|
2085
|
-
tabProtectFlag:
|
|
2086
|
-
refreshTabKey:
|
|
2087
|
-
clearProtectFlagForKey:
|
|
2088
|
-
} = O(), { enableProtectWrapper: v } =
|
|
2089
|
-
(
|
|
2090
|
-
const
|
|
2091
|
-
if (
|
|
2092
|
-
const
|
|
2093
|
-
let
|
|
2094
|
-
if (!
|
|
2095
|
-
const
|
|
2096
|
-
|
|
2097
|
+
tabParams: a,
|
|
2098
|
+
activeMenuId: i,
|
|
2099
|
+
tabProtectFlag: y,
|
|
2100
|
+
refreshTabKey: c,
|
|
2101
|
+
clearProtectFlagForKey: u
|
|
2102
|
+
} = O(), { enableProtectWrapper: v } = Pe(), p = D(
|
|
2103
|
+
(l) => {
|
|
2104
|
+
const m = r.current.get(l.key);
|
|
2105
|
+
if (m) return m;
|
|
2106
|
+
const k = l.gubun === "M" ? `${t.view.path}${l.menuItem?.scrnPath}.tsx` : `${t.view.path}${l.componentItem?.scrnPath}.tsx`;
|
|
2107
|
+
let g = t.view?.glob?.[k];
|
|
2108
|
+
if (!g && typeof import.meta < "u" && typeof import.meta.glob == "function" && (g = (/* @__PURE__ */ Object.assign({}))[k]), g) {
|
|
2109
|
+
const d = W(
|
|
2110
|
+
g
|
|
2097
2111
|
);
|
|
2098
|
-
return r.current.set(
|
|
2112
|
+
return r.current.set(l.key, d), d;
|
|
2099
2113
|
}
|
|
2100
2114
|
return null;
|
|
2101
2115
|
},
|
|
2102
2116
|
[t.view?.glob]
|
|
2103
|
-
);
|
|
2104
|
-
return
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2117
|
+
), N = Y({});
|
|
2118
|
+
return z(() => {
|
|
2119
|
+
const l = N.current, m = c;
|
|
2120
|
+
Object.keys(m).forEach((k) => {
|
|
2121
|
+
const g = l[k], d = m[k];
|
|
2122
|
+
g !== d && r.current.delete(k);
|
|
2123
|
+
}), N.current = { ...m };
|
|
2124
|
+
}, [c]), /* @__PURE__ */ b(Z, { className: "main-layout", children: [
|
|
2125
|
+
/* @__PURE__ */ e(Te, { config: n?.header }),
|
|
2126
|
+
/* @__PURE__ */ b(Z, { children: [
|
|
2127
|
+
/* @__PURE__ */ e(Xt, { config: n?.sidebar }),
|
|
2128
|
+
/* @__PURE__ */ b("div", { className: "content-container", children: [
|
|
2129
|
+
/* @__PURE__ */ e(qt, { config: n?.menuTab }),
|
|
2130
|
+
/* @__PURE__ */ b(Se, { config: n?.content, children: [
|
|
2131
|
+
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */ b(
|
|
2116
2132
|
"div",
|
|
2117
2133
|
{
|
|
2118
2134
|
style: {
|
|
@@ -2121,40 +2137,40 @@ const qt = ({
|
|
|
2121
2137
|
height: "100%"
|
|
2122
2138
|
},
|
|
2123
2139
|
children: [
|
|
2124
|
-
o.map((
|
|
2125
|
-
const
|
|
2126
|
-
|
|
2140
|
+
o.map((l) => {
|
|
2141
|
+
const m = p(l), k = i === l.key, g = !!y?.[l.key], d = a[l.key] || {}, C = c[l.key], T = C !== void 0 ? `${l.key}-${C}` : l.key, E = /* @__PURE__ */ e(
|
|
2142
|
+
tn,
|
|
2127
2143
|
{
|
|
2128
|
-
isActive:
|
|
2129
|
-
instance:
|
|
2130
|
-
params:
|
|
2144
|
+
isActive: k,
|
|
2145
|
+
instance: m || void 0,
|
|
2146
|
+
params: d
|
|
2131
2147
|
},
|
|
2132
|
-
|
|
2148
|
+
T
|
|
2133
2149
|
);
|
|
2134
|
-
return /* @__PURE__ */ e(
|
|
2135
|
-
|
|
2150
|
+
return /* @__PURE__ */ e(ge, { children: v ? /* @__PURE__ */ e(
|
|
2151
|
+
dn,
|
|
2136
2152
|
{
|
|
2137
|
-
isActive:
|
|
2138
|
-
flagged:
|
|
2139
|
-
tabKey:
|
|
2140
|
-
onUnlock: () =>
|
|
2141
|
-
children:
|
|
2153
|
+
isActive: k,
|
|
2154
|
+
flagged: g,
|
|
2155
|
+
tabKey: l.key,
|
|
2156
|
+
onUnlock: () => u(l.key),
|
|
2157
|
+
children: E
|
|
2142
2158
|
},
|
|
2143
|
-
|
|
2144
|
-
) :
|
|
2159
|
+
l.key
|
|
2160
|
+
) : E }, `sbp-${l.key}`);
|
|
2145
2161
|
}),
|
|
2146
|
-
(!
|
|
2162
|
+
(!i || o.length === 0) && /* @__PURE__ */ e(rn, {})
|
|
2147
2163
|
]
|
|
2148
2164
|
}
|
|
2149
2165
|
) }),
|
|
2150
|
-
/* @__PURE__ */ e(
|
|
2151
|
-
/* @__PURE__ */ e(
|
|
2166
|
+
/* @__PURE__ */ e(Me, {}),
|
|
2167
|
+
/* @__PURE__ */ e(an, { modules: t?.popup })
|
|
2152
2168
|
] })
|
|
2153
2169
|
] })
|
|
2154
2170
|
] }),
|
|
2155
|
-
(n?.quickService?.visible ?? !0) && /* @__PURE__ */ e(
|
|
2171
|
+
(n?.quickService?.visible ?? !0) && /* @__PURE__ */ e(We, {})
|
|
2156
2172
|
] });
|
|
2157
|
-
},
|
|
2173
|
+
}, un = ({
|
|
2158
2174
|
children: n,
|
|
2159
2175
|
menuGubunCode: t = {
|
|
2160
2176
|
mainMenu: "CMPRGRM",
|
|
@@ -2164,55 +2180,55 @@ const qt = ({
|
|
|
2164
2180
|
routeMap: r,
|
|
2165
2181
|
routes: o
|
|
2166
2182
|
}) => {
|
|
2167
|
-
const
|
|
2168
|
-
const
|
|
2183
|
+
const a = De(), i = fe(), { flatMenuList: y, findMenuById: c } = ae(), u = _(() => {
|
|
2184
|
+
const p = a.pathname, N = p.replace(/^\/main/, "") || "/";
|
|
2169
2185
|
if (r) {
|
|
2170
|
-
const
|
|
2171
|
-
(
|
|
2186
|
+
const l = Object.keys(r).find(
|
|
2187
|
+
(k) => r[k] === p
|
|
2172
2188
|
);
|
|
2173
|
-
if (
|
|
2174
|
-
return l
|
|
2175
|
-
const
|
|
2176
|
-
if (
|
|
2177
|
-
return
|
|
2189
|
+
if (l)
|
|
2190
|
+
return c(l);
|
|
2191
|
+
const m = Object.keys(r).find((k) => (r[k].replace(/^\/main/, "") || "/") === N);
|
|
2192
|
+
if (m)
|
|
2193
|
+
return c(m);
|
|
2178
2194
|
}
|
|
2179
|
-
return
|
|
2180
|
-
(
|
|
2195
|
+
return y.find(
|
|
2196
|
+
(l) => l.menuGbCd === t.program && l.scrnPath && (l.scrnPath === N || l.scrnPath === p || p.endsWith(l.scrnPath) || N === l.scrnPath)
|
|
2181
2197
|
);
|
|
2182
2198
|
}, [
|
|
2183
|
-
|
|
2184
|
-
|
|
2199
|
+
a.pathname,
|
|
2200
|
+
y,
|
|
2185
2201
|
t.program,
|
|
2186
2202
|
r,
|
|
2187
|
-
|
|
2203
|
+
c
|
|
2188
2204
|
]), v = _(() => {
|
|
2189
|
-
if (!
|
|
2205
|
+
if (!u)
|
|
2190
2206
|
return [];
|
|
2191
|
-
const
|
|
2192
|
-
if (!
|
|
2207
|
+
const p = [], N = (m) => {
|
|
2208
|
+
if (!m || !m.menuPrntId || m.menuPrntId === "-")
|
|
2193
2209
|
return [];
|
|
2194
|
-
const
|
|
2195
|
-
return
|
|
2210
|
+
const k = c(m.menuPrntId);
|
|
2211
|
+
return k ? [...N(k), k] : [];
|
|
2196
2212
|
};
|
|
2197
|
-
return
|
|
2198
|
-
if (
|
|
2199
|
-
let
|
|
2200
|
-
if (r &&
|
|
2201
|
-
const
|
|
2202
|
-
(
|
|
2213
|
+
return N(u).forEach((m) => {
|
|
2214
|
+
if (m.menuGbCd === t.mainMenu || m.menuGbCd === t.subMenu) {
|
|
2215
|
+
let k;
|
|
2216
|
+
if (r && m.menuId && (k = r[m.menuId]), !k && o && m.scrnPath) {
|
|
2217
|
+
const g = m.scrnPath.startsWith("/") ? m.scrnPath : `/${m.scrnPath}`, d = Object.keys(o).find(
|
|
2218
|
+
(C) => C === g || C === `/main${g}`
|
|
2203
2219
|
);
|
|
2204
|
-
|
|
2220
|
+
d && (k = d.startsWith("/main") ? d : `/main${d.startsWith("/") ? d : `/${d}`}`);
|
|
2205
2221
|
}
|
|
2206
|
-
|
|
2207
|
-
title:
|
|
2208
|
-
onClick:
|
|
2222
|
+
p.push({
|
|
2223
|
+
title: m.menuNm,
|
|
2224
|
+
onClick: k ? () => i(k) : void 0
|
|
2209
2225
|
});
|
|
2210
2226
|
}
|
|
2211
|
-
}),
|
|
2212
|
-
title:
|
|
2213
|
-
}),
|
|
2214
|
-
}, [
|
|
2215
|
-
return /* @__PURE__ */
|
|
2227
|
+
}), p.push({
|
|
2228
|
+
title: u.menuNm
|
|
2229
|
+
}), p;
|
|
2230
|
+
}, [u, t, i, c]);
|
|
2231
|
+
return /* @__PURE__ */ b(
|
|
2216
2232
|
"div",
|
|
2217
2233
|
{
|
|
2218
2234
|
style: {
|
|
@@ -2221,7 +2237,7 @@ const qt = ({
|
|
|
2221
2237
|
},
|
|
2222
2238
|
children: [
|
|
2223
2239
|
/* @__PURE__ */ e(
|
|
2224
|
-
|
|
2240
|
+
qe,
|
|
2225
2241
|
{
|
|
2226
2242
|
separator: ">",
|
|
2227
2243
|
items: v,
|
|
@@ -2232,30 +2248,30 @@ const qt = ({
|
|
|
2232
2248
|
]
|
|
2233
2249
|
}
|
|
2234
2250
|
);
|
|
2235
|
-
},
|
|
2236
|
-
const t = n?.header?.menu, r = t?.visible !== !1, o = t?.routes,
|
|
2251
|
+
}, Sn = ({ config: n = {} }) => {
|
|
2252
|
+
const t = n?.header?.menu, r = t?.visible !== !1, o = t?.routes, a = _(() => {
|
|
2237
2253
|
if (!o) return;
|
|
2238
|
-
const
|
|
2239
|
-
return
|
|
2240
|
-
if (
|
|
2241
|
-
const
|
|
2242
|
-
const
|
|
2243
|
-
return
|
|
2254
|
+
const i = {}, { flatMenuList: y } = ae.getState();
|
|
2255
|
+
return y.forEach((c) => {
|
|
2256
|
+
if (c.menuGbCd === t?.menuGubunCode?.program && c.scrnPath) {
|
|
2257
|
+
const u = c.scrnPath.startsWith("/") ? c.scrnPath : `/${c.scrnPath}`, v = Object.keys(o).find((p) => {
|
|
2258
|
+
const N = p === "/" ? "/" : p.startsWith("/") ? p : `/${p}`;
|
|
2259
|
+
return N === u || N === `/main${u}` || u === N.replace(/^\/main/, "");
|
|
2244
2260
|
});
|
|
2245
2261
|
if (v) {
|
|
2246
|
-
const
|
|
2247
|
-
|
|
2262
|
+
const p = v === "/" ? "/main" : v.startsWith("/main") ? v : `/main${v.startsWith("/") ? v : `/${v}`}`;
|
|
2263
|
+
i[c.menuId] = p;
|
|
2248
2264
|
}
|
|
2249
2265
|
}
|
|
2250
|
-
}),
|
|
2266
|
+
}), i;
|
|
2251
2267
|
}, [o, t?.menuGubunCode?.program]);
|
|
2252
|
-
return /* @__PURE__ */
|
|
2253
|
-
/* @__PURE__ */ e(
|
|
2254
|
-
|
|
2268
|
+
return /* @__PURE__ */ b(Z, { className: "main-layout", children: [
|
|
2269
|
+
/* @__PURE__ */ e(Te, { config: n?.header, children: r && /* @__PURE__ */ e(
|
|
2270
|
+
nn,
|
|
2255
2271
|
{
|
|
2256
2272
|
menuGubunCode: t?.menuGubunCode,
|
|
2257
2273
|
mode: t?.style?.mode || "horizontal",
|
|
2258
|
-
routeMap:
|
|
2274
|
+
routeMap: a,
|
|
2259
2275
|
style: {
|
|
2260
2276
|
border: "none",
|
|
2261
2277
|
backgroundColor: "transparent",
|
|
@@ -2265,7 +2281,7 @@ const qt = ({
|
|
|
2265
2281
|
}
|
|
2266
2282
|
}
|
|
2267
2283
|
) }),
|
|
2268
|
-
/* @__PURE__ */ e("div", { className: "content-container", children: /* @__PURE__ */
|
|
2284
|
+
/* @__PURE__ */ e("div", { className: "content-container", children: /* @__PURE__ */ b(Se, { config: n?.content, children: [
|
|
2269
2285
|
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */ e(
|
|
2270
2286
|
"div",
|
|
2271
2287
|
{
|
|
@@ -2274,65 +2290,65 @@ const qt = ({
|
|
|
2274
2290
|
width: "100%",
|
|
2275
2291
|
height: "100%"
|
|
2276
2292
|
},
|
|
2277
|
-
children: /* @__PURE__ */ e(se, { fallback: /* @__PURE__ */ e("div", { children: "Loading..." }), children: /* @__PURE__ */ e(
|
|
2278
|
-
const
|
|
2293
|
+
children: /* @__PURE__ */ e(se, { fallback: /* @__PURE__ */ e("div", { children: "Loading..." }), children: /* @__PURE__ */ e(ke, { children: Object.entries(o || {}).map(([i, y]) => {
|
|
2294
|
+
const c = i === "/" ? "" : i.replace(/^\/main/, "").replace(/^\//, "") || "";
|
|
2279
2295
|
return /* @__PURE__ */ e(
|
|
2280
2296
|
te,
|
|
2281
2297
|
{
|
|
2282
|
-
path:
|
|
2298
|
+
path: c,
|
|
2283
2299
|
element: /* @__PURE__ */ e(
|
|
2284
|
-
|
|
2300
|
+
un,
|
|
2285
2301
|
{
|
|
2286
2302
|
menuGubunCode: t?.menuGubunCode,
|
|
2287
|
-
routeMap:
|
|
2303
|
+
routeMap: a,
|
|
2288
2304
|
routes: o,
|
|
2289
|
-
children: /* @__PURE__ */ e(
|
|
2305
|
+
children: /* @__PURE__ */ e(y, {})
|
|
2290
2306
|
}
|
|
2291
2307
|
)
|
|
2292
2308
|
},
|
|
2293
|
-
|
|
2309
|
+
i
|
|
2294
2310
|
);
|
|
2295
2311
|
}) }) })
|
|
2296
2312
|
}
|
|
2297
2313
|
) }),
|
|
2298
|
-
/* @__PURE__ */ e(
|
|
2314
|
+
/* @__PURE__ */ e(Me, {})
|
|
2299
2315
|
] }) })
|
|
2300
2316
|
] });
|
|
2301
2317
|
};
|
|
2302
|
-
function
|
|
2318
|
+
function Tn({
|
|
2303
2319
|
config: n,
|
|
2304
2320
|
ui: t,
|
|
2305
2321
|
navigate: r
|
|
2306
2322
|
}) {
|
|
2307
|
-
const { loading: o, capsOn:
|
|
2308
|
-
return
|
|
2309
|
-
|
|
2310
|
-
}, []), /* @__PURE__ */ e(K, { children: t({ onSubmit:
|
|
2323
|
+
const { loading: o, capsOn: a, prefills: i, onKeyDown: y, doLogin: c } = nt(n), u = (v) => c(v, r);
|
|
2324
|
+
return z(() => {
|
|
2325
|
+
rt.getState().fetchSystemMap();
|
|
2326
|
+
}, []), /* @__PURE__ */ e(K, { children: t({ onSubmit: u, loading: o, capsOn: a, onKeyDown: y, prefills: i }) });
|
|
2311
2327
|
}
|
|
2312
|
-
function
|
|
2328
|
+
function Mn({
|
|
2313
2329
|
onSubmit: n,
|
|
2314
2330
|
loading: t,
|
|
2315
2331
|
capsOn: r,
|
|
2316
2332
|
onKeyDown: o,
|
|
2317
|
-
prefills:
|
|
2318
|
-
labels:
|
|
2333
|
+
prefills: a,
|
|
2334
|
+
labels: i = {
|
|
2319
2335
|
id: "ID 혹은 사번",
|
|
2320
2336
|
pw: "비밀번호",
|
|
2321
2337
|
remember: "Remember me",
|
|
2322
2338
|
login: "로그인"
|
|
2323
2339
|
},
|
|
2324
|
-
header:
|
|
2325
|
-
footer:
|
|
2340
|
+
header: y,
|
|
2341
|
+
footer: c
|
|
2326
2342
|
}) {
|
|
2327
|
-
const [
|
|
2328
|
-
return
|
|
2329
|
-
|
|
2330
|
-
}, [
|
|
2331
|
-
|
|
2343
|
+
const [u] = U.useForm();
|
|
2344
|
+
return z(() => {
|
|
2345
|
+
a && (a.id || a.pswr) && u.setFieldsValue({ id: a.id, pswr: a.pswr });
|
|
2346
|
+
}, [a, u]), /* @__PURE__ */ e("div", { className: "login-main", children: /* @__PURE__ */ b("div", { className: "login_wrap", children: [
|
|
2347
|
+
y || /* @__PURE__ */ e("div", { className: "logo_box" }),
|
|
2332
2348
|
/* @__PURE__ */ e("div", { className: "login_title" }),
|
|
2333
|
-
/* @__PURE__ */ e(
|
|
2349
|
+
/* @__PURE__ */ e(U, { form: u, onFinish: n, className: "login-form", children: /* @__PURE__ */ b(ne, { vertical: !0, children: [
|
|
2334
2350
|
/* @__PURE__ */ e(
|
|
2335
|
-
|
|
2351
|
+
U.Item,
|
|
2336
2352
|
{
|
|
2337
2353
|
name: "id",
|
|
2338
2354
|
rules: [
|
|
@@ -2342,47 +2358,47 @@ function Nn({
|
|
|
2342
2358
|
message: "아이디는 공백이 들어갈 수 없습니다."
|
|
2343
2359
|
}
|
|
2344
2360
|
],
|
|
2345
|
-
children: /* @__PURE__ */ e(
|
|
2361
|
+
children: /* @__PURE__ */ e(me, { allowClear: !0, placeholder: i.id, onKeyDown: o })
|
|
2346
2362
|
}
|
|
2347
2363
|
),
|
|
2348
2364
|
/* @__PURE__ */ e(
|
|
2349
|
-
|
|
2365
|
+
U.Item,
|
|
2350
2366
|
{
|
|
2351
2367
|
name: "pswr",
|
|
2352
2368
|
rules: [{ required: !0, message: "비밀번호를 입력하세요." }],
|
|
2353
2369
|
children: /* @__PURE__ */ e(
|
|
2354
|
-
|
|
2370
|
+
me.Password,
|
|
2355
2371
|
{
|
|
2356
2372
|
allowClear: !0,
|
|
2357
|
-
placeholder:
|
|
2373
|
+
placeholder: i.pw,
|
|
2358
2374
|
onKeyDown: o
|
|
2359
2375
|
}
|
|
2360
2376
|
)
|
|
2361
2377
|
}
|
|
2362
2378
|
),
|
|
2363
|
-
/* @__PURE__ */ e(
|
|
2379
|
+
/* @__PURE__ */ e(U.Item, { name: "remember", valuePropName: "checked", children: /* @__PURE__ */ e(Qe, { children: i.remember }) }),
|
|
2364
2380
|
/* @__PURE__ */ e("div", { className: r ? "caps-lock caps-lock-on" : "caps-lock", children: r ? "Caps Lock On" : "Caps Lock Off" }),
|
|
2365
|
-
/* @__PURE__ */ e(
|
|
2381
|
+
/* @__PURE__ */ e(U.Item, { children: /* @__PURE__ */ e(B, { type: "primary", htmlType: "submit", loading: t, block: !0, children: i.login }) })
|
|
2366
2382
|
] }) }),
|
|
2367
|
-
|
|
2383
|
+
c
|
|
2368
2384
|
] }) });
|
|
2369
2385
|
}
|
|
2370
2386
|
export {
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2387
|
+
Nn as A,
|
|
2388
|
+
Pn as B,
|
|
2389
|
+
tn as C,
|
|
2390
|
+
Mn as D,
|
|
2391
|
+
nn as H,
|
|
2392
|
+
In as L,
|
|
2393
|
+
an as P,
|
|
2394
|
+
Sn as a,
|
|
2395
|
+
Tn as b,
|
|
2396
|
+
rn as c,
|
|
2397
|
+
Se as d,
|
|
2398
|
+
Te as e,
|
|
2399
|
+
qt as f,
|
|
2400
|
+
Xt as g,
|
|
2401
|
+
un as h,
|
|
2402
|
+
dn as i,
|
|
2403
|
+
$t as l
|
|
2388
2404
|
};
|