@dimailn/vuetify 2.7.2-alpha2 → 2.7.2-superbundle2
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.css +4806 -4806
- package/dist/vuetify.css.map +1 -1
- package/dist/vuetify.js +5571 -5345
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +3 -3
- package/dist/vuetify.min.js +2 -2
- package/dist/vuetify.sass +109 -0
- package/es5/components/VAlert/VAlert.js +54 -38
- package/es5/components/VAlert/VAlert.js.map +1 -1
- package/es5/components/VApp/VApp.js +16 -12
- package/es5/components/VApp/VApp.js.map +1 -1
- package/es5/components/VAppBar/VAppBar.js +10 -12
- package/es5/components/VAppBar/VAppBar.js.map +1 -1
- package/es5/components/VAppBar/VAppBarNavIcon.js +20 -13
- package/es5/components/VAppBar/VAppBarNavIcon.js.map +1 -1
- package/es5/components/VAppBar/VAppBarTitle.js +8 -9
- package/es5/components/VAppBar/VAppBarTitle.js.map +1 -1
- package/es5/components/VAutocomplete/VAutocomplete.js +23 -22
- package/es5/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/es5/components/VAvatar/VAvatar.js +8 -9
- package/es5/components/VAvatar/VAvatar.js.map +1 -1
- package/es5/components/VBadge/VBadge.js +24 -22
- package/es5/components/VBadge/VBadge.js.map +1 -1
- package/es5/components/VBanner/VBanner.js +37 -32
- package/es5/components/VBanner/VBanner.js.map +1 -1
- package/es5/components/VBottomNavigation/VBottomNavigation.js +14 -11
- package/es5/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/es5/components/VBottomSheet/VBottomSheet.js +2 -5
- package/es5/components/VBottomSheet/VBottomSheet.js.map +1 -1
- package/es5/components/VBreadcrumbs/VBreadcrumbs.js +11 -11
- package/es5/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/es5/components/VBreadcrumbs/VBreadcrumbsItem.js +7 -8
- package/es5/components/VBreadcrumbs/VBreadcrumbsItem.js.map +1 -1
- package/es5/components/VBtn/VBtn.js +24 -30
- package/es5/components/VBtn/VBtn.js.map +1 -1
- package/es5/components/VBtnToggle/VBtnToggle.js +2 -2
- package/es5/components/VBtnToggle/VBtnToggle.js.map +1 -1
- package/es5/components/VCalendar/VCalendar.js +27 -25
- package/es5/components/VCalendar/VCalendar.js.map +1 -1
- package/es5/components/VCalendar/VCalendarCategory.js +21 -23
- package/es5/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/es5/components/VCalendar/VCalendarDaily.js +69 -67
- package/es5/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/es5/components/VCalendar/VCalendarMonthly.js +1 -4
- package/es5/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/es5/components/VCalendar/VCalendarWeekly.js +65 -64
- package/es5/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-events.js +64 -58
- package/es5/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js +1 -4
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/es5/components/VCalendar/mixins/times.js +4 -2
- package/es5/components/VCalendar/mixins/times.js.map +1 -1
- package/es5/components/VCard/VCard.js +11 -13
- package/es5/components/VCard/VCard.js.map +1 -1
- package/es5/components/VCarousel/VCarousel.js +37 -28
- package/es5/components/VCarousel/VCarousel.js.map +1 -1
- package/es5/components/VCarousel/VCarouselItem.js +18 -16
- package/es5/components/VCarousel/VCarouselItem.js.map +1 -1
- package/es5/components/VCheckbox/VCheckbox.js +10 -11
- package/es5/components/VCheckbox/VCheckbox.js.map +1 -1
- package/es5/components/VCheckbox/VSimpleCheckbox.js +29 -20
- package/es5/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/es5/components/VChip/VChip.js +44 -37
- package/es5/components/VChip/VChip.js.map +1 -1
- package/es5/components/VChipGroup/VChipGroup.js +2 -2
- package/es5/components/VChipGroup/VChipGroup.js.map +1 -1
- package/es5/components/VColorPicker/VColorPicker.js +38 -32
- package/es5/components/VColorPicker/VColorPicker.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerCanvas.js +22 -19
- package/es5/components/VColorPicker/VColorPickerCanvas.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerEdit.js +28 -25
- package/es5/components/VColorPicker/VColorPickerEdit.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerPreview.js +48 -37
- package/es5/components/VColorPicker/VColorPickerPreview.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerSwatches.js +15 -15
- package/es5/components/VColorPicker/VColorPickerSwatches.js.map +1 -1
- package/es5/components/VCombobox/VCombobox.js +27 -22
- package/es5/components/VCombobox/VCombobox.js.map +1 -1
- package/es5/components/VContent/VContent.js +4 -8
- package/es5/components/VContent/VContent.js.map +1 -1
- package/es5/components/VCounter/VCounter.js +5 -7
- package/es5/components/VCounter/VCounter.js.map +1 -1
- package/es5/components/VData/VData.js +5 -3
- package/es5/components/VData/VData.js.map +1 -1
- package/es5/components/VDataIterator/VDataFooter.js +46 -34
- package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
- package/es5/components/VDataIterator/VDataIterator.js +22 -20
- package/es5/components/VDataIterator/VDataIterator.js.map +1 -1
- package/es5/components/VDataTable/MobileRow.js +21 -15
- package/es5/components/VDataTable/MobileRow.js.map +1 -1
- package/es5/components/VDataTable/Row.js +15 -11
- package/es5/components/VDataTable/Row.js.map +1 -1
- package/es5/components/VDataTable/RowGroup.js +12 -9
- package/es5/components/VDataTable/RowGroup.js.map +1 -1
- package/es5/components/VDataTable/VDataTable.js +206 -176
- package/es5/components/VDataTable/VDataTable.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeader.js +20 -12
- package/es5/components/VDataTable/VDataTableHeader.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js +24 -21
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderMobile.js +19 -22
- package/es5/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/es5/components/VDataTable/VEditDialog.js +43 -34
- package/es5/components/VDataTable/VEditDialog.js.map +1 -1
- package/es5/components/VDataTable/VSimpleTable.js +7 -8
- package/es5/components/VDataTable/VSimpleTable.js.map +1 -1
- package/es5/components/VDataTable/VVirtualTable.js +16 -17
- package/es5/components/VDataTable/VVirtualTable.js.map +1 -1
- package/es5/components/VDataTable/mixins/header.js +18 -14
- package/es5/components/VDataTable/mixins/header.js.map +1 -1
- package/es5/components/VDatePicker/VDatePicker.js +113 -99
- package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerDateTable.js +12 -13
- package/es5/components/VDatePicker/VDatePickerDateTable.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerHeader.js +38 -26
- package/es5/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerMonthTable.js +3 -3
- package/es5/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerTitle.js +17 -12
- package/es5/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerYears.js +3 -3
- package/es5/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/es5/components/VDatePicker/mixins/date-picker-table.js +47 -34
- package/es5/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/VDatePicker/util/eventHelpers.js.map +1 -1
- package/es5/components/VDialog/VDialog.js +46 -29
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VDivider/VDivider.js +9 -11
- package/es5/components/VDivider/VDivider.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanel.js +8 -9
- 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 +34 -31
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanels.js +2 -5
- package/es5/components/VExpansionPanel/VExpansionPanels.js.map +1 -1
- package/es5/components/VFileInput/VFileInput.js +35 -32
- package/es5/components/VFileInput/VFileInput.js.map +1 -1
- package/es5/components/VFooter/VFooter.js +9 -11
- package/es5/components/VFooter/VFooter.js.map +1 -1
- package/es5/components/VForm/VForm.js +12 -11
- package/es5/components/VForm/VForm.js.map +1 -1
- package/es5/components/VGrid/VCol.js +8 -8
- package/es5/components/VGrid/VCol.js.map +1 -1
- package/es5/components/VGrid/VContainer.js +19 -17
- package/es5/components/VGrid/VContainer.js.map +1 -1
- package/es5/components/VGrid/VRow.js +10 -7
- package/es5/components/VGrid/VRow.js.map +1 -1
- package/es5/components/VGrid/grid.js +9 -7
- package/es5/components/VGrid/grid.js.map +1 -1
- package/es5/components/VHover/VHover.js +3 -3
- package/es5/components/VHover/VHover.js.map +1 -1
- package/es5/components/VIcon/VIcon.js +36 -69
- package/es5/components/VIcon/VIcon.js.map +1 -1
- package/es5/components/VImg/VImg.js +41 -38
- package/es5/components/VImg/VImg.js.map +1 -1
- package/es5/components/VInput/VInput.js +77 -70
- package/es5/components/VInput/VInput.js.map +1 -1
- package/es5/components/VItemGroup/VItem.js +6 -5
- package/es5/components/VItemGroup/VItem.js.map +1 -1
- package/es5/components/VItemGroup/VItemGroup.js +4 -8
- package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
- package/es5/components/VLabel/VLabel.js +15 -12
- package/es5/components/VLabel/VLabel.js.map +1 -1
- package/es5/components/VLazy/VLazy.js +7 -7
- package/es5/components/VLazy/VLazy.js.map +1 -1
- package/es5/components/VList/VList.js +12 -12
- package/es5/components/VList/VList.js.map +1 -1
- package/es5/components/VList/VListGroup.js +32 -31
- package/es5/components/VList/VListGroup.js.map +1 -1
- package/es5/components/VList/VListItem.js +22 -26
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VList/VListItemAction.js +11 -8
- package/es5/components/VList/VListItemAction.js.map +1 -1
- package/es5/components/VList/VListItemAvatar.js +9 -9
- package/es5/components/VList/VListItemAvatar.js.map +1 -1
- package/es5/components/VList/VListItemGroup.js +2 -2
- package/es5/components/VList/VListItemGroup.js.map +1 -1
- package/es5/components/VList/VListItemIcon.js +9 -11
- package/es5/components/VList/VListItemIcon.js.map +1 -1
- package/es5/components/VMain/VMain.js +5 -9
- package/es5/components/VMain/VMain.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +66 -42
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VMessages/VMessages.js +12 -12
- package/es5/components/VMessages/VMessages.js.map +1 -1
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js +59 -51
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +57 -52
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverflowBtn/VOverflowBtn.js +8 -11
- package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/es5/components/VOverlay/VOverlay.js +8 -11
- package/es5/components/VOverlay/VOverlay.js.map +1 -1
- package/es5/components/VPagination/VPagination.js +48 -35
- package/es5/components/VPagination/VPagination.js.map +1 -1
- package/es5/components/VParallax/VParallax.js +20 -23
- package/es5/components/VParallax/VParallax.js.map +1 -1
- package/es5/components/VPicker/VPicker.js +21 -17
- package/es5/components/VPicker/VPicker.js.map +1 -1
- package/es5/components/VProgressCircular/VProgressCircular.js +40 -38
- package/es5/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/es5/components/VProgressLinear/VProgressLinear.js +32 -33
- package/es5/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/es5/components/VRadioGroup/VRadio.js +37 -29
- package/es5/components/VRadioGroup/VRadio.js.map +1 -1
- package/es5/components/VRadioGroup/VRadioGroup.js +17 -16
- package/es5/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/es5/components/VRangeSlider/VRangeSlider.js +7 -10
- package/es5/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/es5/components/VRating/VRating.js +48 -52
- package/es5/components/VRating/VRating.js.map +1 -1
- package/es5/components/VResponsive/VResponsive.js +11 -11
- package/es5/components/VResponsive/VResponsive.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +126 -102
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSelect/VSelectList.js +63 -44
- package/es5/components/VSelect/VSelectList.js.map +1 -1
- package/es5/components/VSheet/VSheet.js +9 -12
- package/es5/components/VSheet/VSheet.js.map +1 -1
- package/es5/components/VSkeletonLoader/VSkeletonLoader.js +22 -18
- package/es5/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +56 -39
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VSlider/VSlider.js +75 -62
- package/es5/components/VSlider/VSlider.js.map +1 -1
- package/es5/components/VSnackbar/VSnackbar.js +32 -22
- package/es5/components/VSnackbar/VSnackbar.js.map +1 -1
- package/es5/components/VSparkline/VSparkline.js +24 -24
- package/es5/components/VSparkline/VSparkline.js.map +1 -1
- package/es5/components/VSpeedDial/VSpeedDial.js +11 -11
- package/es5/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/es5/components/VStepper/VStepper.js +6 -7
- package/es5/components/VStepper/VStepper.js.map +1 -1
- package/es5/components/VStepper/VStepperContent.js +13 -15
- package/es5/components/VStepper/VStepperContent.js.map +1 -1
- package/es5/components/VStepper/VStepperStep.js +23 -22
- package/es5/components/VStepper/VStepperStep.js.map +1 -1
- package/es5/components/VSubheader/VSubheader.js +8 -7
- package/es5/components/VSubheader/VSubheader.js.map +1 -1
- package/es5/components/VSwitch/VSwitch.js +22 -22
- package/es5/components/VSwitch/VSwitch.js.map +1 -1
- package/es5/components/VSystemBar/VSystemBar.js +8 -9
- package/es5/components/VSystemBar/VSystemBar.js.map +1 -1
- package/es5/components/VTabs/VTab.js +10 -12
- package/es5/components/VTabs/VTab.js.map +1 -1
- package/es5/components/VTabs/VTabItem.js +4 -6
- package/es5/components/VTabs/VTabItem.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +47 -34
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/VTabs/VTabsBar.js +9 -8
- package/es5/components/VTabs/VTabsBar.js.map +1 -1
- package/es5/components/VTabs/VTabsItems.js +3 -6
- package/es5/components/VTabs/VTabsItems.js.map +1 -1
- package/es5/components/VTabs/VTabsSlider.js +3 -5
- package/es5/components/VTabs/VTabsSlider.js.map +1 -1
- package/es5/components/VTextField/VTextField.js +74 -59
- package/es5/components/VTextField/VTextField.js.map +1 -1
- package/es5/components/VTextarea/VTextarea.js +5 -6
- package/es5/components/VTextarea/VTextarea.js.map +1 -1
- package/es5/components/VThemeProvider/VThemeProvider.js +5 -5
- package/es5/components/VThemeProvider/VThemeProvider.js.map +1 -1
- package/es5/components/VTimePicker/VTimePicker.js +29 -25
- package/es5/components/VTimePicker/VTimePicker.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerClock.js +41 -40
- package/es5/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerTitle.js +14 -15
- package/es5/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/es5/components/VTimeline/VTimeline.js +4 -5
- package/es5/components/VTimeline/VTimeline.js.map +1 -1
- package/es5/components/VTimeline/VTimelineItem.js +24 -24
- package/es5/components/VTimeline/VTimelineItem.js.map +1 -1
- package/es5/components/VToolbar/VToolbar.js +14 -17
- package/es5/components/VToolbar/VToolbar.js.map +1 -1
- package/es5/components/VTooltip/VTooltip.js +13 -11
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/components/VTreeview/VTreeview.js +6 -7
- package/es5/components/VTreeview/VTreeview.js.map +1 -1
- package/es5/components/VTreeview/VTreeviewNode.js +109 -93
- package/es5/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/es5/components/VVirtualScroll/VVirtualScroll.js +8 -12
- package/es5/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/es5/components/VWindow/VWindow.js +38 -26
- package/es5/components/VWindow/VWindow.js.map +1 -1
- package/es5/components/VWindow/VWindowItem.js +30 -25
- package/es5/components/VWindow/VWindowItem.js.map +1 -1
- package/es5/components/index.js +112 -0
- package/es5/components/index.js.map +1 -1
- package/es5/components/transitions/createTransition.js +24 -22
- package/es5/components/transitions/createTransition.js.map +1 -1
- package/es5/directives/click-outside/index.js +6 -6
- package/es5/directives/click-outside/index.js.map +1 -1
- package/es5/directives/intersect/index.js +6 -6
- package/es5/directives/intersect/index.js.map +1 -1
- package/es5/directives/ripple/index.js +5 -11
- package/es5/directives/ripple/index.js.map +1 -1
- package/es5/directives/touch/index.js +6 -12
- package/es5/directives/touch/index.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/framework.js.map +1 -1
- package/es5/helpers.js +72 -0
- package/es5/helpers.js.map +1 -0
- package/es5/index.js +36 -31
- package/es5/index.js.map +1 -1
- package/es5/install.js +15 -42
- package/es5/install.js.map +1 -1
- package/es5/mixins/activatable/index.js +12 -19
- package/es5/mixins/activatable/index.js.map +1 -1
- package/es5/mixins/binds-attrs/index.js +5 -3
- package/es5/mixins/binds-attrs/index.js.map +1 -1
- package/es5/mixins/bootable/index.js +5 -3
- package/es5/mixins/bootable/index.js.map +1 -1
- package/es5/mixins/button-group/index.js +3 -6
- package/es5/mixins/button-group/index.js.map +1 -1
- package/es5/mixins/colorable/index.js +8 -36
- package/es5/mixins/colorable/index.js.map +1 -1
- package/es5/mixins/comparable/index.js +4 -2
- package/es5/mixins/comparable/index.js.map +1 -1
- package/es5/mixins/delayable/index.js +4 -2
- package/es5/mixins/delayable/index.js.map +1 -1
- package/es5/mixins/dependent/index.js +2 -8
- package/es5/mixins/dependent/index.js.map +1 -1
- package/es5/mixins/detachable/index.js +2 -2
- package/es5/mixins/detachable/index.js.map +1 -1
- package/es5/mixins/elevatable/index.js +4 -2
- package/es5/mixins/elevatable/index.js.map +1 -1
- package/es5/mixins/filterable/index.js +4 -2
- package/es5/mixins/filterable/index.js.map +1 -1
- package/es5/mixins/groupable/index.js +11 -14
- package/es5/mixins/groupable/index.js.map +1 -1
- package/es5/mixins/intersectable/index.js +5 -11
- package/es5/mixins/intersectable/index.js.map +1 -1
- package/es5/mixins/loadable/index.js +9 -7
- package/es5/mixins/loadable/index.js.map +1 -1
- package/es5/mixins/localable/index.js +4 -2
- package/es5/mixins/localable/index.js.map +1 -1
- package/es5/mixins/measurable/index.js +4 -2
- package/es5/mixins/measurable/index.js.map +1 -1
- package/es5/mixins/menuable/index.js +5 -8
- package/es5/mixins/menuable/index.js.map +1 -1
- package/es5/mixins/mobile/index.js +13 -9
- package/es5/mixins/mobile/index.js.map +1 -1
- package/es5/mixins/mouse/index.js +6 -9
- package/es5/mixins/mouse/index.js.map +1 -1
- package/es5/mixins/overlayable/index.js +16 -46
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/es5/mixins/picker/index.js +20 -19
- package/es5/mixins/picker/index.js.map +1 -1
- package/es5/mixins/picker-button/index.js +11 -14
- package/es5/mixins/picker-button/index.js.map +1 -1
- package/es5/mixins/positionable/index.js +4 -2
- package/es5/mixins/positionable/index.js.map +1 -1
- package/es5/mixins/proxyable/index.js +6 -4
- package/es5/mixins/proxyable/index.js.map +1 -1
- package/es5/mixins/registrable/index.js +5 -3
- package/es5/mixins/registrable/index.js.map +1 -1
- package/es5/mixins/returnable/index.js +4 -2
- package/es5/mixins/returnable/index.js.map +1 -1
- package/es5/mixins/rippleable/index.js +13 -21
- package/es5/mixins/rippleable/index.js.map +1 -1
- package/es5/mixins/roundable/index.js +4 -2
- package/es5/mixins/roundable/index.js.map +1 -1
- package/es5/mixins/routable/index.js +25 -24
- package/es5/mixins/routable/index.js.map +1 -1
- package/es5/mixins/scrollable/index.js +4 -2
- package/es5/mixins/scrollable/index.js.map +1 -1
- package/es5/mixins/selectable/index.js +33 -31
- package/es5/mixins/selectable/index.js.map +1 -1
- package/es5/mixins/sizeable/index.js +4 -2
- package/es5/mixins/sizeable/index.js.map +1 -1
- package/es5/mixins/ssr-bootable/index.js +4 -2
- package/es5/mixins/ssr-bootable/index.js.map +1 -1
- package/es5/mixins/stackable/index.js +4 -2
- package/es5/mixins/stackable/index.js.map +1 -1
- package/es5/mixins/themeable/index.js +16 -5
- package/es5/mixins/themeable/index.js.map +1 -1
- package/es5/mixins/toggleable/index.js +10 -4
- package/es5/mixins/toggleable/index.js.map +1 -1
- package/es5/mixins/transitionable/index.js +4 -2
- package/es5/mixins/transitionable/index.js.map +1 -1
- package/es5/mixins/translatable/index.js +4 -2
- package/es5/mixins/translatable/index.js.map +1 -1
- package/es5/mixins/validatable/index.js +1 -1
- package/es5/mixins/validatable/index.js.map +1 -1
- package/es5/services/goto/util.js.map +1 -1
- package/es5/services/theme/index.js +19 -6
- package/es5/services/theme/index.js.map +1 -1
- package/es5/util/helpers.js +20 -33
- package/es5/util/helpers.js.map +1 -1
- package/es5/util/mergeData.js +1 -1
- package/es5/util/mergeData.js.map +1 -1
- package/es5/util/mixins.js +5 -11
- package/es5/util/mixins.js.map +1 -1
- package/es5/vuetify.js +45 -0
- package/es5/vuetify.js.map +1 -0
- package/lib/components/VAlert/VAlert.js +54 -38
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VApp/VApp.js +14 -10
- package/lib/components/VApp/VApp.js.map +1 -1
- package/lib/components/VAppBar/VAppBar.js +11 -12
- package/lib/components/VAppBar/VAppBar.js.map +1 -1
- package/lib/components/VAppBar/VAppBarNavIcon.js +15 -10
- package/lib/components/VAppBar/VAppBarNavIcon.js.map +1 -1
- package/lib/components/VAppBar/VAppBarTitle.js +4 -6
- package/lib/components/VAppBar/VAppBarTitle.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js +23 -22
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VAvatar/VAvatar.js +4 -4
- package/lib/components/VAvatar/VAvatar.js.map +1 -1
- package/lib/components/VBadge/VBadge.js +26 -22
- package/lib/components/VBadge/VBadge.js.map +1 -1
- package/lib/components/VBanner/VBanner.js +28 -23
- package/lib/components/VBanner/VBanner.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.js +14 -10
- package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.js +2 -4
- package/lib/components/VBottomSheet/VBottomSheet.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js +9 -9
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js +7 -7
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js.map +1 -1
- package/lib/components/VBtn/VBtn.js +25 -31
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VBtnToggle/VBtnToggle.js +2 -2
- package/lib/components/VBtnToggle/VBtnToggle.js.map +1 -1
- package/lib/components/VCalendar/VCalendar.js +25 -24
- package/lib/components/VCalendar/VCalendar.js.map +1 -1
- package/lib/components/VCalendar/VCalendarCategory.js +16 -19
- package/lib/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/lib/components/VCalendar/VCalendarDaily.js +39 -41
- package/lib/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/lib/components/VCalendar/VCalendarMonthly.js +1 -3
- package/lib/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/lib/components/VCalendar/VCalendarWeekly.js +30 -32
- package/lib/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-events.js +24 -27
- package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js +1 -3
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/lib/components/VCalendar/mixins/times.js +2 -2
- package/lib/components/VCalendar/mixins/times.js.map +1 -1
- package/lib/components/VCard/VCard.js +12 -14
- package/lib/components/VCard/VCard.js.map +1 -1
- package/lib/components/VCarousel/VCarousel.js +39 -31
- package/lib/components/VCarousel/VCarousel.js.map +1 -1
- package/lib/components/VCarousel/VCarouselItem.js +19 -17
- package/lib/components/VCarousel/VCarouselItem.js.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.js +10 -10
- package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
- package/lib/components/VCheckbox/VSimpleCheckbox.js +25 -19
- package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/lib/components/VChip/VChip.js +43 -34
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.js +2 -2
- package/lib/components/VChipGroup/VChipGroup.js.map +1 -1
- package/lib/components/VColorPicker/VColorPicker.js +30 -23
- package/lib/components/VColorPicker/VColorPicker.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.js +8 -9
- package/lib/components/VColorPicker/VColorPickerCanvas.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.js +24 -19
- package/lib/components/VColorPicker/VColorPickerEdit.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.js +45 -35
- package/lib/components/VColorPicker/VColorPickerPreview.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.js +15 -14
- package/lib/components/VColorPicker/VColorPickerSwatches.js.map +1 -1
- package/lib/components/VCombobox/VCombobox.js +20 -20
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VContent/VContent.js +4 -8
- package/lib/components/VContent/VContent.js.map +1 -1
- package/lib/components/VCounter/VCounter.js +7 -7
- package/lib/components/VCounter/VCounter.js.map +1 -1
- package/lib/components/VData/VData.js +3 -3
- package/lib/components/VData/VData.js.map +1 -1
- package/lib/components/VDataIterator/VDataFooter.js +46 -34
- package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
- package/lib/components/VDataIterator/VDataIterator.js +20 -16
- package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
- package/lib/components/VDataTable/MobileRow.js +16 -11
- package/lib/components/VDataTable/MobileRow.js.map +1 -1
- package/lib/components/VDataTable/Row.js +12 -6
- package/lib/components/VDataTable/Row.js.map +1 -1
- package/lib/components/VDataTable/RowGroup.js +9 -7
- package/lib/components/VDataTable/RowGroup.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.js +169 -135
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeader.js +19 -11
- package/lib/components/VDataTable/VDataTableHeader.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js +24 -21
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderMobile.js +9 -10
- package/lib/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/lib/components/VDataTable/VEditDialog.js +41 -31
- package/lib/components/VDataTable/VEditDialog.js.map +1 -1
- package/lib/components/VDataTable/VSimpleTable.js +6 -6
- package/lib/components/VDataTable/VSimpleTable.js.map +1 -1
- package/lib/components/VDataTable/VVirtualTable.js +11 -12
- package/lib/components/VDataTable/VVirtualTable.js.map +1 -1
- package/lib/components/VDataTable/mixins/header.js +17 -12
- package/lib/components/VDataTable/mixins/header.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +107 -92
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerDateTable.js +11 -13
- package/lib/components/VDatePicker/VDatePickerDateTable.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js +37 -25
- package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonthTable.js +3 -3
- package/lib/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerTitle.js +16 -10
- package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.js +3 -3
- package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.js +36 -27
- package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/VDatePicker/util/eventHelpers.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +46 -27
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VDivider/VDivider.js +12 -14
- package/lib/components/VDivider/VDivider.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.js +8 -9
- package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelContent.js +9 -6
- package/lib/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +31 -21
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanels.js +2 -4
- package/lib/components/VExpansionPanel/VExpansionPanels.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.js +34 -31
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VFooter/VFooter.js +5 -6
- package/lib/components/VFooter/VFooter.js.map +1 -1
- package/lib/components/VForm/VForm.js +11 -8
- package/lib/components/VForm/VForm.js.map +1 -1
- package/lib/components/VGrid/VCol.js +9 -9
- package/lib/components/VGrid/VCol.js.map +1 -1
- package/lib/components/VGrid/VContainer.js +22 -16
- package/lib/components/VGrid/VContainer.js.map +1 -1
- package/lib/components/VGrid/VRow.js +12 -9
- package/lib/components/VGrid/VRow.js.map +1 -1
- package/lib/components/VGrid/grid.js +7 -6
- package/lib/components/VGrid/grid.js.map +1 -1
- package/lib/components/VHover/VHover.js +3 -3
- package/lib/components/VHover/VHover.js.map +1 -1
- package/lib/components/VIcon/VIcon.js +36 -65
- package/lib/components/VIcon/VIcon.js.map +1 -1
- package/lib/components/VImg/VImg.js +41 -32
- package/lib/components/VImg/VImg.js.map +1 -1
- package/lib/components/VInput/VInput.js +61 -59
- package/lib/components/VInput/VInput.js.map +1 -1
- package/lib/components/VItemGroup/VItem.js +5 -5
- package/lib/components/VItemGroup/VItem.js.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.js +4 -8
- package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
- package/lib/components/VLabel/VLabel.js +18 -13
- package/lib/components/VLabel/VLabel.js.map +1 -1
- package/lib/components/VLazy/VLazy.js +7 -6
- package/lib/components/VLazy/VLazy.js.map +1 -1
- package/lib/components/VList/VList.js +12 -13
- package/lib/components/VList/VList.js.map +1 -1
- package/lib/components/VList/VListGroup.js +29 -21
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.js +26 -25
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/VListItemAction.js +8 -7
- package/lib/components/VList/VListItemAction.js.map +1 -1
- package/lib/components/VList/VListItemAvatar.js +9 -10
- package/lib/components/VList/VListItemAvatar.js.map +1 -1
- package/lib/components/VList/VListItemGroup.js +2 -2
- package/lib/components/VList/VListItemGroup.js.map +1 -1
- package/lib/components/VList/VListItemIcon.js +8 -7
- package/lib/components/VList/VListItemIcon.js.map +1 -1
- package/lib/components/VMain/VMain.js +5 -8
- package/lib/components/VMain/VMain.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +65 -40
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VMessages/VMessages.js +12 -11
- package/lib/components/VMessages/VMessages.js.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js +60 -49
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +46 -40
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.js +8 -10
- package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.js +8 -10
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VPagination/VPagination.js +42 -30
- package/lib/components/VPagination/VPagination.js.map +1 -1
- package/lib/components/VParallax/VParallax.js +13 -12
- package/lib/components/VParallax/VParallax.js.map +1 -1
- package/lib/components/VPicker/VPicker.js +20 -15
- package/lib/components/VPicker/VPicker.js.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.js +37 -30
- package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.js +30 -24
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VRadioGroup/VRadio.js +34 -24
- package/lib/components/VRadioGroup/VRadio.js.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.js +18 -17
- package/lib/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.js +7 -9
- package/lib/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/lib/components/VRating/VRating.js +34 -34
- package/lib/components/VRating/VRating.js.map +1 -1
- package/lib/components/VResponsive/VResponsive.js +11 -10
- package/lib/components/VResponsive/VResponsive.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +123 -95
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelect/VSelectList.js +59 -39
- package/lib/components/VSelect/VSelectList.js.map +1 -1
- package/lib/components/VSheet/VSheet.js +7 -11
- package/lib/components/VSheet/VSheet.js.map +1 -1
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js +21 -16
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +51 -35
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VSlider/VSlider.js +75 -63
- package/lib/components/VSlider/VSlider.js.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.js +31 -20
- package/lib/components/VSnackbar/VSnackbar.js.map +1 -1
- package/lib/components/VSparkline/VSparkline.js +16 -17
- package/lib/components/VSparkline/VSparkline.js.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.js +10 -9
- package/lib/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/lib/components/VStepper/VStepper.js +6 -6
- package/lib/components/VStepper/VStepper.js.map +1 -1
- package/lib/components/VStepper/VStepperContent.js +8 -8
- package/lib/components/VStepper/VStepperContent.js.map +1 -1
- package/lib/components/VStepper/VStepperStep.js +9 -10
- package/lib/components/VStepper/VStepperStep.js.map +1 -1
- package/lib/components/VSubheader/VSubheader.js +7 -7
- package/lib/components/VSubheader/VSubheader.js.map +1 -1
- package/lib/components/VSwitch/VSwitch.js +26 -23
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.js +3 -4
- package/lib/components/VSystemBar/VSystemBar.js.map +1 -1
- package/lib/components/VTabs/VTab.js +12 -13
- package/lib/components/VTabs/VTab.js.map +1 -1
- package/lib/components/VTabs/VTabItem.js +4 -5
- package/lib/components/VTabs/VTabItem.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +48 -34
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTabs/VTabsBar.js +10 -8
- package/lib/components/VTabs/VTabsBar.js.map +1 -1
- package/lib/components/VTabs/VTabsItems.js +3 -5
- package/lib/components/VTabs/VTabsItems.js.map +1 -1
- package/lib/components/VTabs/VTabsSlider.js +3 -4
- package/lib/components/VTabs/VTabsSlider.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +73 -57
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTextarea/VTextarea.js +5 -6
- package/lib/components/VTextarea/VTextarea.js.map +1 -1
- package/lib/components/VThemeProvider/VThemeProvider.js +4 -5
- package/lib/components/VThemeProvider/VThemeProvider.js.map +1 -1
- package/lib/components/VTimePicker/VTimePicker.js +26 -22
- package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerClock.js +7 -8
- package/lib/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerTitle.js +7 -8
- package/lib/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/lib/components/VTimeline/VTimeline.js +4 -4
- package/lib/components/VTimeline/VTimeline.js.map +1 -1
- package/lib/components/VTimeline/VTimelineItem.js +26 -23
- package/lib/components/VTimeline/VTimelineItem.js.map +1 -1
- package/lib/components/VToolbar/VToolbar.js +15 -19
- package/lib/components/VToolbar/VToolbar.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.js +12 -9
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VTreeview/VTreeview.js +6 -6
- package/lib/components/VTreeview/VTreeview.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewNode.js +98 -83
- package/lib/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.js +8 -12
- package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/lib/components/VWindow/VWindow.js +37 -27
- package/lib/components/VWindow/VWindow.js.map +1 -1
- package/lib/components/VWindow/VWindowItem.js +29 -23
- package/lib/components/VWindow/VWindowItem.js.map +1 -1
- package/lib/components/index.js +4 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/transitions/createTransition.js +25 -20
- package/lib/components/transitions/createTransition.js.map +1 -1
- package/lib/directives/click-outside/index.js +6 -6
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/directives/intersect/index.js +6 -6
- package/lib/directives/intersect/index.js.map +1 -1
- package/lib/directives/ripple/index.js +5 -6
- package/lib/directives/ripple/index.js.map +1 -1
- package/lib/directives/touch/index.js +6 -7
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/framework.js.map +1 -1
- package/lib/helpers.js +10 -0
- package/lib/helpers.js.map +1 -0
- package/lib/install.js +16 -39
- package/lib/install.js.map +1 -1
- package/lib/mixins/activatable/index.js +10 -16
- package/lib/mixins/activatable/index.js.map +1 -1
- package/lib/mixins/binds-attrs/index.js +3 -3
- package/lib/mixins/binds-attrs/index.js.map +1 -1
- package/lib/mixins/bootable/index.js +4 -5
- package/lib/mixins/bootable/index.js.map +1 -1
- package/lib/mixins/button-group/index.js +3 -5
- package/lib/mixins/button-group/index.js.map +1 -1
- package/lib/mixins/colorable/index.js +6 -42
- package/lib/mixins/colorable/index.js.map +1 -1
- package/lib/mixins/comparable/index.js +2 -2
- package/lib/mixins/comparable/index.js.map +1 -1
- package/lib/mixins/delayable/index.js +2 -2
- package/lib/mixins/delayable/index.js.map +1 -1
- package/lib/mixins/dependent/index.js +2 -8
- package/lib/mixins/dependent/index.js.map +1 -1
- package/lib/mixins/detachable/index.js +2 -2
- package/lib/mixins/detachable/index.js.map +1 -1
- package/lib/mixins/elevatable/index.js +2 -2
- package/lib/mixins/elevatable/index.js.map +1 -1
- package/lib/mixins/filterable/index.js +2 -2
- package/lib/mixins/filterable/index.js.map +1 -1
- package/lib/mixins/groupable/index.js +11 -13
- package/lib/mixins/groupable/index.js.map +1 -1
- package/lib/mixins/intersectable/index.js +5 -11
- package/lib/mixins/intersectable/index.js.map +1 -1
- package/lib/mixins/loadable/index.js +9 -7
- package/lib/mixins/loadable/index.js.map +1 -1
- package/lib/mixins/localable/index.js +2 -2
- package/lib/mixins/localable/index.js.map +1 -1
- package/lib/mixins/measurable/index.js +2 -2
- package/lib/mixins/measurable/index.js.map +1 -1
- package/lib/mixins/menuable/index.js +5 -9
- package/lib/mixins/menuable/index.js.map +1 -1
- package/lib/mixins/mobile/index.js +12 -9
- package/lib/mixins/mobile/index.js.map +1 -1
- package/lib/mixins/mouse/index.js +4 -10
- package/lib/mixins/mouse/index.js.map +1 -1
- package/lib/mixins/overlayable/index.js +13 -44
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/lib/mixins/picker/index.js +21 -19
- package/lib/mixins/picker/index.js.map +1 -1
- package/lib/mixins/picker-button/index.js +9 -10
- package/lib/mixins/picker-button/index.js.map +1 -1
- package/lib/mixins/positionable/index.js +2 -2
- package/lib/mixins/positionable/index.js.map +1 -1
- package/lib/mixins/proxyable/index.js +3 -3
- package/lib/mixins/proxyable/index.js.map +1 -1
- package/lib/mixins/registrable/index.js +3 -3
- package/lib/mixins/registrable/index.js.map +1 -1
- package/lib/mixins/returnable/index.js +2 -2
- package/lib/mixins/returnable/index.js.map +1 -1
- package/lib/mixins/rippleable/index.js +11 -9
- package/lib/mixins/rippleable/index.js.map +1 -1
- package/lib/mixins/roundable/index.js +2 -2
- package/lib/mixins/roundable/index.js.map +1 -1
- package/lib/mixins/routable/index.js +24 -20
- package/lib/mixins/routable/index.js.map +1 -1
- package/lib/mixins/scrollable/index.js +2 -2
- package/lib/mixins/scrollable/index.js.map +1 -1
- package/lib/mixins/selectable/index.js +23 -17
- package/lib/mixins/selectable/index.js.map +1 -1
- package/lib/mixins/sizeable/index.js +2 -2
- package/lib/mixins/sizeable/index.js.map +1 -1
- package/lib/mixins/ssr-bootable/index.js +2 -2
- package/lib/mixins/ssr-bootable/index.js.map +1 -1
- package/lib/mixins/stackable/index.js +2 -2
- package/lib/mixins/stackable/index.js.map +1 -1
- package/lib/mixins/themeable/index.js +8 -5
- package/lib/mixins/themeable/index.js.map +1 -1
- package/lib/mixins/toggleable/index.js +7 -3
- package/lib/mixins/toggleable/index.js.map +1 -1
- package/lib/mixins/transitionable/index.js +2 -2
- package/lib/mixins/transitionable/index.js.map +1 -1
- package/lib/mixins/translatable/index.js +2 -2
- package/lib/mixins/translatable/index.js.map +1 -1
- package/lib/mixins/validatable/index.js +1 -1
- package/lib/mixins/validatable/index.js.map +1 -1
- package/lib/services/goto/util.js.map +1 -1
- package/lib/services/theme/index.js +11 -7
- package/lib/services/theme/index.js.map +1 -1
- package/lib/util/helpers.js +16 -28
- package/lib/util/helpers.js.map +1 -1
- package/lib/util/mergeData.js +1 -1
- package/lib/util/mergeData.js.map +1 -1
- package/lib/util/mixins.js +4 -9
- package/lib/util/mixins.js.map +1 -1
- package/lib/vuetify.js +19 -0
- package/lib/vuetify.js.map +1 -0
- package/package.json +9 -8
- package/src/components/VAlert/VAlert.ts +50 -42
- package/src/components/VApp/VApp.ts +9 -11
- package/src/components/VAppBar/VAppBar.ts +10 -11
- package/src/components/VAppBar/VAppBarNavIcon.ts +11 -9
- package/src/components/VAppBar/VAppBarTitle.ts +3 -5
- package/src/components/VAutocomplete/VAutocomplete.ts +22 -21
- package/src/components/VAvatar/VAvatar.ts +4 -4
- package/src/components/VBadge/VBadge.ts +25 -21
- package/src/components/VBanner/VBanner.ts +27 -22
- package/src/components/VBanner/__tests__/VBanner.spec.ts +2 -2
- package/src/components/VBottomNavigation/VBottomNavigation.ts +14 -12
- package/src/components/VBottomSheet/VBottomSheet.ts +2 -4
- package/src/components/VBreadcrumbs/VBreadcrumbs.ts +7 -7
- package/src/components/VBreadcrumbs/VBreadcrumbsItem.ts +8 -6
- package/src/components/VBreadcrumbs/__tests__/VBreadcrumbs.spec.ts +1 -1
- package/src/components/VBtn/VBtn.ts +25 -34
- package/src/components/VBtn/__tests__/VBtn.spec.ts +219 -219
- package/src/components/VBtnToggle/VBtnToggle.ts +2 -2
- package/src/components/VCalendar/VCalendar.ts +28 -22
- package/src/components/VCalendar/VCalendarCategory.ts +16 -17
- package/src/components/VCalendar/VCalendarDaily.ts +38 -38
- package/src/components/VCalendar/VCalendarMonthly.ts +1 -3
- package/src/components/VCalendar/VCalendarWeekly.ts +29 -29
- package/src/components/VCalendar/mixins/calendar-with-events.ts +21 -23
- package/src/components/VCalendar/mixins/calendar-with-intervals.ts +1 -3
- package/src/components/VCalendar/mixins/times.ts +2 -2
- package/src/components/VCard/VCard.ts +13 -12
- package/src/components/VCarousel/VCarousel.ts +37 -29
- package/src/components/VCarousel/VCarouselItem.ts +19 -19
- package/src/components/VCheckbox/VCheckbox.ts +10 -10
- package/src/components/VCheckbox/VSimpleCheckbox.ts +22 -23
- package/src/components/VChip/VChip.ts +41 -43
- package/src/components/VChipGroup/VChipGroup.ts +2 -2
- package/src/components/VColorPicker/VColorPicker.ts +29 -22
- package/src/components/VColorPicker/VColorPickerCanvas.ts +7 -8
- package/src/components/VColorPicker/VColorPickerEdit.ts +23 -18
- package/src/components/VColorPicker/VColorPickerPreview.ts +40 -30
- package/src/components/VColorPicker/VColorPickerSwatches.ts +14 -13
- package/src/components/VCombobox/VCombobox.ts +21 -21
- package/src/components/VContent/VContent.ts +4 -7
- package/src/components/VCounter/VCounter.ts +5 -5
- package/src/components/VData/VData.ts +3 -3
- package/src/components/VData/__tests__/VData.spec.ts +9 -9
- package/src/components/VDataIterator/VDataFooter.ts +48 -36
- package/src/components/VDataIterator/VDataIterator.ts +20 -16
- package/src/components/VDataIterator/__tests__/VDataIterator.spec.ts +4 -4
- package/src/components/VDataTable/MobileRow.ts +12 -12
- package/src/components/VDataTable/Row.ts +9 -8
- package/src/components/VDataTable/RowGroup.ts +6 -8
- package/src/components/VDataTable/VDataTable.ts +180 -148
- package/src/components/VDataTable/VDataTableHeader.ts +8 -9
- package/src/components/VDataTable/VDataTableHeaderDesktop.ts +25 -20
- package/src/components/VDataTable/VDataTableHeaderMobile.ts +9 -10
- package/src/components/VDataTable/VEditDialog.ts +39 -31
- package/src/components/VDataTable/VSimpleTable.ts +6 -6
- package/src/components/VDataTable/VVirtualTable.ts +12 -13
- package/src/components/VDataTable/__tests__/MobileRow.spec.ts +2 -2
- package/src/components/VDataTable/__tests__/Row.spec.ts +2 -2
- package/src/components/VDataTable/__tests__/VDataTable.spec.ts +992 -997
- package/src/components/VDataTable/__tests__/VVirtualTable.spec.ts +2 -2
- package/src/components/VDataTable/mixins/__tests__/header.spec.ts +2 -2
- package/src/components/VDataTable/mixins/header.ts +18 -12
- package/src/components/VDatePicker/VDatePicker.ts +108 -92
- package/src/components/VDatePicker/VDatePickerDateTable.ts +12 -12
- package/src/components/VDatePicker/VDatePickerHeader.ts +36 -24
- package/src/components/VDatePicker/VDatePickerMonthTable.ts +3 -3
- package/src/components/VDatePicker/VDatePickerTitle.ts +15 -11
- package/src/components/VDatePicker/VDatePickerYears.ts +3 -3
- package/src/components/VDatePicker/mixins/date-picker-table.ts +32 -29
- package/src/components/VDatePicker/util/eventHelpers.ts +3 -3
- package/src/components/VDialog/VDialog.ts +42 -38
- package/src/components/VDialog/__tests__/VDialog.spec.ts +10 -10
- package/src/components/VDivider/VDivider.ts +11 -12
- package/src/components/VExpansionPanel/VExpansionPanel.ts +7 -8
- package/src/components/VExpansionPanel/VExpansionPanelContent.ts +8 -10
- package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +33 -33
- package/src/components/VExpansionPanel/VExpansionPanels.ts +2 -4
- package/src/components/VFileInput/VFileInput.ts +35 -31
- package/src/components/VFooter/VFooter.ts +4 -5
- package/src/components/VForm/VForm.ts +10 -7
- package/src/components/VGrid/VCol.ts +4 -9
- package/src/components/VGrid/VContainer.ts +15 -18
- package/src/components/VGrid/VRow.ts +8 -8
- package/src/components/VGrid/grid.ts +3 -7
- package/src/components/VHover/VHover.ts +3 -3
- package/src/components/VHover/__tests__/VHover.spec.ts +1 -1
- package/src/components/VIcon/VIcon.ts +39 -64
- package/src/components/VImg/VImg.ts +40 -44
- package/src/components/VInput/VInput.ts +61 -51
- package/src/components/VItemGroup/VItem.ts +5 -5
- package/src/components/VItemGroup/VItemGroup.ts +2 -6
- package/src/components/VLabel/VLabel.ts +13 -12
- package/src/components/VLazy/VLazy.ts +4 -5
- package/src/components/VList/VList.ts +11 -10
- package/src/components/VList/VListGroup.ts +28 -22
- package/src/components/VList/VListItem.ts +24 -31
- package/src/components/VList/VListItemAction.ts +5 -8
- package/src/components/VList/VListItemAvatar.ts +10 -8
- package/src/components/VList/VListItemGroup.ts +2 -2
- package/src/components/VList/VListItemIcon.ts +5 -7
- package/src/components/VList/__tests__/VListItemAction.spec.ts +1 -1
- package/src/components/VMain/VMain.ts +5 -7
- package/src/components/VMenu/VMenu.ts +60 -47
- package/src/components/VMenu/__tests__/VMenu.spec.ts +20 -20
- package/src/components/VMessages/VMessages.ts +12 -9
- package/src/components/VMessages/__tests__/VMessages.spec.ts +1 -1
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +49 -51
- package/src/components/VOtpInput/VOtpInput.ts +46 -39
- package/src/components/VOverflowBtn/VOverflowBtn.ts +9 -12
- package/src/components/VOverlay/VOverlay.ts +8 -8
- package/src/components/VPagination/VPagination.ts +37 -33
- package/src/components/VParallax/VParallax.ts +12 -11
- package/src/components/VPicker/VPicker.ts +20 -15
- package/src/components/VProgressCircular/VProgressCircular.ts +35 -32
- package/src/components/VProgressLinear/VProgressLinear.ts +32 -35
- package/src/components/VRadioGroup/VRadio.ts +31 -23
- package/src/components/VRadioGroup/VRadioGroup.ts +16 -18
- package/src/components/VRangeSlider/VRangeSlider.ts +7 -9
- package/src/components/VRating/VRating.ts +33 -35
- package/src/components/VRating/__tests__/VRating.spec.ts +64 -70
- package/src/components/VResponsive/VResponsive.ts +10 -10
- package/src/components/VSelect/VSelect.ts +117 -101
- package/src/components/VSelect/VSelectList.ts +59 -40
- package/src/components/VSheet/VSheet.ts +12 -14
- package/src/components/VSkeletonLoader/VSkeletonLoader.ts +20 -15
- package/src/components/VSlideGroup/VSlideGroup.ts +50 -44
- package/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts +4 -4
- package/src/components/VSlider/VSlider.ts +75 -62
- package/src/components/VSnackbar/VSnackbar.ts +29 -26
- package/src/components/VSparkline/VSparkline.ts +17 -18
- package/src/components/VSpeedDial/VSpeedDial.ts +9 -8
- package/src/components/VStepper/VStepper.ts +5 -5
- package/src/components/VStepper/VStepperContent.ts +6 -14
- package/src/components/VStepper/VStepperStep.ts +8 -9
- package/src/components/VSubheader/VSubheader.ts +6 -6
- package/src/components/VSubheader/__tests__/VSubheader.spec.ts +1 -1
- package/src/components/VSwitch/VSwitch.ts +27 -29
- package/src/components/VSystemBar/VSystemBar.ts +2 -3
- package/src/components/VTabs/VTab.ts +14 -14
- package/src/components/VTabs/VTabItem.ts +4 -6
- package/src/components/VTabs/VTabs.ts +43 -38
- package/src/components/VTabs/VTabsBar.ts +9 -7
- package/src/components/VTabs/VTabsItems.ts +3 -5
- package/src/components/VTabs/VTabsSlider.ts +2 -3
- package/src/components/VTabs/__tests__/VTabs.spec.ts +1 -1
- package/src/components/VTextField/VTextField.ts +68 -62
- package/src/components/VTextarea/VTextarea.ts +5 -6
- package/src/components/VThemeProvider/VThemeProvider.ts +4 -5
- package/src/components/VTimePicker/VTimePicker.ts +36 -32
- package/src/components/VTimePicker/VTimePickerClock.ts +7 -8
- package/src/components/VTimePicker/VTimePickerTitle.ts +7 -8
- package/src/components/VTimeline/VTimeline.ts +3 -3
- package/src/components/VTimeline/VTimelineItem.ts +25 -22
- package/src/components/VToolbar/VToolbar.ts +15 -17
- package/src/components/VTooltip/VTooltip.ts +12 -9
- package/src/components/VTreeview/VTreeview.ts +5 -6
- package/src/components/VTreeview/VTreeviewNode.ts +103 -88
- package/src/components/VVirtualScroll/VVirtualScroll.ts +7 -10
- package/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts +1 -1
- package/src/components/VWindow/VWindow.sass +5 -5
- package/src/components/VWindow/VWindow.ts +33 -31
- package/src/components/VWindow/VWindowItem.ts +32 -27
- package/src/components/index.ts +10 -0
- package/src/components/transitions/createTransition.ts +25 -23
- package/src/directives/click-outside/index.ts +6 -6
- package/src/directives/intersect/index.ts +6 -6
- package/src/directives/ripple/index.ts +6 -9
- package/src/directives/touch/index.ts +6 -9
- package/src/framework.ts +0 -2
- package/src/helpers.ts +20 -0
- package/src/index.ts +3 -19
- package/src/install.ts +12 -39
- package/src/mixins/activatable/__tests__/activatable.spec.ts +1 -1
- package/src/mixins/activatable/index.ts +11 -19
- package/src/mixins/binds-attrs/index.ts +3 -3
- package/src/mixins/bootable/index.ts +4 -5
- package/src/mixins/button-group/index.ts +3 -5
- package/src/mixins/colorable/index.ts +6 -49
- package/src/mixins/comparable/index.ts +2 -2
- package/src/mixins/delayable/index.ts +2 -2
- package/src/mixins/dependent/index.ts +3 -11
- package/src/mixins/detachable/__tests__/detachable.spec.ts +3 -3
- package/src/mixins/detachable/index.ts +2 -2
- package/src/mixins/elevatable/index.ts +2 -2
- package/src/mixins/filterable/index.ts +2 -2
- package/src/mixins/groupable/index.ts +9 -13
- package/src/mixins/intersectable/index.ts +5 -8
- package/src/mixins/loadable/index.ts +12 -10
- package/src/mixins/localable/index.ts +2 -2
- package/src/mixins/measurable/index.ts +2 -2
- package/src/mixins/menuable/index.ts +5 -8
- package/src/mixins/mobile/index.ts +12 -10
- package/src/mixins/mouse/index.ts +4 -9
- package/src/mixins/overlayable/index.ts +16 -44
- package/src/mixins/picker/index.ts +19 -17
- package/src/mixins/picker-button/index.ts +7 -6
- package/src/mixins/positionable/index.ts +2 -2
- package/src/mixins/proxyable/index.ts +5 -5
- package/src/mixins/registrable/index.ts +3 -3
- package/src/mixins/returnable/index.ts +2 -2
- package/src/mixins/rippleable/index.ts +9 -16
- package/src/mixins/roundable/index.ts +2 -2
- package/src/mixins/routable/__tests__/routable.spec.ts +3 -6
- package/src/mixins/routable/index.ts +23 -24
- package/src/mixins/scrollable/index.ts +2 -2
- package/src/mixins/selectable/index.ts +23 -18
- package/src/mixins/sizeable/index.ts +2 -2
- package/src/mixins/ssr-bootable/index.ts +2 -2
- package/src/mixins/stackable/index.ts +2 -2
- package/src/mixins/themeable/index.ts +10 -6
- package/src/mixins/toggleable/index.ts +6 -3
- package/src/mixins/transitionable/index.ts +2 -2
- package/src/mixins/translatable/index.ts +2 -2
- package/src/mixins/validatable/index.ts +1 -1
- package/src/services/goto/util.ts +0 -1
- package/src/services/theme/index.ts +7 -12
- package/src/util/helpers.ts +12 -30
- package/src/util/mergeData.ts +1 -1
- package/src/util/mixins.ts +20 -10
- package/src/vuetify.ts +19 -0
- package/es5/util/make-directive-activatable.js +0 -74
- package/es5/util/make-directive-activatable.js.map +0 -1
- package/lib/util/make-directive-activatable.js +0 -49
- package/lib/util/make-directive-activatable.js.map +0 -1
- package/src/util/make-directive-activatable.ts +0 -55
|
@@ -8,10 +8,8 @@ import { VChip } from '../VChip'; // Utilities
|
|
|
8
8
|
import { deepEqual, humanReadableFileSize, wrapInArray } from '../../util/helpers';
|
|
9
9
|
import { consoleError } from '../../util/console';
|
|
10
10
|
import { mergeStyles } from '../../util/mergeData';
|
|
11
|
-
|
|
12
|
-
export default defineComponent({
|
|
11
|
+
export default VTextField.extend({
|
|
13
12
|
name: 'v-file-input',
|
|
14
|
-
extends: VTextField,
|
|
15
13
|
model: {
|
|
16
14
|
prop: 'value',
|
|
17
15
|
event: 'change'
|
|
@@ -66,7 +64,7 @@ export default defineComponent({
|
|
|
66
64
|
},
|
|
67
65
|
computed: {
|
|
68
66
|
classes() {
|
|
69
|
-
return { ...VTextField.computed.classes.call(this),
|
|
67
|
+
return { ...VTextField.options.computed.classes.call(this),
|
|
70
68
|
'v-file-input': true
|
|
71
69
|
};
|
|
72
70
|
},
|
|
@@ -158,21 +156,25 @@ export default defineComponent({
|
|
|
158
156
|
|
|
159
157
|
genChips() {
|
|
160
158
|
if (!this.isDirty) return [];
|
|
161
|
-
return this.text.map((text, index) =>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
return this.text.map((text, index) => this.$createElement(VChip, {
|
|
160
|
+
props: {
|
|
161
|
+
small: this.smallChips
|
|
162
|
+
},
|
|
163
|
+
on: {
|
|
164
|
+
'click:close': () => {
|
|
165
|
+
const internalValue = this.internalValue;
|
|
166
|
+
internalValue.splice(index, 1);
|
|
167
|
+
this.internalValue = internalValue; // Trigger the watcher
|
|
168
|
+
}
|
|
167
169
|
}
|
|
168
170
|
}, [text]));
|
|
169
171
|
},
|
|
170
172
|
|
|
171
173
|
genControl() {
|
|
172
|
-
const render = VTextField.methods.genControl.call(this);
|
|
174
|
+
const render = VTextField.options.methods.genControl.call(this);
|
|
173
175
|
|
|
174
176
|
if (this.hideInput) {
|
|
175
|
-
render.style = mergeStyles(render.style, {
|
|
177
|
+
render.data.style = mergeStyles(render.data.style, {
|
|
176
178
|
display: 'none'
|
|
177
179
|
});
|
|
178
180
|
}
|
|
@@ -181,18 +183,18 @@ export default defineComponent({
|
|
|
181
183
|
},
|
|
182
184
|
|
|
183
185
|
genInput() {
|
|
184
|
-
const input = VTextField.methods.genInput.call(this);
|
|
185
|
-
input.multiple = this.multiple; // We should not be setting value
|
|
186
|
+
const input = VTextField.options.methods.genInput.call(this);
|
|
187
|
+
input.data.attrs.multiple = this.multiple; // We should not be setting value
|
|
186
188
|
// programmatically on the input
|
|
187
189
|
// when it is using type="file"
|
|
188
190
|
|
|
189
|
-
delete input.value; // This solves an issue in Safari where
|
|
191
|
+
delete input.data.domProps.value; // This solves an issue in Safari where
|
|
190
192
|
// nothing happens when adding a file
|
|
191
193
|
// due to the input event not firing
|
|
192
194
|
// https://github.com/vuetifyjs/vuetify/issues/7941
|
|
193
195
|
|
|
194
|
-
delete input.
|
|
195
|
-
input.
|
|
196
|
+
delete input.data.on.input;
|
|
197
|
+
input.data.on.change = this.onInput;
|
|
196
198
|
return [this.genSelections(), input];
|
|
197
199
|
},
|
|
198
200
|
|
|
@@ -214,10 +216,10 @@ export default defineComponent({
|
|
|
214
216
|
genSelections() {
|
|
215
217
|
const children = [];
|
|
216
218
|
|
|
217
|
-
if (this.isDirty && this.$
|
|
219
|
+
if (this.isDirty && this.$scopedSlots.selection) {
|
|
218
220
|
this.internalArrayValue.forEach((file, index) => {
|
|
219
|
-
if (!this.$
|
|
220
|
-
children.push(this.$
|
|
221
|
+
if (!this.$scopedSlots.selection) return;
|
|
222
|
+
children.push(this.$scopedSlots.selection({
|
|
221
223
|
text: this.text[index],
|
|
222
224
|
file,
|
|
223
225
|
index
|
|
@@ -227,23 +229,24 @@ export default defineComponent({
|
|
|
227
229
|
children.push(this.hasChips && this.isDirty ? this.genChips() : this.genSelectionText());
|
|
228
230
|
}
|
|
229
231
|
|
|
230
|
-
return
|
|
231
|
-
|
|
232
|
+
return this.$createElement('div', {
|
|
233
|
+
staticClass: 'v-file-input__text',
|
|
234
|
+
class: {
|
|
232
235
|
'v-file-input__text--placeholder': this.placeholder && !this.isDirty,
|
|
233
|
-
'v-file-input__text--chips': this.hasChips && !this.$
|
|
234
|
-
}
|
|
236
|
+
'v-file-input__text--chips': this.hasChips && !this.$scopedSlots.selection
|
|
237
|
+
}
|
|
235
238
|
}, children);
|
|
236
239
|
},
|
|
237
240
|
|
|
238
241
|
genTextFieldSlot() {
|
|
239
|
-
const node = VTextField.methods.genTextFieldSlot.call(this);
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
const node = VTextField.options.methods.genTextFieldSlot.call(this);
|
|
243
|
+
node.data.on = { ...(node.data.on || {}),
|
|
244
|
+
click: e => {
|
|
245
|
+
// Clicking the label already delegates to input element, so we shouldn't click it twice
|
|
246
|
+
if (e.target && e.target.nodeName === 'LABEL') return;
|
|
247
|
+
this.$refs.input.click();
|
|
248
|
+
}
|
|
245
249
|
};
|
|
246
|
-
|
|
247
250
|
return node;
|
|
248
251
|
},
|
|
249
252
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VFileInput/VFileInput.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,oDAAP,C,CAEA;;AACA,OAAO,UAAP,MAAuB,eAAvB,C,CAEA;;AACA,SAAS,KAAT,QAAsB,UAAtB,C,CAKA;;AACA,SAAS,SAAT,EAAoB,qBAApB,EAA2C,WAA3C,QAA8D,oBAA9D;AACA,SAAS,YAAT,QAA6B,oBAA7B;AACA,SAAS,WAAT,QAA4B,sBAA5B;AACA,SAAS,eAAT,EAA0B,CAA1B,QAAmC,KAAnC;AAEA,eAAe,eAAe,CAAC;AAC7B,EAAA,IAAI,EAAE,cADuB;AA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ACA;;AACA,WAAK,YAAL,GAAoB,KAAK,aAAzB;AACD,KA/GM;;AAgHP,IAAA,SAAS,CAAE,CAAF,EAAkB;AACzB,WAAK,KAAL,CAAW,SAAX,EAAsB,CAAtB;AACD,KAlHM;;AAmHP,IAAA,YAAY,CAAE,GAAF,EAAa;AACvB,UAAI,GAAG,CAAC,MAAJ,GAAa,MAAM,CAAC,KAAK,cAAN,CAAvB,EAA8C,OAAO,GAAP;AAC9C,YAAM,gBAAgB,GAAG,IAAI,CAAC,KAAL,CAAW,CAAC,MAAM,CAAC,KAAK,cAAN,CAAN,GAA8B,CAA/B,IAAoC,CAA/C,CAAzB;AACA,aAAO,GAAG,GAAG,CAAC,KAAJ,CAAU,CAAV,EAAa,gBAAb,CAA8B,IAAI,GAAG,CAAC,KAAJ,CAAU,GAAG,CAAC,MAAJ,GAAa,gBAAvB,CAAwC,EAApF;AACD;;AAvHM;AAnJoB,CAAD,CAA9B","sourcesContent":["// Styles\nimport './VFileInput.sass'\n\n// Extensions\nimport VTextField from '../VTextField'\n\n// Components\nimport { VChip } from '../VChip'\n\n// Types\nimport { PropValidator } from 'vue/types/options'\n\n// Utilities\nimport { deepEqual, humanReadableFileSize, wrapInArray } from '../../util/helpers'\nimport { consoleError } from '../../util/console'\nimport { mergeStyles } from '../../util/mergeData'\nimport { defineComponent, h } from 'vue'\n\nexport default defineComponent({\n name: 'v-file-input',\n extends: VTextField,\n\n model: {\n prop: 'value',\n event: 'change',\n },\n\n props: {\n chips: Boolean,\n clearable: {\n type: Boolean,\n default: true,\n },\n counterSizeString: {\n type: String,\n default: '$vuetify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$vuetify.fileInput.counter',\n },\n hideInput: Boolean,\n multiple: Boolean,\n placeholder: String,\n prependIcon: {\n type: String,\n default: '$file',\n },\n readonly: {\n type: Boolean,\n default: false,\n },\n showSize: {\n type: [Boolean, Number],\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(v)\n )\n },\n } as PropValidator<boolean | 1000 | 1024>,\n smallChips: Boolean,\n truncateLength: {\n type: [Number, String],\n default: 22,\n },\n type: {\n type: String,\n default: 'file',\n },\n value: {\n default: undefined,\n validator: val => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n } as PropValidator<File | File[]>,\n },\n\n computed: {\n classes (): object {\n return {\n ...VTextField.computed.classes.call(this),\n 'v-file-input': true,\n }\n },\n computedCounterValue (): string {\n const fileCount = (this.multiple && this.lazyValue)\n ? this.lazyValue.length\n : (this.lazyValue instanceof File) ? 1 : 0\n\n if (!this.showSize) return this.$vuetify.lang.t(this.counterString, fileCount)\n\n const bytes = this.internalArrayValue.reduce((bytes: number, { size = 0 }: File) => {\n return bytes + size\n }, 0)\n\n return this.$vuetify.lang.t(\n this.counterSizeString,\n fileCount,\n humanReadableFileSize(bytes, this.base === 1024)\n )\n },\n internalArrayValue (): File[] {\n return wrapInArray(this.internalValue)\n },\n internalValue: {\n get (): File[] {\n return this.lazyValue\n },\n set (val: File | File[]) {\n this.lazyValue = val\n this.$emit('change', this.lazyValue)\n },\n },\n isDirty (): boolean {\n return this.internalArrayValue.length > 0\n },\n isLabelActive (): boolean {\n return this.isDirty\n },\n text (): string[] {\n if (!this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel)) return [this.placeholder]\n\n return this.internalArrayValue.map((file: File) => {\n const {\n name = '',\n size = 0,\n } = file\n\n const truncatedText = this.truncateText(name)\n\n return !this.showSize\n ? truncatedText\n : `${truncatedText} (${humanReadableFileSize(size, this.base === 1024)})`\n })\n },\n base (): 1000 | 1024 | undefined {\n return typeof this.showSize !== 'boolean' ? this.showSize : undefined\n },\n hasChips (): boolean {\n return this.chips || this.smallChips\n },\n },\n\n watch: {\n readonly: {\n handler (v) {\n if (v === true) consoleError('readonly is not supported on <v-file-input>', this)\n },\n immediate: true,\n },\n value (v) {\n const value = this.multiple ? v : v ? [v] : []\n if (!deepEqual(value, this.$refs.input.files)) {\n // When the input value is changed programatically, clear the\n // internal input's value so that the `onInput` handler\n // can be triggered again if the user re-selects the exact\n // same file(s). Ideally, `input.files` should be\n // manipulated directly but that property is readonly.\n this.$refs.input.value = ''\n }\n },\n },\n\n methods: {\n clearableCallback () {\n this.internalValue = this.multiple ? [] : null\n this.$refs.input.value = ''\n },\n genChips () {\n if (!this.isDirty) return []\n\n return this.text.map((text, index) => h(VChip, {\n small: this.smallChips,\n 'onClick:close': () => {\n const internalValue = this.internalValue\n internalValue.splice(index, 1)\n this.internalValue = internalValue // Trigger the watcher\n }\n }, [text]))\n },\n genControl () {\n const render = VTextField.methods.genControl.call(this)\n\n if (this.hideInput) {\n render.style = mergeStyles(\n render.style,\n { display: 'none' }\n )\n }\n\n return render\n },\n genInput () {\n const input = VTextField.methods.genInput.call(this)\n\n input.multiple = this.multiple\n\n // We should not be setting value\n // programmatically on the input\n // when it is using type=\"file\"\n delete input.value\n\n // This solves an issue in Safari where\n // nothing happens when adding a file\n // due to the input event not firing\n // https://github.com/vuetifyjs/vuetify/issues/7941\n delete input.onInput\n input.onChange = this.onInput\n\n return [this.genSelections(), input]\n },\n genPrependSlot () {\n if (!this.prependIcon) return null\n\n const icon = this.genIcon('prepend', () => {\n this.$refs.input.click()\n })\n\n return this.genSlot('prepend', 'outer', [icon])\n },\n genSelectionText (): string[] {\n const length = this.text.length\n\n if (length < 2) return this.text\n if (this.showSize && !this.counter) return [this.computedCounterValue]\n return [this.$vuetify.lang.t(this.counterString, length)]\n },\n genSelections () {\n const children = []\n\n if (this.isDirty && this.$slots.selection) {\n this.internalArrayValue.forEach((file: File, index: number) => {\n if (!this.$slots.selection) return\n\n children.push(\n this.$slots.selection({\n text: this.text[index],\n file,\n index,\n })\n )\n })\n } else {\n children.push(this.hasChips && this.isDirty ? this.genChips() : this.genSelectionText())\n }\n\n return h('div', {\n class: ['v-file-input__text', {\n 'v-file-input__text--placeholder': this.placeholder && !this.isDirty,\n 'v-file-input__text--chips': this.hasChips && !this.$slots.selection,\n }]\n }, children)\n },\n genTextFieldSlot () {\n const node = VTextField.methods.genTextFieldSlot.call(this)\n\n node.onClick = (e: MouseEvent) => {\n // Clicking the label already delegates to input element, so we shouldn't click it twice\n if (e.target && (e.target as HTMLElement).nodeName === 'LABEL') return\n\n this.$refs.input.click()\n }\n\n return node\n },\n onInput (e: Event) {\n const files = [...(e.target as HTMLInputElement).files || []]\n\n this.internalValue = this.multiple ? files : files[0]\n\n // Set initialValue here otherwise isFocused\n // watcher in VTextField will emit a change\n // event whenever the component is blurred\n this.initialValue = this.internalValue\n },\n onKeyDown (e: KeyboardEvent) {\n this.$emit('keydown', e)\n },\n truncateText (str: string) {\n if (str.length < Number(this.truncateLength)) return str\n const charsKeepOneSide = Math.floor((Number(this.truncateLength) - 1) / 2)\n return `${str.slice(0, charsKeepOneSide)}…${str.slice(str.length - charsKeepOneSide)}`\n },\n },\n})\n"],"sourceRoot":"","file":"VFileInput.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/VFileInput/VFileInput.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,oDAAP,C,CAEA;;AACA,OAAO,UAAP,MAAuB,eAAvB,C,CAEA;;AACA,SAAS,KAAT,QAAsB,UAAtB,C,CAKA;;AACA,SAAS,SAAT,EAAoB,qBAApB,EAA2C,WAA3C,QAA8D,oBAA9D;AACA,SAAS,YAAT,QAA6B,oBAA7B;AACA,SAAS,WAAT,QAA4B,sBAA5B;AAEA,eAAe,UAAU,CAAC,MAAX,CAAkB;AAC/B,EAAA,IAAI,EAAE,cADyB;AAG/B,EAAA,KAAK,EAAE;AACL,IAAA,IAAI,EAAE,OADD;AAEL,IAAA,KAAK,EAAE;AAFF,GAHwB;AAQ/B,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE,OADF;AAEL,IAAA,SAAS,EAAE;AACT,MAAA,IAAI,EAAE,OADG;AAET,MAAA,OAAO,EAAE;AAFA,KAFN;AAML,IAAA,iBAAiB,EAAE;AACjB,MAAA,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L,GAAqB,KAAK,QAAL,GAAgB,KAAhB,GAAwB,KAAK,CAAC,CAAD,CAAlD,CAHe,CAKf;AACA;AACA;;AACA,WAAK,YAAL,GAAoB,KAAK,aAAzB;AACD,KArHM;;AAsHP,IAAA,SAAS,CAAE,CAAF,EAAkB;AACzB,WAAK,KAAL,CAAW,SAAX,EAAsB,CAAtB;AACD,KAxHM;;AAyHP,IAAA,YAAY,CAAE,GAAF,EAAa;AACvB,UAAI,GAAG,CAAC,MAAJ,GAAa,MAAM,CAAC,KAAK,cAAN,CAAvB,EAA8C,OAAO,GAAP;AAC9C,YAAM,gBAAgB,GAAG,IAAI,CAAC,KAAL,CAAW,CAAC,MAAM,CAAC,KAAK,cAAN,CAAN,GAA8B,CAA/B,IAAoC,CAA/C,CAAzB;AACA,aAAO,GAAG,GAAG,CAAC,KAAJ,CAAU,CAAV,EAAa,gBAAb,CAA8B,IAAI,GAAG,CAAC,KAAJ,CAAU,GAAG,CAAC,MAAJ,GAAa,gBAAvB,CAAwC,EAApF;AACD;;AA7HM;AAlJsB,CAAlB,CAAf","sourcesContent":["// Styles\nimport './VFileInput.sass'\n\n// Extensions\nimport VTextField from '../VTextField'\n\n// Components\nimport { VChip } from '../VChip'\n\n// Types\nimport { PropValidator } from 'vue/types/options'\n\n// Utilities\nimport { deepEqual, humanReadableFileSize, wrapInArray } from '../../util/helpers'\nimport { consoleError } from '../../util/console'\nimport { mergeStyles } from '../../util/mergeData'\n\nexport default VTextField.extend({\n name: 'v-file-input',\n\n model: {\n prop: 'value',\n event: 'change',\n },\n\n props: {\n chips: Boolean,\n clearable: {\n type: Boolean,\n default: true,\n },\n counterSizeString: {\n type: String,\n default: '$vuetify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$vuetify.fileInput.counter',\n },\n hideInput: Boolean,\n multiple: Boolean,\n placeholder: String,\n prependIcon: {\n type: String,\n default: '$file',\n },\n readonly: {\n type: Boolean,\n default: false,\n },\n showSize: {\n type: [Boolean, Number],\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(v)\n )\n },\n } as PropValidator<boolean | 1000 | 1024>,\n smallChips: Boolean,\n truncateLength: {\n type: [Number, String],\n default: 22,\n },\n type: {\n type: String,\n default: 'file',\n },\n value: {\n default: undefined,\n validator: val => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n } as PropValidator<File | File[]>,\n },\n\n computed: {\n classes (): object {\n return {\n ...VTextField.options.computed.classes.call(this),\n 'v-file-input': true,\n }\n },\n computedCounterValue (): string {\n const fileCount = (this.multiple && this.lazyValue)\n ? this.lazyValue.length\n : (this.lazyValue instanceof File) ? 1 : 0\n\n if (!this.showSize) return this.$vuetify.lang.t(this.counterString, fileCount)\n\n const bytes = this.internalArrayValue.reduce((bytes: number, { size = 0 }: File) => {\n return bytes + size\n }, 0)\n\n return this.$vuetify.lang.t(\n this.counterSizeString,\n fileCount,\n humanReadableFileSize(bytes, this.base === 1024)\n )\n },\n internalArrayValue (): File[] {\n return wrapInArray(this.internalValue)\n },\n internalValue: {\n get (): File[] {\n return this.lazyValue\n },\n set (val: File | File[]) {\n this.lazyValue = val\n this.$emit('change', this.lazyValue)\n },\n },\n isDirty (): boolean {\n return this.internalArrayValue.length > 0\n },\n isLabelActive (): boolean {\n return this.isDirty\n },\n text (): string[] {\n if (!this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel)) return [this.placeholder]\n\n return this.internalArrayValue.map((file: File) => {\n const {\n name = '',\n size = 0,\n } = file\n\n const truncatedText = this.truncateText(name)\n\n return !this.showSize\n ? truncatedText\n : `${truncatedText} (${humanReadableFileSize(size, this.base === 1024)})`\n })\n },\n base (): 1000 | 1024 | undefined {\n return typeof this.showSize !== 'boolean' ? this.showSize : undefined\n },\n hasChips (): boolean {\n return this.chips || this.smallChips\n },\n },\n\n watch: {\n readonly: {\n handler (v) {\n if (v === true) consoleError('readonly is not supported on <v-file-input>', this)\n },\n immediate: true,\n },\n value (v) {\n const value = this.multiple ? v : v ? [v] : []\n if (!deepEqual(value, this.$refs.input.files)) {\n // When the input value is changed programatically, clear the\n // internal input's value so that the `onInput` handler\n // can be triggered again if the user re-selects the exact\n // same file(s). Ideally, `input.files` should be\n // manipulated directly but that property is readonly.\n this.$refs.input.value = ''\n }\n },\n },\n\n methods: {\n clearableCallback () {\n this.internalValue = this.multiple ? [] : null\n this.$refs.input.value = ''\n },\n genChips () {\n if (!this.isDirty) return []\n\n return this.text.map((text, index) => this.$createElement(VChip, {\n props: { small: this.smallChips },\n on: {\n 'click:close': () => {\n const internalValue = this.internalValue\n internalValue.splice(index, 1)\n this.internalValue = internalValue // Trigger the watcher\n },\n },\n }, [text]))\n },\n genControl () {\n const render = VTextField.options.methods.genControl.call(this)\n\n if (this.hideInput) {\n render.data!.style = mergeStyles(\n render.data!.style,\n { display: 'none' }\n )\n }\n\n return render\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.data!.attrs!.multiple = this.multiple\n\n // We should not be setting value\n // programmatically on the input\n // when it is using type=\"file\"\n delete input.data!.domProps!.value\n\n // This solves an issue in Safari where\n // nothing happens when adding a file\n // due to the input event not firing\n // https://github.com/vuetifyjs/vuetify/issues/7941\n delete input.data!.on!.input\n input.data!.on!.change = this.onInput\n\n return [this.genSelections(), input]\n },\n genPrependSlot () {\n if (!this.prependIcon) return null\n\n const icon = this.genIcon('prepend', () => {\n this.$refs.input.click()\n })\n\n return this.genSlot('prepend', 'outer', [icon])\n },\n genSelectionText (): string[] {\n const length = this.text.length\n\n if (length < 2) return this.text\n if (this.showSize && !this.counter) return [this.computedCounterValue]\n return [this.$vuetify.lang.t(this.counterString, length)]\n },\n genSelections () {\n const children = []\n\n if (this.isDirty && this.$scopedSlots.selection) {\n this.internalArrayValue.forEach((file: File, index: number) => {\n if (!this.$scopedSlots.selection) return\n\n children.push(\n this.$scopedSlots.selection({\n text: this.text[index],\n file,\n index,\n })\n )\n })\n } else {\n children.push(this.hasChips && this.isDirty ? this.genChips() : this.genSelectionText())\n }\n\n return this.$createElement('div', {\n staticClass: 'v-file-input__text',\n class: {\n 'v-file-input__text--placeholder': this.placeholder && !this.isDirty,\n 'v-file-input__text--chips': this.hasChips && !this.$scopedSlots.selection,\n },\n }, children)\n },\n genTextFieldSlot () {\n const node = VTextField.options.methods.genTextFieldSlot.call(this)\n\n node.data!.on = {\n ...(node.data!.on || {}),\n click: (e: MouseEvent) => {\n // Clicking the label already delegates to input element, so we shouldn't click it twice\n if (e.target && (e.target as HTMLElement).nodeName === 'LABEL') return\n\n this.$refs.input.click()\n },\n }\n\n return node\n },\n onInput (e: Event) {\n const files = [...(e.target as HTMLInputElement).files || []]\n\n this.internalValue = this.multiple ? files : files[0]\n\n // Set initialValue here otherwise isFocused\n // watcher in VTextField will emit a change\n // event whenever the component is blurred\n this.initialValue = this.internalValue\n },\n onKeyDown (e: KeyboardEvent) {\n this.$emit('keydown', e)\n },\n truncateText (str: string) {\n if (str.length < Number(this.truncateLength)) return str\n const charsKeepOneSide = Math.floor((Number(this.truncateLength) - 1) / 2)\n return `${str.slice(0, charsKeepOneSide)}…${str.slice(str.length - charsKeepOneSide)}`\n },\n },\n})\n"],"sourceRoot":"","file":"VFileInput.js"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// Styles
|
|
3
2
|
import "../../../src/components/VFooter/VFooter.sass"; // Components
|
|
4
3
|
|
|
5
4
|
import VSheet from '../VSheet/VSheet'; // Mixins
|
|
@@ -31,7 +30,7 @@ export default mixins(VSheet, Applicationable('footer', ['height', 'inset']), SS
|
|
|
31
30
|
},
|
|
32
31
|
|
|
33
32
|
classes() {
|
|
34
|
-
return { ...VSheet.computed.classes.call(this),
|
|
33
|
+
return { ...VSheet.options.computed.classes.call(this),
|
|
35
34
|
'v-footer--absolute': this.absolute,
|
|
36
35
|
'v-footer--fixed': !this.absolute && (this.app || this.fixed),
|
|
37
36
|
'v-footer--padless': this.padless,
|
|
@@ -60,7 +59,7 @@ export default mixins(VSheet, Applicationable('footer', ['height', 'inset']), SS
|
|
|
60
59
|
|
|
61
60
|
styles() {
|
|
62
61
|
const height = parseInt(this.height);
|
|
63
|
-
return { ...VSheet.computed.styles.call(this),
|
|
62
|
+
return { ...VSheet.options.computed.styles.call(this),
|
|
64
63
|
height: isNaN(height) ? height : convertToUnit(height),
|
|
65
64
|
left: convertToUnit(this.computedLeft),
|
|
66
65
|
right: convertToUnit(this.computedRight),
|
|
@@ -77,9 +76,9 @@ export default mixins(VSheet, Applicationable('footer', ['height', 'inset']), SS
|
|
|
77
76
|
|
|
78
77
|
},
|
|
79
78
|
|
|
80
|
-
render() {
|
|
79
|
+
render(h) {
|
|
81
80
|
const data = this.setBackgroundColor(this.color, {
|
|
82
|
-
|
|
81
|
+
staticClass: 'v-footer',
|
|
83
82
|
class: this.classes,
|
|
84
83
|
style: this.styles
|
|
85
84
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VFooter/VFooter.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"sources":["../../../src/components/VFooter/VFooter.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,8CAAP,C,CAEA;;AACA,OAAO,MAAP,MAAmB,kBAAnB,C,CAEA;;AACA,OAAO,eAAP,MAA4B,8BAA5B;AACA,OAAO,WAAP,MAAwB,2BAAxB,C,CAEA;;AACA,OAAO,MAAP,MAAmB,mBAAnB;AACA,SAAS,aAAT,EAAwB,OAAxB,QAAuC,oBAAvC;AAKA;;AACA,eAAe,MAAM,CACnB,MADmB,EAEnB,eAAe,CAAC,QAAD,EAAW,CACxB,QADwB,EAExB,OAFwB,CAAX,CAFI,EAMnB,WANmB,CAAN,CAOb,MAPa,CAON;AACP,EAAA,IAAI,EAAE,UADC;AAGP,EAAA,KAAK,EAAE;AACL,IAAA,MAAM,EAAE;AACN,MAAA,OAAO,EAAE,MADH;AAEN,MAAA,IAAI,EAAE,CAAC,MA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AKD,KAxCO;;AAyCR,IAAA,MAAM,GAAA;AACJ,YAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,MAAN,CAAvB;AAEA,aAAO,EACL,GAAG,MAAM,CAAC,OAAP,CAAe,QAAf,CAAwB,MAAxB,CAA+B,IAA/B,CAAoC,IAApC,CADE;AAEL,QAAA,MAAM,EAAE,KAAK,CAAC,MAAD,CAAL,GAAgB,MAAhB,GAAyB,aAAa,CAAC,MAAD,CAFzC;AAGL,QAAA,IAAI,EAAE,aAAa,CAAC,KAAK,YAAN,CAHd;AAIL,QAAA,KAAK,EAAE,aAAa,CAAC,KAAK,aAAN,CAJf;AAKL,QAAA,MAAM,EAAE,aAAa,CAAC,KAAK,cAAN;AALhB,OAAP;AAOD;;AAnDO,GAhBH;AAsEP,EAAA,OAAO,EAAE;AACP,IAAA,iBAAiB,GAAA;AACf,YAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,MAAN,CAAvB;AAEA,aAAO,KAAK,CAAC,MAAD,CAAL,GACH,KAAK,GAAL,GAAW,KAAK,GAAL,CAAS,YAApB,GAAmC,CADhC,GAEH,MAFJ;AAGD;;AAPM,GAtEF;;AAgFP,EAAA,MAAM,CAAE,CAAF,EAAG;AACP,UAAM,IAAI,GAAG,KAAK,kBAAL,CAAwB,KAAK,KAA7B,EAAoC;AAC/C,MAAA,WAAW,EAAE,UADkC;AAE/C,MAAA,KAAK,EAAE,KAAK,OAFmC;AAG/C,MAAA,KAAK,EAAE,KAAK;AAHmC,KAApC,CAAb;AAMA,WAAO,CAAC,CAAC,KAAK,GAAN,EAAW,IAAX,EAAiB,OAAO,CAAC,IAAD,CAAxB,CAAR;AACD;;AAxFM,CAPM,CAAf","sourcesContent":["// Styles\nimport './VFooter.sass'\n\n// Components\nimport VSheet from '../VSheet/VSheet'\n\n// Mixins\nimport Applicationable from '../../mixins/applicationable'\nimport SSRBootable from '../../mixins/ssr-bootable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { convertToUnit, getSlot } from '../../util/helpers'\n\n// Types\nimport { VNode } from 'vue/types/vnode'\n\n/* @vue/component */\nexport default mixins(\n VSheet,\n Applicationable('footer', [\n 'height',\n 'inset',\n ]),\n SSRBootable\n).extend({\n name: 'v-footer',\n\n props: {\n height: {\n default: 'auto',\n type: [Number, String],\n },\n inset: Boolean,\n padless: Boolean,\n tag: {\n type: String,\n default: 'footer',\n },\n },\n\n computed: {\n applicationProperty (): string {\n return this.inset ? 'insetFooter' : 'footer'\n },\n classes (): object {\n return {\n ...VSheet.options.computed.classes.call(this),\n 'v-footer--absolute': this.absolute,\n 'v-footer--fixed': !this.absolute && (this.app || this.fixed),\n 'v-footer--padless': this.padless,\n 'v-footer--inset': this.inset,\n }\n },\n computedBottom (): number | undefined {\n if (!this.isPositioned) return undefined\n\n return this.app\n ? this.$vuetify.application.bottom\n : 0\n },\n computedLeft (): number | undefined {\n if (!this.isPositioned) return undefined\n\n return this.app && this.inset\n ? this.$vuetify.application.left\n : 0\n },\n computedRight (): number | undefined {\n if (!this.isPositioned) return undefined\n\n return this.app && this.inset\n ? this.$vuetify.application.right\n : 0\n },\n isPositioned (): boolean {\n return Boolean(\n this.absolute ||\n this.fixed ||\n this.app\n )\n },\n styles (): object {\n const height = parseInt(this.height)\n\n return {\n ...VSheet.options.computed.styles.call(this),\n height: isNaN(height) ? height : convertToUnit(height),\n left: convertToUnit(this.computedLeft),\n right: convertToUnit(this.computedRight),\n bottom: convertToUnit(this.computedBottom),\n }\n },\n },\n\n methods: {\n updateApplication () {\n const height = parseInt(this.height)\n\n return isNaN(height)\n ? this.$el ? this.$el.clientHeight : 0\n : height\n },\n },\n\n render (h): VNode {\n const data = this.setBackgroundColor(this.color, {\n staticClass: 'v-footer',\n class: this.classes,\n style: this.styles,\n })\n\n return h(this.tag, data, getSlot(this))\n },\n})\n"],"sourceRoot":"","file":"VFooter.js"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// Mixins
|
|
3
2
|
import mixins from '../../util/mixins';
|
|
4
3
|
import BindsAttrs from '../../mixins/binds-attrs';
|
|
5
4
|
import { provide as RegistrableProvide } from '../../mixins/registrable';
|
|
@@ -44,7 +43,7 @@ export default mixins(BindsAttrs, RegistrableProvide('form')
|
|
|
44
43
|
watchInput(input) {
|
|
45
44
|
const watcher = input => {
|
|
46
45
|
return input.$watch('hasError', val => {
|
|
47
|
-
this.errorBag
|
|
46
|
+
this.$set(this.errorBag, input._uid, val);
|
|
48
47
|
}, {
|
|
49
48
|
immediate: true
|
|
50
49
|
});
|
|
@@ -119,12 +118,16 @@ export default mixins(BindsAttrs, RegistrableProvide('form')
|
|
|
119
118
|
|
|
120
119
|
},
|
|
121
120
|
|
|
122
|
-
render() {
|
|
121
|
+
render(h) {
|
|
123
122
|
return h('form', {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
staticClass: 'v-form',
|
|
124
|
+
attrs: {
|
|
125
|
+
novalidate: true,
|
|
126
|
+
...this.attrs$
|
|
127
|
+
},
|
|
128
|
+
on: {
|
|
129
|
+
submit: e => this.$emit('submit', e)
|
|
130
|
+
}
|
|
128
131
|
}, getSlot(this));
|
|
129
132
|
}
|
|
130
133
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VForm/VForm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/VForm/VForm.ts"],"names":[],"mappings":"AAGA;AACA,OAAO,MAAP,MAAmB,mBAAnB;AACA,OAAO,UAAP,MAAuB,0BAAvB;AACA,SAAS,OAAO,IAAI,kBAApB,QAA8C,0BAA9C;AAIA,SAAS,OAAT,QAAwB,oBAAxB;AAUA;;AACA,eAAe,MAAM,CACnB,UADmB,EAEnB,kBAAkB,CAAC,MAAD;AAClB;AAHmB,CAAN,CAIb,MAJa,CAIN;AACP,EAAA,IAAI,EAAE,QADC;;AAGP,EAAA,OAAO,GAAA;AACL,WAAO;AAA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AAI,CAAC,CAAC,IAAF,KAAW,KAAK,CAAC,IAAvC,CAAd;AAEA,UAAI,CAAC,KAAL,EAAY;AAEZ,YAAM,OAAO,GAAG,KAAK,QAAL,CAAc,IAAd,CAAmB,CAAC,IAAI,CAAC,CAAC,IAAF,KAAW,KAAK,CAAC,IAAzC,CAAhB;;AACA,UAAI,OAAJ,EAAa;AACX,QAAA,OAAO,CAAC,KAAR;AACA,QAAA,OAAO,CAAC,cAAR;AACD;;AAED,WAAK,QAAL,GAAgB,KAAK,QAAL,CAAc,MAAd,CAAqB,CAAC,IAAI,CAAC,CAAC,IAAF,KAAW,KAAK,CAAC,IAA3C,CAAhB;AACA,WAAK,MAAL,GAAc,KAAK,MAAL,CAAY,MAAZ,CAAmB,CAAC,IAAI,CAAC,CAAC,IAAF,KAAW,KAAK,CAAC,IAAzC,CAAd;AACA,WAAK,OAAL,CAAa,KAAK,QAAlB,EAA4B,KAAK,CAAC,IAAlC;AACD;;AAtEM,GAlCF;;AA2GP,EAAA,MAAM,CAAE,CAAF,EAAG;AACP,WAAO,CAAC,CAAC,MAAD,EAAS;AACf,MAAA,WAAW,EAAE,QADE;AAEf,MAAA,KAAK,EAAE;AACL,QAAA,UAAU,EAAE,IADP;AAEL,WAAG,KAAK;AAFH,OAFQ;AAMf,MAAA,EAAE,EAAE;AACF,QAAA,MAAM,EAAG,CAAD,IAAc,KAAK,KAAL,CAAW,QAAX,EAAqB,CAArB;AADpB;AANW,KAAT,EASL,OAAO,CAAC,IAAD,CATF,CAAR;AAUD;;AAtHM,CAJM,CAAf","sourcesContent":["// Components\nimport VInput from '../VInput/VInput'\n\n// Mixins\nimport mixins from '../../util/mixins'\nimport BindsAttrs from '../../mixins/binds-attrs'\nimport { provide as RegistrableProvide } from '../../mixins/registrable'\n\n// Helpers\nimport { VNode } from 'vue'\nimport { getSlot } from '../../util/helpers'\n\ntype ErrorBag = Record<number, boolean>\ntype VInputInstance = InstanceType<typeof VInput>\ntype Watchers = {\n _uid: number\n valid: () => void\n shouldValidate: () => void\n}\n\n/* @vue/component */\nexport default mixins(\n BindsAttrs,\n RegistrableProvide('form')\n /* @vue/component */\n).extend({\n name: 'v-form',\n\n provide (): object {\n return { form: this }\n },\n\n inheritAttrs: false,\n\n props: {\n disabled: Boolean,\n lazyValidation: Boolean,\n readonly: Boolean,\n value: Boolean,\n },\n\n data: () => ({\n inputs: [] as VInputInstance[],\n watchers: [] as Watchers[],\n errorBag: {} as ErrorBag,\n }),\n\n watch: {\n errorBag: {\n handler (val) {\n const errors = Object.values(val).includes(true)\n\n this.$emit('input', !errors)\n },\n deep: true,\n immediate: true,\n },\n },\n\n methods: {\n watchInput (input: any): Watchers {\n const watcher = (input: any): (() => void) => {\n return input.$watch('hasError', (val: boolean) => {\n this.$set(this.errorBag, input._uid, val)\n }, { immediate: true })\n }\n\n const watchers: Watchers = {\n _uid: input._uid,\n valid: () => {},\n shouldValidate: () => {},\n }\n\n if (this.lazyValidation) {\n // Only start watching inputs if we need to\n watchers.shouldValidate = input.$watch('shouldValidate', (val: boolean) => {\n if (!val) return\n\n // Only watch if we're not already doing it\n if (this.errorBag.hasOwnProperty(input._uid)) return\n\n watchers.valid = watcher(input)\n })\n } else {\n watchers.valid = watcher(input)\n }\n\n return watchers\n },\n /** @public */\n validate (): boolean {\n return this.inputs.filter(input => !input.validate(true)).length === 0\n },\n /** @public */\n reset (): void {\n this.inputs.forEach(input => input.reset())\n this.resetErrorBag()\n },\n resetErrorBag () {\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(() => {\n this.errorBag = {}\n }, 0)\n }\n },\n /** @public */\n resetValidation () {\n this.inputs.forEach(input => input.resetValidation())\n this.resetErrorBag()\n },\n register (input: VInputInstance) {\n this.inputs.push(input)\n this.watchers.push(this.watchInput(input))\n },\n unregister (input: VInputInstance) {\n const found = this.inputs.find(i => i._uid === input._uid)\n\n if (!found) return\n\n const unwatch = this.watchers.find(i => i._uid === found._uid)\n if (unwatch) {\n unwatch.valid()\n unwatch.shouldValidate()\n }\n\n this.watchers = this.watchers.filter(i => i._uid !== found._uid)\n this.inputs = this.inputs.filter(i => i._uid !== found._uid)\n this.$delete(this.errorBag, found._uid)\n },\n },\n\n render (h): VNode {\n return h('form', {\n staticClass: 'v-form',\n attrs: {\n novalidate: true,\n ...this.attrs$,\n },\n on: {\n submit: (e: Event) => this.$emit('submit', e),\n },\n }, getSlot(this))\n },\n})\n"],"sourceRoot":"","file":"VForm.js"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "../../../src/components/VGrid/VGrid.sass";
|
|
2
|
-
import
|
|
2
|
+
import Vue from 'vue';
|
|
3
3
|
import mergeData from '../../util/mergeData';
|
|
4
|
-
import { upperFirst } from '../../util/helpers';
|
|
5
|
-
import { h } from 'vue'; // no xs
|
|
4
|
+
import { upperFirst } from '../../util/helpers'; // no xs
|
|
6
5
|
|
|
7
6
|
const breakpoints = ['sm', 'md', 'lg', 'xl'];
|
|
8
7
|
|
|
@@ -68,7 +67,7 @@ function breakpointClass(type, prop, val) {
|
|
|
68
67
|
}
|
|
69
68
|
|
|
70
69
|
const cache = new Map();
|
|
71
|
-
export default
|
|
70
|
+
export default Vue.extend({
|
|
72
71
|
name: 'v-col',
|
|
73
72
|
functional: true,
|
|
74
73
|
props: {
|
|
@@ -98,12 +97,13 @@ export default defineComponent({
|
|
|
98
97
|
}
|
|
99
98
|
},
|
|
100
99
|
|
|
101
|
-
render(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
render(h, {
|
|
101
|
+
props,
|
|
102
|
+
data,
|
|
103
|
+
children,
|
|
104
|
+
parent
|
|
105
|
+
}) {
|
|
105
106
|
// Super-fast memoization based on props, 5x faster than JSON.stringify
|
|
106
|
-
|
|
107
107
|
let cacheKey = '';
|
|
108
108
|
|
|
109
109
|
for (const prop in props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VGrid/VCol.ts"],"names":[],"mappings":"AAAA,OA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X,CAAgB,SAAhB;AAChB,SAJD;AAKD;;AAED,YAAM,aAAa,GAAG,SAAS,CAAC,IAAV,CAAe,SAAS,IAAI,SAAS,CAAC,UAAV,CAAqB,MAArB,CAA5B,CAAtB;AAEA,MAAA,SAAS,CAAC,IAAV,CAAe;AACb;AACA,QAAA,GAAG,EAAE,CAAC,aAAD,IAAkB,CAAC,KAAK,CAAC,IAFjB;AAGb,SAAC,OAAO,KAAK,CAAC,IAAI,EAAlB,GAAuB,KAAK,CAAC,IAHhB;AAIb,SAAC,UAAU,KAAK,CAAC,MAAM,EAAvB,GAA4B,KAAK,CAAC,MAJrB;AAKb,SAAC,SAAS,KAAK,CAAC,KAAK,EAArB,GAA0B,KAAK,CAAC,KALnB;AAMb,SAAC,cAAc,KAAK,CAAC,SAAS,EAA9B,GAAmC,KAAK,CAAC;AAN5B,OAAf;AASA,MAAA,KAAK,CAAC,GAAN,CAAU,QAAV,EAAoB,SAApB;AACD;;AAED,WAAO,CAAC,CAAC,KAAK,CAAC,GAAP,EAAY,SAAS,CAAC,IAAD,EAAO;AAAE,MAAA,KAAK,EAAE;AAAT,KAAP,CAArB,EAAmD,QAAnD,CAAR;AACD;;AAhEuB,CAAX,CAAf","sourcesContent":["import './VGrid.sass'\n\nimport Vue, { VNode, PropOptions } from 'vue'\nimport mergeData from '../../util/mergeData'\nimport { upperFirst } from '../../util/helpers'\n\n// no xs\nconst breakpoints = ['sm', 'md', 'lg', 'xl']\n\nconst breakpointProps = (() => {\n return breakpoints.reduce((props, val) => {\n props[val] = {\n type: [Boolean, String, Number],\n default: false,\n }\n return props\n }, {} as Dictionary<PropOptions>)\n})()\n\nconst offsetProps = (() => {\n return breakpoints.reduce((props, val) => {\n props['offset' + upperFirst(val)] = {\n type: [String, Number],\n default: null,\n }\n return props\n }, {} as Dictionary<PropOptions>)\n})()\n\nconst orderProps = (() => {\n return breakpoints.reduce((props, val) => {\n props['order' + upperFirst(val)] = {\n type: [String, Number],\n default: null,\n }\n return props\n }, {} as Dictionary<PropOptions>)\n})()\n\nconst propMap = {\n col: Object.keys(breakpointProps),\n offset: Object.keys(offsetProps),\n order: Object.keys(orderProps),\n}\n\nfunction breakpointClass (type: keyof typeof propMap, prop: string, val: boolean | string | number) {\n let className = type\n if (val == null || val === false) {\n return undefined\n }\n if (prop) {\n const breakpoint = prop.replace(type, '')\n className += `-${breakpoint}`\n }\n // Handling the boolean style prop when accepting [Boolean, String, Number]\n // means Vue will not convert <v-col sm></v-col> to sm: true for us.\n // Since the default is false, an empty string indicates the prop's presence.\n if (type === 'col' && (val === '' || val === true)) {\n // .col-md\n return className.toLowerCase()\n }\n // .order-md-6\n className += `-${val}`\n return className.toLowerCase()\n}\n\nconst cache = new Map<string, any[]>()\n\nexport default Vue.extend({\n name: 'v-col',\n functional: true,\n props: {\n cols: {\n type: [Boolean, String, Number],\n default: false,\n },\n ...breakpointProps,\n offset: {\n type: [String, Number],\n default: null,\n },\n ...offsetProps,\n order: {\n type: [String, Number],\n default: null,\n },\n ...orderProps,\n alignSelf: {\n type: String,\n default: null,\n validator: (str: any) => ['auto', 'start', 'end', 'center', 'baseline', 'stretch'].includes(str),\n },\n tag: {\n type: String,\n default: 'div',\n },\n },\n render (h, { props, data, children, parent }): VNode {\n // Super-fast memoization based on props, 5x faster than JSON.stringify\n let cacheKey = ''\n for (const prop in props) {\n cacheKey += String((props as any)[prop])\n }\n let classList = cache.get(cacheKey)\n\n if (!classList) {\n classList = []\n // Loop through `col`, `offset`, `order` breakpoint props\n let type: keyof typeof propMap\n for (type in propMap) {\n propMap[type].forEach(prop => {\n const value: string | number | boolean = (props as any)[prop]\n const className = breakpointClass(type, prop, value)\n if (className) classList!.push(className)\n })\n }\n\n const hasColClasses = classList.some(className => className.startsWith('col-'))\n\n classList.push({\n // Default to .col if no other col-{bp}-* classes generated nor `cols` specified.\n col: !hasColClasses || !props.cols,\n [`col-${props.cols}`]: props.cols,\n [`offset-${props.offset}`]: props.offset,\n [`order-${props.order}`]: props.order,\n [`align-self-${props.alignSelf}`]: props.alignSelf,\n })\n\n cache.set(cacheKey, classList)\n }\n\n return h(props.tag, mergeData(data, { class: classList }), children)\n },\n})\n"],"sourceRoot":"","file":"VCol.js"}
|
|
@@ -2,12 +2,10 @@ import "../../../src/components/VGrid/_grid.sass";
|
|
|
2
2
|
import "../../../src/components/VGrid/VGrid.sass";
|
|
3
3
|
import Grid from './grid';
|
|
4
4
|
import mergeData from '../../util/mergeData';
|
|
5
|
-
import { defineComponent, h } from 'vue';
|
|
6
5
|
/* @vue/component */
|
|
7
6
|
|
|
8
|
-
export default
|
|
7
|
+
export default Grid('container').extend({
|
|
9
8
|
name: 'v-container',
|
|
10
|
-
extends: Grid('container'),
|
|
11
9
|
functional: true,
|
|
12
10
|
props: {
|
|
13
11
|
id: String,
|
|
@@ -21,13 +19,19 @@ export default defineComponent({
|
|
|
21
19
|
}
|
|
22
20
|
},
|
|
23
21
|
|
|
24
|
-
render(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
render(h, {
|
|
23
|
+
props,
|
|
24
|
+
data,
|
|
25
|
+
children
|
|
26
|
+
}) {
|
|
27
|
+
let classes;
|
|
28
|
+
const {
|
|
29
|
+
attrs
|
|
30
|
+
} = data;
|
|
28
31
|
|
|
29
32
|
if (attrs) {
|
|
30
33
|
// reset attrs to extract utility clases like pa-3
|
|
34
|
+
data.attrs = {};
|
|
31
35
|
classes = Object.keys(attrs).filter(key => {
|
|
32
36
|
// TODO: Remove once resolved
|
|
33
37
|
// https://github.com/vuejs/vue/issues/7841
|
|
@@ -36,23 +40,25 @@ export default defineComponent({
|
|
|
36
40
|
// add them as classes
|
|
37
41
|
|
|
38
42
|
if (key.startsWith('data-')) {
|
|
39
|
-
|
|
43
|
+
data.attrs[key] = value;
|
|
40
44
|
return false;
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
return value || typeof value === 'string';
|
|
44
48
|
});
|
|
45
|
-
}
|
|
46
|
-
// data.domProps = data.domProps || {}
|
|
47
|
-
// data.domProps.id = props.id
|
|
48
|
-
// }
|
|
49
|
+
}
|
|
49
50
|
|
|
51
|
+
if (props.id) {
|
|
52
|
+
data.domProps = data.domProps || {};
|
|
53
|
+
data.domProps.id = props.id;
|
|
54
|
+
}
|
|
50
55
|
|
|
51
|
-
return h(
|
|
56
|
+
return h(props.tag, mergeData(data, {
|
|
57
|
+
staticClass: 'container',
|
|
52
58
|
class: Array({
|
|
53
|
-
'container--fluid':
|
|
54
|
-
}).concat(classes || [])
|
|
55
|
-
}),
|
|
59
|
+
'container--fluid': props.fluid
|
|
60
|
+
}).concat(classes || [])
|
|
61
|
+
}), children);
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VGrid/VContainer.ts"],"names":[],"mappings":"AAAA,OAAO,0CAAP;AACA,OAAO,0CAAP;AAEA,OAAO,IAAP,MAAiB,QAAjB;AAEA,OAAO,SAAP,MAAsB,sBAAtB;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/VGrid/VContainer.ts"],"names":[],"mappings":"AAAA,OAAO,0CAAP;AACA,OAAO,0CAAP;AAEA,OAAO,IAAP,MAAiB,QAAjB;AAEA,OAAO,SAAP,MAAsB,sBAAtB;AAEA;;AACA,eAAe,IAAI,CAAC,WAAD,CAAJ,CAAkB,MAAlB,CAAyB;AACtC,EAAA,IAAI,EAAE,aADgC;AAEtC,EAAA,UAAU,EAAE,IAF0B;AAGtC,EAAA,KAAK,EAAE;AACL,IAAA,EAAE,EAAE,MADC;AAEL,IAAA,GAAG,EAAE;AACH,MAAA,IAAI,EAAE,MADH;AAEH,MAAA,OAAO,EAAE;AAFN,KAFA;AAML,IAAA,KAAK,EAAE;AACL,MAAA,IAAI,EAAE,OADD;AAEL,MAAA,OAAO,EAAE;AAFJ;AANF,GAH+B;;AActC,EAAA,MAAM,CAAE,CAAF,EAAK;AAAE,IAAA,KAAF;AAAS,IAAA,IAAT;AAAe,IAAA;AAAf,GAAL,EAA8B;AAClC,QAAI,OAAJ;AACA,UAAM;AAAE,MAAA;AAAF,QAAY,IAAlB;;AACA,QAAI,KAAJ,EAAW;AACT;AACA,MAAA,IAAI,CAAC,KAAL,GAAa,EAAb;AACA,MAAA,OAAO,GAAG,MAAM,CAAC,IAAP,CAAY,KAAZ,EAAmB,MAAnB,CAA0B,GAAG,IAAG;AACxC;AACA;AACA,YAAI,GAAG,KAAK,MAAZ,EAAoB,OAAO,KAAP;AAEpB,cAAM,KAAK,GAAG,KAAK,CAAC,GAAD,CAAnB,CALwC,CAOxC;AACA;;AACA,YAAI,GAAG,CAAC,UAAJ,CAAe,OAAf,CAAJ,EAA6B;AAC3B,UAAA,IAAI,CAAC,KAAL,CAAY,GAAZ,IAAmB,KAAnB;AACA,iBAAO,KAAP;AACD;;AAED,eAAO,KAAK,IAAI,OAAO,KAAP,KAAiB,QAAjC;AACD,OAfS,CAAV;AAgBD;;AAED,QAAI,KAAK,CAAC,EAAV,EAAc;AACZ,MAAA,IAAI,CAAC,QAAL,GAAgB,IAAI,CAAC,QAAL,IAAiB,EAAjC;AACA,MAAA,IAAI,CAAC,QAAL,CAAc,EAAd,GAAmB,KAAK,CAAC,EAAzB;AACD;;AAED,WAAO,CAAC,CACN,KAAK,CAAC,GADA,EAEN,SAAS,CAAC,IAAD,EAAO;AACd,MAAA,WAAW,EAAE,WADC;AAEd,MAAA,KAAK,EAAE,KAAK,CAAM;AAChB,4BAAoB,KAAK,CAAC;AADV,OAAN,CAAL,CAEJ,MAFI,CAEG,OAAO,IAAI,EAFd;AAFO,KAAP,CAFH,EAQN,QARM,CAAR;AAUD;;AArDqC,CAAzB,CAAf","sourcesContent":["import './_grid.sass'\nimport './VGrid.sass'\n\nimport Grid from './grid'\n\nimport mergeData from '../../util/mergeData'\n\n/* @vue/component */\nexport default Grid('container').extend({\n name: 'v-container',\n functional: true,\n props: {\n id: String,\n tag: {\n type: String,\n default: 'div',\n },\n fluid: {\n type: Boolean,\n default: false,\n },\n },\n render (h, { props, data, children }) {\n let classes\n const { attrs } = data\n if (attrs) {\n // reset attrs to extract utility clases like pa-3\n data.attrs = {}\n classes = Object.keys(attrs).filter(key => {\n // TODO: Remove once resolved\n // https://github.com/vuejs/vue/issues/7841\n if (key === 'slot') return false\n\n const value = attrs[key]\n\n // add back data attributes like data-test=\"foo\" but do not\n // add them as classes\n if (key.startsWith('data-')) {\n data.attrs![key] = value\n return false\n }\n\n return value || typeof value === 'string'\n })\n }\n\n if (props.id) {\n data.domProps = data.domProps || {}\n data.domProps.id = props.id\n }\n\n return h(\n props.tag,\n mergeData(data, {\n staticClass: 'container',\n class: Array<any>({\n 'container--fluid': props.fluid,\n }).concat(classes || []),\n }),\n children\n )\n },\n})\n"],"sourceRoot":"","file":"VContainer.js"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "../../../src/components/VGrid/VGrid.sass";
|
|
2
|
-
import
|
|
2
|
+
import Vue from 'vue';
|
|
3
3
|
import mergeData from '../../util/mergeData';
|
|
4
|
-
import { upperFirst } from '../../util/helpers';
|
|
5
|
-
import { h } from 'vue'; // no xs
|
|
4
|
+
import { upperFirst } from '../../util/helpers'; // no xs
|
|
6
5
|
|
|
7
6
|
const breakpoints = ['sm', 'md', 'lg', 'xl'];
|
|
8
7
|
const ALIGNMENT = ['start', 'end', 'center'];
|
|
@@ -67,7 +66,7 @@ function breakpointClass(type, prop, val) {
|
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
const cache = new Map();
|
|
70
|
-
export default
|
|
69
|
+
export default Vue.extend({
|
|
71
70
|
name: 'v-row',
|
|
72
71
|
functional: true,
|
|
73
72
|
props: {
|
|
@@ -97,10 +96,13 @@ export default defineComponent({
|
|
|
97
96
|
...alignContentProps
|
|
98
97
|
},
|
|
99
98
|
|
|
100
|
-
render(
|
|
99
|
+
render(h, {
|
|
100
|
+
props,
|
|
101
|
+
data,
|
|
102
|
+
children
|
|
103
|
+
}) {
|
|
101
104
|
// Super-fast memoization based on props, 5x faster than JSON.stringify
|
|
102
105
|
let cacheKey = '';
|
|
103
|
-
const props = this.$props;
|
|
104
106
|
|
|
105
107
|
for (const prop in props) {
|
|
106
108
|
cacheKey += String(props[prop]);
|
|
@@ -131,9 +133,10 @@ export default defineComponent({
|
|
|
131
133
|
cache.set(cacheKey, classList);
|
|
132
134
|
}
|
|
133
135
|
|
|
134
|
-
return h(props.tag, mergeData(
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
return h(props.tag, mergeData(data, {
|
|
137
|
+
staticClass: 'row',
|
|
138
|
+
class: classList
|
|
139
|
+
}), children);
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VGrid/VRow.ts"],"names":[],"mappings":"AAAA,OAAO,0CAAP;AAEA,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/VGrid/VRow.ts"],"names":[],"mappings":"AAAA,OAAO,0CAAP;AAEA,OAAO,GAAP,MAAiC,KAAjC;AACA,OAAO,SAAP,MAAsB,sBAAtB;AACA,SAAS,UAAT,QAA2B,oBAA3B,C,CAEA;;AACA,MAAM,WAAW,GAAG,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,CAApB;AAEA,MAAM,SAAS,GAAG,CAAC,OAAD,EAAU,KAAV,EAAiB,QAAjB,CAAlB;;AAEA,SAAS,SAAT,CAAoB,MAApB,EAAoC,GAApC,EAA0D;AACxD,SAAO,WAAW,CAAC,MAAZ,CAAmB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACvC,IAAA,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,GAAD,CAApB,CAAL,GAAkC,GAAG,EAArC;AACA,WAAO,KAAP;AACD,GAHM,EAGJ,EAHI,CAAP;AAID;;AAED,MAAM,cAAc,GAAI,GAAD,IAAc,CAAC,GAAG,SAAJ,EAAe,UAAf,EAA2B,SAA3B,EAAsC,QA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IAAmB,KAAnB,EAA0B;AACxB,MAAA,QAAQ,IAAI,MAAM,CAAE,KAAa,CAAC,IAAD,CAAf,CAAlB;AACD;;AACD,QAAI,SAAS,GAAG,KAAK,CAAC,GAAN,CAAU,QAAV,CAAhB;;AAEA,QAAI,CAAC,SAAL,EAAgB;AACd,MAAA,SAAS,GAAG,EAAZ,CADc,CAEd;;AACA,UAAI,IAAJ;;AACA,WAAK,IAAL,IAAa,OAAb,EAAsB;AACpB,QAAA,OAAO,CAAC,IAAD,CAAP,CAAc,OAAd,CAAsB,IAAI,IAAG;AAC3B,gBAAM,KAAK,GAAY,KAAa,CAAC,IAAD,CAApC;AACA,gBAAM,SAAS,GAAG,eAAe,CAAC,IAAD,EAAO,IAAP,EAAa,KAAb,CAAjC;AACA,cAAI,SAAJ,EAAe,SAAU,CAAC,IAAX,CAAgB,SAAhB;AAChB,SAJD;AAKD;;AAED,MAAA,SAAS,CAAC,IAAV,CAAe;AACb,sBAAc,KAAK,CAAC,SADP;AAEb,sBAAc,KAAK,CAAC,KAFP;AAGb,SAAC,SAAS,KAAK,CAAC,KAAK,EAArB,GAA0B,KAAK,CAAC,KAHnB;AAIb,SAAC,WAAW,KAAK,CAAC,OAAO,EAAzB,GAA8B,KAAK,CAAC,OAJvB;AAKb,SAAC,iBAAiB,KAAK,CAAC,YAAY,EAApC,GAAyC,KAAK,CAAC;AALlC,OAAf;AAQA,MAAA,KAAK,CAAC,GAAN,CAAU,QAAV,EAAoB,SAApB;AACD;;AAED,WAAO,CAAC,CACN,KAAK,CAAC,GADA,EAEN,SAAS,CAAC,IAAD,EAAO;AACd,MAAA,WAAW,EAAE,KADC;AAEd,MAAA,KAAK,EAAE;AAFO,KAAP,CAFH,EAMN,QANM,CAAR;AAQD;;AApEuB,CAAX,CAAf","sourcesContent":["import './VGrid.sass'\n\nimport Vue, { PropOptions } from 'vue'\nimport mergeData from '../../util/mergeData'\nimport { upperFirst } from '../../util/helpers'\n\n// no xs\nconst breakpoints = ['sm', 'md', 'lg', 'xl']\n\nconst ALIGNMENT = ['start', 'end', 'center']\n\nfunction makeProps (prefix: string, def: () => PropOptions) {\n return breakpoints.reduce((props, val) => {\n props[prefix + upperFirst(val)] = def()\n return props\n }, {} as Dictionary<PropOptions>)\n}\n\nconst alignValidator = (str: any) => [...ALIGNMENT, 'baseline', 'stretch'].includes(str)\nconst alignProps = makeProps('align', () => ({\n type: String,\n default: null,\n validator: alignValidator,\n}))\n\nconst justifyValidator = (str: any) => [...ALIGNMENT, 'space-between', 'space-around'].includes(str)\nconst justifyProps = makeProps('justify', () => ({\n type: String,\n default: null,\n validator: justifyValidator,\n}))\n\nconst alignContentValidator = (str: any) => [...ALIGNMENT, 'space-between', 'space-around', 'stretch'].includes(str)\nconst alignContentProps = makeProps('alignContent', () => ({\n type: String,\n default: null,\n validator: alignContentValidator,\n}))\n\nconst propMap = {\n align: Object.keys(alignProps),\n justify: Object.keys(justifyProps),\n alignContent: Object.keys(alignContentProps),\n}\n\nconst classMap = {\n align: 'align',\n justify: 'justify',\n alignContent: 'align-content',\n}\n\nfunction breakpointClass (type: keyof typeof propMap, prop: string, val: string) {\n let className = classMap[type]\n if (val == null) {\n return undefined\n }\n if (prop) {\n // alignSm -> Sm\n const breakpoint = prop.replace(type, '')\n className += `-${breakpoint}`\n }\n // .align-items-sm-center\n className += `-${val}`\n return className.toLowerCase()\n}\n\nconst cache = new Map<string, any[]>()\n\nexport default Vue.extend({\n name: 'v-row',\n functional: true,\n props: {\n tag: {\n type: String,\n default: 'div',\n },\n dense: Boolean,\n noGutters: Boolean,\n align: {\n type: String,\n default: null,\n validator: alignValidator,\n },\n ...alignProps,\n justify: {\n type: String,\n default: null,\n validator: justifyValidator,\n },\n ...justifyProps,\n alignContent: {\n type: String,\n default: null,\n validator: alignContentValidator,\n },\n ...alignContentProps,\n },\n render (h, { props, data, children }) {\n // Super-fast memoization based on props, 5x faster than JSON.stringify\n let cacheKey = ''\n for (const prop in props) {\n cacheKey += String((props as any)[prop])\n }\n let classList = cache.get(cacheKey)\n\n if (!classList) {\n classList = []\n // Loop through `align`, `justify`, `alignContent` breakpoint props\n let type: keyof typeof propMap\n for (type in propMap) {\n propMap[type].forEach(prop => {\n const value: string = (props as any)[prop]\n const className = breakpointClass(type, prop, value)\n if (className) classList!.push(className)\n })\n }\n\n classList.push({\n 'no-gutters': props.noGutters,\n 'row--dense': props.dense,\n [`align-${props.align}`]: props.align,\n [`justify-${props.justify}`]: props.justify,\n [`align-content-${props.alignContent}`]: props.alignContent,\n })\n\n cache.set(cacheKey, classList)\n }\n\n return h(\n props.tag,\n mergeData(data, {\n staticClass: 'row',\n class: classList,\n }),\n children\n )\n },\n})\n"],"sourceRoot":"","file":"VRow.js"}
|