@varlet/ui 3.2.6 → 3.2.7

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/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  <div align="center">
2
- <a href="https://varlet.gitee.io/varlet-ui/#/en-US/index">
3
- <img src="https://varlet.gitee.io/varlet-ui/logo.svg" width="150">
2
+ <a href="https://varletjs.github.io/varlet/#/en-US/index">
3
+ <img src="https://varletjs.github.io/varlet/logo.svg" width="150">
4
4
  </a>
5
5
  <h1>VARLET</h1>
6
6
  <p>A mobile component library based on Vue3, Material Design 2, Material Design 3, and supports desktop development.</p>
7
7
  <p>
8
8
  <a href="https://varlet-varletjs.vercel.app/#/en-US/index">Documentation(Vercel)</a> |
9
- <a href="https://varlet.gitee.io/varlet-ui/#/en-US/index">Documentation(Gitee)</a> |
9
+ <a href="https://varletjs.github.io/varlet/#/en-US/index">Documentation(Github)</a> |
10
10
  <a href="https://github.com/varletjs/varlet/blob/dev/README.zh-CN.md">中文README</a>
11
11
  </p>
12
12
  <p>
@@ -116,7 +116,7 @@ The following projects are maintained by community personnel, welcome to add.
116
116
 
117
117
  ### Playground
118
118
 
119
- See [Varlet UI Playground](https://varlet.gitee.io/varlet-ui-playground).
119
+ See [Varlet UI Playground](https://varletjs.github.io/varlet/playground).
120
120
 
121
121
  ### Contribution
122
122
 
package/README.zh-CN.md CHANGED
@@ -1,13 +1,13 @@
1
1
 
2
2
  <div align="center">
3
- <a href="https://varlet.gitee.io/varlet-ui">
4
- <img src="https://varlet.gitee.io/varlet-ui/logo.svg" width="150">
3
+ <a href="https://varletjs.github.io/varlet">
4
+ <img src="https://varletjs.github.io/varlet/logo.svg" width="150">
5
5
  </a>
6
6
  <h1>VARLET</h1>
7
7
  <p>一个移动端组件库,基于 Vue3, Material Design 2, Material Design 3,并支持桌面端开发。</p>
8
8
  <p>
9
9
  <a href="https://varlet-varletjs.vercel.app">文档(Vercel)</a> |
10
- <a href="https://varlet.gitee.io/varlet-ui">文档(Gitee)</a> |
10
+ <a href="https://varletjs.github.io/varlet">文档(Github)</a> |
11
11
  <a href="https://github.com/varletjs/varlet/blob/dev/README.md">ENGLISH README</a>
12
12
  </p>
13
13
  <p>
@@ -116,7 +116,7 @@ createApp(App).use(Varlet).mount('#app')
116
116
 
117
117
  ### 演练场
118
118
 
119
- 在 [Varlet UI Playground](https://varlet.gitee.io/varlet-ui-playground) 对组件进行在线编辑。
119
+ 在 [Varlet UI Playground](https://varletjs.github.io/varlet/playground) 对组件进行在线编辑。
120
120
 
121
121
  ### 贡献
122
122
 
@@ -3,5 +3,5 @@ import '../../icon/icon.css'
3
3
  import '../../ripple/ripple.css'
4
4
  import '../../popup/popup.css'
5
5
  import '../actionSheet.css'
6
- import '../ActionSheetSfc.css'
7
6
  import '../ActionItemSfc.css'
7
+ import '../ActionSheetSfc.css'
@@ -262,7 +262,7 @@ import './tooltip/style/index.mjs'
262
262
  import './uploader/style/index.mjs'
263
263
  import './watermark/style/index.mjs'
264
264
 
265
- const version = '3.2.6'
265
+ const version = '3.2.7'
266
266
 
267
267
  function install(app) {
268
268
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -174,7 +174,7 @@ export * from './tooltip/index.mjs'
174
174
  export * from './uploader/index.mjs'
175
175
  export * from './watermark/index.mjs'
176
176
 
177
- const version = '3.2.6'
177
+ const version = '3.2.7'
178
178
 
179
179
  function install(app) {
180
180
  ActionSheet.install && app.use(ActionSheet)
@@ -1,7 +1,7 @@
1
1
  import '../../styles/common.css'
2
- import '../SnackbarSfc.css'
3
2
  import '../../styles/elevation.css'
4
3
  import '../../loading/loading.css'
5
4
  import '../../icon/icon.css'
6
5
  import '../snackbar.css'
7
6
  import '../coreSfc.css'
7
+ import '../SnackbarSfc.css'
@@ -3,7 +3,7 @@ import Ripple from "../ripple/index.mjs";
3
3
  import Hover from "../hover/index.mjs";
4
4
  import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
5
5
  import { defineComponent, computed, nextTick, ref } from "vue";
6
- import { useValidation, createNamespace } from "../utils/components.mjs";
6
+ import { useValidation, createNamespace, formatElevation } from "../utils/components.mjs";
7
7
  import { multiplySizeUnit } from "../utils/elements.mjs";
8
8
  import { useForm } from "../form/provide.mjs";
9
9
  import { props } from "./props.mjs";
@@ -74,7 +74,7 @@ function __render__(_ctx, _cache) {
74
74
  class: _normalizeClass(
75
75
  _ctx.classes(
76
76
  _ctx.n("handle"),
77
- _ctx.n("$-elevation--2"),
77
+ _ctx.formatElevation(_ctx.buttonElevation, 2),
78
78
  [_ctx.isActive, _ctx.n("handle--active")],
79
79
  [_ctx.errorMessage && !_ctx.variant, _ctx.n("handle--error")],
80
80
  [_ctx.hovering, _ctx.n("handle--hover")]
@@ -252,6 +252,7 @@ const __sfc__ = defineComponent({
252
252
  formReadonly: form == null ? void 0 : form.readonly,
253
253
  n,
254
254
  classes,
255
+ formatElevation,
255
256
  multiplySizeUnit,
256
257
  switchActive,
257
258
  hover
@@ -23,6 +23,10 @@ const props = {
23
23
  type: Boolean,
24
24
  default: true
25
25
  },
26
+ buttonElevation: {
27
+ type: [Boolean, String, Number],
28
+ default: true
29
+ },
26
30
  validateTrigger: {
27
31
  type: Array,
28
32
  default: () => ["onChange", "onLazyChange"]
package/es/varlet.esm.js CHANGED
@@ -11,7 +11,7 @@ var In = Ze(ld), ah = Object.defineProperty, ih = Object.defineProperties, lh =
11
11
  for (var o of Bs(n))
12
12
  uh.call(n, o) && Is(e, o, n[o]);
13
13
  return e;
14
- }, dh = (e, n) => ih(e, lh(n)), bn = (e) => typeof e == "string", Ql = (e) => typeof e == "boolean", Pn = (e) => typeof e == "number", sd = (e) => Pn(e) || bn(e) && /^[-+]?\d+$/.test(e), et = (e) => Object.prototype.toString.call(e) === "[object Object]", fh = (e) => typeof e == "object" && e !== null, dt = (e) => typeof e == "function", Ge = (e) => Array.isArray(e), ph = (e) => e ? /^(http)|(\.*\/)/.test(e) : !1, Zn = (e) => e == null || e === "" || Array.isArray(e) && !e.length, ud = (e) => e === window, vh = () => eo() && "ontouchstart" in window, eo = () => typeof window < "u", br = () => eo() && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), { hasOwnProperty: mh } = Object.prototype, cd = (e, n) => mh.call(e, n), Ms = (e) => [...new Set(e)], Mo = (e) => Ge(e) ? e : [e], nt = (e, n) => {
14
+ }, dh = (e, n) => ih(e, lh(n)), yn = (e) => typeof e == "string", Ql = (e) => typeof e == "boolean", Pn = (e) => typeof e == "number", sd = (e) => Pn(e) || yn(e) && /^[-+]?\d+$/.test(e), et = (e) => Object.prototype.toString.call(e) === "[object Object]", fh = (e) => typeof e == "object" && e !== null, dt = (e) => typeof e == "function", Ge = (e) => Array.isArray(e), ph = (e) => e ? /^(http)|(\.*\/)/.test(e) : !1, Zn = (e) => e == null || e === "" || Array.isArray(e) && !e.length, ud = (e) => e === window, vh = () => eo() && "ontouchstart" in window, eo = () => typeof window < "u", br = () => eo() && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), { hasOwnProperty: mh } = Object.prototype, cd = (e, n) => mh.call(e, n), Ms = (e) => [...new Set(e)], Mo = (e) => Ge(e) ? e : [e], nt = (e, n) => {
15
15
  if (e.length) {
16
16
  const o = e.indexOf(n);
17
17
  if (o > -1)
@@ -91,7 +91,7 @@ function C(e, ...n) {
91
91
  if (e)
92
92
  return e(...n);
93
93
  }
94
- var R = (e) => e == null ? 0 : bn(e) ? (e = parseFloat(e), e = Number.isNaN(e) ? 0 : e, e) : Ql(e) ? Number(e) : e, Bn = (e, n, o) => Math.min(o, Math.max(n, e)), $h = (e, n) => Bn(e, 0, n.length - 1), wh = (e) => es(e).replace(e.charAt(0), e.charAt(0).toUpperCase()), es = (e) => e.replace(/-(\w)/g, (n, o) => o.toUpperCase()), fd = (e) => e.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
94
+ var R = (e) => e == null ? 0 : yn(e) ? (e = parseFloat(e), e = Number.isNaN(e) ? 0 : e, e) : Ql(e) ? Number(e) : e, Bn = (e, n, o) => Math.min(o, Math.max(n, e)), $h = (e, n) => Bn(e, 0, n.length - 1), wh = (e) => es(e).replace(e.charAt(0), e.charAt(0).toUpperCase()), es = (e) => e.replace(/-(\w)/g, (n, o) => o.toUpperCase()), fd = (e) => e.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
95
95
  function Ch(e) {
96
96
  return (n) => {
97
97
  const o = `${e}-${n}`, t = (r) => r ? r[0] === "$" ? r.replace("$", e) : r.startsWith("--") ? `${o}${r}` : `${o}__${r}` : o;
@@ -470,7 +470,7 @@ function N(e) {
470
470
  default: e
471
471
  };
472
472
  }
473
- function yn(e, n) {
473
+ function hn(e, n) {
474
474
  return e === !1 ? null : (e === !0 && n && (e = n), `var-elevation--${e}`);
475
475
  }
476
476
  var Uh = Object.defineProperty, Hh = Object.defineProperties, Yh = Object.getOwnPropertyDescriptors, Fs = Object.getOwnPropertySymbols, jh = Object.prototype.hasOwnProperty, Wh = Object.prototype.propertyIsEnumerable, Us = (e, n, o) => n in e ? Uh(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o, bd = (e, n) => {
@@ -840,7 +840,7 @@ function lg(e) {
840
840
  return n;
841
841
  }
842
842
  function Sd(e, n) {
843
- if (bn(e)) {
843
+ if (yn(e)) {
844
844
  const o = document.querySelector(e);
845
845
  return o || An(n, "target element cannot found"), o;
846
846
  }
@@ -857,7 +857,7 @@ function sg() {
857
857
  vMax: Math.max(e, n)
858
858
  };
859
859
  }
860
- const ug = (e) => bn(e) && e.endsWith("rem"), cg = (e) => bn(e) && e.endsWith("px") || Pn(e), dg = (e) => bn(e) && e.endsWith("vw"), fg = (e) => bn(e) && e.endsWith("vh"), pg = (e) => bn(e) && e.endsWith("vmin"), vg = (e) => bn(e) && e.endsWith("vmax"), xe = (e) => {
860
+ const ug = (e) => yn(e) && e.endsWith("rem"), cg = (e) => yn(e) && e.endsWith("px") || Pn(e), dg = (e) => yn(e) && e.endsWith("vw"), fg = (e) => yn(e) && e.endsWith("vh"), pg = (e) => yn(e) && e.endsWith("vmin"), vg = (e) => yn(e) && e.endsWith("vmax"), xe = (e) => {
861
861
  if (sd(e))
862
862
  return Number(e);
863
863
  if (cg(e))
@@ -877,7 +877,7 @@ const ug = (e) => bn(e) && e.endsWith("rem"), cg = (e) => bn(e) && e.endsWith("p
877
877
  const a = +e.replace("rem", ""), i = jo(document.documentElement).fontSize;
878
878
  return a * parseFloat(i);
879
879
  }
880
- return bn(e) ? R(e) : 0;
880
+ return yn(e) ? R(e) : 0;
881
881
  }, Te = (e) => {
882
882
  if (e != null)
883
883
  return sd(e) ? `${e}px` : String(e);
@@ -2011,7 +2011,7 @@ const qd = _({
2011
2011
  paddingRight: t,
2012
2012
  n: _g,
2013
2013
  classes: eb,
2014
- formatElevation: yn
2014
+ formatElevation: hn
2015
2015
  };
2016
2016
  }
2017
2017
  });
@@ -2021,7 +2021,7 @@ re(Ur);
2021
2021
  se(Ur, Kd);
2022
2022
  const L8 = Ur;
2023
2023
  var Di = Ur;
2024
- const ou = (e) => bn(e) ? e.startsWith("data:image") || /\.(png|jpg|gif|jpeg|svg|webp|ico)$/i.test(e) : !1, tu = (e) => bn(e) ? e.startsWith("data:video") || /\.(mp4|webm|ogg)$/.test(e) : !1, ob = (e) => {
2024
+ const ou = (e) => yn(e) ? e.startsWith("data:image") || /\.(png|jpg|gif|jpeg|svg|webp|ico)$/i.test(e) : !1, tu = (e) => yn(e) ? e.startsWith("data:video") || /\.(mp4|webm|ogg)$/.test(e) : !1, ob = (e) => {
2025
2025
  const n = [];
2026
2026
  return {
2027
2027
  cache: n,
@@ -2681,7 +2681,7 @@ const lf = _({
2681
2681
  var c, d, f, v, b, m;
2682
2682
  if (!t)
2683
2683
  return {
2684
- elevation: yn(e.elevation, 2),
2684
+ elevation: hn(e.elevation, 2),
2685
2685
  type: (c = e.type) != null ? c : "default",
2686
2686
  size: (d = e.size) != null ? d : "normal",
2687
2687
  color: e.color,
@@ -3465,7 +3465,7 @@ const Cf = _({
3465
3465
  return n(o), {
3466
3466
  n: N0,
3467
3467
  classes: V0,
3468
- formatElevation: yn
3468
+ formatElevation: hn
3469
3469
  };
3470
3470
  }
3471
3471
  });
@@ -3766,7 +3766,7 @@ const Pf = _({
3766
3766
  classes: U0,
3767
3767
  toSizeUnit: Te,
3768
3768
  close: z,
3769
- formatElevation: yn,
3769
+ formatElevation: hn,
3770
3770
  handleClick: E
3771
3771
  };
3772
3772
  }
@@ -4942,7 +4942,7 @@ const qf = _({
4942
4942
  n: Iy,
4943
4943
  classes: My,
4944
4944
  toggle: h,
4945
- formatElevation: yn,
4945
+ formatElevation: hn,
4946
4946
  handleTransitionEnd: m,
4947
4947
  handleTransitionStart: k
4948
4948
  };
@@ -5176,7 +5176,7 @@ var Go = 9e15, Eo = 1e9, xi = "0123456789abcdef", zr = "2.3025850929940456840179
5176
5176
  // Whether to use cryptographically-secure random number generation, if available.
5177
5177
  crypto: !1
5178
5178
  // true/false
5179
- }, Qf, ao, Ee = !0, fa = "[DecimalError] ", So = fa + "Invalid argument: ", xf = fa + "Precision limit exceeded", _f = fa + "crypto unavailable", ep = "[object Decimal]", gn = Math.floor, sn = Math.pow, Yy = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, jy = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Wy = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, np = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Kn = 1e7, Pe = 7, Ky = 9007199254740991, qy = zr.length - 1, el = Or.length - 1, Z = { toStringTag: ep };
5179
+ }, Qf, ao, Ee = !0, fa = "[DecimalError] ", So = fa + "Invalid argument: ", xf = fa + "Precision limit exceeded", _f = fa + "crypto unavailable", ep = "[object Decimal]", bn = Math.floor, sn = Math.pow, Yy = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, jy = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Wy = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, np = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Kn = 1e7, Pe = 7, Ky = 9007199254740991, qy = zr.length - 1, el = Or.length - 1, Z = { toStringTag: ep };
5180
5180
  Z.absoluteValue = Z.abs = function() {
5181
5181
  var e = new this.constructor(this);
5182
5182
  return e.s < 0 && (e.s = 1), Ce(e);
@@ -5215,7 +5215,7 @@ Z.cubeRoot = Z.cbrt = function() {
5215
5215
  var e, n, o, t, r, a, i, l, s, u, c = this, d = c.constructor;
5216
5216
  if (!c.isFinite() || c.isZero())
5217
5217
  return new d(c);
5218
- for (Ee = !1, a = c.s * sn(c.s * c, 1 / 3), !a || Math.abs(a) == 1 / 0 ? (o = fn(c.d), e = c.e, (a = (e - o.length + 1) % 3) && (o += a == 1 || a == -2 ? "0" : "00"), a = sn(o, 1 / 3), e = gn((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2)), a == 1 / 0 ? o = "5e" + e : (o = a.toExponential(), o = o.slice(0, o.indexOf("e") + 1) + e), t = new d(o), t.s = c.s) : t = new d(a.toString()), i = (e = d.precision) + 3; ; )
5218
+ for (Ee = !1, a = c.s * sn(c.s * c, 1 / 3), !a || Math.abs(a) == 1 / 0 ? (o = fn(c.d), e = c.e, (a = (e - o.length + 1) % 3) && (o += a == 1 || a == -2 ? "0" : "00"), a = sn(o, 1 / 3), e = bn((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2)), a == 1 / 0 ? o = "5e" + e : (o = a.toExponential(), o = o.slice(0, o.indexOf("e") + 1) + e), t = new d(o), t.s = c.s) : t = new d(a.toString()), i = (e = d.precision) + 3; ; )
5219
5219
  if (l = t, s = l.times(l).times(l), u = s.plus(c), t = qe(u.plus(c).times(l), u.plus(s), i + 2, 1), fn(l.d).slice(0, i) === (o = fn(t.d)).slice(0, i))
5220
5220
  if (o = o.slice(i - 3, i + 1), o == "9999" || !r && o == "4999") {
5221
5221
  if (!r && (Ce(l, e + 1, 0), l.times(l).times(l).eq(c))) {
@@ -5232,7 +5232,7 @@ Z.cubeRoot = Z.cbrt = function() {
5232
5232
  Z.decimalPlaces = Z.dp = function() {
5233
5233
  var e, n = this.d, o = NaN;
5234
5234
  if (n) {
5235
- if (e = n.length - 1, o = (e - gn(this.e / Pe)) * Pe, e = n[e], e)
5235
+ if (e = n.length - 1, o = (e - bn(this.e / Pe)) * Pe, e = n[e], e)
5236
5236
  for (; e % 10 == 0; e /= 10)
5237
5237
  o--;
5238
5238
  o < 0 && (o = 0);
@@ -5332,7 +5332,7 @@ Z.isFinite = function() {
5332
5332
  return !!this.d;
5333
5333
  };
5334
5334
  Z.isInteger = Z.isInt = function() {
5335
- return !!this.d && gn(this.e / Pe) > this.d.length - 2;
5335
+ return !!this.d && bn(this.e / Pe) > this.d.length - 2;
5336
5336
  };
5337
5337
  Z.isNaN = function() {
5338
5338
  return !this.s;
@@ -5395,7 +5395,7 @@ Z.minus = Z.sub = function(e) {
5395
5395
  return new b(s === 3 ? -0 : 0);
5396
5396
  return Ee ? Ce(e, l, s) : e;
5397
5397
  }
5398
- if (o = gn(e.e / Pe), c = gn(v.e / Pe), u = u.slice(), a = c - o, a) {
5398
+ if (o = bn(e.e / Pe), c = bn(v.e / Pe), u = u.slice(), a = c - o, a) {
5399
5399
  for (d = a < 0, d ? (n = u, a = -a, i = f.length) : (n = f, o = c, i = u.length), t = Math.max(Math.ceil(l / Pe), i) + 2, a > t && (a = t, n.length = 1), n.reverse(), t = a; t--; )
5400
5400
  n.push(0);
5401
5401
  n.reverse();
@@ -5445,7 +5445,7 @@ Z.plus = Z.add = function(e) {
5445
5445
  return e.s = -e.s, d.minus(e);
5446
5446
  if (u = d.d, c = e.d, l = f.precision, s = f.rounding, !u[0] || !c[0])
5447
5447
  return c[0] || (e = new f(d)), Ee ? Ce(e, l, s) : e;
5448
- if (a = gn(d.e / Pe), t = gn(e.e / Pe), u = u.slice(), r = a - t, r) {
5448
+ if (a = bn(d.e / Pe), t = bn(e.e / Pe), u = u.slice(), r = a - t, r) {
5449
5449
  for (r < 0 ? (o = u, r = -r, i = c.length) : (o = c, t = a, i = u.length), a = Math.ceil(l / Pe), i = a > i ? a + 1 : i + 1, r > i && (r = i, o.length = 1), o.reverse(); r--; )
5450
5450
  o.push(0);
5451
5451
  o.reverse();
@@ -5474,7 +5474,7 @@ Z.squareRoot = Z.sqrt = function() {
5474
5474
  var e, n, o, t, r, a, i = this, l = i.d, s = i.e, u = i.s, c = i.constructor;
5475
5475
  if (u !== 1 || !l || !l[0])
5476
5476
  return new c(!u || u < 0 && (!l || l[0]) ? NaN : l ? i : 1 / 0);
5477
- for (Ee = !1, u = Math.sqrt(+i), u == 0 || u == 1 / 0 ? (n = fn(l), (n.length + s) % 2 == 0 && (n += "0"), u = Math.sqrt(n), s = gn((s + 1) / 2) - (s < 0 || s % 2), u == 1 / 0 ? n = "5e" + s : (n = u.toExponential(), n = n.slice(0, n.indexOf("e") + 1) + s), t = new c(n)) : t = new c(u.toString()), o = (s = c.precision) + 3; ; )
5477
+ for (Ee = !1, u = Math.sqrt(+i), u == 0 || u == 1 / 0 ? (n = fn(l), (n.length + s) % 2 == 0 && (n += "0"), u = Math.sqrt(n), s = bn((s + 1) / 2) - (s < 0 || s % 2), u == 1 / 0 ? n = "5e" + s : (n = u.toExponential(), n = n.slice(0, n.indexOf("e") + 1) + s), t = new c(n)) : t = new c(u.toString()), o = (s = c.precision) + 3; ; )
5478
5478
  if (a = t, t = a.plus(qe(i, a, o + 2, 1)).times(0.5), fn(a.d).slice(0, o) === (n = fn(t.d)).slice(0, o))
5479
5479
  if (n = n.slice(o - 3, o + 1), n == "9999" || !r && n == "4999") {
5480
5480
  if (!r && (Ce(a, s + 1, 0), a.times(a).eq(i))) {
@@ -5496,7 +5496,7 @@ Z.times = Z.mul = function(e) {
5496
5496
  var n, o, t, r, a, i, l, s, u, c = this, d = c.constructor, f = c.d, v = (e = new d(e)).d;
5497
5497
  if (e.s *= c.s, !f || !f[0] || !v || !v[0])
5498
5498
  return new d(!e.s || f && !f[0] && !v || v && !v[0] && !f ? NaN : !f || !v ? e.s / 0 : e.s * 0);
5499
- for (o = gn(c.e / Pe) + gn(e.e / Pe), s = f.length, u = v.length, s < u && (a = f, f = v, v = a, i = s, s = u, u = i), a = [], i = s + u, t = i; t--; )
5499
+ for (o = bn(c.e / Pe) + bn(e.e / Pe), s = f.length, u = v.length, s < u && (a = f, f = v, v = a, i = s, s = u, u = i), a = [], i = s + u, t = i; t--; )
5500
5500
  a.push(0);
5501
5501
  for (t = u; --t >= 0; ) {
5502
5502
  for (n = 0, r = s + t; r > t; )
@@ -5568,7 +5568,7 @@ Z.toPower = Z.pow = function(e) {
5568
5568
  return l;
5569
5569
  if (t = s.precision, a = s.rounding, e.eq(1))
5570
5570
  return Ce(l, t, a);
5571
- if (n = gn(e.e / Pe), n >= e.d.length - 1 && (o = u < 0 ? -u : u) <= Ky)
5571
+ if (n = bn(e.e / Pe), n >= e.d.length - 1 && (o = u < 0 ? -u : u) <= Ky)
5572
5572
  return r = tp(s, l, o, t), e.s < 0 ? new s(1).div(r) : Ce(r, t, a);
5573
5573
  if (i = l.s, i < 0) {
5574
5574
  if (n < e.d.length - 1)
@@ -5576,7 +5576,7 @@ Z.toPower = Z.pow = function(e) {
5576
5576
  if (e.d[n] & 1 || (i = 1), l.e == 0 && l.d[0] == 1 && l.d.length == 1)
5577
5577
  return l.s = i, l;
5578
5578
  }
5579
- return o = sn(+l, u), n = o == 0 || !isFinite(o) ? gn(u * (Math.log("0." + fn(l.d)) / Math.LN10 + l.e + 1)) : new s(o + "").e, n > s.maxE + 1 || n < s.minE - 1 ? new s(n > 0 ? i / 0 : 0) : (Ee = !1, s.rounding = l.s = 1, o = Math.min(12, (n + "").length), r = nl(e.times(go(l, t + o)), t), r.d && (r = Ce(r, t + 5, 1), Bt(r.d, t, a) && (n = t + 10, r = Ce(nl(e.times(go(l, n + o)), n), n + 5, 1), +fn(r.d).slice(t + 1, t + 15) + 1 == 1e14 && (r = Ce(r, t + 1, 0)))), r.s = i, Ee = !0, s.rounding = a, Ce(r, t, a));
5579
+ return o = sn(+l, u), n = o == 0 || !isFinite(o) ? bn(u * (Math.log("0." + fn(l.d)) / Math.LN10 + l.e + 1)) : new s(o + "").e, n > s.maxE + 1 || n < s.minE - 1 ? new s(n > 0 ? i / 0 : 0) : (Ee = !1, s.rounding = l.s = 1, o = Math.min(12, (n + "").length), r = nl(e.times(go(l, t + o)), t), r.d && (r = Ce(r, t + 5, 1), Bt(r.d, t, a) && (n = t + 10, r = Ce(nl(e.times(go(l, n + o)), n), n + 5, 1), +fn(r.d).slice(t + 1, t + 15) + 1 == 1e14 && (r = Ce(r, t + 1, 0)))), r.s = i, Ee = !0, s.rounding = a, Ce(r, t, a));
5580
5580
  };
5581
5581
  Z.toPrecision = function(e, n) {
5582
5582
  var o, t = this, r = t.constructor;
@@ -5674,7 +5674,7 @@ var qe = function() {
5674
5674
  q && q[0] == 0 || !W ? j * 0 : j / 0
5675
5675
  )
5676
5676
  );
5677
- for (s ? (v = 1, c = t.e - r.e) : (s = Kn, v = Pe, c = gn(t.e / v) - gn(r.e / v)), A = W.length, D = q.length, y = new L(j), h = y.d = [], d = 0; W[d] == (q[d] || 0); d++)
5677
+ for (s ? (v = 1, c = t.e - r.e) : (s = Kn, v = Pe, c = bn(t.e / v) - bn(r.e / v)), A = W.length, D = q.length, y = new L(j), h = y.d = [], d = 0; W[d] == (q[d] || 0); d++)
5678
5678
  ;
5679
5679
  if (W[d] > (q[d] || 0) && c--, a == null ? (O = a = L.precision, i = L.rounding) : l ? O = a + (t.e - r.e) + 1 : O = a, O < 0)
5680
5680
  h.push(1), b = !0;
@@ -5788,7 +5788,7 @@ function co(e) {
5788
5788
  function tp(e, n, o, t) {
5789
5789
  var r, a = new e(1), i = Math.ceil(t / Pe + 4);
5790
5790
  for (Ee = !1; ; ) {
5791
- if (o % 2 && (a = a.times(n), zu(a.d, i) && (r = !0)), o = gn(o / 2), o === 0) {
5791
+ if (o % 2 && (a = a.times(n), zu(a.d, i) && (r = !0)), o = bn(o / 2), o === 0) {
5792
5792
  o = a.d.length - 1, r && a.d[o] === 0 && ++a.d[o];
5793
5793
  break;
5794
5794
  }
@@ -6047,7 +6047,7 @@ function s1(e) {
6047
6047
  ];
6048
6048
  for (n = 0; n < a.length; n += 3)
6049
6049
  if (o = a[n], r && (this[o] = _i[o]), (t = e[o]) !== void 0)
6050
- if (gn(t) === t && t >= a[n + 1] && t <= a[n + 2])
6050
+ if (bn(t) === t && t >= a[n + 1] && t <= a[n + 2])
6051
6051
  this[o] = t;
6052
6052
  else
6053
6053
  throw Error(So + o + ": " + t);
@@ -6506,7 +6506,7 @@ const up = _({
6506
6506
  isMin: d,
6507
6507
  n: V1,
6508
6508
  classes: L1,
6509
- formatElevation: yn,
6509
+ formatElevation: hn,
6510
6510
  validate: y,
6511
6511
  reset: w,
6512
6512
  resetValidation: l,
@@ -8033,7 +8033,7 @@ const Cp = _({
8033
8033
  return `${k.value.length}${rn("datePickerSelected")}`;
8034
8034
  if (!u.value || !s.value || !c.value)
8035
8035
  return "";
8036
- const dn = le(`${u.value}-${s.value}-${c.value}`).day(), hn = kt.find((gt) => gt === `${dn}`), oo = (me = (ne = rn("datePickerWeekDict")) == null ? void 0 : ne[hn].name) != null ? me : "", Xm = (Ae = (Se = rn("datePickerMonthDict")) == null ? void 0 : Se[s.value].name) != null ? Ae : "", Gm = Vo(c.value, 2, "0");
8036
+ const dn = le(`${u.value}-${s.value}-${c.value}`).day(), gn = kt.find((gt) => gt === `${dn}`), oo = (me = (ne = rn("datePickerWeekDict")) == null ? void 0 : ne[gn].name) != null ? me : "", Xm = (Ae = (Se = rn("datePickerMonthDict")) == null ? void 0 : Se[s.value].name) != null ? Ae : "", Gm = Vo(c.value, 2, "0");
8037
8037
  return rn("lang") === "zh-CN" ? `${s.value}-${Gm} ${oo.slice(0, 3)}` : `${oo.slice(0, 3)}, ${Xm.slice(0, 3)} ${c.value}`;
8038
8038
  }), L = I(() => e.type === "year" || a.value ? "year" : e.type === "month" || i.value ? "month" : e.type === "date" ? "date" : ""), j = I(() => !e.touchable || !L.value), q = I(() => {
8039
8039
  var ne, me;
@@ -8110,14 +8110,14 @@ const Cp = _({
8110
8110
  if (ne < 0 || me)
8111
8111
  return;
8112
8112
  v.value = We("day", ne);
8113
- const dn = `${f.value}-${d.value}-${ne}`, hn = le(dn).format("YYYY-MM-DD");
8114
- Se ? $e(hn, "day") : Ae ? ze(hn, "day") : (C(Qe, hn), C(Le, hn));
8113
+ const dn = `${f.value}-${d.value}-${ne}`, gn = le(dn).format("YYYY-MM-DD");
8114
+ Se ? $e(gn, "day") : Ae ? ze(gn, "day") : (C(Qe, gn), C(Le, gn));
8115
8115
  }
8116
8116
  function he(ne) {
8117
- const { type: me, readonly: Se, range: Ae, multiple: Le, onChange: Qe, onPreview: dn, "onUpdate:modelValue": hn } = e;
8117
+ const { type: me, readonly: Se, range: Ae, multiple: Le, onChange: Qe, onPreview: dn, "onUpdate:modelValue": gn } = e;
8118
8118
  if (v.value = We("month", ne), me === "month" && !Se) {
8119
8119
  const oo = `${f.value}-${ne}`;
8120
- Ae ? $e(oo, "month") : Le ? ze(oo, "month") : (C(hn, oo), C(Qe, oo));
8120
+ Ae ? $e(oo, "month") : Le ? ze(oo, "month") : (C(gn, oo), C(Qe, oo));
8121
8121
  } else
8122
8122
  d.value = ne, C(
8123
8123
  dn,
@@ -8128,8 +8128,8 @@ const Cp = _({
8128
8128
  i.value = !1;
8129
8129
  }
8130
8130
  function Ve(ne) {
8131
- const { type: me, readonly: Se, range: Ae, multiple: Le, onChange: Qe, onPreview: dn, "onUpdate:modelValue": hn } = e;
8132
- v.value = We("year", ne), me === "year" && !Se ? Ae ? $e(`${ne}`, "year") : Le ? ze(`${ne}`, "year") : (C(hn, `${ne}`), C(Qe, `${ne}`)) : (f.value = `${ne}`, C(
8131
+ const { type: me, readonly: Se, range: Ae, multiple: Le, onChange: Qe, onPreview: dn, "onUpdate:modelValue": gn } = e;
8132
+ v.value = We("year", ne), me === "year" && !Se ? Ae ? $e(`${ne}`, "year") : Le ? ze(`${ne}`, "year") : (C(gn, `${ne}`), C(Qe, `${ne}`)) : (f.value = `${ne}`, C(
8133
8133
  dn,
8134
8134
  R(f.value),
8135
8135
  R(d.value),
@@ -8158,8 +8158,8 @@ const Cp = _({
8158
8158
  return Ge(ne) ? !1 : ne === "Invalid Date" ? (console.error('[Varlet] DatePicker: "modelValue" is an Invalid Date'), !0) : !1;
8159
8159
  }
8160
8160
  function ie(ne, me) {
8161
- const Se = me === "year" ? y : me === "month" ? h : w, Ae = me === "year" ? "YYYY" : me === "month" ? "YYYY-MM" : "YYYY-MM-D", Le = ne.map((hn) => le(hn).format(Ae)).slice(0, 2);
8162
- if (Se.value.some((hn) => no(hn)))
8161
+ const Se = me === "year" ? y : me === "month" ? h : w, Ae = me === "year" ? "YYYY" : me === "month" ? "YYYY-MM" : "YYYY-MM-D", Le = ne.map((gn) => le(gn).format(Ae)).slice(0, 2);
8162
+ if (Se.value.some((gn) => no(gn)))
8163
8163
  return;
8164
8164
  Se.value = Le;
8165
8165
  const dn = le(Se.value[0]).isAfter(Se.value[1]);
@@ -8211,7 +8211,7 @@ const Cp = _({
8211
8211
  getChooseMonth: he,
8212
8212
  getChooseYear: Ve,
8213
8213
  checkPreview: _e,
8214
- formatElevation: yn
8214
+ formatElevation: hn
8215
8215
  };
8216
8216
  }
8217
8217
  });
@@ -8497,7 +8497,7 @@ var Zt = Pp, Wk = Object.defineProperty, Kk = Object.defineProperties, qk = Obje
8497
8497
  }, Zk = (e, n) => Kk(e, qk(n));
8498
8498
  let mo, Dr = {};
8499
8499
  function Jk(e = {}) {
8500
- return bn(e) ? Zk(yi({}, Dr), { message: e }) : yi(yi({}, Dr), e);
8500
+ return yn(e) ? Zk(yi({}, Dr), { message: e }) : yi(yi({}, Dr), e);
8501
8501
  }
8502
8502
  function Do(e) {
8503
8503
  return eo() ? new Promise((n) => {
@@ -10748,7 +10748,7 @@ const Kp = _({
10748
10748
  classes: Lw,
10749
10749
  toSizeUnit: Te,
10750
10750
  toNumber: R,
10751
- formatElevation: yn,
10751
+ formatElevation: hn,
10752
10752
  handleTouchstart: w,
10753
10753
  handleTouchmove: S,
10754
10754
  handleTouchend: T
@@ -11737,7 +11737,7 @@ var Jt = ev, hC = Object.defineProperty, gC = Object.defineProperties, bC = Obje
11737
11737
  }, $c = (e, n) => gC(e, bC(n));
11738
11738
  let ho, Pt = {};
11739
11739
  function $C(e = {}) {
11740
- return bn(e) ? $c(sr({}, Pt), { images: [e] }) : Ge(e) ? $c(sr({}, Pt), { images: e }) : sr(sr({}, Pt), e);
11740
+ return yn(e) ? $c(sr({}, Pt), { images: [e] }) : Ge(e) ? $c(sr({}, Pt), { images: e }) : sr(sr({}, Pt), e);
11741
11741
  }
11742
11742
  function Io(e) {
11743
11743
  if (!eo())
@@ -12896,7 +12896,7 @@ const $v = _({
12896
12896
  show: a,
12897
12897
  zIndex: i,
12898
12898
  teleportDisabled: n,
12899
- formatElevation: yn,
12899
+ formatElevation: hn,
12900
12900
  toSizeUnit: Te,
12901
12901
  n: pS,
12902
12902
  classes: vS,
@@ -13228,7 +13228,7 @@ const Ov = _({
13228
13228
  menuOptionsRef: o,
13229
13229
  n: TS,
13230
13230
  classes: ES,
13231
- formatElevation: yn,
13231
+ formatElevation: hn,
13232
13232
  open: f,
13233
13233
  close: v,
13234
13234
  resize: b
@@ -13813,7 +13813,7 @@ const Mv = _({
13813
13813
  clickSize: m,
13814
13814
  setPage: y,
13815
13815
  toNumber: R,
13816
- formatElevation: yn
13816
+ formatElevation: hn
13817
13817
  };
13818
13818
  }
13819
13819
  });
@@ -13878,7 +13878,7 @@ const Nv = _({
13878
13878
  return {
13879
13879
  n: KS,
13880
13880
  classes: qS,
13881
- formatElevation: yn,
13881
+ formatElevation: hn,
13882
13882
  toSizeUnit: Te,
13883
13883
  handleClick: n
13884
13884
  };
@@ -14747,7 +14747,7 @@ const Hv = _({
14747
14747
  const n = $(0), o = $(null), t = $(null), r = $(0), a = $("-125%"), i = $("arrow-down"), l = $("default"), s = $(!1), u = I(() => Math.abs(2 * n.value)), c = I(() => l.value === "success"), d = I(
14748
14748
  () => l.value !== "loading" && l.value !== "success" && !e.disabled
14749
14749
  ), f = I(() => ({
14750
- transform: `translate3d(0px, ${bn(a.value) ? a.value : `${a.value}px`}, 0px) translate(-50%, 0)`,
14750
+ transform: `translate3d(0px, ${yn(a.value) ? a.value : `${a.value}px`}, 0px) translate(-50%, 0)`,
14751
14751
  transition: s.value ? `transform ${e.animationDuration}ms` : void 0,
14752
14752
  background: c.value ? e.successBgColor : e.bgColor,
14753
14753
  color: c.value ? e.successColor : e.color
@@ -16703,8 +16703,8 @@ const cm = _({
16703
16703
  let we = [];
16704
16704
  const { step: Ie, range: ne, modelValue: me, min: Se } = e, Ae = R(Ie), Le = Math.round(ie / a.value), Qe = Le * Ae + R(Se), dn = z[ge].percentValue * Ae + R(Se);
16705
16705
  if (z[ge].percentValue = Le, ne && Ge(me) && (we = ge === an.First ? [Qe, me[1]] : [me[0], Qe]), dn !== Qe) {
16706
- const hn = ne ? we.map((oo) => J(oo)) : J(Qe);
16707
- Q(hn);
16706
+ const gn = ne ? we.map((oo) => J(oo)) : J(Qe);
16707
+ Q(gn);
16708
16708
  }
16709
16709
  }
16710
16710
  function U(ie) {
@@ -17194,7 +17194,7 @@ function s4(e) {
17194
17194
  Fn.push(e);
17195
17195
  }
17196
17196
  function u4(e = {}) {
17197
- return bn(e) ? {
17197
+ return yn(e) ? {
17198
17198
  content: e
17199
17199
  } : e;
17200
17200
  }
@@ -17552,6 +17552,10 @@ const Sm = {
17552
17552
  type: Boolean,
17553
17553
  default: !0
17554
17554
  },
17555
+ buttonElevation: {
17556
+ type: [Boolean, String, Number],
17557
+ default: !0
17558
+ },
17555
17559
  validateTrigger: {
17556
17560
  type: Array,
17557
17561
  default: () => ["onChange", "onLazyChange"]
@@ -17616,7 +17620,7 @@ function L4(e, n) {
17616
17620
  class: p(
17617
17621
  e.classes(
17618
17622
  e.n("handle"),
17619
- e.n("$-elevation--2"),
17623
+ e.formatElevation(e.buttonElevation, 2),
17620
17624
  [e.isActive, e.n("handle--active")],
17621
17625
  [e.errorMessage && !e.variant, e.n("handle--error")],
17622
17626
  [e.hovering, e.n("handle--hover")]
@@ -17756,6 +17760,7 @@ const Pm = _({
17756
17760
  formReadonly: r == null ? void 0 : r.readonly,
17757
17761
  n: D4,
17758
17762
  classes: B4,
17763
+ formatElevation: hn,
17759
17764
  multiplySizeUnit: kn,
17760
17765
  switchActive: w,
17761
17766
  hover: S
@@ -17971,7 +17976,7 @@ const Im = _({
17971
17976
  toSizeUnit: Te,
17972
17977
  n: G4,
17973
17978
  classes: Z4,
17974
- formatElevation: yn
17979
+ formatElevation: hn
17975
17980
  })
17976
17981
  });
17977
17982
  Im.render = J4;
@@ -18203,7 +18208,7 @@ const Am = _({
18203
18208
  classes: _4,
18204
18209
  resize: D,
18205
18210
  resizeSticky: F,
18206
- formatElevation: yn
18211
+ formatElevation: hn
18207
18212
  };
18208
18213
  }
18209
18214
  });
@@ -21609,7 +21614,7 @@ const Ym = _({
21609
21614
  end: J,
21610
21615
  update: S,
21611
21616
  changePreventUpdate: ve,
21612
- formatElevation: yn
21617
+ formatElevation: hn
21613
21618
  };
21614
21619
  }
21615
21620
  });
@@ -22058,7 +22063,7 @@ const Wm = _({
22058
22063
  formReadonly: l == null ? void 0 : l.readonly,
22059
22064
  n: n8,
22060
22065
  classes: o8,
22061
- formatElevation: yn,
22066
+ formatElevation: hn,
22062
22067
  toNumber: R,
22063
22068
  handleHovering: b,
22064
22069
  isHTMLSupportVideo: tu,
@@ -22330,7 +22335,7 @@ re(mi);
22330
22335
  se(mi, Km);
22331
22336
  const lT = mi;
22332
22337
  var Jl = mi;
22333
- const z8 = "3.2.6";
22338
+ const z8 = "3.2.7";
22334
22339
  function O8(e) {
22335
22340
  Ei.install && e.use(Ei), Di.install && e.use(Di), Mi.install && e.use(Mi), Ai.install && e.use(Ai), Ni.install && e.use(Ni), Sr.install && e.use(Sr), Vi.install && e.use(Vi), Li.install && e.use(Li), Ri.install && e.use(Ri), Fi.install && e.use(Fi), Cn.install && e.use(Cn), Ui.install && e.use(Ui), Hi.install && e.use(Hi), Yi.install && e.use(Yi), Dt.install && e.use(Dt), ji.install && e.use(ji), Pr.install && e.use(Pr), Wi.install && e.use(Wi), Ki.install && e.use(Ki), qi.install && e.use(qi), Xi.install && e.use(Xi), In.install && e.use(In), Qi.install && e.use(Qi), tl.install && e.use(tl), al.install && e.use(al), il.install && e.use(il), ll.install && e.use(ll), Br.install && e.use(Br), cl.install && e.use(cl), dl.install && e.use(dl), At.install && e.use(At), fl.install && e.use(fl), pl.install && e.use(pl), On.install && e.use(On), zn.install && e.use(zn), Nn.install && e.use(Nn), Xe.install && e.use(Xe), vl.install && e.use(vl), Lt.install && e.use(Lt), ml.install && e.use(ml), hl.install && e.use(hl), Mr.install && e.use(Mr), Et.install && e.use(Et), gl.install && e.use(gl), bl.install && e.use(bl), tt.install && e.use(tt), yl.install && e.use(yl), Ti.install && e.use(Ti), Rt.install && e.use(Rt), Ar.install && e.use(Ar), Nr.install && e.use(Nr), kl.install && e.use(kl), $l.install && e.use($l), wl.install && e.use(wl), Cl.install && e.use(Cl), Sl.install && e.use(Sl), wo.install && e.use(wo), Pl.install && e.use(Pl), zl.install && e.use(zl), Ol.install && e.use(Ol), Tl.install && e.use(Tl), El.install && e.use(El), Dl.install && e.use(Dl), on.install && e.use(on), Bl.install && e.use(Bl), Il.install && e.use(Il), Ml.install && e.use(Ml), Al.install && e.use(Al), Vl.install && e.use(Vl), Ll.install && e.use(Ll), Rl.install && e.use(Rl), Fl.install && e.use(Fl), it.install && e.use(it), Ul.install && e.use(Ul), Nt.install && e.use(Nt), Vt.install && e.use(Vt), Hl.install && e.use(Hl), Yl.install && e.use(Yl), jl.install && e.use(jl), Wl.install && e.use(Wl), Kl.install && e.use(Kl), ql.install && e.use(ql), Xl.install && e.use(Xl), Gl.install && e.use(Gl), Ir.install && e.use(Ir), Zl.install && e.use(Zl), Jl.install && e.use(Jl);
22336
22341
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.2.6",
4
+ "version": "3.2.7",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -6799,6 +6799,15 @@
6799
6799
  "kind": "expression"
6800
6800
  }
6801
6801
  },
6802
+ {
6803
+ "name": "button-elevation",
6804
+ "description": "The elevation of handle button",
6805
+ "default": "true",
6806
+ "value": {
6807
+ "type": "boolean",
6808
+ "kind": "expression"
6809
+ }
6810
+ },
6802
6811
  {
6803
6812
  "name": "color",
6804
6813
  "description": "Background color when open",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.2.6",
4
+ "version": "3.2.7",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -7130,6 +7130,15 @@
7130
7130
  "kind": "expression"
7131
7131
  }
7132
7132
  },
7133
+ {
7134
+ "name": "button-elevation",
7135
+ "description": "控制按钮的海拔效果",
7136
+ "default": "true",
7137
+ "value": {
7138
+ "type": "boolean",
7139
+ "kind": "expression"
7140
+ }
7141
+ },
7133
7142
  {
7134
7143
  "name": "color",
7135
7144
  "description": "打开状态下的颜色",