@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,98 +0,0 @@
1
- import { computed as e, getCurrentInstance as t, inject as n, ref as r, unref as i, warn as a } from "vue";
2
- import { fromPairs as o, get as s, isNil as c, isPlainObject as l, set as u } from "lodash-unified";
3
- process.env.NODE_ENV === "production" || Object.freeze({}), process.env.NODE_ENV === "production" || Object.freeze([]);
4
- var d = () => {}, f = Object.prototype.hasOwnProperty, p = (e, t) => f.call(e, t), m = Array.isArray, h = (e) => x(e) === "[object Date]", g = (e) => typeof e == "function", _ = (e) => typeof e == "string", v = (e) => typeof e == "object" && !!e, y = (e) => (v(e) || g(e)) && g(e.then) && g(e.catch), b = Object.prototype.toString, x = (e) => b.call(e), S = (e) => x(e) === "[object Object]", C = (e) => {
5
- let t = /* @__PURE__ */ Object.create(null);
6
- return ((n) => t[n] || (t[n] = e(n)));
7
- }, w = /-\w/g, T = C((e) => e.replace(w, (e) => e.slice(1).toUpperCase())), E = /\B([A-Z])/g, D = C((e) => e.replace(E, "-$1").toLowerCase()), O = C((e) => e.charAt(0).toUpperCase() + e.slice(1)), k = (e) => e === void 0, A = (e) => typeof e == "boolean", j = (e) => typeof e == "number", M = (e) => !e && e !== 0 || m(e) && e.length === 0 || v(e) && !Object.keys(e).length, N = (e) => typeof Element > "u" ? !1 : e instanceof Element, P = (e) => c(e), F = (e) => _(e) ? !Number.isNaN(Number(e)) : !1, I = (e) => e === window, L = (e) => Object.keys(e), R = (e, t, n) => ({
8
- get value() {
9
- return s(e, t, n);
10
- },
11
- set value(n) {
12
- u(e, t, n);
13
- }
14
- }), z = "__epPropKey", B = (e) => e, V = (e) => v(e) && !!e.__epPropKey, H = (e, t) => {
15
- if (!v(e) || V(e)) return e;
16
- let { values: n, required: r, default: i, type: o, validator: s } = e, c = {
17
- type: o,
18
- required: !!r,
19
- validator: n || s ? (r) => {
20
- let o = !1, c = [];
21
- if (n && (c = Array.from(n), p(e, "default") && c.push(i), o || (o = c.includes(r))), s && (o || (o = s(r))), !o && c.length > 0) {
22
- let e = [...new Set(c)].map((e) => JSON.stringify(e)).join(", ");
23
- a(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${e}], got value ${JSON.stringify(r)}.`);
24
- }
25
- return o;
26
- } : void 0,
27
- [z]: !0
28
- };
29
- return p(e, "default") && (c.default = i), c;
30
- }, U = (e) => o(Object.entries(e).map(([e, t]) => [e, H(t, e)])), W = "is-", G = (e, t, n, r, i) => {
31
- let a = `${e}-${t}`;
32
- return n && (a += `-${n}`), r && (a += `__${r}`), i && (a += `--${i}`), a;
33
- }, K = Symbol("namespaceContextKey"), q = (a) => {
34
- let o = a || (t() ? n(K, r("el")) : r("el"));
35
- return e(() => i(o) || "el");
36
- }, J = (e, t) => {
37
- let n = q(t);
38
- return {
39
- namespace: n,
40
- b: (t = "") => G(n.value, e, t, "", ""),
41
- e: (t) => t ? G(n.value, e, "", t, "") : "",
42
- m: (t) => t ? G(n.value, e, "", "", t) : "",
43
- be: (t, r) => t && r ? G(n.value, e, t, r, "") : "",
44
- em: (t, r) => t && r ? G(n.value, e, "", t, r) : "",
45
- bm: (t, r) => t && r ? G(n.value, e, t, "", r) : "",
46
- bem: (t, r, i) => t && r && i ? G(n.value, e, t, r, i) : "",
47
- is: (e, ...t) => {
48
- let n = t.length >= 1 ? t[0] : !0;
49
- return e && n ? `${W}${e}` : "";
50
- },
51
- cssVar: (e) => {
52
- let t = {};
53
- for (let r in e) e[r] && (t[`--${n.value}-${r}`] = e[r]);
54
- return t;
55
- },
56
- cssVarName: (e) => `--${n.value}-${e}`,
57
- cssVarBlock: (t) => {
58
- let r = {};
59
- for (let i in t) t[i] && (r[`--${n.value}-${e}-${i}`] = t[i]);
60
- return r;
61
- },
62
- cssVarBlockName: (t) => `--${n.value}-${e}-${t}`
63
- };
64
- }, Y = (e) => {
65
- let t = e.props, n = m(t) ? o(t.map((e) => [e, {}])) : t;
66
- e.setPropsDefaults = (t) => {
67
- if (n) {
68
- for (let [e, r] of Object.entries(t)) {
69
- let t = n[e];
70
- if (p(n, e)) {
71
- if (l(t)) {
72
- n[e] = {
73
- ...t,
74
- default: r
75
- };
76
- continue;
77
- }
78
- n[e] = {
79
- type: t,
80
- default: r
81
- };
82
- }
83
- }
84
- e.props = n;
85
- }
86
- };
87
- }, X = (e, t) => {
88
- if (e.install = (n) => {
89
- for (let r of [e, ...Object.values(t ?? {})]) n.component(r.name, r);
90
- }, t) for (let [n, r] of Object.entries(t)) e[n] = r;
91
- return Y(e), e;
92
- }, Z = (e, t) => (e.install = (n) => {
93
- e._context = n._context, n.config.globalProperties[t] = e;
94
- }, e), Q = (e, t) => (e.install = (n) => {
95
- n.directive(t, e);
96
- }, e), $ = (e) => (e.install = d, Y(e), e);
97
- //#endregion
98
- export { S as A, O as C, h as D, m as E, _ as M, g as O, T as S, D as T, P as _, K as a, I as b, H as c, R as d, L as f, j as g, M as h, $ as i, y as j, v as k, U as l, N as m, Q as n, q as o, A as p, Z as r, J as s, X as t, B as u, F as v, p as w, d as x, k as y };
@@ -1,440 +0,0 @@
1
- import { r as e, t } from "./DnBzQ-xh.mjs";
2
- import { r as n } from "./akEzJ4kG.mjs";
3
- import { t as r } from "./hgAOQY9a.mjs";
4
- import { E as i, M as a, _ as o, g as s, i as c, k as l, l as u, p as d, s as f, t as p, u as m, y as h } from "./DrKq_frR.mjs";
5
- import { t as g } from "./gh52LMTG.mjs";
6
- import { i as _, n as v, r as y, t as b } from "./CcT5SsZk.mjs";
7
- import { t as x } from "./BVIHqL6g.mjs";
8
- import { t as ee } from "./BBPczt0U.mjs";
9
- /* empty css */
10
- import { Fragment as te, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createTextVNode as D, defineComponent as O, getCurrentInstance as k, inject as A, isRef as j, mergeProps as M, nextTick as ne, normalizeClass as N, normalizeStyle as re, openBlock as P, provide as ie, ref as F, renderList as ae, renderSlot as I, resolveDynamicComponent as L, toDisplayString as R, toRaw as z, toRefs as oe, unref as B, useSlots as V, vModelCheckbox as H, watch as U, withCtx as W, withDirectives as G, withModifiers as K } from "vue";
11
- import { isEqual as q, omit as se, pick as ce } from "lodash-unified";
12
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/checkbox/src/checkbox.mjs
13
- var J = {
14
- modelValue: {
15
- type: [
16
- Number,
17
- String,
18
- Boolean
19
- ],
20
- default: void 0
21
- },
22
- label: {
23
- type: [
24
- String,
25
- Boolean,
26
- Number,
27
- Object
28
- ],
29
- default: void 0
30
- },
31
- value: {
32
- type: [
33
- String,
34
- Boolean,
35
- Number,
36
- Object
37
- ],
38
- default: void 0
39
- },
40
- indeterminate: Boolean,
41
- disabled: {
42
- type: Boolean,
43
- default: void 0
44
- },
45
- checked: Boolean,
46
- name: {
47
- type: String,
48
- default: void 0
49
- },
50
- trueValue: {
51
- type: [String, Number],
52
- default: void 0
53
- },
54
- falseValue: {
55
- type: [String, Number],
56
- default: void 0
57
- },
58
- trueLabel: {
59
- type: [String, Number],
60
- default: void 0
61
- },
62
- falseLabel: {
63
- type: [String, Number],
64
- default: void 0
65
- },
66
- id: {
67
- type: String,
68
- default: void 0
69
- },
70
- border: Boolean,
71
- size: n,
72
- tabindex: [String, Number],
73
- validateEvent: {
74
- type: Boolean,
75
- default: !0
76
- },
77
- ariaLabel: String,
78
- ...x(["ariaControls"])
79
- }, Y = {
80
- [e]: (e) => a(e) || s(e) || d(e),
81
- change: (e) => a(e) || s(e) || d(e)
82
- }, X = Symbol("checkboxGroupContextKey"), le = u({
83
- modelValue: {
84
- type: m(Array),
85
- default: () => []
86
- },
87
- disabled: {
88
- type: Boolean,
89
- default: void 0
90
- },
91
- min: Number,
92
- max: Number,
93
- size: n,
94
- fill: String,
95
- textColor: String,
96
- tag: {
97
- type: String,
98
- default: "div"
99
- },
100
- validateEvent: {
101
- type: Boolean,
102
- default: !0
103
- },
104
- options: { type: m(Array) },
105
- props: {
106
- type: m(Object),
107
- default: () => de
108
- },
109
- type: {
110
- type: String,
111
- values: ["checkbox", "button"],
112
- default: "checkbox"
113
- },
114
- ...x(["ariaLabel"])
115
- }), ue = {
116
- [e]: (e) => i(e),
117
- change: (e) => i(e)
118
- }, de = {
119
- label: "label",
120
- value: "value",
121
- disabled: "disabled"
122
- }, fe = ({ model: e, isChecked: t }) => {
123
- let n = A(X, void 0), r = A(ee, void 0), i = S(() => {
124
- var r, i;
125
- let a = n == null || (r = n.max) == null ? void 0 : r.value, o = n == null || (i = n.min) == null ? void 0 : i.value;
126
- return !h(a) && e.value.length >= a && !t.value || !h(o) && e.value.length <= o && t.value;
127
- });
128
- return {
129
- isDisabled: y(S(() => {
130
- var e;
131
- return n === void 0 ? (r == null ? void 0 : r.disabled) ?? i.value : ((e = n.disabled) == null ? void 0 : e.value) || i.value;
132
- })),
133
- isLimitDisabled: i
134
- };
135
- }, pe = (e, { model: n, isLimitExceeded: i, hasOwnLabel: a, isDisabled: o, isLabeledByFormItem: s }) => {
136
- let c = A(X, void 0), { formItem: l } = b(), { emit: u } = k();
137
- function d(t) {
138
- return [
139
- !0,
140
- e.trueValue,
141
- e.trueLabel
142
- ].includes(t) ? e.trueValue ?? e.trueLabel ?? !0 : e.falseValue ?? e.falseLabel ?? !1;
143
- }
144
- function f(e, n) {
145
- u(t, d(e), n);
146
- }
147
- function p(e) {
148
- if (i.value) return;
149
- let n = e.target;
150
- u(t, d(n.checked), e);
151
- }
152
- async function m(t) {
153
- i.value || !a.value && !o.value && s.value && (t.composedPath().some((e) => e.tagName === "LABEL") || (n.value = d([
154
- !1,
155
- e.falseValue,
156
- e.falseLabel
157
- ].includes(n.value)), await ne(), f(n.value, t)));
158
- }
159
- let h = S(() => (c == null ? void 0 : c.validateEvent) || e.validateEvent);
160
- return U(() => e.modelValue, () => {
161
- h.value && (l == null || l.validate("change").catch((e) => r(e)));
162
- }), {
163
- handleChange: p,
164
- onClickRoot: m
165
- };
166
- }, me = (t) => {
167
- let n = F(!1), { emit: r, vnode: a } = k(), o = A(X, void 0), s = S(() => h(o) === !1), c = F(!1), l = S(() => {
168
- let e = a.props ?? {};
169
- return "modelValue" in e || "model-value" in e;
170
- }), u = S({
171
- get() {
172
- var e;
173
- return s.value ? o == null || (e = o.modelValue) == null ? void 0 : e.value : l.value ? t.modelValue : n.value;
174
- },
175
- set(t) {
176
- if (s.value && i(t)) {
177
- var a, l;
178
- c.value = (o == null || (a = o.max) == null ? void 0 : a.value) !== void 0 && t.length > (o == null ? void 0 : o.max.value) && t.length > u.value.length, c.value === !1 && (o == null || (l = o.changeEvent) == null || l.call(o, t));
179
- } else r(e, t), n.value = t;
180
- }
181
- });
182
- return {
183
- model: u,
184
- isGroup: s,
185
- isLimitExceeded: c
186
- };
187
- }, he = (e, t, { model: n }) => {
188
- let r = A(X, void 0), a = F(!1), s = S(() => o(e.value) ? e.label : e.value), c = S(() => {
189
- let t = n.value;
190
- return d(t) ? t : i(t) ? l(s.value) ? t.map(z).some((e) => q(e, s.value)) : t.map(z).includes(s.value) : t == null ? !!t : t === e.trueValue || t === e.trueLabel;
191
- });
192
- return {
193
- checkboxButtonSize: _(S(() => {
194
- var e;
195
- return r == null || (e = r.size) == null ? void 0 : e.value;
196
- }), { prop: !0 }),
197
- isChecked: c,
198
- isFocused: a,
199
- checkboxSize: _(S(() => {
200
- var e;
201
- return r == null || (e = r.size) == null ? void 0 : e.value;
202
- })),
203
- hasOwnLabel: S(() => !!t.default || !o(s.value)),
204
- actualValue: s
205
- };
206
- }, ge = (e, t) => {
207
- let { formItem: n } = b(), { model: r, isGroup: a, isLimitExceeded: s } = me(e), { isFocused: c, isChecked: l, checkboxButtonSize: u, checkboxSize: d, hasOwnLabel: f, actualValue: p } = he(e, t, { model: r }), { isDisabled: m } = fe({
208
- model: r,
209
- isChecked: l
210
- }), { inputId: h, isLabeledByFormItem: _ } = v(e, {
211
- formItemContext: n,
212
- disableIdGeneration: f,
213
- disableIdManagement: a
214
- }), { handleChange: y, onClickRoot: x } = pe(e, {
215
- model: r,
216
- isLimitExceeded: s,
217
- hasOwnLabel: f,
218
- isDisabled: m,
219
- isLabeledByFormItem: _
220
- });
221
- return (() => {
222
- function t() {
223
- i(r.value) && !r.value.includes(p.value) ? r.value.push(p.value) : r.value = e.trueValue ?? e.trueLabel ?? !0;
224
- }
225
- e.checked && t();
226
- })(), g({
227
- from: "label act as value",
228
- replacement: "value",
229
- version: "3.0.0",
230
- scope: "el-checkbox",
231
- ref: "https://element-plus.org/en-US/component/checkbox.html"
232
- }, S(() => a.value && o(e.value))), g({
233
- from: "true-label",
234
- replacement: "true-value",
235
- version: "3.0.0",
236
- scope: "el-checkbox",
237
- ref: "https://element-plus.org/en-US/component/checkbox.html"
238
- }, S(() => !!e.trueLabel)), g({
239
- from: "false-label",
240
- replacement: "false-value",
241
- version: "3.0.0",
242
- scope: "el-checkbox",
243
- ref: "https://element-plus.org/en-US/component/checkbox.html"
244
- }, S(() => !!e.falseLabel)), {
245
- inputId: h,
246
- isLabeledByFormItem: _,
247
- isChecked: l,
248
- isDisabled: m,
249
- isFocused: c,
250
- checkboxButtonSize: u,
251
- checkboxSize: d,
252
- hasOwnLabel: f,
253
- model: r,
254
- actualValue: p,
255
- handleChange: y,
256
- onClickRoot: x
257
- };
258
- }, _e = [
259
- "id",
260
- "indeterminate",
261
- "name",
262
- "tabindex",
263
- "disabled"
264
- ], Z = /* @__PURE__ */ O({
265
- name: "ElCheckbox",
266
- __name: "checkbox",
267
- props: J,
268
- emits: Y,
269
- setup(e) {
270
- let t = e, { inputId: n, isLabeledByFormItem: r, isChecked: i, isDisabled: a, isFocused: o, checkboxSize: s, hasOwnLabel: c, model: l, actualValue: u, handleChange: d, onClickRoot: p } = ge(t, V()), m = S(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
271
- "true-value": t.trueValue ?? t.trueLabel ?? !0,
272
- "false-value": t.falseValue ?? t.falseLabel ?? !1
273
- } : { value: u.value }), h = f("checkbox"), g = S(() => [
274
- h.b(),
275
- h.m(s.value),
276
- h.is("disabled", a.value),
277
- h.is("bordered", t.border),
278
- h.is("checked", i.value)
279
- ]), _ = S(() => [
280
- h.e("input"),
281
- h.is("disabled", a.value),
282
- h.is("checked", i.value),
283
- h.is("indeterminate", t.indeterminate),
284
- h.is("focus", o.value)
285
- ]);
286
- return (t, i) => (P(), C(L(!B(c) && B(r) ? "span" : "label"), {
287
- for: !B(c) && B(r) ? null : B(n),
288
- class: N(g.value),
289
- "aria-controls": e.indeterminate ? e.ariaControls : null,
290
- "aria-checked": e.indeterminate ? "mixed" : void 0,
291
- "aria-label": e.ariaLabel,
292
- onClick: B(p)
293
- }, {
294
- default: W(() => [E("span", { class: N(_.value) }, [G(E("input", M({
295
- id: B(n),
296
- "onUpdate:modelValue": i[0] || (i[0] = (e) => j(l) ? l.value = e : null),
297
- class: B(h).e("original"),
298
- type: "checkbox",
299
- indeterminate: e.indeterminate,
300
- name: e.name,
301
- tabindex: e.tabindex,
302
- disabled: B(a)
303
- }, m.value, {
304
- onChange: i[1] || (i[1] = (...e) => B(d) && B(d)(...e)),
305
- onFocus: i[2] || (i[2] = (e) => o.value = !0),
306
- onBlur: i[3] || (i[3] = (e) => o.value = !1),
307
- onClick: i[4] || (i[4] = K(() => {}, ["stop"]))
308
- }), null, 16, _e), [[H, B(l)]]), E("span", { class: N(B(h).e("inner")) }, null, 2)], 2), B(c) ? (P(), T("span", {
309
- key: 0,
310
- class: N(B(h).e("label"))
311
- }, [I(t.$slots, "default"), t.$slots.default ? w("v-if", !0) : (P(), T(te, { key: 0 }, [D(R(e.label), 1)], 64))], 2)) : w("v-if", !0)]),
312
- _: 3
313
- }, 8, [
314
- "for",
315
- "class",
316
- "aria-controls",
317
- "aria-checked",
318
- "aria-label",
319
- "onClick"
320
- ]));
321
- }
322
- }), ve = [
323
- "name",
324
- "tabindex",
325
- "disabled"
326
- ], Q = /* @__PURE__ */ O({
327
- name: "ElCheckboxButton",
328
- __name: "checkbox-button",
329
- props: J,
330
- emits: Y,
331
- setup(e) {
332
- let t = e, { isFocused: n, isChecked: r, isDisabled: i, checkboxButtonSize: a, model: o, actualValue: s, handleChange: c } = ge(t, V()), l = S(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
333
- "true-value": t.trueValue ?? t.trueLabel ?? !0,
334
- "false-value": t.falseValue ?? t.falseLabel ?? !1
335
- } : { value: s.value }), u = A(X, void 0), d = f("checkbox"), p = S(() => {
336
- var e, t;
337
- let n = (u == null || (e = u.fill) == null ? void 0 : e.value) ?? "";
338
- return {
339
- backgroundColor: n,
340
- borderColor: n,
341
- color: (u == null || (t = u.textColor) == null ? void 0 : t.value) ?? "",
342
- boxShadow: n ? `-1px 0 0 0 ${n}` : void 0
343
- };
344
- }), m = S(() => [
345
- d.b("button"),
346
- d.bm("button", a.value),
347
- d.is("disabled", i.value),
348
- d.is("checked", r.value),
349
- d.is("focus", n.value)
350
- ]);
351
- return (t, a) => (P(), T("label", { class: N(m.value) }, [G(E("input", M({
352
- "onUpdate:modelValue": a[0] || (a[0] = (e) => j(o) ? o.value = e : null),
353
- class: B(d).be("button", "original"),
354
- type: "checkbox",
355
- name: e.name,
356
- tabindex: e.tabindex,
357
- disabled: B(i)
358
- }, l.value, {
359
- onChange: a[1] || (a[1] = (...e) => B(c) && B(c)(...e)),
360
- onFocus: a[2] || (a[2] = (e) => n.value = !0),
361
- onBlur: a[3] || (a[3] = (e) => n.value = !1),
362
- onClick: a[4] || (a[4] = K(() => {}, ["stop"]))
363
- }), null, 16, ve), [[H, B(o)]]), t.$slots.default || e.label ? (P(), T("span", {
364
- key: 0,
365
- class: N(B(d).be("button", "inner")),
366
- style: re(B(r) ? p.value : void 0)
367
- }, [I(t.$slots, "default", {}, () => [D(R(e.label), 1)])], 6)) : w("v-if", !0)], 2));
368
- }
369
- }), $ = /* @__PURE__ */ O({
370
- name: "ElCheckboxGroup",
371
- __name: "checkbox-group",
372
- props: le,
373
- emits: ue,
374
- setup(n, { emit: i }) {
375
- let a = n, o = i, s = f("checkbox"), c = y(), { formItem: l } = b(), { inputId: u, isLabeledByFormItem: d } = v(a, { formItemContext: l }), p = async (n) => {
376
- o(e, n), await ne(), o(t, n);
377
- }, m = S({
378
- get() {
379
- return a.modelValue;
380
- },
381
- set(e) {
382
- p(e);
383
- }
384
- }), h = S(() => ({
385
- ...de,
386
- ...a.props
387
- })), g = (e) => {
388
- let { label: t, value: n, disabled: r } = h.value, i = {
389
- label: e[t],
390
- value: e[n],
391
- disabled: e[r]
392
- };
393
- return {
394
- ...se(e, [
395
- t,
396
- n,
397
- r
398
- ]),
399
- ...i
400
- };
401
- }, _ = S(() => a.type === "button" ? Q : Z);
402
- return ie(X, {
403
- ...ce(oe(a), [
404
- "size",
405
- "min",
406
- "max",
407
- "validateEvent",
408
- "fill",
409
- "textColor"
410
- ]),
411
- disabled: c,
412
- modelValue: m,
413
- changeEvent: p
414
- }), U(() => a.modelValue, (e, t) => {
415
- a.validateEvent && !q(e, t) && (l == null || l.validate("change").catch((e) => r(e)));
416
- }), (e, t) => {
417
- var r;
418
- return P(), C(L(n.tag), {
419
- id: B(u),
420
- class: N(B(s).b("group")),
421
- role: "group",
422
- "aria-label": B(d) ? void 0 : n.ariaLabel || "checkbox-group",
423
- "aria-labelledby": B(d) ? (r = B(l)) == null ? void 0 : r.labelId : void 0
424
- }, {
425
- default: W(() => [I(e.$slots, "default", {}, () => [(P(!0), T(te, null, ae(n.options, (e, t) => (P(), C(L(_.value), M({ key: t }, { ref_for: !0 }, g(e)), null, 16))), 128))])]),
426
- _: 3
427
- }, 8, [
428
- "id",
429
- "class",
430
- "aria-label",
431
- "aria-labelledby"
432
- ]);
433
- };
434
- }
435
- }), ye = p(Z, {
436
- CheckboxButton: Q,
437
- CheckboxGroup: $
438
- }), be = c(Q), xe = c($);
439
- //#endregion
440
- export { be as n, xe as r, ye as t };