aldehyde 0.2.160 → 0.2.161
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/lib/controls/action/index.js +1 -1
- package/lib/controls/action/index.js.map +1 -1
- package/lib/controls/action/utils.d.ts +2 -2
- package/lib/controls/action/utils.d.ts.map +1 -1
- package/lib/controls/action/utils.js +5 -5
- package/lib/controls/action/utils.js.map +1 -1
- package/lib/controls/file-export/select-code-export.d.ts +13 -0
- package/lib/controls/file-export/select-code-export.d.ts.map +1 -0
- package/lib/controls/file-export/select-code-export.js +14 -0
- package/lib/controls/file-export/select-code-export.js.map +1 -0
- package/lib/detail/button/edit-button.d.ts +11 -0
- package/lib/detail/button/edit-button.d.ts.map +1 -0
- package/lib/detail/button/edit-button.js +23 -0
- package/lib/detail/button/edit-button.js.map +1 -0
- package/lib/detail/view/act-dtmpl-view.d.ts +3 -1
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +9 -3
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/{exportor → export}/export-frame.d.ts +4 -0
- package/lib/export/export-frame.d.ts.map +1 -0
- package/lib/{exportor → export}/export-frame.js +6 -4
- package/lib/export/export-frame.js.map +1 -0
- package/lib/export/select-code-export-frame.d.ts +49 -0
- package/lib/export/select-code-export-frame.d.ts.map +1 -0
- package/lib/export/select-code-export-frame.js +145 -0
- package/lib/export/select-code-export-frame.js.map +1 -0
- package/lib/form/criteria-form.d.ts.map +1 -1
- package/lib/form/criteria-form.js +26 -2
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/hooks/useVarCssColor.d.ts +2 -0
- package/lib/hooks/useVarCssColor.d.ts.map +1 -0
- package/lib/hooks/useVarCssColor.js +7 -0
- package/lib/hooks/useVarCssColor.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/layout/MainPage.d.ts.map +1 -1
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/menu/block.css +1 -1
- package/lib/layout/menu/block.d.ts.map +1 -1
- package/lib/layout/menu/block.js +1 -1
- package/lib/layout/menu/block.js.map +1 -1
- package/lib/layout2/components/userButton.d.ts +5 -0
- package/lib/layout2/components/userButton.d.ts.map +1 -0
- package/lib/layout2/components/userButton.js +133 -0
- package/lib/layout2/components/userButton.js.map +1 -0
- package/lib/layout2/css/header.css +38 -0
- package/lib/layout2/header.d.ts +12 -0
- package/lib/layout2/header.d.ts.map +1 -0
- package/lib/layout2/header.js +218 -0
- package/lib/layout2/header.js.map +1 -0
- package/lib/layout2/imgs/1.png +0 -0
- package/lib/layout2/imgs/2.png +0 -0
- package/lib/layout2/imgs/3.png +0 -0
- package/lib/layout2/imgs/4.png +0 -0
- package/lib/layout2/imgs/5.png +0 -0
- package/lib/layout2/imgs/6.png +0 -0
- package/lib/layout2/imgs/home.png +0 -0
- package/lib/layout2/main.d.ts +9 -0
- package/lib/layout2/main.d.ts.map +1 -0
- package/lib/layout2/main.js +14 -0
- package/lib/layout2/main.js.map +1 -0
- package/lib/layout2/page.d.ts +7 -0
- package/lib/layout2/page.d.ts.map +1 -0
- package/lib/layout2/page.js +120 -0
- package/lib/layout2/page.js.map +1 -0
- package/lib/layout2/sider.d.ts +10 -0
- package/lib/layout2/sider.d.ts.map +1 -0
- package/lib/layout2/sider.js +259 -0
- package/lib/layout2/sider.js.map +1 -0
- package/lib/layout2/type/layout.type.d.ts +10 -0
- package/lib/layout2/type/layout.type.d.ts.map +1 -0
- package/lib/layout2/type/layout.type.js +2 -0
- package/lib/layout2/type/layout.type.js.map +1 -0
- package/lib/layout2/util/menu.util.d.ts +28 -0
- package/lib/layout2/util/menu.util.d.ts.map +1 -0
- package/lib/layout2/util/menu.util.js +76 -0
- package/lib/layout2/util/menu.util.js.map +1 -0
- package/lib/login2/Login.d.ts +10 -0
- package/lib/login2/Login.d.ts.map +1 -0
- package/lib/login2/Login.js +63 -0
- package/lib/login2/Login.js.map +1 -0
- package/lib/login2/LoginPage.d.ts +4 -0
- package/lib/login2/LoginPage.d.ts.map +1 -0
- package/lib/login2/LoginPage.js +42 -0
- package/lib/login2/LoginPage.js.map +1 -0
- package/lib/login2/img/login-bg.png +0 -0
- package/lib/login2/index.d.ts +4 -0
- package/lib/login2/index.d.ts.map +1 -0
- package/lib/login2/index.js +4 -0
- package/lib/login2/index.js.map +1 -0
- package/lib/module/ltmpl-table.d.ts +4 -2
- package/lib/module/ltmpl-table.d.ts.map +1 -1
- package/lib/module/ltmpl-table.js +10 -8
- package/lib/module/ltmpl-table.js.map +1 -1
- package/lib/routable/dtmpl-route.d.ts +3 -2
- package/lib/routable/dtmpl-route.d.ts.map +1 -1
- package/lib/routable/dtmpl-route.js +20 -16
- package/lib/routable/dtmpl-route.js.map +1 -1
- package/lib/routable/import-route.d.ts +3 -2
- package/lib/routable/import-route.d.ts.map +1 -1
- package/lib/routable/import-route.js +10 -6
- package/lib/routable/import-route.js.map +1 -1
- package/lib/routable/ltmpl-route.d.ts +1 -0
- package/lib/routable/ltmpl-route.d.ts.map +1 -1
- package/lib/routable/ltmpl-route.js +21 -15
- package/lib/routable/ltmpl-route.js.map +1 -1
- package/lib/routable/ttmpl-route.d.ts +3 -2
- package/lib/routable/ttmpl-route.d.ts.map +1 -1
- package/lib/routable/ttmpl-route.js +13 -9
- package/lib/routable/ttmpl-route.js.map +1 -1
- package/lib/routable/withroute.d.ts +1 -1
- package/lib/routable/withroute.d.ts.map +1 -1
- package/lib/routable/withroute.js +3 -3
- package/lib/routable/withroute.js.map +1 -1
- package/lib/table/act-table.d.ts +6 -3
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +110 -88
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/index.css +4 -4
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.d.ts +2 -2
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/relation-table.js +5 -5
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/select-table.js +2 -2
- package/lib/table/select-table.js.map +1 -1
- package/lib/tmpl/hc-data-source.d.ts.map +1 -1
- package/lib/tmpl/hc-data-source.js +2 -3
- package/lib/tmpl/hc-data-source.js.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts +3 -2
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js +11 -2
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/interface.d.ts +41 -6
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tree/tmpl-tree.d.ts.map +1 -1
- package/lib/tree/tmpl-tree.js +2 -1
- package/lib/tree/tmpl-tree.js.map +1 -1
- package/lib/welcome/HCWelcome.d.ts +1 -1
- package/lib/welcome/HCWelcome.js +254 -169
- package/lib/welcome/HCWelcome.js.map +1 -1
- package/lib/welcome/img/welcome.png +0 -0
- package/package.json +1 -1
- package/src/aldehyde/controls/action/index.tsx +1 -1
- package/src/aldehyde/controls/action/utils.tsx +4 -5
- package/src/aldehyde/controls/file-export/select-code-export.tsx +40 -0
- package/src/aldehyde/detail/button/edit-button.tsx +51 -0
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +14 -2
- package/src/aldehyde/{exportor → export}/export-frame.tsx +10 -6
- package/src/aldehyde/export/select-code-export-frame.tsx +218 -0
- package/src/aldehyde/form/criteria-form.tsx +35 -0
- package/src/aldehyde/hooks/useVarCssColor.ts +6 -0
- package/src/aldehyde/index.tsx +2 -2
- package/src/aldehyde/layout/MainPage.tsx +8 -6
- package/src/aldehyde/layout/menu/block.css +1 -1
- package/src/aldehyde/layout/menu/block.tsx +1 -0
- package/src/aldehyde/layout2/components/userButton.tsx +171 -0
- package/src/aldehyde/layout2/css/header.css +38 -0
- package/src/aldehyde/layout2/header.tsx +334 -0
- package/src/aldehyde/layout2/imgs/1.png +0 -0
- package/src/aldehyde/layout2/imgs/2.png +0 -0
- package/src/aldehyde/layout2/imgs/3.png +0 -0
- package/src/aldehyde/layout2/imgs/4.png +0 -0
- package/src/aldehyde/layout2/imgs/5.png +0 -0
- package/src/aldehyde/layout2/imgs/6.png +0 -0
- package/src/aldehyde/layout2/imgs/home.png +0 -0
- package/src/aldehyde/layout2/imgs/s.svg +3 -0
- package/src/aldehyde/layout2/main.tsx +27 -0
- package/src/aldehyde/layout2/page.tsx +169 -0
- package/src/aldehyde/layout2/sider.tsx +357 -0
- package/src/aldehyde/layout2/type/layout.type.ts +10 -0
- package/src/aldehyde/layout2/util/menu.util.tsx +112 -0
- package/src/aldehyde/login2/Login.tsx +110 -0
- package/src/aldehyde/login2/LoginPage.tsx +58 -0
- package/src/aldehyde/login2/img/login-bg.png +0 -0
- package/src/aldehyde/login2/index.tsx +4 -0
- package/src/aldehyde/module/ltmpl-table.tsx +12 -9
- package/src/aldehyde/routable/dtmpl-route.tsx +141 -121
- package/src/aldehyde/routable/import-route.tsx +28 -23
- package/src/aldehyde/routable/ltmpl-route.tsx +82 -56
- package/src/aldehyde/routable/ttmpl-route.tsx +73 -55
- package/src/aldehyde/routable/withroute.tsx +21 -18
- package/src/aldehyde/table/act-table.tsx +88 -66
- package/src/aldehyde/table/index.css +4 -4
- package/src/aldehyde/table/query-table.tsx +1 -4
- package/src/aldehyde/table/relation-table.tsx +7 -7
- package/src/aldehyde/table/select-table.tsx +2 -2
- package/src/aldehyde/tmpl/hc-data-source.tsx +373 -352
- package/src/aldehyde/tmpl/hcservice-v3.tsx +33 -17
- package/src/aldehyde/tmpl/interface.tsx +43 -6
- package/src/aldehyde/tree/tmpl-tree.tsx +2 -1
- package/src/aldehyde/welcome/HCWelcome.js +270 -235
- package/src/aldehyde/welcome/img/welcome.png +0 -0
- package/lib/exportor/export-frame.d.ts.map +0 -1
- package/lib/exportor/export-frame.js.map +0 -1
- /package/lib/{exportor → export}/export-frame.css +0 -0
- /package/src/aldehyde/{exportor → export}/export-frame.css +0 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { ConfigProvider, Layout, Menu, theme } from "antd";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import "./css/header.css";
|
|
4
|
+
import L2MenuQuickBar from "../layout/menu/l2menu-quick-bar";
|
|
5
|
+
import L2MenuMessageBar from "../layout/menu/l2menu-message-bar";
|
|
6
|
+
import LocaleButton from "../locale/LocaleButton";
|
|
7
|
+
import UserButton from "./components/userButton";
|
|
8
|
+
import homePng from "./imgs/home.png";
|
|
9
|
+
import { NavLink, useParams } from "react-router-dom";
|
|
10
|
+
import { getLeftMostRouteInfo, handlePropsMenuToAntdMenu, } from "./util/menu.util";
|
|
11
|
+
import { useLocale } from "../locale/useLocale";
|
|
12
|
+
import { generate } from "@ant-design/colors";
|
|
13
|
+
// const items: MenuItem[] = [
|
|
14
|
+
// {
|
|
15
|
+
// label: "Navigation One",
|
|
16
|
+
// key: "mail",
|
|
17
|
+
// icon: <img src={png1} alt="1" width={16} height={16}></img>,
|
|
18
|
+
// },
|
|
19
|
+
// {
|
|
20
|
+
// label: "Navigation Two",
|
|
21
|
+
// key: "app",
|
|
22
|
+
// disabled: false,
|
|
23
|
+
// icon: <img src={png2} alt="2" width={16} height={16}></img>,
|
|
24
|
+
// },
|
|
25
|
+
// {
|
|
26
|
+
// label: "Navigation Two",
|
|
27
|
+
// key: "app2",
|
|
28
|
+
// disabled: false,
|
|
29
|
+
// icon: <img src={png3} alt="2" width={16} height={16}></img>,
|
|
30
|
+
// },
|
|
31
|
+
// {
|
|
32
|
+
// label: "Navigation Two",
|
|
33
|
+
// key: "app3",
|
|
34
|
+
// disabled: false,
|
|
35
|
+
// icon: <img src={png4} alt="2" width={16} height={16}></img>,
|
|
36
|
+
// },
|
|
37
|
+
// {
|
|
38
|
+
// label: "Navigation Two",
|
|
39
|
+
// key: "app4",
|
|
40
|
+
// disabled: true,
|
|
41
|
+
// icon: <img src={png5} alt="2" width={16} height={16}></img>,
|
|
42
|
+
// },
|
|
43
|
+
// {
|
|
44
|
+
// label: "Navigation Three - Submenu",
|
|
45
|
+
// key: "SubMenu",
|
|
46
|
+
// icon: <img src={png6} alt="2" width={16} height={16}></img>,
|
|
47
|
+
// children: [
|
|
48
|
+
// {
|
|
49
|
+
// type: "group",
|
|
50
|
+
// label: "Item 1",
|
|
51
|
+
// children: [
|
|
52
|
+
// { label: "Option 1", key: "setting:1" },
|
|
53
|
+
// { label: "Option 2", key: "setting:2" },
|
|
54
|
+
// ],
|
|
55
|
+
// },
|
|
56
|
+
// {
|
|
57
|
+
// type: "group",
|
|
58
|
+
// label: "Item 2",
|
|
59
|
+
// children: [
|
|
60
|
+
// { label: "Option 3", key: "setting:3" },
|
|
61
|
+
// { label: "Option 4", key: "setting:4" },
|
|
62
|
+
// ],
|
|
63
|
+
// },
|
|
64
|
+
// ],
|
|
65
|
+
// },
|
|
66
|
+
// {
|
|
67
|
+
// key: "alipay",
|
|
68
|
+
// label: (
|
|
69
|
+
// <a href="https://ant.design" target="_blank" rel="noopener noreferrer">
|
|
70
|
+
// Navigation Four - Link
|
|
71
|
+
// </a>
|
|
72
|
+
// ),
|
|
73
|
+
// icon: <img src={png6} alt="2" width={16} height={16}></img>,
|
|
74
|
+
// },
|
|
75
|
+
// ];
|
|
76
|
+
const { useToken } = theme;
|
|
77
|
+
const Header = ({ systemName, menuList, style }) => {
|
|
78
|
+
// token
|
|
79
|
+
const { token: { colorPrimary }, } = useToken();
|
|
80
|
+
const colors = generate(colorPrimary);
|
|
81
|
+
console.log("header", colors);
|
|
82
|
+
// translate
|
|
83
|
+
const { translate } = useLocale();
|
|
84
|
+
const [menu, setMenu] = useState([]);
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
setMenu(handlePropsMenuToAntdMenu(menuList, (menuItem, floor) => {
|
|
87
|
+
const { disabled, label, children } = menuItem;
|
|
88
|
+
if (disabled)
|
|
89
|
+
return (React.createElement("div", { style: {
|
|
90
|
+
color: "inherit",
|
|
91
|
+
width: "100%",
|
|
92
|
+
height: "100%",
|
|
93
|
+
display: "block",
|
|
94
|
+
} }, translate("${" + label + "}")));
|
|
95
|
+
const { path, target } = getLeftMostRouteInfo(menuItem);
|
|
96
|
+
if (floor === 0)
|
|
97
|
+
return (React.createElement(NavLink, { to: `/${path}`, target: target, style: {
|
|
98
|
+
color: "inherit",
|
|
99
|
+
width: "100%",
|
|
100
|
+
height: "100%",
|
|
101
|
+
display: "block",
|
|
102
|
+
} }, translate("${" + label + "}")));
|
|
103
|
+
if (Array.isArray(children) && !children.length)
|
|
104
|
+
return (React.createElement(NavLink, { to: `/${path}`, target: target, style: {
|
|
105
|
+
color: "inherit",
|
|
106
|
+
width: "100%",
|
|
107
|
+
height: "100%",
|
|
108
|
+
display: "block",
|
|
109
|
+
} }, translate("${" + label + "}")));
|
|
110
|
+
return label;
|
|
111
|
+
}, "layout2-header-menu-item"));
|
|
112
|
+
}, [menuList]);
|
|
113
|
+
// menu select
|
|
114
|
+
const [selectedKeys, setSelectedKeys] = useState([]);
|
|
115
|
+
const { sourceId } = useParams();
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
if (sourceId !== undefined)
|
|
118
|
+
setSelectedKeys([sourceId]);
|
|
119
|
+
}, [sourceId]);
|
|
120
|
+
// default select keys
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
if (sourceId === undefined) {
|
|
123
|
+
if (menuList[0] !== undefined) {
|
|
124
|
+
setSelectedKeys([menuList[0].id]);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}, [menuList, sourceId]);
|
|
128
|
+
return (React.createElement(Layout.Header, { style: Object.assign({ padding: 0, display: "flex", flexDirection: "row", background: colorPrimary, color: "#FFFFFF" }, style) },
|
|
129
|
+
React.createElement(NavLink, { style: {
|
|
130
|
+
width: "200px",
|
|
131
|
+
minWidth: "200px",
|
|
132
|
+
height: "100%",
|
|
133
|
+
display: "flex",
|
|
134
|
+
paddingLeft: "10px",
|
|
135
|
+
alignItems: "center",
|
|
136
|
+
fontSize: "18px",
|
|
137
|
+
userSelect: "none",
|
|
138
|
+
color: "inherit",
|
|
139
|
+
}, to: "/v2" },
|
|
140
|
+
React.createElement("img", { src: homePng, alt: "home", width: 35, height: 35, style: {
|
|
141
|
+
marginRight: 5,
|
|
142
|
+
} }),
|
|
143
|
+
systemName),
|
|
144
|
+
React.createElement("div", { style: {
|
|
145
|
+
display: "flex",
|
|
146
|
+
flexDirection: "row",
|
|
147
|
+
width: "calc(100% - 200px)",
|
|
148
|
+
justifyContent: "space-between",
|
|
149
|
+
} },
|
|
150
|
+
React.createElement(ConfigProvider, { theme: {
|
|
151
|
+
components: {
|
|
152
|
+
Menu: {
|
|
153
|
+
itemBg: "transparent",
|
|
154
|
+
popupBg: colors[4],
|
|
155
|
+
subMenuItemBg: colors[4],
|
|
156
|
+
itemHoverColor: "#fff",
|
|
157
|
+
itemColor: "#fff",
|
|
158
|
+
itemSelectedBg: colors[3],
|
|
159
|
+
itemSelectedColor: "#fff !important",
|
|
160
|
+
groupTitleColor: "#fff",
|
|
161
|
+
horizontalItemHoverColor: "#fff",
|
|
162
|
+
horizontalItemSelectedColor: "#fff",
|
|
163
|
+
horizontalItemSelectedBg: colors[6],
|
|
164
|
+
fontSize: 16,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
} },
|
|
168
|
+
React.createElement(Menu, { mode: "horizontal", items: menu, selectedKeys: selectedKeys, style: {
|
|
169
|
+
userSelect: "none",
|
|
170
|
+
minWidth: 0,
|
|
171
|
+
flex: "auto",
|
|
172
|
+
}, className: "layout2-header-menu" })),
|
|
173
|
+
React.createElement("div", { style: {
|
|
174
|
+
height: "100%",
|
|
175
|
+
display: "flex",
|
|
176
|
+
flexDirection: "row",
|
|
177
|
+
} },
|
|
178
|
+
React.createElement("div", { style: {
|
|
179
|
+
width: "64px",
|
|
180
|
+
height: "100%",
|
|
181
|
+
display: "flex",
|
|
182
|
+
justifyContent: "center",
|
|
183
|
+
alignItems: "center",
|
|
184
|
+
} },
|
|
185
|
+
React.createElement(L2MenuQuickBar, null)),
|
|
186
|
+
React.createElement("div", { style: {
|
|
187
|
+
width: "64px",
|
|
188
|
+
height: "100%",
|
|
189
|
+
display: "flex",
|
|
190
|
+
justifyContent: "center",
|
|
191
|
+
alignItems: "center",
|
|
192
|
+
} },
|
|
193
|
+
React.createElement(L2MenuMessageBar, null)),
|
|
194
|
+
React.createElement("div", { style: {
|
|
195
|
+
width: "64px",
|
|
196
|
+
height: "100%",
|
|
197
|
+
display: "flex",
|
|
198
|
+
justifyContent: "center",
|
|
199
|
+
alignItems: "center",
|
|
200
|
+
} },
|
|
201
|
+
React.createElement(LocaleButton, { shape: "default", size: "large", type: "text", style: {
|
|
202
|
+
width: "100%",
|
|
203
|
+
height: "100%",
|
|
204
|
+
boxSizing: "border-box",
|
|
205
|
+
padding: "0 10px",
|
|
206
|
+
borderRadius: 0,
|
|
207
|
+
color: "#fff",
|
|
208
|
+
} })),
|
|
209
|
+
React.createElement("div", { style: {
|
|
210
|
+
height: "100%",
|
|
211
|
+
display: "flex",
|
|
212
|
+
justifyContent: "center",
|
|
213
|
+
alignItems: "center",
|
|
214
|
+
} },
|
|
215
|
+
React.createElement(UserButton, null))))));
|
|
216
|
+
};
|
|
217
|
+
export default Header;
|
|
218
|
+
//# sourceMappingURL=header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../../src/aldehyde/layout2/header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,MAAM,EAAE,IAAI,EAAa,KAAK,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,kBAAkB,CAAC;AAC1B,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,YAAY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AAC;AAEF,eAAe,MAAM,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Layout } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
type MainPropsType = {
|
|
4
|
+
style?: typeof Layout.Content.defaultProps.style;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare const Main: React.FC<MainPropsType>;
|
|
8
|
+
export default Main;
|
|
9
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/aldehyde/layout2/main.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAejC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Layout } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Outlet } from "react-router-dom";
|
|
4
|
+
const Main = ({ style, children }) => {
|
|
5
|
+
return (React.createElement(Layout.Content, { style: Object.assign({ background: "#fff", overflow: "auto" }, style) },
|
|
6
|
+
React.createElement("div", { style: {
|
|
7
|
+
width: "100%",
|
|
8
|
+
height: "100%",
|
|
9
|
+
overflow: "auto",
|
|
10
|
+
padding: 10,
|
|
11
|
+
} }, children ? children : React.createElement(Outlet, null))));
|
|
12
|
+
};
|
|
13
|
+
export default Main;
|
|
14
|
+
//# sourceMappingURL=main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/aldehyde/layout2/main.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAO1C,MAAM,IAAI,GAA4B,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5D,OAAO,CACL,oBAAC,MAAM,CAAC,OAAO,IAAC,KAAK,kBAAI,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAK,KAAK;QACrE,6BACE,KAAK,EAAE;gBACL,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,QAAQ,EAAE,MAAM;gBAChB,OAAO,EAAE,EAAE;aACZ,IAEA,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,oBAAC,MAAM,OAAG,CAC7B,CACS,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/aldehyde/layout2/page.tsx"],"names":[],"mappings":"AACA,OAAO,KAKN,MAAM,OAAO,CAAC;AAUf,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AA4GF,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwCjC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { Layout, theme } from "antd";
|
|
11
|
+
import React, { useEffect, useRef, useState, } from "react";
|
|
12
|
+
import Header from "./header";
|
|
13
|
+
import Sider from "./sider";
|
|
14
|
+
import Main from "./main";
|
|
15
|
+
import HcserviceV3 from "../tmpl/hcservice-v3";
|
|
16
|
+
import { useVarCssColor } from "../hooks/useVarCssColor";
|
|
17
|
+
import { generate } from "@ant-design/colors";
|
|
18
|
+
const handleMenuItemUrl = (id, pageType, query = {}, customPath) => {
|
|
19
|
+
if (customPath)
|
|
20
|
+
return customPath;
|
|
21
|
+
const queryParam = Object.assign({}, query);
|
|
22
|
+
queryParam["menuId"] = id;
|
|
23
|
+
let routePath = "", operator = "";
|
|
24
|
+
switch (pageType) {
|
|
25
|
+
case "列表":
|
|
26
|
+
routePath = "act-table";
|
|
27
|
+
break;
|
|
28
|
+
case "树":
|
|
29
|
+
routePath = "act-tree";
|
|
30
|
+
break;
|
|
31
|
+
case "添加":
|
|
32
|
+
routePath = "detail-edit";
|
|
33
|
+
operator = "new";
|
|
34
|
+
break;
|
|
35
|
+
case "编辑":
|
|
36
|
+
routePath = "detail-edit";
|
|
37
|
+
operator = "listop";
|
|
38
|
+
break;
|
|
39
|
+
case "编辑或添加":
|
|
40
|
+
routePath = "detail-edit";
|
|
41
|
+
operator = "listop-new";
|
|
42
|
+
break;
|
|
43
|
+
case "详情":
|
|
44
|
+
routePath = "detail-view";
|
|
45
|
+
operator = "listop";
|
|
46
|
+
break;
|
|
47
|
+
default:
|
|
48
|
+
routePath = "";
|
|
49
|
+
}
|
|
50
|
+
if (operator !== "")
|
|
51
|
+
queryParam["codeSource"] = operator;
|
|
52
|
+
return `v2/${id}/${routePath}?${Object.entries(queryParam)
|
|
53
|
+
.map(([key, val]) => `${key}=${val}`)
|
|
54
|
+
.join("&")}`;
|
|
55
|
+
};
|
|
56
|
+
const handleMenuRes = (menuList) => {
|
|
57
|
+
const retList = [];
|
|
58
|
+
menuList.sort((a, b) => {
|
|
59
|
+
const aOrder = Number(a.order);
|
|
60
|
+
const bOrder = Number(b.order);
|
|
61
|
+
if (aOrder < bOrder)
|
|
62
|
+
return -1;
|
|
63
|
+
if (aOrder > bOrder)
|
|
64
|
+
return 1;
|
|
65
|
+
return 0;
|
|
66
|
+
});
|
|
67
|
+
for (const { id, title, disabled, hiddenOnDisabled, customPath, pageType, linkTarget, defaultCriteriaValue, items, } of menuList) {
|
|
68
|
+
if (hiddenOnDisabled === true ||
|
|
69
|
+
hiddenOnDisabled === undefined ||
|
|
70
|
+
hiddenOnDisabled === null) {
|
|
71
|
+
const menu = {
|
|
72
|
+
id,
|
|
73
|
+
label: title,
|
|
74
|
+
disabled: disabled === undefined ? false : disabled,
|
|
75
|
+
url: handleMenuItemUrl(id, pageType, defaultCriteriaValue, customPath),
|
|
76
|
+
linkTarget,
|
|
77
|
+
children: (items === null || items === void 0 ? void 0 : items.length) ? handleMenuRes(items) : [],
|
|
78
|
+
};
|
|
79
|
+
retList.push(menu);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return retList;
|
|
83
|
+
};
|
|
84
|
+
const getMenuConfig = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
85
|
+
const res = yield HcserviceV3.requestBlocks("", "");
|
|
86
|
+
const menuList = handleMenuRes(res.blocks);
|
|
87
|
+
return {
|
|
88
|
+
menu: menuList,
|
|
89
|
+
systemName: res.programName,
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
const { useToken } = theme;
|
|
93
|
+
const Page = (props) => {
|
|
94
|
+
const { token: { colorPrimary }, } = useToken();
|
|
95
|
+
const [systemName, setSystemName] = useState("");
|
|
96
|
+
const [menu, SetMenu] = useState([]);
|
|
97
|
+
useEffect(() => {
|
|
98
|
+
getMenuConfig().then(({ menu, systemName: name }) => {
|
|
99
|
+
setSystemName(name);
|
|
100
|
+
SetMenu(menu);
|
|
101
|
+
});
|
|
102
|
+
}, []);
|
|
103
|
+
// page ref
|
|
104
|
+
const pageRef = useRef();
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
useVarCssColor(generate(colorPrimary));
|
|
107
|
+
}, []);
|
|
108
|
+
return (React.createElement("div", { ref: pageRef, style: {
|
|
109
|
+
width: "100%",
|
|
110
|
+
height: "100%",
|
|
111
|
+
position: "absolute",
|
|
112
|
+
} },
|
|
113
|
+
React.createElement(Layout, { style: { height: "100%" } },
|
|
114
|
+
React.createElement(Header, { systemName: systemName, menuList: menu }),
|
|
115
|
+
React.createElement(Layout, null,
|
|
116
|
+
React.createElement(Sider, { menuList: menu }),
|
|
117
|
+
React.createElement(Main, null, props.children)))));
|
|
118
|
+
};
|
|
119
|
+
export default Page;
|
|
120
|
+
//# sourceMappingURL=page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../../src/aldehyde/layout2/page.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EAAE,EAEZ,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,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,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,GAAW;YACzD,oBAAC,MAAM;gBACL,oBAAC,KAAK,IAAC,QAAQ,EAAE,IAAI,GAAU;gBAC/B,oBAAC,IAAI,QAAE,KAAK,CAAC,QAAQ,CAAQ,CACtB,CACF,CACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Layout } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { MenuType } from "./type/layout.type";
|
|
4
|
+
type SiderPropsType = {
|
|
5
|
+
menuList: MenuType[];
|
|
6
|
+
style?: typeof Layout.Sider.defaultProps.style;
|
|
7
|
+
};
|
|
8
|
+
declare const Sider: React.FC<SiderPropsType>;
|
|
9
|
+
export default Sider;
|
|
10
|
+
//# sourceMappingURL=sider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sider.d.ts","sourceRoot":"","sources":["../../../../src/aldehyde/layout2/sider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,MAAM,EAAmC,MAAM,MAAM,CAAC;AAC/E,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAU9C,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC;CAChD,CAAC;AAgMF,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmJnC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|