@web-utils/component 4.0.16 → 5.0.0-beta02

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 (325) hide show
  1. package/address-input/index.mjs +76 -74
  2. package/affix/index.mjs +71 -78
  3. package/aside-menu/index.mjs +20 -31
  4. package/avatar/index.mjs +94 -82
  5. package/awesome-button/index.mjs +54 -71
  6. package/capsule-tab/index.mjs +27 -32
  7. package/card/index.mjs +86 -69
  8. package/carousel/index.mjs +45 -32
  9. package/chat/index.mjs +441 -266
  10. package/chunk-file-uploader/index.mjs +2 -103
  11. package/chunks/ChunkFileUploader.C3EA0e5t.mjs +114 -0
  12. package/chunks/EditableTree.D0ByhRTi.mjs +648 -0
  13. package/chunks/ElementBaseInfo.B3pY8TkD.mjs +209 -0
  14. package/chunks/ElementDialog.DNsDHdQS.mjs +251 -0
  15. package/chunks/ElementForm.D_lXbe--.mjs +627 -0
  16. package/chunks/ElementListeners.Cufwd4bp.mjs +656 -0
  17. package/chunks/ElementMultiInstance.BhY8NY2z.mjs +290 -0
  18. package/chunks/ElementOtherConfig.DX1ZJ9w2.mjs +51 -0
  19. package/chunks/ElementProperties.BRafADXp.mjs +196 -0
  20. package/chunks/ElementTaskConfig.B6pqRir_.mjs +446 -0
  21. package/chunks/FlowCondition.Dvwji23j.mjs +194 -0
  22. package/chunks/FlowDesigner.LL-vXDIE.mjs +5100 -0
  23. package/chunks/FormBlock.Co7l6USP.mjs +117 -0
  24. package/chunks/FormCascader.DMY3uNc8.mjs +1227 -0
  25. package/chunks/FormInputTime.BC4FfWwY.mjs +1774 -0
  26. package/chunks/FormItem.BSXI2cZU.mjs +89 -0
  27. package/chunks/FormItemGroup.D2Htta7J.mjs +149 -0
  28. package/chunks/FormSelect.CY0K-izg.mjs +1473 -0
  29. package/chunks/FormSwitch.DLqFXaFF.mjs +297 -0
  30. package/chunks/FormTemp.PJFfNRls.mjs +139 -0
  31. package/chunks/FyCurd.me083T8V.mjs +2622 -0
  32. package/chunks/FyForm.vVp8aVtj.mjs +906 -0
  33. package/chunks/FyFormDesign.BCxVyiWY.mjs +5600 -0
  34. package/chunks/FyUEditor.BymtA5SJ.mjs +221 -0
  35. package/chunks/FyUpload.CA7Gfa6Q.mjs +504 -0
  36. package/chunks/ImagePreview.ByEWJYdu.mjs +639 -0
  37. package/chunks/Keyboard.4hi7CjGc.mjs +379 -0
  38. package/chunks/MonacoEditor.B7BUQwb7.mjs +302 -0
  39. package/chunks/PageableTable.Ba3XSbZ5.mjs +660 -0
  40. package/chunks/RecordVideo.VRFTaHSp.mjs +116 -0
  41. package/chunks/SignalAndMessage.DYhKWs3X.mjs +198 -0
  42. package/chunks/SplitPane.Bwe5Rc0J.mjs +219 -0
  43. package/chunks/TableColumn.72HOXQkb.mjs +186 -0
  44. package/chunks/TableView.BxfsOAxU.mjs +484 -0
  45. package/chunks/Toolbar.BVziVmyT.mjs +219 -0
  46. package/chunks/UserTaskListeners.CkeyTpnn.mjs +599 -0
  47. package/chunks/VueCron.DEvY5-i7.mjs +1823 -0
  48. package/chunks/VueTreeSelect.C6Ycu28Z.mjs +1873 -0
  49. package/chunks/_plugin-vue_export-helper.7vrlOII_.mjs +8 -0
  50. package/chunks/checkbox.C_9WZ8gc.mjs +437 -0
  51. package/chunks/confirmable-mixin.zegaXQTl.mjs +1762 -0
  52. package/chunks/core.DXaMPWGV.mjs +51 -0
  53. package/chunks/dataformat.CteBVoOe.mjs +144 -0
  54. package/chunks/dic.C0abEij9.mjs +116 -0
  55. package/chunks/dictionary.BRhZD-WH.mjs +19 -0
  56. package/chunks/dictionary.CNNpjPL2.mjs +87 -0
  57. package/chunks/event.B4iwtUNO.mjs +4 -0
  58. package/chunks/event.Dv4XTu8B.mjs +224 -0
  59. package/chunks/focus-trap.FbvlqAGe.mjs +211 -0
  60. package/chunks/form-input.BUGZmAI1.mjs +34 -0
  61. package/chunks/form-item.Ca8U2bIR.mjs +712 -0
  62. package/chunks/form-pick.DT5kumy4.mjs +7 -0
  63. package/chunks/form-validate.CUvMwtPN.mjs +11 -0
  64. package/chunks/icon.CxCY22-F.mjs +26 -0
  65. package/chunks/icon.ym7735_x.mjs +251 -0
  66. package/chunks/init.6jGmuY99.mjs +115 -0
  67. package/chunks/input.C2GWsuXE.mjs +547 -0
  68. package/chunks/install.yLcn5MLL.mjs +84 -0
  69. package/chunks/message.C4NdvfbE.mjs +400 -0
  70. package/chunks/packages.BLDb9e6G.mjs +56 -0
  71. package/chunks/permission.C-IUDxQQ.mjs +16 -0
  72. package/chunks/photo-swipe.BxnG4lip.mjs +55 -0
  73. package/chunks/radio.CeLeSOEo.mjs +273 -0
  74. package/chunks/scroll.DWjS-gnW.mjs +28 -0
  75. package/chunks/scrollbar.CAmrlKi9.mjs +345 -0
  76. package/chunks/slot.DT5QwXL-.mjs +25 -0
  77. package/chunks/style.BmlGmjpO.mjs +325 -0
  78. package/chunks/sub-table-plus-props.CRX7ERxJ.mjs +28 -0
  79. package/chunks/tab-mixin.7zuMMM1E.mjs +70 -0
  80. package/chunks/tag.ZhEIVRpP.mjs +141 -0
  81. package/chunks/tooltip.DNiltmX1.mjs +1939 -0
  82. package/chunks/typescript.CLl-2siQ.mjs +18 -0
  83. package/chunks/use-aria.BW7nWOl1.mjs +17 -0
  84. package/chunks/use-composition.mUaomyno.mjs +47 -0
  85. package/chunks/use-deprecated.BfDSbZS9.mjs +12 -0
  86. package/chunks/use-empty-values.D8KYIiKR.mjs +81 -0
  87. package/chunks/use-form-item.BlWa7ZKe.mjs +56 -0
  88. package/chunks/use-global-config.DRovgom9.mjs +57 -0
  89. package/chunks/use-locale.Be9HCpTQ.mjs +188 -0
  90. package/chunks/util.Ce4MHRmD.mjs +103 -0
  91. package/chunks/util.g-WQEec9.mjs +223 -0
  92. package/chunks/utilSelf.BttmSVX6.mjs +46 -0
  93. package/chunks/utils.BGJfM4oG.mjs +60 -0
  94. package/chunks/utils.CSPl1l4f.mjs +14 -0
  95. package/chunks/validator.DuBSEj8O.mjs +5 -0
  96. package/chunks/vnode.C3PXzhmg.mjs +14 -0
  97. package/code-mirror-editor/index.mjs +89 -88
  98. package/comment/index.mjs +62 -57
  99. package/configComponents.mjs +40 -50
  100. package/confirm-button/index.mjs +34 -46
  101. package/confirmable/index.mjs +7 -17
  102. package/context-menu/index.mjs +195 -174
  103. package/count-up/index.mjs +97 -105
  104. package/custom-scrollbar/index.mjs +91 -98
  105. package/data-box/index.mjs +64 -44
  106. package/data-box/style.css +1 -1
  107. package/data-card/index.mjs +60 -47
  108. package/data-card/style.css +1 -1
  109. package/data-card-text/index.mjs +63 -49
  110. package/data-display/index.mjs +71 -51
  111. package/data-display/style.css +1 -1
  112. package/data-icons/index.mjs +70 -50
  113. package/data-icons/style.css +1 -1
  114. package/data-imgtext/index.mjs +67 -43
  115. package/data-imgtext/style.css +1 -1
  116. package/data-operatext/index.mjs +51 -40
  117. package/data-operatext/style.css +1 -1
  118. package/data-panel/index.mjs +57 -44
  119. package/data-panel/style.css +1 -1
  120. package/data-pay/index.mjs +105 -48
  121. package/data-pay/style.css +1 -1
  122. package/data-price/index.mjs +48 -40
  123. package/data-price/style.css +1 -1
  124. package/data-progress/index.mjs +67 -44
  125. package/data-progress/style.css +1 -1
  126. package/data-rotate/index.mjs +61 -44
  127. package/data-rotate/style.css +1 -1
  128. package/data-table-picker/index.mjs +119 -71
  129. package/data-tabs/index.mjs +67 -44
  130. package/data-tabs/style.css +1 -1
  131. package/dialog-form/index.mjs +143 -87
  132. package/dynamic-table/index.mjs +166 -109
  133. package/e-charts/index.mjs +174 -200
  134. package/easy-popup/index.mjs +91 -102
  135. package/editable-progress/index.mjs +112 -83
  136. package/editable-tree/index.mjs +2 -481
  137. package/element-dialog/index.mjs +2 -306
  138. package/ellipsis/index.mjs +124 -148
  139. package/empty-view/index.mjs +48 -65
  140. package/error-view/index.mjs +39 -51
  141. package/flex-column/index.mjs +34 -51
  142. package/flex-item/index.mjs +60 -64
  143. package/flex-row/index.mjs +33 -39
  144. package/flex-scroller/index.mjs +29 -30
  145. package/flow/index.mjs +240 -247
  146. package/flow-designer/index.mjs +2 -4709
  147. package/flow-node/index.mjs +56 -64
  148. package/flow-viewer/index.mjs +159 -157
  149. package/form-block/index.mjs +2 -147
  150. package/form-button/index.mjs +35 -47
  151. package/form-card/index.mjs +14 -25
  152. package/form-cascader/index.mjs +2 -115
  153. package/form-checkbox/index.mjs +89 -70
  154. package/form-checkbox-group/index.mjs +161 -113
  155. package/form-date-picker/index.mjs +155 -142
  156. package/form-holder/index.mjs +134 -109
  157. package/form-input/index.mjs +113 -86
  158. package/form-input-cron-expression/index.mjs +97 -76
  159. package/form-input-email/index.mjs +65 -51
  160. package/form-input-id-card/index.mjs +73 -54
  161. package/form-input-phone-number/index.mjs +72 -56
  162. package/form-input-tag/index.mjs +88 -61
  163. package/form-input-time/index.mjs +2 -73
  164. package/form-item/index.mjs +2 -142
  165. package/form-item-config-provider/index.mjs +46 -60
  166. package/form-item-group/index.mjs +2 -157
  167. package/form-radio-group/index.mjs +161 -121
  168. package/form-select/index.mjs +2 -179
  169. package/form-switch/index.mjs +2 -54
  170. package/form-table/index.mjs +131 -84
  171. package/form-table-plus/index.mjs +164 -108
  172. package/form-textarea/index.mjs +90 -56
  173. package/form-tree-select/index.mjs +89 -71
  174. package/form-tree-select-multiple/index.mjs +92 -77
  175. package/form-view/index.mjs +280 -207
  176. package/fy-array/index.mjs +121 -70
  177. package/fy-article/index.mjs +73 -60
  178. package/fy-cascader/index.mjs +113 -90
  179. package/fy-checkbox/index.mjs +96 -64
  180. package/fy-code/index.mjs +48 -50
  181. package/fy-curd/index.mjs +2 -1879
  182. package/fy-date/index.mjs +76 -41
  183. package/fy-draggable/index.mjs +322 -317
  184. package/fy-dynamic/index.mjs +259 -224
  185. package/fy-empty/index.mjs +35 -36
  186. package/fy-form/index.mjs +2 -640
  187. package/fy-form-design/index.mjs +2 -2852
  188. package/fy-form-design/style.css +1 -1
  189. package/fy-from/crud/zh.d.ts +1 -1
  190. package/fy-input/index.mjs +117 -97
  191. package/fy-input-color/index.mjs +77 -54
  192. package/fy-input-icon/index.mjs +129 -82
  193. package/fy-input-map/index.mjs +242 -183
  194. package/fy-input-number/index.mjs +74 -49
  195. package/fy-input-table/index.mjs +160 -105
  196. package/fy-input-tree/index.mjs +259 -178
  197. package/fy-progress/index.mjs +36 -39
  198. package/fy-radio/index.mjs +53 -37
  199. package/fy-rate/index.mjs +86 -70
  200. package/fy-select/index.mjs +224 -137
  201. package/fy-slider/index.mjs +68 -43
  202. package/fy-switch/index.mjs +67 -41
  203. package/fy-tabs/index.mjs +46 -46
  204. package/fy-time/index.mjs +81 -53
  205. package/fy-title/index.mjs +18 -27
  206. package/fy-tree/index.mjs +382 -286
  207. package/fy-u-editor/index.mjs +2 -357
  208. package/fy-upload/index.mjs +2 -421
  209. package/guide-steps/index.mjs +72 -71
  210. package/helper-function.d.ts +3 -30
  211. package/helper-function.mjs +48 -67
  212. package/highlight-j-s/index.mjs +50 -59
  213. package/icon-card/index.mjs +34 -36
  214. package/icon-temp/index.mjs +27 -27
  215. package/iframe-window/index.mjs +39 -32
  216. package/image-cropper/index.mjs +171 -73
  217. package/image-preview/index.mjs +2 -116
  218. package/image-viewer/index.mjs +69 -66
  219. package/index.d.ts +3 -9
  220. package/index.mjs +173 -488
  221. package/input-number-range/index.mjs +78 -58
  222. package/j-s-x-component/index.mjs +13 -15
  223. package/keyboard/index.mjs +2 -369
  224. package/license/index.mjs +106 -115
  225. package/loading-view/index.mjs +39 -51
  226. package/login/index.mjs +252 -120
  227. package/monaco-editor/index.mjs +2 -7
  228. package/name-avatar/index.mjs +61 -53
  229. package/nav-bar/index.mjs +33 -30
  230. package/not-implement/index.mjs +10 -22
  231. package/notice/index.mjs +100 -93
  232. package/package.json +7 -7
  233. package/page/index.mjs +18 -25
  234. package/page-header/index.mjs +27 -33
  235. package/page-index/index.mjs +121 -99
  236. package/page-index-top/index.mjs +79 -74
  237. package/page-skeleton/index.mjs +47 -44
  238. package/page-skeleton-new/index.mjs +79 -49
  239. package/pageable-table/index.mjs +2 -512
  240. package/pageable-view/index.mjs +279 -274
  241. package/photo-swipe/index.d.ts +4 -0
  242. package/photo-swipe/index.mjs +33 -36
  243. package/picker-table-view/index.mjs +224 -117
  244. package/present-view/index.mjs +271 -196
  245. package/queue/index.mjs +45 -53
  246. package/record-video/index.mjs +2 -134
  247. package/resize-observer/index.mjs +43 -46
  248. package/search/index.mjs +116 -107
  249. package/sign/index.mjs +103 -110
  250. package/sign-panel/index.mjs +182 -141
  251. package/skeleton/index.mjs +51 -54
  252. package/skeleton-panel/index.mjs +33 -37
  253. package/split-pane/index.mjs +3 -196
  254. package/stateful/index.mjs +70 -73
  255. package/static-pageable-table/index.mjs +72 -64
  256. package/sub-table/index.mjs +508 -206
  257. package/sub-table-plus/index.mjs +592 -230
  258. package/swiper/index.mjs +128 -120
  259. package/tab/index.mjs +117 -119
  260. package/tab-item/index.mjs +48 -56
  261. package/table-column/index.mjs +2 -225
  262. package/table-view/index.mjs +3 -326
  263. package/tabs-view/index.mjs +109 -104
  264. package/tag-render/index.mjs +79 -67
  265. package/text-ellipsis/index.mjs +94 -77
  266. package/toolbar/index.mjs +2 -254
  267. package/toolbar-button/index.mjs +142 -120
  268. package/verify/index.mjs +58 -64
  269. package/vue-cron/index.mjs +2 -1180
  270. package/vue-qr-code/index.mjs +31 -54
  271. package/vue-quill-editor/index.mjs +123 -99
  272. package/vue-tags-input/index.mjs +348 -431
  273. package/vue-tree-select/index.mjs +2 -2627
  274. package/vue-video-player/index.mjs +135 -136
  275. package/watermark/index.mjs +46 -74
  276. package/web-types.json +225 -969
  277. package/x-input-tag/index.mjs +144 -106
  278. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  279. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  280. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  281. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  282. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  283. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  284. package/chunks/ElementTaskConfig.Bko0kgTp.mjs +0 -317
  285. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  286. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  287. package/chunks/MonacoEditor.D31t4FTy.mjs +0 -327
  288. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  289. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  290. package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +0 -10
  291. package/chunks/confirmable-mixin.B2TtLAdk.mjs +0 -86
  292. package/chunks/core.0Exl13Mz.mjs +0 -54
  293. package/chunks/dataformat.CpqOeGBl.mjs +0 -154
  294. package/chunks/dic.Dkl-leRW.mjs +0 -128
  295. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  296. package/chunks/dictionary.DqiP9x2m.mjs +0 -25
  297. package/chunks/event.9aDS6jcw.mjs +0 -236
  298. package/chunks/form-input.CvFdwlEV.mjs +0 -31
  299. package/chunks/form-item.LWjePsPa.mjs +0 -233
  300. package/chunks/form-pick.BFTIVn_i.mjs +0 -11
  301. package/chunks/form-validate.CVarNHKX.mjs +0 -12
  302. package/chunks/helper.BiMLcEEk.mjs +0 -41
  303. package/chunks/index.9OxHjTIE.mjs +0 -16
  304. package/chunks/index.B2TRddqf.mjs +0 -184
  305. package/chunks/index.BmYCjxZQ.mjs +0 -47
  306. package/chunks/init.DAsXSoLW.mjs +0 -122
  307. package/chunks/packages.ByyangTp.mjs +0 -58
  308. package/chunks/permission.CO31YIkD.mjs +0 -16
  309. package/chunks/slot.DXIbhGat.mjs +0 -27
  310. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  311. package/chunks/tab-mixin.BNK6dxLN.mjs +0 -81
  312. package/chunks/util.DqFv_pWg.mjs +0 -241
  313. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  314. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  315. package/color-picker/index.mjs +0 -78
  316. package/egd-collapse/index.mjs +0 -62
  317. package/egd-collapse-item/index.mjs +0 -72
  318. package/form-input-number/index.mjs +0 -69
  319. package/form-input-number/style.css +0 -1
  320. package/input-number/index.mjs +0 -232
  321. package/input-number/style.css +0 -1
  322. package/keep-view-alive/index.mjs +0 -117
  323. package/search-popover/index.mjs +0 -118
  324. package/search-popover/style.css +0 -1
  325. /package/{base.css → utils/style.css} +0 -0
@@ -0,0 +1,1227 @@
1
+ import { d as e, g as t, o as n, p as r, s as i, t as a } from "./install.yLcn5MLL.mjs";
2
+ import { t as o } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
3
+ import { c as s, l as c, n as l, r as u } from "./use-empty-values.D8KYIiKR.mjs";
4
+ import { r as d, t as f } from "./event.B4iwtUNO.mjs";
5
+ import { i as p } from "./typescript.CLl-2siQ.mjs";
6
+ import { B as m, E as h, F as g, L as _, M as v, O as y, S as ee, _ as b, b as x, d as te, j as S, p as ne, u as re, z as ie } from "./style.BmlGmjpO.mjs";
7
+ import { n as C, r as w, t as ae } from "./tooltip.DNiltmX1.mjs";
8
+ import { t as oe } from "./input.C2GWsuXE.mjs";
9
+ import { n as se } from "./use-locale.Be9HCpTQ.mjs";
10
+ import { n as ce } from "./scroll.DWjS-gnW.mjs";
11
+ import { i as le, r as ue, s as de, t as fe } from "./use-form-item.BlWa7ZKe.mjs";
12
+ import { n as T, t as pe } from "./use-composition.mUaomyno.mjs";
13
+ import { h as E, i as D, l as me, n as he, s as ge, t as O } from "./icon.ym7735_x.mjs";
14
+ import { i as k } from "./icon.CxCY22-F.mjs";
15
+ import { i as _e, n as A } from "./form-item.Ca8U2bIR.mjs";
16
+ import { t as ve } from "./scrollbar.CAmrlKi9.mjs";
17
+ import { n as ye, r as be, t as xe } from "./tag.ZhEIVRpP.mjs";
18
+ import { t as j } from "./checkbox.C_9WZ8gc.mjs";
19
+ import { t as Se } from "./radio.CeLeSOEo.mjs";
20
+ import { d as M, n as Ce, u as N } from "./util.Ce4MHRmD.mjs";
21
+ import { t as P } from "./form-input.BUGZmAI1.mjs";
22
+ import { t as we } from "./form-pick.DT5kumy4.mjs";
23
+ import { t as Te } from "./dictionary.BRhZD-WH.mjs";
24
+ import { Comment as Ee, Fragment as F, computed as I, createBlock as L, createCommentVNode as R, createElementBlock as z, createElementVNode as B, createSlots as De, createTextVNode as Oe, createVNode as V, defineComponent as H, getCurrentInstance as ke, inject as U, mergeProps as Ae, nextTick as je, normalizeClass as W, normalizeStyle as Me, onBeforeUpdate as G, onMounted as Ne, openBlock as K, provide as Pe, reactive as Fe, ref as q, renderList as Ie, renderSlot as J, resolveComponent as Le, resolveDynamicComponent as Re, toDisplayString as Y, toHandlers as ze, unref as X, useAttrs as Be, useSlots as Ve, vModelText as He, vShow as Ue, watch as Z, withCtx as Q, withDirectives as We, withKeys as Ge, withModifiers as Ke } from "vue";
25
+ import { findTreeChildren as qe, isArray as Je, isString as Ye, setParent as Xe } from "@web-utils/core";
26
+ import { cloneDeep as Ze } from "@web-utils/integrations/lodash";
27
+ import { cloneDeep as Qe, flattenDeep as $e, isEqual as et } from "lodash-unified";
28
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/cascader-panel/src/config.mjs
29
+ var tt = S({
30
+ modelValue: { type: v([
31
+ Number,
32
+ String,
33
+ Array,
34
+ Object
35
+ ]) },
36
+ options: {
37
+ type: v(Array),
38
+ default: () => []
39
+ },
40
+ props: {
41
+ type: v(Object),
42
+ default: () => ({})
43
+ }
44
+ }), nt = {
45
+ expandTrigger: "click",
46
+ multiple: !1,
47
+ checkStrictly: !1,
48
+ emitPath: !0,
49
+ lazy: !1,
50
+ lazyLoad: i,
51
+ value: "value",
52
+ label: "label",
53
+ children: "children",
54
+ leaf: "leaf",
55
+ disabled: "disabled",
56
+ hoverThreshold: 500,
57
+ checkOnClickNode: !1,
58
+ checkOnClickLeaf: !0,
59
+ showPrefix: !0
60
+ }, rt = S({
61
+ ...tt,
62
+ border: {
63
+ type: Boolean,
64
+ default: !0
65
+ },
66
+ renderLabel: { type: Function }
67
+ }), it = (e) => !0, $ = {
68
+ [d]: it,
69
+ [f]: it,
70
+ close: () => !0,
71
+ "expand-change": (e) => e
72
+ }, at = (e) => I(() => ({
73
+ ...nt,
74
+ ...e.props
75
+ })), ot = Symbol();
76
+ //#endregion
77
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/cascader-panel/src/node-content.mjs
78
+ function st(t) {
79
+ return !!(e(t) ? t.every(({ type: e }) => e === Ee) : (t == null ? void 0 : t.type) === Ee);
80
+ }
81
+ var ct = /* @__PURE__ */ H({
82
+ name: "NodeContent",
83
+ props: { node: {
84
+ type: Object,
85
+ required: !0
86
+ } },
87
+ setup(e) {
88
+ let t = n("cascader-node"), { renderLabelFn: r } = U(ot), { node: i } = e, { data: a, label: o } = i, s = () => {
89
+ let e = r == null ? void 0 : r({
90
+ node: i,
91
+ data: a
92
+ });
93
+ return st(e) ? o : e ?? o;
94
+ };
95
+ return () => V("span", { class: t.e("label") }, [s()]);
96
+ }
97
+ }), lt = [
98
+ "id",
99
+ "aria-haspopup",
100
+ "aria-owns",
101
+ "aria-expanded",
102
+ "tabindex"
103
+ ], ut = /* @__PURE__ */ H({
104
+ name: "ElCascaderNode",
105
+ __name: "node",
106
+ props: {
107
+ node: {
108
+ type: Object,
109
+ required: !0
110
+ },
111
+ menuId: String
112
+ },
113
+ emits: ["expand"],
114
+ setup(e, { emit: t }) {
115
+ let r = e, i = t, a = U(ot), o = n("cascader-node"), s = I(() => a.isHoverMenu), c = I(() => a.config.multiple), l = I(() => a.config.checkStrictly), u = I(() => a.config.showPrefix), d = I(() => {
116
+ var e;
117
+ return (e = a.checkedNodes[0]) == null ? void 0 : e.uid;
118
+ }), f = I(() => r.node.isDisabled), p = I(() => r.node.isLeaf), m = I(() => l.value && !p.value || !f.value), h = I(() => _(a.expandingNode)), g = I(() => l.value && a.checkedNodes.some(_)), _ = (e) => {
119
+ var t;
120
+ let { level: n, uid: i } = r.node;
121
+ return (e == null || (t = e.pathNodes[n - 1]) == null ? void 0 : t.uid) === i;
122
+ }, v = () => {
123
+ h.value || a.expandNode(r.node);
124
+ }, y = (e) => {
125
+ let { node: t } = r;
126
+ e !== t.checked && a.handleCheckChange(t, e);
127
+ }, ee = () => {
128
+ a.lazyLoad(r.node, () => {
129
+ p.value || v();
130
+ });
131
+ }, b = (e) => {
132
+ s.value && (x(), !p.value && i("expand", e));
133
+ }, x = () => {
134
+ let { node: e } = r;
135
+ !m.value || e.loading || (e.loaded ? v() : ee());
136
+ }, te = () => {
137
+ p.value && !f.value && !l.value && !c.value ? ne(!0) : (a.config.checkOnClickNode && (c.value || l.value) || p.value && a.config.checkOnClickLeaf) && !f.value ? S(!r.node.checked) : s.value || x();
138
+ }, S = (e) => {
139
+ l.value ? (y(e), r.node.loaded && v()) : ne(e);
140
+ }, ne = (e) => {
141
+ r.node.loaded ? (y(e), !l.value && v()) : ee();
142
+ };
143
+ return (t, n) => (K(), z("li", {
144
+ id: `${e.menuId}-${e.node.uid}`,
145
+ role: "menuitem",
146
+ "aria-haspopup": !p.value,
147
+ "aria-owns": p.value ? void 0 : e.menuId,
148
+ "aria-expanded": h.value,
149
+ tabindex: m.value ? -1 : void 0,
150
+ class: W([
151
+ X(o).b(),
152
+ X(o).is("selectable", l.value),
153
+ X(o).is("active", e.node.checked),
154
+ X(o).is("disabled", !m.value),
155
+ h.value && "in-active-path",
156
+ g.value && "in-checked-path"
157
+ ]),
158
+ onMouseenter: b,
159
+ onFocus: b,
160
+ onClick: te
161
+ }, [
162
+ R(" prefix "),
163
+ c.value && u.value ? (K(), L(X(j), {
164
+ key: 0,
165
+ "model-value": e.node.checked,
166
+ indeterminate: e.node.indeterminate,
167
+ disabled: f.value,
168
+ onClick: n[0] || (n[0] = Ke(() => {}, ["stop"])),
169
+ "onUpdate:modelValue": S
170
+ }, null, 8, [
171
+ "model-value",
172
+ "indeterminate",
173
+ "disabled"
174
+ ])) : l.value && u.value ? (K(), L(X(Se), {
175
+ key: 1,
176
+ "model-value": d.value,
177
+ label: e.node.uid,
178
+ disabled: f.value,
179
+ "onUpdate:modelValue": S,
180
+ onClick: n[1] || (n[1] = Ke(() => {}, ["stop"]))
181
+ }, {
182
+ default: Q(() => [R("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "), n[2] || (n[2] = B("span", null, null, -1))]),
183
+ _: 1
184
+ }, 8, [
185
+ "model-value",
186
+ "label",
187
+ "disabled"
188
+ ])) : p.value && e.node.checked ? (K(), L(X(O), {
189
+ key: 2,
190
+ class: W(X(o).e("prefix"))
191
+ }, {
192
+ default: Q(() => [V(X(ge))]),
193
+ _: 1
194
+ }, 8, ["class"])) : R("v-if", !0),
195
+ R(" content "),
196
+ V(X(ct), { node: e.node }, null, 8, ["node"]),
197
+ R(" postfix "),
198
+ p.value ? R("v-if", !0) : (K(), z(F, { key: 3 }, [e.node.loading ? (K(), L(X(O), {
199
+ key: 0,
200
+ class: W([X(o).is("loading"), X(o).e("postfix")])
201
+ }, {
202
+ default: Q(() => [V(X(E))]),
203
+ _: 1
204
+ }, 8, ["class"])) : (K(), L(X(O), {
205
+ key: 1,
206
+ class: W(["arrow-right", X(o).e("postfix")])
207
+ }, {
208
+ default: Q(() => [V(X(D))]),
209
+ _: 1
210
+ }, 8, ["class"]))], 64))
211
+ ], 42, lt));
212
+ }
213
+ }), dt = /* @__PURE__ */ H({
214
+ name: "ElCascaderMenu",
215
+ __name: "menu",
216
+ props: {
217
+ nodes: {
218
+ type: Array,
219
+ required: !0
220
+ },
221
+ index: {
222
+ type: Number,
223
+ required: !0
224
+ }
225
+ },
226
+ setup(e) {
227
+ let t = e, r = ke(), i = n("cascader-menu"), { t: a } = se(), o = de(), s, c, l = U(ot), u = q(), d = I(() => !t.nodes.length), f = I(() => !l.initialLoaded), p = I(() => `${o.value}-${t.index}`), m = (e) => {
228
+ s = e.target;
229
+ }, h = (e) => {
230
+ if (!(!l.isHoverMenu || !s || !u.value)) if (s.contains(e.target)) {
231
+ var t;
232
+ g();
233
+ let n = r.vnode.el, { left: a } = n.getBoundingClientRect(), { offsetWidth: o, offsetHeight: c } = n, l = e.clientX - a, d = s.offsetTop, f = d + s.offsetHeight, p = ((t = n.querySelector(`.${i.e("wrap")}`)) == null ? void 0 : t.scrollTop) || 0;
234
+ u.value.innerHTML = `
235
+ <path style="pointer-events: auto;" fill="transparent" d="M${l} ${d} L${o} ${p} V${d} Z" />
236
+ <path style="pointer-events: auto;" fill="transparent" d="M${l} ${f} L${o} ${c + p} V${f} Z" />
237
+ `;
238
+ } else c || (c = window.setTimeout(_, l.config.hoverThreshold));
239
+ }, g = () => {
240
+ c && (clearTimeout(c), c = void 0);
241
+ }, _ = () => {
242
+ u.value && (u.value.innerHTML = "", g());
243
+ };
244
+ return (t, n) => (K(), L(X(ve), {
245
+ key: p.value,
246
+ tag: "ul",
247
+ role: "menu",
248
+ class: W(X(i).b()),
249
+ "wrap-class": X(i).e("wrap"),
250
+ "view-class": [X(i).e("list"), X(i).is("empty", d.value)],
251
+ onMousemove: h,
252
+ onMouseleave: _
253
+ }, {
254
+ default: Q(() => {
255
+ var n;
256
+ return [
257
+ (K(!0), z(F, null, Ie(e.nodes, (e) => (K(), L(ut, {
258
+ key: e.uid,
259
+ node: e,
260
+ "menu-id": p.value,
261
+ onExpand: m
262
+ }, null, 8, ["node", "menu-id"]))), 128)),
263
+ f.value ? (K(), z("div", {
264
+ key: 0,
265
+ class: W(X(i).e("empty-text"))
266
+ }, [V(X(O), {
267
+ size: "14",
268
+ class: W(X(i).is("loading"))
269
+ }, {
270
+ default: Q(() => [V(X(E))]),
271
+ _: 1
272
+ }, 8, ["class"]), Oe(" " + Y(X(a)("el.cascader.loading")), 1)], 2)) : d.value ? (K(), z("div", {
273
+ key: 1,
274
+ class: W(X(i).e("empty-text"))
275
+ }, [J(t.$slots, "empty", {}, () => [Oe(Y(X(a)("el.cascader.noData")), 1)])], 2)) : (n = X(l)) != null && n.isHoverMenu ? (K(), z(F, { key: 2 }, [R(" eslint-disable vue/html-self-closing "), (K(), z("svg", {
276
+ ref_key: "hoverZone",
277
+ ref: u,
278
+ class: W(X(i).e("hover-zone"))
279
+ }, null, 2))], 2112)) : R("v-if", !0),
280
+ R(" eslint-enable vue/html-self-closing ")
281
+ ];
282
+ }),
283
+ _: 3
284
+ }, 8, [
285
+ "class",
286
+ "wrap-class",
287
+ "view-class"
288
+ ]));
289
+ }
290
+ }), ft = 0, pt = (e) => {
291
+ let t = [e], { parent: n } = e;
292
+ for (; n;) t.unshift(n), n = n.parent;
293
+ return t;
294
+ }, mt = class t {
295
+ constructor(e, n, r, i = !1) {
296
+ this.data = e, this.config = n, this.parent = r, this.root = i, this.uid = ft++, this.checked = !1, this.indeterminate = !1, this.loading = !1;
297
+ let { value: a, label: o, children: s } = n, c = e[s], l = pt(this);
298
+ this.level = i ? 0 : r ? r.level + 1 : 1, this.value = e[a], this.label = e[o], this.pathNodes = l, this.pathValues = l.map((e) => e.value), this.pathLabels = l.map((e) => e.label), this.childrenData = c, this.children = (c || []).map((e) => new t(e, n, this)), this.loaded = !n.lazy || this.isLeaf || !_(c), this.text = "";
299
+ }
300
+ get isDisabled() {
301
+ let { data: e, parent: t, config: n } = this, { disabled: i, checkStrictly: a } = n;
302
+ return (r(i) ? i(e, this) : !!e[i]) || !a && !!(t != null && t.isDisabled);
303
+ }
304
+ get isLeaf() {
305
+ let { data: t, config: n, childrenData: i, loaded: a } = this, { lazy: o, leaf: s } = n, c = r(s) ? s(t, this) : t[s];
306
+ return m(c) ? o && !a ? !1 : !(e(i) && i.length) : !!c;
307
+ }
308
+ get valueByOption() {
309
+ return this.config.emitPath ? this.pathValues : this.value;
310
+ }
311
+ appendChild(n) {
312
+ let { childrenData: r, children: i } = this, a = new t(n, this.config, this);
313
+ return e(r) ? r.push(n) : this.childrenData = [n], i.push(a), a;
314
+ }
315
+ calcText(e, t) {
316
+ let n = e ? this.pathLabels.join(t) : this.label;
317
+ return this.text = n, n;
318
+ }
319
+ broadcast(e) {
320
+ this.children.forEach((t) => {
321
+ if (t) {
322
+ var n;
323
+ t.broadcast(e), (n = t.onParentCheck) == null || n.call(t, e);
324
+ }
325
+ });
326
+ }
327
+ emit() {
328
+ let { parent: e } = this;
329
+ if (e) {
330
+ var t;
331
+ (t = e.onChildCheck) == null || t.call(e), e.emit();
332
+ }
333
+ }
334
+ onParentCheck(e) {
335
+ this.isDisabled || this.setCheckState(e);
336
+ }
337
+ onChildCheck() {
338
+ let { children: e } = this, t = e.filter((e) => !e.isDisabled), n = t.length ? t.every((e) => e.checked) : !1;
339
+ this.setCheckState(n);
340
+ }
341
+ setCheckState(e) {
342
+ let t = this.children.length, n = this.children.reduce((e, t) => e + (t.checked ? 1 : t.indeterminate ? .5 : 0), 0);
343
+ this.checked = this.loaded && this.children.filter((e) => !e.isDisabled).every((e) => e.loaded && e.checked) && e, this.indeterminate = this.loaded && n !== t && n > 0;
344
+ }
345
+ doCheck(e) {
346
+ if (this.checked === e) return;
347
+ let { checkStrictly: t, multiple: n } = this.config;
348
+ t || !n ? this.checked = e : (this.broadcast(e), this.setCheckState(e), this.emit());
349
+ }
350
+ }, ht = (e, t) => e.reduce((e, n) => (n.isLeaf ? e.push(n) : (!t && e.push(n), e = e.concat(ht(n.children, t))), e), []), gt = class {
351
+ constructor(e, t) {
352
+ this.config = t;
353
+ let n = (e || []).map((e) => new mt(e, this.config));
354
+ this.nodes = n, this.allNodes = ht(n, !1), this.leafNodes = ht(n, !0);
355
+ }
356
+ getNodes() {
357
+ return this.nodes;
358
+ }
359
+ getFlattedNodes(e) {
360
+ return e ? this.leafNodes : this.allNodes;
361
+ }
362
+ appendNode(e, t) {
363
+ let n = t ? t.appendChild(e) : new mt(e, this.config);
364
+ t || this.nodes.push(n), this.appendAllNodesAndLeafNodes(n);
365
+ }
366
+ appendNodes(e, t) {
367
+ e.length > 0 ? e.forEach((e) => this.appendNode(e, t)) : t && t.isLeaf && this.leafNodes.push(t);
368
+ }
369
+ appendAllNodesAndLeafNodes(e) {
370
+ this.allNodes.push(e), e.isLeaf && this.leafNodes.push(e), e.children && e.children.forEach((e) => {
371
+ this.appendAllNodesAndLeafNodes(e);
372
+ });
373
+ }
374
+ getNodeByValue(e, t = !1) {
375
+ return ie(e) ? null : this.getFlattedNodes(t).find((t) => et(t.value, e) || et(t.pathValues, e)) || null;
376
+ }
377
+ getSameNode(e) {
378
+ return e && this.getFlattedNodes(!1).find(({ value: t, level: n }) => et(e.value, t) && e.level === n) || null;
379
+ }
380
+ }, _t = (e) => {
381
+ if (!e) return 0;
382
+ let t = e.id.split("-");
383
+ return Number(t[t.length - 2]);
384
+ }, vt = (e) => {
385
+ if (!e) return;
386
+ let t = e.querySelector("input");
387
+ t ? t.click() : ne(e) && e.click();
388
+ }, yt = (e, t) => {
389
+ let n = t.slice(0), r = n.map((e) => e.uid), i = e.reduce((e, t) => {
390
+ let i = r.indexOf(t.uid);
391
+ return i > -1 && (e.push(t), n.splice(i, 1), r.splice(i, 1)), e;
392
+ }, []);
393
+ return i.push(...n), i;
394
+ }, bt = a(/* @__PURE__ */ H({
395
+ name: "ElCascaderPanel",
396
+ __name: "index",
397
+ props: rt,
398
+ emits: $,
399
+ setup(e, { expose: t, emit: r }) {
400
+ let i = e, a = r, o = !1, l = n("cascader"), u = at(i), p = Ve(), m, h = q(!0), g = q(!1), v = q([]), y = q(), b = q([]), x = q(), S = q([]), ne = I(() => u.value.expandTrigger === "hover"), ie = I(() => i.renderLabel || p.default), C = () => {
401
+ let { options: e } = i, t = u.value;
402
+ o = !1, m = new gt(e, t), b.value = [m.getNodes()], t.lazy && _(i.options) ? (h.value = !1, w(void 0, (e) => {
403
+ e && (m = new gt(e, t), b.value = [m.getNodes()]), h.value = !0, T(!1, !0);
404
+ })) : T(!1, !0);
405
+ }, w = (e, t) => {
406
+ let n = u.value;
407
+ e = e || new mt({}, n, void 0, !0), e.loading = !0, n.lazyLoad(e, (n) => {
408
+ let r = e, i = r.root ? null : r;
409
+ r.loading = !1, r.loaded = !0, r.childrenData = r.childrenData || [], n && (m == null || m.appendNodes(n, i)), n && (t == null || t(n)), e.level === 0 && (g.value = !0);
410
+ }, () => {
411
+ e.loading = !1, e.loaded = !1, e.level === 0 && (h.value = !0);
412
+ });
413
+ }, ae = (e, t) => {
414
+ var n;
415
+ let { level: r } = e, i = b.value.slice(0, r), o;
416
+ e.isLeaf ? o = e.pathNodes[r - 2] : (o = e, i.push(e.children)), ((n = x.value) == null ? void 0 : n.uid) !== (o == null ? void 0 : o.uid) && (x.value = e, b.value = i, !t && a("expand-change", (e == null ? void 0 : e.pathValues) || []));
417
+ }, oe = (e, t, n = !0) => {
418
+ let { checkStrictly: r, multiple: i } = u.value, s = S.value[0];
419
+ o = !0, !i && (s == null || s.doCheck(!1)), e.doCheck(t), fe(), n && !i && !r && a("close"), !n && !i && se(e);
420
+ }, se = (e) => {
421
+ e && (e = e.parent, se(e), e && ae(e));
422
+ }, le = (e) => m == null ? void 0 : m.getFlattedNodes(e), ue = (e) => {
423
+ var t;
424
+ return (t = le(e)) == null ? void 0 : t.filter(({ checked: e }) => e !== !1);
425
+ }, de = () => {
426
+ S.value.forEach((e) => e.doCheck(!1)), fe(), b.value = b.value.slice(0, 1), x.value = void 0, a("expand-change", []);
427
+ }, fe = () => {
428
+ let { checkStrictly: e, multiple: t } = u.value, n = S.value, r = yt(n, ue(!e)), i = r.map((e) => e.valueByOption);
429
+ S.value = r, y.value = t ? i : i[0] ?? null;
430
+ }, T = (e = !1, t = !1) => {
431
+ let { modelValue: n } = i, { lazy: r, multiple: a, checkStrictly: s } = u.value, c = !s;
432
+ if (!(!h.value || o || !t && et(n, y.value))) if (r && !e) {
433
+ let e = _e($e(A(n))).map((e) => m == null ? void 0 : m.getNodeByValue(e)).filter((e) => !!e && !e.loaded && !e.loading);
434
+ e.length ? e.forEach((e) => {
435
+ w(e, () => T(!1, t));
436
+ }) : T(!0, t);
437
+ } else pe(_e((a ? A(n) : [n]).map((e) => m == null ? void 0 : m.getNodeByValue(e, c))), t), y.value = Qe(n ?? void 0);
438
+ }, pe = (e, t = !0) => {
439
+ let { checkStrictly: n } = u.value, r = S.value, i = e.filter((e) => !!e && (n || e.isLeaf)), a = m == null ? void 0 : m.getSameNode(x.value), o = t && a || i[0];
440
+ o ? o.pathNodes.forEach((e) => ae(e, !0)) : x.value = void 0, r.forEach((e) => e.doCheck(!1)), Fe(i).forEach((e) => e.doCheck(!0)), S.value = i, je(E);
441
+ }, E = () => {
442
+ ee && v.value.forEach((e) => {
443
+ let t = e == null ? void 0 : e.$el;
444
+ if (t) {
445
+ let e = t.querySelector(`.${l.namespace.value}-scrollbar__wrap`), n = t.querySelector(`.${l.b("node")}.in-active-path`);
446
+ if (!n) {
447
+ let e = t.querySelectorAll(`.${l.b("node")}.${l.is("active")}`);
448
+ n = e[e.length - 1];
449
+ }
450
+ ce(e, n);
451
+ }
452
+ });
453
+ }, D = (e) => {
454
+ let t = e.target, n = s(e);
455
+ switch (n) {
456
+ case c.up:
457
+ case c.down:
458
+ e.preventDefault(), re(te(t, n === c.up ? -1 : 1, `.${l.b("node")}[tabindex="-1"]`));
459
+ break;
460
+ case c.left:
461
+ var r;
462
+ e.preventDefault(), re((r = v.value[_t(t) - 1]) == null ? void 0 : r.$el.querySelector(`.${l.b("node")}[aria-expanded="true"]`));
463
+ break;
464
+ case c.right:
465
+ var i;
466
+ e.preventDefault(), re((i = v.value[_t(t) + 1]) == null ? void 0 : i.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`));
467
+ break;
468
+ case c.enter:
469
+ case c.numpadEnter:
470
+ vt(t);
471
+ break;
472
+ }
473
+ };
474
+ return Pe(ot, Fe({
475
+ config: u,
476
+ expandingNode: x,
477
+ checkedNodes: S,
478
+ isHoverMenu: ne,
479
+ initialLoaded: h,
480
+ renderLabelFn: ie,
481
+ lazyLoad: w,
482
+ expandNode: ae,
483
+ handleCheckChange: oe
484
+ })), Z(u, (e, t) => {
485
+ et(e, t) || C();
486
+ }, { immediate: !0 }), Z(() => i.options, C, { deep: !0 }), Z(() => i.modelValue, () => {
487
+ o = !1, T();
488
+ }, { deep: !0 }), Z(() => y.value, (e) => {
489
+ et(e, i.modelValue) || (a(d, e), a(f, e));
490
+ }), G(() => v.value = []), Ne(() => !_(i.modelValue) && T()), t({
491
+ menuList: v,
492
+ menus: b,
493
+ checkedNodes: S,
494
+ handleKeyDown: D,
495
+ handleCheckChange: oe,
496
+ getFlattedNodes: le,
497
+ getCheckedNodes: ue,
498
+ clearCheckedNodes: de,
499
+ calculateCheckedValue: fe,
500
+ scrollToExpandingNode: E,
501
+ loadLazyRootNodes: () => {
502
+ g.value || C();
503
+ }
504
+ }), (t, n) => (K(), z("div", {
505
+ class: W([X(l).b("panel"), X(l).is("bordered", e.border)]),
506
+ onKeydown: D
507
+ }, [(K(!0), z(F, null, Ie(b.value, (e, n) => (K(), L(dt, {
508
+ key: n,
509
+ ref_for: !0,
510
+ ref: (e) => v.value[n] = e,
511
+ index: n,
512
+ nodes: [...e]
513
+ }, {
514
+ empty: Q(() => [J(t.$slots, "empty")]),
515
+ _: 3
516
+ }, 8, ["index", "nodes"]))), 128))], 34));
517
+ }
518
+ })), xt = S({
519
+ ...tt,
520
+ size: p,
521
+ placeholder: String,
522
+ disabled: {
523
+ type: Boolean,
524
+ default: void 0
525
+ },
526
+ clearable: Boolean,
527
+ clearIcon: {
528
+ type: k,
529
+ default: me
530
+ },
531
+ filterable: Boolean,
532
+ filterMethod: {
533
+ type: v(Function),
534
+ default: (e, t) => e.text.includes(t)
535
+ },
536
+ separator: {
537
+ type: String,
538
+ default: " / "
539
+ },
540
+ showAllLevels: {
541
+ type: Boolean,
542
+ default: !0
543
+ },
544
+ collapseTags: Boolean,
545
+ maxCollapseTags: {
546
+ type: Number,
547
+ default: 1
548
+ },
549
+ collapseTagsTooltip: Boolean,
550
+ maxCollapseTagsTooltipHeight: { type: [String, Number] },
551
+ debounce: {
552
+ type: Number,
553
+ default: 300
554
+ },
555
+ beforeFilter: {
556
+ type: v(Function),
557
+ default: () => !0
558
+ },
559
+ placement: {
560
+ type: v(String),
561
+ values: w,
562
+ default: "bottom-start"
563
+ },
564
+ fallbackPlacements: {
565
+ type: v(Array),
566
+ default: [
567
+ "bottom-start",
568
+ "bottom",
569
+ "top-start",
570
+ "top",
571
+ "right",
572
+ "left"
573
+ ]
574
+ },
575
+ popperClass: C.popperClass,
576
+ popperStyle: C.popperStyle,
577
+ teleported: C.teleported,
578
+ effect: {
579
+ type: v(String),
580
+ default: "light"
581
+ },
582
+ tagType: {
583
+ ...ye.type,
584
+ default: "info"
585
+ },
586
+ tagEffect: {
587
+ ...ye.effect,
588
+ default: "light"
589
+ },
590
+ validateEvent: {
591
+ type: Boolean,
592
+ default: !0
593
+ },
594
+ persistent: {
595
+ type: Boolean,
596
+ default: !0
597
+ },
598
+ showCheckedStrategy: {
599
+ type: String,
600
+ values: ["parent", "child"],
601
+ default: "child"
602
+ },
603
+ checkOnClickNode: Boolean,
604
+ showPrefix: {
605
+ type: Boolean,
606
+ default: !0
607
+ },
608
+ ...u
609
+ }), St = (e) => !0, Ct = {
610
+ [d]: St,
611
+ [f]: St,
612
+ focus: (e) => e instanceof FocusEvent,
613
+ blur: (e) => e instanceof FocusEvent,
614
+ clear: () => !0,
615
+ visibleChange: (e) => g(e),
616
+ expandChange: (e) => !!e,
617
+ removeTag: (e) => !!e
618
+ }, wt = ["placeholder"], Tt = ["onClick"], Et = N(a(/* @__PURE__ */ H({
619
+ name: "ElCascader",
620
+ __name: "cascader",
621
+ props: xt,
622
+ emits: Ct,
623
+ setup(e, { expose: r, emit: i }) {
624
+ let a = { modifiers: [{
625
+ name: "arrowPosition",
626
+ enabled: !0,
627
+ phase: "main",
628
+ fn: ({ state: e }) => {
629
+ let { modifiersData: t, placement: n } = e;
630
+ [
631
+ "right",
632
+ "left",
633
+ "bottom",
634
+ "top"
635
+ ].includes(n) || t.arrow && (t.arrow.x = 35);
636
+ },
637
+ requires: ["arrow"]
638
+ }] }, o = e, u = i, p = Be(), m = Ve(), g = 0, _ = 0, v = n("cascader"), S = n("input"), ne = {
639
+ small: 7,
640
+ default: 11,
641
+ large: 15
642
+ }, { t: ie } = se(), { formItem: C } = fe(), w = ue(), { valueOnClear: ce } = l(o), { isComposing: de, handleComposition: E } = pe({ afterComposition(e) {
643
+ var t;
644
+ Et((t = e.target) == null ? void 0 : t.value);
645
+ } }), D = q(), me = q(), k = q(), _e = q(), A = q(), ye = q(), j = q(!1), Se = q(!1), M = q(!1), Ce = q(""), N = q(""), P = q([]), we = q([]), Te = I(() => o.props.multiple ? o.collapseTags ? P.value.slice(0, o.maxCollapseTags) : P.value : []), Ee = I(() => o.props.multiple && o.collapseTags ? P.value.slice(o.maxCollapseTags) : []), Oe = I(() => p.style), H = I(() => o.placeholder ?? ie("el.cascader.placeholder")), ke = I(() => N.value || P.value.length > 0 || de.value ? "" : H.value), U = le(), Ae = I(() => U.value === "small" ? "small" : "default"), G = I(() => !!o.props.multiple), Pe = I(() => !o.filterable || G.value), Fe = I(() => G.value ? N.value : Ce.value), Le = I(() => {
646
+ var e;
647
+ return ((e = A.value) == null ? void 0 : e.checkedNodes) || [];
648
+ }), { wrapperRef: ze, isFocused: qe, handleBlur: Je } = T(k, {
649
+ disabled: w,
650
+ beforeBlur(e) {
651
+ var t, n;
652
+ return ((t = D.value) == null ? void 0 : t.isFocusInsideContent(e)) || ((n = me.value) == null ? void 0 : n.isFocusInsideContent(e));
653
+ },
654
+ afterBlur() {
655
+ var e;
656
+ o.validateEvent && (C == null || (e = C.validate) == null || e.call(C, "blur").catch((e) => y(e)));
657
+ }
658
+ }), Ye = I(() => !o.clearable || w.value || M.value || !Se.value && !qe.value ? !1 : !!Le.value.length), Xe = I(() => {
659
+ let { showAllLevels: e, separator: t } = o, n = Le.value;
660
+ return n.length ? G.value ? "" : n[0].calcText(e, t) : "";
661
+ }), Ze = I(() => (C == null ? void 0 : C.validateState) || ""), $e = I({
662
+ get() {
663
+ return Qe(o.modelValue);
664
+ },
665
+ set(e) {
666
+ let t = e ?? ce.value;
667
+ u(d, t), u(f, t), o.validateEvent && (C == null || C.validate("change").catch((e) => y(e)));
668
+ }
669
+ }), et = I(() => [
670
+ v.b(),
671
+ v.m(U.value),
672
+ v.is("disabled", w.value),
673
+ p.class
674
+ ]), tt = I(() => [
675
+ S.e("icon"),
676
+ "icon-arrow-down",
677
+ v.is("reverse", j.value)
678
+ ]), nt = I(() => v.is("focus", qe.value)), rt = I(() => {
679
+ var e;
680
+ return (e = D.value) == null || (e = e.popperRef) == null ? void 0 : e.contentRef;
681
+ }), it = (e) => {
682
+ qe.value && Je(new FocusEvent("blur", e)), $(!1);
683
+ }, $ = (e) => {
684
+ if (!w.value && (e = e ?? !j.value, e !== j.value)) {
685
+ var t;
686
+ j.value = e, (t = k.value) == null || (t = t.input) == null || t.setAttribute("aria-expanded", `${e}`), e ? (at(), A.value && je(A.value.scrollToExpandingNode)) : o.filterable && vt(), u("visibleChange", e);
687
+ }
688
+ }, at = () => {
689
+ je(() => {
690
+ var e;
691
+ (e = D.value) == null || e.updatePopper();
692
+ });
693
+ }, ot = () => {
694
+ M.value = !1;
695
+ }, st = (e) => {
696
+ let { showAllLevels: t, separator: n } = o;
697
+ return {
698
+ node: e,
699
+ key: e.uid,
700
+ text: e.calcText(t, n),
701
+ hitState: !1,
702
+ closable: !w.value && !e.isDisabled
703
+ };
704
+ }, ct = (e) => {
705
+ var t;
706
+ let n = e.node;
707
+ n.doCheck(!1), (t = A.value) == null || t.calculateCheckedValue(), u("removeTag", n.valueByOption);
708
+ }, lt = () => {
709
+ switch (o.showCheckedStrategy) {
710
+ case "child": return Le.value;
711
+ case "parent": {
712
+ let e = mt(!1), t = e.map((e) => e.value);
713
+ return e.filter((e) => !e.parent || !t.includes(e.parent.value));
714
+ }
715
+ default: return [];
716
+ }
717
+ }, ut = () => {
718
+ if (!G.value) return;
719
+ let e = lt(), t = [];
720
+ e.forEach((e) => t.push(st(e))), P.value = t;
721
+ }, dt = () => {
722
+ var e;
723
+ let { filterMethod: t, showAllLevels: n, separator: r } = o, i = (e = A.value) == null || (e = e.getFlattedNodes(!o.props.checkStrictly)) == null ? void 0 : e.filter((e) => e.isDisabled ? !1 : (e.calcText(n, r), t(e, Fe.value)));
724
+ G.value && P.value.forEach((e) => {
725
+ e.hitState = !1;
726
+ }), M.value = !0, we.value = i, at();
727
+ }, ft = () => {
728
+ var e;
729
+ let t;
730
+ t = M.value && ye.value ? ye.value.$el.querySelector(`.${v.e("suggestion-item")}`) : (e = A.value) == null ? void 0 : e.$el.querySelector(`.${v.b("node")}[tabindex="-1"]`), t && (t.focus(), !M.value && t.click());
731
+ }, pt = () => {
732
+ var e, t;
733
+ let n = (e = k.value) == null ? void 0 : e.input, r = _e.value, i = (t = ye.value) == null ? void 0 : t.$el;
734
+ if (!(!ee || !n)) {
735
+ if (i) {
736
+ let e = i.querySelector(`.${v.e("suggestion-list")}`);
737
+ e.style.minWidth = `${n.offsetWidth}px`;
738
+ }
739
+ if (r) {
740
+ let { offsetHeight: e } = r, t = P.value.length > 0 ? `${Math.max(e, g) - 2}px` : `${g}px`;
741
+ if (n.style.height = t, m.prefix) {
742
+ var a;
743
+ let e = (a = k.value) == null ? void 0 : a.$el.querySelector(`.${S.e("prefix")}`), t = 0;
744
+ e && (t = e.offsetWidth, t > 0 && (t += ne[U.value || "default"])), r.style.left = `${t}px`;
745
+ } else r.style.left = "0";
746
+ at();
747
+ }
748
+ }
749
+ }, mt = (e) => {
750
+ var t;
751
+ return (t = A.value) == null ? void 0 : t.getCheckedNodes(e);
752
+ }, ht = (e) => {
753
+ at(), u("expandChange", e);
754
+ }, gt = (e) => {
755
+ if (!de.value) switch (s(e)) {
756
+ case c.enter:
757
+ case c.numpadEnter:
758
+ $();
759
+ break;
760
+ case c.down:
761
+ $(!0), je(ft), e.preventDefault();
762
+ break;
763
+ case c.esc:
764
+ j.value === !0 && (e.preventDefault(), e.stopPropagation(), $(!1));
765
+ break;
766
+ case c.tab:
767
+ $(!1);
768
+ break;
769
+ }
770
+ }, _t = () => {
771
+ var e;
772
+ (e = A.value) == null || e.clearCheckedNodes(), !j.value && o.filterable && vt(), $(!1), u("clear");
773
+ }, vt = () => {
774
+ let { value: e } = Xe;
775
+ Ce.value = e, N.value = e;
776
+ }, yt = (e) => {
777
+ var t;
778
+ let { checked: n } = e;
779
+ if (G.value) (t = A.value) == null || t.handleCheckChange(e, !n, !1);
780
+ else {
781
+ var r;
782
+ !n && ((r = A.value) == null || r.handleCheckChange(e, !0, !1)), $(!1);
783
+ }
784
+ }, xt = (e) => {
785
+ let t = e.target, n = s(e);
786
+ switch (n) {
787
+ case c.up:
788
+ case c.down:
789
+ e.preventDefault(), re(te(t, n === c.up ? -1 : 1, `.${v.e("suggestion-item")}[tabindex="-1"]`));
790
+ break;
791
+ case c.enter:
792
+ case c.numpadEnter:
793
+ t.click();
794
+ break;
795
+ }
796
+ }, St = () => {
797
+ let e = P.value[P.value.length - 1];
798
+ _ = N.value ? 0 : _ + 1, !(!e || !_ || o.collapseTags && P.value.length > 1) && (e.hitState ? ct(e) : e.hitState = !0);
799
+ }, Ct = h(() => {
800
+ let { value: e } = Fe;
801
+ if (!e) return;
802
+ let n = o.beforeFilter(e);
803
+ t(n) ? n.then(dt).catch(() => {}) : n === !1 ? ot() : dt();
804
+ }, I(() => o.debounce)), Et = (e, t) => {
805
+ !j.value && $(!0), !(t != null && t.isComposing) && (e ? Ct() : ot());
806
+ }, Dt = (e) => Number.parseFloat(b(S.cssVarName("input-height"), e).value) - 2;
807
+ return Z(M, at), Z([
808
+ Le,
809
+ w,
810
+ () => o.collapseTags,
811
+ () => o.maxCollapseTags
812
+ ], ut), Z(P, () => {
813
+ je(() => pt());
814
+ }), Z(U, async () => {
815
+ await je();
816
+ let e = k.value.input;
817
+ g = Dt(e) || g, pt();
818
+ }), Z(Xe, vt, { immediate: !0 }), Z(() => j.value, (e) => {
819
+ var t;
820
+ e && o.props.lazy && o.props.lazyLoad && ((t = A.value) == null || t.loadLazyRootNodes());
821
+ }), Ne(() => {
822
+ let e = k.value.input, t = Dt(e);
823
+ g = e.offsetHeight || t, x(e, pt);
824
+ }), r({
825
+ getCheckedNodes: mt,
826
+ cascaderPanelRef: A,
827
+ togglePopperVisible: $,
828
+ contentRef: rt,
829
+ presentText: Xe,
830
+ focus: () => {
831
+ var e;
832
+ (e = k.value) == null || e.focus();
833
+ },
834
+ blur: () => {
835
+ var e;
836
+ (e = k.value) == null || e.blur();
837
+ }
838
+ }), (t, n) => (K(), L(X(ae), {
839
+ ref_key: "tooltipRef",
840
+ ref: D,
841
+ visible: j.value,
842
+ teleported: e.teleported,
843
+ "popper-class": [X(v).e("dropdown"), e.popperClass],
844
+ "popper-style": e.popperStyle,
845
+ "popper-options": a,
846
+ "fallback-placements": e.fallbackPlacements,
847
+ "stop-popper-mouse-event": !1,
848
+ "gpu-acceleration": !1,
849
+ placement: e.placement,
850
+ transition: `${X(v).namespace.value}-zoom-in-top`,
851
+ effect: e.effect,
852
+ pure: "",
853
+ persistent: e.persistent,
854
+ onHide: ot
855
+ }, {
856
+ default: Q(() => [We((K(), z("div", {
857
+ ref_key: "wrapperRef",
858
+ ref: ze,
859
+ class: W(et.value),
860
+ style: Me(Oe.value),
861
+ onClick: n[8] || (n[8] = () => $(Pe.value ? void 0 : !0)),
862
+ onKeydown: gt,
863
+ onMouseenter: n[9] || (n[9] = (e) => Se.value = !0),
864
+ onMouseleave: n[10] || (n[10] = (e) => Se.value = !1)
865
+ }, [V(X(oe), {
866
+ ref_key: "inputRef",
867
+ ref: k,
868
+ modelValue: Ce.value,
869
+ "onUpdate:modelValue": n[1] || (n[1] = (e) => Ce.value = e),
870
+ placeholder: ke.value,
871
+ readonly: Pe.value,
872
+ disabled: X(w),
873
+ "validate-event": !1,
874
+ size: X(U),
875
+ class: W(nt.value),
876
+ tabindex: G.value && e.filterable && !X(w) ? -1 : void 0,
877
+ onCompositionstart: X(E),
878
+ onCompositionupdate: X(E),
879
+ onCompositionend: X(E),
880
+ onInput: Et
881
+ }, De({
882
+ suffix: Q(() => [Ye.value ? (K(), L(X(O), {
883
+ key: "clear",
884
+ class: W([X(S).e("icon"), "icon-circle-close"]),
885
+ onClick: Ke(_t, ["stop"])
886
+ }, {
887
+ default: Q(() => [(K(), L(Re(e.clearIcon)))]),
888
+ _: 1
889
+ }, 8, ["class"])) : (K(), L(X(O), {
890
+ key: "arrow-down",
891
+ class: W(tt.value),
892
+ onClick: n[0] || (n[0] = Ke((e) => $(), ["stop"]))
893
+ }, {
894
+ default: Q(() => [V(X(he))]),
895
+ _: 1
896
+ }, 8, ["class"]))]),
897
+ _: 2
898
+ }, [t.$slots.prefix ? {
899
+ name: "prefix",
900
+ fn: Q(() => [J(t.$slots, "prefix")]),
901
+ key: "0"
902
+ } : void 0]), 1032, [
903
+ "modelValue",
904
+ "placeholder",
905
+ "readonly",
906
+ "disabled",
907
+ "size",
908
+ "class",
909
+ "tabindex",
910
+ "onCompositionstart",
911
+ "onCompositionupdate",
912
+ "onCompositionend"
913
+ ]), G.value ? (K(), z("div", {
914
+ key: 0,
915
+ ref_key: "tagWrapper",
916
+ ref: _e,
917
+ class: W([X(v).e("tags"), X(v).is("validate", !!Ze.value)])
918
+ }, [
919
+ J(t.$slots, "tag", {
920
+ data: P.value,
921
+ deleteTag: ct
922
+ }, () => [(K(!0), z(F, null, Ie(Te.value, (t) => (K(), L(X(xe), {
923
+ key: t.key,
924
+ type: e.tagType,
925
+ size: Ae.value,
926
+ effect: e.tagEffect,
927
+ hit: t.hitState,
928
+ closable: t.closable,
929
+ "disable-transitions": "",
930
+ onClose: (e) => ct(t)
931
+ }, {
932
+ default: Q(() => [B("span", null, Y(t.text), 1)]),
933
+ _: 2
934
+ }, 1032, [
935
+ "type",
936
+ "size",
937
+ "effect",
938
+ "hit",
939
+ "closable",
940
+ "onClose"
941
+ ]))), 128))]),
942
+ e.collapseTags && P.value.length > e.maxCollapseTags ? (K(), L(X(ae), {
943
+ key: 0,
944
+ ref_key: "tagTooltipRef",
945
+ ref: me,
946
+ disabled: j.value || !e.collapseTagsTooltip,
947
+ "fallback-placements": [
948
+ "bottom",
949
+ "top",
950
+ "right",
951
+ "left"
952
+ ],
953
+ placement: "bottom",
954
+ "popper-class": e.popperClass,
955
+ "popper-style": e.popperStyle,
956
+ effect: e.effect,
957
+ persistent: e.persistent
958
+ }, {
959
+ default: Q(() => [V(X(xe), {
960
+ closable: !1,
961
+ size: Ae.value,
962
+ type: e.tagType,
963
+ effect: e.tagEffect,
964
+ "disable-transitions": ""
965
+ }, {
966
+ default: Q(() => [B("span", { class: W(X(v).e("tags-text")) }, " + " + Y(P.value.length - e.maxCollapseTags), 3)]),
967
+ _: 1
968
+ }, 8, [
969
+ "size",
970
+ "type",
971
+ "effect"
972
+ ])]),
973
+ content: Q(() => [V(X(ve), { "max-height": e.maxCollapseTagsTooltipHeight }, {
974
+ default: Q(() => [B("div", { class: W(X(v).e("collapse-tags")) }, [(K(!0), z(F, null, Ie(Ee.value, (t, n) => (K(), z("div", {
975
+ key: n,
976
+ class: W(X(v).e("collapse-tag"))
977
+ }, [(K(), L(X(xe), {
978
+ key: t.key,
979
+ class: "in-tooltip",
980
+ type: e.tagType,
981
+ size: Ae.value,
982
+ effect: e.tagEffect,
983
+ hit: t.hitState,
984
+ closable: t.closable,
985
+ "disable-transitions": "",
986
+ onClose: (e) => ct(t)
987
+ }, {
988
+ default: Q(() => [B("span", null, Y(t.text), 1)]),
989
+ _: 2
990
+ }, 1032, [
991
+ "type",
992
+ "size",
993
+ "effect",
994
+ "hit",
995
+ "closable",
996
+ "onClose"
997
+ ]))], 2))), 128))], 2)]),
998
+ _: 1
999
+ }, 8, ["max-height"])]),
1000
+ _: 1
1001
+ }, 8, [
1002
+ "disabled",
1003
+ "popper-class",
1004
+ "popper-style",
1005
+ "effect",
1006
+ "persistent"
1007
+ ])) : R("v-if", !0),
1008
+ e.filterable && !X(w) ? We((K(), z("input", {
1009
+ key: 1,
1010
+ "onUpdate:modelValue": n[2] || (n[2] = (e) => N.value = e),
1011
+ type: "text",
1012
+ class: W(X(v).e("search-input")),
1013
+ placeholder: Xe.value ? "" : H.value,
1014
+ onInput: n[3] || (n[3] = (e) => Et(N.value, e)),
1015
+ onClick: n[4] || (n[4] = Ke((e) => $(!0), ["stop"])),
1016
+ onKeydown: Ge(St, ["delete"]),
1017
+ onCompositionstart: n[5] || (n[5] = (...e) => X(E) && X(E)(...e)),
1018
+ onCompositionupdate: n[6] || (n[6] = (...e) => X(E) && X(E)(...e)),
1019
+ onCompositionend: n[7] || (n[7] = (...e) => X(E) && X(E)(...e))
1020
+ }, null, 42, wt)), [[He, N.value]]) : R("v-if", !0)
1021
+ ], 2)) : R("v-if", !0)], 38)), [[
1022
+ X(be),
1023
+ it,
1024
+ rt.value
1025
+ ]])]),
1026
+ content: Q(() => [
1027
+ t.$slots.header ? (K(), z("div", {
1028
+ key: 0,
1029
+ class: W(X(v).e("header")),
1030
+ onClick: n[11] || (n[11] = Ke(() => {}, ["stop"]))
1031
+ }, [J(t.$slots, "header")], 2)) : R("v-if", !0),
1032
+ We(V(X(bt), {
1033
+ ref_key: "cascaderPanelRef",
1034
+ ref: A,
1035
+ modelValue: $e.value,
1036
+ "onUpdate:modelValue": n[12] || (n[12] = (e) => $e.value = e),
1037
+ options: e.options,
1038
+ props: o.props,
1039
+ border: !1,
1040
+ "render-label": t.$slots.default,
1041
+ onExpandChange: ht,
1042
+ onClose: n[13] || (n[13] = (e) => t.$nextTick(() => $(!1)))
1043
+ }, {
1044
+ empty: Q(() => [J(t.$slots, "empty")]),
1045
+ _: 3
1046
+ }, 8, [
1047
+ "modelValue",
1048
+ "options",
1049
+ "props",
1050
+ "render-label"
1051
+ ]), [[Ue, !M.value]]),
1052
+ e.filterable ? We((K(), L(X(ve), {
1053
+ key: 1,
1054
+ ref_key: "suggestionPanel",
1055
+ ref: ye,
1056
+ tag: "ul",
1057
+ class: W(X(v).e("suggestion-panel")),
1058
+ "view-class": X(v).e("suggestion-list"),
1059
+ onKeydown: xt
1060
+ }, {
1061
+ default: Q(() => [we.value.length ? (K(!0), z(F, { key: 0 }, Ie(we.value, (e) => (K(), z("li", {
1062
+ key: e.uid,
1063
+ class: W([X(v).e("suggestion-item"), X(v).is("checked", e.checked)]),
1064
+ tabindex: -1,
1065
+ onClick: (t) => yt(e)
1066
+ }, [J(t.$slots, "suggestion-item", { item: e }, () => [B("span", null, Y(e.text), 1), e.checked ? (K(), L(X(O), { key: 0 }, {
1067
+ default: Q(() => [V(X(ge))]),
1068
+ _: 1
1069
+ })) : R("v-if", !0)])], 10, Tt))), 128)) : J(t.$slots, "empty", { key: 1 }, () => [B("li", { class: W(X(v).e("empty-text")) }, Y(X(ie)("el.cascader.noMatch")), 3)])]),
1070
+ _: 3
1071
+ }, 8, ["class", "view-class"])), [[Ue, M.value]]) : R("v-if", !0),
1072
+ t.$slots.footer ? (K(), z("div", {
1073
+ key: 2,
1074
+ class: W(X(v).e("footer")),
1075
+ onClick: n[14] || (n[14] = Ke(() => {}, ["stop"]))
1076
+ }, [J(t.$slots, "footer")], 2)) : R("v-if", !0)
1077
+ ]),
1078
+ _: 3
1079
+ }, 8, [
1080
+ "visible",
1081
+ "teleported",
1082
+ "popper-class",
1083
+ "popper-style",
1084
+ "fallback-placements",
1085
+ "placement",
1086
+ "transition",
1087
+ "effect",
1088
+ "persistent"
1089
+ ]));
1090
+ }
1091
+ }))).filter((e) => ![
1092
+ "value",
1093
+ "placeholder",
1094
+ "disabled",
1095
+ "options",
1096
+ "showAllLevels",
1097
+ "show-all-levels",
1098
+ "separator"
1099
+ ].includes(e)), Dt = {
1100
+ name: "FormCascader",
1101
+ mixins: [
1102
+ P,
1103
+ we,
1104
+ Te
1105
+ ],
1106
+ props: {
1107
+ value: [
1108
+ String,
1109
+ Number,
1110
+ Array
1111
+ ],
1112
+ options: {
1113
+ type: Array,
1114
+ default: () => []
1115
+ },
1116
+ showAllLevels: {
1117
+ type: Boolean,
1118
+ default: !0
1119
+ },
1120
+ separator: {
1121
+ type: String,
1122
+ default: "/"
1123
+ },
1124
+ last: Boolean,
1125
+ checkStrictly: Boolean,
1126
+ labelKey: {
1127
+ type: String,
1128
+ default: "label"
1129
+ },
1130
+ valueKey: {
1131
+ type: String,
1132
+ default: "value"
1133
+ },
1134
+ emitPath: {
1135
+ type: Boolean,
1136
+ default: !0
1137
+ },
1138
+ join: {
1139
+ type: Boolean,
1140
+ default: !0
1141
+ },
1142
+ idAsValue: {
1143
+ type: Boolean,
1144
+ default: !0
1145
+ },
1146
+ labelAsValue: Boolean,
1147
+ treeDict: {
1148
+ type: Boolean,
1149
+ default: !0
1150
+ }
1151
+ },
1152
+ computed: {
1153
+ inputProps() {
1154
+ return Ce({
1155
+ ...M(this.$attrs),
1156
+ ...this.$props
1157
+ }, Et);
1158
+ },
1159
+ inputVal() {
1160
+ if (this.join) return Je(this.value) ? this.value : Ye(this.value) ? this.value.split(this.separator) : [];
1161
+ if (this.last) {
1162
+ let [e] = qe(this.innerOptions, (e) => e[this.valueKey] === this.value), t = [];
1163
+ for (; e;) t.push(e[this.valueKey]), e = e.parent;
1164
+ return t.reverse();
1165
+ }
1166
+ return this.value;
1167
+ },
1168
+ innerOptions() {
1169
+ if (this.dictType) return this.dictItems;
1170
+ if (this.options) {
1171
+ let e = Ze(this.options);
1172
+ return this.last && Xe(e), e;
1173
+ } else return [];
1174
+ }
1175
+ },
1176
+ methods: { emitInput(e) {
1177
+ if (this.join && Je(e)) this.$emit("input", e.join(this.separator));
1178
+ else {
1179
+ let t = this.last ? e[e.length - 1] : e;
1180
+ this.$emit("input", t);
1181
+ }
1182
+ } }
1183
+ };
1184
+ function Ot(e, t, n, r, i, a) {
1185
+ let o = Le("ElCascader"), s = Le("FormItem");
1186
+ return K(), L(s, Ae(e.formItemProps, {
1187
+ rules: e.computeRules,
1188
+ disabled: e.inputDisabled
1189
+ }), {
1190
+ default: Q(() => [J(e.$slots, "default", {}, () => [V(o, Ae({
1191
+ clearable: "",
1192
+ style: { width: "100%" },
1193
+ class: { "is-readonly": e.readonly },
1194
+ value: a.inputVal,
1195
+ "show-all-levels": n.showAllLevels,
1196
+ separator: n.separator,
1197
+ readonly: e.readonly,
1198
+ options: a.innerOptions,
1199
+ props: {
1200
+ checkStrictly: n.checkStrictly,
1201
+ label: n.labelKey,
1202
+ value: n.valueKey,
1203
+ emitPath: n.emitPath,
1204
+ expandTrigger: "hover"
1205
+ },
1206
+ disabled: e.inputDisabled,
1207
+ placeholder: e.computePlaceholder
1208
+ }, a.inputProps, ze(e.listeners), { onInput: a.emitInput }), null, 16, [
1209
+ "class",
1210
+ "value",
1211
+ "show-all-levels",
1212
+ "separator",
1213
+ "readonly",
1214
+ "options",
1215
+ "props",
1216
+ "disabled",
1217
+ "placeholder",
1218
+ "onInput"
1219
+ ])])]),
1220
+ error: Q(({ error: t }) => [J(e.$slots, "error", { error: t })]),
1221
+ label: Q(() => [J(e.$slots, "label")]),
1222
+ _: 3
1223
+ }, 16, ["rules", "disabled"]);
1224
+ }
1225
+ var kt = /* @__PURE__ */ o(Dt, [["render", Ot]]);
1226
+ //#endregion
1227
+ export { kt as t };