@vuetify/nightly 2.6.7-master-20220619.0 → 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/CHANGELOG.md +6 -2
- package/dist/json/web-types.json +5 -5
- package/dist/vuetify.css +6 -24
- package/dist/vuetify.css.map +1 -1
- package/dist/vuetify.js +23 -14
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VDialog/VDialog.js +13 -8
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VList/VListItem.js +5 -3
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +6 -2
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/mixins/dependent/index.js.map +1 -1
- package/es5/mixins/detachable/index.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +13 -7
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VList/VListItem.js +5 -3
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +6 -2
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/mixins/dependent/index.js.map +1 -1
- package/lib/mixins/detachable/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VBtn/VBtn.sass +1 -1
- package/src/components/VChip/VChip.sass +1 -1
- 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/VList/VListItem.ts +5 -3
- package/src/components/VList/__tests__/VListItem.spec.ts +12 -0
- package/src/components/VSelect/VSelect.ts +2 -2
- package/src/components/VSkeletonLoader/VSkeletonLoader.sass +1 -1
- package/src/mixins/dependent/index.ts +3 -3
- package/src/mixins/detachable/index.ts +3 -3
|
@@ -1,29 +1,17 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`VDialog.ts should only set tabindex if active 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
|
|
6
|
-
class="v-dialog__content"
|
|
7
|
-
style="z-index: 0;"
|
|
4
|
+
<div class="v-dialog"
|
|
5
|
+
style="transform-origin: center center; display: none;"
|
|
8
6
|
>
|
|
9
|
-
<div class="v-dialog"
|
|
10
|
-
style="transform-origin: center center; display: none;"
|
|
11
|
-
>
|
|
12
|
-
</div>
|
|
13
7
|
</div>
|
|
14
8
|
`;
|
|
15
9
|
|
|
16
10
|
exports[`VDialog.ts should only set tabindex if active 2`] = `
|
|
17
|
-
<div
|
|
18
|
-
|
|
19
|
-
class="v-dialog__content v-dialog__content--active"
|
|
20
|
-
style="z-index: 202; z-index: 202;"
|
|
11
|
+
<div class="v-dialog v-dialog--active"
|
|
12
|
+
style="transform-origin: center center;"
|
|
21
13
|
tabindex="0"
|
|
22
14
|
>
|
|
23
|
-
<div class="v-dialog v-dialog--active"
|
|
24
|
-
style="transform-origin: center center;"
|
|
25
|
-
>
|
|
26
|
-
</div>
|
|
27
15
|
</div>
|
|
28
16
|
`;
|
|
29
17
|
|
|
@@ -168,10 +168,12 @@ export default baseMixins.extend<options>().extend({
|
|
|
168
168
|
data[this.to ? 'nativeOn' : 'on'] = {
|
|
169
169
|
...data[this.to ? 'nativeOn' : 'on'],
|
|
170
170
|
keydown: (e: KeyboardEvent) => {
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
if (!this.disabled) {
|
|
172
|
+
/* istanbul ignore else */
|
|
173
|
+
if (e.keyCode === keyCodes.enter) this.click(e)
|
|
173
174
|
|
|
174
|
-
|
|
175
|
+
this.$emit('keydown', e)
|
|
176
|
+
}
|
|
175
177
|
},
|
|
176
178
|
}
|
|
177
179
|
|
|
@@ -234,4 +234,16 @@ describe('VListItem.ts', () => {
|
|
|
234
234
|
wrapper2.vm.toggle()
|
|
235
235
|
expect(wrapper2.vm.isActive).toBeTruthy()
|
|
236
236
|
})
|
|
237
|
+
|
|
238
|
+
it('should not react to keydown.enter when disabled', () => {
|
|
239
|
+
const click = jest.fn()
|
|
240
|
+
const wrapper = mountFunction({
|
|
241
|
+
methods: { click },
|
|
242
|
+
propsData: { disabled: true },
|
|
243
|
+
})
|
|
244
|
+
|
|
245
|
+
wrapper.trigger('keydown.enter')
|
|
246
|
+
|
|
247
|
+
expect(click).not.toHaveBeenCalled()
|
|
248
|
+
})
|
|
237
249
|
})
|
|
@@ -157,7 +157,7 @@ export default baseMixins.extend<options>().extend({
|
|
|
157
157
|
computedCounterValue (): number {
|
|
158
158
|
const value = this.multiple
|
|
159
159
|
? this.selectedItems
|
|
160
|
-
: (this.getText(this.selectedItems[0])
|
|
160
|
+
: (this.getText(this.selectedItems[0]) ?? '').toString()
|
|
161
161
|
|
|
162
162
|
if (typeof this.counterValue === 'function') {
|
|
163
163
|
return this.counterValue(value)
|
|
@@ -650,7 +650,7 @@ export default baseMixins.extend<options>().extend({
|
|
|
650
650
|
this.keyboardLookupLastTime = now
|
|
651
651
|
|
|
652
652
|
const index = this.allItems.findIndex(item => {
|
|
653
|
-
const text = (this.getText(item)
|
|
653
|
+
const text = (this.getText(item) ?? '').toString()
|
|
654
654
|
|
|
655
655
|
return text.toLowerCase().startsWith(this.keyboardLookupPrefix)
|
|
656
656
|
})
|
|
@@ -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
|
|