@dimailn/vuetify 2.7.2-alpha36 → 2.7.2-alpha38

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 (63) hide show
  1. package/dist/vuetify.js +29 -16
  2. package/dist/vuetify.js.map +1 -1
  3. package/dist/vuetify.min.css +1 -1
  4. package/dist/vuetify.min.js +2 -2
  5. package/es5/components/VDialog/VDialog.js +1 -1
  6. package/es5/components/VDialog/VDialog.js.map +1 -1
  7. package/es5/components/VItemGroup/VItemGroup.js +1 -1
  8. package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
  9. package/es5/components/VMenu/VMenu.js +1 -1
  10. package/es5/components/VMenu/VMenu.js.map +1 -1
  11. package/es5/components/VNavigationDrawer/VNavigationDrawer.js +1 -1
  12. package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  13. package/es5/components/VSelect/VSelect.js +1 -1
  14. package/es5/components/VSelect/VSelect.js.map +1 -1
  15. package/es5/components/VSelect/VSelectList.js +12 -7
  16. package/es5/components/VSelect/VSelectList.js.map +1 -1
  17. package/es5/components/VSlideGroup/VSlideGroup.js +2 -2
  18. package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
  19. package/es5/components/VTabs/VTabs.js +1 -1
  20. package/es5/components/VTabs/VTabs.js.map +1 -1
  21. package/es5/framework.js +1 -1
  22. package/es5/mixins/detachable/index.js +1 -1
  23. package/es5/mixins/detachable/index.js.map +1 -1
  24. package/es5/mixins/groupable/index.js +5 -1
  25. package/es5/mixins/groupable/index.js.map +1 -1
  26. package/es5/mixins/proxyable/index.js +1 -1
  27. package/es5/mixins/proxyable/index.js.map +1 -1
  28. package/lib/components/VDialog/VDialog.js +1 -1
  29. package/lib/components/VDialog/VDialog.js.map +1 -1
  30. package/lib/components/VItemGroup/VItemGroup.js +1 -1
  31. package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
  32. package/lib/components/VMenu/VMenu.js +1 -1
  33. package/lib/components/VMenu/VMenu.js.map +1 -1
  34. package/lib/components/VNavigationDrawer/VNavigationDrawer.js +1 -1
  35. package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  36. package/lib/components/VSelect/VSelect.js +1 -1
  37. package/lib/components/VSelect/VSelect.js.map +1 -1
  38. package/lib/components/VSelect/VSelectList.js +14 -4
  39. package/lib/components/VSelect/VSelectList.js.map +1 -1
  40. package/lib/components/VSlideGroup/VSlideGroup.js +2 -2
  41. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  42. package/lib/components/VTabs/VTabs.js +1 -1
  43. package/lib/components/VTabs/VTabs.js.map +1 -1
  44. package/lib/framework.js +1 -1
  45. package/lib/mixins/detachable/index.js +1 -1
  46. package/lib/mixins/detachable/index.js.map +1 -1
  47. package/lib/mixins/groupable/index.js +3 -1
  48. package/lib/mixins/groupable/index.js.map +1 -1
  49. package/lib/mixins/proxyable/index.js +1 -1
  50. package/lib/mixins/proxyable/index.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/components/VBtn/__tests__/VBtn.spec.ts +2 -1
  53. package/src/components/VDialog/VDialog.ts +1 -1
  54. package/src/components/VItemGroup/VItemGroup.ts +1 -1
  55. package/src/components/VMenu/VMenu.ts +1 -1
  56. package/src/components/VNavigationDrawer/VNavigationDrawer.ts +1 -1
  57. package/src/components/VSelect/VSelect.ts +1 -1
  58. package/src/components/VSelect/VSelectList.ts +14 -3
  59. package/src/components/VSlideGroup/VSlideGroup.ts +2 -2
  60. package/src/components/VTabs/VTabs.ts +1 -1
  61. package/src/mixins/detachable/index.ts +1 -1
  62. package/src/mixins/groupable/index.ts +3 -1
  63. package/src/mixins/proxyable/index.ts +2 -2
package/dist/vuetify.js CHANGED
@@ -15495,7 +15495,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(_
15495
15495
  // if it was dragged onto the overlay (#6969),
15496
15496
  // or if this isn't the topmost dialog (#9907)
15497
15497
 
15498
- return !(this._isDestroyed || !this.isActive || this.$refs.content.contains(target) || this.overlay && target && !this.overlay.$el.contains(target)) && this.activeZIndex >= this.getMaxZIndex();
15498
+ return !(this.$.isUnmounted || !this.isActive || this.$refs.content.contains(target) || this.overlay && target && !this.overlay.$el.contains(target)) && this.activeZIndex >= this.getMaxZIndex();
15499
15499
  },
15500
15500
  hideScroll: function hideScroll() {
15501
15501
  if (this.fullscreen) {
@@ -19251,7 +19251,7 @@ var BaseItemGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])
19251
19251
  this.updateItem(item, index);
19252
19252
  },
19253
19253
  unregister: function unregister(item) {
19254
- if (this._isDestroyed) return;
19254
+ if (this.$.isUnmounted) return;
19255
19255
  var index = this.items.indexOf(item);
19256
19256
  var value = this.getValue(item, index);
19257
19257
  this.items.splice(index, 1);
@@ -21094,7 +21094,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_12__["default"])(_
21094
21094
  },
21095
21095
  closeConditional: function closeConditional(e) {
21096
21096
  var target = e.target;
21097
- return this.isActive && !this._isDestroyed && this.closeOnClick && this.$refs.content && !this.$refs.content.contains(target);
21097
+ return this.isActive && !this.$.isUnmounted && this.closeOnClick && this.$refs.content && !this.$refs.content.contains(target);
21098
21098
  },
21099
21099
  genActivatorAttributes: function genActivatorAttributes() {
21100
21100
  var attributes = _mixins_activatable__WEBPACK_IMPORTED_MODULE_3__["default"].methods.genActivatorAttributes.call(this);
@@ -21776,7 +21776,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_14__["default"])(O
21776
21776
  };
21777
21777
  },
21778
21778
  closeConditional: function closeConditional() {
21779
- return this.isActive && !this._isDestroyed && this.reactsToClick;
21779
+ return this.isActive && !this.$.isUnmounted && this.reactsToClick;
21780
21780
  },
21781
21781
  genAppend: function genAppend() {
21782
21782
  return this.genPosition('append');
@@ -25567,7 +25567,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_14__["default"])(_
25567
25567
  },
25568
25568
  closeConditional: function closeConditional(e) {
25569
25569
  if (!this.isMenuActive) return true;
25570
- return !this._isDestroyed && ( // Click originates from outside the menu content
25570
+ return !this.$.isUnmounted && ( // Click originates from outside the menu content
25571
25571
  // Multiple selects don't close when an item is clicked
25572
25572
  !this.getContent() || !this.getContent().contains(e.target)) && // Click originates from outside the element
25573
25573
  this.$el && !this.$el.contains(e.target) && e.target !== this.$el;
@@ -26426,12 +26426,21 @@ var __read = undefined && undefined.__read || function (o, n) {
26426
26426
  hasItem: function hasItem(item) {
26427
26427
  return this.parsedItems.indexOf(this.getValue(item)) > -1;
26428
26428
  },
26429
+ checkSlotFragment: function checkSlotFragment(type) {
26430
+ return _typeof(type) === 'symbol' && String(type) === 'Symbol(v-fgt)';
26431
+ },
26429
26432
  needsTile: function needsTile(slot) {
26430
- var _a = __read(slot !== null && slot !== void 0 ? slot : [], 1),
26431
- vnode = _a[0];
26432
-
26433
26433
  if (!(slot === null || slot === void 0 ? void 0 : slot.length) || slot.length !== 1) return true;
26434
- var type = (vnode !== null && vnode !== void 0 ? vnode : {}).type;
26434
+ var vnode = slot[0];
26435
+ if (!vnode) return true;
26436
+ var type = vnode.type;
26437
+
26438
+ if (this.checkSlotFragment(type) && Array.isArray(vnode.children)) {
26439
+ if (vnode.children.length !== 1) return true;
26440
+ vnode = vnode.children[0];
26441
+ type = vnode && vnode.type;
26442
+ }
26443
+
26435
26444
  var isComponent = type && _typeof(type) === 'object';
26436
26445
  var isVListItem = isComponent && 'name' in type && type.name === 'v-list-item';
26437
26446
  return !isVListItem;
@@ -27290,7 +27299,7 @@ var BaseSlideGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_8__["default"]
27290
27299
  },
27291
27300
  onResize: function onResize() {
27292
27301
  /* istanbul ignore next */
27293
- if (this._isDestroyed) return;
27302
+ if (this.$.isUnmounted) return;
27294
27303
  this.setWidths();
27295
27304
  },
27296
27305
  onTouchStart: function onTouchStart(e) {
@@ -27391,7 +27400,7 @@ var BaseSlideGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_8__["default"]
27391
27400
  var _this = this;
27392
27401
 
27393
27402
  window.requestAnimationFrame(function () {
27394
- if (_this._isDestroyed) return;
27403
+ if (_this.$.isUnmounted) return;
27395
27404
  var content = _this.$refs.content;
27396
27405
  var wrapper = _this.$refs.wrapper;
27397
27406
  if (!content || !wrapper) return;
@@ -30450,7 +30459,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(_
30450
30459
  }, [slider]);
30451
30460
  },
30452
30461
  onResize: function onResize() {
30453
- if (this._isDestroyed) return;
30462
+ if (this.$.isUnmounted) return;
30454
30463
  clearTimeout(this.resizeTimeout);
30455
30464
  this.resizeTimeout = window.setTimeout(this.callSlider, 0);
30456
30465
  },
@@ -36928,7 +36937,7 @@ function () {
36928
36937
 
36929
36938
  Vuetify.install = _install__WEBPACK_IMPORTED_MODULE_0__["install"];
36930
36939
  Vuetify.installed = false;
36931
- Vuetify.version = "2.7.2-alpha36";
36940
+ Vuetify.version = "2.7.2-alpha38";
36932
36941
  Vuetify.config = {
36933
36942
  silent: false
36934
36943
  };
@@ -41944,7 +41953,7 @@ function removeActivator(activator) {
41944
41953
  return scopeIdAttrs;
41945
41954
  },
41946
41955
  initDetach: function initDetach() {
41947
- if (this._isDestroyed || !this.$refs.content || this.hasDetached || // Leave menu in place if attached
41956
+ if (this.$.isUnmounted || !this.$refs.content || this.hasDetached || // Leave menu in place if attached
41948
41957
  // and dev has not changed target
41949
41958
  this.attach === '' || // If used as a boolean prop (<v-menu attach>)
41950
41959
  this.attach === true || // If bound to a boolean (<v-menu :attach="true">)
@@ -42081,7 +42090,11 @@ function factory(namespace, child, parent) {
42081
42090
  this[namespace] && this[namespace].register(this);
42082
42091
  },
42083
42092
  beforeUnmount: function beforeUnmount() {
42084
- this[namespace] && this[namespace].unregister(this);
42093
+ var _this = this;
42094
+
42095
+ this.$nextTick(function () {
42096
+ _this[namespace] && _this[namespace].unregister(_this);
42097
+ });
42085
42098
  },
42086
42099
  methods: {
42087
42100
  toggle: function toggle(e) {
@@ -43446,7 +43459,7 @@ function factory(prop, event) {
43446
43459
  if (val === this.internalLazyValue) return;
43447
43460
  this.internalLazyValue = val; // Don't emit events if component is being destroyed
43448
43461
 
43449
- if (!this._isDestroyed) {
43462
+ if (!this.$.isUnmounted) {
43450
43463
  this.$emit(event, val);
43451
43464
  }
43452
43465
  }