@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/tab/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Tab from "./Tab.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as tabProps } from "./props.mjs";
|
|
3
|
+
import Tab from "./Tab.mjs";
|
|
4
4
|
withInstall(Tab);
|
|
5
5
|
withPropsDefaultsSetter(Tab, tabProps);
|
|
6
6
|
const _TabComponent = Tab;
|
package/es/tab/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 { TABS_BIND_TAB_KEY } from "../tabs/provide.mjs";
|
|
4
4
|
function useTabs() {
|
|
5
5
|
const { parentProvider, bindParent, index } = useParent(TABS_BIND_TAB_KEY);
|
package/es/tab-item/TabItem.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { computed, defineComponent, ref } from "vue";
|
|
1
2
|
import VarSwipeItem from "../swipe-item/index.mjs";
|
|
2
|
-
import { defineComponent, ref, computed } from "vue";
|
|
3
|
-
import { useTabsItems, useLists } from "./provide.mjs";
|
|
4
|
-
import { props } from "./props.mjs";
|
|
5
3
|
import { createNamespace } from "../utils/components.mjs";
|
|
4
|
+
import { props } from "./props.mjs";
|
|
5
|
+
import { useLists, useTabsItems } from "./provide.mjs";
|
|
6
6
|
const { name, n, classes } = createNamespace("tab-item");
|
|
7
7
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
8
8
|
function __render__(_ctx, _cache) {
|
package/es/tab-item/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import TabItem from "./TabItem.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as tabItemProps } from "./props.mjs";
|
|
3
|
+
import TabItem from "./TabItem.mjs";
|
|
4
4
|
withInstall(TabItem);
|
|
5
5
|
withPropsDefaultsSetter(TabItem, tabItemProps);
|
|
6
6
|
const _TabItemComponent = TabItem;
|
package/es/tab-item/provide.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useChildren, useParent } from "@varlet/use";
|
|
2
1
|
import { assert } from "@varlet/shared";
|
|
2
|
+
import { useChildren, useParent } from "@varlet/use";
|
|
3
3
|
import { TABS_ITEMS_BIND_TAB_ITEM_KEY } from "../tabs-items/provide.mjs";
|
|
4
4
|
const TAB_ITEM_BIND_LIST_KEY = Symbol("TAB_ITEM_BIND_LIST_KEY");
|
|
5
5
|
function useTabsItems() {
|
package/es/table/Table.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from "vue";
|
|
2
|
-
import { toSizeUnit } from "../utils/elements.mjs";
|
|
3
2
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
3
|
+
import { toSizeUnit } from "../utils/elements.mjs";
|
|
4
4
|
import { props } from "./props.mjs";
|
|
5
5
|
const { name, n, classes } = createNamespace("table");
|
|
6
6
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue";
|
package/es/table/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Table from "./Table.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as tableProps } from "./props.mjs";
|
|
3
|
+
import Table from "./Table.mjs";
|
|
4
4
|
withInstall(Table);
|
|
5
5
|
withPropsDefaultsSetter(Table, tableProps);
|
|
6
6
|
const _TableComponent = Table;
|
package/es/tabs/Tabs.mjs
CHANGED
|
@@ -18,15 +18,15 @@ 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
|
+
import { call, clamp, doubleRaf, isNumber } from "@varlet/shared";
|
|
23
|
+
import { onWindowResize } from "@varlet/use";
|
|
21
24
|
import VarSticky from "../sticky/index.mjs";
|
|
22
|
-
import {
|
|
25
|
+
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
26
|
+
import { scrollTo, toSizeUnit } from "../utils/elements.mjs";
|
|
27
|
+
import { linear } from "../utils/shared.mjs";
|
|
23
28
|
import { props } from "./props.mjs";
|
|
24
29
|
import { useTabList } from "./provide.mjs";
|
|
25
|
-
import { clamp, isNumber, doubleRaf, call } from "@varlet/shared";
|
|
26
|
-
import { linear } from "../utils/shared.mjs";
|
|
27
|
-
import { toSizeUnit, scrollTo } from "../utils/elements.mjs";
|
|
28
|
-
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
29
|
-
import { onWindowResize } from "@varlet/use";
|
|
30
30
|
const { name, n, classes } = createNamespace("tabs");
|
|
31
31
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
32
32
|
function __render__(_ctx, _cache) {
|
|
@@ -174,7 +174,9 @@ const __sfc__ = defineComponent({
|
|
|
174
174
|
}
|
|
175
175
|
function moveIndicator({ element }) {
|
|
176
176
|
const el = element.value;
|
|
177
|
-
if (!el)
|
|
177
|
+
if (!el) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
178
180
|
if (props2.layoutDirection === "horizontal") {
|
|
179
181
|
indicatorWidth.value = `${el.offsetWidth}px`;
|
|
180
182
|
indicatorX.value = `${el.offsetLeft}px`;
|
package/es/tabs/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Tabs from "./Tabs.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as tabsProps } from "./props.mjs";
|
|
3
|
+
import Tabs from "./Tabs.mjs";
|
|
4
4
|
withInstall(Tabs);
|
|
5
5
|
withPropsDefaultsSetter(Tabs, tabsProps);
|
|
6
6
|
const _TabsComponent = Tabs;
|
package/es/tabs/props.mjs
CHANGED
|
@@ -18,19 +18,19 @@ 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
|
+
import { call, doubleRaf } from "@varlet/shared";
|
|
21
23
|
import VarSwipe from "../swipe/index.mjs";
|
|
22
|
-
import { defineComponent, watch, ref } from "vue";
|
|
23
|
-
import { useTabItem } from "./provide.mjs";
|
|
24
24
|
import { createNamespace } from "../utils/components.mjs";
|
|
25
25
|
import { props } from "./props.mjs";
|
|
26
|
-
import {
|
|
26
|
+
import { useTabItem } from "./provide.mjs";
|
|
27
27
|
const { name, n } = createNamespace("tabs-items");
|
|
28
28
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
29
29
|
function __render__(_ctx, _cache) {
|
|
30
30
|
const _component_var_swipe = _resolveComponent("var-swipe");
|
|
31
31
|
return _openBlock(), _createBlock(_component_var_swipe, {
|
|
32
|
-
class: _normalizeClass(_ctx.n()),
|
|
33
32
|
ref: "swipe",
|
|
33
|
+
class: _normalizeClass(_ctx.n()),
|
|
34
34
|
loop: _ctx.loop,
|
|
35
35
|
touchable: _ctx.canSwipe,
|
|
36
36
|
indicator: false,
|
package/es/tabs-items/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import TabsItems from "./TabsItems.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
2
|
import { props as tabsItemsProps } from "./props.mjs";
|
|
3
|
+
import TabsItems from "./TabsItems.mjs";
|
|
4
4
|
withInstall(TabsItems);
|
|
5
5
|
withPropsDefaultsSetter(TabsItems, tabsItemsProps);
|
|
6
6
|
const _TabsItemsComponent = TabsItems;
|
package/es/themes/dark/index.mjs
CHANGED
|
@@ -16,48 +16,28 @@ var __spreadValues = (a, b) => {
|
|
|
16
16
|
};
|
|
17
17
|
import actionSheet from "./actionSheet.mjs";
|
|
18
18
|
import alert from "./alert.mjs";
|
|
19
|
+
import appBar from "./appBar.mjs";
|
|
20
|
+
import avatar from "./avatar.mjs";
|
|
21
|
+
import avatarGroup from "./avatarGroup.mjs";
|
|
22
|
+
import backTop from "./backTop.mjs";
|
|
19
23
|
import badge from "./badge.mjs";
|
|
24
|
+
import bottomNavigation from "./bottomNavigation.mjs";
|
|
25
|
+
import bottomNavigationItem from "./bottomNavigationItem.mjs";
|
|
26
|
+
import breadcrumb from "./breadcrumb.mjs";
|
|
20
27
|
import button from "./button.mjs";
|
|
21
28
|
import card from "./card.mjs";
|
|
22
29
|
import cell from "./cell.mjs";
|
|
23
30
|
import checkbox from "./checkbox.mjs";
|
|
24
31
|
import chip from "./chip.mjs";
|
|
32
|
+
import code from "./code.mjs";
|
|
25
33
|
import collapse from "./collapse.mjs";
|
|
34
|
+
import countdown from "./countdown.mjs";
|
|
35
|
+
import counter from "./counter.mjs";
|
|
26
36
|
import datePicker from "./datePicker.mjs";
|
|
27
37
|
import dialog from "./dialog.mjs";
|
|
28
38
|
import divider from "./divider.mjs";
|
|
29
|
-
import fieldDecorator from "./fieldDecorator.mjs";
|
|
30
|
-
import pagination from "./pagination.mjs";
|
|
31
|
-
import picker from "./picker.mjs";
|
|
32
|
-
import popup from "./popup.mjs";
|
|
33
|
-
import pullRefresh from "./pullRefresh.mjs";
|
|
34
|
-
import radio from "./radio.mjs";
|
|
35
|
-
import result from "./result.mjs";
|
|
36
|
-
import skeleton from "./skeleton.mjs";
|
|
37
|
-
import step from "./step.mjs";
|
|
38
|
-
import switchThemes from "./switch.mjs";
|
|
39
|
-
import tab from "./tab.mjs";
|
|
40
|
-
import table from "./table.mjs";
|
|
41
|
-
import timePicker from "./timePicker.mjs";
|
|
42
|
-
import uploader from "./uploader.mjs";
|
|
43
|
-
import tabs from "./tabs.mjs";
|
|
44
|
-
import appBar from "./appBar.mjs";
|
|
45
|
-
import bottomNavigationItem from "./bottomNavigationItem.mjs";
|
|
46
|
-
import menu from "./menu.mjs";
|
|
47
|
-
import breadcrumb from "./breadcrumb.mjs";
|
|
48
|
-
import avatar from "./avatar.mjs";
|
|
49
|
-
import link from "./link.mjs";
|
|
50
|
-
import progress from "./progress.mjs";
|
|
51
|
-
import option from "./option.mjs";
|
|
52
|
-
import watermark from "./watermark.mjs";
|
|
53
|
-
import menuSelect from "./menuSelect.mjs";
|
|
54
|
-
import menuOption from "./menuOption.mjs";
|
|
55
|
-
import avatarGroup from "./avatarGroup.mjs";
|
|
56
|
-
import backTop from "./backTop.mjs";
|
|
57
|
-
import bottomNavigation from "./bottomNavigation.mjs";
|
|
58
|
-
import countdown from "./countdown.mjs";
|
|
59
|
-
import counter from "./counter.mjs";
|
|
60
39
|
import fab from "./fab.mjs";
|
|
40
|
+
import fieldDecorator from "./fieldDecorator.mjs";
|
|
61
41
|
import floatingPanel from "./floatingPanel.mjs";
|
|
62
42
|
import formDetails from "./formDetails.mjs";
|
|
63
43
|
import hoverOverlay from "./hoverOverlay.mjs";
|
|
@@ -65,20 +45,40 @@ import icon from "./icon.mjs";
|
|
|
65
45
|
import imagePreview from "./imagePreview.mjs";
|
|
66
46
|
import indexBar from "./indexBar.mjs";
|
|
67
47
|
import input from "./input.mjs";
|
|
48
|
+
import link from "./link.mjs";
|
|
68
49
|
import list from "./list.mjs";
|
|
69
50
|
import loading from "./loading.mjs";
|
|
70
51
|
import loadingBar from "./loadingBar.mjs";
|
|
52
|
+
import menu from "./menu.mjs";
|
|
53
|
+
import menuOption from "./menuOption.mjs";
|
|
54
|
+
import menuSelect from "./menuSelect.mjs";
|
|
55
|
+
import option from "./option.mjs";
|
|
71
56
|
import overlay from "./overlay.mjs";
|
|
57
|
+
import pagination from "./pagination.mjs";
|
|
72
58
|
import paper from "./paper.mjs";
|
|
59
|
+
import picker from "./picker.mjs";
|
|
60
|
+
import popup from "./popup.mjs";
|
|
61
|
+
import progress from "./progress.mjs";
|
|
62
|
+
import pullRefresh from "./pullRefresh.mjs";
|
|
63
|
+
import radio from "./radio.mjs";
|
|
73
64
|
import rate from "./rate.mjs";
|
|
65
|
+
import result from "./result.mjs";
|
|
74
66
|
import ripple from "./ripple.mjs";
|
|
67
|
+
import select from "./select.mjs";
|
|
68
|
+
import skeleton from "./skeleton.mjs";
|
|
75
69
|
import slider from "./slider.mjs";
|
|
76
70
|
import snackbar from "./snackbar.mjs";
|
|
77
71
|
import space from "./space.mjs";
|
|
72
|
+
import step from "./step.mjs";
|
|
78
73
|
import swipe from "./swipe.mjs";
|
|
74
|
+
import switchThemes from "./switch.mjs";
|
|
75
|
+
import tab from "./tab.mjs";
|
|
76
|
+
import table from "./table.mjs";
|
|
77
|
+
import tabs from "./tabs.mjs";
|
|
78
|
+
import timePicker from "./timePicker.mjs";
|
|
79
79
|
import tooltip from "./tooltip.mjs";
|
|
80
|
-
import
|
|
81
|
-
import
|
|
80
|
+
import uploader from "./uploader.mjs";
|
|
81
|
+
import watermark from "./watermark.mjs";
|
|
82
82
|
var stdin_default = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
83
83
|
"--color-scheme": "dark",
|
|
84
84
|
"--font-size-xs": "10px",
|
package/es/themes/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dark from "./dark/index.mjs";
|
|
2
|
-
import md3Light from "./md3-light/index.mjs";
|
|
3
2
|
import md3Dark from "./md3-dark/index.mjs";
|
|
3
|
+
import md3Light from "./md3-light/index.mjs";
|
|
4
4
|
import { toViewport } from "./toViewport.mjs";
|
|
5
5
|
const Themes = { dark, md3Light, md3Dark, toViewport };
|
|
6
6
|
const _ThemesComponent = null;
|
|
@@ -14,71 +14,71 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import
|
|
17
|
+
import actionSheet from "./actionSheet.mjs";
|
|
18
18
|
import alert from "./alert.mjs";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
19
|
+
import appBar from "./appBar.mjs";
|
|
20
|
+
import avatar from "./avatar.mjs";
|
|
21
|
+
import avatarGroup from "./avatarGroup.mjs";
|
|
22
|
+
import backTop from "./backTop.mjs";
|
|
23
|
+
import badge from "./badge.mjs";
|
|
24
|
+
import bottomNavigation from "./bottomNavigation.mjs";
|
|
25
|
+
import bottomNavigationItem from "./bottomNavigationItem.mjs";
|
|
24
26
|
import breadcrumb from "./breadcrumb.mjs";
|
|
25
|
-
import
|
|
27
|
+
import button from "./button.mjs";
|
|
28
|
+
import card from "./card.mjs";
|
|
26
29
|
import cell from "./cell.mjs";
|
|
27
|
-
import paper from "./paper.mjs";
|
|
28
|
-
import avatar from "./avatar.mjs";
|
|
29
|
-
import fieldDecorator from "./fieldDecorator.mjs";
|
|
30
30
|
import checkbox from "./checkbox.mjs";
|
|
31
|
-
import radio from "./radio.mjs";
|
|
32
|
-
import card from "./card.mjs";
|
|
33
31
|
import chip from "./chip.mjs";
|
|
34
|
-
import
|
|
35
|
-
import tooltip from "./tooltip.mjs";
|
|
36
|
-
import progress from "./progress.mjs";
|
|
37
|
-
import tabs from "./tabs.mjs";
|
|
38
|
-
import tab from "./tab.mjs";
|
|
39
|
-
import step from "./step.mjs";
|
|
40
|
-
import divider from "./divider.mjs";
|
|
41
|
-
import table from "./table.mjs";
|
|
42
|
-
import pagination from "./pagination.mjs";
|
|
43
|
-
import watermark from "./watermark.mjs";
|
|
32
|
+
import code from "./code.mjs";
|
|
44
33
|
import collapse from "./collapse.mjs";
|
|
45
|
-
import
|
|
46
|
-
import appBar from "./appBar.mjs";
|
|
47
|
-
import bottomNavigation from "./bottomNavigation.mjs";
|
|
48
|
-
import bottomNavigationItem from "./bottomNavigationItem.mjs";
|
|
49
|
-
import snackbar from "./snackbar.mjs";
|
|
50
|
-
import actionSheet from "./actionSheet.mjs";
|
|
51
|
-
import dialog from "./dialog.mjs";
|
|
52
|
-
import pullRefresh from "./pullRefresh.mjs";
|
|
53
|
-
import popup from "./popup.mjs";
|
|
54
|
-
import picker from "./picker.mjs";
|
|
55
|
-
import floatingPanel from "./floatingPanel.mjs";
|
|
56
|
-
import backTop from "./backTop.mjs";
|
|
57
|
-
import select from "./select.mjs";
|
|
58
|
-
import option from "./option.mjs";
|
|
34
|
+
import countdown from "./countdown.mjs";
|
|
59
35
|
import counter from "./counter.mjs";
|
|
60
|
-
import switchThemes from "./switch.mjs";
|
|
61
|
-
import slider from "./slider.mjs";
|
|
62
|
-
import uploader from "./uploader.mjs";
|
|
63
|
-
import timePicker from "./timePicker.mjs";
|
|
64
36
|
import datePicker from "./datePicker.mjs";
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
37
|
+
import dialog from "./dialog.mjs";
|
|
38
|
+
import divider from "./divider.mjs";
|
|
39
|
+
import fab from "./fab.mjs";
|
|
40
|
+
import fieldDecorator from "./fieldDecorator.mjs";
|
|
41
|
+
import floatingPanel from "./floatingPanel.mjs";
|
|
69
42
|
import formDetails from "./formDetails.mjs";
|
|
43
|
+
import hoverOverlay from "./hoverOverlay.mjs";
|
|
70
44
|
import icon from "./icon.mjs";
|
|
71
45
|
import imagePreview from "./imagePreview.mjs";
|
|
72
46
|
import indexBar from "./indexBar.mjs";
|
|
73
47
|
import input from "./input.mjs";
|
|
48
|
+
import link from "./link.mjs";
|
|
74
49
|
import list from "./list.mjs";
|
|
75
50
|
import loading from "./loading.mjs";
|
|
76
51
|
import loadingBar from "./loadingBar.mjs";
|
|
52
|
+
import menu from "./menu.mjs";
|
|
53
|
+
import menuOption from "./menuOption.mjs";
|
|
54
|
+
import menuSelect from "./menuSelect.mjs";
|
|
55
|
+
import option from "./option.mjs";
|
|
77
56
|
import overlay from "./overlay.mjs";
|
|
57
|
+
import pagination from "./pagination.mjs";
|
|
58
|
+
import paper from "./paper.mjs";
|
|
59
|
+
import picker from "./picker.mjs";
|
|
60
|
+
import popup from "./popup.mjs";
|
|
61
|
+
import progress from "./progress.mjs";
|
|
62
|
+
import pullRefresh from "./pullRefresh.mjs";
|
|
63
|
+
import radio from "./radio.mjs";
|
|
64
|
+
import rate from "./rate.mjs";
|
|
65
|
+
import result from "./result.mjs";
|
|
78
66
|
import ripple from "./ripple.mjs";
|
|
67
|
+
import select from "./select.mjs";
|
|
68
|
+
import skeleton from "./skeleton.mjs";
|
|
69
|
+
import slider from "./slider.mjs";
|
|
70
|
+
import snackbar from "./snackbar.mjs";
|
|
79
71
|
import space from "./space.mjs";
|
|
72
|
+
import step from "./step.mjs";
|
|
80
73
|
import swipe from "./swipe.mjs";
|
|
81
|
-
import
|
|
74
|
+
import switchThemes from "./switch.mjs";
|
|
75
|
+
import tab from "./tab.mjs";
|
|
76
|
+
import table from "./table.mjs";
|
|
77
|
+
import tabs from "./tabs.mjs";
|
|
78
|
+
import timePicker from "./timePicker.mjs";
|
|
79
|
+
import tooltip from "./tooltip.mjs";
|
|
80
|
+
import uploader from "./uploader.mjs";
|
|
81
|
+
import watermark from "./watermark.mjs";
|
|
82
82
|
var stdin_default = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
83
83
|
"--color-scheme": "dark",
|
|
84
84
|
"--font-size-xs": "10px",
|
|
@@ -14,71 +14,71 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import
|
|
17
|
+
import actionSheet from "./actionSheet.mjs";
|
|
18
18
|
import alert from "./alert.mjs";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
19
|
+
import appBar from "./appBar.mjs";
|
|
20
|
+
import avatar from "./avatar.mjs";
|
|
21
|
+
import avatarGroup from "./avatarGroup.mjs";
|
|
22
|
+
import backTop from "./backTop.mjs";
|
|
23
|
+
import badge from "./badge.mjs";
|
|
24
|
+
import bottomNavigation from "./bottomNavigation.mjs";
|
|
25
|
+
import bottomNavigationItem from "./bottomNavigationItem.mjs";
|
|
24
26
|
import breadcrumb from "./breadcrumb.mjs";
|
|
25
|
-
import
|
|
27
|
+
import button from "./button.mjs";
|
|
28
|
+
import card from "./card.mjs";
|
|
26
29
|
import cell from "./cell.mjs";
|
|
27
|
-
import paper from "./paper.mjs";
|
|
28
|
-
import avatar from "./avatar.mjs";
|
|
29
|
-
import fieldDecorator from "./fieldDecorator.mjs";
|
|
30
30
|
import checkbox from "./checkbox.mjs";
|
|
31
|
-
import radio from "./radio.mjs";
|
|
32
|
-
import card from "./card.mjs";
|
|
33
31
|
import chip from "./chip.mjs";
|
|
34
|
-
import
|
|
35
|
-
import tabs from "./tabs.mjs";
|
|
36
|
-
import tab from "./tab.mjs";
|
|
37
|
-
import table from "./table.mjs";
|
|
32
|
+
import code from "./code.mjs";
|
|
38
33
|
import collapse from "./collapse.mjs";
|
|
39
|
-
import result from "./result.mjs";
|
|
40
|
-
import bottomNavigation from "./bottomNavigation.mjs";
|
|
41
|
-
import bottomNavigationItem from "./bottomNavigationItem.mjs";
|
|
42
|
-
import snackbar from "./snackbar.mjs";
|
|
43
|
-
import actionSheet from "./actionSheet.mjs";
|
|
44
|
-
import dialog from "./dialog.mjs";
|
|
45
|
-
import pullRefresh from "./pullRefresh.mjs";
|
|
46
|
-
import popup from "./popup.mjs";
|
|
47
|
-
import picker from "./picker.mjs";
|
|
48
|
-
import floatingPanel from "./floatingPanel.mjs";
|
|
49
|
-
import backTop from "./backTop.mjs";
|
|
50
|
-
import select from "./select.mjs";
|
|
51
|
-
import option from "./option.mjs";
|
|
52
|
-
import slider from "./slider.mjs";
|
|
53
|
-
import uploader from "./uploader.mjs";
|
|
54
|
-
import timePicker from "./timePicker.mjs";
|
|
55
|
-
import datePicker from "./datePicker.mjs";
|
|
56
|
-
import switchThemes from "./switch.mjs";
|
|
57
|
-
import rate from "./rate.mjs";
|
|
58
|
-
import avatarGroup from "./avatarGroup.mjs";
|
|
59
|
-
import badge from "./badge.mjs";
|
|
60
34
|
import countdown from "./countdown.mjs";
|
|
61
35
|
import counter from "./counter.mjs";
|
|
36
|
+
import datePicker from "./datePicker.mjs";
|
|
37
|
+
import dialog from "./dialog.mjs";
|
|
62
38
|
import divider from "./divider.mjs";
|
|
39
|
+
import fab from "./fab.mjs";
|
|
40
|
+
import fieldDecorator from "./fieldDecorator.mjs";
|
|
41
|
+
import floatingPanel from "./floatingPanel.mjs";
|
|
63
42
|
import formDetails from "./formDetails.mjs";
|
|
43
|
+
import hoverOverlay from "./hoverOverlay.mjs";
|
|
64
44
|
import icon from "./icon.mjs";
|
|
65
45
|
import imagePreview from "./imagePreview.mjs";
|
|
66
46
|
import indexBar from "./indexBar.mjs";
|
|
67
47
|
import input from "./input.mjs";
|
|
48
|
+
import link from "./link.mjs";
|
|
68
49
|
import list from "./list.mjs";
|
|
69
50
|
import loading from "./loading.mjs";
|
|
70
51
|
import loadingBar from "./loadingBar.mjs";
|
|
52
|
+
import menu from "./menu.mjs";
|
|
53
|
+
import menuOption from "./menuOption.mjs";
|
|
54
|
+
import menuSelect from "./menuSelect.mjs";
|
|
55
|
+
import option from "./option.mjs";
|
|
71
56
|
import overlay from "./overlay.mjs";
|
|
72
57
|
import pagination from "./pagination.mjs";
|
|
58
|
+
import paper from "./paper.mjs";
|
|
59
|
+
import picker from "./picker.mjs";
|
|
60
|
+
import popup from "./popup.mjs";
|
|
73
61
|
import progress from "./progress.mjs";
|
|
62
|
+
import pullRefresh from "./pullRefresh.mjs";
|
|
63
|
+
import radio from "./radio.mjs";
|
|
64
|
+
import rate from "./rate.mjs";
|
|
65
|
+
import result from "./result.mjs";
|
|
74
66
|
import ripple from "./ripple.mjs";
|
|
67
|
+
import select from "./select.mjs";
|
|
75
68
|
import skeleton from "./skeleton.mjs";
|
|
69
|
+
import slider from "./slider.mjs";
|
|
70
|
+
import snackbar from "./snackbar.mjs";
|
|
76
71
|
import space from "./space.mjs";
|
|
77
72
|
import step from "./step.mjs";
|
|
78
73
|
import swipe from "./swipe.mjs";
|
|
74
|
+
import switchThemes from "./switch.mjs";
|
|
75
|
+
import tab from "./tab.mjs";
|
|
76
|
+
import table from "./table.mjs";
|
|
77
|
+
import tabs from "./tabs.mjs";
|
|
78
|
+
import timePicker from "./timePicker.mjs";
|
|
79
|
+
import tooltip from "./tooltip.mjs";
|
|
80
|
+
import uploader from "./uploader.mjs";
|
|
79
81
|
import watermark from "./watermark.mjs";
|
|
80
|
-
import appBar from "./appBar.mjs";
|
|
81
|
-
import code from "./code.mjs";
|
|
82
82
|
var stdin_default = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
83
83
|
"--color-scheme": "light",
|
|
84
84
|
"--font-size-xs": "10px",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import dayjs from "dayjs/esm/index.js";
|
|
2
|
-
import Clock from "./clock.mjs";
|
|
3
1
|
import { computed, defineComponent, reactive, ref, watch } from "vue";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
7
|
-
import { padStart } from "../utils/shared.mjs";
|
|
8
|
-
import { getNumberTime, getIsDisableMinute, getIsDisableSecond } from "./utils.mjs";
|
|
2
|
+
import { call, getRect, preventDefault, toNumber } from "@varlet/shared";
|
|
3
|
+
import dayjs from "dayjs/esm/index.js";
|
|
9
4
|
import { t } from "../locale/index.mjs";
|
|
10
5
|
import { injectLocaleProvider } from "../locale-provider/provide.mjs";
|
|
6
|
+
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
7
|
+
import { padStart } from "../utils/shared.mjs";
|
|
8
|
+
import Clock from "./clock.mjs";
|
|
9
|
+
import { hours24, hoursAmpm, props } from "./props.mjs";
|
|
10
|
+
import { getIsDisableMinute, getIsDisableSecond, getNumberTime } from "./utils.mjs";
|
|
11
11
|
const { name, n, classes } = createNamespace("time-picker");
|
|
12
12
|
import { toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, resolveComponent as _resolveComponent, createBlock as _createBlock, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot } from "vue";
|
|
13
13
|
function __render__(_ctx, _cache) {
|
|
@@ -16,8 +16,8 @@ function __render__(_ctx, _cache) {
|
|
|
16
16
|
return _openBlock(), _createElementBlock(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
ref: "picker",
|
|
20
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.formatElevation(_ctx.elevation, 2)))
|
|
21
21
|
},
|
|
22
22
|
[
|
|
23
23
|
_createElementVNode(
|
|
@@ -150,11 +150,11 @@ function __render__(_ctx, _cache) {
|
|
|
150
150
|
_createElementVNode(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
|
+
ref: "container",
|
|
153
154
|
class: _normalizeClass(_ctx.n("clock-container")),
|
|
154
155
|
onTouchstart: _cache[5] || (_cache[5] = (...args) => _ctx.moveHand && _ctx.moveHand(...args)),
|
|
155
156
|
onTouchmove: _cache[6] || (_cache[6] = (...args) => _ctx.moveHand && _ctx.moveHand(...args)),
|
|
156
|
-
onTouchend: _cache[7] || (_cache[7] = (...args) => _ctx.end && _ctx.end(...args))
|
|
157
|
-
ref: "container"
|
|
157
|
+
onTouchend: _cache[7] || (_cache[7] = (...args) => _ctx.end && _ctx.end(...args))
|
|
158
158
|
},
|
|
159
159
|
[
|
|
160
160
|
_createVNode(_Transition, {
|
|
@@ -242,8 +242,12 @@ const __sfc__ = defineComponent({
|
|
|
242
242
|
y: []
|
|
243
243
|
});
|
|
244
244
|
const getRad = computed(() => {
|
|
245
|
-
if (type.value === "hour")
|
|
246
|
-
|
|
245
|
+
if (type.value === "hour") {
|
|
246
|
+
return hourRad.value;
|
|
247
|
+
}
|
|
248
|
+
if (type.value === "minute") {
|
|
249
|
+
return minuteRad.value;
|
|
250
|
+
}
|
|
247
251
|
return secondRad.value;
|
|
248
252
|
});
|
|
249
253
|
const { t: pt } = injectLocaleProvider();
|
|
@@ -304,10 +308,14 @@ const __sfc__ = defineComponent({
|
|
|
304
308
|
});
|
|
305
309
|
}
|
|
306
310
|
function checkAmpm(ampmType) {
|
|
307
|
-
if (props2.readonly)
|
|
311
|
+
if (props2.readonly) {
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
308
314
|
ampm.value = ampmType;
|
|
309
315
|
const newHour = findAvailableHour(ampmType);
|
|
310
|
-
if (!newHour)
|
|
316
|
+
if (!newHour) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
311
319
|
const second = props2.useSeconds ? `:${time.value.second}` : "";
|
|
312
320
|
const newTime = `${padStart(newHour, 2, "0")}:${time.value.minute}${second}`;
|
|
313
321
|
update(newTime);
|
|
@@ -352,10 +360,14 @@ const __sfc__ = defineComponent({
|
|
|
352
360
|
if (!disableHour.includes(anotherHour)) {
|
|
353
361
|
isInner.value = props2.format === "24hr" ? getInner(clientX, clientY) : false;
|
|
354
362
|
}
|
|
355
|
-
if (isInner.value !== isActualInner.value)
|
|
363
|
+
if (isInner.value !== isActualInner.value) {
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
356
366
|
const newHour = isInner.value || ampm.value === "pm" ? hours24[index] : hoursAmpm[index];
|
|
357
367
|
isDisableHour.value = disableHour.includes(newHour);
|
|
358
|
-
if (isDisableHour.value)
|
|
368
|
+
if (isDisableHour.value) {
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
359
371
|
hourRad.value = rad;
|
|
360
372
|
isChosenUsableHour.value = true;
|
|
361
373
|
}
|
|
@@ -374,7 +386,9 @@ const __sfc__ = defineComponent({
|
|
|
374
386
|
allowedTime: props2.allowedTime
|
|
375
387
|
};
|
|
376
388
|
isDisableMinute.value = getIsDisableMinute(values);
|
|
377
|
-
if (isDisableMinute.value)
|
|
389
|
+
if (isDisableMinute.value) {
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
378
392
|
minuteRad.value = rad;
|
|
379
393
|
isChosenUsableMinute.value = true;
|
|
380
394
|
}
|
|
@@ -393,7 +407,9 @@ const __sfc__ = defineComponent({
|
|
|
393
407
|
disableHour,
|
|
394
408
|
allowedTime: props2.allowedTime
|
|
395
409
|
};
|
|
396
|
-
if (!getIsDisableSecond(values))
|
|
410
|
+
if (!getIsDisableSecond(values)) {
|
|
411
|
+
secondRad.value = rad;
|
|
412
|
+
}
|
|
397
413
|
}
|
|
398
414
|
function setCenterAndRange() {
|
|
399
415
|
const { left, top, width, height } = getRect(container.value);
|
|
@@ -407,18 +423,26 @@ const __sfc__ = defineComponent({
|
|
|
407
423
|
}
|
|
408
424
|
function moveHand(event) {
|
|
409
425
|
preventDefault(event);
|
|
410
|
-
if (props2.readonly)
|
|
426
|
+
if (props2.readonly) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
411
429
|
setCenterAndRange();
|
|
412
430
|
const { clientX, clientY } = event.touches[0];
|
|
413
431
|
const x = clientX - center.x;
|
|
414
432
|
const y = clientY - center.y;
|
|
415
433
|
const roundDeg = Math.round(rad2deg(Math.atan2(y, x)));
|
|
416
|
-
if (type.value === "hour")
|
|
417
|
-
|
|
418
|
-
else
|
|
434
|
+
if (type.value === "hour") {
|
|
435
|
+
setHourRad(clientX, clientY, roundDeg);
|
|
436
|
+
} else if (type.value === "minute") {
|
|
437
|
+
setMinuteRad(roundDeg);
|
|
438
|
+
} else {
|
|
439
|
+
setSecondRad(roundDeg);
|
|
440
|
+
}
|
|
419
441
|
}
|
|
420
442
|
function end() {
|
|
421
|
-
if (props2.readonly)
|
|
443
|
+
if (props2.readonly) {
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
422
446
|
if (type.value === "hour" && isChosenUsableHour.value) {
|
|
423
447
|
type.value = "minute";
|
|
424
448
|
return;
|