@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.
- package/es/action-sheet/ActionSheet.mjs +1 -1
- package/es/action-sheet/index.mjs +1 -1
- package/es/action-sheet/style/index.mjs +1 -1
- package/es/alert/Alert.mjs +1 -1
- package/es/app-bar/AppBar.mjs +1 -1
- package/es/auto-complete/AutoComplete.mjs +1 -1
- package/es/avatar/Avatar.mjs +1 -1
- package/es/back-top/BackTop.mjs +1 -1
- package/es/badge/Badge.mjs +1 -1
- package/es/bottom-navigation/BottomNavigation.mjs +1 -1
- package/es/bottom-navigation/provide.mjs +1 -1
- package/es/bottom-navigation-item/BottomNavigationItem.mjs +1 -1
- package/es/breadcrumb/Breadcrumb.mjs +1 -1
- package/es/breadcrumbs/provide.mjs +1 -1
- package/es/button/Button.mjs +1 -1
- package/es/button-group/provide.mjs +1 -1
- package/es/card/Card.mjs +2 -2
- package/es/cell/Cell.mjs +1 -1
- package/es/checkbox/Checkbox.mjs +1 -1
- package/es/checkbox-group/CheckboxGroup.mjs +1 -1
- package/es/checkbox-group/provide.mjs +1 -1
- package/es/chip/Chip.mjs +1 -1
- package/es/code/Code.mjs +1 -1
- package/es/col/Col.mjs +1 -1
- package/es/collapse/Collapse.mjs +1 -1
- package/es/collapse/provide.mjs +1 -1
- package/es/collapse-transition/useCollapseTransition.mjs +2 -2
- package/es/context/stack.mjs +1 -1
- package/es/count-to/CountTo.mjs +1 -1
- package/es/countdown/Countdown.mjs +1 -1
- package/es/counter/Counter.mjs +1 -1
- package/es/date-picker/DatePicker.mjs +1 -1
- package/es/date-picker/src/day-picker-panel.mjs +5 -5
- package/es/date-picker/src/month-picker-panel.mjs +1 -1
- package/es/date-picker/src/panel-header.mjs +1 -1
- package/es/date-picker/src/year-picker-panel.mjs +3 -3
- package/es/dialog/Dialog.mjs +1 -1
- package/es/dialog/index.mjs +1 -1
- package/es/divider/Divider.mjs +1 -1
- package/es/drag/Drag.mjs +1 -1
- package/es/ellipsis/Ellipsis.mjs +1 -1
- package/es/fab/Fab.mjs +2 -1
- package/es/field-decorator/FieldDecorator.mjs +2 -2
- package/es/floating-panel/FloatingPanel.mjs +1 -1
- package/es/form/Form.mjs +1 -1
- package/es/form/provide.mjs +2 -2
- package/es/highlighter-provider/HighlighterProvider.mjs +1 -1
- package/es/highlighter-provider/provide.mjs +2 -2
- package/es/hover-overlay/HoverOverlay.mjs +1 -1
- package/es/icon/Icon.mjs +1 -1
- package/es/image/Image.mjs +1 -1
- package/es/image-preview/ImagePreview.mjs +1 -1
- package/es/image-preview/index.mjs +1 -1
- package/es/index-bar/IndexBar.mjs +2 -2
- package/es/index-bar/provide.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +1 -1
- package/es/link/Link.mjs +1 -1
- package/es/list/List.mjs +1 -1
- package/es/loading/Loading.mjs +1 -1
- package/es/locale/index.mjs +1 -1
- package/es/locale-provider/LocaleProvider.mjs +1 -1
- package/es/locale-provider/provide.mjs +2 -2
- package/es/menu/usePopover.mjs +1 -1
- package/es/menu-option/MenuOption.mjs +1 -1
- package/es/menu-select/MenuChildren.mjs +1 -1
- package/es/menu-select/MenuSelect.mjs +1 -1
- package/es/menu-select/provide.mjs +1 -1
- package/es/option/Option.mjs +1 -1
- package/es/overlay/Overlay.mjs +2 -1
- package/es/pagination/Pagination.mjs +1 -1
- package/es/paper/Paper.mjs +1 -1
- package/es/picker/Picker.mjs +1 -1
- package/es/picker/index.mjs +1 -1
- package/es/popup/Popup.mjs +2 -1
- package/es/popup/provide.mjs +1 -1
- package/es/progress/Progress.mjs +1 -1
- package/es/pull-refresh/PullRefresh.mjs +1 -1
- package/es/radio/Radio.mjs +1 -1
- package/es/radio-group/RadioGroup.mjs +1 -1
- package/es/radio-group/provide.mjs +1 -1
- package/es/rate/Rate.mjs +1 -1
- package/es/row/Row.mjs +1 -1
- package/es/row/provide.mjs +1 -1
- package/es/select/Select.mjs +2 -2
- package/es/select/SelectFilter.mjs +1 -1
- package/es/select/provide.mjs +1 -1
- package/es/select/useOptionsMutationObserver.mjs +3 -3
- package/es/select/useSelectController.mjs +1 -1
- package/es/signature/Signature.mjs +1 -1
- package/es/skeleton/Skeleton.mjs +1 -1
- package/es/slider/Slider.mjs +1 -1
- package/es/snackbar/core.mjs +1 -1
- package/es/snackbar/index.mjs +2 -1
- package/es/space/Space.mjs +2 -1
- package/es/step/Step.mjs +1 -1
- package/es/steps/Steps.mjs +1 -1
- package/es/steps/provide.mjs +1 -1
- package/es/sticky/Sticky.mjs +2 -2
- package/es/style-provider/StyleProvider.mjs +1 -1
- package/es/swipe/Swipe.mjs +3 -3
- package/es/swipe/provide.mjs +2 -2
- package/es/switch/Switch.mjs +1 -1
- package/es/tab/Tab.mjs +1 -1
- package/es/tab-item/provide.mjs +1 -1
- package/es/tabs/Tabs.mjs +2 -2
- package/es/tabs/provide.mjs +1 -1
- package/es/tabs-items/TabsItems.mjs +2 -2
- package/es/tabs-items/provide.mjs +1 -1
- package/es/time-picker/TimePicker.mjs +1 -1
- package/es/time-picker/clock.mjs +1 -1
- package/es/uploader/Uploader.mjs +2 -2
- package/es/utils/components.mjs +12 -12
- package/es/utils/test.mjs +1 -1
- package/es/varlet.css +2 -1
- package/es/varlet.esm.js +12721 -16443
- package/es/watermark/Watermark.mjs +1 -1
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +27769 -31826
- package/lib/varlet.css +1 -1
- package/package.json +11 -11
- package/types/menu.d.ts +1 -1
- package/types/menuSelect.d.ts +1 -1
- package/types/tooltip.d.ts +1 -1
- package/umd/varlet.js +7 -13
package/es/input/Input.mjs
CHANGED
|
@@ -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";
|
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";
|
package/es/loading/Loading.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 { createNamespace } from "../utils/components.mjs";
|
|
4
4
|
import { multiplySizeUnit } from "../utils/elements.mjs";
|
|
5
5
|
import { props } from "./props.mjs";
|
package/es/locale/index.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|
package/es/menu/usePopover.mjs
CHANGED
|
@@ -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
|
package/es/option/Option.mjs
CHANGED
|
@@ -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";
|
package/es/overlay/Overlay.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
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";
|
package/es/paper/Paper.mjs
CHANGED
|
@@ -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";
|
package/es/picker/Picker.mjs
CHANGED
|
@@ -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";
|
package/es/picker/index.mjs
CHANGED
|
@@ -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";
|
package/es/popup/Popup.mjs
CHANGED
|
@@ -14,9 +14,10 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import {
|
|
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";
|
package/es/popup/provide.mjs
CHANGED
|
@@ -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 {
|
package/es/progress/Progress.mjs
CHANGED
|
@@ -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";
|
package/es/radio/Radio.mjs
CHANGED
|
@@ -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";
|
package/es/row/provide.mjs
CHANGED
|
@@ -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 {
|
package/es/select/Select.mjs
CHANGED
|
@@ -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";
|
|
@@ -458,7 +458,7 @@ const __sfc__ = defineComponent({
|
|
|
458
458
|
showMenu: computed(() => showMenu.value),
|
|
459
459
|
multiple,
|
|
460
460
|
filterable,
|
|
461
|
-
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())),
|
|
462
462
|
focusColor,
|
|
463
463
|
computeLabel,
|
|
464
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";
|
package/es/select/provide.mjs
CHANGED
|
@@ -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(
|
|
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(
|
|
52
|
+
observer = new MutationObserver(() => __async(null, null, function* () {
|
|
53
53
|
yield nextTick();
|
|
54
54
|
handler();
|
|
55
55
|
}));
|
|
@@ -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");
|
package/es/skeleton/Skeleton.mjs
CHANGED
|
@@ -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";
|
package/es/slider/Slider.mjs
CHANGED
|
@@ -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";
|
package/es/snackbar/core.mjs
CHANGED
|
@@ -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";
|
package/es/snackbar/index.mjs
CHANGED
|
@@ -14,8 +14,9 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import {
|
|
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";
|
package/es/space/Space.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
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";
|
package/es/steps/Steps.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 { createNamespace } from "../utils/components.mjs";
|
|
4
4
|
import { props } from "./props.mjs";
|
|
5
5
|
import { useStep } from "./provide.mjs";
|
package/es/steps/provide.mjs
CHANGED
|
@@ -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 {
|
package/es/sticky/Sticky.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, 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(
|
|
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";
|
package/es/swipe/Swipe.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, 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(
|
|
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(
|
|
253
|
+
(show) => __async(null, null, function* () {
|
|
254
254
|
if (show) {
|
|
255
255
|
yield doubleRaf();
|
|
256
256
|
resize();
|
package/es/swipe/provide.mjs
CHANGED
|
@@ -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() {
|
package/es/switch/Switch.mjs
CHANGED
|
@@ -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";
|
package/es/tab-item/provide.mjs
CHANGED
|
@@ -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(
|
|
139
|
+
() => __async(null, null, function* () {
|
|
140
140
|
yield doubleRaf();
|
|
141
141
|
resize();
|
|
142
142
|
})
|
package/es/tabs/provide.mjs
CHANGED
|
@@ -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 {
|
|
@@ -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, ref, watch } from "vue";
|
|
22
21
|
import { call, doubleRaf } from "@varlet/shared";
|
|
22
|
+
import { defineComponent, ref, watch } from "vue";
|
|
23
23
|
import VarSwipe from "../swipe/index.mjs";
|
|
24
24
|
import { createNamespace } from "../utils/components.mjs";
|
|
25
25
|
import { props } from "./props.mjs";
|
|
@@ -55,7 +55,7 @@ const __sfc__ = defineComponent({
|
|
|
55
55
|
watch(() => props2.active, handleActiveChange);
|
|
56
56
|
watch(
|
|
57
57
|
() => length.value,
|
|
58
|
-
() => __async(
|
|
58
|
+
() => __async(null, null, function* () {
|
|
59
59
|
yield doubleRaf();
|
|
60
60
|
handleActiveChange(props2.active);
|
|
61
61
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useChildren } from "@varlet/use";
|
|
2
|
-
const TABS_ITEMS_BIND_TAB_ITEM_KEY = Symbol("TABS_ITEMS_BIND_TAB_ITEM_KEY");
|
|
2
|
+
const TABS_ITEMS_BIND_TAB_ITEM_KEY = /* @__PURE__ */ Symbol("TABS_ITEMS_BIND_TAB_ITEM_KEY");
|
|
3
3
|
function useTabItem() {
|
|
4
4
|
const { bindChildren, childProviders, length } = useChildren(
|
|
5
5
|
TABS_ITEMS_BIND_TAB_ITEM_KEY
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed, defineComponent, reactive, ref, watch } from "vue";
|
|
2
1
|
import { call, getRect, preventDefault, toNumber } from "@varlet/shared";
|
|
3
2
|
import dayjs from "dayjs/esm/index.js";
|
|
3
|
+
import { computed, defineComponent, reactive, ref, watch } from "vue";
|
|
4
4
|
import { t } from "../locale/index.mjs";
|
|
5
5
|
import { injectLocaleProvider } from "../locale-provider/provide.mjs";
|
|
6
6
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
package/es/time-picker/clock.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed, defineComponent, ref, watch } from "vue";
|
|
2
1
|
import { getRect, toNumber } from "@varlet/shared";
|
|
3
2
|
import dayjs from "dayjs/esm/index.js";
|
|
3
|
+
import { computed, defineComponent, ref, watch } from "vue";
|
|
4
4
|
import { createNamespace } from "../utils/components.mjs";
|
|
5
5
|
import { padStart } from "../utils/shared.mjs";
|
|
6
6
|
import { hours24, hoursAmpm, minSec } from "./props.mjs";
|