@dimailn/vuetify 2.7.2-alpha32 → 2.7.2-alpha34
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 +544 -366
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +1 -1
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VCalendar/VCalendarWeekly.js +10 -5
- package/es5/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/es5/components/VCheckbox/VCheckbox.js +7 -9
- package/es5/components/VCheckbox/VCheckbox.js.map +1 -1
- package/es5/components/VContent/VContent.js +24 -5
- package/es5/components/VContent/VContent.js.map +1 -1
- package/es5/components/VCounter/VCounter.js.map +1 -1
- package/es5/components/VDatePicker/VDatePicker.js +15 -7
- package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerTitle.js +30 -19
- package/es5/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/es5/components/VDatePicker/mixins/date-picker-table.js +1 -1
- package/es5/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/VDatePicker/util/eventHelpers.js +27 -17
- package/es5/components/VDatePicker/util/eventHelpers.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/es5/components/VGrid/VCol.js +3 -1
- package/es5/components/VGrid/VCol.js.map +1 -1
- package/es5/components/VGrid/VContainer.js +23 -10
- package/es5/components/VGrid/VContainer.js.map +1 -1
- package/es5/components/VGrid/grid.js +33 -15
- package/es5/components/VGrid/grid.js.map +1 -1
- package/es5/components/VHover/VHover.js +23 -17
- package/es5/components/VHover/VHover.js.map +1 -1
- package/es5/components/VIcon/VIcon.js +77 -53
- package/es5/components/VIcon/VIcon.js.map +1 -1
- package/es5/components/VItemGroup/VItemGroup.js +5 -0
- package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
- package/es5/components/VLabel/VLabel.js +3 -1
- package/es5/components/VLabel/VLabel.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +54 -33
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverflowBtn/VOverflowBtn.js +14 -13
- package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/es5/components/VProgressLinear/VProgressLinear.js +12 -33
- package/es5/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +4 -1
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VStepper/VStepper.js +1 -1
- package/es5/components/VStepper/VStepper.js.map +1 -1
- package/es5/components/VStepper/VStepperContent.js +2 -5
- package/es5/components/VStepper/VStepperContent.js.map +1 -1
- package/es5/components/VSwitch/VSwitch.js +1 -1
- package/es5/components/VSwitch/VSwitch.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +5 -0
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/VTabs/VTabsBar.js +3 -0
- package/es5/components/VTabs/VTabsBar.js.map +1 -1
- package/es5/components/VTextField/VTextField.js +2 -1
- package/es5/components/VTextField/VTextField.js.map +1 -1
- package/es5/components/VTooltip/VTooltip.js +0 -7
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/directives/color/index.js +6 -3
- package/es5/directives/color/index.js.map +1 -1
- package/es5/directives/ripple/index.js +5 -2
- package/es5/directives/ripple/index.js.map +1 -1
- package/es5/directives/scroll/index.js +1 -2
- package/es5/directives/scroll/index.js.map +1 -1
- package/es5/directives/touch/index.js +7 -4
- package/es5/directives/touch/index.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/mixins/activatable/index.js +0 -8
- package/es5/mixins/activatable/index.js.map +1 -1
- package/es5/mixins/groupable/index.js.map +1 -1
- package/es5/mixins/positionable/index.js.map +1 -1
- package/es5/mixins/proxyable/index.js.map +1 -1
- package/es5/mixins/registrable/index.js.map +1 -1
- package/es5/mixins/selectable/index.js +4 -2
- package/es5/mixins/selectable/index.js.map +1 -1
- package/es5/mixins/toggleable/index.js.map +1 -1
- package/es5/services/goto/util.js +42 -3
- package/es5/services/goto/util.js.map +1 -1
- package/es5/services/theme/index.js +20 -71
- package/es5/services/theme/index.js.map +1 -1
- package/es5/util/mergeData.js +6 -5
- package/es5/util/mergeData.js.map +1 -1
- package/es5/util/mixins.js +4 -3
- package/es5/util/mixins.js.map +1 -1
- package/lib/components/VCalendar/VCalendarWeekly.js +11 -6
- package/lib/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.js +5 -8
- package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
- package/lib/components/VContent/VContent.js +18 -3
- package/lib/components/VContent/VContent.js.map +1 -1
- package/lib/components/VCounter/VCounter.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +17 -7
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerTitle.js +25 -14
- package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.js +1 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/VDatePicker/util/eventHelpers.js +26 -14
- package/lib/components/VDatePicker/util/eventHelpers.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/lib/components/VGrid/VCol.js +3 -1
- package/lib/components/VGrid/VCol.js.map +1 -1
- package/lib/components/VGrid/VContainer.js +11 -10
- package/lib/components/VGrid/VContainer.js.map +1 -1
- package/lib/components/VGrid/grid.js +15 -14
- package/lib/components/VGrid/grid.js.map +1 -1
- package/lib/components/VHover/VHover.js +23 -18
- package/lib/components/VHover/VHover.js.map +1 -1
- package/lib/components/VIcon/VIcon.js +79 -57
- package/lib/components/VIcon/VIcon.js.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.js +5 -0
- package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
- package/lib/components/VLabel/VLabel.js +3 -1
- package/lib/components/VLabel/VLabel.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +58 -34
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.js +14 -14
- package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.js +12 -16
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +4 -1
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VStepper/VStepper.js +1 -1
- package/lib/components/VStepper/VStepper.js.map +1 -1
- package/lib/components/VStepper/VStepperContent.js +3 -6
- package/lib/components/VStepper/VStepperContent.js.map +1 -1
- package/lib/components/VSwitch/VSwitch.js +1 -1
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +5 -0
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTabs/VTabsBar.js +3 -0
- package/lib/components/VTabs/VTabsBar.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +2 -1
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.js +1 -8
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/directives/color/index.js +6 -3
- package/lib/directives/color/index.js.map +1 -1
- package/lib/directives/ripple/index.js +5 -3
- package/lib/directives/ripple/index.js.map +1 -1
- package/lib/directives/scroll/index.js +1 -2
- package/lib/directives/scroll/index.js.map +1 -1
- package/lib/directives/touch/index.js +7 -4
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/mixins/activatable/index.js +1 -8
- package/lib/mixins/activatable/index.js.map +1 -1
- package/lib/mixins/groupable/index.js.map +1 -1
- package/lib/mixins/positionable/index.js.map +1 -1
- package/lib/mixins/proxyable/index.js.map +1 -1
- package/lib/mixins/registrable/index.js.map +1 -1
- package/lib/mixins/selectable/index.js +9 -7
- package/lib/mixins/selectable/index.js.map +1 -1
- package/lib/mixins/toggleable/index.js.map +1 -1
- package/lib/services/goto/util.js +42 -3
- package/lib/services/goto/util.js.map +1 -1
- package/lib/services/theme/index.js +18 -64
- package/lib/services/theme/index.js.map +1 -1
- package/lib/util/mergeData.js +6 -5
- package/lib/util/mergeData.js.map +1 -1
- package/lib/util/mixins.js +3 -2
- package/lib/util/mixins.js.map +1 -1
- package/package.json +2 -2
- package/src/components/VAlert/__tests__/__snapshots__/VAlert.spec.ts.snap +4 -4
- package/src/components/VAppBar/__tests__/__snapshots__/VAppBarNavIcon.spec.ts.snap +2 -2
- package/src/components/VAutocomplete/__tests__/VAutocomplete.spec.ts +75 -20
- package/src/components/VAutocomplete/__tests__/VAutocomplete2.spec.ts +38 -40
- package/src/components/VAutocomplete/__tests__/VAutocomplete3.spec.ts +26 -26
- package/src/components/VBanner/__tests__/__snapshots__/VBanner.spec.ts.snap +2 -2
- package/src/components/VBtn/__tests__/VBtn.spec.ts +8 -4
- package/src/components/VCalendar/VCalendarWeekly.ts +12 -5
- package/src/components/VCalendar/__tests__/VCalendar.spec.ts +1 -1
- package/src/components/VCalendar/__tests__/VCalendarCategory.spec.ts +5 -5
- package/src/components/VCalendar/__tests__/__snapshots__/VCalendar.spec.ts.snap +167 -168
- package/src/components/VCheckbox/VCheckbox.ts +4 -9
- package/src/components/VCheckbox/__tests__/VCheckbox.spec.ts +7 -1
- package/src/components/VCheckbox/__tests__/__snapshots__/VCheckbox.spec.ts.snap +54 -50
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +18 -18
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +10 -10
- package/src/components/VCombobox/__tests__/VCombobox-multiple.spec.ts +89 -69
- package/src/components/VCombobox/__tests__/VCombobox.spec.ts +17 -12
- package/src/components/VContent/VContent.ts +10 -2
- package/src/components/VCounter/VCounter.ts +1 -1
- package/src/components/VCounter/__tests__/VCounter.spec.ts +10 -25
- package/src/components/VDataIterator/__tests__/__snapshots__/VDataFooter.spec.ts.snap +42 -42
- package/src/components/VDataIterator/__tests__/__snapshots__/VDataIterator.spec.ts.snap +30 -30
- package/src/components/VDataTable/__tests__/VDataTable.spec.ts +1 -1
- package/src/components/VDataTable/__tests__/VDataTableHeader.spec.ts +6 -10
- package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +24 -21
- package/src/components/VDataTable/__tests__/__snapshots__/VDataTable.spec.ts.snap +409 -409
- package/src/components/VDataTable/__tests__/__snapshots__/VDataTableHeader.spec.ts.snap +70 -70
- package/src/components/VDataTable/mixins/__tests__/__snapshots__/header.spec.ts.snap +8 -8
- package/src/components/VDataTable/mixins/__tests__/header.spec.ts +3 -3
- package/src/components/VDatePicker/VDatePicker.ts +23 -7
- package/src/components/VDatePicker/VDatePickerTitle.ts +28 -16
- package/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +86 -124
- package/src/components/VDatePicker/__tests__/VDatePicker.month.spec.ts +85 -63
- package/src/components/VDatePicker/__tests__/VDatePickerHeader.spec.ts +12 -27
- package/src/components/VDatePicker/__tests__/VDatePickerTitle.spec.ts +9 -5
- package/src/components/VDatePicker/__tests__/VDatePickerYears.spec.ts +4 -4
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.date.spec.ts.snap +27 -9
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.month.spec.ts.snap +45 -35
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerTitle.spec.ts.snap +15 -5
- package/src/components/VDatePicker/mixins/date-picker-table.ts +1 -1
- package/src/components/VDatePicker/util/eventHelpers.ts +33 -13
- package/src/components/VExpansionPanel/VExpansionPanelContent.ts +5 -8
- package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +10 -14
- package/src/components/VExpansionPanel/__tests__/VExpansionPanelHeader.spec.ts +6 -4
- package/src/components/VExpansionPanel/__tests__/VExpansionPanels.spec.ts +9 -5
- package/src/components/VExpansionPanel/__tests__/__snapshots__/VExpansionPanel.spec.ts.snap +4 -4
- package/src/components/VFileInput/__tests__/__snapshots__/VFileInput.spec.ts.snap +38 -38
- package/src/components/VFooter/__tests__/VFooter.spec.ts +28 -21
- package/src/components/VGrid/VCol.ts +1 -1
- package/src/components/VGrid/VContainer.ts +12 -10
- package/src/components/VGrid/__tests__/VCol.spec.ts +4 -2
- package/src/components/VGrid/__tests__/VGrid.spec.ts +2 -3
- package/src/components/VGrid/grid.ts +14 -17
- package/src/components/VHover/VHover.ts +21 -17
- package/src/components/VHover/__tests__/VHover.spec.ts +44 -28
- package/src/components/VIcon/VIcon.ts +72 -53
- package/src/components/VIcon/__tests__/VIcon.spec.ts +86 -176
- package/src/components/VIcon/__tests__/__snapshots__/VIcon.spec.ts.snap +19 -74
- package/src/components/VItemGroup/VItemGroup.ts +5 -0
- package/src/components/VItemGroup/__tests__/VItem.spec.ts +20 -12
- package/src/components/VLabel/VLabel.ts +1 -1
- package/src/components/VList/__tests__/VListGroup.spec.ts +1 -1
- package/src/components/VList/__tests__/VListItemAction.spec.ts +32 -31
- package/src/components/VList/__tests__/__snapshots__/VListGroup.spec.ts.snap +2 -2
- package/src/components/VList/__tests__/__snapshots__/VListItemAction.spec.ts.snap +20 -6
- package/src/components/VOtpInput/VOtpInput.ts +57 -32
- package/src/components/VOtpInput/__tests__/VOtpInput.spec.ts +75 -78
- package/src/components/VOverflowBtn/VOverflowBtn.ts +13 -10
- package/src/components/VOverflowBtn/__tests__/VOverflowBtn.spec.ts +6 -6
- package/src/components/VOverflowBtn/__tests__/__snapshots__/VOverflowBtn.spec.ts.snap +38 -46
- package/src/components/VPagination/__tests__/__snapshots__/VPagination.spec.ts.snap +32 -32
- package/src/components/VProgressLinear/VProgressLinear.ts +13 -18
- package/src/components/VProgressLinear/__tests__/VProgressLinear.spec.ts +20 -12
- package/src/components/VRadioGroup/__tests__/VRadio.spec.ts +57 -44
- package/src/components/VRadioGroup/__tests__/VRadioGroup.spec.ts +4 -4
- package/src/components/VRadioGroup/__tests__/__snapshots__/VRadio.spec.ts.snap +29 -33
- package/src/components/VRadioGroup/__tests__/__snapshots__/VRadioGroup.spec.ts.snap +10 -18
- package/src/components/VRating/__tests__/VRating.spec.ts +24 -29
- package/src/components/VResponsive/__tests__/VResponsive.spec.ts +10 -5
- package/src/components/VSelect/VSelect.ts +5 -1
- package/src/components/VSelect/__tests__/VSelect2.spec.ts +5 -5
- package/src/components/VSelect/__tests__/VSelect3.spec.ts +7 -7
- package/src/components/VSelect/__tests__/VSelect4.spec.ts +2 -2
- package/src/components/VSelect/__tests__/__snapshots__/VSelect2.spec.ts.snap +4 -4
- package/src/components/VSelect/__tests__/__snapshots__/VSelect3.spec.ts.snap +0 -284
- package/src/components/VSelect/__tests__/__snapshots__/VSelectList.spec.ts.snap +30 -27
- package/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts +70 -62
- package/src/components/VSlideGroup/__tests__/__snapshots__/VSlideGroup.spec.ts.snap +13 -34
- package/src/components/VSnackbar/__tests__/VSnackbar.spec.ts +46 -37
- package/src/components/VStepper/VStepper.ts +2 -2
- package/src/components/VStepper/VStepperContent.ts +7 -12
- package/src/components/VStepper/__tests__/VStepper.spec.ts +3 -3
- package/src/components/VStepper/__tests__/VStepperContent.spec.ts +25 -6
- package/src/components/VStepper/__tests__/__snapshots__/VStepperStep.spec.ts.snap +10 -12
- package/src/components/VSwitch/VSwitch.ts +1 -1
- package/src/components/VSwitch/__tests__/VSwitch.spec.ts +4 -7
- package/src/components/VSwitch/__tests__/__snapshots__/VSwitch.spec.ts.snap +11 -15
- package/src/components/VTabs/VTabs.ts +5 -0
- package/src/components/VTabs/VTabsBar.ts +4 -0
- package/src/components/VTabs/__tests__/VTabs.spec.ts +65 -0
- package/src/components/VTextField/VTextField.ts +2 -1
- package/src/components/VTextField/__tests__/VTextField.spec.ts +24 -27
- package/src/components/VTextField/__tests__/__snapshots__/VTextField.spec.ts.snap +49 -73
- package/src/components/VTextarea/__tests__/__snapshots__/VTextarea.spec.ts.snap +16 -6
- package/src/components/VThemeProvider/__tests__/VThemeProvider.spec.ts +49 -10
- package/src/components/VTimePicker/__tests__/VTimePicker.spec.ts +3 -3
- package/src/components/VTimePicker/__tests__/VTimePickerTitle.spec.ts +3 -3
- package/src/components/VTimeline/__tests__/__snapshots__/VTimelineItem.spec.ts.snap +2 -2
- package/src/components/VTooltip/VTooltip.ts +0 -6
- package/src/components/VTooltip/__tests__/VTooltip.spec.ts +12 -11
- package/src/components/VTreeview/__tests__/__snapshots__/VTreeview.spec.ts.snap +42 -42
- package/src/components/VTreeview/__tests__/__snapshots__/VTreeviewNode.spec.ts.snap +2 -2
- package/src/directives/click-outside/__tests__/click-outside-shadow-dom.spec.ts +4 -4
- package/src/directives/click-outside/__tests__/click-outside.spec.ts +3 -3
- package/src/directives/color/__tests__/color.spec.ts +54 -34
- package/src/directives/color/index.ts +7 -3
- package/src/directives/intersect/__tests__/intersect.spec.ts +7 -7
- package/src/directives/mutate/__tests__/mutate.spec.ts +32 -26
- package/src/directives/resize/__tests__/resize.spec.ts +5 -5
- package/src/directives/ripple/__tests__/ripple.spec.ts +34 -36
- package/src/directives/ripple/index.ts +3 -6
- package/src/directives/scroll/__tests__/scroll.spec.ts +13 -13
- package/src/directives/scroll/index.ts +0 -1
- package/src/directives/touch/__tests__/touch.spec.ts +23 -16
- package/src/directives/touch/index.ts +6 -4
- package/src/globals.d.ts +6 -6
- package/src/mixins/activatable/__tests__/activatable.spec.ts +55 -55
- package/src/mixins/activatable/index.ts +0 -6
- package/src/mixins/dependent/__tests__/dependent.spec.ts +72 -33
- package/src/mixins/detachable/__tests__/detachable.spec.ts +45 -31
- package/src/mixins/groupable/index.ts +6 -6
- package/src/mixins/positionable/index.ts +2 -2
- package/src/mixins/proxyable/index.ts +2 -2
- package/src/mixins/registrable/index.ts +4 -4
- package/src/mixins/selectable/index.ts +10 -7
- package/src/mixins/toggleable/index.ts +2 -2
- package/src/services/goto/__tests__/goto.spec.ts +146 -1
- package/src/services/goto/util.ts +44 -5
- package/src/services/theme/__tests__/__snapshots__/theme.spec.ts.snap +0 -1128
- package/src/services/theme/__tests__/theme.spec.ts +81 -83
- package/src/services/theme/index.ts +22 -60
- package/src/util/__tests__/dom.spec.ts +8 -5
- package/src/util/__tests__/helpers.spec.ts +1 -1
- package/src/util/__tests__/mergeData.spec.ts +8 -8
- package/src/util/mergeData.ts +10 -5
- package/src/util/mixins.ts +24 -7
- package/types/alacarte.d.ts +14 -14
- package/types/index.d.ts +8 -8
- package/types/lib.d.ts +173 -173
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
exports[`VRadio.ts should be render colored radio 1`] = `
|
|
4
4
|
<div class="v-radio theme--light">
|
|
5
5
|
<div class="v-input--selection-controls__input">
|
|
6
|
-
<i
|
|
7
|
-
|
|
6
|
+
<i class="v-icon notranslate theme--light mdi mdi-radiobox-blank"
|
|
7
|
+
aria-hidden="true"
|
|
8
8
|
>
|
|
9
|
-
$radioOff
|
|
10
9
|
</i>
|
|
11
10
|
<input aria-checked="false"
|
|
12
|
-
id="input-
|
|
11
|
+
id="input-29"
|
|
13
12
|
role="radio"
|
|
14
13
|
type="radio"
|
|
15
|
-
value
|
|
16
14
|
>
|
|
17
15
|
<div class="v-input--selection-controls__ripple">
|
|
18
16
|
</div>
|
|
@@ -23,16 +21,15 @@ exports[`VRadio.ts should be render colored radio 1`] = `
|
|
|
23
21
|
exports[`VRadio.ts should not render aria-label attribute with no label value on input group 1`] = `
|
|
24
22
|
<div class="v-radio theme--light">
|
|
25
23
|
<div class="v-input--selection-controls__input">
|
|
26
|
-
<i
|
|
27
|
-
|
|
24
|
+
<i class="v-icon notranslate theme--light mdi mdi-radiobox-blank"
|
|
25
|
+
aria-hidden="true"
|
|
28
26
|
>
|
|
29
|
-
$radioOff
|
|
30
27
|
</i>
|
|
31
28
|
<input aria-checked="false"
|
|
32
|
-
id="input-
|
|
29
|
+
id="input-5"
|
|
33
30
|
role="radio"
|
|
34
31
|
type="radio"
|
|
35
|
-
|
|
32
|
+
name="name"
|
|
36
33
|
>
|
|
37
34
|
<div class="v-input--selection-controls__ripple">
|
|
38
35
|
</div>
|
|
@@ -43,17 +40,15 @@ exports[`VRadio.ts should not render aria-label attribute with no label value on
|
|
|
43
40
|
exports[`VRadio.ts should render proper input name 1`] = `
|
|
44
41
|
<div class="v-radio theme--light">
|
|
45
42
|
<div class="v-input--selection-controls__input">
|
|
46
|
-
<i
|
|
47
|
-
|
|
43
|
+
<i class="v-icon notranslate theme--light mdi mdi-radiobox-blank"
|
|
44
|
+
aria-hidden="true"
|
|
48
45
|
>
|
|
49
|
-
$radioOff
|
|
50
46
|
</i>
|
|
51
47
|
<input aria-checked="false"
|
|
52
|
-
id="input-
|
|
48
|
+
id="input-9"
|
|
53
49
|
role="radio"
|
|
54
50
|
type="radio"
|
|
55
51
|
name="name"
|
|
56
|
-
value
|
|
57
52
|
>
|
|
58
53
|
<div class="v-input--selection-controls__ripple">
|
|
59
54
|
</div>
|
|
@@ -64,18 +59,19 @@ exports[`VRadio.ts should render proper input name 1`] = `
|
|
|
64
59
|
exports[`VRadio.ts should render role and aria-checked attributes on input group 1`] = `
|
|
65
60
|
<div class="v-radio theme--light">
|
|
66
61
|
<div class="v-input--selection-controls__input">
|
|
67
|
-
<i
|
|
68
|
-
|
|
62
|
+
<i class="v-icon notranslate theme--light mdi mdi-radiobox-blank"
|
|
63
|
+
aria-hidden="true"
|
|
69
64
|
>
|
|
70
|
-
$radioOn
|
|
71
65
|
</i>
|
|
72
|
-
<input aria-checked="
|
|
66
|
+
<input aria-checked="false"
|
|
73
67
|
id="input-1"
|
|
74
68
|
role="radio"
|
|
75
69
|
type="radio"
|
|
76
|
-
|
|
70
|
+
name="name"
|
|
71
|
+
modelvalue="test"
|
|
72
|
+
value="test"
|
|
77
73
|
>
|
|
78
|
-
<div class="v-input--selection-controls__ripple
|
|
74
|
+
<div class="v-input--selection-controls__ripple">
|
|
79
75
|
</div>
|
|
80
76
|
</div>
|
|
81
77
|
</div>
|
|
@@ -84,16 +80,16 @@ exports[`VRadio.ts should render role and aria-checked attributes on input group
|
|
|
84
80
|
exports[`VRadio.ts should use custom icons 1`] = `
|
|
85
81
|
<div class="v-radio theme--light">
|
|
86
82
|
<div class="v-input--selection-controls__input">
|
|
87
|
-
<i
|
|
88
|
-
|
|
83
|
+
<i class="v-icon notranslate theme--light material-icons"
|
|
84
|
+
aria-hidden="true"
|
|
89
85
|
>
|
|
90
|
-
bar
|
|
91
86
|
</i>
|
|
92
87
|
<input aria-checked="false"
|
|
93
|
-
id="input-
|
|
88
|
+
id="input-17"
|
|
94
89
|
role="radio"
|
|
95
90
|
type="radio"
|
|
96
|
-
|
|
91
|
+
modelvalue="test"
|
|
92
|
+
value="test"
|
|
97
93
|
>
|
|
98
94
|
<div class="v-input--selection-controls__ripple">
|
|
99
95
|
</div>
|
|
@@ -104,18 +100,18 @@ exports[`VRadio.ts should use custom icons 1`] = `
|
|
|
104
100
|
exports[`VRadio.ts should use custom icons 2`] = `
|
|
105
101
|
<div class="v-radio theme--light">
|
|
106
102
|
<div class="v-input--selection-controls__input">
|
|
107
|
-
<i
|
|
108
|
-
|
|
103
|
+
<i class="v-icon notranslate theme--light material-icons"
|
|
104
|
+
aria-hidden="true"
|
|
109
105
|
>
|
|
110
|
-
foo
|
|
111
106
|
</i>
|
|
112
|
-
<input aria-checked="
|
|
113
|
-
id="input-
|
|
107
|
+
<input aria-checked="false"
|
|
108
|
+
id="input-17"
|
|
114
109
|
role="radio"
|
|
115
110
|
type="radio"
|
|
116
|
-
|
|
111
|
+
modelvalue="test"
|
|
112
|
+
value="test"
|
|
117
113
|
>
|
|
118
|
-
<div class="v-input--selection-controls__ripple
|
|
114
|
+
<div class="v-input--selection-controls__ripple">
|
|
119
115
|
</div>
|
|
120
116
|
</div>
|
|
121
117
|
</div>
|
|
@@ -6,23 +6,21 @@ exports[`VRadioGroup.ts should match dense snapshot 1`] = `
|
|
|
6
6
|
<div class="v-input__slot"
|
|
7
7
|
style="height: auto;"
|
|
8
8
|
>
|
|
9
|
-
<div
|
|
9
|
+
<div class="v-input--radio-group__input"
|
|
10
|
+
role="radiogroup"
|
|
10
11
|
aria-labelledby="input-5"
|
|
11
|
-
class="v-input--radio-group__input"
|
|
12
12
|
>
|
|
13
13
|
<div class="v-radio theme--light">
|
|
14
14
|
<div class="v-input--selection-controls__input">
|
|
15
|
-
<i
|
|
16
|
-
|
|
15
|
+
<i class="v-icon--dense v-icon notranslate theme--light mdi mdi-radiobox-blank"
|
|
16
|
+
aria-hidden="true"
|
|
17
17
|
>
|
|
18
|
-
$radioOff
|
|
19
18
|
</i>
|
|
20
19
|
<input aria-checked="false"
|
|
21
20
|
id="input-6"
|
|
22
21
|
role="radio"
|
|
23
22
|
type="radio"
|
|
24
23
|
name="radio-5"
|
|
25
|
-
value
|
|
26
24
|
>
|
|
27
25
|
<div class="v-input--selection-controls__ripple">
|
|
28
26
|
</div>
|
|
@@ -31,11 +29,8 @@ exports[`VRadioGroup.ts should match dense snapshot 1`] = `
|
|
|
31
29
|
</div>
|
|
32
30
|
</div>
|
|
33
31
|
<div class="v-messages theme--light">
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
class="v-messages__wrapper"
|
|
37
|
-
>
|
|
38
|
-
</span>
|
|
32
|
+
<div class="v-messages__wrapper">
|
|
33
|
+
</div>
|
|
39
34
|
</div>
|
|
40
35
|
</div>
|
|
41
36
|
</div>
|
|
@@ -47,18 +42,15 @@ exports[`VRadioGroup.ts should match snapshot 1`] = `
|
|
|
47
42
|
<div class="v-input__slot"
|
|
48
43
|
style="height: auto;"
|
|
49
44
|
>
|
|
50
|
-
<div
|
|
45
|
+
<div class="v-input--radio-group__input"
|
|
46
|
+
role="radiogroup"
|
|
51
47
|
aria-labelledby="input-1"
|
|
52
|
-
class="v-input--radio-group__input"
|
|
53
48
|
>
|
|
54
49
|
</div>
|
|
55
50
|
</div>
|
|
56
51
|
<div class="v-messages theme--light">
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
class="v-messages__wrapper"
|
|
60
|
-
>
|
|
61
|
-
</span>
|
|
52
|
+
<div class="v-messages__wrapper">
|
|
53
|
+
</div>
|
|
62
54
|
</div>
|
|
63
55
|
</div>
|
|
64
56
|
</div>
|
|
@@ -6,9 +6,12 @@ import VRating from '../VRating'
|
|
|
6
6
|
|
|
7
7
|
// Utilities
|
|
8
8
|
import {
|
|
9
|
-
mount
|
|
9
|
+
mount,
|
|
10
|
+
VueWrapper,
|
|
11
|
+
MountingOptions,
|
|
10
12
|
} from '@vue/test-utils'
|
|
11
13
|
import { mergeDeep } from '../../../util/helpers'
|
|
14
|
+
import { nextTick } from 'vue'
|
|
12
15
|
|
|
13
16
|
|
|
14
17
|
const $vuetify = {
|
|
@@ -25,13 +28,12 @@ const $vuetify = {
|
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
describe('VRating.ts', () => {
|
|
28
|
-
|
|
29
|
-
let mountFunction
|
|
31
|
+
type Instance = InstanceType<typeof VRating>
|
|
32
|
+
let mountFunction: (options?: MountingOptions<Instance>) => VueWrapper<Instance>
|
|
30
33
|
|
|
31
34
|
beforeEach(() => {
|
|
32
|
-
mountFunction = (options
|
|
35
|
+
mountFunction = (options?: MountingOptions<Instance>) => {
|
|
33
36
|
return mount(VRating, mergeDeep({
|
|
34
|
-
// https://github.com/vuejs/vue-test-utils/issues/1130
|
|
35
37
|
global: {
|
|
36
38
|
config: {
|
|
37
39
|
globalProperties: {
|
|
@@ -55,13 +57,13 @@ describe('VRating.ts', () => {
|
|
|
55
57
|
|
|
56
58
|
wrapper.setProps({ readonly: false })
|
|
57
59
|
|
|
58
|
-
await
|
|
60
|
+
await nextTick()
|
|
59
61
|
|
|
60
62
|
expect(wrapper.vm.directives[0][1].isDirActive).toBe(true)
|
|
61
63
|
|
|
62
64
|
wrapper.setProps({ ripple: false })
|
|
63
65
|
|
|
64
|
-
await
|
|
66
|
+
await nextTick()
|
|
65
67
|
|
|
66
68
|
expect(wrapper.vm.directives[0][1].isDirActive).toBe(false)
|
|
67
69
|
})
|
|
@@ -72,7 +74,7 @@ describe('VRating.ts', () => {
|
|
|
72
74
|
expect(wrapper.vm.internalValue).toBe(0)
|
|
73
75
|
|
|
74
76
|
wrapper.setProps({ modelValue: 1 })
|
|
75
|
-
await
|
|
77
|
+
await nextTick()
|
|
76
78
|
|
|
77
79
|
expect(wrapper.vm.internalValue).toBe(1)
|
|
78
80
|
|
|
@@ -82,7 +84,7 @@ describe('VRating.ts', () => {
|
|
|
82
84
|
|
|
83
85
|
icon.trigger('click')
|
|
84
86
|
|
|
85
|
-
await
|
|
87
|
+
await nextTick()
|
|
86
88
|
|
|
87
89
|
expect(wrapper.emitted()).toHaveProperty('update:modelValue')
|
|
88
90
|
expect(wrapper.emitted()['update:modelValue'][0][0]).toBe(2)
|
|
@@ -94,7 +96,7 @@ describe('VRating.ts', () => {
|
|
|
94
96
|
expect(wrapper.vm.internalValue).toBe(0)
|
|
95
97
|
|
|
96
98
|
wrapper.setProps({ modelValue: 1, clearable: false })
|
|
97
|
-
await
|
|
99
|
+
await nextTick()
|
|
98
100
|
|
|
99
101
|
expect(wrapper.vm.internalValue).toBe(1)
|
|
100
102
|
|
|
@@ -102,17 +104,17 @@ describe('VRating.ts', () => {
|
|
|
102
104
|
|
|
103
105
|
icon.trigger('click')
|
|
104
106
|
|
|
105
|
-
await
|
|
107
|
+
await nextTick()
|
|
106
108
|
|
|
107
109
|
expect(wrapper.vm.internalValue).toBe(1)
|
|
108
110
|
|
|
109
111
|
wrapper.setProps({ clearable: true })
|
|
110
112
|
|
|
111
|
-
await
|
|
113
|
+
await nextTick()
|
|
112
114
|
|
|
113
115
|
icon.trigger('click')
|
|
114
116
|
|
|
115
|
-
await
|
|
117
|
+
await nextTick()
|
|
116
118
|
|
|
117
119
|
expect(wrapper.vm.internalValue).toBe(0)
|
|
118
120
|
})
|
|
@@ -128,17 +130,17 @@ describe('VRating.ts', () => {
|
|
|
128
130
|
|
|
129
131
|
icon.trigger('click')
|
|
130
132
|
|
|
131
|
-
await
|
|
133
|
+
await nextTick()
|
|
132
134
|
|
|
133
135
|
expect(wrapper.emitted()).not.toHaveProperty('update:modelValue')
|
|
134
136
|
|
|
135
137
|
wrapper.setProps({ readonly: false })
|
|
136
138
|
|
|
137
|
-
await
|
|
139
|
+
await nextTick()
|
|
138
140
|
|
|
139
141
|
icon.trigger('click')
|
|
140
142
|
|
|
141
|
-
await
|
|
143
|
+
await nextTick()
|
|
142
144
|
|
|
143
145
|
expect(wrapper.emitted()).toHaveProperty('update:modelValue')
|
|
144
146
|
expect(wrapper.emitted()['update:modelValue'][0][0]).toBe(1)
|
|
@@ -180,7 +182,7 @@ describe('VRating.ts', () => {
|
|
|
180
182
|
|
|
181
183
|
wrapper.setProps({ halfIncrements: true })
|
|
182
184
|
|
|
183
|
-
await
|
|
185
|
+
await nextTick()
|
|
184
186
|
|
|
185
187
|
expect(wrapper.vm.genHoverIndex({
|
|
186
188
|
pageX: 0,
|
|
@@ -212,25 +214,21 @@ describe('VRating.ts', () => {
|
|
|
212
214
|
})
|
|
213
215
|
|
|
214
216
|
const event = new MouseEvent('hover')
|
|
215
|
-
expect(wrapper.vm.genHoverIndex(event, 1)).toBe(
|
|
216
|
-
|
|
217
|
-
wrapper.setProps({ halfIncrements: true })
|
|
218
|
-
|
|
219
|
-
await wrapper.vm.$nextTick()
|
|
217
|
+
expect(wrapper.vm.genHoverIndex(event, 1)).toBe(2)
|
|
220
218
|
|
|
221
219
|
expect(wrapper.vm.genHoverIndex({
|
|
222
220
|
pageX: 0,
|
|
223
221
|
target: {
|
|
224
222
|
getBoundingClientRect: () => ({ width: 10, left: 0 }),
|
|
225
223
|
},
|
|
226
|
-
}, 1)).toBe(
|
|
224
|
+
}, 1)).toBe(1.5)
|
|
227
225
|
|
|
228
226
|
expect(wrapper.vm.genHoverIndex({
|
|
229
227
|
pageX: 6,
|
|
230
228
|
target: {
|
|
231
229
|
getBoundingClientRect: () => ({ width: 10, left: 0 }),
|
|
232
230
|
},
|
|
233
|
-
}, 1)).toBe(
|
|
231
|
+
}, 1)).toBe(2)
|
|
234
232
|
})
|
|
235
233
|
|
|
236
234
|
it('should render a scoped slot', () => {
|
|
@@ -240,10 +238,7 @@ describe('VRating.ts', () => {
|
|
|
240
238
|
render: () => h(VRating, {}, {item: itemSlot})
|
|
241
239
|
}
|
|
242
240
|
|
|
243
|
-
const wrapper = mount(component
|
|
244
|
-
// https://github.com/vuejs/vue-test-utils/issues/1130
|
|
245
|
-
sync: false,
|
|
246
|
-
})
|
|
241
|
+
const wrapper = mount(component)
|
|
247
242
|
|
|
248
243
|
expect(wrapper.html()).toMatchSnapshot()
|
|
249
244
|
})
|
|
@@ -269,7 +264,7 @@ describe('VRating.ts', () => {
|
|
|
269
264
|
it('should reset hoverIndex on mouse leave', () => {
|
|
270
265
|
jest.useFakeTimers()
|
|
271
266
|
const wrapper = mountFunction({
|
|
272
|
-
|
|
267
|
+
props: { hover: true },
|
|
273
268
|
})
|
|
274
269
|
|
|
275
270
|
const icon = wrapper.find('.v-icon')
|
|
@@ -4,12 +4,17 @@ import VResponsive from '../VResponsive'
|
|
|
4
4
|
// Utilities
|
|
5
5
|
import {
|
|
6
6
|
mount,
|
|
7
|
-
|
|
7
|
+
VueWrapper,
|
|
8
|
+
MountingOptions,
|
|
9
|
+
enableAutoUnmount,
|
|
8
10
|
} from '@vue/test-utils'
|
|
11
|
+
import { h } from 'vue'
|
|
9
12
|
|
|
10
13
|
describe('VResponsive.ts', () => {
|
|
11
14
|
type Instance = InstanceType<typeof VResponsive>
|
|
12
|
-
let mountFunction: (options?:
|
|
15
|
+
let mountFunction: (options?: MountingOptions<Instance>) => VueWrapper<Instance>
|
|
16
|
+
|
|
17
|
+
enableAutoUnmount(afterEach)
|
|
13
18
|
|
|
14
19
|
beforeEach(() => {
|
|
15
20
|
mountFunction = (options = {}) => {
|
|
@@ -21,7 +26,7 @@ describe('VResponsive.ts', () => {
|
|
|
21
26
|
|
|
22
27
|
it('should force aspect ratio', () => {
|
|
23
28
|
const wrapper = mountFunction({
|
|
24
|
-
|
|
29
|
+
props: { aspectRatio: 16 / 9 },
|
|
25
30
|
})
|
|
26
31
|
|
|
27
32
|
expect(wrapper.html()).toMatchSnapshot()
|
|
@@ -30,7 +35,7 @@ describe('VResponsive.ts', () => {
|
|
|
30
35
|
it('should render content', () => {
|
|
31
36
|
const wrapper = mountFunction({
|
|
32
37
|
slots: {
|
|
33
|
-
default:
|
|
38
|
+
default: () => h('div', ['content']),
|
|
34
39
|
},
|
|
35
40
|
})
|
|
36
41
|
|
|
@@ -39,7 +44,7 @@ describe('VResponsive.ts', () => {
|
|
|
39
44
|
|
|
40
45
|
it('should set height', () => {
|
|
41
46
|
const wrapper = mountFunction({
|
|
42
|
-
|
|
47
|
+
props: { height: 100, maxHeight: 200 },
|
|
43
48
|
})
|
|
44
49
|
|
|
45
50
|
expect(wrapper.html()).toMatchSnapshot()
|
|
@@ -63,6 +63,9 @@ interface options extends InstanceType<typeof baseMixins> {
|
|
|
63
63
|
export default baseMixins.extend({
|
|
64
64
|
name: 'v-select',
|
|
65
65
|
|
|
66
|
+
$_emitChangeEvent: true,
|
|
67
|
+
$_modelEvent: 'update:modelValue',
|
|
68
|
+
|
|
66
69
|
props: {
|
|
67
70
|
appendIcon: {
|
|
68
71
|
type: String,
|
|
@@ -111,7 +114,7 @@ export default baseMixins.extend({
|
|
|
111
114
|
smallChips: Boolean,
|
|
112
115
|
},
|
|
113
116
|
|
|
114
|
-
emits: ['update:modelValue', 'change', 'focus', 'blur', 'keydown', 'click', 'update:list-index'],
|
|
117
|
+
emits: ['update:modelValue', 'change', 'focus', 'blur', 'keydown', 'click', 'update:list-index', 'click:clear'],
|
|
115
118
|
|
|
116
119
|
data () {
|
|
117
120
|
return {
|
|
@@ -351,6 +354,7 @@ export default baseMixins.extend({
|
|
|
351
354
|
this.$nextTick(() => this.$refs.input && this.$refs.input.focus())
|
|
352
355
|
|
|
353
356
|
if (this.openOnClear) this.isMenuActive = true
|
|
357
|
+
this.$emit('click:clear')
|
|
354
358
|
},
|
|
355
359
|
closeConditional (e: Event) {
|
|
356
360
|
if (!this.isMenuActive) return true
|
|
@@ -199,7 +199,7 @@ describe('VSelect.ts', () => {
|
|
|
199
199
|
expect(wrapper.vm.computedCounterValue).toBe(2)
|
|
200
200
|
})
|
|
201
201
|
|
|
202
|
-
it('should emit a single
|
|
202
|
+
it('should emit a single update:modelValue event', async () => {
|
|
203
203
|
const wrapper = mountFunction({
|
|
204
204
|
attachTo: el,
|
|
205
205
|
props: {
|
|
@@ -219,12 +219,12 @@ describe('VSelect.ts', () => {
|
|
|
219
219
|
wrapper.vm.blur()
|
|
220
220
|
await wrapper.vm.$nextTick()
|
|
221
221
|
|
|
222
|
-
const emitted = wrapper.emitted('
|
|
222
|
+
const emitted = wrapper.emitted('update:modelValue')
|
|
223
223
|
expect(emitted).toBeTruthy()
|
|
224
224
|
expect(emitted[0]).toEqual(['foo'])
|
|
225
225
|
})
|
|
226
226
|
|
|
227
|
-
it('should not emit
|
|
227
|
+
it('should not emit update:modelValue event when clicked on the selected item', async () => {
|
|
228
228
|
const wrapper = mountFunction({
|
|
229
229
|
props: {
|
|
230
230
|
items: ['foo', 'bar'],
|
|
@@ -237,7 +237,7 @@ describe('VSelect.ts', () => {
|
|
|
237
237
|
wrapper.vm.selectItem('foo')
|
|
238
238
|
await wrapper.vm.$nextTick()
|
|
239
239
|
|
|
240
|
-
const emitted = wrapper.emitted('
|
|
240
|
+
const emitted = wrapper.emitted('update:modelValue')
|
|
241
241
|
expect(emitted).toHaveLength(1)
|
|
242
242
|
})
|
|
243
243
|
|
|
@@ -376,7 +376,7 @@ describe('VSelect.ts', () => {
|
|
|
376
376
|
clear.trigger('click')
|
|
377
377
|
await wrapper.vm.$nextTick()
|
|
378
378
|
|
|
379
|
-
const emitted = wrapper.emitted('
|
|
379
|
+
const emitted = wrapper.emitted('update:modelValue')
|
|
380
380
|
expect(emitted).toBeTruthy()
|
|
381
381
|
expect(emitted[0]).toEqual([[]])
|
|
382
382
|
expect(wrapper.vm.isMenuActive).toBe(false)
|
|
@@ -52,13 +52,13 @@ describe('VSelect.ts', () => {
|
|
|
52
52
|
wrapper.vm.selectItem('foo')
|
|
53
53
|
|
|
54
54
|
expect(wrapper.vm.internalValue).toBe('foo')
|
|
55
|
-
expect(wrapper.emitted('update:modelValue')).toHaveLength(
|
|
55
|
+
expect(wrapper.emitted('update:modelValue')).toHaveLength(1)
|
|
56
56
|
expect(wrapper.emitted('update:modelValue')?.[0]).toEqual(['foo'])
|
|
57
57
|
|
|
58
58
|
await wrapper.vm.$nextTick()
|
|
59
59
|
|
|
60
|
-
expect(wrapper.emitted('
|
|
61
|
-
expect(wrapper.emitted('
|
|
60
|
+
expect(wrapper.emitted('update:modelValue')).toHaveLength(1)
|
|
61
|
+
expect(wrapper.emitted('update:modelValue')?.[0]).toEqual(['foo'])
|
|
62
62
|
|
|
63
63
|
await wrapper.setProps({ returnObject: true })
|
|
64
64
|
|
|
@@ -66,13 +66,13 @@ describe('VSelect.ts', () => {
|
|
|
66
66
|
wrapper.vm.selectItem(item)
|
|
67
67
|
|
|
68
68
|
expect(wrapper.vm.internalValue).toStrictEqual(item)
|
|
69
|
-
expect(wrapper.emitted('update:modelValue')).toHaveLength(
|
|
70
|
-
expect(wrapper.emitted('update:modelValue')?.[
|
|
69
|
+
expect(wrapper.emitted('update:modelValue')).toHaveLength(2)
|
|
70
|
+
expect(wrapper.emitted('update:modelValue')?.[1]).toEqual([item])
|
|
71
71
|
|
|
72
72
|
await wrapper.vm.$nextTick()
|
|
73
73
|
|
|
74
|
-
expect(wrapper.emitted('
|
|
75
|
-
expect(wrapper.emitted('
|
|
74
|
+
expect(wrapper.emitted('update:modelValue')).toHaveLength(2)
|
|
75
|
+
expect(wrapper.emitted('update:modelValue')?.[1]).toEqual([item])
|
|
76
76
|
})
|
|
77
77
|
|
|
78
78
|
// TODO: this fails without sync, nextTick doesn't help
|
|
@@ -339,12 +339,12 @@ describe('VSelect.ts', () => {
|
|
|
339
339
|
await wrapper.vm.$nextTick()
|
|
340
340
|
expect(wrapper.emitted('update:list-index')).toBeTruthy()
|
|
341
341
|
expect(wrapper.emitted('update:list-index')).toHaveLength(1)
|
|
342
|
-
expect(wrapper.emitted('update:list-index')[0]).toEqual([
|
|
342
|
+
expect(wrapper.emitted('update:list-index')[0]).toEqual([0])
|
|
343
343
|
|
|
344
344
|
input.trigger('keydown.down')
|
|
345
345
|
await wrapper.vm.$nextTick()
|
|
346
346
|
expect(wrapper.emitted('update:list-index')).toHaveLength(2)
|
|
347
|
-
expect(wrapper.emitted('update:list-index')[1]).toEqual([
|
|
347
|
+
expect(wrapper.emitted('update:list-index')[1]).toEqual([1])
|
|
348
348
|
})
|
|
349
349
|
|
|
350
350
|
it('should close menu when append icon is clicked', async () => {
|
|
@@ -169,8 +169,8 @@ exports[`VSelect.ts should use slotted append-item 1`] = `
|
|
|
169
169
|
<div aria-selected="false"
|
|
170
170
|
id="list-item-23-0"
|
|
171
171
|
role="option"
|
|
172
|
-
tabindex="
|
|
173
|
-
class="v-list-item theme--light"
|
|
172
|
+
tabindex="0"
|
|
173
|
+
class="v-list-item v-list-item--link theme--light"
|
|
174
174
|
>
|
|
175
175
|
<div class="v-list-item__content">
|
|
176
176
|
<div class="v-list-item__title">
|
|
@@ -196,8 +196,8 @@ exports[`VSelect.ts should use slotted prepend-item 1`] = `
|
|
|
196
196
|
<div aria-selected="false"
|
|
197
197
|
id="list-item-8-0"
|
|
198
198
|
role="option"
|
|
199
|
-
tabindex="
|
|
200
|
-
class="v-list-item theme--light"
|
|
199
|
+
tabindex="0"
|
|
200
|
+
class="v-list-item v-list-item--link theme--light"
|
|
201
201
|
>
|
|
202
202
|
<div class="v-list-item__content">
|
|
203
203
|
<div class="v-list-item__title">
|