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

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