@web-utils/form-ui 1.0.0-beta72 → 1.0.0-beta74
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.d.ts +0 -2
- package/affix/index.mjs +2 -3
- package/capsule-tab/index.mjs +1 -1
- package/card/index.mjs +15 -16
- package/chunks/-fXBgN9b2.mjs +37 -0
- package/chunks/{-UHCmZBh.mjs → -yfgKY3g.mjs} +1 -1
- package/chunks/{Ciy3EJGG2.mjs → -zgWD713.mjs} +44 -45
- package/chunks/{qFn9SqfB2.mjs → 7_9hAeqb.mjs} +72 -73
- package/chunks/{CidE_6Q52.mjs → 8A7LSgb4.mjs} +26 -27
- package/chunks/B0BOjeph2.mjs +108 -0
- package/chunks/BE4V5Vf5.mjs +133 -0
- package/chunks/{Diidem-9.mjs → BGJjAw5E.mjs} +1 -1
- package/chunks/{BJNI7n9Z.mjs → BH7VEktl.mjs} +19 -19
- package/chunks/{BrJzSp9f.mjs → BI6kCG2j2.mjs} +2 -2
- package/chunks/BctSGDgW2.mjs +29 -0
- package/chunks/BhIWiH5R.mjs +661 -0
- package/chunks/BhzlH7Az.mjs +90 -0
- package/chunks/{DWjZMJ1e2.mjs → Bj0kgDOA.mjs} +132 -133
- package/chunks/{DmEOzzaP2.mjs → BrelfRGo2.mjs} +14 -14
- package/chunks/{X6BItEt1.mjs → BsqIRxSS.mjs} +6 -7
- package/chunks/{Bnm0osro.mjs → Byy1rvPO.mjs} +13 -16
- package/chunks/{iPHgzcZ0.mjs → C6mb7Nru2.mjs} +4 -4
- package/chunks/{Bhkk9TmJ2.mjs → CFoSvMJ-2.mjs} +1 -1
- package/chunks/{Vrr45MGv.mjs → CO3taG7t2.mjs} +1 -1
- package/chunks/{QAHALDuF2.mjs → CWBRpkHy.mjs} +138 -139
- package/chunks/Ccxbv7uz2.mjs +34 -0
- package/chunks/Ce4tNNzg2.mjs +63 -0
- package/chunks/{SEQG09ut.mjs → CelJ2L8A2.mjs} +2 -2
- package/chunks/CjYOitzM2.mjs +31 -0
- package/chunks/Cknuquqx.mjs +32 -0
- package/chunks/ClVh1Lek.mjs +130 -0
- package/chunks/CwyebsNL2.mjs +39 -0
- package/chunks/{CJl5ZiUq2.mjs → D4Pd8rZi.mjs} +28 -30
- package/chunks/D6YM84Pf2.mjs +29 -0
- package/chunks/{DlROUHPJ2.mjs → DTq5QLoT.mjs} +43 -43
- package/chunks/{5oaTzHT-2.mjs → DVMfVn-M.mjs} +14 -13
- package/chunks/DVdQHb_v.mjs +50 -0
- package/chunks/{YS7hFnUB2.mjs → Daa7nl7U.mjs} +19 -19
- package/chunks/{D6TSUCGL.mjs → Dh_BQpvC2.mjs} +2 -2
- package/chunks/DizOY5i8.mjs +69 -0
- package/chunks/{Czi7_tAe.mjs → DjaV6_cg2.mjs} +2 -2
- package/chunks/{CKWgRCN52.mjs → Dm3gQGoV2.mjs} +2 -2
- package/chunks/DqW9QtF3.mjs +68 -0
- package/chunks/{CKbOqPFm2.mjs → DqWJCka8.mjs} +9 -9
- package/chunks/{CIerTjpq2.mjs → DrWUdRj32.mjs} +2 -2
- package/chunks/{BrSZZNRc.mjs → DucSg7Mt.mjs} +70 -72
- package/chunks/Dv7YRB2U2.mjs +25 -0
- package/chunks/DyLQsqWJ.mjs +61 -0
- package/chunks/HsHwYW1a.mjs +99 -0
- package/chunks/KDVLIvaS.mjs +30 -0
- package/chunks/{BHwRv4F0.mjs → Lkg7bYLD2.mjs} +73 -74
- package/chunks/OBTStTaa.mjs +179 -0
- package/chunks/{DSnICEQN.mjs → Opn85Hlx2.mjs} +1 -1
- package/chunks/{C9nRNgwm2.mjs → QTy8g5MS.mjs} +589 -763
- package/chunks/{CsA_9MVv.mjs → YdNYH25C.mjs} +1 -1
- package/chunks/_q6JzJYp.mjs +773 -0
- package/chunks/{BiYsC43_.mjs → gTgPZrgY2.mjs} +119 -120
- package/chunks/{D2FNAA1a.mjs → jsgk7Yse2.mjs} +2 -2
- package/chunks/nL59ZuIk.mjs +58 -0
- package/chunks/{BJuAz5lX2.mjs → sWVkgzQt2.mjs} +2 -2
- package/chunks/{DN2qkQvd.mjs → tjwOOiNr2.mjs} +31 -32
- package/code-mirror-editor/index.mjs +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +9 -10
- package/data-card/index.mjs +8 -9
- package/data-card-text/index.mjs +8 -9
- package/data-display/index.mjs +9 -10
- package/data-icons/index.mjs +9 -10
- package/data-imgtext/index.mjs +9 -11
- package/data-operatext/index.mjs +8 -9
- package/data-panel/index.mjs +9 -10
- package/data-pay/index.mjs +10 -12
- package/data-price/index.mjs +8 -9
- package/data-progress/index.mjs +10 -11
- package/data-rotate/index.mjs +9 -10
- package/data-table-picker/index.mjs +11 -12
- package/data-tabs/index.mjs +9 -10
- 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 +595 -2
- 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/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-designer/style.css +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.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- 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-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- 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.mjs +1 -1
- 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/guide-steps/index.mjs +77 -2
- package/guide-steps/style.css +1 -1
- package/helper/dictionary.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/image-cropper/index.mjs +12 -11
- package/image-preview/index.d.ts +1 -153
- package/image-preview/index.mjs +201 -2
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +1 -1
- package/index.css +1 -1
- package/index.mjs +101 -101
- package/input-number-range/index.mjs +7 -7
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.mjs +1 -1
- package/name-avatar/index.mjs +1 -1
- package/nav-bar/index.mjs +3 -4
- package/package.json +5 -1
- package/page-index/index.mjs +14 -14
- package/page-index-top/index.mjs +12 -12
- package/pageable-table/index.mjs +1 -1
- package/pageable-table/style.css +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/props/col.mjs +1 -1
- package/props/form-item.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.mjs +1 -1
- 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.mjs +1 -1
- package/table-view/index.mjs +109 -110
- package/table-view/style.css +1 -1
- package/tag-render/index.mjs +21 -23
- package/text-ellipsis/index.d.ts +1 -1
- 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.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.d.ts +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 +47 -50
- package/year-calendar/index.mjs +1 -1
- package/year-calendar/style.css +1 -1
- package/chunks/49634Q2N2.mjs +0 -936
- package/chunks/77cFhiAz.mjs +0 -13
- package/chunks/7JVbVOff2.mjs +0 -46
- package/chunks/B1ATN2my.mjs +0 -26
- package/chunks/B7O8aGqC2.mjs +0 -58
- package/chunks/BBPczt0U.mjs +0 -4
- package/chunks/BCwAowl1.mjs +0 -589
- package/chunks/BDVLN2ly.mjs +0 -105
- package/chunks/BEIlrURf.mjs +0 -251
- package/chunks/BEysX5TF2.mjs +0 -1038
- package/chunks/BHVyaqk0.mjs +0 -736
- package/chunks/BIj6pa8Z.mjs +0 -15
- package/chunks/BMWg0Wyj.mjs +0 -223
- package/chunks/BOsml5YC.mjs +0 -69
- package/chunks/BPwFiWYl2.mjs +0 -226
- package/chunks/BVIHqL6g.mjs +0 -17
- package/chunks/BVSQ6DfJ.mjs +0 -17
- package/chunks/BWqFKbFT.mjs +0 -1
- package/chunks/B__5L22p2.mjs +0 -346
- package/chunks/Bcpewc6H.mjs +0 -1279
- package/chunks/Bdeug17L.mjs +0 -42
- package/chunks/BffxPn8a.mjs +0 -34
- package/chunks/BgKQXQO_.mjs +0 -3093
- package/chunks/Bgw_3soo.mjs +0 -35
- package/chunks/BjCfQFUL.mjs +0 -54
- package/chunks/BjWs-r2V.mjs +0 -25
- package/chunks/BlB1fEo92.mjs +0 -8
- package/chunks/BmP9lQmT.mjs +0 -1
- package/chunks/BrYtAPbN2.mjs +0 -161
- package/chunks/BsKwchVA.mjs +0 -14
- package/chunks/Bxo1Of95.mjs +0 -479
- package/chunks/BzFYbCpR.mjs +0 -25
- package/chunks/C6puxasG.mjs +0 -34
- package/chunks/C7l9aZGE.mjs +0 -577
- package/chunks/CDRNaOEg2.mjs +0 -274
- package/chunks/CG7AYiWy.mjs +0 -1
- package/chunks/CLzc_j7_.mjs +0 -234
- package/chunks/CQSTyCVP.mjs +0 -6
- package/chunks/CQxz8uUc.mjs +0 -454
- package/chunks/CU8bKuD12.mjs +0 -237
- package/chunks/CUF58PQ6.mjs +0 -1
- package/chunks/CUMFv5zJ2.mjs +0 -136
- package/chunks/C_eGir-J.mjs +0 -17
- package/chunks/Cb6Zx6UC.mjs +0 -29
- package/chunks/Cb_S4x_i2.mjs +0 -1098
- package/chunks/CbgD7y-5.mjs +0 -5
- package/chunks/CbsGuLZz2.mjs +0 -105
- package/chunks/CcT5SsZk.mjs +0 -48
- package/chunks/CcnjxILx.mjs +0 -1
- package/chunks/ChkCT6Mm.mjs +0 -4
- package/chunks/CiFlMt6Z.mjs +0 -41
- package/chunks/CiOqOUkG.mjs +0 -1
- package/chunks/CkXf_DVJ2.mjs +0 -1
- package/chunks/CnCSm3LY2.mjs +0 -4
- package/chunks/CnqWFDqp2.mjs +0 -244
- package/chunks/Cq0oEWRi2.mjs +0 -384
- package/chunks/CtBIjjQc2.mjs +0 -58
- package/chunks/Ctd3_wOH2.mjs +0 -6
- package/chunks/CuoYjthQ.mjs +0 -643
- package/chunks/CwhXr2Qc.mjs +0 -1
- package/chunks/D-hj62se2.mjs +0 -525
- package/chunks/D3VpXXqv.mjs +0 -1331
- package/chunks/D3Xixh5v.mjs +0 -5
- package/chunks/D4oNQiIK.mjs +0 -461
- package/chunks/D7O9ov79.mjs +0 -447
- package/chunks/D8fid28s2.mjs +0 -42
- package/chunks/DJdhVUFO2.mjs +0 -2435
- package/chunks/DJo_1CEK2.mjs +0 -61
- package/chunks/DMBx2EQl.mjs +0 -107
- package/chunks/DOCwznnS.mjs +0 -62
- package/chunks/DStwh2ne.mjs +0 -281
- package/chunks/D_5z5Xeq2.mjs +0 -37
- package/chunks/Df9VO_Wn2.mjs +0 -2
- package/chunks/Dg9Q-Tbi2.mjs +0 -299
- package/chunks/Diyl8upM.mjs +0 -277
- package/chunks/DjIPzCCR.mjs +0 -2
- package/chunks/DnBzQ-xh.mjs +0 -4
- package/chunks/Dp195RgF.mjs +0 -2
- package/chunks/Dqu1Etz62.mjs +0 -52
- package/chunks/DrKq_frR.mjs +0 -98
- package/chunks/DrXfCf172.mjs +0 -440
- package/chunks/DsZznbt2.mjs +0 -208
- package/chunks/Dsd58O0g.mjs +0 -25
- package/chunks/DssopN-n2.mjs +0 -97
- package/chunks/Dtq1xYk8.mjs +0 -47
- package/chunks/FeuisuNY2.mjs +0 -88
- package/chunks/GEtlriHC.mjs +0 -188
- package/chunks/GsvG1yFW.mjs +0 -1919
- package/chunks/IheQdJ0z.mjs +0 -267
- package/chunks/KGmxNbpi.mjs +0 -21
- package/chunks/PNyFONog2.mjs +0 -69
- package/chunks/T70m4caR.mjs +0 -1095
- package/chunks/ZBsqmcIN2.mjs +0 -622
- package/chunks/akEzJ4kG.mjs +0 -18
- package/chunks/fX1GD0G5.mjs +0 -70
- package/chunks/gh52LMTG.mjs +0 -12
- package/chunks/hgAOQY9a.mjs +0 -406
- package/chunks/iu5J8EF_.mjs +0 -197
- package/chunks/lGc5ksPb.mjs +0 -279
- package/chunks/pZQfJv282.mjs +0 -4
- package/chunks/qrHhuZXg.mjs +0 -465
- package/chunks/r8gDbwly.mjs +0 -1
- package/chunks/vpwjmKdg2.mjs +0 -32
- package/css/style.css +0 -1
- package/css/style10.css +0 -1
- package/css/style11.css +0 -1
- package/css/style12.css +0 -1
- package/css/style13.css +0 -1
- package/css/style14.css +0 -1
- package/css/style15.css +0 -1
- package/css/style16.css +0 -1
- package/css/style17.css +0 -1
- package/css/style18.css +0 -1
- package/css/style19.css +0 -1
- package/css/style2.css +0 -1
- package/css/style20.css +0 -1
- package/css/style21.css +0 -1
- package/css/style22.css +0 -1
- package/css/style23.css +0 -1
- package/css/style24.css +0 -1
- package/css/style25.css +0 -1
- package/css/style26.css +0 -1
- package/css/style27.css +0 -1
- package/css/style28.css +0 -1
- package/css/style29.css +0 -1
- package/css/style3.css +0 -1
- package/css/style4.css +0 -1
- package/css/style5.css +0 -1
- package/css/style6.css +0 -1
- package/css/style7.css +0 -1
- package/css/style8.css +0 -1
- package/css/style9.css +0 -1
- package/form-date-picker/style.css +0 -1
- package/form-image/style.css +0 -1
- package/form-input-time/style.css +0 -1
- package/form-radio-group/style.css +0 -1
- package/form-rate/style.css +0 -1
- package/form-time-select/style.css +0 -1
- /package/chunks/{CZnBtJW02.mjs → BBvIPqcc.mjs} +0 -0
- /package/chunks/{iIozz7ce.mjs → BoCxKwBf.mjs} +0 -0
- /package/chunks/{BxRjXAwz.mjs → CE67pCwD.mjs} +0 -0
- /package/chunks/{DWhGFQkb2.mjs → CQeEP_Tl.mjs} +0 -0
- /package/chunks/{BQ0e8kIi.mjs → CaczibeD.mjs} +0 -0
- /package/chunks/{B_80qPvY.mjs → DZCryyFG.mjs} +0 -0
- /package/chunks/{q5iCsXNv.mjs → Dq63V0CC.mjs} +0 -0
- /package/chunks/{CRjUGi_-.mjs → OEBJ-trG.mjs} +0 -0
- /package/chunks/{GYddfy8T.mjs → fjtZc9Rq2.mjs} +0 -0
package/chunks/CuoYjthQ.mjs
DELETED
|
@@ -1,643 +0,0 @@
|
|
|
1
|
-
import { i as e, n as t } from "./Bdeug17L.mjs";
|
|
2
|
-
import { n, r, t as i } from "./DnBzQ-xh.mjs";
|
|
3
|
-
import { r as a } from "./akEzJ4kG.mjs";
|
|
4
|
-
import { _ as o, n as s, t as c } from "./hgAOQY9a.mjs";
|
|
5
|
-
import { E as l, M as u, g as d, l as f, s as p, t as m, u as h } from "./DrKq_frR.mjs";
|
|
6
|
-
import { n as g } from "./GEtlriHC.mjs";
|
|
7
|
-
import { a as _, t as v } from "./GsvG1yFW.mjs";
|
|
8
|
-
import { i as y, n as b, r as x, t as S } from "./CcT5SsZk.mjs";
|
|
9
|
-
import { t as C } from "./BVIHqL6g.mjs";
|
|
10
|
-
import { t as w } from "./Diyl8upM.mjs";
|
|
11
|
-
/* empty css */
|
|
12
|
-
import "./DjIPzCCR.mjs";
|
|
13
|
-
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";
|
|
14
|
-
import { clamp as J, debounce as ie } from "lodash-unified";
|
|
15
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/slider/src/constants.mjs
|
|
16
|
-
var ae = Symbol("sliderContextKey"), Y = f({
|
|
17
|
-
modelValue: {
|
|
18
|
-
type: h([Number, Array]),
|
|
19
|
-
default: 0
|
|
20
|
-
},
|
|
21
|
-
id: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: void 0
|
|
24
|
-
},
|
|
25
|
-
min: {
|
|
26
|
-
type: Number,
|
|
27
|
-
default: 0
|
|
28
|
-
},
|
|
29
|
-
max: {
|
|
30
|
-
type: Number,
|
|
31
|
-
default: 100
|
|
32
|
-
},
|
|
33
|
-
step: {
|
|
34
|
-
type: h([Number, String]),
|
|
35
|
-
default: 1
|
|
36
|
-
},
|
|
37
|
-
showInput: Boolean,
|
|
38
|
-
showInputControls: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: !0
|
|
41
|
-
},
|
|
42
|
-
size: a,
|
|
43
|
-
inputSize: a,
|
|
44
|
-
showStops: Boolean,
|
|
45
|
-
showTooltip: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: !0
|
|
48
|
-
},
|
|
49
|
-
formatTooltip: {
|
|
50
|
-
type: h(Function),
|
|
51
|
-
default: void 0
|
|
52
|
-
},
|
|
53
|
-
disabled: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: void 0
|
|
56
|
-
},
|
|
57
|
-
range: Boolean,
|
|
58
|
-
vertical: Boolean,
|
|
59
|
-
height: String,
|
|
60
|
-
rangeStartLabel: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: void 0
|
|
63
|
-
},
|
|
64
|
-
rangeEndLabel: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: void 0
|
|
67
|
-
},
|
|
68
|
-
formatValueText: {
|
|
69
|
-
type: h(Function),
|
|
70
|
-
default: void 0
|
|
71
|
-
},
|
|
72
|
-
tooltipClass: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: void 0
|
|
75
|
-
},
|
|
76
|
-
placement: {
|
|
77
|
-
type: String,
|
|
78
|
-
values: _,
|
|
79
|
-
default: "top"
|
|
80
|
-
},
|
|
81
|
-
marks: { type: h(Object) },
|
|
82
|
-
validateEvent: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: !0
|
|
85
|
-
},
|
|
86
|
-
persistent: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: !0
|
|
89
|
-
},
|
|
90
|
-
...C(["ariaLabel"])
|
|
91
|
-
}), X = (e) => d(e) || l(e) && e.every(d), oe = {
|
|
92
|
-
[r]: X,
|
|
93
|
-
[n]: X,
|
|
94
|
-
[i]: X
|
|
95
|
-
}, se = (e, t, n) => {
|
|
96
|
-
let r = B();
|
|
97
|
-
return L(async () => {
|
|
98
|
-
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();
|
|
99
|
-
}), { sliderWrapper: r };
|
|
100
|
-
}, ce = (e) => {
|
|
101
|
-
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) => ({
|
|
102
|
-
point: t,
|
|
103
|
-
position: (t - e.min) * 100 / (e.max - e.min),
|
|
104
|
-
mark: e.marks[t]
|
|
105
|
-
})) : []);
|
|
106
|
-
return G(() => {
|
|
107
|
-
if (e.step === "mark" && !e.marks && c("ElSlider", "marks prop must be provided when step is mark"), e.marks) {
|
|
108
|
-
let n = Object.keys(e.marks), r = t.value.map((e) => e.point), i = n.filter((e) => {
|
|
109
|
-
let t = Number.parseFloat(e);
|
|
110
|
-
return Number.isNaN(t) || !r.includes(t);
|
|
111
|
-
});
|
|
112
|
-
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.`);
|
|
113
|
-
}
|
|
114
|
-
}), t;
|
|
115
|
-
}, le = (e, t, a) => {
|
|
116
|
-
let { formItem: o } = S(), s = ne(), c = B(), l = B(), u = {
|
|
117
|
-
firstButton: c,
|
|
118
|
-
secondButton: l
|
|
119
|
-
}, 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 ? {
|
|
120
|
-
height: m.value,
|
|
121
|
-
bottom: h.value
|
|
122
|
-
} : {
|
|
123
|
-
width: m.value,
|
|
124
|
-
left: h.value
|
|
125
|
-
}), v = () => {
|
|
126
|
-
s.value && (t.sliderSize = s.value.getBoundingClientRect()[e.vertical ? "height" : "width"]);
|
|
127
|
-
}, y = (n) => {
|
|
128
|
-
let r = e.min + n * (e.max - e.min) / 100;
|
|
129
|
-
if (!e.range) return c;
|
|
130
|
-
let i;
|
|
131
|
-
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];
|
|
132
|
-
}, b = (e) => {
|
|
133
|
-
let t = y(e);
|
|
134
|
-
return t.value.setPosition(e), t;
|
|
135
|
-
}, C = (n) => {
|
|
136
|
-
t.firstValue = n ?? e.min, T(e.range ? [f.value, p.value] : n ?? e.min);
|
|
137
|
-
}, w = (n) => {
|
|
138
|
-
t.secondValue = n, e.range && T([f.value, p.value]);
|
|
139
|
-
}, T = (e) => {
|
|
140
|
-
a(r, e), a(n, e);
|
|
141
|
-
}, D = async () => {
|
|
142
|
-
await P(), a(i, e.range ? [f.value, p.value] : e.modelValue);
|
|
143
|
-
}, O = (n) => {
|
|
144
|
-
var r;
|
|
145
|
-
if (d.value || t.dragging) return;
|
|
146
|
-
v();
|
|
147
|
-
let i = 0;
|
|
148
|
-
if (e.vertical) {
|
|
149
|
-
var a;
|
|
150
|
-
let e = ((a = n.touches) == null || (a = a.item(0)) == null ? void 0 : a.clientY) ?? n.clientY;
|
|
151
|
-
i = (s.value.getBoundingClientRect().bottom - e) / t.sliderSize * 100;
|
|
152
|
-
} else i = ((((r = n.touches) == null || (r = r.item(0)) == null ? void 0 : r.clientX) ?? n.clientX) - s.value.getBoundingClientRect().left) / t.sliderSize * 100;
|
|
153
|
-
if (!(i < 0 || i > 100)) return b(i);
|
|
154
|
-
};
|
|
155
|
-
return {
|
|
156
|
-
elFormItem: o,
|
|
157
|
-
slider: s,
|
|
158
|
-
firstButton: c,
|
|
159
|
-
secondButton: l,
|
|
160
|
-
sliderDisabled: d,
|
|
161
|
-
minValue: f,
|
|
162
|
-
maxValue: p,
|
|
163
|
-
runwayStyle: g,
|
|
164
|
-
barStyle: _,
|
|
165
|
-
resetSize: v,
|
|
166
|
-
setPosition: b,
|
|
167
|
-
emitChange: D,
|
|
168
|
-
onSliderWrapperPrevent: (e) => {
|
|
169
|
-
var t, n;
|
|
170
|
-
((t = u.firstButton.value) != null && t.dragging || (n = u.secondButton.value) != null && n.dragging) && e.preventDefault();
|
|
171
|
-
},
|
|
172
|
-
onSliderClick: (e) => {
|
|
173
|
-
O(e) && D();
|
|
174
|
-
},
|
|
175
|
-
onSliderDown: async (e) => {
|
|
176
|
-
let t = O(e);
|
|
177
|
-
t && (await P(), t.value.onButtonDown(e));
|
|
178
|
-
},
|
|
179
|
-
onSliderMarkerDown: (e) => {
|
|
180
|
-
d.value || t.dragging || b(e) && D();
|
|
181
|
-
},
|
|
182
|
-
setFirstValue: C,
|
|
183
|
-
setSecondValue: w
|
|
184
|
-
};
|
|
185
|
-
}, ue = (e, t, n, r) => ({
|
|
186
|
-
stops: E(() => {
|
|
187
|
-
if (!e.showStops || e.min > e.max) return [];
|
|
188
|
-
if (e.step === "mark" || e.step === 0) return e.step === 0 && c("ElSlider", "step should not be 0."), [];
|
|
189
|
-
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);
|
|
190
|
-
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));
|
|
191
|
-
}),
|
|
192
|
-
getStopStyle: (t) => e.vertical ? { bottom: `${t}%` } : { left: `${t}%` }
|
|
193
|
-
}), de = (e, t, i, a, o, u) => {
|
|
194
|
-
let f = (e) => {
|
|
195
|
-
o(r, e), o(n, e);
|
|
196
|
-
}, p = () => e.range ? ![i.value, a.value].every((e, n) => e === t.oldValue[n]) : e.modelValue !== t.oldValue, m = () => {
|
|
197
|
-
e.min > e.max && s("Slider", "min should not be greater than max.");
|
|
198
|
-
let n = e.modelValue;
|
|
199
|
-
if (e.range && l(n)) {
|
|
200
|
-
if (n[1] < e.min) f([e.min, e.min]);
|
|
201
|
-
else if (n[0] > e.max) f([e.max, e.max]);
|
|
202
|
-
else if (n[0] < e.min) f([e.min, n[1]]);
|
|
203
|
-
else if (n[1] > e.max) f([n[0], e.max]);
|
|
204
|
-
else if (t.firstValue = n[0], t.secondValue = n[1], p()) {
|
|
205
|
-
var r;
|
|
206
|
-
e.validateEvent && (u == null || (r = u.validate) == null || r.call(u, "change").catch((e) => c(e))), t.oldValue = n.slice();
|
|
207
|
-
}
|
|
208
|
-
} else if (!e.range && d(n) && !Number.isNaN(n)) {
|
|
209
|
-
if (n < e.min) f(e.min);
|
|
210
|
-
else if (n > e.max) f(e.max);
|
|
211
|
-
else if (t.firstValue = n, p()) {
|
|
212
|
-
var i;
|
|
213
|
-
e.validateEvent && (u == null || (i = u.validate) == null || i.call(u, "change").catch((e) => c(e))), t.oldValue = n;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
m(), W(() => t.dragging, (e) => {
|
|
218
|
-
e || m();
|
|
219
|
-
}), W(() => e.modelValue, (e, n) => {
|
|
220
|
-
t.dragging || l(e) && l(n) && e.every((e, t) => e === n[t]) && t.firstValue === e[0] && t.secondValue === e[1] || m();
|
|
221
|
-
}, { deep: !0 }), W(() => [e.min, e.max], () => {
|
|
222
|
-
m();
|
|
223
|
-
});
|
|
224
|
-
}, fe = (e, t, n) => {
|
|
225
|
-
let r = B(), i = B(!1), a = E(() => t.value instanceof Function);
|
|
226
|
-
return {
|
|
227
|
-
tooltip: r,
|
|
228
|
-
tooltipVisible: i,
|
|
229
|
-
formatValue: E(() => a.value && t.value(e.modelValue) || e.modelValue),
|
|
230
|
-
displayTooltip: ie(() => {
|
|
231
|
-
n.value && (i.value = !0);
|
|
232
|
-
}, 50),
|
|
233
|
-
hideTooltip: ie(() => {
|
|
234
|
-
n.value && (i.value = !1);
|
|
235
|
-
}, 50)
|
|
236
|
-
};
|
|
237
|
-
}, pe = (n, i, a) => {
|
|
238
|
-
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 = () => {
|
|
239
|
-
i.hovering = !0, w();
|
|
240
|
-
}, M = () => {
|
|
241
|
-
i.hovering = !1, i.dragging || T();
|
|
242
|
-
}, N = (e) => {
|
|
243
|
-
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());
|
|
244
|
-
}, F = (e) => {
|
|
245
|
-
s.value || (i.newPosition = Number.parseFloat(O.value) + e / (l.value - c.value) * 100, q(i.newPosition), _());
|
|
246
|
-
}, I = (e) => {
|
|
247
|
-
if (s.value || !b.value.length) return;
|
|
248
|
-
let t = n.modelValue, r = 2 ** -52, i = Math.abs(e), a;
|
|
249
|
-
if (e > 0) {
|
|
250
|
-
let e = b.value.findIndex((e) => e.point > t + r);
|
|
251
|
-
if (e !== -1) {
|
|
252
|
-
let t = Math.min(e + i - 1, b.value.length - 1);
|
|
253
|
-
a = b.value[t].point;
|
|
254
|
-
}
|
|
255
|
-
} else {
|
|
256
|
-
let e = -1;
|
|
257
|
-
for (let n = b.value.length - 1; n >= 0; n--) if (b.value[n].point < t - r) {
|
|
258
|
-
e = n;
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
if (e !== -1) {
|
|
262
|
-
let t = Math.max(e - (i - 1), 0);
|
|
263
|
-
a = b.value[t].point;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
a !== void 0 && a !== t && (q((a - c.value) / (l.value - c.value) * 100), _());
|
|
267
|
-
}, L = () => {
|
|
268
|
-
A.value ? I(-1) : d(u.value) && F(-u.value);
|
|
269
|
-
}, R = () => {
|
|
270
|
-
A.value ? I(1) : d(u.value) && F(u.value);
|
|
271
|
-
}, te = () => {
|
|
272
|
-
A.value ? I(-4) : d(u.value) && F(-u.value * 4);
|
|
273
|
-
}, z = () => {
|
|
274
|
-
A.value ? I(4) : d(u.value) && F(u.value * 4);
|
|
275
|
-
}, V = () => {
|
|
276
|
-
s.value || (q(0), _());
|
|
277
|
-
}, ne = () => {
|
|
278
|
-
s.value || (q(100), _());
|
|
279
|
-
}, re = (n) => {
|
|
280
|
-
let r = t(n), i = !0;
|
|
281
|
-
switch (r) {
|
|
282
|
-
case e.left:
|
|
283
|
-
case e.down:
|
|
284
|
-
L();
|
|
285
|
-
break;
|
|
286
|
-
case e.right:
|
|
287
|
-
case e.up:
|
|
288
|
-
R();
|
|
289
|
-
break;
|
|
290
|
-
case e.home:
|
|
291
|
-
V();
|
|
292
|
-
break;
|
|
293
|
-
case e.end:
|
|
294
|
-
ne();
|
|
295
|
-
break;
|
|
296
|
-
case e.pageDown:
|
|
297
|
-
te();
|
|
298
|
-
break;
|
|
299
|
-
case e.pageUp:
|
|
300
|
-
z();
|
|
301
|
-
break;
|
|
302
|
-
default:
|
|
303
|
-
i = !1;
|
|
304
|
-
break;
|
|
305
|
-
}
|
|
306
|
-
i && n.preventDefault();
|
|
307
|
-
}, H = (e) => {
|
|
308
|
-
let t, n;
|
|
309
|
-
return e.type.startsWith("touch") ? (n = e.touches[0].clientY, t = e.touches[0].clientX) : (n = e.clientY, t = e.clientX), {
|
|
310
|
-
clientX: t,
|
|
311
|
-
clientY: n
|
|
312
|
-
};
|
|
313
|
-
}, U = (e) => {
|
|
314
|
-
i.dragging = !0, i.isClick = !0;
|
|
315
|
-
let { clientX: t, clientY: r } = H(e);
|
|
316
|
-
n.vertical ? i.startY = r : i.startX = t, i.startPosition = Number.parseFloat(O.value), i.newPosition = i.startPosition;
|
|
317
|
-
}, G = (e) => {
|
|
318
|
-
if (i.dragging) {
|
|
319
|
-
i.isClick = !1, w(), v();
|
|
320
|
-
let t, { clientX: r, clientY: a } = H(e);
|
|
321
|
-
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);
|
|
322
|
-
}
|
|
323
|
-
}, K = () => {
|
|
324
|
-
i.dragging && (setTimeout(() => {
|
|
325
|
-
i.dragging = !1, i.hovering || T(), i.isClick || q(i.newPosition), _();
|
|
326
|
-
}, 0), window.removeEventListener("mousemove", G), window.removeEventListener("touchmove", G), window.removeEventListener("mouseup", K), window.removeEventListener("touchend", K), window.removeEventListener("contextmenu", K));
|
|
327
|
-
}, q = async (e) => {
|
|
328
|
-
if (e === null || Number.isNaN(+e)) return;
|
|
329
|
-
e = J(e, 0, 100);
|
|
330
|
-
let t;
|
|
331
|
-
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;
|
|
332
|
-
else {
|
|
333
|
-
let n = Math.floor((l.value - c.value) / u.value), r = n * u.value / (l.value - c.value) * 100, i = r + (100 - r) / 2;
|
|
334
|
-
if (e < r) {
|
|
335
|
-
let i = r / n, a = Math.round(e / i);
|
|
336
|
-
t = c.value + a * u.value;
|
|
337
|
-
} else t = e < i ? c.value + n * u.value : l.value;
|
|
338
|
-
t = Number.parseFloat(t.toFixed(m.value));
|
|
339
|
-
}
|
|
340
|
-
t !== n.modelValue && a(r, t), !i.dragging && n.modelValue !== i.oldValue && (i.oldValue = n.modelValue), await P(), i.dragging && w(), x.value.updatePopper();
|
|
341
|
-
};
|
|
342
|
-
return W(() => i.dragging, (e) => {
|
|
343
|
-
y(e);
|
|
344
|
-
}), o(D, "touchstart", N, { passive: !1 }), {
|
|
345
|
-
disabled: s,
|
|
346
|
-
button: D,
|
|
347
|
-
tooltip: x,
|
|
348
|
-
tooltipVisible: S,
|
|
349
|
-
showTooltip: f,
|
|
350
|
-
persistent: p,
|
|
351
|
-
wrapperStyle: k,
|
|
352
|
-
formatValue: C,
|
|
353
|
-
handleMouseEnter: j,
|
|
354
|
-
handleMouseLeave: M,
|
|
355
|
-
onButtonDown: N,
|
|
356
|
-
onKeyDown: re,
|
|
357
|
-
setPosition: q
|
|
358
|
-
};
|
|
359
|
-
}, me = f({
|
|
360
|
-
modelValue: {
|
|
361
|
-
type: Number,
|
|
362
|
-
default: 0
|
|
363
|
-
},
|
|
364
|
-
vertical: Boolean,
|
|
365
|
-
tooltipClass: String,
|
|
366
|
-
placement: {
|
|
367
|
-
type: String,
|
|
368
|
-
values: _,
|
|
369
|
-
default: "top"
|
|
370
|
-
}
|
|
371
|
-
}), he = { [r]: (e) => d(e) }, Z = ["tabindex"], ge = /* @__PURE__ */ M({
|
|
372
|
-
name: "ElSliderButton",
|
|
373
|
-
__name: "button",
|
|
374
|
-
props: me,
|
|
375
|
-
emits: he,
|
|
376
|
-
setup(e, { expose: t, emit: n }) {
|
|
377
|
-
let r = e, i = n, a = p("slider"), o = z({
|
|
378
|
-
hovering: !1,
|
|
379
|
-
dragging: !1,
|
|
380
|
-
isClick: !1,
|
|
381
|
-
startX: 0,
|
|
382
|
-
currentX: 0,
|
|
383
|
-
startY: 0,
|
|
384
|
-
currentY: 0,
|
|
385
|
-
startPosition: 0,
|
|
386
|
-
newPosition: 0,
|
|
387
|
-
oldValue: r.modelValue
|
|
388
|
-
}), 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);
|
|
389
|
-
return t({
|
|
390
|
-
onButtonDown: b,
|
|
391
|
-
onKeyDown: x,
|
|
392
|
-
setPosition: S,
|
|
393
|
-
hovering: C,
|
|
394
|
-
dragging: w
|
|
395
|
-
}), (e, t) => (R(), k("div", {
|
|
396
|
-
ref_key: "button",
|
|
397
|
-
ref: l,
|
|
398
|
-
class: F([U(a).e("button-wrapper"), {
|
|
399
|
-
hover: U(C),
|
|
400
|
-
dragging: U(w)
|
|
401
|
-
}]),
|
|
402
|
-
style: I(U(h)),
|
|
403
|
-
tabindex: U(c) ? void 0 : 0,
|
|
404
|
-
onMouseenter: t[0] || (t[0] = (...e) => U(_) && U(_)(...e)),
|
|
405
|
-
onMouseleave: t[1] || (t[1] = (...e) => U(y) && U(y)(...e)),
|
|
406
|
-
onMousedown: t[2] || (t[2] = (...e) => U(b) && U(b)(...e)),
|
|
407
|
-
onFocus: t[3] || (t[3] = (...e) => U(_) && U(_)(...e)),
|
|
408
|
-
onBlur: t[4] || (t[4] = (...e) => U(y) && U(y)(...e)),
|
|
409
|
-
onKeydown: t[5] || (t[5] = (...e) => U(x) && U(x)(...e))
|
|
410
|
-
}, [j(U(v), {
|
|
411
|
-
ref_key: "tooltip",
|
|
412
|
-
ref: u,
|
|
413
|
-
visible: U(m),
|
|
414
|
-
placement: e.placement,
|
|
415
|
-
"fallback-placements": [
|
|
416
|
-
"top",
|
|
417
|
-
"bottom",
|
|
418
|
-
"right",
|
|
419
|
-
"left"
|
|
420
|
-
],
|
|
421
|
-
"stop-popper-mouse-event": !1,
|
|
422
|
-
"popper-class": e.tooltipClass,
|
|
423
|
-
disabled: !U(d),
|
|
424
|
-
persistent: s.value
|
|
425
|
-
}, {
|
|
426
|
-
content: K(() => [A("span", null, re(U(g)), 1)]),
|
|
427
|
-
default: K(() => [A("div", { class: F([U(a).e("button"), {
|
|
428
|
-
hover: U(C),
|
|
429
|
-
dragging: U(w)
|
|
430
|
-
}]) }, null, 2)]),
|
|
431
|
-
_: 1
|
|
432
|
-
}, 8, [
|
|
433
|
-
"visible",
|
|
434
|
-
"placement",
|
|
435
|
-
"popper-class",
|
|
436
|
-
"disabled",
|
|
437
|
-
"persistent"
|
|
438
|
-
])], 46, Z));
|
|
439
|
-
}
|
|
440
|
-
}), _e = M({
|
|
441
|
-
name: "ElSliderMarker",
|
|
442
|
-
props: f({ mark: {
|
|
443
|
-
type: h([String, Object]),
|
|
444
|
-
default: void 0
|
|
445
|
-
} }),
|
|
446
|
-
setup(e) {
|
|
447
|
-
let t = p("slider"), n = E(() => u(e.mark) ? e.mark : e.mark.label), r = E(() => u(e.mark) ? void 0 : e.mark.style);
|
|
448
|
-
return () => N("div", {
|
|
449
|
-
class: t.e("marks-text"),
|
|
450
|
-
style: r.value
|
|
451
|
-
}, n.value);
|
|
452
|
-
}
|
|
453
|
-
}), ve = [
|
|
454
|
-
"id",
|
|
455
|
-
"role",
|
|
456
|
-
"aria-label",
|
|
457
|
-
"aria-labelledby"
|
|
458
|
-
], ye = { key: 1 }, be = m(/* @__PURE__ */ M({
|
|
459
|
-
name: "ElSlider",
|
|
460
|
-
__name: "slider",
|
|
461
|
-
props: Y,
|
|
462
|
-
emits: oe,
|
|
463
|
-
setup(e, { expose: t, emit: n }) {
|
|
464
|
-
let r = e, i = n, a = p("slider"), { t: s } = g(), c = z({
|
|
465
|
-
firstValue: 0,
|
|
466
|
-
secondValue: 0,
|
|
467
|
-
oldValue: 0,
|
|
468
|
-
dragging: !1,
|
|
469
|
-
sliderSize: 1
|
|
470
|
-
}), { 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", {
|
|
471
|
-
min: r.min,
|
|
472
|
-
max: r.max
|
|
473
|
-
})), 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(() => [
|
|
474
|
-
a.b(),
|
|
475
|
-
a.m(J.value),
|
|
476
|
-
a.is("vertical", r.vertical),
|
|
477
|
-
{ [a.m("with-input")]: Y.value }
|
|
478
|
-
]), Z = ce(r);
|
|
479
|
-
de(r, c, _, v, i, l);
|
|
480
|
-
let be = E(() => d(r.step) ? r.step : 1), xe = E(() => {
|
|
481
|
-
let e = d(r.step) ? r.step : 1, t = [
|
|
482
|
-
r.min,
|
|
483
|
-
r.max,
|
|
484
|
-
e
|
|
485
|
-
].map((e) => {
|
|
486
|
-
let t = `${e}`.split(".")[1];
|
|
487
|
-
return t ? t.length : 0;
|
|
488
|
-
});
|
|
489
|
-
return Math.max.apply(null, t);
|
|
490
|
-
}), { sliderWrapper: Se } = se(r, c, C), { firstValue: Q, secondValue: $, sliderSize: Ce } = H(c), we = (e) => {
|
|
491
|
-
c.dragging = e;
|
|
492
|
-
};
|
|
493
|
-
return o(Se, "touchstart", N, { passive: !1 }), o(Se, "touchmove", N, { passive: !1 }), te(ae, {
|
|
494
|
-
...H(r),
|
|
495
|
-
sliderSize: Ce,
|
|
496
|
-
disabled: h,
|
|
497
|
-
precision: xe,
|
|
498
|
-
markList: Z,
|
|
499
|
-
emitChange: M,
|
|
500
|
-
resetSize: C,
|
|
501
|
-
updateDragging: we
|
|
502
|
-
}), t({ onSliderClick: ee }), (e, t) => {
|
|
503
|
-
var n, r;
|
|
504
|
-
return R(), k("div", {
|
|
505
|
-
id: e.range ? U(G) : void 0,
|
|
506
|
-
ref_key: "sliderWrapper",
|
|
507
|
-
ref: Se,
|
|
508
|
-
class: F(he.value),
|
|
509
|
-
role: e.range ? "group" : void 0,
|
|
510
|
-
"aria-label": e.range && !U(K) ? X.value : void 0,
|
|
511
|
-
"aria-labelledby": e.range && U(K) ? (n = U(l)) == null ? void 0 : n.labelId : void 0
|
|
512
|
-
}, [A("div", {
|
|
513
|
-
ref_key: "slider",
|
|
514
|
-
ref: u,
|
|
515
|
-
class: F([
|
|
516
|
-
U(a).e("runway"),
|
|
517
|
-
{ "show-input": Y.value },
|
|
518
|
-
U(a).is("disabled", U(h))
|
|
519
|
-
]),
|
|
520
|
-
style: I(U(x)),
|
|
521
|
-
onMousedown: t[0] || (t[0] = (...e) => U(P) && U(P)(...e)),
|
|
522
|
-
onTouchstartPassive: t[1] || (t[1] = (...e) => U(P) && U(P)(...e))
|
|
523
|
-
}, [
|
|
524
|
-
A("div", {
|
|
525
|
-
class: F(U(a).e("bar")),
|
|
526
|
-
style: I(U(S))
|
|
527
|
-
}, null, 6),
|
|
528
|
-
j(ge, {
|
|
529
|
-
id: e.range ? void 0 : U(G),
|
|
530
|
-
ref_key: "firstButton",
|
|
531
|
-
ref: f,
|
|
532
|
-
"model-value": U(Q),
|
|
533
|
-
vertical: e.vertical,
|
|
534
|
-
"tooltip-class": e.tooltipClass,
|
|
535
|
-
placement: e.placement,
|
|
536
|
-
role: "slider",
|
|
537
|
-
"aria-label": e.range || !U(K) ? oe.value : void 0,
|
|
538
|
-
"aria-labelledby": !e.range && U(K) ? (r = U(l)) == null ? void 0 : r.labelId : void 0,
|
|
539
|
-
"aria-valuemin": e.min,
|
|
540
|
-
"aria-valuemax": e.range ? U($) : e.max,
|
|
541
|
-
"aria-valuenow": U(Q),
|
|
542
|
-
"aria-valuetext": fe.value,
|
|
543
|
-
"aria-orientation": e.vertical ? "vertical" : "horizontal",
|
|
544
|
-
"aria-disabled": U(h),
|
|
545
|
-
"onUpdate:modelValue": U(B)
|
|
546
|
-
}, null, 8, [
|
|
547
|
-
"id",
|
|
548
|
-
"model-value",
|
|
549
|
-
"vertical",
|
|
550
|
-
"tooltip-class",
|
|
551
|
-
"placement",
|
|
552
|
-
"aria-label",
|
|
553
|
-
"aria-labelledby",
|
|
554
|
-
"aria-valuemin",
|
|
555
|
-
"aria-valuemax",
|
|
556
|
-
"aria-valuenow",
|
|
557
|
-
"aria-valuetext",
|
|
558
|
-
"aria-orientation",
|
|
559
|
-
"aria-disabled",
|
|
560
|
-
"onUpdate:modelValue"
|
|
561
|
-
]),
|
|
562
|
-
e.range ? (R(), D(ge, {
|
|
563
|
-
key: 0,
|
|
564
|
-
ref_key: "secondButton",
|
|
565
|
-
ref: m,
|
|
566
|
-
"model-value": U($),
|
|
567
|
-
vertical: e.vertical,
|
|
568
|
-
"tooltip-class": e.tooltipClass,
|
|
569
|
-
placement: e.placement,
|
|
570
|
-
role: "slider",
|
|
571
|
-
"aria-label": pe.value,
|
|
572
|
-
"aria-valuemin": U(Q),
|
|
573
|
-
"aria-valuemax": e.max,
|
|
574
|
-
"aria-valuenow": U($),
|
|
575
|
-
"aria-valuetext": me.value,
|
|
576
|
-
"aria-orientation": e.vertical ? "vertical" : "horizontal",
|
|
577
|
-
"aria-disabled": U(h),
|
|
578
|
-
"onUpdate:modelValue": U(ne)
|
|
579
|
-
}, null, 8, [
|
|
580
|
-
"model-value",
|
|
581
|
-
"vertical",
|
|
582
|
-
"tooltip-class",
|
|
583
|
-
"placement",
|
|
584
|
-
"aria-label",
|
|
585
|
-
"aria-valuemin",
|
|
586
|
-
"aria-valuemax",
|
|
587
|
-
"aria-valuenow",
|
|
588
|
-
"aria-valuetext",
|
|
589
|
-
"aria-orientation",
|
|
590
|
-
"aria-disabled",
|
|
591
|
-
"onUpdate:modelValue"
|
|
592
|
-
])) : O("v-if", !0),
|
|
593
|
-
e.showStops ? (R(), k("div", ye, [(R(!0), k(T, null, V(U(re), (e, t) => (R(), k("div", {
|
|
594
|
-
key: t,
|
|
595
|
-
class: F(U(a).e("stop")),
|
|
596
|
-
style: I(U(W)(e))
|
|
597
|
-
}, null, 6))), 128))])) : O("v-if", !0),
|
|
598
|
-
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", {
|
|
599
|
-
key: t,
|
|
600
|
-
style: I(U(W)(e.position)),
|
|
601
|
-
class: F([U(a).e("stop"), U(a).e("marks-stop")])
|
|
602
|
-
}, 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), {
|
|
603
|
-
key: t,
|
|
604
|
-
mark: e.mark,
|
|
605
|
-
style: I(U(W)(e.position)),
|
|
606
|
-
onMousedown: q((t) => U(L)(e.position), ["stop"])
|
|
607
|
-
}, null, 8, [
|
|
608
|
-
"mark",
|
|
609
|
-
"style",
|
|
610
|
-
"onMousedown"
|
|
611
|
-
]))), 128))], 2)], 64)) : O("v-if", !0)
|
|
612
|
-
], 38), Y.value ? (R(), D(U(w), {
|
|
613
|
-
key: 0,
|
|
614
|
-
ref: "input",
|
|
615
|
-
"model-value": U(Q),
|
|
616
|
-
class: F(U(a).e("input")),
|
|
617
|
-
step: be.value,
|
|
618
|
-
disabled: U(h),
|
|
619
|
-
controls: e.showInputControls,
|
|
620
|
-
min: e.min,
|
|
621
|
-
max: e.max,
|
|
622
|
-
precision: xe.value,
|
|
623
|
-
size: ie.value,
|
|
624
|
-
"onUpdate:modelValue": U(B),
|
|
625
|
-
onChange: U(M)
|
|
626
|
-
}, null, 8, [
|
|
627
|
-
"model-value",
|
|
628
|
-
"class",
|
|
629
|
-
"step",
|
|
630
|
-
"disabled",
|
|
631
|
-
"controls",
|
|
632
|
-
"min",
|
|
633
|
-
"max",
|
|
634
|
-
"precision",
|
|
635
|
-
"size",
|
|
636
|
-
"onUpdate:modelValue",
|
|
637
|
-
"onChange"
|
|
638
|
-
])) : O("v-if", !0)], 10, ve);
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
}));
|
|
642
|
-
//#endregion
|
|
643
|
-
export { be as t };
|
package/chunks/CwhXr2Qc.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* empty css */
|