@vuetify/nightly 2.6.2-master-20211217.0 → 2.6.2

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 (57) hide show
  1. package/dist/json/attributes.json +8 -0
  2. package/dist/json/tags.json +2 -0
  3. package/dist/json/web-types.json +29 -7
  4. package/dist/vuetify.js +44 -37
  5. package/dist/vuetify.js.map +1 -1
  6. package/dist/vuetify.min.css +1 -1
  7. package/dist/vuetify.min.js +2 -2
  8. package/es5/components/VCombobox/VCombobox.js +1 -1
  9. package/es5/components/VCombobox/VCombobox.js.map +1 -1
  10. package/es5/components/VMenu/VMenu.js +0 -4
  11. package/es5/components/VMenu/VMenu.js.map +1 -1
  12. package/es5/components/VNavigationDrawer/VNavigationDrawer.js +7 -11
  13. package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  14. package/es5/components/VOtpInput/VOtpInput.js +2 -0
  15. package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
  16. package/es5/components/VSlideGroup/VSlideGroup.js +2 -0
  17. package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
  18. package/es5/components/VTooltip/VTooltip.js +14 -8
  19. package/es5/components/VTooltip/VTooltip.js.map +1 -1
  20. package/es5/framework.js +1 -1
  21. package/es5/mixins/activatable/index.js +6 -2
  22. package/es5/mixins/activatable/index.js.map +1 -1
  23. package/es5/mixins/menuable/index.js +9 -8
  24. package/es5/mixins/menuable/index.js.map +1 -1
  25. package/es5/mixins/routable/index.js +2 -2
  26. package/es5/mixins/routable/index.js.map +1 -1
  27. package/lib/components/VCombobox/VCombobox.js +1 -1
  28. package/lib/components/VCombobox/VCombobox.js.map +1 -1
  29. package/lib/components/VMenu/VMenu.js +0 -4
  30. package/lib/components/VMenu/VMenu.js.map +1 -1
  31. package/lib/components/VNavigationDrawer/VNavigationDrawer.js +3 -7
  32. package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  33. package/lib/components/VOtpInput/VOtpInput.js +2 -0
  34. package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
  35. package/lib/components/VSlideGroup/VSlideGroup.js +3 -1
  36. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  37. package/lib/components/VTooltip/VTooltip.js +14 -8
  38. package/lib/components/VTooltip/VTooltip.js.map +1 -1
  39. package/lib/framework.js +1 -1
  40. package/lib/mixins/activatable/index.js +6 -2
  41. package/lib/mixins/activatable/index.js.map +1 -1
  42. package/lib/mixins/menuable/index.js +9 -8
  43. package/lib/mixins/menuable/index.js.map +1 -1
  44. package/lib/mixins/routable/index.js +2 -2
  45. package/lib/mixins/routable/index.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/components/VCombobox/VCombobox.ts +1 -1
  48. package/src/components/VCombobox/__tests__/VCombobox.spec.ts +2 -2
  49. package/src/components/VMenu/VMenu.ts +0 -4
  50. package/src/components/VNavigationDrawer/VNavigationDrawer.ts +3 -6
  51. package/src/components/VOtpInput/VOtpInput.ts +2 -0
  52. package/src/components/VSlideGroup/VSlideGroup.ts +5 -1
  53. package/src/components/VTooltip/VTooltip.ts +14 -7
  54. package/src/mixins/activatable/__tests__/__snapshots__/activatable.spec.ts.snap +1 -2
  55. package/src/mixins/activatable/index.ts +6 -2
  56. package/src/mixins/menuable/index.ts +8 -7
  57. package/src/mixins/routable/index.ts +2 -2
@@ -75,6 +75,7 @@ export default baseMixins.extend<options>().extend({
75
75
  isFocused: 'updateValue',
76
76
  value (val) {
77
77
  this.lazyValue = val
78
+ this.otp = val?.split('') || []
78
79
  },
79
80
  },
80
81
 
@@ -266,6 +267,7 @@ export default baseMixins.extend<options>().extend({
266
267
  newOtp[appIdx] = inputDataArray[i].toString()
267
268
  }
268
269
  this.otp = newOtp
270
+ this.internalValue = this.otp.join('')
269
271
  const targetFocus = Math.min(index + inputDataArray.length, maxCursor)
270
272
  this.changeFocus(targetFocus)
271
273
 
@@ -216,13 +216,17 @@ export const BaseSlideGroup = mixins<options &
216
216
  // and need to be recalculated
217
217
  isOverflowing: 'setWidths',
218
218
  scrollOffset (val) {
219
- const scroll =
219
+ if (this.$vuetify.rtl) val = -val
220
+
221
+ let scroll =
220
222
  val <= 0
221
223
  ? bias(-val)
222
224
  : val > this.widths.content - this.widths.wrapper
223
225
  ? -(this.widths.content - this.widths.wrapper) + bias(this.widths.content - this.widths.wrapper - val)
224
226
  : -val
225
227
 
228
+ if (this.$vuetify.rtl) scroll = -scroll
229
+
226
230
  this.$refs.content.style.transform = `translateX(${scroll}px)`
227
231
  },
228
232
  },
@@ -34,6 +34,10 @@ export default mixins(Colorable, Delayable, Dependent, Menuable, Toggleable).ext
34
34
  type: Boolean,
35
35
  default: true,
36
36
  },
37
+ openOnFocus: {
38
+ type: Boolean,
39
+ default: true,
40
+ },
37
41
  tag: {
38
42
  type: String,
39
43
  default: 'span',
@@ -157,14 +161,17 @@ export default mixins(Colorable, Delayable, Dependent, Menuable, Toggleable).ext
157
161
  genActivatorListeners () {
158
162
  const listeners = Activatable.options.methods.genActivatorListeners.call(this)
159
163
 
160
- listeners.focus = (e: Event) => {
161
- this.getActivator(e)
162
- this.runDelay('open')
163
- }
164
- listeners.blur = (e: Event) => {
165
- this.getActivator(e)
166
- this.runDelay('close')
164
+ if (this.openOnFocus) {
165
+ listeners.focus = (e: Event) => {
166
+ this.getActivator(e)
167
+ this.runDelay('open')
168
+ }
169
+ listeners.blur = (e: Event) => {
170
+ this.getActivator(e)
171
+ this.runDelay('close')
172
+ }
167
173
  }
174
+
168
175
  listeners.keydown = (e: KeyboardEvent) => {
169
176
  if (e.keyCode === keyCodes.esc) {
170
177
  this.getActivator(e)
@@ -2,8 +2,7 @@
2
2
 
3
3
  exports[`activatable.ts should render activator slot with hover 1`] = `
4
4
  <div>
5
- <button role="button"
6
- aria-haspopup="true"
5
+ <button aria-haspopup="true"
7
6
  aria-expanded="false"
8
7
  >
9
8
  </button>
@@ -30,6 +30,10 @@ export default baseMixins.extend({
30
30
  },
31
31
  disabled: Boolean,
32
32
  internalActivator: Boolean,
33
+ openOnClick: {
34
+ type: Boolean,
35
+ default: true,
36
+ },
33
37
  openOnHover: Boolean,
34
38
  openOnFocus: Boolean,
35
39
  },
@@ -89,7 +93,7 @@ export default baseMixins.extend({
89
93
  },
90
94
  genActivatorAttributes () {
91
95
  return {
92
- role: 'button',
96
+ role: (this.openOnClick && !this.openOnHover) ? 'button' : undefined,
93
97
  'aria-haspopup': true,
94
98
  'aria-expanded': String(this.isActive),
95
99
  }
@@ -108,7 +112,7 @@ export default baseMixins.extend({
108
112
  this.getActivator(e)
109
113
  this.runDelay('close')
110
114
  }
111
- } else {
115
+ } else if (this.openOnClick) {
112
116
  listeners.click = (e: MouseEvent) => {
113
117
  const activator = this.getActivator(e)
114
118
  if (activator) activator.focus()
@@ -78,7 +78,6 @@ export default baseMixins.extend<options>().extend({
78
78
  default: 0,
79
79
  },
80
80
  offsetOverflow: Boolean,
81
- openOnClick: Boolean,
82
81
  positionX: {
83
82
  type: Number,
84
83
  default: null,
@@ -298,13 +297,15 @@ export default baseMixins.extend<options>().extend({
298
297
 
299
298
  const onClick = listeners.click
300
299
 
301
- listeners.click = (e: MouseEvent & KeyboardEvent & FocusEvent) => {
302
- if (this.openOnClick) {
303
- onClick && onClick(e)
304
- }
300
+ if (onClick) {
301
+ listeners.click = (e: MouseEvent & KeyboardEvent & FocusEvent) => {
302
+ if (this.openOnClick) {
303
+ onClick && onClick(e)
304
+ }
305
305
 
306
- this.absoluteX = e.clientX
307
- this.absoluteY = e.clientY
306
+ this.absoluteX = e.clientX
307
+ this.absoluteY = e.clientY
308
+ }
308
309
  }
309
310
 
310
311
  return listeners
@@ -140,8 +140,8 @@ export default Vue.extend({
140
140
  },
141
141
  onRouteChange () {
142
142
  if (!this.to || !this.$refs.link || !this.$route) return
143
- const activeClass = `${this.activeClass} ${this.proxyClass || ''}`.trim()
144
- const exactActiveClass = `${this.exactActiveClass} ${this.proxyClass || ''}`.trim() || activeClass
143
+ const activeClass = `${this.activeClass || ''} ${this.proxyClass || ''}`.trim()
144
+ const exactActiveClass = `${this.exactActiveClass || ''} ${this.proxyClass || ''}`.trim() || activeClass
145
145
 
146
146
  const path = '_vnode.data.class.' + (this.exact ? exactActiveClass : activeClass)
147
147