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

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 (605) hide show
  1. package/LICENSE.txt +22 -0
  2. package/README.md +68 -1
  3. package/dist/index.cjs.js +57 -0
  4. package/dist/index.esm.js +26747 -0
  5. package/dist/index.umd.js +57 -0
  6. package/dist/style.css +1 -469
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +102 -0
  11. package/lib/affix/index.d.ts +143 -0
  12. package/lib/affix/index.js +1 -0
  13. package/lib/alert/alert.css +77 -0
  14. package/lib/alert/alert.d.ts +62 -0
  15. package/lib/alert/alert.less +114 -0
  16. package/lib/alert/alert.variable.css +176 -0
  17. package/lib/alert/index.d.ts +180 -0
  18. package/lib/alert/index.js +1 -0
  19. package/lib/animate-number/animate-number.d.ts +27 -0
  20. package/lib/animate-number/index.d.ts +97 -0
  21. package/lib/animate-number/index.js +1 -0
  22. package/lib/backtop/backtop.css +42 -0
  23. package/lib/backtop/backtop.d.ts +60 -0
  24. package/lib/backtop/backtop.less +18 -0
  25. package/lib/backtop/backtop.variable.css +141 -0
  26. package/lib/backtop/index.d.ts +166 -0
  27. package/lib/backtop/index.js +1 -0
  28. package/lib/badge/badge.css +121 -0
  29. package/lib/badge/badge.d.ts +112 -0
  30. package/lib/badge/badge.less +136 -0
  31. package/lib/badge/badge.variable.css +220 -0
  32. package/lib/badge/index.d.ts +267 -0
  33. package/lib/badge/index.js +1 -0
  34. package/lib/breadcrumb/breadcrumb-item.d.ts +36 -0
  35. package/lib/breadcrumb/breadcrumb.css +76 -0
  36. package/lib/breadcrumb/breadcrumb.d.ts +54 -0
  37. package/lib/breadcrumb/breadcrumb.less +65 -0
  38. package/lib/breadcrumb/breadcrumb.variable.css +175 -0
  39. package/lib/breadcrumb/index.d.ts +194 -0
  40. package/lib/breadcrumb/index.js +1 -0
  41. package/lib/breadcrumb/props.d.ts +4 -0
  42. package/lib/button/button-group.d.ts +6 -0
  43. package/lib/button/button.css +270 -21
  44. package/lib/button/button.d.ts +150 -0
  45. package/lib/button/button.less +195 -30
  46. package/lib/button/button.variable.css +381 -0
  47. package/lib/button/index.d.ts +237 -0
  48. package/lib/button/index.js +1 -206
  49. package/lib/card/card.css +115 -0
  50. package/lib/card/card.d.ts +110 -0
  51. package/lib/card/card.less +92 -0
  52. package/lib/card/card.variable.css +214 -0
  53. package/lib/card/index.d.ts +283 -0
  54. package/lib/card/index.js +1 -0
  55. package/lib/cascader/cascader-panel.d.ts +48 -0
  56. package/lib/cascader/cascader.css +130 -0
  57. package/lib/cascader/cascader.d.ts +271 -0
  58. package/lib/cascader/cascader.less +146 -0
  59. package/lib/cascader/cascader.variable.css +229 -0
  60. package/lib/cascader/index.d.ts +721 -0
  61. package/lib/cascader/index.js +1 -0
  62. package/lib/cascader/interface.d.ts +44 -0
  63. package/lib/cascader/node.d.ts +24 -0
  64. package/lib/cascader/store.d.ts +15 -0
  65. package/lib/checkbox/checkbox-group.d.ts +48 -0
  66. package/lib/checkbox/checkbox.css +67 -125
  67. package/lib/checkbox/checkbox.d.ts +108 -0
  68. package/lib/checkbox/checkbox.less +84 -6
  69. package/lib/checkbox/checkbox.variable.css +176 -0
  70. package/lib/checkbox/common.d.ts +13 -0
  71. package/lib/checkbox/index.d.ts +253 -0
  72. package/lib/checkbox/index.js +1 -64
  73. package/lib/checkbox/type.d.ts +15 -0
  74. package/lib/code-diff/code-diff.css +186 -0
  75. package/lib/code-diff/code-diff.d.ts +80 -0
  76. package/lib/code-diff/code-diff.less +238 -0
  77. package/lib/code-diff/code-diff.variable.css +285 -0
  78. package/lib/code-diff/index.d.ts +154 -0
  79. package/lib/code-diff/index.js +1 -0
  80. package/lib/collapse/collapse.css +46 -0
  81. package/lib/collapse/collapse.d.ts +103 -0
  82. package/lib/collapse/collapse.less +59 -0
  83. package/lib/collapse/collapse.variable.css +145 -0
  84. package/lib/collapse/index.d.ts +182 -0
  85. package/lib/collapse/index.js +1 -0
  86. package/lib/collapse/utils.d.ts +11 -0
  87. package/lib/components.d.ts +50 -0
  88. package/lib/components.js +1 -0
  89. package/lib/container/col.d.ts +51 -0
  90. package/lib/container/container.css +48 -0
  91. package/lib/container/container.d.ts +83 -0
  92. package/lib/container/container.less +20 -0
  93. package/lib/container/container.variable.css +147 -0
  94. package/lib/container/index.d.ts +223 -0
  95. package/lib/container/index.js +1 -0
  96. package/lib/container/row.d.ts +4 -0
  97. package/lib/date-picker/date-picker.css +408 -0
  98. package/lib/date-picker/date-picker.d.ts +312 -0
  99. package/lib/date-picker/date-picker.less +527 -0
  100. package/lib/date-picker/date-picker.variable.css +507 -0
  101. package/lib/date-picker/fecha.d.ts +6 -0
  102. package/lib/date-picker/index.d.ts +753 -0
  103. package/lib/date-picker/index.js +1 -0
  104. package/lib/date-picker/interface.d.ts +22 -0
  105. package/lib/date-picker/props.d.ts +118 -0
  106. package/lib/date-picker/utils.d.ts +97 -0
  107. package/lib/dialog/dialog.css +120 -0
  108. package/lib/dialog/dialog.d.ts +336 -0
  109. package/lib/dialog/dialog.less +100 -0
  110. package/lib/dialog/dialog.variable.css +120 -0
  111. package/lib/dialog/index.d.ts +772 -0
  112. package/lib/dialog/index.js +1 -0
  113. package/lib/directives/clickoutside.d.ts +3 -0
  114. package/lib/directives/index.d.ts +3 -0
  115. package/lib/directives/index.js +2 -0
  116. package/lib/directives/index.js.LICENSE.txt +14 -0
  117. package/lib/directives/mousewheel.d.ts +3 -0
  118. package/lib/directives/tooltips.d.ts +17 -0
  119. package/lib/dist.index.js +1 -0
  120. package/lib/divider/divider.css +38 -0
  121. package/lib/divider/divider.d.ts +48 -0
  122. package/lib/divider/divider.less +53 -0
  123. package/lib/divider/divider.variable.css +137 -0
  124. package/lib/divider/index.d.ts +142 -0
  125. package/lib/divider/index.js +1 -0
  126. package/lib/divider/props.d.ts +21 -0
  127. package/lib/dropdown/dropdown-item.d.ts +19 -0
  128. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  129. package/lib/dropdown/dropdown.css +47 -0
  130. package/lib/dropdown/dropdown.d.ts +63 -0
  131. package/lib/dropdown/dropdown.less +59 -0
  132. package/lib/dropdown/dropdown.variable.css +146 -0
  133. package/lib/dropdown/index.d.ts +200 -0
  134. package/lib/dropdown/index.js +1 -0
  135. package/lib/exception/exception.css +32 -0
  136. package/lib/exception/exception.d.ts +26 -0
  137. package/lib/exception/exception.less +39 -0
  138. package/lib/exception/exception.variable.css +131 -0
  139. package/lib/exception/index.d.ts +96 -0
  140. package/lib/exception/index.js +1 -0
  141. package/lib/fixed-navbar/fixed-navbar.css +42 -0
  142. package/lib/fixed-navbar/fixed-navbar.d.ts +48 -0
  143. package/lib/fixed-navbar/fixed-navbar.less +53 -0
  144. package/lib/fixed-navbar/fixed-navbar.variable.css +141 -0
  145. package/lib/fixed-navbar/index.d.ts +147 -0
  146. package/lib/fixed-navbar/index.js +1 -0
  147. package/lib/form/compose-form-item.d.ts +16 -0
  148. package/lib/form/form-item.d.ts +155 -0
  149. package/lib/form/form.css +125 -0
  150. package/lib/form/form.d.ts +81 -0
  151. package/lib/form/form.less +152 -0
  152. package/lib/form/form.variable.css +224 -0
  153. package/lib/form/index.d.ts +303 -0
  154. package/lib/form/index.js +1 -0
  155. package/lib/form/type.d.ts +23 -0
  156. package/lib/form/validator.d.ts +9 -0
  157. package/lib/icon/angle-double-down-line.d.ts +4 -0
  158. package/lib/icon/angle-double-down-line.js +1 -0
  159. package/lib/icon/angle-double-left-line.d.ts +4 -0
  160. package/lib/icon/angle-double-left-line.js +1 -0
  161. package/lib/icon/angle-double-left.d.ts +4 -0
  162. package/lib/icon/angle-double-left.js +1 -0
  163. package/lib/icon/angle-double-right-line.d.ts +4 -0
  164. package/lib/icon/angle-double-right-line.js +1 -0
  165. package/lib/icon/angle-double-right.d.ts +4 -0
  166. package/lib/icon/angle-double-right.js +1 -0
  167. package/lib/icon/angle-double-up-line.d.ts +4 -0
  168. package/lib/icon/angle-double-up-line.js +1 -0
  169. package/lib/icon/angle-down-fill.d.ts +4 -0
  170. package/lib/icon/angle-down-fill.js +1 -0
  171. package/lib/icon/angle-down-line.d.ts +4 -0
  172. package/lib/icon/angle-down-line.js +1 -0
  173. package/lib/icon/angle-down.d.ts +4 -0
  174. package/lib/icon/angle-down.js +1 -0
  175. package/lib/icon/angle-left.d.ts +4 -0
  176. package/lib/icon/angle-left.js +1 -0
  177. package/lib/icon/angle-right.d.ts +4 -0
  178. package/lib/icon/angle-right.js +1 -0
  179. package/lib/icon/angle-up-fill.d.ts +4 -0
  180. package/lib/icon/angle-up-fill.js +1 -0
  181. package/lib/icon/angle-up.d.ts +4 -0
  182. package/lib/icon/angle-up.js +1 -0
  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.d.ts +4 -0
  186. package/lib/icon/arrows-left.js +1 -0
  187. package/lib/icon/arrows-right.d.ts +4 -0
  188. package/lib/icon/arrows-right.js +1 -0
  189. package/lib/icon/audio-fill.d.ts +4 -0
  190. package/lib/icon/audio-fill.js +1 -0
  191. package/lib/icon/bk.d.ts +4 -0
  192. package/lib/icon/bk.js +1 -0
  193. package/lib/icon/circle.d.ts +4 -0
  194. package/lib/icon/circle.js +1 -0
  195. package/lib/icon/close-line.d.ts +4 -0
  196. package/lib/icon/close-line.js +1 -0
  197. package/lib/icon/close.d.ts +4 -0
  198. package/lib/icon/close.js +1 -0
  199. package/lib/icon/code.d.ts +4 -0
  200. package/lib/icon/code.js +1 -0
  201. package/lib/icon/cog-shape.d.ts +4 -0
  202. package/lib/icon/cog-shape.js +1 -0
  203. package/lib/icon/collapse-left.d.ts +4 -0
  204. package/lib/icon/collapse-left.js +1 -0
  205. package/lib/icon/copy.d.ts +4 -0
  206. package/lib/icon/copy.js +1 -0
  207. package/lib/icon/data-shape.d.ts +4 -0
  208. package/lib/icon/data-shape.js +1 -0
  209. package/lib/icon/del.d.ts +4 -0
  210. package/lib/icon/del.js +1 -0
  211. package/lib/icon/doc-fill.d.ts +4 -0
  212. package/lib/icon/doc-fill.js +1 -0
  213. package/lib/icon/done.d.ts +4 -0
  214. package/lib/icon/done.js +1 -0
  215. package/lib/icon/down-shape.d.ts +4 -0
  216. package/lib/icon/down-shape.js +1 -0
  217. package/lib/icon/down-small.d.ts +4 -0
  218. package/lib/icon/down-small.js +1 -0
  219. package/lib/icon/edit-line.d.ts +4 -0
  220. package/lib/icon/edit-line.js +1 -0
  221. package/lib/icon/ellipsis.d.ts +4 -0
  222. package/lib/icon/ellipsis.js +1 -0
  223. package/lib/icon/error.d.ts +4 -0
  224. package/lib/icon/error.js +1 -0
  225. package/lib/icon/excel-fill.d.ts +4 -0
  226. package/lib/icon/excel-fill.js +1 -0
  227. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  228. package/lib/icon/exclamation-circle-shape.js +1 -0
  229. package/lib/icon/eye.d.ts +4 -0
  230. package/lib/icon/eye.js +1 -0
  231. package/lib/icon/folder-open.d.ts +4 -0
  232. package/lib/icon/folder-open.js +1 -0
  233. package/lib/icon/folder-shape-open.d.ts +4 -0
  234. package/lib/icon/folder-shape-open.js +1 -0
  235. package/lib/icon/folder-shape.d.ts +4 -0
  236. package/lib/icon/folder-shape.js +1 -0
  237. package/lib/icon/folder.d.ts +4 -0
  238. package/lib/icon/folder.js +1 -0
  239. package/lib/icon/funnel.d.ts +4 -0
  240. package/lib/icon/help-document-fill.d.ts +4 -0
  241. package/lib/icon/help-document-fill.js +1 -0
  242. package/lib/icon/help-fill.d.ts +4 -0
  243. package/lib/icon/help-fill.js +1 -0
  244. package/lib/icon/help.d.ts +4 -0
  245. package/lib/icon/help.js +1 -0
  246. package/lib/icon/icon.d.ts +12 -0
  247. package/lib/icon/image-fill.d.ts +4 -0
  248. package/lib/icon/image-fill.js +1 -0
  249. package/lib/icon/index.d.ts +69 -0
  250. package/lib/icon/index.js +1 -0
  251. package/lib/icon/info-line.d.ts +4 -0
  252. package/lib/icon/info-line.js +1 -0
  253. package/lib/icon/info.d.ts +4 -0
  254. package/lib/icon/info.js +1 -0
  255. package/lib/icon/left-shape.d.ts +4 -0
  256. package/lib/icon/left-shape.js +1 -0
  257. package/lib/icon/pdf-fill.d.ts +4 -0
  258. package/lib/icon/pdf-fill.js +1 -0
  259. package/lib/icon/play-shape.d.ts +4 -0
  260. package/lib/icon/play-shape.js +1 -0
  261. package/lib/icon/plus.d.ts +4 -0
  262. package/lib/icon/plus.js +1 -0
  263. package/lib/icon/ppt-fill.d.ts +4 -0
  264. package/lib/icon/ppt-fill.js +1 -0
  265. package/lib/icon/qq.d.ts +4 -0
  266. package/lib/icon/qq.js +1 -0
  267. package/lib/icon/right-shape.d.ts +4 -0
  268. package/lib/icon/right-shape.js +1 -0
  269. package/lib/icon/search.d.ts +4 -0
  270. package/lib/icon/search.js +1 -0
  271. package/lib/icon/share.d.ts +4 -0
  272. package/lib/icon/share.js +1 -0
  273. package/lib/icon/spinner.d.ts +4 -0
  274. package/lib/icon/spinner.js +1 -0
  275. package/lib/icon/success.d.ts +4 -0
  276. package/lib/icon/success.js +1 -0
  277. package/lib/icon/switcher-loading.d.ts +4 -0
  278. package/lib/icon/switcher-loading.js +1 -0
  279. package/lib/icon/text-file.d.ts +4 -0
  280. package/lib/icon/text-file.js +1 -0
  281. package/lib/icon/text-fill.d.ts +4 -0
  282. package/lib/icon/text-fill.js +1 -0
  283. package/lib/icon/tree-application-shape.d.ts +4 -0
  284. package/lib/icon/tree-application-shape.js +1 -0
  285. package/lib/icon/unvisible.d.ts +4 -0
  286. package/lib/icon/unvisible.js +1 -0
  287. package/lib/icon/up-shape.d.ts +4 -0
  288. package/lib/icon/up-shape.js +1 -0
  289. package/lib/icon/upload.d.ts +4 -0
  290. package/lib/icon/upload.js +1 -0
  291. package/lib/icon/video-fill.d.ts +4 -0
  292. package/lib/icon/video-fill.js +1 -0
  293. package/lib/icon/warn.d.ts +4 -0
  294. package/lib/icon/warn.js +1 -0
  295. package/lib/icon/weixin.d.ts +4 -0
  296. package/lib/icon/weixin.js +1 -0
  297. package/lib/index.d.ts +3 -0
  298. package/lib/index.js +1 -0
  299. package/lib/input/index.d.ts +541 -0
  300. package/lib/input/index.js +1 -60
  301. package/lib/input/input.css +193 -147
  302. package/lib/input/input.d.ts +315 -0
  303. package/lib/input/input.less +193 -39
  304. package/lib/input/input.variable.css +312 -0
  305. package/lib/link/index.d.ts +164 -0
  306. package/lib/link/index.js +1 -0
  307. package/lib/link/link.css +55 -0
  308. package/lib/link/link.d.ts +58 -0
  309. package/lib/link/link.less +74 -0
  310. package/lib/link/link.variable.css +154 -0
  311. package/lib/loading/index.d.ts +241 -0
  312. package/lib/loading/index.js +1 -0
  313. package/lib/loading/loading.css +259 -0
  314. package/lib/loading/loading.d.ts +148 -0
  315. package/lib/loading/loading.less +186 -0
  316. package/lib/loading/loading.variable.css +358 -0
  317. package/lib/menu/index.d.ts +176 -0
  318. package/lib/menu/index.js +1 -0
  319. package/lib/menu/menu-group.d.ts +14 -0
  320. package/lib/menu/menu-item.d.ts +16 -0
  321. package/lib/menu/menu.css +190 -0
  322. package/lib/menu/menu.d.ts +55 -0
  323. package/lib/menu/menu.less +180 -0
  324. package/lib/menu/menu.variable.css +289 -0
  325. package/lib/menu/submenu.css +3 -0
  326. package/lib/menu/submenu.d.ts +22 -0
  327. package/lib/menu/submenu.less +5 -0
  328. package/lib/menu/submenu.variable.css +102 -0
  329. package/lib/menu/utils.d.ts +41 -0
  330. package/lib/message/index.d.ts +2 -0
  331. package/lib/message/index.js +1 -0
  332. package/lib/message/message.css +62 -0
  333. package/lib/message/message.less +72 -0
  334. package/lib/message/message.variable.css +161 -0
  335. package/lib/message/messageConstructor.d.ts +106 -0
  336. package/lib/modal/index.d.ts +605 -0
  337. package/lib/modal/index.js +1 -0
  338. package/lib/modal/modal.css +40 -0
  339. package/lib/modal/modal.d.ts +218 -0
  340. package/lib/modal/modal.less +50 -0
  341. package/lib/modal/modal.variable.css +40 -0
  342. package/lib/modal/props.mixin.d.ts +94 -0
  343. package/lib/navigation/index.d.ts +311 -0
  344. package/lib/navigation/index.js +1 -0
  345. package/lib/navigation/navigation-title.d.ts +25 -0
  346. package/lib/navigation/navigation.css +184 -0
  347. package/lib/navigation/navigation.d.ts +120 -0
  348. package/lib/navigation/navigation.less +210 -0
  349. package/lib/navigation/navigation.variable.css +283 -0
  350. package/lib/notify/index.d.ts +2 -0
  351. package/lib/notify/index.js +1 -0
  352. package/lib/notify/notify.css +65 -0
  353. package/lib/notify/notify.less +76 -0
  354. package/lib/notify/notify.variable.css +164 -0
  355. package/lib/notify/notifyConstructor.d.ts +135 -0
  356. package/lib/pagination/index.d.ts +395 -0
  357. package/lib/pagination/index.js +1 -0
  358. package/lib/pagination/pagination.css +179 -0
  359. package/lib/pagination/pagination.d.ts +220 -0
  360. package/lib/pagination/pagination.less +201 -0
  361. package/lib/pagination/pagination.variable.css +278 -0
  362. package/lib/pagination/type.d.ts +6 -0
  363. package/lib/pagination/use-limit.d.ts +8 -0
  364. package/lib/pagination/use-list.d.ts +8 -0
  365. package/lib/pagination/use-small-list.d.ts +5 -0
  366. package/lib/pagination/use-total.d.ts +5 -0
  367. package/lib/popover/index.d.ts +387 -0
  368. package/lib/popover/index.js +1 -0
  369. package/lib/popover/popover.css +68 -0
  370. package/lib/popover/popover.d.ts +165 -0
  371. package/lib/popover/popover.less +84 -0
  372. package/lib/popover/popover.variable.css +167 -0
  373. package/lib/popover/props.d.ts +104 -0
  374. package/lib/popover2/arrow.d.ts +2 -0
  375. package/lib/popover2/const.d.ts +10 -0
  376. package/lib/popover2/content.d.ts +24 -0
  377. package/lib/popover2/index.d.ts +478 -0
  378. package/lib/popover2/index.js +1 -0
  379. package/lib/popover2/popover2.css +25 -0
  380. package/lib/popover2/popover2.d.ts +200 -0
  381. package/lib/popover2/popover2.less +35 -0
  382. package/lib/popover2/popover2.variable.css +124 -0
  383. package/lib/popover2/props.d.ts +100 -0
  384. package/lib/popover2/reference.d.ts +2 -0
  385. package/lib/popover2/use-floating.d.ts +15 -0
  386. package/lib/popover2/use-popper-id.d.ts +5 -0
  387. package/lib/preset.d.ts +7 -0
  388. package/lib/preset.js +1 -0
  389. package/lib/process/index.d.ts +205 -0
  390. package/lib/process/index.js +1 -0
  391. package/lib/process/process.css +138 -0
  392. package/lib/process/process.d.ts +131 -0
  393. package/lib/process/process.less +178 -0
  394. package/lib/process/process.variable.css +237 -0
  395. package/lib/progress/circle.d.ts +6 -0
  396. package/lib/progress/index.d.ts +398 -0
  397. package/lib/progress/index.js +1 -0
  398. package/lib/progress/line.d.ts +6 -0
  399. package/lib/progress/progress.css +102 -0
  400. package/lib/progress/progress.d.ts +171 -0
  401. package/lib/progress/progress.less +90 -0
  402. package/lib/progress/progress.variable.css +201 -0
  403. package/lib/radio/common.d.ts +13 -0
  404. package/lib/radio/index.d.ts +277 -0
  405. package/lib/radio/index.js +1 -61
  406. package/lib/radio/radio-button.d.ts +91 -0
  407. package/lib/radio/radio-group.d.ts +41 -0
  408. package/lib/radio/radio.css +127 -124
  409. package/lib/radio/radio.d.ts +87 -0
  410. package/lib/radio/radio.less +173 -20
  411. package/lib/radio/radio.variable.css +237 -0
  412. package/lib/radio/type.d.ts +14 -0
  413. package/lib/rate/index.d.ts +113 -0
  414. package/lib/rate/index.js +1 -0
  415. package/lib/rate/rate.css +10 -0
  416. package/lib/rate/rate.d.ts +32 -0
  417. package/lib/rate/rate.less +11 -0
  418. package/lib/rate/rate.variable.css +10 -0
  419. package/lib/rate/star.css +24 -0
  420. package/lib/rate/star.d.ts +74 -0
  421. package/lib/rate/star.less +29 -0
  422. package/lib/rate/star.variable.css +24 -0
  423. package/lib/resize-layout/index.d.ts +336 -0
  424. package/lib/resize-layout/index.js +1 -0
  425. package/lib/resize-layout/resize-layout.css +189 -0
  426. package/lib/resize-layout/resize-layout.d.ts +127 -0
  427. package/lib/resize-layout/resize-layout.less +233 -0
  428. package/lib/resize-layout/resize-layout.variable.css +288 -0
  429. package/lib/select/common.d.ts +33 -0
  430. package/lib/select/index.d.ts +1751 -0
  431. package/lib/select/index.js +1 -0
  432. package/lib/select/option.d.ts +27 -0
  433. package/lib/select/optionGroup.d.ts +54 -0
  434. package/lib/select/select.css +350 -0
  435. package/lib/select/select.d.ts +542 -0
  436. package/lib/select/select.less +327 -0
  437. package/lib/select/select.variable.css +449 -0
  438. package/lib/select/selectTagInput.d.ts +71 -0
  439. package/lib/select/type.d.ts +35 -0
  440. package/lib/shared/helper.d.ts +92 -0
  441. package/lib/shared/index.d.ts +73 -0
  442. package/lib/shared/index.js +1 -13
  443. package/lib/shared/mask-manager.d.ts +77 -0
  444. package/lib/shared/pop-manager.d.ts +27 -0
  445. package/lib/shared/popover.d.ts +131 -0
  446. package/lib/shared/scrollbar-width.d.ts +1 -0
  447. package/lib/shared/token.d.ts +4 -0
  448. package/lib/shared/utils.d.ts +6 -0
  449. package/lib/shared/vue-types.d.ts +119 -0
  450. package/lib/shared/z-index-manager.d.ts +93 -0
  451. package/lib/sideslider/index.d.ts +533 -0
  452. package/lib/sideslider/index.js +1 -0
  453. package/lib/sideslider/sideslider.css +114 -0
  454. package/lib/sideslider/sideslider.d.ts +229 -0
  455. package/lib/sideslider/sideslider.less +145 -0
  456. package/lib/sideslider/sideslider.variable.css +213 -0
  457. package/lib/slider/index.d.ts +440 -0
  458. package/lib/slider/index.js +1 -0
  459. package/lib/slider/slider-button.d.ts +80 -0
  460. package/lib/slider/slider.css +149 -0
  461. package/lib/slider/slider.d.ts +201 -0
  462. package/lib/slider/slider.less +179 -0
  463. package/lib/slider/slider.variable.css +248 -0
  464. package/lib/steps/index.d.ts +250 -0
  465. package/lib/steps/index.js +1 -0
  466. package/lib/steps/steps.css +299 -0
  467. package/lib/steps/steps.d.ts +161 -0
  468. package/lib/steps/steps.less +344 -0
  469. package/lib/steps/steps.variable.css +398 -0
  470. package/lib/styles/index.d.ts +52 -0
  471. package/lib/styles/mixins/animate.css +21 -0
  472. package/lib/styles/mixins/animate.less +27 -0
  473. package/lib/styles/mixins/animate.variable.css +21 -0
  474. package/lib/styles/mixins/clearfix.css +8 -0
  475. package/lib/styles/mixins/clearfix.less +10 -0
  476. package/lib/styles/mixins/clearfix.variable.css +8 -0
  477. package/lib/styles/mixins/ellipsis.less +8 -0
  478. package/lib/styles/mixins/mixins.css +29 -0
  479. package/lib/styles/mixins/mixins.less +3 -0
  480. package/lib/styles/mixins/mixins.variable.css +29 -0
  481. package/lib/styles/mixins/popper.css +43 -0
  482. package/lib/styles/mixins/popper.less +52 -0
  483. package/lib/styles/mixins/popper.variable.css +43 -0
  484. package/lib/styles/mixins/size.less +10 -1
  485. package/lib/styles/reset.css +273 -0
  486. package/lib/styles/reset.less +313 -0
  487. package/lib/styles/reset.variable.css +273 -0
  488. package/lib/styles/themes/themes.less +103 -284
  489. package/lib/swiper/index.d.ts +181 -0
  490. package/lib/swiper/index.js +1 -0
  491. package/lib/swiper/swiper.css +91 -0
  492. package/lib/swiper/swiper.d.ts +65 -0
  493. package/lib/swiper/swiper.less +107 -0
  494. package/lib/swiper/swiper.variable.css +91 -0
  495. package/lib/switcher/index.d.ts +286 -0
  496. package/lib/switcher/index.js +1 -0
  497. package/lib/switcher/switcher.css +280 -0
  498. package/lib/switcher/switcher.d.ts +113 -0
  499. package/lib/switcher/switcher.less +360 -0
  500. package/lib/switcher/switcher.variable.css +379 -0
  501. package/lib/tab/index.d.ts +440 -0
  502. package/lib/tab/index.js +1 -0
  503. package/lib/tab/props.d.ts +194 -0
  504. package/lib/tab/tab-nav.d.ts +169 -0
  505. package/lib/tab/tab-panel.d.ts +73 -0
  506. package/lib/tab/tab.css +167 -0
  507. package/lib/tab/tab.d.ts +139 -0
  508. package/lib/tab/tab.less +228 -0
  509. package/lib/tab/tab.variable.css +266 -0
  510. package/lib/table/const.d.ts +49 -0
  511. package/lib/table/index.d.ts +547 -0
  512. package/lib/table/index.js +1 -0
  513. package/lib/table/plugins/head-filter.css +68 -0
  514. package/lib/table/plugins/head-filter.less +83 -0
  515. package/lib/table/plugins/head-filter.variable.css +167 -0
  516. package/lib/table/plugins/head-sort.css +22 -0
  517. package/lib/table/plugins/head-sort.less +28 -0
  518. package/lib/table/plugins/head-sort.variable.css +121 -0
  519. package/lib/table/plugins/settings.css +110 -0
  520. package/lib/table/plugins/settings.less +136 -0
  521. package/lib/table/plugins/settings.variable.css +209 -0
  522. package/lib/table/props.d.ts +243 -0
  523. package/lib/table/render.d.ts +118 -0
  524. package/lib/table/table.css +441 -0
  525. package/lib/table/table.d.ts +229 -0
  526. package/lib/table/table.less +292 -0
  527. package/lib/table/table.variable.css +540 -0
  528. package/lib/table/use-common.d.ts +54 -0
  529. package/lib/table/utils.d.ts +104 -0
  530. package/lib/tag/index.d.ts +229 -0
  531. package/lib/tag/index.js +1 -0
  532. package/lib/tag/tag.css +97 -0
  533. package/lib/tag/tag.d.ts +84 -0
  534. package/lib/tag/tag.less +113 -0
  535. package/lib/tag/tag.variable.css +196 -0
  536. package/lib/tag-input/common.d.ts +24 -0
  537. package/lib/tag-input/index.d.ts +894 -0
  538. package/lib/tag-input/index.js +1 -0
  539. package/lib/tag-input/list-tag-render.d.ts +47 -0
  540. package/lib/tag-input/tag-input.css +209 -0
  541. package/lib/tag-input/tag-input.d.ts +374 -0
  542. package/lib/tag-input/tag-input.less +251 -0
  543. package/lib/tag-input/tag-input.variable.css +308 -0
  544. package/lib/tag-input/tag-props.d.ts +131 -0
  545. package/lib/tag-input/tag-render.d.ts +38 -0
  546. package/lib/timeline/index.d.ts +129 -0
  547. package/lib/timeline/index.js +1 -0
  548. package/lib/timeline/timeline.css +235 -0
  549. package/lib/timeline/timeline.d.ts +81 -0
  550. package/lib/timeline/timeline.less +240 -0
  551. package/lib/timeline/timeline.variable.css +334 -0
  552. package/lib/transfer/const.d.ts +5 -0
  553. package/lib/transfer/index.d.ts +365 -0
  554. package/lib/transfer/index.js +1 -0
  555. package/lib/transfer/props.d.ts +54 -0
  556. package/lib/transfer/transfer.css +139 -0
  557. package/lib/transfer/transfer.d.ts +160 -0
  558. package/lib/transfer/transfer.less +144 -0
  559. package/lib/transfer/transfer.variable.css +238 -0
  560. package/lib/tree/constant.d.ts +43 -0
  561. package/lib/tree/index.d.ts +472 -0
  562. package/lib/tree/index.js +1 -0
  563. package/lib/tree/props.d.ts +168 -0
  564. package/lib/tree/tree.css +53 -0
  565. package/lib/tree/tree.d.ts +204 -0
  566. package/lib/tree/tree.less +66 -0
  567. package/lib/tree/tree.variable.css +152 -0
  568. package/lib/tree/use-empty.d.ts +6 -0
  569. package/lib/tree/use-node-action.d.ts +11 -0
  570. package/lib/tree/use-node-async.d.ts +5 -0
  571. package/lib/tree/use-node-attribute.d.ts +31 -0
  572. package/lib/tree/use-node-drag.d.ts +3 -0
  573. package/lib/tree/use-search.d.ts +11 -0
  574. package/lib/tree/use-tree-init.d.ts +15 -0
  575. package/lib/tree/util.d.ts +66 -0
  576. package/lib/upload/index.d.ts +2 -0
  577. package/lib/upload/index.js +1 -0
  578. package/lib/upload/props.d.ts +113 -0
  579. package/lib/upload/upload-list.d.ts +46 -0
  580. package/lib/upload/upload-trigger.d.ts +54 -0
  581. package/lib/upload/upload.css +374 -0
  582. package/lib/upload/upload.d.ts +252 -0
  583. package/lib/upload/upload.less +455 -0
  584. package/lib/upload/upload.type.d.ts +78 -0
  585. package/lib/upload/upload.variable.css +473 -0
  586. package/lib/upload/use-ajax-upload.d.ts +3 -0
  587. package/lib/upload/use-file-handler.d.ts +44 -0
  588. package/lib/use-message.d.ts +2 -0
  589. package/lib/virtual-render/index.d.ts +579 -0
  590. package/lib/virtual-render/index.js +1 -0
  591. package/lib/virtual-render/props.d.ts +167 -0
  592. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  593. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  594. package/lib/virtual-render/virtual-render.css +33 -0
  595. package/lib/virtual-render/virtual-render.d.ts +255 -0
  596. package/lib/virtual-render/virtual-render.less +43 -0
  597. package/lib/virtual-render/virtual-render.variable.css +33 -0
  598. package/package.json +128 -54
  599. package/dist/bkui-vue.cjs.js +0 -299
  600. package/dist/bkui-vue.esm.js +0 -296
  601. package/dist/bkui-vue.umd.js +0 -302
  602. package/lib/styles/mixins/size.css +0 -0
  603. package/lib/styles/themes/themes.css +0 -119
  604. package/lib/styles/themes/variables.css +0 -27
  605. package/lib/styles/themes/variables.less +0 -36
@@ -0,0 +1,277 @@
1
+ import RadioButton from './radio-button';
2
+ import RadioGroup from './radio-group';
3
+ declare const BkRadio: {
4
+ new (...args: any[]): {
5
+ $: import("vue").ComponentInternalInstance;
6
+ $data: {};
7
+ $props: Partial<{
8
+ name: string;
9
+ disabled: boolean;
10
+ modelValue: string | number | boolean;
11
+ checked: boolean;
12
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
+ name: import("vue-types").VueTypeValidableDef<string> & {
14
+ default: string;
15
+ } & {
16
+ default: string;
17
+ };
18
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
19
+ required: true;
20
+ };
21
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
22
+ default: string | number | boolean;
23
+ };
24
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
25
+ default: boolean;
26
+ } & {
27
+ default: boolean;
28
+ };
29
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
30
+ default: boolean;
31
+ } & {
32
+ default: boolean;
33
+ };
34
+ }>> & {
35
+ onChange?: (...args: any[]) => any;
36
+ "onUpdate:modelValue"?: (...args: any[]) => any;
37
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "disabled" | "modelValue" | "checked">;
38
+ $attrs: {
39
+ [x: string]: unknown;
40
+ };
41
+ $refs: {
42
+ [x: string]: unknown;
43
+ };
44
+ $slots: Readonly<{
45
+ [name: string]: import("vue").Slot;
46
+ }>;
47
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
48
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
49
+ $emit: (event: "change" | "update:modelValue", ...args: any[]) => void;
50
+ $el: any;
51
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
52
+ name: import("vue-types").VueTypeValidableDef<string> & {
53
+ default: string;
54
+ } & {
55
+ default: string;
56
+ };
57
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
58
+ required: true;
59
+ };
60
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
61
+ default: string | number | boolean;
62
+ };
63
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
64
+ default: boolean;
65
+ } & {
66
+ default: boolean;
67
+ };
68
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
69
+ default: boolean;
70
+ } & {
71
+ default: boolean;
72
+ };
73
+ }>> & {
74
+ onChange?: (...args: any[]) => any;
75
+ "onUpdate:modelValue"?: (...args: any[]) => any;
76
+ }, {
77
+ isFocused: import("vue").Ref<boolean>;
78
+ isChecked: import("vue").Ref<boolean>;
79
+ isDisabled: import("vue").ComputedRef<boolean>;
80
+ setChecked: (value?: boolean) => void;
81
+ handleBlur: () => void;
82
+ handleFocus: () => void;
83
+ handleChange: (event: Event) => void;
84
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
85
+ name: string;
86
+ disabled: boolean;
87
+ modelValue: string | number | boolean;
88
+ checked: boolean;
89
+ }> & {
90
+ beforeCreate?: (() => void) | (() => void)[];
91
+ created?: (() => void) | (() => void)[];
92
+ beforeMount?: (() => void) | (() => void)[];
93
+ mounted?: (() => void) | (() => void)[];
94
+ beforeUpdate?: (() => void) | (() => void)[];
95
+ updated?: (() => void) | (() => void)[];
96
+ activated?: (() => void) | (() => void)[];
97
+ deactivated?: (() => void) | (() => void)[];
98
+ beforeDestroy?: (() => void) | (() => void)[];
99
+ beforeUnmount?: (() => void) | (() => void)[];
100
+ destroyed?: (() => void) | (() => void)[];
101
+ unmounted?: (() => void) | (() => void)[];
102
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
103
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
104
+ 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)[];
105
+ };
106
+ $forceUpdate: () => void;
107
+ $nextTick: typeof import("vue").nextTick;
108
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
109
+ } & Readonly<import("vue").ExtractPropTypes<{
110
+ name: import("vue-types").VueTypeValidableDef<string> & {
111
+ default: string;
112
+ } & {
113
+ default: string;
114
+ };
115
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
116
+ required: true;
117
+ };
118
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
119
+ default: string | number | boolean;
120
+ };
121
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
122
+ default: boolean;
123
+ } & {
124
+ default: boolean;
125
+ };
126
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
127
+ default: boolean;
128
+ } & {
129
+ default: boolean;
130
+ };
131
+ }>> & {
132
+ onChange?: (...args: any[]) => any;
133
+ "onUpdate:modelValue"?: (...args: any[]) => any;
134
+ } & import("vue").ShallowUnwrapRef<{
135
+ isFocused: import("vue").Ref<boolean>;
136
+ isChecked: import("vue").Ref<boolean>;
137
+ isDisabled: import("vue").ComputedRef<boolean>;
138
+ setChecked: (value?: boolean) => void;
139
+ handleBlur: () => void;
140
+ handleFocus: () => void;
141
+ handleChange: (event: Event) => void;
142
+ }> & {} & {} & import("vue").ComponentCustomProperties;
143
+ __isFragment?: never;
144
+ __isTeleport?: never;
145
+ __isSuspense?: never;
146
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
147
+ name: import("vue-types").VueTypeValidableDef<string> & {
148
+ default: string;
149
+ } & {
150
+ default: string;
151
+ };
152
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
153
+ required: true;
154
+ };
155
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
156
+ default: string | number | boolean;
157
+ };
158
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
159
+ default: boolean;
160
+ } & {
161
+ default: boolean;
162
+ };
163
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
164
+ default: boolean;
165
+ } & {
166
+ default: boolean;
167
+ };
168
+ }>> & {
169
+ onChange?: (...args: any[]) => any;
170
+ "onUpdate:modelValue"?: (...args: any[]) => any;
171
+ }, {
172
+ isFocused: import("vue").Ref<boolean>;
173
+ isChecked: import("vue").Ref<boolean>;
174
+ isDisabled: import("vue").ComputedRef<boolean>;
175
+ setChecked: (value?: boolean) => void;
176
+ handleBlur: () => void;
177
+ handleFocus: () => void;
178
+ handleChange: (event: Event) => void;
179
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
180
+ name: string;
181
+ disabled: boolean;
182
+ modelValue: string | number | boolean;
183
+ checked: boolean;
184
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
185
+ Group: import("vue").DefineComponent<{
186
+ name: import("vue-types").VueTypeValidableDef<string> & {
187
+ default: string;
188
+ } & {
189
+ default: string;
190
+ };
191
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
192
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
193
+ default: boolean;
194
+ };
195
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
196
+ name: import("vue-types").VueTypeValidableDef<string> & {
197
+ default: string;
198
+ } & {
199
+ default: string;
200
+ };
201
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
202
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
203
+ default: boolean;
204
+ };
205
+ }>> & {
206
+ onChange?: (...args: any[]) => any;
207
+ "onUpdate:modelValue"?: (...args: any[]) => any;
208
+ }, {
209
+ name: string;
210
+ disabled: boolean;
211
+ }>;
212
+ Button: import("vue").DefineComponent<{
213
+ name: import("vue-types").VueTypeValidableDef<string> & {
214
+ default: string;
215
+ } & {
216
+ default: string;
217
+ };
218
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
219
+ required: true;
220
+ };
221
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
222
+ default: string | number | boolean;
223
+ };
224
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
225
+ default: boolean;
226
+ } & {
227
+ default: boolean;
228
+ };
229
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
230
+ default: boolean;
231
+ } & {
232
+ default: boolean;
233
+ };
234
+ size: typeof import("@bkui-vue/shared").PropTypes.size;
235
+ }, {
236
+ isFocused: import("vue").Ref<boolean>;
237
+ isChecked: import("vue").Ref<boolean>;
238
+ isDisabled: import("vue").ComputedRef<boolean>;
239
+ setChecked: (value?: boolean) => void;
240
+ handleBlur: () => void;
241
+ handleFocus: () => void;
242
+ handleChange: (event: Event) => void;
243
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
244
+ name: import("vue-types").VueTypeValidableDef<string> & {
245
+ default: string;
246
+ } & {
247
+ default: string;
248
+ };
249
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
250
+ required: true;
251
+ };
252
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
253
+ default: string | number | boolean;
254
+ };
255
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
256
+ default: boolean;
257
+ } & {
258
+ default: boolean;
259
+ };
260
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
261
+ default: boolean;
262
+ } & {
263
+ default: boolean;
264
+ };
265
+ size: typeof import("@bkui-vue/shared").PropTypes.size;
266
+ }>> & {
267
+ onChange?: (...args: any[]) => any;
268
+ "onUpdate:modelValue"?: (...args: any[]) => any;
269
+ }, {
270
+ name: string;
271
+ disabled: boolean;
272
+ modelValue: string | number | boolean;
273
+ checked: boolean;
274
+ }>;
275
+ }>;
276
+ export default BkRadio;
277
+ export { BkRadio, RadioGroup as BkRadioGroup, RadioButton as BkRadioButton, };
@@ -1,61 +1 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bkuiVue = {}, global.Vue));
5
- }(this, (function (exports, vue) { 'use strict';
6
-
7
- var Radio = vue.defineComponent({
8
- name: 'BkRadio',
9
- props: {
10
- disabled: {
11
- type: Boolean,
12
- default: false
13
- },
14
- value: {
15
- type: Boolean,
16
- default: false
17
- }
18
- },
19
- emits: ['update:value'],
20
- methods: {
21
- handleChange(e) {
22
- const target = e.target;
23
- this.$emit('update:value', target.checked);
24
- }
25
-
26
- },
27
-
28
- render() {
29
- var _a, _b, _c;
30
-
31
- const inputClass = [{
32
- 'bk-radio-input': true,
33
- 'is-checked': this.value
34
- }];
35
- const wrapperProps = {
36
- class: inputClass
37
- };
38
- return vue.createVNode("label", {
39
- "class": "bk-radio"
40
- }, [vue.createVNode("input", vue.mergeProps({
41
- "type": "radio"
42
- }, wrapperProps, {
43
- "checked": this.value,
44
- "disabled": this.disabled,
45
- "onChange": this.handleChange
46
- }), null), vue.createVNode("span", {
47
- "class": "bk-radio-text"
48
- }, [(_c = (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : 'default'])]);
49
- }
50
-
51
- });
52
-
53
- Radio.install = Vue => {
54
- Vue.component(Radio.name, Radio);
55
- };
56
-
57
- exports.default = Radio;
58
-
59
- Object.defineProperty(exports, '__esModule', { value: true });
60
-
61
- })));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkRadio:()=>b,BkRadioButton:()=>p,BkRadioGroup:()=>f,default:()=>v});var e=r(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function o(e,o){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw r}}return a}}(e,o)||function(e,o){if(e){if("string"==typeof e)return t(e,o);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,o):void 0}}(e,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n=r(748),i=Symbol("RadioGroup");function s(){var e=(0,n.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}var l=function(){var t=(0,n.getCurrentInstance)(),o=t.props,r=t.emit,a=(0,e.useFormItem)(),s=(0,n.inject)(i,e.EMPTY_OBJ),l=!(0,e.isEmptyObj)(s),d=(0,n.ref)(!1),u=(0,n.computed)((function(){return!(!l||!s.props.disabled)||o.disabled}));return l?(0,n.watch)((function(){return s.props.modelValue}),(function(e){d.value=e===o.label}),{immediate:!0}):(0,n.watch)((function(){return o.modelValue}),(function(e){""!==e&&(d.value=e===o.label)}),{immediate:!0}),(0,n.onMounted)((function(){l&&s.register(t.proxy)})),(0,n.onBeforeUnmount)((function(){l&&s.unregister(t.proxy)})),{isChecked:d,isDisabled:u,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];d.value=e},handleChange:function(e){var i;if(!u.value){var c=e.target;d.value=c.checked;var p=d.value?o.label:"";r("change",p),r("update:modelValue",p),l&&s.handleChange(t.proxy),null===(i=null==a?void 0:a.validate)||void 0===i||i.call(a,"change"),(0,n.nextTick)((function(){c.checked!==d.value&&(c.checked=d.value)}))}}}},d={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1)};const u=(0,n.defineComponent)({name:"Radio",props:d,emits:["change","update:modelValue"],setup:function(){var e=o(s(),2),t=e[0],n=e[1],r=n.blur,a=n.focus,i=l();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange}},render:function(){var t=(0,e.classes)({"bk-radio":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,n.createVNode)("label",{class:t,tabindex:"0"},[(0,n.createVNode)("input",{class:"bk-radio-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),(0,n.createVNode)("span",{class:"bk-radio-text"},[this.$slots.default?this.$slots.default():this.label])])}});var c={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size};const p=(0,n.defineComponent)({name:"RadioButton",props:c,emits:["change","update:modelValue"],setup:function(){var e=o(s(),2),t=e[0],n=e[1],r=n.blur,a=n.focus,i=l();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange}},render:function(){var t=(0,e.classes)({"bk-radio-button":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,n.createVNode)("label",{class:t,tabindex:"0"},[(0,n.createVNode)("input",{class:"bk-radio-button-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),(0,n.createVNode)("div",{class:"bk-radio-button-text"},[this.$slots.default?this.$slots.default():this.label])])}});var h={name:e.PropTypes.string.def(""),modelValue:e.PropTypes.oneOfType([String,Number,Boolean]),disabled:e.PropTypes.bool};const f=(0,n.defineComponent)({name:"RadioGroup",props:h,emits:["change","update:modelValue"],setup:function(e,t){var o=[];return(0,n.provide)(i,{props:e,register:function(e){o.push(e)},unregister:function(e){var t=o.indexOf(e);t>-1&&o.splice(t,1)},handleChange:function(e){var n=e.label;o.forEach((function(t){t!==e&&t.setChecked(!1)})),t.emit("update:modelValue",n),t.emit("change",n)}}),(0,n.onMounted)((function(){""!==e.modelValue&&o.forEach((function(t){t.setChecked(t.label===e.modelValue)}))})),{}},render:function(){var e;return(0,n.createVNode)("div",{class:"bk-radio-group"},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var b=(0,e.withInstallProps)(u,{Group:f,Button:p});const v=b})(),a})()));
@@ -0,0 +1,91 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import { PropTypes } from '@bkui-vue/shared';
3
+ declare const radioButtonProps: {
4
+ name: import("vue-types").VueTypeValidableDef<string> & {
5
+ default: string;
6
+ } & {
7
+ default: string;
8
+ };
9
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
10
+ required: true;
11
+ };
12
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
13
+ default: string | number | boolean;
14
+ };
15
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
16
+ default: boolean;
17
+ } & {
18
+ default: boolean;
19
+ };
20
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
21
+ default: boolean;
22
+ } & {
23
+ default: boolean;
24
+ };
25
+ size: typeof PropTypes.size;
26
+ };
27
+ export declare type RadioButtonProps = Readonly<ExtractPropTypes<typeof radioButtonProps>>;
28
+ declare const _default: import("vue").DefineComponent<{
29
+ name: import("vue-types").VueTypeValidableDef<string> & {
30
+ default: string;
31
+ } & {
32
+ default: string;
33
+ };
34
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
35
+ required: true;
36
+ };
37
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
38
+ default: string | number | boolean;
39
+ };
40
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
41
+ default: boolean;
42
+ } & {
43
+ default: boolean;
44
+ };
45
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
46
+ default: boolean;
47
+ } & {
48
+ default: boolean;
49
+ };
50
+ size: typeof PropTypes.size;
51
+ }, {
52
+ isFocused: import("vue").Ref<boolean>;
53
+ isChecked: import("vue").Ref<boolean>;
54
+ isDisabled: import("vue").ComputedRef<boolean>;
55
+ setChecked: (value?: boolean) => void;
56
+ handleBlur: () => void;
57
+ handleFocus: () => void;
58
+ handleChange: (event: Event) => void;
59
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
60
+ name: import("vue-types").VueTypeValidableDef<string> & {
61
+ default: string;
62
+ } & {
63
+ default: string;
64
+ };
65
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
66
+ required: true;
67
+ };
68
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
69
+ default: string | number | boolean;
70
+ };
71
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
72
+ default: boolean;
73
+ } & {
74
+ default: boolean;
75
+ };
76
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
77
+ default: boolean;
78
+ } & {
79
+ default: boolean;
80
+ };
81
+ size: typeof PropTypes.size;
82
+ }>> & {
83
+ onChange?: (...args: any[]) => any;
84
+ "onUpdate:modelValue"?: (...args: any[]) => any;
85
+ }, {
86
+ name: string;
87
+ disabled: boolean;
88
+ modelValue: string | number | boolean;
89
+ checked: boolean;
90
+ }>;
91
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ declare const radioGroupProps: {
3
+ name: import("vue-types").VueTypeValidableDef<string> & {
4
+ default: string;
5
+ } & {
6
+ default: string;
7
+ };
8
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
9
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
10
+ default: boolean;
11
+ };
12
+ };
13
+ export declare type RadioGroupProps = Readonly<ExtractPropTypes<typeof radioGroupProps>>;
14
+ declare const _default: import("vue").DefineComponent<{
15
+ name: import("vue-types").VueTypeValidableDef<string> & {
16
+ default: string;
17
+ } & {
18
+ default: string;
19
+ };
20
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
21
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
22
+ default: boolean;
23
+ };
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
25
+ name: import("vue-types").VueTypeValidableDef<string> & {
26
+ default: string;
27
+ } & {
28
+ default: string;
29
+ };
30
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
31
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
32
+ default: boolean;
33
+ };
34
+ }>> & {
35
+ onChange?: (...args: any[]) => any;
36
+ "onUpdate:modelValue"?: (...args: any[]) => any;
37
+ }, {
38
+ name: string;
39
+ disabled: boolean;
40
+ }>;
41
+ export default _default;