@baishuyun/ui-business 2.0.6 → 3.0.3

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 (49) hide show
  1. package/README.md +188 -1
  2. package/dist/DeptsMember/DeptsMember-CzJqr_LX.js +721 -0
  3. package/dist/DeptsMember/ExtraConcactPanel-BI9emYpp.js +674 -0
  4. package/dist/DeptsMember/OrganizationPanel-DcwvZ6X4.js +254 -0
  5. package/dist/DeptsMember/TabGroup-wNM86-Zq.js +141 -0
  6. package/dist/DeptsMember/index.js +2 -2
  7. package/dist/DeptsMember/subcomponents/Entity/Department/index.js +79 -304
  8. package/dist/DeptsMember/subcomponents/Entity/DeptsUser/index.d.ts +2 -0
  9. package/dist/DeptsMember/subcomponents/Entity/DeptsUser/index.js +38 -0
  10. package/dist/DeptsMember/subcomponents/Entity/Member/index.js +27 -672
  11. package/dist/components/DeptsMember/DeptsMember.type.d.ts +5 -1
  12. package/dist/components/DeptsMember/hooks/useDeptsMemberSelector.d.ts +1 -0
  13. package/dist/components/DeptsMember/subcomponents/Entity/Department/index.d.ts +1 -1
  14. package/dist/components/DeptsMember/subcomponents/Entity/DeptsUser/index.d.ts +6 -0
  15. package/dist/components/DeptsMember/subcomponents/Entity/Member/index.d.ts +1 -1
  16. package/dist/components/DeptsMember/subcomponents/SelectionTabs/SelectionTabList/SelectionTabList.d.ts +2 -2
  17. package/dist/components/DeptsMember/subcomponents/SelectionTabs/useSelectorType.d.ts +16 -0
  18. package/dist/components/DeptsMember/utils/constants.d.ts +8 -4
  19. package/dist/index.css +1 -1
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.js +7 -7
  22. package/dist/lang/en-US.json.d.ts +2 -1
  23. package/dist/lang/zh-CN.json.d.ts +2 -1
  24. package/dist/services/apiService.d.ts +16 -11
  25. package/dist/vendors/services/apiService.js +11 -86
  26. package/dist/vendors/services/corp/outsider.service.js +4 -4
  27. package/dist/vendors/services/data/department.service.js +2 -2
  28. package/dist/vendors/services/data/member.service.js +6 -6
  29. package/dist/vendors/services/data/member_limit.service.js +3 -3
  30. package/dist/vendors/services/data/outsider.service.js +4 -4
  31. package/package.json +2 -2
  32. package/dist/DeptsMember/DeptsMember-pFjdAocd.js +0 -702
  33. package/dist/DeptsMember/TabGroup-CznMwTOD.js +0 -137
  34. package/dist/vendors/axios.js +0 -1720
  35. package/dist/vendors/services/team/team.services.js +0 -5
  36. /package/dist/components/DeptsMember/subcomponents/Entity/Member/{MemberEntity/MemerList → MemerList}/MemberList.d.ts +0 -0
  37. /package/dist/components/DeptsMember/subcomponents/{Entity/Department/CurrentDepartmentEntity/CurrentDepartmentEntity.d.ts → Panels/CurrentUserDeptsPanel/CurrentUserDeptsPanel.d.ts} +0 -0
  38. /package/dist/components/DeptsMember/subcomponents/{Entity/Member/CurrentEntity/CurrentEntity.d.ts → Panels/CurrentUserPanel/CurrentUserPanel.d.ts} +0 -0
  39. /package/dist/components/DeptsMember/subcomponents/{Entity/Department/ExternalContactEntity/ExternalContactEntity.d.ts → Panels/ExtraConcactPanel/ExtraConcactPanel.d.ts} +0 -0
  40. /package/dist/components/DeptsMember/subcomponents/{Entity/Member/ExternalContactEntity/ExternalContactEntity.d.ts → Panels/ExtraContactGroupPanel/ExtraContactGroupPanel.d.ts} +0 -0
  41. /package/dist/components/DeptsMember/subcomponents/{Entity/Member/MemberEntity → Panels/MemberPanel}/AllMemeberCheck/AllMemeberCheck.d.ts +0 -0
  42. /package/dist/components/DeptsMember/subcomponents/{Entity/Member/MemberEntity → Panels/MemberPanel}/ExternalMember/ExternalMember.d.ts +0 -0
  43. /package/dist/components/DeptsMember/subcomponents/{Entity/Member/MemberEntity → Panels/MemberPanel}/InternalMemeber/InternalMemeber.d.ts +0 -0
  44. /package/dist/components/DeptsMember/subcomponents/{Entity/Member/MemberEntity/MemberEntity.d.ts → Panels/MemberPanel/MemberPanel.d.ts} +0 -0
  45. /package/dist/components/DeptsMember/subcomponents/{Entity/Department/OrganizationalEntity → Panels/OrganizationPanel}/ExternalOrganization/ExternalOrganization.d.ts +0 -0
  46. /package/dist/components/DeptsMember/subcomponents/{Entity/Department/OrganizationalEntity → Panels/OrganizationPanel}/InternalOrganization/InternalOrganization.d.ts +0 -0
  47. /package/dist/components/DeptsMember/subcomponents/{Entity/Department/OrganizationalEntity/OrganizationalEntity.d.ts → Panels/OrganizationPanel/OrganizationPanel.d.ts} +0 -0
  48. /package/dist/components/DeptsMember/subcomponents/{Entity/Member/MajorEntity/MajorEntity.d.ts → Panels/PositionPanel/PositionPanel.d.ts} +0 -0
  49. /package/dist/components/DeptsMember/subcomponents/{Entity/Member/RoleEntity/RoleEntity.d.ts → Panels/RolePanel/RolePanel.d.ts} +0 -0
@@ -1,355 +1,130 @@
1
- import { jsxs as g, jsx as e, Fragment as K } from "react/jsx-runtime";
2
- import { g as j, d as P } from "../../../../vendors/services/data/member.service.js";
3
- import { useRequest as T } from "ahooks";
4
- import { Spin as A, Radio as R } from "antd";
5
- import { c as v } from "../../../../vendors/clsx.js";
6
- import { useState as D, useMemo as G, useCallback as M } from "react";
7
- import { a as N, u as k, E, d as L, b as H } from "../../../TabGroup-CznMwTOD.js";
8
- import { buildDeptTree as B, buildTree as U, findNodeInTree as q } from "../../../utils/index.js";
9
- import { S } from "../../../../vendors/simplebar-react.js";
10
- import { Tree as w, Icon as C, Checkbox as O } from "bsy-react-ui";
11
- import { g as J } from "../../../../vendors/services/corp/outsider.service.js";
12
- const Q = (t) => {
13
- const { type: r, containerHeight: p, value: o } = N(), { t: a } = k(), f = o?.map((d) => d._id) || [], i = t.data?.map((d) => d._id);
14
- return /* @__PURE__ */ g(
15
- S,
16
- {
17
- style: { height: p - 8, padding: "4px" },
18
- className: "internal-container",
19
- children: [
20
- t.data.length > 0 && /* @__PURE__ */ e(
21
- w,
22
- {
23
- parentCheckable: !0,
24
- checkType: r === E.DEPARMENT ? "radio" : "checkbox",
25
- data: t.data,
26
- fieldNames: {
27
- title: "name",
28
- value: "_id",
29
- children: "children"
30
- },
31
- selectedKeys: f,
32
- onSelect: t.onSelect,
33
- onDeSelect: t.onDeselect,
34
- defaultExpandedKeys: i,
35
- icon: () => /* @__PURE__ */ e(C, { name: "dept-one", className: "internal-container__icon" }),
36
- switcherIcon: (d) => /* @__PURE__ */ e(
37
- C,
38
- {
39
- name: "xiangxiazhankai-11",
40
- className: v("internal-container__arrow-icon", {
41
- "rotate-90": d
42
- })
43
- }
44
- )
45
- }
46
- ),
47
- t.data.length === 0 && !t.loading && /* @__PURE__ */ e("div", { className: "internal-container__empty", children: /* @__PURE__ */ e("span", { children: a("department.noAvailable") }) })
48
- ]
49
- }
50
- );
51
- }, V = (t) => {
52
- const { type: r, containerHeight: p, value: o } = N(), { t: a } = k(), [f, i] = D(
53
- "dockcorp"
54
- /* DOCK_PERSON_GROUP */
55
- ), d = o?.map((n) => n._id) || [], b = [
56
- {
57
- label: a("department.externalContactGroup"),
58
- value: "dockcorp"
59
- /* DOCK_PERSON_GROUP */
60
- },
61
- {
62
- label: a("department.externalContactDepartment"),
63
- value: "dockcorpdept"
64
- /* DOCK_DEPARTMENT */
65
- }
66
- ], s = (n, u) => {
67
- const m = [];
68
- for (const c of n)
69
- if (c.type === u)
70
- if (u === "dockcorpdept")
71
- m.push({
72
- ...c,
73
- children: c.children
74
- });
75
- else {
76
- const l = c.children ? s(c.children, u) : [];
77
- m.push({
78
- ...c,
79
- children: l.length > 0 ? l : void 0
80
- });
81
- }
82
- else {
83
- const l = c.children ? s(c.children, u) : [];
84
- l.length > 0 && m.push({
85
- ...c,
86
- children: l
87
- });
88
- }
89
- return m;
90
- }, x = s(t.data, f), _ = x?.map((n) => n._id);
91
- return /* @__PURE__ */ g("div", { className: "external-container", children: [
92
- /* @__PURE__ */ e(L, { tabs: b, value: f, onChange: i }),
93
- /* @__PURE__ */ e("div", { className: "external-container__content", children: /* @__PURE__ */ g(S, { style: { height: p - 42, padding: "4px" }, children: [
94
- x.length > 0 && /* @__PURE__ */ e(
95
- w,
96
- {
97
- parentCheckable: !0,
98
- checkType: r === E.DEPARMENT ? "radio" : "checkbox",
99
- data: x,
100
- fieldNames: {
101
- title: "name",
102
- value: "_id",
103
- children: "children"
104
- },
105
- selectedKeys: d,
106
- onSelect: t.onSelect,
107
- onDeSelect: t.onDeselect,
108
- defaultExpandedKeys: _,
109
- icon: () => /* @__PURE__ */ e(C, { name: "dept-one", className: "text-[#0265ff]", size: 16 }),
110
- switcherIcon: (n) => /* @__PURE__ */ e(
111
- C,
112
- {
113
- name: "xiangxiazhankai-11",
114
- className: v(
115
- "transition-transform text-base duration-300 ease-in-out text-[#666]",
116
- {
117
- "rotate-90": n
118
- }
119
- )
120
- }
121
- )
122
- }
123
- ),
124
- x.length === 0 && !t.loading && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e("span", { className: "text-[#999]", children: a("department.noAvailable") }) })
125
- ] }) })
126
- ] });
127
- }, W = () => {
128
- const { type: t, dispatch: r } = N(), { t: p } = k(), [o] = D([
129
- { key: 0, label: p("department.internal"), visible: !0 },
130
- { key: 1, label: p("department.external"), visible: !0 }
131
- ]), [a, f] = D(
132
- 0
133
- /* INTERNAL */
134
- ), { data: i, loading: d } = T(
135
- () => j({
136
- departmentLimit: [],
137
- hasDeptDock: a === 1
138
- /* EXTERNAL */
139
- }),
140
- {
141
- refreshDeps: [a]
142
- }
143
- ), b = G(() => {
144
- const l = i?.departments || [];
145
- return l.length > 0 ? B(l) : [];
146
- }, [i]), s = G(() => {
147
- const l = i?.label_corp_list || [];
148
- if (!l.length)
149
- return [];
150
- const y = l.filter((h) => h.type === "dockcorp" || h.type === "dockdept" ? !0 : h.parentId === 0 ? !1 : l.some((z) => z.parentId === h.departmentId)), I = y.map((h) => ({
151
- ...h,
152
- checkable: h.type !== "dockcorpdept" && h.type !== "label",
153
- icon: /* @__PURE__ */ e(H, { type: h.type, size: 16 })
154
- }));
155
- return y.length > 0 ? U(I, {
156
- parentId: "parentId",
157
- children: "children",
158
- value: "_id",
159
- title: "name"
160
- }) : [];
161
- }, [i]), x = {
162
- 0: b,
163
- 1: s
164
- }, _ = M(
165
- (l) => {
166
- const y = a === 1 ? i?.label_corp_list : i?.departments;
167
- if (!y)
168
- return;
169
- const I = y.find((h) => h._id === l);
170
- I && r({
171
- type: "insertOnly",
172
- payload: {
173
- ...I
174
- }
175
- });
176
- },
177
- [r, i, a]
178
- ), n = M(
179
- (l, y) => {
180
- r({
181
- type: "addOne",
182
- payload: {
183
- ...y
184
- }
185
- });
186
- },
187
- [r]
188
- ), u = (l) => {
189
- const y = q(l, x[a], {
190
- children: "children",
191
- value: "_id"
192
- });
193
- y && r({
194
- type: "deleteOne",
195
- payload: y._id
196
- });
197
- }, m = E.DEPARMENT === t ? _ : n, c = i?.label_corp_count || 0;
198
- return /* @__PURE__ */ g("div", { className: "flex line-height-normal h-full", children: [
199
- c > 0 && /* @__PURE__ */ e("aside", { className: "basis-[200px] p-1 shrink-0", children: /* @__PURE__ */ e("ul", { className: "flex flex-col", children: o.filter((l) => l.visible).map((l) => /* @__PURE__ */ e(
200
- "li",
201
- {
202
- onClick: () => f(l.key),
203
- className: v("px-[10px] py-[7px] rounded cursor-pointer text-sm", {
204
- "bg-[#F0F6FF] text-[#0265ff]": a === l.key,
205
- "text-black hover:bg-[#f3f3f3]": a !== l.key
206
- }),
207
- children: l.label
208
- },
209
- l.key
210
- )) }) }),
211
- /* @__PURE__ */ e(
212
- "section",
213
- {
214
- className: v("flex-1 border-[#E0E0E0] overflow-hidden", {
215
- "border-l": c > 0
216
- }),
217
- children: /* @__PURE__ */ g(A, { spinning: d, children: [
218
- a === 0 && /* @__PURE__ */ e(
219
- Q,
220
- {
221
- onSelect: m,
222
- onDeselect: u,
223
- loading: !0,
224
- data: x[a]
225
- }
226
- ),
227
- a === 1 && /* @__PURE__ */ e(
228
- V,
229
- {
230
- data: x[a],
231
- onSelect: m,
232
- onDeselect: u,
233
- loading: !0
234
- }
235
- )
236
- ] })
237
- }
238
- )
239
- ] });
240
- }, F = (t) => {
241
- const { list: r } = t, { value: p, type: o, dispatch: a } = N(), f = o === E.DEPARMENT, i = o === E.DEPARMENT_GROUP, d = p?.[0]?._id, b = (n) => {
242
- const u = r?.find((m) => m._id === n.target.value);
243
- u && a({
1
+ import { jsx as e, jsxs as d, Fragment as S } from "react/jsx-runtime";
2
+ import { O as M } from "../../../OrganizationPanel-DcwvZ6X4.js";
3
+ import { useRequest as k } from "ahooks";
4
+ import { d as R } from "../../../../vendors/services/data/member.service.js";
5
+ import { c as x } from "../../../../vendors/clsx.js";
6
+ import { Radio as b, Spin as E } from "antd";
7
+ import { a as y, E as v, u as g } from "../../../TabGroup-wNM86-Zq.js";
8
+ import { Checkbox as N } from "bsy-react-ui";
9
+ import { S as C } from "../../../../vendors/simplebar-react.js";
10
+ import { g as O } from "../../../../vendors/services/corp/outsider.service.js";
11
+ import { useState as G, useMemo as j } from "react";
12
+ const _ = (a) => {
13
+ const { list: n } = a, { value: o, type: r, dispatch: s } = y(), h = r === v.DEPARMENT, m = r === v.DEPARMENT_GROUP, u = o?.[0]?._id, c = (t) => {
14
+ const p = n?.find((f) => f._id === t.target.value);
15
+ p && s({
244
16
  type: "insertOnly",
245
- payload: Object.assign({}, u, {
246
- type: t.type || u.type
17
+ payload: Object.assign({}, p, {
18
+ type: a.type || p.type
247
19
  })
248
20
  });
249
- }, s = (n) => {
250
- a({
21
+ }, l = (t) => {
22
+ s({
251
23
  type: "deleteOne",
252
- payload: n
24
+ payload: t
253
25
  });
254
- }, x = p?.map((n) => n._id) || [], _ = (n) => {
255
- const u = r.filter((c) => !n.includes(c._id)), m = r.filter((c) => n.includes(c._id));
256
- a({
26
+ }, I = o?.map((t) => t._id) || [], D = (t) => {
27
+ const p = n.filter((i) => !t.includes(i._id)), f = n.filter((i) => t.includes(i._id));
28
+ s({
257
29
  type: "deleteAndInsert",
258
30
  payload: {
259
- oldIds: u.map((c) => c._id),
260
- newItems: m.map((c) => Object.assign({}, c, {
261
- type: t.type || c.type
31
+ oldIds: p.map((i) => i._id),
32
+ newItems: f.map((i) => Object.assign({}, i, {
33
+ type: a.type || i.type
262
34
  }))
263
35
  }
264
36
  });
265
37
  };
266
- return /* @__PURE__ */ e("div", { className: "entity-group-list", children: /* @__PURE__ */ g("ul", { className: "font-0", children: [
267
- f && /* @__PURE__ */ e(R.Group, { value: d, onChange: b, className: "w-full", children: r.map((n) => /* @__PURE__ */ e(
38
+ return /* @__PURE__ */ e("div", { className: "entity-group-list", children: /* @__PURE__ */ d("ul", { className: "font-0", children: [
39
+ h && /* @__PURE__ */ e(b.Group, { value: u, onChange: c, className: "w-full", children: n.map((t) => /* @__PURE__ */ e(
268
40
  "li",
269
41
  {
270
- className: v("rounded-[4px] cursor-pointer font-0", {
42
+ className: x("rounded-[4px] cursor-pointer font-0", {
271
43
  "hover:bg-[#f3f3f3]": !0
272
44
  }),
273
45
  children: /* @__PURE__ */ e(
274
- R,
46
+ b,
275
47
  {
276
- value: n._id,
48
+ value: t._id,
277
49
  className: "px-[10px] py-[6px]",
278
50
  onClick: () => {
279
- s(n._id);
51
+ l(t._id);
280
52
  },
281
- children: /* @__PURE__ */ e("div", { className: "flex gap-[6px] items-center", children: /* @__PURE__ */ e("span", { className: "text-sm select-none", children: n.name }) })
53
+ children: /* @__PURE__ */ e("div", { className: "flex gap-[6px] items-center", children: /* @__PURE__ */ e("span", { className: "text-sm select-none", children: t.name }) })
282
54
  }
283
55
  )
284
56
  },
285
- n._id
57
+ t._id
286
58
  )) }),
287
- i && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(O.Group, { value: x, onChange: _, children: r.map((n) => /* @__PURE__ */ e(
59
+ m && /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(N.Group, { value: I, onChange: D, children: n.map((t) => /* @__PURE__ */ e(
288
60
  "li",
289
61
  {
290
- className: v("rounded-[4px] cursor-pointer font-0 px-[10px]", {
62
+ className: x("rounded-[4px] cursor-pointer font-0 px-[10px]", {
291
63
  "hover:bg-[#f3f3f3]": !0
292
64
  }),
293
- children: /* @__PURE__ */ e(O, { labelPosition: "left", value: n._id, children: /* @__PURE__ */ e("div", { className: "flex flex-1 gap-[6px] items-center py-[7px]", children: /* @__PURE__ */ e("span", { className: "text-sm select-none", children: n.name }) }) })
65
+ children: /* @__PURE__ */ e(N, { labelPosition: "left", value: t._id, children: /* @__PURE__ */ e("div", { className: "flex flex-1 gap-[6px] items-center py-[7px]", children: /* @__PURE__ */ e("span", { className: "text-sm select-none", children: t.name }) }) })
294
66
  },
295
- n._id
67
+ t._id
296
68
  )) }) })
297
69
  ] }) });
298
- }, X = () => {
299
- const { containerHeight: t } = N(), { t: r } = k(), { data: p, loading: o } = T(
300
- () => P({
70
+ }, A = () => {
71
+ const { containerHeight: a } = y(), { t: n } = g(), { data: o, loading: r } = k(
72
+ () => R({
301
73
  departmentLimit: []
302
74
  })
303
- ), a = p?.departmentList || [];
304
- return /* @__PURE__ */ e("div", { className: "p-1 external-contact-entit relative", children: /* @__PURE__ */ e(A, { spinning: o, tip: r("common.loading"), children: /* @__PURE__ */ g(S, { style: { height: t - 8 }, children: [
305
- /* @__PURE__ */ e(F, { list: a }),
306
- a.length === 0 && !o && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e("span", { className: "text-[#999]", children: r("department.noAvailable") }) })
75
+ ), s = o?.departmentList || [];
76
+ return /* @__PURE__ */ e("div", { className: "p-1 external-contact-entit relative", children: /* @__PURE__ */ e(E, { spinning: r, tip: n("common.loading"), children: /* @__PURE__ */ d(C, { style: { height: a - 8 }, children: [
77
+ /* @__PURE__ */ e(_, { list: s }),
78
+ s.length === 0 && !r && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e("span", { className: "text-[#999]", children: n("department.noAvailable") }) })
307
79
  ] }) }) });
308
- }, Y = () => {
309
- const { containerHeight: t } = N(), { t: r } = k(), [p] = D([
310
- { key: "default", label: r("externalContact.defaultGroup") },
311
- { key: "custom", label: r("externalContact.customGroup") }
312
- ]), [o, a] = D("default"), { data: f, loading: i } = T(() => J()), d = f?.list || [], b = o === "default" ? d.filter((s) => s.type === "1") : d.filter((s) => s.type !== "1");
313
- return /* @__PURE__ */ g("div", { className: "external-contact-entity relative flex", children: [
314
- /* @__PURE__ */ e("aside", { className: "basis-[192px] p-1", children: /* @__PURE__ */ e("ul", { className: "flex flex-col", children: p.map((s) => /* @__PURE__ */ e(
80
+ }, w = () => {
81
+ const { containerHeight: a } = y(), { t: n } = g(), [o] = G([
82
+ { key: "default", label: n("externalContact.defaultGroup") },
83
+ { key: "custom", label: n("externalContact.customGroup") }
84
+ ]), [r, s] = G("default"), { data: h, loading: m } = k(() => O()), u = h?.list || [], c = r === "default" ? u.filter((l) => l.type === "1") : u.filter((l) => l.type !== "1");
85
+ return /* @__PURE__ */ d("div", { className: "external-contact-entity relative flex", children: [
86
+ /* @__PURE__ */ e("aside", { className: "basis-[192px] p-1", children: /* @__PURE__ */ e("ul", { className: "flex flex-col", children: o.map((l) => /* @__PURE__ */ e(
315
87
  "li",
316
88
  {
317
89
  onClick: () => {
318
- a(s.key);
90
+ s(l.key);
319
91
  },
320
- className: v("px-[10px] py-[7px] rounded cursor-pointer text-sm", {
321
- "bg-[#F0F6FF] text-[#0265ff]": o === s.key,
322
- "text-black hover:bg-[#f3f3f3]": o !== s.key
92
+ className: x("px-[10px] py-[7px] rounded cursor-pointer text-sm", {
93
+ "bg-[#F0F6FF] text-[#0265ff]": r === l.key,
94
+ "text-black hover:bg-[#f3f3f3]": r !== l.key
323
95
  }),
324
- children: s.label
96
+ children: l.label
325
97
  },
326
- s.key
98
+ l.key
327
99
  )) }) }),
328
- /* @__PURE__ */ e("div", { className: "flex-1 border-l border-[#E0E0E0]", children: /* @__PURE__ */ e(A, { spinning: i, tip: r("common.loading"), children: /* @__PURE__ */ g(S, { style: { height: t - 8, padding: "4px" }, children: [
329
- b.length > 0 && /* @__PURE__ */ e(F, { list: b, type: "group" }),
330
- b.length === 0 && !i && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e("span", { className: "text-[#999]", children: r("externalContact.noAvailableGroup") }) })
331
- ] }) }) })
100
+ /* @__PURE__ */ d("div", { className: "flex-1 border-l border-[#E0E0E0]", children: [
101
+ "312",
102
+ /* @__PURE__ */ e(E, { spinning: m, tip: n("common.loading"), children: /* @__PURE__ */ d(C, { style: { height: a - 8, padding: "4px" }, children: [
103
+ c.length > 0 && /* @__PURE__ */ e(_, { list: c, type: "group" }),
104
+ c.length === 0 && !m && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e("span", { className: "text-[#999]", children: n("externalContact.noAvailableGroup") }) })
105
+ ] }) })
106
+ ] })
332
107
  ] });
333
- }, oe = () => {
334
- const { t } = k();
335
- return G(() => [
108
+ }, Q = () => {
109
+ const { t: a } = g();
110
+ return j(() => [
336
111
  {
337
- label: t("department.organizationalStructure"),
338
- value: "organizational",
339
- view: /* @__PURE__ */ e(W, {})
112
+ label: a("department.organizationalStructure"),
113
+ key: "organizational",
114
+ view: /* @__PURE__ */ e(M, {})
340
115
  },
341
116
  {
342
- label: t("externalContact.group"),
343
- value: "externalContactGroup",
344
- view: /* @__PURE__ */ e(Y, {})
117
+ label: a("externalContact.group"),
118
+ key: "externalContactGroup",
119
+ view: /* @__PURE__ */ e(w, {})
345
120
  },
346
121
  {
347
- label: t("department.currentUserDepartment"),
348
- value: "currentDepartment",
349
- view: /* @__PURE__ */ e(X, {})
122
+ label: a("department.currentUserDepartment"),
123
+ key: "currentDepartment",
124
+ view: /* @__PURE__ */ e(A, {})
350
125
  }
351
- ], [t]);
126
+ ], [a]);
352
127
  };
353
128
  export {
354
- oe as useDepartmentTabItems
129
+ Q as useDepartmentTabItems
355
130
  };
@@ -0,0 +1,2 @@
1
+ export * from '../../../../components/DeptsMember/subcomponents/Entity/DeptsUser/index'
2
+ export {}
@@ -0,0 +1,38 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { O as a } from "../../../OrganizationPanel-DcwvZ6X4.js";
3
+ import { a as o, b as r, R as i, E as n } from "../../../ExtraConcactPanel-BI9emYpp.js";
4
+ import { u as l } from "../../../TabGroup-wNM86-Zq.js";
5
+ import { useMemo as m } from "react";
6
+ const E = () => {
7
+ const { t } = l();
8
+ return m(() => [
9
+ {
10
+ label: t("department.organizationalStructure"),
11
+ key: "organizational",
12
+ view: /* @__PURE__ */ e(a, {})
13
+ },
14
+ {
15
+ label: t("member.title"),
16
+ key: "member",
17
+ view: /* @__PURE__ */ e(o, {})
18
+ },
19
+ {
20
+ label: t("position.title"),
21
+ key: "position",
22
+ view: /* @__PURE__ */ e(r, {})
23
+ },
24
+ {
25
+ label: t("role.title"),
26
+ key: "role",
27
+ view: /* @__PURE__ */ e(i, {})
28
+ },
29
+ {
30
+ label: t("externalContact.title"),
31
+ key: "extraContact",
32
+ view: /* @__PURE__ */ e(n, {})
33
+ }
34
+ ], [t]);
35
+ };
36
+ export {
37
+ E as useDeptUserTabItems
38
+ };