bkui-vue 0.0.1-beta.35 → 0.0.1-beta.350

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 (652) hide show
  1. package/dist/index.cjs.js +179 -0
  2. package/dist/index.esm.js +38650 -0
  3. package/dist/index.umd.js +179 -0
  4. package/dist/style.css +1 -5865
  5. package/dist/style.variable.css +1 -0
  6. package/lib/affix/affix.css +360 -0
  7. package/lib/affix/affix.d.ts +47 -0
  8. package/lib/affix/affix.less +5 -0
  9. package/lib/affix/affix.variable.css +836 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.css +369 -6
  13. package/lib/alert/alert.d.ts +5 -5
  14. package/lib/alert/alert.less +29 -20
  15. package/lib/alert/alert.variable.css +753 -7
  16. package/lib/alert/index.d.ts +11 -11
  17. package/lib/alert/index.js +1 -0
  18. package/lib/animate-number/animate-number.d.ts +1 -1
  19. package/lib/animate-number/index.d.ts +4 -4
  20. package/lib/animate-number/{animate-number.js → index.js} +1 -1
  21. package/lib/backtop/backtop.css +367 -2
  22. package/lib/backtop/backtop.d.ts +1 -1
  23. package/lib/backtop/backtop.less +8 -0
  24. package/lib/backtop/backtop.variable.css +752 -4
  25. package/lib/backtop/index.d.ts +4 -4
  26. package/lib/backtop/index.js +1 -0
  27. package/lib/badge/badge.css +388 -31
  28. package/lib/badge/badge.d.ts +28 -7
  29. package/lib/badge/badge.less +5 -6
  30. package/lib/badge/badge.variable.css +749 -9
  31. package/lib/badge/index.d.ts +68 -18
  32. package/lib/badge/index.js +1 -0
  33. package/lib/breadcrumb/breadcrumb.css +413 -5
  34. package/lib/breadcrumb/breadcrumb.variable.css +795 -4
  35. package/lib/breadcrumb/index.js +1 -0
  36. package/lib/button/button-group.d.ts +2 -2
  37. package/lib/button/button.css +534 -139
  38. package/lib/button/button.d.ts +44 -24
  39. package/lib/button/button.less +74 -41
  40. package/lib/button/button.variable.css +831 -53
  41. package/lib/button/index.d.ts +70 -40
  42. package/lib/button/index.js +1 -0
  43. package/lib/card/card.css +457 -5
  44. package/lib/card/card.d.ts +47 -6
  45. package/lib/card/card.less +50 -2
  46. package/lib/card/card.variable.css +840 -5
  47. package/lib/card/index.d.ts +113 -17
  48. package/lib/card/index.js +1 -0
  49. package/lib/cascader/cascader-panel.d.ts +100 -0
  50. package/lib/cascader/cascader.css +530 -0
  51. package/lib/cascader/cascader.d.ts +303 -0
  52. package/lib/cascader/cascader.less +196 -0
  53. package/lib/cascader/cascader.variable.css +1006 -0
  54. package/lib/cascader/index.d.ts +868 -0
  55. package/lib/cascader/index.js +1 -0
  56. package/lib/cascader/interface.d.ts +51 -0
  57. package/lib/cascader/node.d.ts +31 -0
  58. package/lib/cascader/store.d.ts +23 -0
  59. package/lib/checkbox/checkbox-group.d.ts +16 -0
  60. package/lib/checkbox/checkbox.css +408 -15
  61. package/lib/checkbox/checkbox.d.ts +20 -24
  62. package/lib/checkbox/checkbox.less +79 -31
  63. package/lib/checkbox/checkbox.variable.css +790 -14
  64. package/lib/checkbox/common.d.ts +4 -3
  65. package/lib/checkbox/index.d.ts +47 -38
  66. package/lib/checkbox/index.js +1 -0
  67. package/lib/checkbox/type.d.ts +2 -6
  68. package/lib/code-diff/code-diff.css +384 -7
  69. package/lib/code-diff/code-diff.d.ts +1 -1
  70. package/lib/code-diff/code-diff.less +42 -7
  71. package/lib/code-diff/code-diff.variable.css +771 -11
  72. package/lib/code-diff/index.js +1 -0
  73. package/lib/collapse/collapse-panel.d.ts +67 -0
  74. package/lib/collapse/collapse.css +385 -12
  75. package/lib/collapse/collapse.d.ts +11 -52
  76. package/lib/collapse/collapse.less +54 -29
  77. package/lib/collapse/collapse.variable.css +861 -12
  78. package/lib/collapse/index.d.ts +108 -16
  79. package/lib/collapse/index.js +1 -0
  80. package/lib/collapse/props.d.ts +79 -0
  81. package/lib/collapse/utils.d.ts +11 -0
  82. package/lib/color-picker/color-picker.css +632 -0
  83. package/lib/color-picker/color-picker.d.ts +144 -0
  84. package/lib/color-picker/color-picker.less +325 -0
  85. package/lib/color-picker/color-picker.variable.css +1108 -0
  86. package/lib/color-picker/components/color-input.d.ts +42 -0
  87. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  88. package/lib/color-picker/components/input-container.d.ts +42 -0
  89. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  90. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  91. package/lib/color-picker/index.d.ts +254 -0
  92. package/lib/color-picker/index.js +1 -0
  93. package/lib/color-picker/utils.d.ts +37 -0
  94. package/lib/components.d.ts +25 -8
  95. package/lib/components.js +1 -0
  96. package/lib/container/col.d.ts +51 -0
  97. package/lib/container/container.css +448 -0
  98. package/lib/container/container.d.ts +83 -0
  99. package/lib/container/container.less +20 -0
  100. package/lib/container/container.variable.css +924 -0
  101. package/lib/container/index.d.ts +223 -0
  102. package/lib/container/index.js +1 -0
  103. package/lib/container/row.d.ts +4 -0
  104. package/lib/date-picker/base/confirm.d.ts +74 -0
  105. package/lib/date-picker/base/date-table.d.ts +102 -0
  106. package/lib/date-picker/base/picker-dropdown.d.ts +73 -0
  107. package/lib/date-picker/base/time-spinner.d.ts +153 -0
  108. package/lib/date-picker/date-picker.css +402 -18
  109. package/lib/date-picker/date-picker.d.ts +49 -20
  110. package/lib/date-picker/date-picker.less +33 -1
  111. package/lib/date-picker/date-picker.variable.css +772 -5
  112. package/lib/date-picker/index.d.ts +121 -54
  113. package/lib/date-picker/index.js +1 -0
  114. package/lib/date-picker/interface.d.ts +11 -1
  115. package/lib/date-picker/panel/date-range.d.ts +309 -0
  116. package/lib/date-picker/panel/date.d.ts +206 -0
  117. package/lib/date-picker/panel/time-range.d.ts +489 -0
  118. package/lib/date-picker/panel/time.d.ts +448 -0
  119. package/lib/date-picker/props.d.ts +55 -5
  120. package/lib/date-picker/time-picker.d.ts +381 -0
  121. package/lib/date-picker/utils.d.ts +22 -2
  122. package/lib/dialog/dialog.css +144 -22
  123. package/lib/dialog/dialog.d.ts +256 -58
  124. package/lib/dialog/dialog.less +97 -23
  125. package/lib/dialog/dialog.variable.css +144 -22
  126. package/lib/dialog/index.d.ts +562 -126
  127. package/lib/dialog/index.js +1 -0
  128. package/lib/dialog/props.d.ts +130 -0
  129. package/lib/directives/ellipsis.d.ts +7 -0
  130. package/lib/directives/index.d.ts +1 -0
  131. package/lib/directives/index.js +2 -0
  132. package/lib/directives/{directives.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
  133. package/lib/directives/tooltips.d.ts +1 -1
  134. package/lib/dist.index.js +1 -0
  135. package/lib/divider/divider.css +360 -3
  136. package/lib/divider/divider.d.ts +15 -15
  137. package/lib/divider/divider.variable.css +744 -4
  138. package/lib/divider/index.d.ts +34 -34
  139. package/lib/divider/index.js +1 -0
  140. package/lib/divider/props.d.ts +6 -6
  141. package/lib/dropdown/dropdown.css +370 -7
  142. package/lib/dropdown/dropdown.d.ts +44 -13
  143. package/lib/dropdown/dropdown.less +47 -34
  144. package/lib/dropdown/dropdown.variable.css +757 -11
  145. package/lib/dropdown/index.d.ts +93 -32
  146. package/lib/dropdown/index.js +1 -0
  147. package/lib/exception/exception.css +397 -14
  148. package/lib/exception/exception.d.ts +18 -11
  149. package/lib/exception/exception.less +59 -22
  150. package/lib/exception/exception.variable.css +784 -18
  151. package/lib/exception/index.d.ts +41 -26
  152. package/lib/exception/index.js +1 -0
  153. package/lib/exception/typings/index.d.ts +4 -0
  154. package/lib/fixed-navbar/fixed-navbar.css +361 -4
  155. package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
  156. package/lib/fixed-navbar/fixed-navbar.variable.css +744 -4
  157. package/lib/fixed-navbar/index.d.ts +40 -5
  158. package/lib/fixed-navbar/{fixed-navbar.js → index.js} +1 -1
  159. package/lib/form/compose-form-item.d.ts +16 -0
  160. package/lib/form/form-item.d.ts +30 -8
  161. package/lib/form/form.css +461 -15
  162. package/lib/form/form.d.ts +28 -11
  163. package/lib/form/form.less +152 -45
  164. package/lib/form/form.variable.css +937 -15
  165. package/lib/form/index.d.ts +99 -32
  166. package/lib/form/index.js +1 -0
  167. package/lib/form/type.d.ts +8 -7
  168. package/lib/form/utils.d.ts +2 -0
  169. package/lib/form/validator.d.ts +1 -0
  170. package/lib/icon/angle-double-down-line.js +1 -1
  171. package/lib/icon/angle-double-left-line.js +1 -1
  172. package/lib/icon/angle-double-left.js +1 -1
  173. package/lib/icon/angle-double-right-line.js +1 -1
  174. package/lib/icon/angle-double-right.js +1 -1
  175. package/lib/icon/angle-double-up-line.js +1 -1
  176. package/lib/icon/angle-down-fill.js +1 -1
  177. package/lib/icon/angle-down-line.js +1 -1
  178. package/lib/icon/angle-down.js +1 -1
  179. package/lib/icon/angle-left.js +1 -1
  180. package/lib/icon/angle-right.js +1 -1
  181. package/lib/icon/angle-up-fill.js +1 -1
  182. package/lib/icon/angle-up.js +1 -1
  183. package/lib/icon/archive-fill.d.ts +4 -0
  184. package/lib/icon/archive-fill.js +1 -0
  185. package/lib/icon/arrows-left.js +1 -1
  186. package/lib/icon/arrows-right.js +1 -1
  187. package/lib/icon/audio-fill.d.ts +4 -0
  188. package/lib/icon/audio-fill.js +1 -0
  189. package/lib/icon/bk.js +1 -1
  190. package/lib/icon/circle.js +1 -1
  191. package/lib/icon/close-line.d.ts +4 -0
  192. package/lib/icon/close-line.js +1 -0
  193. package/lib/icon/close.js +1 -1
  194. package/lib/icon/code.js +1 -1
  195. package/lib/icon/cog-shape.js +1 -1
  196. package/lib/icon/collapse-left.js +1 -1
  197. package/lib/icon/copy.js +1 -1
  198. package/lib/icon/data-shape.d.ts +4 -0
  199. package/lib/icon/data-shape.js +1 -0
  200. package/lib/icon/del.d.ts +4 -0
  201. package/lib/icon/del.js +1 -0
  202. package/lib/icon/doc-fill.d.ts +4 -0
  203. package/lib/icon/doc-fill.js +1 -0
  204. package/lib/icon/done.js +1 -1
  205. package/lib/icon/down-shape.js +1 -1
  206. package/lib/icon/down-small.js +1 -1
  207. package/lib/icon/edit-line.d.ts +4 -0
  208. package/lib/icon/edit-line.js +1 -0
  209. package/lib/icon/ellipsis.js +1 -1
  210. package/lib/icon/enlarge-line.d.ts +4 -0
  211. package/lib/icon/enlarge-line.js +1 -0
  212. package/lib/icon/error.js +1 -1
  213. package/lib/icon/excel-fill.d.ts +4 -0
  214. package/lib/icon/excel-fill.js +1 -0
  215. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  216. package/lib/icon/exclamation-circle-shape.js +1 -0
  217. package/lib/icon/eye.js +1 -1
  218. package/lib/icon/filliscreen-line.d.ts +4 -0
  219. package/lib/icon/filliscreen-line.js +1 -0
  220. package/lib/icon/folder-open.js +1 -1
  221. package/lib/icon/folder-shape-open.js +1 -1
  222. package/lib/icon/folder-shape.js +1 -1
  223. package/lib/icon/folder.js +1 -1
  224. package/lib/icon/funnel.d.ts +4 -0
  225. package/lib/icon/funnel.js +1 -0
  226. package/lib/icon/help-document-fill.js +1 -1
  227. package/lib/icon/help-fill.js +1 -1
  228. package/lib/icon/help.js +1 -1
  229. package/lib/icon/image-fill.d.ts +4 -0
  230. package/lib/icon/img-error.d.ts +4 -0
  231. package/lib/icon/img-error.js +1 -0
  232. package/lib/icon/img-placehoulder.d.ts +4 -0
  233. package/lib/icon/img-placehoulder.js +1 -0
  234. package/lib/icon/index.d.ts +27 -1
  235. package/lib/icon/index.js +1 -0
  236. package/lib/icon/info-line.js +1 -1
  237. package/lib/icon/info.js +1 -1
  238. package/lib/icon/left-shape.js +1 -1
  239. package/lib/icon/left-turn-line.d.ts +4 -0
  240. package/lib/icon/left-turn-line.js +1 -0
  241. package/lib/icon/narrow-line.d.ts +4 -0
  242. package/lib/icon/narrow-line.js +1 -0
  243. package/lib/icon/original.d.ts +4 -0
  244. package/lib/icon/original.js +1 -0
  245. package/lib/icon/pdf-fill.d.ts +4 -0
  246. package/lib/icon/pdf-fill.js +1 -0
  247. package/lib/icon/play-shape.js +1 -1
  248. package/lib/icon/plus.js +1 -1
  249. package/lib/icon/ppt-fill.d.ts +4 -0
  250. package/lib/icon/ppt-fill.js +1 -0
  251. package/lib/icon/qq.js +1 -1
  252. package/lib/icon/right-shape.js +1 -1
  253. package/lib/icon/right-turn-line.d.ts +4 -0
  254. package/lib/icon/right-turn-line.js +1 -0
  255. package/lib/icon/search.js +1 -1
  256. package/lib/icon/share.js +1 -1
  257. package/lib/icon/spinner.js +1 -1
  258. package/lib/icon/success.js +1 -1
  259. package/lib/icon/switcher-loading.js +1 -1
  260. package/lib/icon/text-file.js +1 -1
  261. package/lib/icon/text-fill.d.ts +4 -0
  262. package/lib/icon/text-fill.js +1 -0
  263. package/lib/icon/transfer.d.ts +4 -0
  264. package/lib/icon/transfer.js +1 -0
  265. package/lib/icon/tree-application-shape.js +1 -1
  266. package/lib/icon/unfull-screen.d.ts +4 -0
  267. package/lib/icon/unfull-screen.js +1 -0
  268. package/lib/icon/unvisible.js +1 -1
  269. package/lib/icon/up-shape.js +1 -1
  270. package/lib/icon/upload.d.ts +4 -0
  271. package/lib/icon/upload.js +1 -0
  272. package/lib/icon/video-fill.d.ts +4 -0
  273. package/lib/icon/video-fill.js +1 -0
  274. package/lib/icon/warn.js +1 -1
  275. package/lib/icon/weixin.js +1 -1
  276. package/lib/image/image-viewer.css +142 -0
  277. package/lib/image/image-viewer.d.ts +73 -0
  278. package/lib/image/image-viewer.less +168 -0
  279. package/lib/image/image-viewer.variable.css +142 -0
  280. package/lib/image/image.css +37 -0
  281. package/lib/image/image.d.ts +93 -0
  282. package/lib/image/image.less +44 -0
  283. package/lib/image/image.variable.css +37 -0
  284. package/lib/image/index.d.ts +246 -0
  285. package/lib/image/index.js +1 -0
  286. package/lib/image/props.d.ts +71 -0
  287. package/lib/index.d.ts +1 -1
  288. package/lib/index.js +1 -0
  289. package/lib/info-box/index.d.ts +6 -0
  290. package/lib/info-box/index.js +1 -0
  291. package/lib/info-box/info-box.css +37 -0
  292. package/lib/info-box/info-box.d.ts +26 -0
  293. package/lib/info-box/info-box.less +50 -0
  294. package/lib/info-box/info-box.variable.css +37 -0
  295. package/lib/input/index.d.ts +183 -72
  296. package/lib/input/index.js +1 -0
  297. package/lib/input/input.css +600 -41
  298. package/lib/input/input.d.ts +125 -25
  299. package/lib/input/input.less +158 -17
  300. package/lib/input/input.variable.css +960 -18
  301. package/lib/link/index.d.ts +15 -15
  302. package/lib/link/index.js +1 -0
  303. package/lib/link/link.css +381 -24
  304. package/lib/link/link.d.ts +6 -6
  305. package/lib/link/link.less +16 -14
  306. package/lib/link/link.variable.css +756 -16
  307. package/lib/loading/index.d.ts +112 -19
  308. package/lib/loading/index.js +1 -0
  309. package/lib/loading/loading.css +450 -50
  310. package/lib/loading/loading.d.ts +78 -12
  311. package/lib/loading/loading.less +17 -22
  312. package/lib/loading/loading.variable.css +821 -38
  313. package/lib/menu/index.d.ts +16 -24
  314. package/lib/menu/index.js +1 -0
  315. package/lib/menu/menu.css +426 -18
  316. package/lib/menu/menu.d.ts +7 -16
  317. package/lib/menu/menu.variable.css +795 -4
  318. package/lib/menu/submenu.css +357 -0
  319. package/lib/menu/submenu.variable.css +744 -4
  320. package/lib/message/index.js +1 -0
  321. package/lib/message/message.css +397 -19
  322. package/lib/message/message.less +28 -3
  323. package/lib/message/message.variable.css +769 -8
  324. package/lib/message/messageConstructor.d.ts +47 -11
  325. package/lib/modal/index.d.ts +456 -78
  326. package/lib/modal/index.js +1 -0
  327. package/lib/modal/modal.css +63 -1
  328. package/lib/modal/modal.d.ts +174 -30
  329. package/lib/modal/modal.less +36 -1
  330. package/lib/modal/modal.variable.css +63 -1
  331. package/lib/modal/props.mixin.d.ts +74 -13
  332. package/lib/navigation/index.d.ts +310 -1
  333. package/lib/navigation/index.js +1 -0
  334. package/lib/navigation/navigation.css +360 -3
  335. package/lib/navigation/navigation.d.ts +10 -1
  336. package/lib/navigation/navigation.less +1 -1
  337. package/lib/navigation/navigation.variable.css +745 -5
  338. package/lib/notify/index.js +1 -0
  339. package/lib/notify/notify.css +386 -9
  340. package/lib/notify/notify.less +27 -4
  341. package/lib/notify/notify.variable.css +768 -8
  342. package/lib/notify/notifyConstructor.d.ts +56 -12
  343. package/lib/pagination/index.d.ts +35 -20
  344. package/lib/pagination/index.js +1 -0
  345. package/lib/pagination/pagination.css +412 -29
  346. package/lib/pagination/pagination.d.ts +18 -8
  347. package/lib/pagination/pagination.less +59 -30
  348. package/lib/pagination/pagination.variable.css +798 -32
  349. package/lib/plugin-popover/index.d.ts +27 -0
  350. package/lib/plugin-popover/index.js +1 -0
  351. package/lib/plugins/index.d.ts +1 -0
  352. package/lib/plugins/index.js +1 -0
  353. package/lib/popover/arrow.d.ts +2 -0
  354. package/lib/popover/const.d.ts +16 -0
  355. package/lib/popover/content.d.ts +24 -0
  356. package/lib/popover/index.d.ts +430 -97
  357. package/lib/popover/index.js +1 -0
  358. package/lib/popover/plugin-popover.d.ts +12 -0
  359. package/lib/popover/popover.css +364 -47
  360. package/lib/popover/popover.d.ts +188 -43
  361. package/lib/popover/popover.less +19 -66
  362. package/lib/popover/popover.variable.css +751 -51
  363. package/lib/popover/props.d.ts +91 -31
  364. package/lib/popover/reference.d.ts +2 -0
  365. package/lib/popover/root.d.ts +16 -0
  366. package/lib/popover/use-floating.d.ts +34 -0
  367. package/lib/popover/use-platform.d.ts +30 -0
  368. package/lib/popover/use-popover-init.d.ts +22 -0
  369. package/lib/popover/use-popper-id.d.ts +6 -0
  370. package/lib/popover/utils.d.ts +2 -0
  371. package/lib/popover2/index.d.ts +44 -0
  372. package/lib/popover2/index.js +1 -0
  373. package/lib/popover2/popover.d.ts +2 -0
  374. package/lib/preset.js +1 -0
  375. package/lib/process/index.d.ts +9 -9
  376. package/lib/process/index.js +1 -0
  377. package/lib/process/process.css +381 -11
  378. package/lib/process/process.d.ts +2 -2
  379. package/lib/process/process.less +17 -0
  380. package/lib/process/process.variable.css +757 -4
  381. package/lib/progress/index.d.ts +25 -25
  382. package/lib/progress/index.js +1 -0
  383. package/lib/progress/progress.css +412 -4
  384. package/lib/progress/progress.d.ts +10 -10
  385. package/lib/progress/progress.variable.css +795 -4
  386. package/lib/radio/common.d.ts +5 -5
  387. package/lib/radio/index.d.ts +29 -18
  388. package/lib/radio/index.js +1 -0
  389. package/lib/radio/radio-button.d.ts +7 -8
  390. package/lib/radio/radio-group.d.ts +16 -0
  391. package/lib/radio/radio.css +418 -60
  392. package/lib/radio/radio.d.ts +4 -4
  393. package/lib/radio/radio.less +177 -173
  394. package/lib/radio/radio.variable.css +795 -54
  395. package/lib/radio/type.d.ts +9 -4
  396. package/lib/rate/index.d.ts +28 -5
  397. package/lib/rate/index.js +1 -0
  398. package/lib/rate/rate.d.ts +13 -2
  399. package/lib/rate/star.d.ts +1 -1
  400. package/lib/resize-layout/index.d.ts +18 -18
  401. package/lib/resize-layout/index.js +1 -0
  402. package/lib/resize-layout/resize-layout.css +360 -15
  403. package/lib/resize-layout/resize-layout.d.ts +7 -7
  404. package/lib/resize-layout/resize-layout.less +3 -19
  405. package/lib/resize-layout/resize-layout.variable.css +747 -19
  406. package/lib/search-select/index.d.ts +794 -0
  407. package/lib/search-select/index.js +1 -0
  408. package/lib/search-select/input.d.ts +87 -0
  409. package/lib/search-select/menu.d.ts +83 -0
  410. package/lib/search-select/search-select.css +781 -0
  411. package/lib/search-select/search-select.d.ts +324 -0
  412. package/lib/search-select/search-select.less +380 -0
  413. package/lib/search-select/search-select.variable.css +1257 -0
  414. package/lib/search-select/selected.d.ts +139 -0
  415. package/lib/search-select/utils.d.ts +84 -0
  416. package/lib/select/common.d.ts +5 -12
  417. package/lib/select/index.d.ts +1243 -592
  418. package/lib/select/index.js +1 -0
  419. package/lib/select/option.d.ts +16 -4
  420. package/lib/select/optionGroup.d.ts +1 -1
  421. package/lib/select/select.css +553 -121
  422. package/lib/select/select.d.ts +470 -129
  423. package/lib/select/select.less +317 -197
  424. package/lib/select/select.variable.css +931 -116
  425. package/lib/select/selectTagInput.d.ts +93 -0
  426. package/lib/select/type.d.ts +21 -13
  427. package/lib/shared/dom.d.ts +3 -0
  428. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  429. package/lib/shared/hooks/use-form.d.ts +2 -0
  430. package/lib/shared/index.d.ts +23 -0
  431. package/lib/shared/index.js +1 -0
  432. package/lib/shared/mask-manager.d.ts +6 -2
  433. package/lib/shared/pop-manager.d.ts +16 -4
  434. package/lib/shared/popover.d.ts +6 -2
  435. package/lib/shared/token.d.ts +4 -0
  436. package/lib/shared/utils.d.ts +19 -0
  437. package/lib/shared/vue-types.d.ts +98 -8
  438. package/lib/sideslider/index.d.ts +343 -72
  439. package/lib/sideslider/index.js +1 -0
  440. package/lib/sideslider/sideslider.css +413 -11
  441. package/lib/sideslider/sideslider.d.ts +160 -32
  442. package/lib/sideslider/sideslider.less +72 -13
  443. package/lib/sideslider/sideslider.variable.css +799 -14
  444. package/lib/slider/index.d.ts +414 -1
  445. package/lib/slider/index.js +1 -0
  446. package/lib/slider/slider-button.d.ts +2 -1
  447. package/lib/slider/slider.css +361 -4
  448. package/lib/slider/slider.d.ts +4 -4
  449. package/lib/slider/slider.variable.css +744 -4
  450. package/lib/steps/index.d.ts +52 -52
  451. package/lib/steps/index.js +1 -0
  452. package/lib/steps/steps.css +405 -36
  453. package/lib/steps/steps.d.ts +32 -32
  454. package/lib/steps/steps.less +24 -3
  455. package/lib/steps/steps.variable.css +759 -7
  456. package/lib/styles/index.d.ts +7 -1
  457. package/lib/styles/mixins/clearfix.less +10 -0
  458. package/lib/styles/mixins/clearfix.variable.css +8 -0
  459. package/lib/styles/mixins/mixins.css +51 -0
  460. package/lib/styles/mixins/mixins.less +2 -0
  461. package/lib/styles/mixins/mixins.variable.css +51 -0
  462. package/lib/styles/mixins/scroll.css +374 -0
  463. package/lib/styles/mixins/scroll.less +22 -0
  464. package/lib/styles/mixins/scroll.variable.css +850 -0
  465. package/lib/styles/reset.css +36 -0
  466. package/lib/styles/reset.less +26 -0
  467. package/lib/styles/reset.variable.css +36 -0
  468. package/lib/styles/themes/themes.css +357 -0
  469. package/lib/styles/themes/themes.less +622 -90
  470. package/lib/styles/themes/themes.variable.css +357 -0
  471. package/lib/swiper/index.js +1 -0
  472. package/lib/switcher/index.d.ts +42 -30
  473. package/lib/switcher/index.js +1 -0
  474. package/lib/switcher/switcher.css +431 -23
  475. package/lib/switcher/switcher.d.ts +19 -13
  476. package/lib/switcher/switcher.less +5 -26
  477. package/lib/switcher/switcher.variable.css +801 -10
  478. package/lib/tab/index.d.ts +53 -61
  479. package/lib/tab/index.js +1 -0
  480. package/lib/tab/props.d.ts +12 -11
  481. package/lib/tab/tab-nav.d.ts +17 -13
  482. package/lib/tab/tab-panel.d.ts +5 -10
  483. package/lib/tab/tab.css +401 -21
  484. package/lib/tab/tab.d.ts +19 -20
  485. package/lib/tab/tab.less +55 -46
  486. package/lib/tab/tab.variable.css +768 -5
  487. package/lib/table/components/index.d.ts +3 -0
  488. package/lib/table/components/table-cell.d.ts +38 -0
  489. package/lib/table/components/table-column.d.ts +137 -0
  490. package/lib/table/components/table-row.d.ts +2 -0
  491. package/lib/table/const.d.ts +109 -1
  492. package/lib/table/index.d.ts +841 -41
  493. package/lib/table/index.js +1 -0
  494. package/lib/table/plugins/body-empty.d.ts +40 -0
  495. package/lib/table/plugins/col-group.d.ts +38 -0
  496. package/lib/table/plugins/common.d.ts +6 -0
  497. package/lib/table/plugins/head-filter.css +429 -0
  498. package/lib/table/plugins/head-filter.d.ts +26 -0
  499. package/lib/table/plugins/head-filter.less +93 -0
  500. package/lib/table/plugins/head-filter.variable.css +905 -0
  501. package/lib/table/plugins/head-sort.css +382 -0
  502. package/lib/table/plugins/head-sort.d.ts +22 -0
  503. package/lib/table/plugins/head-sort.less +31 -0
  504. package/lib/table/plugins/head-sort.variable.css +858 -0
  505. package/lib/table/plugins/index.d.ts +5 -0
  506. package/lib/table/plugins/settings.css +502 -0
  507. package/lib/table/plugins/settings.d.ts +37 -0
  508. package/lib/table/plugins/settings.less +179 -0
  509. package/lib/table/plugins/settings.variable.css +978 -0
  510. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  511. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  512. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  513. package/lib/table/plugins/use-pagination.d.ts +16 -0
  514. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  515. package/lib/table/props.d.ts +308 -8
  516. package/lib/table/render.d.ts +43 -3
  517. package/lib/table/table.css +1547 -29
  518. package/lib/table/table.d.ts +231 -17
  519. package/lib/table/table.less +259 -25
  520. package/lib/table/table.variable.css +2348 -90
  521. package/lib/table/use-column.d.ts +11 -0
  522. package/lib/table/use-common.d.ts +97 -0
  523. package/lib/table/utils.d.ts +65 -9
  524. package/lib/table-column/index.d.ts +325 -0
  525. package/lib/table-column/index.js +1 -0
  526. package/lib/tag/index.d.ts +29 -29
  527. package/lib/tag/index.js +1 -0
  528. package/lib/tag/tag.css +408 -18
  529. package/lib/tag/tag.d.ts +12 -12
  530. package/lib/tag/tag.less +46 -10
  531. package/lib/tag/tag.variable.css +790 -17
  532. package/lib/tag-input/common.d.ts +13 -1
  533. package/lib/tag-input/index.d.ts +1320 -1
  534. package/lib/tag-input/index.js +1 -0
  535. package/lib/tag-input/list-tag-render.d.ts +0 -3
  536. package/lib/tag-input/tag-input.css +398 -44
  537. package/lib/tag-input/tag-input.d.ts +259 -41
  538. package/lib/tag-input/tag-input.less +102 -104
  539. package/lib/tag-input/tag-input.variable.css +767 -30
  540. package/lib/tag-input/tag-props.d.ts +122 -7
  541. package/lib/tag-input/tag-render.d.ts +30 -4
  542. package/lib/time-picker/index.d.ts +904 -0
  543. package/lib/time-picker/index.js +1 -0
  544. package/lib/time-picker/time-picker.css +572 -0
  545. package/lib/time-picker/time-picker.less +260 -0
  546. package/lib/time-picker/time-picker.variable.css +1048 -0
  547. package/lib/timeline/index.d.ts +6 -6
  548. package/lib/timeline/index.js +1 -0
  549. package/lib/timeline/timeline.css +392 -28
  550. package/lib/timeline/timeline.d.ts +1 -1
  551. package/lib/timeline/timeline.less +22 -9
  552. package/lib/timeline/timeline.variable.css +760 -13
  553. package/lib/transfer/const.d.ts +5 -0
  554. package/lib/transfer/index.d.ts +164 -150
  555. package/lib/transfer/index.js +1 -0
  556. package/lib/transfer/props.d.ts +54 -0
  557. package/lib/transfer/transfer.css +451 -91
  558. package/lib/transfer/transfer.d.ts +70 -95
  559. package/lib/transfer/transfer.less +93 -113
  560. package/lib/transfer/transfer.variable.css +838 -95
  561. package/lib/tree/constant.d.ts +62 -0
  562. package/lib/tree/index.d.ts +417 -57
  563. package/lib/tree/index.js +1 -0
  564. package/lib/tree/props.d.ts +124 -0
  565. package/lib/tree/tree.css +534 -9
  566. package/lib/tree/tree.d.ts +190 -18
  567. package/lib/tree/tree.less +54 -3
  568. package/lib/tree/tree.variable.css +1278 -13
  569. package/lib/tree/use-empty.d.ts +6 -0
  570. package/lib/tree/use-node-action.d.ts +12 -0
  571. package/lib/tree/use-node-async.d.ts +5 -0
  572. package/lib/tree/use-node-attribute.d.ts +33 -0
  573. package/lib/tree/use-node-drag.d.ts +3 -0
  574. package/lib/tree/use-search.d.ts +11 -0
  575. package/lib/tree/use-tree-init.d.ts +15 -0
  576. package/lib/tree/util.d.ts +4 -6
  577. package/lib/upload/index.d.ts +566 -0
  578. package/lib/upload/index.js +1 -0
  579. package/lib/upload/props.d.ts +111 -0
  580. package/lib/upload/upload-list.d.ts +47 -0
  581. package/lib/upload/upload-trigger.d.ts +51 -0
  582. package/lib/upload/upload.css +782 -0
  583. package/lib/upload/upload.d.ts +246 -0
  584. package/lib/upload/upload.less +464 -0
  585. package/lib/upload/upload.type.d.ts +78 -0
  586. package/lib/upload/upload.variable.css +1258 -0
  587. package/lib/upload/use-ajax-upload.d.ts +3 -0
  588. package/lib/upload/use-file-handler.d.ts +44 -0
  589. package/lib/virtual-render/index.d.ts +27 -4
  590. package/lib/virtual-render/index.js +1 -0
  591. package/lib/virtual-render/props.d.ts +10 -0
  592. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  593. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  594. package/lib/virtual-render/virtual-render.css +374 -24
  595. package/lib/virtual-render/virtual-render.d.ts +12 -1
  596. package/lib/virtual-render/virtual-render.less +2 -31
  597. package/lib/virtual-render/virtual-render.variable.css +1207 -24
  598. package/lib/volar.components.d.ts +101 -0
  599. package/package.json +61 -42
  600. package/README_EN.md +0 -93
  601. package/dist/bkui-vue.cjs.js +0 -20339
  602. package/dist/bkui-vue.esm.js +0 -20282
  603. package/dist/bkui-vue.umd.js +0 -20342
  604. package/lib/alert/alert.js +0 -1
  605. package/lib/backtop/backtop.js +0 -1
  606. package/lib/badge/badge.js +0 -1
  607. package/lib/breadcrumb/breadcrumb.js +0 -1
  608. package/lib/button/button.js +0 -1
  609. package/lib/card/card.js +0 -1
  610. package/lib/checkbox/checkbox.js +0 -1
  611. package/lib/code-diff/code-diff.js +0 -1
  612. package/lib/collapse/collapse.js +0 -1
  613. package/lib/date-picker/date-picker.js +0 -1
  614. package/lib/dialog/dialog.js +0 -1
  615. package/lib/directives/directives.js +0 -2
  616. package/lib/divider/divider.js +0 -1
  617. package/lib/dropdown/dropdown.js +0 -1
  618. package/lib/exception/exception.js +0 -1
  619. package/lib/form/common.d.ts +0 -3
  620. package/lib/form/form.js +0 -1
  621. package/lib/icon/icon.js +0 -1
  622. package/lib/input/input.js +0 -1
  623. package/lib/link/link.js +0 -1
  624. package/lib/loading/loading.js +0 -1
  625. package/lib/menu/menu.js +0 -1
  626. package/lib/message/message.js +0 -1
  627. package/lib/modal/modal.js +0 -1
  628. package/lib/navigation/navigation.js +0 -1
  629. package/lib/notify/notify.js +0 -1
  630. package/lib/pagination/pagination.js +0 -1
  631. package/lib/popover/popover.js +0 -1
  632. package/lib/process/process.js +0 -1
  633. package/lib/progress/progress.js +0 -1
  634. package/lib/radio/radio.js +0 -1
  635. package/lib/rate/rate.js +0 -1
  636. package/lib/resize-layout/resize-layout.js +0 -1
  637. package/lib/select/select.js +0 -1
  638. package/lib/shared/shared.js +0 -1
  639. package/lib/sideslider/sideslider.js +0 -1
  640. package/lib/slider/slider.js +0 -1
  641. package/lib/steps/steps.js +0 -1
  642. package/lib/swiper/swiper.js +0 -1
  643. package/lib/switcher/switcher.js +0 -1
  644. package/lib/tab/tab.js +0 -1
  645. package/lib/table/table.js +0 -1
  646. package/lib/tag/tag.js +0 -1
  647. package/lib/tag-input/tag-input.js +0 -1
  648. package/lib/timeline/timeline.js +0 -1
  649. package/lib/transfer/transfer.js +0 -1
  650. package/lib/tree/tree.js +0 -1
  651. package/lib/use-form.d.ts +0 -3
  652. package/lib/virtual-render/virtual-render.js +0 -1
@@ -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===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw a;return N()}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=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?h:v,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,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",f="executing",h="completed",p={};function m(){}function _(){}function g(){}var y={};u(y,a,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(V([])));b&&b!==n&&r.call(b,a)&&(y=b);var x=g.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 S(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 I(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function V(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:N}}function N(){return{value:t,done:!0}}return _.prototype=g,u(x,"constructor",g),u(g,"constructor",_),_.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(S.prototype),u(S.prototype,o,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new S(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=V,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(E),!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),E(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;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:V(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:()=>F,default:()=>j});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))&&h(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(){h(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",f,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}(e),e.__resize_rendered__=o(e).rendered,window.MutationObserver){var _=new MutationObserver(e.__resize_mutation_handler__);_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=_}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",f,!0)),this.__resize_rendered__=t,h(this))}function f(){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,h(i))},n||(n=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),n(t))}function h(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),_=l(6870),g=l(7162),y=l.n(g);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)(_.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 S(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 I,E=Symbol("SEARCH_SLECT_PROVIDER_KEY"),C=function(){return(0,t.inject)(E)};!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]:"|";S(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 N=(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},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),f=(0,t.ref)(""),h=(0,t.ref)(!1),p=(0,e.debounce)(300,A),m=!1,_=(0,t.ref)([]),g=(0,t.ref)([]),b=C(),x=b.editKey,k=b.onValidate,S=b.valueSplitCode;function L(e){switch(e.code){case"ArrowDown":case"ArrowUp":E(e);break;case"Enter":case"NumpadEnter":!function(e){if(m){e.preventDefault();var t=g.value.find((function(e){return e.id===f.value}));t&&O(t)}}(e)}}function E(e){var t;e.preventDefault(),null===(t=o.value)||void 0===t||t.blur();for(var n=g.value.length,r=n,i=g.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=g.value[i];if(!a.disabled){r=-1;var l=document.getElementById(a.id);return null==l||l.focus(),void(f.value=a.id)}r-=1}}function N(e){j(),e&&A()}function z(e){var t;return w(this,void 0,void 0,y().mark((function n(){var r,a,o,l;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null==e||e.preventDefault(),v.value){n.next=14;break}if(u.value){n.next=4;break}return n.abrupt("return");case 4:return r={id:u.value,name:u.value},n.next=7,T(r);case 7:if(n.sent){n.next=10;break}return n.abrupt("return");case 10:return i("add",new V(r,"text",S.value)),u.value="",A(),n.abrupt("return");case 14:if(null==(a=v.value.values)?void 0:a.length){n.next=40;break}if(!(null===(t=u.value)||void 0===t?void 0:t.length)){n.next=38;break}if(!u.value.includes(S.value)){n.next=27;break}return o=u.value.split(S.value),n.next=21,T({id:u.value,name:u.value});case 21:if(n.sent){n.next=24;break}return n.abrupt("return");case 24:o.forEach((function(e){return v.value.addValue({id:e,name:e})})),n.next=34;break;case 27:return l={id:u.value,name:u.value},n.next=30,T(l);case 30:if(n.sent){n.next=33;break}return n.abrupt("return");case 33:v.value.addValue(l);case 34:return i("add",v.value),u.value="",v.value=null,n.abrupt("return");case 38:return s.value=!0,n.abrupt("return");case 40:return n.next=42,T();case 42:if(n.sent){n.next=45;break}return n.abrupt("return");case 45:D();case 46:case"end":return n.stop()}}),n)})))}function O(e,t){var n,r,i,a;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(!(null===(n=e.value)||void 0===n?void 0:n.id)){l.next=5;break}return(s=new V(Object.assign(Object.assign({},e),{id:null!==(r=e.realId)&&void 0!==r?r:e.id}),t,S.value)).addValue(e.value),D(s),l.abrupt("return");case 5:if(v.value&&(null===(i=null==o?void 0:o.value)||void 0===i?void 0:i.innerText)){l.next=13;break}return v.value=new V(e,t,S.value),u.value="",(c="condition"===t)&&D(),d.value=c||!!v.value.children.length,j(),l.abrupt("return");case 13:if("condition"!==(null===(a=v.value)||void 0===a?void 0:a.type)){l.next=17;break}return v.value=new V(e,t,S.value),D(),l.abrupt("return");case 17:return v.value.addValue(e),l.next=20,T(e);case 20:if(l.sent){l.next=23;break}return l.abrupt("return");case 23:!v.value.multiple&&D();case 24:case"end":return l.stop()}}),l)})))}function T(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,F(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,F(i,e?[e]:o);case 9:return k(""),t.abrupt("return",!0);case 11:case"end":return t.stop()}}),t)})))}function F(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 j(){c.value=!0,d.value=!0,s.value=!1;var e=setTimeout((function(){if(o.value){o.value.focus();var t=window.getSelection();0===t.focusOffset&&(t.selectAllChildren(o.value),t.collapseToEnd())}window.clearTimeout(e)}),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;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 h.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,h.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:g.value=s;case 11:case"end":return l.stop()}}),l)})))}function D(e){i("add",null!=e?e:v.value),v.value=null,u.value="",j()}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)([g,d],(function(){var e;(null===(e=g.value)||void 0===e?void 0:e.some((function(e){return!e.disabled})))&&d.value?m||(f.value="",m=!0,document.addEventListener("keydown",L)):(document.removeEventListener("keydown",L),m=!1,f.value="")})),a({handleInputFocus:N,isFocus:c}),{popoverRef:l,inputRef:o,keyword:u,loading:h,remoteMenuList:_,menuList:g,menuHoverId:f,isFocus:c,usingItem:v,showPopover:d,showNoSelectValueError:s,debounceSetMenuList:p,documentArrowEvent:E,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:N,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,S.value).replace(/\s{2}/gm,""),o.value.innerText=c,j(),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(),j(),p())},handleInputKeyup:function(e){switch(e.code){case"Enter":case"NumpadEnter":z(e);break;case"Backspace":v.value||u.value?(null===(n=v.value)||void 0===n?void 0:n.values.length)&&((null===(r=v.value)||void 0===r?void 0:r.multiple)||v.value.isInValueList(v.value.values[0]))?(v.value.values.splice(-1,1),u.value="",j()):k(""):(i("delete"),(0,t.nextTick)(A));default:s.value=!1}var n,r},handleSelectItem:O,handleSelectCondtionItem:function(e){O(e,"condition")},handleMenuFooterClick:function(e){switch(e.id){case"confirm":z();break;case"cancel":v.value.values=[],j()}}}},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}})}}),z=(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},emits:["delete"],setup:function(e,n){var r=n.emit,i=(0,t.ref)(null),a=C(),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)(N,{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,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)(_.Close,{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 O={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}};const T=(0,t.defineComponent)({name:"SearchSelect",directives:{clickoutside:m.clickoutside},props:O,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)([]),h=(0,t.ref)(-1),p=(0,e.debounce)(32,k),m=(0,t.ref)(""),_=(0,t.ref)(""),g=(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){_.value=e||""}function k(){if(u.value||v.value.length<1)h.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(h.value=o);(i+=s?s.clientWidth+6:0)>=t-40&&(a=o),o+=1}a===r.length-1&&i<=t?h.value=-1:h.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,g.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",f),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:g},(0,t.provide)(E,i),{inputRef:o,wrapRef:l,isFocus:u,copyData:y,selectedList:v,overflowIndex:h,validateStr:_,splitCode:g,onEditClick:w,onEditEnter:b,handleWrapClick:function(){m.value||o.value.handleInputFocus()},handleInputFocus:function(e){e&&(h.value=-1),u.value=e},handleResize:k,handleClearAll:function(){v.value=[],h.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)(z,{data:this.copyData,conditions:this.conditions,selectedList:this.selectedList,overflowIndex:this.overflowIndex,getMenuList:this.getMenuList,validateValues:this.validateValues,onDelete:this.handleDeleteSelected},Object.assign({},o)),(0,t.createVNode)("div",{class:"search-container-input"},[(0,t.createVNode)(N,{ref:"inputRef",data:this.copyData,showInputBefore:!this.selectedList.length,showCondition:a,conditions:this.conditions,clickOutside:this.handleInputOutside,getMenuList:this.getMenuList,validateValues:this.validateValues,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 F=(0,e.withInstall)(T);const j=F})(),u})()));
@@ -0,0 +1,87 @@
1
+ import { PropType, Ref } from 'vue';
2
+ import { GetMenuListFunc, ICommonItem, IMenuFooterItem, ISearchItem, SearchInputMode, SearchItemType, SelectedItem, ValidateValuesFunc } 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
+ }, {
23
+ popoverRef: Ref<HTMLDivElement>;
24
+ inputRef: Ref<HTMLDivElement>;
25
+ keyword: Ref<string>;
26
+ loading: Ref<boolean>;
27
+ remoteMenuList: Ref<{
28
+ id: string;
29
+ name: string;
30
+ disabled?: boolean;
31
+ realId?: string;
32
+ value?: {
33
+ name: string;
34
+ id: string;
35
+ realId?: string;
36
+ isSelected?: boolean;
37
+ };
38
+ isSelected?: boolean;
39
+ }[]>;
40
+ menuList: Ref<ISearchItem[]>;
41
+ menuHoverId: Ref<string>;
42
+ isFocus: Ref<boolean>;
43
+ usingItem: Ref<SelectedItem>;
44
+ showPopover: Ref<boolean>;
45
+ showNoSelectValueError: Ref<boolean>;
46
+ debounceSetMenuList: {
47
+ (this: any): any;
48
+ cancel(): void;
49
+ };
50
+ documentArrowEvent: (e: KeyboardEvent) => void;
51
+ handleClickOutside: (e: MouseEvent) => void;
52
+ handleInputFocus: (e: FocusEvent) => void;
53
+ handleInputChange: (event: Event) => void;
54
+ handleInputKeyup: (event: KeyboardEvent) => void;
55
+ handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
56
+ handleSelectCondtionItem: (item: ICommonItem) => void;
57
+ handleMenuFooterClick: (item: IMenuFooterItem) => void;
58
+ }, 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<{
59
+ data: {
60
+ type: PropType<ISearchItem[]>;
61
+ required: true;
62
+ };
63
+ showInputBefore: BooleanConstructor;
64
+ showCondition: BooleanConstructor;
65
+ clickOutside: FunctionConstructor;
66
+ conditions: {
67
+ type: PropType<ICommonItem[]>;
68
+ default: () => any[];
69
+ };
70
+ defautUsingItem: PropType<SelectedItem>;
71
+ mode: {
72
+ type: PropType<SearchInputMode>;
73
+ default: SearchInputMode;
74
+ };
75
+ getMenuList: PropType<GetMenuListFunc>;
76
+ validateValues: PropType<ValidateValuesFunc>;
77
+ }>> & {
78
+ onFocus?: (...args: any[]) => any;
79
+ onAdd?: (...args: any[]) => any;
80
+ onDelete?: (...args: any[]) => any;
81
+ }, {
82
+ mode: SearchInputMode;
83
+ conditions: ICommonItem[];
84
+ showInputBefore: boolean;
85
+ showCondition: boolean;
86
+ }>;
87
+ 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;