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