bkui-vue 0.0.1-beta.99 → 0.0.2-beta.1

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 (668) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +360 -36
  3. package/dist/index.esm.js +30199 -24465
  4. package/dist/index.umd.js +360 -36
  5. package/dist/locale/en.esm.js +2 -0
  6. package/dist/locale/en.esm.js.map +1 -0
  7. package/dist/locale/en.umd.js +2 -0
  8. package/dist/locale/en.umd.js.map +1 -0
  9. package/dist/locale/zh-cn.esm.js +2 -0
  10. package/dist/locale/zh-cn.esm.js.map +1 -0
  11. package/dist/locale/zh-cn.umd.js +2 -0
  12. package/dist/locale/zh-cn.umd.js.map +1 -0
  13. package/dist/style.css +1 -1
  14. package/dist/style.variable.css +1 -0
  15. package/lib/affix/affix.d.ts +2 -2
  16. package/lib/affix/affix.variable.css +29 -6
  17. package/lib/affix/index.d.ts +60 -36
  18. package/lib/alert/alert.css +4 -0
  19. package/lib/alert/alert.d.ts +11 -9
  20. package/lib/alert/alert.less +24 -19
  21. package/lib/alert/alert.variable.css +33 -6
  22. package/lib/alert/index.d.ts +82 -58
  23. package/lib/alert/index.js +1 -1
  24. package/lib/animate-number/animate-number.d.ts +2 -2
  25. package/lib/animate-number/index.d.ts +58 -25
  26. package/lib/backtop/backtop.css +8 -0
  27. package/lib/backtop/backtop.d.ts +4 -4
  28. package/lib/backtop/backtop.less +8 -0
  29. package/lib/backtop/backtop.variable.css +37 -6
  30. package/lib/backtop/index.d.ts +65 -47
  31. package/lib/backtop/index.js +1 -1
  32. package/lib/badge/badge.css +2 -5
  33. package/lib/badge/badge.d.ts +3 -3
  34. package/lib/badge/badge.less +4 -5
  35. package/lib/badge/badge.variable.css +31 -11
  36. package/lib/badge/index.d.ts +67 -64
  37. package/lib/badge/index.js +1 -1
  38. package/lib/breadcrumb/breadcrumb-item.d.ts +28 -3
  39. package/lib/breadcrumb/breadcrumb.css +43 -0
  40. package/lib/breadcrumb/breadcrumb.d.ts +27 -2
  41. package/lib/breadcrumb/breadcrumb.less +3 -4
  42. package/lib/breadcrumb/breadcrumb.variable.css +77 -11
  43. package/lib/breadcrumb/index.d.ts +67 -41
  44. package/lib/breadcrumb/index.js +1 -1
  45. package/lib/button/button-group.d.ts +4 -4
  46. package/lib/button/button.css +21 -3
  47. package/lib/button/button.d.ts +46 -33
  48. package/lib/button/button.less +25 -5
  49. package/lib/button/button.variable.css +50 -9
  50. package/lib/button/index.d.ts +121 -96
  51. package/lib/button/index.js +1 -1
  52. package/lib/card/card.css +45 -2
  53. package/lib/card/card.d.ts +2 -1
  54. package/lib/card/card.less +2 -2
  55. package/lib/card/card.variable.css +78 -12
  56. package/lib/card/index.d.ts +66 -64
  57. package/lib/card/index.js +1 -1
  58. package/lib/cascader/cascader-panel.d.ts +60 -6
  59. package/lib/cascader/cascader.css +197 -11
  60. package/lib/cascader/cascader.d.ts +131 -25
  61. package/lib/cascader/cascader.less +148 -11
  62. package/lib/cascader/cascader.variable.css +234 -25
  63. package/lib/cascader/index.d.ts +415 -174
  64. package/lib/cascader/index.js +2 -1
  65. package/lib/cascader/index.js.LICENSE.txt +1 -0
  66. package/lib/cascader/interface.d.ts +8 -1
  67. package/lib/cascader/node.d.ts +9 -2
  68. package/lib/cascader/store.d.ts +13 -1
  69. package/lib/checkbox/checkbox-group.d.ts +18 -2
  70. package/lib/checkbox/checkbox.css +38 -11
  71. package/lib/checkbox/checkbox.d.ts +40 -18
  72. package/lib/checkbox/checkbox.less +68 -33
  73. package/lib/checkbox/checkbox.variable.css +67 -17
  74. package/lib/checkbox/common.d.ts +1 -0
  75. package/lib/checkbox/index.d.ts +133 -72
  76. package/lib/checkbox/index.js +1 -1
  77. package/lib/checkbox/type.d.ts +1 -1
  78. package/lib/code-diff/code-diff.css +27 -7
  79. package/lib/code-diff/code-diff.d.ts +7 -7
  80. package/lib/code-diff/code-diff.less +42 -7
  81. package/lib/code-diff/code-diff.variable.css +56 -13
  82. package/lib/code-diff/index.d.ts +30 -43
  83. package/lib/code-diff/index.js +1 -1
  84. package/lib/collapse/collapse-panel.d.ts +104 -0
  85. package/lib/collapse/collapse.css +58 -19
  86. package/lib/collapse/collapse.d.ts +59 -42
  87. package/lib/collapse/collapse.less +106 -46
  88. package/lib/collapse/collapse.variable.css +87 -25
  89. package/lib/collapse/index.d.ts +271 -46
  90. package/lib/collapse/index.js +1 -1
  91. package/lib/collapse/props.d.ts +131 -0
  92. package/lib/collapse-transition/collapse-transition.css +93 -0
  93. package/lib/collapse-transition/collapse-transition.d.ts +15 -0
  94. package/lib/collapse-transition/collapse-transition.less +111 -0
  95. package/lib/collapse-transition/collapse-transition.variable.css +215 -0
  96. package/lib/collapse-transition/index.d.ts +2 -0
  97. package/lib/collapse-transition/index.js +1 -0
  98. package/lib/color-picker/color-picker.css +275 -0
  99. package/lib/color-picker/color-picker.d.ts +144 -0
  100. package/lib/color-picker/color-picker.less +325 -0
  101. package/lib/color-picker/color-picker.variable.css +397 -0
  102. package/lib/color-picker/components/color-input.d.ts +42 -0
  103. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  104. package/lib/color-picker/components/input-container.d.ts +42 -0
  105. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  106. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  107. package/lib/color-picker/index.d.ts +255 -0
  108. package/lib/color-picker/index.js +1 -0
  109. package/lib/color-picker/utils.d.ts +37 -0
  110. package/lib/components.d.ts +13 -0
  111. package/lib/components.js +1 -1
  112. package/lib/config-provider/config-provider.css +0 -0
  113. package/lib/config-provider/config-provider.d.ts +402 -0
  114. package/lib/config-provider/config-provider.less +1 -0
  115. package/lib/{popover2/popover2.variable.css → config-provider/config-provider.variable.css} +29 -31
  116. package/lib/config-provider/index.d.ts +646 -0
  117. package/lib/config-provider/index.js +1 -0
  118. package/lib/config-provider/token.d.ts +128 -0
  119. package/lib/config-provider/use-global-config.d.ts +5 -0
  120. package/lib/config-provider/use-locale.d.ts +3 -0
  121. package/lib/config-provider/use-prefix.d.ts +9 -0
  122. package/lib/container/col.d.ts +3 -3
  123. package/lib/container/container.css +43 -0
  124. package/lib/container/container.d.ts +2 -2
  125. package/lib/container/container.less +4 -4
  126. package/lib/container/container.variable.css +72 -6
  127. package/lib/container/index.d.ts +30 -49
  128. package/lib/container/index.js +1 -1
  129. package/lib/container/interface.d.ts +7 -0
  130. package/lib/container/row.d.ts +2 -2
  131. package/lib/date-picker/base/confirm.d.ts +74 -0
  132. package/lib/date-picker/base/date-table.d.ts +96 -0
  133. package/lib/date-picker/base/month-table.d.ts +117 -0
  134. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  135. package/lib/date-picker/base/time-spinner.d.ts +170 -0
  136. package/lib/date-picker/base/year-table.d.ts +117 -0
  137. package/lib/date-picker/date-picker.css +30 -1
  138. package/lib/date-picker/date-picker.d.ts +55 -35
  139. package/lib/date-picker/date-picker.less +109 -74
  140. package/lib/date-picker/date-picker.variable.css +59 -7
  141. package/lib/date-picker/index.d.ts +198 -218
  142. package/lib/date-picker/index.js +1 -1
  143. package/lib/date-picker/interface.d.ts +20 -10
  144. package/lib/date-picker/panel/date-range.d.ts +345 -0
  145. package/lib/date-picker/panel/date.d.ts +206 -0
  146. package/lib/date-picker/panel/time-range.d.ts +495 -0
  147. package/lib/date-picker/panel/time.d.ts +451 -0
  148. package/lib/date-picker/props.d.ts +48 -5
  149. package/lib/date-picker/time-picker.d.ts +390 -0
  150. package/lib/date-picker/utils.d.ts +22 -2
  151. package/lib/dialog/dialog.css +94 -34
  152. package/lib/dialog/dialog.d.ts +57 -93
  153. package/lib/dialog/dialog.less +85 -43
  154. package/lib/dialog/dialog.variable.css +216 -34
  155. package/lib/dialog/index.d.ts +194 -334
  156. package/lib/dialog/index.js +2 -1
  157. package/lib/dialog/index.js.LICENSE.txt +1 -0
  158. package/lib/dialog/props.d.ts +122 -0
  159. package/lib/directives/ellipsis.d.ts +7 -0
  160. package/lib/directives/index.d.ts +2 -0
  161. package/lib/directives/index.js +1 -1
  162. package/lib/directives/tooltips.d.ts +2 -1
  163. package/lib/dist.index.js +1 -1
  164. package/lib/divider/divider.d.ts +17 -17
  165. package/lib/divider/divider.variable.css +29 -6
  166. package/lib/divider/index.d.ts +85 -61
  167. package/lib/divider/index.js +1 -1
  168. package/lib/divider/props.d.ts +6 -6
  169. package/lib/dropdown/dropdown-item.d.ts +1 -1
  170. package/lib/dropdown/dropdown-menu.d.ts +2 -2
  171. package/lib/dropdown/dropdown.css +34 -7
  172. package/lib/dropdown/dropdown.d.ts +46 -15
  173. package/lib/dropdown/dropdown.less +42 -36
  174. package/lib/dropdown/dropdown.variable.css +63 -13
  175. package/lib/dropdown/index.d.ts +136 -65
  176. package/lib/dropdown/index.js +1 -1
  177. package/lib/exception/exception.css +40 -14
  178. package/lib/exception/exception.d.ts +33 -13
  179. package/lib/exception/exception.less +59 -22
  180. package/lib/exception/exception.variable.css +69 -20
  181. package/lib/exception/index.d.ts +91 -43
  182. package/lib/exception/index.js +1 -1
  183. package/lib/exception/typings/index.d.ts +4 -0
  184. package/lib/fixed-navbar/fixed-navbar.d.ts +2 -2
  185. package/lib/fixed-navbar/fixed-navbar.variable.css +29 -6
  186. package/lib/fixed-navbar/index.d.ts +60 -36
  187. package/lib/form/compose-form-item.d.ts +4 -2
  188. package/lib/form/form-item.d.ts +15 -9
  189. package/lib/form/form.css +32 -8
  190. package/lib/form/form.d.ts +25 -7
  191. package/lib/form/form.less +85 -53
  192. package/lib/form/form.variable.css +61 -14
  193. package/lib/form/index.d.ts +109 -51
  194. package/lib/form/index.js +1 -1
  195. package/lib/form/type.d.ts +5 -4
  196. package/lib/form/utils.d.ts +2 -0
  197. package/lib/hooks.d.ts +1 -0
  198. package/lib/hooks.js +1 -0
  199. package/lib/icon/angle-double-down-line.js +1 -1
  200. package/lib/icon/angle-double-left-line.js +1 -1
  201. package/lib/icon/angle-double-left.js +1 -1
  202. package/lib/icon/angle-double-right-line.js +1 -1
  203. package/lib/icon/angle-double-right.js +1 -1
  204. package/lib/icon/angle-double-up-line.js +1 -1
  205. package/lib/icon/angle-down-fill.js +1 -1
  206. package/lib/icon/angle-down-line.js +1 -1
  207. package/lib/icon/angle-down.js +1 -1
  208. package/lib/icon/angle-left.js +1 -1
  209. package/lib/icon/angle-right.js +1 -1
  210. package/lib/icon/angle-up-fill.js +1 -1
  211. package/lib/icon/angle-up.js +1 -1
  212. package/lib/icon/archive-fill.js +1 -1
  213. package/lib/icon/arrows-left.js +1 -1
  214. package/lib/icon/arrows-right.js +1 -1
  215. package/lib/icon/audio-fill.js +1 -1
  216. package/lib/icon/bk.js +1 -1
  217. package/lib/icon/circle.js +1 -1
  218. package/lib/icon/close-line.js +1 -1
  219. package/lib/icon/close.js +1 -1
  220. package/lib/icon/code.js +1 -1
  221. package/lib/icon/cog-shape.js +1 -1
  222. package/lib/icon/collapse-left.js +1 -1
  223. package/lib/icon/copy-shape.d.ts +4 -0
  224. package/lib/icon/copy-shape.js +1 -0
  225. package/lib/icon/copy.js +1 -1
  226. package/lib/icon/data-shape.js +1 -1
  227. package/lib/icon/del.js +1 -1
  228. package/lib/icon/doc-fill.js +1 -1
  229. package/lib/icon/done.js +1 -1
  230. package/lib/icon/down-shape.js +1 -1
  231. package/lib/icon/down-small.js +1 -1
  232. package/lib/icon/edit-line.js +1 -1
  233. package/lib/icon/ellipsis.js +1 -1
  234. package/lib/icon/enlarge-line.d.ts +4 -0
  235. package/lib/icon/enlarge-line.js +1 -0
  236. package/lib/icon/error.js +1 -1
  237. package/lib/icon/excel-fill.js +1 -1
  238. package/lib/icon/exclamation-circle-shape.js +1 -1
  239. package/lib/icon/eye.js +1 -1
  240. package/lib/icon/filliscreen-line.d.ts +4 -0
  241. package/lib/icon/filliscreen-line.js +1 -0
  242. package/lib/icon/fix-line.d.ts +4 -0
  243. package/lib/icon/fix-line.js +1 -0
  244. package/lib/icon/fix-shape.d.ts +4 -0
  245. package/lib/icon/fix-shape.js +1 -0
  246. package/lib/icon/folder-open.js +1 -1
  247. package/lib/icon/folder-shape-open.js +1 -1
  248. package/lib/icon/folder-shape.js +1 -1
  249. package/lib/icon/folder.js +1 -1
  250. package/lib/icon/funnel.js +1 -0
  251. package/lib/icon/help-document-fill.js +1 -1
  252. package/lib/icon/help-fill.js +1 -1
  253. package/lib/icon/help.js +1 -1
  254. package/lib/icon/image-fill.js +1 -1
  255. package/lib/icon/img-error.d.ts +4 -0
  256. package/lib/icon/img-error.js +1 -0
  257. package/lib/icon/img-placehoulder.d.ts +4 -0
  258. package/lib/icon/img-placehoulder.js +1 -0
  259. package/lib/icon/index.d.ts +83 -69
  260. package/lib/icon/index.js +1 -1
  261. package/lib/icon/info-line.js +1 -1
  262. package/lib/icon/info.js +1 -1
  263. package/lib/icon/left-shape.js +1 -1
  264. package/lib/icon/left-turn-line.d.ts +4 -0
  265. package/lib/icon/left-turn-line.js +1 -0
  266. package/lib/icon/narrow-line.d.ts +4 -0
  267. package/lib/icon/narrow-line.js +1 -0
  268. package/lib/icon/original.d.ts +4 -0
  269. package/lib/icon/original.js +1 -0
  270. package/lib/icon/pdf-fill.js +1 -1
  271. package/lib/icon/play-shape.js +1 -1
  272. package/lib/icon/plus.js +1 -1
  273. package/lib/icon/ppt-fill.js +1 -1
  274. package/lib/icon/qq.js +1 -1
  275. package/lib/icon/right-shape.js +1 -1
  276. package/lib/icon/right-turn-line.d.ts +4 -0
  277. package/lib/icon/right-turn-line.js +1 -0
  278. package/lib/icon/search.js +1 -1
  279. package/lib/icon/share.js +1 -1
  280. package/lib/icon/spinner.js +1 -1
  281. package/lib/icon/success.js +1 -1
  282. package/lib/icon/switcher-loading.js +1 -1
  283. package/lib/icon/text-file.js +1 -1
  284. package/lib/icon/text-fill.js +1 -1
  285. package/lib/icon/transfer.d.ts +4 -0
  286. package/lib/icon/transfer.js +1 -0
  287. package/lib/icon/tree-application-shape.js +1 -1
  288. package/lib/icon/unfull-screen.d.ts +4 -0
  289. package/lib/icon/unfull-screen.js +1 -0
  290. package/lib/icon/unvisible.js +1 -1
  291. package/lib/icon/up-shape.js +1 -1
  292. package/lib/icon/upload.js +1 -1
  293. package/lib/icon/video-fill.js +1 -1
  294. package/lib/icon/warn.js +1 -1
  295. package/lib/icon/weixin-pro.d.ts +4 -0
  296. package/lib/icon/weixin-pro.js +1 -0
  297. package/lib/icon/weixin.js +1 -1
  298. package/lib/image/image-viewer.css +142 -0
  299. package/lib/image/image-viewer.d.ts +73 -0
  300. package/lib/image/image-viewer.less +168 -0
  301. package/lib/image/image-viewer.variable.css +142 -0
  302. package/lib/image/image.css +37 -0
  303. package/lib/image/image.d.ts +93 -0
  304. package/lib/image/image.less +44 -0
  305. package/lib/image/image.variable.css +37 -0
  306. package/lib/image/index.d.ts +252 -0
  307. package/lib/image/index.js +1 -0
  308. package/lib/image/props.d.ts +71 -0
  309. package/lib/index.d.ts +3 -0
  310. package/lib/index.js +1 -1
  311. package/lib/info-box/index.d.ts +7 -0
  312. package/lib/info-box/index.js +2 -0
  313. package/lib/info-box/index.js.LICENSE.txt +1 -0
  314. package/lib/info-box/info-box.css +37 -0
  315. package/lib/info-box/info-box.d.ts +29 -0
  316. package/lib/info-box/info-box.less +51 -0
  317. package/lib/info-box/info-box.variable.css +159 -0
  318. package/lib/input/index.d.ts +178 -228
  319. package/lib/input/index.js +1 -1
  320. package/lib/input/input.css +168 -23
  321. package/lib/input/input.d.ts +59 -37
  322. package/lib/input/input.less +104 -22
  323. package/lib/input/input.variable.css +228 -61
  324. package/lib/link/index.d.ts +80 -53
  325. package/lib/link/index.js +1 -1
  326. package/lib/link/link.css +12 -12
  327. package/lib/link/link.d.ts +10 -8
  328. package/lib/link/link.less +16 -14
  329. package/lib/link/link.variable.css +41 -18
  330. package/lib/loading/directive.d.ts +14 -0
  331. package/lib/loading/index.d.ts +160 -56
  332. package/lib/loading/index.js +1 -1
  333. package/lib/loading/loading.css +72 -29
  334. package/lib/loading/loading.d.ts +91 -15
  335. package/lib/loading/loading.less +21 -19
  336. package/lib/loading/loading.variable.css +117 -51
  337. package/lib/locale/index.d.ts +3 -0
  338. package/lib/locale/index.js +1 -0
  339. package/lib/locale/lang/en.d.ts +126 -0
  340. package/lib/locale/lang/zh-cn.d.ts +3 -0
  341. package/lib/menu/index.d.ts +75 -34
  342. package/lib/menu/index.js +1 -1
  343. package/lib/menu/menu-group.d.ts +2 -2
  344. package/lib/menu/menu-item.d.ts +5 -1
  345. package/lib/menu/menu.css +43 -0
  346. package/lib/menu/menu.d.ts +2 -2
  347. package/lib/menu/menu.variable.css +90 -24
  348. package/lib/menu/submenu.d.ts +5 -1
  349. package/lib/menu/submenu.variable.css +29 -6
  350. package/lib/menu/utils.d.ts +1 -1
  351. package/lib/message/index.d.ts +1 -0
  352. package/lib/message/index.js +2 -1
  353. package/lib/message/index.js.LICENSE.txt +6 -0
  354. package/lib/message/message.css +166 -2
  355. package/lib/message/message.less +222 -7
  356. package/lib/message/message.variable.css +195 -8
  357. package/lib/message/messageConstructor.d.ts +136 -27
  358. package/lib/modal/index.d.ts +201 -246
  359. package/lib/modal/index.js +1 -1
  360. package/lib/modal/modal.css +39 -6
  361. package/lib/modal/modal.d.ts +54 -61
  362. package/lib/modal/modal.less +8 -10
  363. package/lib/modal/modal.variable.css +161 -6
  364. package/lib/modal/props.mixin.d.ts +16 -23
  365. package/lib/navigation/index.d.ts +90 -68
  366. package/lib/navigation/index.js +1 -1
  367. package/lib/navigation/navigation-title.d.ts +6 -3
  368. package/lib/navigation/navigation.d.ts +12 -4
  369. package/lib/navigation/navigation.variable.css +29 -6
  370. package/lib/notify/index.d.ts +1 -0
  371. package/lib/notify/index.js +1 -1
  372. package/lib/notify/notify.css +8 -4
  373. package/lib/notify/notify.less +18 -13
  374. package/lib/notify/notify.variable.css +37 -10
  375. package/lib/notify/notifyConstructor.d.ts +19 -21
  376. package/lib/overflow-title/components/overflow-title.d.ts +57 -0
  377. package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
  378. package/lib/overflow-title/index.d.ts +195 -0
  379. package/lib/overflow-title/index.js +1 -0
  380. package/lib/overflow-title/overflow.css +11 -0
  381. package/lib/overflow-title/overflow.less +13 -0
  382. package/lib/overflow-title/overflow.variable.css +11 -0
  383. package/lib/overflow-title/props.d.ts +43 -0
  384. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  385. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  386. package/lib/pagination/index.d.ts +89 -90
  387. package/lib/pagination/index.js +1 -1
  388. package/lib/pagination/pagination.css +54 -28
  389. package/lib/pagination/pagination.d.ts +17 -6
  390. package/lib/pagination/pagination.less +59 -30
  391. package/lib/pagination/pagination.variable.css +83 -34
  392. package/lib/pagination/type.d.ts +1 -1
  393. package/lib/pagination/use-limit.d.ts +3 -1
  394. package/lib/pagination/use-total.d.ts +3 -1
  395. package/lib/plugin-popover/index.d.ts +27 -0
  396. package/lib/plugin-popover/index.js +1 -0
  397. package/lib/plugins/index.d.ts +1 -0
  398. package/lib/plugins/index.js +1 -0
  399. package/lib/pop-confirm/index.d.ts +249 -0
  400. package/lib/pop-confirm/index.js +1 -0
  401. package/lib/pop-confirm/pop-confirm.css +28 -0
  402. package/lib/pop-confirm/pop-confirm.d.ts +95 -0
  403. package/lib/pop-confirm/pop-confirm.less +34 -0
  404. package/lib/pop-confirm/pop-confirm.variable.css +150 -0
  405. package/lib/pop-confirm/props.d.ts +67 -0
  406. package/lib/popover/arrow.d.ts +2 -0
  407. package/lib/popover/const.d.ts +16 -0
  408. package/lib/popover/content.d.ts +43 -0
  409. package/lib/popover/index.d.ts +409 -173
  410. package/lib/popover/index.js +1 -1
  411. package/lib/popover/plugin-popover.d.ts +12 -0
  412. package/lib/popover/popover.css +10 -53
  413. package/lib/popover/popover.d.ts +189 -58
  414. package/lib/popover/popover.less +19 -68
  415. package/lib/popover/popover.variable.css +40 -60
  416. package/lib/popover/props.d.ts +90 -37
  417. package/lib/popover/reference.d.ts +2 -0
  418. package/lib/popover/root.d.ts +27 -0
  419. package/lib/popover/use-floating.d.ts +34 -0
  420. package/lib/popover/use-platform.d.ts +30 -0
  421. package/lib/popover/use-popover-init.d.ts +23 -0
  422. package/lib/popover/use-popper-id.d.ts +6 -0
  423. package/lib/popover/utils.d.ts +8 -0
  424. package/lib/popover2/index.d.ts +54 -393
  425. package/lib/popover2/index.js +1 -1
  426. package/lib/popover2/popover.d.ts +2 -0
  427. package/lib/preset.d.ts +264 -2
  428. package/lib/preset.js +1 -1
  429. package/lib/process/index.d.ts +69 -52
  430. package/lib/process/index.js +2 -1
  431. package/lib/process/index.js.LICENSE.txt +1 -0
  432. package/lib/process/process.css +22 -0
  433. package/lib/process/process.d.ts +5 -4
  434. package/lib/process/process.less +36 -8
  435. package/lib/process/process.variable.css +51 -6
  436. package/lib/progress/index.d.ts +114 -153
  437. package/lib/progress/index.js +1 -1
  438. package/lib/progress/progress.css +43 -0
  439. package/lib/progress/progress.d.ts +90 -32
  440. package/lib/progress/progress.less +8 -8
  441. package/lib/progress/progress.variable.css +76 -10
  442. package/lib/radio/index.d.ts +116 -58
  443. package/lib/radio/index.js +1 -1
  444. package/lib/radio/radio-button.d.ts +12 -9
  445. package/lib/radio/radio-group.d.ts +36 -5
  446. package/lib/radio/radio.css +133 -62
  447. package/lib/radio/radio.d.ts +9 -5
  448. package/lib/radio/radio.less +262 -173
  449. package/lib/radio/radio.variable.css +166 -72
  450. package/lib/radio/type.d.ts +1 -1
  451. package/lib/rate/index.d.ts +78 -28
  452. package/lib/rate/index.js +1 -1
  453. package/lib/rate/rate.d.ts +14 -3
  454. package/lib/rate/star.d.ts +1 -1
  455. package/lib/resize-layout/index.d.ts +82 -80
  456. package/lib/resize-layout/index.js +1 -1
  457. package/lib/resize-layout/resize-layout.css +6 -15
  458. package/lib/resize-layout/resize-layout.d.ts +10 -9
  459. package/lib/resize-layout/resize-layout.less +32 -41
  460. package/lib/resize-layout/resize-layout.variable.css +35 -21
  461. package/lib/search-select/index.d.ts +892 -0
  462. package/lib/search-select/index.js +2 -0
  463. package/lib/search-select/index.js.LICENSE.txt +1 -0
  464. package/lib/search-select/input.d.ts +101 -0
  465. package/lib/search-select/menu.d.ts +77 -0
  466. package/lib/search-select/search-select.css +427 -0
  467. package/lib/search-select/search-select.d.ts +361 -0
  468. package/lib/search-select/search-select.less +384 -0
  469. package/lib/search-select/search-select.variable.css +549 -0
  470. package/lib/search-select/selected.d.ts +155 -0
  471. package/lib/search-select/utils.d.ts +88 -0
  472. package/lib/select/common.d.ts +4 -11
  473. package/lib/select/index.d.ts +1471 -918
  474. package/lib/select/index.js +2 -1
  475. package/lib/select/index.js.LICENSE.txt +1 -0
  476. package/lib/select/option.d.ts +17 -6
  477. package/lib/select/optionGroup.d.ts +2 -2
  478. package/lib/select/select.css +211 -140
  479. package/lib/select/select.d.ts +654 -205
  480. package/lib/select/select.less +331 -189
  481. package/lib/select/select.variable.css +240 -146
  482. package/lib/select/selectTagInput.d.ts +38 -15
  483. package/lib/select/type.d.ts +20 -14
  484. package/lib/shared/dom.d.ts +3 -0
  485. package/lib/shared/helper.d.ts +9 -0
  486. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  487. package/lib/shared/hooks/use-form.d.ts +2 -0
  488. package/lib/shared/index.d.ts +16 -12
  489. package/lib/shared/index.js +1 -1
  490. package/lib/shared/mask-manager.d.ts +18 -5
  491. package/lib/shared/pop-manager.d.ts +13 -3
  492. package/lib/shared/popover.d.ts +1 -1
  493. package/lib/shared/token.d.ts +1 -1
  494. package/lib/shared/utils.d.ts +19 -0
  495. package/lib/shared/vue-types.d.ts +139 -13
  496. package/lib/sideslider/index.d.ts +158 -252
  497. package/lib/sideslider/index.js +2 -1
  498. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  499. package/lib/sideslider/sideslider.css +10 -8
  500. package/lib/sideslider/sideslider.d.ts +46 -71
  501. package/lib/sideslider/sideslider.less +19 -17
  502. package/lib/sideslider/sideslider.variable.css +39 -14
  503. package/lib/slider/index.d.ts +82 -112
  504. package/lib/slider/index.js +2 -1
  505. package/lib/slider/index.js.LICENSE.txt +1 -0
  506. package/lib/slider/slider-button.d.ts +3 -2
  507. package/lib/slider/slider.d.ts +6 -6
  508. package/lib/slider/slider.variable.css +29 -6
  509. package/lib/steps/index.d.ts +105 -96
  510. package/lib/steps/index.js +2 -1
  511. package/lib/steps/index.js.LICENSE.txt +1 -0
  512. package/lib/steps/steps.css +1 -0
  513. package/lib/steps/steps.d.ts +35 -34
  514. package/lib/steps/steps.less +63 -62
  515. package/lib/steps/steps.variable.css +30 -6
  516. package/lib/styles/index.d.ts +6 -2
  517. package/lib/styles/mixins/mixins.css +43 -0
  518. package/lib/styles/mixins/mixins.less +1 -0
  519. package/lib/styles/mixins/mixins.variable.css +43 -0
  520. package/lib/styles/mixins/popper.css +1 -1
  521. package/lib/styles/mixins/popper.less +12 -11
  522. package/lib/styles/mixins/popper.variable.css +123 -1
  523. package/lib/styles/mixins/scroll.css +17 -0
  524. package/lib/styles/mixins/scroll.less +22 -0
  525. package/lib/styles/mixins/scroll.variable.css +139 -0
  526. package/lib/styles/reset.css +36 -0
  527. package/lib/styles/reset.less +26 -2
  528. package/lib/styles/reset.variable.css +36 -0
  529. package/lib/styles/themes/themes.less +37 -6
  530. package/lib/swiper/index.d.ts +60 -44
  531. package/lib/swiper/index.js +1 -1
  532. package/lib/swiper/swiper.d.ts +1 -1
  533. package/lib/swiper/swiper.less +15 -13
  534. package/lib/swiper/swiper.variable.css +122 -0
  535. package/lib/switcher/index.d.ts +94 -87
  536. package/lib/switcher/index.js +1 -1
  537. package/lib/switcher/switcher.css +44 -1
  538. package/lib/switcher/switcher.d.ts +17 -11
  539. package/lib/switcher/switcher.less +29 -52
  540. package/lib/switcher/switcher.variable.css +90 -24
  541. package/lib/tab/index.d.ts +163 -124
  542. package/lib/tab/index.js +1 -1
  543. package/lib/tab/props.d.ts +92 -43
  544. package/lib/tab/tab-nav.d.ts +46 -14
  545. package/lib/tab/tab-panel.d.ts +16 -9
  546. package/lib/tab/tab.css +135 -58
  547. package/lib/tab/tab.d.ts +42 -20
  548. package/lib/tab/tab.less +164 -77
  549. package/lib/tab/tab.variable.css +164 -64
  550. package/lib/table/cache.d.ts +6 -0
  551. package/lib/table/components/index.d.ts +3 -0
  552. package/lib/table/components/table-cell.d.ts +51 -0
  553. package/lib/table/components/table-column.d.ts +305 -0
  554. package/lib/table/components/table-row.d.ts +2 -0
  555. package/lib/table/const.d.ts +94 -6
  556. package/lib/table/index.d.ts +698 -169
  557. package/lib/table/index.js +1 -1
  558. package/lib/table/plugins/body-empty.d.ts +36 -0
  559. package/lib/table/plugins/col-group.d.ts +38 -0
  560. package/lib/table/plugins/common.d.ts +6 -0
  561. package/lib/table/plugins/head-filter.css +30 -14
  562. package/lib/table/plugins/head-filter.d.ts +26 -0
  563. package/lib/table/plugins/head-filter.less +79 -52
  564. package/lib/table/plugins/head-filter.variable.css +59 -20
  565. package/lib/table/plugins/head-sort.css +7 -3
  566. package/lib/table/plugins/head-sort.d.ts +29 -0
  567. package/lib/table/plugins/head-sort.less +8 -4
  568. package/lib/table/plugins/head-sort.variable.css +36 -9
  569. package/lib/table/plugins/index.d.ts +5 -0
  570. package/lib/table/plugins/settings.css +43 -6
  571. package/lib/table/plugins/settings.d.ts +37 -0
  572. package/lib/table/plugins/settings.less +52 -7
  573. package/lib/table/plugins/settings.variable.css +72 -12
  574. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  575. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  576. package/lib/table/plugins/use-fixed-column.d.ts +26 -0
  577. package/lib/table/plugins/use-pagination.d.ts +16 -0
  578. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  579. package/lib/table/props.d.ts +271 -23
  580. package/lib/table/render.d.ts +32 -12
  581. package/lib/table/table.css +961 -69
  582. package/lib/table/table.d.ts +170 -27
  583. package/lib/table/table.less +195 -69
  584. package/lib/table/table.variable.css +990 -75
  585. package/lib/table/use-column.d.ts +12 -0
  586. package/lib/table/use-common.d.ts +71 -11
  587. package/lib/table/utils.d.ts +33 -7
  588. package/lib/table-column/index.d.ts +797 -0
  589. package/lib/table-column/index.js +1 -0
  590. package/lib/tag/index.d.ts +89 -68
  591. package/lib/tag/index.js +1 -1
  592. package/lib/tag/tag.css +46 -13
  593. package/lib/tag/tag.d.ts +17 -12
  594. package/lib/tag/tag.less +58 -21
  595. package/lib/tag/tag.variable.css +75 -19
  596. package/lib/tag-input/common.d.ts +13 -1
  597. package/lib/tag-input/index.d.ts +570 -269
  598. package/lib/tag-input/index.js +1 -1
  599. package/lib/tag-input/list-tag-render.d.ts +2 -5
  600. package/lib/tag-input/tag-input.css +23 -27
  601. package/lib/tag-input/tag-input.d.ts +304 -45
  602. package/lib/tag-input/tag-input.less +103 -106
  603. package/lib/tag-input/tag-input.variable.css +52 -33
  604. package/lib/tag-input/tag-props.d.ts +142 -8
  605. package/lib/tag-input/tag-render.d.ts +31 -5
  606. package/lib/time-picker/index.d.ts +833 -0
  607. package/lib/time-picker/index.js +1 -0
  608. package/lib/time-picker/time-picker.css +215 -0
  609. package/lib/time-picker/time-picker.less +260 -0
  610. package/lib/time-picker/time-picker.variable.css +337 -0
  611. package/lib/timeline/index.d.ts +64 -32
  612. package/lib/timeline/index.js +1 -1
  613. package/lib/timeline/timeline.css +11 -4
  614. package/lib/timeline/timeline.d.ts +4 -3
  615. package/lib/timeline/timeline.less +48 -36
  616. package/lib/timeline/timeline.variable.css +40 -10
  617. package/lib/transfer/index.d.ts +152 -81
  618. package/lib/transfer/index.js +1 -1
  619. package/lib/transfer/props.d.ts +5 -0
  620. package/lib/transfer/transfer.css +121 -41
  621. package/lib/transfer/transfer.d.ts +35 -3
  622. package/lib/transfer/transfer.less +103 -46
  623. package/lib/transfer/transfer.variable.css +155 -52
  624. package/lib/tree/constant.d.ts +22 -2
  625. package/lib/tree/index.d.ts +236 -141
  626. package/lib/tree/index.js +1 -1
  627. package/lib/tree/props.d.ts +68 -12
  628. package/lib/tree/tree.css +176 -7
  629. package/lib/tree/tree.d.ts +91 -20
  630. package/lib/tree/tree.less +49 -1
  631. package/lib/tree/tree.variable.css +205 -13
  632. package/lib/tree/use-empty.d.ts +1 -1
  633. package/lib/tree/use-node-action.d.ts +3 -2
  634. package/lib/tree/use-node-attribute.d.ts +11 -0
  635. package/lib/tree/use-node-drag.d.ts +1 -1
  636. package/lib/tree/use-search.d.ts +1 -1
  637. package/lib/tree/util.d.ts +2 -0
  638. package/lib/upload/index.d.ts +508 -1
  639. package/lib/upload/index.js +2 -1
  640. package/lib/upload/index.js.LICENSE.txt +1 -0
  641. package/lib/upload/props.d.ts +0 -2
  642. package/lib/upload/upload-list.d.ts +3 -2
  643. package/lib/upload/upload-trigger.d.ts +1 -4
  644. package/lib/upload/upload.css +58 -5
  645. package/lib/upload/upload.d.ts +10 -16
  646. package/lib/upload/upload.less +19 -8
  647. package/lib/upload/upload.type.d.ts +12 -12
  648. package/lib/upload/upload.variable.css +113 -37
  649. package/lib/upload/use-file-handler.d.ts +2 -25
  650. package/lib/virtual-render/index.d.ts +100 -150
  651. package/lib/virtual-render/index.js +1 -1
  652. package/lib/virtual-render/props.d.ts +15 -1
  653. package/lib/virtual-render/virtual-render.css +17 -17
  654. package/lib/virtual-render/virtual-render.d.ts +39 -4
  655. package/lib/virtual-render/virtual-render.less +2 -23
  656. package/lib/virtual-render/virtual-render.variable.css +139 -17
  657. package/lib/volar.components.d.ts +102 -0
  658. package/package.json +47 -41
  659. package/LICENSE.txt +0 -22
  660. package/lib/popover2/arrow.d.ts +0 -2
  661. package/lib/popover2/content.d.ts +0 -24
  662. package/lib/popover2/popover2.css +0 -25
  663. package/lib/popover2/popover2.d.ts +0 -180
  664. package/lib/popover2/popover2.less +0 -35
  665. package/lib/popover2/props.d.ts +0 -92
  666. package/lib/popover2/reference.d.ts +0 -2
  667. package/lib/popover2/use-floating.d.ts +0 -15
  668. package/lib/popover2/use-popper-id.d.ts +0 -5
@@ -0,0 +1,2 @@
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../directives"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../directives","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../directives"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../config-provider"],e["../directives"],e["../icon"],e["../popover"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,i,o)=>(()=>{var a={2717:e=>{"use strict";e.exports=n},4061:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=i},5537:e=>{"use strict";e.exports=o},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},7609:(e,t,n)=>{var r=n(7425).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",s=l.asyncIterator||"@@asyncIterator",c=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function v(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),l=new I(r||[]);return a(o,"_invoke",{value:E(e,n,l)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=v;var h={};function p(){}function m(){}function y(){}var g={};d(g,u,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(N([])));b&&b!==n&&o.call(b,u)&&(g=b);var w=y.prototype=p.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,a,l,u){var s=f(e[i],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,u)}),(function(e){n("throw",e,l,u)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function N(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:V}}function V(){return{value:void 0,done:!0}}return m.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=d(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,d(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(k.prototype),d(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(v(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),d(w,c,"Generator"),d(w,u,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,n)=>{var r=n(7609)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return a[e](n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";u.r(s),u.d(s,{BkSearchSelect:()=>A,default:()=>M});var e=u(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=u(748),o=null,a=null;function l(e,t){void 0===t&&(t={});var n=document.createElement(e);return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function c(e,t,n){return(window.getComputedStyle(e,n||null)||{display:"none"})[t]}function d(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if("none"===c(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var v=0,f=null;function h(e,t){if(e.__resize_mutation_handler__||(e.__resize_mutation_handler__=p.bind(e)),!e.__resize_listeners__)if(e.__resize_listeners__=[],window.ResizeObserver){var n=e.offsetWidth,r=e.offsetHeight,i=new ResizeObserver((function(){(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==n||e.offsetHeight!==r))&&y(e)})),o=d(e),a=o.detached,u=o.rendered;e.__resize_observer_triggered__=!1===a&&!1===u,e.__resize_observer__=i,i.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){y(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(v||(f=function(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}('.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}')),function(e){var t=c(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=l("div",{className:"resize-triggers"}),r=l("div",{className:"resize-expand-trigger"}),i=l("div"),o=l("div",{className:"resize-contract-trigger"});r.appendChild(i),n.appendChild(r),n.appendChild(o),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:i,contract:o},g(e),e.addEventListener("scroll",m,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}(e),e.__resize_rendered__=d(e).rendered,window.MutationObserver){var s=new MutationObserver(e.__resize_mutation_handler__);s.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=s}e.__resize_listeners__.push(t),v++}function p(){var e=d(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(g(this),this.addEventListener("scroll",m,!0)),this.__resize_rendered__=t,y(this))}function m(){var e,t,n=this;g(this),this.__resize_raf__&&(e=this.__resize_raf__,a||(a=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),a(e)),this.__resize_raf__=(t=function(){var e,t,r,i,o,a,l=(r=(t=(e=n).__resize_last__).width,i=t.height,o=e.offsetWidth,a=e.offsetHeight,o!==r||a!==i?{width:o,height:a}:null);l&&(n.__resize_last__=l,y(n))},o||(o=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),o(t))}function y(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach((function(t){t.call(e,e)}))}function g(e){var t=e.__resize_triggers__,n=t.expand,r=t.expandChild,i=t.contract,o=i.scrollWidth,a=i.scrollHeight,l=n.offsetWidth,u=n.offsetHeight,s=n.scrollWidth,c=n.scrollHeight;i.scrollLeft=o,i.scrollTop=a,r.style.width=l+1+"px",r.style.height=u+1+"px",n.scrollLeft=s,n.scrollTop=c}var _=u(2717),b=u(4061),w=u(6870),x=u(2841),k=u.n(x);function E(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function l(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var S=u(5537),L=u.n(S);const C=(0,i.defineComponent)({name:"SearchSelectMenu",props:{list:{type:Array},hoverId:String,keyword:{type:String,default:""},multiple:{type:Boolean,default:!1},selected:{type:Array,default:function(){return[]}},conditions:{type:Array},footerBtns:{type:Array,default:function(){return[]}}},emits:["selectItem","selectCondition","footerClick"],setup:function(e,t){var n=t.emit,r=(0,_.useLocale)("searchSelect"),o=(0,_.usePrefix)().resolveClassName,a=(0,i.computed)((function(){return void 0===e.footerBtns||0===e.footerBtns.length?[{id:"confirm",name:r.value.ok},{id:"cancel",name:r.value.cancel,disabled:!1}]:e.footerBtns}));return{handleClick:function(e){n("selectItem",e)},handleClickCondition:function(e){n("selectCondition",e)},handleClickFooterBtn:function(e){n("footerClick",e)},filterList:(0,i.computed)((function(){var t,n;return(null===(t=e.list)||void 0===t?void 0:t.length)?(null===(n=e.keyword)||void 0===n?void 0:n.length)?e.list.filter((function(t){return t.name.toLocaleLowerCase().includes(e.keyword.toLocaleLowerCase())})):e.list:[]})),getSearchNode:function(t){var n;return(null===(n=t.value)||void 0===n?void 0:n.name)?[(0,i.createVNode)("span",{class:"menu-name"},[t.name,(0,i.createTextVNode)(":")]),t.value.name]:function(t){if(!t)return t;var n=e.keyword,r=n.length;if(!(null==n?void 0:n.trim().length)||!t.toLocaleLowerCase().includes(n.toLocaleLowerCase()))return t;var o=[],a=-1;return n=n.replace(/([.*/]{1})/gim,"\\$1"),t.replace(new RegExp("".concat(n),"igm"),(function(e,n){return 0===o.length&&0!==n?o.push(t.slice(0,n)):a>=0&&o.push(t.slice(a+e.length,n)),o.push((0,i.createVNode)("span",{class:"is-keyword"},[e])),a=n,e})),a>=0&&o.push(t.slice(a+r)),o.length?o:t}(t.name)},localFooterBtns:a,resolveClassName:o}},render:function(){var e,t,n,r=this;return(0,i.createVNode)("div",{class:this.resolveClassName("search-select-menu")},[!!(null===(e=this.conditions)||void 0===e?void 0:e.length)&&(0,i.createVNode)("ul",{class:"menu-header"},[this.conditions.map((function(e){return(0,i.createVNode)("li",{key:e.id,class:"menu-header-item ".concat(e.disabled?"is-disabled":""),onClick:function(){return!e.disabled&&r.handleClickCondition(e)}},[e.name])}))]),(0,i.createVNode)("ul",{class:"menu-content"},[null===(t=this.list)||void 0===t?void 0:t.map((function(e){return(0,i.createVNode)("li",{class:"menu-item ".concat(e.disabled?"is-disabled":""," ").concat(r.hoverId!==e.id||e.disabled?"":"is-hover"),key:e.id,id:e.id,tabindex:"-1",onClick:function(){return!e.disabled&&r.handleClick(e)}},[r.$slots.default?r.$slots.default({item:e,list:r.list,multiple:!!r.multiple,hoverId:r.hoverId,getSearchNode:r.getSearchNode}):(0,i.createVNode)(i.Fragment,null,[r.getSearchNode(e),r.multiple&&r.selected.includes(e.id)&&(0,i.createVNode)(w.Done,{class:"is-selected"},null)])])}))]),this.multiple&&(null===(n=this.localFooterBtns)||void 0===n?void 0:n.length)&&(0,i.createVNode)("div",{class:"menu-footer"},[this.localFooterBtns.map((function(e){return(0,i.createVNode)("span",{class:"menu-footer-btn ".concat(e.disabled?"is-disabled":""),key:e.id,onClick:function(){return!e.disabled&&r.handleClickFooterBtn(e)}},[e.name])}))])])}});function I(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}var N;!function(e){e.ALL="all",e.NEEDKEY="need-key"}(N||(N={}));var V,O=Symbol("SEARCH_SLECT_PROVIDER_KEY"),z=function(){return(0,i.inject)(O)};!function(e){e.DEFAULT="default",e.EDIT="edit"}(V||(V={}));var T=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"|";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.searchItem=t,this.type=n,this.splitCode=r,this.values=[],this.id=t.id,this.name=t.name}var t,n;return t=e,(n=[{key:"multiple",get:function(){return!!this.searchItem.multiple}},{key:"placeholder",get:function(){return this.searchItem.placeholder||""}},{key:"children",get:function(){return this.searchItem.children||[]}},{key:"validate",get:function(){return!this.searchItem.noValidate}},{key:"inputInnerHtml",get:function(){var e;return this.isSpecialType()?this.name:"".concat(this.keyInnerHtml).concat((null===(e=this.values)||void 0===e?void 0:e.map((function(e){return e.name})).join(this.splitCode))||"")}},{key:"inputInnerText",get:function(){var e;return this.isSpecialType()?this.name:"".concat(this.keyInnerText).concat((null===(e=this.values)||void 0===e?void 0:e.map((function(e){return e.name})).join(this.splitCode))||"")}},{key:"keyInnerHtml",get:function(){return this.isSpecialType()?this.name:this.name?"".concat(this.name,": "):""}},{key:"keyInnerText",get:function(){return this.isSpecialType()?this.name:this.name?"".concat(this.name,": "):""}},{key:"isSpecialType",value:function(){return["text","condition"].includes(this.type)}},{key:"addValue",value:function(e){if(this.multiple){var t=this.values.findIndex((function(t){return t.id===e.id}));return t>-1?void this.values.splice(t,1):void this.values.push(e)}this.values=[e]}},{key:"toValue",value:function(){var e,t={id:this.id,name:this.name};return(null===(e=this.values)||void 0===e?void 0:e.length)&&(t.values=this.values.map((function(e){return{id:e.id,name:e.name}}))),this.type&&"default"!==this.type&&(t.type=this.type),t}},{key:"toValueKey",value:function(){return JSON.stringify(this.toValue())}},{key:"isInValueList",value:function(e){return this.children.some((function(t){return t.id===(null==e?void 0:e.id)}))}}])&&I(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const j=(0,i.defineComponent)({name:"SearchSelectInput",directives:{clickoutside:b.clickoutside},props:{data:{type:Array,required:!0},showInputBefore:Boolean,showCondition:Boolean,clickOutside:Function,placeholder:String,conditions:{type:Array,default:function(){return[]}},defautUsingItem:Object,mode:{type:String,default:V.DEFAULT},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["focus","add","delete"],setup:function(t,n){var r=n.emit,o=n.expose,a=(0,_.useLocale)("searchSelect"),l=(0,_.usePrefix)().resolveClassName,u=(0,i.ref)(null),s=(0,i.ref)(null),c=(0,i.ref)(""),d=(0,i.ref)(!1),v=(0,i.ref)(!1),f=(0,i.ref)(!1),h=(0,i.ref)(t.defautUsingItem),p=(0,i.ref)(""),m=(0,i.ref)(!1),y=(0,e.debounce)(300,q),g=!1,b=(0,i.ref)([]),w=(0,i.ref)([]),x=z(),S=x.editKey,L=x.onValidate,C=x.valueSplitCode;function I(e){switch(e.code){case"ArrowDown":case"ArrowUp":O(e);break;case"Enter":case"NumpadEnter":!function(e){if(g){e.preventDefault();var t=w.value.find((function(e){return e.id===p.value}));t&&B(t)}}(e)}}function O(e){var t;e.preventDefault(),null===(t=u.value)||void 0===t||t.blur();for(var n=w.value.length,r=n,i=w.value.findIndex((function(e){return e.id===p.value}));r>=0;){i=(i="ArrowDown"===e.code?i+1:i-1)>n-1?0:i<0?n-1:i;var o=w.value[i];if(o&&!o.disabled){r=-1;var a=document.getElementById(o.id);return null==a||a.focus(),void(p.value=o.id)}r-=1}}function j(e){M(),e&&q()}function F(e){var n;return E(this,void 0,void 0,k().mark((function i(){var o,a,l,u,s;return k().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return null==e||e.preventDefault(),i.next=3,new Promise((function(e){return setTimeout(e,0)}));case 3:if(h.value){i.next=16;break}if(c.value&&t.valueBehavior!==N.NEEDKEY){i.next=6;break}return i.abrupt("return");case 6:return o={id:c.value,name:c.value},i.next=9,D(o);case 9:if(i.sent){i.next=12;break}return i.abrupt("return");case 12:return r("add",new T(o,"text",C.value)),c.value="",q(),i.abrupt("return");case 16:if(null==(a=h.value.values)?void 0:a.length){i.next=43;break}if(!(null===(n=c.value)||void 0===n?void 0:n.length)){i.next=41;break}if(!c.value.includes(C.value)){i.next=29;break}return l=c.value.split(C.value),i.next=23,D({id:c.value,name:c.value});case 23:if(i.sent){i.next=26;break}return i.abrupt("return");case 26:l.forEach((function(e){return h.value.addValue({id:e,name:e})})),i.next=36;break;case 29:return u={id:c.value,name:c.value},i.next=32,D(u);case 32:if(i.sent){i.next=35;break}return i.abrupt("return");case 35:h.value.addValue(u);case 36:return r("add",h.value),c.value="",h.value=null,M(!0),i.abrupt("return");case 41:return d.value=!0,i.abrupt("return");case 43:if(!c.value){i.next=56;break}return s={id:c.value,name:c.value},i.next=47,D(s);case 47:if(i.sent){i.next=50;break}return i.abrupt("return");case 50:return h.value.addValue(s),r("add",h.value),c.value="",h.value=null,M(!0),i.abrupt("return");case 56:return i.next=58,D();case 58:if(i.sent){i.next=61;break}return i.abrupt("return");case 61:K();case 62:case"end":return i.stop()}}),i)})))}function B(e,n){var r,i,o,a,l,s;return E(this,void 0,void 0,k().mark((function d(){var v,m;return k().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(console.info(e,"=========="),!(null===(r=e.value)||void 0===r?void 0:r.id)){d.next=20;break}if((t.valueBehavior!==N.NEEDKEY||!e.value)&&t.validateValues){d.next=9;break}return(v=new T(Object.assign(Object.assign({},e),{id:null!==(i=e.realId)&&void 0!==i?i:e.id}),n,C.value)).addValue(e.value),K(v),t.valueBehavior===N.NEEDKEY&&p.value&&M(!0),p.value="",d.abrupt("return");case 9:return h.value=new T(Object.assign(Object.assign({},e),{id:null!==(o=e.realId)&&void 0!==o?o:e.id}),n,C.value),h.value.addValue(e.value),d.next=13,D(e);case 13:if(d.sent){d.next=16;break}return d.abrupt("return");case 16:return K(h.value),p.value="",M(!0),d.abrupt("return");case 20:if(h.value&&(null===(a=null==u?void 0:u.value)||void 0===a?void 0:a.innerText)){d.next=28;break}return h.value=new T(e,n,C.value),c.value="",(m="condition"===n)&&K(),f.value=m||!!h.value.children.length,M(t.valueBehavior===N.NEEDKEY&&!!p.value),d.abrupt("return");case 28:if("condition"!==(null===(l=h.value)||void 0===l?void 0:l.type)){d.next=32;break}return h.value=new T(e,n,C.value),K(),d.abrupt("return");case 32:return h.value.addValue(e),d.next=35,D(e);case 35:if(d.sent){d.next=38;break}return d.abrupt("return");case 38:h.value.multiple||K(),t.valueBehavior===N.NEEDKEY&&(null===(s=h.value)||void 0===s?void 0:s.multiple)&&M();case 40:case"end":return d.stop()}}),d)})))}function D(e){return E(this,void 0,void 0,k().mark((function n(){var r,i,o,a;return k().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(h.value){n.next=4;break}return n.next=3,A(null,[e]);case 3:case 8:return n.abrupt("return",n.sent);case 4:if(r=h.value,i=r.searchItem,o=r.validate,a=r.values,!o||"function"!=typeof t.validateValues){n.next=9;break}return n.next=8,A(i,e?[e]:a);case 9:return L(""),n.abrupt("return",!0);case 11:case"end":return n.stop()}}),n)})))}function A(e,n){var r;return E(this,void 0,void 0,k().mark((function i(){var o;return k().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,null===(r=t.validateValues)||void 0===r?void 0:r.call(t,null!=e?e:null,n).catch((function(){return!1}));case 2:if("string"!=typeof(o=i.sent)&&!1!==o){i.next=6;break}return L(o||"校验错误"),i.abrupt("return",!1);case 6:return L(""),i.abrupt("return",!0);case 8:case"end":return i.stop()}}),i)})))}function M(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(0,i.nextTick)().then((function(){q()})),v.value=!0,f.value=!0,d.value=!1;var e=setTimeout((function(){if(u.value){u.value.focus();var t=window.getSelection();0===t.focusOffset&&(t.selectAllChildren(u.value),t.collapseToEnd())}window.clearTimeout(e)}),0);r("focus",v.value)}function q(){var n,r,i,o,a;return E(this,void 0,void 0,k().mark((function l(){var u,s;return k().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(u=[],"function"!=typeof t.getMenuList||void 0!==(null===(r=null===(n=h.value)||void 0===n?void 0:n.searchItem)||void 0===r?void 0:r.async)&&!0!==h.value.searchItem.async){l.next=9;break}return m.value=!0,l.next=5,t.getMenuList(null===(i=h.value)||void 0===i?void 0:i.searchItem,c.value).catch((function(){return[]}));case 5:u=l.sent,m.value=!1,l.next=10;break;case 9:(null==h?void 0:h.value)?"condition"===h.value.type?u=t.conditions:(null===(a=h.value.values)||void 0===a?void 0:a.length)&&!h.value.multiple&&t.mode!==V.EDIT||(u=h.value.children.filter((function(e){return e.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase())}))):(null===(o=c.value)||void 0===o?void 0:o.length)?t.data.filter((function(e){return!e.isSelected})).forEach((function(t){var n,r;t.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase())?(u.push(t),null===(n=t.children)||void 0===n||n.forEach((function(n){u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:{id:c.value,name:c.value}}))):(null===(r=t.children)||void 0===r||r.forEach((function(n){n.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase())&&u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),u.push(Object.assign(Object.assign({},t),{value:{id:c.value,name:c.value}})))})):u=t.data.filter((function(e){return!e.isSelected})).slice();case 10:w.value=u,t.valueBehavior===N.NEEDKEY&&(s=u.find((function(e){return!e.disabled})))&&(!p.value||p.value&&!u.some((function(e){return e.id===p.value})))&&(p.value=s.id);case 12:case"end":return l.stop()}}),l)})))}function K(e){r("add",null!=e?e:h.value),h.value=null,c.value="",M(t.valueBehavior===N.NEEDKEY)}function P(){var e=u.value.innerText;"\n"===e[e.length-1]||"\r"===e[0]?(H(e.slice(0,-1)),P()):"\n"!==e[0]&&"\r"!==e[0]||(H(e.slice(1)),P())}function H(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";u.value&&(u.value.innerHTML=t||(null===(e=h.value)||void 0===e?void 0:e.inputInnerHtml)||"")}return(0,i.watch)(S,(function(){t.mode===V.DEFAULT&&S.value&&(f.value=!1)})),(0,i.watchEffect)((function(){c.value||H()}),{flush:"pre"}),(0,i.watch)([w,f],(function(){var e;(null===(e=w.value)||void 0===e?void 0:e.some((function(e){return!e.disabled})))&&f.value?g||(t.valueBehavior===N.NEEDKEY?p.value=w.value.find((function(e){return!e.disabled})).id:p.value="",g=!0,document.addEventListener("keydown",I)):(document.removeEventListener("keydown",I),g=!1,t.valueBehavior!==N.NEEDKEY&&(p.value=""))})),o({handleInputFocus:j,isFocus:v}),{popoverRef:s,inputRef:u,keyword:c,loading:m,remoteMenuList:b,menuList:w,menuHoverId:p,isFocus:v,usingItem:h,showPopover:f,showNoSelectValueError:d,debounceSetMenuList:y,documentArrowEvent:O,handleClickOutside:function(e){var n,i;!(null===(n=s.value)||void 0===n?void 0:n.contains(e.target))&&(null===(i=t.clickOutside)||void 0===i?void 0:i.call(t,e.target,s.value))&&(f.value=!1,v.value=!1,r("focus",v.value))},handleInputFocus:j,handleInputChange:function(e){var t,n,r,i,o,a,l,s,d;P();var v=e.target.innerText;if(/(\r|\n)/gm.test(v)||/\s{2}/gm.test(v))e.preventDefault(),v=v.replace(/(\r|\n)/gm,C.value).replace(/\s{2}/gm,""),u.value.innerText=v,M(),c.value=v.replace((null===(t=h.value)||void 0===t?void 0:t.keyInnerText)||"","").trim(),y();else if(!c.value&&v.length<((null===(r=null===(n=h.value)||void 0===n?void 0:n.inputInnerText)||void 0===r?void 0:r.length)||1)){var f=v.replace(" "," ").replace((null===(i=h.value)||void 0===i?void 0:i.keyInnerText.replace(" "," ").trim())||"","").trim();if(v&&(null===(o=h.value)||void 0===o?void 0:o.keyInnerText)&&v.replace(" "," ").includes(h.value.keyInnerText.replace(" "," ").trim())&&f&&(null===(a=h.value.values)||void 0===a?void 0:a.length))return c.value=f,console.info("outerText",f),void y();!f&&(null==v?void 0:v.length)||(h.value=null),c.value=f?v:"",y()}else(null===(s=null===(l=h.value)||void 0===l?void 0:l.values)||void 0===s?void 0:s.length)||(c.value=v.replace(" "," ").replace((null===(d=h.value)||void 0===d?void 0:d.keyInnerText.replace(" "," "))||"","").trim(),M(),y())},handleInputKeyup:function(e){switch(e.code){case"Enter":case"NumpadEnter":if(t.valueBehavior===N.NEEDKEY&&w.value.some((function(e){return e.id===p.value})))return;F(e);break;case"Backspace":!function(){var e,n;if(!h.value&&!c.value)return r("delete"),void(0,i.nextTick)(q);if(null===(e=h.value)||void 0===e?void 0:e.values.length){if((null===(n=h.value)||void 0===n?void 0:n.multiple)||h.value.isInValueList(h.value.values[0])||t.mode===V.EDIT&&!c.value)return h.value.values.splice(-1,1),c.value="",void M()}else c.value||(h.value=null,c.value="",q());L("")}();default:d.value=!1}},handleSelectItem:B,handleSelectCondtionItem:function(e){B(e,"condition")},handleMenuFooterClick:function(e){var t;switch(e.id){case"confirm":if(!(null===(t=h.value)||void 0===t?void 0:t.values.length))return;c.value="",F();break;case"cancel":h.value.values=[],f.value=!1}},resolveClassName:l,t:a}},render:function(){var e,t,n=this,r=this.usingItem||{},o=r.multiple,a=r.values,l=r.placeholder,u=r.inputInnerHtml,s=!(null===(e=this.keyword)||void 0===e?void 0:e.length)&&!(null==a?void 0:a.length)&&l,c=this.loading||this.showNoSelectValueError||this.showPopover&&!!(null===(t=this.menuList)||void 0===t?void 0:t.length),d=!this.usingItem&&this.showCondition,v=Object.assign({},this.$slots.menu?{default:function(e){var t,r;return null===(r=(t=n.$slots).menu)||void 0===r?void 0:r.call(t,e)}}:{});return(0,i.createVNode)(L(),{trigger:"manual",theme:"light",placement:"bottom-start",arrow:!1,disableOutsideClick:!0,isShow:c},{default:function(){var e;return(0,i.withDirectives)((0,i.createVNode)("div",{ref:"inputRef",class:{"div-input":!0,"input-before":n.showInputBefore&&!(null===(e=n.keyword)||void 0===e?void 0:e.length),"input-after":s},contenteditable:!0,"data-placeholder":u||n.keyword?"":n.placeholder,"data-tips":l||"",spellcheck:"false",onFocus:n.handleInputFocus,onInput:n.handleInputChange,onKeydown:n.handleInputKeyup},null),[[(0,i.resolveDirective)("clickoutside"),n.handleClickOutside]])},content:function(){var e;return n.loading?(0,i.createVNode)("div",null,[n.t.loading]):n.showNoSelectValueError?(0,i.createVNode)("div",null,[n.t.filterQueryMustHasValue]):(null===(e=n.menuList)||void 0===e?void 0:e.length)?(0,i.createVNode)("div",{ref:"popoverRef",class:n.resolveClassName("search-select-popover")},[(0,i.createVNode)(C,{list:n.menuList,keyword:n.keyword,multiple:!!o,hoverId:n.menuHoverId,selected:(null==a?void 0:a.map((function(e){return e.id})))||[],conditions:d?n.conditions:[],onSelectItem:n.handleSelectItem,onSelectCondition:n.handleSelectCondtionItem,onFooterClick:n.handleMenuFooterClick},Object.assign({},v))]):void 0}})}}),F=(0,i.defineComponent)({name:"SearchSelected",props:{data:{type:Array,required:!0},selectedList:{type:Array,required:!0},overflowIndex:{type:Number,default:-1},conditions:{type:Array,default:function(){return[]}},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["delete"],setup:function(e,t){var n=t.emit,r=(0,i.ref)(null),o=z(),a=o.onEditClick,l=o.onEditEnter,u=o.onEditBlur,s=o.editKey,c=o.valueSplitCode;return{inputRef:r,editKey:s,copySeletedItem:function(e){var t=new T(e.searchItem,e.type,c.value);return t.values=e.values.slice(),t},handleDeleteSelected:function(e){n("delete",e)},handleEditSeleted:function(e,t,n){e.preventDefault(),e.stopPropagation(),a(t,n),setTimeout((function(){return r.value.handleInputFocus()}),200)},handleInputOutside:function(){return!0},handleAddSelected:function(e,t){l(e,t)},handleInputFocus:function(e){e||u()}}},render:function(){var e=this,t=function(t,n){return e.editKey==="".concat(t.id,"_").concat(n)?(0,i.createVNode)("div",{class:"selected-input",key:e.editKey.toString()},[(0,i.createVNode)(j,{ref:"inputRef",key:e.editKey.toString(),mode:V.EDIT,data:e.data,showCondition:!1,conditions:e.conditions,defautUsingItem:e.copySeletedItem(t),clickOutside:e.handleInputOutside,getMenuList:e.getMenuList,validateValues:e.validateValues,valueBehavior:e.valueBehavior,onAdd:function(t){return e.handleAddSelected(t,n)},onFocus:e.handleInputFocus},null)]):(0,i.createVNode)("li",{class:"search-container-selected ".concat((e.overflowIndex>=0?n<e.overflowIndex:n>=0)?"":"hidden-selected"),key:"".concat(t.id,"_").concat(n)},[(0,i.createVNode)("span",{class:"selected-name",onClick:function(r){return e.handleEditSeleted(r,t,n)}},[t.inputInnerText]),(0,i.createVNode)(w.Error,{class:"selected-clear",onClick:function(){return e.handleDeleteSelected(n)}},null)])};return(0,i.createVNode)(i.Fragment,null,[this.selectedList.map((function(n,r){return[e.overflowIndex>=0&&r===e.overflowIndex&&(0,i.createVNode)("div",{class:"search-container-selected overflow-selected"},[(0,i.createTextVNode)("+"),e.selectedList.length-e.overflowIndex]),t(n,r)]}))])}});var B={data:{type:Array,default:function(){return[]}},modelValue:{type:Array,default:function(){return[]}},shrink:{type:Boolean,default:!0},maxHeight:{type:Number,default:120},minHeight:{type:Number,default:26},conditions:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},placeholder:String,getMenuList:Function,validateValues:Function,valueSplitCode:{type:String,default:"|"},uniqueSelect:{type:Boolean,default:!1},valueBehavior:{type:String,default:N.ALL,validator:function(e){return[N.ALL,N.NEEDKEY].includes(e)}}};const D=(0,i.defineComponent)({name:"SearchSelect",directives:{clickoutside:b.clickoutside},props:B,emits:["update:modelValue","search"],setup:function(t,n){var r,o=n.emit,a=(0,_.useLocale)("searchSelect"),l=(0,_.usePrefix)().resolveClassName,u=(0,i.computed)((function(){return void 0===t.conditions?[{id:"or",name:a.value.or},{id:"and",name:a.value.and}]:t.conditions})),s=(0,i.ref)(null),c=(0,i.ref)(null),d=(0,i.ref)(!1),p=(0,i.ref)([]),y=(0,i.ref)(-1),g=(0,e.debounce)(32,C),b=(0,i.ref)(""),w=(0,i.ref)(""),x=(0,i.computed)((function(){return t.valueSplitCode})),k=(0,i.shallowRef)([]);function E(e,t){b.value="".concat(e.id,"_").concat(t)}function S(e,t){var n=p.value.slice();n.splice(t,1,e),o("update:modelValue",n.map((function(e){return e.toValue()}))),b.value=""}function L(e){w.value=e||""}function C(){if(d.value||p.value.length<1)y.value=-1;else{for(var e=c.value.querySelector(".".concat(l("search-select-container"))),n=c.value.querySelector(".search-container").clientWidth-6-2,r=e.querySelectorAll(".search-container-selected:not(.overflow-selected)"),i=0,o=0,a=0;0===o&&i<=n-40&&a<=r.length-1;){var u=r[a];if(u.clientHeight>t.minHeight)return void(y.value=a);(i+=u?u.clientWidth+6:0)>=n-40&&(o=a),a+=1}o===r.length-1&&i<=n?y.value=-1:y.value=i>=n-40?o:o-1}}return(0,i.watch)((function(){return t.data}),(function(){var e;k.value=JSON.parse(JSON.stringify(t.data)),null===(e=k.value)||void 0===e||e.forEach((function(e){e.isSelected=t.uniqueSelect&&!!t.modelValue.some((function(t){return t.id===e.id}))}))}),{immediate:!0}),(0,i.watch)((function(){return t.modelValue}),(function(e){var n,r;if(!(null==e?void 0:e.length))return p.value=[],void(null===(n=k.value)||void 0===n||n.forEach((function(e){e.isSelected=!1})));var i=[];e.forEach((function(e){var n,r=p.value.find((function(t){return t.id===e.id&&t.name===e.name}));if((null==r?void 0:r.toValueKey())===JSON.stringify(e))r.values=e.values||[],i.push(r);else{var o=t.data.find((function(t){return t.id===e.id})),a="default";o||(o=t.conditions.find((function(t){return t.id===e.id})))&&(a="condition"),o||(null===(n=e.values)||void 0===n?void 0:n.length)||(a="text");var l=new T(o||e,a,x.value);l.values=e.values||[],i.push(l)}})),p.value=i,null===(r=k.value)||void 0===r||r.forEach((function(e){e.isSelected=t.uniqueSelect&&!!i.some((function(t){return t.id===e.id}))}))}),{immediate:!0,deep:!0}),(0,i.onMounted)((function(){h(c.value.querySelector(".".concat(l("search-select-container"))),g)})),(0,i.onBeforeUnmount)((function(){!function(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",m),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}! --v&&f&&f.parentNode.removeChild(f)}}(c.value.querySelector(".".concat(l("search-select-container"))),g)})),r={onEditClick:E,onEditEnter:S,onEditBlur:function(){b.value="",L("")},onValidate:L,editKey:b,valueSplitCode:x},(0,i.provide)(O,r),{inputRef:s,wrapRef:c,isFocus:d,copyData:k,selectedList:p,overflowIndex:y,validateStr:w,splitCode:x,onEditClick:E,onEditEnter:S,handleWrapClick:function(){b.value||s.value.handleInputFocus()},handleInputFocus:function(e){var t;e&&(y.value=-1),!1===e&&(null===(t=c.value.querySelector(".".concat(l("search-select-container"))))||void 0===t||t.scrollTo(0,0)),d.value=e},handleResize:C,handleClearAll:function(){p.value=[],y.value=-1,o("update:modelValue",[])},handleInputOutside:function(e){var t;return!(null===(t=c.value)||void 0===t?void 0:t.contains(e))},handleAddSelected:function(e){var t=p.value.slice();t.push(e),L(""),o("update:modelValue",t.map((function(e){return e.toValue()})))},handleDeleteSelected:function(e){var t=p.value.slice();t.splice("number"==typeof e?e:p.value.length-1,1),L(""),o("update:modelValue",t.map((function(e){return e.toValue()})))},handleClickSearch:function(e){o("search",e)},localConditions:u,resolveClassName:l,t:a}},render:function(){var e,t,n,o=this,a="".concat(!this.shrink||this.isFocus?this.maxHeight:this.minHeight,"px"),l=!!this.selectedList.length&&"condition"!==this.selectedList.slice(-1)[0].type,u=Object.assign({},this.$slots.menu?{menu:function(e){var t,n;return null===(n=(t=o.$slots).menu)||void 0===n?void 0:n.call(t,e)}}:{});return(0,i.createVNode)("div",{class:this.resolveClassName("search-select"),ref:"wrapRef"},[(0,i.createVNode)("div",{class:(e={},r(e,this.resolveClassName("search-select-container"),!0),r(e,"is-focus",this.isFocus),e),onClick:this.handleWrapClick},[(0,i.createVNode)("div",{class:"search-prefix"},[null===(n=(t=this.$slots).prepend)||void 0===n?void 0:n.call(t)]),(0,i.createVNode)("div",{class:"search-container",style:{maxHeight:a}},[(0,i.createVNode)(F,{data:this.copyData,conditions:this.localConditions,selectedList:this.selectedList,overflowIndex:this.overflowIndex,getMenuList:this.getMenuList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onDelete:this.handleDeleteSelected},Object.assign({},u)),(0,i.createVNode)("div",{class:"search-container-input"},[(0,i.createVNode)(j,{ref:"inputRef",data:this.copyData,showInputBefore:!this.selectedList.length,showCondition:l,conditions:this.localConditions,placeholder:this.placeholder||this.t.pleaseSelect,clickOutside:this.handleInputOutside,getMenuList:this.getMenuList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onAdd:this.handleAddSelected,onDelete:this.handleDeleteSelected,onFocus:this.handleInputFocus},Object.assign({},u))])]),(0,i.createVNode)("div",{class:"search-nextfix"},[this.clearable&&!!this.selectedList.length&&(0,i.createVNode)(w.Close,{class:"search-clear",onClick:this.handleClearAll},null),this.$slots.append?this.$slots.append():(0,i.createVNode)(w.Search,{onClick:this.handleClickSearch,class:"search-nextfix-icon ".concat(this.isFocus?"is-focus":"")},null)])]),!!this.validateStr.length&&(0,i.createVNode)("div",{class:this.resolveClassName("search-select-tips")},[this.$slots.validate?this.$slots.validate():(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(w.ExclamationCircleShape,{class:"select-tips"},null),this.validateStr||""])])])}});var A=(0,e.withInstall)(D);const M=A})(),s})()));
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -0,0 +1,101 @@
1
+ import { PropType, Ref } from 'vue';
2
+ import { GetMenuListFunc, ICommonItem, IMenuFooterItem, ISearchItem, SearchInputMode, SearchItemType, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ data: {
5
+ type: PropType<ISearchItem[]>;
6
+ required: true;
7
+ };
8
+ showInputBefore: BooleanConstructor;
9
+ showCondition: BooleanConstructor;
10
+ clickOutside: FunctionConstructor;
11
+ placeholder: StringConstructor;
12
+ conditions: {
13
+ type: PropType<ICommonItem[]>;
14
+ default: () => any[];
15
+ };
16
+ defautUsingItem: PropType<SelectedItem>;
17
+ mode: {
18
+ type: PropType<SearchInputMode>;
19
+ default: SearchInputMode;
20
+ };
21
+ getMenuList: PropType<GetMenuListFunc>;
22
+ validateValues: PropType<ValidateValuesFunc>;
23
+ valueBehavior: PropType<ValueBehavior>;
24
+ }, {
25
+ popoverRef: Ref<HTMLDivElement>;
26
+ inputRef: Ref<HTMLDivElement>;
27
+ keyword: Ref<string>;
28
+ loading: Ref<boolean>;
29
+ remoteMenuList: Ref<{
30
+ id: string;
31
+ name: string;
32
+ disabled?: boolean;
33
+ realId?: string;
34
+ value?: {
35
+ name: string;
36
+ id: string;
37
+ realId?: string;
38
+ isSelected?: boolean;
39
+ };
40
+ isSelected?: boolean;
41
+ }[]>;
42
+ menuList: Ref<ISearchItem[]>;
43
+ menuHoverId: Ref<string>;
44
+ isFocus: Ref<boolean>;
45
+ usingItem: Ref<SelectedItem>;
46
+ showPopover: Ref<boolean>;
47
+ showNoSelectValueError: Ref<boolean>;
48
+ debounceSetMenuList: {
49
+ (this: any): any;
50
+ cancel(): void;
51
+ };
52
+ documentArrowEvent: (e: KeyboardEvent) => void;
53
+ handleClickOutside: (e: MouseEvent) => void;
54
+ handleInputFocus: (e: FocusEvent) => void;
55
+ handleInputChange: (event: Event) => void;
56
+ handleInputKeyup: (event: KeyboardEvent) => void;
57
+ handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
58
+ handleSelectCondtionItem: (item: ICommonItem) => void;
59
+ handleMenuFooterClick: (item: IMenuFooterItem) => void;
60
+ resolveClassName: (cls: string) => string;
61
+ t: import("vue").ComputedRef<{
62
+ pleaseSelect: string;
63
+ loading: string;
64
+ filterQueryMustHasValue: string;
65
+ ok: string;
66
+ cancel: string;
67
+ or: string;
68
+ and: string;
69
+ }>;
70
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "add" | "delete")[], "focus" | "add" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
71
+ data: {
72
+ type: PropType<ISearchItem[]>;
73
+ required: true;
74
+ };
75
+ showInputBefore: BooleanConstructor;
76
+ showCondition: BooleanConstructor;
77
+ clickOutside: FunctionConstructor;
78
+ placeholder: StringConstructor;
79
+ conditions: {
80
+ type: PropType<ICommonItem[]>;
81
+ default: () => any[];
82
+ };
83
+ defautUsingItem: PropType<SelectedItem>;
84
+ mode: {
85
+ type: PropType<SearchInputMode>;
86
+ default: SearchInputMode;
87
+ };
88
+ getMenuList: PropType<GetMenuListFunc>;
89
+ validateValues: PropType<ValidateValuesFunc>;
90
+ valueBehavior: PropType<ValueBehavior>;
91
+ }>> & {
92
+ onFocus?: (...args: any[]) => any;
93
+ onAdd?: (...args: any[]) => any;
94
+ onDelete?: (...args: any[]) => any;
95
+ }, {
96
+ mode: SearchInputMode;
97
+ conditions: ICommonItem[];
98
+ showInputBefore: boolean;
99
+ showCondition: boolean;
100
+ }, {}>;
101
+ export default _default;
@@ -0,0 +1,77 @@
1
+ import { PropType, VNode } from 'vue';
2
+ import { ICommonItem, IMenuFooterItem } from './utils';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ list: {
5
+ type: PropType<ICommonItem[]>;
6
+ };
7
+ hoverId: StringConstructor;
8
+ keyword: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ multiple: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ selected: {
17
+ type: PropType<string[]>;
18
+ default: () => any[];
19
+ };
20
+ conditions: {
21
+ type: PropType<ICommonItem[]>;
22
+ };
23
+ footerBtns: {
24
+ type: PropType<IMenuFooterItem[]>;
25
+ default: () => any[];
26
+ };
27
+ }, {
28
+ handleClick: (item: ICommonItem) => void;
29
+ handleClickCondition: (item: ICommonItem) => void;
30
+ handleClickFooterBtn: (item: IMenuFooterItem) => void;
31
+ filterList: import("vue").ComputedRef<ICommonItem[]>;
32
+ getSearchNode: (item: ICommonItem) => string | (string | VNode)[];
33
+ localFooterBtns: import("vue").ComputedRef<IMenuFooterItem[] | ({
34
+ id: string;
35
+ name: string;
36
+ disabled?: undefined;
37
+ } | {
38
+ id: string;
39
+ name: string;
40
+ disabled: boolean;
41
+ })[]>;
42
+ resolveClassName: (cls: string) => string;
43
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectItem" | "selectCondition" | "footerClick")[], "selectItem" | "selectCondition" | "footerClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
+ list: {
45
+ type: PropType<ICommonItem[]>;
46
+ };
47
+ hoverId: StringConstructor;
48
+ keyword: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ multiple: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ selected: {
57
+ type: PropType<string[]>;
58
+ default: () => any[];
59
+ };
60
+ conditions: {
61
+ type: PropType<ICommonItem[]>;
62
+ };
63
+ footerBtns: {
64
+ type: PropType<IMenuFooterItem[]>;
65
+ default: () => any[];
66
+ };
67
+ }>> & {
68
+ onSelectItem?: (...args: any[]) => any;
69
+ onSelectCondition?: (...args: any[]) => any;
70
+ onFooterClick?: (...args: any[]) => any;
71
+ }, {
72
+ multiple: boolean;
73
+ selected: string[];
74
+ keyword: string;
75
+ footerBtns: IMenuFooterItem[];
76
+ }, {}>;
77
+ export default _default;