@dimailn/vuetify 2.7.2-alpha26 → 2.7.2-alpha27

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 (444) hide show
  1. package/dist/vuetify.js +1109 -1021
  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 -0
  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 +14 -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 +26 -12
  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 +1 -0
  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 +1 -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 +13 -17
  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 +6 -3
  159. package/es5/components/VTooltip/VTooltip.js.map +1 -1
  160. package/es5/components/VVirtualScroll/VVirtualScroll.js +0 -3
  161. package/es5/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
  162. package/es5/components/VWindow/VWindow.js +0 -3
  163. package/es5/components/VWindow/VWindow.js.map +1 -1
  164. package/es5/components/VWindow/VWindowItem.js +1 -5
  165. package/es5/components/VWindow/VWindowItem.js.map +1 -1
  166. package/es5/framework.js +1 -1
  167. package/es5/mixins/detachable/index.js +9 -5
  168. package/es5/mixins/detachable/index.js.map +1 -1
  169. package/lib/components/VAlert/VAlert.js +1 -0
  170. package/lib/components/VAlert/VAlert.js.map +1 -1
  171. package/lib/components/VAppBar/VAppBar.js +17 -6
  172. package/lib/components/VAppBar/VAppBar.js.map +1 -1
  173. package/lib/components/VBadge/VBadge.js +1 -0
  174. package/lib/components/VBadge/VBadge.js.map +1 -1
  175. package/lib/components/VBanner/VBanner.js +7 -11
  176. package/lib/components/VBanner/VBanner.js.map +1 -1
  177. package/lib/components/VBottomNavigation/VBottomNavigation.js +8 -7
  178. package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
  179. package/lib/components/VBtn/VBtn.js +2 -2
  180. package/lib/components/VBtn/VBtn.js.map +1 -1
  181. package/lib/components/VCalendar/VCalendar.js +26 -31
  182. package/lib/components/VCalendar/VCalendar.js.map +1 -1
  183. package/lib/components/VCalendar/VCalendarCategory.js +8 -10
  184. package/lib/components/VCalendar/VCalendarCategory.js.map +1 -1
  185. package/lib/components/VCalendar/VCalendarDaily.js +21 -33
  186. package/lib/components/VCalendar/VCalendarDaily.js.map +1 -1
  187. package/lib/components/VCalendar/VCalendarMonthly.js +2 -2
  188. package/lib/components/VCalendar/VCalendarMonthly.js.map +1 -1
  189. package/lib/components/VCalendar/VCalendarWeekly.js +17 -30
  190. package/lib/components/VCalendar/VCalendarWeekly.js.map +1 -1
  191. package/lib/components/VCalendar/mixins/calendar-base.js +7 -11
  192. package/lib/components/VCalendar/mixins/calendar-base.js.map +1 -1
  193. package/lib/components/VCalendar/mixins/calendar-with-events.js +16 -39
  194. package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
  195. package/lib/components/VCalendar/mixins/calendar-with-intervals.js +2 -2
  196. package/lib/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
  197. package/lib/components/VCalendar/mixins/times.js.map +1 -1
  198. package/lib/components/VCarousel/VCarousel.js +12 -11
  199. package/lib/components/VCarousel/VCarousel.js.map +1 -1
  200. package/lib/components/VCheckbox/VCheckbox.js +14 -1
  201. package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
  202. package/lib/components/VCheckbox/VSimpleCheckbox.js +0 -3
  203. package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
  204. package/lib/components/VChip/VChip.js +14 -6
  205. package/lib/components/VChip/VChip.js.map +1 -1
  206. package/lib/components/VData/VData.js +1 -0
  207. package/lib/components/VData/VData.js.map +1 -1
  208. package/lib/components/VDataIterator/VDataFooter.js +1 -0
  209. package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
  210. package/lib/components/VDataIterator/VDataIterator.js +1 -0
  211. package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
  212. package/lib/components/VDataTable/VDataTable.js +2 -7
  213. package/lib/components/VDataTable/VDataTable.js.map +1 -1
  214. package/lib/components/VDataTable/VDataTableHeaderDesktop.js +1 -0
  215. package/lib/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
  216. package/lib/components/VDataTable/VDataTableHeaderMobile.js +1 -0
  217. package/lib/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
  218. package/lib/components/VDataTable/VEditDialog.js +15 -14
  219. package/lib/components/VDataTable/VEditDialog.js.map +1 -1
  220. package/lib/components/VDataTable/mixins/header.js +0 -5
  221. package/lib/components/VDataTable/mixins/header.js.map +1 -1
  222. package/lib/components/VDatePicker/VDatePicker.js +11 -16
  223. package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
  224. package/lib/components/VDatePicker/VDatePickerHeader.js +33 -20
  225. package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
  226. package/lib/components/VDatePicker/VDatePickerMonthTable.js +3 -1
  227. package/lib/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
  228. package/lib/components/VDatePicker/VDatePickerTitle.js +4 -3
  229. package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
  230. package/lib/components/VDatePicker/VDatePickerYears.js +8 -9
  231. package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
  232. package/lib/components/VDatePicker/mixins/date-picker-table.js +17 -13
  233. package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
  234. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js +4 -0
  235. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
  236. package/lib/components/VDialog/VDialog.js +1 -0
  237. package/lib/components/VDialog/VDialog.js.map +1 -1
  238. package/lib/components/VExpansionPanel/VExpansionPanel.js +1 -0
  239. package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
  240. package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +1 -4
  241. package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
  242. package/lib/components/VFileInput/VFileInput.js +1 -0
  243. package/lib/components/VFileInput/VFileInput.js.map +1 -1
  244. package/lib/components/VForm/VForm.js +1 -0
  245. package/lib/components/VForm/VForm.js.map +1 -1
  246. package/lib/components/VHover/VHover.js +1 -0
  247. package/lib/components/VHover/VHover.js.map +1 -1
  248. package/lib/components/VImg/VImg.js +2 -6
  249. package/lib/components/VImg/VImg.js.map +1 -1
  250. package/lib/components/VInput/VInput.js +1 -0
  251. package/lib/components/VInput/VInput.js.map +1 -1
  252. package/lib/components/VItemGroup/VItem.js +2 -1
  253. package/lib/components/VItemGroup/VItem.js.map +1 -1
  254. package/lib/components/VItemGroup/VItemGroup.js +6 -1
  255. package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
  256. package/lib/components/VLazy/VLazy.js +8 -15
  257. package/lib/components/VLazy/VLazy.js.map +1 -1
  258. package/lib/components/VList/VListGroup.js +3 -5
  259. package/lib/components/VList/VListGroup.js.map +1 -1
  260. package/lib/components/VList/VListItem.js +25 -14
  261. package/lib/components/VList/VListItem.js.map +1 -1
  262. package/lib/components/VList/VListItemAction.js +15 -9
  263. package/lib/components/VList/VListItemAction.js.map +1 -1
  264. package/lib/components/VMenu/VMenu.js +1 -0
  265. package/lib/components/VMenu/VMenu.js.map +1 -1
  266. package/lib/components/VNavigationDrawer/VNavigationDrawer.js +1 -6
  267. package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  268. package/lib/components/VOtpInput/VOtpInput.js +2 -6
  269. package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
  270. package/lib/components/VOverflowBtn/VOverflowBtn.js +1 -0
  271. package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
  272. package/lib/components/VOverlay/VOverlay.js +1 -0
  273. package/lib/components/VOverlay/VOverlay.js.map +1 -1
  274. package/lib/components/VPagination/VPagination.js +1 -3
  275. package/lib/components/VPagination/VPagination.js.map +1 -1
  276. package/lib/components/VPicker/VPicker.js +3 -3
  277. package/lib/components/VPicker/VPicker.js.map +1 -1
  278. package/lib/components/VProgressCircular/VProgressCircular.js +1 -4
  279. package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
  280. package/lib/components/VProgressLinear/VProgressLinear.js +4 -6
  281. package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
  282. package/lib/components/VRadioGroup/VRadio.js +1 -0
  283. package/lib/components/VRadioGroup/VRadio.js.map +1 -1
  284. package/lib/components/VSelect/VSelect.js +64 -19
  285. package/lib/components/VSelect/VSelect.js.map +1 -1
  286. package/lib/components/VSelect/VSelectList.js +13 -15
  287. package/lib/components/VSelect/VSelectList.js.map +1 -1
  288. package/lib/components/VSlideGroup/VSlideGroup.js +1 -4
  289. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  290. package/lib/components/VSlideGroup/VSlideItem.js +2 -1
  291. package/lib/components/VSlideGroup/VSlideItem.js.map +1 -1
  292. package/lib/components/VSlider/VSlider.js +0 -3
  293. package/lib/components/VSlider/VSlider.js.map +1 -1
  294. package/lib/components/VSnackbar/VSnackbar.js +1 -0
  295. package/lib/components/VSnackbar/VSnackbar.js.map +1 -1
  296. package/lib/components/VSparkline/VSparkline.js +48 -67
  297. package/lib/components/VSparkline/VSparkline.js.map +1 -1
  298. package/lib/components/VSpeedDial/VSpeedDial.js +3 -9
  299. package/lib/components/VSpeedDial/VSpeedDial.js.map +1 -1
  300. package/lib/components/VStepper/VStepper.js +1 -0
  301. package/lib/components/VStepper/VStepper.js.map +1 -1
  302. package/lib/components/VStepper/VStepperStep.js +7 -18
  303. package/lib/components/VStepper/VStepperStep.js.map +1 -1
  304. package/lib/components/VSwitch/VSwitch.js +1 -3
  305. package/lib/components/VSwitch/VSwitch.js.map +1 -1
  306. package/lib/components/VTabs/VTab.js +1 -0
  307. package/lib/components/VTabs/VTab.js.map +1 -1
  308. package/lib/components/VTabs/VTabs.js +14 -4
  309. package/lib/components/VTabs/VTabs.js.map +1 -1
  310. package/lib/components/VTabs/VTabsItems.js +1 -0
  311. package/lib/components/VTabs/VTabsItems.js.map +1 -1
  312. package/lib/components/VTextField/VTextField.js +6 -15
  313. package/lib/components/VTextField/VTextField.js.map +1 -1
  314. package/lib/components/VTimePicker/VTimePicker.js +65 -31
  315. package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
  316. package/lib/components/VTimePicker/VTimePickerClock.js +24 -39
  317. package/lib/components/VTimePicker/VTimePickerClock.js.map +1 -1
  318. package/lib/components/VTimePicker/VTimePickerTitle.js +3 -2
  319. package/lib/components/VTimePicker/VTimePickerTitle.js.map +1 -1
  320. package/lib/components/VToolbar/VToolbar.js +1 -3
  321. package/lib/components/VToolbar/VToolbar.js.map +1 -1
  322. package/lib/components/VTooltip/VTooltip.js +1 -2
  323. package/lib/components/VTooltip/VTooltip.js.map +1 -1
  324. package/lib/components/VVirtualScroll/VVirtualScroll.js +0 -3
  325. package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
  326. package/lib/components/VWindow/VWindow.js +0 -3
  327. package/lib/components/VWindow/VWindow.js.map +1 -1
  328. package/lib/components/VWindow/VWindowItem.js +2 -6
  329. package/lib/components/VWindow/VWindowItem.js.map +1 -1
  330. package/lib/framework.js +1 -1
  331. package/lib/mixins/detachable/index.js +9 -5
  332. package/lib/mixins/detachable/index.js.map +1 -1
  333. package/package.json +1 -1
  334. package/src/components/VAlert/VAlert.ts +2 -0
  335. package/src/components/VAppBar/VAppBar.ts +12 -3
  336. package/src/components/VBadge/VBadge.ts +1 -1
  337. package/src/components/VBanner/VBanner.ts +14 -14
  338. package/src/components/VBottomNavigation/VBottomNavigation.ts +10 -8
  339. package/src/components/VBtn/VBtn.ts +2 -2
  340. package/src/components/VCalendar/VCalendar.ts +29 -27
  341. package/src/components/VCalendar/VCalendarCategory.ts +9 -8
  342. package/src/components/VCalendar/VCalendarDaily.ts +18 -28
  343. package/src/components/VCalendar/VCalendarMonthly.ts +2 -1
  344. package/src/components/VCalendar/VCalendarWeekly.ts +18 -30
  345. package/src/components/VCalendar/__tests__/VCalendar.spec.ts +18 -34
  346. package/src/components/VCalendar/__tests__/VCalendarCategory.spec.ts +16 -14
  347. package/src/components/VCalendar/__tests__/VCalendarDaily.spec.ts +30 -28
  348. package/src/components/VCalendar/__tests__/__snapshots__/VCalendar.spec.ts.snap +206 -205
  349. package/src/components/VCalendar/__tests__/__snapshots__/VCalendarDaily.spec.ts.snap +122 -122
  350. package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-with-events.spec.ts.snap +1 -56
  351. package/src/components/VCalendar/mixins/__tests__/calendar-base.spec.ts +24 -21
  352. package/src/components/VCalendar/mixins/__tests__/calendar-with-events.spec.ts +27 -34
  353. package/src/components/VCalendar/mixins/__tests__/calendar-with-intervals.spec.ts +31 -28
  354. package/src/components/VCalendar/mixins/__tests__/times.spec.ts +10 -9
  355. package/src/components/VCalendar/mixins/calendar-base.ts +8 -12
  356. package/src/components/VCalendar/mixins/calendar-with-events.ts +19 -38
  357. package/src/components/VCalendar/mixins/calendar-with-intervals.ts +1 -1
  358. package/src/components/VCalendar/mixins/times.ts +1 -1
  359. package/src/components/VCarousel/VCarousel.ts +13 -9
  360. package/src/components/VCheckbox/VCheckbox.ts +19 -1
  361. package/src/components/VCheckbox/VSimpleCheckbox.ts +0 -3
  362. package/src/components/VChip/VChip.ts +16 -13
  363. package/src/components/VData/VData.ts +2 -0
  364. package/src/components/VDataIterator/VDataFooter.ts +2 -0
  365. package/src/components/VDataIterator/VDataIterator.ts +2 -0
  366. package/src/components/VDataTable/VDataTable.ts +2 -4
  367. package/src/components/VDataTable/VDataTableHeaderDesktop.ts +5 -0
  368. package/src/components/VDataTable/VDataTableHeaderMobile.ts +2 -0
  369. package/src/components/VDataTable/VEditDialog.ts +19 -17
  370. package/src/components/VDataTable/mixins/header.ts +0 -4
  371. package/src/components/VDatePicker/VDatePicker.ts +13 -18
  372. package/src/components/VDatePicker/VDatePickerHeader.ts +44 -32
  373. package/src/components/VDatePicker/VDatePickerMonthTable.ts +1 -1
  374. package/src/components/VDatePicker/VDatePickerTitle.ts +7 -5
  375. package/src/components/VDatePicker/VDatePickerYears.ts +6 -10
  376. package/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +302 -246
  377. package/src/components/VDatePicker/__tests__/VDatePicker.month.spec.ts +90 -86
  378. package/src/components/VDatePicker/__tests__/VDatePickerDateTable.spec.ts +76 -90
  379. package/src/components/VDatePicker/__tests__/VDatePickerHeader.spec.ts +96 -71
  380. package/src/components/VDatePicker/__tests__/VDatePickerMonthTable.spec.ts +63 -77
  381. package/src/components/VDatePicker/__tests__/VDatePickerTitle.spec.ts +48 -28
  382. package/src/components/VDatePicker/__tests__/VDatePickerYears.spec.ts +25 -22
  383. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.date.spec.ts.snap +601 -586
  384. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.month.spec.ts.snap +203 -193
  385. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerDateTable.spec.ts.snap +615 -615
  386. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerHeader.spec.ts.snap +52 -52
  387. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerMonthTable.spec.ts.snap +144 -144
  388. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerTitle.spec.ts.snap +3 -4
  389. package/src/components/VDatePicker/mixins/date-picker-table.ts +18 -13
  390. package/src/components/VDatePicker/util/__tests__/createNativeLocaleFormatter.spec.ts +7 -0
  391. package/src/components/VDatePicker/util/createNativeLocaleFormatter.ts +3 -0
  392. package/src/components/VDialog/VDialog.ts +7 -5
  393. package/src/components/VExpansionPanel/VExpansionPanel.ts +5 -0
  394. package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +0 -1
  395. package/src/components/VFileInput/VFileInput.ts +2 -0
  396. package/src/components/VForm/VForm.ts +2 -0
  397. package/src/components/VHover/VHover.ts +2 -0
  398. package/src/components/VImg/VImg.ts +2 -1
  399. package/src/components/VInput/VInput.ts +2 -0
  400. package/src/components/VItemGroup/VItem.ts +4 -0
  401. package/src/components/VItemGroup/VItemGroup.ts +7 -1
  402. package/src/components/VLazy/VLazy.ts +11 -13
  403. package/src/components/VList/VListGroup.ts +7 -8
  404. package/src/components/VList/VListItem.ts +29 -15
  405. package/src/components/VList/VListItemAction.ts +11 -10
  406. package/src/components/VMenu/VMenu.ts +3 -1
  407. package/src/components/VNavigationDrawer/VNavigationDrawer.ts +2 -5
  408. package/src/components/VOtpInput/VOtpInput.ts +2 -3
  409. package/src/components/VOverflowBtn/VOverflowBtn.ts +2 -0
  410. package/src/components/VOverlay/VOverlay.ts +2 -0
  411. package/src/components/VPagination/VPagination.ts +2 -1
  412. package/src/components/VPicker/VPicker.ts +8 -10
  413. package/src/components/VPicker/__tests__/VPicker.spec.ts +14 -15
  414. package/src/components/VProgressCircular/VProgressCircular.ts +0 -1
  415. package/src/components/VProgressLinear/VProgressLinear.ts +14 -13
  416. package/src/components/VRadioGroup/VRadio.ts +2 -0
  417. package/src/components/VSelect/VSelect.ts +59 -19
  418. package/src/components/VSelect/VSelectList.ts +13 -9
  419. package/src/components/VSlideGroup/VSlideGroup.ts +2 -4
  420. package/src/components/VSlideGroup/VSlideItem.ts +2 -0
  421. package/src/components/VSlider/VSlider.ts +0 -3
  422. package/src/components/VSnackbar/VSnackbar.ts +1 -1
  423. package/src/components/VSparkline/VSparkline.ts +54 -92
  424. package/src/components/VSpeedDial/VSpeedDial.ts +6 -8
  425. package/src/components/VStepper/VStepper.ts +3 -1
  426. package/src/components/VStepper/VStepperStep.ts +8 -15
  427. package/src/components/VSwitch/VSwitch.ts +4 -5
  428. package/src/components/VTabs/VTab.ts +2 -0
  429. package/src/components/VTabs/VTabs.ts +16 -10
  430. package/src/components/VTabs/VTabsItems.ts +2 -0
  431. package/src/components/VTextField/VTextField.ts +9 -12
  432. package/src/components/VTimePicker/VTimePicker.ts +199 -89
  433. package/src/components/VTimePicker/VTimePickerClock.ts +40 -45
  434. package/src/components/VTimePicker/VTimePickerTitle.ts +5 -4
  435. package/src/components/VTimePicker/__tests__/VTimePicker.spec.ts +153 -140
  436. package/src/components/VTimePicker/__tests__/VTimePickerClock.spec.ts +78 -81
  437. package/src/components/VTimePicker/__tests__/VTimePickerTitle.spec.ts +47 -41
  438. package/src/components/VTimePicker/__tests__/__snapshots__/VTimePicker.spec.ts.snap +160 -40
  439. package/src/components/VToolbar/VToolbar.ts +1 -1
  440. package/src/components/VTooltip/VTooltip.ts +1 -1
  441. package/src/components/VVirtualScroll/VVirtualScroll.ts +0 -1
  442. package/src/components/VWindow/VWindow.ts +0 -1
  443. package/src/components/VWindow/VWindowItem.ts +2 -3
  444. package/src/mixins/detachable/index.ts +11 -5
@@ -1,58 +1,3 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`calendar-with-events.ts should get events map 1`] = `
4
- Object {
5
- "2019-02-12": Object {
6
- "events": Array [
7
- <div
8
- data-date="2019-02-12"
9
- data-event="test"
10
- />,
11
- ],
12
- "more": null,
13
- "parent": <div>
14
- <div
15
- data-date="2019-02-12"
16
- data-event="test"
17
- />
18
- <div
19
- data-date="2019-02-13"
20
- data-event="test1"
21
- />
22
- <div
23
- data-date="2019-02-13"
24
- data-event="test2"
25
- data-more="123"
26
- />
27
- </div>,
28
- },
29
- "2019-02-13": Object {
30
- "events": Array [
31
- <div
32
- data-date="2019-02-13"
33
- data-event="test1"
34
- />,
35
- ],
36
- "more": <div
37
- data-date="2019-02-13"
38
- data-event="test2"
39
- data-more="123"
40
- />,
41
- "parent": <div>
42
- <div
43
- data-date="2019-02-12"
44
- data-event="test"
45
- />
46
- <div
47
- data-date="2019-02-13"
48
- data-event="test1"
49
- />
50
- <div
51
- data-date="2019-02-13"
52
- data-event="test2"
53
- data-more="123"
54
- />
55
- </div>,
56
- },
57
- }
58
- `;
3
+ exports[`calendar-with-events.ts should get events map 1`] = `Object {}`;
@@ -2,26 +2,29 @@ import CalendarBase from '../calendar-base'
2
2
  import { parseTimestamp } from '../../util/timestamp'
3
3
  import {
4
4
  mount,
5
- Wrapper,
6
- MountOptions,
5
+ VueWrapper,
6
+ MountingOptions,
7
7
  } from '@vue/test-utils'
8
- import { ExtractVue } from '../../../../util/mixins'
8
+ import { defineComponent, h } from 'vue'
9
9
 
10
- const Mock = CalendarBase.extend({
11
- render: h => h('div'),
10
+ const Mock = defineComponent({
11
+ ...CalendarBase,
12
+ render: () => h('div'),
12
13
  })
13
14
 
14
15
  describe('calendar-base.ts', () => {
15
- type Instance = ExtractVue<typeof Mock>
16
- let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance>
16
+ type Instance = InstanceType<typeof Mock>
17
+ let mountFunction: (options?: MountingOptions<Instance>) => VueWrapper<Instance>
17
18
  beforeEach(() => {
18
- mountFunction = (options?: MountOptions<Instance>) => {
19
+ mountFunction = (options?: MountingOptions<Instance>) => {
19
20
  return mount(Mock, {
20
21
  ...options,
21
- mocks: {
22
- $vuetify: {
23
- lang: {
24
- current: 'en-US',
22
+ global: {
23
+ mocks: {
24
+ $vuetify: {
25
+ lang: {
26
+ current: 'en-US',
27
+ },
25
28
  },
26
29
  },
27
30
  },
@@ -31,7 +34,7 @@ describe('calendar-base.ts', () => {
31
34
 
32
35
  it('should parse start & end', async () => {
33
36
  const wrapper = mountFunction({
34
- propsData: {
37
+ props: {
35
38
  start: '2019-01-29',
36
39
  end: '2019-02-08',
37
40
  },
@@ -45,7 +48,7 @@ describe('calendar-base.ts', () => {
45
48
 
46
49
  it('should create a day list', async () => {
47
50
  const wrapper = mountFunction({
48
- propsData: {
51
+ props: {
49
52
  start: '2019-01-29',
50
53
  end: '2019-02-08',
51
54
  },
@@ -61,7 +64,7 @@ describe('calendar-base.ts', () => {
61
64
 
62
65
  it('should calculate weekday skips', async () => {
63
66
  const wrapper = mountFunction({
64
- propsData: {
67
+ props: {
65
68
  start: '2019-01-29',
66
69
  end: '2019-02-08',
67
70
  },
@@ -73,7 +76,7 @@ describe('calendar-base.ts', () => {
73
76
 
74
77
  it('should generate classes', async () => {
75
78
  const wrapper = mountFunction({
76
- propsData: {
79
+ props: {
77
80
  start: '2019-01-29',
78
81
  end: '2019-02-08',
79
82
  },
@@ -85,7 +88,7 @@ describe('calendar-base.ts', () => {
85
88
 
86
89
  it('should generate classes with outside', async () => {
87
90
  const wrapper = mountFunction({
88
- propsData: {
91
+ props: {
89
92
  start: '2019-01-29',
90
93
  end: '2019-02-08',
91
94
  },
@@ -98,7 +101,7 @@ describe('calendar-base.ts', () => {
98
101
  it('should return weekdayFormatter equal to weekdayFormat prop', async () => {
99
102
  const weekdayFormat = x => x
100
103
  const wrapper = mountFunction({
101
- propsData: {
104
+ props: {
102
105
  weekdayFormat,
103
106
  },
104
107
  })
@@ -108,7 +111,7 @@ describe('calendar-base.ts', () => {
108
111
 
109
112
  it('should long-format weekday', async () => {
110
113
  const wrapper = mountFunction({
111
- propsData: {
114
+ props: {
112
115
  start: '2019-01-29',
113
116
  end: '2019-02-08',
114
117
  },
@@ -150,7 +153,7 @@ describe('calendar-base.ts', () => {
150
153
  it('should return dayFormatter equal to dayFormat prop', async () => {
151
154
  const dayFormat = x => x
152
155
  const wrapper = mountFunction({
153
- propsData: {
156
+ props: {
154
157
  dayFormat,
155
158
  },
156
159
  })
@@ -160,7 +163,7 @@ describe('calendar-base.ts', () => {
160
163
 
161
164
  it('should format day', async () => {
162
165
  const wrapper = mountFunction({
163
- propsData: {
166
+ props: {
164
167
  start: '2019-01-29',
165
168
  end: '2019-02-08',
166
169
  },
@@ -1,20 +1,22 @@
1
1
  import {
2
2
  mount,
3
- Wrapper,
4
- MountOptions,
3
+ VueWrapper,
4
+ MountingOptions,
5
5
  } from '@vue/test-utils'
6
6
  import CalendarWithEvents from '../calendar-with-events'
7
7
  import { parseTimestamp } from '../../util/timestamp'
8
+ import { defineComponent, h } from 'vue'
8
9
 
9
- const Mock = CalendarWithEvents.extend({
10
- render: h => h('div'),
10
+ const Mock = defineComponent({
11
+ ...CalendarWithEvents,
12
+ render: () => h('div'),
11
13
  })
12
14
 
13
15
  describe('calendar-with-events.ts', () => {
14
16
  type Instance = InstanceType<typeof Mock>
15
- let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance>
17
+ let mountFunction: (options?: MountingOptions<Instance>) => VueWrapper<Instance>
16
18
  beforeEach(() => {
17
- mountFunction = (options?: MountOptions<Instance>) => {
19
+ mountFunction = (options?: MountingOptions<Instance>) => {
18
20
  return mount(Mock, options)
19
21
  }
20
22
  })
@@ -24,7 +26,7 @@ describe('calendar-with-events.ts', () => {
24
26
 
25
27
  expect(wrapper.vm.noEvents).toBeTruthy()
26
28
 
27
- wrapper.setProps({
29
+ await wrapper.setProps({
28
30
  events: [
29
31
  {
30
32
  start: '2019-02-12',
@@ -37,7 +39,7 @@ describe('calendar-with-events.ts', () => {
37
39
 
38
40
  it('should parse events', async () => {
39
41
  const wrapper = mount(Mock, {
40
- propsData: {
42
+ props: {
41
43
  events: [
42
44
  {
43
45
  start: '2019-02-12',
@@ -53,7 +55,7 @@ describe('calendar-with-events.ts', () => {
53
55
 
54
56
  it('should work with event colors', async () => {
55
57
  const wrapper = mount(Mock, {
56
- propsData: {
58
+ props: {
57
59
  eventColor: () => 'green',
58
60
  },
59
61
  })
@@ -62,7 +64,7 @@ describe('calendar-with-events.ts', () => {
62
64
  expect(typeof wrapper.vm.eventColorFunction).toBe('function')
63
65
  expect(wrapper.vm.eventColorFunction({})).toBe('green')
64
66
 
65
- wrapper.setProps({
67
+ await wrapper.setProps({
66
68
  eventColor: 'red',
67
69
  })
68
70
 
@@ -73,7 +75,7 @@ describe('calendar-with-events.ts', () => {
73
75
 
74
76
  it('should work with event text colors', async () => {
75
77
  const wrapper = mount(Mock, {
76
- propsData: {
78
+ props: {
77
79
  eventTextColor: () => 'green',
78
80
  },
79
81
  })
@@ -82,7 +84,7 @@ describe('calendar-with-events.ts', () => {
82
84
  expect(typeof wrapper.vm.eventTextColorFunction).toBe('function')
83
85
  expect(wrapper.vm.eventTextColorFunction({})).toBe('green')
84
86
 
85
- wrapper.setProps({
87
+ await wrapper.setProps({
86
88
  eventTextColor: 'red',
87
89
  })
88
90
 
@@ -93,7 +95,7 @@ describe('calendar-with-events.ts', () => {
93
95
 
94
96
  it('should work with event names', async () => {
95
97
  const wrapper = mount(Mock, {
96
- propsData: {
98
+ props: {
97
99
  eventName: () => 'Meetup',
98
100
  },
99
101
  })
@@ -103,7 +105,7 @@ describe('calendar-with-events.ts', () => {
103
105
  expect(wrapper.vm.eventNameFunction({ start: { date: '2019-02-12' }, input: { Meetup: 'Meetup' } })).toBe('Meetup')
104
106
  expect(wrapper.vm.eventNameFunction({ start: { date: '2019-02-12', hour: 8, minute: 30, hasTime: true }, input: { Meetup: 'Meetup' } })).toBe('Meetup')
105
107
 
106
- wrapper.setProps({
108
+ await wrapper.setProps({
107
109
  eventName: 'x',
108
110
  })
109
111
 
@@ -132,31 +134,22 @@ describe('calendar-with-events.ts', () => {
132
134
 
133
135
  it('should get events map', async () => {
134
136
  const wrapper = mountFunction({
135
- render: h => h('div', [
137
+ render: () => h('div', [
136
138
  h('div', {
137
139
  ref: 'events',
138
- refInFor: true,
139
- attrs: {
140
- 'data-event': 'test',
141
- 'data-date': '2019-02-12',
142
- },
140
+ 'data-event': 'test',
141
+ 'data-date': '2019-02-12',
143
142
  }),
144
143
  h('div', {
145
144
  ref: 'events',
146
- refInFor: true,
147
- attrs: {
148
- 'data-event': 'test1',
149
- 'data-date': '2019-02-13',
150
- },
145
+ 'data-event': 'test1',
146
+ 'data-date': '2019-02-13',
151
147
  }),
152
148
  h('div', {
153
149
  ref: 'events',
154
- refInFor: true,
155
- attrs: {
156
- 'data-event': 'test2',
157
- 'data-date': '2019-02-13',
158
- 'data-more': '123',
159
- },
150
+ 'data-event': 'test2',
151
+ 'data-date': '2019-02-13',
152
+ 'data-more': '123',
160
153
  }),
161
154
  ]),
162
155
  })
@@ -166,7 +159,7 @@ describe('calendar-with-events.ts', () => {
166
159
 
167
160
  it('should get events for day', async () => {
168
161
  const wrapper = mount(Mock, {
169
- propsData: {
162
+ props: {
170
163
  events: [
171
164
  {
172
165
  start: '2019-02-12 8:30',
@@ -189,7 +182,7 @@ describe('calendar-with-events.ts', () => {
189
182
 
190
183
  it('should get events for all day', async () => {
191
184
  const wrapper = mount(Mock, {
192
- propsData: {
185
+ props: {
193
186
  events: [
194
187
  {
195
188
  start: '2019-02-12 8:30',
@@ -212,7 +205,7 @@ describe('calendar-with-events.ts', () => {
212
205
 
213
206
  it('should get timed events for day', async () => {
214
207
  const wrapper = mount(Mock, {
215
- propsData: {
208
+ props: {
216
209
  events: [
217
210
  {
218
211
  start: '2019-02-12 8:30',
@@ -3,13 +3,14 @@ import { CalendarTimestamp } from 'vuetify/types'
3
3
  import { parseTimestamp } from '../../util/timestamp'
4
4
  import {
5
5
  mount,
6
- Wrapper,
7
- MountOptions,
6
+ VueWrapper,
7
+ MountingOptions,
8
8
  } from '@vue/test-utils'
9
- import { ExtractVue } from '../../../../util/mixins'
9
+ import { defineComponent, h } from 'vue'
10
10
 
11
- const Mock = CalendarWithIntervals.extend({
12
- render: h => h('div'),
11
+ const Mock = defineComponent({
12
+ ...CalendarWithIntervals,
13
+ render: () => h('div'),
13
14
  })
14
15
 
15
16
  const createMouseEvent = (x, y) => ({
@@ -26,16 +27,18 @@ const createTouchEvent = (x, y) => ({
26
27
  })
27
28
 
28
29
  describe('calendar-with-intervals.ts', () => {
29
- type Instance = ExtractVue<typeof Mock>
30
- let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance>
30
+ type Instance = InstanceType<typeof Mock>
31
+ let mountFunction: (options?: MountingOptions<Instance>) => VueWrapper<Instance>
31
32
  beforeEach(() => {
32
- mountFunction = (options?: MountOptions<Instance>) => {
33
+ mountFunction = (options?: MountingOptions<Instance>) => {
33
34
  return mount(Mock, {
34
35
  ...options,
35
- mocks: {
36
- $vuetify: {
37
- lang: {
38
- current: 'en-US',
36
+ global: {
37
+ mocks: {
38
+ $vuetify: {
39
+ lang: {
40
+ current: 'en-US',
41
+ },
39
42
  },
40
43
  },
41
44
  },
@@ -45,7 +48,7 @@ describe('calendar-with-intervals.ts', () => {
45
48
 
46
49
  it('should parse all data', async () => {
47
50
  const wrapper = mountFunction({
48
- propsData: {
51
+ props: {
49
52
  firstInterval: '1',
50
53
  intervalMinutes: '30',
51
54
  intervalCount: '10',
@@ -65,7 +68,7 @@ describe('calendar-with-intervals.ts', () => {
65
68
 
66
69
  it('should generate firstMinute', async () => {
67
70
  const wrapper = mountFunction({
68
- propsData: {
71
+ props: {
69
72
  firstInterval: '2',
70
73
  intervalMinutes: '30',
71
74
  },
@@ -77,7 +80,7 @@ describe('calendar-with-intervals.ts', () => {
77
80
 
78
81
  it('should generate bodyHeight', async () => {
79
82
  const wrapper = mountFunction({
80
- propsData: {
83
+ props: {
81
84
  intervalCount: '10',
82
85
  intervalHeight: '20',
83
86
  },
@@ -89,7 +92,7 @@ describe('calendar-with-intervals.ts', () => {
89
92
 
90
93
  it('should generate days', async () => {
91
94
  const wrapper = mountFunction({
92
- propsData: {
95
+ props: {
93
96
  start: '2019-01-29',
94
97
  end: '2019-02-04',
95
98
  },
@@ -101,7 +104,7 @@ describe('calendar-with-intervals.ts', () => {
101
104
  expect(wrapper.vm.days[6].date).toBe('2019-02-04')
102
105
  expect(wrapper.vm.days).toMatchSnapshot()
103
106
 
104
- wrapper.setProps({
107
+ await wrapper.setProps({
105
108
  start: '2019-01-29',
106
109
  end: '2019-02-02',
107
110
  })
@@ -115,7 +118,7 @@ describe('calendar-with-intervals.ts', () => {
115
118
 
116
119
  it('should generate intervals', async () => {
117
120
  const wrapper = mountFunction({
118
- propsData: {
121
+ props: {
119
122
  start: '2019-01-29',
120
123
  end: '2019-02-04',
121
124
  },
@@ -128,7 +131,7 @@ describe('calendar-with-intervals.ts', () => {
128
131
  expect(wrapper.vm.intervals[6][0].date).toBe('2019-02-04')
129
132
  expect(wrapper.vm.intervals).toMatchSnapshot()
130
133
 
131
- wrapper.setProps({
134
+ await wrapper.setProps({
132
135
  start: '2019-01-29',
133
136
  end: '2019-02-02',
134
137
  })
@@ -163,7 +166,7 @@ describe('calendar-with-intervals.ts', () => {
163
166
  it('should return intervalFormat if has one', async () => {
164
167
  const intervalFormat = x => x
165
168
  const wrapper = mountFunction({
166
- propsData: {
169
+ props: {
167
170
  intervalFormat,
168
171
  },
169
172
  })
@@ -197,7 +200,7 @@ describe('calendar-with-intervals.ts', () => {
197
200
  expect(wrapper.vm.timeToY('09:30')).toBe(456)
198
201
  expect(Math.round(wrapper.vm.timeToY('23:50') || 0)).toBe(1144)
199
202
 
200
- wrapper.setProps({
203
+ await wrapper.setProps({
201
204
  firstInterval: 5,
202
205
  intervalCount: 5,
203
206
  intervalMinutes: 10,
@@ -225,7 +228,7 @@ describe('calendar-with-intervals.ts', () => {
225
228
  expect(wrapper.vm.timeDelta('09:30')).toBe((9 * 60 + 30) / 1440)
226
229
  expect(Math.round(wrapper.vm.timeDelta('23:50') || 0)).toBe(1)
227
230
 
228
- wrapper.setProps({
231
+ await wrapper.setProps({
229
232
  firstInterval: 5,
230
233
  intervalCount: 5,
231
234
  intervalMinutes: 10,
@@ -243,7 +246,7 @@ describe('calendar-with-intervals.ts', () => {
243
246
 
244
247
  it('should convert minutes to pixels', async () => {
245
248
  const wrapper = mountFunction({
246
- propsData: {
249
+ props: {
247
250
  intervalMinutes: 5,
248
251
  bodyHeight: 200,
249
252
  },
@@ -257,7 +260,7 @@ describe('calendar-with-intervals.ts', () => {
257
260
  expect(wrapper.vm.minutesToPixels(10)).toBe(96)
258
261
  expect(wrapper.vm.minutesToPixels(50)).toBe(480)
259
262
 
260
- wrapper.setProps({
263
+ await wrapper.setProps({
261
264
  intervalMinutes: 10,
262
265
  bodyHeight: 400,
263
266
  })
@@ -269,7 +272,7 @@ describe('calendar-with-intervals.ts', () => {
269
272
 
270
273
  it('should scroll to time', async () => {
271
274
  const wrapper = mountFunction({
272
- render: h => h('div', [
275
+ render: () => h('div', [
273
276
  h('div', {
274
277
  ref: 'scrollArea',
275
278
  }),
@@ -283,7 +286,7 @@ describe('calendar-with-intervals.ts', () => {
283
286
  wrapper.vm.scrollToTime('20:00')
284
287
  expect((wrapper.vm.$refs.scrollArea as any).scrollTop).toBe(960)
285
288
 
286
- wrapper.setProps({
289
+ await wrapper.setProps({
287
290
  intervalMinutes: 5,
288
291
  bodyHeight: 200,
289
292
  })
@@ -295,7 +298,7 @@ describe('calendar-with-intervals.ts', () => {
295
298
  wrapper.vm.scrollToTime('20:30')
296
299
  expect((wrapper.vm.$refs.scrollArea as any).scrollTop).toBe(1152)
297
300
 
298
- wrapper.setProps({
301
+ await wrapper.setProps({
299
302
  intervalMinutes: 30,
300
303
  bodyHeight: 1700,
301
304
  })
@@ -340,7 +343,7 @@ describe('calendar-with-intervals.ts', () => {
340
343
 
341
344
  it('should show interval label', async () => {
342
345
  const wrapper = mountFunction({
343
- propsData: {
346
+ props: {
344
347
  start: '2019-01-29',
345
348
  end: '2019-02-04',
346
349
  firstInterval: 5,
@@ -1,28 +1,29 @@
1
1
  import Times from '../times'
2
2
  import {
3
3
  mount,
4
- Wrapper,
5
- MountOptions,
4
+ VueWrapper,
5
+ MountingOptions,
6
6
  } from '@vue/test-utils'
7
- import { ExtractVue } from '../../../../util/mixins'
8
7
  import { CalendarTimestamp } from 'vuetify/types'
8
+ import { defineComponent, h } from 'vue'
9
9
 
10
- const Mock = Times.extend({
11
- render: h => h('div'),
10
+ const Mock = defineComponent({
11
+ ...Times,
12
+ render: () => h('div'),
12
13
  })
13
14
 
14
15
  describe('times.ts', () => {
15
- type Instance = ExtractVue<typeof Mock>
16
- let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance>
16
+ type Instance = InstanceType<typeof Mock>
17
+ let mountFunction: (options?: MountingOptions<Instance>) => VueWrapper<Instance>
17
18
  beforeEach(() => {
18
- mountFunction = (options?: MountOptions<Instance>) => {
19
+ mountFunction = (options?: MountingOptions<Instance>) => {
19
20
  return mount(Mock, options)
20
21
  }
21
22
  })
22
23
 
23
24
  it('should parse timestamp', async () => {
24
25
  const wrapper = mountFunction({
25
- propsData: {
26
+ props: {
26
27
  now: '2019-02-08',
27
28
  },
28
29
  })
@@ -1,6 +1,6 @@
1
+ import { defineComponent } from 'vue'
1
2
 
2
3
  // Mixins
3
- import mixins from '../../../util/mixins'
4
4
  import Colorable from '../../../mixins/colorable'
5
5
  import Localable from '../../../mixins/localable'
6
6
  import Mouse from '../../../mixins/mouse'
@@ -23,22 +23,18 @@ import {
23
23
  } from '../util/timestamp'
24
24
  import { CalendarTimestamp, CalendarFormatter } from 'vuetify/types'
25
25
 
26
- export default mixins(
27
- Colorable,
28
- Localable,
29
- Mouse,
30
- Themeable,
31
- Times
32
- /* @vue/component */
33
- ).extend({
26
+ export default defineComponent({
34
27
  name: 'calendar-base',
35
28
 
36
- directives: {
37
- Resize,
38
- },
29
+
30
+ extends: Times,
31
+
32
+ mixins: [Colorable, Localable, Mouse, Themeable],
39
33
 
40
34
  props: props.base,
41
35
 
36
+ emits: ['click', 'mousedown', 'mouseup', 'touchstart', 'touchend'],
37
+
42
38
  computed: {
43
39
  parsedWeekdays (): number[] {
44
40
  return Array.isArray(this.weekdays)