@dimailn/vuetify 2.7.2-alpha25 → 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 +1436 -1164
- 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/VAppBar/VAppBarNavIcon.js +5 -1
- package/es5/components/VAppBar/VAppBarNavIcon.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 +23 -15
- 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/VBreadcrumbs/VBreadcrumbs.js +18 -6
- package/es5/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/es5/components/VBtn/VBtn.js +6 -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 +20 -13
- package/es5/components/VCarousel/VCarousel.js.map +1 -1
- package/es5/components/VCarousel/VCarouselItem.js +7 -3
- package/es5/components/VCarousel/VCarouselItem.js.map +1 -1
- package/es5/components/VCheckbox/VCheckbox.js +34 -1
- 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 +6 -1
- 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 +22 -13
- package/es5/components/VDataTable/VDataTable.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeader.js +2 -6
- package/es5/components/VDataTable/VDataTableHeader.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 +23 -18
- package/es5/components/VDataTable/VEditDialog.js.map +1 -1
- package/es5/components/VDataTable/mixins/header.js +5 -7
- 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 +50 -22
- 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 +16 -7
- 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 +21 -16
- 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 +17 -12
- 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/VExpansionPanelContent.js +11 -9
- package/es5/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js +16 -19
- 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 +9 -7
- package/es5/components/VImg/VImg.js.map +1 -1
- package/es5/components/VInput/VInput.js +11 -4
- 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 +30 -20
- package/es5/components/VList/VListGroup.js.map +1 -1
- package/es5/components/VList/VListItem.js +31 -13
- 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/VMessages/VMessages.js +5 -1
- package/es5/components/VMessages/VMessages.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 +4 -1
- 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 +4 -4
- package/es5/components/VPagination/VPagination.js.map +1 -1
- package/es5/components/VPicker/VPicker.js +7 -4
- 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 +11 -2
- package/es5/components/VRadioGroup/VRadio.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +115 -64
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSelect/VSelectList.js +30 -26
- package/es5/components/VSelect/VSelectList.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +27 -22
- 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 +16 -15
- 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/VStepperContent.js +3 -1
- package/es5/components/VStepper/VStepperContent.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 +11 -9
- 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 +17 -6
- 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 +34 -26
- 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 +9 -4
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/components/VTreeview/VTreeviewNode.js +11 -3
- package/es5/components/VTreeview/VTreeviewNode.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/components/transitions/createTransition.js +8 -2
- package/es5/components/transitions/createTransition.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/es5/mixins/picker/index.js +13 -3
- package/es5/mixins/picker/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/VAppBar/VAppBarNavIcon.js +1 -1
- package/lib/components/VAppBar/VAppBarNavIcon.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 +9 -13
- 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/VBreadcrumbs/VBreadcrumbs.js +2 -2
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/lib/components/VBtn/VBtn.js +4 -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 +15 -14
- package/lib/components/VCarousel/VCarousel.js.map +1 -1
- package/lib/components/VCarousel/VCarouselItem.js +1 -1
- package/lib/components/VCarousel/VCarouselItem.js.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.js +15 -2
- 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 +2 -1
- 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 +7 -12
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeader.js +3 -6
- package/lib/components/VDataTable/VDataTableHeader.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 +16 -15
- package/lib/components/VDataTable/VEditDialog.js.map +1 -1
- package/lib/components/VDataTable/mixins/header.js +1 -6
- 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 +6 -5
- 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 +18 -14
- 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 +3 -2
- 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/VExpansionPanelContent.js +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +3 -6
- 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 +4 -8
- package/lib/components/VImg/VImg.js.map +1 -1
- package/lib/components/VInput/VInput.js +3 -2
- 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 +8 -10
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.js +28 -15
- 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/VMessages/VMessages.js +1 -1
- package/lib/components/VMessages/VMessages.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 +2 -1
- 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 +2 -4
- package/lib/components/VPagination/VPagination.js.map +1 -1
- package/lib/components/VPicker/VPicker.js +4 -4
- 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 +3 -2
- package/lib/components/VRadioGroup/VRadio.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +66 -21
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelect/VSelectList.js +15 -17
- package/lib/components/VSelect/VSelectList.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +4 -7
- 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 +1 -4
- 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/VStepperContent.js +1 -1
- package/lib/components/VStepper/VStepperContent.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 +2 -4
- 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 +16 -6
- 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 +7 -16
- 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 +2 -3
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewNode.js +3 -3
- package/lib/components/VTreeview/VTreeviewNode.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/components/transitions/createTransition.js +2 -2
- package/lib/components/transitions/createTransition.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/lib/mixins/picker/index.js +5 -3
- package/lib/mixins/picker/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/VAppBar/VAppBarNavIcon.ts +1 -1
- package/src/components/VBadge/VBadge.ts +1 -1
- package/src/components/VBanner/VBanner.ts +17 -17
- package/src/components/VBottomNavigation/VBottomNavigation.ts +10 -8
- package/src/components/VBreadcrumbs/VBreadcrumbs.ts +2 -2
- package/src/components/VBtn/VBtn.ts +8 -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 +16 -12
- package/src/components/VCarousel/VCarouselItem.ts +1 -1
- package/src/components/VCheckbox/VCheckbox.ts +20 -2
- 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 +3 -1
- package/src/components/VDataIterator/VDataIterator.ts +2 -0
- package/src/components/VDataTable/VDataTable.ts +7 -9
- package/src/components/VDataTable/VDataTableHeader.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 +20 -18
- package/src/components/VDataTable/mixins/header.ts +1 -5
- 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 +9 -7
- 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 +19 -14
- 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 +9 -7
- package/src/components/VExpansionPanel/VExpansionPanel.ts +5 -0
- package/src/components/VExpansionPanel/VExpansionPanelContent.ts +1 -1
- package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +2 -3
- 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 +4 -3
- package/src/components/VInput/VInput.ts +4 -2
- 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 +12 -13
- package/src/components/VList/VListItem.ts +36 -19
- package/src/components/VList/VListItemAction.ts +11 -10
- package/src/components/VMenu/VMenu.ts +3 -1
- package/src/components/VMessages/VMessages.ts +1 -1
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +2 -5
- package/src/components/VOtpInput/VOtpInput.ts +2 -3
- package/src/components/VOverflowBtn/VOverflowBtn.ts +3 -1
- package/src/components/VOverlay/VOverlay.ts +2 -0
- package/src/components/VPagination/VPagination.ts +3 -2
- package/src/components/VPicker/VPicker.ts +9 -11
- 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 +4 -2
- package/src/components/VSelect/VSelect.ts +61 -21
- package/src/components/VSelect/VSelectList.ts +16 -12
- package/src/components/VSlideGroup/VSlideGroup.ts +5 -7
- package/src/components/VSlideGroup/VSlideItem.ts +2 -0
- package/src/components/VSlider/VSlider.ts +1 -4
- 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/VStepperContent.ts +1 -1
- package/src/components/VStepper/VStepperStep.ts +8 -15
- package/src/components/VSwitch/VSwitch.ts +5 -6
- package/src/components/VTabs/VTab.ts +2 -0
- package/src/components/VTabs/VTabs.ts +18 -12
- package/src/components/VTabs/VTabsItems.ts +2 -0
- package/src/components/VTextField/VTextField.ts +10 -13
- 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 +2 -2
- package/src/components/VTreeview/VTreeviewNode.ts +3 -3
- 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/components/transitions/createTransition.ts +2 -2
- package/src/mixins/detachable/index.ts +11 -5
- package/src/mixins/picker/index.ts +4 -4
|
@@ -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,18 +394,20 @@ 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 () {
|
|
409
|
+
return _this8.getText(item);
|
|
410
|
+
});
|
|
379
411
|
},
|
|
380
412
|
genCommaSelection: function genCommaSelection(item, index, last) {
|
|
381
413
|
var color = index === this.selectedIndex && this.computedColor;
|
|
@@ -408,11 +440,12 @@ var _default2 = baseMixins.extend({
|
|
|
408
440
|
|
|
409
441
|
if (type === 'append') {
|
|
410
442
|
// Don't allow the dropdown icon to be focused
|
|
411
|
-
var
|
|
443
|
+
var iconChild = icon.children[0];
|
|
444
|
+
var hasListeners = Object.keys(iconChild.props || {}).some(function (key) {
|
|
412
445
|
return key.startsWith('on');
|
|
413
446
|
});
|
|
414
|
-
|
|
415
|
-
tabindex: hasListeners
|
|
447
|
+
iconChild.props = (0, _mergeData.default)(iconChild.props || {}, {
|
|
448
|
+
tabindex: hasListeners ? '-1' : undefined,
|
|
416
449
|
'aria-hidden': 'true',
|
|
417
450
|
'aria-label': undefined
|
|
418
451
|
});
|
|
@@ -440,10 +473,26 @@ var _default2 = baseMixins.extend({
|
|
|
440
473
|
return input;
|
|
441
474
|
},
|
|
442
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
|
+
|
|
443
492
|
return (0, _vue.h)('input', {
|
|
444
|
-
value:
|
|
493
|
+
value: value,
|
|
445
494
|
type: 'hidden',
|
|
446
|
-
name: this.
|
|
495
|
+
name: this.$attrs.name
|
|
447
496
|
});
|
|
448
497
|
},
|
|
449
498
|
genInputSlot: function genInputSlot() {
|
|
@@ -466,22 +515,22 @@ var _default2 = baseMixins.extend({
|
|
|
466
515
|
}
|
|
467
516
|
},
|
|
468
517
|
genListWithSlot: function genListWithSlot() {
|
|
469
|
-
var
|
|
518
|
+
var _this10 = this;
|
|
470
519
|
|
|
471
520
|
var slots = Object.fromEntries(['prepend-item', 'no-data', 'append-item'].filter(function (slotName) {
|
|
472
|
-
return
|
|
521
|
+
return _this10.$slots[slotName];
|
|
473
522
|
}).map(function (slotName) {
|
|
474
|
-
return [slotName,
|
|
523
|
+
return [slotName, _this10.$slots[slotName]];
|
|
475
524
|
})); // Requires destructuring due to Vue
|
|
476
525
|
// modifying the `on` property when passed
|
|
477
526
|
// as a referenced object
|
|
478
527
|
|
|
479
|
-
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), {}, {
|
|
480
529
|
item: this.$slots.item
|
|
481
530
|
}));
|
|
482
531
|
},
|
|
483
532
|
genMenu: function genMenu() {
|
|
484
|
-
var
|
|
533
|
+
var _this11 = this;
|
|
485
534
|
|
|
486
535
|
var props = this.$_menuProps;
|
|
487
536
|
props.activator = this.$refs['input-slot'];
|
|
@@ -500,12 +549,14 @@ var _default2 = baseMixins.extend({
|
|
|
500
549
|
role: undefined
|
|
501
550
|
}, props), {}, {
|
|
502
551
|
onInput: function onInput(val) {
|
|
503
|
-
|
|
504
|
-
|
|
552
|
+
_this11.isMenuActive = val;
|
|
553
|
+
_this11.isFocused = val;
|
|
505
554
|
},
|
|
506
555
|
onScroll: this.onScroll,
|
|
507
556
|
ref: 'menu'
|
|
508
|
-
}),
|
|
557
|
+
}), function () {
|
|
558
|
+
return [_this11.genList()];
|
|
559
|
+
});
|
|
509
560
|
},
|
|
510
561
|
genSelections: function genSelections() {
|
|
511
562
|
var length = this.selectedItems.length;
|
|
@@ -529,7 +580,7 @@ var _default2 = baseMixins.extend({
|
|
|
529
580
|
}, children);
|
|
530
581
|
},
|
|
531
582
|
genSlotSelection: function genSlotSelection(item, index) {
|
|
532
|
-
var
|
|
583
|
+
var _this12 = this;
|
|
533
584
|
|
|
534
585
|
return this.$slots.selection({
|
|
535
586
|
class: 'v-chip--select',
|
|
@@ -538,7 +589,7 @@ var _default2 = baseMixins.extend({
|
|
|
538
589
|
index: index,
|
|
539
590
|
select: function select(e) {
|
|
540
591
|
e.stopPropagation();
|
|
541
|
-
|
|
592
|
+
_this12.selectedIndex = index;
|
|
542
593
|
},
|
|
543
594
|
selected: index === this.selectedIndex,
|
|
544
595
|
disabled: !this.isInteractive
|
|
@@ -594,7 +645,7 @@ var _default2 = baseMixins.extend({
|
|
|
594
645
|
}
|
|
595
646
|
},
|
|
596
647
|
onKeyPress: function onKeyPress(e) {
|
|
597
|
-
var
|
|
648
|
+
var _this13 = this;
|
|
598
649
|
|
|
599
650
|
if (this.multiple || !this.isInteractive || this.disableLookup || e.key.length > 1 || e.ctrlKey || e.metaKey || e.altKey) return;
|
|
600
651
|
var KEYBOARD_LOOKUP_THRESHOLD = 1000; // milliseconds
|
|
@@ -610,8 +661,8 @@ var _default2 = baseMixins.extend({
|
|
|
610
661
|
var index = this.allItems.findIndex(function (item) {
|
|
611
662
|
var _a;
|
|
612
663
|
|
|
613
|
-
var text = ((_a =
|
|
614
|
-
return text.toLowerCase().startsWith(
|
|
664
|
+
var text = ((_a = _this13.getText(item)) !== null && _a !== void 0 ? _a : '').toString();
|
|
665
|
+
return text.toLowerCase().startsWith(_this13.keyboardLookupPrefix);
|
|
615
666
|
});
|
|
616
667
|
var item = this.allItems[index];
|
|
617
668
|
|
|
@@ -619,15 +670,15 @@ var _default2 = baseMixins.extend({
|
|
|
619
670
|
this.lastItem = Math.max(this.lastItem, index + 5);
|
|
620
671
|
this.setValue(this.returnObject ? item : this.getValue(item));
|
|
621
672
|
this.$nextTick(function () {
|
|
622
|
-
return
|
|
673
|
+
return _this13.$refs.menu.getTiles();
|
|
623
674
|
});
|
|
624
675
|
setTimeout(function () {
|
|
625
|
-
return
|
|
676
|
+
return _this13.setMenuIndex(index);
|
|
626
677
|
});
|
|
627
678
|
}
|
|
628
679
|
},
|
|
629
680
|
onKeyDown: function onKeyDown(e) {
|
|
630
|
-
var
|
|
681
|
+
var _this14 = this;
|
|
631
682
|
|
|
632
683
|
if (this.isReadonly && e.keyCode !== _helpers.keyCodes.tab) return;
|
|
633
684
|
var keyCode = e.keyCode;
|
|
@@ -640,7 +691,7 @@ var _default2 = baseMixins.extend({
|
|
|
640
691
|
this.$nextTick(function () {
|
|
641
692
|
menu.changeListIndex(e);
|
|
642
693
|
|
|
643
|
-
|
|
694
|
+
_this14.$emit('update:list-index', menu.listIndex);
|
|
644
695
|
});
|
|
645
696
|
} // If enter, space, open menu
|
|
646
697
|
|
|
@@ -676,7 +727,7 @@ var _default2 = baseMixins.extend({
|
|
|
676
727
|
}
|
|
677
728
|
},
|
|
678
729
|
onMouseUp: function onMouseUp(e) {
|
|
679
|
-
var
|
|
730
|
+
var _this15 = this;
|
|
680
731
|
|
|
681
732
|
// eslint-disable-next-line sonarjs/no-collapsible-if
|
|
682
733
|
if (this.hasMouseDown && e.which !== 3 && this.isInteractive) {
|
|
@@ -685,7 +736,7 @@ var _default2 = baseMixins.extend({
|
|
|
685
736
|
// or inside, toggle menu
|
|
686
737
|
if (this.isAppendInner(e.target)) {
|
|
687
738
|
this.$nextTick(function () {
|
|
688
|
-
return
|
|
739
|
+
return _this15.isMenuActive = !_this15.isMenuActive;
|
|
689
740
|
});
|
|
690
741
|
}
|
|
691
742
|
}
|
|
@@ -693,11 +744,11 @@ var _default2 = baseMixins.extend({
|
|
|
693
744
|
_VTextField2.default.methods.onMouseUp.call(this, e);
|
|
694
745
|
},
|
|
695
746
|
onScroll: function onScroll() {
|
|
696
|
-
var
|
|
747
|
+
var _this16 = this;
|
|
697
748
|
|
|
698
749
|
if (!this.isMenuActive) {
|
|
699
750
|
requestAnimationFrame(function () {
|
|
700
|
-
var content =
|
|
751
|
+
var content = _this16.getContent();
|
|
701
752
|
|
|
702
753
|
if (content) content.scrollTop = 0;
|
|
703
754
|
});
|
|
@@ -731,7 +782,7 @@ var _default2 = baseMixins.extend({
|
|
|
731
782
|
}
|
|
732
783
|
},
|
|
733
784
|
onUpDown: function onUpDown(e) {
|
|
734
|
-
var
|
|
785
|
+
var _this17 = this;
|
|
735
786
|
|
|
736
787
|
var menu = this.$refs.menu;
|
|
737
788
|
if (!menu) return;
|
|
@@ -746,7 +797,7 @@ var _default2 = baseMixins.extend({
|
|
|
746
797
|
menu.isBooted = true;
|
|
747
798
|
window.requestAnimationFrame(function () {
|
|
748
799
|
menu.getTiles();
|
|
749
|
-
if (!menu.hasClickableTiles) return
|
|
800
|
+
if (!menu.hasClickableTiles) return _this17.activateMenu();
|
|
750
801
|
|
|
751
802
|
switch (keyCode) {
|
|
752
803
|
case _helpers.keyCodes.up:
|
|
@@ -766,11 +817,11 @@ var _default2 = baseMixins.extend({
|
|
|
766
817
|
break;
|
|
767
818
|
}
|
|
768
819
|
|
|
769
|
-
|
|
820
|
+
_this17.selectItem(_this17.allItems[_this17.getMenuIndex()]);
|
|
770
821
|
});
|
|
771
822
|
},
|
|
772
823
|
selectItem: function selectItem(item) {
|
|
773
|
-
var
|
|
824
|
+
var _this18 = this;
|
|
774
825
|
|
|
775
826
|
if (!this.multiple) {
|
|
776
827
|
this.setValue(this.returnObject ? item : this.getValue(item));
|
|
@@ -780,7 +831,7 @@ var _default2 = baseMixins.extend({
|
|
|
780
831
|
var i = this.findExistingIndex(item);
|
|
781
832
|
i !== -1 ? internalValue.splice(i, 1) : internalValue.push(item);
|
|
782
833
|
this.setValue(internalValue.map(function (i) {
|
|
783
|
-
return
|
|
834
|
+
return _this18.returnObject ? i : _this18.getValue(i);
|
|
784
835
|
})); // There is no item to re-highlight
|
|
785
836
|
// when selections are hidden
|
|
786
837
|
|
|
@@ -791,10 +842,10 @@ var _default2 = baseMixins.extend({
|
|
|
791
842
|
|
|
792
843
|
if (~index) {
|
|
793
844
|
this.$nextTick(function () {
|
|
794
|
-
return
|
|
845
|
+
return _this18.$refs.menu.getTiles();
|
|
795
846
|
});
|
|
796
847
|
setTimeout(function () {
|
|
797
|
-
return
|
|
848
|
+
return _this18.setMenuIndex(index);
|
|
798
849
|
});
|
|
799
850
|
}
|
|
800
851
|
}
|
|
@@ -804,7 +855,7 @@ var _default2 = baseMixins.extend({
|
|
|
804
855
|
this.$refs.menu && (this.$refs.menu.listIndex = index);
|
|
805
856
|
},
|
|
806
857
|
setSelectedItems: function setSelectedItems() {
|
|
807
|
-
var
|
|
858
|
+
var _this19 = this;
|
|
808
859
|
|
|
809
860
|
var selectedItems = [];
|
|
810
861
|
var values = !this.multiple || !Array.isArray(this.internalValue) ? [this.internalValue] : this.internalValue;
|
|
@@ -816,12 +867,12 @@ var _default2 = baseMixins.extend({
|
|
|
816
867
|
var _loop = function _loop() {
|
|
817
868
|
var value = _step.value;
|
|
818
869
|
|
|
819
|
-
var index =
|
|
820
|
-
return
|
|
870
|
+
var index = _this19.allItems.findIndex(function (v) {
|
|
871
|
+
return _this19.valueComparator(_this19.getValue(v), _this19.getValue(value));
|
|
821
872
|
});
|
|
822
873
|
|
|
823
874
|
if (index > -1) {
|
|
824
|
-
selectedItems.push(
|
|
875
|
+
selectedItems.push(_this19.allItems[index]);
|
|
825
876
|
}
|
|
826
877
|
};
|
|
827
878
|
|
|
@@ -839,7 +890,7 @@ var _default2 = baseMixins.extend({
|
|
|
839
890
|
setValue: function setValue(value) {
|
|
840
891
|
if (!this.valueComparator(value, this.internalValue)) {
|
|
841
892
|
this.internalValue = value;
|
|
842
|
-
this.$emit('update:modelValue', value);
|
|
893
|
+
this.$emit('update:modelValue', value); // Note: change event is already emitted by VInput's internalValue setter
|
|
843
894
|
}
|
|
844
895
|
},
|
|
845
896
|
isAppendInner: function isAppendInner(target) {
|