btt-ui 1.0.0

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 (353) hide show
  1. package/README.md +16 -0
  2. package/es/_virtual/plugin-vue_export-helper.mjs +9 -0
  3. package/es/assets/ts/colormap.mjs +5073 -0
  4. package/es/assets/ts/hotMap.mjs +87 -0
  5. package/es/assets/ts/utils.mjs +46 -0
  6. package/es/index.mjs +68 -0
  7. package/es/src/button/index.mjs +7 -0
  8. package/es/src/button/src/button.mjs +59 -0
  9. package/es/src/button/src/style/index.css +212 -0
  10. package/es/src/button/src/style/variable.css +0 -0
  11. package/es/src/card/index.mjs +7 -0
  12. package/es/src/card/src/card.mjs +43 -0
  13. package/es/src/card/src/style/index.css +81 -0
  14. package/es/src/checkbox/index.mjs +9 -0
  15. package/es/src/checkbox/src/checkbox-group.mjs +36 -0
  16. package/es/src/checkbox/src/checkbox.mjs +33 -0
  17. package/es/src/checkbox/src/checkbox2.mjs +68 -0
  18. package/es/src/checkbox/src/style/index.css +111 -0
  19. package/es/src/collapse/index.mjs +9 -0
  20. package/es/src/collapse/src/collapse-item.mjs +82 -0
  21. package/es/src/collapse/src/collapse.mjs +13 -0
  22. package/es/src/collapse/src/collapse2.mjs +33 -0
  23. package/es/src/collapse/src/style/index.css +58 -0
  24. package/es/src/collapse-transition/index.mjs +7 -0
  25. package/es/src/collapse-transition/src/collapse-transition.mjs +41 -0
  26. package/es/src/collapse-transition/src/collapse-transition.vue_vue_type_style_index_0_lang.mjs +4 -0
  27. package/es/src/dialog/index.mjs +6 -0
  28. package/es/src/dialog/src/dialog.mjs +117 -0
  29. package/es/src/dialog/src/style/index.css +58 -0
  30. package/es/src/directives/bubble.mjs +48 -0
  31. package/es/src/directives/drag.mjs +121 -0
  32. package/es/src/directives/index.mjs +10 -0
  33. package/es/src/directives/zoomIn.mjs +43 -0
  34. package/es/src/drag/index.mjs +7 -0
  35. package/es/src/drag/src/drag.mjs +78 -0
  36. package/es/src/drag/src/style/index.css +25 -0
  37. package/es/src/echarts/index.mjs +7 -0
  38. package/es/src/echarts/src/index.mjs +113 -0
  39. package/es/src/echarts/src/style/index.css +30 -0
  40. package/es/src/echarts/src/ts/factory.mjs +281 -0
  41. package/es/src/hotmap/index.mjs +7 -0
  42. package/es/src/hotmap/src/index.mjs +67 -0
  43. package/es/src/hotmap/src/style/index.css +0 -0
  44. package/es/src/icon/index.mjs +9 -0
  45. package/es/src/icon/src/icon.mjs +66 -0
  46. package/es/src/icon/src/icon2.mjs +86 -0
  47. package/es/src/icon/src/style/index.css +85 -0
  48. package/es/src/icon/src/svg/alarm.mjs +4 -0
  49. package/es/src/icon/src/svg/arrow-down.mjs +4 -0
  50. package/es/src/icon/src/svg/arrow-left.mjs +4 -0
  51. package/es/src/icon/src/svg/arrow-right.mjs +4 -0
  52. package/es/src/icon/src/svg/arrow-up.mjs +4 -0
  53. package/es/src/icon/src/svg/baocun.mjs +4 -0
  54. package/es/src/icon/src/svg/caogaoxiang.mjs +4 -0
  55. package/es/src/icon/src/svg/card.mjs +4 -0
  56. package/es/src/icon/src/svg/caret-right.mjs +4 -0
  57. package/es/src/icon/src/svg/chakan.mjs +45 -0
  58. package/es/src/icon/src/svg/change.mjs +4 -0
  59. package/es/src/icon/src/svg/chongzhi.mjs +18 -0
  60. package/es/src/icon/src/svg/circle-close.mjs +4 -0
  61. package/es/src/icon/src/svg/close.mjs +4 -0
  62. package/es/src/icon/src/svg/delete.mjs +4 -0
  63. package/es/src/icon/src/svg/detail.mjs +4 -0
  64. package/es/src/icon/src/svg/dianhua.mjs +22 -0
  65. package/es/src/icon/src/svg/disabled.mjs +4 -0
  66. package/es/src/icon/src/svg/down.mjs +4 -0
  67. package/es/src/icon/src/svg/download.mjs +12 -0
  68. package/es/src/icon/src/svg/edit.mjs +4 -0
  69. package/es/src/icon/src/svg/editor.mjs +4 -0
  70. package/es/src/icon/src/svg/enable.mjs +4 -0
  71. package/es/src/icon/src/svg/exit.mjs +4 -0
  72. package/es/src/icon/src/svg/file-open.mjs +4 -0
  73. package/es/src/icon/src/svg/handle.mjs +4 -0
  74. package/es/src/icon/src/svg/lahei.mjs +20 -0
  75. package/es/src/icon/src/svg/max.mjs +4 -0
  76. package/es/src/icon/src/svg/measure.mjs +4 -0
  77. package/es/src/icon/src/svg/min.mjs +4 -0
  78. package/es/src/icon/src/svg/nan.mjs +17 -0
  79. package/es/src/icon/src/svg/no.mjs +16 -0
  80. package/es/src/icon/src/svg/nv.mjs +19 -0
  81. package/es/src/icon/src/svg/people.mjs +4 -0
  82. package/es/src/icon/src/svg/player.mjs +19 -0
  83. package/es/src/icon/src/svg/plus.mjs +4 -0
  84. package/es/src/icon/src/svg/preview.mjs +44 -0
  85. package/es/src/icon/src/svg/print.mjs +12 -0
  86. package/es/src/icon/src/svg/printmb.mjs +4 -0
  87. package/es/src/icon/src/svg/publish.mjs +4 -0
  88. package/es/src/icon/src/svg/qiye.mjs +4 -0
  89. package/es/src/icon/src/svg/quxiao.mjs +4 -0
  90. package/es/src/icon/src/svg/record.mjs +4 -0
  91. package/es/src/icon/src/svg/refresh.mjs +4 -0
  92. package/es/src/icon/src/svg/reset.mjs +4 -0
  93. package/es/src/icon/src/svg/risk.mjs +4 -0
  94. package/es/src/icon/src/svg/search.mjs +4 -0
  95. package/es/src/icon/src/svg/set.mjs +4 -0
  96. package/es/src/icon/src/svg/shenhe.mjs +4 -0
  97. package/es/src/icon/src/svg/shenqing.mjs +4 -0
  98. package/es/src/icon/src/svg/tongbu.mjs +18 -0
  99. package/es/src/icon/src/svg/up.mjs +4 -0
  100. package/es/src/icon/src/svg/upload.mjs +9 -0
  101. package/es/src/icon/src/svg/urging.mjs +4 -0
  102. package/es/src/icon/src/svg/yes.mjs +18 -0
  103. package/es/src/icon/src/svg/yuyue.mjs +4 -0
  104. package/es/src/index.mjs +80 -0
  105. package/es/src/input/index.mjs +7 -0
  106. package/es/src/input/src/input.mjs +119 -0
  107. package/es/src/input/src/style/index.css +52 -0
  108. package/es/src/link/index.mjs +6 -0
  109. package/es/src/link/link.mjs +30 -0
  110. package/es/src/link/style/index.css +44 -0
  111. package/es/src/link/types.mjs +14 -0
  112. package/es/src/overlay/index.mjs +7 -0
  113. package/es/src/overlay/src/overlay.mjs +36 -0
  114. package/es/src/overlay/src/style/index.css +19 -0
  115. package/es/src/popper/index.mjs +7 -0
  116. package/es/src/popper/src/forward-ref.mjs +27 -0
  117. package/es/src/popper/src/popper.mjs +93 -0
  118. package/es/src/popper/src/popper2.mjs +100 -0
  119. package/es/src/popper/src/style/index.css +67 -0
  120. package/es/src/popper/src/trigger.mjs +68 -0
  121. package/es/src/popper/src/use-floating.mjs +38 -0
  122. package/es/src/popper/src/use-nowrap.mjs +13 -0
  123. package/es/src/popper/src/use-popper-container.mjs +14 -0
  124. package/es/src/scroll/index.mjs +6 -0
  125. package/es/src/scroll/src/scroll.mjs +88 -0
  126. package/es/src/scroll/src/style/index.css +46 -0
  127. package/es/src/select/index.mjs +9 -0
  128. package/es/src/select/src/option.mjs +30 -0
  129. package/es/src/select/src/select.mjs +32 -0
  130. package/es/src/select/src/select2.mjs +89 -0
  131. package/es/src/select/src/style/index.css +82 -0
  132. package/es/src/shake/index.mjs +6 -0
  133. package/es/src/shake/shake.mjs +25 -0
  134. package/es/src/shake/style/index.css +20 -0
  135. package/es/src/sign/index.mjs +7 -0
  136. package/es/src/sign/src/sign.mjs +137 -0
  137. package/es/src/sign/src/style/index.css +0 -0
  138. package/es/src/style/common.css +2518 -0
  139. package/es/src/style/css-variables.css +88 -0
  140. package/es/src/style/index.min.css +2254 -0
  141. package/es/src/style/previewimg.css +109 -0
  142. package/es/src/style/var.css +5 -0
  143. package/es/src/style/zoomimg.css +36 -0
  144. package/es/src/switch/index.mjs +7 -0
  145. package/es/src/switch/src/style/index.css +96 -0
  146. package/es/src/switch/src/switch.mjs +79 -0
  147. package/es/src/tableScroll/index.mjs +7 -0
  148. package/es/src/tableScroll/src/index.mjs +235 -0
  149. package/es/src/timeline/index.mjs +7 -0
  150. package/es/src/timeline/src/style/index.css +63 -0
  151. package/es/src/timeline/src/timeline.mjs +96 -0
  152. package/es/src/toast/index.mjs +6 -0
  153. package/es/src/toast/style/index.css +13 -0
  154. package/es/src/toast/toast.mjs +17 -0
  155. package/es/src/tooltip/index.mjs +7 -0
  156. package/es/src/tooltip/src/style/index.css +4 -0
  157. package/es/src/tooltip/src/tooltip.mjs +50 -0
  158. package/es/src/tooltip/src/tooltip2.mjs +22 -0
  159. package/es/src/tree/index.mjs +7 -0
  160. package/es/src/tree/src/style/index.css +154 -0
  161. package/es/src/tree/src/tree.mjs +233 -0
  162. package/es/src/tree/src/tree2.mjs +67 -0
  163. package/es/src/tree/src/use-drag.mjs +52 -0
  164. package/es/src/upload/dragger.mjs +51 -0
  165. package/es/src/upload/index.mjs +6 -0
  166. package/es/src/upload/style/drag.css +36 -0
  167. package/es/src/upload/style/index.css +40 -0
  168. package/es/src/upload/upload.mjs +76 -0
  169. package/es/src/uploadFile/index.mjs +6 -0
  170. package/es/src/uploadFile/src/style/index.css +131 -0
  171. package/es/src/uploadFile/src/uploadFile.mjs +209 -0
  172. package/es/src/uploadFile/src/uploadFile2.mjs +17 -0
  173. package/es/src/wheel/index.mjs +6 -0
  174. package/es/src/wheel/style/index.css +5 -0
  175. package/es/src/wheel/wheel.mjs +45 -0
  176. package/es/src/xgplayer/src/style/index.css +6 -0
  177. package/es/style.css +1 -0
  178. package/lib/_virtual/plugin-vue_export-helper.js +1 -0
  179. package/lib/assets/ts/colormap.js +1 -0
  180. package/lib/assets/ts/hotMap.js +1 -0
  181. package/lib/assets/ts/utils.js +1 -0
  182. package/lib/index.js +1 -0
  183. package/lib/src/button/index.js +1 -0
  184. package/lib/src/button/src/button.js +1 -0
  185. package/lib/src/button/src/style/index.css +212 -0
  186. package/lib/src/button/src/style/variable.css +0 -0
  187. package/lib/src/card/index.js +1 -0
  188. package/lib/src/card/src/card.js +1 -0
  189. package/lib/src/card/src/style/index.css +81 -0
  190. package/lib/src/checkbox/index.js +1 -0
  191. package/lib/src/checkbox/src/checkbox-group.js +1 -0
  192. package/lib/src/checkbox/src/checkbox.js +1 -0
  193. package/lib/src/checkbox/src/checkbox2.js +1 -0
  194. package/lib/src/checkbox/src/style/index.css +111 -0
  195. package/lib/src/collapse/index.js +1 -0
  196. package/lib/src/collapse/src/collapse-item.js +1 -0
  197. package/lib/src/collapse/src/collapse.js +1 -0
  198. package/lib/src/collapse/src/collapse2.js +1 -0
  199. package/lib/src/collapse/src/style/index.css +58 -0
  200. package/lib/src/collapse-transition/index.js +1 -0
  201. package/lib/src/collapse-transition/src/collapse-transition.js +1 -0
  202. package/lib/src/collapse-transition/src/collapse-transition.vue_vue_type_style_index_0_lang.js +1 -0
  203. package/lib/src/dialog/index.js +1 -0
  204. package/lib/src/dialog/src/dialog.js +1 -0
  205. package/lib/src/dialog/src/style/index.css +58 -0
  206. package/lib/src/directives/bubble.js +1 -0
  207. package/lib/src/directives/drag.js +1 -0
  208. package/lib/src/directives/index.js +1 -0
  209. package/lib/src/directives/zoomIn.js +1 -0
  210. package/lib/src/drag/index.js +1 -0
  211. package/lib/src/drag/src/drag.js +1 -0
  212. package/lib/src/drag/src/style/index.css +25 -0
  213. package/lib/src/echarts/index.js +1 -0
  214. package/lib/src/echarts/src/index.js +1 -0
  215. package/lib/src/echarts/src/style/index.css +30 -0
  216. package/lib/src/echarts/src/ts/factory.js +1 -0
  217. package/lib/src/hotmap/index.js +1 -0
  218. package/lib/src/hotmap/src/index.js +1 -0
  219. package/lib/src/hotmap/src/style/index.css +0 -0
  220. package/lib/src/icon/index.js +1 -0
  221. package/lib/src/icon/src/icon.js +1 -0
  222. package/lib/src/icon/src/icon2.js +1 -0
  223. package/lib/src/icon/src/style/index.css +85 -0
  224. package/lib/src/icon/src/svg/alarm.js +1 -0
  225. package/lib/src/icon/src/svg/arrow-down.js +1 -0
  226. package/lib/src/icon/src/svg/arrow-left.js +1 -0
  227. package/lib/src/icon/src/svg/arrow-right.js +1 -0
  228. package/lib/src/icon/src/svg/arrow-up.js +1 -0
  229. package/lib/src/icon/src/svg/baocun.js +1 -0
  230. package/lib/src/icon/src/svg/caogaoxiang.js +1 -0
  231. package/lib/src/icon/src/svg/card.js +1 -0
  232. package/lib/src/icon/src/svg/caret-right.js +1 -0
  233. package/lib/src/icon/src/svg/chakan.js +42 -0
  234. package/lib/src/icon/src/svg/change.js +1 -0
  235. package/lib/src/icon/src/svg/chongzhi.js +15 -0
  236. package/lib/src/icon/src/svg/circle-close.js +1 -0
  237. package/lib/src/icon/src/svg/close.js +1 -0
  238. package/lib/src/icon/src/svg/delete.js +1 -0
  239. package/lib/src/icon/src/svg/detail.js +1 -0
  240. package/lib/src/icon/src/svg/dianhua.js +19 -0
  241. package/lib/src/icon/src/svg/disabled.js +1 -0
  242. package/lib/src/icon/src/svg/down.js +1 -0
  243. package/lib/src/icon/src/svg/download.js +9 -0
  244. package/lib/src/icon/src/svg/edit.js +1 -0
  245. package/lib/src/icon/src/svg/editor.js +1 -0
  246. package/lib/src/icon/src/svg/enable.js +1 -0
  247. package/lib/src/icon/src/svg/exit.js +1 -0
  248. package/lib/src/icon/src/svg/file-open.js +1 -0
  249. package/lib/src/icon/src/svg/handle.js +1 -0
  250. package/lib/src/icon/src/svg/lahei.js +17 -0
  251. package/lib/src/icon/src/svg/max.js +1 -0
  252. package/lib/src/icon/src/svg/measure.js +1 -0
  253. package/lib/src/icon/src/svg/min.js +1 -0
  254. package/lib/src/icon/src/svg/nan.js +14 -0
  255. package/lib/src/icon/src/svg/no.js +13 -0
  256. package/lib/src/icon/src/svg/nv.js +16 -0
  257. package/lib/src/icon/src/svg/people.js +1 -0
  258. package/lib/src/icon/src/svg/player.js +16 -0
  259. package/lib/src/icon/src/svg/plus.js +1 -0
  260. package/lib/src/icon/src/svg/preview.js +41 -0
  261. package/lib/src/icon/src/svg/print.js +9 -0
  262. package/lib/src/icon/src/svg/printmb.js +1 -0
  263. package/lib/src/icon/src/svg/publish.js +1 -0
  264. package/lib/src/icon/src/svg/qiye.js +1 -0
  265. package/lib/src/icon/src/svg/quxiao.js +1 -0
  266. package/lib/src/icon/src/svg/record.js +1 -0
  267. package/lib/src/icon/src/svg/refresh.js +1 -0
  268. package/lib/src/icon/src/svg/reset.js +1 -0
  269. package/lib/src/icon/src/svg/risk.js +1 -0
  270. package/lib/src/icon/src/svg/search.js +1 -0
  271. package/lib/src/icon/src/svg/set.js +1 -0
  272. package/lib/src/icon/src/svg/shenhe.js +1 -0
  273. package/lib/src/icon/src/svg/shenqing.js +1 -0
  274. package/lib/src/icon/src/svg/tongbu.js +15 -0
  275. package/lib/src/icon/src/svg/up.js +1 -0
  276. package/lib/src/icon/src/svg/upload.js +6 -0
  277. package/lib/src/icon/src/svg/urging.js +1 -0
  278. package/lib/src/icon/src/svg/yes.js +15 -0
  279. package/lib/src/icon/src/svg/yuyue.js +1 -0
  280. package/lib/src/index.js +1 -0
  281. package/lib/src/input/index.js +1 -0
  282. package/lib/src/input/src/input.js +1 -0
  283. package/lib/src/input/src/style/index.css +52 -0
  284. package/lib/src/link/index.js +1 -0
  285. package/lib/src/link/link.js +1 -0
  286. package/lib/src/link/style/index.css +44 -0
  287. package/lib/src/link/types.js +1 -0
  288. package/lib/src/overlay/index.js +1 -0
  289. package/lib/src/overlay/src/overlay.js +1 -0
  290. package/lib/src/overlay/src/style/index.css +19 -0
  291. package/lib/src/popper/index.js +1 -0
  292. package/lib/src/popper/src/forward-ref.js +1 -0
  293. package/lib/src/popper/src/popper.js +1 -0
  294. package/lib/src/popper/src/popper2.js +1 -0
  295. package/lib/src/popper/src/style/index.css +67 -0
  296. package/lib/src/popper/src/trigger.js +1 -0
  297. package/lib/src/popper/src/use-floating.js +1 -0
  298. package/lib/src/popper/src/use-nowrap.js +1 -0
  299. package/lib/src/popper/src/use-popper-container.js +1 -0
  300. package/lib/src/scroll/index.js +1 -0
  301. package/lib/src/scroll/src/scroll.js +1 -0
  302. package/lib/src/scroll/src/style/index.css +46 -0
  303. package/lib/src/select/index.js +1 -0
  304. package/lib/src/select/src/option.js +1 -0
  305. package/lib/src/select/src/select.js +1 -0
  306. package/lib/src/select/src/select2.js +1 -0
  307. package/lib/src/select/src/style/index.css +82 -0
  308. package/lib/src/shake/index.js +1 -0
  309. package/lib/src/shake/shake.js +1 -0
  310. package/lib/src/shake/style/index.css +20 -0
  311. package/lib/src/sign/index.js +1 -0
  312. package/lib/src/sign/src/sign.js +1 -0
  313. package/lib/src/sign/src/style/index.css +0 -0
  314. package/lib/src/style/common.css +2518 -0
  315. package/lib/src/style/css-variables.css +88 -0
  316. package/lib/src/style/index.min.css +2254 -0
  317. package/lib/src/style/previewimg.css +109 -0
  318. package/lib/src/style/var.css +5 -0
  319. package/lib/src/style/zoomimg.css +36 -0
  320. package/lib/src/switch/index.js +1 -0
  321. package/lib/src/switch/src/style/index.css +96 -0
  322. package/lib/src/switch/src/switch.js +1 -0
  323. package/lib/src/tableScroll/index.js +1 -0
  324. package/lib/src/tableScroll/src/index.js +1 -0
  325. package/lib/src/timeline/index.js +1 -0
  326. package/lib/src/timeline/src/style/index.css +63 -0
  327. package/lib/src/timeline/src/timeline.js +1 -0
  328. package/lib/src/toast/index.js +1 -0
  329. package/lib/src/toast/style/index.css +13 -0
  330. package/lib/src/toast/toast.js +1 -0
  331. package/lib/src/tooltip/index.js +1 -0
  332. package/lib/src/tooltip/src/style/index.css +4 -0
  333. package/lib/src/tooltip/src/tooltip.js +1 -0
  334. package/lib/src/tooltip/src/tooltip2.js +1 -0
  335. package/lib/src/tree/index.js +1 -0
  336. package/lib/src/tree/src/style/index.css +154 -0
  337. package/lib/src/tree/src/tree.js +1 -0
  338. package/lib/src/tree/src/tree2.js +1 -0
  339. package/lib/src/tree/src/use-drag.js +1 -0
  340. package/lib/src/upload/dragger.js +1 -0
  341. package/lib/src/upload/index.js +1 -0
  342. package/lib/src/upload/style/drag.css +36 -0
  343. package/lib/src/upload/style/index.css +40 -0
  344. package/lib/src/upload/upload.js +1 -0
  345. package/lib/src/uploadFile/index.js +1 -0
  346. package/lib/src/uploadFile/src/style/index.css +131 -0
  347. package/lib/src/uploadFile/src/uploadFile.js +1 -0
  348. package/lib/src/uploadFile/src/uploadFile2.js +1 -0
  349. package/lib/src/wheel/index.js +1 -0
  350. package/lib/src/wheel/style/index.css +5 -0
  351. package/lib/src/wheel/wheel.js +1 -0
  352. package/lib/src/xgplayer/src/style/index.css +6 -0
  353. package/package.json +31 -0
@@ -0,0 +1,109 @@
1
+ .k-img-preview-mask {
2
+ --mask-bg-color:rgba(0,0,0,0.3);
3
+ --close-btn-bg-color:rgba(0,0,0,1);
4
+ position: fixed;
5
+ top: 0;
6
+ left: 0;
7
+ bottom: 0;
8
+ right: 0;
9
+ background-color: var(--mask-bg-color);
10
+ z-index: 2000;
11
+ }
12
+ .k-img-preview-mask img {
13
+ transform-origin: center;
14
+ cursor: grab;
15
+ transform: scale(0);
16
+ }
17
+ .k-img-preview-mask .k-icon-close-btn {
18
+ position: absolute;
19
+ top: -40px;
20
+ right: -40px;
21
+ width: 80px;
22
+ height: 80px;
23
+ cursor: pointer;
24
+ border-radius: 50%;
25
+ background-color: var(--close-btn-bg-color);
26
+ z-index: 2;
27
+ overflow: hidden;
28
+ }
29
+ .k-img-preview-mask .k-icon-close-btn:before {
30
+ content: "Close";
31
+ background-position: -260px 0;
32
+ position: absolute;
33
+ bottom: 15px;
34
+ left: 15px;
35
+ }
36
+ .k-img-preview-mask .k-img-close:before {
37
+ font-size: 0;
38
+ line-height: 0;
39
+ display: block;
40
+ width: 20px;
41
+ height: 20px;
42
+ color: transparent;
43
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC);
44
+ background-repeat: no-repeat;
45
+ }
46
+ .k-img-preview-mask .action-item-wapper {
47
+ position: absolute;
48
+ bottom: 70px;
49
+ left: 0;
50
+ z-index: 3;
51
+ width: 300px;
52
+ margin-left: calc(50% - 150px);
53
+ height: 40px;
54
+ display: flex;
55
+ justify-content: center;
56
+ align-items: center;
57
+ gap: 10px;
58
+ border-radius: 10px;
59
+ }
60
+ .k-img-preview-mask .action-item-wapper .action-item {
61
+ height: 20px;
62
+ width: 20px;
63
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC);
64
+ background-repeat: no-repeat;
65
+ background-color: var(--close-btn-bg-color);
66
+ cursor: pointer;
67
+ }
68
+ .k-img-preview-mask .action-item-wapper .rotate-right {
69
+ content: "Rotate Right";
70
+ background-position: -160px 0;
71
+ border-radius: 50%;
72
+ }
73
+ .k-img-preview-mask .action-item-wapper .rotate-left {
74
+ content: "Rotate Left";
75
+ background-position: -140px 0;
76
+ border-radius: 50%;
77
+ }
78
+ .k-img-preview-mask .dragger-file-list-wapper {
79
+ position: absolute;
80
+ width: 100%;
81
+ height: 60px;
82
+ background: #4c4848;
83
+ bottom: 0;
84
+ left: 0;
85
+ display: flex;
86
+ justify-content: center;
87
+ gap: 10px;
88
+ z-index: 9999;
89
+ }
90
+ .k-img-preview-mask .dragger-file-list-wapper li {
91
+ height: 60px;
92
+ width: 60px;
93
+ overflow: hidden;
94
+ text-align: center;
95
+ cursor: pointer;
96
+ border: 1px solid transparent;
97
+ opacity: 0.5;
98
+ display: flex;
99
+ justify-content: center;
100
+ }
101
+ .k-img-preview-mask .dragger-file-list-wapper li img {
102
+ height: 100%;
103
+ transform: scale(1);
104
+ pointer-events: none;
105
+ }
106
+ .k-img-preview-mask .dragger-file-list-wapper li.cur {
107
+ border: 1px solid red;
108
+ opacity: 1;
109
+ }
@@ -0,0 +1,5 @@
1
+ button, input, optgroup, select, textarea {
2
+ border: 0;
3
+ padding: 0;
4
+ line-height: inherit;
5
+ }
@@ -0,0 +1,36 @@
1
+ .k-img-zoom-wapper {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ z-index: 9999;
6
+ pointer-events: none;
7
+ opacity: 0;
8
+ padding: 3px;
9
+ --borderWidth: 3px;
10
+ background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
11
+ border-radius: calc(1 * var(--borderWidth));
12
+ animation: animatedgradient 1s ease alternate infinite;
13
+ font-size: 0;
14
+ background-size: 300% 300%;
15
+ }
16
+ .k-img-zoom-wapper img {
17
+ pointer-events: none;
18
+ font-size: 0;
19
+ }
20
+
21
+ .k-img-zoom-wapper.on {
22
+ transition: opacity 0.3s;
23
+ opacity: 1;
24
+ }
25
+
26
+ @keyframes animatedgradient {
27
+ 0% {
28
+ background-position: 0% 50%;
29
+ }
30
+ 50% {
31
+ background-position: 100% 50%;
32
+ }
33
+ 100% {
34
+ background-position: 0% 50%;
35
+ }
36
+ }
@@ -0,0 +1,7 @@
1
+ import t from "./src/switch.mjs";
2
+ import { withInstall as o } from "../../assets/ts/utils.mjs";
3
+ const r = o(t);
4
+ export {
5
+ r as Switch,
6
+ r as default
7
+ };
@@ -0,0 +1,96 @@
1
+ .k-switch {
2
+ --k-switch-off-color: var(--k-border-color);
3
+ --k-switch-on-color: var(--k-color-primary);
4
+ display: inline-flex;
5
+ align-items: center;
6
+ position: relative;
7
+ cursor: pointer;
8
+ transition: width var(--k-transition-duration);
9
+ }
10
+ .k-switch + .k-switch {
11
+ margin-left: 8px;
12
+ }
13
+ .k-switch.is-checked .k-switch__core {
14
+ background-color: var(--k-switch-on-color);
15
+ }
16
+ .k-switch.is-checked .k-switch__action {
17
+ left: calc(100% - 18px);
18
+ }
19
+ .k-switch.is-checked .k-switch__label--right {
20
+ color: var(--k-switch-on-color);
21
+ }
22
+ .k-switch.is-checked .k-switch__inner {
23
+ padding: 0 18px 0 4px;
24
+ }
25
+ .k-switch.is-checked .is-loading {
26
+ color: var(--k-switch-on-color);
27
+ }
28
+ .k-switch.is-disabled {
29
+ cursor: not-allowed;
30
+ opacity: 0.6;
31
+ }
32
+ .k-switch .is-loading {
33
+ color: var(--k-switch-off-color);
34
+ }
35
+ .k-switch__input {
36
+ position: absolute;
37
+ width: 0;
38
+ height: 0;
39
+ opacity: 0;
40
+ margin: 0;
41
+ }
42
+ .k-switch__label--left, .k-switch__label--right {
43
+ line-height: 1;
44
+ font-size: 14px;
45
+ display: inline-block;
46
+ transition: color var(--k-transition-duration);
47
+ }
48
+ .k-switch__label--left {
49
+ margin-right: 8px;
50
+ }
51
+ .k-switch__label--right {
52
+ margin-left: 8px;
53
+ }
54
+ .k-switch__core {
55
+ position: relative;
56
+ min-width: 40px;
57
+ height: 20px;
58
+ border-radius: 12px;
59
+ background-color: var(--k-switch-off-color);
60
+ transition: background-color var(--k-transition-duration);
61
+ }
62
+ .k-switch__inner {
63
+ width: 100%;
64
+ transition: all var(--k-transition-duration);
65
+ height: 16px;
66
+ display: flex;
67
+ justify-content: center;
68
+ align-items: center;
69
+ overflow: hidden;
70
+ padding: 0 4px 0 18px;
71
+ }
72
+ .k-switch__inner .is-text {
73
+ font-size: 12px;
74
+ color: var(--k-color-white);
75
+ -webkit-user-select: none;
76
+ -moz-user-select: none;
77
+ user-select: none;
78
+ overflow: hidden;
79
+ text-overflow: ellipsis;
80
+ white-space: nowrap;
81
+ max-height: calc(100% + 4px);
82
+ }
83
+ .k-switch__action {
84
+ position: absolute;
85
+ left: 2px;
86
+ top: 50%;
87
+ transform: translateY(-50%);
88
+ width: 16px;
89
+ height: 16px;
90
+ display: flex;
91
+ align-items: center;
92
+ justify-content: center;
93
+ background-color: #fff;
94
+ border-radius: 50%;
95
+ transition: left var(--k-transition-duration);
96
+ }
@@ -0,0 +1,79 @@
1
+ import { defineComponent as f, computed as c, openBlock as o, createElementBlock as s, normalizeClass as a, unref as l, normalizeStyle as k, withDirectives as B, createElementVNode as d, vModelCheckbox as T, toDisplayString as r, createCommentVNode as u, createBlock as w } from "vue";
2
+ import { addUnit as C, createNamespace as N } from "../../../assets/ts/utils.mjs";
3
+ import { Icon as P } from "../../icon/index.mjs";
4
+ import "./style/index.css";
5
+ const S = ["disabled"], x = { class: "is-text" }, z = f({
6
+ name: "k-switch"
7
+ }), M = f({
8
+ ...z,
9
+ props: {
10
+ modelValue: { type: [Number, String, Boolean], default: !1 },
11
+ activeValue: { type: [Number, String, Boolean], default: !0 },
12
+ inactiveValue: { type: [Number, String, Boolean], default: !1 },
13
+ activeText: { default: "" },
14
+ inactiveText: { default: "" },
15
+ inlinePrompt: { type: Boolean, default: !1 },
16
+ disabled: { type: Boolean, default: !1 },
17
+ loading: { type: Boolean, default: !1 },
18
+ width: { default: "" }
19
+ },
20
+ emits: ["update:modelValue", "change"],
21
+ setup(v, { emit: h }) {
22
+ const t = v, p = h, { n: i } = N("switch"), n = c({
23
+ get: () => t.modelValue === t.activeValue,
24
+ set: (e) => {
25
+ p("update:modelValue", e ? t.activeValue : t.inactiveValue), p("change", e ? t.activeValue : t.inactiveValue);
26
+ }
27
+ }), y = c(() => {
28
+ if (t.width)
29
+ return { width: C(t.width) };
30
+ }), b = c(() => t.inlinePrompt ? n.value ? t.activeText : t.inactiveText : "");
31
+ function g() {
32
+ t.disabled || (n.value = !n.value);
33
+ }
34
+ return (e, m) => (o(), s("div", {
35
+ class: a([l(i)(), { "is-checked": n.value, "is-disabled": e.disabled }]),
36
+ onClick: g,
37
+ style: k(y.value)
38
+ }, [
39
+ B(d("input", {
40
+ "onUpdate:modelValue": m[0] || (m[0] = (V) => n.value = V),
41
+ class: a(l(i)("input")),
42
+ type: "checkbox",
43
+ disabled: e.disabled
44
+ }, null, 10, S), [
45
+ [T, n.value]
46
+ ]),
47
+ !e.inlinePrompt && e.inactiveText ? (o(), s("span", {
48
+ key: 0,
49
+ class: a(l(i)("label--left"))
50
+ }, r(e.inactiveText), 3)) : u("", !0),
51
+ d("span", {
52
+ class: a(l(i)("core"))
53
+ }, [
54
+ e.inlinePrompt ? (o(), s("span", {
55
+ key: 0,
56
+ class: a(l(i)("inner"))
57
+ }, [
58
+ d("span", x, r(b.value), 1)
59
+ ], 2)) : u("", !0),
60
+ d("div", {
61
+ class: a(l(i)("action"))
62
+ }, [
63
+ e.loading ? (o(), w(l(P), {
64
+ key: 0,
65
+ class: a({ "is-loading": e.loading }),
66
+ name: "loading"
67
+ }, null, 8, ["class"])) : u("", !0)
68
+ ], 2)
69
+ ], 2),
70
+ !e.inlinePrompt && e.activeText ? (o(), s("span", {
71
+ key: 1,
72
+ class: a(l(i)("label--right"))
73
+ }, r(e.activeText), 3)) : u("", !0)
74
+ ], 6));
75
+ }
76
+ });
77
+ export {
78
+ M as default
79
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./src/index.mjs";
2
+ import { withInstall as t } from "../../assets/ts/utils.mjs";
3
+ const a = t(o);
4
+ export {
5
+ a as TableScroll,
6
+ a as default
7
+ };
@@ -0,0 +1,235 @@
1
+ import { defineComponent as Y, ref as d, reactive as ae, computed as i, onBeforeMount as ue, onMounted as ne, onUnmounted as re, watch as q, openBlock as T, createElementBlock as E, normalizeStyle as c, normalizeClass as L, renderSlot as B, createCommentVNode as O, createElementVNode as W, nextTick as ce } from "vue";
2
+ const he = ["innerHTML"], fe = Y({
3
+ name: "k-table-scroll"
4
+ }), de = Y({
5
+ ...fe,
6
+ props: {
7
+ data: { default: () => [] },
8
+ classOption: { default: () => ({}) }
9
+ },
10
+ emits: ["ScrollEnd", "stop"],
11
+ setup(z, { emit: X }) {
12
+ const m = d(), g = d(), p = d(), h = z, f = X, e = ae({
13
+ xPos: 0,
14
+ yPos: 0,
15
+ delay: 0,
16
+ copyHtml: "",
17
+ height: 0,
18
+ width: 0,
19
+ realBoxWidth: 0,
20
+ reqFrame: null,
21
+ singleWaitTime: null,
22
+ isHover: !1,
23
+ ease: "ease-in",
24
+ realBoxHeight: 0,
25
+ startPos: {
26
+ x: 0,
27
+ y: 0
28
+ },
29
+ endPos: {
30
+ x: 0,
31
+ y: 0
32
+ },
33
+ startPosY: 0,
34
+ startPosX: 0
35
+ }), N = d({
36
+ step: 1,
37
+ limitMoveNum: 5,
38
+ hoverStop: !0,
39
+ direction: 1,
40
+ openTouch: !0,
41
+ singleHeight: 0,
42
+ singleWidth: 0,
43
+ waitTime: 1e3,
44
+ switchOffset: 30,
45
+ autoPlay: !0,
46
+ navigation: !1,
47
+ switchSingleStep: 134,
48
+ switchDelay: 400,
49
+ switchDisabledClass: "disabled",
50
+ isSingleRemUnit: !1
51
+ }), o = i(() => ({ ...N.value, ...h.classOption })), P = i(() => o.value.direction > 1), y = i(() => o.value.openTouch), H = i(() => o.value.hoverStop && v.value && M.value), U = i(() => C.value ? "" : o.value.switchDisabledClass), F = i(() => o.value.isSingleRemUnit ? parseInt(window.getComputedStyle(document.documentElement, null).fontSize) : 1), x = i(() => o.value.singleHeight * F.value), M = i(() => h.data.length >= o.value.limitMoveNum), w = i(() => o.value.singleWidth * F.value), C = i(() => e.xPos < 0), S = i(() => o.value.navigation), v = i(() => S.value ? !1 : o.value.autoPlay), R = i(() => ({
52
+ position: "absolute",
53
+ margin: `${e.height / 2}px 0 0 ${e.width + o.value.switchOffset}px`,
54
+ transform: "translateY(-50%)"
55
+ })), V = i(() => ({
56
+ position: "absolute",
57
+ margin: `${e.height / 2}px 0 0 -${o.value.switchOffset}px`,
58
+ transform: "translate(-100%,-50%)"
59
+ })), I = i(() => _.value ? "" : o.value.switchDisabledClass), b = i(() => P.value ? { float: "left", overflow: "hidden" } : { overflow: "hidden" }), j = i(() => ({
60
+ transform: `translate(${e.xPos}px,${e.yPos}px)`,
61
+ transition: `all ${e.ease} ${e.delay}ms`,
62
+ overflow: "hidden"
63
+ })), r = i(() => {
64
+ let t, s = o.value.step;
65
+ return P.value ? t = w.value : t = x.value, t > 0 && t % s > 0 && console.error("\u5982\u679C\u8BBE\u7F6E\u4E86\u5355\u6B65\u6EDA\u52A8,step\u9700\u662F\u5355\u6B65\u5927\u5C0F\u7684\u7EA6\u6570,\u5426\u5219\u65E0\u6CD5\u4FDD\u8BC1\u5355\u6B65\u6EDA\u52A8\u7ED3\u675F\u7684\u4F4D\u7F6E\u662F\u5426\u51C6\u786E\u3002~~~~~"), s;
66
+ }), _ = i(() => Math.abs(e.xPos) < e.realBoxWidth - e.width), D = (t) => {
67
+ t.length > 100 && console.warn(`\u6570\u636E\u8FBE\u5230\u4E86${t.length}\u6761\u6709\u70B9\u591A\u54E6~,\u53EF\u80FD\u4F1A\u9020\u6210\u90E8\u5206\u8001\u65E7\u6D4F\u89C8\u5668\u5361\u987F\u3002`);
68
+ }, a = () => {
69
+ e.isHover || (u(), e.reqFrame = requestAnimationFrame(function() {
70
+ const t = e.realBoxHeight / 2, s = e.realBoxWidth / 2;
71
+ let { direction: l, waitTime: n } = o.value;
72
+ l === 1 ? (Math.abs(e.yPos) >= t && (f("ScrollEnd"), e.yPos = 0), e.yPos -= r.value) : l === 0 ? (e.yPos >= 0 && (f("ScrollEnd"), e.yPos = t * -1), e.yPos += r.value) : l === 2 ? (Math.abs(e.xPos) >= s && (f("ScrollEnd"), e.xPos = 0), e.xPos -= r.value) : l === 3 && (e.xPos >= 0 && (f("ScrollEnd"), e.xPos = s * -1), e.xPos += r.value), e.singleWaitTime && clearTimeout(e.singleWaitTime), x.value ? Math.abs(e.yPos) % x.value < r.value ? e.singleWaitTime = setTimeout(() => {
73
+ a();
74
+ }, n) : a() : w.value && Math.abs(e.xPos) % w.value < r.value ? e.singleWaitTime = setTimeout(() => {
75
+ a();
76
+ }, n) : a();
77
+ }.bind(this)));
78
+ }, G = () => {
79
+ if (!!C.value) {
80
+ if (Math.abs(e.xPos) < o.value.switchSingleStep) {
81
+ e.xPos = 0;
82
+ return;
83
+ }
84
+ e.xPos += o.value.switchSingleStep;
85
+ }
86
+ }, J = () => {
87
+ if (!!_.value) {
88
+ if (e.realBoxWidth - e.width + e.xPos < o.value.switchSingleStep) {
89
+ e.xPos = e.width - e.realBoxWidth;
90
+ return;
91
+ }
92
+ e.xPos -= o.value.switchSingleStep;
93
+ }
94
+ }, k = () => {
95
+ ce(() => {
96
+ const { switchDelay: t } = o.value;
97
+ if (D(h.data), e.copyHtml = "", P.value) {
98
+ e.height = m.value.offsetHeight, e.width = m.value.offsetWidth;
99
+ let s = g.value.offsetWidth;
100
+ v.value && (s = s * 2 + 1), p.value.style.width = s + "px", e.realBoxWidth = s;
101
+ }
102
+ if (v.value)
103
+ e.ease = "ease-in", e.delay = 0;
104
+ else {
105
+ e.ease = "linear", e.delay = t;
106
+ return;
107
+ }
108
+ M.value ? (e.copyHtml = g.value.innerHTML, setTimeout(() => {
109
+ e.realBoxHeight = p.value.offsetHeight, a();
110
+ }, 0)) : (u(), e.yPos = e.xPos = 0);
111
+ });
112
+ }, K = (t) => {
113
+ if (!y.value)
114
+ return;
115
+ let s;
116
+ const l = t.targetTouches[0], { waitTime: n, singleHeight: le, singleWidth: ie } = o.value;
117
+ e.startPos = {
118
+ x: l.pageX,
119
+ y: l.pageY
120
+ }, e.startPosY = e.yPos, e.startPosX = e.xPos, !!le && !!ie ? (s && clearTimeout(s), s = setTimeout(() => {
121
+ u();
122
+ }, n + 20)) : u();
123
+ }, Q = (t) => {
124
+ if (!y.value || t.targetTouches.length > 1 || t.scale && t.scale !== 1)
125
+ return;
126
+ const s = t.targetTouches[0], { direction: l } = o.value;
127
+ e.endPos = {
128
+ x: s.pageX - e.startPos.x,
129
+ y: s.pageY - e.startPos.y
130
+ }, t.preventDefault();
131
+ const n = Math.abs(e.endPos.x) < Math.abs(e.endPos.y) ? 1 : 0;
132
+ n === 1 && l < 2 ? e.yPos = e.startPosY + e.endPos.y : n === 0 && l > 1 && (e.xPos = e.startPosX + e.endPos.x);
133
+ }, Z = () => {
134
+ if (!y.value)
135
+ return;
136
+ let t;
137
+ const s = o.value.direction;
138
+ if (e.delay = 50, s === 1)
139
+ e.yPos > 0 && (e.yPos = 0);
140
+ else if (s === 0) {
141
+ let l = e.realBoxHeight / 2 * -1;
142
+ e.yPos < l && (e.yPos = l);
143
+ } else if (s === 2)
144
+ e.xPos > 0 && (e.xPos = 0);
145
+ else if (s === 3) {
146
+ let l = e.realBoxWidth * -1;
147
+ e.xPos < l && (e.xPos = l);
148
+ }
149
+ t && clearTimeout(t), t = setTimeout(() => {
150
+ e.delay = 0, a();
151
+ }, e.delay);
152
+ }, ee = () => {
153
+ e.isHover = !1, a();
154
+ }, $ = () => {
155
+ e.isHover = !0, e.singleWaitTime && clearTimeout(e.singleWaitTime), u();
156
+ }, te = () => {
157
+ H.value && $();
158
+ }, se = () => {
159
+ H.value && ee();
160
+ }, A = () => {
161
+ u(), k();
162
+ };
163
+ ue(() => {
164
+ e.reqFrame = null, e.singleWaitTime = null, e.isHover = !1, e.ease = "ease-in";
165
+ });
166
+ const u = () => {
167
+ cancelAnimationFrame(e.reqFrame || "");
168
+ };
169
+ ne(() => {
170
+ k();
171
+ }), re(() => {
172
+ u(), clearTimeout(e.singleWaitTime);
173
+ });
174
+ const oe = (t, s) => {
175
+ if (t === s)
176
+ return !0;
177
+ if (t.length !== s.length)
178
+ return !1;
179
+ for (var l = 0; l < t.length; ++l)
180
+ if (t[l] !== s[l])
181
+ return !1;
182
+ return !0;
183
+ };
184
+ return q(() => h.data, (t, s) => {
185
+ D(t), oe(t, s) || A();
186
+ }, { deep: !0 }), q(() => v, (t) => {
187
+ t.value ? A() : $();
188
+ }, { deep: !0 }), (t, s) => (T(), E("div", {
189
+ ref_key: "wrap",
190
+ ref: m
191
+ }, [
192
+ S.value ? (T(), E("div", {
193
+ key: 0,
194
+ style: c(V.value),
195
+ class: L(U.value),
196
+ onClick: G
197
+ }, [
198
+ B(t.$slots, "left-switch")
199
+ ], 6)) : O("", !0),
200
+ S.value ? (T(), E("div", {
201
+ key: 1,
202
+ style: c(R.value),
203
+ class: L(I.value),
204
+ onClick: J
205
+ }, [
206
+ B(t.$slots, "right-switch")
207
+ ], 6)) : O("", !0),
208
+ W("div", {
209
+ ref_key: "realBox",
210
+ ref: p,
211
+ style: c(j.value),
212
+ onMouseenter: te,
213
+ onMouseleave: se,
214
+ onTouchstart: K,
215
+ onTouchmove: Q,
216
+ onTouchend: Z
217
+ }, [
218
+ W("div", {
219
+ ref_key: "slotList",
220
+ ref: g,
221
+ style: c(b.value)
222
+ }, [
223
+ B(t.$slots, "default")
224
+ ], 4),
225
+ W("div", {
226
+ innerHTML: e.copyHtml,
227
+ style: c(b.value)
228
+ }, null, 12, he)
229
+ ], 36)
230
+ ], 512));
231
+ }
232
+ });
233
+ export {
234
+ de as default
235
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./src/timeline.mjs";
2
+ import { withInstall as i } from "../../assets/ts/utils.mjs";
3
+ const r = i(t);
4
+ export {
5
+ r as Timeline,
6
+ r as default
7
+ };
@@ -0,0 +1,63 @@
1
+ .k-timeline {
2
+ width: 100%;
3
+ height: 40px;
4
+ position: relative;
5
+ background: linear-gradient(to bottom, rgba(116, 117, 119, 0.8) 0%, rgba(58, 68, 82, 0.8) 11%, rgba(46, 50, 56, 0.8) 46%, rgba(53, 53, 53, 0.8) 81%, rgba(53, 53, 53, 0.8) 100%);
6
+ -webkit-user-select: none;
7
+ -moz-user-select: none;
8
+ user-select: none;
9
+ cursor: pointer;
10
+ }
11
+ .k-timeline__ticTiny {
12
+ position: absolute;
13
+ bottom: 0;
14
+ left: 0;
15
+ width: 1px;
16
+ height: 25%;
17
+ background: #888;
18
+ pointer-events: none;
19
+ }
20
+ .k-timeline__ticMain {
21
+ position: absolute;
22
+ bottom: 0;
23
+ left: 0;
24
+ width: 1px;
25
+ height: 25%;
26
+ height: 35%;
27
+ background: rgba(255, 255, 255, 0.7);
28
+ pointer-events: none;
29
+ }
30
+ .k-timeline__date {
31
+ position: absolute;
32
+ bottom: 0;
33
+ left: 0;
34
+ display: inline-block;
35
+ width: 140px;
36
+ bottom: 18px;
37
+ margin-left: -70px;
38
+ color: #fff;
39
+ font-size: 13px;
40
+ text-align: center;
41
+ pointer-events: none;
42
+ }
43
+ .k-timeline__point {
44
+ position: absolute;
45
+ bottom: 0;
46
+ left: 0;
47
+ width: 16px;
48
+ height: 16px;
49
+ background: red;
50
+ z-index: 2;
51
+ left: 0;
52
+ border-radius: 50%;
53
+ pointer-events: none;
54
+ }
55
+ .k-timeline__timepoint {
56
+ position: absolute;
57
+ bottom: 0;
58
+ left: 0;
59
+ width: 10px;
60
+ height: 10px;
61
+ background-color: blue;
62
+ border-radius: 50%;
63
+ }