@web-utils/form-ui 1.0.0-beta6 → 1.0.0-beta60
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.d.ts +52 -0
- package/address-input/index.js +2 -0
- package/address-input/style.css +1 -0
- package/affix/index.d.ts +32 -0
- package/affix/index.js +49 -0
- package/affix/style.css +1 -0
- package/api/index.d.ts +66 -0
- package/api/index.js +42 -0
- package/awesome-button/index.d.ts +60 -0
- package/awesome-button/index.js +49 -0
- package/base.css +1 -1
- package/capsule-tab/index.d.ts +22 -0
- package/capsule-tab/index.js +27 -0
- package/capsule-tab/style.css +1 -0
- package/card/index.d.ts +41 -0
- package/card/index.js +89 -0
- package/card/style.css +1 -0
- package/chunks/-DBJHzo8.js +195 -0
- package/chunks/2LWvhQd0.js +5 -0
- package/chunks/2rqr8Tbh.js +266 -0
- package/chunks/6yr_i3FT2.js +439 -0
- package/chunks/8_hjhnjH2.js +225 -0
- package/chunks/B-Uo-WTY2.js +5289 -0
- package/chunks/B-VO-y0h.js +69 -0
- package/chunks/B1EPd8qV.js +20 -0
- package/chunks/B2D06vEG.js +379 -0
- package/chunks/B7FF1FxW2.js +1800 -0
- package/chunks/B7IZdKDn.js +275 -0
- package/chunks/BCLWjhEJ.js +18 -0
- package/chunks/BGCX5eZn.js +590 -0
- package/chunks/BIEgauMd.js +1275 -0
- package/chunks/BJQI5s6-.js +449 -0
- package/chunks/BLiwTT_i2.js +4 -0
- package/chunks/BMuH4fKH.js +208 -0
- package/chunks/BPT6FWFK2.js +621 -0
- package/chunks/BTBp2urE.js +4 -0
- package/chunks/BVAen7xV2.js +233 -0
- package/chunks/BVQMbnV7.js +54 -0
- package/chunks/BWTWKgRC2.js +108 -0
- package/chunks/BamrxTuc2.js +514 -0
- package/chunks/BbrkKcOy.js +214 -0
- package/chunks/BdEgzMLy.js +34 -0
- package/chunks/Be3-Nwsb.js +68 -0
- package/chunks/Beh1v279.js +132 -0
- package/chunks/BgzF6a9b.js +577 -0
- package/chunks/BjACtWY92.js +26 -0
- package/chunks/BjUVecZ_.js +1094 -0
- package/chunks/BjwA4s46.js +17 -0
- package/chunks/Bkt5jwQ4.js +479 -0
- package/chunks/Bmzc6Sbs2.js +60 -0
- package/chunks/BoMy4B-G.js +230 -0
- package/chunks/BoOLX_Ey2.js +1038 -0
- package/chunks/Boq1bhQA.js +17 -0
- package/chunks/BpYC6Tu9.js +222 -0
- package/chunks/BqmuTTT4.js +63 -0
- package/chunks/BrgApSXu2.js +6 -0
- package/chunks/Bs7_SRve.js +57 -0
- package/chunks/BsfOPm1B2.js +106 -0
- package/chunks/BtPj4Jsp2.js +42 -0
- package/chunks/BtonI3XP.js +461 -0
- package/chunks/Bu-59cNv2.js +41 -0
- package/chunks/BvtVUXOb2.js +273 -0
- package/chunks/BwqV8Rv9.js +609 -0
- package/chunks/BxpuH2XL2.js +346 -0
- package/chunks/BykQpC2D.js +42 -0
- package/chunks/C-P8DAWg.js +26 -0
- package/chunks/C-i5OhEv.js +12 -0
- package/chunks/C0IscOmB.js +15 -0
- package/chunks/C5lEU74h2.js +46 -0
- package/chunks/C6-wRuOv.js +5 -0
- package/chunks/CDEhu4Hw2.js +58 -0
- package/chunks/CIoHpVna.js +25 -0
- package/chunks/CKF4NcjP2.js +161 -0
- package/chunks/COm5LruT.js +641 -0
- package/chunks/CP45VB0l2.js +4 -0
- package/chunks/CPlMW0nU.js +41 -0
- package/chunks/CQNKF-Y5.js +279 -0
- package/chunks/CZ8fWKCR.js +196 -0
- package/chunks/CZgfv08Q2.js +88 -0
- package/chunks/C_WXMlg42.js +1354 -0
- package/chunks/ChC6aRuE2.js +26 -0
- package/chunks/CkkEsDyG.js +17 -0
- package/chunks/Cll5nIzw.js +465 -0
- package/chunks/CmQBhb4F.js +14 -0
- package/chunks/CuVxnUGN.js +13 -0
- package/chunks/CxYWt6f52.js +8 -0
- package/chunks/CzjXqsNz2.js +1093 -0
- package/chunks/D1bdDHti.js +3091 -0
- package/chunks/D4vS0dLK2.js +110 -0
- package/chunks/D63r1Mj-2.js +27 -0
- package/chunks/D73tXuJP.js +98 -0
- package/chunks/DANCDark2.js +299 -0
- package/chunks/DCHGC-wv.js +644 -0
- package/chunks/DDpTDpl_.js +64 -0
- package/chunks/DEBzRzs62.js +2430 -0
- package/chunks/DF3tDDui2.js +24 -0
- package/chunks/DGDjsgmi2.js +67 -0
- package/chunks/DGDoWF7A2.js +243 -0
- package/chunks/DGOYYEkS2.js +33 -0
- package/chunks/DGSETzHz2.js +36 -0
- package/chunks/DIu4j2rA2.js +30 -0
- package/chunks/DJnkQG-Q.js +105 -0
- package/chunks/DKCe2nDe.js +47 -0
- package/chunks/DPLXkmFh.js +217 -0
- package/chunks/DQdBwuTr.js +17 -0
- package/chunks/DUbcVQBq.js +250 -0
- package/chunks/D_gajPwn2.js +60 -0
- package/chunks/D_j9foN9.js +17 -0
- package/chunks/DaBPfr252.js +96 -0
- package/chunks/Db0J1lN72.js +383 -0
- package/chunks/DcDUyJSx2.js +49 -0
- package/chunks/DdDO4YD2.js +281 -0
- package/chunks/DdW8XqoW.js +21 -0
- package/chunks/DfdoBqSD.js +6 -0
- package/chunks/DgbDv9To.js +454 -0
- package/chunks/DiB3ANPI2.js +525 -0
- package/chunks/DkBjJMFf2.js +34 -0
- package/chunks/DkkdixR-.js +732 -0
- package/chunks/Dn11MvZp.js +60 -0
- package/chunks/Do-8eHRr2.js +936 -0
- package/chunks/DoCrd-hR.js +52 -0
- package/chunks/DqI4lZin.js +37 -0
- package/chunks/DqgSQ3KG2.js +418 -0
- package/chunks/DqttRbt0.js +8 -0
- package/chunks/DuuoytDu.js +25 -0
- package/chunks/Dw_RxmrB2.js +26 -0
- package/chunks/DxrV8nwF2.js +28 -0
- package/chunks/Dyeav-c7.js +446 -0
- package/chunks/DyqdbtLs.js +295 -0
- package/chunks/IfmR2wc6.js +207 -0
- package/chunks/J-HPb14D.js +35 -0
- package/chunks/RAYFV7z_2.js +105 -0
- package/chunks/SCjrrbwI.js +194 -0
- package/chunks/TU6zhStX.js +40 -0
- package/chunks/TziUPXJy.js +46 -0
- package/chunks/VufM4po6.js +98 -0
- package/chunks/Xdb_3Me6.js +48 -0
- package/chunks/YLwDmpE6.js +197 -0
- package/chunks/ZdU9-d3W2.js +94 -0
- package/chunks/_6lMlbOl2.js +87 -0
- package/chunks/_DT9bjOz.js +182 -0
- package/chunks/_MqUwxIX2.js +145 -0
- package/chunks/a1C-V5Od.js +89 -0
- package/chunks/byLw7vSU.js +188 -0
- package/chunks/f2NKal5o.js +66 -0
- package/chunks/fICCbPEl.js +406 -0
- package/chunks/gFFZEYaV.js +1919 -0
- package/chunks/itbzUWg4.js +4 -0
- package/chunks/kPKqEDo-.js +588 -0
- package/chunks/o8iIIG7B.js +1328 -0
- package/chunks/xfxHgkQu2.js +31 -0
- package/code-mirror-editor/index.d.ts +50 -0
- package/code-mirror-editor/index.js +99 -0
- package/code-mirror-editor/style.css +1 -0
- package/confirm-button/index.d.ts +122 -0
- package/confirm-button/index.js +35 -0
- package/confirmable/index.d.ts +93 -0
- package/confirmable/index.js +8 -0
- package/constants/index.d.ts +73 -0
- package/constants/index.js +4 -0
- package/context-menu/index.d.ts +183 -0
- package/context-menu/index.js +196 -0
- package/context-menu/style.css +1 -0
- package/count-up/index.d.ts +70 -0
- package/count-up/index.js +94 -0
- package/custom-scrollbar/index.d.ts +49 -0
- package/custom-scrollbar/index.js +93 -0
- package/data-box/index.d.ts +19 -0
- package/data-box/index.js +68 -0
- package/data-box/style.css +1 -0
- package/data-card/index.d.ts +20 -0
- package/data-card/index.js +63 -0
- package/data-card/style.css +1 -0
- package/data-card-text/index.d.ts +21 -0
- package/data-card-text/index.js +67 -0
- package/data-card-text/style.css +1 -0
- package/data-display/index.d.ts +20 -0
- package/data-display/index.js +73 -0
- package/data-display/style.css +1 -0
- package/data-icons/index.d.ts +21 -0
- package/data-icons/index.js +74 -0
- package/data-icons/style.css +1 -0
- package/data-imgtext/index.d.ts +18 -0
- package/data-imgtext/index.js +71 -0
- package/data-imgtext/style.css +1 -0
- package/data-operatext/index.d.ts +17 -0
- package/data-operatext/index.js +54 -0
- package/data-operatext/style.css +1 -0
- package/data-panel/index.d.ts +19 -0
- package/data-panel/index.js +61 -0
- package/data-panel/style.css +1 -0
- package/data-pay/index.d.ts +19 -0
- package/data-pay/index.js +110 -0
- package/data-pay/style.css +1 -0
- package/data-price/index.d.ts +17 -0
- package/data-price/index.js +51 -0
- package/data-price/style.css +1 -0
- package/data-progress/index.d.ts +19 -0
- package/data-progress/index.js +72 -0
- package/data-progress/style.css +1 -0
- package/data-rotate/index.d.ts +19 -0
- package/data-rotate/index.js +65 -0
- package/data-rotate/style.css +1 -0
- package/data-table-picker/index.d.ts +61 -0
- package/data-table-picker/index.js +118 -0
- package/data-tabs/index.d.ts +19 -0
- package/data-tabs/index.js +71 -0
- package/data-tabs/style.css +1 -0
- package/dict-render/index.d.ts +28 -0
- package/dict-render/index.js +2 -0
- package/e-charts/index.d.ts +79 -0
- package/e-charts/index.js +179 -0
- package/e-charts/style.css +1 -0
- package/easy-popup/index.d.ts +114 -0
- package/easy-popup/index.js +92 -0
- package/easy-popup/style.css +1 -0
- package/editable-progress/index.d.ts +68 -0
- package/editable-progress/index.js +120 -0
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.d.ts +281 -0
- package/editable-tree/index.js +2 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +341 -18
- package/element-dialog/index.js +2 -0
- package/element-dialog/style.css +1 -1
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- package/element-resize-observer/index.d.ts +8 -0
- package/element-resize-observer/index.js +40 -0
- package/element-resize-observer/style.css +1 -0
- package/empty-view/index.d.ts +2 -2
- package/empty-view/{index.mjs → index.js} +1 -1
- package/error-view/index.d.ts +25 -0
- package/error-view/index.js +37 -0
- package/error-view/style.css +1 -0
- package/flex-box/index.d.ts +44 -0
- package/flex-box/index.js +2 -0
- package/flex-column/index.d.ts +41 -0
- package/flex-column/index.js +2 -0
- package/flex-item/index.d.ts +77 -0
- package/flex-item/index.js +2 -0
- package/flex-row/index.d.ts +41 -0
- package/flex-row/index.js +2 -0
- package/flex-scroll-area/index.d.ts +1 -1
- package/flex-scroll-area/{index.mjs → index.js} +1 -1
- package/flex-scroller/index.d.ts +26 -0
- package/flex-scroller/index.js +29 -0
- package/flex-scroller/style.css +1 -0
- package/flow-designer/index.d.ts +353 -0
- package/flow-designer/index.js +2 -0
- package/flow-designer/style.css +1 -0
- package/flow-viewer/index.d.ts +62 -0
- package/flow-viewer/index.js +159 -0
- package/flow-viewer/style.css +1 -0
- package/form-advice/index.js +29 -0
- package/form-button/index.d.ts +123 -0
- package/form-button/index.js +36 -0
- package/form-card/index.d.ts +14 -0
- package/form-card/index.js +18 -0
- package/form-cascader/index.d.ts +478 -0
- package/form-cascader/index.js +2 -0
- package/form-checkbox/index.d.ts +253 -20
- package/form-checkbox/index.js +2 -0
- package/form-checkbox-group/index.d.ts +373 -0
- package/form-checkbox-group/index.js +2 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.d.ts +404 -21
- package/form-date-picker/index.js +2 -0
- package/form-holder/index.d.ts +89 -22
- package/form-holder/index.js +2 -0
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +153 -15
- package/form-image/index.js +2 -0
- package/form-input/index.d.ts +309 -22
- package/form-input/index.js +2 -0
- package/form-input/style.css +1 -0
- package/form-input-cron-expression/index.d.ts +223 -0
- package/form-input-cron-expression/index.js +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +315 -18
- package/form-input-email/index.js +2 -0
- package/form-input-id-card/index.d.ts +315 -18
- package/form-input-id-card/index.js +2 -0
- package/form-input-number/index.d.ts +254 -20
- package/form-input-number/index.js +2 -0
- package/form-input-phone-number/index.d.ts +315 -18
- package/form-input-phone-number/index.js +2 -0
- package/form-input-tag/index.d.ts +269 -1
- package/form-input-tag/index.js +2 -0
- package/form-input-time/index.d.ts +440 -1
- package/form-input-time/index.js +2 -0
- package/form-item-config-provider/index.d.ts +40 -0
- package/form-item-config-provider/index.js +24 -0
- package/form-item-group/index.d.ts +91 -17
- package/form-item-group/index.js +2 -0
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +149 -13
- package/form-item-x/index.js +2 -0
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +313 -20
- package/form-radio-group/index.js +2 -0
- package/form-rate/index.d.ts +262 -16
- package/form-rate/index.js +2 -0
- package/form-red-table/index.js +65 -0
- package/form-row/index.d.ts +2 -2
- package/form-row/index.js +2 -0
- package/form-select/index.d.ts +545 -20
- package/form-select/index.js +2 -0
- package/form-slider/index.d.ts +291 -18
- package/form-slider/index.js +2 -0
- package/form-switch/index.d.ts +282 -18
- package/form-switch/index.js +2 -0
- package/form-table/index.d.ts +287 -0
- package/form-table/index.js +2 -0
- package/form-table-plus/index.d.ts +266 -0
- package/form-table-plus/index.js +2 -0
- package/form-text/index.d.ts +173 -15
- package/form-text/index.js +2 -0
- package/form-textarea/index.d.ts +351 -0
- package/form-textarea/index.js +2 -0
- package/form-time-select/index.d.ts +325 -0
- package/form-time-select/index.js +2 -0
- package/form-tree-select/index.d.ts +715 -0
- package/form-tree-select/index.js +2 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.d.ts +717 -0
- package/form-tree-select-multiple/index.js +2 -0
- package/form-view/index.d.ts +225 -1
- package/form-view/index.js +283 -0
- package/form-view/style.css +1 -0
- package/guide-steps/index.d.ts +31 -0
- package/guide-steps/index.js +2 -0
- package/guide-steps/style.css +1 -0
- package/helper/dictionary.d.ts +29 -0
- package/helper/dictionary.js +97 -0
- package/helper/form-item.d.ts +17 -0
- package/helper/form-item.js +27 -0
- package/helper/input.d.ts +47 -0
- package/helper/input.js +2 -0
- package/helper/sub-table-plus.d.ts +98 -0
- package/helper/sub-table-plus.js +4 -0
- package/highlight-j-s/index.d.ts +18 -0
- package/highlight-j-s/index.js +51 -0
- package/highlight-j-s/style.css +1 -0
- package/hook/useDictionary.d.ts +60 -0
- package/hook/useDictionary.js +15 -0
- package/hook/useVisibilityChange.d.ts +4 -0
- package/hook/useVisibilityChange.js +14 -0
- package/iframe-window/index.d.ts +9 -0
- package/iframe-window/index.js +37 -0
- package/iframe-window/style.css +1 -0
- package/image-cropper/index.d.ts +365 -0
- package/image-cropper/index.js +155 -0
- package/image-cropper/style.css +1 -0
- package/image-preview/index.d.ts +213 -0
- package/image-preview/index.js +2 -0
- package/image-preview/style.css +1 -0
- package/image-viewer/index.d.ts +25 -0
- package/image-viewer/index.js +70 -0
- package/image-viewer/style.css +1 -0
- package/index.css +2 -0
- package/index.d.ts +121 -36
- package/index.js +125 -0
- package/input-number-range/index.d.ts +41 -0
- package/input-number-range/index.js +76 -0
- package/input-number-range/style.css +1 -0
- package/keyboard/index.d.ts +64 -0
- package/keyboard/index.js +2 -0
- package/keyboard/style.css +1 -0
- package/loading-view/index.d.ts +65 -0
- package/loading-view/index.js +39 -0
- package/loading-view/style.css +1 -0
- package/name-avatar/index.d.ts +62 -0
- package/name-avatar/index.js +61 -0
- package/name-avatar/style.css +1 -0
- package/nav-bar/index.d.ts +21 -0
- package/nav-bar/index.js +36 -0
- package/nav-bar/style.css +1 -0
- package/package.json +25 -5
- package/page/index.d.ts +21 -0
- package/page/index.js +17 -0
- package/page/style.css +1 -0
- package/page-header/index.d.ts +27 -0
- package/page-header/index.js +25 -0
- package/page-header/style.css +1 -0
- package/page-index/index.d.ts +82 -0
- package/page-index/index.js +123 -0
- package/page-index/style.css +1 -0
- package/page-index-top/index.d.ts +38 -0
- package/page-index-top/index.js +85 -0
- package/page-skeleton/index.d.ts +30 -0
- package/page-skeleton/index.js +44 -0
- package/page-skeleton/style.css +1 -0
- package/page-skeleton-new/index.d.ts +34 -0
- package/page-skeleton-new/index.js +80 -0
- package/page-skeleton-new/style.css +1 -0
- package/pageable-table/index.d.ts +400 -0
- package/pageable-table/index.js +2 -0
- package/pageable-table/style.css +1 -0
- package/photo-swipe/index.d.ts +18 -0
- package/photo-swipe/index.js +2 -0
- package/props/cascader.d.ts +326 -0
- package/props/cascader.js +145 -0
- package/props/checkbox-group.d.ts +213 -0
- package/props/checkbox-group.js +83 -0
- package/props/checkbox.d.ts +205 -0
- package/props/checkbox.js +74 -0
- package/props/col.d.ts +74 -0
- package/props/col.js +32 -0
- package/props/common.d.ts +114 -0
- package/props/common.js +18 -0
- package/props/date.d.ts +339 -0
- package/props/date.js +145 -0
- package/props/form-item.d.ts +144 -0
- package/props/form-item.js +73 -0
- package/props/form.d.ts +157 -0
- package/props/form.js +89 -0
- package/props/image.d.ts +102 -0
- package/props/image.js +10 -0
- package/props/input-cron.d.ts +102 -0
- package/props/input-cron.js +16 -0
- package/props/input-number.d.ts +216 -0
- package/props/input-number.js +72 -0
- package/props/input-tag.d.ts +123 -0
- package/props/input-tag.js +33 -0
- package/props/input.d.ts +299 -0
- package/props/input.js +97 -0
- package/props/radio-group.d.ts +205 -0
- package/props/radio-group.js +84 -0
- package/props/rate.d.ts +211 -0
- package/props/rate.js +66 -0
- package/props/select.d.ts +450 -0
- package/props/select.js +218 -0
- package/props/slide.d.ts +235 -0
- package/props/slide.js +72 -0
- package/props/switch.d.ts +229 -0
- package/props/switch.js +80 -0
- package/props/text.d.ts +127 -0
- package/props/text.js +22 -0
- package/props/textarea.d.ts +266 -0
- package/props/textarea.js +82 -0
- package/props/time-select.d.ts +216 -0
- package/props/time-select.js +67 -0
- package/props/time.d.ts +304 -0
- package/props/time.js +138 -0
- package/props/tree-select-multiple.d.ts +324 -0
- package/props/tree-select-multiple.js +16 -0
- package/props/tree-select.d.ts +326 -0
- package/props/tree-select.js +25 -0
- package/props/tree.d.ts +76 -0
- package/props/tree.js +75 -0
- package/props/vue-tree-select.d.ts +458 -0
- package/props/vue-tree-select.js +213 -0
- package/resolver/index.js +29 -0
- package/sign-panel/index.d.ts +85 -0
- package/sign-panel/index.js +183 -0
- package/sign-panel/style.css +1 -0
- package/skeleton-panel/index.d.ts +27 -0
- package/skeleton-panel/index.js +37 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.d.ts +106 -0
- package/split-pane/index.js +2 -0
- package/split-pane/style.css +1 -0
- package/stateful/index.d.ts +92 -0
- package/stateful/index.js +67 -0
- package/stateful/style.css +1 -0
- package/sub-table/index.d.ts +109 -0
- package/sub-table/index.js +2 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.d.ts +109 -0
- package/sub-table-plus/index.js +2 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.d.ts +27 -0
- package/swiper/index.js +126 -0
- package/swiper/style.css +1 -0
- package/table-column/index.d.ts +163 -0
- package/table-column/index.js +2 -0
- package/table-column/style.css +1 -0
- package/table-column-def/index.d.ts +97 -0
- package/table-column-def/index.js +11 -0
- package/table-view/index.d.ts +345 -1
- package/table-view/index.js +471 -0
- package/table-view/style.css +1 -0
- package/tag-render/index.d.ts +48 -0
- package/tag-render/index.js +86 -0
- package/tag-render/style.css +1 -0
- package/text-ellipsis/index.d.ts +111 -0
- package/text-ellipsis/index.js +124 -0
- package/text-ellipsis/style.css +1 -0
- package/toolbar/index.d.ts +128 -1
- package/toolbar/index.js +2 -0
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +188 -1
- package/toolbar-button/index.js +2 -0
- package/toolbar-button/style.css +1 -0
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.js +2 -0
- package/vue-cron/style.css +1 -0
- package/vue-qr-code/index.d.ts +47 -0
- package/vue-qr-code/index.js +32 -0
- package/vue-tags-input/index.d.ts +373 -0
- package/vue-tags-input/index.js +350 -0
- package/vue-tags-input/style.css +1 -0
- package/vue-tree-select/index.d.ts +1489 -0
- package/vue-tree-select/index.js +2 -0
- package/vue-tree-select/style.css +1 -0
- package/vue-video-player/index.d.ts +117 -0
- package/vue-video-player/index.js +136 -0
- package/vue-video-player/style.css +1 -0
- package/watermark/index.d.ts +97 -0
- package/watermark/index.js +2 -0
- package/watermark/style.css +1 -0
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/x-input-tag/index.js +232 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.js +2 -0
- package/year-calendar/style.css +1 -0
- package/chunks/B4M_TFeR.mjs +0 -152
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BHNKrW1j.mjs +0 -61
- package/chunks/BO9jWhBl.mjs +0 -46
- package/chunks/BZ8aOa78.mjs +0 -35
- package/chunks/Bsz7y4Xp.mjs +0 -73
- package/chunks/Bxj372sF.mjs +0 -53
- package/chunks/C33EmJN8.mjs +0 -32
- package/chunks/C6Li3-l7.mjs +0 -28
- package/chunks/CBcdalMX.mjs +0 -35
- package/chunks/CdRsyF0n.mjs +0 -43
- package/chunks/ClNahmiU.mjs +0 -23
- package/chunks/CstztYMu.mjs +0 -28
- package/chunks/DC9b53M6.mjs +0 -32
- package/chunks/DDVAgRED.mjs +0 -36
- package/chunks/DpJQABVD.mjs +0 -91
- package/chunks/ZsLNWI9x.mjs +0 -46
- package/chunks/jn_iQrVZ.mjs +0 -28
- package/constants.d.ts +0 -1
- package/constants.mjs +0 -4
- package/element-dialog/index.mjs +0 -91
- package/form-advice/index.mjs +0 -28
- package/form-check-box-group/index.d.ts +0 -93
- package/form-check-box-group/index.mjs +0 -2
- package/form-checkbox/index.mjs +0 -2
- package/form-date-picker/index.mjs +0 -2
- package/form-holder/index.mjs +0 -2
- package/form-image/index.mjs +0 -2
- package/form-input/index.mjs +0 -2
- package/form-input-email/index.mjs +0 -2
- package/form-input-id-card/index.mjs +0 -2
- package/form-input-number/index.mjs +0 -2
- package/form-input-phone-number/index.mjs +0 -2
- package/form-input-tag/index.mjs +0 -4
- package/form-input-time/index.mjs +0 -4
- package/form-item-group/index.mjs +0 -78
- package/form-item-x/index.mjs +0 -2
- package/form-radio-group/index.mjs +0 -2
- package/form-rate/index.mjs +0 -2
- package/form-red-table/index.mjs +0 -64
- package/form-row/index.mjs +0 -2
- package/form-select/index.mjs +0 -2
- package/form-slider/index.mjs +0 -2
- package/form-switch/index.mjs +0 -2
- package/form-text/index.mjs +0 -2
- package/form-view/index.mjs +0 -9
- package/index.mjs +0 -63
- package/input/style.css +0 -1
- package/resolver.mjs +0 -79
- package/table-view/index.mjs +0 -9
- package/toolbar/index.mjs +0 -9
- package/toolbar-button/index.mjs +0 -9
- /package/form-cell/{index.mjs → index.js} +0 -0
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
import { i as e, n as t } from "./BykQpC2D.js";
|
|
2
|
+
import { n, r, t as i } from "./BTBp2urE.js";
|
|
3
|
+
import { r as a } from "./BCLWjhEJ.js";
|
|
4
|
+
import { _ as o, n as s, t as c } from "./fICCbPEl.js";
|
|
5
|
+
import { E as l, M as u, g as d, l as f, s as p, t as m, u as h } from "./D73tXuJP.js";
|
|
6
|
+
import { n as g } from "./byLw7vSU.js";
|
|
7
|
+
import { a as _, t as v } from "./gFFZEYaV.js";
|
|
8
|
+
import { i as y, n as b, r as x, t as S } from "./Xdb_3Me6.js";
|
|
9
|
+
import { t as C } from "./Boq1bhQA.js";
|
|
10
|
+
import { t as w } from "./B7IZdKDn.js";
|
|
11
|
+
import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createVNode as j, defineComponent as M, h as N, inject as ee, nextTick as P, normalizeClass as F, normalizeStyle as I, onMounted as L, openBlock as R, provide as te, reactive as z, ref as B, renderList as V, shallowRef as ne, toDisplayString as re, toRefs as H, unref as U, watch as W, watchEffect as G, withCtx as K, withModifiers as q } from "vue";
|
|
12
|
+
import { clamp as J, debounce as ie } from "lodash-unified";
|
|
13
|
+
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/slider/src/constants.mjs
|
|
14
|
+
var ae = Symbol("sliderContextKey"), Y = f({
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: h([Number, Array]),
|
|
17
|
+
default: 0
|
|
18
|
+
},
|
|
19
|
+
id: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
min: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 0
|
|
26
|
+
},
|
|
27
|
+
max: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 100
|
|
30
|
+
},
|
|
31
|
+
step: {
|
|
32
|
+
type: h([Number, String]),
|
|
33
|
+
default: 1
|
|
34
|
+
},
|
|
35
|
+
showInput: Boolean,
|
|
36
|
+
showInputControls: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !0
|
|
39
|
+
},
|
|
40
|
+
size: a,
|
|
41
|
+
inputSize: a,
|
|
42
|
+
showStops: Boolean,
|
|
43
|
+
showTooltip: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !0
|
|
46
|
+
},
|
|
47
|
+
formatTooltip: {
|
|
48
|
+
type: h(Function),
|
|
49
|
+
default: void 0
|
|
50
|
+
},
|
|
51
|
+
disabled: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: void 0
|
|
54
|
+
},
|
|
55
|
+
range: Boolean,
|
|
56
|
+
vertical: Boolean,
|
|
57
|
+
height: String,
|
|
58
|
+
rangeStartLabel: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: void 0
|
|
61
|
+
},
|
|
62
|
+
rangeEndLabel: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: void 0
|
|
65
|
+
},
|
|
66
|
+
formatValueText: {
|
|
67
|
+
type: h(Function),
|
|
68
|
+
default: void 0
|
|
69
|
+
},
|
|
70
|
+
tooltipClass: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: void 0
|
|
73
|
+
},
|
|
74
|
+
placement: {
|
|
75
|
+
type: String,
|
|
76
|
+
values: _,
|
|
77
|
+
default: "top"
|
|
78
|
+
},
|
|
79
|
+
marks: { type: h(Object) },
|
|
80
|
+
validateEvent: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: !0
|
|
83
|
+
},
|
|
84
|
+
persistent: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: !0
|
|
87
|
+
},
|
|
88
|
+
...C(["ariaLabel"])
|
|
89
|
+
}), X = (e) => d(e) || l(e) && e.every(d), oe = {
|
|
90
|
+
[r]: X,
|
|
91
|
+
[n]: X,
|
|
92
|
+
[i]: X
|
|
93
|
+
}, se = (e, t, n) => {
|
|
94
|
+
let r = B();
|
|
95
|
+
return L(async () => {
|
|
96
|
+
e.range ? (l(e.modelValue) ? (t.firstValue = Math.max(e.min, e.modelValue[0]), t.secondValue = Math.min(e.max, e.modelValue[1])) : (t.firstValue = e.min, t.secondValue = e.max), t.oldValue = [t.firstValue, t.secondValue]) : (!d(e.modelValue) || Number.isNaN(e.modelValue) ? t.firstValue = e.min : t.firstValue = Math.min(e.max, Math.max(e.min, e.modelValue)), t.oldValue = t.firstValue), o(window, "resize", n), await P(), n();
|
|
97
|
+
}), { sliderWrapper: r };
|
|
98
|
+
}, ce = (e) => {
|
|
99
|
+
let t = E(() => e.marks ? Object.keys(e.marks).map(Number.parseFloat).sort((e, t) => e - t).filter((t) => t <= e.max && t >= e.min).map((t) => ({
|
|
100
|
+
point: t,
|
|
101
|
+
position: (t - e.min) * 100 / (e.max - e.min),
|
|
102
|
+
mark: e.marks[t]
|
|
103
|
+
})) : []);
|
|
104
|
+
return G(() => {
|
|
105
|
+
if (e.step === "mark" && !e.marks && c("ElSlider", "marks prop must be provided when step is mark"), e.marks) {
|
|
106
|
+
let n = Object.keys(e.marks), r = t.value.map((e) => e.point), i = n.filter((e) => {
|
|
107
|
+
let t = Number.parseFloat(e);
|
|
108
|
+
return Number.isNaN(t) || !r.includes(t);
|
|
109
|
+
});
|
|
110
|
+
i.length > 0 && c("ElSlider", `Some marks keys are invalid (not a number or out of [min, max]): [${i.map((e) => `'${e}'`).join(", ")}] and will be ignored.`);
|
|
111
|
+
}
|
|
112
|
+
}), t;
|
|
113
|
+
}, le = (e, t, a) => {
|
|
114
|
+
let { formItem: o } = S(), s = ne(), c = B(), l = B(), u = {
|
|
115
|
+
firstButton: c,
|
|
116
|
+
secondButton: l
|
|
117
|
+
}, d = x(), f = E(() => Math.min(t.firstValue, t.secondValue)), p = E(() => Math.max(t.firstValue, t.secondValue)), m = E(() => e.range ? `${100 * (p.value - f.value) / (e.max - e.min)}%` : `${100 * (t.firstValue - e.min) / (e.max - e.min)}%`), h = E(() => e.range ? `${100 * (f.value - e.min) / (e.max - e.min)}%` : "0%"), g = E(() => e.vertical ? { height: e.height } : {}), _ = E(() => e.vertical ? {
|
|
118
|
+
height: m.value,
|
|
119
|
+
bottom: h.value
|
|
120
|
+
} : {
|
|
121
|
+
width: m.value,
|
|
122
|
+
left: h.value
|
|
123
|
+
}), v = () => {
|
|
124
|
+
s.value && (t.sliderSize = s.value.getBoundingClientRect()[e.vertical ? "height" : "width"]);
|
|
125
|
+
}, y = (n) => {
|
|
126
|
+
let r = e.min + n * (e.max - e.min) / 100;
|
|
127
|
+
if (!e.range) return c;
|
|
128
|
+
let i;
|
|
129
|
+
return i = Math.abs(f.value - r) < Math.abs(p.value - r) ? t.firstValue < t.secondValue ? "firstButton" : "secondButton" : t.firstValue > t.secondValue ? "firstButton" : "secondButton", u[i];
|
|
130
|
+
}, b = (e) => {
|
|
131
|
+
let t = y(e);
|
|
132
|
+
return t.value.setPosition(e), t;
|
|
133
|
+
}, C = (n) => {
|
|
134
|
+
t.firstValue = n ?? e.min, T(e.range ? [f.value, p.value] : n ?? e.min);
|
|
135
|
+
}, w = (n) => {
|
|
136
|
+
t.secondValue = n, e.range && T([f.value, p.value]);
|
|
137
|
+
}, T = (e) => {
|
|
138
|
+
a(r, e), a(n, e);
|
|
139
|
+
}, D = async () => {
|
|
140
|
+
await P(), a(i, e.range ? [f.value, p.value] : e.modelValue);
|
|
141
|
+
}, O = (n) => {
|
|
142
|
+
var r;
|
|
143
|
+
if (d.value || t.dragging) return;
|
|
144
|
+
v();
|
|
145
|
+
let i = 0;
|
|
146
|
+
if (e.vertical) {
|
|
147
|
+
var a;
|
|
148
|
+
let e = ((a = n.touches) == null || (a = a.item(0)) == null ? void 0 : a.clientY) ?? n.clientY;
|
|
149
|
+
i = (s.value.getBoundingClientRect().bottom - e) / t.sliderSize * 100;
|
|
150
|
+
} else i = ((((r = n.touches) == null || (r = r.item(0)) == null ? void 0 : r.clientX) ?? n.clientX) - s.value.getBoundingClientRect().left) / t.sliderSize * 100;
|
|
151
|
+
if (!(i < 0 || i > 100)) return b(i);
|
|
152
|
+
};
|
|
153
|
+
return {
|
|
154
|
+
elFormItem: o,
|
|
155
|
+
slider: s,
|
|
156
|
+
firstButton: c,
|
|
157
|
+
secondButton: l,
|
|
158
|
+
sliderDisabled: d,
|
|
159
|
+
minValue: f,
|
|
160
|
+
maxValue: p,
|
|
161
|
+
runwayStyle: g,
|
|
162
|
+
barStyle: _,
|
|
163
|
+
resetSize: v,
|
|
164
|
+
setPosition: b,
|
|
165
|
+
emitChange: D,
|
|
166
|
+
onSliderWrapperPrevent: (e) => {
|
|
167
|
+
var t, n;
|
|
168
|
+
((t = u.firstButton.value) != null && t.dragging || (n = u.secondButton.value) != null && n.dragging) && e.preventDefault();
|
|
169
|
+
},
|
|
170
|
+
onSliderClick: (e) => {
|
|
171
|
+
O(e) && D();
|
|
172
|
+
},
|
|
173
|
+
onSliderDown: async (e) => {
|
|
174
|
+
let t = O(e);
|
|
175
|
+
t && (await P(), t.value.onButtonDown(e));
|
|
176
|
+
},
|
|
177
|
+
onSliderMarkerDown: (e) => {
|
|
178
|
+
d.value || t.dragging || b(e) && D();
|
|
179
|
+
},
|
|
180
|
+
setFirstValue: C,
|
|
181
|
+
setSecondValue: w
|
|
182
|
+
};
|
|
183
|
+
}, ue = (e, t, n, r) => ({
|
|
184
|
+
stops: E(() => {
|
|
185
|
+
if (!e.showStops || e.min > e.max) return [];
|
|
186
|
+
if (e.step === "mark" || e.step === 0) return e.step === 0 && c("ElSlider", "step should not be 0."), [];
|
|
187
|
+
let i = Math.ceil((e.max - e.min) / e.step), a = 100 * e.step / (e.max - e.min), o = Array.from({ length: i - 1 }).map((e, t) => (t + 1) * a);
|
|
188
|
+
return e.range ? o.filter((t) => t < 100 * (n.value - e.min) / (e.max - e.min) || t > 100 * (r.value - e.min) / (e.max - e.min)) : o.filter((n) => n > 100 * (t.firstValue - e.min) / (e.max - e.min));
|
|
189
|
+
}),
|
|
190
|
+
getStopStyle: (t) => e.vertical ? { bottom: `${t}%` } : { left: `${t}%` }
|
|
191
|
+
}), de = (e, t, i, a, o, u) => {
|
|
192
|
+
let f = (e) => {
|
|
193
|
+
o(r, e), o(n, e);
|
|
194
|
+
}, p = () => e.range ? ![i.value, a.value].every((e, n) => e === t.oldValue[n]) : e.modelValue !== t.oldValue, m = () => {
|
|
195
|
+
e.min > e.max && s("Slider", "min should not be greater than max.");
|
|
196
|
+
let n = e.modelValue;
|
|
197
|
+
if (e.range && l(n)) {
|
|
198
|
+
if (n[1] < e.min) f([e.min, e.min]);
|
|
199
|
+
else if (n[0] > e.max) f([e.max, e.max]);
|
|
200
|
+
else if (n[0] < e.min) f([e.min, n[1]]);
|
|
201
|
+
else if (n[1] > e.max) f([n[0], e.max]);
|
|
202
|
+
else if (t.firstValue = n[0], t.secondValue = n[1], p()) {
|
|
203
|
+
var r;
|
|
204
|
+
e.validateEvent && (u == null || (r = u.validate) == null || r.call(u, "change").catch((e) => c(e))), t.oldValue = n.slice();
|
|
205
|
+
}
|
|
206
|
+
} else if (!e.range && d(n) && !Number.isNaN(n)) {
|
|
207
|
+
if (n < e.min) f(e.min);
|
|
208
|
+
else if (n > e.max) f(e.max);
|
|
209
|
+
else if (t.firstValue = n, p()) {
|
|
210
|
+
var i;
|
|
211
|
+
e.validateEvent && (u == null || (i = u.validate) == null || i.call(u, "change").catch((e) => c(e))), t.oldValue = n;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
m(), W(() => t.dragging, (e) => {
|
|
216
|
+
e || m();
|
|
217
|
+
}), W(() => e.modelValue, (e, n) => {
|
|
218
|
+
t.dragging || l(e) && l(n) && e.every((e, t) => e === n[t]) && t.firstValue === e[0] && t.secondValue === e[1] || m();
|
|
219
|
+
}, { deep: !0 }), W(() => [e.min, e.max], () => {
|
|
220
|
+
m();
|
|
221
|
+
});
|
|
222
|
+
}, fe = (e, t, n) => {
|
|
223
|
+
let r = B(), i = B(!1), a = E(() => t.value instanceof Function);
|
|
224
|
+
return {
|
|
225
|
+
tooltip: r,
|
|
226
|
+
tooltipVisible: i,
|
|
227
|
+
formatValue: E(() => a.value && t.value(e.modelValue) || e.modelValue),
|
|
228
|
+
displayTooltip: ie(() => {
|
|
229
|
+
n.value && (i.value = !0);
|
|
230
|
+
}, 50),
|
|
231
|
+
hideTooltip: ie(() => {
|
|
232
|
+
n.value && (i.value = !1);
|
|
233
|
+
}, 50)
|
|
234
|
+
};
|
|
235
|
+
}, pe = (n, i, a) => {
|
|
236
|
+
let { disabled: s, min: c, max: l, step: u, showTooltip: f, persistent: p, precision: m, sliderSize: h, formatTooltip: g, emitChange: _, resetSize: v, updateDragging: y, markList: b } = ee(ae), { tooltip: x, tooltipVisible: S, formatValue: C, displayTooltip: w, hideTooltip: T } = fe(n, g, f), D = B(), O = E(() => `${(n.modelValue - c.value) / (l.value - c.value) * 100}%`), k = E(() => n.vertical ? { bottom: O.value } : { left: O.value }), A = E(() => u.value === "mark" && b.value.length > 0), j = () => {
|
|
237
|
+
i.hovering = !0, w();
|
|
238
|
+
}, M = () => {
|
|
239
|
+
i.hovering = !1, i.dragging || T();
|
|
240
|
+
}, N = (e) => {
|
|
241
|
+
s.value || (e.preventDefault(), U(e), window.addEventListener("mousemove", G), window.addEventListener("touchmove", G), window.addEventListener("mouseup", K), window.addEventListener("touchend", K), window.addEventListener("contextmenu", K), D.value.focus());
|
|
242
|
+
}, F = (e) => {
|
|
243
|
+
s.value || (i.newPosition = Number.parseFloat(O.value) + e / (l.value - c.value) * 100, q(i.newPosition), _());
|
|
244
|
+
}, I = (e) => {
|
|
245
|
+
if (s.value || !b.value.length) return;
|
|
246
|
+
let t = n.modelValue, r = 2 ** -52, i = Math.abs(e), a;
|
|
247
|
+
if (e > 0) {
|
|
248
|
+
let e = b.value.findIndex((e) => e.point > t + r);
|
|
249
|
+
if (e !== -1) {
|
|
250
|
+
let t = Math.min(e + i - 1, b.value.length - 1);
|
|
251
|
+
a = b.value[t].point;
|
|
252
|
+
}
|
|
253
|
+
} else {
|
|
254
|
+
let e = -1;
|
|
255
|
+
for (let n = b.value.length - 1; n >= 0; n--) if (b.value[n].point < t - r) {
|
|
256
|
+
e = n;
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
if (e !== -1) {
|
|
260
|
+
let t = Math.max(e - (i - 1), 0);
|
|
261
|
+
a = b.value[t].point;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
a !== void 0 && a !== t && (q((a - c.value) / (l.value - c.value) * 100), _());
|
|
265
|
+
}, L = () => {
|
|
266
|
+
A.value ? I(-1) : d(u.value) && F(-u.value);
|
|
267
|
+
}, R = () => {
|
|
268
|
+
A.value ? I(1) : d(u.value) && F(u.value);
|
|
269
|
+
}, te = () => {
|
|
270
|
+
A.value ? I(-4) : d(u.value) && F(-u.value * 4);
|
|
271
|
+
}, z = () => {
|
|
272
|
+
A.value ? I(4) : d(u.value) && F(u.value * 4);
|
|
273
|
+
}, V = () => {
|
|
274
|
+
s.value || (q(0), _());
|
|
275
|
+
}, ne = () => {
|
|
276
|
+
s.value || (q(100), _());
|
|
277
|
+
}, re = (n) => {
|
|
278
|
+
let r = t(n), i = !0;
|
|
279
|
+
switch (r) {
|
|
280
|
+
case e.left:
|
|
281
|
+
case e.down:
|
|
282
|
+
L();
|
|
283
|
+
break;
|
|
284
|
+
case e.right:
|
|
285
|
+
case e.up:
|
|
286
|
+
R();
|
|
287
|
+
break;
|
|
288
|
+
case e.home:
|
|
289
|
+
V();
|
|
290
|
+
break;
|
|
291
|
+
case e.end:
|
|
292
|
+
ne();
|
|
293
|
+
break;
|
|
294
|
+
case e.pageDown:
|
|
295
|
+
te();
|
|
296
|
+
break;
|
|
297
|
+
case e.pageUp:
|
|
298
|
+
z();
|
|
299
|
+
break;
|
|
300
|
+
default:
|
|
301
|
+
i = !1;
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
i && n.preventDefault();
|
|
305
|
+
}, H = (e) => {
|
|
306
|
+
let t, n;
|
|
307
|
+
return e.type.startsWith("touch") ? (n = e.touches[0].clientY, t = e.touches[0].clientX) : (n = e.clientY, t = e.clientX), {
|
|
308
|
+
clientX: t,
|
|
309
|
+
clientY: n
|
|
310
|
+
};
|
|
311
|
+
}, U = (e) => {
|
|
312
|
+
i.dragging = !0, i.isClick = !0;
|
|
313
|
+
let { clientX: t, clientY: r } = H(e);
|
|
314
|
+
n.vertical ? i.startY = r : i.startX = t, i.startPosition = Number.parseFloat(O.value), i.newPosition = i.startPosition;
|
|
315
|
+
}, G = (e) => {
|
|
316
|
+
if (i.dragging) {
|
|
317
|
+
i.isClick = !1, w(), v();
|
|
318
|
+
let t, { clientX: r, clientY: a } = H(e);
|
|
319
|
+
n.vertical ? (i.currentY = a, t = (i.startY - i.currentY) / h.value * 100) : (i.currentX = r, t = (i.currentX - i.startX) / h.value * 100), i.newPosition = i.startPosition + t, q(i.newPosition);
|
|
320
|
+
}
|
|
321
|
+
}, K = () => {
|
|
322
|
+
i.dragging && (setTimeout(() => {
|
|
323
|
+
i.dragging = !1, i.hovering || T(), i.isClick || q(i.newPosition), _();
|
|
324
|
+
}, 0), window.removeEventListener("mousemove", G), window.removeEventListener("touchmove", G), window.removeEventListener("mouseup", K), window.removeEventListener("touchend", K), window.removeEventListener("contextmenu", K));
|
|
325
|
+
}, q = async (e) => {
|
|
326
|
+
if (e === null || Number.isNaN(+e)) return;
|
|
327
|
+
e = J(e, 0, 100);
|
|
328
|
+
let t;
|
|
329
|
+
if (u.value === "mark") t = b.value.length === 0 ? e <= 50 ? c.value : l.value : b.value.reduce((t, n) => Math.abs(n.position - e) < Math.abs(t.position - e) ? n : t).point;
|
|
330
|
+
else {
|
|
331
|
+
let n = Math.floor((l.value - c.value) / u.value), r = n * u.value / (l.value - c.value) * 100, i = r + (100 - r) / 2;
|
|
332
|
+
if (e < r) {
|
|
333
|
+
let i = r / n, a = Math.round(e / i);
|
|
334
|
+
t = c.value + a * u.value;
|
|
335
|
+
} else t = e < i ? c.value + n * u.value : l.value;
|
|
336
|
+
t = Number.parseFloat(t.toFixed(m.value));
|
|
337
|
+
}
|
|
338
|
+
t !== n.modelValue && a(r, t), !i.dragging && n.modelValue !== i.oldValue && (i.oldValue = n.modelValue), await P(), i.dragging && w(), x.value.updatePopper();
|
|
339
|
+
};
|
|
340
|
+
return W(() => i.dragging, (e) => {
|
|
341
|
+
y(e);
|
|
342
|
+
}), o(D, "touchstart", N, { passive: !1 }), {
|
|
343
|
+
disabled: s,
|
|
344
|
+
button: D,
|
|
345
|
+
tooltip: x,
|
|
346
|
+
tooltipVisible: S,
|
|
347
|
+
showTooltip: f,
|
|
348
|
+
persistent: p,
|
|
349
|
+
wrapperStyle: k,
|
|
350
|
+
formatValue: C,
|
|
351
|
+
handleMouseEnter: j,
|
|
352
|
+
handleMouseLeave: M,
|
|
353
|
+
onButtonDown: N,
|
|
354
|
+
onKeyDown: re,
|
|
355
|
+
setPosition: q
|
|
356
|
+
};
|
|
357
|
+
}, me = f({
|
|
358
|
+
modelValue: {
|
|
359
|
+
type: Number,
|
|
360
|
+
default: 0
|
|
361
|
+
},
|
|
362
|
+
vertical: Boolean,
|
|
363
|
+
tooltipClass: String,
|
|
364
|
+
placement: {
|
|
365
|
+
type: String,
|
|
366
|
+
values: _,
|
|
367
|
+
default: "top"
|
|
368
|
+
}
|
|
369
|
+
}), he = { [r]: (e) => d(e) }, Z = ["tabindex"], ge = /* @__PURE__ */ M({
|
|
370
|
+
name: "ElSliderButton",
|
|
371
|
+
__name: "button",
|
|
372
|
+
props: me,
|
|
373
|
+
emits: he,
|
|
374
|
+
setup(e, { expose: t, emit: n }) {
|
|
375
|
+
let r = e, i = n, a = p("slider"), o = z({
|
|
376
|
+
hovering: !1,
|
|
377
|
+
dragging: !1,
|
|
378
|
+
isClick: !1,
|
|
379
|
+
startX: 0,
|
|
380
|
+
currentX: 0,
|
|
381
|
+
startY: 0,
|
|
382
|
+
currentY: 0,
|
|
383
|
+
startPosition: 0,
|
|
384
|
+
newPosition: 0,
|
|
385
|
+
oldValue: r.modelValue
|
|
386
|
+
}), s = E(() => d.value ? f.value : !1), { disabled: c, button: l, tooltip: u, showTooltip: d, persistent: f, tooltipVisible: m, wrapperStyle: h, formatValue: g, handleMouseEnter: _, handleMouseLeave: y, onButtonDown: b, onKeyDown: x, setPosition: S } = pe(r, o, i), { hovering: C, dragging: w } = H(o);
|
|
387
|
+
return t({
|
|
388
|
+
onButtonDown: b,
|
|
389
|
+
onKeyDown: x,
|
|
390
|
+
setPosition: S,
|
|
391
|
+
hovering: C,
|
|
392
|
+
dragging: w
|
|
393
|
+
}), (e, t) => (R(), k("div", {
|
|
394
|
+
ref_key: "button",
|
|
395
|
+
ref: l,
|
|
396
|
+
class: F([U(a).e("button-wrapper"), {
|
|
397
|
+
hover: U(C),
|
|
398
|
+
dragging: U(w)
|
|
399
|
+
}]),
|
|
400
|
+
style: I(U(h)),
|
|
401
|
+
tabindex: U(c) ? void 0 : 0,
|
|
402
|
+
onMouseenter: t[0] || (t[0] = (...e) => U(_) && U(_)(...e)),
|
|
403
|
+
onMouseleave: t[1] || (t[1] = (...e) => U(y) && U(y)(...e)),
|
|
404
|
+
onMousedown: t[2] || (t[2] = (...e) => U(b) && U(b)(...e)),
|
|
405
|
+
onFocus: t[3] || (t[3] = (...e) => U(_) && U(_)(...e)),
|
|
406
|
+
onBlur: t[4] || (t[4] = (...e) => U(y) && U(y)(...e)),
|
|
407
|
+
onKeydown: t[5] || (t[5] = (...e) => U(x) && U(x)(...e))
|
|
408
|
+
}, [j(U(v), {
|
|
409
|
+
ref_key: "tooltip",
|
|
410
|
+
ref: u,
|
|
411
|
+
visible: U(m),
|
|
412
|
+
placement: e.placement,
|
|
413
|
+
"fallback-placements": [
|
|
414
|
+
"top",
|
|
415
|
+
"bottom",
|
|
416
|
+
"right",
|
|
417
|
+
"left"
|
|
418
|
+
],
|
|
419
|
+
"stop-popper-mouse-event": !1,
|
|
420
|
+
"popper-class": e.tooltipClass,
|
|
421
|
+
disabled: !U(d),
|
|
422
|
+
persistent: s.value
|
|
423
|
+
}, {
|
|
424
|
+
content: K(() => [A("span", null, re(U(g)), 1)]),
|
|
425
|
+
default: K(() => [A("div", { class: F([U(a).e("button"), {
|
|
426
|
+
hover: U(C),
|
|
427
|
+
dragging: U(w)
|
|
428
|
+
}]) }, null, 2)]),
|
|
429
|
+
_: 1
|
|
430
|
+
}, 8, [
|
|
431
|
+
"visible",
|
|
432
|
+
"placement",
|
|
433
|
+
"popper-class",
|
|
434
|
+
"disabled",
|
|
435
|
+
"persistent"
|
|
436
|
+
])], 46, Z));
|
|
437
|
+
}
|
|
438
|
+
}), _e = M({
|
|
439
|
+
name: "ElSliderMarker",
|
|
440
|
+
props: f({ mark: {
|
|
441
|
+
type: h([String, Object]),
|
|
442
|
+
default: void 0
|
|
443
|
+
} }),
|
|
444
|
+
setup(e) {
|
|
445
|
+
let t = p("slider"), n = E(() => u(e.mark) ? e.mark : e.mark.label), r = E(() => u(e.mark) ? void 0 : e.mark.style);
|
|
446
|
+
return () => N("div", {
|
|
447
|
+
class: t.e("marks-text"),
|
|
448
|
+
style: r.value
|
|
449
|
+
}, n.value);
|
|
450
|
+
}
|
|
451
|
+
}), ve = [
|
|
452
|
+
"id",
|
|
453
|
+
"role",
|
|
454
|
+
"aria-label",
|
|
455
|
+
"aria-labelledby"
|
|
456
|
+
], ye = { key: 1 }, be = m(/* @__PURE__ */ M({
|
|
457
|
+
name: "ElSlider",
|
|
458
|
+
__name: "slider",
|
|
459
|
+
props: Y,
|
|
460
|
+
emits: oe,
|
|
461
|
+
setup(e, { expose: t, emit: n }) {
|
|
462
|
+
let r = e, i = n, a = p("slider"), { t: s } = g(), c = z({
|
|
463
|
+
firstValue: 0,
|
|
464
|
+
secondValue: 0,
|
|
465
|
+
oldValue: 0,
|
|
466
|
+
dragging: !1,
|
|
467
|
+
sliderSize: 1
|
|
468
|
+
}), { elFormItem: l, slider: u, firstButton: f, secondButton: m, sliderDisabled: h, minValue: _, maxValue: v, runwayStyle: x, barStyle: S, resetSize: C, emitChange: M, onSliderWrapperPrevent: N, onSliderClick: ee, onSliderDown: P, onSliderMarkerDown: L, setFirstValue: B, setSecondValue: ne } = le(r, c, i), { stops: re, getStopStyle: W } = ue(r, c, _, v), { inputId: G, isLabeledByFormItem: K } = b(r, { formItemContext: l }), J = y(), ie = E(() => r.inputSize || J.value), Y = E(() => r.showInput && !r.range && r.step !== "mark"), X = E(() => r.ariaLabel || s("el.slider.defaultLabel", {
|
|
469
|
+
min: r.min,
|
|
470
|
+
max: r.max
|
|
471
|
+
})), oe = E(() => r.range ? r.rangeStartLabel || s("el.slider.defaultRangeStartLabel") : X.value), fe = E(() => r.formatValueText ? r.formatValueText(Q.value) : `${Q.value}`), pe = E(() => r.rangeEndLabel || s("el.slider.defaultRangeEndLabel")), me = E(() => r.formatValueText ? r.formatValueText($.value) : `${$.value}`), he = E(() => [
|
|
472
|
+
a.b(),
|
|
473
|
+
a.m(J.value),
|
|
474
|
+
a.is("vertical", r.vertical),
|
|
475
|
+
{ [a.m("with-input")]: Y.value }
|
|
476
|
+
]), Z = ce(r);
|
|
477
|
+
de(r, c, _, v, i, l);
|
|
478
|
+
let be = E(() => d(r.step) ? r.step : 1), xe = E(() => {
|
|
479
|
+
let e = d(r.step) ? r.step : 1, t = [
|
|
480
|
+
r.min,
|
|
481
|
+
r.max,
|
|
482
|
+
e
|
|
483
|
+
].map((e) => {
|
|
484
|
+
let t = `${e}`.split(".")[1];
|
|
485
|
+
return t ? t.length : 0;
|
|
486
|
+
});
|
|
487
|
+
return Math.max.apply(null, t);
|
|
488
|
+
}), { sliderWrapper: Se } = se(r, c, C), { firstValue: Q, secondValue: $, sliderSize: Ce } = H(c), we = (e) => {
|
|
489
|
+
c.dragging = e;
|
|
490
|
+
};
|
|
491
|
+
return o(Se, "touchstart", N, { passive: !1 }), o(Se, "touchmove", N, { passive: !1 }), te(ae, {
|
|
492
|
+
...H(r),
|
|
493
|
+
sliderSize: Ce,
|
|
494
|
+
disabled: h,
|
|
495
|
+
precision: xe,
|
|
496
|
+
markList: Z,
|
|
497
|
+
emitChange: M,
|
|
498
|
+
resetSize: C,
|
|
499
|
+
updateDragging: we
|
|
500
|
+
}), t({ onSliderClick: ee }), (e, t) => {
|
|
501
|
+
var n, r;
|
|
502
|
+
return R(), k("div", {
|
|
503
|
+
id: e.range ? U(G) : void 0,
|
|
504
|
+
ref_key: "sliderWrapper",
|
|
505
|
+
ref: Se,
|
|
506
|
+
class: F(he.value),
|
|
507
|
+
role: e.range ? "group" : void 0,
|
|
508
|
+
"aria-label": e.range && !U(K) ? X.value : void 0,
|
|
509
|
+
"aria-labelledby": e.range && U(K) ? (n = U(l)) == null ? void 0 : n.labelId : void 0
|
|
510
|
+
}, [A("div", {
|
|
511
|
+
ref_key: "slider",
|
|
512
|
+
ref: u,
|
|
513
|
+
class: F([
|
|
514
|
+
U(a).e("runway"),
|
|
515
|
+
{ "show-input": Y.value },
|
|
516
|
+
U(a).is("disabled", U(h))
|
|
517
|
+
]),
|
|
518
|
+
style: I(U(x)),
|
|
519
|
+
onMousedown: t[0] || (t[0] = (...e) => U(P) && U(P)(...e)),
|
|
520
|
+
onTouchstartPassive: t[1] || (t[1] = (...e) => U(P) && U(P)(...e))
|
|
521
|
+
}, [
|
|
522
|
+
A("div", {
|
|
523
|
+
class: F(U(a).e("bar")),
|
|
524
|
+
style: I(U(S))
|
|
525
|
+
}, null, 6),
|
|
526
|
+
j(ge, {
|
|
527
|
+
id: e.range ? void 0 : U(G),
|
|
528
|
+
ref_key: "firstButton",
|
|
529
|
+
ref: f,
|
|
530
|
+
"model-value": U(Q),
|
|
531
|
+
vertical: e.vertical,
|
|
532
|
+
"tooltip-class": e.tooltipClass,
|
|
533
|
+
placement: e.placement,
|
|
534
|
+
role: "slider",
|
|
535
|
+
"aria-label": e.range || !U(K) ? oe.value : void 0,
|
|
536
|
+
"aria-labelledby": !e.range && U(K) ? (r = U(l)) == null ? void 0 : r.labelId : void 0,
|
|
537
|
+
"aria-valuemin": e.min,
|
|
538
|
+
"aria-valuemax": e.range ? U($) : e.max,
|
|
539
|
+
"aria-valuenow": U(Q),
|
|
540
|
+
"aria-valuetext": fe.value,
|
|
541
|
+
"aria-orientation": e.vertical ? "vertical" : "horizontal",
|
|
542
|
+
"aria-disabled": U(h),
|
|
543
|
+
"onUpdate:modelValue": U(B)
|
|
544
|
+
}, null, 8, [
|
|
545
|
+
"id",
|
|
546
|
+
"model-value",
|
|
547
|
+
"vertical",
|
|
548
|
+
"tooltip-class",
|
|
549
|
+
"placement",
|
|
550
|
+
"aria-label",
|
|
551
|
+
"aria-labelledby",
|
|
552
|
+
"aria-valuemin",
|
|
553
|
+
"aria-valuemax",
|
|
554
|
+
"aria-valuenow",
|
|
555
|
+
"aria-valuetext",
|
|
556
|
+
"aria-orientation",
|
|
557
|
+
"aria-disabled",
|
|
558
|
+
"onUpdate:modelValue"
|
|
559
|
+
]),
|
|
560
|
+
e.range ? (R(), D(ge, {
|
|
561
|
+
key: 0,
|
|
562
|
+
ref_key: "secondButton",
|
|
563
|
+
ref: m,
|
|
564
|
+
"model-value": U($),
|
|
565
|
+
vertical: e.vertical,
|
|
566
|
+
"tooltip-class": e.tooltipClass,
|
|
567
|
+
placement: e.placement,
|
|
568
|
+
role: "slider",
|
|
569
|
+
"aria-label": pe.value,
|
|
570
|
+
"aria-valuemin": U(Q),
|
|
571
|
+
"aria-valuemax": e.max,
|
|
572
|
+
"aria-valuenow": U($),
|
|
573
|
+
"aria-valuetext": me.value,
|
|
574
|
+
"aria-orientation": e.vertical ? "vertical" : "horizontal",
|
|
575
|
+
"aria-disabled": U(h),
|
|
576
|
+
"onUpdate:modelValue": U(ne)
|
|
577
|
+
}, null, 8, [
|
|
578
|
+
"model-value",
|
|
579
|
+
"vertical",
|
|
580
|
+
"tooltip-class",
|
|
581
|
+
"placement",
|
|
582
|
+
"aria-label",
|
|
583
|
+
"aria-valuemin",
|
|
584
|
+
"aria-valuemax",
|
|
585
|
+
"aria-valuenow",
|
|
586
|
+
"aria-valuetext",
|
|
587
|
+
"aria-orientation",
|
|
588
|
+
"aria-disabled",
|
|
589
|
+
"onUpdate:modelValue"
|
|
590
|
+
])) : O("v-if", !0),
|
|
591
|
+
e.showStops ? (R(), k("div", ye, [(R(!0), k(T, null, V(U(re), (e, t) => (R(), k("div", {
|
|
592
|
+
key: t,
|
|
593
|
+
class: F(U(a).e("stop")),
|
|
594
|
+
style: I(U(W)(e))
|
|
595
|
+
}, null, 6))), 128))])) : O("v-if", !0),
|
|
596
|
+
U(Z).length > 0 ? (R(), k(T, { key: 2 }, [A("div", null, [(R(!0), k(T, null, V(U(Z), (e, t) => (R(), k("div", {
|
|
597
|
+
key: t,
|
|
598
|
+
style: I(U(W)(e.position)),
|
|
599
|
+
class: F([U(a).e("stop"), U(a).e("marks-stop")])
|
|
600
|
+
}, null, 6))), 128))]), A("div", { class: F(U(a).e("marks")) }, [(R(!0), k(T, null, V(U(Z), (e, t) => (R(), D(U(_e), {
|
|
601
|
+
key: t,
|
|
602
|
+
mark: e.mark,
|
|
603
|
+
style: I(U(W)(e.position)),
|
|
604
|
+
onMousedown: q((t) => U(L)(e.position), ["stop"])
|
|
605
|
+
}, null, 8, [
|
|
606
|
+
"mark",
|
|
607
|
+
"style",
|
|
608
|
+
"onMousedown"
|
|
609
|
+
]))), 128))], 2)], 64)) : O("v-if", !0)
|
|
610
|
+
], 38), Y.value ? (R(), D(U(w), {
|
|
611
|
+
key: 0,
|
|
612
|
+
ref: "input",
|
|
613
|
+
"model-value": U(Q),
|
|
614
|
+
class: F(U(a).e("input")),
|
|
615
|
+
step: be.value,
|
|
616
|
+
disabled: U(h),
|
|
617
|
+
controls: e.showInputControls,
|
|
618
|
+
min: e.min,
|
|
619
|
+
max: e.max,
|
|
620
|
+
precision: xe.value,
|
|
621
|
+
size: ie.value,
|
|
622
|
+
"onUpdate:modelValue": U(B),
|
|
623
|
+
onChange: U(M)
|
|
624
|
+
}, null, 8, [
|
|
625
|
+
"model-value",
|
|
626
|
+
"class",
|
|
627
|
+
"step",
|
|
628
|
+
"disabled",
|
|
629
|
+
"controls",
|
|
630
|
+
"min",
|
|
631
|
+
"max",
|
|
632
|
+
"precision",
|
|
633
|
+
"size",
|
|
634
|
+
"onUpdate:modelValue",
|
|
635
|
+
"onChange"
|
|
636
|
+
])) : O("v-if", !0)], 10, ve);
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
}));
|
|
640
|
+
//#endregion
|
|
641
|
+
export { be as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { T as e } from "./fICCbPEl.js";
|
|
2
|
+
import { E as t, m as n } from "./D73tXuJP.js";
|
|
3
|
+
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/directives/click-outside/index.mjs
|
|
4
|
+
var r = /* @__PURE__ */ new Map();
|
|
5
|
+
if (e) {
|
|
6
|
+
let e;
|
|
7
|
+
document.addEventListener("mousedown", (t) => e = t), document.addEventListener("mouseup", (t) => {
|
|
8
|
+
if (e) {
|
|
9
|
+
for (let n of r.values()) for (let { documentHandler: r } of n) r(t, e);
|
|
10
|
+
e = void 0;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function i(e, r) {
|
|
15
|
+
let i = [];
|
|
16
|
+
return t(r.arg) ? i = r.arg : n(r.arg) && i.push(r.arg), function(t, n) {
|
|
17
|
+
let a = r.instance.popperRef, o = t.target, s = n == null ? void 0 : n.target, c = !r || !r.instance, l = !o || !s, u = e.contains(o) || e.contains(s), d = e === o, f = i.length && i.some((e) => e == null ? void 0 : e.contains(o)) || i.length && i.includes(s), p = a && (a.contains(o) || a.contains(s));
|
|
18
|
+
c || l || u || d || f || p || r.value(t, n);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
var a = {
|
|
22
|
+
beforeMount(e, t) {
|
|
23
|
+
r.has(e) || r.set(e, []), r.get(e).push({
|
|
24
|
+
documentHandler: i(e, t),
|
|
25
|
+
bindingFn: t.value
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
updated(e, t) {
|
|
29
|
+
r.has(e) || r.set(e, []);
|
|
30
|
+
let n = r.get(e), a = n.findIndex((e) => e.bindingFn === t.oldValue), o = {
|
|
31
|
+
documentHandler: i(e, t),
|
|
32
|
+
bindingFn: t.value
|
|
33
|
+
};
|
|
34
|
+
a >= 0 ? n.splice(a, 1, o) : n.push(o);
|
|
35
|
+
},
|
|
36
|
+
unmounted(e) {
|
|
37
|
+
r.delete(e);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { a as t };
|