@kokoccc/vuetify 1.0.1

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 (909) hide show
  1. package/package.json +116 -0
  2. package/src/components/VAlert/VAlert.sass +190 -0
  3. package/src/components/VAlert/VAlert.ts +256 -0
  4. package/src/components/VAlert/__tests__/VAlert.spec.ts +222 -0
  5. package/src/components/VAlert/__tests__/__snapshots__/VAlert.spec.ts.snap +69 -0
  6. package/src/components/VAlert/_variables.scss +16 -0
  7. package/src/components/VAlert/index.ts +4 -0
  8. package/src/components/VApp/VApp.sass +44 -0
  9. package/src/components/VApp/VApp.ts +60 -0
  10. package/src/components/VApp/__tests__/VApp.spec.ts +78 -0
  11. package/src/components/VApp/__tests__/__snapshots__/VApp.spec.ts.snap +21 -0
  12. package/src/components/VApp/index.ts +4 -0
  13. package/src/components/VAppBar/VAppBar.sass +55 -0
  14. package/src/components/VAppBar/VAppBar.ts +293 -0
  15. package/src/components/VAppBar/VAppBarNavIcon.ts +26 -0
  16. package/src/components/VAppBar/VAppBarTitle.ts +82 -0
  17. package/src/components/VAppBar/__tests__/VAppBar.spec.ts +521 -0
  18. package/src/components/VAppBar/__tests__/VAppBarNavIcon.spec.ts +26 -0
  19. package/src/components/VAppBar/__tests__/__snapshots__/VAppBar.spec.ts.snap +35 -0
  20. package/src/components/VAppBar/__tests__/__snapshots__/VAppBarNavIcon.spec.ts.snap +14 -0
  21. package/src/components/VAppBar/_variables.scss +7 -0
  22. package/src/components/VAppBar/index.ts +13 -0
  23. package/src/components/VAutocomplete/VAutocomplete.sass +41 -0
  24. package/src/components/VAutocomplete/VAutocomplete.ts +480 -0
  25. package/src/components/VAutocomplete/__tests__/VAutocomplete.spec.ts +585 -0
  26. package/src/components/VAutocomplete/__tests__/VAutocomplete2.spec.ts +498 -0
  27. package/src/components/VAutocomplete/__tests__/VAutocomplete3.spec.ts +318 -0
  28. package/src/components/VAutocomplete/_variables.scss +5 -0
  29. package/src/components/VAutocomplete/index.ts +4 -0
  30. package/src/components/VAvatar/VAvatar.sass +22 -0
  31. package/src/components/VAvatar/VAvatar.ts +60 -0
  32. package/src/components/VAvatar/__tests__/VAvatar.spec.ts +97 -0
  33. package/src/components/VAvatar/__tests__/__snapshots__/VAvatar.spec.ts.snap +8 -0
  34. package/src/components/VAvatar/_variables.scss +3 -0
  35. package/src/components/VAvatar/index.ts +4 -0
  36. package/src/components/VBadge/VBadge.sass +108 -0
  37. package/src/components/VBadge/VBadge.ts +206 -0
  38. package/src/components/VBadge/__tests__/VBadge.spec.ts +150 -0
  39. package/src/components/VBadge/__tests__/__snapshots__/VBadge.spec.ts.snap +42 -0
  40. package/src/components/VBadge/_variables.scss +21 -0
  41. package/src/components/VBadge/index.ts +4 -0
  42. package/src/components/VBanner/VBanner.sass +148 -0
  43. package/src/components/VBanner/VBanner.ts +175 -0
  44. package/src/components/VBanner/__tests__/VBanner.spec.ts +227 -0
  45. package/src/components/VBanner/__tests__/__snapshots__/VBanner.spec.ts.snap +126 -0
  46. package/src/components/VBanner/_variables.scss +19 -0
  47. package/src/components/VBanner/index.ts +4 -0
  48. package/src/components/VBottomNavigation/VBottomNavigation.sass +89 -0
  49. package/src/components/VBottomNavigation/VBottomNavigation.ts +168 -0
  50. package/src/components/VBottomNavigation/__tests__/VBottomNavigation.spec.ts +144 -0
  51. package/src/components/VBottomNavigation/__tests__/__snapshots__/VBottomNavigation.spec.ts.snap +53 -0
  52. package/src/components/VBottomNavigation/_variables.scss +7 -0
  53. package/src/components/VBottomNavigation/index.ts +4 -0
  54. package/src/components/VBottomSheet/VBottomSheet.sass +23 -0
  55. package/src/components/VBottomSheet/VBottomSheet.ts +30 -0
  56. package/src/components/VBottomSheet/_variables.scss +3 -0
  57. package/src/components/VBottomSheet/index.ts +4 -0
  58. package/src/components/VBreadcrumbs/VBreadcrumbs.sass +45 -0
  59. package/src/components/VBreadcrumbs/VBreadcrumbs.ts +82 -0
  60. package/src/components/VBreadcrumbs/VBreadcrumbsDivider.ts +3 -0
  61. package/src/components/VBreadcrumbs/VBreadcrumbsItem.ts +48 -0
  62. package/src/components/VBreadcrumbs/__tests__/VBreadcrumbs.spec.ts +213 -0
  63. package/src/components/VBreadcrumbs/__tests__/VBreadcrumbsItem.spec.ts +44 -0
  64. package/src/components/VBreadcrumbs/__tests__/__snapshots__/VBreadcrumbs.spec.ts.snap +108 -0
  65. package/src/components/VBreadcrumbs/__tests__/__snapshots__/VBreadcrumbsItem.spec.ts.snap +17 -0
  66. package/src/components/VBreadcrumbs/_variables.scss +8 -0
  67. package/src/components/VBreadcrumbs/index.ts +13 -0
  68. package/src/components/VBtn/VBtn.sass +249 -0
  69. package/src/components/VBtn/VBtn.ts +223 -0
  70. package/src/components/VBtn/__tests__/VBtn.spec.ts +306 -0
  71. package/src/components/VBtn/__tests__/__snapshots__/VBtn.spec.ts.snap +61 -0
  72. package/src/components/VBtn/_variables.scss +73 -0
  73. package/src/components/VBtn/index.ts +4 -0
  74. package/src/components/VBtnToggle/VBtnToggle.sass +99 -0
  75. package/src/components/VBtnToggle/VBtnToggle.ts +55 -0
  76. package/src/components/VBtnToggle/__tests__/VBtnToggle.spec.ts +40 -0
  77. package/src/components/VBtnToggle/_variables.scss +11 -0
  78. package/src/components/VBtnToggle/index.ts +4 -0
  79. package/src/components/VCalendar/VCalendar.ts +383 -0
  80. package/src/components/VCalendar/VCalendarCategory.sass +100 -0
  81. package/src/components/VCalendar/VCalendarCategory.ts +143 -0
  82. package/src/components/VCalendar/VCalendarDaily.sass +140 -0
  83. package/src/components/VCalendar/VCalendarDaily.ts +250 -0
  84. package/src/components/VCalendar/VCalendarMonthly.ts +30 -0
  85. package/src/components/VCalendar/VCalendarWeekly.sass +118 -0
  86. package/src/components/VCalendar/VCalendarWeekly.ts +225 -0
  87. package/src/components/VCalendar/__tests__/VCalendar.spec.ts +129 -0
  88. package/src/components/VCalendar/__tests__/VCalendarCategory.spec.ts +112 -0
  89. package/src/components/VCalendar/__tests__/VCalendarDaily.spec.ts +187 -0
  90. package/src/components/VCalendar/__tests__/__snapshots__/VCalendar.spec.ts.snap +3378 -0
  91. package/src/components/VCalendar/__tests__/__snapshots__/VCalendarDaily.spec.ts.snap +9127 -0
  92. package/src/components/VCalendar/_variables.scss +34 -0
  93. package/src/components/VCalendar/index.ts +17 -0
  94. package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-base.spec.ts.snap +225 -0
  95. package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-with-events.spec.ts.snap +3 -0
  96. package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-with-intervals.spec.ts.snap +4566 -0
  97. package/src/components/VCalendar/mixins/__tests__/__snapshots__/times.spec.ts.snap +19 -0
  98. package/src/components/VCalendar/mixins/__tests__/calendar-base.spec.ts +179 -0
  99. package/src/components/VCalendar/mixins/__tests__/calendar-with-events.spec.ts +228 -0
  100. package/src/components/VCalendar/mixins/__tests__/calendar-with-intervals.spec.ts +360 -0
  101. package/src/components/VCalendar/mixins/__tests__/times.spec.ts +80 -0
  102. package/src/components/VCalendar/mixins/calendar-base.ts +118 -0
  103. package/src/components/VCalendar/mixins/calendar-with-events.sass +67 -0
  104. package/src/components/VCalendar/mixins/calendar-with-events.ts +511 -0
  105. package/src/components/VCalendar/mixins/calendar-with-intervals.ts +164 -0
  106. package/src/components/VCalendar/mixins/times.ts +74 -0
  107. package/src/components/VCalendar/modes/__tests__/__snapshots__/common.spec.ts.snap +185 -0
  108. package/src/components/VCalendar/modes/__tests__/common.spec.ts +77 -0
  109. package/src/components/VCalendar/modes/column.ts +21 -0
  110. package/src/components/VCalendar/modes/common.ts +140 -0
  111. package/src/components/VCalendar/modes/index.ts +8 -0
  112. package/src/components/VCalendar/modes/stack.ts +255 -0
  113. package/src/components/VCalendar/util/__tests__/__snapshots__/events.spec.ts.snap +231 -0
  114. package/src/components/VCalendar/util/__tests__/__snapshots__/timestamp.spec.ts.snap +396 -0
  115. package/src/components/VCalendar/util/__tests__/events.spec.ts +85 -0
  116. package/src/components/VCalendar/util/__tests__/props.spec.ts +15 -0
  117. package/src/components/VCalendar/util/__tests__/timestamp.spec.ts +512 -0
  118. package/src/components/VCalendar/util/events.ts +52 -0
  119. package/src/components/VCalendar/util/parser.ts +30 -0
  120. package/src/components/VCalendar/util/props.ts +261 -0
  121. package/src/components/VCalendar/util/timestamp.ts +480 -0
  122. package/src/components/VCard/VCard.sass +155 -0
  123. package/src/components/VCard/VCard.ts +92 -0
  124. package/src/components/VCard/__tests__/VCard.spec.ts +122 -0
  125. package/src/components/VCard/__tests__/__snapshots__/VCard.spec.ts.snap +61 -0
  126. package/src/components/VCard/_variables.scss +29 -0
  127. package/src/components/VCard/index.ts +25 -0
  128. package/src/components/VCarousel/VCarousel.sass +61 -0
  129. package/src/components/VCarousel/VCarousel.ts +232 -0
  130. package/src/components/VCarousel/VCarouselItem.ts +73 -0
  131. package/src/components/VCarousel/__tests__/VCarousel.spec.ts +227 -0
  132. package/src/components/VCarousel/__tests__/VCarouselItem.spec.ts +33 -0
  133. package/src/components/VCarousel/__tests__/__snapshots__/VCarousel.spec.ts.snap +31 -0
  134. package/src/components/VCarousel/_variables.scss +8 -0
  135. package/src/components/VCarousel/index.ts +11 -0
  136. package/src/components/VCheckbox/VCheckbox.sass +9 -0
  137. package/src/components/VCheckbox/VCheckbox.ts +124 -0
  138. package/src/components/VCheckbox/VSimpleCheckbox.sass +16 -0
  139. package/src/components/VCheckbox/VSimpleCheckbox.ts +148 -0
  140. package/src/components/VCheckbox/__tests__/VCheckbox.spec.ts +379 -0
  141. package/src/components/VCheckbox/__tests__/VSimpleCheckbox.spec.ts +65 -0
  142. package/src/components/VCheckbox/__tests__/__snapshots__/VCheckbox.spec.ts.snap +170 -0
  143. package/src/components/VCheckbox/_variables.scss +4 -0
  144. package/src/components/VCheckbox/index.ts +10 -0
  145. package/src/components/VChip/VChip.sass +204 -0
  146. package/src/components/VChip/VChip.ts +204 -0
  147. package/src/components/VChip/__tests__/VChip.spec.ts +169 -0
  148. package/src/components/VChip/__tests__/__snapshots__/VChip.spec.ts.snap +22 -0
  149. package/src/components/VChip/_variables.scss +52 -0
  150. package/src/components/VChip/index.ts +4 -0
  151. package/src/components/VChipGroup/VChipGroup.sass +27 -0
  152. package/src/components/VChipGroup/VChipGroup.ts +55 -0
  153. package/src/components/VChipGroup/__tests__/VChipGroup.spec.ts +65 -0
  154. package/src/components/VChipGroup/__tests__/__snapshots__/VChipGroup.spec.ts.snap +53 -0
  155. package/src/components/VChipGroup/_variables.scss +6 -0
  156. package/src/components/VChipGroup/index.ts +4 -0
  157. package/src/components/VColorPicker/VColorPicker.sass +32 -0
  158. package/src/components/VColorPicker/VColorPicker.ts +178 -0
  159. package/src/components/VColorPicker/VColorPickerCanvas.sass +23 -0
  160. package/src/components/VColorPicker/VColorPickerCanvas.ts +173 -0
  161. package/src/components/VColorPicker/VColorPickerEdit.sass +31 -0
  162. package/src/components/VColorPicker/VColorPickerEdit.ts +185 -0
  163. package/src/components/VColorPicker/VColorPickerPreview.sass +66 -0
  164. package/src/components/VColorPicker/VColorPickerPreview.ts +113 -0
  165. package/src/components/VColorPicker/VColorPickerSwatches.sass +34 -0
  166. package/src/components/VColorPicker/VColorPickerSwatches.ts +113 -0
  167. package/src/components/VColorPicker/__tests__/VColorPicker.spec.ts +198 -0
  168. package/src/components/VColorPicker/__tests__/VColorPickerCanvas.spec.ts +111 -0
  169. package/src/components/VColorPicker/__tests__/VColorPickerEdit.spec.ts +147 -0
  170. package/src/components/VColorPicker/__tests__/VColorPickerPreview.spec.ts +143 -0
  171. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +2247 -0
  172. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerCanvas.spec.ts.snap +82 -0
  173. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +314 -0
  174. package/src/components/VColorPicker/_variables.scss +25 -0
  175. package/src/components/VColorPicker/index.ts +6 -0
  176. package/src/components/VColorPicker/util/__tests__/index.spec.ts +81 -0
  177. package/src/components/VColorPicker/util/index.ts +168 -0
  178. package/src/components/VCombobox/VCombobox.ts +302 -0
  179. package/src/components/VCombobox/__tests__/VCombobox-multiple.spec.ts +722 -0
  180. package/src/components/VCombobox/__tests__/VCombobox.spec.ts +385 -0
  181. package/src/components/VCombobox/index.ts +4 -0
  182. package/src/components/VContent/VContent.ts +36 -0
  183. package/src/components/VContent/index.ts +5 -0
  184. package/src/components/VCounter/VCounter.sass +11 -0
  185. package/src/components/VCounter/VCounter.ts +40 -0
  186. package/src/components/VCounter/__tests__/VCounter.spec.ts +41 -0
  187. package/src/components/VCounter/__tests__/__snapshots__/VCounter.spec.ts.snap +7 -0
  188. package/src/components/VCounter/_variables.scss +5 -0
  189. package/src/components/VCounter/index.ts +4 -0
  190. package/src/components/VData/VData.ts +394 -0
  191. package/src/components/VData/__tests__/VData.spec.ts +578 -0
  192. package/src/components/VData/__tests__/__snapshots__/VData.spec.ts.snap +159 -0
  193. package/src/components/VData/index.ts +5 -0
  194. package/src/components/VDataIterator/VDataFooter.sass +71 -0
  195. package/src/components/VDataIterator/VDataFooter.ts +224 -0
  196. package/src/components/VDataIterator/VDataIterator.ts +370 -0
  197. package/src/components/VDataIterator/__tests__/VDataFooter.spec.ts +200 -0
  198. package/src/components/VDataIterator/__tests__/VDataIterator.spec.ts +318 -0
  199. package/src/components/VDataIterator/__tests__/__snapshots__/VDataFooter.spec.ts.snap +460 -0
  200. package/src/components/VDataIterator/__tests__/__snapshots__/VDataIterator.spec.ts.snap +438 -0
  201. package/src/components/VDataIterator/_variables.scss +13 -0
  202. package/src/components/VDataIterator/index.ts +10 -0
  203. package/src/components/VDataTable/MobileRow.ts +66 -0
  204. package/src/components/VDataTable/Row.ts +66 -0
  205. package/src/components/VDataTable/RowGroup.ts +67 -0
  206. package/src/components/VDataTable/VDataTable.sass +98 -0
  207. package/src/components/VDataTable/VDataTable.ts +661 -0
  208. package/src/components/VDataTable/VDataTableHeader.sass +80 -0
  209. package/src/components/VDataTable/VDataTableHeader.ts +42 -0
  210. package/src/components/VDataTable/VDataTableHeaderDesktop.ts +125 -0
  211. package/src/components/VDataTable/VDataTableHeaderMobile.ts +97 -0
  212. package/src/components/VDataTable/VEditDialog.sass +22 -0
  213. package/src/components/VDataTable/VEditDialog.ts +133 -0
  214. package/src/components/VDataTable/VSimpleTable.sass +179 -0
  215. package/src/components/VDataTable/VSimpleTable.ts +52 -0
  216. package/src/components/VDataTable/VVirtualTable.sass +13 -0
  217. package/src/components/VDataTable/VVirtualTable.ts +163 -0
  218. package/src/components/VDataTable/__tests__/MobileRow.spec.ts +127 -0
  219. package/src/components/VDataTable/__tests__/Row.spec.ts +129 -0
  220. package/src/components/VDataTable/__tests__/RowGroup.spec.ts +38 -0
  221. package/src/components/VDataTable/__tests__/VDataTable.spec.ts +1058 -0
  222. package/src/components/VDataTable/__tests__/VDataTableHeader.spec.ts +167 -0
  223. package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +231 -0
  224. package/src/components/VDataTable/__tests__/VSimpleTable.spec.ts +146 -0
  225. package/src/components/VDataTable/__tests__/VVirtualTable.spec.ts +51 -0
  226. package/src/components/VDataTable/__tests__/__snapshots__/MobileRow.spec.ts.snap +139 -0
  227. package/src/components/VDataTable/__tests__/__snapshots__/Row.spec.ts.snap +77 -0
  228. package/src/components/VDataTable/__tests__/__snapshots__/RowGroup.spec.ts.snap +13 -0
  229. package/src/components/VDataTable/__tests__/__snapshots__/VDataTable.spec.ts.snap +13237 -0
  230. package/src/components/VDataTable/__tests__/__snapshots__/VDataTableHeader.spec.ts.snap +841 -0
  231. package/src/components/VDataTable/__tests__/__snapshots__/VEditDialog.spec.ts.snap +48 -0
  232. package/src/components/VDataTable/__tests__/__snapshots__/VSimpleTable.spec.ts.snap +95 -0
  233. package/src/components/VDataTable/__tests__/__snapshots__/VVirtualTable.spec.ts.snap +77 -0
  234. package/src/components/VDataTable/_variables.scss +24 -0
  235. package/src/components/VDataTable/index.ts +22 -0
  236. package/src/components/VDataTable/mixins/__tests__/__snapshots__/header.spec.ts.snap +78 -0
  237. package/src/components/VDataTable/mixins/__tests__/header.spec.ts +109 -0
  238. package/src/components/VDataTable/mixins/header.ts +74 -0
  239. package/src/components/VDatePicker/VDatePicker.ts +539 -0
  240. package/src/components/VDatePicker/VDatePickerDateTable.ts +154 -0
  241. package/src/components/VDatePicker/VDatePickerHeader.sass +46 -0
  242. package/src/components/VDatePicker/VDatePickerHeader.ts +164 -0
  243. package/src/components/VDatePicker/VDatePickerMonthTable.ts +58 -0
  244. package/src/components/VDatePicker/VDatePickerTable.sass +84 -0
  245. package/src/components/VDatePicker/VDatePickerTitle.sass +37 -0
  246. package/src/components/VDatePicker/VDatePickerTitle.ts +121 -0
  247. package/src/components/VDatePicker/VDatePickerYears.sass +30 -0
  248. package/src/components/VDatePicker/VDatePickerYears.ts +116 -0
  249. package/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +782 -0
  250. package/src/components/VDatePicker/__tests__/VDatePicker.month.spec.ts +377 -0
  251. package/src/components/VDatePicker/__tests__/VDatePickerDateTable.spec.ts +304 -0
  252. package/src/components/VDatePicker/__tests__/VDatePickerHeader.spec.ts +228 -0
  253. package/src/components/VDatePicker/__tests__/VDatePickerMonthTable.spec.ts +242 -0
  254. package/src/components/VDatePicker/__tests__/VDatePickerTitle.spec.ts +148 -0
  255. package/src/components/VDatePicker/__tests__/VDatePickerYears.spec.ts +89 -0
  256. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.date.spec.ts.snap +4664 -0
  257. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.month.spec.ts.snap +1151 -0
  258. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerDateTable.spec.ts.snap +3387 -0
  259. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerHeader.spec.ts.snap +165 -0
  260. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerMonthTable.spec.ts.snap +783 -0
  261. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerTitle.spec.ts.snap +73 -0
  262. package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerYears.spec.ts.snap +609 -0
  263. package/src/components/VDatePicker/_variables.scss +42 -0
  264. package/src/components/VDatePicker/index.ts +26 -0
  265. package/src/components/VDatePicker/mixins/date-picker-table.ts +273 -0
  266. package/src/components/VDatePicker/util/__tests__/createNativeLocaleFormatter.spec.ts +34 -0
  267. package/src/components/VDatePicker/util/__tests__/monthChange.spec.ts +10 -0
  268. package/src/components/VDatePicker/util/__tests__/pad.spec.ts +18 -0
  269. package/src/components/VDatePicker/util/__tests__/sanitizeDateString.spec.ts +10 -0
  270. package/src/components/VDatePicker/util/createNativeLocaleFormatter.ts +43 -0
  271. package/src/components/VDatePicker/util/eventHelpers.ts +41 -0
  272. package/src/components/VDatePicker/util/index.ts +17 -0
  273. package/src/components/VDatePicker/util/isDateAllowed.ts +7 -0
  274. package/src/components/VDatePicker/util/monthChange.ts +17 -0
  275. package/src/components/VDatePicker/util/pad.ts +16 -0
  276. package/src/components/VDatePicker/util/sanitizeDateString.ts +8 -0
  277. package/src/components/VDialog/VDialog.sass +106 -0
  278. package/src/components/VDialog/VDialog.ts +335 -0
  279. package/src/components/VDialog/__tests__/VDialog.spec.ts +359 -0
  280. package/src/components/VDialog/__tests__/__snapshots__/VDialog.spec.ts.snap +51 -0
  281. package/src/components/VDialog/_variables.scss +13 -0
  282. package/src/components/VDialog/index.ts +4 -0
  283. package/src/components/VDivider/VDivider.sass +40 -0
  284. package/src/components/VDivider/VDivider.ts +40 -0
  285. package/src/components/VDivider/__tests__/VDivider.spec.ts +98 -0
  286. package/src/components/VDivider/__tests__/__snapshots__/VDivider.spec.ts.snap +8 -0
  287. package/src/components/VDivider/_variables.scss +5 -0
  288. package/src/components/VDivider/index.ts +4 -0
  289. package/src/components/VExpansionPanel/VExpansionPanel.sass +211 -0
  290. package/src/components/VExpansionPanel/VExpansionPanel.ts +98 -0
  291. package/src/components/VExpansionPanel/VExpansionPanelContent.ts +73 -0
  292. package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +120 -0
  293. package/src/components/VExpansionPanel/VExpansionPanels.ts +79 -0
  294. package/src/components/VExpansionPanel/__tests__/VExpansionPanel.spec.ts +178 -0
  295. package/src/components/VExpansionPanel/__tests__/VExpansionPanelHeader.spec.ts +41 -0
  296. package/src/components/VExpansionPanel/__tests__/VExpansionPanels.spec.ts +48 -0
  297. package/src/components/VExpansionPanel/__tests__/__snapshots__/VExpansionPanel.spec.ts.snap +37 -0
  298. package/src/components/VExpansionPanel/_variables.scss +13 -0
  299. package/src/components/VExpansionPanel/index.ts +15 -0
  300. package/src/components/VFileInput/VFileInput.sass +60 -0
  301. package/src/components/VFileInput/VFileInput.ts +302 -0
  302. package/src/components/VFileInput/__tests__/VFileInput.spec.ts +333 -0
  303. package/src/components/VFileInput/__tests__/__snapshots__/VFileInput.spec.ts.snap +627 -0
  304. package/src/components/VFileInput/_variables.scss +6 -0
  305. package/src/components/VFileInput/index.ts +4 -0
  306. package/src/components/VFooter/VFooter.sass +39 -0
  307. package/src/components/VFooter/VFooter.ts +116 -0
  308. package/src/components/VFooter/__tests__/VFooter.spec.ts +76 -0
  309. package/src/components/VFooter/_variables.scss +10 -0
  310. package/src/components/VFooter/index.ts +4 -0
  311. package/src/components/VForm/VForm.ts +170 -0
  312. package/src/components/VForm/__tests__/VForm.spec.ts +276 -0
  313. package/src/components/VForm/index.ts +4 -0
  314. package/src/components/VGrid/VCol.ts +139 -0
  315. package/src/components/VGrid/VContainer.ts +68 -0
  316. package/src/components/VGrid/VFlex.ts +5 -0
  317. package/src/components/VGrid/VGrid.sass +41 -0
  318. package/src/components/VGrid/VLayout.ts +5 -0
  319. package/src/components/VGrid/VRow.ts +138 -0
  320. package/src/components/VGrid/VSpacer.ts +4 -0
  321. package/src/components/VGrid/__tests__/VCol.spec.ts +151 -0
  322. package/src/components/VGrid/__tests__/VContainer.spec.ts +83 -0
  323. package/src/components/VGrid/__tests__/VFlex.spec.ts +28 -0
  324. package/src/components/VGrid/__tests__/VGrid.spec.ts +74 -0
  325. package/src/components/VGrid/__tests__/VLayout.spec.ts +28 -0
  326. package/src/components/VGrid/__tests__/__snapshots__/VContainer.spec.ts.snap +6 -0
  327. package/src/components/VGrid/__tests__/__snapshots__/VFlex.spec.ts.snap +6 -0
  328. package/src/components/VGrid/__tests__/__snapshots__/VLayout.spec.ts.snap +6 -0
  329. package/src/components/VGrid/_grid.sass +117 -0
  330. package/src/components/VGrid/_mixins.sass +72 -0
  331. package/src/components/VGrid/grid.ts +55 -0
  332. package/src/components/VGrid/index.ts +26 -0
  333. package/src/components/VHover/VHover.ts +79 -0
  334. package/src/components/VHover/__tests__/VHover.spec.ts +119 -0
  335. package/src/components/VHover/index.ts +4 -0
  336. package/src/components/VIcon/VIcon.sass +73 -0
  337. package/src/components/VIcon/VIcon.ts +298 -0
  338. package/src/components/VIcon/__tests__/VIcon.spec.ts +328 -0
  339. package/src/components/VIcon/__tests__/__snapshots__/VIcon.spec.ts.snap +74 -0
  340. package/src/components/VIcon/_variables.scss +4 -0
  341. package/src/components/VIcon/index.ts +4 -0
  342. package/src/components/VImg/VImg.sass +30 -0
  343. package/src/components/VImg/VImg.ts +312 -0
  344. package/src/components/VImg/__tests__/VImg.spec.ts +196 -0
  345. package/src/components/VImg/__tests__/__snapshots__/VImg.spec.ts.snap +203 -0
  346. package/src/components/VImg/_variables.scss +3 -0
  347. package/src/components/VImg/index.ts +4 -0
  348. package/src/components/VInput/VInput.sass +132 -0
  349. package/src/components/VInput/VInput.ts +348 -0
  350. package/src/components/VInput/__tests__/VInput.spec.ts +215 -0
  351. package/src/components/VInput/__tests__/__snapshots__/VInput.spec.ts.snap +193 -0
  352. package/src/components/VInput/_variables.scss +14 -0
  353. package/src/components/VInput/index.ts +4 -0
  354. package/src/components/VItemGroup/VItem.sass +4 -0
  355. package/src/components/VItemGroup/VItem.ts +88 -0
  356. package/src/components/VItemGroup/VItemGroup.sass +7 -0
  357. package/src/components/VItemGroup/VItemGroup.ts +285 -0
  358. package/src/components/VItemGroup/__tests__/VItem.spec.ts +72 -0
  359. package/src/components/VItemGroup/__tests__/VItemGroup.spec.ts +408 -0
  360. package/src/components/VItemGroup/__tests__/__snapshots__/VItem.spec.ts.snap +13 -0
  361. package/src/components/VItemGroup/_variables.scss +3 -0
  362. package/src/components/VItemGroup/index.ts +14 -0
  363. package/src/components/VLabel/VLabel.sass +14 -0
  364. package/src/components/VLabel/VLabel.ts +65 -0
  365. package/src/components/VLabel/__tests__/VLabel.spec.ts +277 -0
  366. package/src/components/VLabel/_variables.scss +5 -0
  367. package/src/components/VLabel/index.ts +4 -0
  368. package/src/components/VLazy/VLazy.ts +88 -0
  369. package/src/components/VLazy/__tests__/VLazy.spec.ts +70 -0
  370. package/src/components/VLazy/__tests__/__snapshots__/VLazy.spec.ts.snap +15 -0
  371. package/src/components/VLazy/index.ts +4 -0
  372. package/src/components/VList/VList.sass +98 -0
  373. package/src/components/VList/VList.ts +102 -0
  374. package/src/components/VList/VListGroup.sass +111 -0
  375. package/src/components/VList/VListGroup.ts +228 -0
  376. package/src/components/VList/VListItem.sass +268 -0
  377. package/src/components/VList/VListItem.ts +232 -0
  378. package/src/components/VList/VListItemAction.ts +23 -0
  379. package/src/components/VList/VListItemAvatar.ts +35 -0
  380. package/src/components/VList/VListItemGroup.sass +5 -0
  381. package/src/components/VList/VListItemGroup.ts +45 -0
  382. package/src/components/VList/VListItemIcon.ts +17 -0
  383. package/src/components/VList/__tests__/VList.spec.ts +86 -0
  384. package/src/components/VList/__tests__/VListGroup.spec.ts +201 -0
  385. package/src/components/VList/__tests__/VListItem.spec.ts +328 -0
  386. package/src/components/VList/__tests__/VListItemAction.spec.ts +80 -0
  387. package/src/components/VList/__tests__/VListItemAvatar.spec.ts +33 -0
  388. package/src/components/VList/__tests__/VListItemGroup.spec.ts +30 -0
  389. package/src/components/VList/__tests__/__snapshots__/VList.spec.ts.snap +36 -0
  390. package/src/components/VList/__tests__/__snapshots__/VListGroup.spec.ts.snap +18 -0
  391. package/src/components/VList/__tests__/__snapshots__/VListItem.spec.ts.snap +16 -0
  392. package/src/components/VList/__tests__/__snapshots__/VListItemAction.spec.ts.snap +43 -0
  393. package/src/components/VList/__tests__/__snapshots__/VListItemAvatar.spec.ts.snap +8 -0
  394. package/src/components/VList/_mixins.sass +18 -0
  395. package/src/components/VList/_variables.scss +67 -0
  396. package/src/components/VList/index.ts +40 -0
  397. package/src/components/VMain/VMain.sass +22 -0
  398. package/src/components/VMain/VMain.ts +54 -0
  399. package/src/components/VMain/__tests__/VMain.spec.ts +95 -0
  400. package/src/components/VMain/__tests__/__snapshots__/VMain.spec.ts.snap +10 -0
  401. package/src/components/VMain/_variables.scss +6 -0
  402. package/src/components/VMain/index.ts +5 -0
  403. package/src/components/VMenu/VMenu.sass +70 -0
  404. package/src/components/VMenu/VMenu.ts +535 -0
  405. package/src/components/VMenu/__tests__/VMenu.spec.ts +445 -0
  406. package/src/components/VMenu/__tests__/__snapshots__/VMenu.spec.ts.snap +37 -0
  407. package/src/components/VMenu/_variables.scss +4 -0
  408. package/src/components/VMenu/index.ts +4 -0
  409. package/src/components/VMessages/VMessages.sass +25 -0
  410. package/src/components/VMessages/VMessages.ts +59 -0
  411. package/src/components/VMessages/__tests__/VMessages.spec.ts +117 -0
  412. package/src/components/VMessages/__tests__/__snapshots__/VMessages.spec.ts.snap +59 -0
  413. package/src/components/VMessages/_variables.scss +5 -0
  414. package/src/components/VMessages/index.ts +4 -0
  415. package/src/components/VNavigationDrawer/VNavigationDrawer.sass +127 -0
  416. package/src/components/VNavigationDrawer/VNavigationDrawer.ts +477 -0
  417. package/src/components/VNavigationDrawer/__tests__/VNavigationDrawer.spec.ts +552 -0
  418. package/src/components/VNavigationDrawer/_variables.scss +4 -0
  419. package/src/components/VNavigationDrawer/index.ts +4 -0
  420. package/src/components/VOtpInput/VOtpInput.sass +37 -0
  421. package/src/components/VOtpInput/VOtpInput.ts +357 -0
  422. package/src/components/VOtpInput/__tests__/VOtpInput.spec.ts +267 -0
  423. package/src/components/VOtpInput/_variables.scss +4 -0
  424. package/src/components/VOtpInput/index.ts +4 -0
  425. package/src/components/VOverflowBtn/VOverflowBtn.sass +151 -0
  426. package/src/components/VOverflowBtn/VOverflowBtn.ts +117 -0
  427. package/src/components/VOverflowBtn/__tests__/VOverflowBtn.spec.ts +129 -0
  428. package/src/components/VOverflowBtn/__tests__/__snapshots__/VOverflowBtn.spec.ts.snap +189 -0
  429. package/src/components/VOverflowBtn/_variables.scss +24 -0
  430. package/src/components/VOverflowBtn/index.ts +4 -0
  431. package/src/components/VOverlay/VOverlay.sass +42 -0
  432. package/src/components/VOverlay/VOverlay.ts +109 -0
  433. package/src/components/VOverlay/__tests__/VOverlay.spec.ts +38 -0
  434. package/src/components/VOverlay/_variables.scss +3 -0
  435. package/src/components/VOverlay/index.ts +5 -0
  436. package/src/components/VPagination/VPagination.sass +82 -0
  437. package/src/components/VPagination/VPagination.ts +272 -0
  438. package/src/components/VPagination/__tests__/VPagination.spec.ts +312 -0
  439. package/src/components/VPagination/__tests__/__snapshots__/VPagination.spec.ts.snap +584 -0
  440. package/src/components/VPagination/_variables.scss +16 -0
  441. package/src/components/VPagination/index.ts +4 -0
  442. package/src/components/VParallax/VParallax.sass +37 -0
  443. package/src/components/VParallax/VParallax.ts +108 -0
  444. package/src/components/VParallax/__tests__/VParallax.spec.ts +52 -0
  445. package/src/components/VParallax/__tests__/__snapshots__/VParallax.spec.ts.snap +46 -0
  446. package/src/components/VParallax/_variables.scss +4 -0
  447. package/src/components/VParallax/index.ts +4 -0
  448. package/src/components/VPicker/VPicker.sass +94 -0
  449. package/src/components/VPicker/VPicker.ts +95 -0
  450. package/src/components/VPicker/__tests__/VPicker.spec.ts +99 -0
  451. package/src/components/VPicker/__tests__/__snapshots__/VPicker.spec.ts.snap +81 -0
  452. package/src/components/VPicker/_variables.scss +8 -0
  453. package/src/components/VPicker/index.ts +4 -0
  454. package/src/components/VProgressCircular/VProgressCircular.sass +67 -0
  455. package/src/components/VProgressCircular/VProgressCircular.ts +164 -0
  456. package/src/components/VProgressCircular/__tests__/VProgressCircular.spec.ts +158 -0
  457. package/src/components/VProgressCircular/__tests__/__snapshots__/VProgressCircular.spec.ts.snap +298 -0
  458. package/src/components/VProgressCircular/_variables.scss +7 -0
  459. package/src/components/VProgressCircular/index.ts +4 -0
  460. package/src/components/VProgressLinear/VProgressLinear.sass +273 -0
  461. package/src/components/VProgressLinear/VProgressLinear.ts +291 -0
  462. package/src/components/VProgressLinear/__tests__/VProgressLinear.spec.ts +603 -0
  463. package/src/components/VProgressLinear/__tests__/__snapshots__/VProgressLinear.spec.ts.snap +328 -0
  464. package/src/components/VProgressLinear/_variables.scss +16 -0
  465. package/src/components/VProgressLinear/index.ts +4 -0
  466. package/src/components/VRadioGroup/VRadio.sass +21 -0
  467. package/src/components/VRadioGroup/VRadio.ts +193 -0
  468. package/src/components/VRadioGroup/VRadioGroup.sass +39 -0
  469. package/src/components/VRadioGroup/VRadioGroup.ts +111 -0
  470. package/src/components/VRadioGroup/__tests__/VRadio.spec.ts +156 -0
  471. package/src/components/VRadioGroup/__tests__/VRadioGroup.spec.ts +40 -0
  472. package/src/components/VRadioGroup/__tests__/__snapshots__/VRadio.spec.ts.snap +118 -0
  473. package/src/components/VRadioGroup/__tests__/__snapshots__/VRadioGroup.spec.ts.snap +57 -0
  474. package/src/components/VRadioGroup/_variables.scss +4 -0
  475. package/src/components/VRadioGroup/index.ts +11 -0
  476. package/src/components/VRangeSlider/VRangeSlider.sass +19 -0
  477. package/src/components/VRangeSlider/VRangeSlider.ts +272 -0
  478. package/src/components/VRangeSlider/__tests__/VRangeSlider.spec.ts +216 -0
  479. package/src/components/VRangeSlider/__tests__/__snapshots__/VRangeSlider.spec.ts.snap +123 -0
  480. package/src/components/VRangeSlider/index.ts +4 -0
  481. package/src/components/VRating/VRating.sass +28 -0
  482. package/src/components/VRating/VRating.ts +262 -0
  483. package/src/components/VRating/__tests__/VRating.spec.ts +284 -0
  484. package/src/components/VRating/__tests__/__snapshots__/VRating.spec.ts.snap +21 -0
  485. package/src/components/VRating/_variables.scss +5 -0
  486. package/src/components/VRating/index.ts +4 -0
  487. package/src/components/VResponsive/VResponsive.sass +23 -0
  488. package/src/components/VResponsive/VResponsive.ts +60 -0
  489. package/src/components/VResponsive/__tests__/VResponsive.spec.ts +52 -0
  490. package/src/components/VResponsive/__tests__/__snapshots__/VResponsive.spec.ts.snap +31 -0
  491. package/src/components/VResponsive/_variables.scss +3 -0
  492. package/src/components/VResponsive/index.ts +4 -0
  493. package/src/components/VSelect/VSelect.sass +164 -0
  494. package/src/components/VSelect/VSelect.ts +951 -0
  495. package/src/components/VSelect/VSelectList.ts +282 -0
  496. package/src/components/VSelect/__tests__/VSelect.spec.ts +567 -0
  497. package/src/components/VSelect/__tests__/VSelect2.spec.ts +560 -0
  498. package/src/components/VSelect/__tests__/VSelect3.spec.ts +510 -0
  499. package/src/components/VSelect/__tests__/VSelect4.spec.ts +438 -0
  500. package/src/components/VSelect/__tests__/VSelectList.spec.ts +144 -0
  501. package/src/components/VSelect/__tests__/__snapshots__/VSelect.spec.ts.snap +367 -0
  502. package/src/components/VSelect/__tests__/__snapshots__/VSelect2.spec.ts.snap +209 -0
  503. package/src/components/VSelect/__tests__/__snapshots__/VSelect3.spec.ts.snap +47 -0
  504. package/src/components/VSelect/__tests__/__snapshots__/VSelectList.spec.ts.snap +115 -0
  505. package/src/components/VSelect/_variables.scss +22 -0
  506. package/src/components/VSelect/index.ts +4 -0
  507. package/src/components/VSheet/VSheet.sass +15 -0
  508. package/src/components/VSheet/VSheet.ts +69 -0
  509. package/src/components/VSheet/__tests__/VSheet.spec.ts +48 -0
  510. package/src/components/VSheet/__tests__/__snapshots__/VSheet.spec.ts.snap +11 -0
  511. package/src/components/VSheet/_variables.scss +6 -0
  512. package/src/components/VSheet/index.ts +4 -0
  513. package/src/components/VSkeletonLoader/VSkeletonLoader.sass +377 -0
  514. package/src/components/VSkeletonLoader/VSkeletonLoader.ts +204 -0
  515. package/src/components/VSkeletonLoader/__tests__/VSkeletonLoader.spec.ts +145 -0
  516. package/src/components/VSkeletonLoader/__tests__/__snapshots__/VSkeletonLoader.spec.ts.snap +1039 -0
  517. package/src/components/VSkeletonLoader/_variables.scss +54 -0
  518. package/src/components/VSkeletonLoader/index.ts +4 -0
  519. package/src/components/VSlideGroup/VSlideGroup.sass +51 -0
  520. package/src/components/VSlideGroup/VSlideGroup.ts +542 -0
  521. package/src/components/VSlideGroup/VSlideItem.ts +16 -0
  522. package/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts +398 -0
  523. package/src/components/VSlideGroup/__tests__/__snapshots__/VSlideGroup.spec.ts.snap +26 -0
  524. package/src/components/VSlideGroup/_variables.scss +3 -0
  525. package/src/components/VSlideGroup/index.ts +14 -0
  526. package/src/components/VSlider/VSlider.sass +305 -0
  527. package/src/components/VSlider/VSlider.ts +611 -0
  528. package/src/components/VSlider/__tests__/VSlider.spec.ts +553 -0
  529. package/src/components/VSlider/__tests__/__snapshots__/VSlider.spec.ts.snap +802 -0
  530. package/src/components/VSlider/_variables.scss +26 -0
  531. package/src/components/VSlider/index.ts +4 -0
  532. package/src/components/VSnackbar/VSnackbar.sass +142 -0
  533. package/src/components/VSnackbar/VSnackbar.ts +214 -0
  534. package/src/components/VSnackbar/__tests__/VSnackbar.spec.ts +143 -0
  535. package/src/components/VSnackbar/_variables.scss +40 -0
  536. package/src/components/VSnackbar/index.ts +4 -0
  537. package/src/components/VSparkline/VSparkline.ts +384 -0
  538. package/src/components/VSparkline/__tests__/VSparkline.spec.ts +278 -0
  539. package/src/components/VSparkline/__tests__/__snapshots__/VSparkline.spec.ts.snap +1141 -0
  540. package/src/components/VSparkline/helpers/core.ts +51 -0
  541. package/src/components/VSparkline/helpers/math.ts +31 -0
  542. package/src/components/VSparkline/helpers/path.ts +38 -0
  543. package/src/components/VSparkline/index.ts +5 -0
  544. package/src/components/VSpeedDial/VSpeedDial.sass +79 -0
  545. package/src/components/VSpeedDial/VSpeedDial.ts +99 -0
  546. package/src/components/VSpeedDial/__tests__/VSpeedDial.spec.ts +93 -0
  547. package/src/components/VSpeedDial/__tests__/__snapshots__/VSpeedDial.spec.ts.snap +25 -0
  548. package/src/components/VSpeedDial/_variables.scss +5 -0
  549. package/src/components/VSpeedDial/index.ts +4 -0
  550. package/src/components/VStepper/VStepper.sass +236 -0
  551. package/src/components/VStepper/VStepper.ts +143 -0
  552. package/src/components/VStepper/VStepperContent.ts +167 -0
  553. package/src/components/VStepper/VStepperStep.ts +160 -0
  554. package/src/components/VStepper/__tests__/VStepper.spec.ts +34 -0
  555. package/src/components/VStepper/__tests__/VStepperContent.spec.ts +311 -0
  556. package/src/components/VStepper/__tests__/VStepperStep.spec.ts +162 -0
  557. package/src/components/VStepper/__tests__/__snapshots__/VStepperStep.spec.ts.snap +90 -0
  558. package/src/components/VStepper/_variables.scss +31 -0
  559. package/src/components/VStepper/index.ts +25 -0
  560. package/src/components/VSubheader/VSubheader.sass +15 -0
  561. package/src/components/VSubheader/VSubheader.ts +33 -0
  562. package/src/components/VSubheader/__tests__/VSubheader.spec.ts +62 -0
  563. package/src/components/VSubheader/__tests__/__snapshots__/VSubheader.spec.ts.snap +21 -0
  564. package/src/components/VSubheader/_variables.scss +6 -0
  565. package/src/components/VSubheader/index.ts +4 -0
  566. package/src/components/VSwitch/VSwitch.sass +133 -0
  567. package/src/components/VSwitch/VSwitch.ts +138 -0
  568. package/src/components/VSwitch/__tests__/VSwitch.spec.ts +106 -0
  569. package/src/components/VSwitch/__tests__/__snapshots__/VSwitch.spec.ts.snap +52 -0
  570. package/src/components/VSwitch/_variables.scss +30 -0
  571. package/src/components/VSwitch/index.ts +4 -0
  572. package/src/components/VSystemBar/VSystemBar.sass +44 -0
  573. package/src/components/VSystemBar/VSystemBar.ts +76 -0
  574. package/src/components/VSystemBar/__tests__/VSystemBar.spec.ts +128 -0
  575. package/src/components/VSystemBar/_variables.scss +9 -0
  576. package/src/components/VSystemBar/index.ts +4 -0
  577. package/src/components/VTabs/VTab.ts +136 -0
  578. package/src/components/VTabs/VTabItem.ts +24 -0
  579. package/src/components/VTabs/VTabs.sass +228 -0
  580. package/src/components/VTabs/VTabs.ts +338 -0
  581. package/src/components/VTabs/VTabsBar.ts +105 -0
  582. package/src/components/VTabs/VTabsItems.ts +39 -0
  583. package/src/components/VTabs/VTabsSlider.ts +20 -0
  584. package/src/components/VTabs/__tests__/VTab.spec.ts +127 -0
  585. package/src/components/VTabs/__tests__/VTabs.spec.ts +318 -0
  586. package/src/components/VTabs/__tests__/VTabsBar.spec.ts +102 -0
  587. package/src/components/VTabs/__tests__/VTabsSlider.spec.ts +32 -0
  588. package/src/components/VTabs/__tests__/__snapshots__/VTabs.spec.ts.snap +19 -0
  589. package/src/components/VTabs/_variables.scss +18 -0
  590. package/src/components/VTabs/index.ts +17 -0
  591. package/src/components/VTextField/VTextField.sass +526 -0
  592. package/src/components/VTextField/VTextField.ts +546 -0
  593. package/src/components/VTextField/__tests__/VTextField.spec.ts +992 -0
  594. package/src/components/VTextField/__tests__/__snapshots__/VTextField.spec.ts.snap +301 -0
  595. package/src/components/VTextField/_mixins.sass +18 -0
  596. package/src/components/VTextField/_variables.scss +51 -0
  597. package/src/components/VTextField/index.ts +4 -0
  598. package/src/components/VTextarea/VTextarea.sass +113 -0
  599. package/src/components/VTextarea/VTextarea.ts +117 -0
  600. package/src/components/VTextarea/__tests__/VTextarea.spec.ts +275 -0
  601. package/src/components/VTextarea/__tests__/__snapshots__/VTextarea.spec.ts.snap +121 -0
  602. package/src/components/VTextarea/_variables.scss +15 -0
  603. package/src/components/VTextarea/index.ts +4 -0
  604. package/src/components/VThemeProvider/VThemeProvider.ts +29 -0
  605. package/src/components/VThemeProvider/__tests__/VThemeProvider.spec.ts +80 -0
  606. package/src/components/VThemeProvider/index.ts +4 -0
  607. package/src/components/VTimePicker/SelectingTimes.ts +7 -0
  608. package/src/components/VTimePicker/VTimePicker.ts +489 -0
  609. package/src/components/VTimePicker/VTimePickerClock.sass +148 -0
  610. package/src/components/VTimePicker/VTimePickerClock.ts +278 -0
  611. package/src/components/VTimePicker/VTimePickerTitle.sass +65 -0
  612. package/src/components/VTimePicker/VTimePickerTitle.ts +83 -0
  613. package/src/components/VTimePicker/__tests__/VTimePicker.spec.ts +828 -0
  614. package/src/components/VTimePicker/__tests__/VTimePickerClock.spec.ts +323 -0
  615. package/src/components/VTimePicker/__tests__/VTimePickerTitle.spec.ts +189 -0
  616. package/src/components/VTimePicker/__tests__/__snapshots__/VTimePicker.spec.ts.snap +2761 -0
  617. package/src/components/VTimePicker/__tests__/__snapshots__/VTimePickerClock.spec.ts.snap +286 -0
  618. package/src/components/VTimePicker/__tests__/__snapshots__/VTimePickerTitle.spec.ts.snap +185 -0
  619. package/src/components/VTimePicker/_variables.scss +28 -0
  620. package/src/components/VTimePicker/index.ts +13 -0
  621. package/src/components/VTimeline/VTimeline.sass +167 -0
  622. package/src/components/VTimeline/VTimeline.ts +45 -0
  623. package/src/components/VTimeline/VTimelineItem.ts +115 -0
  624. package/src/components/VTimeline/__tests__/VTimeline.spec.ts +10 -0
  625. package/src/components/VTimeline/__tests__/VTimelineItem.spec.ts +66 -0
  626. package/src/components/VTimeline/__tests__/__snapshots__/VTimeline.spec.ts.snap +6 -0
  627. package/src/components/VTimeline/__tests__/__snapshots__/VTimelineItem.spec.ts.snap +74 -0
  628. package/src/components/VTimeline/_mixins.sass +43 -0
  629. package/src/components/VTimeline/_variables.scss +18 -0
  630. package/src/components/VTimeline/index.ts +11 -0
  631. package/src/components/VToolbar/VToolbar.sass +160 -0
  632. package/src/components/VToolbar/VToolbar.ts +167 -0
  633. package/src/components/VToolbar/__tests__/VToolbar.spec.ts +129 -0
  634. package/src/components/VToolbar/__tests__/__snapshots__/VToolbar.spec.ts.snap +31 -0
  635. package/src/components/VToolbar/_variables.scss +19 -0
  636. package/src/components/VToolbar/index.ts +22 -0
  637. package/src/components/VTooltip/VTooltip.sass +36 -0
  638. package/src/components/VTooltip/VTooltip.ts +223 -0
  639. package/src/components/VTooltip/__tests__/VTooltip.spec.ts +246 -0
  640. package/src/components/VTooltip/__tests__/__snapshots__/VTooltip.spec.ts.snap +110 -0
  641. package/src/components/VTooltip/_variables.scss +11 -0
  642. package/src/components/VTooltip/index.ts +4 -0
  643. package/src/components/VTreeview/VTreeview.sass +144 -0
  644. package/src/components/VTreeview/VTreeview.ts +442 -0
  645. package/src/components/VTreeview/VTreeviewNode.ts +356 -0
  646. package/src/components/VTreeview/__tests__/VTreeview.spec.ts +872 -0
  647. package/src/components/VTreeview/__tests__/VTreeviewNode.spec.ts +185 -0
  648. package/src/components/VTreeview/__tests__/__snapshots__/VTreeview.spec.ts.snap +1058 -0
  649. package/src/components/VTreeview/__tests__/__snapshots__/VTreeviewNode.spec.ts.snap +148 -0
  650. package/src/components/VTreeview/_mixins.sass +18 -0
  651. package/src/components/VTreeview/_variables.scss +10 -0
  652. package/src/components/VTreeview/index.ts +11 -0
  653. package/src/components/VTreeview/util/__tests__/filterTreeItems.spec.ts +20 -0
  654. package/src/components/VTreeview/util/filterTreeItems.ts +39 -0
  655. package/src/components/VVirtualScroll/VVirtualScroll.sass +15 -0
  656. package/src/components/VVirtualScroll/VVirtualScroll.ts +124 -0
  657. package/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts +108 -0
  658. package/src/components/VVirtualScroll/__tests__/__snapshots__/VVirtualScroll.spec.ts.snap +76 -0
  659. package/src/components/VVirtualScroll/index.ts +4 -0
  660. package/src/components/VWindow/VWindow.sass +108 -0
  661. package/src/components/VWindow/VWindow.ts +288 -0
  662. package/src/components/VWindow/VWindowItem.ts +157 -0
  663. package/src/components/VWindow/__tests__/VWindow.spec.ts +479 -0
  664. package/src/components/VWindow/__tests__/VWindowItem.spec.ts +344 -0
  665. package/src/components/VWindow/__tests__/__snapshots__/VWindow.spec.ts.snap +59 -0
  666. package/src/components/VWindow/__tests__/__snapshots__/VWindowItem.spec.ts.snap +36 -0
  667. package/src/components/VWindow/_variables.scss +5 -0
  668. package/src/components/VWindow/index.ts +11 -0
  669. package/src/components/index.ts +81 -0
  670. package/src/components/transitions/createTransition.ts +124 -0
  671. package/src/components/transitions/expand-transition.ts +86 -0
  672. package/src/components/transitions/index.ts +59 -0
  673. package/src/directives/click-outside/__tests__/click-outside-shadow-dom.spec.ts +118 -0
  674. package/src/directives/click-outside/__tests__/click-outside.spec.ts +111 -0
  675. package/src/directives/click-outside/index.ts +119 -0
  676. package/src/directives/color/__tests__/color.spec.ts +154 -0
  677. package/src/directives/color/index.ts +108 -0
  678. package/src/directives/index.ts +7 -0
  679. package/src/directives/intersect/__tests__/intersect.spec.ts +53 -0
  680. package/src/directives/intersect/index.ts +112 -0
  681. package/src/directives/mutate/__tests__/mutate.spec.ts +155 -0
  682. package/src/directives/mutate/index.ts +84 -0
  683. package/src/directives/resize/__tests__/resize.spec.ts +30 -0
  684. package/src/directives/resize/index.ts +60 -0
  685. package/src/directives/ripple/VRipple.sass +39 -0
  686. package/src/directives/ripple/__tests__/ripple.spec.ts +160 -0
  687. package/src/directives/ripple/index.ts +342 -0
  688. package/src/directives/scroll/__tests__/scroll.spec.ts +130 -0
  689. package/src/directives/scroll/index.ts +68 -0
  690. package/src/directives/touch/__tests__/touch.spec.ts +103 -0
  691. package/src/directives/touch/index.ts +135 -0
  692. package/src/entry-lib.ts +4 -0
  693. package/src/framework.ts +80 -0
  694. package/src/globals.d.ts +163 -0
  695. package/src/index.ts +19 -0
  696. package/src/install.ts +79 -0
  697. package/src/locale/__tests__/index.spec.ts +24 -0
  698. package/src/locale/af.ts +75 -0
  699. package/src/locale/ar.ts +75 -0
  700. package/src/locale/az.ts +75 -0
  701. package/src/locale/bg.ts +75 -0
  702. package/src/locale/ca.ts +75 -0
  703. package/src/locale/ckb.ts +75 -0
  704. package/src/locale/cs.ts +75 -0
  705. package/src/locale/da.ts +75 -0
  706. package/src/locale/de.ts +75 -0
  707. package/src/locale/el.ts +75 -0
  708. package/src/locale/en.ts +75 -0
  709. package/src/locale/es.ts +75 -0
  710. package/src/locale/et.ts +75 -0
  711. package/src/locale/fa.ts +75 -0
  712. package/src/locale/fi.ts +75 -0
  713. package/src/locale/fr.ts +75 -0
  714. package/src/locale/he.ts +75 -0
  715. package/src/locale/hr.ts +75 -0
  716. package/src/locale/hu.ts +75 -0
  717. package/src/locale/id.ts +75 -0
  718. package/src/locale/index.ts +42 -0
  719. package/src/locale/it.ts +75 -0
  720. package/src/locale/ja.ts +75 -0
  721. package/src/locale/ko.ts +75 -0
  722. package/src/locale/lt.ts +75 -0
  723. package/src/locale/lv.ts +75 -0
  724. package/src/locale/nl.ts +75 -0
  725. package/src/locale/no.ts +75 -0
  726. package/src/locale/pl.ts +75 -0
  727. package/src/locale/pt.ts +75 -0
  728. package/src/locale/ro.ts +75 -0
  729. package/src/locale/ru.ts +75 -0
  730. package/src/locale/sk.ts +75 -0
  731. package/src/locale/sl.ts +75 -0
  732. package/src/locale/sr-Cyrl.ts +75 -0
  733. package/src/locale/sr-Latn.ts +75 -0
  734. package/src/locale/sv.ts +75 -0
  735. package/src/locale/th.ts +75 -0
  736. package/src/locale/tr.ts +75 -0
  737. package/src/locale/uk.ts +75 -0
  738. package/src/locale/vi.ts +75 -0
  739. package/src/locale/zh-Hans.ts +75 -0
  740. package/src/locale/zh-Hant.ts +75 -0
  741. package/src/mixins/activatable/__tests__/__snapshots__/activatable.spec.ts.snap +20 -0
  742. package/src/mixins/activatable/__tests__/activatable.spec.ts +191 -0
  743. package/src/mixins/activatable/index.ts +224 -0
  744. package/src/mixins/applicationable/__tests__/applicationable.spec.ts +131 -0
  745. package/src/mixins/applicationable/index.ts +79 -0
  746. package/src/mixins/binds-attrs/index.ts +33 -0
  747. package/src/mixins/bootable/__tests__/bootable.spec.ts +90 -0
  748. package/src/mixins/bootable/index.ts +56 -0
  749. package/src/mixins/button-group/index.ts +26 -0
  750. package/src/mixins/colorable/__tests__/colorable.spec.ts +112 -0
  751. package/src/mixins/colorable/index.ts +118 -0
  752. package/src/mixins/comparable/index.ts +13 -0
  753. package/src/mixins/delayable/index.ts +50 -0
  754. package/src/mixins/dependent/__tests__/dependent.spec.ts +136 -0
  755. package/src/mixins/dependent/index.ts +89 -0
  756. package/src/mixins/detachable/__tests__/detachable.spec.ts +121 -0
  757. package/src/mixins/detachable/index.ts +175 -0
  758. package/src/mixins/elevatable/__tests__/elevatable.spec.ts +51 -0
  759. package/src/mixins/elevatable/index.ts +22 -0
  760. package/src/mixins/filterable/index.ts +13 -0
  761. package/src/mixins/groupable/index.ts +85 -0
  762. package/src/mixins/intersectable/__tests__/intersectable.spec.ts +45 -0
  763. package/src/mixins/intersectable/index.ts +54 -0
  764. package/src/mixins/loadable/index.ts +47 -0
  765. package/src/mixins/localable/index.ts +15 -0
  766. package/src/mixins/measurable/index.ts +42 -0
  767. package/src/mixins/menuable/__tests__/menuable.spec.ts +142 -0
  768. package/src/mixins/menuable/index.ts +431 -0
  769. package/src/mixins/mobile/__tests__/mobile.spec.ts +56 -0
  770. package/src/mixins/mobile/index.ts +53 -0
  771. package/src/mixins/mouse/__tests__/mouse.spec.ts +104 -0
  772. package/src/mixins/mouse/index.ts +124 -0
  773. package/src/mixins/overlayable/__tests__/overlayable.spec.ts +119 -0
  774. package/src/mixins/overlayable/index.ts +264 -0
  775. package/src/mixins/picker/index.ts +76 -0
  776. package/src/mixins/picker-button/index.ts +38 -0
  777. package/src/mixins/positionable/index.ts +54 -0
  778. package/src/mixins/proxyable/__tests__/proxyable.spec.ts +65 -0
  779. package/src/mixins/proxyable/index.ts +57 -0
  780. package/src/mixins/registrable/__tests__/registrable.spec.ts +31 -0
  781. package/src/mixins/registrable/index.ts +48 -0
  782. package/src/mixins/returnable/index.ts +34 -0
  783. package/src/mixins/rippleable/__tests__/__snapshots__/rippleable.spec.ts.snap +6 -0
  784. package/src/mixins/rippleable/__tests__/rippleable.spec.ts +29 -0
  785. package/src/mixins/rippleable/index.ts +41 -0
  786. package/src/mixins/roundable/__tests__/roundable.spec.ts +40 -0
  787. package/src/mixins/roundable/index.ts +36 -0
  788. package/src/mixins/routable/__tests__/routable.spec.ts +105 -0
  789. package/src/mixins/routable/index.ts +162 -0
  790. package/src/mixins/scrollable/__tests__/scrollable.spec.ts +144 -0
  791. package/src/mixins/scrollable/index.ts +104 -0
  792. package/src/mixins/selectable/__tests__/selectable.spec.ts +53 -0
  793. package/src/mixins/selectable/index.ts +171 -0
  794. package/src/mixins/sizeable/index.ts +32 -0
  795. package/src/mixins/ssr-bootable/index.ts +27 -0
  796. package/src/mixins/stackable/index.ts +65 -0
  797. package/src/mixins/themeable/index.ts +107 -0
  798. package/src/mixins/toggleable/index.ts +33 -0
  799. package/src/mixins/transitionable/index.ts +11 -0
  800. package/src/mixins/translatable/index.ts +60 -0
  801. package/src/mixins/validatable/__tests__/validatable.spec.ts +531 -0
  802. package/src/mixins/validatable/index.ts +283 -0
  803. package/src/presets/default/index.ts +70 -0
  804. package/src/services/application/__tests__/application.spec.ts +29 -0
  805. package/src/services/application/index.ts +55 -0
  806. package/src/services/breakpoint/__tests__/breakpoint.spec.ts +300 -0
  807. package/src/services/breakpoint/index.ts +194 -0
  808. package/src/services/goto/__tests__/easing-patterns.spec.ts +23 -0
  809. package/src/services/goto/__tests__/goto.spec.ts +214 -0
  810. package/src/services/goto/easing-patterns.ts +28 -0
  811. package/src/services/goto/index.ts +92 -0
  812. package/src/services/goto/util.ts +89 -0
  813. package/src/services/icons/__tests__/__snapshots__/icons.spec.ts.snap +77 -0
  814. package/src/services/icons/__tests__/icons.spec.ts +31 -0
  815. package/src/services/icons/index.ts +39 -0
  816. package/src/services/icons/presets/fa-svg.ts +23 -0
  817. package/src/services/icons/presets/fa.ts +39 -0
  818. package/src/services/icons/presets/fa4.ts +39 -0
  819. package/src/services/icons/presets/index.ts +15 -0
  820. package/src/services/icons/presets/md.ts +39 -0
  821. package/src/services/icons/presets/mdi-svg.ts +39 -0
  822. package/src/services/icons/presets/mdi.ts +39 -0
  823. package/src/services/index.ts +7 -0
  824. package/src/services/lang/__tests__/lang.spec.ts +70 -0
  825. package/src/services/lang/index.ts +88 -0
  826. package/src/services/presets/__tests__/__snapshots__/presets.spec.ts.snap +11 -0
  827. package/src/services/presets/__tests__/presets.spec.ts +51 -0
  828. package/src/services/presets/index.ts +44 -0
  829. package/src/services/service/index.ts +11 -0
  830. package/src/services/theme/__tests__/__snapshots__/theme-utils.spec.ts.snap +231 -0
  831. package/src/services/theme/__tests__/__snapshots__/theme.spec.ts.snap +5705 -0
  832. package/src/services/theme/__tests__/theme-utils.spec.ts +55 -0
  833. package/src/services/theme/__tests__/theme.spec.ts +284 -0
  834. package/src/services/theme/index.ts +256 -0
  835. package/src/services/theme/utils.ts +145 -0
  836. package/src/styles/components/_index.sass +1 -0
  837. package/src/styles/components/_selection-controls.sass +119 -0
  838. package/src/styles/elements/_blockquote.sass +4 -0
  839. package/src/styles/elements/_code.sass +23 -0
  840. package/src/styles/elements/_global.sass +23 -0
  841. package/src/styles/elements/_headings.sass +8 -0
  842. package/src/styles/elements/_index.sass +6 -0
  843. package/src/styles/elements/_lists.sass +3 -0
  844. package/src/styles/elements/_typography.sass +88 -0
  845. package/src/styles/generic/_animations.scss +13 -0
  846. package/src/styles/generic/_colors.scss +44 -0
  847. package/src/styles/generic/_elevation.scss +10 -0
  848. package/src/styles/generic/_index.scss +5 -0
  849. package/src/styles/generic/_reset.scss +281 -0
  850. package/src/styles/generic/_transitions.scss +317 -0
  851. package/src/styles/main.sass +7 -0
  852. package/src/styles/settings/_colors.scss +422 -0
  853. package/src/styles/settings/_dark.scss +153 -0
  854. package/src/styles/settings/_elevations.scss +101 -0
  855. package/src/styles/settings/_index.sass +10 -0
  856. package/src/styles/settings/_light.scss +134 -0
  857. package/src/styles/settings/_theme.scss +1 -0
  858. package/src/styles/settings/_utilities.scss +432 -0
  859. package/src/styles/settings/_variables.scss +266 -0
  860. package/src/styles/styles.sass +2 -0
  861. package/src/styles/tools/_bootable.sass +3 -0
  862. package/src/styles/tools/_display.sass +8 -0
  863. package/src/styles/tools/_elevation.sass +5 -0
  864. package/src/styles/tools/_functions.sass +70 -0
  865. package/src/styles/tools/_index.sass +18 -0
  866. package/src/styles/tools/_radius.sass +6 -0
  867. package/src/styles/tools/_rtl.sass +7 -0
  868. package/src/styles/tools/_sheet.sass +14 -0
  869. package/src/styles/tools/_states.sass +17 -0
  870. package/src/styles/tools/_theme.sass +5 -0
  871. package/src/styles/tools/_utilities.sass +61 -0
  872. package/src/styles/utilities/_display.sass +6 -0
  873. package/src/styles/utilities/_index.sass +42 -0
  874. package/src/styles/utilities/_screenreaders.sass +13 -0
  875. package/src/styles/utilities/_text.sass +8 -0
  876. package/src/styles/utilities/_transition.sass +4 -0
  877. package/src/util/__tests__/__snapshots__/helpers.spec.ts.snap +11 -0
  878. package/src/util/__tests__/colorUtils.spec.ts +162 -0
  879. package/src/util/__tests__/console.spec.ts +132 -0
  880. package/src/util/__tests__/dateTimeUtils.spec.ts +24 -0
  881. package/src/util/__tests__/dom.spec.ts +45 -0
  882. package/src/util/__tests__/helpers.spec.ts +470 -0
  883. package/src/util/__tests__/mergeData.spec.ts +104 -0
  884. package/src/util/color/transformCIELAB.ts +36 -0
  885. package/src/util/color/transformSRGB.ts +66 -0
  886. package/src/util/colorUtils.ts +249 -0
  887. package/src/util/colors.ts +339 -0
  888. package/src/util/console.ts +133 -0
  889. package/src/util/dateTimeUtils.ts +54 -0
  890. package/src/util/dedupeModelListeners.ts +18 -0
  891. package/src/util/dom.ts +24 -0
  892. package/src/util/helpers.ts +579 -0
  893. package/src/util/legacyEventsMixin.ts +34 -0
  894. package/src/util/make-directive-activatable.ts +55 -0
  895. package/src/util/mergeData.ts +166 -0
  896. package/src/util/mixins.ts +28 -0
  897. package/src/util/rebuildFunctionalSlots.ts +13 -0
  898. package/types/alacarte.d.ts +46 -0
  899. package/types/colors.d.ts +107 -0
  900. package/types/index.d.ts +308 -0
  901. package/types/lib.d.ts +378 -0
  902. package/types/services/application.d.ts +24 -0
  903. package/types/services/breakpoint.d.ts +42 -0
  904. package/types/services/goto.d.ts +30 -0
  905. package/types/services/icons.d.ts +68 -0
  906. package/types/services/index.d.ts +17 -0
  907. package/types/services/lang.d.ts +19 -0
  908. package/types/services/presets.d.ts +65 -0
  909. package/types/services/theme.d.ts +80 -0
@@ -0,0 +1,1058 @@
1
+ import VDataTable from '../VDataTable'
2
+ import {
3
+ mount,
4
+ VueWrapper,
5
+ MountingOptions,
6
+ enableAutoUnmount,
7
+ } from '@vue/test-utils'
8
+ import { h, nextTick } from 'vue'
9
+ import { Breakpoint } from '../../../services/breakpoint'
10
+ import ripple from '../../../directives/ripple/index'
11
+ import { Lang } from '../../../services/lang'
12
+ import { preset } from '../../../presets/default'
13
+ import { resizeWindow } from '../../../../test'
14
+
15
+ const $vuetify = {
16
+ icons: {},
17
+ rtl: false,
18
+ lang: new Lang(preset),
19
+ }
20
+ // Vue.directive('ripple', ripple)
21
+
22
+ const testHeaders = [
23
+ {
24
+ text: 'Dessert (100g serving)',
25
+ align: 'left',
26
+ sortable: false,
27
+ value: 'name',
28
+ },
29
+ { text: 'Calories', value: 'calories' },
30
+ { text: 'Fat (g)', value: 'fat' },
31
+ { text: 'Carbs (g)', value: 'carbs' },
32
+ { text: 'Protein (g)', value: 'protein' },
33
+ { text: 'Iron (%)', value: 'iron' },
34
+ ]
35
+
36
+ const testItems = [
37
+ {
38
+ name: 'Frozen Yogurt',
39
+ calories: 159,
40
+ fat: 6.0,
41
+ carbs: 24,
42
+ protein: 4.0,
43
+ iron: '1%',
44
+ class: 'test',
45
+ },
46
+ {
47
+ name: 'Ice cream sandwich',
48
+ calories: 237,
49
+ fat: 9.0,
50
+ carbs: 37,
51
+ protein: 4.3,
52
+ iron: '1%',
53
+ class: ['test', 'second'],
54
+ },
55
+ {
56
+ name: 'Eclair',
57
+ calories: 262,
58
+ fat: 16.0,
59
+ carbs: 23,
60
+ protein: 6.0,
61
+ iron: '7%',
62
+ class: { test: true, second: false },
63
+ },
64
+ {
65
+ name: 'Cupcake',
66
+ calories: 305,
67
+ fat: 3.7,
68
+ carbs: 67,
69
+ protein: 4.3,
70
+ iron: '8%',
71
+ },
72
+ {
73
+ name: 'Gingerbread',
74
+ calories: 356,
75
+ fat: 16.0,
76
+ carbs: 49,
77
+ protein: 3.9,
78
+ iron: '16%',
79
+ },
80
+ {
81
+ name: 'Jelly bean',
82
+ calories: 375,
83
+ fat: 0.0,
84
+ carbs: 94,
85
+ protein: 0.0,
86
+ iron: '0%',
87
+ },
88
+ {
89
+ name: 'Lollipop',
90
+ calories: 392,
91
+ fat: 0.2,
92
+ carbs: 98,
93
+ protein: 0,
94
+ iron: '2%',
95
+ },
96
+ {
97
+ name: 'Honeycomb',
98
+ calories: 408,
99
+ fat: 3.2,
100
+ carbs: 87,
101
+ protein: 6.5,
102
+ iron: '45%',
103
+ },
104
+ {
105
+ name: 'Donut',
106
+ calories: 452,
107
+ fat: 25.0,
108
+ carbs: 51,
109
+ protein: 4.9,
110
+ iron: '22%',
111
+ },
112
+ {
113
+ name: 'KitKat',
114
+ calories: 518,
115
+ fat: 26.0,
116
+ carbs: 65,
117
+ protein: 7,
118
+ iron: '6%',
119
+ },
120
+ ]
121
+
122
+ /* eslint-disable max-statements */
123
+ describe('VDataTable.ts', () => {
124
+ type Instance = InstanceType<typeof VDataTable>
125
+ let mountFunction: (options?: MountingOptions<Instance>) => VueWrapper<Instance>
126
+
127
+ enableAutoUnmount(afterEach)
128
+
129
+ beforeEach(() => {
130
+ document.body.setAttribute('data-app', 'true')
131
+
132
+ mountFunction = (options?: MountingOptions<Instance>) => {
133
+ const vuetifyInstance = {
134
+ breakpoint: new Breakpoint(preset),
135
+ lang: new Lang(preset),
136
+ theme: {
137
+ dark: false,
138
+ },
139
+ icons: {},
140
+ }
141
+
142
+ return mount(VDataTable, {
143
+ global: {
144
+ config: {
145
+ globalProperties: {
146
+ $vuetify: vuetifyInstance,
147
+ },
148
+ },
149
+ mocks: {
150
+ $vuetify: vuetifyInstance,
151
+ },
152
+ },
153
+ ...options,
154
+ })
155
+ }
156
+
157
+ return resizeWindow(0)
158
+ })
159
+
160
+ it('should render', () => {
161
+ const wrapper = mountFunction()
162
+
163
+ expect(wrapper.html()).toMatchSnapshot()
164
+ })
165
+
166
+ it('should render with data', () => {
167
+ const wrapper = mountFunction({
168
+ props: {
169
+ headers: testHeaders,
170
+ items: testItems,
171
+ itemsPerPage: 5,
172
+ },
173
+ })
174
+
175
+ expect(wrapper.html()).toMatchSnapshot()
176
+ })
177
+
178
+ it('should render with body slot', () => {
179
+ const wrapper = mountFunction({
180
+ props: {
181
+ headers: testHeaders,
182
+ items: testItems,
183
+ itemsPerPage: 5,
184
+ },
185
+ slots: {
186
+ body: (props: any) => h('div', [props.items.length]),
187
+ },
188
+ })
189
+
190
+ expect(wrapper.html()).toMatchSnapshot()
191
+ })
192
+
193
+ it('should render with foot slot', () => {
194
+ const wrapper = mountFunction({
195
+ props: {
196
+ headers: testHeaders,
197
+ items: testItems,
198
+ itemsPerPage: 5,
199
+ },
200
+ slots: {
201
+ foot: (props: any) => h('tfoot', [props.items.length]),
202
+ },
203
+ })
204
+
205
+ expect(wrapper.html()).toMatchSnapshot()
206
+ })
207
+
208
+ it('should render virtual table', () => {
209
+ const wrapper = mountFunction({
210
+ props: {
211
+ headers: testHeaders,
212
+ items: testItems,
213
+ itemsPerPage: 5,
214
+ virtualRows: true,
215
+ },
216
+ })
217
+
218
+ expect(wrapper.html()).toMatchSnapshot()
219
+ })
220
+
221
+ it('should render with showExpand', async () => {
222
+ const expand = jest.fn()
223
+ const wrapper = mountFunction({
224
+ props: {
225
+ headers: testHeaders,
226
+ itemKey: 'name',
227
+ items: testItems,
228
+ itemsPerPage: 5,
229
+ showExpand: true,
230
+ },
231
+ attrs: {
232
+ 'onUpdate:expanded': expand,
233
+ },
234
+ })
235
+
236
+ expect(wrapper.html()).toMatchSnapshot()
237
+
238
+ const expandIcon = wrapper.findAll('.v-data-table__expand-icon')[0]
239
+ if (expandIcon) {
240
+ expandIcon.trigger('click')
241
+ }
242
+
243
+ await nextTick()
244
+ expect(expand).toHaveBeenCalledWith(testItems.slice(0, 1))
245
+ expect(wrapper.html()).toMatchSnapshot()
246
+ })
247
+
248
+ it('should render with showSelect', () => {
249
+ const wrapper = mountFunction({
250
+ props: {
251
+ headers: testHeaders,
252
+ items: testItems,
253
+ itemsPerPage: 5,
254
+ showSelect: true,
255
+ },
256
+ })
257
+
258
+ expect(wrapper.html()).toMatchSnapshot()
259
+ })
260
+
261
+ it('should render with item.expanded scoped slot', async () => {
262
+ const wrapper = mountFunction({
263
+ props: {
264
+ headers: testHeaders,
265
+ items: testItems,
266
+ itemsPerPage: 5,
267
+ expanded: testItems,
268
+ },
269
+ slots: {
270
+ 'expanded-item': (props: any) => h('div', ['expanded']),
271
+ },
272
+ })
273
+
274
+ await nextTick()
275
+
276
+ expect(wrapper.html()).toMatchSnapshot()
277
+ })
278
+
279
+ it('should render with group.summary scoped slot', () => {
280
+ const wrapper = mountFunction({
281
+ props: {
282
+ headers: testHeaders,
283
+ items: testItems,
284
+ itemsPerPage: 5,
285
+ groupBy: 'calories',
286
+ },
287
+ slots: {
288
+ 'group.summary': (props: any) => h('div', ['summary']),
289
+ },
290
+ })
291
+
292
+ expect(wrapper.html()).toMatchSnapshot()
293
+ })
294
+
295
+ it('should render with item scoped slot', () => {
296
+ const wrapper = mountFunction({
297
+ props: {
298
+ headers: testHeaders,
299
+ items: testItems,
300
+ itemsPerPage: 5,
301
+ },
302
+ slots: {
303
+ item: (props: any) => h('div', [JSON.stringify(props)]),
304
+ },
305
+ })
306
+
307
+ expect(wrapper.html()).toMatchSnapshot()
308
+ })
309
+
310
+ it('should render with grouped rows', () => {
311
+ const wrapper = mountFunction({
312
+ props: {
313
+ headers: testHeaders,
314
+ items: testItems,
315
+ itemsPerPage: 5,
316
+ groupBy: ['protein'],
317
+ },
318
+ })
319
+
320
+ expect(wrapper.html()).toMatchSnapshot()
321
+ })
322
+
323
+ it('should render with group scoped slot', () => {
324
+ const wrapper = mountFunction({
325
+ props: {
326
+ headers: testHeaders,
327
+ items: testItems,
328
+ itemsPerPage: 5,
329
+ groupBy: ['protein'],
330
+ },
331
+ slots: {
332
+ group: (props: any) => h('div', [JSON.stringify(props)]),
333
+ },
334
+ })
335
+
336
+ expect(wrapper.html()).toMatchSnapshot()
337
+ })
338
+
339
+ it('should render loading state', () => {
340
+ const wrapper = mountFunction({
341
+ props: {
342
+ loading: true,
343
+ checkboxColor: 'primary',
344
+ color: 'primary',
345
+ },
346
+ })
347
+
348
+ expect(wrapper.html()).toMatchSnapshot()
349
+
350
+ const wrapper2 = mountFunction({
351
+ props: {
352
+ headers: testHeaders,
353
+ loading: true,
354
+ },
355
+ slots: {
356
+ progress: () => h('div', { class: 'progress' }, '50%'),
357
+ },
358
+ })
359
+
360
+ expect(wrapper2.html()).toMatchSnapshot()
361
+ })
362
+
363
+ it.each([
364
+ 'click',
365
+ 'contextmenu',
366
+ 'dblclick',
367
+ ])('should render row that can handle %s events', async event => {
368
+ const wrapper = mountFunction({
369
+ props: {
370
+ headers: testHeaders,
371
+ items: testItems,
372
+ },
373
+ })
374
+
375
+ const row = wrapper.find('tbody tr')
376
+ expect(row.exists()).toBe(true)
377
+
378
+ // Just test that the event can be triggered without errors
379
+ if (row.exists()) {
380
+ await row.trigger(event)
381
+ await nextTick()
382
+ }
383
+ })
384
+
385
+ // https://github.com/vuetifyjs/vuetify/issues/8254
386
+ it('should pass kebab-case footer props correctly', () => {
387
+ const wrapper = mountFunction({
388
+ props: {
389
+ headers: [],
390
+ items: [],
391
+ footerProps: {
392
+ 'items-per-page-text': 'Foo:',
393
+ },
394
+ },
395
+ })
396
+
397
+ expect(wrapper.html()).toMatchSnapshot()
398
+ })
399
+
400
+ // https://github.com/vuetifyjs/vuetify/issues/8266
401
+ it('should use options prop for initial values', () => {
402
+ const fn = jest.fn()
403
+ const wrapper = mountFunction({
404
+ props: {
405
+ headers: testHeaders,
406
+ items: testItems,
407
+ options: {
408
+ page: 2,
409
+ itemsPerPage: 5,
410
+ },
411
+ },
412
+ attrs: {
413
+ 'onUpdate:options': fn,
414
+ },
415
+ })
416
+
417
+ expect(fn).toHaveBeenCalledWith(expect.objectContaining({
418
+ page: 2,
419
+ }))
420
+ })
421
+
422
+ it('should render footer.prepend slot content', () => {
423
+ const wrapper = mountFunction({
424
+ props: {
425
+ headers: [],
426
+ items: [{}],
427
+ },
428
+ slots: {
429
+ 'footer.prepend': () => h('div', ['footer.prepend slot content']),
430
+ },
431
+ })
432
+
433
+ expect(wrapper.html()).toMatchSnapshot()
434
+ })
435
+
436
+ it('should render footer.page-text slot content', () => {
437
+ const wrapper = mountFunction({
438
+ props: {
439
+ headers: [],
440
+ items: [{}],
441
+ },
442
+ slots: {
443
+ 'footer.page-text': ({ pageStart, pageStop }: any) => h('div', [`foo ${pageStart} bar ${pageStop}`]),
444
+ },
445
+ })
446
+
447
+ expect(wrapper.html()).toMatchSnapshot()
448
+ })
449
+
450
+ // https://github.com/vuetifyjs/vuetify/issues/8359
451
+ it('should not limit page to current item count when using server-items-length', async () => {
452
+ const wrapper = mountFunction({
453
+ props: {
454
+ headers: testHeaders,
455
+ items: [],
456
+ page: 2,
457
+ itemsPerPage: 5,
458
+ serverItemsLength: 0,
459
+ },
460
+ })
461
+
462
+ expect(wrapper.html()).toMatchSnapshot()
463
+
464
+ wrapper.setProps({
465
+ items: testItems.slice(5),
466
+ serverItemsLength: 20,
467
+ })
468
+ await nextTick()
469
+
470
+ expect(wrapper.html()).toMatchSnapshot()
471
+ })
472
+
473
+ it('should not search column with filterable set to false', async () => {
474
+ const wrapper = mountFunction({
475
+ props: {
476
+ items: testItems,
477
+ headers: [
478
+ {
479
+ text: 'Dessert (100g serving)',
480
+ align: 'left',
481
+ filterable: false,
482
+ value: 'name',
483
+ },
484
+ { text: 'Calories', value: 'calories' },
485
+ { text: 'Fat (g)', value: 'fat' },
486
+ { text: 'Carbs (g)', value: 'carbs' },
487
+ { text: 'Protein (g)', value: 'protein' },
488
+ { text: 'Iron (%)', value: 'iron' },
489
+ ],
490
+ },
491
+ })
492
+
493
+ expect(wrapper.html()).toMatchSnapshot()
494
+
495
+ wrapper.setProps({
496
+ search: 'cup',
497
+ })
498
+ await nextTick()
499
+
500
+ expect(wrapper.html()).toMatchSnapshot()
501
+ })
502
+
503
+ it('should not search column with filterable set to false and has filter function', async () => {
504
+ const wrapper = mountFunction({
505
+ props: {
506
+ items: testItems,
507
+ headers: [
508
+ {
509
+ text: 'Dessert (100g serving)',
510
+ align: 'left',
511
+ value: 'name',
512
+ },
513
+ { text: 'Calories', value: 'calories', filter: (v: any) => v > 400 },
514
+ { text: 'Fat (g)', value: 'fat' },
515
+ { text: 'Carbs (g)', value: 'carbs' },
516
+ { text: 'Protein (g)', value: 'protein' },
517
+ { text: 'Iron (%)', value: 'iron' },
518
+ ],
519
+ },
520
+ })
521
+
522
+ expect(wrapper.html()).toMatchSnapshot()
523
+
524
+ wrapper.setProps({
525
+ headers: [
526
+ {
527
+ text: 'Dessert (100g serving)',
528
+ align: 'left',
529
+ value: 'name',
530
+ },
531
+ { text: 'Calories', value: 'calories', filter: (v: any) => v > 400, filterable: false },
532
+ { text: 'Fat (g)', value: 'fat' },
533
+ { text: 'Carbs (g)', value: 'carbs' },
534
+ { text: 'Protein (g)', value: 'protein' },
535
+ { text: 'Iron (%)', value: 'iron' },
536
+ ],
537
+ })
538
+ await nextTick()
539
+
540
+ expect(wrapper.html()).toMatchSnapshot()
541
+ })
542
+
543
+ // https://github.com/vuetifyjs/vuetify/issues/8359
544
+ it('should limit page to current page count if not using server-items-length', async () => {
545
+ const wrapper = mountFunction({
546
+ props: {
547
+ headers: testHeaders,
548
+ items: testItems,
549
+ page: 3,
550
+ itemsPerPage: 5,
551
+ },
552
+ })
553
+
554
+ expect(wrapper.html()).toMatchSnapshot()
555
+ })
556
+
557
+ // https://github.com/vuetifyjs/vuetify/issues/8184
558
+ it('should default to first option in itemsPerPageOptions if it does not include itemsPerPage', async () => {
559
+ const wrapper = mountFunction({
560
+ props: {
561
+ headers: testHeaders,
562
+ items: testItems,
563
+ footerProps: {
564
+ itemsPerPageOptions: [6, 7],
565
+ },
566
+ },
567
+ })
568
+
569
+ expect(wrapper.html()).toMatchSnapshot()
570
+ })
571
+
572
+ // https://github.com/vuetifyjs/vuetify/issues/8817
573
+ it('should handle object when checking if it should default to first option in itemsPerPageOptions', async () => {
574
+ const wrapper = mountFunction({
575
+ props: {
576
+ headers: testHeaders,
577
+ items: testItems,
578
+ itemsPerPage: -1,
579
+ footerProps: {
580
+ itemsPerPageOptions: [6, { text: 'All', value: -1 }],
581
+ },
582
+ },
583
+ })
584
+
585
+ expect(wrapper.html()).toMatchSnapshot()
586
+ })
587
+
588
+ // https://github.com/vuetifyjs/vuetify/issues/9599
589
+ it('should not immediately emit items-per-page', async () => {
590
+ const itemsPerPage = jest.fn()
591
+ const wrapper = mountFunction({
592
+ props: {
593
+ headers: testHeaders,
594
+ items: testItems,
595
+ footerProps: {
596
+ itemsPerPageOptions: [6, 7],
597
+ },
598
+ },
599
+ attrs: {
600
+ 'onUpdate:itemsPerPage': itemsPerPage,
601
+ },
602
+ })
603
+
604
+ expect(itemsPerPage).not.toHaveBeenCalled()
605
+ })
606
+
607
+ // https://github.com/vuetifyjs/vuetify/issues/9010
608
+ it('should change page if item count decreases below page start', async () => {
609
+ const page = jest.fn()
610
+ const wrapper = mountFunction({
611
+ props: {
612
+ headers: testHeaders,
613
+ items: testItems.slice(0, 4),
614
+ itemsPerPage: 2,
615
+ footerProps: {
616
+ itemsPerPageOptions: [2],
617
+ },
618
+ page: 2,
619
+ },
620
+ attrs: {
621
+ 'onUpdate:page': page,
622
+ },
623
+ })
624
+
625
+ expect(wrapper.html()).toMatchSnapshot()
626
+
627
+ wrapper.setProps({ items: testItems.slice(0, 2) })
628
+ await nextTick()
629
+
630
+ expect(page).toHaveBeenCalledWith(1)
631
+ })
632
+
633
+ it('should render with single-select checkboxes', async () => {
634
+ const wrapper = mountFunction({
635
+ props: {
636
+ headers: testHeaders,
637
+ itemKey: 'name',
638
+ items: testItems.slice(0, 2),
639
+ modelValue: [testItems[0]],
640
+ showSelect: true,
641
+ singleSelect: true,
642
+ },
643
+ })
644
+
645
+ const checkboxes = wrapper.findAll('.v-data-table__checkbox')
646
+ expect(checkboxes.length).toBeGreaterThan(0)
647
+ expect(wrapper.html()).toMatchSnapshot()
648
+ })
649
+
650
+ it('should render non-selectable items correctly', async () => {
651
+ const items = [
652
+ { ...testItems[0], isSelectable: false },
653
+ { ...testItems[1] },
654
+ ]
655
+ const wrapper = mountFunction({
656
+ props: {
657
+ headers: testHeaders,
658
+ items,
659
+ showSelect: true,
660
+ },
661
+ })
662
+
663
+ expect(wrapper.html()).toMatchSnapshot()
664
+ const checkboxes = wrapper.findAll('.v-simple-checkbox')
665
+ expect(checkboxes.length).toBeGreaterThan(0)
666
+ })
667
+
668
+ it('should render select-all checkbox when items are selectable', async () => {
669
+ const items = [
670
+ { ...testItems[0], isSelectable: false },
671
+ { ...testItems[1] },
672
+ ]
673
+ const wrapper = mountFunction({
674
+ props: {
675
+ headers: testHeaders,
676
+ items,
677
+ showSelect: true,
678
+ },
679
+ })
680
+
681
+ const selectAll = wrapper.findAll('.v-simple-checkbox')[0]
682
+ expect(selectAll.exists()).toBe(true)
683
+ expect(wrapper.html()).toMatchSnapshot()
684
+ })
685
+
686
+ // https://github.com/vuetifyjs/vuetify/issues/10392
687
+ it('should search group-by column', async () => {
688
+ const headers = [
689
+ {
690
+ text: 'Name',
691
+ value: 'name',
692
+ },
693
+ {
694
+ text: 'ID',
695
+ value: 'id',
696
+ },
697
+ ]
698
+
699
+ const items = [
700
+ {
701
+ name: 'Assistance',
702
+ id: 1,
703
+ },
704
+ {
705
+ name: 'Candidat',
706
+ id: 2,
707
+ },
708
+ ]
709
+
710
+ const wrapper = mountFunction({
711
+ props: {
712
+ headers,
713
+ items,
714
+ itemKey: 'id',
715
+ groupBy: 'name',
716
+ },
717
+ })
718
+
719
+ expect(wrapper.html()).toMatchSnapshot()
720
+
721
+ wrapper.setProps({ search: 'candidat' })
722
+ await nextTick()
723
+
724
+ expect(wrapper.html()).toMatchSnapshot()
725
+ })
726
+
727
+ it('should render item slot when using group-by function', async () => {
728
+ const wrapper = mountFunction({
729
+ props: {
730
+ headers: testHeaders,
731
+ itemKey: 'name',
732
+ items: testItems.slice(0, 2),
733
+ groupBy: 'name',
734
+ },
735
+ slots: {
736
+ item: () => h('div', ['scoped']),
737
+ },
738
+ })
739
+
740
+ expect(wrapper.html()).toMatchSnapshot()
741
+ })
742
+
743
+ it('should handle filtering correctly', async () => {
744
+ const headers = [
745
+ {
746
+ text: 'Name',
747
+ value: 'name',
748
+ },
749
+ {
750
+ text: 'ID',
751
+ value: 'id',
752
+ },
753
+ ]
754
+
755
+ const items = [
756
+ {
757
+ name: 'Assistance',
758
+ id: 1,
759
+ },
760
+ {
761
+ name: 'Candidat',
762
+ id: 2,
763
+ },
764
+ ]
765
+
766
+ const wrapper = mountFunction({
767
+ props: {
768
+ headers,
769
+ items,
770
+ itemKey: 'id',
771
+ },
772
+ })
773
+
774
+ expect(wrapper.html()).toMatchSnapshot()
775
+
776
+ wrapper.setProps({ search: 'candidat' })
777
+ await nextTick()
778
+
779
+ expect(wrapper.html()).toMatchSnapshot()
780
+ })
781
+
782
+ it('should not emit too many pagination events', async () => {
783
+ const headers = [
784
+ {
785
+ text: 'Name',
786
+ value: 'name',
787
+ },
788
+ {
789
+ text: 'ID',
790
+ value: 'id',
791
+ },
792
+ ]
793
+
794
+ const items = [
795
+ {
796
+ name: 'Assistance',
797
+ id: 1,
798
+ },
799
+ {
800
+ name: 'Candidat',
801
+ id: 2,
802
+ },
803
+ ]
804
+
805
+ const wrapper = mountFunction({
806
+ props: {
807
+ headers,
808
+ itemKey: 'id',
809
+ serverItemsLength: 0,
810
+ },
811
+ })
812
+
813
+ wrapper.setProps({ items, serverItemsLength: items.length })
814
+ await nextTick()
815
+
816
+ expect(wrapper.emitted().pagination).toHaveLength(2)
817
+ })
818
+
819
+ it('should show correct aria-labels when sorting', async () => {
820
+ const wrapper = mountFunction({
821
+ props: {
822
+ headers: testHeaders,
823
+ itemKey: 'name',
824
+ items: testItems.slice(0, 5),
825
+ sortBy: 'calories',
826
+ },
827
+ })
828
+
829
+ wrapper.setProps({ sortDesc: true })
830
+ await nextTick()
831
+
832
+ expect(wrapper.html()).toMatchSnapshot()
833
+
834
+ wrapper.setProps({ mustSort: true })
835
+ await nextTick()
836
+
837
+ expect(wrapper.html()).toMatchSnapshot()
838
+ })
839
+
840
+ it('should apply class list to rows', () => {
841
+ const wrapper = mountFunction({
842
+ props: {
843
+ headers: testHeaders,
844
+ items: testItems,
845
+ itemsPerPage: 5,
846
+ itemClass: () => ['my-class', 'my-other-class'],
847
+ },
848
+ })
849
+
850
+ expect(wrapper.html()).toMatchSnapshot()
851
+ })
852
+
853
+ it('should apply class unique to rows', () => {
854
+ const wrapper = mountFunction({
855
+ props: {
856
+ headers: testHeaders,
857
+ items: testItems,
858
+ itemsPerPage: 5,
859
+ itemClass: () => 'my-unique-class',
860
+ },
861
+ })
862
+
863
+ expect(wrapper.html()).toMatchSnapshot()
864
+ })
865
+
866
+ it('should apply class function to rows', () => {
867
+ const wrapper = mountFunction({
868
+ props: {
869
+ headers: testHeaders,
870
+ items: testItems,
871
+ itemsPerPage: 5,
872
+ itemClass: (item: any) => ({
873
+ 'first-class': item.fat < 10,
874
+ 'second-class': item.protein > 4.0,
875
+ }),
876
+ },
877
+ })
878
+
879
+ expect(wrapper.html()).toMatchSnapshot()
880
+ })
881
+
882
+ it('should apply class from item to rows', () => {
883
+ const wrapper = mountFunction({
884
+ props: {
885
+ headers: testHeaders,
886
+ items: testItems,
887
+ itemsPerPage: 5,
888
+ itemClass: 'class',
889
+ },
890
+ })
891
+
892
+ expect(wrapper.html()).toMatchSnapshot()
893
+ })
894
+
895
+ // https://github.com/vuetifyjs/vuetify/issues/11600
896
+ it('should return rows from columns that match custom filters', async () => {
897
+ const wrapper = mountFunction({
898
+ props: {
899
+ items: testItems,
900
+ filterMode: 'union',
901
+ headers: [
902
+ { text: 'Dessert (100g serving)', align: 'left', value: 'name' },
903
+ { text: 'Calories', value: 'calories', filter: (value: any) => value === 159 },
904
+ { text: 'Fat (g)', value: 'fat' },
905
+ { text: 'Carbs (g)', value: 'carbs' },
906
+ { text: 'Protein (g)', value: 'protein' },
907
+ { text: 'Iron (%)', value: 'iron' },
908
+ ],
909
+ },
910
+ })
911
+
912
+ wrapper.setProps({ search: 'eclair' })
913
+ await nextTick()
914
+ expect(wrapper.vm.internalCurrentItems).toHaveLength(2)
915
+ })
916
+
917
+ it('should return rows from columns that exclusively match custom filters', async () => {
918
+ const wrapper = mountFunction({
919
+ props: {
920
+ items: testItems,
921
+ filterMode: 'intersection',
922
+ headers: [
923
+ { text: 'Dessert (100g serving)', align: 'left', value: 'name' },
924
+ { text: 'Calories', value: 'calories', filter: (value: any) => value === 159 },
925
+ { text: 'Fat (g)', value: 'fat' },
926
+ { text: 'Carbs (g)', value: 'carbs' },
927
+ { text: 'Protein (g)', value: 'protein' },
928
+ { text: 'Iron (%)', value: 'iron' },
929
+ ],
930
+ },
931
+ })
932
+
933
+ wrapper.setProps({ search: 'eclair' })
934
+ await nextTick()
935
+ expect(wrapper.vm.internalCurrentItems).toHaveLength(0)
936
+
937
+ wrapper.setProps({ search: 'frozen' })
938
+ await nextTick()
939
+ expect(wrapper.vm.internalCurrentItems).toHaveLength(1)
940
+ })
941
+
942
+ it('should respect mustSort property on options', async () => {
943
+ const wrapper = mountFunction({
944
+ props: {
945
+ items: testItems,
946
+ headers: [
947
+ { text: 'Dessert (100g serving)', value: 'name' },
948
+ ],
949
+ options: {
950
+ mustSort: true,
951
+ },
952
+ },
953
+ })
954
+
955
+ wrapper.find('th').trigger('click')
956
+ await nextTick()
957
+
958
+ wrapper.find('th').trigger('click')
959
+ await nextTick()
960
+
961
+ wrapper.find('th').trigger('click')
962
+ await nextTick()
963
+
964
+ expect(wrapper.html()).toMatchSnapshot()
965
+ })
966
+
967
+ it('should hide group button when column is not groupable', async () => {
968
+ const wrapper = mountFunction({
969
+ props: {
970
+ showGroupBy: true,
971
+ items: testItems,
972
+ headers: [
973
+ {
974
+ text: 'Dessert (100g serving)',
975
+ align: 'left',
976
+ value: 'name',
977
+ groupable: false,
978
+ },
979
+ { text: 'Calories', value: 'calories' },
980
+ { text: 'Fat (g)', value: 'fat' },
981
+ { text: 'Carbs (g)', value: 'carbs' },
982
+ { text: 'Protein (g)', value: 'protein' },
983
+ { text: 'Iron (%)', value: 'iron' },
984
+ ],
985
+ },
986
+ })
987
+
988
+ expect(wrapper.html()).toMatchSnapshot()
989
+ })
990
+
991
+ it('should return rows matching search term if specified', async () => {
992
+ const wrapper = mountFunction({
993
+ props: {
994
+ items: testItems,
995
+ headers: [
996
+ { text: 'Dessert (100g serving)', align: 'left', value: 'name' },
997
+ { text: 'Calories', value: 'calories' },
998
+ { text: 'Fat (g)', value: 'fat' },
999
+ { text: 'Carbs (g)', value: 'carbs' },
1000
+ { text: 'Protein (g)', value: 'protein' },
1001
+ { text: 'Iron (%)', value: 'iron' },
1002
+ ],
1003
+ },
1004
+ })
1005
+
1006
+ wrapper.setProps({ search: 'unknown-term' })
1007
+ await nextTick()
1008
+ expect(wrapper.vm.internalCurrentItems).toHaveLength(0)
1009
+
1010
+ wrapper.setProps({ search: 'Eclair' })
1011
+ await nextTick()
1012
+ expect(wrapper.vm.internalCurrentItems).toHaveLength(1)
1013
+ })
1014
+
1015
+ it('should return results which match both search term and column filters if both specified', async () => {
1016
+ const wrapper = mountFunction({
1017
+ props: {
1018
+ items: testItems,
1019
+ headers: [
1020
+ { text: 'Dessert (100g serving)', align: 'left', value: 'name' },
1021
+ { text: 'Calories', value: 'calories', filter: (value: any) => value < 300 },
1022
+ { text: 'Fat (g)', value: 'fat' },
1023
+ { text: 'Carbs (g)', value: 'carbs' },
1024
+ { text: 'Protein (g)', value: 'protein' },
1025
+ { text: 'Iron (%)', value: 'iron' },
1026
+ ],
1027
+ },
1028
+ })
1029
+
1030
+ wrapper.setProps({ search: 'EA' })
1031
+ await nextTick()
1032
+ expect(wrapper.vm.internalCurrentItems).toHaveLength(1)
1033
+ })
1034
+
1035
+ it('should render selection checkboxes on multiple pages with numeric item keys', async () => {
1036
+ const items = testItems.map((item, index) => ({ ...item, name: index + 1 })).slice(0, 8)
1037
+ const wrapper = mountFunction({
1038
+ props: {
1039
+ items,
1040
+ itemKey: 'name',
1041
+ itemsPerPage: 5,
1042
+ showSelect: true,
1043
+ headers: testHeaders,
1044
+ mobileBreakpoint: 0,
1045
+ },
1046
+ })
1047
+
1048
+ // Just check that the component renders without errors
1049
+ expect(wrapper.html()).toContain('v-data-table')
1050
+
1051
+ wrapper.setProps({ page: 2 })
1052
+ await nextTick()
1053
+
1054
+ // Check that page 2 renders without errors
1055
+ expect(wrapper.html()).toContain('v-data-table')
1056
+ expect(wrapper.html()).toMatchSnapshot()
1057
+ })
1058
+ })