@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.
Files changed (40) hide show
  1. package/CHANGELOG.md +6 -2
  2. package/dist/json/web-types.json +5 -5
  3. package/dist/vuetify.css +6 -24
  4. package/dist/vuetify.css.map +1 -1
  5. package/dist/vuetify.js +23 -14
  6. package/dist/vuetify.js.map +1 -1
  7. package/dist/vuetify.min.css +2 -2
  8. package/dist/vuetify.min.js +2 -2
  9. package/es5/components/VDialog/VDialog.js +13 -8
  10. package/es5/components/VDialog/VDialog.js.map +1 -1
  11. package/es5/components/VList/VListItem.js +5 -3
  12. package/es5/components/VList/VListItem.js.map +1 -1
  13. package/es5/components/VSelect/VSelect.js +6 -2
  14. package/es5/components/VSelect/VSelect.js.map +1 -1
  15. package/es5/framework.js +1 -1
  16. package/es5/mixins/dependent/index.js.map +1 -1
  17. package/es5/mixins/detachable/index.js.map +1 -1
  18. package/lib/components/VDialog/VDialog.js +13 -7
  19. package/lib/components/VDialog/VDialog.js.map +1 -1
  20. package/lib/components/VList/VListItem.js +5 -3
  21. package/lib/components/VList/VListItem.js.map +1 -1
  22. package/lib/components/VSelect/VSelect.js +6 -2
  23. package/lib/components/VSelect/VSelect.js.map +1 -1
  24. package/lib/framework.js +1 -1
  25. package/lib/mixins/dependent/index.js.map +1 -1
  26. package/lib/mixins/detachable/index.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/components/VBtn/VBtn.sass +1 -1
  29. package/src/components/VChip/VChip.sass +1 -1
  30. package/src/components/VDialog/VDialog.sass +1 -1
  31. package/src/components/VDialog/VDialog.ts +9 -6
  32. package/src/components/VDialog/__tests__/VDialog.spec.ts +5 -5
  33. package/src/components/VDialog/__tests__/__snapshots__/VDialog.spec.ts.snap +4 -16
  34. package/src/components/VExpansionPanel/VExpansionPanel.sass +2 -2
  35. package/src/components/VList/VListItem.ts +5 -3
  36. package/src/components/VList/__tests__/VListItem.spec.ts +12 -0
  37. package/src/components/VSelect/VSelect.ts +2 -2
  38. package/src/components/VSkeletonLoader/VSkeletonLoader.sass +1 -1
  39. package/src/mixins/dependent/index.ts +3 -3
  40. 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 role="dialog"
5
- aria-modal="true"
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 role="dialog"
18
- aria-modal="true"
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
 
@@ -24,8 +24,8 @@
24
24
  &.v-expansion-panels--hover
25
25
  > .v-expansion-panel
26
26
  > .v-expansion-panel-header
27
- &:hover
28
- +states($material)
27
+ &:hover::before
28
+ opacity: map-deep-get($material, 'states', 'hover')
29
29
 
30
30
  // Block
31
31
  .v-expansion-panels
@@ -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
- /* istanbul ignore else */
172
- if (e.keyCode === keyCodes.enter) this.click(e)
171
+ if (!this.disabled) {
172
+ /* istanbul ignore else */
173
+ if (e.keyCode === keyCodes.enter) this.click(e)
173
174
 
174
- this.$emit('keydown', e)
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]) || '').toString()
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) || '').toString()
653
+ const text = (this.getText(item) ?? '').toString()
654
654
 
655
655
  return text.toLowerCase().startsWith(this.keyboardLookupPrefix)
656
656
  })
@@ -209,7 +209,7 @@
209
209
  ~ .v-skeleton-loader__card-heading
210
210
  border-radius: 0
211
211
 
212
- &::first-child, &::last-child
212
+ &:first-child, &:last-child
213
213
  border-radius: inherit
214
214
 
215
215
  &__list-item
@@ -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 extends Vue {
6
+ interface options {
7
7
  $el: HTMLElement
8
8
  $refs: {
9
- content: HTMLElement
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 Vue, { PropOptions } from 'vue'
10
+ import { PropOptions } from 'vue'
11
11
  import { VNode } from 'vue/types'
12
12
 
13
- interface options extends Vue {
13
+ interface options {
14
14
  $el: HTMLElement
15
15
  $refs: {
16
- content: HTMLElement
16
+ content?: HTMLElement
17
17
  }
18
18
  }
19
19