china-mobile-international-custom-components 0.0.46 → 0.0.48

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 (58) hide show
  1. package/es/ApplicationTypeTag.mjs +1 -1
  2. package/es/AvailableRangePreview.mjs +1 -1
  3. package/es/AvailableRangeSetting.mjs +2 -2
  4. package/es/CommonTagsList.mjs +3 -3
  5. package/es/CustomSidebar.mjs +1 -1
  6. package/es/FileUploader.mjs +1 -1
  7. package/es/ParameterTable.mjs +1 -1
  8. package/es/SourcePublish.mjs +6 -6
  9. package/es/Table.mjs +2 -2
  10. package/es/assets/index3.css +1 -0
  11. package/es/assets/layout2.css +1 -1
  12. package/es/chunks/{BackBar.DY42HcZy.js → BackBar.9Pp2SYB-.js} +1 -1
  13. package/es/chunks/{BackBar.eaUb1JvV.js → BackBar.DwhmSL-a.js} +98 -98
  14. package/es/chunks/{config.CvOtShOj.js → config.DVEvXGIL.js} +2 -2
  15. package/es/chunks/{i18n.CfMhDOdX.js → i18n.BNeBD4gR.js} +6 -6
  16. package/es/chunks/{i18n.Bd7hh14j.js → i18n.DMVLcyDY.js} +2 -2
  17. package/es/chunks/i18n.DUrvNBQz.js +4028 -0
  18. package/es/chunks/index.BcLVH95_.js +4058 -0
  19. package/es/chunks/index.CSPp4g5C.js +303 -0
  20. package/es/chunks/{index.DjDvyGXt.js → index.CZTB65ge.js} +1 -1
  21. package/es/chunks/index.ClqvUq64.js +302 -0
  22. package/es/chunks/index.Dh5IGfxO.js +290 -0
  23. package/es/chunks/index.Doax01RQ.js +254 -0
  24. package/es/chunks/{layout.B1qqvrXz.js → layout.OCgfqjXG.js} +129 -113
  25. package/es/index.mjs +5 -5
  26. package/lib/ApplicationTypeTag.js +1 -1
  27. package/lib/AvailableRangePreview.js +1 -1
  28. package/lib/AvailableRangeSetting.js +1 -1
  29. package/lib/CommonTagsList.js +1 -1
  30. package/lib/CustomSidebar.js +1 -1
  31. package/lib/FileUploader.js +1 -1
  32. package/lib/ParameterTable.js +1 -1
  33. package/lib/SourcePublish.js +1 -1
  34. package/lib/Table.js +1 -1
  35. package/lib/assets/index3.css +1 -0
  36. package/lib/assets/layout2.css +1 -1
  37. package/lib/chunks/BackBar.CYThcqhK.js +1 -0
  38. package/lib/chunks/{BackBar.CaaASGvb.js → BackBar.DFDSVp2a.js} +1 -1
  39. package/lib/chunks/{config.CqfpM51B.js → config.Dwnp4fRZ.js} +1 -1
  40. package/lib/chunks/{i18n.D3L1FBDI.js → i18n.Bzvn6t8H.js} +2 -2
  41. package/lib/chunks/i18n.D-d0yyXi.js +6 -0
  42. package/lib/chunks/index.6X8xsqRJ.js +1 -0
  43. package/lib/chunks/index.Bk55us0s.js +1 -0
  44. package/lib/chunks/index.CP9rhXZ5.js +1 -0
  45. package/lib/chunks/index.CSLWrMRE.js +1 -0
  46. package/lib/chunks/index.CV29Us4A.js +6 -0
  47. package/lib/chunks/{index.D-pFPuUr.js → index.DO3h_zf2.js} +1 -1
  48. package/lib/chunks/layout.B6GgWqWq.js +1 -0
  49. package/lib/index.js +1 -1
  50. package/package.json +4 -4
  51. package/es/chunks/config.CyAT4SUn.js +0 -435
  52. package/es/chunks/config.JrGX09T5.js +0 -435
  53. package/es/chunks/index.CHlFhI6c.js +0 -313
  54. package/lib/chunks/BackBar.By7ouDgL.js +0 -1
  55. package/lib/chunks/config.BInpXFGZ.js +0 -1
  56. package/lib/chunks/config.CL0cmPQ6.js +0 -1
  57. package/lib/chunks/index.zQ1SfvBa.js +0 -1
  58. package/lib/chunks/layout.Cen7E9tF.js +0 -1
@@ -1,12 +1,12 @@
1
- import { createElementBlock as m, openBlock as a, createCommentVNode as x, createElementVNode as g, createBlock as b, createVNode as p, unref as d, withCtx as v, resolveDynamicComponent as S, normalizeStyle as L, toDisplayString as k, ref as O, watch as D, nextTick as F, normalizeClass as $, withModifiers as P, Fragment as A, renderList as U, Transition as B, withDirectives as K, vShow as W } from "vue";
2
- import { ElIcon as N, ElAutoResizer as H, ElTreeV2 as V } from "element-plus";
3
- import { _ as I } from "./_plugin-vue_export-helper.CHgC5LLL.js";
1
+ import { createElementBlock as g, openBlock as s, createCommentVNode as N, createElementVNode as a, createBlock as x, createVNode as y, unref as f, withCtx as v, resolveDynamicComponent as S, normalizeStyle as L, toDisplayString as b, ref as O, watch as R, nextTick as D, normalizeClass as $, withModifiers as P, Fragment as A, renderList as U, Transition as B, withDirectives as K, vShow as W } from "vue";
2
+ import { ElIcon as I, ElAutoResizer as H, ElTreeV2 as V } from "element-plus";
3
+ import { _ as k } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
4
  import { IconRenderer as Y, iconLibraryMap as G } from "color-star-custom-components";
5
- import { IconYou as q } from "color-message-aibox-vue";
6
- import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" }, Q = {
5
+ import { IconYou as _ } from "color-message-aibox-vue";
6
+ import '../assets/layout2.css';const q = { class: "nav-title overflow-hidden" }, J = {
7
7
  key: 0,
8
8
  class: "title-logo"
9
- }, X = /* @__PURE__ */ Object.assign({
9
+ }, Q = /* @__PURE__ */ Object.assign({
10
10
  name: "NavTitle"
11
11
  }, {
12
12
  __name: "NavTitle",
@@ -47,43 +47,43 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
47
47
  const t = n, o = () => {
48
48
  t("toggle");
49
49
  };
50
- return (l, y) => (a(), m("div", J, [
51
- e.logo ? (a(), m("div", Q, [
52
- p(d(N), { size: e.logoSize }, {
50
+ return (l, h) => (s(), g("div", q, [
51
+ e.logo ? (s(), g("div", J, [
52
+ y(f(I), { size: e.logoSize }, {
53
53
  default: v(() => [
54
- (a(), b(S(e.logo)))
54
+ (s(), x(S(e.logo)))
55
55
  ]),
56
56
  _: 1
57
57
  }, 8, ["size"])
58
- ])) : x("", !0),
59
- g("span", {
58
+ ])) : N("", !0),
59
+ a("span", {
60
60
  class: "weight-500 text-1f2329 title-text",
61
61
  style: L(e.titleStyle)
62
- }, k(e.title), 5),
63
- e.showToggle ? (a(), b(d(N), {
62
+ }, b(e.title), 5),
63
+ e.showToggle ? (s(), x(f(I), {
64
64
  key: 1,
65
65
  size: 20,
66
66
  class: "collapse-unfold-icon",
67
67
  onClick: o
68
68
  }, {
69
69
  default: v(() => [
70
- (a(), b(S(e.toggleIcon)))
70
+ (s(), x(S(e.toggleIcon)))
71
71
  ]),
72
72
  _: 1
73
- })) : x("", !0)
73
+ })) : N("", !0)
74
74
  ]));
75
75
  }
76
- }), Z = /* @__PURE__ */ I(X, [["__scopeId", "data-v-56e35473"]]), M = {
76
+ }), X = /* @__PURE__ */ k(Q, [["__scopeId", "data-v-8cc29b72"]]), M = {
77
77
  DIR: "DIR",
78
78
  // 目录
79
79
  MENU: "MENU",
80
80
  // 菜单
81
81
  BUTTON: "BUTTON"
82
82
  // 按钮
83
- }, _ = /* @__PURE__ */ new Map([
83
+ }, Z = /* @__PURE__ */ new Map([
84
84
  ["active", "#3271FE"],
85
85
  ["parent_active", "#3271FE"],
86
- ["normal", "#666666"]
86
+ ["normal", "#1F2329"]
87
87
  ]), ee = (e, n) => !Array.isArray(e) || !n ? !1 : e.some((t) => t.path === n ? !0 : t.children?.length > 0 ? ee(t.children, n) : !1), te = (e, n = 1) => e.filter((o) => [M.DIR, M.MENU].includes(o.type)).map((o) => ({
88
88
  ...o,
89
89
  id: o.bnid,
@@ -98,8 +98,8 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
98
98
  ) : !1, oe = (e, n) => {
99
99
  const t = e?.id === n, o = z(e, n);
100
100
  let l = "normal";
101
- return t ? l = "active" : o && (l = "parent_active"), _.get(l);
102
- }, ze = (e, n) => e.includes(n) ? e : [...e, n], Te = (e, n) => e.filter((t) => t !== n), le = (e, n, t = []) => e.some((o) => {
101
+ return t ? l = "active" : o && (l = "parent_active"), Z.get(l);
102
+ }, Fe = (e, n) => e.includes(n) ? e : [...e, n], Re = (e, n) => e.filter((t) => t !== n), le = (e, n, t = []) => e.some((o) => {
103
103
  if (o?.path === n)
104
104
  return !0;
105
105
  if (o.children?.length > 0) {
@@ -117,7 +117,7 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
117
117
  return l || t.pop(), l;
118
118
  }
119
119
  return !1;
120
- }), Me = (e, n) => {
120
+ }), De = (e, n) => {
121
121
  const t = [];
122
122
  return w(e, n, t), t;
123
123
  }, ie = (e, n) => {
@@ -134,29 +134,29 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
134
134
  }, re = (e) => Array.isArray(e) ? e.map((n) => {
135
135
  const t = { ...n };
136
136
  return t.children && Array.isArray(t.children) && t.children.length > 0 ? t.children = re(t.children) : t.isLeaf = !0, t;
137
- }) : [], ae = (e) => {
137
+ }) : [], se = (e) => {
138
138
  if (!Array.isArray(e) || e.length === 0) return null;
139
139
  for (const n of e) {
140
140
  if (n.isLeaf && n.path)
141
141
  return n;
142
142
  if (n.children?.length > 0) {
143
- const t = ae(n.children);
143
+ const t = se(n.children);
144
144
  if (t) return t;
145
145
  }
146
146
  }
147
147
  return null;
148
- }, Ce = ["/404", "/login", "/unauthorized"], j = {
148
+ }, $e = ["/404", "/login", "/unauthorized"], j = {
149
149
  label: "name",
150
150
  children: "children",
151
151
  isLeaf: "isLeaf"
152
152
  }, C = {
153
153
  PARENT: "parent",
154
154
  LEAF: "leaf"
155
- }, we = {
155
+ }, Pe = {
156
156
  LOADING: "loading",
157
157
  LOADED: "loaded",
158
158
  ERROR: "error"
159
- }, ce = { class: "node-label" }, se = ["onClick"], ue = /* @__PURE__ */ Object.assign({
159
+ }, ae = { class: "node-label" }, ce = ["onClick"], ue = /* @__PURE__ */ Object.assign({
160
160
  name: "MenuList"
161
161
  }, {
162
162
  __name: "MenuList",
@@ -219,34 +219,34 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
219
219
  },
220
220
  emits: ["node-click", "node-expand", "node-collapse"],
221
221
  setup(e, { emit: n }) {
222
- const t = e, o = n, l = O(null), y = (i) => i?.icon && i.level === 1 || !i.isLeaf, s = (i) => oe(i, t.currentMenuId), h = (i) => {
222
+ const t = e, o = n, l = O(null), h = (i) => i?.icon && i.level === 1 || !i.isLeaf, u = (i) => oe(i, t.currentMenuId), m = (i) => {
223
223
  const E = i.isLeaf ? C.LEAF : C.PARENT;
224
224
  o("node-click", i, E);
225
225
  }, c = (i) => {
226
226
  o("node-expand", i.id, i);
227
227
  }, r = (i) => {
228
228
  o("node-collapse", i.id, i);
229
- }, u = (i) => {
229
+ }, d = (i) => {
230
230
  if (!l.value) return;
231
231
  t.expandedKeys.includes(i.data.id) ? l.value.collapseNode(i) : l.value.expandNode(i);
232
232
  };
233
- return D(
233
+ return R(
234
234
  () => t.expandedKeys,
235
235
  (i) => {
236
- F(() => {
236
+ D(() => {
237
237
  l.value && l.value.setExpandedKeys([...i]);
238
238
  });
239
239
  },
240
240
  { deep: !0 }
241
- ), (i, E) => (a(), b(d(H), { class: "flex-1 overflow-hidden" }, {
242
- default: v(({ height: R }) => [
243
- p(d(V), {
241
+ ), (i, E) => (s(), x(f(H), { class: "flex-1 overflow-hidden" }, {
242
+ default: v(({ height: F }) => [
243
+ y(f(V), {
244
244
  ref_key: "treeRef",
245
245
  ref: l,
246
246
  "node-key": "id",
247
247
  data: e.menuData,
248
248
  props: e.treeProps,
249
- height: R,
249
+ height: F,
250
250
  "current-node-key": e.currentMenuId,
251
251
  "highlight-current": !0,
252
252
  "expanded-keys": e.expandedKeys,
@@ -254,51 +254,51 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
254
254
  "item-size": e.itemHeight,
255
255
  "expand-on-click-node": !1,
256
256
  indent: e.indent,
257
- onNodeClick: h,
257
+ onNodeClick: m,
258
258
  onNodeExpand: c,
259
259
  onNodeCollapse: r,
260
260
  class: "custom-tree"
261
261
  }, {
262
- default: v(({ node: T, data: f }) => [
263
- g("div", {
262
+ default: v(({ node: T, data: p }) => [
263
+ a("div", {
264
264
  class: $(["tree-node-content-custom", {
265
- "has-children": !f.isLeaf,
266
- "is-current": f.id === e.currentMenuId && f.isLeaf,
267
- "is-parent-active": d(z)(f, e.currentMenuId) && !f.isLeaf
265
+ "has-children": !p.isLeaf,
266
+ "is-current": p.id === e.currentMenuId && p.isLeaf,
267
+ "is-parent-active": f(z)(p, e.currentMenuId) && !p.isLeaf
268
268
  }])
269
269
  }, [
270
- y(f) ? (a(), b(d(N), {
270
+ h(p) ? (s(), x(f(I), {
271
271
  key: 0,
272
272
  size: e.iconSize,
273
273
  class: "node-icon",
274
- color: s(f)
274
+ color: u(p)
275
275
  }, {
276
276
  default: v(() => [
277
- p(d(Y), {
278
- "icon-name": f?.icon,
279
- "icon-library": d(G).aibox
277
+ y(f(Y), {
278
+ "icon-name": p?.icon,
279
+ "icon-library": f(G).aibox
280
280
  }, null, 8, ["icon-name", "icon-library"])
281
281
  ]),
282
282
  _: 2
283
- }, 1032, ["size", "color"])) : x("", !0),
284
- g("span", ce, k(T.label), 1),
285
- f.isLeaf ? x("", !0) : (a(), m("div", {
283
+ }, 1032, ["size", "color"])) : N("", !0),
284
+ a("span", ae, b(T.label), 1),
285
+ p.isLeaf ? N("", !0) : (s(), g("div", {
286
286
  key: 1,
287
287
  class: "expand-arrow",
288
- onClick: P((Ie) => u(T), ["stop"])
288
+ onClick: P((ze) => d(T), ["stop"])
289
289
  }, [
290
- p(d(N), {
290
+ y(f(I), {
291
291
  size: e.iconSize,
292
- color: s(f)
292
+ color: u(p)
293
293
  }, {
294
294
  default: v(() => [
295
- (a(), b(S(
296
- e.expandedKeys.includes(f.id) ? e.expandedIcon : e.collapsedIcon
295
+ (s(), x(S(
296
+ e.expandedKeys.includes(p.id) ? e.expandedIcon : e.collapsedIcon
297
297
  )))
298
298
  ]),
299
299
  _: 2
300
300
  }, 1032, ["size", "color"])
301
- ], 8, se))
301
+ ], 8, ce))
302
302
  ], 2)
303
303
  ]),
304
304
  _: 1
@@ -307,7 +307,7 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
307
307
  _: 1
308
308
  }));
309
309
  }
310
- }), de = /* @__PURE__ */ I(ue, [["__scopeId", "data-v-0a105c70"]]), fe = { class: "user-popup-content" }, pe = ["onClick"], ye = /* @__PURE__ */ Object.assign({
310
+ }), de = /* @__PURE__ */ k(ue, [["__scopeId", "data-v-0a105c70"]]), fe = { class: "user-popup-content" }, pe = { class: "user_info_wrap_data" }, ye = { class: "user-avatar" }, he = { class: "avatar-text" }, me = { class: "user-details" }, ge = { class: "user-name" }, ve = { class: "user-email" }, be = ["onClick"], xe = /* @__PURE__ */ Object.assign({
311
311
  name: "UserPopup"
312
312
  }, {
313
313
  __name: "UserPopup",
@@ -319,6 +319,11 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
319
319
  validator: (e) => e.every(
320
320
  (n) => n.key && (n.icon || n.iconName)
321
321
  )
322
+ },
323
+ // 用户信息
324
+ userInfo: {
325
+ type: Object,
326
+ default: () => ({})
322
327
  }
323
328
  },
324
329
  emits: ["action-click"],
@@ -326,29 +331,38 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
326
331
  const t = n, o = (l) => {
327
332
  t("action-click", l.key, l);
328
333
  };
329
- return (l, y) => (a(), m("div", fe, [
330
- (a(!0), m(A, null, U(e.actions, (s, h) => (a(), m(A, { key: h }, [
331
- s.hidden ? x("", !0) : (a(), m("div", {
334
+ return (l, h) => (s(), g("div", fe, [
335
+ a("div", pe, [
336
+ a("div", ye, [
337
+ a("span", he, b(e.userInfo?.name?.charAt(0)?.toUpperCase() || ""), 1)
338
+ ]),
339
+ a("div", me, [
340
+ a("div", ge, b(e.userInfo?.name || ""), 1),
341
+ a("div", ve, b(e.userInfo?.bnid || ""), 1)
342
+ ])
343
+ ]),
344
+ (s(!0), g(A, null, U(e.actions, (u, m) => (s(), g(A, { key: m }, [
345
+ u.hidden ? N("", !0) : (s(), g("div", {
332
346
  key: 0,
333
347
  class: "list__item",
334
- onClick: (c) => o(s)
348
+ onClick: (c) => o(u)
335
349
  }, [
336
- p(d(N), {
350
+ y(f(I), {
337
351
  class: "list__item-icon",
338
- size: s.iconSize || 20,
352
+ size: u.iconSize || 20,
339
353
  color: "#262626"
340
354
  }, {
341
355
  default: v(() => [
342
- (a(), b(S(s.icon)))
356
+ (s(), x(S(u.icon)))
343
357
  ]),
344
358
  _: 2
345
359
  }, 1032, ["size"]),
346
- g("span", null, k(s.label), 1)
347
- ], 8, pe))
360
+ a("span", null, b(u.label), 1)
361
+ ], 8, be))
348
362
  ], 64))), 128))
349
363
  ]));
350
364
  }
351
- }), he = /* @__PURE__ */ I(ye, [["__scopeId", "data-v-70783670"]]), ge = { class: "navbar-box__footer__left" }, me = { class: "name-first" }, ve = { class: "name-text" }, be = /* @__PURE__ */ Object.assign({
365
+ }), Ne = /* @__PURE__ */ k(xe, [["__scopeId", "data-v-9ec38608"]]), Ie = { class: "navbar-box__footer__left" }, ke = { class: "name-first" }, Se = { class: "name-text" }, Ae = /* @__PURE__ */ Object.assign({
352
366
  name: "NavFooter"
353
367
  }, {
354
368
  __name: "NavFooter",
@@ -381,58 +395,60 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
381
395
  },
382
396
  emits: ["action-click"],
383
397
  setup(e, { emit: n }) {
384
- const t = e, o = n, l = O(null), y = O(!1), s = (r) => r && r[0] ? r[0] : "", h = (r) => {
398
+ const t = e, o = n, l = O(null), h = O(!1), u = (r) => r && r[0] ? r[0] : "", m = (r) => {
385
399
  r || (l.value = setTimeout(() => {
386
- y.value = !1;
387
- }, t.popupDelay)), r && (y.value = r, clearTimeout(l.value));
388
- }, c = (r, u) => {
389
- y.value = !1, o("action-click", r, u);
400
+ h.value = !1;
401
+ }, t.popupDelay)), r && (h.value = r, clearTimeout(l.value));
402
+ }, c = (r, d) => {
403
+ h.value = !1, o("action-click", r, d);
390
404
  };
391
- return (r, u) => (a(), m(A, null, [
392
- e.userInfo ? (a(), m("div", {
405
+ return (r, d) => (s(), g(A, null, [
406
+ e.userInfo ? (s(), g("div", {
393
407
  key: 0,
394
408
  class: "navbar-box__footer",
395
409
  style: L({ width: e.navFooterWidth + "px" }),
396
- onMouseenter: u[0] || (u[0] = (i) => h(!0)),
397
- onMouseleave: u[1] || (u[1] = (i) => h(!1))
410
+ onMouseenter: d[0] || (d[0] = (i) => m(!0)),
411
+ onMouseleave: d[1] || (d[1] = (i) => m(!1))
398
412
  }, [
399
- g("div", ge, [
400
- g("div", me, k(s(e.userInfo?.name)), 1),
401
- g("div", null, [
402
- g("div", ve, k(e.userInfo?.name), 1)
413
+ a("div", Ie, [
414
+ a("div", ke, b(u(e.userInfo?.name)), 1),
415
+ a("div", null, [
416
+ a("div", Se, b(e.userInfo?.name), 1)
403
417
  ])
404
418
  ]),
405
- p(d(N), {
419
+ y(f(I), {
406
420
  size: 12,
407
- class: "navbar-box__footer__right"
421
+ class: "navbar-box__footer__right",
422
+ color: "#1F2329"
408
423
  }, {
409
424
  default: v(() => [
410
- p(d(q))
425
+ y(f(_))
411
426
  ]),
412
427
  _: 1
413
428
  })
414
- ], 36)) : x("", !0),
415
- p(B, { name: "fade" }, {
429
+ ], 36)) : N("", !0),
430
+ y(B, { name: "fade" }, {
416
431
  default: v(() => [
417
- K(g("div", {
432
+ K(a("div", {
418
433
  class: "footer-popup content-bg",
419
434
  style: L({ left: e.popupLeft + "px" }),
420
- onMouseenter: u[2] || (u[2] = (i) => h(!0)),
421
- onMouseleave: u[3] || (u[3] = (i) => h(!1))
435
+ onMouseenter: d[2] || (d[2] = (i) => m(!0)),
436
+ onMouseleave: d[3] || (d[3] = (i) => m(!1))
422
437
  }, [
423
- p(he, {
438
+ y(Ne, {
424
439
  actions: e.actions,
425
- onActionClick: c
426
- }, null, 8, ["actions"])
440
+ onActionClick: c,
441
+ userInfo: e.userInfo
442
+ }, null, 8, ["actions", "userInfo"])
427
443
  ], 36), [
428
- [W, y.value]
444
+ [W, h.value]
429
445
  ])
430
446
  ]),
431
447
  _: 1
432
448
  })
433
449
  ], 64));
434
450
  }
435
- }), xe = /* @__PURE__ */ I(be, [["__scopeId", "data-v-93817550"]]), Ne = { class: "sidebar pd-l-12 pd-r-12 flex flex-col overflow-hidden" }, ke = /* @__PURE__ */ Object.assign({
451
+ }), Ee = /* @__PURE__ */ k(Ae, [["__scopeId", "data-v-434aedf2"]]), Le = { class: "sidebar pd-l-12 pd-r-12 flex flex-col overflow-hidden" }, Oe = /* @__PURE__ */ Object.assign({
436
452
  name: "CustomSidebar"
437
453
  }, {
438
454
  __name: "layout",
@@ -568,16 +584,16 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
568
584
  t("toggle");
569
585
  }, l = (c, r) => {
570
586
  t("node-click", c, r);
571
- }, y = (c, r) => {
587
+ }, h = (c, r) => {
572
588
  t("node-expand", c, r);
573
- }, s = (c, r) => {
589
+ }, u = (c, r) => {
574
590
  t("node-collapse", c, r);
575
- }, h = (c, r) => {
591
+ }, m = (c, r) => {
576
592
  t("user-action-click", c, r);
577
593
  };
578
- return (c, r) => (a(), m(A, null, [
579
- g("div", Ne, [
580
- p(Z, {
594
+ return (c, r) => (s(), g(A, null, [
595
+ a("div", Le, [
596
+ y(X, {
581
597
  "title-style": e.titleStyle,
582
598
  title: e.title,
583
599
  logo: e.logo,
@@ -586,7 +602,7 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
586
602
  "toggle-icon": e.toggleIcon,
587
603
  onToggle: o
588
604
  }, null, 8, ["title-style", "title", "logo", "logo-size", "show-toggle", "toggle-icon"]),
589
- p(de, {
605
+ y(de, {
590
606
  "menu-data": e.menuData,
591
607
  "current-menu-id": e.currentMenuId,
592
608
  "expanded-keys": e.expandedKeys,
@@ -599,41 +615,41 @@ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" },
599
615
  "icon-renderer": e.iconRenderer,
600
616
  "icon-library": e.iconLibrary,
601
617
  onNodeClick: l,
602
- onNodeExpand: y,
603
- onNodeCollapse: s
618
+ onNodeExpand: h,
619
+ onNodeCollapse: u
604
620
  }, null, 8, ["menu-data", "current-menu-id", "expanded-keys", "tree-props", "item-height", "indent", "icon-size", "expanded-icon", "collapsed-icon", "icon-renderer", "icon-library"])
605
621
  ]),
606
- e.showFooter ? (a(), b(xe, {
622
+ e.showFooter ? (s(), x(Ee, {
607
623
  key: 0,
608
624
  "popup-left": e.popupLeft,
609
625
  "user-info": e.userInfo,
610
626
  actions: e.userActions,
611
627
  "popup-delay": e.popupDelay,
612
628
  "nav-footer-width": e.navFooterWidth,
613
- onActionClick: h
614
- }, null, 8, ["popup-left", "user-info", "actions", "popup-delay", "nav-footer-width"])) : x("", !0)
629
+ onActionClick: m
630
+ }, null, 8, ["popup-left", "user-info", "actions", "popup-delay", "nav-footer-width"])) : N("", !0)
615
631
  ], 64));
616
632
  }
617
- }), je = /* @__PURE__ */ I(ke, [["__scopeId", "data-v-6876f37e"]]);
633
+ }), Ue = /* @__PURE__ */ k(Oe, [["__scopeId", "data-v-f272ad1e"]]);
618
634
  export {
619
635
  M,
620
636
  C as N,
621
- Ce as S,
637
+ $e as S,
622
638
  j as T,
623
- _ as a,
639
+ Z as a,
624
640
  ne as b,
625
641
  z as c,
626
- Te as d,
627
- ze as e,
642
+ Re as d,
643
+ Fe as e,
628
644
  le as f,
629
645
  oe as g,
630
646
  w as h,
631
647
  ee as i,
632
- Me as j,
648
+ De as j,
633
649
  ie as k,
634
- je as l,
635
- ae as m,
636
- we as n,
650
+ Ue as l,
651
+ se as m,
652
+ Pe as n,
637
653
  re as p,
638
654
  te as t
639
655
  };
package/es/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { CustomToggle as o } from "./CustomToggle.mjs";
2
2
  import { CustomTitle as t } from "./CustomTitle.mjs";
3
3
  import { COLUMN_TYPES as r, MODES as i, PageContainer as T } from "./PageContainer.mjs";
4
- import { l as n, a as p, n as S, M as E, N as l, S as m, T as _, d as A, e as P, f as c, h as g, k as u, m as L, g as f, j as I, c as N, b as C, i as O, p as d, t as M } from "./chunks/layout.BSXfM0rC.js";
4
+ import { l as n, a as p, n as S, M as E, N as l, S as m, T as _, d as A, e as P, f as c, h as g, k as u, m as L, g as f, j as I, c as N, b as C, i as O, p as d, t as M } from "./chunks/layout.OCgfqjXG.js";
5
5
  import { AvailableRangeSetting as U } from "./AvailableRangeSetting.mjs";
6
- import { A as y, D as R, M as B, P as Y, R as b, T as h, a as H, r as D } from "./chunks/index.CHlFhI6c.js";
6
+ import { A as y, D as R, M as B, P as Y, R as b, T as h, a as H, r as D } from "./chunks/index.CZTB65ge.js";
7
7
  import { ApplicationIcon as v } from "./ApplicationIcon.mjs";
8
8
  import { ApplicationTypeTag as F, useApplicationTypeTag as x } from "./ApplicationTypeTag.mjs";
9
9
  import { ApiTooltip as G, FeishuTooltip as j, PermissionSetting as k, PublishIcon as w, PublishSettings as K, SourcePublish as V } from "./SourcePublish.mjs";
@@ -14,11 +14,11 @@ import { FileUploader as sa, UploadTypesEnum as oa, extractAndLowerCaseArrayType
14
14
  import { AutoShowTooltip as na } from "./AutoShowTooltip.mjs";
15
15
  import { DialogContainer as pa, useDialog as Sa } from "./DialogContainer.mjs";
16
16
  import { CommonTagsList as Ea, StatusTag as la } from "./CommonTagsList.mjs";
17
- import { _ as ma, T as _a } from "./chunks/BackBar.eaUb1JvV.js";
17
+ import { _ as ma, T as _a } from "./chunks/BackBar.9Pp2SYB-.js";
18
18
  import { A as Aa, S as Pa } from "./chunks/config.DE5PZU2F.js";
19
- import { A as ca, a as ga, C as ua, I as La, L as fa, O as Ia, b as Na, P as Ca, c as Oa, d as da, e as Ma, f as Ua, R as ya, g as Ra, S as Ba, h as Ya, i as ba, s as ha, j as Ha, k as Da } from "./chunks/config.CvOtShOj.js";
19
+ import { A as ca, a as ga, C as ua, I as La, L as fa, O as Ia, b as Na, P as Ca, c as Oa, d as da, e as Ma, f as Ua, R as ya, g as Ra, S as Ba, h as Ya, i as ba, s as ha, j as Ha, k as Da } from "./chunks/config.DVEvXGIL.js";
20
20
  import { dayjs as va } from "element-plus";
21
- import { f as ne, c as pe, e as Se, b as Ee, d as le, g as me, l as _e, a as Ae, s as Pe, u as ce } from "./chunks/i18n.Bd7hh14j.js";
21
+ import { f as ne, c as pe, e as Se, b as Ee, d as le, g as me, l as _e, a as Ae, s as Pe, u as ce } from "./chunks/i18n.DMVLcyDY.js";
22
22
  const a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23
23
  __proto__: null,
24
24
  API_CHANNEL_TYPES: ca,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/ApplicationTypeTag.css');const I=require("./chunks/index.CkihWzK6.js"),t=require("vue"),a=require("./chunks/config.4W9n_uQg.js"),i=require("./chunks/i18n.D3L1FBDI.js"),_=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),A=()=>{const{t:e}=i.useI18n();return{APPLICATION_TYPE_TAB_LIST:[{label:e("APPLICATION_LIBRARY.TAB_LIST.ALL"),value:a.APPLICATION_TYPE.all},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT"),value:a.APPLICATION_TYPE.autonomous,alias:e("APPLICATION_LIBRARY.TAB_LIST.PLANNED")},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT_DIALOG"),value:a.APPLICATION_TYPE.dialogue,alias:e("APPLICATION_LIBRARY.TAB_LIST.DIALOG")}]}},r=Object.assign({name:"ApplicationTypeTag"},{__name:"layout",props:{type:{type:[String,Number],required:!0}},setup(e){const o=e,{APPLICATION_TYPE_TAB_LIST:n}=A(),s=t.computed(()=>n.find(T=>T.value===o.type)?.alias||""),u=t.computed(()=>o.type===a.APPLICATION_TYPE.dialogue?"dialogue":"autonomously");return(T,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(u.value)},t.toDisplayString(s.value),3))}}),c=_._export_sfc(r,[["__scopeId","data-v-b4885355"]]),l=I.withInstall(c);exports.ApplicationTypeTag=l;exports.default=l;exports.useApplicationTypeTag=A;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/ApplicationTypeTag.css');const I=require("./chunks/index.CkihWzK6.js"),t=require("vue"),a=require("./chunks/config.4W9n_uQg.js"),i=require("./chunks/i18n.Bzvn6t8H.js"),_=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),A=()=>{const{t:e}=i.useI18n();return{APPLICATION_TYPE_TAB_LIST:[{label:e("APPLICATION_LIBRARY.TAB_LIST.ALL"),value:a.APPLICATION_TYPE.all},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT"),value:a.APPLICATION_TYPE.autonomous,alias:e("APPLICATION_LIBRARY.TAB_LIST.PLANNED")},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT_DIALOG"),value:a.APPLICATION_TYPE.dialogue,alias:e("APPLICATION_LIBRARY.TAB_LIST.DIALOG")}]}},r=Object.assign({name:"ApplicationTypeTag"},{__name:"layout",props:{type:{type:[String,Number],required:!0}},setup(e){const o=e,{APPLICATION_TYPE_TAB_LIST:n}=A(),s=t.computed(()=>n.find(T=>T.value===o.type)?.alias||""),u=t.computed(()=>o.type===a.APPLICATION_TYPE.dialogue?"dialogue":"autonomously");return(T,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(u.value)},t.toDisplayString(s.value),3))}}),c=_._export_sfc(r,[["__scopeId","data-v-b4885355"]]),l=I.withInstall(c);exports.ApplicationTypeTag=l;exports.default=l;exports.useApplicationTypeTag=A;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./chunks/index.CkihWzK6.js");const e=require("./chunks/index.D-pFPuUr.js");exports.AvailableRangePreview=e.AvailableRangePreview;exports.TagList=e.TagList;exports.default=e.AvailableRangePreview;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./chunks/index.CkihWzK6.js");const e=require("./chunks/index.DO3h_zf2.js");exports.AvailableRangePreview=e.AvailableRangePreview;exports.TagList=e.TagList;exports.default=e.AvailableRangePreview;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AvailableRangeSetting.css');const C=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("color-star-custom-methods"),t=require("./chunks/index.D-pFPuUr.js"),E=require("element-plus"),M=require("color-star-custom-components"),y=require("./chunks/request.D8T4MgGX.js"),L={class:"dialog-content"},P={key:0,class:"selection-area overflow-hidden"},B={class:"dialog-footer"},k={__name:"Dialog",props:{visible:{type:Boolean,default:!1},allVisible:{type:Boolean,default:t.RANGE_TYPES.ALL},modelValue:{type:Array,default:()=>[]},treeList:{type:Array,default:()=>[]}},emits:[s.emitsMap.updateVisible,s.emitsMap.save,s.emitsMap.cancel],setup(v,{emit:V}){const f=v,m=V,S=e.ref(!0),p=e.ref(f.allVisible),n=e.ref([...f.modelValue]),g=e.ref(),{selectedMembers:T,selectedDepartments:d}=t.useSelectionDisplay(n,e.computed(()=>f.treeList),!1),i=e.computed(()=>{const a=[];return d.value.forEach(o=>{a.push({...o,children:void 0})}),T.value.forEach(o=>{a.push({...o,children:void 0})}),a}),b=a=>{p.value=a,a===t.RANGE_TYPES.ALL&&(n.value=[])},h=a=>{const{selectedNode:o}=a;n.value=o||[]},A=()=>{m(s.emitsMap.cancel),m(s.emitsMap.updateVisible,!1)},_=()=>{m(s.emitsMap.save,{type:p.value,selectedItems:[...n.value]}),m(s.emitsMap.updateVisible,!1)};return(a,o)=>(e.openBlock(),e.createBlock(e.unref(E.ElDialog),{modelValue:S.value,"onUpdate:modelValue":o[2]||(o[2]=r=>S.value=r),title:a.t("COMMON_DICT.ENUMS.AVAILABLE_RANGE_SETTING"),"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":"",onClose:A,"modal-class":"available-range-setting-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("div",B,[e.createVNode(e.unref(E.ElButton),{onClick:A,plain:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.t("COMMON_BUTTON.CANCEL_TEXT")),1)]),_:1}),e.createVNode(e.unref(E.ElButton),{type:"primary",onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.t("COMMON_BUTTON.SAVE_TEXT")),1)]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",L,[e.createVNode(e.unref(E.ElRadioGroup),{class:"pd-b-16",modelValue:p.value,"onUpdate:modelValue":o[0]||(o[0]=r=>p.value=r),onChange:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.rangeOptions),r=>(e.openBlock(),e.createBlock(e.unref(E.ElRadio),{key:r.value,value:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),p.value===e.unref(t.RANGE_TYPES).PARTIAL?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(e.unref(M.TreeShowSelect),{modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=r=>n.value=r),ref_key:"treeRef",ref:g,treeProps:e.unref(t.availableRangeTreeProps),treeList:v.treeList,hasFilter:!0,rightTreeList:i.value,style:{height:"500px"},onGetCheckedNode:h},null,8,["modelValue","treeProps","treeList","rightTreeList"])])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","title"]))}},w=()=>{const{$request:v,$env:V}=y.getGlobalProperties();return{availableRangeApi:()=>v({url:`${V.VITE_APP_AUTH_BASE_URL}/api/v1/admin/member/search`,method:"get"})}},I={class:"available-range-setting w-full"},O=Object.assign({name:"AvailableRangeSetting"},{__name:"layout",props:{allVisible:{type:Boolean,default:t.RANGE_TYPES.ALL},modelValue:{type:Array,default:()=>[]},defaultShowCount:{type:Number,default:t.DEFAULT_SHOW_COUNT.one}},emits:[s.emitsMap.updateAllVisible,s.emitsMap.updateModelValue,s.emitsMap.change],setup(v,{expose:V,emit:f}){const m=v,{availableRangeApi:S}=w(),p=f,n=e.ref(!1),g=e.ref(!1),T=e.ref([]),d=e.ref(m.allVisible),i=e.ref(m.modelValue),b=e.ref(new Set(i.value?.map(l=>l.memberId))),h=()=>{g.value=!0,S().then(l=>{T.value=l?.data?.orgOptionSoList||[]}).finally(()=>{g.value=!1})},A=()=>{n.value=!0},_=l=>{d.value=l.type,i.value=l.selectedItems,b.value.clear(),i.value.forEach(u=>{b.value.add(u.memberId)}),p(s.emitsMap.updateAllVisible,d.value),p(s.emitsMap.updateModelValue,i.value),o()},a=()=>{n.value=!1},o=()=>{const l={allVisible:d.value,selectedItems:i.value};p(s.emitsMap.change,l)},r=e.ref(null),R=()=>{const l=r.value?.allSelectedItems||[];return{allVisible:d.value,visibleScope:l.map(c=>({memberId:c.memberId,memberName:c.memberName,memberType:c.memberType,bnid:c.bnid}))}};return e.watch(()=>m.allVisible,l=>{d.value=l},{immediate:!0}),e.watch(()=>m.modelValue,l=>{i.value=l||[],b.value.clear(),i.value.forEach(u=>{b.value.add(u.memberId)})},{immediate:!0}),e.onMounted(()=>{h()}),V({getSelectedItems:R}),(l,u)=>(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(e.unref(t.AvailableRangePreview),{allVisible:d.value,"model-value":i.value,"tree-list":T.value,"default-show-count":v.defaultShowCount,onEdit:A,ref_key:"previewRef",ref:r},null,8,["allVisible","model-value","tree-list","default-show-count"]),n.value?(e.openBlock(),e.createBlock(k,{key:0,visible:n.value,"onUpdate:visible":u[0]||(u[0]=c=>n.value=c),allVisible:d.value,"onUpdate:allVisible":u[1]||(u[1]=c=>d.value=c),modelValue:i.value,"onUpdate:modelValue":u[2]||(u[2]=c=>i.value=c),"tree-list":T.value,loading:g.value,onSave:_,onCancel:a},null,8,["visible","allVisible","modelValue","tree-list","loading"])):e.createCommentVNode("",!0)]))}}),N=C.withInstall(O);exports.DEFAULT_SHOW_COUNT=t.DEFAULT_SHOW_COUNT;exports.MEMBER_DEPARTMENT_TYPES=t.MEMBER_DEPARTMENT_TYPES;exports.PUBLISH_STATUS=t.PUBLISH_STATUS;exports.RANGE_TYPES=t.RANGE_TYPES;exports.availableRangeTreeProps=t.availableRangeTreeProps;exports.rangeOptions=t.rangeOptions;exports.AvailableRangeSetting=N;exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AvailableRangeSetting.css');const C=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("color-star-custom-methods"),t=require("./chunks/index.DO3h_zf2.js"),E=require("element-plus"),M=require("color-star-custom-components"),y=require("./chunks/request.D8T4MgGX.js"),L={class:"dialog-content"},P={key:0,class:"selection-area overflow-hidden"},B={class:"dialog-footer"},k={__name:"Dialog",props:{visible:{type:Boolean,default:!1},allVisible:{type:Boolean,default:t.RANGE_TYPES.ALL},modelValue:{type:Array,default:()=>[]},treeList:{type:Array,default:()=>[]}},emits:[s.emitsMap.updateVisible,s.emitsMap.save,s.emitsMap.cancel],setup(v,{emit:V}){const f=v,m=V,S=e.ref(!0),p=e.ref(f.allVisible),n=e.ref([...f.modelValue]),g=e.ref(),{selectedMembers:T,selectedDepartments:d}=t.useSelectionDisplay(n,e.computed(()=>f.treeList),!1),i=e.computed(()=>{const a=[];return d.value.forEach(o=>{a.push({...o,children:void 0})}),T.value.forEach(o=>{a.push({...o,children:void 0})}),a}),b=a=>{p.value=a,a===t.RANGE_TYPES.ALL&&(n.value=[])},h=a=>{const{selectedNode:o}=a;n.value=o||[]},A=()=>{m(s.emitsMap.cancel),m(s.emitsMap.updateVisible,!1)},_=()=>{m(s.emitsMap.save,{type:p.value,selectedItems:[...n.value]}),m(s.emitsMap.updateVisible,!1)};return(a,o)=>(e.openBlock(),e.createBlock(e.unref(E.ElDialog),{modelValue:S.value,"onUpdate:modelValue":o[2]||(o[2]=r=>S.value=r),title:a.t("COMMON_DICT.ENUMS.AVAILABLE_RANGE_SETTING"),"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":"",onClose:A,"modal-class":"available-range-setting-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("div",B,[e.createVNode(e.unref(E.ElButton),{onClick:A,plain:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.t("COMMON_BUTTON.CANCEL_TEXT")),1)]),_:1}),e.createVNode(e.unref(E.ElButton),{type:"primary",onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.t("COMMON_BUTTON.SAVE_TEXT")),1)]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",L,[e.createVNode(e.unref(E.ElRadioGroup),{class:"pd-b-16",modelValue:p.value,"onUpdate:modelValue":o[0]||(o[0]=r=>p.value=r),onChange:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.rangeOptions),r=>(e.openBlock(),e.createBlock(e.unref(E.ElRadio),{key:r.value,value:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),p.value===e.unref(t.RANGE_TYPES).PARTIAL?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(e.unref(M.TreeShowSelect),{modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=r=>n.value=r),ref_key:"treeRef",ref:g,treeProps:e.unref(t.availableRangeTreeProps),treeList:v.treeList,hasFilter:!0,rightTreeList:i.value,style:{height:"500px"},onGetCheckedNode:h},null,8,["modelValue","treeProps","treeList","rightTreeList"])])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","title"]))}},w=()=>{const{$request:v,$env:V}=y.getGlobalProperties();return{availableRangeApi:()=>v({url:`${V.VITE_APP_AUTH_BASE_URL}/api/v1/admin/member/search`,method:"get"})}},I={class:"available-range-setting w-full"},O=Object.assign({name:"AvailableRangeSetting"},{__name:"layout",props:{allVisible:{type:Boolean,default:t.RANGE_TYPES.ALL},modelValue:{type:Array,default:()=>[]},defaultShowCount:{type:Number,default:t.DEFAULT_SHOW_COUNT.one}},emits:[s.emitsMap.updateAllVisible,s.emitsMap.updateModelValue,s.emitsMap.change],setup(v,{expose:V,emit:f}){const m=v,{availableRangeApi:S}=w(),p=f,n=e.ref(!1),g=e.ref(!1),T=e.ref([]),d=e.ref(m.allVisible),i=e.ref(m.modelValue),b=e.ref(new Set(i.value?.map(l=>l.memberId))),h=()=>{g.value=!0,S().then(l=>{T.value=l?.data?.orgOptionSoList||[]}).finally(()=>{g.value=!1})},A=()=>{n.value=!0},_=l=>{d.value=l.type,i.value=l.selectedItems,b.value.clear(),i.value.forEach(u=>{b.value.add(u.memberId)}),p(s.emitsMap.updateAllVisible,d.value),p(s.emitsMap.updateModelValue,i.value),o()},a=()=>{n.value=!1},o=()=>{const l={allVisible:d.value,selectedItems:i.value};p(s.emitsMap.change,l)},r=e.ref(null),R=()=>{const l=r.value?.allSelectedItems||[];return{allVisible:d.value,visibleScope:l.map(c=>({memberId:c.memberId,memberName:c.memberName,memberType:c.memberType,bnid:c.bnid}))}};return e.watch(()=>m.allVisible,l=>{d.value=l},{immediate:!0}),e.watch(()=>m.modelValue,l=>{i.value=l||[],b.value.clear(),i.value.forEach(u=>{b.value.add(u.memberId)})},{immediate:!0}),e.onMounted(()=>{h()}),V({getSelectedItems:R}),(l,u)=>(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(e.unref(t.AvailableRangePreview),{allVisible:d.value,"model-value":i.value,"tree-list":T.value,"default-show-count":v.defaultShowCount,onEdit:A,ref_key:"previewRef",ref:r},null,8,["allVisible","model-value","tree-list","default-show-count"]),n.value?(e.openBlock(),e.createBlock(k,{key:0,visible:n.value,"onUpdate:visible":u[0]||(u[0]=c=>n.value=c),allVisible:d.value,"onUpdate:allVisible":u[1]||(u[1]=c=>d.value=c),modelValue:i.value,"onUpdate:modelValue":u[2]||(u[2]=c=>i.value=c),"tree-list":T.value,loading:g.value,onSave:_,onCancel:a},null,8,["visible","allVisible","modelValue","tree-list","loading"])):e.createCommentVNode("",!0)]))}}),N=C.withInstall(O);exports.DEFAULT_SHOW_COUNT=t.DEFAULT_SHOW_COUNT;exports.MEMBER_DEPARTMENT_TYPES=t.MEMBER_DEPARTMENT_TYPES;exports.PUBLISH_STATUS=t.PUBLISH_STATUS;exports.RANGE_TYPES=t.RANGE_TYPES;exports.availableRangeTreeProps=t.availableRangeTreeProps;exports.rangeOptions=t.rangeOptions;exports.AvailableRangeSetting=N;exports.default=N;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CommonTagsList.css');const B=require("./chunks/index.CkihWzK6.js"),e=require("vue"),u=require("element-plus"),y=require("./chunks/i18n.D3L1FBDI.js"),n=require("./chunks/config.CqfpM51B.js"),p=require("./chunks/index.D-pFPuUr.js"),N=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),v={class:"status-tag-content flex items-center"},E={class:"status-text fz-12"},C={__name:"StatusTag",props:{channelStatus:{type:[String,Number],default:null},inActive:{type:[String,Number],default:null},statusText:{type:String,default:null},showIcon:{type:Boolean,default:!1}},setup(a){const i=a,o=e.computed(()=>i.inActive===n.INACTIVE_ENUM.UNPUBLISHED?p.PUBLISH_STATUS.UNPUBLISHED:i.channelStatus),d=e.computed(()=>n.PUBLISH_STATUS_TYPE[o.value]),S=e.computed(()=>n.PUBLISH_STATUS_TEXT[o.value]),r=e.computed(()=>n.PUBLISH_STATUS_ICONS[o.value]),h=e.computed(()=>n.PUBLISH_STATUS_COLORS[o.value]);return(c,t)=>(e.openBlock(),e.createBlock(e.unref(u.ElTag),{type:d.value},{default:e.withCtx(()=>[e.createElementVNode("div",v,[a.showIcon&&r.value?(e.openBlock(),e.createBlock(e.unref(u.ElIcon),{key:0,color:h.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value)))]),_:1},8,["color"])):e.createCommentVNode("",!0),e.createElementVNode("span",E,e.toDisplayString(a.statusText||S.value),1)])]),_:1},8,["type"]))}},f=N._export_sfc(C,[["__scopeId","data-v-6ce5660c"]]),L={class:"common-content w-full overflow-y-auto",style:{"max-height":"200px"}},k={key:0,class:"content-item"},I={class:"content-item-top flex items-center"},b={class:"item-bottom-box mg-l-4 pd-t-8 flex flex-wrap"},U={key:1,class:"icon-placeholder w-full mg-t-4 mg-b-8 bg-e6e8ea",style:{height:"1px"}},A={key:0,class:"all-visible-ranges-section mg-t-12"},x={class:"channel-name fz-12 weight-500 mg-b-4 text-1f2329 flex items-center"},P={key:0,class:"range-separator w-full mg-t-8 mg-b-8 bg-e6e8ea",style:{height:"1px"}},V=Object.assign({name:"CommonTagsList"},{__name:"layout",props:{publishChannelList:{type:Array,default:()=>[]},sourceType:{type:[String,Number],default:null}},setup(a){const{t:i}=y.useI18n(),o=a,d=e.computed(()=>o.publishChannelList||[]),S=e.computed(()=>{if(!o.publishChannelList?.length)return[];const c=o.publishChannelList.reduce((t,s)=>{const m=s.inActive===n.INACTIVE_ENUM.UNPUBLISHED?p.PUBLISH_STATUS.UNPUBLISHED:s.channelStatus;return t[m]||(t[m]=[]),t[m].push(s),t},{});return Object.entries(c).map(([t,s])=>({status:parseInt(t),channels:s})).sort((t,s)=>s.status-t.status)}),r=e.computed(()=>{if(!o.publishChannelList?.length)return[];const c=i("COMMON_TAGS_LIST.UNKNOWN_CHANNEL");return o.publishChannelList.filter(t=>t.visibleScope&&t.visibleScope.length>0).map(t=>({channelName:n.RELEASE_CHANNEL_CONFIG[t.channelType]?.name(o.sourceType)||c,channelType:t.channelType,visibleScope:t.visibleScope,allVisible:t.allVisible}))}),h=c=>{const t=n.PUBLISH_TYPE_ICON_MAPPING[c];return n.CHANNEL_ICON_CONFIG[t]};return(c,t)=>(e.openBlock(),e.createElementBlock("div",{class:"commont-status-box",onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(s,m)=>(e.openBlock(),e.createBlock(e.unref(u.ElPopover),{key:m,placement:"bottom",trigger:"click",width:"300"},{reference:e.withCtx(()=>[e.createVNode(f,{"channel-status":s.channelStatus,"in-active":s.inActive,"status-text":e.unref(n.RELEASE_CHANNEL_CONFIG)?.[s.channelType]?.name(a.sourceType),"show-icon":!0,class:"mg-r-4 mg-b-4"},null,8,["channel-status","in-active","status-text"])]),default:e.withCtx(()=>[e.createElementVNode("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.status},[l.channels.length>0?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",I,[e.createVNode(e.unref(u.ElIcon),{style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.PUBLISH_STATUS_ICONS)[l.status])))]),_:2},1032,["style"]),e.createElementVNode("div",{class:"content-item-name fz-14 mg-l-4",style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[l.status])+"("+e.toDisplayString(l.channels.length)+") ",5)]),e.createElementVNode("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.channels,T=>(e.openBlock(),e.createElementBlock("div",{class:"b-item-box mg-r-8 radius-4 fz-12 pd-t-4 pd-b-4 pd-l-8 pd-r-8 mg-b-8 text-1f2329 bg-f5f6f7",key:T.channelType},e.toDisplayString(e.unref(n.RELEASE_CHANNEL_CONFIG)?.[T.channelType]?.name(a.sourceType)),1))),128))])])):e.createCommentVNode("",!0),_<S.value.length-1?(e.openBlock(),e.createElementBlock("div",U)):e.createCommentVNode("",!0)],64))),128)),r.value.length>0?(e.openBlock(),e.createElementBlock("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(l,_)=>(e.openBlock(),e.createElementBlock("div",{key:l.channelType,class:"channel-visible-range"},[e.createElementVNode("div",x,[e.createVNode(e.unref(u.ElIcon),{class:"mg-r-2",size:"14"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h(l.channelType)?.icon)))]),_:2},1024),e.createTextVNode(" "+e.toDisplayString(l.channelName)+" "+e.toDisplayString(e.unref(i)("COMMON_TAGS_LIST.AVAILABLE_SCOPE")),1)]),e.createVNode(e.unref(p.AvailableRangePreview),{"all-visible":l.allVisible,"model-value":l.visibleScope,"tree-list":[],readonly:!0},null,8,["all-visible","model-value"]),_<r.value.length-1?(e.openBlock(),e.createElementBlock("div",P)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)])]),_:2},1024))),128)),a.publishChannelList?.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(u.ElTag),{key:0,type:e.unref(n.PUBLISH_STATUS_TYPE)[e.unref(p.PUBLISH_STATUS).UNPUBLISHED]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[e.unref(p.PUBLISH_STATUS).UNPUBLISHED]),1)]),_:1},8,["type"]))]))}}),g=B.withInstall(V);exports.CommonTagsList=g;exports.StatusTag=f;exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CommonTagsList.css');const B=require("./chunks/index.CkihWzK6.js"),e=require("vue"),u=require("element-plus"),y=require("./chunks/i18n.Bzvn6t8H.js"),n=require("./chunks/config.Dwnp4fRZ.js"),p=require("./chunks/index.DO3h_zf2.js"),N=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),v={class:"status-tag-content flex items-center"},E={class:"status-text fz-12"},C={__name:"StatusTag",props:{channelStatus:{type:[String,Number],default:null},inActive:{type:[String,Number],default:null},statusText:{type:String,default:null},showIcon:{type:Boolean,default:!1}},setup(a){const i=a,o=e.computed(()=>i.inActive===n.INACTIVE_ENUM.UNPUBLISHED?p.PUBLISH_STATUS.UNPUBLISHED:i.channelStatus),d=e.computed(()=>n.PUBLISH_STATUS_TYPE[o.value]),S=e.computed(()=>n.PUBLISH_STATUS_TEXT[o.value]),r=e.computed(()=>n.PUBLISH_STATUS_ICONS[o.value]),h=e.computed(()=>n.PUBLISH_STATUS_COLORS[o.value]);return(c,t)=>(e.openBlock(),e.createBlock(e.unref(u.ElTag),{type:d.value},{default:e.withCtx(()=>[e.createElementVNode("div",v,[a.showIcon&&r.value?(e.openBlock(),e.createBlock(e.unref(u.ElIcon),{key:0,color:h.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value)))]),_:1},8,["color"])):e.createCommentVNode("",!0),e.createElementVNode("span",E,e.toDisplayString(a.statusText||S.value),1)])]),_:1},8,["type"]))}},f=N._export_sfc(C,[["__scopeId","data-v-6ce5660c"]]),L={class:"common-content w-full overflow-y-auto",style:{"max-height":"200px"}},k={key:0,class:"content-item"},I={class:"content-item-top flex items-center"},b={class:"item-bottom-box mg-l-4 pd-t-8 flex flex-wrap"},U={key:1,class:"icon-placeholder w-full mg-t-4 mg-b-8 bg-e6e8ea",style:{height:"1px"}},A={key:0,class:"all-visible-ranges-section mg-t-12"},x={class:"channel-name fz-12 weight-500 mg-b-4 text-1f2329 flex items-center"},P={key:0,class:"range-separator w-full mg-t-8 mg-b-8 bg-e6e8ea",style:{height:"1px"}},V=Object.assign({name:"CommonTagsList"},{__name:"layout",props:{publishChannelList:{type:Array,default:()=>[]},sourceType:{type:[String,Number],default:null}},setup(a){const{t:i}=y.useI18n(),o=a,d=e.computed(()=>o.publishChannelList||[]),S=e.computed(()=>{if(!o.publishChannelList?.length)return[];const c=o.publishChannelList.reduce((t,s)=>{const m=s.inActive===n.INACTIVE_ENUM.UNPUBLISHED?p.PUBLISH_STATUS.UNPUBLISHED:s.channelStatus;return t[m]||(t[m]=[]),t[m].push(s),t},{});return Object.entries(c).map(([t,s])=>({status:parseInt(t),channels:s})).sort((t,s)=>s.status-t.status)}),r=e.computed(()=>{if(!o.publishChannelList?.length)return[];const c=i("COMMON_TAGS_LIST.UNKNOWN_CHANNEL");return o.publishChannelList.filter(t=>t.visibleScope&&t.visibleScope.length>0).map(t=>({channelName:n.RELEASE_CHANNEL_CONFIG[t.channelType]?.name(o.sourceType)||c,channelType:t.channelType,visibleScope:t.visibleScope,allVisible:t.allVisible}))}),h=c=>{const t=n.PUBLISH_TYPE_ICON_MAPPING[c];return n.CHANNEL_ICON_CONFIG[t]};return(c,t)=>(e.openBlock(),e.createElementBlock("div",{class:"commont-status-box",onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(s,m)=>(e.openBlock(),e.createBlock(e.unref(u.ElPopover),{key:m,placement:"bottom",trigger:"click",width:"300"},{reference:e.withCtx(()=>[e.createVNode(f,{"channel-status":s.channelStatus,"in-active":s.inActive,"status-text":e.unref(n.RELEASE_CHANNEL_CONFIG)?.[s.channelType]?.name(a.sourceType),"show-icon":!0,class:"mg-r-4 mg-b-4"},null,8,["channel-status","in-active","status-text"])]),default:e.withCtx(()=>[e.createElementVNode("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.status},[l.channels.length>0?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",I,[e.createVNode(e.unref(u.ElIcon),{style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.PUBLISH_STATUS_ICONS)[l.status])))]),_:2},1032,["style"]),e.createElementVNode("div",{class:"content-item-name fz-14 mg-l-4",style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[l.status])+"("+e.toDisplayString(l.channels.length)+") ",5)]),e.createElementVNode("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.channels,T=>(e.openBlock(),e.createElementBlock("div",{class:"b-item-box mg-r-8 radius-4 fz-12 pd-t-4 pd-b-4 pd-l-8 pd-r-8 mg-b-8 text-1f2329 bg-f5f6f7",key:T.channelType},e.toDisplayString(e.unref(n.RELEASE_CHANNEL_CONFIG)?.[T.channelType]?.name(a.sourceType)),1))),128))])])):e.createCommentVNode("",!0),_<S.value.length-1?(e.openBlock(),e.createElementBlock("div",U)):e.createCommentVNode("",!0)],64))),128)),r.value.length>0?(e.openBlock(),e.createElementBlock("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(l,_)=>(e.openBlock(),e.createElementBlock("div",{key:l.channelType,class:"channel-visible-range"},[e.createElementVNode("div",x,[e.createVNode(e.unref(u.ElIcon),{class:"mg-r-2",size:"14"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h(l.channelType)?.icon)))]),_:2},1024),e.createTextVNode(" "+e.toDisplayString(l.channelName)+" "+e.toDisplayString(e.unref(i)("COMMON_TAGS_LIST.AVAILABLE_SCOPE")),1)]),e.createVNode(e.unref(p.AvailableRangePreview),{"all-visible":l.allVisible,"model-value":l.visibleScope,"tree-list":[],readonly:!0},null,8,["all-visible","model-value"]),_<r.value.length-1?(e.openBlock(),e.createElementBlock("div",P)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)])]),_:2},1024))),128)),a.publishChannelList?.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(u.ElTag),{key:0,type:e.unref(n.PUBLISH_STATUS_TYPE)[e.unref(p.PUBLISH_STATUS).UNPUBLISHED]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[e.unref(p.PUBLISH_STATUS).UNPUBLISHED]),1)]),_:1},8,["type"]))]))}}),g=B.withInstall(V);exports.CommonTagsList=g;exports.StatusTag=f;exports.default=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/layout.DL-8uhpw.js");exports.CustomSidebar=e.layout;exports.MENU_COLOR_STRATEGY=e.MENU_COLOR_STRATEGY;exports.MENU_LOADING_STATES=e.MENU_LOADING_STATES;exports.MENU_TYPE=e.MENU_TYPE;exports.NODE_CLICK_TYPES=e.NODE_CLICK_TYPES;exports.SPECIAL_ROUTES=e.SPECIAL_ROUTES;exports.TREE_PROPS=e.TREE_PROPS;exports.collapseNodeKeys=e.collapseNodeKeys;exports.expandNodeKeys=e.expandNodeKeys;exports.findExpandPath=e.findExpandPath;exports.findExpandPathById=e.findExpandPathById;exports.findMenuByPath=e.findMenuByPath;exports.getFirstLeafMenu=e.getFirstLeafMenu;exports.getMenuIconColorById=e.getMenuIconColorById;exports.getParentNodeIdsById=e.getParentNodeIdsById;exports.isParentMenuActive=e.isParentMenuActive;exports.isParentRouteActive=e.isParentRouteActive;exports.isPathInMenu=e.isPathInMenu;exports.processMenuTreeWithLeaf=e.processMenuTreeWithLeaf;exports.transformMenuData=e.transformMenuData;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/layout.B6GgWqWq.js");exports.CustomSidebar=e.layout;exports.MENU_COLOR_STRATEGY=e.MENU_COLOR_STRATEGY;exports.MENU_LOADING_STATES=e.MENU_LOADING_STATES;exports.MENU_TYPE=e.MENU_TYPE;exports.NODE_CLICK_TYPES=e.NODE_CLICK_TYPES;exports.SPECIAL_ROUTES=e.SPECIAL_ROUTES;exports.TREE_PROPS=e.TREE_PROPS;exports.collapseNodeKeys=e.collapseNodeKeys;exports.expandNodeKeys=e.expandNodeKeys;exports.findExpandPath=e.findExpandPath;exports.findExpandPathById=e.findExpandPathById;exports.findMenuByPath=e.findMenuByPath;exports.getFirstLeafMenu=e.getFirstLeafMenu;exports.getMenuIconColorById=e.getMenuIconColorById;exports.getParentNodeIdsById=e.getParentNodeIdsById;exports.isParentMenuActive=e.isParentMenuActive;exports.isParentRouteActive=e.isParentRouteActive;exports.isPathInMenu=e.isPathInMenu;exports.processMenuTreeWithLeaf=e.processMenuTreeWithLeaf;exports.transformMenuData=e.transformMenuData;