@web-utils/form-ui 1.0.0-beta7 → 1.0.0-beta70

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 (458) hide show
  1. package/address-input/index.mjs +2 -0
  2. package/address-input/style.css +1 -0
  3. package/affix/index.mjs +49 -0
  4. package/affix/style.css +1 -0
  5. package/api/index.d.ts +66 -0
  6. package/api/index.mjs +42 -0
  7. package/awesome-button/index.mjs +49 -0
  8. package/base.css +1 -1
  9. package/capsule-tab/index.mjs +27 -0
  10. package/capsule-tab/style.css +1 -0
  11. package/card/index.mjs +89 -0
  12. package/card/style.css +1 -0
  13. package/chunks/3gUkQF12.mjs +207 -0
  14. package/chunks/49634Q2N2.mjs +936 -0
  15. package/chunks/5itVLmv82.mjs +108 -0
  16. package/chunks/6kdakei5.mjs +644 -0
  17. package/chunks/77cFhiAz.mjs +13 -0
  18. package/chunks/7Cv9Cq-02.mjs +1354 -0
  19. package/chunks/7JVbVOff2.mjs +46 -0
  20. package/chunks/9rQitPz7.mjs +590 -0
  21. package/chunks/B1ATN2my.mjs +26 -0
  22. package/chunks/B1GA44yT2.mjs +42 -0
  23. package/chunks/B31ub5xS.mjs +46 -0
  24. package/chunks/B3d4fdGH.mjs +17 -0
  25. package/chunks/B5voIv4_.mjs +194 -0
  26. package/chunks/B7O8aGqC2.mjs +58 -0
  27. package/chunks/B8wGY5Hs2.mjs +26 -0
  28. package/chunks/BBPczt0U.mjs +4 -0
  29. package/chunks/BBqq6o072.mjs +243 -0
  30. package/chunks/BCVhSMZN.mjs +1328 -0
  31. package/chunks/BDVLN2ly.mjs +105 -0
  32. package/chunks/BEysX5TF2.mjs +1038 -0
  33. package/chunks/BI-ZFlSw2.mjs +26 -0
  34. package/chunks/BIj6pa8Z.mjs +15 -0
  35. package/chunks/BJby9uHB2.mjs +233 -0
  36. package/chunks/BMTtnkb7.mjs +60 -0
  37. package/chunks/BPpMbPS8.mjs +63 -0
  38. package/chunks/BQNqBw8h2.mjs +27 -0
  39. package/chunks/BUAQybGW.mjs +230 -0
  40. package/chunks/BVIHqL6g.mjs +17 -0
  41. package/chunks/BVSQ6DfJ.mjs +17 -0
  42. package/chunks/BVuwiZGi.mjs +37 -0
  43. package/chunks/B__5L22p2.mjs +346 -0
  44. package/chunks/BaLjN8Ow.mjs +197 -0
  45. package/chunks/Baam4z-g.mjs +275 -0
  46. package/chunks/Bdeug17L.mjs +42 -0
  47. package/chunks/BeWNlclr.mjs +295 -0
  48. package/chunks/BecO0t0_2.mjs +2430 -0
  49. package/chunks/BffxPn8a.mjs +34 -0
  50. package/chunks/Bgw_3soo.mjs +35 -0
  51. package/chunks/BjCfQFUL.mjs +54 -0
  52. package/chunks/BjWs-r2V.mjs +25 -0
  53. package/chunks/BkEMJ725.mjs +214 -0
  54. package/chunks/BlB1fEo92.mjs +8 -0
  55. package/chunks/BoId6V9J.mjs +17 -0
  56. package/chunks/BrYtAPbN2.mjs +161 -0
  57. package/chunks/BsKwchVA.mjs +14 -0
  58. package/chunks/BsM0L7CS.mjs +132 -0
  59. package/chunks/BvbjlaN02.mjs +514 -0
  60. package/chunks/BvcK4D8A2.mjs +1800 -0
  61. package/chunks/BwYEpK-u.mjs +8 -0
  62. package/chunks/C1RsHtGI.mjs +40 -0
  63. package/chunks/C5f3Xfsc2.mjs +36 -0
  64. package/chunks/C7l9aZGE.mjs +577 -0
  65. package/chunks/CDqVJ7U3.mjs +449 -0
  66. package/chunks/CFvkR9Ze2.mjs +31 -0
  67. package/chunks/CGM03LI5.mjs +588 -0
  68. package/chunks/CIybFvu92.mjs +30 -0
  69. package/chunks/CPejK_GQ2.mjs +383 -0
  70. package/chunks/CQSTyCVP.mjs +6 -0
  71. package/chunks/CQxz8uUc.mjs +454 -0
  72. package/chunks/CR29QUwT2.mjs +28 -0
  73. package/chunks/CWvo-ucD.mjs +446 -0
  74. package/chunks/C_eGir-J.mjs +17 -0
  75. package/chunks/CaRunrOV2.mjs +5289 -0
  76. package/chunks/Calzy0Az.mjs +1275 -0
  77. package/chunks/CbbjpJFg2.mjs +26 -0
  78. package/chunks/CbgD7y-5.mjs +5 -0
  79. package/chunks/CbsGuLZz2.mjs +105 -0
  80. package/chunks/CcT5SsZk.mjs +48 -0
  81. package/chunks/CdBytH8S.mjs +266 -0
  82. package/chunks/Ch_zaHx9.mjs +89 -0
  83. package/chunks/CiFlMt6Z.mjs +41 -0
  84. package/chunks/CjjJimnU.mjs +20 -0
  85. package/chunks/Cjkq49252.mjs +60 -0
  86. package/chunks/CjmfMN1X2.mjs +34 -0
  87. package/chunks/CnCSm3LY2.mjs +4 -0
  88. package/chunks/CsLrkldT2.mjs +225 -0
  89. package/chunks/Csiz_xCa2.mjs +273 -0
  90. package/chunks/Ctd3_wOH2.mjs +6 -0
  91. package/chunks/Cu2A_1vk2.mjs +106 -0
  92. package/chunks/CuoF9V8s.mjs +3091 -0
  93. package/chunks/CwBq1JZV.mjs +250 -0
  94. package/chunks/CwWfRmD3.mjs +57 -0
  95. package/chunks/CwqeV7002.mjs +67 -0
  96. package/chunks/Cy8jqgun2.mjs +41 -0
  97. package/chunks/D-hj62se2.mjs +525 -0
  98. package/chunks/D3Xixh5v.mjs +5 -0
  99. package/chunks/D4oNQiIK.mjs +461 -0
  100. package/chunks/D6vTCC1Z2.mjs +110 -0
  101. package/chunks/D8r81QxD.mjs +732 -0
  102. package/chunks/D9qn1x3X2.mjs +87 -0
  103. package/chunks/DL0o_C092.mjs +1093 -0
  104. package/chunks/DLgn1tQG2.mjs +60 -0
  105. package/chunks/DNSPORak.mjs +479 -0
  106. package/chunks/DStwh2ne.mjs +281 -0
  107. package/chunks/DTUh8o0p2.mjs +145 -0
  108. package/chunks/DXiLi19u2.mjs +33 -0
  109. package/chunks/DZ0frL1U.mjs +69 -0
  110. package/chunks/D_qwjNah.mjs +1094 -0
  111. package/chunks/DbtlO6wD.mjs +52 -0
  112. package/chunks/DfJJr053.mjs +217 -0
  113. package/chunks/Dg9Q-Tbi2.mjs +299 -0
  114. package/chunks/DhQF2ZlD.mjs +182 -0
  115. package/chunks/Dls3rTka2.mjs +24 -0
  116. package/chunks/DnBzQ-xh.mjs +4 -0
  117. package/chunks/DoNfjRR1.mjs +68 -0
  118. package/chunks/DoOkwYtO.mjs +609 -0
  119. package/chunks/DrKq_frR.mjs +98 -0
  120. package/chunks/DsYXqJLZ.mjs +641 -0
  121. package/chunks/DsZznbt2.mjs +208 -0
  122. package/chunks/Dsd58O0g.mjs +25 -0
  123. package/chunks/Dtq1xYk8.mjs +47 -0
  124. package/chunks/DxL9oojv2.mjs +418 -0
  125. package/chunks/EA6hte7s2.mjs +49 -0
  126. package/chunks/FeuisuNY2.mjs +88 -0
  127. package/chunks/GEtlriHC.mjs +188 -0
  128. package/chunks/GsvG1yFW.mjs +1919 -0
  129. package/chunks/KGmxNbpi.mjs +21 -0
  130. package/chunks/Q2Mal3Qn2.mjs +439 -0
  131. package/chunks/T_jwNKBr.mjs +379 -0
  132. package/chunks/TtxSplBB.mjs +195 -0
  133. package/chunks/Wl17p0C82.mjs +94 -0
  134. package/chunks/Z0BPDZlb.mjs +66 -0
  135. package/chunks/akEzJ4kG.mjs +18 -0
  136. package/chunks/cMuWbLPt.mjs +196 -0
  137. package/chunks/e70aZf3z.mjs +64 -0
  138. package/chunks/gh52LMTG.mjs +12 -0
  139. package/chunks/h-Uhst9y.mjs +98 -0
  140. package/chunks/hgAOQY9a.mjs +406 -0
  141. package/chunks/lGc5ksPb.mjs +279 -0
  142. package/chunks/mD3gmiOy2.mjs +96 -0
  143. package/chunks/nLBvkerV2.mjs +621 -0
  144. package/chunks/pZQfJv282.mjs +4 -0
  145. package/chunks/qrHhuZXg.mjs +465 -0
  146. package/chunks/uqKZ4RIo.mjs +222 -0
  147. package/code-mirror-editor/index.mjs +99 -0
  148. package/code-mirror-editor/style.css +1 -0
  149. package/confirm-button/index.mjs +35 -0
  150. package/confirmable/index.mjs +8 -0
  151. package/constants/index.d.ts +73 -0
  152. package/constants/index.mjs +4 -0
  153. package/context-menu/index.mjs +196 -0
  154. package/context-menu/style.css +1 -0
  155. package/count-up/index.mjs +94 -0
  156. package/custom-scrollbar/index.mjs +93 -0
  157. package/data-box/index.mjs +68 -0
  158. package/data-box/style.css +1 -0
  159. package/data-card/index.mjs +63 -0
  160. package/data-card/style.css +1 -0
  161. package/data-card-text/index.mjs +67 -0
  162. package/data-card-text/style.css +1 -0
  163. package/data-display/index.mjs +73 -0
  164. package/data-display/style.css +1 -0
  165. package/data-icons/index.mjs +74 -0
  166. package/data-icons/style.css +1 -0
  167. package/data-imgtext/index.mjs +71 -0
  168. package/data-imgtext/style.css +1 -0
  169. package/data-operatext/index.mjs +54 -0
  170. package/data-operatext/style.css +1 -0
  171. package/data-panel/index.mjs +61 -0
  172. package/data-panel/style.css +1 -0
  173. package/data-pay/index.mjs +110 -0
  174. package/data-pay/style.css +1 -0
  175. package/data-price/index.mjs +51 -0
  176. package/data-price/style.css +1 -0
  177. package/data-progress/index.mjs +72 -0
  178. package/data-progress/style.css +1 -0
  179. package/data-rotate/index.mjs +65 -0
  180. package/data-rotate/style.css +1 -0
  181. package/data-table-picker/index.mjs +118 -0
  182. package/data-tabs/index.mjs +71 -0
  183. package/data-tabs/style.css +1 -0
  184. package/dict-render/index.mjs +2 -0
  185. package/e-charts/index.mjs +179 -0
  186. package/e-charts/style.css +1 -0
  187. package/easy-popup/index.mjs +92 -0
  188. package/easy-popup/style.css +1 -0
  189. package/editable-progress/index.mjs +120 -0
  190. package/editable-progress/style.css +1 -0
  191. package/editable-tree/index.mjs +2 -0
  192. package/editable-tree/style.css +1 -0
  193. package/element-dialog/index.mjs +2 -91
  194. package/element-dialog/style.css +1 -1
  195. package/element-listeners/style.css +1 -0
  196. package/element-multi-instance/style.css +1 -0
  197. package/element-resize-observer/index.mjs +40 -0
  198. package/element-resize-observer/style.css +1 -0
  199. package/empty-view/index.mjs +1 -1
  200. package/error-view/index.mjs +37 -0
  201. package/error-view/style.css +1 -0
  202. package/flex-box/index.mjs +2 -0
  203. package/flex-column/index.mjs +2 -0
  204. package/flex-item/index.mjs +2 -0
  205. package/flex-row/index.mjs +2 -0
  206. package/flex-scroll-area/index.mjs +1 -1
  207. package/flex-scroller/index.mjs +29 -0
  208. package/flex-scroller/style.css +1 -0
  209. package/flow-designer/index.mjs +2 -0
  210. package/flow-designer/style.css +1 -0
  211. package/flow-viewer/index.mjs +159 -0
  212. package/flow-viewer/style.css +1 -0
  213. package/form-advice/index.mjs +13 -12
  214. package/form-button/index.mjs +36 -0
  215. package/form-card/index.mjs +18 -0
  216. package/form-cascader/index.mjs +2 -0
  217. package/form-checkbox/index.mjs +1 -1
  218. package/form-checkbox-group/index.mjs +2 -0
  219. package/form-checkbox-group/style.css +1 -0
  220. package/form-date-picker/index.mjs +1 -1
  221. package/form-holder/index.mjs +1 -1
  222. package/form-holder/style.css +1 -1
  223. package/form-image/index.mjs +1 -1
  224. package/form-input/index.mjs +1 -1
  225. package/form-input/style.css +1 -0
  226. package/form-input-cron-expression/index.mjs +2 -0
  227. package/form-input-cron-expression/style.css +1 -0
  228. package/form-input-email/index.mjs +1 -1
  229. package/form-input-id-card/index.mjs +1 -1
  230. package/form-input-number/index.mjs +1 -1
  231. package/form-input-phone-number/index.mjs +1 -1
  232. package/form-input-tag/index.mjs +1 -3
  233. package/form-input-time/index.mjs +1 -3
  234. package/form-item-config-provider/index.mjs +24 -0
  235. package/form-item-group/index.mjs +2 -78
  236. package/form-item-group/style.css +1 -1
  237. package/form-item-x/index.mjs +1 -1
  238. package/form-item-x/style.css +1 -0
  239. package/form-radio-group/index.mjs +1 -1
  240. package/form-rate/index.mjs +1 -1
  241. package/form-red-table/index.mjs +27 -26
  242. package/form-row/index.mjs +1 -1
  243. package/form-select/index.mjs +1 -1
  244. package/form-slider/index.mjs +1 -1
  245. package/form-switch/index.mjs +1 -1
  246. package/form-table/index.mjs +2 -0
  247. package/form-table-plus/index.mjs +2 -0
  248. package/form-text/index.mjs +1 -1
  249. package/form-textarea/index.mjs +2 -0
  250. package/form-time-select/index.mjs +2 -0
  251. package/form-tree-select/index.mjs +2 -0
  252. package/form-tree-select/style.css +1 -0
  253. package/form-tree-select-multiple/index.mjs +2 -0
  254. package/form-view/index.mjs +280 -6
  255. package/form-view/style.css +1 -0
  256. package/guide-steps/index.mjs +2 -0
  257. package/guide-steps/style.css +1 -0
  258. package/helper/dictionary.d.ts +29 -0
  259. package/helper/dictionary.mjs +97 -0
  260. package/helper/form-item.d.ts +17 -0
  261. package/helper/form-item.mjs +27 -0
  262. package/helper/input.d.ts +47 -0
  263. package/helper/input.mjs +2 -0
  264. package/helper/sub-table-plus.d.ts +98 -0
  265. package/helper/sub-table-plus.mjs +4 -0
  266. package/highlight-j-s/index.mjs +51 -0
  267. package/highlight-j-s/style.css +1 -0
  268. package/hook/useDictionary.d.ts +60 -0
  269. package/hook/useDictionary.mjs +15 -0
  270. package/hook/useVisibilityChange.d.ts +4 -0
  271. package/hook/useVisibilityChange.mjs +14 -0
  272. package/iframe-window/index.mjs +37 -0
  273. package/iframe-window/style.css +1 -0
  274. package/image-cropper/index.mjs +155 -0
  275. package/image-cropper/style.css +1 -0
  276. package/image-preview/index.mjs +2 -0
  277. package/image-preview/style.css +1 -0
  278. package/image-viewer/index.mjs +70 -0
  279. package/image-viewer/style.css +1 -0
  280. package/index.css +2 -0
  281. package/index.d.ts +91 -6
  282. package/index.mjs +123 -61
  283. package/input-number-range/index.mjs +76 -0
  284. package/input-number-range/style.css +1 -0
  285. package/keyboard/index.mjs +2 -0
  286. package/keyboard/style.css +1 -0
  287. package/loading-view/index.mjs +39 -0
  288. package/loading-view/style.css +1 -0
  289. package/name-avatar/index.mjs +61 -0
  290. package/name-avatar/style.css +1 -0
  291. package/nav-bar/index.mjs +36 -0
  292. package/nav-bar/style.css +1 -0
  293. package/package.json +28 -17
  294. package/page/index.mjs +17 -0
  295. package/page/style.css +1 -0
  296. package/page-header/index.mjs +25 -0
  297. package/page-header/style.css +1 -0
  298. package/page-index/index.mjs +123 -0
  299. package/page-index/style.css +1 -0
  300. package/page-index-top/index.mjs +85 -0
  301. package/page-skeleton/index.mjs +44 -0
  302. package/page-skeleton/style.css +1 -0
  303. package/page-skeleton-new/index.mjs +80 -0
  304. package/page-skeleton-new/style.css +1 -0
  305. package/pageable-table/index.mjs +2 -0
  306. package/pageable-table/style.css +1 -0
  307. package/photo-swipe/index.mjs +2 -0
  308. package/props/cascader.d.ts +326 -0
  309. package/props/cascader.mjs +145 -0
  310. package/props/checkbox-group.d.ts +213 -0
  311. package/props/checkbox-group.mjs +83 -0
  312. package/props/checkbox.d.ts +205 -0
  313. package/props/checkbox.mjs +74 -0
  314. package/props/col.d.ts +74 -0
  315. package/props/col.mjs +32 -0
  316. package/props/common.d.ts +114 -0
  317. package/props/common.mjs +18 -0
  318. package/props/date.d.ts +339 -0
  319. package/props/date.mjs +145 -0
  320. package/props/form-item.d.ts +144 -0
  321. package/props/form-item.mjs +73 -0
  322. package/props/form.d.ts +157 -0
  323. package/props/form.mjs +89 -0
  324. package/props/image.d.ts +102 -0
  325. package/props/image.mjs +10 -0
  326. package/props/input-cron.d.ts +102 -0
  327. package/props/input-cron.mjs +16 -0
  328. package/props/input-number.d.ts +216 -0
  329. package/props/input-number.mjs +72 -0
  330. package/props/input-tag.d.ts +123 -0
  331. package/props/input-tag.mjs +33 -0
  332. package/props/input.d.ts +299 -0
  333. package/props/input.mjs +97 -0
  334. package/props/radio-group.d.ts +205 -0
  335. package/props/radio-group.mjs +84 -0
  336. package/props/rate.d.ts +211 -0
  337. package/props/rate.mjs +66 -0
  338. package/props/select.d.ts +450 -0
  339. package/props/select.mjs +218 -0
  340. package/props/slide.d.ts +235 -0
  341. package/props/slide.mjs +72 -0
  342. package/props/switch.d.ts +229 -0
  343. package/props/switch.mjs +80 -0
  344. package/props/text.d.ts +127 -0
  345. package/props/text.mjs +22 -0
  346. package/props/textarea.d.ts +266 -0
  347. package/props/textarea.mjs +82 -0
  348. package/props/time-select.d.ts +216 -0
  349. package/props/time-select.mjs +67 -0
  350. package/props/time.d.ts +304 -0
  351. package/props/time.mjs +138 -0
  352. package/props/tree-select-multiple.d.ts +324 -0
  353. package/props/tree-select-multiple.mjs +16 -0
  354. package/props/tree-select.d.ts +326 -0
  355. package/props/tree-select.mjs +25 -0
  356. package/props/tree.d.ts +76 -0
  357. package/props/tree.mjs +75 -0
  358. package/props/vue-tree-select.d.ts +458 -0
  359. package/props/vue-tree-select.mjs +213 -0
  360. package/resolver/index.mjs +29 -0
  361. package/sign-panel/index.mjs +183 -0
  362. package/sign-panel/style.css +1 -0
  363. package/skeleton-panel/index.mjs +37 -0
  364. package/skeleton-panel/style.css +1 -0
  365. package/split-pane/index.mjs +2 -0
  366. package/split-pane/style.css +1 -0
  367. package/stateful/index.mjs +67 -0
  368. package/stateful/style.css +1 -0
  369. package/sub-table/index.mjs +2 -0
  370. package/sub-table/style.css +1 -0
  371. package/sub-table-plus/index.mjs +2 -0
  372. package/sub-table-plus/style.css +1 -0
  373. package/swiper/index.mjs +126 -0
  374. package/swiper/style.css +1 -0
  375. package/table-column/index.mjs +2 -0
  376. package/table-column/style.css +1 -0
  377. package/table-column-def/index.mjs +11 -0
  378. package/table-view/index.mjs +468 -6
  379. package/table-view/style.css +1 -0
  380. package/tag-render/index.mjs +86 -0
  381. package/tag-render/style.css +1 -0
  382. package/text-ellipsis/index.mjs +124 -0
  383. package/text-ellipsis/style.css +1 -0
  384. package/toolbar/index.mjs +1 -8
  385. package/toolbar/style.css +1 -0
  386. package/toolbar-button/index.mjs +1 -8
  387. package/toolbar-button/style.css +1 -0
  388. package/vue-cron/index.mjs +2 -0
  389. package/vue-cron/style.css +1 -0
  390. package/vue-qr-code/index.mjs +32 -0
  391. package/vue-tags-input/index.mjs +350 -0
  392. package/vue-tags-input/style.css +1 -0
  393. package/vue-tree-select/index.mjs +2 -0
  394. package/vue-tree-select/style.css +1 -0
  395. package/vue-video-player/index.mjs +136 -0
  396. package/vue-video-player/style.css +1 -0
  397. package/watermark/index.mjs +2 -0
  398. package/watermark/style.css +1 -0
  399. package/web-types.json +1 -1
  400. package/x-input-tag/index.mjs +232 -0
  401. package/x-input-tag/style.css +1 -0
  402. package/year-calendar/index.mjs +2 -0
  403. package/year-calendar/style.css +1 -0
  404. package/chunks/B4M_TFeR.mjs +0 -152
  405. package/chunks/B5BIQCcK.mjs +0 -149
  406. package/chunks/BHNKrW1j.mjs +0 -61
  407. package/chunks/BO9jWhBl.mjs +0 -46
  408. package/chunks/BZ8aOa78.mjs +0 -35
  409. package/chunks/Bsz7y4Xp.mjs +0 -73
  410. package/chunks/Bxj372sF.mjs +0 -53
  411. package/chunks/C33EmJN8.mjs +0 -32
  412. package/chunks/C6Li3-l7.mjs +0 -28
  413. package/chunks/CBcdalMX.mjs +0 -35
  414. package/chunks/CdRsyF0n.mjs +0 -43
  415. package/chunks/ClNahmiU.mjs +0 -23
  416. package/chunks/CstztYMu.mjs +0 -28
  417. package/chunks/DC9b53M6.mjs +0 -32
  418. package/chunks/DDVAgRED.mjs +0 -36
  419. package/chunks/DpJQABVD.mjs +0 -91
  420. package/chunks/ZsLNWI9x.mjs +0 -46
  421. package/chunks/jn_iQrVZ.mjs +0 -28
  422. package/constants.d.ts +0 -1
  423. package/constants.mjs +0 -4
  424. package/element-dialog/index.d.ts +0 -53
  425. package/empty-view/index.d.ts +0 -29
  426. package/flex-scroll-area/index.d.ts +0 -22
  427. package/form-advice/index.d.ts +0 -9
  428. package/form-cell/index.d.ts +0 -25
  429. package/form-check-box-group/index.d.ts +0 -93
  430. package/form-check-box-group/index.mjs +0 -2
  431. package/form-checkbox/index.d.ts +0 -81
  432. package/form-date-picker/index.d.ts +0 -104
  433. package/form-holder/index.d.ts +0 -95
  434. package/form-image/index.d.ts +0 -82
  435. package/form-input/index.d.ts +0 -91
  436. package/form-input-email/index.d.ts +0 -79
  437. package/form-input-id-card/index.d.ts +0 -79
  438. package/form-input-number/index.d.ts +0 -95
  439. package/form-input-phone-number/index.d.ts +0 -79
  440. package/form-input-tag/index.d.ts +0 -2
  441. package/form-input-time/index.d.ts +0 -2
  442. package/form-item-group/index.d.ts +0 -18
  443. package/form-item-x/index.d.ts +0 -54
  444. package/form-radio-group/index.d.ts +0 -81
  445. package/form-rate/index.d.ts +0 -79
  446. package/form-red-table/index.d.ts +0 -21
  447. package/form-row/index.d.ts +0 -11
  448. package/form-select/index.d.ts +0 -81
  449. package/form-slider/index.d.ts +0 -79
  450. package/form-switch/index.d.ts +0 -79
  451. package/form-text/index.d.ts +0 -77
  452. package/form-view/index.d.ts +0 -2
  453. package/input/style.css +0 -1
  454. package/resolver.mjs +0 -79
  455. package/table-view/index.d.ts +0 -2
  456. package/toolbar/index.d.ts +0 -2
  457. package/toolbar-button/index.d.ts +0 -2
  458. /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
@@ -0,0 +1,732 @@
1
+ import "./CjjJimnU.mjs";
2
+ import { l as e, s as t, t as n } from "./DrKq_frR.mjs";
3
+ import { t as r } from "./qrHhuZXg.mjs";
4
+ import { C as i, F as a, t as o } from "./D4oNQiIK.mjs";
5
+ import { n as s } from "./GEtlriHC.mjs";
6
+ import { n as c, r as l, t as u } from "./GsvG1yFW.mjs";
7
+ import { t as d } from "./C7l9aZGE.mjs";
8
+ import { a as f } from "./B1ATN2my.mjs";
9
+ import { m as p, t as m } from "./D-hj62se2.mjs";
10
+ import { r as h, t as g } from "./49634Q2N2.mjs";
11
+ import { t as _ } from "./D_qwjNah.mjs";
12
+ import { t as v } from "./BwYEpK-u.mjs";
13
+ import { t as y } from "./DhQF2ZlD.mjs";
14
+ import { allProps as b, predicate as x } from "../props/tree.mjs";
15
+ import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createTextVNode as O, createVNode as k, defineComponent as ee, mergeProps as A, normalizeClass as j, normalizeStyle as M, openBlock as N, ref as P, renderSlot as F, resolveDynamicComponent as I, toDisplayString as L, toHandlers as R, unref as z, vShow as B, withCtx as V, withDirectives as H, withModifiers as U } from "vue";
16
+ import { computePosition as W, delay as te, fastClone as ne, findTreeChildren as re, isFunction as G, isNotEmpty as K, isPlainObject as q, isUndefined as J, isVerticalScrollbarVisible as Y, patch as X, scrollbarWidth as ie } from "@web-utils/core";
17
+ import { cloneDeep as Z } from "@web-utils/integrations/lodash";
18
+ import { addResizeListener as Q, removeResizeListener as $ } from "@web-utils/integrations/resize";
19
+ //#endregion
20
+ //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/popconfirm/index.mjs
21
+ var ae = n(/* @__PURE__ */ ee({
22
+ name: "ElPopconfirm",
23
+ __name: "popconfirm",
24
+ props: e({
25
+ title: String,
26
+ confirmButtonText: String,
27
+ cancelButtonText: String,
28
+ confirmButtonType: {
29
+ type: String,
30
+ values: h,
31
+ default: "primary"
32
+ },
33
+ cancelButtonType: {
34
+ type: String,
35
+ values: h,
36
+ default: "text"
37
+ },
38
+ icon: {
39
+ type: f,
40
+ default: () => i
41
+ },
42
+ iconColor: {
43
+ type: String,
44
+ default: "#f90"
45
+ },
46
+ hideIcon: Boolean,
47
+ hideAfter: {
48
+ type: Number,
49
+ default: 200
50
+ },
51
+ effect: {
52
+ ...l.effect,
53
+ default: "light"
54
+ },
55
+ teleported: l.teleported,
56
+ persistent: l.persistent,
57
+ width: {
58
+ type: [String, Number],
59
+ default: 150
60
+ },
61
+ virtualTriggering: c.virtualTriggering,
62
+ virtualRef: c.virtualRef
63
+ }),
64
+ emits: {
65
+ confirm: (e) => e instanceof MouseEvent,
66
+ cancel: (e) => e instanceof MouseEvent
67
+ },
68
+ setup(e, { expose: n, emit: r }) {
69
+ let i = e, c = r, { t: l } = s(), d = t("popconfirm"), f = P(), p = P(), m = C(() => {
70
+ var e;
71
+ return (e = z(f)) == null ? void 0 : e.popperRef;
72
+ }), h = () => {
73
+ var e, t;
74
+ (e = p.value) == null || (t = e.focus) == null || t.call(e);
75
+ }, _ = () => {
76
+ var e, t;
77
+ (e = f.value) == null || (t = e.onClose) == null || t.call(e);
78
+ }, v = C(() => ({ width: a(i.width) })), y = (e) => {
79
+ c("confirm", e), _();
80
+ }, b = (e) => {
81
+ c("cancel", e), _();
82
+ }, x = C(() => i.confirmButtonText || l("el.popconfirm.confirmButtonText")), S = C(() => i.cancelButtonText || l("el.popconfirm.cancelButtonText"));
83
+ return n({
84
+ popperRef: m,
85
+ hide: _
86
+ }), (t, n) => (N(), w(z(u), A({
87
+ ref_key: "tooltipRef",
88
+ ref: f,
89
+ trigger: "click",
90
+ effect: e.effect
91
+ }, t.$attrs, {
92
+ "virtual-triggering": e.virtualTriggering,
93
+ "virtual-ref": e.virtualRef,
94
+ "popper-class": `${z(d).namespace.value}-popover`,
95
+ "popper-style": v.value,
96
+ teleported: e.teleported,
97
+ "fallback-placements": [
98
+ "bottom",
99
+ "top",
100
+ "right",
101
+ "left"
102
+ ],
103
+ "hide-after": e.hideAfter,
104
+ persistent: e.persistent,
105
+ loop: "",
106
+ onShow: h
107
+ }), {
108
+ content: V(() => [D("div", {
109
+ ref_key: "rootRef",
110
+ ref: p,
111
+ tabindex: "-1",
112
+ class: j(z(d).b())
113
+ }, [D("div", { class: j(z(d).e("main")) }, [!e.hideIcon && e.icon ? (N(), w(z(o), {
114
+ key: 0,
115
+ class: j(z(d).e("icon")),
116
+ style: M({ color: e.iconColor })
117
+ }, {
118
+ default: V(() => [(N(), w(I(e.icon)))]),
119
+ _: 1
120
+ }, 8, ["class", "style"])) : T("v-if", !0), O(" " + L(e.title), 1)], 2), D("div", { class: j(z(d).e("action")) }, [F(t.$slots, "actions", {
121
+ confirm: y,
122
+ cancel: b
123
+ }, () => [k(z(g), {
124
+ size: "small",
125
+ type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
126
+ text: e.cancelButtonType === "text",
127
+ onClick: b
128
+ }, {
129
+ default: V(() => [O(L(S.value), 1)]),
130
+ _: 1
131
+ }, 8, ["type", "text"]), k(z(g), {
132
+ size: "small",
133
+ type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
134
+ text: e.confirmButtonType === "text",
135
+ onClick: y
136
+ }, {
137
+ default: V(() => [O(L(x.value), 1)]),
138
+ _: 1
139
+ }, 8, ["type", "text"])])], 2)], 2)]),
140
+ default: V(() => [t.$slots.reference ? F(t.$slots, "reference", { key: 0 }) : T("v-if", !0)]),
141
+ _: 3
142
+ }, 16, [
143
+ "effect",
144
+ "virtual-triggering",
145
+ "virtual-ref",
146
+ "popper-class",
147
+ "popper-style",
148
+ "teleported",
149
+ "hide-after",
150
+ "persistent"
151
+ ]));
152
+ }
153
+ })), oe = {
154
+ name: "EditableTree",
155
+ props: { ...b },
156
+ emits: {
157
+ "remove-new-node": null,
158
+ "node-loaded": null,
159
+ "root-node-loaded": null,
160
+ "node-deleted": null,
161
+ "node-updated": null,
162
+ "node-added": null,
163
+ "on-node-click": null,
164
+ "add-root-node": null,
165
+ "create-new-node": null
166
+ },
167
+ data() {
168
+ return {
169
+ loading: !1,
170
+ showMenu: !1,
171
+ empty: !0,
172
+ expandedKeys: this.lazy ? [] : this.defaultExpandedKeys,
173
+ treeData: [],
174
+ curNode: {},
175
+ curData: {},
176
+ position: {},
177
+ text: "",
178
+ right: 4,
179
+ treeKey: Date.now()
180
+ };
181
+ },
182
+ computed: {
183
+ defaultOptions() {
184
+ return {
185
+ confirmButtonText: "确定",
186
+ cancelButtonText: "取消",
187
+ closeOnClickModal: !1,
188
+ modal: !0,
189
+ inputErrorMessage: `${this.label}名不能为空!`,
190
+ inputPlaceholder: `请输入${this.label}名...`,
191
+ inputValidator: (e) => e != null && e.trim().length > 0
192
+ };
193
+ },
194
+ innerTreeData() {
195
+ var e;
196
+ return (e = this.$attrs.data) != null && e.length ? this.$attrs.data : this.treeData;
197
+ }
198
+ },
199
+ watch: { defaultExpandedKeys: {
200
+ immediate: !0,
201
+ handler(e) {
202
+ this.expandedKeys = [...e];
203
+ }
204
+ } },
205
+ setup(e) {
206
+ let { autoBindProps: t, listeners: n } = p(e, {
207
+ predicate: x,
208
+ removeOn: !0
209
+ });
210
+ return {
211
+ autoBindProps: t,
212
+ listeners: n
213
+ };
214
+ },
215
+ created() {
216
+ this.tryFetch();
217
+ },
218
+ mounted() {
219
+ Q(this.$refs.tree.$el, this.resize), Q(this.$refs.treeWrapper, this.resize);
220
+ },
221
+ beforeUnmount() {
222
+ $(this.$refs.tree.$el, this.resize), $(this.$refs.treeWrapper, this.resize);
223
+ },
224
+ methods: {
225
+ addExpandKey(e) {
226
+ this.reserveExpandKey && this.expandedKeys.push(e[this.nodeKey]);
227
+ },
228
+ removeExpandKey(e) {
229
+ this.reserveExpandKey && (this.expandedKeys = this.expandedKeys.filter((t) => t !== e[this.nodeKey]));
230
+ },
231
+ resize() {
232
+ Y(this.$refs.treeWrapper) ? this.right = 4 + ie : this.right = 4;
233
+ },
234
+ async showContextMenu(e, t, n) {
235
+ t.contextmenu === !1 || t.id === -1 || t.id === 0 || t.edit === !0 || this.readonly || this.contextMenu && (this.curNode = n, this.curData = t, this.showMenu = !0, this.$refs.tree.setCurrentKey(t.id), await this.$nextTick(), this.position = W(e, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
236
+ },
237
+ hideContextMenu() {
238
+ this.showMenu = !1, window.removeEventListener("click", this.hideContextMenu);
239
+ },
240
+ async tryFetch() {
241
+ if (this.lazy === !1 && this.fetchApi) {
242
+ var e;
243
+ let r;
244
+ try {
245
+ var t;
246
+ r = await this.fetchApi(((t = this.rootNode) == null ? void 0 : t.id) ?? -1, {});
247
+ } catch {
248
+ return;
249
+ }
250
+ let i = r.data.data;
251
+ q(i) && (i = [i]), i = i || [];
252
+ let a = [];
253
+ if (this.empty = i.length === 0, q(this.customRootNode)) {
254
+ let e = Z(this.customRootNode);
255
+ e[this.treeProps.children || "children"] = i, a = [e];
256
+ } else if (G(this.customRootNode)) {
257
+ let e = this.customRootNode(i);
258
+ e[this.treeProps.children || "children"] = i, a = q(e) ? [e] : e;
259
+ } else a = i;
260
+ if ((e = this.defaultExpandedKeys) != null && e.length) this.expandedKeys = [...this.defaultExpandedKeys];
261
+ else if (this.expandFirstNode) {
262
+ var n;
263
+ this.expandedKeys = [(n = a[0]) == null ? void 0 : n.id];
264
+ }
265
+ this.treeData = a, await this.$nextTick(), this.$emit("node-loaded", a);
266
+ }
267
+ },
268
+ async loadNode(e, t) {
269
+ if (e.level === 0) {
270
+ var n, r;
271
+ let o = (await this.fetchApi(((n = this.rootNode) == null ? void 0 : n.id) ?? -1, e)).data.data;
272
+ if (this.empty = o.length === 0, q(this.customRootNode)) {
273
+ let e = Z(this.customRootNode);
274
+ e[this.treeProps.children || "children"] = o, o = [e], t(o);
275
+ } else if (G(this.customRootNode)) {
276
+ let e = this.customRootNode(o);
277
+ e[this.treeProps.children || "children"] = o, o = q(e) ? [e] : e;
278
+ } else t(o);
279
+ if (await this.$nextTick(), this.$emit("root-node-loaded", o), (r = this.defaultExpandedKeys) != null && r.length) {
280
+ var i;
281
+ this.expandedKeys = [(i = o[0]) == null ? void 0 : i.id, ...this.defaultExpandedKeys];
282
+ } else if (this.expandFirstNode) {
283
+ var a;
284
+ this.expandedKeys = [(a = o[0]) == null ? void 0 : a.id];
285
+ }
286
+ } else {
287
+ if (e.leaf || e.data.isTempNode) return t([]);
288
+ let n = (await this.fetchApi(e.data.id, e)).data.data;
289
+ t(n), await this.$nextTick(), this.$emit("node-loaded", n);
290
+ }
291
+ },
292
+ clear() {
293
+ this.cancelEdit(), this.removeNewNode();
294
+ },
295
+ clearChecked() {
296
+ this.$refs.tree.setCheckedKeys([]);
297
+ },
298
+ removeNewNode() {
299
+ this.newChild && this.newChild.id === -1 && (this.$refs.tree.remove(this.newChild), this.$emit("remove-new-node"));
300
+ },
301
+ cancelEdit() {
302
+ this.editData && (J(this.editData.edit) ? this.editData.edit = !0 : this.editData.edit = !1);
303
+ },
304
+ async editNode(e, t) {
305
+ !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = t, this.text = t[this.treeProps.label], J(t.edit), t.edit = !0, await this.$nextTick(), this.$refs.labelTxt.focus()) : await r.prompt(`请输入新的${this.label}名:`, {
306
+ ...this.defaultOptions,
307
+ inputValue: t[this.treeProps.label],
308
+ beforeClose: async (e, t, n) => {
309
+ if (e === "confirm") {
310
+ try {
311
+ t.confirmButtonLoading = !0, t.confirmButtonText = "处理中...", this.text = t.inputValue, await this.onConfirm(this.curNode, this.curData), n();
312
+ } catch {
313
+ t.confirmButtonText = "确定";
314
+ }
315
+ t.confirmButtonLoading = !1;
316
+ } else n();
317
+ }
318
+ }).catch((e) => e);
319
+ },
320
+ async appendRootNode() {
321
+ this.text = "", !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(void 0), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.scrollIntoView(!0)) : await r.prompt(`请输入${this.label}名:`, {
322
+ ...this.defaultOptions,
323
+ beforeClose: async (e, t, n) => {
324
+ if (e === "confirm") {
325
+ try {
326
+ this.createNewChild(-1), t.confirmButtonLoading = !0, t.confirmButtonText = "处理中...";
327
+ let e = await this.saveApi(this.newNodeBuilder(t.inputValue, { id: -1 }));
328
+ this.newChild[this.treeProps.label] = t.inputValue, this.newChild.edit = !1, m(this.newChild, e.data), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.locateView(), n();
329
+ } catch {
330
+ t.confirmButtonText = "确定";
331
+ }
332
+ t.confirmButtonLoading = !1;
333
+ } else n();
334
+ }
335
+ }).catch((e) => e);
336
+ },
337
+ appendChildNode(e) {
338
+ this.text = "";
339
+ let t = e.expanded;
340
+ e.expand(async () => {
341
+ !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(e.data.id), this.$refs.tree.append(this.newChild, e), await this.scrollIntoView(t)) : await r.prompt(`请输入${this.label}名:`, {
342
+ ...this.defaultOptions,
343
+ beforeClose: async (t, n, r) => {
344
+ if (t === "confirm") {
345
+ try {
346
+ this.createNewChild(e.data.id), n.confirmButtonLoading = !0, n.confirmButtonText = "处理中...";
347
+ let t = await this.saveApi(this.newNodeBuilder(n.inputValue, e.data));
348
+ this.newChild[this.treeProps.label] = n.inputValue, this.newChild.edit = !1, m(this.newChild, t.data), this.$refs.tree.append(this.newChild, e), await this.locateView(), r();
349
+ } catch {
350
+ n.confirmButtonText = "确定";
351
+ }
352
+ n.confirmButtonLoading = !1;
353
+ } else r();
354
+ }
355
+ });
356
+ });
357
+ },
358
+ appendChildNodeWithData(e, t, n) {
359
+ this.text = "";
360
+ let r = e.expanded;
361
+ e.expand(async () => {
362
+ this.clear(), this.newChild = {
363
+ id: -1,
364
+ parentId: t,
365
+ [this.treeProps.label]: n,
366
+ edit: !1,
367
+ isTempNode: !0,
368
+ hasChildren: !1
369
+ }, this.$refs.tree.append(this.newChild, e), await this.scrollIntoView(r);
370
+ });
371
+ },
372
+ appendPeerNode(e) {
373
+ e.parent && e.parent.level !== 0 ? this.appendChildNode(e.parent) : this.appendRootNode();
374
+ },
375
+ async addRootNode(e) {
376
+ this.$refs.tree.remove(e), await this.$nextTick(), this.$refs.tree.root.insertChild({ data: e }, void 0, !0);
377
+ },
378
+ async addChildNode(e) {
379
+ this.curNode && this.curNode.level !== 0 ? this.curNode.expand(async () => {
380
+ this.$refs.tree.remove(e), await this.$nextTick(), this.$refs.tree.append(e, this.curNode);
381
+ }) : await this.addRootNode(e);
382
+ },
383
+ async addPeerNode(e) {
384
+ this.curNode && this.curNode.parent && this.curNode.parent.level !== 0 ? this.curNode.parent.expand(async () => {
385
+ this.$refs.tree.remove(e), await this.$nextTick(), this.$refs.tree.append(e, this.curNode.parent);
386
+ }) : await this.addRootNode(e);
387
+ },
388
+ updateNode(e) {
389
+ let t = this.$refs.tree.getNode(e);
390
+ t && X(t.data, e, !0);
391
+ },
392
+ setCurrentKey(e) {
393
+ var t;
394
+ (t = this.$refs.tree) == null || t.setCurrentKey(e);
395
+ },
396
+ createNewChild(e) {
397
+ this.newChild = {
398
+ id: -1,
399
+ parentId: e,
400
+ [this.treeProps.label]: "",
401
+ edit: !0,
402
+ isTempNode: !0,
403
+ hasChildren: !1
404
+ }, this.$emit("create-new-node", this.newChild);
405
+ },
406
+ async removeNodeModal(e) {
407
+ await this.$confirm(`你确定要删除${this.label}[<span class="break-word" style="color: orange">${e.data[this.treeProps.label]}</span>]吗?`, "系统提示", {
408
+ type: "warning",
409
+ modal: !0,
410
+ dangerouslyUseHTMLString: !0,
411
+ iconClass: "el-icon-question",
412
+ closeOnClickModal: !1,
413
+ confirmButtonClass: "el-button--danger",
414
+ cancelButtonClass: "el-button--primary is-plain",
415
+ beforeClose: async (t, n, r) => {
416
+ if (t === "confirm") {
417
+ try {
418
+ n.confirmButtonLoading = !0, n.confirmButtonText = "删除...";
419
+ let t = e.parent, i = await this.deleteApi(e.data.id);
420
+ i.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(e), this.$emit("node-deleted", t, e.data), r()) : this.$message.error(i.message);
421
+ } catch {}
422
+ n.confirmButtonText = "确定", n.confirmButtonLoading = !1;
423
+ } else r();
424
+ }
425
+ }).catch((e) => e);
426
+ },
427
+ async removeNode(e) {
428
+ try {
429
+ let t = e.parent;
430
+ if (this.deleteApi) {
431
+ let n = await this.deleteApi(e.data.id);
432
+ n.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(e), this.$emit("node-deleted", t, e.data)) : this.$message.error(n.message);
433
+ } else this.$refs.tree.remove(e);
434
+ } catch {}
435
+ },
436
+ async onConfirm(e, t) {
437
+ if (t[this.treeProps.label] === this.text || !K(this.text)) {
438
+ this.clear();
439
+ return;
440
+ }
441
+ J(t.loading), t.loading = !0;
442
+ try {
443
+ if (this.loading = !0, t.id === -1) {
444
+ let n = await this.saveApi(this.newNodeBuilder(this.text, e.parent.data || { id: -1 })), r = ne(t);
445
+ m(t, {
446
+ ...n.data,
447
+ isTempNode: !1
448
+ }), this.$emit("node-added", t, r, e), this.registerNode(e);
449
+ } else await this.updateApi({
450
+ ...t,
451
+ [this.treeProps.label]: this.text
452
+ });
453
+ t[this.treeProps.label] = this.text, t.edit = !1, this.$emit("node-updated", t, e), this.text = "";
454
+ } catch {}
455
+ t.loading = !1, this.loading = !1;
456
+ },
457
+ onCancel(e, t) {
458
+ t.id === -1 ? this.$refs.tree.remove(e) : t.edit = !1, this.text = "";
459
+ },
460
+ nodeClick(e, t, n) {
461
+ this.hideContextMenu(), (J(e.loading) || !e.loading) && (this.curNode = t, this.curData = e, this.$emit("on-node-click", e, t, n));
462
+ },
463
+ getCurrentNode() {
464
+ return this.$refs.tree.getCurrentNode();
465
+ },
466
+ async locateView() {
467
+ await this.$nextTick();
468
+ let e = this.$el.querySelector(`[data-id="${this.newChild.id}"]`);
469
+ e && e.scrollIntoView();
470
+ },
471
+ async scrollIntoView(e) {
472
+ var t;
473
+ await this.$nextTick(), e || await te(300), (t = this.$refs) == null || (t = t.labelTxt) == null || t.focus();
474
+ },
475
+ inputKeyup(e, t, n) {
476
+ e.keyCode === 13 && this.onConfirm(t, n), e.keyCode === 27 && this.clear();
477
+ },
478
+ inputBlur(e, t, n) {
479
+ this.confirmButton || this.onConfirm(t, n);
480
+ },
481
+ getCheckedKeys() {
482
+ return this.$refs.tree.getCheckedKeys();
483
+ },
484
+ setCheckedKeys(e) {
485
+ this.$refs.tree.setCheckedKeys(e);
486
+ },
487
+ getCheckedNodes() {
488
+ return this.$refs.tree.getCheckedNodes();
489
+ },
490
+ setCheckedNodes(e) {
491
+ this.$refs.tree.setCheckedNodes(e);
492
+ },
493
+ getNode(e) {
494
+ return this.$refs.tree.getNode(e);
495
+ },
496
+ getRootNode() {
497
+ return this.$refs.tree.root;
498
+ },
499
+ findTreeNode(e) {
500
+ return re(this.$refs.tree.root.childNodes, (t) => t.data === e || t.data.id === e, "childNodes");
501
+ },
502
+ registerNode(e) {
503
+ e.store.registerNode(e), delete e.store.nodesMap[-1];
504
+ },
505
+ async reloadTree() {
506
+ this.lazy ? this.treeKey = Date.now() : await this.tryFetch();
507
+ }
508
+ }
509
+ }, se = { class: "editable-tree" }, ce = {
510
+ ref: "treeWrapper",
511
+ class: "et-tree-wrapper"
512
+ }, le = {
513
+ key: 0,
514
+ style: { "padding-left": "24px" }
515
+ }, ue = ["data-id"], de = {
516
+ class: "node-label flex-row flex-item ellipsis-1",
517
+ style: { overflow: "hidden" }
518
+ }, fe = {
519
+ class: "flex-item-relative",
520
+ style: { height: "21px" }
521
+ }, pe = ["title"], me = {
522
+ key: 0,
523
+ class: "handle-actions"
524
+ }, he = {
525
+ key: 1,
526
+ class: "handle-actions",
527
+ style: { display: "inline-block" }
528
+ }, ge = ["data-id"], _e = { class: "menu-list" };
529
+ function ve(e, t, n, r, i, a) {
530
+ let o = y, s = ae, c = d, l = _;
531
+ return N(), E("div", se, [!e.readonly && e.addRootNodeButtonStyle === "top-right" ? (N(), w(o, {
532
+ key: 0,
533
+ type: "primary",
534
+ style: M([{
535
+ position: "absolute",
536
+ top: "4px",
537
+ "z-index": "1"
538
+ }, { right: `${i.right}px` }]),
539
+ icon: "el-icon-plus",
540
+ circle: "",
541
+ plain: "",
542
+ onClick: t[0] || (t[0] = U((t) => e.$emit("add-root-node"), ["stop"]))
543
+ }, null, 8, ["style"])) : T("v-if", !0), D("div", ce, [
544
+ !e.readonly && e.addRootNodeButtonStyle === "top" ? (N(), E("div", le, [k(o, {
545
+ disabled: i.loading,
546
+ type: "text",
547
+ onClick: a.appendRootNode
548
+ }, {
549
+ default: V(() => [t[8] || (t[8] = D("i", { class: "el-icon-lx-add" }, null, -1)), O(" " + L(e.addRootNodeLabel ? e.addRootNodeLabel : `添加${e.label}`), 1)]),
550
+ _: 1
551
+ }, 8, ["disabled", "onClick"])])) : T("v-if", !0),
552
+ (N(), w(l, A(r.autoBindProps, {
553
+ key: i.treeKey,
554
+ ref: "tree",
555
+ "default-expand-all": e.defaultExpandAll,
556
+ class: "flex-item",
557
+ "default-expanded-keys": i.expandedKeys,
558
+ "expand-on-click-node": !1,
559
+ "highlight-current": "",
560
+ load: a.loadNode,
561
+ data: a.innerTreeData,
562
+ props: e.treeProps,
563
+ lazy: e.lazy,
564
+ "node-key": e.nodeKey
565
+ }, R(r.listeners), {
566
+ onNodeClick: a.nodeClick,
567
+ onNodeContextmenu: a.showContextMenu,
568
+ onNodeExpand: a.addExpandKey,
569
+ onNodeCollapse: a.removeExpandKey
570
+ }), {
571
+ default: V(({ node: n, data: r }) => [F(e.$slots, "default", {
572
+ node: n,
573
+ data: r
574
+ }, () => [T("非编辑模式"), r.edit ? (N(), E(S, { key: 1 }, [T("编辑模式"), D("span", {
575
+ "data-id": r.id,
576
+ class: "custom-tree-node flex-row flex-item",
577
+ style: { overflow: "hidden" }
578
+ }, [
579
+ e.icon ? (N(), E("i", {
580
+ key: 0,
581
+ class: j([r.loading ? "el-icon-loading" : "el-icon-edit-outline", "node-icon flex-not-shrink"])
582
+ }, null, 2)) : T("v-if", !0),
583
+ k(c, {
584
+ ref: "labelTxt",
585
+ modelValue: i.text,
586
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => i.text = e),
587
+ class: "node-input flex-item",
588
+ placeholder: a.defaultOptions.inputPlaceholder,
589
+ onKeyup: (e) => a.inputKeyup(e, n, r),
590
+ onBlur: (e) => a.inputBlur(e, n, r),
591
+ onClick: t[3] || (t[3] = U(() => {}, ["stop"]))
592
+ }, null, 8, [
593
+ "modelValue",
594
+ "placeholder",
595
+ "onKeyup",
596
+ "onBlur"
597
+ ]),
598
+ e.confirmButton ? (N(), E(S, { key: 1 }, [H(k(o, {
599
+ class: "flex-not-shrink",
600
+ type: "text",
601
+ onClick: U((e) => a.onConfirm(n, r), ["stop"])
602
+ }, {
603
+ default: V(() => [...t[13] || (t[13] = [O(" 确定 ", -1)])]),
604
+ _: 1
605
+ }, 8, ["onClick"]), [[B, !r.loading]]), H(k(o, {
606
+ class: "flex-not-shrink",
607
+ type: "text",
608
+ onClick: U((e) => a.onCancel(n, r), ["stop"])
609
+ }, {
610
+ default: V(() => [...t[14] || (t[14] = [O(" 取消 ", -1)])]),
611
+ _: 1
612
+ }, 8, ["onClick"]), [[B, !r.loading]])], 64)) : T("v-if", !0)
613
+ ], 8, ge)], 64)) : (N(), E("span", {
614
+ key: 0,
615
+ "data-id": r.id,
616
+ class: "custom-tree-node"
617
+ }, [
618
+ D("span", de, [
619
+ e.icon ? (N(), E("i", {
620
+ key: 0,
621
+ class: j([r.loading ? "el-icon-loading" : e.icon(r, n), "node-icon"])
622
+ }, null, 2)) : T("v-if", !0),
623
+ D("span", fe, [D("span", {
624
+ class: "ellipsis-1 absolute-box et-tree-label",
625
+ title: n.label
626
+ }, [F(e.$slots, "label", {
627
+ data: r,
628
+ node: n
629
+ }, () => [O(L(n.label), 1)])], 8, pe)]),
630
+ F(e.$slots, "label-suffix", {
631
+ node: n,
632
+ data: r
633
+ })
634
+ ]),
635
+ !e.contextMenu && !e.readonly ? H((N(), E("span", me, [
636
+ k(o, {
637
+ type: "text",
638
+ onClick: U((e) => a.appendChildNode(n, r), ["stop"])
639
+ }, {
640
+ default: V(() => [...t[9] || (t[9] = [O("添加", -1)])]),
641
+ _: 1
642
+ }, 8, ["onClick"]),
643
+ k(o, {
644
+ type: "text",
645
+ onClick: U((e) => a.editNode(n, r), ["stop"])
646
+ }, {
647
+ default: V(() => [...t[10] || (t[10] = [O("修改", -1)])]),
648
+ _: 1
649
+ }, 8, ["onClick"]),
650
+ k(s, {
651
+ class: "pop-confirm",
652
+ "icon-color": "red",
653
+ title: "你确定要删除吗?",
654
+ onConfirm: (e) => a.removeNode(n, r)
655
+ }, {
656
+ reference: V(() => [H(k(o, {
657
+ style: { "margin-left": "4px" },
658
+ type: "text",
659
+ onClick: t[1] || (t[1] = U(() => {}, ["stop"]))
660
+ }, {
661
+ default: V(() => [...t[11] || (t[11] = [O(" 删除 ", -1)])]),
662
+ _: 1
663
+ }, 512), [[B, n.isLeaf]])]),
664
+ _: 2
665
+ }, 1032, ["onConfirm"])
666
+ ], 512)), [[B, !r.loading && !i.loading]]) : T("v-if", !0),
667
+ e.contextMenuIcon && e.contextMenu && !e.readonly ? H((N(), E("span", he, [k(o, {
668
+ style: { padding: "6px 10px 0" },
669
+ type: "text",
670
+ onClick: U((e) => a.showContextMenu(e, r, n), ["stop"])
671
+ }, {
672
+ default: V(() => [...t[12] || (t[12] = [O(" . . . ", -1)])]),
673
+ _: 1
674
+ }, 8, ["onClick"])], 512)), [[B, !r.loading && !i.loading]]) : T("v-if", !0)
675
+ ], 8, ue))])]),
676
+ _: 3
677
+ }, 16, [
678
+ "default-expand-all",
679
+ "default-expanded-keys",
680
+ "load",
681
+ "data",
682
+ "props",
683
+ "lazy",
684
+ "node-key",
685
+ "onNodeClick",
686
+ "onNodeContextmenu",
687
+ "onNodeExpand",
688
+ "onNodeCollapse"
689
+ ])),
690
+ e.contextMenu && !e.readonly ? H((N(), E("div", {
691
+ key: 1,
692
+ ref: "contextMenu",
693
+ style: M(i.position),
694
+ class: "menu"
695
+ }, [D("ul", _e, [F(e.$slots, "context-menu", {
696
+ curNode: i.curNode,
697
+ curData: i.curData
698
+ }, () => [
699
+ H(D("li", {
700
+ class: "menu-item",
701
+ onClick: t[4] || (t[4] = (e) => a.appendPeerNode(i.curNode, i.curData))
702
+ }, [t[15] || (t[15] = D("i", {
703
+ class: "menu-item-icon el-icon-lx-add",
704
+ style: { color: "#228b22" }
705
+ }, null, -1)), O(" " + L(e.menuLabel.appendPeer), 1)], 512), [[B, i.curData.id > -1]]),
706
+ D("li", {
707
+ class: "menu-item",
708
+ onClick: t[5] || (t[5] = (e) => a.appendChildNode(i.curNode, i.curData))
709
+ }, [t[16] || (t[16] = D("i", {
710
+ class: "menu-item-icon el-icon-lx-add",
711
+ style: { color: "#228b22" }
712
+ }, null, -1)), O(" " + L(e.menuLabel.appendChild), 1)]),
713
+ H(D("li", {
714
+ class: "menu-item",
715
+ onClick: t[6] || (t[6] = (e) => a.editNode(i.curNode, i.curData))
716
+ }, [t[17] || (t[17] = D("i", {
717
+ class: "menu-item-icon el-icon-edit-outline",
718
+ style: { color: "#ffa500" }
719
+ }, null, -1)), O(" " + L(e.menuLabel.editNode), 1)], 512), [[B, i.curData.id > -1]]),
720
+ H(D("li", {
721
+ class: "menu-item",
722
+ onClick: t[7] || (t[7] = (e) => a.removeNodeModal(i.curNode, i.curData))
723
+ }, [t[18] || (t[18] = D("i", {
724
+ class: "menu-item-icon el-icon-delete",
725
+ style: { color: "#f00" }
726
+ }, null, -1)), O(" " + L(e.menuLabel.removeNode), 1)], 512), [[B, i.curNode.isLeaf]])
727
+ ])])], 4)), [[B, i.showMenu]]) : T("v-if", !0)
728
+ ], 512)]);
729
+ }
730
+ var ye = /* @__PURE__ */ v(oe, [["render", ve]]);
731
+ //#endregion
732
+ export { ye as t };