@varlet/ui 3.14.2 → 3.15.0-alpha.1776572752298

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/es/action-sheet/ActionSheet.mjs +1 -1
  2. package/es/action-sheet/index.mjs +1 -1
  3. package/es/action-sheet/style/index.mjs +1 -1
  4. package/es/alert/Alert.mjs +1 -1
  5. package/es/app-bar/AppBar.mjs +1 -1
  6. package/es/auto-complete/AutoComplete.mjs +1 -1
  7. package/es/avatar/Avatar.mjs +1 -1
  8. package/es/back-top/BackTop.mjs +1 -1
  9. package/es/badge/Badge.mjs +1 -1
  10. package/es/bottom-navigation/BottomNavigation.mjs +1 -1
  11. package/es/bottom-navigation/provide.mjs +1 -1
  12. package/es/bottom-navigation-item/BottomNavigationItem.mjs +1 -1
  13. package/es/breadcrumb/Breadcrumb.mjs +1 -1
  14. package/es/breadcrumbs/provide.mjs +1 -1
  15. package/es/button/Button.mjs +1 -1
  16. package/es/button-group/provide.mjs +1 -1
  17. package/es/card/Card.mjs +2 -2
  18. package/es/cell/Cell.mjs +1 -1
  19. package/es/checkbox/Checkbox.mjs +1 -1
  20. package/es/checkbox-group/CheckboxGroup.mjs +1 -1
  21. package/es/checkbox-group/provide.mjs +1 -1
  22. package/es/chip/Chip.mjs +1 -1
  23. package/es/code/Code.mjs +1 -1
  24. package/es/col/Col.mjs +1 -1
  25. package/es/collapse/Collapse.mjs +1 -1
  26. package/es/collapse/provide.mjs +1 -1
  27. package/es/collapse-transition/useCollapseTransition.mjs +2 -2
  28. package/es/context/stack.mjs +1 -1
  29. package/es/count-to/CountTo.mjs +1 -1
  30. package/es/countdown/Countdown.mjs +1 -1
  31. package/es/counter/Counter.mjs +1 -1
  32. package/es/date-picker/DatePicker.mjs +1 -1
  33. package/es/date-picker/src/day-picker-panel.mjs +5 -5
  34. package/es/date-picker/src/month-picker-panel.mjs +1 -1
  35. package/es/date-picker/src/panel-header.mjs +1 -1
  36. package/es/date-picker/src/year-picker-panel.mjs +3 -3
  37. package/es/dialog/Dialog.mjs +1 -1
  38. package/es/dialog/index.mjs +1 -1
  39. package/es/divider/Divider.mjs +1 -1
  40. package/es/drag/Drag.mjs +1 -1
  41. package/es/ellipsis/Ellipsis.mjs +1 -1
  42. package/es/fab/Fab.mjs +2 -1
  43. package/es/field-decorator/FieldDecorator.mjs +2 -2
  44. package/es/floating-panel/FloatingPanel.mjs +1 -1
  45. package/es/form/Form.mjs +1 -1
  46. package/es/form/provide.mjs +2 -2
  47. package/es/highlighter-provider/HighlighterProvider.mjs +1 -1
  48. package/es/highlighter-provider/provide.mjs +2 -2
  49. package/es/hover-overlay/HoverOverlay.mjs +1 -1
  50. package/es/icon/Icon.mjs +1 -1
  51. package/es/image/Image.mjs +1 -1
  52. package/es/image-preview/ImagePreview.mjs +1 -1
  53. package/es/image-preview/index.mjs +1 -1
  54. package/es/index-bar/IndexBar.mjs +2 -2
  55. package/es/index-bar/provide.mjs +1 -1
  56. package/es/index.bundle.mjs +1 -1
  57. package/es/index.mjs +1 -1
  58. package/es/input/Input.mjs +1 -1
  59. package/es/link/Link.mjs +1 -1
  60. package/es/list/List.mjs +1 -1
  61. package/es/loading/Loading.mjs +1 -1
  62. package/es/locale/index.mjs +1 -1
  63. package/es/locale-provider/LocaleProvider.mjs +1 -1
  64. package/es/locale-provider/provide.mjs +2 -2
  65. package/es/menu/usePopover.mjs +1 -1
  66. package/es/menu-option/MenuOption.mjs +1 -1
  67. package/es/menu-select/MenuChildren.mjs +1 -1
  68. package/es/menu-select/MenuSelect.mjs +1 -1
  69. package/es/menu-select/provide.mjs +1 -1
  70. package/es/option/Option.mjs +1 -1
  71. package/es/overlay/Overlay.mjs +2 -1
  72. package/es/pagination/Pagination.mjs +1 -1
  73. package/es/paper/Paper.mjs +1 -1
  74. package/es/picker/Picker.mjs +1 -1
  75. package/es/picker/index.mjs +1 -1
  76. package/es/popup/Popup.mjs +2 -1
  77. package/es/popup/provide.mjs +1 -1
  78. package/es/progress/Progress.mjs +1 -1
  79. package/es/pull-refresh/PullRefresh.mjs +1 -1
  80. package/es/radio/Radio.mjs +1 -1
  81. package/es/radio-group/RadioGroup.mjs +1 -1
  82. package/es/radio-group/provide.mjs +1 -1
  83. package/es/rate/Rate.mjs +1 -1
  84. package/es/row/Row.mjs +1 -1
  85. package/es/row/provide.mjs +1 -1
  86. package/es/select/Select.mjs +2 -2
  87. package/es/select/SelectFilter.mjs +1 -1
  88. package/es/select/provide.mjs +1 -1
  89. package/es/select/useOptionsMutationObserver.mjs +3 -3
  90. package/es/select/useSelectController.mjs +1 -1
  91. package/es/signature/Signature.mjs +1 -1
  92. package/es/skeleton/Skeleton.mjs +1 -1
  93. package/es/slider/Slider.mjs +1 -1
  94. package/es/snackbar/core.mjs +1 -1
  95. package/es/snackbar/index.mjs +2 -1
  96. package/es/space/Space.mjs +2 -1
  97. package/es/step/Step.mjs +1 -1
  98. package/es/steps/Steps.mjs +1 -1
  99. package/es/steps/provide.mjs +1 -1
  100. package/es/sticky/Sticky.mjs +2 -2
  101. package/es/style-provider/StyleProvider.mjs +1 -1
  102. package/es/swipe/Swipe.mjs +3 -3
  103. package/es/swipe/provide.mjs +2 -2
  104. package/es/switch/Switch.mjs +1 -1
  105. package/es/tab/Tab.mjs +1 -1
  106. package/es/tab-item/provide.mjs +1 -1
  107. package/es/tabs/Tabs.mjs +2 -2
  108. package/es/tabs/provide.mjs +1 -1
  109. package/es/tabs-items/TabsItems.mjs +2 -2
  110. package/es/tabs-items/provide.mjs +1 -1
  111. package/es/time-picker/TimePicker.mjs +1 -1
  112. package/es/time-picker/clock.mjs +1 -1
  113. package/es/uploader/Uploader.mjs +2 -2
  114. package/es/utils/components.mjs +12 -12
  115. package/es/utils/test.mjs +1 -1
  116. package/es/varlet.css +2 -1
  117. package/es/varlet.esm.js +12721 -16443
  118. package/es/watermark/Watermark.mjs +1 -1
  119. package/highlight/web-types.en-US.json +1 -1
  120. package/highlight/web-types.zh-CN.json +1 -1
  121. package/lib/varlet.cjs.js +27769 -31826
  122. package/lib/varlet.css +1 -1
  123. package/package.json +11 -11
  124. package/types/menu.d.ts +1 -1
  125. package/types/menuSelect.d.ts +1 -1
  126. package/types/tooltip.d.ts +1 -1
  127. package/umd/varlet.js +7 -13
@@ -1,6 +1,6 @@
1
- import { defineComponent } from "vue";
2
1
  import { call } from "@varlet/shared";
3
2
  import { useVModel } from "@varlet/use";
3
+ import { defineComponent } from "vue";
4
4
  import { t } from "../locale/index.mjs";
5
5
  import { injectLocaleProvider } from "../locale-provider/provide.mjs";
6
6
  import VarPopup from "../popup/index.mjs";
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { nextTick, reactive } from "vue";
18
17
  import { call, inBrowser } from "@varlet/shared";
18
+ import { nextTick, reactive } from "vue";
19
19
  import { mountInstance, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
20
20
  import VarActionSheet from "./ActionSheet.mjs";
21
21
  import { props as actionSheetProps } from "./props.mjs";
@@ -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'
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { computed, defineComponent } from "vue";
3
3
  import VarIcon from "../icon/index.mjs";
4
4
  import { createNamespace, formatElevation } from "../utils/components.mjs";
5
5
  import { props } from "./props.mjs";
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, onUpdated, ref } from "vue";
2
1
  import { getRect } from "@varlet/shared";
3
2
  import { onSmartMounted, onWindowResize } from "@varlet/use";
3
+ import { computed, defineComponent, onUpdated, ref } from "vue";
4
4
  import { createNamespace, formatElevation } from "../utils/components.mjs";
5
5
  import { toSizeUnit } from "../utils/elements.mjs";
6
6
  import { props } from "./props.mjs";
@@ -18,9 +18,9 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { computed, defineComponent, nextTick, ref, watch } from "vue";
22
21
  import { call, isEmpty, preventDefault, raf, toNumber } from "@varlet/shared";
23
22
  import { useClickOutside, useEventListener, useVModel } from "@varlet/use";
23
+ import { computed, defineComponent, nextTick, ref, watch } from "vue";
24
24
  import VarFormDetails from "../form-details/index.mjs";
25
25
  import { useForm } from "../form/provide.mjs";
26
26
  import VarInput from "../input/index.mjs";
@@ -1,6 +1,6 @@
1
- import { defineComponent, onUpdated, ref } from "vue";
2
1
  import { call } from "@varlet/shared";
3
2
  import { onSmartMounted } from "@varlet/use";
3
+ import { defineComponent, onUpdated, ref } from "vue";
4
4
  import Lazy from "../lazy/index.mjs";
5
5
  import { createNamespace } from "../utils/components.mjs";
6
6
  import { toSizeUnit } from "../utils/elements.mjs";
@@ -1,6 +1,6 @@
1
- import { defineComponent, onActivated, onMounted, ref } from "vue";
2
1
  import { call, getScrollLeft, getScrollTop, throttle } from "@varlet/shared";
3
2
  import { onSmartUnmounted } from "@varlet/use";
3
+ import { defineComponent, onActivated, onMounted, ref } from "vue";
4
4
  import VarButton from "../button/index.mjs";
5
5
  import VarIcon from "../icon/index.mjs";
6
6
  import { createNamespace } from "../utils/components.mjs";
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { computed, defineComponent } from "vue";
18
17
  import { toNumber } from "@varlet/shared";
18
+ import { computed, defineComponent } from "vue";
19
19
  import VarIcon from "../icon/index.mjs";
20
20
  import { createNamespace } from "../utils/components.mjs";
21
21
  import { toSizeUnit } from "../utils/elements.mjs";
@@ -14,9 +14,9 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { computed, defineComponent, onUpdated, ref, watch } from "vue";
18
17
  import { call, getRect, isNumber, normalizeToArray } from "@varlet/shared";
19
18
  import { onSmartMounted, onWindowResize } from "@varlet/use";
19
+ import { computed, defineComponent, onUpdated, ref, watch } from "vue";
20
20
  import VarButton from "../button/index.mjs";
21
21
  import { createNamespace } from "../utils/components.mjs";
22
22
  import { toSizeUnit } from "../utils/elements.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const BOTTOM_NAVIGATION_BIND_BOTTOM_NAVIGATION_ITEM_KEY = Symbol(
2
+ const BOTTOM_NAVIGATION_BIND_BOTTOM_NAVIGATION_ITEM_KEY = /* @__PURE__ */ Symbol(
3
3
  "BOTTOM_NAVIGATION_BIND_BOTTOM_NAVIGATION_ITEM_KEY"
4
4
  );
5
5
  function useBottomNavigationItems() {
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { computed, defineComponent } from "vue";
3
3
  import VarBadge from "../badge/index.mjs";
4
4
  import VarIcon from "../icon/index.mjs";
5
5
  import Ripple from "../ripple/index.mjs";
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { computed, defineComponent } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { props } from "./props.mjs";
5
5
  import { useBreadcrumb } from "./provide.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY = Symbol("BREADCRUMBS_BIND_BREADCRUMB_KEY");
2
+ const BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY = /* @__PURE__ */ Symbol("BREADCRUMBS_BIND_BREADCRUMB_KEY");
3
3
  function useBreadcrumbsList() {
4
4
  const { childProviders, bindChildren, length } = useChildren(
5
5
  BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent, ref } from "vue";
2
1
  import { call, normalizeToArray } from "@varlet/shared";
2
+ import { computed, defineComponent, ref } from "vue";
3
3
  import Hover from "../hover/index.mjs";
4
4
  import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
5
5
  import VarLoading from "../loading/index.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const BUTTON_GROUP_BIND_BUTTON_KEY = Symbol("BUTTON_GROUP_BIND_BUTTON_KEY");
2
+ const BUTTON_GROUP_BIND_BUTTON_KEY = /* @__PURE__ */ Symbol("BUTTON_GROUP_BIND_BUTTON_KEY");
3
3
  function useButtons() {
4
4
  const { bindChildren, childProviders, length } = useChildren(BUTTON_GROUP_BIND_BUTTON_KEY);
5
5
  return {
package/es/card/Card.mjs CHANGED
@@ -18,8 +18,8 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { computed, defineComponent, nextTick, ref, watch } from "vue";
22
21
  import { call, doubleRaf, getRect } from "@varlet/shared";
22
+ import { computed, defineComponent, nextTick, ref, watch } from "vue";
23
23
  import VarButton from "../button/index.mjs";
24
24
  import { useLock } from "../context/lock.mjs";
25
25
  import { useZIndex } from "../context/zIndex.mjs";
@@ -286,7 +286,7 @@ const __sfc__ = defineComponent({
286
286
  clearTimeout(dropper);
287
287
  floater.value = null;
288
288
  floater.value = setTimeout(
289
- () => __async(this, null, function* () {
289
+ () => __async(null, null, function* () {
290
290
  const { width, height, left, top } = getRect(card.value);
291
291
  holderWidth.value = toSizeUnit(width);
292
292
  holderHeight.value = toSizeUnit(height);
package/es/cell/Cell.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { computed, defineComponent } from "vue";
3
3
  import VarIcon from "../icon/index.mjs";
4
4
  import Ripple from "../ripple/index.mjs";
5
5
  import { createNamespace } from "../utils/components.mjs";
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, nextTick, ref } from "vue";
2
1
  import { call, preventDefault } from "@varlet/shared";
3
2
  import { useEventListener, useVModel } from "@varlet/use";
3
+ import { computed, defineComponent, nextTick, ref } from "vue";
4
4
  import VarFormDetails from "../form-details/index.mjs";
5
5
  import { useForm } from "../form/provide.mjs";
6
6
  import Hover from "../hover/index.mjs";
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent, nextTick, watch } from "vue";
2
1
  import { call, isFunction, uniq } from "@varlet/shared";
2
+ import { computed, defineComponent, nextTick, watch } from "vue";
3
3
  import VarCheckbox from "../checkbox/index.mjs";
4
4
  import VarFormDetails from "../form-details/index.mjs";
5
5
  import { useForm } from "../form/provide.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const CHECKBOX_GROUP_BIND_CHECKBOX_KEY = Symbol("CHECKBOX_GROUP_BIND_CHECKBOX_KEY");
2
+ const CHECKBOX_GROUP_BIND_CHECKBOX_KEY = /* @__PURE__ */ Symbol("CHECKBOX_GROUP_BIND_CHECKBOX_KEY");
3
3
  function useCheckboxes() {
4
4
  const { bindChildren, childProviders, length } = useChildren(
5
5
  CHECKBOX_GROUP_BIND_CHECKBOX_KEY
package/es/chip/Chip.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { computed, defineComponent } from "vue";
3
3
  import VarIcon from "../icon/index.mjs";
4
4
  import { createNamespace, formatElevation } from "../utils/components.mjs";
5
5
  import { props } from "./props.mjs";
package/es/code/Code.mjs CHANGED
@@ -44,7 +44,7 @@ const __sfc__ = defineComponent({
44
44
  if (highlighter) {
45
45
  watch(
46
46
  () => [highlighter.value, props2.code, props2.language, normalizedTheme.value, props2.trim],
47
- (_0) => __async(this, [_0], function* ([highlighter2, code, lang = "", theme2 = "", trim]) {
47
+ (_0) => __async(null, [_0], function* ([highlighter2, code, lang = "", theme2 = "", trim]) {
48
48
  if (!highlighter2) {
49
49
  return;
50
50
  }
package/es/col/Col.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent } from "vue";
2
1
  import { call, isPlainObject, toNumber } from "@varlet/shared";
2
+ import { computed, defineComponent } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { padStartFlex, toSizeUnit } from "../utils/elements.mjs";
5
5
  import { props } from "./props.mjs";
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent, nextTick, watch } from "vue";
2
1
  import { call, normalizeToArray, removeArrayBlank } from "@varlet/shared";
2
+ import { computed, defineComponent, nextTick, watch } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { props } from "./props.mjs";
5
5
  import { useCollapseItem } from "./provide.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const COLLAPSE_BIND_COLLAPSE_ITEM_KEY = Symbol("COLLAPSE_BIND_COLLAPSE_ITEM_KEY");
2
+ const COLLAPSE_BIND_COLLAPSE_ITEM_KEY = /* @__PURE__ */ Symbol("COLLAPSE_BIND_COLLAPSE_ITEM_KEY");
3
3
  function useCollapseItem() {
4
4
  const { childProviders, length, bindChildren } = useChildren(
5
5
  COLLAPSE_BIND_COLLAPSE_ITEM_KEY
@@ -18,8 +18,8 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { nextTick, watch } from "vue";
22
21
  import { doubleRaf, raf } from "@varlet/shared";
22
+ import { nextTick, watch } from "vue";
23
23
  function useCollapseTransition(options) {
24
24
  const { contentEl, showContent, expand } = options;
25
25
  let isInitToTrigger = true;
@@ -59,7 +59,7 @@ function useCollapseTransition(options) {
59
59
  }
60
60
  });
61
61
  }
62
- const close = () => __async(this, null, function* () {
62
+ const close = () => __async(null, null, function* () {
63
63
  if (!contentEl.value) {
64
64
  return;
65
65
  }
@@ -1,6 +1,6 @@
1
- import { getCurrentInstance, watch } from "vue";
2
1
  import { removeItem } from "@varlet/shared";
3
2
  import { onSmartMounted, onSmartUnmounted } from "@varlet/use";
3
+ import { getCurrentInstance, watch } from "vue";
4
4
  const stack = [];
5
5
  function useStack(activeGetter, zIndex) {
6
6
  const { uid } = getCurrentInstance();
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, onMounted, watch } from "vue";
2
1
  import { call, floor, toNumber } from "@varlet/shared";
3
2
  import { useMotion } from "@varlet/use";
3
+ import { computed, defineComponent, onMounted, watch } from "vue";
4
4
  import { createNamespace } from "../utils/components.mjs";
5
5
  import { props } from "./props.mjs";
6
6
  const { name, n } = createNamespace("count-to");
@@ -1,5 +1,5 @@
1
- import { defineComponent, onActivated, onDeactivated, onMounted, onUnmounted, ref, watch } from "vue";
2
1
  import { call, cancelAnimationFrame, requestAnimationFrame, toNumber } from "@varlet/shared";
2
+ import { defineComponent, onActivated, onDeactivated, onMounted, onUnmounted, ref, watch } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { padStart } from "../utils/shared.mjs";
5
5
  import { props } from "./props.mjs";
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, nextTick, ref, watch } from "vue";
2
1
  import { call, toNumber } from "@varlet/shared";
3
2
  import { Decimal } from "decimal.js";
3
+ import { computed, defineComponent, nextTick, ref, watch } from "vue";
4
4
  import VarButton from "../button/index.mjs";
5
5
  import VarFormDetails from "../form-details/index.mjs";
6
6
  import { useForm } from "../form/provide.mjs";
@@ -18,9 +18,9 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { computed, defineComponent, ref, watch } from "vue";
22
21
  import { call, doubleRaf, error, isArray, toNumber } from "@varlet/shared";
23
22
  import dayjs from "dayjs/esm/index.js";
23
+ import { computed, defineComponent, ref, watch } from "vue";
24
24
  import { t } from "../locale/index.mjs";
25
25
  import { injectLocaleProvider } from "../locale-provider/provide.mjs";
26
26
  import { createNamespace, formatElevation } from "../utils/components.mjs";
@@ -14,6 +14,11 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
+ import { toNumber } from "@varlet/shared";
18
+ import { onSmartMounted } from "@varlet/use";
19
+ import dayjs from "dayjs/esm/index.js";
20
+ import isSameOrAfter from "dayjs/esm/plugin/isSameOrAfter/index.js";
21
+ import isSameOrBefore from "dayjs/esm/plugin/isSameOrBefore/index.js";
17
22
  import {
18
23
  computed,
19
24
  defineComponent,
@@ -21,11 +26,6 @@ import {
21
26
  ref,
22
27
  watch
23
28
  } from "vue";
24
- import { toNumber } from "@varlet/shared";
25
- import { onSmartMounted } from "@varlet/use";
26
- import dayjs from "dayjs/esm/index.js";
27
- import isSameOrAfter from "dayjs/esm/plugin/isSameOrAfter/index.js";
28
- import isSameOrBefore from "dayjs/esm/plugin/isSameOrBefore/index.js";
29
29
  import VarButton from "../../button/index.mjs";
30
30
  import { t } from "../../locale/index.mjs";
31
31
  import { injectLocaleProvider } from "../../locale-provider/provide.mjs";
@@ -14,11 +14,11 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { computed, defineComponent, reactive, ref, watch } from "vue";
18
17
  import { toNumber } from "@varlet/shared";
19
18
  import dayjs from "dayjs/esm/index.js";
20
19
  import isSameOrAfter from "dayjs/esm/plugin/isSameOrAfter/index.js";
21
20
  import isSameOrBefore from "dayjs/esm/plugin/isSameOrBefore/index.js";
21
+ import { computed, defineComponent, reactive, ref, watch } from "vue";
22
22
  import VarButton from "../../button/index.mjs";
23
23
  import { t } from "../../locale/index.mjs";
24
24
  import { injectLocaleProvider } from "../../locale-provider/provide.mjs";
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent, ref, watch } from "vue";
2
1
  import { toNumber } from "@varlet/shared";
2
+ import { computed, defineComponent, ref, watch } from "vue";
3
3
  import VarButton from "../../button/index.mjs";
4
4
  import VarIcon from "../../icon/index.mjs";
5
5
  import { t } from "../../locale/index.mjs";
@@ -14,6 +14,9 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
+ import { toNumber } from "@varlet/shared";
18
+ import { onSmartMounted } from "@varlet/use";
19
+ import dayjs from "dayjs/esm/index.js";
17
20
  import {
18
21
  computed,
19
22
  defineComponent,
@@ -21,9 +24,6 @@ import {
21
24
  ref,
22
25
  watch
23
26
  } from "vue";
24
- import { toNumber } from "@varlet/shared";
25
- import { onSmartMounted } from "@varlet/use";
26
- import dayjs from "dayjs/esm/index.js";
27
27
  import VarButton from "../../button/index.mjs";
28
28
  import VarSticky from "../../sticky/index.mjs";
29
29
  import { createNamespace } from "../../utils/components.mjs";
@@ -14,9 +14,9 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { defineComponent, ref, watch } from "vue";
18
17
  import { call } from "@varlet/shared";
19
18
  import { useVModel } from "@varlet/use";
19
+ import { defineComponent, ref, watch } from "vue";
20
20
  import VarButton from "../button/index.mjs";
21
21
  import { t } from "../locale/index.mjs";
22
22
  import { injectLocaleProvider } from "../locale-provider/provide.mjs";
@@ -17,8 +17,8 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { nextTick, reactive } from "vue";
21
20
  import { call, inBrowser, isString } from "@varlet/shared";
21
+ import { nextTick, reactive } from "vue";
22
22
  import { mountInstance, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
23
23
  import VarDialog from "./Dialog.mjs";
24
24
  import { props as dialogProps } from "./props.mjs";
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, onUpdated, ref } from "vue";
2
1
  import { isBoolean, toNumber } from "@varlet/shared";
3
2
  import { onSmartMounted } from "@varlet/use";
3
+ import { computed, defineComponent, onUpdated, ref } from "vue";
4
4
  import { createNamespace } from "../utils/components.mjs";
5
5
  import { toSizeUnit } from "../utils/elements.mjs";
6
6
  import { props } from "./props.mjs";
package/es/drag/Drag.mjs CHANGED
@@ -17,9 +17,9 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, reactive, ref, watch } from "vue";
21
20
  import { call, clamp, getRect, preventDefault } from "@varlet/shared";
22
21
  import { onSmartMounted, onWindowResize, useTouch } from "@varlet/use";
22
+ import { defineComponent, reactive, ref, watch } from "vue";
23
23
  import { createNamespace, useTeleport } from "../utils/components.mjs";
24
24
  import { toPxNum } from "../utils/elements.mjs";
25
25
  import { props } from "./props.mjs";
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { computed, defineComponent } from "vue";
18
17
  import { useVModel } from "@varlet/use";
18
+ import { computed, defineComponent } from "vue";
19
19
  import VarTooltip from "../tooltip/index.mjs";
20
20
  import { createNamespace } from "../utils/components.mjs";
21
21
  import { props } from "./props.mjs";
package/es/fab/Fab.mjs CHANGED
@@ -1,6 +1,7 @@
1
- import { defineComponent, ref, Transition, watch, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, mergeProps as _mergeProps } from "vue";
1
+ import { createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, mergeProps as _mergeProps } from "vue";
2
2
  import { call, isBoolean } from "@varlet/shared";
3
3
  import { useClickOutside, useVModel } from "@varlet/use";
4
+ import { defineComponent, ref, Transition, watch } from "vue";
4
5
  import Button from "../button/index.mjs";
5
6
  import Drag from "../drag/index.mjs";
6
7
  import Icon from "../icon/index.mjs";
@@ -18,9 +18,9 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { computed, defineComponent, nextTick, onUpdated, ref, watch } from "vue";
22
21
  import { call, doubleRaf, getStyle, isEmpty } from "@varlet/shared";
23
22
  import { onSmartMounted, onWindowResize } from "@varlet/use";
23
+ import { computed, defineComponent, nextTick, onUpdated, ref, watch } from "vue";
24
24
  import VarIcon from "../icon/index.mjs";
25
25
  import { usePopup } from "../popup/provide.mjs";
26
26
  import { useSwipeResizeDispatcher } from "../swipe/provide.mjs";
@@ -257,7 +257,7 @@ const __sfc__ = defineComponent({
257
257
  if (popup) {
258
258
  watch(
259
259
  () => popup.show.value,
260
- (show) => __async(this, null, function* () {
260
+ (show) => __async(null, null, function* () {
261
261
  if (show) {
262
262
  yield doubleRaf();
263
263
  resize();
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, ref, watch } from "vue";
2
1
  import { call, isEmpty, preventDefault, toNumber } from "@varlet/shared";
3
2
  import { useTouch, useVModel, useWindowSize } from "@varlet/use";
3
+ import { computed, defineComponent, ref, watch } from "vue";
4
4
  import { useLock } from "../context/lock.mjs";
5
5
  import { createNamespace, formatElevation, useTeleport } from "../utils/components.mjs";
6
6
  import { toSizeUnit } from "../utils/elements.mjs";
package/es/form/Form.mjs CHANGED
@@ -18,8 +18,8 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { computed, defineComponent } from "vue";
22
21
  import { call, find, preventDefault } from "@varlet/shared";
22
+ import { computed, defineComponent } from "vue";
23
23
  import { createNamespace } from "../utils/components.mjs";
24
24
  import { getParentScroller, getTop, scrollTo, toPxNum } from "../utils/elements.mjs";
25
25
  import { linear } from "../utils/shared.mjs";
@@ -17,9 +17,9 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { getCurrentInstance } from "vue";
21
20
  import { useChildren, useParent } from "@varlet/use";
22
- const FORM_BIND_FORM_ITEM_KEY = Symbol("FORM_BIND_FORM_ITEM_KEY");
21
+ import { getCurrentInstance } from "vue";
22
+ const FORM_BIND_FORM_ITEM_KEY = /* @__PURE__ */ Symbol("FORM_BIND_FORM_ITEM_KEY");
23
23
  function useForm() {
24
24
  const { parentProvider, index, bindParent } = useParent(FORM_BIND_FORM_ITEM_KEY);
25
25
  const instance = getCurrentInstance();
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent, h } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { computed, defineComponent, h } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { props } from "./props.mjs";
5
5
  import { provideHighlighterProvider } from "./provide.mjs";
@@ -1,6 +1,6 @@
1
- import { inject, provide } from "vue";
2
1
  import { keyInProvides } from "@varlet/use";
3
- const HIGHLIGHTER_PROVIDER_KEY = Symbol("HIGHLIGHTER_PROVIDER_KEY");
2
+ import { inject, provide } from "vue";
3
+ const HIGHLIGHTER_PROVIDER_KEY = /* @__PURE__ */ Symbol("HIGHLIGHTER_PROVIDER_KEY");
4
4
  function provideHighlighterProvider(highlighterProvider) {
5
5
  provide(HIGHLIGHTER_PROVIDER_KEY, highlighterProvider);
6
6
  }
@@ -1,5 +1,5 @@
1
- import { defineComponent } from "vue";
2
1
  import { inMobile } from "@varlet/shared";
2
+ import { defineComponent } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { props } from "./props.mjs";
5
5
  const { name, n, classes } = createNamespace("hover-overlay");
package/es/icon/Icon.mjs CHANGED
@@ -18,8 +18,8 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { defineComponent, nextTick, ref, watch } from "vue";
22
21
  import { isURL, toNumber } from "@varlet/shared";
22
+ import { defineComponent, nextTick, ref, watch } from "vue";
23
23
  import { createNamespace } from "../utils/components.mjs";
24
24
  import { toSizeUnit } from "../utils/elements.mjs";
25
25
  import { props } from "./props.mjs";
@@ -1,5 +1,5 @@
1
- import { defineComponent, ref, watch } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { defineComponent, ref, watch } from "vue";
3
3
  import Lazy from "../lazy/index.mjs";
4
4
  import Ripple from "../ripple/index.mjs";
5
5
  import { createNamespace } from "../utils/components.mjs";
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, ref } from "vue";
2
1
  import { call, clamp, preventDefault, toNumber } from "@varlet/shared";
3
2
  import { useEventListener, useTouch, useVModel } from "@varlet/use";
3
+ import { computed, defineComponent, ref } from "vue";
4
4
  import VarIcon from "../icon/index.mjs";
5
5
  import VarPopup from "../popup/index.mjs";
6
6
  import VarSwipe from "../swipe/index.mjs";
@@ -17,8 +17,8 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { nextTick, reactive } from "vue";
21
20
  import { call, inBrowser, isArray, isString } from "@varlet/shared";
21
+ import { nextTick, reactive } from "vue";
22
22
  import { mountInstance, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
23
23
  import VarImagePreview from "./ImagePreview.mjs";
24
24
  import { props as imagePreviewProps } from "./props.mjs";
@@ -18,7 +18,6 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { computed, defineComponent, onActivated, onBeforeUnmount, onDeactivated, ref, watch } from "vue";
22
21
  import {
23
22
  call,
24
23
  doubleRaf,
@@ -30,6 +29,7 @@ import {
30
29
  toNumber
31
30
  } from "@varlet/shared";
32
31
  import { onSmartMounted } from "@varlet/use";
32
+ import { computed, defineComponent, onActivated, onBeforeUnmount, onDeactivated, ref, watch } from "vue";
33
33
  import { createNamespace } from "../utils/components.mjs";
34
34
  import { getParentScroller, toPxNum, scrollTo as varScrollTo } from "../utils/elements.mjs";
35
35
  import { easeInOutCubic } from "../utils/shared.mjs";
@@ -109,7 +109,7 @@ const __sfc__ = defineComponent({
109
109
  };
110
110
  watch(
111
111
  () => length.value,
112
- () => __async(this, null, function* () {
112
+ () => __async(null, null, function* () {
113
113
  yield doubleRaf();
114
114
  anchorNameList.value = indexAnchors.filter(({ name: name2 }) => name2.value != null).map(({ name: name2 }) => name2.value);
115
115
  })
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const INDEX_BAR_BIND_INDEX_ANCHOR_KEY = Symbol("INDEX_BAR_BIND_INDEX_ANCHOR_KEY");
2
+ const INDEX_BAR_BIND_INDEX_ANCHOR_KEY = /* @__PURE__ */ Symbol("INDEX_BAR_BIND_INDEX_ANCHOR_KEY");
3
3
  function useIndexAnchors() {
4
4
  const { bindChildren, length, childProviders } = useChildren(
5
5
  INDEX_BAR_BIND_INDEX_ANCHOR_KEY
@@ -283,7 +283,7 @@ import './tooltip/style/index.mjs'
283
283
  import './uploader/style/index.mjs'
284
284
  import './watermark/style/index.mjs'
285
285
 
286
- const version = '3.14.2'
286
+ const version = '3.15.0-alpha.1776572752298'
287
287
 
288
288
  function install(app) {
289
289
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -188,7 +188,7 @@ export * from './tooltip/index.mjs'
188
188
  export * from './uploader/index.mjs'
189
189
  export * from './watermark/index.mjs'
190
190
 
191
- const version = '3.14.2'
191
+ const version = '3.15.0-alpha.1776572752298'
192
192
 
193
193
  function install(app) {
194
194
  ActionSheet.install && app.use(ActionSheet)