vuetify 2.6.0-beta.0 → 2.6.0
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/json/attributes.json +64 -60
- package/dist/json/tags.json +1 -0
- package/dist/json/web-types.json +128 -92
- package/dist/vuetify.css +37 -33
- package/dist/vuetify.css.map +1 -1
- package/dist/vuetify.js +244 -146
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VAutocomplete/VAutocomplete.js +20 -2
- package/es5/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/es5/components/VCalendar/VCalendarDaily.js +13 -15
- package/es5/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-events.js +4 -2
- package/es5/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/VCalendar/mixins/mouse.js +1 -1
- package/es5/components/VCalendar/mixins/mouse.js.map +1 -1
- package/es5/components/VCombobox/VCombobox.js +0 -5
- package/es5/components/VCombobox/VCombobox.js.map +1 -1
- package/es5/components/VDialog/VDialog.js +4 -2
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VList/VListItem.js +8 -1
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +1 -1
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +14 -25
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverlay/VOverlay.js +1 -0
- package/es5/components/VOverlay/VOverlay.js.map +1 -1
- package/es5/components/VRadioGroup/VRadioGroup.js +7 -0
- package/es5/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/es5/components/VRangeSlider/VRangeSlider.js +4 -1
- package/es5/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +1 -1
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VTabs/VTab.js +15 -4
- package/es5/components/VTabs/VTab.js.map +1 -1
- package/es5/components/VTextField/VTextField.js +6 -1
- package/es5/components/VTextField/VTextField.js.map +1 -1
- package/es5/components/VTreeview/VTreeviewNode.js +3 -1
- package/es5/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/es5/components/transitions/createTransition.js +0 -20
- package/es5/components/transitions/createTransition.js.map +1 -1
- package/es5/directives/click-outside/index.js +21 -10
- package/es5/directives/click-outside/index.js.map +1 -1
- package/es5/directives/intersect/index.js +16 -12
- package/es5/directives/intersect/index.js.map +1 -1
- package/es5/directives/mutate/index.js +10 -8
- package/es5/directives/mutate/index.js.map +1 -1
- package/es5/directives/resize/index.js +11 -8
- package/es5/directives/resize/index.js.map +1 -1
- package/es5/directives/scroll/index.js +13 -10
- package/es5/directives/scroll/index.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/locale/fr.js +1 -1
- package/es5/locale/fr.js.map +1 -1
- package/es5/mixins/detachable/index.js +32 -14
- package/es5/mixins/detachable/index.js.map +1 -1
- package/es5/mixins/intersectable/index.js +11 -2
- package/es5/mixins/intersectable/index.js.map +1 -1
- package/es5/mixins/overlayable/index.js +21 -11
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/es5/mixins/routable/index.js +9 -3
- package/es5/mixins/routable/index.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js +18 -2
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VCalendar/VCalendarDaily.js +9 -9
- package/lib/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-events.js +4 -2
- package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/VCalendar/mixins/mouse.js +1 -1
- package/lib/components/VCalendar/mixins/mouse.js.map +1 -1
- package/lib/components/VCombobox/VCombobox.js +0 -5
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +5 -2
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VList/VListItem.js +9 -1
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +1 -1
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +14 -25
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.js +1 -0
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.js +9 -0
- package/lib/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.js +4 -1
- package/lib/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +1 -1
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VTabs/VTab.js +16 -6
- package/lib/components/VTabs/VTab.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +8 -1
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewNode.js +3 -1
- package/lib/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/lib/components/transitions/createTransition.js +0 -6
- package/lib/components/transitions/createTransition.js.map +1 -1
- package/lib/directives/click-outside/index.js +22 -10
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/directives/intersect/index.js +16 -12
- package/lib/directives/intersect/index.js.map +1 -1
- package/lib/directives/mutate/index.js +10 -8
- package/lib/directives/mutate/index.js.map +1 -1
- package/lib/directives/resize/index.js +9 -6
- package/lib/directives/resize/index.js.map +1 -1
- package/lib/directives/scroll/index.js +9 -6
- package/lib/directives/scroll/index.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/locale/fr.js +1 -1
- package/lib/locale/fr.js.map +1 -1
- package/lib/mixins/detachable/index.js +28 -13
- package/lib/mixins/detachable/index.js.map +1 -1
- package/lib/mixins/intersectable/index.js +9 -2
- package/lib/mixins/intersectable/index.js.map +1 -1
- package/lib/mixins/overlayable/index.js +21 -11
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/lib/mixins/routable/index.js +12 -3
- package/lib/mixins/routable/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/VAutocomplete/VAutocomplete.ts +15 -2
- package/src/components/VCalendar/VCalendarDaily.ts +7 -7
- package/src/components/VCalendar/mixins/calendar-with-events.sass +7 -1
- package/src/components/VCalendar/mixins/calendar-with-events.ts +3 -3
- package/src/components/VCalendar/mixins/mouse.ts +1 -1
- package/src/components/VCombobox/VCombobox.ts +0 -5
- package/src/components/VCombobox/__tests__/VCombobox-multiple.spec.ts +113 -0
- package/src/components/VCombobox/__tests__/VCombobox.spec.ts +30 -0
- package/src/components/VDialog/VDialog.ts +4 -2
- package/src/components/VImg/__tests__/VImg.spec.ts +1 -1
- package/src/components/VList/VListItem.sass +2 -1
- package/src/components/VList/VListItem.ts +7 -1
- package/src/components/VList/__tests__/VListItem.spec.ts +16 -0
- package/src/components/VMenu/VMenu.ts +1 -1
- package/src/components/VOtpInput/VOtpInput.sass +13 -16
- package/src/components/VOtpInput/VOtpInput.ts +12 -28
- package/src/components/VOtpInput/_variables.scss +2 -4
- package/src/components/VOverlay/VOverlay.ts +1 -0
- package/src/components/VRadioGroup/VRadioGroup.ts +8 -0
- package/src/components/VRangeSlider/VRangeSlider.ts +3 -1
- package/src/components/VSelect/VSelect.ts +1 -1
- package/src/components/VTabs/VTab.ts +14 -4
- package/src/components/VTabs/VTabs.sass +5 -2
- package/src/components/VTextField/VTextField.ts +8 -3
- package/src/components/VTreeview/VTreeviewNode.ts +3 -1
- package/src/components/transitions/createTransition.ts +0 -8
- package/src/directives/click-outside/__tests__/click-outside-shadow-dom.spec.ts +9 -6
- package/src/directives/click-outside/__tests__/click-outside.spec.ts +7 -4
- package/src/directives/click-outside/index.ts +19 -10
- package/src/directives/intersect/__tests__/intersect.spec.ts +13 -10
- package/src/directives/intersect/index.ts +15 -13
- package/src/directives/mutate/__tests__/mutate.spec.ts +36 -17
- package/src/directives/mutate/index.ts +9 -9
- package/src/directives/resize/__tests__/resize.spec.ts +4 -4
- package/src/directives/resize/index.ts +11 -6
- package/src/directives/scroll/__tests__/scroll.spec.ts +9 -9
- package/src/directives/scroll/index.ts +8 -7
- package/src/globals.d.ts +10 -12
- package/src/locale/fr.ts +1 -1
- package/src/mixins/detachable/index.ts +32 -15
- package/src/mixins/intersectable/index.ts +11 -2
- package/src/mixins/overlayable/index.ts +22 -11
- package/src/mixins/routable/__tests__/routable.spec.ts +82 -5
- package/src/mixins/routable/index.ts +10 -3
- package/src/styles/generic/_transitions.scss +219 -215
- package/src/styles/settings/_variables.scss +10 -9
package/dist/vuetify.js
CHANGED
|
@@ -1136,13 +1136,31 @@ var defaultMenuProps = __assign(__assign({}, _VSelect_VSelect__WEBPACK_IMPORTED_
|
|
|
1136
1136
|
|
|
1137
1137
|
|
|
1138
1138
|
if (val === oldVal) return;
|
|
1139
|
-
|
|
1139
|
+
|
|
1140
|
+
if (!this.autoSelectFirst) {
|
|
1141
|
+
var preSelectedItem_1 = oldVal[this.$refs.menu.listIndex];
|
|
1142
|
+
|
|
1143
|
+
if (preSelectedItem_1) {
|
|
1144
|
+
this.setMenuIndex(val.findIndex(function (i) {
|
|
1145
|
+
return i === preSelectedItem_1;
|
|
1146
|
+
}));
|
|
1147
|
+
} else {
|
|
1148
|
+
this.setMenuIndex(-1);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
this.$emit('update:list-index', this.$refs.menu.listIndex);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1140
1154
|
this.$nextTick(function () {
|
|
1141
1155
|
if (!_this.internalSearch || val.length !== 1 && !_this.autoSelectFirst) return;
|
|
1142
1156
|
|
|
1143
1157
|
_this.$refs.menu.getTiles();
|
|
1144
1158
|
|
|
1145
|
-
_this.
|
|
1159
|
+
if (_this.autoSelectFirst && val.length) {
|
|
1160
|
+
_this.setMenuIndex(0);
|
|
1161
|
+
|
|
1162
|
+
_this.$emit('update:list-index', _this.$refs.menu.listIndex);
|
|
1163
|
+
}
|
|
1146
1164
|
});
|
|
1147
1165
|
},
|
|
1148
1166
|
onInternalSearchChanged: function onInternalSearchChanged() {
|
|
@@ -3623,11 +3641,16 @@ var __spread = undefined && undefined.__spread || function () {
|
|
|
3623
3641
|
return this.days.map(this.genDay);
|
|
3624
3642
|
},
|
|
3625
3643
|
genDay: function genDay(day, index) {
|
|
3644
|
+
var _this = this;
|
|
3645
|
+
|
|
3626
3646
|
return this.$createElement('div', {
|
|
3627
3647
|
key: day.date,
|
|
3628
3648
|
staticClass: 'v-calendar-daily__day',
|
|
3629
|
-
class: this.getRelativeClasses(day)
|
|
3630
|
-
|
|
3649
|
+
class: this.getRelativeClasses(day),
|
|
3650
|
+
on: this.getDefaultMouseEventHandlers(':time', function (e) {
|
|
3651
|
+
return _this.getSlotScope(_this.getTimestampAtEvent(e, day));
|
|
3652
|
+
})
|
|
3653
|
+
}, __spread(this.genDayIntervals(index), this.genDayBody(day)));
|
|
3631
3654
|
},
|
|
3632
3655
|
genDayBody: function genDayBody(day) {
|
|
3633
3656
|
var _this = this;
|
|
@@ -3636,14 +3659,10 @@ var __spread = undefined && undefined.__spread || function () {
|
|
|
3636
3659
|
return _this.getSlotScope(day);
|
|
3637
3660
|
}) || [];
|
|
3638
3661
|
},
|
|
3639
|
-
genDayIntervals: function genDayIntervals(index
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
return this.intervals[index].map(function (i) {
|
|
3643
|
-
return _this.genDayInterval(i, day);
|
|
3644
|
-
});
|
|
3662
|
+
genDayIntervals: function genDayIntervals(index) {
|
|
3663
|
+
return this.intervals[index].map(this.genDayInterval);
|
|
3645
3664
|
},
|
|
3646
|
-
genDayInterval: function genDayInterval(interval
|
|
3665
|
+
genDayInterval: function genDayInterval(interval) {
|
|
3647
3666
|
var _this = this;
|
|
3648
3667
|
|
|
3649
3668
|
var height = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.intervalHeight);
|
|
@@ -3653,10 +3672,7 @@ var __spread = undefined && undefined.__spread || function () {
|
|
|
3653
3672
|
staticClass: 'v-calendar-daily__day-interval',
|
|
3654
3673
|
style: __assign({
|
|
3655
3674
|
height: height
|
|
3656
|
-
}, styler(interval))
|
|
3657
|
-
on: this.getDefaultMouseEventHandlers(':time', function (e) {
|
|
3658
|
-
return _this.getSlotScope(_this.getTimestampAtEvent(e, day));
|
|
3659
|
-
})
|
|
3675
|
+
}, styler(interval))
|
|
3660
3676
|
};
|
|
3661
3677
|
var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getSlot"])(this, 'interval', function () {
|
|
3662
3678
|
return _this.getSlotScope(interval);
|
|
@@ -4511,13 +4527,15 @@ var MINUTES_IN_DAY = 1440;
|
|
|
4511
4527
|
var name = _this.eventNameFunction(event, timedEvent);
|
|
4512
4528
|
|
|
4513
4529
|
if (event.start.hasTime) {
|
|
4530
|
+
var eventSummaryClass = 'v-event-summary';
|
|
4531
|
+
|
|
4514
4532
|
if (timedEvent) {
|
|
4515
4533
|
var time = timeSummary();
|
|
4516
4534
|
var delimiter = singline ? ', ' : '<br>';
|
|
4517
|
-
return "<strong>" + name + "</strong>" + delimiter + time;
|
|
4535
|
+
return "<span class=\"" + eventSummaryClass + "\"><strong>" + name + "</strong>" + delimiter + time + "</span>";
|
|
4518
4536
|
} else {
|
|
4519
4537
|
var time = formatTime(event.start, true);
|
|
4520
|
-
return "<strong>" + time + "</strong> " + name;
|
|
4538
|
+
return "<span class=\"" + eventSummaryClass + "\"><strong>" + time + "</strong> " + name + "</span>";
|
|
4521
4539
|
}
|
|
4522
4540
|
}
|
|
4523
4541
|
|
|
@@ -4968,7 +4986,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4968
4986
|
// This block of code aims to make sure touchEvent is always dispatched from the element that is being pointed at
|
|
4969
4987
|
|
|
4970
4988
|
|
|
4971
|
-
if (e
|
|
4989
|
+
if (e && 'touches' in e) {
|
|
4972
4990
|
var currentTarget = document.elementFromPoint(e.changedTouches[0].clientX, e.changedTouches[0].clientY);
|
|
4973
4991
|
|
|
4974
4992
|
if (currentTarget && !((_a = e.target) === null || _a === void 0 ? void 0 : _a.isSameNode(currentTarget)) && ((_b = e.target) === null || _b === void 0 ? void 0 : _b.className) === currentTarget.className) {
|
|
@@ -9191,10 +9209,6 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
9191
9209
|
if (this.getMenuIndex() > -1) return;
|
|
9192
9210
|
this.$nextTick(this.updateSelf);
|
|
9193
9211
|
},
|
|
9194
|
-
onFilteredItemsChanged: function onFilteredItemsChanged(val, oldVal) {
|
|
9195
|
-
if (!this.autoSelectFirst) return;
|
|
9196
|
-
_VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.onFilteredItemsChanged.call(this, val, oldVal);
|
|
9197
|
-
},
|
|
9198
9212
|
onKeyDown: function onKeyDown(e) {
|
|
9199
9213
|
var keyCode = e.keyCode;
|
|
9200
9214
|
|
|
@@ -14909,9 +14923,11 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(_
|
|
|
14909
14923
|
|
|
14910
14924
|
this.$nextTick(function () {
|
|
14911
14925
|
_this.$nextTick(function () {
|
|
14912
|
-
_this.
|
|
14926
|
+
if (!_this.$refs.content.contains(document.activeElement)) {
|
|
14927
|
+
_this.previousActiveElement = document.activeElement;
|
|
14913
14928
|
|
|
14914
|
-
|
|
14929
|
+
_this.$refs.content.focus();
|
|
14930
|
+
}
|
|
14915
14931
|
|
|
14916
14932
|
_this.bind();
|
|
14917
14933
|
});
|
|
@@ -19173,6 +19189,13 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
|
|
|
19173
19189
|
}
|
|
19174
19190
|
|
|
19175
19191
|
return attrs;
|
|
19192
|
+
},
|
|
19193
|
+
toggle: function toggle() {
|
|
19194
|
+
if (this.to && this.inputValue === undefined) {
|
|
19195
|
+
this.isActive = !this.isActive;
|
|
19196
|
+
}
|
|
19197
|
+
|
|
19198
|
+
this.$emit('change');
|
|
19176
19199
|
}
|
|
19177
19200
|
},
|
|
19178
19201
|
render: function render(h) {
|
|
@@ -19202,7 +19225,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_m
|
|
|
19202
19225
|
active: this.isActive,
|
|
19203
19226
|
toggle: this.toggle
|
|
19204
19227
|
}) : this.$slots.default;
|
|
19205
|
-
return h(tag, this.setTextColor(this.color, data), children);
|
|
19228
|
+
return h(tag, this.isActive ? this.setTextColor(this.color, data) : data, children);
|
|
19206
19229
|
}
|
|
19207
19230
|
}));
|
|
19208
19231
|
|
|
@@ -19987,7 +20010,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_12__["default"])(_
|
|
|
19987
20010
|
},
|
|
19988
20011
|
getTiles: function getTiles() {
|
|
19989
20012
|
if (!this.$refs.content) return;
|
|
19990
|
-
this.tiles = Array.from(this.$refs.content.querySelectorAll('.v-list-item'));
|
|
20013
|
+
this.tiles = Array.from(this.$refs.content.querySelectorAll('.v-list-item, .v-divider, .v-subheader'));
|
|
19991
20014
|
},
|
|
19992
20015
|
mouseEnterHandler: function mouseEnterHandler() {
|
|
19993
20016
|
var _this = this;
|
|
@@ -20770,17 +20793,14 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
20770
20793
|
inheritAttrs: false,
|
|
20771
20794
|
props: {
|
|
20772
20795
|
length: {
|
|
20773
|
-
type: Number,
|
|
20796
|
+
type: [Number, String],
|
|
20774
20797
|
default: 6
|
|
20775
20798
|
},
|
|
20776
20799
|
type: {
|
|
20777
20800
|
type: String,
|
|
20778
20801
|
default: 'text'
|
|
20779
20802
|
},
|
|
20780
|
-
plain:
|
|
20781
|
-
type: Boolean,
|
|
20782
|
-
default: false
|
|
20783
|
-
}
|
|
20803
|
+
plain: Boolean
|
|
20784
20804
|
},
|
|
20785
20805
|
data: function data() {
|
|
20786
20806
|
return {
|
|
@@ -20861,25 +20881,17 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
20861
20881
|
genDefaultSlot: function genDefaultSlot(otpIdx) {
|
|
20862
20882
|
return [this.genFieldset(), this.genTextFieldSlot(otpIdx)];
|
|
20863
20883
|
},
|
|
20864
|
-
genCol: function genCol(otpIdx) {
|
|
20865
|
-
var node = this.$createElement('div', this.setTextColor(this.validationState, {
|
|
20866
|
-
staticClass: 'v-input',
|
|
20867
|
-
class: this.classes
|
|
20868
|
-
}), [this.genControl(otpIdx)]);
|
|
20869
|
-
return this.$createElement('div', {
|
|
20870
|
-
staticClass: 'col-input'
|
|
20871
|
-
}, [node]);
|
|
20872
|
-
},
|
|
20873
20884
|
genContent: function genContent() {
|
|
20874
20885
|
var _this = this;
|
|
20875
20886
|
|
|
20876
|
-
|
|
20877
|
-
|
|
20887
|
+
return Array.from({
|
|
20888
|
+
length: +this.length
|
|
20889
|
+
}, function (_, i) {
|
|
20890
|
+
return _this.$createElement('div', _this.setTextColor(_this.validationState, {
|
|
20891
|
+
staticClass: 'v-input',
|
|
20892
|
+
class: _this.classes
|
|
20893
|
+
}), [_this.genControl(i)]);
|
|
20878
20894
|
});
|
|
20879
|
-
|
|
20880
|
-
return [this.$createElement('div', {
|
|
20881
|
-
staticClass: 'row-container'
|
|
20882
|
-
}, cols)];
|
|
20883
20895
|
},
|
|
20884
20896
|
genFieldset: function genFieldset() {
|
|
20885
20897
|
return this.$createElement('fieldset', {
|
|
@@ -20987,7 +20999,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
20987
20999
|
var nextIndex = otpIdx + 1;
|
|
20988
21000
|
|
|
20989
21001
|
if (value) {
|
|
20990
|
-
if (nextIndex < this.length) {
|
|
21002
|
+
if (nextIndex < +this.length) {
|
|
20991
21003
|
this.changeFocus(nextIndex);
|
|
20992
21004
|
} else {
|
|
20993
21005
|
this.clearFocus(otpIdx);
|
|
@@ -21022,7 +21034,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
21022
21034
|
onPaste: function onPaste(event, index) {
|
|
21023
21035
|
var _a;
|
|
21024
21036
|
|
|
21025
|
-
var maxCursor = this.length - 1;
|
|
21037
|
+
var maxCursor = +this.length - 1;
|
|
21026
21038
|
var inputVal = (_a = event === null || event === void 0 ? void 0 : event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('Text');
|
|
21027
21039
|
var inputDataArray = (inputVal === null || inputVal === void 0 ? void 0 : inputVal.split('')) || [];
|
|
21028
21040
|
event.preventDefault();
|
|
@@ -21039,7 +21051,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
21039
21051
|
var targetFocus = Math.min(index + inputDataArray.length, maxCursor);
|
|
21040
21052
|
this.changeFocus(targetFocus);
|
|
21041
21053
|
|
|
21042
|
-
if (newOtp.length === this.length) {
|
|
21054
|
+
if (newOtp.length === +this.length) {
|
|
21043
21055
|
this.onCompleted();
|
|
21044
21056
|
this.clearFocus(targetFocus);
|
|
21045
21057
|
}
|
|
@@ -21081,13 +21093,13 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(_V
|
|
|
21081
21093
|
}
|
|
21082
21094
|
|
|
21083
21095
|
if (eventKey === 'ArrowRight') {
|
|
21084
|
-
return index + 1 < this.length && this.changeFocus(index + 1);
|
|
21096
|
+
return index + 1 < +this.length && this.changeFocus(index + 1);
|
|
21085
21097
|
}
|
|
21086
21098
|
},
|
|
21087
21099
|
onCompleted: function onCompleted() {
|
|
21088
21100
|
var rsp = this.otp.join('');
|
|
21089
21101
|
|
|
21090
|
-
if (rsp.length === this.length) {
|
|
21102
|
+
if (rsp.length === +this.length) {
|
|
21091
21103
|
this.$emit('finish', rsp);
|
|
21092
21104
|
}
|
|
21093
21105
|
}
|
|
@@ -21390,6 +21402,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
21390
21402
|
if (this.isActive) children.push(this.genContent());
|
|
21391
21403
|
return h('div', {
|
|
21392
21404
|
staticClass: 'v-overlay',
|
|
21405
|
+
on: this.$listeners,
|
|
21393
21406
|
class: this.classes,
|
|
21394
21407
|
style: this.styles
|
|
21395
21408
|
}, children);
|
|
@@ -22835,6 +22848,13 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_m
|
|
|
22835
22848
|
return label;
|
|
22836
22849
|
},
|
|
22837
22850
|
onClick: _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_3__["BaseItemGroup"].options.methods.onClick
|
|
22851
|
+
},
|
|
22852
|
+
render: function render(h) {
|
|
22853
|
+
var vnode = _VInput__WEBPACK_IMPORTED_MODULE_2__["default"].options.render.call(this, h);
|
|
22854
|
+
|
|
22855
|
+
this._b(vnode.data, 'div', this.attrs$);
|
|
22856
|
+
|
|
22857
|
+
return vnode;
|
|
22838
22858
|
}
|
|
22839
22859
|
}));
|
|
22840
22860
|
|
|
@@ -23166,7 +23186,10 @@ var __spread = undefined && undefined.__spread || function () {
|
|
|
23166
23186
|
this.thumbPressed = true;
|
|
23167
23187
|
}
|
|
23168
23188
|
|
|
23169
|
-
this.activeThumb
|
|
23189
|
+
if (this.activeThumb === null) {
|
|
23190
|
+
this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value);
|
|
23191
|
+
}
|
|
23192
|
+
|
|
23170
23193
|
this.setInternalValue(value);
|
|
23171
23194
|
},
|
|
23172
23195
|
onKeyDown: function onKeyDown(e) {
|
|
@@ -24259,7 +24282,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_14__["default"])(_
|
|
|
24259
24282
|
if (!menu) return; // If menu is active, allow default
|
|
24260
24283
|
// listIndex change from menu
|
|
24261
24284
|
|
|
24262
|
-
if (this.isMenuActive &&
|
|
24285
|
+
if (this.isMenuActive && [_util_helpers__WEBPACK_IMPORTED_MODULE_12__["keyCodes"].up, _util_helpers__WEBPACK_IMPORTED_MODULE_12__["keyCodes"].down, _util_helpers__WEBPACK_IMPORTED_MODULE_12__["keyCodes"].home, _util_helpers__WEBPACK_IMPORTED_MODULE_12__["keyCodes"].end, _util_helpers__WEBPACK_IMPORTED_MODULE_12__["keyCodes"].enter].includes(keyCode)) {
|
|
24263
24286
|
this.$nextTick(function () {
|
|
24264
24287
|
menu.changeListIndex(e);
|
|
24265
24288
|
|
|
@@ -28256,18 +28279,29 @@ Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_0__["factory"])('tabsBar'), _m
|
|
|
28256
28279
|
return to.replace('#', '');
|
|
28257
28280
|
}
|
|
28258
28281
|
},
|
|
28259
|
-
mounted: function mounted() {
|
|
28260
|
-
this.onRouteChange();
|
|
28261
|
-
},
|
|
28262
28282
|
methods: {
|
|
28263
28283
|
click: function click(e) {
|
|
28264
|
-
//
|
|
28284
|
+
// Prevent keyboard actions
|
|
28285
|
+
// from children elements
|
|
28286
|
+
// within disabled tabs
|
|
28287
|
+
if (this.disabled) {
|
|
28288
|
+
e.preventDefault();
|
|
28289
|
+
return;
|
|
28290
|
+
} // If user provides an
|
|
28265
28291
|
// actual link, do not
|
|
28266
28292
|
// prevent default
|
|
28293
|
+
|
|
28294
|
+
|
|
28267
28295
|
if (this.href && this.href.indexOf('#') > -1) e.preventDefault();
|
|
28268
28296
|
if (e.detail) this.$el.blur();
|
|
28269
28297
|
this.$emit('click', e);
|
|
28270
28298
|
this.to || this.toggle();
|
|
28299
|
+
},
|
|
28300
|
+
toggle: function toggle() {
|
|
28301
|
+
// VItemGroup treats a change event as a click
|
|
28302
|
+
if (!this.isActive) {
|
|
28303
|
+
this.$emit('change');
|
|
28304
|
+
}
|
|
28271
28305
|
}
|
|
28272
28306
|
},
|
|
28273
28307
|
render: function render(h) {
|
|
@@ -29230,7 +29264,12 @@ var dirtyTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'mo
|
|
|
29230
29264
|
}, this.setLabelWidth);
|
|
29231
29265
|
this.autofocus && this.tryAutofocus();
|
|
29232
29266
|
requestAnimationFrame(function () {
|
|
29233
|
-
|
|
29267
|
+
_this.isBooted = true;
|
|
29268
|
+
requestAnimationFrame(function () {
|
|
29269
|
+
if (!_this.isIntersecting) {
|
|
29270
|
+
_this.onResize();
|
|
29271
|
+
}
|
|
29272
|
+
});
|
|
29234
29273
|
});
|
|
29235
29274
|
},
|
|
29236
29275
|
methods: {
|
|
@@ -32027,6 +32066,7 @@ var VTreeviewNodeProps = {
|
|
|
32027
32066
|
type: String,
|
|
32028
32067
|
default: 'primary'
|
|
32029
32068
|
},
|
|
32069
|
+
disablePerNode: Boolean,
|
|
32030
32070
|
expandIcon: {
|
|
32031
32071
|
type: String,
|
|
32032
32072
|
default: '$subgroup'
|
|
@@ -32112,7 +32152,7 @@ var VTreeviewNode = baseMixins.extend().extend({
|
|
|
32112
32152
|
},
|
|
32113
32153
|
computed: {
|
|
32114
32154
|
disabled: function disabled() {
|
|
32115
|
-
return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getObjectValueByPath"])(this.item, this.itemDisabled) || this.parentIsDisabled && this.selectionType === 'leaf';
|
|
32155
|
+
return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getObjectValueByPath"])(this.item, this.itemDisabled) || !this.disablePerNode && this.parentIsDisabled && this.selectionType === 'leaf';
|
|
32116
32156
|
},
|
|
32117
32157
|
key: function key() {
|
|
32118
32158
|
return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getObjectValueByPath"])(this.item, this.itemKey);
|
|
@@ -32300,6 +32340,7 @@ var VTreeviewNode = baseMixins.extend().extend({
|
|
|
32300
32340
|
selectable: this.selectable,
|
|
32301
32341
|
selectedColor: this.selectedColor,
|
|
32302
32342
|
color: this.color,
|
|
32343
|
+
disablePerNode: this.disablePerNode,
|
|
32303
32344
|
expandIcon: this.expandIcon,
|
|
32304
32345
|
indeterminateIcon: this.indeterminateIcon,
|
|
32305
32346
|
offIcon: this.offIcon,
|
|
@@ -33718,16 +33759,8 @@ function createSimpleTransition(name, origin, mode) {
|
|
|
33718
33759
|
|
|
33719
33760
|
if (context.props.hideOnLeave) {
|
|
33720
33761
|
data.on.leave = mergeTransitions(data.on.leave, function (el) {
|
|
33721
|
-
el._initialDisplay = [el.style.display, el.style.getPropertyPriority('display')];
|
|
33722
33762
|
el.style.setProperty('display', 'none', 'important');
|
|
33723
33763
|
});
|
|
33724
|
-
data.on.afterLeave = mergeTransitions(data.on.afterLeave, function (el) {
|
|
33725
|
-
var _a;
|
|
33726
|
-
|
|
33727
|
-
if (el) {
|
|
33728
|
-
el._initialDisplay ? (_a = el.style).setProperty.apply(_a, __spread(['display'], el._initialDisplay)) : el.style.removeProperty('display');
|
|
33729
|
-
}
|
|
33730
|
-
});
|
|
33731
33764
|
}
|
|
33732
33765
|
|
|
33733
33766
|
return h(tag, Object(_util_mergeData__WEBPACK_IMPORTED_MODULE_0__["default"])(context.data, data), context.children);
|
|
@@ -33990,7 +34023,7 @@ function checkIsActive(e, binding) {
|
|
|
33990
34023
|
return isActive(e);
|
|
33991
34024
|
}
|
|
33992
34025
|
|
|
33993
|
-
function directive(e, el, binding) {
|
|
34026
|
+
function directive(e, el, binding, vnode) {
|
|
33994
34027
|
var handler = typeof binding.value === 'function' ? binding.value : binding.value.handler;
|
|
33995
34028
|
el._clickOutside.lastMousedownWasOutside && checkEvent(e, el, binding) && setTimeout(function () {
|
|
33996
34029
|
checkIsActive(e, binding) && handler && handler(e);
|
|
@@ -34012,9 +34045,9 @@ var ClickOutside = {
|
|
|
34012
34045
|
// sure that the root element is
|
|
34013
34046
|
// available, iOS does not support
|
|
34014
34047
|
// clicks on body
|
|
34015
|
-
inserted: function inserted(el, binding) {
|
|
34048
|
+
inserted: function inserted(el, binding, vnode) {
|
|
34016
34049
|
var onClick = function onClick(e) {
|
|
34017
|
-
return directive(e, el, binding);
|
|
34050
|
+
return directive(e, el, binding, vnode);
|
|
34018
34051
|
};
|
|
34019
34052
|
|
|
34020
34053
|
var onMousedown = function onMousedown(e) {
|
|
@@ -34025,20 +34058,31 @@ var ClickOutside = {
|
|
|
34025
34058
|
app.addEventListener('click', onClick, true);
|
|
34026
34059
|
app.addEventListener('mousedown', onMousedown, true);
|
|
34027
34060
|
});
|
|
34028
|
-
|
|
34029
|
-
|
|
34061
|
+
|
|
34062
|
+
if (!el._clickOutside) {
|
|
34063
|
+
el._clickOutside = {
|
|
34064
|
+
lastMousedownWasOutside: true
|
|
34065
|
+
};
|
|
34066
|
+
}
|
|
34067
|
+
|
|
34068
|
+
el._clickOutside[vnode.context._uid] = {
|
|
34030
34069
|
onClick: onClick,
|
|
34031
34070
|
onMousedown: onMousedown
|
|
34032
34071
|
};
|
|
34033
34072
|
},
|
|
34034
|
-
unbind: function unbind(el) {
|
|
34073
|
+
unbind: function unbind(el, binding, vnode) {
|
|
34035
34074
|
if (!el._clickOutside) return;
|
|
34036
34075
|
handleShadow(el, function (app) {
|
|
34037
|
-
|
|
34038
|
-
|
|
34039
|
-
app
|
|
34076
|
+
var _a;
|
|
34077
|
+
|
|
34078
|
+
if (!app || !((_a = el._clickOutside) === null || _a === void 0 ? void 0 : _a[vnode.context._uid])) return;
|
|
34079
|
+
var _b = el._clickOutside[vnode.context._uid],
|
|
34080
|
+
onClick = _b.onClick,
|
|
34081
|
+
onMousedown = _b.onMousedown;
|
|
34082
|
+
app.removeEventListener('click', onClick, true);
|
|
34083
|
+
app.removeEventListener('mousedown', onMousedown, true);
|
|
34040
34084
|
});
|
|
34041
|
-
delete el._clickOutside;
|
|
34085
|
+
delete el._clickOutside[vnode.context._uid];
|
|
34042
34086
|
}
|
|
34043
34087
|
};
|
|
34044
34088
|
/* harmony default export */ __webpack_exports__["default"] = (ClickOutside);
|
|
@@ -34097,7 +34141,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34097
34141
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Intersect", function() { return Intersect; });
|
|
34098
34142
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
34099
34143
|
|
|
34100
|
-
function inserted(el, binding) {
|
|
34144
|
+
function inserted(el, binding, vnode) {
|
|
34101
34145
|
if (typeof window === 'undefined' || !('IntersectionObserver' in window)) return;
|
|
34102
34146
|
var modifiers = binding.modifiers || {};
|
|
34103
34147
|
var value = binding.value;
|
|
@@ -34110,39 +34154,42 @@ function inserted(el, binding) {
|
|
|
34110
34154
|
options = _a.options;
|
|
34111
34155
|
|
|
34112
34156
|
var observer = new IntersectionObserver(function (entries, observer) {
|
|
34157
|
+
var _a;
|
|
34158
|
+
|
|
34113
34159
|
if (entries === void 0) {
|
|
34114
34160
|
entries = [];
|
|
34115
34161
|
}
|
|
34116
|
-
/* istanbul ignore if */
|
|
34117
34162
|
|
|
34163
|
+
var _observe = (_a = el._observe) === null || _a === void 0 ? void 0 : _a[vnode.context._uid];
|
|
34118
34164
|
|
|
34119
|
-
if (!
|
|
34165
|
+
if (!_observe) return; // Just in case, should never fire
|
|
34120
34166
|
|
|
34121
34167
|
var isIntersecting = entries.some(function (entry) {
|
|
34122
34168
|
return entry.isIntersecting;
|
|
34123
34169
|
}); // If is not quiet or has already been
|
|
34124
34170
|
// initted, invoke the user callback
|
|
34125
34171
|
|
|
34126
|
-
if (handler && (!modifiers.quiet ||
|
|
34172
|
+
if (handler && (!modifiers.quiet || _observe.init) && (!modifiers.once || isIntersecting || _observe.init)) {
|
|
34127
34173
|
handler(entries, observer, isIntersecting);
|
|
34128
34174
|
}
|
|
34129
34175
|
|
|
34130
|
-
if (isIntersecting && modifiers.once) unbind(el);else
|
|
34176
|
+
if (isIntersecting && modifiers.once) unbind(el, binding, vnode);else _observe.init = true;
|
|
34131
34177
|
}, options);
|
|
34132
|
-
el._observe =
|
|
34178
|
+
el._observe = Object(el._observe);
|
|
34179
|
+
el._observe[vnode.context._uid] = {
|
|
34133
34180
|
init: false,
|
|
34134
34181
|
observer: observer
|
|
34135
34182
|
};
|
|
34136
34183
|
observer.observe(el);
|
|
34137
34184
|
}
|
|
34138
34185
|
|
|
34139
|
-
function unbind(el) {
|
|
34140
|
-
|
|
34141
|
-
if (!el._observe) return;
|
|
34142
|
-
|
|
34143
|
-
el._observe.observer.unobserve(el);
|
|
34186
|
+
function unbind(el, binding, vnode) {
|
|
34187
|
+
var _a;
|
|
34144
34188
|
|
|
34145
|
-
|
|
34189
|
+
var observe = (_a = el._observe) === null || _a === void 0 ? void 0 : _a[vnode.context._uid];
|
|
34190
|
+
if (!observe) return;
|
|
34191
|
+
observe.observer.unobserve(el);
|
|
34192
|
+
delete el._observe[vnode.context._uid];
|
|
34146
34193
|
}
|
|
34147
34194
|
|
|
34148
34195
|
var Intersect = {
|
|
@@ -34178,7 +34225,7 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
34178
34225
|
return t;
|
|
34179
34226
|
};
|
|
34180
34227
|
|
|
34181
|
-
function inserted(el, binding) {
|
|
34228
|
+
function inserted(el, binding, vnode) {
|
|
34182
34229
|
var modifiers = binding.modifiers || {};
|
|
34183
34230
|
var value = binding.value;
|
|
34184
34231
|
var callback = _typeof(value) === 'object' ? value.handler : value;
|
|
@@ -34207,21 +34254,23 @@ function inserted(el, binding) {
|
|
|
34207
34254
|
|
|
34208
34255
|
callback(mutationsList, observer); // If has the once modifier, unbind
|
|
34209
34256
|
|
|
34210
|
-
once && unbind(el);
|
|
34257
|
+
once && unbind(el, binding, vnode);
|
|
34211
34258
|
});
|
|
34212
34259
|
observer.observe(el, options);
|
|
34213
|
-
el._mutate =
|
|
34260
|
+
el._mutate = Object(el._mutate);
|
|
34261
|
+
el._mutate[vnode.context._uid] = {
|
|
34214
34262
|
observer: observer
|
|
34215
34263
|
};
|
|
34216
34264
|
}
|
|
34217
34265
|
|
|
34218
|
-
function unbind(el) {
|
|
34219
|
-
|
|
34220
|
-
|
|
34266
|
+
function unbind(el, binding, vnode) {
|
|
34267
|
+
var _a;
|
|
34268
|
+
|
|
34269
|
+
if (!((_a = el._mutate) === null || _a === void 0 ? void 0 : _a[vnode.context._uid])) return;
|
|
34221
34270
|
|
|
34222
|
-
el._mutate.observer.disconnect();
|
|
34271
|
+
el._mutate[vnode.context._uid].observer.disconnect();
|
|
34223
34272
|
|
|
34224
|
-
delete el._mutate;
|
|
34273
|
+
delete el._mutate[vnode.context._uid];
|
|
34225
34274
|
}
|
|
34226
34275
|
|
|
34227
34276
|
var Mutate = {
|
|
@@ -34242,13 +34291,14 @@ var Mutate = {
|
|
|
34242
34291
|
"use strict";
|
|
34243
34292
|
__webpack_require__.r(__webpack_exports__);
|
|
34244
34293
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Resize", function() { return Resize; });
|
|
34245
|
-
function inserted(el, binding) {
|
|
34294
|
+
function inserted(el, binding, vnode) {
|
|
34246
34295
|
var callback = binding.value;
|
|
34247
34296
|
var options = binding.options || {
|
|
34248
34297
|
passive: true
|
|
34249
34298
|
};
|
|
34250
34299
|
window.addEventListener('resize', callback, options);
|
|
34251
|
-
el._onResize =
|
|
34300
|
+
el._onResize = Object(el._onResize);
|
|
34301
|
+
el._onResize[vnode.context._uid] = {
|
|
34252
34302
|
callback: callback,
|
|
34253
34303
|
options: options
|
|
34254
34304
|
};
|
|
@@ -34258,13 +34308,15 @@ function inserted(el, binding) {
|
|
|
34258
34308
|
}
|
|
34259
34309
|
}
|
|
34260
34310
|
|
|
34261
|
-
function unbind(el) {
|
|
34262
|
-
|
|
34263
|
-
|
|
34264
|
-
|
|
34265
|
-
|
|
34311
|
+
function unbind(el, binding, vnode) {
|
|
34312
|
+
var _a;
|
|
34313
|
+
|
|
34314
|
+
if (!((_a = el._onResize) === null || _a === void 0 ? void 0 : _a[vnode.context._uid])) return;
|
|
34315
|
+
var _b = el._onResize[vnode.context._uid],
|
|
34316
|
+
callback = _b.callback,
|
|
34317
|
+
options = _b.options;
|
|
34266
34318
|
window.removeEventListener('resize', callback, options);
|
|
34267
|
-
delete el._onResize;
|
|
34319
|
+
delete el._onResize[vnode.context._uid];
|
|
34268
34320
|
}
|
|
34269
34321
|
|
|
34270
34322
|
var Resize = {
|
|
@@ -34696,7 +34748,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34696
34748
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Scroll", function() { return Scroll; });
|
|
34697
34749
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
34698
34750
|
|
|
34699
|
-
function inserted(el, binding) {
|
|
34751
|
+
function inserted(el, binding, vnode) {
|
|
34700
34752
|
var _a = (binding.modifiers || {}).self,
|
|
34701
34753
|
self = _a === void 0 ? false : _a;
|
|
34702
34754
|
var value = binding.value;
|
|
@@ -34707,7 +34759,8 @@ function inserted(el, binding) {
|
|
|
34707
34759
|
var target = self ? el : binding.arg ? document.querySelector(binding.arg) : window;
|
|
34708
34760
|
if (!target) return;
|
|
34709
34761
|
target.addEventListener('scroll', handler, options);
|
|
34710
|
-
el._onScroll =
|
|
34762
|
+
el._onScroll = Object(el._onScroll);
|
|
34763
|
+
el._onScroll[vnode.context._uid] = {
|
|
34711
34764
|
handler: handler,
|
|
34712
34765
|
options: options,
|
|
34713
34766
|
// Don't reference self
|
|
@@ -34715,15 +34768,17 @@ function inserted(el, binding) {
|
|
|
34715
34768
|
};
|
|
34716
34769
|
}
|
|
34717
34770
|
|
|
34718
|
-
function unbind(el) {
|
|
34719
|
-
|
|
34720
|
-
|
|
34721
|
-
|
|
34722
|
-
|
|
34723
|
-
|
|
34724
|
-
|
|
34771
|
+
function unbind(el, binding, vnode) {
|
|
34772
|
+
var _a;
|
|
34773
|
+
|
|
34774
|
+
if (!((_a = el._onScroll) === null || _a === void 0 ? void 0 : _a[vnode.context._uid])) return;
|
|
34775
|
+
var _b = el._onScroll[vnode.context._uid],
|
|
34776
|
+
handler = _b.handler,
|
|
34777
|
+
options = _b.options,
|
|
34778
|
+
_c = _b.target,
|
|
34779
|
+
target = _c === void 0 ? el : _c;
|
|
34725
34780
|
target.removeEventListener('scroll', handler, options);
|
|
34726
|
-
delete el._onScroll;
|
|
34781
|
+
delete el._onScroll[vnode.context._uid];
|
|
34727
34782
|
}
|
|
34728
34783
|
|
|
34729
34784
|
var Scroll = {
|
|
@@ -34922,7 +34977,7 @@ function () {
|
|
|
34922
34977
|
|
|
34923
34978
|
Vuetify.install = _install__WEBPACK_IMPORTED_MODULE_0__["install"];
|
|
34924
34979
|
Vuetify.installed = false;
|
|
34925
|
-
Vuetify.version = "2.6.0
|
|
34980
|
+
Vuetify.version = "2.6.0";
|
|
34926
34981
|
Vuetify.config = {
|
|
34927
34982
|
silent: false
|
|
34928
34983
|
};
|
|
@@ -36359,7 +36414,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36359
36414
|
},
|
|
36360
36415
|
rating: {
|
|
36361
36416
|
ariaLabel: {
|
|
36362
|
-
icon: '
|
|
36417
|
+
icon: 'Note de {0} sur {1}'
|
|
36363
36418
|
}
|
|
36364
36419
|
}
|
|
36365
36420
|
});
|
|
@@ -39513,6 +39568,12 @@ function validateAttachTarget(val) {
|
|
|
39513
39568
|
if (type === 'boolean' || type === 'string') return true;
|
|
39514
39569
|
return val.nodeType === Node.ELEMENT_NODE;
|
|
39515
39570
|
}
|
|
39571
|
+
|
|
39572
|
+
function removeActivator(activator) {
|
|
39573
|
+
activator.forEach(function (node) {
|
|
39574
|
+
node.elm && node.elm.parentNode && node.elm.parentNode.removeChild(node.elm);
|
|
39575
|
+
});
|
|
39576
|
+
}
|
|
39516
39577
|
/* @vue/component */
|
|
39517
39578
|
|
|
39518
39579
|
|
|
@@ -39566,23 +39627,35 @@ function validateAttachTarget(val) {
|
|
|
39566
39627
|
this.isActive = false;
|
|
39567
39628
|
},
|
|
39568
39629
|
beforeDestroy: function beforeDestroy() {
|
|
39569
|
-
|
|
39570
|
-
|
|
39571
|
-
|
|
39572
|
-
|
|
39573
|
-
|
|
39630
|
+
if (this.$refs.content && this.$refs.content.parentNode) {
|
|
39631
|
+
this.$refs.content.parentNode.removeChild(this.$refs.content);
|
|
39632
|
+
}
|
|
39633
|
+
},
|
|
39634
|
+
destroyed: function destroyed() {
|
|
39635
|
+
var _this = this;
|
|
39574
39636
|
|
|
39575
|
-
|
|
39576
|
-
|
|
39577
|
-
|
|
39578
|
-
|
|
39637
|
+
if (this.activatorNode) {
|
|
39638
|
+
var activator_1 = Array.isArray(this.activatorNode) ? this.activatorNode : [this.activatorNode];
|
|
39639
|
+
|
|
39640
|
+
if (this.$el.isConnected) {
|
|
39641
|
+
// Component has been destroyed but the element still exists, we must be in a transition
|
|
39642
|
+
// Wait for the transition to finish before cleaning up the detached activator
|
|
39643
|
+
var observer_1 = new MutationObserver(function (list) {
|
|
39644
|
+
if (list.some(function (record) {
|
|
39645
|
+
return Array.from(record.removedNodes).includes(_this.$el);
|
|
39646
|
+
})) {
|
|
39647
|
+
observer_1.disconnect();
|
|
39648
|
+
removeActivator(activator_1);
|
|
39649
|
+
}
|
|
39650
|
+
});
|
|
39651
|
+
observer_1.observe(this.$el.parentNode, {
|
|
39652
|
+
subtree: false,
|
|
39653
|
+
childList: true
|
|
39579
39654
|
});
|
|
39655
|
+
} else {
|
|
39656
|
+
removeActivator(activator_1);
|
|
39580
39657
|
}
|
|
39581
|
-
} catch (e) {
|
|
39582
|
-
console.log(e);
|
|
39583
39658
|
}
|
|
39584
|
-
/* eslint-disable-line no-console */
|
|
39585
|
-
|
|
39586
39659
|
},
|
|
39587
39660
|
methods: {
|
|
39588
39661
|
getScopeIdAttrs: function getScopeIdAttrs() {
|
|
@@ -39766,17 +39839,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39766
39839
|
function intersectable(options) {
|
|
39767
39840
|
return vue__WEBPACK_IMPORTED_MODULE_2___default.a.extend({
|
|
39768
39841
|
name: 'intersectable',
|
|
39842
|
+
data: function data() {
|
|
39843
|
+
return {
|
|
39844
|
+
isIntersecting: false
|
|
39845
|
+
};
|
|
39846
|
+
},
|
|
39769
39847
|
mounted: function mounted() {
|
|
39770
39848
|
_directives_intersect__WEBPACK_IMPORTED_MODULE_0__["default"].inserted(this.$el, {
|
|
39771
39849
|
name: 'intersect',
|
|
39772
39850
|
value: this.onObserve
|
|
39773
|
-
});
|
|
39851
|
+
}, this.$vnode);
|
|
39774
39852
|
},
|
|
39775
39853
|
destroyed: function destroyed() {
|
|
39776
|
-
_directives_intersect__WEBPACK_IMPORTED_MODULE_0__["default"].unbind(this.$el
|
|
39854
|
+
_directives_intersect__WEBPACK_IMPORTED_MODULE_0__["default"].unbind(this.$el, {
|
|
39855
|
+
name: 'intersect',
|
|
39856
|
+
value: this.onObserve
|
|
39857
|
+
}, this.$vnode);
|
|
39777
39858
|
},
|
|
39778
39859
|
methods: {
|
|
39779
39860
|
onObserve: function onObserve(entries, observer, isIntersecting) {
|
|
39861
|
+
this.isIntersecting = isIntersecting;
|
|
39780
39862
|
if (!isIntersecting) return;
|
|
39781
39863
|
|
|
39782
39864
|
for (var i = 0, length = options.onVisible.length; i < length; i++) {
|
|
@@ -40506,19 +40588,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40506
40588
|
hasScrollbar: function hasScrollbar(el) {
|
|
40507
40589
|
if (!el || el.nodeType !== Node.ELEMENT_NODE) return false;
|
|
40508
40590
|
var style = window.getComputedStyle(el);
|
|
40509
|
-
return ['auto', 'scroll'].includes(style.overflowY) && el.scrollHeight > el.clientHeight;
|
|
40591
|
+
return (['auto', 'scroll'].includes(style.overflowY) || el.tagName === 'SELECT') && el.scrollHeight > el.clientHeight || ['auto', 'scroll'].includes(style.overflowX) && el.scrollWidth > el.clientWidth;
|
|
40510
40592
|
},
|
|
40511
|
-
shouldScroll: function shouldScroll(el,
|
|
40593
|
+
shouldScroll: function shouldScroll(el, e) {
|
|
40512
40594
|
if (el.hasAttribute('data-app')) return false;
|
|
40513
|
-
var
|
|
40514
|
-
var
|
|
40595
|
+
var dir = e.shiftKey || e.deltaX ? 'x' : 'y';
|
|
40596
|
+
var delta = dir === 'y' ? e.deltaY : e.deltaX || e.deltaY;
|
|
40597
|
+
var alreadyAtStart;
|
|
40598
|
+
var alreadyAtEnd;
|
|
40599
|
+
|
|
40600
|
+
if (dir === 'y') {
|
|
40601
|
+
alreadyAtStart = el.scrollTop === 0;
|
|
40602
|
+
alreadyAtEnd = el.scrollTop + el.clientHeight === el.scrollHeight;
|
|
40603
|
+
} else {
|
|
40604
|
+
alreadyAtStart = el.scrollLeft === 0;
|
|
40605
|
+
alreadyAtEnd = el.scrollLeft + el.clientWidth === el.scrollWidth;
|
|
40606
|
+
}
|
|
40607
|
+
|
|
40515
40608
|
var scrollingUp = delta < 0;
|
|
40516
40609
|
var scrollingDown = delta > 0;
|
|
40517
|
-
if (!
|
|
40518
|
-
if (!
|
|
40610
|
+
if (!alreadyAtStart && scrollingUp) return true;
|
|
40611
|
+
if (!alreadyAtEnd && scrollingDown) return true;
|
|
40519
40612
|
|
|
40520
|
-
if (
|
|
40521
|
-
return this.shouldScroll(el.parentNode,
|
|
40613
|
+
if (alreadyAtStart || alreadyAtEnd) {
|
|
40614
|
+
return this.shouldScroll(el.parentNode, e);
|
|
40522
40615
|
}
|
|
40523
40616
|
|
|
40524
40617
|
return false;
|
|
@@ -40534,7 +40627,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40534
40627
|
},
|
|
40535
40628
|
checkPath: function checkPath(e) {
|
|
40536
40629
|
var path = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["composedPath"])(e);
|
|
40537
|
-
var delta = e.deltaY;
|
|
40538
40630
|
|
|
40539
40631
|
if (e.type === 'keydown' && path[0] === document.body) {
|
|
40540
40632
|
var dialog = this.$refs.dialog; // getSelection returns null in firefox in some edge cases, can be ignored
|
|
@@ -40542,7 +40634,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40542
40634
|
var selected = window.getSelection().anchorNode;
|
|
40543
40635
|
|
|
40544
40636
|
if (dialog && this.hasScrollbar(dialog) && this.isInside(selected, dialog)) {
|
|
40545
|
-
return !this.shouldScroll(dialog,
|
|
40637
|
+
return !this.shouldScroll(dialog, e);
|
|
40546
40638
|
}
|
|
40547
40639
|
|
|
40548
40640
|
return true;
|
|
@@ -40553,7 +40645,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40553
40645
|
if (el === document) return true;
|
|
40554
40646
|
if (el === document.documentElement) return true;
|
|
40555
40647
|
if (el === this.$refs.content) return true;
|
|
40556
|
-
if (this.hasScrollbar(el)) return !this.shouldScroll(el,
|
|
40648
|
+
if (this.hasScrollbar(el)) return !this.shouldScroll(el, e);
|
|
40557
40649
|
}
|
|
40558
40650
|
|
|
40559
40651
|
return true;
|
|
@@ -41167,6 +41259,9 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
41167
41259
|
watch: {
|
|
41168
41260
|
$route: 'onRouteChange'
|
|
41169
41261
|
},
|
|
41262
|
+
mounted: function mounted() {
|
|
41263
|
+
this.onRouteChange();
|
|
41264
|
+
},
|
|
41170
41265
|
methods: {
|
|
41171
41266
|
click: function click(e) {
|
|
41172
41267
|
this.$emit('click', e);
|
|
@@ -41232,15 +41327,18 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
41232
41327
|
|
|
41233
41328
|
if (!this.to || !this.$refs.link || !this.$route) return;
|
|
41234
41329
|
var activeClass = (this.activeClass + " " + (this.proxyClass || '')).trim();
|
|
41235
|
-
var
|
|
41330
|
+
var exactActiveClass = (this.exactActiveClass + " " + (this.proxyClass || '')).trim() || activeClass;
|
|
41331
|
+
var path = '_vnode.data.class.' + (this.exact ? exactActiveClass : activeClass);
|
|
41236
41332
|
this.$nextTick(function () {
|
|
41237
41333
|
/* istanbul ignore else */
|
|
41238
|
-
if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["getObjectValueByPath"])(_this.$refs.link, path)) {
|
|
41334
|
+
if (!Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["getObjectValueByPath"])(_this.$refs.link, path) === _this.isActive) {
|
|
41239
41335
|
_this.toggle();
|
|
41240
41336
|
}
|
|
41241
41337
|
});
|
|
41242
41338
|
},
|
|
41243
|
-
toggle: function toggle() {
|
|
41339
|
+
toggle: function toggle() {
|
|
41340
|
+
this.isActive = !this.isActive;
|
|
41341
|
+
}
|
|
41244
41342
|
}
|
|
41245
41343
|
}));
|
|
41246
41344
|
|