quasar 1.16.3 → 1.17.3

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 (308) hide show
  1. package/dist/api/BottomSheet.json +2 -2
  2. package/dist/api/Loading.json +0 -2
  3. package/dist/api/LoadingBar.json +1 -1
  4. package/dist/api/Notify.json +25 -25
  5. package/dist/api/QAjaxBar.json +23 -4
  6. package/dist/api/QAvatar.json +1 -1
  7. package/dist/api/QBreadcrumbsEl.json +32 -11
  8. package/dist/api/QBtn.json +35 -14
  9. package/dist/api/QBtnDropdown.json +36 -15
  10. package/dist/api/QBtnToggle.json +1 -1
  11. package/dist/api/QCarousel.json +7 -7
  12. package/dist/api/QCarouselSlide.json +2 -2
  13. package/dist/api/QChatMessage.json +1 -5
  14. package/dist/api/QChip.json +4 -4
  15. package/dist/api/QColor.json +6 -0
  16. package/dist/api/QDialog.json +7 -1
  17. package/dist/api/QExpansionItem.json +34 -13
  18. package/dist/api/QFab.json +34 -2
  19. package/dist/api/QFabAction.json +9 -1
  20. package/dist/api/QField.json +80 -6
  21. package/dist/api/QFile.json +80 -6
  22. package/dist/api/QImg.json +2 -2
  23. package/dist/api/QInnerLoading.json +32 -0
  24. package/dist/api/QInput.json +82 -6
  25. package/dist/api/QItem.json +31 -10
  26. package/dist/api/QOptionGroup.json +58 -1
  27. package/dist/api/QPagination.json +4 -4
  28. package/dist/api/QParallax.json +1 -1
  29. package/dist/api/QPopupEdit.json +14 -7
  30. package/dist/api/QPullToRefresh.json +1 -1
  31. package/dist/api/QRange.json +581 -96
  32. package/dist/api/QRating.json +3 -3
  33. package/dist/api/QRouteTab.json +32 -12
  34. package/dist/api/QScrollArea.json +188 -20
  35. package/dist/api/QSelect.json +82 -10
  36. package/dist/api/QSeparator.json +1 -1
  37. package/dist/api/QSlider.json +499 -34
  38. package/dist/api/QStep.json +4 -4
  39. package/dist/api/QStepper.json +4 -4
  40. package/dist/api/QTab.json +1 -1
  41. package/dist/api/QTable.json +4 -4
  42. package/dist/api/QTabs.json +9 -0
  43. package/dist/api/QTimelineEntry.json +2 -2
  44. package/dist/api/QToggle.json +1 -1
  45. package/dist/api/QTree.json +7 -1
  46. package/dist/api/QVideo.json +10 -0
  47. package/dist/icon-set/bootstrap-icons.umd.min.js +1 -1
  48. package/dist/icon-set/eva-icons.umd.min.js +1 -1
  49. package/dist/icon-set/fontawesome-v5-pro.umd.min.js +1 -1
  50. package/dist/icon-set/fontawesome-v5.umd.min.js +1 -1
  51. package/dist/icon-set/ionicons-v4.umd.min.js +1 -1
  52. package/dist/icon-set/line-awesome.umd.min.js +1 -1
  53. package/dist/icon-set/material-icons-outlined.umd.min.js +1 -1
  54. package/dist/icon-set/material-icons-round.umd.min.js +1 -1
  55. package/dist/icon-set/material-icons-sharp.umd.min.js +1 -1
  56. package/dist/icon-set/material-icons.umd.min.js +1 -1
  57. package/dist/icon-set/mdi-v3.umd.min.js +1 -1
  58. package/dist/icon-set/mdi-v4.umd.min.js +1 -1
  59. package/dist/icon-set/mdi-v5.umd.min.js +1 -1
  60. package/dist/icon-set/mdi-v6.umd.min.js +1 -1
  61. package/dist/icon-set/svg-bootstrap-icons.umd.min.js +1 -1
  62. package/dist/icon-set/svg-eva-icons.umd.min.js +1 -1
  63. package/dist/icon-set/svg-fontawesome-v5.umd.min.js +1 -1
  64. package/dist/icon-set/svg-ionicons-v4.umd.min.js +1 -1
  65. package/dist/icon-set/svg-ionicons-v5.umd.min.js +1 -1
  66. package/dist/icon-set/svg-ionicons-v6.umd.min.js +6 -0
  67. package/dist/icon-set/svg-line-awesome.umd.min.js +1 -1
  68. package/dist/icon-set/svg-material-icons-outlined.umd.min.js +1 -1
  69. package/dist/icon-set/svg-material-icons-round.umd.min.js +1 -1
  70. package/dist/icon-set/svg-material-icons-sharp.umd.min.js +1 -1
  71. package/dist/icon-set/svg-material-icons.umd.min.js +1 -1
  72. package/dist/icon-set/svg-mdi-v4.umd.min.js +1 -1
  73. package/dist/icon-set/svg-mdi-v5.umd.min.js +1 -1
  74. package/dist/icon-set/svg-mdi-v6.umd.min.js +1 -1
  75. package/dist/icon-set/svg-themify.umd.min.js +1 -1
  76. package/dist/icon-set/themify.umd.min.js +1 -1
  77. package/dist/lang/ar.umd.min.js +2 -2
  78. package/dist/lang/az-latn.umd.min.js +1 -1
  79. package/dist/lang/bg.umd.min.js +1 -1
  80. package/dist/lang/ca.umd.min.js +1 -1
  81. package/dist/lang/cs.umd.min.js +1 -1
  82. package/dist/lang/da.umd.min.js +1 -1
  83. package/dist/lang/de.umd.min.js +1 -1
  84. package/dist/lang/el.umd.min.js +1 -1
  85. package/dist/lang/en-gb.umd.min.js +1 -1
  86. package/dist/lang/en-us.umd.min.js +1 -1
  87. package/dist/lang/eo.umd.min.js +1 -1
  88. package/dist/lang/es.umd.min.js +1 -1
  89. package/dist/lang/et.umd.min.js +1 -1
  90. package/dist/lang/fa-ir.umd.min.js +1 -1
  91. package/dist/lang/fa.umd.min.js +1 -1
  92. package/dist/lang/fi.umd.min.js +1 -1
  93. package/dist/lang/fr.umd.min.js +2 -2
  94. package/dist/lang/gn.umd.min.js +1 -1
  95. package/dist/lang/he.umd.min.js +1 -1
  96. package/dist/lang/hr.umd.min.js +1 -1
  97. package/dist/lang/hu.umd.min.js +1 -1
  98. package/dist/lang/id.umd.min.js +1 -1
  99. package/dist/lang/is.umd.min.js +1 -1
  100. package/dist/lang/it.umd.min.js +1 -1
  101. package/dist/lang/ja.umd.min.js +1 -1
  102. package/dist/lang/km.umd.min.js +1 -1
  103. package/dist/lang/ko-kr.umd.min.js +1 -1
  104. package/dist/lang/kur-ckb.umd.min.js +1 -1
  105. package/dist/lang/lu.umd.min.js +1 -1
  106. package/dist/lang/lv.umd.min.js +1 -1
  107. package/dist/lang/ml.umd.min.js +1 -1
  108. package/dist/lang/ms.umd.min.js +1 -1
  109. package/dist/lang/nb-no.umd.min.js +1 -1
  110. package/dist/lang/nl.umd.min.js +1 -1
  111. package/dist/lang/pl.umd.min.js +1 -1
  112. package/dist/lang/pt-br.umd.min.js +1 -1
  113. package/dist/lang/pt.umd.min.js +1 -1
  114. package/dist/lang/ro.umd.min.js +1 -1
  115. package/dist/lang/ru.umd.min.js +1 -1
  116. package/dist/lang/sk.umd.min.js +1 -1
  117. package/dist/lang/sl.umd.min.js +1 -1
  118. package/dist/lang/sr.umd.min.js +2 -2
  119. package/dist/lang/sv.umd.min.js +1 -1
  120. package/dist/lang/ta.umd.min.js +1 -1
  121. package/dist/lang/th.umd.min.js +1 -1
  122. package/dist/lang/tr.umd.min.js +1 -1
  123. package/dist/lang/ug.umd.min.js +2 -2
  124. package/dist/lang/uk.umd.min.js +1 -1
  125. package/dist/lang/vi.umd.min.js +1 -1
  126. package/dist/lang/zh-hans.umd.min.js +2 -2
  127. package/dist/lang/zh-hant.umd.min.js +2 -2
  128. package/dist/quasar.addon.css +1 -1
  129. package/dist/quasar.addon.rtl.css +1 -1
  130. package/dist/quasar.common.js +2 -2
  131. package/dist/quasar.css +380 -227
  132. package/dist/quasar.esm.js +2 -2
  133. package/dist/quasar.ie.polyfills.js +1 -1
  134. package/dist/quasar.ie.polyfills.umd.min.js +1 -1
  135. package/dist/quasar.min.css +1 -1
  136. package/dist/quasar.rtl.css +512 -303
  137. package/dist/quasar.rtl.min.css +1 -1
  138. package/dist/quasar.sass +328 -210
  139. package/dist/quasar.styl +328 -210
  140. package/dist/quasar.umd.js +3244 -1894
  141. package/dist/quasar.umd.min.js +2 -2
  142. package/dist/quasar.umd.modern.js +3199 -1875
  143. package/dist/quasar.umd.modern.min.js +2 -2
  144. package/dist/transform-asset-urls.json +20 -0
  145. package/dist/types/index.d.ts +427 -105
  146. package/dist/types/utils/scroll.d.ts +1 -0
  147. package/dist/vetur/quasar-attributes.json +320 -92
  148. package/dist/vetur/quasar-tags.json +76 -19
  149. package/dist/web-types/web-types.json +1296 -257
  150. package/icon-set/svg-ionicons-v6.js +225 -0
  151. package/lang/ar.js +1 -1
  152. package/lang/fa-ir.js +3 -1
  153. package/lang/fa.js +3 -1
  154. package/lang/fr.js +1 -1
  155. package/lang/index.json +1 -1
  156. package/lang/kur-ckb.js +2 -2
  157. package/lang/sr.js +4 -4
  158. package/lang/ug.js +48 -46
  159. package/lang/zh-hans.js +1 -1
  160. package/lang/zh-hant.js +18 -18
  161. package/package.json +1 -1
  162. package/src/api.extends.json +1 -2
  163. package/src/components/ajax-bar/QAjaxBar.js +48 -26
  164. package/src/components/ajax-bar/QAjaxBar.json +22 -4
  165. package/src/components/breadcrumbs/QBreadcrumbs.js +15 -11
  166. package/src/components/breadcrumbs/QBreadcrumbs.sass +0 -3
  167. package/src/components/breadcrumbs/QBreadcrumbs.styl +0 -3
  168. package/src/components/breadcrumbs/QBreadcrumbsEl.js +25 -9
  169. package/src/components/btn/QBtn.js +3 -3
  170. package/src/components/btn-dropdown/QBtnDropdown.sass +2 -0
  171. package/src/components/btn-dropdown/QBtnDropdown.styl +2 -0
  172. package/src/components/btn-toggle/QBtnToggle.js +4 -1
  173. package/src/components/carousel/QCarousel.js +6 -2
  174. package/src/components/carousel/QCarousel.json +9 -1
  175. package/src/components/carousel/QCarouselSlide.json +2 -2
  176. package/src/components/chat/QChatMessage.json +1 -1
  177. package/src/components/color/QColor.js +100 -85
  178. package/src/components/color/QColor.json +7 -0
  179. package/src/components/color/QColor.sass +14 -24
  180. package/src/components/color/QColor.styl +14 -24
  181. package/src/components/date/QDate.js +7 -1
  182. package/src/components/date/QDate.sass +2 -0
  183. package/src/components/date/QDate.styl +2 -0
  184. package/src/components/dialog/QDialog.js +8 -4
  185. package/src/components/dialog/QDialog.json +8 -1
  186. package/src/components/drawer/QDrawer.js +16 -15
  187. package/src/components/editor/QEditor.js +2 -2
  188. package/src/components/editor/QEditor.sass +13 -1
  189. package/src/components/editor/QEditor.styl +13 -1
  190. package/src/components/expansion-item/QExpansionItem.js +13 -11
  191. package/src/components/fab/QFab.js +20 -11
  192. package/src/components/fab/QFab.json +35 -0
  193. package/src/components/fab/QFabAction.js +16 -9
  194. package/src/components/fab/QFabAction.json +10 -0
  195. package/src/components/field/QField.js +28 -23
  196. package/src/components/field/__QField.json +72 -8
  197. package/src/components/file/QFile.js +12 -4
  198. package/src/components/file/QFile.sass +4 -3
  199. package/src/components/file/QFile.styl +4 -3
  200. package/src/components/footer/QFooter.js +1 -1
  201. package/src/components/form/QForm.js +1 -1
  202. package/src/components/header/QHeader.js +1 -1
  203. package/src/components/icon/QIcon.js +89 -75
  204. package/src/components/icon/QIcon.sass +2 -2
  205. package/src/components/icon/QIcon.styl +2 -2
  206. package/src/components/img/QImg.json +2 -2
  207. package/src/components/infinite-scroll/QInfiniteScroll.js +49 -36
  208. package/src/components/inner-loading/QInnerLoading.js +54 -22
  209. package/src/components/inner-loading/QInnerLoading.json +29 -0
  210. package/src/components/inner-loading/QInnerLoading.sass +3 -0
  211. package/src/components/inner-loading/QInnerLoading.styl +3 -0
  212. package/src/components/item/QItem.js +9 -15
  213. package/src/components/layout/QLayout.js +49 -0
  214. package/src/components/linear-progress/QLinearProgress.js +6 -2
  215. package/src/components/menu/QMenu.js +5 -1
  216. package/src/components/option-group/QOptionGroup.js +32 -22
  217. package/src/components/option-group/QOptionGroup.json +50 -1
  218. package/src/components/parallax/QParallax.js +3 -0
  219. package/src/components/parallax/QParallax.json +1 -1
  220. package/src/components/popup-edit/QPopupEdit.js +41 -16
  221. package/src/components/popup-edit/QPopupEdit.json +15 -8
  222. package/src/components/range/QRange.js +223 -278
  223. package/src/components/range/QRange.json +11 -122
  224. package/src/components/rating/QRating.js +56 -38
  225. package/src/components/rating/QRating.json +3 -3
  226. package/src/components/rating/QRating.sass +8 -6
  227. package/src/components/rating/QRating.styl +8 -6
  228. package/src/components/resize-observer/QResizeObserver.js +15 -10
  229. package/src/components/scroll-area/QScrollArea.js +342 -126
  230. package/src/components/scroll-area/QScrollArea.json +164 -20
  231. package/src/components/scroll-area/QScrollArea.sass +5 -0
  232. package/src/components/scroll-area/QScrollArea.styl +5 -0
  233. package/src/components/scroll-observer/QScrollObserver.js +12 -7
  234. package/src/components/select/QSelect.js +8 -2
  235. package/src/components/select/QSelect.json +1 -1
  236. package/src/components/separator/QSeparator.js +0 -1
  237. package/src/components/separator/QSeparator.json +1 -1
  238. package/src/components/slider/QSlider.js +97 -140
  239. package/src/components/slider/QSlider.json +1 -122
  240. package/src/components/slider/QSlider.sass +205 -139
  241. package/src/components/slider/QSlider.styl +205 -139
  242. package/src/components/slider/slider-utils.js +468 -123
  243. package/src/components/slider/slider-utils.json +546 -0
  244. package/src/components/stepper/QStepper.js +1 -1
  245. package/src/components/stepper/QStepper.sass +25 -26
  246. package/src/components/stepper/QStepper.styl +25 -26
  247. package/src/components/table/QTable.sass +3 -0
  248. package/src/components/table/QTable.styl +3 -0
  249. package/src/components/tabs/QRouteTab.js +13 -13
  250. package/src/components/tabs/QRouteTab.json +0 -7
  251. package/src/components/tabs/QTab.js +71 -20
  252. package/src/components/tabs/QTabs.js +237 -52
  253. package/src/components/tabs/QTabs.json +8 -0
  254. package/src/components/tabs/QTabs.sass +6 -6
  255. package/src/components/tabs/QTabs.styl +6 -6
  256. package/src/components/time/QTime.js +6 -2
  257. package/src/components/timeline/QTimeline.sass +1 -2
  258. package/src/components/timeline/QTimeline.styl +1 -2
  259. package/src/components/timeline/QTimelineEntry.json +1 -1
  260. package/src/components/tree/QTree.js +10 -6
  261. package/src/components/tree/QTree.json +5 -0
  262. package/src/components/tree/QTree.sass +58 -4
  263. package/src/components/tree/QTree.styl +58 -4
  264. package/src/components/uploader/QUploaderBase.js +15 -19
  265. package/src/components/video/QVideo.js +4 -1
  266. package/src/components/video/QVideo.json +11 -0
  267. package/src/components/virtual-scroll/QVirtualScroll.sass +1 -0
  268. package/src/components/virtual-scroll/QVirtualScroll.styl +1 -0
  269. package/src/css/core/helpers.sass +3 -0
  270. package/src/css/core/helpers.styl +3 -0
  271. package/src/css/core/positioning.sass +5 -0
  272. package/src/css/core/positioning.styl +5 -0
  273. package/src/css/variables.sass +4 -6
  274. package/src/css/variables.styl +4 -6
  275. package/src/directives/Scroll.js +2 -2
  276. package/src/directives/ScrollFire.js +1 -0
  277. package/src/ie-compat/ie.js +13 -13
  278. package/src/install.js +1 -1
  279. package/src/lang.js +7 -4
  280. package/src/mixins/anchor.js +3 -13
  281. package/src/mixins/btn.js +33 -38
  282. package/src/mixins/btn.json +26 -11
  283. package/src/mixins/file.js +27 -5
  284. package/src/mixins/fullscreen.js +16 -4
  285. package/src/mixins/portal.js +10 -10
  286. package/src/mixins/router-link.js +88 -14
  287. package/src/mixins/router-link.json +26 -10
  288. package/src/mixins/validate.js +33 -15
  289. package/src/mixins/virtual-scroll.js +40 -42
  290. package/src/plugins/AppFullscreen.js +41 -16
  291. package/src/plugins/BottomSheet.json +1 -1
  292. package/src/plugins/Cookies.js +1 -1
  293. package/src/plugins/Loading.js +8 -0
  294. package/src/plugins/LoadingBar.js +9 -0
  295. package/src/plugins/LoadingBar.json +1 -1
  296. package/src/plugins/Notify.js +351 -333
  297. package/src/plugins/Notify.json +20 -20
  298. package/src/plugins/Notify.sass +9 -3
  299. package/src/plugins/Notify.styl +9 -3
  300. package/src/utils/clone.js +53 -4
  301. package/src/utils/date.js +134 -69
  302. package/src/utils/dom.js +28 -9
  303. package/src/utils/extend.js +2 -2
  304. package/src/utils/focus-manager.js +8 -10
  305. package/src/utils/global-dialog.js +18 -1
  306. package/src/utils/is.js +2 -2
  307. package/src/utils/morph.js +2 -12
  308. package/src/utils/scroll.js +71 -35
@@ -51,6 +51,9 @@
51
51
  &__container
52
52
  position: relative
53
53
 
54
+ &.fullscreen
55
+ max-height: 100%
56
+
54
57
  > div:first-child
55
58
  border-top-left-radius: inherit
56
59
  border-top-right-radius: inherit
@@ -1,7 +1,7 @@
1
1
  import Vue from 'vue'
2
2
 
3
3
  import QTab from './QTab.js'
4
- import { RouterLinkMixin } from '../../mixins/router-link.js'
4
+ import RouterLinkMixin from '../../mixins/router-link.js'
5
5
  import { isSameRoute, isIncludedRoute } from '../../utils/router.js'
6
6
  import { stopAndPrevent, noop } from '../../utils/event.js'
7
7
 
@@ -10,10 +10,6 @@ export default Vue.extend({
10
10
 
11
11
  mixins: [ QTab, RouterLinkMixin ],
12
12
 
13
- props: {
14
- to: { required: true }
15
- },
16
-
17
13
  inject: {
18
14
  __activateRoute: {},
19
15
  __recalculateScroll: {}
@@ -28,8 +24,8 @@ export default Vue.extend({
28
24
  computed: {
29
25
  routerTabLinkProps () {
30
26
  return {
31
- ...this.routerLinkProps,
32
- event: []
27
+ ...this.linkProps.props,
28
+ custom: true
33
29
  }
34
30
  }
35
31
  },
@@ -49,14 +45,14 @@ export default Vue.extend({
49
45
  // handle this by its own
50
46
  this.__checkActivation(true)
51
47
  }
52
- else {
48
+ else if (this.hasRouterLink === true) {
53
49
  // we use programatic navigation instead of letting vue-router handle it
54
50
  // so we can check for activation when the navigation is complete
55
51
  e !== void 0 && stopAndPrevent(e)
56
52
 
57
53
  const go = (to = this.to, append = this.append, replace = this.replace) => {
58
54
  const { route } = this.$router.resolve(to, this.$route, append)
59
- const checkFn = to === this.to && append === this.append && replace === this.replace
55
+ const checkFn = to === this.to && append === this.append
60
56
  ? this.__checkActivation
61
57
  : noop
62
58
 
@@ -82,14 +78,18 @@ export default Vue.extend({
82
78
  }
83
79
 
84
80
  if (keyboard === true) {
85
- this.$el.focus(e)
81
+ this.$el.focus({ preventScroll: true })
86
82
  }
87
- else {
88
- this.$refs.blurTarget !== void 0 && this.$refs.blurTarget.focus(e)
83
+ else if (this.$refs.blurTarget !== void 0) {
84
+ this.$refs.blurTarget.focus({ preventScroll: true })
89
85
  }
90
86
  },
91
87
 
92
88
  __checkActivation (selected = false) {
89
+ if (this.hasRouterLink !== true) {
90
+ return
91
+ }
92
+
93
93
  const
94
94
  current = this.$route,
95
95
  { href, location, route } = this.$router.resolve(this.to, current, this.append),
@@ -139,6 +139,6 @@ export default Vue.extend({
139
139
  },
140
140
 
141
141
  render (h) {
142
- return this.__renderTab(h, 'router-link', this.routerTabLinkProps)
142
+ return this.__renderTab(h, this.linkTag)
143
143
  }
144
144
  })
@@ -5,13 +5,6 @@
5
5
 
6
6
  "mixins": [ "components/tabs/QTab", "mixins/router-link" ],
7
7
 
8
- "props": {
9
- "to": {
10
- "required": true,
11
- "category": "general"
12
- }
13
- },
14
-
15
8
  "events": {
16
9
  "click": {
17
10
  "desc": "Emitted when component is clicked (activated)",
@@ -5,9 +5,9 @@ import QIcon from '../icon/QIcon.js'
5
5
  import RippleMixin from '../../mixins/ripple.js'
6
6
  import ListenersMixin from '../../mixins/listeners.js'
7
7
 
8
- import { stop } from '../../utils/event.js'
8
+ import { stop, prevent, stopAndPrevent } from '../../utils/event.js'
9
9
  import { mergeSlot } from '../../utils/slot.js'
10
- import { isKeyCode } from '../../utils/key-composition.js'
10
+ import { shouldIgnoreKey } from '../../utils/key-composition.js'
11
11
 
12
12
  let uid = 0
13
13
 
@@ -23,7 +23,8 @@ export default Vue.extend({
23
23
  }
24
24
  },
25
25
  __activateTab: {},
26
- __recalculateScroll: {}
26
+ __recalculateScroll: {},
27
+ __onKbdNavigate: {}
27
28
  },
28
29
 
29
30
  props: {
@@ -53,9 +54,16 @@ export default Vue.extend({
53
54
 
54
55
  classes () {
55
56
  return {
56
- [`q-tab--${this.isActive ? '' : 'in'}active`]: true,
57
- [`text-${this.tabs.activeColor}`]: this.isActive && this.tabs.activeColor,
58
- [`bg-${this.tabs.activeBgColor}`]: this.isActive && this.tabs.activeBgColor,
57
+ ...(
58
+ this.isActive === true
59
+ ? {
60
+ 'q-tab--active': true,
61
+ [this.tabs.activeClass]: this.tabs.activeClass,
62
+ [`text-${this.tabs.activeColor}`]: this.tabs.activeColor,
63
+ [`bg-${this.tabs.activeBgColor}`]: this.tabs.activeBgColor
64
+ }
65
+ : { 'q-tab--inactive': true }
66
+ ),
59
67
  'q-tab--full': this.icon && this.label && !this.tabs.inlineLabel,
60
68
  'q-tab--no-caps': this.noCaps === true || this.tabs.noCaps === true,
61
69
  'q-focusable q-hoverable cursor-pointer': !this.disable,
@@ -69,7 +77,18 @@ export default Vue.extend({
69
77
  },
70
78
 
71
79
  computedTabIndex () {
72
- return this.disable === true || this.isActive === true ? -1 : this.tabindex || 0
80
+ return this.disable === true || this.tabs.hasFocus === true
81
+ ? -1
82
+ : this.tabindex || 0
83
+ },
84
+
85
+ computedRipple () {
86
+ return this.ripple === false
87
+ ? false
88
+ : Object.assign(
89
+ { keyCodes: [13, 32], early: true },
90
+ this.ripple === true ? {} : this.ripple
91
+ )
73
92
  },
74
93
 
75
94
  onEvents () {
@@ -77,7 +96,7 @@ export default Vue.extend({
77
96
  input: stop,
78
97
  ...this.qListeners,
79
98
  click: this.__activate,
80
- keyup: this.__onKeyup
99
+ keydown: this.__onKeydown
81
100
  }
82
101
  },
83
102
 
@@ -85,7 +104,7 @@ export default Vue.extend({
85
104
  const attrs = {
86
105
  tabindex: this.computedTabIndex,
87
106
  role: 'tab',
88
- 'aria-selected': this.isActive
107
+ 'aria-selected': this.isActive === true ? 'true' : 'false'
89
108
  }
90
109
 
91
110
  if (this.disable === true) {
@@ -98,7 +117,9 @@ export default Vue.extend({
98
117
 
99
118
  methods: {
100
119
  __activate (e, keyboard) {
101
- keyboard !== true && this.$refs.blurTarget !== void 0 && this.$refs.blurTarget.focus()
120
+ if (keyboard !== true && this.$refs.blurTarget !== void 0) {
121
+ this.$refs.blurTarget.focus({ preventScroll: true })
122
+ }
102
123
 
103
124
  if (this.disable !== true) {
104
125
  this.qListeners.click !== void 0 && this.$emit('click', e)
@@ -106,8 +127,18 @@ export default Vue.extend({
106
127
  }
107
128
  },
108
129
 
109
- __onKeyup (e) {
110
- isKeyCode(e, 13) === true && this.__activate(e, true)
130
+ __onKeydown (e) {
131
+ if (shouldIgnoreKey(e)) {
132
+ return
133
+ }
134
+
135
+ if ([ 13, 32 ].indexOf(e.keyCode) !== -1) {
136
+ this.__activate(e, true)
137
+ prevent(e)
138
+ }
139
+ else if (e.keyCode >= 35 && e.keyCode <= 40) {
140
+ this.__onKbdNavigate(e.keyCode, this.$el) === true && stopAndPrevent(e)
141
+ }
111
142
  },
112
143
 
113
144
  __getContent (h) {
@@ -167,21 +198,41 @@ export default Vue.extend({
167
198
  return node
168
199
  },
169
200
 
170
- __renderTab (h, tag, props) {
201
+ __renderTab (h, tag) {
171
202
  const data = {
172
- staticClass: 'q-tab relative-position self-stretch flex flex-center text-center',
203
+ staticClass: 'q-tab relative-position self-stretch flex flex-center text-center no-outline',
173
204
  class: this.classes,
174
205
  attrs: this.attrs,
175
- directives: this.ripple !== false && this.disable === true ? null : [
176
- { name: 'ripple', value: this.ripple }
177
- ],
178
- [ tag === 'div' ? 'on' : 'nativeOn' ]: this.onEvents
206
+ directives: this.ripple === false || this.disable === true ? null : [
207
+ { name: 'ripple', value: this.computedRipple }
208
+ ]
179
209
  }
180
210
 
181
- if (props !== void 0) {
182
- data.props = props
211
+ if (this.hasRouterLink === true) {
212
+ return h(tag, {
213
+ ...data,
214
+ nativeOn: this.onEvents,
215
+ props: this.routerTabLinkProps,
216
+ scopedSlots: {
217
+ default: ({ href, isActive, isExactActive }) => h('a', {
218
+ class: {
219
+ [this.activeClass]: isActive,
220
+ [this.exactActiveClass]: isExactActive
221
+ },
222
+ attrs: {
223
+ ...this.linkProps.attrs,
224
+ href
225
+ }
226
+ }, this.__getContent(h))
227
+ }
228
+ })
183
229
  }
184
230
 
231
+ if (this.hasLink === true) {
232
+ Object.assign(data.attrs, this.linkProps.attrs)
233
+ data.props = this.linkProps.props
234
+ }
235
+ data.on = this.onEvents
185
236
  return h(tag, data, this.__getContent(h))
186
237
  }
187
238
  },