@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,1475 +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 { _ as c, d as l, h as u, m as d, o as f, p, r as m, t as h } from "./install.BJl2MN77.mjs";
7
- import { B as ee, C as te, E as ne, L as re, M as g, O as ie, R as ae, S as oe, b as _, j as v, k as se, o as y, y as b } from "./style.CraPDfJA.mjs";
8
- import { n as ce } from "./use-locale.CBoQRFjH.mjs";
9
- import { n as x } from "./focus-trap.CuUc8N2C.mjs";
10
- import { n as le } from "./scroll.BJIpzi2Q.mjs";
11
- import { n as S, r as ue, t as de } from "./tooltip.Dzjs7LZ8.mjs";
12
- import { i as fe, n as pe, r as me, t as he } from "./use-form-item.DMDTkMq9.mjs";
13
- import { t as ge } from "./use-id.CyzdvfQn.mjs";
14
- import { n as _e } from "./vnode.raM3wMJz.mjs";
15
- import { n as ve, t as ye } from "./use-composition.BMPJBvYs.mjs";
16
- import { t as be } from "./use-aria.B9uqqWAE.mjs";
17
- import { l as xe, n as Se, t as C } from "./icon.niAg1zTC.mjs";
18
- import { a as w, i as Ce } from "./icon.AJYLfX1m.mjs";
19
- import { r as T } from "./form-item.fYYCXvCs.mjs";
20
- import { n as we, t as Te } from "./scrollbar.CvxOszy3.mjs";
21
- import { n as E, r as Ee, t as De } from "./tag.B6yUaGj-.mjs";
22
- import { d as Oe, n as ke, u as Ae } from "./util.fjuzrmWz.mjs";
23
- import { t as je } from "./form-input.DdSb45Tz.mjs";
24
- import { t as Me } from "./form-pick.BEC7lrNH.mjs";
25
- import { t as Ne } from "./dictionary.DXYdZefs.mjs";
26
- import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as Pe, createVNode as N, defineComponent as Fe, getCurrentInstance as P, inject as Ie, isVNode as Le, mergeProps as Re, nextTick as F, normalizeClass as I, normalizeStyle as L, onBeforeUnmount as R, onMounted as ze, openBlock as z, provide as Be, reactive as Ve, ref as B, renderList as V, renderSlot as H, resolveComponent as U, resolveDirective as He, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as W, toHandlerKey as Ge, toHandlers as Ke, toRaw as qe, toRefs as G, unref as Je, useSlots as Ye, vShow as Xe, watch as K, watchEffect as Ze, withCtx as q, withDirectives as J, withModifiers as Y } from "vue";
27
- import { isNumber as Qe, isPlainObject as $e, isString as et } from "@web-utils/core";
28
- import { clamp as tt, findLastIndex as nt, get as X, isEqual as Z, isNil as rt } from "lodash-unified";
29
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/hooks/use-calc-input-width/index.mjs
30
- function it() {
31
- let e = We(), t = B(0), n = O(() => ({ minWidth: `${Math.max(t.value, 11)}px` }));
32
- return _(e, () => {
33
- var n;
34
- t.value = ((n = e.value) == null ? void 0 : n.getBoundingClientRect().width) ?? 0;
35
- }), {
36
- calculatorRef: e,
37
- calculatorWidth: t,
38
- inputStyle: n
39
- };
40
- }
41
- //#endregion
42
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/token.mjs
43
- var at = Symbol("ElSelectGroup"), ot = Symbol("ElSelect"), st = {
44
- label: "label",
45
- value: "value",
46
- disabled: "disabled",
47
- options: "options"
48
- };
49
- function ct(e) {
50
- let t = B({
51
- ...st,
52
- ...e.props
53
- }), n = { ...e.props };
54
- return K(() => e.props, (e) => {
55
- Z(e, n) || (t.value = {
56
- ...st,
57
- ...e
58
- }, n = { ...e });
59
- }, { deep: !0 }), {
60
- aliasProps: t,
61
- getLabel: (e) => X(e, t.value.label),
62
- getValue: (e) => X(e, t.value.value),
63
- getDisabled: (e) => X(e, t.value.disabled),
64
- getOptions: (e) => X(e, t.value.options)
65
- };
66
- }
67
- //#endregion
68
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/select.mjs
69
- var lt = v({
70
- name: String,
71
- id: String,
72
- modelValue: {
73
- type: g([
74
- Array,
75
- String,
76
- Number,
77
- Boolean,
78
- Object
79
- ]),
80
- default: void 0
81
- },
82
- autocomplete: {
83
- type: String,
84
- default: "off"
85
- },
86
- automaticDropdown: Boolean,
87
- size: s,
88
- effect: {
89
- type: g(String),
90
- default: "light"
91
- },
92
- disabled: {
93
- type: Boolean,
94
- default: void 0
95
- },
96
- clearable: Boolean,
97
- filterable: Boolean,
98
- allowCreate: Boolean,
99
- loading: Boolean,
100
- popperClass: {
101
- type: String,
102
- default: ""
103
- },
104
- popperStyle: { type: g([String, Object]) },
105
- popperOptions: {
106
- type: g(Object),
107
- default: () => ({})
108
- },
109
- remote: Boolean,
110
- debounce: {
111
- type: Number,
112
- default: 300
113
- },
114
- loadingText: String,
115
- noMatchText: String,
116
- noDataText: String,
117
- remoteMethod: { type: g(Function) },
118
- filterMethod: { type: g(Function) },
119
- multiple: Boolean,
120
- multipleLimit: {
121
- type: Number,
122
- default: 0
123
- },
124
- placeholder: { type: String },
125
- defaultFirstOption: Boolean,
126
- reserveKeyword: {
127
- type: Boolean,
128
- default: !0
129
- },
130
- valueKey: {
131
- type: String,
132
- default: "value"
133
- },
134
- collapseTags: Boolean,
135
- collapseTagsTooltip: Boolean,
136
- tagTooltip: {
137
- type: g(Object),
138
- default: () => ({})
139
- },
140
- maxCollapseTags: {
141
- type: Number,
142
- default: 1
143
- },
144
- teleported: S.teleported,
145
- persistent: {
146
- type: Boolean,
147
- default: !0
148
- },
149
- clearIcon: {
150
- type: w,
151
- default: xe
152
- },
153
- fitInputWidth: Boolean,
154
- suffixIcon: {
155
- type: w,
156
- default: Se
157
- },
158
- tagType: {
159
- ...E.type,
160
- default: "info"
161
- },
162
- tagEffect: {
163
- ...E.effect,
164
- default: "light"
165
- },
166
- validateEvent: {
167
- type: Boolean,
168
- default: !0
169
- },
170
- remoteShowSuffix: Boolean,
171
- showArrow: {
172
- type: Boolean,
173
- default: !0
174
- },
175
- offset: {
176
- type: Number,
177
- default: 12
178
- },
179
- placement: {
180
- type: g(String),
181
- values: ue,
182
- default: "bottom-start"
183
- },
184
- fallbackPlacements: {
185
- type: g(Array),
186
- default: [
187
- "bottom-start",
188
- "top-start",
189
- "right",
190
- "left"
191
- ]
192
- },
193
- tabindex: {
194
- type: [String, Number],
195
- default: 0
196
- },
197
- appendTo: S.appendTo,
198
- options: { type: g(Array) },
199
- props: {
200
- type: g(Object),
201
- default: () => st
202
- },
203
- ...i,
204
- ...be(["ariaLabel"])
205
- });
206
- we.scroll;
207
- //#endregion
208
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/option.mjs
209
- var ut = "ElOption", Q = v({
210
- value: {
211
- type: [
212
- String,
213
- Number,
214
- Boolean,
215
- Object
216
- ],
217
- required: !0
218
- },
219
- label: { type: [String, Number] },
220
- created: Boolean,
221
- disabled: Boolean
222
- });
223
- //#endregion
224
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/useOption.mjs
225
- function dt(e, t) {
226
- let n = Ie(ot);
227
- n || se(ut, "usage: <el-select><el-option /></el-select/>");
228
- let r = Ie(at, { disabled: !1 }), i = O(() => u(T(n.props.modelValue), e.value)), a = O(() => {
229
- if (n.props.multiple) {
230
- let e = T(n.props.modelValue ?? []);
231
- return !i.value && e.length >= n.props.multipleLimit && n.props.multipleLimit > 0;
232
- } else return !1;
233
- }), o = O(() => e.label ?? (d(e.value) ? "" : e.value)), s = O(() => e.value || e.label || ""), c = O(() => e.disabled || t.groupDisabled || a.value), l = P(), u = (t = [], r) => {
234
- if (d(e.value)) {
235
- let e = n.props.valueKey;
236
- return t && t.some((t) => qe(X(t, e)) === X(r, e));
237
- } else return t && t.includes(r);
238
- };
239
- return K(() => o.value, () => {
240
- !e.created && !n.props.remote && n.setSelected();
241
- }), K(() => e.value, (t, r) => {
242
- let { remote: i, valueKey: a } = n.props;
243
- if ((i ? t !== r : !Z(t, r)) && (n.onOptionDestroy(r, l.proxy), n.onOptionCreate(l.proxy)), !e.created && !i) {
244
- if (a && d(t) && d(r) && t[a] === r[a]) return;
245
- n.setSelected();
246
- }
247
- }), K(() => r.disabled, () => {
248
- t.groupDisabled = r.disabled;
249
- }, { immediate: !0 }), {
250
- select: n,
251
- currentLabel: o,
252
- currentValue: s,
253
- itemSelected: i,
254
- isDisabled: c,
255
- hoverItem: () => {
256
- c.value || (n.states.hoveringIndex = n.optionsArray.indexOf(l.proxy));
257
- },
258
- updateOption: (n) => {
259
- t.visible = new RegExp(y(n), "i").test(String(o.value)) || e.created;
260
- }
261
- };
262
- }
263
- //#endregion
264
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/option.vue_vue_type_script_lang.mjs
265
- var ft = Fe({
266
- name: ut,
267
- componentName: ut,
268
- props: Q,
269
- setup(e) {
270
- let t = f("select"), n = ge(), r = O(() => [
271
- t.be("dropdown", "item"),
272
- t.is("disabled", Je(s)),
273
- t.is("selected", Je(o)),
274
- t.is("hovering", Je(p))
275
- ]), i = Ve({
276
- index: -1,
277
- groupDisabled: !1,
278
- visible: !0,
279
- hover: !1
280
- }), { currentLabel: a, itemSelected: o, isDisabled: s, select: c, hoverItem: l, updateOption: u } = dt(e, i), { visible: d, hover: p } = G(i), m = P().proxy;
281
- c.onOptionCreate(m), R(() => {
282
- let e = m.value;
283
- F(() => {
284
- let { selected: t } = c.states, n = t.some((e) => e.value === m.value);
285
- c.states.cachedOptions.get(e) === m && !n && c.states.cachedOptions.delete(e);
286
- }), c.onOptionDestroy(e, m);
287
- });
288
- function h() {
289
- s.value || c.handleOptionSelect(m);
290
- }
291
- return {
292
- ns: t,
293
- id: n,
294
- containerKls: r,
295
- currentLabel: a,
296
- itemSelected: o,
297
- isDisabled: s,
298
- select: c,
299
- visible: d,
300
- hover: p,
301
- states: i,
302
- hoverItem: l,
303
- updateOption: u,
304
- selectOptionClick: h
305
- };
306
- }
307
- }), pt = [
308
- "id",
309
- "aria-disabled",
310
- "aria-selected"
311
- ];
312
- function mt(e, t, n, r, i, a) {
313
- return J((z(), j("li", {
314
- id: e.id,
315
- class: I(e.containerKls),
316
- role: "option",
317
- "aria-disabled": e.isDisabled || void 0,
318
- "aria-selected": e.itemSelected,
319
- onMousemove: t[0] || (t[0] = (...t) => e.hoverItem && e.hoverItem(...t)),
320
- onClick: t[1] || (t[1] = Y((...t) => e.selectOptionClick && e.selectOptionClick(...t), ["stop"]))
321
- }, [H(e.$slots, "default", {}, () => [M("span", null, W(e.currentLabel), 1)])], 42, pt)), [[Xe, e.visible]]);
322
- }
323
- var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht = Fe({
324
- name: "ElOptionGroup",
325
- componentName: "ElOptionGroup",
326
- props: {
327
- label: String,
328
- disabled: Boolean
329
- },
330
- setup(e) {
331
- let t = f("select"), n = B(), r = P(), i = B([]);
332
- Be(at, Ve({ ...G(e) }));
333
- let a = O(() => i.value.some((e) => e.visible === !0)), o = (e) => {
334
- var t;
335
- return e.type.name === "ElOption" && !!((t = e.component) != null && t.proxy);
336
- }, s = (e) => {
337
- let t = T(e), n = [];
338
- return t.forEach((e) => {
339
- var t;
340
- Le(e) && (o(e) ? n.push(e.component.proxy) : l(e.children) && e.children.length ? n.push(...s(e.children)) : (t = e.component) != null && t.subTree && n.push(...s(e.component.subTree)));
341
- }), n;
342
- }, c = () => {
343
- i.value = s(r.subTree);
344
- };
345
- return ze(() => {
346
- c();
347
- }), b(n, c, {
348
- attributes: !0,
349
- subtree: !0,
350
- childList: !0
351
- }), {
352
- groupRef: n,
353
- visible: a,
354
- ns: t
355
- };
356
- }
357
- });
358
- //#endregion
359
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/option-group.mjs
360
- function gt(e, t, n, r, i, a) {
361
- return J((z(), j("ul", {
362
- ref: "groupRef",
363
- class: I(e.ns.be("group", "wrap"))
364
- }, [M("li", { class: I(e.ns.be("group", "title")) }, W(e.label), 3), M("li", null, [M("ul", { class: I(e.ns.b("group")) }, [H(e.$slots, "default")], 2)])], 2)), [[Xe, e.visible]]);
365
- }
366
- var _t = /* @__PURE__ */ x(ht, [["render", gt]]), vt = Fe({
367
- name: "ElSelectDropdown",
368
- componentName: "ElSelectDropdown",
369
- setup() {
370
- let e = Ie(ot), t = f("select"), n = O(() => e.props.popperClass), r = O(() => e.props.multiple), i = O(() => e.props.fitInputWidth), a = B("");
371
- function o() {
372
- var t;
373
- let n = (t = e.selectRef) == null ? void 0 : t.offsetWidth;
374
- n ? a.value = `${n - 2}px` : a.value = "";
375
- }
376
- return ze(() => {
377
- o(), _(e.selectRef, o);
378
- }), {
379
- ns: t,
380
- minWidth: a,
381
- popperClass: n,
382
- isMultiple: r,
383
- isFitInputWidth: i
384
- };
385
- }
386
- });
387
- //#endregion
388
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/select-dropdown.mjs
389
- function yt(e, t, n, r, i, a) {
390
- return z(), j("div", {
391
- class: I([
392
- e.ns.b("dropdown"),
393
- e.ns.is("multiple", e.isMultiple),
394
- e.popperClass
395
- ]),
396
- style: L({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
397
- }, [
398
- e.$slots.header ? (z(), j("div", {
399
- key: 0,
400
- class: I(e.ns.be("dropdown", "header"))
401
- }, [H(e.$slots, "header")], 2)) : A("v-if", !0),
402
- H(e.$slots, "default"),
403
- e.$slots.footer ? (z(), j("div", {
404
- key: 1,
405
- class: I(e.ns.be("dropdown", "footer"))
406
- }, [H(e.$slots, "footer")], 2)) : A("v-if", !0)
407
- ], 6);
408
- }
409
- var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, i) => {
410
- let { t: s } = ce(), c = Ye(), m = ge(), h = f("select"), g = f("input"), v = Ve({
411
- inputValue: "",
412
- options: /* @__PURE__ */ new Map(),
413
- cachedOptions: /* @__PURE__ */ new Map(),
414
- optionValues: [],
415
- selected: [],
416
- selectionWidth: 0,
417
- collapseItemWidth: 0,
418
- selectedLabel: "",
419
- hoveringIndex: -1,
420
- previousQuery: null,
421
- inputHovering: !1,
422
- menuVisibleOnFocus: !1,
423
- isBeforeHide: !1
424
- }), se = B(), y = B(), b = B(), x = B(), S = B(), ue = B(), de = B(), _e = B(), be = B(), xe = B(), Se = B(), C = B(!1), w = B(), we = B(!1), { form: Te, formItem: E } = he(), { inputId: Ee } = pe(e, { formItemContext: E }), { valueOnClear: De, isEmptyValue: Oe } = r(e), { isComposing: ke, handleCompositionStart: Ae, handleCompositionUpdate: je, handleCompositionEnd: Me } = ye({ afterComposition: (e) => $e(e) }), Ne = me(), { wrapperRef: D, isFocused: k, handleBlur: A } = ve(S, {
425
- disabled: Ne,
426
- afterFocus() {
427
- e.automaticDropdown && !C.value && (C.value = !0, v.menuVisibleOnFocus = !0);
428
- },
429
- beforeBlur(e) {
430
- var t, n;
431
- return ((t = b.value) == null ? void 0 : t.isFocusInsideContent(e)) || ((n = x.value) == null ? void 0 : n.isFocusInsideContent(e));
432
- },
433
- afterBlur() {
434
- var t;
435
- C.value = !1, v.menuVisibleOnFocus = !1, e.validateEvent && (E == null || (t = E.validate) == null || t.call(E, "blur").catch((e) => ie(e)));
436
- }
437
- }), j = O(() => l(e.modelValue) ? e.modelValue.length > 0 : !Oe(e.modelValue)), M = O(() => (Te == null ? void 0 : Te.statusIcon) ?? !1), Pe = O(() => e.clearable && !Ne.value && j.value && (k.value || v.inputHovering)), N = O(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Fe = O(() => h.is("reverse", !!(N.value && C.value))), P = O(() => (E == null ? void 0 : E.validateState) || ""), Ie = O(() => P.value && Ce[P.value]), Le = O(() => e.remote ? e.debounce : 0), Re = O(() => e.remote && !v.inputValue && v.options.size === 0), I = O(() => e.loading ? e.loadingText || s("el.select.loading") : e.filterable && v.inputValue && v.options.size > 0 && L.value === 0 ? e.noMatchText || s("el.select.noMatch") : v.options.size === 0 ? e.noDataText || s("el.select.noData") : null), L = O(() => R.value.filter((e) => e.visible).length), R = O(() => {
438
- let e = Array.from(v.options.values()), t = [];
439
- return v.optionValues.forEach((n) => {
440
- let r = e.findIndex((e) => e.value === n);
441
- r > -1 && t.push(e[r]);
442
- }), t.length >= e.length ? t : e;
443
- }), z = O(() => Array.from(v.cachedOptions.values())), Be = O(() => {
444
- let t = R.value.filter((e) => !e.created).some((e) => e.currentLabel === v.inputValue);
445
- return e.filterable && e.allowCreate && v.inputValue !== "" && !t;
446
- }), V = () => {
447
- e.filterable && p(e.filterMethod) || e.filterable && e.remote && p(e.remoteMethod) || R.value.forEach((e) => {
448
- var t;
449
- (t = e.updateOption) == null || t.call(e, v.inputValue);
450
- });
451
- }, H = fe(), U = O(() => ["small"].includes(H.value) ? "small" : "default"), He = O({
452
- get() {
453
- return C.value && (e.loading || !Re.value || e.remote && !!c.empty) && (!we.value || !re(v.previousQuery) || v.options.size > 0);
454
- },
455
- set(e) {
456
- C.value = e;
457
- }
458
- }), Ue = O(() => {
459
- if (e.multiple && !ee(e.modelValue)) return T(e.modelValue).length === 0 && !v.inputValue;
460
- let t = l(e.modelValue) ? e.modelValue[0] : e.modelValue;
461
- return e.filterable || ee(t) ? !v.inputValue : !0;
462
- }), We = O(() => {
463
- let t = e.placeholder ?? s("el.select.placeholder");
464
- return e.multiple || !j.value ? t : v.selectedLabel;
465
- }), W = O(() => te ? null : "mouseenter");
466
- K(() => e.modelValue, (t, n) => {
467
- e.multiple && e.filterable && !e.reserveKeyword && (v.inputValue = "", Ge("")), qe(), !Z(t, n) && e.validateEvent && (E == null || E.validate("change").catch((e) => ie(e)));
468
- }, {
469
- flush: "post",
470
- deep: !0
471
- }), K(() => C.value, (e) => {
472
- e ? Ge(v.inputValue) : (v.inputValue = "", v.previousQuery = null, v.isBeforeHide = !0, v.menuVisibleOnFocus = !1);
473
- }), K(() => v.options.entries(), () => {
474
- oe && (qe(), e.defaultFirstOption && (e.filterable || e.remote) && L.value && Ke());
475
- }, { flush: "post" }), K([() => v.hoveringIndex, R], ([e]) => {
476
- ae(e) && e > -1 ? w.value = R.value[e] || {} : w.value = {}, R.value.forEach((e) => {
477
- e.hover = w.value === e;
478
- });
479
- }), Ze(() => {
480
- v.isBeforeHide || V();
481
- });
482
- let Ge = (t) => {
483
- v.previousQuery === t || ke.value || (v.previousQuery = t, e.filterable && p(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && p(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && L.value ? F(Ke) : F(Je));
484
- }, Ke = () => {
485
- let e = R.value.filter((e) => e.visible && !e.disabled && !e.states.groupDisabled), t = e.find((e) => e.created), n = e[0];
486
- v.hoveringIndex = ut(R.value.map((e) => e.value), t || n);
487
- }, qe = () => {
488
- if (e.multiple) v.selectedLabel = "";
489
- else {
490
- let t = G(l(e.modelValue) ? e.modelValue[0] : e.modelValue);
491
- v.selectedLabel = t.currentLabel, v.selected = [t];
492
- return;
493
- }
494
- let t = [];
495
- ee(e.modelValue) || T(e.modelValue).forEach((e) => {
496
- t.push(G(e));
497
- }), v.selected = t;
498
- }, G = (t) => {
499
- let n, r = u(t);
500
- for (let i = v.cachedOptions.size - 1; i >= 0; i--) {
501
- let a = z.value[i];
502
- if (r ? X(a.value, e.valueKey) === X(t, e.valueKey) : a.value === t) {
503
- n = {
504
- index: R.value.filter((e) => !e.created).indexOf(a),
505
- value: t,
506
- currentLabel: a.currentLabel,
507
- get isDisabled() {
508
- return a.isDisabled;
509
- }
510
- };
511
- break;
512
- }
513
- }
514
- return n || {
515
- index: -1,
516
- value: t,
517
- currentLabel: r ? t.label : t ?? ""
518
- };
519
- }, Je = () => {
520
- let e = v.selected.length;
521
- if (e > 0) {
522
- let t = v.selected[e - 1];
523
- v.hoveringIndex = R.value.findIndex((e) => xt(t) === xt(e));
524
- } else v.hoveringIndex = -1;
525
- }, Xe = () => {
526
- v.selectionWidth = Number.parseFloat(window.getComputedStyle(y.value).width);
527
- }, q = () => {
528
- v.collapseItemWidth = xe.value.getBoundingClientRect().width;
529
- }, J = () => {
530
- var e, t;
531
- (e = b.value) == null || (t = e.updatePopper) == null || t.call(e);
532
- }, Y = () => {
533
- var e, t;
534
- (e = x.value) == null || (t = e.updatePopper) == null || t.call(e);
535
- }, Qe = () => {
536
- v.inputValue.length > 0 && !C.value && (C.value = !0), Ge(v.inputValue);
537
- }, $e = (t) => {
538
- if (v.inputValue = t.target.value, e.remote) we.value = !0, et();
539
- else return Qe();
540
- }, et = ne(() => {
541
- Qe(), we.value = !1;
542
- }, Le), it = (t) => {
543
- Z(e.modelValue, t) || i(o, t);
544
- }, at = (e) => nt(e, (e) => {
545
- let t = v.cachedOptions.get(e);
546
- return !(t != null && t.disabled) && !(t != null && t.states.groupDisabled);
547
- }), ot = (r) => {
548
- let o = t(r);
549
- if (e.multiple && o !== n.delete && r.target.value.length <= 0) {
550
- let t = T(e.modelValue).slice(), n = at(t);
551
- if (n < 0) return;
552
- let r = t[n];
553
- t.splice(n, 1), i(a, t), it(t), i("remove-tag", r);
554
- }
555
- }, st = (t, n) => {
556
- let r = v.selected.indexOf(n);
557
- if (r > -1 && !Ne.value) {
558
- let t = T(e.modelValue).slice();
559
- t.splice(r, 1), i(a, t), it(t), i("remove-tag", n.value);
560
- }
561
- t.stopPropagation(), $();
562
- }, ct = (t) => {
563
- t.stopPropagation();
564
- let n = e.multiple ? [] : De.value;
565
- if (e.multiple) for (let e of v.selected) e.isDisabled && n.push(e.value);
566
- i(a, n), it(n), v.hoveringIndex = -1, C.value = !1, i("clear"), $();
567
- }, lt = (t) => {
568
- if (e.multiple) {
569
- let n = T(e.modelValue ?? []).slice(), r = ut(n, t);
570
- r > -1 ? n.splice(r, 1) : (e.multipleLimit <= 0 || n.length < e.multipleLimit) && n.push(t.value), i(a, n), it(n), t.created && Ge(""), e.filterable && (t.created || !e.reserveKeyword) && (v.inputValue = "");
571
- } else !Z(e.modelValue, t.value) && i("update:modelValue", t.value), it(t.value), C.value = !1;
572
- $(), !C.value && F(() => {
573
- Q(t);
574
- });
575
- }, ut = (t, n) => ee(n) ? -1 : d(n.value) ? t.findIndex((t) => Z(X(t, e.valueKey), xt(n))) : t.indexOf(n.value), Q = (e) => {
576
- var t;
577
- let n = l(e) ? e[e.length - 1] : e, r = null;
578
- if (!rt(n == null ? void 0 : n.value)) {
579
- let e = R.value.filter((e) => e.value === n.value);
580
- e.length > 0 && (r = e[0].$el);
581
- }
582
- if (b.value && r) {
583
- var i, a;
584
- let e = (i = b.value) == null || (i = i.popperRef) == null || (i = i.contentRef) == null || (a = i.querySelector) == null ? void 0 : a.call(i, `.${h.be("dropdown", "wrap")}`);
585
- e && le(e, r);
586
- }
587
- (t = Se.value) == null || t.handleScroll();
588
- }, dt = (e) => {
589
- v.options.set(e.value, e), v.cachedOptions.set(e.value, e);
590
- }, ft = (e, t) => {
591
- v.options.get(e) === t && v.options.delete(e);
592
- }, pt = O(() => {
593
- var e;
594
- return (e = b.value) == null || (e = e.popperRef) == null ? void 0 : e.contentRef;
595
- }), mt = () => {
596
- v.isBeforeHide = !1, F(() => {
597
- var e;
598
- (e = Se.value) == null || e.update(), Q(v.selected);
599
- });
600
- }, $ = () => {
601
- var e;
602
- (e = S.value) == null || e.focus();
603
- }, ht = () => {
604
- var e;
605
- if (C.value) {
606
- C.value = !1, F(() => {
607
- var e;
608
- return (e = S.value) == null ? void 0 : e.blur();
609
- });
610
- return;
611
- }
612
- (e = S.value) == null || e.blur();
613
- }, gt = (e) => {
614
- ct(e);
615
- }, _t = (e) => {
616
- if (C.value = !1, k.value) {
617
- let t = new FocusEvent("blur", e);
618
- F(() => A(t));
619
- }
620
- }, vt = () => {
621
- v.inputValue.length > 0 ? v.inputValue = "" : C.value = !1;
622
- }, yt = (t) => {
623
- var n;
624
- Ne.value || e.filterable && C.value && t && !((n = de.value) != null && n.contains(t.target)) || (te && (v.inputHovering = !0), v.menuVisibleOnFocus ? v.menuVisibleOnFocus = !1 : C.value = !C.value);
625
- }, bt = () => {
626
- if (!C.value) yt();
627
- else {
628
- let e = R.value[v.hoveringIndex];
629
- e && !e.isDisabled && lt(e);
630
- }
631
- }, xt = (t) => d(t.value) ? X(t.value, e.valueKey) : t.value, St = O(() => R.value.filter((e) => e.visible).every((e) => e.isDisabled)), Ct = O(() => e.multiple ? e.collapseTags ? v.selected.slice(0, e.maxCollapseTags) : v.selected : []), wt = O(() => e.multiple && e.collapseTags ? v.selected.slice(e.maxCollapseTags) : []), Tt = (e) => {
632
- if (!C.value) {
633
- C.value = !0;
634
- return;
635
- }
636
- if (!(v.options.size === 0 || L.value === 0 || ke.value) && !St.value) {
637
- e === "next" ? (v.hoveringIndex++, v.hoveringIndex === v.options.size && (v.hoveringIndex = 0)) : e === "prev" && (v.hoveringIndex--, v.hoveringIndex < 0 && (v.hoveringIndex = v.options.size - 1));
638
- let t = R.value[v.hoveringIndex];
639
- (t.isDisabled || !t.visible) && Tt(e), F(() => Q(w.value));
640
- }
641
- }, Et = (e, t, n, r) => {
642
- for (let i = t; i >= 0 && i < r; i += n) {
643
- let t = e[i];
644
- if (!(t != null && t.isDisabled) && t != null && t.visible) return i;
645
- }
646
- return null;
647
- }, Dt = (e, t) => {
648
- let n = v.options.size;
649
- if (n === 0) return;
650
- let r = tt(e, 0, n - 1), i = R.value, a = t === "up" ? -1 : 1, o = Et(i, r, a, n) ?? Et(i, r - a, -a, n);
651
- o != null && (v.hoveringIndex = o, F(() => Q(w.value)));
652
- }, Ot = (e) => {
653
- let r = t(e), i = !0;
654
- switch (r) {
655
- case n.up:
656
- Tt("prev");
657
- break;
658
- case n.down:
659
- Tt("next");
660
- break;
661
- case n.enter:
662
- case n.numpadEnter:
663
- ke.value || bt();
664
- break;
665
- case n.esc:
666
- vt();
667
- break;
668
- case n.backspace:
669
- i = !1, ot(e);
670
- return;
671
- case n.home:
672
- if (!C.value) return;
673
- Dt(0, "down");
674
- break;
675
- case n.end:
676
- if (!C.value) return;
677
- Dt(v.options.size - 1, "up");
678
- break;
679
- case n.pageUp:
680
- if (!C.value) return;
681
- Dt(v.hoveringIndex - 10, "up");
682
- break;
683
- case n.pageDown:
684
- if (!C.value) return;
685
- Dt(v.hoveringIndex + 10, "down");
686
- break;
687
- default:
688
- i = !1;
689
- break;
690
- }
691
- i && (e.preventDefault(), e.stopPropagation());
692
- }, kt = () => {
693
- if (!y.value) return 0;
694
- let e = window.getComputedStyle(y.value);
695
- return Number.parseFloat(e.gap || "6px");
696
- }, At = O(() => {
697
- let t = kt(), n = e.filterable ? t + 11 : 0;
698
- return { maxWidth: `${xe.value && e.maxCollapseTags === 1 ? v.selectionWidth - v.collapseItemWidth - t - n : v.selectionWidth - n}px` };
699
- }), jt = O(() => ({ maxWidth: `${v.selectionWidth}px` })), Mt = (e) => {
700
- i("popup-scroll", e);
701
- };
702
- _(y, Xe), _(D, J), _(be, Y), _(xe, q);
703
- let Nt;
704
- return K(() => He.value, (e) => {
705
- e ? Nt = _(_e, J).stop : (Nt == null || Nt(), Nt = void 0), i("visible-change", e);
706
- }), ze(() => {
707
- qe();
708
- }), {
709
- inputId: Ee,
710
- contentId: m,
711
- nsSelect: h,
712
- nsInput: g,
713
- states: v,
714
- isFocused: k,
715
- expanded: C,
716
- optionsArray: R,
717
- hoverOption: w,
718
- selectSize: H,
719
- filteredOptionsCount: L,
720
- updateTooltip: J,
721
- updateTagTooltip: Y,
722
- debouncedOnInputChange: et,
723
- onInput: $e,
724
- deletePrevTag: ot,
725
- deleteTag: st,
726
- deleteSelected: ct,
727
- handleOptionSelect: lt,
728
- scrollToOption: Q,
729
- hasModelValue: j,
730
- shouldShowPlaceholder: Ue,
731
- currentPlaceholder: We,
732
- mouseEnterEventName: W,
733
- needStatusIcon: M,
734
- showClearBtn: Pe,
735
- iconComponent: N,
736
- iconReverse: Fe,
737
- validateState: P,
738
- validateIcon: Ie,
739
- showNewOption: Be,
740
- updateOptions: V,
741
- collapseTagSize: U,
742
- setSelected: qe,
743
- selectDisabled: Ne,
744
- emptyText: I,
745
- handleCompositionStart: Ae,
746
- handleCompositionUpdate: je,
747
- handleCompositionEnd: Me,
748
- handleKeydown: Ot,
749
- onOptionCreate: dt,
750
- onOptionDestroy: ft,
751
- handleMenuEnter: mt,
752
- focus: $,
753
- blur: ht,
754
- handleClearClick: gt,
755
- handleClickOutside: _t,
756
- handleEsc: vt,
757
- toggleMenu: yt,
758
- selectOption: bt,
759
- getValueKey: xt,
760
- navigateOptions: Tt,
761
- dropdownMenuVisible: He,
762
- showTagList: Ct,
763
- collapseTagList: wt,
764
- popupScroll: Mt,
765
- getOption: G,
766
- tagStyle: At,
767
- collapseTagStyle: jt,
768
- popperRef: pt,
769
- inputRef: S,
770
- tooltipRef: b,
771
- tagTooltipRef: x,
772
- prefixRef: ue,
773
- suffixRef: de,
774
- selectRef: se,
775
- wrapperRef: D,
776
- selectionRef: y,
777
- scrollbarRef: Se,
778
- menuRef: _e,
779
- tagMenuRef: be,
780
- collapseItemRef: xe
781
- };
782
- }, St = Fe({
783
- name: "ElOptions",
784
- setup(e, { slots: t }) {
785
- let n = Ie(ot), r = [];
786
- return () => {
787
- var e, i;
788
- let a = (e = t.default) == null ? void 0 : e.call(t), o = [];
789
- function s(e) {
790
- l(e) && e.forEach((e) => {
791
- var t, n, r, i;
792
- let a = (t = (e == null ? void 0 : e.type) || {}) == null ? void 0 : t.name;
793
- a === "ElOptionGroup" ? s(!c(e.children) && !l(e.children) && p((n = e.children) == null ? void 0 : n.default) ? (r = e.children) == null ? void 0 : r.default() : e.children) : a === "ElOption" ? o.push((i = e.props) == null ? void 0 : i.value) : l(e.children) && s(e.children);
794
- });
795
- }
796
- return a.length && s((i = a[0]) == null ? void 0 : i.children), Z(o, r) || (r = o, n && (n.states.optionValues = o)), a;
797
- };
798
- }
799
- }), Ct = "ElSelect", wt = /* @__PURE__ */ new WeakMap(), Tt = (e) => (...t) => {
800
- var n, r;
801
- let i = t[0];
802
- if (!i || i.includes("Slot \"default\" invoked outside of the render function") && (n = t[2]) != null && n.includes("ElTreeSelect")) return;
803
- let a = (r = wt.get(e)) == null ? void 0 : r.originalWarnHandler;
804
- if (a) {
805
- a(...t);
806
- return;
807
- }
808
- console.warn(...t);
809
- }, Et = (e) => {
810
- let t = wt.get(e);
811
- return t || (t = {
812
- originalWarnHandler: e.config.warnHandler,
813
- handler: Tt(e),
814
- count: 0
815
- }, wt.set(e, t)), t;
816
- }, Dt = Fe({
817
- name: Ct,
818
- componentName: Ct,
819
- components: {
820
- ElSelectMenu: bt,
821
- ElOption: $,
822
- ElOptions: St,
823
- ElOptionGroup: _t,
824
- ElTag: De,
825
- ElScrollbar: Te,
826
- ElTooltip: de,
827
- ElIcon: C
828
- },
829
- directives: { ClickOutside: Ee },
830
- props: lt,
831
- emits: [
832
- a,
833
- o,
834
- "remove-tag",
835
- "clear",
836
- "visible-change",
837
- "focus",
838
- "blur",
839
- "popup-scroll"
840
- ],
841
- setup(e, { emit: t, slots: n }) {
842
- let r = P(), i = Et(r.appContext);
843
- i.count += 1, r.appContext.config.warnHandler = i.handler;
844
- let a = O(() => {
845
- let { modelValue: t, multiple: n } = e, r = n ? [] : void 0;
846
- return l(t) ? n ? t : r : n ? r : t;
847
- }), o = Ve({
848
- ...G(e),
849
- modelValue: a
850
- }), s = xt(o, t), { calculatorRef: c, inputStyle: u } = it(), { getLabel: f, getValue: p, getOptions: m, getDisabled: h } = ct(e), ee = (e) => ({
851
- label: f(e),
852
- value: p(e),
853
- disabled: h(e)
854
- }), te = (e) => e.reduce((e, t) => (e.push(t), t.children && t.children.length > 0 && e.push(...te(t.children)), e), []), ne = (e) => {
855
- _e(e || []).forEach((e) => {
856
- if (d(e) && (e.type.name === "ElOption" || e.type.name === "ElTree")) {
857
- var t;
858
- let n = e.type.name;
859
- if (n === "ElTree") te(((t = e.props) == null ? void 0 : t.data) || []).forEach((e) => {
860
- e.currentLabel = e.label ?? (d(e.value) ? "" : e.value), s.onOptionCreate(e);
861
- });
862
- else if (n === "ElOption") {
863
- let t = { ...e.props };
864
- t.currentLabel = t.label ?? (d(t.value) ? "" : t.value), s.onOptionCreate(t);
865
- }
866
- }
867
- });
868
- };
869
- K(() => {
870
- var t;
871
- return [e.persistent || s.expanded.value || !n.default || (t = n.default) == null ? void 0 : t.call(n), a.value];
872
- }, () => {
873
- var t;
874
- e.persistent || s.expanded.value || n.default && (s.states.options.clear(), ne((t = n.default) == null ? void 0 : t.call(n)));
875
- }, { immediate: !0 }), Be(ot, Ve({
876
- props: o,
877
- states: s.states,
878
- selectRef: s.selectRef,
879
- optionsArray: s.optionsArray,
880
- setSelected: s.setSelected,
881
- handleOptionSelect: s.handleOptionSelect,
882
- onOptionCreate: s.onOptionCreate,
883
- onOptionDestroy: s.onOptionDestroy
884
- }));
885
- let re = O(() => e.multiple ? s.states.selected.map((e) => e.currentLabel) : s.states.selectedLabel);
886
- return R(() => {
887
- let e = wt.get(r.appContext);
888
- e && (--e.count, e.count <= 0 && (r.appContext.config.warnHandler = e.originalWarnHandler, wt.delete(r.appContext)));
889
- }), {
890
- ...s,
891
- modelValue: a,
892
- selectedLabel: re,
893
- calculatorRef: c,
894
- inputStyle: u,
895
- getLabel: f,
896
- getValue: p,
897
- getOptions: m,
898
- getDisabled: h,
899
- getOptionProps: ee
900
- };
901
- }
902
- }), Ot = [
903
- "id",
904
- "value",
905
- "name",
906
- "disabled",
907
- "autocomplete",
908
- "tabindex",
909
- "readonly",
910
- "aria-activedescendant",
911
- "aria-controls",
912
- "aria-expanded",
913
- "aria-label"
914
- ], kt = ["textContent"], At = { key: 1 };
915
- function jt(e, t, n, r, i, a) {
916
- let o = U("el-tag"), s = U("el-tooltip"), c = U("el-icon"), l = U("el-option"), u = U("el-option-group"), d = U("el-options"), f = U("el-scrollbar"), p = U("el-select-menu"), m = He("click-outside");
917
- return J((z(), j("div", Re({
918
- ref: "selectRef",
919
- class: [e.nsSelect.b(), e.nsSelect.m(e.selectSize)]
920
- }, { [Ge(e.mouseEnterEventName)]: t[11] || (t[11] = (t) => e.states.inputHovering = !0) }, { onMouseleave: t[12] || (t[12] = (t) => e.states.inputHovering = !1) }), [N(s, {
921
- ref: "tooltipRef",
922
- visible: e.dropdownMenuVisible,
923
- placement: e.placement,
924
- teleported: e.teleported,
925
- "popper-class": [e.nsSelect.e("popper"), e.popperClass],
926
- "popper-style": e.popperStyle,
927
- "popper-options": e.popperOptions,
928
- "fallback-placements": e.fallbackPlacements,
929
- effect: e.effect,
930
- pure: "",
931
- trigger: "click",
932
- transition: `${e.nsSelect.namespace.value}-zoom-in-top`,
933
- "stop-popper-mouse-event": !1,
934
- "gpu-acceleration": !1,
935
- persistent: e.persistent,
936
- "append-to": e.appendTo,
937
- "show-arrow": e.showArrow,
938
- offset: e.offset,
939
- onBeforeShow: e.handleMenuEnter,
940
- onHide: t[10] || (t[10] = (t) => e.states.isBeforeHide = !1)
941
- }, {
942
- default: q(() => {
943
- var n;
944
- return [M("div", {
945
- ref: "wrapperRef",
946
- class: I([
947
- e.nsSelect.e("wrapper"),
948
- e.nsSelect.is("focused", e.isFocused),
949
- e.nsSelect.is("hovering", e.states.inputHovering),
950
- e.nsSelect.is("filterable", e.filterable),
951
- e.nsSelect.is("disabled", e.selectDisabled)
952
- ]),
953
- onClick: t[7] || (t[7] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["prevent"]))
954
- }, [
955
- e.$slots.prefix ? (z(), j("div", {
956
- key: 0,
957
- ref: "prefixRef",
958
- class: I(e.nsSelect.e("prefix"))
959
- }, [H(e.$slots, "prefix")], 2)) : A("v-if", !0),
960
- M("div", {
961
- ref: "selectionRef",
962
- class: I([e.nsSelect.e("selection"), e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)])
963
- }, [
964
- e.multiple ? H(e.$slots, "tag", {
965
- key: 0,
966
- data: e.states.selected,
967
- deleteTag: e.deleteTag,
968
- selectDisabled: e.selectDisabled
969
- }, () => {
970
- var t, n, r, i, a, c, l, u, d, f, p, m, h;
971
- return [(z(!0), j(D, null, V(e.showTagList, (t) => (z(), j("div", {
972
- key: e.getValueKey(t),
973
- class: I(e.nsSelect.e("selected-item"))
974
- }, [N(o, {
975
- closable: !e.selectDisabled && !t.isDisabled,
976
- size: e.collapseTagSize,
977
- type: e.tagType,
978
- effect: e.tagEffect,
979
- "disable-transitions": "",
980
- style: L(e.tagStyle),
981
- onClose: (n) => e.deleteTag(n, t)
982
- }, {
983
- default: q(() => [M("span", { class: I(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
984
- index: t.index,
985
- label: t.currentLabel,
986
- value: t.value
987
- }, () => [Pe(W(t.currentLabel), 1)])], 2)]),
988
- _: 2
989
- }, 1032, [
990
- "closable",
991
- "size",
992
- "type",
993
- "effect",
994
- "style",
995
- "onClose"
996
- ])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (z(), k(s, {
997
- key: 0,
998
- ref: "tagTooltipRef",
999
- disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
1000
- "fallback-placements": ((t = e.tagTooltip) == null ? void 0 : t.fallbackPlacements) ?? [
1001
- "bottom",
1002
- "top",
1003
- "right",
1004
- "left"
1005
- ],
1006
- effect: ((n = e.tagTooltip) == null ? void 0 : n.effect) ?? e.effect,
1007
- placement: ((r = e.tagTooltip) == null ? void 0 : r.placement) ?? "bottom",
1008
- "popper-class": ((i = e.tagTooltip) == null ? void 0 : i.popperClass) ?? e.popperClass,
1009
- "popper-style": ((a = e.tagTooltip) == null ? void 0 : a.popperStyle) ?? e.popperStyle,
1010
- teleported: ((c = e.tagTooltip) == null ? void 0 : c.teleported) ?? e.teleported,
1011
- "append-to": ((l = e.tagTooltip) == null ? void 0 : l.appendTo) ?? e.appendTo,
1012
- "popper-options": ((u = e.tagTooltip) == null ? void 0 : u.popperOptions) ?? e.popperOptions,
1013
- transition: (d = e.tagTooltip) == null ? void 0 : d.transition,
1014
- "show-after": (f = e.tagTooltip) == null ? void 0 : f.showAfter,
1015
- "hide-after": (p = e.tagTooltip) == null ? void 0 : p.hideAfter,
1016
- "auto-close": (m = e.tagTooltip) == null ? void 0 : m.autoClose,
1017
- offset: (h = e.tagTooltip) == null ? void 0 : h.offset
1018
- }, {
1019
- default: q(() => [M("div", {
1020
- ref: "collapseItemRef",
1021
- class: I(e.nsSelect.e("selected-item"))
1022
- }, [N(o, {
1023
- closable: !1,
1024
- size: e.collapseTagSize,
1025
- type: e.tagType,
1026
- effect: e.tagEffect,
1027
- "disable-transitions": "",
1028
- style: L(e.collapseTagStyle)
1029
- }, {
1030
- default: q(() => [M("span", { class: I(e.nsSelect.e("tags-text")) }, " + " + W(e.states.selected.length - e.maxCollapseTags), 3)]),
1031
- _: 1
1032
- }, 8, [
1033
- "size",
1034
- "type",
1035
- "effect",
1036
- "style"
1037
- ])], 2)]),
1038
- content: q(() => [M("div", {
1039
- ref: "tagMenuRef",
1040
- class: I(e.nsSelect.e("selection"))
1041
- }, [(z(!0), j(D, null, V(e.collapseTagList, (t) => (z(), j("div", {
1042
- key: e.getValueKey(t),
1043
- class: I(e.nsSelect.e("selected-item"))
1044
- }, [N(o, {
1045
- class: "in-tooltip",
1046
- closable: !e.selectDisabled && !t.isDisabled,
1047
- size: e.collapseTagSize,
1048
- type: e.tagType,
1049
- effect: e.tagEffect,
1050
- "disable-transitions": "",
1051
- onClose: (n) => e.deleteTag(n, t)
1052
- }, {
1053
- default: q(() => [M("span", { class: I(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
1054
- index: t.index,
1055
- label: t.currentLabel,
1056
- value: t.value
1057
- }, () => [Pe(W(t.currentLabel), 1)])], 2)]),
1058
- _: 2
1059
- }, 1032, [
1060
- "closable",
1061
- "size",
1062
- "type",
1063
- "effect",
1064
- "onClose"
1065
- ])], 2))), 128))], 2)]),
1066
- _: 3
1067
- }, 8, [
1068
- "disabled",
1069
- "fallback-placements",
1070
- "effect",
1071
- "placement",
1072
- "popper-class",
1073
- "popper-style",
1074
- "teleported",
1075
- "append-to",
1076
- "popper-options",
1077
- "transition",
1078
- "show-after",
1079
- "hide-after",
1080
- "auto-close",
1081
- "offset"
1082
- ])) : A("v-if", !0)];
1083
- }) : A("v-if", !0),
1084
- M("div", { class: I([
1085
- e.nsSelect.e("selected-item"),
1086
- e.nsSelect.e("input-wrapper"),
1087
- e.nsSelect.is("hidden", !e.filterable || e.selectDisabled || !e.states.inputValue && !e.isFocused)
1088
- ]) }, [M("input", {
1089
- id: e.inputId,
1090
- ref: "inputRef",
1091
- value: e.states.inputValue,
1092
- type: "text",
1093
- name: e.name,
1094
- class: I([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
1095
- disabled: e.selectDisabled,
1096
- autocomplete: e.autocomplete,
1097
- style: L(e.inputStyle),
1098
- tabindex: e.tabindex,
1099
- role: "combobox",
1100
- readonly: !e.filterable,
1101
- spellcheck: "false",
1102
- "aria-activedescendant": ((n = e.hoverOption) == null ? void 0 : n.id) || "",
1103
- "aria-controls": e.contentId,
1104
- "aria-expanded": e.dropdownMenuVisible,
1105
- "aria-label": e.ariaLabel,
1106
- "aria-autocomplete": "none",
1107
- "aria-haspopup": "listbox",
1108
- onKeydown: t[0] || (t[0] = (...t) => e.handleKeydown && e.handleKeydown(...t)),
1109
- onCompositionstart: t[1] || (t[1] = (...t) => e.handleCompositionStart && e.handleCompositionStart(...t)),
1110
- onCompositionupdate: t[2] || (t[2] = (...t) => e.handleCompositionUpdate && e.handleCompositionUpdate(...t)),
1111
- onCompositionend: t[3] || (t[3] = (...t) => e.handleCompositionEnd && e.handleCompositionEnd(...t)),
1112
- onInput: t[4] || (t[4] = (...t) => e.onInput && e.onInput(...t)),
1113
- onChange: t[5] || (t[5] = Y(() => {}, ["stop"])),
1114
- onClick: t[6] || (t[6] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["stop"]))
1115
- }, null, 46, Ot), e.filterable ? (z(), j("span", {
1116
- key: 0,
1117
- ref: "calculatorRef",
1118
- "aria-hidden": "true",
1119
- class: I(e.nsSelect.e("input-calculator")),
1120
- textContent: W(e.states.inputValue)
1121
- }, null, 10, kt)) : A("v-if", !0)], 2),
1122
- e.shouldShowPlaceholder ? (z(), j("div", {
1123
- key: 1,
1124
- class: I([
1125
- e.nsSelect.e("selected-item"),
1126
- e.nsSelect.e("placeholder"),
1127
- e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
1128
- ])
1129
- }, [e.hasModelValue ? H(e.$slots, "label", {
1130
- key: 0,
1131
- index: e.getOption(e.modelValue).index,
1132
- label: e.currentPlaceholder,
1133
- value: e.modelValue
1134
- }, () => [M("span", null, W(e.currentPlaceholder), 1)]) : (z(), j("span", At, W(e.currentPlaceholder), 1))], 2)) : A("v-if", !0)
1135
- ], 2),
1136
- M("div", {
1137
- ref: "suffixRef",
1138
- class: I(e.nsSelect.e("suffix"))
1139
- }, [
1140
- e.iconComponent && !e.showClearBtn ? (z(), k(c, {
1141
- key: 0,
1142
- class: I([
1143
- e.nsSelect.e("caret"),
1144
- e.nsSelect.e("icon"),
1145
- e.iconReverse
1146
- ])
1147
- }, {
1148
- default: q(() => [(z(), k(Ue(e.iconComponent)))]),
1149
- _: 1
1150
- }, 8, ["class"])) : A("v-if", !0),
1151
- e.showClearBtn && e.clearIcon ? (z(), k(c, {
1152
- key: 1,
1153
- class: I([
1154
- e.nsSelect.e("caret"),
1155
- e.nsSelect.e("icon"),
1156
- e.nsSelect.e("clear")
1157
- ]),
1158
- onClick: e.handleClearClick
1159
- }, {
1160
- default: q(() => [(z(), k(Ue(e.clearIcon)))]),
1161
- _: 1
1162
- }, 8, ["class", "onClick"])) : A("v-if", !0),
1163
- e.validateState && e.validateIcon && e.needStatusIcon ? (z(), k(c, {
1164
- key: 2,
1165
- class: I([
1166
- e.nsInput.e("icon"),
1167
- e.nsInput.e("validateIcon"),
1168
- e.nsInput.is("loading", e.validateState === "validating")
1169
- ])
1170
- }, {
1171
- default: q(() => [(z(), k(Ue(e.validateIcon)))]),
1172
- _: 1
1173
- }, 8, ["class"])) : A("v-if", !0)
1174
- ], 2)
1175
- ], 2)];
1176
- }),
1177
- content: q(() => [N(p, { ref: "menuRef" }, {
1178
- default: q(() => [
1179
- e.$slots.header ? (z(), j("div", {
1180
- key: 0,
1181
- class: I(e.nsSelect.be("dropdown", "header")),
1182
- onClick: t[8] || (t[8] = Y(() => {}, ["stop"]))
1183
- }, [H(e.$slots, "header")], 2)) : A("v-if", !0),
1184
- J(N(f, {
1185
- id: e.contentId,
1186
- ref: "scrollbarRef",
1187
- tag: "ul",
1188
- "wrap-class": e.nsSelect.be("dropdown", "wrap"),
1189
- "view-class": e.nsSelect.be("dropdown", "list"),
1190
- class: I([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
1191
- role: "listbox",
1192
- "aria-label": e.ariaLabel,
1193
- "aria-orientation": "vertical",
1194
- onScroll: e.popupScroll
1195
- }, {
1196
- default: q(() => [e.showNewOption ? (z(), k(l, {
1197
- key: 0,
1198
- value: e.states.inputValue,
1199
- created: !0
1200
- }, null, 8, ["value"])) : A("v-if", !0), N(d, null, {
1201
- default: q(() => [H(e.$slots, "default", {}, () => [(z(!0), j(D, null, V(e.options, (t, n) => {
1202
- var r;
1203
- return z(), j(D, { key: n }, [(r = e.getOptions(t)) != null && r.length ? (z(), k(u, {
1204
- key: 0,
1205
- label: e.getLabel(t),
1206
- disabled: e.getDisabled(t)
1207
- }, {
1208
- default: q(() => [(z(!0), j(D, null, V(e.getOptions(t), (t) => (z(), k(l, Re({ key: e.getValue(t) }, { ref_for: !0 }, e.getOptionProps(t)), null, 16))), 128))]),
1209
- _: 2
1210
- }, 1032, ["label", "disabled"])) : (z(), k(l, Re({
1211
- key: 1,
1212
- ref_for: !0
1213
- }, e.getOptionProps(t)), null, 16))], 64);
1214
- }), 128))])]),
1215
- _: 3
1216
- })]),
1217
- _: 3
1218
- }, 8, [
1219
- "id",
1220
- "wrap-class",
1221
- "view-class",
1222
- "class",
1223
- "aria-label",
1224
- "onScroll"
1225
- ]), [[Xe, e.states.options.size > 0 && !e.loading]]),
1226
- e.$slots.loading && e.loading ? (z(), j("div", {
1227
- key: 1,
1228
- class: I(e.nsSelect.be("dropdown", "loading"))
1229
- }, [H(e.$slots, "loading")], 2)) : e.loading || e.filteredOptionsCount === 0 ? (z(), j("div", {
1230
- key: 2,
1231
- class: I(e.nsSelect.be("dropdown", "empty"))
1232
- }, [H(e.$slots, "empty", {}, () => [M("span", null, W(e.emptyText), 1)])], 2)) : A("v-if", !0),
1233
- e.$slots.footer ? (z(), j("div", {
1234
- key: 3,
1235
- class: I(e.nsSelect.be("dropdown", "footer")),
1236
- onClick: t[9] || (t[9] = Y(() => {}, ["stop"]))
1237
- }, [H(e.$slots, "footer")], 2)) : A("v-if", !0)
1238
- ]),
1239
- _: 3
1240
- }, 512)]),
1241
- _: 3
1242
- }, 8, [
1243
- "visible",
1244
- "placement",
1245
- "teleported",
1246
- "popper-class",
1247
- "popper-style",
1248
- "popper-options",
1249
- "fallback-placements",
1250
- "effect",
1251
- "transition",
1252
- "persistent",
1253
- "append-to",
1254
- "show-arrow",
1255
- "offset",
1256
- "onBeforeShow"
1257
- ])], 16)), [[
1258
- m,
1259
- e.handleClickOutside,
1260
- e.popperRef
1261
- ]]);
1262
- }
1263
- //#endregion
1264
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/index.mjs
1265
- var Mt = h(/* @__PURE__ */ x(Dt, [["render", jt]]), {
1266
- Option: $,
1267
- OptionGroup: _t
1268
- });
1269
- m($), m(_t);
1270
- //#endregion
1271
- //#region src/components/form/FormSelect.vue
1272
- var Nt = Ae(Mt).filter((e) => ![
1273
- "value",
1274
- "placeholder",
1275
- "disabled"
1276
- ].includes(e)), Pt = {
1277
- name: "FormSelect",
1278
- mixins: [
1279
- je,
1280
- Me,
1281
- Ne
1282
- ],
1283
- props: {
1284
- options: {
1285
- type: Array,
1286
- default: () => []
1287
- },
1288
- gender: Boolean,
1289
- year: [Boolean, Number],
1290
- all: Boolean,
1291
- filterable: Boolean,
1292
- confirm: Boolean,
1293
- start: Number,
1294
- end: Number,
1295
- value: [
1296
- String,
1297
- Number,
1298
- Array
1299
- ],
1300
- optionLabel: [String, Number],
1301
- emitLabel: Boolean,
1302
- english: Boolean,
1303
- chinese: Boolean,
1304
- typing: Boolean,
1305
- remote: Boolean,
1306
- allowCreate: Boolean,
1307
- remoteMethod: Function,
1308
- props: {
1309
- type: Object,
1310
- default: () => ({
1311
- label: "label",
1312
- value: "value"
1313
- })
1314
- },
1315
- multiple: Boolean,
1316
- multipleLimit: {
1317
- type: Number,
1318
- default: 0
1319
- },
1320
- multipleStringMode: Boolean,
1321
- multipleStringSeparator: {
1322
- type: String,
1323
- default: ","
1324
- }
1325
- },
1326
- data() {
1327
- return {
1328
- loading: !1,
1329
- remoteOptions: [],
1330
- innerValue: null
1331
- };
1332
- },
1333
- computed: {
1334
- prefix() {
1335
- return "请选择";
1336
- },
1337
- inputProps() {
1338
- return ke({
1339
- ...Oe(this.$attrs),
1340
- ...this.$props
1341
- }, Nt);
1342
- },
1343
- innerOptions() {
1344
- if (this.dictType) return this.dictItems;
1345
- if (this.remote) return this.remoteOptions;
1346
- if (this.gender) return [{
1347
- [this.props.label]: "男",
1348
- [this.props.value]: this.chinese ? "男" : this.typing ? 1 : "1"
1349
- }, {
1350
- [this.props.label]: "女",
1351
- [this.props.value]: this.chinese ? "女" : this.typing ? 2 : "2"
1352
- }];
1353
- if (this.confirm) return [{
1354
- [this.props.label]: "是",
1355
- [this.props.value]: this.chinese ? "是" : this.english ? "Y" : this.typing ? 1 : "1"
1356
- }, {
1357
- [this.props.label]: "否",
1358
- [this.props.value]: this.chinese ? "否" : this.english ? "N" : this.typing ? 0 : "0"
1359
- }];
1360
- if (this.all) return [{
1361
- [this.props.value]: "",
1362
- [this.props.label]: "全部"
1363
- }, ...this.options];
1364
- if (this.start && this.end) return Array(this.end - this.start + 1).fill(1).map((e, t) => ({
1365
- [this.props.label]: this.start + t,
1366
- [this.props.value]: this.start + t
1367
- }));
1368
- if (this.year) {
1369
- let e = (/* @__PURE__ */ new Date()).getFullYear(), t = [], n = 10;
1370
- Qe(this.year) && (n = this.year);
1371
- for (let r = -n; r <= n; r++) {
1372
- let n = e + r;
1373
- t.push({
1374
- [this.props.label]: n,
1375
- [this.props.value]: n
1376
- });
1377
- }
1378
- return t;
1379
- }
1380
- return this.options ? this.options.map((e) => (e[this.props.value] = e[this.props.value] ?? e[this.props.label], e)) : [];
1381
- }
1382
- },
1383
- watch: { value: {
1384
- immediate: !0,
1385
- handler(e) {
1386
- this.multiple && this.multipleStringMode ? this.innerValue = e == null ? void 0 : e.split(",").filter((e) => e) : this.innerValue = e;
1387
- }
1388
- } },
1389
- created() {
1390
- this.reloadOptions();
1391
- },
1392
- methods: {
1393
- reloadOptions() {
1394
- this.remote && this.fetchOptions();
1395
- },
1396
- async fetchOptions(e) {
1397
- try {
1398
- var t;
1399
- this.loading = !0;
1400
- let n = await this.remoteMethod(e, this.prop);
1401
- ((t = n.data.data) == null ? void 0 : t.length) >= 0 ? et(n.data.data[0]) ? this.remoteOptions = n.data.data.map((e) => ({
1402
- [this.props.value]: e,
1403
- [this.props.label]: e
1404
- })) : $e(n.data.data[0]) && (this.remoteOptions = n.data.data) : this.remoteOptions = [];
1405
- } catch {}
1406
- this.loading = !1;
1407
- },
1408
- emitInput(e) {
1409
- if (this.multiple && this.multipleStringMode ? this.$emit("input", e.join(this.multipleStringSeparator)) : this.$emit("input", e), this.emitLabel) {
1410
- let t = this.innerOptions.find((t) => t[this.props.value] === e), n = t == null ? void 0 : t[this.props.label];
1411
- n !== this.optionLabel && this.$emit("update:optionLabel", n);
1412
- }
1413
- }
1414
- }
1415
- }, Ft = {
1416
- key: 0,
1417
- class: "el-form-item__warn"
1418
- }, It = {
1419
- key: 0,
1420
- class: "el-form-item__error"
1421
- };
1422
- function Lt(e, t, n, r, i, a) {
1423
- let o = U("ElOption"), s = U("ElSelect"), c = U("FormItem");
1424
- return z(), k(c, Re(e.formItemProps, {
1425
- rules: e.computeRules,
1426
- disabled: e.inputDisabled
1427
- }), {
1428
- default: q(() => [N(s, Re({
1429
- value: i.innerValue,
1430
- filterable: n.filterable || !!n.year,
1431
- placeholder: e.inputDisabled ? "--" : e.computePlaceholder,
1432
- "allow-create": n.allowCreate || !!n.year
1433
- }, a.inputProps, {
1434
- disabled: e.inputDisabled,
1435
- multiple: n.multiple,
1436
- "multiple-limit": n.multipleLimit,
1437
- loading: i.loading,
1438
- remote: n.remote,
1439
- "remote-method": a.fetchOptions,
1440
- clearable: "",
1441
- onClear: a.reloadOptions
1442
- }, Ke(e.listeners), { onInput: a.emitInput }), {
1443
- default: q(() => [H(e.$slots, "default", {}, () => [(z(!0), j(D, null, V(a.innerOptions, (t) => H(e.$slots, "option", {
1444
- value: t[n.props.value],
1445
- label: t[n.props.label]
1446
- }, () => [(z(), k(o, {
1447
- key: t[n.props.value],
1448
- value: t[n.props.value],
1449
- label: t[n.props.label]
1450
- }, null, 8, ["value", "label"]))])), 256))])]),
1451
- _: 3
1452
- }, 16, [
1453
- "value",
1454
- "filterable",
1455
- "placeholder",
1456
- "allow-create",
1457
- "disabled",
1458
- "multiple",
1459
- "multiple-limit",
1460
- "loading",
1461
- "remote",
1462
- "remote-method",
1463
- "onClear",
1464
- "onInput"
1465
- ]), e.$slots.warn ? (z(), j("div", Ft, [H(e.$slots, "warn")])) : A("v-if", !0)]),
1466
- error: q(({ error: t }) => [e.$slots.error && e.$slots.error(t) ? (z(), j("div", It, [H(e.$slots, "error", { error: t }, () => [Pe(W(t), 1)])])) : A("v-if", !0)]),
1467
- label: q(() => [H(e.$slots, "label")]),
1468
- below: q(() => [H(e.$slots, "below")]),
1469
- tips: q(() => [H(e.$slots, "tips")]),
1470
- _: 3
1471
- }, 16, ["rules", "disabled"]);
1472
- }
1473
- var Rt = /* @__PURE__ */ e(Pt, [["render", Lt]]);
1474
- //#endregion
1475
- export { Rt as t };