@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
|
@@ -45,287 +45,3 @@ exports[`VSelect.ts should add color to selected index 1`] = `
|
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
`;
|
|
48
|
-
|
|
49
|
-
exports[`VSelect.ts should open the select is multiple and key down is pressed 1`] = `
|
|
50
|
-
<div
|
|
51
|
-
data-app="true"
|
|
52
|
-
>
|
|
53
|
-
<div
|
|
54
|
-
class="v-menu__content theme--light menuable__content__active "
|
|
55
|
-
style="max-height: 304px; min-width: 0px; max-width: auto; top: 12px; left: 0px; transform-origin: top left; z-index: 8; display: none;"
|
|
56
|
-
>
|
|
57
|
-
<div
|
|
58
|
-
class="v-list v-select-list v-sheet theme--light theme--light"
|
|
59
|
-
id="list-106"
|
|
60
|
-
role="listbox"
|
|
61
|
-
tabindex="-1"
|
|
62
|
-
>
|
|
63
|
-
<div
|
|
64
|
-
aria-selected="false"
|
|
65
|
-
class="v-list-item v-list-item--link theme--light"
|
|
66
|
-
id="list-item-113-0"
|
|
67
|
-
role="option"
|
|
68
|
-
tabindex="0"
|
|
69
|
-
>
|
|
70
|
-
<div
|
|
71
|
-
class="v-list-item__action"
|
|
72
|
-
>
|
|
73
|
-
<div
|
|
74
|
-
class="v-simple-checkbox"
|
|
75
|
-
>
|
|
76
|
-
<div
|
|
77
|
-
class="v-input--selection-controls__input"
|
|
78
|
-
>
|
|
79
|
-
<i
|
|
80
|
-
aria-hidden="true"
|
|
81
|
-
class="v-icon notranslate material-icons theme--light"
|
|
82
|
-
>
|
|
83
|
-
$checkboxOff
|
|
84
|
-
</i>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
<div
|
|
89
|
-
class="v-list-item__content"
|
|
90
|
-
>
|
|
91
|
-
<div
|
|
92
|
-
class="v-list-item__title"
|
|
93
|
-
>
|
|
94
|
-
foo
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
<div
|
|
99
|
-
aria-selected="false"
|
|
100
|
-
class="v-list-item v-list-item--link theme--light"
|
|
101
|
-
id="list-item-113-1"
|
|
102
|
-
role="option"
|
|
103
|
-
tabindex="0"
|
|
104
|
-
>
|
|
105
|
-
<div
|
|
106
|
-
class="v-list-item__action"
|
|
107
|
-
>
|
|
108
|
-
<div
|
|
109
|
-
class="v-simple-checkbox"
|
|
110
|
-
>
|
|
111
|
-
<div
|
|
112
|
-
class="v-input--selection-controls__input"
|
|
113
|
-
>
|
|
114
|
-
<i
|
|
115
|
-
aria-hidden="true"
|
|
116
|
-
class="v-icon notranslate material-icons theme--light"
|
|
117
|
-
>
|
|
118
|
-
$checkboxOff
|
|
119
|
-
</i>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
<div
|
|
124
|
-
class="v-list-item__content"
|
|
125
|
-
>
|
|
126
|
-
<div
|
|
127
|
-
class="v-list-item__title"
|
|
128
|
-
>
|
|
129
|
-
bar
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
`;
|
|
137
|
-
|
|
138
|
-
exports[`VSelect.ts should open the select is multiple and key up is pressed 1`] = `
|
|
139
|
-
<div
|
|
140
|
-
data-app="true"
|
|
141
|
-
>
|
|
142
|
-
<div
|
|
143
|
-
class="v-menu__content theme--light menuable__content__active "
|
|
144
|
-
style="max-height: 304px; min-width: 0px; max-width: auto; top: 12px; left: 0px; transform-origin: top left; z-index: 8; display: none;"
|
|
145
|
-
>
|
|
146
|
-
<div
|
|
147
|
-
class="v-list v-select-list v-sheet theme--light theme--light"
|
|
148
|
-
id="list-92"
|
|
149
|
-
role="listbox"
|
|
150
|
-
tabindex="-1"
|
|
151
|
-
>
|
|
152
|
-
<div
|
|
153
|
-
aria-selected="false"
|
|
154
|
-
class="v-list-item v-list-item--link theme--light"
|
|
155
|
-
id="list-item-99-0"
|
|
156
|
-
role="option"
|
|
157
|
-
tabindex="0"
|
|
158
|
-
>
|
|
159
|
-
<div
|
|
160
|
-
class="v-list-item__action"
|
|
161
|
-
>
|
|
162
|
-
<div
|
|
163
|
-
class="v-simple-checkbox"
|
|
164
|
-
>
|
|
165
|
-
<div
|
|
166
|
-
class="v-input--selection-controls__input"
|
|
167
|
-
>
|
|
168
|
-
<i
|
|
169
|
-
aria-hidden="true"
|
|
170
|
-
class="v-icon notranslate material-icons theme--light"
|
|
171
|
-
>
|
|
172
|
-
$checkboxOff
|
|
173
|
-
</i>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
<div
|
|
178
|
-
class="v-list-item__content"
|
|
179
|
-
>
|
|
180
|
-
<div
|
|
181
|
-
class="v-list-item__title"
|
|
182
|
-
>
|
|
183
|
-
foo
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
</div>
|
|
187
|
-
<div
|
|
188
|
-
aria-selected="false"
|
|
189
|
-
class="v-list-item v-list-item--link theme--light"
|
|
190
|
-
id="list-item-99-1"
|
|
191
|
-
role="option"
|
|
192
|
-
tabindex="0"
|
|
193
|
-
>
|
|
194
|
-
<div
|
|
195
|
-
class="v-list-item__action"
|
|
196
|
-
>
|
|
197
|
-
<div
|
|
198
|
-
class="v-simple-checkbox"
|
|
199
|
-
>
|
|
200
|
-
<div
|
|
201
|
-
class="v-input--selection-controls__input"
|
|
202
|
-
>
|
|
203
|
-
<i
|
|
204
|
-
aria-hidden="true"
|
|
205
|
-
class="v-icon notranslate material-icons theme--light"
|
|
206
|
-
>
|
|
207
|
-
$checkboxOff
|
|
208
|
-
</i>
|
|
209
|
-
</div>
|
|
210
|
-
</div>
|
|
211
|
-
</div>
|
|
212
|
-
<div
|
|
213
|
-
class="v-list-item__content"
|
|
214
|
-
>
|
|
215
|
-
<div
|
|
216
|
-
class="v-list-item__title"
|
|
217
|
-
>
|
|
218
|
-
bar
|
|
219
|
-
</div>
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
|
-
</div>
|
|
223
|
-
</div>
|
|
224
|
-
</div>
|
|
225
|
-
`;
|
|
226
|
-
|
|
227
|
-
exports[`VSelect.ts should open the select when enter is pressed 1`] = `
|
|
228
|
-
<div
|
|
229
|
-
data-app="true"
|
|
230
|
-
>
|
|
231
|
-
<div
|
|
232
|
-
class="v-menu__content theme--light menuable__content__active "
|
|
233
|
-
style="max-height: 304px; min-width: 0px; max-width: auto; top: 12px; left: 0px; transform-origin: top left; z-index: 8; display: none;"
|
|
234
|
-
>
|
|
235
|
-
<div
|
|
236
|
-
class="v-list v-select-list v-sheet theme--light theme--light"
|
|
237
|
-
id="list-68"
|
|
238
|
-
role="listbox"
|
|
239
|
-
tabindex="-1"
|
|
240
|
-
>
|
|
241
|
-
<div
|
|
242
|
-
aria-selected="false"
|
|
243
|
-
class="v-list-item v-list-item--link theme--light"
|
|
244
|
-
id="list-item-75-0"
|
|
245
|
-
role="option"
|
|
246
|
-
tabindex="0"
|
|
247
|
-
>
|
|
248
|
-
<div
|
|
249
|
-
class="v-list-item__content"
|
|
250
|
-
>
|
|
251
|
-
<div
|
|
252
|
-
class="v-list-item__title"
|
|
253
|
-
>
|
|
254
|
-
foo
|
|
255
|
-
</div>
|
|
256
|
-
</div>
|
|
257
|
-
</div>
|
|
258
|
-
<div
|
|
259
|
-
aria-selected="false"
|
|
260
|
-
class="v-list-item v-list-item--link theme--light"
|
|
261
|
-
id="list-item-75-1"
|
|
262
|
-
role="option"
|
|
263
|
-
tabindex="0"
|
|
264
|
-
>
|
|
265
|
-
<div
|
|
266
|
-
class="v-list-item__content"
|
|
267
|
-
>
|
|
268
|
-
<div
|
|
269
|
-
class="v-list-item__title"
|
|
270
|
-
>
|
|
271
|
-
bar
|
|
272
|
-
</div>
|
|
273
|
-
</div>
|
|
274
|
-
</div>
|
|
275
|
-
</div>
|
|
276
|
-
</div>
|
|
277
|
-
</div>
|
|
278
|
-
`;
|
|
279
|
-
|
|
280
|
-
exports[`VSelect.ts should open the select when space is pressed 1`] = `
|
|
281
|
-
<div
|
|
282
|
-
data-app="true"
|
|
283
|
-
>
|
|
284
|
-
<div
|
|
285
|
-
class="v-menu__content theme--light menuable__content__active "
|
|
286
|
-
style="max-height: 304px; min-width: 0px; max-width: auto; top: 12px; left: 0px; transform-origin: top left; z-index: 8; display: none;"
|
|
287
|
-
>
|
|
288
|
-
<div
|
|
289
|
-
class="v-list v-select-list v-sheet theme--light theme--light"
|
|
290
|
-
id="list-80"
|
|
291
|
-
role="listbox"
|
|
292
|
-
tabindex="-1"
|
|
293
|
-
>
|
|
294
|
-
<div
|
|
295
|
-
aria-selected="false"
|
|
296
|
-
class="v-list-item v-list-item--link theme--light"
|
|
297
|
-
id="list-item-87-0"
|
|
298
|
-
role="option"
|
|
299
|
-
tabindex="0"
|
|
300
|
-
>
|
|
301
|
-
<div
|
|
302
|
-
class="v-list-item__content"
|
|
303
|
-
>
|
|
304
|
-
<div
|
|
305
|
-
class="v-list-item__title"
|
|
306
|
-
>
|
|
307
|
-
foo
|
|
308
|
-
</div>
|
|
309
|
-
</div>
|
|
310
|
-
</div>
|
|
311
|
-
<div
|
|
312
|
-
aria-selected="false"
|
|
313
|
-
class="v-list-item v-list-item--link theme--light"
|
|
314
|
-
id="list-item-87-1"
|
|
315
|
-
role="option"
|
|
316
|
-
tabindex="0"
|
|
317
|
-
>
|
|
318
|
-
<div
|
|
319
|
-
class="v-list-item__content"
|
|
320
|
-
>
|
|
321
|
-
<div
|
|
322
|
-
class="v-list-item__title"
|
|
323
|
-
>
|
|
324
|
-
bar
|
|
325
|
-
</div>
|
|
326
|
-
</div>
|
|
327
|
-
</div>
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
</div>
|
|
331
|
-
`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`VSelectList.ts should display falsy items 1`] = `
|
|
4
|
-
<div
|
|
4
|
+
<div class="v-sheet theme--light v-list v-select-list theme--light"
|
|
5
|
+
role="listbox"
|
|
5
6
|
tabindex="-1"
|
|
6
|
-
class="v-list v-select-list v-sheet theme--light theme--light"
|
|
7
7
|
>
|
|
8
|
-
<div
|
|
9
|
-
|
|
10
|
-
id="list-item-29-0"
|
|
8
|
+
<div aria-selected="false"
|
|
9
|
+
id="list-item-39-0"
|
|
11
10
|
role="option"
|
|
11
|
+
tabindex="0"
|
|
12
12
|
class="v-list-item v-list-item--link theme--light"
|
|
13
13
|
>
|
|
14
14
|
<div class="v-list-item__content">
|
|
@@ -17,10 +17,10 @@ exports[`VSelectList.ts should display falsy items 1`] = `
|
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
|
-
<div
|
|
21
|
-
|
|
22
|
-
id="list-item-29-1"
|
|
20
|
+
<div aria-selected="false"
|
|
21
|
+
id="list-item-39-1"
|
|
23
22
|
role="option"
|
|
23
|
+
tabindex="0"
|
|
24
24
|
class="v-list-item v-list-item--link theme--light"
|
|
25
25
|
>
|
|
26
26
|
<div class="v-list-item__content">
|
|
@@ -29,10 +29,10 @@ exports[`VSelectList.ts should display falsy items 1`] = `
|
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
32
|
-
<div
|
|
33
|
-
|
|
34
|
-
id="list-item-29-2"
|
|
32
|
+
<div aria-selected="false"
|
|
33
|
+
id="list-item-39-2"
|
|
35
34
|
role="option"
|
|
35
|
+
tabindex="0"
|
|
36
36
|
class="v-list-item v-list-item--link theme--light"
|
|
37
37
|
>
|
|
38
38
|
<div class="v-list-item__content">
|
|
@@ -41,10 +41,10 @@ exports[`VSelectList.ts should display falsy items 1`] = `
|
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
|
-
<div
|
|
45
|
-
|
|
46
|
-
id="list-item-29-3"
|
|
44
|
+
<div aria-selected="false"
|
|
45
|
+
id="list-item-39-3"
|
|
47
46
|
role="option"
|
|
47
|
+
tabindex="0"
|
|
48
48
|
class="v-list-item v-list-item--link theme--light"
|
|
49
49
|
>
|
|
50
50
|
<div class="v-list-item__content">
|
|
@@ -53,10 +53,10 @@ exports[`VSelectList.ts should display falsy items 1`] = `
|
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
|
-
<div
|
|
57
|
-
|
|
58
|
-
id="list-item-29-4"
|
|
56
|
+
<div aria-selected="false"
|
|
57
|
+
id="list-item-39-4"
|
|
59
58
|
role="option"
|
|
59
|
+
tabindex="0"
|
|
60
60
|
class="v-list-item v-list-item--link theme--light"
|
|
61
61
|
>
|
|
62
62
|
<div class="v-list-item__content">
|
|
@@ -68,9 +68,9 @@ exports[`VSelectList.ts should display falsy items 1`] = `
|
|
|
68
68
|
`;
|
|
69
69
|
|
|
70
70
|
exports[`VSelectList.ts should display no-data-text when item slot is provided 1`] = `
|
|
71
|
-
<div
|
|
71
|
+
<div class="v-sheet theme--light v-list v-select-list theme--light"
|
|
72
|
+
role="listbox"
|
|
72
73
|
tabindex="-1"
|
|
73
|
-
class="v-list v-select-list v-sheet theme--light theme--light"
|
|
74
74
|
>
|
|
75
75
|
<div tabindex="-1"
|
|
76
76
|
class="v-list-item theme--light"
|
|
@@ -85,21 +85,24 @@ exports[`VSelectList.ts should display no-data-text when item slot is provided 1
|
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
exports[`VSelectList.ts should generate children 1`] = `
|
|
88
|
-
<div
|
|
88
|
+
<div class="v-sheet theme--light v-list v-select-list theme--light"
|
|
89
|
+
role="listbox"
|
|
89
90
|
tabindex="-1"
|
|
90
|
-
class="v-list v-select-list v-sheet theme--light theme--light"
|
|
91
91
|
>
|
|
92
|
-
<div
|
|
92
|
+
<div header="true"
|
|
93
|
+
class="v-subheader theme--light"
|
|
94
|
+
>
|
|
93
95
|
true
|
|
94
96
|
</div>
|
|
95
|
-
<hr
|
|
96
|
-
aria-orientation="horizontal"
|
|
97
|
+
<hr divider="true"
|
|
97
98
|
class="v-divider theme--light"
|
|
99
|
+
role="separator"
|
|
100
|
+
aria-orientation="horizontal"
|
|
98
101
|
>
|
|
99
|
-
<div
|
|
100
|
-
|
|
101
|
-
id="list-item-14-2"
|
|
102
|
+
<div aria-selected="false"
|
|
103
|
+
id="list-item-16-2"
|
|
102
104
|
role="option"
|
|
105
|
+
tabindex="0"
|
|
103
106
|
class="v-list-item v-list-item--link theme--light"
|
|
104
107
|
>
|
|
105
108
|
<div class="v-list-item__content">
|
|
@@ -9,21 +9,26 @@ import { preset } from '../../../presets/default'
|
|
|
9
9
|
import { ExtractVue } from '../../../util/mixins'
|
|
10
10
|
import {
|
|
11
11
|
shallowMount,
|
|
12
|
-
|
|
12
|
+
VueWrapper,
|
|
13
|
+
enableAutoUnmount,
|
|
13
14
|
} from '@vue/test-utils'
|
|
15
|
+
import { h } from 'vue'
|
|
14
16
|
|
|
15
17
|
describe('VSlideGroup.ts', () => {
|
|
16
18
|
type Instance = ExtractVue<typeof VSlideGroup>
|
|
17
|
-
let mountFunction: (options?: object) =>
|
|
19
|
+
let mountFunction: (options?: object) => VueWrapper<Instance>
|
|
20
|
+
|
|
21
|
+
enableAutoUnmount(afterEach)
|
|
18
22
|
|
|
19
23
|
beforeEach(() => {
|
|
20
24
|
mountFunction = (options = {}) => {
|
|
21
25
|
return shallowMount(VSlideGroup, {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
global: {
|
|
27
|
+
mocks: {
|
|
28
|
+
$vuetify: {
|
|
29
|
+
rtl: false,
|
|
30
|
+
breakpoint: new Breakpoint(preset),
|
|
31
|
+
},
|
|
27
32
|
},
|
|
28
33
|
},
|
|
29
34
|
...options,
|
|
@@ -36,7 +41,7 @@ describe('VSlideGroup.ts', () => {
|
|
|
36
41
|
data: () => ({
|
|
37
42
|
isOverflowing: true,
|
|
38
43
|
}),
|
|
39
|
-
|
|
44
|
+
props: {
|
|
40
45
|
showArrows: true,
|
|
41
46
|
},
|
|
42
47
|
})
|
|
@@ -45,23 +50,19 @@ describe('VSlideGroup.ts', () => {
|
|
|
45
50
|
expect(wrapper.vm.hasNext).toBe(false)
|
|
46
51
|
expect(wrapper.vm.hasPrev).toBe(false)
|
|
47
52
|
|
|
48
|
-
wrapper.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
})
|
|
53
|
+
wrapper.vm.scrollOffset = 100
|
|
54
|
+
wrapper.vm.widths = {
|
|
55
|
+
content: 1000,
|
|
56
|
+
wrapper: 500,
|
|
57
|
+
}
|
|
55
58
|
|
|
56
59
|
expect(wrapper.vm.hasPrev).toBe(true)
|
|
57
60
|
|
|
58
|
-
wrapper.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
})
|
|
61
|
+
wrapper.vm.scrollOffset = -100
|
|
62
|
+
wrapper.vm.widths = {
|
|
63
|
+
content: 1000,
|
|
64
|
+
wrapper: 500,
|
|
65
|
+
}
|
|
65
66
|
|
|
66
67
|
expect(wrapper.vm.hasNext).toBe(true)
|
|
67
68
|
})
|
|
@@ -175,10 +176,8 @@ describe('VSlideGroup.ts', () => {
|
|
|
175
176
|
|
|
176
177
|
expect(wrapper.vm.scrollOffset).toBe(0)
|
|
177
178
|
|
|
178
|
-
wrapper.
|
|
179
|
-
|
|
180
|
-
isOverflowing: true,
|
|
181
|
-
})
|
|
179
|
+
wrapper.vm.scrollOffset = 90
|
|
180
|
+
wrapper.vm.isOverflowing = true
|
|
182
181
|
|
|
183
182
|
wrapper.vm.onTouchEnd()
|
|
184
183
|
expect(wrapper.vm.scrollOffset).toBe(0)
|
|
@@ -203,7 +202,7 @@ describe('VSlideGroup.ts', () => {
|
|
|
203
202
|
wrapper.vm.overflowCheck(event, fn)
|
|
204
203
|
expect(fn).not.toHaveBeenCalled()
|
|
205
204
|
|
|
206
|
-
wrapper.
|
|
205
|
+
wrapper.vm.isOverflowing = true
|
|
207
206
|
wrapper.vm.overflowCheck(event, fn)
|
|
208
207
|
expect(fn).toHaveBeenCalled()
|
|
209
208
|
})
|
|
@@ -213,24 +212,33 @@ describe('VSlideGroup.ts', () => {
|
|
|
213
212
|
const scrollTo = jest.fn()
|
|
214
213
|
const setWidths = jest.fn()
|
|
215
214
|
const wrapper = mountFunction({
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
global: {
|
|
216
|
+
mocks: {
|
|
217
|
+
$vuetify: {
|
|
218
|
+
rtl: false,
|
|
219
|
+
breakpoint: new Breakpoint(preset),
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
props: {
|
|
218
224
|
showArrows: true,
|
|
219
225
|
},
|
|
220
|
-
|
|
221
|
-
'
|
|
222
|
-
'
|
|
226
|
+
attrs: {
|
|
227
|
+
'onClick:prev': onClick,
|
|
228
|
+
'onClick:next': onClick,
|
|
223
229
|
},
|
|
224
230
|
})
|
|
225
231
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
// Mock the methods
|
|
233
|
+
wrapper.vm.scrollTo = scrollTo
|
|
234
|
+
wrapper.vm.setWidths = setWidths
|
|
235
|
+
|
|
236
|
+
wrapper.vm.isOverflowing = true
|
|
237
|
+
wrapper.vm.scrollOffset = 200
|
|
238
|
+
wrapper.vm.widths = {
|
|
239
|
+
content: 1000,
|
|
240
|
+
wrapper: 500,
|
|
241
|
+
}
|
|
234
242
|
|
|
235
243
|
await wrapper.vm.$nextTick()
|
|
236
244
|
|
|
@@ -250,10 +258,10 @@ describe('VSlideGroup.ts', () => {
|
|
|
250
258
|
hasNext: () => true,
|
|
251
259
|
hasPrev: () => true,
|
|
252
260
|
},
|
|
253
|
-
|
|
261
|
+
props: {
|
|
254
262
|
showArrows: true,
|
|
255
263
|
},
|
|
256
|
-
|
|
264
|
+
slots: {
|
|
257
265
|
prev () {
|
|
258
266
|
return h('div', {
|
|
259
267
|
class: 'fizz',
|
|
@@ -267,39 +275,37 @@ describe('VSlideGroup.ts', () => {
|
|
|
267
275
|
},
|
|
268
276
|
})
|
|
269
277
|
|
|
270
|
-
wrapper.
|
|
278
|
+
wrapper.vm.isOverflowing = true
|
|
271
279
|
|
|
272
280
|
expect(wrapper.findAll('.fizz')).toHaveLength(2)
|
|
273
281
|
})
|
|
274
282
|
|
|
275
283
|
it('should match snapshot in rtl', async () => {
|
|
276
284
|
const wrapper = mountFunction({
|
|
277
|
-
|
|
278
|
-
hasAffixes: () => true,
|
|
279
|
-
hasNext: () => true,
|
|
280
|
-
hasPrev: () => true,
|
|
281
|
-
},
|
|
282
|
-
propsData: {
|
|
285
|
+
props: {
|
|
283
286
|
showArrows: true,
|
|
284
287
|
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
global: {
|
|
289
|
+
mocks: {
|
|
290
|
+
$vuetify: {
|
|
291
|
+
rtl: true,
|
|
292
|
+
breakpoint: { mobileBreakpoint: 1264 },
|
|
293
|
+
},
|
|
289
294
|
},
|
|
290
295
|
},
|
|
291
296
|
})
|
|
292
297
|
|
|
298
|
+
// Set up data to show affixes
|
|
299
|
+
wrapper.vm.isOverflowing = true
|
|
300
|
+
wrapper.vm.scrollOffset = 200
|
|
301
|
+
wrapper.vm.widths = {
|
|
302
|
+
content: 1000,
|
|
303
|
+
wrapper: 500,
|
|
304
|
+
}
|
|
305
|
+
|
|
293
306
|
const html1 = wrapper.html()
|
|
294
307
|
|
|
295
308
|
expect(html1).toMatchSnapshot()
|
|
296
|
-
|
|
297
|
-
wrapper.vm.$vuetify.rtl = false
|
|
298
|
-
|
|
299
|
-
const html2 = wrapper.html()
|
|
300
|
-
|
|
301
|
-
expect(html1).not.toEqual(html2)
|
|
302
|
-
expect(html2).toMatchSnapshot()
|
|
303
309
|
})
|
|
304
310
|
|
|
305
311
|
// showArrows | isOverflowing | isMobile | hasAffixes
|
|
@@ -326,7 +332,7 @@ describe('VSlideGroup.ts', () => {
|
|
|
326
332
|
const wrapper = mountFunction({
|
|
327
333
|
data: () => ({ isOverflowing }),
|
|
328
334
|
computed: { isMobile: () => isMobile },
|
|
329
|
-
|
|
335
|
+
props: { showArrows },
|
|
330
336
|
})
|
|
331
337
|
|
|
332
338
|
expect(wrapper.vm.hasAffixes).toBe(hasAffixes)
|
|
@@ -356,9 +362,11 @@ describe('VSlideGroup.ts', () => {
|
|
|
356
362
|
data: () => ({
|
|
357
363
|
items: [{ $el: {} }],
|
|
358
364
|
}),
|
|
359
|
-
methods: { calculateNewOffset },
|
|
360
365
|
})
|
|
361
366
|
|
|
367
|
+
// Mock the method
|
|
368
|
+
wrapper.vm.calculateNewOffset = calculateNewOffset
|
|
369
|
+
|
|
362
370
|
const setWrapperPosition = ({ left = 0, right = 0 } = {}) => {
|
|
363
371
|
wrapper.vm.$refs.wrapper.getBoundingClientRect = () => ({ left, right } as DOMRectReadOnly)
|
|
364
372
|
}
|
|
@@ -1,46 +1,25 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`VSlideGroup.ts should match snapshot in rtl 1`] = `
|
|
4
|
-
<div class="v-item-group theme--light v-slide-group
|
|
5
|
-
<div class="v-slide-group__prev">
|
|
6
|
-
<fade-transition-stub
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
<div class="v-item-group theme--light v-slide-group">
|
|
5
|
+
<div class="v-slide-group__prev v-slide-group__prev--disabled">
|
|
6
|
+
<fade-transition-stub group="false"
|
|
7
|
+
hideonleave="false"
|
|
8
|
+
leaveabsolute="false"
|
|
9
|
+
origin="top center 0"
|
|
10
|
+
>
|
|
10
11
|
</fade-transition-stub>
|
|
11
12
|
</div>
|
|
12
13
|
<div class="v-slide-group__wrapper">
|
|
13
14
|
<div class="v-slide-group__content">
|
|
14
15
|
</div>
|
|
15
16
|
</div>
|
|
16
|
-
<div class="v-slide-group__next">
|
|
17
|
-
<fade-transition-stub
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
`;
|
|
25
|
-
|
|
26
|
-
exports[`VSlideGroup.ts should match snapshot in rtl 2`] = `
|
|
27
|
-
<div class="v-item-group theme--light v-slide-group v-slide-group--has-affixes">
|
|
28
|
-
<div class="v-slide-group__prev">
|
|
29
|
-
<fade-transition-stub origin="top center 0">
|
|
30
|
-
<vuecomponent-stub>
|
|
31
|
-
$prev
|
|
32
|
-
</vuecomponent-stub>
|
|
33
|
-
</fade-transition-stub>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="v-slide-group__wrapper">
|
|
36
|
-
<div class="v-slide-group__content">
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="v-slide-group__next">
|
|
40
|
-
<fade-transition-stub origin="top center 0">
|
|
41
|
-
<vuecomponent-stub>
|
|
42
|
-
$next
|
|
43
|
-
</vuecomponent-stub>
|
|
17
|
+
<div class="v-slide-group__next v-slide-group__next--disabled">
|
|
18
|
+
<fade-transition-stub group="false"
|
|
19
|
+
hideonleave="false"
|
|
20
|
+
leaveabsolute="false"
|
|
21
|
+
origin="top center 0"
|
|
22
|
+
>
|
|
44
23
|
</fade-transition-stub>
|
|
45
24
|
</div>
|
|
46
25
|
</div>
|