@web-utils/form-ui 1.0.0-beta72 → 1.0.0-beta73

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 (326) hide show
  1. package/address-input/index.mjs +1 -1
  2. package/affix/index.d.ts +0 -2
  3. package/affix/index.mjs +2 -3
  4. package/capsule-tab/index.mjs +1 -1
  5. package/card/index.mjs +15 -16
  6. package/chunks/-fXBgN9b2.mjs +37 -0
  7. package/chunks/{-UHCmZBh.mjs → -yfgKY3g.mjs} +1 -1
  8. package/chunks/{Ciy3EJGG2.mjs → -zgWD713.mjs} +44 -45
  9. package/chunks/{CidE_6Q52.mjs → 8A7LSgb4.mjs} +26 -27
  10. package/chunks/{qFn9SqfB2.mjs → Apjns0ZM.mjs} +72 -73
  11. package/chunks/B0BOjeph2.mjs +108 -0
  12. package/chunks/BD6_5FSI.mjs +178 -0
  13. package/chunks/BE4V5Vf5.mjs +133 -0
  14. package/chunks/{Diidem-9.mjs → BGJjAw5E.mjs} +1 -1
  15. package/chunks/{BJNI7n9Z.mjs → BH7VEktl.mjs} +19 -19
  16. package/chunks/{BrJzSp9f.mjs → BI6kCG2j2.mjs} +2 -2
  17. package/chunks/{QAHALDuF2.mjs → BYtFzO-8.mjs} +138 -139
  18. package/chunks/{C9nRNgwm2.mjs → B_AUZSOW.mjs} +589 -763
  19. package/chunks/BctSGDgW2.mjs +29 -0
  20. package/chunks/{CJl5ZiUq2.mjs → Bes1uXng.mjs} +28 -30
  21. package/chunks/BhIWiH5R.mjs +661 -0
  22. package/chunks/BhzlH7Az.mjs +90 -0
  23. package/chunks/{DmEOzzaP2.mjs → BrelfRGo2.mjs} +14 -14
  24. package/chunks/{X6BItEt1.mjs → BsqIRxSS.mjs} +6 -7
  25. package/chunks/{Bnm0osro.mjs → C--HDCqy.mjs} +13 -16
  26. package/chunks/{iPHgzcZ0.mjs → C6mb7Nru2.mjs} +4 -4
  27. package/chunks/{Bhkk9TmJ2.mjs → CFoSvMJ-2.mjs} +1 -1
  28. package/chunks/{Vrr45MGv.mjs → CO3taG7t2.mjs} +1 -1
  29. package/chunks/{Bxo1Of95.mjs → CZUhA3sf.mjs} +298 -4
  30. package/chunks/Ccxbv7uz2.mjs +34 -0
  31. package/chunks/Ce4tNNzg2.mjs +63 -0
  32. package/chunks/{SEQG09ut.mjs → CelJ2L8A2.mjs} +2 -2
  33. package/chunks/CjYOitzM2.mjs +31 -0
  34. package/chunks/Cknuquqx.mjs +32 -0
  35. package/chunks/ClVh1Lek.mjs +130 -0
  36. package/chunks/CwyebsNL2.mjs +39 -0
  37. package/chunks/{DWjZMJ1e2.mjs → D6DYxngS.mjs} +132 -133
  38. package/chunks/D6YM84Pf2.mjs +29 -0
  39. package/chunks/{DlROUHPJ2.mjs → DTq5QLoT.mjs} +43 -43
  40. package/chunks/{5oaTzHT-2.mjs → DVMfVn-M.mjs} +14 -13
  41. package/chunks/DVdQHb_v.mjs +50 -0
  42. package/chunks/{YS7hFnUB2.mjs → Daa7nl7U.mjs} +19 -19
  43. package/chunks/{D6TSUCGL.mjs → Dh_BQpvC2.mjs} +2 -2
  44. package/chunks/DizOY5i8.mjs +69 -0
  45. package/chunks/{Czi7_tAe.mjs → DjaV6_cg2.mjs} +2 -2
  46. package/chunks/{CKWgRCN52.mjs → Dm3gQGoV2.mjs} +2 -2
  47. package/chunks/DqW9QtF3.mjs +68 -0
  48. package/chunks/{CKbOqPFm2.mjs → DqWJCka8.mjs} +9 -9
  49. package/chunks/{CIerTjpq2.mjs → DrWUdRj32.mjs} +2 -2
  50. package/chunks/Dv7YRB2U2.mjs +25 -0
  51. package/chunks/DyLQsqWJ.mjs +61 -0
  52. package/chunks/HsHwYW1a.mjs +99 -0
  53. package/chunks/KDVLIvaS.mjs +30 -0
  54. package/chunks/{BHwRv4F0.mjs → Lkg7bYLD2.mjs} +73 -74
  55. package/chunks/{DSnICEQN.mjs → Opn85Hlx2.mjs} +1 -1
  56. package/chunks/{CsA_9MVv.mjs → YdNYH25C.mjs} +1 -1
  57. package/chunks/{BiYsC43_.mjs → gTgPZrgY2.mjs} +119 -120
  58. package/chunks/{D2FNAA1a.mjs → jsgk7Yse2.mjs} +2 -2
  59. package/chunks/nL59ZuIk.mjs +58 -0
  60. package/chunks/{BrSZZNRc.mjs → neuEq1De.mjs} +70 -72
  61. package/chunks/{BJuAz5lX2.mjs → sWVkgzQt2.mjs} +2 -2
  62. package/chunks/{DN2qkQvd.mjs → tjwOOiNr2.mjs} +31 -32
  63. package/code-mirror-editor/index.mjs +1 -1
  64. package/confirm-button/index.mjs +1 -1
  65. package/confirmable/index.mjs +1 -1
  66. package/context-menu/index.mjs +1 -1
  67. package/count-up/index.mjs +1 -1
  68. package/custom-scrollbar/index.mjs +1 -1
  69. package/data-box/index.mjs +9 -10
  70. package/data-card/index.mjs +8 -9
  71. package/data-card-text/index.mjs +8 -9
  72. package/data-display/index.mjs +9 -10
  73. package/data-icons/index.mjs +9 -10
  74. package/data-imgtext/index.mjs +9 -11
  75. package/data-operatext/index.mjs +8 -9
  76. package/data-panel/index.mjs +9 -10
  77. package/data-pay/index.mjs +10 -12
  78. package/data-price/index.mjs +8 -9
  79. package/data-progress/index.mjs +10 -11
  80. package/data-rotate/index.mjs +9 -10
  81. package/data-table-picker/index.mjs +11 -12
  82. package/data-tabs/index.mjs +9 -10
  83. package/dict-render/index.mjs +1 -1
  84. package/e-charts/index.mjs +2 -2
  85. package/easy-popup/index.mjs +1 -1
  86. package/editable-progress/index.mjs +8 -8
  87. package/editable-tree/index.mjs +595 -2
  88. package/editable-tree/style.css +1 -1
  89. package/element-dialog/index.mjs +1 -1
  90. package/element-dialog/style.css +1 -1
  91. package/element-resize-observer/index.mjs +1 -1
  92. package/flex-box/index.mjs +1 -1
  93. package/flex-column/index.mjs +1 -1
  94. package/flex-item/index.mjs +1 -1
  95. package/flex-row/index.mjs +1 -1
  96. package/flex-scroller/index.mjs +1 -1
  97. package/flow-designer/index.mjs +1 -1
  98. package/flow-designer/style.css +1 -1
  99. package/flow-viewer/index.mjs +1 -1
  100. package/form-cascader/index.mjs +1 -1
  101. package/form-checkbox/index.mjs +1 -1
  102. package/form-checkbox-group/index.mjs +1 -1
  103. package/form-checkbox-group/style.css +1 -1
  104. package/form-date-picker/index.mjs +1 -1
  105. package/form-holder/index.mjs +1 -1
  106. package/form-image/index.mjs +1 -1
  107. package/form-input/index.mjs +1 -1
  108. package/form-input-cron-expression/index.mjs +1 -1
  109. package/form-input-email/index.mjs +1 -1
  110. package/form-input-id-card/index.mjs +1 -1
  111. package/form-input-number/index.mjs +1 -1
  112. package/form-input-phone-number/index.mjs +1 -1
  113. package/form-input-tag/index.mjs +1 -1
  114. package/form-input-time/index.mjs +1 -1
  115. package/form-item-group/index.mjs +1 -1
  116. package/form-item-x/index.mjs +1 -1
  117. package/form-radio-group/index.mjs +1 -1
  118. package/form-rate/index.mjs +1 -1
  119. package/form-row/index.mjs +1 -1
  120. package/form-select/index.mjs +1 -1
  121. package/form-slider/index.mjs +1 -1
  122. package/form-switch/index.mjs +1 -1
  123. package/form-table/index.mjs +1 -1
  124. package/form-table-plus/index.mjs +1 -1
  125. package/form-text/index.mjs +1 -1
  126. package/form-textarea/index.mjs +1 -1
  127. package/form-time-select/index.mjs +1 -1
  128. package/form-tree-select/index.mjs +1 -1
  129. package/form-tree-select-multiple/index.mjs +1 -1
  130. package/form-view/index.mjs +3 -3
  131. package/guide-steps/index.mjs +77 -2
  132. package/guide-steps/style.css +1 -1
  133. package/helper/dictionary.mjs +1 -1
  134. package/helper/input.mjs +1 -1
  135. package/highlight-j-s/index.mjs +1 -1
  136. package/iframe-window/index.mjs +1 -1
  137. package/image-cropper/index.mjs +12 -11
  138. package/image-preview/index.d.ts +1 -153
  139. package/image-preview/index.mjs +201 -2
  140. package/image-preview/style.css +1 -1
  141. package/image-viewer/index.mjs +1 -1
  142. package/index.css +1 -1
  143. package/index.mjs +101 -101
  144. package/input-number-range/index.mjs +7 -7
  145. package/keyboard/index.mjs +1 -1
  146. package/loading-view/index.mjs +1 -1
  147. package/name-avatar/index.mjs +1 -1
  148. package/nav-bar/index.mjs +3 -4
  149. package/package.json +5 -1
  150. package/page-index/index.mjs +14 -14
  151. package/page-index-top/index.mjs +12 -12
  152. package/pageable-table/index.mjs +1 -1
  153. package/pageable-table/style.css +1 -1
  154. package/photo-swipe/index.mjs +1 -1
  155. package/props/col.mjs +1 -1
  156. package/props/form-item.mjs +1 -1
  157. package/sign-panel/index.mjs +1 -1
  158. package/skeleton-panel/index.mjs +3 -3
  159. package/split-pane/index.mjs +1 -1
  160. package/sub-table/index.mjs +1 -1
  161. package/sub-table-plus/index.mjs +1 -1
  162. package/swiper/index.mjs +2 -2
  163. package/table-column/index.mjs +1 -1
  164. package/table-column-def/index.mjs +1 -1
  165. package/table-view/index.mjs +108 -109
  166. package/table-view/style.css +1 -1
  167. package/tag-render/index.mjs +21 -23
  168. package/text-ellipsis/index.d.ts +1 -1
  169. package/text-ellipsis/index.mjs +1 -1
  170. package/toolbar/index.mjs +1 -1
  171. package/toolbar-button/index.mjs +1 -1
  172. package/vue-cron/index.mjs +1 -1
  173. package/vue-tags-input/index.mjs +1 -1
  174. package/vue-tree-select/index.mjs +1 -1
  175. package/vue-video-player/index.d.ts +1 -1
  176. package/vue-video-player/index.mjs +1 -1
  177. package/watermark/index.mjs +1 -1
  178. package/web-types.json +1 -1
  179. package/x-input-tag/index.mjs +47 -50
  180. package/year-calendar/index.mjs +1 -1
  181. package/chunks/49634Q2N2.mjs +0 -936
  182. package/chunks/77cFhiAz.mjs +0 -13
  183. package/chunks/7JVbVOff2.mjs +0 -46
  184. package/chunks/B1ATN2my.mjs +0 -26
  185. package/chunks/B7O8aGqC2.mjs +0 -58
  186. package/chunks/BBPczt0U.mjs +0 -4
  187. package/chunks/BCwAowl1.mjs +0 -589
  188. package/chunks/BDVLN2ly.mjs +0 -105
  189. package/chunks/BEIlrURf.mjs +0 -251
  190. package/chunks/BEysX5TF2.mjs +0 -1038
  191. package/chunks/BHVyaqk0.mjs +0 -736
  192. package/chunks/BIj6pa8Z.mjs +0 -15
  193. package/chunks/BMWg0Wyj.mjs +0 -223
  194. package/chunks/BOsml5YC.mjs +0 -69
  195. package/chunks/BPwFiWYl2.mjs +0 -226
  196. package/chunks/BVIHqL6g.mjs +0 -17
  197. package/chunks/BVSQ6DfJ.mjs +0 -17
  198. package/chunks/BWqFKbFT.mjs +0 -1
  199. package/chunks/B__5L22p2.mjs +0 -346
  200. package/chunks/Bcpewc6H.mjs +0 -1279
  201. package/chunks/Bdeug17L.mjs +0 -42
  202. package/chunks/BffxPn8a.mjs +0 -34
  203. package/chunks/BgKQXQO_.mjs +0 -3093
  204. package/chunks/Bgw_3soo.mjs +0 -35
  205. package/chunks/BjCfQFUL.mjs +0 -54
  206. package/chunks/BjWs-r2V.mjs +0 -25
  207. package/chunks/BlB1fEo92.mjs +0 -8
  208. package/chunks/BmP9lQmT.mjs +0 -1
  209. package/chunks/BrYtAPbN2.mjs +0 -161
  210. package/chunks/BsKwchVA.mjs +0 -14
  211. package/chunks/BzFYbCpR.mjs +0 -25
  212. package/chunks/C6puxasG.mjs +0 -34
  213. package/chunks/C7l9aZGE.mjs +0 -577
  214. package/chunks/CDRNaOEg2.mjs +0 -274
  215. package/chunks/CG7AYiWy.mjs +0 -1
  216. package/chunks/CLzc_j7_.mjs +0 -234
  217. package/chunks/CQSTyCVP.mjs +0 -6
  218. package/chunks/CQxz8uUc.mjs +0 -454
  219. package/chunks/CU8bKuD12.mjs +0 -237
  220. package/chunks/CUF58PQ6.mjs +0 -1
  221. package/chunks/CUMFv5zJ2.mjs +0 -136
  222. package/chunks/C_eGir-J.mjs +0 -17
  223. package/chunks/Cb6Zx6UC.mjs +0 -29
  224. package/chunks/Cb_S4x_i2.mjs +0 -1098
  225. package/chunks/CbgD7y-5.mjs +0 -5
  226. package/chunks/CbsGuLZz2.mjs +0 -105
  227. package/chunks/CcT5SsZk.mjs +0 -48
  228. package/chunks/CcnjxILx.mjs +0 -1
  229. package/chunks/ChkCT6Mm.mjs +0 -4
  230. package/chunks/CiFlMt6Z.mjs +0 -41
  231. package/chunks/CiOqOUkG.mjs +0 -1
  232. package/chunks/CkXf_DVJ2.mjs +0 -1
  233. package/chunks/CnCSm3LY2.mjs +0 -4
  234. package/chunks/CnqWFDqp2.mjs +0 -244
  235. package/chunks/Cq0oEWRi2.mjs +0 -384
  236. package/chunks/CtBIjjQc2.mjs +0 -58
  237. package/chunks/Ctd3_wOH2.mjs +0 -6
  238. package/chunks/CuoYjthQ.mjs +0 -643
  239. package/chunks/CwhXr2Qc.mjs +0 -1
  240. package/chunks/D-hj62se2.mjs +0 -525
  241. package/chunks/D3VpXXqv.mjs +0 -1331
  242. package/chunks/D3Xixh5v.mjs +0 -5
  243. package/chunks/D4oNQiIK.mjs +0 -461
  244. package/chunks/D7O9ov79.mjs +0 -447
  245. package/chunks/D8fid28s2.mjs +0 -42
  246. package/chunks/DJdhVUFO2.mjs +0 -2435
  247. package/chunks/DJo_1CEK2.mjs +0 -61
  248. package/chunks/DMBx2EQl.mjs +0 -107
  249. package/chunks/DOCwznnS.mjs +0 -62
  250. package/chunks/DStwh2ne.mjs +0 -281
  251. package/chunks/D_5z5Xeq2.mjs +0 -37
  252. package/chunks/Df9VO_Wn2.mjs +0 -2
  253. package/chunks/Dg9Q-Tbi2.mjs +0 -299
  254. package/chunks/Diyl8upM.mjs +0 -277
  255. package/chunks/DjIPzCCR.mjs +0 -2
  256. package/chunks/DnBzQ-xh.mjs +0 -4
  257. package/chunks/Dp195RgF.mjs +0 -2
  258. package/chunks/Dqu1Etz62.mjs +0 -52
  259. package/chunks/DrKq_frR.mjs +0 -98
  260. package/chunks/DrXfCf172.mjs +0 -440
  261. package/chunks/DsZznbt2.mjs +0 -208
  262. package/chunks/Dsd58O0g.mjs +0 -25
  263. package/chunks/DssopN-n2.mjs +0 -97
  264. package/chunks/Dtq1xYk8.mjs +0 -47
  265. package/chunks/FeuisuNY2.mjs +0 -88
  266. package/chunks/GEtlriHC.mjs +0 -188
  267. package/chunks/GsvG1yFW.mjs +0 -1919
  268. package/chunks/IheQdJ0z.mjs +0 -267
  269. package/chunks/KGmxNbpi.mjs +0 -21
  270. package/chunks/PNyFONog2.mjs +0 -69
  271. package/chunks/T70m4caR.mjs +0 -1095
  272. package/chunks/ZBsqmcIN2.mjs +0 -622
  273. package/chunks/akEzJ4kG.mjs +0 -18
  274. package/chunks/fX1GD0G5.mjs +0 -70
  275. package/chunks/gh52LMTG.mjs +0 -12
  276. package/chunks/hgAOQY9a.mjs +0 -406
  277. package/chunks/iu5J8EF_.mjs +0 -197
  278. package/chunks/lGc5ksPb.mjs +0 -279
  279. package/chunks/pZQfJv282.mjs +0 -4
  280. package/chunks/qrHhuZXg.mjs +0 -465
  281. package/chunks/r8gDbwly.mjs +0 -1
  282. package/chunks/vpwjmKdg2.mjs +0 -32
  283. package/css/style.css +0 -1
  284. package/css/style10.css +0 -1
  285. package/css/style11.css +0 -1
  286. package/css/style12.css +0 -1
  287. package/css/style13.css +0 -1
  288. package/css/style14.css +0 -1
  289. package/css/style15.css +0 -1
  290. package/css/style16.css +0 -1
  291. package/css/style17.css +0 -1
  292. package/css/style18.css +0 -1
  293. package/css/style19.css +0 -1
  294. package/css/style2.css +0 -1
  295. package/css/style20.css +0 -1
  296. package/css/style21.css +0 -1
  297. package/css/style22.css +0 -1
  298. package/css/style23.css +0 -1
  299. package/css/style24.css +0 -1
  300. package/css/style25.css +0 -1
  301. package/css/style26.css +0 -1
  302. package/css/style27.css +0 -1
  303. package/css/style28.css +0 -1
  304. package/css/style29.css +0 -1
  305. package/css/style3.css +0 -1
  306. package/css/style4.css +0 -1
  307. package/css/style5.css +0 -1
  308. package/css/style6.css +0 -1
  309. package/css/style7.css +0 -1
  310. package/css/style8.css +0 -1
  311. package/css/style9.css +0 -1
  312. package/form-date-picker/style.css +0 -1
  313. package/form-image/style.css +0 -1
  314. package/form-input-time/style.css +0 -1
  315. package/form-radio-group/style.css +0 -1
  316. package/form-rate/style.css +0 -1
  317. package/form-time-select/style.css +0 -1
  318. /package/chunks/{CZnBtJW02.mjs → BBvIPqcc.mjs} +0 -0
  319. /package/chunks/{iIozz7ce.mjs → BoCxKwBf.mjs} +0 -0
  320. /package/chunks/{BxRjXAwz.mjs → CE67pCwD.mjs} +0 -0
  321. /package/chunks/{DWhGFQkb2.mjs → CQeEP_Tl.mjs} +0 -0
  322. /package/chunks/{BQ0e8kIi.mjs → CaczibeD.mjs} +0 -0
  323. /package/chunks/{B_80qPvY.mjs → DZCryyFG.mjs} +0 -0
  324. /package/chunks/{q5iCsXNv.mjs → Dq63V0CC.mjs} +0 -0
  325. /package/chunks/{CRjUGi_-.mjs → OEBJ-trG.mjs} +0 -0
  326. /package/chunks/{GYddfy8T.mjs → fjtZc9Rq2.mjs} +0 -0
@@ -1,346 +0,0 @@
1
- import { T as e, _ as t, b as n, n as r, t as i } from "./hgAOQY9a.mjs";
2
- import { g as a, k as o, l as s, s as c, t as l, u } from "./DrKq_frR.mjs";
3
- import { F as d } from "./D4oNQiIK.mjs";
4
- import { t as f } from "./BVIHqL6g.mjs";
5
- import { t as p } from "./Ctd3_wOH2.mjs";
6
- import { Fragment as m, Transition as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createVNode as x, defineComponent as S, inject as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onActivated as D, onBeforeUnmount as O, onMounted as ee, onUpdated as k, openBlock as A, provide as j, reactive as M, ref as N, renderSlot as P, resolveDynamicComponent as F, toRef as I, unref as L, vShow as R, watch as z, withCtx as B, withDirectives as V, withModifiers as H } from "vue";
7
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/scrollbar/src/scrollbar.mjs
8
- var U = s({
9
- distance: {
10
- type: Number,
11
- default: 0
12
- },
13
- height: {
14
- type: [String, Number],
15
- default: ""
16
- },
17
- maxHeight: {
18
- type: [String, Number],
19
- default: ""
20
- },
21
- native: Boolean,
22
- wrapStyle: {
23
- type: u([
24
- String,
25
- Object,
26
- Array
27
- ]),
28
- default: ""
29
- },
30
- wrapClass: {
31
- type: [String, Array],
32
- default: ""
33
- },
34
- viewClass: {
35
- type: [String, Array],
36
- default: ""
37
- },
38
- viewStyle: {
39
- type: [
40
- String,
41
- Array,
42
- Object
43
- ],
44
- default: ""
45
- },
46
- noresize: Boolean,
47
- tag: {
48
- type: String,
49
- default: "div"
50
- },
51
- always: Boolean,
52
- minSize: {
53
- type: Number,
54
- default: 20
55
- },
56
- tabindex: {
57
- type: [String, Number],
58
- default: void 0
59
- },
60
- id: String,
61
- role: String,
62
- ...f(["ariaLabel", "ariaOrientation"])
63
- }), W = {
64
- "end-reached": (e) => [
65
- "left",
66
- "right",
67
- "top",
68
- "bottom"
69
- ].includes(e),
70
- scroll: ({ scrollTop: e, scrollLeft: t }) => [e, t].every(a)
71
- }, G = {
72
- vertical: {
73
- offset: "offsetHeight",
74
- scroll: "scrollTop",
75
- scrollSize: "scrollHeight",
76
- size: "height",
77
- key: "vertical",
78
- axis: "Y",
79
- client: "clientY",
80
- direction: "top"
81
- },
82
- horizontal: {
83
- offset: "offsetWidth",
84
- scroll: "scrollLeft",
85
- scrollSize: "scrollWidth",
86
- size: "width",
87
- key: "horizontal",
88
- axis: "X",
89
- client: "clientX",
90
- direction: "left"
91
- }
92
- }, K = ({ move: e, size: t, bar: n }) => ({
93
- [n.size]: t,
94
- transform: `translate${n.axis}(${e}%)`
95
- }), q = s({
96
- vertical: Boolean,
97
- size: String,
98
- move: Number,
99
- ratio: {
100
- type: Number,
101
- required: !0
102
- },
103
- always: Boolean
104
- }), J = Symbol("scrollbarContextKey"), Y = s({
105
- always: {
106
- type: Boolean,
107
- default: !0
108
- },
109
- minSize: {
110
- type: Number,
111
- required: !0
112
- }
113
- }), X = "Thumb", Z = /* @__PURE__ */ S({
114
- __name: "thumb",
115
- props: q,
116
- setup(n) {
117
- let i = n, a = C(J), o = c("scrollbar");
118
- a || r(X, "can not inject scrollbar context");
119
- let s = N(), l = N(), u = N({}), d = N(!1), f = !1, p = !1, m = 0, v = 0, y = e ? document.onselectstart : null, x = g(() => G[i.vertical ? "vertical" : "horizontal"]), S = g(() => K({
120
- size: i.size,
121
- move: i.move,
122
- bar: x.value
123
- })), w = g(() => s.value[x.value.offset] ** 2 / a.wrapElement[x.value.scrollSize] / i.ratio / l.value[x.value.offset]), D = (e) => {
124
- var t;
125
- if (e.stopPropagation(), e.ctrlKey || [1, 2].includes(e.button)) return;
126
- (t = window.getSelection()) == null || t.removeAllRanges(), k(e);
127
- let n = e.currentTarget;
128
- n && (u.value[x.value.axis] = n[x.value.offset] - (e[x.value.client] - n.getBoundingClientRect()[x.value.direction]));
129
- }, ee = (e) => {
130
- if (!l.value || !s.value || !a.wrapElement) return;
131
- let t = (Math.abs(e.target.getBoundingClientRect()[x.value.direction] - e[x.value.client]) - l.value[x.value.offset] / 2) * 100 * w.value / s.value[x.value.offset];
132
- a.wrapElement[x.value.scroll] = t * a.wrapElement[x.value.scrollSize] / 100;
133
- }, k = (e) => {
134
- e.stopImmediatePropagation(), f = !0, m = a.wrapElement.scrollHeight, v = a.wrapElement.scrollWidth, document.addEventListener("mousemove", j), document.addEventListener("mouseup", M), y = document.onselectstart, document.onselectstart = () => !1;
135
- }, j = (e) => {
136
- if (!s.value || !l.value || f === !1) return;
137
- let t = u.value[x.value.axis];
138
- if (!t) return;
139
- let n = ((s.value.getBoundingClientRect()[x.value.direction] - e[x.value.client]) * -1 - (l.value[x.value.offset] - t)) * 100 * w.value / s.value[x.value.offset];
140
- x.value.scroll === "scrollLeft" ? a.wrapElement[x.value.scroll] = n * v / 100 : a.wrapElement[x.value.scroll] = n * m / 100;
141
- }, M = () => {
142
- f = !1, u.value[x.value.axis] = 0, document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", M), z(), p && (d.value = !1);
143
- }, P = () => {
144
- p = !1, d.value = !!i.size;
145
- }, F = () => {
146
- p = !0, d.value = f;
147
- };
148
- O(() => {
149
- z(), document.removeEventListener("mouseup", M);
150
- });
151
- let z = () => {
152
- document.onselectstart !== y && (document.onselectstart = y);
153
- };
154
- return t(I(a, "scrollbarElement"), "mousemove", P), t(I(a, "scrollbarElement"), "mouseleave", F), (e, t) => (A(), _(h, {
155
- name: L(o).b("fade"),
156
- persisted: ""
157
- }, {
158
- default: B(() => [V(b("div", {
159
- ref_key: "instance",
160
- ref: s,
161
- class: T([L(o).e("bar"), L(o).is(x.value.key)]),
162
- onMousedown: ee,
163
- onClick: t[0] || (t[0] = H(() => {}, ["stop"]))
164
- }, [b("div", {
165
- ref_key: "thumb",
166
- ref: l,
167
- class: T(L(o).e("thumb")),
168
- style: E(S.value),
169
- onMousedown: D
170
- }, null, 38)], 34), [[R, n.always || d.value]])]),
171
- _: 1
172
- }, 8, ["name"]));
173
- }
174
- }), te = /* @__PURE__ */ S({
175
- __name: "bar",
176
- props: Y,
177
- setup(e, { expose: t }) {
178
- let n = e, r = C(J), i = N(0), a = N(0), o = N(""), s = N(""), c = N(1), l = N(1);
179
- return t({
180
- handleScroll: (e) => {
181
- if (e) {
182
- let t = e.offsetHeight - 4, n = e.offsetWidth - 4;
183
- a.value = e.scrollTop * 100 / t * c.value, i.value = e.scrollLeft * 100 / n * l.value;
184
- }
185
- },
186
- update: () => {
187
- let e = r == null ? void 0 : r.wrapElement;
188
- if (!e) return;
189
- let t = e.offsetHeight - 4, i = e.offsetWidth - 4, a = t ** 2 / e.scrollHeight, u = i ** 2 / e.scrollWidth, d = Math.max(a, n.minSize), f = Math.max(u, n.minSize);
190
- c.value = a / (t - a) / (d / (t - d)), l.value = u / (i - u) / (f / (i - f)), s.value = d + 4 < t ? `${d}px` : "", o.value = f + 4 < i ? `${f}px` : "";
191
- }
192
- }), (t, n) => (A(), y(m, null, [x(Z, {
193
- move: i.value,
194
- ratio: l.value,
195
- size: o.value,
196
- always: e.always
197
- }, null, 8, [
198
- "move",
199
- "ratio",
200
- "size",
201
- "always"
202
- ]), x(Z, {
203
- move: a.value,
204
- ratio: c.value,
205
- size: s.value,
206
- vertical: "",
207
- always: e.always
208
- }, null, 8, [
209
- "move",
210
- "ratio",
211
- "size",
212
- "always"
213
- ])], 64));
214
- }
215
- }), ne = ["tabindex"], Q = "ElScrollbar", re = l(/* @__PURE__ */ S({
216
- name: Q,
217
- __name: "scrollbar",
218
- props: U,
219
- emits: W,
220
- setup(e, { expose: r, emit: s }) {
221
- let l = e, u = s, f = c("scrollbar"), m, h, x, S = 0, C = 0, O = "", I = {
222
- bottom: !1,
223
- top: !1,
224
- right: !1,
225
- left: !1
226
- }, R = N(), V = N(), H = N(), U = N(), W = g(() => {
227
- let e = {}, t = d(l.height), n = d(l.maxHeight);
228
- return t && (e.height = t), n && (e.maxHeight = n), [l.wrapStyle, e];
229
- }), G = g(() => [
230
- l.wrapClass,
231
- f.e("wrap"),
232
- { [f.em("wrap", "hidden-default")]: !l.native }
233
- ]), K = g(() => [f.e("view"), l.viewClass]), q = (e) => I[e] ?? !1, Y = {
234
- top: "bottom",
235
- bottom: "top",
236
- left: "right",
237
- right: "left"
238
- }, X = (e) => {
239
- let t = Y[O];
240
- if (!t) return;
241
- let n = e[O], r = e[t];
242
- n && !I[O] && (I[O] = !0), !r && I[t] && (I[t] = !1);
243
- }, Z = () => {
244
- if (V.value) {
245
- var e;
246
- (e = U.value) == null || e.handleScroll(V.value);
247
- let t = S, n = C;
248
- S = V.value.scrollTop, C = V.value.scrollLeft;
249
- let r = {
250
- bottom: !p(V.value.scrollHeight - l.distance, V.value.clientHeight + S),
251
- top: S <= l.distance && t !== 0,
252
- right: !p(V.value.scrollWidth - l.distance, V.value.clientWidth + C) && n !== C,
253
- left: C <= l.distance && n !== 0
254
- };
255
- if (u("scroll", {
256
- scrollTop: S,
257
- scrollLeft: C
258
- }), t !== S && (O = S > t ? "bottom" : "top"), n !== C && (O = C > n ? "right" : "left"), l.distance > 0) {
259
- if (q(O)) return;
260
- X(r);
261
- }
262
- r[O] && u("end-reached", O);
263
- }
264
- };
265
- function re(e, t) {
266
- o(e) ? V.value.scrollTo(e) : a(e) && a(t) && V.value.scrollTo(e, t);
267
- }
268
- let ie = (e) => {
269
- if (!a(e)) {
270
- i(Q, "value must be a number");
271
- return;
272
- }
273
- V.value.scrollTop = e;
274
- }, ae = (e) => {
275
- if (!a(e)) {
276
- i(Q, "value must be a number");
277
- return;
278
- }
279
- V.value.scrollLeft = e;
280
- }, $ = () => {
281
- var e, t;
282
- (e = U.value) == null || e.update(), I[O] = !1, V.value && ((t = U.value) == null || t.handleScroll(V.value));
283
- };
284
- return z(() => l.noresize, (e) => {
285
- e ? (m == null || m(), h == null || h(), x == null || x()) : ({stop: m} = n(H, $), {stop: h} = n(V, $), x = t("resize", $));
286
- }, { immediate: !0 }), z(() => [l.maxHeight, l.height], () => {
287
- l.native || w(() => {
288
- $();
289
- });
290
- }), j(J, M({
291
- scrollbarElement: R,
292
- wrapElement: V
293
- })), D(() => {
294
- V.value && (V.value.scrollTop = S, V.value.scrollLeft = C);
295
- }), ee(() => {
296
- l.native || w(() => {
297
- $();
298
- });
299
- }), k(() => $()), r({
300
- wrapRef: V,
301
- update: $,
302
- scrollTo: re,
303
- setScrollTop: ie,
304
- setScrollLeft: ae,
305
- handleScroll: Z
306
- }), (t, n) => (A(), y("div", {
307
- ref_key: "scrollbarRef",
308
- ref: R,
309
- class: T(L(f).b())
310
- }, [b("div", {
311
- ref_key: "wrapRef",
312
- ref: V,
313
- class: T(G.value),
314
- style: E(W.value),
315
- tabindex: e.tabindex,
316
- onScroll: Z
317
- }, [(A(), _(F(e.tag), {
318
- id: e.id,
319
- ref_key: "resizeRef",
320
- ref: H,
321
- class: T(K.value),
322
- style: E(e.viewStyle),
323
- role: e.role,
324
- "aria-label": e.ariaLabel,
325
- "aria-orientation": e.ariaOrientation
326
- }, {
327
- default: B(() => [P(t.$slots, "default")]),
328
- _: 3
329
- }, 8, [
330
- "id",
331
- "class",
332
- "style",
333
- "role",
334
- "aria-label",
335
- "aria-orientation"
336
- ]))], 46, ne), e.native ? v("v-if", !0) : (A(), _(te, {
337
- key: 0,
338
- ref_key: "barRef",
339
- ref: U,
340
- always: e.always,
341
- "min-size": e.minSize
342
- }, null, 8, ["always", "min-size"]))], 2));
343
- }
344
- }));
345
- //#endregion
346
- export { W as n, re as t };