@baishuyun/ui-business 6.2.1 → 6.2.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 (30) hide show
  1. package/dist/BubbleChart/AutoGridEChart-DRFm_Hpq.js +122 -0
  2. package/dist/BubbleChart/{BubbleChart-rOdQW7mB.js → BubbleChart-Bef9kod5.js} +9 -9
  3. package/dist/BubbleChart/index.js +2 -2
  4. package/dist/DeptsMemberSelector/{CorpDeptMemberList-CStcWBzB.js → CorpDeptMemberList-DBwnjM92.js} +15 -15
  5. package/dist/DeptsMemberSelector/{CorpFlatList-Cn8-KRFi.js → CorpFlatList-8guSLq9t.js} +10 -10
  6. package/dist/DeptsMemberSelector/{Department-DXD3xoiS.js → Department-BbYSDDl9.js} +20 -20
  7. package/dist/DeptsMemberSelector/{DeptsMemberSelector-DXpd9aCn.js → DeptsMemberSelector-Cjcxv5ks.js} +6 -6
  8. package/dist/DeptsMemberSelector/{DeptsUser-DO-SQexg.js → DeptsUser-DcgCRwGJ.js} +69 -69
  9. package/dist/DeptsMemberSelector/{EnterpriseLabelList-BtB8AjXO.js → EnterpriseLabelList-CSD5AQaL.js} +9 -9
  10. package/dist/DeptsMemberSelector/{Member-BrNFIHZy.js → Member-DCXp-q_w.js} +45 -45
  11. package/dist/DeptsMemberSelector/{OrganizationPanel-hray3UWA.js → OrganizationPanel-CUO2uEXm.js} +21 -21
  12. package/dist/DeptsMemberSelector/{RelationShipList-DcgaMOyr.js → RelationShipList-RSqFRzgD.js} +9 -9
  13. package/dist/DeptsMemberSelector/index.js +10 -10
  14. package/dist/DeptsMemberSelector/subcomponents/Entity/Department/index.js +2 -2
  15. package/dist/DeptsMemberSelector/subcomponents/Entity/DeptsUser/index.js +7 -7
  16. package/dist/DeptsMemberSelector/subcomponents/Entity/Member/index.js +2 -2
  17. package/dist/DeptsMemberSelector/subcomponents/Panels/DeptUsersCorpDeptPanel/CorpDeptMemberList/index.js +1 -1
  18. package/dist/DeptsMemberSelector/subcomponents/Panels/DeptUsersCorpPanel/CorpFlatList/index.js +1 -1
  19. package/dist/DeptsMemberSelector/subcomponents/Panels/DeptUsersEnterpriseLabelPanel/EnterpriseLabelList/index.js +1 -1
  20. package/dist/DeptsMemberSelector/subcomponents/Panels/MemberRelationShipPanel/RelationShipList/index.js +1 -1
  21. package/dist/DeptsMemberSelector/{useFilteredMemberList-BE7jRCME.js → useFilteredMemberList-CugOq5jk.js} +34 -34
  22. package/dist/Scatterplot/{Scatterplot-NVg5vMAZ.js → Scatterplot-CNJpstBi.js} +5 -5
  23. package/dist/Scatterplot/index.js +2 -2
  24. package/dist/components/DeptsMemberSelector/testUtils/createDispatchMock.d.ts +4 -0
  25. package/dist/components/DeptsMemberSelector/testUtils/domMeasureMocks.d.ts +6 -0
  26. package/dist/index.css +1 -1
  27. package/dist/index.js +13 -13
  28. package/package.json +5 -5
  29. package/dist/BubbleChart/AutoGridEChart-C8txdGdG.js +0 -194
  30. package/dist/utils/getLegendHeight.d.ts +0 -1
@@ -0,0 +1,122 @@
1
+ import { t as e } from "../vendors/clsx.js";
2
+ import { t } from "../vendors/echarts.js";
3
+ import { forwardRef as n, useEffect as r, useImperativeHandle as i, useRef as a, useState as o } from "react";
4
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
+ //#region src/components/BubbleChart/BubbleChart.module.scss
6
+ var l = {
7
+ "auto-grid-echart": "_auto-grid-echart_1i3dr_1",
8
+ "xAxis-title": "_xAxis-title_1i3dr_6",
9
+ "yAxis-title": "_yAxis-title_1i3dr_11",
10
+ "legend-position-bottom": "_legend-position-bottom_1i3dr_20",
11
+ "legend-position-right": "_legend-position-right_1i3dr_24",
12
+ "legend-position-top": "_legend-position-top_1i3dr_27",
13
+ "t-dash-g2-legend": "_t-dash-g2-legend_1i3dr_31",
14
+ "bsy-chart-body": "_bsy-chart-body_1i3dr_34",
15
+ "legend-position-left": "_legend-position-left_1i3dr_37",
16
+ "t-dash-g2-legend-left": "_t-dash-g2-legend-left_1i3dr_63",
17
+ "legend-label": "_legend-label_1i3dr_81",
18
+ "legend-item": "_legend-item_1i3dr_93",
19
+ "legend-color": "_legend-color_1i3dr_101",
20
+ "t-dash-g2-legend-right": "_t-dash-g2-legend-right_1i3dr_110",
21
+ "t-dash-g2-legend-bottom": "_t-dash-g2-legend-bottom_1i3dr_157",
22
+ "t-dash-g2-legend-top": "_t-dash-g2-legend-top_1i3dr_198",
23
+ "legend-hidden": "_legend-hidden_1i3dr_239"
24
+ }, u = n((n, u) => {
25
+ let d = a(null), f = a(null), p = a(null), m = a(null), [h, g] = o(0), [_, v] = o(n.option), [y, b] = o([]), x = () => {
26
+ if (d.current) {
27
+ g(f.current?.offsetWidth || 0);
28
+ let e = [];
29
+ return n.options.xAxis.title !== "" && e.push({
30
+ type: "text",
31
+ left: "center",
32
+ [["zero", "bottom"].includes(n.options.xAxis.position) ? "bottom" : "top"]: 0,
33
+ style: {
34
+ text: n.options.xAxis.title.text,
35
+ fontSize: 14,
36
+ fill: "#121111",
37
+ textAlign: "center"
38
+ }
39
+ }), n.options.yAxis.title !== "" && e.push({
40
+ type: "text",
41
+ top: "center",
42
+ rotation: 11,
43
+ [["zero", "left"].includes(n.options.yAxis.position) ? "left" : "right"]: 0,
44
+ style: {
45
+ text: n.options.yAxis.title.text,
46
+ fontSize: 14,
47
+ fill: "#121111",
48
+ textAlign: "center"
49
+ }
50
+ }), {
51
+ ...n.option,
52
+ graphic: n.option.graphic.concat(e),
53
+ grid: {
54
+ top: 20,
55
+ bottom: 20,
56
+ left: 20,
57
+ right: 20,
58
+ containLabel: !0
59
+ }
60
+ };
61
+ }
62
+ return { ...n.option };
63
+ };
64
+ i(u, () => ({ resizeEchart: () => {
65
+ p.current?.resize();
66
+ } })), r(() => {
67
+ if (!d.current) return;
68
+ p.current = t(d.current);
69
+ let e = x();
70
+ v(e), console.info("options", e), p.current.setOption(e, !0), p.current.on("click", function(e) {
71
+ n.onChartClick && n.onChartClick(e, n.options, n.dataList);
72
+ });
73
+ let r = () => {
74
+ if (p.current) {
75
+ let e = x();
76
+ v(e), p.current.setOption(e, !1);
77
+ }
78
+ };
79
+ return setTimeout(r, 100), n.onChartReady && n.onChartReady(p.current), m.current = new ResizeObserver(() => {
80
+ p.current?.resize(), setTimeout(r, 50);
81
+ }), d.current && m.current.observe(d.current), () => {
82
+ m.current?.disconnect(), p.current?.dispose();
83
+ };
84
+ }, []), r(() => {
85
+ if (!p.current) return;
86
+ let e = x();
87
+ v(e), p.current.setOption(e, !0);
88
+ }, [n.option]);
89
+ let S = (e, t) => {
90
+ console.info(e + t), b((n) => n.includes(e + t) ? n.filter((n) => n !== e + t) : [...n, e + t]);
91
+ let n = JSON.parse(JSON.stringify(_));
92
+ n.legend.selected[e] = !n.legend.selected[e], v(n), p.current?.setOption(n);
93
+ };
94
+ return /* @__PURE__ */ c("div", {
95
+ className: e(n.className, l["auto-grid-echart"], n.options.legend?.position === "top" && l["legend-position-top"], n.options.legend?.position === "bottom" && l["legend-position-bottom"], n.options.legend?.position === "left" && l["legend-position-left"], n.options.legend?.position === "right" && l["legend-position-right"]),
96
+ children: [/* @__PURE__ */ s("div", {
97
+ ref: d,
98
+ className: l["bsy-chart-body"],
99
+ style: {
100
+ flex: 1,
101
+ height: "100%",
102
+ width: n.options?.legend?.position === "left" || n.options?.legend?.position === "right" ? `calc(100% - ${h}px)` : "100%"
103
+ }
104
+ }), n.options.legend?.enable && /* @__PURE__ */ s("div", {
105
+ className: e(l["t-dash-g2-legend"], n.options.legend?.position === "top" && l["t-dash-g2-legend-top"], n.options.legend?.position === "bottom" && l["t-dash-g2-legend-bottom"], n.options.legend?.position === "left" && l["t-dash-g2-legend-left"], n.options.legend?.position === "right" && l["t-dash-g2-legend-right"]),
106
+ ref: f,
107
+ children: (n.legendList || n.dataList).map((t, r) => /* @__PURE__ */ c("div", {
108
+ className: e(l["legend-item"], y.includes(t.name + r) ? l["legend-hidden"] : ""),
109
+ onClick: () => S(t.name, r),
110
+ children: [/* @__PURE__ */ s("span", {
111
+ className: l["legend-color"],
112
+ style: { backgroundColor: n.options.xFields[0]?.colors?.[r]?.color || "#666" }
113
+ }), /* @__PURE__ */ s("span", {
114
+ className: l["legend-label"],
115
+ children: t.name
116
+ })]
117
+ }, r))
118
+ })]
119
+ });
120
+ });
121
+ //#endregion
122
+ export { u as t };
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "../vendors/echarts.js";
2
- import { t } from "./AutoGridEChart-C8txdGdG.js";
2
+ import { t } from "./AutoGridEChart-DRFm_Hpq.js";
3
3
  import { forwardRef as n, useImperativeHandle as r, useRef as i } from "react";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  var o = n((n, o) => {
@@ -94,21 +94,21 @@ var o = n((n, o) => {
94
94
  fontSize: 14,
95
95
  color: l
96
96
  },
97
+ extraCssText: "max-width: 600px; white-space: normal; word-wrap: break-word;",
97
98
  backgroundColor: "#fff",
98
99
  borderColor: "#fff",
99
100
  borderWidth: 1,
100
101
  padding: 10,
101
102
  borderRadius: 4,
102
103
  formatter: (e) => {
103
- console.info(3434, e);
104
- let t = `<div style="max-width: 240px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">${e.seriesName}</div>`;
104
+ let t = `<div style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">${e.seriesName}</div>`;
105
105
  return t += `<div style="display: flex;align-items: center;margin-top:10px;">
106
- <span style="background-color: ${e.color.colorStops[0].color || e.color};width: 6px;height: 6px;display: inline-block;border-radius: 50%;margin-right: 6px;"></span>
107
- <span style="max-width: 200px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">${n.options.xFields[0].title}</span>
106
+ <span style="background-color: ${e.color};width: 6px;height: 6px;display: inline-block;border-radius: 50%;margin-right: 6px;"></span>
107
+ <span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">${n.options.xFields[0].title}</span>
108
108
  <span style='margin-left: 8px;'>${e.value[0]}</span>
109
109
  </div>`, t += `<div style="display: flex;align-items: center;">
110
- <span style="background-color: ${e.color.colorStops[0].color || e.color};width: 6px;height: 6px;display: inline-block;border-radius: 50%;margin-right: 6px;"></span>
111
- <span style="max-width: 200px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">${n.options.yFields[0].title}</span>
110
+ <span style="background-color: ${e.color};width: 6px;height: 6px;display: inline-block;border-radius: 50%;margin-right: 6px;"></span>
111
+ <span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">${n.options.yFields[0].title}</span>
112
112
  <span style='margin-left: 8px;>${e.value[1]}</span></div>`, e.componentType === "series" ? t : "";
113
113
  },
114
114
  triggerOn: "mousemove",
@@ -183,14 +183,14 @@ var o = n((n, o) => {
183
183
  }
184
184
  t.type = e.aggregate;
185
185
  }
186
- return console.info(2323, t), t;
186
+ return t;
187
187
  }),
188
188
  emphasis: { disabled: !0 }
189
189
  },
190
190
  color: (t.color, void 0),
191
191
  label: {
192
192
  show: n.options.chart_label.enable,
193
- distance: 5,
193
+ distance: 0,
194
194
  position: "top",
195
195
  formatter: () => `${n.options.chart_label.dimension?.enable ? t.name : ""} ${n.options.chart_label.value?.enable ? "(" + t.data[0] + "," + t.data[1] + ")" : ""}`,
196
196
  textStyle: {
@@ -1,6 +1,6 @@
1
1
  import "../vendors/echarts.js";
2
- import "./AutoGridEChart-C8txdGdG.js";
3
- import { t as e } from "./BubbleChart-rOdQW7mB.js";
2
+ import "./AutoGridEChart-DRFm_Hpq.js";
3
+ import { t as e } from "./BubbleChart-Bef9kod5.js";
4
4
  //#region src/components/BubbleChart/index.ts
5
5
  var t = e;
6
6
  //#endregion
@@ -7,21 +7,21 @@ import { Checkbox as l } from "@baishuyun/ui-base";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  //#region src/components/DeptsMemberSelector/subcomponents/Panels/DeptUsersCorpDeptPanel/CorpDeptMemberList/CorpDeptMemberList.module.scss
9
9
  var f = {
10
- "corp-dept-member-list": "_corp-dept-member-list_12e0y_1",
11
- "corp-dept-member-list__spin": "_corp-dept-member-list__spin_12e0y_5",
12
- "corp-dept-member-list__scroll": "_corp-dept-member-list__scroll_12e0y_13",
13
- "corp-dept-member-list__list": "_corp-dept-member-list__list_12e0y_17",
14
- "corp-dept-member-list__option": "_corp-dept-member-list__option_12e0y_22",
15
- "corp-dept-member-list__option--checkbox": "_corp-dept-member-list__option--checkbox_12e0y_30",
16
- "corp-dept-member-list__option--radio": "_corp-dept-member-list__option--radio_12e0y_33",
17
- "corp-dept-member-list__radio-group": "_corp-dept-member-list__radio-group_12e0y_36",
18
- "corp-dept-member-list__radio": "_corp-dept-member-list__radio_12e0y_36",
19
- "corp-dept-member-list__checkbox-row": "_corp-dept-member-list__checkbox-row_12e0y_62",
20
- "corp-dept-member-list__name": "_corp-dept-member-list__name_12e0y_71",
21
- "corp-dept-member-list__checkbox": "_corp-dept-member-list__checkbox_12e0y_62",
22
- "corp-dept-member-list__group": "_corp-dept-member-list__group_12e0y_83",
23
- "corp-dept-member-list__empty": "_corp-dept-member-list__empty_12e0y_86",
24
- "corp-dept-member-list__empty-text": "_corp-dept-member-list__empty-text_12e0y_93"
10
+ "corp-dept-member-list": "_corp-dept-member-list_1tk25_1",
11
+ "corp-dept-member-list__spin": "_corp-dept-member-list__spin_1tk25_5",
12
+ "corp-dept-member-list__scroll": "_corp-dept-member-list__scroll_1tk25_13",
13
+ "corp-dept-member-list__list": "_corp-dept-member-list__list_1tk25_17",
14
+ "corp-dept-member-list__option": "_corp-dept-member-list__option_1tk25_22",
15
+ "corp-dept-member-list__option--checkbox": "_corp-dept-member-list__option--checkbox_1tk25_30",
16
+ "corp-dept-member-list__option--radio": "_corp-dept-member-list__option--radio_1tk25_33",
17
+ "corp-dept-member-list__radio-group": "_corp-dept-member-list__radio-group_1tk25_36",
18
+ "corp-dept-member-list__radio": "_corp-dept-member-list__radio_1tk25_36",
19
+ "corp-dept-member-list__checkbox-row": "_corp-dept-member-list__checkbox-row_1tk25_62",
20
+ "corp-dept-member-list__name": "_corp-dept-member-list__name_1tk25_71",
21
+ "corp-dept-member-list__checkbox": "_corp-dept-member-list__checkbox_1tk25_62",
22
+ "corp-dept-member-list__group": "_corp-dept-member-list__group_1tk25_83",
23
+ "corp-dept-member-list__empty": "_corp-dept-member-list__empty_1tk25_86",
24
+ "corp-dept-member-list__empty-text": "_corp-dept-member-list__empty-text_1tk25_93"
25
25
  }, p = (e) => {
26
26
  let t = a(e), n = i(t);
27
27
  return /* @__PURE__ */ d("div", {
@@ -7,16 +7,16 @@ import { Checkbox as s } from "@baishuyun/ui-base";
7
7
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
8
  //#region src/components/DeptsMemberSelector/utils/corpList.ts
9
9
  var u = (e) => e.noedit === !0, d = (e, t) => t && u(e), f = (e = [], t = !1) => t ? e.filter((e) => !u(e)) : e, p = {
10
- "corp-flat-list__option": "_corp-flat-list__option_406kv_1",
11
- "corp-flat-list__option--disabled": "_corp-flat-list__option--disabled_406kv_9",
12
- "corp-flat-list__option--checkbox": "_corp-flat-list__option--checkbox_406kv_16",
13
- "corp-flat-list__option--radio": "_corp-flat-list__option--radio_406kv_19",
14
- "corp-flat-list__radio-group": "_corp-flat-list__radio-group_406kv_22",
15
- "corp-flat-list__radio": "_corp-flat-list__radio_406kv_22",
16
- "corp-flat-list__name": "_corp-flat-list__name_406kv_48",
17
- "corp-flat-list__checkbox-row": "_corp-flat-list__checkbox-row_406kv_55",
18
- "corp-flat-list__checkbox": "_corp-flat-list__checkbox_406kv_55",
19
- "corp-flat-list__group": "_corp-flat-list__group_406kv_66"
10
+ "corp-flat-list__option": "_corp-flat-list__option_1o572_1",
11
+ "corp-flat-list__option--disabled": "_corp-flat-list__option--disabled_1o572_9",
12
+ "corp-flat-list__option--checkbox": "_corp-flat-list__option--checkbox_1o572_16",
13
+ "corp-flat-list__option--radio": "_corp-flat-list__option--radio_1o572_19",
14
+ "corp-flat-list__radio-group": "_corp-flat-list__radio-group_1o572_22",
15
+ "corp-flat-list__radio": "_corp-flat-list__radio_1o572_22",
16
+ "corp-flat-list__name": "_corp-flat-list__name_1o572_48",
17
+ "corp-flat-list__checkbox-row": "_corp-flat-list__checkbox-row_1o572_55",
18
+ "corp-flat-list__checkbox": "_corp-flat-list__checkbox_1o572_55",
19
+ "corp-flat-list__group": "_corp-flat-list__group_1o572_66"
20
20
  }, m = ({ name: e }) => /* @__PURE__ */ l("div", {
21
21
  className: p["corp-flat-list__checkbox-row"],
22
22
  title: e,
@@ -5,7 +5,7 @@ import { _ as i } from "./services/contact/selector.service-CQopqiTw.js";
5
5
  import { a, t as o } from "./TagIcon-CYklI9Ar.js";
6
6
  import { t as s } from "../vendors/useLocale.js";
7
7
  import { t as c } from "./useOutsiderGroupPanelState-BULTXv3n.js";
8
- import { t as l } from "./OrganizationPanel-hray3UWA.js";
8
+ import { t as l } from "./OrganizationPanel-CUO2uEXm.js";
9
9
  import { useMemo as u } from "react";
10
10
  import { Radio as d, Spin as f } from "antd";
11
11
  import { Checkbox as p } from "@baishuyun/ui-base";
@@ -13,16 +13,16 @@ import { useRequest as m } from "ahooks";
13
13
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
14
14
  //#region src/components/DeptsMemberSelector/subcomponents/Entity/Department/GroupList/GroupList.module.scss
15
15
  var v = {
16
- "group-list__list": "_group-list__list_mxdp1_1",
17
- "group-list__option": "_group-list__option_mxdp1_4",
18
- "group-list__option--checkbox": "_group-list__option--checkbox_mxdp1_13",
19
- "group-list__radio": "_group-list__radio_mxdp1_16",
20
- "group-list__row": "_group-list__row_mxdp1_19",
21
- "group-list__name": "_group-list__name_mxdp1_26",
22
- "group-list__checkbox-row": "_group-list__checkbox-row_mxdp1_34",
23
- "group-list__checkbox": "_group-list__checkbox_mxdp1_34",
24
- "group-list__group": "_group-list__group_mxdp1_45",
25
- "group-list": "_group-list_mxdp1_1"
16
+ "group-list__list": "_group-list__list_hoxnd_1",
17
+ "group-list__option": "_group-list__option_hoxnd_4",
18
+ "group-list__option--checkbox": "_group-list__option--checkbox_hoxnd_13",
19
+ "group-list__radio": "_group-list__radio_hoxnd_16",
20
+ "group-list__row": "_group-list__row_hoxnd_19",
21
+ "group-list__name": "_group-list__name_hoxnd_26",
22
+ "group-list__checkbox-row": "_group-list__checkbox-row_hoxnd_34",
23
+ "group-list__checkbox": "_group-list__checkbox_hoxnd_34",
24
+ "group-list__group": "_group-list__group_hoxnd_45",
25
+ "group-list": "_group-list_hoxnd_1"
26
26
  }, y = (e) => e?._id ?? e?.id, b = (e) => e !== void 0, x = (e) => {
27
27
  let { list: n } = e, { value: i, type: s, dispatch: c } = r(), l = s === a.DEPARMENT, u = s === a.DEPARMENT_GROUP, f = y(i?.[0]), m = (e) => {
28
28
  c({
@@ -150,15 +150,15 @@ var v = {
150
150
  })
151
151
  });
152
152
  }, E = {
153
- "extra-contact-group-panel": "_extra-contact-group-panel_oytrb_1",
154
- "extra-contact-group-panel__menu": "_extra-contact-group-panel__menu_oytrb_6",
155
- "extra-contact-group-panel__menu-list": "_extra-contact-group-panel__menu-list_oytrb_10",
156
- "extra-contact-group-panel__menu-item": "_extra-contact-group-panel__menu-item_oytrb_14",
157
- "extra-contact-group-panel__menu-item--active": "_extra-contact-group-panel__menu-item--active_oytrb_25",
158
- "extra-contact-group-panel__content": "_extra-contact-group-panel__content_oytrb_32",
159
- "extra-contact-group-panel__empty": "_extra-contact-group-panel__empty_oytrb_37",
160
- "extra-contact-group-panel--empty": "_extra-contact-group-panel--empty_oytrb_45",
161
- "extra-contact-group-panel__loading": "_extra-contact-group-panel__loading_oytrb_53"
153
+ "extra-contact-group-panel": "_extra-contact-group-panel_115d3_1",
154
+ "extra-contact-group-panel__menu": "_extra-contact-group-panel__menu_115d3_6",
155
+ "extra-contact-group-panel__menu-list": "_extra-contact-group-panel__menu-list_115d3_10",
156
+ "extra-contact-group-panel__menu-item": "_extra-contact-group-panel__menu-item_115d3_14",
157
+ "extra-contact-group-panel__menu-item--active": "_extra-contact-group-panel__menu-item--active_115d3_25",
158
+ "extra-contact-group-panel__content": "_extra-contact-group-panel__content_115d3_32",
159
+ "extra-contact-group-panel__empty": "_extra-contact-group-panel__empty_115d3_37",
160
+ "extra-contact-group-panel--empty": "_extra-contact-group-panel--empty_115d3_45",
161
+ "extra-contact-group-panel__loading": "_extra-contact-group-panel__loading_115d3_53"
162
162
  }, D = () => {
163
163
  let { containerHeight: a, requestContext: o, limits: l, departmentSelectableRange: d, departmentPanelRequestGuard: p } = r(), { t: h } = s(), v = u(() => ({
164
164
  default: h("externalContact.defaultGroup"),
@@ -8,13 +8,13 @@ import { t as P } from "../vendors/useLocale.js";
8
8
  import { a as F, c as I, i as te, l as ne, o as re, r as ie, s as L } from "./utils-Bb473LZ3.js";
9
9
  import { c as ae, d as oe, f as se, l as ce, o as le, s as ue, u as de } from "./useOutsiderGroupPanelState-BULTXv3n.js";
10
10
  import { n as fe, o as pe, r as me, s as he } from "./filterLabelCorpFlatNodes-BrRZqDkm.js";
11
- import { a as ge, i as _e, n as ve, r as ye } from "./OrganizationPanel-hray3UWA.js";
11
+ import { a as ge, i as _e, n as ve, r as ye } from "./OrganizationPanel-CUO2uEXm.js";
12
12
  import { a as be, d as xe, u as Se } from "./useTreeExpandedKeys-oLUTUYkP.js";
13
- import { a as Ce, i as we, o as Te, r as Ee, t as De } from "./useFilteredMemberList-BE7jRCME.js";
14
- import { i as Oe, n as ke, r as Ae, t as je } from "./DeptsUser-DO-SQexg.js";
15
- import { r as Me } from "./CorpFlatList-Cn8-KRFi.js";
16
- import { t as Ne } from "./Member-BrNFIHZy.js";
17
- import { n as Pe, r as Fe, t as Ie } from "./Department-DXD3xoiS.js";
13
+ import { a as Ce, i as we, o as Te, r as Ee, t as De } from "./useFilteredMemberList-CugOq5jk.js";
14
+ import { i as Oe, n as ke, r as Ae, t as je } from "./DeptsUser-DcgCRwGJ.js";
15
+ import { r as Me } from "./CorpFlatList-8guSLq9t.js";
16
+ import { t as Ne } from "./Member-DCXp-q_w.js";
17
+ import { n as Pe, r as Fe, t as Ie } from "./Department-BbYSDDl9.js";
18
18
  import { useCallback as R, useEffect as z, useLayoutEffect as Le, useMemo as B, useRef as V, useState as H } from "react";
19
19
  import { Avatar as Re, Button as ze, Spin as Be } from "antd";
20
20
  import { Icon as U, Tree as Ve } from "@baishuyun/ui-base";
@@ -7,15 +7,15 @@ import { t as h } from "../vendors/useLocale.js";
7
7
  import { n as g, r as _ } from "./utils-Bb473LZ3.js";
8
8
  import { i as v, n as y, r as b, t as x } from "./useOutsiderGroupPanelState-BULTXv3n.js";
9
9
  import { i as S, n as C, o as w, r as T, t as E } from "./filterLabelCorpFlatNodes-BrRZqDkm.js";
10
- import { t as D } from "./OrganizationPanel-hray3UWA.js";
10
+ import { t as D } from "./OrganizationPanel-CUO2uEXm.js";
11
11
  import { a as O, i as ee, o as te, r as ne, t as re } from "./useTreeExpandedKeys-oLUTUYkP.js";
12
- import { a as ie, c as k, n as A, r as j, s as M, t as ae } from "./useFilteredMemberList-BE7jRCME.js";
13
- import { t as oe } from "./EnterpriseLabelList-BtB8AjXO.js";
14
- import { n as se, t as N } from "./CorpFlatList-Cn8-KRFi.js";
12
+ import { a as ie, c as k, n as A, r as j, s as M, t as ae } from "./useFilteredMemberList-CugOq5jk.js";
13
+ import { t as oe } from "./EnterpriseLabelList-CSD5AQaL.js";
14
+ import { n as se, t as N } from "./CorpFlatList-8guSLq9t.js";
15
15
  import { t as ce } from "./CorpLabelTree-iQ_7Ux_J.js";
16
16
  import { t as P } from "./CorpDeptTree-B4EEUTqQ.js";
17
- import { t as le } from "./CorpDeptMemberList-CStcWBzB.js";
18
- import { t as ue } from "./RelationShipList-DcgaMOyr.js";
17
+ import { t as le } from "./CorpDeptMemberList-DBwnjM92.js";
18
+ import { t as ue } from "./RelationShipList-RSqFRzgD.js";
19
19
  import { useCallback as F, useEffect as de, useMemo as I, useState as L } from "react";
20
20
  import { Radio as R, Spin as z } from "antd";
21
21
  import { Checkbox as B, Icon as V, Tree as H } from "@baishuyun/ui-base";
@@ -23,23 +23,23 @@ import { useRequest as U } from "ahooks";
23
23
  import { jsx as W, jsxs as G } from "react/jsx-runtime";
24
24
  //#region src/components/DeptsMemberSelector/subcomponents/Panels/DeptUsersPositionPanel/DeptUsersPositionPanel.module.scss
25
25
  var K = {
26
- "dept-users-position-panel": "_dept-users-position-panel_13o0v_1",
27
- "dept-users-position-panel__department": "_dept-users-position-panel__department_13o0v_6",
28
- "dept-users-position-panel__mode": "_dept-users-position-panel__mode_13o0v_11",
29
- "dept-users-position-panel__mode-list": "_dept-users-position-panel__mode-list_13o0v_16",
30
- "dept-users-position-panel__mode-item": "_dept-users-position-panel__mode-item_13o0v_22",
31
- "dept-users-position-panel__mode-item--active": "_dept-users-position-panel__mode-item--active_13o0v_32",
32
- "dept-users-position-panel__positions": "_dept-users-position-panel__positions_13o0v_39",
33
- "dept-users-position-panel__position-group": "_dept-users-position-panel__position-group_13o0v_45",
34
- "dept-users-position-panel__position-item": "_dept-users-position-panel__position-item_13o0v_50",
35
- "dept-users-position-panel__position-checkbox": "_dept-users-position-panel__position-checkbox_13o0v_58",
36
- "dept-users-position-panel__position-radio": "_dept-users-position-panel__position-radio_13o0v_58",
37
- "dept-users-position-panel__position-radio-group": "_dept-users-position-panel__position-radio-group_13o0v_61",
38
- "dept-users-position-panel__position-checkbox-row": "_dept-users-position-panel__position-checkbox-row_13o0v_86",
39
- "dept-users-position-panel__position-name": "_dept-users-position-panel__position-name_13o0v_93",
40
- "dept-users-position-panel__empty": "_dept-users-position-panel__empty_13o0v_102",
41
- "dept-users-position-panel__switcher-icon": "_dept-users-position-panel__switcher-icon_13o0v_110",
42
- "dept-users-position-panel__switcher-icon--expanded": "_dept-users-position-panel__switcher-icon--expanded_13o0v_115"
26
+ "dept-users-position-panel": "_dept-users-position-panel_xlj21_1",
27
+ "dept-users-position-panel__department": "_dept-users-position-panel__department_xlj21_6",
28
+ "dept-users-position-panel__mode": "_dept-users-position-panel__mode_xlj21_11",
29
+ "dept-users-position-panel__mode-list": "_dept-users-position-panel__mode-list_xlj21_16",
30
+ "dept-users-position-panel__mode-item": "_dept-users-position-panel__mode-item_xlj21_22",
31
+ "dept-users-position-panel__mode-item--active": "_dept-users-position-panel__mode-item--active_xlj21_32",
32
+ "dept-users-position-panel__positions": "_dept-users-position-panel__positions_xlj21_39",
33
+ "dept-users-position-panel__position-group": "_dept-users-position-panel__position-group_xlj21_45",
34
+ "dept-users-position-panel__position-item": "_dept-users-position-panel__position-item_xlj21_50",
35
+ "dept-users-position-panel__position-checkbox": "_dept-users-position-panel__position-checkbox_xlj21_58",
36
+ "dept-users-position-panel__position-radio": "_dept-users-position-panel__position-radio_xlj21_58",
37
+ "dept-users-position-panel__position-radio-group": "_dept-users-position-panel__position-radio-group_xlj21_61",
38
+ "dept-users-position-panel__position-checkbox-row": "_dept-users-position-panel__position-checkbox-row_xlj21_86",
39
+ "dept-users-position-panel__position-name": "_dept-users-position-panel__position-name_xlj21_93",
40
+ "dept-users-position-panel__empty": "_dept-users-position-panel__empty_xlj21_102",
41
+ "dept-users-position-panel__switcher-icon": "_dept-users-position-panel__switcher-icon_xlj21_110",
42
+ "dept-users-position-panel__switcher-icon--expanded": "_dept-users-position-panel__switcher-icon--expanded_xlj21_115"
43
43
  }, fe = [{
44
44
  key: "current",
45
45
  label: "当前部门的所有职位"
@@ -262,26 +262,26 @@ var K = {
262
262
  ]
263
263
  });
264
264
  }, q = {
265
- "dept-users-role-panel__option-list": "_dept-users-role-panel__option-list_ioi2c_1",
266
- "dept-users-role-panel__option-item": "_dept-users-role-panel__option-item_ioi2c_6",
267
- "dept-users-role-panel__option-checkbox": "_dept-users-role-panel__option-checkbox_ioi2c_18",
268
- "dept-users-role-panel__option-radio": "_dept-users-role-panel__option-radio_ioi2c_19",
269
- "dept-users-role-panel__option-radio-group": "_dept-users-role-panel__option-radio-group_ioi2c_23",
270
- "dept-users-role-panel__option-checkbox-row": "_dept-users-role-panel__option-checkbox-row_ioi2c_49",
271
- "dept-users-role-panel__option-name": "_dept-users-role-panel__option-name_ioi2c_56",
272
- "dept-users-role-panel__empty": "_dept-users-role-panel__empty_ioi2c_65",
273
- "dept-users-role-panel": "_dept-users-role-panel_ioi2c_1",
274
- "dept-users-role-panel__menu": "_dept-users-role-panel__menu_ioi2c_79",
275
- "dept-users-role-panel__menu-list": "_dept-users-role-panel__menu-list_ioi2c_84",
276
- "dept-users-role-panel__menu-item": "_dept-users-role-panel__menu-item_ioi2c_88",
277
- "dept-users-role-panel__menu-item--active": "_dept-users-role-panel__menu-item--active_ioi2c_99",
278
- "dept-users-role-panel__tree-section": "_dept-users-role-panel__tree-section_ioi2c_106",
279
- "dept-users-role-panel__options-section": "_dept-users-role-panel__options-section_ioi2c_106",
280
- "dept-users-role-panel__pick-section": "_dept-users-role-panel__pick-section_ioi2c_106",
281
- "dept-users-role-panel__option-item--active": "_dept-users-role-panel__option-item--active_ioi2c_115",
282
- "dept-users-role-panel__tree-icon": "_dept-users-role-panel__tree-icon_ioi2c_122",
283
- "dept-users-role-panel__switcher-icon": "_dept-users-role-panel__switcher-icon_ioi2c_125",
284
- "dept-users-role-panel__switcher-icon--expanded": "_dept-users-role-panel__switcher-icon--expanded_ioi2c_130"
265
+ "dept-users-role-panel__option-list": "_dept-users-role-panel__option-list_s64m0_1",
266
+ "dept-users-role-panel__option-item": "_dept-users-role-panel__option-item_s64m0_6",
267
+ "dept-users-role-panel__option-checkbox": "_dept-users-role-panel__option-checkbox_s64m0_18",
268
+ "dept-users-role-panel__option-radio": "_dept-users-role-panel__option-radio_s64m0_19",
269
+ "dept-users-role-panel__option-radio-group": "_dept-users-role-panel__option-radio-group_s64m0_23",
270
+ "dept-users-role-panel__option-checkbox-row": "_dept-users-role-panel__option-checkbox-row_s64m0_49",
271
+ "dept-users-role-panel__option-name": "_dept-users-role-panel__option-name_s64m0_56",
272
+ "dept-users-role-panel__empty": "_dept-users-role-panel__empty_s64m0_65",
273
+ "dept-users-role-panel": "_dept-users-role-panel_s64m0_1",
274
+ "dept-users-role-panel__menu": "_dept-users-role-panel__menu_s64m0_79",
275
+ "dept-users-role-panel__menu-list": "_dept-users-role-panel__menu-list_s64m0_84",
276
+ "dept-users-role-panel__menu-item": "_dept-users-role-panel__menu-item_s64m0_88",
277
+ "dept-users-role-panel__menu-item--active": "_dept-users-role-panel__menu-item--active_s64m0_99",
278
+ "dept-users-role-panel__tree-section": "_dept-users-role-panel__tree-section_s64m0_106",
279
+ "dept-users-role-panel__options-section": "_dept-users-role-panel__options-section_s64m0_106",
280
+ "dept-users-role-panel__pick-section": "_dept-users-role-panel__pick-section_s64m0_106",
281
+ "dept-users-role-panel__option-item--active": "_dept-users-role-panel__option-item--active_s64m0_115",
282
+ "dept-users-role-panel__tree-icon": "_dept-users-role-panel__tree-icon_s64m0_122",
283
+ "dept-users-role-panel__switcher-icon": "_dept-users-role-panel__switcher-icon_s64m0_125",
284
+ "dept-users-role-panel__switcher-icon--expanded": "_dept-users-role-panel__switcher-icon--expanded_s64m0_130"
285
285
  }, be = "-roleGroup", xe = "-roleGroupSub", J = (e) => String(e._id), Y = (e) => e ? String(e.type) === "1" : !1, Se = (e) => e === 0 || e === "0" ? "0" : e, Ce = (e) => ({
286
286
  ...e,
287
287
  parent: Se(e.parent)
@@ -634,25 +634,25 @@ var K = {
634
634
  ]
635
635
  });
636
636
  }, Z = {
637
- "dept-users-extra-contact-panel": "_dept-users-extra-contact-panel_mcorh_1",
638
- "dept-users-extra-contact-panel__menu": "_dept-users-extra-contact-panel__menu_mcorh_6",
639
- "dept-users-extra-contact-panel__group-type-section": "_dept-users-extra-contact-panel__group-type-section_mcorh_6",
640
- "dept-users-extra-contact-panel__groups-section": "_dept-users-extra-contact-panel__groups-section_mcorh_11",
641
- "dept-users-extra-contact-panel__members-section": "_dept-users-extra-contact-panel__members-section_mcorh_11",
642
- "dept-users-extra-contact-panel__menu-list": "_dept-users-extra-contact-panel__menu-list_mcorh_14",
643
- "dept-users-extra-contact-panel__group-list": "_dept-users-extra-contact-panel__group-list_mcorh_14",
644
- "dept-users-extra-contact-panel__menu-item": "_dept-users-extra-contact-panel__menu-item_mcorh_18",
645
- "dept-users-extra-contact-panel__group-item": "_dept-users-extra-contact-panel__group-item_mcorh_18",
646
- "dept-users-extra-contact-panel__menu-item--active": "_dept-users-extra-contact-panel__menu-item--active_mcorh_29",
647
- "dept-users-extra-contact-panel__group-item--active": "_dept-users-extra-contact-panel__group-item--active_mcorh_29",
648
- "dept-users-extra-contact-panel__menu-item--selectable": "_dept-users-extra-contact-panel__menu-item--selectable_mcorh_36",
649
- "dept-users-extra-contact-panel__group-item--selectable": "_dept-users-extra-contact-panel__group-item--selectable_mcorh_36",
650
- "dept-users-extra-contact-panel__list-content": "_dept-users-extra-contact-panel__list-content_mcorh_47",
651
- "dept-users-extra-contact-panel__group-row": "_dept-users-extra-contact-panel__group-row_mcorh_50",
652
- "dept-users-extra-contact-panel__group-name": "_dept-users-extra-contact-panel__group-name_mcorh_58",
653
- "dept-users-extra-contact-panel__group-radio-group": "_dept-users-extra-contact-panel__group-radio-group_mcorh_65",
654
- "dept-users-extra-contact-panel__group-radio": "_dept-users-extra-contact-panel__group-radio_mcorh_65",
655
- "dept-users-extra-contact-panel__empty": "_dept-users-extra-contact-panel__empty_mcorh_93"
637
+ "dept-users-extra-contact-panel": "_dept-users-extra-contact-panel_sr0aq_1",
638
+ "dept-users-extra-contact-panel__menu": "_dept-users-extra-contact-panel__menu_sr0aq_6",
639
+ "dept-users-extra-contact-panel__group-type-section": "_dept-users-extra-contact-panel__group-type-section_sr0aq_6",
640
+ "dept-users-extra-contact-panel__groups-section": "_dept-users-extra-contact-panel__groups-section_sr0aq_11",
641
+ "dept-users-extra-contact-panel__members-section": "_dept-users-extra-contact-panel__members-section_sr0aq_11",
642
+ "dept-users-extra-contact-panel__menu-list": "_dept-users-extra-contact-panel__menu-list_sr0aq_14",
643
+ "dept-users-extra-contact-panel__group-list": "_dept-users-extra-contact-panel__group-list_sr0aq_14",
644
+ "dept-users-extra-contact-panel__menu-item": "_dept-users-extra-contact-panel__menu-item_sr0aq_18",
645
+ "dept-users-extra-contact-panel__group-item": "_dept-users-extra-contact-panel__group-item_sr0aq_18",
646
+ "dept-users-extra-contact-panel__menu-item--active": "_dept-users-extra-contact-panel__menu-item--active_sr0aq_29",
647
+ "dept-users-extra-contact-panel__group-item--active": "_dept-users-extra-contact-panel__group-item--active_sr0aq_29",
648
+ "dept-users-extra-contact-panel__menu-item--selectable": "_dept-users-extra-contact-panel__menu-item--selectable_sr0aq_36",
649
+ "dept-users-extra-contact-panel__group-item--selectable": "_dept-users-extra-contact-panel__group-item--selectable_sr0aq_36",
650
+ "dept-users-extra-contact-panel__list-content": "_dept-users-extra-contact-panel__list-content_sr0aq_47",
651
+ "dept-users-extra-contact-panel__group-row": "_dept-users-extra-contact-panel__group-row_sr0aq_50",
652
+ "dept-users-extra-contact-panel__group-name": "_dept-users-extra-contact-panel__group-name_sr0aq_58",
653
+ "dept-users-extra-contact-panel__group-radio-group": "_dept-users-extra-contact-panel__group-radio-group_sr0aq_65",
654
+ "dept-users-extra-contact-panel__group-radio": "_dept-users-extra-contact-panel__group-radio_sr0aq_65",
655
+ "dept-users-extra-contact-panel__empty": "_dept-users-extra-contact-panel__empty_sr0aq_93"
656
656
  }, Le = (e) => ({
657
657
  ...e,
658
658
  type: e.type || f.OUTSIDER
@@ -1148,13 +1148,13 @@ var K = {
1148
1148
  onToggle: e.handleRelationToggle
1149
1149
  });
1150
1150
  }, $ = {
1151
- "other-panel": "_other-panel_1g3as_1",
1152
- "other-panel__list": "_other-panel__list_1g3as_4",
1153
- "other-panel__radio-group": "_other-panel__radio-group_1g3as_10",
1154
- "other-panel__item": "_other-panel__item_1g3as_33",
1155
- "other-panel__control": "_other-panel__control_1g3as_42",
1156
- "other-panel__checkbox-row": "_other-panel__checkbox-row_1g3as_45",
1157
- "other-panel__name": "_other-panel__name_1g3as_53"
1151
+ "other-panel": "_other-panel_1oopr_1",
1152
+ "other-panel__list": "_other-panel__list_1oopr_4",
1153
+ "other-panel__radio-group": "_other-panel__radio-group_1oopr_10",
1154
+ "other-panel__item": "_other-panel__item_1oopr_33",
1155
+ "other-panel__control": "_other-panel__control_1oopr_42",
1156
+ "other-panel__checkbox-row": "_other-panel__checkbox-row_1oopr_45",
1157
+ "other-panel__name": "_other-panel__name_1oopr_53"
1158
1158
  }, tt = (e) => {
1159
1159
  let t = [], { dispatch: r, value: i, isSingleSelect: a } = n();
1160
1160
  e.publicPermissionEnable && t.push({
@@ -7,15 +7,15 @@ import { Checkbox as o } from "@baishuyun/ui-base";
7
7
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  //#region src/components/DeptsMemberSelector/subcomponents/Panels/DeptUsersEnterpriseLabelPanel/EnterpriseLabelList/EnterpriseLabelList.module.scss
9
9
  var l = {
10
- "enterprise-label-list__option": "_enterprise-label-list__option_1mf5d_1",
11
- "enterprise-label-list__option--checkbox": "_enterprise-label-list__option--checkbox_1mf5d_9",
12
- "enterprise-label-list__option--radio": "_enterprise-label-list__option--radio_1mf5d_12",
13
- "enterprise-label-list__radio-group": "_enterprise-label-list__radio-group_1mf5d_15",
14
- "enterprise-label-list__radio": "_enterprise-label-list__radio_1mf5d_15",
15
- "enterprise-label-list__name": "_enterprise-label-list__name_1mf5d_41",
16
- "enterprise-label-list__checkbox-row": "_enterprise-label-list__checkbox-row_1mf5d_48",
17
- "enterprise-label-list__checkbox": "_enterprise-label-list__checkbox_1mf5d_48",
18
- "enterprise-label-list__group": "_enterprise-label-list__group_1mf5d_59"
10
+ "enterprise-label-list__option": "_enterprise-label-list__option_1mbtt_1",
11
+ "enterprise-label-list__option--checkbox": "_enterprise-label-list__option--checkbox_1mbtt_9",
12
+ "enterprise-label-list__option--radio": "_enterprise-label-list__option--radio_1mbtt_12",
13
+ "enterprise-label-list__radio-group": "_enterprise-label-list__radio-group_1mbtt_15",
14
+ "enterprise-label-list__radio": "_enterprise-label-list__radio_1mbtt_15",
15
+ "enterprise-label-list__name": "_enterprise-label-list__name_1mbtt_41",
16
+ "enterprise-label-list__checkbox-row": "_enterprise-label-list__checkbox-row_1mbtt_48",
17
+ "enterprise-label-list__checkbox": "_enterprise-label-list__checkbox_1mbtt_48",
18
+ "enterprise-label-list__group": "_enterprise-label-list__group_1mbtt_59"
19
19
  }, u = ({ labelList: u = [], selectedIds: d = [], selectedId: f, loading: p = !1, isSingleSelect: m = !1, onChange: h, onToggle: g }) => {
20
20
  let { containerHeight: _ } = n();
21
21
  return /* @__PURE__ */ s(a, {