@bwg-ui/core 1.3.0 → 1.3.1
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-_h2B12Ig.js → CMSearchIntfGwP01-BWm9OqAH.js} +1 -1
- package/dist/chunks/{CMSearchIntfGwP01-D7XtXMLy.cjs → CMSearchIntfGwP01-CihGc5Q1.cjs} +1 -1
- package/dist/chunks/{MenuReport-DuWbbKBC.cjs → MenuReport-khjaUz1Q.cjs} +1 -1
- package/dist/chunks/{MenuReport-Bw3AvR6b.js → MenuReport-yYhMOHyq.js} +1 -1
- package/dist/chunks/{common-components-BOJo6FH_.cjs → common-components-DletnDTf.cjs} +72 -72
- package/dist/chunks/{common-components-BjfrRYiU.js → common-components-coAoWxE9.js} +6913 -6823
- package/dist/chunks/{layout-components-DNhUIx4u.js → layout-components-C1DG2B74.js} +899 -666
- package/dist/chunks/layout-components-C6KeWPIu.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/BwgPagination.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/ConfigurableHeader.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableMenuTab.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 -0
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +265 -185
- package/dist/stores/menuViewStore.d.ts +6 -0
- package/dist/stores/menuViewStore.d.ts.map +1 -1
- package/dist/stores/userStore.d.ts +19 -0
- package/dist/stores/userStore.d.ts.map +1 -1
- package/dist/styles/assets/images/contents/icon/ico-tab-hashtag-grey.svg +11 -0
- package/dist/styles/assets/images/contents/icon/ico-tab-hashtag.svg +11 -0
- package/dist/styles/components.css +71 -0
- package/dist/styles/layout.css +1289 -1234
- package/dist/utils/gridUtils.d.ts +6 -6
- package/dist/utils/gridUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +936 -971
- package/package.json +1 -1
- package/dist/chunks/layout-components-Ddn-4n36.cjs +0 -35
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as C, jsx as e, Fragment as
|
|
2
|
-
import { o as
|
|
3
|
-
import { Routes as
|
|
4
|
-
import { G as
|
|
5
|
-
import { Spin as
|
|
6
|
-
import { lazy as
|
|
7
|
-
import { useLogout as
|
|
8
|
-
import * as
|
|
9
|
-
import { UserOutlined as
|
|
10
|
-
import {
|
|
11
|
-
import { useSensors as
|
|
12
|
-
import { restrictToHorizontalAxis as
|
|
13
|
-
import { arrayMove as
|
|
14
|
-
const
|
|
15
|
-
() => import("./MenuReport-
|
|
16
|
-
),
|
|
17
|
-
() => import("./common-components-
|
|
18
|
-
),
|
|
19
|
-
() => import("./common-components-
|
|
20
|
-
),
|
|
21
|
-
() => import("./common-components-
|
|
22
|
-
), Lt =
|
|
23
|
-
() => import("./common-components-
|
|
24
|
-
),
|
|
25
|
-
() => import("./common-components-
|
|
26
|
-
),
|
|
27
|
-
() => import("./CMSearchIntfGwP01-
|
|
28
|
-
), Et =
|
|
29
|
-
() => import("./common-components-
|
|
30
|
-
),
|
|
31
|
-
() => import("./common-components-
|
|
32
|
-
),
|
|
1
|
+
import { jsxs as C, jsx as e, Fragment as K } from "react/jsx-runtime";
|
|
2
|
+
import { o as Me, C as Le, S as pe, n as Be, m as Oe } from "./provider-VCa8UGvF.js";
|
|
3
|
+
import { Routes as xe, Route as te, Navigate as Ee, useNavigate as ge, useLocation as Re } from "react-router-dom";
|
|
4
|
+
import { G as De, B as ze, Q as Ae } from "./common-components-coAoWxE9.js";
|
|
5
|
+
import { Spin as re, Layout as Z, Button as B, Divider as ae, Flex as ne, Slider as le, Switch as We, Modal as $e, Popover as Fe, Avatar as _e, Dropdown as Ge, Tabs as He, Tooltip as X, AutoComplete as je, Input as ue, Segmented as Ve, ConfigProvider as Ue, Menu as me, Result as ke, Space as Ke, Typography as Ze, Empty as ce, Breadcrumb as Ye, Form as V, Checkbox as qe } from "antd";
|
|
6
|
+
import { lazy as W, useEffect as D, useRef as J, useCallback as R, useMemo as _, useState as A, createElement as Ie, memo as fe, cloneElement as Qe, Component as Xe, Suspense as se } from "react";
|
|
7
|
+
import { useLogout as Je, useUserStore as Ne, useMenuViewStore as O, useMenuModelStore as ie, useFavoriteStore as et, usePopupStore as be, useLogin as tt, useSystemStore as nt } from "../stores/index.js";
|
|
8
|
+
import * as oe from "@ant-design/icons";
|
|
9
|
+
import { UndoOutlined as ee, UserOutlined as rt, CloseOutlined as U, PushpinOutlined as ot, ReloadOutlined as ye, StepBackwardOutlined as st, LeftOutlined as it, RightOutlined as at, StepForwardOutlined as lt, MenuUnfoldOutlined as ct, MenuFoldOutlined as dt, ExclamationCircleOutlined as ut, WarningOutlined as mt, StarOutlined as ht, FolderOpenOutlined as pt, ExclamationCircleTwoTone as gt } from "@ant-design/icons";
|
|
10
|
+
import { getTodateString as Ce, getUserId as ve } from "../utils/index.js";
|
|
11
|
+
import { useSensors as ft, useSensor as bt, PointerSensor as yt, DndContext as Ct, closestCenter as vt } from "@dnd-kit/core";
|
|
12
|
+
import { restrictToHorizontalAxis as wt } from "@dnd-kit/modifiers";
|
|
13
|
+
import { arrayMove as xt, SortableContext as kt, horizontalListSortingStrategy as It, useSortable as Nt } from "@dnd-kit/sortable";
|
|
14
|
+
const Pt = W(
|
|
15
|
+
() => import("./MenuReport-yYhMOHyq.js")
|
|
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)
|
|
24
|
+
), Bt = W(
|
|
25
|
+
() => import("./common-components-coAoWxE9.js").then((n) => n.a4)
|
|
26
|
+
), Ot = W(
|
|
27
|
+
() => import("./CMSearchIntfGwP01-BWm9OqAH.js")
|
|
28
|
+
), Et = W(
|
|
29
|
+
() => import("./common-components-coAoWxE9.js").then((n) => n.a5)
|
|
30
|
+
), Rt = W(
|
|
31
|
+
() => import("./common-components-coAoWxE9.js").then((n) => n.a3)
|
|
32
|
+
), Dt = {
|
|
33
33
|
// 게시판/문의
|
|
34
34
|
CORE_REPORT: {
|
|
35
|
-
component:
|
|
35
|
+
component: Pt,
|
|
36
36
|
defaultConfig: {
|
|
37
37
|
title: "게시판/문의",
|
|
38
38
|
width: 1200,
|
|
@@ -41,7 +41,7 @@ const It = z(
|
|
|
41
41
|
},
|
|
42
42
|
// 조직/부서 검색류
|
|
43
43
|
CORE_DEPARTMENT_01: {
|
|
44
|
-
component:
|
|
44
|
+
component: St,
|
|
45
45
|
defaultConfig: {
|
|
46
46
|
title: "부서 검색",
|
|
47
47
|
width: 620,
|
|
@@ -49,7 +49,7 @@ const It = z(
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
CORE_DEPARTMENT_02: {
|
|
52
|
-
component:
|
|
52
|
+
component: Tt,
|
|
53
53
|
defaultConfig: {
|
|
54
54
|
title: "부서 검색",
|
|
55
55
|
width: 620,
|
|
@@ -57,7 +57,7 @@ const It = z(
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
CORE_ORGANIZATION_01: {
|
|
60
|
-
component:
|
|
60
|
+
component: Mt,
|
|
61
61
|
defaultConfig: {
|
|
62
62
|
title: "조직 검색",
|
|
63
63
|
width: 620,
|
|
@@ -73,7 +73,7 @@ const It = z(
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
CORE_PRGR_02: {
|
|
76
|
-
component:
|
|
76
|
+
component: Bt,
|
|
77
77
|
defaultConfig: {
|
|
78
78
|
title: "프로그램 검색",
|
|
79
79
|
width: 700,
|
|
@@ -81,7 +81,7 @@ const It = z(
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
CORE_GW_DRAFTS: {
|
|
84
|
-
component:
|
|
84
|
+
component: Ot,
|
|
85
85
|
defaultConfig: {
|
|
86
86
|
title: "기안 목록",
|
|
87
87
|
width: 1e3,
|
|
@@ -97,18 +97,18 @@ const It = z(
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
CORE_HOLIDAY_01: {
|
|
100
|
-
component:
|
|
100
|
+
component: Rt,
|
|
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
|
+
}, we = "bwg-dot-line-wave-v4";
|
|
108
|
+
function zt() {
|
|
109
|
+
if (typeof document > "u" || document.getElementById(we)) return;
|
|
110
110
|
const n = document.createElement("style");
|
|
111
|
-
n.id =
|
|
111
|
+
n.id = we, n.textContent = `
|
|
112
112
|
.bwg-dotline {
|
|
113
113
|
display: inline-flex;
|
|
114
114
|
align-items: center;
|
|
@@ -144,46 +144,46 @@ function Rt() {
|
|
|
144
144
|
}
|
|
145
145
|
`, document.head.appendChild(n);
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const At = ({
|
|
148
148
|
colors: n = ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
149
149
|
count: t,
|
|
150
150
|
size: r = 12,
|
|
151
151
|
gap: o = 10,
|
|
152
|
-
amp:
|
|
152
|
+
amp: i = 16,
|
|
153
153
|
speedMs: a = 900,
|
|
154
154
|
direction: b = "ltr",
|
|
155
155
|
phase: l = 0.7
|
|
156
156
|
}) => {
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
D(() => {
|
|
158
|
+
zt();
|
|
159
159
|
}, []);
|
|
160
|
-
const c = t ?? n.length,
|
|
160
|
+
const c = t ?? n.length, v = Array.from({ length: c }), m = {
|
|
161
161
|
"--bwg-size": `${r}px`,
|
|
162
162
|
"--bwg-gap": `${o}px`,
|
|
163
|
-
"--bwg-amp": `${
|
|
163
|
+
"--bwg-amp": `${i}px`,
|
|
164
164
|
"--bwg-speed": `${a}ms`
|
|
165
|
-
},
|
|
165
|
+
}, d = a / c * l;
|
|
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:
|
|
172
|
+
style: m,
|
|
173
|
+
children: v.map((h, p) => /* @__PURE__ */ e(
|
|
174
174
|
"span",
|
|
175
175
|
{
|
|
176
176
|
className: "dot",
|
|
177
177
|
style: {
|
|
178
|
-
backgroundColor: n[
|
|
179
|
-
animationDelay: b === "ltr" ? `${
|
|
178
|
+
backgroundColor: n[p % n.length],
|
|
179
|
+
animationDelay: b === "ltr" ? `${p * d}ms` : `${(c - 1 - p) * d}ms`
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
p
|
|
183
183
|
))
|
|
184
184
|
}
|
|
185
185
|
);
|
|
186
|
-
},
|
|
186
|
+
}, vn = ({
|
|
187
187
|
spin: n = null,
|
|
188
188
|
text: t = "인증중...",
|
|
189
189
|
dimStyle: r = "dark"
|
|
@@ -216,10 +216,10 @@ const Dt = ({
|
|
|
216
216
|
role: "status",
|
|
217
217
|
children: [
|
|
218
218
|
/* @__PURE__ */ e(
|
|
219
|
-
|
|
219
|
+
re,
|
|
220
220
|
{
|
|
221
221
|
indicator: /* @__PURE__ */ e(
|
|
222
|
-
|
|
222
|
+
At,
|
|
223
223
|
{
|
|
224
224
|
colors: ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
225
225
|
size: 12,
|
|
@@ -236,18 +236,18 @@ const Dt = ({
|
|
|
236
236
|
]
|
|
237
237
|
}
|
|
238
238
|
);
|
|
239
|
-
},
|
|
239
|
+
}, wn = ({
|
|
240
240
|
routes: n,
|
|
241
241
|
useCommonProvider: t = !0,
|
|
242
242
|
useServiceProvider: r = !0
|
|
243
243
|
}) => {
|
|
244
|
-
let
|
|
245
|
-
/* @__PURE__ */ e(
|
|
246
|
-
/* @__PURE__ */ e(
|
|
247
|
-
/* @__PURE__ */ e(
|
|
244
|
+
let i = /* @__PURE__ */ C(xe, { children: [
|
|
245
|
+
/* @__PURE__ */ e(te, { path: "/", element: /* @__PURE__ */ e(Ee, { to: "/login" }) }),
|
|
246
|
+
/* @__PURE__ */ e(te, { path: "/login", element: n.login }),
|
|
247
|
+
/* @__PURE__ */ e(te, { path: "/main/*", element: n.main })
|
|
248
248
|
] });
|
|
249
|
-
return r && (
|
|
250
|
-
}, { Content:
|
|
249
|
+
return r && (i = /* @__PURE__ */ e(Me, { children: i })), t && (i = /* @__PURE__ */ e(Le, { children: i })), /* @__PURE__ */ e(De, { children: i });
|
|
250
|
+
}, { Content: Wt } = Z, Pe = ({
|
|
251
251
|
config: n = {},
|
|
252
252
|
children: t
|
|
253
253
|
}) => {
|
|
@@ -263,11 +263,11 @@ const Dt = ({
|
|
|
263
263
|
...n
|
|
264
264
|
};
|
|
265
265
|
return /* @__PURE__ */ e(
|
|
266
|
-
|
|
266
|
+
Wt,
|
|
267
267
|
{
|
|
268
268
|
className: r.wrapper.className,
|
|
269
269
|
style: r.wrapper.style,
|
|
270
|
-
children: /* @__PURE__ */ e(
|
|
270
|
+
children: /* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(
|
|
271
271
|
"div",
|
|
272
272
|
{
|
|
273
273
|
className: r.body.className,
|
|
@@ -277,7 +277,7 @@ const Dt = ({
|
|
|
277
277
|
) })
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
|
-
},
|
|
280
|
+
}, $t = "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", Ft = "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", _t = "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: Gt } = Z, { confirm: Ht } = $e, $ = {
|
|
281
281
|
light: {
|
|
282
282
|
headerBg: "#ffffff",
|
|
283
283
|
headerText: "#000000",
|
|
@@ -330,11 +330,11 @@ const Dt = ({
|
|
|
330
330
|
buttonDefaultBorder: "#dddddd",
|
|
331
331
|
buttonPermissionBorder: "#bdb1ff"
|
|
332
332
|
}
|
|
333
|
-
},
|
|
333
|
+
}, de = {
|
|
334
334
|
0: "작게",
|
|
335
335
|
1: "보통",
|
|
336
336
|
2: "크게"
|
|
337
|
-
},
|
|
337
|
+
}, Se = ({ config: n = {}, children: t }) => {
|
|
338
338
|
const r = {
|
|
339
339
|
gap: 14,
|
|
340
340
|
minWidth: 200,
|
|
@@ -367,152 +367,273 @@ const Dt = ({
|
|
|
367
367
|
...n.logo
|
|
368
368
|
},
|
|
369
369
|
right: r
|
|
370
|
-
},
|
|
371
|
-
componentSize:
|
|
372
|
-
setComponentSize:
|
|
370
|
+
}, i = ge(), a = J(null), b = Je(), {
|
|
371
|
+
componentSize: l,
|
|
372
|
+
setComponentSize: c,
|
|
373
373
|
gridSize: v,
|
|
374
|
-
setGridSize:
|
|
375
|
-
spacingSize:
|
|
376
|
-
setSpacingSize:
|
|
377
|
-
enableProtectWrapper:
|
|
378
|
-
setEnableProtectWrapper:
|
|
379
|
-
|
|
374
|
+
setGridSize: m,
|
|
375
|
+
spacingSize: d,
|
|
376
|
+
setSpacingSize: h,
|
|
377
|
+
enableProtectWrapper: p,
|
|
378
|
+
setEnableProtectWrapper: N,
|
|
379
|
+
theme: y,
|
|
380
|
+
setTheme: g,
|
|
381
|
+
clearAllGridLayouts: k
|
|
382
|
+
} = Ne(), T = 1, z = 2, E = 2, w = (u, S) => {
|
|
380
383
|
try {
|
|
381
|
-
if (!/^[a-zA-Z0-9-]+$/.test(
|
|
382
|
-
document.documentElement.style.setProperty(
|
|
383
|
-
} catch (
|
|
384
|
-
console.error("CSS variable setting failed:",
|
|
384
|
+
if (!/^[a-zA-Z0-9-]+$/.test(u) || !/^[#a-zA-Z0-9()\s,.-]+$/.test(S)) return;
|
|
385
|
+
document.documentElement.style.setProperty(u, S);
|
|
386
|
+
} catch (I) {
|
|
387
|
+
console.error("CSS variable setting failed:", I);
|
|
385
388
|
}
|
|
386
|
-
},
|
|
387
|
-
if (
|
|
388
|
-
|
|
389
|
-
const
|
|
390
|
-
|
|
389
|
+
}, F = (u) => {
|
|
390
|
+
if (!$[u]) return;
|
|
391
|
+
g(u);
|
|
392
|
+
const S = { ...$[u] };
|
|
393
|
+
w("--header-bg", S.headerBg), w("--header-text", S.headerText), w("--sidebar-bg", S.sidebarBg), w("--sidebar-text", S.sidebarText), w("--button-primary", S.buttonPrimary), w("--button-primary-hover", S.buttonPrimaryHover), w("--button-primary-active", S.buttonPrimaryActive), w("--button-default", S.buttonDefault), w("--button-default-hover", S.buttonDefaultHover), w("--button-default-border", S.buttonDefaultBorder), w(
|
|
391
394
|
"--button-permission-border",
|
|
392
|
-
|
|
393
|
-
),
|
|
395
|
+
S.buttonPermissionBorder
|
|
396
|
+
), a.current && a.current.setAttribute("data-theme", u), document.documentElement.setAttribute("data-theme", u);
|
|
394
397
|
};
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
D(() => {
|
|
399
|
+
if (y && $[y]) {
|
|
400
|
+
const u = { ...$[y] };
|
|
401
|
+
w("--header-bg", u.headerBg), w("--header-text", u.headerText), w("--sidebar-bg", u.sidebarBg), w("--sidebar-text", u.sidebarText), w("--button-primary", u.buttonPrimary), w("--button-primary-hover", u.buttonPrimaryHover), w(
|
|
402
|
+
"--button-primary-active",
|
|
403
|
+
u.buttonPrimaryActive
|
|
404
|
+
), w("--button-default", u.buttonDefault), w("--button-default-hover", u.buttonDefaultHover), w(
|
|
405
|
+
"--button-default-border",
|
|
406
|
+
u.buttonDefaultBorder
|
|
407
|
+
), w(
|
|
408
|
+
"--button-permission-border",
|
|
409
|
+
u.buttonPermissionBorder
|
|
410
|
+
), a.current && a.current.setAttribute("data-theme", y), document.documentElement.setAttribute("data-theme", y);
|
|
411
|
+
} else
|
|
412
|
+
F("modern");
|
|
413
|
+
}, [y]);
|
|
414
|
+
const H = () => {
|
|
415
|
+
b(), i("/login");
|
|
401
416
|
};
|
|
402
|
-
|
|
403
|
-
const
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
417
|
+
Ce ? Ce("HH:mm:ss") : (/* @__PURE__ */ new Date()).toLocaleTimeString("ko-KR");
|
|
418
|
+
const j = $[y]?.headerBg || "#f3f4ff", Y = /* @__PURE__ */ C(
|
|
419
|
+
"div",
|
|
420
|
+
{
|
|
421
|
+
style: {
|
|
422
|
+
padding: "16px",
|
|
423
|
+
backgroundColor: j,
|
|
424
|
+
borderRadius: "8px",
|
|
425
|
+
minWidth: "320px"
|
|
426
|
+
},
|
|
427
|
+
children: [
|
|
428
|
+
/* @__PURE__ */ C("div", { style: { marginBottom: "16px" }, children: [
|
|
429
|
+
/* @__PURE__ */ e(
|
|
430
|
+
"div",
|
|
431
|
+
{
|
|
432
|
+
style: { marginBottom: "12px", fontSize: "14px", fontWeight: 500 },
|
|
433
|
+
children: "테마 선택"
|
|
434
|
+
}
|
|
435
|
+
),
|
|
436
|
+
/* @__PURE__ */ C(
|
|
437
|
+
"div",
|
|
438
|
+
{
|
|
439
|
+
style: {
|
|
440
|
+
display: "grid",
|
|
441
|
+
gridTemplateColumns: "1fr 1fr",
|
|
442
|
+
gap: "8px",
|
|
443
|
+
marginBottom: "8px"
|
|
444
|
+
},
|
|
445
|
+
children: [
|
|
446
|
+
/* @__PURE__ */ e(
|
|
447
|
+
B,
|
|
448
|
+
{
|
|
449
|
+
type: y === "modern" ? "primary" : "default",
|
|
450
|
+
size: "small",
|
|
451
|
+
onClick: () => F("modern"),
|
|
452
|
+
style: {
|
|
453
|
+
width: "100%",
|
|
454
|
+
backgroundColor: y === "modern" ? $.modern.headerBg : void 0,
|
|
455
|
+
color: y === "modern" ? $.modern.headerText : void 0,
|
|
456
|
+
borderColor: y === "modern" ? $.modern.headerBg : void 0
|
|
457
|
+
},
|
|
458
|
+
children: "모던"
|
|
459
|
+
},
|
|
460
|
+
"modern"
|
|
461
|
+
),
|
|
462
|
+
Object.entries($).filter(([u]) => u !== "modern").map(([u, S]) => /* @__PURE__ */ e(
|
|
463
|
+
B,
|
|
464
|
+
{
|
|
465
|
+
type: y === u ? "primary" : "default",
|
|
466
|
+
size: "small",
|
|
467
|
+
onClick: () => F(u),
|
|
468
|
+
style: {
|
|
469
|
+
width: "100%",
|
|
470
|
+
backgroundColor: y === u ? S.headerBg : void 0,
|
|
471
|
+
color: y === u ? S.headerText : void 0,
|
|
472
|
+
borderColor: y === u ? S.headerBg : void 0
|
|
473
|
+
},
|
|
474
|
+
children: u
|
|
475
|
+
},
|
|
476
|
+
u
|
|
477
|
+
))
|
|
478
|
+
]
|
|
479
|
+
}
|
|
480
|
+
)
|
|
481
|
+
] }),
|
|
482
|
+
/* @__PURE__ */ e(ae, { style: { margin: "16px 0" } }),
|
|
483
|
+
/* @__PURE__ */ C("div", { style: { marginBottom: "16px" }, children: [
|
|
484
|
+
/* @__PURE__ */ C(
|
|
485
|
+
ne,
|
|
486
|
+
{
|
|
487
|
+
justify: "space-between",
|
|
488
|
+
align: "center",
|
|
489
|
+
style: { marginBottom: "8px" },
|
|
490
|
+
children: [
|
|
491
|
+
/* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500 }, children: "컴포넌트 크기" }),
|
|
492
|
+
/* @__PURE__ */ e(
|
|
493
|
+
B,
|
|
494
|
+
{
|
|
495
|
+
type: "text",
|
|
496
|
+
size: "small",
|
|
497
|
+
icon: /* @__PURE__ */ e(ee, {}),
|
|
498
|
+
onClick: () => c(T),
|
|
499
|
+
disabled: l === T,
|
|
500
|
+
style: { padding: "0 4px" }
|
|
501
|
+
}
|
|
502
|
+
)
|
|
503
|
+
]
|
|
504
|
+
}
|
|
505
|
+
),
|
|
506
|
+
/* @__PURE__ */ e(
|
|
507
|
+
le,
|
|
508
|
+
{
|
|
509
|
+
marks: de,
|
|
510
|
+
value: l,
|
|
511
|
+
min: 0,
|
|
512
|
+
max: 2,
|
|
513
|
+
step: 1,
|
|
514
|
+
onChange: (u) => c(u)
|
|
515
|
+
}
|
|
516
|
+
)
|
|
517
|
+
] }),
|
|
518
|
+
/* @__PURE__ */ C("div", { style: { marginBottom: "16px" }, children: [
|
|
519
|
+
/* @__PURE__ */ C(
|
|
520
|
+
ne,
|
|
521
|
+
{
|
|
522
|
+
justify: "space-between",
|
|
523
|
+
align: "center",
|
|
524
|
+
style: { marginBottom: "8px" },
|
|
525
|
+
children: [
|
|
526
|
+
/* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500 }, children: "그리드 크기" }),
|
|
527
|
+
/* @__PURE__ */ e(
|
|
528
|
+
B,
|
|
529
|
+
{
|
|
530
|
+
type: "text",
|
|
531
|
+
size: "small",
|
|
532
|
+
icon: /* @__PURE__ */ e(ee, {}),
|
|
533
|
+
onClick: () => m(z),
|
|
534
|
+
disabled: v === z,
|
|
535
|
+
style: { padding: "0 4px" }
|
|
536
|
+
}
|
|
537
|
+
)
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
),
|
|
541
|
+
/* @__PURE__ */ e(
|
|
542
|
+
le,
|
|
543
|
+
{
|
|
544
|
+
marks: de,
|
|
545
|
+
value: v,
|
|
546
|
+
min: 0,
|
|
547
|
+
max: 2,
|
|
548
|
+
step: 1,
|
|
549
|
+
onChange: (u) => m(u)
|
|
550
|
+
}
|
|
551
|
+
)
|
|
552
|
+
] }),
|
|
553
|
+
/* @__PURE__ */ C("div", { style: { marginBottom: "16px" }, children: [
|
|
554
|
+
/* @__PURE__ */ C(
|
|
555
|
+
ne,
|
|
556
|
+
{
|
|
557
|
+
justify: "space-between",
|
|
558
|
+
align: "center",
|
|
559
|
+
style: { marginBottom: "8px" },
|
|
560
|
+
children: [
|
|
561
|
+
/* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500 }, children: "여백 조정" }),
|
|
562
|
+
/* @__PURE__ */ e(
|
|
563
|
+
B,
|
|
564
|
+
{
|
|
565
|
+
type: "text",
|
|
566
|
+
size: "small",
|
|
567
|
+
icon: /* @__PURE__ */ e(ee, {}),
|
|
568
|
+
onClick: () => h(E),
|
|
569
|
+
disabled: d === E,
|
|
570
|
+
style: { padding: "0 4px" }
|
|
571
|
+
}
|
|
572
|
+
)
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
),
|
|
576
|
+
/* @__PURE__ */ e(
|
|
577
|
+
le,
|
|
578
|
+
{
|
|
579
|
+
marks: de,
|
|
580
|
+
value: d,
|
|
581
|
+
min: 0,
|
|
582
|
+
max: 2,
|
|
583
|
+
step: 1,
|
|
584
|
+
onChange: (u) => h(u)
|
|
585
|
+
}
|
|
586
|
+
)
|
|
587
|
+
] }),
|
|
588
|
+
/* @__PURE__ */ e(ae, { style: { margin: "16px 0" } }),
|
|
589
|
+
/* @__PURE__ */ C(
|
|
590
|
+
"div",
|
|
591
|
+
{
|
|
592
|
+
style: {
|
|
593
|
+
marginBottom: "16px",
|
|
594
|
+
display: "flex",
|
|
595
|
+
justifyContent: "space-between",
|
|
596
|
+
alignItems: "center"
|
|
597
|
+
},
|
|
598
|
+
children: [
|
|
599
|
+
/* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500 }, children: "화면 보호 활성화" }),
|
|
600
|
+
/* @__PURE__ */ e(
|
|
601
|
+
We,
|
|
602
|
+
{
|
|
603
|
+
checked: p,
|
|
604
|
+
onChange: N
|
|
605
|
+
}
|
|
606
|
+
)
|
|
607
|
+
]
|
|
608
|
+
}
|
|
609
|
+
),
|
|
610
|
+
/* @__PURE__ */ e(ae, { style: { margin: "16px 0" } }),
|
|
611
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
612
|
+
B,
|
|
613
|
+
{
|
|
614
|
+
type: "default",
|
|
615
|
+
danger: !0,
|
|
616
|
+
size: "small",
|
|
617
|
+
icon: /* @__PURE__ */ e(ee, {}),
|
|
618
|
+
onClick: () => {
|
|
619
|
+
Ht({
|
|
620
|
+
title: "전체 그리드 레이아웃 초기화",
|
|
621
|
+
content: "임의 변경한 그리드 레이아웃 변경사항을 초기화하시겠습니까? 기존 열려있는 화면들은 다시 열어야 적용됩니다.",
|
|
622
|
+
onOk() {
|
|
623
|
+
k();
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
},
|
|
627
|
+
block: !0,
|
|
628
|
+
style: { fontSize: "12px" },
|
|
629
|
+
children: "전체 그리드 레이아웃 초기화"
|
|
630
|
+
}
|
|
631
|
+
) })
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
);
|
|
514
635
|
return /* @__PURE__ */ C(
|
|
515
|
-
|
|
636
|
+
Gt,
|
|
516
637
|
{
|
|
517
638
|
className: o.wrapper.className,
|
|
518
639
|
style: { ...o.wrapper.style },
|
|
@@ -547,29 +668,29 @@ const Dt = ({
|
|
|
547
668
|
minWidth: o.right?.minWidth
|
|
548
669
|
},
|
|
549
670
|
children: [
|
|
550
|
-
o.right?.items?.map((
|
|
671
|
+
o.right?.items?.map((u, S) => /* @__PURE__ */ e("div", { children: u }, S)),
|
|
551
672
|
o.right?.alarm?.visible && /* @__PURE__ */ e(
|
|
552
|
-
|
|
673
|
+
B,
|
|
553
674
|
{
|
|
554
675
|
type: "text",
|
|
555
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
676
|
+
icon: /* @__PURE__ */ e("img", { src: $t, alt: "알림" }),
|
|
556
677
|
className: "alarm-btn",
|
|
557
678
|
onClick: o.right?.alarm?.onClick
|
|
558
679
|
}
|
|
559
680
|
),
|
|
560
681
|
o.right?.theme?.visible && /* @__PURE__ */ e(
|
|
561
|
-
|
|
682
|
+
Fe,
|
|
562
683
|
{
|
|
563
|
-
content:
|
|
564
|
-
title: "
|
|
684
|
+
content: Y,
|
|
685
|
+
title: "개인 설정",
|
|
565
686
|
trigger: "click",
|
|
566
687
|
placement: "bottomRight",
|
|
567
|
-
onOpenChange: (
|
|
688
|
+
onOpenChange: (u) => o.right?.theme?.onOpenChange?.(u),
|
|
568
689
|
children: /* @__PURE__ */ e(
|
|
569
|
-
|
|
690
|
+
B,
|
|
570
691
|
{
|
|
571
692
|
type: "text",
|
|
572
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
693
|
+
icon: /* @__PURE__ */ e("img", { src: _t, alt: "개인설정" }),
|
|
573
694
|
className: "theme-btn",
|
|
574
695
|
onClick: o.right?.theme?.onClick
|
|
575
696
|
}
|
|
@@ -577,18 +698,18 @@ const Dt = ({
|
|
|
577
698
|
}
|
|
578
699
|
),
|
|
579
700
|
o.right?.logout?.visible && /* @__PURE__ */ e(
|
|
580
|
-
|
|
701
|
+
B,
|
|
581
702
|
{
|
|
582
703
|
type: "text",
|
|
583
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
584
|
-
onClick: o.right?.logout?.onClick ||
|
|
704
|
+
icon: /* @__PURE__ */ e("img", { src: Ft, alt: "로그아웃" }),
|
|
705
|
+
onClick: o.right?.logout?.onClick || H,
|
|
585
706
|
className: "logout-btn"
|
|
586
707
|
}
|
|
587
708
|
),
|
|
588
709
|
o.right?.avatar?.visible && /* @__PURE__ */ e(
|
|
589
|
-
|
|
710
|
+
_e,
|
|
590
711
|
{
|
|
591
|
-
icon: /* @__PURE__ */ e(
|
|
712
|
+
icon: /* @__PURE__ */ e(rt, {}),
|
|
592
713
|
className: "avatar",
|
|
593
714
|
style: {
|
|
594
715
|
width: o.right?.avatar?.width,
|
|
@@ -603,7 +724,7 @@ const Dt = ({
|
|
|
603
724
|
]
|
|
604
725
|
}
|
|
605
726
|
);
|
|
606
|
-
},
|
|
727
|
+
}, he = /* @__PURE__ */ Object.freeze({
|
|
607
728
|
Translate: {
|
|
608
729
|
toString(n) {
|
|
609
730
|
if (!n)
|
|
@@ -629,7 +750,7 @@ const Dt = ({
|
|
|
629
750
|
Transform: {
|
|
630
751
|
toString(n) {
|
|
631
752
|
if (n)
|
|
632
|
-
return [
|
|
753
|
+
return [he.Translate.toString(n), he.Scale.toString(n)].join(" ");
|
|
633
754
|
}
|
|
634
755
|
},
|
|
635
756
|
Transition: {
|
|
@@ -642,72 +763,72 @@ const Dt = ({
|
|
|
642
763
|
return t + " " + r + "ms " + o;
|
|
643
764
|
}
|
|
644
765
|
}
|
|
645
|
-
}),
|
|
766
|
+
}), jt = fe(
|
|
646
767
|
({ className: n, ...t }) => {
|
|
647
|
-
const r =
|
|
768
|
+
const r = J(null), {
|
|
648
769
|
attributes: o,
|
|
649
|
-
listeners:
|
|
770
|
+
listeners: i,
|
|
650
771
|
transform: a,
|
|
651
772
|
transition: b,
|
|
652
773
|
isDragging: l,
|
|
653
774
|
setNodeRef: c
|
|
654
|
-
} =
|
|
655
|
-
|
|
775
|
+
} = Nt({ id: t["data-node-key"] }), [v, m] = A();
|
|
776
|
+
D(() => {
|
|
656
777
|
const h = r.current;
|
|
657
778
|
if (h)
|
|
658
779
|
if (l) {
|
|
659
|
-
const
|
|
660
|
-
|
|
780
|
+
const p = Math.round(h.getBoundingClientRect().width);
|
|
781
|
+
m(p);
|
|
661
782
|
} else
|
|
662
|
-
|
|
783
|
+
m(void 0);
|
|
663
784
|
}, [l]);
|
|
664
|
-
const
|
|
785
|
+
const d = {
|
|
665
786
|
...t.style,
|
|
666
|
-
transform: a ?
|
|
787
|
+
transform: a ? he.Transform.toString(a) : void 0,
|
|
667
788
|
transition: b ?? "transform 0.16s ease",
|
|
668
789
|
cursor: "grab",
|
|
669
790
|
userSelect: "none",
|
|
670
791
|
willChange: "transform",
|
|
671
792
|
// ✅ 드래그 중 픽셀 폭 고정 (flex 재계산 억제)
|
|
672
|
-
width:
|
|
673
|
-
minWidth:
|
|
674
|
-
maxWidth:
|
|
675
|
-
flex:
|
|
793
|
+
width: v ?? void 0,
|
|
794
|
+
minWidth: v ?? void 0,
|
|
795
|
+
maxWidth: v ?? void 0,
|
|
796
|
+
flex: v !== void 0 ? "0 0 auto" : void 0
|
|
676
797
|
};
|
|
677
|
-
return
|
|
798
|
+
return Qe(t.children, {
|
|
678
799
|
ref: (h) => {
|
|
679
800
|
r.current !== h && (r.current = h), c(h);
|
|
680
801
|
},
|
|
681
|
-
style:
|
|
802
|
+
style: d,
|
|
682
803
|
...o,
|
|
683
|
-
...
|
|
804
|
+
...i
|
|
684
805
|
});
|
|
685
806
|
}
|
|
686
|
-
),
|
|
807
|
+
), Vt = fe(function({
|
|
687
808
|
config: t,
|
|
688
809
|
isFirst: r,
|
|
689
810
|
isLast: o,
|
|
690
|
-
canCloseAll:
|
|
811
|
+
canCloseAll: i,
|
|
691
812
|
onFirst: a,
|
|
692
813
|
onPrev: b,
|
|
693
814
|
onNext: l,
|
|
694
815
|
onLast: c,
|
|
695
|
-
onCloseAll:
|
|
816
|
+
onCloseAll: v
|
|
696
817
|
}) {
|
|
697
818
|
return /* @__PURE__ */ C("div", { className: t.wrapper?.className, style: t.wrapper?.style, children: [
|
|
698
819
|
/* @__PURE__ */ e(
|
|
699
|
-
|
|
820
|
+
X,
|
|
700
821
|
{
|
|
701
822
|
title: "첫 번째 탭",
|
|
702
823
|
className: t.tooltip?.className,
|
|
703
824
|
style: t.tooltip?.style,
|
|
704
825
|
children: /* @__PURE__ */ e(
|
|
705
|
-
|
|
826
|
+
B,
|
|
706
827
|
{
|
|
707
828
|
className: t.buttons?.className,
|
|
708
829
|
style: t.buttons?.style,
|
|
709
830
|
size: "small",
|
|
710
|
-
icon: /* @__PURE__ */ e(
|
|
831
|
+
icon: /* @__PURE__ */ e(st, {}),
|
|
711
832
|
onClick: a,
|
|
712
833
|
disabled: r
|
|
713
834
|
}
|
|
@@ -715,18 +836,18 @@ const Dt = ({
|
|
|
715
836
|
}
|
|
716
837
|
),
|
|
717
838
|
/* @__PURE__ */ e(
|
|
718
|
-
|
|
839
|
+
X,
|
|
719
840
|
{
|
|
720
841
|
title: "이전 탭",
|
|
721
842
|
className: t.tooltip?.className,
|
|
722
843
|
style: t.tooltip?.style,
|
|
723
844
|
children: /* @__PURE__ */ e(
|
|
724
|
-
|
|
845
|
+
B,
|
|
725
846
|
{
|
|
726
847
|
className: t.buttons?.className,
|
|
727
848
|
style: t.buttons?.style,
|
|
728
849
|
size: "small",
|
|
729
|
-
icon: /* @__PURE__ */ e(
|
|
850
|
+
icon: /* @__PURE__ */ e(it, {}),
|
|
730
851
|
onClick: b,
|
|
731
852
|
disabled: r
|
|
732
853
|
}
|
|
@@ -734,18 +855,18 @@ const Dt = ({
|
|
|
734
855
|
}
|
|
735
856
|
),
|
|
736
857
|
/* @__PURE__ */ e(
|
|
737
|
-
|
|
858
|
+
X,
|
|
738
859
|
{
|
|
739
860
|
title: "다음 탭",
|
|
740
861
|
className: t.tooltip?.className,
|
|
741
862
|
style: t.tooltip?.style,
|
|
742
863
|
children: /* @__PURE__ */ e(
|
|
743
|
-
|
|
864
|
+
B,
|
|
744
865
|
{
|
|
745
866
|
className: t.buttons?.className,
|
|
746
867
|
style: t.buttons?.style,
|
|
747
868
|
size: "small",
|
|
748
|
-
icon: /* @__PURE__ */ e(
|
|
869
|
+
icon: /* @__PURE__ */ e(at, {}),
|
|
749
870
|
onClick: l,
|
|
750
871
|
disabled: o
|
|
751
872
|
}
|
|
@@ -753,18 +874,18 @@ const Dt = ({
|
|
|
753
874
|
}
|
|
754
875
|
),
|
|
755
876
|
/* @__PURE__ */ e(
|
|
756
|
-
|
|
877
|
+
X,
|
|
757
878
|
{
|
|
758
879
|
title: "마지막 탭",
|
|
759
880
|
className: t.tooltip?.className,
|
|
760
881
|
style: t.tooltip?.style,
|
|
761
882
|
children: /* @__PURE__ */ e(
|
|
762
|
-
|
|
883
|
+
B,
|
|
763
884
|
{
|
|
764
885
|
className: t.buttons?.className,
|
|
765
886
|
style: t.buttons?.style,
|
|
766
887
|
size: "small",
|
|
767
|
-
icon: /* @__PURE__ */ e(
|
|
888
|
+
icon: /* @__PURE__ */ e(lt, {}),
|
|
768
889
|
onClick: c,
|
|
769
890
|
disabled: o
|
|
770
891
|
}
|
|
@@ -772,26 +893,26 @@ const Dt = ({
|
|
|
772
893
|
}
|
|
773
894
|
),
|
|
774
895
|
/* @__PURE__ */ e(
|
|
775
|
-
|
|
896
|
+
X,
|
|
776
897
|
{
|
|
777
898
|
title: "모든 탭 닫기",
|
|
778
899
|
className: t.tooltip?.className,
|
|
779
900
|
style: t.tooltip?.style,
|
|
780
901
|
children: /* @__PURE__ */ e(
|
|
781
|
-
|
|
902
|
+
B,
|
|
782
903
|
{
|
|
783
904
|
className: t.buttons?.className,
|
|
784
905
|
style: t.buttons?.style,
|
|
785
906
|
size: "small",
|
|
786
|
-
icon: /* @__PURE__ */ e(
|
|
787
|
-
onClick:
|
|
788
|
-
disabled: !
|
|
907
|
+
icon: /* @__PURE__ */ e(U, {}),
|
|
908
|
+
onClick: v,
|
|
909
|
+
disabled: !i
|
|
789
910
|
}
|
|
790
911
|
)
|
|
791
912
|
}
|
|
792
913
|
)
|
|
793
914
|
] });
|
|
794
|
-
}),
|
|
915
|
+
}), Ut = ({
|
|
795
916
|
config: n = {}
|
|
796
917
|
}) => {
|
|
797
918
|
const t = {
|
|
@@ -819,72 +940,179 @@ const Dt = ({
|
|
|
819
940
|
...n?.nav
|
|
820
941
|
},
|
|
821
942
|
...n
|
|
822
|
-
}, r =
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
},
|
|
829
|
-
|
|
830
|
-
},
|
|
943
|
+
}, r = O((s) => s.tabs), o = O((s) => s.activeMenuId), i = O((s) => s.pinnedTabs), a = O((s) => s.focusTab), b = O((s) => s.closeTab), l = O((s) => s.reorderTabs), c = O((s) => s.togglePinTab), v = O((s) => s.refreshTab), m = O((s) => s.closeOtherTabs), d = O((s) => s.closeRightTabs);
|
|
944
|
+
O((s) => s.closeAllTabs);
|
|
945
|
+
const h = ft(
|
|
946
|
+
bt(yt, { activationConstraint: { distance: 6 } })
|
|
947
|
+
), p = (s) => {
|
|
948
|
+
a(s);
|
|
949
|
+
}, N = (s, x) => {
|
|
950
|
+
x === "remove" && typeof s == "string" && b(s);
|
|
951
|
+
}, y = () => {
|
|
952
|
+
r.length > 0 && a(r[0].key);
|
|
953
|
+
}, g = () => {
|
|
831
954
|
if (!o || r.length <= 1) return;
|
|
832
|
-
const
|
|
833
|
-
|
|
834
|
-
},
|
|
955
|
+
const s = r.findIndex((x) => x.key === o);
|
|
956
|
+
s > 0 && a(r[s - 1].key);
|
|
957
|
+
}, k = () => {
|
|
835
958
|
if (!o || r.length <= 1) return;
|
|
836
|
-
const
|
|
837
|
-
|
|
838
|
-
},
|
|
839
|
-
r.length > 0 &&
|
|
840
|
-
},
|
|
841
|
-
r.forEach((
|
|
842
|
-
|
|
959
|
+
const s = r.findIndex((x) => x.key === o);
|
|
960
|
+
s < r.length - 1 && a(r[s + 1].key);
|
|
961
|
+
}, T = () => {
|
|
962
|
+
r.length > 0 && a(r[r.length - 1].key);
|
|
963
|
+
}, z = () => {
|
|
964
|
+
r.forEach((s) => {
|
|
965
|
+
i.has(s.key) || b(s.key);
|
|
843
966
|
});
|
|
844
|
-
},
|
|
845
|
-
()
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
967
|
+
}, E = R((s) => (x) => {
|
|
968
|
+
x.preventDefault(), x.stopPropagation();
|
|
969
|
+
}, []), w = R(
|
|
970
|
+
(s) => {
|
|
971
|
+
const x = i.has(s), M = r.findIndex((q) => q.key === s), L = M >= 0 && M < r.length - 1, G = r.length > 1;
|
|
972
|
+
return [
|
|
973
|
+
{
|
|
974
|
+
key: "close",
|
|
975
|
+
label: "닫기",
|
|
976
|
+
icon: /* @__PURE__ */ e(U, {}),
|
|
977
|
+
onClick: () => {
|
|
978
|
+
x || b(s);
|
|
979
|
+
},
|
|
980
|
+
disabled: x
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
key: "pin",
|
|
984
|
+
label: x ? "고정 해제" : "고정",
|
|
985
|
+
icon: /* @__PURE__ */ e(ot, {}),
|
|
986
|
+
onClick: () => {
|
|
987
|
+
c(s);
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
key: "refresh",
|
|
992
|
+
label: "새로고침",
|
|
993
|
+
icon: /* @__PURE__ */ e(ye, {}),
|
|
994
|
+
onClick: () => {
|
|
995
|
+
v(s);
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
type: "divider"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
key: "closeOthers",
|
|
1003
|
+
label: "다른 탭 닫기",
|
|
1004
|
+
icon: /* @__PURE__ */ e(U, {}),
|
|
1005
|
+
onClick: () => {
|
|
1006
|
+
m(s);
|
|
1007
|
+
},
|
|
1008
|
+
disabled: !G
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
key: "closeRight",
|
|
1012
|
+
label: "우측 탭 닫기",
|
|
1013
|
+
icon: /* @__PURE__ */ e(U, {}),
|
|
1014
|
+
onClick: () => {
|
|
1015
|
+
d(s);
|
|
1016
|
+
},
|
|
1017
|
+
disabled: !L
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
key: "closeAll",
|
|
1021
|
+
label: "전체 닫기",
|
|
1022
|
+
icon: /* @__PURE__ */ e(U, {}),
|
|
1023
|
+
onClick: () => {
|
|
1024
|
+
z();
|
|
1025
|
+
},
|
|
1026
|
+
disabled: r.length === 0
|
|
1027
|
+
}
|
|
1028
|
+
];
|
|
1029
|
+
},
|
|
1030
|
+
[
|
|
1031
|
+
r,
|
|
1032
|
+
i,
|
|
1033
|
+
b,
|
|
1034
|
+
c,
|
|
1035
|
+
v,
|
|
1036
|
+
m,
|
|
1037
|
+
d
|
|
1038
|
+
]
|
|
1039
|
+
), F = o ? r.findIndex((s) => s.key === o) : -1, H = F === 0, j = F === r.length - 1, Y = _(
|
|
1040
|
+
() => r.map((s) => ({
|
|
1041
|
+
key: s.key,
|
|
1042
|
+
label: s.label,
|
|
1043
|
+
closable: !i.has(s.key),
|
|
1044
|
+
// 고정된 탭은 닫을 수 없음
|
|
849
1045
|
children: null
|
|
850
1046
|
// 컨텐츠는 Main 쪽에서 렌더 → 여기선 헤더만 필요
|
|
851
1047
|
})),
|
|
852
|
-
[r]
|
|
853
|
-
), A =
|
|
854
|
-
(
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
if (
|
|
858
|
-
const
|
|
859
|
-
|
|
1048
|
+
[r, i]
|
|
1049
|
+
), [u, S] = A(null), I = R(({ active: s }) => {
|
|
1050
|
+
S(null);
|
|
1051
|
+
}, []), P = R(
|
|
1052
|
+
({ active: s, over: x }) => {
|
|
1053
|
+
if (!x || s.id === x.id) return;
|
|
1054
|
+
const M = r.findIndex((Q) => Q.key === s.id), L = r.findIndex((Q) => Q.key === x.id);
|
|
1055
|
+
if (M < 0 || L < 0 || M === L) return;
|
|
1056
|
+
const G = r.map((Q) => Q.key), q = xt(G, M, L);
|
|
1057
|
+
l?.(q);
|
|
860
1058
|
},
|
|
861
|
-
[r,
|
|
862
|
-
),
|
|
863
|
-
(
|
|
864
|
-
|
|
1059
|
+
[r, l]
|
|
1060
|
+
), f = R(
|
|
1061
|
+
(s, x) => /* @__PURE__ */ e(
|
|
1062
|
+
Ct,
|
|
865
1063
|
{
|
|
866
|
-
sensors:
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
1064
|
+
sensors: h,
|
|
1065
|
+
onDragStart: I,
|
|
1066
|
+
onDragEnd: P,
|
|
1067
|
+
collisionDetection: vt,
|
|
1068
|
+
modifiers: [wt],
|
|
870
1069
|
children: /* @__PURE__ */ e(
|
|
871
|
-
|
|
1070
|
+
kt,
|
|
872
1071
|
{
|
|
873
|
-
items: r.map((
|
|
874
|
-
strategy:
|
|
875
|
-
children: /* @__PURE__ */ e(
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
1072
|
+
items: r.map((M) => M.key),
|
|
1073
|
+
strategy: It,
|
|
1074
|
+
children: /* @__PURE__ */ e(x, { ...s, children: (M) => {
|
|
1075
|
+
const L = M.key, G = u === L;
|
|
1076
|
+
return /* @__PURE__ */ e(
|
|
1077
|
+
Ge,
|
|
1078
|
+
{
|
|
1079
|
+
menu: { items: w(L) },
|
|
1080
|
+
trigger: ["contextMenu"],
|
|
1081
|
+
open: G,
|
|
1082
|
+
onOpenChange: (q) => {
|
|
1083
|
+
S(q ? L : null);
|
|
1084
|
+
},
|
|
1085
|
+
children: /* @__PURE__ */ e(
|
|
1086
|
+
"span",
|
|
1087
|
+
{
|
|
1088
|
+
onContextMenu: E(L),
|
|
1089
|
+
style: { display: "inline-block", width: "100%" },
|
|
1090
|
+
children: /* @__PURE__ */ Ie(
|
|
1091
|
+
jt,
|
|
1092
|
+
{
|
|
1093
|
+
...M.props,
|
|
1094
|
+
key: M.key
|
|
1095
|
+
},
|
|
1096
|
+
M
|
|
1097
|
+
)
|
|
1098
|
+
}
|
|
1099
|
+
)
|
|
1100
|
+
}
|
|
1101
|
+
);
|
|
1102
|
+
} })
|
|
883
1103
|
}
|
|
884
1104
|
)
|
|
885
1105
|
}
|
|
886
1106
|
),
|
|
887
|
-
[
|
|
1107
|
+
[
|
|
1108
|
+
h,
|
|
1109
|
+
I,
|
|
1110
|
+
P,
|
|
1111
|
+
r,
|
|
1112
|
+
u,
|
|
1113
|
+
w,
|
|
1114
|
+
E
|
|
1115
|
+
]
|
|
888
1116
|
);
|
|
889
1117
|
return /* @__PURE__ */ e(
|
|
890
1118
|
"div",
|
|
@@ -895,36 +1123,36 @@ const Dt = ({
|
|
|
895
1123
|
display: r.length === 0 ? "none" : "block"
|
|
896
1124
|
},
|
|
897
1125
|
children: /* @__PURE__ */ e(
|
|
898
|
-
|
|
1126
|
+
He,
|
|
899
1127
|
{
|
|
900
1128
|
type: "editable-card",
|
|
901
1129
|
activeKey: o || void 0,
|
|
902
|
-
onChange:
|
|
903
|
-
onEdit:
|
|
1130
|
+
onChange: p,
|
|
1131
|
+
onEdit: N,
|
|
904
1132
|
className: t.tabs.className,
|
|
905
1133
|
style: t.tabs.style,
|
|
906
1134
|
hideAdd: !0,
|
|
907
|
-
items:
|
|
1135
|
+
items: Y,
|
|
908
1136
|
tabBarExtraContent: /* @__PURE__ */ e(
|
|
909
|
-
|
|
1137
|
+
Vt,
|
|
910
1138
|
{
|
|
911
1139
|
config: t?.nav,
|
|
912
|
-
isFirst: !!
|
|
913
|
-
isLast: !!
|
|
1140
|
+
isFirst: !!H,
|
|
1141
|
+
isLast: !!j,
|
|
914
1142
|
canCloseAll: r.length > 0,
|
|
915
|
-
onFirst:
|
|
916
|
-
onPrev:
|
|
917
|
-
onNext:
|
|
918
|
-
onLast:
|
|
919
|
-
onCloseAll:
|
|
1143
|
+
onFirst: y,
|
|
1144
|
+
onPrev: g,
|
|
1145
|
+
onNext: k,
|
|
1146
|
+
onLast: T,
|
|
1147
|
+
onCloseAll: z
|
|
920
1148
|
}
|
|
921
1149
|
),
|
|
922
|
-
renderTabBar:
|
|
1150
|
+
renderTabBar: f
|
|
923
1151
|
}
|
|
924
1152
|
)
|
|
925
1153
|
}
|
|
926
1154
|
);
|
|
927
|
-
}, { Sider:
|
|
1155
|
+
}, { Sider: Kt } = Z, Zt = ({
|
|
928
1156
|
config: n = {}
|
|
929
1157
|
}) => {
|
|
930
1158
|
const t = {
|
|
@@ -966,12 +1194,12 @@ const Dt = ({
|
|
|
966
1194
|
...n?.style
|
|
967
1195
|
},
|
|
968
1196
|
...n
|
|
969
|
-
}, [r, o] =
|
|
1197
|
+
}, [r, o] = A(""), [i, a] = A(
|
|
970
1198
|
"category"
|
|
971
|
-
), [b, l] =
|
|
972
|
-
const I = [],
|
|
1199
|
+
), [b, l] = A([]), { activeMenuId: c, sidebarCollapsed: v, openTabFromMenu: m, toggleSidebar: d } = O(), { menuList: h, isLoading: p, error: N, findMenuById: y, flatMenuList: g } = ie(), { nodes: k, treeNodes: T, loadFavoritesIfNeeded: z } = et(), E = _(() => {
|
|
1200
|
+
const I = [], P = (f, s = 0) => {
|
|
973
1201
|
if (f.menuGbCd === t.menuGubunCode.program && f.scrnPath) {
|
|
974
|
-
const
|
|
1202
|
+
const x = " ".repeat(s), M = f.menuNo || "";
|
|
975
1203
|
I.push({
|
|
976
1204
|
value: f.menuId,
|
|
977
1205
|
label: /* @__PURE__ */ C(
|
|
@@ -984,7 +1212,7 @@ const Dt = ({
|
|
|
984
1212
|
},
|
|
985
1213
|
children: [
|
|
986
1214
|
/* @__PURE__ */ C("span", { children: [
|
|
987
|
-
|
|
1215
|
+
x,
|
|
988
1216
|
f.menuNm
|
|
989
1217
|
] }),
|
|
990
1218
|
/* @__PURE__ */ e(
|
|
@@ -998,7 +1226,7 @@ const Dt = ({
|
|
|
998
1226
|
borderRadius: "3px",
|
|
999
1227
|
marginLeft: "8px"
|
|
1000
1228
|
},
|
|
1001
|
-
children:
|
|
1229
|
+
children: M
|
|
1002
1230
|
}
|
|
1003
1231
|
)
|
|
1004
1232
|
]
|
|
@@ -1007,13 +1235,13 @@ const Dt = ({
|
|
|
1007
1235
|
menuItem: f
|
|
1008
1236
|
});
|
|
1009
1237
|
}
|
|
1010
|
-
f.children && f.children.length > 0 && f.children.forEach((
|
|
1238
|
+
f.children && f.children.length > 0 && f.children.forEach((x) => P(x, s + 1));
|
|
1011
1239
|
};
|
|
1012
|
-
return h.forEach((f) =>
|
|
1013
|
-
}, [h]),
|
|
1014
|
-
const
|
|
1015
|
-
return
|
|
1016
|
-
}) : [], [E, r]),
|
|
1240
|
+
return h.forEach((f) => P(f)), I;
|
|
1241
|
+
}, [h]), w = _(() => r.trim() ? E.filter((I) => {
|
|
1242
|
+
const P = I.menuItem.menuNm.toLowerCase(), f = String(I.menuItem.menuNo || "미지정").toLowerCase(), s = r.toLowerCase();
|
|
1243
|
+
return P.includes(s) || f.includes(s);
|
|
1244
|
+
}) : [], [E, r]), F = (I) => {
|
|
1017
1245
|
if (!I || typeof I != "string") {
|
|
1018
1246
|
console.warn("Invalid menu selection value:", I);
|
|
1019
1247
|
return;
|
|
@@ -1022,11 +1250,11 @@ const Dt = ({
|
|
|
1022
1250
|
console.warn("Invalid menu ID format:", I);
|
|
1023
1251
|
return;
|
|
1024
1252
|
}
|
|
1025
|
-
const
|
|
1253
|
+
const P = E.find(
|
|
1026
1254
|
(f) => f.value === I
|
|
1027
1255
|
);
|
|
1028
|
-
if (
|
|
1029
|
-
const { menuItem: f } =
|
|
1256
|
+
if (P) {
|
|
1257
|
+
const { menuItem: f } = P;
|
|
1030
1258
|
if (!f || !f.menuId || !f.menuNm) {
|
|
1031
1259
|
console.warn("Invalid menu item:", f);
|
|
1032
1260
|
return;
|
|
@@ -1040,23 +1268,23 @@ const Dt = ({
|
|
|
1040
1268
|
f.scrnPath,
|
|
1041
1269
|
"scrnId:",
|
|
1042
1270
|
f.scrnId
|
|
1043
|
-
),
|
|
1271
|
+
), m(f)) : (f.menuGbCd === t.menuGubunCode.mainMenu || f.menuGbCd === t.menuGubunCode.subMenu) && (console.log("❌ 검색으로 메인/서브 메뉴 선택 - 이벤트 무시"), console.log("메뉴명:", f.menuNm, "menuGbCd:", f.menuGbCd)), o("");
|
|
1044
1272
|
}
|
|
1045
|
-
},
|
|
1273
|
+
}, H = R(
|
|
1046
1274
|
(I) => {
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1275
|
+
const P = y(I);
|
|
1276
|
+
P?.menuGbCd === t.menuGubunCode.program && (console.log(
|
|
1049
1277
|
"메뉴명:",
|
|
1050
|
-
|
|
1278
|
+
P.menuNm,
|
|
1051
1279
|
"경로:",
|
|
1052
|
-
|
|
1280
|
+
P.scrnPath,
|
|
1053
1281
|
"scrnId:",
|
|
1054
|
-
|
|
1055
|
-
),
|
|
1282
|
+
P.scrnId
|
|
1283
|
+
), m(P));
|
|
1056
1284
|
},
|
|
1057
|
-
[
|
|
1058
|
-
),
|
|
1059
|
-
key:
|
|
1285
|
+
[y, m]
|
|
1286
|
+
), j = R((I) => I.map((P) => ({
|
|
1287
|
+
key: P.menuId,
|
|
1060
1288
|
label: /* @__PURE__ */ e(
|
|
1061
1289
|
"div",
|
|
1062
1290
|
{
|
|
@@ -1065,21 +1293,21 @@ const Dt = ({
|
|
|
1065
1293
|
justifyContent: "space-between",
|
|
1066
1294
|
alignItems: "center"
|
|
1067
1295
|
},
|
|
1068
|
-
children: /* @__PURE__ */ e("span", { children:
|
|
1296
|
+
children: /* @__PURE__ */ e("span", { children: P.menuNm })
|
|
1069
1297
|
}
|
|
1070
1298
|
),
|
|
1071
|
-
icon:
|
|
1072
|
-
children:
|
|
1073
|
-
})), []),
|
|
1299
|
+
icon: Y(P.iconCd, P.menuGbCd),
|
|
1300
|
+
children: P.children && P.children.length > 0 ? j(P.children) : void 0
|
|
1301
|
+
})), []), Y = (I, P) => {
|
|
1074
1302
|
if (I) {
|
|
1075
|
-
const f =
|
|
1303
|
+
const f = oe[I];
|
|
1076
1304
|
if (f)
|
|
1077
1305
|
return /* @__PURE__ */ e(f, {});
|
|
1078
1306
|
}
|
|
1079
|
-
if (
|
|
1080
|
-
switch (
|
|
1307
|
+
if (P)
|
|
1308
|
+
switch (P) {
|
|
1081
1309
|
case t.menuGubunCode.mainMenu:
|
|
1082
|
-
return /* @__PURE__ */ e(
|
|
1310
|
+
return /* @__PURE__ */ e(oe.HomeOutlined, {});
|
|
1083
1311
|
case t.menuGubunCode.subMenu:
|
|
1084
1312
|
return null;
|
|
1085
1313
|
case t.menuGubunCode.program:
|
|
@@ -1088,66 +1316,66 @@ const Dt = ({
|
|
|
1088
1316
|
return null;
|
|
1089
1317
|
}
|
|
1090
1318
|
return null;
|
|
1091
|
-
},
|
|
1319
|
+
}, u = R(
|
|
1092
1320
|
(I) => {
|
|
1093
1321
|
if (h.length === 0) return [];
|
|
1094
|
-
const
|
|
1095
|
-
if (
|
|
1096
|
-
return typeof
|
|
1097
|
-
}, f = (
|
|
1098
|
-
if (
|
|
1099
|
-
const
|
|
1322
|
+
const P = (s) => {
|
|
1323
|
+
if (s)
|
|
1324
|
+
return typeof s == "string" ? k[s] : s;
|
|
1325
|
+
}, f = (s) => {
|
|
1326
|
+
if (s.type === "M") {
|
|
1327
|
+
const x = s, M = y(x.menuId) || void 0, L = !!M, G = L ? `${M?.menuNm ?? x.menuNm ?? x.menuId}` : `${x.menuNm ?? x.menuId} (삭제됨)`;
|
|
1100
1328
|
return {
|
|
1101
|
-
key:
|
|
1102
|
-
label:
|
|
1103
|
-
icon:
|
|
1329
|
+
key: x.menuId,
|
|
1330
|
+
label: G,
|
|
1331
|
+
icon: L ? void 0 : /* @__PURE__ */ e(mt, { style: { color: "#faad14" } })
|
|
1104
1332
|
};
|
|
1105
1333
|
} else {
|
|
1106
|
-
const
|
|
1334
|
+
const x = s, M = (x.children ?? []).map(P).filter(Boolean).map(f);
|
|
1107
1335
|
return {
|
|
1108
|
-
key:
|
|
1109
|
-
label:
|
|
1110
|
-
icon:
|
|
1111
|
-
children:
|
|
1336
|
+
key: x.bkmkId,
|
|
1337
|
+
label: x.bkmkNm ?? x.bkmkId,
|
|
1338
|
+
icon: x.prntBkmkId === "-" ? /* @__PURE__ */ e(ht, {}) : /* @__PURE__ */ e(pt, {}),
|
|
1339
|
+
children: M
|
|
1112
1340
|
// 빈 배열이면 자동으로 말아줌
|
|
1113
1341
|
};
|
|
1114
1342
|
}
|
|
1115
1343
|
};
|
|
1116
1344
|
return I.map(f);
|
|
1117
1345
|
},
|
|
1118
|
-
[
|
|
1119
|
-
),
|
|
1120
|
-
() =>
|
|
1121
|
-
[
|
|
1346
|
+
[y, k, h]
|
|
1347
|
+
), S = _(
|
|
1348
|
+
() => u(T),
|
|
1349
|
+
[u, T, k]
|
|
1122
1350
|
);
|
|
1123
|
-
return
|
|
1124
|
-
|
|
1125
|
-
}, [
|
|
1126
|
-
|
|
1127
|
-
}, [
|
|
1128
|
-
if (!c ||
|
|
1129
|
-
const
|
|
1130
|
-
const
|
|
1131
|
-
let
|
|
1132
|
-
for (;
|
|
1133
|
-
const
|
|
1134
|
-
if (!
|
|
1135
|
-
if (
|
|
1136
|
-
|
|
1351
|
+
return D(() => {
|
|
1352
|
+
ve() && z(ve());
|
|
1353
|
+
}, [z]), D(() => {
|
|
1354
|
+
i === "category" && o("");
|
|
1355
|
+
}, [i]), D(() => {
|
|
1356
|
+
if (!c || i !== "category") return;
|
|
1357
|
+
const P = ((f) => {
|
|
1358
|
+
const s = [], x = new Map(g.map((L) => [L.menuId, L]));
|
|
1359
|
+
let M = f;
|
|
1360
|
+
for (; M; ) {
|
|
1361
|
+
const L = x.get(M);
|
|
1362
|
+
if (!L) break;
|
|
1363
|
+
if (L.menuPrntId && L.menuPrntId !== "-" && L.menuPrntId !== "")
|
|
1364
|
+
s.push(L.menuPrntId), M = L.menuPrntId;
|
|
1137
1365
|
else
|
|
1138
1366
|
break;
|
|
1139
1367
|
}
|
|
1140
|
-
return
|
|
1368
|
+
return s;
|
|
1141
1369
|
})(c);
|
|
1142
|
-
|
|
1143
|
-
const
|
|
1144
|
-
return Array.from(
|
|
1370
|
+
P.length > 0 && l((f) => {
|
|
1371
|
+
const s = /* @__PURE__ */ new Set([...f, ...P]);
|
|
1372
|
+
return Array.from(s);
|
|
1145
1373
|
});
|
|
1146
|
-
}, [c,
|
|
1147
|
-
|
|
1374
|
+
}, [c, i, g]), /* @__PURE__ */ C(
|
|
1375
|
+
Kt,
|
|
1148
1376
|
{
|
|
1149
1377
|
className: t.className.wrapper,
|
|
1150
|
-
collapsed: t.collapsed ||
|
|
1378
|
+
collapsed: t.collapsed || v,
|
|
1151
1379
|
trigger: null,
|
|
1152
1380
|
width: t.width || 230,
|
|
1153
1381
|
children: [
|
|
@@ -1172,10 +1400,10 @@ const Dt = ({
|
|
|
1172
1400
|
transition: "all 0.3s ease"
|
|
1173
1401
|
},
|
|
1174
1402
|
children: /* @__PURE__ */ e(
|
|
1175
|
-
|
|
1403
|
+
B,
|
|
1176
1404
|
{
|
|
1177
1405
|
type: "text",
|
|
1178
|
-
icon: t.collapsed ||
|
|
1406
|
+
icon: t.collapsed || v ? /* @__PURE__ */ e(ct, {}) : /* @__PURE__ */ e(dt, {}),
|
|
1179
1407
|
style: {
|
|
1180
1408
|
fontSize: "12px",
|
|
1181
1409
|
color: "#787878",
|
|
@@ -1187,28 +1415,28 @@ const Dt = ({
|
|
|
1187
1415
|
justifyContent: "center",
|
|
1188
1416
|
borderRadius: "0 10px 10px 0"
|
|
1189
1417
|
},
|
|
1190
|
-
onClick:
|
|
1418
|
+
onClick: d
|
|
1191
1419
|
}
|
|
1192
1420
|
)
|
|
1193
1421
|
}
|
|
1194
1422
|
),
|
|
1195
|
-
!(t.collapsed ||
|
|
1423
|
+
!(t.collapsed || v) && /* @__PURE__ */ e(
|
|
1196
1424
|
"div",
|
|
1197
1425
|
{
|
|
1198
1426
|
style: {
|
|
1199
1427
|
padding: 10
|
|
1200
1428
|
},
|
|
1201
1429
|
children: /* @__PURE__ */ e(
|
|
1202
|
-
|
|
1430
|
+
je,
|
|
1203
1431
|
{
|
|
1204
1432
|
value: r,
|
|
1205
|
-
options:
|
|
1206
|
-
onSelect:
|
|
1433
|
+
options: w,
|
|
1434
|
+
onSelect: F,
|
|
1207
1435
|
onSearch: o,
|
|
1208
1436
|
style: { width: "100%" },
|
|
1209
1437
|
allowClear: !0,
|
|
1210
1438
|
children: /* @__PURE__ */ e(
|
|
1211
|
-
|
|
1439
|
+
ue,
|
|
1212
1440
|
{
|
|
1213
1441
|
className: t.className.search,
|
|
1214
1442
|
placeholder: t.style.search.placeholder,
|
|
@@ -1242,7 +1470,7 @@ const Dt = ({
|
|
|
1242
1470
|
)
|
|
1243
1471
|
}
|
|
1244
1472
|
),
|
|
1245
|
-
!(t.collapsed ||
|
|
1473
|
+
!(t.collapsed || v) && /* @__PURE__ */ e(
|
|
1246
1474
|
"div",
|
|
1247
1475
|
{
|
|
1248
1476
|
style: {
|
|
@@ -1251,12 +1479,12 @@ const Dt = ({
|
|
|
1251
1479
|
marginBottom: "10px"
|
|
1252
1480
|
},
|
|
1253
1481
|
children: /* @__PURE__ */ e(
|
|
1254
|
-
|
|
1482
|
+
Ve,
|
|
1255
1483
|
{
|
|
1256
1484
|
className: t.className.segmented.wrapper,
|
|
1257
1485
|
options: [
|
|
1258
1486
|
{
|
|
1259
|
-
label: /* @__PURE__ */ C(
|
|
1487
|
+
label: /* @__PURE__ */ C(K, { children: [
|
|
1260
1488
|
/* @__PURE__ */ e(
|
|
1261
1489
|
"span",
|
|
1262
1490
|
{
|
|
@@ -1311,7 +1539,7 @@ const Dt = ({
|
|
|
1311
1539
|
value: "category"
|
|
1312
1540
|
},
|
|
1313
1541
|
{
|
|
1314
|
-
label: /* @__PURE__ */ C(
|
|
1542
|
+
label: /* @__PURE__ */ C(K, { children: [
|
|
1315
1543
|
/* @__PURE__ */ e(
|
|
1316
1544
|
"span",
|
|
1317
1545
|
{
|
|
@@ -1343,7 +1571,7 @@ const Dt = ({
|
|
|
1343
1571
|
value: "favorite"
|
|
1344
1572
|
}
|
|
1345
1573
|
],
|
|
1346
|
-
value:
|
|
1574
|
+
value: i,
|
|
1347
1575
|
onChange: (I) => {
|
|
1348
1576
|
a(I);
|
|
1349
1577
|
},
|
|
@@ -1356,7 +1584,7 @@ const Dt = ({
|
|
|
1356
1584
|
}
|
|
1357
1585
|
),
|
|
1358
1586
|
/* @__PURE__ */ C("div", { className: t.className.sider.content, children: [
|
|
1359
|
-
|
|
1587
|
+
p && /* @__PURE__ */ C(
|
|
1360
1588
|
"div",
|
|
1361
1589
|
{
|
|
1362
1590
|
className: t.className.sider.loading,
|
|
@@ -1368,7 +1596,7 @@ const Dt = ({
|
|
|
1368
1596
|
},
|
|
1369
1597
|
children: [
|
|
1370
1598
|
/* @__PURE__ */ e(
|
|
1371
|
-
|
|
1599
|
+
Ue,
|
|
1372
1600
|
{
|
|
1373
1601
|
theme: {
|
|
1374
1602
|
components: {
|
|
@@ -1377,7 +1605,7 @@ const Dt = ({
|
|
|
1377
1605
|
}
|
|
1378
1606
|
}
|
|
1379
1607
|
},
|
|
1380
|
-
children: /* @__PURE__ */ e(
|
|
1608
|
+
children: /* @__PURE__ */ e(re, { size: "default" })
|
|
1381
1609
|
}
|
|
1382
1610
|
),
|
|
1383
1611
|
/* @__PURE__ */ e(
|
|
@@ -1391,16 +1619,16 @@ const Dt = ({
|
|
|
1391
1619
|
]
|
|
1392
1620
|
}
|
|
1393
1621
|
),
|
|
1394
|
-
|
|
1622
|
+
N && /* @__PURE__ */ C("div", { className: t.className.sider.error, children: [
|
|
1395
1623
|
/* @__PURE__ */ e(
|
|
1396
|
-
|
|
1624
|
+
ut,
|
|
1397
1625
|
{
|
|
1398
1626
|
className: t.className.sider.errorIcon
|
|
1399
1627
|
}
|
|
1400
1628
|
),
|
|
1401
1629
|
/* @__PURE__ */ e("div", { className: t.className.sider.errorText, children: "메뉴 로드 실패" })
|
|
1402
1630
|
] }),
|
|
1403
|
-
!
|
|
1631
|
+
!p && !N && i === "category" && h.length === 0 && /* @__PURE__ */ e(
|
|
1404
1632
|
"div",
|
|
1405
1633
|
{
|
|
1406
1634
|
style: {
|
|
@@ -1412,7 +1640,7 @@ const Dt = ({
|
|
|
1412
1640
|
children: "메뉴가 없습니다"
|
|
1413
1641
|
}
|
|
1414
1642
|
),
|
|
1415
|
-
!
|
|
1643
|
+
!p && !N && i === "favorite" && S.length === 0 && /* @__PURE__ */ e(
|
|
1416
1644
|
"div",
|
|
1417
1645
|
{
|
|
1418
1646
|
style: {
|
|
@@ -1424,28 +1652,28 @@ const Dt = ({
|
|
|
1424
1652
|
children: "즐겨찾기된 메뉴가 없습니다"
|
|
1425
1653
|
}
|
|
1426
1654
|
),
|
|
1427
|
-
!
|
|
1428
|
-
|
|
1655
|
+
!p && !N && i === "category" && h.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1656
|
+
me,
|
|
1429
1657
|
{
|
|
1430
1658
|
theme: "light",
|
|
1431
1659
|
mode: "inline",
|
|
1432
|
-
items:
|
|
1660
|
+
items: j(h),
|
|
1433
1661
|
className: t.className.sider.menu,
|
|
1434
1662
|
selectedKeys: [c || ""],
|
|
1435
1663
|
openKeys: b,
|
|
1436
1664
|
onOpenChange: l,
|
|
1437
|
-
onClick: (I) =>
|
|
1665
|
+
onClick: (I) => H(I.key)
|
|
1438
1666
|
}
|
|
1439
1667
|
) }),
|
|
1440
|
-
!
|
|
1441
|
-
|
|
1668
|
+
!p && !N && i === "favorite" && S.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1669
|
+
me,
|
|
1442
1670
|
{
|
|
1443
1671
|
theme: "light",
|
|
1444
1672
|
mode: "inline",
|
|
1445
|
-
items:
|
|
1673
|
+
items: S,
|
|
1446
1674
|
className: t.className.sider.menu,
|
|
1447
1675
|
selectedKeys: [c || ""],
|
|
1448
|
-
onClick: (I) =>
|
|
1676
|
+
onClick: (I) => H(I.key)
|
|
1449
1677
|
}
|
|
1450
1678
|
) })
|
|
1451
1679
|
] })
|
|
@@ -1453,7 +1681,7 @@ const Dt = ({
|
|
|
1453
1681
|
}
|
|
1454
1682
|
);
|
|
1455
1683
|
};
|
|
1456
|
-
class
|
|
1684
|
+
class Yt extends Xe {
|
|
1457
1685
|
constructor(t) {
|
|
1458
1686
|
super(t), this.resetError = () => {
|
|
1459
1687
|
this.setState({ hasError: !1, error: void 0, errorInfo: void 0 });
|
|
@@ -1483,17 +1711,17 @@ class Kt extends Ye {
|
|
|
1483
1711
|
},
|
|
1484
1712
|
children: [
|
|
1485
1713
|
/* @__PURE__ */ e(
|
|
1486
|
-
|
|
1714
|
+
ke,
|
|
1487
1715
|
{
|
|
1488
1716
|
status: "error",
|
|
1489
1717
|
title: "컴포넌트 로딩 중 오류가 발생했습니다",
|
|
1490
1718
|
subTitle: this.state.error ? `오류 내용: ${this.state.error.message}` : "알 수 없는 오류가 발생했습니다",
|
|
1491
1719
|
extra: [
|
|
1492
1720
|
/* @__PURE__ */ e(
|
|
1493
|
-
|
|
1721
|
+
B,
|
|
1494
1722
|
{
|
|
1495
1723
|
type: "primary",
|
|
1496
|
-
icon: /* @__PURE__ */ e(
|
|
1724
|
+
icon: /* @__PURE__ */ e(ye, {}),
|
|
1497
1725
|
onClick: this.resetError,
|
|
1498
1726
|
style: { marginRight: 8 },
|
|
1499
1727
|
children: "다시 시도"
|
|
@@ -1538,13 +1766,13 @@ class Kt extends Ye {
|
|
|
1538
1766
|
) : this.props.children;
|
|
1539
1767
|
}
|
|
1540
1768
|
}
|
|
1541
|
-
const
|
|
1769
|
+
const qt = ({
|
|
1542
1770
|
isActive: n,
|
|
1543
1771
|
instance: t,
|
|
1544
1772
|
params: r
|
|
1545
1773
|
}) => {
|
|
1546
|
-
const { activeMenuId: o, closeTab:
|
|
1547
|
-
o &&
|
|
1774
|
+
const { activeMenuId: o, closeTab: i } = O(), a = () => {
|
|
1775
|
+
o && i(o);
|
|
1548
1776
|
};
|
|
1549
1777
|
return t ? /* @__PURE__ */ e(
|
|
1550
1778
|
"div",
|
|
@@ -1560,7 +1788,7 @@ const Ut = ({
|
|
|
1560
1788
|
transition: "opacity 0.2s ease-in-out",
|
|
1561
1789
|
pointerEvents: n ? "auto" : "none"
|
|
1562
1790
|
},
|
|
1563
|
-
children: /* @__PURE__ */ e(
|
|
1791
|
+
children: /* @__PURE__ */ e(Yt, { children: /* @__PURE__ */ e(se, { fallback: null, children: t && Ie(t, { params: r }) }) })
|
|
1564
1792
|
}
|
|
1565
1793
|
) : /* @__PURE__ */ e(
|
|
1566
1794
|
"div",
|
|
@@ -1591,20 +1819,20 @@ const Ut = ({
|
|
|
1591
1819
|
padding: 24
|
|
1592
1820
|
},
|
|
1593
1821
|
children: /* @__PURE__ */ e(
|
|
1594
|
-
|
|
1822
|
+
ke,
|
|
1595
1823
|
{
|
|
1596
|
-
icon: /* @__PURE__ */ e(
|
|
1824
|
+
icon: /* @__PURE__ */ e(gt, { twoToneColor: "#69b1ff" }),
|
|
1597
1825
|
status: "warning",
|
|
1598
1826
|
title: "등록된 메뉴 정보가 없거나 유효한 메뉴가 아닙니다.",
|
|
1599
|
-
subTitle: /* @__PURE__ */ e(
|
|
1600
|
-
extra: /* @__PURE__ */ e(
|
|
1827
|
+
subTitle: /* @__PURE__ */ e(Ze.Text, { type: "secondary", children: "자세한 내용은 관리자에게 문의바랍니다." }),
|
|
1828
|
+
extra: /* @__PURE__ */ e(Ke, { children: /* @__PURE__ */ e(B, { icon: /* @__PURE__ */ e(U, {}), onClick: a, children: "탭 닫기" }) })
|
|
1601
1829
|
}
|
|
1602
1830
|
)
|
|
1603
1831
|
}
|
|
1604
1832
|
)
|
|
1605
1833
|
}
|
|
1606
1834
|
);
|
|
1607
|
-
},
|
|
1835
|
+
}, Qt = fe(qt), Xt = ({
|
|
1608
1836
|
menuGubunCode: n = {
|
|
1609
1837
|
mainMenu: "MAIN",
|
|
1610
1838
|
subMenu: "SUB",
|
|
@@ -1614,87 +1842,87 @@ const Ut = ({
|
|
|
1614
1842
|
style: r,
|
|
1615
1843
|
routeMap: o
|
|
1616
1844
|
}) => {
|
|
1617
|
-
const { menuList:
|
|
1618
|
-
(
|
|
1619
|
-
if (
|
|
1620
|
-
const
|
|
1621
|
-
if (
|
|
1622
|
-
return /* @__PURE__ */ e(
|
|
1845
|
+
const { menuList: i, findMenuById: a, flatMenuList: b } = ie(), { activeMenuId: l } = O(), c = ge(), [v, m] = A([]), d = R(
|
|
1846
|
+
(y, g) => {
|
|
1847
|
+
if (y) {
|
|
1848
|
+
const k = oe[y];
|
|
1849
|
+
if (k)
|
|
1850
|
+
return /* @__PURE__ */ e(k, {});
|
|
1623
1851
|
}
|
|
1624
|
-
if (
|
|
1625
|
-
switch (
|
|
1852
|
+
if (g)
|
|
1853
|
+
switch (g) {
|
|
1626
1854
|
case n.mainMenu:
|
|
1627
|
-
return /* @__PURE__ */ e(
|
|
1855
|
+
return /* @__PURE__ */ e(oe.HomeOutlined, {});
|
|
1628
1856
|
default:
|
|
1629
1857
|
return null;
|
|
1630
1858
|
}
|
|
1631
1859
|
return null;
|
|
1632
1860
|
},
|
|
1633
1861
|
[n]
|
|
1634
|
-
), h =
|
|
1635
|
-
(
|
|
1636
|
-
const
|
|
1862
|
+
), h = R(
|
|
1863
|
+
(y) => y.map((g) => {
|
|
1864
|
+
const k = g.children && g.children.length === 1 && g.children[0].menuGbCd === n.program;
|
|
1637
1865
|
return {
|
|
1638
|
-
key:
|
|
1639
|
-
label:
|
|
1640
|
-
icon:
|
|
1866
|
+
key: g.menuId,
|
|
1867
|
+
label: g.menuNm,
|
|
1868
|
+
icon: d(g.iconCd, g.menuGbCd),
|
|
1641
1869
|
// children이 1개이고 program이면 드롭다운 없음, 2개 이상이면 드롭다운 표시
|
|
1642
|
-
children:
|
|
1870
|
+
children: g.children && g.children.length > 0 && !k ? h(g.children) : void 0
|
|
1643
1871
|
};
|
|
1644
1872
|
}),
|
|
1645
|
-
[
|
|
1646
|
-
),
|
|
1647
|
-
(
|
|
1648
|
-
const
|
|
1649
|
-
if (
|
|
1650
|
-
if (
|
|
1651
|
-
const
|
|
1652
|
-
let
|
|
1653
|
-
|
|
1873
|
+
[d, n]
|
|
1874
|
+
), p = _(() => h(i), [i, h]), N = R(
|
|
1875
|
+
(y) => {
|
|
1876
|
+
const g = a(y.key);
|
|
1877
|
+
if (g) {
|
|
1878
|
+
if (g.children && g.children.length === 1 && g.children[0].menuGbCd === n.program) {
|
|
1879
|
+
const k = g.children[0];
|
|
1880
|
+
let T = o?.[k.menuId] || k.scrnPath || "/";
|
|
1881
|
+
T === "/" ? T = "/main" : T.startsWith("/main") || (T = T.startsWith("/") ? `/main${T}` : `/main/${T}`), c(T);
|
|
1654
1882
|
return;
|
|
1655
1883
|
}
|
|
1656
|
-
if (
|
|
1657
|
-
let
|
|
1658
|
-
|
|
1884
|
+
if (g.menuGbCd === n.program && g.scrnPath) {
|
|
1885
|
+
let k = o?.[g.menuId] || g.scrnPath || "/";
|
|
1886
|
+
k === "/" ? k = "/main" : k.startsWith("/main") || (k = k.startsWith("/") ? `/main${k}` : `/main/${k}`), c(k);
|
|
1659
1887
|
return;
|
|
1660
1888
|
}
|
|
1661
1889
|
}
|
|
1662
1890
|
},
|
|
1663
1891
|
[a, n, c, o]
|
|
1664
1892
|
);
|
|
1665
|
-
return
|
|
1893
|
+
return D(() => {
|
|
1666
1894
|
if (!l || t !== "vertical") return;
|
|
1667
|
-
const
|
|
1668
|
-
const
|
|
1669
|
-
let E =
|
|
1895
|
+
const g = ((k) => {
|
|
1896
|
+
const T = [], z = new Map(b.map((w) => [w.menuId, w]));
|
|
1897
|
+
let E = k;
|
|
1670
1898
|
for (; E; ) {
|
|
1671
|
-
const
|
|
1672
|
-
if (!
|
|
1673
|
-
if (
|
|
1674
|
-
|
|
1899
|
+
const w = z.get(E);
|
|
1900
|
+
if (!w) break;
|
|
1901
|
+
if (w.menuPrntId && w.menuPrntId !== "-" && w.menuPrntId !== "")
|
|
1902
|
+
T.push(w.menuPrntId), E = w.menuPrntId;
|
|
1675
1903
|
else
|
|
1676
1904
|
break;
|
|
1677
1905
|
}
|
|
1678
|
-
return
|
|
1906
|
+
return T;
|
|
1679
1907
|
})(l);
|
|
1680
|
-
|
|
1681
|
-
const
|
|
1682
|
-
return Array.from(
|
|
1908
|
+
g.length > 0 && m((k) => {
|
|
1909
|
+
const T = /* @__PURE__ */ new Set([...k, ...g]);
|
|
1910
|
+
return Array.from(T);
|
|
1683
1911
|
});
|
|
1684
1912
|
}, [l, t, b]), /* @__PURE__ */ e(
|
|
1685
|
-
|
|
1913
|
+
me,
|
|
1686
1914
|
{
|
|
1687
1915
|
mode: t,
|
|
1688
1916
|
theme: "light",
|
|
1689
|
-
items:
|
|
1917
|
+
items: p,
|
|
1690
1918
|
selectedKeys: [l || ""],
|
|
1691
|
-
openKeys: t === "vertical" ?
|
|
1692
|
-
onOpenChange: t === "vertical" ?
|
|
1693
|
-
onClick:
|
|
1919
|
+
openKeys: t === "vertical" ? v : void 0,
|
|
1920
|
+
onOpenChange: t === "vertical" ? m : void 0,
|
|
1921
|
+
onClick: N,
|
|
1694
1922
|
style: r
|
|
1695
1923
|
}
|
|
1696
1924
|
);
|
|
1697
|
-
},
|
|
1925
|
+
}, Jt = () => /* @__PURE__ */ C(K, { children: [
|
|
1698
1926
|
/* @__PURE__ */ e(
|
|
1699
1927
|
"link",
|
|
1700
1928
|
{
|
|
@@ -1704,62 +1932,62 @@ const Ut = ({
|
|
|
1704
1932
|
}
|
|
1705
1933
|
),
|
|
1706
1934
|
/* @__PURE__ */ e("div", { className: "LandingContainer-wrap", children: /* @__PURE__ */ e("div", { className: "inner", children: /* @__PURE__ */ e("div", { className: "content" }) }) })
|
|
1707
|
-
] }),
|
|
1935
|
+
] }), en = (n, t) => {
|
|
1708
1936
|
console.log("createPopupViewLoader 호출 - popupUrl:", n);
|
|
1709
|
-
const o = ((
|
|
1710
|
-
if (
|
|
1711
|
-
const l =
|
|
1712
|
-
return console.log(`팝업 URL 변환: ${
|
|
1937
|
+
const o = ((i) => {
|
|
1938
|
+
if (i.startsWith("/src/pages/views/popup/")) {
|
|
1939
|
+
const l = i + ".tsx";
|
|
1940
|
+
return console.log(`팝업 URL 변환: ${i} -> ${l}`), l;
|
|
1713
1941
|
}
|
|
1714
|
-
const b = `/src/pages/views/popup/${
|
|
1715
|
-
return console.log(`팝업 URL 변환: ${
|
|
1942
|
+
const b = `/src/pages/views/popup/${i.startsWith("/") ? i.substring(1) : i}.tsx`;
|
|
1943
|
+
return console.log(`팝업 URL 변환: ${i} -> ${b}`), b;
|
|
1716
1944
|
})(n);
|
|
1717
1945
|
return !o || !t?.glob || !t.glob[o] ? (console.warn(`팝업 뷰를 찾을 수 없습니다: ${n} (${o})`), console.warn("사용 가능한 팝업 뷰들:", Object.keys(t?.glob || {})), null) : t.glob[o];
|
|
1718
|
-
},
|
|
1719
|
-
const [r, o] =
|
|
1720
|
-
console.log("PopupArea - handleClose:", n.popupId),
|
|
1946
|
+
}, tn = ({ popup: n, modules: t }) => {
|
|
1947
|
+
const [r, o] = A(null), [i, a] = A(!1), [b, l] = A(null), c = () => {
|
|
1948
|
+
console.log("PopupArea - handleClose:", n.popupId), be.getState().closePopup(n.popupId);
|
|
1721
1949
|
};
|
|
1722
|
-
return
|
|
1950
|
+
return D(() => {
|
|
1723
1951
|
(async () => {
|
|
1724
1952
|
console.log("팝업 뷰 로드 시작:", n.popupUrl), a(!0), l(null);
|
|
1725
1953
|
try {
|
|
1726
|
-
const
|
|
1727
|
-
if (!
|
|
1728
|
-
const
|
|
1729
|
-
console.error(
|
|
1954
|
+
const m = en(n.popupUrl, t);
|
|
1955
|
+
if (!m) {
|
|
1956
|
+
const p = `팝업 뷰를 찾을 수 없습니다: ${n.popupUrl}`;
|
|
1957
|
+
console.error(p), l(p), a(!1);
|
|
1730
1958
|
return;
|
|
1731
1959
|
}
|
|
1732
1960
|
console.log("팝업 뷰 모듈 로드 중...");
|
|
1733
|
-
const
|
|
1734
|
-
console.log("팝업 뷰 모듈 로드 완료:",
|
|
1735
|
-
const h =
|
|
1961
|
+
const d = await m();
|
|
1962
|
+
console.log("팝업 뷰 모듈 로드 완료:", d);
|
|
1963
|
+
const h = d.default;
|
|
1736
1964
|
if (console.log("팝업 뷰 컴포넌트:", h), !h)
|
|
1737
1965
|
throw new Error("팝업 뷰 컴포넌트를 찾을 수 없습니다");
|
|
1738
1966
|
o(() => h), console.log("팝업 뷰 설정 완료");
|
|
1739
|
-
} catch (
|
|
1740
|
-
console.error("팝업 뷰 로드 실패:",
|
|
1967
|
+
} catch (m) {
|
|
1968
|
+
console.error("팝업 뷰 로드 실패:", m), l(m instanceof Error ? m.message : "팝업 뷰 로드 실패");
|
|
1741
1969
|
} finally {
|
|
1742
1970
|
a(!1);
|
|
1743
1971
|
}
|
|
1744
1972
|
})();
|
|
1745
|
-
}, [n.popupUrl]),
|
|
1746
|
-
/* @__PURE__ */ e(
|
|
1973
|
+
}, [n.popupUrl]), i ? /* @__PURE__ */ C("div", { className: "popup-loading", children: [
|
|
1974
|
+
/* @__PURE__ */ e(re, { size: "large" }),
|
|
1747
1975
|
/* @__PURE__ */ e("p", { children: "팝업을 로드하는 중..." })
|
|
1748
1976
|
] }) : b ? /* @__PURE__ */ C("div", { className: "popup-error", children: [
|
|
1749
|
-
/* @__PURE__ */ e(
|
|
1977
|
+
/* @__PURE__ */ e(ce, { description: b, image: ce.PRESENTED_IMAGE_SIMPLE }),
|
|
1750
1978
|
/* @__PURE__ */ e(
|
|
1751
|
-
|
|
1979
|
+
B,
|
|
1752
1980
|
{
|
|
1753
|
-
icon: /* @__PURE__ */ e(
|
|
1981
|
+
icon: /* @__PURE__ */ e(ye, {}),
|
|
1754
1982
|
onClick: () => window.location.reload(),
|
|
1755
1983
|
children: "다시 시도"
|
|
1756
1984
|
}
|
|
1757
1985
|
)
|
|
1758
1986
|
] }) : r ? /* @__PURE__ */ e(
|
|
1759
|
-
|
|
1987
|
+
se,
|
|
1760
1988
|
{
|
|
1761
1989
|
fallback: /* @__PURE__ */ C("div", { className: "popup-loading", children: [
|
|
1762
|
-
/* @__PURE__ */ e(
|
|
1990
|
+
/* @__PURE__ */ e(re, { size: "large" }),
|
|
1763
1991
|
/* @__PURE__ */ e("p", { children: "컴포넌트를 로드하는 중..." })
|
|
1764
1992
|
] }),
|
|
1765
1993
|
children: /* @__PURE__ */ e(
|
|
@@ -1774,14 +2002,14 @@ const Ut = ({
|
|
|
1774
2002
|
}
|
|
1775
2003
|
)
|
|
1776
2004
|
}
|
|
1777
|
-
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(
|
|
1778
|
-
},
|
|
1779
|
-
const { popups: t } =
|
|
1780
|
-
return t.length === 0 ? null : /* @__PURE__ */ e(
|
|
2005
|
+
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(ce, { description: "팝업 내용을 불러올 수 없습니다." }) });
|
|
2006
|
+
}, nn = ({ modules: n }) => {
|
|
2007
|
+
const { popups: t } = be();
|
|
2008
|
+
return t.length === 0 ? null : /* @__PURE__ */ e(K, { children: t.map((r) => {
|
|
1781
2009
|
if (r.isLocal || r.popupCode.startsWith("CORE_"))
|
|
1782
2010
|
return null;
|
|
1783
|
-
const o = r.config || {},
|
|
1784
|
-
key: c.btnId || `btn_${
|
|
2011
|
+
const o = r.config || {}, i = o.width || r.width || 800, a = o.height || r.height || 600, b = o.title || r.popupTitle, l = r.buttonList?.map((c, v) => ({
|
|
2012
|
+
key: c.btnId || `btn_${v}`,
|
|
1785
2013
|
text: c.btnNm,
|
|
1786
2014
|
type: c.btnId === "CLOSE" ? "default" : "primary",
|
|
1787
2015
|
disabled: c.enblYn !== "Y",
|
|
@@ -1791,38 +2019,38 @@ const Ut = ({
|
|
|
1791
2019
|
popupId: r.popupId,
|
|
1792
2020
|
popupCode: r.popupCode,
|
|
1793
2021
|
title: b,
|
|
1794
|
-
width:
|
|
2022
|
+
width: i,
|
|
1795
2023
|
height: a,
|
|
1796
2024
|
buttons: l
|
|
1797
|
-
}), /* @__PURE__ */ e(
|
|
2025
|
+
}), /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(tn, { popup: r, modules: n }) }, r.popupId) }, `sbp-${r.popupId}`);
|
|
1798
2026
|
}) });
|
|
1799
|
-
},
|
|
1800
|
-
const { popups: n, closePopup: t } =
|
|
1801
|
-
return /* @__PURE__ */ e(
|
|
2027
|
+
}, Te = () => {
|
|
2028
|
+
const { popups: n, closePopup: t } = be();
|
|
2029
|
+
return /* @__PURE__ */ e(K, { children: n.map((r) => {
|
|
1802
2030
|
if (!(r.isLocal || r.popupCode.startsWith("CORE_"))) return null;
|
|
1803
|
-
const o =
|
|
2031
|
+
const o = Dt[r.popupCode];
|
|
1804
2032
|
if (!o) return null;
|
|
1805
|
-
const
|
|
1806
|
-
return /* @__PURE__ */ e(
|
|
2033
|
+
const i = o.component;
|
|
2034
|
+
return /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ e(se, { fallback: null, children: /* @__PURE__ */ e(i, { popup: r, onClose: () => t(r.popupId) }) }, r.popupId) }, `sbp-${r.popupId}`);
|
|
1807
2035
|
}) });
|
|
1808
|
-
},
|
|
2036
|
+
}, rn = (n) => ({
|
|
1809
2037
|
position: "absolute",
|
|
1810
2038
|
inset: 0,
|
|
1811
2039
|
visibility: n ? "visible" : "hidden",
|
|
1812
2040
|
opacity: n ? 1 : 0,
|
|
1813
2041
|
transition: "opacity 0.2s ease-in-out",
|
|
1814
2042
|
pointerEvents: n ? "auto" : "none"
|
|
1815
|
-
}),
|
|
1816
|
-
const { lock: t } =
|
|
1817
|
-
return
|
|
2043
|
+
}), on = ({ once: n = !0 }) => {
|
|
2044
|
+
const { lock: t } = Oe(), r = J(!1);
|
|
2045
|
+
return D(() => {
|
|
1818
2046
|
n && r.current || (r.current = !0, t());
|
|
1819
2047
|
}, [n, t]), null;
|
|
1820
|
-
},
|
|
1821
|
-
const a =
|
|
1822
|
-
a.current =
|
|
1823
|
-
}, []),
|
|
1824
|
-
return /* @__PURE__ */ e("div", { ref: c, style:
|
|
1825
|
-
|
|
2048
|
+
}, sn = ({ isActive: n, flagged: t, tabKey: r, onUnlock: o, children: i }) => {
|
|
2049
|
+
const a = J(null), [b, l] = A(!1), c = R((m) => {
|
|
2050
|
+
a.current = m, l(!!m);
|
|
2051
|
+
}, []), v = rn(n);
|
|
2052
|
+
return /* @__PURE__ */ e("div", { ref: c, style: v, children: b ? /* @__PURE__ */ C(
|
|
2053
|
+
Be,
|
|
1826
2054
|
{
|
|
1827
2055
|
idleMs: Number.POSITIVE_INFINITY,
|
|
1828
2056
|
persistLocked: !1,
|
|
@@ -1832,12 +2060,12 @@ const Ut = ({
|
|
|
1832
2060
|
overlayId: `tab-overlay-${r}`,
|
|
1833
2061
|
onUnlock: async () => (o(), !0),
|
|
1834
2062
|
children: [
|
|
1835
|
-
n && t ? /* @__PURE__ */ e(
|
|
1836
|
-
|
|
2063
|
+
n && t ? /* @__PURE__ */ e(on, { once: !0 }) : null,
|
|
2064
|
+
i
|
|
1837
2065
|
]
|
|
1838
2066
|
}
|
|
1839
|
-
) :
|
|
1840
|
-
},
|
|
2067
|
+
) : i });
|
|
2068
|
+
}, xn = ({
|
|
1841
2069
|
config: n = {},
|
|
1842
2070
|
modules: t = {
|
|
1843
2071
|
view: {
|
|
@@ -1848,37 +2076,42 @@ const Ut = ({
|
|
|
1848
2076
|
}
|
|
1849
2077
|
}
|
|
1850
2078
|
}) => {
|
|
1851
|
-
const r =
|
|
2079
|
+
const r = J(
|
|
1852
2080
|
/* @__PURE__ */ new Map()
|
|
1853
2081
|
), {
|
|
1854
2082
|
tabs: o,
|
|
1855
|
-
tabParams:
|
|
2083
|
+
tabParams: i,
|
|
1856
2084
|
activeMenuId: a,
|
|
1857
2085
|
tabProtectFlag: b,
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
2086
|
+
refreshTabKey: l,
|
|
2087
|
+
clearProtectFlagForKey: c
|
|
2088
|
+
} = O(), { enableProtectWrapper: v } = Ne(), m = R(
|
|
2089
|
+
(d) => {
|
|
2090
|
+
const h = r.current.get(d.key);
|
|
2091
|
+
if (h) return h;
|
|
2092
|
+
const p = d.gubun === "M" ? `${t.view.path}${d.menuItem?.scrnPath}.tsx` : `${t.view.path}${d.componentItem?.scrnPath}.tsx`;
|
|
2093
|
+
let N = t.view?.glob?.[p];
|
|
2094
|
+
if (!N && typeof import.meta < "u" && typeof import.meta.glob == "function" && (N = (/* @__PURE__ */ Object.assign({}))[p]), N) {
|
|
2095
|
+
const y = W(
|
|
2096
|
+
N
|
|
1868
2097
|
);
|
|
1869
|
-
return r.current.set(
|
|
2098
|
+
return r.current.set(d.key, y), y;
|
|
1870
2099
|
}
|
|
1871
2100
|
return null;
|
|
1872
2101
|
},
|
|
1873
2102
|
[t.view?.glob]
|
|
1874
2103
|
);
|
|
1875
|
-
return
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
2104
|
+
return D(() => {
|
|
2105
|
+
Object.keys(l).forEach((d) => {
|
|
2106
|
+
r.current.delete(d);
|
|
2107
|
+
});
|
|
2108
|
+
}, [l]), /* @__PURE__ */ C(Z, { className: "main-layout", children: [
|
|
2109
|
+
/* @__PURE__ */ e(Se, { config: n?.header }),
|
|
2110
|
+
/* @__PURE__ */ C(Z, { children: [
|
|
2111
|
+
/* @__PURE__ */ e(Zt, { config: n?.sidebar }),
|
|
1879
2112
|
/* @__PURE__ */ C("div", { className: "content-container", children: [
|
|
1880
|
-
/* @__PURE__ */ e(
|
|
1881
|
-
/* @__PURE__ */ C(
|
|
2113
|
+
/* @__PURE__ */ e(Ut, { config: n?.menuTab }),
|
|
2114
|
+
/* @__PURE__ */ C(Pe, { config: n?.content, children: [
|
|
1882
2115
|
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */ C(
|
|
1883
2116
|
"div",
|
|
1884
2117
|
{
|
|
@@ -1888,40 +2121,40 @@ const Ut = ({
|
|
|
1888
2121
|
height: "100%"
|
|
1889
2122
|
},
|
|
1890
2123
|
children: [
|
|
1891
|
-
o.map((
|
|
1892
|
-
const
|
|
1893
|
-
|
|
2124
|
+
o.map((d) => {
|
|
2125
|
+
const h = m(d), p = a === d.key, N = !!b?.[d.key], y = i[d.key] || {}, g = l[d.key], k = g ? `${d.key}-${g}` : d.key, T = /* @__PURE__ */ e(
|
|
2126
|
+
Qt,
|
|
1894
2127
|
{
|
|
1895
|
-
isActive:
|
|
1896
|
-
instance:
|
|
1897
|
-
params:
|
|
2128
|
+
isActive: p,
|
|
2129
|
+
instance: h || void 0,
|
|
2130
|
+
params: y
|
|
1898
2131
|
},
|
|
1899
|
-
|
|
2132
|
+
k
|
|
1900
2133
|
);
|
|
1901
|
-
return /* @__PURE__ */ e(
|
|
1902
|
-
|
|
2134
|
+
return /* @__PURE__ */ e(pe, { children: v ? /* @__PURE__ */ e(
|
|
2135
|
+
sn,
|
|
1903
2136
|
{
|
|
1904
|
-
isActive:
|
|
1905
|
-
flagged:
|
|
1906
|
-
tabKey:
|
|
1907
|
-
onUnlock: () =>
|
|
1908
|
-
children:
|
|
2137
|
+
isActive: p,
|
|
2138
|
+
flagged: N,
|
|
2139
|
+
tabKey: d.key,
|
|
2140
|
+
onUnlock: () => c(d.key),
|
|
2141
|
+
children: T
|
|
1909
2142
|
},
|
|
1910
|
-
|
|
1911
|
-
) :
|
|
2143
|
+
d.key
|
|
2144
|
+
) : T }, `sbp-${d.key}`);
|
|
1912
2145
|
}),
|
|
1913
|
-
(!a || o.length === 0) && /* @__PURE__ */ e(
|
|
2146
|
+
(!a || o.length === 0) && /* @__PURE__ */ e(Jt, {})
|
|
1914
2147
|
]
|
|
1915
2148
|
}
|
|
1916
2149
|
) }),
|
|
1917
|
-
/* @__PURE__ */ e(
|
|
1918
|
-
/* @__PURE__ */ e(
|
|
2150
|
+
/* @__PURE__ */ e(Te, {}),
|
|
2151
|
+
/* @__PURE__ */ e(nn, { modules: t?.popup })
|
|
1919
2152
|
] })
|
|
1920
2153
|
] })
|
|
1921
2154
|
] }),
|
|
1922
|
-
(n?.quickService?.visible ?? !0) && /* @__PURE__ */ e(
|
|
2155
|
+
(n?.quickService?.visible ?? !0) && /* @__PURE__ */ e(Ae, {})
|
|
1923
2156
|
] });
|
|
1924
|
-
},
|
|
2157
|
+
}, an = ({
|
|
1925
2158
|
children: n,
|
|
1926
2159
|
menuGubunCode: t = {
|
|
1927
2160
|
mainMenu: "CMPRGRM",
|
|
@@ -1931,53 +2164,53 @@ const Ut = ({
|
|
|
1931
2164
|
routeMap: r,
|
|
1932
2165
|
routes: o
|
|
1933
2166
|
}) => {
|
|
1934
|
-
const
|
|
1935
|
-
const
|
|
2167
|
+
const i = Re(), a = ge(), { flatMenuList: b, findMenuById: l } = ie(), c = _(() => {
|
|
2168
|
+
const m = i.pathname, d = m.replace(/^\/main/, "") || "/";
|
|
1936
2169
|
if (r) {
|
|
1937
2170
|
const h = Object.keys(r).find(
|
|
1938
|
-
(
|
|
2171
|
+
(N) => r[N] === m
|
|
1939
2172
|
);
|
|
1940
2173
|
if (h)
|
|
1941
2174
|
return l(h);
|
|
1942
|
-
const
|
|
1943
|
-
if (
|
|
1944
|
-
return l(
|
|
2175
|
+
const p = Object.keys(r).find((N) => (r[N].replace(/^\/main/, "") || "/") === d);
|
|
2176
|
+
if (p)
|
|
2177
|
+
return l(p);
|
|
1945
2178
|
}
|
|
1946
2179
|
return b.find(
|
|
1947
|
-
(h) => h.menuGbCd === t.program && h.scrnPath && (h.scrnPath ===
|
|
2180
|
+
(h) => h.menuGbCd === t.program && h.scrnPath && (h.scrnPath === d || h.scrnPath === m || m.endsWith(h.scrnPath) || d === h.scrnPath)
|
|
1948
2181
|
);
|
|
1949
2182
|
}, [
|
|
1950
|
-
|
|
2183
|
+
i.pathname,
|
|
1951
2184
|
b,
|
|
1952
2185
|
t.program,
|
|
1953
2186
|
r,
|
|
1954
2187
|
l
|
|
1955
|
-
]),
|
|
2188
|
+
]), v = _(() => {
|
|
1956
2189
|
if (!c)
|
|
1957
2190
|
return [];
|
|
1958
|
-
const
|
|
1959
|
-
if (!
|
|
2191
|
+
const m = [], d = (p) => {
|
|
2192
|
+
if (!p || !p.menuPrntId || p.menuPrntId === "-")
|
|
1960
2193
|
return [];
|
|
1961
|
-
const
|
|
1962
|
-
return
|
|
2194
|
+
const N = l(p.menuPrntId);
|
|
2195
|
+
return N ? [...d(N), N] : [];
|
|
1963
2196
|
};
|
|
1964
|
-
return
|
|
1965
|
-
if (
|
|
1966
|
-
let
|
|
1967
|
-
if (r &&
|
|
1968
|
-
const
|
|
1969
|
-
(
|
|
2197
|
+
return d(c).forEach((p) => {
|
|
2198
|
+
if (p.menuGbCd === t.mainMenu || p.menuGbCd === t.subMenu) {
|
|
2199
|
+
let N;
|
|
2200
|
+
if (r && p.menuId && (N = r[p.menuId]), !N && o && p.scrnPath) {
|
|
2201
|
+
const y = p.scrnPath.startsWith("/") ? p.scrnPath : `/${p.scrnPath}`, g = Object.keys(o).find(
|
|
2202
|
+
(k) => k === y || k === `/main${y}`
|
|
1970
2203
|
);
|
|
1971
|
-
|
|
2204
|
+
g && (N = g.startsWith("/main") ? g : `/main${g.startsWith("/") ? g : `/${g}`}`);
|
|
1972
2205
|
}
|
|
1973
|
-
|
|
1974
|
-
title:
|
|
1975
|
-
onClick:
|
|
2206
|
+
m.push({
|
|
2207
|
+
title: p.menuNm,
|
|
2208
|
+
onClick: N ? () => a(N) : void 0
|
|
1976
2209
|
});
|
|
1977
2210
|
}
|
|
1978
|
-
}),
|
|
2211
|
+
}), m.push({
|
|
1979
2212
|
title: c.menuNm
|
|
1980
|
-
}),
|
|
2213
|
+
}), m;
|
|
1981
2214
|
}, [c, t, a, l]);
|
|
1982
2215
|
return /* @__PURE__ */ C(
|
|
1983
2216
|
"div",
|
|
@@ -1988,10 +2221,10 @@ const Ut = ({
|
|
|
1988
2221
|
},
|
|
1989
2222
|
children: [
|
|
1990
2223
|
/* @__PURE__ */ e(
|
|
1991
|
-
|
|
2224
|
+
Ye,
|
|
1992
2225
|
{
|
|
1993
2226
|
separator: ">",
|
|
1994
|
-
items:
|
|
2227
|
+
items: v,
|
|
1995
2228
|
style: { marginBottom: "16px" }
|
|
1996
2229
|
}
|
|
1997
2230
|
),
|
|
@@ -1999,30 +2232,30 @@ const Ut = ({
|
|
|
1999
2232
|
]
|
|
2000
2233
|
}
|
|
2001
2234
|
);
|
|
2002
|
-
},
|
|
2003
|
-
const t = n?.header?.menu, r = t?.visible !== !1, o = t?.routes,
|
|
2235
|
+
}, kn = ({ config: n = {} }) => {
|
|
2236
|
+
const t = n?.header?.menu, r = t?.visible !== !1, o = t?.routes, i = _(() => {
|
|
2004
2237
|
if (!o) return;
|
|
2005
|
-
const a = {}, { flatMenuList: b } =
|
|
2238
|
+
const a = {}, { flatMenuList: b } = ie.getState();
|
|
2006
2239
|
return b.forEach((l) => {
|
|
2007
2240
|
if (l.menuGbCd === t?.menuGubunCode?.program && l.scrnPath) {
|
|
2008
|
-
const c = l.scrnPath.startsWith("/") ? l.scrnPath : `/${l.scrnPath}`,
|
|
2009
|
-
const
|
|
2010
|
-
return
|
|
2241
|
+
const c = l.scrnPath.startsWith("/") ? l.scrnPath : `/${l.scrnPath}`, v = Object.keys(o).find((m) => {
|
|
2242
|
+
const d = m === "/" ? "/" : m.startsWith("/") ? m : `/${m}`;
|
|
2243
|
+
return d === c || d === `/main${c}` || c === d.replace(/^\/main/, "");
|
|
2011
2244
|
});
|
|
2012
|
-
if (
|
|
2013
|
-
const
|
|
2014
|
-
a[l.menuId] =
|
|
2245
|
+
if (v) {
|
|
2246
|
+
const m = v === "/" ? "/main" : v.startsWith("/main") ? v : `/main${v.startsWith("/") ? v : `/${v}`}`;
|
|
2247
|
+
a[l.menuId] = m;
|
|
2015
2248
|
}
|
|
2016
2249
|
}
|
|
2017
2250
|
}), a;
|
|
2018
2251
|
}, [o, t?.menuGubunCode?.program]);
|
|
2019
|
-
return /* @__PURE__ */ C(
|
|
2020
|
-
/* @__PURE__ */ e(
|
|
2021
|
-
|
|
2252
|
+
return /* @__PURE__ */ C(Z, { className: "main-layout", children: [
|
|
2253
|
+
/* @__PURE__ */ e(Se, { config: n?.header, children: r && /* @__PURE__ */ e(
|
|
2254
|
+
Xt,
|
|
2022
2255
|
{
|
|
2023
2256
|
menuGubunCode: t?.menuGubunCode,
|
|
2024
2257
|
mode: t?.style?.mode || "horizontal",
|
|
2025
|
-
routeMap:
|
|
2258
|
+
routeMap: i,
|
|
2026
2259
|
style: {
|
|
2027
2260
|
border: "none",
|
|
2028
2261
|
backgroundColor: "transparent",
|
|
@@ -2032,7 +2265,7 @@ const Ut = ({
|
|
|
2032
2265
|
}
|
|
2033
2266
|
}
|
|
2034
2267
|
) }),
|
|
2035
|
-
/* @__PURE__ */ e("div", { className: "content-container", children: /* @__PURE__ */ C(
|
|
2268
|
+
/* @__PURE__ */ e("div", { className: "content-container", children: /* @__PURE__ */ C(Pe, { config: n?.content, children: [
|
|
2036
2269
|
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */ e(
|
|
2037
2270
|
"div",
|
|
2038
2271
|
{
|
|
@@ -2041,17 +2274,17 @@ const Ut = ({
|
|
|
2041
2274
|
width: "100%",
|
|
2042
2275
|
height: "100%"
|
|
2043
2276
|
},
|
|
2044
|
-
children: /* @__PURE__ */ e(
|
|
2277
|
+
children: /* @__PURE__ */ e(se, { fallback: /* @__PURE__ */ e("div", { children: "Loading..." }), children: /* @__PURE__ */ e(xe, { children: Object.entries(o || {}).map(([a, b]) => {
|
|
2045
2278
|
const l = a === "/" ? "" : a.replace(/^\/main/, "").replace(/^\//, "") || "";
|
|
2046
2279
|
return /* @__PURE__ */ e(
|
|
2047
|
-
|
|
2280
|
+
te,
|
|
2048
2281
|
{
|
|
2049
2282
|
path: l,
|
|
2050
2283
|
element: /* @__PURE__ */ e(
|
|
2051
|
-
|
|
2284
|
+
an,
|
|
2052
2285
|
{
|
|
2053
2286
|
menuGubunCode: t?.menuGubunCode,
|
|
2054
|
-
routeMap:
|
|
2287
|
+
routeMap: i,
|
|
2055
2288
|
routes: o,
|
|
2056
2289
|
children: /* @__PURE__ */ e(b, {})
|
|
2057
2290
|
}
|
|
@@ -2062,26 +2295,26 @@ const Ut = ({
|
|
|
2062
2295
|
}) }) })
|
|
2063
2296
|
}
|
|
2064
2297
|
) }),
|
|
2065
|
-
/* @__PURE__ */ e(
|
|
2298
|
+
/* @__PURE__ */ e(Te, {})
|
|
2066
2299
|
] }) })
|
|
2067
2300
|
] });
|
|
2068
2301
|
};
|
|
2069
|
-
function
|
|
2302
|
+
function In({
|
|
2070
2303
|
config: n,
|
|
2071
2304
|
ui: t,
|
|
2072
2305
|
navigate: r
|
|
2073
2306
|
}) {
|
|
2074
|
-
const { loading: o, capsOn:
|
|
2075
|
-
return
|
|
2076
|
-
|
|
2077
|
-
}, []), /* @__PURE__ */ e(
|
|
2307
|
+
const { loading: o, capsOn: i, prefills: a, onKeyDown: b, doLogin: l } = tt(n), c = (v) => l(v, r);
|
|
2308
|
+
return D(() => {
|
|
2309
|
+
nt.getState().fetchSystemMap();
|
|
2310
|
+
}, []), /* @__PURE__ */ e(K, { children: t({ onSubmit: c, loading: o, capsOn: i, onKeyDown: b, prefills: a }) });
|
|
2078
2311
|
}
|
|
2079
|
-
function
|
|
2312
|
+
function Nn({
|
|
2080
2313
|
onSubmit: n,
|
|
2081
2314
|
loading: t,
|
|
2082
2315
|
capsOn: r,
|
|
2083
2316
|
onKeyDown: o,
|
|
2084
|
-
prefills:
|
|
2317
|
+
prefills: i,
|
|
2085
2318
|
labels: a = {
|
|
2086
2319
|
id: "ID 혹은 사번",
|
|
2087
2320
|
pw: "비밀번호",
|
|
@@ -2091,15 +2324,15 @@ function xn({
|
|
|
2091
2324
|
header: b,
|
|
2092
2325
|
footer: l
|
|
2093
2326
|
}) {
|
|
2094
|
-
const [c] =
|
|
2095
|
-
return
|
|
2096
|
-
|
|
2097
|
-
}, [
|
|
2327
|
+
const [c] = V.useForm();
|
|
2328
|
+
return D(() => {
|
|
2329
|
+
i && (i.id || i.pswr) && c.setFieldsValue({ id: i.id, pswr: i.pswr });
|
|
2330
|
+
}, [i, c]), /* @__PURE__ */ e("div", { className: "login-main", children: /* @__PURE__ */ C("div", { className: "login_wrap", children: [
|
|
2098
2331
|
b || /* @__PURE__ */ e("div", { className: "logo_box" }),
|
|
2099
2332
|
/* @__PURE__ */ e("div", { className: "login_title" }),
|
|
2100
|
-
/* @__PURE__ */ e(
|
|
2333
|
+
/* @__PURE__ */ e(V, { form: c, onFinish: n, className: "login-form", children: /* @__PURE__ */ C(ne, { vertical: !0, children: [
|
|
2101
2334
|
/* @__PURE__ */ e(
|
|
2102
|
-
|
|
2335
|
+
V.Item,
|
|
2103
2336
|
{
|
|
2104
2337
|
name: "id",
|
|
2105
2338
|
rules: [
|
|
@@ -2109,16 +2342,16 @@ function xn({
|
|
|
2109
2342
|
message: "아이디는 공백이 들어갈 수 없습니다."
|
|
2110
2343
|
}
|
|
2111
2344
|
],
|
|
2112
|
-
children: /* @__PURE__ */ e(
|
|
2345
|
+
children: /* @__PURE__ */ e(ue, { allowClear: !0, placeholder: a.id, onKeyDown: o })
|
|
2113
2346
|
}
|
|
2114
2347
|
),
|
|
2115
2348
|
/* @__PURE__ */ e(
|
|
2116
|
-
|
|
2349
|
+
V.Item,
|
|
2117
2350
|
{
|
|
2118
2351
|
name: "pswr",
|
|
2119
2352
|
rules: [{ required: !0, message: "비밀번호를 입력하세요." }],
|
|
2120
2353
|
children: /* @__PURE__ */ e(
|
|
2121
|
-
|
|
2354
|
+
ue.Password,
|
|
2122
2355
|
{
|
|
2123
2356
|
allowClear: !0,
|
|
2124
2357
|
placeholder: a.pw,
|
|
@@ -2127,29 +2360,29 @@ function xn({
|
|
|
2127
2360
|
)
|
|
2128
2361
|
}
|
|
2129
2362
|
),
|
|
2130
|
-
/* @__PURE__ */ e(
|
|
2363
|
+
/* @__PURE__ */ e(V.Item, { name: "remember", valuePropName: "checked", children: /* @__PURE__ */ e(qe, { children: a.remember }) }),
|
|
2131
2364
|
/* @__PURE__ */ e("div", { className: r ? "caps-lock caps-lock-on" : "caps-lock", children: r ? "Caps Lock On" : "Caps Lock Off" }),
|
|
2132
|
-
/* @__PURE__ */ e(
|
|
2365
|
+
/* @__PURE__ */ e(V.Item, { children: /* @__PURE__ */ e(B, { type: "primary", htmlType: "submit", loading: t, block: !0, children: a.login }) })
|
|
2133
2366
|
] }) }),
|
|
2134
2367
|
l
|
|
2135
2368
|
] }) });
|
|
2136
2369
|
}
|
|
2137
2370
|
export {
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2371
|
+
wn as A,
|
|
2372
|
+
xn as B,
|
|
2373
|
+
Qt as C,
|
|
2374
|
+
Nn as D,
|
|
2375
|
+
Xt as H,
|
|
2376
|
+
vn as L,
|
|
2377
|
+
nn as P,
|
|
2378
|
+
kn as a,
|
|
2379
|
+
In as b,
|
|
2380
|
+
Jt as c,
|
|
2381
|
+
Pe as d,
|
|
2382
|
+
Se as e,
|
|
2383
|
+
Ut as f,
|
|
2384
|
+
Zt as g,
|
|
2385
|
+
an as h,
|
|
2386
|
+
sn as i,
|
|
2387
|
+
Dt as l
|
|
2155
2388
|
};
|