@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.
- package/dist/json/attributes.json +8 -0
- package/dist/json/tags.json +2 -0
- package/dist/json/web-types.json +29 -7
- package/dist/vuetify.js +44 -37
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +1 -1
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VCombobox/VCombobox.js +1 -1
- package/es5/components/VCombobox/VCombobox.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +0 -4
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js +7 -11
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +2 -0
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +2 -0
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VTooltip/VTooltip.js +14 -8
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/mixins/activatable/index.js +6 -2
- package/es5/mixins/activatable/index.js.map +1 -1
- package/es5/mixins/menuable/index.js +9 -8
- package/es5/mixins/menuable/index.js.map +1 -1
- package/es5/mixins/routable/index.js +2 -2
- package/es5/mixins/routable/index.js.map +1 -1
- package/lib/components/VCombobox/VCombobox.js +1 -1
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +0 -4
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js +3 -7
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +2 -0
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +3 -1
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.js +14 -8
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/mixins/activatable/index.js +6 -2
- package/lib/mixins/activatable/index.js.map +1 -1
- package/lib/mixins/menuable/index.js +9 -8
- package/lib/mixins/menuable/index.js.map +1 -1
- package/lib/mixins/routable/index.js +2 -2
- package/lib/mixins/routable/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VCombobox/VCombobox.ts +1 -1
- package/src/components/VCombobox/__tests__/VCombobox.spec.ts +2 -2
- package/src/components/VMenu/VMenu.ts +0 -4
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +3 -6
- package/src/components/VOtpInput/VOtpInput.ts +2 -0
- package/src/components/VSlideGroup/VSlideGroup.ts +5 -1
- package/src/components/VTooltip/VTooltip.ts +14 -7
- package/src/mixins/activatable/__tests__/__snapshots__/activatable.spec.ts.snap +1 -2
- package/src/mixins/activatable/index.ts +6 -2
- package/src/mixins/menuable/index.ts +8 -7
- 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
|
-
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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)
|
|
@@ -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
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
300
|
+
if (onClick) {
|
|
301
|
+
listeners.click = (e: MouseEvent & KeyboardEvent & FocusEvent) => {
|
|
302
|
+
if (this.openOnClick) {
|
|
303
|
+
onClick && onClick(e)
|
|
304
|
+
}
|
|
305
305
|
|
|
306
|
-
|
|
307
|
-
|
|
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
|
|