@web-utils/form-ui 1.0.0-beta6 → 1.0.0-beta60

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 (573) hide show
  1. package/address-input/index.d.ts +52 -0
  2. package/address-input/index.js +2 -0
  3. package/address-input/style.css +1 -0
  4. package/affix/index.d.ts +32 -0
  5. package/affix/index.js +49 -0
  6. package/affix/style.css +1 -0
  7. package/api/index.d.ts +66 -0
  8. package/api/index.js +42 -0
  9. package/awesome-button/index.d.ts +60 -0
  10. package/awesome-button/index.js +49 -0
  11. package/base.css +1 -1
  12. package/capsule-tab/index.d.ts +22 -0
  13. package/capsule-tab/index.js +27 -0
  14. package/capsule-tab/style.css +1 -0
  15. package/card/index.d.ts +41 -0
  16. package/card/index.js +89 -0
  17. package/card/style.css +1 -0
  18. package/chunks/-DBJHzo8.js +195 -0
  19. package/chunks/2LWvhQd0.js +5 -0
  20. package/chunks/2rqr8Tbh.js +266 -0
  21. package/chunks/6yr_i3FT2.js +439 -0
  22. package/chunks/8_hjhnjH2.js +225 -0
  23. package/chunks/B-Uo-WTY2.js +5289 -0
  24. package/chunks/B-VO-y0h.js +69 -0
  25. package/chunks/B1EPd8qV.js +20 -0
  26. package/chunks/B2D06vEG.js +379 -0
  27. package/chunks/B7FF1FxW2.js +1800 -0
  28. package/chunks/B7IZdKDn.js +275 -0
  29. package/chunks/BCLWjhEJ.js +18 -0
  30. package/chunks/BGCX5eZn.js +590 -0
  31. package/chunks/BIEgauMd.js +1275 -0
  32. package/chunks/BJQI5s6-.js +449 -0
  33. package/chunks/BLiwTT_i2.js +4 -0
  34. package/chunks/BMuH4fKH.js +208 -0
  35. package/chunks/BPT6FWFK2.js +621 -0
  36. package/chunks/BTBp2urE.js +4 -0
  37. package/chunks/BVAen7xV2.js +233 -0
  38. package/chunks/BVQMbnV7.js +54 -0
  39. package/chunks/BWTWKgRC2.js +108 -0
  40. package/chunks/BamrxTuc2.js +514 -0
  41. package/chunks/BbrkKcOy.js +214 -0
  42. package/chunks/BdEgzMLy.js +34 -0
  43. package/chunks/Be3-Nwsb.js +68 -0
  44. package/chunks/Beh1v279.js +132 -0
  45. package/chunks/BgzF6a9b.js +577 -0
  46. package/chunks/BjACtWY92.js +26 -0
  47. package/chunks/BjUVecZ_.js +1094 -0
  48. package/chunks/BjwA4s46.js +17 -0
  49. package/chunks/Bkt5jwQ4.js +479 -0
  50. package/chunks/Bmzc6Sbs2.js +60 -0
  51. package/chunks/BoMy4B-G.js +230 -0
  52. package/chunks/BoOLX_Ey2.js +1038 -0
  53. package/chunks/Boq1bhQA.js +17 -0
  54. package/chunks/BpYC6Tu9.js +222 -0
  55. package/chunks/BqmuTTT4.js +63 -0
  56. package/chunks/BrgApSXu2.js +6 -0
  57. package/chunks/Bs7_SRve.js +57 -0
  58. package/chunks/BsfOPm1B2.js +106 -0
  59. package/chunks/BtPj4Jsp2.js +42 -0
  60. package/chunks/BtonI3XP.js +461 -0
  61. package/chunks/Bu-59cNv2.js +41 -0
  62. package/chunks/BvtVUXOb2.js +273 -0
  63. package/chunks/BwqV8Rv9.js +609 -0
  64. package/chunks/BxpuH2XL2.js +346 -0
  65. package/chunks/BykQpC2D.js +42 -0
  66. package/chunks/C-P8DAWg.js +26 -0
  67. package/chunks/C-i5OhEv.js +12 -0
  68. package/chunks/C0IscOmB.js +15 -0
  69. package/chunks/C5lEU74h2.js +46 -0
  70. package/chunks/C6-wRuOv.js +5 -0
  71. package/chunks/CDEhu4Hw2.js +58 -0
  72. package/chunks/CIoHpVna.js +25 -0
  73. package/chunks/CKF4NcjP2.js +161 -0
  74. package/chunks/COm5LruT.js +641 -0
  75. package/chunks/CP45VB0l2.js +4 -0
  76. package/chunks/CPlMW0nU.js +41 -0
  77. package/chunks/CQNKF-Y5.js +279 -0
  78. package/chunks/CZ8fWKCR.js +196 -0
  79. package/chunks/CZgfv08Q2.js +88 -0
  80. package/chunks/C_WXMlg42.js +1354 -0
  81. package/chunks/ChC6aRuE2.js +26 -0
  82. package/chunks/CkkEsDyG.js +17 -0
  83. package/chunks/Cll5nIzw.js +465 -0
  84. package/chunks/CmQBhb4F.js +14 -0
  85. package/chunks/CuVxnUGN.js +13 -0
  86. package/chunks/CxYWt6f52.js +8 -0
  87. package/chunks/CzjXqsNz2.js +1093 -0
  88. package/chunks/D1bdDHti.js +3091 -0
  89. package/chunks/D4vS0dLK2.js +110 -0
  90. package/chunks/D63r1Mj-2.js +27 -0
  91. package/chunks/D73tXuJP.js +98 -0
  92. package/chunks/DANCDark2.js +299 -0
  93. package/chunks/DCHGC-wv.js +644 -0
  94. package/chunks/DDpTDpl_.js +64 -0
  95. package/chunks/DEBzRzs62.js +2430 -0
  96. package/chunks/DF3tDDui2.js +24 -0
  97. package/chunks/DGDjsgmi2.js +67 -0
  98. package/chunks/DGDoWF7A2.js +243 -0
  99. package/chunks/DGOYYEkS2.js +33 -0
  100. package/chunks/DGSETzHz2.js +36 -0
  101. package/chunks/DIu4j2rA2.js +30 -0
  102. package/chunks/DJnkQG-Q.js +105 -0
  103. package/chunks/DKCe2nDe.js +47 -0
  104. package/chunks/DPLXkmFh.js +217 -0
  105. package/chunks/DQdBwuTr.js +17 -0
  106. package/chunks/DUbcVQBq.js +250 -0
  107. package/chunks/D_gajPwn2.js +60 -0
  108. package/chunks/D_j9foN9.js +17 -0
  109. package/chunks/DaBPfr252.js +96 -0
  110. package/chunks/Db0J1lN72.js +383 -0
  111. package/chunks/DcDUyJSx2.js +49 -0
  112. package/chunks/DdDO4YD2.js +281 -0
  113. package/chunks/DdW8XqoW.js +21 -0
  114. package/chunks/DfdoBqSD.js +6 -0
  115. package/chunks/DgbDv9To.js +454 -0
  116. package/chunks/DiB3ANPI2.js +525 -0
  117. package/chunks/DkBjJMFf2.js +34 -0
  118. package/chunks/DkkdixR-.js +732 -0
  119. package/chunks/Dn11MvZp.js +60 -0
  120. package/chunks/Do-8eHRr2.js +936 -0
  121. package/chunks/DoCrd-hR.js +52 -0
  122. package/chunks/DqI4lZin.js +37 -0
  123. package/chunks/DqgSQ3KG2.js +418 -0
  124. package/chunks/DqttRbt0.js +8 -0
  125. package/chunks/DuuoytDu.js +25 -0
  126. package/chunks/Dw_RxmrB2.js +26 -0
  127. package/chunks/DxrV8nwF2.js +28 -0
  128. package/chunks/Dyeav-c7.js +446 -0
  129. package/chunks/DyqdbtLs.js +295 -0
  130. package/chunks/IfmR2wc6.js +207 -0
  131. package/chunks/J-HPb14D.js +35 -0
  132. package/chunks/RAYFV7z_2.js +105 -0
  133. package/chunks/SCjrrbwI.js +194 -0
  134. package/chunks/TU6zhStX.js +40 -0
  135. package/chunks/TziUPXJy.js +46 -0
  136. package/chunks/VufM4po6.js +98 -0
  137. package/chunks/Xdb_3Me6.js +48 -0
  138. package/chunks/YLwDmpE6.js +197 -0
  139. package/chunks/ZdU9-d3W2.js +94 -0
  140. package/chunks/_6lMlbOl2.js +87 -0
  141. package/chunks/_DT9bjOz.js +182 -0
  142. package/chunks/_MqUwxIX2.js +145 -0
  143. package/chunks/a1C-V5Od.js +89 -0
  144. package/chunks/byLw7vSU.js +188 -0
  145. package/chunks/f2NKal5o.js +66 -0
  146. package/chunks/fICCbPEl.js +406 -0
  147. package/chunks/gFFZEYaV.js +1919 -0
  148. package/chunks/itbzUWg4.js +4 -0
  149. package/chunks/kPKqEDo-.js +588 -0
  150. package/chunks/o8iIIG7B.js +1328 -0
  151. package/chunks/xfxHgkQu2.js +31 -0
  152. package/code-mirror-editor/index.d.ts +50 -0
  153. package/code-mirror-editor/index.js +99 -0
  154. package/code-mirror-editor/style.css +1 -0
  155. package/confirm-button/index.d.ts +122 -0
  156. package/confirm-button/index.js +35 -0
  157. package/confirmable/index.d.ts +93 -0
  158. package/confirmable/index.js +8 -0
  159. package/constants/index.d.ts +73 -0
  160. package/constants/index.js +4 -0
  161. package/context-menu/index.d.ts +183 -0
  162. package/context-menu/index.js +196 -0
  163. package/context-menu/style.css +1 -0
  164. package/count-up/index.d.ts +70 -0
  165. package/count-up/index.js +94 -0
  166. package/custom-scrollbar/index.d.ts +49 -0
  167. package/custom-scrollbar/index.js +93 -0
  168. package/data-box/index.d.ts +19 -0
  169. package/data-box/index.js +68 -0
  170. package/data-box/style.css +1 -0
  171. package/data-card/index.d.ts +20 -0
  172. package/data-card/index.js +63 -0
  173. package/data-card/style.css +1 -0
  174. package/data-card-text/index.d.ts +21 -0
  175. package/data-card-text/index.js +67 -0
  176. package/data-card-text/style.css +1 -0
  177. package/data-display/index.d.ts +20 -0
  178. package/data-display/index.js +73 -0
  179. package/data-display/style.css +1 -0
  180. package/data-icons/index.d.ts +21 -0
  181. package/data-icons/index.js +74 -0
  182. package/data-icons/style.css +1 -0
  183. package/data-imgtext/index.d.ts +18 -0
  184. package/data-imgtext/index.js +71 -0
  185. package/data-imgtext/style.css +1 -0
  186. package/data-operatext/index.d.ts +17 -0
  187. package/data-operatext/index.js +54 -0
  188. package/data-operatext/style.css +1 -0
  189. package/data-panel/index.d.ts +19 -0
  190. package/data-panel/index.js +61 -0
  191. package/data-panel/style.css +1 -0
  192. package/data-pay/index.d.ts +19 -0
  193. package/data-pay/index.js +110 -0
  194. package/data-pay/style.css +1 -0
  195. package/data-price/index.d.ts +17 -0
  196. package/data-price/index.js +51 -0
  197. package/data-price/style.css +1 -0
  198. package/data-progress/index.d.ts +19 -0
  199. package/data-progress/index.js +72 -0
  200. package/data-progress/style.css +1 -0
  201. package/data-rotate/index.d.ts +19 -0
  202. package/data-rotate/index.js +65 -0
  203. package/data-rotate/style.css +1 -0
  204. package/data-table-picker/index.d.ts +61 -0
  205. package/data-table-picker/index.js +118 -0
  206. package/data-tabs/index.d.ts +19 -0
  207. package/data-tabs/index.js +71 -0
  208. package/data-tabs/style.css +1 -0
  209. package/dict-render/index.d.ts +28 -0
  210. package/dict-render/index.js +2 -0
  211. package/e-charts/index.d.ts +79 -0
  212. package/e-charts/index.js +179 -0
  213. package/e-charts/style.css +1 -0
  214. package/easy-popup/index.d.ts +114 -0
  215. package/easy-popup/index.js +92 -0
  216. package/easy-popup/style.css +1 -0
  217. package/editable-progress/index.d.ts +68 -0
  218. package/editable-progress/index.js +120 -0
  219. package/editable-progress/style.css +1 -0
  220. package/editable-tree/index.d.ts +281 -0
  221. package/editable-tree/index.js +2 -0
  222. package/editable-tree/style.css +1 -0
  223. package/element-dialog/index.d.ts +341 -18
  224. package/element-dialog/index.js +2 -0
  225. package/element-dialog/style.css +1 -1
  226. package/element-listeners/style.css +1 -0
  227. package/element-multi-instance/style.css +1 -0
  228. package/element-resize-observer/index.d.ts +8 -0
  229. package/element-resize-observer/index.js +40 -0
  230. package/element-resize-observer/style.css +1 -0
  231. package/empty-view/index.d.ts +2 -2
  232. package/empty-view/{index.mjs → index.js} +1 -1
  233. package/error-view/index.d.ts +25 -0
  234. package/error-view/index.js +37 -0
  235. package/error-view/style.css +1 -0
  236. package/flex-box/index.d.ts +44 -0
  237. package/flex-box/index.js +2 -0
  238. package/flex-column/index.d.ts +41 -0
  239. package/flex-column/index.js +2 -0
  240. package/flex-item/index.d.ts +77 -0
  241. package/flex-item/index.js +2 -0
  242. package/flex-row/index.d.ts +41 -0
  243. package/flex-row/index.js +2 -0
  244. package/flex-scroll-area/index.d.ts +1 -1
  245. package/flex-scroll-area/{index.mjs → index.js} +1 -1
  246. package/flex-scroller/index.d.ts +26 -0
  247. package/flex-scroller/index.js +29 -0
  248. package/flex-scroller/style.css +1 -0
  249. package/flow-designer/index.d.ts +353 -0
  250. package/flow-designer/index.js +2 -0
  251. package/flow-designer/style.css +1 -0
  252. package/flow-viewer/index.d.ts +62 -0
  253. package/flow-viewer/index.js +159 -0
  254. package/flow-viewer/style.css +1 -0
  255. package/form-advice/index.js +29 -0
  256. package/form-button/index.d.ts +123 -0
  257. package/form-button/index.js +36 -0
  258. package/form-card/index.d.ts +14 -0
  259. package/form-card/index.js +18 -0
  260. package/form-cascader/index.d.ts +478 -0
  261. package/form-cascader/index.js +2 -0
  262. package/form-checkbox/index.d.ts +253 -20
  263. package/form-checkbox/index.js +2 -0
  264. package/form-checkbox-group/index.d.ts +373 -0
  265. package/form-checkbox-group/index.js +2 -0
  266. package/form-checkbox-group/style.css +1 -0
  267. package/form-date-picker/index.d.ts +404 -21
  268. package/form-date-picker/index.js +2 -0
  269. package/form-holder/index.d.ts +89 -22
  270. package/form-holder/index.js +2 -0
  271. package/form-holder/style.css +1 -1
  272. package/form-image/index.d.ts +153 -15
  273. package/form-image/index.js +2 -0
  274. package/form-input/index.d.ts +309 -22
  275. package/form-input/index.js +2 -0
  276. package/form-input/style.css +1 -0
  277. package/form-input-cron-expression/index.d.ts +223 -0
  278. package/form-input-cron-expression/index.js +2 -0
  279. package/form-input-cron-expression/style.css +1 -0
  280. package/form-input-email/index.d.ts +315 -18
  281. package/form-input-email/index.js +2 -0
  282. package/form-input-id-card/index.d.ts +315 -18
  283. package/form-input-id-card/index.js +2 -0
  284. package/form-input-number/index.d.ts +254 -20
  285. package/form-input-number/index.js +2 -0
  286. package/form-input-phone-number/index.d.ts +315 -18
  287. package/form-input-phone-number/index.js +2 -0
  288. package/form-input-tag/index.d.ts +269 -1
  289. package/form-input-tag/index.js +2 -0
  290. package/form-input-time/index.d.ts +440 -1
  291. package/form-input-time/index.js +2 -0
  292. package/form-item-config-provider/index.d.ts +40 -0
  293. package/form-item-config-provider/index.js +24 -0
  294. package/form-item-group/index.d.ts +91 -17
  295. package/form-item-group/index.js +2 -0
  296. package/form-item-group/style.css +1 -1
  297. package/form-item-x/index.d.ts +149 -13
  298. package/form-item-x/index.js +2 -0
  299. package/form-item-x/style.css +1 -0
  300. package/form-radio-group/index.d.ts +313 -20
  301. package/form-radio-group/index.js +2 -0
  302. package/form-rate/index.d.ts +262 -16
  303. package/form-rate/index.js +2 -0
  304. package/form-red-table/index.js +65 -0
  305. package/form-row/index.d.ts +2 -2
  306. package/form-row/index.js +2 -0
  307. package/form-select/index.d.ts +545 -20
  308. package/form-select/index.js +2 -0
  309. package/form-slider/index.d.ts +291 -18
  310. package/form-slider/index.js +2 -0
  311. package/form-switch/index.d.ts +282 -18
  312. package/form-switch/index.js +2 -0
  313. package/form-table/index.d.ts +287 -0
  314. package/form-table/index.js +2 -0
  315. package/form-table-plus/index.d.ts +266 -0
  316. package/form-table-plus/index.js +2 -0
  317. package/form-text/index.d.ts +173 -15
  318. package/form-text/index.js +2 -0
  319. package/form-textarea/index.d.ts +351 -0
  320. package/form-textarea/index.js +2 -0
  321. package/form-time-select/index.d.ts +325 -0
  322. package/form-time-select/index.js +2 -0
  323. package/form-tree-select/index.d.ts +715 -0
  324. package/form-tree-select/index.js +2 -0
  325. package/form-tree-select/style.css +1 -0
  326. package/form-tree-select-multiple/index.d.ts +717 -0
  327. package/form-tree-select-multiple/index.js +2 -0
  328. package/form-view/index.d.ts +225 -1
  329. package/form-view/index.js +283 -0
  330. package/form-view/style.css +1 -0
  331. package/guide-steps/index.d.ts +31 -0
  332. package/guide-steps/index.js +2 -0
  333. package/guide-steps/style.css +1 -0
  334. package/helper/dictionary.d.ts +29 -0
  335. package/helper/dictionary.js +97 -0
  336. package/helper/form-item.d.ts +17 -0
  337. package/helper/form-item.js +27 -0
  338. package/helper/input.d.ts +47 -0
  339. package/helper/input.js +2 -0
  340. package/helper/sub-table-plus.d.ts +98 -0
  341. package/helper/sub-table-plus.js +4 -0
  342. package/highlight-j-s/index.d.ts +18 -0
  343. package/highlight-j-s/index.js +51 -0
  344. package/highlight-j-s/style.css +1 -0
  345. package/hook/useDictionary.d.ts +60 -0
  346. package/hook/useDictionary.js +15 -0
  347. package/hook/useVisibilityChange.d.ts +4 -0
  348. package/hook/useVisibilityChange.js +14 -0
  349. package/iframe-window/index.d.ts +9 -0
  350. package/iframe-window/index.js +37 -0
  351. package/iframe-window/style.css +1 -0
  352. package/image-cropper/index.d.ts +365 -0
  353. package/image-cropper/index.js +155 -0
  354. package/image-cropper/style.css +1 -0
  355. package/image-preview/index.d.ts +213 -0
  356. package/image-preview/index.js +2 -0
  357. package/image-preview/style.css +1 -0
  358. package/image-viewer/index.d.ts +25 -0
  359. package/image-viewer/index.js +70 -0
  360. package/image-viewer/style.css +1 -0
  361. package/index.css +2 -0
  362. package/index.d.ts +121 -36
  363. package/index.js +125 -0
  364. package/input-number-range/index.d.ts +41 -0
  365. package/input-number-range/index.js +76 -0
  366. package/input-number-range/style.css +1 -0
  367. package/keyboard/index.d.ts +64 -0
  368. package/keyboard/index.js +2 -0
  369. package/keyboard/style.css +1 -0
  370. package/loading-view/index.d.ts +65 -0
  371. package/loading-view/index.js +39 -0
  372. package/loading-view/style.css +1 -0
  373. package/name-avatar/index.d.ts +62 -0
  374. package/name-avatar/index.js +61 -0
  375. package/name-avatar/style.css +1 -0
  376. package/nav-bar/index.d.ts +21 -0
  377. package/nav-bar/index.js +36 -0
  378. package/nav-bar/style.css +1 -0
  379. package/package.json +25 -5
  380. package/page/index.d.ts +21 -0
  381. package/page/index.js +17 -0
  382. package/page/style.css +1 -0
  383. package/page-header/index.d.ts +27 -0
  384. package/page-header/index.js +25 -0
  385. package/page-header/style.css +1 -0
  386. package/page-index/index.d.ts +82 -0
  387. package/page-index/index.js +123 -0
  388. package/page-index/style.css +1 -0
  389. package/page-index-top/index.d.ts +38 -0
  390. package/page-index-top/index.js +85 -0
  391. package/page-skeleton/index.d.ts +30 -0
  392. package/page-skeleton/index.js +44 -0
  393. package/page-skeleton/style.css +1 -0
  394. package/page-skeleton-new/index.d.ts +34 -0
  395. package/page-skeleton-new/index.js +80 -0
  396. package/page-skeleton-new/style.css +1 -0
  397. package/pageable-table/index.d.ts +400 -0
  398. package/pageable-table/index.js +2 -0
  399. package/pageable-table/style.css +1 -0
  400. package/photo-swipe/index.d.ts +18 -0
  401. package/photo-swipe/index.js +2 -0
  402. package/props/cascader.d.ts +326 -0
  403. package/props/cascader.js +145 -0
  404. package/props/checkbox-group.d.ts +213 -0
  405. package/props/checkbox-group.js +83 -0
  406. package/props/checkbox.d.ts +205 -0
  407. package/props/checkbox.js +74 -0
  408. package/props/col.d.ts +74 -0
  409. package/props/col.js +32 -0
  410. package/props/common.d.ts +114 -0
  411. package/props/common.js +18 -0
  412. package/props/date.d.ts +339 -0
  413. package/props/date.js +145 -0
  414. package/props/form-item.d.ts +144 -0
  415. package/props/form-item.js +73 -0
  416. package/props/form.d.ts +157 -0
  417. package/props/form.js +89 -0
  418. package/props/image.d.ts +102 -0
  419. package/props/image.js +10 -0
  420. package/props/input-cron.d.ts +102 -0
  421. package/props/input-cron.js +16 -0
  422. package/props/input-number.d.ts +216 -0
  423. package/props/input-number.js +72 -0
  424. package/props/input-tag.d.ts +123 -0
  425. package/props/input-tag.js +33 -0
  426. package/props/input.d.ts +299 -0
  427. package/props/input.js +97 -0
  428. package/props/radio-group.d.ts +205 -0
  429. package/props/radio-group.js +84 -0
  430. package/props/rate.d.ts +211 -0
  431. package/props/rate.js +66 -0
  432. package/props/select.d.ts +450 -0
  433. package/props/select.js +218 -0
  434. package/props/slide.d.ts +235 -0
  435. package/props/slide.js +72 -0
  436. package/props/switch.d.ts +229 -0
  437. package/props/switch.js +80 -0
  438. package/props/text.d.ts +127 -0
  439. package/props/text.js +22 -0
  440. package/props/textarea.d.ts +266 -0
  441. package/props/textarea.js +82 -0
  442. package/props/time-select.d.ts +216 -0
  443. package/props/time-select.js +67 -0
  444. package/props/time.d.ts +304 -0
  445. package/props/time.js +138 -0
  446. package/props/tree-select-multiple.d.ts +324 -0
  447. package/props/tree-select-multiple.js +16 -0
  448. package/props/tree-select.d.ts +326 -0
  449. package/props/tree-select.js +25 -0
  450. package/props/tree.d.ts +76 -0
  451. package/props/tree.js +75 -0
  452. package/props/vue-tree-select.d.ts +458 -0
  453. package/props/vue-tree-select.js +213 -0
  454. package/resolver/index.js +29 -0
  455. package/sign-panel/index.d.ts +85 -0
  456. package/sign-panel/index.js +183 -0
  457. package/sign-panel/style.css +1 -0
  458. package/skeleton-panel/index.d.ts +27 -0
  459. package/skeleton-panel/index.js +37 -0
  460. package/skeleton-panel/style.css +1 -0
  461. package/split-pane/index.d.ts +106 -0
  462. package/split-pane/index.js +2 -0
  463. package/split-pane/style.css +1 -0
  464. package/stateful/index.d.ts +92 -0
  465. package/stateful/index.js +67 -0
  466. package/stateful/style.css +1 -0
  467. package/sub-table/index.d.ts +109 -0
  468. package/sub-table/index.js +2 -0
  469. package/sub-table/style.css +1 -0
  470. package/sub-table-plus/index.d.ts +109 -0
  471. package/sub-table-plus/index.js +2 -0
  472. package/sub-table-plus/style.css +1 -0
  473. package/swiper/index.d.ts +27 -0
  474. package/swiper/index.js +126 -0
  475. package/swiper/style.css +1 -0
  476. package/table-column/index.d.ts +163 -0
  477. package/table-column/index.js +2 -0
  478. package/table-column/style.css +1 -0
  479. package/table-column-def/index.d.ts +97 -0
  480. package/table-column-def/index.js +11 -0
  481. package/table-view/index.d.ts +345 -1
  482. package/table-view/index.js +471 -0
  483. package/table-view/style.css +1 -0
  484. package/tag-render/index.d.ts +48 -0
  485. package/tag-render/index.js +86 -0
  486. package/tag-render/style.css +1 -0
  487. package/text-ellipsis/index.d.ts +111 -0
  488. package/text-ellipsis/index.js +124 -0
  489. package/text-ellipsis/style.css +1 -0
  490. package/toolbar/index.d.ts +128 -1
  491. package/toolbar/index.js +2 -0
  492. package/toolbar/style.css +1 -0
  493. package/toolbar-button/index.d.ts +188 -1
  494. package/toolbar-button/index.js +2 -0
  495. package/toolbar-button/style.css +1 -0
  496. package/vue-cron/index.d.ts +191 -0
  497. package/vue-cron/index.js +2 -0
  498. package/vue-cron/style.css +1 -0
  499. package/vue-qr-code/index.d.ts +47 -0
  500. package/vue-qr-code/index.js +32 -0
  501. package/vue-tags-input/index.d.ts +373 -0
  502. package/vue-tags-input/index.js +350 -0
  503. package/vue-tags-input/style.css +1 -0
  504. package/vue-tree-select/index.d.ts +1489 -0
  505. package/vue-tree-select/index.js +2 -0
  506. package/vue-tree-select/style.css +1 -0
  507. package/vue-video-player/index.d.ts +117 -0
  508. package/vue-video-player/index.js +136 -0
  509. package/vue-video-player/style.css +1 -0
  510. package/watermark/index.d.ts +97 -0
  511. package/watermark/index.js +2 -0
  512. package/watermark/style.css +1 -0
  513. package/web-types.json +1 -1
  514. package/x-input-tag/index.d.ts +2 -0
  515. package/x-input-tag/index.js +232 -0
  516. package/x-input-tag/style.css +1 -0
  517. package/year-calendar/index.d.ts +99 -0
  518. package/year-calendar/index.js +2 -0
  519. package/year-calendar/style.css +1 -0
  520. package/chunks/B4M_TFeR.mjs +0 -152
  521. package/chunks/B5BIQCcK.mjs +0 -149
  522. package/chunks/BHNKrW1j.mjs +0 -61
  523. package/chunks/BO9jWhBl.mjs +0 -46
  524. package/chunks/BZ8aOa78.mjs +0 -35
  525. package/chunks/Bsz7y4Xp.mjs +0 -73
  526. package/chunks/Bxj372sF.mjs +0 -53
  527. package/chunks/C33EmJN8.mjs +0 -32
  528. package/chunks/C6Li3-l7.mjs +0 -28
  529. package/chunks/CBcdalMX.mjs +0 -35
  530. package/chunks/CdRsyF0n.mjs +0 -43
  531. package/chunks/ClNahmiU.mjs +0 -23
  532. package/chunks/CstztYMu.mjs +0 -28
  533. package/chunks/DC9b53M6.mjs +0 -32
  534. package/chunks/DDVAgRED.mjs +0 -36
  535. package/chunks/DpJQABVD.mjs +0 -91
  536. package/chunks/ZsLNWI9x.mjs +0 -46
  537. package/chunks/jn_iQrVZ.mjs +0 -28
  538. package/constants.d.ts +0 -1
  539. package/constants.mjs +0 -4
  540. package/element-dialog/index.mjs +0 -91
  541. package/form-advice/index.mjs +0 -28
  542. package/form-check-box-group/index.d.ts +0 -93
  543. package/form-check-box-group/index.mjs +0 -2
  544. package/form-checkbox/index.mjs +0 -2
  545. package/form-date-picker/index.mjs +0 -2
  546. package/form-holder/index.mjs +0 -2
  547. package/form-image/index.mjs +0 -2
  548. package/form-input/index.mjs +0 -2
  549. package/form-input-email/index.mjs +0 -2
  550. package/form-input-id-card/index.mjs +0 -2
  551. package/form-input-number/index.mjs +0 -2
  552. package/form-input-phone-number/index.mjs +0 -2
  553. package/form-input-tag/index.mjs +0 -4
  554. package/form-input-time/index.mjs +0 -4
  555. package/form-item-group/index.mjs +0 -78
  556. package/form-item-x/index.mjs +0 -2
  557. package/form-radio-group/index.mjs +0 -2
  558. package/form-rate/index.mjs +0 -2
  559. package/form-red-table/index.mjs +0 -64
  560. package/form-row/index.mjs +0 -2
  561. package/form-select/index.mjs +0 -2
  562. package/form-slider/index.mjs +0 -2
  563. package/form-switch/index.mjs +0 -2
  564. package/form-text/index.mjs +0 -2
  565. package/form-view/index.mjs +0 -9
  566. package/index.mjs +0 -63
  567. package/input/style.css +0 -1
  568. package/resolver.mjs +0 -79
  569. package/table-view/index.mjs +0 -9
  570. package/toolbar/index.mjs +0 -9
  571. package/toolbar-button/index.mjs +0 -9
  572. /package/form-cell/{index.mjs → index.js} +0 -0
  573. /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
@@ -0,0 +1,1328 @@
1
+ import "./B1EPd8qV.js";
2
+ import { t as e } from "./BTBp2urE.js";
3
+ import { i as t, n, r } from "./BCLWjhEJ.js";
4
+ import { t as i } from "./fICCbPEl.js";
5
+ import { E as a, g as o, l as s, s as c, t as l, u } from "./D73tXuJP.js";
6
+ import { n as d, t as f } from "./D1bdDHti.js";
7
+ import { n as p, t as m } from "./BIEgauMd.js";
8
+ import { t as h } from "./C-i5OhEv.js";
9
+ import { F as g, h as _, i as v, m as y, r as b, t as x, x as S } from "./BtonI3XP.js";
10
+ import { n as C } from "./byLw7vSU.js";
11
+ import { t as w } from "./C0IscOmB.js";
12
+ import { t as T } from "./BgzF6a9b.js";
13
+ import { a as E } from "./C-P8DAWg.js";
14
+ import { t as D } from "./BLiwTT_i2.js";
15
+ import { _ as ee, h as O, m as te, n as ne, r as re } from "./DiB3ANPI2.js";
16
+ import { t as k } from "./6yr_i3FT2.js";
17
+ import { t as ie } from "./BvtVUXOb2.js";
18
+ import { t as A } from "./8_hjhnjH2.js";
19
+ import ae from "../element-resize-observer/index.js";
20
+ import { cellClickHandlerContextKey as oe, pageableTableContextKey as se } from "../constants/index.js";
21
+ import { t as ce } from "./_DT9bjOz.js";
22
+ import { getDictLabel as le } from "../helper/dictionary.js";
23
+ import { t as j } from "./VufM4po6.js";
24
+ import { t as M } from "./Be3-Nwsb.js";
25
+ import { useVisibilityChange as ue } from "../hook/useVisibilityChange.js";
26
+ import { Fragment as N, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as z, createVNode as B, defineComponent as V, getCurrentInstance as H, h as U, inject as de, isVNode as fe, mergeModels as pe, mergeProps as me, nextTick as he, normalizeClass as W, normalizeStyle as ge, onUpdated as _e, openBlock as G, provide as ve, reactive as K, ref as q, renderList as ye, renderSlot as be, resolveDynamicComponent as xe, toDisplayString as J, unref as Y, useModel as Se, useTemplateRef as Ce, watch as X, withCtx as Z, withKeys as we } from "vue";
27
+ import { isEqual as Te } from "lodash-unified";
28
+ import { useEventBus as Ee } from "@web-utils/vue/hooks/useEventBus";
29
+ //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/empty/src/empty.mjs
30
+ var De = s({
31
+ image: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ imageSize: Number,
36
+ description: {
37
+ type: String,
38
+ default: ""
39
+ }
40
+ }), Oe = {
41
+ viewBox: "0 0 79 86",
42
+ version: "1.1",
43
+ xmlns: "http://www.w3.org/2000/svg",
44
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
45
+ }, ke = ["id"], Ae = ["stop-color"], je = ["stop-color"], Me = ["id"], Ne = ["stop-color"], Pe = ["stop-color"], Fe = ["id"], Ie = {
46
+ stroke: "none",
47
+ "stroke-width": "1",
48
+ fill: "none",
49
+ "fill-rule": "evenodd"
50
+ }, Le = { transform: "translate(-1268.000000, -535.000000)" }, Re = { transform: "translate(1268.000000, 535.000000)" }, ze = ["fill"], Be = ["fill"], Ve = { transform: "translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)" }, He = ["fill"], Ue = ["fill"], We = ["fill"], Ge = ["fill"], Ke = ["fill"], qe = { transform: "translate(53.000000, 45.000000)" }, Je = ["fill", "xlink:href"], Ye = ["fill", "mask"], Xe = ["fill"], Ze = /* @__PURE__ */ V({
51
+ name: "ImgEmpty",
52
+ __name: "img-empty",
53
+ setup(e) {
54
+ let t = c("empty"), n = w();
55
+ return (e, r) => (G(), L("svg", Oe, [R("defs", null, [
56
+ R("linearGradient", {
57
+ id: `linearGradient-1-${Y(n)}`,
58
+ x1: "38.8503086%",
59
+ y1: "0%",
60
+ x2: "61.1496914%",
61
+ y2: "100%"
62
+ }, [R("stop", {
63
+ "stop-color": `var(${Y(t).cssVarBlockName("fill-color-1")})`,
64
+ offset: "0%"
65
+ }, null, 8, Ae), R("stop", {
66
+ "stop-color": `var(${Y(t).cssVarBlockName("fill-color-4")})`,
67
+ offset: "100%"
68
+ }, null, 8, je)], 8, ke),
69
+ R("linearGradient", {
70
+ id: `linearGradient-2-${Y(n)}`,
71
+ x1: "0%",
72
+ y1: "9.5%",
73
+ x2: "100%",
74
+ y2: "90.5%"
75
+ }, [R("stop", {
76
+ "stop-color": `var(${Y(t).cssVarBlockName("fill-color-1")})`,
77
+ offset: "0%"
78
+ }, null, 8, Ne), R("stop", {
79
+ "stop-color": `var(${Y(t).cssVarBlockName("fill-color-6")})`,
80
+ offset: "100%"
81
+ }, null, 8, Pe)], 8, Me),
82
+ R("rect", {
83
+ id: `path-3-${Y(n)}`,
84
+ x: "0",
85
+ y: "0",
86
+ width: "17",
87
+ height: "36"
88
+ }, null, 8, Fe)
89
+ ]), R("g", Ie, [R("g", Le, [R("g", Re, [
90
+ R("path", {
91
+ d: "M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",
92
+ fill: `var(${Y(t).cssVarBlockName("fill-color-3")})`
93
+ }, null, 8, ze),
94
+ R("polygon", {
95
+ fill: `var(${Y(t).cssVarBlockName("fill-color-7")})`,
96
+ transform: "translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",
97
+ points: "13 58 53 58 42 45 2 45"
98
+ }, null, 8, Be),
99
+ R("g", Ve, [
100
+ R("polygon", {
101
+ fill: `var(${Y(t).cssVarBlockName("fill-color-7")})`,
102
+ transform: "translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",
103
+ points: "2.84078316e-14 3 18 3 23 7 5 7"
104
+ }, null, 8, He),
105
+ R("polygon", {
106
+ fill: `var(${Y(t).cssVarBlockName("fill-color-5")})`,
107
+ points: "-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"
108
+ }, null, 8, Ue),
109
+ R("rect", {
110
+ fill: `url(#linearGradient-1-${Y(n)})`,
111
+ transform: "translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",
112
+ x: "38",
113
+ y: "7",
114
+ width: "17",
115
+ height: "36"
116
+ }, null, 8, We),
117
+ R("polygon", {
118
+ fill: `var(${Y(t).cssVarBlockName("fill-color-2")})`,
119
+ transform: "translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",
120
+ points: "24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"
121
+ }, null, 8, Ge)
122
+ ]),
123
+ R("rect", {
124
+ fill: `url(#linearGradient-2-${Y(n)})`,
125
+ x: "13",
126
+ y: "45",
127
+ width: "40",
128
+ height: "36"
129
+ }, null, 8, Ke),
130
+ R("g", qe, [R("use", {
131
+ fill: `var(${Y(t).cssVarBlockName("fill-color-8")})`,
132
+ transform: "translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ",
133
+ "xlink:href": `#path-3-${Y(n)}`
134
+ }, null, 8, Je), R("polygon", {
135
+ fill: `var(${Y(t).cssVarBlockName("fill-color-9")})`,
136
+ mask: `url(#mask-4-${Y(n)})`,
137
+ transform: "translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",
138
+ points: "7 0 24 0 20 18 7 16.5"
139
+ }, null, 8, Ye)]),
140
+ R("polygon", {
141
+ fill: `var(${Y(t).cssVarBlockName("fill-color-2")})`,
142
+ transform: "translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",
143
+ points: "62 45 79 45 70 58 53 58"
144
+ }, null, 8, Xe)
145
+ ])])])]));
146
+ }
147
+ }), Qe = ["src"], $e = { key: 1 }, et = l(/* @__PURE__ */ V({
148
+ name: "ElEmpty",
149
+ __name: "empty",
150
+ props: De,
151
+ setup(e) {
152
+ let t = e, { t: n } = C(), r = c("empty"), i = P(() => t.description || n("el.table.emptyText")), a = P(() => ({ width: g(t.imageSize) }));
153
+ return (t, n) => (G(), L("div", { class: W(Y(r).b()) }, [
154
+ R("div", {
155
+ class: W(Y(r).e("image")),
156
+ style: ge(a.value)
157
+ }, [e.image ? (G(), L("img", {
158
+ key: 0,
159
+ src: e.image,
160
+ ondragstart: "return false"
161
+ }, null, 8, Qe)) : be(t.$slots, "image", { key: 1 }, () => [B(Ze)])], 6),
162
+ R("div", { class: W(Y(r).e("description")) }, [t.$slots.description ? be(t.$slots, "description", { key: 0 }) : (G(), L("p", $e, J(i.value), 1))], 2),
163
+ t.$slots.default ? (G(), L("div", {
164
+ key: 0,
165
+ class: W(Y(r).e("bottom"))
166
+ }, [be(t.$slots, "default")], 2)) : I("v-if", !0)
167
+ ], 2));
168
+ }
169
+ })), tt = Symbol("elPaginationKey"), nt = s({
170
+ disabled: Boolean,
171
+ currentPage: {
172
+ type: Number,
173
+ default: 1
174
+ },
175
+ prevText: { type: String },
176
+ prevIcon: { type: E }
177
+ }), rt = { click: (e) => e instanceof MouseEvent }, it = [
178
+ "disabled",
179
+ "aria-label",
180
+ "aria-disabled"
181
+ ], at = { key: 0 }, ot = /* @__PURE__ */ V({
182
+ name: "ElPaginationPrev",
183
+ __name: "prev",
184
+ props: nt,
185
+ emits: rt,
186
+ setup(e) {
187
+ let t = e, { t: n } = C(), r = P(() => t.disabled || t.currentPage <= 1);
188
+ return (e, t) => (G(), L("button", {
189
+ type: "button",
190
+ class: "btn-prev",
191
+ disabled: r.value,
192
+ "aria-label": e.prevText || Y(n)("el.pagination.prev"),
193
+ "aria-disabled": r.value,
194
+ onClick: t[0] || (t[0] = (t) => e.$emit("click", t))
195
+ }, [e.prevText ? (G(), L("span", at, J(e.prevText), 1)) : (G(), F(Y(x), { key: 1 }, {
196
+ default: Z(() => [(G(), F(xe(e.prevIcon)))]),
197
+ _: 1
198
+ }))], 8, it));
199
+ }
200
+ }), st = s({
201
+ disabled: Boolean,
202
+ currentPage: {
203
+ type: Number,
204
+ default: 1
205
+ },
206
+ pageCount: {
207
+ type: Number,
208
+ default: 50
209
+ },
210
+ nextText: { type: String },
211
+ nextIcon: { type: E }
212
+ }), ct = [
213
+ "disabled",
214
+ "aria-label",
215
+ "aria-disabled"
216
+ ], lt = { key: 0 }, ut = /* @__PURE__ */ V({
217
+ name: "ElPaginationNext",
218
+ __name: "next",
219
+ props: st,
220
+ emits: ["click"],
221
+ setup(e) {
222
+ let t = e, { t: n } = C(), r = P(() => t.disabled || t.currentPage === t.pageCount || t.pageCount === 0);
223
+ return (e, t) => (G(), L("button", {
224
+ type: "button",
225
+ class: "btn-next",
226
+ disabled: r.value,
227
+ "aria-label": e.nextText || Y(n)("el.pagination.next"),
228
+ "aria-disabled": r.value,
229
+ onClick: t[0] || (t[0] = (t) => e.$emit("click", t))
230
+ }, [e.nextText ? (G(), L("span", lt, J(e.nextText), 1)) : (G(), F(Y(x), { key: 1 }, {
231
+ default: Z(() => [(G(), F(xe(e.nextIcon)))]),
232
+ _: 1
233
+ }))], 8, ct));
234
+ }
235
+ }), dt = () => de(tt, {}), ft = /* @__PURE__ */ V({
236
+ name: "ElPaginationSizes",
237
+ __name: "sizes",
238
+ props: s({
239
+ pageSize: {
240
+ type: Number,
241
+ required: !0
242
+ },
243
+ pageSizes: {
244
+ type: u(Array),
245
+ default: () => D([
246
+ 10,
247
+ 20,
248
+ 30,
249
+ 40,
250
+ 50,
251
+ 100
252
+ ])
253
+ },
254
+ popperClass: { type: String },
255
+ popperStyle: { type: u([String, Object]) },
256
+ disabled: Boolean,
257
+ teleported: Boolean,
258
+ size: {
259
+ type: String,
260
+ values: t
261
+ },
262
+ appendSizeTo: String
263
+ }),
264
+ emits: ["page-size-change"],
265
+ setup(e, { emit: t }) {
266
+ let n = e, r = t, { t: i } = C(), o = c("pagination"), s = dt(), l = q(n.pageSize);
267
+ X(() => n.pageSizes, (e, t) => {
268
+ Te(e, t) || a(e) && r("page-size-change", e.includes(n.pageSize) ? n.pageSize : n.pageSizes[0]);
269
+ }), X(() => n.pageSize, (e) => {
270
+ l.value = e;
271
+ });
272
+ let u = P(() => n.pageSizes);
273
+ function d(e) {
274
+ if (e !== l.value) {
275
+ var t;
276
+ l.value = e, (t = s.handleSizeChange) == null || t.call(s, Number(e));
277
+ }
278
+ }
279
+ return (e, t) => (G(), L("span", { class: W(Y(o).e("sizes")) }, [B(Y(p), {
280
+ "model-value": l.value,
281
+ disabled: e.disabled,
282
+ "popper-class": e.popperClass,
283
+ "popper-style": e.popperStyle,
284
+ size: e.size,
285
+ teleported: e.teleported,
286
+ "validate-event": !1,
287
+ "append-to": e.appendSizeTo,
288
+ onChange: d
289
+ }, {
290
+ default: Z(() => [(G(!0), L(N, null, ye(u.value, (e) => (G(), F(Y(m), {
291
+ key: e,
292
+ value: e,
293
+ label: e + Y(i)("el.pagination.pagesize")
294
+ }, null, 8, ["value", "label"]))), 128))]),
295
+ _: 1
296
+ }, 8, [
297
+ "model-value",
298
+ "disabled",
299
+ "popper-class",
300
+ "popper-style",
301
+ "size",
302
+ "teleported",
303
+ "append-to"
304
+ ])], 2));
305
+ }
306
+ }), pt = s({ size: {
307
+ type: String,
308
+ values: t
309
+ } }), mt = ["disabled"], ht = /* @__PURE__ */ V({
310
+ name: "ElPaginationJumper",
311
+ __name: "jumper",
312
+ props: pt,
313
+ setup(e) {
314
+ let { t } = C(), n = c("pagination"), { pageCount: r, disabled: i, currentPage: a, changeEvent: o } = dt(), s = q(), l = P(() => s.value ?? (a == null ? void 0 : a.value));
315
+ function u(e) {
316
+ s.value = e ? +e : "";
317
+ }
318
+ function d(e) {
319
+ e = Math.trunc(+e), o == null || o(e), s.value = void 0;
320
+ }
321
+ return (e, a) => (G(), L("span", {
322
+ class: W(Y(n).e("jump")),
323
+ disabled: Y(i)
324
+ }, [
325
+ R("span", { class: W([Y(n).e("goto")]) }, J(Y(t)("el.pagination.goto")), 3),
326
+ B(Y(T), {
327
+ size: e.size,
328
+ class: W([Y(n).e("editor"), Y(n).is("in-pagination")]),
329
+ min: 1,
330
+ max: Y(r),
331
+ disabled: Y(i),
332
+ "model-value": l.value,
333
+ "validate-event": !1,
334
+ "aria-label": Y(t)("el.pagination.page"),
335
+ type: "number",
336
+ "onUpdate:modelValue": u,
337
+ onChange: d
338
+ }, null, 8, [
339
+ "size",
340
+ "class",
341
+ "max",
342
+ "disabled",
343
+ "model-value",
344
+ "aria-label"
345
+ ]),
346
+ R("span", { class: W([Y(n).e("classifier")]) }, J(Y(t)("el.pagination.pageClassifier")), 3)
347
+ ], 10, mt));
348
+ }
349
+ }), gt = s({ total: {
350
+ type: Number,
351
+ default: 1e3
352
+ } }), _t = ["disabled"], vt = /* @__PURE__ */ V({
353
+ name: "ElPaginationTotal",
354
+ __name: "total",
355
+ props: gt,
356
+ setup(e) {
357
+ let { t } = C(), n = c("pagination"), { disabled: r } = dt();
358
+ return (e, i) => (G(), L("span", {
359
+ class: W(Y(n).e("total")),
360
+ disabled: Y(r)
361
+ }, J(Y(t)("el.pagination.total", { total: e.total })), 11, _t));
362
+ }
363
+ }), yt = s({
364
+ currentPage: {
365
+ type: Number,
366
+ default: 1
367
+ },
368
+ pageCount: {
369
+ type: Number,
370
+ required: !0
371
+ },
372
+ pagerCount: {
373
+ type: Number,
374
+ default: 7
375
+ },
376
+ disabled: Boolean
377
+ }), bt = [
378
+ "aria-current",
379
+ "aria-label",
380
+ "tabindex"
381
+ ], xt = ["tabindex", "aria-label"], St = [
382
+ "aria-current",
383
+ "aria-label",
384
+ "tabindex"
385
+ ], Ct = ["tabindex", "aria-label"], wt = [
386
+ "aria-current",
387
+ "aria-label",
388
+ "tabindex"
389
+ ], Tt = /* @__PURE__ */ V({
390
+ name: "ElPaginationPager",
391
+ __name: "pager",
392
+ props: yt,
393
+ emits: [e],
394
+ setup(t, { emit: n }) {
395
+ let r = t, i = n, a = c("pager"), o = c("icon"), { t: s } = C(), l = q(!1), u = q(!1), d = q(!1), f = q(!1), p = q(!1), m = q(!1), h = P(() => {
396
+ let e = r.pagerCount, t = (e - 1) / 2, n = Number(r.currentPage), i = Number(r.pageCount), a = !1, o = !1;
397
+ i > e && (n > e - t && (a = !0), n < i - t && (o = !0));
398
+ let s = [];
399
+ if (a && !o) {
400
+ let t = i - (e - 2);
401
+ for (let e = t; e < i; e++) s.push(e);
402
+ } else if (!a && o) for (let t = 2; t < e; t++) s.push(t);
403
+ else if (a && o) {
404
+ let t = Math.floor(e / 2) - 1;
405
+ for (let e = n - t; e <= n + t; e++) s.push(e);
406
+ } else for (let e = 2; e < i; e++) s.push(e);
407
+ return s;
408
+ }), g = P(() => [
409
+ "more",
410
+ "btn-quickprev",
411
+ o.b(),
412
+ a.is("disabled", r.disabled)
413
+ ]), v = P(() => [
414
+ "more",
415
+ "btn-quicknext",
416
+ o.b(),
417
+ a.is("disabled", r.disabled)
418
+ ]), b = P(() => r.disabled ? -1 : 0);
419
+ X(() => [
420
+ r.pageCount,
421
+ r.pagerCount,
422
+ r.currentPage
423
+ ], ([e, t, n]) => {
424
+ let r = (t - 1) / 2, i = !1, a = !1;
425
+ e > t && (i = n > t - r, a = n < e - r), d.value && (d.value = i), f.value && (f.value = a), l.value = i, u.value = a;
426
+ }, { immediate: !0 });
427
+ function x(e = !1) {
428
+ r.disabled || (e ? d.value = !0 : f.value = !0);
429
+ }
430
+ function w(e = !1) {
431
+ e ? p.value = !0 : m.value = !0;
432
+ }
433
+ function T(t) {
434
+ let n = t.target;
435
+ if (n.tagName.toLowerCase() === "li" && Array.from(n.classList).includes("number")) {
436
+ let t = Number(n.textContent);
437
+ t !== r.currentPage && i(e, t);
438
+ } else n.tagName.toLowerCase() === "li" && Array.from(n.classList).includes("more") && E(t);
439
+ }
440
+ function E(t) {
441
+ let n = t.target;
442
+ if (n.tagName.toLowerCase() === "ul" || r.disabled) return;
443
+ let a = Number(n.textContent), o = r.pageCount, s = r.currentPage, c = r.pagerCount - 2;
444
+ n.className.includes("more") && (n.className.includes("quickprev") ? a = s - c : n.className.includes("quicknext") && (a = s + c)), Number.isNaN(+a) || (a < 1 && (a = 1), a > o && (a = o)), a !== s && i(e, a);
445
+ }
446
+ return (e, t) => (G(), L("ul", {
447
+ class: W(Y(a).b()),
448
+ onClick: E,
449
+ onKeyup: we(T, ["enter"])
450
+ }, [
451
+ e.pageCount > 0 ? (G(), L("li", {
452
+ key: 0,
453
+ class: W([[Y(a).is("active", e.currentPage === 1), Y(a).is("disabled", e.disabled)], "number"]),
454
+ "aria-current": e.currentPage === 1,
455
+ "aria-label": Y(s)("el.pagination.currentPage", { pager: 1 }),
456
+ tabindex: b.value
457
+ }, " 1 ", 10, bt)) : I("v-if", !0),
458
+ l.value ? (G(), L("li", {
459
+ key: 1,
460
+ class: W(g.value),
461
+ tabindex: b.value,
462
+ "aria-label": Y(s)("el.pagination.prevPages", { pager: e.pagerCount - 2 }),
463
+ onMouseenter: t[0] || (t[0] = (e) => x(!0)),
464
+ onMouseleave: t[1] || (t[1] = (e) => d.value = !1),
465
+ onFocus: t[2] || (t[2] = (e) => w(!0)),
466
+ onBlur: t[3] || (t[3] = (e) => p.value = !1)
467
+ }, [(d.value || p.value) && !e.disabled ? (G(), F(Y(y), { key: 0 })) : (G(), F(Y(S), { key: 1 }))], 42, xt)) : I("v-if", !0),
468
+ (G(!0), L(N, null, ye(h.value, (t) => (G(), L("li", {
469
+ key: t,
470
+ class: W([[Y(a).is("active", e.currentPage === t), Y(a).is("disabled", e.disabled)], "number"]),
471
+ "aria-current": e.currentPage === t,
472
+ "aria-label": Y(s)("el.pagination.currentPage", { pager: t }),
473
+ tabindex: b.value
474
+ }, J(t), 11, St))), 128)),
475
+ u.value ? (G(), L("li", {
476
+ key: 2,
477
+ class: W(v.value),
478
+ tabindex: b.value,
479
+ "aria-label": Y(s)("el.pagination.nextPages", { pager: e.pagerCount - 2 }),
480
+ onMouseenter: t[4] || (t[4] = (e) => x()),
481
+ onMouseleave: t[5] || (t[5] = (e) => f.value = !1),
482
+ onFocus: t[6] || (t[6] = (e) => w()),
483
+ onBlur: t[7] || (t[7] = (e) => m.value = !1)
484
+ }, [(f.value || m.value) && !e.disabled ? (G(), F(Y(_), { key: 0 })) : (G(), F(Y(S), { key: 1 }))], 42, Ct)) : I("v-if", !0),
485
+ e.pageCount > 1 ? (G(), L("li", {
486
+ key: 3,
487
+ class: W([[Y(a).is("active", e.currentPage === e.pageCount), Y(a).is("disabled", e.disabled)], "number"]),
488
+ "aria-current": e.currentPage === e.pageCount,
489
+ "aria-label": Y(s)("el.pagination.currentPage", { pager: e.pageCount }),
490
+ tabindex: b.value
491
+ }, J(e.pageCount), 11, wt)) : I("v-if", !0)
492
+ ], 34));
493
+ }
494
+ }), Q = (e) => typeof e != "number", Et = s({
495
+ pageSize: Number,
496
+ defaultPageSize: Number,
497
+ total: Number,
498
+ pageCount: Number,
499
+ pagerCount: {
500
+ type: Number,
501
+ validator: (e) => o(e) && Math.trunc(e) === e && e > 4 && e < 22 && e % 2 == 1,
502
+ default: 7
503
+ },
504
+ currentPage: Number,
505
+ defaultCurrentPage: Number,
506
+ layout: {
507
+ type: String,
508
+ default: [
509
+ "prev",
510
+ "pager",
511
+ "next",
512
+ "jumper",
513
+ "->",
514
+ "total"
515
+ ].join(", ")
516
+ },
517
+ pageSizes: {
518
+ type: u(Array),
519
+ default: () => D([
520
+ 10,
521
+ 20,
522
+ 30,
523
+ 40,
524
+ 50,
525
+ 100
526
+ ])
527
+ },
528
+ popperClass: {
529
+ type: String,
530
+ default: ""
531
+ },
532
+ popperStyle: { type: u([String, Object]) },
533
+ prevText: {
534
+ type: String,
535
+ default: ""
536
+ },
537
+ prevIcon: {
538
+ type: E,
539
+ default: () => b
540
+ },
541
+ nextText: {
542
+ type: String,
543
+ default: ""
544
+ },
545
+ nextIcon: {
546
+ type: E,
547
+ default: () => v
548
+ },
549
+ teleported: {
550
+ type: Boolean,
551
+ default: !0
552
+ },
553
+ small: Boolean,
554
+ size: r,
555
+ background: Boolean,
556
+ disabled: Boolean,
557
+ hideOnSinglePage: Boolean,
558
+ appendSizeTo: String
559
+ }), Dt = {
560
+ "update:current-page": (e) => o(e),
561
+ "update:page-size": (e) => o(e),
562
+ "size-change": (e) => o(e),
563
+ change: (e, t) => o(e) && o(t),
564
+ "current-change": (e) => o(e),
565
+ "prev-click": (e) => o(e),
566
+ "next-click": (e) => o(e)
567
+ }, Ot = "ElPagination", kt = l(V({
568
+ name: Ot,
569
+ props: Et,
570
+ emits: Dt,
571
+ setup(t, { emit: r, slots: a }) {
572
+ let { t: o } = C(), s = c("pagination"), l = H().vnode.props || {}, u = n(), d = P(() => t.small ? "small" : t.size ?? u.value);
573
+ h({
574
+ from: "small",
575
+ replacement: "size",
576
+ version: "3.0.0",
577
+ scope: "el-pagination",
578
+ ref: "https://element-plus.org/zh-CN/component/pagination.html"
579
+ }, P(() => !!t.small));
580
+ let f = "onUpdate:currentPage" in l || "onUpdate:current-page" in l || "onCurrentChange" in l, p = "onUpdate:pageSize" in l || "onUpdate:page-size" in l || "onSizeChange" in l, m = P(() => {
581
+ if (Q(t.total) && Q(t.pageCount) || !Q(t.currentPage) && !f) return !1;
582
+ if (t.layout.includes("sizes")) {
583
+ if (!Q(t.pageCount)) {
584
+ if (!p) return !1;
585
+ } else if (!Q(t.total) && !Q(t.pageSize) && !p) return !1;
586
+ }
587
+ return !0;
588
+ }), g = q(Q(t.defaultPageSize) ? 10 : t.defaultPageSize), _ = q(Q(t.defaultCurrentPage) ? 1 : t.defaultCurrentPage), v = P({
589
+ get() {
590
+ return Q(t.pageSize) ? g.value : t.pageSize;
591
+ },
592
+ set(e) {
593
+ Q(t.pageSize) && (g.value = e), p && (r("update:page-size", e), r("size-change", e));
594
+ }
595
+ }), y = P(() => {
596
+ let e = 0;
597
+ return Q(t.pageCount) ? Q(t.total) || (e = Math.max(1, Math.ceil(t.total / v.value))) : e = t.pageCount, e;
598
+ }), b = P({
599
+ get() {
600
+ return Q(t.currentPage) ? _.value : t.currentPage;
601
+ },
602
+ set(e) {
603
+ let n = e;
604
+ e < 1 ? n = 1 : e > y.value && (n = y.value), Q(t.currentPage) && (_.value = n), f && (r("update:current-page", n), r("current-change", n));
605
+ }
606
+ });
607
+ X(y, (e) => {
608
+ b.value > e && (b.value = e);
609
+ }), X([b, v], (t) => {
610
+ r(e, ...t);
611
+ }, { flush: "post" });
612
+ function x(e) {
613
+ b.value = e;
614
+ }
615
+ function S(e) {
616
+ v.value = e;
617
+ let t = y.value;
618
+ b.value > t && (b.value = t);
619
+ }
620
+ function w() {
621
+ t.disabled || (--b.value, r("prev-click", b.value));
622
+ }
623
+ function T() {
624
+ t.disabled || (b.value += 1, r("next-click", b.value));
625
+ }
626
+ function E(e, t) {
627
+ e && (e.props || (e.props = {}), e.props.class = [e.props.class, t].join(" "));
628
+ }
629
+ return ve(tt, {
630
+ pageCount: y,
631
+ disabled: P(() => t.disabled),
632
+ currentPage: b,
633
+ changeEvent: x,
634
+ handleSizeChange: S
635
+ }), () => {
636
+ var e;
637
+ if (!m.value) return i(Ot, o("el.pagination.deprecationWarning")), null;
638
+ if (!t.layout || t.hideOnSinglePage && y.value <= 1) return null;
639
+ let n = [], r = [], c = U("div", { class: s.e("rightwrapper") }, r), l = {
640
+ prev: U(ot, {
641
+ disabled: t.disabled,
642
+ currentPage: b.value,
643
+ prevText: t.prevText,
644
+ prevIcon: t.prevIcon,
645
+ onClick: w
646
+ }),
647
+ jumper: U(ht, { size: d.value }),
648
+ pager: U(Tt, {
649
+ currentPage: b.value,
650
+ pageCount: y.value,
651
+ pagerCount: t.pagerCount,
652
+ onChange: x,
653
+ disabled: t.disabled
654
+ }),
655
+ next: U(ut, {
656
+ disabled: t.disabled,
657
+ currentPage: b.value,
658
+ pageCount: y.value,
659
+ nextText: t.nextText,
660
+ nextIcon: t.nextIcon,
661
+ onClick: T
662
+ }),
663
+ sizes: U(ft, {
664
+ pageSize: v.value,
665
+ pageSizes: t.pageSizes,
666
+ popperClass: t.popperClass,
667
+ popperStyle: t.popperStyle,
668
+ disabled: t.disabled,
669
+ teleported: t.teleported,
670
+ size: d.value,
671
+ appendSizeTo: t.appendSizeTo
672
+ }),
673
+ slot: (a == null || (e = a.default) == null ? void 0 : e.call(a)) ?? null,
674
+ total: U(vt, { total: Q(t.total) ? 0 : t.total })
675
+ }, u = t.layout.split(",").map((e) => e.trim()), f = !1;
676
+ return u.forEach((e) => {
677
+ if (e === "->") {
678
+ f = !0;
679
+ return;
680
+ }
681
+ f ? r.push(l[e]) : n.push(l[e]);
682
+ }), E(n[0], s.is("first")), E(n[n.length - 1], s.is("last")), f && r.length > 0 && (E(r[0], s.is("first")), E(r[r.length - 1], s.is("last")), n.push(c)), U("div", { class: [
683
+ s.b(),
684
+ s.is("background", t.background),
685
+ s.m(d.value)
686
+ ] }, n);
687
+ };
688
+ }
689
+ })), At = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
690
+ __name: "TableColumnSettingPanel",
691
+ props: /* @__PURE__ */ pe({ columns: {
692
+ type: Array,
693
+ default: () => []
694
+ } }, {
695
+ modelValue: {
696
+ type: Boolean,
697
+ default: !1
698
+ },
699
+ modelModifiers: {}
700
+ }),
701
+ emits: ["update:modelValue"],
702
+ setup(e, { expose: t }) {
703
+ let n = Se(e, "modelValue"), r = K({}), i = K({}), a = K({}), o = K({}), s = (e, t, n) => {
704
+ n === "hide" ? r[t.prop] = e : n === "fixed" ? i[t.prop] = e : n === "filterable" ? a[t.prop] = e : n === "sortable" && (o[t.prop] = e);
705
+ };
706
+ return t({
707
+ hideProps: r,
708
+ fixedProps: i,
709
+ filterableProps: a,
710
+ sortableProps: o
711
+ }), (t, r) => {
712
+ let i = d, a = k, o = f, c = A;
713
+ return G(), F(c, {
714
+ modelValue: n.value,
715
+ "onUpdate:modelValue": r[0] || (r[0] = (e) => n.value = e),
716
+ class: "table-column-filter",
717
+ title: "表格设置",
718
+ "append-to-body": ""
719
+ }, {
720
+ default: Z(() => [B(o, {
721
+ data: e.columns,
722
+ border: ""
723
+ }, {
724
+ default: Z(() => [
725
+ B(i, { label: "列名" }, {
726
+ default: Z(({ row: e }) => [z(J(e.label), 1)]),
727
+ _: 1
728
+ }),
729
+ B(i, {
730
+ label: "隐藏",
731
+ align: "center"
732
+ }, {
733
+ default: Z(({ row: e }) => [B(a, { onChange: (t) => s(t, e, "hide") }, null, 8, ["onChange"])]),
734
+ _: 1
735
+ }),
736
+ B(i, {
737
+ label: "冻结",
738
+ align: "center"
739
+ }, {
740
+ default: Z(({ row: e }) => [B(a, { onChange: (t) => s(t, e, "fixed") }, null, 8, ["onChange"])]),
741
+ _: 1
742
+ }),
743
+ B(i, {
744
+ label: "过滤",
745
+ align: "center"
746
+ }, {
747
+ default: Z(({ row: e }) => [B(a, { onChange: (t) => s(t, e, "filterable") }, null, 8, ["onChange"])]),
748
+ _: 1
749
+ }),
750
+ B(i, {
751
+ label: "排序",
752
+ align: "center"
753
+ }, {
754
+ default: Z(({ row: e }) => [B(a, {
755
+ title: e.allowSort ? null : "该列不支持排序!",
756
+ disabled: !e.allowSort,
757
+ onChange: (t) => s(t, e, "sortable")
758
+ }, null, 8, [
759
+ "title",
760
+ "disabled",
761
+ "onChange"
762
+ ])]),
763
+ _: 1
764
+ })
765
+ ]),
766
+ _: 1
767
+ }, 8, ["data"])]),
768
+ _: 1
769
+ }, 8, ["modelValue"]);
770
+ };
771
+ }
772
+ });
773
+ //#endregion
774
+ //#region src/components/table/components/TableColumnFilterable.vue?vue&type=script&lang.jsx
775
+ function jt(e) {
776
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !fe(e);
777
+ }
778
+ //#endregion
779
+ //#region src/components/table/components/TableColumnFilterable.vue
780
+ var Mt = {
781
+ name: "TableColumnFilterable",
782
+ props: { ...j },
783
+ setup(e, { slots: t }) {
784
+ let n = de(se, null), r = O(e, (e) => e !== "filterMethod" && e !== "filters"), i = P(() => {
785
+ if (e.filterable && n) return (e, t, n) => t[n.property] === e;
786
+ }), a = P(() => {
787
+ if (e.filterable && n) return [...new Set(n.records.value.map((t) => t[e.prop]).filter((e) => e))].map((e) => ({
788
+ text: e,
789
+ value: e
790
+ }));
791
+ });
792
+ return () => B(M, me(r.value, {
793
+ filterMethod: i.value,
794
+ filters: a.value
795
+ }), jt(t) ? t : { default: () => [t] });
796
+ }
797
+ }, Nt = {
798
+ data: {
799
+ type: Array,
800
+ default: () => []
801
+ },
802
+ height: [String, Number],
803
+ maxHeight: [String, Number],
804
+ stripe: {
805
+ type: Boolean,
806
+ default: !1
807
+ },
808
+ border: {
809
+ type: Boolean,
810
+ default: !0
811
+ },
812
+ size: String,
813
+ fit: {
814
+ type: Boolean,
815
+ default: !0
816
+ },
817
+ showHeader: {
818
+ type: Boolean,
819
+ default: !0
820
+ },
821
+ highlightCurrentRow: {
822
+ type: Boolean,
823
+ default: !1
824
+ },
825
+ currentRowKey: [String, Number],
826
+ rowClassName: [Function, String],
827
+ rowStyle: [Function, Object],
828
+ cellClassName: [Function, String],
829
+ cellStyle: [Function, Object],
830
+ headerRowClassName: [Function, String],
831
+ headerRowStyle: [Function, Object],
832
+ headerCellClassName: [Function, String],
833
+ headerCellStyle: [Function, Object],
834
+ rowKey: {
835
+ type: [Function, String],
836
+ default: "id"
837
+ },
838
+ emptyText: {
839
+ type: String,
840
+ default: "No Data"
841
+ },
842
+ defaultExpandAll: {
843
+ type: Boolean,
844
+ default: !1
845
+ },
846
+ expandRowKeys: {
847
+ type: Array,
848
+ default: () => []
849
+ },
850
+ defaultSort: Object,
851
+ tooltipEffect: {
852
+ type: String,
853
+ default: "dark"
854
+ },
855
+ tooltipOptions: {
856
+ type: Object,
857
+ default: () => ({})
858
+ },
859
+ appendFilterPanelTo: String,
860
+ showSummary: {
861
+ type: Boolean,
862
+ default: !1
863
+ },
864
+ sumText: {
865
+ type: String,
866
+ default: "Sum"
867
+ },
868
+ summaryMethod: Function,
869
+ spanMethod: Function,
870
+ selectOnIndeterminate: {
871
+ type: Boolean,
872
+ default: !0
873
+ },
874
+ indent: {
875
+ type: Number,
876
+ default: 16
877
+ },
878
+ lazy: {
879
+ type: Boolean,
880
+ default: !1
881
+ },
882
+ load: Function,
883
+ treeProps: {
884
+ type: Object,
885
+ default: () => ({})
886
+ },
887
+ tableLayout: {
888
+ type: String,
889
+ default: "fixed"
890
+ },
891
+ scrollbarAlwaysOn: {
892
+ type: Boolean,
893
+ default: !1
894
+ },
895
+ showOverflowTooltip: [Boolean, Object],
896
+ flexible: {
897
+ type: Boolean,
898
+ default: !1
899
+ },
900
+ scrollbarTabindex: [String, Number],
901
+ allowDragLastColumn: {
902
+ type: Boolean,
903
+ default: !0
904
+ },
905
+ tooltipFormatter: Function,
906
+ preserveExpandedContent: {
907
+ type: Boolean,
908
+ default: !1
909
+ },
910
+ nativeScrollbar: {
911
+ type: Boolean,
912
+ default: !1
913
+ },
914
+ rowExpandable: Function,
915
+ selectionWidth: {
916
+ type: String,
917
+ default: "45"
918
+ },
919
+ viewId: String,
920
+ url: String,
921
+ hideOnSinglePage: Boolean,
922
+ api: Function,
923
+ model: Object,
924
+ ascs: {
925
+ type: Array,
926
+ default: () => []
927
+ },
928
+ descs: {
929
+ type: Array,
930
+ default: () => []
931
+ },
932
+ headerBold: Boolean,
933
+ autoHeight: Boolean,
934
+ immediate: {
935
+ type: Boolean,
936
+ default: !0
937
+ },
938
+ index: {
939
+ type: Boolean,
940
+ default: !0
941
+ },
942
+ multiple: {
943
+ type: Boolean,
944
+ default: !0
945
+ },
946
+ selection: {
947
+ type: Boolean,
948
+ default: !0
949
+ },
950
+ reloadOnModelChange: {
951
+ type: Boolean,
952
+ default: !1
953
+ },
954
+ columns: Array,
955
+ pageSize: {
956
+ type: Number,
957
+ default: 25
958
+ },
959
+ dicOptions: {
960
+ type: Array,
961
+ default: () => []
962
+ },
963
+ paging: {
964
+ type: Boolean,
965
+ default: !0
966
+ },
967
+ clickRowSelect: Boolean,
968
+ payloadStyle: String,
969
+ disabledRowKeys: Array,
970
+ selectExport: Boolean,
971
+ useVisibilityChange: Boolean,
972
+ rowDbClick: Function
973
+ }, Pt = {
974
+ data: !0,
975
+ rowDbClick: !0,
976
+ selectionWidth: !0,
977
+ hideOnSinglePage: !0,
978
+ ascs: !0,
979
+ descs: !0,
980
+ headerBold: !0,
981
+ autoHeight: !0,
982
+ immediate: !0,
983
+ index: !0,
984
+ multiple: !0,
985
+ selection: !0,
986
+ reloadOnModelChange: !0,
987
+ pageSize: !0,
988
+ dicOptions: !0,
989
+ paging: !0,
990
+ clickRowSelect: !0,
991
+ selectExport: !0,
992
+ useVisibilityChange: !0,
993
+ viewId: !0,
994
+ url: !0,
995
+ api: !0,
996
+ model: !0,
997
+ columns: !0,
998
+ payloadStyle: !0,
999
+ disabledRowKeys: !0
1000
+ }, Ft = (e) => Pt[e] !== !0;
1001
+ //#endregion
1002
+ //#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
1003
+ function It(e) {
1004
+ let t = "";
1005
+ for (let n in e) t += `<TableColumnDef prop="${n}" label="${n}"/>\n`;
1006
+ return t;
1007
+ }
1008
+ var $ = {
1009
+ loading: 1,
1010
+ error: -1,
1011
+ empty: 2,
1012
+ success: 0
1013
+ }, Lt = {
1014
+ name: "PageableTable",
1015
+ emits: { "page-loaded": null },
1016
+ inheritAttrs: !1,
1017
+ props: { ...Nt },
1018
+ setup(e, { emit: t, attrs: n, slots: r, expose: i }) {
1019
+ ve(oe, e.rowDbClick);
1020
+ let a = Ce("table"), o = Ce("settingPanel"), s = q($.empty), c = q([]), l = q(null), u = q(!1), p = q([]), m = q({
1021
+ total: 0,
1022
+ page: 1,
1023
+ limit: e.pageSize,
1024
+ ascs: e.ascs,
1025
+ descs: e.descs
1026
+ }), h = q(0), g = q(0), _ = P(() => e.reloadOnModelChange ? {
1027
+ asc: m.value.ascs,
1028
+ desc: m.value.descs,
1029
+ page: m.value.page,
1030
+ limit: m.value.limit,
1031
+ model: e.model
1032
+ } : {
1033
+ asc: m.value.ascs,
1034
+ desc: m.value.descs,
1035
+ page: m.value.page,
1036
+ limit: m.value.limit
1037
+ }), v = P(() => {
1038
+ var e;
1039
+ let t = `${(m.value.page - 1) * m.value.limit + (((e = c.value) == null ? void 0 : e.length) ?? 0)}`;
1040
+ return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
1041
+ }), y = () => {
1042
+ x();
1043
+ }, b = (t, n, r) => {
1044
+ if (e.clickRowSelect && H(t)) {
1045
+ var i;
1046
+ if (p.value.find((n) => n[e.rowKey] === t[e.rowKey])) {
1047
+ var o;
1048
+ (o = a.value) == null || o.toggleRowSelection(t, !1);
1049
+ return;
1050
+ }
1051
+ (i = a.value) == null || i.toggleRowSelection(t);
1052
+ }
1053
+ }, x = () => {
1054
+ var e, t;
1055
+ let n = (e = a.value) == null || (e = e.$children) == null ? void 0 : e.find((e) => {
1056
+ var t;
1057
+ return ((t = e.$options) == null ? void 0 : t.name) === "ElTableBody";
1058
+ });
1059
+ n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
1060
+ }, S = ({ scrollLeft: e, scrollTop: t }) => {
1061
+ h.value = t, g.value = e;
1062
+ }, C = () => {
1063
+ I(h.value, g.value);
1064
+ }, w = (e) => ne(It(e)), T = ({ prop: t, order: n }) => {
1065
+ e.payloadStyle === "body" ? (m.value.ascs = n === "ascending" ? [t] : e.ascs, m.value.descs = n === "descending" ? [t] : e.descs) : (m.value.ascs = n === "ascending" ? t : "", m.value.descs = n === "descending" ? t : "");
1066
+ }, E = (e) => {
1067
+ H(e) && (l.value = e);
1068
+ }, D = (e) => {
1069
+ p.value = e;
1070
+ }, O = () => {
1071
+ var e;
1072
+ (e = a.value) == null || e.clearSelection();
1073
+ }, k = () => {
1074
+ let t;
1075
+ return t = e.payloadStyle === "body" ? {
1076
+ page: {
1077
+ ...m.value,
1078
+ current: m.value.page,
1079
+ size: m.value.limit
1080
+ },
1081
+ example: e.model || {}
1082
+ } : {
1083
+ ...m.value,
1084
+ current: m.value.page,
1085
+ size: m.value.limit,
1086
+ ...e.model || {}
1087
+ }, e.selectExport && (e.rowKey ? t.exportKeys = p.value.map((t) => t[e.rowKey]) : t.exportKeys = p.value.map((e) => c.value.indexOf(e))), t;
1088
+ }, A = async (n = !0) => {
1089
+ if (!e.api && e.data !== !1) {
1090
+ var r;
1091
+ c.value = e.data, m.value.page = 1, m.value.total = (r = c.value) == null ? void 0 : r.length, m.value.limit = m.value.total < 1 ? e.pageSize : m.value.total;
1092
+ return;
1093
+ }
1094
+ n !== !1 && (c.value = []);
1095
+ let i, a = k();
1096
+ if (e.api) {
1097
+ n !== !1 && (s.value = $.loading);
1098
+ try {
1099
+ e.api && (i = await e.api(a));
1100
+ } catch {
1101
+ s.value = $.error;
1102
+ return;
1103
+ }
1104
+ } else if (e.data) i = { data: { data: {
1105
+ total: e.data.length,
1106
+ records: e.data
1107
+ } } };
1108
+ else {
1109
+ ee.warning({
1110
+ title: "开发提示!",
1111
+ message: "PageableTable api(Function) 属性"
1112
+ });
1113
+ return;
1114
+ }
1115
+ let { data: { data: o } = {} } = i || {}, { total: l, records: u } = o || {};
1116
+ m.value.total = Number(l), c.value = await R(u), !u || !u.length ? s.value = $.empty : s.value = $.success, j(), t("page-loaded", o);
1117
+ }, j = () => {
1118
+ he(() => {
1119
+ var e;
1120
+ (e = a.value) == null || e.doLayout();
1121
+ });
1122
+ }, M = async (e) => {
1123
+ await A(e);
1124
+ }, F = () => {
1125
+ m.value = {
1126
+ total: 0,
1127
+ page: 1,
1128
+ limit: e.pageSize,
1129
+ ascs: e.ascs,
1130
+ descs: e.descs
1131
+ };
1132
+ }, I = (e, t) => {
1133
+ a.value.setScrollTop(e), a.value.setScrollLeft(t);
1134
+ }, L = (e, t) => {
1135
+ var n;
1136
+ (n = a.value) == null || n.toggleRowSelection(e, t);
1137
+ }, R = async (t) => {
1138
+ if (!t) return [];
1139
+ let n = [...t];
1140
+ for (let t of n) for (let n of e.dicOptions) if (t[`$${n.prop}`] = t[n.prop], n.dicData) {
1141
+ var r;
1142
+ t[n.prop] = ((r = n.dicData.find((e) => e.modelValue === t[n.prop])) == null ? void 0 : r.label) || t[n.prop];
1143
+ } else t[n.prop] = await le(n.dicType, t[n.prop]);
1144
+ return n;
1145
+ }, V = () => {
1146
+ u.value = !u.value;
1147
+ }, H = (t) => {
1148
+ var n;
1149
+ return !(t != null && t.disabled) && !((n = e.disabledRowKeys) != null && n.includes(t == null ? void 0 : t[e.rowKey]));
1150
+ };
1151
+ e.useVisibilityChange && ue({ onPageVisible: () => {
1152
+ M(!1);
1153
+ } }), Ee("reloadTableView", (t) => {
1154
+ t === e.viewId && A();
1155
+ }), X(() => e.url, F), X(() => e.api, F), X(() => e.data, A), X(() => _.value, A, {
1156
+ deep: !0,
1157
+ immediate: e.immediate
1158
+ });
1159
+ let U = P(() => {
1160
+ let t = [];
1161
+ if (r.default) {
1162
+ var n;
1163
+ let e = re((n = r.default) == null ? void 0 : n.call(r));
1164
+ for (let n = 0; n < e.length; n++) {
1165
+ let { props: r, children: i } = e[n];
1166
+ if (!r) continue;
1167
+ let { sortable: a, prop: o, fixed: s, ...c } = r, l = {
1168
+ ...c,
1169
+ prop: o,
1170
+ allowSort: a !== !1
1171
+ };
1172
+ i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), t.push(l);
1173
+ }
1174
+ } else if (e.columns) for (let n = 0; n < e.columns.length; n++) {
1175
+ let { prop: r, sortable: i, fixed: a, ...s } = e.columns[n], c = {
1176
+ ...s,
1177
+ prop: r,
1178
+ allowSort: i !== !1
1179
+ };
1180
+ o.value && (c.hide = o.value.hideProps[r], c.filterable = o.value.filterableProps[r], c.sortable = o.value.sortableProps[r] === !0, c.fixed = a || o.value.fixedProps[r]), t.push(c);
1181
+ }
1182
+ return t;
1183
+ });
1184
+ _e(() => {
1185
+ C();
1186
+ }), i({
1187
+ records: c,
1188
+ getPage: A,
1189
+ refresh: M,
1190
+ reload: F,
1191
+ doLayout: j,
1192
+ clearSelection: O,
1193
+ toggleRowSelection: L,
1194
+ toggleSettings: V,
1195
+ currentRow: l,
1196
+ getPageQuery: k,
1197
+ tableColumns: U
1198
+ }), ve(se, {
1199
+ records: c,
1200
+ getPage: A,
1201
+ refresh: M,
1202
+ reload: F,
1203
+ doLayout: j,
1204
+ clearSelection: O,
1205
+ toggleRowSelection: L,
1206
+ toggleSettings: V
1207
+ });
1208
+ let { autoBindProps: de, listeners: fe } = te(e, { predicate: Ft });
1209
+ return () => {
1210
+ var t;
1211
+ let i = l.value && l.value[n["row-key"] || e.rowKey || "id"] === (l.value && e.rowKey ? l.value[e.rowKey] : (t = l.value) == null ? void 0 : t.id);
1212
+ return B("div", {
1213
+ class: [
1214
+ "pageable-table",
1215
+ { "auto-height": e.autoHeight },
1216
+ n.class
1217
+ ],
1218
+ style: n.style
1219
+ }, [B("div", { class: "pageable-table-wrapper" }, [
1220
+ r.toolbar && r.toolbar({ selectedRows: p.value }),
1221
+ B(f, me(fe.value, de.value, {
1222
+ ref: "table",
1223
+ data: c.value,
1224
+ class: ["flex-item", { "header-bold": e.headerBold }],
1225
+ border: e.border,
1226
+ stripe: !0,
1227
+ size: "default",
1228
+ height: e.autoHeight ? null : "auto",
1229
+ onScroll: S,
1230
+ onSortChange: T,
1231
+ onRowDblclick: y,
1232
+ onRowClick: b,
1233
+ onCellClick: x,
1234
+ onCurrentChange: E,
1235
+ onSelectionChange: D
1236
+ }), {
1237
+ default: () => {
1238
+ let t = [];
1239
+ if (e.multiple && e.selection && t.push(B(d, {
1240
+ key: "selection",
1241
+ type: "selection",
1242
+ selectable: H,
1243
+ width: e.selectionWidth,
1244
+ align: "center"
1245
+ }, null)), !e.multiple && e.selection && t.push(B(d, {
1246
+ key: "single-selection",
1247
+ type: "single-selection",
1248
+ "class-name": "single-select-column",
1249
+ width: e.selectionWidth,
1250
+ align: "center"
1251
+ }, {
1252
+ header: () => B(ie, {
1253
+ modelValue: !!l.value,
1254
+ label: !0
1255
+ }, { default: () => [B("span", null, null)] }),
1256
+ default: ({ row: e }) => B(ie, {
1257
+ label: !0,
1258
+ disabled: !H(e),
1259
+ modelValue: i
1260
+ }, { default: () => [B("span", null, null)] })
1261
+ })), e.index && t.push(B(d, {
1262
+ key: "index",
1263
+ type: "index",
1264
+ label: "序号",
1265
+ width: v.value,
1266
+ align: "center"
1267
+ }, { default: ({ $index: e }) => (m.value.page - 1) * m.value.limit + e + 1 || e + 1 })), U.value.length > 0) for (let e = 0; e < U.value.length; e++) {
1268
+ let n = U.value[e];
1269
+ if (n.hide) continue;
1270
+ let { prop: i, headerSlot: a, defaultSlot: o, expandSlot: s, iconSlot: c, ...l } = n;
1271
+ t.push(B(Mt, me(l, { prop: i }), {
1272
+ default: r[i] ? ({ row: e }) => r[i]({ row: e }) : o,
1273
+ header: a,
1274
+ expand: s,
1275
+ "filter-icon": c
1276
+ }));
1277
+ }
1278
+ else t.push(B(d, {
1279
+ key: "default",
1280
+ label: "点击表格行复制模板"
1281
+ }, { default: ({ row: e }) => B("pre", {
1282
+ class: "pointer",
1283
+ onClick: () => w(e)
1284
+ }, [JSON.stringify(e, null, " ")]) }));
1285
+ return t;
1286
+ },
1287
+ empty: () => r.empty ? r.empty() : B(N, null, [
1288
+ s.value === $.loading && B("span", { class: "pageable-table-loading" }, [B("i", { class: "table-status-icon el-icon-loading" }, null), z("加载中...")]),
1289
+ s.value === $.error && B(ce, {
1290
+ class: "pageable-table-error",
1291
+ onClick: M
1292
+ }, { default: () => [B("i", { class: "table-status-icon el-icon-error" }, null), z("加载失败,点击重试!")] }),
1293
+ s.value !== $.loading && s.value !== $.error && B(et, null, null)
1294
+ ]),
1295
+ append: r.append
1296
+ }),
1297
+ e.paging && B(kt, {
1298
+ "current-page": m.value.page,
1299
+ "onUpdate:current-page": (e) => m.value.page = e,
1300
+ "hide-on-single-page": e.hideOnSinglePage,
1301
+ "page-size": m.value.limit,
1302
+ "onUpdate:page-size": (e) => m.value.limit = e,
1303
+ total: m.value.total,
1304
+ "page-sizes": [
1305
+ 10,
1306
+ 25,
1307
+ 50,
1308
+ 100,
1309
+ 500,
1310
+ 1e3,
1311
+ 2e3
1312
+ ],
1313
+ class: "flex-not-shrink",
1314
+ background: !0,
1315
+ layout: "total, sizes, prev, pager, next, jumper"
1316
+ }, null),
1317
+ B(At, {
1318
+ ref: "settingPanel",
1319
+ modelValue: u.value,
1320
+ "onUpdate:modelValue": (e) => u.value = e,
1321
+ columns: U.value
1322
+ }, null)
1323
+ ]), B(ae, { onNotify: j }, null)]);
1324
+ };
1325
+ }
1326
+ };
1327
+ //#endregion
1328
+ export { Lt as t };