@dimailn/vuetify 2.7.2-alpha57 → 2.7.2-alpha58
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.
- package/dist/vuetify.js +28 -27
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +1 -1
- package/dist/vuetify.min.js +2 -2
- package/es5/framework.js +1 -1
- package/es5/mixins/overlayable/index.js +27 -26
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/mixins/overlayable/index.js +28 -27
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/package.json +1 -1
- package/src/mixins/overlayable/__tests__/overlayable.spec.ts +24 -0
- package/src/mixins/overlayable/index.ts +25 -23
package/dist/vuetify.js
CHANGED
|
@@ -37114,7 +37114,7 @@ function () {
|
|
|
37114
37114
|
|
|
37115
37115
|
Vuetify.install = _install__WEBPACK_IMPORTED_MODULE_0__["install"];
|
|
37116
37116
|
Vuetify.installed = false;
|
|
37117
|
-
Vuetify.version = "2.7.2-
|
|
37117
|
+
Vuetify.version = "2.7.2-alpha58";
|
|
37118
37118
|
Vuetify.config = {
|
|
37119
37119
|
silent: false
|
|
37120
37120
|
};
|
|
@@ -43210,7 +43210,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
43210
43210
|
}
|
|
43211
43211
|
},
|
|
43212
43212
|
beforeUnmount: function beforeUnmount() {
|
|
43213
|
-
this.
|
|
43213
|
+
this.destroyOverlay();
|
|
43214
43214
|
},
|
|
43215
43215
|
methods: {
|
|
43216
43216
|
createOverlay: function createOverlay() {
|
|
@@ -43258,21 +43258,13 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
43258
43258
|
genOverlay: function genOverlay() {
|
|
43259
43259
|
var _this = this;
|
|
43260
43260
|
|
|
43261
|
-
var _a, _b
|
|
43261
|
+
var _a, _b;
|
|
43262
43262
|
|
|
43263
43263
|
this.hideScroll();
|
|
43264
43264
|
if (this.hideOverlay) return;
|
|
43265
43265
|
|
|
43266
43266
|
if (!((_b = (_a = this.overlay) === null || _a === void 0 ? void 0 : _a.$el) === null || _b === void 0 ? void 0 : _b.isConnected)) {
|
|
43267
|
-
|
|
43268
|
-
cancelAnimationFrame(this.animationFrame);
|
|
43269
|
-
var container = (_c = this.overlay.$el) === null || _c === void 0 ? void 0 : _c.parentNode;
|
|
43270
|
-
(_d = this.overlayApp) === null || _d === void 0 ? void 0 : _d.unmount();
|
|
43271
|
-
this.overlayApp = null;
|
|
43272
|
-
if (container === null || container === void 0 ? void 0 : container.parentNode) container.parentNode.removeChild(container);
|
|
43273
|
-
this.overlay = null;
|
|
43274
|
-
}
|
|
43275
|
-
|
|
43267
|
+
this.teardownOverlay();
|
|
43276
43268
|
this.createOverlay();
|
|
43277
43269
|
}
|
|
43278
43270
|
|
|
@@ -43294,7 +43286,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
43294
43286
|
removeOverlay: function removeOverlay(showScroll) {
|
|
43295
43287
|
var _this = this;
|
|
43296
43288
|
|
|
43297
|
-
var _a
|
|
43289
|
+
var _a;
|
|
43298
43290
|
|
|
43299
43291
|
if (showScroll === void 0) {
|
|
43300
43292
|
showScroll = true;
|
|
@@ -43302,27 +43294,15 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
43302
43294
|
|
|
43303
43295
|
if (this.overlay) {
|
|
43304
43296
|
if (!((_a = this.overlay.$el) === null || _a === void 0 ? void 0 : _a.isConnected)) {
|
|
43305
|
-
|
|
43306
|
-
(_b = this.overlayApp) === null || _b === void 0 ? void 0 : _b.unmount();
|
|
43307
|
-
this.overlayApp = null;
|
|
43308
|
-
this.overlay = null;
|
|
43297
|
+
this.teardownOverlay();
|
|
43309
43298
|
showScroll && this.showScroll();
|
|
43310
43299
|
return;
|
|
43311
43300
|
}
|
|
43312
43301
|
|
|
43313
43302
|
Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["addOnceEventListener"])(this.overlay.$el, 'transitionend', function () {
|
|
43314
|
-
var _a;
|
|
43315
|
-
|
|
43316
43303
|
if (!_this.overlay || !_this.overlay.$el || !_this.overlay.$el.parentNode || _this.overlay.value || _this.isActive) return;
|
|
43317
|
-
var overlayContainer = _this.overlay.$el.parentNode;
|
|
43318
|
-
(_a = _this.overlayApp) === null || _a === void 0 ? void 0 : _a.unmount();
|
|
43319
|
-
_this.overlayApp = null;
|
|
43320
|
-
|
|
43321
|
-
if (overlayContainer === null || overlayContainer === void 0 ? void 0 : overlayContainer.parentNode) {
|
|
43322
|
-
overlayContainer.parentNode.removeChild(overlayContainer);
|
|
43323
|
-
}
|
|
43324
43304
|
|
|
43325
|
-
_this.
|
|
43305
|
+
_this.teardownOverlay();
|
|
43326
43306
|
}); // Cancel animation frame in case
|
|
43327
43307
|
// overlay is removed before it
|
|
43328
43308
|
// has finished its animation
|
|
@@ -43333,6 +43313,27 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
43333
43313
|
|
|
43334
43314
|
showScroll && this.showScroll();
|
|
43335
43315
|
},
|
|
43316
|
+
teardownOverlay: function teardownOverlay() {
|
|
43317
|
+
var _a, _b;
|
|
43318
|
+
|
|
43319
|
+
cancelAnimationFrame(this.animationFrame);
|
|
43320
|
+
if (!this.overlay) return;
|
|
43321
|
+
var container = (_a = this.overlay.$el) === null || _a === void 0 ? void 0 : _a.parentNode;
|
|
43322
|
+
(_b = this.overlayApp) === null || _b === void 0 ? void 0 : _b.unmount();
|
|
43323
|
+
this.overlayApp = null;
|
|
43324
|
+
|
|
43325
|
+
if (container === null || container === void 0 ? void 0 : container.parentNode) {
|
|
43326
|
+
container.parentNode.removeChild(container);
|
|
43327
|
+
}
|
|
43328
|
+
|
|
43329
|
+
this.overlay = null;
|
|
43330
|
+
},
|
|
43331
|
+
|
|
43332
|
+
/** Синхронно уничтожает оверлей независимо от isActive/анимации. Для unmount. */
|
|
43333
|
+
destroyOverlay: function destroyOverlay() {
|
|
43334
|
+
this.teardownOverlay();
|
|
43335
|
+
this.showScroll();
|
|
43336
|
+
},
|
|
43336
43337
|
scrollListener: function scrollListener(e) {
|
|
43337
43338
|
if ('key' in e) {
|
|
43338
43339
|
if (['INPUT', 'TEXTAREA', 'SELECT'].includes(e.target.tagName) || // https://github.com/vuetifyjs/vuetify/issues/4715
|