@web-utils/component 5.0.0-beta02 → 5.0.0-beta04

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 (385) hide show
  1. package/chunks/DialogForm.BzmXN481.mjs +37816 -0
  2. package/chunks/ElementDialog.BrqPs1yL.mjs +198 -0
  3. package/chunks/FormTemp.DWB4CV8h.mjs +251 -0
  4. package/chunks/FyButton.DGd1yE_h.mjs +27 -0
  5. package/chunks/{FyCurd.me083T8V.mjs → FyCurd.DmIW6Tjw.mjs} +500 -496
  6. package/chunks/{FyForm.vVp8aVtj.mjs → FyForm.Dh77gj0Z.mjs} +158 -156
  7. package/chunks/{FyUEditor.BymtA5SJ.mjs → FyUEditor.BMGigcYw.mjs} +7 -7
  8. package/chunks/{FyUpload.CA7Gfa6Q.mjs → FyUpload.Y_mVdD0K.mjs} +77 -77
  9. package/chunks/{MonacoEditor.B7BUQwb7.mjs → MonacoEditor.DQ1vPh6D.mjs} +8 -8
  10. package/chunks/dataformat.BpAzVPYN.mjs +165 -0
  11. package/chunks/{dic.C0abEij9.mjs → dic.N2PNjL8o.mjs} +1 -1
  12. package/chunks/{event.Dv4XTu8B.mjs → event.BevSLXu4.mjs} +10 -14
  13. package/chunks/{util.g-WQEec9.mjs → util.Cdt7t08t.mjs} +35 -50
  14. package/dialog/index.d.ts +14 -0
  15. package/dialog/props.d.ts +101 -0
  16. package/dialog-form/index.mjs +2 -145
  17. package/element-dialog/index.mjs +1 -1
  18. package/element-dialog/style.css +1 -1
  19. package/fy-array/index.mjs +7 -7
  20. package/fy-button/index.mjs +2 -0
  21. package/fy-button/style.css +1 -0
  22. package/fy-cascader/index.mjs +2 -2
  23. package/fy-checkbox/index.mjs +2 -2
  24. package/fy-curd/index.mjs +1 -1
  25. package/fy-curd/style.css +1 -1
  26. package/fy-date/index.mjs +2 -2
  27. package/fy-date/style.css +1 -1
  28. package/fy-dynamic/index.mjs +17 -21
  29. package/fy-empty/index.mjs +4 -4
  30. package/fy-form/index.mjs +1 -1
  31. package/fy-form/style.css +1 -1
  32. package/fy-input/index.mjs +3 -3
  33. package/fy-input-color/index.mjs +2 -3
  34. package/fy-input-map/index.mjs +36 -34
  35. package/fy-input-number/index.mjs +2 -2
  36. package/fy-input-table/index.mjs +40 -38
  37. package/fy-input-tree/index.mjs +19 -19
  38. package/fy-input-tree/style.css +1 -1
  39. package/fy-radio/index.mjs +3 -3
  40. package/fy-rate/index.mjs +3 -3
  41. package/fy-select/index.mjs +31 -31
  42. package/fy-slider/index.mjs +5 -5
  43. package/fy-switch/index.mjs +3 -3
  44. package/fy-tabs/index.mjs +1 -1
  45. package/fy-time/index.mjs +7 -7
  46. package/fy-title/index.mjs +2 -2
  47. package/fy-tree/index.mjs +76 -74
  48. package/fy-u-editor/index.mjs +1 -1
  49. package/fy-upload/index.mjs +1 -1
  50. package/icon-temp/index.mjs +1 -1
  51. package/index.d.ts +2 -142
  52. package/index.mjs +31 -179
  53. package/monaco-editor/index.mjs +1 -1
  54. package/package.json +11 -13
  55. package/web-types.json +2461 -20206
  56. package/address-input/index.mjs +0 -76
  57. package/address-input/style.css +0 -1
  58. package/affix/index.mjs +0 -72
  59. package/affix/style.css +0 -1
  60. package/aside-menu/index.mjs +0 -20
  61. package/aside-menu/style.css +0 -1
  62. package/avatar/index.mjs +0 -94
  63. package/avatar/style.css +0 -1
  64. package/awesome-button/index.mjs +0 -55
  65. package/capsule-tab/index.mjs +0 -27
  66. package/capsule-tab/style.css +0 -1
  67. package/card/index.mjs +0 -86
  68. package/card/style.css +0 -1
  69. package/carousel/index.mjs +0 -46
  70. package/carousel/style.css +0 -1
  71. package/chat/index.mjs +0 -441
  72. package/chat/style.css +0 -1
  73. package/chunk-file-uploader/index.mjs +0 -2
  74. package/chunk-file-uploader/style.css +0 -1
  75. package/chunks/ChunkFileUploader.C3EA0e5t.mjs +0 -114
  76. package/chunks/EditableTree.D0ByhRTi.mjs +0 -648
  77. package/chunks/ElementBaseInfo.B3pY8TkD.mjs +0 -209
  78. package/chunks/ElementDialog.DNsDHdQS.mjs +0 -251
  79. package/chunks/ElementForm.D_lXbe--.mjs +0 -627
  80. package/chunks/ElementListeners.Cufwd4bp.mjs +0 -656
  81. package/chunks/ElementMultiInstance.BhY8NY2z.mjs +0 -290
  82. package/chunks/ElementOtherConfig.DX1ZJ9w2.mjs +0 -51
  83. package/chunks/ElementProperties.BRafADXp.mjs +0 -196
  84. package/chunks/ElementTaskConfig.B6pqRir_.mjs +0 -446
  85. package/chunks/FlowCondition.Dvwji23j.mjs +0 -194
  86. package/chunks/FlowDesigner.LL-vXDIE.mjs +0 -5100
  87. package/chunks/FormBlock.Co7l6USP.mjs +0 -117
  88. package/chunks/FormCascader.DMY3uNc8.mjs +0 -1227
  89. package/chunks/FormInputTime.BC4FfWwY.mjs +0 -1774
  90. package/chunks/FormItem.BSXI2cZU.mjs +0 -89
  91. package/chunks/FormItemGroup.D2Htta7J.mjs +0 -149
  92. package/chunks/FormSelect.CY0K-izg.mjs +0 -1473
  93. package/chunks/FormSwitch.DLqFXaFF.mjs +0 -297
  94. package/chunks/FormTemp.PJFfNRls.mjs +0 -139
  95. package/chunks/FyFormDesign.BCxVyiWY.mjs +0 -5600
  96. package/chunks/ImagePreview.ByEWJYdu.mjs +0 -639
  97. package/chunks/Keyboard.4hi7CjGc.mjs +0 -379
  98. package/chunks/PageableTable.Ba3XSbZ5.mjs +0 -660
  99. package/chunks/RecordVideo.VRFTaHSp.mjs +0 -116
  100. package/chunks/SignalAndMessage.DYhKWs3X.mjs +0 -198
  101. package/chunks/SplitPane.Bwe5Rc0J.mjs +0 -219
  102. package/chunks/TableColumn.72HOXQkb.mjs +0 -186
  103. package/chunks/TableView.BxfsOAxU.mjs +0 -484
  104. package/chunks/Toolbar.BVziVmyT.mjs +0 -219
  105. package/chunks/UserTaskListeners.CkeyTpnn.mjs +0 -599
  106. package/chunks/VueCron.DEvY5-i7.mjs +0 -1823
  107. package/chunks/VueTreeSelect.C6Ycu28Z.mjs +0 -1873
  108. package/chunks/checkbox.C_9WZ8gc.mjs +0 -437
  109. package/chunks/confirmable-mixin.zegaXQTl.mjs +0 -1762
  110. package/chunks/core.DXaMPWGV.mjs +0 -51
  111. package/chunks/dataformat.CteBVoOe.mjs +0 -144
  112. package/chunks/dictionary.BRhZD-WH.mjs +0 -19
  113. package/chunks/dictionary.CNNpjPL2.mjs +0 -87
  114. package/chunks/event.B4iwtUNO.mjs +0 -4
  115. package/chunks/focus-trap.FbvlqAGe.mjs +0 -211
  116. package/chunks/form-input.BUGZmAI1.mjs +0 -34
  117. package/chunks/form-item.Ca8U2bIR.mjs +0 -712
  118. package/chunks/form-pick.DT5kumy4.mjs +0 -7
  119. package/chunks/form-validate.CUvMwtPN.mjs +0 -11
  120. package/chunks/icon.CxCY22-F.mjs +0 -26
  121. package/chunks/icon.ym7735_x.mjs +0 -251
  122. package/chunks/init.6jGmuY99.mjs +0 -115
  123. package/chunks/input.C2GWsuXE.mjs +0 -547
  124. package/chunks/install.yLcn5MLL.mjs +0 -84
  125. package/chunks/message.C4NdvfbE.mjs +0 -400
  126. package/chunks/photo-swipe.BxnG4lip.mjs +0 -55
  127. package/chunks/radio.CeLeSOEo.mjs +0 -273
  128. package/chunks/scroll.DWjS-gnW.mjs +0 -28
  129. package/chunks/scrollbar.CAmrlKi9.mjs +0 -345
  130. package/chunks/slot.DT5QwXL-.mjs +0 -25
  131. package/chunks/style.BmlGmjpO.mjs +0 -325
  132. package/chunks/sub-table-plus-props.CRX7ERxJ.mjs +0 -28
  133. package/chunks/tab-mixin.7zuMMM1E.mjs +0 -70
  134. package/chunks/tag.ZhEIVRpP.mjs +0 -141
  135. package/chunks/tooltip.DNiltmX1.mjs +0 -1939
  136. package/chunks/typescript.CLl-2siQ.mjs +0 -18
  137. package/chunks/use-aria.BW7nWOl1.mjs +0 -17
  138. package/chunks/use-composition.mUaomyno.mjs +0 -47
  139. package/chunks/use-deprecated.BfDSbZS9.mjs +0 -12
  140. package/chunks/use-empty-values.D8KYIiKR.mjs +0 -81
  141. package/chunks/use-form-item.BlWa7ZKe.mjs +0 -56
  142. package/chunks/use-global-config.DRovgom9.mjs +0 -57
  143. package/chunks/use-locale.Be9HCpTQ.mjs +0 -188
  144. package/chunks/util.Ce4MHRmD.mjs +0 -103
  145. package/chunks/utilSelf.BttmSVX6.mjs +0 -46
  146. package/chunks/utils.BGJfM4oG.mjs +0 -60
  147. package/chunks/utils.CSPl1l4f.mjs +0 -14
  148. package/chunks/validator.DuBSEj8O.mjs +0 -5
  149. package/chunks/vnode.C3PXzhmg.mjs +0 -14
  150. package/code-mirror-editor/index.mjs +0 -99
  151. package/code-mirror-editor/style.css +0 -1
  152. package/comment/index.mjs +0 -62
  153. package/comment/style.css +0 -1
  154. package/configComponents.d.ts +0 -29
  155. package/configComponents.mjs +0 -42
  156. package/confirm-button/index.mjs +0 -35
  157. package/confirmable/index.mjs +0 -8
  158. package/context-menu/index.mjs +0 -195
  159. package/context-menu/style.css +0 -1
  160. package/count-up/index.mjs +0 -99
  161. package/custom-scrollbar/index.mjs +0 -93
  162. package/data-box/index.mjs +0 -64
  163. package/data-box/style.css +0 -1
  164. package/data-card/index.mjs +0 -60
  165. package/data-card/style.css +0 -1
  166. package/data-card-text/index.mjs +0 -64
  167. package/data-card-text/style.css +0 -1
  168. package/data-display/index.mjs +0 -71
  169. package/data-display/style.css +0 -1
  170. package/data-icons/index.mjs +0 -70
  171. package/data-icons/style.css +0 -1
  172. package/data-imgtext/index.mjs +0 -67
  173. package/data-imgtext/style.css +0 -1
  174. package/data-operatext/index.mjs +0 -51
  175. package/data-operatext/style.css +0 -1
  176. package/data-panel/index.mjs +0 -57
  177. package/data-panel/style.css +0 -1
  178. package/data-pay/index.mjs +0 -105
  179. package/data-pay/style.css +0 -1
  180. package/data-price/index.mjs +0 -48
  181. package/data-price/style.css +0 -1
  182. package/data-progress/index.mjs +0 -67
  183. package/data-progress/style.css +0 -1
  184. package/data-rotate/index.mjs +0 -61
  185. package/data-rotate/style.css +0 -1
  186. package/data-table-picker/index.mjs +0 -120
  187. package/data-tabs/index.mjs +0 -67
  188. package/data-tabs/style.css +0 -1
  189. package/dynamic-table/index.mjs +0 -166
  190. package/dynamic-table/style.css +0 -1
  191. package/e-charts/index.mjs +0 -176
  192. package/e-charts/style.css +0 -1
  193. package/easy-popup/index.mjs +0 -92
  194. package/easy-popup/style.css +0 -1
  195. package/editable-progress/index.mjs +0 -113
  196. package/editable-progress/style.css +0 -1
  197. package/editable-tree/index.mjs +0 -2
  198. package/editable-tree/style.css +0 -1
  199. package/element-listeners/style.css +0 -1
  200. package/element-multi-instance/style.css +0 -1
  201. package/ellipsis/index.mjs +0 -124
  202. package/ellipsis/style.css +0 -1
  203. package/empty-view/index.mjs +0 -48
  204. package/empty-view/style.css +0 -1
  205. package/error-view/index.mjs +0 -39
  206. package/error-view/style.css +0 -1
  207. package/flex-column/index.mjs +0 -35
  208. package/flex-item/index.mjs +0 -61
  209. package/flex-row/index.mjs +0 -34
  210. package/flex-scroller/index.mjs +0 -29
  211. package/flex-scroller/style.css +0 -1
  212. package/flow/index.mjs +0 -240
  213. package/flow/style.css +0 -1
  214. package/flow-designer/index.mjs +0 -2
  215. package/flow-designer/style.css +0 -1
  216. package/flow-node/index.mjs +0 -56
  217. package/flow-viewer/index.mjs +0 -160
  218. package/flow-viewer/style.css +0 -1
  219. package/form-block/index.mjs +0 -2
  220. package/form-block/style.css +0 -1
  221. package/form-button/index.mjs +0 -36
  222. package/form-card/index.mjs +0 -14
  223. package/form-cascader/index.mjs +0 -2
  224. package/form-checkbox/index.mjs +0 -90
  225. package/form-checkbox-group/index.mjs +0 -162
  226. package/form-checkbox-group/style.css +0 -1
  227. package/form-date-picker/index.mjs +0 -156
  228. package/form-holder/index.mjs +0 -134
  229. package/form-holder/style.css +0 -1
  230. package/form-input/index.mjs +0 -114
  231. package/form-input-cron-expression/index.mjs +0 -98
  232. package/form-input-cron-expression/style.css +0 -1
  233. package/form-input-email/index.mjs +0 -66
  234. package/form-input-id-card/index.mjs +0 -74
  235. package/form-input-phone-number/index.mjs +0 -73
  236. package/form-input-tag/index.mjs +0 -89
  237. package/form-input-time/index.mjs +0 -2
  238. package/form-item/index.mjs +0 -2
  239. package/form-item/style.css +0 -1
  240. package/form-item-config-provider/index.mjs +0 -47
  241. package/form-item-group/index.mjs +0 -2
  242. package/form-item-group/style.css +0 -1
  243. package/form-radio-group/index.mjs +0 -162
  244. package/form-radio-group/style.css +0 -1
  245. package/form-select/index.mjs +0 -2
  246. package/form-select/style.css +0 -1
  247. package/form-switch/index.mjs +0 -2
  248. package/form-table/index.mjs +0 -132
  249. package/form-table-plus/index.mjs +0 -165
  250. package/form-textarea/index.mjs +0 -91
  251. package/form-tree-select/index.mjs +0 -90
  252. package/form-tree-select/style.css +0 -1
  253. package/form-tree-select-multiple/index.mjs +0 -93
  254. package/form-view/index.mjs +0 -280
  255. package/form-view/style.css +0 -1
  256. package/fy-article/index.mjs +0 -73
  257. package/fy-article/style.css +0 -1
  258. package/fy-code/index.mjs +0 -48
  259. package/fy-draggable/index.mjs +0 -323
  260. package/fy-draggable/style.css +0 -1
  261. package/fy-form-design/index.mjs +0 -2
  262. package/fy-form-design/style.css +0 -1
  263. package/fy-input-icon/index.mjs +0 -129
  264. package/fy-input-icon/style.css +0 -1
  265. package/fy-progress/index.mjs +0 -36
  266. package/guide-steps/index.mjs +0 -73
  267. package/guide-steps/style.css +0 -1
  268. package/helper-function.d.ts +0 -6
  269. package/helper-function.mjs +0 -49
  270. package/highlight-j-s/index.mjs +0 -51
  271. package/highlight-j-s/style.css +0 -1
  272. package/icon-card/index.mjs +0 -34
  273. package/icon-card/style.css +0 -1
  274. package/iframe-window/index.mjs +0 -39
  275. package/iframe-window/style.css +0 -1
  276. package/image-cropper/index.mjs +0 -171
  277. package/image-cropper/style.css +0 -1
  278. package/image-preview/index.mjs +0 -2
  279. package/image-preview/style.css +0 -1
  280. package/image-viewer/index.mjs +0 -70
  281. package/image-viewer/style.css +0 -1
  282. package/input-number-range/index.mjs +0 -78
  283. package/input-number-range/style.css +0 -1
  284. package/j-s-x-component/index.mjs +0 -14
  285. package/keyboard/index.mjs +0 -2
  286. package/keyboard/style.css +0 -1
  287. package/license/index.mjs +0 -106
  288. package/loading-view/index.mjs +0 -39
  289. package/loading-view/style.css +0 -1
  290. package/login/index.mjs +0 -252
  291. package/login/style.css +0 -1
  292. package/name-avatar/index.mjs +0 -61
  293. package/name-avatar/style.css +0 -1
  294. package/nav-bar/index.mjs +0 -34
  295. package/nav-bar/style.css +0 -1
  296. package/not-implement/index.mjs +0 -10
  297. package/not-implement/style.css +0 -1
  298. package/notice/index.mjs +0 -100
  299. package/notice/style.css +0 -1
  300. package/page/index.mjs +0 -19
  301. package/page/style.css +0 -1
  302. package/page-header/index.mjs +0 -27
  303. package/page-header/style.css +0 -1
  304. package/page-index/index.mjs +0 -121
  305. package/page-index/style.css +0 -1
  306. package/page-index-top/index.mjs +0 -80
  307. package/page-skeleton/index.mjs +0 -49
  308. package/page-skeleton/style.css +0 -1
  309. package/page-skeleton-new/index.mjs +0 -79
  310. package/page-skeleton-new/style.css +0 -1
  311. package/pageable-table/index.mjs +0 -2
  312. package/pageable-table/style.css +0 -1
  313. package/pageable-view/index.mjs +0 -280
  314. package/pageable-view/style.css +0 -1
  315. package/photo-swipe/index.d.ts +0 -8
  316. package/photo-swipe/index.mjs +0 -33
  317. package/picker-table-view/index.mjs +0 -225
  318. package/present-view/index.mjs +0 -271
  319. package/present-view/style.css +0 -1
  320. package/queue/index.mjs +0 -46
  321. package/queue/style.css +0 -1
  322. package/record-video/index.mjs +0 -2
  323. package/record-video/style.css +0 -1
  324. package/resize-observer/index.mjs +0 -45
  325. package/resize-observer/style.css +0 -1
  326. package/search/index.mjs +0 -116
  327. package/search/style.css +0 -1
  328. package/sign/index.mjs +0 -104
  329. package/sign/style.css +0 -1
  330. package/sign-panel/index.mjs +0 -183
  331. package/sign-panel/style.css +0 -1
  332. package/skeleton/index.mjs +0 -51
  333. package/skeleton/style.css +0 -1
  334. package/skeleton-panel/index.mjs +0 -34
  335. package/skeleton-panel/style.css +0 -1
  336. package/split-pane/index.mjs +0 -3
  337. package/split-pane/style.css +0 -1
  338. package/stateful/index.mjs +0 -71
  339. package/stateful/style.css +0 -1
  340. package/static-pageable-table/index.mjs +0 -72
  341. package/static-pageable-table/style.css +0 -1
  342. package/sub-table/index.mjs +0 -508
  343. package/sub-table/style.css +0 -1
  344. package/sub-table-plus/index.mjs +0 -593
  345. package/sub-table-plus/style.css +0 -1
  346. package/swiper/index.mjs +0 -128
  347. package/swiper/style.css +0 -1
  348. package/tab/index.mjs +0 -117
  349. package/tab/style.css +0 -1
  350. package/tab-item/index.mjs +0 -49
  351. package/table-column/index.mjs +0 -2
  352. package/table-column/style.css +0 -1
  353. package/table-view/index.mjs +0 -3
  354. package/table-view/style.css +0 -1
  355. package/tabs-view/index.mjs +0 -109
  356. package/tabs-view/style.css +0 -1
  357. package/tag-render/index.mjs +0 -80
  358. package/tag-render/style.css +0 -1
  359. package/text-ellipsis/index.mjs +0 -95
  360. package/text-ellipsis/style.css +0 -1
  361. package/toolbar/index.mjs +0 -2
  362. package/toolbar/style.css +0 -1
  363. package/toolbar-button/index.mjs +0 -143
  364. package/utils/style.css +0 -1
  365. package/verify/index.mjs +0 -58
  366. package/verify/style.css +0 -1
  367. package/video/index.d.ts +0 -10
  368. package/vue-cron/index.mjs +0 -2
  369. package/vue-cron/style.css +0 -1
  370. package/vue-qr-code/index.mjs +0 -32
  371. package/vue-quill-editor/index.mjs +0 -127
  372. package/vue-quill-editor/style.css +0 -1
  373. package/vue-tags-input/index.mjs +0 -348
  374. package/vue-tags-input/style.css +0 -1
  375. package/vue-tree-select/index.mjs +0 -2
  376. package/vue-tree-select/style.css +0 -1
  377. package/vue-video-player/index.mjs +0 -136
  378. package/vue-video-player/style.css +0 -1
  379. package/watermark/index.mjs +0 -47
  380. package/watermark/style.css +0 -1
  381. package/x-input-tag/index.mjs +0 -145
  382. package/x-input-tag/style.css +0 -1
  383. /package/chunks/{_plugin-vue_export-helper.7vrlOII_.mjs → _plugin-vue_export-helper.CTBRVsXt.mjs} +0 -0
  384. /package/chunks/{packages.BLDb9e6G.mjs → packages.W76nKiMk.mjs} +0 -0
  385. /package/chunks/{permission.C-IUDxQQ.mjs → permission.ZYdXiCsn.mjs} +0 -0
@@ -1,1227 +0,0 @@
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 };