@varlet/ui 3.8.2 → 3.8.3
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/ActionItem.mjs +4 -4
- package/es/action-sheet/ActionSheet.mjs +9 -9
- package/es/action-sheet/index.mjs +2 -2
- package/es/action-sheet/props.mjs +1 -1
- package/es/action-sheet/style/index.mjs +1 -1
- package/es/alert/Alert.mjs +3 -3
- package/es/alert/index.mjs +1 -1
- package/es/app-bar/AppBar.mjs +5 -5
- package/es/app-bar/index.mjs +1 -1
- package/es/auto-complete/AutoComplete.mjs +23 -27
- package/es/auto-complete/index.mjs +1 -1
- package/es/auto-complete/props.mjs +1 -1
- package/es/avatar/Avatar.mjs +5 -5
- package/es/avatar/index.mjs +1 -1
- package/es/avatar-group/AvatarGroup.mjs +2 -2
- package/es/avatar-group/index.mjs +1 -1
- package/es/back-top/BackTop.mjs +7 -7
- package/es/back-top/index.mjs +1 -1
- package/es/badge/Badge.mjs +3 -3
- package/es/badge/index.mjs +1 -1
- package/es/badge/props.mjs +1 -1
- package/es/bottom-navigation/BottomNavigation.mjs +8 -9
- package/es/bottom-navigation/index.mjs +1 -1
- package/es/bottom-navigation-item/BottomNavigationItem.mjs +4 -4
- package/es/bottom-navigation-item/index.mjs +1 -1
- package/es/bottom-navigation-item/provide.mjs +1 -1
- package/es/breadcrumb/Breadcrumb.mjs +3 -3
- package/es/breadcrumb/index.mjs +1 -1
- package/es/breadcrumb/provide.mjs +1 -1
- package/es/breadcrumbs/Breadcrumbs.mjs +2 -2
- package/es/breadcrumbs/index.mjs +1 -1
- package/es/button/Button.mjs +6 -6
- package/es/button/index.mjs +1 -1
- package/es/button-group/ButtonGroup.mjs +1 -1
- package/es/button-group/index.mjs +1 -1
- package/es/card/Card.mjs +39 -39
- package/es/card/index.mjs +1 -1
- package/es/cell/Cell.mjs +3 -3
- package/es/cell/index.mjs +1 -1
- package/es/cell/props.mjs +1 -1
- package/es/checkbox/Checkbox.mjs +7 -7
- package/es/checkbox/index.mjs +1 -1
- package/es/checkbox-group/CheckboxGroup.mjs +5 -5
- package/es/checkbox-group/index.mjs +1 -1
- package/es/chip/Chip.mjs +4 -4
- package/es/chip/index.mjs +1 -1
- package/es/chip/props.mjs +1 -1
- package/es/code/Code.mjs +1 -1
- package/es/code/index.mjs +1 -1
- package/es/col/Col.mjs +4 -4
- package/es/col/index.mjs +1 -1
- package/es/collapse/Collapse.mjs +6 -4
- package/es/collapse/index.mjs +1 -1
- package/es/collapse-item/CollapseItem.mjs +4 -4
- package/es/collapse-item/index.mjs +1 -1
- package/es/collapse-item/provide.mjs +1 -1
- package/es/collapse-transition/CollapseTransition.mjs +2 -2
- package/es/collapse-transition/index.mjs +1 -1
- package/es/collapse-transition/useCollapseTransition.mjs +1 -1
- package/es/context/lock.mjs +1 -1
- package/es/context/stack.mjs +1 -1
- package/es/context/zIndex.mjs +1 -1
- package/es/count-to/CountTo.mjs +4 -4
- package/es/count-to/index.mjs +1 -1
- package/es/countdown/Countdown.mjs +2 -2
- package/es/countdown/index.mjs +1 -1
- package/es/counter/Counter.mjs +8 -8
- package/es/counter/index.mjs +1 -1
- package/es/date-picker/DatePicker.mjs +92 -43
- package/es/date-picker/index.mjs +1 -1
- package/es/date-picker/src/day-picker-panel.mjs +59 -27
- package/es/date-picker/src/month-picker-panel.mjs +57 -23
- package/es/date-picker/src/panel-header.mjs +12 -6
- package/es/date-picker/src/year-picker-panel.mjs +53 -23
- package/es/dialog/Dialog.mjs +5 -5
- package/es/dialog/index.mjs +3 -3
- package/es/dialog/props.mjs +1 -1
- package/es/divider/Divider.mjs +4 -4
- package/es/divider/index.mjs +1 -1
- package/es/drag/Drag.mjs +21 -42
- package/es/drag/index.mjs +1 -1
- package/es/ellipsis/Ellipsis.mjs +2 -2
- package/es/ellipsis/index.mjs +1 -1
- package/es/fab/Fab.mjs +4 -5
- package/es/fab/index.mjs +1 -1
- package/es/fab/props.mjs +1 -1
- package/es/field-decorator/FieldDecorator.mjs +5 -5
- package/es/field-decorator/index.mjs +1 -1
- package/es/floating-panel/FloatingPanel.mjs +6 -6
- package/es/floating-panel/index.mjs +1 -1
- package/es/form/Form.mjs +4 -4
- package/es/form/index.mjs +2 -2
- package/es/form/provide.mjs +1 -1
- package/es/form-details/index.mjs +1 -1
- package/es/highlighter-provider/HighlighterProvider.mjs +2 -2
- package/es/highlighter-provider/index.mjs +1 -1
- package/es/highlighter-provider/provide.mjs +1 -1
- package/es/hover/index.mjs +12 -7
- package/es/hover-overlay/HoverOverlay.mjs +2 -2
- package/es/hover-overlay/index.mjs +2 -2
- package/es/icon/Icon.mjs +3 -3
- package/es/icon/index.mjs +1 -1
- package/es/image/Image.mjs +5 -5
- package/es/image/index.mjs +1 -1
- package/es/image-preview/ImagePreview.mjs +13 -14
- package/es/image-preview/index.mjs +2 -2
- package/es/image-preview/props.mjs +2 -2
- package/es/index-anchor/IndexAnchor.mjs +5 -5
- package/es/index-anchor/index.mjs +1 -1
- package/es/index-anchor/provide.mjs +1 -1
- package/es/index-bar/IndexBar.mjs +17 -13
- package/es/index-bar/index.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +12 -12
- package/es/input/index.mjs +1 -1
- package/es/input/props.mjs +1 -1
- package/es/lazy/index.mjs +1 -1
- package/es/link/Link.mjs +2 -2
- package/es/link/index.mjs +1 -1
- package/es/list/List.mjs +10 -10
- package/es/list/index.mjs +1 -1
- package/es/list/provide.mjs +1 -1
- package/es/loading/Loading.mjs +2 -2
- package/es/loading/index.mjs +1 -1
- package/es/loading-bar/LoadingBar.mjs +1 -2
- package/es/loading-bar/index.mjs +1 -1
- package/es/locale/index.mjs +5 -5
- package/es/locale-provider/LocaleProvider.mjs +11 -8
- package/es/locale-provider/index.mjs +1 -1
- package/es/locale-provider/provide.mjs +1 -1
- package/es/menu/Menu.mjs +2 -2
- package/es/menu/index.mjs +1 -1
- package/es/menu/usePopover.mjs +6 -6
- package/es/menu-option/MenuOption.mjs +9 -9
- package/es/menu-option/index.mjs +1 -1
- package/es/menu-option/provide.mjs +1 -1
- package/es/menu-select/MenuChildren.mjs +21 -21
- package/es/menu-select/MenuSelect.mjs +9 -9
- package/es/menu-select/index.mjs +1 -1
- package/es/option/Option.mjs +5 -5
- package/es/option/index.mjs +1 -1
- package/es/option/provide.mjs +1 -1
- package/es/overlay/Overlay.mjs +4 -4
- package/es/overlay/index.mjs +1 -1
- package/es/pagination/Pagination.mjs +26 -18
- package/es/pagination/index.mjs +1 -1
- package/es/paper/Paper.mjs +3 -3
- package/es/paper/index.mjs +1 -1
- package/es/picker/Picker.mjs +9 -9
- package/es/picker/index.mjs +2 -2
- package/es/picker/props.mjs +1 -1
- package/es/popup/Popup.mjs +6 -6
- package/es/popup/index.mjs +1 -1
- package/es/progress/Progress.mjs +4 -4
- package/es/progress/index.mjs +1 -1
- package/es/pull-refresh/PullRefresh.mjs +10 -12
- package/es/pull-refresh/index.mjs +1 -1
- package/es/radio/Radio.mjs +10 -9
- package/es/radio/index.mjs +1 -1
- package/es/radio-group/RadioGroup.mjs +7 -6
- package/es/radio-group/index.mjs +1 -1
- package/es/rate/Rate.mjs +8 -8
- package/es/rate/index.mjs +1 -1
- package/es/rate/props.mjs +1 -1
- package/es/result/Result.mjs +7 -7
- package/es/result/index.mjs +1 -1
- package/es/ripple/index.mjs +1 -1
- package/es/row/Row.mjs +4 -4
- package/es/row/index.mjs +1 -1
- package/es/select/Select.mjs +13 -13
- package/es/select/index.mjs +1 -1
- package/es/select/props.mjs +1 -1
- package/es/skeleton/Skeleton.mjs +3 -3
- package/es/skeleton/index.mjs +1 -1
- package/es/slider/Slider.mjs +9 -9
- package/es/slider/index.mjs +1 -1
- package/es/snackbar/Snackbar.mjs +1 -1
- package/es/snackbar/core.mjs +8 -8
- package/es/snackbar/index.mjs +9 -8
- package/es/snackbar/props.mjs +1 -1
- package/es/space/Space.mjs +2 -2
- package/es/space/index.mjs +1 -1
- package/es/step/Step.mjs +3 -3
- package/es/step/index.mjs +1 -1
- package/es/step/provide.mjs +1 -1
- package/es/steps/Steps.mjs +3 -3
- package/es/steps/index.mjs +1 -1
- package/es/sticky/Sticky.mjs +7 -7
- package/es/sticky/index.mjs +1 -1
- package/es/style-provider/StyleProvider.mjs +2 -2
- package/es/style-provider/index.mjs +2 -2
- package/es/swipe/Swipe.mjs +10 -10
- package/es/swipe/index.mjs +1 -1
- package/es/swipe-item/SwipeItem.mjs +1 -1
- package/es/swipe-item/index.mjs +1 -1
- package/es/swipe-item/provide.mjs +1 -1
- package/es/switch/Switch.mjs +6 -6
- package/es/switch/index.mjs +1 -1
- package/es/tab/Tab.mjs +4 -4
- package/es/tab/index.mjs +1 -1
- package/es/tab/provide.mjs +1 -1
- package/es/tab-item/TabItem.mjs +3 -3
- package/es/tab-item/index.mjs +1 -1
- package/es/tab-item/provide.mjs +1 -1
- package/es/table/Table.mjs +1 -1
- package/es/table/index.mjs +1 -1
- package/es/tabs/Tabs.mjs +9 -7
- package/es/tabs/index.mjs +1 -1
- package/es/tabs/props.mjs +1 -1
- package/es/tabs-items/TabsItems.mjs +4 -4
- package/es/tabs-items/index.mjs +1 -1
- package/es/themes/dark/index.mjs +33 -33
- package/es/themes/index.mjs +1 -1
- package/es/themes/md3-dark/index.mjs +45 -45
- package/es/themes/md3-light/index.mjs +39 -39
- package/es/time-picker/TimePicker.mjs +48 -24
- package/es/time-picker/clock.mjs +41 -19
- package/es/time-picker/index.mjs +1 -1
- package/es/time-picker/utils.mjs +13 -5
- package/es/tooltip/Tooltip.mjs +2 -2
- package/es/tooltip/index.mjs +1 -1
- package/es/uploader/Uploader.mjs +14 -14
- package/es/uploader/index.mjs +1 -1
- package/es/utils/components.mjs +5 -5
- package/es/utils/elements.mjs +9 -9
- package/es/utils/test.mjs +1 -1
- package/es/varlet.esm.js +20946 -20941
- package/es/watermark/Watermark.mjs +15 -17
- package/es/watermark/index.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 +25205 -25003
- package/package.json +34 -34
- package/types/actionSheet.d.ts +2 -2
- package/types/alert.d.ts +1 -1
- package/types/appBar.d.ts +1 -1
- package/types/autoComplete.d.ts +4 -4
- package/types/avatar.d.ts +1 -1
- package/types/avatarGroup.d.ts +1 -1
- package/types/backTop.d.ts +1 -1
- package/types/badge.d.ts +1 -1
- package/types/bottomNavigation.d.ts +2 -2
- package/types/bottomNavigationItem.d.ts +2 -2
- package/types/breadcrumb.d.ts +1 -1
- package/types/breadcrumbs.d.ts +1 -1
- package/types/button.d.ts +5 -5
- package/types/buttonGroup.d.ts +2 -2
- package/types/card.d.ts +1 -1
- package/types/cell.d.ts +1 -1
- package/types/checkbox.d.ts +1 -1
- package/types/checkboxGroup.d.ts +2 -2
- package/types/chip.d.ts +3 -3
- package/types/code.d.ts +1 -1
- package/types/col.d.ts +1 -1
- package/types/collapse.d.ts +1 -1
- package/types/collapseItem.d.ts +1 -1
- package/types/collapseTransition.d.ts +1 -1
- package/types/countTo.d.ts +1 -1
- package/types/countdown.d.ts +1 -1
- package/types/counter.d.ts +1 -1
- package/types/datePicker.d.ts +1 -1
- package/types/dialog.d.ts +1 -1
- package/types/divider.d.ts +1 -1
- package/types/drag.d.ts +1 -1
- package/types/ellipsis.d.ts +1 -1
- package/types/fab.d.ts +2 -2
- package/types/floatingPanel.d.ts +2 -2
- package/types/form.d.ts +1 -1
- package/types/formDetails.d.ts +1 -1
- package/types/highlighterProvider.d.ts +1 -1
- package/types/hover.d.ts +1 -1
- package/types/hoverOverlay.d.ts +1 -1
- package/types/icon.d.ts +1 -1
- package/types/image.d.ts +2 -2
- package/types/imagePreview.d.ts +2 -2
- package/types/indexAnchor.d.ts +1 -1
- package/types/indexBar.d.ts +1 -1
- package/types/input.d.ts +4 -4
- package/types/link.d.ts +1 -1
- package/types/list.d.ts +1 -1
- package/types/loading.d.ts +1 -1
- package/types/localeProvider.d.ts +2 -2
- package/types/menu.d.ts +2 -2
- package/types/menuOption.d.ts +1 -1
- package/types/menuSelect.d.ts +2 -2
- package/types/option.d.ts +1 -1
- package/types/overlay.d.ts +2 -2
- package/types/pagination.d.ts +1 -1
- package/types/paper.d.ts +1 -1
- package/types/picker.d.ts +3 -3
- package/types/popup.d.ts +2 -2
- package/types/progress.d.ts +1 -1
- package/types/pullRefresh.d.ts +1 -1
- package/types/radio.d.ts +1 -1
- package/types/radioGroup.d.ts +3 -3
- package/types/rate.d.ts +1 -1
- package/types/result.d.ts +1 -1
- package/types/row.d.ts +1 -1
- package/types/select.d.ts +3 -3
- package/types/skeleton.d.ts +1 -1
- package/types/slider.d.ts +4 -4
- package/types/snackbar.d.ts +2 -2
- package/types/space.d.ts +1 -1
- package/types/step.d.ts +1 -1
- package/types/steps.d.ts +3 -3
- package/types/sticky.d.ts +1 -1
- package/types/styleProvider.d.ts +2 -2
- package/types/swipe.d.ts +1 -1
- package/types/swipeItem.d.ts +1 -1
- package/types/switch.d.ts +1 -1
- package/types/tab.d.ts +1 -1
- package/types/tabItem.d.ts +1 -1
- package/types/table.d.ts +1 -1
- package/types/tabs.d.ts +3 -3
- package/types/tabsItems.d.ts +2 -2
- package/types/timePicker.d.ts +1 -1
- package/types/tooltip.d.ts +2 -2
- package/types/uploader.d.ts +2 -2
- package/types/watermark.d.ts +1 -1
- package/umd/varlet.js +7 -7
package/es/rate/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Rate from "./Rate.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as rateProps } from "./props.mjs";
|
|
3
|
+
import Rate from "./Rate.mjs";
|
|
4
4
|
withInstall(Rate);
|
|
5
5
|
withPropsDefaultsSetter(Rate, rateProps);
|
|
6
6
|
const _RateComponent = Rate;
|
package/es/rate/props.mjs
CHANGED
package/es/result/Result.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import Info from "./Info.mjs";
|
|
2
|
-
import Error from "./Error.mjs";
|
|
3
|
-
import Warning from "./Warning.mjs";
|
|
4
|
-
import Success from "./Success.mjs";
|
|
5
|
-
import Question from "./Question.mjs";
|
|
6
|
-
import Empty from "./Empty.mjs";
|
|
7
1
|
import { computed, defineComponent } from "vue";
|
|
8
|
-
import { props } from "./props.mjs";
|
|
9
2
|
import { createNamespace } from "../utils/components.mjs";
|
|
10
3
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
4
|
+
import Empty from "./Empty.mjs";
|
|
5
|
+
import Error from "./Error.mjs";
|
|
6
|
+
import Info from "./Info.mjs";
|
|
7
|
+
import { props } from "./props.mjs";
|
|
8
|
+
import Question from "./Question.mjs";
|
|
9
|
+
import Success from "./Success.mjs";
|
|
10
|
+
import Warning from "./Warning.mjs";
|
|
11
11
|
const { name, n, classes } = createNamespace("result");
|
|
12
12
|
import { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString } from "vue";
|
|
13
13
|
function __render__(_ctx, _cache) {
|
package/es/result/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Result from "./Result.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as resultProps } from "./props.mjs";
|
|
3
|
+
import Result from "./Result.mjs";
|
|
4
4
|
withInstall(Result);
|
|
5
5
|
withPropsDefaultsSetter(Result, resultProps);
|
|
6
6
|
const _ResultComponent = Result;
|
package/es/ripple/index.mjs
CHANGED
|
@@ -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 { getRect, getStyle, supportTouch } from "@varlet/shared";
|
|
20
21
|
import context from "../context/index.mjs";
|
|
21
|
-
import { supportTouch, getStyle, getRect } from "@varlet/shared";
|
|
22
22
|
import { createNamespace } from "../utils/components.mjs";
|
|
23
23
|
|
|
24
24
|
|
package/es/row/Row.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed, defineComponent } from "vue";
|
|
2
|
+
import { call, isArray } from "@varlet/shared";
|
|
3
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
4
|
+
import { padStartFlex, toPxNum } from "../utils/elements.mjs";
|
|
2
5
|
import { props } from "./props.mjs";
|
|
3
|
-
import { isArray, call } from "@varlet/shared";
|
|
4
6
|
import { useCols } from "./provide.mjs";
|
|
5
|
-
import { toPxNum, padStartFlex } from "../utils/elements.mjs";
|
|
6
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
7
7
|
const { name, n, classes } = createNamespace("row");
|
|
8
8
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
9
9
|
function __render__(_ctx, _cache) {
|
package/es/row/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Row from "./Row.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as rowProps } from "./props.mjs";
|
|
3
|
+
import Row from "./Row.mjs";
|
|
4
4
|
withInstall(Row);
|
|
5
5
|
withPropsDefaultsSetter(Row, rowProps);
|
|
6
6
|
const _RowComponent = Row;
|
package/es/select/Select.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { computed, defineComponent, nextTick, ref, watch } from "vue";
|
|
2
|
+
import { assert, call, doubleRaf, isArray, isEmpty, isFunction, preventDefault } from "@varlet/shared";
|
|
3
|
+
import { useEventListener } from "@varlet/use";
|
|
3
4
|
import VarChip from "../chip/index.mjs";
|
|
4
|
-
import VarOption from "../option/index.mjs";
|
|
5
5
|
import VarFieldDecorator from "../field-decorator/index.mjs";
|
|
6
6
|
import VarFormDetails from "../form-details/index.mjs";
|
|
7
|
-
import { computed, defineComponent, ref, watch, nextTick } from "vue";
|
|
8
|
-
import { isArray, isEmpty, call, preventDefault, doubleRaf, isFunction, assert } from "@varlet/shared";
|
|
9
|
-
import { props } from "./props.mjs";
|
|
10
|
-
import { useValidation, createNamespace, MaybeVNode } from "../utils/components.mjs";
|
|
11
|
-
import { useOptions } from "./provide.mjs";
|
|
12
7
|
import { useForm } from "../form/provide.mjs";
|
|
8
|
+
import VarIcon from "../icon/index.mjs";
|
|
9
|
+
import VarMenu from "../menu/index.mjs";
|
|
10
|
+
import VarOption from "../option/index.mjs";
|
|
11
|
+
import { createNamespace, MaybeVNode, useValidation } from "../utils/components.mjs";
|
|
13
12
|
import { focusChildElementByKey, toPxNum } from "../utils/elements.mjs";
|
|
13
|
+
import { props } from "./props.mjs";
|
|
14
|
+
import { useOptions } from "./provide.mjs";
|
|
14
15
|
import { useSelectController } from "./useSelectController.mjs";
|
|
15
|
-
import { useEventListener } from "@varlet/use";
|
|
16
16
|
const { name, n, classes } = createNamespace("select");
|
|
17
17
|
import { renderSlot as _renderSlot, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, normalizeClass as _normalizeClass, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, createSlots as _createSlots } from "vue";
|
|
18
18
|
const _hoisted_1 = ["tabindex"];
|
|
@@ -32,6 +32,8 @@ function __render__(_ctx, _cache) {
|
|
|
32
32
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.handleRootBlur && _ctx.handleRootBlur(...args))
|
|
33
33
|
}, [
|
|
34
34
|
_createVNode(_component_var_menu, {
|
|
35
|
+
show: _ctx.showMenu,
|
|
36
|
+
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => _ctx.showMenu = $event),
|
|
35
37
|
"var-select-cover": "",
|
|
36
38
|
"same-width": "",
|
|
37
39
|
"close-on-click-reference": "",
|
|
@@ -42,8 +44,6 @@ function __render__(_ctx, _cache) {
|
|
|
42
44
|
disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled,
|
|
43
45
|
placement: _ctx.placement,
|
|
44
46
|
"default-style": false,
|
|
45
|
-
show: _ctx.showMenu,
|
|
46
|
-
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => _ctx.showMenu = $event),
|
|
47
47
|
onClickOutside: _ctx.handleClickOutside
|
|
48
48
|
}, {
|
|
49
49
|
menu: _withCtx(() => [
|
|
@@ -139,12 +139,12 @@ function __render__(_ctx, _cache) {
|
|
|
139
139
|
null,
|
|
140
140
|
_renderList(_ctx.labels, (l) => {
|
|
141
141
|
return _openBlock(), _createBlock(_component_var_chip, {
|
|
142
|
+
key: l,
|
|
142
143
|
class: _normalizeClass(_ctx.n("chip")),
|
|
143
144
|
"var-select-cover": "",
|
|
144
145
|
closeable: "",
|
|
145
146
|
size: "small",
|
|
146
147
|
type: _ctx.errorMessage ? "danger" : void 0,
|
|
147
|
-
key: l,
|
|
148
148
|
onClick: _cache[0] || (_cache[0] = _withModifiers(() => {
|
|
149
149
|
}, ["stop"])),
|
|
150
150
|
onClose: () => _ctx.handleClose(l)
|
|
@@ -253,7 +253,7 @@ function __render__(_ctx, _cache) {
|
|
|
253
253
|
]),
|
|
254
254
|
_: 3
|
|
255
255
|
/* FORWARDED */
|
|
256
|
-
}, 8, ["class", "popover-class", "offset-y", "disabled", "placement", "
|
|
256
|
+
}, 8, ["show", "class", "popover-class", "offset-y", "disabled", "placement", "onClickOutside"]),
|
|
257
257
|
_createVNode(_component_var_form_details, {
|
|
258
258
|
"error-message": _ctx.errorMessage,
|
|
259
259
|
onClick: _cache[2] || (_cache[2] = _withModifiers(() => {
|
package/es/select/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Select from "./Select.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as selectProps } from "./props.mjs";
|
|
3
|
+
import Select from "./Select.mjs";
|
|
4
4
|
withInstall(Select);
|
|
5
5
|
withPropsDefaultsSetter(Select, selectProps);
|
|
6
6
|
const _SelectComponent = Select;
|
package/es/select/props.mjs
CHANGED
|
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
18
17
|
import { fieldDecoratorProps } from "../field-decorator/index.mjs";
|
|
18
|
+
import { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
19
19
|
const props = __spreadValues({
|
|
20
20
|
modelValue: {
|
|
21
21
|
type: [String, Number, Boolean, Array],
|
package/es/skeleton/Skeleton.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent } from "vue";
|
|
2
|
-
import { props } from "./props.mjs";
|
|
3
|
-
import { toSizeUnit } from "../utils/elements.mjs";
|
|
4
2
|
import { toNumber } from "@varlet/shared";
|
|
5
3
|
import { createNamespace } from "../utils/components.mjs";
|
|
4
|
+
import { toSizeUnit } from "../utils/elements.mjs";
|
|
5
|
+
import { props } from "./props.mjs";
|
|
6
6
|
const { name, n, classes } = createNamespace("skeleton");
|
|
7
7
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, renderList as _renderList, Fragment as _Fragment } from "vue";
|
|
8
8
|
function __render__(_ctx, _cache) {
|
|
@@ -118,8 +118,8 @@ function __render__(_ctx, _cache) {
|
|
|
118
118
|
return _openBlock(), _createElementBlock(
|
|
119
119
|
"div",
|
|
120
120
|
{
|
|
121
|
-
class: _normalizeClass(_ctx.n("row")),
|
|
122
121
|
key: r,
|
|
122
|
+
class: _normalizeClass(_ctx.n("row")),
|
|
123
123
|
style: _normalizeStyle({ width: _ctx.toSizeUnit(_ctx.rowsWidth[index]) })
|
|
124
124
|
},
|
|
125
125
|
[
|
package/es/skeleton/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Skeleton from "./Skeleton.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as skeletonProps } from "./props.mjs";
|
|
3
|
+
import Skeleton from "./Skeleton.mjs";
|
|
4
4
|
withInstall(Skeleton);
|
|
5
5
|
withPropsDefaultsSetter(Skeleton, skeletonProps);
|
|
6
6
|
const _SkeletonComponent = Skeleton;
|
package/es/slider/Slider.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { computed, defineComponent, nextTick, onBeforeUnmount, reactive, ref, watch } from "vue";
|
|
2
|
+
import { call, clamp, error, getRect, hasOwn, isArray, isNumber, preventDefault, toNumber, warn } from "@varlet/shared";
|
|
3
|
+
import { onSmartMounted, onWindowResize, useEventListener } from "@varlet/use";
|
|
1
4
|
import VarFormDetails from "../form-details/index.mjs";
|
|
2
|
-
import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
|
|
3
|
-
import Hover from "../hover/index.mjs";
|
|
4
|
-
import { defineComponent, ref, onBeforeUnmount, computed, reactive, nextTick, watch } from "vue";
|
|
5
|
-
import { useValidation, createNamespace } from "../utils/components.mjs";
|
|
6
5
|
import { useForm } from "../form/provide.mjs";
|
|
6
|
+
import Hover from "../hover/index.mjs";
|
|
7
|
+
import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
|
|
8
|
+
import { createNamespace, useValidation } from "../utils/components.mjs";
|
|
7
9
|
import { getLeft, toSizeUnit } from "../utils/elements.mjs";
|
|
8
|
-
import { isArray, isNumber, toNumber, getRect, preventDefault, call, hasOwn, clamp, error, warn } from "@varlet/shared";
|
|
9
10
|
import { props, Thumbs } from "./props.mjs";
|
|
10
|
-
import { onSmartMounted, onWindowResize, useEventListener } from "@varlet/use";
|
|
11
11
|
const { name, n, classes } = createNamespace("slider");
|
|
12
12
|
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, resolveDirective as _resolveDirective, withDirectives as _withDirectives, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers } from "vue";
|
|
13
13
|
const _hoisted_1 = ["tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-valuetext", "onTouchstart", "onFocusin", "onFocusout"];
|
|
@@ -24,8 +24,8 @@ function __render__(_ctx, _cache) {
|
|
|
24
24
|
_createElementVNode(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(`${_ctx.direction}-block`), [_ctx.isDisabled, _ctx.n("--disabled")], [_ctx.errorMessage, _ctx.n(`${_ctx.direction}--error`)])),
|
|
28
27
|
ref: "sliderEl",
|
|
28
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(`${_ctx.direction}-block`), [_ctx.isDisabled, _ctx.n("--disabled")], [_ctx.errorMessage, _ctx.n(`${_ctx.direction}--error`)])),
|
|
29
29
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
30
30
|
},
|
|
31
31
|
[
|
|
@@ -68,8 +68,8 @@ function __render__(_ctx, _cache) {
|
|
|
68
68
|
null,
|
|
69
69
|
_renderList(_ctx.thumbList, (item) => {
|
|
70
70
|
return _openBlock(), _createElementBlock("div", {
|
|
71
|
-
class: _normalizeClass(_ctx.n(`${_ctx.direction}-thumb`)),
|
|
72
71
|
key: item.enumValue,
|
|
72
|
+
class: _normalizeClass(_ctx.n(`${_ctx.direction}-thumb`)),
|
|
73
73
|
style: _normalizeStyle(_ctx.thumbStyle(item)),
|
|
74
74
|
tabindex: _ctx.isDisabled ? void 0 : "0",
|
|
75
75
|
role: "slider",
|
|
@@ -292,7 +292,7 @@ const __sfc__ = defineComponent({
|
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
function validateWithTrigger() {
|
|
295
|
-
|
|
295
|
+
nextTick(() => vt(["onChange"], "onChange", props2.rules, props2.modelValue));
|
|
296
296
|
}
|
|
297
297
|
function getOffset(e) {
|
|
298
298
|
const currentTarget = e.currentTarget;
|
package/es/slider/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Slider from "./Slider.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as sliderProps } from "./props.mjs";
|
|
3
|
+
import Slider from "./Slider.mjs";
|
|
4
4
|
withInstall(Slider);
|
|
5
5
|
withPropsDefaultsSetter(Slider, sliderProps);
|
|
6
6
|
const _SliderComponent = Slider;
|
package/es/snackbar/Snackbar.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import VarSnackbarCore from "./core.mjs";
|
|
2
1
|
import { defineComponent } from "vue";
|
|
3
2
|
import { createNamespace, useTeleport } from "../utils/components.mjs";
|
|
3
|
+
import VarSnackbarCore from "./core.mjs";
|
|
4
4
|
import { props } from "./props.mjs";
|
|
5
5
|
const { name, n } = createNamespace("snackbar");
|
|
6
6
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, mergeProps as _mergeProps, withCtx as _withCtx, createSlots as _createSlots, createVNode as _createVNode, Transition as _Transition, Teleport as _Teleport, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
package/es/snackbar/core.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { useZIndex } from "../context/zIndex.mjs";
|
|
5
|
-
import { props } from "./props.mjs";
|
|
1
|
+
import { computed, defineComponent, ref, watch } from "vue";
|
|
2
|
+
import { call } from "@varlet/shared";
|
|
3
|
+
import { onSmartMounted } from "@varlet/use";
|
|
6
4
|
import { useLock } from "../context/lock.mjs";
|
|
7
|
-
import {
|
|
5
|
+
import { useZIndex } from "../context/zIndex.mjs";
|
|
6
|
+
import VarIcon from "../icon/index.mjs";
|
|
7
|
+
import VarLoading from "../loading/index.mjs";
|
|
8
8
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { SNACKBAR_TYPE } from "./index.mjs";
|
|
10
|
+
import { props } from "./props.mjs";
|
|
11
11
|
const { n, classes } = createNamespace("snackbar");
|
|
12
12
|
const ICON_TYPE_DICT = {
|
|
13
13
|
success: "checkbox-marked-circle",
|
package/es/snackbar/index.mjs
CHANGED
|
@@ -14,14 +14,13 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
18
|
-
import
|
|
19
|
-
import VarSnackbar from "./Snackbar.mjs";
|
|
17
|
+
import { reactive, TransitionGroup, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
18
|
+
import { call, isFunction, isPlainObject, isString, toNumber } from "@varlet/shared";
|
|
20
19
|
import context from "../context/index.mjs";
|
|
21
|
-
import { reactive, TransitionGroup } from "vue";
|
|
22
20
|
import { mountInstance, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
23
|
-
import
|
|
21
|
+
import VarSnackbarCore from "./core.mjs";
|
|
24
22
|
import { props as snackbarProps } from "./props.mjs";
|
|
23
|
+
import VarSnackbar from "./Snackbar.mjs";
|
|
25
24
|
const SNACKBAR_TYPE = ["loading", "success", "warning", "info", "error"];
|
|
26
25
|
let sid = 0;
|
|
27
26
|
let isMount = false;
|
|
@@ -208,9 +207,11 @@ function updateUniqOption(reactiveSnackOptions, _update) {
|
|
|
208
207
|
firstOption._update = _update;
|
|
209
208
|
}
|
|
210
209
|
function getTop(position = "top") {
|
|
211
|
-
if (position === "bottom")
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
if (position === "bottom") {
|
|
211
|
+
return {
|
|
212
|
+
top: "85%"
|
|
213
|
+
};
|
|
214
|
+
}
|
|
214
215
|
return {
|
|
215
216
|
top: position === "top" ? "5%" : "45%"
|
|
216
217
|
};
|
package/es/snackbar/props.mjs
CHANGED
|
@@ -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 { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
21
20
|
import { loadingProps } from "../loading/index.mjs";
|
|
21
|
+
import { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
22
22
|
const props = {
|
|
23
23
|
type: String,
|
|
24
24
|
position: {
|
package/es/space/Space.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, createVNode as _createVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { isArray, call } from "@varlet/shared";
|
|
2
|
+
import { call, isArray } from "@varlet/shared";
|
|
4
3
|
import { createNamespace, flatFragment } from "../utils/components.mjs";
|
|
5
4
|
import { padStartFlex, toSizeUnit } from "../utils/elements.mjs";
|
|
6
5
|
import { computeMargin } from "./margin.mjs";
|
|
6
|
+
import { props } from "./props.mjs";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
const isInternalSize = (size) => ["mini", "small", "normal", "large"].includes(size);
|
package/es/space/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Space from "./Space.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as spaceProps } from "./props.mjs";
|
|
3
|
+
import Space from "./Space.mjs";
|
|
4
4
|
withInstall(Space);
|
|
5
5
|
withPropsDefaultsSetter(Space, spaceProps);
|
|
6
6
|
const _SpaceComponent = Space;
|
package/es/step/Step.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import VarIcon from "../icon/index.mjs";
|
|
2
1
|
import { computed, defineComponent } from "vue";
|
|
3
|
-
import { props } from "./props.mjs";
|
|
4
|
-
import { useSteps } from "./provide.mjs";
|
|
5
2
|
import { toNumber } from "@varlet/shared";
|
|
3
|
+
import VarIcon from "../icon/index.mjs";
|
|
6
4
|
import { createNamespace } from "../utils/components.mjs";
|
|
5
|
+
import { props } from "./props.mjs";
|
|
6
|
+
import { useSteps } from "./provide.mjs";
|
|
7
7
|
const { name, n, classes } = createNamespace("step");
|
|
8
8
|
import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderSlot as _renderSlot } from "vue";
|
|
9
9
|
const _hoisted_1 = { key: 3 };
|
package/es/step/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Step from "./Step.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as stepProps } from "./props.mjs";
|
|
3
|
+
import Step from "./Step.mjs";
|
|
4
4
|
withInstall(Step);
|
|
5
5
|
withPropsDefaultsSetter(Step, stepProps);
|
|
6
6
|
const _StepComponent = Step;
|
package/es/step/provide.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useParent } from "@varlet/use";
|
|
2
1
|
import { assert } from "@varlet/shared";
|
|
2
|
+
import { useParent } from "@varlet/use";
|
|
3
3
|
import { STEPS_BIND_STEP_KEY } from "../steps/provide.mjs";
|
|
4
4
|
function useSteps() {
|
|
5
5
|
const { parentProvider, index, bindParent } = useParent(STEPS_BIND_STEP_KEY);
|
package/es/steps/Steps.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, defineComponent } from "vue";
|
|
2
|
-
import { useStep } from "./provide.mjs";
|
|
3
|
-
import { props } from "./props.mjs";
|
|
4
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
5
2
|
import { call } from "@varlet/shared";
|
|
3
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
4
|
+
import { props } from "./props.mjs";
|
|
5
|
+
import { useStep } from "./provide.mjs";
|
|
6
6
|
const { name, n } = createNamespace("steps");
|
|
7
7
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
8
8
|
function __render__(_ctx, _cache) {
|
package/es/steps/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Steps from "./Steps.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as stepsProps } from "./props.mjs";
|
|
3
|
+
import Steps from "./Steps.mjs";
|
|
4
4
|
withInstall(Steps);
|
|
5
5
|
withPropsDefaultsSetter(Steps, stepsProps);
|
|
6
6
|
const _StepsComponent = Steps;
|
package/es/sticky/Sticky.mjs
CHANGED
|
@@ -18,20 +18,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import { defineComponent, ref,
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { toNumber, raf, doubleRaf, getRect, call } from "@varlet/shared";
|
|
21
|
+
import { computed, defineComponent, ref, watch } from "vue";
|
|
22
|
+
import { call, doubleRaf, getRect, raf, toNumber } from "@varlet/shared";
|
|
23
|
+
import { onSmartMounted, onSmartUnmounted, onWindowResize, useEventListener } from "@varlet/use";
|
|
25
24
|
import { createNamespace } from "../utils/components.mjs";
|
|
26
|
-
import {
|
|
25
|
+
import { getParentScroller, toPxNum } from "../utils/elements.mjs";
|
|
26
|
+
import { props } from "./props.mjs";
|
|
27
27
|
const { name, n, classes } = createNamespace("sticky");
|
|
28
28
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
29
29
|
function __render__(_ctx, _cache) {
|
|
30
30
|
return _openBlock(), _createElementBlock(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.enableCSSMode, _ctx.n("--css-mode")])),
|
|
34
33
|
ref: "stickyEl",
|
|
34
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.enableCSSMode, _ctx.n("--css-mode")])),
|
|
35
35
|
style: _normalizeStyle({
|
|
36
36
|
zIndex: _ctx.toNumber(_ctx.zIndex),
|
|
37
37
|
top: _ctx.enableCSSMode ? `${_ctx.offsetTop}px` : void 0,
|
|
@@ -43,8 +43,8 @@ function __render__(_ctx, _cache) {
|
|
|
43
43
|
_createElementVNode(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
|
-
class: _normalizeClass(_ctx.n("wrapper")),
|
|
47
46
|
ref: "wrapperEl",
|
|
47
|
+
class: _normalizeClass(_ctx.n("wrapper")),
|
|
48
48
|
style: _normalizeStyle({
|
|
49
49
|
zIndex: _ctx.toNumber(_ctx.zIndex),
|
|
50
50
|
position: _ctx.enableFixedMode ? "fixed" : void 0,
|
package/es/sticky/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Sticky from "./Sticky.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as stickyProps } from "./props.mjs";
|
|
3
|
+
import Sticky from "./Sticky.mjs";
|
|
4
4
|
withInstall(Sticky);
|
|
5
5
|
withPropsDefaultsSetter(Sticky, stickyProps);
|
|
6
6
|
const _StickyComponent = Sticky;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, h } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { call } from "@varlet/shared";
|
|
3
3
|
import { createNamespace } from "../utils/components.mjs";
|
|
4
|
+
import { formatStyleVars } from "../utils/elements.mjs";
|
|
4
5
|
import { props } from "./props.mjs";
|
|
5
|
-
import { call } from "@varlet/shared";
|
|
6
6
|
const { name, n } = createNamespace("style-provider");
|
|
7
7
|
const __sfc__ = defineComponent({
|
|
8
8
|
name,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import VarStyleProvider from "./StyleProvider.mjs";
|
|
2
|
-
import { formatStyleVars } from "../utils/elements.mjs";
|
|
3
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import { formatStyleVars } from "../utils/elements.mjs";
|
|
4
3
|
import { props as styleProviderProps } from "./props.mjs";
|
|
4
|
+
import VarStyleProvider from "./StyleProvider.mjs";
|
|
5
5
|
const styleId = "varlet-style-vars";
|
|
6
6
|
function removeStyle() {
|
|
7
7
|
const style = document.head.querySelector(`#${styleId}`);
|
package/es/swipe/Swipe.mjs
CHANGED
|
@@ -18,17 +18,17 @@ 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
|
+
import { call, clamp, doubleRaf, isNumber, preventDefault, toNumber } from "@varlet/shared";
|
|
23
|
+
import { onSmartUnmounted, onWindowResize, useEventListener, useTouch } from "@varlet/use";
|
|
21
24
|
import VarButton from "../button/index.mjs";
|
|
22
|
-
import VarIcon from "../icon/index.mjs";
|
|
23
25
|
import Hover from "../hover/index.mjs";
|
|
24
|
-
import
|
|
25
|
-
import { useSwipeItems, useSwipeResizeListeners } from "./provide.mjs";
|
|
26
|
-
import { props } from "./props.mjs";
|
|
27
|
-
import { clamp, isNumber, toNumber, doubleRaf, preventDefault, call } from "@varlet/shared";
|
|
28
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
29
|
-
import { onSmartUnmounted, onWindowResize, useEventListener, useTouch } from "@varlet/use";
|
|
26
|
+
import VarIcon from "../icon/index.mjs";
|
|
30
27
|
import { usePopup } from "../popup/provide.mjs";
|
|
28
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
31
29
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
30
|
+
import { props } from "./props.mjs";
|
|
31
|
+
import { useSwipeItems, useSwipeResizeListeners } from "./provide.mjs";
|
|
32
32
|
const SWIPE_DELAY = 250;
|
|
33
33
|
const SWIPE_OFFSET = 20;
|
|
34
34
|
const { name, n, classes } = createNamespace("swipe");
|
|
@@ -41,8 +41,8 @@ function __render__(_ctx, _cache) {
|
|
|
41
41
|
return _withDirectives((_openBlock(), _createElementBlock(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
ref: "swipeEl",
|
|
45
|
+
class: _normalizeClass(_ctx.n())
|
|
46
46
|
},
|
|
47
47
|
[
|
|
48
48
|
_createElementVNode(
|
|
@@ -173,11 +173,11 @@ function __render__(_ctx, _cache) {
|
|
|
173
173
|
null,
|
|
174
174
|
_renderList(_ctx.length, (l, idx) => {
|
|
175
175
|
return _openBlock(), _createElementBlock("div", {
|
|
176
|
+
key: l,
|
|
176
177
|
class: _normalizeClass(
|
|
177
178
|
_ctx.classes(_ctx.n("indicator"), [_ctx.index === idx, _ctx.n("--indicator-active")], [_ctx.vertical, _ctx.n("--indicator-vertical")])
|
|
178
179
|
),
|
|
179
180
|
style: _normalizeStyle({ background: _ctx.indicatorColor }),
|
|
180
|
-
key: l,
|
|
181
181
|
onClick: ($event) => _ctx.to(idx)
|
|
182
182
|
}, null, 14, _hoisted_1);
|
|
183
183
|
}),
|
package/es/swipe/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Swipe from "./Swipe.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as swipeProps } from "./props.mjs";
|
|
3
|
+
import Swipe from "./Swipe.mjs";
|
|
4
4
|
withInstall(Swipe);
|
|
5
5
|
withPropsDefaultsSetter(Swipe, swipeProps);
|
|
6
6
|
const _SwipeComponent = Swipe;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, defineComponent, ref } from "vue";
|
|
2
|
-
import { useSwipe } from "./provide.mjs";
|
|
3
2
|
import { createNamespace } from "../utils/components.mjs";
|
|
4
3
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
4
|
+
import { useSwipe } from "./provide.mjs";
|
|
5
5
|
const { name, n } = createNamespace("swipe-item");
|
|
6
6
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
7
7
|
const _hoisted_1 = ["aria-hidden"];
|
package/es/swipe-item/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useParent } from "@varlet/use";
|
|
2
1
|
import { assert } from "@varlet/shared";
|
|
2
|
+
import { useParent } from "@varlet/use";
|
|
3
3
|
import { SWIPE_BIND_SWIPE_ITEM_KEY } from "../swipe/provide.mjs";
|
|
4
4
|
function useSwipe() {
|
|
5
5
|
const { bindParent, index, parentProvider } = useParent(SWIPE_BIND_SWIPE_ITEM_KEY);
|
package/es/switch/Switch.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { computed, defineComponent, nextTick, ref } from "vue";
|
|
2
|
+
import { call, preventDefault } from "@varlet/shared";
|
|
3
|
+
import { useEventListener } from "@varlet/use";
|
|
1
4
|
import VarFormDetails from "../form-details/index.mjs";
|
|
2
|
-
import
|
|
5
|
+
import { useForm } from "../form/provide.mjs";
|
|
3
6
|
import Hover from "../hover/index.mjs";
|
|
4
7
|
import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
8
|
+
import Ripple from "../ripple/index.mjs";
|
|
9
|
+
import { createNamespace, formatElevation, useValidation } from "../utils/components.mjs";
|
|
7
10
|
import { multiplySizeUnit } from "../utils/elements.mjs";
|
|
8
|
-
import { useForm } from "../form/provide.mjs";
|
|
9
11
|
import { props } from "./props.mjs";
|
|
10
|
-
import { call, preventDefault } from "@varlet/shared";
|
|
11
|
-
import { useEventListener } from "@varlet/use";
|
|
12
12
|
const { name, n, classes } = createNamespace("switch");
|
|
13
13
|
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
|
|
14
14
|
const _hoisted_1 = ["aria-checked"];
|
package/es/switch/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Switch from "./Switch.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as switchProps } from "./props.mjs";
|
|
3
|
+
import Switch from "./Switch.mjs";
|
|
4
4
|
withInstall(Switch);
|
|
5
5
|
withPropsDefaultsSetter(Switch, switchProps);
|
|
6
6
|
const _SwitchComponent = Switch;
|
package/es/tab/Tab.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { computed, defineComponent, ref, watch } from "vue";
|
|
2
|
+
import { call } from "@varlet/shared";
|
|
1
3
|
import Ripple from "../ripple/index.mjs";
|
|
2
|
-
import { defineComponent, ref, computed, watch } from "vue";
|
|
3
|
-
import { props } from "./props.mjs";
|
|
4
4
|
import { createNamespace } from "../utils/components.mjs";
|
|
5
|
+
import { props } from "./props.mjs";
|
|
5
6
|
import { useTabs } from "./provide.mjs";
|
|
6
|
-
import { call } from "@varlet/shared";
|
|
7
7
|
const { name, n, classes } = createNamespace("tab");
|
|
8
8
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives } from "vue";
|
|
9
9
|
function __render__(_ctx, _cache) {
|
|
@@ -11,8 +11,8 @@ function __render__(_ctx, _cache) {
|
|
|
11
11
|
return _withDirectives((_openBlock(), _createElementBlock(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n("$--box"), _ctx.computeColorClass(), _ctx.n(`--${_ctx.itemDirection}`))),
|
|
15
14
|
ref: "tabEl",
|
|
15
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n("$--box"), _ctx.computeColorClass(), _ctx.n(`--${_ctx.itemDirection}`))),
|
|
16
16
|
style: _normalizeStyle({
|
|
17
17
|
color: _ctx.computeColorStyle()
|
|
18
18
|
}),
|