@vuetify/nightly 3.7.5-dev.2024-12-03 → 3.7.5-master.2024-12-11
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/json/attributes.json +1004 -1012
- package/dist/json/importMap-labs.json +12 -12
- package/dist/json/importMap.json +136 -136
- package/dist/json/tags.json +0 -2
- package/dist/json/web-types.json +2130 -2148
- package/dist/vuetify-labs.css +2628 -2630
- package/dist/vuetify-labs.d.ts +13860 -3035
- package/dist/vuetify-labs.esm.js +18 -29
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +18 -29
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1038 -1040
- package/dist/vuetify.d.ts +11444 -2270
- package/dist/vuetify.esm.js +18 -29
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +18 -29
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +18 -17
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.mjs +1 -1
- package/lib/components/VAlert/index.d.mts +86 -8
- package/lib/components/VApp/index.d.mts +20 -4
- package/lib/components/VAppBar/VAppBar.mjs +1 -1
- package/lib/components/VAppBar/VAppBarNavIcon.mjs +1 -1
- package/lib/components/VAppBar/VAppBarTitle.mjs +1 -1
- package/lib/components/VAppBar/index.d.mts +148 -12
- package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -1
- package/lib/components/VAutocomplete/index.d.mts +1380 -221
- package/lib/components/VAvatar/index.d.mts +31 -4
- package/lib/components/VBadge/VBadge.mjs +1 -1
- package/lib/components/VBadge/index.d.mts +41 -4
- package/lib/components/VBanner/VBanner.mjs +1 -1
- package/lib/components/VBanner/index.d.mts +88 -12
- package/lib/components/VBottomNavigation/index.d.mts +32 -4
- package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
- package/lib/components/VBottomSheet/index.d.mts +88 -4
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +1 -1
- package/lib/components/VBreadcrumbs/index.d.mts +65 -12
- package/lib/components/VBtn/VBtn.mjs +1 -1
- package/lib/components/VBtn/index.d.mts +72 -4
- package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -1
- package/lib/components/VBtnGroup/index.d.mts +28 -4
- package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -1
- package/lib/components/VBtnToggle/index.d.mts +24 -4
- package/lib/components/VCard/VCard.mjs +1 -1
- package/lib/components/VCard/VCardItem.mjs +1 -1
- package/lib/components/VCard/VCardSubtitle.mjs +1 -1
- package/lib/components/VCard/VCardText.mjs +1 -1
- package/lib/components/VCard/index.d.mts +190 -24
- package/lib/components/VCarousel/VCarousel.mjs +1 -1
- package/lib/components/VCarousel/VCarouselItem.mjs +1 -1
- package/lib/components/VCarousel/index.d.mts +86 -8
- package/lib/components/VCheckbox/VCheckbox.mjs +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -1
- package/lib/components/VCheckbox/index.d.mts +90 -8
- package/lib/components/VChip/VChip.mjs +9 -16
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.mts +105 -9
- package/lib/components/VChipGroup/VChipGroup.mjs +1 -3
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/index.d.mts +28 -9
- package/lib/components/VCode/index.d.mts +18 -4
- package/lib/components/VColorPicker/VColorPicker.mjs +1 -1
- package/lib/components/VColorPicker/index.d.mts +68 -4
- package/lib/components/VCombobox/VCombobox.mjs +1 -1
- package/lib/components/VCombobox/index.d.mts +1380 -221
- package/lib/components/VConfirmEdit/VConfirmEdit.mjs +1 -1
- package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs +1 -1
- package/lib/components/VConfirmEdit/index.d.mts +13 -6
- package/lib/components/VCounter/VCounter.mjs +1 -1
- package/lib/components/VCounter/index.d.mts +31 -9
- package/lib/components/VDataIterator/index.d.mts +56 -12
- package/lib/components/VDataTable/VDataTable.mjs +1 -1
- package/lib/components/VDataTable/VDataTableFooter.mjs +1 -1
- package/lib/components/VDataTable/VDataTableGroupHeaderRow.mjs +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.mjs +1 -1
- package/lib/components/VDataTable/VDataTableRow.mjs +1 -1
- package/lib/components/VDataTable/VDataTableRows.mjs +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs +1 -1
- package/lib/components/VDataTable/index.d.mts +388 -36
- package/lib/components/VDatePicker/VDatePicker.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerMonths.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.mjs +1 -1
- package/lib/components/VDatePicker/index.d.mts +276 -24
- package/lib/components/VDefaultsProvider/index.d.mts +20 -4
- package/lib/components/VDialog/VDialog.mjs +1 -1
- package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +1 -1
- package/lib/components/VDialog/index.d.mts +389 -143
- package/lib/components/VDivider/index.d.mts +24 -4
- package/lib/components/VEmptyState/VEmptyState.mjs +1 -1
- package/lib/components/VEmptyState/index.d.mts +66 -4
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +1 -1
- package/lib/components/VExpansionPanel/index.d.mts +152 -16
- package/lib/components/VFab/VFab.mjs +1 -1
- package/lib/components/VFab/index.d.mts +78 -9
- package/lib/components/VField/VField.mjs +1 -1
- package/lib/components/VField/VFieldLabel.mjs +1 -1
- package/lib/components/VField/index.d.mts +59 -11
- package/lib/components/VFileInput/VFileInput.mjs +1 -1
- package/lib/components/VFileInput/index.d.mts +256 -71
- package/lib/components/VFooter/VFooter.mjs +1 -1
- package/lib/components/VFooter/index.d.mts +29 -4
- package/lib/components/VForm/index.d.mts +175 -267
- package/lib/components/VGrid/VContainer.mjs +1 -1
- package/lib/components/VGrid/index.d.mts +118 -16
- package/lib/components/VHover/index.d.mts +33 -4
- package/lib/components/VIcon/index.d.mts +75 -17
- package/lib/components/VImg/VImg.mjs +1 -1
- package/lib/components/VImg/index.d.mts +74 -19
- package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs +1 -1
- package/lib/components/VInfiniteScroll/index.d.mts +46 -4
- package/lib/components/VInput/VInput.mjs +1 -1
- package/lib/components/VInput/index.d.mts +37 -4
- package/lib/components/VItemGroup/index.d.mts +65 -8
- package/lib/components/VKbd/index.d.mts +18 -4
- package/lib/components/VLabel/index.d.mts +20 -4
- package/lib/components/VLayout/index.d.mts +48 -8
- package/lib/components/VLazy/VLazy.mjs +1 -1
- package/lib/components/VLazy/index.d.mts +31 -4
- package/lib/components/VList/VList.mjs +1 -1
- package/lib/components/VList/VListChildren.mjs +1 -1
- package/lib/components/VList/VListGroup.mjs +1 -1
- package/lib/components/VList/VListItem.mjs +1 -1
- package/lib/components/VList/VListItemAction.mjs +1 -1
- package/lib/components/VList/VListItemMedia.mjs +1 -1
- package/lib/components/VList/VListItemSubtitle.mjs +1 -1
- package/lib/components/VList/index.d.mts +291 -48
- package/lib/components/VLocaleProvider/index.d.mts +21 -4
- package/lib/components/VMain/index.d.mts +25 -4
- package/lib/components/VMenu/VMenu.mjs +1 -1
- package/lib/components/VMenu/index.d.mts +397 -155
- package/lib/components/VMessages/index.d.mts +27 -4
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +1 -1
- package/lib/components/VNavigationDrawer/index.d.mts +62 -7
- package/lib/components/VOtpInput/VOtpInput.mjs +1 -1
- package/lib/components/VOtpInput/index.d.mts +52 -7
- package/lib/components/VOverlay/VOverlay.mjs +1 -1
- package/lib/components/VOverlay/index.d.mts +101 -19
- package/lib/components/VPagination/VPagination.mjs +1 -1
- package/lib/components/VPagination/index.d.mts +64 -4
- package/lib/components/VParallax/VParallax.mjs +1 -1
- package/lib/components/VParallax/index.d.mts +27 -4
- package/lib/components/VProgressCircular/index.d.mts +34 -4
- package/lib/components/VProgressLinear/index.d.mts +54 -4
- package/lib/components/VRadio/VRadio.mjs +1 -1
- package/lib/components/VRadio/index.d.mts +68 -4
- package/lib/components/VRadioGroup/VRadioGroup.mjs +1 -1
- package/lib/components/VRadioGroup/index.d.mts +48 -4
- package/lib/components/VRangeSlider/VRangeSlider.mjs +3 -3
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/index.d.mts +107 -4
- package/lib/components/VRating/VRating.mjs +1 -1
- package/lib/components/VRating/index.d.mts +42 -4
- package/lib/components/VResponsive/index.d.mts +29 -4
- package/lib/components/VSelect/VSelect.mjs +1 -1
- package/lib/components/VSelect/index.d.mts +1372 -220
- package/lib/components/VSelectionControl/VSelectionControl.css +1 -3
- package/lib/components/VSelectionControl/VSelectionControl.mjs +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.sass +1 -5
- package/lib/components/VSelectionControl/index.d.mts +37 -10
- package/lib/components/VSelectionControlGroup/index.d.mts +26 -4
- package/lib/components/VSheet/VSheet.mjs +1 -1
- package/lib/components/VSheet/index.d.mts +32 -4
- package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +1 -1
- package/lib/components/VSkeletonLoader/index.d.mts +28 -4
- package/lib/components/VSlideGroup/index.d.mts +70 -14
- package/lib/components/VSlider/VSlider.mjs +1 -1
- package/lib/components/VSlider/VSliderThumb.mjs +1 -1
- package/lib/components/VSlider/index.d.mts +106 -4
- package/lib/components/VSnackbar/VSnackbar.mjs +1 -1
- package/lib/components/VSnackbar/index.d.mts +398 -152
- package/lib/components/VSparkline/VBarline.mjs +2 -1
- package/lib/components/VSparkline/VBarline.mjs.map +1 -1
- package/lib/components/VSparkline/VSparkline.mjs +1 -1
- package/lib/components/VSparkline/VTrendline.mjs +2 -1
- package/lib/components/VSparkline/VTrendline.mjs.map +1 -1
- package/lib/components/VSparkline/index.d.mts +49 -4
- package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
- package/lib/components/VSpeedDial/index.d.mts +85 -4
- package/lib/components/VStepper/VStepper.mjs +1 -1
- package/lib/components/VStepper/VStepperItem.mjs +1 -1
- package/lib/components/VStepper/VStepperWindow.mjs +1 -1
- package/lib/components/VStepper/VStepperWindowItem.mjs +1 -1
- package/lib/components/VStepper/index.d.mts +250 -24
- package/lib/components/VSwitch/VSwitch.mjs +1 -1
- package/lib/components/VSwitch/index.d.mts +59 -4
- package/lib/components/VSystemBar/VSystemBar.mjs +1 -1
- package/lib/components/VSystemBar/index.d.mts +28 -4
- package/lib/components/VTable/index.d.mts +33 -4
- package/lib/components/VTabs/VTab.mjs +1 -1
- package/lib/components/VTabs/VTabs.mjs +1 -1
- package/lib/components/VTabs/VTabsWindow.mjs +1 -1
- package/lib/components/VTabs/VTabsWindowItem.mjs +1 -1
- package/lib/components/VTabs/index.d.mts +394 -98
- package/lib/components/VTextField/VTextField.mjs +1 -1
- package/lib/components/VTextField/index.d.mts +374 -152
- package/lib/components/VTextarea/VTextarea.mjs +1 -1
- package/lib/components/VTextarea/index.d.mts +244 -71
- package/lib/components/VThemeProvider/index.d.mts +20 -4
- package/lib/components/VTimeline/VTimeline.mjs +1 -1
- package/lib/components/VTimeline/VTimelineDivider.mjs +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs +1 -1
- package/lib/components/VTimeline/index.d.mts +75 -8
- package/lib/components/VToolbar/VToolbar.mjs +1 -1
- package/lib/components/VToolbar/index.d.mts +90 -12
- package/lib/components/VTooltip/VTooltip.mjs +1 -1
- package/lib/components/VTooltip/index.d.mts +386 -147
- package/lib/components/VValidation/index.d.mts +24 -10
- package/lib/components/VVirtualScroll/VVirtualScroll.mjs +1 -1
- package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +1 -1
- package/lib/components/VVirtualScroll/index.d.mts +15 -4
- package/lib/components/VWindow/VWindow.mjs +1 -1
- package/lib/components/VWindow/VWindowItem.mjs +1 -1
- package/lib/components/VWindow/index.d.mts +47 -8
- package/lib/components/index.d.mts +11705 -2531
- package/lib/components/transitions/dialog-transition.mjs +2 -1
- package/lib/components/transitions/dialog-transition.mjs.map +1 -1
- package/lib/components/transitions/index.d.mts +309 -64
- package/lib/composables/icons.mjs +1 -1
- package/lib/composables/variant.mjs +1 -1
- package/lib/composables/virtual.mjs +5 -1
- package/lib/composables/virtual.mjs.map +1 -1
- 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 +49 -49
- package/lib/labs/VCalendar/VCalendar.mjs +1 -1
- package/lib/labs/VCalendar/VCalendarDay.mjs +1 -1
- package/lib/labs/VCalendar/index.d.mts +211 -24
- package/lib/labs/VDateInput/VDateInput.mjs +1 -1
- package/lib/labs/VDateInput/index.d.mts +115 -4
- package/lib/labs/VNumberInput/VNumberInput.mjs +1 -1
- package/lib/labs/VNumberInput/index.d.mts +1267 -564
- package/lib/labs/VPicker/VPicker.mjs +1 -1
- package/lib/labs/VPicker/index.d.mts +63 -8
- package/lib/labs/VPullToRefresh/index.d.mts +35 -4
- package/lib/labs/VSnackbarQueue/VSnackbarQueue.mjs +1 -1
- package/lib/labs/VSnackbarQueue/index.d.mts +453 -156
- package/lib/labs/VStepperVertical/VStepperVertical.mjs +1 -1
- package/lib/labs/VStepperVertical/VStepperVerticalActions.mjs +1 -1
- package/lib/labs/VStepperVertical/VStepperVerticalItem.mjs +1 -1
- package/lib/labs/VStepperVertical/index.d.mts +227 -12
- package/lib/labs/VTimePicker/VTimePicker.mjs +1 -1
- package/lib/labs/VTimePicker/VTimePickerControls.mjs +1 -1
- package/lib/labs/VTimePicker/index.d.mts +122 -12
- package/lib/labs/VTreeview/VTreeview.mjs +1 -1
- package/lib/labs/VTreeview/VTreeviewChildren.mjs +1 -1
- package/lib/labs/VTreeview/VTreeviewGroup.mjs +1 -1
- package/lib/labs/VTreeview/VTreeviewItem.mjs +1 -1
- package/lib/labs/VTreeview/index.d.mts +205 -18
- package/lib/labs/components.d.mts +2856 -959
- package/package.json +4 -5
@@ -8,7 +8,7 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
|
|
8
8
|
type ClassValue = any;
|
9
9
|
|
10
10
|
declare const VProgressCircular: {
|
11
|
-
new (...args: any[]): vue.
|
11
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
12
12
|
width: string | number;
|
13
13
|
rotate: string | number;
|
14
14
|
style: vue.StyleValue;
|
@@ -38,7 +38,37 @@ declare const VProgressCircular: {
|
|
38
38
|
"v-slot:default"?: false | ((arg: {
|
39
39
|
value: number;
|
40
40
|
}) => vue.VNodeChild) | undefined;
|
41
|
-
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
41
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
42
|
+
width: string | number;
|
43
|
+
rotate: string | number;
|
44
|
+
style: vue.StyleValue;
|
45
|
+
size: string | number;
|
46
|
+
tag: string;
|
47
|
+
modelValue: string | number;
|
48
|
+
} & {
|
49
|
+
color?: string | undefined;
|
50
|
+
class?: any;
|
51
|
+
theme?: string | undefined;
|
52
|
+
indeterminate?: boolean | "disable-shrink" | undefined;
|
53
|
+
bgColor?: string | undefined;
|
54
|
+
} & {
|
55
|
+
$children?: vue.VNodeChild | {
|
56
|
+
default?: ((arg: {
|
57
|
+
value: number;
|
58
|
+
}) => vue.VNodeChild) | undefined;
|
59
|
+
} | ((arg: {
|
60
|
+
value: number;
|
61
|
+
}) => vue.VNodeChild);
|
62
|
+
'v-slots'?: {
|
63
|
+
default?: false | ((arg: {
|
64
|
+
value: number;
|
65
|
+
}) => vue.VNodeChild) | undefined;
|
66
|
+
} | undefined;
|
67
|
+
} & {
|
68
|
+
"v-slot:default"?: false | ((arg: {
|
69
|
+
value: number;
|
70
|
+
}) => vue.VNodeChild) | undefined;
|
71
|
+
}, {
|
42
72
|
width: string | number;
|
43
73
|
rotate: string | number;
|
44
74
|
style: vue.StyleValue;
|
@@ -49,7 +79,7 @@ declare const VProgressCircular: {
|
|
49
79
|
default: (arg: {
|
50
80
|
value: number;
|
51
81
|
}) => vue.VNode[];
|
52
|
-
}>>,
|
82
|
+
}>>, {
|
53
83
|
P: {};
|
54
84
|
B: {};
|
55
85
|
D: {};
|
@@ -138,7 +168,7 @@ declare const VProgressCircular: {
|
|
138
168
|
default: (arg: {
|
139
169
|
value: number;
|
140
170
|
}) => vue.VNode[];
|
141
|
-
}
|
171
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
142
172
|
theme: StringConstructor;
|
143
173
|
tag: Omit<{
|
144
174
|
type: StringConstructor;
|
@@ -14,7 +14,7 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
|
|
14
14
|
}
|
15
15
|
|
16
16
|
declare const VProgressLinear: {
|
17
|
-
new (...args: any[]): vue.
|
17
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
18
18
|
reverse: boolean;
|
19
19
|
max: string | number;
|
20
20
|
absolute: boolean;
|
@@ -66,7 +66,57 @@ declare const VProgressLinear: {
|
|
66
66
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
67
67
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
68
68
|
'update:modelValue': (value: number) => true;
|
69
|
-
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
69
|
+
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
70
|
+
reverse: boolean;
|
71
|
+
max: string | number;
|
72
|
+
absolute: boolean;
|
73
|
+
location: Anchor | null;
|
74
|
+
height: string | number;
|
75
|
+
active: boolean;
|
76
|
+
stream: boolean;
|
77
|
+
style: vue.StyleValue;
|
78
|
+
tag: string;
|
79
|
+
indeterminate: boolean;
|
80
|
+
modelValue: string | number;
|
81
|
+
tile: boolean;
|
82
|
+
bufferValue: string | number;
|
83
|
+
clickable: boolean;
|
84
|
+
striped: boolean;
|
85
|
+
roundedBar: boolean;
|
86
|
+
} & {
|
87
|
+
color?: string | undefined;
|
88
|
+
opacity?: string | number | undefined;
|
89
|
+
class?: any;
|
90
|
+
theme?: string | undefined;
|
91
|
+
rounded?: string | number | boolean | undefined;
|
92
|
+
bgColor?: string | undefined;
|
93
|
+
bgOpacity?: string | number | undefined;
|
94
|
+
bufferColor?: string | undefined;
|
95
|
+
bufferOpacity?: string | number | undefined;
|
96
|
+
} & {
|
97
|
+
$children?: vue.VNodeChild | {
|
98
|
+
default?: ((arg: {
|
99
|
+
value: number;
|
100
|
+
buffer: number;
|
101
|
+
}) => vue.VNodeChild) | undefined;
|
102
|
+
} | ((arg: {
|
103
|
+
value: number;
|
104
|
+
buffer: number;
|
105
|
+
}) => vue.VNodeChild);
|
106
|
+
'v-slots'?: {
|
107
|
+
default?: false | ((arg: {
|
108
|
+
value: number;
|
109
|
+
buffer: number;
|
110
|
+
}) => vue.VNodeChild) | undefined;
|
111
|
+
} | undefined;
|
112
|
+
} & {
|
113
|
+
"v-slot:default"?: false | ((arg: {
|
114
|
+
value: number;
|
115
|
+
buffer: number;
|
116
|
+
}) => vue.VNodeChild) | undefined;
|
117
|
+
} & {
|
118
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
119
|
+
}, {
|
70
120
|
reverse: boolean;
|
71
121
|
max: string | number;
|
72
122
|
absolute: boolean;
|
@@ -89,7 +139,7 @@ declare const VProgressLinear: {
|
|
89
139
|
value: number;
|
90
140
|
buffer: number;
|
91
141
|
}) => vue.VNode[];
|
92
|
-
}>>,
|
142
|
+
}>>, {
|
93
143
|
P: {};
|
94
144
|
B: {};
|
95
145
|
D: {};
|
@@ -243,7 +293,7 @@ declare const VProgressLinear: {
|
|
243
293
|
value: number;
|
244
294
|
buffer: number;
|
245
295
|
}) => vue.VNode[];
|
246
|
-
}
|
296
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
247
297
|
theme: StringConstructor;
|
248
298
|
tag: {
|
249
299
|
type: StringConstructor;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { mergeProps as _mergeProps,
|
1
|
+
import { createVNode as _createVNode, mergeProps as _mergeProps, resolveDirective as _resolveDirective } from "vue";
|
2
2
|
// Components
|
3
3
|
import { makeVSelectionControlProps, VSelectionControl } from "../VSelectionControl/VSelectionControl.mjs"; // Utilities
|
4
4
|
import { genericComponent, propsFactory, useRender } from "../../util/index.mjs"; // Types
|
@@ -44,7 +44,7 @@ type SelectionControlSlot = {
|
|
44
44
|
};
|
45
45
|
|
46
46
|
declare const VRadio: {
|
47
|
-
new (...args: any[]): vue.
|
47
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
48
48
|
inline: boolean;
|
49
49
|
error: boolean;
|
50
50
|
style: vue.StyleValue;
|
@@ -108,7 +108,71 @@ declare const VRadio: {
|
|
108
108
|
props: Record<string, unknown>;
|
109
109
|
}) => vue.VNodeChild) | undefined;
|
110
110
|
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
111
|
-
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
111
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
112
|
+
inline: boolean;
|
113
|
+
error: boolean;
|
114
|
+
style: vue.StyleValue;
|
115
|
+
disabled: boolean | null;
|
116
|
+
multiple: boolean | null;
|
117
|
+
readonly: boolean | null;
|
118
|
+
density: Density;
|
119
|
+
ripple: boolean | {
|
120
|
+
class: string;
|
121
|
+
} | undefined;
|
122
|
+
falseIcon: IconValue;
|
123
|
+
trueIcon: IconValue;
|
124
|
+
valueComparator: typeof deepEqual;
|
125
|
+
} & {
|
126
|
+
name?: string | undefined;
|
127
|
+
type?: string | undefined;
|
128
|
+
id?: string | undefined;
|
129
|
+
color?: string | undefined;
|
130
|
+
value?: any;
|
131
|
+
label?: string | undefined;
|
132
|
+
class?: any;
|
133
|
+
theme?: string | undefined;
|
134
|
+
modelValue?: any;
|
135
|
+
baseColor?: string | undefined;
|
136
|
+
defaultsTarget?: string | undefined;
|
137
|
+
trueValue?: any;
|
138
|
+
falseValue?: any;
|
139
|
+
} & {
|
140
|
+
$children?: vue.VNodeChild | ((arg: {
|
141
|
+
backgroundColorClasses: vue.Ref<string[]>;
|
142
|
+
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
143
|
+
}) => vue.VNodeChild) | {
|
144
|
+
default?: ((arg: {
|
145
|
+
backgroundColorClasses: vue.Ref<string[]>;
|
146
|
+
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
147
|
+
}) => vue.VNodeChild) | undefined;
|
148
|
+
label?: ((arg: {
|
149
|
+
label: string | undefined;
|
150
|
+
props: Record<string, unknown>;
|
151
|
+
}) => vue.VNodeChild) | undefined;
|
152
|
+
input?: ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
153
|
+
};
|
154
|
+
'v-slots'?: {
|
155
|
+
default?: false | ((arg: {
|
156
|
+
backgroundColorClasses: vue.Ref<string[]>;
|
157
|
+
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
158
|
+
}) => vue.VNodeChild) | undefined;
|
159
|
+
label?: false | ((arg: {
|
160
|
+
label: string | undefined;
|
161
|
+
props: Record<string, unknown>;
|
162
|
+
}) => vue.VNodeChild) | undefined;
|
163
|
+
input?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
164
|
+
} | undefined;
|
165
|
+
} & {
|
166
|
+
"v-slot:default"?: false | ((arg: {
|
167
|
+
backgroundColorClasses: vue.Ref<string[]>;
|
168
|
+
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
169
|
+
}) => vue.VNodeChild) | undefined;
|
170
|
+
"v-slot:label"?: false | ((arg: {
|
171
|
+
label: string | undefined;
|
172
|
+
props: Record<string, unknown>;
|
173
|
+
}) => vue.VNodeChild) | undefined;
|
174
|
+
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
175
|
+
}, {
|
112
176
|
inline: boolean;
|
113
177
|
error: boolean;
|
114
178
|
style: vue.StyleValue;
|
@@ -132,7 +196,7 @@ declare const VRadio: {
|
|
132
196
|
props: Record<string, unknown>;
|
133
197
|
}) => vue.VNode[];
|
134
198
|
input: (arg: SelectionControlSlot) => vue.VNode[];
|
135
|
-
}>>,
|
199
|
+
}>>, {
|
136
200
|
P: {};
|
137
201
|
B: {};
|
138
202
|
D: {};
|
@@ -309,7 +373,7 @@ declare const VRadio: {
|
|
309
373
|
props: Record<string, unknown>;
|
310
374
|
}) => vue.VNode[];
|
311
375
|
input: (arg: SelectionControlSlot) => vue.VNode[];
|
312
|
-
}
|
376
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
313
377
|
theme: StringConstructor;
|
314
378
|
density: {
|
315
379
|
type: vue.PropType<Density>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { mergeProps as _mergeProps, resolveDirective as _resolveDirective, createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
2
2
|
// Styles
|
3
3
|
import "./VRadioGroup.css";
|
4
4
|
|
@@ -108,7 +108,7 @@ type VRadioGroupSlots = Omit<VInputSlots, 'default'> & {
|
|
108
108
|
};
|
109
109
|
};
|
110
110
|
declare const VRadioGroup: {
|
111
|
-
new (...args: any[]): vue.
|
111
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
112
112
|
type: string;
|
113
113
|
inline: boolean;
|
114
114
|
error: boolean;
|
@@ -154,7 +154,51 @@ declare const VRadioGroup: {
|
|
154
154
|
hideDetails?: boolean | "auto" | undefined;
|
155
155
|
} & {}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
156
156
|
'update:modelValue': (value: any) => true;
|
157
|
-
}, "$children" | "v-slots" | "v-slot:default" | "modelValue" | "v-slot:prepend" | "v-slot:append" | "update:modelValue" | "v-slot:label" | "v-slot:message" | "v-slot:details">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
157
|
+
}, "$children" | "v-slots" | "v-slot:default" | "modelValue" | "v-slot:prepend" | "v-slot:append" | "update:modelValue" | "v-slot:label" | "v-slot:message" | "v-slot:details">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
158
|
+
type: string;
|
159
|
+
inline: boolean;
|
160
|
+
error: boolean;
|
161
|
+
height: string | number;
|
162
|
+
direction: "horizontal" | "vertical";
|
163
|
+
style: vue.StyleValue;
|
164
|
+
disabled: boolean | null;
|
165
|
+
readonly: boolean | null;
|
166
|
+
messages: string | readonly string[];
|
167
|
+
focused: boolean;
|
168
|
+
errorMessages: string | readonly string[] | null;
|
169
|
+
maxErrors: string | number;
|
170
|
+
rules: readonly ValidationRule[];
|
171
|
+
density: Density;
|
172
|
+
ripple: boolean | {
|
173
|
+
class: string;
|
174
|
+
} | undefined;
|
175
|
+
falseIcon: IconValue;
|
176
|
+
trueIcon: IconValue;
|
177
|
+
valueComparator: typeof deepEqual;
|
178
|
+
centerAffix: boolean;
|
179
|
+
hideSpinButtons: boolean;
|
180
|
+
persistentHint: boolean;
|
181
|
+
} & {
|
182
|
+
name?: string | undefined;
|
183
|
+
id?: string | undefined;
|
184
|
+
width?: string | number | undefined;
|
185
|
+
color?: string | undefined;
|
186
|
+
maxWidth?: string | number | undefined;
|
187
|
+
minWidth?: string | number | undefined;
|
188
|
+
label?: string | undefined;
|
189
|
+
class?: any;
|
190
|
+
theme?: string | undefined;
|
191
|
+
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
192
|
+
validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
|
193
|
+
validationValue?: any;
|
194
|
+
prependIcon?: IconValue | undefined;
|
195
|
+
appendIcon?: IconValue | undefined;
|
196
|
+
defaultsTarget?: string | undefined;
|
197
|
+
'onClick:append'?: ((args_0: MouseEvent) => void) | undefined;
|
198
|
+
'onClick:prepend'?: ((args_0: MouseEvent) => void) | undefined;
|
199
|
+
hint?: string | undefined;
|
200
|
+
hideDetails?: boolean | "auto" | undefined;
|
201
|
+
} & {}, {
|
158
202
|
type: string;
|
159
203
|
inline: boolean;
|
160
204
|
error: boolean;
|
@@ -188,7 +232,7 @@ declare const VRadioGroup: {
|
|
188
232
|
label: string | undefined;
|
189
233
|
props: Record<string, any>;
|
190
234
|
}) => vue.VNode[];
|
191
|
-
}>>,
|
235
|
+
}>>, {
|
192
236
|
P: {};
|
193
237
|
B: {};
|
194
238
|
D: {};
|
@@ -347,7 +391,7 @@ declare const VRadioGroup: {
|
|
347
391
|
label: string | undefined;
|
348
392
|
props: Record<string, any>;
|
349
393
|
}) => vue.VNode[];
|
350
|
-
}
|
394
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T>(props: {
|
351
395
|
modelValue?: T | null;
|
352
396
|
"onUpdate:modelValue"?: (value: T | null) => void;
|
353
397
|
}, slots: VRadioGroupSlots) => GenericProps<typeof props, typeof slots>) & FilterPropsOptions<{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
2
2
|
// Styles
|
3
3
|
import "../VSlider/VSlider.css";
|
4
4
|
|
@@ -170,7 +170,7 @@ export const VRangeSlider = genericComponent()({
|
|
170
170
|
// the thumbs are on top of each other
|
171
171
|
// and they are both at minimum value
|
172
172
|
// but only if focused from outside.
|
173
|
-
if (model.value[0] === model.value[1] && model.value[1] === min.value && e.relatedTarget !== stopThumbRef.value?.$el) {
|
173
|
+
if (max.value !== min.value && model.value[0] === model.value[1] && model.value[1] === min.value && e.relatedTarget !== stopThumbRef.value?.$el) {
|
174
174
|
startThumbRef.value?.$el.blur();
|
175
175
|
stopThumbRef.value?.$el.focus();
|
176
176
|
}
|
@@ -199,7 +199,7 @@ export const VRangeSlider = genericComponent()({
|
|
199
199
|
// the thumbs are on top of each other
|
200
200
|
// and they are both at maximum value
|
201
201
|
// but only if focused from outside.
|
202
|
-
if (model.value[0] === model.value[1] && model.value[0] === max.value && e.relatedTarget !== startThumbRef.value?.$el) {
|
202
|
+
if (max.value !== min.value && model.value[0] === model.value[1] && model.value[0] === max.value && e.relatedTarget !== startThumbRef.value?.$el) {
|
203
203
|
stopThumbRef.value?.$el.blur();
|
204
204
|
startThumbRef.value?.$el.focus();
|
205
205
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VRangeSlider.mjs","names":["makeVInputProps","VInput","VLabel","getOffset","makeSliderProps","useSlider","useSteps","VSliderThumb","VSliderTrack","makeFocusProps","useFocus","useRtl","useProxiedModel","computed","ref","genericComponent","propsFactory","useRender","makeVRangeSliderProps","strict","Boolean","modelValue","type","Array","default","VRangeSlider","name","props","emits","value","end","start","setup","_ref","slots","emit","startThumbRef","stopThumbRef","inputRef","rtlClasses","getActiveThumb","e","startOffset","$el","direction","stopOffset","a","Math","abs","b","steps","model","undefined","arr","length","map","roundValue","activeThumbRef","hasLabels","max","min","mousePressed","onSliderMousedown","onSliderTouchstart","position","trackContainerRef","readonly","onSliderStart","onSliderEnd","_ref2","newValue","onSliderMove","_ref3","stop","focus","isFocused","blur","trackStart","trackStop","inputProps","filterProps","hasPrepend","label","prepend","_createVNode","_mergeProps","disabled","class","style","slotProps","_Fragment","_ref4","id","messagesId","v","relatedTarget","onBlur","ripple"],"sources":["../../../src/components/VRangeSlider/VRangeSlider.tsx"],"sourcesContent":["// Styles\nimport '../VSlider/VSlider.sass'\n\n// Components\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VLabel } from '@/components/VLabel'\nimport { getOffset, makeSliderProps, useSlider, useSteps } from '@/components/VSlider/slider'\nimport { VSliderThumb } from '@/components/VSlider/VSliderThumb'\nimport { VSliderTrack } from '@/components/VSlider/VSliderTrack'\n\n// Composables\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { useRtl } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType, WritableComputedRef } from 'vue'\nimport type { VSliderSlots } from '../VSlider/VSlider'\n\nexport const makeVRangeSliderProps = propsFactory({\n ...makeFocusProps(),\n ...makeVInputProps(),\n ...makeSliderProps(),\n\n strict: Boolean,\n modelValue: {\n type: Array as PropType<readonly (string | number)[]>,\n default: () => ([0, 0]),\n },\n}, 'VRangeSlider')\n\nexport const VRangeSlider = genericComponent<VSliderSlots>()({\n name: 'VRangeSlider',\n\n props: makeVRangeSliderProps(),\n\n emits: {\n 'update:focused': (value: boolean) => true,\n 'update:modelValue': (value: [number, number]) => true,\n end: (value: [number, number]) => true,\n start: (value: [number, number]) => true,\n },\n\n setup (props, { slots, emit }) {\n const startThumbRef = ref<VSliderThumb>()\n const stopThumbRef = ref<VSliderThumb>()\n const inputRef = ref<VInput>()\n const { rtlClasses } = useRtl()\n\n function getActiveThumb (e: MouseEvent | TouchEvent) {\n if (!startThumbRef.value || !stopThumbRef.value) return\n\n const startOffset = getOffset(e, startThumbRef.value.$el, props.direction)\n const stopOffset = getOffset(e, stopThumbRef.value.$el, props.direction)\n\n const a = Math.abs(startOffset)\n const b = Math.abs(stopOffset)\n\n return (a < b || (a === b && startOffset < 0)) ? startThumbRef.value.$el : stopThumbRef.value.$el\n }\n\n const steps = useSteps(props)\n\n const model = useProxiedModel(\n props,\n 'modelValue',\n undefined,\n arr => {\n if (!arr?.length) return [0, 0]\n\n return arr.map(value => steps.roundValue(value))\n },\n ) as WritableComputedRef<[number, number]> & { readonly externalValue: number[] }\n\n const {\n activeThumbRef,\n hasLabels,\n max,\n min,\n mousePressed,\n onSliderMousedown,\n onSliderTouchstart,\n position,\n trackContainerRef,\n readonly,\n } = useSlider({\n props,\n steps,\n onSliderStart: () => {\n emit('start', model.value)\n },\n onSliderEnd: ({ value }) => {\n const newValue: [number, number] = activeThumbRef.value === startThumbRef.value?.$el\n ? [value, model.value[1]]\n : [model.value[0], value]\n\n if (!props.strict && newValue[0] < newValue[1]) {\n model.value = newValue\n }\n\n emit('end', model.value)\n },\n onSliderMove: ({ value }) => {\n const [start, stop] = model.value\n\n if (!props.strict && start === stop && start !== min.value) {\n activeThumbRef.value = value > start ? stopThumbRef.value?.$el : startThumbRef.value?.$el\n activeThumbRef.value?.focus()\n }\n\n if (activeThumbRef.value === startThumbRef.value?.$el) {\n model.value = [Math.min(value, stop), stop]\n } else {\n model.value = [start, Math.max(start, value)]\n }\n },\n getActiveThumb,\n })\n\n const { isFocused, focus, blur } = useFocus(props)\n const trackStart = computed(() => position(model.value[0]))\n const trackStop = computed(() => position(model.value[1]))\n\n useRender(() => {\n const inputProps = VInput.filterProps(props)\n const hasPrepend = !!(props.label || slots.label || slots.prepend)\n\n return (\n <VInput\n class={[\n 'v-slider',\n 'v-range-slider',\n {\n 'v-slider--has-labels': !!slots['tick-label'] || hasLabels.value,\n 'v-slider--focused': isFocused.value,\n 'v-slider--pressed': mousePressed.value,\n 'v-slider--disabled': props.disabled,\n },\n rtlClasses.value,\n props.class,\n ]}\n style={ props.style }\n ref={ inputRef }\n { ...inputProps }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n prepend: hasPrepend ? slotProps => (\n <>\n { slots.label?.(slotProps) ?? (\n props.label\n ? (\n <VLabel\n class=\"v-slider__label\"\n text={ props.label }\n />\n ) : undefined\n )}\n\n { slots.prepend?.(slotProps) }\n </>\n ) : undefined,\n default: ({ id, messagesId }) => (\n <div\n class=\"v-slider__container\"\n onMousedown={ !readonly.value ? onSliderMousedown : undefined }\n onTouchstartPassive={ !readonly.value ? onSliderTouchstart : undefined }\n >\n <input\n id={ `${id.value}_start` }\n name={ props.name || id.value }\n disabled={ !!props.disabled }\n readonly={ !!props.readonly }\n tabindex=\"-1\"\n value={ model.value[0] }\n />\n\n <input\n id={ `${id.value}_stop` }\n name={ props.name || id.value }\n disabled={ !!props.disabled }\n readonly={ !!props.readonly }\n tabindex=\"-1\"\n value={ model.value[1] }\n />\n\n <VSliderTrack\n ref={ trackContainerRef }\n start={ trackStart.value }\n stop={ trackStop.value }\n >\n {{ 'tick-label': slots['tick-label'] }}\n </VSliderTrack>\n\n <VSliderThumb\n ref={ startThumbRef }\n aria-describedby={ messagesId.value }\n focused={ isFocused && activeThumbRef.value === startThumbRef.value?.$el }\n modelValue={ model.value[0] }\n onUpdate:modelValue={ v => (model.value = [v, model.value[1]]) }\n onFocus={ (e: FocusEvent) => {\n focus()\n activeThumbRef.value = startThumbRef.value?.$el\n\n // Make sure second thumb is focused if\n // the thumbs are on top of each other\n // and they are both at minimum value\n // but only if focused from outside.\n if (\n model.value[0] === model.value[1] &&\n model.value[1] === min.value &&\n e.relatedTarget !== stopThumbRef.value?.$el\n ) {\n startThumbRef.value?.$el.blur()\n stopThumbRef.value?.$el.focus()\n }\n }}\n onBlur={ () => {\n blur()\n activeThumbRef.value = undefined\n }}\n min={ min.value }\n max={ model.value[1] }\n position={ trackStart.value }\n ripple={ props.ripple }\n >\n {{ 'thumb-label': slots['thumb-label'] }}\n </VSliderThumb>\n\n <VSliderThumb\n ref={ stopThumbRef }\n aria-describedby={ messagesId.value }\n focused={ isFocused && activeThumbRef.value === stopThumbRef.value?.$el }\n modelValue={ model.value[1] }\n onUpdate:modelValue={ v => (model.value = [model.value[0], v]) }\n onFocus={ (e: FocusEvent) => {\n focus()\n activeThumbRef.value = stopThumbRef.value?.$el\n\n // Make sure first thumb is focused if\n // the thumbs are on top of each other\n // and they are both at maximum value\n // but only if focused from outside.\n if (\n model.value[0] === model.value[1] &&\n model.value[0] === max.value &&\n e.relatedTarget !== startThumbRef.value?.$el\n ) {\n stopThumbRef.value?.$el.blur()\n startThumbRef.value?.$el.focus()\n }\n }}\n onBlur={ () => {\n blur()\n activeThumbRef.value = undefined\n }}\n min={ model.value[0] }\n max={ max.value }\n position={ trackStop.value }\n ripple={ props.ripple }\n >\n {{ 'thumb-label': slots['thumb-label'] }}\n </VSliderThumb>\n </div>\n ),\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VRangeSlider = InstanceType<typeof VRangeSlider>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,eAAe,EAAEC,MAAM;AAAA,SACvBC,MAAM;AAAA,SACNC,SAAS,EAAEC,eAAe,EAAEC,SAAS,EAAEC,QAAQ;AAAA,SAC/CC,YAAY;AAAA,SACZC,YAAY,uCAErB;AAAA,SACSC,cAAc,EAAEC,QAAQ;AAAA,SACxBC,MAAM;AAAA,SACNC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAC1BC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,gCAElD;AAIA,OAAO,MAAMC,qBAAqB,GAAGF,YAAY,CAAC;EAChD,GAAGP,cAAc,CAAC,CAAC;EACnB,GAAGT,eAAe,CAAC,CAAC;EACpB,GAAGI,eAAe,CAAC,CAAC;EAEpBe,MAAM,EAAEC,OAAO;E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KAAK,CAAC,CAAC,CAAC,KAAKsB,KAAK,CAACtB,KAAK,CAAC,CAAC,CAAC,IACjCsB,KAAK,CAACtB,KAAK,CAAC,CAAC,CAAC,KAAK8B,GAAG,CAAC9B,KAAK,IAC5BY,CAAC,CAACsD,aAAa,KAAK3D,aAAa,CAACP,KAAK,EAAEc,GAAG,EAC5C;gBACAN,YAAY,CAACR,KAAK,EAAEc,GAAG,CAACiC,IAAI,CAAC,CAAC;gBAC9BxC,aAAa,CAACP,KAAK,EAAEc,GAAG,CAAC+B,KAAK,CAAC,CAAC;cAClC;YACF,CAAC;YAAA,UACQsB,CAAA,KAAM;cACbpB,IAAI,CAAC,CAAC;cACNnB,cAAc,CAAC5B,KAAK,GAAGuB,SAAS;YAClC,CAAC;YAAA,OACKD,KAAK,CAACtB,KAAK,CAAC,CAAC,CAAC;YAAA,OACd8B,GAAG,CAAC9B,KAAK;YAAA,YACJiD,SAAS,CAACjD,KAAK;YAAA,UACjBF,KAAK,CAACsE;UAAM;YAElB,aAAa,EAAE/D,KAAK,CAAC,aAAa;UAAC;QAAA;MAG3C;IAIT,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VRangeSlider.mjs","names":["makeVInputProps","VInput","VLabel","getOffset","makeSliderProps","useSlider","useSteps","VSliderThumb","VSliderTrack","makeFocusProps","useFocus","useRtl","useProxiedModel","computed","ref","genericComponent","propsFactory","useRender","makeVRangeSliderProps","strict","Boolean","modelValue","type","Array","default","VRangeSlider","name","props","emits","value","end","start","setup","_ref","slots","emit","startThumbRef","stopThumbRef","inputRef","rtlClasses","getActiveThumb","e","startOffset","$el","direction","stopOffset","a","Math","abs","b","steps","model","undefined","arr","length","map","roundValue","activeThumbRef","hasLabels","max","min","mousePressed","onSliderMousedown","onSliderTouchstart","position","trackContainerRef","readonly","onSliderStart","onSliderEnd","_ref2","newValue","onSliderMove","_ref3","stop","focus","isFocused","blur","trackStart","trackStop","inputProps","filterProps","hasPrepend","label","prepend","_createVNode","_mergeProps","disabled","class","style","slotProps","_Fragment","_ref4","id","messagesId","v","relatedTarget","onBlur","ripple"],"sources":["../../../src/components/VRangeSlider/VRangeSlider.tsx"],"sourcesContent":["// Styles\nimport '../VSlider/VSlider.sass'\n\n// Components\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VLabel } from '@/components/VLabel'\nimport { getOffset, makeSliderProps, useSlider, useSteps } from '@/components/VSlider/slider'\nimport { VSliderThumb } from '@/components/VSlider/VSliderThumb'\nimport { VSliderTrack } from '@/components/VSlider/VSliderTrack'\n\n// Composables\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { useRtl } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType, WritableComputedRef } from 'vue'\nimport type { VSliderSlots } from '../VSlider/VSlider'\n\nexport const makeVRangeSliderProps = propsFactory({\n ...makeFocusProps(),\n ...makeVInputProps(),\n ...makeSliderProps(),\n\n strict: Boolean,\n modelValue: {\n type: Array as PropType<readonly (string | number)[]>,\n default: () => ([0, 0]),\n },\n}, 'VRangeSlider')\n\nexport const VRangeSlider = genericComponent<VSliderSlots>()({\n name: 'VRangeSlider',\n\n props: makeVRangeSliderProps(),\n\n emits: {\n 'update:focused': (value: boolean) => true,\n 'update:modelValue': (value: [number, number]) => true,\n end: (value: [number, number]) => true,\n start: (value: [number, number]) => true,\n },\n\n setup (props, { slots, emit }) {\n const startThumbRef = ref<VSliderThumb>()\n const stopThumbRef = ref<VSliderThumb>()\n const inputRef = ref<VInput>()\n const { rtlClasses } = useRtl()\n\n function getActiveThumb (e: MouseEvent | TouchEvent) {\n if (!startThumbRef.value || !stopThumbRef.value) return\n\n const startOffset = getOffset(e, startThumbRef.value.$el, props.direction)\n const stopOffset = getOffset(e, stopThumbRef.value.$el, props.direction)\n\n const a = Math.abs(startOffset)\n const b = Math.abs(stopOffset)\n\n return (a < b || (a === b && startOffset < 0)) ? startThumbRef.value.$el : stopThumbRef.value.$el\n }\n\n const steps = useSteps(props)\n\n const model = useProxiedModel(\n props,\n 'modelValue',\n undefined,\n arr => {\n if (!arr?.length) return [0, 0]\n\n return arr.map(value => steps.roundValue(value))\n },\n ) as WritableComputedRef<[number, number]> & { readonly externalValue: number[] }\n\n const {\n activeThumbRef,\n hasLabels,\n max,\n min,\n mousePressed,\n onSliderMousedown,\n onSliderTouchstart,\n position,\n trackContainerRef,\n readonly,\n } = useSlider({\n props,\n steps,\n onSliderStart: () => {\n emit('start', model.value)\n },\n onSliderEnd: ({ value }) => {\n const newValue: [number, number] = activeThumbRef.value === startThumbRef.value?.$el\n ? [value, model.value[1]]\n : [model.value[0], value]\n\n if (!props.strict && newValue[0] < newValue[1]) {\n model.value = newValue\n }\n\n emit('end', model.value)\n },\n onSliderMove: ({ value }) => {\n const [start, stop] = model.value\n\n if (!props.strict && start === stop && start !== min.value) {\n activeThumbRef.value = value > start ? stopThumbRef.value?.$el : startThumbRef.value?.$el\n activeThumbRef.value?.focus()\n }\n\n if (activeThumbRef.value === startThumbRef.value?.$el) {\n model.value = [Math.min(value, stop), stop]\n } else {\n model.value = [start, Math.max(start, value)]\n }\n },\n getActiveThumb,\n })\n\n const { isFocused, focus, blur } = useFocus(props)\n const trackStart = computed(() => position(model.value[0]))\n const trackStop = computed(() => position(model.value[1]))\n\n useRender(() => {\n const inputProps = VInput.filterProps(props)\n const hasPrepend = !!(props.label || slots.label || slots.prepend)\n\n return (\n <VInput\n class={[\n 'v-slider',\n 'v-range-slider',\n {\n 'v-slider--has-labels': !!slots['tick-label'] || hasLabels.value,\n 'v-slider--focused': isFocused.value,\n 'v-slider--pressed': mousePressed.value,\n 'v-slider--disabled': props.disabled,\n },\n rtlClasses.value,\n props.class,\n ]}\n style={ props.style }\n ref={ inputRef }\n { ...inputProps }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n prepend: hasPrepend ? slotProps => (\n <>\n { slots.label?.(slotProps) ?? (\n props.label\n ? (\n <VLabel\n class=\"v-slider__label\"\n text={ props.label }\n />\n ) : undefined\n )}\n\n { slots.prepend?.(slotProps) }\n </>\n ) : undefined,\n default: ({ id, messagesId }) => (\n <div\n class=\"v-slider__container\"\n onMousedown={ !readonly.value ? onSliderMousedown : undefined }\n onTouchstartPassive={ !readonly.value ? onSliderTouchstart : undefined }\n >\n <input\n id={ `${id.value}_start` }\n name={ props.name || id.value }\n disabled={ !!props.disabled }\n readonly={ !!props.readonly }\n tabindex=\"-1\"\n value={ model.value[0] }\n />\n\n <input\n id={ `${id.value}_stop` }\n name={ props.name || id.value }\n disabled={ !!props.disabled }\n readonly={ !!props.readonly }\n tabindex=\"-1\"\n value={ model.value[1] }\n />\n\n <VSliderTrack\n ref={ trackContainerRef }\n start={ trackStart.value }\n stop={ trackStop.value }\n >\n {{ 'tick-label': slots['tick-label'] }}\n </VSliderTrack>\n\n <VSliderThumb\n ref={ startThumbRef }\n aria-describedby={ messagesId.value }\n focused={ isFocused && activeThumbRef.value === startThumbRef.value?.$el }\n modelValue={ model.value[0] }\n onUpdate:modelValue={ v => (model.value = [v, model.value[1]]) }\n onFocus={ (e: FocusEvent) => {\n focus()\n activeThumbRef.value = startThumbRef.value?.$el\n\n // Make sure second thumb is focused if\n // the thumbs are on top of each other\n // and they are both at minimum value\n // but only if focused from outside.\n if (\n max.value !== min.value &&\n model.value[0] === model.value[1] &&\n model.value[1] === min.value &&\n e.relatedTarget !== stopThumbRef.value?.$el\n ) {\n startThumbRef.value?.$el.blur()\n stopThumbRef.value?.$el.focus()\n }\n }}\n onBlur={ () => {\n blur()\n activeThumbRef.value = undefined\n }}\n min={ min.value }\n max={ model.value[1] }\n position={ trackStart.value }\n ripple={ props.ripple }\n >\n {{ 'thumb-label': slots['thumb-label'] }}\n </VSliderThumb>\n\n <VSliderThumb\n ref={ stopThumbRef }\n aria-describedby={ messagesId.value }\n focused={ isFocused && activeThumbRef.value === stopThumbRef.value?.$el }\n modelValue={ model.value[1] }\n onUpdate:modelValue={ v => (model.value = [model.value[0], v]) }\n onFocus={ (e: FocusEvent) => {\n focus()\n activeThumbRef.value = stopThumbRef.value?.$el\n\n // Make sure first thumb is focused if\n // the thumbs are on top of each other\n // and they are both at maximum value\n // but only if focused from outside.\n if (\n max.value !== min.value &&\n model.value[0] === model.value[1] &&\n model.value[0] === max.value &&\n e.relatedTarget !== startThumbRef.value?.$el\n ) {\n stopThumbRef.value?.$el.blur()\n startThumbRef.value?.$el.focus()\n }\n }}\n onBlur={ () => {\n blur()\n activeThumbRef.value = undefined\n }}\n min={ model.value[0] }\n max={ max.value }\n position={ trackStop.value }\n ripple={ props.ripple }\n >\n {{ 'thumb-label': slots['thumb-label'] }}\n </VSliderThumb>\n </div>\n ),\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VRangeSlider = InstanceType<typeof VRangeSlider>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,eAAe,EAAEC,MAAM;AAAA,SACvBC,MAAM;AAAA,SACNC,SAAS,EAAEC,eAAe,EAAEC,SAAS,EAAEC,QAAQ;AAAA,SAC/CC,YAAY;AAAA,SACZC,YAAY,uCAErB;AAAA,SACSC,cAAc,EAAEC,QAAQ;AAAA,SACxBC,MAAM;AAAA,SACNC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAC1BC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,gCAElD;AAIA,OAAO,MAAMC,qBAAqB,GAAGF,YAAY,CAAC;EAChD,GAAGP,cAAc,CAAC,CAAC;EACnB,GAAGT,eAAe,CAAC,CAAC;EACpB,GAAGI,eAAe,CAAC,CAAC;EAEpBe,MAAM,EAAEC,OAAO;EACfC,UAAU,EAAE;IACVC,IAAI,EAAEC,KAA+C;IACrDC,OAAO,EAAEA,CAAA,KAAO,CAAC,CAAC,EAAE,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IACvBsB,KAAK,CAACtB,KAAK,CAAC,CAAC,CAAC,KAAKsB,KAAK,CAACtB,KAAK,CAAC,CAAC,CAAC,IACjCsB,KAAK,CAACtB,KAAK,CAAC,CAAC,CAAC,KAAK8B,GAAG,CAAC9B,KAAK,IAC5BY,CAAC,CAACsD,aAAa,KAAK3D,aAAa,CAACP,KAAK,EAAEc,GAAG,EAC5C;gBACAN,YAAY,CAACR,KAAK,EAAEc,GAAG,CAACiC,IAAI,CAAC,CAAC;gBAC9BxC,aAAa,CAACP,KAAK,EAAEc,GAAG,CAAC+B,KAAK,CAAC,CAAC;cAClC;YACF,CAAC;YAAA,UACQsB,CAAA,KAAM;cACbpB,IAAI,CAAC,CAAC;cACNnB,cAAc,CAAC5B,KAAK,GAAGuB,SAAS;YAClC,CAAC;YAAA,OACKD,KAAK,CAACtB,KAAK,CAAC,CAAC,CAAC;YAAA,OACd8B,GAAG,CAAC9B,KAAK;YAAA,YACJiD,SAAS,CAACjD,KAAK;YAAA,UACjBF,KAAK,CAACsE;UAAM;YAElB,aAAa,EAAE/D,KAAK,CAAC,aAAa;UAAC;QAAA;MAG3C;IAIT,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -63,7 +63,7 @@ interface VInputSlot {
|
|
63
63
|
}
|
64
64
|
|
65
65
|
declare const VRangeSlider: {
|
66
|
-
new (...args: any[]): vue.
|
66
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
67
67
|
reverse: boolean;
|
68
68
|
max: string | number;
|
69
69
|
error: boolean;
|
@@ -171,7 +171,110 @@ declare const VRangeSlider: {
|
|
171
171
|
'update:modelValue': (value: [number, number]) => true;
|
172
172
|
end: (value: [number, number]) => true;
|
173
173
|
start: (value: [number, number]) => true;
|
174
|
-
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
174
|
+
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
175
|
+
reverse: boolean;
|
176
|
+
max: string | number;
|
177
|
+
error: boolean;
|
178
|
+
strict: boolean;
|
179
|
+
min: string | number;
|
180
|
+
direction: "horizontal" | "vertical";
|
181
|
+
style: vue.StyleValue;
|
182
|
+
disabled: boolean | null;
|
183
|
+
readonly: boolean | null;
|
184
|
+
step: string | number;
|
185
|
+
elevation: string | number;
|
186
|
+
messages: string | readonly string[];
|
187
|
+
focused: boolean;
|
188
|
+
errorMessages: string | readonly string[] | null;
|
189
|
+
maxErrors: string | number;
|
190
|
+
rules: readonly ValidationRule[];
|
191
|
+
modelValue: readonly (string | number)[];
|
192
|
+
tile: boolean;
|
193
|
+
density: Density;
|
194
|
+
ripple: boolean;
|
195
|
+
centerAffix: boolean;
|
196
|
+
hideSpinButtons: boolean;
|
197
|
+
persistentHint: boolean;
|
198
|
+
showTicks: boolean | "always";
|
199
|
+
tickSize: string | number;
|
200
|
+
trackSize: string | number;
|
201
|
+
thumbSize: string | number;
|
202
|
+
} & {
|
203
|
+
name?: string | undefined;
|
204
|
+
id?: string | undefined;
|
205
|
+
width?: string | number | undefined;
|
206
|
+
color?: string | undefined;
|
207
|
+
maxWidth?: string | number | undefined;
|
208
|
+
minWidth?: string | number | undefined;
|
209
|
+
label?: string | undefined;
|
210
|
+
class?: any;
|
211
|
+
theme?: string | undefined;
|
212
|
+
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
213
|
+
validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
|
214
|
+
validationValue?: any;
|
215
|
+
rounded?: string | number | boolean | undefined;
|
216
|
+
prependIcon?: IconValue | undefined;
|
217
|
+
appendIcon?: IconValue | undefined;
|
218
|
+
'onClick:append'?: ((args_0: MouseEvent) => void) | undefined;
|
219
|
+
'onClick:prepend'?: ((args_0: MouseEvent) => void) | undefined;
|
220
|
+
hint?: string | undefined;
|
221
|
+
hideDetails?: boolean | "auto" | undefined;
|
222
|
+
trackColor?: string | undefined;
|
223
|
+
trackFillColor?: string | undefined;
|
224
|
+
thumbColor?: string | undefined;
|
225
|
+
thumbLabel?: boolean | "always" | undefined;
|
226
|
+
ticks?: readonly number[] | Record<number, string> | undefined;
|
227
|
+
} & {
|
228
|
+
$children?: vue.VNodeChild | ((arg: VInputSlot) => vue.VNodeChild) | {
|
229
|
+
default?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
230
|
+
prepend?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
231
|
+
append?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
232
|
+
details?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
233
|
+
message?: ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
234
|
+
'thumb-label'?: ((arg: {
|
235
|
+
modelValue: number;
|
236
|
+
}) => vue.VNodeChild) | undefined;
|
237
|
+
'tick-label'?: ((arg: {
|
238
|
+
tick: Tick;
|
239
|
+
index: number;
|
240
|
+
}) => vue.VNodeChild) | undefined;
|
241
|
+
label?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
242
|
+
};
|
243
|
+
'v-slots'?: {
|
244
|
+
default?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
245
|
+
prepend?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
246
|
+
append?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
247
|
+
details?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
248
|
+
message?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
249
|
+
'thumb-label'?: false | ((arg: {
|
250
|
+
modelValue: number;
|
251
|
+
}) => vue.VNodeChild) | undefined;
|
252
|
+
'tick-label'?: false | ((arg: {
|
253
|
+
tick: Tick;
|
254
|
+
index: number;
|
255
|
+
}) => vue.VNodeChild) | undefined;
|
256
|
+
label?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
257
|
+
} | undefined;
|
258
|
+
} & {
|
259
|
+
"v-slot:default"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
260
|
+
"v-slot:prepend"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
261
|
+
"v-slot:append"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
262
|
+
"v-slot:details"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
263
|
+
"v-slot:message"?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
264
|
+
"v-slot:thumb-label"?: false | ((arg: {
|
265
|
+
modelValue: number;
|
266
|
+
}) => vue.VNodeChild) | undefined;
|
267
|
+
"v-slot:tick-label"?: false | ((arg: {
|
268
|
+
tick: Tick;
|
269
|
+
index: number;
|
270
|
+
}) => vue.VNodeChild) | undefined;
|
271
|
+
"v-slot:label"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
272
|
+
} & {
|
273
|
+
onStart?: ((value: [number, number]) => any) | undefined;
|
274
|
+
onEnd?: ((value: [number, number]) => any) | undefined;
|
275
|
+
"onUpdate:focused"?: ((value: boolean) => any) | undefined;
|
276
|
+
"onUpdate:modelValue"?: ((value: [number, number]) => any) | undefined;
|
277
|
+
}, {
|
175
278
|
reverse: boolean;
|
176
279
|
max: string | number;
|
177
280
|
error: boolean;
|
@@ -215,7 +318,7 @@ declare const VRangeSlider: {
|
|
215
318
|
index: number;
|
216
319
|
}) => vue.VNode[];
|
217
320
|
label: (arg: VInputSlot) => vue.VNode[];
|
218
|
-
}>>,
|
321
|
+
}>>, {
|
219
322
|
P: {};
|
220
323
|
B: {};
|
221
324
|
D: {};
|
@@ -511,7 +614,7 @@ declare const VRangeSlider: {
|
|
511
614
|
index: number;
|
512
615
|
}) => vue.VNode[];
|
513
616
|
label: (arg: VInputSlot) => vue.VNode[];
|
514
|
-
}
|
617
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
515
618
|
strict: BooleanConstructor;
|
516
619
|
modelValue: {
|
517
620
|
type: PropType<readonly (string | number)[]>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { createTextVNode as _createTextVNode, mergeProps as _mergeProps, createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
2
2
|
// Styles
|
3
3
|
import "./VRating.css";
|
4
4
|
|