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,645 +0,0 @@
1
- import { createElementBlock as c, openBlock as o, normalizeStyle as le, createElementVNode as h, renderSlot as b, createCommentVNode as B, createVNode as w, unref as n, withModifiers as te, withCtx as s, toDisplayString as m, computed as T, Fragment as _, renderList as N, createBlock as i, createTextVNode as A, normalizeClass as z, ref as H, createSlots as W } from "vue";
2
- import { useRouter as ae } from "vue-router";
3
- import { IconZuo as oe, IconTip as ne, IconMore as se } from "color-message-aibox-vue";
4
- import { ElIcon as D, ElTooltip as re, ElButton as L, ElDropdown as de, ElDropdownMenu as ie, ElDropdownItem as ce, ElTable as ue, ElTableColumn as f, ElEmpty as he, ElPagination as pe } from "element-plus";
5
- import { u as I } from "./i18n.DDMVloiU.js";
6
- import { _ as F } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
- import '../assets/AiboxTable.css';const fe = { class: "back-bar__icon" }, be = {
8
- key: 0,
9
- class: "back-bar__title"
10
- }, we = {
11
- key: 1,
12
- class: "back-bar__tip"
13
- }, Ve = {
14
- __name: "BackBar",
15
- props: {
16
- goBackFn: {
17
- type: Function,
18
- default: null
19
- },
20
- backBarStyle: {
21
- type: String,
22
- default: "#fff"
23
- },
24
- title: {
25
- type: String,
26
- default: ""
27
- },
28
- tipContent: {
29
- type: String,
30
- default: ""
31
- }
32
- },
33
- setup(a) {
34
- const k = a, $ = ae(), r = () => {
35
- k.goBackFn ? k.goBackFn() : $.back();
36
- };
37
- return (y, C) => (o(), c("div", {
38
- class: "back-bar",
39
- style: le({ "background-color": a.backBarStyle })
40
- }, [
41
- h("div", fe, [
42
- w(n(D), {
43
- onClick: te(r, ["stop"])
44
- }, {
45
- default: s(() => [
46
- w(n(oe))
47
- ]),
48
- _: 1
49
- })
50
- ]),
51
- b(y.$slots, "default"),
52
- a.title ? (o(), c("div", be, m(a.title), 1)) : B("", !0),
53
- a.tipContent ? (o(), c("div", we, [
54
- w(n(re), {
55
- content: a.tipContent,
56
- placement: "right"
57
- }, {
58
- default: s(() => [
59
- w(n(D), { size: "14" }, {
60
- default: s(() => [
61
- w(n(ne))
62
- ]),
63
- _: 1
64
- })
65
- ]),
66
- _: 1
67
- }, 8, ["content"])
68
- ])) : B("", !0)
69
- ], 4));
70
- }
71
- }, ye = { class: "table-btns" }, ge = { class: "btn-box" }, ke = {
72
- __name: "TableBtns",
73
- props: {
74
- config: {
75
- type: Array,
76
- required: !0,
77
- default() {
78
- return [];
79
- }
80
- },
81
- showNums: {
82
- type: Number,
83
- default: 0,
84
- validator(a) {
85
- return a % 1 === 0 && a >= 0;
86
- }
87
- },
88
- row: {
89
- type: Object,
90
- default: () => ({})
91
- }
92
- },
93
- setup(a) {
94
- const k = a, { t: $ } = I(), r = (p, x) => {
95
- p && p(x);
96
- }, y = T(() => k.config.filter((p) => {
97
- const x = p.permission !== void 0 ? p.permission : !0;
98
- let d = !0;
99
- return p.dataPermission && (d = p.dataPermission), x && d;
100
- })), C = T(() => ({
101
- show: y.value.slice(0, k.showNums),
102
- hide: y.value.slice(k.showNums)
103
- }));
104
- return (p, x) => (o(), c("div", ye, [
105
- y.value.length > a.showNums ? (o(), c(_, { key: 0 }, [
106
- (o(!0), c(_, null, N(C.value.show, (d, v) => (o(), i(n(L), {
107
- key: v,
108
- type: "primary",
109
- link: "",
110
- onClick: (M) => r(d.fn, d.row)
111
- }, {
112
- default: s(() => [
113
- A(m(d.label), 1)
114
- ]),
115
- _: 2
116
- }, 1032, ["onClick"]))), 128)),
117
- w(n(de), {
118
- "popper-class": "custom-dropdown",
119
- trigger: "click"
120
- }, {
121
- dropdown: s(() => [
122
- w(n(ie), { style: { padding: "14px 0" } }, {
123
- default: s(() => [
124
- (o(!0), c(_, null, N(C.value.hide, (d, v) => (o(), i(n(ce), {
125
- key: v,
126
- class: z({
127
- "is-delete": d.label === n($)("COMMON_BUTTON.DELETE_TEXT") || d.label === n($)("COMMON_BUTTON.DISABLE_TEXT") || d.isDanger
128
- }),
129
- onClick: (M) => r(d.fn, d.row)
130
- }, {
131
- default: s(() => [
132
- A(m(d.label), 1)
133
- ]),
134
- _: 2
135
- }, 1032, ["class", "onClick"]))), 128))
136
- ]),
137
- _: 1
138
- })
139
- ]),
140
- default: s(() => [
141
- h("div", ge, [
142
- w(n(D), { style: { "font-size": "20px", color: "#999" } }, {
143
- default: s(() => [
144
- w(n(se))
145
- ]),
146
- _: 1
147
- })
148
- ])
149
- ]),
150
- _: 1
151
- })
152
- ], 64)) : (o(!0), c(_, { key: 1 }, N(y.value, (d, v) => (o(), i(n(L), {
153
- type: "primary",
154
- link: "",
155
- key: v,
156
- onClick: (M) => r(d.fn, d.row)
157
- }, {
158
- default: s(() => [
159
- A(m(d.label), 1)
160
- ]),
161
- _: 2
162
- }, 1032, ["onClick"]))), 128))
163
- ]));
164
- }
165
- }, Ce = /* @__PURE__ */ F(ke, [["__scopeId", "data-v-a15d8f7e"]]), xe = {
166
- key: 0,
167
- class: "aibox-table__handle"
168
- }, _e = { class: "handle-left" }, ve = { class: "handle-right" }, Se = { class: "aibox-table__content" }, Te = { key: 0 }, me = { class: "aibox-table__slot-wrapper" }, $e = { class: "aibox-table__slot-wrapper" }, Be = ["innerHTML"], Ne = ["innerHTML"], Me = { class: "aibox-table__slot-wrapper" }, Ee = ["onClick"], Ae = { class: "aibox-table__slot-wrapper" }, ze = ["onClick"], De = { class: "aibox-table__slot-wrapper" }, Oe = { class: "flex items-center" }, Pe = { class: "aibox-table__slot-wrapper" }, Re = {
169
- key: 0,
170
- class: "aibox-table__slot-wrapper"
171
- }, He = {
172
- __name: "AiboxTable",
173
- props: {
174
- columns: {
175
- type: Array,
176
- default: () => []
177
- },
178
- data: {
179
- type: Array,
180
- default: () => []
181
- },
182
- total: {
183
- type: [String, Number],
184
- default: 0
185
- },
186
- hasPage: {
187
- type: Boolean,
188
- default: !0
189
- },
190
- onRowKey: {
191
- type: Function,
192
- default: () => {
193
- }
194
- },
195
- onRowClassName: {
196
- type: Function,
197
- default: () => {
198
- }
199
- },
200
- maxHeight: {
201
- type: [String, Number],
202
- default: null
203
- },
204
- isLoading: {
205
- type: Boolean,
206
- default: !1
207
- },
208
- pages: {
209
- type: Object,
210
- default: () => ({
211
- page: 1,
212
- size: 10
213
- })
214
- },
215
- showChangeSize: {
216
- type: Boolean,
217
- default: !0
218
- },
219
- isCustomEmpty: {
220
- type: Boolean,
221
- default: !1
222
- },
223
- hasBorder: {
224
- type: Boolean,
225
- default: !1
226
- },
227
- hasHeaderHandle: {
228
- type: Boolean,
229
- default: !1
230
- },
231
- isSecondaryHeader: {
232
- type: Boolean,
233
- default: !1
234
- },
235
- defaultSort: {
236
- type: Object
237
- },
238
- spanMethod: {
239
- type: Function,
240
- default: () => {
241
- }
242
- },
243
- showSummary: {
244
- type: Boolean,
245
- default: !1
246
- },
247
- summaryMethod: {
248
- type: Function,
249
- default: () => []
250
- },
251
- showHandleNums: {
252
- type: Number,
253
- default: 0
254
- },
255
- selectionType: {
256
- type: String,
257
- default: "checkbox"
258
- },
259
- expandRowKeys: {
260
- type: Array,
261
- default: () => []
262
- },
263
- isCanRowClick: {
264
- type: Boolean,
265
- default: !1
266
- },
267
- isPagePostion: {
268
- type: Boolean,
269
- default: !0
270
- },
271
- treeProps: {
272
- type: Object,
273
- default: () => ({ children: "children", hasChildren: "hasChildren" })
274
- },
275
- defaultExpandAll: {
276
- type: Boolean,
277
- default: !0
278
- },
279
- pagerCount: {
280
- type: Number,
281
- default: 7
282
- },
283
- size: {
284
- type: String,
285
- default: "default"
286
- }
287
- },
288
- emits: [
289
- "onPageChange",
290
- "onMultiSelection",
291
- "onSortChange",
292
- "onCellDblclick",
293
- "onRowClick"
294
- ],
295
- setup(a, { expose: k, emit: $ }) {
296
- const r = a, { t: y } = I(), C = H(null), p = H([]), x = T(() => typeof r.total == "string" ? Number(r.total) : r.total), d = T(() => r.showChangeSize ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), v = T(() => x.value > 10 && r.hasPage), M = T(() => r.columns?.find?.((u) => u?.type === "selection")?.selectable || O), j = T(() => {
297
- const t = r.data || [];
298
- if (!t.length) return !1;
299
- const u = M.value;
300
- return !t.some((e, l) => u(e, l));
301
- }), K = ({ column: t }) => t?.type === "selection" && j.value ? "aibox-table__select-all-disabled" : "", g = $, O = () => !0, V = (t) => r.onRowKey(t, (u) => u), X = (t) => r.onRowClassName(t), U = (t) => {
302
- g("onPageChange", { ...r.pages, page: t });
303
- }, G = (t) => {
304
- g("onPageChange", { page: 1, size: t });
305
- }, q = (t) => {
306
- r.selectionType !== "radio" && g("onMultiSelection", t);
307
- }, P = (t) => {
308
- if (r.selectionType === "radio") {
309
- const u = p.value;
310
- if (R(), u.length == 1) {
311
- const [e] = u, l = e.id !== t.id;
312
- l ? (p.value = [t], g("onMultiSelection", [t])) : (p.value = [], g("onMultiSelection", [])), E(t, l);
313
- } else
314
- E(t, !0), p.value = [t], g("onMultiSelection", [t]);
315
- }
316
- }, R = () => {
317
- C.value?.clearSelection(), g("onMultiSelection", []);
318
- }, Y = () => {
319
- C.value?.clearSort();
320
- }, Z = (t) => {
321
- g("onSortChange", t);
322
- }, J = (t, u, e, l) => {
323
- g("onCellDblclick", t, u, e, l);
324
- }, Q = (t) => {
325
- r.selectionType === "radio" && P(t);
326
- }, ee = (t, u, e) => {
327
- u?.type === "action" || !r.isCanRowClick || g("onRowClick", t, u, e);
328
- }, E = (t, u) => {
329
- C.value?.toggleRowSelection(t, u);
330
- };
331
- return k({
332
- handleClearSelection: R,
333
- handleToggleRowSelection: E,
334
- clearSort: Y
335
- }), (t, u) => (o(), c("div", {
336
- class: z([{
337
- "row-click-style": a.isCanRowClick,
338
- "no-pagination": !v.value
339
- }, "aibox-table"])
340
- }, [
341
- a.hasHeaderHandle ? (o(), c("div", xe, [
342
- h("div", _e, [
343
- b(t.$slots, "handleLeft", {}, void 0, !0)
344
- ]),
345
- h("div", ve, [
346
- b(t.$slots, "handleRight", {}, void 0, !0)
347
- ])
348
- ])) : B("", !0),
349
- h("div", Se, [
350
- w(n(ue), {
351
- ref_key: "aiboxTable",
352
- ref: C,
353
- "element-loading-text": n(y)("COMMON_DATA.LOADING_SUFFIX"),
354
- "tree-props": a.treeProps,
355
- "header-row-class-name": a.isSecondaryHeader ? "aibox-table__header secondary-header" : "aibox-table__header",
356
- "header-cell-class-name": K,
357
- "row-class-name": X,
358
- data: a.data,
359
- border: a.hasBorder,
360
- style: { width: "100%" },
361
- "row-key": V,
362
- height: a.maxHeight,
363
- "default-sort": a.defaultSort,
364
- "span-method": a.spanMethod,
365
- "expand-row-keys": a.expandRowKeys,
366
- onSelectionChange: q,
367
- onSortChange: Z,
368
- onCellDblclick: J,
369
- onCurrentChange: P,
370
- "show-summary": a.showSummary,
371
- "summary-method": a.summaryMethod,
372
- onSelect: Q,
373
- onRowClick: ee,
374
- "default-expand-all": a.defaultExpandAll
375
- }, {
376
- empty: s(() => [
377
- a.isCustomEmpty ? (o(), c("div", Re, [
378
- b(t.$slots, "customEmpty", {}, void 0, !0)
379
- ])) : (o(), i(n(he), {
380
- key: 1,
381
- description: n(y)("COMMON_DATA.EMPTY"),
382
- "image-size": 80
383
- }, null, 8, ["description"]))
384
- ]),
385
- default: s(() => [
386
- (o(!0), c(_, null, N(a.columns, (e) => (o(), c(_, null, [
387
- e.type === "selection" ? (o(), i(n(f), {
388
- key: e.type,
389
- type: "selection",
390
- fixed: "left",
391
- width: e.width || "50px",
392
- "reserve-selection": !0,
393
- selectable: e.selectable || O
394
- }, null, 8, ["width", "selectable"])) : e.type === "index" ? (o(), i(n(f), {
395
- key: `${e.type - e.label}`,
396
- type: "index",
397
- label: n(y)("COMMON_DATA.SNO_INDEX"),
398
- fixed: "left",
399
- width: e.width || "100px"
400
- }, {
401
- default: s((l) => [
402
- a.isLoading ? B("", !0) : (o(), c("span", Te, m((a.pages.page - 1) * a.pages.size + l.$index + 1), 1))
403
- ]),
404
- _: 1
405
- }, 8, ["label", "width"])) : e.slot ? (o(), i(n(f), {
406
- align: e.align || "left",
407
- key: e.prop,
408
- prop: e.prop,
409
- label: e.label,
410
- width: e.width,
411
- "min-width": e.minWidth,
412
- "label-class-name": "label-space-style",
413
- "class-name": "multi-row",
414
- fixed: e.fixed,
415
- sortable: e.sortable,
416
- "show-overflow-tooltip": e.showOverflowTooltip
417
- }, W({
418
- default: s((l) => [
419
- h("div", $e, [
420
- b(t.$slots, e.slot, {
421
- row: l.row,
422
- index: l.$index,
423
- minWidth: e.minWidth
424
- }, void 0, !0)
425
- ])
426
- ]),
427
- _: 2
428
- }, [
429
- e.headerSlot ? {
430
- name: "header",
431
- fn: s(() => [
432
- h("div", me, [
433
- b(t.$slots, e.headerSlot, {
434
- item: e,
435
- minWidth: e.minWidth
436
- }, void 0, !0)
437
- ])
438
- ]),
439
- key: "0"
440
- } : void 0
441
- ]), 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable", "show-overflow-tooltip"])) : e.callback ? (o(), i(n(f), {
442
- align: e.align || "left",
443
- key: e.callback,
444
- prop: e.prop,
445
- label: e.label,
446
- width: e.width,
447
- "min-width": e.minWidth,
448
- "show-overflow-tooltip": "",
449
- fixed: e.fixed,
450
- sortable: e.sortable
451
- }, {
452
- default: s((l) => [
453
- h("span", {
454
- innerHTML: e.callback && e.callback(l.row)
455
- }, null, 8, Be)
456
- ]),
457
- _: 2
458
- }, 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable"])) : e.type === "multistage" ? (o(), i(n(f), {
459
- key: `${e.prop}`,
460
- label: e.label,
461
- prop: e.prop,
462
- width: e.width,
463
- "min-width": e.minWidth,
464
- "show-overflow-tooltip": "",
465
- align: e.align || "left",
466
- "header-align": e.headerAlign || "left"
467
- }, {
468
- default: s(() => [
469
- (o(!0), c(_, null, N(e.children, (l) => (o(), c(_, null, [
470
- l.callback ? (o(), i(n(f), {
471
- key: l.callback,
472
- prop: l.prop,
473
- label: l.label,
474
- "min-width": l.minWidth,
475
- "show-overflow-tooltip": ""
476
- }, {
477
- default: s((S) => [
478
- h("span", {
479
- innerHTML: l.callback && l.callback(S.row)
480
- }, null, 8, Ne)
481
- ]),
482
- _: 2
483
- }, 1032, ["prop", "label", "min-width"])) : l.slot ? (o(), i(n(f), {
484
- key: l.prop,
485
- "min-width": l.minWidth,
486
- prop: l.prop,
487
- label: l.label
488
- }, {
489
- default: s((S) => [
490
- h("div", Me, [
491
- b(t.$slots, l.slot, {
492
- row: S.row,
493
- column: S.column,
494
- index: S.$index
495
- }, void 0, !0)
496
- ])
497
- ]),
498
- _: 2
499
- }, 1032, ["min-width", "prop", "label"])) : l.custom ? (o(), i(n(f), {
500
- key: `${l.prop}`,
501
- prop: l.prop,
502
- label: l.label,
503
- "min-width": l.minWidth,
504
- "show-overflow-tooltip": ""
505
- }, {
506
- header: s(() => [
507
- h("span", {
508
- onClick: () => l.headerClick({ parent: e.label, ...l }),
509
- style: { color: "#5b9bd1", cursor: "pointer" }
510
- }, m(l.label), 9, Ee)
511
- ]),
512
- default: s((S) => [
513
- h("div", Ae, [
514
- b(t.$slots, "custom", {
515
- data: {
516
- col: { parent: e.label, ...l },
517
- row: S.row
518
- }
519
- }, void 0, !0)
520
- ])
521
- ]),
522
- _: 2
523
- }, 1032, ["prop", "label", "min-width"])) : (o(), i(n(f), {
524
- key: `${l.prop}-${l.label}`,
525
- prop: l.prop,
526
- label: l.label,
527
- width: l.width,
528
- "min-width": l.minWidth,
529
- "show-overflow-tooltip": "",
530
- "header-align": l.headerAlign ? l.headerAlign : "left",
531
- align: l.align ? l.align : "left"
532
- }, null, 8, ["prop", "label", "width", "min-width", "header-align", "align"]))
533
- ], 64))), 256))
534
- ]),
535
- _: 2
536
- }, 1032, ["label", "prop", "width", "min-width", "align", "header-align"])) : e.custom ? (o(), i(n(f), {
537
- key: `${e.prop}-${e.custom}`,
538
- prop: e.prop,
539
- label: e.label,
540
- "min-width": e.minWidth,
541
- "show-overflow-tooltip": ""
542
- }, {
543
- header: s(() => [
544
- h("span", {
545
- onClick: () => e.headerClick({ parent: "", ...e }),
546
- style: { color: "#5b9bd1", cursor: "pointer" }
547
- }, m(e.label), 9, ze)
548
- ]),
549
- default: s((l) => [
550
- h("div", De, [
551
- b(t.$slots, "custom", {
552
- data: {
553
- col: { parent: "", ...e },
554
- row: l.row
555
- }
556
- }, void 0, !0)
557
- ])
558
- ]),
559
- _: 2
560
- }, 1032, ["prop", "label", "min-width"])) : e.type === "action" ? (o(), i(n(f), {
561
- key: `${e.prop - Math.random()}`,
562
- label: e.label,
563
- width: e.width,
564
- type: "action",
565
- fixed: "right"
566
- }, {
567
- default: s((l) => [
568
- h("div", Oe, [
569
- b(t.$slots, "goto", {
570
- row: l.row
571
- }, void 0, !0),
572
- e?.config?.(l.row)?.length ? (o(), i(Ce, {
573
- key: 0,
574
- "show-nums": a.showHandleNums,
575
- config: e.config(l.row, l.$index),
576
- row: l.row
577
- }, null, 8, ["show-nums", "config", "row"])) : B("", !0)
578
- ])
579
- ]),
580
- _: 2
581
- }, 1032, ["label", "width"])) : e.type === "expand" ? (o(), i(n(f), {
582
- type: "expand",
583
- key: "expand" + e.prop,
584
- width: e.width
585
- }, {
586
- default: s((l) => [
587
- h("div", Pe, [
588
- b(t.$slots, "expand", {
589
- row: l.row,
590
- column: l.column
591
- }, void 0, !0)
592
- ])
593
- ]),
594
- _: 3
595
- }, 8, ["width"])) : (o(), i(n(f), {
596
- key: `${e.prop - e.label}`,
597
- prop: e.prop,
598
- label: e.label,
599
- width: e.width,
600
- "min-width": e.minWidth,
601
- fixed: e.fixed,
602
- sortable: e.sortable,
603
- "show-overflow-tooltip": "",
604
- align: e.align || "left"
605
- }, W({ _: 2 }, [
606
- e.headerSlot ? {
607
- name: "header",
608
- fn: s(() => [
609
- b(t.$slots, e.headerSlot, {
610
- item: e,
611
- minWidth: e.minWidth
612
- }, void 0, !0)
613
- ]),
614
- key: "0"
615
- } : void 0
616
- ]), 1032, ["prop", "label", "width", "min-width", "fixed", "sortable", "align"]))
617
- ], 64))), 256))
618
- ]),
619
- _: 3
620
- }, 8, ["element-loading-text", "tree-props", "header-row-class-name", "data", "border", "height", "default-sort", "span-method", "expand-row-keys", "show-summary", "summary-method", "default-expand-all"])
621
- ]),
622
- x.value > 10 && a.hasPage ? (o(), c("div", {
623
- key: 1,
624
- class: z([a.isPagePostion ? "aibox-table__pages" : "aibox-table__page"])
625
- }, [
626
- w(n(pe), {
627
- layout: d.value,
628
- "current-page": a.pages.page,
629
- "page-sizes": [10, 20, 50, 100],
630
- "page-size": a.pages.size,
631
- total: x.value,
632
- "pager-count": a.pagerCount,
633
- size: a.size,
634
- onSizeChange: G,
635
- onCurrentChange: U
636
- }, null, 8, ["layout", "current-page", "page-size", "total", "pager-count", "size"])
637
- ], 2)) : B("", !0)
638
- ], 2));
639
- }
640
- }, Xe = /* @__PURE__ */ F(He, [["__scopeId", "data-v-1e856800"]]);
641
- export {
642
- Xe as A,
643
- Ce as T,
644
- Ve as _
645
- };