bkui-vue 0.0.1-beta.46 → 0.0.1-beta.461

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