@dimailn/vuetify 2.7.2-alpha26 → 2.7.2-alpha27
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 +1109 -1021
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +1 -1
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VAlert/VAlert.js +1 -0
- package/es5/components/VAlert/VAlert.js.map +1 -1
- package/es5/components/VAppBar/VAppBar.js +17 -6
- package/es5/components/VAppBar/VAppBar.js.map +1 -1
- package/es5/components/VBadge/VBadge.js +1 -0
- package/es5/components/VBadge/VBadge.js.map +1 -1
- package/es5/components/VBanner/VBanner.js +11 -12
- package/es5/components/VBanner/VBanner.js.map +1 -1
- package/es5/components/VBottomNavigation/VBottomNavigation.js +8 -7
- package/es5/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/es5/components/VBtn/VBtn.js +2 -2
- package/es5/components/VBtn/VBtn.js.map +1 -1
- package/es5/components/VCalendar/VCalendar.js +27 -29
- package/es5/components/VCalendar/VCalendar.js.map +1 -1
- package/es5/components/VCalendar/VCalendarCategory.js +26 -34
- package/es5/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/es5/components/VCalendar/VCalendarDaily.js +43 -60
- package/es5/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/es5/components/VCalendar/VCalendarMonthly.js +2 -2
- package/es5/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/es5/components/VCalendar/VCalendarWeekly.js +26 -35
- package/es5/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-base.js +5 -10
- package/es5/components/VCalendar/mixins/calendar-base.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-events.js +43 -58
- package/es5/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js +2 -2
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/es5/components/VCalendar/mixins/times.js.map +1 -1
- package/es5/components/VCarousel/VCarousel.js +10 -9
- package/es5/components/VCarousel/VCarousel.js.map +1 -1
- package/es5/components/VCheckbox/VCheckbox.js +31 -2
- package/es5/components/VCheckbox/VCheckbox.js.map +1 -1
- package/es5/components/VCheckbox/VSimpleCheckbox.js +0 -3
- package/es5/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/es5/components/VChip/VChip.js +14 -6
- package/es5/components/VChip/VChip.js.map +1 -1
- package/es5/components/VData/VData.js +1 -0
- package/es5/components/VData/VData.js.map +1 -1
- package/es5/components/VDataIterator/VDataFooter.js +1 -0
- package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
- package/es5/components/VDataIterator/VDataIterator.js +1 -0
- package/es5/components/VDataIterator/VDataIterator.js.map +1 -1
- package/es5/components/VDataTable/VDataTable.js +1 -6
- package/es5/components/VDataTable/VDataTable.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js +1 -0
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderMobile.js +1 -0
- package/es5/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/es5/components/VDataTable/VEditDialog.js +19 -18
- package/es5/components/VDataTable/VEditDialog.js.map +1 -1
- package/es5/components/VDataTable/mixins/header.js +0 -6
- package/es5/components/VDataTable/mixins/header.js.map +1 -1
- package/es5/components/VDatePicker/VDatePicker.js +13 -18
- package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerHeader.js +48 -26
- package/es5/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerMonthTable.js +6 -3
- package/es5/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerTitle.js +4 -3
- package/es5/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerYears.js +11 -12
- package/es5/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/es5/components/VDatePicker/mixins/date-picker-table.js +16 -13
- package/es5/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/VDatePicker/util/createNativeLocaleFormatter.js +4 -0
- package/es5/components/VDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/es5/components/VDialog/VDialog.js +1 -0
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanel.js +1 -0
- package/es5/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js +1 -10
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/es5/components/VFileInput/VFileInput.js +1 -0
- package/es5/components/VFileInput/VFileInput.js.map +1 -1
- package/es5/components/VForm/VForm.js +1 -0
- package/es5/components/VForm/VForm.js.map +1 -1
- package/es5/components/VHover/VHover.js +1 -0
- package/es5/components/VHover/VHover.js.map +1 -1
- package/es5/components/VImg/VImg.js +3 -5
- package/es5/components/VImg/VImg.js.map +1 -1
- package/es5/components/VInput/VInput.js +1 -0
- package/es5/components/VInput/VInput.js.map +1 -1
- package/es5/components/VItemGroup/VItem.js +2 -1
- package/es5/components/VItemGroup/VItem.js.map +1 -1
- package/es5/components/VItemGroup/VItemGroup.js +5 -1
- package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
- package/es5/components/VLazy/VLazy.js +8 -15
- package/es5/components/VLazy/VLazy.js.map +1 -1
- package/es5/components/VList/VListGroup.js +3 -11
- package/es5/components/VList/VListGroup.js.map +1 -1
- package/es5/components/VList/VListItem.js +26 -12
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VList/VListItemAction.js +23 -9
- package/es5/components/VList/VListItemAction.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +1 -0
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js +1 -7
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +1 -5
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverflowBtn/VOverflowBtn.js +1 -0
- package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/es5/components/VOverlay/VOverlay.js +1 -0
- package/es5/components/VOverlay/VOverlay.js.map +1 -1
- package/es5/components/VPagination/VPagination.js +1 -3
- package/es5/components/VPagination/VPagination.js.map +1 -1
- package/es5/components/VPicker/VPicker.js +2 -3
- package/es5/components/VPicker/VPicker.js.map +1 -1
- package/es5/components/VProgressCircular/VProgressCircular.js +1 -10
- package/es5/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/es5/components/VProgressLinear/VProgressLinear.js +4 -12
- package/es5/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/es5/components/VRadioGroup/VRadio.js +1 -0
- package/es5/components/VRadioGroup/VRadio.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +111 -64
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSelect/VSelectList.js +13 -17
- package/es5/components/VSelect/VSelectList.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +1 -4
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideItem.js +2 -1
- package/es5/components/VSlideGroup/VSlideItem.js.map +1 -1
- package/es5/components/VSlider/VSlider.js +0 -3
- package/es5/components/VSlider/VSlider.js.map +1 -1
- package/es5/components/VSnackbar/VSnackbar.js +1 -0
- package/es5/components/VSnackbar/VSnackbar.js.map +1 -1
- package/es5/components/VSparkline/VSparkline.js +48 -68
- package/es5/components/VSparkline/VSparkline.js.map +1 -1
- package/es5/components/VSpeedDial/VSpeedDial.js +4 -10
- package/es5/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/es5/components/VStepper/VStepper.js +1 -0
- package/es5/components/VStepper/VStepper.js.map +1 -1
- package/es5/components/VStepper/VStepperStep.js +11 -19
- package/es5/components/VStepper/VStepperStep.js.map +1 -1
- package/es5/components/VSwitch/VSwitch.js +1 -3
- package/es5/components/VSwitch/VSwitch.js.map +1 -1
- package/es5/components/VTabs/VTab.js +1 -0
- package/es5/components/VTabs/VTab.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +11 -4
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/VTabs/VTabsItems.js +1 -0
- package/es5/components/VTabs/VTabsItems.js.map +1 -1
- package/es5/components/VTextField/VTextField.js +31 -27
- package/es5/components/VTextField/VTextField.js.map +1 -1
- package/es5/components/VTimePicker/VTimePicker.js +72 -44
- package/es5/components/VTimePicker/VTimePicker.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerClock.js +37 -48
- package/es5/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerTitle.js +13 -11
- package/es5/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/es5/components/VToolbar/VToolbar.js +1 -3
- package/es5/components/VToolbar/VToolbar.js.map +1 -1
- package/es5/components/VTooltip/VTooltip.js +6 -3
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/components/VVirtualScroll/VVirtualScroll.js +0 -3
- package/es5/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/es5/components/VWindow/VWindow.js +0 -3
- package/es5/components/VWindow/VWindow.js.map +1 -1
- package/es5/components/VWindow/VWindowItem.js +1 -5
- package/es5/components/VWindow/VWindowItem.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/mixins/detachable/index.js +9 -5
- package/es5/mixins/detachable/index.js.map +1 -1
- package/lib/components/VAlert/VAlert.js +1 -0
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VAppBar/VAppBar.js +17 -6
- package/lib/components/VAppBar/VAppBar.js.map +1 -1
- package/lib/components/VBadge/VBadge.js +1 -0
- package/lib/components/VBadge/VBadge.js.map +1 -1
- package/lib/components/VBanner/VBanner.js +7 -11
- package/lib/components/VBanner/VBanner.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.js +8 -7
- package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/lib/components/VBtn/VBtn.js +2 -2
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VCalendar/VCalendar.js +26 -31
- package/lib/components/VCalendar/VCalendar.js.map +1 -1
- package/lib/components/VCalendar/VCalendarCategory.js +8 -10
- package/lib/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/lib/components/VCalendar/VCalendarDaily.js +21 -33
- package/lib/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/lib/components/VCalendar/VCalendarMonthly.js +2 -2
- package/lib/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/lib/components/VCalendar/VCalendarWeekly.js +17 -30
- package/lib/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-base.js +7 -11
- package/lib/components/VCalendar/mixins/calendar-base.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-events.js +16 -39
- package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js +2 -2
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/lib/components/VCalendar/mixins/times.js.map +1 -1
- package/lib/components/VCarousel/VCarousel.js +12 -11
- package/lib/components/VCarousel/VCarousel.js.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.js +14 -1
- package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
- package/lib/components/VCheckbox/VSimpleCheckbox.js +0 -3
- package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/lib/components/VChip/VChip.js +14 -6
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VData/VData.js +1 -0
- package/lib/components/VData/VData.js.map +1 -1
- package/lib/components/VDataIterator/VDataFooter.js +1 -0
- package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
- package/lib/components/VDataIterator/VDataIterator.js +1 -0
- package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.js +2 -7
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js +1 -0
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderMobile.js +1 -0
- package/lib/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/lib/components/VDataTable/VEditDialog.js +15 -14
- package/lib/components/VDataTable/VEditDialog.js.map +1 -1
- package/lib/components/VDataTable/mixins/header.js +0 -5
- package/lib/components/VDataTable/mixins/header.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +11 -16
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js +33 -20
- package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonthTable.js +3 -1
- package/lib/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerTitle.js +4 -3
- package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.js +8 -9
- package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.js +17 -13
- package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js +4 -0
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +1 -0
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.js +1 -0
- package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +1 -4
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.js +1 -0
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VForm/VForm.js +1 -0
- package/lib/components/VForm/VForm.js.map +1 -1
- package/lib/components/VHover/VHover.js +1 -0
- package/lib/components/VHover/VHover.js.map +1 -1
- package/lib/components/VImg/VImg.js +2 -6
- package/lib/components/VImg/VImg.js.map +1 -1
- package/lib/components/VInput/VInput.js +1 -0
- package/lib/components/VInput/VInput.js.map +1 -1
- package/lib/components/VItemGroup/VItem.js +2 -1
- package/lib/components/VItemGroup/VItem.js.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.js +6 -1
- package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
- package/lib/components/VLazy/VLazy.js +8 -15
- package/lib/components/VLazy/VLazy.js.map +1 -1
- package/lib/components/VList/VListGroup.js +3 -5
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.js +25 -14
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/VListItemAction.js +15 -9
- package/lib/components/VList/VListItemAction.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +1 -0
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js +1 -6
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +2 -6
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.js +1 -0
- package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.js +1 -0
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VPagination/VPagination.js +1 -3
- package/lib/components/VPagination/VPagination.js.map +1 -1
- package/lib/components/VPicker/VPicker.js +3 -3
- package/lib/components/VPicker/VPicker.js.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.js +1 -4
- package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.js +4 -6
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VRadioGroup/VRadio.js +1 -0
- package/lib/components/VRadioGroup/VRadio.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +64 -19
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelect/VSelectList.js +13 -15
- package/lib/components/VSelect/VSelectList.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +1 -4
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideItem.js +2 -1
- package/lib/components/VSlideGroup/VSlideItem.js.map +1 -1
- package/lib/components/VSlider/VSlider.js +0 -3
- package/lib/components/VSlider/VSlider.js.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.js +1 -0
- package/lib/components/VSnackbar/VSnackbar.js.map +1 -1
- package/lib/components/VSparkline/VSparkline.js +48 -67
- package/lib/components/VSparkline/VSparkline.js.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.js +3 -9
- package/lib/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/lib/components/VStepper/VStepper.js +1 -0
- package/lib/components/VStepper/VStepper.js.map +1 -1
- package/lib/components/VStepper/VStepperStep.js +7 -18
- package/lib/components/VStepper/VStepperStep.js.map +1 -1
- package/lib/components/VSwitch/VSwitch.js +1 -3
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VTabs/VTab.js +1 -0
- package/lib/components/VTabs/VTab.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +14 -4
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTabs/VTabsItems.js +1 -0
- package/lib/components/VTabs/VTabsItems.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +6 -15
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTimePicker/VTimePicker.js +65 -31
- package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerClock.js +24 -39
- package/lib/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerTitle.js +3 -2
- package/lib/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/lib/components/VToolbar/VToolbar.js +1 -3
- package/lib/components/VToolbar/VToolbar.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.js +1 -2
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.js +0 -3
- package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/lib/components/VWindow/VWindow.js +0 -3
- package/lib/components/VWindow/VWindow.js.map +1 -1
- package/lib/components/VWindow/VWindowItem.js +2 -6
- package/lib/components/VWindow/VWindowItem.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/mixins/detachable/index.js +9 -5
- package/lib/mixins/detachable/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VAlert/VAlert.ts +2 -0
- package/src/components/VAppBar/VAppBar.ts +12 -3
- package/src/components/VBadge/VBadge.ts +1 -1
- package/src/components/VBanner/VBanner.ts +14 -14
- package/src/components/VBottomNavigation/VBottomNavigation.ts +10 -8
- package/src/components/VBtn/VBtn.ts +2 -2
- package/src/components/VCalendar/VCalendar.ts +29 -27
- package/src/components/VCalendar/VCalendarCategory.ts +9 -8
- package/src/components/VCalendar/VCalendarDaily.ts +18 -28
- package/src/components/VCalendar/VCalendarMonthly.ts +2 -1
- package/src/components/VCalendar/VCalendarWeekly.ts +18 -30
- package/src/components/VCalendar/__tests__/VCalendar.spec.ts +18 -34
- package/src/components/VCalendar/__tests__/VCalendarCategory.spec.ts +16 -14
- package/src/components/VCalendar/__tests__/VCalendarDaily.spec.ts +30 -28
- package/src/components/VCalendar/__tests__/__snapshots__/VCalendar.spec.ts.snap +206 -205
- package/src/components/VCalendar/__tests__/__snapshots__/VCalendarDaily.spec.ts.snap +122 -122
- package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-with-events.spec.ts.snap +1 -56
- package/src/components/VCalendar/mixins/__tests__/calendar-base.spec.ts +24 -21
- package/src/components/VCalendar/mixins/__tests__/calendar-with-events.spec.ts +27 -34
- package/src/components/VCalendar/mixins/__tests__/calendar-with-intervals.spec.ts +31 -28
- package/src/components/VCalendar/mixins/__tests__/times.spec.ts +10 -9
- package/src/components/VCalendar/mixins/calendar-base.ts +8 -12
- package/src/components/VCalendar/mixins/calendar-with-events.ts +19 -38
- package/src/components/VCalendar/mixins/calendar-with-intervals.ts +1 -1
- package/src/components/VCalendar/mixins/times.ts +1 -1
- package/src/components/VCarousel/VCarousel.ts +13 -9
- package/src/components/VCheckbox/VCheckbox.ts +19 -1
- package/src/components/VCheckbox/VSimpleCheckbox.ts +0 -3
- package/src/components/VChip/VChip.ts +16 -13
- package/src/components/VData/VData.ts +2 -0
- package/src/components/VDataIterator/VDataFooter.ts +2 -0
- package/src/components/VDataIterator/VDataIterator.ts +2 -0
- package/src/components/VDataTable/VDataTable.ts +2 -4
- package/src/components/VDataTable/VDataTableHeaderDesktop.ts +5 -0
- package/src/components/VDataTable/VDataTableHeaderMobile.ts +2 -0
- package/src/components/VDataTable/VEditDialog.ts +19 -17
- package/src/components/VDataTable/mixins/header.ts +0 -4
- package/src/components/VDatePicker/VDatePicker.ts +13 -18
- package/src/components/VDatePicker/VDatePickerHeader.ts +44 -32
- package/src/components/VDatePicker/VDatePickerMonthTable.ts +1 -1
- package/src/components/VDatePicker/VDatePickerTitle.ts +7 -5
- package/src/components/VDatePicker/VDatePickerYears.ts +6 -10
- package/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +302 -246
- package/src/components/VDatePicker/__tests__/VDatePicker.month.spec.ts +90 -86
- package/src/components/VDatePicker/__tests__/VDatePickerDateTable.spec.ts +76 -90
- package/src/components/VDatePicker/__tests__/VDatePickerHeader.spec.ts +96 -71
- package/src/components/VDatePicker/__tests__/VDatePickerMonthTable.spec.ts +63 -77
- package/src/components/VDatePicker/__tests__/VDatePickerTitle.spec.ts +48 -28
- package/src/components/VDatePicker/__tests__/VDatePickerYears.spec.ts +25 -22
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.date.spec.ts.snap +601 -586
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.month.spec.ts.snap +203 -193
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerDateTable.spec.ts.snap +615 -615
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerHeader.spec.ts.snap +52 -52
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerMonthTable.spec.ts.snap +144 -144
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerTitle.spec.ts.snap +3 -4
- package/src/components/VDatePicker/mixins/date-picker-table.ts +18 -13
- package/src/components/VDatePicker/util/__tests__/createNativeLocaleFormatter.spec.ts +7 -0
- package/src/components/VDatePicker/util/createNativeLocaleFormatter.ts +3 -0
- package/src/components/VDialog/VDialog.ts +7 -5
- package/src/components/VExpansionPanel/VExpansionPanel.ts +5 -0
- package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +0 -1
- package/src/components/VFileInput/VFileInput.ts +2 -0
- package/src/components/VForm/VForm.ts +2 -0
- package/src/components/VHover/VHover.ts +2 -0
- package/src/components/VImg/VImg.ts +2 -1
- package/src/components/VInput/VInput.ts +2 -0
- package/src/components/VItemGroup/VItem.ts +4 -0
- package/src/components/VItemGroup/VItemGroup.ts +7 -1
- package/src/components/VLazy/VLazy.ts +11 -13
- package/src/components/VList/VListGroup.ts +7 -8
- package/src/components/VList/VListItem.ts +29 -15
- package/src/components/VList/VListItemAction.ts +11 -10
- package/src/components/VMenu/VMenu.ts +3 -1
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +2 -5
- package/src/components/VOtpInput/VOtpInput.ts +2 -3
- package/src/components/VOverflowBtn/VOverflowBtn.ts +2 -0
- package/src/components/VOverlay/VOverlay.ts +2 -0
- package/src/components/VPagination/VPagination.ts +2 -1
- package/src/components/VPicker/VPicker.ts +8 -10
- package/src/components/VPicker/__tests__/VPicker.spec.ts +14 -15
- package/src/components/VProgressCircular/VProgressCircular.ts +0 -1
- package/src/components/VProgressLinear/VProgressLinear.ts +14 -13
- package/src/components/VRadioGroup/VRadio.ts +2 -0
- package/src/components/VSelect/VSelect.ts +59 -19
- package/src/components/VSelect/VSelectList.ts +13 -9
- package/src/components/VSlideGroup/VSlideGroup.ts +2 -4
- package/src/components/VSlideGroup/VSlideItem.ts +2 -0
- package/src/components/VSlider/VSlider.ts +0 -3
- package/src/components/VSnackbar/VSnackbar.ts +1 -1
- package/src/components/VSparkline/VSparkline.ts +54 -92
- package/src/components/VSpeedDial/VSpeedDial.ts +6 -8
- package/src/components/VStepper/VStepper.ts +3 -1
- package/src/components/VStepper/VStepperStep.ts +8 -15
- package/src/components/VSwitch/VSwitch.ts +4 -5
- package/src/components/VTabs/VTab.ts +2 -0
- package/src/components/VTabs/VTabs.ts +16 -10
- package/src/components/VTabs/VTabsItems.ts +2 -0
- package/src/components/VTextField/VTextField.ts +9 -12
- package/src/components/VTimePicker/VTimePicker.ts +199 -89
- package/src/components/VTimePicker/VTimePickerClock.ts +40 -45
- package/src/components/VTimePicker/VTimePickerTitle.ts +5 -4
- package/src/components/VTimePicker/__tests__/VTimePicker.spec.ts +153 -140
- package/src/components/VTimePicker/__tests__/VTimePickerClock.spec.ts +78 -81
- package/src/components/VTimePicker/__tests__/VTimePickerTitle.spec.ts +47 -41
- package/src/components/VTimePicker/__tests__/__snapshots__/VTimePicker.spec.ts.snap +160 -40
- package/src/components/VToolbar/VToolbar.ts +1 -1
- package/src/components/VTooltip/VTooltip.ts +1 -1
- package/src/components/VVirtualScroll/VVirtualScroll.ts +0 -1
- package/src/components/VWindow/VWindow.ts +0 -1
- package/src/components/VWindow/VWindowItem.ts +2 -3
- package/src/mixins/detachable/index.ts +11 -5
|
@@ -45,6 +45,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
45
45
|
|
|
46
46
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
47
47
|
|
|
48
|
+
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); }
|
|
49
|
+
|
|
48
50
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
49
51
|
|
|
50
52
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -65,9 +67,6 @@ var baseMixins = (0, _mixins.default)(_VTextField2.default, _comparable.default,
|
|
|
65
67
|
|
|
66
68
|
var _default2 = baseMixins.extend({
|
|
67
69
|
name: 'v-select',
|
|
68
|
-
directives: {
|
|
69
|
-
ClickOutside: _clickOutside.default
|
|
70
|
-
},
|
|
71
70
|
props: {
|
|
72
71
|
appendIcon: {
|
|
73
72
|
type: String,
|
|
@@ -117,6 +116,7 @@ var _default2 = baseMixins.extend({
|
|
|
117
116
|
returnObject: Boolean,
|
|
118
117
|
smallChips: Boolean
|
|
119
118
|
},
|
|
119
|
+
emits: ['update:modelValue', 'change', 'focus', 'blur', 'keydown', 'click', 'update:list-index'],
|
|
120
120
|
data: function data() {
|
|
121
121
|
return {
|
|
122
122
|
cachedItems: this.cacheItems ? this.items : [],
|
|
@@ -130,7 +130,8 @@ var _default2 = baseMixins.extend({
|
|
|
130
130
|
selectedIndex: -1,
|
|
131
131
|
selectedItems: [],
|
|
132
132
|
keyboardLookupPrefix: '',
|
|
133
|
-
keyboardLookupLastTime: 0
|
|
133
|
+
keyboardLookupLastTime: 0,
|
|
134
|
+
detectedScopeId: null
|
|
134
135
|
};
|
|
135
136
|
},
|
|
136
137
|
computed: {
|
|
@@ -153,7 +154,9 @@ var _default2 = baseMixins.extend({
|
|
|
153
154
|
return this.allItems;
|
|
154
155
|
},
|
|
155
156
|
computedOwns: function computedOwns() {
|
|
156
|
-
|
|
157
|
+
var _a;
|
|
158
|
+
|
|
159
|
+
return "list-".concat((_a = this.$) === null || _a === void 0 ? void 0 : _a.uid);
|
|
157
160
|
},
|
|
158
161
|
computedCounterValue: function computedCounterValue() {
|
|
159
162
|
var _a;
|
|
@@ -192,9 +195,7 @@ var _default2 = baseMixins.extend({
|
|
|
192
195
|
return this.selectedItems.length > 0;
|
|
193
196
|
},
|
|
194
197
|
listData: function listData() {
|
|
195
|
-
|
|
196
|
-
var attrs = scopeId ? _defineProperty({}, scopeId, true) : {};
|
|
197
|
-
return _objectSpread(_objectSpread({}, attrs), {}, {
|
|
198
|
+
return {
|
|
198
199
|
id: this.computedOwns,
|
|
199
200
|
action: this.multiple,
|
|
200
201
|
color: this.itemColor,
|
|
@@ -207,14 +208,24 @@ var _default2 = baseMixins.extend({
|
|
|
207
208
|
noDataText: this.$vuetify.lang.t(this.noDataText),
|
|
208
209
|
selectedItems: this.selectedItems,
|
|
209
210
|
onSelect: this.selectItem
|
|
210
|
-
}
|
|
211
|
+
};
|
|
212
|
+
},
|
|
213
|
+
listAttrs: function listAttrs() {
|
|
214
|
+
var scopeIdAttrs = {}; // Используем detectedScopeId из mounted hook
|
|
215
|
+
|
|
216
|
+
if (this.detectedScopeId) {
|
|
217
|
+
scopeIdAttrs[this.detectedScopeId] = '';
|
|
218
|
+
} // scopeId успешно передается в VSelectList
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
return scopeIdAttrs;
|
|
211
222
|
},
|
|
212
223
|
staticList: function staticList() {
|
|
213
224
|
if (this.$slots['no-data'] || this.$slots['prepend-item'] || this.$slots['append-item']) {
|
|
214
225
|
(0, _console.consoleError)('assert: staticList should not be called if slots are used');
|
|
215
226
|
}
|
|
216
227
|
|
|
217
|
-
return (0, _vue.h)(_VSelectList.default, this.listData, {
|
|
228
|
+
return (0, _vue.h)(_VSelectList.default, _objectSpread(_objectSpread({}, this.listData), this.listAttrs), {
|
|
218
229
|
item: this.$slots.item
|
|
219
230
|
});
|
|
220
231
|
},
|
|
@@ -241,9 +252,28 @@ var _default2 = baseMixins.extend({
|
|
|
241
252
|
}, normalisedProps);
|
|
242
253
|
}
|
|
243
254
|
},
|
|
255
|
+
mounted: function mounted() {
|
|
256
|
+
var _this2 = this;
|
|
257
|
+
|
|
258
|
+
this.$nextTick(function () {
|
|
259
|
+
if (_this2.$el && _this2.$el.attributes) {
|
|
260
|
+
var attrs = _this2.$el.attributes;
|
|
261
|
+
|
|
262
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
263
|
+
var attr = attrs[i];
|
|
264
|
+
|
|
265
|
+
if (attr.name.startsWith('data-v-')) {
|
|
266
|
+
_this2.detectedScopeId = attr.name; // scopeId найден и сохранен для использования в dropdown
|
|
267
|
+
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
},
|
|
244
274
|
watch: {
|
|
245
275
|
internalValue: function internalValue(val) {
|
|
246
|
-
var
|
|
276
|
+
var _this3 = this;
|
|
247
277
|
|
|
248
278
|
this.initialValue = val;
|
|
249
279
|
this.setSelectedItems();
|
|
@@ -252,34 +282,34 @@ var _default2 = baseMixins.extend({
|
|
|
252
282
|
this.$nextTick(function () {
|
|
253
283
|
var _a;
|
|
254
284
|
|
|
255
|
-
(_a =
|
|
285
|
+
(_a = _this3.$refs.menu) === null || _a === void 0 ? void 0 : _a.updateDimensions();
|
|
256
286
|
});
|
|
257
287
|
}
|
|
258
288
|
|
|
259
289
|
if (this.hideSelected) {
|
|
260
290
|
this.$nextTick(function () {
|
|
261
|
-
|
|
291
|
+
_this3.onScroll();
|
|
262
292
|
});
|
|
263
293
|
}
|
|
264
294
|
},
|
|
265
295
|
isMenuActive: function isMenuActive(val) {
|
|
266
|
-
var
|
|
296
|
+
var _this4 = this;
|
|
267
297
|
|
|
268
298
|
window.setTimeout(function () {
|
|
269
|
-
return
|
|
299
|
+
return _this4.onMenuActiveChange(val);
|
|
270
300
|
});
|
|
271
301
|
},
|
|
272
302
|
items: {
|
|
273
303
|
immediate: true,
|
|
274
304
|
handler: function handler(val) {
|
|
275
|
-
var
|
|
305
|
+
var _this5 = this;
|
|
276
306
|
|
|
277
307
|
if (this.cacheItems) {
|
|
278
308
|
// Breaks vue-test-utils if
|
|
279
309
|
// this isn't calculated
|
|
280
310
|
// on the next tick
|
|
281
311
|
this.$nextTick(function () {
|
|
282
|
-
|
|
312
|
+
_this5.cachedItems = _this5.filterDuplicates(_this5.cachedItems.concat(val));
|
|
283
313
|
});
|
|
284
314
|
}
|
|
285
315
|
|
|
@@ -304,12 +334,12 @@ var _default2 = baseMixins.extend({
|
|
|
304
334
|
this.isMenuActive = true;
|
|
305
335
|
},
|
|
306
336
|
clearableCallback: function clearableCallback() {
|
|
307
|
-
var
|
|
337
|
+
var _this6 = this;
|
|
308
338
|
|
|
309
339
|
this.setValue(this.multiple ? [] : null);
|
|
310
340
|
this.setMenuIndex(-1);
|
|
311
341
|
this.$nextTick(function () {
|
|
312
|
-
return
|
|
342
|
+
return _this6.$refs.input && _this6.$refs.input.focus();
|
|
313
343
|
});
|
|
314
344
|
if (this.openOnClear) this.isMenuActive = true;
|
|
315
345
|
},
|
|
@@ -344,18 +374,18 @@ var _default2 = baseMixins.extend({
|
|
|
344
374
|
return Array.from(uniqueValues.values());
|
|
345
375
|
},
|
|
346
376
|
findExistingIndex: function findExistingIndex(item) {
|
|
347
|
-
var
|
|
377
|
+
var _this7 = this;
|
|
348
378
|
|
|
349
379
|
var itemValue = this.getValue(item);
|
|
350
380
|
return (this.internalValue || []).findIndex(function (i) {
|
|
351
|
-
return
|
|
381
|
+
return _this7.valueComparator(_this7.getValue(i), itemValue);
|
|
352
382
|
});
|
|
353
383
|
},
|
|
354
384
|
getContent: function getContent() {
|
|
355
385
|
return this.$refs.menu && this.$refs.menu.$refs.content;
|
|
356
386
|
},
|
|
357
387
|
genChipSelection: function genChipSelection(item, index) {
|
|
358
|
-
var
|
|
388
|
+
var _this8 = this;
|
|
359
389
|
|
|
360
390
|
var isDisabled = this.isDisabled || this.getDisabled(item);
|
|
361
391
|
var isInteractive = !isDisabled && this.isInteractive;
|
|
@@ -364,19 +394,19 @@ var _default2 = baseMixins.extend({
|
|
|
364
394
|
tabindex: -1,
|
|
365
395
|
close: this.deletableChips && isInteractive,
|
|
366
396
|
disabled: isDisabled,
|
|
367
|
-
|
|
397
|
+
modelValue: index === this.selectedIndex,
|
|
368
398
|
small: this.smallChips,
|
|
369
399
|
onClick: function onClick(e) {
|
|
370
400
|
if (!isInteractive) return;
|
|
371
401
|
e.stopPropagation();
|
|
372
|
-
|
|
402
|
+
_this8.selectedIndex = index;
|
|
373
403
|
},
|
|
374
404
|
'onClick:close': function onClickClose() {
|
|
375
|
-
return
|
|
405
|
+
return _this8.onChipInput(item);
|
|
376
406
|
},
|
|
377
407
|
key: JSON.stringify(this.getValue(item))
|
|
378
408
|
}, function () {
|
|
379
|
-
return
|
|
409
|
+
return _this8.getText(item);
|
|
380
410
|
});
|
|
381
411
|
},
|
|
382
412
|
genCommaSelection: function genCommaSelection(item, index, last) {
|
|
@@ -410,11 +440,12 @@ var _default2 = baseMixins.extend({
|
|
|
410
440
|
|
|
411
441
|
if (type === 'append') {
|
|
412
442
|
// Don't allow the dropdown icon to be focused
|
|
413
|
-
var
|
|
443
|
+
var iconChild = icon.children[0];
|
|
444
|
+
var hasListeners = Object.keys(iconChild.props || {}).some(function (key) {
|
|
414
445
|
return key.startsWith('on');
|
|
415
446
|
});
|
|
416
|
-
|
|
417
|
-
tabindex: hasListeners
|
|
447
|
+
iconChild.props = (0, _mergeData.default)(iconChild.props || {}, {
|
|
448
|
+
tabindex: hasListeners ? '-1' : undefined,
|
|
418
449
|
'aria-hidden': 'true',
|
|
419
450
|
'aria-label': undefined
|
|
420
451
|
});
|
|
@@ -442,10 +473,26 @@ var _default2 = baseMixins.extend({
|
|
|
442
473
|
return input;
|
|
443
474
|
},
|
|
444
475
|
genHiddenInput: function genHiddenInput() {
|
|
476
|
+
var _this9 = this;
|
|
477
|
+
|
|
478
|
+
var value = this.lazyValue;
|
|
479
|
+
|
|
480
|
+
if (this.multiple && Array.isArray(value)) {
|
|
481
|
+
value = value.map(function (item) {
|
|
482
|
+
if (_typeof(item) === 'object' && item !== null) {
|
|
483
|
+
return _this9.getValue(item);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
return item;
|
|
487
|
+
}).join(',');
|
|
488
|
+
} else if (_typeof(value) === 'object' && value !== null) {
|
|
489
|
+
value = this.getValue(value);
|
|
490
|
+
}
|
|
491
|
+
|
|
445
492
|
return (0, _vue.h)('input', {
|
|
446
|
-
value:
|
|
493
|
+
value: value,
|
|
447
494
|
type: 'hidden',
|
|
448
|
-
name: this.
|
|
495
|
+
name: this.$attrs.name
|
|
449
496
|
});
|
|
450
497
|
},
|
|
451
498
|
genInputSlot: function genInputSlot() {
|
|
@@ -468,22 +515,22 @@ var _default2 = baseMixins.extend({
|
|
|
468
515
|
}
|
|
469
516
|
},
|
|
470
517
|
genListWithSlot: function genListWithSlot() {
|
|
471
|
-
var
|
|
518
|
+
var _this10 = this;
|
|
472
519
|
|
|
473
520
|
var slots = Object.fromEntries(['prepend-item', 'no-data', 'append-item'].filter(function (slotName) {
|
|
474
|
-
return
|
|
521
|
+
return _this10.$slots[slotName];
|
|
475
522
|
}).map(function (slotName) {
|
|
476
|
-
return [slotName,
|
|
523
|
+
return [slotName, _this10.$slots[slotName]];
|
|
477
524
|
})); // Requires destructuring due to Vue
|
|
478
525
|
// modifying the `on` property when passed
|
|
479
526
|
// as a referenced object
|
|
480
527
|
|
|
481
|
-
return (0, _vue.h)(_VSelectList.default, _objectSpread({}, this.listData), _objectSpread(_objectSpread({}, slots), {}, {
|
|
528
|
+
return (0, _vue.h)(_VSelectList.default, _objectSpread(_objectSpread({}, this.listData), this.listAttrs), _objectSpread(_objectSpread({}, slots), {}, {
|
|
482
529
|
item: this.$slots.item
|
|
483
530
|
}));
|
|
484
531
|
},
|
|
485
532
|
genMenu: function genMenu() {
|
|
486
|
-
var
|
|
533
|
+
var _this11 = this;
|
|
487
534
|
|
|
488
535
|
var props = this.$_menuProps;
|
|
489
536
|
props.activator = this.$refs['input-slot'];
|
|
@@ -502,13 +549,13 @@ var _default2 = baseMixins.extend({
|
|
|
502
549
|
role: undefined
|
|
503
550
|
}, props), {}, {
|
|
504
551
|
onInput: function onInput(val) {
|
|
505
|
-
|
|
506
|
-
|
|
552
|
+
_this11.isMenuActive = val;
|
|
553
|
+
_this11.isFocused = val;
|
|
507
554
|
},
|
|
508
555
|
onScroll: this.onScroll,
|
|
509
556
|
ref: 'menu'
|
|
510
557
|
}), function () {
|
|
511
|
-
return [
|
|
558
|
+
return [_this11.genList()];
|
|
512
559
|
});
|
|
513
560
|
},
|
|
514
561
|
genSelections: function genSelections() {
|
|
@@ -533,7 +580,7 @@ var _default2 = baseMixins.extend({
|
|
|
533
580
|
}, children);
|
|
534
581
|
},
|
|
535
582
|
genSlotSelection: function genSlotSelection(item, index) {
|
|
536
|
-
var
|
|
583
|
+
var _this12 = this;
|
|
537
584
|
|
|
538
585
|
return this.$slots.selection({
|
|
539
586
|
class: 'v-chip--select',
|
|
@@ -542,7 +589,7 @@ var _default2 = baseMixins.extend({
|
|
|
542
589
|
index: index,
|
|
543
590
|
select: function select(e) {
|
|
544
591
|
e.stopPropagation();
|
|
545
|
-
|
|
592
|
+
_this12.selectedIndex = index;
|
|
546
593
|
},
|
|
547
594
|
selected: index === this.selectedIndex,
|
|
548
595
|
disabled: !this.isInteractive
|
|
@@ -598,7 +645,7 @@ var _default2 = baseMixins.extend({
|
|
|
598
645
|
}
|
|
599
646
|
},
|
|
600
647
|
onKeyPress: function onKeyPress(e) {
|
|
601
|
-
var
|
|
648
|
+
var _this13 = this;
|
|
602
649
|
|
|
603
650
|
if (this.multiple || !this.isInteractive || this.disableLookup || e.key.length > 1 || e.ctrlKey || e.metaKey || e.altKey) return;
|
|
604
651
|
var KEYBOARD_LOOKUP_THRESHOLD = 1000; // milliseconds
|
|
@@ -614,8 +661,8 @@ var _default2 = baseMixins.extend({
|
|
|
614
661
|
var index = this.allItems.findIndex(function (item) {
|
|
615
662
|
var _a;
|
|
616
663
|
|
|
617
|
-
var text = ((_a =
|
|
618
|
-
return text.toLowerCase().startsWith(
|
|
664
|
+
var text = ((_a = _this13.getText(item)) !== null && _a !== void 0 ? _a : '').toString();
|
|
665
|
+
return text.toLowerCase().startsWith(_this13.keyboardLookupPrefix);
|
|
619
666
|
});
|
|
620
667
|
var item = this.allItems[index];
|
|
621
668
|
|
|
@@ -623,15 +670,15 @@ var _default2 = baseMixins.extend({
|
|
|
623
670
|
this.lastItem = Math.max(this.lastItem, index + 5);
|
|
624
671
|
this.setValue(this.returnObject ? item : this.getValue(item));
|
|
625
672
|
this.$nextTick(function () {
|
|
626
|
-
return
|
|
673
|
+
return _this13.$refs.menu.getTiles();
|
|
627
674
|
});
|
|
628
675
|
setTimeout(function () {
|
|
629
|
-
return
|
|
676
|
+
return _this13.setMenuIndex(index);
|
|
630
677
|
});
|
|
631
678
|
}
|
|
632
679
|
},
|
|
633
680
|
onKeyDown: function onKeyDown(e) {
|
|
634
|
-
var
|
|
681
|
+
var _this14 = this;
|
|
635
682
|
|
|
636
683
|
if (this.isReadonly && e.keyCode !== _helpers.keyCodes.tab) return;
|
|
637
684
|
var keyCode = e.keyCode;
|
|
@@ -644,7 +691,7 @@ var _default2 = baseMixins.extend({
|
|
|
644
691
|
this.$nextTick(function () {
|
|
645
692
|
menu.changeListIndex(e);
|
|
646
693
|
|
|
647
|
-
|
|
694
|
+
_this14.$emit('update:list-index', menu.listIndex);
|
|
648
695
|
});
|
|
649
696
|
} // If enter, space, open menu
|
|
650
697
|
|
|
@@ -680,7 +727,7 @@ var _default2 = baseMixins.extend({
|
|
|
680
727
|
}
|
|
681
728
|
},
|
|
682
729
|
onMouseUp: function onMouseUp(e) {
|
|
683
|
-
var
|
|
730
|
+
var _this15 = this;
|
|
684
731
|
|
|
685
732
|
// eslint-disable-next-line sonarjs/no-collapsible-if
|
|
686
733
|
if (this.hasMouseDown && e.which !== 3 && this.isInteractive) {
|
|
@@ -689,7 +736,7 @@ var _default2 = baseMixins.extend({
|
|
|
689
736
|
// or inside, toggle menu
|
|
690
737
|
if (this.isAppendInner(e.target)) {
|
|
691
738
|
this.$nextTick(function () {
|
|
692
|
-
return
|
|
739
|
+
return _this15.isMenuActive = !_this15.isMenuActive;
|
|
693
740
|
});
|
|
694
741
|
}
|
|
695
742
|
}
|
|
@@ -697,11 +744,11 @@ var _default2 = baseMixins.extend({
|
|
|
697
744
|
_VTextField2.default.methods.onMouseUp.call(this, e);
|
|
698
745
|
},
|
|
699
746
|
onScroll: function onScroll() {
|
|
700
|
-
var
|
|
747
|
+
var _this16 = this;
|
|
701
748
|
|
|
702
749
|
if (!this.isMenuActive) {
|
|
703
750
|
requestAnimationFrame(function () {
|
|
704
|
-
var content =
|
|
751
|
+
var content = _this16.getContent();
|
|
705
752
|
|
|
706
753
|
if (content) content.scrollTop = 0;
|
|
707
754
|
});
|
|
@@ -735,7 +782,7 @@ var _default2 = baseMixins.extend({
|
|
|
735
782
|
}
|
|
736
783
|
},
|
|
737
784
|
onUpDown: function onUpDown(e) {
|
|
738
|
-
var
|
|
785
|
+
var _this17 = this;
|
|
739
786
|
|
|
740
787
|
var menu = this.$refs.menu;
|
|
741
788
|
if (!menu) return;
|
|
@@ -750,7 +797,7 @@ var _default2 = baseMixins.extend({
|
|
|
750
797
|
menu.isBooted = true;
|
|
751
798
|
window.requestAnimationFrame(function () {
|
|
752
799
|
menu.getTiles();
|
|
753
|
-
if (!menu.hasClickableTiles) return
|
|
800
|
+
if (!menu.hasClickableTiles) return _this17.activateMenu();
|
|
754
801
|
|
|
755
802
|
switch (keyCode) {
|
|
756
803
|
case _helpers.keyCodes.up:
|
|
@@ -770,11 +817,11 @@ var _default2 = baseMixins.extend({
|
|
|
770
817
|
break;
|
|
771
818
|
}
|
|
772
819
|
|
|
773
|
-
|
|
820
|
+
_this17.selectItem(_this17.allItems[_this17.getMenuIndex()]);
|
|
774
821
|
});
|
|
775
822
|
},
|
|
776
823
|
selectItem: function selectItem(item) {
|
|
777
|
-
var
|
|
824
|
+
var _this18 = this;
|
|
778
825
|
|
|
779
826
|
if (!this.multiple) {
|
|
780
827
|
this.setValue(this.returnObject ? item : this.getValue(item));
|
|
@@ -784,7 +831,7 @@ var _default2 = baseMixins.extend({
|
|
|
784
831
|
var i = this.findExistingIndex(item);
|
|
785
832
|
i !== -1 ? internalValue.splice(i, 1) : internalValue.push(item);
|
|
786
833
|
this.setValue(internalValue.map(function (i) {
|
|
787
|
-
return
|
|
834
|
+
return _this18.returnObject ? i : _this18.getValue(i);
|
|
788
835
|
})); // There is no item to re-highlight
|
|
789
836
|
// when selections are hidden
|
|
790
837
|
|
|
@@ -795,10 +842,10 @@ var _default2 = baseMixins.extend({
|
|
|
795
842
|
|
|
796
843
|
if (~index) {
|
|
797
844
|
this.$nextTick(function () {
|
|
798
|
-
return
|
|
845
|
+
return _this18.$refs.menu.getTiles();
|
|
799
846
|
});
|
|
800
847
|
setTimeout(function () {
|
|
801
|
-
return
|
|
848
|
+
return _this18.setMenuIndex(index);
|
|
802
849
|
});
|
|
803
850
|
}
|
|
804
851
|
}
|
|
@@ -808,7 +855,7 @@ var _default2 = baseMixins.extend({
|
|
|
808
855
|
this.$refs.menu && (this.$refs.menu.listIndex = index);
|
|
809
856
|
},
|
|
810
857
|
setSelectedItems: function setSelectedItems() {
|
|
811
|
-
var
|
|
858
|
+
var _this19 = this;
|
|
812
859
|
|
|
813
860
|
var selectedItems = [];
|
|
814
861
|
var values = !this.multiple || !Array.isArray(this.internalValue) ? [this.internalValue] : this.internalValue;
|
|
@@ -820,12 +867,12 @@ var _default2 = baseMixins.extend({
|
|
|
820
867
|
var _loop = function _loop() {
|
|
821
868
|
var value = _step.value;
|
|
822
869
|
|
|
823
|
-
var index =
|
|
824
|
-
return
|
|
870
|
+
var index = _this19.allItems.findIndex(function (v) {
|
|
871
|
+
return _this19.valueComparator(_this19.getValue(v), _this19.getValue(value));
|
|
825
872
|
});
|
|
826
873
|
|
|
827
874
|
if (index > -1) {
|
|
828
|
-
selectedItems.push(
|
|
875
|
+
selectedItems.push(_this19.allItems[index]);
|
|
829
876
|
}
|
|
830
877
|
};
|
|
831
878
|
|
|
@@ -843,7 +890,7 @@ var _default2 = baseMixins.extend({
|
|
|
843
890
|
setValue: function setValue(value) {
|
|
844
891
|
if (!this.valueComparator(value, this.internalValue)) {
|
|
845
892
|
this.internalValue = value;
|
|
846
|
-
this.$emit('update:modelValue', value);
|
|
893
|
+
this.$emit('update:modelValue', value); // Note: change event is already emitted by VInput's internalValue setter
|
|
847
894
|
}
|
|
848
895
|
},
|
|
849
896
|
isAppendInner: function isAppendInner(target) {
|