@bwg-ui/core 1.2.31 → 1.2.34
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-CmRmK_7Z.cjs +1 -0
- package/dist/chunks/{CMSearchIntfGwP01-CIf-fHXy.js → CMSearchIntfGwP01-DmVxvizb.js} +108 -94
- package/dist/chunks/MenuReport-D3V5JPQR.cjs +1 -0
- package/dist/chunks/{MenuReport-GeXRkcDD.js → MenuReport-Dsh_obqp.js} +26 -26
- package/dist/chunks/{common-components-DNos8aEG.js → common-components-BJrGciHA.js} +14143 -13553
- package/dist/chunks/common-components-BpsIQZ0O.cjs +1057 -0
- package/dist/chunks/{layout-components-C4ehuALr.js → layout-components-DuSrPWSr.js} +495 -474
- package/dist/chunks/layout-components-fFjip5fv.cjs +35 -0
- package/dist/components/common/BwgPopup.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/BwgMaskedPicker.d.ts.map +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +712 -644
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +1 -1
- package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/popup/CMSearchIntfGwP01.d.ts.map +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 +1 -1
- package/dist/stores/index.js +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/styles/layout.css +58 -0
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/CMSearchIntfGwP01-C4Kg1iWo.cjs +0 -1
- package/dist/chunks/MenuReport-DQS5SAmi.cjs +0 -1
- package/dist/chunks/common-components-CyqUT5Vj.cjs +0 -1109
- package/dist/chunks/layout-components-USIA9TVn.cjs +0 -35
- package/dist/components/common/BwgDraggable.d.ts +0 -25
- package/dist/components/common/BwgDraggable.d.ts.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ServiceCodeProvider 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 { getCookie as
|
|
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
|
-
),
|
|
23
|
-
() => import("./common-components-
|
|
24
|
-
),
|
|
25
|
-
() => import("./common-components-
|
|
26
|
-
),
|
|
27
|
-
() => import("./CMSearchIntfGwP01-
|
|
28
|
-
),
|
|
1
|
+
import { jsxs as m, jsx as e, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { ServiceCodeProvider as ye, CommonCodeProvider as Ce, SearchBoxProvider as re, ScreenProtectProvider as ve, useLock as we } from "../provider/index.js";
|
|
3
|
+
import { Routes as xe, Route as Q, Navigate as ke, useNavigate as Ne } from "react-router-dom";
|
|
4
|
+
import { G as Ie, B as Se, Q as Te } from "./common-components-BJrGciHA.js";
|
|
5
|
+
import { Spin as Y, Layout as j, ColorPicker as Le, Button as I, Divider as Pe, Slider as X, Popover as Me, Avatar as Be, Tabs as Ee, Tooltip as W, AutoComplete as De, Input as te, Segmented as Oe, ConfigProvider as Re, Menu as ie, Result as pe, Space as ze, Typography as Fe, Empty as J, Form as H, Flex as Ae, Checkbox as _e } from "antd";
|
|
6
|
+
import { lazy as R, useEffect as B, useState as D, useRef as K, useMemo as Z, useCallback as A, createElement as he, memo as oe, cloneElement as $e, Component as Ge, Suspense as se } from "react";
|
|
7
|
+
import { useLogout as He, useUserStore as Ve, useMenuViewStore as O, useMenuModelStore as We, useFavoriteStore as je, usePopupStore as ae, useLogin as Ke, useSystemStore as Ue } from "../stores/index.js";
|
|
8
|
+
import * as le from "@ant-design/icons";
|
|
9
|
+
import { UserOutlined as Ze, StepBackwardOutlined as Ye, LeftOutlined as qe, RightOutlined as Qe, StepForwardOutlined as Xe, CloseOutlined as ge, MenuUnfoldOutlined as Je, MenuFoldOutlined as et, ExclamationCircleOutlined as tt, WarningOutlined as nt, StarOutlined as rt, FolderOpenOutlined as ot, ReloadOutlined as fe, ExclamationCircleTwoTone as st } from "@ant-design/icons";
|
|
10
|
+
import { getCookie as at, getTodateString as ce, setCookie as it, THEME_COOKIE_NAME as de, getUserId as ue } from "../utils/index.js";
|
|
11
|
+
import { useSensors as lt, useSensor as ct, PointerSensor as dt, DndContext as ut, closestCenter as mt } from "@dnd-kit/core";
|
|
12
|
+
import { restrictToHorizontalAxis as pt } from "@dnd-kit/modifiers";
|
|
13
|
+
import { arrayMove as ht, SortableContext as gt, horizontalListSortingStrategy as ft, useSortable as bt } from "@dnd-kit/sortable";
|
|
14
|
+
const yt = R(
|
|
15
|
+
() => import("./MenuReport-Dsh_obqp.js")
|
|
16
|
+
), Ct = R(
|
|
17
|
+
() => import("./common-components-BJrGciHA.js").then((r) => r.$)
|
|
18
|
+
), vt = R(
|
|
19
|
+
() => import("./common-components-BJrGciHA.js").then((r) => r.a0)
|
|
20
|
+
), wt = R(
|
|
21
|
+
() => import("./common-components-BJrGciHA.js").then((r) => r.a1)
|
|
22
|
+
), xt = R(
|
|
23
|
+
() => import("./common-components-BJrGciHA.js").then((r) => r.a2)
|
|
24
|
+
), kt = R(
|
|
25
|
+
() => import("./common-components-BJrGciHA.js").then((r) => r.a3)
|
|
26
|
+
), Nt = R(
|
|
27
|
+
() => import("./CMSearchIntfGwP01-DmVxvizb.js")
|
|
28
|
+
), It = {
|
|
29
29
|
// 게시판/문의
|
|
30
30
|
CORE_REPORT: {
|
|
31
|
-
component:
|
|
31
|
+
component: yt,
|
|
32
32
|
defaultConfig: {
|
|
33
33
|
title: "게시판/문의",
|
|
34
34
|
width: 1200,
|
|
@@ -37,7 +37,7 @@ const gt = E(
|
|
|
37
37
|
},
|
|
38
38
|
// 조직/부서 검색류
|
|
39
39
|
CORE_DEPARTMENT_01: {
|
|
40
|
-
component:
|
|
40
|
+
component: Ct,
|
|
41
41
|
defaultConfig: {
|
|
42
42
|
title: "부서 검색",
|
|
43
43
|
width: 620,
|
|
@@ -45,7 +45,7 @@ const gt = E(
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
CORE_DEPARTMENT_02: {
|
|
48
|
-
component:
|
|
48
|
+
component: vt,
|
|
49
49
|
defaultConfig: {
|
|
50
50
|
title: "부서 검색",
|
|
51
51
|
width: 620,
|
|
@@ -53,7 +53,7 @@ const gt = E(
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
CORE_ORGANIZATION_01: {
|
|
56
|
-
component:
|
|
56
|
+
component: wt,
|
|
57
57
|
defaultConfig: {
|
|
58
58
|
title: "조직 검색",
|
|
59
59
|
width: 620,
|
|
@@ -61,7 +61,7 @@ const gt = E(
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
CORE_ORGANIZATION_02: {
|
|
64
|
-
component:
|
|
64
|
+
component: xt,
|
|
65
65
|
defaultConfig: {
|
|
66
66
|
title: "조직 검색",
|
|
67
67
|
width: 1e3,
|
|
@@ -69,7 +69,7 @@ const gt = E(
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
CORE_PRGR_02: {
|
|
72
|
-
component:
|
|
72
|
+
component: kt,
|
|
73
73
|
defaultConfig: {
|
|
74
74
|
title: "프로그램 검색",
|
|
75
75
|
width: 700,
|
|
@@ -77,18 +77,18 @@ const gt = E(
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
CORE_GW_DRAFTS: {
|
|
80
|
-
component:
|
|
80
|
+
component: Nt,
|
|
81
81
|
defaultConfig: {
|
|
82
82
|
title: "기안 목록",
|
|
83
83
|
width: 1e3,
|
|
84
84
|
height: 700
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
},
|
|
88
|
-
function
|
|
89
|
-
if (typeof document > "u" || document.getElementById(
|
|
87
|
+
}, me = "bwg-dot-line-wave-v4";
|
|
88
|
+
function St() {
|
|
89
|
+
if (typeof document > "u" || document.getElementById(me)) return;
|
|
90
90
|
const r = document.createElement("style");
|
|
91
|
-
r.id =
|
|
91
|
+
r.id = me, r.textContent = `
|
|
92
92
|
.bwg-dotline {
|
|
93
93
|
display: inline-flex;
|
|
94
94
|
align-items: center;
|
|
@@ -124,53 +124,53 @@ function kt() {
|
|
|
124
124
|
}
|
|
125
125
|
`, document.head.appendChild(r);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const Tt = ({
|
|
128
128
|
colors: r = ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
129
129
|
count: t,
|
|
130
130
|
size: n = 12,
|
|
131
131
|
gap: s = 10,
|
|
132
132
|
amp: o = 16,
|
|
133
|
-
speedMs:
|
|
133
|
+
speedMs: l = 900,
|
|
134
134
|
direction: h = "ltr",
|
|
135
|
-
phase:
|
|
135
|
+
phase: p = 0.7
|
|
136
136
|
}) => {
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
B(() => {
|
|
138
|
+
St();
|
|
139
139
|
}, []);
|
|
140
|
-
const
|
|
140
|
+
const u = t ?? r.length, i = Array.from({ length: u }), y = {
|
|
141
141
|
"--bwg-size": `${n}px`,
|
|
142
142
|
"--bwg-gap": `${s}px`,
|
|
143
143
|
"--bwg-amp": `${o}px`,
|
|
144
|
-
"--bwg-speed": `${
|
|
145
|
-
}, w =
|
|
144
|
+
"--bwg-speed": `${l}ms`
|
|
145
|
+
}, w = l / u * p;
|
|
146
146
|
return /* @__PURE__ */ e(
|
|
147
147
|
"span",
|
|
148
148
|
{
|
|
149
149
|
className: "bwg-dotline",
|
|
150
150
|
role: "img",
|
|
151
151
|
"aria-label": "loading",
|
|
152
|
-
style:
|
|
153
|
-
children:
|
|
152
|
+
style: y,
|
|
153
|
+
children: i.map((g, C) => /* @__PURE__ */ e(
|
|
154
154
|
"span",
|
|
155
155
|
{
|
|
156
156
|
className: "dot",
|
|
157
157
|
style: {
|
|
158
158
|
backgroundColor: r[C % r.length],
|
|
159
|
-
animationDelay: h === "ltr" ? `${C * w}ms` : `${(
|
|
159
|
+
animationDelay: h === "ltr" ? `${C * w}ms` : `${(u - 1 - C) * w}ms`
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
C
|
|
163
163
|
))
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
|
-
},
|
|
166
|
+
}, dn = ({
|
|
167
167
|
spin: r = null,
|
|
168
168
|
text: t = "인증중...",
|
|
169
169
|
dimStyle: n = "dark"
|
|
170
170
|
}) => {
|
|
171
171
|
if (!(r ?? !0)) return null;
|
|
172
|
-
const
|
|
173
|
-
return /* @__PURE__ */
|
|
172
|
+
const l = n === "dark";
|
|
173
|
+
return /* @__PURE__ */ m(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
176
|
className: "loading-overlay",
|
|
@@ -186,8 +186,8 @@ const Nt = ({
|
|
|
186
186
|
alignItems: "center",
|
|
187
187
|
gap: 8,
|
|
188
188
|
padding: "8px 12px",
|
|
189
|
-
background:
|
|
190
|
-
color:
|
|
189
|
+
background: l ? "rgba(0, 0, 0, 0.6)" : "rgba(255, 255, 255, 0.85)",
|
|
190
|
+
color: l ? "#fff" : "#333",
|
|
191
191
|
backdropFilter: "blur(4px)",
|
|
192
192
|
zIndex: 1e4
|
|
193
193
|
},
|
|
@@ -196,10 +196,10 @@ const Nt = ({
|
|
|
196
196
|
role: "status",
|
|
197
197
|
children: [
|
|
198
198
|
/* @__PURE__ */ e(
|
|
199
|
-
|
|
199
|
+
Y,
|
|
200
200
|
{
|
|
201
201
|
indicator: /* @__PURE__ */ e(
|
|
202
|
-
|
|
202
|
+
Tt,
|
|
203
203
|
{
|
|
204
204
|
colors: ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
205
205
|
size: 12,
|
|
@@ -216,14 +216,14 @@ const Nt = ({
|
|
|
216
216
|
]
|
|
217
217
|
}
|
|
218
218
|
);
|
|
219
|
-
},
|
|
220
|
-
let o = /* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */ e(
|
|
222
|
-
/* @__PURE__ */ e(
|
|
223
|
-
/* @__PURE__ */ e(
|
|
219
|
+
}, un = ({ routes: r, useCommonProvider: t = !0, useServiceProvider: n = !0 }) => {
|
|
220
|
+
let o = /* @__PURE__ */ m(xe, { children: [
|
|
221
|
+
/* @__PURE__ */ e(Q, { path: "/", element: /* @__PURE__ */ e(ke, { to: "/login" }) }),
|
|
222
|
+
/* @__PURE__ */ e(Q, { path: "/login", element: r.login }),
|
|
223
|
+
/* @__PURE__ */ e(Q, { path: "/main", element: r.main })
|
|
224
224
|
] });
|
|
225
|
-
return n && (o = /* @__PURE__ */ e(
|
|
226
|
-
}, { Content:
|
|
225
|
+
return n && (o = /* @__PURE__ */ e(ye, { children: o })), t && (o = /* @__PURE__ */ e(Ce, { children: o })), /* @__PURE__ */ e(Ie, { children: o });
|
|
226
|
+
}, { Content: Lt } = j, Pt = ({
|
|
227
227
|
config: r = {},
|
|
228
228
|
children: t
|
|
229
229
|
}) => {
|
|
@@ -239,11 +239,11 @@ const Nt = ({
|
|
|
239
239
|
...r
|
|
240
240
|
};
|
|
241
241
|
return /* @__PURE__ */ e(
|
|
242
|
-
|
|
242
|
+
Lt,
|
|
243
243
|
{
|
|
244
244
|
className: n.wrapper.className,
|
|
245
245
|
style: n.wrapper.style,
|
|
246
|
-
children: /* @__PURE__ */ e(
|
|
246
|
+
children: /* @__PURE__ */ e(Se, { children: /* @__PURE__ */ e(
|
|
247
247
|
"div",
|
|
248
248
|
{
|
|
249
249
|
className: n.body.className,
|
|
@@ -253,7 +253,7 @@ const Nt = ({
|
|
|
253
253
|
) })
|
|
254
254
|
}
|
|
255
255
|
);
|
|
256
|
-
},
|
|
256
|
+
}, Mt = "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", Bt = "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", Et = "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: Dt } = j, F = {
|
|
257
257
|
light: {
|
|
258
258
|
headerBg: "#ffffff",
|
|
259
259
|
headerText: "#000000",
|
|
@@ -306,11 +306,11 @@ const Nt = ({
|
|
|
306
306
|
buttonDefaultBorder: "#dddddd",
|
|
307
307
|
buttonPermissionBorder: "#bdb1ff"
|
|
308
308
|
}
|
|
309
|
-
},
|
|
309
|
+
}, ee = {
|
|
310
310
|
0: "작게",
|
|
311
311
|
1: "보통",
|
|
312
312
|
2: "크게"
|
|
313
|
-
},
|
|
313
|
+
}, Ot = ({ config: r = {} }) => {
|
|
314
314
|
const t = {
|
|
315
315
|
gap: 14,
|
|
316
316
|
minWidth: 200,
|
|
@@ -343,86 +343,86 @@ const Nt = ({
|
|
|
343
343
|
...r.logo
|
|
344
344
|
},
|
|
345
345
|
right: t
|
|
346
|
-
}, s =
|
|
347
|
-
componentSize:
|
|
348
|
-
setComponentSize:
|
|
349
|
-
gridSize:
|
|
346
|
+
}, s = Ne(), [o, l] = D("modern"), h = K(null), p = He(), {
|
|
347
|
+
componentSize: u,
|
|
348
|
+
setComponentSize: i,
|
|
349
|
+
gridSize: y,
|
|
350
350
|
setGridSize: w,
|
|
351
|
-
spacingSize:
|
|
351
|
+
spacingSize: g,
|
|
352
352
|
setSpacingSize: C
|
|
353
|
-
} =
|
|
353
|
+
} = Ve(), x = (c, v) => {
|
|
354
354
|
try {
|
|
355
|
-
if (!/^[a-zA-Z0-9-]+$/.test(
|
|
356
|
-
document.documentElement.style.setProperty(
|
|
355
|
+
if (!/^[a-zA-Z0-9-]+$/.test(c) || !/^[#a-zA-Z0-9()\s,.-]+$/.test(v)) return;
|
|
356
|
+
document.documentElement.style.setProperty(c, v);
|
|
357
357
|
} catch (d) {
|
|
358
358
|
console.error("CSS variable setting failed:", d);
|
|
359
359
|
}
|
|
360
|
-
},
|
|
361
|
-
if (!
|
|
362
|
-
|
|
363
|
-
const v = { ...
|
|
360
|
+
}, T = (c) => {
|
|
361
|
+
if (!F[c]) return;
|
|
362
|
+
l(c);
|
|
363
|
+
const v = { ...F[c] };
|
|
364
364
|
x("--header-bg", v.headerBg), x("--header-text", v.headerText), x("--sidebar-bg", v.sidebarBg), x("--sidebar-text", v.sidebarText), x("--button-primary", v.buttonPrimary), x("--button-primary-hover", v.buttonPrimaryHover), x("--button-primary-active", v.buttonPrimaryActive), x("--button-default", v.buttonDefault), x("--button-default-hover", v.buttonDefaultHover), x("--button-default-border", v.buttonDefaultBorder), x(
|
|
365
365
|
"--button-permission-border",
|
|
366
366
|
v.buttonPermissionBorder
|
|
367
|
-
), h.current && h.current.setAttribute("data-theme",
|
|
367
|
+
), h.current && h.current.setAttribute("data-theme", c), document.documentElement.setAttribute("data-theme", c), it(de, c, 30);
|
|
368
368
|
};
|
|
369
|
-
|
|
370
|
-
const
|
|
371
|
-
|
|
369
|
+
B(() => {
|
|
370
|
+
const c = at(de);
|
|
371
|
+
c && F[c] ? T(c) : T("modern");
|
|
372
372
|
}, []);
|
|
373
|
-
const
|
|
374
|
-
|
|
373
|
+
const _ = () => ({ ...F[o] }).headerBg, z = () => {
|
|
374
|
+
p(), s("/login");
|
|
375
375
|
};
|
|
376
|
-
|
|
377
|
-
const
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
/* @__PURE__ */ e(
|
|
376
|
+
ce ? ce("HH:mm:ss") : (/* @__PURE__ */ new Date()).toLocaleTimeString("ko-KR");
|
|
377
|
+
const $ = /* @__PURE__ */ m("div", { style: { padding: "8px 0" }, children: [
|
|
378
|
+
/* @__PURE__ */ m("div", { style: { marginBottom: "12px" }, children: [
|
|
379
|
+
/* @__PURE__ */ e(Le, { value: _(), disabled: !0, size: "small" }),
|
|
380
380
|
/* @__PURE__ */ e("span", { style: { marginLeft: "8px", fontSize: "12px" }, children: "현재 테마 색상" })
|
|
381
381
|
] }),
|
|
382
|
-
/* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
|
|
383
383
|
/* @__PURE__ */ e(
|
|
384
|
-
|
|
384
|
+
I,
|
|
385
385
|
{
|
|
386
386
|
type: o === "modern" ? "primary" : "default",
|
|
387
387
|
size: "small",
|
|
388
|
-
onClick: () =>
|
|
388
|
+
onClick: () => T("modern"),
|
|
389
389
|
style: {
|
|
390
390
|
textAlign: "left",
|
|
391
|
-
backgroundColor: o === "modern" ?
|
|
392
|
-
color: o === "modern" ?
|
|
391
|
+
backgroundColor: o === "modern" ? F.modern.headerBg : void 0,
|
|
392
|
+
color: o === "modern" ? F.modern.headerText : void 0
|
|
393
393
|
},
|
|
394
394
|
children: "모던"
|
|
395
395
|
},
|
|
396
396
|
"modern"
|
|
397
397
|
),
|
|
398
|
-
Object.entries(
|
|
399
|
-
|
|
398
|
+
Object.entries(F).filter(([c]) => c !== "modern").map(([c, v]) => /* @__PURE__ */ e(
|
|
399
|
+
I,
|
|
400
400
|
{
|
|
401
|
-
type: o ===
|
|
401
|
+
type: o === c ? "primary" : "default",
|
|
402
402
|
size: "small",
|
|
403
|
-
onClick: () =>
|
|
403
|
+
onClick: () => T(c),
|
|
404
404
|
style: {
|
|
405
405
|
textAlign: "left",
|
|
406
|
-
backgroundColor: o ===
|
|
407
|
-
color: o ===
|
|
406
|
+
backgroundColor: o === c ? v.headerBg : void 0,
|
|
407
|
+
color: o === c ? v.headerText : void 0
|
|
408
408
|
},
|
|
409
|
-
children:
|
|
409
|
+
children: c
|
|
410
410
|
},
|
|
411
|
-
|
|
411
|
+
c
|
|
412
412
|
))
|
|
413
413
|
] }),
|
|
414
|
-
/* @__PURE__ */ e(
|
|
415
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
415
|
+
/* @__PURE__ */ m("div", { style: { marginTop: "8px" }, children: [
|
|
416
416
|
/* @__PURE__ */ e("div", { style: { marginBottom: "8px", fontSize: "12px" }, children: "컴포넌트 크기" }),
|
|
417
417
|
/* @__PURE__ */ e(
|
|
418
|
-
|
|
418
|
+
X,
|
|
419
419
|
{
|
|
420
|
-
marks:
|
|
421
|
-
value:
|
|
420
|
+
marks: ee,
|
|
421
|
+
value: u,
|
|
422
422
|
min: 0,
|
|
423
423
|
max: 2,
|
|
424
424
|
step: 1,
|
|
425
|
-
onChange: (
|
|
425
|
+
onChange: (c) => i(c)
|
|
426
426
|
}
|
|
427
427
|
),
|
|
428
428
|
/* @__PURE__ */ e(
|
|
@@ -433,14 +433,14 @@ const Nt = ({
|
|
|
433
433
|
}
|
|
434
434
|
),
|
|
435
435
|
/* @__PURE__ */ e(
|
|
436
|
-
|
|
436
|
+
X,
|
|
437
437
|
{
|
|
438
|
-
marks:
|
|
439
|
-
value:
|
|
438
|
+
marks: ee,
|
|
439
|
+
value: y,
|
|
440
440
|
min: 0,
|
|
441
441
|
max: 2,
|
|
442
442
|
step: 1,
|
|
443
|
-
onChange: (
|
|
443
|
+
onChange: (c) => w(c)
|
|
444
444
|
}
|
|
445
445
|
),
|
|
446
446
|
/* @__PURE__ */ e(
|
|
@@ -451,20 +451,20 @@ const Nt = ({
|
|
|
451
451
|
}
|
|
452
452
|
),
|
|
453
453
|
/* @__PURE__ */ e(
|
|
454
|
-
|
|
454
|
+
X,
|
|
455
455
|
{
|
|
456
|
-
marks:
|
|
457
|
-
value:
|
|
456
|
+
marks: ee,
|
|
457
|
+
value: g,
|
|
458
458
|
min: 0,
|
|
459
459
|
max: 2,
|
|
460
460
|
step: 1,
|
|
461
|
-
onChange: (
|
|
461
|
+
onChange: (c) => C(c)
|
|
462
462
|
}
|
|
463
463
|
)
|
|
464
464
|
] })
|
|
465
465
|
] });
|
|
466
|
-
return /* @__PURE__ */
|
|
467
|
-
|
|
466
|
+
return /* @__PURE__ */ m(
|
|
467
|
+
Dt,
|
|
468
468
|
{
|
|
469
469
|
className: n.wrapper.className,
|
|
470
470
|
style: { ...n.wrapper.style },
|
|
@@ -477,7 +477,7 @@ const Nt = ({
|
|
|
477
477
|
children: n.logo?.items
|
|
478
478
|
}
|
|
479
479
|
) }),
|
|
480
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ m(
|
|
481
481
|
"div",
|
|
482
482
|
{
|
|
483
483
|
className: "header-right",
|
|
@@ -486,29 +486,29 @@ const Nt = ({
|
|
|
486
486
|
minWidth: n.right?.minWidth
|
|
487
487
|
},
|
|
488
488
|
children: [
|
|
489
|
-
n.right?.items?.map((
|
|
489
|
+
n.right?.items?.map((c, v) => /* @__PURE__ */ e("div", { children: c }, v)),
|
|
490
490
|
n.right?.alarm?.visible && /* @__PURE__ */ e(
|
|
491
|
-
|
|
491
|
+
I,
|
|
492
492
|
{
|
|
493
493
|
type: "text",
|
|
494
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
494
|
+
icon: /* @__PURE__ */ e("img", { src: Mt, alt: "알림" }),
|
|
495
495
|
className: "alarm-btn",
|
|
496
496
|
onClick: n.right?.alarm?.onClick
|
|
497
497
|
}
|
|
498
498
|
),
|
|
499
499
|
n.right?.theme?.visible && /* @__PURE__ */ e(
|
|
500
|
-
|
|
500
|
+
Me,
|
|
501
501
|
{
|
|
502
|
-
content:
|
|
502
|
+
content: $,
|
|
503
503
|
title: "테마 설정",
|
|
504
504
|
trigger: "click",
|
|
505
505
|
placement: "bottomRight",
|
|
506
|
-
onOpenChange: (
|
|
506
|
+
onOpenChange: (c) => n.right?.theme?.onOpenChange?.(c),
|
|
507
507
|
children: /* @__PURE__ */ e(
|
|
508
|
-
|
|
508
|
+
I,
|
|
509
509
|
{
|
|
510
510
|
type: "text",
|
|
511
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
511
|
+
icon: /* @__PURE__ */ e("img", { src: Et, alt: "개인설정" }),
|
|
512
512
|
className: "theme-btn",
|
|
513
513
|
onClick: n.right?.theme?.onClick
|
|
514
514
|
}
|
|
@@ -516,18 +516,18 @@ const Nt = ({
|
|
|
516
516
|
}
|
|
517
517
|
),
|
|
518
518
|
n.right?.logout?.visible && /* @__PURE__ */ e(
|
|
519
|
-
|
|
519
|
+
I,
|
|
520
520
|
{
|
|
521
521
|
type: "text",
|
|
522
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
523
|
-
onClick: n.right?.logout?.onClick ||
|
|
522
|
+
icon: /* @__PURE__ */ e("img", { src: Bt, alt: "로그아웃" }),
|
|
523
|
+
onClick: n.right?.logout?.onClick || z,
|
|
524
524
|
className: "logout-btn"
|
|
525
525
|
}
|
|
526
526
|
),
|
|
527
527
|
n.right?.avatar?.visible && /* @__PURE__ */ e(
|
|
528
|
-
|
|
528
|
+
Be,
|
|
529
529
|
{
|
|
530
|
-
icon: /* @__PURE__ */ e(
|
|
530
|
+
icon: /* @__PURE__ */ e(Ze, {}),
|
|
531
531
|
className: "avatar",
|
|
532
532
|
style: {
|
|
533
533
|
width: n.right?.avatar?.width,
|
|
@@ -542,7 +542,7 @@ const Nt = ({
|
|
|
542
542
|
]
|
|
543
543
|
}
|
|
544
544
|
);
|
|
545
|
-
},
|
|
545
|
+
}, ne = /* @__PURE__ */ Object.freeze({
|
|
546
546
|
Translate: {
|
|
547
547
|
toString(r) {
|
|
548
548
|
if (!r)
|
|
@@ -568,7 +568,7 @@ const Nt = ({
|
|
|
568
568
|
Transform: {
|
|
569
569
|
toString(r) {
|
|
570
570
|
if (r)
|
|
571
|
-
return [
|
|
571
|
+
return [ne.Translate.toString(r), ne.Scale.toString(r)].join(" ");
|
|
572
572
|
}
|
|
573
573
|
},
|
|
574
574
|
Transition: {
|
|
@@ -581,91 +581,91 @@ const Nt = ({
|
|
|
581
581
|
return t + " " + n + "ms " + s;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
}),
|
|
584
|
+
}), Rt = oe(
|
|
585
585
|
({ className: r, ...t }) => {
|
|
586
|
-
const n =
|
|
586
|
+
const n = K(null), {
|
|
587
587
|
attributes: s,
|
|
588
588
|
listeners: o,
|
|
589
|
-
transform:
|
|
589
|
+
transform: l,
|
|
590
590
|
transition: h,
|
|
591
|
-
isDragging:
|
|
592
|
-
setNodeRef:
|
|
593
|
-
} =
|
|
594
|
-
|
|
595
|
-
const
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
const C = Math.round(
|
|
599
|
-
|
|
591
|
+
isDragging: p,
|
|
592
|
+
setNodeRef: u
|
|
593
|
+
} = bt({ id: t["data-node-key"] }), [i, y] = D();
|
|
594
|
+
B(() => {
|
|
595
|
+
const g = n.current;
|
|
596
|
+
if (g)
|
|
597
|
+
if (p) {
|
|
598
|
+
const C = Math.round(g.getBoundingClientRect().width);
|
|
599
|
+
y(C);
|
|
600
600
|
} else
|
|
601
|
-
|
|
602
|
-
}, [
|
|
601
|
+
y(void 0);
|
|
602
|
+
}, [p]);
|
|
603
603
|
const w = {
|
|
604
604
|
...t.style,
|
|
605
|
-
transform:
|
|
605
|
+
transform: l ? ne.Transform.toString(l) : void 0,
|
|
606
606
|
transition: h ?? "transform 0.16s ease",
|
|
607
607
|
cursor: "grab",
|
|
608
608
|
userSelect: "none",
|
|
609
609
|
willChange: "transform",
|
|
610
610
|
// ✅ 드래그 중 픽셀 폭 고정 (flex 재계산 억제)
|
|
611
|
-
width:
|
|
612
|
-
minWidth:
|
|
613
|
-
maxWidth:
|
|
614
|
-
flex:
|
|
611
|
+
width: i ?? void 0,
|
|
612
|
+
minWidth: i ?? void 0,
|
|
613
|
+
maxWidth: i ?? void 0,
|
|
614
|
+
flex: i !== void 0 ? "0 0 auto" : void 0
|
|
615
615
|
};
|
|
616
|
-
return
|
|
617
|
-
ref: (
|
|
618
|
-
n.current !==
|
|
616
|
+
return $e(t.children, {
|
|
617
|
+
ref: (g) => {
|
|
618
|
+
n.current !== g && (n.current = g), u(g);
|
|
619
619
|
},
|
|
620
620
|
style: w,
|
|
621
621
|
...s,
|
|
622
622
|
...o
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
),
|
|
625
|
+
), zt = oe(function({
|
|
626
626
|
config: t,
|
|
627
627
|
isFirst: n,
|
|
628
628
|
isLast: s,
|
|
629
629
|
canCloseAll: o,
|
|
630
|
-
onFirst:
|
|
630
|
+
onFirst: l,
|
|
631
631
|
onPrev: h,
|
|
632
|
-
onNext:
|
|
633
|
-
onLast:
|
|
634
|
-
onCloseAll:
|
|
632
|
+
onNext: p,
|
|
633
|
+
onLast: u,
|
|
634
|
+
onCloseAll: i
|
|
635
635
|
}) {
|
|
636
|
-
return /* @__PURE__ */
|
|
636
|
+
return /* @__PURE__ */ m("div", { className: t.wrapper?.className, style: t.wrapper?.style, children: [
|
|
637
637
|
/* @__PURE__ */ e(
|
|
638
|
-
|
|
638
|
+
W,
|
|
639
639
|
{
|
|
640
640
|
title: "첫 번째 탭",
|
|
641
641
|
className: t.tooltip?.className,
|
|
642
642
|
style: t.tooltip?.style,
|
|
643
643
|
children: /* @__PURE__ */ e(
|
|
644
|
-
|
|
644
|
+
I,
|
|
645
645
|
{
|
|
646
646
|
className: t.buttons?.className,
|
|
647
647
|
style: t.buttons?.style,
|
|
648
648
|
size: "small",
|
|
649
|
-
icon: /* @__PURE__ */ e(
|
|
650
|
-
onClick:
|
|
649
|
+
icon: /* @__PURE__ */ e(Ye, {}),
|
|
650
|
+
onClick: l,
|
|
651
651
|
disabled: n
|
|
652
652
|
}
|
|
653
653
|
)
|
|
654
654
|
}
|
|
655
655
|
),
|
|
656
656
|
/* @__PURE__ */ e(
|
|
657
|
-
|
|
657
|
+
W,
|
|
658
658
|
{
|
|
659
659
|
title: "이전 탭",
|
|
660
660
|
className: t.tooltip?.className,
|
|
661
661
|
style: t.tooltip?.style,
|
|
662
662
|
children: /* @__PURE__ */ e(
|
|
663
|
-
|
|
663
|
+
I,
|
|
664
664
|
{
|
|
665
665
|
className: t.buttons?.className,
|
|
666
666
|
style: t.buttons?.style,
|
|
667
667
|
size: "small",
|
|
668
|
-
icon: /* @__PURE__ */ e(
|
|
668
|
+
icon: /* @__PURE__ */ e(qe, {}),
|
|
669
669
|
onClick: h,
|
|
670
670
|
disabled: n
|
|
671
671
|
}
|
|
@@ -673,64 +673,64 @@ const Nt = ({
|
|
|
673
673
|
}
|
|
674
674
|
),
|
|
675
675
|
/* @__PURE__ */ e(
|
|
676
|
-
|
|
676
|
+
W,
|
|
677
677
|
{
|
|
678
678
|
title: "다음 탭",
|
|
679
679
|
className: t.tooltip?.className,
|
|
680
680
|
style: t.tooltip?.style,
|
|
681
681
|
children: /* @__PURE__ */ e(
|
|
682
|
-
|
|
682
|
+
I,
|
|
683
683
|
{
|
|
684
684
|
className: t.buttons?.className,
|
|
685
685
|
style: t.buttons?.style,
|
|
686
686
|
size: "small",
|
|
687
|
-
icon: /* @__PURE__ */ e(
|
|
688
|
-
onClick:
|
|
687
|
+
icon: /* @__PURE__ */ e(Qe, {}),
|
|
688
|
+
onClick: p,
|
|
689
689
|
disabled: s
|
|
690
690
|
}
|
|
691
691
|
)
|
|
692
692
|
}
|
|
693
693
|
),
|
|
694
694
|
/* @__PURE__ */ e(
|
|
695
|
-
|
|
695
|
+
W,
|
|
696
696
|
{
|
|
697
697
|
title: "마지막 탭",
|
|
698
698
|
className: t.tooltip?.className,
|
|
699
699
|
style: t.tooltip?.style,
|
|
700
700
|
children: /* @__PURE__ */ e(
|
|
701
|
-
|
|
701
|
+
I,
|
|
702
702
|
{
|
|
703
703
|
className: t.buttons?.className,
|
|
704
704
|
style: t.buttons?.style,
|
|
705
705
|
size: "small",
|
|
706
|
-
icon: /* @__PURE__ */ e(
|
|
707
|
-
onClick:
|
|
706
|
+
icon: /* @__PURE__ */ e(Xe, {}),
|
|
707
|
+
onClick: u,
|
|
708
708
|
disabled: s
|
|
709
709
|
}
|
|
710
710
|
)
|
|
711
711
|
}
|
|
712
712
|
),
|
|
713
713
|
/* @__PURE__ */ e(
|
|
714
|
-
|
|
714
|
+
W,
|
|
715
715
|
{
|
|
716
716
|
title: "모든 탭 닫기",
|
|
717
717
|
className: t.tooltip?.className,
|
|
718
718
|
style: t.tooltip?.style,
|
|
719
719
|
children: /* @__PURE__ */ e(
|
|
720
|
-
|
|
720
|
+
I,
|
|
721
721
|
{
|
|
722
722
|
className: t.buttons?.className,
|
|
723
723
|
style: t.buttons?.style,
|
|
724
724
|
size: "small",
|
|
725
|
-
icon: /* @__PURE__ */ e(
|
|
726
|
-
onClick:
|
|
725
|
+
icon: /* @__PURE__ */ e(ge, {}),
|
|
726
|
+
onClick: i,
|
|
727
727
|
disabled: !o
|
|
728
728
|
}
|
|
729
729
|
)
|
|
730
730
|
}
|
|
731
731
|
)
|
|
732
732
|
] });
|
|
733
|
-
}),
|
|
733
|
+
}), Ft = ({
|
|
734
734
|
config: r = {}
|
|
735
735
|
}) => {
|
|
736
736
|
const t = {
|
|
@@ -758,19 +758,19 @@ const Nt = ({
|
|
|
758
758
|
...r?.nav
|
|
759
759
|
},
|
|
760
760
|
...r
|
|
761
|
-
}, n =
|
|
762
|
-
|
|
763
|
-
),
|
|
761
|
+
}, n = O((d) => d.tabs), s = O((d) => d.activeMenuId), o = O((d) => d.focusTab), l = O((d) => d.closeTab), h = O((d) => d.reorderTabs), p = lt(
|
|
762
|
+
ct(dt, { activationConstraint: { distance: 6 } })
|
|
763
|
+
), u = (d) => {
|
|
764
764
|
o(d);
|
|
765
|
-
},
|
|
766
|
-
S === "remove" && typeof d == "string" &&
|
|
767
|
-
},
|
|
765
|
+
}, i = (d, S) => {
|
|
766
|
+
S === "remove" && typeof d == "string" && l(d);
|
|
767
|
+
}, y = () => {
|
|
768
768
|
n.length > 0 && o(n[0].key);
|
|
769
769
|
}, w = () => {
|
|
770
770
|
if (!s || n.length <= 1) return;
|
|
771
771
|
const d = n.findIndex((S) => S.key === s);
|
|
772
772
|
d > 0 && o(n[d - 1].key);
|
|
773
|
-
},
|
|
773
|
+
}, g = () => {
|
|
774
774
|
if (!s || n.length <= 1) return;
|
|
775
775
|
const d = n.findIndex((S) => S.key === s);
|
|
776
776
|
d < n.length - 1 && o(n[d + 1].key);
|
|
@@ -778,9 +778,9 @@ const Nt = ({
|
|
|
778
778
|
n.length > 0 && o(n[n.length - 1].key);
|
|
779
779
|
}, x = () => {
|
|
780
780
|
n.forEach((d) => {
|
|
781
|
-
|
|
781
|
+
l(d.key);
|
|
782
782
|
});
|
|
783
|
-
},
|
|
783
|
+
}, T = s ? n.findIndex((d) => d.key === s) : -1, _ = T === 0, z = T === n.length - 1, $ = Z(
|
|
784
784
|
() => n.map((d) => ({
|
|
785
785
|
key: d.key,
|
|
786
786
|
label: d.label,
|
|
@@ -789,41 +789,41 @@ const Nt = ({
|
|
|
789
789
|
// 컨텐츠는 Main 쪽에서 렌더 → 여기선 헤더만 필요
|
|
790
790
|
})),
|
|
791
791
|
[n]
|
|
792
|
-
),
|
|
792
|
+
), c = A(
|
|
793
793
|
({ active: d, over: S }) => {
|
|
794
794
|
if (!S || d.id === S.id) return;
|
|
795
|
-
const
|
|
796
|
-
if (
|
|
797
|
-
const
|
|
798
|
-
h?.(
|
|
795
|
+
const L = n.findIndex((E) => E.key === d.id), G = n.findIndex((E) => E.key === S.id);
|
|
796
|
+
if (L < 0 || G < 0 || L === G) return;
|
|
797
|
+
const q = n.map((E) => E.key), U = ht(q, L, G);
|
|
798
|
+
h?.(U);
|
|
799
799
|
},
|
|
800
800
|
[n, h]
|
|
801
|
-
), v =
|
|
801
|
+
), v = A(
|
|
802
802
|
(d, S) => /* @__PURE__ */ e(
|
|
803
|
-
|
|
803
|
+
ut,
|
|
804
804
|
{
|
|
805
|
-
sensors:
|
|
806
|
-
onDragEnd:
|
|
807
|
-
collisionDetection:
|
|
808
|
-
modifiers: [
|
|
805
|
+
sensors: p,
|
|
806
|
+
onDragEnd: c,
|
|
807
|
+
collisionDetection: mt,
|
|
808
|
+
modifiers: [pt],
|
|
809
809
|
children: /* @__PURE__ */ e(
|
|
810
|
-
|
|
810
|
+
gt,
|
|
811
811
|
{
|
|
812
|
-
items: n.map((
|
|
813
|
-
strategy:
|
|
814
|
-
children: /* @__PURE__ */ e(S, { ...d, children: (
|
|
815
|
-
|
|
812
|
+
items: n.map((L) => L.key),
|
|
813
|
+
strategy: ft,
|
|
814
|
+
children: /* @__PURE__ */ e(S, { ...d, children: (L) => /* @__PURE__ */ he(
|
|
815
|
+
Rt,
|
|
816
816
|
{
|
|
817
|
-
...
|
|
818
|
-
key:
|
|
817
|
+
...L.props,
|
|
818
|
+
key: L.key
|
|
819
819
|
},
|
|
820
|
-
|
|
820
|
+
L
|
|
821
821
|
) })
|
|
822
822
|
}
|
|
823
823
|
)
|
|
824
824
|
}
|
|
825
825
|
),
|
|
826
|
-
[
|
|
826
|
+
[p, c, n]
|
|
827
827
|
);
|
|
828
828
|
return /* @__PURE__ */ e(
|
|
829
829
|
"div",
|
|
@@ -834,26 +834,26 @@ const Nt = ({
|
|
|
834
834
|
display: n.length === 0 ? "none" : "block"
|
|
835
835
|
},
|
|
836
836
|
children: /* @__PURE__ */ e(
|
|
837
|
-
|
|
837
|
+
Ee,
|
|
838
838
|
{
|
|
839
839
|
type: "editable-card",
|
|
840
840
|
activeKey: s || void 0,
|
|
841
|
-
onChange:
|
|
842
|
-
onEdit:
|
|
841
|
+
onChange: u,
|
|
842
|
+
onEdit: i,
|
|
843
843
|
className: t.tabs.className,
|
|
844
844
|
style: t.tabs.style,
|
|
845
845
|
hideAdd: !0,
|
|
846
|
-
items:
|
|
846
|
+
items: $,
|
|
847
847
|
tabBarExtraContent: /* @__PURE__ */ e(
|
|
848
|
-
|
|
848
|
+
zt,
|
|
849
849
|
{
|
|
850
850
|
config: t?.nav,
|
|
851
|
-
isFirst: !!
|
|
852
|
-
isLast: !!
|
|
851
|
+
isFirst: !!_,
|
|
852
|
+
isLast: !!z,
|
|
853
853
|
canCloseAll: n.length > 0,
|
|
854
|
-
onFirst:
|
|
854
|
+
onFirst: y,
|
|
855
855
|
onPrev: w,
|
|
856
|
-
onNext:
|
|
856
|
+
onNext: g,
|
|
857
857
|
onLast: C,
|
|
858
858
|
onCloseAll: x
|
|
859
859
|
}
|
|
@@ -863,7 +863,7 @@ const Nt = ({
|
|
|
863
863
|
)
|
|
864
864
|
}
|
|
865
865
|
);
|
|
866
|
-
}, { Sider:
|
|
866
|
+
}, { Sider: At } = j, _t = ({
|
|
867
867
|
config: r = {}
|
|
868
868
|
}) => {
|
|
869
869
|
const t = {
|
|
@@ -905,15 +905,15 @@ const Nt = ({
|
|
|
905
905
|
...r?.style
|
|
906
906
|
},
|
|
907
907
|
...r
|
|
908
|
-
}, [n, s] =
|
|
908
|
+
}, [n, s] = D(""), [o, l] = D(
|
|
909
909
|
"category"
|
|
910
|
-
), { activeMenuId:
|
|
911
|
-
const
|
|
910
|
+
), [h, p] = D([]), { activeMenuId: u, sidebarCollapsed: i, openTabFromMenu: y, toggleSidebar: w } = O(), { menuList: g, isLoading: C, error: x, findMenuById: T, flatMenuList: _ } = We(), { nodes: z, treeNodes: $, loadFavoritesIfNeeded: c } = je(), v = Z(() => {
|
|
911
|
+
const b = [], f = (a, k = 0) => {
|
|
912
912
|
if (a.menuGbCd === t.menuGubunCode.program && a.scrnPath) {
|
|
913
|
-
const
|
|
914
|
-
|
|
913
|
+
const N = " ".repeat(k), M = a.menuNo || "";
|
|
914
|
+
b.push({
|
|
915
915
|
value: a.menuId,
|
|
916
|
-
label: /* @__PURE__ */
|
|
916
|
+
label: /* @__PURE__ */ m(
|
|
917
917
|
"div",
|
|
918
918
|
{
|
|
919
919
|
style: {
|
|
@@ -922,8 +922,8 @@ const Nt = ({
|
|
|
922
922
|
alignItems: "center"
|
|
923
923
|
},
|
|
924
924
|
children: [
|
|
925
|
-
/* @__PURE__ */
|
|
926
|
-
|
|
925
|
+
/* @__PURE__ */ m("span", { children: [
|
|
926
|
+
N,
|
|
927
927
|
a.menuNm
|
|
928
928
|
] }),
|
|
929
929
|
/* @__PURE__ */ e(
|
|
@@ -937,7 +937,7 @@ const Nt = ({
|
|
|
937
937
|
borderRadius: "3px",
|
|
938
938
|
marginLeft: "8px"
|
|
939
939
|
},
|
|
940
|
-
children:
|
|
940
|
+
children: M
|
|
941
941
|
}
|
|
942
942
|
)
|
|
943
943
|
]
|
|
@@ -946,26 +946,26 @@ const Nt = ({
|
|
|
946
946
|
menuItem: a
|
|
947
947
|
});
|
|
948
948
|
}
|
|
949
|
-
a.children && a.children.length > 0 && a.children.forEach((
|
|
949
|
+
a.children && a.children.length > 0 && a.children.forEach((N) => f(N, k + 1));
|
|
950
950
|
};
|
|
951
|
-
return g.forEach((a) =>
|
|
952
|
-
}, [g]),
|
|
953
|
-
const
|
|
954
|
-
return
|
|
955
|
-
}) : [], [
|
|
956
|
-
if (!
|
|
957
|
-
console.warn("Invalid menu selection value:",
|
|
951
|
+
return g.forEach((a) => f(a)), b;
|
|
952
|
+
}, [g]), d = Z(() => n.trim() ? v.filter((b) => {
|
|
953
|
+
const f = b.menuItem.menuNm.toLowerCase(), a = String(b.menuItem.menuNo || "미지정").toLowerCase(), k = n.toLowerCase();
|
|
954
|
+
return f.includes(k) || a.includes(k);
|
|
955
|
+
}) : [], [v, n]), S = (b) => {
|
|
956
|
+
if (!b || typeof b != "string") {
|
|
957
|
+
console.warn("Invalid menu selection value:", b);
|
|
958
958
|
return;
|
|
959
959
|
}
|
|
960
|
-
if (!/^[a-zA-Z0-9_-]+$/.test(
|
|
961
|
-
console.warn("Invalid menu ID format:",
|
|
960
|
+
if (!/^[a-zA-Z0-9_-]+$/.test(b)) {
|
|
961
|
+
console.warn("Invalid menu ID format:", b);
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
(a) => a.value ===
|
|
964
|
+
const f = v.find(
|
|
965
|
+
(a) => a.value === b
|
|
966
966
|
);
|
|
967
|
-
if (
|
|
968
|
-
const { menuItem: a } =
|
|
967
|
+
if (f) {
|
|
968
|
+
const { menuItem: a } = f;
|
|
969
969
|
if (!a || !a.menuId || !a.menuNm) {
|
|
970
970
|
console.warn("Invalid menu item:", a);
|
|
971
971
|
return;
|
|
@@ -979,23 +979,23 @@ const Nt = ({
|
|
|
979
979
|
a.scrnPath,
|
|
980
980
|
"scrnId:",
|
|
981
981
|
a.scrnId
|
|
982
|
-
),
|
|
982
|
+
), y(a)) : (a.menuGbCd === t.menuGubunCode.mainMenu || a.menuGbCd === t.menuGubunCode.subMenu) && (console.log("❌ 검색으로 메인/서브 메뉴 선택 - 이벤트 무시"), console.log("메뉴명:", a.menuNm, "menuGbCd:", a.menuGbCd)), s("");
|
|
983
983
|
}
|
|
984
|
-
},
|
|
985
|
-
(
|
|
986
|
-
const
|
|
987
|
-
|
|
984
|
+
}, L = A(
|
|
985
|
+
(b) => {
|
|
986
|
+
const f = T(b);
|
|
987
|
+
f?.menuGbCd === t.menuGubunCode.program && (console.log(
|
|
988
988
|
"메뉴명:",
|
|
989
|
-
|
|
989
|
+
f.menuNm,
|
|
990
990
|
"경로:",
|
|
991
|
-
|
|
991
|
+
f.scrnPath,
|
|
992
992
|
"scrnId:",
|
|
993
|
-
|
|
994
|
-
),
|
|
993
|
+
f.scrnId
|
|
994
|
+
), y(f));
|
|
995
995
|
},
|
|
996
|
-
[
|
|
997
|
-
),
|
|
998
|
-
key:
|
|
996
|
+
[T, y]
|
|
997
|
+
), G = A((b) => b.map((f) => ({
|
|
998
|
+
key: f.menuId,
|
|
999
999
|
label: /* @__PURE__ */ e(
|
|
1000
1000
|
"div",
|
|
1001
1001
|
{
|
|
@@ -1004,21 +1004,21 @@ const Nt = ({
|
|
|
1004
1004
|
justifyContent: "space-between",
|
|
1005
1005
|
alignItems: "center"
|
|
1006
1006
|
},
|
|
1007
|
-
children: /* @__PURE__ */ e("span", { children:
|
|
1007
|
+
children: /* @__PURE__ */ e("span", { children: f.menuNm })
|
|
1008
1008
|
}
|
|
1009
1009
|
),
|
|
1010
|
-
icon:
|
|
1011
|
-
children:
|
|
1012
|
-
})), []),
|
|
1013
|
-
if (
|
|
1014
|
-
const a =
|
|
1010
|
+
icon: q(f.iconCd, f.menuGbCd),
|
|
1011
|
+
children: f.children && f.children.length > 0 ? G(f.children) : void 0
|
|
1012
|
+
})), []), q = (b, f) => {
|
|
1013
|
+
if (b) {
|
|
1014
|
+
const a = le[b];
|
|
1015
1015
|
if (a)
|
|
1016
1016
|
return /* @__PURE__ */ e(a, {});
|
|
1017
1017
|
}
|
|
1018
|
-
if (
|
|
1019
|
-
switch (
|
|
1018
|
+
if (f)
|
|
1019
|
+
switch (f) {
|
|
1020
1020
|
case t.menuGubunCode.mainMenu:
|
|
1021
|
-
return /* @__PURE__ */ e(
|
|
1021
|
+
return /* @__PURE__ */ e(le.HomeOutlined, {});
|
|
1022
1022
|
case t.menuGubunCode.subMenu:
|
|
1023
1023
|
return null;
|
|
1024
1024
|
case t.menuGubunCode.program:
|
|
@@ -1027,47 +1027,66 @@ const Nt = ({
|
|
|
1027
1027
|
return null;
|
|
1028
1028
|
}
|
|
1029
1029
|
return null;
|
|
1030
|
-
},
|
|
1031
|
-
(
|
|
1030
|
+
}, U = A(
|
|
1031
|
+
(b) => {
|
|
1032
1032
|
if (g.length === 0) return [];
|
|
1033
|
-
const
|
|
1034
|
-
if (
|
|
1035
|
-
return typeof
|
|
1036
|
-
}, a = (
|
|
1037
|
-
if (
|
|
1038
|
-
const
|
|
1033
|
+
const f = (k) => {
|
|
1034
|
+
if (k)
|
|
1035
|
+
return typeof k == "string" ? z[k] : k;
|
|
1036
|
+
}, a = (k) => {
|
|
1037
|
+
if (k.type === "M") {
|
|
1038
|
+
const N = k, M = T(N.menuId) || void 0, P = !!M, be = P ? `${M?.menuNm ?? N.menuNm ?? N.menuId}` : `${N.menuNm ?? N.menuId} (삭제됨)`;
|
|
1039
1039
|
return {
|
|
1040
|
-
key:
|
|
1041
|
-
label:
|
|
1042
|
-
icon:
|
|
1040
|
+
key: N.menuId,
|
|
1041
|
+
label: be,
|
|
1042
|
+
icon: P ? void 0 : /* @__PURE__ */ e(nt, { style: { color: "#faad14" } })
|
|
1043
1043
|
};
|
|
1044
1044
|
} else {
|
|
1045
|
-
const
|
|
1045
|
+
const N = k, M = (N.children ?? []).map(f).filter(Boolean).map(a);
|
|
1046
1046
|
return {
|
|
1047
|
-
key:
|
|
1048
|
-
label:
|
|
1049
|
-
icon:
|
|
1050
|
-
children:
|
|
1047
|
+
key: N.bkmkId,
|
|
1048
|
+
label: N.bkmkNm ?? N.bkmkId,
|
|
1049
|
+
icon: N.prntBkmkId === "-" ? /* @__PURE__ */ e(rt, {}) : /* @__PURE__ */ e(ot, {}),
|
|
1050
|
+
children: M
|
|
1051
1051
|
// 빈 배열이면 자동으로 말아줌
|
|
1052
1052
|
};
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
|
-
return
|
|
1055
|
+
return b.map(a);
|
|
1056
1056
|
},
|
|
1057
|
-
[
|
|
1058
|
-
),
|
|
1059
|
-
() =>
|
|
1060
|
-
[
|
|
1057
|
+
[T, z, g]
|
|
1058
|
+
), E = Z(
|
|
1059
|
+
() => U($),
|
|
1060
|
+
[U, $, z]
|
|
1061
1061
|
);
|
|
1062
|
-
return
|
|
1063
|
-
|
|
1064
|
-
}, [
|
|
1062
|
+
return B(() => {
|
|
1063
|
+
ue() && c(ue());
|
|
1064
|
+
}, [c]), B(() => {
|
|
1065
1065
|
o === "category" && s("");
|
|
1066
|
-
}, [o]),
|
|
1067
|
-
|
|
1066
|
+
}, [o]), B(() => {
|
|
1067
|
+
if (!u || o !== "category") return;
|
|
1068
|
+
const f = ((a) => {
|
|
1069
|
+
const k = [], N = new Map(_.map((P) => [P.menuId, P]));
|
|
1070
|
+
let M = a;
|
|
1071
|
+
for (; M; ) {
|
|
1072
|
+
const P = N.get(M);
|
|
1073
|
+
if (!P) break;
|
|
1074
|
+
if (P.menuPrntId && P.menuPrntId !== "-" && P.menuPrntId !== "")
|
|
1075
|
+
k.push(P.menuPrntId), M = P.menuPrntId;
|
|
1076
|
+
else
|
|
1077
|
+
break;
|
|
1078
|
+
}
|
|
1079
|
+
return k;
|
|
1080
|
+
})(u);
|
|
1081
|
+
f.length > 0 && p((a) => {
|
|
1082
|
+
const k = /* @__PURE__ */ new Set([...a, ...f]);
|
|
1083
|
+
return Array.from(k);
|
|
1084
|
+
});
|
|
1085
|
+
}, [u, o, _]), /* @__PURE__ */ m(
|
|
1086
|
+
At,
|
|
1068
1087
|
{
|
|
1069
1088
|
className: t.className.wrapper,
|
|
1070
|
-
collapsed: t.collapsed ||
|
|
1089
|
+
collapsed: t.collapsed || i,
|
|
1071
1090
|
trigger: null,
|
|
1072
1091
|
width: t.width || 230,
|
|
1073
1092
|
children: [
|
|
@@ -1092,10 +1111,10 @@ const Nt = ({
|
|
|
1092
1111
|
transition: "all 0.3s ease"
|
|
1093
1112
|
},
|
|
1094
1113
|
children: /* @__PURE__ */ e(
|
|
1095
|
-
|
|
1114
|
+
I,
|
|
1096
1115
|
{
|
|
1097
1116
|
type: "text",
|
|
1098
|
-
icon: t.collapsed ||
|
|
1117
|
+
icon: t.collapsed || i ? /* @__PURE__ */ e(Je, {}) : /* @__PURE__ */ e(et, {}),
|
|
1099
1118
|
style: {
|
|
1100
1119
|
fontSize: "12px",
|
|
1101
1120
|
color: "#787878",
|
|
@@ -1107,28 +1126,28 @@ const Nt = ({
|
|
|
1107
1126
|
justifyContent: "center",
|
|
1108
1127
|
borderRadius: "0 10px 10px 0"
|
|
1109
1128
|
},
|
|
1110
|
-
onClick:
|
|
1129
|
+
onClick: w
|
|
1111
1130
|
}
|
|
1112
1131
|
)
|
|
1113
1132
|
}
|
|
1114
1133
|
),
|
|
1115
|
-
!(t.collapsed ||
|
|
1134
|
+
!(t.collapsed || i) && /* @__PURE__ */ e(
|
|
1116
1135
|
"div",
|
|
1117
1136
|
{
|
|
1118
1137
|
style: {
|
|
1119
1138
|
padding: 10
|
|
1120
1139
|
},
|
|
1121
1140
|
children: /* @__PURE__ */ e(
|
|
1122
|
-
|
|
1141
|
+
De,
|
|
1123
1142
|
{
|
|
1124
1143
|
value: n,
|
|
1125
|
-
options:
|
|
1126
|
-
onSelect:
|
|
1144
|
+
options: d,
|
|
1145
|
+
onSelect: S,
|
|
1127
1146
|
onSearch: s,
|
|
1128
1147
|
style: { width: "100%" },
|
|
1129
1148
|
allowClear: !0,
|
|
1130
1149
|
children: /* @__PURE__ */ e(
|
|
1131
|
-
|
|
1150
|
+
te,
|
|
1132
1151
|
{
|
|
1133
1152
|
className: t.className.search,
|
|
1134
1153
|
placeholder: t.style.search.placeholder,
|
|
@@ -1162,7 +1181,7 @@ const Nt = ({
|
|
|
1162
1181
|
)
|
|
1163
1182
|
}
|
|
1164
1183
|
),
|
|
1165
|
-
!(t.collapsed ||
|
|
1184
|
+
!(t.collapsed || i) && /* @__PURE__ */ e(
|
|
1166
1185
|
"div",
|
|
1167
1186
|
{
|
|
1168
1187
|
style: {
|
|
@@ -1171,18 +1190,18 @@ const Nt = ({
|
|
|
1171
1190
|
marginBottom: "10px"
|
|
1172
1191
|
},
|
|
1173
1192
|
children: /* @__PURE__ */ e(
|
|
1174
|
-
|
|
1193
|
+
Oe,
|
|
1175
1194
|
{
|
|
1176
1195
|
className: t.className.segmented.wrapper,
|
|
1177
1196
|
options: [
|
|
1178
1197
|
{
|
|
1179
|
-
label: /* @__PURE__ */
|
|
1198
|
+
label: /* @__PURE__ */ m(V, { children: [
|
|
1180
1199
|
/* @__PURE__ */ e(
|
|
1181
1200
|
"span",
|
|
1182
1201
|
{
|
|
1183
1202
|
className: t.className.segmented.item,
|
|
1184
1203
|
style: { display: "flex", alignItems: "center" },
|
|
1185
|
-
children: /* @__PURE__ */
|
|
1204
|
+
children: /* @__PURE__ */ m(
|
|
1186
1205
|
"svg",
|
|
1187
1206
|
{
|
|
1188
1207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1231,7 +1250,7 @@ const Nt = ({
|
|
|
1231
1250
|
value: "category"
|
|
1232
1251
|
},
|
|
1233
1252
|
{
|
|
1234
|
-
label: /* @__PURE__ */
|
|
1253
|
+
label: /* @__PURE__ */ m(V, { children: [
|
|
1235
1254
|
/* @__PURE__ */ e(
|
|
1236
1255
|
"span",
|
|
1237
1256
|
{
|
|
@@ -1264,8 +1283,8 @@ const Nt = ({
|
|
|
1264
1283
|
}
|
|
1265
1284
|
],
|
|
1266
1285
|
value: o,
|
|
1267
|
-
onChange: (
|
|
1268
|
-
|
|
1286
|
+
onChange: (b) => {
|
|
1287
|
+
l(b);
|
|
1269
1288
|
},
|
|
1270
1289
|
style: {
|
|
1271
1290
|
width: "100%"
|
|
@@ -1275,8 +1294,8 @@ const Nt = ({
|
|
|
1275
1294
|
)
|
|
1276
1295
|
}
|
|
1277
1296
|
),
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
|
|
1297
|
+
/* @__PURE__ */ m("div", { className: t.className.sider.content, children: [
|
|
1298
|
+
C && /* @__PURE__ */ m(
|
|
1280
1299
|
"div",
|
|
1281
1300
|
{
|
|
1282
1301
|
className: t.className.sider.loading,
|
|
@@ -1288,7 +1307,7 @@ const Nt = ({
|
|
|
1288
1307
|
},
|
|
1289
1308
|
children: [
|
|
1290
1309
|
/* @__PURE__ */ e(
|
|
1291
|
-
|
|
1310
|
+
Re,
|
|
1292
1311
|
{
|
|
1293
1312
|
theme: {
|
|
1294
1313
|
components: {
|
|
@@ -1297,7 +1316,7 @@ const Nt = ({
|
|
|
1297
1316
|
}
|
|
1298
1317
|
}
|
|
1299
1318
|
},
|
|
1300
|
-
children: /* @__PURE__ */ e(
|
|
1319
|
+
children: /* @__PURE__ */ e(Y, { size: "default" })
|
|
1301
1320
|
}
|
|
1302
1321
|
),
|
|
1303
1322
|
/* @__PURE__ */ e(
|
|
@@ -1311,16 +1330,16 @@ const Nt = ({
|
|
|
1311
1330
|
]
|
|
1312
1331
|
}
|
|
1313
1332
|
),
|
|
1314
|
-
|
|
1333
|
+
x && /* @__PURE__ */ m("div", { className: t.className.sider.error, children: [
|
|
1315
1334
|
/* @__PURE__ */ e(
|
|
1316
|
-
|
|
1335
|
+
tt,
|
|
1317
1336
|
{
|
|
1318
1337
|
className: t.className.sider.errorIcon
|
|
1319
1338
|
}
|
|
1320
1339
|
),
|
|
1321
1340
|
/* @__PURE__ */ e("div", { className: t.className.sider.errorText, children: "메뉴 로드 실패" })
|
|
1322
1341
|
] }),
|
|
1323
|
-
!
|
|
1342
|
+
!C && !x && o === "category" && g.length === 0 && /* @__PURE__ */ e(
|
|
1324
1343
|
"div",
|
|
1325
1344
|
{
|
|
1326
1345
|
style: {
|
|
@@ -1332,7 +1351,7 @@ const Nt = ({
|
|
|
1332
1351
|
children: "메뉴가 없습니다"
|
|
1333
1352
|
}
|
|
1334
1353
|
),
|
|
1335
|
-
!
|
|
1354
|
+
!C && !x && o === "favorite" && E.length === 0 && /* @__PURE__ */ e(
|
|
1336
1355
|
"div",
|
|
1337
1356
|
{
|
|
1338
1357
|
style: {
|
|
@@ -1344,26 +1363,28 @@ const Nt = ({
|
|
|
1344
1363
|
children: "즐겨찾기된 메뉴가 없습니다"
|
|
1345
1364
|
}
|
|
1346
1365
|
),
|
|
1347
|
-
!
|
|
1348
|
-
|
|
1366
|
+
!C && !x && o === "category" && g.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1367
|
+
ie,
|
|
1349
1368
|
{
|
|
1350
1369
|
theme: "light",
|
|
1351
1370
|
mode: "inline",
|
|
1352
|
-
items:
|
|
1371
|
+
items: G(g),
|
|
1353
1372
|
className: t.className.sider.menu,
|
|
1354
|
-
selectedKeys: [
|
|
1355
|
-
|
|
1373
|
+
selectedKeys: [u || ""],
|
|
1374
|
+
openKeys: h,
|
|
1375
|
+
onOpenChange: p,
|
|
1376
|
+
onClick: (b) => L(b.key)
|
|
1356
1377
|
}
|
|
1357
1378
|
) }),
|
|
1358
|
-
!
|
|
1359
|
-
|
|
1379
|
+
!C && !x && o === "favorite" && E.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1380
|
+
ie,
|
|
1360
1381
|
{
|
|
1361
1382
|
theme: "light",
|
|
1362
1383
|
mode: "inline",
|
|
1363
|
-
items:
|
|
1384
|
+
items: E,
|
|
1364
1385
|
className: t.className.sider.menu,
|
|
1365
|
-
selectedKeys: [
|
|
1366
|
-
onClick: (
|
|
1386
|
+
selectedKeys: [u || ""],
|
|
1387
|
+
onClick: (b) => L(b.key)
|
|
1367
1388
|
}
|
|
1368
1389
|
) })
|
|
1369
1390
|
] })
|
|
@@ -1371,7 +1392,7 @@ const Nt = ({
|
|
|
1371
1392
|
}
|
|
1372
1393
|
);
|
|
1373
1394
|
};
|
|
1374
|
-
class
|
|
1395
|
+
class $t extends Ge {
|
|
1375
1396
|
constructor(t) {
|
|
1376
1397
|
super(t), this.resetError = () => {
|
|
1377
1398
|
this.setState({ hasError: !1, error: void 0, errorInfo: void 0 });
|
|
@@ -1387,7 +1408,7 @@ class Ft extends Ae {
|
|
|
1387
1408
|
});
|
|
1388
1409
|
}
|
|
1389
1410
|
render() {
|
|
1390
|
-
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */
|
|
1411
|
+
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ m(
|
|
1391
1412
|
"div",
|
|
1392
1413
|
{
|
|
1393
1414
|
style: {
|
|
@@ -1401,17 +1422,17 @@ class Ft extends Ae {
|
|
|
1401
1422
|
},
|
|
1402
1423
|
children: [
|
|
1403
1424
|
/* @__PURE__ */ e(
|
|
1404
|
-
|
|
1425
|
+
pe,
|
|
1405
1426
|
{
|
|
1406
1427
|
status: "error",
|
|
1407
1428
|
title: "컴포넌트 로딩 중 오류가 발생했습니다",
|
|
1408
1429
|
subTitle: this.state.error ? `오류 내용: ${this.state.error.message}` : "알 수 없는 오류가 발생했습니다",
|
|
1409
1430
|
extra: [
|
|
1410
1431
|
/* @__PURE__ */ e(
|
|
1411
|
-
|
|
1432
|
+
I,
|
|
1412
1433
|
{
|
|
1413
1434
|
type: "primary",
|
|
1414
|
-
icon: /* @__PURE__ */ e(
|
|
1435
|
+
icon: /* @__PURE__ */ e(fe, {}),
|
|
1415
1436
|
onClick: this.resetError,
|
|
1416
1437
|
style: { marginRight: 8 },
|
|
1417
1438
|
children: "다시 시도"
|
|
@@ -1421,7 +1442,7 @@ class Ft extends Ae {
|
|
|
1421
1442
|
]
|
|
1422
1443
|
}
|
|
1423
1444
|
),
|
|
1424
|
-
this.state.error && /* @__PURE__ */
|
|
1445
|
+
this.state.error && /* @__PURE__ */ m(
|
|
1425
1446
|
"details",
|
|
1426
1447
|
{
|
|
1427
1448
|
style: {
|
|
@@ -1456,12 +1477,12 @@ class Ft extends Ae {
|
|
|
1456
1477
|
) : this.props.children;
|
|
1457
1478
|
}
|
|
1458
1479
|
}
|
|
1459
|
-
const
|
|
1480
|
+
const Gt = ({
|
|
1460
1481
|
isActive: r,
|
|
1461
1482
|
instance: t,
|
|
1462
1483
|
params: n
|
|
1463
1484
|
}) => {
|
|
1464
|
-
const { activeMenuId: s, closeTab: o } =
|
|
1485
|
+
const { activeMenuId: s, closeTab: o } = O(), l = () => {
|
|
1465
1486
|
s && o(s);
|
|
1466
1487
|
};
|
|
1467
1488
|
return t ? /* @__PURE__ */ e(
|
|
@@ -1478,7 +1499,7 @@ const At = ({
|
|
|
1478
1499
|
transition: "opacity 0.2s ease-in-out",
|
|
1479
1500
|
pointerEvents: r ? "auto" : "none"
|
|
1480
1501
|
},
|
|
1481
|
-
children: /* @__PURE__ */ e(
|
|
1502
|
+
children: /* @__PURE__ */ e($t, { children: /* @__PURE__ */ e(se, { fallback: null, children: t && he(t, { params: n }) }) })
|
|
1482
1503
|
}
|
|
1483
1504
|
) : /* @__PURE__ */ e(
|
|
1484
1505
|
"div",
|
|
@@ -1509,20 +1530,20 @@ const At = ({
|
|
|
1509
1530
|
padding: 24
|
|
1510
1531
|
},
|
|
1511
1532
|
children: /* @__PURE__ */ e(
|
|
1512
|
-
|
|
1533
|
+
pe,
|
|
1513
1534
|
{
|
|
1514
|
-
icon: /* @__PURE__ */ e(
|
|
1535
|
+
icon: /* @__PURE__ */ e(st, { twoToneColor: "#69b1ff" }),
|
|
1515
1536
|
status: "warning",
|
|
1516
1537
|
title: "등록된 메뉴 정보가 없거나 유효한 메뉴가 아닙니다.",
|
|
1517
|
-
subTitle: /* @__PURE__ */ e(
|
|
1518
|
-
extra: /* @__PURE__ */ e(
|
|
1538
|
+
subTitle: /* @__PURE__ */ e(Fe.Text, { type: "secondary", children: "자세한 내용은 관리자에게 문의바랍니다." }),
|
|
1539
|
+
extra: /* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(I, { icon: /* @__PURE__ */ e(ge, {}), onClick: l, children: "탭 닫기" }) })
|
|
1519
1540
|
}
|
|
1520
1541
|
)
|
|
1521
1542
|
}
|
|
1522
1543
|
)
|
|
1523
1544
|
}
|
|
1524
1545
|
);
|
|
1525
|
-
},
|
|
1546
|
+
}, Ht = oe(Gt), Vt = () => /* @__PURE__ */ m(V, { children: [
|
|
1526
1547
|
/* @__PURE__ */ e(
|
|
1527
1548
|
"link",
|
|
1528
1549
|
{
|
|
@@ -1532,62 +1553,62 @@ const At = ({
|
|
|
1532
1553
|
}
|
|
1533
1554
|
),
|
|
1534
1555
|
/* @__PURE__ */ e("div", { className: "LandingContainer-wrap", children: /* @__PURE__ */ e("div", { className: "inner", children: /* @__PURE__ */ e("div", { className: "content" }) }) })
|
|
1535
|
-
] }),
|
|
1556
|
+
] }), Wt = (r, t) => {
|
|
1536
1557
|
console.log("createPopupViewLoader 호출 - popupUrl:", r);
|
|
1537
1558
|
const s = ((o) => {
|
|
1538
1559
|
if (o.startsWith("/src/pages/views/popup/")) {
|
|
1539
|
-
const
|
|
1540
|
-
return console.log(`팝업 URL 변환: ${o} -> ${
|
|
1560
|
+
const p = o + ".tsx";
|
|
1561
|
+
return console.log(`팝업 URL 변환: ${o} -> ${p}`), p;
|
|
1541
1562
|
}
|
|
1542
1563
|
const h = `/src/pages/views/popup/${o.startsWith("/") ? o.substring(1) : o}.tsx`;
|
|
1543
1564
|
return console.log(`팝업 URL 변환: ${o} -> ${h}`), h;
|
|
1544
1565
|
})(r);
|
|
1545
1566
|
return !s || !t?.glob || !t.glob[s] ? (console.warn(`팝업 뷰를 찾을 수 없습니다: ${r} (${s})`), console.warn("사용 가능한 팝업 뷰들:", Object.keys(t?.glob || {})), null) : t.glob[s];
|
|
1546
|
-
},
|
|
1547
|
-
const [n, s] =
|
|
1548
|
-
console.log("PopupArea - handleClose:", r.popupId),
|
|
1567
|
+
}, jt = ({ popup: r, modules: t }) => {
|
|
1568
|
+
const [n, s] = D(null), [o, l] = D(!1), [h, p] = D(null), u = () => {
|
|
1569
|
+
console.log("PopupArea - handleClose:", r.popupId), ae.getState().closePopup(r.popupId);
|
|
1549
1570
|
};
|
|
1550
|
-
return
|
|
1571
|
+
return B(() => {
|
|
1551
1572
|
(async () => {
|
|
1552
|
-
console.log("팝업 뷰 로드 시작:", r.popupUrl),
|
|
1573
|
+
console.log("팝업 뷰 로드 시작:", r.popupUrl), l(!0), p(null);
|
|
1553
1574
|
try {
|
|
1554
|
-
const
|
|
1555
|
-
if (!
|
|
1575
|
+
const y = Wt(r.popupUrl, t);
|
|
1576
|
+
if (!y) {
|
|
1556
1577
|
const C = `팝업 뷰를 찾을 수 없습니다: ${r.popupUrl}`;
|
|
1557
|
-
console.error(C),
|
|
1578
|
+
console.error(C), p(C), l(!1);
|
|
1558
1579
|
return;
|
|
1559
1580
|
}
|
|
1560
1581
|
console.log("팝업 뷰 모듈 로드 중...");
|
|
1561
|
-
const w = await
|
|
1582
|
+
const w = await y();
|
|
1562
1583
|
console.log("팝업 뷰 모듈 로드 완료:", w);
|
|
1563
|
-
const
|
|
1564
|
-
if (console.log("팝업 뷰 컴포넌트:",
|
|
1584
|
+
const g = w.default;
|
|
1585
|
+
if (console.log("팝업 뷰 컴포넌트:", g), !g)
|
|
1565
1586
|
throw new Error("팝업 뷰 컴포넌트를 찾을 수 없습니다");
|
|
1566
|
-
s(() =>
|
|
1567
|
-
} catch (
|
|
1568
|
-
console.error("팝업 뷰 로드 실패:",
|
|
1587
|
+
s(() => g), console.log("팝업 뷰 설정 완료");
|
|
1588
|
+
} catch (y) {
|
|
1589
|
+
console.error("팝업 뷰 로드 실패:", y), p(y instanceof Error ? y.message : "팝업 뷰 로드 실패");
|
|
1569
1590
|
} finally {
|
|
1570
|
-
|
|
1591
|
+
l(!1);
|
|
1571
1592
|
}
|
|
1572
1593
|
})();
|
|
1573
|
-
}, [r.popupUrl]), o ? /* @__PURE__ */
|
|
1574
|
-
/* @__PURE__ */ e(
|
|
1594
|
+
}, [r.popupUrl]), o ? /* @__PURE__ */ m("div", { className: "popup-loading", children: [
|
|
1595
|
+
/* @__PURE__ */ e(Y, { size: "large" }),
|
|
1575
1596
|
/* @__PURE__ */ e("p", { children: "팝업을 로드하는 중..." })
|
|
1576
|
-
] }) : h ? /* @__PURE__ */
|
|
1577
|
-
/* @__PURE__ */ e(
|
|
1597
|
+
] }) : h ? /* @__PURE__ */ m("div", { className: "popup-error", children: [
|
|
1598
|
+
/* @__PURE__ */ e(J, { description: h, image: J.PRESENTED_IMAGE_SIMPLE }),
|
|
1578
1599
|
/* @__PURE__ */ e(
|
|
1579
|
-
|
|
1600
|
+
I,
|
|
1580
1601
|
{
|
|
1581
|
-
icon: /* @__PURE__ */ e(
|
|
1602
|
+
icon: /* @__PURE__ */ e(fe, {}),
|
|
1582
1603
|
onClick: () => window.location.reload(),
|
|
1583
1604
|
children: "다시 시도"
|
|
1584
1605
|
}
|
|
1585
1606
|
)
|
|
1586
1607
|
] }) : n ? /* @__PURE__ */ e(
|
|
1587
|
-
|
|
1608
|
+
se,
|
|
1588
1609
|
{
|
|
1589
|
-
fallback: /* @__PURE__ */
|
|
1590
|
-
/* @__PURE__ */ e(
|
|
1610
|
+
fallback: /* @__PURE__ */ m("div", { className: "popup-loading", children: [
|
|
1611
|
+
/* @__PURE__ */ e(Y, { size: "large" }),
|
|
1591
1612
|
/* @__PURE__ */ e("p", { children: "컴포넌트를 로드하는 중..." })
|
|
1592
1613
|
] }),
|
|
1593
1614
|
children: /* @__PURE__ */ e(
|
|
@@ -1595,24 +1616,24 @@ const At = ({
|
|
|
1595
1616
|
{
|
|
1596
1617
|
popup: {
|
|
1597
1618
|
...r,
|
|
1598
|
-
close:
|
|
1619
|
+
close: u
|
|
1599
1620
|
// popup 객체에 close 이벤트 추가
|
|
1600
1621
|
},
|
|
1601
|
-
onClose:
|
|
1622
|
+
onClose: u
|
|
1602
1623
|
}
|
|
1603
1624
|
)
|
|
1604
1625
|
}
|
|
1605
|
-
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(
|
|
1606
|
-
},
|
|
1607
|
-
const { popups: t } =
|
|
1608
|
-
return t.length === 0 ? null : /* @__PURE__ */ e(
|
|
1626
|
+
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(J, { description: "팝업 내용을 불러올 수 없습니다." }) });
|
|
1627
|
+
}, Kt = ({ modules: r }) => {
|
|
1628
|
+
const { popups: t } = ae();
|
|
1629
|
+
return t.length === 0 ? null : /* @__PURE__ */ e(V, { children: t.map((n) => {
|
|
1609
1630
|
if (n.isLocal || n.popupCode.startsWith("CORE_"))
|
|
1610
1631
|
return null;
|
|
1611
|
-
const s = n.config || {}, o = s.width || n.width || 800,
|
|
1612
|
-
key:
|
|
1613
|
-
text:
|
|
1614
|
-
type:
|
|
1615
|
-
disabled:
|
|
1632
|
+
const s = n.config || {}, o = s.width || n.width || 800, l = s.height || n.height || 600, h = s.title || n.popupTitle, p = n.buttonList?.map((u, i) => ({
|
|
1633
|
+
key: u.btnId || `btn_${i}`,
|
|
1634
|
+
text: u.btnNm,
|
|
1635
|
+
type: u.btnId === "CLOSE" ? "default" : "primary",
|
|
1636
|
+
disabled: u.enblYn !== "Y",
|
|
1616
1637
|
danger: !1
|
|
1617
1638
|
})) || [];
|
|
1618
1639
|
return console.log("팝업 렌더링:", {
|
|
@@ -1620,52 +1641,52 @@ const At = ({
|
|
|
1620
1641
|
popupCode: n.popupCode,
|
|
1621
1642
|
title: h,
|
|
1622
1643
|
width: o,
|
|
1623
|
-
height:
|
|
1624
|
-
buttons:
|
|
1625
|
-
}), /* @__PURE__ */ e(
|
|
1644
|
+
height: l,
|
|
1645
|
+
buttons: p
|
|
1646
|
+
}), /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(jt, { popup: n, modules: r }) }, n.popupId) }, `sbp-${n.popupId}`);
|
|
1626
1647
|
}) });
|
|
1627
|
-
},
|
|
1628
|
-
const { popups: r, closePopup: t } =
|
|
1629
|
-
return /* @__PURE__ */ e(
|
|
1648
|
+
}, Ut = () => {
|
|
1649
|
+
const { popups: r, closePopup: t } = ae();
|
|
1650
|
+
return /* @__PURE__ */ e(V, { children: r.map((n) => {
|
|
1630
1651
|
if (!(n.isLocal || n.popupCode.startsWith("CORE_"))) return null;
|
|
1631
|
-
const s =
|
|
1652
|
+
const s = It[n.popupCode];
|
|
1632
1653
|
if (!s) return null;
|
|
1633
1654
|
const o = s.component;
|
|
1634
|
-
return /* @__PURE__ */ e(
|
|
1655
|
+
return /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(se, { fallback: null, children: /* @__PURE__ */ e(o, { popup: n, onClose: () => t(n.popupId) }) }, n.popupId) }, `sbp-${n.popupId}`);
|
|
1635
1656
|
}) });
|
|
1636
|
-
},
|
|
1657
|
+
}, Zt = (r) => ({
|
|
1637
1658
|
position: "absolute",
|
|
1638
1659
|
inset: 0,
|
|
1639
1660
|
visibility: r ? "visible" : "hidden",
|
|
1640
1661
|
opacity: r ? 1 : 0,
|
|
1641
1662
|
transition: "opacity 0.2s ease-in-out",
|
|
1642
1663
|
pointerEvents: r ? "auto" : "none"
|
|
1643
|
-
}),
|
|
1644
|
-
const { lock: t } =
|
|
1645
|
-
return
|
|
1664
|
+
}), Yt = ({ once: r = !0 }) => {
|
|
1665
|
+
const { lock: t } = we(), n = K(!1);
|
|
1666
|
+
return B(() => {
|
|
1646
1667
|
r && n.current || (n.current = !0, t());
|
|
1647
1668
|
}, [r, t]), null;
|
|
1648
|
-
},
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1651
|
-
}, []),
|
|
1652
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
1653
|
-
|
|
1669
|
+
}, qt = ({ isActive: r, flagged: t, tabKey: n, onUnlock: s, children: o }) => {
|
|
1670
|
+
const l = K(null), [h, p] = D(!1), u = A((y) => {
|
|
1671
|
+
l.current = y, p(!!y);
|
|
1672
|
+
}, []), i = Zt(r);
|
|
1673
|
+
return /* @__PURE__ */ e("div", { ref: u, style: i, children: h ? /* @__PURE__ */ m(
|
|
1674
|
+
ve,
|
|
1654
1675
|
{
|
|
1655
1676
|
idleMs: Number.POSITIVE_INFINITY,
|
|
1656
1677
|
persistLocked: !1,
|
|
1657
1678
|
overlayScope: "scoped",
|
|
1658
1679
|
overlayPosition: "absolute",
|
|
1659
|
-
eventTarget:
|
|
1680
|
+
eventTarget: l.current,
|
|
1660
1681
|
overlayId: `tab-overlay-${n}`,
|
|
1661
1682
|
onUnlock: async () => (s(), !0),
|
|
1662
1683
|
children: [
|
|
1663
|
-
r && t ? /* @__PURE__ */ e(
|
|
1684
|
+
r && t ? /* @__PURE__ */ e(Yt, { once: !0 }) : null,
|
|
1664
1685
|
o
|
|
1665
1686
|
]
|
|
1666
1687
|
}
|
|
1667
1688
|
) : o });
|
|
1668
|
-
},
|
|
1689
|
+
}, mn = ({
|
|
1669
1690
|
config: r = {},
|
|
1670
1691
|
modules: t = {
|
|
1671
1692
|
view: {
|
|
@@ -1676,38 +1697,38 @@ const At = ({
|
|
|
1676
1697
|
}
|
|
1677
1698
|
}
|
|
1678
1699
|
}) => {
|
|
1679
|
-
const n =
|
|
1700
|
+
const n = K(
|
|
1680
1701
|
/* @__PURE__ */ new Map()
|
|
1681
1702
|
), {
|
|
1682
1703
|
tabs: s,
|
|
1683
1704
|
tabParams: o,
|
|
1684
|
-
activeMenuId:
|
|
1705
|
+
activeMenuId: l,
|
|
1685
1706
|
tabProtectFlag: h,
|
|
1686
|
-
clearProtectFlagForKey:
|
|
1687
|
-
} =
|
|
1688
|
-
(
|
|
1689
|
-
const
|
|
1690
|
-
if (
|
|
1691
|
-
const w =
|
|
1692
|
-
let
|
|
1693
|
-
if (!
|
|
1694
|
-
const C =
|
|
1695
|
-
|
|
1707
|
+
clearProtectFlagForKey: p
|
|
1708
|
+
} = O(), u = A(
|
|
1709
|
+
(i) => {
|
|
1710
|
+
const y = n.current.get(i.key);
|
|
1711
|
+
if (y) return y;
|
|
1712
|
+
const w = i.gubun === "M" ? `${t.view.path}${i.menuItem?.scrnPath}.tsx` : `${t.view.path}${i.componentItem?.scrnPath}.tsx`;
|
|
1713
|
+
let g = t.view?.glob?.[w];
|
|
1714
|
+
if (!g && typeof import.meta < "u" && typeof import.meta.glob == "function" && (g = (/* @__PURE__ */ Object.assign({}))[w]), g) {
|
|
1715
|
+
const C = R(
|
|
1716
|
+
g
|
|
1696
1717
|
);
|
|
1697
|
-
return n.current.set(
|
|
1718
|
+
return n.current.set(i.key, C), C;
|
|
1698
1719
|
}
|
|
1699
1720
|
return null;
|
|
1700
1721
|
},
|
|
1701
1722
|
[t.view?.glob]
|
|
1702
1723
|
);
|
|
1703
|
-
return /* @__PURE__ */
|
|
1704
|
-
/* @__PURE__ */ e(
|
|
1705
|
-
/* @__PURE__ */
|
|
1706
|
-
/* @__PURE__ */ e(
|
|
1707
|
-
/* @__PURE__ */
|
|
1708
|
-
/* @__PURE__ */ e(
|
|
1709
|
-
/* @__PURE__ */
|
|
1710
|
-
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */
|
|
1724
|
+
return /* @__PURE__ */ m(j, { className: "main-layout", children: [
|
|
1725
|
+
/* @__PURE__ */ e(Ot, { config: r?.header }),
|
|
1726
|
+
/* @__PURE__ */ m(j, { children: [
|
|
1727
|
+
/* @__PURE__ */ e(_t, { config: r?.sidebar }),
|
|
1728
|
+
/* @__PURE__ */ m("div", { className: "content-container", children: [
|
|
1729
|
+
/* @__PURE__ */ e(Ft, { config: r?.menuTab }),
|
|
1730
|
+
/* @__PURE__ */ m(Pt, { config: r?.content, children: [
|
|
1731
|
+
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */ m(
|
|
1711
1732
|
"div",
|
|
1712
1733
|
{
|
|
1713
1734
|
style: {
|
|
@@ -1716,74 +1737,74 @@ const At = ({
|
|
|
1716
1737
|
height: "100%"
|
|
1717
1738
|
},
|
|
1718
1739
|
children: [
|
|
1719
|
-
s.map((
|
|
1720
|
-
const
|
|
1721
|
-
return /* @__PURE__ */ e(
|
|
1722
|
-
|
|
1740
|
+
s.map((i) => {
|
|
1741
|
+
const y = u(i), w = l === i.key, g = !!h?.[i.key], C = o[i.key] || {};
|
|
1742
|
+
return /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
|
|
1743
|
+
qt,
|
|
1723
1744
|
{
|
|
1724
1745
|
isActive: w,
|
|
1725
|
-
flagged:
|
|
1726
|
-
tabKey:
|
|
1727
|
-
onUnlock: () =>
|
|
1746
|
+
flagged: g,
|
|
1747
|
+
tabKey: i.key,
|
|
1748
|
+
onUnlock: () => p(i.key),
|
|
1728
1749
|
children: /* @__PURE__ */ e(
|
|
1729
|
-
|
|
1750
|
+
Ht,
|
|
1730
1751
|
{
|
|
1731
1752
|
isActive: w,
|
|
1732
|
-
instance:
|
|
1753
|
+
instance: y || void 0,
|
|
1733
1754
|
params: C
|
|
1734
1755
|
},
|
|
1735
|
-
|
|
1756
|
+
i.key
|
|
1736
1757
|
)
|
|
1737
1758
|
},
|
|
1738
|
-
|
|
1739
|
-
) }, `sbp-${
|
|
1759
|
+
i.key
|
|
1760
|
+
) }, `sbp-${i.key}`);
|
|
1740
1761
|
}),
|
|
1741
|
-
(!
|
|
1762
|
+
(!l || s.length === 0) && /* @__PURE__ */ e(Vt, {})
|
|
1742
1763
|
]
|
|
1743
1764
|
}
|
|
1744
1765
|
) }),
|
|
1745
|
-
/* @__PURE__ */ e(
|
|
1746
|
-
/* @__PURE__ */ e(
|
|
1766
|
+
/* @__PURE__ */ e(Ut, {}),
|
|
1767
|
+
/* @__PURE__ */ e(Kt, { modules: t?.popup })
|
|
1747
1768
|
] })
|
|
1748
1769
|
] })
|
|
1749
1770
|
] }),
|
|
1750
|
-
(r?.quickService?.visible ?? !0) && /* @__PURE__ */ e(
|
|
1771
|
+
(r?.quickService?.visible ?? !0) && /* @__PURE__ */ e(Te, {})
|
|
1751
1772
|
] });
|
|
1752
|
-
},
|
|
1753
|
-
function
|
|
1773
|
+
}, pn = ({ config: r, children: t }) => /* @__PURE__ */ e("div", { children: "BwgPortal02" });
|
|
1774
|
+
function hn({
|
|
1754
1775
|
config: r,
|
|
1755
1776
|
ui: t,
|
|
1756
1777
|
navigate: n
|
|
1757
1778
|
}) {
|
|
1758
|
-
const { loading: s, capsOn: o, prefills:
|
|
1759
|
-
return
|
|
1760
|
-
|
|
1761
|
-
}, []), /* @__PURE__ */ e(
|
|
1779
|
+
const { loading: s, capsOn: o, prefills: l, onKeyDown: h, doLogin: p } = Ke(r), u = (i) => p(i, n);
|
|
1780
|
+
return B(() => {
|
|
1781
|
+
Ue.getState().fetchSystemMap();
|
|
1782
|
+
}, []), /* @__PURE__ */ e(V, { children: t({ onSubmit: u, loading: s, capsOn: o, onKeyDown: h, prefills: l }) });
|
|
1762
1783
|
}
|
|
1763
|
-
function
|
|
1784
|
+
function gn({
|
|
1764
1785
|
onSubmit: r,
|
|
1765
1786
|
loading: t,
|
|
1766
1787
|
capsOn: n,
|
|
1767
1788
|
onKeyDown: s,
|
|
1768
1789
|
prefills: o,
|
|
1769
|
-
labels:
|
|
1790
|
+
labels: l = {
|
|
1770
1791
|
id: "ID 혹은 사번",
|
|
1771
1792
|
pw: "비밀번호",
|
|
1772
1793
|
remember: "Remember me",
|
|
1773
1794
|
login: "로그인"
|
|
1774
1795
|
},
|
|
1775
1796
|
header: h,
|
|
1776
|
-
footer:
|
|
1797
|
+
footer: p
|
|
1777
1798
|
}) {
|
|
1778
|
-
const [
|
|
1779
|
-
return
|
|
1780
|
-
o && (o.id || o.pswr) &&
|
|
1781
|
-
}, [o,
|
|
1799
|
+
const [u] = H.useForm();
|
|
1800
|
+
return B(() => {
|
|
1801
|
+
o && (o.id || o.pswr) && u.setFieldsValue({ id: o.id, pswr: o.pswr });
|
|
1802
|
+
}, [o, u]), /* @__PURE__ */ e("div", { className: "login-main", children: /* @__PURE__ */ m("div", { className: "login_wrap", children: [
|
|
1782
1803
|
h || /* @__PURE__ */ e("div", { className: "logo_box" }),
|
|
1783
1804
|
/* @__PURE__ */ e("div", { className: "login_title" }),
|
|
1784
|
-
/* @__PURE__ */ e(
|
|
1805
|
+
/* @__PURE__ */ e(H, { form: u, onFinish: r, className: "login-form", children: /* @__PURE__ */ m(Ae, { vertical: !0, children: [
|
|
1785
1806
|
/* @__PURE__ */ e(
|
|
1786
|
-
|
|
1807
|
+
H.Item,
|
|
1787
1808
|
{
|
|
1788
1809
|
name: "id",
|
|
1789
1810
|
rules: [
|
|
@@ -1793,45 +1814,45 @@ function mn({
|
|
|
1793
1814
|
message: "아이디는 공백이 들어갈 수 없습니다."
|
|
1794
1815
|
}
|
|
1795
1816
|
],
|
|
1796
|
-
children: /* @__PURE__ */ e(
|
|
1817
|
+
children: /* @__PURE__ */ e(te, { allowClear: !0, placeholder: l.id, onKeyDown: s })
|
|
1797
1818
|
}
|
|
1798
1819
|
),
|
|
1799
1820
|
/* @__PURE__ */ e(
|
|
1800
|
-
|
|
1821
|
+
H.Item,
|
|
1801
1822
|
{
|
|
1802
1823
|
name: "pswr",
|
|
1803
1824
|
rules: [{ required: !0, message: "비밀번호를 입력하세요." }],
|
|
1804
1825
|
children: /* @__PURE__ */ e(
|
|
1805
|
-
|
|
1826
|
+
te.Password,
|
|
1806
1827
|
{
|
|
1807
1828
|
allowClear: !0,
|
|
1808
|
-
placeholder:
|
|
1829
|
+
placeholder: l.pw,
|
|
1809
1830
|
onKeyDown: s
|
|
1810
1831
|
}
|
|
1811
1832
|
)
|
|
1812
1833
|
}
|
|
1813
1834
|
),
|
|
1814
|
-
/* @__PURE__ */ e(
|
|
1835
|
+
/* @__PURE__ */ e(H.Item, { name: "remember", valuePropName: "checked", children: /* @__PURE__ */ e(_e, { children: l.remember }) }),
|
|
1815
1836
|
/* @__PURE__ */ e("div", { className: n ? "caps-lock caps-lock-on" : "caps-lock", children: n ? "Caps Lock On" : "Caps Lock Off" }),
|
|
1816
|
-
/* @__PURE__ */ e(
|
|
1837
|
+
/* @__PURE__ */ e(H.Item, { children: /* @__PURE__ */ e(I, { type: "primary", htmlType: "submit", loading: t, block: !0, children: l.login }) })
|
|
1817
1838
|
] }) }),
|
|
1818
|
-
|
|
1839
|
+
p
|
|
1819
1840
|
] }) });
|
|
1820
1841
|
}
|
|
1821
1842
|
export {
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1843
|
+
un as A,
|
|
1844
|
+
mn as B,
|
|
1845
|
+
Ht as C,
|
|
1846
|
+
gn as D,
|
|
1847
|
+
dn as L,
|
|
1848
|
+
Kt as P,
|
|
1849
|
+
pn as a,
|
|
1850
|
+
hn as b,
|
|
1851
|
+
Vt as c,
|
|
1852
|
+
Pt as d,
|
|
1853
|
+
Ot as e,
|
|
1854
|
+
Ft as f,
|
|
1855
|
+
_t as g,
|
|
1856
|
+
qt as h,
|
|
1857
|
+
It as l
|
|
1837
1858
|
};
|