@baishuyun/ui-business 4.0.0 → 4.1.0
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/ConfigProvider/ConfigProvider-CAq3dN6-.js +15 -0
- package/dist/ConfigProvider/configContext-_BAslzM-.js +9 -0
- package/dist/ConfigProvider/index.d.ts +2 -0
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DeptsMember/DeptsMember-BNuoQ8y4.js +865 -0
- package/dist/DeptsMember/ExtraConcactPanel-BoSCI3s5.js +738 -0
- package/dist/DeptsMember/OrganizationPanel-ByWU1PWX.js +275 -0
- package/dist/DeptsMember/TabGroup-DZC7i-Yr.js +104 -0
- package/dist/DeptsMember/index-BRIA1uOQ.js +88 -0
- package/dist/DeptsMember/index.js +6 -4
- package/dist/DeptsMember/subcomponents/Entity/Department/index.js +115 -76
- package/dist/DeptsMember/subcomponents/Entity/DeptsUser/index.js +256 -27
- package/dist/DeptsMember/subcomponents/Entity/Member/index.js +15 -12
- package/dist/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/RelationShipDepts/index.d.ts +4 -0
- package/dist/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/RelationShipDepts/index.js +15 -0
- package/dist/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/RelationShipList/index.d.ts +4 -0
- package/dist/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/RelationShipList/index.js +67 -0
- package/dist/DeptsMember/useDeptsMemberSelector-D3rvDuVf.js +13 -0
- package/dist/Scatterplot/Scatterplot-CD1c18zN.js +215 -0
- package/dist/Scatterplot/index.d.ts +6 -0
- package/dist/Scatterplot/index.js +4 -0
- package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +13 -1
- package/dist/components/ConfigProvider/index.d.ts +1 -0
- package/dist/components/DeptsMember/DeptsMember.type.d.ts +15 -0
- package/dist/components/DeptsMember/hooks/useDeptsMemberSelector.d.ts +4 -0
- package/dist/components/DeptsMember/index.d.ts +1 -0
- package/dist/components/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/MemberRelationShip.d.ts +2 -0
- package/dist/components/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/RelationShipDepts/index.d.ts +5 -0
- package/dist/components/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/RelationShipList/index.d.ts +15 -0
- package/dist/components/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/RelationShipMember/RelationShipMember.d.ts +6 -0
- package/dist/components/DeptsMember/subcomponents/Panels/OtherPanel/OtherPanel.d.ts +5 -0
- package/dist/components/Scatterplot/Scatterplot.d.ts +3 -0
- package/dist/components/Scatterplot/Scatterplot.type.d.ts +59 -0
- package/dist/components/Scatterplot/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +14 -7
- package/dist/lang/en-US.json.d.ts +7 -2
- package/dist/lang/zh-CN.json.d.ts +7 -2
- package/dist/services/apiService.d.ts +1 -0
- package/dist/services/ncorp/department.service.d.ts +11 -0
- package/dist/services/ncorp/relation.service.d.ts +4 -0
- package/dist/utils/getRelationNodeName.d.ts +9 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/recordSelectedNode.d.ts +8 -0
- package/dist/vendors/echarts.js +43864 -0
- package/dist/vendors/services/apiService.js +18 -10
- package/dist/vendors/services/corp/outsider.service.js +4 -4
- package/dist/vendors/services/data/department.service.js +3 -3
- package/dist/vendors/services/data/member.service.js +6 -6
- package/dist/vendors/services/data/member_limit.service.js +3 -3
- package/dist/vendors/services/data/outsider.service.js +4 -4
- package/dist/vendors/services/ncorp/department.service.js +6 -0
- package/dist/vendors/services/ncorp/relation.service.js +5 -0
- package/dist/vendors/useLocale.js +42 -0
- package/package.json +4 -3
- package/dist/ConfigProvider/ConfigProvider-CE-neQMa.js +0 -9
- package/dist/ConfigProvider/configContext-lDqg07Z3.js +0 -7
- package/dist/DeptsMember/DeptsMember-CzJqr_LX.js +0 -721
- package/dist/DeptsMember/ExtraConcactPanel-BI9emYpp.js +0 -674
- package/dist/DeptsMember/OrganizationPanel-DcwvZ6X4.js +0 -254
- package/dist/DeptsMember/TabGroup-wNM86-Zq.js +0 -141
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
let
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
}, s = () =>
|
|
5
|
-
if (!
|
|
1
|
+
let r = null;
|
|
2
|
+
const o = (e) => {
|
|
3
|
+
r = { ...e };
|
|
4
|
+
}, s = () => r ? { ...r } : null, t = () => {
|
|
5
|
+
if (!r)
|
|
6
6
|
throw new Error("API 服务提供者未设置。请先调用 setApiServiceProvider() 设置 Axios 实例。");
|
|
7
|
-
return
|
|
8
|
-
}, i =
|
|
7
|
+
return r.axiosInstance;
|
|
8
|
+
}, i = {
|
|
9
|
+
get: (...e) => t().get(...e),
|
|
10
|
+
delete: (...e) => t().delete(...e),
|
|
11
|
+
head: (...e) => t().head(...e),
|
|
12
|
+
options: (...e) => t().options(...e),
|
|
13
|
+
post: (...e) => t().post(...e),
|
|
14
|
+
put: (...e) => t().put(...e),
|
|
15
|
+
patch: (...e) => t().patch(...e)
|
|
16
|
+
};
|
|
9
17
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
i as a,
|
|
19
|
+
s as g,
|
|
20
|
+
o as s
|
|
13
21
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { a as r } from "../apiService.js";
|
|
2
|
+
const o = () => r.post("/corp/outsider/list"), s = (t) => r.post("/corp/outsider/member/list", t);
|
|
3
3
|
export {
|
|
4
|
-
a,
|
|
5
|
-
|
|
4
|
+
s as a,
|
|
5
|
+
o as g
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { a as e } from "../apiService.js";
|
|
2
|
+
const o = (t) => e.post("/data/department/job_title_member", t), r = (t) => e.post("/data/department/job_title", t);
|
|
3
3
|
export {
|
|
4
|
-
a,
|
|
4
|
+
o as a,
|
|
5
5
|
r as g
|
|
6
6
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { a as t } from "../apiService.js";
|
|
2
|
+
const s = (e = {}) => t.post("/data/member/current_departments", e), a = (e) => t.post("/data/member/departments", e), o = (e) => t.post("/data/member/users", e), m = (e) => t.post("/data/member/dept_role_users", e), n = (e) => t.post("/data/member/roles", e);
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as a,
|
|
5
|
+
n as b,
|
|
6
6
|
m as c,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
s as d,
|
|
8
|
+
a as g
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { a as r } from "../apiService.js";
|
|
2
|
+
const s = (t = {}) => r.post("/data/outsider/list", t), o = (t) => r.post("/data/outsider/member/list", t);
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as a,
|
|
5
|
+
o as g
|
|
6
6
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useContext as s, useMemo as c, useCallback as u } from "react";
|
|
2
|
+
import { C as m } from "../ConfigProvider/configContext-_BAslzM-.js";
|
|
3
|
+
const p = { loading: "加载中...", cancel: "取消", confirm: "确认", clearAll: "清空所选项", viewAll: "查看全部{count}个", selected: "已选 {selected}/{total}", collapseAll: "收起全部", noAvailable: "没有可选成员", searchPlaceholder: "搜索", other: "其他" }, b = { title: "部门", search: "搜索部门", noAvailable: "没有可选部门", contact: "对接部门", organizationalStructure: "组织架构", currentUserDepartment: "当前用户所处部门", internal: "内部组织", external: "外部组织", externalContactGroup: "对接人小组", externalContactDepartment: "对接部门" }, C = { title: "成员", search: "搜索成员", contact: "对接人", all: "全部成员", allContact: "全部对接人", internal: "内部成员", external: "外部成员", noAvailable: "没有可选成员", relation: "成员关系", relationSuperior: "上级", relationSubordinate: "下级", relationPeer: "同级" }, x = { title: "角色", internal: "内部角色", external: "互联角色" }, h = { title: "职位" }, d = { title: "当前用户" }, A = { title: "外部联系人", defaultGroup: "默认分组", customGroup: "自定义分组", group: "外部联系人分组", noAvailableGroup: "没有可选分组" }, S = { searchMember: "搜索成员", searchDepartment: "搜索部门" }, i = {
|
|
4
|
+
common: p,
|
|
5
|
+
department: b,
|
|
6
|
+
member: C,
|
|
7
|
+
role: x,
|
|
8
|
+
position: h,
|
|
9
|
+
currentUser: d,
|
|
10
|
+
externalContact: A,
|
|
11
|
+
tabs: S
|
|
12
|
+
}, g = { loading: "Loading...", cancel: "Cancel", confirm: "Confirm", clearAll: "Clear All", viewAll: "View All {count}", selected: "Selected {selected}/{total}", collapseAll: "Collapse All", noAvailable: "No available members", searchPlaceholder: "Search", other: "Other" }, v = { title: "Department", search: "Search Department", noAvailable: "No available departments", contact: "Contact Department", organizationalStructure: "Organizational Structure", currentUserDepartment: "Current User Department", internal: "Internal Organization", external: "External Organization", externalContactGroup: "External Contact Group", externalContactDepartment: "External Contact Department" }, f = { title: "Member", search: "Search Member", contact: "Contact Person", allContact: "All Contact Persons", all: "All Members", internal: "Internal Members", external: "External Members", noAvailable: "No available members", relation: "Member Relationship", relationSuperior: "Superior", relationSubordinate: "Subordinate", relationPeer: "Peer" }, D = { title: "Role", internal: "Internal Role", external: "Interconnected Role" }, G = { title: "Position" }, M = { title: "Current User" }, U = { title: "External Contact", defaultGroup: "Default Group", customGroup: "Custom Group", group: "External Contact Group", noAvailableGroup: "No available groups" }, P = { searchMember: "Search Member", searchDepartment: "Search Department" }, $ = {
|
|
13
|
+
common: g,
|
|
14
|
+
department: v,
|
|
15
|
+
member: f,
|
|
16
|
+
role: D,
|
|
17
|
+
position: G,
|
|
18
|
+
currentUser: M,
|
|
19
|
+
externalContact: U,
|
|
20
|
+
tabs: P
|
|
21
|
+
}, z = (a, t, r) => {
|
|
22
|
+
const o = t.split(".");
|
|
23
|
+
let e = a;
|
|
24
|
+
try {
|
|
25
|
+
for (const n of o)
|
|
26
|
+
e = e[n];
|
|
27
|
+
return typeof e == "string" ? r ? e.replace(/\{(\w+)\}/g, (n, l) => r[l] !== void 0 ? String(r[l]) : n) : e : t;
|
|
28
|
+
} catch {
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
}, w = () => {
|
|
32
|
+
const a = s(m), t = c(() => ({ "zh-CN": i, "en-US": $ }), []), r = c(() => t[a.locale] || i, [a.locale, t]);
|
|
33
|
+
return {
|
|
34
|
+
t: u(
|
|
35
|
+
(e, n) => z(r, e, n),
|
|
36
|
+
[r]
|
|
37
|
+
)
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
w as u
|
|
42
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baishuyun/ui-business",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "百数云业务组件库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"author": "BSY Team",
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"peerDependencies": {
|
|
42
|
+
"@baishuyun/ui-base": ">=2.2.4",
|
|
42
43
|
"ahooks": ">=3.7.0",
|
|
43
44
|
"antd": ">=5.1.2",
|
|
44
|
-
"@baishuyun/ui-base": ">=2.2.0",
|
|
45
45
|
"immer": "^10.0.0",
|
|
46
46
|
"motion": "^11.18.2",
|
|
47
47
|
"react": ">=18.3.1",
|
|
@@ -63,12 +63,13 @@
|
|
|
63
63
|
"sass": "^1.90.0",
|
|
64
64
|
"vite": "^7.0.0",
|
|
65
65
|
"vite-plugin-dts": "^4.5.4",
|
|
66
|
-
"@baishuyun/ui-base": "2.2.
|
|
66
|
+
"@baishuyun/ui-base": "2.2.4"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"autoprefixer": "^10.4.21",
|
|
70
70
|
"axios": "^1.11.0",
|
|
71
71
|
"clsx": "^2.0.0",
|
|
72
|
+
"echarts": "5.6.0",
|
|
72
73
|
"lodash-es": "^4.17.21",
|
|
73
74
|
"postcss": "^8.5.6",
|
|
74
75
|
"simplebar-react": "^3.3.2"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { C as i } from "./configContext-lDqg07Z3.js";
|
|
3
|
-
const c = (o) => {
|
|
4
|
-
const { locale: r } = o;
|
|
5
|
-
return /* @__PURE__ */ e(i.Provider, { value: { locale: r }, children: o.children });
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
c as C
|
|
9
|
-
};
|