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.
Files changed (83) hide show
  1. package/dist/json/attributes.json +8 -0
  2. package/dist/json/tags.json +2 -0
  3. package/dist/json/web-types.json +29 -7
  4. package/dist/vuetify.css +29 -0
  5. package/dist/vuetify.css.map +1 -1
  6. package/dist/vuetify.js +75 -47
  7. package/dist/vuetify.js.map +1 -1
  8. package/dist/vuetify.min.css +2 -2
  9. package/dist/vuetify.min.js +2 -2
  10. package/es5/components/VBottomNavigation/VBottomNavigation.js +10 -2
  11. package/es5/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
  12. package/es5/components/VCombobox/VCombobox.js +1 -1
  13. package/es5/components/VCombobox/VCombobox.js.map +1 -1
  14. package/es5/components/VMenu/VMenu.js +0 -4
  15. package/es5/components/VMenu/VMenu.js.map +1 -1
  16. package/es5/components/VNavigationDrawer/VNavigationDrawer.js +7 -11
  17. package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  18. package/es5/components/VOtpInput/VOtpInput.js +2 -0
  19. package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
  20. package/es5/components/VSelect/VSelect.js +6 -1
  21. package/es5/components/VSelect/VSelect.js.map +1 -1
  22. package/es5/components/VSlideGroup/VSlideGroup.js +4 -3
  23. package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
  24. package/es5/components/VStepper/VStepperStep.js +12 -1
  25. package/es5/components/VStepper/VStepperStep.js.map +1 -1
  26. package/es5/components/VTooltip/VTooltip.js +14 -8
  27. package/es5/components/VTooltip/VTooltip.js.map +1 -1
  28. package/es5/framework.js +1 -1
  29. package/es5/mixins/activatable/index.js +6 -2
  30. package/es5/mixins/activatable/index.js.map +1 -1
  31. package/es5/mixins/menuable/index.js +9 -8
  32. package/es5/mixins/menuable/index.js.map +1 -1
  33. package/es5/mixins/routable/index.js +2 -2
  34. package/es5/mixins/routable/index.js.map +1 -1
  35. package/es5/services/application/index.js +1 -3
  36. package/es5/services/application/index.js.map +1 -1
  37. package/lib/components/VBottomNavigation/VBottomNavigation.js +10 -2
  38. package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
  39. package/lib/components/VCombobox/VCombobox.js +1 -1
  40. package/lib/components/VCombobox/VCombobox.js.map +1 -1
  41. package/lib/components/VMenu/VMenu.js +0 -4
  42. package/lib/components/VMenu/VMenu.js.map +1 -1
  43. package/lib/components/VNavigationDrawer/VNavigationDrawer.js +3 -7
  44. package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  45. package/lib/components/VOtpInput/VOtpInput.js +2 -0
  46. package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
  47. package/lib/components/VSelect/VSelect.js +6 -1
  48. package/lib/components/VSelect/VSelect.js.map +1 -1
  49. package/lib/components/VSlideGroup/VSlideGroup.js +5 -4
  50. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  51. package/lib/components/VStepper/VStepperStep.js +12 -1
  52. package/lib/components/VStepper/VStepperStep.js.map +1 -1
  53. package/lib/components/VTooltip/VTooltip.js +14 -8
  54. package/lib/components/VTooltip/VTooltip.js.map +1 -1
  55. package/lib/framework.js +1 -1
  56. package/lib/mixins/activatable/index.js +6 -2
  57. package/lib/mixins/activatable/index.js.map +1 -1
  58. package/lib/mixins/menuable/index.js +9 -8
  59. package/lib/mixins/menuable/index.js.map +1 -1
  60. package/lib/mixins/routable/index.js +2 -2
  61. package/lib/mixins/routable/index.js.map +1 -1
  62. package/lib/services/application/index.js +1 -3
  63. package/lib/services/application/index.js.map +1 -1
  64. package/package.json +2 -2
  65. package/src/components/VBottomNavigation/VBottomNavigation.ts +14 -2
  66. package/src/components/VBottomNavigation/__tests__/VBottomNavigation.spec.ts +9 -7
  67. package/src/components/VCombobox/VCombobox.ts +1 -1
  68. package/src/components/VCombobox/__tests__/VCombobox.spec.ts +2 -2
  69. package/src/components/VMenu/VMenu.ts +0 -4
  70. package/src/components/VNavigationDrawer/VNavigationDrawer.ts +3 -6
  71. package/src/components/VOtpInput/VOtpInput.ts +2 -0
  72. package/src/components/VSelect/VSelect.ts +4 -0
  73. package/src/components/VSlideGroup/VSlideGroup.ts +8 -2
  74. package/src/components/VStepper/VStepperStep.ts +14 -2
  75. package/src/components/VStepper/__tests__/__snapshots__/VStepperStep.spec.ts.snap +18 -6
  76. package/src/components/VTextarea/VTextarea.sass +13 -0
  77. package/src/components/VTooltip/VTooltip.ts +14 -7
  78. package/src/mixins/activatable/__tests__/__snapshots__/activatable.spec.ts.snap +1 -2
  79. package/src/mixins/activatable/index.ts +6 -2
  80. package/src/mixins/menuable/index.ts +8 -7
  81. package/src/mixins/routable/index.ts +2 -2
  82. package/src/services/application/index.ts +1 -1
  83. package/types/lib.d.ts +2 -0
package/dist/vuetify.js CHANGED
@@ -2019,6 +2019,9 @@ var __assign = undefined && undefined.__assign || function () {
2019
2019
  });
2020
2020
  }
2021
2021
  },
2022
+ watch: {
2023
+ canScroll: 'onScroll'
2024
+ },
2022
2025
  created: function created() {
2023
2026
  /* istanbul ignore next */
2024
2027
  if (this.$attrs.hasOwnProperty('active')) {
@@ -2027,8 +2030,13 @@ var __assign = undefined && undefined.__assign || function () {
2027
2030
  },
2028
2031
  methods: {
2029
2032
  thresholdMet: function thresholdMet() {
2030
- this.isActive = !this.isScrollingUp;
2031
- this.$emit('update:input-value', this.isActive);
2033
+ if (this.hideOnScroll) {
2034
+ this.isActive = !this.isScrollingUp || this.currentScroll > this.computedScrollThreshold;
2035
+ this.$emit('update:input-value', this.isActive);
2036
+ }
2037
+
2038
+ if (this.currentThreshold < this.computedScrollThreshold) return;
2039
+ this.savedScroll = this.currentScroll;
2032
2040
  },
2033
2041
  updateApplication: function updateApplication() {
2034
2042
  return this.$el ? this.$el.clientHeight : 0;
@@ -9280,7 +9288,7 @@ var __assign = undefined && undefined.__assign || function () {
9280
9288
  }
9281
9289
  },
9282
9290
  setValue: function setValue(value) {
9283
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.setValue.call(this, value !== null && value !== void 0 ? value : this.internalSearch);
9291
+ _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.setValue.call(this, value === undefined ? this.internalSearch : value);
9284
9292
  },
9285
9293
  updateEditing: function updateEditing() {
9286
9294
  var _this = this;
@@ -19739,10 +19747,6 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_12__["default"])(_
19739
19747
  },
19740
19748
  offsetX: Boolean,
19741
19749
  offsetY: Boolean,
19742
- openOnClick: {
19743
- type: Boolean,
19744
- default: true
19745
- },
19746
19750
  openOnHover: Boolean,
19747
19751
  origin: {
19748
19752
  type: String,
@@ -20583,6 +20587,12 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_13__["default"])(O
20583
20587
  var _this = this;
20584
20588
 
20585
20589
  var on = {
20590
+ mouseenter: function mouseenter() {
20591
+ return _this.isMouseover = true;
20592
+ },
20593
+ mouseleave: function mouseleave() {
20594
+ return _this.isMouseover = false;
20595
+ },
20586
20596
  transitionend: function transitionend(e) {
20587
20597
  if (e.target !== e.currentTarget) return;
20588
20598
 
@@ -20601,16 +20611,6 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_13__["default"])(O
20601
20611
  };
20602
20612
  }
20603
20613
 
20604
- if (this.expandOnHover) {
20605
- on.mouseenter = function () {
20606
- return _this.isMouseover = true;
20607
- };
20608
-
20609
- on.mouseleave = function () {
20610
- return _this.isMouseover = false;
20611
- };
20612
- }
20613
-
20614
20614
  return on;
20615
20615
  },
20616
20616
  genPosition: function genPosition(name) {
@@ -20665,7 +20665,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_13__["default"])(O
20665
20665
  */
20666
20666
  updateApplication: function updateApplication() {
20667
20667
  if (!this.isActive || this.isMobile || this.temporary || !this.$el) return 0;
20668
- var width = Number(this.computedWidth);
20668
+ var width = Number(this.miniVariant ? this.miniVariantWidth : this.width);
20669
20669
  return isNaN(width) ? this.$el.clientWidth : width;
20670
20670
  },
20671
20671
  updateMiniVariant: function updateMiniVariant(val) {
@@ -20843,6 +20843,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
20843
20843
  isFocused: 'updateValue',
20844
20844
  value: function value(val) {
20845
20845
  this.lazyValue = val;
20846
+ this.otp = (val === null || val === void 0 ? void 0 : val.split('')) || [];
20846
20847
  }
20847
20848
  },
20848
20849
  created: function created() {
@@ -21064,6 +21065,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
21064
21065
  }
21065
21066
 
21066
21067
  this.otp = newOtp;
21068
+ this.internalValue = this.otp.join('');
21067
21069
  var targetFocus = Math.min(index + inputDataArray.length, maxCursor);
21068
21070
  this.changeFocus(targetFocus);
21069
21071
 
@@ -23971,7 +23973,12 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_14__["default"])(_
23971
23973
  var uniqueValues = new Map();
23972
23974
 
23973
23975
  for (var index = 0; index < arr.length; ++index) {
23974
- var item = arr[index]; // Do not deduplicate headers or dividers (#12517)
23976
+ var item = arr[index]; // Do not return null values if existant (#14421)
23977
+
23978
+ if (item == null) {
23979
+ continue;
23980
+ } // Do not deduplicate headers or dividers (#12517)
23981
+
23975
23982
 
23976
23983
  if (item.header || item.divider) {
23977
23984
  uniqueValues.set(item, item);
@@ -25430,7 +25437,9 @@ var BaseSlideGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"]
25430
25437
  // and need to be recalculated
25431
25438
  isOverflowing: 'setWidths',
25432
25439
  scrollOffset: function scrollOffset(val) {
25440
+ if (this.$vuetify.rtl) val = -val;
25433
25441
  var scroll = val <= 0 ? bias(-val) : val > this.widths.content - this.widths.wrapper ? -(this.widths.content - this.widths.wrapper) + bias(this.widths.content - this.widths.wrapper - val) : -val;
25442
+ if (this.$vuetify.rtl) scroll = -scroll;
25434
25443
  this.$refs.content.style.transform = "translateX(" + scroll + "px)";
25435
25444
  }
25436
25445
  },
@@ -25694,12 +25703,11 @@ var BaseSlideGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"]
25694
25703
  wrapper: this.$refs.wrapper ? this.$refs.wrapper.clientWidth : 0
25695
25704
  }, this.$vuetify.rtl, this.scrollOffset);
25696
25705
  },
25697
- setWidths
25698
- /* istanbul ignore next */
25699
- : function setWidths() {
25706
+ setWidths: function setWidths() {
25700
25707
  var _this = this;
25701
25708
 
25702
25709
  window.requestAnimationFrame(function () {
25710
+ if (_this._isDestroyed) return;
25703
25711
  var _a = _this.$refs,
25704
25712
  content = _a.content,
25705
25713
  wrapper = _a.wrapper;
@@ -27655,6 +27663,7 @@ __webpack_require__.r(__webpack_exports__);
27655
27663
  /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable/index.ts");
27656
27664
  /* harmony import */ var _directives_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../directives/ripple */ "./src/directives/ripple/index.ts");
27657
27665
  /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
27666
+ /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
27658
27667
  // Components
27659
27668
  // Mixins
27660
27669
 
@@ -27664,6 +27673,7 @@ __webpack_require__.r(__webpack_exports__);
27664
27673
  // Utilities
27665
27674
 
27666
27675
 
27676
+
27667
27677
  var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_2__["inject"])('stepper', 'v-stepper-step', 'v-stepper'));
27668
27678
  /* @vue/component */
27669
27679
 
@@ -27768,6 +27778,11 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_m
27768
27778
 
27769
27779
  return children;
27770
27780
  },
27781
+ keyboardClick: function keyboardClick(e) {
27782
+ if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_5__["keyCodes"].space) {
27783
+ this.click(e);
27784
+ }
27785
+ },
27771
27786
  toggle: function toggle(step) {
27772
27787
  this.isActive = step.toString() === this.step.toString();
27773
27788
  this.isInactive = Number(step) < Number(this.step);
@@ -27775,6 +27790,9 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_m
27775
27790
  },
27776
27791
  render: function render(h) {
27777
27792
  return h('div', {
27793
+ attrs: {
27794
+ tabindex: this.editable ? 0 : -1
27795
+ },
27778
27796
  staticClass: 'v-stepper__step',
27779
27797
  class: this.classes,
27780
27798
  directives: [{
@@ -27782,7 +27800,8 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_m
27782
27800
  value: this.editable
27783
27801
  }],
27784
27802
  on: {
27785
- click: this.click
27803
+ click: this.click,
27804
+ keydown: this.keyboardClick
27786
27805
  }
27787
27806
  }, [this.genStep(), this.genLabel()]);
27788
27807
  }
@@ -31193,6 +31212,10 @@ __webpack_require__.r(__webpack_exports__);
31193
31212
  type: Boolean,
31194
31213
  default: true
31195
31214
  },
31215
+ openOnFocus: {
31216
+ type: Boolean,
31217
+ default: true
31218
+ },
31196
31219
  tag: {
31197
31220
  type: String,
31198
31221
  default: 'span'
@@ -31299,17 +31322,19 @@ __webpack_require__.r(__webpack_exports__);
31299
31322
 
31300
31323
  var listeners = _mixins_activatable__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genActivatorListeners.call(this);
31301
31324
 
31302
- listeners.focus = function (e) {
31303
- _this.getActivator(e);
31325
+ if (this.openOnFocus) {
31326
+ listeners.focus = function (e) {
31327
+ _this.getActivator(e);
31304
31328
 
31305
- _this.runDelay('open');
31306
- };
31329
+ _this.runDelay('open');
31330
+ };
31307
31331
 
31308
- listeners.blur = function (e) {
31309
- _this.getActivator(e);
31332
+ listeners.blur = function (e) {
31333
+ _this.getActivator(e);
31310
31334
 
31311
- _this.runDelay('close');
31312
- };
31335
+ _this.runDelay('close');
31336
+ };
31337
+ }
31313
31338
 
31314
31339
  listeners.keydown = function (e) {
31315
31340
  if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_7__["keyCodes"].esc) {
@@ -34984,7 +35009,7 @@ function () {
34984
35009
 
34985
35010
  Vuetify.install = _install__WEBPACK_IMPORTED_MODULE_0__["install"];
34986
35011
  Vuetify.installed = false;
34987
- Vuetify.version = "2.6.1";
35012
+ Vuetify.version = "2.6.2";
34988
35013
  Vuetify.config = {
34989
35014
  silent: false
34990
35015
  };
@@ -38768,6 +38793,10 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_d
38768
38793
  },
38769
38794
  disabled: Boolean,
38770
38795
  internalActivator: Boolean,
38796
+ openOnClick: {
38797
+ type: Boolean,
38798
+ default: true
38799
+ },
38771
38800
  openOnHover: Boolean,
38772
38801
  openOnFocus: Boolean
38773
38802
  },
@@ -38832,7 +38861,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_d
38832
38861
  },
38833
38862
  genActivatorAttributes: function genActivatorAttributes() {
38834
38863
  return {
38835
- role: 'button',
38864
+ role: this.openOnClick && !this.openOnHover ? 'button' : undefined,
38836
38865
  'aria-haspopup': true,
38837
38866
  'aria-expanded': String(this.isActive)
38838
38867
  };
@@ -38855,7 +38884,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_d
38855
38884
 
38856
38885
  _this.runDelay('close');
38857
38886
  };
38858
- } else {
38887
+ } else if (this.openOnClick) {
38859
38888
  listeners.click = function (e) {
38860
38889
  var activator = _this.getActivator(e);
38861
38890
 
@@ -40088,7 +40117,6 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_s
40088
40117
  default: 0
40089
40118
  },
40090
40119
  offsetOverflow: Boolean,
40091
- openOnClick: Boolean,
40092
40120
  positionX: {
40093
40121
  type: Number,
40094
40122
  default: null
@@ -40290,14 +40318,16 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_s
40290
40318
  var listeners = _activatable__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genActivatorListeners.call(this);
40291
40319
  var onClick = listeners.click;
40292
40320
 
40293
- listeners.click = function (e) {
40294
- if (_this.openOnClick) {
40295
- onClick && onClick(e);
40296
- }
40321
+ if (onClick) {
40322
+ listeners.click = function (e) {
40323
+ if (_this.openOnClick) {
40324
+ onClick && onClick(e);
40325
+ }
40297
40326
 
40298
- _this.absoluteX = e.clientX;
40299
- _this.absoluteY = e.clientY;
40300
- };
40327
+ _this.absoluteX = e.clientX;
40328
+ _this.absoluteY = e.clientY;
40329
+ };
40330
+ }
40301
40331
 
40302
40332
  return listeners;
40303
40333
  },
@@ -41330,8 +41360,8 @@ var __assign = undefined && undefined.__assign || function () {
41330
41360
  var _this = this;
41331
41361
 
41332
41362
  if (!this.to || !this.$refs.link || !this.$route) return;
41333
- var activeClass = (this.activeClass + " " + (this.proxyClass || '')).trim();
41334
- var exactActiveClass = (this.exactActiveClass + " " + (this.proxyClass || '')).trim() || activeClass;
41363
+ var activeClass = ((this.activeClass || '') + " " + (this.proxyClass || '')).trim();
41364
+ var exactActiveClass = ((this.exactActiveClass || '') + " " + (this.proxyClass || '')).trim() || activeClass;
41335
41365
  var path = '_vnode.data.class.' + (this.exact ? exactActiveClass : activeClass);
41336
41366
  this.$nextTick(function () {
41337
41367
  /* istanbul ignore else */
@@ -42491,9 +42521,7 @@ function (_super) {
42491
42521
  }
42492
42522
 
42493
42523
  Application.prototype.register = function (uid, location, size) {
42494
- var _a;
42495
-
42496
- this.application[location] = (_a = {}, _a[uid] = size, _a);
42524
+ this.application[location][uid] = size;
42497
42525
  this.update(location);
42498
42526
  };
42499
42527