@baishuyun/ui-business 5.0.2 → 5.0.4

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.
Files changed (55) hide show
  1. package/dist/BubbleChart/AutoGridEChart-uinZMdOR.js +185 -0
  2. package/dist/BubbleChart/BubbleChart-CPhXmstL.js +174 -0
  3. package/dist/BubbleChart/index.js +7 -4
  4. package/dist/ConfigProvider/ConfigProvider-CISBH3A8.js +22 -0
  5. package/dist/ConfigProvider/configContext-B0kvcW4s.js +9 -0
  6. package/dist/ConfigProvider/index.js +6 -4
  7. package/dist/DeptsMember/Department-BYVAaPYd.js +186 -0
  8. package/dist/DeptsMember/DeptsMember-D_xv-Zy7.js +801 -0
  9. package/dist/DeptsMember/DeptsUser-CQrRRJxk.js +277 -0
  10. package/dist/DeptsMember/ExtraConcactPanel-Cioew3V3.js +736 -0
  11. package/dist/DeptsMember/Member-BIBX5jKD.js +47 -0
  12. package/dist/DeptsMember/OrganizationPanel-BLIXOm6z.js +235 -0
  13. package/dist/DeptsMember/RelationShipDepts-wcYjFbhx.js +78 -0
  14. package/dist/DeptsMember/RelationShipList-CRdCr4NL.js +73 -0
  15. package/dist/DeptsMember/TabGroup-B_VIf1lS.js +98 -0
  16. package/dist/DeptsMember/index.js +18 -8
  17. package/dist/DeptsMember/subcomponents/Entity/Department/index.js +8 -166
  18. package/dist/DeptsMember/subcomponents/Entity/DeptsUser/index.js +11 -267
  19. package/dist/DeptsMember/subcomponents/Entity/Member/index.js +8 -46
  20. package/dist/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/RelationShipDepts/index.js +4 -13
  21. package/dist/DeptsMember/subcomponents/Panels/MemberRelationShipPanel/RelationShipList/index.js +4 -67
  22. package/dist/DeptsMember/useDeptsMemberSelector-DP5L8bhi.js +15 -0
  23. package/dist/DeptsMember/utils/index.js +65 -77
  24. package/dist/Scatterplot/Scatterplot-DTKhmdTE.js +150 -0
  25. package/dist/Scatterplot/index.js +7 -4
  26. package/dist/components/BubbleChart/AutoGridEChart.d.ts +1 -1
  27. package/dist/index.css +2 -1
  28. package/dist/index.js +164 -200
  29. package/dist/utils/getLegendHeight.d.ts +1 -1
  30. package/dist/vendors/clsx.js +14 -14
  31. package/dist/vendors/echarts.js +41454 -44148
  32. package/dist/vendors/lodash-es.js +127 -117
  33. package/dist/vendors/rolldown-runtime.js +11 -0
  34. package/dist/vendors/services/apiService.js +15 -19
  35. package/dist/vendors/services/corp/outsider.service.js +5 -6
  36. package/dist/vendors/services/data/department.service.js +5 -6
  37. package/dist/vendors/services/data/member.service.js +5 -9
  38. package/dist/vendors/services/data/member_limit.service.js +5 -5
  39. package/dist/vendors/services/data/outsider.service.js +5 -6
  40. package/dist/vendors/services/ncorp/department.service.js +5 -6
  41. package/dist/vendors/services/ncorp/relation.service.js +5 -5
  42. package/dist/vendors/simplebar-react.js +358 -396
  43. package/dist/vendors/useLocale.js +132 -41
  44. package/package.json +5 -5
  45. package/dist/BubbleChart/AutoGridEChart-vNNqSiqF.js +0 -212
  46. package/dist/BubbleChart/BubbleChart-B0AuH-ma.js +0 -236
  47. package/dist/ConfigProvider/ConfigProvider-CAq3dN6-.js +0 -15
  48. package/dist/ConfigProvider/configContext-_BAslzM-.js +0 -9
  49. package/dist/DeptsMember/DeptsMember-BNuoQ8y4.js +0 -865
  50. package/dist/DeptsMember/ExtraConcactPanel-BoSCI3s5.js +0 -738
  51. package/dist/DeptsMember/OrganizationPanel-ByWU1PWX.js +0 -275
  52. package/dist/DeptsMember/TabGroup-DZC7i-Yr.js +0 -104
  53. package/dist/DeptsMember/index-BRIA1uOQ.js +0 -88
  54. package/dist/DeptsMember/useDeptsMemberSelector-D3rvDuVf.js +0 -13
  55. package/dist/Scatterplot/Scatterplot-D8AUUxhA.js +0 -201
package/dist/index.js CHANGED
@@ -1,201 +1,165 @@
1
1
  import "./vendors/simplebar-react.js";
2
- import { D as B, g as I } from "./DeptsMember/DeptsMember-BNuoQ8y4.js";
3
- import { C as k } from "./ConfigProvider/ConfigProvider-CAq3dN6-.js";
4
- import { B as D } from "./BubbleChart/BubbleChart-B0AuH-ma.js";
5
- import { S as H } from "./Scatterplot/Scatterplot-D8AUUxhA.js";
6
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
7
- import { i as _ } from "./vendors/echarts.js";
8
- import { forwardRef as v, useRef as b, useEffect as L, useImperativeHandle as y } from "react";
9
- import { c as l } from "./vendors/clsx.js";
10
- import { a as q, g as M, s as O } from "./vendors/services/apiService.js";
11
- import { r as V } from "./DeptsMember/index-BRIA1uOQ.js";
12
- const x = "_gauge_semicircle_my4si_5", n = {
13
- "progress-echart": "_progress-echart_my4si_1",
14
- gauge_semicircle: x,
15
- "chart-label-target-enable": "_chart-label-target-enable_my4si_8",
16
- "chart-label-enable": "_chart-label-enable_my4si_11",
17
- "chart-label-percent-content": "_chart-label-percent-content_my4si_23",
18
- "chart-label-value-enable": "_chart-label-value-enable_my4si_24",
19
- "chart-label-percent-enable": "_chart-label-percent-enable_my4si_29"
20
- }, w = (e, h) => {
21
- const d = b(null), a = b(null), f = (c, i = 1) => {
22
- const t = c.replace(/^#/, "").toLowerCase();
23
- if (!/^[0-9a-f]{6}$|^[0-9a-f]{8}$/.test(t))
24
- throw new Error(`无效的十六进制颜色值: ${c},请使用 #RRGGBB #RRGGBBAA 格式`);
25
- const u = parseInt(t.substring(0, 2), 16), m = parseInt(t.substring(2, 4), 16), g = parseInt(t.substring(4, 6), 16);
26
- let s = i;
27
- return t.length === 8 && (s = parseInt(t.substring(6, 8), 16) / 255, s = Math.round(s * 100) / 100), `rgba(${u}, ${m}, ${g}, ${s})`;
28
- };
29
- return L(() => {
30
- d.current && !a.current && (a.current = _(d.current));
31
- let c = {
32
- // 系列数据配置
33
- series: [
34
- {
35
- name: "Access From",
36
- type: "pie",
37
- radius: ["75%", "90%"],
38
- center: ["50%", e.options.type === "gauge_circle" ? "50%" : "70%"],
39
- startAngle: e.options.type === "gauge_circle" ? 0 : 180,
40
- endAngle: 360,
41
- avoidLabelOverlap: !1,
42
- label: {
43
- show: !1,
44
- position: "center"
45
- },
46
- labelLine: {
47
- show: !1
48
- },
49
- data: e.dataList.map((t) => ({
50
- value: t.sum,
51
- name: t.text,
52
- itemStyle: { color: t.color || "#666" }
53
- }))
54
- }
55
- ]
56
- };
57
- if (e.options.type === "liquid") {
58
- let t = function() {
59
- return e.options.colorType === "gradation" ? [
60
- {
61
- offset: 1,
62
- color: e.dataList[0].color?.split("&")[1] || "#4987e4ff"
63
- // 设置外边框的颜色,
64
- },
65
- {
66
- offset: 0,
67
- color: e.dataList[0].color?.split("&")[0] || "#4987e4ff"
68
- // 设置外边框的颜色,
69
- }
70
- ] : [
71
- {
72
- offset: 1,
73
- color: e.dataList[0].color || "#4987e4ff"
74
- // 设置外边框的颜色,
75
- },
76
- {
77
- offset: 0.8,
78
- color: e.dataList[0].color || "#4987e4ff"
79
- // 设置外边框的颜色,
80
- },
81
- {
82
- offset: 0,
83
- color: f(e.dataList[0].color || "#4987e4ff", 0.2)
84
- }
85
- ];
86
- };
87
- c = {
88
- series: [
89
- {
90
- type: "liquidFill",
91
- z: 2,
92
- radius: "80%",
93
- center: ["50%", "50%"],
94
- data: [0.6, 0.6, 0.6],
95
- label: {
96
- show: !1,
97
- fontSize: 30,
98
- // 设置数据字体大小
99
- color: "black"
100
- // 设置数据字体颜色
101
- },
102
- backgroundStyle: {
103
- color: e.dataList[1].color || "#f5f5f5"
104
- },
105
- waveLength: "20%",
106
- // 默认波浪长度(值越小越短)
107
- amplitude: "3%",
108
- // 振幅(越小越平缓)
109
- outline: {
110
- show: !0,
111
- itemStyle: {
112
- borderWidth: 2,
113
- // 设置外边框的大小
114
- borderColor: e.dataList[0].color || "#4987e4ff"
115
- // 设置外边框的颜色
116
- },
117
- borderDistance: 0
118
- },
119
- color: [
120
- {
121
- type: "linear",
122
- x: 0,
123
- y: 0,
124
- x2: 0,
125
- y2: 1,
126
- colorStops: t(),
127
- globalCoord: !1
128
- }
129
- ]
130
- }
131
- ]
132
- };
133
- }
134
- a.current.setOption(c), a.current.on("click", function(t) {
135
- e.onChartClick && e.onChartClick(t, e.options, e.dataList);
136
- });
137
- const i = () => {
138
- a.current.resize();
139
- };
140
- return window.addEventListener("resize", i), () => {
141
- window.removeEventListener("resize", i), a.current.dispose(), a.current = null;
142
- };
143
- }, []), y(h, () => ({
144
- resizeEchart: () => {
145
- a.current?.resize();
146
- }
147
- })), /* @__PURE__ */ r("div", { className: l(e.className, n["progress-echart"]), children: [
148
- /* @__PURE__ */ o("div", { ref: d, style: { width: "100%", height: "100%" } }),
149
- e.options.chart_label.enable && /* @__PURE__ */ r("div", { className: l(n["chart-label-enable"]), children: [
150
- e.options.chart_label.percent.contentEnable && e.options.chart_label.percent.enable && /* @__PURE__ */ o("div", { className: l(n["chart-label-percent-content"]), children: e.options.chart_label.percent.content || "" }),
151
- e.options.chart_label.percent.enable && /* @__PURE__ */ r(
152
- "div",
153
- {
154
- className: l("chart-label-percent-enable", n["chart-label-percent-enable"]),
155
- children: [
156
- (e.dataList[0].sum / (e.dataList[1].sum + e.dataList[0].sum) * 100).toFixed(
157
- e.options.chart_label.percent.formatEnable ? e.options.chart_label.percent.format : 6
158
- ),
159
- "%"
160
- ]
161
- }
162
- ),
163
- /* @__PURE__ */ r(
164
- "div",
165
- {
166
- className: l(
167
- e.options.type === "gauge_semicircle" ? n.gauge_semicircle : ""
168
- ),
169
- children: [
170
- e.options.chart_label.value.enable && /* @__PURE__ */ r("div", { className: l(n["chart-label-value-enable"]), children: [
171
- /* @__PURE__ */ r("span", { children: [
172
- e.dataList[0].text,
173
- ":"
174
- ] }),
175
- /* @__PURE__ */ o("span", { children: e.dataList[0].sum })
176
- ] }),
177
- e.options.chart_label.target.enable && /* @__PURE__ */ r("div", { className: l(n["chart-label-target-enable"]), children: [
178
- /* @__PURE__ */ r("span", { children: [
179
- e.dataList[1].text,
180
- ":"
181
- ] }),
182
- /* @__PURE__ */ o("span", { children: e.dataList[1].sum + e.dataList[0].sum })
183
- ] })
184
- ]
185
- }
186
- )
187
- ] })
188
- ] });
189
- }, $ = v(w);
190
- export {
191
- D as BubbleChart,
192
- k as ConfigProvider,
193
- B as DeptsMemberSelector,
194
- $ as ProgressChart,
195
- H as Scatterplot,
196
- q as api,
197
- M as getApiServiceProvider,
198
- I as getRelationNodeName,
199
- V as recordSelectedNode,
200
- O as setApiServiceProvider
201
- };
2
+ import { t as e } from "./vendors/clsx.js";
3
+ import "./DeptsMember/useDeptsMemberSelector-DP5L8bhi.js";
4
+ import "./DeptsMember/TabGroup-B_VIf1lS.js";
5
+ import { n as t, t as n } from "./DeptsMember/DeptsMember-D_xv-Zy7.js";
6
+ import "./vendors/useLocale.js";
7
+ import "./ConfigProvider/configContext-B0kvcW4s.js";
8
+ import { n as r } from "./DeptsMember/RelationShipDepts-wcYjFbhx.js";
9
+ import { n as i, r as a, t as o } from "./vendors/services/apiService.js";
10
+ import "./DeptsMember/OrganizationPanel-BLIXOm6z.js";
11
+ import "./DeptsMember/ExtraConcactPanel-Cioew3V3.js";
12
+ import "./DeptsMember/DeptsUser-CQrRRJxk.js";
13
+ import "./DeptsMember/RelationShipList-CRdCr4NL.js";
14
+ import "./DeptsMember/Member-BIBX5jKD.js";
15
+ import "./DeptsMember/Department-BYVAaPYd.js";
16
+ import { t as s } from "./ConfigProvider/ConfigProvider-CISBH3A8.js";
17
+ import { t as c } from "./vendors/echarts.js";
18
+ import "./BubbleChart/AutoGridEChart-uinZMdOR.js";
19
+ import { t as l } from "./BubbleChart/BubbleChart-CPhXmstL.js";
20
+ import { t as u } from "./Scatterplot/Scatterplot-DTKhmdTE.js";
21
+ import { forwardRef as d, useEffect as f, useImperativeHandle as p, useRef as m } from "react";
22
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
23
+ //#region src/components/ProgressChart/ProgressChart.module.scss
24
+ var _ = "_gauge_semicircle_my4si_5", v = {
25
+ "progress-echart": "_progress-echart_my4si_1",
26
+ gauge_semicircle: _,
27
+ "chart-label-target-enable": "_chart-label-target-enable_my4si_8",
28
+ "chart-label-enable": "_chart-label-enable_my4si_11",
29
+ "chart-label-percent-content": "_chart-label-percent-content_my4si_23",
30
+ "chart-label-value-enable": "_chart-label-value-enable_my4si_24",
31
+ "chart-label-percent-enable": "_chart-label-percent-enable_my4si_29"
32
+ }, y = d((t, n) => {
33
+ let r = m(null), i = m(null), a = (e, t = 1) => {
34
+ let n = e.replace(/^#/, "").toLowerCase();
35
+ if (!/^[0-9a-f]{6}$|^[0-9a-f]{8}$/.test(n)) throw Error(`无效的十六进制颜色值: ${e},请使用 #RRGGBB 或 #RRGGBBAA 格式`);
36
+ let r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = t;
37
+ return n.length === 8 && (o = parseInt(n.substring(6, 8), 16) / 255, o = Math.round(o * 100) / 100), `rgba(${r}, ${i}, ${a}, ${o})`;
38
+ };
39
+ return f(() => {
40
+ r.current && !i.current && (i.current = c(r.current));
41
+ let e = { series: [{
42
+ name: "Access From",
43
+ type: "pie",
44
+ radius: ["75%", "90%"],
45
+ center: ["50%", t.options.type === "gauge_circle" ? "50%" : "70%"],
46
+ startAngle: t.options.type === "gauge_circle" ? 0 : 180,
47
+ endAngle: 360,
48
+ avoidLabelOverlap: !1,
49
+ label: {
50
+ show: !1,
51
+ position: "center"
52
+ },
53
+ labelLine: { show: !1 },
54
+ data: t.dataList.map((e) => ({
55
+ value: e.sum,
56
+ name: e.text,
57
+ itemStyle: { color: e.color || "#666" }
58
+ }))
59
+ }] };
60
+ if (t.options.type === "liquid") {
61
+ function n() {
62
+ return t.options.colorType === "gradation" ? [{
63
+ offset: 1,
64
+ color: t.dataList[0].color?.split("&")[1] || "#4987e4ff"
65
+ }, {
66
+ offset: 0,
67
+ color: t.dataList[0].color?.split("&")[0] || "#4987e4ff"
68
+ }] : [
69
+ {
70
+ offset: 1,
71
+ color: t.dataList[0].color || "#4987e4ff"
72
+ },
73
+ {
74
+ offset: .8,
75
+ color: t.dataList[0].color || "#4987e4ff"
76
+ },
77
+ {
78
+ offset: 0,
79
+ color: a(t.dataList[0].color || "#4987e4ff", .2)
80
+ }
81
+ ];
82
+ }
83
+ e = { series: [{
84
+ type: "liquidFill",
85
+ z: 2,
86
+ radius: "80%",
87
+ center: ["50%", "50%"],
88
+ data: [
89
+ .6,
90
+ .6,
91
+ .6
92
+ ],
93
+ label: {
94
+ show: !1,
95
+ fontSize: 30,
96
+ color: "black"
97
+ },
98
+ backgroundStyle: { color: t.dataList[1].color || "#f5f5f5" },
99
+ waveLength: "20%",
100
+ amplitude: "3%",
101
+ outline: {
102
+ show: !0,
103
+ itemStyle: {
104
+ borderWidth: 2,
105
+ borderColor: t.dataList[0].color || "#4987e4ff"
106
+ },
107
+ borderDistance: 0
108
+ },
109
+ color: [{
110
+ type: "linear",
111
+ x: 0,
112
+ y: 0,
113
+ x2: 0,
114
+ y2: 1,
115
+ colorStops: n(),
116
+ globalCoord: !1
117
+ }]
118
+ }] };
119
+ }
120
+ i.current.setOption(e), i.current.on("click", function(e) {
121
+ t.onChartClick && t.onChartClick(e, t.options, t.dataList);
122
+ });
123
+ let n = () => {
124
+ i.current.resize();
125
+ };
126
+ return window.addEventListener("resize", n), () => {
127
+ window.removeEventListener("resize", n), i.current.dispose(), i.current = null;
128
+ };
129
+ }, []), p(n, () => ({ resizeEchart: () => {
130
+ i.current?.resize();
131
+ } })), /* @__PURE__ */ g("div", {
132
+ className: e(t.className, v["progress-echart"]),
133
+ children: [/* @__PURE__ */ h("div", {
134
+ ref: r,
135
+ style: {
136
+ width: "100%",
137
+ height: "100%"
138
+ }
139
+ }), t.options.chart_label.enable && /* @__PURE__ */ g("div", {
140
+ className: e(v["chart-label-enable"]),
141
+ children: [
142
+ t.options.chart_label.percent.contentEnable && t.options.chart_label.percent.enable && /* @__PURE__ */ h("div", {
143
+ className: e(v["chart-label-percent-content"]),
144
+ children: t.options.chart_label.percent.content || ""
145
+ }),
146
+ t.options.chart_label.percent.enable && /* @__PURE__ */ g("div", {
147
+ className: e("chart-label-percent-enable", v["chart-label-percent-enable"]),
148
+ children: [(t.dataList[0].sum / (t.dataList[1].sum + t.dataList[0].sum) * 100).toFixed(t.options.chart_label.percent.formatEnable ? t.options.chart_label.percent.format : 6), "%"]
149
+ }),
150
+ /* @__PURE__ */ g("div", {
151
+ className: e(t.options.type === "gauge_semicircle" ? v.gauge_semicircle : ""),
152
+ children: [t.options.chart_label.value.enable && /* @__PURE__ */ g("div", {
153
+ className: e(v["chart-label-value-enable"]),
154
+ children: [/* @__PURE__ */ g("span", { children: [t.dataList[0].text, ""] }), /* @__PURE__ */ h("span", { children: t.dataList[0].sum })]
155
+ }), t.options.chart_label.target.enable && /* @__PURE__ */ g("div", {
156
+ className: e(v["chart-label-target-enable"]),
157
+ children: [/* @__PURE__ */ g("span", { children: [t.dataList[1].text, ":"] }), /* @__PURE__ */ h("span", { children: t.dataList[1].sum + t.dataList[0].sum })]
158
+ })]
159
+ })
160
+ ]
161
+ })]
162
+ });
163
+ });
164
+ //#endregion
165
+ export { l as BubbleChart, s as ConfigProvider, n as DeptsMemberSelector, y as ProgressChart, u as Scatterplot, o as api, i as getApiServiceProvider, t as getRelationNodeName, r as recordSelectedNode, a as setApiServiceProvider };
@@ -1 +1 @@
1
- export declare function getLegendHeight(optinos: any, Legend: any, elwdith: number, fontStyle: any): any;
1
+ export declare function getLegendHeight(optinos: any, Legend: any, elwdith: number, fontStyle: any, elheight: number): any;
@@ -1,16 +1,16 @@
1
- function a(r) {
2
- var f, n, t = "";
3
- if (typeof r == "string" || typeof r == "number") t += r;
4
- else if (typeof r == "object") if (Array.isArray(r)) {
5
- var o = r.length;
6
- for (f = 0; f < o; f++) r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
7
- } else for (n in r) r[n] && (t && (t += " "), t += n);
8
- return t;
1
+ //#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
2
+ function e(t) {
3
+ var n, r, i = "";
4
+ if (typeof t == "string" || typeof t == "number") i += t;
5
+ else if (typeof t == "object") if (Array.isArray(t)) {
6
+ var a = t.length;
7
+ for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
8
+ } else for (r in t) t[r] && (i && (i += " "), i += r);
9
+ return i;
9
10
  }
10
- function i() {
11
- for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
12
- return t;
11
+ function t() {
12
+ for (var t, n, r = 0, i = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += " "), i += n);
13
+ return i;
13
14
  }
14
- export {
15
- i as c
16
- };
15
+ //#endregion
16
+ export { t };