@vuetify/nightly 2.6.8 → 2.6.9

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 (45) hide show
  1. package/CHANGELOG.md +8 -5
  2. package/dist/json/web-types.json +21 -7
  3. package/dist/vuetify.css +3 -2
  4. package/dist/vuetify.css.map +1 -1
  5. package/dist/vuetify.js +49 -26
  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/VCalendar/VCalendar.js +3 -0
  10. package/es5/components/VCalendar/VCalendar.js.map +1 -1
  11. package/es5/components/VCalendar/VCalendarWeekly.js +15 -3
  12. package/es5/components/VCalendar/VCalendarWeekly.js.map +1 -1
  13. package/es5/components/VCalendar/mixins/mouse.js +14 -22
  14. package/es5/components/VCalendar/mixins/mouse.js.map +1 -1
  15. package/es5/components/VCarousel/VCarousel.js +2 -1
  16. package/es5/components/VCarousel/VCarousel.js.map +1 -1
  17. package/es5/components/VPagination/VPagination.js +1 -1
  18. package/es5/components/VPagination/VPagination.js.map +1 -1
  19. package/es5/components/VRadioGroup/VRadio.js +1 -0
  20. package/es5/components/VRadioGroup/VRadio.js.map +1 -1
  21. package/es5/framework.js +1 -1
  22. package/lib/components/VCalendar/VCalendar.js +3 -0
  23. package/lib/components/VCalendar/VCalendar.js.map +1 -1
  24. package/lib/components/VCalendar/VCalendarWeekly.js +15 -3
  25. package/lib/components/VCalendar/VCalendarWeekly.js.map +1 -1
  26. package/lib/components/VCalendar/mixins/mouse.js +7 -28
  27. package/lib/components/VCalendar/mixins/mouse.js.map +1 -1
  28. package/lib/components/VCarousel/VCarousel.js +2 -1
  29. package/lib/components/VCarousel/VCarousel.js.map +1 -1
  30. package/lib/components/VPagination/VPagination.js +1 -1
  31. package/lib/components/VPagination/VPagination.js.map +1 -1
  32. package/lib/components/VRadioGroup/VRadio.js +1 -0
  33. package/lib/components/VRadioGroup/VRadio.js.map +1 -1
  34. package/lib/framework.js +1 -1
  35. package/package.json +1 -1
  36. package/src/components/VCalendar/VCalendar.ts +3 -0
  37. package/src/components/VCalendar/VCalendarWeekly.ts +12 -0
  38. package/src/components/VCalendar/__tests__/__snapshots__/VCalendar.spec.ts.snap +165 -55
  39. package/src/components/VCalendar/mixins/__tests__/mouse.spec.ts +2 -2
  40. package/src/components/VCalendar/mixins/mouse.ts +8 -9
  41. package/src/components/VCarousel/VCarousel.ts +1 -0
  42. package/src/components/VInput/VInput.sass +1 -1
  43. package/src/components/VPagination/VPagination.ts +1 -1
  44. package/src/components/VRadioGroup/VRadio.ts +1 -0
  45. package/src/components/VSwitch/VSwitch.sass +3 -2
package/dist/vuetify.js CHANGED
@@ -3172,6 +3172,9 @@ var __assign = undefined && undefined.__assign || function () {
3172
3172
  weekdays: weekdays,
3173
3173
  categories: categories
3174
3174
  }),
3175
+ attrs: {
3176
+ role: 'grid'
3177
+ },
3175
3178
  directives: [{
3176
3179
  modifiers: {
3177
3180
  quiet: true
@@ -3936,7 +3939,10 @@ var __spreadArray = undefined && undefined.__spreadArray || function (to, from,
3936
3939
  },
3937
3940
  genHead: function genHead() {
3938
3941
  return this.$createElement('div', {
3939
- staticClass: 'v-calendar-weekly__head'
3942
+ staticClass: 'v-calendar-weekly__head',
3943
+ attrs: {
3944
+ role: 'row'
3945
+ }
3940
3946
  }, this.genHeadDays());
3941
3947
  },
3942
3948
  genHeadDays: function genHeadDays() {
@@ -3956,7 +3962,10 @@ var __spreadArray = undefined && undefined.__spreadArray || function (to, from,
3956
3962
  return this.$createElement('div', this.setTextColor(color, {
3957
3963
  key: day.date,
3958
3964
  staticClass: 'v-calendar-weekly__head-weekday',
3959
- class: this.getRelativeClasses(day, outside)
3965
+ class: this.getRelativeClasses(day, outside),
3966
+ attrs: {
3967
+ role: 'columnheader'
3968
+ }
3960
3969
  }), this.weekdayFormatter(day, this.shortWeekdays));
3961
3970
  },
3962
3971
  genWeeks: function genWeeks() {
@@ -3983,7 +3992,10 @@ var __spreadArray = undefined && undefined.__spreadArray || function (to, from,
3983
3992
 
3984
3993
  return this.$createElement('div', {
3985
3994
  key: week[0].date,
3986
- staticClass: 'v-calendar-weekly__week'
3995
+ staticClass: 'v-calendar-weekly__week',
3996
+ attrs: {
3997
+ role: 'row'
3998
+ }
3987
3999
  }, weekNodes);
3988
4000
  },
3989
4001
  getWeekNumber: function getWeekNumber(determineDay) {
@@ -4000,6 +4012,9 @@ var __spreadArray = undefined && undefined.__spreadArray || function (to, from,
4000
4012
  key: day.date,
4001
4013
  staticClass: 'v-calendar-weekly__day',
4002
4014
  class: this.getRelativeClasses(day, outside),
4015
+ attrs: {
4016
+ role: 'cell'
4017
+ },
4003
4018
  on: this.getDefaultMouseEventHandlers(':day', function (nativeEvent) {
4004
4019
  return __assign({
4005
4020
  nativeEvent: nativeEvent
@@ -4947,6 +4962,22 @@ __webpack_require__.r(__webpack_exports__);
4947
4962
  __webpack_require__.r(__webpack_exports__);
4948
4963
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
4949
4964
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
4965
+ var __assign = undefined && undefined.__assign || function () {
4966
+ __assign = Object.assign || function (t) {
4967
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4968
+ s = arguments[i];
4969
+
4970
+ for (var p in s) {
4971
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4972
+ }
4973
+ }
4974
+
4975
+ return t;
4976
+ };
4977
+
4978
+ return __assign.apply(this, arguments);
4979
+ };
4980
+
4950
4981
 
4951
4982
  /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
4952
4983
  name: 'mouse',
@@ -4954,29 +4985,19 @@ __webpack_require__.r(__webpack_exports__);
4954
4985
  getDefaultMouseEventHandlers: function getDefaultMouseEventHandlers(suffix, getEvent) {
4955
4986
  var _a;
4956
4987
 
4957
- return this.getMouseEventHandlers((_a = {}, _a['click' + suffix] = {
4958
- event: 'click'
4959
- }, _a['contextmenu' + suffix] = {
4988
+ var listeners = Object.keys(this.$listeners).filter(function (key) {
4989
+ return key.endsWith(suffix);
4990
+ }).reduce(function (acc, key) {
4991
+ acc[key] = {
4992
+ event: key.slice(0, -suffix.length)
4993
+ };
4994
+ return acc;
4995
+ }, {});
4996
+ return this.getMouseEventHandlers(__assign(__assign({}, listeners), (_a = {}, _a['contextmenu' + suffix] = {
4960
4997
  event: 'contextmenu',
4961
4998
  prevent: true,
4962
4999
  result: false
4963
- }, _a['mousedown' + suffix] = {
4964
- event: 'mousedown'
4965
- }, _a['mousemove' + suffix] = {
4966
- event: 'mousemove'
4967
- }, _a['mouseup' + suffix] = {
4968
- event: 'mouseup'
4969
- }, _a['mouseenter' + suffix] = {
4970
- event: 'mouseenter'
4971
- }, _a['mouseleave' + suffix] = {
4972
- event: 'mouseleave'
4973
- }, _a['touchstart' + suffix] = {
4974
- event: 'touchstart'
4975
- }, _a['touchmove' + suffix] = {
4976
- event: 'touchmove'
4977
- }, _a['touchend' + suffix] = {
4978
- event: 'touchend'
4979
- }, _a), getEvent);
5000
+ }, _a)), getEvent);
4980
5001
  },
4981
5002
  getMouseEventHandlers: function getMouseEventHandlers(events, getEvent) {
4982
5003
  var _this = this;
@@ -7158,7 +7179,8 @@ var __assign = undefined && undefined.__assign || function () {
7158
7179
  icon: true,
7159
7180
  small: true,
7160
7181
  value: this.getValue(this.items[i], i)
7161
- }
7182
+ },
7183
+ key: i
7162
7184
  }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
7163
7185
  props: {
7164
7186
  size: 18
@@ -21659,7 +21681,7 @@ var __spreadArray = undefined && undefined.__spreadArray || function (to, from,
21659
21681
  items: function items() {
21660
21682
  var totalVisible = parseInt(this.totalVisible, 10);
21661
21683
 
21662
- if (totalVisible === 0) {
21684
+ if (totalVisible === 0 || isNaN(this.length) || this.length > Number.MAX_SAFE_INTEGER) {
21663
21685
  return [];
21664
21686
  }
21665
21687
 
@@ -22703,6 +22725,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_11__["default"])(_
22703
22725
  }, this.themeClasses), this.groupClasses);
22704
22726
  },
22705
22727
  computedColor: function computedColor() {
22728
+ if (this.isDisabled) return undefined;
22706
22729
  return _mixins_selectable__WEBPACK_IMPORTED_MODULE_9__["default"].options.computed.computedColor.call(this);
22707
22730
  },
22708
22731
  computedIcon: function computedIcon() {
@@ -35116,7 +35139,7 @@ function () {
35116
35139
 
35117
35140
  Vuetify.install = _install__WEBPACK_IMPORTED_MODULE_0__["install"];
35118
35141
  Vuetify.installed = false;
35119
- Vuetify.version = "2.6.8";
35142
+ Vuetify.version = "2.6.9";
35120
35143
  Vuetify.config = {
35121
35144
  silent: false
35122
35145
  };