@varlet/ui 2.9.0 → 2.9.1-alpha.1678875429822

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/lib/varlet.cjs.js CHANGED
@@ -584,8 +584,8 @@ function _asyncToGenerator$d(fn2) {
584
584
  });
585
585
  };
586
586
  }
587
- function _extends$m() {
588
- _extends$m = Object.assign ? Object.assign.bind() : function(target) {
587
+ function _extends$n() {
588
+ _extends$n = Object.assign ? Object.assign.bind() : function(target) {
589
589
  for (var i = 1; i < arguments.length; i++) {
590
590
  var source = arguments[i];
591
591
  for (var key in source) {
@@ -596,7 +596,7 @@ function _extends$m() {
596
596
  }
597
597
  return target;
598
598
  };
599
- return _extends$m.apply(this, arguments);
599
+ return _extends$n.apply(this, arguments);
600
600
  }
601
601
  function pickProps(props2, propsKey) {
602
602
  return Array.isArray(propsKey) ? propsKey.reduce((pickedProps, key) => {
@@ -625,7 +625,7 @@ function mountInstance(component, props2, eventListener) {
625
625
  }
626
626
  var Host = {
627
627
  setup() {
628
- return () => vue.h(component, _extends$m({}, props2, eventListener));
628
+ return () => vue.h(component, _extends$n({}, props2, eventListener));
629
629
  }
630
630
  };
631
631
  var {
@@ -752,8 +752,8 @@ function defineListenerProp(fallback) {
752
752
  default: fallback
753
753
  };
754
754
  }
755
- function _extends$l() {
756
- _extends$l = Object.assign ? Object.assign.bind() : function(target) {
755
+ function _extends$m() {
756
+ _extends$m = Object.assign ? Object.assign.bind() : function(target) {
757
757
  for (var i = 1; i < arguments.length; i++) {
758
758
  var source = arguments[i];
759
759
  for (var key in source) {
@@ -764,10 +764,10 @@ function _extends$l() {
764
764
  }
765
765
  return target;
766
766
  };
767
- return _extends$l.apply(this, arguments);
767
+ return _extends$m.apply(this, arguments);
768
768
  }
769
769
  var {
770
- n: n$1g
770
+ n: n$1h
771
771
  } = createNamespace("ripple");
772
772
  var ANIMATION_DURATION$1 = 250;
773
773
  function setStyles(element) {
@@ -822,7 +822,7 @@ function createRipple(event) {
822
822
  size
823
823
  } = computeRippleStyles(this, event);
824
824
  var ripple2 = document.createElement("div");
825
- ripple2.classList.add(n$1g());
825
+ ripple2.classList.add(n$1h());
826
826
  ripple2.style.opacity = "0";
827
827
  ripple2.style.transform = "translate(" + x + "px, " + y + "px) scale3d(.3, .3, .3)";
828
828
  ripple2.style.width = size + "px";
@@ -841,7 +841,7 @@ function createRipple(event) {
841
841
  function removeRipple() {
842
842
  var _ripple = this._ripple;
843
843
  var task = () => {
844
- var ripples = this.querySelectorAll("." + n$1g());
844
+ var ripples = this.querySelectorAll("." + n$1h());
845
845
  if (!ripples.length) {
846
846
  return;
847
847
  }
@@ -870,7 +870,7 @@ function forbidRippleTask() {
870
870
  }
871
871
  function mounted$2(el, binding) {
872
872
  var _binding$value, _binding$value$touchm, _binding$value2;
873
- el._ripple = _extends$l({
873
+ el._ripple = _extends$m({
874
874
  tasker: null
875
875
  }, (_binding$value = binding.value) != null ? _binding$value : {}, {
876
876
  touchmoveForbid: (_binding$value$touchm = (_binding$value2 = binding.value) == null ? void 0 : _binding$value2.touchmoveForbid) != null ? _binding$value$touchm : Context.touchmoveForbid,
@@ -909,7 +909,7 @@ function updated$2(el, binding) {
909
909
  var diff2 = newBinding.touchmoveForbid !== ((_el$_ripple = el._ripple) == null ? void 0 : _el$_ripple.touchmoveForbid) || newBinding.color !== ((_el$_ripple2 = el._ripple) == null ? void 0 : _el$_ripple2.color) || newBinding.disabled !== ((_el$_ripple3 = el._ripple) == null ? void 0 : _el$_ripple3.disabled);
910
910
  if (diff2) {
911
911
  var _el$_ripple4, _el$_ripple5;
912
- el._ripple = _extends$l({
912
+ el._ripple = _extends$m({
913
913
  tasker: newBinding.disabled ? null : (_el$_ripple4 = el._ripple) == null ? void 0 : _el$_ripple4.tasker,
914
914
  removeRipple: (_el$_ripple5 = el._ripple) == null ? void 0 : _el$_ripple5.removeRipple
915
915
  }, newBinding);
@@ -928,7 +928,7 @@ const Ripple$1 = Ripple;
928
928
  function positionValidator$4(position) {
929
929
  return ["top", "bottom", "right", "left", "center"].includes(position);
930
930
  }
931
- var props$18 = {
931
+ var props$19 = {
932
932
  show: {
933
933
  type: Boolean,
934
934
  default: false
@@ -1057,8 +1057,8 @@ function useZIndex(source, count) {
1057
1057
  zIndex
1058
1058
  };
1059
1059
  }
1060
- function _extends$k() {
1061
- _extends$k = Object.assign ? Object.assign.bind() : function(target) {
1060
+ function _extends$l() {
1061
+ _extends$l = Object.assign ? Object.assign.bind() : function(target) {
1062
1062
  for (var i = 1; i < arguments.length; i++) {
1063
1063
  var source = arguments[i];
1064
1064
  for (var key in source) {
@@ -1069,19 +1069,19 @@ function _extends$k() {
1069
1069
  }
1070
1070
  return target;
1071
1071
  };
1072
- return _extends$k.apply(this, arguments);
1072
+ return _extends$l.apply(this, arguments);
1073
1073
  }
1074
1074
  function _isSlot$3(s) {
1075
1075
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
1076
1076
  }
1077
1077
  var {
1078
- n: n$1f,
1079
- classes: classes$12
1078
+ n: n$1g,
1079
+ classes: classes$13
1080
1080
  } = createNamespace("popup");
1081
1081
  const Popup = vue.defineComponent({
1082
1082
  name: "VarPopup",
1083
1083
  inheritAttrs: false,
1084
- props: props$18,
1084
+ props: props$19,
1085
1085
  setup(props2, _ref) {
1086
1086
  var {
1087
1087
  slots,
@@ -1115,8 +1115,8 @@ const Popup = vue.defineComponent({
1115
1115
  overlayStyle
1116
1116
  } = props2;
1117
1117
  return vue.createVNode("div", {
1118
- "class": classes$12(n$1f("overlay"), overlayClass),
1119
- "style": _extends$k({
1118
+ "class": classes$13(n$1g("overlay"), overlayClass),
1119
+ "style": _extends$l({
1120
1120
  zIndex: zIndex.value - 1
1121
1121
  }, overlayStyle),
1122
1122
  "onClick": hidePopup
@@ -1124,7 +1124,7 @@ const Popup = vue.defineComponent({
1124
1124
  };
1125
1125
  var renderContent = () => {
1126
1126
  return vue.createVNode("div", vue.mergeProps({
1127
- "class": classes$12(n$1f("content"), n$1f("--" + props2.position), [props2.defaultStyle, n$1f("--content-background-color")], [props2.defaultStyle, n$1f("$-elevation--3")]),
1127
+ "class": classes$13(n$1g("content"), n$1g("--" + props2.position), [props2.defaultStyle, n$1g("--content-background-color")], [props2.defaultStyle, n$1g("$-elevation--3")]),
1128
1128
  "style": {
1129
1129
  zIndex: zIndex.value
1130
1130
  }
@@ -1140,17 +1140,17 @@ const Popup = vue.defineComponent({
1140
1140
  position
1141
1141
  } = props2;
1142
1142
  return vue.createVNode(vue.Transition, {
1143
- "name": n$1f("$-fade"),
1143
+ "name": n$1g("$-fade"),
1144
1144
  "onAfterEnter": onOpened,
1145
1145
  "onAfterLeave": onClosed
1146
1146
  }, {
1147
1147
  default: () => [vue.withDirectives(vue.createVNode("div", {
1148
- "class": classes$12(n$1f("$--box"), n$1f()),
1148
+ "class": classes$13(n$1g("$--box"), n$1g()),
1149
1149
  "style": {
1150
1150
  zIndex: zIndex.value - 2
1151
1151
  }
1152
1152
  }, [overlay2 && renderOverlay(), vue.createVNode(vue.Transition, {
1153
- "name": transition || n$1f("$-pop-" + position)
1153
+ "name": transition || n$1g("$-pop-" + position)
1154
1154
  }, {
1155
1155
  default: () => [show && renderContent()]
1156
1156
  })]), [[vue.vShow, show]])]
@@ -1177,7 +1177,7 @@ Popup.install = function(app) {
1177
1177
  app.component(Popup.name, Popup);
1178
1178
  };
1179
1179
  var _PopupComponent = Popup;
1180
- var props$17 = {
1180
+ var props$18 = {
1181
1181
  name: {
1182
1182
  type: String
1183
1183
  },
@@ -1230,10 +1230,10 @@ function _asyncToGenerator$c(fn2) {
1230
1230
  };
1231
1231
  }
1232
1232
  var {
1233
- n: n$1e,
1234
- classes: classes$11
1233
+ n: n$1f,
1234
+ classes: classes$12
1235
1235
  } = createNamespace("icon");
1236
- function __render__$1e(_ctx, _cache) {
1236
+ function __render__$1f(_ctx, _cache) {
1237
1237
  return vue.openBlock(), vue.createBlock(
1238
1238
  vue.resolveDynamicComponent(_ctx.isURL(_ctx.name) ? "img" : "i"),
1239
1239
  {
@@ -1253,9 +1253,9 @@ function __render__$1e(_ctx, _cache) {
1253
1253
  ["class", "style", "src", "onClick"]
1254
1254
  );
1255
1255
  }
1256
- var __sfc__$1f = vue.defineComponent({
1256
+ var __sfc__$1g = vue.defineComponent({
1257
1257
  name: "VarIcon",
1258
- props: props$17,
1258
+ props: props$18,
1259
1259
  setup(props2) {
1260
1260
  var nextName = vue.ref("");
1261
1261
  var animateInProgress = vue.ref(false);
@@ -1285,8 +1285,8 @@ var __sfc__$1f = vue.defineComponent({
1285
1285
  immediate: true
1286
1286
  });
1287
1287
  return {
1288
- n: n$1e,
1289
- classes: classes$11,
1288
+ n: n$1f,
1289
+ classes: classes$12,
1290
1290
  nextName,
1291
1291
  animateInProgress,
1292
1292
  isURL,
@@ -1295,14 +1295,14 @@ var __sfc__$1f = vue.defineComponent({
1295
1295
  };
1296
1296
  }
1297
1297
  });
1298
- __sfc__$1f.render = __render__$1e;
1299
- const Icon = __sfc__$1f;
1298
+ __sfc__$1g.render = __render__$1f;
1299
+ const Icon = __sfc__$1g;
1300
1300
  Icon.install = function(app) {
1301
1301
  app.component(Icon.name, Icon);
1302
1302
  };
1303
1303
  var _IconComponent = Icon;
1304
- function _extends$j() {
1305
- _extends$j = Object.assign ? Object.assign.bind() : function(target) {
1304
+ function _extends$k() {
1305
+ _extends$k = Object.assign ? Object.assign.bind() : function(target) {
1306
1306
  for (var i = 1; i < arguments.length; i++) {
1307
1307
  var source = arguments[i];
1308
1308
  for (var key in source) {
@@ -1313,9 +1313,9 @@ function _extends$j() {
1313
1313
  }
1314
1314
  return target;
1315
1315
  };
1316
- return _extends$j.apply(this, arguments);
1316
+ return _extends$k.apply(this, arguments);
1317
1317
  }
1318
- var props$16 = _extends$j({
1318
+ var props$17 = _extends$k({
1319
1319
  show: {
1320
1320
  type: Boolean,
1321
1321
  default: false
@@ -1333,7 +1333,7 @@ var props$16 = _extends$j({
1333
1333
  },
1334
1334
  onSelect: defineListenerProp(),
1335
1335
  "onUpdate:show": defineListenerProp()
1336
- }, pickProps(props$18, [
1336
+ }, pickProps(props$19, [
1337
1337
  "overlay",
1338
1338
  "overlayClass",
1339
1339
  "overlayStyle",
@@ -1552,8 +1552,8 @@ const enUS = {
1552
1552
  paginationPage: "page",
1553
1553
  paginationJump: "Go to"
1554
1554
  };
1555
- function _extends$i() {
1556
- _extends$i = Object.assign ? Object.assign.bind() : function(target) {
1555
+ function _extends$j() {
1556
+ _extends$j = Object.assign ? Object.assign.bind() : function(target) {
1557
1557
  for (var i = 1; i < arguments.length; i++) {
1558
1558
  var source = arguments[i];
1559
1559
  for (var key in source) {
@@ -1564,7 +1564,7 @@ function _extends$i() {
1564
1564
  }
1565
1565
  return target;
1566
1566
  };
1567
- return _extends$i.apply(this, arguments);
1567
+ return _extends$j.apply(this, arguments);
1568
1568
  }
1569
1569
  function useLocale() {
1570
1570
  var packs2 = {};
@@ -1585,7 +1585,7 @@ function useLocale() {
1585
1585
  console.warn("The " + lang + " does not exist. You can mount a language package using the add method");
1586
1586
  return;
1587
1587
  }
1588
- packs2[lang] = _extends$i({}, packs2[lang], pack3);
1588
+ packs2[lang] = _extends$j({}, packs2[lang], pack3);
1589
1589
  use2(lang);
1590
1590
  };
1591
1591
  return {
@@ -1626,11 +1626,11 @@ const Locale = {
1626
1626
  useLocale
1627
1627
  };
1628
1628
  var {
1629
- n: n$1d,
1630
- classes: classes$10
1629
+ n: n$1e,
1630
+ classes: classes$11
1631
1631
  } = createNamespace("action-sheet");
1632
1632
  var _hoisted_1$r = ["onClick"];
1633
- function __render__$1d(_ctx, _cache) {
1633
+ function __render__$1e(_ctx, _cache) {
1634
1634
  var _component_var_icon = vue.resolveComponent("var-icon");
1635
1635
  var _component_var_popup = vue.resolveComponent("var-popup");
1636
1636
  var _directive_ripple = vue.resolveDirective("ripple");
@@ -1723,7 +1723,7 @@ function __render__$1d(_ctx, _cache) {
1723
1723
  ["class", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "teleport", "show", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]
1724
1724
  );
1725
1725
  }
1726
- var __sfc__$1e = vue.defineComponent({
1726
+ var __sfc__$1f = vue.defineComponent({
1727
1727
  name: "VarActionSheet",
1728
1728
  directives: {
1729
1729
  Ripple: Ripple$1
@@ -1733,7 +1733,7 @@ var __sfc__$1e = vue.defineComponent({
1733
1733
  VarIcon: Icon
1734
1734
  },
1735
1735
  inheritAttrs: false,
1736
- props: props$16,
1736
+ props: props$17,
1737
1737
  setup(props2) {
1738
1738
  var popupShow = vue.ref(false);
1739
1739
  var handleSelect = (action) => {
@@ -1754,8 +1754,8 @@ var __sfc__$1e = vue.defineComponent({
1754
1754
  immediate: true
1755
1755
  });
1756
1756
  return {
1757
- n: n$1d,
1758
- classes: classes$10,
1757
+ n: n$1e,
1758
+ classes: classes$11,
1759
1759
  handlePopupUpdateShow,
1760
1760
  popupShow,
1761
1761
  pack,
@@ -1764,10 +1764,10 @@ var __sfc__$1e = vue.defineComponent({
1764
1764
  };
1765
1765
  }
1766
1766
  });
1767
- __sfc__$1e.render = __render__$1d;
1768
- const VarActionSheet = __sfc__$1e;
1769
- function _extends$h() {
1770
- _extends$h = Object.assign ? Object.assign.bind() : function(target) {
1767
+ __sfc__$1f.render = __render__$1e;
1768
+ const VarActionSheet = __sfc__$1f;
1769
+ function _extends$i() {
1770
+ _extends$i = Object.assign ? Object.assign.bind() : function(target) {
1771
1771
  for (var i = 1; i < arguments.length; i++) {
1772
1772
  var source = arguments[i];
1773
1773
  for (var key in source) {
@@ -1778,15 +1778,15 @@ function _extends$h() {
1778
1778
  }
1779
1779
  return target;
1780
1780
  };
1781
- return _extends$h.apply(this, arguments);
1781
+ return _extends$i.apply(this, arguments);
1782
1782
  }
1783
1783
  var singletonOptions$3;
1784
- var defaultOptions$2 = {};
1785
- function normalizeOptions$2(options) {
1784
+ var defaultOptions$3 = {};
1785
+ function normalizeOptions$3(options) {
1786
1786
  if (options === void 0) {
1787
1787
  options = {};
1788
1788
  }
1789
- return _extends$h({}, defaultOptions$2, options);
1789
+ return _extends$i({}, defaultOptions$3, options);
1790
1790
  }
1791
1791
  function ActionSheet(options) {
1792
1792
  if (!inBrowser()) {
@@ -1794,7 +1794,7 @@ function ActionSheet(options) {
1794
1794
  }
1795
1795
  return new Promise((resolve) => {
1796
1796
  ActionSheet.close();
1797
- var reactiveActionSheetOptions = vue.reactive(normalizeOptions$2(options));
1797
+ var reactiveActionSheetOptions = vue.reactive(normalizeOptions$3(options));
1798
1798
  reactiveActionSheetOptions.teleport = "body";
1799
1799
  singletonOptions$3 = reactiveActionSheetOptions;
1800
1800
  var {
@@ -1825,10 +1825,10 @@ function ActionSheet(options) {
1825
1825
  });
1826
1826
  }
1827
1827
  function setDefaultOptions$2(options) {
1828
- defaultOptions$2 = options;
1828
+ defaultOptions$3 = options;
1829
1829
  }
1830
1830
  function resetDefaultOptions$2() {
1831
- defaultOptions$2 = {};
1831
+ defaultOptions$3 = {};
1832
1832
  }
1833
1833
  function close$1() {
1834
1834
  if (singletonOptions$3 != null) {
@@ -1856,7 +1856,7 @@ function positionValidator$3(position) {
1856
1856
  var validPositions = ["left", "center", "right"];
1857
1857
  return validPositions.includes(position);
1858
1858
  }
1859
- var props$15 = {
1859
+ var props$16 = {
1860
1860
  color: {
1861
1861
  type: String
1862
1862
  },
@@ -1887,10 +1887,10 @@ var props$15 = {
1887
1887
  }
1888
1888
  };
1889
1889
  var {
1890
- n: n$1c,
1891
- classes: classes$$
1890
+ n: n$1d,
1891
+ classes: classes$10
1892
1892
  } = createNamespace("app-bar");
1893
- function __render__$1c(_ctx, _cache) {
1893
+ function __render__$1d(_ctx, _cache) {
1894
1894
  return vue.openBlock(), vue.createElementBlock(
1895
1895
  "div",
1896
1896
  {
@@ -1971,9 +1971,9 @@ function __render__$1c(_ctx, _cache) {
1971
1971
  /* CLASS, STYLE */
1972
1972
  );
1973
1973
  }
1974
- var __sfc__$1d = vue.defineComponent({
1974
+ var __sfc__$1e = vue.defineComponent({
1975
1975
  name: "VarAppBar",
1976
- props: props$15,
1976
+ props: props$16,
1977
1977
  setup(props2, _ref) {
1978
1978
  var {
1979
1979
  slots
@@ -2007,16 +2007,16 @@ var __sfc__$1d = vue.defineComponent({
2007
2007
  useMounted(computePadding);
2008
2008
  vue.onUpdated(computePadding);
2009
2009
  return {
2010
- n: n$1c,
2011
- classes: classes$$,
2010
+ n: n$1d,
2011
+ classes: classes$10,
2012
2012
  rootStyles,
2013
2013
  paddingLeft,
2014
2014
  paddingRight
2015
2015
  };
2016
2016
  }
2017
2017
  });
2018
- __sfc__$1d.render = __render__$1c;
2019
- const AppBar = __sfc__$1d;
2018
+ __sfc__$1e.render = __render__$1d;
2019
+ const AppBar = __sfc__$1e;
2020
2020
  AppBar.install = function(app) {
2021
2021
  app.component(AppBar.name, AppBar);
2022
2022
  };
@@ -2050,8 +2050,8 @@ function _asyncToGenerator$b(fn2) {
2050
2050
  });
2051
2051
  };
2052
2052
  }
2053
- function _extends$g() {
2054
- _extends$g = Object.assign ? Object.assign.bind() : function(target) {
2053
+ function _extends$h() {
2054
+ _extends$h = Object.assign ? Object.assign.bind() : function(target) {
2055
2055
  for (var i = 1; i < arguments.length; i++) {
2056
2056
  var source = arguments[i];
2057
2057
  for (var key in source) {
@@ -2062,7 +2062,7 @@ function _extends$g() {
2062
2062
  }
2063
2063
  return target;
2064
2064
  };
2065
- return _extends$g.apply(this, arguments);
2065
+ return _extends$h.apply(this, arguments);
2066
2066
  }
2067
2067
  var BACKGROUND_IMAGE_ARG_NAME = "background-image";
2068
2068
  var LAZY_LOADING = "lazy-loading";
@@ -2132,7 +2132,7 @@ function createLazy(el, binding) {
2132
2132
  error: (_el$getAttribute2 = el.getAttribute(LAZY_ERROR)) != null ? _el$getAttribute2 : defaultLazyOptions.error,
2133
2133
  attempt: el.getAttribute(LAZY_ATTEMPT) ? Number(el.getAttribute(LAZY_ATTEMPT)) : defaultLazyOptions.attempt
2134
2134
  };
2135
- el._lazy = _extends$g({
2135
+ el._lazy = _extends$h({
2136
2136
  src: binding.value,
2137
2137
  arg: binding.arg,
2138
2138
  currentAttempt: 0,
@@ -2268,7 +2268,7 @@ var internalSizeValidator$1 = (size) => ["mini", "small", "normal", "large"].inc
2268
2268
  function sizeValidator$5(size) {
2269
2269
  return internalSizeValidator$1(size) || isNumber(size) || isString(size);
2270
2270
  }
2271
- var props$14 = {
2271
+ var props$15 = {
2272
2272
  round: {
2273
2273
  type: Boolean,
2274
2274
  default: true
@@ -2311,12 +2311,12 @@ var props$14 = {
2311
2311
  onError: defineListenerProp()
2312
2312
  };
2313
2313
  var {
2314
- n: n$1b,
2315
- classes: classes$_
2314
+ n: n$1c,
2315
+ classes: classes$$
2316
2316
  } = createNamespace("avatar");
2317
2317
  var _hoisted_1$q = ["src", "lazy-loading", "lazy-error"];
2318
2318
  var _hoisted_2$d = ["src"];
2319
- function __render__$1b(_ctx, _cache) {
2319
+ function __render__$1c(_ctx, _cache) {
2320
2320
  var _directive_lazy = vue.resolveDirective("lazy");
2321
2321
  return vue.openBlock(), vue.createElementBlock(
2322
2322
  "div",
@@ -2396,12 +2396,12 @@ function __render__$1b(_ctx, _cache) {
2396
2396
  /* CLASS, STYLE */
2397
2397
  );
2398
2398
  }
2399
- var __sfc__$1c = vue.defineComponent({
2399
+ var __sfc__$1d = vue.defineComponent({
2400
2400
  name: "VarAvatar",
2401
2401
  directives: {
2402
2402
  Lazy: Lazy$1
2403
2403
  },
2404
- props: props$14,
2404
+ props: props$15,
2405
2405
  setup(props2) {
2406
2406
  var avatarElement = vue.ref(null);
2407
2407
  var textElement = vue.ref(null);
@@ -2445,8 +2445,8 @@ var __sfc__$1c = vue.defineComponent({
2445
2445
  internalSizeValidator: internalSizeValidator$1,
2446
2446
  sizeValidator: sizeValidator$5,
2447
2447
  toSizeUnit,
2448
- n: n$1b,
2449
- classes: classes$_,
2448
+ n: n$1c,
2449
+ classes: classes$$,
2450
2450
  avatarElement,
2451
2451
  textElement,
2452
2452
  scale,
@@ -2456,13 +2456,13 @@ var __sfc__$1c = vue.defineComponent({
2456
2456
  };
2457
2457
  }
2458
2458
  });
2459
- __sfc__$1c.render = __render__$1b;
2460
- const Avatar = __sfc__$1c;
2459
+ __sfc__$1d.render = __render__$1c;
2460
+ const Avatar = __sfc__$1d;
2461
2461
  Avatar.install = function(app) {
2462
2462
  app.component(Avatar.name, Avatar);
2463
2463
  };
2464
2464
  var _AvatarComponent = Avatar;
2465
- var props$13 = {
2465
+ var props$14 = {
2466
2466
  offset: {
2467
2467
  type: [Number, String]
2468
2468
  },
@@ -2472,10 +2472,10 @@ var props$13 = {
2472
2472
  }
2473
2473
  };
2474
2474
  var {
2475
- n: n$1a,
2476
- classes: classes$Z
2475
+ n: n$1b,
2476
+ classes: classes$_
2477
2477
  } = createNamespace("avatar-group");
2478
- function __render__$1a(_ctx, _cache) {
2478
+ function __render__$1b(_ctx, _cache) {
2479
2479
  return vue.openBlock(), vue.createElementBlock(
2480
2480
  "div",
2481
2481
  {
@@ -2487,9 +2487,9 @@ function __render__$1a(_ctx, _cache) {
2487
2487
  /* CLASS, STYLE */
2488
2488
  );
2489
2489
  }
2490
- var __sfc__$1b = vue.defineComponent({
2490
+ var __sfc__$1c = vue.defineComponent({
2491
2491
  name: "VarAvatarGroup",
2492
- props: props$13,
2492
+ props: props$14,
2493
2493
  setup(props2) {
2494
2494
  var rootStyles = vue.computed(() => {
2495
2495
  if (props2.offset == null) {
@@ -2500,15 +2500,15 @@ var __sfc__$1b = vue.defineComponent({
2500
2500
  };
2501
2501
  });
2502
2502
  return {
2503
- n: n$1a,
2504
- classes: classes$Z,
2503
+ n: n$1b,
2504
+ classes: classes$_,
2505
2505
  toSizeUnit,
2506
2506
  rootStyles
2507
2507
  };
2508
2508
  }
2509
2509
  });
2510
- __sfc__$1b.render = __render__$1a;
2511
- const AvatarGroup = __sfc__$1b;
2510
+ __sfc__$1c.render = __render__$1b;
2511
+ const AvatarGroup = __sfc__$1c;
2512
2512
  AvatarGroup.install = function(app) {
2513
2513
  app.component(AvatarGroup.name, AvatarGroup);
2514
2514
  };
@@ -2519,7 +2519,7 @@ function typeValidator$a(type) {
2519
2519
  function sizeValidator$4(size) {
2520
2520
  return ["normal", "mini", "small", "large"].includes(size);
2521
2521
  }
2522
- var props$12 = {
2522
+ var props$13 = {
2523
2523
  type: {
2524
2524
  type: String,
2525
2525
  default: "circle",
@@ -2545,8 +2545,8 @@ var props$12 = {
2545
2545
  }
2546
2546
  };
2547
2547
  var {
2548
- n: n$19,
2549
- classes: classes$Y
2548
+ n: n$1a,
2549
+ classes: classes$Z
2550
2550
  } = createNamespace("loading");
2551
2551
  var _withScopeId$6 = (n2) => (vue.pushScopeId(""), n2 = n2(), vue.popScopeId(), n2);
2552
2552
  var _hoisted_1$p = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ vue.createElementVNode(
@@ -2564,7 +2564,7 @@ var _hoisted_1$p = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ vue.crea
2564
2564
  /* HOISTED */
2565
2565
  ));
2566
2566
  var _hoisted_2$c = [_hoisted_1$p];
2567
- function __render__$19(_ctx, _cache) {
2567
+ function __render__$1a(_ctx, _cache) {
2568
2568
  return vue.openBlock(), vue.createElementBlock(
2569
2569
  "div",
2570
2570
  {
@@ -2685,9 +2685,9 @@ function __render__$19(_ctx, _cache) {
2685
2685
  /* CLASS */
2686
2686
  );
2687
2687
  }
2688
- var __sfc__$1a = vue.defineComponent({
2688
+ var __sfc__$1b = vue.defineComponent({
2689
2689
  name: "VarLoading",
2690
- props: props$12,
2690
+ props: props$13,
2691
2691
  setup(props2, _ref) {
2692
2692
  var {
2693
2693
  slots
@@ -2704,20 +2704,67 @@ var __sfc__$1a = vue.defineComponent({
2704
2704
  return props2.loading;
2705
2705
  });
2706
2706
  return {
2707
- n: n$19,
2708
- classes: classes$Y,
2707
+ n: n$1a,
2708
+ classes: classes$Z,
2709
2709
  multiplySizeUnit,
2710
2710
  loadingTypeDict,
2711
2711
  isShow
2712
2712
  };
2713
2713
  }
2714
2714
  });
2715
- __sfc__$1a.render = __render__$19;
2716
- const Loading = __sfc__$1a;
2715
+ __sfc__$1b.render = __render__$1a;
2716
+ const Loading = __sfc__$1b;
2717
2717
  Loading.install = function(app) {
2718
2718
  app.component(Loading.name, Loading);
2719
2719
  };
2720
2720
  var _LoadingComponent = Loading;
2721
+ var props$12 = {
2722
+ hovering: {
2723
+ type: Boolean,
2724
+ default: true
2725
+ }
2726
+ };
2727
+ var {
2728
+ n: n$19,
2729
+ classes: classes$Y
2730
+ } = createNamespace("hover-overlay");
2731
+ function __render__$19(_ctx, _cache) {
2732
+ return vue.openBlock(), vue.createElementBlock(
2733
+ "div",
2734
+ {
2735
+ class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.hovering, _ctx.n("--hovering")]))
2736
+ },
2737
+ null,
2738
+ 2
2739
+ /* CLASS */
2740
+ );
2741
+ }
2742
+ var __sfc__$1a = vue.defineComponent({
2743
+ name: "VarHoverOverlay",
2744
+ props: props$12,
2745
+ setup() {
2746
+ return {
2747
+ n: n$19,
2748
+ classes: classes$Y
2749
+ };
2750
+ }
2751
+ });
2752
+ __sfc__$1a.render = __render__$19;
2753
+ const HoverOverlay = __sfc__$1a;
2754
+ HoverOverlay.install = function(app) {
2755
+ app.component(HoverOverlay.name, HoverOverlay);
2756
+ };
2757
+ function useHoverOverlay() {
2758
+ var hovering = vue.ref(false);
2759
+ var handleHovering = (value) => {
2760
+ hovering.value = value;
2761
+ };
2762
+ return {
2763
+ hovering,
2764
+ handleHovering
2765
+ };
2766
+ }
2767
+ var _HoverOverlayComponent = HoverOverlay;
2721
2768
  function shouldDisabled(arg) {
2722
2769
  if (!arg) {
2723
2770
  return false;
@@ -2842,8 +2889,8 @@ var Hover = {
2842
2889
  };
2843
2890
  var _HoverComponent = Hover;
2844
2891
  const Hover$1 = Hover;
2845
- function _extends$f() {
2846
- _extends$f = Object.assign ? Object.assign.bind() : function(target) {
2892
+ function _extends$g() {
2893
+ _extends$g = Object.assign ? Object.assign.bind() : function(target) {
2847
2894
  for (var i = 1; i < arguments.length; i++) {
2848
2895
  var source = arguments[i];
2849
2896
  for (var key in source) {
@@ -2854,7 +2901,7 @@ function _extends$f() {
2854
2901
  }
2855
2902
  return target;
2856
2903
  };
2857
- return _extends$f.apply(this, arguments);
2904
+ return _extends$g.apply(this, arguments);
2858
2905
  }
2859
2906
  function typeValidator$9(type) {
2860
2907
  return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
@@ -2920,9 +2967,9 @@ var props$11 = {
2920
2967
  loadingRadius: {
2921
2968
  type: [Number, String]
2922
2969
  },
2923
- loadingType: pickProps(props$12, "type"),
2924
- loadingSize: pickProps(props$12, "size"),
2925
- loadingColor: _extends$f({}, pickProps(props$12, "color"), {
2970
+ loadingType: pickProps(props$13, "type"),
2971
+ loadingSize: pickProps(props$13, "size"),
2972
+ loadingColor: _extends$g({}, pickProps(props$13, "color"), {
2926
2973
  default: "currentColor"
2927
2974
  }),
2928
2975
  onClick: defineListenerProp(),
@@ -2960,6 +3007,7 @@ var {
2960
3007
  var _hoisted_1$o = ["type", "disabled"];
2961
3008
  function __render__$18(_ctx, _cache) {
2962
3009
  var _component_var_loading = vue.resolveComponent("var-loading");
3010
+ var _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
2963
3011
  var _directive_ripple = vue.resolveDirective("ripple");
2964
3012
  var _directive_hover = vue.resolveDirective("hover");
2965
3013
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock(
@@ -3001,25 +3049,26 @@ function __render__$18(_ctx, _cache) {
3001
3049
  [vue.renderSlot(_ctx.$slots, "default")],
3002
3050
  2
3003
3051
  /* CLASS */
3004
- ), vue.createElementVNode(
3005
- "div",
3052
+ ), vue.createVNode(
3053
+ _component_var_hover_overlay,
3006
3054
  {
3007
- class: vue.normalizeClass(_ctx.classes(_ctx.n("overlay"), [_ctx.hovering, _ctx.n("--hovering")]))
3055
+ hovering: _ctx.hovering
3008
3056
  },
3009
3057
  null,
3010
- 2
3011
- /* CLASS */
3058
+ 8,
3059
+ ["hovering"]
3012
3060
  )],
3013
3061
  46,
3014
3062
  _hoisted_1$o
3015
3063
  )), [[_directive_ripple, {
3016
3064
  disabled: _ctx.disabled || !_ctx.ripple
3017
- }], [_directive_hover, _ctx.handleHover, "desktop"]]);
3065
+ }], [_directive_hover, _ctx.handleHovering, "desktop"]]);
3018
3066
  }
3019
3067
  var __sfc__$19 = vue.defineComponent({
3020
3068
  name: "VarButton",
3021
3069
  components: {
3022
- VarLoading: Loading
3070
+ VarLoading: Loading,
3071
+ VarHoverOverlay: HoverOverlay
3023
3072
  },
3024
3073
  directives: {
3025
3074
  Ripple: Ripple$1,
@@ -3028,10 +3077,13 @@ var __sfc__$19 = vue.defineComponent({
3028
3077
  props: props$11,
3029
3078
  setup(props2) {
3030
3079
  var pending = vue.ref(false);
3031
- var hovering = vue.ref(false);
3032
3080
  var {
3033
3081
  buttonGroup: buttonGroup2
3034
3082
  } = useButtonGroup();
3083
+ var {
3084
+ hovering,
3085
+ handleHovering
3086
+ } = useHoverOverlay();
3035
3087
  var states = vue.computed(() => {
3036
3088
  if (!buttonGroup2) {
3037
3089
  return {
@@ -3094,16 +3146,13 @@ var __sfc__$19 = vue.defineComponent({
3094
3146
  }
3095
3147
  attemptAutoLoading(call(onTouchstart, e));
3096
3148
  };
3097
- var handleHover = (isHover) => {
3098
- hovering.value = isHover;
3099
- };
3100
3149
  return {
3101
3150
  n: n$18,
3102
3151
  classes: classes$X,
3103
3152
  pending,
3104
3153
  states,
3105
3154
  hovering,
3106
- handleHover,
3155
+ handleHovering,
3107
3156
  handleClick,
3108
3157
  handleTouchstart
3109
3158
  };
@@ -3413,8 +3462,8 @@ function useBottomNavigationItems() {
3413
3462
  bindBottomNavigationItem: bindChildren
3414
3463
  };
3415
3464
  }
3416
- function _extends$e() {
3417
- _extends$e = Object.assign ? Object.assign.bind() : function(target) {
3465
+ function _extends$f() {
3466
+ _extends$f = Object.assign ? Object.assign.bind() : function(target) {
3418
3467
  for (var i = 1; i < arguments.length; i++) {
3419
3468
  var source = arguments[i];
3420
3469
  for (var key in source) {
@@ -3425,7 +3474,7 @@ function _extends$e() {
3425
3474
  }
3426
3475
  return target;
3427
3476
  };
3428
- return _extends$e.apply(this, arguments);
3477
+ return _extends$f.apply(this, arguments);
3429
3478
  }
3430
3479
  var {
3431
3480
  n: n$15,
@@ -3585,7 +3634,7 @@ var __sfc__$16 = vue.defineComponent({
3585
3634
  bindBottomNavigationItem(bottomNavigationProvider);
3586
3635
  vue.watch(() => length.value, matchBoundary);
3587
3636
  vue.watch(() => props2.fabProps, (newValue) => {
3588
- fabProps.value = _extends$e({}, defaultFabProps, newValue);
3637
+ fabProps.value = _extends$f({}, defaultFabProps, newValue);
3589
3638
  }, {
3590
3639
  immediate: true,
3591
3640
  deep: true
@@ -4747,8 +4796,8 @@ function useCheckboxGroup() {
4747
4796
  bindCheckboxGroup: bindParent
4748
4797
  };
4749
4798
  }
4750
- function _extends$d() {
4751
- _extends$d = Object.assign ? Object.assign.bind() : function(target) {
4799
+ function _extends$e() {
4800
+ _extends$e = Object.assign ? Object.assign.bind() : function(target) {
4752
4801
  for (var i = 1; i < arguments.length; i++) {
4753
4802
  var source = arguments[i];
4754
4803
  for (var key in source) {
@@ -4759,7 +4808,7 @@ function _extends$d() {
4759
4808
  }
4760
4809
  return target;
4761
4810
  };
4762
- return _extends$d.apply(this, arguments);
4811
+ return _extends$e.apply(this, arguments);
4763
4812
  }
4764
4813
  var FORM_BIND_FORM_ITEM_KEY = Symbol("FORM_BIND_FORM_ITEM_KEY");
4765
4814
  function useForm() {
@@ -4770,7 +4819,7 @@ function useForm() {
4770
4819
  } = useParent(FORM_BIND_FORM_ITEM_KEY);
4771
4820
  var instance = vue.getCurrentInstance();
4772
4821
  var bindForm = bindParent ? (formItemProvider) => {
4773
- bindParent(_extends$d({}, formItemProvider, {
4822
+ bindParent(_extends$e({}, formItemProvider, {
4774
4823
  instance
4775
4824
  }));
4776
4825
  } : null;
@@ -5229,7 +5278,7 @@ var props$Q = {
5229
5278
  textColor: {
5230
5279
  type: String
5231
5280
  },
5232
- iconName: pickProps(props$17, "name"),
5281
+ iconName: pickProps(props$18, "name"),
5233
5282
  plain: {
5234
5283
  type: Boolean,
5235
5284
  default: false
@@ -8480,8 +8529,8 @@ var DELAY = 600;
8480
8529
  var _hoisted_1$l = ["inputmode", "readonly", "disabled"];
8481
8530
  function __render__$S(_ctx, _cache) {
8482
8531
  var _component_var_icon = vue.resolveComponent("var-icon");
8532
+ var _component_var_button = vue.resolveComponent("var-button");
8483
8533
  var _component_var_form_details = vue.resolveComponent("var-form-details");
8484
- var _directive_ripple = vue.resolveDirective("ripple");
8485
8534
  return vue.openBlock(), vue.createElementBlock(
8486
8535
  "div",
8487
8536
  {
@@ -8495,27 +8544,32 @@ function __render__$S(_ctx, _cache) {
8495
8544
  background: _ctx.color ? _ctx.color : void 0
8496
8545
  }
8497
8546
  }, _ctx.$attrs),
8498
- [vue.withDirectives(vue.createVNode(
8499
- _component_var_icon,
8547
+ [vue.createVNode(
8548
+ _component_var_button,
8500
8549
  {
8501
- "var-counter-cover": "",
8502
- name: "minus",
8503
8550
  class: vue.normalizeClass(_ctx.classes(_ctx.n("decrement-button"), [!_ctx.decrementButton, _ctx.n("--hidden")], [_ctx.disabled || _ctx.formDisabled, _ctx.n("--not-allowed")])),
8504
8551
  style: vue.normalizeStyle({
8505
8552
  width: _ctx.toSizeUnit(_ctx.buttonSize),
8506
8553
  height: _ctx.toSizeUnit(_ctx.buttonSize)
8507
8554
  }),
8555
+ round: "",
8556
+ "var-counter-cover": "",
8557
+ ripple: _ctx.ripple && _ctx.decrementButton && !_ctx.disabled && !_ctx.formDisabled && !_ctx.readonly && !_ctx.formReadonly && !_ctx.disableDecrement && !_ctx.isMin,
8508
8558
  onClick: _ctx.decrement,
8509
8559
  onTouchstart: _ctx.pressDecrement,
8510
8560
  onTouchend: _ctx.releaseDecrement,
8511
8561
  onTouchcancel: _ctx.releaseDecrement
8512
8562
  },
8513
- null,
8563
+ {
8564
+ default: vue.withCtx(() => [vue.createVNode(_component_var_icon, {
8565
+ name: "minus"
8566
+ })]),
8567
+ _: 1
8568
+ /* STABLE */
8569
+ },
8514
8570
  8,
8515
- ["class", "style", "onClick", "onTouchstart", "onTouchend", "onTouchcancel"]
8516
- ), [[_directive_ripple, {
8517
- disabled: !_ctx.ripple || _ctx.disabled || _ctx.formDisabled || _ctx.readonly || _ctx.formReadonly || _ctx.disableDecrement || !_ctx.decrementButton || _ctx.isMin
8518
- }]]), vue.withDirectives(vue.createElementVNode(
8571
+ ["class", "style", "ripple", "onClick", "onTouchstart", "onTouchend", "onTouchcancel"]
8572
+ ), vue.withDirectives(vue.createElementVNode(
8519
8573
  "input",
8520
8574
  {
8521
8575
  class: vue.normalizeClass(_ctx.classes(_ctx.n("input"), [_ctx.disabled || _ctx.formDisabled, _ctx.n("--not-allowed")])),
@@ -8534,27 +8588,32 @@ function __render__$S(_ctx, _cache) {
8534
8588
  null,
8535
8589
  46,
8536
8590
  _hoisted_1$l
8537
- ), [[vue.vModelText, _ctx.inputValue]]), vue.withDirectives(vue.createVNode(
8538
- _component_var_icon,
8591
+ ), [[vue.vModelText, _ctx.inputValue]]), vue.createVNode(
8592
+ _component_var_button,
8539
8593
  {
8540
- "var-counter-cover": "",
8541
- name: "plus",
8542
8594
  class: vue.normalizeClass(_ctx.classes(_ctx.n("increment-button"), [!_ctx.incrementButton, _ctx.n("--hidden")], [_ctx.disabled || _ctx.formDisabled, _ctx.n("--not-allowed")])),
8543
8595
  style: vue.normalizeStyle({
8544
8596
  width: _ctx.toSizeUnit(_ctx.buttonSize),
8545
8597
  height: _ctx.toSizeUnit(_ctx.buttonSize)
8546
8598
  }),
8599
+ round: "",
8600
+ "var-counter-cover": "",
8601
+ ripple: _ctx.ripple && _ctx.incrementButton && !_ctx.disabled && !_ctx.formDisabled && !_ctx.readonly && !_ctx.formReadonly && !_ctx.disableIncrement && !_ctx.isMax,
8547
8602
  onClick: _ctx.increment,
8548
8603
  onTouchstart: _ctx.pressIncrement,
8549
8604
  onTouchend: _ctx.releaseIncrement,
8550
8605
  onTouchcancel: _ctx.releaseIncrement
8551
8606
  },
8552
- null,
8607
+ {
8608
+ default: vue.withCtx(() => [vue.createVNode(_component_var_icon, {
8609
+ name: "plus"
8610
+ })]),
8611
+ _: 1
8612
+ /* STABLE */
8613
+ },
8553
8614
  8,
8554
- ["class", "style", "onClick", "onTouchstart", "onTouchend", "onTouchcancel"]
8555
- ), [[_directive_ripple, {
8556
- disabled: !_ctx.ripple || _ctx.disabled || _ctx.readonly || _ctx.formDisabled || _ctx.formReadonly || _ctx.disableIncrement || !_ctx.incrementButton || _ctx.isMax
8557
- }]])],
8615
+ ["class", "style", "ripple", "onClick", "onTouchstart", "onTouchend", "onTouchcancel"]
8616
+ )],
8558
8617
  16
8559
8618
  /* FULL_PROPS */
8560
8619
  ), vue.createVNode(
@@ -8573,6 +8632,7 @@ function __render__$S(_ctx, _cache) {
8573
8632
  var __sfc__$T = vue.defineComponent({
8574
8633
  name: "VarCounter",
8575
8634
  components: {
8635
+ VarButton: Button,
8576
8636
  VarIcon: Icon,
8577
8637
  VarFormDetails: FormDetails
8578
8638
  },
@@ -8583,10 +8643,6 @@ var __sfc__$T = vue.defineComponent({
8583
8643
  props: props$L,
8584
8644
  setup(props2) {
8585
8645
  var inputValue = vue.ref("");
8586
- var incrementTimer;
8587
- var decrementTimer;
8588
- var incrementDelayTimer;
8589
- var decrementDelayTimer;
8590
8646
  var {
8591
8647
  bindForm,
8592
8648
  form
@@ -8602,6 +8658,10 @@ var __sfc__$T = vue.defineComponent({
8602
8658
  readonly: formReadonly,
8603
8659
  disabled: formDisabled
8604
8660
  } = form != null ? form : {};
8661
+ var incrementTimer;
8662
+ var decrementTimer;
8663
+ var incrementDelayTimer;
8664
+ var decrementDelayTimer;
8605
8665
  var validate = () => v(props2.rules, props2.modelValue);
8606
8666
  var validateWithTrigger = (trigger) => {
8607
8667
  vue.nextTick(() => {
@@ -9487,8 +9547,8 @@ var __sfc__$S = vue.defineComponent({
9487
9547
  });
9488
9548
  __sfc__$S.render = __render__$R;
9489
9549
  const PanelHeader = __sfc__$S;
9490
- function _extends$c() {
9491
- _extends$c = Object.assign ? Object.assign.bind() : function(target) {
9550
+ function _extends$d() {
9551
+ _extends$d = Object.assign ? Object.assign.bind() : function(target) {
9492
9552
  for (var i = 1; i < arguments.length; i++) {
9493
9553
  var source = arguments[i];
9494
9554
  for (var key in source) {
@@ -9499,7 +9559,7 @@ function _extends$c() {
9499
9559
  }
9500
9560
  return target;
9501
9561
  };
9502
- return _extends$c.apply(this, arguments);
9562
+ return _extends$d.apply(this, arguments);
9503
9563
  }
9504
9564
  dayjs.extend(isSameOrBefore);
9505
9565
  dayjs.extend(isSameOrAfter);
@@ -9556,7 +9616,7 @@ function __render__$Q(_ctx, _cache) {
9556
9616
  type: "primary",
9557
9617
  "var-month-picker-cover": "",
9558
9618
  ripple: false
9559
- }, _extends$c({}, _ctx.buttonProps(month.index)), {
9619
+ }, _extends$d({}, _ctx.buttonProps(month.index)), {
9560
9620
  onClick: (event) => _ctx.chooseMonth(month, event)
9561
9621
  }),
9562
9622
  {
@@ -9896,8 +9956,8 @@ var __sfc__$Q = vue.defineComponent({
9896
9956
  });
9897
9957
  __sfc__$Q.render = __render__$P;
9898
9958
  const YearPickerPanel = __sfc__$Q;
9899
- function _extends$b() {
9900
- _extends$b = Object.assign ? Object.assign.bind() : function(target) {
9959
+ function _extends$c() {
9960
+ _extends$c = Object.assign ? Object.assign.bind() : function(target) {
9901
9961
  for (var i = 1; i < arguments.length; i++) {
9902
9962
  var source = arguments[i];
9903
9963
  for (var key in source) {
@@ -9908,7 +9968,7 @@ function _extends$b() {
9908
9968
  }
9909
9969
  return target;
9910
9970
  };
9911
- return _extends$b.apply(this, arguments);
9971
+ return _extends$c.apply(this, arguments);
9912
9972
  }
9913
9973
  dayjs.extend(isSameOrBefore);
9914
9974
  dayjs.extend(isSameOrAfter);
@@ -9995,7 +10055,7 @@ function __render__$O(_ctx, _cache) {
9995
10055
  "var-day-picker-cover": "",
9996
10056
  round: "",
9997
10057
  ripple: false
9998
- }, _extends$b({}, _ctx.buttonProps(day)), {
10058
+ }, _extends$c({}, _ctx.buttonProps(day)), {
9999
10059
  onClick: (event) => _ctx.chooseDay(day, event)
10000
10060
  }),
10001
10061
  {
@@ -10846,8 +10906,8 @@ DatePicker.install = function(app) {
10846
10906
  app.component(DatePicker.name, DatePicker);
10847
10907
  };
10848
10908
  var _DatePickerComponent = DatePicker;
10849
- function _extends$a() {
10850
- _extends$a = Object.assign ? Object.assign.bind() : function(target) {
10909
+ function _extends$b() {
10910
+ _extends$b = Object.assign ? Object.assign.bind() : function(target) {
10851
10911
  for (var i = 1; i < arguments.length; i++) {
10852
10912
  var source = arguments[i];
10853
10913
  for (var key in source) {
@@ -10858,12 +10918,12 @@ function _extends$a() {
10858
10918
  }
10859
10919
  return target;
10860
10920
  };
10861
- return _extends$a.apply(this, arguments);
10921
+ return _extends$b.apply(this, arguments);
10862
10922
  }
10863
10923
  function messageAlignValidator(messageAlign) {
10864
10924
  return ["left", "center", "right"].includes(messageAlign);
10865
10925
  }
10866
- var props$J = _extends$a({
10926
+ var props$J = _extends$b({
10867
10927
  show: {
10868
10928
  type: Boolean,
10869
10929
  default: false
@@ -10918,7 +10978,7 @@ var props$J = _extends$a({
10918
10978
  onConfirm: defineListenerProp(),
10919
10979
  onCancel: defineListenerProp(),
10920
10980
  "onUpdate:show": defineListenerProp()
10921
- }, pickProps(props$18, [
10981
+ }, pickProps(props$19, [
10922
10982
  "overlay",
10923
10983
  "overlayClass",
10924
10984
  "overlayStyle",
@@ -10933,8 +10993,8 @@ var props$J = _extends$a({
10933
10993
  // internal for function call closes the dialog
10934
10994
  "onRouteChange"
10935
10995
  ]));
10936
- function _extends$9() {
10937
- _extends$9 = Object.assign ? Object.assign.bind() : function(target) {
10996
+ function _extends$a() {
10997
+ _extends$a = Object.assign ? Object.assign.bind() : function(target) {
10938
10998
  for (var i = 1; i < arguments.length; i++) {
10939
10999
  var source = arguments[i];
10940
11000
  for (var key in source) {
@@ -10945,7 +11005,7 @@ function _extends$9() {
10945
11005
  }
10946
11006
  return target;
10947
11007
  };
10948
- return _extends$9.apply(this, arguments);
11008
+ return _extends$a.apply(this, arguments);
10949
11009
  }
10950
11010
  var {
10951
11011
  n: n$M,
@@ -10978,7 +11038,7 @@ function __render__$M(_ctx, _cache) {
10978
11038
  "div",
10979
11039
  vue.mergeProps({
10980
11040
  class: _ctx.classes(_ctx.n("$--box"), _ctx.n(), _ctx.dialogClass),
10981
- style: _extends$9({
11041
+ style: _extends$a({
10982
11042
  width: _ctx.toSizeUnit(_ctx.width)
10983
11043
  }, _ctx.dialogStyle)
10984
11044
  }, _ctx.$attrs),
@@ -11154,8 +11214,8 @@ var __sfc__$N = vue.defineComponent({
11154
11214
  });
11155
11215
  __sfc__$N.render = __render__$M;
11156
11216
  const VarDialog = __sfc__$N;
11157
- function _extends$8() {
11158
- _extends$8 = Object.assign ? Object.assign.bind() : function(target) {
11217
+ function _extends$9() {
11218
+ _extends$9 = Object.assign ? Object.assign.bind() : function(target) {
11159
11219
  for (var i = 1; i < arguments.length; i++) {
11160
11220
  var source = arguments[i];
11161
11221
  for (var key in source) {
@@ -11166,20 +11226,20 @@ function _extends$8() {
11166
11226
  }
11167
11227
  return target;
11168
11228
  };
11169
- return _extends$8.apply(this, arguments);
11229
+ return _extends$9.apply(this, arguments);
11170
11230
  }
11171
11231
  var singletonOptions$2;
11172
- var defaultOptions$1 = {};
11173
- function normalizeOptions$1(options) {
11232
+ var defaultOptions$2 = {};
11233
+ function normalizeOptions$2(options) {
11174
11234
  if (options === void 0) {
11175
11235
  options = {};
11176
11236
  }
11177
11237
  if (isString(options)) {
11178
- return _extends$8({}, defaultOptions$1, {
11238
+ return _extends$9({}, defaultOptions$2, {
11179
11239
  message: options
11180
11240
  });
11181
11241
  }
11182
- return _extends$8({}, defaultOptions$1, options);
11242
+ return _extends$9({}, defaultOptions$2, options);
11183
11243
  }
11184
11244
  function Dialog(options) {
11185
11245
  if (!inBrowser()) {
@@ -11187,7 +11247,7 @@ function Dialog(options) {
11187
11247
  }
11188
11248
  return new Promise((resolve) => {
11189
11249
  Dialog.close();
11190
- var dialogOptions = normalizeOptions$1(options);
11250
+ var dialogOptions = normalizeOptions$2(options);
11191
11251
  var reactiveDialogOptions = vue.reactive(dialogOptions);
11192
11252
  reactiveDialogOptions.teleport = "body";
11193
11253
  singletonOptions$2 = reactiveDialogOptions;
@@ -11223,10 +11283,10 @@ function Dialog(options) {
11223
11283
  });
11224
11284
  }
11225
11285
  function setDefaultOptions$1(options) {
11226
- defaultOptions$1 = options;
11286
+ defaultOptions$2 = options;
11227
11287
  }
11228
11288
  function resetDefaultOptions$1() {
11229
- defaultOptions$1 = {};
11289
+ defaultOptions$2 = {};
11230
11290
  }
11231
11291
  function close() {
11232
11292
  if (singletonOptions$2 != null) {
@@ -11274,8 +11334,8 @@ var props$I = {
11274
11334
  default: false
11275
11335
  }
11276
11336
  };
11277
- function _extends$7() {
11278
- _extends$7 = Object.assign ? Object.assign.bind() : function(target) {
11337
+ function _extends$8() {
11338
+ _extends$8 = Object.assign ? Object.assign.bind() : function(target) {
11279
11339
  for (var i = 1; i < arguments.length; i++) {
11280
11340
  var source = arguments[i];
11281
11341
  for (var key in source) {
@@ -11286,7 +11346,7 @@ function _extends$7() {
11286
11346
  }
11287
11347
  return target;
11288
11348
  };
11289
- return _extends$7.apply(this, arguments);
11349
+ return _extends$8.apply(this, arguments);
11290
11350
  }
11291
11351
  var {
11292
11352
  n: n$L,
@@ -11336,13 +11396,13 @@ var __sfc__$M = vue.defineComponent({
11336
11396
  margin
11337
11397
  };
11338
11398
  if (isBoolean(inset) || inset === 0) {
11339
- return _extends$7({}, baseStyle);
11399
+ return _extends$8({}, baseStyle);
11340
11400
  }
11341
11401
  var _inset = toNumber(inset);
11342
11402
  var absInsetWithUnit = Math.abs(_inset) + (inset + "").replace(_inset + "", "");
11343
- return vertical ? _extends$7({}, baseStyle, {
11403
+ return vertical ? _extends$8({}, baseStyle, {
11344
11404
  height: "calc(80% - " + toSizeUnit(absInsetWithUnit) + ")"
11345
- }) : _extends$7({}, baseStyle, {
11405
+ }) : _extends$8({}, baseStyle, {
11346
11406
  width: "calc(100% - " + toSizeUnit(absInsetWithUnit) + ")",
11347
11407
  left: _inset > 0 ? toSizeUnit(absInsetWithUnit) : toSizeUnit(0)
11348
11408
  });
@@ -11356,7 +11416,7 @@ var __sfc__$M = vue.defineComponent({
11356
11416
  vue.onUpdated(() => {
11357
11417
  checkHasText();
11358
11418
  });
11359
- return _extends$7({
11419
+ return _extends$8({
11360
11420
  n: n$L,
11361
11421
  classes: classes$D
11362
11422
  }, vue.toRefs(state), {
@@ -12637,8 +12697,8 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
12637
12697
  var createPopper = /* @__PURE__ */ popperGenerator({
12638
12698
  defaultModifiers
12639
12699
  });
12640
- function _extends$6() {
12641
- _extends$6 = Object.assign ? Object.assign.bind() : function(target) {
12700
+ function _extends$7() {
12701
+ _extends$7 = Object.assign ? Object.assign.bind() : function(target) {
12642
12702
  for (var i = 1; i < arguments.length; i++) {
12643
12703
  var source = arguments[i];
12644
12704
  for (var key in source) {
@@ -12649,7 +12709,7 @@ function _extends$6() {
12649
12709
  }
12650
12710
  return target;
12651
12711
  };
12652
- return _extends$6.apply(this, arguments);
12712
+ return _extends$7.apply(this, arguments);
12653
12713
  }
12654
12714
  function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
12655
12715
  try {
@@ -12857,9 +12917,9 @@ function usePopover(options) {
12857
12917
  skidding,
12858
12918
  distance
12859
12919
  } = getPosition();
12860
- var modifiers = [_extends$6({}, flip$1, {
12920
+ var modifiers = [_extends$7({}, flip$1, {
12861
12921
  enabled: show.value
12862
- }), _extends$6({}, offset$1, {
12922
+ }), _extends$7({}, offset$1, {
12863
12923
  options: {
12864
12924
  offset: [skidding, distance]
12865
12925
  }
@@ -13142,8 +13202,8 @@ var props$G = {
13142
13202
  default: true
13143
13203
  }
13144
13204
  };
13145
- function _extends$5() {
13146
- _extends$5 = Object.assign ? Object.assign.bind() : function(target) {
13205
+ function _extends$6() {
13206
+ _extends$6 = Object.assign ? Object.assign.bind() : function(target) {
13147
13207
  for (var i = 1; i < arguments.length; i++) {
13148
13208
  var source = arguments[i];
13149
13209
  for (var key in source) {
@@ -13154,7 +13214,7 @@ function _extends$5() {
13154
13214
  }
13155
13215
  return target;
13156
13216
  };
13157
- return _extends$5.apply(this, arguments);
13217
+ return _extends$6.apply(this, arguments);
13158
13218
  }
13159
13219
  var {
13160
13220
  n: n$J,
@@ -13228,7 +13288,7 @@ var __sfc__$K = vue.defineComponent({
13228
13288
  sameWidth: true
13229
13289
  };
13230
13290
  }
13231
- return _extends$5({
13291
+ return _extends$6({
13232
13292
  sameWidth: true
13233
13293
  }, props2.tooltip);
13234
13294
  });
@@ -14339,8 +14399,8 @@ SwipeItem.install = function(app) {
14339
14399
  app.component(SwipeItem.name, SwipeItem);
14340
14400
  };
14341
14401
  var _SwipeItemComponent = SwipeItem;
14342
- function _extends$4() {
14343
- _extends$4 = Object.assign ? Object.assign.bind() : function(target) {
14402
+ function _extends$5() {
14403
+ _extends$5 = Object.assign ? Object.assign.bind() : function(target) {
14344
14404
  for (var i = 1; i < arguments.length; i++) {
14345
14405
  var source = arguments[i];
14346
14406
  for (var key in source) {
@@ -14351,9 +14411,9 @@ function _extends$4() {
14351
14411
  }
14352
14412
  return target;
14353
14413
  };
14354
- return _extends$4.apply(this, arguments);
14414
+ return _extends$5.apply(this, arguments);
14355
14415
  }
14356
- var props$B = _extends$4({
14416
+ var props$B = _extends$5({
14357
14417
  show: {
14358
14418
  type: Boolean,
14359
14419
  default: false
@@ -14374,7 +14434,7 @@ var props$B = _extends$4({
14374
14434
  default: false
14375
14435
  },
14376
14436
  "onUpdate:show": defineListenerProp()
14377
- }, pickProps(props$C, ["loop", "indicator", "onChange"]), pickProps(props$18, [
14437
+ }, pickProps(props$C, ["loop", "indicator", "onChange"]), pickProps(props$19, [
14378
14438
  "lockScroll",
14379
14439
  "teleport",
14380
14440
  "onOpen",
@@ -14736,17 +14796,44 @@ var __sfc__$F = vue.defineComponent({
14736
14796
  });
14737
14797
  __sfc__$F.render = __render__$E;
14738
14798
  const VarImagePreview = __sfc__$F;
14799
+ function _extends$4() {
14800
+ _extends$4 = Object.assign ? Object.assign.bind() : function(target) {
14801
+ for (var i = 1; i < arguments.length; i++) {
14802
+ var source = arguments[i];
14803
+ for (var key in source) {
14804
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
14805
+ target[key] = source[key];
14806
+ }
14807
+ }
14808
+ }
14809
+ return target;
14810
+ };
14811
+ return _extends$4.apply(this, arguments);
14812
+ }
14739
14813
  var singletonOptions$1;
14814
+ var defaultOptions$1 = {};
14815
+ function normalizeOptions$1(options) {
14816
+ if (options === void 0) {
14817
+ options = {};
14818
+ }
14819
+ if (isString(options)) {
14820
+ return _extends$4({}, defaultOptions$1, {
14821
+ images: [options]
14822
+ });
14823
+ }
14824
+ if (isArray(options)) {
14825
+ return _extends$4({}, defaultOptions$1, {
14826
+ images: options
14827
+ });
14828
+ }
14829
+ return _extends$4({}, defaultOptions$1, options);
14830
+ }
14740
14831
  function ImagePreview(options) {
14741
14832
  if (!inBrowser()) {
14742
14833
  return;
14743
14834
  }
14744
14835
  ImagePreview.close();
14745
- var imagePreviewOptions = isString(options) ? {
14746
- images: [options]
14747
- } : isArray(options) ? {
14748
- images: options
14749
- } : options;
14836
+ var imagePreviewOptions = normalizeOptions$1(options);
14750
14837
  var reactiveImagePreviewOptions = vue.reactive(imagePreviewOptions);
14751
14838
  reactiveImagePreviewOptions.teleport = "body";
14752
14839
  singletonOptions$1 = reactiveImagePreviewOptions;
@@ -14778,6 +14865,12 @@ ImagePreview.close = () => {
14778
14865
  });
14779
14866
  }
14780
14867
  };
14868
+ ImagePreview.setDefaultOptions = (options) => {
14869
+ defaultOptions$1 = options;
14870
+ };
14871
+ ImagePreview.resetDefaultOptions = () => {
14872
+ defaultOptions$1 = {};
14873
+ };
14781
14874
  VarImagePreview.install = function(app) {
14782
14875
  app.component(VarImagePreview.name, VarImagePreview);
14783
14876
  };
@@ -15705,6 +15798,7 @@ var __sfc__$B = vue.defineComponent({
15705
15798
  var id = vue.ref("var-input-" + vue.getCurrentInstance().uid);
15706
15799
  var el = vue.ref(null);
15707
15800
  var isFocus = vue.ref(false);
15801
+ var isComposing = vue.ref(false);
15708
15802
  var type = vue.computed(() => {
15709
15803
  if (props2.type === "number") {
15710
15804
  return "text";
@@ -15750,7 +15844,7 @@ var __sfc__$B = vue.defineComponent({
15750
15844
  hint,
15751
15845
  modelValue
15752
15846
  } = props2;
15753
- if (!hint && !isEmpty(modelValue)) {
15847
+ if (!hint && (!isEmpty(modelValue) || isComposing.value)) {
15754
15848
  return n$z("--placeholder-hidden");
15755
15849
  }
15756
15850
  if (hint && (!isEmpty(modelValue) || isFocus.value)) {
@@ -15775,27 +15869,20 @@ var __sfc__$B = vue.defineComponent({
15775
15869
  if (props2.type === "number") {
15776
15870
  value = formatNumber(value);
15777
15871
  }
15778
- value = withMaxlength(withTrim(value));
15779
- target.value = value;
15780
- return value;
15872
+ return withMaxlength(withTrim(value));
15781
15873
  };
15782
- var handleCompositionStart = (e) => {
15783
- Object.assign(e.target, {
15784
- composing: true
15785
- });
15874
+ var handleCompositionStart = () => {
15875
+ isComposing.value = true;
15786
15876
  };
15787
15877
  var handleCompositionEnd = (e) => {
15788
- var target = e.target;
15789
- if (target.composing) {
15790
- target.composing = false;
15791
- target.dispatchEvent(new Event("input"));
15878
+ if (!isComposing.value) {
15879
+ return;
15792
15880
  }
15881
+ isComposing.value = false;
15882
+ e.target.dispatchEvent(new Event("input"));
15793
15883
  };
15794
15884
  var handleInput = (e) => {
15795
- var {
15796
- composing
15797
- } = e.target;
15798
- if (composing) {
15885
+ if (isComposing.value) {
15799
15886
  return;
15800
15887
  }
15801
15888
  var value = updateValue(e);
@@ -15883,6 +15970,7 @@ var __sfc__$B = vue.defineComponent({
15883
15970
  el,
15884
15971
  id,
15885
15972
  isFocus,
15973
+ isComposing,
15886
15974
  errorMessage,
15887
15975
  type,
15888
15976
  maxlengthText,
@@ -17393,7 +17481,7 @@ var props$n = _extends$3({
17393
17481
  onChange: defineListenerProp(),
17394
17482
  onConfirm: defineListenerProp(),
17395
17483
  onCancel: defineListenerProp()
17396
- }, pickProps(props$18, ["show", "onUpdate:show", "closeOnClickOverlay", "teleport", "onOpen", "onClose", "onOpened", "onClosed", "onClickOverlay", "onRouteChange"]));
17484
+ }, pickProps(props$19, ["show", "onUpdate:show", "closeOnClickOverlay", "teleport", "onOpen", "onClose", "onOpened", "onClosed", "onClickOverlay", "onRouteChange"]));
17397
17485
  var {
17398
17486
  n: n$q,
17399
17487
  classes: classes$l
@@ -20465,7 +20553,9 @@ var {
20465
20553
  } = createNamespace("slider");
20466
20554
  var _hoisted_1$3 = ["onTouchstart", "onTouchmove", "onTouchend", "onTouchcancel"];
20467
20555
  function __render__$d(_ctx, _cache) {
20556
+ var _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
20468
20557
  var _component_var_form_details = vue.resolveComponent("var-form-details");
20558
+ var _directive_hover = vue.resolveDirective("hover");
20469
20559
  return vue.openBlock(), vue.createElementBlock(
20470
20560
  "div",
20471
20561
  {
@@ -20529,7 +20619,7 @@ function __render__$d(_ctx, _cache) {
20529
20619
  },
20530
20620
  [vue.renderSlot(_ctx.$slots, "button", {
20531
20621
  currentValue: item.text
20532
- }, () => [vue.createElementVNode(
20622
+ }, () => [vue.withDirectives(vue.createElementVNode(
20533
20623
  "div",
20534
20624
  {
20535
20625
  class: vue.normalizeClass(_ctx.n("thumb-block")),
@@ -20540,15 +20630,23 @@ function __render__$d(_ctx, _cache) {
20540
20630
  null,
20541
20631
  6
20542
20632
  /* CLASS, STYLE */
20543
- ), vue.createElementVNode(
20633
+ ), [[_directive_hover, (value) => _ctx.hover(value, item), "desktop"]]), vue.createElementVNode(
20544
20634
  "div",
20545
20635
  {
20546
20636
  class: vue.normalizeClass(_ctx.classes(_ctx.n("thumb-ripple"), [_ctx.thumbsProps[item.enumValue].active, _ctx.n("thumb-ripple--active")])),
20547
20637
  style: vue.normalizeStyle({
20548
- background: _ctx.thumbColor
20638
+ background: _ctx.thumbsProps[item.enumValue].active ? _ctx.thumbColor : void 0
20549
20639
  })
20550
20640
  },
20551
- null,
20641
+ [vue.createVNode(
20642
+ _component_var_hover_overlay,
20643
+ {
20644
+ hovering: item.hovering
20645
+ },
20646
+ null,
20647
+ 8,
20648
+ ["hovering"]
20649
+ )],
20552
20650
  6
20553
20651
  /* CLASS, STYLE */
20554
20652
  ), vue.createElementVNode(
@@ -20599,7 +20697,11 @@ function __render__$d(_ctx, _cache) {
20599
20697
  var __sfc__$e = vue.defineComponent({
20600
20698
  name: "VarSlider",
20601
20699
  components: {
20602
- VarFormDetails: FormDetails
20700
+ VarFormDetails: FormDetails,
20701
+ VarHoverOverlay: HoverOverlay
20702
+ },
20703
+ directives: {
20704
+ Hover: Hover$1
20603
20705
  },
20604
20706
  props: props$d,
20605
20707
  setup(props2) {
@@ -20613,6 +20715,14 @@ var __sfc__$e = vue.defineComponent({
20613
20715
  validate: v,
20614
20716
  resetValidation
20615
20717
  } = useValidation();
20718
+ var {
20719
+ hovering: hoveringFirst,
20720
+ handleHovering: handleHoveringFirst
20721
+ } = useHoverOverlay();
20722
+ var {
20723
+ hovering: hoveringSecond,
20724
+ handleHovering: handleHoveringSecond
20725
+ } = useHoverOverlay();
20616
20726
  var validate = () => v(props2.rules, props2.modelValue);
20617
20727
  var getThumbProps = () => ({
20618
20728
  startPosition: 0,
@@ -20640,17 +20750,23 @@ var __sfc__$e = vue.defineComponent({
20640
20750
  list2 = [{
20641
20751
  value: getValue(modelValue[0]),
20642
20752
  enumValue: Thumbs.First,
20643
- text: toPrecision(modelValue[0])
20753
+ text: toPrecision(modelValue[0]),
20754
+ hovering: vue.unref(hoveringFirst),
20755
+ handleHovering: handleHoveringFirst
20644
20756
  }, {
20645
20757
  value: getValue(modelValue[1]),
20646
20758
  enumValue: Thumbs.Second,
20647
- text: toPrecision(modelValue[1])
20759
+ text: toPrecision(modelValue[1]),
20760
+ hovering: vue.unref(hoveringSecond),
20761
+ handleHovering: handleHoveringSecond
20648
20762
  }];
20649
20763
  } else if (isNumber(modelValue)) {
20650
20764
  list2 = [{
20651
20765
  value: getValue(modelValue),
20652
20766
  enumValue: Thumbs.First,
20653
- text: toPrecision(modelValue)
20767
+ text: toPrecision(modelValue),
20768
+ hovering: vue.unref(hoveringFirst),
20769
+ handleHovering: handleHoveringFirst
20654
20770
  }];
20655
20771
  }
20656
20772
  return list2;
@@ -20700,6 +20816,11 @@ var __sfc__$e = vue.defineComponent({
20700
20816
  var isInteger = parseInt("" + num, 10) === num;
20701
20817
  return isInteger ? num : toNumber(num.toPrecision(5));
20702
20818
  };
20819
+ var hover = (value, item) => {
20820
+ if (isDisabled.value)
20821
+ return;
20822
+ item.handleHovering(value);
20823
+ };
20703
20824
  var setPercent = (moveDistance, type) => {
20704
20825
  var rangeValue = [];
20705
20826
  var {
@@ -20736,6 +20857,9 @@ var __sfc__$e = vue.defineComponent({
20736
20857
  var start2 = (event, type) => {
20737
20858
  if (!maxWidth.value)
20738
20859
  maxWidth.value = sliderEl.value.offsetWidth;
20860
+ if (!isDisabled.value) {
20861
+ thumbsProps[type].active = true;
20862
+ }
20739
20863
  if (isDisabled.value || isReadonly.value)
20740
20864
  return;
20741
20865
  call(props2.onStart);
@@ -20746,7 +20870,6 @@ var __sfc__$e = vue.defineComponent({
20746
20870
  if (isDisabled.value || isReadonly.value || !isScroll.value)
20747
20871
  return;
20748
20872
  var moveDistance = event.touches[0].clientX - thumbsProps[type].startPosition + thumbsProps[type].currentLeft;
20749
- thumbsProps[type].active = true;
20750
20873
  if (moveDistance <= 0)
20751
20874
  moveDistance = 0;
20752
20875
  else if (moveDistance >= maxWidth.value)
@@ -20761,11 +20884,13 @@ var __sfc__$e = vue.defineComponent({
20761
20884
  step: step2,
20762
20885
  min: min2
20763
20886
  } = props2;
20887
+ if (!isDisabled.value) {
20888
+ thumbsProps[type].active = false;
20889
+ }
20764
20890
  if (isDisabled.value || isReadonly.value)
20765
20891
  return;
20766
20892
  var rangeValue = [];
20767
20893
  thumbsProps[type].currentLeft = thumbsProps[type].percentValue * unitWidth.value;
20768
- thumbsProps[type].active = false;
20769
20894
  var curValue = thumbsProps[type].percentValue * toNumber(step2) + toNumber(min2);
20770
20895
  if (range && isArray(modelValue)) {
20771
20896
  rangeValue = type === Thumbs.First ? [curValue, modelValue[1]] : [modelValue[0], curValue];
@@ -20874,6 +20999,7 @@ var __sfc__$e = vue.defineComponent({
20874
20999
  errorMessage,
20875
21000
  thumbsProps,
20876
21001
  thumbList,
21002
+ hover,
20877
21003
  multiplySizeUnit,
20878
21004
  toNumber,
20879
21005
  showLabel,
@@ -20940,10 +21066,10 @@ var props$c = {
20940
21066
  type: Boolean,
20941
21067
  default: false
20942
21068
  },
20943
- loadingType: pickProps(props$12, "type"),
20944
- loadingSize: pickProps(props$12, "size"),
20945
- loadingRadius: pickProps(props$12, "radius"),
20946
- loadingColor: _extends$2({}, pickProps(props$12, "color"), {
21069
+ loadingType: pickProps(props$13, "type"),
21070
+ loadingSize: pickProps(props$13, "size"),
21071
+ loadingRadius: pickProps(props$13, "radius"),
21072
+ loadingColor: _extends$2({}, pickProps(props$13, "color"), {
20947
21073
  default: "currentColor"
20948
21074
  }),
20949
21075
  // 是否禁止滚动穿透
@@ -21915,9 +22041,11 @@ var {
21915
22041
  } = createNamespace("switch");
21916
22042
  function __render__$8(_ctx, _cache) {
21917
22043
  var _component_var_loading = vue.resolveComponent("var-loading");
22044
+ var _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
21918
22045
  var _component_var_form_details = vue.resolveComponent("var-form-details");
21919
22046
  var _directive_ripple = vue.resolveDirective("ripple");
21920
- return vue.openBlock(), vue.createElementBlock(
22047
+ var _directive_hover = vue.resolveDirective("hover");
22048
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock(
21921
22049
  "div",
21922
22050
  {
21923
22051
  class: vue.normalizeClass(_ctx.n())
@@ -21965,6 +22093,14 @@ function __render__$8(_ctx, _cache) {
21965
22093
  )) : vue.createCommentVNode("v-if", true)],
21966
22094
  6
21967
22095
  /* CLASS, STYLE */
22096
+ ), vue.createVNode(
22097
+ _component_var_hover_overlay,
22098
+ {
22099
+ hovering: _ctx.hovering
22100
+ },
22101
+ null,
22102
+ 8,
22103
+ ["hovering"]
21968
22104
  )],
21969
22105
  6
21970
22106
  /* CLASS, STYLE */
@@ -21984,16 +22120,18 @@ function __render__$8(_ctx, _cache) {
21984
22120
  )],
21985
22121
  2
21986
22122
  /* CLASS */
21987
- );
22123
+ )), [[_directive_hover, _ctx.hover, "desktop"]]);
21988
22124
  }
21989
22125
  var __sfc__$8 = vue.defineComponent({
21990
22126
  name: "VarSwitch",
21991
22127
  components: {
21992
22128
  VarLoading: Loading,
21993
- VarFormDetails: FormDetails
22129
+ VarFormDetails: FormDetails,
22130
+ VarHoverOverlay: HoverOverlay
21994
22131
  },
21995
22132
  directives: {
21996
- Ripple: Ripple$1
22133
+ Ripple: Ripple$1,
22134
+ Hover: Hover$1
21997
22135
  },
21998
22136
  props: props$7,
21999
22137
  setup(props2) {
@@ -22007,6 +22145,10 @@ var __sfc__$8 = vue.defineComponent({
22007
22145
  validate: v,
22008
22146
  resetValidation
22009
22147
  } = useValidation();
22148
+ var {
22149
+ hovering,
22150
+ handleHovering
22151
+ } = useHoverOverlay();
22010
22152
  var validate = () => v(props2.rules, props2.modelValue);
22011
22153
  var validateWithTrigger = () => vue.nextTick(() => vt(["onChange"], "onChange", props2.rules, props2.modelValue));
22012
22154
  var styleComputed = vue.computed(() => {
@@ -22070,6 +22212,11 @@ var __sfc__$8 = vue.defineComponent({
22070
22212
  call(updateModelValue, newValue);
22071
22213
  validateWithTrigger();
22072
22214
  };
22215
+ var hover = (value) => {
22216
+ if (props2.disabled || form != null && form.disabled.value)
22217
+ return;
22218
+ handleHovering(value);
22219
+ };
22073
22220
  var reset = () => {
22074
22221
  call(props2["onUpdate:modelValue"], props2.inactiveValue);
22075
22222
  resetValidation();
@@ -22084,6 +22231,8 @@ var __sfc__$8 = vue.defineComponent({
22084
22231
  n: n$8,
22085
22232
  classes: classes$7,
22086
22233
  switchActive,
22234
+ hovering,
22235
+ hover,
22087
22236
  radius,
22088
22237
  styleComputed,
22089
22238
  errorMessage,
@@ -24560,6 +24709,7 @@ const breadcrumb = "";
24560
24709
  const BreadcrumbSfc = "";
24561
24710
  const breadcrumbs = "";
24562
24711
  const BreadcrumbsSfc = "";
24712
+ const hoverOverlay = "";
24563
24713
  const ButtonSfc = "";
24564
24714
  const buttonGroup = "";
24565
24715
  const ButtonGroupSfc = "";
@@ -24594,6 +24744,7 @@ const EllipsisSfc = "";
24594
24744
  const fab = "";
24595
24745
  const FormSfc = "";
24596
24746
  const FormDetailsSfc = "";
24747
+ const HoverOverlaySfc = "";
24597
24748
  const IconSfc = "";
24598
24749
  const image = "";
24599
24750
  const ImageSfc = "";
@@ -24671,7 +24822,7 @@ const TimePickerSfc = "";
24671
24822
  const TooltipSfc = "";
24672
24823
  const uploader = "";
24673
24824
  const UploaderSfc = "";
24674
- const version = "2.9.0";
24825
+ const version = "2.9.1-alpha.1678875429822";
24675
24826
  function install(app) {
24676
24827
  ActionSheet.install && app.use(ActionSheet);
24677
24828
  AppBar.install && app.use(AppBar);
@@ -24704,6 +24855,7 @@ function install(app) {
24704
24855
  Form.install && app.use(Form);
24705
24856
  FormDetails.install && app.use(FormDetails);
24706
24857
  Hover$1.install && app.use(Hover$1);
24858
+ HoverOverlay.install && app.use(HoverOverlay);
24707
24859
  Icon.install && app.use(Icon);
24708
24860
  Image$1.install && app.use(Image$1);
24709
24861
  ImagePreview.install && app.use(ImagePreview);
@@ -24787,6 +24939,7 @@ const index_bundle = {
24787
24939
  Form,
24788
24940
  FormDetails,
24789
24941
  Hover: Hover$1,
24942
+ HoverOverlay,
24790
24943
  Icon,
24791
24944
  Image: Image$1,
24792
24945
  ImagePreview,
@@ -24867,6 +25020,7 @@ exports.Fab = Fab;
24867
25020
  exports.Form = Form;
24868
25021
  exports.FormDetails = FormDetails;
24869
25022
  exports.Hover = Hover$1;
25023
+ exports.HoverOverlay = HoverOverlay;
24870
25024
  exports.Icon = Icon;
24871
25025
  exports.Image = Image$1;
24872
25026
  exports.ImagePreview = ImagePreview;
@@ -24948,6 +25102,7 @@ exports._FabComponent = _FabComponent;
24948
25102
  exports._FormComponent = _FormComponent;
24949
25103
  exports._FormDetailsComponent = _FormDetailsComponent;
24950
25104
  exports._HoverComponent = _HoverComponent;
25105
+ exports._HoverOverlayComponent = _HoverOverlayComponent;
24951
25106
  exports._IconComponent = _IconComponent;
24952
25107
  exports._ImageComponent = _ImageComponent;
24953
25108
  exports._ImagePreviewComponent = _ImagePreviewComponent;
@@ -24996,11 +25151,11 @@ exports._ThemesComponent = _ThemesComponent;
24996
25151
  exports._TimePickerComponent = _TimePickerComponent;
24997
25152
  exports._TooltipComponent = _TooltipComponent;
24998
25153
  exports._UploaderComponent = _UploaderComponent;
24999
- exports.actionSheetProps = props$16;
25154
+ exports.actionSheetProps = props$17;
25000
25155
  exports.add = add$2;
25001
- exports.appBarProps = props$15;
25002
- exports.avatarGroupProps = props$13;
25003
- exports.avatarProps = props$14;
25156
+ exports.appBarProps = props$16;
25157
+ exports.avatarGroupProps = props$14;
25158
+ exports.avatarProps = props$15;
25004
25159
  exports.backTopProps = props$10;
25005
25160
  exports.badgeProps = props$$;
25006
25161
  exports.bottomNavigationItemProps = props$Z;
@@ -25026,7 +25181,7 @@ exports.dividerProps = props$I;
25026
25181
  exports.enUS = enUS;
25027
25182
  exports.formDetailsProps = props$T;
25028
25183
  exports.formProps = props$E;
25029
- exports.iconProps = props$17;
25184
+ exports.iconProps = props$18;
25030
25185
  exports.imageCache = imageCache;
25031
25186
  exports.imagePreviewProps = props$B;
25032
25187
  exports.imageProps = props$D;
@@ -25037,7 +25192,7 @@ exports.install = install;
25037
25192
  exports.linkProps = props$w;
25038
25193
  exports.listProps = props$v;
25039
25194
  exports.loadingBarProps = props$u;
25040
- exports.loadingProps = props$12;
25195
+ exports.loadingProps = props$13;
25041
25196
  exports.menuProps = props$s;
25042
25197
  exports.merge = merge;
25043
25198
  exports.optionProps = props$r;
@@ -25047,7 +25202,7 @@ exports.packs = packs;
25047
25202
  exports.paginationProps = props$p;
25048
25203
  exports.paperProps = props$o;
25049
25204
  exports.pickerProps = props$n;
25050
- exports.popupProps = props$18;
25205
+ exports.popupProps = props$19;
25051
25206
  exports.progressProps = props$m;
25052
25207
  exports.pullRefreshProps = props$l;
25053
25208
  exports.radioGroupProps = props$j;
@@ -25075,6 +25230,7 @@ exports.timePickerProps = props$1;
25075
25230
  exports.tooltipProps = props$H;
25076
25231
  exports.uploaderProps = props;
25077
25232
  exports.use = use;
25233
+ exports.useHoverOverlay = useHoverOverlay;
25078
25234
  exports.useLocale = useLocale;
25079
25235
  exports.version = version;
25080
25236
  exports.zhCN = zhCN;