@varlet/ui 3.14.1 → 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 (128) hide show
  1. package/es/action-sheet/ActionSheet.mjs +1 -1
  2. package/es/action-sheet/index.mjs +1 -1
  3. package/es/alert/Alert.mjs +1 -1
  4. package/es/app-bar/AppBar.mjs +1 -1
  5. package/es/auto-complete/AutoComplete.mjs +1 -1
  6. package/es/avatar/Avatar.mjs +1 -1
  7. package/es/back-top/BackTop.mjs +1 -1
  8. package/es/badge/Badge.mjs +1 -1
  9. package/es/bottom-navigation/BottomNavigation.mjs +1 -1
  10. package/es/bottom-navigation/provide.mjs +1 -1
  11. package/es/bottom-navigation-item/BottomNavigationItem.mjs +1 -1
  12. package/es/breadcrumb/Breadcrumb.mjs +1 -1
  13. package/es/breadcrumbs/provide.mjs +1 -1
  14. package/es/button/Button.mjs +2 -2
  15. package/es/button-group/provide.mjs +1 -1
  16. package/es/card/Card.mjs +2 -2
  17. package/es/cell/Cell.mjs +1 -1
  18. package/es/checkbox/Checkbox.mjs +1 -1
  19. package/es/checkbox-group/CheckboxGroup.mjs +1 -1
  20. package/es/checkbox-group/provide.mjs +1 -1
  21. package/es/chip/Chip.mjs +1 -1
  22. package/es/code/Code.mjs +1 -1
  23. package/es/col/Col.mjs +1 -1
  24. package/es/collapse/Collapse.mjs +1 -1
  25. package/es/collapse/provide.mjs +1 -1
  26. package/es/collapse-transition/useCollapseTransition.mjs +2 -2
  27. package/es/context/stack.mjs +1 -1
  28. package/es/count-to/CountTo.mjs +1 -1
  29. package/es/countdown/Countdown.mjs +1 -1
  30. package/es/counter/Counter.mjs +1 -1
  31. package/es/date-picker/DatePicker.mjs +1 -1
  32. package/es/date-picker/src/day-picker-panel.mjs +5 -5
  33. package/es/date-picker/src/month-picker-panel.mjs +1 -1
  34. package/es/date-picker/src/panel-header.mjs +1 -1
  35. package/es/date-picker/src/year-picker-panel.mjs +3 -3
  36. package/es/dialog/Dialog.mjs +1 -1
  37. package/es/dialog/index.mjs +1 -1
  38. package/es/divider/Divider.mjs +1 -1
  39. package/es/drag/Drag.mjs +1 -1
  40. package/es/ellipsis/Ellipsis.mjs +1 -1
  41. package/es/fab/Fab.mjs +2 -1
  42. package/es/field-decorator/FieldDecorator.mjs +3 -3
  43. package/es/field-decorator/props.mjs +2 -0
  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 +3 -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 +4 -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/snackbar/snackbar.css +1 -1
  97. package/es/space/Space.mjs +2 -1
  98. package/es/step/Step.mjs +1 -1
  99. package/es/steps/Steps.mjs +1 -1
  100. package/es/steps/provide.mjs +1 -1
  101. package/es/sticky/Sticky.mjs +2 -2
  102. package/es/style-provider/StyleProvider.mjs +1 -1
  103. package/es/swipe/Swipe.mjs +3 -3
  104. package/es/swipe/provide.mjs +2 -2
  105. package/es/switch/Switch.mjs +1 -1
  106. package/es/tab/Tab.mjs +1 -1
  107. package/es/tab-item/provide.mjs +1 -1
  108. package/es/tabs/Tabs.mjs +2 -2
  109. package/es/tabs/provide.mjs +1 -1
  110. package/es/tabs-items/TabsItems.mjs +2 -2
  111. package/es/tabs-items/provide.mjs +1 -1
  112. package/es/time-picker/TimePicker.mjs +1 -1
  113. package/es/time-picker/clock.mjs +1 -1
  114. package/es/uploader/Uploader.mjs +2 -2
  115. package/es/utils/components.mjs +12 -12
  116. package/es/utils/test.mjs +1 -1
  117. package/es/varlet.css +2 -1
  118. package/es/varlet.esm.js +12723 -16439
  119. package/es/watermark/Watermark.mjs +1 -1
  120. package/highlight/web-types.en-US.json +1 -1
  121. package/highlight/web-types.zh-CN.json +1 -1
  122. package/lib/varlet.cjs.js +27769 -31820
  123. package/lib/varlet.css +1 -1
  124. package/package.json +11 -11
  125. package/types/menu.d.ts +1 -1
  126. package/types/menuSelect.d.ts +1 -1
  127. package/types/tooltip.d.ts +1 -1
  128. package/umd/varlet.js +7 -13
@@ -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.1'
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.1'
191
+ const version = '3.15.0-alpha.1776572752298'
192
192
 
193
193
  function install(app) {
194
194
  ActionSheet.install && app.use(ActionSheet)
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, nextTick, ref } from "vue";
2
1
  import { call, isEmpty, preventDefault, toNumber } from "@varlet/shared";
3
2
  import { onSmartMounted, useClientId } from "@varlet/use";
3
+ import { computed, defineComponent, nextTick, ref } from "vue";
4
4
  import VarFieldDecorator from "../field-decorator/index.mjs";
5
5
  import VarFormDetails from "../form-details/index.mjs";
6
6
  import { useForm } from "../form/provide.mjs";
@@ -38,7 +38,9 @@ function __render__(_ctx, _cache) {
38
38
  isFocusing: _ctx.isForceFocusingEffect != null ? _ctx.isForceFocusingEffect : _ctx.isFocusing,
39
39
  isError: _ctx.isForceErrorEffect != null ? _ctx.isForceErrorEffect : !!_ctx.errorMessage,
40
40
  formDisabled: _ctx.formDisabled,
41
+ formReadonly: _ctx.formReadonly,
41
42
  disabled: _ctx.disabled,
43
+ readonly: _ctx.readonly,
42
44
  clearable: _ctx.clearable,
43
45
  cursor: _ctx.cursor,
44
46
  composing: _ctx.isComposing,
package/es/link/Link.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent, ref } from "vue";
2
1
  import { call, inMobile } from "@varlet/shared";
2
+ import { computed, defineComponent, ref } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { toSizeUnit } from "../utils/elements.mjs";
5
5
  import { props } from "./props.mjs";
package/es/list/List.mjs CHANGED
@@ -18,9 +18,9 @@ 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 { call, getRect, isNumber } from "@varlet/shared";
23
22
  import { onSmartMounted, onSmartUnmounted } from "@varlet/use";
23
+ import { defineComponent, nextTick, ref, watch } from "vue";
24
24
  import VarLoading from "../loading/index.mjs";
25
25
  import { t } from "../locale/index.mjs";
26
26
  import { injectLocaleProvider } from "../locale-provider/provide.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 { multiplySizeUnit } from "../utils/elements.mjs";
5
5
  import { props } from "./props.mjs";
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { ref } from "vue";
18
17
  import { hasOwn } from "@varlet/shared";
18
+ import { ref } from "vue";
19
19
  import enUS from "./en-US.mjs";
20
20
  import faIR from "./fa-IR.mjs";
21
21
  import jaJP from "./ja-JP.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 { computed, defineComponent, h } from "vue";
21
20
  import { call, hasOwn } from "@varlet/shared";
21
+ import { computed, defineComponent, h } from "vue";
22
22
  import { createNamespace } from "../utils/components.mjs";
23
23
  import { props } from "./props.mjs";
24
24
  import { provideLocaleProvider } from "./provide.mjs";
@@ -1,6 +1,6 @@
1
- import { inject, provide } from "vue";
2
1
  import { keyInProvides } from "@varlet/use";
3
- const LOCALE_PROVIDER_KEY = Symbol("LOCALE_PROVIDER_KEY");
2
+ import { inject, provide } from "vue";
3
+ const LOCALE_PROVIDER_KEY = /* @__PURE__ */ Symbol("LOCALE_PROVIDER_KEY");
4
4
  function provideLocaleProvider(localeProvider) {
5
5
  provide(LOCALE_PROVIDER_KEY, localeProvider);
6
6
  }
@@ -37,13 +37,13 @@ var __async = (__this, __arguments, generator) => {
37
37
  step((generator = generator.apply(__this, __arguments)).next());
38
38
  });
39
39
  };
40
- import { onMounted, onUnmounted, ref, watch } from "vue";
41
40
  import computeStyles from "@popperjs/core/lib/modifiers/computeStyles.js";
42
41
  import flip from "@popperjs/core/lib/modifiers/flip.js";
43
42
  import offset from "@popperjs/core/lib/modifiers/offset.js";
44
43
  import { createPopper } from "@popperjs/core/lib/popper-lite.js";
45
44
  import { call, doubleRaf, getStyle, isString, preventDefault } from "@varlet/shared";
46
45
  import { onWindowResize, useEventListener, useVModel } from "@varlet/use";
46
+ import { onMounted, onUnmounted, ref, watch } from "vue";
47
47
  import { useStack } from "../context/stack.mjs";
48
48
  import { useZIndex } from "../context/zIndex.mjs";
49
49
  import { toPxNum } from "../utils/elements.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, isBoolean, isFunction, preventDefault } from "@varlet/shared";
23
22
  import { useEventListener } from "@varlet/use";
23
+ import { computed, defineComponent, nextTick, ref, watch } from "vue";
24
24
  import VarCheckbox from "../checkbox/index.mjs";
25
25
  import Hover from "../hover/index.mjs";
26
26
  import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
@@ -34,8 +34,8 @@ var __async = (__this, __arguments, generator) => {
34
34
  step((generator = generator.apply(__this, __arguments)).next());
35
35
  });
36
36
  };
37
- import { defineComponent, ref, watch } from "vue";
38
37
  import { call, raf } from "@varlet/shared";
38
+ import { defineComponent, ref, watch } from "vue";
39
39
  import VarMenuOption from "../menu-option/MenuOption.mjs";
40
40
  import VarMenu from "../menu/Menu.mjs";
41
41
  import { createNamespace, defineListenerProp, pickProps } from "../utils/components.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 { computed, defineComponent, ref } from "vue";
21
20
  import { call, preventDefault } from "@varlet/shared";
22
21
  import { useEventListener, useVModel } from "@varlet/use";
22
+ import { computed, defineComponent, ref } from "vue";
23
23
  import VarMenu from "../menu/index.mjs";
24
24
  import VarMenuOption from "../menu-option/index.mjs";
25
25
  import { useSelectController } from "../select/useSelectController.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const MENU_SELECT_BIND_MENU_OPTION_KEY = Symbol("MENU_SELECT_BIND_MENU_OPTION_KEY");
2
+ const MENU_SELECT_BIND_MENU_OPTION_KEY = /* @__PURE__ */ Symbol("MENU_SELECT_BIND_MENU_OPTION_KEY");
3
3
  function useMenuOptions() {
4
4
  const { length, childProviders, bindChildren } = useChildren(
5
5
  MENU_SELECT_BIND_MENU_OPTION_KEY
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, ref, watch } from "vue";
2
1
  import { isFunction, preventDefault } from "@varlet/shared";
3
2
  import { useEventListener } from "@varlet/use";
3
+ import { computed, defineComponent, ref, watch } from "vue";
4
4
  import VarCheckbox from "../checkbox/index.mjs";
5
5
  import Hover from "../hover/index.mjs";
6
6
  import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
@@ -1,6 +1,7 @@
1
- import { defineComponent, Teleport, Transition, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
1
+ import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { call, preventDefault } from "@varlet/shared";
3
3
  import { useEventListener } from "@varlet/use";
4
+ import { defineComponent, Teleport, Transition } from "vue";
4
5
  import { useLock } from "../context/lock.mjs";
5
6
  import { useStack } from "../context/stack.mjs";
6
7
  import { useZIndex } from "../context/zIndex.mjs";
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent, ref, watch } from "vue";
2
1
  import { call, isNumber, toNumber } from "@varlet/shared";
2
+ import { computed, defineComponent, ref, watch } from "vue";
3
3
  import VarIcon from "../icon/index.mjs";
4
4
  import VarInput from "../input/index.mjs";
5
5
  import { t } from "../locale/index.mjs";
@@ -1,5 +1,5 @@
1
- import { defineComponent } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { defineComponent } from "vue";
3
3
  import Ripple from "../ripple/index.mjs";
4
4
  import { createNamespace, formatElevation } from "../utils/components.mjs";
5
5
  import { toSizeUnit } from "../utils/elements.mjs";
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, ref, Transition, watch } from "vue";
2
1
  import { call, clamp, clampArrayRange, toNumber } from "@varlet/shared";
3
2
  import { useTouch, useVModel } from "@varlet/use";
3
+ import { computed, defineComponent, ref, Transition, watch } from "vue";
4
4
  import VarButton from "../button/index.mjs";
5
5
  import { t } from "../locale/index.mjs";
6
6
  import { injectLocaleProvider } from "../locale-provider/provide.mjs";
@@ -1,5 +1,5 @@
1
- import { nextTick, reactive } from "vue";
2
1
  import { call, isArray } from "@varlet/shared";
2
+ import { nextTick, reactive } from "vue";
3
3
  import { mountInstance, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
4
4
  import VarPicker from "./Picker.mjs";
5
5
  import { props as pickerProps } from "./props.mjs";
@@ -14,9 +14,10 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { computed, defineComponent, Teleport, Transition, watch, createVNode as _createVNode, vShow as _vShow, mergeProps as _mergeProps, withDirectives as _withDirectives } from "vue";
17
+ import { createVNode as _createVNode, vShow as _vShow, mergeProps as _mergeProps, withDirectives as _withDirectives } from "vue";
18
18
  import { call, preventDefault } from "@varlet/shared";
19
19
  import { useEventListener, useInitialized } from "@varlet/use";
20
+ import { computed, defineComponent, Teleport, Transition, watch } from "vue";
20
21
  import { useLock } from "../context/lock.mjs";
21
22
  import { useStack } from "../context/stack.mjs";
22
23
  import { useZIndex } from "../context/zIndex.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren, useParent } from "@varlet/use";
2
- const POPUP_BIND_POPUP_ITEM_KEY = Symbol("POPUP_BIND_POPUP_ITEM_KEY");
2
+ const POPUP_BIND_POPUP_ITEM_KEY = /* @__PURE__ */ Symbol("POPUP_BIND_POPUP_ITEM_KEY");
3
3
  function usePopup() {
4
4
  const { bindParent, parentProvider, index } = useParent(POPUP_BIND_POPUP_ITEM_KEY);
5
5
  return {
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent } from "vue";
2
1
  import { clamp, isPlainObject, toNumber } from "@varlet/shared";
3
2
  import { useClientId } from "@varlet/use";
3
+ import { computed, defineComponent } from "vue";
4
4
  import { createNamespace } from "../utils/components.mjs";
5
5
  import { toPxNum, 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, getRect, getScrollTop, isNumber, isString, preventDefault, toNumber } from "@varlet/shared";
23
22
  import { onSmartMounted, useEventListener, useTouch } from "@varlet/use";
23
+ import { computed, defineComponent, nextTick, ref, watch } from "vue";
24
24
  import VarIcon from "../icon/index.mjs";
25
25
  import { createNamespace } from "../utils/components.mjs";
26
26
  import { getParentScroller, getTarget } from "../utils/elements.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,6 +1,6 @@
1
- import { computed, defineComponent, nextTick, ref, watch } from "vue";
2
1
  import { call, isFunction, preventDefault } from "@varlet/shared";
3
2
  import { useEventListener } from "@varlet/use";
3
+ import { computed, defineComponent, nextTick, ref, watch } from "vue";
4
4
  import VarFormDetails from "../form-details/index.mjs";
5
5
  import { useForm } from "../form/provide.mjs";
6
6
  import VarRadio from "../radio/index.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const RADIO_GROUP_BIND_RADIO_KEY = Symbol("RADIO_GROUP_BIND_RADIO_KEY");
2
+ const RADIO_GROUP_BIND_RADIO_KEY = /* @__PURE__ */ Symbol("RADIO_GROUP_BIND_RADIO_KEY");
3
3
  function useRadios() {
4
4
  const { bindChildren, childProviders, length } = useChildren(
5
5
  RADIO_GROUP_BIND_RADIO_KEY
package/es/rate/Rate.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent, nextTick, ref } from "vue";
2
1
  import { call, toNumber } from "@varlet/shared";
2
+ import { defineComponent, nextTick, ref } from "vue";
3
3
  import VarFormDetails from "../form-details/index.mjs";
4
4
  import { useForm } from "../form/provide.mjs";
5
5
  import Hover from "../hover/index.mjs";
package/es/row/Row.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent } from "vue";
2
1
  import { call, isArray } from "@varlet/shared";
2
+ import { computed, defineComponent } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { padStartFlex, toPxNum } from "../utils/elements.mjs";
5
5
  import { props } from "./props.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const ROW_BIND_COL_KEY = Symbol("ROW_BIND_COL_KEY");
2
+ const ROW_BIND_COL_KEY = /* @__PURE__ */ Symbol("ROW_BIND_COL_KEY");
3
3
  function useCols() {
4
4
  const { length, childProviders: cols, bindChildren } = useChildren(ROW_BIND_COL_KEY);
5
5
  return {
@@ -37,9 +37,9 @@ var __async = (__this, __arguments, generator) => {
37
37
  step((generator = generator.apply(__this, __arguments)).next());
38
38
  });
39
39
  };
40
- import { computed, defineComponent, nextTick, ref, watch } from "vue";
41
40
  import { assert, call, doubleRaf, isArray, isEmpty, isFunction, preventDefault } from "@varlet/shared";
42
41
  import { useEventListener } from "@varlet/use";
42
+ import { computed, defineComponent, nextTick, ref, watch } from "vue";
43
43
  import VarChip from "../chip/index.mjs";
44
44
  import VarFieldDecorator from "../field-decorator/index.mjs";
45
45
  import VarFormDetails from "../form-details/index.mjs";
@@ -150,7 +150,9 @@ function __render__(_ctx, _cache) {
150
150
  isError: !!_ctx.errorMessage,
151
151
  formDisabled: _ctx.formDisabled,
152
152
  composing: _ctx.isComposing,
153
+ formReadonly: _ctx.formReadonly,
153
154
  disabled: _ctx.disabled,
155
+ readonly: _ctx.readonly,
154
156
  clearable: _ctx.clearable ? !_ctx.filterable || !_ctx.pattern : false,
155
157
  cursor: _ctx.cursor,
156
158
  onClick: _ctx.handleClick,
@@ -456,7 +458,7 @@ const __sfc__ = defineComponent({
456
458
  showMenu: computed(() => showMenu.value),
457
459
  multiple,
458
460
  filterable,
459
- filter: (_a = props2.filter) != null ? _a : (pattern2, option) => String(option[props2.labelKey]).toLocaleLowerCase().includes(pattern2.toLocaleLowerCase()),
461
+ filter: (_a = props2.filter) != null ? _a : ((pattern2, option) => String(option[props2.labelKey]).toLocaleLowerCase().includes(pattern2.toLocaleLowerCase())),
460
462
  focusColor,
461
463
  computeLabel,
462
464
  onSelect,
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent, ref } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { computed, defineComponent, ref } from "vue";
3
3
  import { createNamespace, defineListenerProp } from "../utils/components.mjs";
4
4
  const { n, classes } = createNamespace("select");
5
5
  import { vModelText as _vModelText, normalizeClass as _normalizeClass, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const SELECT_BIND_OPTION_KEY = Symbol("SELECT_BIND_OPTION_KEY");
2
+ const SELECT_BIND_OPTION_KEY = /* @__PURE__ */ Symbol("SELECT_BIND_OPTION_KEY");
3
3
  function useOptions() {
4
4
  const { length, childProviders, bindChildren } = useChildren(SELECT_BIND_OPTION_KEY);
5
5
  return {
@@ -18,15 +18,15 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { nextTick, ref, watch } from "vue";
22
21
  import { getStyle } from "@varlet/shared";
23
22
  import { onSmartUnmounted } from "@varlet/use";
23
+ import { nextTick, ref, watch } from "vue";
24
24
  function useOptionsMutationObserver(container, showContainer, options) {
25
25
  const showEmpty = ref(false);
26
26
  let observer = null;
27
27
  watch(
28
28
  () => showContainer.value,
29
- () => __async(this, null, function* () {
29
+ () => __async(null, null, function* () {
30
30
  disconnectObserver();
31
31
  if (!showContainer.value) {
32
32
  return;
@@ -49,7 +49,7 @@ function useOptionsMutationObserver(container, showContainer, options) {
49
49
  if (!container.value) {
50
50
  return;
51
51
  }
52
- observer = new MutationObserver(() => __async(this, null, function* () {
52
+ observer = new MutationObserver(() => __async(null, null, function* () {
53
53
  yield nextTick();
54
54
  handler();
55
55
  }));
@@ -1,5 +1,5 @@
1
- import { ref, watch } from "vue";
2
1
  import { isEmpty } from "@varlet/shared";
2
+ import { ref, watch } from "vue";
3
3
  function useSelectController(options) {
4
4
  const {
5
5
  multiple: multipleGetter,
@@ -1,6 +1,6 @@
1
- import { defineComponent, onMounted, ref } from "vue";
2
1
  import { call, getRect, getStyle, toNumber } from "@varlet/shared";
3
2
  import { onWindowResize, useEventListener } from "@varlet/use";
3
+ import { defineComponent, onMounted, ref } from "vue";
4
4
  import { createNamespace } from "../utils/components.mjs";
5
5
  import { props } from "./props.mjs";
6
6
  const { name, n } = createNamespace("signature");
@@ -1,5 +1,5 @@
1
- import { defineComponent } from "vue";
2
1
  import { toNumber } from "@varlet/shared";
2
+ import { defineComponent } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { toSizeUnit } from "../utils/elements.mjs";
5
5
  import { props } from "./props.mjs";
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, nextTick, onBeforeUnmount, reactive, ref, watch } from "vue";
2
1
  import { call, clamp, error, getRect, hasOwn, isArray, isNumber, preventDefault, toNumber, warn } from "@varlet/shared";
3
2
  import { onSmartMounted, onWindowResize, useEventListener } from "@varlet/use";
3
+ import { computed, defineComponent, nextTick, onBeforeUnmount, reactive, ref, watch } 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,6 +1,6 @@
1
- import { computed, defineComponent, ref, watch } from "vue";
2
1
  import { call } from "@varlet/shared";
3
2
  import { onSmartMounted } from "@varlet/use";
3
+ import { computed, defineComponent, ref, watch } from "vue";
4
4
  import { useLock } from "../context/lock.mjs";
5
5
  import { useZIndex } from "../context/zIndex.mjs";
6
6
  import VarIcon from "../icon/index.mjs";
@@ -14,8 +14,9 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { reactive, TransitionGroup, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
17
+ import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
18
18
  import { call, isFunction, isPlainObject, isString, toNumber } from "@varlet/shared";
19
+ import { reactive, TransitionGroup } from "vue";
19
20
  import context from "../context/index.mjs";
20
21
  import { mountInstance, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
21
22
  import VarSnackbarCore from "./core.mjs";
@@ -1 +1 @@
1
- :root { --snackbar-width: 256px; --snackbar-color: rgba(255, 255, 255, 0.87); --snackbar-border-radius: 4px; --snackbar-background: #333; --snackbar-font-size: var(--font-size-md); --snackbar-margin: 6px 24px; --snackbar-border-color: currentColor; --snackbar-success-background: var(--color-success); --snackbar-info-background: var(--color-info); --snackbar-error-background: var(--color-danger); --snackbar-warning-background: var(--color-warning); --snackbar-content-padding: 14px 16px; --snackbar-action-margin: 0 8px; --snackbar-vertical-action-margin: 0 8px 8px 0; --snackbar-icon-margin: 0 8px;}.var-transition-group { position: fixed; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none;}.var-pointer-auto { pointer-events: auto;}.var-snackbar { display: flex; justify-content: center; align-items: baseline; left: 0; right: 0; bottom: 0; transition: all 0.15s var(--cubic-bezier);}.var-snackbar__transition { top: 0; position: fixed;}.var-snackbar__transition .var-snackbar__wrapper { position: absolute;}.var-snackbar__transition .var-snackbar__wrapper-top { top: 5%;}.var-snackbar__transition .var-snackbar__wrapper-center { top: 45%;}.var-snackbar__transition .var-snackbar__wrapper-bottom { bottom: 5%;}.var-snackbar__wrapper { width: var(--snackbar-width); display: flex; border-radius: var(--snackbar-border-radius); color: var(--snackbar-color); background: var(--snackbar-background); font-size: var(--snackbar-font-size); margin: var(--snackbar-margin); align-items: center; border-color: var(--snackbar-border-color); pointer-events: auto; transition: 0.3s var(--cubic-bezier);}.var-snackbar__wrapper-success { background: var(--snackbar-success-background);}.var-snackbar__wrapper-info { background: var(--snackbar-info-background);}.var-snackbar__wrapper-warning { background: var(--snackbar-warning-background);}.var-snackbar__wrapper-error { background: var(--snackbar-error-background);}.var-snackbar__icon { margin: var(--snackbar-icon-margin);}.var-snackbar__content { flex-grow: 1; padding: var(--snackbar-content-padding);}.var-snackbar__action { margin: var(--snackbar-action-margin); display: flex;}.var-snackbar__vertical { flex-direction: column; align-items: flex-start;}.var-snackbar__vertical .var-snackbar__action { align-self: flex-end; margin: var(--snackbar-vertical-action-margin);}.var-snackbar-fade-enter-from,.var-snackbar-fade-leave-to { opacity: 0; transform: translateY(-30px);}
1
+ :root { --snackbar-width: 256px; --snackbar-color: rgba(255, 255, 255, 0.87); --snackbar-border-radius: 4px; --snackbar-background: #333; --snackbar-font-size: var(--font-size-md); --snackbar-margin: 6px 24px; --snackbar-border-color: currentColor; --snackbar-success-background: var(--color-success); --snackbar-info-background: var(--color-info); --snackbar-error-background: var(--color-danger); --snackbar-warning-background: var(--color-warning); --snackbar-content-padding: 14px 16px; --snackbar-action-margin: 0 8px; --snackbar-vertical-action-margin: 0 8px 8px 0; --snackbar-icon-margin: 0 8px;}.var-transition-group { position: fixed; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none;}.var-pointer-auto { pointer-events: auto;}.var-snackbar { display: flex; justify-content: center; align-items: baseline; left: 0; right: 0; bottom: 0; transition: all 0.15s var(--cubic-bezier);}.var-snackbar__transition { top: 0; position: fixed;}.var-snackbar__transition .var-snackbar__wrapper { position: absolute;}.var-snackbar__transition .var-snackbar__wrapper-top { top: 5%;}.var-snackbar__transition .var-snackbar__wrapper-center { top: 45%;}.var-snackbar__transition .var-snackbar__wrapper-bottom { bottom: 5%;}.var-snackbar__wrapper { width: var(--snackbar-width); display: flex; border-radius: var(--snackbar-border-radius); color: var(--snackbar-color); background: var(--snackbar-background); font-size: var(--snackbar-font-size); margin: var(--snackbar-margin); align-items: center; border-color: var(--snackbar-border-color); pointer-events: auto; transition: 0.3s var(--cubic-bezier);}.var-snackbar__wrapper-success { background: var(--snackbar-success-background);}.var-snackbar__wrapper-info { background: var(--snackbar-info-background);}.var-snackbar__wrapper-warning { background: var(--snackbar-warning-background);}.var-snackbar__wrapper-error { background: var(--snackbar-error-background);}.var-snackbar__icon { margin: var(--snackbar-icon-margin);}.var-snackbar__content { flex-grow: 1; word-break: break-all; padding: var(--snackbar-content-padding);}.var-snackbar__action { margin: var(--snackbar-action-margin); display: flex;}.var-snackbar__vertical { flex-direction: column; align-items: flex-start;}.var-snackbar__vertical .var-snackbar__action { align-self: flex-end; margin: var(--snackbar-vertical-action-margin);}.var-snackbar-fade-enter-from,.var-snackbar-fade-leave-to { opacity: 0; transform: translateY(-30px);}
@@ -1,5 +1,6 @@
1
- import { defineComponent, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode } from "vue";
2
2
  import { call, isArray } from "@varlet/shared";
3
+ import { defineComponent } from "vue";
3
4
  import { createNamespace, flatFragment } from "../utils/components.mjs";
4
5
  import { padStartFlex, toSizeUnit } from "../utils/elements.mjs";
5
6
  import { computeMargin } from "./margin.mjs";
package/es/step/Step.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent } from "vue";
2
1
  import { toNumber } from "@varlet/shared";
2
+ import { computed, defineComponent } from "vue";
3
3
  import VarIcon from "../icon/index.mjs";
4
4
  import { createNamespace } from "../utils/components.mjs";
5
5
  import { props } from "./props.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 { useStep } from "./provide.mjs";
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const STEPS_BIND_STEP_KEY = Symbol("STEPS_BIND_STEP_KEY");
2
+ const STEPS_BIND_STEP_KEY = /* @__PURE__ */ Symbol("STEPS_BIND_STEP_KEY");
3
3
  function useStep() {
4
4
  const { bindChildren, childProviders } = useChildren(STEPS_BIND_STEP_KEY);
5
5
  return {
@@ -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, getRect, raf, toNumber } from "@varlet/shared";
23
22
  import { onSmartMounted, onSmartUnmounted, onWindowResize, useEventListener } from "@varlet/use";
23
+ import { computed, defineComponent, ref, watch } from "vue";
24
24
  import { createNamespace } from "../utils/components.mjs";
25
25
  import { getParentScroller, toPxNum } from "../utils/elements.mjs";
26
26
  import { props } from "./props.mjs";
@@ -83,7 +83,7 @@ const __sfc__ = defineComponent({
83
83
  const offsetTop = computed(() => toPxNum(props2.offsetTop));
84
84
  let scroller;
85
85
  watch(() => props2.disabled, resize);
86
- onSmartMounted(() => __async(this, null, function* () {
86
+ onSmartMounted(() => __async(null, null, function* () {
87
87
  yield doubleRaf();
88
88
  setupScroller();
89
89
  handleScroll();
@@ -1,5 +1,5 @@
1
- import { defineComponent, h } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { defineComponent, h } from "vue";
3
3
  import { createNamespace } from "../utils/components.mjs";
4
4
  import { formatStyleVars } from "../utils/elements.mjs";
5
5
  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, onActivated, ref, watch } from "vue";
22
21
  import { call, clamp, doubleRaf, isNumber, preventDefault, toNumber } from "@varlet/shared";
23
22
  import { onSmartUnmounted, onWindowResize, useEventListener, useTouch } from "@varlet/use";
23
+ import { computed, defineComponent, onActivated, ref, watch } from "vue";
24
24
  import VarButton from "../button/index.mjs";
25
25
  import Hover from "../hover/index.mjs";
26
26
  import VarIcon from "../icon/index.mjs";
@@ -241,7 +241,7 @@ const __sfc__ = defineComponent({
241
241
  call(bindSwipeResizeListeners, null);
242
242
  watch(
243
243
  () => length.value,
244
- () => __async(this, null, function* () {
244
+ () => __async(null, null, function* () {
245
245
  yield doubleRaf();
246
246
  initialIndex();
247
247
  resize();
@@ -250,7 +250,7 @@ const __sfc__ = defineComponent({
250
250
  if (popup) {
251
251
  watch(
252
252
  () => popup.show.value,
253
- (show) => __async(this, null, function* () {
253
+ (show) => __async(null, null, function* () {
254
254
  if (show) {
255
255
  yield doubleRaf();
256
256
  resize();
@@ -1,6 +1,6 @@
1
1
  import { useChildren, useParent } from "@varlet/use";
2
- const SWIPE_BIND_SWIPE_ITEM_KEY = Symbol("SWIPE_BIND_SWIPE_ITEM_KEY");
3
- const SWIPE_RESIZE_DISPATCHER_BIND_SWIPE_RESIZE_LISTENER_KEY = Symbol(
2
+ const SWIPE_BIND_SWIPE_ITEM_KEY = /* @__PURE__ */ Symbol("SWIPE_BIND_SWIPE_ITEM_KEY");
3
+ const SWIPE_RESIZE_DISPATCHER_BIND_SWIPE_RESIZE_LISTENER_KEY = /* @__PURE__ */ Symbol(
4
4
  "SWIPE_RESIZE_DISPATCHER_BIND_SWIPE_RESIZE_LISTENER_KEY"
5
5
  );
6
6
  function useSwipeItems() {
@@ -1,6 +1,6 @@
1
- import { computed, defineComponent, nextTick, ref } from "vue";
2
1
  import { call, preventDefault } from "@varlet/shared";
3
2
  import { useEventListener } 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";
package/es/tab/Tab.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { computed, defineComponent, ref, watch } from "vue";
2
1
  import { call } from "@varlet/shared";
2
+ import { computed, defineComponent, ref, watch } from "vue";
3
3
  import Ripple from "../ripple/index.mjs";
4
4
  import { createNamespace } from "../utils/components.mjs";
5
5
  import { props } from "./props.mjs";
@@ -1,7 +1,7 @@
1
1
  import { assert } from "@varlet/shared";
2
2
  import { useChildren, useParent } from "@varlet/use";
3
3
  import { TABS_ITEMS_BIND_TAB_ITEM_KEY } from "../tabs-items/provide.mjs";
4
- const TAB_ITEM_BIND_LIST_KEY = Symbol("TAB_ITEM_BIND_LIST_KEY");
4
+ const TAB_ITEM_BIND_LIST_KEY = /* @__PURE__ */ Symbol("TAB_ITEM_BIND_LIST_KEY");
5
5
  function useTabsItems() {
6
6
  const { parentProvider, bindParent, index } = useParent(
7
7
  TABS_ITEMS_BIND_TAB_ITEM_KEY
package/es/tabs/Tabs.mjs CHANGED
@@ -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, onActivated, ref, Transition, watch } from "vue";
22
21
  import { call, clamp, doubleRaf, isNumber } from "@varlet/shared";
23
22
  import { onWindowResize } from "@varlet/use";
23
+ import { computed, defineComponent, onActivated, ref, Transition, watch } from "vue";
24
24
  import VarSticky from "../sticky/index.mjs";
25
25
  import { createNamespace, formatElevation } from "../utils/components.mjs";
26
26
  import { scrollTo, toSizeUnit } from "../utils/elements.mjs";
@@ -136,7 +136,7 @@ const __sfc__ = defineComponent({
136
136
  bindTabList(tabsProvider);
137
137
  watch(
138
138
  () => length.value,
139
- () => __async(this, null, function* () {
139
+ () => __async(null, null, function* () {
140
140
  yield doubleRaf();
141
141
  resize();
142
142
  })
@@ -1,5 +1,5 @@
1
1
  import { useChildren } from "@varlet/use";
2
- const TABS_BIND_TAB_KEY = Symbol("TABS_BIND_TAB_KEY");
2
+ const TABS_BIND_TAB_KEY = /* @__PURE__ */ Symbol("TABS_BIND_TAB_KEY");
3
3
  function useTabList() {
4
4
  const { childProviders, bindChildren, length } = useChildren(TABS_BIND_TAB_KEY);
5
5
  return {