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,7 +1,6 @@
1
- import { w as t } from "./chunks/index.bCzIhWFw.js";
2
- import { C as o } from "./chunks/layout.BREUWPEJ.js";
3
- const a = t(o);
4
- export {
5
- a as CustomTitle,
6
- a as default
7
- };
1
+ import { t as e } from "./chunks/withinstall.dLh4K-0g.js";
2
+ import { t } from "./chunks/layout.C9wKDpv-.js";
3
+ //#region components/CustomTitle/index.js
4
+ var n = e(t);
5
+ //#endregion
6
+ export { n as CustomTitle, n as default };
@@ -1,170 +1,2 @@
1
- import { w as R } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as W, computed as c, onMounted as Z, nextTick as b, createElementBlock as d, openBlock as a, normalizeClass as w, createElementVNode as V, createBlock as T, createCommentVNode as k, Fragment as j, renderList as D, normalizeStyle as G, createTextVNode as H, toDisplayString as S, unref as g, withCtx as v, createVNode as M } from "vue";
3
- import { useRoute as J } from "vue-router";
4
- import { ElDropdown as P, ElIcon as Q, ElDropdownMenu as U, ElDropdownItem as X } from "element-plus";
5
- import { IconZuoCopy as Y } from "color-message-aibox-vue";
6
- import { emitsMap as i } from "color-star-custom-methods";
7
- import { _ as ee } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
- import './assets/CustomToggle.css';const te = (y) => `${y}-custom-toggle`, oe = ["id", "data-option-value", "onClick"], le = {
9
- key: 0,
10
- class: "order-number fz-12 text-center mg-r-10 pd-l-8 pd-r-8"
11
- }, ne = {
12
- key: 1,
13
- class: "divider"
14
- }, se = { class: "toggle-item toggle-action flex items-center justify-center weight-500" }, re = { class: "dropdown-label" }, ae = /* @__PURE__ */ Object.assign({
15
- name: "CustomToggle"
16
- }, {
17
- __name: "layout",
18
- props: {
19
- // 选项列表
20
- options: {
21
- type: Array,
22
- default: () => []
23
- },
24
- // 当前选中的值 (v-model)
25
- modelValue: {
26
- type: [String, Number, Object],
27
- default: null
28
- },
29
- // 最大显示数量,超过此数量会显示收起/展开,如果不传则显示全部
30
- maxVisible: {
31
- type: Number,
32
- default: void 0
33
- },
34
- // 字段映射配置 (如果是对象的话)
35
- fieldMapping: {
36
- type: Object,
37
- default: () => ({
38
- value: "value",
39
- label: "label"
40
- })
41
- },
42
- // 是否显示顺序数字
43
- showOrderNumber: {
44
- type: Boolean,
45
- default: !1
46
- },
47
- // 样式风格
48
- // 1: 默认(带底边框的 tab 风格)
49
- // 2: 无底色,选中浅灰,圆角(参考 AiboxTabs style-1)
50
- styleType: {
51
- type: [Number, String],
52
- default: 1
53
- }
54
- },
55
- emits: [i.updateModelValue, i.change],
56
- setup(y, { emit: $ }) {
57
- const o = y, u = $, x = W(null), B = J(), I = c(() => te(B.name)), z = () => {
58
- try {
59
- const e = sessionStorage.getItem(I.value);
60
- if (e && o.options.length > 0 && o.options.some(
61
- (t, n) => s(t, n) === e
62
- ))
63
- return e;
64
- } catch {
65
- return null;
66
- }
67
- return null;
68
- }, O = (e) => {
69
- sessionStorage.setItem(I.value, e);
70
- };
71
- let h = [];
72
- const p = c(() => o.maxVisible !== void 0 ? o.maxVisible : o.options.length), C = c(() => {
73
- const e = new Set(
74
- m.value.map((l, t) => s(l))
75
- );
76
- return o.options.filter((l, t) => !e.has(s(l)));
77
- }), N = c(() => C.value.length > 0), m = c(() => {
78
- if (!o.modelValue || o.options.length <= p.value) {
79
- const r = o.options.slice(0, p.value);
80
- return h = r, r;
81
- }
82
- const e = o.options.findIndex((r, ue) => f(r));
83
- if (e === -1) {
84
- const r = o.options.slice(0, p.value);
85
- return h = r, r;
86
- }
87
- const l = Math.max(0, e - p.value + 1), t = l + p.value, n = o.options.slice(l, t);
88
- return n.length === 0 ? h : (h = n, n);
89
- }), A = c(() => {
90
- const e = m.value.length + (N.value ? 1 : 0);
91
- return e > 0 ? `${100 / e}%` : "auto";
92
- }), s = (e, l) => typeof e == "object" ? e[o.fieldMapping.value] : e, E = (e) => typeof e == "object" ? e[o.fieldMapping.label] : e, F = (e, l) => l + 1, f = (e, l) => s(e) === o.modelValue, K = (e, l) => o.styleType == 1 && l < m.value.length - 1, L = async (e, l) => {
93
- const t = s(e);
94
- u(i.updateModelValue, t), u(i.change, t), O(t), await b(), _();
95
- }, q = async (e) => {
96
- u(i.updateModelValue, e), u(i.change, e), O(e), await b(), _();
97
- }, _ = () => {
98
- if (!x.value) return;
99
- const e = x.value.querySelector(".toggle-item.active");
100
- e && e.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
101
- };
102
- return Z(async () => {
103
- const e = z();
104
- e && (u(i.updateModelValue, e), u(i.change, e)), await b(), _();
105
- }), (e, l) => (a(), d("div", {
106
- class: w(["toggle-container flex w-full relative", `toggle-style-${y.styleType}`])
107
- }, [
108
- V("div", {
109
- ref_key: "optionsContainer",
110
- ref: x,
111
- class: "visible-options flex-1 overflow-x-auto overflow-y-hidden relative flex"
112
- }, [
113
- (a(!0), d(j, null, D(m.value, (t, n) => (a(), d("div", {
114
- key: s(t),
115
- id: `toggle-option-${s(t)}`,
116
- "data-option-value": s(t),
117
- class: w(["toggle-item pointer text-center flex items-center justify-center ellipsis-1 relative pointer", {
118
- active: f(t),
119
- "first-active": f(t) && n === 0,
120
- "last-active": f(t) && n === m.value.length - 1
121
- }]),
122
- style: G({ width: A.value }),
123
- onClick: (r) => L(t)
124
- }, [
125
- o.showOrderNumber ? (a(), d("div", le, S(F(t, n)), 1)) : k("", !0),
126
- H(" " + S(E(t)) + " ", 1),
127
- K(t, n) ? (a(), d("span", ne, "|")) : k("", !0)
128
- ], 14, oe))), 128))
129
- ], 512),
130
- N.value ? (a(), T(g(P), {
131
- key: 0,
132
- trigger: "click",
133
- onCommand: q
134
- }, {
135
- dropdown: v(() => [
136
- M(g(U), null, {
137
- default: v(() => [
138
- (a(!0), d(j, null, D(C.value, (t, n) => (a(), T(g(X), {
139
- key: s(t),
140
- command: s(t),
141
- class: w({ "is-active": f(t) })
142
- }, {
143
- default: v(() => [
144
- V("span", re, S(E(t)), 1)
145
- ]),
146
- _: 2
147
- }, 1032, ["command", "class"]))), 128))
148
- ]),
149
- _: 1
150
- })
151
- ]),
152
- default: v(() => [
153
- V("div", se, [
154
- M(g(Q), null, {
155
- default: v(() => [
156
- M(g(Y))
157
- ]),
158
- _: 1
159
- })
160
- ])
161
- ]),
162
- _: 1
163
- })) : k("", !0)
164
- ], 2));
165
- }
166
- }), ie = /* @__PURE__ */ ee(ae, [["__scopeId", "data-v-ce6ff91d"]]), ye = R(ie);
167
- export {
168
- ye as CustomToggle,
169
- ye as default
170
- };
1
+ import { t as e } from "./chunks/CustomToggle.BxxsaD-W.js";
2
+ export { e as CustomToggle, e as default };
@@ -1,136 +1,2 @@
1
- import { w as C } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as n, nextTick as r, computed as b, onBeforeUnmount as B, createBlock as k, createCommentVNode as V, openBlock as O, unref as S, normalizeClass as x, withCtx as u, createElementVNode as T, renderSlot as i } from "vue";
3
- import { ElDialog as $ } from "element-plus";
4
- import './assets/DialogContainer.css';const z = (e = n(!1)) => {
5
- const o = n(null), s = n(null);
6
- return {
7
- dialogRef: o,
8
- //弹窗的ref必须为dialogRef
9
- formRef: s,
10
- //弹窗里面含有form表单的话,ref必须为formRef
11
- showDialog: () => {
12
- o.value.showDialog();
13
- },
14
- hideDialog: () => {
15
- e.value = !1, o.value.hideDialog();
16
- },
17
- resetDialog: () => {
18
- e.value = !1, s.value && r(() => {
19
- s.value.resetFields();
20
- });
21
- }
22
- };
23
- }, E = { class: "dialog-body" }, N = {
24
- __name: "DialogContainer",
25
- props: {
26
- // 弹框宽度
27
- width: {
28
- type: String,
29
- default: "720px"
30
- },
31
- // 弹框标题
32
- title: {
33
- type: String,
34
- default: ""
35
- },
36
- // 是否显示关闭按钮|是否esc和点击遮罩关闭
37
- closable: {
38
- type: Boolean,
39
- default: !0
40
- },
41
- // 是否显示关闭销毁
42
- destroyOnclose: {
43
- type: Boolean,
44
- default: !1
45
- },
46
- // 自定义类名
47
- customClass: {
48
- type: String,
49
- default: ""
50
- },
51
- // 拖动
52
- draggable: {
53
- type: Boolean,
54
- default: !0
55
- },
56
- // appendTo: {
57
- // type: String,
58
- // default: '#layout-wrap__left'
59
- // },
60
- modal: {
61
- type: Boolean,
62
- default: !0
63
- },
64
- fullscreen: {
65
- type: Boolean,
66
- default: !1
67
- }
68
- },
69
- emits: ["open", "opened", "close", "closed"],
70
- setup(e, { expose: o, emit: s }) {
71
- const t = s, c = e, a = n(!1), d = n(!1), m = () => {
72
- a.value = !0, r(() => {
73
- d.value = !0;
74
- });
75
- }, g = () => {
76
- d.value = !1;
77
- }, p = b(() => {
78
- const l = ["dialog-container"];
79
- return c.customClass && l.push(c.customClass), c.fullscreen || l.push("not-fullscreen"), l.join(" ");
80
- }), h = () => {
81
- t("open");
82
- }, v = () => {
83
- t("opened");
84
- }, y = () => {
85
- t("close");
86
- }, D = () => {
87
- t("closed"), r(() => {
88
- a.value = !1;
89
- });
90
- };
91
- return B(() => {
92
- a.value = !1;
93
- }), o({
94
- showDialog: m,
95
- hideDialog: g
96
- }), (l, f) => a.value ? (O(), k(S($), {
97
- key: 0,
98
- ref: "Dialog",
99
- modelValue: d.value,
100
- "onUpdate:modelValue": f[0] || (f[0] = (w) => d.value = w),
101
- width: e.width,
102
- title: e.title,
103
- "append-to-body": "",
104
- modal: e.modal,
105
- "close-on-click-modal": !1,
106
- "close-on-press-escape": !1,
107
- "show-close": e.closable,
108
- "destroy-on-close": e.destroyOnclose,
109
- class: x(p.value),
110
- draggable: e.draggable,
111
- fullscreen: e.fullscreen,
112
- onOpen: h,
113
- onOpened: v,
114
- onClose: y,
115
- onClosed: D
116
- }, {
117
- header: u(() => [
118
- i(l.$slots, "title")
119
- ]),
120
- footer: u(() => [
121
- i(l.$slots, "footer")
122
- ]),
123
- default: u(() => [
124
- T("div", E, [
125
- i(l.$slots, "default")
126
- ])
127
- ]),
128
- _: 3
129
- }, 8, ["modelValue", "width", "title", "modal", "show-close", "destroy-on-close", "class", "draggable", "fullscreen"])) : V("", !0);
130
- }
131
- }, F = C(N);
132
- export {
133
- F as DialogContainer,
134
- F as default,
135
- z as useDialog
136
- };
1
+ import { n as e, t } from "./chunks/DialogContainer.DL7aTMDS.js";
2
+ export { t as DialogContainer, t as default, e as useDialog };
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "./chunks/DocSyncSelect.Kk88o9gO.js";
2
+ export { t as DocSyncSelect, t as default, e as FileTypeIcon };
@@ -1,6 +1,4 @@
1
- import "./chunks/index.bCzIhWFw.js";
2
- import { F as l, F as o } from "./chunks/index.BT1khSY9.js";
3
- export {
4
- l as FileDisplay,
5
- o as default
6
- };
1
+ import "./chunks/usePreview.CMMjOD_o.js";
2
+ import "./chunks/DialogContainer.DL7aTMDS.js";
3
+ import { t as e } from "./chunks/FileDisplay.CJ7KCID6.js";
4
+ export { e as FileDisplay };
@@ -1,179 +1,3 @@
1
- import { w as I } from "./chunks/index.bCzIhWFw.js";
2
- import { createElementBlock as t, openBlock as l, Fragment as m, createCommentVNode as r, unref as s, renderSlot as C, createBlock as o, withCtx as n, renderList as F, createElementVNode as p, resolveDynamicComponent as x, toDisplayString as L, createVNode as d, createTextVNode as S } from "vue";
3
- import { ElRow as T, ElCol as $, ElIcon as c, ElButton as D } from "element-plus";
4
- import { IconDelete as E, IconHide as V } from "color-message-aibox-vue";
5
- import { U as v } from "./chunks/enums.Dvec-maC.js";
6
- import { n as z, c as P, u as N } from "./chunks/usePreview.B5lboHeg.js";
7
- import { i as re, a as de, b as ce, e as ue, f as pe, g as _e, h as fe, j as me, k as ve, l as we, m as ke } from "./chunks/usePreview.B5lboHeg.js";
8
- import { _ as A } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
9
- import './assets/FilePreview.css';const H = {
10
- key: 0,
11
- class: "panel-preview"
12
- }, j = { class: "panel-preview__item" }, J = ["onClick"], M = ["src", "alt"], R = { class: "panel-preview__name ellipsis" }, W = { key: 0 }, Z = { key: 1 }, q = {
13
- key: 1,
14
- class: "upload-preview"
15
- }, G = ["src", "alt"], K = { class: "preview-item__mask" }, O = {
16
- __name: "index",
17
- props: {
18
- fileList: {
19
- type: Array,
20
- default: () => []
21
- },
22
- canEdit: {
23
- type: Boolean,
24
- default: !0
25
- },
26
- previewType: {
27
- type: String,
28
- default: v.面板
29
- },
30
- isStream: {
31
- type: Boolean,
32
- default: !1
33
- },
34
- isCustom: {
35
- type: Boolean,
36
- default: !1
37
- }
38
- },
39
- emits: ["on-remove", "on-preview"],
40
- setup(a, { emit: B }) {
41
- const { downloadPrew: U, downloadStreamPrew: b } = z(), w = a, k = B, y = (i) => N(i);
42
- function g(i) {
43
- w.isCustom ? k("on-preview", i) : w.isStream ? b(i) : U(i);
44
- }
45
- function h(i, u) {
46
- k("on-remove", i, u);
47
- }
48
- return (i, u) => (l(), t(m, null, [
49
- a.previewType === s(v).面板 ? (l(), t("div", H, [
50
- C(i.$slots, "PanelUploader", {}, void 0, !0),
51
- a.fileList.length ? (l(), o(s(T), {
52
- key: 0,
53
- gutter: 20,
54
- class: "panel-preview__row"
55
- }, {
56
- default: n(() => [
57
- (l(!0), t(m, null, F(a.fileList, (e, _) => (l(), o(s($), {
58
- span: 8,
59
- key: e.bnid
60
- }, {
61
- default: n(() => [
62
- p("div", j, [
63
- p("div", {
64
- class: "panel-preview__box",
65
- onClick: (f) => g(e)
66
- }, [
67
- s(P)(e.suffix, e.url) ? (l(), t("img", {
68
- key: 0,
69
- src: e.url,
70
- alt: e.name,
71
- class: "panel-preview__img"
72
- }, null, 8, M)) : (l(), o(s(c), {
73
- key: 1,
74
- size: "32px",
75
- class: "panel-preview__img"
76
- }, {
77
- default: n(() => [
78
- (l(), o(x(y(e))))
79
- ]),
80
- _: 2
81
- }, 1024)),
82
- p("span", R, L(e.name), 1)
83
- ], 8, J),
84
- e.isUploading ? (l(), t("div", W, [
85
- d(s(D), {
86
- text: "",
87
- size: "small",
88
- loading: ""
89
- }, {
90
- default: n(() => [...u[0] || (u[0] = [
91
- S("上传中...", -1)
92
- ])]),
93
- _: 1
94
- })
95
- ])) : (l(), t("div", Z, [
96
- a.canEdit ? (l(), o(s(c), {
97
- key: 0,
98
- size: "18",
99
- style: { cursor: "pointer" },
100
- onClick: (f) => h(_, e)
101
- }, {
102
- default: n(() => [
103
- d(s(E))
104
- ]),
105
- _: 1
106
- }, 8, ["onClick"])) : r("", !0)
107
- ]))
108
- ])
109
- ]),
110
- _: 2
111
- }, 1024))), 128))
112
- ]),
113
- _: 1
114
- })) : r("", !0)
115
- ])) : r("", !0),
116
- a.previewType === s(v).卡片 ? (l(), t("ul", q, [
117
- (l(!0), t(m, null, F(a.fileList, (e, _) => (l(), t("li", {
118
- class: "preview-item",
119
- key: e.bnid
120
- }, [
121
- s(P)(e.suffix, e.url) ? (l(), t("img", {
122
- key: 0,
123
- src: e.url,
124
- alt: e.name,
125
- class: "preview-item__img"
126
- }, null, 8, G)) : (l(), o(s(c), {
127
- key: 1,
128
- size: "32px",
129
- class: "preview-item__img"
130
- }, {
131
- default: n(() => [
132
- (l(), o(x(y(e))))
133
- ]),
134
- _: 2
135
- }, 1024)),
136
- p("div", K, [
137
- d(s(c), {
138
- class: "preview-item__mask--view",
139
- onClick: (f) => g(e)
140
- }, {
141
- default: n(() => [
142
- d(s(V))
143
- ]),
144
- _: 1
145
- }, 8, ["onClick"]),
146
- a.canEdit ? (l(), o(s(c), {
147
- key: 0,
148
- class: "preview-item__mask--delete",
149
- onClick: (f) => h(_, e)
150
- }, {
151
- default: n(() => [
152
- d(s(E))
153
- ]),
154
- _: 1
155
- }, 8, ["onClick"])) : r("", !0)
156
- ])
157
- ]))), 128)),
158
- C(i.$slots, "CardUploader", {}, void 0, !0)
159
- ])) : r("", !0)
160
- ], 64));
161
- }
162
- }, Q = /* @__PURE__ */ A(O, [["__scopeId", "data-v-83d1cbbd"]]), ae = I(Q);
163
- export {
164
- ae as FilePreview,
165
- ae as default,
166
- re as isAudioFile,
167
- de as isExcelFile,
168
- ce as isHtmlFile,
169
- P as isImageLink,
170
- ue as isJsonFile,
171
- pe as isMdFile,
172
- _e as isPdfFile,
173
- fe as isPptFile,
174
- me as isText,
175
- ve as isVideoFile,
176
- we as isWordFile,
177
- ke as isZipFile,
178
- N as uploadUrl
179
- };
1
+ import { C as e, D as t, E as n, O as r, S as i, T as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, o as _, p as v, r as y, s as b, u as x, v as S, w as C, x as w, y as T } from "./chunks/usePreview.CMMjOD_o.js";
2
+ import { t as E } from "./chunks/FilePreview.De4zHsfc.js";
3
+ export { y as AUDIO_SUFFIX_LIST, m as EXCEL_SUFFIX_LIST, E as FilePreview, E as default, s as HTML_SUFFIX_LIST, _ as IMAGE_SUFFIX_LIST, b as JSON_SUFFIX_LIST, l as MD_SUFFIX_LIST, h as PDF_SUFFIX_LIST, x as PPT_SUFFIX_LIST, u as TEXT_SUFFIX_LIST, d as VIDEO_SUFFIX_LIST, v as WORD_SUFFIX_LIST, g as ZIP_SUFFIX_LIST, p as getFilePreviewIcon, f as isAudioFile, o as isExcelFile, S as isHtmlFile, T as isImageLink, c as isJsonFile, w as isMdFile, i as isPdfFile, e as isPptFile, C as isText, a as isVideoFile, n as isWordFile, t as isZipFile, r as uploadUrl };