china-mobile-international-custom-components 0.1.22 → 0.1.24

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 (68) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +2 -2
  2. package/es/AgentDetail.mjs +5 -5
  3. package/es/ApplicationTypeTag.mjs +3 -3
  4. package/es/AuthSection.mjs +2 -2
  5. package/es/AutoShowTooltip.mjs +1 -1
  6. package/es/AvailableRangePreview.mjs +1 -1
  7. package/es/AvailableRangeSetting.mjs +5 -5
  8. package/es/CodeView.mjs +1 -1
  9. package/es/CommonTagsList.mjs +62 -62
  10. package/es/CreateMcpForm.mjs +6 -6
  11. package/es/CustomSidebar.mjs +1 -1
  12. package/es/CustomTitle.mjs +1 -1
  13. package/es/CustomToggle.mjs +11 -11
  14. package/es/DialogContainer.mjs +5 -5
  15. package/es/DocSyncSelect.mjs +2 -2
  16. package/es/FileDisplay.mjs +1 -1
  17. package/es/FilePreview.mjs +9 -9
  18. package/es/FileUploader.mjs +2 -2
  19. package/es/ImageComponent.mjs +5 -0
  20. package/es/Logo.mjs +2 -2
  21. package/es/McpFormDialog.mjs +1 -1
  22. package/es/McpParamsSet.mjs +4 -4
  23. package/es/MdEditor.mjs +3 -3
  24. package/es/PageContainer.mjs +2 -2
  25. package/es/ParameterTable.mjs +2 -2
  26. package/es/PublishRecord.mjs +6 -6
  27. package/es/RadioGroup.mjs +5 -5
  28. package/es/SourcePublish.mjs +6 -6
  29. package/es/Table.mjs +2 -2
  30. package/es/WorkFlowDialog.mjs +3 -3
  31. package/es/WorkflowComponent.mjs +1 -1
  32. package/es/assets/ImageComponent.css +0 -0
  33. package/es/assets/layout2.css +1 -1
  34. package/es/chunks/AddAgentDialog.BEDSZ4er.js +244 -0
  35. package/es/chunks/AddDialog.RuOrCghd.js +1969 -0
  36. package/es/chunks/BackBar.Ck5CV5ZM.js +629 -0
  37. package/es/chunks/CreatePluginDialog.DbQIt3Mz.js +775 -0
  38. package/es/chunks/CreateWorkflow.CIYJ3nGZ.js +268 -0
  39. package/es/chunks/ImageComponent.BgYVT3ZJ.js +74 -0
  40. package/es/chunks/ToolList.2k07ztsY.js +106 -0
  41. package/es/chunks/config.B_uTnClF.js +47 -0
  42. package/es/chunks/config.e_OOovlY.js +358 -0
  43. package/es/chunks/i18n.9cHOVn6X.js +4049 -0
  44. package/es/chunks/index.BGLAHzZm.js +398 -0
  45. package/es/chunks/index.CCNAKdQj.js +1279 -0
  46. package/es/chunks/index.CXIY0q5X.js +172 -0
  47. package/es/chunks/index.Cv9pn5nk.js +4 -0
  48. package/es/chunks/index.CyiNa6lr.js +256 -0
  49. package/es/chunks/index.JG8-HCzk.js +29609 -0
  50. package/es/chunks/layout.BAvYghmE.js +650 -0
  51. package/es/chunks/layout.BGxsktpj.js +650 -0
  52. package/es/chunks/layout.CrO2n3Dk.js +648 -0
  53. package/es/chunks/layout.Iob_aYQ7.js +26 -0
  54. package/es/chunks/layout.mwJCmdfw.js +648 -0
  55. package/es/chunks/view.BSjGhafy.js +824 -0
  56. package/es/index.mjs +66 -66
  57. package/lib/CommonTagsList.js +1 -1
  58. package/lib/CustomSidebar.js +1 -1
  59. package/lib/ImageComponent.js +1 -0
  60. package/lib/assets/ImageComponent.css +0 -0
  61. package/lib/assets/layout2.css +1 -1
  62. package/lib/chunks/ImageComponent.CdPLM_LX.js +1 -0
  63. package/lib/chunks/index.Cbkv4rXa.js +1 -0
  64. package/lib/chunks/layout.BPaMqsSV.js +1 -0
  65. package/lib/chunks/layout.CcvMc8-K.js +1 -0
  66. package/lib/chunks/layout.zlS8S4UN.js +1 -0
  67. package/lib/index.js +1 -1
  68. package/package.json +4 -4
@@ -0,0 +1,256 @@
1
+ import { w as S } from "./index.bCzIhWFw.js";
2
+ import { computed as p, openBlock as m, createElementBlock as y, Fragment as N, createCommentVNode as h, createElementVNode as M, toDisplayString as E, normalizeClass as w, renderList as k, createBlock as D, unref as i, withCtx as R, ref as C, watch as P, onMounted as O, createVNode as L, createTextVNode as z, nextTick as U } from "vue";
3
+ import { ElPopover as F, ElButton as $ } from "element-plus";
4
+ import { D as g, M as c, r as G, R as Y } from "./config.B_uTnClF.js";
5
+ import { _ as q } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import { u as H } from "./i18n.9cHOVn6X.js";
7
+ import '../assets/index4.css';const W = {
8
+ key: 0,
9
+ class: "pd-l-16 text-dee0e3 pd-r-16"
10
+ }, X = { class: "fz-14 text-646a73 nowrap" }, j = { class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe pointer" }, J = { class: "tag-list-popover overflow-y-auto flex gap-4 flex-wrap" }, K = {
11
+ __name: "TagList",
12
+ props: {
13
+ // 显示的标签
14
+ label: {
15
+ type: String,
16
+ required: !0
17
+ },
18
+ // 数据项列表
19
+ items: {
20
+ type: Array,
21
+ default: () => []
22
+ },
23
+ // 是否为只读模式
24
+ readonly: {
25
+ type: Boolean,
26
+ default: !1
27
+ }
28
+ },
29
+ setup(e) {
30
+ const t = e, l = p(() => t.readonly ? t.items : t.items.slice(0, g.one)), d = p(() => t.items.length > g.one), T = p(() => t.items.length - g.one), u = p(() => t.items.slice(g.one));
31
+ return (n, s) => e.items.length > 0 ? (m(), y(N, { key: 0 }, [
32
+ e.readonly ? h("", !0) : (m(), y("span", W, "|")),
33
+ M("span", X, E(e.label), 1),
34
+ M("div", {
35
+ class: w(["tag-list", { "flex items-center gap-4": !e.readonly }])
36
+ }, [
37
+ (m(!0), y(N, null, k(l.value, (a) => (m(), y("div", {
38
+ key: a.memberId,
39
+ class: w(["tag-item fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe nowrap", { "mg-r-4 mg-b-4": e.readonly }])
40
+ }, E(a.memberName), 3))), 128)),
41
+ !e.readonly && d.value ? (m(), D(i(F), {
42
+ key: 0,
43
+ placement: "top",
44
+ trigger: "click",
45
+ width: "300",
46
+ "popper-class": "tag-list-popover-wrapper"
47
+ }, {
48
+ reference: R(() => [
49
+ M("span", j, " +" + E(T.value), 1)
50
+ ]),
51
+ default: R(() => [
52
+ M("div", J, [
53
+ (m(!0), y(N, null, k(u.value, (a) => (m(), y("span", {
54
+ key: a.memberId,
55
+ class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe"
56
+ }, E(a.memberName), 1))), 128))
57
+ ])
58
+ ]),
59
+ _: 1
60
+ })) : h("", !0)
61
+ ], 2)
62
+ ], 64)) : h("", !0);
63
+ }
64
+ }, x = /* @__PURE__ */ q(K, [["__scopeId", "data-v-a2c44011"]]), _ = (e, t) => e?.filter(t) || [], I = (e, t) => _(e, (l) => l.memberType === t), A = (e, t) => {
65
+ if (e.children)
66
+ for (const l of e.children)
67
+ l.memberType === c.MEMBER ? t(l) : l.memberType === c.DEPARTMENT && A(l, t);
68
+ }, B = (e) => {
69
+ const t = [];
70
+ return A(e, (l) => t.push(l.memberId)), t;
71
+ };
72
+ function Q(e, t, l = !1) {
73
+ const d = p(() => {
74
+ if (!e.value) return [];
75
+ const n = [...e.value], s = I(
76
+ n,
77
+ c.DEPARTMENT
78
+ );
79
+ if (s.length > 0 && t.value && t.value.length > 0) {
80
+ const a = /* @__PURE__ */ new Set();
81
+ s.forEach((o) => {
82
+ const f = (b) => {
83
+ for (const v of b) {
84
+ if (v.memberType === c.DEPARTMENT && v.memberId === o.memberId)
85
+ return A(
86
+ v,
87
+ (V) => a.add(V)
88
+ ), !0;
89
+ if (v.children && f(v.children))
90
+ return !0;
91
+ }
92
+ return !1;
93
+ };
94
+ f(t.value);
95
+ });
96
+ const r = new Set(
97
+ I(n, c.MEMBER).map(
98
+ (o) => o.memberId
99
+ )
100
+ );
101
+ a.forEach((o) => {
102
+ r.has(o.memberId) || n.push(o);
103
+ });
104
+ }
105
+ return n;
106
+ }), T = p(() => {
107
+ if (l)
108
+ return I(
109
+ d.value,
110
+ c.MEMBER
111
+ );
112
+ {
113
+ const n = /* @__PURE__ */ new Set();
114
+ return u.value.forEach((s) => {
115
+ B(s).forEach((r) => n.add(r));
116
+ }), _(
117
+ d.value,
118
+ (s) => s.memberType === c.MEMBER && !n.has(s.memberId)
119
+ );
120
+ }
121
+ }), u = p(() => {
122
+ if (l)
123
+ return I(
124
+ d.value,
125
+ c.DEPARTMENT
126
+ );
127
+ {
128
+ const n = [], s = (r) => {
129
+ if (!r.children || r.children.length === 0) return !1;
130
+ const o = B(r);
131
+ return o.length === 0 ? !1 : o.every(
132
+ (f) => d.value.some(
133
+ (b) => b.memberType === c.MEMBER && b.memberId === f
134
+ )
135
+ );
136
+ }, a = (r, o = !1) => {
137
+ if (r.memberType === c.DEPARTMENT) {
138
+ const f = s(r);
139
+ if (f && !o) {
140
+ if (n.push({
141
+ memberId: r.memberId,
142
+ memberName: r.memberName,
143
+ memberType: c.DEPARTMENT,
144
+ bnid: r.bnid,
145
+ children: r.children
146
+ }), r.children)
147
+ for (const b of r.children)
148
+ a(b, !0);
149
+ } else if (!f && r.children)
150
+ for (const b of r.children)
151
+ a(b, !1);
152
+ }
153
+ };
154
+ for (const r of t.value)
155
+ a(r, !1);
156
+ return n;
157
+ }
158
+ });
159
+ return {
160
+ selectedMembers: T,
161
+ selectedDepartments: u
162
+ };
163
+ }
164
+ const Z = { class: "text-1f2329" }, ee = { class: "fz-14 text-1f2329" }, te = {
165
+ __name: "layout",
166
+ props: {
167
+ // 当前选择的范围类型(是否全部可见)
168
+ allVisible: {
169
+ type: Boolean
170
+ },
171
+ // 选中的项目列表(完整对象数组,由父组件根据ID从树中查找得到)
172
+ modelValue: {
173
+ type: Array,
174
+ default: () => []
175
+ },
176
+ // 完整的树形数据(用于判断部门成员是否全部选中)
177
+ treeList: {
178
+ type: Array,
179
+ default: () => []
180
+ },
181
+ // 是否为只读模式
182
+ readonly: {
183
+ type: Boolean,
184
+ default: !1
185
+ }
186
+ },
187
+ setup(e, { expose: t }) {
188
+ const { t: l } = H(), d = C(null), T = () => {
189
+ d.value && U(() => {
190
+ d.value.scrollIntoView({
191
+ behavior: "smooth",
192
+ block: "center"
193
+ });
194
+ });
195
+ }, u = e, { selectedMembers: n, selectedDepartments: s } = Q(
196
+ p(() => u.modelValue),
197
+ p(() => u.treeList),
198
+ u.readonly
199
+ ), a = p(() => [...n.value, ...s.value]);
200
+ return P(
201
+ () => [u.allVisible, u.modelValue],
202
+ () => {
203
+ T();
204
+ },
205
+ { immediate: !1, deep: !0 }
206
+ ), O(() => {
207
+ T();
208
+ }), t({
209
+ allSelectedItems: a
210
+ }), (r, o) => (m(), y("div", {
211
+ ref_key: "previewRef",
212
+ ref: d,
213
+ class: w(["available-range-preview w-full overflow-hidden", {
214
+ "flex items-center": !e.readonly
215
+ }])
216
+ }, [
217
+ e.readonly ? h("", !0) : (m(), y(N, { key: 0 }, [
218
+ M("div", Z, E(i(l)("COMMON_DICT.ENUMS.AVAILABLE_RANGE")) + ": ", 1),
219
+ M("span", ee, E(i(G).find((f) => f.value === e.allVisible)?.label), 1),
220
+ L(i($), {
221
+ class: "mg-l-16",
222
+ type: "primary",
223
+ link: "",
224
+ onClick: o[0] || (o[0] = (f) => r.$emit("edit"))
225
+ }, {
226
+ default: R(() => [
227
+ z(E(i(l)("COMMON_BUTTON.EDIT_TEXT")), 1)
228
+ ]),
229
+ _: 1
230
+ })
231
+ ], 64)),
232
+ e.allVisible === i(Y).PARTIAL ? (m(), y("div", {
233
+ key: 1,
234
+ class: w(["flex-1 overflow-hidden", { "flex items-center": !e.readonly }])
235
+ }, [
236
+ i(n)?.length ? (m(), D(x, {
237
+ key: 0,
238
+ label: i(l)("COMMON_DICT.ENUMS.MEMBER") + ":",
239
+ items: i(n),
240
+ readonly: e.readonly
241
+ }, null, 8, ["label", "items", "readonly"])) : h("", !0),
242
+ i(s)?.length ? (m(), D(x, {
243
+ key: 1,
244
+ label: i(l)("COMMON_DICT.ENUMS.DEPARTMENT") + ":",
245
+ items: i(s),
246
+ readonly: e.readonly
247
+ }, null, 8, ["label", "items", "readonly"])) : h("", !0)
248
+ ], 2)) : h("", !0)
249
+ ], 2));
250
+ }
251
+ }, ie = S(te), me = S(x);
252
+ export {
253
+ ie as A,
254
+ me as T,
255
+ Q as u
256
+ };