vuetify 2.6.4 → 2.6.7
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 +2 -2
- package/dist/json/web-types.json +7 -7
- package/dist/vuetify.css +54 -75
- package/dist/vuetify.css.map +1 -1
- package/dist/vuetify.js +165 -111
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VDatePicker/VDatePicker.js +28 -5
- package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
- package/es5/components/VDialog/VDialog.js +13 -8
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VImg/VImg.js +6 -2
- package/es5/components/VImg/VImg.js.map +1 -1
- package/es5/components/VList/VListItem.js +5 -3
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +26 -58
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverflowBtn/VOverflowBtn.js +3 -0
- package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/es5/components/VResponsive/VResponsive.js +3 -1
- package/es5/components/VResponsive/VResponsive.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +6 -2
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +43 -23
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +10 -0
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/VTreeview/VTreeview.js +1 -1
- package/es5/components/VTreeview/VTreeview.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/locale/ca.js +7 -7
- package/es5/locale/ca.js.map +1 -1
- package/es5/locale/es.js +3 -3
- package/es5/locale/es.js.map +1 -1
- package/es5/locale/fi.js +5 -5
- package/es5/locale/fi.js.map +1 -1
- package/es5/mixins/dependent/index.js.map +1 -1
- package/es5/mixins/detachable/index.js.map +1 -1
- package/es5/mixins/selectable/index.js +6 -4
- package/es5/mixins/selectable/index.js.map +1 -1
- package/es5/services/icons/presets/mdi-svg.js +5 -5
- package/es5/services/icons/presets/mdi-svg.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +7 -5
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +13 -7
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VImg/VImg.js +5 -2
- package/lib/components/VImg/VImg.js.map +1 -1
- package/lib/components/VList/VListItem.js +5 -3
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +25 -55
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.js +4 -0
- package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/lib/components/VResponsive/VResponsive.js +2 -1
- package/lib/components/VResponsive/VResponsive.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +6 -2
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +23 -7
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +10 -0
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTreeview/VTreeview.js +1 -1
- package/lib/components/VTreeview/VTreeview.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/locale/ca.js +7 -7
- package/lib/locale/ca.js.map +1 -1
- package/lib/locale/es.js +3 -3
- package/lib/locale/es.js.map +1 -1
- package/lib/locale/fi.js +5 -5
- package/lib/locale/fi.js.map +1 -1
- package/lib/mixins/dependent/index.js.map +1 -1
- package/lib/mixins/detachable/index.js.map +1 -1
- package/lib/mixins/selectable/index.js +7 -5
- package/lib/mixins/selectable/index.js.map +1 -1
- package/lib/services/icons/presets/mdi-svg.js +5 -5
- package/lib/services/icons/presets/mdi-svg.js.map +1 -1
- package/package.json +3 -2
- package/src/components/VAutocomplete/VAutocomplete.sass +0 -4
- package/src/components/VBtn/VBtn.sass +1 -1
- package/src/components/VCalendar/VCalendarCategory.sass +6 -7
- package/src/components/VChip/VChip.sass +1 -1
- package/src/components/VDatePicker/VDatePicker.ts +11 -5
- package/src/components/VDialog/VDialog.sass +1 -1
- package/src/components/VDialog/VDialog.ts +9 -6
- package/src/components/VDialog/__tests__/VDialog.spec.ts +5 -5
- package/src/components/VDialog/__tests__/__snapshots__/VDialog.spec.ts.snap +4 -16
- package/src/components/VExpansionPanel/VExpansionPanel.sass +2 -2
- package/src/components/VImg/VImg.ts +4 -2
- package/src/components/VInput/VInput.sass +2 -5
- package/src/components/VList/VListItem.ts +5 -3
- package/src/components/VList/__tests__/VListItem.spec.ts +12 -0
- package/src/components/VOtpInput/VOtpInput.ts +23 -43
- package/src/components/VOtpInput/__tests__/VOtpInput.spec.ts +3 -27
- package/src/components/VOverflowBtn/VOverflowBtn.ts +3 -0
- package/src/components/VOverflowBtn/__tests__/VOverflowBtn.spec.ts +18 -0
- package/src/components/VOverflowBtn/__tests__/__snapshots__/VOverflowBtn.spec.ts.snap +96 -0
- package/src/components/VRadioGroup/VRadio.sass +0 -4
- package/src/components/VResponsive/VResponsive.ts +2 -1
- package/src/components/VSelect/VSelect.sass +4 -2
- package/src/components/VSelect/VSelect.ts +2 -2
- package/src/components/VSkeletonLoader/VSkeletonLoader.sass +1 -1
- package/src/components/VSlideGroup/VSlideGroup.ts +20 -8
- package/src/components/VTabs/VTabs.ts +10 -0
- package/src/components/VTimeline/VTimeline.sass +16 -9
- package/src/components/VTimeline/_mixins.sass +4 -3
- package/src/components/VTreeview/VTreeview.ts +6 -1
- package/src/locale/ca.ts +7 -7
- package/src/locale/es.ts +3 -3
- package/src/locale/fi.ts +5 -5
- package/src/mixins/dependent/index.ts +3 -3
- package/src/mixins/detachable/index.ts +3 -3
- package/src/mixins/selectable/index.ts +6 -4
- package/src/services/icons/presets/mdi-svg.ts +5 -5
- package/src/styles/components/_selection-controls.sass +3 -0
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
@import './_variables.scss'
|
|
3
3
|
@import './_mixins.sass'
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* .v-timeline::before - center divider
|
|
7
|
+
* .v-card::before - arrow shadow (conflicts with active link overlay)
|
|
8
|
+
* .v-card::after - arrow
|
|
9
|
+
*/
|
|
10
|
+
|
|
5
11
|
// Theme
|
|
6
12
|
+theme(v-timeline) using ($material)
|
|
7
13
|
&::before
|
|
@@ -12,7 +18,7 @@
|
|
|
12
18
|
background: map-get($material, 'cards')
|
|
13
19
|
|
|
14
20
|
.v-card
|
|
15
|
-
|
|
21
|
+
&:not(.v-card--link)::before
|
|
16
22
|
border-right-color: $shadow-key-ambient-opacity
|
|
17
23
|
|
|
18
24
|
// Elements
|
|
@@ -20,7 +26,7 @@
|
|
|
20
26
|
padding-top: $timeline-item-padding
|
|
21
27
|
position: relative
|
|
22
28
|
|
|
23
|
-
|
|
29
|
+
&::before
|
|
24
30
|
bottom: 0
|
|
25
31
|
content: ''
|
|
26
32
|
height: 100%
|
|
@@ -85,7 +91,8 @@
|
|
|
85
91
|
// Wedge
|
|
86
92
|
.v-timeline-item__body
|
|
87
93
|
> .v-card:not(.v-card--flat)
|
|
88
|
-
&:before,
|
|
94
|
+
&:not(.v-card--link)::before,
|
|
95
|
+
&::after
|
|
89
96
|
content: ''
|
|
90
97
|
position: absolute
|
|
91
98
|
border-top: $timeline-wedge-size solid transparent
|
|
@@ -93,10 +100,10 @@
|
|
|
93
100
|
border-right: $timeline-wedge-size solid black
|
|
94
101
|
top: calc(50% - #{$timeline-wedge-size})
|
|
95
102
|
|
|
96
|
-
|
|
103
|
+
&::after
|
|
97
104
|
border-right-color: inherit
|
|
98
105
|
|
|
99
|
-
&:before
|
|
106
|
+
&:not(.v-card--link)::before
|
|
100
107
|
top: calc(50% - #{$timeline-wedge-size} + 2px)
|
|
101
108
|
|
|
102
109
|
// Modifiers
|
|
@@ -106,12 +113,12 @@
|
|
|
106
113
|
|
|
107
114
|
.v-timeline-item__body
|
|
108
115
|
> .v-card
|
|
109
|
-
|
|
110
|
-
top: calc(0% + #{$timeline-wedge-size} + 2px)
|
|
111
|
-
|
|
112
|
-
&:after
|
|
116
|
+
&::after
|
|
113
117
|
top: calc(0% + #{$timeline-wedge-size})
|
|
114
118
|
|
|
119
|
+
&:not(.v-card--link)::before
|
|
120
|
+
top: calc(0% + #{$timeline-wedge-size} + 2px)
|
|
121
|
+
|
|
115
122
|
.v-timeline:not(.v-timeline--dense):not(.v-timeline--reverse)
|
|
116
123
|
+timeline-line-align($timeline-divider-center, left, right)
|
|
117
124
|
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
width: $inner-dot-size
|
|
10
10
|
|
|
11
11
|
@mixin timeline-wedge-align($direction)
|
|
12
|
-
.v-timeline-item__body
|
|
13
|
-
|
|
12
|
+
.v-timeline-item__body > .v-card
|
|
13
|
+
&:not(.v-card--link)::before,
|
|
14
|
+
&::after
|
|
14
15
|
+ltr()
|
|
15
16
|
transform: rotate(if($direction == right, 180deg, 0))
|
|
16
17
|
#{$direction}: -($timeline-wedge-size)
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
text-align: if($direction == left, left, right)
|
|
33
34
|
|
|
34
35
|
@mixin timeline-line-align($center, $first, $second)
|
|
35
|
-
|
|
36
|
+
&::before
|
|
36
37
|
+ltr()
|
|
37
38
|
#{$first}: calc(#{$center} - #{$timeline-line-width / 2})
|
|
38
39
|
#{$second}: initial
|
|
@@ -217,7 +217,12 @@ export default mixins(
|
|
|
217
217
|
this.buildTree(children, key)
|
|
218
218
|
|
|
219
219
|
// This fixed bug with dynamic children resetting selected parent state
|
|
220
|
-
if (
|
|
220
|
+
if (
|
|
221
|
+
this.selectionType !== 'independent' &&
|
|
222
|
+
parent !== null &&
|
|
223
|
+
!this.nodes.hasOwnProperty(key) &&
|
|
224
|
+
this.nodes.hasOwnProperty(parent)
|
|
225
|
+
) {
|
|
221
226
|
node.isSelected = this.nodes[parent].isSelected
|
|
222
227
|
} else {
|
|
223
228
|
node.isSelected = oldNode.isSelected
|
package/src/locale/ca.ts
CHANGED
|
@@ -8,12 +8,12 @@ export default {
|
|
|
8
8
|
dataTable: {
|
|
9
9
|
itemsPerPageText: 'Files per pàgina:',
|
|
10
10
|
ariaLabel: {
|
|
11
|
-
sortDescending: 'Ordre descendent.
|
|
12
|
-
sortAscending: 'Ordre ascendent.
|
|
13
|
-
sortNone: 'Sense ordenar.
|
|
14
|
-
activateNone: '
|
|
15
|
-
activateDescending: '
|
|
16
|
-
activateAscending: '
|
|
11
|
+
sortDescending: 'Ordre descendent.',
|
|
12
|
+
sortAscending: 'Ordre ascendent.',
|
|
13
|
+
sortNone: 'Sense ordenar.',
|
|
14
|
+
activateNone: 'Premi per treure la ordenació.',
|
|
15
|
+
activateDescending: 'Premi per ordenar descendent.',
|
|
16
|
+
activateAscending: 'Premi per ordenar ascendent.',
|
|
17
17
|
},
|
|
18
18
|
sortBy: 'Ordenat per',
|
|
19
19
|
},
|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
63
63
|
},
|
|
64
64
|
rating: {
|
|
65
65
|
ariaLabel: {
|
|
66
|
-
icon: '
|
|
66
|
+
icon: 'Puntuació {0} de {1}',
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
}
|
package/src/locale/es.ts
CHANGED
|
@@ -12,8 +12,8 @@ export default {
|
|
|
12
12
|
sortAscending: 'Orden ascendente.',
|
|
13
13
|
sortNone: 'Sin ordenar.',
|
|
14
14
|
activateNone: 'Pulse para quitar orden.',
|
|
15
|
-
activateDescending: 'Pulse para ordenar descendente.',
|
|
16
|
-
activateAscending: 'Pulse para ordenar ascendente.',
|
|
15
|
+
activateDescending: 'Pulse para ordenar de forma descendente.',
|
|
16
|
+
activateAscending: 'Pulse para ordenar de forma ascendente.',
|
|
17
17
|
},
|
|
18
18
|
sortBy: 'Ordenado por',
|
|
19
19
|
},
|
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
itemsPerPageAll: 'Todos',
|
|
23
23
|
nextPage: 'Página siguiente',
|
|
24
24
|
prevPage: 'Página anterior',
|
|
25
|
-
firstPage: '
|
|
25
|
+
firstPage: 'Primera página',
|
|
26
26
|
lastPage: 'Última página',
|
|
27
27
|
pageText: '{0}-{1} de {2}',
|
|
28
28
|
},
|
package/src/locale/fi.ts
CHANGED
|
@@ -55,15 +55,15 @@ export default {
|
|
|
55
55
|
pagination: {
|
|
56
56
|
ariaLabel: {
|
|
57
57
|
wrapper: 'Pagination Navigation',
|
|
58
|
-
next: '
|
|
59
|
-
previous: '
|
|
60
|
-
page: '
|
|
61
|
-
currentPage: '
|
|
58
|
+
next: 'Seuraava sivu',
|
|
59
|
+
previous: 'Edellinen sivu',
|
|
60
|
+
page: 'Mene sivulle {0}',
|
|
61
|
+
currentPage: 'Nykyinen sivu, Sivu {0}',
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
64
|
rating: {
|
|
65
65
|
ariaLabel: {
|
|
66
|
-
icon: '
|
|
66
|
+
icon: 'Luokitus {0}/{1}',
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
}
|
|
@@ -3,10 +3,10 @@ import Vue from 'vue'
|
|
|
3
3
|
import mixins from '../../util/mixins'
|
|
4
4
|
import { VOverlay } from '../../components/VOverlay'
|
|
5
5
|
|
|
6
|
-
interface options
|
|
6
|
+
interface options {
|
|
7
7
|
$el: HTMLElement
|
|
8
8
|
$refs: {
|
|
9
|
-
content
|
|
9
|
+
content?: HTMLElement
|
|
10
10
|
}
|
|
11
11
|
overlay?: InstanceType<typeof VOverlay>
|
|
12
12
|
}
|
|
@@ -31,7 +31,7 @@ function searchChildren (children: Vue[]): DependentInstance[] {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/* @vue/component */
|
|
34
|
-
export default mixins<options>().extend({
|
|
34
|
+
export default mixins<Vue & options>().extend({
|
|
35
35
|
name: 'dependent',
|
|
36
36
|
|
|
37
37
|
data () {
|
|
@@ -7,13 +7,13 @@ import mixins, { ExtractVue } from '../../util/mixins'
|
|
|
7
7
|
import { consoleWarn } from '../../util/console'
|
|
8
8
|
|
|
9
9
|
// Types
|
|
10
|
-
import
|
|
10
|
+
import { PropOptions } from 'vue'
|
|
11
11
|
import { VNode } from 'vue/types'
|
|
12
12
|
|
|
13
|
-
interface options
|
|
13
|
+
interface options {
|
|
14
14
|
$el: HTMLElement
|
|
15
15
|
$refs: {
|
|
16
|
-
content
|
|
16
|
+
content?: HTMLElement
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -125,9 +125,6 @@ export default mixins(
|
|
|
125
125
|
ref: 'input',
|
|
126
126
|
})
|
|
127
127
|
},
|
|
128
|
-
onBlur () {
|
|
129
|
-
this.isFocused = false
|
|
130
|
-
},
|
|
131
128
|
onClick (e: Event) {
|
|
132
129
|
this.onChange()
|
|
133
130
|
this.$emit('click', e)
|
|
@@ -162,8 +159,13 @@ export default mixins(
|
|
|
162
159
|
this.internalValue = input
|
|
163
160
|
this.hasColor = input
|
|
164
161
|
},
|
|
165
|
-
onFocus () {
|
|
162
|
+
onFocus (e: FocusEvent) {
|
|
166
163
|
this.isFocused = true
|
|
164
|
+
this.$emit('focus', e)
|
|
165
|
+
},
|
|
166
|
+
onBlur (e: FocusEvent) {
|
|
167
|
+
this.isFocused = false
|
|
168
|
+
this.$emit('blur', e)
|
|
167
169
|
},
|
|
168
170
|
/** @abstract */
|
|
169
171
|
onKeydown (e: Event) {},
|
|
@@ -5,11 +5,11 @@ const icons: VuetifyIcons = {
|
|
|
5
5
|
cancel: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
|
|
6
6
|
close: 'M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z',
|
|
7
7
|
delete: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z', // delete (e.g. v-chip close)
|
|
8
|
-
clear: '
|
|
9
|
-
success: 'M12
|
|
10
|
-
info: 'M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z',
|
|
11
|
-
warning: '
|
|
12
|
-
error: '
|
|
8
|
+
clear: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
|
|
9
|
+
success: 'M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z',
|
|
10
|
+
info: 'M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z',
|
|
11
|
+
warning: 'M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z',
|
|
12
|
+
error: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
|
|
13
13
|
prev: 'M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z',
|
|
14
14
|
next: 'M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z',
|
|
15
15
|
checkboxOn: 'M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z',
|