@bwg-ui/core 1.2.11 → 1.2.12
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/{MenuReport-CXsmjSvg.cjs → MenuReport-Bqeps5fC.cjs} +1 -1
- package/dist/chunks/{MenuReport-Dgq2wH6w.js → MenuReport-CozV1tpR.js} +28 -28
- package/dist/chunks/common-components-B-zgrX-L.cjs +1028 -0
- package/dist/chunks/common-components-XA2KG7Pl.js +30179 -0
- package/dist/chunks/{layout-components-yyItu5pi.js → layout-components-MrnKV5g7.js} +548 -478
- package/dist/chunks/layout-components-bb0cWC3I.cjs +35 -0
- package/dist/components/common/BwgGrid.d.ts +1 -1
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/BwgView.d.ts +9 -3
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.d.ts +1 -1
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +122 -122
- package/dist/components/guide/BwgPracticeGuide.d.ts +6 -0
- package/dist/components/guide/BwgPracticeGuide.d.ts.map +1 -0
- package/dist/components/guide/BwgPracticeGuideS00.d.ts +6 -0
- package/dist/components/guide/BwgPracticeGuideS00.d.ts.map +1 -0
- package/dist/components/guide/BwgPracticeGuideS01.d.ts +6 -0
- package/dist/components/guide/BwgPracticeGuideS01.d.ts.map +1 -0
- package/dist/components/guide/CMHldyCfg.d.ts +3 -0
- package/dist/components/guide/CMHldyCfg.d.ts.map +1 -0
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.d.ts +2 -0
- package/dist/components/guide/index.d.ts.map +1 -1
- package/dist/components/guide/index.js +645 -5
- package/dist/components/layout/BwgCoreLogin.d.ts +38 -0
- package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -0
- package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +13 -11
- package/dist/components/pages/auth/CMAuthMstrM01.d.ts +1 -2
- package/dist/components/pages/auth/CMAuthMstrM01.d.ts.map +1 -1
- package/dist/components/pages/auth/CMRoleMstrM01.d.ts +2 -1
- package/dist/components/pages/auth/CMRoleMstrM01.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMFileMstrM01.d.ts +2 -1
- package/dist/components/pages/rsrc/CMFileMstrM01.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMMenuMstrM01.d.ts +2 -1
- package/dist/components/pages/rsrc/CMMenuMstrM01.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts +2 -1
- package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMPrgrMstrM01.d.ts +2 -1
- package/dist/components/pages/rsrc/CMPrgrMstrM01.d.ts.map +1 -1
- package/dist/components/pages/syst/CMSystCfgM01.d.ts +2 -1
- package/dist/components/pages/syst/CMSystCfgM01.d.ts.map +1 -1
- package/dist/components/pages/syst/CMSystCodeM01.d.ts +2 -1
- package/dist/components/pages/syst/CMSystCodeM01.d.ts.map +1 -1
- package/dist/components/pages/types.d.ts +5 -0
- package/dist/components/pages/types.d.ts.map +1 -0
- package/dist/components/pages/user/CMUserMstrM01.d.ts +2 -1
- package/dist/components/pages/user/CMUserMstrM01.d.ts.map +1 -1
- package/dist/components/popup/SearchHolidayP01.d.ts +4 -0
- package/dist/components/popup/SearchHolidayP01.d.ts.map +1 -0
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +1 -0
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +4 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +256 -238
- package/dist/stores/favoriteStore.d.ts +10 -9
- package/dist/stores/favoriteStore.d.ts.map +1 -1
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.d.ts +4 -0
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +1129 -631
- package/dist/stores/loginStore.d.ts +64 -0
- package/dist/stores/loginStore.d.ts.map +1 -0
- package/dist/stores/menuModelStore.d.ts +1 -1
- package/dist/stores/menuViewStore.d.ts +1 -0
- package/dist/stores/menuViewStore.d.ts.map +1 -1
- package/dist/stores/systemStore.d.ts +32 -0
- package/dist/stores/systemStore.d.ts.map +1 -0
- package/dist/stores/userStore.d.ts +5 -5
- package/dist/stores/userStore.d.ts.map +1 -1
- package/dist/utils/apiUtils.d.ts +27 -60
- package/dist/utils/apiUtils.d.ts.map +1 -1
- package/dist/utils/gwUtils.d.ts +3 -2
- package/dist/utils/gwUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +3 -7
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1169 -1196
- package/dist/utils/serviceConfig.d.ts +1 -0
- package/dist/utils/serviceConfig.d.ts.map +1 -1
- package/dist/utils/userUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/common-components-Bp95qOup.js +0 -16236
- package/dist/chunks/common-components-CoRIM-Z-.cjs +0 -183
- package/dist/chunks/layout-components-hCEUMfz3.cjs +0 -35
|
@@ -1,20 +1,20 @@
|
|
|
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 {
|
|
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 g, jsx as e, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import { ServiceCodeProvider as me, CommonCodeProvider as pe, ScreenProtectProvider as he, useLock as ge, SearchBoxProvider as fe } from "../provider/index.js";
|
|
3
|
+
import { Routes as be, Route as K, Navigate as ye, useNavigate as Ce } from "react-router-dom";
|
|
4
|
+
import { G as ve, B as we, Q as xe } from "./common-components-XA2KG7Pl.js";
|
|
5
|
+
import { Spin as j, Layout as $, ColorPicker as ke, Button as w, Popover as Ne, Avatar as Ie, Tabs as Se, Tooltip as z, AutoComplete as Le, Input as Y, Segmented as Te, Menu as te, Result as ie, Space as Pe, Typography as Me, Empty as Z, Form as D, Flex as Be, Checkbox as Ee } from "antd";
|
|
6
|
+
import { lazy as F, useEffect as I, useState as L, useRef as V, useMemo as W, useCallback as B, createElement as le, memo as q, cloneElement as De, Component as Oe, Suspense as Q } from "react";
|
|
7
|
+
import { useLogout as Fe, useMenuViewStore as S, useMenuModelStore as Re, useFavoriteStore as Ae, usePopupStore as J, useLogin as ze, useSystemStore as $e } from "../stores/index.js";
|
|
8
|
+
import * as ne from "@ant-design/icons";
|
|
9
|
+
import { UserOutlined as Ve, StepBackwardOutlined as He, LeftOutlined as _e, RightOutlined as Ge, StepForwardOutlined as We, CloseOutlined as ce, MenuUnfoldOutlined as je, MenuFoldOutlined as Ue, ExclamationCircleOutlined as Ke, WarningOutlined as Ze, StarOutlined as Ye, FolderOpenOutlined as Xe, ReloadOutlined as de, ExclamationCircleTwoTone as qe } from "@ant-design/icons";
|
|
10
|
+
import { getCookie as Qe, getCurrentDateString as re, setCookie as Je, THEME_COOKIE_NAME as oe, getUserId as se } from "../utils/index.js";
|
|
11
|
+
import { useSensors as et, useSensor as tt, PointerSensor as nt, DndContext as rt, closestCenter as ot } from "@dnd-kit/core";
|
|
12
|
+
import { restrictToHorizontalAxis as st } from "@dnd-kit/modifiers";
|
|
13
|
+
import { arrayMove as at, SortableContext as it, horizontalListSortingStrategy as lt, useSortable as ct } from "@dnd-kit/sortable";
|
|
14
|
+
const dt = F(() => import("./MenuReport-CozV1tpR.js")), ut = F(() => import("./common-components-XA2KG7Pl.js").then((n) => n.V)), mt = F(() => import("./common-components-XA2KG7Pl.js").then((n) => n.W)), pt = F(() => import("./common-components-XA2KG7Pl.js").then((n) => n.X)), ht = F(() => import("./common-components-XA2KG7Pl.js").then((n) => n.Y)), gt = {
|
|
15
15
|
// 게시판/문의
|
|
16
16
|
CORE_REPORT: {
|
|
17
|
-
component:
|
|
17
|
+
component: dt,
|
|
18
18
|
defaultConfig: {
|
|
19
19
|
title: "게시판/문의",
|
|
20
20
|
width: 1200,
|
|
@@ -23,7 +23,7 @@ const st = D(() => import("./MenuReport-Dgq2wH6w.js")), at = D(() => import("./c
|
|
|
23
23
|
},
|
|
24
24
|
// 조직/부서 검색류
|
|
25
25
|
CORE_DEPARTMENT_01: {
|
|
26
|
-
component:
|
|
26
|
+
component: ut,
|
|
27
27
|
defaultConfig: {
|
|
28
28
|
title: "부서 검색",
|
|
29
29
|
width: 620,
|
|
@@ -31,7 +31,7 @@ const st = D(() => import("./MenuReport-Dgq2wH6w.js")), at = D(() => import("./c
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
CORE_DEPARTMENT_02: {
|
|
34
|
-
component:
|
|
34
|
+
component: mt,
|
|
35
35
|
defaultConfig: {
|
|
36
36
|
title: "부서 검색",
|
|
37
37
|
width: 620,
|
|
@@ -39,7 +39,7 @@ const st = D(() => import("./MenuReport-Dgq2wH6w.js")), at = D(() => import("./c
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
CORE_ORGANIZATION_01: {
|
|
42
|
-
component:
|
|
42
|
+
component: pt,
|
|
43
43
|
defaultConfig: {
|
|
44
44
|
title: "조직 검색",
|
|
45
45
|
width: 620,
|
|
@@ -47,18 +47,18 @@ const st = D(() => import("./MenuReport-Dgq2wH6w.js")), at = D(() => import("./c
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
CORE_ORGANIZATION_02: {
|
|
50
|
-
component:
|
|
50
|
+
component: ht,
|
|
51
51
|
defaultConfig: {
|
|
52
52
|
title: "조직 검색",
|
|
53
53
|
width: 1e3,
|
|
54
54
|
height: 700
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
},
|
|
58
|
-
function
|
|
59
|
-
if (typeof document > "u" || document.getElementById(
|
|
57
|
+
}, ae = "bwg-dot-line-wave-v4";
|
|
58
|
+
function ft() {
|
|
59
|
+
if (typeof document > "u" || document.getElementById(ae)) return;
|
|
60
60
|
const n = document.createElement("style");
|
|
61
|
-
n.id =
|
|
61
|
+
n.id = ae, n.textContent = `
|
|
62
62
|
.bwg-dotline {
|
|
63
63
|
display: inline-flex;
|
|
64
64
|
align-items: center;
|
|
@@ -94,49 +94,49 @@ function ut() {
|
|
|
94
94
|
}
|
|
95
95
|
`, document.head.appendChild(n);
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const bt = ({
|
|
98
98
|
colors: n = ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
99
99
|
count: t,
|
|
100
100
|
size: r = 12,
|
|
101
|
-
gap:
|
|
102
|
-
amp:
|
|
103
|
-
speedMs:
|
|
104
|
-
direction:
|
|
105
|
-
phase:
|
|
101
|
+
gap: o = 10,
|
|
102
|
+
amp: s = 16,
|
|
103
|
+
speedMs: d = 900,
|
|
104
|
+
direction: f = "ltr",
|
|
105
|
+
phase: i = 0.7
|
|
106
106
|
}) => {
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
I(() => {
|
|
108
|
+
ft();
|
|
109
109
|
}, []);
|
|
110
|
-
const
|
|
110
|
+
const u = t ?? n.length, m = Array.from({ length: u }), h = {
|
|
111
111
|
"--bwg-size": `${r}px`,
|
|
112
|
-
"--bwg-gap": `${
|
|
113
|
-
"--bwg-amp": `${
|
|
114
|
-
"--bwg-speed": `${
|
|
115
|
-
}, C =
|
|
112
|
+
"--bwg-gap": `${o}px`,
|
|
113
|
+
"--bwg-amp": `${s}px`,
|
|
114
|
+
"--bwg-speed": `${d}ms`
|
|
115
|
+
}, C = d / u * i;
|
|
116
116
|
return /* @__PURE__ */ e(
|
|
117
117
|
"span",
|
|
118
118
|
{
|
|
119
119
|
className: "bwg-dotline",
|
|
120
120
|
role: "img",
|
|
121
121
|
"aria-label": "loading",
|
|
122
|
-
style:
|
|
123
|
-
children:
|
|
122
|
+
style: h,
|
|
123
|
+
children: m.map((a, l) => /* @__PURE__ */ e(
|
|
124
124
|
"span",
|
|
125
125
|
{
|
|
126
126
|
className: "dot",
|
|
127
127
|
style: {
|
|
128
|
-
backgroundColor: n[
|
|
129
|
-
animationDelay:
|
|
128
|
+
backgroundColor: n[l % n.length],
|
|
129
|
+
animationDelay: f === "ltr" ? `${l * C}ms` : `${(u - 1 - l) * C}ms`
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
|
-
|
|
132
|
+
l
|
|
133
133
|
))
|
|
134
134
|
}
|
|
135
135
|
);
|
|
136
|
-
},
|
|
136
|
+
}, Jt = ({
|
|
137
137
|
spin: n = null,
|
|
138
138
|
text: t = "인증중..."
|
|
139
|
-
}) => n ?? !0 ? /* @__PURE__ */
|
|
139
|
+
}) => n ?? !0 ? /* @__PURE__ */ g(
|
|
140
140
|
"div",
|
|
141
141
|
{
|
|
142
142
|
style: {
|
|
@@ -160,10 +160,10 @@ const pt = ({
|
|
|
160
160
|
role: "status",
|
|
161
161
|
children: [
|
|
162
162
|
/* @__PURE__ */ e(
|
|
163
|
-
|
|
163
|
+
j,
|
|
164
164
|
{
|
|
165
165
|
indicator: /* @__PURE__ */ e(
|
|
166
|
-
|
|
166
|
+
bt,
|
|
167
167
|
{
|
|
168
168
|
colors: ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
169
169
|
size: 12,
|
|
@@ -179,14 +179,14 @@ const pt = ({
|
|
|
179
179
|
/* @__PURE__ */ e("span", { className: "bwg-spin-txt", style: { marginTop: "15px" }, children: t })
|
|
180
180
|
]
|
|
181
181
|
}
|
|
182
|
-
) : null,
|
|
183
|
-
let
|
|
184
|
-
/* @__PURE__ */ e(
|
|
185
|
-
/* @__PURE__ */ e(
|
|
186
|
-
/* @__PURE__ */ e(
|
|
182
|
+
) : null, en = ({ routes: n, useCommonProvider: t = !0, useServiceProvider: r = !0 }) => {
|
|
183
|
+
let s = /* @__PURE__ */ g(be, { children: [
|
|
184
|
+
/* @__PURE__ */ e(K, { path: "/", element: /* @__PURE__ */ e(ye, { to: "/login" }) }),
|
|
185
|
+
/* @__PURE__ */ e(K, { path: "/login", element: n.login }),
|
|
186
|
+
/* @__PURE__ */ e(K, { path: "/main", element: n.main })
|
|
187
187
|
] });
|
|
188
|
-
return r && (
|
|
189
|
-
}, { Content:
|
|
188
|
+
return r && (s = /* @__PURE__ */ e(me, { children: s })), t && (s = /* @__PURE__ */ e(pe, { children: s })), /* @__PURE__ */ e(ve, { children: s });
|
|
189
|
+
}, { Content: yt } = $, Ct = ({
|
|
190
190
|
config: n = {},
|
|
191
191
|
children: t
|
|
192
192
|
}) => {
|
|
@@ -202,11 +202,11 @@ const pt = ({
|
|
|
202
202
|
...n
|
|
203
203
|
};
|
|
204
204
|
return /* @__PURE__ */ e(
|
|
205
|
-
|
|
205
|
+
yt,
|
|
206
206
|
{
|
|
207
207
|
className: r.wrapper.className,
|
|
208
208
|
style: r.wrapper.style,
|
|
209
|
-
children: /* @__PURE__ */ e(
|
|
209
|
+
children: /* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(
|
|
210
210
|
"div",
|
|
211
211
|
{
|
|
212
212
|
className: r.body.className,
|
|
@@ -216,7 +216,7 @@ const pt = ({
|
|
|
216
216
|
) })
|
|
217
217
|
}
|
|
218
218
|
);
|
|
219
|
-
},
|
|
219
|
+
}, vt = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='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", wt = "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", xt = "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: kt } = $, M = {
|
|
220
220
|
light: {
|
|
221
221
|
headerBg: "#ffffff",
|
|
222
222
|
headerText: "#000000",
|
|
@@ -269,7 +269,7 @@ const pt = ({
|
|
|
269
269
|
buttonDefaultBorder: "#dddddd",
|
|
270
270
|
buttonPermissionBorder: "#bdb1ff"
|
|
271
271
|
}
|
|
272
|
-
},
|
|
272
|
+
}, Nt = ({ config: n = {} }) => {
|
|
273
273
|
const t = {
|
|
274
274
|
wrapper: {
|
|
275
275
|
className: "header-wrapper",
|
|
@@ -290,80 +290,80 @@ const pt = ({
|
|
|
290
290
|
...n.right
|
|
291
291
|
},
|
|
292
292
|
...n
|
|
293
|
-
}, r =
|
|
293
|
+
}, r = Ce(), [o, s] = L("modern"), d = V(null), f = Fe(), i = (a, l) => {
|
|
294
294
|
try {
|
|
295
|
-
if (!/^[a-zA-Z0-9-]+$/.test(
|
|
296
|
-
console.warn(`Invalid CSS variable name: ${
|
|
295
|
+
if (!/^[a-zA-Z0-9-]+$/.test(a)) {
|
|
296
|
+
console.warn(`Invalid CSS variable name: ${a}`);
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
|
-
if (!/^[#a-zA-Z0-9()\s,.-]+$/.test(
|
|
300
|
-
console.warn(`Invalid CSS variable value: ${
|
|
299
|
+
if (!/^[#a-zA-Z0-9()\s,.-]+$/.test(l)) {
|
|
300
|
+
console.warn(`Invalid CSS variable value: ${l}`);
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
|
-
document.documentElement.style.setProperty(
|
|
303
|
+
document.documentElement.style.setProperty(a, l);
|
|
304
304
|
} catch (T) {
|
|
305
305
|
console.error("CSS variable setting failed:", T);
|
|
306
306
|
}
|
|
307
|
-
},
|
|
308
|
-
if (!
|
|
309
|
-
console.warn(`Invalid theme: ${
|
|
307
|
+
}, u = (a) => {
|
|
308
|
+
if (!M[a]) {
|
|
309
|
+
console.warn(`Invalid theme: ${a}`);
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
|
-
a
|
|
313
|
-
const
|
|
314
|
-
|
|
312
|
+
s(a);
|
|
313
|
+
const l = { ...M[a] };
|
|
314
|
+
i("--header-bg", l.headerBg), i("--header-text", l.headerText), i("--sidebar-bg", l.sidebarBg), i("--sidebar-text", l.sidebarText), i("--button-primary", l.buttonPrimary), i("--button-primary-hover", l.buttonPrimaryHover), i("--button-primary-active", l.buttonPrimaryActive), i("--button-default", l.buttonDefault), i("--button-default-hover", l.buttonDefaultHover), i("--button-default-border", l.buttonDefaultBorder), i(
|
|
315
315
|
"--button-permission-border",
|
|
316
|
-
|
|
317
|
-
),
|
|
316
|
+
l.buttonPermissionBorder
|
|
317
|
+
), d.current && d.current.setAttribute("data-theme", a), document.documentElement.setAttribute("data-theme", a), Je(oe, a, 30);
|
|
318
318
|
};
|
|
319
|
-
|
|
320
|
-
const
|
|
321
|
-
|
|
319
|
+
I(() => {
|
|
320
|
+
const a = Qe(oe);
|
|
321
|
+
a && M[a] ? u(a) : u("modern");
|
|
322
322
|
}, []);
|
|
323
|
-
const
|
|
324
|
-
|
|
323
|
+
const m = () => ({ ...M[o] }).headerBg, h = () => {
|
|
324
|
+
f(), r("/login");
|
|
325
325
|
};
|
|
326
|
-
|
|
327
|
-
const C = /* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
/* @__PURE__ */ e(
|
|
326
|
+
re ? re("HH:mm:ss") : (/* @__PURE__ */ new Date()).toLocaleTimeString("ko-KR");
|
|
327
|
+
const C = /* @__PURE__ */ g("div", { style: { padding: "8px 0" }, children: [
|
|
328
|
+
/* @__PURE__ */ g("div", { style: { marginBottom: "12px" }, children: [
|
|
329
|
+
/* @__PURE__ */ e(ke, { value: m(), disabled: !0, size: "small" }),
|
|
330
330
|
/* @__PURE__ */ e("span", { style: { marginLeft: "8px", fontSize: "12px" }, children: "현재 테마 색상" })
|
|
331
331
|
] }),
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
|
|
333
333
|
/* @__PURE__ */ e(
|
|
334
|
-
|
|
334
|
+
w,
|
|
335
335
|
{
|
|
336
|
-
type:
|
|
336
|
+
type: o === "modern" ? "primary" : "default",
|
|
337
337
|
size: "small",
|
|
338
|
-
onClick: () =>
|
|
338
|
+
onClick: () => u("modern"),
|
|
339
339
|
style: {
|
|
340
340
|
textAlign: "left",
|
|
341
|
-
backgroundColor:
|
|
342
|
-
color:
|
|
341
|
+
backgroundColor: o === "modern" ? M.modern.headerBg : void 0,
|
|
342
|
+
color: o === "modern" ? M.modern.headerText : void 0
|
|
343
343
|
},
|
|
344
344
|
children: "모던"
|
|
345
345
|
},
|
|
346
346
|
"modern"
|
|
347
347
|
),
|
|
348
|
-
Object.entries(
|
|
349
|
-
|
|
348
|
+
Object.entries(M).filter(([a]) => a !== "modern").map(([a, l]) => /* @__PURE__ */ e(
|
|
349
|
+
w,
|
|
350
350
|
{
|
|
351
|
-
type:
|
|
351
|
+
type: o === a ? "primary" : "default",
|
|
352
352
|
size: "small",
|
|
353
|
-
onClick: () =>
|
|
353
|
+
onClick: () => u(a),
|
|
354
354
|
style: {
|
|
355
355
|
textAlign: "left",
|
|
356
|
-
backgroundColor:
|
|
357
|
-
color:
|
|
356
|
+
backgroundColor: o === a ? l.headerBg : void 0,
|
|
357
|
+
color: o === a ? l.headerText : void 0
|
|
358
358
|
},
|
|
359
|
-
children:
|
|
359
|
+
children: a === "light" ? "라이트" : a === "dark" ? "다크" : a === "blue" ? "블루" : a
|
|
360
360
|
},
|
|
361
|
-
|
|
361
|
+
a
|
|
362
362
|
))
|
|
363
363
|
] })
|
|
364
364
|
] });
|
|
365
|
-
return /* @__PURE__ */
|
|
366
|
-
|
|
365
|
+
return /* @__PURE__ */ g(
|
|
366
|
+
kt,
|
|
367
367
|
{
|
|
368
368
|
className: t.wrapper.className,
|
|
369
369
|
style: { ...t.wrapper.style },
|
|
@@ -376,7 +376,7 @@ const pt = ({
|
|
|
376
376
|
children: t.logo?.items
|
|
377
377
|
}
|
|
378
378
|
) }),
|
|
379
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ g(
|
|
380
380
|
"div",
|
|
381
381
|
{
|
|
382
382
|
className: "header-right",
|
|
@@ -385,45 +385,45 @@ const pt = ({
|
|
|
385
385
|
minWidth: t.right?.minWidth
|
|
386
386
|
},
|
|
387
387
|
children: [
|
|
388
|
-
t.right?.items?.map((
|
|
388
|
+
t.right?.items?.map((a, l) => /* @__PURE__ */ e("div", { children: a }, l)),
|
|
389
389
|
/* @__PURE__ */ e(
|
|
390
|
-
|
|
390
|
+
w,
|
|
391
391
|
{
|
|
392
392
|
type: "text",
|
|
393
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
393
|
+
icon: /* @__PURE__ */ e("img", { src: vt, alt: "알림" }),
|
|
394
394
|
className: "alarm-btn"
|
|
395
395
|
}
|
|
396
396
|
),
|
|
397
397
|
/* @__PURE__ */ e(
|
|
398
|
-
|
|
398
|
+
Ne,
|
|
399
399
|
{
|
|
400
400
|
content: C,
|
|
401
401
|
title: "테마 설정",
|
|
402
402
|
trigger: "click",
|
|
403
403
|
placement: "bottomRight",
|
|
404
404
|
children: /* @__PURE__ */ e(
|
|
405
|
-
|
|
405
|
+
w,
|
|
406
406
|
{
|
|
407
407
|
type: "text",
|
|
408
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
408
|
+
icon: /* @__PURE__ */ e("img", { src: xt, alt: "개인설정" }),
|
|
409
409
|
className: "theme-btn"
|
|
410
410
|
}
|
|
411
411
|
)
|
|
412
412
|
}
|
|
413
413
|
),
|
|
414
414
|
/* @__PURE__ */ e(
|
|
415
|
-
|
|
415
|
+
w,
|
|
416
416
|
{
|
|
417
417
|
type: "text",
|
|
418
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
419
|
-
onClick:
|
|
418
|
+
icon: /* @__PURE__ */ e("img", { src: wt, alt: "로그아웃" }),
|
|
419
|
+
onClick: h,
|
|
420
420
|
className: "logout-btn"
|
|
421
421
|
}
|
|
422
422
|
),
|
|
423
423
|
/* @__PURE__ */ e(
|
|
424
|
-
|
|
424
|
+
Ie,
|
|
425
425
|
{
|
|
426
|
-
icon: /* @__PURE__ */ e(
|
|
426
|
+
icon: /* @__PURE__ */ e(Ve, {}),
|
|
427
427
|
className: "avatar",
|
|
428
428
|
style: {
|
|
429
429
|
width: t.right?.avatar?.width,
|
|
@@ -437,7 +437,7 @@ const pt = ({
|
|
|
437
437
|
]
|
|
438
438
|
}
|
|
439
439
|
);
|
|
440
|
-
},
|
|
440
|
+
}, X = /* @__PURE__ */ Object.freeze({
|
|
441
441
|
Translate: {
|
|
442
442
|
toString(n) {
|
|
443
443
|
if (!n)
|
|
@@ -463,7 +463,7 @@ const pt = ({
|
|
|
463
463
|
Transform: {
|
|
464
464
|
toString(n) {
|
|
465
465
|
if (n)
|
|
466
|
-
return [
|
|
466
|
+
return [X.Translate.toString(n), X.Scale.toString(n)].join(" ");
|
|
467
467
|
}
|
|
468
468
|
},
|
|
469
469
|
Transition: {
|
|
@@ -471,161 +471,161 @@ const pt = ({
|
|
|
471
471
|
let {
|
|
472
472
|
property: t,
|
|
473
473
|
duration: r,
|
|
474
|
-
easing:
|
|
474
|
+
easing: o
|
|
475
475
|
} = n;
|
|
476
|
-
return t + " " + r + "ms " +
|
|
476
|
+
return t + " " + r + "ms " + o;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
}),
|
|
479
|
+
}), It = q(
|
|
480
480
|
({ className: n, ...t }) => {
|
|
481
|
-
const r =
|
|
482
|
-
attributes:
|
|
483
|
-
listeners:
|
|
484
|
-
transform:
|
|
485
|
-
transition:
|
|
486
|
-
isDragging:
|
|
487
|
-
setNodeRef:
|
|
488
|
-
} =
|
|
489
|
-
|
|
490
|
-
const
|
|
491
|
-
if (
|
|
492
|
-
if (
|
|
493
|
-
const
|
|
494
|
-
|
|
481
|
+
const r = V(null), {
|
|
482
|
+
attributes: o,
|
|
483
|
+
listeners: s,
|
|
484
|
+
transform: d,
|
|
485
|
+
transition: f,
|
|
486
|
+
isDragging: i,
|
|
487
|
+
setNodeRef: u
|
|
488
|
+
} = ct({ id: t["data-node-key"] }), [m, h] = L();
|
|
489
|
+
I(() => {
|
|
490
|
+
const a = r.current;
|
|
491
|
+
if (a)
|
|
492
|
+
if (i) {
|
|
493
|
+
const l = Math.round(a.getBoundingClientRect().width);
|
|
494
|
+
h(l);
|
|
495
495
|
} else
|
|
496
|
-
|
|
497
|
-
}, [
|
|
496
|
+
h(void 0);
|
|
497
|
+
}, [i]);
|
|
498
498
|
const C = {
|
|
499
499
|
...t.style,
|
|
500
|
-
transform:
|
|
501
|
-
transition:
|
|
500
|
+
transform: d ? X.Transform.toString(d) : void 0,
|
|
501
|
+
transition: f ?? "transform 0.16s ease",
|
|
502
502
|
cursor: "grab",
|
|
503
503
|
userSelect: "none",
|
|
504
504
|
willChange: "transform",
|
|
505
505
|
// ✅ 드래그 중 픽셀 폭 고정 (flex 재계산 억제)
|
|
506
|
-
width:
|
|
507
|
-
minWidth:
|
|
508
|
-
maxWidth:
|
|
509
|
-
flex:
|
|
506
|
+
width: m ?? void 0,
|
|
507
|
+
minWidth: m ?? void 0,
|
|
508
|
+
maxWidth: m ?? void 0,
|
|
509
|
+
flex: m !== void 0 ? "0 0 auto" : void 0
|
|
510
510
|
};
|
|
511
|
-
return
|
|
512
|
-
ref: (
|
|
513
|
-
r.current !==
|
|
511
|
+
return De(t.children, {
|
|
512
|
+
ref: (a) => {
|
|
513
|
+
r.current !== a && (r.current = a), u(a);
|
|
514
514
|
},
|
|
515
515
|
style: C,
|
|
516
|
-
...
|
|
517
|
-
...
|
|
516
|
+
...o,
|
|
517
|
+
...s
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
),
|
|
520
|
+
), St = q(function({
|
|
521
521
|
config: t,
|
|
522
522
|
isFirst: r,
|
|
523
|
-
isLast:
|
|
524
|
-
canCloseAll:
|
|
525
|
-
onFirst:
|
|
526
|
-
onPrev:
|
|
527
|
-
onNext:
|
|
528
|
-
onLast:
|
|
529
|
-
onCloseAll:
|
|
523
|
+
isLast: o,
|
|
524
|
+
canCloseAll: s,
|
|
525
|
+
onFirst: d,
|
|
526
|
+
onPrev: f,
|
|
527
|
+
onNext: i,
|
|
528
|
+
onLast: u,
|
|
529
|
+
onCloseAll: m
|
|
530
530
|
}) {
|
|
531
|
-
return /* @__PURE__ */
|
|
531
|
+
return /* @__PURE__ */ g("div", { className: t.wrapper?.className, style: t.wrapper?.style, children: [
|
|
532
532
|
/* @__PURE__ */ e(
|
|
533
|
-
|
|
533
|
+
z,
|
|
534
534
|
{
|
|
535
535
|
title: "첫 번째 탭",
|
|
536
536
|
className: t.tooltip?.className,
|
|
537
537
|
style: t.tooltip?.style,
|
|
538
538
|
children: /* @__PURE__ */ e(
|
|
539
|
-
|
|
539
|
+
w,
|
|
540
540
|
{
|
|
541
541
|
className: t.buttons?.className,
|
|
542
542
|
style: t.buttons?.style,
|
|
543
543
|
size: "small",
|
|
544
|
-
icon: /* @__PURE__ */ e(
|
|
545
|
-
onClick:
|
|
544
|
+
icon: /* @__PURE__ */ e(He, {}),
|
|
545
|
+
onClick: d,
|
|
546
546
|
disabled: r
|
|
547
547
|
}
|
|
548
548
|
)
|
|
549
549
|
}
|
|
550
550
|
),
|
|
551
551
|
/* @__PURE__ */ e(
|
|
552
|
-
|
|
552
|
+
z,
|
|
553
553
|
{
|
|
554
554
|
title: "이전 탭",
|
|
555
555
|
className: t.tooltip?.className,
|
|
556
556
|
style: t.tooltip?.style,
|
|
557
557
|
children: /* @__PURE__ */ e(
|
|
558
|
-
|
|
558
|
+
w,
|
|
559
559
|
{
|
|
560
560
|
className: t.buttons?.className,
|
|
561
561
|
style: t.buttons?.style,
|
|
562
562
|
size: "small",
|
|
563
|
-
icon: /* @__PURE__ */ e(
|
|
564
|
-
onClick:
|
|
563
|
+
icon: /* @__PURE__ */ e(_e, {}),
|
|
564
|
+
onClick: f,
|
|
565
565
|
disabled: r
|
|
566
566
|
}
|
|
567
567
|
)
|
|
568
568
|
}
|
|
569
569
|
),
|
|
570
570
|
/* @__PURE__ */ e(
|
|
571
|
-
|
|
571
|
+
z,
|
|
572
572
|
{
|
|
573
573
|
title: "다음 탭",
|
|
574
574
|
className: t.tooltip?.className,
|
|
575
575
|
style: t.tooltip?.style,
|
|
576
576
|
children: /* @__PURE__ */ e(
|
|
577
|
-
|
|
577
|
+
w,
|
|
578
578
|
{
|
|
579
579
|
className: t.buttons?.className,
|
|
580
580
|
style: t.buttons?.style,
|
|
581
581
|
size: "small",
|
|
582
|
-
icon: /* @__PURE__ */ e(
|
|
583
|
-
onClick:
|
|
584
|
-
disabled:
|
|
582
|
+
icon: /* @__PURE__ */ e(Ge, {}),
|
|
583
|
+
onClick: i,
|
|
584
|
+
disabled: o
|
|
585
585
|
}
|
|
586
586
|
)
|
|
587
587
|
}
|
|
588
588
|
),
|
|
589
589
|
/* @__PURE__ */ e(
|
|
590
|
-
|
|
590
|
+
z,
|
|
591
591
|
{
|
|
592
592
|
title: "마지막 탭",
|
|
593
593
|
className: t.tooltip?.className,
|
|
594
594
|
style: t.tooltip?.style,
|
|
595
595
|
children: /* @__PURE__ */ e(
|
|
596
|
-
|
|
596
|
+
w,
|
|
597
597
|
{
|
|
598
598
|
className: t.buttons?.className,
|
|
599
599
|
style: t.buttons?.style,
|
|
600
600
|
size: "small",
|
|
601
|
-
icon: /* @__PURE__ */ e(
|
|
602
|
-
onClick:
|
|
603
|
-
disabled:
|
|
601
|
+
icon: /* @__PURE__ */ e(We, {}),
|
|
602
|
+
onClick: u,
|
|
603
|
+
disabled: o
|
|
604
604
|
}
|
|
605
605
|
)
|
|
606
606
|
}
|
|
607
607
|
),
|
|
608
608
|
/* @__PURE__ */ e(
|
|
609
|
-
|
|
609
|
+
z,
|
|
610
610
|
{
|
|
611
611
|
title: "모든 탭 닫기",
|
|
612
612
|
className: t.tooltip?.className,
|
|
613
613
|
style: t.tooltip?.style,
|
|
614
614
|
children: /* @__PURE__ */ e(
|
|
615
|
-
|
|
615
|
+
w,
|
|
616
616
|
{
|
|
617
617
|
className: t.buttons?.className,
|
|
618
618
|
style: t.buttons?.style,
|
|
619
619
|
size: "small",
|
|
620
|
-
icon: /* @__PURE__ */ e(
|
|
621
|
-
onClick:
|
|
622
|
-
disabled: !
|
|
620
|
+
icon: /* @__PURE__ */ e(ce, {}),
|
|
621
|
+
onClick: m,
|
|
622
|
+
disabled: !s
|
|
623
623
|
}
|
|
624
624
|
)
|
|
625
625
|
}
|
|
626
626
|
)
|
|
627
627
|
] });
|
|
628
|
-
}),
|
|
628
|
+
}), Lt = ({
|
|
629
629
|
config: n = {}
|
|
630
630
|
}) => {
|
|
631
631
|
const t = {
|
|
@@ -653,61 +653,61 @@ const pt = ({
|
|
|
653
653
|
...n?.nav
|
|
654
654
|
},
|
|
655
655
|
...n
|
|
656
|
-
}, r =
|
|
657
|
-
|
|
658
|
-
),
|
|
659
|
-
|
|
660
|
-
},
|
|
661
|
-
k === "remove" && typeof
|
|
662
|
-
},
|
|
663
|
-
r.length > 0 &&
|
|
656
|
+
}, r = S((p) => p.tabs), o = S((p) => p.activeMenuId), s = S((p) => p.focusTab), d = S((p) => p.closeTab), f = S((p) => p.reorderTabs), i = et(
|
|
657
|
+
tt(nt, { activationConstraint: { distance: 6 } })
|
|
658
|
+
), u = (p) => {
|
|
659
|
+
s(p);
|
|
660
|
+
}, m = (p, k) => {
|
|
661
|
+
k === "remove" && typeof p == "string" && d(p);
|
|
662
|
+
}, h = () => {
|
|
663
|
+
r.length > 0 && s(r[0].key);
|
|
664
664
|
}, C = () => {
|
|
665
|
-
if (!
|
|
666
|
-
const
|
|
667
|
-
|
|
668
|
-
},
|
|
669
|
-
if (!
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
},
|
|
673
|
-
r.length > 0 &&
|
|
665
|
+
if (!o || r.length <= 1) return;
|
|
666
|
+
const p = r.findIndex((k) => k.key === o);
|
|
667
|
+
p > 0 && s(r[p - 1].key);
|
|
668
|
+
}, a = () => {
|
|
669
|
+
if (!o || r.length <= 1) return;
|
|
670
|
+
const p = r.findIndex((k) => k.key === o);
|
|
671
|
+
p < r.length - 1 && s(r[p + 1].key);
|
|
672
|
+
}, l = () => {
|
|
673
|
+
r.length > 0 && s(r[r.length - 1].key);
|
|
674
674
|
}, T = () => {
|
|
675
|
-
r.forEach((
|
|
676
|
-
|
|
675
|
+
r.forEach((p) => {
|
|
676
|
+
d(p.key);
|
|
677
677
|
});
|
|
678
|
-
},
|
|
679
|
-
() => r.map((
|
|
680
|
-
key:
|
|
681
|
-
label:
|
|
678
|
+
}, R = o ? r.findIndex((p) => p.key === o) : -1, H = R === 0, A = R === r.length - 1, U = W(
|
|
679
|
+
() => r.map((p) => ({
|
|
680
|
+
key: p.key,
|
|
681
|
+
label: p.label,
|
|
682
682
|
closable: !0,
|
|
683
683
|
children: null
|
|
684
684
|
// 컨텐츠는 Main 쪽에서 렌더 → 여기선 헤더만 필요
|
|
685
685
|
})),
|
|
686
686
|
[r]
|
|
687
|
-
),
|
|
688
|
-
({ active:
|
|
689
|
-
if (!k ||
|
|
690
|
-
const N = r.findIndex((
|
|
691
|
-
if (N < 0 ||
|
|
692
|
-
const
|
|
693
|
-
|
|
687
|
+
), _ = B(
|
|
688
|
+
({ active: p, over: k }) => {
|
|
689
|
+
if (!k || p.id === k.id) return;
|
|
690
|
+
const N = r.findIndex((c) => c.key === p.id), P = r.findIndex((c) => c.key === k.id);
|
|
691
|
+
if (N < 0 || P < 0 || N === P) return;
|
|
692
|
+
const b = r.map((c) => c.key), y = at(b, N, P);
|
|
693
|
+
f?.(y);
|
|
694
694
|
},
|
|
695
|
-
[r,
|
|
696
|
-
), G =
|
|
697
|
-
(
|
|
698
|
-
|
|
695
|
+
[r, f]
|
|
696
|
+
), G = B(
|
|
697
|
+
(p, k) => /* @__PURE__ */ e(
|
|
698
|
+
rt,
|
|
699
699
|
{
|
|
700
|
-
sensors:
|
|
701
|
-
onDragEnd:
|
|
702
|
-
collisionDetection:
|
|
703
|
-
modifiers: [
|
|
700
|
+
sensors: i,
|
|
701
|
+
onDragEnd: _,
|
|
702
|
+
collisionDetection: ot,
|
|
703
|
+
modifiers: [st],
|
|
704
704
|
children: /* @__PURE__ */ e(
|
|
705
|
-
|
|
705
|
+
it,
|
|
706
706
|
{
|
|
707
707
|
items: r.map((N) => N.key),
|
|
708
|
-
strategy:
|
|
709
|
-
children: /* @__PURE__ */ e(k, { ...
|
|
710
|
-
|
|
708
|
+
strategy: lt,
|
|
709
|
+
children: /* @__PURE__ */ e(k, { ...p, children: (N) => /* @__PURE__ */ le(
|
|
710
|
+
It,
|
|
711
711
|
{
|
|
712
712
|
...N.props,
|
|
713
713
|
key: N.key
|
|
@@ -718,7 +718,7 @@ const pt = ({
|
|
|
718
718
|
)
|
|
719
719
|
}
|
|
720
720
|
),
|
|
721
|
-
[
|
|
721
|
+
[i, _, r]
|
|
722
722
|
);
|
|
723
723
|
return /* @__PURE__ */ e(
|
|
724
724
|
"div",
|
|
@@ -729,27 +729,27 @@ const pt = ({
|
|
|
729
729
|
display: r.length === 0 ? "none" : "block"
|
|
730
730
|
},
|
|
731
731
|
children: /* @__PURE__ */ e(
|
|
732
|
-
|
|
732
|
+
Se,
|
|
733
733
|
{
|
|
734
734
|
type: "editable-card",
|
|
735
|
-
activeKey:
|
|
736
|
-
onChange:
|
|
737
|
-
onEdit:
|
|
735
|
+
activeKey: o || void 0,
|
|
736
|
+
onChange: u,
|
|
737
|
+
onEdit: m,
|
|
738
738
|
className: t.tabs.className,
|
|
739
739
|
style: t.tabs.style,
|
|
740
740
|
hideAdd: !0,
|
|
741
|
-
items:
|
|
741
|
+
items: U,
|
|
742
742
|
tabBarExtraContent: /* @__PURE__ */ e(
|
|
743
|
-
|
|
743
|
+
St,
|
|
744
744
|
{
|
|
745
745
|
config: t?.nav,
|
|
746
746
|
isFirst: !!H,
|
|
747
|
-
isLast: !!
|
|
747
|
+
isLast: !!A,
|
|
748
748
|
canCloseAll: r.length > 0,
|
|
749
|
-
onFirst:
|
|
749
|
+
onFirst: h,
|
|
750
750
|
onPrev: C,
|
|
751
|
-
onNext:
|
|
752
|
-
onLast:
|
|
751
|
+
onNext: a,
|
|
752
|
+
onLast: l,
|
|
753
753
|
onCloseAll: T
|
|
754
754
|
}
|
|
755
755
|
),
|
|
@@ -758,7 +758,7 @@ const pt = ({
|
|
|
758
758
|
)
|
|
759
759
|
}
|
|
760
760
|
);
|
|
761
|
-
}, { Sider:
|
|
761
|
+
}, { Sider: Tt } = $, Pt = ({
|
|
762
762
|
config: n = {}
|
|
763
763
|
}) => {
|
|
764
764
|
const t = {
|
|
@@ -802,15 +802,15 @@ const pt = ({
|
|
|
802
802
|
...n
|
|
803
803
|
};
|
|
804
804
|
console.log("@@ 사이드바 config : ", n);
|
|
805
|
-
const [r,
|
|
805
|
+
const [r, o] = L(""), [s, d] = L(
|
|
806
806
|
"category"
|
|
807
|
-
), { activeMenuId:
|
|
808
|
-
const
|
|
809
|
-
if (
|
|
810
|
-
const v = " ".repeat(
|
|
811
|
-
|
|
812
|
-
value:
|
|
813
|
-
label: /* @__PURE__ */
|
|
807
|
+
), { activeMenuId: f, sidebarCollapsed: i, openTabFromMenu: u, toggleSidebar: m } = S(), { menuList: h, isLoading: C, error: a, findMenuById: l } = Re(), { nodes: T, treeNodes: R, loadFavoritesIfNeeded: H } = Ae(), A = W(() => {
|
|
808
|
+
const b = [], y = (c, x = 0) => {
|
|
809
|
+
if (c.menuGbCd === t.menuGubunCode.program && c.scrnPath) {
|
|
810
|
+
const v = " ".repeat(x), E = c.menuNo || "";
|
|
811
|
+
b.push({
|
|
812
|
+
value: c.menuId,
|
|
813
|
+
label: /* @__PURE__ */ g(
|
|
814
814
|
"div",
|
|
815
815
|
{
|
|
816
816
|
style: {
|
|
@@ -819,9 +819,9 @@ const pt = ({
|
|
|
819
819
|
alignItems: "center"
|
|
820
820
|
},
|
|
821
821
|
children: [
|
|
822
|
-
/* @__PURE__ */
|
|
822
|
+
/* @__PURE__ */ g("span", { children: [
|
|
823
823
|
v,
|
|
824
|
-
|
|
824
|
+
c.menuNm
|
|
825
825
|
] }),
|
|
826
826
|
/* @__PURE__ */ e(
|
|
827
827
|
"span",
|
|
@@ -834,65 +834,65 @@ const pt = ({
|
|
|
834
834
|
borderRadius: "3px",
|
|
835
835
|
marginLeft: "8px"
|
|
836
836
|
},
|
|
837
|
-
children:
|
|
837
|
+
children: E
|
|
838
838
|
}
|
|
839
839
|
)
|
|
840
840
|
]
|
|
841
841
|
}
|
|
842
842
|
),
|
|
843
|
-
menuItem:
|
|
843
|
+
menuItem: c
|
|
844
844
|
});
|
|
845
845
|
}
|
|
846
|
-
|
|
846
|
+
c.children && c.children.length > 0 && c.children.forEach((v) => y(v, x + 1));
|
|
847
847
|
};
|
|
848
|
-
return
|
|
849
|
-
}, [
|
|
850
|
-
const
|
|
851
|
-
return
|
|
852
|
-
}) : [], [
|
|
853
|
-
if (!
|
|
854
|
-
console.warn("Invalid menu selection value:",
|
|
848
|
+
return h.forEach((c) => y(c)), b;
|
|
849
|
+
}, [h]), U = W(() => r.trim() ? A.filter((b) => {
|
|
850
|
+
const y = b.menuItem.menuNm.toLowerCase(), c = String(b.menuItem.menuNo || "미지정").toLowerCase(), x = r.toLowerCase();
|
|
851
|
+
return y.includes(x) || c.includes(x);
|
|
852
|
+
}) : [], [A, r]), _ = (b) => {
|
|
853
|
+
if (!b || typeof b != "string") {
|
|
854
|
+
console.warn("Invalid menu selection value:", b);
|
|
855
855
|
return;
|
|
856
856
|
}
|
|
857
|
-
if (!/^[a-zA-Z0-9_-]+$/.test(
|
|
858
|
-
console.warn("Invalid menu ID format:",
|
|
857
|
+
if (!/^[a-zA-Z0-9_-]+$/.test(b)) {
|
|
858
|
+
console.warn("Invalid menu ID format:", b);
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
861
|
-
const
|
|
862
|
-
(
|
|
861
|
+
const y = A.find(
|
|
862
|
+
(c) => c.value === b
|
|
863
863
|
);
|
|
864
|
-
if (
|
|
865
|
-
const { menuItem:
|
|
866
|
-
if (!
|
|
867
|
-
console.warn("Invalid menu item:",
|
|
864
|
+
if (y) {
|
|
865
|
+
const { menuItem: c } = y;
|
|
866
|
+
if (!c || !c.menuId || !c.menuNm) {
|
|
867
|
+
console.warn("Invalid menu item:", c);
|
|
868
868
|
return;
|
|
869
869
|
}
|
|
870
|
-
|
|
870
|
+
c.menuGbCd === t.menuGubunCode.program && c.scrnPath ? (console.log(
|
|
871
871
|
"✅ 검색으로 프로그램 메뉴 선택 - 탭 추가 및 setCurrentProgram 호출"
|
|
872
872
|
), console.log(
|
|
873
873
|
"메뉴명:",
|
|
874
|
-
|
|
874
|
+
c.menuNm,
|
|
875
875
|
"경로:",
|
|
876
|
-
|
|
876
|
+
c.scrnPath,
|
|
877
877
|
"scrnId:",
|
|
878
|
-
|
|
879
|
-
),
|
|
878
|
+
c.scrnId
|
|
879
|
+
), u(c)) : (c.menuGbCd === t.menuGubunCode.mainMenu || c.menuGbCd === t.menuGubunCode.subMenu) && (console.log("❌ 검색으로 메인/서브 메뉴 선택 - 이벤트 무시"), console.log("메뉴명:", c.menuNm, "menuGbCd:", c.menuGbCd)), o("");
|
|
880
880
|
}
|
|
881
|
-
}, G =
|
|
882
|
-
(
|
|
883
|
-
const
|
|
884
|
-
|
|
881
|
+
}, G = B(
|
|
882
|
+
(b) => {
|
|
883
|
+
const y = l(b);
|
|
884
|
+
y?.menuGbCd === t.menuGubunCode.program && (console.log(
|
|
885
885
|
"메뉴명:",
|
|
886
|
-
|
|
886
|
+
y.menuNm,
|
|
887
887
|
"경로:",
|
|
888
|
-
|
|
888
|
+
y.scrnPath,
|
|
889
889
|
"scrnId:",
|
|
890
|
-
|
|
891
|
-
),
|
|
890
|
+
y.scrnId
|
|
891
|
+
), u(y));
|
|
892
892
|
},
|
|
893
|
-
[
|
|
894
|
-
),
|
|
895
|
-
key:
|
|
893
|
+
[l, u]
|
|
894
|
+
), p = B((b) => b.map((y) => ({
|
|
895
|
+
key: y.menuId,
|
|
896
896
|
label: /* @__PURE__ */ e(
|
|
897
897
|
"div",
|
|
898
898
|
{
|
|
@@ -901,21 +901,21 @@ const pt = ({
|
|
|
901
901
|
justifyContent: "space-between",
|
|
902
902
|
alignItems: "center"
|
|
903
903
|
},
|
|
904
|
-
children: /* @__PURE__ */ e("span", { children:
|
|
904
|
+
children: /* @__PURE__ */ e("span", { children: y.menuNm })
|
|
905
905
|
}
|
|
906
906
|
),
|
|
907
|
-
icon: k(
|
|
908
|
-
children:
|
|
909
|
-
})), []), k = (
|
|
910
|
-
if (
|
|
911
|
-
const
|
|
912
|
-
if (
|
|
913
|
-
return /* @__PURE__ */ e(
|
|
907
|
+
icon: k(y.iconCd, y.menuGbCd),
|
|
908
|
+
children: y.children && y.children.length > 0 ? p(y.children) : void 0
|
|
909
|
+
})), []), k = (b, y) => {
|
|
910
|
+
if (b) {
|
|
911
|
+
const c = ne[b];
|
|
912
|
+
if (c)
|
|
913
|
+
return /* @__PURE__ */ e(c, {});
|
|
914
914
|
}
|
|
915
|
-
if (
|
|
916
|
-
switch (
|
|
915
|
+
if (y)
|
|
916
|
+
switch (y) {
|
|
917
917
|
case t.menuGubunCode.mainMenu:
|
|
918
|
-
return /* @__PURE__ */ e(
|
|
918
|
+
return /* @__PURE__ */ e(ne.HomeOutlined, {});
|
|
919
919
|
case t.menuGubunCode.subMenu:
|
|
920
920
|
return null;
|
|
921
921
|
case t.menuGubunCode.program:
|
|
@@ -924,47 +924,47 @@ const pt = ({
|
|
|
924
924
|
return null;
|
|
925
925
|
}
|
|
926
926
|
return null;
|
|
927
|
-
}, N =
|
|
928
|
-
(
|
|
929
|
-
if (
|
|
930
|
-
const
|
|
931
|
-
if (
|
|
932
|
-
return typeof
|
|
933
|
-
},
|
|
934
|
-
if (
|
|
935
|
-
const v =
|
|
927
|
+
}, N = B(
|
|
928
|
+
(b) => {
|
|
929
|
+
if (h.length === 0) return [];
|
|
930
|
+
const y = (x) => {
|
|
931
|
+
if (x)
|
|
932
|
+
return typeof x == "string" ? T[x] : x;
|
|
933
|
+
}, c = (x) => {
|
|
934
|
+
if (x.type === "M") {
|
|
935
|
+
const v = x, E = l(v.menuId) || void 0, ee = !!E, ue = ee ? `${E?.menuNm ?? v.menuNm ?? v.menuId}` : `${v.menuNm ?? v.menuId} (삭제됨)`;
|
|
936
936
|
return {
|
|
937
937
|
key: v.menuId,
|
|
938
|
-
label:
|
|
939
|
-
icon:
|
|
938
|
+
label: ue,
|
|
939
|
+
icon: ee ? void 0 : /* @__PURE__ */ e(Ze, { style: { color: "#faad14" } })
|
|
940
940
|
};
|
|
941
941
|
} else {
|
|
942
|
-
const v =
|
|
942
|
+
const v = x, E = (v.children ?? []).map(y).filter(Boolean).map(c);
|
|
943
943
|
return {
|
|
944
944
|
key: v.bkmkId,
|
|
945
945
|
label: v.bkmkNm ?? v.bkmkId,
|
|
946
|
-
icon: v.prntBkmkId === "-" ? /* @__PURE__ */ e(
|
|
947
|
-
children:
|
|
946
|
+
icon: v.prntBkmkId === "-" ? /* @__PURE__ */ e(Ye, {}) : /* @__PURE__ */ e(Xe, {}),
|
|
947
|
+
children: E
|
|
948
948
|
// 빈 배열이면 자동으로 말아줌
|
|
949
949
|
};
|
|
950
950
|
}
|
|
951
951
|
};
|
|
952
|
-
return
|
|
952
|
+
return b.map(c);
|
|
953
953
|
},
|
|
954
|
-
[
|
|
955
|
-
),
|
|
956
|
-
() => N(
|
|
957
|
-
[N,
|
|
954
|
+
[l, T, h]
|
|
955
|
+
), P = W(
|
|
956
|
+
() => N(R),
|
|
957
|
+
[N, R, T]
|
|
958
958
|
);
|
|
959
|
-
return
|
|
960
|
-
|
|
961
|
-
}, [H]),
|
|
962
|
-
|
|
963
|
-
}, [
|
|
964
|
-
|
|
959
|
+
return I(() => {
|
|
960
|
+
se() && H(se());
|
|
961
|
+
}, [H]), I(() => {
|
|
962
|
+
s === "category" && o("");
|
|
963
|
+
}, [s]), /* @__PURE__ */ g(
|
|
964
|
+
Tt,
|
|
965
965
|
{
|
|
966
966
|
className: t.className.wrapper,
|
|
967
|
-
collapsed: t.collapsed ||
|
|
967
|
+
collapsed: t.collapsed || i,
|
|
968
968
|
trigger: null,
|
|
969
969
|
width: t.width || 230,
|
|
970
970
|
children: [
|
|
@@ -989,10 +989,10 @@ const pt = ({
|
|
|
989
989
|
transition: "all 0.3s ease"
|
|
990
990
|
},
|
|
991
991
|
children: /* @__PURE__ */ e(
|
|
992
|
-
|
|
992
|
+
w,
|
|
993
993
|
{
|
|
994
994
|
type: "text",
|
|
995
|
-
icon: t.collapsed ||
|
|
995
|
+
icon: t.collapsed || i ? /* @__PURE__ */ e(je, {}) : /* @__PURE__ */ e(Ue, {}),
|
|
996
996
|
style: {
|
|
997
997
|
fontSize: "12px",
|
|
998
998
|
color: "#787878",
|
|
@@ -1003,28 +1003,28 @@ const pt = ({
|
|
|
1003
1003
|
alignItems: "center",
|
|
1004
1004
|
justifyContent: "center"
|
|
1005
1005
|
},
|
|
1006
|
-
onClick:
|
|
1006
|
+
onClick: m
|
|
1007
1007
|
}
|
|
1008
1008
|
)
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
|
-
!(t.collapsed ||
|
|
1011
|
+
!(t.collapsed || i) && /* @__PURE__ */ e(
|
|
1012
1012
|
"div",
|
|
1013
1013
|
{
|
|
1014
1014
|
style: {
|
|
1015
1015
|
padding: 10
|
|
1016
1016
|
},
|
|
1017
1017
|
children: /* @__PURE__ */ e(
|
|
1018
|
-
|
|
1018
|
+
Le,
|
|
1019
1019
|
{
|
|
1020
1020
|
value: r,
|
|
1021
|
-
options:
|
|
1022
|
-
onSelect:
|
|
1023
|
-
onSearch:
|
|
1021
|
+
options: U,
|
|
1022
|
+
onSelect: _,
|
|
1023
|
+
onSearch: o,
|
|
1024
1024
|
style: { width: "100%" },
|
|
1025
1025
|
allowClear: !0,
|
|
1026
1026
|
children: /* @__PURE__ */ e(
|
|
1027
|
-
|
|
1027
|
+
Y,
|
|
1028
1028
|
{
|
|
1029
1029
|
className: t.className.search,
|
|
1030
1030
|
placeholder: t.style.search.placeholder,
|
|
@@ -1058,7 +1058,7 @@ const pt = ({
|
|
|
1058
1058
|
)
|
|
1059
1059
|
}
|
|
1060
1060
|
),
|
|
1061
|
-
!(t.collapsed ||
|
|
1061
|
+
!(t.collapsed || i) && /* @__PURE__ */ e(
|
|
1062
1062
|
"div",
|
|
1063
1063
|
{
|
|
1064
1064
|
style: {
|
|
@@ -1072,8 +1072,8 @@ const pt = ({
|
|
|
1072
1072
|
className: t.className.segmented.wrapper,
|
|
1073
1073
|
options: [
|
|
1074
1074
|
{
|
|
1075
|
-
label: /* @__PURE__ */
|
|
1076
|
-
/* @__PURE__ */ e("span", { className: t.className.segmented.item, children: /* @__PURE__ */
|
|
1075
|
+
label: /* @__PURE__ */ g(O, { children: [
|
|
1076
|
+
/* @__PURE__ */ e("span", { className: t.className.segmented.item, children: /* @__PURE__ */ g(
|
|
1077
1077
|
"svg",
|
|
1078
1078
|
{
|
|
1079
1079
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1120,7 +1120,7 @@ const pt = ({
|
|
|
1120
1120
|
value: "category"
|
|
1121
1121
|
},
|
|
1122
1122
|
{
|
|
1123
|
-
label: /* @__PURE__ */
|
|
1123
|
+
label: /* @__PURE__ */ g(O, { children: [
|
|
1124
1124
|
/* @__PURE__ */ e("span", { className: t.className.segmented.item, children: /* @__PURE__ */ e(
|
|
1125
1125
|
"svg",
|
|
1126
1126
|
{
|
|
@@ -1145,9 +1145,9 @@ const pt = ({
|
|
|
1145
1145
|
value: "favorite"
|
|
1146
1146
|
}
|
|
1147
1147
|
],
|
|
1148
|
-
value:
|
|
1149
|
-
onChange: (
|
|
1150
|
-
|
|
1148
|
+
value: s,
|
|
1149
|
+
onChange: (b) => {
|
|
1150
|
+
d(b);
|
|
1151
1151
|
},
|
|
1152
1152
|
style: {
|
|
1153
1153
|
width: "100%"
|
|
@@ -1157,21 +1157,21 @@ const pt = ({
|
|
|
1157
1157
|
)
|
|
1158
1158
|
}
|
|
1159
1159
|
),
|
|
1160
|
-
/* @__PURE__ */
|
|
1161
|
-
C && /* @__PURE__ */
|
|
1162
|
-
/* @__PURE__ */ e(
|
|
1160
|
+
/* @__PURE__ */ g("div", { className: t.className.sider.content, children: [
|
|
1161
|
+
C && /* @__PURE__ */ g("div", { className: t.className.sider.loading, children: [
|
|
1162
|
+
/* @__PURE__ */ e(j, { size: "default" }),
|
|
1163
1163
|
/* @__PURE__ */ e("div", { className: t.className.sider.loadingText, children: "메뉴 로딩 중..." })
|
|
1164
1164
|
] }),
|
|
1165
|
-
|
|
1165
|
+
a && /* @__PURE__ */ g("div", { className: t.className.sider.error, children: [
|
|
1166
1166
|
/* @__PURE__ */ e(
|
|
1167
|
-
|
|
1167
|
+
Ke,
|
|
1168
1168
|
{
|
|
1169
1169
|
className: t.className.sider.errorIcon
|
|
1170
1170
|
}
|
|
1171
1171
|
),
|
|
1172
1172
|
/* @__PURE__ */ e("div", { className: t.className.sider.errorText, children: "메뉴 로드 실패" })
|
|
1173
1173
|
] }),
|
|
1174
|
-
!C && !
|
|
1174
|
+
!C && !a && s === "category" && h.length === 0 && /* @__PURE__ */ e(
|
|
1175
1175
|
"div",
|
|
1176
1176
|
{
|
|
1177
1177
|
style: {
|
|
@@ -1183,7 +1183,7 @@ const pt = ({
|
|
|
1183
1183
|
children: "메뉴가 없습니다"
|
|
1184
1184
|
}
|
|
1185
1185
|
),
|
|
1186
|
-
!C && !
|
|
1186
|
+
!C && !a && s === "favorite" && P.length === 0 && /* @__PURE__ */ e(
|
|
1187
1187
|
"div",
|
|
1188
1188
|
{
|
|
1189
1189
|
style: {
|
|
@@ -1195,26 +1195,26 @@ const pt = ({
|
|
|
1195
1195
|
children: "즐겨찾기된 메뉴가 없습니다"
|
|
1196
1196
|
}
|
|
1197
1197
|
),
|
|
1198
|
-
!C && !
|
|
1199
|
-
|
|
1198
|
+
!C && !a && s === "category" && h.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1199
|
+
te,
|
|
1200
1200
|
{
|
|
1201
1201
|
theme: "light",
|
|
1202
1202
|
mode: "inline",
|
|
1203
|
-
items:
|
|
1203
|
+
items: p(h),
|
|
1204
1204
|
className: t.className.sider.menu,
|
|
1205
|
-
selectedKeys: [
|
|
1206
|
-
onClick: (
|
|
1205
|
+
selectedKeys: [f || ""],
|
|
1206
|
+
onClick: (b) => G(b.key)
|
|
1207
1207
|
}
|
|
1208
1208
|
) }),
|
|
1209
|
-
!C && !
|
|
1210
|
-
|
|
1209
|
+
!C && !a && s === "favorite" && P.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1210
|
+
te,
|
|
1211
1211
|
{
|
|
1212
1212
|
theme: "light",
|
|
1213
1213
|
mode: "inline",
|
|
1214
|
-
items:
|
|
1214
|
+
items: P,
|
|
1215
1215
|
className: t.className.sider.menu,
|
|
1216
|
-
selectedKeys: [
|
|
1217
|
-
onClick: (
|
|
1216
|
+
selectedKeys: [f || ""],
|
|
1217
|
+
onClick: (b) => G(b.key)
|
|
1218
1218
|
}
|
|
1219
1219
|
) })
|
|
1220
1220
|
] })
|
|
@@ -1222,7 +1222,7 @@ const pt = ({
|
|
|
1222
1222
|
}
|
|
1223
1223
|
);
|
|
1224
1224
|
};
|
|
1225
|
-
class
|
|
1225
|
+
class Mt extends Oe {
|
|
1226
1226
|
constructor(t) {
|
|
1227
1227
|
super(t), this.resetError = () => {
|
|
1228
1228
|
this.setState({ hasError: !1, error: void 0, errorInfo: void 0 });
|
|
@@ -1238,7 +1238,7 @@ class It extends Ee {
|
|
|
1238
1238
|
});
|
|
1239
1239
|
}
|
|
1240
1240
|
render() {
|
|
1241
|
-
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */
|
|
1241
|
+
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ g(
|
|
1242
1242
|
"div",
|
|
1243
1243
|
{
|
|
1244
1244
|
style: {
|
|
@@ -1252,17 +1252,17 @@ class It extends Ee {
|
|
|
1252
1252
|
},
|
|
1253
1253
|
children: [
|
|
1254
1254
|
/* @__PURE__ */ e(
|
|
1255
|
-
|
|
1255
|
+
ie,
|
|
1256
1256
|
{
|
|
1257
1257
|
status: "error",
|
|
1258
1258
|
title: "컴포넌트 로딩 중 오류가 발생했습니다",
|
|
1259
1259
|
subTitle: this.state.error ? `오류 내용: ${this.state.error.message}` : "알 수 없는 오류가 발생했습니다",
|
|
1260
1260
|
extra: [
|
|
1261
1261
|
/* @__PURE__ */ e(
|
|
1262
|
-
|
|
1262
|
+
w,
|
|
1263
1263
|
{
|
|
1264
1264
|
type: "primary",
|
|
1265
|
-
icon: /* @__PURE__ */ e(
|
|
1265
|
+
icon: /* @__PURE__ */ e(de, {}),
|
|
1266
1266
|
onClick: this.resetError,
|
|
1267
1267
|
style: { marginRight: 8 },
|
|
1268
1268
|
children: "다시 시도"
|
|
@@ -1272,7 +1272,7 @@ class It extends Ee {
|
|
|
1272
1272
|
]
|
|
1273
1273
|
}
|
|
1274
1274
|
),
|
|
1275
|
-
this.state.error && /* @__PURE__ */
|
|
1275
|
+
this.state.error && /* @__PURE__ */ g(
|
|
1276
1276
|
"details",
|
|
1277
1277
|
{
|
|
1278
1278
|
style: {
|
|
@@ -1307,13 +1307,13 @@ class It extends Ee {
|
|
|
1307
1307
|
) : this.props.children;
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
|
-
const
|
|
1310
|
+
const Bt = ({
|
|
1311
1311
|
isActive: n,
|
|
1312
1312
|
instance: t,
|
|
1313
1313
|
params: r
|
|
1314
1314
|
}) => {
|
|
1315
|
-
const { activeMenuId:
|
|
1316
|
-
|
|
1315
|
+
const { activeMenuId: o, closeTab: s } = S(), d = () => {
|
|
1316
|
+
o && s(o);
|
|
1317
1317
|
};
|
|
1318
1318
|
return t ? /* @__PURE__ */ e(
|
|
1319
1319
|
"div",
|
|
@@ -1329,7 +1329,7 @@ const St = ({
|
|
|
1329
1329
|
transition: "opacity 0.2s ease-in-out",
|
|
1330
1330
|
pointerEvents: n ? "auto" : "none"
|
|
1331
1331
|
},
|
|
1332
|
-
children: /* @__PURE__ */ e(
|
|
1332
|
+
children: /* @__PURE__ */ e(Mt, { children: /* @__PURE__ */ e(Q, { fallback: null, children: t && le(t, { params: r }) }) })
|
|
1333
1333
|
}
|
|
1334
1334
|
) : /* @__PURE__ */ e(
|
|
1335
1335
|
"div",
|
|
@@ -1360,20 +1360,20 @@ const St = ({
|
|
|
1360
1360
|
padding: 24
|
|
1361
1361
|
},
|
|
1362
1362
|
children: /* @__PURE__ */ e(
|
|
1363
|
-
|
|
1363
|
+
ie,
|
|
1364
1364
|
{
|
|
1365
|
-
icon: /* @__PURE__ */ e(
|
|
1365
|
+
icon: /* @__PURE__ */ e(qe, { twoToneColor: "#69b1ff" }),
|
|
1366
1366
|
status: "warning",
|
|
1367
1367
|
title: "등록된 메뉴 정보가 없거나 유효한 메뉴가 아닙니다.",
|
|
1368
|
-
subTitle: /* @__PURE__ */ e(
|
|
1369
|
-
extra: /* @__PURE__ */ e(
|
|
1368
|
+
subTitle: /* @__PURE__ */ e(Me.Text, { type: "secondary", children: "자세한 내용은 관리자에게 문의바랍니다." }),
|
|
1369
|
+
extra: /* @__PURE__ */ e(Pe, { children: /* @__PURE__ */ e(w, { icon: /* @__PURE__ */ e(ce, {}), onClick: d, children: "탭 닫기" }) })
|
|
1370
1370
|
}
|
|
1371
1371
|
)
|
|
1372
1372
|
}
|
|
1373
1373
|
)
|
|
1374
1374
|
}
|
|
1375
1375
|
);
|
|
1376
|
-
},
|
|
1376
|
+
}, Et = q(Bt), Dt = () => /* @__PURE__ */ g(O, { children: [
|
|
1377
1377
|
/* @__PURE__ */ e(
|
|
1378
1378
|
"link",
|
|
1379
1379
|
{
|
|
@@ -1383,53 +1383,53 @@ const St = ({
|
|
|
1383
1383
|
}
|
|
1384
1384
|
),
|
|
1385
1385
|
/* @__PURE__ */ e("div", { className: "LandingContainer-wrap", children: /* @__PURE__ */ e("div", { className: "inner", children: /* @__PURE__ */ e("div", { className: "content" }) }) })
|
|
1386
|
-
] }),
|
|
1386
|
+
] }), Ot = (n, t) => {
|
|
1387
1387
|
console.log("createPopupViewLoader 호출 - popupUrl:", n);
|
|
1388
|
-
const
|
|
1389
|
-
if (
|
|
1390
|
-
const
|
|
1391
|
-
return console.log(`팝업 URL 변환: ${
|
|
1388
|
+
const o = ((s) => {
|
|
1389
|
+
if (s.startsWith("/src/pages/views/popup/")) {
|
|
1390
|
+
const i = s + ".tsx";
|
|
1391
|
+
return console.log(`팝업 URL 변환: ${s} -> ${i}`), i;
|
|
1392
1392
|
}
|
|
1393
|
-
const
|
|
1394
|
-
return console.log(`팝업 URL 변환: ${
|
|
1393
|
+
const f = `/src/pages/views/popup/${s.startsWith("/") ? s.substring(1) : s}.tsx`;
|
|
1394
|
+
return console.log(`팝업 URL 변환: ${s} -> ${f}`), f;
|
|
1395
1395
|
})(n);
|
|
1396
|
-
return !
|
|
1397
|
-
},
|
|
1398
|
-
const [r,
|
|
1399
|
-
console.log("PopupArea - handleClose:", n.popupId),
|
|
1396
|
+
return !o || !t?.glob[o] ? (console.warn(`팝업 뷰를 찾을 수 없습니다: ${n} (${o})`), console.warn("사용 가능한 팝업 뷰들:", Object.keys(t?.glob || {})), null) : t?.glob[o];
|
|
1397
|
+
}, Ft = ({ popup: n, modules: t }) => {
|
|
1398
|
+
const [r, o] = L(null), [s, d] = L(!1), [f, i] = L(null), u = () => {
|
|
1399
|
+
console.log("PopupArea - handleClose:", n.popupId), J.getState().closePopup(n.popupId);
|
|
1400
1400
|
};
|
|
1401
|
-
return
|
|
1401
|
+
return I(() => {
|
|
1402
1402
|
(async () => {
|
|
1403
|
-
console.log("팝업 뷰 로드 시작:", n.popupUrl),
|
|
1403
|
+
console.log("팝업 뷰 로드 시작:", n.popupUrl), d(!0), i(null);
|
|
1404
1404
|
try {
|
|
1405
|
-
const
|
|
1406
|
-
if (!
|
|
1407
|
-
const
|
|
1408
|
-
console.error(
|
|
1405
|
+
const h = Ot(n.popupUrl, t);
|
|
1406
|
+
if (!h) {
|
|
1407
|
+
const l = `팝업 뷰를 찾을 수 없습니다: ${n.popupUrl}`;
|
|
1408
|
+
console.error(l), i(l), d(!1);
|
|
1409
1409
|
return;
|
|
1410
1410
|
}
|
|
1411
1411
|
console.log("팝업 뷰 모듈 로드 중...");
|
|
1412
|
-
const C = await
|
|
1412
|
+
const C = await h();
|
|
1413
1413
|
console.log("팝업 뷰 모듈 로드 완료:", C);
|
|
1414
|
-
const
|
|
1415
|
-
if (console.log("팝업 뷰 컴포넌트:",
|
|
1414
|
+
const a = C.default;
|
|
1415
|
+
if (console.log("팝업 뷰 컴포넌트:", a), !a)
|
|
1416
1416
|
throw new Error("팝업 뷰 컴포넌트를 찾을 수 없습니다");
|
|
1417
|
-
|
|
1418
|
-
} catch (
|
|
1419
|
-
console.error("팝업 뷰 로드 실패:",
|
|
1417
|
+
o(() => a), console.log("팝업 뷰 설정 완료");
|
|
1418
|
+
} catch (h) {
|
|
1419
|
+
console.error("팝업 뷰 로드 실패:", h), i(h instanceof Error ? h.message : "팝업 뷰 로드 실패");
|
|
1420
1420
|
} finally {
|
|
1421
|
-
|
|
1421
|
+
d(!1);
|
|
1422
1422
|
}
|
|
1423
1423
|
})();
|
|
1424
|
-
}, [n.popupUrl]),
|
|
1425
|
-
/* @__PURE__ */ e(
|
|
1424
|
+
}, [n.popupUrl]), s ? /* @__PURE__ */ g("div", { className: "popup-loading", children: [
|
|
1425
|
+
/* @__PURE__ */ e(j, { size: "large" }),
|
|
1426
1426
|
/* @__PURE__ */ e("p", { children: "팝업을 로드하는 중..." })
|
|
1427
|
-
] }) :
|
|
1428
|
-
/* @__PURE__ */ e(
|
|
1427
|
+
] }) : f ? /* @__PURE__ */ g("div", { className: "popup-error", children: [
|
|
1428
|
+
/* @__PURE__ */ e(Z, { description: f, image: Z.PRESENTED_IMAGE_SIMPLE }),
|
|
1429
1429
|
/* @__PURE__ */ e(
|
|
1430
|
-
|
|
1430
|
+
w,
|
|
1431
1431
|
{
|
|
1432
|
-
icon: /* @__PURE__ */ e(
|
|
1432
|
+
icon: /* @__PURE__ */ e(de, {}),
|
|
1433
1433
|
onClick: () => window.location.reload(),
|
|
1434
1434
|
children: "다시 시도"
|
|
1435
1435
|
}
|
|
@@ -1437,8 +1437,8 @@ const St = ({
|
|
|
1437
1437
|
] }) : r ? /* @__PURE__ */ e(
|
|
1438
1438
|
Q,
|
|
1439
1439
|
{
|
|
1440
|
-
fallback: /* @__PURE__ */
|
|
1441
|
-
/* @__PURE__ */ e(
|
|
1440
|
+
fallback: /* @__PURE__ */ g("div", { className: "popup-loading", children: [
|
|
1441
|
+
/* @__PURE__ */ e(j, { size: "large" }),
|
|
1442
1442
|
/* @__PURE__ */ e("p", { children: "컴포넌트를 로드하는 중..." })
|
|
1443
1443
|
] }),
|
|
1444
1444
|
children: /* @__PURE__ */ e(
|
|
@@ -1446,75 +1446,75 @@ const St = ({
|
|
|
1446
1446
|
{
|
|
1447
1447
|
popup: {
|
|
1448
1448
|
...n,
|
|
1449
|
-
close:
|
|
1449
|
+
close: u
|
|
1450
1450
|
// popup 객체에 close 이벤트 추가
|
|
1451
1451
|
},
|
|
1452
|
-
onClose:
|
|
1452
|
+
onClose: u
|
|
1453
1453
|
}
|
|
1454
1454
|
)
|
|
1455
1455
|
}
|
|
1456
|
-
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(
|
|
1457
|
-
},
|
|
1458
|
-
const { popups: t } =
|
|
1459
|
-
return t.length === 0 ? null : /* @__PURE__ */ e(
|
|
1460
|
-
const
|
|
1461
|
-
key:
|
|
1462
|
-
text:
|
|
1463
|
-
type:
|
|
1464
|
-
disabled:
|
|
1456
|
+
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(Z, { description: "팝업 내용을 불러올 수 없습니다." }) });
|
|
1457
|
+
}, Rt = ({ modules: n }) => {
|
|
1458
|
+
const { popups: t } = J();
|
|
1459
|
+
return t.length === 0 ? null : /* @__PURE__ */ e(O, { children: t.map((r) => {
|
|
1460
|
+
const o = r.config || {}, s = o.width || r.width || 800, d = o.height || r.height || 600, f = o.title || r.popupTitle, i = r.buttonList?.map((u, m) => ({
|
|
1461
|
+
key: u.btnId || `btn_${m}`,
|
|
1462
|
+
text: u.btnNm,
|
|
1463
|
+
type: u.btnId === "CLOSE" ? "default" : "primary",
|
|
1464
|
+
disabled: u.enblYn !== "Y",
|
|
1465
1465
|
danger: !1
|
|
1466
1466
|
})) || [];
|
|
1467
1467
|
return console.log("팝업 렌더링:", {
|
|
1468
1468
|
popupId: r.popupId,
|
|
1469
1469
|
popupCode: r.popupCode,
|
|
1470
|
-
title:
|
|
1471
|
-
width:
|
|
1472
|
-
height:
|
|
1473
|
-
buttons:
|
|
1474
|
-
}), /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1470
|
+
title: f,
|
|
1471
|
+
width: s,
|
|
1472
|
+
height: d,
|
|
1473
|
+
buttons: i
|
|
1474
|
+
}), /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(Ft, { popup: r, modules: n }) }, r.popupId);
|
|
1475
1475
|
}) });
|
|
1476
|
-
},
|
|
1477
|
-
const { popups: n, closePopup: t } =
|
|
1478
|
-
return /* @__PURE__ */ e(
|
|
1476
|
+
}, At = () => {
|
|
1477
|
+
const { popups: n, closePopup: t } = J();
|
|
1478
|
+
return /* @__PURE__ */ e(O, { children: n.map((r) => {
|
|
1479
1479
|
if (!(r.isLocal || r.popupCode.startsWith("CORE_"))) return null;
|
|
1480
|
-
const
|
|
1481
|
-
if (!
|
|
1482
|
-
const
|
|
1483
|
-
return /* @__PURE__ */ e(Q, { fallback: null, children: /* @__PURE__ */ e(
|
|
1480
|
+
const o = gt[r.popupCode];
|
|
1481
|
+
if (!o) return null;
|
|
1482
|
+
const s = o.component;
|
|
1483
|
+
return /* @__PURE__ */ e(Q, { fallback: null, children: /* @__PURE__ */ e(s, { popup: r, onClose: () => t(r.popupId) }) }, r.popupId);
|
|
1484
1484
|
}) });
|
|
1485
|
-
},
|
|
1485
|
+
}, zt = (n) => ({
|
|
1486
1486
|
position: "absolute",
|
|
1487
1487
|
inset: 0,
|
|
1488
1488
|
visibility: n ? "visible" : "hidden",
|
|
1489
1489
|
opacity: n ? 1 : 0,
|
|
1490
1490
|
transition: "opacity 0.2s ease-in-out",
|
|
1491
1491
|
pointerEvents: n ? "auto" : "none"
|
|
1492
|
-
}),
|
|
1493
|
-
const { lock: t } =
|
|
1494
|
-
return
|
|
1492
|
+
}), $t = ({ once: n = !0 }) => {
|
|
1493
|
+
const { lock: t } = ge(), r = V(!1);
|
|
1494
|
+
return I(() => {
|
|
1495
1495
|
n && r.current || (r.current = !0, t());
|
|
1496
1496
|
}, [n, t]), null;
|
|
1497
|
-
},
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1500
|
-
}, []),
|
|
1501
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
1502
|
-
|
|
1497
|
+
}, Vt = ({ isActive: n, flagged: t, tabKey: r, onUnlock: o, children: s }) => {
|
|
1498
|
+
const d = V(null), [f, i] = L(!1), u = B((h) => {
|
|
1499
|
+
d.current = h, i(!!h);
|
|
1500
|
+
}, []), m = zt(n);
|
|
1501
|
+
return /* @__PURE__ */ e("div", { ref: u, style: m, children: f ? /* @__PURE__ */ g(
|
|
1502
|
+
he,
|
|
1503
1503
|
{
|
|
1504
1504
|
idleMs: Number.POSITIVE_INFINITY,
|
|
1505
1505
|
persistLocked: !1,
|
|
1506
1506
|
overlayScope: "scoped",
|
|
1507
1507
|
overlayPosition: "absolute",
|
|
1508
|
-
eventTarget:
|
|
1508
|
+
eventTarget: d.current,
|
|
1509
1509
|
overlayId: `tab-overlay-${r}`,
|
|
1510
|
-
onUnlock: async () => (
|
|
1510
|
+
onUnlock: async () => (o(), !0),
|
|
1511
1511
|
children: [
|
|
1512
|
-
n && t ? /* @__PURE__ */ e(
|
|
1513
|
-
|
|
1512
|
+
n && t ? /* @__PURE__ */ e($t, { once: !0 }) : null,
|
|
1513
|
+
s
|
|
1514
1514
|
]
|
|
1515
1515
|
}
|
|
1516
|
-
) :
|
|
1517
|
-
},
|
|
1516
|
+
) : s });
|
|
1517
|
+
}, tn = ({
|
|
1518
1518
|
config: n = {},
|
|
1519
1519
|
modules: t = {
|
|
1520
1520
|
view: {
|
|
@@ -1525,38 +1525,38 @@ const St = ({
|
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
1527
|
}) => {
|
|
1528
|
-
const r =
|
|
1528
|
+
const r = V(
|
|
1529
1529
|
/* @__PURE__ */ new Map()
|
|
1530
1530
|
), {
|
|
1531
|
-
tabs:
|
|
1532
|
-
tabParams:
|
|
1533
|
-
activeMenuId:
|
|
1534
|
-
tabProtectFlag:
|
|
1535
|
-
clearProtectFlagForKey:
|
|
1536
|
-
} =
|
|
1537
|
-
(
|
|
1538
|
-
const
|
|
1539
|
-
if (
|
|
1540
|
-
const C =
|
|
1541
|
-
let
|
|
1542
|
-
if (!
|
|
1543
|
-
const
|
|
1544
|
-
|
|
1531
|
+
tabs: o,
|
|
1532
|
+
tabParams: s,
|
|
1533
|
+
activeMenuId: d,
|
|
1534
|
+
tabProtectFlag: f,
|
|
1535
|
+
clearProtectFlagForKey: i
|
|
1536
|
+
} = S(), u = B(
|
|
1537
|
+
(m) => {
|
|
1538
|
+
const h = r.current.get(m.key);
|
|
1539
|
+
if (h) return h;
|
|
1540
|
+
const C = m.gubun === "M" ? `${t.view.path}${m.menuItem?.scrnPath}.tsx` : `${t.view.path}${m.componentItem?.scrnPath}.tsx`;
|
|
1541
|
+
let a = t.view?.glob?.[C];
|
|
1542
|
+
if (!a && typeof import.meta < "u" && typeof import.meta.glob == "function" && (a = (/* @__PURE__ */ Object.assign({}))[C]), a) {
|
|
1543
|
+
const l = F(
|
|
1544
|
+
a
|
|
1545
1545
|
);
|
|
1546
|
-
return r.current.set(
|
|
1546
|
+
return r.current.set(m.key, l), l;
|
|
1547
1547
|
}
|
|
1548
1548
|
return null;
|
|
1549
1549
|
},
|
|
1550
1550
|
[t.view?.glob]
|
|
1551
1551
|
);
|
|
1552
|
-
return /* @__PURE__ */
|
|
1553
|
-
/* @__PURE__ */ e(
|
|
1554
|
-
/* @__PURE__ */
|
|
1555
|
-
/* @__PURE__ */ e(
|
|
1556
|
-
/* @__PURE__ */
|
|
1557
|
-
/* @__PURE__ */ e(
|
|
1558
|
-
/* @__PURE__ */ e(
|
|
1559
|
-
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */
|
|
1552
|
+
return /* @__PURE__ */ g($, { className: "main-layout", children: [
|
|
1553
|
+
/* @__PURE__ */ e(Nt, { config: n?.header }),
|
|
1554
|
+
/* @__PURE__ */ g($, { children: [
|
|
1555
|
+
/* @__PURE__ */ e(Pt, { config: n?.sidebar }),
|
|
1556
|
+
/* @__PURE__ */ g("div", { className: "content-container", children: [
|
|
1557
|
+
/* @__PURE__ */ e(Lt, { config: n?.menuTab }),
|
|
1558
|
+
/* @__PURE__ */ e(Ct, { config: n?.content, children: /* @__PURE__ */ g(fe, { children: [
|
|
1559
|
+
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */ g(
|
|
1560
1560
|
"div",
|
|
1561
1561
|
{
|
|
1562
1562
|
style: {
|
|
@@ -1565,52 +1565,122 @@ const St = ({
|
|
|
1565
1565
|
height: "100%"
|
|
1566
1566
|
},
|
|
1567
1567
|
children: [
|
|
1568
|
-
|
|
1569
|
-
const
|
|
1568
|
+
o.map((m) => {
|
|
1569
|
+
const h = u(m), C = d === m.key, a = !!f?.[m.key], l = s[m.key] || {};
|
|
1570
1570
|
return /* @__PURE__ */ e(
|
|
1571
|
-
|
|
1571
|
+
Vt,
|
|
1572
1572
|
{
|
|
1573
1573
|
isActive: C,
|
|
1574
|
-
flagged:
|
|
1575
|
-
tabKey:
|
|
1576
|
-
onUnlock: () =>
|
|
1574
|
+
flagged: a,
|
|
1575
|
+
tabKey: m.key,
|
|
1576
|
+
onUnlock: () => i(m.key),
|
|
1577
1577
|
children: /* @__PURE__ */ e(
|
|
1578
|
-
|
|
1578
|
+
Et,
|
|
1579
1579
|
{
|
|
1580
1580
|
isActive: C,
|
|
1581
|
-
instance:
|
|
1582
|
-
params:
|
|
1581
|
+
instance: h || void 0,
|
|
1582
|
+
params: l
|
|
1583
1583
|
},
|
|
1584
|
-
|
|
1584
|
+
m.key
|
|
1585
1585
|
)
|
|
1586
1586
|
},
|
|
1587
|
-
|
|
1587
|
+
m.key
|
|
1588
1588
|
);
|
|
1589
1589
|
}),
|
|
1590
|
-
(!
|
|
1590
|
+
(!d || o.length === 0) && /* @__PURE__ */ e(Dt, {})
|
|
1591
1591
|
]
|
|
1592
1592
|
}
|
|
1593
1593
|
) }),
|
|
1594
|
-
/* @__PURE__ */ e(
|
|
1595
|
-
/* @__PURE__ */ e(
|
|
1594
|
+
/* @__PURE__ */ e(At, {}),
|
|
1595
|
+
/* @__PURE__ */ e(Rt, { modules: t?.popup })
|
|
1596
1596
|
] }) })
|
|
1597
1597
|
] })
|
|
1598
1598
|
] }),
|
|
1599
|
-
/* @__PURE__ */ e(
|
|
1599
|
+
/* @__PURE__ */ e(xe, {})
|
|
1600
1600
|
] });
|
|
1601
|
-
},
|
|
1601
|
+
}, nn = ({ config: n, children: t }) => /* @__PURE__ */ e("div", { children: "BwgPortal02" });
|
|
1602
|
+
function rn({
|
|
1603
|
+
config: n,
|
|
1604
|
+
ui: t,
|
|
1605
|
+
navigate: r
|
|
1606
|
+
}) {
|
|
1607
|
+
const { loading: o, capsOn: s, prefills: d, onKeyDown: f, doLogin: i } = ze(n), u = (m) => i(m, r);
|
|
1608
|
+
return I(() => {
|
|
1609
|
+
$e.getState().fetchSystemMap();
|
|
1610
|
+
}, []), /* @__PURE__ */ e(O, { children: t({ onSubmit: u, loading: o, capsOn: s, onKeyDown: f, prefills: d }) });
|
|
1611
|
+
}
|
|
1612
|
+
function on({
|
|
1613
|
+
onSubmit: n,
|
|
1614
|
+
loading: t,
|
|
1615
|
+
capsOn: r,
|
|
1616
|
+
onKeyDown: o,
|
|
1617
|
+
prefills: s,
|
|
1618
|
+
labels: d = {
|
|
1619
|
+
id: "ID 혹은 사번",
|
|
1620
|
+
pw: "비밀번호",
|
|
1621
|
+
remember: "Remember me",
|
|
1622
|
+
login: "로그인"
|
|
1623
|
+
},
|
|
1624
|
+
header: f,
|
|
1625
|
+
footer: i
|
|
1626
|
+
}) {
|
|
1627
|
+
const [u] = D.useForm();
|
|
1628
|
+
return I(() => {
|
|
1629
|
+
s && (s.id || s.pswr) && u.setFieldsValue({ id: s.id, pswr: s.pswr });
|
|
1630
|
+
}, [s, u]), /* @__PURE__ */ e("div", { className: "login-main", children: /* @__PURE__ */ g("div", { className: "login_wrap", children: [
|
|
1631
|
+
f || /* @__PURE__ */ e("div", { className: "logo_box" }),
|
|
1632
|
+
/* @__PURE__ */ e("div", { className: "login_title" }),
|
|
1633
|
+
/* @__PURE__ */ e(D, { form: u, onFinish: n, className: "login-form", children: /* @__PURE__ */ g(Be, { vertical: !0, children: [
|
|
1634
|
+
/* @__PURE__ */ e(
|
|
1635
|
+
D.Item,
|
|
1636
|
+
{
|
|
1637
|
+
name: "id",
|
|
1638
|
+
rules: [
|
|
1639
|
+
{ required: !0, message: "아이디를 입력해주세요." },
|
|
1640
|
+
{
|
|
1641
|
+
whitespace: !0,
|
|
1642
|
+
message: "아이디는 공백이 들어갈 수 없습니다."
|
|
1643
|
+
}
|
|
1644
|
+
],
|
|
1645
|
+
children: /* @__PURE__ */ e(Y, { allowClear: !0, placeholder: d.id, onKeyDown: o })
|
|
1646
|
+
}
|
|
1647
|
+
),
|
|
1648
|
+
/* @__PURE__ */ e(
|
|
1649
|
+
D.Item,
|
|
1650
|
+
{
|
|
1651
|
+
name: "pswr",
|
|
1652
|
+
rules: [{ required: !0, message: "비밀번호를 입력하세요." }],
|
|
1653
|
+
children: /* @__PURE__ */ e(
|
|
1654
|
+
Y.Password,
|
|
1655
|
+
{
|
|
1656
|
+
allowClear: !0,
|
|
1657
|
+
placeholder: d.pw,
|
|
1658
|
+
onKeyDown: o
|
|
1659
|
+
}
|
|
1660
|
+
)
|
|
1661
|
+
}
|
|
1662
|
+
),
|
|
1663
|
+
/* @__PURE__ */ e(D.Item, { name: "remember", valuePropName: "checked", children: /* @__PURE__ */ e(Ee, { children: d.remember }) }),
|
|
1664
|
+
/* @__PURE__ */ e("div", { className: r ? "caps-lock caps-lock-on" : "caps-lock", children: r ? "Caps Lock On" : "Caps Lock Off" }),
|
|
1665
|
+
/* @__PURE__ */ e(D.Item, { children: /* @__PURE__ */ e(w, { type: "primary", htmlType: "submit", loading: t, block: !0, children: d.login }) })
|
|
1666
|
+
] }) }),
|
|
1667
|
+
i
|
|
1668
|
+
] }) });
|
|
1669
|
+
}
|
|
1602
1670
|
export {
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1671
|
+
en as A,
|
|
1672
|
+
tn as B,
|
|
1673
|
+
Et as C,
|
|
1674
|
+
on as D,
|
|
1675
|
+
Jt as L,
|
|
1676
|
+
Rt as P,
|
|
1677
|
+
nn as a,
|
|
1678
|
+
rn as b,
|
|
1679
|
+
Dt as c,
|
|
1611
1680
|
Ct as d,
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1681
|
+
Nt as e,
|
|
1682
|
+
Lt as f,
|
|
1683
|
+
Pt as g,
|
|
1684
|
+
Vt as h,
|
|
1685
|
+
gt as l
|
|
1616
1686
|
};
|