bkui-vue 0.0.1-beta.38 → 0.0.1-beta.381

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 (719) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +161 -36
  3. package/dist/index.esm.js +32274 -13030
  4. package/dist/index.umd.js +161 -36
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +123 -0
  11. package/lib/affix/index.d.ts +143 -0
  12. package/lib/affix/index.js +1 -0
  13. package/lib/alert/alert.css +81 -0
  14. package/lib/alert/alert.d.ts +62 -0
  15. package/lib/alert/alert.less +119 -0
  16. package/lib/alert/alert.variable.css +201 -0
  17. package/lib/alert/index.d.ts +180 -0
  18. package/lib/alert/index.js +1 -0
  19. package/lib/animate-number/animate-number.d.ts +27 -0
  20. package/lib/animate-number/index.d.ts +97 -0
  21. package/lib/animate-number/index.js +1 -0
  22. package/lib/backtop/backtop.css +50 -0
  23. package/lib/backtop/backtop.d.ts +60 -0
  24. package/lib/backtop/backtop.less +26 -0
  25. package/lib/backtop/backtop.variable.css +170 -0
  26. package/lib/backtop/index.d.ts +166 -0
  27. package/lib/backtop/index.js +1 -0
  28. package/lib/badge/badge.css +121 -0
  29. package/lib/badge/badge.d.ts +112 -0
  30. package/lib/badge/badge.less +136 -0
  31. package/lib/badge/badge.variable.css +241 -0
  32. package/lib/badge/index.d.ts +267 -0
  33. package/lib/badge/index.js +1 -0
  34. package/lib/breadcrumb/breadcrumb-item.d.ts +36 -0
  35. package/lib/breadcrumb/breadcrumb.css +119 -0
  36. package/lib/breadcrumb/breadcrumb.d.ts +54 -0
  37. package/lib/breadcrumb/breadcrumb.less +65 -0
  38. package/lib/breadcrumb/breadcrumb.variable.css +239 -0
  39. package/lib/breadcrumb/index.d.ts +194 -0
  40. package/lib/breadcrumb/index.js +1 -0
  41. package/lib/breadcrumb/props.d.ts +4 -0
  42. package/lib/button/button-group.d.ts +6 -0
  43. package/lib/button/button.css +300 -0
  44. package/lib/button/button.d.ts +163 -0
  45. package/lib/button/button.less +225 -0
  46. package/lib/button/button.variable.css +420 -0
  47. package/lib/button/index.d.ts +256 -0
  48. package/lib/button/index.js +1 -0
  49. package/lib/card/card.css +158 -0
  50. package/lib/card/card.d.ts +110 -0
  51. package/lib/card/card.less +92 -0
  52. package/lib/card/card.variable.css +278 -0
  53. package/lib/card/index.d.ts +283 -0
  54. package/lib/card/index.js +1 -0
  55. package/lib/cascader/cascader-panel.d.ts +100 -0
  56. package/lib/cascader/cascader.css +173 -0
  57. package/lib/cascader/cascader.d.ts +303 -0
  58. package/lib/cascader/cascader.less +196 -0
  59. package/lib/cascader/cascader.variable.css +293 -0
  60. package/lib/cascader/index.d.ts +868 -0
  61. package/lib/cascader/index.js +1 -0
  62. package/lib/cascader/interface.d.ts +51 -0
  63. package/lib/cascader/node.d.ts +31 -0
  64. package/lib/cascader/store.d.ts +23 -0
  65. package/lib/checkbox/checkbox-group.d.ts +64 -0
  66. package/lib/checkbox/checkbox.css +100 -0
  67. package/lib/checkbox/checkbox.d.ts +126 -0
  68. package/lib/checkbox/checkbox.less +128 -0
  69. package/lib/checkbox/checkbox.variable.css +220 -0
  70. package/lib/checkbox/common.d.ts +14 -0
  71. package/lib/checkbox/index.d.ts +293 -0
  72. package/lib/checkbox/index.js +1 -0
  73. package/lib/checkbox/type.d.ts +15 -0
  74. package/lib/code-diff/code-diff.css +206 -0
  75. package/lib/code-diff/code-diff.d.ts +80 -0
  76. package/lib/code-diff/code-diff.less +273 -0
  77. package/lib/code-diff/code-diff.variable.css +326 -0
  78. package/lib/code-diff/index.d.ts +154 -0
  79. package/lib/code-diff/index.js +1 -0
  80. package/lib/collapse/collapse-panel.d.ts +67 -0
  81. package/lib/collapse/collapse.css +46 -0
  82. package/lib/collapse/collapse.d.ts +65 -0
  83. package/lib/collapse/collapse.less +62 -0
  84. package/lib/collapse/collapse.variable.css +166 -0
  85. package/lib/collapse/index.d.ts +258 -0
  86. package/lib/collapse/index.js +1 -0
  87. package/lib/collapse/props.d.ts +79 -0
  88. package/lib/collapse/utils.d.ts +11 -0
  89. package/lib/color-picker/color-picker.css +275 -0
  90. package/lib/color-picker/color-picker.d.ts +144 -0
  91. package/lib/color-picker/color-picker.less +325 -0
  92. package/lib/color-picker/color-picker.variable.css +395 -0
  93. package/lib/color-picker/components/color-input.d.ts +42 -0
  94. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  95. package/lib/color-picker/components/input-container.d.ts +42 -0
  96. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  97. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  98. package/lib/color-picker/index.d.ts +254 -0
  99. package/lib/color-picker/index.js +1 -0
  100. package/lib/color-picker/utils.d.ts +37 -0
  101. package/lib/components.d.ts +59 -0
  102. package/lib/components.js +1 -0
  103. package/lib/container/col.d.ts +51 -0
  104. package/lib/container/container.css +91 -0
  105. package/lib/container/container.d.ts +83 -0
  106. package/lib/container/container.less +20 -0
  107. package/lib/container/container.variable.css +211 -0
  108. package/lib/container/index.d.ts +223 -0
  109. package/lib/container/index.js +1 -0
  110. package/lib/container/row.d.ts +4 -0
  111. package/lib/date-picker/base/confirm.d.ts +74 -0
  112. package/lib/date-picker/base/date-table.d.ts +96 -0
  113. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  114. package/lib/date-picker/base/time-spinner.d.ts +151 -0
  115. package/lib/date-picker/date-picker.css +434 -0
  116. package/lib/date-picker/date-picker.d.ts +323 -0
  117. package/lib/date-picker/date-picker.less +558 -0
  118. package/lib/date-picker/date-picker.variable.css +554 -0
  119. package/lib/date-picker/fecha.d.ts +6 -0
  120. package/lib/date-picker/index.d.ts +780 -0
  121. package/lib/date-picker/index.js +1 -0
  122. package/lib/date-picker/interface.d.ts +32 -0
  123. package/lib/date-picker/panel/date-range.d.ts +309 -0
  124. package/lib/date-picker/panel/date.d.ts +206 -0
  125. package/lib/date-picker/panel/time-range.d.ts +489 -0
  126. package/lib/date-picker/panel/time.d.ts +448 -0
  127. package/lib/date-picker/props.d.ts +161 -0
  128. package/lib/date-picker/time-picker.d.ts +381 -0
  129. package/lib/date-picker/utils.d.ts +117 -0
  130. package/lib/dialog/dialog.css +190 -0
  131. package/lib/dialog/dialog.d.ts +311 -0
  132. package/lib/dialog/dialog.less +153 -0
  133. package/lib/dialog/dialog.variable.css +310 -0
  134. package/lib/dialog/index.d.ts +722 -0
  135. package/lib/dialog/index.js +1 -0
  136. package/lib/dialog/props.d.ts +130 -0
  137. package/lib/directives/clickoutside.d.ts +3 -0
  138. package/lib/directives/ellipsis.d.ts +7 -0
  139. package/lib/directives/index.d.ts +5 -0
  140. package/lib/directives/index.js +2 -0
  141. package/lib/directives/index.js.LICENSE.txt +14 -0
  142. package/lib/directives/mousewheel.d.ts +3 -0
  143. package/lib/directives/tooltips.d.ts +18 -0
  144. package/lib/dist.index.js +1 -0
  145. package/lib/divider/divider.css +38 -0
  146. package/lib/divider/divider.d.ts +48 -0
  147. package/lib/divider/divider.less +53 -0
  148. package/lib/divider/divider.variable.css +158 -0
  149. package/lib/divider/index.d.ts +142 -0
  150. package/lib/divider/index.js +1 -0
  151. package/lib/divider/props.d.ts +21 -0
  152. package/lib/dropdown/dropdown-item.d.ts +19 -0
  153. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  154. package/lib/dropdown/dropdown.css +49 -0
  155. package/lib/dropdown/dropdown.d.ts +93 -0
  156. package/lib/dropdown/dropdown.less +67 -0
  157. package/lib/dropdown/dropdown.variable.css +169 -0
  158. package/lib/dropdown/index.d.ts +256 -0
  159. package/lib/dropdown/index.js +1 -0
  160. package/lib/exception/exception.css +58 -0
  161. package/lib/exception/exception.d.ts +33 -0
  162. package/lib/exception/exception.less +76 -0
  163. package/lib/exception/exception.variable.css +178 -0
  164. package/lib/exception/index.d.ts +111 -0
  165. package/lib/exception/index.js +1 -0
  166. package/lib/exception/typings/index.d.ts +4 -0
  167. package/lib/fixed-navbar/fixed-navbar.css +42 -0
  168. package/lib/fixed-navbar/fixed-navbar.d.ts +48 -0
  169. package/lib/fixed-navbar/fixed-navbar.less +53 -0
  170. package/lib/fixed-navbar/fixed-navbar.variable.css +162 -0
  171. package/lib/fixed-navbar/index.d.ts +147 -0
  172. package/lib/fixed-navbar/index.js +1 -0
  173. package/lib/form/compose-form-item.d.ts +16 -0
  174. package/lib/form/form-item.d.ts +160 -0
  175. package/lib/form/form.css +137 -0
  176. package/lib/form/form.d.ts +88 -0
  177. package/lib/form/form.less +170 -0
  178. package/lib/form/form.variable.css +257 -0
  179. package/lib/form/index.d.ts +319 -0
  180. package/lib/form/index.js +1 -0
  181. package/lib/form/type.d.ts +22 -0
  182. package/lib/form/utils.d.ts +2 -0
  183. package/lib/form/validator.d.ts +9 -0
  184. package/lib/icon/angle-double-down-line.d.ts +4 -0
  185. package/lib/icon/angle-double-down-line.js +1 -0
  186. package/lib/icon/angle-double-left-line.d.ts +4 -0
  187. package/lib/icon/angle-double-left-line.js +1 -0
  188. package/lib/icon/angle-double-left.d.ts +4 -0
  189. package/lib/icon/angle-double-left.js +1 -0
  190. package/lib/icon/angle-double-right-line.d.ts +4 -0
  191. package/lib/icon/angle-double-right-line.js +1 -0
  192. package/lib/icon/angle-double-right.d.ts +4 -0
  193. package/lib/icon/angle-double-right.js +1 -0
  194. package/lib/icon/angle-double-up-line.d.ts +4 -0
  195. package/lib/icon/angle-double-up-line.js +1 -0
  196. package/lib/icon/angle-down-fill.d.ts +4 -0
  197. package/lib/icon/angle-down-fill.js +1 -0
  198. package/lib/icon/angle-down-line.d.ts +4 -0
  199. package/lib/icon/angle-down-line.js +1 -0
  200. package/lib/icon/angle-down.d.ts +4 -0
  201. package/lib/icon/angle-down.js +1 -0
  202. package/lib/icon/angle-left.d.ts +4 -0
  203. package/lib/icon/angle-left.js +1 -0
  204. package/lib/icon/angle-right.d.ts +4 -0
  205. package/lib/icon/angle-right.js +1 -0
  206. package/lib/icon/angle-up-fill.d.ts +4 -0
  207. package/lib/icon/angle-up-fill.js +1 -0
  208. package/lib/icon/angle-up.d.ts +4 -0
  209. package/lib/icon/angle-up.js +1 -0
  210. package/lib/icon/archive-fill.d.ts +4 -0
  211. package/lib/icon/archive-fill.js +1 -0
  212. package/lib/icon/arrows-left.d.ts +4 -0
  213. package/lib/icon/arrows-left.js +1 -0
  214. package/lib/icon/arrows-right.d.ts +4 -0
  215. package/lib/icon/arrows-right.js +1 -0
  216. package/lib/icon/audio-fill.d.ts +4 -0
  217. package/lib/icon/audio-fill.js +1 -0
  218. package/lib/icon/bk.d.ts +4 -0
  219. package/lib/icon/bk.js +1 -0
  220. package/lib/icon/circle.d.ts +4 -0
  221. package/lib/icon/circle.js +1 -0
  222. package/lib/icon/close-line.d.ts +4 -0
  223. package/lib/icon/close-line.js +1 -0
  224. package/lib/icon/close.d.ts +4 -0
  225. package/lib/icon/close.js +1 -0
  226. package/lib/icon/code.d.ts +4 -0
  227. package/lib/icon/code.js +1 -0
  228. package/lib/icon/cog-shape.d.ts +4 -0
  229. package/lib/icon/cog-shape.js +1 -0
  230. package/lib/icon/collapse-left.d.ts +4 -0
  231. package/lib/icon/collapse-left.js +1 -0
  232. package/lib/icon/copy.d.ts +4 -0
  233. package/lib/icon/copy.js +1 -0
  234. package/lib/icon/data-shape.d.ts +4 -0
  235. package/lib/icon/data-shape.js +1 -0
  236. package/lib/icon/del.d.ts +4 -0
  237. package/lib/icon/del.js +1 -0
  238. package/lib/icon/doc-fill.d.ts +4 -0
  239. package/lib/icon/doc-fill.js +1 -0
  240. package/lib/icon/done.d.ts +4 -0
  241. package/lib/icon/done.js +1 -0
  242. package/lib/icon/down-shape.d.ts +4 -0
  243. package/lib/icon/down-shape.js +1 -0
  244. package/lib/icon/down-small.d.ts +4 -0
  245. package/lib/icon/down-small.js +1 -0
  246. package/lib/icon/edit-line.d.ts +4 -0
  247. package/lib/icon/edit-line.js +1 -0
  248. package/lib/icon/ellipsis.d.ts +4 -0
  249. package/lib/icon/ellipsis.js +1 -0
  250. package/lib/icon/enlarge-line.d.ts +4 -0
  251. package/lib/icon/enlarge-line.js +1 -0
  252. package/lib/icon/error.d.ts +4 -0
  253. package/lib/icon/error.js +1 -0
  254. package/lib/icon/excel-fill.d.ts +4 -0
  255. package/lib/icon/excel-fill.js +1 -0
  256. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  257. package/lib/icon/exclamation-circle-shape.js +1 -0
  258. package/lib/icon/eye.d.ts +4 -0
  259. package/lib/icon/eye.js +1 -0
  260. package/lib/icon/filliscreen-line.d.ts +4 -0
  261. package/lib/icon/filliscreen-line.js +1 -0
  262. package/lib/icon/folder-open.d.ts +4 -0
  263. package/lib/icon/folder-open.js +1 -0
  264. package/lib/icon/folder-shape-open.d.ts +4 -0
  265. package/lib/icon/folder-shape-open.js +1 -0
  266. package/lib/icon/folder-shape.d.ts +4 -0
  267. package/lib/icon/folder-shape.js +1 -0
  268. package/lib/icon/folder.d.ts +4 -0
  269. package/lib/icon/folder.js +1 -0
  270. package/lib/icon/funnel.d.ts +4 -0
  271. package/lib/icon/funnel.js +1 -0
  272. package/lib/icon/help-document-fill.d.ts +4 -0
  273. package/lib/icon/help-document-fill.js +1 -0
  274. package/lib/icon/help-fill.d.ts +4 -0
  275. package/lib/icon/help-fill.js +1 -0
  276. package/lib/icon/help.d.ts +4 -0
  277. package/lib/icon/help.js +1 -0
  278. package/lib/icon/icon.d.ts +12 -0
  279. package/lib/icon/image-fill.d.ts +4 -0
  280. package/lib/icon/image-fill.js +1 -0
  281. package/lib/icon/img-error.d.ts +4 -0
  282. package/lib/icon/img-placehoulder.d.ts +4 -0
  283. package/lib/icon/img-placehoulder.js +1 -0
  284. package/lib/icon/index.d.ts +79 -0
  285. package/lib/icon/index.js +1 -0
  286. package/lib/icon/info-line.d.ts +4 -0
  287. package/lib/icon/info-line.js +1 -0
  288. package/lib/icon/info.d.ts +4 -0
  289. package/lib/icon/info.js +1 -0
  290. package/lib/icon/left-shape.d.ts +4 -0
  291. package/lib/icon/left-shape.js +1 -0
  292. package/lib/icon/left-turn-line.d.ts +4 -0
  293. package/lib/icon/left-turn-line.js +1 -0
  294. package/lib/icon/narrow-line.d.ts +4 -0
  295. package/lib/icon/narrow-line.js +1 -0
  296. package/lib/icon/original.d.ts +4 -0
  297. package/lib/icon/original.js +1 -0
  298. package/lib/icon/pdf-fill.d.ts +4 -0
  299. package/lib/icon/pdf-fill.js +1 -0
  300. package/lib/icon/play-shape.d.ts +4 -0
  301. package/lib/icon/play-shape.js +1 -0
  302. package/lib/icon/plus.d.ts +4 -0
  303. package/lib/icon/plus.js +1 -0
  304. package/lib/icon/ppt-fill.d.ts +4 -0
  305. package/lib/icon/ppt-fill.js +1 -0
  306. package/lib/icon/qq.d.ts +4 -0
  307. package/lib/icon/qq.js +1 -0
  308. package/lib/icon/right-shape.d.ts +4 -0
  309. package/lib/icon/right-shape.js +1 -0
  310. package/lib/icon/right-turn-line.d.ts +4 -0
  311. package/lib/icon/right-turn-line.js +1 -0
  312. package/lib/icon/search.d.ts +4 -0
  313. package/lib/icon/search.js +1 -0
  314. package/lib/icon/share.d.ts +4 -0
  315. package/lib/icon/share.js +1 -0
  316. package/lib/icon/spinner.d.ts +4 -0
  317. package/lib/icon/spinner.js +1 -0
  318. package/lib/icon/success.d.ts +4 -0
  319. package/lib/icon/success.js +1 -0
  320. package/lib/icon/switcher-loading.d.ts +4 -0
  321. package/lib/icon/switcher-loading.js +1 -0
  322. package/lib/icon/text-file.d.ts +4 -0
  323. package/lib/icon/text-file.js +1 -0
  324. package/lib/icon/text-fill.d.ts +4 -0
  325. package/lib/icon/text-fill.js +1 -0
  326. package/lib/icon/transfer.d.ts +4 -0
  327. package/lib/icon/transfer.js +1 -0
  328. package/lib/icon/tree-application-shape.d.ts +4 -0
  329. package/lib/icon/tree-application-shape.js +1 -0
  330. package/lib/icon/unfull-screen.d.ts +4 -0
  331. package/lib/icon/unfull-screen.js +1 -0
  332. package/lib/icon/unvisible.d.ts +4 -0
  333. package/lib/icon/unvisible.js +1 -0
  334. package/lib/icon/up-shape.d.ts +4 -0
  335. package/lib/icon/up-shape.js +1 -0
  336. package/lib/icon/upload.d.ts +4 -0
  337. package/lib/icon/upload.js +1 -0
  338. package/lib/icon/video-fill.d.ts +4 -0
  339. package/lib/icon/video-fill.js +1 -0
  340. package/lib/icon/warn.d.ts +4 -0
  341. package/lib/icon/warn.js +1 -0
  342. package/lib/icon/weixin.d.ts +4 -0
  343. package/lib/icon/weixin.js +1 -0
  344. package/lib/image/image-viewer.css +142 -0
  345. package/lib/image/image-viewer.d.ts +73 -0
  346. package/lib/image/image-viewer.less +168 -0
  347. package/lib/image/image-viewer.variable.css +142 -0
  348. package/lib/image/image.css +37 -0
  349. package/lib/image/image.d.ts +93 -0
  350. package/lib/image/image.less +44 -0
  351. package/lib/image/image.variable.css +37 -0
  352. package/lib/image/index.d.ts +246 -0
  353. package/lib/image/index.js +1 -0
  354. package/lib/image/props.d.ts +71 -0
  355. package/lib/index.d.ts +4 -0
  356. package/lib/index.js +1 -0
  357. package/lib/info-box/index.d.ts +6 -0
  358. package/lib/info-box/index.js +1 -0
  359. package/lib/info-box/info-box.css +37 -0
  360. package/lib/info-box/info-box.d.ts +26 -0
  361. package/lib/info-box/info-box.less +51 -0
  362. package/lib/info-box/info-box.variable.css +157 -0
  363. package/lib/input/index.d.ts +528 -0
  364. package/lib/input/index.js +1 -0
  365. package/lib/input/input.css +351 -0
  366. package/lib/input/input.d.ts +337 -0
  367. package/lib/input/input.less +306 -0
  368. package/lib/input/input.variable.css +471 -0
  369. package/lib/link/index.d.ts +172 -0
  370. package/lib/link/index.js +1 -0
  371. package/lib/link/link.css +55 -0
  372. package/lib/link/link.d.ts +60 -0
  373. package/lib/link/link.less +76 -0
  374. package/lib/link/link.variable.css +175 -0
  375. package/lib/loading/index.d.ts +257 -0
  376. package/lib/loading/index.js +1 -0
  377. package/lib/loading/loading.css +305 -0
  378. package/lib/loading/loading.d.ts +160 -0
  379. package/lib/loading/loading.less +193 -0
  380. package/lib/loading/loading.variable.css +425 -0
  381. package/lib/menu/index.d.ts +180 -0
  382. package/lib/menu/index.js +1 -0
  383. package/lib/menu/menu-group.d.ts +14 -0
  384. package/lib/menu/menu-item.d.ts +16 -0
  385. package/lib/menu/menu.css +233 -0
  386. package/lib/menu/menu.d.ts +55 -0
  387. package/lib/menu/menu.less +180 -0
  388. package/lib/menu/menu.variable.css +353 -0
  389. package/lib/menu/submenu.css +3 -0
  390. package/lib/menu/submenu.d.ts +22 -0
  391. package/lib/menu/submenu.less +5 -0
  392. package/lib/menu/submenu.variable.css +123 -0
  393. package/lib/menu/utils.d.ts +41 -0
  394. package/lib/message/index.d.ts +2 -0
  395. package/lib/message/index.js +1 -0
  396. package/lib/message/message.css +74 -0
  397. package/lib/message/message.less +87 -0
  398. package/lib/message/message.variable.css +194 -0
  399. package/lib/message/messageConstructor.d.ts +109 -0
  400. package/lib/modal/index.d.ts +592 -0
  401. package/lib/modal/index.js +1 -0
  402. package/lib/modal/modal.css +73 -0
  403. package/lib/modal/modal.d.ts +209 -0
  404. package/lib/modal/modal.less +48 -0
  405. package/lib/modal/modal.variable.css +193 -0
  406. package/lib/modal/props.mixin.d.ts +87 -0
  407. package/lib/navigation/index.d.ts +311 -0
  408. package/lib/navigation/index.js +1 -0
  409. package/lib/navigation/navigation-title.d.ts +25 -0
  410. package/lib/navigation/navigation.css +184 -0
  411. package/lib/navigation/navigation.d.ts +120 -0
  412. package/lib/navigation/navigation.less +210 -0
  413. package/lib/navigation/navigation.variable.css +304 -0
  414. package/lib/notify/index.d.ts +2 -0
  415. package/lib/notify/index.js +1 -0
  416. package/lib/notify/notify.css +69 -0
  417. package/lib/notify/notify.less +81 -0
  418. package/lib/notify/notify.variable.css +189 -0
  419. package/lib/notify/notifyConstructor.d.ts +132 -0
  420. package/lib/overflow-title/components/OverflowTitle.d.ts +38 -0
  421. package/lib/overflow-title/directive/overflowTitle.d.ts +3 -0
  422. package/lib/overflow-title/index.d.ts +129 -0
  423. package/lib/overflow-title/index.js +1 -0
  424. package/lib/overflow-title/overflow.css +11 -0
  425. package/lib/overflow-title/overflow.less +13 -0
  426. package/lib/overflow-title/overflow.variable.css +11 -0
  427. package/lib/overflow-title/props.d.ts +16 -0
  428. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  429. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  430. package/lib/pagination/index.d.ts +410 -0
  431. package/lib/pagination/index.js +1 -0
  432. package/lib/pagination/pagination.css +205 -0
  433. package/lib/pagination/pagination.d.ts +230 -0
  434. package/lib/pagination/pagination.less +230 -0
  435. package/lib/pagination/pagination.variable.css +325 -0
  436. package/lib/pagination/type.d.ts +6 -0
  437. package/lib/pagination/use-limit.d.ts +8 -0
  438. package/lib/pagination/use-list.d.ts +8 -0
  439. package/lib/pagination/use-small-list.d.ts +5 -0
  440. package/lib/pagination/use-total.d.ts +5 -0
  441. package/lib/plugin-popover/index.d.ts +27 -0
  442. package/lib/plugin-popover/index.js +1 -0
  443. package/lib/plugins/index.d.ts +1 -0
  444. package/lib/plugins/index.js +1 -0
  445. package/lib/popover/arrow.d.ts +2 -0
  446. package/lib/popover/const.d.ts +16 -0
  447. package/lib/popover/content.d.ts +32 -0
  448. package/lib/popover/index.d.ts +653 -0
  449. package/lib/popover/index.js +1 -0
  450. package/lib/popover/plugin-popover.d.ts +12 -0
  451. package/lib/popover/popover.css +25 -0
  452. package/lib/popover/popover.d.ts +277 -0
  453. package/lib/popover/popover.less +35 -0
  454. package/lib/popover/popover.variable.css +145 -0
  455. package/lib/popover/props.d.ts +146 -0
  456. package/lib/popover/reference.d.ts +2 -0
  457. package/lib/popover/root.d.ts +16 -0
  458. package/lib/popover/use-floating.d.ts +34 -0
  459. package/lib/popover/use-platform.d.ts +30 -0
  460. package/lib/popover/use-popover-init.d.ts +23 -0
  461. package/lib/popover/use-popper-id.d.ts +6 -0
  462. package/lib/popover/utils.d.ts +2 -0
  463. package/lib/popover2/index.d.ts +44 -0
  464. package/lib/popover2/index.js +1 -0
  465. package/lib/popover2/popover.d.ts +2 -0
  466. package/lib/preset.d.ts +7 -0
  467. package/lib/preset.js +1 -0
  468. package/lib/process/index.d.ts +205 -0
  469. package/lib/process/index.js +1 -0
  470. package/lib/process/process.css +151 -0
  471. package/lib/process/process.d.ts +131 -0
  472. package/lib/process/process.less +195 -0
  473. package/lib/process/process.variable.css +271 -0
  474. package/lib/progress/circle.d.ts +6 -0
  475. package/lib/progress/index.d.ts +398 -0
  476. package/lib/progress/index.js +1 -0
  477. package/lib/progress/line.d.ts +6 -0
  478. package/lib/progress/progress.css +145 -0
  479. package/lib/progress/progress.d.ts +171 -0
  480. package/lib/progress/progress.less +90 -0
  481. package/lib/progress/progress.variable.css +265 -0
  482. package/lib/radio/common.d.ts +13 -0
  483. package/lib/radio/index.d.ts +288 -0
  484. package/lib/radio/index.js +1 -0
  485. package/lib/radio/radio-button.d.ts +90 -0
  486. package/lib/radio/radio-group.d.ts +57 -0
  487. package/lib/radio/radio.css +139 -0
  488. package/lib/radio/radio.d.ts +87 -0
  489. package/lib/radio/radio.less +177 -0
  490. package/lib/radio/radio.variable.css +259 -0
  491. package/lib/radio/type.d.ts +14 -0
  492. package/lib/rate/index.d.ts +136 -0
  493. package/lib/rate/index.js +1 -0
  494. package/lib/rate/rate.css +10 -0
  495. package/lib/rate/rate.d.ts +43 -0
  496. package/lib/rate/rate.less +11 -0
  497. package/lib/rate/rate.variable.css +10 -0
  498. package/lib/rate/star.css +24 -0
  499. package/lib/rate/star.d.ts +74 -0
  500. package/lib/rate/star.less +29 -0
  501. package/lib/rate/star.variable.css +24 -0
  502. package/lib/resize-layout/index.d.ts +336 -0
  503. package/lib/resize-layout/index.js +1 -0
  504. package/lib/resize-layout/resize-layout.css +177 -0
  505. package/lib/resize-layout/resize-layout.d.ts +127 -0
  506. package/lib/resize-layout/resize-layout.less +217 -0
  507. package/lib/resize-layout/resize-layout.variable.css +297 -0
  508. package/lib/search-select/index.d.ts +823 -0
  509. package/lib/search-select/index.js +1 -0
  510. package/lib/search-select/input.d.ts +89 -0
  511. package/lib/search-select/menu.d.ts +83 -0
  512. package/lib/search-select/search-select.css +424 -0
  513. package/lib/search-select/search-select.d.ts +342 -0
  514. package/lib/search-select/search-select.less +380 -0
  515. package/lib/search-select/search-select.variable.css +544 -0
  516. package/lib/search-select/selected.d.ts +143 -0
  517. package/lib/search-select/utils.d.ts +88 -0
  518. package/lib/select/common.d.ts +26 -0
  519. package/lib/select/index.d.ts +2039 -0
  520. package/lib/select/index.js +1 -0
  521. package/lib/select/option.d.ts +37 -0
  522. package/lib/select/optionGroup.d.ts +54 -0
  523. package/lib/select/select.css +399 -0
  524. package/lib/select/select.d.ts +753 -0
  525. package/lib/select/select.less +443 -0
  526. package/lib/select/select.variable.css +519 -0
  527. package/lib/select/selectTagInput.d.ts +93 -0
  528. package/lib/select/type.d.ts +39 -0
  529. package/lib/shared/dom.d.ts +3 -0
  530. package/lib/shared/helper.d.ts +101 -0
  531. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  532. package/lib/shared/hooks/use-form.d.ts +2 -0
  533. package/lib/shared/index.d.ts +74 -0
  534. package/lib/shared/index.js +1 -0
  535. package/lib/shared/mask-manager.d.ts +80 -0
  536. package/lib/shared/pop-manager.d.ts +38 -0
  537. package/lib/shared/popover.d.ts +131 -0
  538. package/lib/shared/scrollbar-width.d.ts +1 -0
  539. package/lib/shared/token.d.ts +4 -0
  540. package/lib/shared/utils.d.ts +25 -0
  541. package/lib/shared/vue-types.d.ts +213 -0
  542. package/lib/shared/z-index-manager.d.ts +93 -0
  543. package/lib/sideslider/index.d.ts +477 -0
  544. package/lib/sideslider/index.js +1 -0
  545. package/lib/sideslider/sideslider.css +114 -0
  546. package/lib/sideslider/sideslider.d.ts +203 -0
  547. package/lib/sideslider/sideslider.less +145 -0
  548. package/lib/sideslider/sideslider.variable.css +234 -0
  549. package/lib/slider/index.d.ts +440 -0
  550. package/lib/slider/index.js +1 -0
  551. package/lib/slider/slider-button.d.ts +81 -0
  552. package/lib/slider/slider.css +149 -0
  553. package/lib/slider/slider.d.ts +201 -0
  554. package/lib/slider/slider.less +179 -0
  555. package/lib/slider/slider.variable.css +269 -0
  556. package/lib/steps/index.d.ts +250 -0
  557. package/lib/steps/index.js +1 -0
  558. package/lib/steps/steps.css +300 -0
  559. package/lib/steps/steps.d.ts +161 -0
  560. package/lib/steps/steps.less +345 -0
  561. package/lib/steps/steps.variable.css +420 -0
  562. package/lib/styles/index.d.ts +53 -0
  563. package/lib/styles/mixins/animate.css +21 -0
  564. package/lib/styles/mixins/animate.less +27 -0
  565. package/lib/styles/mixins/animate.variable.css +21 -0
  566. package/lib/styles/mixins/clearfix.css +8 -0
  567. package/lib/styles/mixins/clearfix.less +10 -0
  568. package/lib/styles/mixins/clearfix.variable.css +8 -0
  569. package/lib/styles/mixins/ellipsis.less +8 -0
  570. package/lib/styles/mixins/mixins.css +72 -0
  571. package/lib/styles/mixins/mixins.less +5 -0
  572. package/lib/styles/mixins/mixins.variable.css +72 -0
  573. package/lib/styles/mixins/popper.css +43 -0
  574. package/lib/styles/mixins/popper.less +53 -0
  575. package/lib/styles/mixins/popper.variable.css +163 -0
  576. package/lib/styles/mixins/scroll.css +17 -0
  577. package/lib/styles/mixins/scroll.less +22 -0
  578. package/lib/styles/mixins/scroll.variable.css +137 -0
  579. package/lib/styles/mixins/size.less +13 -0
  580. package/lib/styles/reset.css +309 -0
  581. package/lib/styles/reset.less +339 -0
  582. package/lib/styles/reset.variable.css +309 -0
  583. package/lib/styles/themes/themes.less +162 -0
  584. package/lib/swiper/index.d.ts +181 -0
  585. package/lib/swiper/index.js +1 -0
  586. package/lib/swiper/swiper.css +91 -0
  587. package/lib/swiper/swiper.d.ts +65 -0
  588. package/lib/swiper/swiper.less +107 -0
  589. package/lib/swiper/swiper.variable.css +91 -0
  590. package/lib/switcher/index.d.ts +298 -0
  591. package/lib/switcher/index.js +1 -0
  592. package/lib/switcher/switcher.css +323 -0
  593. package/lib/switcher/switcher.d.ts +119 -0
  594. package/lib/switcher/switcher.less +337 -0
  595. package/lib/switcher/switcher.variable.css +443 -0
  596. package/lib/tab/index.d.ts +435 -0
  597. package/lib/tab/index.js +1 -0
  598. package/lib/tab/props.d.ts +207 -0
  599. package/lib/tab/tab-nav.d.ts +169 -0
  600. package/lib/tab/tab-panel.d.ts +68 -0
  601. package/lib/tab/tab.css +223 -0
  602. package/lib/tab/tab.d.ts +139 -0
  603. package/lib/tab/tab.less +285 -0
  604. package/lib/tab/tab.variable.css +343 -0
  605. package/lib/table/components/index.d.ts +3 -0
  606. package/lib/table/components/table-cell.d.ts +38 -0
  607. package/lib/table/components/table-column.d.ts +137 -0
  608. package/lib/table/components/table-row.d.ts +2 -0
  609. package/lib/table/const.d.ts +122 -0
  610. package/lib/table/index.d.ts +1141 -0
  611. package/lib/table/index.js +1 -0
  612. package/lib/table/plugins/body-empty.d.ts +40 -0
  613. package/lib/table/plugins/col-group.d.ts +38 -0
  614. package/lib/table/plugins/common.d.ts +6 -0
  615. package/lib/table/plugins/head-filter.css +84 -0
  616. package/lib/table/plugins/head-filter.d.ts +26 -0
  617. package/lib/table/plugins/head-filter.less +110 -0
  618. package/lib/table/plugins/head-filter.variable.css +204 -0
  619. package/lib/table/plugins/head-sort.css +25 -0
  620. package/lib/table/plugins/head-sort.d.ts +22 -0
  621. package/lib/table/plugins/head-sort.less +31 -0
  622. package/lib/table/plugins/head-sort.variable.css +145 -0
  623. package/lib/table/plugins/index.d.ts +5 -0
  624. package/lib/table/plugins/settings.css +145 -0
  625. package/lib/table/plugins/settings.d.ts +37 -0
  626. package/lib/table/plugins/settings.less +179 -0
  627. package/lib/table/plugins/settings.variable.css +265 -0
  628. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  629. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  630. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  631. package/lib/table/plugins/use-pagination.d.ts +16 -0
  632. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  633. package/lib/table/props.d.ts +434 -0
  634. package/lib/table/render.d.ts +121 -0
  635. package/lib/table/table.css +1273 -0
  636. package/lib/table/table.d.ts +350 -0
  637. package/lib/table/table.less +365 -0
  638. package/lib/table/table.variable.css +1393 -0
  639. package/lib/table/use-column.d.ts +11 -0
  640. package/lib/table/use-common.d.ts +97 -0
  641. package/lib/table/utils.d.ts +129 -0
  642. package/lib/table-column/index.d.ts +325 -0
  643. package/lib/table-column/index.js +1 -0
  644. package/lib/tag/index.d.ts +229 -0
  645. package/lib/tag/index.js +1 -0
  646. package/lib/tag/tag.css +130 -0
  647. package/lib/tag/tag.d.ts +84 -0
  648. package/lib/tag/tag.less +149 -0
  649. package/lib/tag/tag.variable.css +250 -0
  650. package/lib/tag-input/common.d.ts +36 -0
  651. package/lib/tag-input/index.d.ts +1349 -0
  652. package/lib/tag-input/index.js +1 -0
  653. package/lib/tag-input/list-tag-render.d.ts +44 -0
  654. package/lib/tag-input/tag-input.css +205 -0
  655. package/lib/tag-input/tag-input.d.ts +631 -0
  656. package/lib/tag-input/tag-input.less +248 -0
  657. package/lib/tag-input/tag-input.variable.css +325 -0
  658. package/lib/tag-input/tag-props.d.ts +252 -0
  659. package/lib/tag-input/tag-render.d.ts +64 -0
  660. package/lib/time-picker/index.d.ts +904 -0
  661. package/lib/time-picker/index.js +1 -0
  662. package/lib/time-picker/time-picker.css +215 -0
  663. package/lib/time-picker/time-picker.less +260 -0
  664. package/lib/time-picker/time-picker.variable.css +335 -0
  665. package/lib/timeline/index.d.ts +129 -0
  666. package/lib/timeline/index.js +1 -0
  667. package/lib/timeline/timeline.css +242 -0
  668. package/lib/timeline/timeline.d.ts +81 -0
  669. package/lib/timeline/timeline.less +252 -0
  670. package/lib/timeline/timeline.variable.css +362 -0
  671. package/lib/transfer/const.d.ts +5 -0
  672. package/lib/transfer/index.d.ts +365 -0
  673. package/lib/transfer/index.js +1 -0
  674. package/lib/transfer/props.d.ts +54 -0
  675. package/lib/transfer/transfer.css +161 -0
  676. package/lib/transfer/transfer.d.ts +160 -0
  677. package/lib/transfer/transfer.less +151 -0
  678. package/lib/transfer/transfer.variable.css +281 -0
  679. package/lib/tree/constant.d.ts +62 -0
  680. package/lib/tree/index.d.ts +647 -0
  681. package/lib/tree/index.js +1 -0
  682. package/lib/tree/props.d.ts +213 -0
  683. package/lib/tree/tree.css +218 -0
  684. package/lib/tree/tree.d.ts +283 -0
  685. package/lib/tree/tree.less +114 -0
  686. package/lib/tree/tree.variable.css +338 -0
  687. package/lib/tree/use-empty.d.ts +6 -0
  688. package/lib/tree/use-node-action.d.ts +12 -0
  689. package/lib/tree/use-node-async.d.ts +5 -0
  690. package/lib/tree/use-node-attribute.d.ts +33 -0
  691. package/lib/tree/use-node-drag.d.ts +3 -0
  692. package/lib/tree/use-search.d.ts +11 -0
  693. package/lib/tree/use-tree-init.d.ts +15 -0
  694. package/lib/tree/util.d.ts +68 -0
  695. package/lib/upload/index.d.ts +566 -0
  696. package/lib/upload/index.js +1 -0
  697. package/lib/upload/props.d.ts +111 -0
  698. package/lib/upload/upload-list.d.ts +47 -0
  699. package/lib/upload/upload-trigger.d.ts +51 -0
  700. package/lib/upload/upload.css +425 -0
  701. package/lib/upload/upload.d.ts +246 -0
  702. package/lib/upload/upload.less +464 -0
  703. package/lib/upload/upload.type.d.ts +78 -0
  704. package/lib/upload/upload.variable.css +545 -0
  705. package/lib/upload/use-ajax-upload.d.ts +3 -0
  706. package/lib/upload/use-file-handler.d.ts +44 -0
  707. package/lib/use-message.d.ts +2 -0
  708. package/lib/virtual-render/index.d.ts +602 -0
  709. package/lib/virtual-render/index.js +1 -0
  710. package/lib/virtual-render/props.d.ts +172 -0
  711. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  712. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  713. package/lib/virtual-render/virtual-render.css +33 -0
  714. package/lib/virtual-render/virtual-render.d.ts +266 -0
  715. package/lib/virtual-render/virtual-render.less +22 -0
  716. package/lib/virtual-render/virtual-render.variable.css +153 -0
  717. package/lib/volar.components.d.ts +101 -0
  718. package/package.json +59 -28
  719. package/LICENSE.txt +0 -22
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,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)=>(()=>{var a={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)}},4061:e=>{"use strict";e.exports=n},6870:e=>{"use strict";e.exports=r},5537:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return a[e](n,n.exports,l),n.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{"use strict";l.r(u),l.d(u,{BkSearchSelect:()=>j,default:()=>D});var e=l(4212),t=l(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 s=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,l=new ResizeObserver((function(){(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==n||e.offsetHeight!==r))&&f(e)})),u=o(e),d=u.detached,m=u.rendered;e.__resize_observer_triggered__=!1===d&&!1===m,e.__resize_observer__=l,l.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(s||(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),s++}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=l(4061),g=l(6870),_=l(7162),y=l.n(_);function w(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 b=l(5537),x=l.n(b);const k=(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[{id:"confirm",name:"确认"},{id:"cancel",name:"取消",disabled:!1}]}}},emits:["selectItem","selectCondition","footerClick"],setup:function(e,n){var r=n.emit;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)}}},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)(g.Done,{class:"is-selected"},null)])])}))]),this.multiple&&(null===(r=this.footerBtns)||void 0===r?void 0:r.length)&&(0,t.createVNode)("div",{class:"menu-footer"},[this.footerBtns.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 E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(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 S;!function(e){e.ALL="all",e.NEEDKEY="need-key"}(S||(S={}));var I,C=Symbol("SEARCH_SLECT_PROVIDER_KEY"),N=function(){return(0,t.inject)(C)};!function(e){e.DEFAULT="default",e.EDIT="edit"}(I||(I={}));var V=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]:"|";E(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)}))}}])&&L(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const z=(0,t.defineComponent)({name:"SearchSelectInput",directives:{clickoutside:m.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:I.DEFAULT},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["focus","add","delete"],setup:function(n,r){var i=r.emit,a=r.expose,o=(0,t.ref)(null),l=(0,t.ref)(null),u=(0,t.ref)(""),s=(0,t.ref)(!1),c=(0,t.ref)(!1),d=(0,t.ref)(!1),v=(0,t.ref)(n.defautUsingItem),h=(0,t.ref)(""),f=(0,t.ref)(!1),p=(0,e.debounce)(300,A),m=!1,g=(0,t.ref)([]),_=(0,t.ref)([]),b=N(),x=b.editKey,k=b.onValidate,E=b.valueSplitCode;function L(e){switch(e.code){case"ArrowDown":case"ArrowUp":C(e);break;case"Enter":case"NumpadEnter":!function(e){if(m){e.preventDefault();var t=_.value.find((function(e){return e.id===h.value}));t&&T(t)}}(e)}}function C(e){var t;e.preventDefault(),null===(t=o.value)||void 0===t||t.blur();for(var n=_.value.length,r=n,i=_.value.findIndex((function(e){return e.id===h.value}));r>=0;){i=(i="ArrowDown"===e.code?i+1:i-1)>n-1?0:i<0?n-1:i;var a=_.value[i];if(a&&!a.disabled){r=-1;var l=document.getElementById(a.id);return null==l||l.focus(),void(h.value=a.id)}r-=1}}function z(e){D(),e&&A()}function O(e){var t;return w(this,void 0,void 0,y().mark((function r(){var a,o,l,c;return y().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(v.value){r.next=16;break}if(u.value&&n.valueBehavior!==S.NEEDKEY){r.next=6;break}return r.abrupt("return");case 6:return a={id:u.value,name:u.value},r.next=9,F(a);case 9:if(r.sent){r.next=12;break}return r.abrupt("return");case 12:return i("add",new V(a,"text",E.value)),u.value="",A(),r.abrupt("return");case 16:if(null==(o=v.value.values)?void 0:o.length){r.next=43;break}if(!(null===(t=u.value)||void 0===t?void 0:t.length)){r.next=41;break}if(!u.value.includes(E.value)){r.next=29;break}return l=u.value.split(E.value),r.next=23,F({id:u.value,name:u.value});case 23:if(r.sent){r.next=26;break}return r.abrupt("return");case 26:l.forEach((function(e){return v.value.addValue({id:e,name:e})})),r.next=36;break;case 29:return c={id:u.value,name:u.value},r.next=32,F(c);case 32:if(r.sent){r.next=35;break}return r.abrupt("return");case 35:v.value.addValue(c);case 36:return i("add",v.value),u.value="",v.value=null,D(!0),r.abrupt("return");case 41:return s.value=!0,r.abrupt("return");case 43:return r.next=45,F();case 45:if(r.sent){r.next=48;break}return r.abrupt("return");case 48:B();case 49:case"end":return r.stop()}}),r)})))}function T(e,t){var r,i,a,l;return w(this,void 0,void 0,y().mark((function s(){var c,f;return y().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!(null===(r=e.value)||void 0===r?void 0:r.id)){s.next=8;break}if((n.valueBehavior!==S.NEEDKEY||!e.value)&&n.validateValues){s.next=8;break}return(c=new V(Object.assign(Object.assign({},e),{id:null!==(i=e.realId)&&void 0!==i?i:e.id}),t,E.value)).addValue(e.value),B(c),n.valueBehavior===S.NEEDKEY&&h.value&&D(!0),h.value="",s.abrupt("return");case 8:if(v.value&&(null===(a=null==o?void 0:o.value)||void 0===a?void 0:a.innerText)){s.next=16;break}return v.value=new V(e,t,E.value),u.value="",(f="condition"===t)&&B(),d.value=f||!!v.value.children.length,D(n.valueBehavior===S.NEEDKEY&&!!h.value),s.abrupt("return");case 16:if("condition"!==(null===(l=v.value)||void 0===l?void 0:l.type)){s.next=20;break}return v.value=new V(e,t,E.value),B(),s.abrupt("return");case 20:return v.value.addValue(e),s.next=23,F(e);case 23:if(s.sent){s.next=26;break}return s.abrupt("return");case 26:v.value.multiple||B(),n.valueBehavior===S.NEEDKEY&&v.value.multiple&&D();case 28:case"end":return s.stop()}}),s)})))}function F(e){return w(this,void 0,void 0,y().mark((function t(){var r,i,a,o;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v.value){t.next=4;break}return t.next=3,j(null,[e]);case 3:case 8:return t.abrupt("return",t.sent);case 4:if(r=v.value,i=r.searchItem,a=r.validate,o=r.values,!a||"function"!=typeof n.validateValues){t.next=9;break}return t.next=8,j(i,e?[e]:o);case 9:return k(""),t.abrupt("return",!0);case 11:case"end":return t.stop()}}),t)})))}function j(e,t){var r;return w(this,void 0,void 0,y().mark((function i(){var a;return y().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 k(a||"校验错误"),i.abrupt("return",!1);case 6:return k(""),i.abrupt("return",!0);case 8:case"end":return i.stop()}}),i)})))}function D(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(0,t.nextTick)().then((function(){A()})),c.value=!0,d.value=!0,s.value=!1;var n=setTimeout((function(){if(o.value){o.value.focus();var e=window.getSelection();0===e.focusOffset&&(e.selectAllChildren(o.value),e.collapseToEnd())}window.clearTimeout(n)}),0);i("focus",c.value)}function A(){var t,r,i,a,o;return w(this,void 0,void 0,y().mark((function l(){var s,c;return y().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(s=[],"function"!=typeof n.getMenuList||void 0!==(null===(r=null===(t=v.value)||void 0===t?void 0:t.searchItem)||void 0===r?void 0:r.async)&&!0!==v.value.searchItem.async){l.next=9;break}return f.value=!0,l.next=5,n.getMenuList(null===(i=v.value)||void 0===i?void 0:i.searchItem,u.value).catch((function(){return[]}));case 5:s=l.sent,f.value=!1,l.next=10;break;case 9:(null==v?void 0:v.value)?"condition"===v.value.type?s=n.conditions:(null===(o=v.value.values)||void 0===o?void 0:o.length)&&!v.value.multiple&&n.mode!==I.EDIT||(s=v.value.children.filter((function(e){return e.name.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())}))):(null===(a=u.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(u.value.toLocaleLowerCase())?(s.push(t),null===(n=t.children)||void 0===n||n.forEach((function(n){s.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),s.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:{id:u.value,name:u.value}}))):(null===(r=t.children)||void 0===r||r.forEach((function(n){n.name.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())&&s.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),s.push(Object.assign(Object.assign({},t),{value:{id:u.value,name:u.value}})))})):s=n.data.filter((function(e){return!e.isSelected})).slice();case 10:_.value=s,n.valueBehavior===S.NEEDKEY&&(c=s.find((function(e){return!e.disabled})))&&(!h.value||h.value&&!s.some((function(e){return e.id===h.value})))&&(h.value=c.id);case 12:case"end":return l.stop()}}),l)})))}function B(e){i("add",null!=e?e:v.value),v.value=null,u.value="",D(n.valueBehavior===S.NEEDKEY)}function M(){var e=o.value.innerText;"\n"===e[e.length-1]||"\r"===e[0]?(q(e.slice(0,-1)),M()):"\n"!==e[0]&&"\r"!==e[0]||(q(e.slice(1)),M())}function q(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";o.value&&(o.value.innerHTML=t||(null===(e=v.value)||void 0===e?void 0:e.inputInnerHtml)||"")}return(0,t.watch)(x,(function(){n.mode===I.DEFAULT&&x.value&&(d.value=!1)})),(0,t.watchEffect)((function(){u.value||q()}),{flush:"pre"}),(0,t.watch)([_,d],(function(){var e;(null===(e=_.value)||void 0===e?void 0:e.some((function(e){return!e.disabled})))&&d.value?m||(n.valueBehavior===S.NEEDKEY?h.value=_.value.find((function(e){return!e.disabled})).id:h.value="",m=!0,document.addEventListener("keydown",L)):(document.removeEventListener("keydown",L),m=!1,n.valueBehavior!==S.NEEDKEY&&(h.value=""))})),a({handleInputFocus:z,isFocus:c}),{popoverRef:l,inputRef:o,keyword:u,loading:f,remoteMenuList:g,menuList:_,menuHoverId:h,isFocus:c,usingItem:v,showPopover:d,showNoSelectValueError:s,debounceSetMenuList:p,documentArrowEvent:C,handleClickOutside:function(e){var t,r;!(null===(t=l.value)||void 0===t?void 0:t.contains(e.target))&&(null===(r=n.clickOutside)||void 0===r?void 0:r.call(n,e.target,l.value))&&(d.value=!1,c.value=!1,i("focus",c.value))},handleInputFocus:z,handleInputChange:function(e){var t,n,r,i,a,l,s;M();var c=e.target.innerText;if(/(\r|\n)/gm.test(c)||/\s{2}/gm.test(c))e.preventDefault(),c=c.replace(/(\r|\n)/gm,E.value).replace(/\s{2}/gm,""),o.value.innerText=c,D(),u.value=c.replace((null===(t=v.value)||void 0===t?void 0:t.keyInnerText)||"","").trim(),p();else if(!u.value&&c.length<((null===(r=null===(n=v.value)||void 0===n?void 0:n.inputInnerText)||void 0===r?void 0:r.length)||1)){var d=c.replace(" "," ").replace((null===(i=v.value)||void 0===i?void 0:i.keyInnerText.replace(" "," ").trim())||"","").trim();!d&&(null==c?void 0:c.length)||(v.value=null),u.value=d?c:"",p()}else(null===(l=null===(a=v.value)||void 0===a?void 0:a.values)||void 0===l?void 0:l.length)||(u.value=c.replace(" "," ").replace((null===(s=v.value)||void 0===s?void 0:s.keyInnerText.replace(" "," "))||"","").trim(),D(),p())},handleInputKeyup:function(e){switch(e.code){case"Enter":case"NumpadEnter":if(n.valueBehavior===S.NEEDKEY&&_.value.some((function(e){return e.id===h.value})))return;O(e);break;case"Backspace":!function(){var e,n;if(!v.value&&!u.value)return i("delete"),void(0,t.nextTick)(A);if(null===(e=v.value)||void 0===e?void 0:e.values.length){if((null===(n=v.value)||void 0===n?void 0:n.multiple)||v.value.isInValueList(v.value.values[0]))return v.value.values.splice(-1,1),u.value="",void D()}else u.value||(v.value=null,u.value="",A());k("")}();default:s.value=!1}},handleSelectItem:T,handleSelectCondtionItem:function(e){T(e,"condition")},handleMenuFooterClick:function(e){switch(e.id){case"confirm":O();break;case"cancel":v.value.values=[],d.value=!1}}}},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)(x(),{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?"":"请选择","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,[(0,t.createTextVNode)("加载中...")]):r.showNoSelectValueError?(0,t.createVNode)("div",null,[(0,t.createTextVNode)("包含键值的过滤查询必须有一个值")]):(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)(k,{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}})}}),O=(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=N(),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 V(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)(z,{ref:"inputRef",key:e.editKey.toString(),mode:I.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)(g.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[{id:"or",name:"或"},{id:"and",name:"且"}]}},clearable:{type:Boolean,default:!0},getMenuList:Function,validateValues:Function,valueSplitCode:{type:String,default:"|"},uniqueSelect:{type:Boolean,default:!1},valueBehavior:{type:String,default:S.ALL,validator:function(e){return[S.ALL,S.NEEDKEY].includes(e)}}};const F=(0,t.defineComponent)({name:"SearchSelect",directives:{clickoutside:m.clickoutside},props:T,emits:["update:modelValue"],setup:function(n,r){var i,a=r.emit,o=(0,t.ref)(null),l=(0,t.ref)(null),u=(0,t.ref)(!1),v=(0,t.ref)([]),f=(0,t.ref)(-1),p=(0,e.debounce)(32,k),m=(0,t.ref)(""),g=(0,t.ref)(""),_=(0,t.computed)((function(){return n.valueSplitCode})),y=(0,t.shallowRef)([]);function w(e,t){m.value="".concat(e.id,"_").concat(t)}function b(e,t){var n=v.value.slice();n.splice(t,1,e),a("update:modelValue",n.map((function(e){return e.toValue()}))),m.value=""}function x(e){g.value=e||""}function k(){if(u.value||v.value.length<1)f.value=-1;else{for(var e=l.value.querySelector(".bk-search-select-container"),t=l.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 s=r[o];if(s.clientHeight>n.minHeight)return void(f.value=o);(i+=s?s.clientWidth+6:0)>=t-40&&(a=o),o+=1}a===r.length-1&&i<=t?f.value=-1:f.value=i>=t-40?a:a-1}}return(0,t.watch)((function(){return n.data}),(function(){var e;y.value=JSON.parse(JSON.stringify(n.data)),null===(e=y.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 v.value=[],void(null===(t=y.value)||void 0===t||t.forEach((function(e){e.isSelected=!1})));var i=[];e.forEach((function(e){var t,r=v.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 V(a||e,o,_.value);l.values=e.values||[],i.push(l)}})),v.value=i,null===(r=y.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(l.value.querySelector(".bk-search-select-container"),p)})),(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}!--s&&c&&c.parentNode.removeChild(c)}}(l.value.querySelector(".bk-search-select-container"),p)})),i={onEditClick:w,onEditEnter:b,onEditBlur:function(){m.value="",x("")},onValidate:x,editKey:m,valueSplitCode:_},(0,t.provide)(C,i),{inputRef:o,wrapRef:l,isFocus:u,copyData:y,selectedList:v,overflowIndex:f,validateStr:g,splitCode:_,onEditClick:w,onEditEnter:b,handleWrapClick:function(){m.value||o.value.handleInputFocus()},handleInputFocus:function(e){e&&(f.value=-1),u.value=e},handleResize:k,handleClearAll:function(){v.value=[],f.value=-1,a("update:modelValue",[])},handleInputOutside:function(e){var t;return!(null===(t=l.value)||void 0===t?void 0:t.contains(e))},handleAddSelected:function(e){var t=v.value.slice();t.push(e),x(""),a("update:modelValue",t.map((function(e){return e.toValue()})))},handleDeleteSelected:function(e){var t=v.value.slice();t.splice("number"==typeof e?e:v.value.length-1,1),x(""),a("update:modelValue",t.map((function(e){return e.toValue()})))}}},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)(O,{data:this.copyData,conditions:this.conditions,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)(z,{ref:"inputRef",data:this.copyData,showInputBefore:!this.selectedList.length,showCondition:a,conditions:this.conditions,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)(g.Close,{class:"search-clear",onClick:this.handleClearAll},null),this.$slots.append?this.$slots.append():(0,t.createVNode)(g.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)(g.ExclamationCircleShape,{class:"select-tips"},null),this.validateStr||""])])])}});var j=(0,e.withInstall)(F);const D=j})(),u})()));
@@ -0,0 +1,89 @@
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
+ }, 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<{
60
+ data: {
61
+ type: PropType<ISearchItem[]>;
62
+ required: true;
63
+ };
64
+ showInputBefore: BooleanConstructor;
65
+ showCondition: BooleanConstructor;
66
+ clickOutside: FunctionConstructor;
67
+ conditions: {
68
+ type: PropType<ICommonItem[]>;
69
+ default: () => any[];
70
+ };
71
+ defautUsingItem: PropType<SelectedItem>;
72
+ mode: {
73
+ type: PropType<SearchInputMode>;
74
+ default: SearchInputMode;
75
+ };
76
+ getMenuList: PropType<GetMenuListFunc>;
77
+ validateValues: PropType<ValidateValuesFunc>;
78
+ valueBehavior: PropType<ValueBehavior>;
79
+ }>> & {
80
+ onFocus?: (...args: any[]) => any;
81
+ onAdd?: (...args: any[]) => any;
82
+ onDelete?: (...args: any[]) => any;
83
+ }, {
84
+ mode: SearchInputMode;
85
+ conditions: ICommonItem[];
86
+ showInputBefore: boolean;
87
+ showCondition: boolean;
88
+ }>;
89
+ export default _default;
@@ -0,0 +1,83 @@
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: () => ({
26
+ id: string;
27
+ name: string;
28
+ disabled?: undefined;
29
+ } | {
30
+ id: string;
31
+ name: string;
32
+ disabled: boolean;
33
+ })[];
34
+ };
35
+ }, {
36
+ handleClick: (item: ICommonItem) => void;
37
+ handleClickCondition: (item: ICommonItem) => void;
38
+ handleClickFooterBtn: (item: IMenuFooterItem) => void;
39
+ filterList: import("vue").ComputedRef<ICommonItem[]>;
40
+ getSearchNode: (item: ICommonItem) => string | (string | VNode)[];
41
+ }, 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<{
42
+ list: {
43
+ type: PropType<ICommonItem[]>;
44
+ };
45
+ hoverId: StringConstructor;
46
+ keyword: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ multiple: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ selected: {
55
+ type: PropType<string[]>;
56
+ default: () => any[];
57
+ };
58
+ conditions: {
59
+ type: PropType<ICommonItem[]>;
60
+ };
61
+ footerBtns: {
62
+ type: PropType<IMenuFooterItem[]>;
63
+ default: () => ({
64
+ id: string;
65
+ name: string;
66
+ disabled?: undefined;
67
+ } | {
68
+ id: string;
69
+ name: string;
70
+ disabled: boolean;
71
+ })[];
72
+ };
73
+ }>> & {
74
+ onSelectItem?: (...args: any[]) => any;
75
+ onSelectCondition?: (...args: any[]) => any;
76
+ onFooterClick?: (...args: any[]) => any;
77
+ }, {
78
+ multiple: boolean;
79
+ selected: string[];
80
+ keyword: string;
81
+ footerBtns: IMenuFooterItem[];
82
+ }>;
83
+ 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
+ }