@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,589 +0,0 @@
1
- import "./CjjJimnU.mjs";
2
- import { i as e, n as t } from "./Bdeug17L.mjs";
3
- import { A as n, C as r, T as i, _ as a, v as o } from "./hgAOQY9a.mjs";
4
- import { E as s, M as c, b as l, f as u, g as d, l as f, m as p, s as ee, t as m, u as h } from "./DrKq_frR.mjs";
5
- import { t as te } from "./KGmxNbpi.mjs";
6
- import { t as ne } from "./77cFhiAz.mjs";
7
- import { E as g, M as _, N as v, T as y, g as b, i as x, p as re, r as S, t as C, w as ie } from "./D4oNQiIK.mjs";
8
- import { n as ae } from "./GEtlriHC.mjs";
9
- import { n as w } from "./BjCfQFUL.mjs";
10
- import { t as T } from "./BjWs-r2V.mjs";
11
- import { t as oe } from "./DsZznbt2.mjs";
12
- import { n as se } from "./BVSQ6DfJ.mjs";
13
- import { t as E } from "./CnCSm3LY2.mjs";
14
- import { h as D } from "./D-hj62se2.mjs";
15
- /* empty css */
16
- import { useFormItemProps as O } from "../helper/form-item.mjs";
17
- import { r as k } from "./CUMFv5zJ2.mjs";
18
- import { allProps as A, predicate as j } from "../props/image.mjs";
19
- import { Fragment as ce, Transition as le, computed as M, createBlock as ue, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createSlots as I, createTextVNode as L, createVNode as R, defineComponent as z, effectScope as de, guardReactiveProps as B, isVNode as fe, markRaw as pe, mergeProps as V, nextTick as me, normalizeClass as H, normalizeProps as U, normalizeStyle as he, onMounted as ge, openBlock as W, ref as G, renderSlot as K, resolveDynamicComponent as _e, shallowRef as ve, toDisplayString as ye, unref as q, useAttrs as be, watch as J, withCtx as Y, withModifiers as xe } from "vue";
20
- import { fromPairs as Se, throttle as X } from "lodash-unified";
21
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/image/src/image.mjs
22
- var Ce = f({
23
- hideOnClickModal: Boolean,
24
- src: {
25
- type: String,
26
- default: ""
27
- },
28
- fit: {
29
- type: String,
30
- values: [
31
- "",
32
- "contain",
33
- "cover",
34
- "fill",
35
- "none",
36
- "scale-down"
37
- ],
38
- default: ""
39
- },
40
- loading: {
41
- type: String,
42
- values: ["eager", "lazy"]
43
- },
44
- lazy: Boolean,
45
- scrollContainer: { type: h([String, Object]) },
46
- previewSrcList: {
47
- type: h(Array),
48
- default: () => E([])
49
- },
50
- previewTeleported: Boolean,
51
- zIndex: { type: Number },
52
- initialIndex: {
53
- type: Number,
54
- default: 0
55
- },
56
- infinite: {
57
- type: Boolean,
58
- default: !0
59
- },
60
- closeOnPressEscape: {
61
- type: Boolean,
62
- default: !0
63
- },
64
- zoomRate: {
65
- type: Number,
66
- default: 1.2
67
- },
68
- scale: {
69
- type: Number,
70
- default: 1
71
- },
72
- minScale: {
73
- type: Number,
74
- default: .2
75
- },
76
- maxScale: {
77
- type: Number,
78
- default: 7
79
- },
80
- showProgress: Boolean,
81
- crossorigin: { type: h(String) }
82
- }), we = {
83
- load: (e) => e instanceof Event,
84
- error: (e) => e instanceof Event,
85
- switch: (e) => d(e),
86
- close: () => !0,
87
- show: () => !0
88
- }, Z = f({
89
- urlList: {
90
- type: h(Array),
91
- default: () => E([])
92
- },
93
- zIndex: { type: Number },
94
- initialIndex: {
95
- type: Number,
96
- default: 0
97
- },
98
- infinite: {
99
- type: Boolean,
100
- default: !0
101
- },
102
- hideOnClickModal: Boolean,
103
- teleported: Boolean,
104
- closeOnPressEscape: {
105
- type: Boolean,
106
- default: !0
107
- },
108
- zoomRate: {
109
- type: Number,
110
- default: 1.2
111
- },
112
- scale: {
113
- type: Number,
114
- default: 1
115
- },
116
- minScale: {
117
- type: Number,
118
- default: .2
119
- },
120
- maxScale: {
121
- type: Number,
122
- default: 7
123
- },
124
- showProgress: Boolean,
125
- crossorigin: { type: h(String) }
126
- }), Te = {
127
- close: () => !0,
128
- error: (e) => e instanceof Event,
129
- switch: (e) => d(e),
130
- rotate: (e) => d(e)
131
- }, Ee = ["src", "crossorigin"], De = m(/* @__PURE__ */ z({
132
- name: "ElImageViewer",
133
- __name: "image-viewer",
134
- props: Z,
135
- emits: Te,
136
- setup(n, { expose: i, emit: o }) {
137
- let s = {
138
- CONTAIN: {
139
- name: "contain",
140
- icon: pe(b)
141
- },
142
- ORIGINAL: {
143
- name: "original",
144
- icon: pe(g)
145
- }
146
- }, c = n, l = o, d, { t: f } = ae(), p = ee("image-viewer"), { nextZIndex: m } = se(), h = G(), ne = G(), w = de(), E = M(() => {
147
- let { scale: e, minScale: t, maxScale: n } = c;
148
- return r(e, t, n);
149
- }), D = G(!0), O = G(!1), k = G(!1), A = G(c.initialIndex), j = ve(s.CONTAIN), I = G({
150
- scale: E.value,
151
- deg: 0,
152
- offsetX: 0,
153
- offsetY: 0,
154
- enableTransition: !1
155
- }), z = G(c.zIndex ?? m());
156
- T(k, { ns: p });
157
- let B = M(() => {
158
- let { urlList: e } = c;
159
- return e.length <= 1;
160
- }), fe = M(() => A.value === 0), V = M(() => A.value === c.urlList.length - 1), U = M(() => c.urlList[A.value]), be = M(() => [
161
- p.e("btn"),
162
- p.e("prev"),
163
- p.is("disabled", !c.infinite && fe.value)
164
- ]), Se = M(() => [
165
- p.e("btn"),
166
- p.e("next"),
167
- p.is("disabled", !c.infinite && V.value)
168
- ]), Ce = M(() => {
169
- let { scale: e, deg: t, offsetX: n, offsetY: r, enableTransition: i } = I.value, a = n / e, o = r / e, c = t * Math.PI / 180, l = Math.cos(c), u = Math.sin(c);
170
- a = a * l + o * u, o = o * l - n / e * u;
171
- let d = {
172
- transform: `scale(${e}) rotate(${t}deg) translate(${a}px, ${o}px)`,
173
- transition: i ? "transform .3s" : ""
174
- };
175
- return j.value.name === s.CONTAIN.name && (d.maxWidth = d.maxHeight = "100%"), d;
176
- }), we = M(() => `${A.value + 1} / ${c.urlList.length}`);
177
- function Z() {
178
- De(), d == null || d(), k.value = !1, l("close");
179
- }
180
- function Te() {
181
- let n = X((n) => {
182
- switch (t(n)) {
183
- case e.esc:
184
- c.closeOnPressEscape && Z();
185
- break;
186
- case e.space:
187
- Ne();
188
- break;
189
- case e.left:
190
- Pe();
191
- break;
192
- case e.up:
193
- $("zoomIn");
194
- break;
195
- case e.right:
196
- Fe();
197
- break;
198
- case e.down:
199
- $("zoomOut");
200
- break;
201
- }
202
- }), r = X((e) => {
203
- $((e.deltaY || e.deltaX) < 0 ? "zoomIn" : "zoomOut", {
204
- zoomRate: c.zoomRate,
205
- enableTransition: !1
206
- });
207
- });
208
- w.run(() => {
209
- a(document, "keydown", n), a(h, "wheel", r);
210
- });
211
- }
212
- function De() {
213
- w.stop();
214
- }
215
- function Oe() {
216
- D.value = !1;
217
- }
218
- function ke(e) {
219
- O.value = !0, D.value = !1, l("error", e), e.target.alt = f("el.image.error");
220
- }
221
- function Ae(e) {
222
- if (D.value || e.button !== 0 || !h.value) return;
223
- I.value.enableTransition = !1;
224
- let { offsetX: t, offsetY: n } = I.value, r = e.pageX, i = e.pageY, o = X((e) => {
225
- I.value = {
226
- ...I.value,
227
- offsetX: t + e.pageX - r,
228
- offsetY: n + e.pageY - i
229
- };
230
- }), s = a(document, "mousemove", o), c = a(document, "mouseup", () => {
231
- s(), c();
232
- });
233
- e.preventDefault();
234
- }
235
- function je(e) {
236
- if (D.value || !h.value || e.touches.length !== 1) return;
237
- I.value.enableTransition = !1;
238
- let { offsetX: t, offsetY: n } = I.value, { pageX: r, pageY: i } = e.touches[0], o = X((e) => {
239
- let a = e.touches[0];
240
- I.value = {
241
- ...I.value,
242
- offsetX: t + a.pageX - r,
243
- offsetY: n + a.pageY - i
244
- };
245
- }), s = a(document, "touchmove", o), c = a(document, "touchend", () => {
246
- s(), c();
247
- });
248
- e.preventDefault();
249
- }
250
- function Me() {
251
- I.value = {
252
- scale: E.value,
253
- deg: 0,
254
- offsetX: 0,
255
- offsetY: 0,
256
- enableTransition: !1
257
- };
258
- }
259
- function Ne() {
260
- if (D.value || O.value) return;
261
- let e = u(s), t = Object.values(s), n = j.value.name;
262
- j.value = s[e[(t.findIndex((e) => e.name === n) + 1) % e.length]], Me();
263
- }
264
- function Q(e) {
265
- O.value = !1;
266
- let t = c.urlList.length;
267
- A.value = (e + t) % t;
268
- }
269
- function Pe() {
270
- fe.value && !c.infinite || Q(A.value - 1);
271
- }
272
- function Fe() {
273
- V.value && !c.infinite || Q(A.value + 1);
274
- }
275
- function $(e, t = {}) {
276
- if (D.value || O.value) return;
277
- let { minScale: n, maxScale: r } = c, { zoomRate: i, rotateDeg: a, enableTransition: o } = {
278
- zoomRate: c.zoomRate,
279
- rotateDeg: 90,
280
- enableTransition: !0,
281
- ...t
282
- };
283
- switch (e) {
284
- case "zoomOut":
285
- I.value.scale > n && (I.value.scale = Number.parseFloat((I.value.scale / i).toFixed(3)));
286
- break;
287
- case "zoomIn":
288
- I.value.scale < r && (I.value.scale = Number.parseFloat((I.value.scale * i).toFixed(3)));
289
- break;
290
- case "clockwise":
291
- I.value.deg += a, l("rotate", I.value.deg);
292
- break;
293
- case "anticlockwise":
294
- I.value.deg -= a, l("rotate", I.value.deg);
295
- break;
296
- }
297
- I.value.enableTransition = o;
298
- }
299
- function Ie(e) {
300
- var t;
301
- ((t = e.detail) == null ? void 0 : t.focusReason) === "pointer" && e.preventDefault();
302
- }
303
- function Le() {
304
- c.closeOnPressEscape && Z();
305
- }
306
- function Re(e) {
307
- if (e.ctrlKey && (e.deltaY < 0 || e.deltaY > 0)) return e.preventDefault(), !1;
308
- }
309
- return J(() => E.value, (e) => {
310
- I.value.scale = e;
311
- }), J(U, () => {
312
- me(() => {
313
- var e;
314
- (e = ne.value) != null && e.complete || (D.value = !0);
315
- });
316
- }), J(A, (e) => {
317
- Me(), l("switch", e);
318
- }), ge(() => {
319
- k.value = !0, Te(), d = a("wheel", Re, { passive: !1 });
320
- }), i({ setActiveItem: Q }), (e, t) => (W(), ue(q(te), {
321
- to: "body",
322
- disabled: !n.teleported
323
- }, {
324
- default: Y(() => [R(le, {
325
- name: "viewer-fade",
326
- appear: ""
327
- }, {
328
- default: Y(() => [F("div", {
329
- ref_key: "wrapper",
330
- ref: h,
331
- tabindex: -1,
332
- class: H(q(p).e("wrapper")),
333
- style: he({ zIndex: z.value })
334
- }, [R(q(oe), {
335
- loop: "",
336
- trapped: "",
337
- "focus-trap-el": h.value,
338
- "focus-start-el": "container",
339
- onFocusoutPrevented: Ie,
340
- onReleaseRequested: Le
341
- }, {
342
- default: Y(() => [
343
- F("div", {
344
- class: H(q(p).e("mask")),
345
- onClick: t[0] || (t[0] = xe((e) => n.hideOnClickModal && Z(), ["self"]))
346
- }, null, 2),
347
- N(" CLOSE "),
348
- F("span", {
349
- class: H([q(p).e("btn"), q(p).e("close")]),
350
- onClick: Z
351
- }, [R(q(C), null, {
352
- default: Y(() => [R(q(re))]),
353
- _: 1
354
- })], 2),
355
- N(" ARROW "),
356
- B.value ? N("v-if", !0) : (W(), P(ce, { key: 0 }, [F("span", {
357
- class: H(be.value),
358
- onClick: Pe
359
- }, [R(q(C), null, {
360
- default: Y(() => [R(q(S))]),
361
- _: 1
362
- })], 2), F("span", {
363
- class: H(Se.value),
364
- onClick: Fe
365
- }, [R(q(C), null, {
366
- default: Y(() => [R(q(x))]),
367
- _: 1
368
- })], 2)], 64)),
369
- e.$slots.progress || n.showProgress ? (W(), P("div", {
370
- key: 1,
371
- class: H([q(p).e("btn"), q(p).e("progress")])
372
- }, [K(e.$slots, "progress", {
373
- activeIndex: A.value,
374
- total: n.urlList.length
375
- }, () => [L(ye(we.value), 1)])], 2)) : N("v-if", !0),
376
- N(" ACTIONS "),
377
- F("div", { class: H([q(p).e("btn"), q(p).e("actions")]) }, [F("div", { class: H(q(p).e("actions__inner")) }, [K(e.$slots, "toolbar", {
378
- actions: $,
379
- prev: Pe,
380
- next: Fe,
381
- reset: Ne,
382
- activeIndex: A.value,
383
- setActiveItem: Q
384
- }, () => [
385
- R(q(C), { onClick: t[1] || (t[1] = (e) => $("zoomOut")) }, {
386
- default: Y(() => [R(q(v))]),
387
- _: 1
388
- }),
389
- R(q(C), { onClick: t[2] || (t[2] = (e) => $("zoomIn")) }, {
390
- default: Y(() => [R(q(_))]),
391
- _: 1
392
- }),
393
- F("i", { class: H(q(p).e("actions__divider")) }, null, 2),
394
- R(q(C), { onClick: Ne }, {
395
- default: Y(() => [(W(), ue(_e(j.value.icon)))]),
396
- _: 1
397
- }),
398
- F("i", { class: H(q(p).e("actions__divider")) }, null, 2),
399
- R(q(C), { onClick: t[3] || (t[3] = (e) => $("anticlockwise")) }, {
400
- default: Y(() => [R(q(ie))]),
401
- _: 1
402
- }),
403
- R(q(C), { onClick: t[4] || (t[4] = (e) => $("clockwise")) }, {
404
- default: Y(() => [R(q(y))]),
405
- _: 1
406
- })
407
- ])], 2)], 2),
408
- N(" CANVAS "),
409
- F("div", { class: H(q(p).e("canvas")) }, [O.value && e.$slots["viewer-error"] ? K(e.$slots, "viewer-error", {
410
- key: 0,
411
- activeIndex: A.value,
412
- src: U.value
413
- }) : (W(), P("img", {
414
- ref_key: "imgRef",
415
- ref: ne,
416
- key: U.value,
417
- src: U.value,
418
- style: he(Ce.value),
419
- class: H(q(p).e("img")),
420
- crossorigin: n.crossorigin,
421
- onLoad: Oe,
422
- onError: ke,
423
- onMousedown: Ae,
424
- onTouchstart: je
425
- }, null, 46, Ee))], 2),
426
- K(e.$slots, "default")
427
- ]),
428
- _: 3
429
- }, 8, ["focus-trap-el"])], 6)]),
430
- _: 3
431
- })]),
432
- _: 3
433
- }, 8, ["disabled"]));
434
- }
435
- })), Oe = [
436
- "src",
437
- "loading",
438
- "crossorigin"
439
- ], ke = { key: 0 }, Ae = m(/* @__PURE__ */ z({
440
- name: "ElImage",
441
- inheritAttrs: !1,
442
- __name: "image",
443
- props: Ce,
444
- emits: we,
445
- setup(e, { expose: t, emit: r }) {
446
- let a = e, u = r, { t: d } = ae(), f = ee("image"), m = be(), h = M(() => Se(Object.entries(m).filter(([e]) => /^(data-|on[A-Z])/i.test(e) || ["id", "style"].includes(e)))), te = ne({
447
- excludeListeners: !0,
448
- excludeKeys: M(() => Object.keys(h.value))
449
- }), g = G(), _ = G(!1), v = G(!0), y = G(!1), b = G(), x = G(), re = i && "loading" in HTMLImageElement.prototype, S, C = M(() => [
450
- f.e("inner"),
451
- T.value && f.e("preview"),
452
- v.value && f.is("loading")
453
- ]), ie = M(() => {
454
- let { fit: e } = a;
455
- return i && e ? { objectFit: e } : {};
456
- }), T = M(() => {
457
- let { previewSrcList: e } = a;
458
- return s(e) && e.length > 0;
459
- }), oe = M(() => {
460
- let { previewSrcList: e, initialIndex: t } = a, n = t;
461
- return t > e.length - 1 && (n = 0), n;
462
- }), se = M(() => a.loading === "eager" ? !1 : !re && a.loading === "lazy" || a.lazy), E = () => {
463
- i && (v.value = !0, _.value = !1, g.value = a.src);
464
- };
465
- function D(e) {
466
- v.value = !1, _.value = !1, u("load", e);
467
- }
468
- function O(e) {
469
- v.value = !1, _.value = !0, u("error", e);
470
- }
471
- function k(e) {
472
- e && (E(), le());
473
- }
474
- let A = n(k, 200, !0);
475
- async function j() {
476
- if (!i) return;
477
- await me();
478
- let { scrollContainer: e } = a;
479
- if (p(e)) x.value = e;
480
- else if (c(e) && e !== "") x.value = document.querySelector(e) ?? void 0;
481
- else if (b.value) {
482
- let e = w(b.value);
483
- x.value = l(e) ? void 0 : e;
484
- }
485
- let { stop: t } = o(b, ([e]) => {
486
- A(e.isIntersecting);
487
- }, { root: x });
488
- S = t;
489
- }
490
- function le() {
491
- !i || !A || (S == null || S(), x.value = void 0, S = void 0);
492
- }
493
- function L() {
494
- T.value && (y.value = !0, u("show"));
495
- }
496
- function R() {
497
- y.value = !1, u("close");
498
- }
499
- function z(e) {
500
- u("switch", e);
501
- }
502
- return J(() => a.src, () => {
503
- se.value ? (v.value = !0, _.value = !1, le(), j()) : E();
504
- }), ge(() => {
505
- se.value ? j() : E();
506
- }), t({ showPreview: L }), (t, n) => (W(), P("div", V({
507
- ref_key: "container",
508
- ref: b
509
- }, h.value, { class: [q(f).b(), t.$attrs.class] }), [_.value ? K(t.$slots, "error", { key: 0 }, () => [F("div", { class: H(q(f).e("error")) }, ye(q(d)("el.image.error")), 3)]) : (W(), P(ce, { key: 1 }, [g.value === void 0 ? N("v-if", !0) : (W(), P("img", V({ key: 0 }, q(te), {
510
- src: g.value,
511
- loading: e.loading,
512
- style: ie.value,
513
- class: C.value,
514
- crossorigin: e.crossorigin,
515
- onClick: L,
516
- onLoad: D,
517
- onError: O
518
- }), null, 16, Oe)), v.value ? (W(), P("div", {
519
- key: 1,
520
- class: H(q(f).e("wrapper"))
521
- }, [K(t.$slots, "placeholder", {}, () => [F("div", { class: H(q(f).e("placeholder")) }, null, 2)])], 2)) : N("v-if", !0)], 64)), T.value ? (W(), P(ce, { key: 2 }, [y.value ? (W(), ue(q(De), {
522
- key: 0,
523
- "z-index": e.zIndex,
524
- "initial-index": oe.value,
525
- infinite: e.infinite,
526
- "zoom-rate": e.zoomRate,
527
- "min-scale": e.minScale,
528
- "max-scale": e.maxScale,
529
- "show-progress": e.showProgress,
530
- "url-list": e.previewSrcList,
531
- scale: e.scale,
532
- crossorigin: e.crossorigin,
533
- "hide-on-click-modal": e.hideOnClickModal,
534
- teleported: e.previewTeleported,
535
- "close-on-press-escape": e.closeOnPressEscape,
536
- onClose: R,
537
- onSwitch: z
538
- }, I({
539
- toolbar: Y((e) => [K(t.$slots, "toolbar", U(B(e)))]),
540
- default: Y(() => [t.$slots.viewer ? (W(), P("div", ke, [K(t.$slots, "viewer")])) : N("v-if", !0)]),
541
- _: 2
542
- }, [t.$slots.progress ? {
543
- name: "progress",
544
- fn: Y((e) => [K(t.$slots, "progress", U(B(e)))]),
545
- key: "0"
546
- } : void 0, t.$slots["viewer-error"] ? {
547
- name: "viewer-error",
548
- fn: Y((e) => [K(t.$slots, "viewer-error", U(B(e)))]),
549
- key: "1"
550
- } : void 0]), 1032, [
551
- "z-index",
552
- "initial-index",
553
- "infinite",
554
- "zoom-rate",
555
- "min-scale",
556
- "max-scale",
557
- "show-progress",
558
- "url-list",
559
- "scale",
560
- "crossorigin",
561
- "hide-on-click-modal",
562
- "teleported",
563
- "close-on-press-escape"
564
- ])) : N("v-if", !0)], 64)) : N("v-if", !0)], 16));
565
- }
566
- }));
567
- //#endregion
568
- //#region src/components/form/FormImage.vue?vue&type=script&lang.jsx
569
- function je(e) {
570
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !fe(e);
571
- }
572
- //#endregion
573
- //#region src/components/form/FormImage.vue
574
- var Me = {
575
- name: "FormImage",
576
- inheritAttrs: !1,
577
- props: { ...A },
578
- emits: {},
579
- setup(e, { slots: t, attrs: n }) {
580
- let r = O(e, { attrs: n }), i = D(e, j);
581
- return () => k(e, {
582
- vNodes: R(Ae, V(i.value, n, { "preview-src-list": [e.src] }), je(t) ? t : { default: () => [t] }),
583
- formItemProps: r,
584
- slots: t
585
- });
586
- }
587
- };
588
- //#endregion
589
- export { Me as t };
@@ -1,105 +0,0 @@
1
- import { l as e, s as t, u as n, x as r } from "./DrKq_frR.mjs";
2
- import { F as i } from "./D4oNQiIK.mjs";
3
- import { t as a } from "./BsKwchVA.mjs";
4
- import { createVNode as o, defineComponent as s, h as c, onBeforeUnmount as l, onMounted as u, ref as d, renderSlot as f, watchEffect as p } from "vue";
5
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/hooks/use-draggable/index.mjs
6
- var m = (e, t, n, r) => {
7
- let a = {
8
- offsetX: 0,
9
- offsetY: 0
10
- }, o = d(!1), s = (t, n) => {
11
- if (e.value) {
12
- let { offsetX: o, offsetY: s } = a, c = e.value.getBoundingClientRect(), l = c.left, u = c.top, d = c.width, f = c.height, p = document.documentElement.clientWidth, m = document.documentElement.clientHeight, h = -l + o, g = -u + s, _ = p - l - d + o, v = m - u - (f < m ? f : 0) + s;
13
- r != null && r.value || (t = Math.min(Math.max(t, h), _), n = Math.min(Math.max(n, g), v)), a.offsetX = t, a.offsetY = n, e.value.style.transform = `translate(${i(t)}, ${i(n)})`;
14
- }
15
- }, c = (e) => {
16
- let t = e.clientX, n = e.clientY, { offsetX: r, offsetY: i } = a, c = (e) => {
17
- o.value || (o.value = !0), s(r + e.clientX - t, i + e.clientY - n);
18
- }, l = () => {
19
- o.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", l);
20
- };
21
- document.addEventListener("mousemove", c), document.addEventListener("mouseup", l);
22
- }, f = () => {
23
- t.value && e.value && (t.value.addEventListener("mousedown", c), window.addEventListener("resize", g));
24
- }, m = () => {
25
- t.value && e.value && (t.value.removeEventListener("mousedown", c), window.removeEventListener("resize", g));
26
- }, h = () => {
27
- a.offsetX = 0, a.offsetY = 0, e.value && (e.value.style.transform = "");
28
- }, g = () => {
29
- let { offsetX: e, offsetY: t } = a;
30
- s(e, t);
31
- };
32
- return u(() => {
33
- p(() => {
34
- n.value ? f() : m();
35
- });
36
- }), l(() => {
37
- m();
38
- }), {
39
- isDragging: o,
40
- resetPosition: h,
41
- updatePosition: g
42
- };
43
- }, h = (e) => {
44
- if (!e) return {
45
- onClick: r,
46
- onMousedown: r,
47
- onMouseup: r
48
- };
49
- let t = !1, n = !1;
50
- return {
51
- onClick: (r) => {
52
- t && n && e(r), t = n = !1;
53
- },
54
- onMousedown: (e) => {
55
- t = e.target === e.currentTarget;
56
- },
57
- onMouseup: (e) => {
58
- n = e.target === e.currentTarget;
59
- }
60
- };
61
- }, g = e({
62
- mask: {
63
- type: Boolean,
64
- default: !0
65
- },
66
- customMaskEvent: Boolean,
67
- overlayClass: { type: n([
68
- String,
69
- Array,
70
- Object
71
- ]) },
72
- zIndex: { type: n([String, Number]) }
73
- }), _ = { click: (e) => e instanceof MouseEvent }, v = "overlay", y = s({
74
- name: "ElOverlay",
75
- props: g,
76
- emits: _,
77
- setup(e, { slots: n, emit: r }) {
78
- let i = t(v), { onClick: s, onMousedown: l, onMouseup: u } = h(e.customMaskEvent ? void 0 : (e) => {
79
- r("click", e);
80
- });
81
- return () => e.mask ? o("div", {
82
- class: [i.b(), e.overlayClass],
83
- style: { zIndex: e.zIndex },
84
- onClick: s,
85
- onMousedown: l,
86
- onMouseup: u
87
- }, [f(n, "default")], a.STYLE | a.CLASS | a.PROPS, [
88
- "onClick",
89
- "onMouseup",
90
- "onMousedown"
91
- ]) : c("div", {
92
- class: e.overlayClass,
93
- style: {
94
- zIndex: e.zIndex,
95
- position: "fixed",
96
- top: "0px",
97
- right: "0px",
98
- bottom: "0px",
99
- left: "0px"
100
- }
101
- }, [f(n, "default")]);
102
- }
103
- });
104
- //#endregion
105
- export { h as n, m as r, y as t };