@web-utils/form-ui 1.0.0-beta85 → 1.0.0-beta87
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.
- package/address-input/index.mjs +1 -1
- package/affix/index.mjs +2 -2
- package/base2.css +1 -0
- package/capsule-tab/index.mjs +1 -1
- package/card/index.mjs +15 -15
- package/chunks/{C-zPVdz-.mjs → 1EH2Ca7m2.mjs} +31 -29
- package/chunks/{mnqSaATq.mjs → 2Bhi7uIl.mjs} +18 -19
- package/chunks/2Hag_Aho.mjs +4 -0
- package/chunks/6Lm-ZabT2.mjs +439 -0
- package/chunks/7OAy-mrx.mjs +642 -0
- package/chunks/7cy48wUQ.mjs +25 -0
- package/chunks/8ldF4QwW.mjs +209 -0
- package/chunks/{BhHMGhJ8.mjs → B0rLJ6br2.mjs} +27 -26
- package/chunks/{DCqyZyF6.mjs → B14qtsOg2.mjs} +8 -7
- package/chunks/B2vpUK0j.mjs +13 -0
- package/chunks/B7fnIBG_2.mjs +346 -0
- package/chunks/B9BRO_ca2.mjs +2 -0
- package/chunks/B9rfY77Q.mjs +107 -0
- package/chunks/BBYzYVET.mjs +173 -0
- package/chunks/BBbwcaCo.mjs +196 -0
- package/chunks/{DSTNXl142.mjs → BBlZh4pj.mjs} +2 -2
- package/chunks/{6dNVtIN32.mjs → BCqOe0lx.mjs} +1 -1
- package/chunks/BEOl740t2.mjs +56 -0
- package/chunks/{B1luuf_A2.mjs → BF0OBs7P.mjs} +15 -14
- package/chunks/BFY-akW92.mjs +1 -0
- package/chunks/BGjN3ifV.mjs +34 -0
- package/chunks/BMouE3MT.mjs +48 -0
- package/chunks/{BYu4QaK72.mjs → BPQMbzNr.mjs} +2 -2
- package/chunks/BVD_ePZC.mjs +37 -0
- package/chunks/BVSJF8GY.mjs +670 -0
- package/chunks/{vHsAJZRT.mjs → BXdCyPVV.mjs} +2 -2
- package/chunks/{DbcxJ45j.mjs → BZb0RMw12.mjs} +15 -13
- package/chunks/BZuJ9dKq2.mjs +69 -0
- package/chunks/BaM7vJ3h.mjs +1920 -0
- package/chunks/BbJd8Pij.mjs +734 -0
- package/chunks/{tVHVSu5h.mjs → BgQktI__2.mjs} +384 -385
- package/chunks/BhIjXcRj2.mjs +617 -0
- package/chunks/{SInS7QSL.mjs → Bi03Pb_j2.mjs} +1 -1
- package/chunks/Bi2y9LWO2.mjs +338 -0
- package/chunks/{CTFV8OFH2.mjs → BjZf7WL6.mjs} +2 -2
- package/chunks/{BxcsELcB2.mjs → BkEjtrWy.mjs} +2 -2
- package/chunks/BnNJk0GR2.mjs +4 -0
- package/chunks/Bpp7HhpF.mjs +446 -0
- package/chunks/Bs0Qas8r.mjs +14 -0
- package/chunks/Bs8cIxmy.mjs +384 -0
- package/chunks/BsBVCVnp2.mjs +378 -0
- package/chunks/BtGJbKCB.mjs +4 -0
- package/chunks/{Bs926z902.mjs → BuwISkjU.mjs} +12 -11
- package/chunks/{61ccpSFj2.mjs → BvdCIFp_.mjs} +39 -32
- package/chunks/BwVhaeaN2.mjs +8 -0
- package/chunks/BxfDXlNF.mjs +5 -0
- package/chunks/C1rRv4L7.mjs +1094 -0
- package/chunks/C2ILQE4o.mjs +15 -0
- package/chunks/{CCpKg0cM.mjs → C5SO6LJW.mjs} +2 -2
- package/chunks/C6wieT3K2.mjs +4 -0
- package/chunks/C7L-0D2c.mjs +18 -0
- package/chunks/CAXQZ1D92.mjs +158 -0
- package/chunks/CAmsy3d12.mjs +1 -0
- package/chunks/CBrMFZX-.mjs +39 -0
- package/chunks/CDhbz_dU.mjs +5 -0
- package/chunks/CEAep1cG2.mjs +88 -0
- package/chunks/CEDUulAx.mjs +245 -0
- package/chunks/CEaiqlCR.mjs +678 -0
- package/chunks/{CpsHWpwH2.mjs → CFfhckpA.mjs} +26 -27
- package/chunks/CG-vyVAP2.mjs +2 -0
- package/chunks/CHqbeWkw.mjs +99 -0
- package/chunks/CI6Nw27a2.mjs +299 -0
- package/chunks/CNcSX5f1.mjs +1 -0
- package/chunks/CPAK-Btp2.mjs +58 -0
- package/chunks/CRScbQff2.mjs +1 -0
- package/chunks/CShykH0i.mjs +1 -0
- package/chunks/CTAUFbNL.mjs +222 -0
- package/chunks/{D_q3C3v4.mjs → CTCW5Zu02.mjs} +135 -134
- package/chunks/CZbhVowA2.mjs +105 -0
- package/chunks/{DVF9q3oX.mjs → C_mXAGw2.mjs} +2 -2
- package/chunks/C_rLHaAm.mjs +41 -0
- package/chunks/C_ykwQIT.mjs +25 -0
- package/chunks/Cm5l5wtF.mjs +21 -0
- package/chunks/CogUVyM32.mjs +161 -0
- package/chunks/{C-iN5MJZ.mjs → Cqn3fqrC.mjs} +6 -6
- package/chunks/{BsqIRxSS.mjs → CsckXzQC.mjs} +7 -6
- package/chunks/CtqI9iHR.mjs +108 -0
- package/chunks/{Dodxnwze.mjs → CuU6RbNj2.mjs} +6 -6
- package/chunks/Cu_oMKPd.mjs +250 -0
- package/chunks/Cum802WQ.mjs +13 -0
- package/chunks/{8zYlq-t92.mjs → Cwgd7PoY.mjs} +4 -4
- package/chunks/Cx2xXO7o.mjs +52 -0
- package/chunks/{BMei9UHN2.mjs → Cxhpz5pM.mjs} +119 -113
- package/chunks/CyF0QYX72.mjs +1098 -0
- package/chunks/D0SsqlhV2.mjs +2381 -0
- package/chunks/D5OVW2kN.mjs +34 -0
- package/chunks/D6WqEUFG2.mjs +98 -0
- package/chunks/D8iXlrtZ2.mjs +1038 -0
- package/chunks/D98jjbwV2.mjs +61 -0
- package/chunks/D9Pg_OCD2.mjs +6 -0
- package/chunks/DA1LVvTS.mjs +577 -0
- package/chunks/DHUKKHoT.mjs +1 -0
- package/chunks/DJQH0NMv.mjs +276 -0
- package/chunks/DK7E0MrC2.mjs +990 -0
- package/chunks/{BM5LdxU72.mjs → DNicIC4X.mjs} +32 -31
- package/chunks/{CLn5E7NV.mjs → DOPqetRk2.mjs} +1 -1
- package/chunks/DTS-uhBE.mjs +25 -0
- package/chunks/DUQs5bPg.mjs +188 -0
- package/chunks/{B5c0s3IR.mjs → DUzoabyA2.mjs} +69 -68
- package/chunks/DV-c1hfn2.mjs +6 -0
- package/chunks/DVvu0kbn2.mjs +69 -0
- package/chunks/{tqW2DSco.mjs → DZ1RiRcl2.mjs} +31 -29
- package/chunks/DZZdwRGN.mjs +479 -0
- package/chunks/{Ctx93AFS.mjs → DcIBy4G3.mjs} +6 -6
- package/chunks/Dd5QuF1x.mjs +26 -0
- package/chunks/DdkcOQQ02.mjs +204 -0
- package/chunks/DeXyq_xW2.mjs +936 -0
- package/chunks/DgXDFUzM2.mjs +60 -0
- package/chunks/DhA6VYyn.mjs +588 -0
- package/chunks/DiQUqii-.mjs +486 -0
- package/chunks/{KOJEsarR2.mjs → Dk_ATXDY.mjs} +1 -1
- package/chunks/DlhCJLng.mjs +211 -0
- package/chunks/Dq9YiS-H.mjs +26 -0
- package/chunks/{mqi8hesW2.mjs → DrrpjVlS.mjs} +19 -18
- package/chunks/DsSXjU752.mjs +4811 -0
- package/chunks/DuIXSS2d.mjs +454 -0
- package/chunks/DvCdN2bU.mjs +1 -0
- package/chunks/DvG4VjQh.mjs +216 -0
- package/chunks/DvenxcV4.mjs +186 -0
- package/chunks/DxG4FcLQ2.mjs +58 -0
- package/chunks/E-zZdDOp.mjs +48 -0
- package/chunks/HQd8AhfS.mjs +225 -0
- package/chunks/HsqImdEj.mjs +69 -0
- package/chunks/IAX-2m4F.mjs +31 -0
- package/chunks/JvWWISEH2.mjs +243 -0
- package/chunks/K7NMn1cU.mjs +12 -0
- package/chunks/{BrSqLOi5.mjs → LnWJAAlm2.mjs} +178 -178
- package/chunks/NiAjkTEH2.mjs +32 -0
- package/chunks/OWDOBaZL.mjs +467 -0
- package/chunks/R_GWm9EB.mjs +41 -0
- package/chunks/Rn-X08l92.mjs +273 -0
- package/chunks/STHbzblo.mjs +55 -0
- package/chunks/TWAjK03p.mjs +3092 -0
- package/chunks/{tfaGdZX2.mjs → XGboXSyJ2.mjs} +139 -138
- package/chunks/ZIHPaVeg.mjs +105 -0
- package/chunks/ZxxDJBOG2.mjs +180 -0
- package/chunks/_NG8ze6x.mjs +42 -0
- package/chunks/_wUx1zSH2.mjs +30 -0
- package/chunks/aeYRYRdi.mjs +29 -0
- package/chunks/b58kljs82.mjs +525 -0
- package/chunks/cGGsl8YM2.mjs +2 -0
- package/chunks/cvUTkWmm.mjs +98 -0
- package/chunks/el7WAt3q.mjs +4 -0
- package/chunks/f-0LSLCC.mjs +17 -0
- package/chunks/g1H2yYXi.mjs +35 -0
- package/chunks/gQwOnofw.mjs +302 -0
- package/chunks/hczonP-N2.mjs +206 -0
- package/chunks/jkTWyLZa.mjs +17 -0
- package/chunks/kN7dSjtl.mjs +1278 -0
- package/chunks/kWflpyKd.mjs +221 -0
- package/chunks/lJ7uxiQe2.mjs +46 -0
- package/chunks/lKeVGJZg.mjs +62 -0
- package/chunks/{ofu8wJKp.mjs → losZHy0P.mjs} +1 -1
- package/chunks/qNngJ9B9.mjs +29 -0
- package/chunks/r6tERHEL.mjs +438 -0
- package/chunks/tSJE9_uL.mjs +1 -0
- package/chunks/vRQzbLgj.mjs +2 -0
- package/chunks/wfxM1ecI.mjs +17 -0
- package/chunks/{Dkw6LNCq2.mjs → wkrB-kab.mjs} +1 -1
- package/chunks/{C8h_P_kl2.mjs → y9rz_ZSp.mjs} +37 -36
- package/chunks/zG9cElaH.mjs +1209 -0
- package/code-mirror-editor/index.mjs +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/constants/index.d.ts +2 -0
- package/constants/index.mjs +2 -2
- package/context-menu/index.mjs +1 -1
- package/count-up/index.mjs +1 -1
- package/css/style.css +1 -0
- package/css/style10.css +1 -0
- package/css/style11.css +1 -0
- package/css/style12.css +1 -0
- package/css/style13.css +1 -0
- package/css/style14.css +1 -0
- package/css/style15.css +1 -0
- package/css/style16.css +1 -0
- package/css/style17.css +1 -0
- package/css/style18.css +1 -0
- package/css/style19.css +1 -0
- package/css/style2.css +1 -0
- package/css/style20.css +1 -0
- package/css/style21.css +1 -0
- package/css/style22.css +1 -0
- package/css/style23.css +1 -0
- package/css/style24.css +1 -0
- package/css/style25.css +1 -0
- package/css/style26.css +1 -0
- package/css/style27.css +1 -0
- package/css/style28.css +1 -0
- package/css/style29.css +1 -0
- package/css/style3.css +1 -0
- package/css/style30.css +1 -0
- package/css/style31.css +1 -0
- package/css/style32.css +1 -0
- package/css/style33.css +1 -0
- package/css/style34.css +1 -0
- package/css/style35.css +1 -0
- package/css/style36.css +1 -0
- package/css/style37.css +1 -0
- package/css/style38.css +1 -0
- package/css/style39.css +1 -0
- package/css/style4.css +1 -0
- package/css/style5.css +1 -0
- package/css/style6.css +1 -0
- package/css/style7.css +1 -0
- package/css/style8.css +1 -0
- package/css/style9.css +1 -0
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +1 -1
- package/data-card/index.mjs +8 -8
- package/data-card-text/index.mjs +8 -8
- package/data-display/index.mjs +9 -9
- package/data-icons/index.mjs +9 -9
- package/data-imgtext/index.mjs +10 -9
- package/data-operatext/index.mjs +8 -8
- package/data-panel/index.mjs +9 -9
- package/data-pay/index.mjs +11 -10
- package/data-price/index.mjs +8 -8
- package/data-progress/index.mjs +10 -10
- package/data-rotate/index.mjs +1 -1
- package/data-table-picker/index.mjs +15 -15
- package/data-tabs/index.mjs +1 -1
- package/dialog-form/index.d.ts +4 -0
- package/dialog-form/index.mjs +154 -0
- package/dialog-form/style.css +1 -0
- package/dict-render/index.mjs +1 -1
- package/e-charts/index.mjs +2 -2
- package/easy-popup/index.mjs +1 -1
- package/editable-progress/index.mjs +8 -8
- package/editable-tree/index.mjs +2 -596
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/empty-view/index.d.ts +2 -2
- package/flex-box/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flex-scroller/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/flow-viewer/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.d.ts +4 -4
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-image/style.css +1 -0
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-radio-group/style.css +1 -0
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +9 -0
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +9 -0
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.mjs +3 -3
- package/fy-array/index.d.ts +234 -0
- package/fy-array/index.mjs +2 -0
- package/fy-array/style.css +1 -0
- package/fy-button/index.d.ts +18 -0
- package/fy-button/index.mjs +2 -0
- package/fy-button/style.css +1 -0
- package/fy-cascader/index.d.ts +298 -0
- package/fy-cascader/index.mjs +116 -0
- package/fy-checkbox/index.d.ts +231 -0
- package/fy-checkbox/index.mjs +100 -0
- package/fy-checkbox/style.css +1 -0
- package/fy-curd/index.d.ts +908 -0
- package/fy-curd/index.mjs +2 -0
- package/fy-date/index.d.ts +246 -0
- package/fy-date/index.mjs +79 -0
- package/fy-date/style.css +1 -0
- package/fy-dynamic/index.d.ts +268 -0
- package/fy-dynamic/index.mjs +2 -0
- package/fy-empty/index.d.ts +31 -0
- package/fy-empty/index.mjs +35 -0
- package/fy-empty/style.css +1 -0
- package/fy-form/index.d.ts +522 -0
- package/fy-form/index.mjs +2 -0
- package/fy-form/style.css +1 -0
- package/fy-input/index.d.ts +316 -0
- package/fy-input/index.mjs +123 -0
- package/fy-input-color/index.d.ts +235 -0
- package/fy-input-color/index.mjs +2 -0
- package/fy-input-color/style.css +1 -0
- package/fy-input-icon/index.d.ts +244 -0
- package/fy-input-icon/index.mjs +134 -0
- package/fy-input-icon/style.css +1 -0
- package/fy-input-map/index.d.ts +266 -0
- package/fy-input-map/index.mjs +249 -0
- package/fy-input-map/style.css +1 -0
- package/fy-input-number/index.d.ts +266 -0
- package/fy-input-number/index.mjs +78 -0
- package/fy-input-table/index.d.ts +248 -0
- package/fy-input-table/index.mjs +167 -0
- package/fy-input-table/style.css +1 -0
- package/fy-input-tree/index.d.ts +351 -0
- package/fy-input-tree/index.mjs +266 -0
- package/fy-input-tree/style.css +1 -0
- package/fy-radio/index.d.ts +218 -0
- package/fy-radio/index.mjs +57 -0
- package/fy-radio/style.css +1 -0
- package/fy-rate/index.d.ts +288 -0
- package/fy-rate/index.mjs +90 -0
- package/fy-rate/style.css +1 -0
- package/fy-select/index.d.ts +324 -0
- package/fy-select/index.mjs +2 -0
- package/fy-select/style.css +1 -0
- package/fy-slider/index.d.ts +249 -0
- package/fy-slider/index.mjs +72 -0
- package/fy-switch/index.d.ts +229 -0
- package/fy-switch/index.mjs +71 -0
- package/fy-tabs/index.d.ts +20 -0
- package/fy-tabs/index.mjs +50 -0
- package/fy-time/index.d.ts +704 -0
- package/fy-time/index.mjs +85 -0
- package/fy-title/index.d.ts +224 -0
- package/fy-title/index.mjs +18 -0
- package/fy-title/style.css +1 -0
- package/fy-tree/index.d.ts +141 -0
- package/fy-tree/index.mjs +392 -0
- package/fy-tree/style.css +1 -0
- package/fy-u-editor/index.d.ts +116 -0
- package/fy-u-editor/index.mjs +2 -0
- package/fy-u-editor/style.css +1 -0
- package/fy-upload/index.d.ts +379 -0
- package/fy-upload/index.mjs +2 -0
- package/fy-upload/style.css +1 -0
- package/guide-steps/index.mjs +2 -77
- package/guide-steps/style.css +1 -1
- package/helper/avue.d.ts +36 -0
- package/helper/avue.mjs +35 -0
- package/helper/dictionary.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/icon-temp/index.d.ts +19 -0
- package/icon-temp/index.mjs +27 -0
- package/icon-temp/style.css +1 -0
- package/iframe-window/index.mjs +1 -1
- package/image-cropper/index.mjs +5 -5
- package/image-preview/index.mjs +2 -201
- package/image-preview/style.css +1 -1
- package/image-viewer/index.d.ts +1 -1
- package/image-viewer/index.mjs +1 -1
- package/index.css +1 -1
- package/index.d.ts +31 -1
- package/index.mjs +149 -121
- package/input-number-range/index.mjs +7 -7
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.mjs +1 -1
- package/monaco-editor/index.d.ts +126 -0
- package/monaco-editor/index.mjs +2 -0
- package/monaco-editor/style.css +1 -0
- package/name-avatar/index.mjs +1 -1
- package/nav-bar/index.mjs +3 -3
- package/package.json +3 -3
- package/page-index/index.mjs +14 -14
- package/page-index-top/index.mjs +12 -12
- package/pageable-table/index.d.ts +2 -2
- package/pageable-table/index.mjs +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/props/col.mjs +1 -1
- package/props/form-item.mjs +1 -1
- package/resolver/components.mjs +1 -1
- package/sign-panel/index.mjs +1 -1
- package/skeleton-panel/index.mjs +3 -3
- package/split-pane/index.mjs +1 -1
- package/sub-table/index.d.ts +9 -0
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.d.ts +9 -0
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.d.ts +6 -6
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.d.ts +5 -5
- package/table-view/index.mjs +105 -104
- package/tag-render/index.d.ts +1 -1
- package/tag-render/index.mjs +9 -7
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.d.ts +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +24 -20
- package/year-calendar/index.mjs +1 -1
- package/chunks/3nLaRSbR2.mjs +0 -108
- package/chunks/6eDDQWcr.mjs +0 -69
- package/chunks/BIy6bO4j.mjs +0 -50
- package/chunks/BQytQPLa.mjs +0 -780
- package/chunks/BxuM-fgJ.mjs +0 -61
- package/chunks/By-W0XXn2.mjs +0 -63
- package/chunks/C28bnMcw.mjs +0 -68
- package/chunks/CET31mBi.mjs +0 -39
- package/chunks/CjCNtCWd.mjs +0 -58
- package/chunks/CkHQY4ME2.mjs +0 -29
- package/chunks/ClVh1Lek.mjs +0 -130
- package/chunks/DJlgX5ty.mjs +0 -30
- package/chunks/DdACGFy3.mjs +0 -90
- package/chunks/Dst9_BmZ.mjs +0 -99
- package/chunks/SLYmepqR.mjs +0 -667
- package/chunks/SWO35fS42.mjs +0 -31
- package/chunks/Tq3_dajC2.mjs +0 -25
- package/chunks/V-Js6hNd.mjs +0 -179
- package/chunks/XQwnPkab2.mjs +0 -34
- package/chunks/b0ve2YgF.mjs +0 -155
- package/chunks/saZ_qJOT.mjs +0 -32
- package/chunks/vebd58-O.mjs +0 -37
- package/chunks/y1Q66LEa2.mjs +0 -29
- /package/chunks/{CHmZyvFr.mjs → BMdSzPpD2.mjs} +0 -0
- /package/chunks/{X-ckP2Hj.mjs → CISLTyi_2.mjs} +0 -0
- /package/chunks/{PEU1JRcN2.mjs → CVDxIjGg.mjs} +0 -0
- /package/chunks/{DokYQ49m.mjs → CeLNtZZw.mjs} +0 -0
- /package/chunks/{BwL9Xz1F.mjs → CyNGeUTh.mjs} +0 -0
- /package/chunks/{BAG_R87k2.mjs → DX29uO-O.mjs} +0 -0
- /package/chunks/{tzjUpVIj.mjs → Xe_0bP0H.mjs} +0 -0
- /package/chunks/{B1MSrc6f.mjs → hFCEXdXW.mjs} +0 -0
- /package/chunks/{C_QfuxeQ.mjs → nvUgyH-A.mjs} +0 -0
- /package/chunks/{BTGrh7dw2.mjs → wm9pxXuv.mjs} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as e, v as t, y as n } from "./r6tERHEL.mjs";
|
|
2
|
+
import { o as r } from "./cvUTkWmm.mjs";
|
|
3
|
+
import { getCurrentInstance as i, inject as a, unref as o } from "vue";
|
|
4
|
+
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/hooks/use-id/index.mjs
|
|
5
|
+
var s = {
|
|
6
|
+
prefix: Math.floor(Math.random() * 1e4),
|
|
7
|
+
current: 0
|
|
8
|
+
}, c = Symbol("elIdInjection"), l = () => i() ? a(c, s) : s, u = (i) => {
|
|
9
|
+
let a = l();
|
|
10
|
+
!n && a === s && e("IdInjection", "Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})");
|
|
11
|
+
let c = r();
|
|
12
|
+
return t(() => o(i) || `${c.value}-id-${a.prefix}-${a.current++}`);
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { l as n, u as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./CAXQZ1D92.mjs";
|
|
2
|
+
import { t } from "./DVvu0kbn2.mjs";
|
|
3
3
|
import { allProps as n } from "../props/input.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { c as e } from "./cvUTkWmm.mjs";
|
|
2
|
+
import { computed as t, inject as n, unref as r } from "vue";
|
|
3
|
+
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/constants/size.mjs
|
|
4
|
+
var i = [
|
|
5
|
+
"",
|
|
6
|
+
"default",
|
|
7
|
+
"small",
|
|
8
|
+
"large"
|
|
9
|
+
], a = e({
|
|
10
|
+
type: String,
|
|
11
|
+
values: i,
|
|
12
|
+
required: !1
|
|
13
|
+
}), o = Symbol("size"), s = () => {
|
|
14
|
+
let e = n(o, {});
|
|
15
|
+
return t(() => r(e.size) || "");
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { i, s as n, a as r, o as t };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import "./B2vpUK0j.mjs";
|
|
2
|
+
import "./cvUTkWmm.mjs";
|
|
3
|
+
import { t as e } from "./BaM7vJ3h.mjs";
|
|
4
|
+
import { n as t } from "./DuIXSS2d.mjs";
|
|
5
|
+
import { g as n, h as r, o as i } from "./b58kljs82.mjs";
|
|
6
|
+
import { t as a } from "./CEAep1cG2.mjs";
|
|
7
|
+
import { t as o } from "./C6wieT3K2.mjs";
|
|
8
|
+
import { formItemProps as s, predicate as c, useFormItemAutoBind as l } from "../props/form-item.mjs";
|
|
9
|
+
import { colProps as u, predicate as d, useColAutoBind as f } from "../props/col.mjs";
|
|
10
|
+
import "./vRQzbLgj.mjs";
|
|
11
|
+
import { formHolderContextKey as p, formItemConfigProviderContextKey as m, formItemGroupContextKey as h, formViewContextKey as g } from "../constants/index.mjs";
|
|
12
|
+
import "./CRScbQff2.mjs";
|
|
13
|
+
import { useFormItemProps as _, useRequired as v } from "../helper/form-item.mjs";
|
|
14
|
+
import { computed as y, createVNode as b, h as x, inject as S, mergeProps as C, toRef as w, useTemplateRef as T } from "vue";
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/form/FormItem.vue
|
|
17
|
+
var E = {
|
|
18
|
+
name: "FormItem",
|
|
19
|
+
inheritAttrs: !1,
|
|
20
|
+
props: {
|
|
21
|
+
...s,
|
|
22
|
+
...u
|
|
23
|
+
},
|
|
24
|
+
setup(n, { attrs: r, slots: i, expose: s }) {
|
|
25
|
+
let u = S(o, null), h = S(m, null), g = S(p, null), _ = r.embed ? y(() => r.disabled) : O(n), x = l(n, { predicate: c }), w = f(n, { predicate: d }), E = y(() => (h == null ? void 0 : h.reactive) === !0 && h.block === !1 && n.fixedSpan === void 0 && !n.half), D = v(n), k = T("formItem"), A = y(() => (h == null ? void 0 : h.wrapCol) === !1 ? !1 : !!u && n.wrapCol), j = y(() => g != null && g.tableForm ? "" : h != null && h.block ? "100%" : n.half && A.value ? `calc(50% - ${u.gutter.value / 2}px)` : ""), M = y(() => (h == null ? void 0 : h.block) === !0 || n.block || n.half ? 24 : n.span), N = y(() => {
|
|
26
|
+
if (_.value) return [];
|
|
27
|
+
if (D.value) {
|
|
28
|
+
let e = {
|
|
29
|
+
required: !0,
|
|
30
|
+
message: n.message || `${n.messagePrefix || "请输入"}${n.label}`
|
|
31
|
+
};
|
|
32
|
+
return n.rules ? [...n.rules, e] : [e];
|
|
33
|
+
}
|
|
34
|
+
return n.rules;
|
|
35
|
+
});
|
|
36
|
+
return s({
|
|
37
|
+
clearValidate: () => {
|
|
38
|
+
var e;
|
|
39
|
+
return (e = k.value) == null ? void 0 : e.clearValidate();
|
|
40
|
+
},
|
|
41
|
+
validate: () => {
|
|
42
|
+
var e;
|
|
43
|
+
return (e = k.value) == null ? void 0 : e.validate();
|
|
44
|
+
},
|
|
45
|
+
resetField: () => {
|
|
46
|
+
var e;
|
|
47
|
+
return (e = k.value) == null ? void 0 : e.resetField();
|
|
48
|
+
},
|
|
49
|
+
setInitialValue: () => {
|
|
50
|
+
var e;
|
|
51
|
+
return (e = k.value) == null ? void 0 : e.setInitialValue();
|
|
52
|
+
},
|
|
53
|
+
size: y(() => {
|
|
54
|
+
var e;
|
|
55
|
+
return (e = k.value) == null ? void 0 : e.size;
|
|
56
|
+
}),
|
|
57
|
+
validateMessage: y(() => {
|
|
58
|
+
var e;
|
|
59
|
+
return (e = k.value) == null ? void 0 : e.validateMessage;
|
|
60
|
+
}),
|
|
61
|
+
validateState: y(() => {
|
|
62
|
+
var e;
|
|
63
|
+
return (e = k.value) == null ? void 0 : e.validateState;
|
|
64
|
+
})
|
|
65
|
+
}), () => {
|
|
66
|
+
var o;
|
|
67
|
+
let s = i.tips || n.tips, c = s ? b(e, {
|
|
68
|
+
effect: "light",
|
|
69
|
+
content: n.tips,
|
|
70
|
+
offset: 4
|
|
71
|
+
}, {
|
|
72
|
+
default: () => b("i", { class: "el-icon-info form-item-input-info" }, null),
|
|
73
|
+
content: i.tips ? i.tips : null
|
|
74
|
+
}) : null, l = b(t, C(x.value, r, {
|
|
75
|
+
ref: "formItem",
|
|
76
|
+
style: { width: j.value },
|
|
77
|
+
class: [
|
|
78
|
+
"form-item",
|
|
79
|
+
n.formItemClass,
|
|
80
|
+
{
|
|
81
|
+
"form-item-hide-label": n.hideLabel,
|
|
82
|
+
"with-tips": !n.tipsAfterLabel && s,
|
|
83
|
+
required: _.value === !1 && D.value
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
rules: N.value
|
|
87
|
+
}), {
|
|
88
|
+
...i,
|
|
89
|
+
default: () => {
|
|
90
|
+
var e;
|
|
91
|
+
return [(e = i.default) == null ? void 0 : e.call(i, {
|
|
92
|
+
disabled: _.value,
|
|
93
|
+
required: D.value
|
|
94
|
+
}), s && !n.tipsAfterLabel ? c : null];
|
|
95
|
+
},
|
|
96
|
+
label: () => [i.label ? i.label() : n.label, n.tipsAfterLabel ? c : null]
|
|
97
|
+
}), u = [l, (o = i.below) == null ? void 0 : o.call(i)];
|
|
98
|
+
return n.unwrap ? u : A.value ? b(a, C(w.value, E.value ? {
|
|
99
|
+
xs: 24,
|
|
100
|
+
sm: 12,
|
|
101
|
+
md: 12,
|
|
102
|
+
lg: 8,
|
|
103
|
+
xl: 6
|
|
104
|
+
} : {}, { span: M.value }), { default: () => u }) : l;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}, D = "update:modelValue", O = (e) => {
|
|
108
|
+
let t = S(p, null), n = S(h, null);
|
|
109
|
+
return y(() => {
|
|
110
|
+
if (e.disabled !== void 0) return e.disabled;
|
|
111
|
+
if (t) {
|
|
112
|
+
if (t.requiredFieldsMap[e.prop] === !0 || t.enabledFieldsMap[e.prop] === !0) return !1;
|
|
113
|
+
if (t.disabledFieldsMap[e.prop] === !0) return !0;
|
|
114
|
+
}
|
|
115
|
+
return (n == null ? void 0 : n.enabled) === !0 ? !1 : (n == null ? void 0 : n.disabled) === !0 ? !0 : (t == null ? void 0 : t.disabled) === !0;
|
|
116
|
+
});
|
|
117
|
+
}, k = { [D]: null }, A = (e, t) => e(D, t), j = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i, ref: a }) => e.wrapFormItem ? x(E, {
|
|
118
|
+
...n.value,
|
|
119
|
+
embed: !0,
|
|
120
|
+
disabled: i == null ? void 0 : i.value,
|
|
121
|
+
ref: a
|
|
122
|
+
}, {
|
|
123
|
+
default: () => t,
|
|
124
|
+
label: r.label,
|
|
125
|
+
error: r.error,
|
|
126
|
+
tips: r.tips,
|
|
127
|
+
below: r.below
|
|
128
|
+
}) : t, M = (e, { emit: t, slots: o, events: s, predicate: c, removeOn: l = !1, attrs: u, block: d, class: f, rules: p, messagePrefix: m = "请输入", extraFormItemProps: h }) => {
|
|
129
|
+
let v = O(e), b = S(g, null), C = y(() => v.value || e.placeholder === !1 ? "" : e.placeholder === !0 ? `${m}${e.label}` : e.placeholder || `${m ?? ""}${e.label ?? ""}`), E = _(e, {
|
|
130
|
+
rules: p,
|
|
131
|
+
block: w(() => d === void 0 ? e.type === "textarea" && e.block === void 0 ? !0 : e.block : d),
|
|
132
|
+
attrs: u,
|
|
133
|
+
class: f,
|
|
134
|
+
message: C.value,
|
|
135
|
+
messagePrefix: m,
|
|
136
|
+
...h
|
|
137
|
+
}), D = (e) => A(t, e), k = (t) => e.col ? x(a, { span: e.block ? 24 : e.span }, { default: () => t }) : t, M = T("formItem"), N = ({ vNodes: t }) => j(e, {
|
|
138
|
+
vNodes: k(t),
|
|
139
|
+
formItemProps: E,
|
|
140
|
+
slots: o,
|
|
141
|
+
disabled: v,
|
|
142
|
+
ref: "formItem"
|
|
143
|
+
}), P = y(() => i(e, c, s, t)), F = n({ removeOn: l });
|
|
144
|
+
return {
|
|
145
|
+
emitInput: D,
|
|
146
|
+
render: N,
|
|
147
|
+
placeholder: C,
|
|
148
|
+
disabled: v,
|
|
149
|
+
formItemProps: E,
|
|
150
|
+
autoBind: P,
|
|
151
|
+
inputProps: r(e, c),
|
|
152
|
+
listeners: F,
|
|
153
|
+
formItem: M,
|
|
154
|
+
printing: y(() => (b == null ? void 0 : b.printing) === !0)
|
|
155
|
+
};
|
|
156
|
+
}, N = (e) => e.icon ? x("i", { class: e.icon }) : null;
|
|
157
|
+
//#endregion
|
|
158
|
+
export { O as a, A as i, k as n, M as o, j as r, E as s, N as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./cvUTkWmm.mjs";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "./B2vpUK0j.mjs";
|
|
2
|
+
import "./cvUTkWmm.mjs";
|
|
3
|
+
import { t as e } from "./hczonP-N2.mjs";
|
|
4
|
+
import { n as t, o as n } from "./CAXQZ1D92.mjs";
|
|
5
|
+
import { allProps as r, predicate as i } from "../props/time.mjs";
|
|
6
|
+
import { createVNode as a, mergeProps as o } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/form/FormInputTime.vue
|
|
9
|
+
var s = {
|
|
10
|
+
name: "FormInputTime",
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
props: { ...r },
|
|
13
|
+
emits: { ...t },
|
|
14
|
+
setup(t, { emit: r, slots: s, attrs: c }) {
|
|
15
|
+
let { emitInput: l, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = n(t, {
|
|
16
|
+
emit: r,
|
|
17
|
+
slots: s,
|
|
18
|
+
attrs: c,
|
|
19
|
+
predicate: i
|
|
20
|
+
}), h = { modifiers: [{
|
|
21
|
+
name: "arrow",
|
|
22
|
+
options: { padding: ({ popper: e, reference: t, placement: n }) => e.width / 2 }
|
|
23
|
+
}] };
|
|
24
|
+
return () => u({ vNodes: a(e, o(p.value, m.value, {
|
|
25
|
+
"popper-options": t.popperOptions || h,
|
|
26
|
+
style: "width: 100%",
|
|
27
|
+
placement: t.placement || "left",
|
|
28
|
+
"is-range": t.isRange || t.range,
|
|
29
|
+
format: t.format,
|
|
30
|
+
"value-format": t.valueFormat || t.format,
|
|
31
|
+
modelValue: t.modelValue,
|
|
32
|
+
disabled: f.value,
|
|
33
|
+
"onUpdate:modelValue": l,
|
|
34
|
+
placeholder: d.value
|
|
35
|
+
}), null) });
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { s as t };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { A as e, _ as t, l as n, s as r, t as i, u as a } from "./cvUTkWmm.mjs";
|
|
2
|
+
import { t as o } from "./BnNJk0GR2.mjs";
|
|
3
|
+
import { t as s } from "./C6wieT3K2.mjs";
|
|
4
|
+
import { computed as c, createBlock as l, defineComponent as u, inject as d, normalizeClass as f, normalizeStyle as p, openBlock as m, renderSlot as h, resolveDynamicComponent as g, withCtx as _ } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/col/index.mjs
|
|
7
|
+
var v = i(/* @__PURE__ */ u({
|
|
8
|
+
name: "ElCol",
|
|
9
|
+
__name: "col",
|
|
10
|
+
props: n({
|
|
11
|
+
tag: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "div"
|
|
14
|
+
},
|
|
15
|
+
span: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 24
|
|
18
|
+
},
|
|
19
|
+
offset: {
|
|
20
|
+
type: Number,
|
|
21
|
+
default: 0
|
|
22
|
+
},
|
|
23
|
+
pull: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 0
|
|
26
|
+
},
|
|
27
|
+
push: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 0
|
|
30
|
+
},
|
|
31
|
+
xs: {
|
|
32
|
+
type: a([Number, Object]),
|
|
33
|
+
default: () => o({})
|
|
34
|
+
},
|
|
35
|
+
sm: {
|
|
36
|
+
type: a([Number, Object]),
|
|
37
|
+
default: () => o({})
|
|
38
|
+
},
|
|
39
|
+
md: {
|
|
40
|
+
type: a([Number, Object]),
|
|
41
|
+
default: () => o({})
|
|
42
|
+
},
|
|
43
|
+
lg: {
|
|
44
|
+
type: a([Number, Object]),
|
|
45
|
+
default: () => o({})
|
|
46
|
+
},
|
|
47
|
+
xl: {
|
|
48
|
+
type: a([Number, Object]),
|
|
49
|
+
default: () => o({})
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
52
|
+
setup(n) {
|
|
53
|
+
let i = n, { gutter: a } = d(s, { gutter: c(() => 0) }), o = r("col"), u = c(() => {
|
|
54
|
+
let e = {};
|
|
55
|
+
return a.value && (e.paddingLeft = e.paddingRight = `${a.value / 2}px`), e;
|
|
56
|
+
}), v = c(() => {
|
|
57
|
+
let n = [];
|
|
58
|
+
return [
|
|
59
|
+
"span",
|
|
60
|
+
"offset",
|
|
61
|
+
"pull",
|
|
62
|
+
"push"
|
|
63
|
+
].forEach((e) => {
|
|
64
|
+
let r = i[e];
|
|
65
|
+
t(r) && (e === "span" ? n.push(o.b(`${i[e]}`)) : r > 0 && n.push(o.b(`${e}-${i[e]}`)));
|
|
66
|
+
}), [
|
|
67
|
+
"xs",
|
|
68
|
+
"sm",
|
|
69
|
+
"md",
|
|
70
|
+
"lg",
|
|
71
|
+
"xl"
|
|
72
|
+
].forEach((r) => {
|
|
73
|
+
t(i[r]) ? n.push(o.b(`${r}-${i[r]}`)) : e(i[r]) && Object.entries(i[r]).forEach(([e, t]) => {
|
|
74
|
+
n.push(e === "span" ? o.b(`${r}-${t}`) : o.b(`${r}-${e}-${t}`));
|
|
75
|
+
});
|
|
76
|
+
}), a.value && n.push(o.is("guttered")), [o.b(), n];
|
|
77
|
+
});
|
|
78
|
+
return (e, t) => (m(), l(g(n.tag), {
|
|
79
|
+
class: f(v.value),
|
|
80
|
+
style: p(u.value)
|
|
81
|
+
}, {
|
|
82
|
+
default: _(() => [h(e.$slots, "default")]),
|
|
83
|
+
_: 3
|
|
84
|
+
}, 8, ["class", "style"]));
|
|
85
|
+
}
|
|
86
|
+
}));
|
|
87
|
+
//#endregion
|
|
88
|
+
export { v as t };
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { a as e, n as t } from "./_NG8ze6x.mjs";
|
|
2
|
+
import { r as n, t as r } from "./BtGJbKCB.mjs";
|
|
3
|
+
import { r as i } from "./C7L-0D2c.mjs";
|
|
4
|
+
import { A as a, D as o, N as s, _ as c, l, s as ee, t as u, u as d } from "./cvUTkWmm.mjs";
|
|
5
|
+
import { A as f, k as p, t as m } from "./DiQUqii-.mjs";
|
|
6
|
+
import { i as te, n as h, r as ne } from "./E-zZdDOp.mjs";
|
|
7
|
+
import { t as g } from "./f-0LSLCC.mjs";
|
|
8
|
+
import { a as _ } from "./Dq9YiS-H.mjs";
|
|
9
|
+
import { n as v } from "./el7WAt3q.mjs";
|
|
10
|
+
import { t as y } from "./BnNJk0GR2.mjs";
|
|
11
|
+
import { Fragment as re, computed as b, createBlock as x, createCommentVNode as ie, createElementBlock as S, createVNode as C, defineComponent as w, inject as ae, markRaw as T, normalizeClass as E, normalizeStyle as D, openBlock as O, ref as k, renderList as A, resolveDynamicComponent as j, toDisplayString as oe, unref as M, vShow as N, watch as P, withCtx as F, withDirectives as I } from "vue";
|
|
12
|
+
import { clamp as L } from "lodash-unified";
|
|
13
|
+
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/rate/src/rate.mjs
|
|
14
|
+
var R = l({
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 0
|
|
18
|
+
},
|
|
19
|
+
id: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
lowThreshold: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 2
|
|
26
|
+
},
|
|
27
|
+
highThreshold: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 4
|
|
30
|
+
},
|
|
31
|
+
max: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 5
|
|
34
|
+
},
|
|
35
|
+
colors: {
|
|
36
|
+
type: d([Array, Object]),
|
|
37
|
+
default: () => y([
|
|
38
|
+
"",
|
|
39
|
+
"",
|
|
40
|
+
""
|
|
41
|
+
])
|
|
42
|
+
},
|
|
43
|
+
voidColor: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ""
|
|
46
|
+
},
|
|
47
|
+
disabledVoidColor: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ""
|
|
50
|
+
},
|
|
51
|
+
icons: {
|
|
52
|
+
type: d([Array, Object]),
|
|
53
|
+
default: () => [
|
|
54
|
+
f,
|
|
55
|
+
f,
|
|
56
|
+
f
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
voidIcon: {
|
|
60
|
+
type: _,
|
|
61
|
+
default: () => p
|
|
62
|
+
},
|
|
63
|
+
disabledVoidIcon: {
|
|
64
|
+
type: _,
|
|
65
|
+
default: () => f
|
|
66
|
+
},
|
|
67
|
+
disabled: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: void 0
|
|
70
|
+
},
|
|
71
|
+
allowHalf: Boolean,
|
|
72
|
+
showText: Boolean,
|
|
73
|
+
showScore: Boolean,
|
|
74
|
+
textColor: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: ""
|
|
77
|
+
},
|
|
78
|
+
texts: {
|
|
79
|
+
type: d(Array),
|
|
80
|
+
default: () => y([
|
|
81
|
+
"Extremely bad",
|
|
82
|
+
"Disappointed",
|
|
83
|
+
"Fair",
|
|
84
|
+
"Satisfied",
|
|
85
|
+
"Surprise"
|
|
86
|
+
])
|
|
87
|
+
},
|
|
88
|
+
scoreTemplate: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: "{value}"
|
|
91
|
+
},
|
|
92
|
+
size: i,
|
|
93
|
+
clearable: Boolean,
|
|
94
|
+
...g(["ariaLabel"])
|
|
95
|
+
}), z = {
|
|
96
|
+
[r]: (e) => c(e),
|
|
97
|
+
[n]: (e) => c(e)
|
|
98
|
+
}, se = [
|
|
99
|
+
"id",
|
|
100
|
+
"aria-label",
|
|
101
|
+
"aria-labelledby",
|
|
102
|
+
"aria-valuenow",
|
|
103
|
+
"aria-valuetext",
|
|
104
|
+
"aria-valuemax",
|
|
105
|
+
"tabindex",
|
|
106
|
+
"aria-disabled"
|
|
107
|
+
], ce = ["onMousemove", "onClick"], B = u(/* @__PURE__ */ w({
|
|
108
|
+
name: "ElRate",
|
|
109
|
+
__name: "rate",
|
|
110
|
+
props: R,
|
|
111
|
+
emits: z,
|
|
112
|
+
setup(i, { expose: c, emit: l }) {
|
|
113
|
+
function u(e, t) {
|
|
114
|
+
let n = (e) => a(e), r = t[Object.keys(t).map((e) => +e).filter((r) => {
|
|
115
|
+
let i = t[r];
|
|
116
|
+
return n(i) && i.excluded ? e < r : e <= r;
|
|
117
|
+
}).sort((e, t) => e - t)[0]];
|
|
118
|
+
return n(r) && r.value || r;
|
|
119
|
+
}
|
|
120
|
+
let d = i, f = l, p = ae(v, void 0), g = te(), _ = ee("rate"), { inputId: y, isLabeledByFormItem: w } = h(d, { formItemContext: p }), R = k(L(d.modelValue, 0, d.max)), z = k(-1), B = k(!0), V = k([]), H = b(() => V.value.map((e) => e.$el.clientWidth)), U = b(() => [_.b(), _.m(g.value)]), W = ne(), le = b(() => _.cssVarBlock({
|
|
121
|
+
"void-color": d.voidColor,
|
|
122
|
+
"disabled-void-color": d.disabledVoidColor,
|
|
123
|
+
"fill-color": q.value
|
|
124
|
+
})), G = b(() => {
|
|
125
|
+
let e = "";
|
|
126
|
+
return d.showScore ? e = d.scoreTemplate.replace(/\{\s*value\s*\}/, W.value ? `${d.modelValue}` : `${R.value}`) : d.showText && (e = d.texts[Math.ceil(R.value) - 1]), e;
|
|
127
|
+
}), K = b(() => d.modelValue * 100 - Math.floor(d.modelValue) * 100), ue = b(() => o(d.colors) ? {
|
|
128
|
+
[d.lowThreshold]: d.colors[0],
|
|
129
|
+
[d.highThreshold]: {
|
|
130
|
+
value: d.colors[1],
|
|
131
|
+
excluded: !0
|
|
132
|
+
},
|
|
133
|
+
[d.max]: d.colors[2]
|
|
134
|
+
} : d.colors), q = b(() => {
|
|
135
|
+
let e = u(R.value, ue.value);
|
|
136
|
+
return a(e) ? "" : e;
|
|
137
|
+
}), de = b(() => {
|
|
138
|
+
let e = "";
|
|
139
|
+
return W.value ? e = `${K.value}%` : d.allowHalf && (e = "50%"), {
|
|
140
|
+
color: q.value,
|
|
141
|
+
width: e
|
|
142
|
+
};
|
|
143
|
+
}), J = b(() => {
|
|
144
|
+
let e = o(d.icons) ? [...d.icons] : { ...d.icons };
|
|
145
|
+
return e = T(e), o(e) ? {
|
|
146
|
+
[d.lowThreshold]: e[0],
|
|
147
|
+
[d.highThreshold]: {
|
|
148
|
+
value: e[1],
|
|
149
|
+
excluded: !0
|
|
150
|
+
},
|
|
151
|
+
[d.max]: e[2]
|
|
152
|
+
} : e;
|
|
153
|
+
}), fe = b(() => u(d.modelValue, J.value)), Y = b(() => W.value ? s(d.disabledVoidIcon) ? d.disabledVoidIcon : T(d.disabledVoidIcon) : s(d.voidIcon) ? d.voidIcon : T(d.voidIcon)), pe = b(() => u(R.value, J.value));
|
|
154
|
+
function X(e) {
|
|
155
|
+
let t = W.value && K.value > 0 && e - 1 < d.modelValue && e > d.modelValue, n = d.allowHalf && B.value && e - .5 <= R.value && e > R.value;
|
|
156
|
+
return t || n;
|
|
157
|
+
}
|
|
158
|
+
function Z(e) {
|
|
159
|
+
d.clearable && e === d.modelValue && (e = 0), f(n, e), d.modelValue !== e && f(r, e);
|
|
160
|
+
}
|
|
161
|
+
function me(e) {
|
|
162
|
+
W.value || (d.allowHalf && B.value ? Z(R.value) : Z(e));
|
|
163
|
+
}
|
|
164
|
+
function he(i) {
|
|
165
|
+
if (W.value) return;
|
|
166
|
+
let a = t(i), o = d.allowHalf ? .5 : 1, s = R.value;
|
|
167
|
+
switch (a) {
|
|
168
|
+
case e.up:
|
|
169
|
+
case e.right:
|
|
170
|
+
s += o;
|
|
171
|
+
break;
|
|
172
|
+
case e.left:
|
|
173
|
+
case e.down:
|
|
174
|
+
s -= o;
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
if (s = L(s, 0, d.max), s !== R.value) return i.stopPropagation(), i.preventDefault(), f(n, s), f(r, s), s;
|
|
178
|
+
}
|
|
179
|
+
function Q(e, t) {
|
|
180
|
+
W.value || (d.allowHalf && t ? (B.value = t.offsetX * 2 <= H.value[e - 1], R.value = B.value ? e - .5 : e) : R.value = e, z.value = e);
|
|
181
|
+
}
|
|
182
|
+
function $() {
|
|
183
|
+
W.value || (d.allowHalf && (B.value = d.modelValue !== Math.floor(d.modelValue)), R.value = L(d.modelValue, 0, d.max), z.value = -1);
|
|
184
|
+
}
|
|
185
|
+
return P(() => d.modelValue, (e) => {
|
|
186
|
+
R.value = L(e, 0, d.max), B.value = d.modelValue !== Math.floor(d.modelValue);
|
|
187
|
+
}), d.modelValue || f(n, 0), c({
|
|
188
|
+
setCurrentValue: Q,
|
|
189
|
+
resetCurrentValue: $
|
|
190
|
+
}), (e, t) => {
|
|
191
|
+
var n;
|
|
192
|
+
return O(), S("div", {
|
|
193
|
+
id: M(y),
|
|
194
|
+
class: E([U.value, M(_).is("disabled", M(W))]),
|
|
195
|
+
role: "slider",
|
|
196
|
+
"aria-label": M(w) ? void 0 : i.ariaLabel || "rating",
|
|
197
|
+
"aria-labelledby": M(w) ? (n = M(p)) == null ? void 0 : n.labelId : void 0,
|
|
198
|
+
"aria-valuenow": R.value,
|
|
199
|
+
"aria-valuetext": G.value || void 0,
|
|
200
|
+
"aria-valuemin": "0",
|
|
201
|
+
"aria-valuemax": i.max,
|
|
202
|
+
style: D(le.value),
|
|
203
|
+
tabindex: M(W) ? void 0 : 0,
|
|
204
|
+
"aria-disabled": M(W),
|
|
205
|
+
onKeydown: he
|
|
206
|
+
}, [(O(!0), S(re, null, A(i.max, (e, t) => (O(), S("span", {
|
|
207
|
+
key: t,
|
|
208
|
+
class: E(M(_).e("item")),
|
|
209
|
+
onMousemove: (t) => Q(e, t),
|
|
210
|
+
onMouseleave: $,
|
|
211
|
+
onClick: (t) => me(e)
|
|
212
|
+
}, [C(M(m), {
|
|
213
|
+
ref_for: !0,
|
|
214
|
+
ref_key: "iconRefs",
|
|
215
|
+
ref: V,
|
|
216
|
+
class: E([
|
|
217
|
+
M(_).e("icon"),
|
|
218
|
+
{ hover: z.value === e },
|
|
219
|
+
M(_).is("active", e <= R.value),
|
|
220
|
+
M(_).is("focus-visible", e === Math.ceil(R.value || 1))
|
|
221
|
+
])
|
|
222
|
+
}, {
|
|
223
|
+
default: F(() => [
|
|
224
|
+
I((O(), x(j(pe.value), null, null, 512)), [[N, !X(e) && e <= R.value]]),
|
|
225
|
+
I((O(), x(j(Y.value), null, null, 512)), [[N, !X(e) && e > R.value]]),
|
|
226
|
+
I((O(), x(j(Y.value), { class: E([M(_).em("decimal", "box")]) }, null, 8, ["class"])), [[N, X(e)]]),
|
|
227
|
+
I(C(M(m), {
|
|
228
|
+
style: D(de.value),
|
|
229
|
+
class: E([M(_).e("icon"), M(_).e("decimal")])
|
|
230
|
+
}, {
|
|
231
|
+
default: F(() => [(O(), x(j(fe.value)))]),
|
|
232
|
+
_: 1
|
|
233
|
+
}, 8, ["style", "class"]), [[N, X(e)]])
|
|
234
|
+
]),
|
|
235
|
+
_: 2
|
|
236
|
+
}, 1032, ["class"])], 42, ce))), 128)), i.showText || i.showScore ? (O(), S("span", {
|
|
237
|
+
key: 0,
|
|
238
|
+
class: E(M(_).e("text")),
|
|
239
|
+
style: D({ color: i.textColor })
|
|
240
|
+
}, oe(G.value), 7)) : ie("v-if", !0)], 46, se);
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
}));
|
|
244
|
+
//#endregion
|
|
245
|
+
export { B as t };
|