@bwg-ui/core 1.2.16 → 1.2.17
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-DNeDpJV2.js → MenuReport-ByLduwwZ.js} +2 -1
- package/dist/chunks/{MenuReport-Cw7zMZIq.cjs → MenuReport-D5nIx5g9.cjs} +1 -1
- package/dist/chunks/{common-components-Be3FPdnz.cjs → common-components-BXjzima0.cjs} +75 -75
- package/dist/chunks/{common-components-DGVIgTZZ.js → common-components-CyxuMobg.js} +6307 -6136
- package/dist/chunks/layout-components-CfFi4fiJ.cjs +35 -0
- package/dist/chunks/{layout-components-BBpCgkuQ.js → layout-components-CyKRhOdT.js} +206 -180
- package/dist/components/common/BookmarkMngModal.d.ts.map +1 -1
- package/dist/components/common/BookmarkPopver.d.ts.map +1 -1
- package/dist/components/common/BwgConfigProvider.d.ts.map +1 -1
- package/dist/components/common/BwgEditor.d.ts.map +1 -1
- package/dist/components/common/BwgPagination.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/guide/BwgPracticeGuideS00.d.ts.map +1 -1
- package/dist/components/guide/BwgPracticeGuideS01.d.ts.map +1 -1
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +56 -55
- package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
- package/dist/components/layout/default/LoadingContainer.d.ts +1 -0
- package/dist/components/layout/default/LoadingContainer.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/popup/MenuReport.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 +154 -153
- package/dist/public/realgrid/css/realgrid-style-custom.css +30 -4
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +1 -1
- package/dist/styles/assets/images/contents/icon/ico-add-bookmark.svg +26 -0
- package/dist/styles/assets/images/contents/icon/ico-edit-folder.svg +18 -0
- package/dist/styles/assets/images/contents/icon/ico-new-folder.svg +20 -0
- package/dist/styles/assets/images/contents/icon/ico-save-bookmark.svg +25 -0
- package/dist/styles/components.css +207 -132
- package/dist/styles/layout-test.css +8 -300
- package/dist/styles/layout.css +77 -113
- package/dist/styles/variables.css +111 -78
- package/dist/utils/gwUtils.d.ts +38 -0
- package/dist/utils/gwUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +730 -698
- package/package.json +1 -1
- package/dist/chunks/layout-components-C5u5K3OY.cjs +0 -35
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as g, jsx as e, Fragment as R } from "react/jsx-runtime";
|
|
2
2
|
import { ServiceCodeProvider as me, CommonCodeProvider as pe, ScreenProtectProvider as he, useLock as ge, SearchBoxProvider as fe } from "../provider/index.js";
|
|
3
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-
|
|
5
|
-
import { Spin as j, Layout as H, ColorPicker as ke, Button as x, Popover as Ne, Avatar as Ie, Tabs as
|
|
6
|
-
import { lazy as F, useEffect as
|
|
7
|
-
import { useLogout as
|
|
4
|
+
import { G as ve, B as we, Q as xe } from "./common-components-CyxuMobg.js";
|
|
5
|
+
import { Spin as j, Layout as H, ColorPicker as ke, Button as x, Popover as Ne, Avatar as Ie, Tabs as Se, Tooltip as z, AutoComplete as Te, Input as Y, Segmented as Le, ConfigProvider as Pe, Menu as te, Result as ie, Space as Me, Typography as Be, Empty as Z, Form as O, Flex as Ee, Checkbox as De } from "antd";
|
|
6
|
+
import { lazy as F, useEffect as S, useState as L, useRef as V, useMemo as W, useCallback as E, createElement as le, memo as q, cloneElement as Oe, Component as Re, Suspense as Q } from "react";
|
|
7
|
+
import { useLogout as Fe, useMenuViewStore as T, useMenuModelStore as Ae, useFavoriteStore as ze, usePopupStore as J, useLogin as He, useSystemStore as Ve } from "../stores/index.js";
|
|
8
8
|
import * as ne from "@ant-design/icons";
|
|
9
|
-
import { UserOutlined as
|
|
10
|
-
import { getCookie as
|
|
11
|
-
import { useSensors as
|
|
12
|
-
import { restrictToHorizontalAxis as
|
|
13
|
-
import { arrayMove as
|
|
14
|
-
const
|
|
9
|
+
import { UserOutlined as _e, StepBackwardOutlined as $e, LeftOutlined as Ge, RightOutlined as We, StepForwardOutlined as je, CloseOutlined as ce, MenuUnfoldOutlined as Ue, MenuFoldOutlined as Ke, ExclamationCircleOutlined as Ze, WarningOutlined as Ye, StarOutlined as Xe, FolderOpenOutlined as qe, ReloadOutlined as de, ExclamationCircleTwoTone as Qe } from "@ant-design/icons";
|
|
10
|
+
import { getCookie as Je, getCurrentDateString as re, setCookie as et, THEME_COOKIE_NAME as oe, getUserId as se } from "../utils/index.js";
|
|
11
|
+
import { useSensors as tt, useSensor as nt, PointerSensor as rt, DndContext as ot, closestCenter as st } from "@dnd-kit/core";
|
|
12
|
+
import { restrictToHorizontalAxis as at } from "@dnd-kit/modifiers";
|
|
13
|
+
import { arrayMove as it, SortableContext as lt, horizontalListSortingStrategy as ct, useSortable as dt } from "@dnd-kit/sortable";
|
|
14
|
+
const ut = F(() => import("./MenuReport-ByLduwwZ.js")), mt = F(() => import("./common-components-CyxuMobg.js").then((r) => r.W)), pt = F(() => import("./common-components-CyxuMobg.js").then((r) => r.X)), ht = F(() => import("./common-components-CyxuMobg.js").then((r) => r.Y)), gt = F(() => import("./common-components-CyxuMobg.js").then((r) => r.Z)), ft = {
|
|
15
15
|
// 게시판/문의
|
|
16
16
|
CORE_REPORT: {
|
|
17
|
-
component:
|
|
17
|
+
component: ut,
|
|
18
18
|
defaultConfig: {
|
|
19
19
|
title: "게시판/문의",
|
|
20
20
|
width: 1200,
|
|
@@ -23,7 +23,7 @@ const dt = F(() => import("./MenuReport-DNeDpJV2.js")), ut = F(() => import("./c
|
|
|
23
23
|
},
|
|
24
24
|
// 조직/부서 검색류
|
|
25
25
|
CORE_DEPARTMENT_01: {
|
|
26
|
-
component:
|
|
26
|
+
component: mt,
|
|
27
27
|
defaultConfig: {
|
|
28
28
|
title: "부서 검색",
|
|
29
29
|
width: 620,
|
|
@@ -31,7 +31,7 @@ const dt = F(() => import("./MenuReport-DNeDpJV2.js")), ut = F(() => import("./c
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
CORE_DEPARTMENT_02: {
|
|
34
|
-
component:
|
|
34
|
+
component: pt,
|
|
35
35
|
defaultConfig: {
|
|
36
36
|
title: "부서 검색",
|
|
37
37
|
width: 620,
|
|
@@ -39,7 +39,7 @@ const dt = F(() => import("./MenuReport-DNeDpJV2.js")), ut = F(() => import("./c
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
CORE_ORGANIZATION_01: {
|
|
42
|
-
component:
|
|
42
|
+
component: ht,
|
|
43
43
|
defaultConfig: {
|
|
44
44
|
title: "조직 검색",
|
|
45
45
|
width: 620,
|
|
@@ -47,7 +47,7 @@ const dt = F(() => import("./MenuReport-DNeDpJV2.js")), ut = F(() => import("./c
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
CORE_ORGANIZATION_02: {
|
|
50
|
-
component:
|
|
50
|
+
component: gt,
|
|
51
51
|
defaultConfig: {
|
|
52
52
|
title: "조직 검색",
|
|
53
53
|
width: 1e3,
|
|
@@ -55,7 +55,7 @@ const dt = F(() => import("./MenuReport-DNeDpJV2.js")), ut = F(() => import("./c
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}, ae = "bwg-dot-line-wave-v4";
|
|
58
|
-
function
|
|
58
|
+
function bt() {
|
|
59
59
|
if (typeof document > "u" || document.getElementById(ae)) return;
|
|
60
60
|
const r = document.createElement("style");
|
|
61
61
|
r.id = ae, r.textContent = `
|
|
@@ -94,7 +94,7 @@ function ft() {
|
|
|
94
94
|
}
|
|
95
95
|
`, document.head.appendChild(r);
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const yt = ({
|
|
98
98
|
colors: r = ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
99
99
|
count: t,
|
|
100
100
|
size: n = 12,
|
|
@@ -104,8 +104,8 @@ const bt = ({
|
|
|
104
104
|
direction: p = "ltr",
|
|
105
105
|
phase: m = 0.7
|
|
106
106
|
}) => {
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
S(() => {
|
|
108
|
+
bt();
|
|
109
109
|
}, []);
|
|
110
110
|
const i = t ?? r.length, c = Array.from({ length: i }), h = {
|
|
111
111
|
"--bwg-size": `${n}px`,
|
|
@@ -133,60 +133,67 @@ const bt = ({
|
|
|
133
133
|
))
|
|
134
134
|
}
|
|
135
135
|
);
|
|
136
|
-
},
|
|
136
|
+
}, en = ({
|
|
137
137
|
spin: r = null,
|
|
138
|
-
text: t = "인증중..."
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
)
|
|
138
|
+
text: t = "인증중...",
|
|
139
|
+
dimStyle: n = "dark"
|
|
140
|
+
}) => {
|
|
141
|
+
if (!(r ?? !0)) return null;
|
|
142
|
+
const d = n === "dark";
|
|
143
|
+
return /* @__PURE__ */ g(
|
|
144
|
+
"div",
|
|
145
|
+
{
|
|
146
|
+
className: "loading-overlay",
|
|
147
|
+
style: {
|
|
148
|
+
position: "fixed",
|
|
149
|
+
height: "100vh",
|
|
150
|
+
left: 0,
|
|
151
|
+
right: 0,
|
|
152
|
+
top: 0,
|
|
153
|
+
display: "flex",
|
|
154
|
+
flexDirection: "column",
|
|
155
|
+
justifyContent: "center",
|
|
156
|
+
alignItems: "center",
|
|
157
|
+
gap: 8,
|
|
158
|
+
padding: "8px 12px",
|
|
159
|
+
background: d ? "rgba(0, 0, 0, 0.6)" : "rgba(255, 255, 255, 0.85)",
|
|
160
|
+
color: d ? "#fff" : "#333",
|
|
161
|
+
backdropFilter: "blur(4px)",
|
|
162
|
+
zIndex: 1e4
|
|
163
|
+
},
|
|
164
|
+
"aria-live": "polite",
|
|
165
|
+
"aria-busy": "true",
|
|
166
|
+
role: "status",
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ e(
|
|
169
|
+
j,
|
|
170
|
+
{
|
|
171
|
+
indicator: /* @__PURE__ */ e(
|
|
172
|
+
yt,
|
|
173
|
+
{
|
|
174
|
+
colors: ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
175
|
+
size: 12,
|
|
176
|
+
gap: 10,
|
|
177
|
+
amp: 16,
|
|
178
|
+
speedMs: 900,
|
|
179
|
+
phase: 0.75,
|
|
180
|
+
direction: "ltr"
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
/* @__PURE__ */ e("span", { className: "bwg-spin-txt", style: { marginTop: "15px" }, children: t })
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
);
|
|
189
|
+
}, tn = ({ routes: r, useCommonProvider: t = !0, useServiceProvider: n = !0 }) => {
|
|
183
190
|
let o = /* @__PURE__ */ g(be, { children: [
|
|
184
191
|
/* @__PURE__ */ e(K, { path: "/", element: /* @__PURE__ */ e(ye, { to: "/login" }) }),
|
|
185
192
|
/* @__PURE__ */ e(K, { path: "/login", element: r.login }),
|
|
186
193
|
/* @__PURE__ */ e(K, { path: "/main", element: r.main })
|
|
187
194
|
] });
|
|
188
195
|
return n && (o = /* @__PURE__ */ e(me, { children: o })), t && (o = /* @__PURE__ */ e(pe, { children: o })), /* @__PURE__ */ e(ve, { children: o });
|
|
189
|
-
}, { Content:
|
|
196
|
+
}, { Content: Ct } = H, vt = ({
|
|
190
197
|
config: r = {},
|
|
191
198
|
children: t
|
|
192
199
|
}) => {
|
|
@@ -202,7 +209,7 @@ const bt = ({
|
|
|
202
209
|
...r
|
|
203
210
|
};
|
|
204
211
|
return /* @__PURE__ */ e(
|
|
205
|
-
|
|
212
|
+
Ct,
|
|
206
213
|
{
|
|
207
214
|
className: n.wrapper.className,
|
|
208
215
|
style: n.wrapper.style,
|
|
@@ -216,7 +223,7 @@ const bt = ({
|
|
|
216
223
|
) })
|
|
217
224
|
}
|
|
218
225
|
);
|
|
219
|
-
},
|
|
226
|
+
}, 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%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", 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%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", kt = "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: Nt } = H, B = {
|
|
220
227
|
light: {
|
|
221
228
|
headerBg: "#ffffff",
|
|
222
229
|
headerText: "#000000",
|
|
@@ -269,7 +276,7 @@ const bt = ({
|
|
|
269
276
|
buttonDefaultBorder: "#dddddd",
|
|
270
277
|
buttonPermissionBorder: "#bdb1ff"
|
|
271
278
|
}
|
|
272
|
-
},
|
|
279
|
+
}, It = ({ config: r = {} }) => {
|
|
273
280
|
const t = {
|
|
274
281
|
gap: 14,
|
|
275
282
|
minWidth: 200,
|
|
@@ -302,7 +309,7 @@ const bt = ({
|
|
|
302
309
|
...r.logo
|
|
303
310
|
},
|
|
304
311
|
right: t
|
|
305
|
-
}, s = Ce(), [o, d] =
|
|
312
|
+
}, s = Ce(), [o, d] = L("modern"), p = V(null), m = Fe(), i = (a, C) => {
|
|
306
313
|
try {
|
|
307
314
|
if (!/^[a-zA-Z0-9-]+$/.test(a) || !/^[#a-zA-Z0-9()\s,.-]+$/.test(C)) return;
|
|
308
315
|
document.documentElement.style.setProperty(a, C);
|
|
@@ -316,10 +323,10 @@ const bt = ({
|
|
|
316
323
|
i("--header-bg", C.headerBg), i("--header-text", C.headerText), i("--sidebar-bg", C.sidebarBg), i("--sidebar-text", C.sidebarText), i("--button-primary", C.buttonPrimary), i("--button-primary-hover", C.buttonPrimaryHover), i("--button-primary-active", C.buttonPrimaryActive), i("--button-default", C.buttonDefault), i("--button-default-hover", C.buttonDefaultHover), i("--button-default-border", C.buttonDefaultBorder), i(
|
|
317
324
|
"--button-permission-border",
|
|
318
325
|
C.buttonPermissionBorder
|
|
319
|
-
), p.current && p.current.setAttribute("data-theme", a), document.documentElement.setAttribute("data-theme", a),
|
|
326
|
+
), p.current && p.current.setAttribute("data-theme", a), document.documentElement.setAttribute("data-theme", a), et(oe, a, 30);
|
|
320
327
|
};
|
|
321
|
-
|
|
322
|
-
const a =
|
|
328
|
+
S(() => {
|
|
329
|
+
const a = Je(oe);
|
|
323
330
|
a && B[a] ? c(a) : c("modern");
|
|
324
331
|
}, []);
|
|
325
332
|
const h = () => ({ ...B[o] }).headerBg, v = () => {
|
|
@@ -365,7 +372,7 @@ const bt = ({
|
|
|
365
372
|
] })
|
|
366
373
|
] });
|
|
367
374
|
return /* @__PURE__ */ g(
|
|
368
|
-
|
|
375
|
+
Nt,
|
|
369
376
|
{
|
|
370
377
|
className: n.wrapper.className,
|
|
371
378
|
style: { ...n.wrapper.style },
|
|
@@ -392,7 +399,7 @@ const bt = ({
|
|
|
392
399
|
x,
|
|
393
400
|
{
|
|
394
401
|
type: "text",
|
|
395
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
402
|
+
icon: /* @__PURE__ */ e("img", { src: wt, alt: "알림" }),
|
|
396
403
|
className: "alarm-btn",
|
|
397
404
|
onClick: n.right?.alarm?.onClick
|
|
398
405
|
}
|
|
@@ -409,7 +416,7 @@ const bt = ({
|
|
|
409
416
|
x,
|
|
410
417
|
{
|
|
411
418
|
type: "text",
|
|
412
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
419
|
+
icon: /* @__PURE__ */ e("img", { src: kt, alt: "개인설정" }),
|
|
413
420
|
className: "theme-btn",
|
|
414
421
|
onClick: n.right?.theme?.onClick
|
|
415
422
|
}
|
|
@@ -420,7 +427,7 @@ const bt = ({
|
|
|
420
427
|
x,
|
|
421
428
|
{
|
|
422
429
|
type: "text",
|
|
423
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
430
|
+
icon: /* @__PURE__ */ e("img", { src: xt, alt: "로그아웃" }),
|
|
424
431
|
onClick: n.right?.logout?.onClick || v,
|
|
425
432
|
className: "logout-btn"
|
|
426
433
|
}
|
|
@@ -428,7 +435,7 @@ const bt = ({
|
|
|
428
435
|
n.right?.avatar?.visible && /* @__PURE__ */ e(
|
|
429
436
|
Ie,
|
|
430
437
|
{
|
|
431
|
-
icon: /* @__PURE__ */ e(
|
|
438
|
+
icon: /* @__PURE__ */ e(_e, {}),
|
|
432
439
|
className: "avatar",
|
|
433
440
|
style: {
|
|
434
441
|
width: n.right?.avatar?.width,
|
|
@@ -482,7 +489,7 @@ const bt = ({
|
|
|
482
489
|
return t + " " + n + "ms " + s;
|
|
483
490
|
}
|
|
484
491
|
}
|
|
485
|
-
}),
|
|
492
|
+
}), St = q(
|
|
486
493
|
({ className: r, ...t }) => {
|
|
487
494
|
const n = V(null), {
|
|
488
495
|
attributes: s,
|
|
@@ -491,8 +498,8 @@ const bt = ({
|
|
|
491
498
|
transition: p,
|
|
492
499
|
isDragging: m,
|
|
493
500
|
setNodeRef: i
|
|
494
|
-
} =
|
|
495
|
-
|
|
501
|
+
} = dt({ id: t["data-node-key"] }), [c, h] = L();
|
|
502
|
+
S(() => {
|
|
496
503
|
const b = n.current;
|
|
497
504
|
if (b)
|
|
498
505
|
if (m) {
|
|
@@ -514,7 +521,7 @@ const bt = ({
|
|
|
514
521
|
maxWidth: c ?? void 0,
|
|
515
522
|
flex: c !== void 0 ? "0 0 auto" : void 0
|
|
516
523
|
};
|
|
517
|
-
return
|
|
524
|
+
return Oe(t.children, {
|
|
518
525
|
ref: (b) => {
|
|
519
526
|
n.current !== b && (n.current = b), i(b);
|
|
520
527
|
},
|
|
@@ -523,7 +530,7 @@ const bt = ({
|
|
|
523
530
|
...o
|
|
524
531
|
});
|
|
525
532
|
}
|
|
526
|
-
),
|
|
533
|
+
), Tt = q(function({
|
|
527
534
|
config: t,
|
|
528
535
|
isFirst: n,
|
|
529
536
|
isLast: s,
|
|
@@ -547,7 +554,7 @@ const bt = ({
|
|
|
547
554
|
className: t.buttons?.className,
|
|
548
555
|
style: t.buttons?.style,
|
|
549
556
|
size: "small",
|
|
550
|
-
icon: /* @__PURE__ */ e(
|
|
557
|
+
icon: /* @__PURE__ */ e($e, {}),
|
|
551
558
|
onClick: d,
|
|
552
559
|
disabled: n
|
|
553
560
|
}
|
|
@@ -566,7 +573,7 @@ const bt = ({
|
|
|
566
573
|
className: t.buttons?.className,
|
|
567
574
|
style: t.buttons?.style,
|
|
568
575
|
size: "small",
|
|
569
|
-
icon: /* @__PURE__ */ e(
|
|
576
|
+
icon: /* @__PURE__ */ e(Ge, {}),
|
|
570
577
|
onClick: p,
|
|
571
578
|
disabled: n
|
|
572
579
|
}
|
|
@@ -585,7 +592,7 @@ const bt = ({
|
|
|
585
592
|
className: t.buttons?.className,
|
|
586
593
|
style: t.buttons?.style,
|
|
587
594
|
size: "small",
|
|
588
|
-
icon: /* @__PURE__ */ e(
|
|
595
|
+
icon: /* @__PURE__ */ e(We, {}),
|
|
589
596
|
onClick: m,
|
|
590
597
|
disabled: s
|
|
591
598
|
}
|
|
@@ -604,7 +611,7 @@ const bt = ({
|
|
|
604
611
|
className: t.buttons?.className,
|
|
605
612
|
style: t.buttons?.style,
|
|
606
613
|
size: "small",
|
|
607
|
-
icon: /* @__PURE__ */ e(
|
|
614
|
+
icon: /* @__PURE__ */ e(je, {}),
|
|
608
615
|
onClick: i,
|
|
609
616
|
disabled: s
|
|
610
617
|
}
|
|
@@ -631,7 +638,7 @@ const bt = ({
|
|
|
631
638
|
}
|
|
632
639
|
)
|
|
633
640
|
] });
|
|
634
|
-
}),
|
|
641
|
+
}), Lt = ({
|
|
635
642
|
config: r = {}
|
|
636
643
|
}) => {
|
|
637
644
|
const t = {
|
|
@@ -659,8 +666,8 @@ const bt = ({
|
|
|
659
666
|
...r?.nav
|
|
660
667
|
},
|
|
661
668
|
...r
|
|
662
|
-
}, n =
|
|
663
|
-
|
|
669
|
+
}, n = T((u) => u.tabs), s = T((u) => u.activeMenuId), o = T((u) => u.focusTab), d = T((u) => u.closeTab), p = T((u) => u.reorderTabs), m = tt(
|
|
670
|
+
nt(rt, { activationConstraint: { distance: 6 } })
|
|
664
671
|
), i = (u) => {
|
|
665
672
|
o(u);
|
|
666
673
|
}, c = (u, N) => {
|
|
@@ -695,25 +702,25 @@ const bt = ({
|
|
|
695
702
|
if (!N || u.id === N.id) return;
|
|
696
703
|
const I = n.findIndex((l) => l.key === u.id), M = n.findIndex((l) => l.key === N.id);
|
|
697
704
|
if (I < 0 || M < 0 || I === M) return;
|
|
698
|
-
const f = n.map((l) => l.key), y =
|
|
705
|
+
const f = n.map((l) => l.key), y = it(f, I, M);
|
|
699
706
|
p?.(y);
|
|
700
707
|
},
|
|
701
708
|
[n, p]
|
|
702
709
|
), G = E(
|
|
703
710
|
(u, N) => /* @__PURE__ */ e(
|
|
704
|
-
|
|
711
|
+
ot,
|
|
705
712
|
{
|
|
706
713
|
sensors: m,
|
|
707
714
|
onDragEnd: $,
|
|
708
|
-
collisionDetection:
|
|
709
|
-
modifiers: [
|
|
715
|
+
collisionDetection: st,
|
|
716
|
+
modifiers: [at],
|
|
710
717
|
children: /* @__PURE__ */ e(
|
|
711
|
-
|
|
718
|
+
lt,
|
|
712
719
|
{
|
|
713
720
|
items: n.map((I) => I.key),
|
|
714
|
-
strategy:
|
|
721
|
+
strategy: ct,
|
|
715
722
|
children: /* @__PURE__ */ e(N, { ...u, children: (I) => /* @__PURE__ */ le(
|
|
716
|
-
|
|
723
|
+
St,
|
|
717
724
|
{
|
|
718
725
|
...I.props,
|
|
719
726
|
key: I.key
|
|
@@ -735,7 +742,7 @@ const bt = ({
|
|
|
735
742
|
display: n.length === 0 ? "none" : "block"
|
|
736
743
|
},
|
|
737
744
|
children: /* @__PURE__ */ e(
|
|
738
|
-
|
|
745
|
+
Se,
|
|
739
746
|
{
|
|
740
747
|
type: "editable-card",
|
|
741
748
|
activeKey: s || void 0,
|
|
@@ -746,7 +753,7 @@ const bt = ({
|
|
|
746
753
|
hideAdd: !0,
|
|
747
754
|
items: U,
|
|
748
755
|
tabBarExtraContent: /* @__PURE__ */ e(
|
|
749
|
-
|
|
756
|
+
Tt,
|
|
750
757
|
{
|
|
751
758
|
config: t?.nav,
|
|
752
759
|
isFirst: !!_,
|
|
@@ -764,7 +771,7 @@ const bt = ({
|
|
|
764
771
|
)
|
|
765
772
|
}
|
|
766
773
|
);
|
|
767
|
-
}, { Sider:
|
|
774
|
+
}, { Sider: Pt } = H, Mt = ({
|
|
768
775
|
config: r = {}
|
|
769
776
|
}) => {
|
|
770
777
|
const t = {
|
|
@@ -808,9 +815,9 @@ const bt = ({
|
|
|
808
815
|
...r
|
|
809
816
|
};
|
|
810
817
|
console.log("@@ 사이드바 config : ", r);
|
|
811
|
-
const [n, s] =
|
|
818
|
+
const [n, s] = L(""), [o, d] = L(
|
|
812
819
|
"category"
|
|
813
|
-
), { activeMenuId: p, sidebarCollapsed: m, openTabFromMenu: i, toggleSidebar: c } =
|
|
820
|
+
), { activeMenuId: p, sidebarCollapsed: m, openTabFromMenu: i, toggleSidebar: c } = T(), { menuList: h, isLoading: v, error: b, findMenuById: a } = Ae(), { nodes: C, treeNodes: P, loadFavoritesIfNeeded: _ } = ze(), A = W(() => {
|
|
814
821
|
const f = [], y = (l, k = 0) => {
|
|
815
822
|
if (l.menuGbCd === t.menuGubunCode.program && l.scrnPath) {
|
|
816
823
|
const w = " ".repeat(k), D = l.menuNo || "";
|
|
@@ -942,14 +949,14 @@ const bt = ({
|
|
|
942
949
|
return {
|
|
943
950
|
key: w.menuId,
|
|
944
951
|
label: ue,
|
|
945
|
-
icon: ee ? void 0 : /* @__PURE__ */ e(
|
|
952
|
+
icon: ee ? void 0 : /* @__PURE__ */ e(Ye, { style: { color: "#faad14" } })
|
|
946
953
|
};
|
|
947
954
|
} else {
|
|
948
955
|
const w = k, D = (w.children ?? []).map(y).filter(Boolean).map(l);
|
|
949
956
|
return {
|
|
950
957
|
key: w.bkmkId,
|
|
951
958
|
label: w.bkmkNm ?? w.bkmkId,
|
|
952
|
-
icon: w.prntBkmkId === "-" ? /* @__PURE__ */ e(
|
|
959
|
+
icon: w.prntBkmkId === "-" ? /* @__PURE__ */ e(Xe, {}) : /* @__PURE__ */ e(qe, {}),
|
|
953
960
|
children: D
|
|
954
961
|
// 빈 배열이면 자동으로 말아줌
|
|
955
962
|
};
|
|
@@ -962,12 +969,12 @@ const bt = ({
|
|
|
962
969
|
() => I(P),
|
|
963
970
|
[I, P, C]
|
|
964
971
|
);
|
|
965
|
-
return
|
|
972
|
+
return S(() => {
|
|
966
973
|
se() && _(se());
|
|
967
|
-
}, [_]),
|
|
974
|
+
}, [_]), S(() => {
|
|
968
975
|
o === "category" && s("");
|
|
969
976
|
}, [o]), /* @__PURE__ */ g(
|
|
970
|
-
|
|
977
|
+
Pt,
|
|
971
978
|
{
|
|
972
979
|
className: t.className.wrapper,
|
|
973
980
|
collapsed: t.collapsed || m,
|
|
@@ -998,7 +1005,7 @@ const bt = ({
|
|
|
998
1005
|
x,
|
|
999
1006
|
{
|
|
1000
1007
|
type: "text",
|
|
1001
|
-
icon: t.collapsed || m ? /* @__PURE__ */ e(
|
|
1008
|
+
icon: t.collapsed || m ? /* @__PURE__ */ e(Ue, {}) : /* @__PURE__ */ e(Ke, {}),
|
|
1002
1009
|
style: {
|
|
1003
1010
|
fontSize: "12px",
|
|
1004
1011
|
color: "#787878",
|
|
@@ -1007,7 +1014,8 @@ const bt = ({
|
|
|
1007
1014
|
height: "100%",
|
|
1008
1015
|
display: "flex",
|
|
1009
1016
|
alignItems: "center",
|
|
1010
|
-
justifyContent: "center"
|
|
1017
|
+
justifyContent: "center",
|
|
1018
|
+
borderRadius: "0 10px 10px 0"
|
|
1011
1019
|
},
|
|
1012
1020
|
onClick: c
|
|
1013
1021
|
}
|
|
@@ -1021,7 +1029,7 @@ const bt = ({
|
|
|
1021
1029
|
padding: 10
|
|
1022
1030
|
},
|
|
1023
1031
|
children: /* @__PURE__ */ e(
|
|
1024
|
-
|
|
1032
|
+
Te,
|
|
1025
1033
|
{
|
|
1026
1034
|
value: n,
|
|
1027
1035
|
options: U,
|
|
@@ -1073,13 +1081,13 @@ const bt = ({
|
|
|
1073
1081
|
marginBottom: "10px"
|
|
1074
1082
|
},
|
|
1075
1083
|
children: /* @__PURE__ */ e(
|
|
1076
|
-
|
|
1084
|
+
Le,
|
|
1077
1085
|
{
|
|
1078
1086
|
className: t.className.segmented.wrapper,
|
|
1079
1087
|
options: [
|
|
1080
1088
|
{
|
|
1081
1089
|
label: /* @__PURE__ */ g(R, { children: [
|
|
1082
|
-
/* @__PURE__ */ e("span", { className: t.className.segmented.item, children: /* @__PURE__ */ g(
|
|
1090
|
+
/* @__PURE__ */ e("span", { className: t.className.segmented.item, style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ g(
|
|
1083
1091
|
"svg",
|
|
1084
1092
|
{
|
|
1085
1093
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1127,13 +1135,13 @@ const bt = ({
|
|
|
1127
1135
|
},
|
|
1128
1136
|
{
|
|
1129
1137
|
label: /* @__PURE__ */ g(R, { children: [
|
|
1130
|
-
/* @__PURE__ */ e("span", { className: t.className.segmented.item, children: /* @__PURE__ */ e(
|
|
1138
|
+
/* @__PURE__ */ e("span", { className: t.className.segmented.item, style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ e(
|
|
1131
1139
|
"svg",
|
|
1132
1140
|
{
|
|
1133
1141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1134
|
-
width: "
|
|
1135
|
-
height: "
|
|
1136
|
-
viewBox: "0 0
|
|
1142
|
+
width: "16",
|
|
1143
|
+
height: "16",
|
|
1144
|
+
viewBox: "0 0 16 16",
|
|
1137
1145
|
fill: "none",
|
|
1138
1146
|
children: /* @__PURE__ */ e(
|
|
1139
1147
|
"path",
|
|
@@ -1164,13 +1172,31 @@ const bt = ({
|
|
|
1164
1172
|
}
|
|
1165
1173
|
),
|
|
1166
1174
|
/* @__PURE__ */ g("div", { className: t.className.sider.content, children: [
|
|
1167
|
-
v && /* @__PURE__ */ g(
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1175
|
+
v && /* @__PURE__ */ g(
|
|
1176
|
+
"div",
|
|
1177
|
+
{
|
|
1178
|
+
className: t.className.sider.loading,
|
|
1179
|
+
style: {
|
|
1180
|
+
padding: 10,
|
|
1181
|
+
margin: "0 auto",
|
|
1182
|
+
textAlign: "center",
|
|
1183
|
+
color: "var(--text-primary)"
|
|
1184
|
+
},
|
|
1185
|
+
children: [
|
|
1186
|
+
/* @__PURE__ */ e(Pe, { theme: {
|
|
1187
|
+
components: {
|
|
1188
|
+
Spin: {
|
|
1189
|
+
colorPrimary: "var(--primary-color)"
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
}, children: /* @__PURE__ */ e(j, { size: "default" }) }),
|
|
1193
|
+
/* @__PURE__ */ e("div", { className: t.className.sider.loadingText, style: { marginTop: 10 }, children: "메뉴 로딩 중..." })
|
|
1194
|
+
]
|
|
1195
|
+
}
|
|
1196
|
+
),
|
|
1171
1197
|
b && /* @__PURE__ */ g("div", { className: t.className.sider.error, children: [
|
|
1172
1198
|
/* @__PURE__ */ e(
|
|
1173
|
-
|
|
1199
|
+
Ze,
|
|
1174
1200
|
{
|
|
1175
1201
|
className: t.className.sider.errorIcon
|
|
1176
1202
|
}
|
|
@@ -1228,7 +1254,7 @@ const bt = ({
|
|
|
1228
1254
|
}
|
|
1229
1255
|
);
|
|
1230
1256
|
};
|
|
1231
|
-
class
|
|
1257
|
+
class Bt extends Re {
|
|
1232
1258
|
constructor(t) {
|
|
1233
1259
|
super(t), this.resetError = () => {
|
|
1234
1260
|
this.setState({ hasError: !1, error: void 0, errorInfo: void 0 });
|
|
@@ -1313,12 +1339,12 @@ class Mt extends Oe {
|
|
|
1313
1339
|
) : this.props.children;
|
|
1314
1340
|
}
|
|
1315
1341
|
}
|
|
1316
|
-
const
|
|
1342
|
+
const Et = ({
|
|
1317
1343
|
isActive: r,
|
|
1318
1344
|
instance: t,
|
|
1319
1345
|
params: n
|
|
1320
1346
|
}) => {
|
|
1321
|
-
const { activeMenuId: s, closeTab: o } =
|
|
1347
|
+
const { activeMenuId: s, closeTab: o } = T(), d = () => {
|
|
1322
1348
|
s && o(s);
|
|
1323
1349
|
};
|
|
1324
1350
|
return t ? /* @__PURE__ */ e(
|
|
@@ -1335,7 +1361,7 @@ const Bt = ({
|
|
|
1335
1361
|
transition: "opacity 0.2s ease-in-out",
|
|
1336
1362
|
pointerEvents: r ? "auto" : "none"
|
|
1337
1363
|
},
|
|
1338
|
-
children: /* @__PURE__ */ e(
|
|
1364
|
+
children: /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ e(Q, { fallback: null, children: t && le(t, { params: n }) }) })
|
|
1339
1365
|
}
|
|
1340
1366
|
) : /* @__PURE__ */ e(
|
|
1341
1367
|
"div",
|
|
@@ -1368,18 +1394,18 @@ const Bt = ({
|
|
|
1368
1394
|
children: /* @__PURE__ */ e(
|
|
1369
1395
|
ie,
|
|
1370
1396
|
{
|
|
1371
|
-
icon: /* @__PURE__ */ e(
|
|
1397
|
+
icon: /* @__PURE__ */ e(Qe, { twoToneColor: "#69b1ff" }),
|
|
1372
1398
|
status: "warning",
|
|
1373
1399
|
title: "등록된 메뉴 정보가 없거나 유효한 메뉴가 아닙니다.",
|
|
1374
|
-
subTitle: /* @__PURE__ */ e(
|
|
1375
|
-
extra: /* @__PURE__ */ e(
|
|
1400
|
+
subTitle: /* @__PURE__ */ e(Be.Text, { type: "secondary", children: "자세한 내용은 관리자에게 문의바랍니다." }),
|
|
1401
|
+
extra: /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(x, { icon: /* @__PURE__ */ e(ce, {}), onClick: d, children: "탭 닫기" }) })
|
|
1376
1402
|
}
|
|
1377
1403
|
)
|
|
1378
1404
|
}
|
|
1379
1405
|
)
|
|
1380
1406
|
}
|
|
1381
1407
|
);
|
|
1382
|
-
},
|
|
1408
|
+
}, Dt = q(Et), Ot = () => /* @__PURE__ */ g(R, { children: [
|
|
1383
1409
|
/* @__PURE__ */ e(
|
|
1384
1410
|
"link",
|
|
1385
1411
|
{
|
|
@@ -1389,7 +1415,7 @@ const Bt = ({
|
|
|
1389
1415
|
}
|
|
1390
1416
|
),
|
|
1391
1417
|
/* @__PURE__ */ e("div", { className: "LandingContainer-wrap", children: /* @__PURE__ */ e("div", { className: "inner", children: /* @__PURE__ */ e("div", { className: "content" }) }) })
|
|
1392
|
-
] }),
|
|
1418
|
+
] }), Rt = (r, t) => {
|
|
1393
1419
|
console.log("createPopupViewLoader 호출 - popupUrl:", r);
|
|
1394
1420
|
const s = ((o) => {
|
|
1395
1421
|
if (o.startsWith("/src/pages/views/popup/")) {
|
|
@@ -1400,15 +1426,15 @@ const Bt = ({
|
|
|
1400
1426
|
return console.log(`팝업 URL 변환: ${o} -> ${p}`), p;
|
|
1401
1427
|
})(r);
|
|
1402
1428
|
return !s || !t?.glob[s] ? (console.warn(`팝업 뷰를 찾을 수 없습니다: ${r} (${s})`), console.warn("사용 가능한 팝업 뷰들:", Object.keys(t?.glob || {})), null) : t?.glob[s];
|
|
1403
|
-
},
|
|
1404
|
-
const [n, s] =
|
|
1429
|
+
}, Ft = ({ popup: r, modules: t }) => {
|
|
1430
|
+
const [n, s] = L(null), [o, d] = L(!1), [p, m] = L(null), i = () => {
|
|
1405
1431
|
console.log("PopupArea - handleClose:", r.popupId), J.getState().closePopup(r.popupId);
|
|
1406
1432
|
};
|
|
1407
|
-
return
|
|
1433
|
+
return S(() => {
|
|
1408
1434
|
(async () => {
|
|
1409
1435
|
console.log("팝업 뷰 로드 시작:", r.popupUrl), d(!0), m(null);
|
|
1410
1436
|
try {
|
|
1411
|
-
const h =
|
|
1437
|
+
const h = Rt(r.popupUrl, t);
|
|
1412
1438
|
if (!h) {
|
|
1413
1439
|
const a = `팝업 뷰를 찾을 수 없습니다: ${r.popupUrl}`;
|
|
1414
1440
|
console.error(a), m(a), d(!1);
|
|
@@ -1460,7 +1486,7 @@ const Bt = ({
|
|
|
1460
1486
|
)
|
|
1461
1487
|
}
|
|
1462
1488
|
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(Z, { description: "팝업 내용을 불러올 수 없습니다." }) });
|
|
1463
|
-
},
|
|
1489
|
+
}, At = ({ modules: r }) => {
|
|
1464
1490
|
const { popups: t } = J();
|
|
1465
1491
|
return t.length === 0 ? null : /* @__PURE__ */ e(R, { children: t.map((n) => {
|
|
1466
1492
|
const s = n.config || {}, o = s.width || n.width || 800, d = s.height || n.height || 600, p = s.title || n.popupTitle, m = n.buttonList?.map((i, c) => ({
|
|
@@ -1477,33 +1503,33 @@ const Bt = ({
|
|
|
1477
1503
|
width: o,
|
|
1478
1504
|
height: d,
|
|
1479
1505
|
buttons: m
|
|
1480
|
-
}), /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1506
|
+
}), /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(Ft, { popup: n, modules: r }) }, n.popupId);
|
|
1481
1507
|
}) });
|
|
1482
|
-
},
|
|
1508
|
+
}, zt = () => {
|
|
1483
1509
|
const { popups: r, closePopup: t } = J();
|
|
1484
1510
|
return /* @__PURE__ */ e(R, { children: r.map((n) => {
|
|
1485
1511
|
if (!(n.isLocal || n.popupCode.startsWith("CORE_"))) return null;
|
|
1486
|
-
const s =
|
|
1512
|
+
const s = ft[n.popupCode];
|
|
1487
1513
|
if (!s) return null;
|
|
1488
1514
|
const o = s.component;
|
|
1489
1515
|
return /* @__PURE__ */ e(Q, { fallback: null, children: /* @__PURE__ */ e(o, { popup: n, onClose: () => t(n.popupId) }) }, n.popupId);
|
|
1490
1516
|
}) });
|
|
1491
|
-
},
|
|
1517
|
+
}, Ht = (r) => ({
|
|
1492
1518
|
position: "absolute",
|
|
1493
1519
|
inset: 0,
|
|
1494
1520
|
visibility: r ? "visible" : "hidden",
|
|
1495
1521
|
opacity: r ? 1 : 0,
|
|
1496
1522
|
transition: "opacity 0.2s ease-in-out",
|
|
1497
1523
|
pointerEvents: r ? "auto" : "none"
|
|
1498
|
-
}),
|
|
1524
|
+
}), Vt = ({ once: r = !0 }) => {
|
|
1499
1525
|
const { lock: t } = ge(), n = V(!1);
|
|
1500
|
-
return
|
|
1526
|
+
return S(() => {
|
|
1501
1527
|
r && n.current || (n.current = !0, t());
|
|
1502
1528
|
}, [r, t]), null;
|
|
1503
|
-
},
|
|
1504
|
-
const d = V(null), [p, m] =
|
|
1529
|
+
}, _t = ({ isActive: r, flagged: t, tabKey: n, onUnlock: s, children: o }) => {
|
|
1530
|
+
const d = V(null), [p, m] = L(!1), i = E((h) => {
|
|
1505
1531
|
d.current = h, m(!!h);
|
|
1506
|
-
}, []), c =
|
|
1532
|
+
}, []), c = Ht(r);
|
|
1507
1533
|
return /* @__PURE__ */ e("div", { ref: i, style: c, children: p ? /* @__PURE__ */ g(
|
|
1508
1534
|
he,
|
|
1509
1535
|
{
|
|
@@ -1515,12 +1541,12 @@ const Bt = ({
|
|
|
1515
1541
|
overlayId: `tab-overlay-${n}`,
|
|
1516
1542
|
onUnlock: async () => (s(), !0),
|
|
1517
1543
|
children: [
|
|
1518
|
-
r && t ? /* @__PURE__ */ e(
|
|
1544
|
+
r && t ? /* @__PURE__ */ e(Vt, { once: !0 }) : null,
|
|
1519
1545
|
o
|
|
1520
1546
|
]
|
|
1521
1547
|
}
|
|
1522
1548
|
) : o });
|
|
1523
|
-
},
|
|
1549
|
+
}, nn = ({
|
|
1524
1550
|
config: r = {},
|
|
1525
1551
|
modules: t = {
|
|
1526
1552
|
view: {
|
|
@@ -1539,7 +1565,7 @@ const Bt = ({
|
|
|
1539
1565
|
activeMenuId: d,
|
|
1540
1566
|
tabProtectFlag: p,
|
|
1541
1567
|
clearProtectFlagForKey: m
|
|
1542
|
-
} =
|
|
1568
|
+
} = T(), i = E(
|
|
1543
1569
|
(c) => {
|
|
1544
1570
|
const h = n.current.get(c.key);
|
|
1545
1571
|
if (h) return h;
|
|
@@ -1556,12 +1582,12 @@ const Bt = ({
|
|
|
1556
1582
|
[t.view?.glob]
|
|
1557
1583
|
);
|
|
1558
1584
|
return /* @__PURE__ */ g(H, { className: "main-layout", children: [
|
|
1559
|
-
/* @__PURE__ */ e(
|
|
1585
|
+
/* @__PURE__ */ e(It, { config: r?.header }),
|
|
1560
1586
|
/* @__PURE__ */ g(H, { children: [
|
|
1561
|
-
/* @__PURE__ */ e(
|
|
1587
|
+
/* @__PURE__ */ e(Mt, { config: r?.sidebar }),
|
|
1562
1588
|
/* @__PURE__ */ g("div", { className: "content-container", children: [
|
|
1563
|
-
/* @__PURE__ */ e(
|
|
1564
|
-
/* @__PURE__ */ g(
|
|
1589
|
+
/* @__PURE__ */ e(Lt, { config: r?.menuTab }),
|
|
1590
|
+
/* @__PURE__ */ g(vt, { config: r?.content, children: [
|
|
1565
1591
|
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */ g(
|
|
1566
1592
|
"div",
|
|
1567
1593
|
{
|
|
@@ -1574,14 +1600,14 @@ const Bt = ({
|
|
|
1574
1600
|
s.map((c) => {
|
|
1575
1601
|
const h = i(c), v = d === c.key, b = !!p?.[c.key], a = o[c.key] || {};
|
|
1576
1602
|
return /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e(
|
|
1577
|
-
|
|
1603
|
+
_t,
|
|
1578
1604
|
{
|
|
1579
1605
|
isActive: v,
|
|
1580
1606
|
flagged: b,
|
|
1581
1607
|
tabKey: c.key,
|
|
1582
1608
|
onUnlock: () => m(c.key),
|
|
1583
1609
|
children: /* @__PURE__ */ e(
|
|
1584
|
-
|
|
1610
|
+
Dt,
|
|
1585
1611
|
{
|
|
1586
1612
|
isActive: v,
|
|
1587
1613
|
instance: h || void 0,
|
|
@@ -1593,29 +1619,29 @@ const Bt = ({
|
|
|
1593
1619
|
c.key
|
|
1594
1620
|
) }, `sbp-${c.key}`);
|
|
1595
1621
|
}),
|
|
1596
|
-
(!d || s.length === 0) && /* @__PURE__ */ e(
|
|
1622
|
+
(!d || s.length === 0) && /* @__PURE__ */ e(Ot, {})
|
|
1597
1623
|
]
|
|
1598
1624
|
}
|
|
1599
1625
|
) }),
|
|
1600
|
-
/* @__PURE__ */ e(
|
|
1601
|
-
/* @__PURE__ */ e(
|
|
1626
|
+
/* @__PURE__ */ e(zt, {}),
|
|
1627
|
+
/* @__PURE__ */ e(At, { modules: t?.popup })
|
|
1602
1628
|
] })
|
|
1603
1629
|
] })
|
|
1604
1630
|
] }),
|
|
1605
1631
|
/* @__PURE__ */ e(xe, {})
|
|
1606
1632
|
] });
|
|
1607
|
-
},
|
|
1608
|
-
function
|
|
1633
|
+
}, rn = ({ config: r, children: t }) => /* @__PURE__ */ e("div", { children: "BwgPortal02" });
|
|
1634
|
+
function on({
|
|
1609
1635
|
config: r,
|
|
1610
1636
|
ui: t,
|
|
1611
1637
|
navigate: n
|
|
1612
1638
|
}) {
|
|
1613
|
-
const { loading: s, capsOn: o, prefills: d, onKeyDown: p, doLogin: m } =
|
|
1614
|
-
return
|
|
1615
|
-
|
|
1639
|
+
const { loading: s, capsOn: o, prefills: d, onKeyDown: p, doLogin: m } = He(r), i = (c) => m(c, n);
|
|
1640
|
+
return S(() => {
|
|
1641
|
+
Ve.getState().fetchSystemMap();
|
|
1616
1642
|
}, []), /* @__PURE__ */ e(R, { children: t({ onSubmit: i, loading: s, capsOn: o, onKeyDown: p, prefills: d }) });
|
|
1617
1643
|
}
|
|
1618
|
-
function
|
|
1644
|
+
function sn({
|
|
1619
1645
|
onSubmit: r,
|
|
1620
1646
|
loading: t,
|
|
1621
1647
|
capsOn: n,
|
|
@@ -1631,12 +1657,12 @@ function on({
|
|
|
1631
1657
|
footer: m
|
|
1632
1658
|
}) {
|
|
1633
1659
|
const [i] = O.useForm();
|
|
1634
|
-
return
|
|
1660
|
+
return S(() => {
|
|
1635
1661
|
o && (o.id || o.pswr) && i.setFieldsValue({ id: o.id, pswr: o.pswr });
|
|
1636
1662
|
}, [o, i]), /* @__PURE__ */ e("div", { className: "login-main", children: /* @__PURE__ */ g("div", { className: "login_wrap", children: [
|
|
1637
1663
|
p || /* @__PURE__ */ e("div", { className: "logo_box" }),
|
|
1638
1664
|
/* @__PURE__ */ e("div", { className: "login_title" }),
|
|
1639
|
-
/* @__PURE__ */ e(O, { form: i, onFinish: r, className: "login-form", children: /* @__PURE__ */ g(
|
|
1665
|
+
/* @__PURE__ */ e(O, { form: i, onFinish: r, className: "login-form", children: /* @__PURE__ */ g(Ee, { vertical: !0, children: [
|
|
1640
1666
|
/* @__PURE__ */ e(
|
|
1641
1667
|
O.Item,
|
|
1642
1668
|
{
|
|
@@ -1666,7 +1692,7 @@ function on({
|
|
|
1666
1692
|
)
|
|
1667
1693
|
}
|
|
1668
1694
|
),
|
|
1669
|
-
/* @__PURE__ */ e(O.Item, { name: "remember", valuePropName: "checked", children: /* @__PURE__ */ e(
|
|
1695
|
+
/* @__PURE__ */ e(O.Item, { name: "remember", valuePropName: "checked", children: /* @__PURE__ */ e(De, { children: d.remember }) }),
|
|
1670
1696
|
/* @__PURE__ */ e("div", { className: n ? "caps-lock caps-lock-on" : "caps-lock", children: n ? "Caps Lock On" : "Caps Lock Off" }),
|
|
1671
1697
|
/* @__PURE__ */ e(O.Item, { children: /* @__PURE__ */ e(x, { type: "primary", htmlType: "submit", loading: t, block: !0, children: d.login }) })
|
|
1672
1698
|
] }) }),
|
|
@@ -1674,19 +1700,19 @@ function on({
|
|
|
1674
1700
|
] }) });
|
|
1675
1701
|
}
|
|
1676
1702
|
export {
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1703
|
+
tn as A,
|
|
1704
|
+
nn as B,
|
|
1705
|
+
Dt as C,
|
|
1706
|
+
sn as D,
|
|
1707
|
+
en as L,
|
|
1708
|
+
At as P,
|
|
1709
|
+
rn as a,
|
|
1710
|
+
on as b,
|
|
1711
|
+
Ot as c,
|
|
1712
|
+
vt as d,
|
|
1713
|
+
It as e,
|
|
1714
|
+
Lt as f,
|
|
1715
|
+
Mt as g,
|
|
1716
|
+
_t as h,
|
|
1717
|
+
ft as l
|
|
1692
1718
|
};
|