bkui-vue 0.0.1-beta.40 → 0.0.1-beta.401

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