@opentiny/vue-renderless 3.11.8 → 3.12.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 (339) hide show
  1. package/anchor/index.js +13 -6
  2. package/anchor/vue.js +1 -1
  3. package/breadcrumb/index.js +6 -1
  4. package/breadcrumb-item/index.js +8 -1
  5. package/calendar-bar/index.js +295 -68
  6. package/calendar-bar/vue.js +82 -8
  7. package/calendar-view/index.js +2 -2
  8. package/card/index.js +4 -4
  9. package/card/vue.js +2 -3
  10. package/card-group/vue.js +3 -7
  11. package/carousel/index.js +26 -27
  12. package/carousel/vue.js +41 -46
  13. package/carousel-item/index.js +9 -6
  14. package/carousel-item/vue.js +4 -4
  15. package/cascader-mobile/index.js +5 -1
  16. package/cascader-mobile/vue.js +2 -1
  17. package/cascader-panel/index.js +6 -2
  18. package/cascader-view/index.js +363 -0
  19. package/cascader-view/vue.js +130 -0
  20. package/chart-core/deps/constants.js +27 -0
  21. package/chart-core/deps/numerify.js +27 -28
  22. package/chart-core/index.js +122 -31
  23. package/chart-core/vue.js +12 -8
  24. package/chart-radar/index.js +2 -2
  25. package/checkbox-button/vue.js +8 -1
  26. package/checkbox-group/vue.js +4 -5
  27. package/col/index.js +5 -9
  28. package/col/vue.js +4 -3
  29. package/collapse-item/index.js +14 -2
  30. package/color-picker/index.js +24 -34
  31. package/color-picker/utils/color.js +7 -1
  32. package/color-picker/vue.js +39 -26
  33. package/color-select-panel/alpha-select/vue.js +5 -8
  34. package/color-select-panel/hue-select/index.js +4 -2
  35. package/color-select-panel/hue-select/vue.js +11 -10
  36. package/color-select-panel/index.js +29 -17
  37. package/color-select-panel/utils/color.js +5 -0
  38. package/color-select-panel/vue.js +16 -7
  39. package/column-list-item/index.js +19 -5
  40. package/column-list-item/vue.js +16 -14
  41. package/common/bigInt.js +1 -1
  42. package/common/deps/dom.js +37 -5
  43. package/common/deps/repeat-click.js +3 -2
  44. package/common/deps/touch-emulator.js +95 -0
  45. package/common/deps/touch.js +12 -11
  46. package/common/deps/useEventListener.js +47 -0
  47. package/common/deps/useTouch.js +68 -0
  48. package/common/deps/vue-popper.js +2 -3
  49. package/common/index.js +1 -1
  50. package/common/runtime.js +1 -1
  51. package/common/string.js +20 -9
  52. package/date-picker/index.js +24 -4
  53. package/date-picker-mobile/index.js +5 -1
  54. package/file-upload/index.js +148 -50
  55. package/file-upload/vue.js +24 -6
  56. package/filter/index.js +2 -1
  57. package/filter/vue.js +1 -1
  58. package/form-item/index.js +24 -21
  59. package/form-item/vue.js +14 -12
  60. package/grid/plugins/export.js +0 -8
  61. package/grid/utils/common.js +13 -16
  62. package/image-viewer/index.js +1 -1
  63. package/ip-address/index.js +6 -3
  64. package/menu/index.js +127 -0
  65. package/menu/vue.js +90 -0
  66. package/menu-node/index.js +12 -0
  67. package/menu-node/vue.js +42 -0
  68. package/modal/index.js +6 -0
  69. package/modal/vue.js +3 -1
  70. package/numeric/index.js +18 -2
  71. package/numeric/vue.js +11 -7
  72. package/package.json +1 -1
  73. package/popconfirm/index.js +15 -6
  74. package/popconfirm/vue.js +5 -4
  75. package/pull-refresh-mobile-first/index.js +243 -0
  76. package/pull-refresh-mobile-first/vue.js +116 -0
  77. package/qr-code/index.js +54 -0
  78. package/qr-code/vue.js +31 -0
  79. package/radio/index.js +9 -7
  80. package/radio/vue.js +4 -4
  81. package/radio-button/index.js +2 -2
  82. package/radio-button/vue.js +2 -2
  83. package/radio-group/vue.js +1 -0
  84. package/rich-text-edtior/index.js +18 -38
  85. package/rich-text-edtior/vue.js +52 -63
  86. package/select/index.js +2 -4
  87. package/slide-bar/index.js +6 -6
  88. package/slide-bar/vue.js +5 -5
  89. package/slider/index.js +47 -14
  90. package/slider/vue.js +25 -6
  91. package/slider-button/index.js +5 -1
  92. package/slider-button/vue.js +1 -0
  93. package/slider-button-group/index.js +15 -0
  94. package/slider-button-group/vue.js +8 -11
  95. package/standard-list-item/index.js +9 -3
  96. package/standard-list-item/vue.js +3 -2
  97. package/switch/index.js +11 -9
  98. package/switch/vue.js +1 -1
  99. package/tab-bar/index.js +1 -1
  100. package/tab-bar/vue.js +2 -1
  101. package/tab-nav/index.js +31 -31
  102. package/tab-nav/vue.js +13 -12
  103. package/tabs/vue.js +3 -1
  104. package/tabs-mf/index.js +14 -9
  105. package/tabs-mf/vue-bar.js +3 -2
  106. package/tabs-mf/vue-nav-item.js +2 -1
  107. package/tabs-mf/vue-nav.js +18 -2
  108. package/tabs-mf/vue.js +3 -1
  109. package/tag/index.js +1 -1
  110. package/toast/index.js +7 -0
  111. package/toast/vue.js +19 -0
  112. package/transfer/index.js +2 -2
  113. package/transfer/vue.js +1 -1
  114. package/tree-node/index.js +1 -1
  115. package/types/{action-menu.type.d.mts → action-menu.type.d.ts} +3 -3
  116. package/types/{alert.type.d.mts → alert.type.d.ts} +2 -1
  117. package/types/{anchor.type.d.mts → anchor.type.d.ts} +3 -3
  118. package/types/{badge.type.d.mts → badge.type.d.ts} +1 -1
  119. package/types/{breadcrumb-item.type.d.mts → breadcrumb-item.type.d.ts} +1 -1
  120. package/types/{breadcrumb.type.d.mts → breadcrumb.type.d.ts} +1 -1
  121. package/types/{button-group.type.d.mts → button-group.type.d.ts} +1 -1
  122. package/types/{button.type.d.mts → button.type.d.ts} +1 -1
  123. package/types/{cascader-menu.type.d.mts → cascader-menu.type.d.ts} +4 -4
  124. package/types/{cascader-node.type.d.mts → cascader-node.type.d.ts} +4 -4
  125. package/types/{cascader-panel.type.d.mts → cascader-panel.type.d.ts} +6 -6
  126. package/types/{checkbox.type.d.mts → checkbox.type.d.ts} +2 -1
  127. package/types/{collapse-item.type.d.mts → collapse-item.type.d.ts} +1 -1
  128. package/types/{collapse.type.d.mts → collapse.type.d.ts} +1 -1
  129. package/types/{color-picker.type.d.mts → color-picker.type.d.ts} +2 -2
  130. package/types/{color-select-panel.type.d.mts → color-select-panel.type.d.ts} +2 -2
  131. package/types/{date-picker.type.d.mts → date-picker.type.d.ts} +5 -1
  132. package/types/{dialog-box.type.d.mts → dialog-box.type.d.ts} +9 -9
  133. package/types/{dropdown-item.type-77f0c8c5.d.ts → dropdown-item.type-bf83e929.d.ts} +4 -4
  134. package/types/{dropdown-item.type.d.mts → dropdown-item.type.d.ts} +3 -3
  135. package/types/{dropdown-menu.type.d.mts → dropdown-menu.type.d.ts} +3 -3
  136. package/types/{dropdown.type.d.mts → dropdown.type.d.ts} +1 -1
  137. package/types/{file-upload.type.d.mts → file-upload.type.d.ts} +2 -2
  138. package/types/{floatbar.type.d.mts → floatbar.type.d.ts} +7 -7
  139. package/types/{form-item.type.d.mts → form-item.type.d.ts} +2 -2
  140. package/types/{form.type-1e2e9272.d.ts → form.type-d0fd42f3.d.ts} +20 -7
  141. package/types/{form.type.d.mts → form.type.d.ts} +2 -2
  142. package/types/{image.type.d.mts → image.type.d.ts} +1 -1
  143. package/types/{input.type.d.mts → input.type.d.ts} +10 -2
  144. package/types/{link.type.d.mts → link.type.d.ts} +1 -1
  145. package/types/{loading.type.d.mts → loading.type.d.ts} +1 -1
  146. package/types/{milestone.type.d.mts → milestone.type.d.ts} +1 -1
  147. package/types/{modal.type.d.mts → modal.type.d.ts} +18 -19
  148. package/types/{nav-menu.type.d.mts → nav-menu.type.d.ts} +1 -1
  149. package/types/{numeric.type.d.mts → numeric.type.d.ts} +9 -3
  150. package/types/{picker.type.d.mts → picker.type.d.ts} +5 -1
  151. package/types/{popeditor.type.d.mts → popeditor.type.d.ts} +1 -1
  152. package/types/{popover.type.d.mts → popover.type.d.ts} +1 -1
  153. package/types/{progress.type.d.mts → progress.type.d.ts} +1 -1
  154. package/types/{radio-button.type.d.mts → radio-button.type.d.ts} +3 -3
  155. package/types/{radio-group.type.d.mts → radio-group.type.d.ts} +5 -1
  156. package/types/{radio.type.d.mts → radio.type.d.ts} +2 -2
  157. package/types/{search.type.d.mts → search.type.d.ts} +1 -1
  158. package/types/{shared.type.d.mts → shared.type.d.ts} +7 -7
  159. package/types/{slider.type.d.mts → slider.type.d.ts} +1 -1
  160. package/types/{steps.type.d.mts → steps.type.d.ts} +6 -1
  161. package/types/{switch.type.d.mts → switch.type.d.ts} +5 -1
  162. package/types/{tab-bar.type.d.mts → tab-bar.type.d.ts} +3 -2
  163. package/types/{tab-item.type.d.mts → tab-item.type.d.ts} +2 -2
  164. package/types/{tab-nav.type.d.mts → tab-nav.type.d.ts} +13 -12
  165. package/types/{tabs.type.d.mts → tabs.type.d.ts} +6 -4
  166. package/types/{tag.type.d.mts → tag.type.d.ts} +1 -1
  167. package/types/{time-line.type-5f76ecc2.d.ts → time-line.type-d7daa669.d.ts} +1 -1
  168. package/types/{time-line.type.d.mts → time-line.type.d.ts} +2 -2
  169. package/types/{timeline-item.type.d.mts → timeline-item.type.d.ts} +2 -2
  170. package/types/toast.type.d.ts +63 -0
  171. package/types/{tooltip.type.d.mts → tooltip.type.d.ts} +2 -9
  172. package/types/{upload-dragger.type.d.mts → upload-dragger.type.d.ts} +2 -2
  173. package/types/{upload-list.type-b934f279.d.ts → upload-list.type-343e8c11.d.ts} +45 -7
  174. package/types/{upload-list.type.d.mts → upload-list.type.d.ts} +2 -2
  175. package/types/{upload.type.d.mts → upload.type.d.ts} +2 -2
  176. package/types/watermark.type.d.ts +33 -0
  177. package/types/{wizard.type.d.mts → wizard.type.d.ts} +1 -1
  178. package/upload/index.js +1 -1
  179. package/upload-list/index.js +3 -2
  180. package/upload-list/vue.js +12 -2
  181. package/watermark/index.js +202 -0
  182. package/watermark/vue.js +27 -0
  183. package/wizard/index.js +5 -5
  184. package/card-group/index.js +0 -16
  185. package/color-picker/alpha-select/index.js +0 -20
  186. package/color-picker/alpha-select/vue.js +0 -60
  187. package/color-picker/color-select/index.js +0 -69
  188. package/color-picker/color-select/vue.js +0 -57
  189. package/color-picker/utils/use-drag.js +0 -38
  190. /package/types/{action-sheet.type.d.mts → action-sheet.type.d.ts} +0 -0
  191. /package/types/{amount.type.d.mts → amount.type.d.ts} +0 -0
  192. /package/types/{area.type.d.mts → area.type.d.ts} +0 -0
  193. /package/types/{autocomplete.type.d.mts → autocomplete.type.d.ts} +0 -0
  194. /package/types/{autonavi-map.type.d.mts → autonavi-map.type.d.ts} +0 -0
  195. /package/types/{avatar.type.d.mts → avatar.type.d.ts} +0 -0
  196. /package/types/{baidu-map.type.d.mts → baidu-map.type.d.ts} +0 -0
  197. /package/types/{bulletin-board.type.d.mts → bulletin-board.type.d.ts} +0 -0
  198. /package/types/{calendar-bar.type.d.mts → calendar-bar.type.d.ts} +0 -0
  199. /package/types/{calendar.type.d.mts → calendar.type.d.ts} +0 -0
  200. /package/types/{card-group.type.d.mts → card-group.type.d.ts} +0 -0
  201. /package/types/{card-template.type.d.mts → card-template.type.d.ts} +0 -0
  202. /package/types/{card.type.d.mts → card.type.d.ts} +0 -0
  203. /package/types/{carousel-item.type.d.mts → carousel-item.type.d.ts} +0 -0
  204. /package/types/{carousel.type.d.mts → carousel.type.d.ts} +0 -0
  205. /package/types/{cascader-mobile.type.d.mts → cascader-mobile.type.d.ts} +0 -0
  206. /package/types/{cascader-select.type.d.mts → cascader-select.type.d.ts} +0 -0
  207. /package/types/{cascader.type.d.mts → cascader.type.d.ts} +0 -0
  208. /package/types/{cell.type.d.mts → cell.type.d.ts} +0 -0
  209. /package/types/{chart-bar.type.d.mts → chart-bar.type.d.ts} +0 -0
  210. /package/types/{chart-boxplot.type.d.mts → chart-boxplot.type.d.ts} +0 -0
  211. /package/types/{chart-candle.type.d.mts → chart-candle.type.d.ts} +0 -0
  212. /package/types/{chart-core.type.d.mts → chart-core.type.d.ts} +0 -0
  213. /package/types/{chart-funnel.type.d.mts → chart-funnel.type.d.ts} +0 -0
  214. /package/types/{chart-gauge.type.d.mts → chart-gauge.type.d.ts} +0 -0
  215. /package/types/{chart-graph.type.d.mts → chart-graph.type.d.ts} +0 -0
  216. /package/types/{chart-heatmap.type.d.mts → chart-heatmap.type.d.ts} +0 -0
  217. /package/types/{chart-line.type.d.mts → chart-line.type.d.ts} +0 -0
  218. /package/types/{chart-liquidfill.type.d.mts → chart-liquidfill.type.d.ts} +0 -0
  219. /package/types/{chart-map.type.d.mts → chart-map.type.d.ts} +0 -0
  220. /package/types/{chart-pie.type.d.mts → chart-pie.type.d.ts} +0 -0
  221. /package/types/{chart-radar.type.d.mts → chart-radar.type.d.ts} +0 -0
  222. /package/types/{chart-sankey.type.d.mts → chart-sankey.type.d.ts} +0 -0
  223. /package/types/{chart-scatter.type.d.mts → chart-scatter.type.d.ts} +0 -0
  224. /package/types/{chart-sunburst.type.d.mts → chart-sunburst.type.d.ts} +0 -0
  225. /package/types/{chart-tree.type.d.mts → chart-tree.type.d.ts} +0 -0
  226. /package/types/{chart-waterfall.type.d.mts → chart-waterfall.type.d.ts} +0 -0
  227. /package/types/{chart-wordcloud.type.d.mts → chart-wordcloud.type.d.ts} +0 -0
  228. /package/types/{checkbox-button.type.d.mts → checkbox-button.type.d.ts} +0 -0
  229. /package/types/{checkbox-group.type.d.mts → checkbox-group.type.d.ts} +0 -0
  230. /package/types/{col.type.d.mts → col.type.d.ts} +0 -0
  231. /package/types/{column-list-group.type.d.mts → column-list-group.type.d.ts} +0 -0
  232. /package/types/{column-list-item.type.d.mts → column-list-item.type.d.ts} +0 -0
  233. /package/types/{common.type.d.mts → common.type.d.ts} +0 -0
  234. /package/types/{company.type.d.mts → company.type.d.ts} +0 -0
  235. /package/types/{container.type.d.mts → container.type.d.ts} +0 -0
  236. /package/types/{country.type.d.mts → country.type.d.ts} +0 -0
  237. /package/types/{credit-card-form.type.d.mts → credit-card-form.type.d.ts} +0 -0
  238. /package/types/{credit-card.type.d.mts → credit-card.type.d.ts} +0 -0
  239. /package/types/{crop.type.d.mts → crop.type.d.ts} +0 -0
  240. /package/types/{currency.type.d.mts → currency.type.d.ts} +0 -0
  241. /package/types/{date-panel.type.d.mts → date-panel.type.d.ts} +0 -0
  242. /package/types/{date-picker-mobile.type.d.mts → date-picker-mobile.type.d.ts} +0 -0
  243. /package/types/{date-range.type.d.mts → date-range.type.d.ts} +0 -0
  244. /package/types/{date-table.type.d.mts → date-table.type.d.ts} +0 -0
  245. /package/types/{dept.type.d.mts → dept.type.d.ts} +0 -0
  246. /package/types/{detail-page.type.d.mts → detail-page.type.d.ts} +0 -0
  247. /package/types/{dialog-select.type.d.mts → dialog-select.type.d.ts} +0 -0
  248. /package/types/{drawer.type.d.mts → drawer.type.d.ts} +0 -0
  249. /package/types/{drop-roles.type.d.mts → drop-roles.type.d.ts} +0 -0
  250. /package/types/{drop-times.type.d.mts → drop-times.type.d.ts} +0 -0
  251. /package/types/{dynamic-scroller-item.type.d.mts → dynamic-scroller-item.type.d.ts} +0 -0
  252. /package/types/{dynamic-scroller.type.d.mts → dynamic-scroller.type.d.ts} +0 -0
  253. /package/types/{espace.type.d.mts → espace.type.d.ts} +0 -0
  254. /package/types/{exception.type.d.mts → exception.type.d.ts} +0 -0
  255. /package/types/{fall-menu.type.d.mts → fall-menu.type.d.ts} +0 -0
  256. /package/types/{filter-bar.type.d.mts → filter-bar.type.d.ts} +0 -0
  257. /package/types/{filter-box.type.d.mts → filter-box.type.d.ts} +0 -0
  258. /package/types/{filter-panel.type.d.mts → filter-panel.type.d.ts} +0 -0
  259. /package/types/{filter.type.d.mts → filter.type.d.ts} +0 -0
  260. /package/types/{floating-button.type.d.mts → floating-button.type.d.ts} +0 -0
  261. /package/types/{flowchart.type.d.mts → flowchart.type.d.ts} +0 -0
  262. /package/types/{fullscreen.type.d.mts → fullscreen.type.d.ts} +0 -0
  263. /package/types/{grid.type.d.mts → grid.type.d.ts} +0 -0
  264. /package/types/{guide.type.d.mts → guide.type.d.ts} +0 -0
  265. /package/types/{hrapprover.type.d.mts → hrapprover.type.d.ts} +0 -0
  266. /package/types/{image-viewer.type.d.mts → image-viewer.type.d.ts} +0 -0
  267. /package/types/{index-bar-anchor.type.d.mts → index-bar-anchor.type.d.ts} +0 -0
  268. /package/types/{index-bar.type.d.mts → index-bar.type.d.ts} +0 -0
  269. /package/types/{ip-address.type.d.mts → ip-address.type.d.ts} +0 -0
  270. /package/types/{layout.type.d.mts → layout.type.d.ts} +0 -0
  271. /package/types/{link-menu.type.d.mts → link-menu.type.d.ts} +0 -0
  272. /package/types/{list.type.d.mts → list.type.d.ts} +0 -0
  273. /package/types/{locales.type.d.mts → locales.type.d.ts} +0 -0
  274. /package/types/{logon-user.type.d.mts → logon-user.type.d.ts} +0 -0
  275. /package/types/{logout.type.d.mts → logout.type.d.ts} +0 -0
  276. /package/types/{mini-picker.type.d.mts → mini-picker.type.d.ts} +0 -0
  277. /package/types/{month-range.type.d.mts → month-range.type.d.ts} +0 -0
  278. /package/types/{month-table.type.d.mts → month-table.type.d.ts} +0 -0
  279. /package/types/{multi-select.type.d.mts → multi-select.type.d.ts} +0 -0
  280. /package/types/{notify.type.d.mts → notify.type.d.ts} +0 -0
  281. /package/types/{option-group.type.d.mts → option-group.type.d.ts} +0 -0
  282. /package/types/{option.type.d.mts → option.type.d.ts} +0 -0
  283. /package/types/{pager-item.type.d.mts → pager-item.type.d.ts} +0 -0
  284. /package/types/{pager.type.d.mts → pager.type.d.ts} +0 -0
  285. /package/types/{panel.type.d.mts → panel.type.d.ts} +0 -0
  286. /package/types/{picker-column.type.d.mts → picker-column.type.d.ts} +0 -0
  287. /package/types/{pop-upload.type.d.mts → pop-upload.type.d.ts} +0 -0
  288. /package/types/{popconfirm.type.d.mts → popconfirm.type.d.ts} +0 -0
  289. /package/types/{popup.type.d.mts → popup.type.d.ts} +0 -0
  290. /package/types/{pull-refresh.type.d.mts → pull-refresh.type.d.ts} +0 -0
  291. /package/types/{query-builder.type.d.mts → query-builder.type.d.ts} +0 -0
  292. /package/types/{rate.type.d.mts → rate.type.d.ts} +0 -0
  293. /package/types/{record.type.d.mts → record.type.d.ts} +0 -0
  294. /package/types/{recycle-scroller.type.d.mts → recycle-scroller.type.d.ts} +0 -0
  295. /package/types/{river.type.d.mts → river.type.d.ts} +0 -0
  296. /package/types/{roles.type.d.mts → roles.type.d.ts} +0 -0
  297. /package/types/{row.type.d.mts → row.type.d.ts} +0 -0
  298. /package/types/{scroll-text.type.d.mts → scroll-text.type.d.ts} +0 -0
  299. /package/types/{scrollbar.type.d.mts → scrollbar.type.d.ts} +0 -0
  300. /package/types/{select-dropdown.type.d.mts → select-dropdown.type.d.ts} +0 -0
  301. /package/types/{select-mobile.type.d.mts → select-mobile.type.d.ts} +0 -0
  302. /package/types/{select-view.type.d.mts → select-view.type.d.ts} +0 -0
  303. /package/types/{select.type.d.mts → select.type.d.ts} +0 -0
  304. /package/types/{selected-box.type.d.mts → selected-box.type.d.ts} +0 -0
  305. /package/types/{slide-bar.type.d.mts → slide-bar.type.d.ts} +0 -0
  306. /package/types/{slider-button-group.type.d.mts → slider-button-group.type.d.ts} +0 -0
  307. /package/types/{slider-button.type.d.mts → slider-button.type.d.ts} +0 -0
  308. /package/types/{split.type.d.mts → split.type.d.ts} +0 -0
  309. /package/types/{standard-list-item.type.d.mts → standard-list-item.type.d.ts} +0 -0
  310. /package/types/{tab-dropdown.type.d.mts → tab-dropdown.type.d.ts} +0 -0
  311. /package/types/{tab-item-mf.type.d.mts → tab-item-mf.type.d.ts} +0 -0
  312. /package/types/{tabbar-item.type.d.mts → tabbar-item.type.d.ts} +0 -0
  313. /package/types/{tabbar.type.d.mts → tabbar.type.d.ts} +0 -0
  314. /package/types/{table.type.d.mts → table.type.d.ts} +0 -0
  315. /package/types/{tabs-mf.type.d.mts → tabs-mf.type.d.ts} +0 -0
  316. /package/types/{tag-group.type.d.mts → tag-group.type.d.ts} +0 -0
  317. /package/types/{tall-storage.type.d.mts → tall-storage.type.d.ts} +0 -0
  318. /package/types/{text-popup.type.d.mts → text-popup.type.d.ts} +0 -0
  319. /package/types/{time-panel.type.d.mts → time-panel.type.d.ts} +0 -0
  320. /package/types/{time-picker-mobile.type.d.mts → time-picker-mobile.type.d.ts} +0 -0
  321. /package/types/{time-range.type.d.mts → time-range.type.d.ts} +0 -0
  322. /package/types/{time-spinner.type.d.mts → time-spinner.type.d.ts} +0 -0
  323. /package/types/{time.type.d.mts → time.type.d.ts} +0 -0
  324. /package/types/{toggle-menu.type.d.mts → toggle-menu.type.d.ts} +0 -0
  325. /package/types/{top-box.type.d.mts → top-box.type.d.ts} +0 -0
  326. /package/types/{transfer-panel.type.d.mts → transfer-panel.type.d.ts} +0 -0
  327. /package/types/{transfer.type.d.mts → transfer.type.d.ts} +0 -0
  328. /package/types/{tree-menu.type.d.mts → tree-menu.type.d.ts} +0 -0
  329. /package/types/{tree-node.type.d.mts → tree-node.type.d.ts} +0 -0
  330. /package/types/{tree.type.d.mts → tree.type.d.ts} +0 -0
  331. /package/types/{user-account.type.d.mts → user-account.type.d.ts} +0 -0
  332. /package/types/{user-contact.type.d.mts → user-contact.type.d.ts} +0 -0
  333. /package/types/{user-head-group.type.d.mts → user-head-group.type.d.ts} +0 -0
  334. /package/types/{user-head.type.d.mts → user-head.type.d.ts} +0 -0
  335. /package/types/{user-link.type.d.mts → user-link.type.d.ts} +0 -0
  336. /package/types/{user.type.d.mts → user.type.d.ts} +0 -0
  337. /package/types/{wheel.type.d.mts → wheel.type.d.ts} +0 -0
  338. /package/types/{year-range.type.d.mts → year-range.type.d.ts} +0 -0
  339. /package/types/{year-table.type.d.mts → year-table.type.d.ts} +0 -0
@@ -1,69 +0,0 @@
1
- import "../../chunk-G2ADBYYC.js";
2
- const setPosition = (el, x, y) => {
3
- el.style.top = `${y}px`;
4
- el.style.left = `${x}px`;
5
- };
6
- const getXBySaturation = (s, width) => s * width / 100;
7
- const getYByLight = (l, height) => (100 - l) * height / 100;
8
- const updatePosition = (event, rect, cursor) => {
9
- let x = event.clientX - rect.left;
10
- let y = event.clientY - rect.top;
11
- x = Math.max(0, x);
12
- x = Math.min(x, rect.width);
13
- y = Math.max(0, y);
14
- y = Math.min(y, rect.height);
15
- setPosition(cursor.value, x - 1 / 2 * cursor.value.offsetWidth, y - 1 / 2 * cursor.value.offsetWidth);
16
- return { x, y };
17
- };
18
- const calcSaturation = (x, width) => x / width;
19
- const calcBrightness = (y, height) => 100 - y / height * 100;
20
- const getThumbTop = (wrapper, thumb, hue) => {
21
- return Math.round(hue * (wrapper.offsetHeight - thumb.offsetHeight / 2) / 360);
22
- };
23
- const resetCursor = (s, v, wrapper, cursor, thumb, color, h) => {
24
- const { width, height } = wrapper.value.getBoundingClientRect();
25
- const x = getXBySaturation(s, width) - 1 / 2 * cursor.value.offsetWidth;
26
- const y = getYByLight(v, height) - 1 / 2 * cursor.value.offsetWidth;
27
- setPosition(cursor.value, x < 0 ? 0 : x, y < 0 ? 0 : y);
28
- const thummbTop = getThumbTop(wrapper.value, thumb.value, color.get("h"));
29
- thumb.value.style.top = `${thummbTop}px`;
30
- h.value = color.get("h");
31
- };
32
- const updateCursor = (wrapper, cursor, emit) => {
33
- return (color, event) => {
34
- const rect = wrapper.value.getBoundingClientRect();
35
- const { x, y } = updatePosition(event, rect, cursor);
36
- color.set({
37
- s: calcSaturation(x, rect.width) * 100,
38
- v: calcBrightness(y, rect.height)
39
- });
40
- emit("sv-update", {
41
- s: color.get("s"),
42
- v: color.get("v")
43
- });
44
- };
45
- };
46
- const updateThumb = (bar, thumb, h, emit) => {
47
- return (event) => {
48
- const e = event;
49
- const rect = bar.value.getBoundingClientRect();
50
- let top = e.clientY - rect.top;
51
- top = Math.min(top, rect.height - thumb.value.offsetHeight / 2);
52
- top = Math.max(thumb.value.offsetHeight / 2, top);
53
- thumb.value.style.top = `${top}px`;
54
- h.value = Math.round((top - thumb.value.offsetHeight / 2) / (rect.height - thumb.value.offsetHeight) * 360);
55
- emit("hue-update", h.value);
56
- };
57
- };
58
- export {
59
- calcBrightness,
60
- calcSaturation,
61
- getThumbTop,
62
- getXBySaturation,
63
- getYByLight,
64
- resetCursor,
65
- setPosition,
66
- updateCursor,
67
- updatePosition,
68
- updateThumb
69
- };
@@ -1,57 +0,0 @@
1
- import "../../chunk-G2ADBYYC.js";
2
- import { draggable } from "../utils/use-drag";
3
- import Color from "../utils/color";
4
- import { getThumbTop, resetCursor, updateThumb, updateCursor } from "./index";
5
- const api = ["state", "cursor", "wrapper", "bar", "thumb"];
6
- const renderless = (props, context, { emit }) => {
7
- const cursor = context.ref();
8
- const wrapper = context.ref();
9
- const thumb = context.ref();
10
- const bar = context.ref();
11
- const color = new Color(props.color);
12
- const h = context.ref(color.get("h"));
13
- const background = context.computed(() => {
14
- return `hsl(${h.value}deg, 100%, 50%)`;
15
- });
16
- const state = context.reactive({
17
- background
18
- });
19
- const api2 = { state, cursor, wrapper, bar, thumb };
20
- context.watch(
21
- () => props.color,
22
- (newColor) => {
23
- color.reset(newColor);
24
- resetCursor(color.get("s"), color.get("v"), wrapper, cursor, thumb, color, h);
25
- }
26
- );
27
- context.onMounted(() => {
28
- const update = {
29
- thumb: updateThumb(bar, thumb, h, emit),
30
- cursor: updateCursor(wrapper, cursor, emit)
31
- };
32
- const thumbTop = getThumbTop(wrapper.value, thumb.value, h.value);
33
- thumb.value.style.top = `${thumbTop}px`;
34
- resetCursor(color.get("s"), color.get("v"), wrapper, cursor, thumb, color, h);
35
- draggable(wrapper.value, {
36
- drag(event) {
37
- update.cursor(color, event);
38
- },
39
- start(event) {
40
- update.cursor(color, event);
41
- }
42
- });
43
- draggable(bar.value, {
44
- drag(event) {
45
- update.thumb(event);
46
- },
47
- start(event) {
48
- update.thumb(event);
49
- }
50
- });
51
- });
52
- return api2;
53
- };
54
- export {
55
- api,
56
- renderless
57
- };
@@ -1,38 +0,0 @@
1
- import "../../chunk-G2ADBYYC.js";
2
- let isDragging = false;
3
- function draggable(element, options) {
4
- const moveFn = function(event) {
5
- var _a;
6
- (_a = options.drag) == null ? void 0 : _a.call(options, event);
7
- };
8
- const upFn = function(event) {
9
- var _a;
10
- document.removeEventListener("mousemove", moveFn);
11
- document.removeEventListener("mouseup", upFn);
12
- document.removeEventListener("touchmove", moveFn);
13
- document.removeEventListener("touchend", upFn);
14
- document.onselectstart = null;
15
- document.ondragstart = null;
16
- isDragging = false;
17
- (_a = options.end) == null ? void 0 : _a.call(options, event);
18
- };
19
- const downFn = function(event) {
20
- var _a;
21
- if (isDragging)
22
- return;
23
- event.preventDefault();
24
- document.onselectstart = () => false;
25
- document.ondragstart = () => false;
26
- document.addEventListener("mousemove", moveFn);
27
- document.addEventListener("mouseup", upFn);
28
- document.addEventListener("touchmove", moveFn);
29
- document.addEventListener("touchend", upFn);
30
- isDragging = true;
31
- (_a = options.start) == null ? void 0 : _a.call(options, event);
32
- };
33
- element.addEventListener("mousedown", downFn);
34
- element.addEventListener("touchstart", downFn);
35
- }
36
- export {
37
- draggable
38
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes