@vunk/form 2.19.19 → 2.19.21
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/components/ai-provider/index.cjs +1 -0
- package/components/ai-provider/index.d.ts +7 -0
- package/components/ai-provider/index.mjs +61 -0
- package/components/ai-provider/src/ctx.d.ts +8 -0
- package/components/ai-provider/src/index.vue.d.ts +23 -0
- package/components/ai-provider/src/types.d.ts +56 -0
- package/components/ai-provider/src/use.d.ts +3 -0
- package/components/api-tables-select/index.cjs +1 -1
- package/components/api-tables-select/index.mjs +1 -1
- package/components/api-tables-select/src/ctx.d.ts +57 -57
- package/components/api-tables-select/src/index.vue.d.ts +46 -419
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +12 -12
- package/components/button/src/ctx.d.ts +7 -2
- package/components/button/src/index.vue.d.ts +36 -14
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +136 -141
- package/components/card-input-collection/src/core.vue.d.ts +18 -7
- package/components/card-input-collection/src/ctx.d.ts +7 -2
- package/components/card-input-collection/src/index.vue.d.ts +18 -7
- package/components/cascader/index.cjs +1 -1
- package/components/cascader/index.mjs +38 -39
- package/components/cascader/src/ctx.d.ts +8 -3
- package/components/cascader/src/index.vue.d.ts +19 -8
- package/components/checkbox/src/ctx.d.ts +8 -3
- package/components/checkbox/src/index.vue.d.ts +43 -21
- package/components/{cloneDeep-DE0l40hv.mjs → cloneDeep-2YeQ7w2t.mjs} +10 -10
- package/components/cloneDeep-Btpy0oPF.js +1 -0
- package/components/collapse/index.cjs +1 -1
- package/components/collapse/index.mjs +19 -22
- package/components/collapse-item/index.cjs +1 -1
- package/components/collapse-item/index.mjs +21 -21
- package/components/collapse-item/src/index.vue.d.ts +2 -2
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.mjs +26 -27
- package/components/color-picker/src/ctx.d.ts +7 -2
- package/components/color-picker/src/index.vue.d.ts +17 -6
- package/components/{style.css → components.css} +1 -1
- package/components/date-picker/index.cjs +1 -1
- package/components/date-picker/index.mjs +40 -41
- package/components/date-picker/src/ctx.d.ts +8 -3
- package/components/date-picker/src/index.vue.d.ts +17 -6
- package/components/date-picker-range/index.cjs +1 -1
- package/components/date-picker-range/index.mjs +17 -17
- package/components/date-picker-range/src/ctx.d.ts +14 -9
- package/components/date-picker-range/src/index.vue.d.ts +48 -26
- package/components/dialog/index.cjs +1 -1
- package/components/dialog/index.mjs +41 -52
- package/components/dialog/src/ctx.d.ts +1 -1
- package/components/dialog/src/index.vue.d.ts +1 -1
- package/components/dialog-input-collection/index.cjs +1 -1
- package/components/dialog-input-collection/index.mjs +124 -122
- package/components/dialog-input-collection/src/ctx.d.ts +7 -2
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
- package/components/dialog-input-collection/src/index.vue.d.ts +17 -6
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +193 -202
- package/components/download-plus/src/ctx.d.ts +7 -2
- package/components/download-plus/src/index.vue.d.ts +32 -10
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +72 -75
- package/components/editable-text/src/ctx.d.ts +7 -2
- package/components/editable-text/src/index.vue.d.ts +18 -7
- package/components/el-slider/index.cjs +1 -1
- package/components/el-slider/index.mjs +230 -233
- package/components/el-slider/src/composables/index.cjs +1 -1
- package/components/el-slider/src/composables/index.mjs +1 -1
- package/components/el-slider/src/slider-core.vue.d.ts +3 -3
- package/components/esri-input-geojson/index.cjs +1 -5
- package/components/esri-input-geojson/index.mjs +59 -68
- package/components/esri-input-geojson/src/append.vue.d.ts +2 -2
- package/components/esri-input-geojson/src/ctx.d.ts +9 -4
- package/components/esri-input-geojson/src/index.vue.d.ts +65 -30
- package/components/fieldset/src/index.vue.d.ts +1 -1
- package/components/form/index.cjs +1 -1
- package/components/form/index.mjs +96 -101
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +4 -4
- package/components/form/src/use.d.ts +2 -2
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +179 -107
- package/components/form-item/src/core.vue.d.ts +7 -3
- package/components/form-item/src/ctx.d.ts +7 -1
- package/components/form-item/src/index.vue.d.ts +13 -2
- package/components/form-item/src/use.d.ts +11 -0
- package/components/form-item-renderer/index.cjs +1 -1
- package/components/form-item-renderer/index.d.ts +1 -0
- package/components/form-item-renderer/index.mjs +85 -78
- package/components/form-item-renderer/src/use.d.ts +3 -0
- package/components/forms-provider/index.cjs +1 -1
- package/components/forms-provider/index.mjs +18 -21
- package/components/index-BIo_4rr_.mjs +18620 -0
- package/components/index-Bc7UifHG.js +1 -0
- package/components/index-D0D9ABpH.js +108 -0
- package/components/{index-CeHbpfCD.mjs → index-DCNYT7Wv.mjs} +0 -1
- package/components/information-collection/index.cjs +1 -1
- package/components/information-collection/index.mjs +32 -38
- package/components/information-collection/src/ctx.d.ts +7 -2
- package/components/information-collection/src/index.vue.d.ts +17 -6
- package/components/information-tag/index.cjs +1 -1
- package/components/information-tag/index.mjs +9 -12
- package/components/information-tag/src/index.vue.d.ts +1 -1
- package/components/input/index.cjs +1 -1
- package/components/input/index.mjs +27 -27
- package/components/input/src/ctx.d.ts +9 -4
- package/components/input/src/index.vue.d.ts +35 -13
- package/components/input-array/index.cjs +1 -1
- package/components/input-array/index.mjs +71 -74
- package/components/input-array/src/ctx.d.ts +7 -2
- package/components/input-array/src/index.vue.d.ts +18 -7
- package/components/input-collection/index.cjs +1 -1
- package/components/input-collection/index.mjs +121 -126
- package/components/input-collection/src/core.vue.d.ts +17 -6
- package/components/input-collection/src/ctx.d.ts +7 -2
- package/components/input-collection/src/index.vue.d.ts +17 -6
- package/components/input-file/src/index.vue.d.ts +19 -8
- package/components/input-link/index.cjs +1 -1
- package/components/input-link/index.mjs +1 -1
- package/components/input-link/src/ctx.d.ts +7 -2
- package/components/input-link/src/index.vue.d.ts +54 -21
- package/components/input-number/index.cjs +1 -1
- package/components/input-number/index.mjs +30 -33
- package/components/input-number/src/ctx.d.ts +8 -3
- package/components/input-number/src/index.vue.d.ts +33 -11
- package/components/input-tag/index.cjs +1 -1
- package/components/input-tag/index.mjs +24 -24
- package/components/input-tag/src/ctx.d.ts +9 -4
- package/components/input-tag/src/index.vue.d.ts +33 -11
- package/components/monaco-editor/src/ctx.d.ts +8 -3
- package/components/monaco-editor/src/index.vue.d.ts +38 -16
- package/components/radio/src/ctx.d.ts +7 -2
- package/components/radio/src/index.vue.d.ts +40 -18
- package/components/radio/src/wraper.vue.d.ts +22 -11
- package/components/renderer-data/index.cjs +1 -1
- package/components/renderer-data/index.mjs +14 -17
- package/components/select/index.cjs +1 -1
- package/components/select/index.mjs +165 -112
- package/components/select/src/core.vue.d.ts +107 -70
- package/components/select/src/ctx.d.ts +16 -4
- package/components/select/src/index.vue.d.ts +62 -42
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.mjs +30 -31
- package/components/slider/src/ctx.d.ts +7 -2
- package/components/slider/src/index.vue.d.ts +18 -7
- package/components/switch/src/ctx.d.ts +7 -2
- package/components/switch/src/index.vue.d.ts +18 -7
- package/components/tables-select/index.cjs +1 -1
- package/components/tables-select/index.mjs +4 -4
- package/components/tables-select/src/ctx.d.ts +68 -68
- package/components/tables-select/src/index.vue.d.ts +52 -420
- package/components/template-instances-provider/index.cjs +1 -1
- package/components/template-instances-provider/index.mjs +11 -17
- package/components/templates-default/src/index.vue.d.ts +413 -185
- package/components/templates-esri/src/index.vue.d.ts +65 -30
- package/components/templates-variant/src/index.vue.d.ts +48 -26
- package/components/time-picker/index.cjs +1 -1
- package/components/time-picker/index.mjs +38 -39
- package/components/time-picker/src/ctx.d.ts +8 -3
- package/components/time-picker/src/index.vue.d.ts +17 -6
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +244 -253
- package/components/upload/src/ctx.d.ts +8 -3
- package/components/upload/src/file.vue.d.ts +3 -3
- package/components/upload/src/index.vue.d.ts +37 -15
- package/components/upload/src/wraper.vue.d.ts +19 -8
- package/components/upload-plus/index.cjs +7 -15
- package/components/upload-plus/index.mjs +1879 -1897
- package/components/upload-plus/src/ctx.d.ts +7 -2
- package/components/upload-plus/src/index.vue.d.ts +18 -7
- package/components/use-watch-C3iIa2DX.js +1 -0
- package/components/use-watch-Dp64x0si.mjs +411 -0
- package/components/van-cascader/src/ctx.d.ts +7 -2
- package/components/van-cascader/src/index.vue.d.ts +19 -8
- package/components/var-datetime-picker/src/ctx.d.ts +7 -2
- package/components/var-datetime-picker/src/index.vue.d.ts +30 -8
- package/components/vditor/src/ctx.d.ts +7 -2
- package/components/vditor/src/index.vue.d.ts +41 -19
- package/composables/element-plus/index.cjs +1 -1
- package/composables/element-plus/index.mjs +10 -10
- package/composables/form-mitt/index.mjs +1 -1
- package/composables/index.cjs +1 -1
- package/composables/index.mjs +53 -53
- package/index.css +1 -1
- package/locale/index.cjs +1 -1
- package/locale/index.mjs +8 -5
- package/locale/lang/ar.d.ts +1 -0
- package/locale/lang/en.d.ts +1 -0
- package/locale/lang/zh-cn.d.ts +1 -0
- package/package.json +9 -1
- package/shared/element-plus/ctx.d.ts +16 -16
- package/shared/types/source/index.d.ts +5 -0
- package/shared/upload/index.cjs +1 -1
- package/shared/upload/index.mjs +166 -165
- package/components/cloneDeep-DaYwfXwD.js +0 -1
- package/components/index-BBriTmQP.js +0 -1
- package/components/use-watch-Bfrz9pv_.js +0 -1
- package/components/use-watch-t49wP7jy.mjs +0 -414
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { CHANGE_EVENT as
|
|
1
|
+
import { defineComponent as Q, computed as n, reactive as ne, toRefs as J, openBlock as u, createElementBlock as p, unref as e, normalizeStyle as E, normalizeClass as m, createVNode as se, withCtx as le, createElementVNode as C, toDisplayString as Se, h as Ve, provide as ke, createBlock as G, createCommentVNode as $, Fragment as A, renderList as H, withModifiers as we } from "vue";
|
|
2
|
+
import { c as Be, b as he, d as Ee, a as Ce, e as Le, u as Ie, f as re, s as Te } from "../use-watch-Dp64x0si.mjs";
|
|
3
|
+
import { CHANGE_EVENT as Me, INPUT_EVENT as Ne, UPDATE_MODEL_EVENT as ie, useNamespace as Z, ElTooltip as ze, useLocale as Pe, useFormItemInputId as xe, useFormSize as De, ElInputNumber as Fe } from "element-plus";
|
|
4
4
|
import "@vunk/shared/function";
|
|
5
|
-
const
|
|
5
|
+
const Ue = {
|
|
6
6
|
/**
|
|
7
7
|
* @description binding value
|
|
8
8
|
*/
|
|
@@ -153,15 +153,15 @@ const $e = {
|
|
|
153
153
|
default: !0
|
|
154
154
|
},
|
|
155
155
|
ariaLabel: String
|
|
156
|
-
},
|
|
157
|
-
[
|
|
158
|
-
[
|
|
159
|
-
[
|
|
156
|
+
}, q = (l) => typeof l == "number" || Array.isArray(l) && l.every((d) => typeof d == "number"), Re = {
|
|
157
|
+
[ie]: q,
|
|
158
|
+
[Ne]: q,
|
|
159
|
+
[Me]: q
|
|
160
160
|
};
|
|
161
|
-
var
|
|
162
|
-
return l.concat([
|
|
161
|
+
var $e = "top", Ae = "bottom", We = "right", Ke = "left", Oe = "auto", je = [$e, Ae, We, Ke], Xe = "start", Ye = "end", Ge = /* @__PURE__ */ [].concat(je, [Oe]).reduce(function(l, d) {
|
|
162
|
+
return l.concat([d, d + "-" + Xe, d + "-" + Ye]);
|
|
163
163
|
}, []);
|
|
164
|
-
const
|
|
164
|
+
const He = {
|
|
165
165
|
modelValue: {
|
|
166
166
|
type: Number,
|
|
167
167
|
default: 0
|
|
@@ -170,18 +170,18 @@ const Je = {
|
|
|
170
170
|
tooltipClass: String,
|
|
171
171
|
placement: {
|
|
172
172
|
type: String,
|
|
173
|
-
values:
|
|
173
|
+
values: Ge,
|
|
174
174
|
default: "top"
|
|
175
175
|
}
|
|
176
|
-
},
|
|
177
|
-
[
|
|
178
|
-
},
|
|
176
|
+
}, qe = {
|
|
177
|
+
[ie]: (l) => typeof l == "number"
|
|
178
|
+
}, Je = ["tabindex"], oe = /* @__PURE__ */ Q({
|
|
179
179
|
name: "ElSliderButton",
|
|
180
180
|
__name: "button",
|
|
181
|
-
props:
|
|
182
|
-
emits:
|
|
183
|
-
setup(l, { expose:
|
|
184
|
-
const t = l,
|
|
181
|
+
props: He,
|
|
182
|
+
emits: qe,
|
|
183
|
+
setup(l, { expose: d, emit: L }) {
|
|
184
|
+
const t = l, z = L, r = Z("slider"), I = n(() => t.placement || "top"), T = ne({
|
|
185
185
|
hovering: !1,
|
|
186
186
|
dragging: !1,
|
|
187
187
|
isClick: !1,
|
|
@@ -193,283 +193,280 @@ const Je = {
|
|
|
193
193
|
newPosition: 0,
|
|
194
194
|
oldValue: t.modelValue
|
|
195
195
|
}), v = n(
|
|
196
|
-
() =>
|
|
196
|
+
() => P.value ? K.value : !1
|
|
197
197
|
), {
|
|
198
|
-
disabled:
|
|
199
|
-
button:
|
|
200
|
-
tooltip:
|
|
201
|
-
showTooltip:
|
|
202
|
-
persistent:
|
|
203
|
-
tooltipVisible:
|
|
204
|
-
wrapperStyle:
|
|
205
|
-
formatValue:
|
|
206
|
-
handleMouseEnter:
|
|
207
|
-
handleMouseLeave:
|
|
208
|
-
onButtonDown:
|
|
209
|
-
onKeyDown:
|
|
210
|
-
setPosition:
|
|
211
|
-
} =
|
|
212
|
-
return
|
|
213
|
-
onButtonDown:
|
|
214
|
-
onKeyDown:
|
|
215
|
-
setPosition:
|
|
216
|
-
hovering:
|
|
198
|
+
disabled: y,
|
|
199
|
+
button: g,
|
|
200
|
+
tooltip: W,
|
|
201
|
+
showTooltip: P,
|
|
202
|
+
persistent: K,
|
|
203
|
+
tooltipVisible: b,
|
|
204
|
+
wrapperStyle: x,
|
|
205
|
+
formatValue: D,
|
|
206
|
+
handleMouseEnter: S,
|
|
207
|
+
handleMouseLeave: V,
|
|
208
|
+
onButtonDown: k,
|
|
209
|
+
onKeyDown: w,
|
|
210
|
+
setPosition: F
|
|
211
|
+
} = Be(t, T, z), { hovering: M, dragging: c } = J(T);
|
|
212
|
+
return d({
|
|
213
|
+
onButtonDown: k,
|
|
214
|
+
onKeyDown: w,
|
|
215
|
+
setPosition: F,
|
|
216
|
+
hovering: M,
|
|
217
217
|
dragging: c
|
|
218
|
-
}), (
|
|
218
|
+
}), (O, o) => (u(), p("div", {
|
|
219
219
|
ref_key: "button",
|
|
220
|
-
ref:
|
|
221
|
-
class: m([e(r).e("button-wrapper"), { hover: e(
|
|
222
|
-
style:
|
|
223
|
-
tabindex: e(
|
|
220
|
+
ref: g,
|
|
221
|
+
class: m([e(r).e("button-wrapper"), { hover: e(M), dragging: e(c) }]),
|
|
222
|
+
style: E(e(x)),
|
|
223
|
+
tabindex: e(y) ? void 0 : 0,
|
|
224
224
|
onMouseenter: o[0] || (o[0] = //@ts-ignore
|
|
225
|
-
(...s) => e(g) && e(g)(...s)),
|
|
226
|
-
onMouseleave: o[1] || (o[1] = //@ts-ignore
|
|
227
225
|
(...s) => e(S) && e(S)(...s)),
|
|
228
|
-
|
|
226
|
+
onMouseleave: o[1] || (o[1] = //@ts-ignore
|
|
229
227
|
(...s) => e(V) && e(V)(...s)),
|
|
228
|
+
onMousedown: o[2] || (o[2] = //@ts-ignore
|
|
229
|
+
(...s) => e(k) && e(k)(...s)),
|
|
230
230
|
onFocus: o[3] || (o[3] = //@ts-ignore
|
|
231
|
-
(...s) => e(g) && e(g)(...s)),
|
|
232
|
-
onBlur: o[4] || (o[4] = //@ts-ignore
|
|
233
231
|
(...s) => e(S) && e(S)(...s)),
|
|
232
|
+
onBlur: o[4] || (o[4] = //@ts-ignore
|
|
233
|
+
(...s) => e(V) && e(V)(...s)),
|
|
234
234
|
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
235
|
-
(...s) => e(
|
|
235
|
+
(...s) => e(w) && e(w)(...s))
|
|
236
236
|
}, [
|
|
237
|
-
|
|
237
|
+
se(e(ze), {
|
|
238
238
|
ref_key: "tooltip",
|
|
239
|
-
ref:
|
|
240
|
-
visible: e(
|
|
241
|
-
placement:
|
|
239
|
+
ref: W,
|
|
240
|
+
visible: e(b),
|
|
241
|
+
placement: I.value,
|
|
242
242
|
"fallback-placements": ["top", "bottom", "right", "left"],
|
|
243
243
|
"stop-popper-mouse-event": !1,
|
|
244
|
-
"popper-class":
|
|
245
|
-
disabled: !e(
|
|
244
|
+
"popper-class": O.tooltipClass,
|
|
245
|
+
disabled: !e(P),
|
|
246
246
|
persistent: v.value
|
|
247
247
|
}, {
|
|
248
|
-
content:
|
|
249
|
-
|
|
248
|
+
content: le(() => [
|
|
249
|
+
C("span", null, Se(e(D)), 1)
|
|
250
250
|
]),
|
|
251
|
-
default:
|
|
252
|
-
|
|
253
|
-
class: m([e(r).e("button"), { hover: e(
|
|
251
|
+
default: le(() => [
|
|
252
|
+
C("div", {
|
|
253
|
+
class: m([e(r).e("button"), { hover: e(M), dragging: e(c) }])
|
|
254
254
|
}, null, 2)
|
|
255
255
|
]),
|
|
256
256
|
_: 1
|
|
257
257
|
}, 8, ["visible", "placement", "popper-class", "disabled", "persistent"])
|
|
258
|
-
], 46,
|
|
258
|
+
], 46, Je));
|
|
259
259
|
}
|
|
260
|
-
}),
|
|
260
|
+
}), Qe = {
|
|
261
261
|
mark: {
|
|
262
262
|
type: [String, Object],
|
|
263
263
|
default: void 0
|
|
264
264
|
}
|
|
265
|
-
},
|
|
265
|
+
}, Ze = Q({
|
|
266
266
|
name: "ElSliderMarker",
|
|
267
|
-
props:
|
|
267
|
+
props: Qe,
|
|
268
268
|
setup(l) {
|
|
269
|
-
const
|
|
269
|
+
const d = Z("slider"), L = n(() => typeof l.mark == "string" ? l.mark : l.mark.label), t = n(
|
|
270
270
|
() => typeof l.mark == "string" ? void 0 : l.mark.style
|
|
271
271
|
);
|
|
272
|
-
return () =>
|
|
272
|
+
return () => Ve(
|
|
273
273
|
"div",
|
|
274
274
|
{
|
|
275
|
-
class:
|
|
275
|
+
class: d.e("marks-text"),
|
|
276
276
|
style: t.value
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
L.value
|
|
279
279
|
);
|
|
280
280
|
}
|
|
281
|
-
}),
|
|
281
|
+
}), _e = ["id", "role", "aria-label", "aria-labelledby"], et = { key: 1 }, nt = /* @__PURE__ */ Q({
|
|
282
282
|
name: "VkfSliderCore",
|
|
283
283
|
__name: "slider-core",
|
|
284
284
|
props: {
|
|
285
|
-
|
|
285
|
+
...Ue,
|
|
286
286
|
isRtl: {
|
|
287
287
|
type: Boolean,
|
|
288
288
|
default: !1
|
|
289
289
|
}
|
|
290
290
|
},
|
|
291
|
-
emits:
|
|
292
|
-
setup(l, { expose:
|
|
293
|
-
const t = l,
|
|
291
|
+
emits: Re,
|
|
292
|
+
setup(l, { expose: d, emit: L }) {
|
|
293
|
+
const t = l, z = L, r = Z("slider"), { t: I } = Pe(), T = (a) => typeof a == "number", v = ne({
|
|
294
294
|
firstValue: 0,
|
|
295
295
|
secondValue: 0,
|
|
296
296
|
oldValue: 0,
|
|
297
297
|
dragging: !1,
|
|
298
298
|
sliderSize: 1
|
|
299
|
-
}),
|
|
300
|
-
elFormItem:
|
|
301
|
-
slider:
|
|
302
|
-
firstButton:
|
|
303
|
-
secondButton:
|
|
304
|
-
sliderDisabled:
|
|
305
|
-
minValue:
|
|
306
|
-
maxValue:
|
|
307
|
-
runwayStyle:
|
|
308
|
-
barStyle:
|
|
309
|
-
resetSize:
|
|
310
|
-
emitChange:
|
|
311
|
-
onSliderWrapperPrevent:
|
|
312
|
-
onSliderClick:
|
|
299
|
+
}), y = n(() => t.isRtl), {
|
|
300
|
+
elFormItem: g,
|
|
301
|
+
slider: W,
|
|
302
|
+
firstButton: P,
|
|
303
|
+
secondButton: K,
|
|
304
|
+
sliderDisabled: b,
|
|
305
|
+
minValue: x,
|
|
306
|
+
maxValue: D,
|
|
307
|
+
runwayStyle: S,
|
|
308
|
+
barStyle: V,
|
|
309
|
+
resetSize: k,
|
|
310
|
+
emitChange: w,
|
|
311
|
+
onSliderWrapperPrevent: F,
|
|
312
|
+
onSliderClick: M,
|
|
313
313
|
onSliderDown: c,
|
|
314
|
-
onSliderMarkerDown:
|
|
314
|
+
onSliderMarkerDown: O,
|
|
315
315
|
setFirstValue: o,
|
|
316
316
|
setSecondValue: s
|
|
317
|
-
} =
|
|
318
|
-
formItemContext:
|
|
319
|
-
}),
|
|
320
|
-
() => t.inputSize ||
|
|
321
|
-
),
|
|
317
|
+
} = he(t, v, z, y), { stops: ue, getStopStyle: j } = Ee(t, v, x, D, y), { inputId: _, isLabeledByFormItem: U } = xe(t, {
|
|
318
|
+
formItemContext: g
|
|
319
|
+
}), ee = De(), de = n(
|
|
320
|
+
() => t.inputSize || ee.value
|
|
321
|
+
), X = n(() => t.showInput && !t.range && t.step !== "mark"), te = n(() => t.ariaLabel || I("el.slider.defaultLabel", {
|
|
322
322
|
min: t.min,
|
|
323
323
|
max: t.max
|
|
324
|
-
})),
|
|
324
|
+
})), pe = n(() => t.range ? t.rangeStartLabel || I("el.slider.defaultRangeStartLabel") : te.value), me = n(() => t.formatValueText ? t.formatValueText(B.value) : `${B.value}`), ve = n(() => t.rangeEndLabel || I("el.slider.defaultRangeEndLabel")), ce = n(() => t.formatValueText ? t.formatValueText(N.value) : `${N.value}`), fe = n(() => [
|
|
325
325
|
r.b(),
|
|
326
|
-
r.m(
|
|
326
|
+
r.m(ee.value),
|
|
327
327
|
r.is("vertical", t.vertical),
|
|
328
|
-
r.is("rtl",
|
|
329
|
-
{ [r.m("with-input")]:
|
|
330
|
-
]),
|
|
331
|
-
|
|
332
|
-
const
|
|
333
|
-
const a =
|
|
334
|
-
const
|
|
335
|
-
return
|
|
328
|
+
r.is("rtl", y.value),
|
|
329
|
+
{ [r.m("with-input")]: X.value }
|
|
330
|
+
]), R = Ce(t);
|
|
331
|
+
Le(t, v, x, D, z, g);
|
|
332
|
+
const be = n(() => T(t.step) ? t.step : 1), ae = n(() => {
|
|
333
|
+
const a = T(t.step) ? t.step : 1, h = [t.min, t.max, a].map((i) => {
|
|
334
|
+
const f = `${i}`.split(".")[1];
|
|
335
|
+
return f ? f.length : 0;
|
|
336
336
|
});
|
|
337
|
-
return Math.max.apply(null,
|
|
338
|
-
}), { sliderWrapper:
|
|
337
|
+
return Math.max.apply(null, h);
|
|
338
|
+
}), { sliderWrapper: Y } = Ie(t, v, k), { firstValue: B, secondValue: N, sliderSize: ye } = J(v), ge = (a) => {
|
|
339
339
|
v.dragging = a;
|
|
340
340
|
};
|
|
341
|
-
return
|
|
341
|
+
return re(Y, "touchstart", F, {
|
|
342
342
|
passive: !1
|
|
343
|
-
}),
|
|
343
|
+
}), re(Y, "touchmove", F, {
|
|
344
344
|
passive: !1
|
|
345
|
-
}),
|
|
346
|
-
...
|
|
347
|
-
sliderSize:
|
|
348
|
-
disabled:
|
|
349
|
-
precision:
|
|
350
|
-
markList:
|
|
351
|
-
emitChange:
|
|
352
|
-
resetSize:
|
|
353
|
-
updateDragging:
|
|
354
|
-
isRtl:
|
|
355
|
-
}),
|
|
356
|
-
onSliderClick:
|
|
357
|
-
}), (a,
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
345
|
+
}), ke(Te, {
|
|
346
|
+
...J(t),
|
|
347
|
+
sliderSize: ye,
|
|
348
|
+
disabled: b,
|
|
349
|
+
precision: ae,
|
|
350
|
+
markList: R,
|
|
351
|
+
emitChange: w,
|
|
352
|
+
resetSize: k,
|
|
353
|
+
updateDragging: ge,
|
|
354
|
+
isRtl: y
|
|
355
|
+
}), d({
|
|
356
|
+
onSliderClick: M
|
|
357
|
+
}), (a, h) => (u(), p("div", {
|
|
358
|
+
id: a.range ? e(_) : void 0,
|
|
359
|
+
ref_key: "sliderWrapper",
|
|
360
|
+
ref: Y,
|
|
361
|
+
class: m(fe.value),
|
|
362
|
+
role: a.range ? "group" : void 0,
|
|
363
|
+
"aria-label": a.range && !e(U) ? te.value : void 0,
|
|
364
|
+
"aria-labelledby": a.range && e(U) ? e(g)?.labelId : void 0
|
|
365
|
+
}, [
|
|
366
|
+
C("div", {
|
|
367
|
+
ref_key: "slider",
|
|
368
|
+
ref: W,
|
|
369
|
+
class: m([
|
|
370
|
+
e(r).e("runway"),
|
|
371
|
+
{ "show-input": X.value },
|
|
372
|
+
e(r).is("disabled", e(b))
|
|
373
|
+
]),
|
|
374
|
+
style: E(e(S)),
|
|
375
|
+
onMousedown: h[0] || (h[0] = //@ts-ignore
|
|
376
|
+
(...i) => e(c) && e(c)(...i)),
|
|
377
|
+
onTouchstartPassive: h[1] || (h[1] = //@ts-ignore
|
|
378
|
+
(...i) => e(c) && e(c)(...i))
|
|
367
379
|
}, [
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
"tooltip-class": a.tooltipClass,
|
|
393
|
-
placement: a.placement,
|
|
394
|
-
role: "slider",
|
|
395
|
-
"aria-label": a.range || !e(R) ? ve.value : void 0,
|
|
396
|
-
"aria-labelledby": !a.range && e(R) ? (N = e(y)) == null ? void 0 : N.labelId : void 0,
|
|
397
|
-
"aria-valuemin": a.min,
|
|
398
|
-
"aria-valuemax": a.range ? e(M) : a.max,
|
|
399
|
-
"aria-valuenow": e(w),
|
|
400
|
-
"aria-valuetext": ce.value,
|
|
401
|
-
"aria-orientation": a.vertical ? "vertical" : "horizontal",
|
|
402
|
-
"aria-disabled": e(f),
|
|
403
|
-
"onUpdate:modelValue": e(o)
|
|
404
|
-
}, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
|
|
405
|
-
a.range ? (i(), q(se, {
|
|
406
|
-
key: 0,
|
|
407
|
-
ref_key: "secondButton",
|
|
408
|
-
ref: j,
|
|
409
|
-
"model-value": e(M),
|
|
410
|
-
vertical: a.vertical,
|
|
411
|
-
"tooltip-class": a.tooltipClass,
|
|
412
|
-
placement: a.placement,
|
|
413
|
-
role: "slider",
|
|
414
|
-
"aria-label": fe.value,
|
|
415
|
-
"aria-valuemin": e(w),
|
|
416
|
-
"aria-valuemax": a.max,
|
|
417
|
-
"aria-valuenow": e(M),
|
|
418
|
-
"aria-valuetext": be.value,
|
|
419
|
-
"aria-orientation": a.vertical ? "vertical" : "horizontal",
|
|
420
|
-
"aria-disabled": e(f),
|
|
421
|
-
"onUpdate:modelValue": e(s)
|
|
422
|
-
}, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : W("", !0),
|
|
423
|
-
a.showStops ? (i(), p("div", at, [
|
|
424
|
-
(i(!0), p(K, null, J(e(pe), (d, z) => (i(), p("div", {
|
|
425
|
-
key: z,
|
|
426
|
-
class: m(e(r).e("stop")),
|
|
427
|
-
style: h(e(Y)(d))
|
|
428
|
-
}, null, 6))), 128))
|
|
429
|
-
])) : W("", !0),
|
|
430
|
-
e($).length > 0 ? (i(), p(K, { key: 2 }, [
|
|
431
|
-
E("div", null, [
|
|
432
|
-
(i(!0), p(K, null, J(e($), (d, z) => (i(), p("div", {
|
|
433
|
-
key: z,
|
|
434
|
-
style: h(e(Y)(d.position)),
|
|
435
|
-
class: m([e(r).e("stop"), e(r).e("marks-stop")])
|
|
436
|
-
}, null, 6))), 128))
|
|
437
|
-
]),
|
|
438
|
-
E("div", {
|
|
439
|
-
class: m(e(r).e("marks"))
|
|
440
|
-
}, [
|
|
441
|
-
(i(!0), p(K, null, J(e($), (d, z) => (i(), q(e(et), {
|
|
442
|
-
key: z,
|
|
443
|
-
mark: d.mark,
|
|
444
|
-
style: h(e(Y)(d.position)),
|
|
445
|
-
onMousedown: he((lt) => e(X)(d.position), ["stop"])
|
|
446
|
-
}, null, 8, ["mark", "style", "onMousedown"]))), 128))
|
|
447
|
-
], 2)
|
|
448
|
-
], 64)) : W("", !0)
|
|
449
|
-
], 38),
|
|
450
|
-
G.value ? (i(), q(e(Re), {
|
|
380
|
+
C("div", {
|
|
381
|
+
class: m(e(r).e("bar")),
|
|
382
|
+
style: E(e(V))
|
|
383
|
+
}, null, 6),
|
|
384
|
+
se(oe, {
|
|
385
|
+
id: a.range ? void 0 : e(_),
|
|
386
|
+
ref_key: "firstButton",
|
|
387
|
+
ref: P,
|
|
388
|
+
"model-value": e(B),
|
|
389
|
+
vertical: a.vertical,
|
|
390
|
+
"tooltip-class": a.tooltipClass,
|
|
391
|
+
placement: a.placement,
|
|
392
|
+
role: "slider",
|
|
393
|
+
"aria-label": a.range || !e(U) ? pe.value : void 0,
|
|
394
|
+
"aria-labelledby": !a.range && e(U) ? e(g)?.labelId : void 0,
|
|
395
|
+
"aria-valuemin": a.min,
|
|
396
|
+
"aria-valuemax": a.range ? e(N) : a.max,
|
|
397
|
+
"aria-valuenow": e(B),
|
|
398
|
+
"aria-valuetext": me.value,
|
|
399
|
+
"aria-orientation": a.vertical ? "vertical" : "horizontal",
|
|
400
|
+
"aria-disabled": e(b),
|
|
401
|
+
"onUpdate:modelValue": e(o)
|
|
402
|
+
}, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
|
|
403
|
+
a.range ? (u(), G(oe, {
|
|
451
404
|
key: 0,
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
"
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
405
|
+
ref_key: "secondButton",
|
|
406
|
+
ref: K,
|
|
407
|
+
"model-value": e(N),
|
|
408
|
+
vertical: a.vertical,
|
|
409
|
+
"tooltip-class": a.tooltipClass,
|
|
410
|
+
placement: a.placement,
|
|
411
|
+
role: "slider",
|
|
412
|
+
"aria-label": ve.value,
|
|
413
|
+
"aria-valuemin": e(B),
|
|
414
|
+
"aria-valuemax": a.max,
|
|
415
|
+
"aria-valuenow": e(N),
|
|
416
|
+
"aria-valuetext": ce.value,
|
|
417
|
+
"aria-orientation": a.vertical ? "vertical" : "horizontal",
|
|
418
|
+
"aria-disabled": e(b),
|
|
419
|
+
"onUpdate:modelValue": e(s)
|
|
420
|
+
}, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : $("", !0),
|
|
421
|
+
a.showStops ? (u(), p("div", et, [
|
|
422
|
+
(u(!0), p(A, null, H(e(ue), (i, f) => (u(), p("div", {
|
|
423
|
+
key: f,
|
|
424
|
+
class: m(e(r).e("stop")),
|
|
425
|
+
style: E(e(j)(i))
|
|
426
|
+
}, null, 6))), 128))
|
|
427
|
+
])) : $("", !0),
|
|
428
|
+
e(R).length > 0 ? (u(), p(A, { key: 2 }, [
|
|
429
|
+
C("div", null, [
|
|
430
|
+
(u(!0), p(A, null, H(e(R), (i, f) => (u(), p("div", {
|
|
431
|
+
key: f,
|
|
432
|
+
style: E(e(j)(i.position)),
|
|
433
|
+
class: m([e(r).e("stop"), e(r).e("marks-stop")])
|
|
434
|
+
}, null, 6))), 128))
|
|
435
|
+
]),
|
|
436
|
+
C("div", {
|
|
437
|
+
class: m(e(r).e("marks"))
|
|
438
|
+
}, [
|
|
439
|
+
(u(!0), p(A, null, H(e(R), (i, f) => (u(), G(e(Ze), {
|
|
440
|
+
key: f,
|
|
441
|
+
mark: i.mark,
|
|
442
|
+
style: E(e(j)(i.position)),
|
|
443
|
+
onMousedown: we((tt) => e(O)(i.position), ["stop"])
|
|
444
|
+
}, null, 8, ["mark", "style", "onMousedown"]))), 128))
|
|
445
|
+
], 2)
|
|
446
|
+
], 64)) : $("", !0)
|
|
447
|
+
], 38),
|
|
448
|
+
X.value ? (u(), G(e(Fe), {
|
|
449
|
+
key: 0,
|
|
450
|
+
ref: "input",
|
|
451
|
+
"model-value": e(B),
|
|
452
|
+
class: m(e(r).e("input")),
|
|
453
|
+
step: be.value,
|
|
454
|
+
disabled: e(b),
|
|
455
|
+
controls: a.showInputControls,
|
|
456
|
+
min: a.min,
|
|
457
|
+
max: a.max,
|
|
458
|
+
precision: ae.value,
|
|
459
|
+
size: de.value,
|
|
460
|
+
"onUpdate:modelValue": e(o),
|
|
461
|
+
onChange: e(w)
|
|
462
|
+
}, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "size", "onUpdate:modelValue", "onChange"])) : $("", !0)
|
|
463
|
+
], 10, _e));
|
|
467
464
|
}
|
|
468
465
|
});
|
|
469
466
|
export {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
467
|
+
nt as SliderCore,
|
|
468
|
+
nt as default,
|
|
469
|
+
Te as sliderContextKey,
|
|
470
|
+
Re as sliderEmits,
|
|
471
|
+
Ue as sliderProps
|
|
475
472
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../use-watch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../use-watch-C3iIa2DX.js");exports.useLifecycle=e.useLifecycle;exports.useMarks=e.useMarks;exports.useSlide=e.useSlide;exports.useSliderButton=e.useSliderButton;exports.useStops=e.useStops;exports.useWatch=e.useWatch;
|
|
@@ -92,8 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
92
92
|
}>, {
|
|
93
93
|
onSliderClick: (event: MouseEvent | TouchEvent) => void;
|
|
94
94
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
95
|
-
"update:modelValue": (value: number | number[]) => void;
|
|
96
95
|
input: (value: number | number[]) => void;
|
|
96
|
+
"update:modelValue": (value: number | number[]) => void;
|
|
97
97
|
change: (value: number | number[]) => void;
|
|
98
98
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
99
99
|
isRtl: {
|
|
@@ -193,7 +193,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
193
193
|
}>, {
|
|
194
194
|
id: string;
|
|
195
195
|
placement: import("@popperjs/core/index").Placement;
|
|
196
|
-
size: "" | "
|
|
196
|
+
size: "" | "small" | "default" | "large";
|
|
197
197
|
vertical: boolean;
|
|
198
198
|
disabled: boolean;
|
|
199
199
|
modelValue: number | number[];
|
|
@@ -205,7 +205,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
205
205
|
min: number;
|
|
206
206
|
showInput: boolean;
|
|
207
207
|
showInputControls: boolean;
|
|
208
|
-
inputSize: "" | "
|
|
208
|
+
inputSize: "" | "small" | "default" | "large";
|
|
209
209
|
showStops: boolean;
|
|
210
210
|
showTooltip: boolean;
|
|
211
211
|
formatTooltip: (val: number) => number | string;
|