aibox-custom-component-packages 0.0.7 → 0.0.8

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 (182) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +309 -259
  2. package/es/ApplicationTypeTag.mjs +14 -14
  3. package/es/AuthSection.mjs +11 -11
  4. package/es/AutoShowTooltip.mjs +1 -1
  5. package/es/AvailableRangePreview.mjs +1 -1
  6. package/es/AvailableRangeSetting.mjs +9 -5
  7. package/es/CodeView.mjs +1 -1
  8. package/es/CommonTagsList.mjs +5 -5
  9. package/es/CreateMcpForm.mjs +13 -12
  10. package/es/CustomSidebar.mjs +159 -154
  11. package/es/CustomTitle.mjs +1 -1
  12. package/es/CustomToggle.mjs +131 -77
  13. package/es/DocSyncSelect.mjs +2661 -0
  14. package/es/FileDisplay.mjs +2 -4
  15. package/es/FilePreview.mjs +16 -16
  16. package/es/FileUploader.mjs +71 -74
  17. package/es/Logo.mjs +72 -0
  18. package/es/McpFormDialog.mjs +1 -1
  19. package/es/McpParamsSet.mjs +34 -34
  20. package/es/MdEditor.mjs +2 -2
  21. package/es/PageContainer.mjs +438 -216
  22. package/es/ParameterTable.mjs +23 -21
  23. package/es/PublishRecord.mjs +58 -57
  24. package/es/RadioGroup.mjs +1 -1
  25. package/es/SourcePublish.mjs +95 -93
  26. package/es/Table.mjs +2 -2
  27. package/es/assets/AddOrEditSupplierDialog.css +1 -1
  28. package/es/assets/AiboxTable.css +1 -1
  29. package/es/assets/ApplicationTypeTag.css +1 -1
  30. package/es/assets/AuthSection.css +1 -1
  31. package/es/assets/AutoShowTooltip.css +1 -1
  32. package/es/assets/CommonTagsList.css +1 -1
  33. package/es/assets/CreateMcpForm.css +1 -1
  34. package/es/assets/CustomSidebar.css +1 -1
  35. package/es/assets/CustomToggle.css +1 -1
  36. package/es/assets/DocSyncSelect.css +1 -0
  37. package/es/assets/FilePreview.css +1 -1
  38. package/es/assets/Logo.css +1 -0
  39. package/es/assets/McpParamsSet.css +1 -1
  40. package/es/assets/MdEditor.css +1 -1
  41. package/es/assets/PageContainer.css +1 -1
  42. package/es/assets/ParameterTable.css +1 -1
  43. package/es/assets/PublishRecord.css +1 -1
  44. package/es/assets/RadioGroup.css +1 -1
  45. package/es/assets/SourcePublish.css +1 -1
  46. package/es/assets/index.css +1 -1
  47. package/es/assets/index2.css +1 -1
  48. package/es/assets/index3.css +1 -1
  49. package/es/assets/index4.css +1 -1
  50. package/es/assets/layout.css +1 -1
  51. package/es/chunks/{BackBar.B5Er8ZdJ.js → AiboxTable.CF4T_OCu.js} +122 -122
  52. package/es/chunks/enums.WrpwbF4w.js +14 -0
  53. package/es/chunks/index.BDd6hHiU.js +172 -0
  54. package/es/chunks/{index.CLyfh6p1.js → index.CF_YHLP5.js} +16 -16
  55. package/es/chunks/index.DdD1VsH1.js +396 -0
  56. package/es/chunks/index.Dx-mCS4E.js +1298 -0
  57. package/es/chunks/layout.CygCXa6s.js +26 -0
  58. package/es/chunks/{usePreview.C36fNlVd.js → usePreview.BHvXwaNi.js} +82 -78
  59. package/es/index.mjs +409 -325
  60. package/index.css +1 -1
  61. package/lib/AddOrEditSupplierDialog.js +1 -1
  62. package/lib/ApplicationTypeTag.js +1 -1
  63. package/lib/AuthSection.js +1 -1
  64. package/lib/AutoShowTooltip.js +1 -1
  65. package/lib/AvailableRangePreview.js +1 -1
  66. package/lib/AvailableRangeSetting.js +1 -1
  67. package/lib/CodeView.js +1 -1
  68. package/lib/CommonTagsList.js +1 -1
  69. package/lib/CreateMcpForm.js +1 -1
  70. package/lib/CustomSidebar.js +1 -1
  71. package/lib/CustomTitle.js +1 -1
  72. package/lib/CustomToggle.js +1 -1
  73. package/lib/DocSyncSelect.js +2 -0
  74. package/lib/FileDisplay.js +1 -1
  75. package/lib/FilePreview.js +1 -1
  76. package/lib/FileUploader.js +1 -1
  77. package/lib/Logo.js +1 -0
  78. package/lib/McpFormDialog.js +1 -1
  79. package/lib/McpParamsSet.js +1 -1
  80. package/lib/MdEditor.js +1 -1
  81. package/lib/PageContainer.js +1 -1
  82. package/lib/ParameterTable.js +1 -1
  83. package/lib/PublishRecord.js +2 -2
  84. package/lib/RadioGroup.js +1 -1
  85. package/lib/SourcePublish.js +1 -1
  86. package/lib/Table.js +1 -1
  87. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  88. package/lib/assets/AiboxTable.css +1 -1
  89. package/lib/assets/ApplicationTypeTag.css +1 -1
  90. package/lib/assets/AuthSection.css +1 -1
  91. package/lib/assets/AutoShowTooltip.css +1 -1
  92. package/lib/assets/CommonTagsList.css +1 -1
  93. package/lib/assets/CreateMcpForm.css +1 -1
  94. package/lib/assets/CustomSidebar.css +1 -1
  95. package/lib/assets/CustomToggle.css +1 -1
  96. package/lib/assets/DocSyncSelect.css +1 -0
  97. package/lib/assets/FilePreview.css +1 -1
  98. package/lib/assets/Logo.css +1 -0
  99. package/lib/assets/McpParamsSet.css +1 -1
  100. package/lib/assets/MdEditor.css +1 -1
  101. package/lib/assets/PageContainer.css +1 -1
  102. package/lib/assets/ParameterTable.css +1 -1
  103. package/lib/assets/PublishRecord.css +1 -1
  104. package/lib/assets/RadioGroup.css +1 -1
  105. package/lib/assets/SourcePublish.css +1 -1
  106. package/lib/assets/index.css +1 -1
  107. package/lib/assets/index2.css +1 -1
  108. package/lib/assets/index3.css +1 -1
  109. package/lib/assets/index4.css +1 -1
  110. package/lib/assets/layout.css +1 -1
  111. package/lib/chunks/AiboxTable.CJOPGJtU.js +1 -0
  112. package/lib/chunks/enums.DpU2er5r.js +1 -0
  113. package/lib/chunks/index.BNivYbtq.js +1 -0
  114. package/lib/chunks/{index.DME62Yfo.js → index.B_keI1Aq.js} +1 -1
  115. package/lib/chunks/index.C7aZx6RG.js +6 -0
  116. package/lib/chunks/index.CJFk1R2u.js +59 -0
  117. package/lib/chunks/layout.DbBSbLgm.js +1 -0
  118. package/lib/chunks/usePreview.BojIDW7Z.js +1 -0
  119. package/lib/index.js +2 -1
  120. package/package.json +2 -2
  121. package/es/ExampleComponent.mjs +0 -35
  122. package/es/assets/BackBar.css +0 -1
  123. package/es/assets/ExampleComponent.css +0 -1
  124. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  125. package/es/chunks/BackBar.Cv1wxUcM.js +0 -645
  126. package/es/chunks/BackBar.DJV4JaUM.js +0 -645
  127. package/es/chunks/config.8htFF04x.js +0 -325
  128. package/es/chunks/config.BPp4hMBq.js +0 -325
  129. package/es/chunks/config.BU21Gda2.js +0 -49
  130. package/es/chunks/config.BzCGum_W.js +0 -49
  131. package/es/chunks/config.CFWGjEdA.js +0 -49
  132. package/es/chunks/config.CfWAdyUH.js +0 -325
  133. package/es/chunks/config.DTMcCH58.js +0 -325
  134. package/es/chunks/config.DqhQdkz7.js +0 -325
  135. package/es/chunks/enums.CfSBDD6u.js +0 -83
  136. package/es/chunks/enums.DuBbLcd-.js +0 -83
  137. package/es/chunks/i18n.DmqkiK-h.js +0 -444
  138. package/es/chunks/i18n.Vhq-tZPw.js +0 -94
  139. package/es/chunks/i18n.ro9yz7rE.js +0 -94
  140. package/es/chunks/index.BSA3IKSF.js +0 -111
  141. package/es/chunks/index.CgbxJCEU.js +0 -265
  142. package/es/chunks/index.CuDwuRO7.js +0 -265
  143. package/es/chunks/index.DB0ayMv8.js +0 -257
  144. package/es/chunks/index.DWR4lc30.js +0 -203
  145. package/es/chunks/index.GuEzdh6b.js +0 -257
  146. package/es/chunks/index.aMb6IVQD.js +0 -257
  147. package/es/chunks/index.ml5i7aB5.js +0 -257
  148. package/es/chunks/index.s-YxIOfq.js +0 -301
  149. package/es/chunks/index.uOZzvHrF.js +0 -135
  150. package/es/chunks/publish.BCb7nCo9.js +0 -50
  151. package/es/chunks/publish.D6friivo.js +0 -50
  152. package/es/chunks/publish.Dqzn7qEl.js +0 -50
  153. package/es/i18n.mjs +0 -17
  154. package/lib/ExampleComponent.js +0 -1
  155. package/lib/assets/BackBar.css +0 -1
  156. package/lib/assets/ExampleComponent.css +0 -1
  157. package/lib/chunks/BackBar.C8Xrc6qW.js +0 -1
  158. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  159. package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
  160. package/lib/chunks/config.B0XKkp1w.js +0 -1
  161. package/lib/chunks/config.BCAuBVxV.js +0 -1
  162. package/lib/chunks/config.Bs7sh3aP.js +0 -1
  163. package/lib/chunks/config.C1w4hgfw.js +0 -1
  164. package/lib/chunks/config.ClERt2RF.js +0 -1
  165. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  166. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  167. package/lib/chunks/i18n.aAXi5igh.js +0 -1
  168. package/lib/chunks/index.BNqTEn3K.js +0 -1
  169. package/lib/chunks/index.BZcSlgOO.js +0 -1
  170. package/lib/chunks/index.Bk-RwmaH.js +0 -1
  171. package/lib/chunks/index.BsN4urmi.js +0 -1
  172. package/lib/chunks/index.D7wBInWr.js +0 -1
  173. package/lib/chunks/index.DWohILMv.js +0 -1
  174. package/lib/chunks/index.LK2ulXTE.js +0 -1
  175. package/lib/chunks/index.qDAoOzk9.js +0 -1
  176. package/lib/chunks/index.s8vGOJKG.js +0 -1
  177. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  178. package/lib/chunks/publish.CA1uSVnm.js +0 -1
  179. package/lib/chunks/usePreview.E5SeS2uw.js +0 -1
  180. package/lib/i18n.js +0 -1
  181. /package/es/assets/{index6.css → legacy.css} +0 -0
  182. /package/lib/assets/{index6.css → legacy.css} +0 -0
@@ -1,10 +1,10 @@
1
- import { w as $ } from "./chunks/index.bCzIhWFw.js";
2
- import { createElementBlock as p, openBlock as s, createVNode as y, createElementVNode as d, createBlock as g, createCommentVNode as I, unref as u, withCtx as m, normalizeStyle as k, toDisplayString as x, resolveDynamicComponent as T, ref as A, watch as B, nextTick as D, normalizeClass as w, withModifiers as K, computed as W, Fragment as C, renderList as H, Transition as V, withDirectives as Y, vShow as G } from "vue";
3
- import { ElIcon as O, ElAutoResizer as q, ElTreeV2 as J } from "element-plus";
4
- import { AiboxIcon as Q } from "color-message-aibox-vue";
5
- import { _ as N } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
- import { IconRenderer as X, iconLibraryMap as Z } from "color-star-custom-components";
7
- import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidden" }, ee = /* @__PURE__ */ Object.assign({
1
+ import { w as B } from "./chunks/index.bCzIhWFw.js";
2
+ import { createElementBlock as y, openBlock as a, createVNode as h, createElementVNode as d, createBlock as g, createCommentVNode as I, unref as u, withCtx as m, normalizeStyle as O, toDisplayString as N, resolveDynamicComponent as C, ref as E, watch as D, nextTick as K, normalizeClass as T, withModifiers as W, computed as U, markRaw as H, toRaw as V, Fragment as w, renderList as Y, Transition as G, withDirectives as q, vShow as J } from "vue";
3
+ import { ElIcon as k, ElAutoResizer as Q, ElTreeV2 as X } from "element-plus";
4
+ import { AiboxIcon as Z } from "color-message-aibox-vue";
5
+ import { _ as S } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import { IconRenderer as _, iconLibraryMap as ee } from "color-star-custom-components";
7
+ import './assets/CustomSidebar.css';const te = { class: "nav-title overflow-hidden" }, ne = /* @__PURE__ */ Object.assign({
8
8
  name: "NavTitle"
9
9
  }, {
10
10
  __name: "NavTitle",
@@ -40,117 +40,117 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
40
40
  const t = n, o = () => {
41
41
  t("toggle");
42
42
  };
43
- return (l, h) => (s(), p("div", _, [
44
- y(u(O), { size: e.logoSize }, {
43
+ return (l, f) => (a(), y("div", te, [
44
+ h(u(k), { size: e.logoSize }, {
45
45
  default: m(() => [
46
- y(u(Q))
46
+ h(u(Z))
47
47
  ]),
48
48
  _: 1
49
49
  }, 8, ["size"]),
50
50
  d("span", {
51
51
  class: "weight-500 text-1f2329 title-text",
52
- style: k(e.titleStyle)
53
- }, x(e.title), 5),
54
- e.showToggle ? (s(), g(u(O), {
52
+ style: O(e.titleStyle)
53
+ }, N(e.title), 5),
54
+ e.showToggle ? (a(), g(u(k), {
55
55
  key: 0,
56
56
  size: 18,
57
57
  class: "collapse-unfold-icon",
58
58
  onClick: o
59
59
  }, {
60
60
  default: m(() => [
61
- (s(), g(T(e.toggleIcon)))
61
+ (a(), g(C(e.toggleIcon)))
62
62
  ]),
63
63
  _: 1
64
64
  })) : I("", !0)
65
65
  ]));
66
66
  }
67
- }), te = /* @__PURE__ */ N(ee, [["__scopeId", "data-v-384d20d1"]]), M = {
67
+ }), oe = /* @__PURE__ */ S(ne, [["__scopeId", "data-v-52011bbe"]]), M = {
68
68
  DIR: "DIR",
69
69
  // 目录
70
70
  MENU: "MENU",
71
71
  // 菜单
72
72
  BUTTON: "BUTTON"
73
73
  // 按钮
74
- }, ne = /* @__PURE__ */ new Map([
74
+ }, le = /* @__PURE__ */ new Map([
75
75
  ["active", "#3271FE"],
76
76
  ["parent_active", "#3271FE"],
77
77
  ["normal", "#1F2329"]
78
- ]), oe = (e, n) => !Array.isArray(e) || !n ? !1 : e.some((t) => t.path === n ? !0 : t.children?.length > 0 ? oe(t.children, n) : !1), le = (e, n = 1) => e.filter((o) => [M.DIR, M.MENU].includes(o.type)).map((o) => ({
78
+ ]), ie = (e, n) => !Array.isArray(e) || !n ? !1 : e.some((t) => t.path === n ? !0 : t.children?.length > 0 ? ie(t.children, n) : !1), re = (e, n = 1) => e.filter((o) => [M.DIR, M.MENU].includes(o.type)).map((o) => ({
79
79
  ...o,
80
80
  id: o.bnid,
81
81
  name: o.name,
82
82
  path: o?.path || "",
83
- children: o.children?.length > 0 ? le(o.children || [], n + 1) : [],
83
+ children: o.children?.length > 0 ? re(o.children || [], n + 1) : [],
84
84
  level: n
85
- })), ie = (e, n) => e?.children?.length ? e.children.some(
86
- (t) => t?.path === n || t.children?.length && ie(t, n)
85
+ })), se = (e, n) => e?.children?.length ? e.children.some(
86
+ (t) => t?.path === n || t.children?.length && se(t, n)
87
87
  ) : !1, z = (e, n) => e?.children?.length ? e.children.some(
88
88
  (t) => t?.id === n || t.children?.length && z(t, n)
89
- ) : !1, re = (e, n) => {
89
+ ) : !1, ae = (e, n) => {
90
90
  const t = e?.id === n, o = z(e, n);
91
91
  let l = "normal";
92
- return t ? l = "active" : o && (l = "parent_active"), ne.get(l);
93
- }, $e = (e, n) => e.includes(n) ? e : [...e, n], Be = (e, n) => e.filter((t) => t !== n), se = (e, n, t = []) => e.some((o) => {
92
+ return t ? l = "active" : o && (l = "parent_active"), le.get(l);
93
+ }, De = (e, n) => e.includes(n) ? e : [...e, n], Ke = (e, n) => e.filter((t) => t !== n), ce = (e, n, t = []) => e.some((o) => {
94
94
  if (o?.path === n)
95
95
  return !0;
96
96
  if (o.children?.length > 0) {
97
97
  t.push(o.id);
98
- const l = se(o.children, n, t);
98
+ const l = ce(o.children, n, t);
99
99
  return l || t.pop(), l;
100
100
  }
101
101
  return !1;
102
- }), U = (e, n, t = []) => e.some((o) => {
102
+ }), R = (e, n, t = []) => e.some((o) => {
103
103
  if (o?.id === n)
104
104
  return !0;
105
105
  if (o.children?.length > 0) {
106
106
  t.push(o.id);
107
- const l = U(o.children, n, t);
107
+ const l = R(o.children, n, t);
108
108
  return l || t.pop(), l;
109
109
  }
110
110
  return !1;
111
- }), De = (e, n) => {
111
+ }), We = (e, n) => {
112
112
  const t = [];
113
- return U(e, n, t), t;
114
- }, ae = (e, n) => {
113
+ return R(e, n, t), t;
114
+ }, ue = (e, n) => {
115
115
  if (!Array.isArray(e) || !n) return null;
116
116
  for (const t of e) {
117
117
  if (t.path === n)
118
118
  return t;
119
119
  if (t.children?.length > 0) {
120
- const o = ae(t.children, n);
120
+ const o = ue(t.children, n);
121
121
  if (o) return o;
122
122
  }
123
123
  }
124
124
  return null;
125
- }, ce = (e) => Array.isArray(e) ? e.map((n) => {
125
+ }, de = (e) => Array.isArray(e) ? e.map((n) => {
126
126
  const t = { ...n };
127
- return t.children && Array.isArray(t.children) && t.children.length > 0 ? t.children = ce(t.children) : t.isLeaf = !0, t;
128
- }) : [], ue = (e) => {
127
+ return t.children && Array.isArray(t.children) && t.children.length > 0 ? t.children = de(t.children) : t.isLeaf = !0, t;
128
+ }) : [], fe = (e) => {
129
129
  if (!Array.isArray(e) || e.length === 0) return null;
130
130
  for (const n of e) {
131
131
  if (n.isLeaf && n.path)
132
132
  return n;
133
133
  if (n.children?.length > 0) {
134
- const t = ue(n.children);
134
+ const t = fe(n.children);
135
135
  if (t) return t;
136
136
  }
137
137
  }
138
138
  return null;
139
- }, Ke = ["/404", "/login", "/unauthorized"], j = {
139
+ }, He = ["/404", "/login", "/unauthorized"], j = {
140
140
  label: "name",
141
141
  children: "children",
142
142
  isLeaf: "isLeaf"
143
143
  }, P = {
144
144
  PARENT: "parent",
145
145
  LEAF: "leaf"
146
- }, We = {
146
+ }, Ve = {
147
147
  LOADING: "loading",
148
148
  LOADED: "loaded",
149
149
  ERROR: "error"
150
150
  }, v = {
151
151
  POPUP: "popup",
152
152
  FOOTER: "footer"
153
- }, de = { class: "node-label" }, fe = ["onClick"], pe = /* @__PURE__ */ Object.assign({
153
+ }, pe = { class: "node-label" }, ye = ["onClick"], he = /* @__PURE__ */ Object.assign({
154
154
  name: "MenuList"
155
155
  }, {
156
156
  __name: "MenuList",
@@ -218,34 +218,34 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
218
218
  },
219
219
  emits: ["node-click", "node-expand", "node-collapse"],
220
220
  setup(e, { emit: n }) {
221
- const t = e, o = n, l = A(null), h = (r) => r?.icon && r.level === 1 || !r.isLeaf, c = (r) => re(r, t.currentMenuId), b = (r) => {
222
- const E = r.isLeaf ? P.LEAF : P.PARENT;
223
- o("node-click", r, E);
224
- }, a = (r) => {
225
- o("node-expand", r.id, r);
226
- }, i = (r) => {
227
- o("node-collapse", r.id, r);
228
- }, S = (r) => {
221
+ const t = e, o = n, l = E(null), f = (s) => s?.icon && s.level === 1 || !s.isLeaf, c = (s) => ae(s, t.currentMenuId), b = (s) => {
222
+ const A = s.isLeaf ? P.LEAF : P.PARENT;
223
+ o("node-click", s, A);
224
+ }, i = (s) => {
225
+ o("node-expand", s.id, s);
226
+ }, r = (s) => {
227
+ o("node-collapse", s.id, s);
228
+ }, x = (s) => {
229
229
  if (!l.value) return;
230
- t.expandedKeys.includes(r.data.id) ? l.value.collapseNode(r) : l.value.expandNode(r);
230
+ t.expandedKeys.includes(s.data.id) ? l.value.collapseNode(s) : l.value.expandNode(s);
231
231
  };
232
- return B(
232
+ return D(
233
233
  () => t.expandedKeys,
234
- (r) => {
235
- D(() => {
236
- l.value && l.value.setExpandedKeys([...r]);
234
+ (s) => {
235
+ K(() => {
236
+ l.value && l.value.setExpandedKeys([...s]);
237
237
  });
238
238
  },
239
239
  { deep: !0 }
240
- ), (r, E) => (s(), g(u(q), { class: "flex-1 overflow-hidden" }, {
241
- default: m(({ height: F }) => [
242
- y(u(J), {
240
+ ), (s, A) => (a(), g(u(Q), { class: "flex-1 overflow-hidden" }, {
241
+ default: m(({ height: $ }) => [
242
+ h(u(X), {
243
243
  ref_key: "treeRef",
244
244
  ref: l,
245
245
  "node-key": "id",
246
246
  data: e.menuData,
247
247
  props: e.treeProps,
248
- height: F,
248
+ height: $,
249
249
  "current-node-key": e.currentMenuId,
250
250
  "highlight-current": !0,
251
251
  "expanded-keys": e.expandedKeys,
@@ -253,50 +253,50 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
253
253
  "item-size": e.itemHeight + 8,
254
254
  "expand-on-click-node": !1,
255
255
  indent: e.indent,
256
- style: k({ "--select-menu-bg": e.selectMenuBg }),
256
+ style: O({ "--select-menu-bg": e.selectMenuBg }),
257
257
  onNodeClick: b,
258
- onNodeExpand: a,
259
- onNodeCollapse: i,
258
+ onNodeExpand: i,
259
+ onNodeCollapse: r,
260
260
  class: "custom-tree"
261
261
  }, {
262
- default: m(({ node: L, data: f }) => [
262
+ default: m(({ node: L, data: p }) => [
263
263
  d("div", {
264
- class: w(["tree-node-content-custom", {
265
- "has-children": !f.isLeaf,
266
- "is-current": f.id === e.currentMenuId && f.isLeaf,
267
- "is-parent-active": u(z)(f, e.currentMenuId) && !f.isLeaf
264
+ class: T(["tree-node-content-custom", {
265
+ "has-children": !p.isLeaf,
266
+ "is-current": p.id === e.currentMenuId && p.isLeaf,
267
+ "is-parent-active": u(z)(p, e.currentMenuId) && !p.isLeaf
268
268
  }])
269
269
  }, [
270
- h(f) ? (s(), g(u(O), {
270
+ f(p) ? (a(), g(u(k), {
271
271
  key: 0,
272
272
  size: e.iconSize,
273
273
  class: "node-icon",
274
- color: c(f)
274
+ color: c(p)
275
275
  }, {
276
276
  default: m(() => [
277
- y(u(X), {
278
- "icon-name": f?.icon,
279
- "icon-library": u(Z).aibox
277
+ h(u(_), {
278
+ "icon-name": p?.icon,
279
+ "icon-library": u(ee).aibox
280
280
  }, null, 8, ["icon-name", "icon-library"])
281
281
  ]),
282
282
  _: 2
283
283
  }, 1032, ["size", "color"])) : I("", !0),
284
- d("span", de, x(L.label), 1),
285
- f.isLeaf ? I("", !0) : (s(), p("div", {
284
+ d("span", pe, N(L.label), 1),
285
+ p.isLeaf ? I("", !0) : (a(), y("div", {
286
286
  key: 1,
287
287
  class: "expand-arrow",
288
- onClick: K((Le) => S(L), ["stop"])
288
+ onClick: W((Pe) => x(L), ["stop"])
289
289
  }, [
290
- y(u(O), {
290
+ h(u(k), {
291
291
  size: e.iconSize,
292
- color: c(f)
292
+ color: c(p)
293
293
  }, {
294
294
  default: m(() => [
295
- (s(), g(T(e.expandedKeys.includes(f.id) ? e.expandedIcon : e.collapsedIcon)))
295
+ (a(), g(C(e.expandedKeys.includes(p.id) ? e.expandedIcon : e.collapsedIcon)))
296
296
  ]),
297
297
  _: 2
298
298
  }, 1032, ["size", "color"])
299
- ], 8, fe))
299
+ ], 8, ye))
300
300
  ], 2)
301
301
  ]),
302
302
  _: 1
@@ -305,10 +305,10 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
305
305
  _: 1
306
306
  }));
307
307
  }
308
- }), ye = /* @__PURE__ */ N(pe, [["__scopeId", "data-v-c047074f"]]), he = { class: "user-info-card__avatar" }, me = { class: "user-info-card__avatar-text" }, ge = { class: "user-info-card__details" }, ve = { class: "user-info-card__name" }, Ie = {
308
+ }), me = /* @__PURE__ */ S(he, [["__scopeId", "data-v-cf335707"]]), ge = { class: "user-info-card__avatar" }, ve = { class: "user-info-card__avatar-text" }, Ie = { class: "user-info-card__details" }, be = { class: "user-info-card__name" }, xe = {
309
309
  key: 0,
310
310
  class: "user-info-card__bnid"
311
- }, be = /* @__PURE__ */ Object.assign({
311
+ }, Ne = /* @__PURE__ */ Object.assign({
312
312
  name: "UserInfoCard"
313
313
  }, {
314
314
  __name: "UserInfoCard",
@@ -326,20 +326,20 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
326
326
  }
327
327
  },
328
328
  setup(e) {
329
- const n = e, t = W(() => n.userInfo?.name?.charAt(0)?.toUpperCase() || "");
330
- return (o, l) => (s(), p("div", {
331
- class: w(["user-info-card", `user-info-card--${e.type}`])
329
+ const n = e, t = U(() => n.userInfo?.name?.charAt(0)?.toUpperCase() || "");
330
+ return (o, l) => (a(), y("div", {
331
+ class: T(["user-info-card", `user-info-card--${e.type}`])
332
332
  }, [
333
- d("div", he, [
334
- d("span", me, x(t.value), 1)
335
- ]),
336
333
  d("div", ge, [
337
- d("div", ve, x(e.userInfo?.name || ""), 1),
338
- e.type === u(v).POPUP ? (s(), p("div", Ie, x(e.userInfo?.bnid || e.userInfo?.id || ""), 1)) : I("", !0)
334
+ d("span", ve, N(t.value), 1)
335
+ ]),
336
+ d("div", Ie, [
337
+ d("div", be, N(e.userInfo?.name || ""), 1),
338
+ e.type === u(v).POPUP ? (a(), y("div", xe, N(e.userInfo?.bnid || e.userInfo?.id || ""), 1)) : I("", !0)
339
339
  ])
340
340
  ], 2));
341
341
  }
342
- }), R = /* @__PURE__ */ N(be, [["__scopeId", "data-v-2ddc6d4a"]]), xe = { class: "user-popup-content" }, Ne = ["onClick"], Se = /* @__PURE__ */ Object.assign({
342
+ }), F = /* @__PURE__ */ S(Ne, [["__scopeId", "data-v-00216c75"]]), Se = { class: "user-popup-content" }, ke = ["onClick"], Oe = /* @__PURE__ */ Object.assign({
343
343
  name: "UserPopup"
344
344
  }, {
345
345
  __name: "UserPopup",
@@ -348,7 +348,9 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
348
348
  actions: {
349
349
  type: Array,
350
350
  default: () => [],
351
- validator: (e) => e.every((n) => n.key && (n.icon || n.iconName))
351
+ validator: (e) => e.every(
352
+ (n) => n.key && (n.icon || n.iconName)
353
+ )
352
354
  },
353
355
  // 用户信息
354
356
  userInfo: {
@@ -363,46 +365,49 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
363
365
  },
364
366
  emits: ["action-click"],
365
367
  setup(e, { emit: n }) {
366
- const t = n, o = (l) => {
367
- t("action-click", l.key, l);
368
+ const t = e, o = n, l = U(() => (t.actions || []).map((c) => ({
369
+ ...c,
370
+ icon: H(V(c?.icon))
371
+ }))), f = (c) => {
372
+ o("action-click", c.key, c);
368
373
  };
369
- return (l, h) => (s(), p("div", xe, [
370
- e.showUserInfo ? (s(), g(R, {
374
+ return (c, b) => (a(), y("div", Se, [
375
+ e.showUserInfo ? (a(), g(F, {
371
376
  key: 0,
372
377
  userInfo: e.userInfo,
373
378
  type: u(v).POPUP,
374
379
  class: "user-info-card"
375
380
  }, null, 8, ["userInfo", "type"])) : I("", !0),
376
381
  d("div", {
377
- class: w({
382
+ class: T({
378
383
  "popup-list": e.showUserInfo
379
384
  })
380
385
  }, [
381
- (s(!0), p(C, null, H(e.actions, (c, b) => (s(), p(C, { key: b }, [
382
- c.hidden ? I("", !0) : (s(), p("div", {
386
+ (a(!0), y(w, null, Y(l.value, (i, r) => (a(), y(w, { key: r }, [
387
+ i.hidden ? I("", !0) : (a(), y("div", {
383
388
  key: 0,
384
389
  class: "list__item",
385
- onClick: (a) => o(c)
390
+ onClick: (x) => f(i)
386
391
  }, [
387
- y(u(O), {
392
+ h(u(k), {
388
393
  class: "list__item-icon",
389
- size: c.iconSize || 20,
394
+ size: i.iconSize || 20,
390
395
  color: "#262626"
391
396
  }, {
392
397
  default: m(() => [
393
- (s(), g(T(c.icon), {
394
- size: c.iconSize || 20
398
+ (a(), g(C(i.icon), {
399
+ size: i.iconSize || 20
395
400
  }, null, 8, ["size"]))
396
401
  ]),
397
402
  _: 2
398
403
  }, 1032, ["size"]),
399
- d("span", null, x(c.label), 1)
400
- ], 8, Ne))
404
+ d("span", null, N(i.label), 1)
405
+ ], 8, ke))
401
406
  ], 64))), 128))
402
407
  ], 2)
403
408
  ]));
404
409
  }
405
- }), Oe = /* @__PURE__ */ N(Se, [["__scopeId", "data-v-be7ee388"]]), ke = { class: "navbar-box__footer__left" }, Ee = /* @__PURE__ */ Object.assign({
410
+ }), Ae = /* @__PURE__ */ S(Oe, [["__scopeId", "data-v-4c9300a2"]]), Ee = { class: "navbar-box__footer__left" }, we = /* @__PURE__ */ Object.assign({
406
411
  name: "NavFooter"
407
412
  }, {
408
413
  __name: "NavFooter",
@@ -446,51 +451,51 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
446
451
  },
447
452
  emits: ["action-click"],
448
453
  setup(e, { emit: n }) {
449
- const t = e, o = n, l = A(null), h = A(!1), c = (a) => {
450
- a || (l.value = setTimeout(() => {
451
- h.value = !1;
452
- }, t.popupDelay)), a && (h.value = a, clearTimeout(l.value));
453
- }, b = (a, i) => {
454
- h.value = !1, o("action-click", a, i);
454
+ const t = e, o = n, l = E(null), f = E(!1), c = (i) => {
455
+ i || (l.value = setTimeout(() => {
456
+ f.value = !1;
457
+ }, t.popupDelay)), i && (f.value = i, clearTimeout(l.value));
458
+ }, b = (i, r) => {
459
+ f.value = !1, o("action-click", i, r);
455
460
  };
456
- return (a, i) => (s(), p(C, null, [
457
- e.userInfo ? (s(), p("div", {
461
+ return (i, r) => (a(), y(w, null, [
462
+ e.userInfo ? (a(), y("div", {
458
463
  key: 0,
459
464
  class: "navbar-box__footer flex items-center",
460
- style: k({ width: e.navFooterWidth + "px" }),
461
- onMouseenter: i[0] || (i[0] = (S) => c(!0)),
462
- onMouseleave: i[1] || (i[1] = (S) => c(!1))
465
+ style: O({ width: e.navFooterWidth + "px" }),
466
+ onMouseenter: r[0] || (r[0] = (x) => c(!0)),
467
+ onMouseleave: r[1] || (r[1] = (x) => c(!1))
463
468
  }, [
464
- d("div", ke, [
465
- y(R, {
469
+ d("div", Ee, [
470
+ h(F, {
466
471
  userInfo: e.userInfo,
467
472
  type: e.userInfoCardType
468
473
  }, null, 8, ["userInfo", "type"])
469
474
  ])
470
475
  ], 36)) : I("", !0),
471
- y(V, { name: "fade" }, {
476
+ h(G, { name: "fade" }, {
472
477
  default: m(() => [
473
- Y(d("div", {
478
+ q(d("div", {
474
479
  class: "footer-popup content-bg",
475
- style: k({ left: e.popupLeft + "px" }),
476
- onMouseenter: i[2] || (i[2] = (S) => c(!0)),
477
- onMouseleave: i[3] || (i[3] = (S) => c(!1))
480
+ style: O({ left: e.popupLeft + "px" }),
481
+ onMouseenter: r[2] || (r[2] = (x) => c(!0)),
482
+ onMouseleave: r[3] || (r[3] = (x) => c(!1))
478
483
  }, [
479
- y(Oe, {
484
+ h(Ae, {
480
485
  actions: e.actions,
481
486
  userInfo: e.userInfo,
482
487
  showUserInfo: e.showPopupUserInfo,
483
488
  onActionClick: b
484
489
  }, null, 8, ["actions", "userInfo", "showUserInfo"])
485
490
  ], 36), [
486
- [G, h.value]
491
+ [J, f.value]
487
492
  ])
488
493
  ]),
489
494
  _: 1
490
495
  })
491
496
  ], 64));
492
497
  }
493
- }), Ae = /* @__PURE__ */ N(Ee, [["__scopeId", "data-v-2b4a0a2b"]]), Ce = { class: "sidebar flex h-full flex-col" }, Te = { class: "flex-1 overflow-hidden flex flex-col pd-l-12 pd-r-12" }, we = /* @__PURE__ */ Object.assign({
498
+ }), Ce = /* @__PURE__ */ S(we, [["__scopeId", "data-v-2b4a0a2b"]]), Te = { class: "sidebar flex h-full flex-col" }, ze = { class: "flex-1 overflow-hidden flex flex-col pd-l-12 pd-r-12" }, Le = /* @__PURE__ */ Object.assign({
494
499
  name: "CustomSidebar"
495
500
  }, {
496
501
  __name: "layout",
@@ -635,18 +640,18 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
635
640
  setup(e, { emit: n }) {
636
641
  const t = n, o = () => {
637
642
  t("toggle");
638
- }, l = (a, i) => {
639
- t("node-click", a, i);
640
- }, h = (a, i) => {
641
- t("node-expand", a, i);
642
- }, c = (a, i) => {
643
- t("node-collapse", a, i);
644
- }, b = (a, i) => {
645
- t("user-action-click", a, i);
643
+ }, l = (i, r) => {
644
+ t("node-click", i, r);
645
+ }, f = (i, r) => {
646
+ t("node-expand", i, r);
647
+ }, c = (i, r) => {
648
+ t("node-collapse", i, r);
649
+ }, b = (i, r) => {
650
+ t("user-action-click", i, r);
646
651
  };
647
- return (a, i) => (s(), p("div", Ce, [
648
- d("div", Te, [
649
- y(te, {
652
+ return (i, r) => (a(), y("div", Te, [
653
+ d("div", ze, [
654
+ h(oe, {
650
655
  "title-style": e.titleStyle,
651
656
  title: e.title,
652
657
  "logo-size": e.logoSize,
@@ -654,7 +659,7 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
654
659
  "toggle-icon": e.toggleIcon,
655
660
  onToggle: o
656
661
  }, null, 8, ["title-style", "title", "logo-size", "show-toggle", "toggle-icon"]),
657
- y(ye, {
662
+ h(me, {
658
663
  "menu-data": e.menuData,
659
664
  "current-menu-id": e.currentMenuId,
660
665
  "expanded-keys": e.expandedKeys,
@@ -668,11 +673,11 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
668
673
  "icon-renderer": e.iconRenderer,
669
674
  "icon-library": e.iconLibrary,
670
675
  onNodeClick: l,
671
- onNodeExpand: h,
676
+ onNodeExpand: f,
672
677
  onNodeCollapse: c
673
678
  }, null, 8, ["menu-data", "current-menu-id", "expanded-keys", "tree-props", "item-height", "indent", "icon-size", "select-menu-bg", "expanded-icon", "collapsed-icon", "icon-renderer", "icon-library"])
674
679
  ]),
675
- e.showFooter ? (s(), g(Ae, {
680
+ e.showFooter ? (a(), g(Ce, {
676
681
  key: 0,
677
682
  "popup-left": e.popupLeft,
678
683
  "user-info": e.userInfo,
@@ -685,28 +690,28 @@ import './assets/CustomSidebar.css';const _ = { class: "nav-title overflow-hidde
685
690
  }, null, 8, ["popup-left", "user-info", "actions", "popup-delay", "nav-footer-width", "user-info-card-type", "show-popup-user-info"])) : I("", !0)
686
691
  ]));
687
692
  }
688
- }), ze = /* @__PURE__ */ N(we, [["__scopeId", "data-v-9caa952a"]]), He = $(ze);
693
+ }), Me = /* @__PURE__ */ S(Le, [["__scopeId", "data-v-b8991280"]]), Ye = B(Me);
689
694
  export {
690
- He as CustomSidebar,
691
- ne as MENU_COLOR_STRATEGY,
692
- We as MENU_LOADING_STATES,
695
+ Ye as CustomSidebar,
696
+ le as MENU_COLOR_STRATEGY,
697
+ Ve as MENU_LOADING_STATES,
693
698
  M as MENU_TYPE,
694
699
  P as NODE_CLICK_TYPES,
695
- Ke as SPECIAL_ROUTES,
700
+ He as SPECIAL_ROUTES,
696
701
  j as TREE_PROPS,
697
702
  v as USER_INFO_CARD_TYPES,
698
- Be as collapseNodeKeys,
699
- He as default,
700
- $e as expandNodeKeys,
701
- se as findExpandPath,
702
- U as findExpandPathById,
703
- ae as findMenuByPath,
704
- ue as getFirstLeafMenu,
705
- re as getMenuIconColorById,
706
- De as getParentNodeIdsById,
703
+ Ke as collapseNodeKeys,
704
+ Ye as default,
705
+ De as expandNodeKeys,
706
+ ce as findExpandPath,
707
+ R as findExpandPathById,
708
+ ue as findMenuByPath,
709
+ fe as getFirstLeafMenu,
710
+ ae as getMenuIconColorById,
711
+ We as getParentNodeIdsById,
707
712
  z as isParentMenuActive,
708
- ie as isParentRouteActive,
709
- oe as isPathInMenu,
710
- ce as processMenuTreeWithLeaf,
711
- le as transformMenuData
713
+ se as isParentRouteActive,
714
+ ie as isPathInMenu,
715
+ de as processMenuTreeWithLeaf,
716
+ re as transformMenuData
712
717
  };
@@ -1,5 +1,5 @@
1
1
  import { w as t } from "./chunks/index.bCzIhWFw.js";
2
- import { C as o } from "./chunks/layout.BREUWPEJ.js";
2
+ import { C as o } from "./chunks/layout.CygCXa6s.js";
3
3
  const a = t(o);
4
4
  export {
5
5
  a as CustomTitle,