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