@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.
Files changed (197) hide show
  1. package/components/ai-provider/index.cjs +1 -0
  2. package/components/ai-provider/index.d.ts +7 -0
  3. package/components/ai-provider/index.mjs +61 -0
  4. package/components/ai-provider/src/ctx.d.ts +8 -0
  5. package/components/ai-provider/src/index.vue.d.ts +23 -0
  6. package/components/ai-provider/src/types.d.ts +56 -0
  7. package/components/ai-provider/src/use.d.ts +3 -0
  8. package/components/api-tables-select/index.cjs +1 -1
  9. package/components/api-tables-select/index.mjs +1 -1
  10. package/components/api-tables-select/src/ctx.d.ts +57 -57
  11. package/components/api-tables-select/src/index.vue.d.ts +46 -419
  12. package/components/button/index.cjs +1 -1
  13. package/components/button/index.mjs +12 -12
  14. package/components/button/src/ctx.d.ts +7 -2
  15. package/components/button/src/index.vue.d.ts +36 -14
  16. package/components/card-input-collection/index.cjs +1 -1
  17. package/components/card-input-collection/index.mjs +136 -141
  18. package/components/card-input-collection/src/core.vue.d.ts +18 -7
  19. package/components/card-input-collection/src/ctx.d.ts +7 -2
  20. package/components/card-input-collection/src/index.vue.d.ts +18 -7
  21. package/components/cascader/index.cjs +1 -1
  22. package/components/cascader/index.mjs +38 -39
  23. package/components/cascader/src/ctx.d.ts +8 -3
  24. package/components/cascader/src/index.vue.d.ts +19 -8
  25. package/components/checkbox/src/ctx.d.ts +8 -3
  26. package/components/checkbox/src/index.vue.d.ts +43 -21
  27. package/components/{cloneDeep-DE0l40hv.mjs → cloneDeep-2YeQ7w2t.mjs} +10 -10
  28. package/components/cloneDeep-Btpy0oPF.js +1 -0
  29. package/components/collapse/index.cjs +1 -1
  30. package/components/collapse/index.mjs +19 -22
  31. package/components/collapse-item/index.cjs +1 -1
  32. package/components/collapse-item/index.mjs +21 -21
  33. package/components/collapse-item/src/index.vue.d.ts +2 -2
  34. package/components/color-picker/index.cjs +1 -1
  35. package/components/color-picker/index.mjs +26 -27
  36. package/components/color-picker/src/ctx.d.ts +7 -2
  37. package/components/color-picker/src/index.vue.d.ts +17 -6
  38. package/components/{style.css → components.css} +1 -1
  39. package/components/date-picker/index.cjs +1 -1
  40. package/components/date-picker/index.mjs +40 -41
  41. package/components/date-picker/src/ctx.d.ts +8 -3
  42. package/components/date-picker/src/index.vue.d.ts +17 -6
  43. package/components/date-picker-range/index.cjs +1 -1
  44. package/components/date-picker-range/index.mjs +17 -17
  45. package/components/date-picker-range/src/ctx.d.ts +14 -9
  46. package/components/date-picker-range/src/index.vue.d.ts +48 -26
  47. package/components/dialog/index.cjs +1 -1
  48. package/components/dialog/index.mjs +41 -52
  49. package/components/dialog/src/ctx.d.ts +1 -1
  50. package/components/dialog/src/index.vue.d.ts +1 -1
  51. package/components/dialog-input-collection/index.cjs +1 -1
  52. package/components/dialog-input-collection/index.mjs +124 -122
  53. package/components/dialog-input-collection/src/ctx.d.ts +7 -2
  54. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
  55. package/components/dialog-input-collection/src/index.vue.d.ts +17 -6
  56. package/components/download-plus/index.cjs +1 -1
  57. package/components/download-plus/index.mjs +193 -202
  58. package/components/download-plus/src/ctx.d.ts +7 -2
  59. package/components/download-plus/src/index.vue.d.ts +32 -10
  60. package/components/editable-text/index.cjs +1 -1
  61. package/components/editable-text/index.mjs +72 -75
  62. package/components/editable-text/src/ctx.d.ts +7 -2
  63. package/components/editable-text/src/index.vue.d.ts +18 -7
  64. package/components/el-slider/index.cjs +1 -1
  65. package/components/el-slider/index.mjs +230 -233
  66. package/components/el-slider/src/composables/index.cjs +1 -1
  67. package/components/el-slider/src/composables/index.mjs +1 -1
  68. package/components/el-slider/src/slider-core.vue.d.ts +3 -3
  69. package/components/esri-input-geojson/index.cjs +1 -5
  70. package/components/esri-input-geojson/index.mjs +59 -68
  71. package/components/esri-input-geojson/src/append.vue.d.ts +2 -2
  72. package/components/esri-input-geojson/src/ctx.d.ts +9 -4
  73. package/components/esri-input-geojson/src/index.vue.d.ts +65 -30
  74. package/components/fieldset/src/index.vue.d.ts +1 -1
  75. package/components/form/index.cjs +1 -1
  76. package/components/form/index.mjs +96 -101
  77. package/components/form/src/ctx.d.ts +2 -2
  78. package/components/form/src/index.vue.d.ts +4 -4
  79. package/components/form/src/use.d.ts +2 -2
  80. package/components/form-item/index.cjs +1 -1
  81. package/components/form-item/index.mjs +179 -107
  82. package/components/form-item/src/core.vue.d.ts +7 -3
  83. package/components/form-item/src/ctx.d.ts +7 -1
  84. package/components/form-item/src/index.vue.d.ts +13 -2
  85. package/components/form-item/src/use.d.ts +11 -0
  86. package/components/form-item-renderer/index.cjs +1 -1
  87. package/components/form-item-renderer/index.d.ts +1 -0
  88. package/components/form-item-renderer/index.mjs +85 -78
  89. package/components/form-item-renderer/src/use.d.ts +3 -0
  90. package/components/forms-provider/index.cjs +1 -1
  91. package/components/forms-provider/index.mjs +18 -21
  92. package/components/index-BIo_4rr_.mjs +18620 -0
  93. package/components/index-Bc7UifHG.js +1 -0
  94. package/components/index-D0D9ABpH.js +108 -0
  95. package/components/{index-CeHbpfCD.mjs → index-DCNYT7Wv.mjs} +0 -1
  96. package/components/information-collection/index.cjs +1 -1
  97. package/components/information-collection/index.mjs +32 -38
  98. package/components/information-collection/src/ctx.d.ts +7 -2
  99. package/components/information-collection/src/index.vue.d.ts +17 -6
  100. package/components/information-tag/index.cjs +1 -1
  101. package/components/information-tag/index.mjs +9 -12
  102. package/components/information-tag/src/index.vue.d.ts +1 -1
  103. package/components/input/index.cjs +1 -1
  104. package/components/input/index.mjs +27 -27
  105. package/components/input/src/ctx.d.ts +9 -4
  106. package/components/input/src/index.vue.d.ts +35 -13
  107. package/components/input-array/index.cjs +1 -1
  108. package/components/input-array/index.mjs +71 -74
  109. package/components/input-array/src/ctx.d.ts +7 -2
  110. package/components/input-array/src/index.vue.d.ts +18 -7
  111. package/components/input-collection/index.cjs +1 -1
  112. package/components/input-collection/index.mjs +121 -126
  113. package/components/input-collection/src/core.vue.d.ts +17 -6
  114. package/components/input-collection/src/ctx.d.ts +7 -2
  115. package/components/input-collection/src/index.vue.d.ts +17 -6
  116. package/components/input-file/src/index.vue.d.ts +19 -8
  117. package/components/input-link/index.cjs +1 -1
  118. package/components/input-link/index.mjs +1 -1
  119. package/components/input-link/src/ctx.d.ts +7 -2
  120. package/components/input-link/src/index.vue.d.ts +54 -21
  121. package/components/input-number/index.cjs +1 -1
  122. package/components/input-number/index.mjs +30 -33
  123. package/components/input-number/src/ctx.d.ts +8 -3
  124. package/components/input-number/src/index.vue.d.ts +33 -11
  125. package/components/input-tag/index.cjs +1 -1
  126. package/components/input-tag/index.mjs +24 -24
  127. package/components/input-tag/src/ctx.d.ts +9 -4
  128. package/components/input-tag/src/index.vue.d.ts +33 -11
  129. package/components/monaco-editor/src/ctx.d.ts +8 -3
  130. package/components/monaco-editor/src/index.vue.d.ts +38 -16
  131. package/components/radio/src/ctx.d.ts +7 -2
  132. package/components/radio/src/index.vue.d.ts +40 -18
  133. package/components/radio/src/wraper.vue.d.ts +22 -11
  134. package/components/renderer-data/index.cjs +1 -1
  135. package/components/renderer-data/index.mjs +14 -17
  136. package/components/select/index.cjs +1 -1
  137. package/components/select/index.mjs +165 -112
  138. package/components/select/src/core.vue.d.ts +107 -70
  139. package/components/select/src/ctx.d.ts +16 -4
  140. package/components/select/src/index.vue.d.ts +62 -42
  141. package/components/slider/index.cjs +1 -1
  142. package/components/slider/index.mjs +30 -31
  143. package/components/slider/src/ctx.d.ts +7 -2
  144. package/components/slider/src/index.vue.d.ts +18 -7
  145. package/components/switch/src/ctx.d.ts +7 -2
  146. package/components/switch/src/index.vue.d.ts +18 -7
  147. package/components/tables-select/index.cjs +1 -1
  148. package/components/tables-select/index.mjs +4 -4
  149. package/components/tables-select/src/ctx.d.ts +68 -68
  150. package/components/tables-select/src/index.vue.d.ts +52 -420
  151. package/components/template-instances-provider/index.cjs +1 -1
  152. package/components/template-instances-provider/index.mjs +11 -17
  153. package/components/templates-default/src/index.vue.d.ts +413 -185
  154. package/components/templates-esri/src/index.vue.d.ts +65 -30
  155. package/components/templates-variant/src/index.vue.d.ts +48 -26
  156. package/components/time-picker/index.cjs +1 -1
  157. package/components/time-picker/index.mjs +38 -39
  158. package/components/time-picker/src/ctx.d.ts +8 -3
  159. package/components/time-picker/src/index.vue.d.ts +17 -6
  160. package/components/upload/index.cjs +1 -1
  161. package/components/upload/index.mjs +244 -253
  162. package/components/upload/src/ctx.d.ts +8 -3
  163. package/components/upload/src/file.vue.d.ts +3 -3
  164. package/components/upload/src/index.vue.d.ts +37 -15
  165. package/components/upload/src/wraper.vue.d.ts +19 -8
  166. package/components/upload-plus/index.cjs +7 -15
  167. package/components/upload-plus/index.mjs +1879 -1897
  168. package/components/upload-plus/src/ctx.d.ts +7 -2
  169. package/components/upload-plus/src/index.vue.d.ts +18 -7
  170. package/components/use-watch-C3iIa2DX.js +1 -0
  171. package/components/use-watch-Dp64x0si.mjs +411 -0
  172. package/components/van-cascader/src/ctx.d.ts +7 -2
  173. package/components/van-cascader/src/index.vue.d.ts +19 -8
  174. package/components/var-datetime-picker/src/ctx.d.ts +7 -2
  175. package/components/var-datetime-picker/src/index.vue.d.ts +30 -8
  176. package/components/vditor/src/ctx.d.ts +7 -2
  177. package/components/vditor/src/index.vue.d.ts +41 -19
  178. package/composables/element-plus/index.cjs +1 -1
  179. package/composables/element-plus/index.mjs +10 -10
  180. package/composables/form-mitt/index.mjs +1 -1
  181. package/composables/index.cjs +1 -1
  182. package/composables/index.mjs +53 -53
  183. package/index.css +1 -1
  184. package/locale/index.cjs +1 -1
  185. package/locale/index.mjs +8 -5
  186. package/locale/lang/ar.d.ts +1 -0
  187. package/locale/lang/en.d.ts +1 -0
  188. package/locale/lang/zh-cn.d.ts +1 -0
  189. package/package.json +9 -1
  190. package/shared/element-plus/ctx.d.ts +16 -16
  191. package/shared/types/source/index.d.ts +5 -0
  192. package/shared/upload/index.cjs +1 -1
  193. package/shared/upload/index.mjs +166 -165
  194. package/components/cloneDeep-DaYwfXwD.js +0 -1
  195. package/components/index-BBriTmQP.js +0 -1
  196. package/components/use-watch-Bfrz9pv_.js +0 -1
  197. package/components/use-watch-t49wP7jy.mjs +0 -414
@@ -1,8 +1,8 @@
1
- import { defineComponent as _, computed as n, reactive as ie, toRefs as Z, openBlock as i, createElementBlock as p, unref as e, normalizeStyle as h, normalizeClass as m, createVNode as ue, withCtx as oe, createElementVNode as E, toDisplayString as ke, h as we, provide as Be, createBlock as q, createCommentVNode as W, Fragment as K, renderList as J, withModifiers as he } from "vue";
2
- import { c as Ee, b as Ce, d as Le, a as Ie, e as Te, u as Me, f as ne, s as Ne } from "../use-watch-t49wP7jy.mjs";
3
- import { CHANGE_EVENT as ze, INPUT_EVENT as Pe, UPDATE_MODEL_EVENT as de, useNamespace as ee, ElTooltip as xe, useLocale as De, useFormItemInputId as Fe, useFormSize as Ue, ElInputNumber as Re } from "element-plus";
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 $e = {
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
- }, Q = (l) => typeof l == "number" || Array.isArray(l) && l.every((u) => typeof u == "number"), Ae = {
157
- [de]: Q,
158
- [Pe]: Q,
159
- [ze]: Q
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 We = "top", Ke = "bottom", Oe = "right", je = "left", Xe = "auto", Ye = [We, Ke, Oe, je], Ge = "start", He = "end", qe = /* @__PURE__ */ [].concat(Ye, [Xe]).reduce(function(l, u) {
162
- return l.concat([u, u + "-" + Ge, u + "-" + He]);
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 Je = {
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: qe,
173
+ values: Ge,
174
174
  default: "top"
175
175
  }
176
- }, Qe = {
177
- [de]: (l) => typeof l == "number"
178
- }, Ze = ["tabindex"], se = /* @__PURE__ */ _({
176
+ }, qe = {
177
+ [ie]: (l) => typeof l == "number"
178
+ }, Je = ["tabindex"], oe = /* @__PURE__ */ Q({
179
179
  name: "ElSliderButton",
180
180
  __name: "button",
181
- props: Je,
182
- emits: Qe,
183
- setup(l, { expose: u, emit: C }) {
184
- const t = l, P = C, r = ee("slider"), L = n(() => t.placement || "top"), I = ie({
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
- () => x.value ? j.value : !1
196
+ () => P.value ? K.value : !1
197
197
  ), {
198
- disabled: b,
199
- button: y,
200
- tooltip: O,
201
- showTooltip: x,
202
- persistent: j,
203
- tooltipVisible: f,
204
- wrapperStyle: D,
205
- formatValue: F,
206
- handleMouseEnter: g,
207
- handleMouseLeave: S,
208
- onButtonDown: V,
209
- onKeyDown: k,
210
- setPosition: U
211
- } = Ee(t, I, P), { hovering: T, dragging: c } = Z(I);
212
- return u({
213
- onButtonDown: V,
214
- onKeyDown: k,
215
- setPosition: U,
216
- hovering: T,
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
- }), (X, o) => (i(), p("div", {
218
+ }), (O, o) => (u(), p("div", {
219
219
  ref_key: "button",
220
- ref: y,
221
- class: m([e(r).e("button-wrapper"), { hover: e(T), dragging: e(c) }]),
222
- style: h(e(D)),
223
- tabindex: e(b) ? void 0 : 0,
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
- onMousedown: o[2] || (o[2] = //@ts-ignore
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(k) && e(k)(...s))
235
+ (...s) => e(w) && e(w)(...s))
236
236
  }, [
237
- ue(e(xe), {
237
+ se(e(ze), {
238
238
  ref_key: "tooltip",
239
- ref: O,
240
- visible: e(f),
241
- placement: L.value,
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": X.tooltipClass,
245
- disabled: !e(x),
244
+ "popper-class": O.tooltipClass,
245
+ disabled: !e(P),
246
246
  persistent: v.value
247
247
  }, {
248
- content: oe(() => [
249
- E("span", null, ke(e(F)), 1)
248
+ content: le(() => [
249
+ C("span", null, Se(e(D)), 1)
250
250
  ]),
251
- default: oe(() => [
252
- E("div", {
253
- class: m([e(r).e("button"), { hover: e(T), dragging: e(c) }])
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, Ze));
258
+ ], 46, Je));
259
259
  }
260
- }), _e = {
260
+ }), Qe = {
261
261
  mark: {
262
262
  type: [String, Object],
263
263
  default: void 0
264
264
  }
265
- }, et = _({
265
+ }, Ze = Q({
266
266
  name: "ElSliderMarker",
267
- props: _e,
267
+ props: Qe,
268
268
  setup(l) {
269
- const u = ee("slider"), C = n(() => typeof l.mark == "string" ? l.mark : l.mark.label), t = n(
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 () => we(
272
+ return () => Ve(
273
273
  "div",
274
274
  {
275
- class: u.e("marks-text"),
275
+ class: d.e("marks-text"),
276
276
  style: t.value
277
277
  },
278
- C.value
278
+ L.value
279
279
  );
280
280
  }
281
- }), tt = ["id", "role", "aria-label", "aria-labelledby"], at = { key: 1 }, it = /* @__PURE__ */ _({
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
- ...$e,
285
+ ...Ue,
286
286
  isRtl: {
287
287
  type: Boolean,
288
288
  default: !1
289
289
  }
290
290
  },
291
- emits: Ae,
292
- setup(l, { expose: u, emit: C }) {
293
- const t = l, P = C, r = ee("slider"), { t: L } = De(), I = (a) => typeof a == "number", v = ie({
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
- }), b = n(() => t.isRtl), {
300
- elFormItem: y,
301
- slider: O,
302
- firstButton: x,
303
- secondButton: j,
304
- sliderDisabled: f,
305
- minValue: D,
306
- maxValue: F,
307
- runwayStyle: g,
308
- barStyle: S,
309
- resetSize: V,
310
- emitChange: k,
311
- onSliderWrapperPrevent: U,
312
- onSliderClick: T,
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: X,
314
+ onSliderMarkerDown: O,
315
315
  setFirstValue: o,
316
316
  setSecondValue: s
317
- } = Ce(t, v, P, b), { stops: pe, getStopStyle: Y } = Le(t, v, D, F, b), { inputId: te, isLabeledByFormItem: R } = Fe(t, {
318
- formItemContext: y
319
- }), ae = Ue(), me = n(
320
- () => t.inputSize || ae.value
321
- ), G = n(() => t.showInput && !t.range && t.step !== "mark"), le = n(() => t.ariaLabel || L("el.slider.defaultLabel", {
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
- })), ve = n(() => t.range ? t.rangeStartLabel || L("el.slider.defaultRangeStartLabel") : le.value), ce = n(() => t.formatValueText ? t.formatValueText(w.value) : `${w.value}`), fe = n(() => t.rangeEndLabel || L("el.slider.defaultRangeEndLabel")), be = n(() => t.formatValueText ? t.formatValueText(M.value) : `${M.value}`), ye = n(() => [
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(ae.value),
326
+ r.m(ee.value),
327
327
  r.is("vertical", t.vertical),
328
- r.is("rtl", b.value),
329
- { [r.m("with-input")]: G.value }
330
- ]), $ = Ie(t);
331
- Te(t, v, D, F, P, y);
332
- const ge = n(() => I(t.step) ? t.step : 1), re = n(() => {
333
- const a = I(t.step) ? t.step : 1, B = [t.min, t.max, a].map((A) => {
334
- const N = `${A}`.split(".")[1];
335
- return N ? N.length : 0;
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, B);
338
- }), { sliderWrapper: H } = Me(t, v, V), { firstValue: w, secondValue: M, sliderSize: Se } = Z(v), Ve = (a) => {
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 ne(H, "touchstart", U, {
341
+ return re(Y, "touchstart", F, {
342
342
  passive: !1
343
- }), ne(H, "touchmove", U, {
343
+ }), re(Y, "touchmove", F, {
344
344
  passive: !1
345
- }), Be(Ne, {
346
- ...Z(t),
347
- sliderSize: Se,
348
- disabled: f,
349
- precision: re,
350
- markList: $,
351
- emitChange: k,
352
- resetSize: V,
353
- updateDragging: Ve,
354
- isRtl: b
355
- }), u({
356
- onSliderClick: T
357
- }), (a, B) => {
358
- var A, N;
359
- return i(), p("div", {
360
- id: a.range ? e(te) : void 0,
361
- ref_key: "sliderWrapper",
362
- ref: H,
363
- class: m(ye.value),
364
- role: a.range ? "group" : void 0,
365
- "aria-label": a.range && !e(R) ? le.value : void 0,
366
- "aria-labelledby": a.range && e(R) ? (A = e(y)) == null ? void 0 : A.labelId : void 0
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
- E("div", {
369
- ref_key: "slider",
370
- ref: O,
371
- class: m([
372
- e(r).e("runway"),
373
- { "show-input": G.value },
374
- e(r).is("disabled", e(f))
375
- ]),
376
- style: h(e(g)),
377
- onMousedown: B[0] || (B[0] = //@ts-ignore
378
- (...d) => e(c) && e(c)(...d)),
379
- onTouchstartPassive: B[1] || (B[1] = //@ts-ignore
380
- (...d) => e(c) && e(c)(...d))
381
- }, [
382
- E("div", {
383
- class: m(e(r).e("bar")),
384
- style: h(e(S))
385
- }, null, 6),
386
- ue(se, {
387
- id: a.range ? void 0 : e(te),
388
- ref_key: "firstButton",
389
- ref: x,
390
- "model-value": e(w),
391
- vertical: a.vertical,
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
- ref: "input",
453
- "model-value": e(w),
454
- class: m(e(r).e("input")),
455
- step: ge.value,
456
- disabled: e(f),
457
- controls: a.showInputControls,
458
- min: a.min,
459
- max: a.max,
460
- precision: re.value,
461
- size: me.value,
462
- "onUpdate:modelValue": e(o),
463
- onChange: e(k)
464
- }, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "size", "onUpdate:modelValue", "onChange"])) : W("", !0)
465
- ], 10, tt);
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
- it as SliderCore,
471
- it as default,
472
- Ne as sliderContextKey,
473
- Ae as sliderEmits,
474
- $e as sliderProps
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-Bfrz9pv_.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;
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;
@@ -1,4 +1,4 @@
1
- import { u as a, a as u, b as t, c, d as o, e as r } from "../../../use-watch-t49wP7jy.mjs";
1
+ import { u as a, a as u, b as t, c, d as o, e as r } from "../../../use-watch-Dp64x0si.mjs";
2
2
  export {
3
3
  a as useLifecycle,
4
4
  u as useMarks,
@@ -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: "" | "default" | "small" | "large";
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: "" | "default" | "small" | "large";
208
+ inputSize: "" | "small" | "default" | "large";
209
209
  showStops: boolean;
210
210
  showTooltip: boolean;
211
211
  formatTooltip: (val: number) => number | string;