@vuetify/nightly 2.6.6 → 2.6.7
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/CHANGELOG.md +11 -6
- package/dist/json/web-types.json +5 -5
- package/dist/vuetify.css +47 -67
- package/dist/vuetify.css.map +1 -1
- package/dist/vuetify.js +85 -78
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VDialog/VDialog.js +13 -8
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VList/VListItem.js +5 -3
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +26 -58
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +6 -2
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +43 -23
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +10 -0
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/mixins/dependent/index.js.map +1 -1
- package/es5/mixins/detachable/index.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +13 -7
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VList/VListItem.js +5 -3
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +25 -55
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +6 -2
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +23 -7
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +10 -0
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/mixins/dependent/index.js.map +1 -1
- package/lib/mixins/detachable/index.js.map +1 -1
- package/package.json +2 -1
- package/src/components/VAutocomplete/VAutocomplete.sass +0 -4
- package/src/components/VBtn/VBtn.sass +1 -1
- package/src/components/VChip/VChip.sass +1 -1
- package/src/components/VDialog/VDialog.sass +1 -1
- package/src/components/VDialog/VDialog.ts +9 -6
- package/src/components/VDialog/__tests__/VDialog.spec.ts +5 -5
- package/src/components/VDialog/__tests__/__snapshots__/VDialog.spec.ts.snap +4 -16
- package/src/components/VExpansionPanel/VExpansionPanel.sass +2 -2
- package/src/components/VInput/VInput.sass +2 -5
- package/src/components/VList/VListItem.ts +5 -3
- package/src/components/VList/__tests__/VListItem.spec.ts +12 -0
- package/src/components/VOtpInput/VOtpInput.ts +23 -43
- package/src/components/VOtpInput/__tests__/VOtpInput.spec.ts +3 -27
- package/src/components/VRadioGroup/VRadio.sass +0 -4
- package/src/components/VSelect/VSelect.sass +3 -1
- package/src/components/VSelect/VSelect.ts +2 -2
- package/src/components/VSkeletonLoader/VSkeletonLoader.sass +1 -1
- package/src/components/VSlideGroup/VSlideGroup.ts +20 -8
- package/src/components/VTabs/VTabs.ts +10 -0
- package/src/components/VTimeline/VTimeline.sass +16 -9
- package/src/components/VTimeline/_mixins.sass +4 -3
- package/src/mixins/dependent/index.ts +3 -3
- package/src/mixins/detachable/index.ts +3 -3
- package/src/styles/components/_selection-controls.sass +3 -0
package/dist/vuetify.js
CHANGED
|
@@ -14969,10 +14969,11 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
|
|
|
14969
14969
|
|
|
14970
14970
|
this.$nextTick(function () {
|
|
14971
14971
|
_this.$nextTick(function () {
|
|
14972
|
-
|
|
14973
|
-
_this.previousActiveElement = document.activeElement;
|
|
14972
|
+
var _a, _b;
|
|
14974
14973
|
|
|
14975
|
-
|
|
14974
|
+
if (!((_a = _this.$refs.dialog) === null || _a === void 0 ? void 0 : _a.contains(document.activeElement))) {
|
|
14975
|
+
_this.previousActiveElement = document.activeElement;
|
|
14976
|
+
(_b = _this.$refs.dialog) === null || _b === void 0 ? void 0 : _b.focus();
|
|
14976
14977
|
}
|
|
14977
14978
|
|
|
14978
14979
|
_this.bind();
|
|
@@ -15015,16 +15016,16 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
|
|
|
15015
15016
|
if (!e || !this.retainFocus) return;
|
|
15016
15017
|
var target = e.target;
|
|
15017
15018
|
|
|
15018
|
-
if (!!target && // It isn't the document or the dialog body
|
|
15019
|
-
![document, this.$refs.
|
|
15020
|
-
!this.$refs.
|
|
15019
|
+
if (!!target && this.$refs.dialog && // It isn't the document or the dialog body
|
|
15020
|
+
![document, this.$refs.dialog].includes(target) && // It isn't inside the dialog body
|
|
15021
|
+
!this.$refs.dialog.contains(target) && // We're the topmost dialog
|
|
15021
15022
|
this.activeZIndex >= this.getMaxZIndex() && // It isn't inside a dependent element (like a menu)
|
|
15022
15023
|
!this.getOpenDependentElements().some(function (el) {
|
|
15023
15024
|
return el.contains(target);
|
|
15024
15025
|
}) // So we must have focused something outside the dialog and its children
|
|
15025
15026
|
) {
|
|
15026
15027
|
// Find and focus the first available element inside the dialog
|
|
15027
|
-
var focusable = this.$refs.
|
|
15028
|
+
var focusable = this.$refs.dialog.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
15028
15029
|
|
|
15029
15030
|
var el = __spread(focusable).find(function (el) {
|
|
15030
15031
|
return !el.hasAttribute('disabled');
|
|
@@ -15047,7 +15048,6 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
|
|
|
15047
15048
|
class: _this.contentClasses,
|
|
15048
15049
|
attrs: __assign({
|
|
15049
15050
|
role: 'dialog',
|
|
15050
|
-
tabindex: _this.isActive ? 0 : undefined,
|
|
15051
15051
|
'aria-modal': _this.hideOverlay ? undefined : 'true'
|
|
15052
15052
|
}, _this.getScopeIdAttrs()),
|
|
15053
15053
|
on: {
|
|
@@ -15074,6 +15074,9 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
|
|
|
15074
15074
|
genInnerContent: function genInnerContent() {
|
|
15075
15075
|
var data = {
|
|
15076
15076
|
class: this.classes,
|
|
15077
|
+
attrs: {
|
|
15078
|
+
tabindex: this.isActive ? 0 : undefined
|
|
15079
|
+
},
|
|
15077
15080
|
ref: 'dialog',
|
|
15078
15081
|
directives: [{
|
|
15079
15082
|
name: 'click-outside',
|
|
@@ -19261,10 +19264,12 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
|
|
|
19261
19264
|
data.attrs = __assign(__assign({}, data.attrs), this.genAttrs());
|
|
19262
19265
|
data[this.to ? 'nativeOn' : 'on'] = __assign(__assign({}, data[this.to ? 'nativeOn' : 'on']), {
|
|
19263
19266
|
keydown: function keydown(e) {
|
|
19264
|
-
|
|
19265
|
-
|
|
19267
|
+
if (!_this.disabled) {
|
|
19268
|
+
/* istanbul ignore else */
|
|
19269
|
+
if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_7__["keyCodes"].enter) _this.click(e);
|
|
19266
19270
|
|
|
19267
|
-
|
|
19271
|
+
_this.$emit('keydown', e);
|
|
19272
|
+
}
|
|
19268
19273
|
}
|
|
19269
19274
|
});
|
|
19270
19275
|
if (this.inactive) tag = 'div';
|
|
@@ -20849,7 +20854,6 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
20849
20854
|
},
|
|
20850
20855
|
data: function data() {
|
|
20851
20856
|
return {
|
|
20852
|
-
badInput: false,
|
|
20853
20857
|
initialValue: null,
|
|
20854
20858
|
isBooted: false,
|
|
20855
20859
|
otp: []
|
|
@@ -20863,9 +20867,6 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
20863
20867
|
return __assign(__assign(__assign({}, _VInput__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.classes.call(this)), _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_3__["default"].options.computed.classes.call(this)), {
|
|
20864
20868
|
'v-otp-input--plain': this.plain
|
|
20865
20869
|
});
|
|
20866
|
-
},
|
|
20867
|
-
isDirty: function isDirty() {
|
|
20868
|
-
return _VInput__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.isDirty.call(this) || this.badInput;
|
|
20869
20870
|
}
|
|
20870
20871
|
},
|
|
20871
20872
|
watch: {
|
|
@@ -20971,12 +20972,12 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
20971
20972
|
min: this.type === 'number' ? 0 : null
|
|
20972
20973
|
},
|
|
20973
20974
|
attrs: __assign(__assign({}, this.attrs$), {
|
|
20975
|
+
autocomplete: 'one-time-code',
|
|
20974
20976
|
disabled: this.isDisabled,
|
|
20975
20977
|
readonly: this.isReadonly,
|
|
20976
20978
|
type: this.type,
|
|
20977
20979
|
id: this.computedId + "--" + otpIdx,
|
|
20978
|
-
class: "otp-field-box--" + otpIdx
|
|
20979
|
-
maxlength: 1
|
|
20980
|
+
class: "otp-field-box--" + otpIdx
|
|
20980
20981
|
}),
|
|
20981
20982
|
on: Object.assign(listeners, {
|
|
20982
20983
|
blur: this.onBlur,
|
|
@@ -20986,9 +20987,6 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
20986
20987
|
focus: function focus(e) {
|
|
20987
20988
|
return _this.onFocus(e, otpIdx);
|
|
20988
20989
|
},
|
|
20989
|
-
paste: function paste(e) {
|
|
20990
|
-
return _this.onPaste(e, otpIdx);
|
|
20991
|
-
},
|
|
20992
20990
|
keydown: this.onKeyDown,
|
|
20993
20991
|
keyup: function keyup(e) {
|
|
20994
20992
|
return _this.onKeyUp(e, otpIdx);
|
|
@@ -21033,24 +21031,32 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
21033
21031
|
e && this.$emit('focus', e);
|
|
21034
21032
|
}
|
|
21035
21033
|
},
|
|
21036
|
-
onInput: function onInput(e,
|
|
21037
|
-
var
|
|
21038
|
-
|
|
21034
|
+
onInput: function onInput(e, index) {
|
|
21035
|
+
var maxCursor = +this.length - 1;
|
|
21039
21036
|
var target = e.target;
|
|
21040
21037
|
var value = target.value;
|
|
21041
|
-
|
|
21042
|
-
_this.internalValue = _this.otp.join('');
|
|
21043
|
-
});
|
|
21044
|
-
this.badInput = target.validity && target.validity.badInput;
|
|
21045
|
-
var nextIndex = otpIdx + 1;
|
|
21038
|
+
var inputDataArray = (value === null || value === void 0 ? void 0 : value.split('')) || [];
|
|
21046
21039
|
|
|
21047
|
-
|
|
21048
|
-
|
|
21049
|
-
|
|
21050
|
-
|
|
21051
|
-
|
|
21052
|
-
|
|
21053
|
-
|
|
21040
|
+
var newOtp = __spread(this.otp);
|
|
21041
|
+
|
|
21042
|
+
for (var i = 0; i < inputDataArray.length; i++) {
|
|
21043
|
+
var appIdx = index + i;
|
|
21044
|
+
if (appIdx > maxCursor) break;
|
|
21045
|
+
newOtp[appIdx] = inputDataArray[i].toString();
|
|
21046
|
+
}
|
|
21047
|
+
|
|
21048
|
+
if (!inputDataArray.length) {
|
|
21049
|
+
newOtp.splice(index, 1);
|
|
21050
|
+
}
|
|
21051
|
+
|
|
21052
|
+
this.otp = newOtp;
|
|
21053
|
+
this.internalValue = this.otp.join('');
|
|
21054
|
+
|
|
21055
|
+
if (index + inputDataArray.length >= +this.length) {
|
|
21056
|
+
this.onCompleted();
|
|
21057
|
+
this.clearFocus(index);
|
|
21058
|
+
} else if (inputDataArray.length) {
|
|
21059
|
+
this.changeFocus(index + inputDataArray.length);
|
|
21054
21060
|
}
|
|
21055
21061
|
},
|
|
21056
21062
|
clearFocus: function clearFocus(index) {
|
|
@@ -21077,39 +21083,6 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
21077
21083
|
if (this.hasMouseDown) this.focus(e, otpIdx);
|
|
21078
21084
|
_VInput__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.onMouseUp.call(this, e);
|
|
21079
21085
|
},
|
|
21080
|
-
onPaste: function onPaste(event, index) {
|
|
21081
|
-
var _a;
|
|
21082
|
-
|
|
21083
|
-
var maxCursor = +this.length - 1;
|
|
21084
|
-
var inputVal = (_a = event === null || event === void 0 ? void 0 : event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('Text');
|
|
21085
|
-
var inputDataArray = (inputVal === null || inputVal === void 0 ? void 0 : inputVal.split('')) || [];
|
|
21086
|
-
event.preventDefault();
|
|
21087
|
-
|
|
21088
|
-
var newOtp = __spread(this.otp);
|
|
21089
|
-
|
|
21090
|
-
for (var i = 0; i < inputDataArray.length; i++) {
|
|
21091
|
-
var appIdx = index + i;
|
|
21092
|
-
if (appIdx > maxCursor) break;
|
|
21093
|
-
newOtp[appIdx] = inputDataArray[i].toString();
|
|
21094
|
-
}
|
|
21095
|
-
|
|
21096
|
-
this.otp = newOtp;
|
|
21097
|
-
this.internalValue = this.otp.join('');
|
|
21098
|
-
var targetFocus = Math.min(index + inputDataArray.length, maxCursor);
|
|
21099
|
-
this.changeFocus(targetFocus);
|
|
21100
|
-
|
|
21101
|
-
if (newOtp.length === +this.length) {
|
|
21102
|
-
this.onCompleted();
|
|
21103
|
-
this.clearFocus(targetFocus);
|
|
21104
|
-
}
|
|
21105
|
-
},
|
|
21106
|
-
applyValue: function applyValue(index, inputVal, next) {
|
|
21107
|
-
var newOtp = __spread(this.otp);
|
|
21108
|
-
|
|
21109
|
-
newOtp[index] = inputVal;
|
|
21110
|
-
this.otp = newOtp;
|
|
21111
|
-
next();
|
|
21112
|
-
},
|
|
21113
21086
|
changeFocus: function changeFocus(index) {
|
|
21114
21087
|
this.onFocus(undefined, index || 0);
|
|
21115
21088
|
},
|
|
@@ -23849,7 +23822,9 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_14__["default"])(_
|
|
|
23849
23822
|
return "list-" + this._uid;
|
|
23850
23823
|
},
|
|
23851
23824
|
computedCounterValue: function computedCounterValue() {
|
|
23852
|
-
var
|
|
23825
|
+
var _a;
|
|
23826
|
+
|
|
23827
|
+
var value = this.multiple ? this.selectedItems : ((_a = this.getText(this.selectedItems[0])) !== null && _a !== void 0 ? _a : '').toString();
|
|
23853
23828
|
|
|
23854
23829
|
if (typeof this.counterValue === 'function') {
|
|
23855
23830
|
return this.counterValue(value);
|
|
@@ -24321,7 +24296,9 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_14__["default"])(_
|
|
|
24321
24296
|
this.keyboardLookupPrefix += e.key.toLowerCase();
|
|
24322
24297
|
this.keyboardLookupLastTime = now;
|
|
24323
24298
|
var index = this.allItems.findIndex(function (item) {
|
|
24324
|
-
var
|
|
24299
|
+
var _a;
|
|
24300
|
+
|
|
24301
|
+
var text = ((_a = _this.getText(item)) !== null && _a !== void 0 ? _a : '').toString();
|
|
24325
24302
|
return text.toLowerCase().startsWith(_this.keyboardLookupPrefix);
|
|
24326
24303
|
});
|
|
24327
24304
|
var item = this.allItems[index];
|
|
@@ -25401,7 +25378,6 @@ var BaseSlideGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"]
|
|
|
25401
25378
|
},
|
|
25402
25379
|
data: function data() {
|
|
25403
25380
|
return {
|
|
25404
|
-
internalItemsLength: 0,
|
|
25405
25381
|
isOverflowing: false,
|
|
25406
25382
|
resizeTimeout: 0,
|
|
25407
25383
|
startX: 0,
|
|
@@ -25482,12 +25458,33 @@ var BaseSlideGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"]
|
|
|
25482
25458
|
this.$refs.content.style.transform = "translateX(" + scroll + "px)";
|
|
25483
25459
|
}
|
|
25484
25460
|
},
|
|
25485
|
-
|
|
25486
|
-
|
|
25487
|
-
|
|
25488
|
-
|
|
25489
|
-
|
|
25490
|
-
|
|
25461
|
+
mounted: function mounted() {
|
|
25462
|
+
var _this = this;
|
|
25463
|
+
|
|
25464
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
25465
|
+
var obs_1 = new ResizeObserver(function () {
|
|
25466
|
+
_this.onResize();
|
|
25467
|
+
});
|
|
25468
|
+
obs_1.observe(this.$el);
|
|
25469
|
+
obs_1.observe(this.$refs.content);
|
|
25470
|
+
this.$on('hook:destroyed', function () {
|
|
25471
|
+
obs_1.disconnect();
|
|
25472
|
+
});
|
|
25473
|
+
} else {
|
|
25474
|
+
var itemsLength_1 = 0;
|
|
25475
|
+
this.$on('hook:beforeUpdate', function () {
|
|
25476
|
+
var _a;
|
|
25477
|
+
|
|
25478
|
+
itemsLength_1 = (((_a = _this.$refs.content) === null || _a === void 0 ? void 0 : _a.children) || []).length;
|
|
25479
|
+
});
|
|
25480
|
+
this.$on('hook:updated', function () {
|
|
25481
|
+
var _a;
|
|
25482
|
+
|
|
25483
|
+
if (itemsLength_1 === (((_a = _this.$refs.content) === null || _a === void 0 ? void 0 : _a.children) || []).length) return;
|
|
25484
|
+
|
|
25485
|
+
_this.setWidths();
|
|
25486
|
+
});
|
|
25487
|
+
}
|
|
25491
25488
|
},
|
|
25492
25489
|
methods: {
|
|
25493
25490
|
onScroll: function onScroll() {
|
|
@@ -28595,6 +28592,16 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
|
|
|
28595
28592
|
mounted: function mounted() {
|
|
28596
28593
|
var _this = this;
|
|
28597
28594
|
|
|
28595
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
28596
|
+
var obs_1 = new ResizeObserver(function () {
|
|
28597
|
+
_this.onResize();
|
|
28598
|
+
});
|
|
28599
|
+
obs_1.observe(this.$el);
|
|
28600
|
+
this.$on('hook:destroyed', function () {
|
|
28601
|
+
obs_1.disconnect();
|
|
28602
|
+
});
|
|
28603
|
+
}
|
|
28604
|
+
|
|
28598
28605
|
this.$nextTick(function () {
|
|
28599
28606
|
window.setTimeout(_this.callSlider, 30);
|
|
28600
28607
|
});
|
|
@@ -35046,7 +35053,7 @@ function () {
|
|
|
35046
35053
|
|
|
35047
35054
|
Vuetify.install = _install__WEBPACK_IMPORTED_MODULE_0__["install"];
|
|
35048
35055
|
Vuetify.installed = false;
|
|
35049
|
-
Vuetify.version = "2.6.
|
|
35056
|
+
Vuetify.version = "2.6.7";
|
|
35050
35057
|
Vuetify.config = {
|
|
35051
35058
|
silent: false
|
|
35052
35059
|
};
|