@dimailn/vuetify 2.7.2-alpha26 → 2.7.2-alpha28

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 (528) hide show
  1. package/dist/vuetify.js +1185 -1041
  2. package/dist/vuetify.js.map +1 -1
  3. package/dist/vuetify.min.css +1 -1
  4. package/dist/vuetify.min.js +2 -2
  5. package/es5/components/VAlert/VAlert.js +1 -1
  6. package/es5/components/VAlert/VAlert.js.map +1 -1
  7. package/es5/components/VAppBar/VAppBar.js +17 -6
  8. package/es5/components/VAppBar/VAppBar.js.map +1 -1
  9. package/es5/components/VBadge/VBadge.js +1 -0
  10. package/es5/components/VBadge/VBadge.js.map +1 -1
  11. package/es5/components/VBanner/VBanner.js +11 -12
  12. package/es5/components/VBanner/VBanner.js.map +1 -1
  13. package/es5/components/VBottomNavigation/VBottomNavigation.js +8 -7
  14. package/es5/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
  15. package/es5/components/VBtn/VBtn.js +2 -2
  16. package/es5/components/VBtn/VBtn.js.map +1 -1
  17. package/es5/components/VCalendar/VCalendar.js +27 -29
  18. package/es5/components/VCalendar/VCalendar.js.map +1 -1
  19. package/es5/components/VCalendar/VCalendarCategory.js +26 -34
  20. package/es5/components/VCalendar/VCalendarCategory.js.map +1 -1
  21. package/es5/components/VCalendar/VCalendarDaily.js +43 -60
  22. package/es5/components/VCalendar/VCalendarDaily.js.map +1 -1
  23. package/es5/components/VCalendar/VCalendarMonthly.js +2 -2
  24. package/es5/components/VCalendar/VCalendarMonthly.js.map +1 -1
  25. package/es5/components/VCalendar/VCalendarWeekly.js +26 -35
  26. package/es5/components/VCalendar/VCalendarWeekly.js.map +1 -1
  27. package/es5/components/VCalendar/mixins/calendar-base.js +5 -10
  28. package/es5/components/VCalendar/mixins/calendar-base.js.map +1 -1
  29. package/es5/components/VCalendar/mixins/calendar-with-events.js +43 -58
  30. package/es5/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
  31. package/es5/components/VCalendar/mixins/calendar-with-intervals.js +2 -2
  32. package/es5/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
  33. package/es5/components/VCalendar/mixins/times.js.map +1 -1
  34. package/es5/components/VCarousel/VCarousel.js +10 -9
  35. package/es5/components/VCarousel/VCarousel.js.map +1 -1
  36. package/es5/components/VCheckbox/VCheckbox.js +31 -2
  37. package/es5/components/VCheckbox/VCheckbox.js.map +1 -1
  38. package/es5/components/VCheckbox/VSimpleCheckbox.js +0 -3
  39. package/es5/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
  40. package/es5/components/VChip/VChip.js +15 -6
  41. package/es5/components/VChip/VChip.js.map +1 -1
  42. package/es5/components/VData/VData.js +1 -0
  43. package/es5/components/VData/VData.js.map +1 -1
  44. package/es5/components/VDataIterator/VDataFooter.js +1 -0
  45. package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
  46. package/es5/components/VDataIterator/VDataIterator.js +1 -0
  47. package/es5/components/VDataIterator/VDataIterator.js.map +1 -1
  48. package/es5/components/VDataTable/VDataTable.js +1 -6
  49. package/es5/components/VDataTable/VDataTable.js.map +1 -1
  50. package/es5/components/VDataTable/VDataTableHeaderDesktop.js +1 -0
  51. package/es5/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
  52. package/es5/components/VDataTable/VDataTableHeaderMobile.js +1 -0
  53. package/es5/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
  54. package/es5/components/VDataTable/VEditDialog.js +19 -18
  55. package/es5/components/VDataTable/VEditDialog.js.map +1 -1
  56. package/es5/components/VDataTable/mixins/header.js +0 -6
  57. package/es5/components/VDataTable/mixins/header.js.map +1 -1
  58. package/es5/components/VDatePicker/VDatePicker.js +13 -18
  59. package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
  60. package/es5/components/VDatePicker/VDatePickerHeader.js +48 -26
  61. package/es5/components/VDatePicker/VDatePickerHeader.js.map +1 -1
  62. package/es5/components/VDatePicker/VDatePickerMonthTable.js +6 -3
  63. package/es5/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
  64. package/es5/components/VDatePicker/VDatePickerTitle.js +4 -3
  65. package/es5/components/VDatePicker/VDatePickerTitle.js.map +1 -1
  66. package/es5/components/VDatePicker/VDatePickerYears.js +11 -12
  67. package/es5/components/VDatePicker/VDatePickerYears.js.map +1 -1
  68. package/es5/components/VDatePicker/mixins/date-picker-table.js +16 -13
  69. package/es5/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
  70. package/es5/components/VDatePicker/util/createNativeLocaleFormatter.js +4 -0
  71. package/es5/components/VDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
  72. package/es5/components/VDialog/VDialog.js +1 -0
  73. package/es5/components/VDialog/VDialog.js.map +1 -1
  74. package/es5/components/VExpansionPanel/VExpansionPanel.js +1 -0
  75. package/es5/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
  76. package/es5/components/VExpansionPanel/VExpansionPanelHeader.js +1 -10
  77. package/es5/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
  78. package/es5/components/VFileInput/VFileInput.js +1 -0
  79. package/es5/components/VFileInput/VFileInput.js.map +1 -1
  80. package/es5/components/VForm/VForm.js +1 -0
  81. package/es5/components/VForm/VForm.js.map +1 -1
  82. package/es5/components/VHover/VHover.js +1 -0
  83. package/es5/components/VHover/VHover.js.map +1 -1
  84. package/es5/components/VImg/VImg.js +3 -5
  85. package/es5/components/VImg/VImg.js.map +1 -1
  86. package/es5/components/VInput/VInput.js +1 -0
  87. package/es5/components/VInput/VInput.js.map +1 -1
  88. package/es5/components/VItemGroup/VItem.js +2 -1
  89. package/es5/components/VItemGroup/VItem.js.map +1 -1
  90. package/es5/components/VItemGroup/VItemGroup.js +5 -1
  91. package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
  92. package/es5/components/VLazy/VLazy.js +8 -15
  93. package/es5/components/VLazy/VLazy.js.map +1 -1
  94. package/es5/components/VList/VListGroup.js +3 -11
  95. package/es5/components/VList/VListGroup.js.map +1 -1
  96. package/es5/components/VList/VListItem.js +30 -14
  97. package/es5/components/VList/VListItem.js.map +1 -1
  98. package/es5/components/VList/VListItemAction.js +23 -9
  99. package/es5/components/VList/VListItemAction.js.map +1 -1
  100. package/es5/components/VMenu/VMenu.js +2 -1
  101. package/es5/components/VMenu/VMenu.js.map +1 -1
  102. package/es5/components/VNavigationDrawer/VNavigationDrawer.js +1 -7
  103. package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  104. package/es5/components/VOtpInput/VOtpInput.js +37 -5
  105. package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
  106. package/es5/components/VOverflowBtn/VOverflowBtn.js +1 -0
  107. package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
  108. package/es5/components/VOverlay/VOverlay.js +1 -0
  109. package/es5/components/VOverlay/VOverlay.js.map +1 -1
  110. package/es5/components/VPagination/VPagination.js +1 -3
  111. package/es5/components/VPagination/VPagination.js.map +1 -1
  112. package/es5/components/VPicker/VPicker.js +2 -3
  113. package/es5/components/VPicker/VPicker.js.map +1 -1
  114. package/es5/components/VProgressCircular/VProgressCircular.js +1 -10
  115. package/es5/components/VProgressCircular/VProgressCircular.js.map +1 -1
  116. package/es5/components/VProgressLinear/VProgressLinear.js +4 -12
  117. package/es5/components/VProgressLinear/VProgressLinear.js.map +1 -1
  118. package/es5/components/VRadioGroup/VRadio.js +1 -0
  119. package/es5/components/VRadioGroup/VRadio.js.map +1 -1
  120. package/es5/components/VSelect/VSelect.js +111 -64
  121. package/es5/components/VSelect/VSelect.js.map +1 -1
  122. package/es5/components/VSelect/VSelectList.js +28 -19
  123. package/es5/components/VSelect/VSelectList.js.map +1 -1
  124. package/es5/components/VSlideGroup/VSlideGroup.js +1 -4
  125. package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
  126. package/es5/components/VSlideGroup/VSlideItem.js +2 -1
  127. package/es5/components/VSlideGroup/VSlideItem.js.map +1 -1
  128. package/es5/components/VSlider/VSlider.js +0 -3
  129. package/es5/components/VSlider/VSlider.js.map +1 -1
  130. package/es5/components/VSnackbar/VSnackbar.js +1 -0
  131. package/es5/components/VSnackbar/VSnackbar.js.map +1 -1
  132. package/es5/components/VSparkline/VSparkline.js +48 -68
  133. package/es5/components/VSparkline/VSparkline.js.map +1 -1
  134. package/es5/components/VSpeedDial/VSpeedDial.js +4 -10
  135. package/es5/components/VSpeedDial/VSpeedDial.js.map +1 -1
  136. package/es5/components/VStepper/VStepper.js +1 -0
  137. package/es5/components/VStepper/VStepper.js.map +1 -1
  138. package/es5/components/VStepper/VStepperStep.js +11 -19
  139. package/es5/components/VStepper/VStepperStep.js.map +1 -1
  140. package/es5/components/VSwitch/VSwitch.js +1 -3
  141. package/es5/components/VSwitch/VSwitch.js.map +1 -1
  142. package/es5/components/VTabs/VTab.js +1 -0
  143. package/es5/components/VTabs/VTab.js.map +1 -1
  144. package/es5/components/VTabs/VTabs.js +11 -4
  145. package/es5/components/VTabs/VTabs.js.map +1 -1
  146. package/es5/components/VTabs/VTabsItems.js +1 -0
  147. package/es5/components/VTabs/VTabsItems.js.map +1 -1
  148. package/es5/components/VTextField/VTextField.js +31 -27
  149. package/es5/components/VTextField/VTextField.js.map +1 -1
  150. package/es5/components/VTimePicker/VTimePicker.js +72 -44
  151. package/es5/components/VTimePicker/VTimePicker.js.map +1 -1
  152. package/es5/components/VTimePicker/VTimePickerClock.js +37 -48
  153. package/es5/components/VTimePicker/VTimePickerClock.js.map +1 -1
  154. package/es5/components/VTimePicker/VTimePickerTitle.js +13 -11
  155. package/es5/components/VTimePicker/VTimePickerTitle.js.map +1 -1
  156. package/es5/components/VToolbar/VToolbar.js +1 -3
  157. package/es5/components/VToolbar/VToolbar.js.map +1 -1
  158. package/es5/components/VTooltip/VTooltip.js +9 -6
  159. package/es5/components/VTooltip/VTooltip.js.map +1 -1
  160. package/es5/components/VTreeview/VTreeview.js +0 -7
  161. package/es5/components/VTreeview/VTreeview.js.map +1 -1
  162. package/es5/components/VVirtualScroll/VVirtualScroll.js +0 -3
  163. package/es5/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
  164. package/es5/components/VWindow/VWindow.js +0 -3
  165. package/es5/components/VWindow/VWindow.js.map +1 -1
  166. package/es5/components/VWindow/VWindowItem.js +1 -5
  167. package/es5/components/VWindow/VWindowItem.js.map +1 -1
  168. package/es5/framework.js +1 -1
  169. package/es5/mixins/detachable/index.js +9 -5
  170. package/es5/mixins/detachable/index.js.map +1 -1
  171. package/es5/mixins/routable/index.js +5 -2
  172. package/es5/mixins/routable/index.js.map +1 -1
  173. package/lib/components/VAlert/VAlert.js +1 -1
  174. package/lib/components/VAlert/VAlert.js.map +1 -1
  175. package/lib/components/VAppBar/VAppBar.js +17 -6
  176. package/lib/components/VAppBar/VAppBar.js.map +1 -1
  177. package/lib/components/VBadge/VBadge.js +1 -0
  178. package/lib/components/VBadge/VBadge.js.map +1 -1
  179. package/lib/components/VBanner/VBanner.js +7 -11
  180. package/lib/components/VBanner/VBanner.js.map +1 -1
  181. package/lib/components/VBottomNavigation/VBottomNavigation.js +8 -7
  182. package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
  183. package/lib/components/VBtn/VBtn.js +2 -2
  184. package/lib/components/VBtn/VBtn.js.map +1 -1
  185. package/lib/components/VCalendar/VCalendar.js +26 -31
  186. package/lib/components/VCalendar/VCalendar.js.map +1 -1
  187. package/lib/components/VCalendar/VCalendarCategory.js +8 -10
  188. package/lib/components/VCalendar/VCalendarCategory.js.map +1 -1
  189. package/lib/components/VCalendar/VCalendarDaily.js +21 -33
  190. package/lib/components/VCalendar/VCalendarDaily.js.map +1 -1
  191. package/lib/components/VCalendar/VCalendarMonthly.js +2 -2
  192. package/lib/components/VCalendar/VCalendarMonthly.js.map +1 -1
  193. package/lib/components/VCalendar/VCalendarWeekly.js +17 -30
  194. package/lib/components/VCalendar/VCalendarWeekly.js.map +1 -1
  195. package/lib/components/VCalendar/mixins/calendar-base.js +7 -11
  196. package/lib/components/VCalendar/mixins/calendar-base.js.map +1 -1
  197. package/lib/components/VCalendar/mixins/calendar-with-events.js +16 -39
  198. package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
  199. package/lib/components/VCalendar/mixins/calendar-with-intervals.js +2 -2
  200. package/lib/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
  201. package/lib/components/VCalendar/mixins/times.js.map +1 -1
  202. package/lib/components/VCarousel/VCarousel.js +12 -11
  203. package/lib/components/VCarousel/VCarousel.js.map +1 -1
  204. package/lib/components/VCheckbox/VCheckbox.js +14 -1
  205. package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
  206. package/lib/components/VCheckbox/VSimpleCheckbox.js +0 -3
  207. package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
  208. package/lib/components/VChip/VChip.js +15 -6
  209. package/lib/components/VChip/VChip.js.map +1 -1
  210. package/lib/components/VData/VData.js +1 -0
  211. package/lib/components/VData/VData.js.map +1 -1
  212. package/lib/components/VDataIterator/VDataFooter.js +1 -0
  213. package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
  214. package/lib/components/VDataIterator/VDataIterator.js +1 -0
  215. package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
  216. package/lib/components/VDataTable/VDataTable.js +2 -7
  217. package/lib/components/VDataTable/VDataTable.js.map +1 -1
  218. package/lib/components/VDataTable/VDataTableHeaderDesktop.js +1 -0
  219. package/lib/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
  220. package/lib/components/VDataTable/VDataTableHeaderMobile.js +1 -0
  221. package/lib/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
  222. package/lib/components/VDataTable/VEditDialog.js +15 -14
  223. package/lib/components/VDataTable/VEditDialog.js.map +1 -1
  224. package/lib/components/VDataTable/mixins/header.js +0 -5
  225. package/lib/components/VDataTable/mixins/header.js.map +1 -1
  226. package/lib/components/VDatePicker/VDatePicker.js +11 -16
  227. package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
  228. package/lib/components/VDatePicker/VDatePickerHeader.js +33 -20
  229. package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
  230. package/lib/components/VDatePicker/VDatePickerMonthTable.js +3 -1
  231. package/lib/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
  232. package/lib/components/VDatePicker/VDatePickerTitle.js +4 -3
  233. package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
  234. package/lib/components/VDatePicker/VDatePickerYears.js +8 -9
  235. package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
  236. package/lib/components/VDatePicker/mixins/date-picker-table.js +17 -13
  237. package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
  238. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js +4 -0
  239. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
  240. package/lib/components/VDialog/VDialog.js +1 -0
  241. package/lib/components/VDialog/VDialog.js.map +1 -1
  242. package/lib/components/VExpansionPanel/VExpansionPanel.js +1 -0
  243. package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
  244. package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +1 -4
  245. package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
  246. package/lib/components/VFileInput/VFileInput.js +1 -0
  247. package/lib/components/VFileInput/VFileInput.js.map +1 -1
  248. package/lib/components/VForm/VForm.js +1 -0
  249. package/lib/components/VForm/VForm.js.map +1 -1
  250. package/lib/components/VHover/VHover.js +1 -0
  251. package/lib/components/VHover/VHover.js.map +1 -1
  252. package/lib/components/VImg/VImg.js +2 -6
  253. package/lib/components/VImg/VImg.js.map +1 -1
  254. package/lib/components/VInput/VInput.js +1 -0
  255. package/lib/components/VInput/VInput.js.map +1 -1
  256. package/lib/components/VItemGroup/VItem.js +2 -1
  257. package/lib/components/VItemGroup/VItem.js.map +1 -1
  258. package/lib/components/VItemGroup/VItemGroup.js +6 -1
  259. package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
  260. package/lib/components/VLazy/VLazy.js +8 -15
  261. package/lib/components/VLazy/VLazy.js.map +1 -1
  262. package/lib/components/VList/VListGroup.js +3 -5
  263. package/lib/components/VList/VListGroup.js.map +1 -1
  264. package/lib/components/VList/VListItem.js +29 -16
  265. package/lib/components/VList/VListItem.js.map +1 -1
  266. package/lib/components/VList/VListItemAction.js +15 -9
  267. package/lib/components/VList/VListItemAction.js.map +1 -1
  268. package/lib/components/VMenu/VMenu.js +2 -1
  269. package/lib/components/VMenu/VMenu.js.map +1 -1
  270. package/lib/components/VNavigationDrawer/VNavigationDrawer.js +1 -6
  271. package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  272. package/lib/components/VOtpInput/VOtpInput.js +50 -6
  273. package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
  274. package/lib/components/VOverflowBtn/VOverflowBtn.js +1 -0
  275. package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
  276. package/lib/components/VOverlay/VOverlay.js +1 -0
  277. package/lib/components/VOverlay/VOverlay.js.map +1 -1
  278. package/lib/components/VPagination/VPagination.js +1 -3
  279. package/lib/components/VPagination/VPagination.js.map +1 -1
  280. package/lib/components/VPicker/VPicker.js +3 -3
  281. package/lib/components/VPicker/VPicker.js.map +1 -1
  282. package/lib/components/VProgressCircular/VProgressCircular.js +1 -4
  283. package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
  284. package/lib/components/VProgressLinear/VProgressLinear.js +4 -6
  285. package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
  286. package/lib/components/VRadioGroup/VRadio.js +1 -0
  287. package/lib/components/VRadioGroup/VRadio.js.map +1 -1
  288. package/lib/components/VSelect/VSelect.js +64 -19
  289. package/lib/components/VSelect/VSelect.js.map +1 -1
  290. package/lib/components/VSelect/VSelectList.js +24 -20
  291. package/lib/components/VSelect/VSelectList.js.map +1 -1
  292. package/lib/components/VSlideGroup/VSlideGroup.js +1 -4
  293. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  294. package/lib/components/VSlideGroup/VSlideItem.js +2 -1
  295. package/lib/components/VSlideGroup/VSlideItem.js.map +1 -1
  296. package/lib/components/VSlider/VSlider.js +0 -3
  297. package/lib/components/VSlider/VSlider.js.map +1 -1
  298. package/lib/components/VSnackbar/VSnackbar.js +1 -0
  299. package/lib/components/VSnackbar/VSnackbar.js.map +1 -1
  300. package/lib/components/VSparkline/VSparkline.js +48 -67
  301. package/lib/components/VSparkline/VSparkline.js.map +1 -1
  302. package/lib/components/VSpeedDial/VSpeedDial.js +3 -9
  303. package/lib/components/VSpeedDial/VSpeedDial.js.map +1 -1
  304. package/lib/components/VStepper/VStepper.js +1 -0
  305. package/lib/components/VStepper/VStepper.js.map +1 -1
  306. package/lib/components/VStepper/VStepperStep.js +7 -18
  307. package/lib/components/VStepper/VStepperStep.js.map +1 -1
  308. package/lib/components/VSwitch/VSwitch.js +1 -3
  309. package/lib/components/VSwitch/VSwitch.js.map +1 -1
  310. package/lib/components/VTabs/VTab.js +1 -0
  311. package/lib/components/VTabs/VTab.js.map +1 -1
  312. package/lib/components/VTabs/VTabs.js +14 -4
  313. package/lib/components/VTabs/VTabs.js.map +1 -1
  314. package/lib/components/VTabs/VTabsItems.js +1 -0
  315. package/lib/components/VTabs/VTabsItems.js.map +1 -1
  316. package/lib/components/VTextField/VTextField.js +6 -15
  317. package/lib/components/VTextField/VTextField.js.map +1 -1
  318. package/lib/components/VTimePicker/VTimePicker.js +65 -31
  319. package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
  320. package/lib/components/VTimePicker/VTimePickerClock.js +24 -39
  321. package/lib/components/VTimePicker/VTimePickerClock.js.map +1 -1
  322. package/lib/components/VTimePicker/VTimePickerTitle.js +3 -2
  323. package/lib/components/VTimePicker/VTimePickerTitle.js.map +1 -1
  324. package/lib/components/VToolbar/VToolbar.js +1 -3
  325. package/lib/components/VToolbar/VToolbar.js.map +1 -1
  326. package/lib/components/VTooltip/VTooltip.js +4 -5
  327. package/lib/components/VTooltip/VTooltip.js.map +1 -1
  328. package/lib/components/VTreeview/VTreeview.js +0 -6
  329. package/lib/components/VTreeview/VTreeview.js.map +1 -1
  330. package/lib/components/VVirtualScroll/VVirtualScroll.js +0 -3
  331. package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
  332. package/lib/components/VWindow/VWindow.js +0 -3
  333. package/lib/components/VWindow/VWindow.js.map +1 -1
  334. package/lib/components/VWindow/VWindowItem.js +2 -6
  335. package/lib/components/VWindow/VWindowItem.js.map +1 -1
  336. package/lib/framework.js +1 -1
  337. package/lib/mixins/detachable/index.js +9 -5
  338. package/lib/mixins/detachable/index.js.map +1 -1
  339. package/lib/mixins/routable/index.js +5 -2
  340. package/lib/mixins/routable/index.js.map +1 -1
  341. package/package.json +1 -1
  342. package/src/components/VAlert/VAlert.ts +2 -1
  343. package/src/components/VApp/__tests__/VApp.spec.ts +24 -18
  344. package/src/components/VApp/__tests__/__snapshots__/VApp.spec.ts.snap +4 -4
  345. package/src/components/VAppBar/VAppBar.ts +12 -3
  346. package/src/components/VAppBar/__tests__/VAppBar.spec.ts +256 -74
  347. package/src/components/VAppBar/__tests__/VAppBarNavIcon.spec.ts +2 -6
  348. package/src/components/VAppBar/__tests__/__snapshots__/VAppBar.spec.ts.snap +13 -4
  349. package/src/components/VAppBar/__tests__/__snapshots__/VAppBarNavIcon.spec.ts.snap +3 -4
  350. package/src/components/VBadge/VBadge.ts +1 -1
  351. package/src/components/VBanner/VBanner.ts +14 -14
  352. package/src/components/VBanner/__tests__/VBanner.spec.ts +35 -36
  353. package/src/components/VBanner/__tests__/__snapshots__/VBanner.spec.ts.snap +1 -1
  354. package/src/components/VBottomNavigation/VBottomNavigation.ts +10 -8
  355. package/src/components/VBtn/VBtn.ts +2 -2
  356. package/src/components/VBtn/__tests__/VBtn.spec.ts +1 -1
  357. package/src/components/VCalendar/VCalendar.ts +29 -27
  358. package/src/components/VCalendar/VCalendarCategory.ts +9 -8
  359. package/src/components/VCalendar/VCalendarDaily.ts +18 -28
  360. package/src/components/VCalendar/VCalendarMonthly.ts +2 -1
  361. package/src/components/VCalendar/VCalendarWeekly.ts +18 -30
  362. package/src/components/VCalendar/__tests__/VCalendar.spec.ts +18 -34
  363. package/src/components/VCalendar/__tests__/VCalendarCategory.spec.ts +16 -14
  364. package/src/components/VCalendar/__tests__/VCalendarDaily.spec.ts +30 -28
  365. package/src/components/VCalendar/__tests__/__snapshots__/VCalendar.spec.ts.snap +206 -205
  366. package/src/components/VCalendar/__tests__/__snapshots__/VCalendarDaily.spec.ts.snap +122 -122
  367. package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-with-events.spec.ts.snap +1 -56
  368. package/src/components/VCalendar/mixins/__tests__/calendar-base.spec.ts +24 -21
  369. package/src/components/VCalendar/mixins/__tests__/calendar-with-events.spec.ts +27 -34
  370. package/src/components/VCalendar/mixins/__tests__/calendar-with-intervals.spec.ts +31 -28
  371. package/src/components/VCalendar/mixins/__tests__/times.spec.ts +10 -9
  372. package/src/components/VCalendar/mixins/calendar-base.ts +8 -12
  373. package/src/components/VCalendar/mixins/calendar-with-events.ts +19 -38
  374. package/src/components/VCalendar/mixins/calendar-with-intervals.ts +1 -1
  375. package/src/components/VCalendar/mixins/times.ts +1 -1
  376. package/src/components/VCard/__tests__/VCard.spec.ts +46 -28
  377. package/src/components/VCard/__tests__/__snapshots__/VCard.spec.ts.snap +2 -2
  378. package/src/components/VCarousel/VCarousel.ts +13 -9
  379. package/src/components/VCheckbox/VCheckbox.ts +19 -1
  380. package/src/components/VCheckbox/VSimpleCheckbox.ts +0 -3
  381. package/src/components/VCheckbox/__tests__/VCheckbox.spec.ts +157 -152
  382. package/src/components/VChip/VChip.ts +17 -13
  383. package/src/components/VChip/__tests__/VChip.spec.ts +50 -50
  384. package/src/components/VChip/__tests__/__snapshots__/VChip.spec.ts.snap +4 -4
  385. package/src/components/VChipGroup/__tests__/VChipGroup.spec.ts +14 -21
  386. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +35 -35
  387. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +10 -10
  388. package/src/components/VData/VData.ts +2 -0
  389. package/src/components/VData/__tests__/VData.spec.ts +69 -90
  390. package/src/components/VDataIterator/VDataFooter.ts +2 -0
  391. package/src/components/VDataIterator/VDataIterator.ts +2 -0
  392. package/src/components/VDataTable/VDataTable.ts +2 -4
  393. package/src/components/VDataTable/VDataTableHeaderDesktop.ts +5 -0
  394. package/src/components/VDataTable/VDataTableHeaderMobile.ts +2 -0
  395. package/src/components/VDataTable/VEditDialog.ts +19 -17
  396. package/src/components/VDataTable/__tests__/MobileRow.spec.ts +55 -66
  397. package/src/components/VDataTable/__tests__/Row.spec.ts +64 -73
  398. package/src/components/VDataTable/__tests__/RowGroup.spec.ts +7 -5
  399. package/src/components/VDataTable/__tests__/VDataTable.spec.ts +910 -988
  400. package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +26 -22
  401. package/src/components/VDataTable/__tests__/VSimpleTable.spec.ts +60 -29
  402. package/src/components/VDataTable/__tests__/VVirtualTable.spec.ts +13 -15
  403. package/src/components/VDataTable/__tests__/__snapshots__/Row.spec.ts.snap +30 -0
  404. package/src/components/VDataTable/__tests__/__snapshots__/VEditDialog.spec.ts.snap +18 -10
  405. package/src/components/VDataTable/mixins/__tests__/__snapshots__/header.spec.ts.snap +1 -1
  406. package/src/components/VDataTable/mixins/header.ts +0 -4
  407. package/src/components/VDatePicker/VDatePicker.ts +13 -18
  408. package/src/components/VDatePicker/VDatePickerHeader.ts +44 -32
  409. package/src/components/VDatePicker/VDatePickerMonthTable.ts +1 -1
  410. package/src/components/VDatePicker/VDatePickerTitle.ts +7 -5
  411. package/src/components/VDatePicker/VDatePickerYears.ts +6 -10
  412. package/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +302 -246
  413. package/src/components/VDatePicker/__tests__/VDatePicker.month.spec.ts +90 -86
  414. package/src/components/VDatePicker/__tests__/VDatePickerDateTable.spec.ts +76 -90
  415. package/src/components/VDatePicker/__tests__/VDatePickerHeader.spec.ts +96 -71
  416. package/src/components/VDatePicker/__tests__/VDatePickerMonthTable.spec.ts +63 -77
  417. package/src/components/VDatePicker/__tests__/VDatePickerTitle.spec.ts +48 -28
  418. package/src/components/VDatePicker/__tests__/VDatePickerYears.spec.ts +25 -22
  419. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.date.spec.ts.snap +601 -586
  420. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.month.spec.ts.snap +203 -193
  421. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerDateTable.spec.ts.snap +615 -615
  422. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerHeader.spec.ts.snap +52 -52
  423. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerMonthTable.spec.ts.snap +144 -144
  424. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerTitle.spec.ts.snap +3 -4
  425. package/src/components/VDatePicker/mixins/date-picker-table.ts +18 -13
  426. package/src/components/VDatePicker/util/__tests__/createNativeLocaleFormatter.spec.ts +7 -0
  427. package/src/components/VDatePicker/util/createNativeLocaleFormatter.ts +3 -0
  428. package/src/components/VDialog/VDialog.ts +7 -5
  429. package/src/components/VDivider/__tests__/VDivider.spec.ts +11 -15
  430. package/src/components/VDivider/__tests__/__snapshots__/VDivider.spec.ts.snap +2 -2
  431. package/src/components/VExpansionPanel/VExpansionPanel.ts +5 -0
  432. package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +0 -1
  433. package/src/components/VFileInput/VFileInput.ts +2 -0
  434. package/src/components/VForm/VForm.ts +2 -0
  435. package/src/components/VGrid/__tests__/VCol.spec.ts +17 -17
  436. package/src/components/VGrid/__tests__/VContainer.spec.ts +58 -3
  437. package/src/components/VGrid/__tests__/VFlex.spec.ts +3 -3
  438. package/src/components/VGrid/__tests__/VGrid.spec.ts +12 -10
  439. package/src/components/VGrid/__tests__/VLayout.spec.ts +3 -3
  440. package/src/components/VHover/VHover.ts +2 -0
  441. package/src/components/VIcon/__tests__/VIcon.spec.ts +176 -70
  442. package/src/components/VImg/VImg.ts +2 -1
  443. package/src/components/VImg/__tests__/__snapshots__/VImg.spec.ts.snap +55 -55
  444. package/src/components/VInput/VInput.ts +2 -0
  445. package/src/components/VItemGroup/VItem.ts +4 -0
  446. package/src/components/VItemGroup/VItemGroup.ts +7 -1
  447. package/src/components/VItemGroup/__tests__/VItem.spec.ts +22 -37
  448. package/src/components/VItemGroup/__tests__/VItemGroup.spec.ts +96 -124
  449. package/src/components/VItemGroup/__tests__/__snapshots__/VItem.spec.ts.snap +2 -0
  450. package/src/components/VLabel/__tests__/VLabel.spec.ts +240 -14
  451. package/src/components/VLazy/VLazy.ts +11 -13
  452. package/src/components/VLazy/__tests__/VLazy.spec.ts +5 -4
  453. package/src/components/VLazy/__tests__/__snapshots__/VLazy.spec.ts.snap +2 -1
  454. package/src/components/VList/VListGroup.ts +7 -8
  455. package/src/components/VList/VListItem.ts +38 -18
  456. package/src/components/VList/VListItemAction.ts +11 -10
  457. package/src/components/VList/__tests__/VList.spec.ts +13 -12
  458. package/src/components/VList/__tests__/VListGroup.spec.ts +59 -51
  459. package/src/components/VList/__tests__/VListItem.spec.ts +142 -63
  460. package/src/components/VList/__tests__/VListItemAvatar.spec.ts +5 -2
  461. package/src/components/VList/__tests__/VListItemGroup.spec.ts +5 -2
  462. package/src/components/VList/__tests__/__snapshots__/VList.spec.ts.snap +10 -10
  463. package/src/components/VList/__tests__/__snapshots__/VListGroup.spec.ts.snap +5 -6
  464. package/src/components/VList/__tests__/__snapshots__/VListItem.spec.ts.snap +1 -1
  465. package/src/components/VMain/__tests__/VMain.spec.ts +71 -17
  466. package/src/components/VMenu/VMenu.ts +4 -2
  467. package/src/components/VMessages/__tests__/VMessages.spec.ts +14 -13
  468. package/src/components/VNavigationDrawer/VNavigationDrawer.ts +2 -5
  469. package/src/components/VOtpInput/VOtpInput.ts +39 -4
  470. package/src/components/VOverflowBtn/VOverflowBtn.ts +2 -0
  471. package/src/components/VOverlay/VOverlay.ts +2 -0
  472. package/src/components/VPagination/VPagination.ts +2 -1
  473. package/src/components/VParallax/__tests__/__snapshots__/VParallax.spec.ts.snap +8 -8
  474. package/src/components/VPicker/VPicker.ts +8 -10
  475. package/src/components/VPicker/__tests__/VPicker.spec.ts +14 -15
  476. package/src/components/VPicker/__tests__/__snapshots__/VPicker.spec.ts.snap +2 -2
  477. package/src/components/VProgressCircular/VProgressCircular.ts +0 -1
  478. package/src/components/VProgressLinear/VProgressLinear.ts +14 -13
  479. package/src/components/VRadioGroup/VRadio.ts +2 -0
  480. package/src/components/VResponsive/__tests__/__snapshots__/VResponsive.spec.ts.snap +2 -2
  481. package/src/components/VSelect/VSelect.ts +59 -19
  482. package/src/components/VSelect/VSelectList.ts +20 -16
  483. package/src/components/VSelect/__tests__/VSelect.spec.ts +166 -125
  484. package/src/components/VSelect/__tests__/VSelect2.spec.ts +127 -111
  485. package/src/components/VSelect/__tests__/VSelect3.spec.ts +109 -91
  486. package/src/components/VSelect/__tests__/VSelect4.spec.ts +79 -68
  487. package/src/components/VSelect/__tests__/VSelectList.spec.ts +23 -31
  488. package/src/components/VSelect/__tests__/__snapshots__/VSelect.spec.ts.snap +58 -62
  489. package/src/components/VSelect/__tests__/__snapshots__/VSelect2.spec.ts.snap +50 -62
  490. package/src/components/VSelect/__tests__/__snapshots__/VSelect3.spec.ts.snap +10 -14
  491. package/src/components/VSlideGroup/VSlideGroup.ts +2 -4
  492. package/src/components/VSlideGroup/VSlideItem.ts +2 -0
  493. package/src/components/VSlider/VSlider.ts +0 -3
  494. package/src/components/VSnackbar/VSnackbar.ts +1 -1
  495. package/src/components/VSparkline/VSparkline.ts +54 -92
  496. package/src/components/VSparkline/__tests__/VSparkline.spec.ts +33 -35
  497. package/src/components/VSpeedDial/VSpeedDial.ts +6 -8
  498. package/src/components/VStepper/VStepper.ts +3 -1
  499. package/src/components/VStepper/VStepperStep.ts +8 -15
  500. package/src/components/VStepper/__tests__/VStepper.spec.ts +4 -1
  501. package/src/components/VStepper/__tests__/VStepperContent.spec.ts +104 -110
  502. package/src/components/VStepper/__tests__/VStepperStep.spec.ts +51 -44
  503. package/src/components/VSwitch/VSwitch.ts +4 -5
  504. package/src/components/VSwitch/__tests__/VSwitch.spec.ts +30 -37
  505. package/src/components/VTabs/VTab.ts +2 -0
  506. package/src/components/VTabs/VTabs.ts +16 -10
  507. package/src/components/VTabs/VTabsItems.ts +2 -0
  508. package/src/components/VTabs/__tests__/VTabs.spec.ts +0 -7
  509. package/src/components/VTextField/VTextField.ts +9 -12
  510. package/src/components/VTextField/__tests__/VTextField.spec.ts +342 -246
  511. package/src/components/VTextarea/__tests__/VTextarea.spec.ts +112 -35
  512. package/src/components/VTimePicker/VTimePicker.ts +199 -89
  513. package/src/components/VTimePicker/VTimePickerClock.ts +40 -45
  514. package/src/components/VTimePicker/VTimePickerTitle.ts +5 -4
  515. package/src/components/VTimePicker/__tests__/VTimePicker.spec.ts +153 -140
  516. package/src/components/VTimePicker/__tests__/VTimePickerClock.spec.ts +78 -81
  517. package/src/components/VTimePicker/__tests__/VTimePickerTitle.spec.ts +47 -41
  518. package/src/components/VTimePicker/__tests__/__snapshots__/VTimePicker.spec.ts.snap +120 -40
  519. package/src/components/VToolbar/VToolbar.ts +1 -1
  520. package/src/components/VToolbar/__tests__/VToolbar.spec.ts +49 -25
  521. package/src/components/VTooltip/VTooltip.ts +4 -4
  522. package/src/components/VTooltip/__tests__/__snapshots__/VTooltip.spec.ts.snap +34 -18
  523. package/src/components/VTreeview/VTreeview.ts +0 -5
  524. package/src/components/VVirtualScroll/VVirtualScroll.ts +0 -1
  525. package/src/components/VWindow/VWindow.ts +0 -1
  526. package/src/components/VWindow/VWindowItem.ts +2 -3
  527. package/src/mixins/detachable/index.ts +11 -5
  528. package/src/mixins/routable/index.ts +6 -4
@@ -10,6 +10,7 @@ import {
10
10
  mount,
11
11
  Wrapper,
12
12
  } from '@vue/test-utils'
13
+ import { h } from 'vue'
13
14
 
14
15
  // Types
15
16
  import { ExtractVue } from '../../../util/mixins'
@@ -22,16 +23,21 @@ describe('VBanner.ts', () => {
22
23
  mountFunction = (options = {}) => {
23
24
  return mount(VBanner, {
24
25
  ...options,
25
- mocks: {
26
- $vuetify: {
27
- application: {
28
- top: 0,
29
- bar: 0,
30
- },
31
- breakpoint: {
32
- mobile: true,
33
- mobileBreakpoint: 1264,
34
- width: 1000,
26
+ global: {
27
+ mocks: {
28
+ $vuetify: {
29
+ application: {
30
+ top: 0,
31
+ bar: 0,
32
+ },
33
+ breakpoint: {
34
+ mobile: true,
35
+ mobileBreakpoint: 1264,
36
+ width: 1000,
37
+ },
38
+ icons: {
39
+ component: null,
40
+ },
35
41
  },
36
42
  },
37
43
  },
@@ -67,7 +73,7 @@ describe('VBanner.ts', () => {
67
73
  slots: {
68
74
  default: 'Hello, World!',
69
75
  },
70
- propsData: {
76
+ props: {
71
77
  icon: 'mdi-plus',
72
78
  },
73
79
  })
@@ -79,7 +85,7 @@ describe('VBanner.ts', () => {
79
85
  const wrapper = mountFunction({
80
86
  slots: {
81
87
  default: 'Hello, World!',
82
- icon: { render: h => h('span', ['icon']) },
88
+ icon: () => h('span', ['icon']),
83
89
  },
84
90
  })
85
91
 
@@ -90,7 +96,7 @@ describe('VBanner.ts', () => {
90
96
  const wrapper = mountFunction({
91
97
  slots: {
92
98
  default: 'Hello, World!',
93
- actions: { render: h => h('div', [h('button', ['OK']), h('button', ['Cancel'])]) },
99
+ actions: () => h('div', [h('button', ['OK']), h('button', ['Cancel'])]),
94
100
  },
95
101
  })
96
102
 
@@ -102,19 +108,16 @@ describe('VBanner.ts', () => {
102
108
  slots: {
103
109
  default: 'Hello, World!',
104
110
  },
105
- propsData: {
111
+ props: {
106
112
  icon: 'mdi-plus',
107
113
  },
108
114
  })
109
115
 
110
- const fn = jest.fn()
111
- wrapper.vm.$on('click:icon', fn)
112
-
113
116
  const icon = wrapper.find('.v-banner__icon')
114
117
 
115
- expect(fn).not.toHaveBeenCalled()
118
+ expect(wrapper.emitted('click:icon')).toBeFalsy()
116
119
  icon.trigger('click')
117
- expect(fn).toHaveBeenCalled()
120
+ expect(wrapper.emitted('click:icon')).toBeTruthy()
118
121
  })
119
122
 
120
123
  it(`should not render icon container if icon property and slot aren't passed`, () => {
@@ -167,16 +170,10 @@ describe('VBanner.ts', () => {
167
170
  const wrapper = mountFunction({
168
171
  slots: {
169
172
  default: 'Hello, World!',
170
- },
171
- scopedSlots: {
172
- actions (props) {
173
- return h('div', {
174
- on: {
175
- click: props.dismiss,
176
- },
177
- class: 'test',
178
- })
179
- },
173
+ actions: ({ dismiss }) => h('div', {
174
+ onClick: dismiss,
175
+ class: 'test',
176
+ }),
180
177
  },
181
178
  })
182
179
 
@@ -191,9 +188,11 @@ describe('VBanner.ts', () => {
191
188
  slots: {
192
189
  default: 'Hello, World!',
193
190
  },
194
- mocks: {
195
- $vuetify: {
196
- breakpoint: new Breakpoint(preset),
191
+ global: {
192
+ mocks: {
193
+ $vuetify: {
194
+ breakpoint: new Breakpoint(preset),
195
+ },
197
196
  },
198
197
  },
199
198
  })
@@ -201,16 +200,16 @@ describe('VBanner.ts', () => {
201
200
  expect(wrapper.classes('v-banner--is-mobile')).toBeTruthy()
202
201
  })
203
202
 
204
- it('should apply sticky when using the app prop', () => {
203
+ it('should apply sticky when using the app prop', async () => {
205
204
  const wrapper = mountFunction({
206
- propsData: { app: true },
205
+ props: { app: true },
207
206
  })
208
207
 
209
208
  expect(wrapper.vm.isSticky).toBe(true)
210
209
 
211
210
  expect(wrapper.html()).toMatchSnapshot()
212
211
 
213
- wrapper.setProps({
212
+ await wrapper.setProps({
214
213
  app: false,
215
214
  sticky: true,
216
215
  })
@@ -219,7 +218,7 @@ describe('VBanner.ts', () => {
219
218
 
220
219
  expect(wrapper.html()).toMatchSnapshot()
221
220
 
222
- wrapper.setProps({ sticky: false })
221
+ await wrapper.setProps({ app: false, sticky: false })
223
222
 
224
223
  expect(wrapper.vm.isSticky).toBe(false)
225
224
 
@@ -114,7 +114,7 @@ exports[`VBanner.ts should render component with icon slot 1`] = `
114
114
  `;
115
115
 
116
116
  exports[`VBanner.ts should render sinle-line component with content 1`] = `
117
- <div class="v-banner v-sheet theme--light v-banner--is-mobile">
117
+ <div class="v-banner v-sheet theme--light v-banner--is-mobile v-banner--single-line">
118
118
  <div class="v-banner__wrapper">
119
119
  <div class="v-banner__content">
120
120
  <div class="v-banner__text">
@@ -23,11 +23,11 @@ import { VNode } from 'vue'
23
23
  export default mixins(
24
24
  Applicationable('bottom', [
25
25
  'height',
26
- 'inputValue',
26
+ 'modelValue',
27
27
  ]),
28
28
  Colorable,
29
29
  Measurable,
30
- ToggleableFactory('inputValue'),
30
+ ToggleableFactory(),
31
31
  Proxyable,
32
32
  Scrollable,
33
33
  Themeable
@@ -48,7 +48,7 @@ export default mixins(
48
48
  },
49
49
  hideOnScroll: Boolean,
50
50
  horizontal: Boolean,
51
- inputValue: {
51
+ modelValue: {
52
52
  type: Boolean,
53
53
  default: true,
54
54
  },
@@ -60,9 +60,11 @@ export default mixins(
60
60
  },
61
61
  },
62
62
 
63
+ emits: ['update:modelValue', 'change'],
64
+
63
65
  data () {
64
66
  return {
65
- isActive: this.inputValue,
67
+ isActive: this.modelValue,
66
68
  }
67
69
  },
68
70
 
@@ -72,7 +74,7 @@ export default mixins(
72
74
  Scrollable.computed.canScroll.call(this) &&
73
75
  (
74
76
  this.hideOnScroll ||
75
- !this.inputValue
77
+ !this.modelValue
76
78
  )
77
79
  )
78
80
  },
@@ -110,7 +112,7 @@ export default mixins(
110
112
  this.isActive = !this.isScrollingUp ||
111
113
  this.currentScroll > this.computedScrollThreshold
112
114
 
113
- this.$emit('update:input-value', this.isActive)
115
+ this.$emit('update:modelValue', this.isActive)
114
116
  }
115
117
 
116
118
  if (this.currentThreshold < this.computedScrollThreshold) return
@@ -134,10 +136,10 @@ export default mixins(
134
136
  activeClass: this.activeClass,
135
137
  mandatory: Boolean(
136
138
  this.mandatory ||
137
- this.value !== undefined
139
+ this.modelValue !== undefined
138
140
  ),
139
141
  tag: this.tag,
140
- value: this.internalValue,
142
+ modelValue: this.internalValue,
141
143
  onChange: this.updateValue
142
144
  })
143
145
 
@@ -31,7 +31,7 @@ const baseMixins = mixins(
31
31
  Positionable,
32
32
  Sizeable,
33
33
  GroupableFactory('btnToggle'),
34
- ToggleableFactory('inputValue')
34
+ ToggleableFactory()
35
35
  /* @vue/component */
36
36
  )
37
37
  interface options extends ExtractVue<typeof baseMixins> {
@@ -66,7 +66,7 @@ export default baseMixins.extend({
66
66
  value: null as any as PropType<any>,
67
67
  },
68
68
 
69
- emits: ['click'],
69
+ emits: ['click', 'change', 'update:modelValue'],
70
70
 
71
71
  data: () => ({
72
72
  proxyClass: 'v-btn--active',
@@ -99,7 +99,7 @@ describe('VBtn.ts', () => {
99
99
  it('should use custom active-class', () => {
100
100
  const wrapper = mountFunction({
101
101
  props: {
102
- inputValue: true,
102
+ modelValue: true,
103
103
  activeClass: 'foo',
104
104
  },
105
105
  })
@@ -1,9 +1,9 @@
1
- import {h} from 'vue'
1
+ import { h, defineComponent, VNode, Component, withDirectives } from 'vue'
2
2
  // Styles
3
3
  // import '../../stylus/components/_calendar-daily.styl'
4
4
 
5
- // Types
6
- import { VNode, Component, defineComponent } from 'vue'
5
+ // Directives
6
+ import Resize from '../../directives/resize'
7
7
 
8
8
  // Mixins
9
9
  import CalendarWithEvents from './mixins/calendar-with-events'
@@ -51,6 +51,8 @@ interface VCalendarRenderProps {
51
51
  /* @vue/component */
52
52
  export default defineComponent({
53
53
  name: 'v-calendar',
54
+
55
+
54
56
  extends: CalendarWithEvents,
55
57
 
56
58
  props: {
@@ -60,6 +62,8 @@ export default defineComponent({
60
62
  ...props.category,
61
63
  },
62
64
 
65
+ emits: ['change', 'update:modelValue', 'moved', 'click:date'],
66
+
63
67
  data: () => ({
64
68
  lastStart: null as CalendarTimestamp | null,
65
69
  lastEnd: null as CalendarTimestamp | null,
@@ -236,11 +240,11 @@ export default defineComponent({
236
240
  updateRelative(moved, this.times.now)
237
241
 
238
242
  if (this.value instanceof Date) {
239
- this.$emit('input', timestampToDate(moved))
243
+ this.$emit('update:modelValue', timestampToDate(moved))
240
244
  } else if (typeof this.value === 'number') {
241
- this.$emit('input', timestampToDate(moved).getTime())
245
+ this.$emit('update:modelValue', timestampToDate(moved).getTime())
242
246
  } else {
243
- this.$emit('input', moved.date)
247
+ this.$emit('update:modelValue', moved.date)
244
248
  }
245
249
 
246
250
  this.$emit('moved', moved)
@@ -252,7 +256,7 @@ export default defineComponent({
252
256
  this.move(-amount)
253
257
  },
254
258
  timeToY (time: VTime, clamp = true): number | false {
255
- const c = this.$children[0] as any
259
+ const c = this.$refs.calendarChild as any
256
260
 
257
261
  if (c && c.timeToY) {
258
262
  return c.timeToY(time, clamp)
@@ -261,7 +265,7 @@ export default defineComponent({
261
265
  }
262
266
  },
263
267
  timeDelta (time: VTime): number | false {
264
- const c = this.$children[0] as any
268
+ const c = this.$refs.calendarChild as any
265
269
 
266
270
  if (c && c.timeDelta) {
267
271
  return c.timeDelta(time)
@@ -270,7 +274,7 @@ export default defineComponent({
270
274
  }
271
275
  },
272
276
  minutesToPixels (minutes: number): number {
273
- const c = this.$children[0] as any
277
+ const c = this.$refs.calendarChild as any
274
278
 
275
279
  if (c && c.minutesToPixels) {
276
280
  return c.minutesToPixels(minutes)
@@ -279,7 +283,7 @@ export default defineComponent({
279
283
  }
280
284
  },
281
285
  scrollToTime (time: VTime): boolean {
282
- const c = this.$children[0] as any
286
+ const c = this.$refs.calendarChild as any
283
287
 
284
288
  if (c && c.scrollToTime) {
285
289
  return c.scrollToTime(time)
@@ -350,32 +354,30 @@ export default defineComponent({
350
354
  render (): VNode {
351
355
  const { start, end, maxDays, component, weekdays, categories } = this.renderProps
352
356
 
353
- return h(component, {
357
+ // Only pass categories prop to VCalendarCategory component
358
+ const props: any = {
359
+ ref: 'calendarChild',
354
360
  class: ['v-calendar', {
355
361
  'v-calendar-events': !this.noEvents,
356
362
  }],
357
- ...this.$props,
358
363
  start: start.date,
359
364
  end: end.date,
360
365
  maxDays,
361
366
  weekdays,
362
- categories,
363
367
  role: 'grid',
364
- directives: [{
365
- modifiers: { quiet: true },
366
- name: 'resize',
367
- value: this.updateEventVisibility,
368
- }],
369
- ...this.$listeners,
370
368
  'onClick:date': (day: CalendarTimestamp, e?: MouseEvent) => {
371
- if (this.$listeners.input) {
372
- this.$emit('input', day.date)
373
- }
374
- if (this.$listeners['click:date']) {
375
- this.$emit('click:date', day, e)
376
- }
369
+ this.$emit('update:modelValue', day.date)
370
+ this.$emit('click:date', day, e)
377
371
  },
378
- scopedSlots: this.getScopedSlots(),
379
- })
372
+ }
373
+
374
+ // Only add categories prop for VCalendarCategory component
375
+ if (component.name === 'v-calendar-category') {
376
+ props.categories = categories
377
+ }
378
+
379
+ return withDirectives(h(component, props, this.getScopedSlots()), [
380
+ [Resize, this.updateEventVisibility, '', { quiet: true }],
381
+ ])
380
382
  },
381
383
  })
@@ -1,8 +1,10 @@
1
+ import { h, defineComponent } from 'vue'
2
+
1
3
  // Styles
2
4
  import './VCalendarCategory.sass'
3
5
 
4
6
  // Types
5
- import { VNode, defineComponent } from 'vue'
7
+ import { VNode } from 'vue'
6
8
 
7
9
  // Mixins
8
10
  import VCalendarDaily from './VCalendarDaily'
@@ -59,7 +61,7 @@ export default defineComponent({
59
61
  const headerTitle = typeof scope.category === 'object' ? scope.category.categoryName : scope.category
60
62
  return h('div', {
61
63
  class: 'v-calendar-category__column-header',
62
- on: this.getDefaultMouseEventHandlers(':day-category', e => {
64
+ ...this.getDefaultMouseEventHandlers(':day-category', e => {
63
65
  return this.getCategoryScope(this.getSlotScope(day), scope.category)
64
66
  }),
65
67
  }, [
@@ -85,9 +87,8 @@ export default defineComponent({
85
87
  const category = this.parsedCategories[categoryIndex]
86
88
  return h('div', {
87
89
  key: day.date + '-' + categoryIndex,
88
- class: 'v-calendar-daily__day',
89
- class: this.getRelativeClasses(day),
90
- on: this.getDefaultMouseEventHandlers(':time', e => {
90
+ class: ['v-calendar-daily__day', this.getRelativeClasses(day)],
91
+ ...this.getDefaultMouseEventHandlers(':time', e => {
91
92
  return this.getSlotScope(this.getTimestampAtEvent(e, day))
92
93
  }),
93
94
  }, [
@@ -111,7 +112,7 @@ export default defineComponent({
111
112
  },
112
113
  }
113
114
 
114
- const children = getSlot(this, 'interval', () =>
115
+ const children = getSlot(this, 'interval',
115
116
  this.getCategoryScope(this.getSlotScope(interval), category)
116
117
  )
117
118
 
@@ -129,12 +130,12 @@ export default defineComponent({
129
130
  genDayBodyCategory (day: CalendarTimestamp, category: CalendarCategory): VNode {
130
131
  const data = {
131
132
  class: 'v-calendar-category__column',
132
- on: this.getDefaultMouseEventHandlers(':time-category', e => {
133
+ ...this.getDefaultMouseEventHandlers(':time-category', e => {
133
134
  return this.getCategoryScope(this.getSlotScope(this.getTimestampAtEvent(e, day)), category)
134
135
  }),
135
136
  }
136
137
 
137
- const children = getSlot(this, 'day-body', () => this.getCategoryScope(this.getSlotScope(day), category))
138
+ const children = getSlot(this, 'day-body', this.getCategoryScope(this.getSlotScope(day), category))
138
139
 
139
140
  return h('div', data, children)
140
141
  },
@@ -1,10 +1,7 @@
1
- import {h} from 'vue'
1
+ import { h, defineComponent, withDirectives, VNode } from 'vue'
2
2
  // Styles
3
3
  import './VCalendarDaily.sass'
4
4
 
5
- // Types
6
- import { VNode, defineComponent } from 'vue'
7
-
8
5
  // Directives
9
6
  import Resize from '../../directives/resize'
10
7
 
@@ -21,9 +18,9 @@ import { CalendarTimestamp } from 'vuetify/types'
21
18
  /* @vue/component */
22
19
  export default defineComponent({
23
20
  name: 'v-calendar-daily',
24
- extends: CalendarWithIntervals,
25
21
 
26
- directives: { Resize },
22
+
23
+ extends: CalendarWithIntervals,
27
24
 
28
25
  data: () => ({
29
26
  scrollPush: 0,
@@ -82,9 +79,8 @@ export default defineComponent({
82
79
  genHeadDay (day: CalendarTimestamp, index: number): VNode {
83
80
  return h('div', {
84
81
  key: day.date,
85
- class: 'v-calendar-daily_head-day',
86
- class: this.getRelativeClasses(day),
87
- on: this.getDefaultMouseEventHandlers(':day', nativeEvent => {
82
+ class: ['v-calendar-daily_head-day', this.getRelativeClasses(day)],
83
+ ...this.getDefaultMouseEventHandlers(':day', nativeEvent => {
88
84
  return { nativeEvent, ...this.getSlotScope(day) }
89
85
  }),
90
86
  }, [
@@ -94,9 +90,9 @@ export default defineComponent({
94
90
  ])
95
91
  },
96
92
  genDayHeader (day: CalendarTimestamp, index: number): VNode[] {
97
- return getSlot(this, 'day-header', () => ({
93
+ return getSlot(this, 'day-header', {
98
94
  week: this.days, ...day, index,
99
- })) || []
95
+ }) || []
100
96
  },
101
97
  genHeadWeekday (day: CalendarTimestamp): VNode {
102
98
  const color = day.present ? this.color : undefined
@@ -123,7 +119,7 @@ export default defineComponent({
123
119
  }, nativeEvent => {
124
120
  return { nativeEvent, ...day }
125
121
  }),
126
- }, this.dayFormatter(day, false))
122
+ }, { default: () => this.dayFormatter(day, false) })
127
123
  },
128
124
  genBody (): VNode {
129
125
  return h('div', {
@@ -165,9 +161,8 @@ export default defineComponent({
165
161
  genDay (day: CalendarTimestamp, index: number): VNode {
166
162
  return h('div', {
167
163
  key: day.date,
168
- class: 'v-calendar-daily__day',
169
- class: this.getRelativeClasses(day),
170
- on: this.getDefaultMouseEventHandlers(':time', nativeEvent => {
164
+ class: ['v-calendar-daily__day', this.getRelativeClasses(day)],
165
+ ...this.getDefaultMouseEventHandlers(':time', nativeEvent => {
171
166
  return { nativeEvent, ...this.getSlotScope(this.getTimestampAtEvent(nativeEvent, day)) }
172
167
  }),
173
168
  }, [
@@ -176,7 +171,7 @@ export default defineComponent({
176
171
  ])
177
172
  },
178
173
  genDayBody (day: CalendarTimestamp): VNode[] {
179
- return getSlot(this, 'day-body', () => this.getSlotScope(day)) || []
174
+ return getSlot(this, 'day-body', this.getSlotScope(day)) || []
180
175
  },
181
176
  genDayIntervals (index: number): VNode[] {
182
177
  return this.intervals[index].map(this.genDayInterval)
@@ -195,7 +190,7 @@ export default defineComponent({
195
190
 
196
191
  }
197
192
 
198
- const children = getSlot(this, 'interval', () => this.getSlotScope(interval))
193
+ const children = getSlot(this, 'interval', this.getSlotScope(interval))
199
194
 
200
195
  return h('div', data, children)
201
196
  },
@@ -206,7 +201,7 @@ export default defineComponent({
206
201
  style: {
207
202
  width,
208
203
  },
209
- on: this.getDefaultMouseEventHandlers(':interval', nativeEvent => {
204
+ ...this.getDefaultMouseEventHandlers(':interval', nativeEvent => {
210
205
  return { nativeEvent, ...this.getTimestampAtEvent(nativeEvent, this.parsedStart) }
211
206
  }),
212
207
  }
@@ -240,21 +235,16 @@ export default defineComponent({
240
235
  },
241
236
 
242
237
  render (): VNode {
243
- return h('div', {
238
+ return withDirectives(h('div', {
244
239
  class: this.classes,
245
- on: {
246
- dragstart: (e: MouseEvent) => {
247
- e.preventDefault()
248
- },
240
+ onDragstart: (e: MouseEvent) => {
241
+ e.preventDefault()
249
242
  },
250
- directives: [{
251
- modifiers: { quiet: true },
252
- name: 'resize',
253
- value: this.onResize,
254
- }],
255
243
  }, [
256
244
  !this.hideHeader ? this.genHead() : '',
257
245
  this.genBody(),
246
+ ]), [
247
+ [Resize, this.onResize, '', { quiet: true }],
258
248
  ])
259
249
  },
260
250
  })
@@ -1,3 +1,5 @@
1
+ import { defineComponent } from 'vue'
2
+
1
3
  // Styles
2
4
  import './VCalendarWeekly.sass'
3
5
 
@@ -7,7 +9,6 @@ import VCalendarWeekly from './VCalendarWeekly'
7
9
  // Util
8
10
  import { parseTimestamp, getStartOfMonth, getEndOfMonth } from './util/timestamp'
9
11
  import { CalendarTimestamp } from 'vuetify/types'
10
- import { defineComponent } from 'vue'
11
12
 
12
13
  /* @vue/component */
13
14
  export default defineComponent({
@@ -1,9 +1,9 @@
1
- import {h} from 'vue'
1
+ import { h, defineComponent } from 'vue'
2
2
  // Styles
3
3
  import './VCalendarWeekly.sass'
4
4
 
5
5
  // Types
6
- import { VNode, defineComponent } from 'vue'
6
+ import { VNode } from 'vue'
7
7
 
8
8
  // Components
9
9
  import VBtn from '../VBtn'
@@ -92,9 +92,7 @@ export default defineComponent({
92
92
  genHead (): VNode {
93
93
  return h('div', {
94
94
  class: 'v-calendar-weekly__head',
95
- attrs: {
96
- role: 'row',
97
- },
95
+ role: 'row',
98
96
  }, this.genHeadDays())
99
97
  },
100
98
  genHeadDays (): VNode[] {
@@ -114,11 +112,8 @@ export default defineComponent({
114
112
 
115
113
  return h('div', this.setTextColor(color, {
116
114
  key: day.date,
117
- class: 'v-calendar-weekly__head-weekday',
118
- class: this.getRelativeClasses(day, outside),
119
- attrs: {
120
- role: 'columnheader',
121
- },
115
+ class: ['v-calendar-weekly__head-weekday', this.getRelativeClasses(day, outside)],
116
+ role: 'columnheader',
122
117
  }), this.weekdayFormatter(day, this.shortWeekdays))
123
118
  },
124
119
  genWeeks (): VNode[] {
@@ -142,9 +137,7 @@ export default defineComponent({
142
137
  return h('div', {
143
138
  key: week[0].date,
144
139
  class: 'v-calendar-weekly__week',
145
- attrs: {
146
- role: 'row',
147
- },
140
+ role: 'row',
148
141
  }, weekNodes)
149
142
  },
150
143
  getWeekNumber (determineDay: CalendarTimestamp) {
@@ -168,17 +161,14 @@ export default defineComponent({
168
161
 
169
162
  return h('div', {
170
163
  key: day.date,
171
- class: 'v-calendar-weekly__day',
172
- class: this.getRelativeClasses(day, outside),
173
- attrs: {
174
- role: 'cell',
175
- },
176
- on: this.getDefaultMouseEventHandlers(':day', nativeEvent => {
164
+ class: ['v-calendar-weekly__day', this.getRelativeClasses(day, outside)],
165
+ role: 'cell',
166
+ ...this.getDefaultMouseEventHandlers(':day', nativeEvent => {
177
167
  return { nativeEvent, ...day }
178
168
  }),
179
169
  }, [
180
170
  this.genDayLabel(day),
181
- ...(getSlot(this, 'day', () => ({ outside, index, week, ...day })) || []),
171
+ ...(getSlot(this, 'day', { outside, index, week, ...day }) || []),
182
172
  ])
183
173
  },
184
174
  genDayLabel (day: CalendarTimestamp): VNode {
@@ -199,10 +189,11 @@ export default defineComponent({
199
189
  'click:date': { event: 'click', stop: true },
200
190
  'contextmenu:date': { event: 'contextmenu', stop: true, prevent: true, result: false },
201
191
  }, nativeEvent => ({ nativeEvent, ...day })),
202
- }, hasMonth
203
- ? this.monthFormatter(day, this.shortMonths) + ' ' + this.dayFormatter(day, false)
204
- : this.dayFormatter(day, false)
205
- )
192
+ }, {
193
+ default: () => hasMonth
194
+ ? this.monthFormatter(day, this.shortMonths) + ' ' + this.dayFormatter(day, false)
195
+ : this.dayFormatter(day, false)
196
+ })
206
197
  },
207
198
  genDayMonth (day: CalendarTimestamp): VNode | string {
208
199
  const color = day.present ? this.color : undefined
@@ -215,12 +206,9 @@ export default defineComponent({
215
206
 
216
207
  render (): VNode {
217
208
  return h('div', {
218
- class: this.staticClass,
219
- class: this.classes,
220
- on: {
221
- dragstart: (e: MouseEvent) => {
222
- e.preventDefault()
223
- },
209
+ class: [this.staticClass, this.classes],
210
+ onDragstart: (e: MouseEvent) => {
211
+ e.preventDefault()
224
212
  },
225
213
  }, [
226
214
  !this.hideHeader ? this.genHead() : '',