@vuetify/nightly 3.7.5-dev.2024-12-03 → 3.7.5-master.2024-12-11

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 (258) hide show
  1. package/dist/json/attributes.json +1004 -1012
  2. package/dist/json/importMap-labs.json +12 -12
  3. package/dist/json/importMap.json +136 -136
  4. package/dist/json/tags.json +0 -2
  5. package/dist/json/web-types.json +2130 -2148
  6. package/dist/vuetify-labs.css +2628 -2630
  7. package/dist/vuetify-labs.d.ts +13860 -3035
  8. package/dist/vuetify-labs.esm.js +18 -29
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +18 -29
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +1038 -1040
  13. package/dist/vuetify.d.ts +11444 -2270
  14. package/dist/vuetify.esm.js +18 -29
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +18 -29
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +18 -17
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VAlert/VAlert.mjs +1 -1
  22. package/lib/components/VAlert/index.d.mts +86 -8
  23. package/lib/components/VApp/index.d.mts +20 -4
  24. package/lib/components/VAppBar/VAppBar.mjs +1 -1
  25. package/lib/components/VAppBar/VAppBarNavIcon.mjs +1 -1
  26. package/lib/components/VAppBar/VAppBarTitle.mjs +1 -1
  27. package/lib/components/VAppBar/index.d.mts +148 -12
  28. package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -1
  29. package/lib/components/VAutocomplete/index.d.mts +1380 -221
  30. package/lib/components/VAvatar/index.d.mts +31 -4
  31. package/lib/components/VBadge/VBadge.mjs +1 -1
  32. package/lib/components/VBadge/index.d.mts +41 -4
  33. package/lib/components/VBanner/VBanner.mjs +1 -1
  34. package/lib/components/VBanner/index.d.mts +88 -12
  35. package/lib/components/VBottomNavigation/index.d.mts +32 -4
  36. package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
  37. package/lib/components/VBottomSheet/index.d.mts +88 -4
  38. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +1 -1
  39. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +1 -1
  40. package/lib/components/VBreadcrumbs/index.d.mts +65 -12
  41. package/lib/components/VBtn/VBtn.mjs +1 -1
  42. package/lib/components/VBtn/index.d.mts +72 -4
  43. package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -1
  44. package/lib/components/VBtnGroup/index.d.mts +28 -4
  45. package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -1
  46. package/lib/components/VBtnToggle/index.d.mts +24 -4
  47. package/lib/components/VCard/VCard.mjs +1 -1
  48. package/lib/components/VCard/VCardItem.mjs +1 -1
  49. package/lib/components/VCard/VCardSubtitle.mjs +1 -1
  50. package/lib/components/VCard/VCardText.mjs +1 -1
  51. package/lib/components/VCard/index.d.mts +190 -24
  52. package/lib/components/VCarousel/VCarousel.mjs +1 -1
  53. package/lib/components/VCarousel/VCarouselItem.mjs +1 -1
  54. package/lib/components/VCarousel/index.d.mts +86 -8
  55. package/lib/components/VCheckbox/VCheckbox.mjs +1 -1
  56. package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -1
  57. package/lib/components/VCheckbox/index.d.mts +90 -8
  58. package/lib/components/VChip/VChip.mjs +9 -16
  59. package/lib/components/VChip/VChip.mjs.map +1 -1
  60. package/lib/components/VChip/index.d.mts +105 -9
  61. package/lib/components/VChipGroup/VChipGroup.mjs +1 -3
  62. package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
  63. package/lib/components/VChipGroup/index.d.mts +28 -9
  64. package/lib/components/VCode/index.d.mts +18 -4
  65. package/lib/components/VColorPicker/VColorPicker.mjs +1 -1
  66. package/lib/components/VColorPicker/index.d.mts +68 -4
  67. package/lib/components/VCombobox/VCombobox.mjs +1 -1
  68. package/lib/components/VCombobox/index.d.mts +1380 -221
  69. package/lib/components/VConfirmEdit/VConfirmEdit.mjs +1 -1
  70. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs +1 -1
  71. package/lib/components/VConfirmEdit/index.d.mts +13 -6
  72. package/lib/components/VCounter/VCounter.mjs +1 -1
  73. package/lib/components/VCounter/index.d.mts +31 -9
  74. package/lib/components/VDataIterator/index.d.mts +56 -12
  75. package/lib/components/VDataTable/VDataTable.mjs +1 -1
  76. package/lib/components/VDataTable/VDataTableFooter.mjs +1 -1
  77. package/lib/components/VDataTable/VDataTableGroupHeaderRow.mjs +1 -1
  78. package/lib/components/VDataTable/VDataTableHeaders.mjs +1 -1
  79. package/lib/components/VDataTable/VDataTableRow.mjs +1 -1
  80. package/lib/components/VDataTable/VDataTableRows.mjs +1 -1
  81. package/lib/components/VDataTable/VDataTableServer.mjs +1 -1
  82. package/lib/components/VDataTable/VDataTableVirtual.mjs +1 -1
  83. package/lib/components/VDataTable/index.d.mts +388 -36
  84. package/lib/components/VDatePicker/VDatePicker.mjs +1 -1
  85. package/lib/components/VDatePicker/VDatePickerMonth.mjs +1 -1
  86. package/lib/components/VDatePicker/VDatePickerMonths.mjs +1 -1
  87. package/lib/components/VDatePicker/VDatePickerYears.mjs +1 -1
  88. package/lib/components/VDatePicker/index.d.mts +276 -24
  89. package/lib/components/VDefaultsProvider/index.d.mts +20 -4
  90. package/lib/components/VDialog/VDialog.mjs +1 -1
  91. package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +1 -1
  92. package/lib/components/VDialog/index.d.mts +389 -143
  93. package/lib/components/VDivider/index.d.mts +24 -4
  94. package/lib/components/VEmptyState/VEmptyState.mjs +1 -1
  95. package/lib/components/VEmptyState/index.d.mts +66 -4
  96. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +1 -1
  97. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +1 -1
  98. package/lib/components/VExpansionPanel/index.d.mts +152 -16
  99. package/lib/components/VFab/VFab.mjs +1 -1
  100. package/lib/components/VFab/index.d.mts +78 -9
  101. package/lib/components/VField/VField.mjs +1 -1
  102. package/lib/components/VField/VFieldLabel.mjs +1 -1
  103. package/lib/components/VField/index.d.mts +59 -11
  104. package/lib/components/VFileInput/VFileInput.mjs +1 -1
  105. package/lib/components/VFileInput/index.d.mts +256 -71
  106. package/lib/components/VFooter/VFooter.mjs +1 -1
  107. package/lib/components/VFooter/index.d.mts +29 -4
  108. package/lib/components/VForm/index.d.mts +175 -267
  109. package/lib/components/VGrid/VContainer.mjs +1 -1
  110. package/lib/components/VGrid/index.d.mts +118 -16
  111. package/lib/components/VHover/index.d.mts +33 -4
  112. package/lib/components/VIcon/index.d.mts +75 -17
  113. package/lib/components/VImg/VImg.mjs +1 -1
  114. package/lib/components/VImg/index.d.mts +74 -19
  115. package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs +1 -1
  116. package/lib/components/VInfiniteScroll/index.d.mts +46 -4
  117. package/lib/components/VInput/VInput.mjs +1 -1
  118. package/lib/components/VInput/index.d.mts +37 -4
  119. package/lib/components/VItemGroup/index.d.mts +65 -8
  120. package/lib/components/VKbd/index.d.mts +18 -4
  121. package/lib/components/VLabel/index.d.mts +20 -4
  122. package/lib/components/VLayout/index.d.mts +48 -8
  123. package/lib/components/VLazy/VLazy.mjs +1 -1
  124. package/lib/components/VLazy/index.d.mts +31 -4
  125. package/lib/components/VList/VList.mjs +1 -1
  126. package/lib/components/VList/VListChildren.mjs +1 -1
  127. package/lib/components/VList/VListGroup.mjs +1 -1
  128. package/lib/components/VList/VListItem.mjs +1 -1
  129. package/lib/components/VList/VListItemAction.mjs +1 -1
  130. package/lib/components/VList/VListItemMedia.mjs +1 -1
  131. package/lib/components/VList/VListItemSubtitle.mjs +1 -1
  132. package/lib/components/VList/index.d.mts +291 -48
  133. package/lib/components/VLocaleProvider/index.d.mts +21 -4
  134. package/lib/components/VMain/index.d.mts +25 -4
  135. package/lib/components/VMenu/VMenu.mjs +1 -1
  136. package/lib/components/VMenu/index.d.mts +397 -155
  137. package/lib/components/VMessages/index.d.mts +27 -4
  138. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +1 -1
  139. package/lib/components/VNavigationDrawer/index.d.mts +62 -7
  140. package/lib/components/VOtpInput/VOtpInput.mjs +1 -1
  141. package/lib/components/VOtpInput/index.d.mts +52 -7
  142. package/lib/components/VOverlay/VOverlay.mjs +1 -1
  143. package/lib/components/VOverlay/index.d.mts +101 -19
  144. package/lib/components/VPagination/VPagination.mjs +1 -1
  145. package/lib/components/VPagination/index.d.mts +64 -4
  146. package/lib/components/VParallax/VParallax.mjs +1 -1
  147. package/lib/components/VParallax/index.d.mts +27 -4
  148. package/lib/components/VProgressCircular/index.d.mts +34 -4
  149. package/lib/components/VProgressLinear/index.d.mts +54 -4
  150. package/lib/components/VRadio/VRadio.mjs +1 -1
  151. package/lib/components/VRadio/index.d.mts +68 -4
  152. package/lib/components/VRadioGroup/VRadioGroup.mjs +1 -1
  153. package/lib/components/VRadioGroup/index.d.mts +48 -4
  154. package/lib/components/VRangeSlider/VRangeSlider.mjs +3 -3
  155. package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
  156. package/lib/components/VRangeSlider/index.d.mts +107 -4
  157. package/lib/components/VRating/VRating.mjs +1 -1
  158. package/lib/components/VRating/index.d.mts +42 -4
  159. package/lib/components/VResponsive/index.d.mts +29 -4
  160. package/lib/components/VSelect/VSelect.mjs +1 -1
  161. package/lib/components/VSelect/index.d.mts +1372 -220
  162. package/lib/components/VSelectionControl/VSelectionControl.css +1 -3
  163. package/lib/components/VSelectionControl/VSelectionControl.mjs +1 -1
  164. package/lib/components/VSelectionControl/VSelectionControl.sass +1 -5
  165. package/lib/components/VSelectionControl/index.d.mts +37 -10
  166. package/lib/components/VSelectionControlGroup/index.d.mts +26 -4
  167. package/lib/components/VSheet/VSheet.mjs +1 -1
  168. package/lib/components/VSheet/index.d.mts +32 -4
  169. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +1 -1
  170. package/lib/components/VSkeletonLoader/index.d.mts +28 -4
  171. package/lib/components/VSlideGroup/index.d.mts +70 -14
  172. package/lib/components/VSlider/VSlider.mjs +1 -1
  173. package/lib/components/VSlider/VSliderThumb.mjs +1 -1
  174. package/lib/components/VSlider/index.d.mts +106 -4
  175. package/lib/components/VSnackbar/VSnackbar.mjs +1 -1
  176. package/lib/components/VSnackbar/index.d.mts +398 -152
  177. package/lib/components/VSparkline/VBarline.mjs +2 -1
  178. package/lib/components/VSparkline/VBarline.mjs.map +1 -1
  179. package/lib/components/VSparkline/VSparkline.mjs +1 -1
  180. package/lib/components/VSparkline/VTrendline.mjs +2 -1
  181. package/lib/components/VSparkline/VTrendline.mjs.map +1 -1
  182. package/lib/components/VSparkline/index.d.mts +49 -4
  183. package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
  184. package/lib/components/VSpeedDial/index.d.mts +85 -4
  185. package/lib/components/VStepper/VStepper.mjs +1 -1
  186. package/lib/components/VStepper/VStepperItem.mjs +1 -1
  187. package/lib/components/VStepper/VStepperWindow.mjs +1 -1
  188. package/lib/components/VStepper/VStepperWindowItem.mjs +1 -1
  189. package/lib/components/VStepper/index.d.mts +250 -24
  190. package/lib/components/VSwitch/VSwitch.mjs +1 -1
  191. package/lib/components/VSwitch/index.d.mts +59 -4
  192. package/lib/components/VSystemBar/VSystemBar.mjs +1 -1
  193. package/lib/components/VSystemBar/index.d.mts +28 -4
  194. package/lib/components/VTable/index.d.mts +33 -4
  195. package/lib/components/VTabs/VTab.mjs +1 -1
  196. package/lib/components/VTabs/VTabs.mjs +1 -1
  197. package/lib/components/VTabs/VTabsWindow.mjs +1 -1
  198. package/lib/components/VTabs/VTabsWindowItem.mjs +1 -1
  199. package/lib/components/VTabs/index.d.mts +394 -98
  200. package/lib/components/VTextField/VTextField.mjs +1 -1
  201. package/lib/components/VTextField/index.d.mts +374 -152
  202. package/lib/components/VTextarea/VTextarea.mjs +1 -1
  203. package/lib/components/VTextarea/index.d.mts +244 -71
  204. package/lib/components/VThemeProvider/index.d.mts +20 -4
  205. package/lib/components/VTimeline/VTimeline.mjs +1 -1
  206. package/lib/components/VTimeline/VTimelineDivider.mjs +1 -1
  207. package/lib/components/VTimeline/VTimelineItem.mjs +1 -1
  208. package/lib/components/VTimeline/index.d.mts +75 -8
  209. package/lib/components/VToolbar/VToolbar.mjs +1 -1
  210. package/lib/components/VToolbar/index.d.mts +90 -12
  211. package/lib/components/VTooltip/VTooltip.mjs +1 -1
  212. package/lib/components/VTooltip/index.d.mts +386 -147
  213. package/lib/components/VValidation/index.d.mts +24 -10
  214. package/lib/components/VVirtualScroll/VVirtualScroll.mjs +1 -1
  215. package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +1 -1
  216. package/lib/components/VVirtualScroll/index.d.mts +15 -4
  217. package/lib/components/VWindow/VWindow.mjs +1 -1
  218. package/lib/components/VWindow/VWindowItem.mjs +1 -1
  219. package/lib/components/VWindow/index.d.mts +47 -8
  220. package/lib/components/index.d.mts +11705 -2531
  221. package/lib/components/transitions/dialog-transition.mjs +2 -1
  222. package/lib/components/transitions/dialog-transition.mjs.map +1 -1
  223. package/lib/components/transitions/index.d.mts +309 -64
  224. package/lib/composables/icons.mjs +1 -1
  225. package/lib/composables/variant.mjs +1 -1
  226. package/lib/composables/virtual.mjs +5 -1
  227. package/lib/composables/virtual.mjs.map +1 -1
  228. package/lib/entry-bundler.mjs +1 -1
  229. package/lib/entry-bundler.mjs.map +1 -1
  230. package/lib/framework.mjs +1 -1
  231. package/lib/framework.mjs.map +1 -1
  232. package/lib/index.d.mts +49 -49
  233. package/lib/labs/VCalendar/VCalendar.mjs +1 -1
  234. package/lib/labs/VCalendar/VCalendarDay.mjs +1 -1
  235. package/lib/labs/VCalendar/index.d.mts +211 -24
  236. package/lib/labs/VDateInput/VDateInput.mjs +1 -1
  237. package/lib/labs/VDateInput/index.d.mts +115 -4
  238. package/lib/labs/VNumberInput/VNumberInput.mjs +1 -1
  239. package/lib/labs/VNumberInput/index.d.mts +1267 -564
  240. package/lib/labs/VPicker/VPicker.mjs +1 -1
  241. package/lib/labs/VPicker/index.d.mts +63 -8
  242. package/lib/labs/VPullToRefresh/index.d.mts +35 -4
  243. package/lib/labs/VSnackbarQueue/VSnackbarQueue.mjs +1 -1
  244. package/lib/labs/VSnackbarQueue/index.d.mts +453 -156
  245. package/lib/labs/VStepperVertical/VStepperVertical.mjs +1 -1
  246. package/lib/labs/VStepperVertical/VStepperVerticalActions.mjs +1 -1
  247. package/lib/labs/VStepperVertical/VStepperVerticalItem.mjs +1 -1
  248. package/lib/labs/VStepperVertical/index.d.mts +227 -12
  249. package/lib/labs/VTimePicker/VTimePicker.mjs +1 -1
  250. package/lib/labs/VTimePicker/VTimePickerControls.mjs +1 -1
  251. package/lib/labs/VTimePicker/index.d.mts +122 -12
  252. package/lib/labs/VTreeview/VTreeview.mjs +1 -1
  253. package/lib/labs/VTreeview/VTreeviewChildren.mjs +1 -1
  254. package/lib/labs/VTreeview/VTreeviewGroup.mjs +1 -1
  255. package/lib/labs/VTreeview/VTreeviewItem.mjs +1 -1
  256. package/lib/labs/VTreeview/index.d.mts +205 -18
  257. package/lib/labs/components.d.mts +2856 -959
  258. package/package.json +4 -5
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
1
+ import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  // Icons
3
3
  import { aliases, mdi } from "../iconsets/mdi.mjs"; // Utilities
4
4
  import { computed, inject, unref } from 'vue';
@@ -1,4 +1,4 @@
1
- import { Fragment as _Fragment, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, Fragment as _Fragment } from "vue";
2
2
  // Composables
3
3
  import { useColor } from "./color.mjs"; // Utilities
4
4
  import { computed, unref } from 'vue';
@@ -122,6 +122,7 @@ export function useVirtual(props, items) {
122
122
  }
123
123
  }
124
124
  });
125
+ let scrollTimeout = -1;
125
126
  function handleScroll() {
126
127
  if (!containerRef.value || !markerRef.value) return;
127
128
  const scrollTop = containerRef.value.scrollTop;
@@ -138,12 +139,15 @@ export function useVirtual(props, items) {
138
139
  }
139
140
  lastScrollTop = scrollTop;
140
141
  lastScrollTime = scrollTime;
142
+ window.clearTimeout(scrollTimeout);
143
+ scrollTimeout = window.setTimeout(handleScrollend, 500);
141
144
  calculateVisibleItems();
142
145
  }
143
146
  function handleScrollend() {
144
147
  if (!containerRef.value || !markerRef.value) return;
145
148
  scrollVelocity = 0;
146
149
  lastScrollTime = 0;
150
+ window.clearTimeout(scrollTimeout);
147
151
  calculateVisibleItems();
148
152
  }
149
153
  let raf = -1;
@@ -202,7 +206,7 @@ export function useVirtual(props, items) {
202
206
  updateOffsets.immediate();
203
207
  calculateVisibleItems();
204
208
  }, {
205
- deep: 1
209
+ deep: true
206
210
  });
207
211
  return {
208
212
  calculateVisibleItems,
@@ -1 +1 @@
1
- {"version":3,"file":"virtual.mjs","names":["useDisplay","useResizeObserver","computed","nextTick","onScopeDispose","ref","shallowRef","watch","watchEffect","clamp","debounce","IN_BROWSER","propsFactory","UP","DOWN","BUFFER_PX","makeVirtualProps","itemHeight","type","Number","String","default","height","useVirtual","props","items","display","value","parseFloat","first","last","Math","ceil","parseInt","paddingTop","paddingBottom","containerRef","markerRef","markerOffset","resizeRef","contentRect","viewportHeight","document","documentElement","hasInitialRender","sizes","Array","from","length","offsets","updateTime","targetScrollIndex","getSize","index","updateOffsets","start","performance","now","i","max","unwatch","v","offsetTop","immediate","calculateVisibleItems","window","requestAnimationFrame","scrollToIndex","clear","handleItemResize","prevHeight","prevMinHeight","min","calculateOffset","calculateIndex","scrollTop","binaryClosest","lastScrollTop","scrollVelocity","lastScrollTime","val","oldVal","handleScroll","scrollTime","scrollDeltaT","sign","handleScrollend","raf","cancelAnimationFrame","_calculateVisibleItems","direction","startPx","endPx","end","topOverflow","bottomOverflow","bufferOverflow","offset","computedItems","slice","map","item","raw","deep","arr","high","low","mid","target"],"sources":["../../src/composables/virtual.ts"],"sourcesContent":["// Composables\nimport { useDisplay } from '@/composables/display'\nimport { useResizeObserver } from '@/composables/resizeObserver'\n\n// Utilities\nimport { computed, nextTick, onScopeDispose, ref, shallowRef, watch, watchEffect } from 'vue'\nimport { clamp, debounce, IN_BROWSER, propsFactory } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\nconst UP = -1\nconst DOWN = 1\n\n/** Determines how large each batch of items should be */\nconst BUFFER_PX = 100\n\ntype VirtualProps = {\n itemHeight?: number | string\n height?: number | string\n}\n\nexport const makeVirtualProps = propsFactory({\n itemHeight: {\n type: [Number, String],\n default: null,\n },\n height: [Number, String],\n}, 'virtual')\n\nexport function useVirtual <T> (props: VirtualProps, items: Ref<readonly T[]>) {\n const display = useDisplay()\n\n const itemHeight = shallowRef(0)\n watchEffect(() => {\n itemHeight.value = parseFloat(props.itemHeight || 0)\n })\n\n const first = shallowRef(0)\n const last = shallowRef(Math.ceil(\n // Assume 16px items filling the entire screen height if\n // not provided. This is probably incorrect but it minimises\n // the chance of ending up with empty space at the bottom.\n // The default value is set here to avoid poisoning getSize()\n (parseInt(props.height!) || display.height.value) / (itemHeight.value || 16)\n ) || 1)\n const paddingTop = shallowRef(0)\n const paddingBottom = shallowRef(0)\n\n /** The scrollable element */\n const containerRef = ref<HTMLElement>()\n /** An element marking the top of the scrollable area,\n * used to add an offset if there's padding or other elements above the virtual list */\n const markerRef = ref<HTMLElement>()\n /** markerRef's offsetTop, lazily evaluated */\n let markerOffset = 0\n\n const { resizeRef, contentRect } = useResizeObserver()\n watchEffect(() => {\n resizeRef.value = containerRef.value\n })\n const viewportHeight = computed(() => {\n return containerRef.value === document.documentElement\n ? display.height.value\n : contentRect.value?.height || parseInt(props.height!) || 0\n })\n /** All static elements have been rendered and we have an assumed item height */\n const hasInitialRender = computed(() => {\n return !!(containerRef.value && markerRef.value && viewportHeight.value && itemHeight.value)\n })\n\n let sizes = Array.from<number | null>({ length: items.value.length })\n let offsets = Array.from<number>({ length: items.value.length })\n const updateTime = shallowRef(0)\n let targetScrollIndex = -1\n\n function getSize (index: number) {\n return sizes[index] || itemHeight.value\n }\n\n const updateOffsets = debounce(() => {\n const start = performance.now()\n offsets[0] = 0\n const length = items.value.length\n for (let i = 1; i <= length - 1; i++) {\n offsets[i] = (offsets[i - 1] || 0) + getSize(i - 1)\n }\n updateTime.value = Math.max(updateTime.value, performance.now() - start)\n }, updateTime)\n\n const unwatch = watch(hasInitialRender, v => {\n if (!v) return\n // First render is complete, update offsets and visible\n // items in case our assumed item height was incorrect\n\n unwatch()\n markerOffset = markerRef.value!.offsetTop\n updateOffsets.immediate()\n calculateVisibleItems()\n\n if (!~targetScrollIndex) return\n\n nextTick(() => {\n IN_BROWSER && window.requestAnimationFrame(() => {\n scrollToIndex(targetScrollIndex)\n targetScrollIndex = -1\n })\n })\n })\n\n onScopeDispose(() => {\n updateOffsets.clear()\n })\n\n function handleItemResize (index: number, height: number) {\n const prevHeight = sizes[index]\n const prevMinHeight = itemHeight.value\n\n itemHeight.value = prevMinHeight ? Math.min(itemHeight.value, height) : height\n\n if (prevHeight !== height || prevMinHeight !== itemHeight.value) {\n sizes[index] = height\n updateOffsets()\n }\n }\n\n function calculateOffset (index: number) {\n index = clamp(index, 0, items.value.length - 1)\n return offsets[index] || 0\n }\n\n function calculateIndex (scrollTop: number) {\n return binaryClosest(offsets, scrollTop)\n }\n\n let lastScrollTop = 0\n let scrollVelocity = 0\n let lastScrollTime = 0\n\n watch(viewportHeight, (val, oldVal) => {\n if (oldVal) {\n calculateVisibleItems()\n if (val < oldVal) {\n requestAnimationFrame(() => {\n scrollVelocity = 0\n calculateVisibleItems()\n })\n }\n }\n })\n\n function handleScroll () {\n if (!containerRef.value || !markerRef.value) return\n\n const scrollTop = containerRef.value.scrollTop\n const scrollTime = performance.now()\n const scrollDeltaT = scrollTime - lastScrollTime\n\n if (scrollDeltaT > 500) {\n scrollVelocity = Math.sign(scrollTop - lastScrollTop)\n\n // Not super important, only update at the\n // start of a scroll sequence to avoid reflows\n markerOffset = markerRef.value.offsetTop\n } else {\n scrollVelocity = scrollTop - lastScrollTop\n }\n\n lastScrollTop = scrollTop\n lastScrollTime = scrollTime\n\n calculateVisibleItems()\n }\n function handleScrollend () {\n if (!containerRef.value || !markerRef.value) return\n\n scrollVelocity = 0\n lastScrollTime = 0\n\n calculateVisibleItems()\n }\n\n let raf = -1\n function calculateVisibleItems () {\n cancelAnimationFrame(raf)\n raf = requestAnimationFrame(_calculateVisibleItems)\n }\n function _calculateVisibleItems () {\n if (!containerRef.value || !viewportHeight.value) return\n const scrollTop = lastScrollTop - markerOffset\n const direction = Math.sign(scrollVelocity)\n\n const startPx = Math.max(0, scrollTop - BUFFER_PX)\n const start = clamp(calculateIndex(startPx), 0, items.value.length)\n\n const endPx = scrollTop + viewportHeight.value + BUFFER_PX\n const end = clamp(calculateIndex(endPx) + 1, start + 1, items.value.length)\n\n if (\n // Only update the side we're scrolling towards,\n // the other side will be updated incidentally\n (direction !== UP || start < first.value) &&\n (direction !== DOWN || end > last.value)\n ) {\n const topOverflow = calculateOffset(first.value) - calculateOffset(start)\n const bottomOverflow = calculateOffset(end) - calculateOffset(last.value)\n const bufferOverflow = Math.max(topOverflow, bottomOverflow)\n\n if (bufferOverflow > BUFFER_PX) {\n first.value = start\n last.value = end\n } else {\n // Only update the side that's reached its limit if there's still buffer left\n if (start <= 0) first.value = start\n if (end >= items.value.length) last.value = end\n }\n }\n\n paddingTop.value = calculateOffset(first.value)\n paddingBottom.value = calculateOffset(items.value.length) - calculateOffset(last.value)\n }\n\n function scrollToIndex (index: number) {\n const offset = calculateOffset(index)\n if (!containerRef.value || (index && !offset)) {\n targetScrollIndex = index\n } else {\n containerRef.value.scrollTop = offset\n }\n }\n\n const computedItems = computed(() => {\n return items.value.slice(first.value, last.value).map((item, index) => ({\n raw: item,\n index: index + first.value,\n }))\n })\n\n watch(items, () => {\n sizes = Array.from({ length: items.value.length })\n offsets = Array.from({ length: items.value.length })\n updateOffsets.immediate()\n calculateVisibleItems()\n }, { deep: 1 })\n\n return {\n calculateVisibleItems,\n containerRef,\n markerRef,\n computedItems,\n paddingTop,\n paddingBottom,\n scrollToIndex,\n handleScroll,\n handleScrollend,\n handleItemResize,\n }\n}\n\n// https://gist.github.com/robertleeplummerjr/1cc657191d34ecd0a324\nfunction binaryClosest (arr: ArrayLike<number>, val: number) {\n let high = arr.length - 1\n let low = 0\n let mid = 0\n let item = null\n let target = -1\n\n if (arr[high]! < val) {\n return high\n }\n\n while (low <= high) {\n mid = (low + high) >> 1\n item = arr[mid]!\n\n if (item > val) {\n high = mid - 1\n } else if (item < val) {\n target = mid\n low = mid + 1\n } else if (item === val) {\n return mid\n } else {\n return low\n }\n }\n\n return target\n}\n"],"mappings":"AAAA;AAAA,SACSA,UAAU;AAAA,SACVC,iBAAiB,gCAE1B;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,cAAc,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,EAAEC,WAAW,QAAQ,KAAK;AAAA,SACpFC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,YAAY,6BAElD;AAGA,MAAMC,EAAE,GAAG,CAAC,CAAC;AACb,MAAMC,IAAI,GAAG,CAAC;;AAEd;AACA,MAAMC,SAAS,GAAG,GAAG;AAOrB,OAAO,MAAMC,gBAAgB,GAAGJ,YAAY,CAAC;EAC3CK,UAAU,EAAE;IACVC,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,CAAC;IACtBC,OAAO,EAAE;EACX,CAAC;EACDC,MAAM,EAAE,CAACH,MAAM,EAAEC,MAAM;AACzB,CAAC,EAAE,SAAS,CAAC;AAEb,OAAO,SAASG,UAAUA,CAAMC,KAAmB,EAAEC,KAAwB,EAAE;EAC7E,MAAMC,OAAO,GAAG1B,UAAU,CAAC,CAAC;EAE5B,MAAMiB,UAAU,GAAGX,UAAU,CAAC,CAAC,CAAC;EAChCE,WAAW,CAAC,MAAM;IAChBS,UAAU,CAAC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}
1
+ {"version":3,"file":"virtual.mjs","names":["useDisplay","useResizeObserver","computed","nextTick","onScopeDispose","ref","shallowRef","watch","watchEffect","clamp","debounce","IN_BROWSER","propsFactory","UP","DOWN","BUFFER_PX","makeVirtualProps","itemHeight","type","Number","String","default","height","useVirtual","props","items","display","value","parseFloat","first","last","Math","ceil","parseInt","paddingTop","paddingBottom","containerRef","markerRef","markerOffset","resizeRef","contentRect","viewportHeight","document","documentElement","hasInitialRender","sizes","Array","from","length","offsets","updateTime","targetScrollIndex","getSize","index","updateOffsets","start","performance","now","i","max","unwatch","v","offsetTop","immediate","calculateVisibleItems","window","requestAnimationFrame","scrollToIndex","clear","handleItemResize","prevHeight","prevMinHeight","min","calculateOffset","calculateIndex","scrollTop","binaryClosest","lastScrollTop","scrollVelocity","lastScrollTime","val","oldVal","scrollTimeout","handleScroll","scrollTime","scrollDeltaT","sign","clearTimeout","setTimeout","handleScrollend","raf","cancelAnimationFrame","_calculateVisibleItems","direction","startPx","endPx","end","topOverflow","bottomOverflow","bufferOverflow","offset","computedItems","slice","map","item","raw","deep","arr","high","low","mid","target"],"sources":["../../src/composables/virtual.ts"],"sourcesContent":["// Composables\nimport { useDisplay } from '@/composables/display'\nimport { useResizeObserver } from '@/composables/resizeObserver'\n\n// Utilities\nimport { computed, nextTick, onScopeDispose, ref, shallowRef, watch, watchEffect } from 'vue'\nimport { clamp, debounce, IN_BROWSER, propsFactory } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\nconst UP = -1\nconst DOWN = 1\n\n/** Determines how large each batch of items should be */\nconst BUFFER_PX = 100\n\ntype VirtualProps = {\n itemHeight?: number | string\n height?: number | string\n}\n\nexport const makeVirtualProps = propsFactory({\n itemHeight: {\n type: [Number, String],\n default: null,\n },\n height: [Number, String],\n}, 'virtual')\n\nexport function useVirtual <T> (props: VirtualProps, items: Ref<readonly T[]>) {\n const display = useDisplay()\n\n const itemHeight = shallowRef(0)\n watchEffect(() => {\n itemHeight.value = parseFloat(props.itemHeight || 0)\n })\n\n const first = shallowRef(0)\n const last = shallowRef(Math.ceil(\n // Assume 16px items filling the entire screen height if\n // not provided. This is probably incorrect but it minimises\n // the chance of ending up with empty space at the bottom.\n // The default value is set here to avoid poisoning getSize()\n (parseInt(props.height!) || display.height.value) / (itemHeight.value || 16)\n ) || 1)\n const paddingTop = shallowRef(0)\n const paddingBottom = shallowRef(0)\n\n /** The scrollable element */\n const containerRef = ref<HTMLElement>()\n /** An element marking the top of the scrollable area,\n * used to add an offset if there's padding or other elements above the virtual list */\n const markerRef = ref<HTMLElement>()\n /** markerRef's offsetTop, lazily evaluated */\n let markerOffset = 0\n\n const { resizeRef, contentRect } = useResizeObserver()\n watchEffect(() => {\n resizeRef.value = containerRef.value\n })\n const viewportHeight = computed(() => {\n return containerRef.value === document.documentElement\n ? display.height.value\n : contentRect.value?.height || parseInt(props.height!) || 0\n })\n /** All static elements have been rendered and we have an assumed item height */\n const hasInitialRender = computed(() => {\n return !!(containerRef.value && markerRef.value && viewportHeight.value && itemHeight.value)\n })\n\n let sizes = Array.from<number | null>({ length: items.value.length })\n let offsets = Array.from<number>({ length: items.value.length })\n const updateTime = shallowRef(0)\n let targetScrollIndex = -1\n\n function getSize (index: number) {\n return sizes[index] || itemHeight.value\n }\n\n const updateOffsets = debounce(() => {\n const start = performance.now()\n offsets[0] = 0\n const length = items.value.length\n for (let i = 1; i <= length - 1; i++) {\n offsets[i] = (offsets[i - 1] || 0) + getSize(i - 1)\n }\n updateTime.value = Math.max(updateTime.value, performance.now() - start)\n }, updateTime)\n\n const unwatch = watch(hasInitialRender, v => {\n if (!v) return\n // First render is complete, update offsets and visible\n // items in case our assumed item height was incorrect\n\n unwatch()\n markerOffset = markerRef.value!.offsetTop\n updateOffsets.immediate()\n calculateVisibleItems()\n\n if (!~targetScrollIndex) return\n\n nextTick(() => {\n IN_BROWSER && window.requestAnimationFrame(() => {\n scrollToIndex(targetScrollIndex)\n targetScrollIndex = -1\n })\n })\n })\n\n onScopeDispose(() => {\n updateOffsets.clear()\n })\n\n function handleItemResize (index: number, height: number) {\n const prevHeight = sizes[index]\n const prevMinHeight = itemHeight.value\n\n itemHeight.value = prevMinHeight ? Math.min(itemHeight.value, height) : height\n\n if (prevHeight !== height || prevMinHeight !== itemHeight.value) {\n sizes[index] = height\n updateOffsets()\n }\n }\n\n function calculateOffset (index: number) {\n index = clamp(index, 0, items.value.length - 1)\n return offsets[index] || 0\n }\n\n function calculateIndex (scrollTop: number) {\n return binaryClosest(offsets, scrollTop)\n }\n\n let lastScrollTop = 0\n let scrollVelocity = 0\n let lastScrollTime = 0\n\n watch(viewportHeight, (val, oldVal) => {\n if (oldVal) {\n calculateVisibleItems()\n if (val < oldVal) {\n requestAnimationFrame(() => {\n scrollVelocity = 0\n calculateVisibleItems()\n })\n }\n }\n })\n\n let scrollTimeout = -1\n function handleScroll () {\n if (!containerRef.value || !markerRef.value) return\n\n const scrollTop = containerRef.value.scrollTop\n const scrollTime = performance.now()\n const scrollDeltaT = scrollTime - lastScrollTime\n\n if (scrollDeltaT > 500) {\n scrollVelocity = Math.sign(scrollTop - lastScrollTop)\n\n // Not super important, only update at the\n // start of a scroll sequence to avoid reflows\n markerOffset = markerRef.value.offsetTop\n } else {\n scrollVelocity = scrollTop - lastScrollTop\n }\n\n lastScrollTop = scrollTop\n lastScrollTime = scrollTime\n\n window.clearTimeout(scrollTimeout)\n scrollTimeout = window.setTimeout(handleScrollend, 500)\n\n calculateVisibleItems()\n }\n function handleScrollend () {\n if (!containerRef.value || !markerRef.value) return\n\n scrollVelocity = 0\n lastScrollTime = 0\n\n window.clearTimeout(scrollTimeout)\n calculateVisibleItems()\n }\n\n let raf = -1\n function calculateVisibleItems () {\n cancelAnimationFrame(raf)\n raf = requestAnimationFrame(_calculateVisibleItems)\n }\n function _calculateVisibleItems () {\n if (!containerRef.value || !viewportHeight.value) return\n const scrollTop = lastScrollTop - markerOffset\n const direction = Math.sign(scrollVelocity)\n\n const startPx = Math.max(0, scrollTop - BUFFER_PX)\n const start = clamp(calculateIndex(startPx), 0, items.value.length)\n\n const endPx = scrollTop + viewportHeight.value + BUFFER_PX\n const end = clamp(calculateIndex(endPx) + 1, start + 1, items.value.length)\n\n if (\n // Only update the side we're scrolling towards,\n // the other side will be updated incidentally\n (direction !== UP || start < first.value) &&\n (direction !== DOWN || end > last.value)\n ) {\n const topOverflow = calculateOffset(first.value) - calculateOffset(start)\n const bottomOverflow = calculateOffset(end) - calculateOffset(last.value)\n const bufferOverflow = Math.max(topOverflow, bottomOverflow)\n\n if (bufferOverflow > BUFFER_PX) {\n first.value = start\n last.value = end\n } else {\n // Only update the side that's reached its limit if there's still buffer left\n if (start <= 0) first.value = start\n if (end >= items.value.length) last.value = end\n }\n }\n\n paddingTop.value = calculateOffset(first.value)\n paddingBottom.value = calculateOffset(items.value.length) - calculateOffset(last.value)\n }\n\n function scrollToIndex (index: number) {\n const offset = calculateOffset(index)\n if (!containerRef.value || (index && !offset)) {\n targetScrollIndex = index\n } else {\n containerRef.value.scrollTop = offset\n }\n }\n\n const computedItems = computed(() => {\n return items.value.slice(first.value, last.value).map((item, index) => ({\n raw: item,\n index: index + first.value,\n }))\n })\n\n watch(items, () => {\n sizes = Array.from({ length: items.value.length })\n offsets = Array.from({ length: items.value.length })\n updateOffsets.immediate()\n calculateVisibleItems()\n }, { deep: true })\n\n return {\n calculateVisibleItems,\n containerRef,\n markerRef,\n computedItems,\n paddingTop,\n paddingBottom,\n scrollToIndex,\n handleScroll,\n handleScrollend,\n handleItemResize,\n }\n}\n\n// https://gist.github.com/robertleeplummerjr/1cc657191d34ecd0a324\nfunction binaryClosest (arr: ArrayLike<number>, val: number) {\n let high = arr.length - 1\n let low = 0\n let mid = 0\n let item = null\n let target = -1\n\n if (arr[high]! < val) {\n return high\n }\n\n while (low <= high) {\n mid = (low + high) >> 1\n item = arr[mid]!\n\n if (item > val) {\n high = mid - 1\n } else if (item < val) {\n target = mid\n low = mid + 1\n } else if (item === val) {\n return mid\n } else {\n return low\n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AI,EAAE;EAAK,CAAC,CAAC;EAElB,OAAO;IACL1C,qBAAqB;IACrB5B,YAAY;IACZC,SAAS;IACTgE,aAAa;IACbnE,UAAU;IACVC,aAAa;IACbgC,aAAa;IACbgB,YAAY;IACZM,eAAe;IACfpB;EACF,CAAC;AACH;;AAEA;AACA,SAASO,aAAaA,CAAE+B,GAAsB,EAAE3B,GAAW,EAAE;EAC3D,IAAI4B,IAAI,GAAGD,GAAG,CAAC3D,MAAM,GAAG,CAAC;EACzB,IAAI6D,GAAG,GAAG,CAAC;EACX,IAAIC,GAAG,GAAG,CAAC;EACX,IAAIN,IAAI,GAAG,IAAI;EACf,IAAIO,MAAM,GAAG,CAAC,CAAC;EAEf,IAAIJ,GAAG,CAACC,IAAI,CAAC,GAAI5B,GAAG,EAAE;IACpB,OAAO4B,IAAI;EACb;EAEA,OAAOC,GAAG,IAAID,IAAI,EAAE;IAClBE,GAAG,GAAID,GAAG,GAAGD,IAAI,IAAK,CAAC;IACvBJ,IAAI,GAAGG,GAAG,CAACG,GAAG,CAAE;IAEhB,IAAIN,IAAI,GAAGxB,GAAG,EAAE;MACd4B,IAAI,GAAGE,GAAG,GAAG,CAAC;IAChB,CAAC,MAAM,IAAIN,IAAI,GAAGxB,GAAG,EAAE;MACrB+B,MAAM,GAAGD,GAAG;MACZD,GAAG,GAAGC,GAAG,GAAG,CAAC;IACf,CAAC,MAAM,IAAIN,IAAI,KAAKxB,GAAG,EAAE;MACvB,OAAO8B,GAAG;IACZ,CAAC,MAAM;MACL,OAAOD,GAAG;IACZ;EACF;EAEA,OAAOE,MAAM;AACf","ignoreList":[]}
@@ -16,7 +16,7 @@ export const createVuetify = function () {
16
16
  ...options
17
17
  });
18
18
  };
19
- export const version = "3.7.5-dev.2024-12-03";
19
+ export const version = "3.7.5-master.2024-12-11";
20
20
  createVuetify.version = version;
21
21
  export { blueprints, components, directives };
22
22
  export * from "./composables/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"entry-bundler.mjs","names":["blueprints","components","directives","createVuetify","_createVuetify","options","arguments","length","undefined","version"],"sources":["../src/entry-bundler.ts"],"sourcesContent":["/* eslint-disable local-rules/sort-imports */\n\n// Styles\nimport './styles/main.sass'\n\n// Components\nimport * as blueprints from './blueprints'\nimport * as components from './components'\nimport * as directives from './directives'\nimport { createVuetify as _createVuetify } from './framework'\n\n// Types\nimport type { VuetifyOptions } from './framework'\n\nexport const createVuetify = (options: VuetifyOptions = {}) => {\n return _createVuetify({ components, directives, ...options })\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\nexport {\n blueprints,\n components,\n directives,\n}\nexport * from './composables'\n"],"mappings":"AAAA;;AAEA;AACA;;AAEA;AAAA,OACO,KAAKA,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,SACbC,aAAa,IAAIC,cAAc,2BAExC;AAGA,OAAO,MAAMD,aAAa,GAAG,SAAAA,CAAA,EAAkC;EAAA,IAAjCE,OAAuB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACxD,OAAOF,cAAc,CAAC;IAAEH,UAAU;IAAEC,UAAU;IAAE,GAAGG;EAAQ,CAAC,CAAC;AAC/D,CAAC;AAED,OAAO,MAAMI,OAAO,yBAAsB;AAC1CN,aAAa,CAACM,OAAO,GAAGA,OAAO;AAE/B,SACET,UAAU,EACVC,UAAU,EACVC,UAAU;AACX","ignoreList":[]}
1
+ {"version":3,"file":"entry-bundler.mjs","names":["blueprints","components","directives","createVuetify","_createVuetify","options","arguments","length","undefined","version"],"sources":["../src/entry-bundler.ts"],"sourcesContent":["/* eslint-disable local-rules/sort-imports */\n\n// Styles\nimport './styles/main.sass'\n\n// Components\nimport * as blueprints from './blueprints'\nimport * as components from './components'\nimport * as directives from './directives'\nimport { createVuetify as _createVuetify } from './framework'\n\n// Types\nimport type { VuetifyOptions } from './framework'\n\nexport const createVuetify = (options: VuetifyOptions = {}) => {\n return _createVuetify({ components, directives, ...options })\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\nexport {\n blueprints,\n components,\n directives,\n}\nexport * from './composables'\n"],"mappings":"AAAA;;AAEA;AACA;;AAEA;AAAA,OACO,KAAKA,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,SACbC,aAAa,IAAIC,cAAc,2BAExC;AAGA,OAAO,MAAMD,aAAa,GAAG,SAAAA,CAAA,EAAkC;EAAA,IAAjCE,OAAuB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACxD,OAAOF,cAAc,CAAC;IAAEH,UAAU;IAAEC,UAAU;IAAE,GAAGG;EAAQ,CAAC,CAAC;AAC/D,CAAC;AAED,OAAO,MAAMI,OAAO,4BAAsB;AAC1CN,aAAa,CAACM,OAAO,GAAGA,OAAO;AAE/B,SACET,UAAU,EACVC,UAAU,EACVC,UAAU;AACX","ignoreList":[]}
package/lib/framework.mjs CHANGED
@@ -97,7 +97,7 @@ export function createVuetify() {
97
97
  goTo
98
98
  };
99
99
  }
100
- export const version = "3.7.5-dev.2024-12-03";
100
+ export const version = "3.7.5-master.2024-12-11";
101
101
  createVuetify.version = version;
102
102
 
103
103
  // Vue's inject() can only be used in setup
@@ -1 +1 @@
1
- {"version":3,"file":"framework.mjs","names":["createDate","DateAdapterSymbol","DateOptionsSymbol","createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createGoTo","GoToSymbol","createIcons","IconSymbol","createLocale","LocaleSymbol","createTheme","ThemeSymbol","nextTick","reactive","defineComponent","getUid","IN_BROWSER","mergeDeep","createVuetify","vuetify","arguments","length","undefined","blueprint","rest","options","aliases","components","directives","defaults","display","ssr","theme","icons","locale","date","goTo","install","app","key","directive","component","name","aliasName","provide","instance","$nuxt","hook","update","mount","vm","reset","__VUE_OPTIONS_API__","mixin","computed","$vuetify","inject","call","version","$","provides","parent","vnode","appContext"],"sources":["../src/framework.ts"],"sourcesContent":["// Composables\nimport { createDate, DateAdapterSymbol, DateOptionsSymbol } from '@/composables/date/date'\nimport { createDefaults, DefaultsSymbol } from '@/composables/defaults'\nimport { createDisplay, DisplaySymbol } from '@/composables/display'\nimport { createGoTo, GoToSymbol } from '@/composables/goto'\nimport { createIcons, IconSymbol } from '@/composables/icons'\nimport { createLocale, LocaleSymbol } from '@/composables/locale'\nimport { createTheme, ThemeSymbol } from '@/composables/theme'\n\n// Utilities\nimport { nextTick, reactive } from 'vue'\nimport { defineComponent, getUid, IN_BROWSER, mergeDeep } from '@/util'\n\n// Types\nimport type { App, ComponentPublicInstance, InjectionKey } from 'vue'\nimport type { DateOptions } from '@/composables/date'\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { DisplayOptions, SSROptions } from '@/composables/display'\nimport type { GoToOptions } from '@/composables/goto'\nimport type { IconOptions } from '@/composables/icons'\nimport type { LocaleOptions, RtlOptions } from '@/composables/locale'\nimport type { ThemeOptions } from '@/composables/theme'\nexport * from './composables'\nexport type { DateOptions, DateInstance, DateModule } from '@/composables/date'\n\nexport interface VuetifyOptions {\n aliases?: Record<string, any>\n blueprint?: Blueprint\n components?: Record<string, any>\n date?: DateOptions\n directives?: Record<string, any>\n defaults?: DefaultsOptions\n display?: DisplayOptions\n goTo?: GoToOptions\n theme?: ThemeOptions\n icons?: IconOptions\n locale?: LocaleOptions & RtlOptions\n ssr?: SSROptions\n}\n\nexport interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {}\n\nexport function createVuetify (vuetify: VuetifyOptions = {}) {\n const { blueprint, ...rest } = vuetify\n const options: VuetifyOptions = mergeDeep(blueprint, rest)\n const {\n aliases = {},\n components = {},\n directives = {},\n } = options\n\n const defaults = createDefaults(options.defaults)\n const display = createDisplay(options.display, options.ssr)\n const theme = createTheme(options.theme)\n const icons = createIcons(options.icons)\n const locale = createLocale(options.locale)\n const date = createDate(options.date, locale)\n const goTo = createGoTo(options.goTo, locale)\n\n const install = (app: App) => {\n for (const key in directives) {\n app.directive(key, directives[key])\n }\n\n for (const key in components) {\n app.component(key, components[key])\n }\n\n for (const key in aliases) {\n app.component(key, defineComponent({\n ...aliases[key],\n name: key,\n aliasName: aliases[key].name,\n }))\n }\n\n theme.install(app)\n\n app.provide(DefaultsSymbol, defaults)\n app.provide(DisplaySymbol, display)\n app.provide(ThemeSymbol, theme)\n app.provide(IconSymbol, icons)\n app.provide(LocaleSymbol, locale)\n app.provide(DateOptionsSymbol, date.options)\n app.provide(DateAdapterSymbol, date.instance)\n app.provide(GoToSymbol, goTo)\n\n if (IN_BROWSER && options.ssr) {\n if (app.$nuxt) {\n app.$nuxt.hook('app:suspense:resolve', () => {\n display.update()\n })\n } else {\n const { mount } = app\n app.mount = (...args) => {\n const vm = mount(...args)\n nextTick(() => display.update())\n app.mount = mount\n return vm\n }\n }\n }\n\n getUid.reset()\n\n if (typeof __VUE_OPTIONS_API__ !== 'boolean' || __VUE_OPTIONS_API__) {\n app.mixin({\n computed: {\n $vuetify () {\n return reactive({\n defaults: inject.call(this, DefaultsSymbol),\n display: inject.call(this, DisplaySymbol),\n theme: inject.call(this, ThemeSymbol),\n icons: inject.call(this, IconSymbol),\n locale: inject.call(this, LocaleSymbol),\n date: inject.call(this, DateAdapterSymbol),\n })\n },\n },\n })\n }\n }\n\n return {\n install,\n defaults,\n display,\n theme,\n icons,\n locale,\n date,\n goTo,\n }\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\n// Vue's inject() can only be used in setup\nfunction inject (this: ComponentPublicInstance, key: InjectionKey<any> | string) {\n const vm = this.$\n\n const provides = vm.parent?.provides ?? vm.vnode.appContext?.provides\n\n if (provides && (key as any) in provides) {\n return provides[(key as string)]\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,UAAU,EAAEC,iBAAiB,EAAEC,iBAAiB;AAAA,SAChDC,cAAc,EAAEC,cAAc;AAAA,SAC9BC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GA,OAAO;;AAE/B;AACA,SAASF,MAAMA,CAAiCjB,GAA+B,EAAE;EAC/E,MAAMW,EAAE,GAAG,IAAI,CAACS,CAAC;EAEjB,MAAMC,QAAQ,GAAGV,EAAE,CAACW,MAAM,EAAED,QAAQ,IAAIV,EAAE,CAACY,KAAK,CAACC,UAAU,EAAEH,QAAQ;EAErE,IAAIA,QAAQ,IAAKrB,GAAG,IAAYqB,QAAQ,EAAE;IACxC,OAAOA,QAAQ,CAAErB,GAAG,CAAY;EAClC;AACF","ignoreList":[]}
1
+ {"version":3,"file":"framework.mjs","names":["createDate","DateAdapterSymbol","DateOptionsSymbol","createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createGoTo","GoToSymbol","createIcons","IconSymbol","createLocale","LocaleSymbol","createTheme","ThemeSymbol","nextTick","reactive","defineComponent","getUid","IN_BROWSER","mergeDeep","createVuetify","vuetify","arguments","length","undefined","blueprint","rest","options","aliases","components","directives","defaults","display","ssr","theme","icons","locale","date","goTo","install","app","key","directive","component","name","aliasName","provide","instance","$nuxt","hook","update","mount","vm","reset","__VUE_OPTIONS_API__","mixin","computed","$vuetify","inject","call","version","$","provides","parent","vnode","appContext"],"sources":["../src/framework.ts"],"sourcesContent":["// Composables\nimport { createDate, DateAdapterSymbol, DateOptionsSymbol } from '@/composables/date/date'\nimport { createDefaults, DefaultsSymbol } from '@/composables/defaults'\nimport { createDisplay, DisplaySymbol } from '@/composables/display'\nimport { createGoTo, GoToSymbol } from '@/composables/goto'\nimport { createIcons, IconSymbol } from '@/composables/icons'\nimport { createLocale, LocaleSymbol } from '@/composables/locale'\nimport { createTheme, ThemeSymbol } from '@/composables/theme'\n\n// Utilities\nimport { nextTick, reactive } from 'vue'\nimport { defineComponent, getUid, IN_BROWSER, mergeDeep } from '@/util'\n\n// Types\nimport type { App, ComponentPublicInstance, InjectionKey } from 'vue'\nimport type { DateOptions } from '@/composables/date'\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { DisplayOptions, SSROptions } from '@/composables/display'\nimport type { GoToOptions } from '@/composables/goto'\nimport type { IconOptions } from '@/composables/icons'\nimport type { LocaleOptions, RtlOptions } from '@/composables/locale'\nimport type { ThemeOptions } from '@/composables/theme'\nexport * from './composables'\nexport type { DateOptions, DateInstance, DateModule } from '@/composables/date'\n\nexport interface VuetifyOptions {\n aliases?: Record<string, any>\n blueprint?: Blueprint\n components?: Record<string, any>\n date?: DateOptions\n directives?: Record<string, any>\n defaults?: DefaultsOptions\n display?: DisplayOptions\n goTo?: GoToOptions\n theme?: ThemeOptions\n icons?: IconOptions\n locale?: LocaleOptions & RtlOptions\n ssr?: SSROptions\n}\n\nexport interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {}\n\nexport function createVuetify (vuetify: VuetifyOptions = {}) {\n const { blueprint, ...rest } = vuetify\n const options: VuetifyOptions = mergeDeep(blueprint, rest)\n const {\n aliases = {},\n components = {},\n directives = {},\n } = options\n\n const defaults = createDefaults(options.defaults)\n const display = createDisplay(options.display, options.ssr)\n const theme = createTheme(options.theme)\n const icons = createIcons(options.icons)\n const locale = createLocale(options.locale)\n const date = createDate(options.date, locale)\n const goTo = createGoTo(options.goTo, locale)\n\n const install = (app: App) => {\n for (const key in directives) {\n app.directive(key, directives[key])\n }\n\n for (const key in components) {\n app.component(key, components[key])\n }\n\n for (const key in aliases) {\n app.component(key, defineComponent({\n ...aliases[key],\n name: key,\n aliasName: aliases[key].name,\n }))\n }\n\n theme.install(app)\n\n app.provide(DefaultsSymbol, defaults)\n app.provide(DisplaySymbol, display)\n app.provide(ThemeSymbol, theme)\n app.provide(IconSymbol, icons)\n app.provide(LocaleSymbol, locale)\n app.provide(DateOptionsSymbol, date.options)\n app.provide(DateAdapterSymbol, date.instance)\n app.provide(GoToSymbol, goTo)\n\n if (IN_BROWSER && options.ssr) {\n if (app.$nuxt) {\n app.$nuxt.hook('app:suspense:resolve', () => {\n display.update()\n })\n } else {\n const { mount } = app\n app.mount = (...args) => {\n const vm = mount(...args)\n nextTick(() => display.update())\n app.mount = mount\n return vm\n }\n }\n }\n\n getUid.reset()\n\n if (typeof __VUE_OPTIONS_API__ !== 'boolean' || __VUE_OPTIONS_API__) {\n app.mixin({\n computed: {\n $vuetify () {\n return reactive({\n defaults: inject.call(this, DefaultsSymbol),\n display: inject.call(this, DisplaySymbol),\n theme: inject.call(this, ThemeSymbol),\n icons: inject.call(this, IconSymbol),\n locale: inject.call(this, LocaleSymbol),\n date: inject.call(this, DateAdapterSymbol),\n })\n },\n },\n })\n }\n }\n\n return {\n install,\n defaults,\n display,\n theme,\n icons,\n locale,\n date,\n goTo,\n }\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\n// Vue's inject() can only be used in setup\nfunction inject (this: ComponentPublicInstance, key: InjectionKey<any> | string) {\n const vm = this.$\n\n const provides = vm.parent?.provides ?? vm.vnode.appContext?.provides\n\n if (provides && (key as any) in provides) {\n return provides[(key as string)]\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,UAAU,EAAEC,iBAAiB,EAAEC,iBAAiB;AAAA,SAChDC,cAAc,EAAEC,cAAc;AAAA,SAC9BC,aAAa,EAAEC,aAAa;AAAA,SAC5BC,UAAU,EAAEC,UAAU;AAAA,SACtBC,WAAW,EAAEC,UAAU;AAAA,SACvBC,YAAY,EAAEC,YAAY;AAAA,SAC1BC,WAAW,EAAEC,WAAW,mCAEjC;AACA,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,KAAK;AAAA,SAC/BC,eAAe,EAAEC,MAAM,EAAEC,UAAU,EAAEC,SAAS,4BAEvD;AAAA;AA6BA,OAAO,SAASC,aAAaA,CAAA,EAAgC;EAAA,IAA9BC,OAAuB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACzD,MAAM;IAAEG,SAAS;IAAE,GAAGC;EAAK,CAAC,GAAGL,OAAO;EACtC,MAAMM,OAAuB,GAAGR,SAAS,CAACM,S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,QAAQ,CAAC;cACdgB,QAAQ,EAAE2B,MAAM,CAACC,IAAI,CAAC,IAAI,EAAExD,cAAc,CAAC;cAC3C6B,OAAO,EAAE0B,MAAM,CAACC,IAAI,CAAC,IAAI,EAAEtD,aAAa,CAAC;cACzC6B,KAAK,EAAEwB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAE9C,WAAW,CAAC;cACrCsB,KAAK,EAAEuB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAElD,UAAU,CAAC;cACpC2B,MAAM,EAAEsB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAEhD,YAAY,CAAC;cACvC0B,IAAI,EAAEqB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAE3D,iBAAiB;YAC3C,CAAC,CAAC;UACJ;QACF;MACF,CAAC,CAAC;IACJ;EACF,CAAC;EAED,OAAO;IACLuC,OAAO;IACPR,QAAQ;IACRC,OAAO;IACPE,KAAK;IACLC,KAAK;IACLC,MAAM;IACNC,IAAI;IACJC;EACF,CAAC;AACH;AAEA,OAAO,MAAMsB,OAAO,4BAAsB;AAC1CxC,aAAa,CAACwC,OAAO,GAAGA,OAAO;;AAE/B;AACA,SAASF,MAAMA,CAAiCjB,GAA+B,EAAE;EAC/E,MAAMW,EAAE,GAAG,IAAI,CAACS,CAAC;EAEjB,MAAMC,QAAQ,GAAGV,EAAE,CAACW,MAAM,EAAED,QAAQ,IAAIV,EAAE,CAACY,KAAK,CAACC,UAAU,EAAEH,QAAQ;EAErE,IAAIA,QAAQ,IAAKrB,GAAG,IAAYqB,QAAQ,EAAE;IACxC,OAAOA,QAAQ,CAAErB,GAAG,CAAY;EAClC;AACF","ignoreList":[]}
package/lib/index.d.mts CHANGED
@@ -29,8 +29,8 @@ interface RtlInstance {
29
29
  rtlClasses: Ref<string>;
30
30
  }
31
31
  declare function useRtl(): {
32
- isRtl: Ref<boolean, boolean>;
33
- rtlClasses: Ref<string, string>;
32
+ isRtl: Ref<boolean>;
33
+ rtlClasses: Ref<string>;
34
34
  };
35
35
 
36
36
  interface GoToInstance {
@@ -343,8 +343,8 @@ interface LayoutItem extends Layer {
343
343
  }
344
344
  declare function useLayout(): {
345
345
  getLayoutItem: (id: string) => LayoutItem | undefined;
346
- mainRect: Ref<Layer, Layer>;
347
- mainStyles: Ref<CSSProperties, CSSProperties>;
346
+ mainRect: Ref<Layer>;
347
+ mainStyles: Ref<CSSProperties>;
348
348
  };
349
349
 
350
350
  interface FieldValidationResult {
@@ -376,7 +376,7 @@ interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {
376
376
  }
377
377
  declare function createVuetify(vuetify?: VuetifyOptions): {
378
378
  install: (app: App) => void;
379
- defaults: vue.Ref<DefaultsInstance, DefaultsInstance>;
379
+ defaults: vue.Ref<DefaultsInstance>;
380
380
  display: DisplayInstance;
381
381
  theme: ThemeInstance & {
382
382
  install: (app: App) => void;
@@ -486,41 +486,40 @@ declare module 'vue' {
486
486
  $children?: VNodeChild
487
487
  }
488
488
  export interface GlobalComponents {
489
- VAlert: typeof import('vuetify/components')['VAlert']
490
- VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
491
489
  VApp: typeof import('vuetify/components')['VApp']
490
+ VAvatar: typeof import('vuetify/components')['VAvatar']
491
+ VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
492
492
  VAppBar: typeof import('vuetify/components')['VAppBar']
493
493
  VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
494
494
  VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
495
- VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
496
- VBadge: typeof import('vuetify/components')['VBadge']
497
- VAvatar: typeof import('vuetify/components')['VAvatar']
498
495
  VBanner: typeof import('vuetify/components')['VBanner']
499
496
  VBannerActions: typeof import('vuetify/components')['VBannerActions']
500
497
  VBannerText: typeof import('vuetify/components')['VBannerText']
501
- VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
498
+ VBadge: typeof import('vuetify/components')['VBadge']
499
+ VAlert: typeof import('vuetify/components')['VAlert']
500
+ VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
502
501
  VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
502
+ VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
503
+ VBtn: typeof import('vuetify/components')['VBtn']
503
504
  VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
504
505
  VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
505
506
  VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
506
- VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
507
- VBtn: typeof import('vuetify/components')['VBtn']
508
- VCheckbox: typeof import('vuetify/components')['VCheckbox']
509
- VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
510
- VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
507
+ VCode: typeof import('vuetify/components')['VCode']
511
508
  VCard: typeof import('vuetify/components')['VCard']
512
509
  VCardActions: typeof import('vuetify/components')['VCardActions']
513
510
  VCardItem: typeof import('vuetify/components')['VCardItem']
514
511
  VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
515
512
  VCardText: typeof import('vuetify/components')['VCardText']
516
513
  VCardTitle: typeof import('vuetify/components')['VCardTitle']
517
- VCode: typeof import('vuetify/components')['VCode']
518
- VChip: typeof import('vuetify/components')['VChip']
514
+ VCheckbox: typeof import('vuetify/components')['VCheckbox']
515
+ VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
516
+ VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
517
+ VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
519
518
  VCarousel: typeof import('vuetify/components')['VCarousel']
520
519
  VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
521
- VColorPicker: typeof import('vuetify/components')['VColorPicker']
520
+ VChip: typeof import('vuetify/components')['VChip']
522
521
  VChipGroup: typeof import('vuetify/components')['VChipGroup']
523
- VCounter: typeof import('vuetify/components')['VCounter']
522
+ VColorPicker: typeof import('vuetify/components')['VColorPicker']
524
523
  VDataTable: typeof import('vuetify/components')['VDataTable']
525
524
  VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
526
525
  VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
@@ -529,37 +528,37 @@ declare module 'vue' {
529
528
  VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
530
529
  VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
531
530
  VCombobox: typeof import('vuetify/components')['VCombobox']
531
+ VCounter: typeof import('vuetify/components')['VCounter']
532
+ VDivider: typeof import('vuetify/components')['VDivider']
533
+ VFab: typeof import('vuetify/components')['VFab']
532
534
  VDatePicker: typeof import('vuetify/components')['VDatePicker']
533
535
  VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
534
536
  VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
535
537
  VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
536
538
  VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
537
539
  VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
540
+ VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
541
+ VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
542
+ VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
543
+ VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
544
+ VFileInput: typeof import('vuetify/components')['VFileInput']
545
+ VField: typeof import('vuetify/components')['VField']
546
+ VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
547
+ VFooter: typeof import('vuetify/components')['VFooter']
538
548
  VDialog: typeof import('vuetify/components')['VDialog']
539
549
  VEmptyState: typeof import('vuetify/components')['VEmptyState']
540
- VFab: typeof import('vuetify/components')['VFab']
541
- VFileInput: typeof import('vuetify/components')['VFileInput']
542
- VDivider: typeof import('vuetify/components')['VDivider']
543
550
  VIcon: typeof import('vuetify/components')['VIcon']
544
551
  VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
545
552
  VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
546
553
  VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
547
554
  VClassIcon: typeof import('vuetify/components')['VClassIcon']
548
- VField: typeof import('vuetify/components')['VField']
549
- VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
550
- VFooter: typeof import('vuetify/components')['VFooter']
551
- VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
552
- VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
553
- VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
554
- VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
555
555
  VImg: typeof import('vuetify/components')['VImg']
556
556
  VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
557
+ VKbd: typeof import('vuetify/components')['VKbd']
557
558
  VItemGroup: typeof import('vuetify/components')['VItemGroup']
558
559
  VItem: typeof import('vuetify/components')['VItem']
559
560
  VLabel: typeof import('vuetify/components')['VLabel']
560
- VKbd: typeof import('vuetify/components')['VKbd']
561
561
  VInput: typeof import('vuetify/components')['VInput']
562
- VMain: typeof import('vuetify/components')['VMain']
563
562
  VList: typeof import('vuetify/components')['VList']
564
563
  VListGroup: typeof import('vuetify/components')['VListGroup']
565
564
  VListImg: typeof import('vuetify/components')['VListImg']
@@ -569,56 +568,57 @@ declare module 'vue' {
569
568
  VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
570
569
  VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
571
570
  VListSubheader: typeof import('vuetify/components')['VListSubheader']
572
- VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
573
571
  VMenu: typeof import('vuetify/components')['VMenu']
574
572
  VOtpInput: typeof import('vuetify/components')['VOtpInput']
573
+ VMain: typeof import('vuetify/components')['VMain']
574
+ VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
575
575
  VMessages: typeof import('vuetify/components')['VMessages']
576
- VOverlay: typeof import('vuetify/components')['VOverlay']
577
- VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
578
576
  VPagination: typeof import('vuetify/components')['VPagination']
577
+ VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
578
+ VOverlay: typeof import('vuetify/components')['VOverlay']
579
579
  VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
580
+ VRating: typeof import('vuetify/components')['VRating']
580
581
  VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
581
582
  VSelect: typeof import('vuetify/components')['VSelect']
582
- VRating: typeof import('vuetify/components')['VRating']
583
583
  VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
584
+ VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
584
585
  VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
585
586
  VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
586
- VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
587
587
  VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
588
+ VSnackbar: typeof import('vuetify/components')['VSnackbar']
588
589
  VSheet: typeof import('vuetify/components')['VSheet']
589
- VSlider: typeof import('vuetify/components')['VSlider']
590
590
  VStepper: typeof import('vuetify/components')['VStepper']
591
591
  VStepperActions: typeof import('vuetify/components')['VStepperActions']
592
592
  VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
593
593
  VStepperItem: typeof import('vuetify/components')['VStepperItem']
594
594
  VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
595
595
  VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
596
- VSwitch: typeof import('vuetify/components')['VSwitch']
597
- VSnackbar: typeof import('vuetify/components')['VSnackbar']
598
- VSystemBar: typeof import('vuetify/components')['VSystemBar']
596
+ VSlider: typeof import('vuetify/components')['VSlider']
599
597
  VTab: typeof import('vuetify/components')['VTab']
600
598
  VTabs: typeof import('vuetify/components')['VTabs']
601
599
  VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
602
600
  VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
603
- VTextField: typeof import('vuetify/components')['VTextField']
604
- VTable: typeof import('vuetify/components')['VTable']
601
+ VSystemBar: typeof import('vuetify/components')['VSystemBar']
602
+ VSwitch: typeof import('vuetify/components')['VSwitch']
605
603
  VTextarea: typeof import('vuetify/components')['VTextarea']
604
+ VTable: typeof import('vuetify/components')['VTable']
606
605
  VTimeline: typeof import('vuetify/components')['VTimeline']
607
606
  VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
607
+ VTextField: typeof import('vuetify/components')['VTextField']
608
608
  VToolbar: typeof import('vuetify/components')['VToolbar']
609
609
  VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
610
610
  VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
611
- VTooltip: typeof import('vuetify/components')['VTooltip']
612
611
  VWindow: typeof import('vuetify/components')['VWindow']
613
612
  VWindowItem: typeof import('vuetify/components')['VWindowItem']
613
+ VTooltip: typeof import('vuetify/components')['VTooltip']
614
614
  VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
615
615
  VDataIterator: typeof import('vuetify/components')['VDataIterator']
616
616
  VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
617
- VForm: typeof import('vuetify/components')['VForm']
618
617
  VContainer: typeof import('vuetify/components')['VContainer']
619
618
  VCol: typeof import('vuetify/components')['VCol']
620
619
  VRow: typeof import('vuetify/components')['VRow']
621
620
  VSpacer: typeof import('vuetify/components')['VSpacer']
621
+ VForm: typeof import('vuetify/components')['VForm']
622
622
  VHover: typeof import('vuetify/components')['VHover']
623
623
  VLazy: typeof import('vuetify/components')['VLazy']
624
624
  VLayout: typeof import('vuetify/components')['VLayout']
@@ -626,8 +626,8 @@ declare module 'vue' {
626
626
  VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
627
627
  VNoSsr: typeof import('vuetify/components')['VNoSsr']
628
628
  VParallax: typeof import('vuetify/components')['VParallax']
629
- VRadio: typeof import('vuetify/components')['VRadio']
630
629
  VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
630
+ VRadio: typeof import('vuetify/components')['VRadio']
631
631
  VResponsive: typeof import('vuetify/components')['VResponsive']
632
632
  VSparkline: typeof import('vuetify/components')['VSparkline']
633
633
  VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
@@ -650,6 +650,9 @@ declare module 'vue' {
650
650
  VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
651
651
  VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
652
652
  VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
653
+ VPicker: typeof import('vuetify/labs/components')['VPicker']
654
+ VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
655
+ VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
653
656
  VCalendar: typeof import('vuetify/labs/components')['VCalendar']
654
657
  VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
655
658
  VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
@@ -659,15 +662,12 @@ declare module 'vue' {
659
662
  VTreeview: typeof import('vuetify/labs/components')['VTreeview']
660
663
  VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
661
664
  VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
662
- VPicker: typeof import('vuetify/labs/components')['VPicker']
663
- VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
664
665
  VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
665
666
  VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
666
667
  VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
667
668
  VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
668
669
  VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
669
670
  VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
670
- VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
671
671
  VDateInput: typeof import('vuetify/labs/components')['VDateInput']
672
672
  VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
673
673
  VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
1
+ import { resolveDirective as _resolveDirective, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  // Styles
3
3
  import "./VCalendar.css";
4
4
 
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
1
+ import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  // Styles
3
3
  import "./VCalendarDay.css";
4
4