china-mobile-international-custom-components 0.0.28 → 0.0.30

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/ApplicationIcon.mjs +30 -28
  2. package/es/PageContainer.mjs +178 -149
  3. package/es/assets/PageContainer.css +1 -1
  4. package/es/index.mjs +2 -2
  5. package/lib/ApplicationIcon.js +1 -1
  6. package/lib/PageContainer.js +1 -1
  7. package/lib/assets/PageContainer.css +1 -1
  8. package/lib/index.js +2 -2
  9. package/package.json +4 -4
  10. package/es/assets/AvailableRangePreview.css +0 -1
  11. package/es/assets/AvailableRangeSetting.css +0 -1
  12. package/es/assets/CustomSidebar.css +0 -1
  13. package/es/chunks/AvailableRangePreview.D4mZe1lQ.js +0 -217
  14. package/es/chunks/AvailableRangeSetting.BkSLnQ6N.js +0 -215
  15. package/es/chunks/CustomSidebar.BWGoPtLi.js +0 -506
  16. package/es/chunks/CustomTitle.BLZ7evms.js +0 -5
  17. package/es/chunks/CustomToggle.CP3M2_f3.js +0 -165
  18. package/es/chunks/PageContainer.D-G32lvP.js +0 -329
  19. package/es/chunks/_plugin-vue_export-helper.CVVE_0_F.js +0 -13
  20. package/es/chunks/_plugin-vue_export-helper.Cf-_TWPK.js +0 -6
  21. package/es/chunks/index.39AUVSwV.js +0 -288
  22. package/es/chunks/index.AHEDCg43.js +0 -160
  23. package/es/chunks/index.B67AnSJI.js +0 -154
  24. package/es/chunks/index.B9F4VYQK.js +0 -118
  25. package/es/chunks/index.BPxF6Amx.js +0 -157
  26. package/es/chunks/index.C2gKjqoA.js +0 -209
  27. package/es/chunks/index.DTtNnKDH.js +0 -288
  28. package/es/chunks/index.DtBeJlu6.js +0 -142
  29. package/es/chunks/index.kR57MtNP.js +0 -211
  30. package/es/chunks/index.wQj5YKPy.js +0 -288
  31. package/es/chunks/layout.BE8_kCeR.js +0 -619
  32. package/es/chunks/layout.BNqqXOrs.js +0 -639
  33. package/es/chunks/layout.C6AMos7n.js +0 -17
  34. package/es/chunks/layout.CWFXohJu.js +0 -622
  35. package/es/chunks/layout.ClkgLsEw.js +0 -640
  36. package/es/chunks/layout.R5FQNRjS.js +0 -619
  37. package/es/chunks/layout.nKB_kc-U.js +0 -26
  38. package/es/chunks/utils.BhlZXNZ6.js +0 -19
  39. package/lib/assets/AvailableRangePreview.css +0 -1
  40. package/lib/assets/AvailableRangeSetting.css +0 -1
  41. package/lib/assets/CustomSidebar.css +0 -1
  42. package/lib/chunks/AvailableRangePreview.CkgZsXP0.js +0 -1
  43. package/lib/chunks/AvailableRangeSetting.CF-jHm4x.js +0 -1
  44. package/lib/chunks/CustomSidebar.CMYJFb2P.js +0 -1
  45. package/lib/chunks/CustomTitle.BkFZ-ZIq.js +0 -1
  46. package/lib/chunks/CustomToggle.C0PpzKPP.js +0 -1
  47. package/lib/chunks/PageContainer.GH56wASV.js +0 -1
  48. package/lib/chunks/_plugin-vue_export-helper.C55-DZV2.js +0 -1
  49. package/lib/chunks/_plugin-vue_export-helper.DAGvX2Jf.js +0 -1
  50. package/lib/chunks/index.BfHfKST0.js +0 -1
  51. package/lib/chunks/index.BlXappa4.js +0 -1
  52. package/lib/chunks/index.CCxHaoi4.js +0 -1
  53. package/lib/chunks/index.CSYGhK9M.js +0 -1
  54. package/lib/chunks/index.C_IlZrzE.js +0 -1
  55. package/lib/chunks/index.DUGtabLJ.js +0 -1
  56. package/lib/chunks/index.Dakz8S3g.js +0 -1
  57. package/lib/chunks/index.DsmgWFv8.js +0 -1
  58. package/lib/chunks/index.DydPD8Lc.js +0 -1
  59. package/lib/chunks/index.k_hSuA6i.js +0 -1
  60. package/lib/chunks/layout.BEW4Cgni.js +0 -1
  61. package/lib/chunks/layout.BJjU9nKW.js +0 -1
  62. package/lib/chunks/layout.BQigNrr5.js +0 -1
  63. package/lib/chunks/layout.ClFtiz-t.js +0 -1
  64. package/lib/chunks/layout.CmDwUHZo.js +0 -1
  65. package/lib/chunks/layout.CqbDoD_v.js +0 -1
  66. package/lib/chunks/layout.CwJgDGuR.js +0 -1
  67. package/lib/chunks/layout.D0zeFdw9.js +0 -1
  68. package/lib/chunks/utils.BT5Uuz2Q.js +0 -1
@@ -1,619 +0,0 @@
1
- import { createElementBlock as h, openBlock as c, createCommentVNode as x, createElementVNode as g, createBlock as b, createVNode as m, unref as y, withCtx as v, resolveDynamicComponent as S, normalizeStyle as C, toDisplayString as N, ref as E, watch as D, nextTick as $, normalizeClass as P, withModifiers as F, Fragment as L, renderList as U, Transition as B, withDirectives as K, vShow as H } from "vue";
2
- import { ElIcon as k, ElAutoResizer as V, ElTreeV2 as G } from "element-plus";
3
- import { _ as I } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
- import { IconRenderer as Y, iconLibraryMap as W } from "color-star-custom-components";
5
- import '../assets/layout2.css';const q = { class: "nav-title overflow-hidden" }, J = {
6
- key: 0,
7
- class: "title-logo"
8
- }, Q = /* @__PURE__ */ Object.assign({
9
- name: "NavTitle"
10
- }, {
11
- __name: "NavTitle",
12
- props: {
13
- // 标题文本
14
- title: {
15
- type: String,
16
- default: ""
17
- },
18
- // Logo 图标组件
19
- logo: {
20
- type: [Object, String],
21
- default: null
22
- },
23
- // Logo 尺寸
24
- logoSize: {
25
- type: Number,
26
- default: 30
27
- },
28
- // 标题样式
29
- titleStyle: {
30
- type: Object,
31
- default: () => ({ fontSize: "16px" })
32
- },
33
- // 是否显示折叠按钮
34
- showToggle: {
35
- type: Boolean,
36
- default: !0
37
- },
38
- // 折叠按钮图标
39
- toggleIcon: {
40
- type: [Object, String],
41
- default: null
42
- }
43
- },
44
- emits: ["toggle"],
45
- setup(e, { emit: n }) {
46
- const t = n, l = () => {
47
- t("toggle");
48
- };
49
- return (o, f) => (c(), h("div", q, [
50
- e.logo ? (c(), h("div", J, [
51
- m(y(k), { size: e.logoSize }, {
52
- default: v(() => [
53
- (c(), b(S(e.logo)))
54
- ]),
55
- _: 1
56
- }, 8, ["size"])
57
- ])) : x("", !0),
58
- g("span", {
59
- class: "weight-500 text-1f2329 title-text",
60
- style: C(e.titleStyle)
61
- }, N(e.title), 5),
62
- e.showToggle ? (c(), b(y(k), {
63
- key: 1,
64
- size: 20,
65
- class: "collapse-unfold-icon",
66
- onClick: l
67
- }, {
68
- default: v(() => [
69
- (c(), b(S(e.toggleIcon)))
70
- ]),
71
- _: 1
72
- })) : x("", !0)
73
- ]));
74
- }
75
- }), X = /* @__PURE__ */ I(Q, [["__scopeId", "data-v-56e35473"]]), z = {
76
- DIR: "DIR",
77
- // 目录
78
- MENU: "MENU",
79
- // 菜单
80
- BUTTON: "BUTTON"
81
- // 按钮
82
- }, Z = /* @__PURE__ */ new Map([
83
- ["active", "#3271FE"],
84
- ["parent_active", "#3271FE"],
85
- ["normal", "#666666"]
86
- ]), _ = (e, n) => !Array.isArray(e) || !n ? !1 : e.some((t) => t.path === n ? !0 : t.children?.length > 0 ? _(t.children, n) : !1), ee = (e, n = 1) => e.filter((l) => [z.DIR, z.MENU].includes(l.type)).map((l) => ({
87
- ...l,
88
- id: l.bnid,
89
- name: l.name,
90
- path: l?.path || "",
91
- children: l.children?.length > 0 ? ee(l.children || [], n + 1) : [],
92
- level: n
93
- })), te = (e, n) => e?.children?.length ? e.children.some(
94
- (t) => t?.path === n || t.children?.length && te(t, n)
95
- ) : !1, O = (e, n) => e?.children?.length ? e.children.some(
96
- (t) => t?.id === n || t.children?.length && O(t, n)
97
- ) : !1, ne = (e, n) => {
98
- const t = e?.id === n, l = O(e, n);
99
- let o = "normal";
100
- return t ? o = "active" : l && (o = "parent_active"), Z.get(o);
101
- }, Oe = (e, n) => e.includes(n) ? e : [...e, n], Te = (e, n) => e.filter((t) => t !== n), le = (e, n, t = []) => e.some((l) => {
102
- if (l?.path === n)
103
- return !0;
104
- if (l.children?.length > 0) {
105
- t.push(l.id);
106
- const o = le(l.children, n, t);
107
- return o || t.pop(), o;
108
- }
109
- return !1;
110
- }), j = (e, n, t = []) => e.some((l) => {
111
- if (l?.id === n)
112
- return !0;
113
- if (l.children?.length > 0) {
114
- t.push(l.id);
115
- const o = j(l.children, n, t);
116
- return o || t.pop(), o;
117
- }
118
- return !1;
119
- }), ze = (e, n) => {
120
- const t = [];
121
- return j(e, n, t), t;
122
- }, oe = (e, n) => {
123
- if (!Array.isArray(e) || !n) return null;
124
- for (const t of e) {
125
- if (t.path === n)
126
- return t;
127
- if (t.children?.length > 0) {
128
- const l = oe(t.children, n);
129
- if (l) return l;
130
- }
131
- }
132
- return null;
133
- }, ie = (e) => Array.isArray(e) ? e.map((n) => {
134
- const t = { ...n };
135
- return t.children && Array.isArray(t.children) && t.children.length > 0 ? t.children = ie(t.children) : t.isLeaf = !0, t;
136
- }) : [], re = (e) => {
137
- if (!Array.isArray(e) || e.length === 0) return null;
138
- for (const n of e) {
139
- if (n.isLeaf && n.path)
140
- return n;
141
- if (n.children?.length > 0) {
142
- const t = re(n.children);
143
- if (t) return t;
144
- }
145
- }
146
- return null;
147
- }, Me = ["/404", "/login", "/unauthorized"], w = {
148
- label: "name",
149
- children: "children",
150
- isLeaf: "isLeaf"
151
- }, M = {
152
- PARENT: "parent",
153
- LEAF: "leaf"
154
- }, Ce = {
155
- IDLE: "idle",
156
- LOADING: "loading",
157
- LOADED: "loaded",
158
- ERROR: "error"
159
- }, ce = { class: "node-label" }, se = ["onClick"], ae = /* @__PURE__ */ Object.assign({
160
- name: "MenuList"
161
- }, {
162
- __name: "MenuList",
163
- props: {
164
- // 菜单数据(已处理好的树形结构)
165
- menuData: {
166
- type: Array,
167
- default: () => []
168
- },
169
- // 当前选中的菜单ID
170
- currentMenuId: {
171
- type: String,
172
- default: null
173
- },
174
- // 展开的节点ID数组
175
- expandedKeys: {
176
- type: Array,
177
- default: () => []
178
- },
179
- // 树形组件配置
180
- treeProps: {
181
- type: Object,
182
- default: () => w
183
- },
184
- // 菜单项高度
185
- itemHeight: {
186
- type: Number,
187
- default: 36
188
- },
189
- // 缩进距离
190
- indent: {
191
- type: Number,
192
- default: 24
193
- },
194
- // 图标大小
195
- iconSize: {
196
- type: Number,
197
- default: 16
198
- },
199
- // 展开图标组件
200
- expandedIcon: {
201
- type: [Object, String],
202
- default: null
203
- },
204
- // 收起图标组件
205
- collapsedIcon: {
206
- type: [Object, String],
207
- default: null
208
- }
209
- // 图标渲染器组件(可选)
210
- // iconRenderer: {
211
- // type: [Object, String],
212
- // default: null,
213
- // },
214
- // // 图标库配置
215
- // iconLibrary: {
216
- // type: [String, Object],
217
- // default: null,
218
- // },
219
- },
220
- emits: ["node-click", "node-expand", "node-collapse"],
221
- setup(e, { emit: n }) {
222
- const t = e, l = n, o = E(null), f = (i) => i?.icon && i.level === 1 || !i.isLeaf, a = (i) => ne(i, t.currentMenuId), p = (i) => {
223
- const A = i.isLeaf ? M.LEAF : M.PARENT;
224
- l("node-click", i, A);
225
- }, s = (i) => {
226
- l("node-expand", i.id, i);
227
- }, r = (i) => {
228
- l("node-collapse", i.id, i);
229
- }, u = (i) => {
230
- if (!o.value) return;
231
- t.expandedKeys.includes(i.data.id) ? o.value.collapseNode(i) : o.value.expandNode(i);
232
- };
233
- return D(
234
- () => t.expandedKeys,
235
- (i) => {
236
- $(() => {
237
- o.value && o.value.setExpandedKeys([...i]);
238
- });
239
- },
240
- { deep: !0 }
241
- ), (i, A) => (c(), b(y(V), { class: "flex-1 overflow-hidden" }, {
242
- default: v(({ height: R }) => [
243
- m(y(G), {
244
- ref_key: "treeRef",
245
- ref: o,
246
- "node-key": "id",
247
- data: e.menuData,
248
- props: e.treeProps,
249
- height: R,
250
- "current-node-key": e.currentMenuId,
251
- "highlight-current": !0,
252
- "expanded-keys": e.expandedKeys,
253
- "show-checkbox": !1,
254
- "item-size": e.itemHeight,
255
- "expand-on-click-node": !1,
256
- indent: e.indent,
257
- onNodeClick: p,
258
- onNodeExpand: s,
259
- onNodeCollapse: r,
260
- class: "custom-tree"
261
- }, {
262
- default: v(({ node: T, data: d }) => [
263
- g("div", {
264
- class: P(["tree-node-content-custom", {
265
- "has-children": !d.isLeaf,
266
- "is-current": d.id === e.currentMenuId && d.isLeaf,
267
- "is-parent-active": y(O)(d, e.currentMenuId) && !d.isLeaf
268
- }])
269
- }, [
270
- f(d) ? (c(), b(y(k), {
271
- key: 0,
272
- size: e.iconSize,
273
- class: "node-icon",
274
- color: a(d)
275
- }, {
276
- default: v(() => [
277
- m(y(Y), {
278
- "icon-name": d?.icon,
279
- "icon-library": y(W).aibox
280
- }, null, 8, ["icon-name", "icon-library"])
281
- ]),
282
- _: 2
283
- }, 1032, ["size", "color"])) : x("", !0),
284
- g("span", ce, N(T.label), 1),
285
- d.isLeaf ? x("", !0) : (c(), h("div", {
286
- key: 1,
287
- class: "expand-arrow",
288
- onClick: F((Ie) => u(T), ["stop"])
289
- }, [
290
- m(y(k), {
291
- size: e.iconSize,
292
- color: a(d)
293
- }, {
294
- default: v(() => [
295
- (c(), b(S(
296
- e.expandedKeys.includes(d.id) ? e.expandedIcon : e.collapsedIcon
297
- )))
298
- ]),
299
- _: 2
300
- }, 1032, ["size", "color"])
301
- ], 8, se))
302
- ], 2)
303
- ]),
304
- _: 1
305
- }, 8, ["data", "props", "height", "current-node-key", "expanded-keys", "item-size", "indent"])
306
- ]),
307
- _: 1
308
- }));
309
- }
310
- }), ue = /* @__PURE__ */ I(ae, [["__scopeId", "data-v-0a105c70"]]), de = { class: "user-popup-content" }, fe = ["onClick"], pe = /* @__PURE__ */ Object.assign({
311
- name: "UserPopup"
312
- }, {
313
- __name: "UserPopup",
314
- props: {
315
- // 操作列表配置
316
- actions: {
317
- type: Array,
318
- default: () => [],
319
- validator: (e) => e.every(
320
- (n) => n.key && (n.icon || n.iconName)
321
- )
322
- }
323
- },
324
- emits: ["action-click"],
325
- setup(e, { emit: n }) {
326
- const t = n, l = (o) => {
327
- t("action-click", o.key, o);
328
- };
329
- return (o, f) => (c(), h("div", de, [
330
- (c(!0), h(L, null, U(e.actions, (a, p) => (c(), h(L, { key: p }, [
331
- a.hidden ? x("", !0) : (c(), h("div", {
332
- key: 0,
333
- class: "list__item",
334
- onClick: (s) => l(a)
335
- }, [
336
- m(y(k), {
337
- class: "list__item-icon",
338
- size: a.iconSize || 20,
339
- color: "#262626"
340
- }, {
341
- default: v(() => [
342
- (c(), b(S(a.icon)))
343
- ]),
344
- _: 2
345
- }, 1032, ["size"]),
346
- g("span", null, N(a.label), 1)
347
- ], 8, fe))
348
- ], 64))), 128))
349
- ]));
350
- }
351
- }), ye = /* @__PURE__ */ I(pe, [["__scopeId", "data-v-70783670"]]), ge = { class: "navbar-box__footer__left" }, he = { class: "name-first" }, me = { class: "name-text" }, ve = { class: "user-id" }, be = /* @__PURE__ */ Object.assign({
352
- name: "NavFooter"
353
- }, {
354
- __name: "NavFooter",
355
- props: {
356
- // 用户信息
357
- userInfo: {
358
- type: Object,
359
- default: null,
360
- validator: (e) => e ? e.name !== void 0 : !0
361
- },
362
- // 用户操作列表
363
- actions: {
364
- type: Array,
365
- default: () => []
366
- },
367
- // 弹窗显示延迟(毫秒)
368
- popupDelay: {
369
- type: Number,
370
- default: 200
371
- },
372
- // 弹窗左侧位置(像素)
373
- popupLeft: {
374
- type: Number,
375
- default: 240
376
- }
377
- },
378
- emits: ["action-click"],
379
- setup(e, { emit: n }) {
380
- const t = e, l = n, o = E(null), f = E(!1), a = (r) => r && r[0] ? r[0] : "", p = (r) => {
381
- r || (o.value = setTimeout(() => {
382
- f.value = !1;
383
- }, t.popupDelay)), r && (f.value = r, clearTimeout(o.value));
384
- }, s = (r, u) => {
385
- f.value = !1, l("action-click", r, u);
386
- };
387
- return (r, u) => (c(), h(L, null, [
388
- e.userInfo ? (c(), h("div", {
389
- key: 0,
390
- class: "navbar-box__footer",
391
- onMouseenter: u[0] || (u[0] = (i) => p(!0)),
392
- onMouseleave: u[1] || (u[1] = (i) => p(!1))
393
- }, [
394
- g("div", ge, [
395
- g("div", he, N(a(e.userInfo?.name)), 1),
396
- g("div", null, [
397
- g("div", me, N(e.userInfo?.name), 1),
398
- g("div", ve, N(e.userInfo?.bnid || e.userInfo?.id || ""), 1)
399
- ])
400
- ])
401
- ], 32)) : x("", !0),
402
- m(B, { name: "fade" }, {
403
- default: v(() => [
404
- K(g("div", {
405
- class: "footer-popup content-bg",
406
- style: C({ left: e.popupLeft + "px" }),
407
- onMouseenter: u[2] || (u[2] = (i) => p(!0)),
408
- onMouseleave: u[3] || (u[3] = (i) => p(!1))
409
- }, [
410
- m(ye, {
411
- actions: e.actions,
412
- onActionClick: s
413
- }, null, 8, ["actions"])
414
- ], 36), [
415
- [H, f.value]
416
- ])
417
- ]),
418
- _: 1
419
- })
420
- ], 64));
421
- }
422
- }), xe = /* @__PURE__ */ I(be, [["__scopeId", "data-v-d1e53517"]]), Ne = { class: "sidebar h-full pd-l-12 pd-r-12 flex flex-col overflow-hidden" }, ke = /* @__PURE__ */ Object.assign({
423
- name: "CustomSidebar"
424
- }, {
425
- __name: "layout",
426
- props: {
427
- // ========== 菜单数据 ==========
428
- // 菜单树数据(已处理好的树形结构)
429
- menuData: {
430
- type: Array,
431
- default: () => []
432
- },
433
- // 当前选中的菜单ID
434
- currentMenuId: {
435
- type: String,
436
- default: null
437
- },
438
- // 展开的节点ID数组
439
- expandedKeys: {
440
- type: Array,
441
- default: () => []
442
- },
443
- // ========== 头部配置 ==========
444
- // 标题文本
445
- title: {
446
- type: String,
447
- default: ""
448
- },
449
- // Logo 图标组件
450
- logo: {
451
- type: [Object, String],
452
- default: null
453
- },
454
- // Logo 尺寸
455
- logoSize: {
456
- type: Number,
457
- default: 30
458
- },
459
- // 是否显示折叠按钮
460
- showToggle: {
461
- type: Boolean,
462
- default: !0
463
- },
464
- // 折叠按钮图标
465
- toggleIcon: {
466
- type: [Object, String],
467
- default: null
468
- },
469
- // ========== 菜单配置 ==========
470
- // 树形组件配置
471
- treeProps: {
472
- type: Object,
473
- default: () => w
474
- },
475
- // 菜单项高度
476
- itemHeight: {
477
- type: Number,
478
- default: 36
479
- },
480
- // 缩进距离
481
- indent: {
482
- type: Number,
483
- default: 24
484
- },
485
- // 图标大小
486
- iconSize: {
487
- type: Number,
488
- default: 16
489
- },
490
- // 标题样式
491
- titleStyle: {
492
- type: Object,
493
- default: () => ({ fontSize: "16px" })
494
- },
495
- // 展开图标组件
496
- expandedIcon: {
497
- type: [Object, String],
498
- default: null
499
- },
500
- // 收起图标组件
501
- collapsedIcon: {
502
- type: [Object, String],
503
- default: null
504
- },
505
- // 图标渲染器组件
506
- iconRenderer: {
507
- type: [Object, String],
508
- default: null
509
- },
510
- // 图标库配置
511
- iconLibrary: {
512
- type: [String, Object],
513
- default: null
514
- },
515
- // ========== 底部配置 ==========
516
- // 是否显示底部
517
- showFooter: {
518
- type: Boolean,
519
- default: !0
520
- },
521
- // 用户信息
522
- userInfo: {
523
- type: Object,
524
- default: null
525
- },
526
- // 用户操作列表
527
- userActions: {
528
- type: Array,
529
- default: () => []
530
- },
531
- // 弹窗显示延迟
532
- popupDelay: {
533
- type: Number,
534
- default: 200
535
- },
536
- // 弹窗左侧位置(像素)
537
- popupLeft: {
538
- type: Number,
539
- default: 240
540
- }
541
- },
542
- emits: [
543
- "toggle",
544
- "node-click",
545
- "node-expand",
546
- "node-collapse",
547
- "user-action-click"
548
- ],
549
- setup(e, { emit: n }) {
550
- const t = n, l = () => {
551
- t("toggle");
552
- }, o = (s, r) => {
553
- t("node-click", s, r);
554
- }, f = (s, r) => {
555
- t("node-expand", s, r);
556
- }, a = (s, r) => {
557
- t("node-collapse", s, r);
558
- }, p = (s, r) => {
559
- t("user-action-click", s, r);
560
- };
561
- return (s, r) => (c(), h("div", Ne, [
562
- m(X, {
563
- "title-style": e.titleStyle,
564
- title: e.title,
565
- logo: e.logo,
566
- "logo-size": e.logoSize,
567
- "show-toggle": e.showToggle,
568
- "toggle-icon": e.toggleIcon,
569
- onToggle: l
570
- }, null, 8, ["title-style", "title", "logo", "logo-size", "show-toggle", "toggle-icon"]),
571
- m(ue, {
572
- "menu-data": e.menuData,
573
- "current-menu-id": e.currentMenuId,
574
- "expanded-keys": e.expandedKeys,
575
- "tree-props": e.treeProps,
576
- "item-height": e.itemHeight,
577
- indent: e.indent,
578
- "icon-size": e.iconSize,
579
- "expanded-icon": e.expandedIcon,
580
- "collapsed-icon": e.collapsedIcon,
581
- "icon-renderer": e.iconRenderer,
582
- "icon-library": e.iconLibrary,
583
- onNodeClick: o,
584
- onNodeExpand: f,
585
- onNodeCollapse: a
586
- }, null, 8, ["menu-data", "current-menu-id", "expanded-keys", "tree-props", "item-height", "indent", "icon-size", "expanded-icon", "collapsed-icon", "icon-renderer", "icon-library"]),
587
- e.showFooter ? (c(), b(xe, {
588
- key: 0,
589
- "popup-left": e.popupLeft,
590
- "user-info": e.userInfo,
591
- actions: e.userActions,
592
- "popup-delay": e.popupDelay,
593
- onActionClick: p
594
- }, null, 8, ["popup-left", "user-info", "actions", "popup-delay"])) : x("", !0)
595
- ]));
596
- }
597
- }), je = /* @__PURE__ */ I(ke, [["__scopeId", "data-v-736b2e19"]]);
598
- export {
599
- z as M,
600
- M as N,
601
- Me as S,
602
- w as T,
603
- Z as a,
604
- te as b,
605
- O as c,
606
- Te as d,
607
- Oe as e,
608
- le as f,
609
- ne as g,
610
- j as h,
611
- _ as i,
612
- ze as j,
613
- oe as k,
614
- je as l,
615
- re as m,
616
- Ce as n,
617
- ie as p,
618
- ee as t
619
- };
@@ -1,26 +0,0 @@
1
- import { createElementBlock as o, openBlock as i, createElementVNode as t, toDisplayString as n, renderSlot as d } from "vue";
2
- import { _ as r } from "./_plugin-vue_export-helper.CVVE_0_F.js";
3
- import '../assets/layout.css';const c = { class: "custom-title flex items-center w-full overflow-hidden w-full pd-b-12" }, a = { class: "title-text fz-14 weight-500 pd-l-8 text-1f2329" }, f = { class: "title-actions flex-1 overflow-hidden flex items-center justify-end" }, u = /* @__PURE__ */ Object.assign({
4
- name: "CustomTitle"
5
- }, {
6
- __name: "layout",
7
- props: {
8
- // 标题文本
9
- title: {
10
- type: String,
11
- default: ""
12
- }
13
- },
14
- setup(s) {
15
- return (l, e) => (i(), o("div", c, [
16
- e[0] || (e[0] = t("div", { class: "title-icon bg-3271fe radius-2" }, null, -1)),
17
- t("div", a, n(s.title), 1),
18
- t("div", f, [
19
- d(l.$slots, "default", {}, void 0, !0)
20
- ])
21
- ]));
22
- }
23
- }), p = /* @__PURE__ */ r(u, [["__scopeId", "data-v-8cf278a1"]]);
24
- export {
25
- p as C
26
- };
@@ -1,19 +0,0 @@
1
- Object.create;
2
- var __defProp = Object.defineProperty;
3
- Object.getOwnPropertyDescriptor, Object.getOwnPropertyNames, Object.getPrototypeOf, Object.prototype.hasOwnProperty;
4
- var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __exportAll = (t, n) => {
5
- let r = {};
6
- for (var i in t) __defProp(r, i, {
7
- get: t[i],
8
- enumerable: !0
9
- });
10
- return n && __defProp(r, Symbol.toStringTag, { value: "Module" }), r;
11
- }, require___vite_browser_external = /* @__PURE__ */ __commonJSMin(((e, t) => {
12
- t.exports = {};
13
- }));
14
- require___vite_browser_external(), require___vite_browser_external();
15
- const withInstall = (e) => (e.install = (t) => {
16
- let n = e.name || e.__name;
17
- t.component(n, e);
18
- }, e);
19
- export { __exportAll as n, withInstall as t };
@@ -1 +0,0 @@
1
- .nowrap[data-v-bf564085]{white-space:nowrap}.tag-list .tag-item[data-v-bf564085]{line-height:22px;display:inline-block}.gap-4[data-v-bf564085]{gap:4px}.tag-list-popover[data-v-bf564085]{max-height:300px}
@@ -1 +0,0 @@
1
- .dialog-content .selection-area[data-v-0525c8ac]{height:500px;border:1px solid var(--border-color);border-radius:8px;overflow:hidden}.dialog-footer[data-v-0525c8ac]{display:flex;justify-content:flex-end;gap:12px}.available-range-setting[data-v-3ff52101]{width:100%}
@@ -1 +0,0 @@
1
- .nav-title[data-v-56e35473]{justify-content:space-between;align-items:center;height:68px;padding-left:2px;display:flex}.nav-title .title-logo[data-v-56e35473]{background:#eaf0fe;border-radius:100px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.nav-title .title-text[data-v-56e35473]{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.nav-title .collapse-unfold-icon[data-v-56e35473]{cursor:pointer;flex-shrink:0;justify-content:center;transition:transform .2s;display:flex}.nav-title .collapse-unfold-icon[data-v-56e35473]:hover{transform:scale(1.1)}.custom-tree[data-v-0a105c70]{background-color:#0000}.custom-tree[data-v-0a105c70] .el-tree-node__expand-icon{display:none}.custom-tree[data-v-0a105c70] .el-tree-node.is-current .el-tree-node__content{background:#eaf0fe;border-radius:6px}.custom-tree .tree-node-content-custom[data-v-0a105c70]{color:#1f2329;box-sizing:border-box;cursor:pointer;border-radius:6px;align-items:center;width:100%;padding:8px 12px;font-size:14px;font-weight:400;transition:all .3s;display:flex}.custom-tree .tree-node-content-custom.is-current[data-v-0a105c70]{color:#3271fe}.custom-tree .tree-node-content-custom.is-parent-active[data-v-0a105c70]{color:#3271fe;background:0 0;border-radius:6px}.custom-tree .tree-node-content-custom .expand-arrow[data-v-0a105c70]{cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;transition:transform .3s;display:flex}.custom-tree .tree-node-content-custom .node-icon[data-v-0a105c70]{flex-shrink:0;justify-content:flex-start;width:24px}.custom-tree .tree-node-content-custom .node-label[data-v-0a105c70]{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:14px;overflow:hidden}.user-popup-content[data-v-70783670]{padding:8px}.user-popup-content .list__item[data-v-70783670]{cursor:pointer;color:#262626;border-radius:8px;align-items:center;gap:6px;height:48px;padding:0 12px;font-size:14px;font-weight:400;transition:background-color .2s;display:flex}.user-popup-content .list__item[data-v-70783670]:hover{background:#f0f0f0}.user-popup-content .list__item-icon[data-v-70783670]{text-align:center;align-items:center;display:flex}.navbar-box__footer[data-v-d1e53517]{cursor:pointer;border-top:1px solid #f0f0f0;justify-content:space-between;align-items:center;width:100%;padding:16px 8px;display:flex;position:relative;bottom:0}.navbar-box__footer__left[data-v-d1e53517]{align-items:center;gap:6px;display:flex}.navbar-box__footer__left .name-first[data-v-d1e53517]{color:#fff;text-align:center;background:#3965ff;border-radius:50%;flex-shrink:0;width:30px;height:30px;margin-right:8px;font-size:22px;line-height:28px;display:inline-block}.navbar-box__footer__left .name-text[data-v-d1e53517]{color:#262626;align-items:center;gap:8px;font-size:14px;font-weight:500;line-height:20px;display:flex}.navbar-box__footer__left .user-id[data-v-d1e53517]{color:#a8abb2;font-size:12px}.footer-popup[data-v-d1e53517]{z-index:2001;width:280px;position:fixed;bottom:0}.footer-popup .footer-popup__content[data-v-d1e53517]{width:100%;height:100%}.content-bg[data-v-d1e53517]{-webkit-backdrop-filter:blur(16px);background:#f7f7f7b3;border:1px solid #fffc;border-radius:12px;box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f}.fade-enter-from[data-v-d1e53517],.fade-leave-to[data-v-d1e53517]{opacity:0}.fade-enter-active[data-v-d1e53517],.fade-leave-active[data-v-d1e53517]{transition:opacity .3s}.fade-enter-to[data-v-d1e53517],.fade-leave-from[data-v-d1e53517]{opacity:1}.sidebar[data-v-736b2e19]{width:240px;transition:width .3s;position:relative}.sidebar[data-v-736b2e19] .el-tree{--el-tree-node-hover-bg-color:transparent!important}
@@ -1 +0,0 @@
1
- require('../assets/AvailableRangePreview.css');const e=require(`./utils.BT5Uuz2Q.js`),t=require(`./_plugin-vue_export-helper.C55-DZV2.js`);let n=require(`vue`),r=require(`element-plus`);const i={ALL:!0,PARTIAL:!1},a=[{value:i.ALL,label:`全部成员`},{value:i.PARTIAL,label:`部分成员`}],o={MEMBER:1,DEPARTMENT:2},s={label:`memberName`,children:`children`,value:`memberId`},c={three:3,one:1};var l={key:0,class:`pd-l-16 text-dee0e3 pd-r-16`},u={class:`fz-14 text-646a73 nowrap`},d={class:`tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe pointer`},f={class:`tag-list-popover overflow-y-auto flex gap-4 flex-wrap`},p={__name:`TagList`,props:{label:{type:String,required:!0},items:{type:Array,default:()=>[]},defaultShowCount:{type:Number,default:c.one},readonly:{type:Boolean,default:!1}},setup(e){let t=e,i=(0,n.computed)(()=>t.readonly?t.items:t.items.slice(0,t.defaultShowCount)),a=(0,n.computed)(()=>t.items.length>t.defaultShowCount),o=(0,n.computed)(()=>t.items.length-t.defaultShowCount),s=(0,n.computed)(()=>t.items.slice(t.defaultShowCount));return(t,c)=>e.items.length>0?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[e.readonly?(0,n.createCommentVNode)(``,!0):((0,n.openBlock)(),(0,n.createElementBlock)(`span`,l,`|`)),(0,n.createElementVNode)(`span`,u,(0,n.toDisplayString)(e.label),1),(0,n.createElementVNode)(`div`,{class:(0,n.normalizeClass)([`tag-list`,{"flex items-center gap-4":!e.readonly}])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,t=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:t.memberId,class:(0,n.normalizeClass)([`tag-item fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe`,{"mg-r-4 mg-b-4":e.readonly}])},(0,n.toDisplayString)(t.memberName),3))),128)),!e.readonly&&a.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.ElPopover),{key:0,placement:`top`,trigger:`click`,width:`300`},{reference:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`span`,d,` +`+(0,n.toDisplayString)(o.value),1)]),default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`div`,f,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,e=>((0,n.openBlock)(),(0,n.createElementBlock)(`span`,{key:e.memberId,class:`tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe`},(0,n.toDisplayString)(e.memberName),1))),128))])]),_:1})):(0,n.createCommentVNode)(``,!0)],2)],64)):(0,n.createCommentVNode)(``,!0)}},m=t.t(p,[[`__scopeId`,`data-v-bf564085`]]),h=(e,t)=>e?.filter(t)||[],g=(e,t)=>h(e,e=>e.memberType===t),_=(e,t)=>{if(e.children)for(let n of e.children)n.memberType===o.MEMBER?t(n):n.memberType===o.DEPARTMENT&&_(n,t)},v=e=>{let t=[];return _(e,e=>t.push(e.memberId)),t};function y(e,t,r=!1){let i=(0,n.computed)(()=>{if(!e.value)return[];let n=[...e.value],r=g(n,o.DEPARTMENT);if(r.length>0&&t.value&&t.value.length>0){let e=new Set;r.forEach(n=>{let r=t=>{for(let i of t)if(i.memberType===o.DEPARTMENT&&i.memberId===n.memberId)return _(i,t=>e.add(t)),!0;else if(i.children&&r(i.children))return!0;return!1};r(t.value)});let i=new Set(g(n,o.MEMBER).map(e=>e.memberId));e.forEach(e=>{i.has(e.memberId)||n.push(e)})}return n}),a=(0,n.computed)(()=>{if(r)return g(i.value,o.MEMBER);{let e=new Set;return s.value.forEach(t=>{v(t).forEach(t=>e.add(t))}),h(i.value,t=>t.memberType===o.MEMBER&&!e.has(t.memberId))}}),s=(0,n.computed)(()=>{if(r)return g(i.value,o.DEPARTMENT);{let e=[],n=e=>{if(!e.children||e.children.length===0)return!1;let t=v(e);return t.length===0?!1:t.every(e=>i.value.some(t=>t.memberType===o.MEMBER&&t.memberId===e))},r=(t,i=!1)=>{if(t.memberType===o.DEPARTMENT){let a=n(t);if(a&&!i){if(e.push({memberId:t.memberId,memberName:t.memberName,memberType:o.DEPARTMENT,children:t.children}),t.children)for(let e of t.children)r(e,!0)}else if(!a&&t.children)for(let e of t.children)r(e,!1)}};for(let e of t.value)r(e,!1);return e}});return{selectedMembers:a,selectedDepartments:s}}var b={class:`fz-14 text-1f2329`},x={__name:`layout`,props:{allVisible:{type:Boolean,default:i.ALL},modelValue:{type:Array,default:()=>[]},treeList:{type:Array,default:()=>[]},readonly:{type:Boolean,default:!1}},setup(e,{expose:t}){let o=(0,n.ref)(null),s=()=>{o.value&&(0,n.nextTick)(()=>{o.value.scrollIntoView({behavior:`smooth`,block:`center`})})},l=e,{selectedMembers:u,selectedDepartments:d}=y((0,n.computed)(()=>l.modelValue),(0,n.computed)(()=>l.treeList),l.readonly),f=(0,n.computed)(()=>{let e=u.value.length>0,t=d.value.length>0;return e&&!t||!e&&t?c.three:c.one}),p=(0,n.computed)(()=>[...u.value,...d.value]);return(0,n.watch)(()=>[l.allVisible,l.modelValue],()=>{s()},{immediate:!1,deep:!0}),(0,n.onMounted)(()=>{s()}),t({allSelectedItems:p}),(t,s)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{ref_key:`previewRef`,ref:o,class:(0,n.normalizeClass)([`available-range-preview w-full overflow-hidden`,{"flex items-center":!e.readonly}])},[e.readonly?(0,n.createCommentVNode)(``,!0):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[s[2]||=(0,n.createElementVNode)(`div`,{class:`text-1f2329`},`可用范围:`,-1),(0,n.createElementVNode)(`span`,b,(0,n.toDisplayString)((0,n.unref)(a).find(t=>t.value===e.allVisible)?.label),1),(0,n.createVNode)((0,n.unref)(r.ElButton),{class:`mg-l-16`,type:`primary`,link:``,onClick:s[0]||=e=>t.$emit(`edit`)},{default:(0,n.withCtx)(()=>[...s[1]||=[(0,n.createTextVNode)(` 编辑 `,-1)]]),_:1})],64)),e.allVisible===(0,n.unref)(i).PARTIAL?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:1,class:(0,n.normalizeClass)([`flex-1 overflow-hidden`,{"flex items-center":!e.readonly}])},[(0,n.unref)(u)?.length?((0,n.openBlock)(),(0,n.createBlock)(m,{key:0,label:`成员:`,items:(0,n.unref)(u),"default-show-count":f.value,readonly:e.readonly},null,8,[`items`,`default-show-count`,`readonly`])):(0,n.createCommentVNode)(``,!0),(0,n.unref)(d)?.length?((0,n.openBlock)(),(0,n.createBlock)(m,{key:1,label:`部门:`,items:(0,n.unref)(d),"default-show-count":f.value,readonly:e.readonly},null,8,[`items`,`default-show-count`,`readonly`])):(0,n.createCommentVNode)(``,!0)],2)):(0,n.createCommentVNode)(``,!0)],2))}},S=x;const C=e.t(S),w=e.t(m);var T=C;Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return C}});