@varlet/ui 3.8.2 → 3.9.0-alpha.1736270797421
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/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/snackbar/style/index.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 +7 -7
- 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/card/Card.mjs
CHANGED
|
@@ -18,16 +18,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import
|
|
22
|
-
import
|
|
21
|
+
import { computed, defineComponent, nextTick, ref, watch } from "vue";
|
|
22
|
+
import { call, doubleRaf, getRect } from "@varlet/shared";
|
|
23
23
|
import VarButton from "../button/index.mjs";
|
|
24
|
-
import { ref, defineComponent, watch, computed, nextTick } from "vue";
|
|
25
|
-
import { props } from "./props.mjs";
|
|
26
|
-
import { toSizeUnit } from "../utils/elements.mjs";
|
|
27
|
-
import { doubleRaf, getRect, call } from "@varlet/shared";
|
|
28
|
-
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
29
|
-
import { useZIndex } from "../context/zIndex.mjs";
|
|
30
24
|
import { useLock } from "../context/lock.mjs";
|
|
25
|
+
import { useZIndex } from "../context/zIndex.mjs";
|
|
26
|
+
import VarIcon from "../icon/index.mjs";
|
|
27
|
+
import Ripple from "../ripple/index.mjs";
|
|
28
|
+
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
29
|
+
import { toSizeUnit } from "../utils/elements.mjs";
|
|
30
|
+
import { props } from "./props.mjs";
|
|
31
31
|
const { name, n, classes } = createNamespace("card");
|
|
32
32
|
const RIPPLE_DELAY = 500;
|
|
33
33
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, withCtx as _withCtx, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
|
|
@@ -272,7 +272,9 @@ const __sfc__ = defineComponent({
|
|
|
272
272
|
watch(
|
|
273
273
|
() => props2.floating,
|
|
274
274
|
(value) => {
|
|
275
|
-
if (isRow.value)
|
|
275
|
+
if (isRow.value) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
276
278
|
nextTick(() => {
|
|
277
279
|
value ? floating() : dropdown();
|
|
278
280
|
});
|
|
@@ -280,36 +282,34 @@ const __sfc__ = defineComponent({
|
|
|
280
282
|
{ immediate: true }
|
|
281
283
|
);
|
|
282
284
|
function floating() {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
);
|
|
312
|
-
});
|
|
285
|
+
clearTimeout(floater.value);
|
|
286
|
+
clearTimeout(dropper);
|
|
287
|
+
floater.value = null;
|
|
288
|
+
floater.value = setTimeout(
|
|
289
|
+
() => __async(this, null, function* () {
|
|
290
|
+
const { width, height, left, top } = getRect(card.value);
|
|
291
|
+
holderWidth.value = toSizeUnit(width);
|
|
292
|
+
holderHeight.value = toSizeUnit(height);
|
|
293
|
+
floaterWidth.value = holderWidth.value;
|
|
294
|
+
floaterHeight.value = holderHeight.value;
|
|
295
|
+
floaterTop.value = toSizeUnit(top);
|
|
296
|
+
floaterLeft.value = toSizeUnit(left);
|
|
297
|
+
floaterPosition.value = "fixed";
|
|
298
|
+
dropdownFloaterTop = floaterTop.value;
|
|
299
|
+
dropdownFloaterLeft = floaterLeft.value;
|
|
300
|
+
showFloatingButtons.value = true;
|
|
301
|
+
yield doubleRaf();
|
|
302
|
+
floaterTop.value = "0";
|
|
303
|
+
floaterLeft.value = "0";
|
|
304
|
+
floaterWidth.value = "100vw";
|
|
305
|
+
floaterHeight.value = "100vh";
|
|
306
|
+
contentHeight.value = "auto";
|
|
307
|
+
opacity.value = "1";
|
|
308
|
+
floaterOverflow.value = "auto";
|
|
309
|
+
floated.value = true;
|
|
310
|
+
}),
|
|
311
|
+
props2.ripple ? RIPPLE_DELAY : 0
|
|
312
|
+
);
|
|
313
313
|
}
|
|
314
314
|
function dropdown() {
|
|
315
315
|
clearTimeout(dropper);
|
package/es/card/index.mjs
CHANGED
package/es/cell/Cell.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { computed, defineComponent } from "vue";
|
|
2
|
+
import { call } from "@varlet/shared";
|
|
1
3
|
import VarIcon from "../icon/index.mjs";
|
|
2
4
|
import Ripple from "../ripple/index.mjs";
|
|
3
|
-
import { computed, defineComponent } from "vue";
|
|
4
|
-
import { props } from "./props.mjs";
|
|
5
5
|
import { createNamespace } from "../utils/components.mjs";
|
|
6
6
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { props } from "./props.mjs";
|
|
8
8
|
const { name, n, classes } = createNamespace("cell");
|
|
9
9
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
|
|
10
10
|
function __render__(_ctx, _cache) {
|
package/es/cell/index.mjs
CHANGED
package/es/cell/props.mjs
CHANGED
package/es/checkbox/Checkbox.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { computed, defineComponent, nextTick, ref } from "vue";
|
|
2
|
+
import { call, preventDefault } from "@varlet/shared";
|
|
3
|
+
import { useEventListener, useVModel } from "@varlet/use";
|
|
2
4
|
import VarFormDetails from "../form-details/index.mjs";
|
|
3
|
-
import
|
|
5
|
+
import { useForm } from "../form/provide.mjs";
|
|
4
6
|
import Hover from "../hover/index.mjs";
|
|
5
7
|
import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
|
|
6
|
-
import
|
|
8
|
+
import VarIcon from "../icon/index.mjs";
|
|
9
|
+
import Ripple from "../ripple/index.mjs";
|
|
10
|
+
import { createNamespace, useValidation } from "../utils/components.mjs";
|
|
7
11
|
import { props } from "./props.mjs";
|
|
8
|
-
import { useValidation, createNamespace } from "../utils/components.mjs";
|
|
9
12
|
import { useCheckboxGroup } from "./provide.mjs";
|
|
10
|
-
import { useForm } from "../form/provide.mjs";
|
|
11
|
-
import { call, preventDefault } from "@varlet/shared";
|
|
12
|
-
import { useEventListener, useVModel } from "@varlet/use";
|
|
13
13
|
const { name, n, classes } = createNamespace("checkbox");
|
|
14
14
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createElementVNode as _createElementVNode } from "vue";
|
|
15
15
|
const _hoisted_1 = ["tabindex"];
|
package/es/checkbox/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Checkbox from "./Checkbox.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Checkbox from "./Checkbox.mjs";
|
|
3
3
|
import { props as checkboxProps } from "./props.mjs";
|
|
4
4
|
withInstall(Checkbox);
|
|
5
5
|
withPropsDefaultsSetter(Checkbox, checkboxProps);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { computed, defineComponent, nextTick, watch } from "vue";
|
|
2
|
+
import { call, isFunction, uniq } from "@varlet/shared";
|
|
2
3
|
import VarCheckbox from "../checkbox/index.mjs";
|
|
3
|
-
import
|
|
4
|
+
import VarFormDetails from "../form-details/index.mjs";
|
|
5
|
+
import { useForm } from "../form/provide.mjs";
|
|
6
|
+
import { createNamespace, MaybeVNode, useValidation } from "../utils/components.mjs";
|
|
4
7
|
import { props } from "./props.mjs";
|
|
5
|
-
import { useValidation, createNamespace, MaybeVNode } from "../utils/components.mjs";
|
|
6
8
|
import { useCheckboxes } from "./provide.mjs";
|
|
7
|
-
import { useForm } from "../form/provide.mjs";
|
|
8
|
-
import { uniq, call, isFunction } from "@varlet/shared";
|
|
9
9
|
const { name, n, classes } = createNamespace("checkbox-group");
|
|
10
10
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from "vue";
|
|
11
11
|
function __render__(_ctx, _cache) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CheckboxGroup from "./CheckboxGroup.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import CheckboxGroup from "./CheckboxGroup.mjs";
|
|
3
3
|
import { props as checkboxGroupProps } from "./props.mjs";
|
|
4
4
|
withInstall(CheckboxGroup);
|
|
5
5
|
withPropsDefaultsSetter(CheckboxGroup, checkboxGroupProps);
|
package/es/chip/Chip.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { computed, defineComponent } from "vue";
|
|
2
|
+
import { call } from "@varlet/shared";
|
|
1
3
|
import VarIcon from "../icon/index.mjs";
|
|
2
|
-
import { defineComponent, computed } from "vue";
|
|
3
|
-
import { props } from "./props.mjs";
|
|
4
4
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { props } from "./props.mjs";
|
|
6
6
|
const { name, n, classes } = createNamespace("chip");
|
|
7
|
-
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock,
|
|
7
|
+
import { createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, mergeProps as _mergeProps, Transition as _Transition, withCtx as _withCtx, createBlock as _createBlock } from "vue";
|
|
8
8
|
function __render__(_ctx, _cache) {
|
|
9
9
|
const _component_var_icon = _resolveComponent("var-icon");
|
|
10
10
|
return _openBlock(), _createBlock(_Transition, {
|
package/es/chip/index.mjs
CHANGED
package/es/chip/props.mjs
CHANGED
package/es/code/Code.mjs
CHANGED
|
@@ -19,9 +19,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
import { computed, defineComponent, ref, watch } from "vue";
|
|
22
|
+
import { injectHighlighterProvider } from "../highlighter-provider/provide.mjs";
|
|
22
23
|
import { createNamespace } from "../utils/components.mjs";
|
|
23
24
|
import { props } from "./props.mjs";
|
|
24
|
-
import { injectHighlighterProvider } from "../highlighter-provider/provide.mjs";
|
|
25
25
|
const { name, n, classes } = createNamespace("code");
|
|
26
26
|
import { normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
27
27
|
const _hoisted_1 = ["innerHTML"];
|
package/es/code/index.mjs
CHANGED
package/es/col/Col.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isPlainObject, toNumber
|
|
1
|
+
import { computed, defineComponent } from "vue";
|
|
2
|
+
import { call, isPlainObject, toNumber } from "@varlet/shared";
|
|
3
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
4
|
+
import { padStartFlex, toSizeUnit } from "../utils/elements.mjs";
|
|
3
5
|
import { props } from "./props.mjs";
|
|
4
6
|
import { useRow } from "./provide.mjs";
|
|
5
|
-
import { padStartFlex, toSizeUnit } from "../utils/elements.mjs";
|
|
6
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
7
7
|
const { name, n, classes } = createNamespace("col");
|
|
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/col/index.mjs
CHANGED
package/es/collapse/Collapse.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, defineComponent, nextTick, watch } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { props } from "./props.mjs";
|
|
2
|
+
import { call, normalizeToArray, removeArrayBlank } from "@varlet/shared";
|
|
4
3
|
import { createNamespace } from "../utils/components.mjs";
|
|
5
|
-
import {
|
|
4
|
+
import { props } from "./props.mjs";
|
|
5
|
+
import { useCollapseItem } from "./provide.mjs";
|
|
6
6
|
const { name, n } = createNamespace("collapse");
|
|
7
7
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
8
8
|
function __render__(_ctx, _cache) {
|
|
@@ -84,7 +84,9 @@ const __sfc__ = defineComponent({
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
const toggleAll = (options) => {
|
|
87
|
-
if (props2.accordion)
|
|
87
|
+
if (props2.accordion) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
88
90
|
const matchedItems = collapseItems.filter((item) => {
|
|
89
91
|
var _a;
|
|
90
92
|
const itemValue = (_a = item.name.value) != null ? _a : item.index.value;
|
package/es/collapse/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Collapse from "./Collapse.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Collapse from "./Collapse.mjs";
|
|
3
3
|
import { props as collapseProps } from "./props.mjs";
|
|
4
4
|
withInstall(Collapse);
|
|
5
5
|
withPropsDefaultsSetter(Collapse, collapseProps);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { computed, defineComponent, ref } from "vue";
|
|
2
|
+
import { useCollapseTransition } from "../collapse-transition/useCollapseTransition.mjs";
|
|
1
3
|
import VarIcon from "../icon/index.mjs";
|
|
2
|
-
import { defineComponent, ref, computed } from "vue";
|
|
3
4
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
4
|
-
import { useCollapse } from "./provide.mjs";
|
|
5
5
|
import { props } from "./props.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { useCollapse } from "./provide.mjs";
|
|
7
7
|
const { name, n, classes } = createNamespace("collapse-item");
|
|
8
8
|
import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle } from "vue";
|
|
9
9
|
const _hoisted_1 = ["aria-expanded", "aria-disabled", "role"];
|
|
@@ -77,8 +77,8 @@ function __render__(_ctx, _cache) {
|
|
|
77
77
|
_withDirectives(_createElementVNode(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
|
-
class: _normalizeClass(_ctx.n("content")),
|
|
81
80
|
ref: "contentEl",
|
|
81
|
+
class: _normalizeClass(_ctx.n("content")),
|
|
82
82
|
onTransitionend: _cache[1] || (_cache[1] = (...args) => _ctx.handleTransitionEnd && _ctx.handleTransitionEnd(...args)),
|
|
83
83
|
onTransitionstart: _cache[2] || (_cache[2] = (...args) => _ctx.handleTransitionStart && _ctx.handleTransitionStart(...args))
|
|
84
84
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CollapseItem from "./CollapseItem.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import CollapseItem from "./CollapseItem.mjs";
|
|
3
3
|
import { props as collapseItemProps } from "./props.mjs";
|
|
4
4
|
withInstall(CollapseItem);
|
|
5
5
|
withPropsDefaultsSetter(CollapseItem, collapseItemProps);
|
|
@@ -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 { COLLAPSE_BIND_COLLAPSE_ITEM_KEY } from "../collapse/provide.mjs";
|
|
4
4
|
function useCollapse() {
|
|
5
5
|
const { parentProvider, index, bindParent } = useParent(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref
|
|
1
|
+
import { computed, defineComponent, ref } from "vue";
|
|
2
2
|
import { createNamespace } from "../utils/components.mjs";
|
|
3
3
|
import { props } from "./props.mjs";
|
|
4
4
|
import { useCollapseTransition } from "./useCollapseTransition.mjs";
|
|
@@ -8,8 +8,8 @@ function __render__(_ctx, _cache) {
|
|
|
8
8
|
return _withDirectives((_openBlock(), _createElementBlock(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
class: _normalizeClass(_ctx.n("content")),
|
|
12
11
|
ref: "contentEl",
|
|
12
|
+
class: _normalizeClass(_ctx.n("content")),
|
|
13
13
|
onTransitionend: _cache[0] || (_cache[0] = (...args) => _ctx.handleTransitionEnd && _ctx.handleTransitionEnd(...args)),
|
|
14
14
|
onTransitionstart: _cache[1] || (_cache[1] = (...args) => _ctx.handleTransitionStart && _ctx.handleTransitionStart(...args))
|
|
15
15
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CollapseTransition from "./CollapseTransition.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import CollapseTransition from "./CollapseTransition.mjs";
|
|
3
3
|
import { props as collapseTransitionProps } from "./props.mjs";
|
|
4
4
|
withInstall(CollapseTransition);
|
|
5
5
|
withPropsDefaultsSetter(CollapseTransition, collapseTransitionProps);
|
|
@@ -18,8 +18,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import { raf, doubleRaf } from "@varlet/shared";
|
|
22
21
|
import { nextTick, watch } from "vue";
|
|
22
|
+
import { doubleRaf, raf } from "@varlet/shared";
|
|
23
23
|
function useCollapseTransition(options) {
|
|
24
24
|
const { contentEl, showContent, expand } = options;
|
|
25
25
|
let isInitToTrigger = true;
|
package/es/context/lock.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { getCurrentInstance, onActivated, onBeforeMount, onDeactivated, onUnmounted, watch } from "vue";
|
|
1
2
|
import context from "./index.mjs";
|
|
2
|
-
import { watch, onBeforeMount, onUnmounted, onDeactivated, onActivated, getCurrentInstance } from "vue";
|
|
3
3
|
import { createNamespace } from "../utils/components.mjs";
|
|
4
4
|
const { n } = createNamespace("");
|
|
5
5
|
function resolveLock() {
|
package/es/context/stack.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCurrentInstance, watch } from "vue";
|
|
2
2
|
import { removeItem } from "@varlet/shared";
|
|
3
|
-
import {
|
|
3
|
+
import { onSmartMounted, onSmartUnmounted } from "@varlet/use";
|
|
4
4
|
const stack = [];
|
|
5
5
|
function useStack(activeGetter, zIndex) {
|
|
6
6
|
const { uid } = getCurrentInstance();
|
package/es/context/zIndex.mjs
CHANGED
package/es/count-to/CountTo.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { props } from "./props.mjs";
|
|
3
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
4
|
-
import { useMotion } from "@varlet/use";
|
|
1
|
+
import { computed, defineComponent, onMounted, watch } from "vue";
|
|
5
2
|
import { call, floor, toNumber } from "@varlet/shared";
|
|
3
|
+
import { useMotion } from "@varlet/use";
|
|
4
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
5
|
+
import { props } from "./props.mjs";
|
|
6
6
|
const { name, n } = createNamespace("count-to");
|
|
7
7
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
8
8
|
function __render__(_ctx, _cache) {
|
package/es/count-to/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CountTo from "./CountTo.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import CountTo from "./CountTo.mjs";
|
|
3
3
|
import { props as countToProps } from "./props.mjs";
|
|
4
4
|
withInstall(CountTo);
|
|
5
5
|
withPropsDefaultsSetter(CountTo, countToProps);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, onActivated, onDeactivated, onMounted, onUnmounted, ref, watch } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { call, cancelAnimationFrame, requestAnimationFrame, toNumber } from "@varlet/shared";
|
|
3
3
|
import { createNamespace } from "../utils/components.mjs";
|
|
4
4
|
import { padStart } from "../utils/shared.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { props } from "./props.mjs";
|
|
6
6
|
const { name, n } = createNamespace("countdown");
|
|
7
7
|
const SECOND = 1e3;
|
|
8
8
|
const MINUTE = 60 * SECOND;
|
package/es/countdown/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Countdown from "./Countdown.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Countdown from "./Countdown.mjs";
|
|
3
3
|
import { props as countdownProps } from "./props.mjs";
|
|
4
4
|
withInstall(Countdown);
|
|
5
5
|
withPropsDefaultsSetter(Countdown, countdownProps);
|
package/es/counter/Counter.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { computed, defineComponent, nextTick, ref, watch } from "vue";
|
|
2
|
+
import { call, toNumber } from "@varlet/shared";
|
|
3
|
+
import { Decimal } from "decimal.js";
|
|
1
4
|
import VarButton from "../button/index.mjs";
|
|
2
|
-
import VarIcon from "../icon/index.mjs";
|
|
3
5
|
import VarFormDetails from "../form-details/index.mjs";
|
|
6
|
+
import { useForm } from "../form/provide.mjs";
|
|
7
|
+
import VarIcon from "../icon/index.mjs";
|
|
4
8
|
import Ripple from "../ripple/index.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { Decimal } from "decimal.js";
|
|
7
|
-
import { props } from "./props.mjs";
|
|
8
|
-
import { toNumber, call } from "@varlet/shared";
|
|
9
|
+
import { createNamespace, formatElevation, useValidation } from "../utils/components.mjs";
|
|
9
10
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { useValidation, createNamespace, formatElevation } from "../utils/components.mjs";
|
|
11
|
+
import { props } from "./props.mjs";
|
|
12
12
|
const SPEED = 100;
|
|
13
13
|
const DELAY = 600;
|
|
14
14
|
const { name, n, classes } = createNamespace("counter");
|
|
@@ -63,6 +63,7 @@ function __render__(_ctx, _cache) {
|
|
|
63
63
|
/* STABLE */
|
|
64
64
|
}, 8, ["class", "style", "ripple", "onClick", "onTouchstart", "onTouchend", "onTouchcancel"]),
|
|
65
65
|
_withDirectives(_createElementVNode("input", {
|
|
66
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputValue = $event),
|
|
66
67
|
class: _normalizeClass(_ctx.classes(_ctx.n("input"), [_ctx.disabled || _ctx.formDisabled, _ctx.n("--not-allowed")])),
|
|
67
68
|
style: _normalizeStyle({
|
|
68
69
|
width: _ctx.toSizeUnit(_ctx.inputWidth),
|
|
@@ -71,7 +72,6 @@ function __render__(_ctx, _cache) {
|
|
|
71
72
|
inputmode: _ctx.toNumber(_ctx.decimalLength) === 0 ? "numeric" : "decimal",
|
|
72
73
|
readonly: _ctx.readonly || _ctx.formReadonly,
|
|
73
74
|
disabled: _ctx.disabled || _ctx.formDisabled || _ctx.disableInput,
|
|
74
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputValue = $event),
|
|
75
75
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args))
|
|
76
76
|
}, null, 46, _hoisted_1), [
|
|
77
77
|
[_vModelText, _ctx.inputValue]
|
package/es/counter/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Counter from "./Counter.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Counter from "./Counter.mjs";
|
|
3
3
|
import { props as counterProps } from "./props.mjs";
|
|
4
4
|
withInstall(Counter);
|
|
5
5
|
withPropsDefaultsSetter(Counter, counterProps);
|