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