vuetify 2.6.1 → 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.css +29 -0
- package/dist/vuetify.css.map +1 -1
- package/dist/vuetify.js +75 -47
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VBottomNavigation/VBottomNavigation.js +10 -2
- package/es5/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- 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/VSelect/VSelect.js +6 -1
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +4 -3
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VStepper/VStepperStep.js +12 -1
- package/es5/components/VStepper/VStepperStep.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/es5/services/application/index.js +1 -3
- package/es5/services/application/index.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.js +10 -2
- package/lib/components/VBottomNavigation/VBottomNavigation.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/VSelect/VSelect.js +6 -1
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +5 -4
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VStepper/VStepperStep.js +12 -1
- package/lib/components/VStepper/VStepperStep.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/lib/services/application/index.js +1 -3
- package/lib/services/application/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/VBottomNavigation/VBottomNavigation.ts +14 -2
- package/src/components/VBottomNavigation/__tests__/VBottomNavigation.spec.ts +9 -7
- 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/VSelect/VSelect.ts +4 -0
- package/src/components/VSlideGroup/VSlideGroup.ts +8 -2
- package/src/components/VStepper/VStepperStep.ts +14 -2
- package/src/components/VStepper/__tests__/__snapshots__/VStepperStep.spec.ts.snap +18 -6
- package/src/components/VTextarea/VTextarea.sass +13 -0
- 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
- package/src/services/application/index.ts +1 -1
- package/types/lib.d.ts +2 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`VStepperStep.ts should accept a custom color 1`] = `
|
|
4
|
-
<div
|
|
4
|
+
<div tabindex="-1"
|
|
5
|
+
class="v-stepper__step v-stepper__step--inactive v-stepper__step--complete"
|
|
6
|
+
>
|
|
5
7
|
<span class="v-stepper__step__step pink">
|
|
6
8
|
<i aria-hidden="true"
|
|
7
9
|
class="v-icon notranslate mdi mdi-check theme--light"
|
|
@@ -14,7 +16,9 @@ exports[`VStepperStep.ts should accept a custom color 1`] = `
|
|
|
14
16
|
`;
|
|
15
17
|
|
|
16
18
|
exports[`VStepperStep.ts should accept a custom css color 1`] = `
|
|
17
|
-
<div
|
|
19
|
+
<div tabindex="-1"
|
|
20
|
+
class="v-stepper__step v-stepper__step--inactive v-stepper__step--complete"
|
|
21
|
+
>
|
|
18
22
|
<span class="v-stepper__step__step"
|
|
19
23
|
style="background-color: rgb(170, 187, 204); border-color: #aabbcc;"
|
|
20
24
|
>
|
|
@@ -29,7 +33,9 @@ exports[`VStepperStep.ts should accept a custom css color 1`] = `
|
|
|
29
33
|
`;
|
|
30
34
|
|
|
31
35
|
exports[`VStepperStep.ts should render 1`] = `
|
|
32
|
-
<div
|
|
36
|
+
<div tabindex="-1"
|
|
37
|
+
class="v-stepper__step v-stepper__step--inactive"
|
|
38
|
+
>
|
|
33
39
|
<span class="v-stepper__step__step">
|
|
34
40
|
1
|
|
35
41
|
</span>
|
|
@@ -39,7 +45,9 @@ exports[`VStepperStep.ts should render 1`] = `
|
|
|
39
45
|
`;
|
|
40
46
|
|
|
41
47
|
exports[`VStepperStep.ts should render complete step 1`] = `
|
|
42
|
-
<div
|
|
48
|
+
<div tabindex="-1"
|
|
49
|
+
class="v-stepper__step v-stepper__step--inactive v-stepper__step--complete"
|
|
50
|
+
>
|
|
43
51
|
<span class="v-stepper__step__step primary">
|
|
44
52
|
<i aria-hidden="true"
|
|
45
53
|
class="v-icon notranslate mdi mdi-check theme--light"
|
|
@@ -52,7 +60,9 @@ exports[`VStepperStep.ts should render complete step 1`] = `
|
|
|
52
60
|
`;
|
|
53
61
|
|
|
54
62
|
exports[`VStepperStep.ts should render editable step 1`] = `
|
|
55
|
-
<div
|
|
63
|
+
<div tabindex="0"
|
|
64
|
+
class="v-stepper__step v-stepper__step--editable v-stepper__step--inactive v-stepper__step--complete"
|
|
65
|
+
>
|
|
56
66
|
<span class="v-stepper__step__step primary">
|
|
57
67
|
<i aria-hidden="true"
|
|
58
68
|
class="v-icon notranslate material-icons theme--light"
|
|
@@ -66,7 +76,9 @@ exports[`VStepperStep.ts should render editable step 1`] = `
|
|
|
66
76
|
`;
|
|
67
77
|
|
|
68
78
|
exports[`VStepperStep.ts should render step with error 1`] = `
|
|
69
|
-
<div
|
|
79
|
+
<div tabindex="-1"
|
|
80
|
+
class="v-stepper__step v-stepper__step--inactive v-stepper__step--error error--text"
|
|
81
|
+
>
|
|
70
82
|
<span class="v-stepper__step__step">
|
|
71
83
|
<i aria-hidden="true"
|
|
72
84
|
class="v-icon notranslate material-icons theme--light"
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
@import './_variables.scss'
|
|
2
2
|
|
|
3
|
+
+theme(v-textarea) using ($material)
|
|
4
|
+
&.v-text-field--solo-inverted
|
|
5
|
+
&.v-input--is-focused
|
|
6
|
+
textarea
|
|
7
|
+
color: map-deep-get($material, 'inputs', 'solo-inverted-focused-text')
|
|
8
|
+
|
|
9
|
+
textarea::placeholder
|
|
10
|
+
color: map-deep-get($material, 'inputs', 'solo-inverted-focused-placeholder')
|
|
11
|
+
|
|
3
12
|
.v-textarea
|
|
4
13
|
textarea
|
|
5
14
|
align-self: stretch
|
|
@@ -49,6 +58,10 @@
|
|
|
49
58
|
&.v-text-field--solo
|
|
50
59
|
align-items: flex-start
|
|
51
60
|
|
|
61
|
+
.v-input__control
|
|
62
|
+
textarea
|
|
63
|
+
caret-color: auto
|
|
64
|
+
|
|
52
65
|
// Essentially revert styles
|
|
53
66
|
// applied by v-text-field
|
|
54
67
|
.v-input__prepend-inner,
|
|
@@ -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
|
|
package/types/lib.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ declare module 'vuetify/lib/components' {
|
|
|
110
110
|
const VNavigationDrawer: VueConstructor
|
|
111
111
|
const VOverflowBtn: VueConstructor
|
|
112
112
|
const VOverlay: VueConstructor
|
|
113
|
+
const VOtpInput: VueConstructor
|
|
113
114
|
const VPagination: VueConstructor
|
|
114
115
|
const VSheet: VueConstructor
|
|
115
116
|
const VParallax: VueConstructor
|
|
@@ -275,6 +276,7 @@ declare module 'vuetify/lib/components' {
|
|
|
275
276
|
VNavigationDrawer,
|
|
276
277
|
VOverflowBtn,
|
|
277
278
|
VOverlay,
|
|
279
|
+
VOtpInput,
|
|
278
280
|
VPagination,
|
|
279
281
|
VSheet,
|
|
280
282
|
VParallax,
|