aibox-custom-component-packages 0.0.7 → 0.0.9

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 (323) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +6 -786
  2. package/es/ApplicationTypeTag.mjs +2 -58
  3. package/es/AuthSection.mjs +3 -199
  4. package/es/AutoShowTooltip.mjs +2 -90
  5. package/es/AvailableRangePreview.mjs +2 -7
  6. package/es/AvailableRangeSetting.mjs +5 -272
  7. package/es/CodeView.mjs +6 -7
  8. package/es/CommonTagsList.mjs +3 -209
  9. package/es/CreateMcpForm.mjs +10 -384
  10. package/es/CustomSidebar.mjs +2 -712
  11. package/es/CustomTitle.mjs +6 -7
  12. package/es/CustomToggle.mjs +2 -170
  13. package/es/DialogContainer.mjs +2 -136
  14. package/es/DocSyncSelect.mjs +2 -0
  15. package/es/FileDisplay.mjs +4 -6
  16. package/es/FilePreview.mjs +3 -179
  17. package/es/FileUploader.mjs +2 -268
  18. package/es/Logo.mjs +2 -0
  19. package/es/McpFormDialog.mjs +11 -8
  20. package/es/McpParamsSet.mjs +8 -630
  21. package/es/MdEditor.mjs +2 -201
  22. package/es/PageContainer.mjs +4 -362
  23. package/es/ParameterTable.mjs +6 -2288
  24. package/es/PublishRecord.mjs +2 -179
  25. package/es/RadioGroup.mjs +2 -119
  26. package/es/SourcePublish.mjs +7 -1154
  27. package/es/Table.mjs +6 -10
  28. package/es/assets/AddOrEditSupplierDialog.css +1 -1
  29. package/es/assets/AiboxTable.css +1 -1
  30. package/es/assets/ApplicationTypeTag.css +1 -1
  31. package/es/assets/AuthSection.css +1 -1
  32. package/es/assets/AutoShowTooltip.css +1 -1
  33. package/es/assets/AvailableRangePreview.css +1 -0
  34. package/es/assets/CodeView.css +1 -0
  35. package/es/assets/CommonTagsList.css +1 -1
  36. package/es/assets/CreateMcpForm.css +1 -1
  37. package/es/assets/CustomSidebar.css +1 -1
  38. package/es/assets/CustomToggle.css +1 -1
  39. package/es/assets/DialogContainer.css +1 -1
  40. package/es/assets/DocSyncSelect.css +1 -0
  41. package/es/assets/FileDisplay.css +1 -0
  42. package/es/assets/FilePreview.css +1 -1
  43. package/es/assets/FileUploader.css +1 -1
  44. package/es/assets/Logo.css +1 -0
  45. package/es/assets/{index2.css → 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/assets/legacy.css +1 -0
  55. package/es/assets/usePreview.css +10 -1
  56. package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +721 -0
  57. package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +721 -0
  58. package/es/chunks/AiboxTable.CrWMAX84.js +635 -0
  59. package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +47 -0
  60. package/es/chunks/AuthSection.DWD_FxtJ.js +201 -0
  61. package/es/chunks/AutoShowTooltip.C_DI9t2Z.js +82 -0
  62. package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +194 -0
  63. package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +229 -0
  64. package/es/chunks/CodeView.CWuSIL_F.js +148 -0
  65. package/es/chunks/CommonTagsList.DSPdgjc3.js +156 -0
  66. package/es/chunks/CreateMcpForm.BBVVd2RN.js +308 -0
  67. package/es/chunks/CreateMcpForm.C8YfDSEM.js +308 -0
  68. package/es/chunks/CustomSidebar.BSGAhmVY.js +585 -0
  69. package/es/chunks/CustomToggle.BxxsaD-W.js +181 -0
  70. package/es/chunks/DialogContainer.DL7aTMDS.js +129 -0
  71. package/es/chunks/DocSyncSelect.Kk88o9gO.js +2290 -0
  72. package/es/chunks/FileDisplay.B5laA4uX.js +1649 -0
  73. package/es/chunks/FileDisplay.BCTNdpl9.js +1649 -0
  74. package/es/chunks/FileDisplay.CBNYrdsK.js +1560 -0
  75. package/es/chunks/FileDisplay.CJ7KCID6.js +1650 -0
  76. package/es/chunks/FilePreview.B9u8ODHp.js +123 -0
  77. package/es/chunks/FilePreview.De4zHsfc.js +123 -0
  78. package/es/chunks/FileUploader.DD-lopf-.js +216 -0
  79. package/es/chunks/Logo.0myMjGux.js +62 -0
  80. package/es/chunks/McpFormDialog.4HDExbTn.js +297 -0
  81. package/es/chunks/McpFormDialog.DNzqqhaX.js +297 -0
  82. package/es/chunks/McpParamsSet.Tlo_lPn-.js +501 -0
  83. package/es/chunks/MdEditor.DtL0Se7T.js +163 -0
  84. package/es/chunks/PageContainer.DXddaRs1.js +462 -0
  85. package/es/chunks/ParameterTable.BCdnj1gW.js +2010 -0
  86. package/es/chunks/PublishRecord.DEzC7hmP.js +133 -0
  87. package/es/chunks/RadioGroup.Czc1JtkN.js +107 -0
  88. package/es/chunks/SourcePublish.Dx-ltk9U.js +956 -0
  89. package/es/chunks/_plugin-vue_export-helper.Ct3qlEzt.js +8 -0
  90. package/es/chunks/chunk.EU29TkMc.js +20 -0
  91. package/es/chunks/config.MfNKPMiA.js +35 -0
  92. package/es/chunks/config.l1J_qxeB.js +270 -0
  93. package/es/chunks/enums.DDPWAqdV.js +13 -0
  94. package/es/chunks/field-types.zf28gvKR.js +7 -0
  95. package/es/chunks/files.DvOT1nf3.js +14 -0
  96. package/es/chunks/i18n.CxsxtRq_.js +418 -0
  97. package/es/chunks/layout.C9wKDpv-.js +19 -0
  98. package/es/chunks/publish.Z0XAASut.js +50 -0
  99. package/es/chunks/request.CfOHcfgX.js +5 -0
  100. package/es/chunks/usePreview.CMMjOD_o.js +148 -0
  101. package/es/chunks/usePreview.agdxmOk8.js +126 -0
  102. package/es/chunks/withinstall.dLh4K-0g.js +7 -0
  103. package/es/index.mjs +258 -328
  104. package/index.css +1 -1
  105. package/lib/AddOrEditSupplierDialog.js +1 -1
  106. package/lib/ApplicationTypeTag.js +1 -1
  107. package/lib/AuthSection.js +1 -1
  108. package/lib/AutoShowTooltip.js +1 -1
  109. package/lib/AvailableRangePreview.js +1 -1
  110. package/lib/AvailableRangeSetting.js +1 -1
  111. package/lib/CodeView.js +1 -1
  112. package/lib/CommonTagsList.js +1 -1
  113. package/lib/CreateMcpForm.js +1 -1
  114. package/lib/CustomSidebar.js +1 -1
  115. package/lib/CustomTitle.js +1 -1
  116. package/lib/CustomToggle.js +1 -1
  117. package/lib/DialogContainer.js +1 -1
  118. package/lib/DocSyncSelect.js +1 -0
  119. package/lib/FileDisplay.js +1 -1
  120. package/lib/FilePreview.js +1 -1
  121. package/lib/FileUploader.js +1 -1
  122. package/lib/Logo.js +1 -0
  123. package/lib/McpFormDialog.js +1 -1
  124. package/lib/McpParamsSet.js +1 -1
  125. package/lib/MdEditor.js +1 -1
  126. package/lib/PageContainer.js +1 -1
  127. package/lib/ParameterTable.js +1 -1
  128. package/lib/PublishRecord.js +1 -5
  129. package/lib/RadioGroup.js +1 -1
  130. package/lib/SourcePublish.js +1 -1
  131. package/lib/Table.js +1 -1
  132. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  133. package/lib/assets/AiboxTable.css +1 -1
  134. package/lib/assets/ApplicationTypeTag.css +1 -1
  135. package/lib/assets/AuthSection.css +1 -1
  136. package/lib/assets/AutoShowTooltip.css +1 -1
  137. package/lib/assets/AvailableRangePreview.css +1 -0
  138. package/lib/assets/CodeView.css +1 -0
  139. package/lib/assets/CommonTagsList.css +1 -1
  140. package/lib/assets/CreateMcpForm.css +1 -1
  141. package/lib/assets/CustomSidebar.css +1 -1
  142. package/lib/assets/CustomToggle.css +1 -1
  143. package/lib/assets/DialogContainer.css +1 -1
  144. package/lib/assets/DocSyncSelect.css +1 -0
  145. package/lib/assets/FileDisplay.css +1 -0
  146. package/lib/assets/FilePreview.css +1 -1
  147. package/lib/assets/FileUploader.css +1 -1
  148. package/lib/assets/Logo.css +1 -0
  149. package/lib/assets/{index2.css → McpFormDialog.css} +1 -1
  150. package/lib/assets/McpParamsSet.css +1 -1
  151. package/lib/assets/MdEditor.css +1 -1
  152. package/lib/assets/PageContainer.css +1 -1
  153. package/lib/assets/ParameterTable.css +1 -1
  154. package/lib/assets/PublishRecord.css +1 -1
  155. package/lib/assets/RadioGroup.css +1 -1
  156. package/lib/assets/SourcePublish.css +1 -1
  157. package/lib/assets/layout.css +1 -1
  158. package/lib/assets/legacy.css +1 -0
  159. package/lib/assets/usePreview.css +10 -1
  160. package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +1 -0
  161. package/lib/chunks/AddOrEditSupplierDialog.XtPxc5yr.js +1 -0
  162. package/lib/chunks/AiboxTable.DFyqwoGc.js +1 -0
  163. package/lib/chunks/ApplicationTypeTag.CZReMt-9.js +1 -0
  164. package/lib/chunks/AuthSection.CP9c-YTW.js +1 -0
  165. package/lib/chunks/AutoShowTooltip.D3QQ36Bm.js +1 -0
  166. package/lib/chunks/AvailableRangePreview.DvREyHNH.js +1 -0
  167. package/lib/chunks/AvailableRangeSetting.DDHTOLJA.js +1 -0
  168. package/lib/chunks/CodeView.DeBxLqyC.js +1 -0
  169. package/lib/chunks/CommonTagsList.DbNcVId5.js +1 -0
  170. package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +1 -0
  171. package/lib/chunks/CreateMcpForm.DNijYbgd.js +1 -0
  172. package/lib/chunks/CustomSidebar.Dojb1xoS.js +1 -0
  173. package/lib/chunks/CustomToggle.Dz7MRyOY.js +1 -0
  174. package/lib/chunks/DialogContainer.C0Hsohgn.js +1 -0
  175. package/lib/chunks/DocSyncSelect.1gaXRzps.js +2 -0
  176. package/lib/chunks/FileDisplay.B4gn0Jhp.js +59 -0
  177. package/lib/chunks/FileDisplay.B7JWIcFg.js +59 -0
  178. package/lib/chunks/FileDisplay.BSNmvK44.js +59 -0
  179. package/lib/chunks/FileDisplay.DjtHza32.js +59 -0
  180. package/lib/chunks/FilePreview.DX9e8_nx.js +1 -0
  181. package/lib/chunks/FilePreview.b1Gine59.js +1 -0
  182. package/lib/chunks/FileUploader.6IW_QL-h.js +1 -0
  183. package/lib/chunks/Logo.Jr7hhaH0.js +1 -0
  184. package/lib/chunks/McpFormDialog.CL2bInts.js +6 -0
  185. package/lib/chunks/McpFormDialog.DbhQIwYW.js +6 -0
  186. package/lib/chunks/McpParamsSet.BYrxVvDL.js +1 -0
  187. package/lib/chunks/MdEditor.rVQbuxCg.js +1 -0
  188. package/lib/chunks/PageContainer.elwvD8VL.js +1 -0
  189. package/lib/chunks/ParameterTable.CeufAEXh.js +1 -0
  190. package/lib/chunks/PublishRecord.B7xYlRKJ.js +5 -0
  191. package/lib/chunks/RadioGroup.cl57IvY3.js +1 -0
  192. package/lib/chunks/SourcePublish.K4tntn9l.js +1 -0
  193. package/lib/chunks/_plugin-vue_export-helper.Bgn9wawX.js +1 -0
  194. package/lib/chunks/chunk.BbA6Ugdl.js +1 -0
  195. package/lib/chunks/config.CDNV0bUm.js +1 -0
  196. package/lib/chunks/config.CZl1kYtI.js +1 -0
  197. package/lib/chunks/enums.DbdzzIzx.js +1 -0
  198. package/lib/chunks/field-types.C6f_z2S_.js +1 -0
  199. package/lib/chunks/files.BEXWmB32.js +1 -0
  200. package/lib/chunks/i18n.BGe5gOau.js +1 -0
  201. package/lib/chunks/layout.CK394aWE.js +1 -0
  202. package/lib/chunks/publish.DsepP8ll.js +1 -0
  203. package/lib/chunks/request.BuoFTs7h.js +1 -0
  204. package/lib/chunks/usePreview.7CCbmgQM.js +1 -0
  205. package/lib/chunks/usePreview.Dmhz8azZ.js +1 -0
  206. package/lib/chunks/withinstall.65aRnaVc.js +1 -0
  207. package/lib/index.js +2 -1
  208. package/package.json +6 -6
  209. package/es/AiboxTabs.mjs +0 -71
  210. package/es/ExampleComponent.mjs +0 -35
  211. package/es/assets/AiboxTabs.css +0 -1
  212. package/es/assets/BackBar.css +0 -1
  213. package/es/assets/ExampleComponent.css +0 -1
  214. package/es/assets/index.css +0 -1
  215. package/es/assets/index3.css +0 -1
  216. package/es/assets/index4.css +0 -1
  217. package/es/assets/index5.css +0 -1
  218. package/es/assets/index6.css +0 -1
  219. package/es/chunks/AiboxTable.DUGBBVXh.js +0 -645
  220. package/es/chunks/BackBar.B5Er8ZdJ.js +0 -645
  221. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  222. package/es/chunks/BackBar.Cv1wxUcM.js +0 -645
  223. package/es/chunks/BackBar.DJV4JaUM.js +0 -645
  224. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
  225. package/es/chunks/config.8htFF04x.js +0 -325
  226. package/es/chunks/config.BPp4hMBq.js +0 -325
  227. package/es/chunks/config.BU21Gda2.js +0 -49
  228. package/es/chunks/config.BzCGum_W.js +0 -49
  229. package/es/chunks/config.CFWGjEdA.js +0 -49
  230. package/es/chunks/config.CfWAdyUH.js +0 -325
  231. package/es/chunks/config.DPkdwjwD.js +0 -49
  232. package/es/chunks/config.DTMcCH58.js +0 -325
  233. package/es/chunks/config.Dklrsn-B.js +0 -49
  234. package/es/chunks/config.DqhQdkz7.js +0 -325
  235. package/es/chunks/config.RrNwuFkQ.js +0 -325
  236. package/es/chunks/config.gNZ_rT87.js +0 -325
  237. package/es/chunks/enums.CfSBDD6u.js +0 -83
  238. package/es/chunks/enums.DuBbLcd-.js +0 -83
  239. package/es/chunks/enums.Dvec-maC.js +0 -62
  240. package/es/chunks/field-types.CPnMOjle.js +0 -13
  241. package/es/chunks/files.cduUqjHX.js +0 -16
  242. package/es/chunks/i18n.DDMVloiU.js +0 -443
  243. package/es/chunks/i18n.DmqkiK-h.js +0 -444
  244. package/es/chunks/i18n.Vhq-tZPw.js +0 -94
  245. package/es/chunks/i18n.k9Q_HVMs.js +0 -443
  246. package/es/chunks/i18n.ro9yz7rE.js +0 -94
  247. package/es/chunks/index.BSA3IKSF.js +0 -111
  248. package/es/chunks/index.BT1khSY9.js +0 -111
  249. package/es/chunks/index.CDvh263l.js +0 -257
  250. package/es/chunks/index.CLyfh6p1.js +0 -257
  251. package/es/chunks/index.CSjjAi3w.js +0 -396
  252. package/es/chunks/index.CdEBk4F_.js +0 -134
  253. package/es/chunks/index.CgbxJCEU.js +0 -265
  254. package/es/chunks/index.CuDwuRO7.js +0 -265
  255. package/es/chunks/index.DB0ayMv8.js +0 -257
  256. package/es/chunks/index.DWR4lc30.js +0 -203
  257. package/es/chunks/index.GuEzdh6b.js +0 -257
  258. package/es/chunks/index.aMb6IVQD.js +0 -257
  259. package/es/chunks/index.bCzIhWFw.js +0 -7
  260. package/es/chunks/index.ml5i7aB5.js +0 -257
  261. package/es/chunks/index.s-YxIOfq.js +0 -301
  262. package/es/chunks/index.uOZzvHrF.js +0 -135
  263. package/es/chunks/layout.BREUWPEJ.js +0 -26
  264. package/es/chunks/publish.BCb7nCo9.js +0 -50
  265. package/es/chunks/publish.D6friivo.js +0 -50
  266. package/es/chunks/publish.DlD0o09n.js +0 -50
  267. package/es/chunks/publish.Dqzn7qEl.js +0 -50
  268. package/es/chunks/request.24c3shPx.js +0 -5
  269. package/es/chunks/usePreview.B5lboHeg.js +0 -153
  270. package/es/chunks/usePreview.C36fNlVd.js +0 -153
  271. package/es/i18n.mjs +0 -17
  272. package/lib/AiboxTabs.js +0 -1
  273. package/lib/ExampleComponent.js +0 -1
  274. package/lib/assets/AiboxTabs.css +0 -1
  275. package/lib/assets/BackBar.css +0 -1
  276. package/lib/assets/ExampleComponent.css +0 -1
  277. package/lib/assets/index.css +0 -1
  278. package/lib/assets/index3.css +0 -1
  279. package/lib/assets/index4.css +0 -1
  280. package/lib/assets/index5.css +0 -1
  281. package/lib/assets/index6.css +0 -1
  282. package/lib/chunks/AiboxTable.BnoHJ7xL.js +0 -1
  283. package/lib/chunks/BackBar.C8Xrc6qW.js +0 -1
  284. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  285. package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
  286. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +0 -1
  287. package/lib/chunks/config.1oaIKLGn.js +0 -1
  288. package/lib/chunks/config.B0XKkp1w.js +0 -1
  289. package/lib/chunks/config.BCAuBVxV.js +0 -1
  290. package/lib/chunks/config.BF7MO0O5.js +0 -1
  291. package/lib/chunks/config.Bs7sh3aP.js +0 -1
  292. package/lib/chunks/config.C1w4hgfw.js +0 -1
  293. package/lib/chunks/config.ClERt2RF.js +0 -1
  294. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  295. package/lib/chunks/enums.DnuzPZCR.js +0 -1
  296. package/lib/chunks/field-types.Ch_2yDfg.js +0 -1
  297. package/lib/chunks/files.B3-8UC0v.js +0 -1
  298. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  299. package/lib/chunks/i18n.DgOp_D7R.js +0 -1
  300. package/lib/chunks/i18n.aAXi5igh.js +0 -1
  301. package/lib/chunks/index.BNqTEn3K.js +0 -1
  302. package/lib/chunks/index.BZcSlgOO.js +0 -1
  303. package/lib/chunks/index.Bc71XWQn.js +0 -1
  304. package/lib/chunks/index.Bk-RwmaH.js +0 -1
  305. package/lib/chunks/index.BsN4urmi.js +0 -1
  306. package/lib/chunks/index.CH7XdMru.js +0 -1
  307. package/lib/chunks/index.CaidDlAx.js +0 -1
  308. package/lib/chunks/index.CkihWzK6.js +0 -1
  309. package/lib/chunks/index.D7wBInWr.js +0 -1
  310. package/lib/chunks/index.DGWHQFdx.js +0 -6
  311. package/lib/chunks/index.DME62Yfo.js +0 -1
  312. package/lib/chunks/index.DWohILMv.js +0 -1
  313. package/lib/chunks/index.LK2ulXTE.js +0 -1
  314. package/lib/chunks/index.qDAoOzk9.js +0 -1
  315. package/lib/chunks/index.s8vGOJKG.js +0 -1
  316. package/lib/chunks/layout.sgE9JoNq.js +0 -1
  317. package/lib/chunks/publish.3TrK3fZf.js +0 -1
  318. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  319. package/lib/chunks/publish.CA1uSVnm.js +0 -1
  320. package/lib/chunks/request.D8T4MgGX.js +0 -1
  321. package/lib/chunks/usePreview.2PZJSy5w.js +0 -1
  322. package/lib/chunks/usePreview.E5SeS2uw.js +0 -1
  323. package/lib/i18n.js +0 -1
@@ -0,0 +1,585 @@
1
+ import { t as e } from "./withinstall.dLh4K-0g.js";
2
+ import { t } from "./_plugin-vue_export-helper.Ct3qlEzt.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 T } from "vue";
4
+ import { ElAutoResizer as E, ElIcon as D, ElTreeV2 as O } from "element-plus";
5
+ import { AiboxIcon as k } from "color-message-aibox-vue";
6
+ import { IconRenderer as A, iconLibraryMap as j } from "color-star-custom-components";
7
+ import '../assets/CustomSidebar.css';//#region components/CustomSidebar/components/NavTitle.vue
8
+ var M = { class: "nav-title overflow-hidden" }, ee = /* @__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", M, [
38
+ l(b(D), { size: e.logoSize }, {
39
+ default: C(() => [l(b(k))]),
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(D), {
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"]]), N = {
58
+ DIR: "DIR",
59
+ MENU: "MENU",
60
+ BUTTON: "BUTTON"
61
+ }, P = new Map([
62
+ ["active", "#3271FE"],
63
+ ["parent_active", "#3271FE"],
64
+ ["normal", "#1F2329"]
65
+ ]), F = (e, t) => !Array.isArray(e) || !t ? !1 : e.some((e) => e.path === t ? !0 : e.children?.length > 0 ? F(e.children, t) : !1), I = (e, t = 1) => e.filter((e) => [N.DIR, N.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 ? I(e.children || [], t + 1) : [],
71
+ level: t
72
+ })), L = (e, t) => e?.children?.length ? e.children.some((e) => e?.path === t || e.children?.length && L(e, t)) : !1, R = (e, t) => e?.children?.length ? e.children.some((e) => e?.id === t || e.children?.length && R(e, t)) : !1, z = (e, t) => {
73
+ let n = e?.id === t, r = R(e, t), i = "normal";
74
+ return n ? i = "active" : r && (i = "parent_active"), P.get(i);
75
+ }, B = (e, t) => e.includes(t) ? e : [...e, t], te = (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
+ },
179
+ emits: [
180
+ "node-click",
181
+ "node-expand",
182
+ "node-collapse"
183
+ ],
184
+ setup(e, { emit: t }) {
185
+ let n = e, r = t, i = h(null), u = (e) => e?.icon && e.level === 1 || !e.isLeaf, g = (e) => z(e, n.currentMenuId), y = (e) => {
186
+ r("node-click", e, e.isLeaf ? Y.LEAF : Y.PARENT);
187
+ }, x = (e) => {
188
+ r("node-expand", e.id, e);
189
+ }, w = (e) => {
190
+ r("node-collapse", e.id, e);
191
+ }, k = (e) => {
192
+ i.value && (n.expandedKeys.includes(e.data.id) ? i.value.collapseNode(e) : i.value.expandNode(e));
193
+ };
194
+ return S(() => n.expandedKeys, (e) => {
195
+ d(() => {
196
+ i.value && i.value.setExpandedKeys([...e]);
197
+ });
198
+ }, { deep: !0 }), (t, n) => (m(), a(b(E), { class: "flex-1 overflow-hidden" }, {
199
+ default: C(({ height: t }) => [l(b(O), {
200
+ ref_key: "treeRef",
201
+ ref: i,
202
+ "node-key": "id",
203
+ data: e.menuData,
204
+ props: e.treeProps,
205
+ height: t,
206
+ "current-node-key": e.currentMenuId,
207
+ "highlight-current": !0,
208
+ "expanded-keys": e.expandedKeys,
209
+ "show-checkbox": !1,
210
+ "item-size": e.itemHeight + 8,
211
+ "expand-on-click-node": !1,
212
+ indent: e.indent,
213
+ style: p({ "--select-menu-bg": e.selectMenuBg }),
214
+ onNodeClick: y,
215
+ onNodeExpand: x,
216
+ onNodeCollapse: w,
217
+ class: "custom-tree"
218
+ }, {
219
+ default: C(({ node: t, data: n }) => [c("div", { class: f(["tree-node-content-custom", {
220
+ "has-children": !n.isLeaf,
221
+ "is-current": n.id === e.currentMenuId && n.isLeaf,
222
+ "is-parent-active": b(R)(n, e.currentMenuId) && !n.isLeaf
223
+ }]) }, [
224
+ u(n) ? (m(), a(b(D), {
225
+ key: 0,
226
+ size: e.iconSize,
227
+ class: "node-icon",
228
+ color: g(n)
229
+ }, {
230
+ default: C(() => [l(b(A), {
231
+ "icon-name": n?.icon,
232
+ "icon-library": b(j).aibox
233
+ }, null, 8, ["icon-name", "icon-library"])]),
234
+ _: 2
235
+ }, 1032, ["size", "color"])) : o("", !0),
236
+ c("span", ne, v(t.label), 1),
237
+ n.isLeaf ? o("", !0) : (m(), s("div", {
238
+ key: 1,
239
+ class: "expand-arrow",
240
+ onClick: T((e) => k(t), ["stop"])
241
+ }, [l(b(D), {
242
+ size: e.iconSize,
243
+ color: g(n)
244
+ }, {
245
+ default: C(() => [(m(), a(_(e.expandedKeys.includes(n.id) ? e.expandedIcon : e.collapsedIcon)))]),
246
+ _: 2
247
+ }, 1032, ["size", "color"])], 8, re))
248
+ ], 2)]),
249
+ _: 1
250
+ }, 8, [
251
+ "data",
252
+ "props",
253
+ "height",
254
+ "current-node-key",
255
+ "expanded-keys",
256
+ "item-size",
257
+ "indent",
258
+ "style"
259
+ ])]),
260
+ _: 1
261
+ }));
262
+ }
263
+ }), [["__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 = {
264
+ key: 0,
265
+ class: "user-info-card__bnid"
266
+ }, Q = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ name: "UserInfoCard" }, {
267
+ __name: "UserInfoCard",
268
+ props: {
269
+ userInfo: {
270
+ type: Object,
271
+ default: () => ({})
272
+ },
273
+ type: {
274
+ type: String,
275
+ default: Z.POPUP,
276
+ validator: (e) => Object.values(Z).includes(e)
277
+ }
278
+ },
279
+ setup(e) {
280
+ let t = e, n = i(() => t.userInfo?.name?.charAt(0)?.toUpperCase() || "");
281
+ 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));
282
+ }
283
+ }), [["__scopeId", "data-v-00216c75"]]), ue = { class: "user-popup-content" }, $ = ["onClick"], de = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ name: "UserPopup" }, {
284
+ __name: "UserPopup",
285
+ props: {
286
+ actions: {
287
+ type: Array,
288
+ default: () => [],
289
+ validator: (e) => e.every((e) => e.key && (e.icon || e.iconName))
290
+ },
291
+ userInfo: {
292
+ type: Object,
293
+ default: () => ({})
294
+ },
295
+ showUserInfo: {
296
+ type: Boolean,
297
+ default: !0
298
+ }
299
+ },
300
+ emits: ["action-click"],
301
+ setup(e, { emit: t }) {
302
+ let r = e, d = t, p = i(() => (r.actions || []).map((e) => ({
303
+ ...e,
304
+ icon: u(y(e?.icon))
305
+ }))), h = (e) => {
306
+ d("action-click", e.key, e);
307
+ };
308
+ return (t, r) => (m(), s("div", ue, [e.showUserInfo ? (m(), a(Q, {
309
+ key: 0,
310
+ userInfo: e.userInfo,
311
+ type: b(Z).POPUP,
312
+ class: "user-info-card"
313
+ }, 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", {
314
+ key: 0,
315
+ class: "list__item",
316
+ onClick: (t) => h(e)
317
+ }, [l(b(D), {
318
+ class: "list__item-icon",
319
+ size: e.iconSize || 20,
320
+ color: "#262626"
321
+ }, {
322
+ default: C(() => [(m(), a(_(e.icon), { size: e.iconSize || 20 }, null, 8, ["size"]))]),
323
+ _: 2
324
+ }, 1032, ["size"]), c("span", null, v(e.label), 1)], 8, $))], 64))), 128))], 2)]));
325
+ }
326
+ }), [["__scopeId", "data-v-4c9300a2"]]), fe = { class: "navbar-box__footer__left" }, pe = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ name: "NavFooter" }, {
327
+ __name: "NavFooter",
328
+ props: {
329
+ userInfo: {
330
+ type: Object,
331
+ default: null,
332
+ validator: (e) => e ? e.name !== void 0 : !0
333
+ },
334
+ actions: {
335
+ type: Array,
336
+ default: () => []
337
+ },
338
+ popupDelay: {
339
+ type: Number,
340
+ default: 200
341
+ },
342
+ popupLeft: {
343
+ type: Number,
344
+ default: 240
345
+ },
346
+ navFooterWidth: {
347
+ type: Number,
348
+ default: 240
349
+ },
350
+ userInfoCardType: {
351
+ type: String,
352
+ default: Z.FOOTER,
353
+ validator: (e) => Object.values(Z).includes(e)
354
+ },
355
+ showPopupUserInfo: {
356
+ type: Boolean,
357
+ default: !0
358
+ }
359
+ },
360
+ emits: ["action-click"],
361
+ setup(e, { emit: t }) {
362
+ let i = e, a = t, u = h(null), d = h(!1), f = (e) => {
363
+ e || (u.value = setTimeout(() => {
364
+ d.value = !1;
365
+ }, i.popupDelay)), e && (d.value = e, clearTimeout(u.value));
366
+ }, g = (e, t) => {
367
+ d.value = !1, a("action-click", e, t);
368
+ };
369
+ return (t, i) => (m(), s(n, null, [e.userInfo ? (m(), s("div", {
370
+ key: 0,
371
+ class: "navbar-box__footer flex items-center",
372
+ style: p({ width: e.navFooterWidth + "px" }),
373
+ onMouseenter: i[0] ||= (e) => f(!0),
374
+ onMouseleave: i[1] ||= (e) => f(!1)
375
+ }, [c("div", fe, [l(Q, {
376
+ userInfo: e.userInfo,
377
+ type: e.userInfoCardType
378
+ }, null, 8, ["userInfo", "type"])])], 36)) : o("", !0), l(r, { name: "fade" }, {
379
+ default: C(() => [w(c("div", {
380
+ class: "footer-popup content-bg",
381
+ style: p({ left: e.popupLeft + "px" }),
382
+ onMouseenter: i[2] ||= (e) => f(!0),
383
+ onMouseleave: i[3] ||= (e) => f(!1)
384
+ }, [l(de, {
385
+ actions: e.actions,
386
+ userInfo: e.userInfo,
387
+ showUserInfo: e.showPopupUserInfo,
388
+ onActionClick: g
389
+ }, null, 8, [
390
+ "actions",
391
+ "userInfo",
392
+ "showUserInfo"
393
+ ])], 36), [[x, d.value]])]),
394
+ _: 1
395
+ })], 64));
396
+ }
397
+ }), [["__scopeId", "data-v-2b4a0a2b"]]), me = { class: "sidebar flex h-full flex-col" }, he = { class: "flex-1 overflow-hidden flex flex-col pd-l-12 pd-r-12" }, ge = e(/* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ name: "CustomSidebar" }, {
398
+ __name: "layout",
399
+ props: {
400
+ menuData: {
401
+ type: Array,
402
+ default: () => []
403
+ },
404
+ currentMenuId: {
405
+ type: String,
406
+ default: null
407
+ },
408
+ expandedKeys: {
409
+ type: Array,
410
+ default: () => []
411
+ },
412
+ title: {
413
+ type: String,
414
+ default: ""
415
+ },
416
+ showToggle: {
417
+ type: Boolean,
418
+ default: !0
419
+ },
420
+ toggleIcon: {
421
+ type: [Object, String],
422
+ default: null
423
+ },
424
+ treeProps: {
425
+ type: Object,
426
+ default: () => J
427
+ },
428
+ itemHeight: {
429
+ type: Number,
430
+ default: 36
431
+ },
432
+ indent: {
433
+ type: Number,
434
+ default: 24
435
+ },
436
+ iconSize: {
437
+ type: Number,
438
+ default: 16
439
+ },
440
+ selectMenuBg: {
441
+ type: String,
442
+ default: "#eaf0fe"
443
+ },
444
+ titleStyle: {
445
+ type: Object,
446
+ default: () => ({ fontSize: "16px" })
447
+ },
448
+ expandedIcon: {
449
+ type: [Object, String],
450
+ default: null
451
+ },
452
+ collapsedIcon: {
453
+ type: [Object, String],
454
+ default: null
455
+ },
456
+ iconRenderer: {
457
+ type: [Object, String],
458
+ default: null
459
+ },
460
+ iconLibrary: {
461
+ type: [String, Object],
462
+ default: null
463
+ },
464
+ showFooter: {
465
+ type: Boolean,
466
+ default: !0
467
+ },
468
+ userInfo: {
469
+ type: Object,
470
+ default: null
471
+ },
472
+ userActions: {
473
+ type: Array,
474
+ default: () => []
475
+ },
476
+ popupDelay: {
477
+ type: Number,
478
+ default: 200
479
+ },
480
+ popupLeft: {
481
+ type: Number,
482
+ default: 240
483
+ },
484
+ navFooterWidth: {
485
+ type: Number,
486
+ default: 240
487
+ },
488
+ userInfoCardType: {
489
+ type: String,
490
+ default: Z.FOOTER,
491
+ validator: (e) => Object.values(Z).includes(e)
492
+ },
493
+ showPopupUserInfo: {
494
+ type: Boolean,
495
+ default: !0
496
+ },
497
+ logoSize: {
498
+ type: Number,
499
+ default: 30
500
+ }
501
+ },
502
+ emits: [
503
+ "toggle",
504
+ "node-click",
505
+ "node-expand",
506
+ "node-collapse",
507
+ "user-action-click"
508
+ ],
509
+ setup(e, { emit: t }) {
510
+ let n = t, r = () => {
511
+ n("toggle");
512
+ }, i = (e, t) => {
513
+ n("node-click", e, t);
514
+ }, u = (e, t) => {
515
+ n("node-expand", e, t);
516
+ }, d = (e, t) => {
517
+ n("node-collapse", e, t);
518
+ }, f = (e, t) => {
519
+ n("user-action-click", e, t);
520
+ };
521
+ return (t, n) => (m(), s("div", me, [c("div", he, [l(ee, {
522
+ "title-style": e.titleStyle,
523
+ title: e.title,
524
+ "logo-size": e.logoSize,
525
+ "show-toggle": e.showToggle,
526
+ "toggle-icon": e.toggleIcon,
527
+ onToggle: r
528
+ }, null, 8, [
529
+ "title-style",
530
+ "title",
531
+ "logo-size",
532
+ "show-toggle",
533
+ "toggle-icon"
534
+ ]), l(ie, {
535
+ "menu-data": e.menuData,
536
+ "current-menu-id": e.currentMenuId,
537
+ "expanded-keys": e.expandedKeys,
538
+ "tree-props": e.treeProps,
539
+ "item-height": e.itemHeight,
540
+ indent: e.indent,
541
+ "icon-size": e.iconSize,
542
+ "select-menu-bg": e.selectMenuBg,
543
+ "expanded-icon": e.expandedIcon,
544
+ "collapsed-icon": e.collapsedIcon,
545
+ "icon-renderer": e.iconRenderer,
546
+ "icon-library": e.iconLibrary,
547
+ onNodeClick: i,
548
+ onNodeExpand: u,
549
+ onNodeCollapse: d
550
+ }, null, 8, [
551
+ "menu-data",
552
+ "current-menu-id",
553
+ "expanded-keys",
554
+ "tree-props",
555
+ "item-height",
556
+ "indent",
557
+ "icon-size",
558
+ "select-menu-bg",
559
+ "expanded-icon",
560
+ "collapsed-icon",
561
+ "icon-renderer",
562
+ "icon-library"
563
+ ])]), e.showFooter ? (m(), a(pe, {
564
+ key: 0,
565
+ "popup-left": e.popupLeft,
566
+ "user-info": e.userInfo,
567
+ actions: e.userActions,
568
+ "popup-delay": e.popupDelay,
569
+ "nav-footer-width": e.navFooterWidth,
570
+ "user-info-card-type": e.userInfoCardType,
571
+ "show-popup-user-info": e.showPopupUserInfo,
572
+ onActionClick: f
573
+ }, null, 8, [
574
+ "popup-left",
575
+ "user-info",
576
+ "actions",
577
+ "popup-delay",
578
+ "nav-footer-width",
579
+ "user-info-card-type",
580
+ "show-popup-user-info"
581
+ ])) : o("", !0)]));
582
+ }
583
+ }), [["__scopeId", "data-v-b8991280"]]));
584
+ //#endregion
585
+ 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, ge as t, B as u, L as v, I as x, F as y };