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