aibox-custom-component-packages 0.0.32 → 0.0.34

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 (192) hide show
  1. package/README.md +64 -64
  2. package/es/AddOrEditSupplierDialog.mjs +3 -3
  3. package/es/ApplicationTypeTag.mjs +1 -1
  4. package/es/AuthSection.mjs +1 -1
  5. package/es/AutoShowTooltip.mjs +1 -1
  6. package/es/AvailableRangePreview.mjs +1 -1
  7. package/es/AvailableRangeSetting.mjs +2 -2
  8. package/es/CodeView.mjs +1 -1
  9. package/es/CommonTagsList.mjs +1 -1
  10. package/es/CreateMcpForm.mjs +1 -1
  11. package/es/CustomSidebar.mjs +1 -1
  12. package/es/CustomTitle.mjs +1 -1
  13. package/es/CustomToggle.mjs +1 -1
  14. package/es/DocSyncSelect.mjs +1 -1
  15. package/es/FileDisplay.mjs +1 -1
  16. package/es/FilePreview.mjs +2 -2
  17. package/es/FileUploader.mjs +1 -1
  18. package/es/LoginRedirectScreen.mjs +1 -1
  19. package/es/Logo.mjs +1 -1
  20. package/es/McpFormDialog.mjs +1 -1
  21. package/es/McpParamsSet.mjs +1 -1
  22. package/es/MdEditor.mjs +1 -1
  23. package/es/PageContainer.mjs +1 -1
  24. package/es/ParameterTable.mjs +1 -1
  25. package/es/PublishRecord.mjs +1 -1
  26. package/es/RadioGroup.mjs +1 -1
  27. package/es/SourcePublish.mjs +3 -3
  28. package/es/Table.mjs +3 -3
  29. package/es/assets/AddOrEditSupplierDialog.css +1 -1
  30. package/es/assets/AiboxTable.css +1 -0
  31. package/es/assets/ApplicationTypeTag.css +1 -1
  32. package/es/assets/AuthSection.css +1 -1
  33. package/es/assets/AutoShowTooltip.css +1 -1
  34. package/es/assets/AvailableRangePreview.css +1 -1
  35. package/es/assets/CodeView.css +1 -1
  36. package/es/assets/CommonTagsList.css +1 -1
  37. package/es/assets/CreateMcpForm.css +1 -1
  38. package/es/assets/CustomSidebar.css +1 -1
  39. package/es/assets/CustomToggle.css +1 -1
  40. package/es/assets/DocSyncSelect.css +1 -1
  41. package/es/assets/FileDisplay.css +1 -1
  42. package/es/assets/FilePreview.css +1 -1
  43. package/es/assets/LoginRedirectScreen.css +1 -1
  44. package/es/assets/Logo.css +1 -1
  45. package/es/assets/McpFormDialog.css +1 -1
  46. package/es/assets/McpParamsSet.css +1 -1
  47. package/es/assets/MdEditor.css +1 -1
  48. package/es/assets/PageContainer.css +1 -1
  49. package/es/assets/ParameterTable.css +1 -1
  50. package/es/assets/PublishRecord.css +1 -1
  51. package/es/assets/RadioGroup.css +1 -1
  52. package/es/assets/SourcePublish.css +1 -1
  53. package/es/assets/layout.css +1 -1
  54. package/es/chunks/{AddOrEditSupplierDialog.DhGagQdN.js → AddOrEditSupplierDialog.D0WrS7zb.js} +6 -6
  55. package/es/chunks/AddOrEditSupplierDialog.u9M_J9ps.js +779 -0
  56. package/es/chunks/{BackBar.DzJ2OzUe.js → AiboxTable.CNJGTKaO.js} +84 -84
  57. package/es/chunks/{ApplicationTypeTag.BP3y2wxh.js → ApplicationTypeTag.Ctbs4Cfh.js} +2 -2
  58. package/es/chunks/{AuthSection.jrp3zawz.js → AuthSection.DoHCPqfe.js} +3 -3
  59. package/es/chunks/{AutoShowTooltip.Duo0-HYn.js → AutoShowTooltip.DKVXyaU4.js} +1 -1
  60. package/es/chunks/{AvailableRangePreview.Cc_D7qn-.js → AvailableRangePreview.Daug_hry.js} +3 -3
  61. package/es/chunks/{AvailableRangeSetting.BjNvRqad.js → AvailableRangeSetting.F8v_IaDj.js} +3 -3
  62. package/es/chunks/{CodeView.Du-CTWN-.js → CodeView.CrofMsZq.js} +2 -2
  63. package/es/chunks/{CommonTagsList.B4UNIT4z.js → CommonTagsList.CaDCnfaw.js} +5 -5
  64. package/es/chunks/CommonTagsList.DsAsA9Ul.js +159 -0
  65. package/es/chunks/{CreateMcpForm.B0jFYT0_.js → CreateMcpForm.CmDJvBZn.js} +8 -8
  66. package/es/chunks/CustomSidebar.CcOD8-wi.js +594 -0
  67. package/es/chunks/{CustomSidebar.ByfCcFOC.js → CustomSidebar.SNazR8Qi.js} +6 -6
  68. package/es/chunks/CustomToggle.DKRF3u_m.js +190 -0
  69. package/es/chunks/{CustomToggle.DBXPEHY5.js → CustomToggle.Da9-ySi3.js} +1 -1
  70. package/es/chunks/{DocSyncSelect.tbtnTok_.js → DocSyncSelect.BXAEaFps.js} +13 -15
  71. package/es/chunks/{FileDisplay.CqgQ3rtu.js → FileDisplay.D308Pw4L.js} +10 -12
  72. package/es/chunks/{FilePreview.CwdS-fNc.js → FilePreview.CZGtuNLk.js} +2 -2
  73. package/es/chunks/{FileUploader.0a_MfmvR.js → FileUploader.Dzz9qaG4.js} +9 -10
  74. package/es/chunks/{LoginRedirectScreen.B7kkQoP_.js → LoginRedirectScreen.DWykKkE4.js} +1 -1
  75. package/es/chunks/{Logo.zn-NFPWL.js → Logo.CSphmM19.js} +1 -1
  76. package/es/chunks/{McpFormDialog.BxxfxU1y.js → McpFormDialog.BFdJy9Aa.js} +3 -3
  77. package/es/chunks/{McpParamsSet.CZkVuUuD.js → McpParamsSet.Dpsku0Bq.js} +11 -13
  78. package/es/chunks/{MdEditor.mj5o3zYF.js → MdEditor.DXniUyrY.js} +2 -2
  79. package/es/chunks/PageContainer.Bf0DWQNo.js +462 -0
  80. package/es/chunks/{PageContainer.B400LILM.js → PageContainer.D_aKk9S0.js} +2 -2
  81. package/es/chunks/{ParameterTable.CPlrR4n_.js → ParameterTable.DIzML7kY.js} +14 -16
  82. package/es/chunks/{PublishRecord.nJhg5VCt.js → PublishRecord.B8_7fRU8.js} +4 -4
  83. package/es/chunks/PublishRecord.MUK6tcgd.js +136 -0
  84. package/es/chunks/{RadioGroup.BGO267-v.js → RadioGroup.CB4jkuR3.js} +1 -1
  85. package/es/chunks/SourcePublish.01DUJyfK.js +987 -0
  86. package/es/chunks/{SourcePublish.Bf25XcZi.js → SourcePublish.CyBDYK5p.js} +25 -22
  87. package/es/chunks/{config.C9iiPD4U.js → config.BVTdMgQ9.js} +2 -2
  88. package/es/chunks/config.DbvuSKlD.js +270 -0
  89. package/es/chunks/{config.DnXRhz1z.js → config.rFstR-MG.js} +1 -1
  90. package/es/chunks/{i18n.CFUdEPHr.js → i18n.CfGGAcJH.js} +1 -1
  91. package/es/chunks/{layout.D9PXutv4.js → layout.CUSAJyQL.js} +1 -1
  92. package/es/chunks/{usePreview.BbNxKBck.js → usePreview.yIUda0Hv.js} +7 -9
  93. package/es/index.mjs +65 -65
  94. package/lib/AddOrEditSupplierDialog.js +1 -1
  95. package/lib/ApplicationTypeTag.js +1 -1
  96. package/lib/AuthSection.js +1 -1
  97. package/lib/AutoShowTooltip.js +1 -1
  98. package/lib/AvailableRangePreview.js +1 -1
  99. package/lib/AvailableRangeSetting.js +1 -1
  100. package/lib/CodeView.js +1 -1
  101. package/lib/CommonTagsList.js +1 -1
  102. package/lib/CreateMcpForm.js +1 -1
  103. package/lib/CustomSidebar.js +1 -1
  104. package/lib/CustomTitle.js +1 -1
  105. package/lib/CustomToggle.js +1 -1
  106. package/lib/DocSyncSelect.js +1 -1
  107. package/lib/FileDisplay.js +1 -1
  108. package/lib/FilePreview.js +1 -1
  109. package/lib/FileUploader.js +1 -1
  110. package/lib/LoginRedirectScreen.js +1 -1
  111. package/lib/Logo.js +1 -1
  112. package/lib/McpFormDialog.js +1 -1
  113. package/lib/McpParamsSet.js +1 -1
  114. package/lib/MdEditor.js +1 -1
  115. package/lib/PageContainer.js +1 -1
  116. package/lib/ParameterTable.js +1 -1
  117. package/lib/PublishRecord.js +1 -1
  118. package/lib/RadioGroup.js +1 -1
  119. package/lib/SourcePublish.js +1 -1
  120. package/lib/Table.js +1 -1
  121. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  122. package/lib/assets/AiboxTable.css +1 -0
  123. package/lib/assets/ApplicationTypeTag.css +1 -1
  124. package/lib/assets/AuthSection.css +1 -1
  125. package/lib/assets/AutoShowTooltip.css +1 -1
  126. package/lib/assets/AvailableRangePreview.css +1 -1
  127. package/lib/assets/CodeView.css +1 -1
  128. package/lib/assets/CommonTagsList.css +1 -1
  129. package/lib/assets/CreateMcpForm.css +1 -1
  130. package/lib/assets/CustomSidebar.css +1 -1
  131. package/lib/assets/CustomToggle.css +1 -1
  132. package/lib/assets/DocSyncSelect.css +1 -1
  133. package/lib/assets/FileDisplay.css +1 -1
  134. package/lib/assets/FilePreview.css +1 -1
  135. package/lib/assets/LoginRedirectScreen.css +1 -1
  136. package/lib/assets/Logo.css +1 -1
  137. package/lib/assets/McpFormDialog.css +1 -1
  138. package/lib/assets/McpParamsSet.css +1 -1
  139. package/lib/assets/MdEditor.css +1 -1
  140. package/lib/assets/PageContainer.css +1 -1
  141. package/lib/assets/ParameterTable.css +1 -1
  142. package/lib/assets/PublishRecord.css +1 -1
  143. package/lib/assets/RadioGroup.css +1 -1
  144. package/lib/assets/SourcePublish.css +1 -1
  145. package/lib/assets/layout.css +1 -1
  146. package/lib/chunks/AddOrEditSupplierDialog.DfOMS_bh.js +1 -0
  147. package/lib/chunks/{AddOrEditSupplierDialog.CdbWF4S7.js → AddOrEditSupplierDialog.tSju0y-W.js} +1 -1
  148. package/lib/chunks/AiboxTable.B-VuIQSp.js +1 -0
  149. package/lib/chunks/{ApplicationTypeTag.Bbb9onnO.js → ApplicationTypeTag.ctv_-FsI.js} +1 -1
  150. package/lib/chunks/{AuthSection.BqnII7Zc.js → AuthSection.aaNWUYhk.js} +1 -1
  151. package/lib/chunks/{AutoShowTooltip.BCg_5NZ0.js → AutoShowTooltip.DIrXDh7U.js} +1 -1
  152. package/lib/chunks/{AvailableRangePreview.CgkgcULo.js → AvailableRangePreview.CiOxEA4F.js} +1 -1
  153. package/lib/chunks/{AvailableRangeSetting.B8UyU_gN.js → AvailableRangeSetting.Bb32NVYo.js} +1 -1
  154. package/lib/chunks/{CodeView.DAWK7jtf.js → CodeView.Ct9TXiwX.js} +1 -1
  155. package/lib/chunks/CommonTagsList.Boc8vbyY.js +1 -0
  156. package/lib/chunks/{CommonTagsList.BabaB3RQ.js → CommonTagsList.CKstJRCG.js} +1 -1
  157. package/lib/chunks/{CreateMcpForm.D7lh0uKb.js → CreateMcpForm.BWs-4Onu.js} +1 -1
  158. package/lib/chunks/CustomSidebar.Cygx-8nO.js +1 -0
  159. package/lib/chunks/{CustomSidebar.Dc22wPkh.js → CustomSidebar.DCW29MKi.js} +1 -1
  160. package/lib/chunks/{CustomToggle.Cd7F_zwB.js → CustomToggle.BF7s0G8h.js} +1 -1
  161. package/lib/chunks/CustomToggle.HbP41BJh.js +1 -0
  162. package/lib/chunks/DocSyncSelect.ZlOVqBG1.js +1 -0
  163. package/lib/chunks/{FileDisplay.C3x1xoJt.js → FileDisplay.B3CFfeuo.js} +3 -3
  164. package/lib/chunks/{FilePreview.D9d-eoIn.js → FilePreview.T-kQ_iiJ.js} +1 -1
  165. package/lib/chunks/FileUploader.yvoUFzla.js +1 -0
  166. package/lib/chunks/{LoginRedirectScreen.247pzgjB.js → LoginRedirectScreen.DE21-wqJ.js} +1 -1
  167. package/lib/chunks/{Logo.DYRnRQYI.js → Logo.BvlHIPja.js} +1 -1
  168. package/lib/chunks/{McpFormDialog.BMLlvDii.js → McpFormDialog.CuYkPlUY.js} +2 -2
  169. package/lib/chunks/McpParamsSet.BZ3lptGl.js +1 -0
  170. package/lib/chunks/{MdEditor.CXIDWs1-.js → MdEditor.BSUp8pUb.js} +1 -1
  171. package/lib/chunks/{PageContainer.D_p3Rz5e.js → PageContainer.BYyJE7u_.js} +1 -1
  172. package/lib/chunks/PageContainer.CE8Pz6hD.js +1 -0
  173. package/lib/chunks/ParameterTable.CLnOL3k_.js +1 -0
  174. package/lib/chunks/PublishRecord.BZH5_Usb.js +5 -0
  175. package/lib/chunks/{PublishRecord.BQ_eSDcv.js → PublishRecord.DXoKtUn0.js} +1 -1
  176. package/lib/chunks/{RadioGroup.BYy3omgq.js → RadioGroup.CLHduGxc.js} +1 -1
  177. package/lib/chunks/SourcePublish.B23eXpNS.js +1 -0
  178. package/lib/chunks/SourcePublish.QB3O6fdx.js +1 -0
  179. package/lib/chunks/config.C0x1xjU-.js +1 -0
  180. package/lib/chunks/{layout.CFYuqtHu.js → layout.CNYc7QUj.js} +1 -1
  181. package/lib/chunks/usePreview.C3f_R7Np.js +1 -0
  182. package/lib/index.js +2 -2
  183. package/package.json +6 -6
  184. package/es/assets/BackBar.css +0 -1
  185. package/lib/assets/BackBar.css +0 -1
  186. package/lib/chunks/BackBar.BO_3ReYW.js +0 -1
  187. package/lib/chunks/DocSyncSelect.--DSxOmn.js +0 -1
  188. package/lib/chunks/FileUploader.TkV0c3Xt.js +0 -1
  189. package/lib/chunks/McpParamsSet.gd9UXa8L.js +0 -1
  190. package/lib/chunks/ParameterTable.BevV6CXV.js +0 -1
  191. package/lib/chunks/SourcePublish.BlG6iYjM.js +0 -1
  192. package/lib/chunks/usePreview.Byl992Ne.js +0 -1
@@ -0,0 +1,594 @@
1
+ import { t as e } from "./withinstall.CMngc-br.js";
2
+ import { t } from "./_plugin-vue_export-helper.B3ysoDQm.js";
3
+ import { Fragment as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, markRaw as u, nextTick as d, normalizeClass as f, normalizeStyle as p, openBlock as m, ref as h, renderList as g, resolveDynamicComponent as _, toDisplayString as v, toRaw as y, unref as b, vShow as x, watch as S, withCtx as C, withDirectives as w, withModifiers as ee } from "vue";
4
+ import { ElAutoResizer as T, ElIcon as E, ElTreeV2 as D } from "element-plus";
5
+ import { AiboxIcon as O } from "color-message-aibox-vue";
6
+ import { IconRenderer as k, iconLibraryMap as te } from "color-star-custom-components";
7
+ import '../assets/CustomSidebar.css';//#region components/CustomSidebar/components/NavTitle.vue
8
+ var A = { class: "nav-title overflow-hidden" }, j = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ name: "NavTitle" }, {
9
+ __name: "NavTitle",
10
+ props: {
11
+ title: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ logoSize: {
16
+ type: Number,
17
+ default: 30
18
+ },
19
+ titleStyle: {
20
+ type: Object,
21
+ default: () => ({ fontSize: "16px" })
22
+ },
23
+ showToggle: {
24
+ type: Boolean,
25
+ default: !0
26
+ },
27
+ toggleIcon: {
28
+ type: [Object, String],
29
+ default: null
30
+ }
31
+ },
32
+ emits: ["toggle"],
33
+ setup(e, { emit: t }) {
34
+ let n = t, r = () => {
35
+ n("toggle");
36
+ };
37
+ return (t, n) => (m(), s("div", A, [
38
+ l(b(E), { size: e.logoSize }, {
39
+ default: C(() => [l(b(O))]),
40
+ _: 1
41
+ }, 8, ["size"]),
42
+ c("span", {
43
+ class: "weight-500 text-1f2329 title-text",
44
+ style: p(e.titleStyle)
45
+ }, v(e.title), 5),
46
+ e.showToggle ? (m(), a(b(E), {
47
+ key: 0,
48
+ size: 18,
49
+ class: "collapse-unfold-icon",
50
+ onClick: r
51
+ }, {
52
+ default: C(() => [(m(), a(_(e.toggleIcon)))]),
53
+ _: 1
54
+ })) : o("", !0)
55
+ ]));
56
+ }
57
+ }), [["__scopeId", "data-v-52011bbe"]]), M = {
58
+ DIR: "DIR",
59
+ MENU: "MENU",
60
+ BUTTON: "BUTTON"
61
+ }, N = /* @__PURE__ */ new Map([
62
+ ["active", "#3271FE"],
63
+ ["parent_active", "#3271FE"],
64
+ ["normal", "#1F2329"]
65
+ ]), P = (e, t) => !Array.isArray(e) || !t ? !1 : e.some((e) => e.path === t || e.children?.length > 0 && P(e.children, t)), F = (e, t = 1) => e.filter((e) => [M.DIR, M.MENU].includes(e.type)).map((e) => ({
66
+ ...e,
67
+ id: e.bnid,
68
+ name: e.name,
69
+ path: e?.path || "",
70
+ children: e.children?.length > 0 ? F(e.children || [], t + 1) : [],
71
+ level: t
72
+ })), I = (e, t) => e?.children?.length ? e.children.some((e) => e?.path === t || e.children?.length && I(e, t)) : !1, L = (e, t) => e?.children?.length ? e.children.some((e) => e?.id === t || e.children?.length && L(e, t)) : !1, R = (e, t) => {
73
+ let n = e?.id === t, r = L(e, t), i = "normal";
74
+ return n ? i = "active" : r && (i = "parent_active"), N.get(i);
75
+ }, z = (e, t) => e.includes(t) ? e : [...e, t], B = (e, t) => e.filter((e) => e !== t), V = (e, t, n = []) => e.some((e) => {
76
+ if (e?.path === t) return !0;
77
+ if (e.children?.length > 0) {
78
+ n.push(e.id);
79
+ let r = V(e.children, t, n);
80
+ return !r && n.pop(), r;
81
+ }
82
+ return !1;
83
+ }), H = (e, t, n = []) => e.some((e) => {
84
+ if (e?.id === t) return !0;
85
+ if (e.children?.length > 0) {
86
+ n.push(e.id);
87
+ let r = H(e.children, t, n);
88
+ return !r && n.pop(), r;
89
+ }
90
+ return !1;
91
+ }), U = (e, t) => {
92
+ let n = [];
93
+ return H(e, t, n), n;
94
+ }, W = (e, t) => {
95
+ if (!Array.isArray(e) || !t) return null;
96
+ for (let n of e) {
97
+ if (n.path === t) return n;
98
+ if (n.children?.length > 0) {
99
+ let e = W(n.children, t);
100
+ if (e) return e;
101
+ }
102
+ }
103
+ return null;
104
+ }, G = (e) => Array.isArray(e) ? e.map((e) => {
105
+ let t = { ...e };
106
+ return t.children && Array.isArray(t.children) && t.children.length > 0 ? t.children = G(t.children) : t.isLeaf = !0, t;
107
+ }) : [], K = (e) => {
108
+ if (!Array.isArray(e) || e.length === 0) return null;
109
+ for (let t of e) {
110
+ if (t.isLeaf && t.path) return t;
111
+ if (t.children?.length > 0) {
112
+ let e = K(t.children);
113
+ if (e) return e;
114
+ }
115
+ }
116
+ return null;
117
+ }, q = [
118
+ "/404",
119
+ "/login",
120
+ "/unauthorized"
121
+ ], J = {
122
+ label: "name",
123
+ children: "children",
124
+ isLeaf: "isLeaf"
125
+ }, Y = {
126
+ PARENT: "parent",
127
+ LEAF: "leaf"
128
+ }, X = {
129
+ LOADING: "loading",
130
+ LOADED: "loaded",
131
+ ERROR: "error"
132
+ }, Z = {
133
+ POPUP: "popup",
134
+ FOOTER: "footer"
135
+ }, ne = { class: "node-label" }, re = ["onClick"], ie = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ name: "MenuList" }, {
136
+ __name: "MenuList",
137
+ props: {
138
+ menuData: {
139
+ type: Array,
140
+ default: () => []
141
+ },
142
+ currentMenuId: {
143
+ type: String,
144
+ default: null
145
+ },
146
+ expandedKeys: {
147
+ type: Array,
148
+ default: () => []
149
+ },
150
+ treeProps: {
151
+ type: Object,
152
+ default: () => J
153
+ },
154
+ itemHeight: {
155
+ type: Number,
156
+ default: 36
157
+ },
158
+ indent: {
159
+ type: Number,
160
+ default: 24
161
+ },
162
+ iconSize: {
163
+ type: Number,
164
+ default: 16
165
+ },
166
+ selectMenuBg: {
167
+ type: String,
168
+ default: "#eaf0fe"
169
+ },
170
+ expandedIcon: {
171
+ type: [Object, String],
172
+ default: null
173
+ },
174
+ collapsedIcon: {
175
+ type: [Object, String],
176
+ default: null
177
+ },
178
+ iconRenderer: {
179
+ type: [Object, String],
180
+ default: null
181
+ },
182
+ iconLibrary: {
183
+ type: [String, Object],
184
+ default: null
185
+ }
186
+ },
187
+ emits: [
188
+ "node-click",
189
+ "node-expand",
190
+ "node-collapse"
191
+ ],
192
+ setup(e, { emit: t }) {
193
+ let n = e, r = i(() => n.iconRenderer || k), u = i(() => n.iconLibrary || te.aibox), g = t, y = h(null), x = (e) => e?.icon && e.level === 1 || !e.isLeaf, w = (e) => R(e, n.currentMenuId), O = (e) => {
194
+ let t = e.isLeaf ? Y.LEAF : Y.PARENT;
195
+ g("node-click", e, t);
196
+ }, A = (e) => {
197
+ g("node-expand", e.id, e);
198
+ }, j = (e) => {
199
+ g("node-collapse", e.id, e);
200
+ }, M = (e) => {
201
+ y.value && (n.expandedKeys.includes(e.data.id) ? y.value.collapseNode(e) : y.value.expandNode(e));
202
+ };
203
+ return S(() => n.expandedKeys, (e) => {
204
+ d(() => {
205
+ y.value && y.value.setExpandedKeys([...e]);
206
+ });
207
+ }, { deep: !0 }), (t, n) => (m(), a(b(T), { class: "flex-1 overflow-hidden" }, {
208
+ default: C(({ height: t }) => [l(b(D), {
209
+ ref_key: "treeRef",
210
+ ref: y,
211
+ "node-key": "id",
212
+ data: e.menuData,
213
+ props: e.treeProps,
214
+ height: t,
215
+ "current-node-key": e.currentMenuId,
216
+ "highlight-current": !0,
217
+ "expanded-keys": e.expandedKeys,
218
+ "show-checkbox": !1,
219
+ "item-size": e.itemHeight + 8,
220
+ "expand-on-click-node": !1,
221
+ indent: e.indent,
222
+ style: p({ "--select-menu-bg": e.selectMenuBg }),
223
+ onNodeClick: O,
224
+ onNodeExpand: A,
225
+ onNodeCollapse: j,
226
+ class: "custom-tree"
227
+ }, {
228
+ default: C(({ node: t, data: n }) => [c("div", { class: f(["tree-node-content-custom", {
229
+ "has-children": !n.isLeaf,
230
+ "is-current": n.id === e.currentMenuId && n.isLeaf,
231
+ "is-parent-active": b(L)(n, e.currentMenuId) && !n.isLeaf
232
+ }]) }, [
233
+ x(n) ? (m(), a(b(E), {
234
+ key: 0,
235
+ size: e.iconSize,
236
+ class: "node-icon",
237
+ color: w(n)
238
+ }, {
239
+ default: C(() => [(m(), a(_(r.value), {
240
+ "icon-name": n?.icon,
241
+ "icon-library": u.value
242
+ }, null, 8, ["icon-name", "icon-library"]))]),
243
+ _: 2
244
+ }, 1032, ["size", "color"])) : o("", !0),
245
+ c("span", ne, v(t.label), 1),
246
+ n.isLeaf ? o("", !0) : (m(), s("div", {
247
+ key: 1,
248
+ class: "expand-arrow",
249
+ onClick: ee((e) => M(t), ["stop"])
250
+ }, [l(b(E), {
251
+ size: e.iconSize,
252
+ color: w(n)
253
+ }, {
254
+ default: C(() => [(m(), a(_(e.expandedKeys.includes(n.id) ? e.expandedIcon : e.collapsedIcon)))]),
255
+ _: 2
256
+ }, 1032, ["size", "color"])], 8, re))
257
+ ], 2)]),
258
+ _: 1
259
+ }, 8, [
260
+ "data",
261
+ "props",
262
+ "height",
263
+ "current-node-key",
264
+ "expanded-keys",
265
+ "item-size",
266
+ "indent",
267
+ "style"
268
+ ])]),
269
+ _: 1
270
+ }));
271
+ }
272
+ }), [["__scopeId", "data-v-ffb741ff"]]), ae = { class: "user-info-card__avatar" }, oe = { class: "user-info-card__avatar-text" }, se = { class: "user-info-card__details" }, ce = { class: "user-info-card__name" }, le = {
273
+ key: 0,
274
+ class: "user-info-card__bnid"
275
+ }, ue = /*@__PURE__*/ Object.assign({ name: "UserInfoCard" }, {
276
+ __name: "UserInfoCard",
277
+ props: {
278
+ userInfo: {
279
+ type: Object,
280
+ default: () => ({})
281
+ },
282
+ type: {
283
+ type: String,
284
+ default: Z.POPUP,
285
+ validator: (e) => Object.values(Z).includes(e)
286
+ }
287
+ },
288
+ setup(e) {
289
+ let t = e, n = i(() => t.userInfo?.name?.charAt(0)?.toUpperCase() || "");
290
+ return (t, r) => (m(), s("div", { class: f(["user-info-card", `user-info-card--${e.type}`]) }, [c("div", ae, [c("span", oe, v(n.value), 1)]), c("div", se, [c("div", ce, v(e.userInfo?.name || ""), 1), e.type === b(Z).POPUP ? (m(), s("div", le, v(e.userInfo?.bnid || e.userInfo?.id || ""), 1)) : o("", !0)])], 2));
291
+ }
292
+ }), Q = /*#__PURE__*/ t(ue, [["__scopeId", "data-v-00216c75"]]), de = { class: "user-popup-content" }, fe = ["onClick"], $ = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ name: "UserPopup" }, {
293
+ __name: "UserPopup",
294
+ props: {
295
+ actions: {
296
+ type: Array,
297
+ default: () => [],
298
+ validator: (e) => e.every((e) => e.key && (e.icon || e.iconName))
299
+ },
300
+ userInfo: {
301
+ type: Object,
302
+ default: () => ({})
303
+ },
304
+ showUserInfo: {
305
+ type: Boolean,
306
+ default: !0
307
+ }
308
+ },
309
+ emits: ["action-click"],
310
+ setup(e, { emit: t }) {
311
+ let r = e, d = t, p = i(() => (r.actions || []).map((e) => ({
312
+ ...e,
313
+ icon: u(y(e?.icon))
314
+ }))), h = (e) => {
315
+ d("action-click", e.key, e);
316
+ };
317
+ return (t, r) => (m(), s("div", de, [e.showUserInfo ? (m(), a(Q, {
318
+ key: 0,
319
+ userInfo: e.userInfo,
320
+ type: b(Z).POPUP,
321
+ class: "user-info-card"
322
+ }, null, 8, ["userInfo", "type"])) : o("", !0), c("div", { class: f({ "popup-list": e.showUserInfo }) }, [(m(!0), s(n, null, g(p.value, (e, t) => (m(), s(n, { key: t }, [e.hidden ? o("", !0) : (m(), s("div", {
323
+ key: 0,
324
+ class: "list__item",
325
+ onClick: (t) => h(e)
326
+ }, [l(b(E), {
327
+ class: "list__item-icon",
328
+ size: e.iconSize || 20,
329
+ color: "#262626"
330
+ }, {
331
+ default: C(() => [(m(), a(_(e.icon), { size: e.iconSize || 20 }, null, 8, ["size"]))]),
332
+ _: 2
333
+ }, 1032, ["size"]), c("span", null, v(e.label), 1)], 8, fe))], 64))), 128))], 2)]));
334
+ }
335
+ }), [["__scopeId", "data-v-4c9300a2"]]), pe = { class: "navbar-box__footer__left" }, me = /*@__PURE__*/ Object.assign({ name: "NavFooter" }, {
336
+ __name: "NavFooter",
337
+ props: {
338
+ userInfo: {
339
+ type: Object,
340
+ default: null,
341
+ validator: (e) => !e || e.name !== void 0
342
+ },
343
+ actions: {
344
+ type: Array,
345
+ default: () => []
346
+ },
347
+ popupDelay: {
348
+ type: Number,
349
+ default: 200
350
+ },
351
+ popupLeft: {
352
+ type: Number,
353
+ default: 240
354
+ },
355
+ navFooterWidth: {
356
+ type: Number,
357
+ default: 240
358
+ },
359
+ userInfoCardType: {
360
+ type: String,
361
+ default: Z.FOOTER,
362
+ validator: (e) => Object.values(Z).includes(e)
363
+ },
364
+ showPopupUserInfo: {
365
+ type: Boolean,
366
+ default: !0
367
+ }
368
+ },
369
+ emits: ["action-click"],
370
+ setup(e, { emit: t }) {
371
+ let i = e, a = t, u = h(null), d = h(!1), f = (e) => {
372
+ e || (u.value = setTimeout(() => {
373
+ d.value = !1;
374
+ }, i.popupDelay)), e && (d.value = e, clearTimeout(u.value));
375
+ }, g = (e, t) => {
376
+ d.value = !1, a("action-click", e, t);
377
+ };
378
+ return (t, i) => (m(), s(n, null, [e.userInfo ? (m(), s("div", {
379
+ key: 0,
380
+ class: "navbar-box__footer flex items-center",
381
+ style: p({ width: e.navFooterWidth + "px" }),
382
+ onMouseenter: i[0] ||= (e) => f(!0),
383
+ onMouseleave: i[1] ||= (e) => f(!1)
384
+ }, [c("div", pe, [l(Q, {
385
+ userInfo: e.userInfo,
386
+ type: e.userInfoCardType
387
+ }, null, 8, ["userInfo", "type"])])], 36)) : o("", !0), l(r, { name: "fade" }, {
388
+ default: C(() => [w(c("div", {
389
+ class: "footer-popup content-bg",
390
+ style: p({ left: e.popupLeft + "px" }),
391
+ onMouseenter: i[2] ||= (e) => f(!0),
392
+ onMouseleave: i[3] ||= (e) => f(!1)
393
+ }, [l($, {
394
+ actions: e.actions,
395
+ userInfo: e.userInfo,
396
+ showUserInfo: e.showPopupUserInfo,
397
+ onActionClick: g
398
+ }, null, 8, [
399
+ "actions",
400
+ "userInfo",
401
+ "showUserInfo"
402
+ ])], 36), [[x, d.value]])]),
403
+ _: 1
404
+ })], 64));
405
+ }
406
+ }), he = /*#__PURE__*/ t(me, [["__scopeId", "data-v-b1713bc6"]]), ge = { class: "sidebar flex h-full flex-col" }, _e = { class: "flex-1 overflow-hidden flex flex-col pd-l-12 pd-r-12" }, ve = /*@__PURE__*/ Object.assign({ name: "CustomSidebar" }, {
407
+ __name: "layout",
408
+ props: {
409
+ menuData: {
410
+ type: Array,
411
+ default: () => []
412
+ },
413
+ currentMenuId: {
414
+ type: String,
415
+ default: null
416
+ },
417
+ expandedKeys: {
418
+ type: Array,
419
+ default: () => []
420
+ },
421
+ title: {
422
+ type: String,
423
+ default: ""
424
+ },
425
+ showToggle: {
426
+ type: Boolean,
427
+ default: !0
428
+ },
429
+ toggleIcon: {
430
+ type: [Object, String],
431
+ default: null
432
+ },
433
+ treeProps: {
434
+ type: Object,
435
+ default: () => J
436
+ },
437
+ itemHeight: {
438
+ type: Number,
439
+ default: 36
440
+ },
441
+ indent: {
442
+ type: Number,
443
+ default: 24
444
+ },
445
+ iconSize: {
446
+ type: Number,
447
+ default: 16
448
+ },
449
+ selectMenuBg: {
450
+ type: String,
451
+ default: "#eaf0fe"
452
+ },
453
+ titleStyle: {
454
+ type: Object,
455
+ default: () => ({ fontSize: "16px" })
456
+ },
457
+ expandedIcon: {
458
+ type: [Object, String],
459
+ default: null
460
+ },
461
+ collapsedIcon: {
462
+ type: [Object, String],
463
+ default: null
464
+ },
465
+ iconRenderer: {
466
+ type: [Object, String],
467
+ default: null
468
+ },
469
+ iconLibrary: {
470
+ type: [String, Object],
471
+ default: null
472
+ },
473
+ showFooter: {
474
+ type: Boolean,
475
+ default: !0
476
+ },
477
+ userInfo: {
478
+ type: Object,
479
+ default: null
480
+ },
481
+ userActions: {
482
+ type: Array,
483
+ default: () => []
484
+ },
485
+ popupDelay: {
486
+ type: Number,
487
+ default: 200
488
+ },
489
+ popupLeft: {
490
+ type: Number,
491
+ default: 240
492
+ },
493
+ navFooterWidth: {
494
+ type: Number,
495
+ default: 240
496
+ },
497
+ userInfoCardType: {
498
+ type: String,
499
+ default: Z.FOOTER,
500
+ validator: (e) => Object.values(Z).includes(e)
501
+ },
502
+ showPopupUserInfo: {
503
+ type: Boolean,
504
+ default: !0
505
+ },
506
+ logoSize: {
507
+ type: Number,
508
+ default: 30
509
+ }
510
+ },
511
+ emits: [
512
+ "toggle",
513
+ "node-click",
514
+ "node-expand",
515
+ "node-collapse",
516
+ "user-action-click"
517
+ ],
518
+ setup(e, { emit: t }) {
519
+ let n = t, r = () => {
520
+ n("toggle");
521
+ }, i = (e, t) => {
522
+ n("node-click", e, t);
523
+ }, u = (e, t) => {
524
+ n("node-expand", e, t);
525
+ }, d = (e, t) => {
526
+ n("node-collapse", e, t);
527
+ }, f = (e, t) => {
528
+ n("user-action-click", e, t);
529
+ };
530
+ return (t, n) => (m(), s("div", ge, [c("div", _e, [l(j, {
531
+ "title-style": e.titleStyle,
532
+ title: e.title,
533
+ "logo-size": e.logoSize,
534
+ "show-toggle": e.showToggle,
535
+ "toggle-icon": e.toggleIcon,
536
+ onToggle: r
537
+ }, null, 8, [
538
+ "title-style",
539
+ "title",
540
+ "logo-size",
541
+ "show-toggle",
542
+ "toggle-icon"
543
+ ]), l(ie, {
544
+ "menu-data": e.menuData,
545
+ "current-menu-id": e.currentMenuId,
546
+ "expanded-keys": e.expandedKeys,
547
+ "tree-props": e.treeProps,
548
+ "item-height": e.itemHeight,
549
+ indent: e.indent,
550
+ "icon-size": e.iconSize,
551
+ "select-menu-bg": e.selectMenuBg,
552
+ "expanded-icon": e.expandedIcon,
553
+ "collapsed-icon": e.collapsedIcon,
554
+ "icon-renderer": e.iconRenderer,
555
+ "icon-library": e.iconLibrary,
556
+ onNodeClick: i,
557
+ onNodeExpand: u,
558
+ onNodeCollapse: d
559
+ }, null, 8, [
560
+ "menu-data",
561
+ "current-menu-id",
562
+ "expanded-keys",
563
+ "tree-props",
564
+ "item-height",
565
+ "indent",
566
+ "icon-size",
567
+ "select-menu-bg",
568
+ "expanded-icon",
569
+ "collapsed-icon",
570
+ "icon-renderer",
571
+ "icon-library"
572
+ ])]), e.showFooter ? (m(), a(he, {
573
+ key: 0,
574
+ "popup-left": e.popupLeft,
575
+ "user-info": e.userInfo,
576
+ actions: e.userActions,
577
+ "popup-delay": e.popupDelay,
578
+ "nav-footer-width": e.navFooterWidth,
579
+ "user-info-card-type": e.userInfoCardType,
580
+ "show-popup-user-info": e.showPopupUserInfo,
581
+ onActionClick: f
582
+ }, null, 8, [
583
+ "popup-left",
584
+ "user-info",
585
+ "actions",
586
+ "popup-delay",
587
+ "nav-footer-width",
588
+ "user-info-card-type",
589
+ "show-popup-user-info"
590
+ ])) : o("", !0)]));
591
+ }
592
+ }), ye = e(/* @__PURE__ */ t(ve, [["__scopeId", "data-v-b8991280"]]));
593
+ //#endregion
594
+ export { L as _, J as a, G as b, M as c, V as d, H as f, U as g, R as h, q as i, B as l, K as m, X as n, Z as o, W as p, Y as r, N as s, ye as t, z as u, I as v, F as x, P as y };
@@ -54,7 +54,7 @@ var M = { class: "nav-title overflow-hidden" }, ee = /*#__PURE__*/ t(/* @__PURE_
54
54
  })) : o("", !0)
55
55
  ]));
56
56
  }
57
- }), [["__scopeId", "data-v-237ad978"]]), N = {
57
+ }), [["__scopeId", "data-v-52011bbe"]]), N = {
58
58
  DIR: "DIR",
59
59
  MENU: "MENU",
60
60
  BUTTON: "BUTTON"
@@ -261,7 +261,7 @@ var M = { class: "nav-title overflow-hidden" }, ee = /*#__PURE__*/ t(/* @__PURE_
261
261
  _: 1
262
262
  }));
263
263
  }
264
- }), [["__scopeId", "data-v-096f5ebb"]]), ae = { class: "user-info-card__avatar" }, oe = { class: "user-info-card__avatar-text" }, se = { class: "user-info-card__details" }, ce = { class: "user-info-card__name" }, le = {
264
+ }), [["__scopeId", "data-v-cf335707"]]), ae = { class: "user-info-card__avatar" }, oe = { class: "user-info-card__avatar-text" }, se = { class: "user-info-card__details" }, ce = { class: "user-info-card__name" }, le = {
265
265
  key: 0,
266
266
  class: "user-info-card__bnid"
267
267
  }, ue = /*@__PURE__*/ Object.assign({ name: "UserInfoCard" }, {
@@ -281,7 +281,7 @@ var M = { class: "nav-title overflow-hidden" }, ee = /*#__PURE__*/ t(/* @__PURE_
281
281
  let t = e, n = i(() => t.userInfo?.name?.charAt(0)?.toUpperCase() || "");
282
282
  return (t, r) => (m(), s("div", { class: f(["user-info-card", `user-info-card--${e.type}`]) }, [c("div", ae, [c("span", oe, v(n.value), 1)]), c("div", se, [c("div", ce, v(e.userInfo?.name || ""), 1), e.type === b(Z).POPUP ? (m(), s("div", le, v(e.userInfo?.bnid || e.userInfo?.id || ""), 1)) : o("", !0)])], 2));
283
283
  }
284
- }), Q = /*#__PURE__*/ t(ue, [["__scopeId", "data-v-50612536"]]), $ = { class: "user-popup-content" }, de = ["onClick"], fe = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ name: "UserPopup" }, {
284
+ }), Q = /*#__PURE__*/ t(ue, [["__scopeId", "data-v-00216c75"]]), $ = { class: "user-popup-content" }, de = ["onClick"], fe = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ name: "UserPopup" }, {
285
285
  __name: "UserPopup",
286
286
  props: {
287
287
  actions: {
@@ -324,7 +324,7 @@ var M = { class: "nav-title overflow-hidden" }, ee = /*#__PURE__*/ t(/* @__PURE_
324
324
  _: 2
325
325
  }, 1032, ["size"]), c("span", null, v(e.label), 1)], 8, de))], 64))), 128))], 2)]));
326
326
  }
327
- }), [["__scopeId", "data-v-0a907cab"]]), pe = { class: "navbar-box__footer__left" }, me = /*@__PURE__*/ Object.assign({ name: "NavFooter" }, {
327
+ }), [["__scopeId", "data-v-4c9300a2"]]), pe = { class: "navbar-box__footer__left" }, me = /*@__PURE__*/ Object.assign({ name: "NavFooter" }, {
328
328
  __name: "NavFooter",
329
329
  props: {
330
330
  userInfo: {
@@ -395,7 +395,7 @@ var M = { class: "nav-title overflow-hidden" }, ee = /*#__PURE__*/ t(/* @__PURE_
395
395
  _: 1
396
396
  })], 64));
397
397
  }
398
- }), he = /*#__PURE__*/ t(me, [["__scopeId", "data-v-1d72e8a3"]]), ge = { class: "sidebar flex h-full flex-col" }, _e = { class: "flex-1 overflow-hidden flex flex-col pd-l-12 pd-r-12" }, ve = /*@__PURE__*/ Object.assign({ name: "CustomSidebar" }, {
398
+ }), he = /*#__PURE__*/ t(me, [["__scopeId", "data-v-b1713bc6"]]), ge = { class: "sidebar flex h-full flex-col" }, _e = { class: "flex-1 overflow-hidden flex flex-col pd-l-12 pd-r-12" }, ve = /*@__PURE__*/ Object.assign({ name: "CustomSidebar" }, {
399
399
  __name: "layout",
400
400
  props: {
401
401
  menuData: {
@@ -581,6 +581,6 @@ var M = { class: "nav-title overflow-hidden" }, ee = /*#__PURE__*/ t(/* @__PURE_
581
581
  "show-popup-user-info"
582
582
  ])) : o("", !0)]));
583
583
  }
584
- }), ye = e(/* @__PURE__ */ t(ve, [["__scopeId", "data-v-bdae414f"]]));
584
+ }), ye = e(/* @__PURE__ */ t(ve, [["__scopeId", "data-v-b8991280"]]));
585
585
  //#endregion
586
586
  export { R as _, J as a, G as b, N as c, V as d, H as f, U as g, z as h, q as i, te as l, K as m, X as n, Z as o, W as p, Y as r, P as s, ye as t, B as u, L as v, I as x, F as y };