bkui-vue 0.0.1-beta.1 → 0.0.1-beta.13

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 (348) hide show
  1. package/LICENSE.txt +22 -0
  2. package/README.md +55 -0
  3. package/dist/bkui-vue.cjs.js +9957 -257
  4. package/dist/bkui-vue.esm.js +9919 -257
  5. package/dist/bkui-vue.umd.js +9967 -267
  6. package/dist/style.css +4010 -428
  7. package/lib/alert/alert.css +75 -0
  8. package/lib/alert/alert.d.ts +53 -0
  9. package/lib/alert/alert.less +110 -0
  10. package/lib/alert/alert.variable.css +161 -0
  11. package/lib/alert/index.d.ts +144 -0
  12. package/lib/alert/index.js +1 -0
  13. package/lib/animate-number/animate-number.d.ts +22 -0
  14. package/lib/animate-number/index.d.ts +77 -0
  15. package/lib/animate-number/index.js +1 -0
  16. package/lib/backtop/backtop.css +42 -0
  17. package/lib/backtop/backtop.d.ts +46 -0
  18. package/lib/backtop/backtop.less +18 -0
  19. package/lib/backtop/backtop.variable.css +128 -0
  20. package/lib/backtop/index.d.ts +110 -0
  21. package/lib/backtop/index.js +1 -0
  22. package/lib/badge/badge.css +121 -0
  23. package/lib/badge/badge.d.ts +70 -0
  24. package/lib/badge/badge.less +137 -0
  25. package/lib/badge/badge.variable.css +207 -0
  26. package/lib/badge/index.d.ts +149 -0
  27. package/lib/badge/index.js +1 -0
  28. package/lib/breadcrumb/breadcrumb-item.d.ts +32 -0
  29. package/lib/breadcrumb/breadcrumb.css +59 -0
  30. package/lib/breadcrumb/breadcrumb.d.ts +26 -0
  31. package/lib/breadcrumb/breadcrumb.less +54 -0
  32. package/lib/breadcrumb/breadcrumb.variable.css +145 -0
  33. package/lib/breadcrumb/index.d.ts +122 -0
  34. package/lib/breadcrumb/index.js +1 -0
  35. package/lib/breadcrumb/props.d.ts +4 -0
  36. package/lib/button/button-group.d.ts +8 -0
  37. package/lib/button/button.css +242 -22
  38. package/lib/button/button.d.ts +114 -0
  39. package/lib/button/button.less +180 -36
  40. package/lib/button/button.variable.css +339 -0
  41. package/lib/button/index.d.ts +170 -0
  42. package/lib/button/index.js +1 -206
  43. package/lib/card/card.css +63 -0
  44. package/lib/card/card.d.ts +54 -0
  45. package/lib/card/card.less +44 -0
  46. package/lib/card/card.variable.css +149 -0
  47. package/lib/card/index.d.ts +127 -0
  48. package/lib/card/index.js +1 -0
  49. package/lib/checkbox/checkbox-group.d.ts +44 -0
  50. package/lib/checkbox/checkbox.css +54 -125
  51. package/lib/checkbox/checkbox.d.ts +105 -0
  52. package/lib/checkbox/checkbox.less +66 -6
  53. package/lib/checkbox/checkbox.variable.css +150 -0
  54. package/lib/checkbox/common.d.ts +13 -0
  55. package/lib/checkbox/index.d.ts +221 -0
  56. package/lib/checkbox/index.js +1 -64
  57. package/lib/checkbox/type.d.ts +19 -0
  58. package/lib/collapse/collapse.css +30 -0
  59. package/lib/collapse/collapse.d.ts +74 -0
  60. package/lib/collapse/collapse.less +37 -0
  61. package/lib/collapse/collapse.variable.css +30 -0
  62. package/lib/collapse/index.d.ts +130 -0
  63. package/lib/collapse/index.js +1 -0
  64. package/lib/components.d.ts +31 -0
  65. package/lib/date-picker/date-picker.css +407 -0
  66. package/lib/date-picker/date-picker.d.ts +357 -0
  67. package/lib/date-picker/date-picker.less +526 -0
  68. package/lib/date-picker/date-picker.variable.css +493 -0
  69. package/lib/date-picker/fecha.d.ts +6 -0
  70. package/lib/date-picker/index.d.ts +525 -0
  71. package/lib/date-picker/index.js +1 -0
  72. package/lib/date-picker/interface.d.ts +22 -0
  73. package/lib/date-picker/utils.d.ts +97 -0
  74. package/lib/dialog/dialog.css +68 -0
  75. package/lib/dialog/dialog.d.ts +83 -0
  76. package/lib/dialog/dialog.less +80 -0
  77. package/lib/dialog/dialog.variable.css +68 -0
  78. package/lib/dialog/index.d.ts +183 -0
  79. package/lib/dialog/index.js +1 -0
  80. package/lib/directives/clickoutside.d.ts +23 -0
  81. package/lib/directives/index.d.ts +3 -0
  82. package/lib/directives/index.js +15 -0
  83. package/lib/directives/mousewheel.d.ts +3 -0
  84. package/lib/directives/tooltips.d.ts +17 -0
  85. package/lib/divider/divider.css +38 -0
  86. package/lib/divider/divider.d.ts +40 -0
  87. package/lib/divider/divider.less +53 -0
  88. package/lib/divider/divider.variable.css +124 -0
  89. package/lib/divider/index.d.ts +110 -0
  90. package/lib/divider/index.js +1 -0
  91. package/lib/dropdown/dropdown-item.d.ts +18 -0
  92. package/lib/dropdown/dropdown-menu.d.ts +15 -0
  93. package/lib/dropdown/dropdown.css +43 -0
  94. package/lib/dropdown/dropdown.d.ts +49 -0
  95. package/lib/dropdown/dropdown.less +54 -0
  96. package/lib/dropdown/dropdown.variable.css +129 -0
  97. package/lib/dropdown/index.d.ts +160 -0
  98. package/lib/dropdown/index.js +1 -0
  99. package/lib/exception/exception.css +32 -0
  100. package/lib/exception/exception.d.ts +24 -0
  101. package/lib/exception/exception.less +39 -0
  102. package/lib/exception/exception.variable.css +118 -0
  103. package/lib/exception/index.d.ts +88 -0
  104. package/lib/exception/index.js +1 -0
  105. package/lib/fixed-navbar/fixed-navbar.css +42 -0
  106. package/lib/fixed-navbar/fixed-navbar.d.ts +28 -0
  107. package/lib/fixed-navbar/fixed-navbar.less +53 -0
  108. package/lib/fixed-navbar/fixed-navbar.variable.css +128 -0
  109. package/lib/fixed-navbar/index.d.ts +88 -0
  110. package/lib/fixed-navbar/index.js +1 -0
  111. package/lib/form/common.d.ts +3 -0
  112. package/lib/form/form-item.d.ts +140 -0
  113. package/lib/form/form.css +39 -0
  114. package/lib/form/form.d.ts +76 -0
  115. package/lib/form/form.less +50 -0
  116. package/lib/form/form.variable.css +39 -0
  117. package/lib/form/index.d.ts +4 -0
  118. package/lib/form/index.js +1 -0
  119. package/lib/form/type.d.ts +21 -0
  120. package/lib/form/validator.d.ts +8 -0
  121. package/lib/icon/angle-double-left.d.ts +4 -0
  122. package/lib/icon/angle-double-right.d.ts +4 -0
  123. package/lib/icon/angle-down-line.d.ts +4 -0
  124. package/lib/icon/angle-down.d.ts +4 -0
  125. package/lib/icon/angle-left.d.ts +4 -0
  126. package/lib/icon/angle-right.d.ts +4 -0
  127. package/lib/icon/angle-up.d.ts +4 -0
  128. package/lib/icon/circle.d.ts +4 -0
  129. package/lib/icon/close.d.ts +4 -0
  130. package/lib/icon/code.d.ts +4 -0
  131. package/lib/icon/cog-shape.d.ts +4 -0
  132. package/lib/icon/collapse-left.d.ts +4 -0
  133. package/lib/icon/copy.d.ts +4 -0
  134. package/lib/icon/done.d.ts +4 -0
  135. package/lib/icon/down-shape.d.ts +4 -0
  136. package/lib/icon/down-small.d.ts +4 -0
  137. package/lib/icon/error.d.ts +4 -0
  138. package/lib/icon/eye.d.ts +4 -0
  139. package/lib/icon/folder-open.d.ts +4 -0
  140. package/lib/icon/folder-shape-open.d.ts +4 -0
  141. package/lib/icon/folder-shape.d.ts +4 -0
  142. package/lib/icon/folder.d.ts +4 -0
  143. package/lib/icon/help-document-fill.d.ts +4 -0
  144. package/lib/icon/help-fill.d.ts +4 -0
  145. package/lib/icon/help.d.ts +4 -0
  146. package/lib/icon/icon.d.ts +12 -0
  147. package/lib/icon/index.d.ts +38 -0
  148. package/lib/icon/index.js +15 -0
  149. package/lib/icon/info-line.d.ts +4 -0
  150. package/lib/icon/info.d.ts +4 -0
  151. package/lib/icon/play-shape.d.ts +4 -0
  152. package/lib/icon/plus.d.ts +4 -0
  153. package/lib/icon/right-shape.d.ts +4 -0
  154. package/lib/icon/search.d.ts +4 -0
  155. package/lib/icon/share.d.ts +4 -0
  156. package/lib/icon/success.d.ts +4 -0
  157. package/lib/icon/switcher-loading.d.ts +4 -0
  158. package/lib/icon/text-file.d.ts +4 -0
  159. package/lib/icon/tree-application-shape.d.ts +4 -0
  160. package/lib/icon/unvisible.d.ts +4 -0
  161. package/lib/icon/warn.d.ts +4 -0
  162. package/lib/index.d.ts +3 -0
  163. package/lib/input/index.d.ts +275 -0
  164. package/lib/input/index.js +15 -60
  165. package/lib/input/input.css +114 -148
  166. package/lib/input/input.d.ts +185 -0
  167. package/lib/input/input.less +107 -40
  168. package/lib/input/input.variable.css +218 -0
  169. package/lib/link/index.d.ts +116 -0
  170. package/lib/link/index.js +1 -0
  171. package/lib/link/link.css +55 -0
  172. package/lib/link/link.d.ts +46 -0
  173. package/lib/link/link.less +74 -0
  174. package/lib/link/link.variable.css +141 -0
  175. package/lib/loading/index.d.ts +125 -0
  176. package/lib/loading/index.js +1 -0
  177. package/lib/loading/loading.css +225 -0
  178. package/lib/loading/loading.d.ts +64 -0
  179. package/lib/loading/loading.less +181 -0
  180. package/lib/loading/loading.variable.css +311 -0
  181. package/lib/menu/index.d.ts +169 -0
  182. package/lib/menu/index.js +1 -0
  183. package/lib/menu/menu-group.d.ts +13 -0
  184. package/lib/menu/menu-item.d.ts +15 -0
  185. package/lib/menu/menu.css +182 -0
  186. package/lib/menu/menu.d.ts +60 -0
  187. package/lib/menu/menu.less +180 -0
  188. package/lib/menu/menu.variable.css +268 -0
  189. package/lib/menu/submenu.d.ts +21 -0
  190. package/lib/menu/submenu.less +5 -0
  191. package/lib/menu/submenu.variable.css +86 -0
  192. package/lib/menu/utils.d.ts +41 -0
  193. package/lib/message/index.d.ts +2 -0
  194. package/lib/message/index.js +1 -0
  195. package/lib/message/message.css +53 -0
  196. package/lib/message/message.less +61 -0
  197. package/lib/message/message.variable.css +139 -0
  198. package/lib/message/messageConstructor.d.ts +61 -0
  199. package/lib/modal/index.d.ts +155 -0
  200. package/lib/modal/index.js +1 -0
  201. package/lib/modal/modal.css +11 -0
  202. package/lib/modal/modal.d.ts +47 -0
  203. package/lib/modal/modal.less +12 -0
  204. package/lib/modal/modal.variable.css +11 -0
  205. package/lib/modal/props.mixin.d.ts +22 -0
  206. package/lib/navigation/index.d.ts +2 -0
  207. package/lib/navigation/index.js +1 -0
  208. package/lib/navigation/navigation-title.d.ts +22 -0
  209. package/lib/navigation/navigation.css +184 -0
  210. package/lib/navigation/navigation.d.ts +94 -0
  211. package/lib/navigation/navigation.less +210 -0
  212. package/lib/navigation/navigation.variable.css +270 -0
  213. package/lib/notify/index.d.ts +2 -0
  214. package/lib/notify/index.js +1 -0
  215. package/lib/notify/notify.css +49 -0
  216. package/lib/notify/notify.less +58 -0
  217. package/lib/notify/notify.variable.css +135 -0
  218. package/lib/notify/notifyConstructor.d.ts +75 -0
  219. package/lib/popover/index.d.ts +202 -0
  220. package/lib/popover/index.js +1 -0
  221. package/lib/popover/popover.css +55 -0
  222. package/lib/popover/popover.d.ts +88 -0
  223. package/lib/popover/popover.less +70 -0
  224. package/lib/popover/popover.variable.css +141 -0
  225. package/lib/preset.d.ts +8 -0
  226. package/lib/progress/circle.d.ts +6 -0
  227. package/lib/progress/index.d.ts +228 -0
  228. package/lib/progress/index.js +1 -0
  229. package/lib/progress/line.d.ts +6 -0
  230. package/lib/progress/progress.css +97 -0
  231. package/lib/progress/progress.d.ts +118 -0
  232. package/lib/progress/progress.less +94 -0
  233. package/lib/progress/progress.variable.css +183 -0
  234. package/lib/radio/common.d.ts +13 -0
  235. package/lib/radio/index.d.ts +228 -0
  236. package/lib/radio/index.js +1 -61
  237. package/lib/radio/radio-button.d.ts +83 -0
  238. package/lib/radio/radio-group.d.ts +40 -0
  239. package/lib/radio/radio.css +128 -125
  240. package/lib/radio/radio.d.ts +77 -0
  241. package/lib/radio/radio.less +173 -20
  242. package/lib/radio/radio.variable.css +224 -0
  243. package/lib/radio/type.d.ts +9 -0
  244. package/lib/rate/index.d.ts +101 -0
  245. package/lib/rate/index.js +1 -0
  246. package/lib/rate/rate.css +10 -0
  247. package/lib/rate/rate.d.ts +29 -0
  248. package/lib/rate/rate.less +11 -0
  249. package/lib/rate/rate.variable.css +10 -0
  250. package/lib/rate/star.css +24 -0
  251. package/lib/rate/star.d.ts +57 -0
  252. package/lib/rate/star.less +29 -0
  253. package/lib/rate/star.variable.css +24 -0
  254. package/lib/select/common.d.ts +28 -0
  255. package/lib/select/index.d.ts +950 -0
  256. package/lib/select/index.js +15 -0
  257. package/lib/select/option.d.ts +32 -0
  258. package/lib/select/optionGroup.d.ts +115 -0
  259. package/lib/select/select.css +157 -0
  260. package/lib/select/select.d.ts +285 -0
  261. package/lib/select/select.less +203 -0
  262. package/lib/select/select.variable.css +243 -0
  263. package/lib/shared/bk-helper-core.d.ts +87 -0
  264. package/lib/shared/bk-mask-manager.d.ts +47 -0
  265. package/lib/shared/bk-pop-manager.d.ts +19 -0
  266. package/lib/shared/bk-popover.d.ts +86 -0
  267. package/lib/shared/index.d.ts +51 -0
  268. package/lib/shared/index.js +1 -13
  269. package/lib/shared/scrollbar-width.d.ts +1 -0
  270. package/lib/shared/vue-types.d.ts +115 -0
  271. package/lib/shared/z-index-manager.d.ts +93 -0
  272. package/lib/sideslider/index.d.ts +139 -0
  273. package/lib/sideslider/index.js +1 -0
  274. package/lib/sideslider/sideslider.css +69 -0
  275. package/lib/sideslider/sideslider.d.ts +54 -0
  276. package/lib/sideslider/sideslider.less +86 -0
  277. package/lib/sideslider/sideslider.variable.css +155 -0
  278. package/lib/slider/index.d.ts +27 -0
  279. package/lib/slider/index.js +15 -0
  280. package/lib/slider/slider-button.d.ts +72 -0
  281. package/lib/slider/slider.css +149 -0
  282. package/lib/slider/slider.d.ts +159 -0
  283. package/lib/slider/slider.less +179 -0
  284. package/lib/slider/slider.variable.css +235 -0
  285. package/lib/steps/index.d.ts +198 -0
  286. package/lib/steps/index.js +15 -0
  287. package/lib/steps/steps.css +285 -0
  288. package/lib/steps/steps.d.ts +148 -0
  289. package/lib/steps/steps.less +320 -0
  290. package/lib/steps/steps.variable.css +371 -0
  291. package/lib/styles/index.d.ts +38 -0
  292. package/lib/styles/index.js +1 -0
  293. package/lib/styles/mixins/animate.css +21 -0
  294. package/lib/styles/mixins/animate.less +27 -0
  295. package/lib/styles/mixins/animate.variable.css +21 -0
  296. package/lib/styles/mixins/ellipsis.less +8 -0
  297. package/lib/styles/mixins/mixins.css +21 -0
  298. package/lib/styles/mixins/mixins.less +2 -0
  299. package/lib/styles/mixins/mixins.variable.css +21 -0
  300. package/lib/styles/mixins/popper.css +43 -0
  301. package/lib/styles/mixins/popper.less +52 -0
  302. package/lib/styles/mixins/popper.variable.css +43 -0
  303. package/lib/styles/mixins/size.less +10 -1
  304. package/lib/styles/reset.css +273 -0
  305. package/lib/styles/reset.less +313 -0
  306. package/lib/styles/reset.variable.css +273 -0
  307. package/lib/styles/themes/themes.less +84 -284
  308. package/lib/switcher/index.d.ts +222 -0
  309. package/lib/switcher/index.js +1 -0
  310. package/lib/switcher/switcher.css +258 -0
  311. package/lib/switcher/switcher.d.ts +97 -0
  312. package/lib/switcher/switcher.less +302 -0
  313. package/lib/switcher/switcher.variable.css +344 -0
  314. package/lib/tab/index.d.ts +416 -0
  315. package/lib/tab/index.js +1 -0
  316. package/lib/tab/tab-nav.d.ts +154 -0
  317. package/lib/tab/tab-panel.d.ts +46 -0
  318. package/lib/tab/tab.css +147 -0
  319. package/lib/tab/tab.d.ts +131 -0
  320. package/lib/tab/tab.less +221 -0
  321. package/lib/tab/tab.variable.css +233 -0
  322. package/lib/table/index.d.ts +119 -0
  323. package/lib/table/index.js +1 -0
  324. package/lib/table/props.d.ts +41 -0
  325. package/lib/table/render.d.ts +47 -0
  326. package/lib/table/table.css +44 -0
  327. package/lib/table/table.d.ts +26 -0
  328. package/lib/table/table.less +67 -0
  329. package/lib/table/table.variable.css +130 -0
  330. package/lib/table/utils.d.ts +22 -0
  331. package/lib/tag/index.d.ts +338 -0
  332. package/lib/tag/index.js +1 -0
  333. package/lib/tag/tag.d.ts +54 -0
  334. package/lib/tag/tag.less +5 -0
  335. package/lib/tag/tag.variable.css +86 -0
  336. package/lib/tree/index.d.ts +149 -0
  337. package/lib/tree/index.js +1 -0
  338. package/lib/tree/tree.css +35 -0
  339. package/lib/tree/tree.d.ts +58 -0
  340. package/lib/tree/tree.less +55 -0
  341. package/lib/tree/tree.variable.css +35 -0
  342. package/lib/tree/util.d.ts +89 -0
  343. package/lib/use-message.d.ts +2 -0
  344. package/package.json +92 -40
  345. package/lib/styles/mixins/size.css +0 -0
  346. package/lib/styles/themes/themes.css +0 -119
  347. package/lib/styles/themes/variables.css +0 -27
  348. package/lib/styles/themes/variables.less +0 -36
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../popover"),require("../directives"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../popover","../directives","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e.Popover,e.Directives,e["@bkui-vue/icon/icons"])}(this,(function(e,t,r,n,o,i){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(n);function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c={exports:{}},s={exports:{}},p={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.default=e.exports,e.exports.__esModule=!0}(p),function(e){var t=p.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var f={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(f);var d={exports:{}};!function(e){var t=p.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(d);var v={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(v),function(e){var t=s.exports,r=f.exports,n=d.exports,o=v.exports;e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.default=e.exports,e.exports.__esModule=!0}(c);var h=l(c.exports),y={exports:{}};!function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0}(y);var m=l(y.exports),g={exports:{}};!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n=p;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=L(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var l=s(e,t,r);if("normal"===l.type){if(n=r.done?v:f,l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=v,r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p="suspendedStart",f="suspendedYield",d="executing",v="completed",h={};function y(){}function m(){}function g(){}var b={};l(b,i,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==r&&n.call(w,i)&&(b=w);var k=g.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,u){var l=s(e[o],e,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,u)}))}u(l.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function L(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=s(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function T(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){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:E}}function E(){return{value:t,done:!0}}return m.prototype=g,l(k,"constructor",g),l(g,"constructor",m),m.displayName=l(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},O(P.prototype),l(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(k),l(k,u,"Generator"),l(k,i,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=N,S.prototype={constructor:S,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)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(g);var b=g.exports;
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function x(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function u(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}l((n=n.apply(e,t||[])).next())}))}var w=Symbol("BkSelect"),k=Symbol("BkOptionGroup");var O=t.defineComponent({name:"BkSelect",directives:{clickoutside:o.clickoutside},props:{modelValue:r.PropTypes.any,multiple:r.PropTypes.bool.def(!1),placeholder:r.PropTypes.string.def("请选择"),disabled:r.PropTypes.bool.def(!1),size:r.PropTypes.size().def("small"),clearable:r.PropTypes.bool.def(!0),loading:r.PropTypes.bool.def(!1),filterable:r.PropTypes.bool.def(!0),remoteMethod:r.PropTypes.func},emits:["update:modelValue","change","toggle"],setup:function(e,r){var n=this,o=r.emit,i=t.toRefs(e),a=i.modelValue,u=i.disabled,l=i.size,c=i.filterable,s=i.placeholder,p=i.multiple,f=i.clearable,d=i.remoteMethod,v=t.ref(),y=t.ref(new Set),g=function(){var e=t.ref(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),k=g.isHover,O=g.setHover,P=g.cancelHover,L=function(){var e=t.ref(!1);return{isFocus:e,handleFocus:function(){e.value=!0},handleBlur:function(){e.value=!1}}}(),T=L.isFocus,_=L.handleFocus,S=L.handleBlur,N=t.computed((function(){return m({"bk-select":!0,"popover-show":C.value,"is-disabled":u.value,"is-focus":T.value},l.value,!0)})),E=t.ref(new Set),j=t.computed((function(){return h(E.value.values()).map((function(e){return e.label})).join(",")})),V=t.ref("auto"),C=t.ref(!1),M=function(){C.value=!1};t.watch(C,(function(){C.value||(F.value="")}));var B=function(e){e!==a.value&&(o("change",e),o("update:modelValue",e))},F=function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return t.customRef((function(t,o){return{get:function(){return t(),e},set:function(t){clearTimeout(r),r=setTimeout((function(){e=t,o()}),n)}}}))}(""),A=t.computed((function(){return"function"==typeof d.value})),G=t.ref(!1),H=t.computed((function(){return h(y.value.values()).every((function(e){return!e.visible}))}));return t.watch(F,(function(){return x(n,void 0,void 0,b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A.value?x(n,void 0,void 0,b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,G.value=!0,e.next=4,d.value(F.value);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0);case 9:return e.prev=9,G.value=!1,e.finish(9);case 12:case"end":return e.stop()}}),e,null,[[0,6,9,12]])}))):y.value.forEach((function(e){var t,r=F.value.trim().toLowerCase();Object.assign(e,{visible:!r||(null===(t=e.label)||void 0===t?void 0:t.toString().toLowerCase().includes(r))})}));case 1:case"end":return e.stop()}}),e)})))})),t.provide(w,t.reactive({props:e,register:function(e){if(e)return y.value.add(e)},unregister:function(e){return y.value.delete(e)},handleOptionSelected:function(e){u.value||(p.value?(E.value.has(e)?E.value.delete(e):E.value.add(e),B(h(E.value.values()).map((function(e){return e.value})))):(E.value.clear(),E.value.add(e),B(e.value),M()))},selectedOptions:t.unref(E)})),t.onMounted((function(){var e=Array.isArray(a.value)?a.value:[a.value];y.value.forEach((function(t){e.includes(t.value)&&E.value.add(t)}))})),{options:y,selectedOptions:E,selectedLabel:j,selectClass:N,isPopoverShow:C,placeholder:s,filterable:c,clearable:f,isHover:k,popperWidth:V,selectTriggerRef:v,searchKey:F,searchLoading:G,isEmpty:H,setHover:O,cancelHover:P,handleFocus:_,handleBlur:S,toggleMenu:function(){u.value||(C.value=!C.value,o("toggle",C.value))},handleClear:function(e){e.stopPropagation(),E.value.clear(),B(p.value?[]:""),M()},onPopoverFirstUpdate:function(e){var t=e.elements.reference;V.value=t.offsetWidth},hidePopover:M,showPopover:function(){C.value=!0}}},render:function(){var e=this;return t.withDirectives(t.createVNode("div",{class:this.selectClass},[t.createVNode(u.default,{theme:"light",trigger:"manual",width:this.popperWidth,arrow:!1,placement:"bottom",isShow:this.isPopoverShow,modifiers:[{name:"offset",options:{offset:[0,5]}}],handleFirstUpdate:this.onPopoverFirstUpdate},{default:function(){var r,n;return t.createVNode("div",{class:"bk-select-trigger",ref:"selectTriggerRef",onClick:e.toggleMenu,onMouseenter:e.setHover,onMouseleave:e.cancelHover},[t.createVNode("span",{class:"bk-select-prefix"},[null===(n=(r=e.$slots).prefix)||void 0===n?void 0:n.call(r)]),t.createVNode("input",{type:"text",class:"bk-select-input",value:e.selectedLabel,placeholder:e.placeholder,readonly:e.filterable,onFocus:e.handleFocus,onBlur:e.handleBlur},null),e.clearable&&e.isHover?t.createVNode(i.Close,{class:"clear-icon",onClick:e.handleClear},null):t.createVNode(i.AngleUp,{class:"angle-up"},null)])},content:function(){var r,n;return t.createVNode("div",{class:"bk-select-dropdown"},[e.filterable&&t.createVNode("div",{class:"bk-select-search"},[t.createVNode(i.Search,{class:"bk-select-search-icon"},null),t.withDirectives(t.createVNode("input",{autofocus:!0,class:"bk-select-search-input","onUpdate:modelValue":function(t){return e.searchKey=t}},null),[[t.vModelText,e.searchKey]])]),t.createVNode("ul",{class:"bk-select-options"},[e.isEmpty&&t.createVNode("li",{class:"bk-select-empty"},[t.createTextVNode("无匹配数据")]),null===(n=(r=e.$slots).default)||void 0===n?void 0:n.call(r)])])}})]),[[t.resolveDirective("clickoutside"),this.hidePopover]])}}),P=t.defineComponent({name:"BkOption",props:{value:r.PropTypes.oneOfType([String,Number,Boolean]),label:r.PropTypes.oneOfType([String,Number]),disabled:r.PropTypes.bool.def(!1)},setup:function(e){var r=t.getCurrentInstance().proxy,n=t.reactive({visible:!0}),o=t.toRefs(e).disabled,i=t.inject(w,null),a=t.computed((function(){return i.selectedOptions.has(r)})),u=t.computed((function(){return null==i?void 0:i.props.multiple})),l=t.computed((function(){return{"is-selected":a.value,"is-disabled":o.value,"is-multiple":u.value,"is-hover":!1,"bk-select-option":!0}}));return t.onBeforeMount((function(){null==i||i.register(r)})),t.onBeforeUnmount((function(){null==i||i.unregister(r)})),Object.assign(Object.assign({},t.toRefs(n)),{selectItemClass:l,selected:a,handleOptionClick:function(){o.value||null==i||i.handleOptionSelected(r)}})},render:function(){var e,r,n;return t.withDirectives(t.createVNode("li",{class:this.selectItemClass,onClick:this.handleOptionClick},[null!==(n=null===(r=(e=this.$slots).default)||void 0===r?void 0:r.call(e))&&void 0!==n?n:t.createVNode("span",null,[this.label])]),[[t.vShow,this.visible]])}}),L=t.defineComponent({name:"BkOptionGroup",props:{label:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1)},setup:function(e){var r=t.ref([]),n=t.getCurrentInstance(),o=t.computed((function(){return r.value.some((function(e){return e.visible}))}));t.provide(k,t.reactive(Object.assign({},t.toRefs(e))));var i=function e(t){var r=[];return Array.isArray(t.children)&&t.children.forEach((function(t){var n;t.type&&"BkOption"===t.type.name&&t.component&&t.component.proxy?r.push(t.component.proxy):(null===(n=t.children)||void 0===n?void 0:n.length)&&r.push.apply(r,h(e(t)))})),r};return t.onMounted((function(){r.value=i(n.subTree)})),{visible:o,children:r}},render:function(){var e,r;return t.withDirectives(t.createVNode("ul",{class:"bk-option-group"},[t.createVNode("li",{class:"bk-option-group-label"},[this.label]),t.createVNode("ul",{class:"bk-option-group-content"},[null===(r=(e=this.$slots).default)||void 0===r?void 0:r.call(e)])]),[[t.vShow,this.visible]])}}),T=r.withInstallProps(O,{Option:P,OptionGroup:L});e.BkOption=P,e.BkOptionGroup=L,e.BkSelect=T,e.default=T,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,32 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ value: import("vue-types").VueTypeDef<string | number | boolean>;
3
+ label: import("vue-types").VueTypeDef<string | number>;
4
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
5
+ default: boolean;
6
+ } & {
7
+ default: boolean;
8
+ };
9
+ }, {
10
+ selectItemClass: import("vue").ComputedRef<{
11
+ 'is-selected': boolean;
12
+ 'is-disabled': boolean;
13
+ 'is-multiple': boolean;
14
+ 'is-hover': boolean;
15
+ 'bk-select-option': boolean;
16
+ }>;
17
+ selected: import("vue").ComputedRef<boolean>;
18
+ handleOptionClick: () => void;
19
+ visible: import("vue").Ref<boolean>;
20
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
21
+ value?: unknown;
22
+ label?: unknown;
23
+ disabled?: unknown;
24
+ } & {
25
+ disabled: boolean;
26
+ } & {
27
+ label?: string | number;
28
+ value?: string | number | boolean;
29
+ }> & {}, {
30
+ disabled: boolean;
31
+ }>;
32
+ export default _default;
@@ -0,0 +1,115 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ label: import("vue-types").VueTypeValidableDef<string> & {
3
+ default: string;
4
+ } & {
5
+ default: string;
6
+ };
7
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
8
+ default: boolean;
9
+ } & {
10
+ default: boolean;
11
+ };
12
+ }, {
13
+ visible: import("vue").ComputedRef<boolean>;
14
+ children: import("vue").Ref<({
15
+ $: import("vue").ComponentInternalInstance;
16
+ $data: {};
17
+ $props: Partial<{
18
+ disabled: boolean;
19
+ }> & Omit<Readonly<{
20
+ value?: unknown;
21
+ label?: unknown;
22
+ disabled?: unknown;
23
+ } & {
24
+ disabled: boolean;
25
+ } & {
26
+ label?: string | number;
27
+ value?: string | number | boolean;
28
+ }> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled">;
29
+ $attrs: {
30
+ [x: string]: unknown;
31
+ };
32
+ $refs: {
33
+ [x: string]: unknown;
34
+ };
35
+ $slots: Readonly<{
36
+ [name: string]: import("vue").Slot;
37
+ }>;
38
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
39
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
40
+ $emit: (event: string, ...args: any[]) => void;
41
+ $el: any;
42
+ $options: import("vue").ComponentOptionsBase<Readonly<{
43
+ value?: unknown;
44
+ label?: unknown;
45
+ disabled?: unknown;
46
+ } & {
47
+ disabled: boolean;
48
+ } & {
49
+ label?: string | number;
50
+ value?: string | number | boolean;
51
+ }> & {}, {
52
+ selectItemClass: import("vue").ComputedRef<{
53
+ 'is-selected': boolean;
54
+ 'is-disabled': boolean;
55
+ 'is-multiple': boolean;
56
+ 'is-hover': boolean;
57
+ 'bk-select-option': boolean;
58
+ }>;
59
+ selected: import("vue").ComputedRef<boolean>;
60
+ handleOptionClick: () => void;
61
+ visible: import("vue").Ref<boolean>;
62
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
63
+ disabled: boolean;
64
+ }> & {
65
+ beforeCreate?: (() => void) | (() => void)[];
66
+ created?: (() => void) | (() => void)[];
67
+ beforeMount?: (() => void) | (() => void)[];
68
+ mounted?: (() => void) | (() => void)[];
69
+ beforeUpdate?: (() => void) | (() => void)[];
70
+ updated?: (() => void) | (() => void)[];
71
+ activated?: (() => void) | (() => void)[];
72
+ deactivated?: (() => void) | (() => void)[];
73
+ beforeDestroy?: (() => void) | (() => void)[];
74
+ beforeUnmount?: (() => void) | (() => void)[];
75
+ destroyed?: (() => void) | (() => void)[];
76
+ unmounted?: (() => void) | (() => void)[];
77
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
78
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
79
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
80
+ };
81
+ $forceUpdate: () => void;
82
+ $nextTick: typeof import("vue").nextTick;
83
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
84
+ } & Readonly<{
85
+ value?: unknown;
86
+ label?: unknown;
87
+ disabled?: unknown;
88
+ } & {
89
+ disabled: boolean;
90
+ } & {
91
+ label?: string | number;
92
+ value?: string | number | boolean;
93
+ }> & {} & import("vue").ShallowUnwrapRef<{
94
+ selectItemClass: import("vue").ComputedRef<{
95
+ 'is-selected': boolean;
96
+ 'is-disabled': boolean;
97
+ 'is-multiple': boolean;
98
+ 'is-hover': boolean;
99
+ 'bk-select-option': boolean;
100
+ }>;
101
+ selected: import("vue").ComputedRef<boolean>;
102
+ handleOptionClick: () => void;
103
+ visible: import("vue").Ref<boolean>;
104
+ }> & {} & {} & import("vue").ComponentCustomProperties)[]>;
105
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
106
+ label?: unknown;
107
+ disabled?: unknown;
108
+ } & {
109
+ label: string;
110
+ disabled: boolean;
111
+ } & {}> & {}, {
112
+ label: string;
113
+ disabled: boolean;
114
+ }>;
115
+ export default _default;
@@ -0,0 +1,157 @@
1
+ .bk-select {
2
+ display: inline-block;
3
+ }
4
+ .bk-select ul {
5
+ padding: 0;
6
+ margin: 0;
7
+ font-weight: normal;
8
+ list-style: none;
9
+ }
10
+ .bk-select .bk-popover-content {
11
+ padding: 0;
12
+ }
13
+ .bk-select.is-focus .bk-select-trigger .bk-select-input {
14
+ border-color: #3a84ff;
15
+ box-shadow: 0px 0px 3px 0px #a3c5fd;
16
+ }
17
+ .bk-select.is-disabled .bk-select-trigger .bk-select-input {
18
+ cursor: not-allowed;
19
+ background: #fafbfd;
20
+ border-color: #dcdee5;
21
+ box-shadow: unset;
22
+ }
23
+ .bk-select.popover-show .bk-select-trigger .angle-up {
24
+ transform: rotate(0);
25
+ }
26
+ .bk-select .bk-select-trigger {
27
+ position: relative;
28
+ cursor: pointer;
29
+ }
30
+ .bk-select .bk-select-trigger .bk-select-input {
31
+ height: 32px;
32
+ padding: 0 28px 0 10px;
33
+ font-size: 12px;
34
+ line-height: normal;
35
+ color: #63656e;
36
+ text-align: left;
37
+ vertical-align: middle;
38
+ cursor: pointer;
39
+ background-color: white;
40
+ border: 1px solid #c4c6cc;
41
+ border-radius: 2px;
42
+ outline: none;
43
+ box-sizing: border-box;
44
+ transition: all 0.1s;
45
+ resize: none;
46
+ }
47
+ .bk-select .bk-select-trigger .bk-select-input::placeholder {
48
+ color: #c4c6cc;
49
+ }
50
+ .bk-select .bk-select-trigger .bk-select-prefix {
51
+ position: absolute;
52
+ top: 6px;
53
+ left: 4px;
54
+ }
55
+ .bk-select .bk-select-trigger .angle-up {
56
+ transform: rotate(180deg);
57
+ transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ width: 20px;
62
+ height: 20px;
63
+ font-size: 20px;
64
+ color: #979ba5;
65
+ position: absolute;
66
+ top: 6px;
67
+ right: 4px;
68
+ }
69
+ .bk-select .bk-select-trigger .clear-icon {
70
+ transition: all 0.1s;
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ width: 20px;
75
+ height: 20px;
76
+ font-size: 14px;
77
+ color: #c4c6cc;
78
+ position: absolute;
79
+ top: 6px;
80
+ right: 4px;
81
+ }
82
+ .bk-select .bk-select-trigger .clear-icon:hover {
83
+ color: #979ba5;
84
+ }
85
+ .bk-select .bk-select-dropdown .bk-select-search {
86
+ position: relative;
87
+ padding: 0 5px;
88
+ }
89
+ .bk-select .bk-select-dropdown .bk-select-search-icon {
90
+ position: absolute;
91
+ top: 50%;
92
+ left: 8px;
93
+ font-size: 16px;
94
+ color: #979ba5;
95
+ transform: translateY(-50%);
96
+ }
97
+ .bk-select .bk-select-dropdown .bk-select-search-input {
98
+ width: 100%;
99
+ height: 32px;
100
+ padding: 0 10px 0 26px;
101
+ font-size: 12px;
102
+ cursor: text;
103
+ border: none;
104
+ border-bottom: 1px solid #dcdee5;
105
+ outline: 0;
106
+ }
107
+ .bk-select .bk-select-empty {
108
+ height: 32px;
109
+ font-size: 12px;
110
+ line-height: 32px;
111
+ color: #63656e;
112
+ text-align: center;
113
+ user-select: none;
114
+ }
115
+ .bk-select .bk-select-options {
116
+ padding: 6px 0;
117
+ }
118
+ .bk-select .bk-select-option {
119
+ height: 32px;
120
+ padding: 0 10px;
121
+ line-height: 32px;
122
+ color: #63656e;
123
+ text-align: left;
124
+ cursor: pointer;
125
+ user-select: none;
126
+ overflow: hidden;
127
+ text-overflow: ellipsis;
128
+ white-space: nowrap;
129
+ }
130
+ .bk-select .bk-select-option:hover {
131
+ color: #3a84ff;
132
+ background-color: #eaf3ff;
133
+ }
134
+ .bk-select .bk-select-option.is-selected {
135
+ color: #3a84ff;
136
+ background-color: #f4f6fa;
137
+ }
138
+ .bk-select .bk-select-option.is-selected.is-multiple::after {
139
+ position: absolute;
140
+ right: 20px;
141
+ font-size: 12px;
142
+ font-weight: 700;
143
+ content: '\2713';
144
+ }
145
+ .bk-select .bk-select-option.is-disabled {
146
+ color: #c4c6cc;
147
+ cursor: not-allowed;
148
+ background-color: transparent;
149
+ }
150
+ .bk-select .bk-option-group-label {
151
+ height: 32px;
152
+ margin: 0 10px;
153
+ line-height: 32px;
154
+ color: #979ba5;
155
+ text-align: left;
156
+ border-bottom: 1px solid #dcdee5;
157
+ }
@@ -0,0 +1,285 @@
1
+ import { OnFirstUpdateFnType } from '@bkui-vue/shared';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ modelValue: import("vue-types").VueTypeValidableDef<any>;
4
+ multiple: import("vue-types").VueTypeValidableDef<boolean> & {
5
+ default: boolean;
6
+ } & {
7
+ default: boolean;
8
+ };
9
+ placeholder: import("vue-types").VueTypeValidableDef<string> & {
10
+ default: string;
11
+ } & {
12
+ default: string;
13
+ };
14
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
15
+ default: boolean;
16
+ } & {
17
+ default: boolean;
18
+ };
19
+ size: import("vue-types").VueTypeDef<string> & {
20
+ default: string;
21
+ };
22
+ clearable: import("vue-types").VueTypeValidableDef<boolean> & {
23
+ default: boolean;
24
+ } & {
25
+ default: boolean;
26
+ };
27
+ loading: import("vue-types").VueTypeValidableDef<boolean> & {
28
+ default: boolean;
29
+ } & {
30
+ default: boolean;
31
+ };
32
+ filterable: import("vue-types").VueTypeValidableDef<boolean> & {
33
+ default: boolean;
34
+ } & {
35
+ default: boolean;
36
+ };
37
+ remoteMethod: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
38
+ default: (...args: any[]) => any;
39
+ };
40
+ }, {
41
+ options: import("vue").Ref<Set<{
42
+ $: import("vue").ComponentInternalInstance;
43
+ $data: {};
44
+ $props: Partial<{
45
+ disabled: boolean;
46
+ }> & Omit<Readonly<{
47
+ value?: unknown;
48
+ label?: unknown;
49
+ disabled?: unknown;
50
+ } & {
51
+ disabled: boolean;
52
+ } & {
53
+ label?: string | number;
54
+ value?: string | number | boolean;
55
+ }> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled">;
56
+ $attrs: {
57
+ [x: string]: unknown;
58
+ };
59
+ $refs: {
60
+ [x: string]: unknown;
61
+ };
62
+ $slots: Readonly<{
63
+ [name: string]: import("vue").Slot;
64
+ }>;
65
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
66
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
67
+ $emit: (event: string, ...args: any[]) => void;
68
+ $el: any;
69
+ $options: import("vue").ComponentOptionsBase<Readonly<{
70
+ value?: unknown;
71
+ label?: unknown;
72
+ disabled?: unknown;
73
+ } & {
74
+ disabled: boolean;
75
+ } & {
76
+ label?: string | number;
77
+ value?: string | number | boolean;
78
+ }> & {}, {
79
+ selectItemClass: import("vue").ComputedRef<{
80
+ 'is-selected': boolean;
81
+ 'is-disabled': boolean;
82
+ 'is-multiple': boolean;
83
+ 'is-hover': boolean;
84
+ 'bk-select-option': boolean;
85
+ }>;
86
+ selected: import("vue").ComputedRef<boolean>;
87
+ handleOptionClick: () => void;
88
+ visible: import("vue").Ref<boolean>;
89
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
90
+ disabled: boolean;
91
+ }> & {
92
+ beforeCreate?: (() => void) | (() => void)[];
93
+ created?: (() => void) | (() => void)[];
94
+ beforeMount?: (() => void) | (() => void)[];
95
+ mounted?: (() => void) | (() => void)[];
96
+ beforeUpdate?: (() => void) | (() => void)[];
97
+ updated?: (() => void) | (() => void)[];
98
+ activated?: (() => void) | (() => void)[];
99
+ deactivated?: (() => void) | (() => void)[];
100
+ beforeDestroy?: (() => void) | (() => void)[];
101
+ beforeUnmount?: (() => void) | (() => void)[];
102
+ destroyed?: (() => void) | (() => void)[];
103
+ unmounted?: (() => void) | (() => void)[];
104
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
105
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
106
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
107
+ };
108
+ $forceUpdate: () => void;
109
+ $nextTick: typeof import("vue").nextTick;
110
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
111
+ } & Readonly<{
112
+ value?: unknown;
113
+ label?: unknown;
114
+ disabled?: unknown;
115
+ } & {
116
+ disabled: boolean;
117
+ } & {
118
+ label?: string | number;
119
+ value?: string | number | boolean;
120
+ }> & {} & import("vue").ShallowUnwrapRef<{
121
+ selectItemClass: import("vue").ComputedRef<{
122
+ 'is-selected': boolean;
123
+ 'is-disabled': boolean;
124
+ 'is-multiple': boolean;
125
+ 'is-hover': boolean;
126
+ 'bk-select-option': boolean;
127
+ }>;
128
+ selected: import("vue").ComputedRef<boolean>;
129
+ handleOptionClick: () => void;
130
+ visible: import("vue").Ref<boolean>;
131
+ }> & {} & {} & import("vue").ComponentCustomProperties>>;
132
+ selectedOptions: import("vue").Ref<Set<{
133
+ $: import("vue").ComponentInternalInstance;
134
+ $data: {};
135
+ $props: Partial<{
136
+ disabled: boolean;
137
+ }> & Omit<Readonly<{
138
+ value?: unknown;
139
+ label?: unknown;
140
+ disabled?: unknown;
141
+ } & {
142
+ disabled: boolean;
143
+ } & {
144
+ label?: string | number;
145
+ value?: string | number | boolean;
146
+ }> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled">;
147
+ $attrs: {
148
+ [x: string]: unknown;
149
+ };
150
+ $refs: {
151
+ [x: string]: unknown;
152
+ };
153
+ $slots: Readonly<{
154
+ [name: string]: import("vue").Slot;
155
+ }>;
156
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
157
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
158
+ $emit: (event: string, ...args: any[]) => void;
159
+ $el: any;
160
+ $options: import("vue").ComponentOptionsBase<Readonly<{
161
+ value?: unknown;
162
+ label?: unknown;
163
+ disabled?: unknown;
164
+ } & {
165
+ disabled: boolean;
166
+ } & {
167
+ label?: string | number;
168
+ value?: string | number | boolean;
169
+ }> & {}, {
170
+ selectItemClass: import("vue").ComputedRef<{
171
+ 'is-selected': boolean;
172
+ 'is-disabled': boolean;
173
+ 'is-multiple': boolean;
174
+ 'is-hover': boolean;
175
+ 'bk-select-option': boolean;
176
+ }>;
177
+ selected: import("vue").ComputedRef<boolean>;
178
+ handleOptionClick: () => void;
179
+ visible: import("vue").Ref<boolean>;
180
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
181
+ disabled: boolean;
182
+ }> & {
183
+ beforeCreate?: (() => void) | (() => void)[];
184
+ created?: (() => void) | (() => void)[];
185
+ beforeMount?: (() => void) | (() => void)[];
186
+ mounted?: (() => void) | (() => void)[];
187
+ beforeUpdate?: (() => void) | (() => void)[];
188
+ updated?: (() => void) | (() => void)[];
189
+ activated?: (() => void) | (() => void)[];
190
+ deactivated?: (() => void) | (() => void)[];
191
+ beforeDestroy?: (() => void) | (() => void)[];
192
+ beforeUnmount?: (() => void) | (() => void)[];
193
+ destroyed?: (() => void) | (() => void)[];
194
+ unmounted?: (() => void) | (() => void)[];
195
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
196
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
197
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
198
+ };
199
+ $forceUpdate: () => void;
200
+ $nextTick: typeof import("vue").nextTick;
201
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
202
+ } & Readonly<{
203
+ value?: unknown;
204
+ label?: unknown;
205
+ disabled?: unknown;
206
+ } & {
207
+ disabled: boolean;
208
+ } & {
209
+ label?: string | number;
210
+ value?: string | number | boolean;
211
+ }> & {} & import("vue").ShallowUnwrapRef<{
212
+ selectItemClass: import("vue").ComputedRef<{
213
+ 'is-selected': boolean;
214
+ 'is-disabled': boolean;
215
+ 'is-multiple': boolean;
216
+ 'is-hover': boolean;
217
+ 'bk-select-option': boolean;
218
+ }>;
219
+ selected: import("vue").ComputedRef<boolean>;
220
+ handleOptionClick: () => void;
221
+ visible: import("vue").Ref<boolean>;
222
+ }> & {} & {} & import("vue").ComponentCustomProperties>>;
223
+ selectedLabel: import("vue").ComputedRef<string>;
224
+ selectClass: import("vue").ComputedRef<{
225
+ [x: string]: boolean;
226
+ 'bk-select': boolean;
227
+ 'popover-show': boolean;
228
+ 'is-disabled': boolean;
229
+ 'is-focus': boolean;
230
+ }>;
231
+ isPopoverShow: import("vue").Ref<boolean>;
232
+ placeholder: import("vue").Ref<string>;
233
+ filterable: import("vue").Ref<boolean>;
234
+ clearable: import("vue").Ref<boolean>;
235
+ isHover: import("vue").Ref<boolean>;
236
+ popperWidth: import("vue").Ref<string | number>;
237
+ selectTriggerRef: import("vue").Ref<HTMLElement>;
238
+ searchKey: import("vue").Ref<string>;
239
+ searchLoading: import("vue").Ref<boolean>;
240
+ isEmpty: import("vue").ComputedRef<boolean>;
241
+ setHover: () => void;
242
+ cancelHover: () => void;
243
+ handleFocus: () => void;
244
+ handleBlur: () => void;
245
+ toggleMenu: () => void;
246
+ handleClear: (e: Event) => void;
247
+ onPopoverFirstUpdate: OnFirstUpdateFnType;
248
+ hidePopover: () => void;
249
+ showPopover: () => void;
250
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "toggle" | "update:modelValue")[], "change" | "toggle" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
251
+ modelValue?: unknown;
252
+ multiple?: unknown;
253
+ placeholder?: unknown;
254
+ disabled?: unknown;
255
+ size?: unknown;
256
+ clearable?: unknown;
257
+ loading?: unknown;
258
+ filterable?: unknown;
259
+ remoteMethod?: unknown;
260
+ } & {
261
+ placeholder: string;
262
+ size: string;
263
+ multiple: boolean;
264
+ disabled: boolean;
265
+ loading: boolean;
266
+ clearable: boolean;
267
+ filterable: boolean;
268
+ } & {
269
+ modelValue?: any;
270
+ remoteMethod?: (...args: any[]) => any;
271
+ }> & {
272
+ onChange?: (...args: any[]) => any;
273
+ "onUpdate:modelValue"?: (...args: any[]) => any;
274
+ onToggle?: (...args: any[]) => any;
275
+ }, {
276
+ placeholder: string;
277
+ size: string;
278
+ multiple: boolean;
279
+ disabled: boolean;
280
+ loading: boolean;
281
+ clearable: boolean;
282
+ filterable: boolean;
283
+ remoteMethod: (...args: any[]) => any;
284
+ }>;
285
+ export default _default;