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
@@ -1,209 +1,3 @@
1
- import { w as D } from "./chunks/index.bCzIhWFw.js";
2
- import { computed as f, createBlock as _, openBlock as s, unref as n, withCtx as d, createElementVNode as S, createCommentVNode as g, resolveDynamicComponent as P, toDisplayString as m, createElementBlock as a, Fragment as v, renderList as I, createVNode as L, normalizeStyle as B, createTextVNode as H, withModifiers as V } from "vue";
3
- import { ElTag as O, ElIcon as U, ElPopover as G } from "element-plus";
4
- import { u as z } from "./chunks/i18n.DDMVloiU.js";
5
- import { f as k, e as C, d as w, P as A, R as E, C as M, g as $ } from "./chunks/config.RrNwuFkQ.js";
6
- import { A as R } from "./chunks/index.CDvh263l.js";
7
- import { _ as j } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
- import { P as p } from "./chunks/config.Dklrsn-B.js";
9
- import './assets/CommonTagsList.css';const F = { class: "status-tag-content flex items-center" }, K = { class: "status-text fz-12" }, W = {
10
- __name: "StatusTag",
11
- props: {
12
- channelStatus: {
13
- type: [String, Number],
14
- default: null
15
- },
16
- statusText: {
17
- type: String,
18
- default: null
19
- },
20
- showIcon: {
21
- type: Boolean,
22
- default: !1
23
- }
24
- },
25
- setup(c) {
26
- const i = c, u = f(() => k[i.channelStatus]), x = f(() => C[i.channelStatus]), T = f(() => w[i.channelStatus]), b = f(() => A[i.channelStatus]);
27
- return (N, r) => (s(), _(n(O), { type: u.value }, {
28
- default: d(() => [
29
- S("div", F, [
30
- c.showIcon && T.value ? (s(), _(n(U), {
31
- key: 0,
32
- color: b.value
33
- }, {
34
- default: d(() => [
35
- (s(), _(P(T.value)))
36
- ]),
37
- _: 1
38
- }, 8, ["color"])) : g("", !0),
39
- S("span", K, m(c.statusText || x.value), 1)
40
- ])
41
- ]),
42
- _: 1
43
- }, 8, ["type"]));
44
- }
45
- }, Y = /* @__PURE__ */ j(W, [["__scopeId", "data-v-59c4f44d"]]), X = { class: "commont-status-box" }, q = {
46
- class: "common-content w-full overflow-y-auto",
47
- style: { "max-height": "200px" }
48
- }, J = {
49
- key: 0,
50
- class: "content-item"
51
- }, Q = { class: "content-item-top flex items-center" }, Z = { class: "item-bottom-box mg-l-4 pd-t-8 flex flex-wrap" }, ee = {
52
- key: 1,
53
- class: "icon-placeholder w-full mg-t-4 mg-b-8 bg-e6e8ea",
54
- style: { height: "1px" }
55
- }, te = {
56
- key: 0,
57
- class: "all-visible-ranges-section mg-t-12"
58
- }, se = { class: "channel-name fz-12 weight-500 mg-b-4 text-1f2329 flex items-center" }, ne = {
59
- key: 0,
60
- class: "range-separator w-full mg-t-8 mg-b-8 bg-e6e8ea",
61
- style: { height: "1px" }
62
- }, le = /* @__PURE__ */ Object.assign({
63
- name: "CommonTagsList"
64
- }, {
65
- __name: "layout",
66
- props: {
67
- publishChannelList: {
68
- type: Array,
69
- default: () => []
70
- },
71
- sourceType: {
72
- type: [String, Number],
73
- default: null
74
- }
75
- },
76
- setup(c) {
77
- const { t: i } = z(), u = c, x = f(() => {
78
- const r = u.publishChannelList || [], t = r.filter((e) => e.channelStatus === p.PUBLISHED).map((e) => ({
79
- ...e,
80
- displayText: E?.[e.channelType]?.name(u.sourceType) || ""
81
- })), l = r.filter((e) => e.channelStatus !== p.PUBLISHED).reduce((e, o) => {
82
- const y = o.channelStatus;
83
- return e[y] || (e[y] = []), e[y].push(o), e;
84
- }, {}), h = Object.entries(l).map(([e, o]) => ({
85
- channelStatus: parseInt(e),
86
- displayText: `${C[parseInt(e)]}(${o.length})`,
87
- isGroup: !0,
88
- channels: o
89
- })).sort((e, o) => o.channelStatus - e.channelStatus);
90
- return [...t, ...h];
91
- }), T = f(() => {
92
- if (!u.publishChannelList?.length) return [];
93
- const r = u.publishChannelList.reduce((t, l) => {
94
- const h = l.channelStatus;
95
- return t[h] || (t[h] = []), t[h].push(l), t;
96
- }, {});
97
- return Object.entries(r).map(([t, l]) => ({
98
- status: parseInt(t),
99
- channels: l
100
- })).sort((t, l) => t.status === p.PUBLISHED ? -1 : l.status === p.PUBLISHED ? 1 : l.status - t.status);
101
- }), b = f(() => {
102
- if (!u.publishChannelList?.length) return [];
103
- const r = i("COMMON_TAGS_LIST.UNKNOWN_CHANNEL");
104
- return u.publishChannelList.filter((t) => !t.visibleScope || t.visibleScope.length === 0 ? !1 : t.channelStatus === p.PUBLISHED).map((t) => ({
105
- channelName: E[t.channelType]?.name(u.sourceType) || r,
106
- channelType: t.channelType,
107
- visibleScope: t.visibleScope,
108
- allVisible: t.allVisible
109
- }));
110
- }), N = (r) => {
111
- const t = $[r];
112
- return M[t];
113
- };
114
- return (r, t) => (s(), a("div", X, [
115
- (s(!0), a(v, null, I(x.value, (l, h) => (s(), _(n(G), {
116
- key: h,
117
- placement: "bottom",
118
- trigger: "click",
119
- width: "300"
120
- }, {
121
- reference: d(() => [
122
- L(Y, {
123
- onClick: t[0] || (t[0] = V(() => {
124
- }, ["stop"])),
125
- "channel-status": l.channelStatus,
126
- "status-text": l.displayText,
127
- "show-icon": !0,
128
- class: "mg-r-4 mg-b-4"
129
- }, null, 8, ["channel-status", "status-text"])
130
- ]),
131
- default: d(() => [
132
- S("div", q, [
133
- (s(!0), a(v, null, I(T.value, (e, o) => (s(), a(v, {
134
- key: e.status
135
- }, [
136
- e.channels.length > 0 ? (s(), a("div", J, [
137
- S("div", Q, [
138
- L(n(U), {
139
- style: B({ color: n(A)[e.status] })
140
- }, {
141
- default: d(() => [
142
- (s(), _(P(n(w)[e.status])))
143
- ]),
144
- _: 2
145
- }, 1032, ["style"]),
146
- S("div", {
147
- class: "content-item-name fz-14 mg-l-4",
148
- style: B({ color: n(A)[e.status] })
149
- }, m(n(C)[e.status]) + "(" + m(e.channels.length) + ") ", 5)
150
- ]),
151
- S("div", Z, [
152
- (s(!0), a(v, null, I(e.channels, (y) => (s(), a("div", {
153
- class: "b-item-box mg-r-8 radius-4 fz-12 pd-t-4 pd-b-4 pd-l-8 pd-r-8 mg-b-8 text-1f2329 bg-f5f6f7",
154
- key: y.channelType
155
- }, m(n(E)?.[y.channelType]?.name(
156
- c.sourceType
157
- )), 1))), 128))
158
- ])
159
- ])) : g("", !0),
160
- o < T.value.length - 1 ? (s(), a("div", ee)) : g("", !0)
161
- ], 64))), 128)),
162
- b.value.length > 0 ? (s(), a("div", te, [
163
- (s(!0), a(v, null, I(b.value, (e, o) => (s(), a("div", {
164
- key: e.channelType,
165
- class: "channel-visible-range"
166
- }, [
167
- S("div", se, [
168
- L(n(U), {
169
- class: "mg-r-2",
170
- size: "14",
171
- color: N(e.channelType)?.iconColor
172
- }, {
173
- default: d(() => [
174
- (s(), _(P(N(e.channelType)?.icon)))
175
- ]),
176
- _: 2
177
- }, 1032, ["color"]),
178
- H(" " + m(e.channelName) + " " + m(n(i)("COMMON_TAGS_LIST.AVAILABLE_SCOPE")), 1)
179
- ]),
180
- L(n(R), {
181
- "all-visible": e.allVisible,
182
- "model-value": e.visibleScope,
183
- "tree-list": [],
184
- readonly: !0
185
- }, null, 8, ["all-visible", "model-value"]),
186
- o < b.value.length - 1 ? (s(), a("div", ne)) : g("", !0)
187
- ]))), 128))
188
- ])) : g("", !0)
189
- ])
190
- ]),
191
- _: 2
192
- }, 1024))), 128)),
193
- c.publishChannelList?.length ? g("", !0) : (s(), _(n(O), {
194
- key: 0,
195
- type: n(k)[n(p).UNPUBLISHED]
196
- }, {
197
- default: d(() => [
198
- H(m(n(C)[n(p).UNPUBLISHED]), 1)
199
- ]),
200
- _: 1
201
- }, 8, ["type"]))
202
- ]));
203
- }
204
- }), me = D(le);
205
- export {
206
- me as CommonTagsList,
207
- Y as StatusTag,
208
- me as default
209
- };
1
+ import "./chunks/AvailableRangePreview.Bz9QkkAM.js";
2
+ import { n as e, t } from "./chunks/CommonTagsList.DSPdgjc3.js";
3
+ export { t as CommonTagsList, t as default, e as StatusTag };
@@ -1,384 +1,10 @@
1
- import { w as k } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as R, reactive as S, watch as x, createBlock as d, openBlock as C, unref as e, withCtx as u, createVNode as i, createCommentVNode as f, createElementVNode as m, toDisplayString as E, createTextVNode as h } from "vue";
3
- import { ElForm as Q, ElFormItem as p, ElTooltip as b, ElIcon as F, ElInput as M, ElMessage as T } from "element-plus";
4
- import { IconTip as U } from "color-message-aibox-vue";
5
- import { n as K } from "./chunks/usePreview.B5lboHeg.js";
6
- import { AuthSection as H } from "./AuthSection.mjs";
7
- import { RadioGroup as j } from "./RadioGroup.mjs";
8
- import { u as g } from "./chunks/i18n.DDMVloiU.js";
9
- import { FilePreview as q } from "./FilePreview.mjs";
10
- import { FileUploader as z } from "./FileUploader.mjs";
11
- import { MdEditor as W } from "./MdEditor.mjs";
12
- import { _ as X } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
13
- import './assets/CreateMcpForm.css';const G = () => {
14
- const { t: s } = g();
15
- return {
16
- rulesObj: {
17
- name: [
18
- {
19
- required: !0,
20
- message: s("LIBRARY_CREATEMCPFORM.MCP_NAME_PLACEHOLDER"),
21
- trigger: "blur"
22
- },
23
- {
24
- max: 20,
25
- message: s("LIBRARY_CREATEMCPFORM.MCP_NAME_MAX"),
26
- trigger: "blur"
27
- }
28
- ],
29
- description: [
30
- {
31
- required: !0,
32
- message: s("LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_REQUIRED"),
33
- trigger: "blur"
34
- },
35
- {
36
- max: 200,
37
- message: s("LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_MAX"),
38
- trigger: "blur"
39
- }
40
- ],
41
- overview: [
42
- {
43
- required: !0,
44
- message: s("LIBRARY_CREATEMCPFORM.MCP_OVERVIEW_REQUIRED"),
45
- trigger: "blur"
46
- }
47
- ],
48
- address: [
49
- {
50
- type: "url",
51
- required: !0,
52
- message: s("LIBRARY_CREATEMCPFORM.SERVICE_URL_INVALID"),
53
- trigger: ["blur", "change"]
54
- }
55
- ],
56
- communicationType: [
57
- {
58
- required: !0,
59
- message: s("LIBRARY_CREATEMCPFORM.TRANSFER_METHOD_REQUIRED"),
60
- trigger: "change"
61
- }
62
- ],
63
- applyLink: [
64
- {
65
- type: "url",
66
- message: s("LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_INVALID"),
67
- trigger: ["blur", "change"]
68
- }
69
- ]
70
- },
71
- communicationTypeOpts: [
72
- { label: "SSE", value: "SSE" },
73
- { label: "Streamable HTTP", value: "HTTP" }
74
- ]
75
- };
76
- }, Z = { class: "label-with-icon" }, $ = { class: "label-with-icon" }, J = { class: "auth-section-wrapper" }, ee = {
77
- __name: "CreateMcpForm",
78
- props: {
79
- // 控制是否显示 MCP 概览字段
80
- showOverview: {
81
- type: Boolean,
82
- default: !1
83
- }
84
- },
85
- setup(s, { expose: O }) {
86
- const _ = s, { t } = g(), { previewImage: w } = K(), v = R(null), I = R(null), { rulesObj: P, communicationTypeOpts: V } = G(), l = S({
87
- icon: "",
88
- iconUrl: "",
89
- name: "",
90
- description: "",
91
- overview: "",
92
- communicationType: "HTTP",
93
- // 默认值改为与 options 中的 value 匹配
94
- address: "",
95
- applyLink: ""
96
- }), N = R(V), o = R({
97
- auth: {
98
- authType: "none",
99
- keyType: "custom",
100
- paramLocation: "header",
101
- paramName: "",
102
- paramValue: "",
103
- token: ""
104
- }
105
- }), A = R({
106
- ...P
107
- }), L = () => {
108
- _.showOverview ? A.value.overview = P.overview : delete A.value.overview;
109
- };
110
- x(
111
- () => _.showOverview,
112
- () => {
113
- L();
114
- },
115
- { immediate: !0 }
116
- );
117
- const c = R([]), D = (a) => {
118
- l.iconUrl = a.url, l.icon = a.bnid, c.value = [a];
119
- }, B = () => {
120
- l.iconUrl = "", l.icon = "", c.value = [];
121
- }, Y = (a) => {
122
- w(a.url);
123
- };
124
- return O({ validate: async (a) => {
125
- if (!v.value) return !1;
126
- if (L(), I.value?.validateField) {
127
- const r = I.value.validateField();
128
- if (Object.keys(r).length > 0)
129
- return r.paramName ? T.error(
130
- t("LIBRARY_CREATEMCPFORM.PARAMETER_NAME_REQUIRED") || "请输入密钥参数名"
131
- ) : r.paramValue ? T.error(
132
- t("LIBRARY_CREATEMCPFORM.INPUT_API_KEY_REQUIRED") || "请输入密钥值"
133
- ) : r.token ? T.error(
134
- t("LIBRARY_CREATEMCPFORM.INPUT_API_KEY_REQUIRED") || "请输入密钥值"
135
- ) : T.error(
136
- t("LIBRARY_CREATEMCPFORM.MCP_AUTH_REQUIRED") || "请完善鉴权信息"
137
- ), a?.(
138
- new Error(
139
- t("LIBRARY_CREATEMCPFORM.MCP_AUTH_REQUIRED") || "请完善鉴权信息"
140
- )
141
- ), !1;
142
- }
143
- return v.value.validate(a);
144
- }, getFormData: () => ({
145
- name: l.name,
146
- icon: l.icon,
147
- // iconUrl: ruleForm.iconUrl,
148
- description: l.description,
149
- overview: _.showOverview ? l.overview : "",
150
- // 根据是否显示返回概览值
151
- address: l.address,
152
- communicationType: l.communicationType,
153
- // 鉴权相关字段
154
- authType: o.value.auth.authType === "none" ? 0 : 1,
155
- // none->0, apiKey->1
156
- authLocation: o.value.auth.paramLocation === "header" ? 0 : 1,
157
- // header->0, query->1
158
- apiKeyName: o.value.auth.keyType === "bearer" ? "Authorization" : o.value.auth.paramName || "",
159
- apiKeyValue: o.value.auth.keyType === "bearer" ? o.value.auth.token ? `Bearer ${o.value.auth.token}` : "" : o.value.auth.paramValue || "",
160
- // 可选字段
161
- applyLink: l.applyLink || "",
162
- headerPrefixType: 1
163
- }), setFormData: (a) => {
164
- if (!a) return;
165
- Object.assign(l, {
166
- name: a.name || "",
167
- description: a.description || "",
168
- overview: a.overview || "",
169
- icon: a.icon || "",
170
- iconUrl: a.iconUrl || "",
171
- communicationType: a.communicationType || "SSE",
172
- address: a.address || "",
173
- applyLink: a.applyLink || ""
174
- });
175
- const r = a.authType === 1 || a.authType === "1";
176
- if (o.value.auth.authType = r ? "apiKey" : "none", o.value.auth.paramLocation = a.authLocation === 0 || a.authLocation === "0" ? "header" : "query", r) {
177
- const n = !a.apiKeyName || a.apiKeyName === "Authorization";
178
- if (o.value.auth.keyType = n ? "bearer" : "custom", n) {
179
- o.value.auth.paramName = "", o.value.auth.paramValue = "";
180
- const y = a.apiKeyValue || "";
181
- o.value.auth.token = y.startsWith("Bearer ") ? y.substring(7) : y;
182
- } else
183
- o.value.auth.paramName = a.apiKeyName || "", o.value.auth.paramValue = a.apiKeyValue || "", o.value.auth.token = "";
184
- } else
185
- o.value.auth.keyType = "custom", o.value.auth.paramName = "", o.value.auth.paramValue = "", o.value.auth.token = "";
186
- a.icon && a.icon !== "0" && a.iconUrl && (c.value = [{ bnid: a.icon, url: a.iconUrl }]);
187
- } }), (a, r) => (C(), d(e(Q), {
188
- ref_key: "ruleFormRef",
189
- ref: v,
190
- model: l,
191
- rules: A.value,
192
- "label-width": "auto",
193
- "label-position": "top",
194
- class: "scrollable-form"
195
- }, {
196
- default: u(() => [
197
- i(e(p), {
198
- class: "scrollable-form__item",
199
- label: e(t)("LIBRARY_CREATEMCPFORM.MCP_ICON"),
200
- prop: "icon"
201
- }, {
202
- label: u(() => [
203
- m("div", Z, [
204
- m("span", null, E(e(t)("LIBRARY_CREATEMCPFORM.MCP_ICON")), 1),
205
- i(e(b), { placement: "top" }, {
206
- content: u(() => [
207
- h(E(e(t)("LIBRARY_CREATEMCPFORM.MCP_ICON_TIP")), 1),
208
- r[7] || (r[7] = m("br", null, null, -1)),
209
- h(" " + E(e(t)("LIBRARY_CREATEMCPFORM.MCP_ICON_SIZE_TIP")), 1)
210
- ]),
211
- default: u(() => [
212
- i(e(F), {
213
- size: "14px",
214
- color: "#999"
215
- }, {
216
- default: u(() => [
217
- i(e(U))
218
- ]),
219
- _: 1
220
- })
221
- ]),
222
- _: 1
223
- })
224
- ])
225
- ]),
226
- default: u(() => [
227
- i(e(q), {
228
- fileList: c.value,
229
- previewType: "Card",
230
- isCustom: !0,
231
- onOnRemove: B,
232
- onOnPreview: Y
233
- }, {
234
- CardUploader: u(() => [
235
- c.value.length === 0 ? (C(), d(e(z), {
236
- key: 0,
237
- "upload-type": "Card",
238
- onOnSuccess: D,
239
- limitSize: 5,
240
- acceptType: ".jpg,.png",
241
- businessType: "mcp",
242
- defaultUploadIcon: "mcp"
243
- })) : f("", !0)
244
- ]),
245
- _: 1
246
- }, 8, ["fileList"])
247
- ]),
248
- _: 1
249
- }, 8, ["label"]),
250
- i(e(p), {
251
- class: "scrollable-form__item",
252
- label: e(t)("LIBRARY_CREATEMCPFORM.MCP_NAME"),
253
- prop: "name"
254
- }, {
255
- default: u(() => [
256
- i(e(M), {
257
- modelValue: l.name,
258
- "onUpdate:modelValue": r[0] || (r[0] = (n) => l.name = n),
259
- placeholder: e(t)("LIBRARY_CREATEMCPFORM.MCP_NAME_REQUIRED"),
260
- maxlength: "20",
261
- "show-word-limit": ""
262
- }, null, 8, ["modelValue", "placeholder"])
263
- ]),
264
- _: 1
265
- }, 8, ["label"]),
266
- i(e(p), {
267
- class: "scrollable-form__item",
268
- label: e(t)("LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION"),
269
- prop: "description"
270
- }, {
271
- default: u(() => [
272
- i(e(M), {
273
- modelValue: l.description,
274
- "onUpdate:modelValue": r[1] || (r[1] = (n) => l.description = n),
275
- type: "textarea",
276
- rows: 3,
277
- placeholder: e(t)("LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_REQUIRED"),
278
- maxlength: "200",
279
- "show-word-limit": ""
280
- }, null, 8, ["modelValue", "placeholder"])
281
- ]),
282
- _: 1
283
- }, 8, ["label"]),
284
- s.showOverview ? (C(), d(e(p), {
285
- key: 0,
286
- class: "scrollable-form__item",
287
- label: e(t)("LIBRARY_CREATEMCPFORM.MCP_OVERVIEW"),
288
- prop: "overview"
289
- }, {
290
- default: u(() => [
291
- i(e(W), {
292
- modelValue: l.overview,
293
- "onUpdate:modelValue": r[2] || (r[2] = (n) => l.overview = n),
294
- height: "300px",
295
- placeholder: e(t)("LIBRARY_CREATEMCPFORM.MCP_OVERVIEW_REQUIRED"),
296
- businessType: "mcp"
297
- }, null, 8, ["modelValue", "placeholder"])
298
- ]),
299
- _: 1
300
- }, 8, ["label"])) : f("", !0),
301
- i(e(p), {
302
- class: "scrollable-form__item",
303
- label: e(t)("LIBRARY_CREATEMCPFORM.TRANSFER_METHOD"),
304
- prop: "communicationType"
305
- }, {
306
- default: u(() => [
307
- i(e(j), {
308
- modelValue: l.communicationType,
309
- "onUpdate:modelValue": r[3] || (r[3] = (n) => l.communicationType = n),
310
- options: N.value,
311
- layout: "vertical",
312
- "class-name": "scrollable-form__item-radio"
313
- }, null, 8, ["modelValue", "options"])
314
- ]),
315
- _: 1
316
- }, 8, ["label"]),
317
- i(e(p), {
318
- class: "scrollable-form__item",
319
- label: e(t)("LIBRARY_CREATEMCPFORM.SERVICE_URL"),
320
- prop: "address"
321
- }, {
322
- default: u(() => [
323
- i(e(M), {
324
- modelValue: l.address,
325
- "onUpdate:modelValue": r[4] || (r[4] = (n) => l.address = n),
326
- placeholder: e(t)("LIBRARY_CREATEMCPFORM.SERVICE_URL_REQUIRED")
327
- }, null, 8, ["modelValue", "placeholder"])
328
- ]),
329
- _: 1
330
- }, 8, ["label"]),
331
- o.value.auth.authType === "apiKey" ? (C(), d(e(p), {
332
- key: 1,
333
- class: "scrollable-form__item",
334
- prop: "applyLink"
335
- }, {
336
- label: u(() => [
337
- m("div", $, [
338
- m("span", null, E(e(t)("LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL")), 1),
339
- i(e(b), { placement: "top" }, {
340
- content: u(() => [
341
- h(E(e(t)("LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_TIP")), 1)
342
- ]),
343
- default: u(() => [
344
- i(e(F), {
345
- size: "14px",
346
- color: "#999"
347
- }, {
348
- default: u(() => [
349
- i(e(U))
350
- ]),
351
- _: 1
352
- })
353
- ]),
354
- _: 1
355
- })
356
- ])
357
- ]),
358
- default: u(() => [
359
- i(e(M), {
360
- modelValue: l.applyLink,
361
- "onUpdate:modelValue": r[5] || (r[5] = (n) => l.applyLink = n),
362
- placeholder: e(t)("LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_REQUIRED")
363
- }, null, 8, ["modelValue", "placeholder"])
364
- ]),
365
- _: 1
366
- })) : f("", !0),
367
- m("div", J, [
368
- i(e(H), {
369
- ref_key: "authSectionRef",
370
- ref: I,
371
- featData: o.value,
372
- "onUpdate:featData": r[6] || (r[6] = (n) => o.value = n),
373
- layout: "vertical"
374
- }, null, 8, ["featData"])
375
- ])
376
- ]),
377
- _: 1
378
- }, 8, ["model", "rules"]));
379
- }
380
- }, ae = /* @__PURE__ */ X(ee, [["__scopeId", "data-v-ce7c5259"]]), Ce = k(ae);
381
- export {
382
- Ce as CreateMcpForm,
383
- Ce as default
384
- };
1
+ import "./chunks/AddOrEditSupplierDialog.BKR0RsiJ.js";
2
+ import "./chunks/usePreview.CMMjOD_o.js";
3
+ import "./chunks/FilePreview.De4zHsfc.js";
4
+ import "./chunks/DialogContainer.DL7aTMDS.js";
5
+ import "./chunks/FileUploader.DD-lopf-.js";
6
+ import "./chunks/RadioGroup.Czc1JtkN.js";
7
+ import "./chunks/AuthSection.DWD_FxtJ.js";
8
+ import "./chunks/MdEditor.DtL0Se7T.js";
9
+ import { t as e } from "./chunks/CreateMcpForm.C8YfDSEM.js";
10
+ export { e as CreateMcpForm, e as default };