@dimailn/vuetify 2.7.2-alpha36 → 2.7.2-alpha37

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 (55) hide show
  1. package/dist/vuetify.js +17 -12
  2. package/dist/vuetify.js.map +1 -1
  3. package/dist/vuetify.min.js +1 -1
  4. package/es5/components/VDialog/VDialog.js +1 -1
  5. package/es5/components/VDialog/VDialog.js.map +1 -1
  6. package/es5/components/VItemGroup/VItemGroup.js +1 -1
  7. package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
  8. package/es5/components/VMenu/VMenu.js +1 -1
  9. package/es5/components/VMenu/VMenu.js.map +1 -1
  10. package/es5/components/VNavigationDrawer/VNavigationDrawer.js +1 -1
  11. package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  12. package/es5/components/VSelect/VSelect.js +1 -1
  13. package/es5/components/VSelect/VSelect.js.map +1 -1
  14. package/es5/components/VSlideGroup/VSlideGroup.js +2 -2
  15. package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
  16. package/es5/components/VTabs/VTabs.js +1 -1
  17. package/es5/components/VTabs/VTabs.js.map +1 -1
  18. package/es5/mixins/detachable/index.js +1 -1
  19. package/es5/mixins/detachable/index.js.map +1 -1
  20. package/es5/mixins/groupable/index.js +5 -1
  21. package/es5/mixins/groupable/index.js.map +1 -1
  22. package/es5/mixins/proxyable/index.js +3 -2
  23. package/es5/mixins/proxyable/index.js.map +1 -1
  24. package/lib/components/VDialog/VDialog.js +1 -1
  25. package/lib/components/VDialog/VDialog.js.map +1 -1
  26. package/lib/components/VItemGroup/VItemGroup.js +1 -1
  27. package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
  28. package/lib/components/VMenu/VMenu.js +1 -1
  29. package/lib/components/VMenu/VMenu.js.map +1 -1
  30. package/lib/components/VNavigationDrawer/VNavigationDrawer.js +1 -1
  31. package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  32. package/lib/components/VSelect/VSelect.js +1 -1
  33. package/lib/components/VSelect/VSelect.js.map +1 -1
  34. package/lib/components/VSlideGroup/VSlideGroup.js +2 -2
  35. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  36. package/lib/components/VTabs/VTabs.js +1 -1
  37. package/lib/components/VTabs/VTabs.js.map +1 -1
  38. package/lib/mixins/detachable/index.js +1 -1
  39. package/lib/mixins/detachable/index.js.map +1 -1
  40. package/lib/mixins/groupable/index.js +3 -1
  41. package/lib/mixins/groupable/index.js.map +1 -1
  42. package/lib/mixins/proxyable/index.js +3 -2
  43. package/lib/mixins/proxyable/index.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/components/VBtn/__tests__/VBtn.spec.ts +2 -1
  46. package/src/components/VDialog/VDialog.ts +1 -1
  47. package/src/components/VItemGroup/VItemGroup.ts +1 -1
  48. package/src/components/VMenu/VMenu.ts +1 -1
  49. package/src/components/VNavigationDrawer/VNavigationDrawer.ts +1 -1
  50. package/src/components/VSelect/VSelect.ts +1 -1
  51. package/src/components/VSlideGroup/VSlideGroup.ts +2 -2
  52. package/src/components/VTabs/VTabs.ts +1 -1
  53. package/src/mixins/detachable/index.ts +1 -1
  54. package/src/mixins/groupable/index.ts +3 -1
  55. 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;
@@ -27290,7 +27290,7 @@ var BaseSlideGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_8__["default"]
27290
27290
  },
27291
27291
  onResize: function onResize() {
27292
27292
  /* istanbul ignore next */
27293
- if (this._isDestroyed) return;
27293
+ if (this.$.isUnmounted) return;
27294
27294
  this.setWidths();
27295
27295
  },
27296
27296
  onTouchStart: function onTouchStart(e) {
@@ -27391,7 +27391,7 @@ var BaseSlideGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_8__["default"]
27391
27391
  var _this = this;
27392
27392
 
27393
27393
  window.requestAnimationFrame(function () {
27394
- if (_this._isDestroyed) return;
27394
+ if (_this.$.isUnmounted) return;
27395
27395
  var content = _this.$refs.content;
27396
27396
  var wrapper = _this.$refs.wrapper;
27397
27397
  if (!content || !wrapper) return;
@@ -30450,7 +30450,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(_
30450
30450
  }, [slider]);
30451
30451
  },
30452
30452
  onResize: function onResize() {
30453
- if (this._isDestroyed) return;
30453
+ if (this.$.isUnmounted) return;
30454
30454
  clearTimeout(this.resizeTimeout);
30455
30455
  this.resizeTimeout = window.setTimeout(this.callSlider, 0);
30456
30456
  },
@@ -41944,7 +41944,7 @@ function removeActivator(activator) {
41944
41944
  return scopeIdAttrs;
41945
41945
  },
41946
41946
  initDetach: function initDetach() {
41947
- if (this._isDestroyed || !this.$refs.content || this.hasDetached || // Leave menu in place if attached
41947
+ if (this.$.isUnmounted || !this.$refs.content || this.hasDetached || // Leave menu in place if attached
41948
41948
  // and dev has not changed target
41949
41949
  this.attach === '' || // If used as a boolean prop (<v-menu attach>)
41950
41950
  this.attach === true || // If bound to a boolean (<v-menu :attach="true">)
@@ -42081,7 +42081,11 @@ function factory(namespace, child, parent) {
42081
42081
  this[namespace] && this[namespace].register(this);
42082
42082
  },
42083
42083
  beforeUnmount: function beforeUnmount() {
42084
- this[namespace] && this[namespace].unregister(this);
42084
+ var _this = this;
42085
+
42086
+ this.$nextTick(function () {
42087
+ _this[namespace] && _this[namespace].unregister(_this);
42088
+ });
42085
42089
  },
42086
42090
  methods: {
42087
42091
  toggle: function toggle(e) {
@@ -43444,9 +43448,10 @@ function factory(prop, event) {
43444
43448
  },
43445
43449
  set: function set(val) {
43446
43450
  if (val === this.internalLazyValue) return;
43447
- this.internalLazyValue = val; // Don't emit events if component is being destroyed
43451
+ this.internalLazyValue = val;
43452
+ console.log(this, !this.$.isUnmounted); // Don't emit events if component is being destroyed
43448
43453
 
43449
- if (!this._isDestroyed) {
43454
+ if (!this.$.isUnmounted) {
43450
43455
  this.$emit(event, val);
43451
43456
  }
43452
43457
  }