@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.
Files changed (321) hide show
  1. package/es/action-sheet/ActionItem.mjs +4 -4
  2. package/es/action-sheet/ActionSheet.mjs +9 -9
  3. package/es/action-sheet/index.mjs +2 -2
  4. package/es/action-sheet/props.mjs +1 -1
  5. package/es/alert/Alert.mjs +3 -3
  6. package/es/alert/index.mjs +1 -1
  7. package/es/app-bar/AppBar.mjs +5 -5
  8. package/es/app-bar/index.mjs +1 -1
  9. package/es/auto-complete/AutoComplete.mjs +23 -27
  10. package/es/auto-complete/index.mjs +1 -1
  11. package/es/auto-complete/props.mjs +1 -1
  12. package/es/avatar/Avatar.mjs +5 -5
  13. package/es/avatar/index.mjs +1 -1
  14. package/es/avatar-group/AvatarGroup.mjs +2 -2
  15. package/es/avatar-group/index.mjs +1 -1
  16. package/es/back-top/BackTop.mjs +7 -7
  17. package/es/back-top/index.mjs +1 -1
  18. package/es/badge/Badge.mjs +3 -3
  19. package/es/badge/index.mjs +1 -1
  20. package/es/badge/props.mjs +1 -1
  21. package/es/bottom-navigation/BottomNavigation.mjs +8 -9
  22. package/es/bottom-navigation/index.mjs +1 -1
  23. package/es/bottom-navigation-item/BottomNavigationItem.mjs +4 -4
  24. package/es/bottom-navigation-item/index.mjs +1 -1
  25. package/es/bottom-navigation-item/provide.mjs +1 -1
  26. package/es/breadcrumb/Breadcrumb.mjs +3 -3
  27. package/es/breadcrumb/index.mjs +1 -1
  28. package/es/breadcrumb/provide.mjs +1 -1
  29. package/es/breadcrumbs/Breadcrumbs.mjs +2 -2
  30. package/es/breadcrumbs/index.mjs +1 -1
  31. package/es/button/Button.mjs +6 -6
  32. package/es/button/index.mjs +1 -1
  33. package/es/button-group/ButtonGroup.mjs +1 -1
  34. package/es/button-group/index.mjs +1 -1
  35. package/es/card/Card.mjs +39 -39
  36. package/es/card/index.mjs +1 -1
  37. package/es/cell/Cell.mjs +3 -3
  38. package/es/cell/index.mjs +1 -1
  39. package/es/cell/props.mjs +1 -1
  40. package/es/checkbox/Checkbox.mjs +7 -7
  41. package/es/checkbox/index.mjs +1 -1
  42. package/es/checkbox-group/CheckboxGroup.mjs +5 -5
  43. package/es/checkbox-group/index.mjs +1 -1
  44. package/es/chip/Chip.mjs +4 -4
  45. package/es/chip/index.mjs +1 -1
  46. package/es/chip/props.mjs +1 -1
  47. package/es/code/Code.mjs +1 -1
  48. package/es/code/index.mjs +1 -1
  49. package/es/col/Col.mjs +4 -4
  50. package/es/col/index.mjs +1 -1
  51. package/es/collapse/Collapse.mjs +6 -4
  52. package/es/collapse/index.mjs +1 -1
  53. package/es/collapse-item/CollapseItem.mjs +4 -4
  54. package/es/collapse-item/index.mjs +1 -1
  55. package/es/collapse-item/provide.mjs +1 -1
  56. package/es/collapse-transition/CollapseTransition.mjs +2 -2
  57. package/es/collapse-transition/index.mjs +1 -1
  58. package/es/collapse-transition/useCollapseTransition.mjs +1 -1
  59. package/es/context/lock.mjs +1 -1
  60. package/es/context/stack.mjs +1 -1
  61. package/es/context/zIndex.mjs +1 -1
  62. package/es/count-to/CountTo.mjs +4 -4
  63. package/es/count-to/index.mjs +1 -1
  64. package/es/countdown/Countdown.mjs +2 -2
  65. package/es/countdown/index.mjs +1 -1
  66. package/es/counter/Counter.mjs +8 -8
  67. package/es/counter/index.mjs +1 -1
  68. package/es/date-picker/DatePicker.mjs +92 -43
  69. package/es/date-picker/index.mjs +1 -1
  70. package/es/date-picker/src/day-picker-panel.mjs +59 -27
  71. package/es/date-picker/src/month-picker-panel.mjs +57 -23
  72. package/es/date-picker/src/panel-header.mjs +12 -6
  73. package/es/date-picker/src/year-picker-panel.mjs +53 -23
  74. package/es/dialog/Dialog.mjs +5 -5
  75. package/es/dialog/index.mjs +3 -3
  76. package/es/dialog/props.mjs +1 -1
  77. package/es/divider/Divider.mjs +4 -4
  78. package/es/divider/index.mjs +1 -1
  79. package/es/drag/Drag.mjs +21 -42
  80. package/es/drag/index.mjs +1 -1
  81. package/es/ellipsis/Ellipsis.mjs +2 -2
  82. package/es/ellipsis/index.mjs +1 -1
  83. package/es/fab/Fab.mjs +4 -5
  84. package/es/fab/index.mjs +1 -1
  85. package/es/fab/props.mjs +1 -1
  86. package/es/field-decorator/FieldDecorator.mjs +5 -5
  87. package/es/field-decorator/index.mjs +1 -1
  88. package/es/floating-panel/FloatingPanel.mjs +6 -6
  89. package/es/floating-panel/index.mjs +1 -1
  90. package/es/form/Form.mjs +4 -4
  91. package/es/form/index.mjs +2 -2
  92. package/es/form/provide.mjs +1 -1
  93. package/es/form-details/index.mjs +1 -1
  94. package/es/highlighter-provider/HighlighterProvider.mjs +2 -2
  95. package/es/highlighter-provider/index.mjs +1 -1
  96. package/es/highlighter-provider/provide.mjs +1 -1
  97. package/es/hover/index.mjs +12 -7
  98. package/es/hover-overlay/HoverOverlay.mjs +2 -2
  99. package/es/hover-overlay/index.mjs +2 -2
  100. package/es/icon/Icon.mjs +3 -3
  101. package/es/icon/index.mjs +1 -1
  102. package/es/image/Image.mjs +5 -5
  103. package/es/image/index.mjs +1 -1
  104. package/es/image-preview/ImagePreview.mjs +13 -14
  105. package/es/image-preview/index.mjs +2 -2
  106. package/es/image-preview/props.mjs +2 -2
  107. package/es/index-anchor/IndexAnchor.mjs +5 -5
  108. package/es/index-anchor/index.mjs +1 -1
  109. package/es/index-anchor/provide.mjs +1 -1
  110. package/es/index-bar/IndexBar.mjs +17 -13
  111. package/es/index-bar/index.mjs +1 -1
  112. package/es/index.bundle.mjs +1 -1
  113. package/es/index.mjs +1 -1
  114. package/es/input/Input.mjs +12 -12
  115. package/es/input/index.mjs +1 -1
  116. package/es/input/props.mjs +1 -1
  117. package/es/lazy/index.mjs +1 -1
  118. package/es/link/Link.mjs +2 -2
  119. package/es/link/index.mjs +1 -1
  120. package/es/list/List.mjs +10 -10
  121. package/es/list/index.mjs +1 -1
  122. package/es/list/provide.mjs +1 -1
  123. package/es/loading/Loading.mjs +2 -2
  124. package/es/loading/index.mjs +1 -1
  125. package/es/loading-bar/LoadingBar.mjs +1 -2
  126. package/es/loading-bar/index.mjs +1 -1
  127. package/es/locale/index.mjs +5 -5
  128. package/es/locale-provider/LocaleProvider.mjs +11 -8
  129. package/es/locale-provider/index.mjs +1 -1
  130. package/es/locale-provider/provide.mjs +1 -1
  131. package/es/menu/Menu.mjs +2 -2
  132. package/es/menu/index.mjs +1 -1
  133. package/es/menu/usePopover.mjs +6 -6
  134. package/es/menu-option/MenuOption.mjs +9 -9
  135. package/es/menu-option/index.mjs +1 -1
  136. package/es/menu-option/provide.mjs +1 -1
  137. package/es/menu-select/MenuChildren.mjs +21 -21
  138. package/es/menu-select/MenuSelect.mjs +9 -9
  139. package/es/menu-select/index.mjs +1 -1
  140. package/es/option/Option.mjs +5 -5
  141. package/es/option/index.mjs +1 -1
  142. package/es/option/provide.mjs +1 -1
  143. package/es/overlay/Overlay.mjs +4 -4
  144. package/es/overlay/index.mjs +1 -1
  145. package/es/pagination/Pagination.mjs +26 -18
  146. package/es/pagination/index.mjs +1 -1
  147. package/es/paper/Paper.mjs +3 -3
  148. package/es/paper/index.mjs +1 -1
  149. package/es/picker/Picker.mjs +9 -9
  150. package/es/picker/index.mjs +2 -2
  151. package/es/picker/props.mjs +1 -1
  152. package/es/popup/Popup.mjs +6 -6
  153. package/es/popup/index.mjs +1 -1
  154. package/es/progress/Progress.mjs +4 -4
  155. package/es/progress/index.mjs +1 -1
  156. package/es/pull-refresh/PullRefresh.mjs +10 -12
  157. package/es/pull-refresh/index.mjs +1 -1
  158. package/es/radio/Radio.mjs +10 -9
  159. package/es/radio/index.mjs +1 -1
  160. package/es/radio-group/RadioGroup.mjs +7 -6
  161. package/es/radio-group/index.mjs +1 -1
  162. package/es/rate/Rate.mjs +8 -8
  163. package/es/rate/index.mjs +1 -1
  164. package/es/rate/props.mjs +1 -1
  165. package/es/result/Result.mjs +7 -7
  166. package/es/result/index.mjs +1 -1
  167. package/es/ripple/index.mjs +1 -1
  168. package/es/row/Row.mjs +4 -4
  169. package/es/row/index.mjs +1 -1
  170. package/es/select/Select.mjs +13 -13
  171. package/es/select/index.mjs +1 -1
  172. package/es/select/props.mjs +1 -1
  173. package/es/skeleton/Skeleton.mjs +3 -3
  174. package/es/skeleton/index.mjs +1 -1
  175. package/es/slider/Slider.mjs +9 -9
  176. package/es/slider/index.mjs +1 -1
  177. package/es/snackbar/Snackbar.mjs +1 -1
  178. package/es/snackbar/core.mjs +8 -8
  179. package/es/snackbar/index.mjs +9 -8
  180. package/es/snackbar/props.mjs +1 -1
  181. package/es/snackbar/style/index.mjs +1 -1
  182. package/es/space/Space.mjs +2 -2
  183. package/es/space/index.mjs +1 -1
  184. package/es/step/Step.mjs +3 -3
  185. package/es/step/index.mjs +1 -1
  186. package/es/step/provide.mjs +1 -1
  187. package/es/steps/Steps.mjs +3 -3
  188. package/es/steps/index.mjs +1 -1
  189. package/es/sticky/Sticky.mjs +7 -7
  190. package/es/sticky/index.mjs +1 -1
  191. package/es/style-provider/StyleProvider.mjs +2 -2
  192. package/es/style-provider/index.mjs +2 -2
  193. package/es/swipe/Swipe.mjs +10 -10
  194. package/es/swipe/index.mjs +1 -1
  195. package/es/swipe-item/SwipeItem.mjs +1 -1
  196. package/es/swipe-item/index.mjs +1 -1
  197. package/es/swipe-item/provide.mjs +1 -1
  198. package/es/switch/Switch.mjs +6 -6
  199. package/es/switch/index.mjs +1 -1
  200. package/es/tab/Tab.mjs +4 -4
  201. package/es/tab/index.mjs +1 -1
  202. package/es/tab/provide.mjs +1 -1
  203. package/es/tab-item/TabItem.mjs +3 -3
  204. package/es/tab-item/index.mjs +1 -1
  205. package/es/tab-item/provide.mjs +1 -1
  206. package/es/table/Table.mjs +1 -1
  207. package/es/table/index.mjs +1 -1
  208. package/es/tabs/Tabs.mjs +9 -7
  209. package/es/tabs/index.mjs +1 -1
  210. package/es/tabs/props.mjs +1 -1
  211. package/es/tabs-items/TabsItems.mjs +4 -4
  212. package/es/tabs-items/index.mjs +1 -1
  213. package/es/themes/dark/index.mjs +33 -33
  214. package/es/themes/index.mjs +1 -1
  215. package/es/themes/md3-dark/index.mjs +45 -45
  216. package/es/themes/md3-light/index.mjs +39 -39
  217. package/es/time-picker/TimePicker.mjs +48 -24
  218. package/es/time-picker/clock.mjs +41 -19
  219. package/es/time-picker/index.mjs +1 -1
  220. package/es/time-picker/utils.mjs +13 -5
  221. package/es/tooltip/Tooltip.mjs +2 -2
  222. package/es/tooltip/index.mjs +1 -1
  223. package/es/uploader/Uploader.mjs +14 -14
  224. package/es/uploader/index.mjs +1 -1
  225. package/es/utils/components.mjs +5 -5
  226. package/es/utils/elements.mjs +9 -9
  227. package/es/utils/test.mjs +1 -1
  228. package/es/varlet.esm.js +20946 -20941
  229. package/es/watermark/Watermark.mjs +15 -17
  230. package/es/watermark/index.mjs +1 -1
  231. package/highlight/web-types.en-US.json +1 -1
  232. package/highlight/web-types.zh-CN.json +1 -1
  233. package/lib/varlet.cjs.js +25205 -25003
  234. package/package.json +7 -7
  235. package/types/actionSheet.d.ts +2 -2
  236. package/types/alert.d.ts +1 -1
  237. package/types/appBar.d.ts +1 -1
  238. package/types/autoComplete.d.ts +4 -4
  239. package/types/avatar.d.ts +1 -1
  240. package/types/avatarGroup.d.ts +1 -1
  241. package/types/backTop.d.ts +1 -1
  242. package/types/badge.d.ts +1 -1
  243. package/types/bottomNavigation.d.ts +2 -2
  244. package/types/bottomNavigationItem.d.ts +2 -2
  245. package/types/breadcrumb.d.ts +1 -1
  246. package/types/breadcrumbs.d.ts +1 -1
  247. package/types/button.d.ts +5 -5
  248. package/types/buttonGroup.d.ts +2 -2
  249. package/types/card.d.ts +1 -1
  250. package/types/cell.d.ts +1 -1
  251. package/types/checkbox.d.ts +1 -1
  252. package/types/checkboxGroup.d.ts +2 -2
  253. package/types/chip.d.ts +3 -3
  254. package/types/code.d.ts +1 -1
  255. package/types/col.d.ts +1 -1
  256. package/types/collapse.d.ts +1 -1
  257. package/types/collapseItem.d.ts +1 -1
  258. package/types/collapseTransition.d.ts +1 -1
  259. package/types/countTo.d.ts +1 -1
  260. package/types/countdown.d.ts +1 -1
  261. package/types/counter.d.ts +1 -1
  262. package/types/datePicker.d.ts +1 -1
  263. package/types/dialog.d.ts +1 -1
  264. package/types/divider.d.ts +1 -1
  265. package/types/drag.d.ts +1 -1
  266. package/types/ellipsis.d.ts +1 -1
  267. package/types/fab.d.ts +2 -2
  268. package/types/floatingPanel.d.ts +2 -2
  269. package/types/form.d.ts +1 -1
  270. package/types/formDetails.d.ts +1 -1
  271. package/types/highlighterProvider.d.ts +1 -1
  272. package/types/hover.d.ts +1 -1
  273. package/types/hoverOverlay.d.ts +1 -1
  274. package/types/icon.d.ts +1 -1
  275. package/types/image.d.ts +2 -2
  276. package/types/imagePreview.d.ts +2 -2
  277. package/types/indexAnchor.d.ts +1 -1
  278. package/types/indexBar.d.ts +1 -1
  279. package/types/input.d.ts +4 -4
  280. package/types/link.d.ts +1 -1
  281. package/types/list.d.ts +1 -1
  282. package/types/loading.d.ts +1 -1
  283. package/types/localeProvider.d.ts +2 -2
  284. package/types/menu.d.ts +2 -2
  285. package/types/menuOption.d.ts +1 -1
  286. package/types/menuSelect.d.ts +2 -2
  287. package/types/option.d.ts +1 -1
  288. package/types/overlay.d.ts +2 -2
  289. package/types/pagination.d.ts +1 -1
  290. package/types/paper.d.ts +1 -1
  291. package/types/picker.d.ts +3 -3
  292. package/types/popup.d.ts +2 -2
  293. package/types/progress.d.ts +1 -1
  294. package/types/pullRefresh.d.ts +1 -1
  295. package/types/radio.d.ts +1 -1
  296. package/types/radioGroup.d.ts +3 -3
  297. package/types/rate.d.ts +1 -1
  298. package/types/result.d.ts +1 -1
  299. package/types/row.d.ts +1 -1
  300. package/types/select.d.ts +3 -3
  301. package/types/skeleton.d.ts +1 -1
  302. package/types/slider.d.ts +4 -4
  303. package/types/snackbar.d.ts +2 -2
  304. package/types/space.d.ts +1 -1
  305. package/types/step.d.ts +1 -1
  306. package/types/steps.d.ts +3 -3
  307. package/types/sticky.d.ts +1 -1
  308. package/types/styleProvider.d.ts +2 -2
  309. package/types/swipe.d.ts +1 -1
  310. package/types/swipeItem.d.ts +1 -1
  311. package/types/switch.d.ts +1 -1
  312. package/types/tab.d.ts +1 -1
  313. package/types/tabItem.d.ts +1 -1
  314. package/types/table.d.ts +1 -1
  315. package/types/tabs.d.ts +3 -3
  316. package/types/tabsItems.d.ts +2 -2
  317. package/types/timePicker.d.ts +1 -1
  318. package/types/tooltip.d.ts +2 -2
  319. package/types/uploader.d.ts +2 -2
  320. package/types/watermark.d.ts +1 -1
  321. 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 Ripple from "../ripple/index.mjs";
22
- import VarIcon from "../icon/index.mjs";
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) return;
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
- return __async(this, null, function* () {
284
- clearTimeout(floater.value);
285
- clearTimeout(dropper);
286
- floater.value = null;
287
- floater.value = setTimeout(
288
- () => __async(this, null, function* () {
289
- const { width, height, left, top } = getRect(card.value);
290
- holderWidth.value = toSizeUnit(width);
291
- holderHeight.value = toSizeUnit(height);
292
- floaterWidth.value = holderWidth.value;
293
- floaterHeight.value = holderHeight.value;
294
- floaterTop.value = toSizeUnit(top);
295
- floaterLeft.value = toSizeUnit(left);
296
- floaterPosition.value = "fixed";
297
- dropdownFloaterTop = floaterTop.value;
298
- dropdownFloaterLeft = floaterLeft.value;
299
- showFloatingButtons.value = true;
300
- yield doubleRaf();
301
- floaterTop.value = "0";
302
- floaterLeft.value = "0";
303
- floaterWidth.value = "100vw";
304
- floaterHeight.value = "100vh";
305
- contentHeight.value = "auto";
306
- opacity.value = "1";
307
- floaterOverflow.value = "auto";
308
- floated.value = true;
309
- }),
310
- props2.ripple ? RIPPLE_DELAY : 0
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
@@ -1,5 +1,5 @@
1
- import Card from "./Card.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Card from "./Card.mjs";
3
3
  import { props as cardProps } from "./props.mjs";
4
4
  withInstall(Card);
5
5
  withPropsDefaultsSetter(Card, cardProps);
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 { call } from "@varlet/shared";
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
@@ -1,5 +1,5 @@
1
- import Cell from "./Cell.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Cell from "./Cell.mjs";
3
3
  import { props as cellProps } from "./props.mjs";
4
4
  withInstall(Cell);
5
5
  withPropsDefaultsSetter(Cell, cellProps);
package/es/cell/props.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { defineListenerProp, pickProps } from "../utils/components.mjs";
2
1
  import { iconProps } from "../icon/index.mjs";
2
+ import { defineListenerProp, pickProps } from "../utils/components.mjs";
3
3
  const props = {
4
4
  title: String,
5
5
  icon: pickProps(iconProps, "name"),
@@ -1,15 +1,15 @@
1
- import VarIcon from "../icon/index.mjs";
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 Ripple from "../ripple/index.mjs";
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 { defineComponent, ref, computed, nextTick } from "vue";
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"];
@@ -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 VarFormDetails from "../form-details/index.mjs";
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 { defineComponent, computed, watch, nextTick } from "vue";
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 { call } from "@varlet/shared";
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, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, Transition as _Transition, withCtx as _withCtx, createBlock as _createBlock } from "vue";
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
@@ -1,5 +1,5 @@
1
- import Chip from "./Chip.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Chip from "./Chip.mjs";
3
3
  import { props as chipProps } from "./props.mjs";
4
4
  withInstall(Chip);
5
5
  withPropsDefaultsSetter(Chip, chipProps);
package/es/chip/props.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { defineListenerProp, pickProps } from "../utils/components.mjs";
2
1
  import { iconProps } from "../icon/index.mjs";
2
+ import { defineListenerProp, pickProps } from "../utils/components.mjs";
3
3
  const props = {
4
4
  type: {
5
5
  type: String,
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
@@ -1,5 +1,5 @@
1
- import Code from "./Code.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Code from "./Code.mjs";
3
3
  import { props as codeProps } from "./props.mjs";
4
4
  withInstall(Code);
5
5
  withPropsDefaultsSetter(Code, codeProps);
package/es/col/Col.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { defineComponent, computed } from "vue";
2
- import { isPlainObject, toNumber, call } from "@varlet/shared";
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
@@ -1,5 +1,5 @@
1
- import Col from "./Col.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Col from "./Col.mjs";
3
3
  import { props as colProps } from "./props.mjs";
4
4
  withInstall(Col);
5
5
  withPropsDefaultsSetter(Col, colProps);
@@ -1,8 +1,8 @@
1
1
  import { computed, defineComponent, nextTick, watch } from "vue";
2
- import { useCollapseItem } from "./provide.mjs";
3
- import { props } from "./props.mjs";
2
+ import { call, normalizeToArray, removeArrayBlank } from "@varlet/shared";
4
3
  import { createNamespace } from "../utils/components.mjs";
5
- import { normalizeToArray, call, removeArrayBlank } from "@varlet/shared";
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) return;
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;
@@ -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 { useCollapseTransition } from "../collapse-transition/useCollapseTransition.mjs";
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, computed } from "vue";
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;
@@ -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() {
@@ -1,6 +1,6 @@
1
1
  import { getCurrentInstance, watch } from "vue";
2
2
  import { removeItem } from "@varlet/shared";
3
- import { onSmartUnmounted, onSmartMounted } from "@varlet/use";
3
+ import { onSmartMounted, onSmartUnmounted } from "@varlet/use";
4
4
  const stack = [];
5
5
  function useStack(activeGetter, zIndex) {
6
6
  const { uid } = getCurrentInstance();
@@ -1,5 +1,5 @@
1
+ import { ref, watch } from "vue";
1
2
  import context from "./index.mjs";
2
- import { watch, ref } from "vue";
3
3
  function useZIndex(source, count) {
4
4
  const zIndex = ref(context.zIndex);
5
5
  watch(
@@ -1,8 +1,8 @@
1
- import { defineComponent, computed, onMounted, watch } from "vue";
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) {
@@ -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 { props } from "./props.mjs";
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 { toNumber, requestAnimationFrame, cancelAnimationFrame, call } from "@varlet/shared";
5
+ import { props } from "./props.mjs";
6
6
  const { name, n } = createNamespace("countdown");
7
7
  const SECOND = 1e3;
8
8
  const MINUTE = 60 * SECOND;
@@ -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);
@@ -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 { defineComponent, ref, watch, computed, nextTick } from "vue";
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 { useForm } from "../form/provide.mjs";
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]
@@ -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);