@web-utils/form-ui 1.0.0-beta72 → 1.0.0-beta73

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 (326) hide show
  1. package/address-input/index.mjs +1 -1
  2. package/affix/index.d.ts +0 -2
  3. package/affix/index.mjs +2 -3
  4. package/capsule-tab/index.mjs +1 -1
  5. package/card/index.mjs +15 -16
  6. package/chunks/-fXBgN9b2.mjs +37 -0
  7. package/chunks/{-UHCmZBh.mjs → -yfgKY3g.mjs} +1 -1
  8. package/chunks/{Ciy3EJGG2.mjs → -zgWD713.mjs} +44 -45
  9. package/chunks/{CidE_6Q52.mjs → 8A7LSgb4.mjs} +26 -27
  10. package/chunks/{qFn9SqfB2.mjs → Apjns0ZM.mjs} +72 -73
  11. package/chunks/B0BOjeph2.mjs +108 -0
  12. package/chunks/BD6_5FSI.mjs +178 -0
  13. package/chunks/BE4V5Vf5.mjs +133 -0
  14. package/chunks/{Diidem-9.mjs → BGJjAw5E.mjs} +1 -1
  15. package/chunks/{BJNI7n9Z.mjs → BH7VEktl.mjs} +19 -19
  16. package/chunks/{BrJzSp9f.mjs → BI6kCG2j2.mjs} +2 -2
  17. package/chunks/{QAHALDuF2.mjs → BYtFzO-8.mjs} +138 -139
  18. package/chunks/{C9nRNgwm2.mjs → B_AUZSOW.mjs} +589 -763
  19. package/chunks/BctSGDgW2.mjs +29 -0
  20. package/chunks/{CJl5ZiUq2.mjs → Bes1uXng.mjs} +28 -30
  21. package/chunks/BhIWiH5R.mjs +661 -0
  22. package/chunks/BhzlH7Az.mjs +90 -0
  23. package/chunks/{DmEOzzaP2.mjs → BrelfRGo2.mjs} +14 -14
  24. package/chunks/{X6BItEt1.mjs → BsqIRxSS.mjs} +6 -7
  25. package/chunks/{Bnm0osro.mjs → C--HDCqy.mjs} +13 -16
  26. package/chunks/{iPHgzcZ0.mjs → C6mb7Nru2.mjs} +4 -4
  27. package/chunks/{Bhkk9TmJ2.mjs → CFoSvMJ-2.mjs} +1 -1
  28. package/chunks/{Vrr45MGv.mjs → CO3taG7t2.mjs} +1 -1
  29. package/chunks/{Bxo1Of95.mjs → CZUhA3sf.mjs} +298 -4
  30. package/chunks/Ccxbv7uz2.mjs +34 -0
  31. package/chunks/Ce4tNNzg2.mjs +63 -0
  32. package/chunks/{SEQG09ut.mjs → CelJ2L8A2.mjs} +2 -2
  33. package/chunks/CjYOitzM2.mjs +31 -0
  34. package/chunks/Cknuquqx.mjs +32 -0
  35. package/chunks/ClVh1Lek.mjs +130 -0
  36. package/chunks/CwyebsNL2.mjs +39 -0
  37. package/chunks/{DWjZMJ1e2.mjs → D6DYxngS.mjs} +132 -133
  38. package/chunks/D6YM84Pf2.mjs +29 -0
  39. package/chunks/{DlROUHPJ2.mjs → DTq5QLoT.mjs} +43 -43
  40. package/chunks/{5oaTzHT-2.mjs → DVMfVn-M.mjs} +14 -13
  41. package/chunks/DVdQHb_v.mjs +50 -0
  42. package/chunks/{YS7hFnUB2.mjs → Daa7nl7U.mjs} +19 -19
  43. package/chunks/{D6TSUCGL.mjs → Dh_BQpvC2.mjs} +2 -2
  44. package/chunks/DizOY5i8.mjs +69 -0
  45. package/chunks/{Czi7_tAe.mjs → DjaV6_cg2.mjs} +2 -2
  46. package/chunks/{CKWgRCN52.mjs → Dm3gQGoV2.mjs} +2 -2
  47. package/chunks/DqW9QtF3.mjs +68 -0
  48. package/chunks/{CKbOqPFm2.mjs → DqWJCka8.mjs} +9 -9
  49. package/chunks/{CIerTjpq2.mjs → DrWUdRj32.mjs} +2 -2
  50. package/chunks/Dv7YRB2U2.mjs +25 -0
  51. package/chunks/DyLQsqWJ.mjs +61 -0
  52. package/chunks/HsHwYW1a.mjs +99 -0
  53. package/chunks/KDVLIvaS.mjs +30 -0
  54. package/chunks/{BHwRv4F0.mjs → Lkg7bYLD2.mjs} +73 -74
  55. package/chunks/{DSnICEQN.mjs → Opn85Hlx2.mjs} +1 -1
  56. package/chunks/{CsA_9MVv.mjs → YdNYH25C.mjs} +1 -1
  57. package/chunks/{BiYsC43_.mjs → gTgPZrgY2.mjs} +119 -120
  58. package/chunks/{D2FNAA1a.mjs → jsgk7Yse2.mjs} +2 -2
  59. package/chunks/nL59ZuIk.mjs +58 -0
  60. package/chunks/{BrSZZNRc.mjs → neuEq1De.mjs} +70 -72
  61. package/chunks/{BJuAz5lX2.mjs → sWVkgzQt2.mjs} +2 -2
  62. package/chunks/{DN2qkQvd.mjs → tjwOOiNr2.mjs} +31 -32
  63. package/code-mirror-editor/index.mjs +1 -1
  64. package/confirm-button/index.mjs +1 -1
  65. package/confirmable/index.mjs +1 -1
  66. package/context-menu/index.mjs +1 -1
  67. package/count-up/index.mjs +1 -1
  68. package/custom-scrollbar/index.mjs +1 -1
  69. package/data-box/index.mjs +9 -10
  70. package/data-card/index.mjs +8 -9
  71. package/data-card-text/index.mjs +8 -9
  72. package/data-display/index.mjs +9 -10
  73. package/data-icons/index.mjs +9 -10
  74. package/data-imgtext/index.mjs +9 -11
  75. package/data-operatext/index.mjs +8 -9
  76. package/data-panel/index.mjs +9 -10
  77. package/data-pay/index.mjs +10 -12
  78. package/data-price/index.mjs +8 -9
  79. package/data-progress/index.mjs +10 -11
  80. package/data-rotate/index.mjs +9 -10
  81. package/data-table-picker/index.mjs +11 -12
  82. package/data-tabs/index.mjs +9 -10
  83. package/dict-render/index.mjs +1 -1
  84. package/e-charts/index.mjs +2 -2
  85. package/easy-popup/index.mjs +1 -1
  86. package/editable-progress/index.mjs +8 -8
  87. package/editable-tree/index.mjs +595 -2
  88. package/editable-tree/style.css +1 -1
  89. package/element-dialog/index.mjs +1 -1
  90. package/element-dialog/style.css +1 -1
  91. package/element-resize-observer/index.mjs +1 -1
  92. package/flex-box/index.mjs +1 -1
  93. package/flex-column/index.mjs +1 -1
  94. package/flex-item/index.mjs +1 -1
  95. package/flex-row/index.mjs +1 -1
  96. package/flex-scroller/index.mjs +1 -1
  97. package/flow-designer/index.mjs +1 -1
  98. package/flow-designer/style.css +1 -1
  99. package/flow-viewer/index.mjs +1 -1
  100. package/form-cascader/index.mjs +1 -1
  101. package/form-checkbox/index.mjs +1 -1
  102. package/form-checkbox-group/index.mjs +1 -1
  103. package/form-checkbox-group/style.css +1 -1
  104. package/form-date-picker/index.mjs +1 -1
  105. package/form-holder/index.mjs +1 -1
  106. package/form-image/index.mjs +1 -1
  107. package/form-input/index.mjs +1 -1
  108. package/form-input-cron-expression/index.mjs +1 -1
  109. package/form-input-email/index.mjs +1 -1
  110. package/form-input-id-card/index.mjs +1 -1
  111. package/form-input-number/index.mjs +1 -1
  112. package/form-input-phone-number/index.mjs +1 -1
  113. package/form-input-tag/index.mjs +1 -1
  114. package/form-input-time/index.mjs +1 -1
  115. package/form-item-group/index.mjs +1 -1
  116. package/form-item-x/index.mjs +1 -1
  117. package/form-radio-group/index.mjs +1 -1
  118. package/form-rate/index.mjs +1 -1
  119. package/form-row/index.mjs +1 -1
  120. package/form-select/index.mjs +1 -1
  121. package/form-slider/index.mjs +1 -1
  122. package/form-switch/index.mjs +1 -1
  123. package/form-table/index.mjs +1 -1
  124. package/form-table-plus/index.mjs +1 -1
  125. package/form-text/index.mjs +1 -1
  126. package/form-textarea/index.mjs +1 -1
  127. package/form-time-select/index.mjs +1 -1
  128. package/form-tree-select/index.mjs +1 -1
  129. package/form-tree-select-multiple/index.mjs +1 -1
  130. package/form-view/index.mjs +3 -3
  131. package/guide-steps/index.mjs +77 -2
  132. package/guide-steps/style.css +1 -1
  133. package/helper/dictionary.mjs +1 -1
  134. package/helper/input.mjs +1 -1
  135. package/highlight-j-s/index.mjs +1 -1
  136. package/iframe-window/index.mjs +1 -1
  137. package/image-cropper/index.mjs +12 -11
  138. package/image-preview/index.d.ts +1 -153
  139. package/image-preview/index.mjs +201 -2
  140. package/image-preview/style.css +1 -1
  141. package/image-viewer/index.mjs +1 -1
  142. package/index.css +1 -1
  143. package/index.mjs +101 -101
  144. package/input-number-range/index.mjs +7 -7
  145. package/keyboard/index.mjs +1 -1
  146. package/loading-view/index.mjs +1 -1
  147. package/name-avatar/index.mjs +1 -1
  148. package/nav-bar/index.mjs +3 -4
  149. package/package.json +5 -1
  150. package/page-index/index.mjs +14 -14
  151. package/page-index-top/index.mjs +12 -12
  152. package/pageable-table/index.mjs +1 -1
  153. package/pageable-table/style.css +1 -1
  154. package/photo-swipe/index.mjs +1 -1
  155. package/props/col.mjs +1 -1
  156. package/props/form-item.mjs +1 -1
  157. package/sign-panel/index.mjs +1 -1
  158. package/skeleton-panel/index.mjs +3 -3
  159. package/split-pane/index.mjs +1 -1
  160. package/sub-table/index.mjs +1 -1
  161. package/sub-table-plus/index.mjs +1 -1
  162. package/swiper/index.mjs +2 -2
  163. package/table-column/index.mjs +1 -1
  164. package/table-column-def/index.mjs +1 -1
  165. package/table-view/index.mjs +108 -109
  166. package/table-view/style.css +1 -1
  167. package/tag-render/index.mjs +21 -23
  168. package/text-ellipsis/index.d.ts +1 -1
  169. package/text-ellipsis/index.mjs +1 -1
  170. package/toolbar/index.mjs +1 -1
  171. package/toolbar-button/index.mjs +1 -1
  172. package/vue-cron/index.mjs +1 -1
  173. package/vue-tags-input/index.mjs +1 -1
  174. package/vue-tree-select/index.mjs +1 -1
  175. package/vue-video-player/index.d.ts +1 -1
  176. package/vue-video-player/index.mjs +1 -1
  177. package/watermark/index.mjs +1 -1
  178. package/web-types.json +1 -1
  179. package/x-input-tag/index.mjs +47 -50
  180. package/year-calendar/index.mjs +1 -1
  181. package/chunks/49634Q2N2.mjs +0 -936
  182. package/chunks/77cFhiAz.mjs +0 -13
  183. package/chunks/7JVbVOff2.mjs +0 -46
  184. package/chunks/B1ATN2my.mjs +0 -26
  185. package/chunks/B7O8aGqC2.mjs +0 -58
  186. package/chunks/BBPczt0U.mjs +0 -4
  187. package/chunks/BCwAowl1.mjs +0 -589
  188. package/chunks/BDVLN2ly.mjs +0 -105
  189. package/chunks/BEIlrURf.mjs +0 -251
  190. package/chunks/BEysX5TF2.mjs +0 -1038
  191. package/chunks/BHVyaqk0.mjs +0 -736
  192. package/chunks/BIj6pa8Z.mjs +0 -15
  193. package/chunks/BMWg0Wyj.mjs +0 -223
  194. package/chunks/BOsml5YC.mjs +0 -69
  195. package/chunks/BPwFiWYl2.mjs +0 -226
  196. package/chunks/BVIHqL6g.mjs +0 -17
  197. package/chunks/BVSQ6DfJ.mjs +0 -17
  198. package/chunks/BWqFKbFT.mjs +0 -1
  199. package/chunks/B__5L22p2.mjs +0 -346
  200. package/chunks/Bcpewc6H.mjs +0 -1279
  201. package/chunks/Bdeug17L.mjs +0 -42
  202. package/chunks/BffxPn8a.mjs +0 -34
  203. package/chunks/BgKQXQO_.mjs +0 -3093
  204. package/chunks/Bgw_3soo.mjs +0 -35
  205. package/chunks/BjCfQFUL.mjs +0 -54
  206. package/chunks/BjWs-r2V.mjs +0 -25
  207. package/chunks/BlB1fEo92.mjs +0 -8
  208. package/chunks/BmP9lQmT.mjs +0 -1
  209. package/chunks/BrYtAPbN2.mjs +0 -161
  210. package/chunks/BsKwchVA.mjs +0 -14
  211. package/chunks/BzFYbCpR.mjs +0 -25
  212. package/chunks/C6puxasG.mjs +0 -34
  213. package/chunks/C7l9aZGE.mjs +0 -577
  214. package/chunks/CDRNaOEg2.mjs +0 -274
  215. package/chunks/CG7AYiWy.mjs +0 -1
  216. package/chunks/CLzc_j7_.mjs +0 -234
  217. package/chunks/CQSTyCVP.mjs +0 -6
  218. package/chunks/CQxz8uUc.mjs +0 -454
  219. package/chunks/CU8bKuD12.mjs +0 -237
  220. package/chunks/CUF58PQ6.mjs +0 -1
  221. package/chunks/CUMFv5zJ2.mjs +0 -136
  222. package/chunks/C_eGir-J.mjs +0 -17
  223. package/chunks/Cb6Zx6UC.mjs +0 -29
  224. package/chunks/Cb_S4x_i2.mjs +0 -1098
  225. package/chunks/CbgD7y-5.mjs +0 -5
  226. package/chunks/CbsGuLZz2.mjs +0 -105
  227. package/chunks/CcT5SsZk.mjs +0 -48
  228. package/chunks/CcnjxILx.mjs +0 -1
  229. package/chunks/ChkCT6Mm.mjs +0 -4
  230. package/chunks/CiFlMt6Z.mjs +0 -41
  231. package/chunks/CiOqOUkG.mjs +0 -1
  232. package/chunks/CkXf_DVJ2.mjs +0 -1
  233. package/chunks/CnCSm3LY2.mjs +0 -4
  234. package/chunks/CnqWFDqp2.mjs +0 -244
  235. package/chunks/Cq0oEWRi2.mjs +0 -384
  236. package/chunks/CtBIjjQc2.mjs +0 -58
  237. package/chunks/Ctd3_wOH2.mjs +0 -6
  238. package/chunks/CuoYjthQ.mjs +0 -643
  239. package/chunks/CwhXr2Qc.mjs +0 -1
  240. package/chunks/D-hj62se2.mjs +0 -525
  241. package/chunks/D3VpXXqv.mjs +0 -1331
  242. package/chunks/D3Xixh5v.mjs +0 -5
  243. package/chunks/D4oNQiIK.mjs +0 -461
  244. package/chunks/D7O9ov79.mjs +0 -447
  245. package/chunks/D8fid28s2.mjs +0 -42
  246. package/chunks/DJdhVUFO2.mjs +0 -2435
  247. package/chunks/DJo_1CEK2.mjs +0 -61
  248. package/chunks/DMBx2EQl.mjs +0 -107
  249. package/chunks/DOCwznnS.mjs +0 -62
  250. package/chunks/DStwh2ne.mjs +0 -281
  251. package/chunks/D_5z5Xeq2.mjs +0 -37
  252. package/chunks/Df9VO_Wn2.mjs +0 -2
  253. package/chunks/Dg9Q-Tbi2.mjs +0 -299
  254. package/chunks/Diyl8upM.mjs +0 -277
  255. package/chunks/DjIPzCCR.mjs +0 -2
  256. package/chunks/DnBzQ-xh.mjs +0 -4
  257. package/chunks/Dp195RgF.mjs +0 -2
  258. package/chunks/Dqu1Etz62.mjs +0 -52
  259. package/chunks/DrKq_frR.mjs +0 -98
  260. package/chunks/DrXfCf172.mjs +0 -440
  261. package/chunks/DsZznbt2.mjs +0 -208
  262. package/chunks/Dsd58O0g.mjs +0 -25
  263. package/chunks/DssopN-n2.mjs +0 -97
  264. package/chunks/Dtq1xYk8.mjs +0 -47
  265. package/chunks/FeuisuNY2.mjs +0 -88
  266. package/chunks/GEtlriHC.mjs +0 -188
  267. package/chunks/GsvG1yFW.mjs +0 -1919
  268. package/chunks/IheQdJ0z.mjs +0 -267
  269. package/chunks/KGmxNbpi.mjs +0 -21
  270. package/chunks/PNyFONog2.mjs +0 -69
  271. package/chunks/T70m4caR.mjs +0 -1095
  272. package/chunks/ZBsqmcIN2.mjs +0 -622
  273. package/chunks/akEzJ4kG.mjs +0 -18
  274. package/chunks/fX1GD0G5.mjs +0 -70
  275. package/chunks/gh52LMTG.mjs +0 -12
  276. package/chunks/hgAOQY9a.mjs +0 -406
  277. package/chunks/iu5J8EF_.mjs +0 -197
  278. package/chunks/lGc5ksPb.mjs +0 -279
  279. package/chunks/pZQfJv282.mjs +0 -4
  280. package/chunks/qrHhuZXg.mjs +0 -465
  281. package/chunks/r8gDbwly.mjs +0 -1
  282. package/chunks/vpwjmKdg2.mjs +0 -32
  283. package/css/style.css +0 -1
  284. package/css/style10.css +0 -1
  285. package/css/style11.css +0 -1
  286. package/css/style12.css +0 -1
  287. package/css/style13.css +0 -1
  288. package/css/style14.css +0 -1
  289. package/css/style15.css +0 -1
  290. package/css/style16.css +0 -1
  291. package/css/style17.css +0 -1
  292. package/css/style18.css +0 -1
  293. package/css/style19.css +0 -1
  294. package/css/style2.css +0 -1
  295. package/css/style20.css +0 -1
  296. package/css/style21.css +0 -1
  297. package/css/style22.css +0 -1
  298. package/css/style23.css +0 -1
  299. package/css/style24.css +0 -1
  300. package/css/style25.css +0 -1
  301. package/css/style26.css +0 -1
  302. package/css/style27.css +0 -1
  303. package/css/style28.css +0 -1
  304. package/css/style29.css +0 -1
  305. package/css/style3.css +0 -1
  306. package/css/style4.css +0 -1
  307. package/css/style5.css +0 -1
  308. package/css/style6.css +0 -1
  309. package/css/style7.css +0 -1
  310. package/css/style8.css +0 -1
  311. package/css/style9.css +0 -1
  312. package/form-date-picker/style.css +0 -1
  313. package/form-image/style.css +0 -1
  314. package/form-input-time/style.css +0 -1
  315. package/form-radio-group/style.css +0 -1
  316. package/form-rate/style.css +0 -1
  317. package/form-time-select/style.css +0 -1
  318. /package/chunks/{CZnBtJW02.mjs → BBvIPqcc.mjs} +0 -0
  319. /package/chunks/{iIozz7ce.mjs → BoCxKwBf.mjs} +0 -0
  320. /package/chunks/{BxRjXAwz.mjs → CE67pCwD.mjs} +0 -0
  321. /package/chunks/{DWhGFQkb2.mjs → CQeEP_Tl.mjs} +0 -0
  322. /package/chunks/{BQ0e8kIi.mjs → CaczibeD.mjs} +0 -0
  323. /package/chunks/{B_80qPvY.mjs → DZCryyFG.mjs} +0 -0
  324. /package/chunks/{q5iCsXNv.mjs → Dq63V0CC.mjs} +0 -0
  325. /package/chunks/{CRjUGi_-.mjs → OEBJ-trG.mjs} +0 -0
  326. /package/chunks/{GYddfy8T.mjs → fjtZc9Rq2.mjs} +0 -0
@@ -1,1095 +0,0 @@
1
- import { i as e, n as t } from "./Bdeug17L.mjs";
2
- import { _ as n, t as r } from "./hgAOQY9a.mjs";
3
- import { E as i, M as a, O as o, _ as s, k as c, l, p as u, s as d, t as f, u as p, w as m, x as h, y as g } from "./DrKq_frR.mjs";
4
- import { P as _, R as v, s as y, t as b, y as x } from "./D4oNQiIK.mjs";
5
- import { n as S } from "./GEtlriHC.mjs";
6
- import { a as C } from "./B1ATN2my.mjs";
7
- import { n as w } from "./BBPczt0U.mjs";
8
- import { t as T } from "./BlB1fEo92.mjs";
9
- import { t as E } from "./DrXfCf172.mjs";
10
- import { t as D } from "./7JVbVOff2.mjs";
11
- import { t as ee } from "./fX1GD0G5.mjs";
12
- /* empty css */
13
- import { Fragment as te, computed as ne, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createVNode as M, defineComponent as N, getCurrentInstance as re, h as ie, inject as P, nextTick as F, normalizeClass as I, normalizeStyle as ae, onBeforeUnmount as oe, onMounted as se, onUpdated as ce, openBlock as L, provide as R, reactive as le, ref as z, renderList as ue, renderSlot as de, resolveComponent as B, resolveDynamicComponent as fe, toDisplayString as pe, vShow as V, watch as H, withCtx as U, withDirectives as W, withModifiers as G } from "vue";
14
- import { isEqual as me, isNil as K } from "lodash-unified";
15
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/tree/src/tokens.mjs
16
- var q = "RootTree", he = "NodeInstance", ge = "TreeNodeMap", _e = l({
17
- data: {
18
- type: p(Array),
19
- default: () => []
20
- },
21
- emptyText: { type: String },
22
- renderAfterExpand: {
23
- type: Boolean,
24
- default: !0
25
- },
26
- nodeKey: String,
27
- checkStrictly: Boolean,
28
- defaultExpandAll: Boolean,
29
- expandOnClickNode: {
30
- type: Boolean,
31
- default: !0
32
- },
33
- checkOnClickNode: Boolean,
34
- checkOnClickLeaf: {
35
- type: Boolean,
36
- default: !0
37
- },
38
- checkDescendants: Boolean,
39
- autoExpandParent: {
40
- type: Boolean,
41
- default: !0
42
- },
43
- defaultCheckedKeys: { type: Array },
44
- defaultExpandedKeys: { type: Array },
45
- currentNodeKey: { type: [String, Number] },
46
- renderContent: { type: p(Function) },
47
- showCheckbox: Boolean,
48
- draggable: Boolean,
49
- allowDrag: { type: p(Function) },
50
- allowDrop: { type: p(Function) },
51
- props: {
52
- type: Object,
53
- default: () => ({
54
- children: "children",
55
- label: "label",
56
- disabled: "disabled"
57
- })
58
- },
59
- lazy: Boolean,
60
- highlightCurrent: Boolean,
61
- load: { type: Function },
62
- filterNodeMethod: { type: Function },
63
- accordion: Boolean,
64
- indent: {
65
- type: Number,
66
- default: 18
67
- },
68
- icon: { type: C }
69
- }), ve = {
70
- "check-change": (e, t, n) => e && u(t) && u(n),
71
- "current-change": (e, t) => !0,
72
- "node-click": (e, t, n, r) => e && t && r instanceof Event,
73
- "node-contextmenu": (e, t, n, r) => e instanceof Event && t && n,
74
- "node-collapse": (e, t, n) => e && t,
75
- "node-expand": (e, t, n) => e && t,
76
- check: (e, t) => e && t,
77
- "node-drag-start": (e, t) => e && t,
78
- "node-drag-end": (e, t, n, r) => e && r,
79
- "node-drop": (e, t, n, r) => e && t && r,
80
- "node-drag-leave": (e, t, n) => e && t && n,
81
- "node-drag-enter": (e, t, n) => e && t && n,
82
- "node-drag-over": (e, t, n) => e && t && n
83
- }, ye = "$treeNodeId", be = function(e, t) {
84
- !t || t.$treeNodeId || Object.defineProperty(t, ye, {
85
- value: e.id,
86
- enumerable: !1,
87
- configurable: !1,
88
- writable: !1
89
- });
90
- }, J = (e, t) => t == null ? void 0 : t[e || "$treeNodeId"], Y = (e, t, n) => {
91
- let r = e.value.currentNode;
92
- n();
93
- let i = e.value.currentNode;
94
- r !== i && t("current-change", i ? i.data : null, i);
95
- }, xe = (e) => {
96
- let t = !0, n = !0, r = !0, i = !0;
97
- for (let a = 0, o = e.length; a < o; a++) {
98
- let o = e[a];
99
- (o.checked !== !0 || o.indeterminate) && (t = !1, o.disabled || (r = !1)), (o.checked !== !1 || o.indeterminate) && (n = !1), o.isEffectivelyChecked || (i = !1);
100
- }
101
- return {
102
- all: t,
103
- none: n,
104
- allWithoutDisable: r,
105
- half: !t && !n,
106
- isEffectivelyChecked: i
107
- };
108
- }, X = function(e) {
109
- if (e.childNodes.length === 0 || e.loading) {
110
- e.isEffectivelyChecked = e.disabled || e.checked;
111
- return;
112
- }
113
- let { all: t, none: n, half: r, isEffectivelyChecked: i } = xe(e.childNodes);
114
- e.isEffectivelyChecked = i, t ? (e.checked = !0, e.indeterminate = !1) : r ? (e.checked = !1, e.indeterminate = !0) : n && (e.checked = !1, e.indeterminate = !1);
115
- let a = e.parent;
116
- !a || a.level === 0 || e.store.checkStrictly || X(a);
117
- }, Z = function(e, t) {
118
- let n = e.store.props, r = e.data || {}, i = n[t];
119
- if (o(i)) return i(r, e);
120
- if (a(i)) return r[i];
121
- if (g(i)) {
122
- let e = r[t];
123
- return g(e) ? "" : e;
124
- }
125
- }, Q = function(e, t) {
126
- e.forEach((e) => {
127
- e.canFocus = t, Q(e.childNodes, t);
128
- });
129
- }, Se = 0, $ = class e {
130
- constructor(e) {
131
- this.isLeafByUser = void 0, this.isLeaf = void 0, this.isEffectivelyChecked = !1, this.id = Se++, this.text = null, this.checked = !1, this.indeterminate = !1, this.data = null, this.expanded = !1, this.parent = null, this.visible = !0, this.isCurrent = !1, this.canFocus = !1;
132
- for (let t in e) m(e, t) && (this[t] = e[t]);
133
- this.level = 0, this.loaded = !1, this.childNodes = [], this.loading = !1, this.parent && (this.level = this.parent.level + 1);
134
- }
135
- initialize() {
136
- var e;
137
- let t = this.store;
138
- if (!t) throw Error("[Node]store is required!");
139
- t.registerNode(this);
140
- let n = t.props;
141
- if (n && n.isLeaf !== void 0) {
142
- let e = Z(this, "isLeaf");
143
- u(e) && (this.isLeafByUser = e);
144
- }
145
- if (t.lazy !== !0 && this.data ? (this.setData(this.data), t.defaultExpandAll && (this.expanded = !0, this.canFocus = !0)) : this.level > 0 && t.lazy && t.defaultExpandAll && !this.isLeafByUser && this.expand(), i(this.data) || be(this, this.data), !this.data) return;
146
- let r = t.defaultExpandedKeys, a = t.key;
147
- a && !K(this.key) && r && r.includes(this.key) && this.expand(null, t.autoExpandParent), a && t.currentNodeKey !== void 0 && this.key === t.currentNodeKey && (t.currentNode && (t.currentNode.isCurrent = !1), t.currentNode = this, t.currentNode.isCurrent = !0), t.lazy && t._initDefaultCheckedNode(this), this.updateLeafState(), (this.level === 1 || ((e = this.parent) == null ? void 0 : e.expanded) === !0) && (this.canFocus = !0);
148
- }
149
- setData(e) {
150
- i(e) || be(this, e), this.data = e, this.childNodes = [];
151
- let t;
152
- t = this.level === 0 && i(this.data) ? this.data : Z(this, "children") || [];
153
- for (let e = 0, n = t.length; e < n; e++) this.insertChild({ data: t[e] });
154
- }
155
- get label() {
156
- return Z(this, "label");
157
- }
158
- get key() {
159
- let e = this.store.key;
160
- return this.data ? this.data[e] : null;
161
- }
162
- get disabled() {
163
- return Z(this, "disabled");
164
- }
165
- get nextSibling() {
166
- let e = this.parent;
167
- if (e) {
168
- let t = e.childNodes.indexOf(this);
169
- if (t > -1) return e.childNodes[t + 1];
170
- }
171
- return null;
172
- }
173
- get previousSibling() {
174
- let e = this.parent;
175
- if (e) {
176
- let t = e.childNodes.indexOf(this);
177
- if (t > -1) return t > 0 ? e.childNodes[t - 1] : null;
178
- }
179
- return null;
180
- }
181
- contains(e, t = !0) {
182
- return (this.childNodes || []).some((n) => n === e || t && n.contains(e));
183
- }
184
- remove() {
185
- let e = this.parent;
186
- e && e.removeChild(this);
187
- }
188
- insertChild(t, n, r) {
189
- if (!t) throw Error("InsertChild error: child is required.");
190
- if (!(t instanceof e)) {
191
- if (!r) {
192
- let e = this.getChildren(!0);
193
- e != null && e.includes(t.data) || (g(n) || n < 0 ? e == null || e.push(t.data) : e == null || e.splice(n, 0, t.data));
194
- }
195
- Object.assign(t, {
196
- parent: this,
197
- store: this.store
198
- }), t = le(new e(t)), t instanceof e && t.initialize();
199
- }
200
- t.level = this.level + 1, g(n) || n < 0 ? this.childNodes.push(t) : this.childNodes.splice(n, 0, t), this.updateLeafState();
201
- }
202
- insertBefore(e, t) {
203
- let n;
204
- t && (n = this.childNodes.indexOf(t)), this.insertChild(e, n);
205
- }
206
- insertAfter(e, t) {
207
- let n;
208
- t && (n = this.childNodes.indexOf(t), n !== -1 && (n += 1)), this.insertChild(e, n);
209
- }
210
- removeChild(e) {
211
- let t = this.getChildren() || [], n = t.indexOf(e.data);
212
- n > -1 && t.splice(n, 1);
213
- let r = this.childNodes.indexOf(e);
214
- r > -1 && (this.store && this.store.deregisterNode(e), e.parent = null, this.childNodes.splice(r, 1)), this.updateLeafState();
215
- }
216
- removeChildByData(e) {
217
- let t = this.childNodes.find((t) => t.data === e);
218
- t && this.removeChild(t);
219
- }
220
- expand(e, t) {
221
- let n = () => {
222
- if (t) {
223
- let e = this.parent;
224
- for (; e && e.level > 0;) e.expanded = !0, e = e.parent;
225
- }
226
- this.expanded = !0, e && e(), Q(this.childNodes, !0);
227
- };
228
- this.shouldLoadData() ? this.loadData((e) => {
229
- i(e) && (this.checked ? this.setChecked(!0, !0) : this.store.checkStrictly || X(this), n());
230
- }) : n();
231
- }
232
- doCreateChildren(e, t = {}) {
233
- e.forEach((e) => {
234
- this.insertChild(Object.assign({ data: e }, t), void 0, !0);
235
- });
236
- }
237
- collapse() {
238
- this.expanded = !1, Q(this.childNodes, !1);
239
- }
240
- shouldLoadData() {
241
- return !!(this.store.lazy === !0 && this.store.load && !this.loaded);
242
- }
243
- updateLeafState() {
244
- if (this.store.lazy === !0 && this.loaded !== !0 && this.isLeafByUser !== void 0) {
245
- this.isLeaf = this.isLeafByUser, this.isEffectivelyChecked = this.isLeaf && this.disabled;
246
- return;
247
- }
248
- let e = this.childNodes;
249
- if (!this.store.lazy || this.store.lazy === !0 && this.loaded === !0) {
250
- this.isLeaf = !e || e.length === 0, this.isEffectivelyChecked = this.isLeaf && this.disabled;
251
- return;
252
- }
253
- this.isLeaf = !1;
254
- }
255
- setChecked(e, t, n, r) {
256
- if (this.indeterminate = e === "half", this.checked = e === !0, this.isEffectivelyChecked = !this.childNodes.length && (this.disabled || this.checked), this.store.checkStrictly) return;
257
- if (!(this.shouldLoadData() && !this.store.checkDescendants)) {
258
- let n = () => {
259
- if (t) {
260
- let n = this.childNodes;
261
- for (let i = 0, a = n.length; i < a; i++) {
262
- let a = n[i];
263
- r = r || e !== !1;
264
- let o = a.disabled && a.isLeaf ? a.checked : r;
265
- a.setChecked(o, t, !0, r);
266
- }
267
- let { half: i, all: a, isEffectivelyChecked: o } = xe(n);
268
- a || (this.checked = a, this.indeterminate = i), this.isEffectivelyChecked = this.childNodes.length ? o : this.disabled || this.checked;
269
- }
270
- };
271
- if (this.shouldLoadData()) {
272
- this.loadData(() => {
273
- n(), X(this);
274
- }, { checked: e !== !1 });
275
- return;
276
- } else n();
277
- }
278
- let i = this.parent;
279
- !i || i.level === 0 || n || X(i);
280
- }
281
- getChildren(e = !1) {
282
- if (this.level === 0) return this.data;
283
- let t = this.data;
284
- if (!t) return null;
285
- let n = this.store.props, r = "children";
286
- return n && (r = n.children || "children"), g(t[r]) && (t[r] = null), e && !t[r] && (t[r] = []), t[r];
287
- }
288
- updateChildren() {
289
- let e = this.getChildren() || [], t = this.childNodes.map((e) => e.data), n = {}, r = [];
290
- e.forEach((e, i) => {
291
- let a = e[ye];
292
- a && t.some((e) => (e == null ? void 0 : e.$treeNodeId) === a) ? n[a] = {
293
- index: i,
294
- data: e
295
- } : r.push({
296
- index: i,
297
- data: e
298
- });
299
- }), this.store.lazy || t.forEach((e) => {
300
- n[e == null ? void 0 : e.$treeNodeId] || this.removeChildByData(e);
301
- }), r.forEach(({ index: e, data: t }) => {
302
- this.insertChild({ data: t }, e);
303
- }), this.updateLeafState();
304
- }
305
- loadData(e, t = {}) {
306
- this.store.lazy === !0 && this.store.load && !this.loaded && (!this.loading || Object.keys(t).length) ? (this.loading = !0, this.store.load(this, (n) => {
307
- this.childNodes = [], this.doCreateChildren(n, t), this.loaded = !0, this.loading = !1, this.updateLeafState(), e && e.call(this, n);
308
- }, () => {
309
- this.loading = !1;
310
- })) : e && e.call(this);
311
- }
312
- eachNode(e) {
313
- let t = [this];
314
- for (; t.length;) {
315
- let n = t.shift();
316
- t.unshift(...n.childNodes), e(n);
317
- }
318
- }
319
- reInitChecked() {
320
- this.store.checkStrictly || X(this);
321
- }
322
- }, Ce = class {
323
- constructor(e) {
324
- this.lazy = !1, this.checkStrictly = !1, this.autoExpandParent = !1, this.defaultExpandAll = !1, this.checkDescendants = !1, this.currentNode = null, this.currentNodeKey = null;
325
- for (let t in e) m(e, t) && (this[t] = e[t]);
326
- this.nodesMap = {};
327
- }
328
- initialize() {
329
- if (this.root = new $({
330
- data: this.data,
331
- store: this
332
- }), this.root.initialize(), this.lazy && this.load) {
333
- let e = this.load;
334
- e(this.root, (e) => {
335
- this.root.doCreateChildren(e), this._initDefaultCheckedNodes();
336
- }, h);
337
- } else this._initDefaultCheckedNodes();
338
- }
339
- filter(e) {
340
- let t = this.filterNodeMethod, n = this.lazy, r = async function(i) {
341
- let a = i.root ? i.root.childNodes : i.childNodes;
342
- for (let [n, i] of a.entries()) i.visible = !!(t != null && t.call(i, e, i.data, i)), n % 80 == 0 && n > 0 && await F(), await r(i);
343
- if (!i.visible && a.length) {
344
- let e = !0;
345
- e = !a.some((e) => e.visible), i.root ? i.root.visible = e === !1 : i.visible = e === !1;
346
- }
347
- e && i.visible && !i.isLeaf && (!n || i.loaded) && i.expand();
348
- };
349
- r(this);
350
- }
351
- setData(e) {
352
- e === this.root.data ? this.root.updateChildren() : (this.nodesMap = {}, this.root.setData(e), this._initDefaultCheckedNodes(), this.setCurrentNodeKey(this.currentNodeKey));
353
- }
354
- getNode(e) {
355
- if (e instanceof $) return e;
356
- let t = c(e) ? J(this.key, e) : e;
357
- return this.nodesMap[t] || null;
358
- }
359
- insertBefore(e, t) {
360
- var n;
361
- let r = this.getNode(t);
362
- (n = r.parent) == null || n.insertBefore({ data: e }, r);
363
- }
364
- insertAfter(e, t) {
365
- var n;
366
- let r = this.getNode(t);
367
- (n = r.parent) == null || n.insertAfter({ data: e }, r);
368
- }
369
- remove(e) {
370
- let t = this.getNode(e);
371
- t && t.parent && (t === this.currentNode && (this.currentNode = null), t.parent.removeChild(t));
372
- }
373
- append(e, t) {
374
- let n = s(t) ? this.root : this.getNode(t);
375
- n && n.insertChild({ data: e });
376
- }
377
- _initDefaultCheckedNodes() {
378
- let e = this.defaultCheckedKeys || [], t = this.nodesMap;
379
- e.forEach((e) => {
380
- let n = t[e];
381
- n && n.setChecked(!0, !this.checkStrictly);
382
- });
383
- }
384
- _initDefaultCheckedNode(e) {
385
- let t = this.defaultCheckedKeys || [];
386
- !K(e.key) && t.includes(e.key) && e.setChecked(!0, !this.checkStrictly);
387
- }
388
- setDefaultCheckedKey(e) {
389
- e !== this.defaultCheckedKeys && (this.defaultCheckedKeys = e, this._initDefaultCheckedNodes());
390
- }
391
- registerNode(e) {
392
- let t = this.key;
393
- if (!(!e || !e.data)) if (!t) this.nodesMap[e.id] = e;
394
- else {
395
- let t = e.key;
396
- K(t) || (this.nodesMap[t] = e);
397
- }
398
- }
399
- deregisterNode(e) {
400
- !this.key || !e || !e.data || (e.childNodes.forEach((e) => {
401
- this.deregisterNode(e);
402
- }), delete this.nodesMap[e.key]);
403
- }
404
- getCheckedNodes(e = !1, t = !1) {
405
- let n = [], r = function(i) {
406
- (i.root ? i.root.childNodes : i.childNodes).forEach((i) => {
407
- (i.checked || t && i.indeterminate) && (!e || e && i.isLeaf) && n.push(i.data), r(i);
408
- });
409
- };
410
- return r(this), n;
411
- }
412
- getCheckedKeys(e = !1) {
413
- return this.getCheckedNodes(e).map((e) => (e || {})[this.key]);
414
- }
415
- getHalfCheckedNodes() {
416
- let e = [], t = function(n) {
417
- (n.root ? n.root.childNodes : n.childNodes).forEach((n) => {
418
- n.indeterminate && e.push(n.data), t(n);
419
- });
420
- };
421
- return t(this), e;
422
- }
423
- getHalfCheckedKeys() {
424
- return this.getHalfCheckedNodes().map((e) => (e || {})[this.key]);
425
- }
426
- _getAllNodes() {
427
- let e = [], t = this.nodesMap;
428
- for (let n in t) m(t, n) && e.push(t[n]);
429
- return e;
430
- }
431
- updateChildren(e, t) {
432
- let n = this.nodesMap[e];
433
- if (!n) return;
434
- let r = n.childNodes;
435
- for (let e = r.length - 1; e >= 0; e--) {
436
- let t = r[e];
437
- this.remove(t.data);
438
- }
439
- for (let e = 0, r = t.length; e < r; e++) {
440
- let r = t[e];
441
- this.append(r, n.data);
442
- }
443
- }
444
- _setCheckedKeys(e, t = !1, n) {
445
- let r = this._getAllNodes().sort((e, t) => e.level - t.level), i = Object.create(null), a = Object.keys(n);
446
- r.forEach((e) => e.setChecked(!1, !1));
447
- let o = (t) => {
448
- t.childNodes.forEach((t) => {
449
- var n;
450
- i[t.data[e]] = !0, (n = t.childNodes) != null && n.length && o(t);
451
- });
452
- };
453
- for (let n = 0, s = r.length; n < s; n++) {
454
- let s = r[n], c = s.data[e].toString();
455
- if (!a.includes(c)) {
456
- s.checked && !i[c] && s.setChecked(!1, !1);
457
- continue;
458
- }
459
- if (s.childNodes.length && o(s), s.isLeaf || this.checkStrictly) {
460
- s.setChecked(!0, !1);
461
- continue;
462
- }
463
- if (s.setChecked(!0, !0), t) {
464
- s.setChecked(!1, !1, !0);
465
- let e = function(t) {
466
- t.childNodes.forEach((t) => {
467
- t.isLeaf || t.setChecked(!1, !1, !0), e(t);
468
- }), t.reInitChecked();
469
- };
470
- e(s);
471
- }
472
- }
473
- }
474
- setCheckedNodes(e, t = !1) {
475
- let n = this.key, r = {};
476
- e.forEach((e) => {
477
- r[(e || {})[n]] = !0;
478
- }), this._setCheckedKeys(n, t, r);
479
- }
480
- setCheckedKeys(e, t = !1) {
481
- this.defaultCheckedKeys = e;
482
- let n = this.key, r = {};
483
- e.forEach((e) => {
484
- r[e] = !0;
485
- }), this._setCheckedKeys(n, t, r);
486
- }
487
- setDefaultExpandedKeys(e) {
488
- e = e || [], this.defaultExpandedKeys = e, e.forEach((e) => {
489
- let t = this.getNode(e);
490
- t && t.expand(null, this.autoExpandParent);
491
- });
492
- }
493
- setChecked(e, t, n) {
494
- let r = this.getNode(e);
495
- r && r.setChecked(!!t, n);
496
- }
497
- getCurrentNode() {
498
- return this.currentNode;
499
- }
500
- setCurrentNode(e) {
501
- let t = this.currentNode;
502
- t && (t.isCurrent = !1), this.currentNode = e, this.currentNode.isCurrent = !0;
503
- }
504
- setUserCurrentNode(e, t = !0) {
505
- var n;
506
- let r = e[this.key], i = this.nodesMap[r];
507
- this.setCurrentNode(i), t && this.currentNode && this.currentNode.level > 1 && ((n = this.currentNode.parent) == null || n.expand(null, !0));
508
- }
509
- setCurrentNodeKey(e, t = !0) {
510
- if (this.currentNodeKey = e, s(e)) {
511
- this.currentNode && (this.currentNode.isCurrent = !1), this.currentNode = null;
512
- return;
513
- }
514
- let n = this.getNode(e);
515
- if (n) {
516
- var r;
517
- this.setCurrentNode(n), t && this.currentNode && this.currentNode.level > 1 && ((r = this.currentNode.parent) == null || r.expand(null, !0));
518
- }
519
- }
520
- };
521
- //#endregion
522
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/tree/src/model/useNodeExpandEventBroadcast.mjs
523
- function we(e) {
524
- let t = P(ge, null), n = {
525
- treeNodeExpand: (t) => {
526
- var n;
527
- e.node !== t && ((n = e.node) == null || n.collapse());
528
- },
529
- children: /* @__PURE__ */ new Set()
530
- };
531
- return t && t.children.add(n), oe(() => {
532
- t && t.children.delete(n), n = null;
533
- }), R(ge, n), { broadcastExpanded: (t) => {
534
- if (e.accordion) for (let e of n.children) e.treeNodeExpand(t);
535
- } };
536
- }
537
- //#endregion
538
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/tree/src/model/useDragNode.mjs
539
- var Te = Symbol("dragEvents");
540
- function Ee({ props: e, ctx: t, el$: n, dropIndicator$: r, store: i }) {
541
- let a = d("tree"), s = z({
542
- showDropIndicator: !1,
543
- draggingNode: null,
544
- dropNode: null,
545
- allowDrop: !0,
546
- dropType: null
547
- });
548
- return R(Te, {
549
- treeNodeDragStart: ({ event: n, treeNode: r }) => {
550
- if (n.dataTransfer) {
551
- if (o(e.allowDrag) && !e.allowDrag(r.node)) return n.preventDefault(), !1;
552
- n.dataTransfer.effectAllowed = "move";
553
- try {
554
- n.dataTransfer.setData("text/plain", "");
555
- } catch {}
556
- s.value.draggingNode = r, t.emit("node-drag-start", r.node, n);
557
- }
558
- },
559
- treeNodeDragOver: ({ event: i, treeNode: c }) => {
560
- if (!i.dataTransfer) return;
561
- let l = c, u = s.value.dropNode;
562
- u && u.node.id !== l.node.id && v(u.$el, a.is("drop-inner"));
563
- let d = s.value.draggingNode;
564
- if (!d || !l) return;
565
- let f = !0, p = !0, m = !0, h = !0;
566
- o(e.allowDrop) && (f = e.allowDrop(d.node, l.node, "prev"), h = p = e.allowDrop(d.node, l.node, "inner"), m = e.allowDrop(d.node, l.node, "next")), i.dataTransfer.dropEffect = p || f || m ? "move" : "none", (f || p || m) && (u == null ? void 0 : u.node.id) !== l.node.id && (u && t.emit("node-drag-leave", d.node, u.node, i), t.emit("node-drag-enter", d.node, l.node, i)), f || p || m ? s.value.dropNode = l : s.value.dropNode = null, l.node.nextSibling === d.node && (m = !1), l.node.previousSibling === d.node && (f = !1), l.node.contains(d.node, !1) && (p = !1), (d.node === l.node || d.node.contains(l.node)) && (f = !1, p = !1, m = !1);
567
- let g = l.$el, y = g.querySelector(`.${a.be("node", "content")}`).getBoundingClientRect(), b = n.value.getBoundingClientRect(), x = n.value.scrollTop, S, C = f ? p ? .25 : m ? .45 : 1 : -Infinity, w = m ? p ? .75 : f ? .55 : 0 : Infinity, T = -9999, E = i.clientY - y.top;
568
- S = E < y.height * C ? "before" : E > y.height * w ? "after" : p ? "inner" : "none";
569
- let D = g.querySelector(`.${a.be("node", "expand-icon")}`).getBoundingClientRect(), ee = r.value;
570
- S === "before" ? T = D.top - b.top + x : S === "after" && (T = D.bottom - b.top + x), ee.style.top = `${T}px`, ee.style.left = `${D.right - b.left}px`, S === "inner" ? _(g, a.is("drop-inner")) : v(g, a.is("drop-inner")), s.value.showDropIndicator = S === "before" || S === "after", s.value.allowDrop = s.value.showDropIndicator || h, s.value.dropType = S, t.emit("node-drag-over", d.node, l.node, i);
571
- },
572
- treeNodeDragEnd: (e) => {
573
- let { draggingNode: n, dropType: r, dropNode: o } = s.value;
574
- if (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move"), n != null && n.node.data && o) {
575
- var c, l;
576
- let s = { data: n.node.data };
577
- r !== "none" && n.node.remove(), r === "before" ? (c = o.node.parent) == null || c.insertBefore(s, o.node) : r === "after" ? (l = o.node.parent) == null || l.insertAfter(s, o.node) : r === "inner" && o.node.insertChild(s), r !== "none" && (i.value.registerNode(s), i.value.key && n.node.eachNode((e) => {
578
- var t;
579
- (t = i.value.nodesMap[e.data[i.value.key]]) == null || t.setChecked(e.checked, !i.value.checkStrictly);
580
- })), v(o.$el, a.is("drop-inner")), t.emit("node-drag-end", n.node, o.node, r, e), r !== "none" && t.emit("node-drop", n.node, o.node, r, e);
581
- }
582
- n && !o && t.emit("node-drag-end", n.node, null, r, e), s.value.showDropIndicator = !1, s.value.draggingNode = null, s.value.dropNode = null, s.value.allowDrop = !0;
583
- }
584
- }), { dragState: s };
585
- }
586
- //#endregion
587
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/tree/src/tree-node.vue_vue_type_script_lang.mjs
588
- var De = N({
589
- name: "ElTreeNode",
590
- components: {
591
- ElCollapseTransition: D,
592
- ElCheckbox: E,
593
- NodeContent: N({
594
- name: "ElTreeNodeContent",
595
- props: {
596
- node: {
597
- type: Object,
598
- required: !0
599
- },
600
- renderContent: Function
601
- },
602
- setup(e) {
603
- let t = d("tree"), n = P(he), r = P(q);
604
- return () => {
605
- let i = e.node, { data: a, store: o } = i;
606
- return e.renderContent ? e.renderContent(ie, {
607
- _self: n,
608
- node: i,
609
- data: a,
610
- store: o
611
- }) : de(r.ctx.slots, "default", {
612
- node: i,
613
- data: a
614
- }, () => [ie(ee, {
615
- tag: "span",
616
- truncated: !0,
617
- class: t.be("node", "label")
618
- }, () => [i.label])]);
619
- };
620
- }
621
- }),
622
- ElIcon: b,
623
- Loading: x
624
- },
625
- props: {
626
- node: {
627
- type: $,
628
- default: () => ({})
629
- },
630
- props: {
631
- type: Object,
632
- default: () => ({})
633
- },
634
- accordion: Boolean,
635
- renderContent: Function,
636
- renderAfterExpand: Boolean,
637
- showCheckbox: Boolean
638
- },
639
- emits: ["node-expand"],
640
- setup(e, t) {
641
- let n = d("tree"), { broadcastExpanded: i } = we(e), s = P(q), c = z(!1), l = z(!1), u = z(), f = z(), p = z(), m = P(Te), h = re();
642
- R(he, h), s || r("Tree", "Can not find node's tree."), e.node.expanded && (c.value = !0, l.value = !0);
643
- let g = s.props.props.children || "children";
644
- H(() => {
645
- var t;
646
- let n = (t = e.node.data) == null ? void 0 : t[g];
647
- return n && [...n];
648
- }, () => {
649
- e.node.updateChildren();
650
- }), H(() => e.node.indeterminate, (t) => {
651
- b(e.node.checked, t);
652
- }), H(() => e.node.checked, (t) => {
653
- b(t, e.node.indeterminate);
654
- }), H(() => e.node.childNodes.length, () => e.node.reInitChecked()), H(() => e.node.expanded, (e) => {
655
- F(() => c.value = e), e && (l.value = !0);
656
- });
657
- let _ = (e) => s.props.nodeKey ? J(s.props.nodeKey, e.data) : e.id, v = (t) => {
658
- let n = e.props.class;
659
- if (!n) return {};
660
- let r;
661
- if (o(n)) {
662
- let { data: e } = t;
663
- r = n(e, t);
664
- } else r = n;
665
- return a(r) ? { [r]: !0 } : r;
666
- }, b = (t, n) => {
667
- (u.value !== t || f.value !== n) && s.ctx.emit("check-change", e.node.data, t, n), u.value = t, f.value = n;
668
- }, x = (t) => {
669
- Y(s.store, s.ctx.emit, () => {
670
- var t;
671
- if (!(s == null || (t = s.props) == null) && t.nodeKey) {
672
- let t = _(e.node);
673
- s.store.value.setCurrentNodeKey(t);
674
- } else s.store.value.setCurrentNode(e.node);
675
- }), s.currentNode.value = e.node, s.props.expandOnClickNode && C(), (s.props.checkOnClickNode || e.node.isLeaf && s.props.checkOnClickLeaf && e.showCheckbox) && !e.node.disabled && w(!e.node.checked), s.ctx.emit("node-click", e.node.data, e.node, h, t);
676
- }, S = (t) => {
677
- var n;
678
- (n = s.instance.vnode.props) != null && n.onNodeContextmenu && (t.stopPropagation(), t.preventDefault()), s.ctx.emit("node-contextmenu", t, e.node.data, e.node, h);
679
- }, C = () => {
680
- e.node.isLeaf || (c.value ? (s.ctx.emit("node-collapse", e.node.data, e.node, h), e.node.collapse()) : e.node.expand(() => {
681
- t.emit("node-expand", e.node.data, e.node, h);
682
- }));
683
- }, w = (t) => {
684
- let n = s == null ? void 0 : s.props.checkStrictly, r = e.node.childNodes;
685
- !n && r.length && (t = r.some((e) => !e.isEffectivelyChecked)), e.node.setChecked(t, !n), F(() => {
686
- let t = s.store.value;
687
- s.ctx.emit("check", e.node.data, {
688
- checkedNodes: t.getCheckedNodes(),
689
- checkedKeys: t.getCheckedKeys(),
690
- halfCheckedNodes: t.getHalfCheckedNodes(),
691
- halfCheckedKeys: t.getHalfCheckedKeys()
692
- });
693
- });
694
- };
695
- return {
696
- ns: n,
697
- node$: p,
698
- tree: s,
699
- expanded: c,
700
- childNodeRendered: l,
701
- oldChecked: u,
702
- oldIndeterminate: f,
703
- getNodeKey: _,
704
- getNodeClass: v,
705
- handleSelectChange: b,
706
- handleClick: x,
707
- handleContextMenu: S,
708
- handleExpandIconClick: C,
709
- handleCheckChange: w,
710
- handleChildNodeExpand: (e, t, n) => {
711
- i(t), s.ctx.emit("node-expand", e, t, n);
712
- },
713
- handleDragStart: (t) => {
714
- s.props.draggable && m.treeNodeDragStart({
715
- event: t,
716
- treeNode: e
717
- });
718
- },
719
- handleDragOver: (t) => {
720
- t.preventDefault(), s.props.draggable && m.treeNodeDragOver({
721
- event: t,
722
- treeNode: {
723
- $el: p.value,
724
- node: e.node
725
- }
726
- });
727
- },
728
- handleDrop: (e) => {
729
- e.preventDefault();
730
- },
731
- handleDragEnd: (e) => {
732
- s.props.draggable && m.treeNodeDragEnd(e);
733
- },
734
- CaretRight: y
735
- };
736
- }
737
- }), Oe = [
738
- "aria-expanded",
739
- "aria-disabled",
740
- "aria-checked",
741
- "draggable",
742
- "data-key"
743
- ], ke = ["aria-expanded"];
744
- function Ae(e, t, n, r, i, a) {
745
- let o = B("el-icon"), s = B("el-checkbox"), c = B("loading"), l = B("node-content"), u = B("el-tree-node"), d = B("el-collapse-transition");
746
- return W((L(), A("div", {
747
- ref: "node$",
748
- class: I([
749
- e.ns.b("node"),
750
- e.ns.is("expanded", e.expanded),
751
- e.ns.is("current", e.node.isCurrent),
752
- e.ns.is("hidden", !e.node.visible),
753
- e.ns.is("focusable", !e.node.disabled),
754
- e.ns.is("checked", !e.node.disabled && e.node.checked),
755
- e.getNodeClass(e.node)
756
- ]),
757
- role: "treeitem",
758
- tabindex: "-1",
759
- "aria-expanded": e.expanded,
760
- "aria-disabled": e.node.disabled,
761
- "aria-checked": e.node.checked,
762
- draggable: e.tree.props.draggable,
763
- "data-key": e.getNodeKey(e.node),
764
- onClick: t[2] || (t[2] = G((...t) => e.handleClick && e.handleClick(...t), ["stop"])),
765
- onContextmenu: t[3] || (t[3] = (...t) => e.handleContextMenu && e.handleContextMenu(...t)),
766
- onDragstart: t[4] || (t[4] = G((...t) => e.handleDragStart && e.handleDragStart(...t), ["stop"])),
767
- onDragover: t[5] || (t[5] = G((...t) => e.handleDragOver && e.handleDragOver(...t), ["stop"])),
768
- onDragend: t[6] || (t[6] = G((...t) => e.handleDragEnd && e.handleDragEnd(...t), ["stop"])),
769
- onDrop: t[7] || (t[7] = G((...t) => e.handleDrop && e.handleDrop(...t), ["stop"]))
770
- }, [j("div", {
771
- class: I(e.ns.be("node", "content")),
772
- style: ae({ paddingLeft: (e.node.level - 1) * e.tree.props.indent + "px" })
773
- }, [
774
- e.tree.props.icon || e.CaretRight ? (L(), O(o, {
775
- key: 0,
776
- class: I([
777
- e.ns.be("node", "expand-icon"),
778
- e.ns.is("leaf", e.node.isLeaf),
779
- { expanded: !e.node.isLeaf && e.expanded }
780
- ]),
781
- onClick: G(e.handleExpandIconClick, ["stop"])
782
- }, {
783
- default: U(() => [(L(), O(fe(e.tree.props.icon || e.CaretRight)))]),
784
- _: 1
785
- }, 8, ["class", "onClick"])) : k("v-if", !0),
786
- e.showCheckbox ? (L(), O(s, {
787
- key: 1,
788
- "model-value": e.node.checked,
789
- indeterminate: e.node.indeterminate,
790
- disabled: !!e.node.disabled,
791
- onClick: t[0] || (t[0] = G(() => {}, ["stop"])),
792
- onChange: e.handleCheckChange
793
- }, null, 8, [
794
- "model-value",
795
- "indeterminate",
796
- "disabled",
797
- "onChange"
798
- ])) : k("v-if", !0),
799
- e.node.loading ? (L(), O(o, {
800
- key: 2,
801
- class: I([e.ns.be("node", "loading-icon"), e.ns.is("loading")])
802
- }, {
803
- default: U(() => [M(c)]),
804
- _: 1
805
- }, 8, ["class"])) : k("v-if", !0),
806
- M(l, {
807
- node: e.node,
808
- "render-content": e.renderContent
809
- }, null, 8, ["node", "render-content"])
810
- ], 6), M(d, null, {
811
- default: U(() => [!e.renderAfterExpand || e.childNodeRendered ? W((L(), A("div", {
812
- key: 0,
813
- class: I(e.ns.be("node", "children")),
814
- role: "group",
815
- "aria-expanded": e.expanded,
816
- onClick: t[1] || (t[1] = G(() => {}, ["stop"]))
817
- }, [(L(!0), A(te, null, ue(e.node.childNodes, (t) => (L(), O(u, {
818
- key: e.getNodeKey(t),
819
- "render-content": e.renderContent,
820
- "render-after-expand": e.renderAfterExpand,
821
- "show-checkbox": e.showCheckbox,
822
- node: t,
823
- accordion: e.accordion,
824
- props: e.props,
825
- onNodeExpand: e.handleChildNodeExpand
826
- }, null, 8, [
827
- "render-content",
828
- "render-after-expand",
829
- "show-checkbox",
830
- "node",
831
- "accordion",
832
- "props",
833
- "onNodeExpand"
834
- ]))), 128))], 10, ke)), [[V, e.expanded]]) : k("v-if", !0)]),
835
- _: 1
836
- })], 42, Oe)), [[V, e.node.visible]]);
837
- }
838
- var je = /* @__PURE__ */ T(De, [["render", Ae]]);
839
- //#endregion
840
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/tree/src/model/useKeydown.mjs
841
- function Me({ el$: r }, i) {
842
- let a = d("tree");
843
- se(() => {
844
- s();
845
- }), ce(() => {
846
- var e;
847
- (e = r.value) == null || e.querySelectorAll("input[type=checkbox]").forEach((e) => {
848
- e.setAttribute("tabindex", "-1");
849
- });
850
- });
851
- function o(e, t) {
852
- var n, r;
853
- let a = i.value.getNode(e[t].dataset.key);
854
- return a.canFocus && a.visible && (((n = a.parent) == null ? void 0 : n.expanded) || ((r = a.parent) == null ? void 0 : r.level) === 0);
855
- }
856
- n(r, "keydown", (n) => {
857
- let i = n.target;
858
- if (!i.className.includes(a.b("node"))) return;
859
- let s = t(n), c = Array.from(r.value.querySelectorAll(`.${a.is("focusable")}[role=treeitem]`)), l = c.indexOf(i), u;
860
- if ([e.up, e.down].includes(s)) {
861
- if (n.preventDefault(), s === e.up) {
862
- u = l === -1 ? 0 : l === 0 ? c.length - 1 : l - 1;
863
- let e = u;
864
- for (; !o(c, u);) {
865
- if (u--, u === e) {
866
- u = -1;
867
- break;
868
- }
869
- u < 0 && (u = c.length - 1);
870
- }
871
- } else {
872
- u = l === -1 ? 0 : l < c.length - 1 ? l + 1 : 0;
873
- let e = u;
874
- for (; !o(c, u);) {
875
- if (u++, u === e) {
876
- u = -1;
877
- break;
878
- }
879
- u >= c.length && (u = 0);
880
- }
881
- }
882
- u !== -1 && c[u].focus();
883
- }
884
- [e.left, e.right].includes(s) && (n.preventDefault(), i.click());
885
- let d = i.querySelector("[type=\"checkbox\"]");
886
- [
887
- e.enter,
888
- e.numpadEnter,
889
- e.space
890
- ].includes(s) && d && (n.preventDefault(), d.click());
891
- });
892
- let s = () => {
893
- var e;
894
- if (!r.value) return;
895
- let t = Array.from(r.value.querySelectorAll(`.${a.is("focusable")}[role=treeitem]`));
896
- Array.from(r.value.querySelectorAll("input[type=checkbox]")).forEach((e) => {
897
- e.setAttribute("tabindex", "-1");
898
- });
899
- let n = r.value.querySelectorAll(`.${a.is("checked")}[role=treeitem]`);
900
- if (n.length) {
901
- n[0].setAttribute("tabindex", "0");
902
- return;
903
- }
904
- (e = t[0]) == null || e.setAttribute("tabindex", "0");
905
- };
906
- }
907
- //#endregion
908
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/tree/src/tree.vue_vue_type_script_lang.mjs
909
- var Ne = N({
910
- name: "ElTree",
911
- components: { ElTreeNode: je },
912
- props: _e,
913
- emits: ve,
914
- setup(e, t) {
915
- let { t: n } = S(), r = d("tree"), i = z(new Ce({
916
- key: e.nodeKey,
917
- data: e.data,
918
- lazy: e.lazy,
919
- props: e.props,
920
- load: e.load,
921
- currentNodeKey: e.currentNodeKey,
922
- checkStrictly: e.checkStrictly,
923
- checkDescendants: e.checkDescendants,
924
- defaultCheckedKeys: e.defaultCheckedKeys,
925
- defaultExpandedKeys: e.defaultExpandedKeys,
926
- autoExpandParent: e.autoExpandParent,
927
- defaultExpandAll: e.defaultExpandAll,
928
- filterNodeMethod: e.filterNodeMethod
929
- }));
930
- i.value.initialize();
931
- let a = z(i.value.root), o = z(null), s = z(null), c = z(null), { broadcastExpanded: l } = we(e), { dragState: u } = Ee({
932
- props: e,
933
- ctx: t,
934
- el$: s,
935
- dropIndicator$: c,
936
- store: i
937
- });
938
- Me({ el$: s }, i);
939
- let f = re(), p = ne(() => {
940
- let e = f == null ? void 0 : f.parent;
941
- for (; e;) {
942
- if (e.type.name === "ElTreeSelect") return !0;
943
- e = e.parent;
944
- }
945
- return !1;
946
- }), m = ne(() => {
947
- let { childNodes: e } = a.value;
948
- return (!e || e.length === 0 || e.every(({ visible: e }) => !e)) && !p.value;
949
- });
950
- H(() => e.currentNodeKey, (e) => {
951
- i.value.setCurrentNodeKey(e ?? null);
952
- }), H(() => e.defaultCheckedKeys, (e, t) => {
953
- me(e, t) || i.value.setDefaultCheckedKey(e ?? []);
954
- }), H(() => e.defaultExpandedKeys, (e) => {
955
- i.value.setDefaultExpandedKeys(e ?? []);
956
- }), H(() => e.data, (e) => {
957
- i.value.setData(e);
958
- }, { deep: !0 }), H(() => e.checkStrictly, (e) => {
959
- i.value.checkStrictly = e;
960
- });
961
- let h = (t) => {
962
- if (!e.filterNodeMethod) throw Error("[Tree] filterNodeMethod is required when filter");
963
- i.value.filter(t);
964
- }, g = (t) => e.nodeKey ? J(e.nodeKey, t.data) : t.id, _ = (t) => {
965
- if (!e.nodeKey) throw Error(`[Tree] nodeKey is required in ${t}`);
966
- }, v = (e) => {
967
- _("getNodePath");
968
- let t = i.value.getNode(e);
969
- if (!t) return [];
970
- let n = [t.data], r = t.parent;
971
- for (; r && r !== a.value;) n.push(r.data), r = r.parent;
972
- return n.reverse();
973
- }, y = (e, t) => i.value.getCheckedNodes(e, t), b = (e) => i.value.getCheckedKeys(e), x = () => {
974
- let e = i.value.getCurrentNode();
975
- return e ? e.data : null;
976
- };
977
- return R(q, {
978
- ctx: t,
979
- props: e,
980
- store: i,
981
- root: a,
982
- currentNode: o,
983
- instance: f
984
- }), R(w, void 0), {
985
- ns: r,
986
- store: i,
987
- root: a,
988
- currentNode: o,
989
- dragState: u,
990
- el$: s,
991
- dropIndicator$: c,
992
- isEmpty: m,
993
- filter: h,
994
- getNodeKey: g,
995
- getNodePath: v,
996
- getCheckedNodes: y,
997
- getCheckedKeys: b,
998
- getCurrentNode: x,
999
- getCurrentKey: () => {
1000
- _("getCurrentKey");
1001
- let t = x();
1002
- return t ? t[e.nodeKey] : null;
1003
- },
1004
- setCheckedNodes: (e, t) => {
1005
- _("setCheckedNodes"), i.value.setCheckedNodes(e, t);
1006
- },
1007
- setCheckedKeys: (e, t) => {
1008
- _("setCheckedKeys"), i.value.setCheckedKeys(e, t);
1009
- },
1010
- setChecked: (e, t, n) => {
1011
- i.value.setChecked(e, t, n);
1012
- },
1013
- getHalfCheckedNodes: () => i.value.getHalfCheckedNodes(),
1014
- getHalfCheckedKeys: () => i.value.getHalfCheckedKeys(),
1015
- setCurrentNode: (e, n = !0) => {
1016
- _("setCurrentNode"), Y(i, t.emit, () => {
1017
- l(e), i.value.setUserCurrentNode(e, n);
1018
- });
1019
- },
1020
- setCurrentKey: (e = null, n = !0) => {
1021
- _("setCurrentKey"), Y(i, t.emit, () => {
1022
- l(), i.value.setCurrentNodeKey(e, n);
1023
- });
1024
- },
1025
- t: n,
1026
- getNode: (e) => i.value.getNode(e),
1027
- remove: (e) => {
1028
- i.value.remove(e);
1029
- },
1030
- append: (e, t) => {
1031
- i.value.append(e, t);
1032
- },
1033
- insertBefore: (e, t) => {
1034
- i.value.insertBefore(e, t);
1035
- },
1036
- insertAfter: (e, t) => {
1037
- i.value.insertAfter(e, t);
1038
- },
1039
- handleNodeExpand: (e, n, r) => {
1040
- l(n), t.emit("node-expand", e, n, r);
1041
- },
1042
- updateKeyChildren: (e, t) => {
1043
- _("updateKeyChildren"), i.value.updateChildren(e, t);
1044
- }
1045
- };
1046
- }
1047
- });
1048
- //#endregion
1049
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/tree/src/tree2.mjs
1050
- function Pe(e, t, n, r, i, a) {
1051
- let o = B("el-tree-node");
1052
- return L(), A("div", {
1053
- ref: "el$",
1054
- class: I([
1055
- e.ns.b(),
1056
- e.ns.is("dragging", !!e.dragState.draggingNode),
1057
- e.ns.is("drop-not-allow", !e.dragState.allowDrop),
1058
- e.ns.is("drop-inner", e.dragState.dropType === "inner"),
1059
- { [e.ns.m("highlight-current")]: e.highlightCurrent }
1060
- ]),
1061
- role: "tree"
1062
- }, [
1063
- (L(!0), A(te, null, ue(e.root.childNodes, (t) => (L(), O(o, {
1064
- key: e.getNodeKey(t),
1065
- node: t,
1066
- props: e.props,
1067
- accordion: e.accordion,
1068
- "render-after-expand": e.renderAfterExpand,
1069
- "show-checkbox": e.showCheckbox,
1070
- "render-content": e.renderContent,
1071
- onNodeExpand: e.handleNodeExpand
1072
- }, null, 8, [
1073
- "node",
1074
- "props",
1075
- "accordion",
1076
- "render-after-expand",
1077
- "show-checkbox",
1078
- "render-content",
1079
- "onNodeExpand"
1080
- ]))), 128)),
1081
- e.isEmpty ? (L(), A("div", {
1082
- key: 0,
1083
- class: I(e.ns.e("empty-block"))
1084
- }, [de(e.$slots, "empty", {}, () => [j("span", { class: I(e.ns.e("empty-text")) }, pe(e.emptyText ?? e.t("el.tree.emptyText")), 3)])], 2)) : k("v-if", !0),
1085
- W(j("div", {
1086
- ref: "dropIndicator$",
1087
- class: I(e.ns.e("drop-indicator"))
1088
- }, null, 2), [[V, e.dragState.showDropIndicator]])
1089
- ], 2);
1090
- }
1091
- //#endregion
1092
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/tree/index.mjs
1093
- var Fe = f(/* @__PURE__ */ T(Ne, [["render", Pe]]));
1094
- //#endregion
1095
- export { Fe as t };