vuetify 3.6.0-alpha.2 → 3.6.0
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/_component-variables-labs.sass +2 -1
- package/dist/json/attributes.json +731 -63
- package/dist/json/importMap-labs.json +32 -20
- package/dist/json/importMap.json +138 -138
- package/dist/json/tags.json +184 -2
- package/dist/json/web-types.json +13002 -10923
- package/dist/vuetify-labs.css +2039 -1927
- package/dist/vuetify-labs.d.ts +3575 -1079
- package/dist/vuetify-labs.esm.js +1047 -390
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +1046 -389
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +3026 -2941
- package/dist/vuetify.d.ts +927 -306
- package/dist/vuetify.esm.js +625 -363
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +624 -362
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +728 -714
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.sass +128 -127
- package/lib/components/VApp/VApp.sass +15 -13
- package/lib/components/VAppBar/VAppBar.sass +9 -8
- package/lib/components/VAppBar/index.d.mts +10 -0
- package/lib/components/VAutocomplete/VAutocomplete.mjs +8 -10
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.sass +94 -93
- package/lib/components/VAutocomplete/index.d.mts +36 -0
- package/lib/components/VAvatar/VAvatar.sass +26 -25
- package/lib/components/VBadge/VBadge.sass +61 -60
- package/lib/components/VBanner/VBanner.css +1 -1
- package/lib/components/VBanner/VBanner.sass +92 -91
- package/lib/components/VBanner/index.d.mts +15 -0
- package/lib/components/VBottomNavigation/VBottomNavigation.sass +50 -49
- package/lib/components/VBottomSheet/VBottomSheet.sass +28 -26
- package/lib/components/VBottomSheet/index.d.mts +14 -0
- package/lib/components/VBreadcrumbs/VBreadcrumbs.css +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.sass +41 -40
- package/lib/components/VBtn/VBtn.css +3 -0
- package/lib/components/VBtn/VBtn.mjs +3 -1
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/VBtn.sass +204 -200
- package/lib/components/VBtn/index.d.mts +10 -0
- package/lib/components/VBtnGroup/VBtnGroup.sass +47 -46
- package/lib/components/VBtnToggle/VBtnToggle.sass +4 -3
- package/lib/components/VBtnToggle/index.d.mts +1 -0
- package/lib/components/VCard/VCard.css +3 -3
- package/lib/components/VCard/VCard.sass +181 -180
- package/lib/components/VCarousel/VCarousel.sass +50 -49
- package/lib/components/VCarousel/VCarouselItem.mjs +1 -1
- package/lib/components/VCarousel/VCarouselItem.mjs.map +1 -1
- package/lib/components/VCarousel/index.d.mts +1 -0
- package/lib/components/VCheckbox/VCheckbox.sass +6 -5
- package/lib/components/VChip/VChip.css +1 -1
- package/lib/components/VChip/VChip.sass +78 -76
- package/lib/components/VChipGroup/VChipGroup.sass +20 -18
- package/lib/components/VChipGroup/index.d.mts +16 -0
- package/lib/components/VCode/VCode.sass +10 -8
- package/lib/components/VColorPicker/VColorPicker.sass +18 -17
- package/lib/components/VColorPicker/VColorPickerCanvas.sass +21 -20
- package/lib/components/VColorPicker/VColorPickerEdit.sass +24 -23
- package/lib/components/VColorPicker/VColorPickerPreview.sass +54 -53
- package/lib/components/VColorPicker/VColorPickerSwatches.sass +29 -28
- package/lib/components/VCombobox/VCombobox.mjs +8 -10
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.sass +94 -93
- package/lib/components/VCombobox/index.d.mts +36 -0
- package/lib/components/VCounter/VCounter.sass +7 -5
- package/lib/components/VDataIterator/index.d.mts +2 -0
- package/lib/components/VDataTable/VDataTable.css +36 -1
- package/lib/components/VDataTable/VDataTable.sass +137 -103
- package/lib/components/VDataTable/VDataTableFooter.css +5 -9
- package/lib/components/VDataTable/VDataTableFooter.sass +26 -25
- package/lib/components/VDataTable/VDataTableHeaders.mjs +66 -7
- package/lib/components/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableRow.mjs +45 -10
- package/lib/components/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableRows.mjs +8 -2
- package/lib/components/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/components/VDataTable/_variables.scss +9 -3
- package/lib/components/VDataTable/index.d.mts +263 -217
- package/lib/components/VDataTable/types.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.mjs +12 -2
- package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.sass +6 -5
- package/lib/components/VDatePicker/VDatePickerControls.sass +56 -55
- package/lib/components/VDatePicker/VDatePickerHeader.sass +58 -56
- package/lib/components/VDatePicker/VDatePickerMonth.sass +53 -51
- package/lib/components/VDatePicker/VDatePickerMonths.sass +18 -16
- package/lib/components/VDatePicker/VDatePickerYears.sass +14 -12
- package/lib/components/VDialog/VDialog.css +7 -3
- package/lib/components/VDialog/VDialog.mjs +6 -2
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.sass +71 -68
- package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +39 -0
- package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs.map +1 -0
- package/lib/components/VDialog/_variables.scss +4 -3
- package/lib/components/VDialog/index.d.mts +60 -10
- package/lib/components/VDivider/VDivider.sass +49 -48
- package/lib/components/VExpansionPanel/VExpansionPanel.sass +172 -171
- package/lib/components/VField/VField.sass +451 -450
- package/lib/components/VFileInput/VFileInput.mjs +1 -1
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/VFileInput.sass +30 -31
- package/lib/components/VFileInput/index.d.mts +17 -5
- package/lib/components/VFooter/VFooter.sass +17 -16
- package/lib/components/VGrid/VGrid.sass +42 -40
- package/lib/components/VIcon/VIcon.sass +34 -32
- package/lib/components/VImg/VImg.sass +24 -23
- package/lib/components/VInfiniteScroll/VInfiniteScroll.sass +21 -19
- package/lib/components/VInput/VInput.mjs +6 -1
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/VInput.sass +103 -102
- package/lib/components/VInput/index.d.mts +6 -0
- package/lib/components/VItemGroup/VItemGroup.sass +7 -5
- package/lib/components/VKbd/VKbd.sass +10 -9
- package/lib/components/VLabel/VLabel.sass +14 -13
- package/lib/components/VLayout/VLayout.mjs +6 -1
- package/lib/components/VLayout/VLayout.mjs.map +1 -1
- package/lib/components/VLayout/VLayout.sass +10 -7
- package/lib/components/VLayout/VLayoutItem.sass +7 -5
- package/lib/components/VLayout/index.d.mts +36 -0
- package/lib/components/VList/VList.mjs +2 -1
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VList.sass +81 -80
- package/lib/components/VList/VListItem.css +1 -1
- package/lib/components/VList/VListItem.sass +260 -259
- package/lib/components/VLocaleProvider/VLocaleProvider.sass +5 -2
- package/lib/components/VMain/VMain.sass +22 -21
- package/lib/components/VMenu/VMenu.sass +14 -13
- package/lib/components/VMenu/index.d.mts +56 -0
- package/lib/components/VMessages/VMessages.sass +16 -15
- package/lib/components/VNavigationDrawer/VNavigationDrawer.css +4 -0
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +14 -5
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +90 -84
- package/lib/components/VNavigationDrawer/index.d.mts +24 -0
- package/lib/components/VNavigationDrawer/touch.mjs +16 -2
- package/lib/components/VNavigationDrawer/touch.mjs.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.sass +51 -50
- package/lib/components/VOverlay/VOverlay.mjs +2 -2
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.sass +57 -55
- package/lib/components/VOverlay/index.d.mts +27 -13
- package/lib/components/VOverlay/useActivator.mjs.map +1 -1
- package/lib/components/VPagination/VPagination.sass +14 -12
- package/lib/components/VParallax/VParallax.sass +8 -5
- package/lib/components/VProgressCircular/VProgressCircular.sass +85 -83
- package/lib/components/VProgressLinear/VProgressLinear.mjs +11 -1
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.sass +170 -169
- package/lib/components/VProgressLinear/index.d.mts +21 -0
- package/lib/components/VRadioGroup/VRadioGroup.sass +12 -10
- package/lib/components/VRangeSlider/index.d.mts +6 -0
- package/lib/components/VRating/VRating.sass +46 -44
- package/lib/components/VResponsive/VResponsive.sass +21 -19
- package/lib/components/VSelect/VSelect.mjs +5 -1
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.sass +50 -49
- package/lib/components/VSelect/index.d.mts +36 -0
- package/lib/components/VSelectionControl/VSelectionControl.sass +87 -86
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.sass +9 -7
- package/lib/components/VSheet/VSheet.sass +10 -9
- package/lib/components/VSkeletonLoader/VSkeletonLoader.sass +174 -173
- package/lib/components/VSlideGroup/VSlideGroup.css +14 -1
- package/lib/components/VSlideGroup/VSlideGroup.mjs +110 -93
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.sass +54 -40
- package/lib/components/VSlideGroup/helpers.mjs +48 -28
- package/lib/components/VSlideGroup/helpers.mjs.map +1 -1
- package/lib/components/VSlideGroup/index.d.mts +16 -0
- package/lib/components/VSlider/VSlider.sass +49 -48
- package/lib/components/VSlider/VSliderThumb.sass +129 -128
- package/lib/components/VSlider/VSliderTrack.sass +120 -119
- package/lib/components/VSlider/index.d.mts +6 -0
- package/lib/components/VSnackbar/VSnackbar.css +18 -1
- package/lib/components/VSnackbar/VSnackbar.mjs +34 -9
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.sass +103 -83
- package/lib/components/VSnackbar/index.d.mts +42 -0
- package/lib/components/VStepper/VStepper.sass +37 -36
- package/lib/components/VStepper/VStepperItem.sass +69 -67
- package/lib/components/VSwitch/VSwitch.css +14 -2
- package/lib/components/VSwitch/VSwitch.sass +119 -112
- package/lib/components/VSystemBar/VSystemBar.css +1 -1
- package/lib/components/VSystemBar/VSystemBar.sass +24 -23
- package/lib/components/VTable/VTable.sass +140 -139
- package/lib/components/VTabs/VTab.sass +27 -25
- package/lib/components/VTabs/VTabs.sass +38 -37
- package/lib/components/VTabs/index.d.mts +49 -6
- package/lib/components/VTextField/VTextField.sass +58 -56
- package/lib/components/VTextField/index.d.mts +15 -3
- package/lib/components/VTextarea/VTextarea.sass +43 -42
- package/lib/components/VTextarea/index.d.mts +15 -3
- package/lib/components/VThemeProvider/VThemeProvider.sass +6 -3
- package/lib/components/VTimeline/VTimeline.sass +308 -307
- package/lib/components/VToolbar/VToolbar.sass +90 -89
- package/lib/components/VTooltip/VTooltip.sass +23 -21
- package/lib/components/VTooltip/index.d.mts +56 -0
- package/lib/components/VVirtualScroll/VVirtualScroll.sass +10 -7
- package/lib/components/VWindow/VWindow.css +1 -0
- package/lib/components/VWindow/VWindow.sass +74 -70
- package/lib/components/VWindow/index.d.mts +1 -0
- package/lib/components/index.d.mts +870 -253
- package/lib/composables/directiveComponent.mjs +4 -2
- package/lib/composables/directiveComponent.mjs.map +1 -1
- package/lib/composables/display.mjs +5 -0
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/goto.mjs +40 -3
- package/lib/composables/goto.mjs.map +1 -1
- package/lib/composables/group.mjs +10 -1
- package/lib/composables/group.mjs.map +1 -1
- package/lib/composables/layout.mjs +3 -1
- package/lib/composables/layout.mjs.map +1 -1
- package/lib/directives/ripple/VRipple.sass +35 -33
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.mts +58 -54
- package/lib/labs/VCalendar/VCalendar.sass +160 -158
- package/lib/labs/VCalendar/VCalendarDay.sass +26 -23
- package/lib/labs/VCalendar/VCalendarHeader.sass +12 -10
- package/lib/labs/VCalendar/VCalendarInterval.sass +36 -34
- package/lib/labs/VCalendar/VCalendarIntervalEvent.sass +9 -6
- package/lib/labs/VCalendar/VCalendarMonthDay.sass +59 -57
- package/lib/labs/VDateInput/VDateInput.mjs +129 -0
- package/lib/labs/VDateInput/VDateInput.mjs.map +1 -0
- package/lib/labs/VDateInput/index.d.mts +1068 -0
- package/lib/labs/VDateInput/index.mjs +2 -0
- package/lib/labs/VDateInput/index.mjs.map +1 -0
- package/lib/labs/VEmptyState/VEmptyState.css +3 -3
- package/lib/labs/VEmptyState/VEmptyState.sass +59 -57
- package/lib/labs/VFab/VFab.css +1 -0
- package/lib/labs/VFab/VFab.mjs +3 -2
- package/lib/labs/VFab/VFab.mjs.map +1 -1
- package/lib/labs/VFab/VFab.sass +62 -60
- package/lib/labs/VFab/index.d.mts +19 -0
- package/lib/labs/VNumberInput/VNumberInput.mjs +79 -24
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/lib/labs/VNumberInput/VNumberInput.sass +42 -40
- package/lib/labs/VNumberInput/index.d.mts +56 -29
- package/lib/labs/VPicker/VPicker.sass +49 -48
- package/lib/labs/VPullToRefresh/VPullToRefresh.css +27 -0
- package/lib/labs/VPullToRefresh/VPullToRefresh.mjs +117 -0
- package/lib/labs/VPullToRefresh/VPullToRefresh.mjs.map +1 -0
- package/lib/labs/VPullToRefresh/VPullToRefresh.sass +23 -0
- package/lib/labs/VPullToRefresh/index.d.mts +189 -0
- package/lib/labs/VPullToRefresh/index.mjs +2 -0
- package/lib/labs/VPullToRefresh/index.mjs.map +1 -0
- package/lib/labs/VSnackbarQueue/VSnackbarQueue.mjs +112 -0
- package/lib/labs/VSnackbarQueue/VSnackbarQueue.mjs.map +1 -0
- package/lib/labs/VSnackbarQueue/index.d.mts +2763 -0
- package/lib/labs/VSnackbarQueue/index.mjs +2 -0
- package/lib/labs/VSnackbarQueue/index.mjs.map +1 -0
- package/lib/labs/VSpeedDial/VSpeedDial.mjs +8 -2
- package/lib/labs/VSpeedDial/VSpeedDial.mjs.map +1 -1
- package/lib/labs/VSpeedDial/VSpeedDial.sass +23 -20
- package/lib/labs/VSpeedDial/index.d.mts +28 -2
- package/lib/labs/VTimePicker/VTimePicker.sass +9 -8
- package/lib/labs/VTimePicker/VTimePickerClock.mjs +1 -3
- package/lib/labs/VTimePicker/VTimePickerClock.mjs.map +1 -1
- package/lib/labs/VTimePicker/VTimePickerClock.sass +114 -113
- package/lib/labs/VTimePicker/VTimePickerControls.sass +90 -90
- package/lib/labs/VTimePicker/_variables.scss +1 -1
- package/lib/labs/VTimePicker/index.d.mts +6 -13
- package/lib/labs/VTreeview/VTreeviewItem.sass +14 -12
- package/lib/labs/VTreeview/{variables.scss → _variables.scss} +0 -2
- package/lib/labs/components.d.mts +5587 -1641
- package/lib/labs/components.mjs +3 -0
- package/lib/labs/components.mjs.map +1 -1
- package/lib/locale/af.mjs +1 -0
- package/lib/locale/af.mjs.map +1 -1
- package/lib/locale/ar.mjs +1 -0
- package/lib/locale/ar.mjs.map +1 -1
- package/lib/locale/az.mjs +1 -0
- package/lib/locale/az.mjs.map +1 -1
- package/lib/locale/bg.mjs +1 -0
- package/lib/locale/bg.mjs.map +1 -1
- package/lib/locale/ca.mjs +1 -0
- package/lib/locale/ca.mjs.map +1 -1
- package/lib/locale/ckb.mjs +1 -0
- package/lib/locale/ckb.mjs.map +1 -1
- package/lib/locale/cs.mjs +1 -0
- package/lib/locale/cs.mjs.map +1 -1
- package/lib/locale/da.mjs +1 -0
- package/lib/locale/da.mjs.map +1 -1
- package/lib/locale/de.mjs +1 -0
- package/lib/locale/de.mjs.map +1 -1
- package/lib/locale/el.mjs +1 -0
- package/lib/locale/el.mjs.map +1 -1
- package/lib/locale/en.mjs +1 -0
- package/lib/locale/en.mjs.map +1 -1
- package/lib/locale/es.mjs +1 -0
- package/lib/locale/es.mjs.map +1 -1
- package/lib/locale/et.mjs +1 -0
- package/lib/locale/et.mjs.map +1 -1
- package/lib/locale/fa.mjs +1 -0
- package/lib/locale/fa.mjs.map +1 -1
- package/lib/locale/fi.mjs +1 -0
- package/lib/locale/fi.mjs.map +1 -1
- package/lib/locale/fr.mjs +1 -0
- package/lib/locale/fr.mjs.map +1 -1
- package/lib/locale/he.mjs +1 -0
- package/lib/locale/he.mjs.map +1 -1
- package/lib/locale/hr.mjs +1 -0
- package/lib/locale/hr.mjs.map +1 -1
- package/lib/locale/hu.mjs +1 -0
- package/lib/locale/hu.mjs.map +1 -1
- package/lib/locale/id.mjs +1 -0
- package/lib/locale/id.mjs.map +1 -1
- package/lib/locale/index.d.mts +43 -0
- package/lib/locale/it.mjs +1 -0
- package/lib/locale/it.mjs.map +1 -1
- package/lib/locale/ja.mjs +1 -0
- package/lib/locale/ja.mjs.map +1 -1
- package/lib/locale/km.mjs +1 -0
- package/lib/locale/km.mjs.map +1 -1
- package/lib/locale/ko.mjs +9 -8
- package/lib/locale/ko.mjs.map +1 -1
- package/lib/locale/lt.mjs +1 -0
- package/lib/locale/lt.mjs.map +1 -1
- package/lib/locale/lv.mjs +1 -0
- package/lib/locale/lv.mjs.map +1 -1
- package/lib/locale/nl.mjs +1 -0
- package/lib/locale/nl.mjs.map +1 -1
- package/lib/locale/no.mjs +1 -0
- package/lib/locale/no.mjs.map +1 -1
- package/lib/locale/pl.mjs +1 -0
- package/lib/locale/pl.mjs.map +1 -1
- package/lib/locale/pt.mjs +1 -0
- package/lib/locale/pt.mjs.map +1 -1
- package/lib/locale/ro.mjs +1 -0
- package/lib/locale/ro.mjs.map +1 -1
- package/lib/locale/ru.mjs +1 -0
- package/lib/locale/ru.mjs.map +1 -1
- package/lib/locale/sk.mjs +1 -0
- package/lib/locale/sk.mjs.map +1 -1
- package/lib/locale/sl.mjs +1 -0
- package/lib/locale/sl.mjs.map +1 -1
- package/lib/locale/sr-Cyrl.mjs +1 -0
- package/lib/locale/sr-Cyrl.mjs.map +1 -1
- package/lib/locale/sr-Latn.mjs +1 -0
- package/lib/locale/sr-Latn.mjs.map +1 -1
- package/lib/locale/sv.mjs +1 -0
- package/lib/locale/sv.mjs.map +1 -1
- package/lib/locale/th.mjs +1 -0
- package/lib/locale/th.mjs.map +1 -1
- package/lib/locale/tr.mjs +1 -0
- package/lib/locale/tr.mjs.map +1 -1
- package/lib/locale/uk.mjs +1 -0
- package/lib/locale/uk.mjs.map +1 -1
- package/lib/locale/vi.mjs +1 -0
- package/lib/locale/vi.mjs.map +1 -1
- package/lib/locale/zh-Hans.mjs +1 -0
- package/lib/locale/zh-Hans.mjs.map +1 -1
- package/lib/locale/zh-Hant.mjs +1 -0
- package/lib/locale/zh-Hant.mjs.map +1 -1
- package/lib/styles/elements/_blockquote.sass +6 -4
- package/lib/styles/elements/_global.sass +20 -18
- package/lib/styles/generic/_animations.scss +13 -9
- package/lib/styles/generic/_colors.scss +36 -35
- package/lib/styles/generic/_index.scss +1 -0
- package/lib/styles/generic/_layers.scss +7 -0
- package/lib/styles/generic/_reset.scss +235 -232
- package/lib/styles/generic/_rtl.scss +10 -6
- package/lib/styles/generic/_transitions.scss +244 -241
- package/lib/styles/main.css +78 -78
- package/lib/styles/settings/_variables.scss +22 -14
- package/lib/styles/tools/_index.sass +1 -0
- package/lib/styles/tools/_layer.scss +11 -0
- package/lib/styles/utilities/_display.sass +7 -5
- package/lib/styles/utilities/_elevation.scss +8 -6
- package/lib/styles/utilities/_index.sass +28 -29
- package/lib/styles/utilities/_screenreaders.sass +13 -11
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.mjs","names":["
|
|
1
|
+
{"version":3,"file":"helpers.mjs","names":["calculateUpdatedTarget","_ref","selectedElement","containerElement","isRtl","isHorizontal","containerSize","getOffsetSize","scrollPosition","getScrollPosition","childrenSize","childrenStartPosition","getOffsetPosition","additionalOffset","calculateCenteredTarget","_ref2","containerOffsetSize","childrenOffsetPosition","childrenOffsetSize","getScrollSize","element","key","getClientSize","rtl","scrollLeft","offsetWidth","scrollWidth","scrollTop"],"sources":["../../../src/components/VSlideGroup/helpers.ts"],"sourcesContent":["export function calculateUpdatedTarget ({\n selectedElement,\n containerElement,\n isRtl,\n isHorizontal,\n}: {\n selectedElement: HTMLElement\n containerElement: HTMLElement\n isRtl: boolean\n isHorizontal: boolean\n}): number {\n const containerSize = getOffsetSize(isHorizontal, containerElement)\n const scrollPosition = getScrollPosition(isHorizontal, isRtl, containerElement)\n\n const childrenSize = getOffsetSize(isHorizontal, selectedElement)\n const childrenStartPosition = getOffsetPosition(isHorizontal, selectedElement)\n\n const additionalOffset = childrenSize * 0.4\n\n if (scrollPosition > childrenStartPosition) {\n return childrenStartPosition - additionalOffset\n } else if (scrollPosition + containerSize < childrenStartPosition + childrenSize) {\n return childrenStartPosition - containerSize + childrenSize + additionalOffset\n }\n\n return scrollPosition\n}\n\nexport function calculateCenteredTarget ({\n selectedElement,\n containerElement,\n isHorizontal,\n}: {\n selectedElement: HTMLElement\n containerElement: HTMLElement\n isHorizontal: boolean\n}): number {\n const containerOffsetSize = getOffsetSize(isHorizontal, containerElement)\n const childrenOffsetPosition = getOffsetPosition(isHorizontal, selectedElement)\n const childrenOffsetSize = getOffsetSize(isHorizontal, selectedElement)\n\n return childrenOffsetPosition - (containerOffsetSize / 2) + (childrenOffsetSize / 2)\n}\n\nexport function getScrollSize (isHorizontal: boolean, element?: HTMLElement) {\n const key = isHorizontal ? 'scrollWidth' : 'scrollHeight'\n return element?.[key] || 0\n}\n\nexport function getClientSize (isHorizontal: boolean, element?: HTMLElement) {\n const key = isHorizontal ? 'clientWidth' : 'clientHeight'\n return element?.[key] || 0\n}\n\nexport function getScrollPosition (isHorizontal: boolean, rtl: boolean, element?: HTMLElement) {\n if (!element) {\n return 0\n }\n\n const {\n scrollLeft,\n offsetWidth,\n scrollWidth,\n } = element\n\n if (isHorizontal) {\n return rtl\n ? scrollWidth - offsetWidth + scrollLeft\n : scrollLeft\n }\n\n return element.scrollTop\n}\n\nexport function getOffsetSize (isHorizontal: boolean, element?: HTMLElement) {\n const key = isHorizontal ? 'offsetWidth' : 'offsetHeight'\n return element?.[key] || 0\n}\n\nexport function getOffsetPosition (isHorizontal: boolean, element?: HTMLElement) {\n const key = isHorizontal ? 'offsetLeft' : 'offsetTop'\n return element?.[key] || 0\n}\n"],"mappings":"AAAA,OAAO,SAASA,sBAAsBA,CAAAC,IAAA,EAU3B;EAAA,IAV6B;IACtCC,eAAe;IACfC,gBAAgB;IAChBC,KAAK;IACLC;EAMF,CAAC,GAAAJ,IAAA;EACC,MAAMK,aAAa,GAAGC,aAAa,CAACF,YAAY,EAAEF,gBAAgB,CAAC;EACnE,MAAMK,cAAc,GAAGC,iBAAiB,CAACJ,YAAY,EAAED,KAAK,EAAED,gBAAgB,CAAC;EAE/E,MAAMO,YAAY,GAAGH,aAAa,CAACF,YAAY,EAAEH,eAAe,CAAC;EACjE,MAAMS,qBAAqB,GAAGC,iBAAiB,CAACP,YAAY,EAAEH,eAAe,CAAC;EAE9E,MAAMW,gBAAgB,GAAGH,YAAY,GAAG,GAAG;EAE3C,IAAIF,cAAc,GAAGG,qBAAqB,EAAE;IAC1C,OAAOA,qBAAqB,GAAGE,gBAAgB;EACjD,CAAC,MAAM,IAAIL,cAAc,GAAGF,aAAa,GAAGK,qBAAqB,GAAGD,YAAY,EAAE;IAChF,OAAOC,qBAAqB,GAAGL,aAAa,GAAGI,YAAY,GAAGG,gBAAgB;EAChF;EAEA,OAAOL,cAAc;AACvB;AAEA,OAAO,SAASM,uBAAuBA,CAAAC,KAAA,EAQ5B;EAAA,IAR8B;IACvCb,eAAe;IACfC,gBAAgB;IAChBE;EAKF,CAAC,GAAAU,KAAA;EACC,MAAMC,mBAAmB,GAAGT,aAAa,CAACF,YAAY,EAAEF,gBAAgB,CAAC;EACzE,MAAMc,sBAAsB,GAAGL,iBAAiB,CAACP,YAAY,EAAEH,eAAe,CAAC;EAC/E,MAAMgB,kBAAkB,GAAGX,aAAa,CAACF,YAAY,EAAEH,eAAe,CAAC;EAEvE,OAAOe,sBAAsB,GAAID,mBAAmB,GAAG,CAAE,GAAIE,kBAAkB,GAAG,CAAE;AACtF;AAEA,OAAO,SAASC,aAAaA,CAAEd,YAAqB,EAAEe,OAAqB,EAAE;EAC3E,MAAMC,GAAG,GAAGhB,YAAY,GAAG,aAAa,GAAG,cAAc;EACzD,OAAOe,OAAO,GAAGC,GAAG,CAAC,IAAI,CAAC;AAC5B;AAEA,OAAO,SAASC,aAAaA,CAAEjB,YAAqB,EAAEe,OAAqB,EAAE;EAC3E,MAAMC,GAAG,GAAGhB,YAAY,GAAG,aAAa,GAAG,cAAc;EACzD,OAAOe,OAAO,GAAGC,GAAG,CAAC,IAAI,CAAC;AAC5B;AAEA,OAAO,SAASZ,iBAAiBA,CAAEJ,YAAqB,EAAEkB,GAAY,EAAEH,OAAqB,EAAE;EAC7F,IAAI,CAACA,OAAO,EAAE;IACZ,OAAO,CAAC;EACV;EAEA,MAAM;IACJI,UAAU;IACVC,WAAW;IACXC;EACF,CAAC,GAAGN,OAAO;EAEX,IAAIf,YAAY,EAAE;IAChB,OAAOkB,GAAG,GACNG,WAAW,GAAGD,WAAW,GAAGD,UAAU,GACtCA,UAAU;EAChB;EAEA,OAAOJ,OAAO,CAACO,SAAS;AAC1B;AAEA,OAAO,SAASpB,aAAaA,CAAEF,YAAqB,EAAEe,OAAqB,EAAE;EAC3E,MAAMC,GAAG,GAAGhB,YAAY,GAAG,aAAa,GAAG,cAAc;EACzD,OAAOe,OAAO,GAAGC,GAAG,CAAC,IAAI,CAAC;AAC5B;AAEA,OAAO,SAAST,iBAAiBA,CAAEP,YAAqB,EAAEe,OAAqB,EAAE;EAC/E,MAAMC,GAAG,GAAGhB,YAAY,GAAG,YAAY,GAAG,WAAW;EACrD,OAAOe,OAAO,GAAGC,GAAG,CAAC,IAAI,CAAC;AAC5B","ignoreList":[]}
|
|
@@ -41,6 +41,7 @@ interface GroupItem {
|
|
|
41
41
|
id: number;
|
|
42
42
|
value: Ref<unknown>;
|
|
43
43
|
disabled: Ref<boolean | undefined>;
|
|
44
|
+
useIndexAsValue?: boolean;
|
|
44
45
|
}
|
|
45
46
|
interface GroupProvide {
|
|
46
47
|
register: (item: GroupItem, cmp: ComponentInternalInstance) => void;
|
|
@@ -87,6 +88,7 @@ declare const VSlideGroup: {
|
|
|
87
88
|
style: vue.StyleValue;
|
|
88
89
|
disabled: boolean;
|
|
89
90
|
tag: string;
|
|
91
|
+
mobile: boolean;
|
|
90
92
|
multiple: boolean;
|
|
91
93
|
direction: "horizontal" | "vertical";
|
|
92
94
|
selectedClass: string;
|
|
@@ -111,6 +113,7 @@ declare const VSlideGroup: {
|
|
|
111
113
|
style: vue.StyleValue;
|
|
112
114
|
disabled: boolean;
|
|
113
115
|
tag: string;
|
|
116
|
+
mobile: boolean;
|
|
114
117
|
multiple: boolean;
|
|
115
118
|
direction: "horizontal" | "vertical";
|
|
116
119
|
selectedClass: string;
|
|
@@ -128,6 +131,7 @@ declare const VSlideGroup: {
|
|
|
128
131
|
style: vue.StyleValue;
|
|
129
132
|
disabled: boolean;
|
|
130
133
|
tag: string;
|
|
134
|
+
mobile: boolean;
|
|
131
135
|
multiple: boolean;
|
|
132
136
|
direction: "horizontal" | "vertical";
|
|
133
137
|
selectedClass: string;
|
|
@@ -156,6 +160,7 @@ declare const VSlideGroup: {
|
|
|
156
160
|
style: vue.StyleValue;
|
|
157
161
|
disabled: boolean;
|
|
158
162
|
tag: string;
|
|
163
|
+
mobile: boolean;
|
|
159
164
|
multiple: boolean;
|
|
160
165
|
direction: "horizontal" | "vertical";
|
|
161
166
|
selectedClass: string;
|
|
@@ -178,6 +183,7 @@ declare const VSlideGroup: {
|
|
|
178
183
|
style: vue.StyleValue;
|
|
179
184
|
disabled: boolean;
|
|
180
185
|
tag: string;
|
|
186
|
+
mobile: boolean;
|
|
181
187
|
multiple: boolean;
|
|
182
188
|
direction: "horizontal" | "vertical";
|
|
183
189
|
selectedClass: string;
|
|
@@ -193,6 +199,7 @@ declare const VSlideGroup: {
|
|
|
193
199
|
style: vue.StyleValue;
|
|
194
200
|
disabled: boolean;
|
|
195
201
|
tag: string;
|
|
202
|
+
mobile: boolean;
|
|
196
203
|
multiple: boolean;
|
|
197
204
|
direction: "horizontal" | "vertical";
|
|
198
205
|
selectedClass: string;
|
|
@@ -217,6 +224,7 @@ declare const VSlideGroup: {
|
|
|
217
224
|
style: vue.StyleValue;
|
|
218
225
|
disabled: boolean;
|
|
219
226
|
tag: string;
|
|
227
|
+
mobile: boolean;
|
|
220
228
|
multiple: boolean;
|
|
221
229
|
direction: "horizontal" | "vertical";
|
|
222
230
|
selectedClass: string;
|
|
@@ -256,6 +264,10 @@ declare const VSlideGroup: {
|
|
|
256
264
|
type: StringConstructor;
|
|
257
265
|
default: string;
|
|
258
266
|
};
|
|
267
|
+
mobile: {
|
|
268
|
+
type: BooleanConstructor;
|
|
269
|
+
default: null;
|
|
270
|
+
};
|
|
259
271
|
mobileBreakpoint: PropType<number | DisplayBreakpoint>;
|
|
260
272
|
class: PropType<any>;
|
|
261
273
|
style: {
|
|
@@ -300,6 +312,10 @@ declare const VSlideGroup: {
|
|
|
300
312
|
type: StringConstructor;
|
|
301
313
|
default: string;
|
|
302
314
|
};
|
|
315
|
+
mobile: {
|
|
316
|
+
type: BooleanConstructor;
|
|
317
|
+
default: null;
|
|
318
|
+
};
|
|
303
319
|
mobileBreakpoint: PropType<number | DisplayBreakpoint>;
|
|
304
320
|
class: PropType<any>;
|
|
305
321
|
style: {
|
|
@@ -4,59 +4,60 @@
|
|
|
4
4
|
@use '../../styles/tools'
|
|
5
5
|
@use './variables' as *
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
.v-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
@include tools.layer('components')
|
|
8
|
+
// Block
|
|
9
|
+
.v-slider
|
|
10
|
+
.v-slider__container
|
|
11
|
+
input
|
|
12
|
+
cursor: default
|
|
13
|
+
padding: 0
|
|
14
|
+
width: 100%
|
|
15
|
+
display: none
|
|
16
|
+
|
|
17
|
+
> .v-input__append,
|
|
18
|
+
> .v-input__prepend
|
|
12
19
|
padding: 0
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// Elements
|
|
21
|
-
.v-slider__container
|
|
22
|
-
position: relative
|
|
23
|
-
min-height: inherit
|
|
24
|
-
width: 100%
|
|
25
|
-
height: 100%
|
|
26
|
-
display: flex
|
|
27
|
-
justify-content: center
|
|
28
|
-
align-items: center
|
|
29
|
-
cursor: pointer
|
|
30
|
-
|
|
31
|
-
.v-input--disabled &
|
|
32
|
-
opacity: var(--v-disabled-opacity)
|
|
33
|
-
|
|
34
|
-
.v-input--error:not(.v-input--disabled) &
|
|
35
|
-
color: rgb(var(--v-theme-error))
|
|
36
|
-
|
|
37
|
-
// Modifiers
|
|
38
|
-
.v-slider.v-input--horizontal
|
|
39
|
-
align-items: center
|
|
40
|
-
margin-inline: $slider-horizontal-start $slider-horizontal-end
|
|
41
|
-
|
|
42
|
-
> .v-input__control
|
|
43
|
-
min-height: $slider-horizontal-min-height
|
|
20
|
+
|
|
21
|
+
// Elements
|
|
22
|
+
.v-slider__container
|
|
23
|
+
position: relative
|
|
24
|
+
min-height: inherit
|
|
25
|
+
width: 100%
|
|
26
|
+
height: 100%
|
|
44
27
|
display: flex
|
|
28
|
+
justify-content: center
|
|
29
|
+
align-items: center
|
|
30
|
+
cursor: pointer
|
|
31
|
+
|
|
32
|
+
.v-input--disabled &
|
|
33
|
+
opacity: var(--v-disabled-opacity)
|
|
34
|
+
|
|
35
|
+
.v-input--error:not(.v-input--disabled) &
|
|
36
|
+
color: rgb(var(--v-theme-error))
|
|
37
|
+
|
|
38
|
+
// Modifiers
|
|
39
|
+
.v-slider.v-input--horizontal
|
|
45
40
|
align-items: center
|
|
41
|
+
margin-inline: $slider-horizontal-start $slider-horizontal-end
|
|
42
|
+
|
|
43
|
+
> .v-input__control
|
|
44
|
+
min-height: $slider-horizontal-min-height
|
|
45
|
+
display: flex
|
|
46
|
+
align-items: center
|
|
46
47
|
|
|
47
|
-
.v-slider.v-input--vertical
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
.v-slider.v-input--vertical
|
|
49
|
+
justify-content: center
|
|
50
|
+
margin-top: $slider-vertical-margin-top
|
|
51
|
+
margin-bottom: $slider-vertical-margin-bottom
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
> .v-input__control
|
|
54
|
+
min-height: $slider-vertical-min-height
|
|
54
55
|
|
|
55
|
-
.v-slider.v-input--disabled
|
|
56
|
-
|
|
56
|
+
.v-slider.v-input--disabled
|
|
57
|
+
pointer-events: none
|
|
57
58
|
|
|
58
|
-
.v-slider--has-labels > .v-input__control
|
|
59
|
-
|
|
59
|
+
.v-slider--has-labels > .v-input__control
|
|
60
|
+
margin-bottom: $slider-tick-label-margin-top * .5
|
|
60
61
|
|
|
61
|
-
.v-slider__label
|
|
62
|
-
|
|
62
|
+
.v-slider__label
|
|
63
|
+
margin-inline-end: $slider-label-margin-end
|
|
@@ -5,150 +5,151 @@
|
|
|
5
5
|
@use '../../styles/tools'
|
|
6
6
|
@use './variables' as *
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
touch-action: none
|
|
11
|
-
color: rgb(var(--v-theme-surface-variant))
|
|
12
|
-
|
|
13
|
-
.v-input--error:not(.v-input--disabled) &
|
|
14
|
-
color: inherit
|
|
15
|
-
|
|
16
|
-
.v-slider-thumb__label
|
|
17
|
-
background: rgba(var(--v-theme-surface-variant), .7)
|
|
18
|
-
color: rgb(var(--v-theme-on-surface-variant))
|
|
19
|
-
|
|
20
|
-
&::before
|
|
21
|
-
color: rgba(var(--v-theme-surface-variant), .7)
|
|
22
|
-
|
|
23
|
-
// Block
|
|
24
|
-
.v-slider-thumb
|
|
25
|
-
outline: none
|
|
26
|
-
position: absolute
|
|
27
|
-
transition: $slider-transition
|
|
28
|
-
|
|
29
|
-
.v-slider-thumb__surface
|
|
30
|
-
cursor: pointer
|
|
31
|
-
width: var(--v-slider-thumb-size)
|
|
32
|
-
height: var(--v-slider-thumb-size)
|
|
33
|
-
border-radius: $slider-thumb-border-radius
|
|
34
|
-
user-select: none
|
|
35
|
-
background-color: currentColor
|
|
36
|
-
|
|
37
|
-
&::before
|
|
38
|
-
transition: 0.3s settings.$standard-easing
|
|
39
|
-
content: ''
|
|
40
|
-
color: inherit
|
|
41
|
-
top: 0
|
|
42
|
-
left: 0
|
|
43
|
-
width: 100%
|
|
44
|
-
height: 100%
|
|
45
|
-
border-radius: $slider-thumb-border-radius
|
|
46
|
-
background: currentColor
|
|
47
|
-
position: absolute
|
|
48
|
-
pointer-events: none
|
|
49
|
-
opacity: 0
|
|
50
|
-
|
|
51
|
-
&::after
|
|
52
|
-
content: ''
|
|
53
|
-
width: $slider-thumb-touch-size
|
|
54
|
-
height: $slider-thumb-touch-size
|
|
55
|
-
position: absolute
|
|
56
|
-
top: 50%
|
|
57
|
-
left: 50%
|
|
58
|
-
transform: translate(-50%, -50%)
|
|
59
|
-
|
|
60
|
-
.v-slider-thumb__label-container
|
|
61
|
-
position: absolute
|
|
62
|
-
transition: $slider-thumb-label-transition
|
|
63
|
-
|
|
64
|
-
.v-slider-thumb__label
|
|
65
|
-
display: flex
|
|
66
|
-
align-items: center
|
|
67
|
-
justify-content: center
|
|
68
|
-
font-size: $slider-thumb-label-font-size
|
|
69
|
-
min-width: $slider-thumb-label-min-width
|
|
70
|
-
height: $slider-thumb-label-height
|
|
71
|
-
border-radius: $slider-thumb-label-border-radius
|
|
72
|
-
padding: $slider-thumb-label-padding
|
|
73
|
-
position: absolute
|
|
74
|
-
user-select: none
|
|
75
|
-
transition: $slider-thumb-label-transition
|
|
76
|
-
|
|
77
|
-
&::before
|
|
78
|
-
content: ''
|
|
79
|
-
width: 0
|
|
80
|
-
height: 0
|
|
81
|
-
position: absolute
|
|
82
|
-
|
|
83
|
-
.v-slider-thumb__ripple
|
|
84
|
-
position: absolute
|
|
85
|
-
left: calc(var(--v-slider-thumb-size) / -2)
|
|
86
|
-
top: calc(var(--v-slider-thumb-size) / -2)
|
|
87
|
-
width: calc(var(--v-slider-thumb-size) * 2)
|
|
88
|
-
height: calc(var(--v-slider-thumb-size) * 2)
|
|
89
|
-
background: inherit
|
|
90
|
-
|
|
91
|
-
// Horizontal
|
|
92
|
-
.v-slider.v-input--horizontal
|
|
8
|
+
@include tools.layer('components')
|
|
9
|
+
// Theme
|
|
93
10
|
.v-slider-thumb
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
inset-inline-start: calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)
|
|
11
|
+
touch-action: none
|
|
12
|
+
color: rgb(var(--v-theme-surface-variant))
|
|
97
13
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
top: 0
|
|
14
|
+
.v-input--error:not(.v-input--disabled) &
|
|
15
|
+
color: inherit
|
|
101
16
|
|
|
102
17
|
.v-slider-thumb__label
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
+tools.ltr()
|
|
106
|
-
transform: translateX(-50%)
|
|
107
|
-
+tools.rtl()
|
|
108
|
-
transform: translateX(50%)
|
|
18
|
+
background: rgba(var(--v-theme-surface-variant), .7)
|
|
19
|
+
color: rgb(var(--v-theme-on-surface-variant))
|
|
109
20
|
|
|
110
21
|
&::before
|
|
111
|
-
|
|
112
|
-
border-right: $slider-thumb-label-wedge-size solid transparent
|
|
113
|
-
border-top: $slider-thumb-label-wedge-size solid currentColor
|
|
114
|
-
bottom: -$slider-thumb-label-wedge-size
|
|
22
|
+
color: rgba(var(--v-theme-surface-variant), .7)
|
|
115
23
|
|
|
116
|
-
//
|
|
117
|
-
.v-slider.v-input--vertical
|
|
24
|
+
// Block
|
|
118
25
|
.v-slider-thumb
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
top: calc(var(--v-slider-thumb-size) / 2)
|
|
123
|
-
right: 0
|
|
26
|
+
outline: none
|
|
27
|
+
position: absolute
|
|
28
|
+
transition: $slider-transition
|
|
124
29
|
|
|
125
|
-
.v-slider-
|
|
126
|
-
|
|
127
|
-
|
|
30
|
+
.v-slider-thumb__surface
|
|
31
|
+
cursor: pointer
|
|
32
|
+
width: var(--v-slider-thumb-size)
|
|
33
|
+
height: var(--v-slider-thumb-size)
|
|
34
|
+
border-radius: $slider-thumb-border-radius
|
|
35
|
+
user-select: none
|
|
36
|
+
background-color: currentColor
|
|
128
37
|
|
|
129
38
|
&::before
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
39
|
+
transition: 0.3s settings.$standard-easing
|
|
40
|
+
content: ''
|
|
41
|
+
color: inherit
|
|
42
|
+
top: 0
|
|
43
|
+
left: 0
|
|
44
|
+
width: 100%
|
|
45
|
+
height: 100%
|
|
46
|
+
border-radius: $slider-thumb-border-radius
|
|
47
|
+
background: currentColor
|
|
48
|
+
position: absolute
|
|
49
|
+
pointer-events: none
|
|
50
|
+
opacity: 0
|
|
51
|
+
|
|
52
|
+
&::after
|
|
53
|
+
content: ''
|
|
54
|
+
width: $slider-thumb-touch-size
|
|
55
|
+
height: $slider-thumb-touch-size
|
|
56
|
+
position: absolute
|
|
57
|
+
top: 50%
|
|
58
|
+
left: 50%
|
|
59
|
+
transform: translate(-50%, -50%)
|
|
134
60
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
transform: scale(2)
|
|
139
|
-
opacity: $slider-thumb-focus-opacity
|
|
61
|
+
.v-slider-thumb__label-container
|
|
62
|
+
position: absolute
|
|
63
|
+
transition: $slider-thumb-label-transition
|
|
140
64
|
|
|
141
|
-
.v-slider-
|
|
142
|
-
|
|
65
|
+
.v-slider-thumb__label
|
|
66
|
+
display: flex
|
|
67
|
+
align-items: center
|
|
68
|
+
justify-content: center
|
|
69
|
+
font-size: $slider-thumb-label-font-size
|
|
70
|
+
min-width: $slider-thumb-label-min-width
|
|
71
|
+
height: $slider-thumb-label-height
|
|
72
|
+
border-radius: $slider-thumb-label-border-radius
|
|
73
|
+
padding: $slider-thumb-label-padding
|
|
74
|
+
position: absolute
|
|
75
|
+
user-select: none
|
|
76
|
+
transition: $slider-thumb-label-transition
|
|
143
77
|
|
|
144
|
-
|
|
145
|
-
|
|
78
|
+
&::before
|
|
79
|
+
content: ''
|
|
80
|
+
width: 0
|
|
81
|
+
height: 0
|
|
82
|
+
position: absolute
|
|
146
83
|
|
|
147
|
-
|
|
148
|
-
|
|
84
|
+
.v-slider-thumb__ripple
|
|
85
|
+
position: absolute
|
|
86
|
+
left: calc(var(--v-slider-thumb-size) / -2)
|
|
87
|
+
top: calc(var(--v-slider-thumb-size) / -2)
|
|
88
|
+
width: calc(var(--v-slider-thumb-size) * 2)
|
|
89
|
+
height: calc(var(--v-slider-thumb-size) * 2)
|
|
90
|
+
background: inherit
|
|
91
|
+
|
|
92
|
+
// Horizontal
|
|
93
|
+
.v-slider.v-input--horizontal
|
|
94
|
+
.v-slider-thumb
|
|
95
|
+
top: 50%
|
|
96
|
+
transform: translateY(-50%)
|
|
97
|
+
inset-inline-start: calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)
|
|
98
|
+
|
|
99
|
+
.v-slider-thumb__label-container
|
|
100
|
+
left: calc(var(--v-slider-thumb-size) / 2)
|
|
101
|
+
top: 0
|
|
102
|
+
|
|
103
|
+
.v-slider-thumb__label
|
|
104
|
+
bottom: $slider-thumb-label-offset
|
|
105
|
+
|
|
106
|
+
+tools.ltr()
|
|
107
|
+
transform: translateX(-50%)
|
|
108
|
+
+tools.rtl()
|
|
109
|
+
transform: translateX(50%)
|
|
110
|
+
|
|
111
|
+
&::before
|
|
112
|
+
border-left: $slider-thumb-label-wedge-size solid transparent
|
|
113
|
+
border-right: $slider-thumb-label-wedge-size solid transparent
|
|
114
|
+
border-top: $slider-thumb-label-wedge-size solid currentColor
|
|
115
|
+
bottom: -$slider-thumb-label-wedge-size
|
|
116
|
+
|
|
117
|
+
// Vertical
|
|
118
|
+
.v-slider.v-input--vertical
|
|
119
|
+
.v-slider-thumb
|
|
120
|
+
top: calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)
|
|
121
|
+
|
|
122
|
+
.v-slider-thumb__label-container
|
|
123
|
+
top: calc(var(--v-slider-thumb-size) / 2)
|
|
124
|
+
right: 0
|
|
125
|
+
|
|
126
|
+
.v-slider-thumb__label
|
|
127
|
+
top: math.div($slider-thumb-label-height, -2)
|
|
128
|
+
left: $slider-thumb-label-offset
|
|
129
|
+
|
|
130
|
+
&::before
|
|
131
|
+
border-right: $slider-thumb-label-wedge-size solid currentColor
|
|
132
|
+
border-top: $slider-thumb-label-wedge-size solid transparent
|
|
133
|
+
border-bottom: $slider-thumb-label-wedge-size solid transparent
|
|
134
|
+
left: -$slider-thumb-label-wedge-size
|
|
135
|
+
|
|
136
|
+
// Modifiers
|
|
137
|
+
.v-slider-thumb--focused
|
|
149
138
|
.v-slider-thumb__surface::before
|
|
150
139
|
transform: scale(2)
|
|
140
|
+
opacity: $slider-thumb-focus-opacity
|
|
141
|
+
|
|
142
|
+
.v-slider-thumb--pressed
|
|
143
|
+
transition: none
|
|
151
144
|
|
|
152
|
-
.v-slider-thumb:hover:not(.v-slider-thumb--focused)
|
|
153
145
|
.v-slider-thumb__surface::before
|
|
154
|
-
opacity: $slider-thumb-
|
|
146
|
+
opacity: $slider-thumb-pressed-opacity
|
|
147
|
+
|
|
148
|
+
@media (hover: hover)
|
|
149
|
+
.v-slider-thumb:hover
|
|
150
|
+
.v-slider-thumb__surface::before
|
|
151
|
+
transform: scale(2)
|
|
152
|
+
|
|
153
|
+
.v-slider-thumb:hover:not(.v-slider-thumb--focused)
|
|
154
|
+
.v-slider-thumb__surface::before
|
|
155
|
+
opacity: $slider-thumb-hover-opacity
|