@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
package/dist/vuetify.js CHANGED
@@ -14969,10 +14969,11 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
14969
14969
 
14970
14970
  this.$nextTick(function () {
14971
14971
  _this.$nextTick(function () {
14972
- if (!_this.$refs.content.contains(document.activeElement)) {
14973
- _this.previousActiveElement = document.activeElement;
14972
+ var _a, _b;
14974
14973
 
14975
- _this.$refs.content.focus();
14974
+ if (!((_a = _this.$refs.dialog) === null || _a === void 0 ? void 0 : _a.contains(document.activeElement))) {
14975
+ _this.previousActiveElement = document.activeElement;
14976
+ (_b = _this.$refs.dialog) === null || _b === void 0 ? void 0 : _b.focus();
14976
14977
  }
14977
14978
 
14978
14979
  _this.bind();
@@ -15015,16 +15016,16 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
15015
15016
  if (!e || !this.retainFocus) return;
15016
15017
  var target = e.target;
15017
15018
 
15018
- if (!!target && // It isn't the document or the dialog body
15019
- ![document, this.$refs.content].includes(target) && // It isn't inside the dialog body
15020
- !this.$refs.content.contains(target) && // We're the topmost dialog
15019
+ if (!!target && this.$refs.dialog && // It isn't the document or the dialog body
15020
+ ![document, this.$refs.dialog].includes(target) && // It isn't inside the dialog body
15021
+ !this.$refs.dialog.contains(target) && // We're the topmost dialog
15021
15022
  this.activeZIndex >= this.getMaxZIndex() && // It isn't inside a dependent element (like a menu)
15022
15023
  !this.getOpenDependentElements().some(function (el) {
15023
15024
  return el.contains(target);
15024
15025
  }) // So we must have focused something outside the dialog and its children
15025
15026
  ) {
15026
15027
  // Find and focus the first available element inside the dialog
15027
- var focusable = this.$refs.content.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
15028
+ var focusable = this.$refs.dialog.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
15028
15029
 
15029
15030
  var el = __spread(focusable).find(function (el) {
15030
15031
  return !el.hasAttribute('disabled');
@@ -15047,7 +15048,6 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
15047
15048
  class: _this.contentClasses,
15048
15049
  attrs: __assign({
15049
15050
  role: 'dialog',
15050
- tabindex: _this.isActive ? 0 : undefined,
15051
15051
  'aria-modal': _this.hideOverlay ? undefined : 'true'
15052
15052
  }, _this.getScopeIdAttrs()),
15053
15053
  on: {
@@ -15074,6 +15074,9 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
15074
15074
  genInnerContent: function genInnerContent() {
15075
15075
  var data = {
15076
15076
  class: this.classes,
15077
+ attrs: {
15078
+ tabindex: this.isActive ? 0 : undefined
15079
+ },
15077
15080
  ref: 'dialog',
15078
15081
  directives: [{
15079
15082
  name: 'click-outside',
@@ -19261,10 +19264,12 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
19261
19264
  data.attrs = __assign(__assign({}, data.attrs), this.genAttrs());
19262
19265
  data[this.to ? 'nativeOn' : 'on'] = __assign(__assign({}, data[this.to ? 'nativeOn' : 'on']), {
19263
19266
  keydown: function keydown(e) {
19264
- /* istanbul ignore else */
19265
- if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_7__["keyCodes"].enter) _this.click(e);
19267
+ if (!_this.disabled) {
19268
+ /* istanbul ignore else */
19269
+ if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_7__["keyCodes"].enter) _this.click(e);
19266
19270
 
19267
- _this.$emit('keydown', e);
19271
+ _this.$emit('keydown', e);
19272
+ }
19268
19273
  }
19269
19274
  });
19270
19275
  if (this.inactive) tag = 'div';
@@ -23817,7 +23822,9 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_14__["default"])(_
23817
23822
  return "list-" + this._uid;
23818
23823
  },
23819
23824
  computedCounterValue: function computedCounterValue() {
23820
- var value = this.multiple ? this.selectedItems : (this.getText(this.selectedItems[0]) || '').toString();
23825
+ var _a;
23826
+
23827
+ var value = this.multiple ? this.selectedItems : ((_a = this.getText(this.selectedItems[0])) !== null && _a !== void 0 ? _a : '').toString();
23821
23828
 
23822
23829
  if (typeof this.counterValue === 'function') {
23823
23830
  return this.counterValue(value);
@@ -24289,7 +24296,9 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_14__["default"])(_
24289
24296
  this.keyboardLookupPrefix += e.key.toLowerCase();
24290
24297
  this.keyboardLookupLastTime = now;
24291
24298
  var index = this.allItems.findIndex(function (item) {
24292
- var text = (_this.getText(item) || '').toString();
24299
+ var _a;
24300
+
24301
+ var text = ((_a = _this.getText(item)) !== null && _a !== void 0 ? _a : '').toString();
24293
24302
  return text.toLowerCase().startsWith(_this.keyboardLookupPrefix);
24294
24303
  });
24295
24304
  var item = this.allItems[index];
@@ -35044,7 +35053,7 @@ function () {
35044
35053
 
35045
35054
  Vuetify.install = _install__WEBPACK_IMPORTED_MODULE_0__["install"];
35046
35055
  Vuetify.installed = false;
35047
- Vuetify.version = "2.6.7-master-20220619.0";
35056
+ Vuetify.version = "2.6.7";
35048
35057
  Vuetify.config = {
35049
35058
  silent: false
35050
35059
  };