@vuetify/nightly 3.8.2-master.2025-04-17 → 3.8.2-master.2025-04-22
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/CHANGELOG.md +24 -3
- package/dist/json/attributes.json +2022 -2022
- package/dist/json/importMap-labs.json +36 -36
- package/dist/json/importMap.json +170 -170
- package/dist/json/web-types.json +4067 -3809
- package/dist/vuetify-labs.cjs +631 -514
- package/dist/vuetify-labs.css +5232 -5223
- package/dist/vuetify-labs.d.ts +1855 -915
- package/dist/vuetify-labs.esm.js +632 -515
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +631 -514
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +402 -391
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +2556 -2556
- package/dist/vuetify.d.ts +168 -166
- package/dist/vuetify.esm.js +403 -392
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +402 -391
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +893 -885
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.js +8 -9
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VAppBar/VAppBar.js +4 -4
- package/lib/components/VAppBar/VAppBar.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js +1 -2
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VBadge/VBadge.js +2 -3
- package/lib/components/VBadge/VBadge.js.map +1 -1
- package/lib/components/VBanner/VBanner.js +3 -3
- package/lib/components/VBanner/VBanner.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.js +8 -8
- package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js +6 -6
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js +1 -2
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js.map +1 -1
- package/lib/components/VBtn/VBtn.js +3 -3
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VBtnGroup/VBtnGroup.js +4 -4
- package/lib/components/VBtnGroup/VBtnGroup.js.map +1 -1
- package/lib/components/VCard/VCard.js +7 -8
- package/lib/components/VCard/VCard.js.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.js +2 -3
- package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.js +3 -3
- package/lib/components/VCheckbox/VCheckboxBtn.js.map +1 -1
- package/lib/components/VChip/VChip.js +8 -9
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.js +5 -5
- package/lib/components/VChipGroup/VChipGroup.js.map +1 -1
- package/lib/components/VCombobox/VCombobox.js +3 -4
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VCounter/VCounter.js +2 -2
- package/lib/components/VCounter/VCounter.js.map +1 -1
- package/lib/components/VDataIterator/VDataIterator.js +2 -2
- package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.js +7 -7
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.js +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.js.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.js +7 -7
- package/lib/components/VDataTable/VDataTableServer.js.map +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.js +7 -7
- package/lib/components/VDataTable/VDataTableVirtual.js.map +1 -1
- package/lib/components/VDataTable/composables/expand.d.ts +1 -1
- package/lib/components/VDataTable/composables/expand.js +1 -1
- package/lib/components/VDataTable/composables/expand.js.map +1 -1
- package/lib/components/VDataTable/composables/options.js +8 -8
- package/lib/components/VDataTable/composables/options.js.map +1 -1
- package/lib/components/VDataTable/composables/select.d.ts +2 -2
- package/lib/components/VDataTable/composables/select.js +2 -2
- package/lib/components/VDataTable/composables/select.js.map +1 -1
- package/lib/components/VDataTable/composables/sort.d.ts +2 -2
- package/lib/components/VDataTable/composables/sort.js +2 -2
- package/lib/components/VDataTable/composables/sort.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +4 -4
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.js +2 -2
- package/lib/components/VDatePicker/VDatePickerMonth.js.map +1 -1
- package/lib/components/VDialog/VDialog.d.ts +9 -9
- package/lib/components/VDivider/VDivider.js +2 -2
- package/lib/components/VDivider/VDivider.js.map +1 -1
- package/lib/components/VEmptyState/VEmptyState.js +1 -2
- package/lib/components/VEmptyState/VEmptyState.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.js +3 -3
- package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.js +3 -3
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanels.js +14 -14
- package/lib/components/VExpansionPanel/VExpansionPanels.js.map +1 -1
- package/lib/components/VFab/VFab.js +2 -2
- package/lib/components/VFab/VFab.js.map +1 -1
- package/lib/components/VField/VField.js +5 -5
- package/lib/components/VField/VField.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.js +2 -2
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VFooter/VFooter.js +4 -4
- package/lib/components/VFooter/VFooter.js.map +1 -1
- package/lib/components/VForm/VForm.d.ts +40 -40
- package/lib/components/VIcon/VIcon.js +4 -4
- package/lib/components/VIcon/VIcon.js.map +1 -1
- package/lib/components/VImg/VImg.js +2 -2
- package/lib/components/VImg/VImg.js.map +1 -1
- package/lib/components/VInput/VInput.js +3 -3
- package/lib/components/VInput/VInput.js.map +1 -1
- package/lib/components/VLayout/VLayoutItem.js +5 -5
- package/lib/components/VLayout/VLayoutItem.js.map +1 -1
- package/lib/components/VList/VList.js +14 -14
- package/lib/components/VList/VList.js.map +1 -1
- package/lib/components/VList/VListGroup.js +2 -2
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.d.ts +3 -3
- package/lib/components/VList/VListItem.js +6 -6
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/VListSubheader.js +1 -2
- package/lib/components/VList/VListSubheader.js.map +1 -1
- package/lib/components/VMenu/VMenu.d.ts +15 -15
- package/lib/components/VMenu/VMenu.js +2 -2
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VMessages/VMessages.js +1 -1
- package/lib/components/VMessages/VMessages.js.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js +6 -6
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/lib/components/VNumberInput/VNumberInput.js +11 -11
- package/lib/components/VNumberInput/VNumberInput.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +7 -7
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.d.ts +3 -3
- package/lib/components/VOverlay/VOverlay.js +4 -4
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VOverlay/locationStrategies.js +10 -1
- package/lib/components/VOverlay/locationStrategies.js.map +1 -1
- package/lib/components/VPagination/VPagination.js +7 -7
- package/lib/components/VPagination/VPagination.js.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.js +9 -9
- package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.js +4 -4
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +2 -2
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.d.ts +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.js +7 -7
- package/lib/components/VSelectionControl/VSelectionControl.js.map +1 -1
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.js +15 -15
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.js.map +1 -1
- package/lib/components/VSheet/VSheet.js +1 -2
- package/lib/components/VSheet/VSheet.js.map +1 -1
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js +2 -2
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/lib/components/VSlider/slider.js +10 -10
- package/lib/components/VSlider/slider.js.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.d.ts +9 -9
- package/lib/components/VSparkline/VSparkline.js +2 -2
- package/lib/components/VSparkline/VSparkline.js.map +1 -1
- package/lib/components/VSwitch/VSwitch.js +3 -3
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.js +2 -2
- package/lib/components/VSystemBar/VSystemBar.js.map +1 -1
- package/lib/components/VTabs/VTab.d.ts +3 -3
- package/lib/components/VTabs/VTab.js +1 -1
- package/lib/components/VTabs/VTab.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +7 -7
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTimeline/VTimeline.js +9 -9
- package/lib/components/VTimeline/VTimeline.js.map +1 -1
- package/lib/components/VTimeline/VTimelineDivider.js +2 -3
- package/lib/components/VTimeline/VTimelineDivider.js.map +1 -1
- package/lib/components/VToolbar/VToolbar.js +2 -2
- package/lib/components/VToolbar/VToolbar.js.map +1 -1
- package/lib/components/VToolbar/VToolbarItems.js +2 -2
- package/lib/components/VToolbar/VToolbarItems.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.d.ts +9 -9
- package/lib/components/VTooltip/VTooltip.js +3 -3
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.js +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/lib/components/VWindow/VWindow.js +3 -3
- package/lib/components/VWindow/VWindow.js.map +1 -1
- package/lib/components/transitions/dialog-transition.js +11 -2
- package/lib/components/transitions/dialog-transition.js.map +1 -1
- package/lib/composables/border.d.ts +1 -1
- package/lib/composables/border.js +5 -8
- package/lib/composables/border.js.map +1 -1
- package/lib/composables/calendar.d.ts +21 -54
- package/lib/composables/calendar.js +11 -11
- package/lib/composables/calendar.js.map +1 -1
- package/lib/composables/color.d.ts +8 -10
- package/lib/composables/color.js +21 -22
- package/lib/composables/color.js.map +1 -1
- package/lib/composables/density.d.ts +1 -1
- package/lib/composables/density.js +2 -2
- package/lib/composables/density.js.map +1 -1
- package/lib/composables/display.d.ts +4 -2
- package/lib/composables/display.js +2 -2
- package/lib/composables/display.js.map +1 -1
- package/lib/composables/elevation.js +4 -6
- package/lib/composables/elevation.js.map +1 -1
- package/lib/composables/focus.d.ts +4 -2
- package/lib/composables/focus.js +2 -2
- package/lib/composables/focus.js.map +1 -1
- package/lib/composables/form.d.ts +7 -7
- package/lib/composables/form.js +3 -3
- package/lib/composables/form.js.map +1 -1
- package/lib/composables/goto.js +2 -2
- package/lib/composables/goto.js.map +1 -1
- package/lib/composables/group.d.ts +3 -3
- package/lib/composables/group.js +4 -4
- package/lib/composables/group.js.map +1 -1
- package/lib/composables/icons.d.ts +2 -2
- package/lib/composables/icons.js +2 -2
- package/lib/composables/icons.js.map +1 -1
- package/lib/composables/layout.d.ts +10 -4
- package/lib/composables/layout.js +4 -4
- package/lib/composables/layout.js.map +1 -1
- package/lib/composables/lazy.d.ts +1 -1
- package/lib/composables/lazy.js +2 -2
- package/lib/composables/lazy.js.map +1 -1
- package/lib/composables/loader.d.ts +4 -2
- package/lib/composables/loader.js +2 -2
- package/lib/composables/loader.js.map +1 -1
- package/lib/composables/locale.js +3 -3
- package/lib/composables/locale.js.map +1 -1
- package/lib/composables/nested/nested.d.ts +3 -3
- package/lib/composables/nested/nested.js +4 -4
- package/lib/composables/nested/nested.js.map +1 -1
- package/lib/composables/position.d.ts +1 -1
- package/lib/composables/position.js +2 -2
- package/lib/composables/position.js.map +1 -1
- package/lib/composables/router.d.ts +3 -3
- package/lib/composables/router.js +8 -8
- package/lib/composables/router.js.map +1 -1
- package/lib/composables/size.d.ts +8 -5
- package/lib/composables/size.js +6 -5
- package/lib/composables/size.js.map +1 -1
- package/lib/composables/ssrBoot.d.ts +4 -2
- package/lib/composables/ssrBoot.js +2 -2
- package/lib/composables/ssrBoot.js.map +1 -1
- package/lib/composables/stack.d.ts +7 -5
- package/lib/composables/stack.js +5 -5
- package/lib/composables/stack.js.map +1 -1
- package/lib/composables/theme.js +7 -7
- package/lib/composables/theme.js.map +1 -1
- package/lib/composables/variant.d.ts +5 -6
- package/lib/composables/variant.js +6 -6
- package/lib/composables/variant.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +81 -79
- package/lib/framework.js +1 -1
- package/lib/labs/VCalendar/VCalendar.d.ts +600 -211
- package/lib/labs/VCalendar/VCalendar.js +55 -27
- package/lib/labs/VCalendar/VCalendar.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarDay.css +9 -0
- package/lib/labs/VCalendar/VCalendarDay.d.ts +329 -17
- package/lib/labs/VCalendar/VCalendarDay.js +18 -10
- package/lib/labs/VCalendar/VCalendarDay.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarDay.sass +8 -0
- package/lib/labs/VCalendar/VCalendarEvent.js +15 -5
- package/lib/labs/VCalendar/VCalendarEvent.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarHeader.d.ts +44 -17
- package/lib/labs/VCalendar/VCalendarHeader.js +5 -2
- package/lib/labs/VCalendar/VCalendarHeader.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarInterval.d.ts +171 -17
- package/lib/labs/VCalendar/VCalendarInterval.js +66 -35
- package/lib/labs/VCalendar/VCalendarInterval.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarIntervalEvent.d.ts +92 -17
- package/lib/labs/VCalendar/VCalendarIntervalEvent.js +30 -10
- package/lib/labs/VCalendar/VCalendarIntervalEvent.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarMonthDay.d.ts +122 -88
- package/lib/labs/VCalendar/VCalendarMonthDay.js +24 -22
- package/lib/labs/VCalendar/VCalendarMonthDay.js.map +1 -1
- package/lib/labs/VIconBtn/VIconBtn.d.ts +6 -21
- package/lib/labs/VIconBtn/VIconBtn.js +10 -12
- package/lib/labs/VIconBtn/VIconBtn.js.map +1 -1
- package/lib/labs/VPicker/VPicker.js +1 -2
- package/lib/labs/VPicker/VPicker.js.map +1 -1
- package/lib/labs/VTimePicker/VTimePickerClock.js +3 -3
- package/lib/labs/VTimePicker/VTimePickerClock.js.map +1 -1
- package/lib/labs/VTreeview/VTreeview.js +11 -11
- package/lib/labs/VTreeview/VTreeview.js.map +1 -1
- package/lib/util/box.js.map +1 -1
- package/lib/util/helpers.d.ts +5 -2
- package/lib/util/helpers.js +9 -5
- package/lib/util/helpers.js.map +1 -1
- package/package.json +1 -1
package/dist/vuetify.esm.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.8.2-master.2025-04-
|
2
|
+
* Vuetify v3.8.2-master.2025-04-22
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
6
6
|
|
7
|
-
import { shallowRef, reactive,
|
7
|
+
import { shallowRef, reactive, watchEffect, toRef, capitalize, unref, Fragment, isVNode, Comment, warn, getCurrentInstance as getCurrentInstance$1, ref, computed, provide, inject as inject$1, defineComponent as defineComponent$1, h, camelize, createVNode, mergeProps, toValue, onBeforeUnmount, watch, readonly, onMounted, useId, onDeactivated, onActivated, onScopeDispose, effectScope, toRaw, TransitionGroup, Transition, toRefs, isRef, onBeforeMount, nextTick, withDirectives, resolveDirective, vShow, onUpdated, Text, resolveDynamicComponent, toDisplayString, markRaw, Teleport, cloneVNode, createTextVNode, onUnmounted, onBeforeUpdate, withModifiers, vModelText, resolveComponent, render } from 'vue';
|
8
8
|
|
9
9
|
const IN_BROWSER = typeof window !== 'undefined';
|
10
10
|
const SUPPORTS_INTERSECTION = IN_BROWSER && 'IntersectionObserver' in window;
|
@@ -365,15 +365,19 @@ function getEventCoordinates(e) {
|
|
365
365
|
|
366
366
|
function destructComputed(getter) {
|
367
367
|
const refs = reactive({});
|
368
|
-
const base = computed(getter);
|
369
368
|
watchEffect(() => {
|
370
|
-
|
371
|
-
|
369
|
+
const base = getter();
|
370
|
+
for (const key in base) {
|
371
|
+
refs[key] = base[key];
|
372
372
|
}
|
373
373
|
}, {
|
374
374
|
flush: 'sync'
|
375
375
|
});
|
376
|
-
|
376
|
+
const obj = {};
|
377
|
+
for (const key in refs) {
|
378
|
+
obj[key] = toRef(() => refs[key]);
|
379
|
+
}
|
380
|
+
return obj;
|
377
381
|
}
|
378
382
|
|
379
383
|
/** Array.includes but value can be any type */
|
@@ -1673,7 +1677,7 @@ const useIcon = props => {
|
|
1673
1677
|
const icons = inject$1(IconSymbol);
|
1674
1678
|
if (!icons) throw new Error('Missing Vuetify Icons provide!');
|
1675
1679
|
const iconData = computed(() => {
|
1676
|
-
const iconAlias =
|
1680
|
+
const iconAlias = toValue(props);
|
1677
1681
|
if (!iconAlias) return {
|
1678
1682
|
component: VComponentIcon
|
1679
1683
|
};
|
@@ -2227,7 +2231,7 @@ function createLayout(props) {
|
|
2227
2231
|
const mainRect = computed(() => {
|
2228
2232
|
return layers.value[layers.value.length - 1].layer;
|
2229
2233
|
});
|
2230
|
-
const mainStyles =
|
2234
|
+
const mainStyles = toRef(() => {
|
2231
2235
|
return {
|
2232
2236
|
'--v-layout-left': convertToUnit(mainRect.value.left),
|
2233
2237
|
'--v-layout-right': convertToUnit(mainRect.value.right),
|
@@ -2342,10 +2346,10 @@ function createLayout(props) {
|
|
2342
2346
|
layoutRect,
|
2343
2347
|
rootZIndex
|
2344
2348
|
});
|
2345
|
-
const layoutClasses =
|
2349
|
+
const layoutClasses = toRef(() => ['v-layout', {
|
2346
2350
|
'v-layout--full-height': props.fullHeight
|
2347
2351
|
}]);
|
2348
|
-
const layoutStyles =
|
2352
|
+
const layoutStyles = toRef(() => ({
|
2349
2353
|
zIndex: parentLayout ? rootZIndex.value : undefined,
|
2350
2354
|
position: parentLayout ? 'relative' : undefined,
|
2351
2355
|
overflow: parentLayout ? 'hidden' : undefined
|
@@ -2736,7 +2740,7 @@ function createRtl(i18n, options) {
|
|
2736
2740
|
return {
|
2737
2741
|
isRtl,
|
2738
2742
|
rtl,
|
2739
|
-
rtlClasses:
|
2743
|
+
rtlClasses: toRef(() => `v-locale--is-${isRtl.value ? 'rtl' : 'ltr'}`)
|
2740
2744
|
};
|
2741
2745
|
}
|
2742
2746
|
function provideRtl(locale, rtl, props) {
|
@@ -2744,7 +2748,7 @@ function provideRtl(locale, rtl, props) {
|
|
2744
2748
|
return {
|
2745
2749
|
isRtl,
|
2746
2750
|
rtl,
|
2747
|
-
rtlClasses:
|
2751
|
+
rtlClasses: toRef(() => `v-locale--is-${isRtl.value ? 'rtl' : 'ltr'}`)
|
2748
2752
|
};
|
2749
2753
|
}
|
2750
2754
|
function useRtl() {
|
@@ -2968,7 +2972,7 @@ function createTheme(options) {
|
|
2968
2972
|
}
|
2969
2973
|
return acc;
|
2970
2974
|
});
|
2971
|
-
const current =
|
2975
|
+
const current = toRef(() => computedThemes.value[name.value]);
|
2972
2976
|
const styles = computed(() => {
|
2973
2977
|
const lines = [];
|
2974
2978
|
if (current.value?.dark) {
|
@@ -3015,7 +3019,7 @@ function createTheme(options) {
|
|
3015
3019
|
}
|
3016
3020
|
} else {
|
3017
3021
|
if (IN_BROWSER) {
|
3018
|
-
head.addHeadObjs(
|
3022
|
+
head.addHeadObjs(toRef(getHead));
|
3019
3023
|
watchEffect(() => head.updateDOM());
|
3020
3024
|
} else {
|
3021
3025
|
head.addHeadObjs(getHead());
|
@@ -3034,7 +3038,7 @@ function createTheme(options) {
|
|
3034
3038
|
}
|
3035
3039
|
}
|
3036
3040
|
}
|
3037
|
-
const themeClasses =
|
3041
|
+
const themeClasses = toRef(() => parsedOptions.isDisabled ? undefined : `v-theme--${name.value}`);
|
3038
3042
|
return {
|
3039
3043
|
install,
|
3040
3044
|
isDisabled: parsedOptions.isDisabled,
|
@@ -3054,9 +3058,9 @@ function provideTheme(props) {
|
|
3054
3058
|
getCurrentInstance('provideTheme');
|
3055
3059
|
const theme = inject$1(ThemeSymbol, null);
|
3056
3060
|
if (!theme) throw new Error('Could not find Vuetify theme injection');
|
3057
|
-
const name =
|
3058
|
-
const current =
|
3059
|
-
const themeClasses =
|
3061
|
+
const name = toRef(() => props.theme ?? theme.name.value);
|
3062
|
+
const current = toRef(() => theme.themes.value[name.value]);
|
3063
|
+
const themeClasses = toRef(() => theme.isDisabled ? undefined : `v-theme--${name.value}`);
|
3060
3064
|
const newTheme = {
|
3061
3065
|
...theme,
|
3062
3066
|
name,
|
@@ -3340,6 +3344,7 @@ function ExpandTransitionGenerator () {
|
|
3340
3344
|
const makeVDialogTransitionProps = propsFactory({
|
3341
3345
|
target: [Object, Array]
|
3342
3346
|
}, 'v-dialog-transition');
|
3347
|
+
const saved = new WeakMap();
|
3343
3348
|
const VDialogTransition = genericComponent()({
|
3344
3349
|
name: 'VDialogTransition',
|
3345
3350
|
props: makeVDialogTransitionProps(),
|
@@ -3356,13 +3361,15 @@ const VDialogTransition = genericComponent()({
|
|
3356
3361
|
await new Promise(resolve => requestAnimationFrame(resolve));
|
3357
3362
|
await new Promise(resolve => requestAnimationFrame(resolve));
|
3358
3363
|
el.style.visibility = '';
|
3364
|
+
const dimensions = getDimensions(props.target, el);
|
3359
3365
|
const {
|
3360
3366
|
x,
|
3361
3367
|
y,
|
3362
3368
|
sx,
|
3363
3369
|
sy,
|
3364
3370
|
speed
|
3365
|
-
} =
|
3371
|
+
} = dimensions;
|
3372
|
+
saved.set(el, dimensions);
|
3366
3373
|
const animation = animate(el, [{
|
3367
3374
|
transform: `translate(${x}px, ${y}px) scale(${sx}, ${sy})`,
|
3368
3375
|
opacity: 0
|
@@ -3391,13 +3398,19 @@ const VDialogTransition = genericComponent()({
|
|
3391
3398
|
},
|
3392
3399
|
async onLeave(el, done) {
|
3393
3400
|
await new Promise(resolve => requestAnimationFrame(resolve));
|
3401
|
+
let dimensions;
|
3402
|
+
if (!Array.isArray(props.target) && !props.target.offsetParent && saved.has(el)) {
|
3403
|
+
dimensions = saved.get(el);
|
3404
|
+
} else {
|
3405
|
+
dimensions = getDimensions(props.target, el);
|
3406
|
+
}
|
3394
3407
|
const {
|
3395
3408
|
x,
|
3396
3409
|
y,
|
3397
3410
|
sx,
|
3398
3411
|
sy,
|
3399
3412
|
speed
|
3400
|
-
} =
|
3413
|
+
} = dimensions;
|
3401
3414
|
const animation = animate(el, [{}, {
|
3402
3415
|
transform: `translate(${x}px, ${y}px) scale(${sx}, ${sy})`,
|
3403
3416
|
opacity: 0
|
@@ -3617,13 +3630,14 @@ const VResponsive = genericComponent()({
|
|
3617
3630
|
// Composables
|
3618
3631
|
function useColor(colors) {
|
3619
3632
|
return destructComputed(() => {
|
3633
|
+
const _colors = toValue(colors);
|
3620
3634
|
const classes = [];
|
3621
3635
|
const styles = {};
|
3622
|
-
if (
|
3623
|
-
if (isCssColor(
|
3624
|
-
styles.backgroundColor =
|
3625
|
-
if (!
|
3626
|
-
const backgroundColor = parseColor(
|
3636
|
+
if (_colors.background) {
|
3637
|
+
if (isCssColor(_colors.background)) {
|
3638
|
+
styles.backgroundColor = _colors.background;
|
3639
|
+
if (!_colors.text && isParsableColor(_colors.background)) {
|
3640
|
+
const backgroundColor = parseColor(_colors.background);
|
3627
3641
|
if (backgroundColor.a == null || backgroundColor.a === 1) {
|
3628
3642
|
const textColor = getForeground(backgroundColor);
|
3629
3643
|
styles.color = textColor;
|
@@ -3631,15 +3645,15 @@ function useColor(colors) {
|
|
3631
3645
|
}
|
3632
3646
|
}
|
3633
3647
|
} else {
|
3634
|
-
classes.push(`bg-${
|
3648
|
+
classes.push(`bg-${_colors.background}`);
|
3635
3649
|
}
|
3636
3650
|
}
|
3637
|
-
if (
|
3638
|
-
if (isCssColor(
|
3639
|
-
styles.color =
|
3640
|
-
styles.caretColor =
|
3651
|
+
if (_colors.text) {
|
3652
|
+
if (isCssColor(_colors.text)) {
|
3653
|
+
styles.color = _colors.text;
|
3654
|
+
styles.caretColor = _colors.text;
|
3641
3655
|
} else {
|
3642
|
-
classes.push(`text-${
|
3656
|
+
classes.push(`text-${_colors.text}`);
|
3643
3657
|
}
|
3644
3658
|
}
|
3645
3659
|
return {
|
@@ -3648,27 +3662,25 @@ function useColor(colors) {
|
|
3648
3662
|
};
|
3649
3663
|
});
|
3650
3664
|
}
|
3651
|
-
function useTextColor(
|
3652
|
-
const colors = computed(() => ({
|
3653
|
-
text: isRef(props) ? props.value : name ? props[name] : null
|
3654
|
-
}));
|
3665
|
+
function useTextColor(color) {
|
3655
3666
|
const {
|
3656
3667
|
colorClasses: textColorClasses,
|
3657
3668
|
colorStyles: textColorStyles
|
3658
|
-
} = useColor(
|
3669
|
+
} = useColor(() => ({
|
3670
|
+
text: toValue(color)
|
3671
|
+
}));
|
3659
3672
|
return {
|
3660
3673
|
textColorClasses,
|
3661
3674
|
textColorStyles
|
3662
3675
|
};
|
3663
3676
|
}
|
3664
|
-
function useBackgroundColor(
|
3665
|
-
const colors = computed(() => ({
|
3666
|
-
background: isRef(props) ? props.value : name ? props[name] : null
|
3667
|
-
}));
|
3677
|
+
function useBackgroundColor(color) {
|
3668
3678
|
const {
|
3669
3679
|
colorClasses: backgroundColorClasses,
|
3670
3680
|
colorStyles: backgroundColorStyles
|
3671
|
-
} = useColor(
|
3681
|
+
} = useColor(() => ({
|
3682
|
+
background: toValue(color)
|
3683
|
+
}));
|
3672
3684
|
return {
|
3673
3685
|
backgroundColorClasses,
|
3674
3686
|
backgroundColorStyles
|
@@ -3852,7 +3864,7 @@ const VImg = genericComponent()({
|
|
3852
3864
|
const {
|
3853
3865
|
backgroundColorClasses,
|
3854
3866
|
backgroundColorStyles
|
3855
|
-
} = useBackgroundColor(
|
3867
|
+
} = useBackgroundColor(() => props.color);
|
3856
3868
|
const {
|
3857
3869
|
roundedClasses
|
3858
3870
|
} = useRounded(props);
|
@@ -3959,7 +3971,7 @@ const VImg = genericComponent()({
|
|
3959
3971
|
};
|
3960
3972
|
poll();
|
3961
3973
|
}
|
3962
|
-
const containClasses =
|
3974
|
+
const containClasses = toRef(() => ({
|
3963
3975
|
'v-img__img--cover': props.cover,
|
3964
3976
|
'v-img__img--contain': !props.cover
|
3965
3977
|
}));
|
@@ -4096,16 +4108,13 @@ const makeBorderProps = propsFactory({
|
|
4096
4108
|
function useBorder(props) {
|
4097
4109
|
let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
|
4098
4110
|
const borderClasses = computed(() => {
|
4099
|
-
const border =
|
4100
|
-
const classes = [];
|
4111
|
+
const border = props.border;
|
4101
4112
|
if (border === true || border === '') {
|
4102
|
-
|
4113
|
+
return `${name}--border`;
|
4103
4114
|
} else if (typeof border === 'string' || border === 0) {
|
4104
|
-
|
4105
|
-
classes.push(`border-${value}`);
|
4106
|
-
}
|
4115
|
+
return String(border).split(' ').map(v => `border-${v}`);
|
4107
4116
|
}
|
4108
|
-
return
|
4117
|
+
return [];
|
4109
4118
|
});
|
4110
4119
|
return {
|
4111
4120
|
borderClasses
|
@@ -4130,12 +4139,10 @@ const makeElevationProps = propsFactory({
|
|
4130
4139
|
}
|
4131
4140
|
}, 'elevation');
|
4132
4141
|
function useElevation(props) {
|
4133
|
-
const elevationClasses =
|
4142
|
+
const elevationClasses = toRef(() => {
|
4134
4143
|
const elevation = isRef(props) ? props.value : props.elevation;
|
4135
|
-
|
4136
|
-
|
4137
|
-
classes.push(`elevation-${elevation}`);
|
4138
|
-
return classes;
|
4144
|
+
if (elevation == null) return [];
|
4145
|
+
return [`elevation-${elevation}`];
|
4139
4146
|
});
|
4140
4147
|
return {
|
4141
4148
|
elevationClasses
|
@@ -4186,7 +4193,7 @@ const VToolbar = genericComponent()({
|
|
4186
4193
|
const {
|
4187
4194
|
backgroundColorClasses,
|
4188
4195
|
backgroundColorStyles
|
4189
|
-
} = useBackgroundColor(
|
4196
|
+
} = useBackgroundColor(() => props.color);
|
4190
4197
|
const {
|
4191
4198
|
borderClasses
|
4192
4199
|
} = useBorder(props);
|
@@ -4395,7 +4402,7 @@ function useSsrBoot() {
|
|
4395
4402
|
isBooted.value = true;
|
4396
4403
|
});
|
4397
4404
|
});
|
4398
|
-
const ssrBootStyles =
|
4405
|
+
const ssrBootStyles = toRef(() => !isBooted.value ? {
|
4399
4406
|
transition: 'none !important'
|
4400
4407
|
} : undefined);
|
4401
4408
|
return {
|
@@ -4463,7 +4470,7 @@ const VAppBar = genericComponent()({
|
|
4463
4470
|
} = useScroll(props, {
|
4464
4471
|
canScroll
|
4465
4472
|
});
|
4466
|
-
const canHide =
|
4473
|
+
const canHide = toRef(() => scrollBehavior.value.hide || scrollBehavior.value.fullyHide);
|
4467
4474
|
const isCollapsed = computed(() => props.collapse || scrollBehavior.value.collapse && (scrollBehavior.value.inverted ? scrollRatio.value > 0 : scrollRatio.value === 0));
|
4468
4475
|
const isFlat = computed(() => props.flat || scrollBehavior.value.fullyHide && !isActive.value || scrollBehavior.value.elevate && (scrollBehavior.value.inverted ? currentScroll.value > 0 : currentScroll.value === 0));
|
4469
4476
|
const opacity = computed(() => scrollBehavior.value.fadeImage ? scrollBehavior.value.inverted ? 1 - scrollRatio.value : scrollRatio.value : undefined);
|
@@ -4474,7 +4481,7 @@ const VAppBar = genericComponent()({
|
|
4474
4481
|
if (!canHide.value) return height + extensionHeight;
|
4475
4482
|
return currentScroll.value < scrollThreshold.value || scrollBehavior.value.fullyHide ? height + extensionHeight : height;
|
4476
4483
|
});
|
4477
|
-
useToggleScope(
|
4484
|
+
useToggleScope(() => !!props.scrollBehavior, () => {
|
4478
4485
|
watchEffect(() => {
|
4479
4486
|
if (canHide.value) {
|
4480
4487
|
if (scrollBehavior.value.inverted) {
|
@@ -4495,11 +4502,11 @@ const VAppBar = genericComponent()({
|
|
4495
4502
|
} = useLayoutItem({
|
4496
4503
|
id: props.name,
|
4497
4504
|
order: computed(() => parseInt(props.order, 10)),
|
4498
|
-
position: toRef(props
|
4505
|
+
position: toRef(() => props.location),
|
4499
4506
|
layoutSize: height,
|
4500
4507
|
elementSize: shallowRef(undefined),
|
4501
4508
|
active: isActive,
|
4502
|
-
absolute: toRef(props
|
4509
|
+
absolute: toRef(() => props.absolute)
|
4503
4510
|
});
|
4504
4511
|
useRender(() => {
|
4505
4512
|
const toolbarProps = VToolbar.filterProps(props);
|
@@ -4542,7 +4549,7 @@ const makeDensityProps = propsFactory({
|
|
4542
4549
|
}, 'density');
|
4543
4550
|
function useDensity(props) {
|
4544
4551
|
let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
|
4545
|
-
const densityClasses =
|
4552
|
+
const densityClasses = toRef(() => {
|
4546
4553
|
return `${name}--density-${props.density}`;
|
4547
4554
|
});
|
4548
4555
|
return {
|
@@ -4572,24 +4579,24 @@ const makeVariantProps = propsFactory({
|
|
4572
4579
|
}, 'variant');
|
4573
4580
|
function useVariant(props) {
|
4574
4581
|
let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
|
4575
|
-
const variantClasses =
|
4582
|
+
const variantClasses = toRef(() => {
|
4576
4583
|
const {
|
4577
4584
|
variant
|
4578
|
-
} =
|
4585
|
+
} = toValue(props);
|
4579
4586
|
return `${name}--variant-${variant}`;
|
4580
4587
|
});
|
4581
4588
|
const {
|
4582
4589
|
colorClasses,
|
4583
4590
|
colorStyles
|
4584
|
-
} = useColor(
|
4591
|
+
} = useColor(() => {
|
4585
4592
|
const {
|
4586
4593
|
variant,
|
4587
4594
|
color
|
4588
|
-
} =
|
4595
|
+
} = toValue(props);
|
4589
4596
|
return {
|
4590
4597
|
[['elevated', 'flat'].includes(variant) ? 'background' : 'text']: color
|
4591
4598
|
};
|
4592
|
-
})
|
4599
|
+
});
|
4593
4600
|
return {
|
4594
4601
|
colorClasses,
|
4595
4602
|
colorStyles,
|
@@ -4634,11 +4641,11 @@ const VBtnGroup = genericComponent()({
|
|
4634
4641
|
provideDefaults({
|
4635
4642
|
VBtn: {
|
4636
4643
|
height: 'auto',
|
4637
|
-
baseColor: toRef(props
|
4638
|
-
color: toRef(props
|
4639
|
-
density: toRef(props
|
4644
|
+
baseColor: toRef(() => props.baseColor),
|
4645
|
+
color: toRef(() => props.color),
|
4646
|
+
density: toRef(() => props.density),
|
4640
4647
|
flat: true,
|
4641
|
-
variant: toRef(props
|
4648
|
+
variant: toRef(() => props.variant)
|
4642
4649
|
}
|
4643
4650
|
});
|
4644
4651
|
useRender(() => {
|
@@ -4688,7 +4695,7 @@ function useGroupItem(props, injectKey) {
|
|
4688
4695
|
if (!required) return group;
|
4689
4696
|
throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${injectKey.description}`);
|
4690
4697
|
}
|
4691
|
-
const value = toRef(props
|
4698
|
+
const value = toRef(() => props.value);
|
4692
4699
|
const disabled = computed(() => !!(group.disabled.value || props.disabled));
|
4693
4700
|
group.register({
|
4694
4701
|
id,
|
@@ -4837,12 +4844,12 @@ function useGroup(props, injectKey) {
|
|
4837
4844
|
unregister,
|
4838
4845
|
selected,
|
4839
4846
|
select,
|
4840
|
-
disabled: toRef(props
|
4847
|
+
disabled: toRef(() => props.disabled),
|
4841
4848
|
prev: () => step(items.length - 1),
|
4842
4849
|
next: () => step(1),
|
4843
4850
|
isSelected: id => selected.value.includes(id),
|
4844
|
-
selectedClass:
|
4845
|
-
items:
|
4851
|
+
selectedClass: toRef(() => props.selectedClass),
|
4852
|
+
items: toRef(() => items),
|
4846
4853
|
getItemIndex: value => getItemIndex(items, value)
|
4847
4854
|
};
|
4848
4855
|
provide(injectKey, state);
|
@@ -4940,14 +4947,15 @@ const makeSizeProps = propsFactory({
|
|
4940
4947
|
function useSize(props) {
|
4941
4948
|
let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
|
4942
4949
|
return destructComputed(() => {
|
4950
|
+
const size = props.size;
|
4943
4951
|
let sizeClasses;
|
4944
4952
|
let sizeStyles;
|
4945
|
-
if (includes(predefinedSizes,
|
4946
|
-
sizeClasses = `${name}--size-${
|
4947
|
-
} else if (
|
4953
|
+
if (includes(predefinedSizes, size)) {
|
4954
|
+
sizeClasses = `${name}--size-${size}`;
|
4955
|
+
} else if (size) {
|
4948
4956
|
sizeStyles = {
|
4949
|
-
width: convertToUnit(
|
4950
|
-
height: convertToUnit(
|
4957
|
+
width: convertToUnit(size),
|
4958
|
+
height: convertToUnit(size)
|
4951
4959
|
};
|
4952
4960
|
}
|
4953
4961
|
return {
|
@@ -4979,20 +4987,20 @@ const VIcon = genericComponent()({
|
|
4979
4987
|
attrs,
|
4980
4988
|
slots
|
4981
4989
|
} = _ref;
|
4982
|
-
const slotIcon =
|
4990
|
+
const slotIcon = shallowRef();
|
4983
4991
|
const {
|
4984
4992
|
themeClasses
|
4985
4993
|
} = useTheme();
|
4986
4994
|
const {
|
4987
4995
|
iconData
|
4988
|
-
} = useIcon(
|
4996
|
+
} = useIcon(() => slotIcon.value || props.icon);
|
4989
4997
|
const {
|
4990
4998
|
sizeClasses
|
4991
4999
|
} = useSize(props);
|
4992
5000
|
const {
|
4993
5001
|
textColorClasses,
|
4994
5002
|
textColorStyles
|
4995
|
-
} = useTextColor(
|
5003
|
+
} = useTextColor(() => props.color);
|
4996
5004
|
useRender(() => {
|
4997
5005
|
const slotValue = slots.default?.();
|
4998
5006
|
if (slotValue) {
|
@@ -5098,11 +5106,11 @@ const VProgressCircular = genericComponent()({
|
|
5098
5106
|
const {
|
5099
5107
|
textColorClasses,
|
5100
5108
|
textColorStyles
|
5101
|
-
} = useTextColor(
|
5109
|
+
} = useTextColor(() => props.color);
|
5102
5110
|
const {
|
5103
5111
|
textColorClasses: underlayColorClasses,
|
5104
5112
|
textColorStyles: underlayColorStyles
|
5105
|
-
} = useTextColor(
|
5113
|
+
} = useTextColor(() => props.bgColor);
|
5106
5114
|
const {
|
5107
5115
|
intersectionRef,
|
5108
5116
|
isIntersecting
|
@@ -5111,15 +5119,15 @@ const VProgressCircular = genericComponent()({
|
|
5111
5119
|
resizeRef,
|
5112
5120
|
contentRect
|
5113
5121
|
} = useResizeObserver();
|
5114
|
-
const normalizedValue =
|
5115
|
-
const width =
|
5116
|
-
const size =
|
5122
|
+
const normalizedValue = toRef(() => Math.max(0, Math.min(100, parseFloat(props.modelValue))));
|
5123
|
+
const width = toRef(() => Number(props.width));
|
5124
|
+
const size = toRef(() => {
|
5117
5125
|
// Get size from element if size prop value is small, large etc
|
5118
5126
|
return sizeStyles.value ? Number(props.size) : contentRect.value ? contentRect.value.width : Math.max(width.value, 32);
|
5119
5127
|
});
|
5120
|
-
const diameter =
|
5121
|
-
const strokeWidth =
|
5122
|
-
const strokeDashOffset =
|
5128
|
+
const diameter = toRef(() => MAGIC_RADIUS_CONSTANT / (1 - width.value / size.value) * 2);
|
5129
|
+
const strokeWidth = toRef(() => width.value / size.value * diameter.value);
|
5130
|
+
const strokeDashOffset = toRef(() => convertToUnit((100 - normalizedValue.value) / 100 * CIRCUMFERENCE));
|
5123
5131
|
watchEffect(() => {
|
5124
5132
|
intersectionRef.value = root.value;
|
5125
5133
|
resizeRef.value = root.value;
|
@@ -5297,19 +5305,19 @@ const VProgressLinear = genericComponent()({
|
|
5297
5305
|
const {
|
5298
5306
|
textColorClasses,
|
5299
5307
|
textColorStyles
|
5300
|
-
} = useTextColor(props
|
5308
|
+
} = useTextColor(() => props.color);
|
5301
5309
|
const {
|
5302
5310
|
backgroundColorClasses,
|
5303
5311
|
backgroundColorStyles
|
5304
|
-
} = useBackgroundColor(
|
5312
|
+
} = useBackgroundColor(() => props.bgColor || props.color);
|
5305
5313
|
const {
|
5306
5314
|
backgroundColorClasses: bufferColorClasses,
|
5307
5315
|
backgroundColorStyles: bufferColorStyles
|
5308
|
-
} = useBackgroundColor(
|
5316
|
+
} = useBackgroundColor(() => props.bufferColor || props.bgColor || props.color);
|
5309
5317
|
const {
|
5310
5318
|
backgroundColorClasses: barColorClasses,
|
5311
5319
|
backgroundColorStyles: barColorStyles
|
5312
|
-
} = useBackgroundColor(props
|
5320
|
+
} = useBackgroundColor(() => props.color);
|
5313
5321
|
const {
|
5314
5322
|
roundedClasses
|
5315
5323
|
} = useRounded(props);
|
@@ -5416,7 +5424,7 @@ const makeLoaderProps = propsFactory({
|
|
5416
5424
|
}, 'loader');
|
5417
5425
|
function useLoader(props) {
|
5418
5426
|
let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
|
5419
|
-
const loaderClasses =
|
5427
|
+
const loaderClasses = toRef(() => ({
|
5420
5428
|
[`${name}--loading`]: props.loading
|
5421
5429
|
}));
|
5422
5430
|
return {
|
@@ -5455,7 +5463,7 @@ const makePositionProps = propsFactory({
|
|
5455
5463
|
}, 'position');
|
5456
5464
|
function usePosition(props) {
|
5457
5465
|
let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
|
5458
|
-
const positionClasses =
|
5466
|
+
const positionClasses = toRef(() => {
|
5459
5467
|
return props.position ? `${name}--${props.position}` : undefined;
|
5460
5468
|
});
|
5461
5469
|
return {
|
@@ -5476,12 +5484,12 @@ function useRouter() {
|
|
5476
5484
|
}
|
5477
5485
|
function useLink(props, attrs) {
|
5478
5486
|
const RouterLink = resolveDynamicComponent('RouterLink');
|
5479
|
-
const isLink =
|
5487
|
+
const isLink = toRef(() => !!(props.href || props.to));
|
5480
5488
|
const isClickable = computed(() => {
|
5481
5489
|
return isLink?.value || hasEvent(attrs, 'click') || hasEvent(props, 'click');
|
5482
5490
|
});
|
5483
5491
|
if (typeof RouterLink === 'string' || !('useLink' in RouterLink)) {
|
5484
|
-
const href = toRef(props
|
5492
|
+
const href = toRef(() => props.href);
|
5485
5493
|
return {
|
5486
5494
|
isLink,
|
5487
5495
|
isClickable,
|
@@ -5491,12 +5499,12 @@ function useLink(props, attrs) {
|
|
5491
5499
|
})
|
5492
5500
|
};
|
5493
5501
|
}
|
5502
|
+
|
5494
5503
|
// vue-router useLink `to` prop needs to be reactive and useLink will crash if undefined
|
5495
|
-
const
|
5496
|
-
|
5497
|
-
|
5498
|
-
})
|
5499
|
-
const routerLink = RouterLink.useLink(linkProps.value);
|
5504
|
+
const routerLink = RouterLink.useLink({
|
5505
|
+
to: toRef(() => props.to || ''),
|
5506
|
+
replace: toRef(() => props.replace)
|
5507
|
+
});
|
5500
5508
|
// Actual link needs to be undefined when to prop is not used
|
5501
5509
|
const link = computed(() => props.to ? routerLink : undefined);
|
5502
5510
|
const route = useRoute();
|
@@ -5516,7 +5524,7 @@ function useLink(props, attrs) {
|
|
5516
5524
|
href,
|
5517
5525
|
linkProps: reactive({
|
5518
5526
|
href,
|
5519
|
-
'aria-current':
|
5527
|
+
'aria-current': toRef(() => isActive.value ? 'page' : undefined)
|
5520
5528
|
})
|
5521
5529
|
};
|
5522
5530
|
}
|
@@ -5965,7 +5973,7 @@ const VBtn = genericComponent()({
|
|
5965
5973
|
}
|
5966
5974
|
return group?.isSelected.value;
|
5967
5975
|
});
|
5968
|
-
const color =
|
5976
|
+
const color = toRef(() => isActive.value ? props.activeColor ?? props.color : props.color);
|
5969
5977
|
const variantProps = computed(() => {
|
5970
5978
|
const showColor = group?.isSelected.value && (!link.isLink.value || link.isActive?.value) || !group || link.isActive?.value;
|
5971
5979
|
return {
|
@@ -5979,7 +5987,7 @@ const VBtn = genericComponent()({
|
|
5979
5987
|
variantClasses
|
5980
5988
|
} = useVariant(variantProps);
|
5981
5989
|
const isDisabled = computed(() => group?.disabled.value || props.disabled);
|
5982
|
-
const isElevated =
|
5990
|
+
const isElevated = toRef(() => {
|
5983
5991
|
return props.variant === 'elevated' && !(props.disabled || props.flat || props.border);
|
5984
5992
|
});
|
5985
5993
|
const valueAttr = computed(() => {
|
@@ -6182,15 +6190,11 @@ const VAlert = genericComponent()({
|
|
6182
6190
|
slots
|
6183
6191
|
} = _ref;
|
6184
6192
|
const isActive = useProxiedModel(props, 'modelValue');
|
6185
|
-
const icon =
|
6193
|
+
const icon = toRef(() => {
|
6186
6194
|
if (props.icon === false) return undefined;
|
6187
6195
|
if (!props.type) return props.icon;
|
6188
6196
|
return props.icon ?? `$${props.type}`;
|
6189
6197
|
});
|
6190
|
-
const variantProps = computed(() => ({
|
6191
|
-
color: props.color ?? props.type,
|
6192
|
-
variant: props.variant
|
6193
|
-
}));
|
6194
6198
|
const {
|
6195
6199
|
themeClasses
|
6196
6200
|
} = provideTheme(props);
|
@@ -6198,7 +6202,10 @@ const VAlert = genericComponent()({
|
|
6198
6202
|
colorClasses,
|
6199
6203
|
colorStyles,
|
6200
6204
|
variantClasses
|
6201
|
-
} = useVariant(
|
6205
|
+
} = useVariant(() => ({
|
6206
|
+
color: props.color ?? props.type,
|
6207
|
+
variant: props.variant
|
6208
|
+
}));
|
6202
6209
|
const {
|
6203
6210
|
densityClasses
|
6204
6211
|
} = useDensity(props);
|
@@ -6220,11 +6227,11 @@ const VAlert = genericComponent()({
|
|
6220
6227
|
const {
|
6221
6228
|
textColorClasses,
|
6222
6229
|
textColorStyles
|
6223
|
-
} = useTextColor(
|
6230
|
+
} = useTextColor(() => props.borderColor);
|
6224
6231
|
const {
|
6225
6232
|
t
|
6226
6233
|
} = useLocale();
|
6227
|
-
const closeProps =
|
6234
|
+
const closeProps = toRef(() => ({
|
6228
6235
|
'aria-label': t(props.closeLabel),
|
6229
6236
|
onClick(e) {
|
6230
6237
|
isActive.value = false;
|
@@ -6461,8 +6468,8 @@ const VSelectionControlGroup = genericComponent()({
|
|
6461
6468
|
} = _ref;
|
6462
6469
|
const modelValue = useProxiedModel(props, 'modelValue');
|
6463
6470
|
const uid = useId();
|
6464
|
-
const id =
|
6465
|
-
const name =
|
6471
|
+
const id = toRef(() => props.id || `v-selection-control-group-${uid}`);
|
6472
|
+
const name = toRef(() => props.name || id.value);
|
6466
6473
|
const updateHandlers = new Set();
|
6467
6474
|
provide(VSelectionControlGroupSymbol, {
|
6468
6475
|
modelValue,
|
@@ -6478,20 +6485,20 @@ const VSelectionControlGroup = genericComponent()({
|
|
6478
6485
|
});
|
6479
6486
|
provideDefaults({
|
6480
6487
|
[props.defaultsTarget]: {
|
6481
|
-
color: toRef(props
|
6482
|
-
disabled: toRef(props
|
6483
|
-
density: toRef(props
|
6484
|
-
error: toRef(props
|
6485
|
-
inline: toRef(props
|
6488
|
+
color: toRef(() => props.color),
|
6489
|
+
disabled: toRef(() => props.disabled),
|
6490
|
+
density: toRef(() => props.density),
|
6491
|
+
error: toRef(() => props.error),
|
6492
|
+
inline: toRef(() => props.inline),
|
6486
6493
|
modelValue,
|
6487
|
-
multiple:
|
6494
|
+
multiple: toRef(() => !!props.multiple || props.multiple == null && Array.isArray(modelValue.value)),
|
6488
6495
|
name,
|
6489
|
-
falseIcon: toRef(props
|
6490
|
-
trueIcon: toRef(props
|
6491
|
-
readonly: toRef(props
|
6492
|
-
ripple: toRef(props
|
6493
|
-
type: toRef(props
|
6494
|
-
valueComparator: toRef(props
|
6496
|
+
falseIcon: toRef(() => props.falseIcon),
|
6497
|
+
trueIcon: toRef(() => props.trueIcon),
|
6498
|
+
readonly: toRef(() => props.readonly),
|
6499
|
+
ripple: toRef(() => props.ripple),
|
6500
|
+
type: toRef(() => props.type),
|
6501
|
+
valueComparator: toRef(() => props.valueComparator)
|
6495
6502
|
}
|
6496
6503
|
});
|
6497
6504
|
useRender(() => createVNode("div", {
|
@@ -6547,16 +6554,16 @@ function useSelectionControl(props) {
|
|
6547
6554
|
const {
|
6548
6555
|
textColorClasses,
|
6549
6556
|
textColorStyles
|
6550
|
-
} = useTextColor(
|
6557
|
+
} = useTextColor(() => {
|
6551
6558
|
if (props.error || props.disabled) return undefined;
|
6552
6559
|
return model.value ? props.color : props.baseColor;
|
6553
|
-
})
|
6560
|
+
});
|
6554
6561
|
const {
|
6555
6562
|
backgroundColorClasses,
|
6556
6563
|
backgroundColorStyles
|
6557
|
-
} = useBackgroundColor(
|
6564
|
+
} = useBackgroundColor(() => {
|
6558
6565
|
return model.value && !props.error && !props.disabled ? props.color : props.baseColor;
|
6559
|
-
})
|
6566
|
+
});
|
6560
6567
|
const icon = computed(() => model.value ? props.trueIcon : props.falseIcon);
|
6561
6568
|
return {
|
6562
6569
|
group,
|
@@ -6601,8 +6608,8 @@ const VSelectionControl = genericComponent()({
|
|
6601
6608
|
const isFocused = shallowRef(false);
|
6602
6609
|
const isFocusVisible = shallowRef(false);
|
6603
6610
|
const input = ref();
|
6604
|
-
const id =
|
6605
|
-
const isInteractive =
|
6611
|
+
const id = toRef(() => props.id || `input-${uid}`);
|
6612
|
+
const isInteractive = toRef(() => !props.disabled && !props.readonly);
|
6606
6613
|
group?.onForceUpdate(() => {
|
6607
6614
|
if (input.value) {
|
6608
6615
|
input.value.checked = model.value;
|
@@ -6740,10 +6747,10 @@ const VCheckboxBtn = genericComponent()({
|
|
6740
6747
|
indeterminate.value = false;
|
6741
6748
|
}
|
6742
6749
|
}
|
6743
|
-
const falseIcon =
|
6750
|
+
const falseIcon = toRef(() => {
|
6744
6751
|
return indeterminate.value ? props.indeterminateIcon : props.falseIcon;
|
6745
6752
|
});
|
6746
|
-
const trueIcon =
|
6753
|
+
const trueIcon = toRef(() => {
|
6747
6754
|
return indeterminate.value ? props.indeterminateIcon : props.trueIcon;
|
6748
6755
|
});
|
6749
6756
|
useRender(() => {
|
@@ -6831,7 +6838,7 @@ const VMessages = genericComponent()({
|
|
6831
6838
|
const {
|
6832
6839
|
textColorClasses,
|
6833
6840
|
textColorStyles
|
6834
|
-
} = useTextColor(
|
6841
|
+
} = useTextColor(() => props.color);
|
6835
6842
|
useRender(() => createVNode(MaybeTransition, {
|
6836
6843
|
"transition": props.transition,
|
6837
6844
|
"tag": "div",
|
@@ -6861,7 +6868,7 @@ const makeFocusProps = propsFactory({
|
|
6861
6868
|
function useFocus(props) {
|
6862
6869
|
let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
|
6863
6870
|
const isFocused = useProxiedModel(props, 'focused');
|
6864
|
-
const focusClasses =
|
6871
|
+
const focusClasses = toRef(() => {
|
6865
6872
|
return {
|
6866
6873
|
[`${name}--focused`]: isFocused.value
|
6867
6874
|
};
|
@@ -6900,8 +6907,8 @@ const makeFormProps = propsFactory({
|
|
6900
6907
|
}, 'form');
|
6901
6908
|
function createForm(props) {
|
6902
6909
|
const model = useProxiedModel(props, 'modelValue');
|
6903
|
-
const isDisabled =
|
6904
|
-
const isReadonly =
|
6910
|
+
const isDisabled = toRef(() => props.disabled);
|
6911
|
+
const isReadonly = toRef(() => props.readonly);
|
6905
6912
|
const isValidating = shallowRef(false);
|
6906
6913
|
const items = ref([]);
|
6907
6914
|
const errors = ref([]);
|
@@ -6991,7 +6998,7 @@ function createForm(props) {
|
|
6991
6998
|
isValidating,
|
6992
6999
|
isValid: model,
|
6993
7000
|
items,
|
6994
|
-
validateOn: toRef(props
|
7001
|
+
validateOn: toRef(() => props.validateOn)
|
6995
7002
|
});
|
6996
7003
|
return {
|
6997
7004
|
errors,
|
@@ -7306,10 +7313,10 @@ const VInput = genericComponent()({
|
|
7306
7313
|
resetValidation,
|
7307
7314
|
validate
|
7308
7315
|
}));
|
7309
|
-
const color =
|
7316
|
+
const color = toRef(() => {
|
7310
7317
|
return props.error || props.disabled ? undefined : props.focused ? props.color : props.baseColor;
|
7311
7318
|
});
|
7312
|
-
const iconColor =
|
7319
|
+
const iconColor = toRef(() => {
|
7313
7320
|
if (!props.iconColor) return undefined;
|
7314
7321
|
return props.iconColor === true ? color.value : props.iconColor;
|
7315
7322
|
});
|
@@ -7399,7 +7406,6 @@ const VCheckbox = genericComponent()({
|
|
7399
7406
|
blur
|
7400
7407
|
} = useFocus(props);
|
7401
7408
|
const uid = useId();
|
7402
|
-
const id = computed(() => props.id || `checkbox-${uid}`);
|
7403
7409
|
useRender(() => {
|
7404
7410
|
const [rootAttrs, controlAttrs] = filterInputAttrs(attrs);
|
7405
7411
|
const inputProps = VInput.filterProps(props);
|
@@ -7409,7 +7415,7 @@ const VCheckbox = genericComponent()({
|
|
7409
7415
|
}, rootAttrs, inputProps, {
|
7410
7416
|
"modelValue": model.value,
|
7411
7417
|
"onUpdate:modelValue": $event => model.value = $event,
|
7412
|
-
"id": id
|
7418
|
+
"id": props.id || `checkbox-${uid}`,
|
7413
7419
|
"focused": isFocused.value,
|
7414
7420
|
"style": props.style
|
7415
7421
|
}), {
|
@@ -7593,7 +7599,7 @@ function useDisplay() {
|
|
7593
7599
|
return false;
|
7594
7600
|
}
|
7595
7601
|
});
|
7596
|
-
const displayClasses =
|
7602
|
+
const displayClasses = toRef(() => {
|
7597
7603
|
if (!name) return {};
|
7598
7604
|
return {
|
7599
7605
|
[`${name}--mobile`]: mobile.value
|
@@ -7708,7 +7714,7 @@ function useGoTo() {
|
|
7708
7714
|
const goTo = {
|
7709
7715
|
...goToInstance,
|
7710
7716
|
// can be set via VLocaleProvider
|
7711
|
-
rtl:
|
7717
|
+
rtl: toRef(() => goToInstance.rtl.value || isRtl.value)
|
7712
7718
|
};
|
7713
7719
|
async function go(target, options) {
|
7714
7720
|
return scrollTo(target, mergeDeep(_options, options), false, goTo);
|
@@ -8200,11 +8206,11 @@ const VChipGroup = genericComponent()({
|
|
8200
8206
|
} = useGroup(props, VChipGroupSymbol);
|
8201
8207
|
provideDefaults({
|
8202
8208
|
VChip: {
|
8203
|
-
baseColor: toRef(props
|
8204
|
-
color: toRef(props
|
8205
|
-
disabled: toRef(props
|
8206
|
-
filter: toRef(props
|
8207
|
-
variant: toRef(props
|
8209
|
+
baseColor: toRef(() => props.baseColor),
|
8210
|
+
color: toRef(() => props.color),
|
8211
|
+
disabled: toRef(() => props.disabled),
|
8212
|
+
filter: toRef(() => props.filter),
|
8213
|
+
variant: toRef(() => props.variant)
|
8208
8214
|
}
|
8209
8215
|
});
|
8210
8216
|
useRender(() => {
|
@@ -8330,9 +8336,9 @@ const VChip = genericComponent()({
|
|
8330
8336
|
const isActive = useProxiedModel(props, 'modelValue');
|
8331
8337
|
const group = useGroupItem(props, VChipGroupSymbol, false);
|
8332
8338
|
const link = useLink(props, attrs);
|
8333
|
-
const isLink =
|
8339
|
+
const isLink = toRef(() => props.link !== false && link.isLink.value);
|
8334
8340
|
const isClickable = computed(() => !props.disabled && props.link !== false && (!!group || props.link || link.isClickable.value));
|
8335
|
-
const closeProps =
|
8341
|
+
const closeProps = toRef(() => ({
|
8336
8342
|
'aria-label': t(props.closeLabel),
|
8337
8343
|
onClick(e) {
|
8338
8344
|
e.preventDefault();
|
@@ -8341,18 +8347,17 @@ const VChip = genericComponent()({
|
|
8341
8347
|
emit('click:close', e);
|
8342
8348
|
}
|
8343
8349
|
}));
|
8344
|
-
const
|
8350
|
+
const {
|
8351
|
+
colorClasses,
|
8352
|
+
colorStyles,
|
8353
|
+
variantClasses
|
8354
|
+
} = useVariant(() => {
|
8345
8355
|
const showColor = !group || group.isSelected.value;
|
8346
8356
|
return {
|
8347
8357
|
color: showColor ? props.color ?? props.baseColor : props.baseColor,
|
8348
8358
|
variant: props.variant
|
8349
8359
|
};
|
8350
8360
|
});
|
8351
|
-
const {
|
8352
|
-
colorClasses,
|
8353
|
-
colorStyles,
|
8354
|
-
variantClasses
|
8355
|
-
} = useVariant(variantProps);
|
8356
8361
|
function onClick(e) {
|
8357
8362
|
emit('click', e);
|
8358
8363
|
if (!isClickable.value) return;
|
@@ -9019,8 +9024,8 @@ const useNested = props => {
|
|
9019
9024
|
id: shallowRef(),
|
9020
9025
|
root: {
|
9021
9026
|
opened,
|
9022
|
-
activatable: toRef(props
|
9023
|
-
selectable: toRef(props
|
9027
|
+
activatable: toRef(() => props.activatable),
|
9028
|
+
selectable: toRef(() => props.selectable),
|
9024
9029
|
activated,
|
9025
9030
|
selected,
|
9026
9031
|
selectedValues: computed(() => {
|
@@ -9149,7 +9154,7 @@ const useNested = props => {
|
|
9149
9154
|
const useNestedItem = (id, isGroup) => {
|
9150
9155
|
const parent = inject$1(VNestedSymbol, emptyNested);
|
9151
9156
|
const uidSymbol = Symbol('nested item');
|
9152
|
-
const computedId = computed(() => id
|
9157
|
+
const computedId = computed(() => toValue(id) ?? uidSymbol);
|
9153
9158
|
const item = {
|
9154
9159
|
...parent,
|
9155
9160
|
id: computedId,
|
@@ -9225,7 +9230,7 @@ const VListGroup = genericComponent()({
|
|
9225
9230
|
isOpen,
|
9226
9231
|
open,
|
9227
9232
|
id: _id
|
9228
|
-
} = useNestedItem(
|
9233
|
+
} = useNestedItem(() => props.value, true);
|
9229
9234
|
const id = computed(() => `v-list-group--id-${String(_id.value)}`);
|
9230
9235
|
const list = useList();
|
9231
9236
|
const {
|
@@ -9399,12 +9404,12 @@ const VListItem = genericComponent()({
|
|
9399
9404
|
} = useNestedItem(id, false);
|
9400
9405
|
const list = useList();
|
9401
9406
|
const isActive = computed(() => props.active !== false && (props.active || link.isActive?.value || (root.activatable.value ? isActivated.value : isSelected.value)));
|
9402
|
-
const isLink =
|
9407
|
+
const isLink = toRef(() => props.link !== false && link.isLink.value);
|
9403
9408
|
const isSelectable = computed(() => !!list && (root.selectable.value || root.activatable.value || props.value != null));
|
9404
9409
|
const isClickable = computed(() => !props.disabled && props.link !== false && (props.link || link.isClickable.value || isSelectable.value));
|
9405
|
-
const roundedProps =
|
9406
|
-
const color =
|
9407
|
-
const variantProps =
|
9410
|
+
const roundedProps = toRef(() => props.rounded || props.nav);
|
9411
|
+
const color = toRef(() => props.color ?? props.activeColor);
|
9412
|
+
const variantProps = toRef(() => ({
|
9408
9413
|
color: isActive.value ? color.value ?? props.baseColor : props.baseColor,
|
9409
9414
|
variant: props.variant
|
9410
9415
|
}));
|
@@ -9447,7 +9452,7 @@ const VListItem = genericComponent()({
|
|
9447
9452
|
const {
|
9448
9453
|
roundedClasses
|
9449
9454
|
} = useRounded(roundedProps);
|
9450
|
-
const lineClasses =
|
9455
|
+
const lineClasses = toRef(() => props.lines ? `v-list-item--${props.lines}-line` : undefined);
|
9451
9456
|
const slotProps = computed(() => ({
|
9452
9457
|
isActive: isActive.value,
|
9453
9458
|
select,
|
@@ -9617,7 +9622,7 @@ const VListSubheader = genericComponent()({
|
|
9617
9622
|
const {
|
9618
9623
|
textColorClasses,
|
9619
9624
|
textColorStyles
|
9620
|
-
} = useTextColor(
|
9625
|
+
} = useTextColor(() => props.color);
|
9621
9626
|
useRender(() => {
|
9622
9627
|
const hasText = !!(slots.default || props.title);
|
9623
9628
|
return createVNode(props.tag, {
|
@@ -9662,7 +9667,7 @@ const VDivider = genericComponent()({
|
|
9662
9667
|
const {
|
9663
9668
|
textColorClasses,
|
9664
9669
|
textColorStyles
|
9665
|
-
} = useTextColor(
|
9670
|
+
} = useTextColor(() => props.color);
|
9666
9671
|
const dividerStyles = computed(() => {
|
9667
9672
|
const styles = {};
|
9668
9673
|
if (props.length) {
|
@@ -10024,7 +10029,7 @@ const VList = genericComponent()({
|
|
10024
10029
|
const {
|
10025
10030
|
backgroundColorClasses,
|
10026
10031
|
backgroundColorStyles
|
10027
|
-
} = useBackgroundColor(
|
10032
|
+
} = useBackgroundColor(() => props.bgColor);
|
10028
10033
|
const {
|
10029
10034
|
borderClasses
|
10030
10035
|
} = useBorder(props);
|
@@ -10047,30 +10052,30 @@ const VList = genericComponent()({
|
|
10047
10052
|
select,
|
10048
10053
|
getPath
|
10049
10054
|
} = useNested(props);
|
10050
|
-
const lineClasses =
|
10051
|
-
const activeColor = toRef(props
|
10052
|
-
const baseColor = toRef(props
|
10053
|
-
const color = toRef(props
|
10055
|
+
const lineClasses = toRef(() => props.lines ? `v-list--${props.lines}-line` : undefined);
|
10056
|
+
const activeColor = toRef(() => props.activeColor);
|
10057
|
+
const baseColor = toRef(() => props.baseColor);
|
10058
|
+
const color = toRef(() => props.color);
|
10054
10059
|
createList();
|
10055
10060
|
provideDefaults({
|
10056
10061
|
VListGroup: {
|
10057
10062
|
activeColor,
|
10058
10063
|
baseColor,
|
10059
10064
|
color,
|
10060
|
-
expandIcon: toRef(props
|
10061
|
-
collapseIcon: toRef(props
|
10065
|
+
expandIcon: toRef(() => props.expandIcon),
|
10066
|
+
collapseIcon: toRef(() => props.collapseIcon)
|
10062
10067
|
},
|
10063
10068
|
VListItem: {
|
10064
|
-
activeClass: toRef(props
|
10069
|
+
activeClass: toRef(() => props.activeClass),
|
10065
10070
|
activeColor,
|
10066
10071
|
baseColor,
|
10067
10072
|
color,
|
10068
|
-
density: toRef(props
|
10069
|
-
disabled: toRef(props
|
10070
|
-
lines: toRef(props
|
10071
|
-
nav: toRef(props
|
10072
|
-
slim: toRef(props
|
10073
|
-
variant: toRef(props
|
10073
|
+
density: toRef(() => props.density),
|
10074
|
+
disabled: toRef(() => props.disabled),
|
10075
|
+
lines: toRef(() => props.lines),
|
10076
|
+
nav: toRef(() => props.nav),
|
10077
|
+
slim: toRef(() => props.slim),
|
10078
|
+
variant: toRef(() => props.variant)
|
10074
10079
|
}
|
10075
10080
|
});
|
10076
10081
|
const isFocused = shallowRef(false);
|
@@ -10398,13 +10403,22 @@ function connectedLocationStrategy(data, props, contentStyles) {
|
|
10398
10403
|
onScopeDispose(() => {
|
10399
10404
|
observer.disconnect();
|
10400
10405
|
});
|
10406
|
+
let targetBox = new Box({
|
10407
|
+
x: 0,
|
10408
|
+
y: 0,
|
10409
|
+
width: 0,
|
10410
|
+
height: 0
|
10411
|
+
});
|
10401
10412
|
|
10402
10413
|
// eslint-disable-next-line max-statements
|
10403
10414
|
function updateLocation() {
|
10404
10415
|
observe = false;
|
10405
10416
|
requestAnimationFrame(() => observe = true);
|
10406
10417
|
if (!data.target.value || !data.contentEl.value) return;
|
10407
|
-
|
10418
|
+
if (Array.isArray(data.target.value) || data.target.value.offsetParent) {
|
10419
|
+
targetBox = getTargetBox(data.target.value);
|
10420
|
+
} // Otherwise target element is hidden, use last known value
|
10421
|
+
|
10408
10422
|
const contentBox = getIntrinsicSize(data.contentEl.value, data.isRtl.value);
|
10409
10423
|
const scrollParents = getScrollParents(data.contentEl.value);
|
10410
10424
|
const viewportMargin = 12;
|
@@ -11114,7 +11128,7 @@ const makeLazyProps = propsFactory({
|
|
11114
11128
|
}, 'lazy');
|
11115
11129
|
function useLazy(props, active) {
|
11116
11130
|
const isBooted = shallowRef(false);
|
11117
|
-
const hasContent =
|
11131
|
+
const hasContent = toRef(() => isBooted.value || props.eager || active.value);
|
11118
11132
|
watch(active, () => isBooted.value = true);
|
11119
11133
|
function onAfterLeave() {
|
11120
11134
|
if (!props.eager) isBooted.value = false;
|
@@ -11151,10 +11165,10 @@ function useStack(isActive, zIndex, disableGlobalStack) {
|
|
11151
11165
|
activeChildren: new Set()
|
11152
11166
|
});
|
11153
11167
|
provide(StackSymbol, stack);
|
11154
|
-
const _zIndex = shallowRef(Number(zIndex
|
11168
|
+
const _zIndex = shallowRef(Number(toValue(zIndex)));
|
11155
11169
|
useToggleScope(isActive, () => {
|
11156
11170
|
const lastZIndex = globalStack.at(-1)?.[1];
|
11157
|
-
_zIndex.value = lastZIndex ? lastZIndex + 10 : Number(zIndex
|
11171
|
+
_zIndex.value = lastZIndex ? lastZIndex + 10 : Number(toValue(zIndex));
|
11158
11172
|
if (createStackEntry) {
|
11159
11173
|
globalStack.push([vm.uid, _zIndex.value]);
|
11160
11174
|
}
|
@@ -11174,11 +11188,11 @@ function useStack(isActive, zIndex, disableGlobalStack) {
|
|
11174
11188
|
setTimeout(() => globalTop.value = _isTop);
|
11175
11189
|
});
|
11176
11190
|
}
|
11177
|
-
const localTop =
|
11191
|
+
const localTop = toRef(() => !stack.activeChildren.size);
|
11178
11192
|
return {
|
11179
11193
|
globalTop: readonly(globalTop),
|
11180
11194
|
localTop,
|
11181
|
-
stackStyles:
|
11195
|
+
stackStyles: toRef(() => ({
|
11182
11196
|
zIndex: _zIndex.value
|
11183
11197
|
}))
|
11184
11198
|
};
|
@@ -11395,14 +11409,14 @@ const VOverlay = genericComponent()({
|
|
11395
11409
|
hasContent,
|
11396
11410
|
onAfterLeave: _onAfterLeave
|
11397
11411
|
} = useLazy(props, isActive);
|
11398
|
-
const scrimColor = useBackgroundColor(
|
11412
|
+
const scrimColor = useBackgroundColor(() => {
|
11399
11413
|
return typeof props.scrim === 'string' ? props.scrim : null;
|
11400
|
-
})
|
11414
|
+
});
|
11401
11415
|
const {
|
11402
11416
|
globalTop,
|
11403
11417
|
localTop,
|
11404
11418
|
stackStyles
|
11405
|
-
} = useStack(isActive,
|
11419
|
+
} = useStack(isActive, () => props.zIndex, props._disableGlobalStack);
|
11406
11420
|
const {
|
11407
11421
|
activatorEl,
|
11408
11422
|
activatorRef,
|
@@ -11728,7 +11742,7 @@ const VMenu = genericComponent()({
|
|
11728
11742
|
isRtl
|
11729
11743
|
} = useRtl();
|
11730
11744
|
const uid = useId();
|
11731
|
-
const id =
|
11745
|
+
const id = toRef(() => props.id || `v-menu-${uid}`);
|
11732
11746
|
const overlay = ref();
|
11733
11747
|
const parent = inject$1(VMenuSymbol, null);
|
11734
11748
|
const openChildren = shallowRef(new Set());
|
@@ -11896,7 +11910,7 @@ const VCounter = genericComponent()({
|
|
11896
11910
|
let {
|
11897
11911
|
slots
|
11898
11912
|
} = _ref;
|
11899
|
-
const counter =
|
11913
|
+
const counter = toRef(() => {
|
11900
11914
|
return props.max ? `${props.value} / ${props.max}` : String(props.value);
|
11901
11915
|
});
|
11902
11916
|
useRender(() => createVNode(MaybeTransition, {
|
@@ -12023,12 +12037,12 @@ const VField = genericComponent()({
|
|
12023
12037
|
const {
|
12024
12038
|
rtlClasses
|
12025
12039
|
} = useRtl();
|
12026
|
-
const isActive =
|
12027
|
-
const hasLabel =
|
12028
|
-
const hasFloatingLabel =
|
12040
|
+
const isActive = toRef(() => props.dirty || props.active);
|
12041
|
+
const hasLabel = toRef(() => !!(props.label || slots.label));
|
12042
|
+
const hasFloatingLabel = toRef(() => !props.singleLine && hasLabel.value);
|
12029
12043
|
const uid = useId();
|
12030
12044
|
const id = computed(() => props.id || `input-${uid}`);
|
12031
|
-
const messagesId =
|
12045
|
+
const messagesId = toRef(() => `${id.value}-messages`);
|
12032
12046
|
const labelRef = ref();
|
12033
12047
|
const floatingLabelRef = ref();
|
12034
12048
|
const controlRef = ref();
|
@@ -12043,7 +12057,7 @@ const VField = genericComponent()({
|
|
12043
12057
|
const {
|
12044
12058
|
backgroundColorClasses,
|
12045
12059
|
backgroundColorStyles
|
12046
|
-
} = useBackgroundColor(
|
12060
|
+
} = useBackgroundColor(() => props.bgColor);
|
12047
12061
|
const {
|
12048
12062
|
textColorClasses,
|
12049
12063
|
textColorStyles
|
@@ -12770,7 +12784,7 @@ const VVirtualScroll = genericComponent()({
|
|
12770
12784
|
paddingTop,
|
12771
12785
|
paddingBottom,
|
12772
12786
|
computedItems
|
12773
|
-
} = useVirtual(props, toRef(props
|
12787
|
+
} = useVirtual(props, toRef(() => props.items));
|
12774
12788
|
useToggleScope(() => props.renderless, () => {
|
12775
12789
|
function handleListeners() {
|
12776
12790
|
let add = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
@@ -13007,7 +13021,7 @@ const VSelect = genericComponent()({
|
|
13007
13021
|
_menu.value = v;
|
13008
13022
|
}
|
13009
13023
|
});
|
13010
|
-
const label =
|
13024
|
+
const label = toRef(() => menu.value ? props.closeText : props.openText);
|
13011
13025
|
const computedMenuProps = computed(() => {
|
13012
13026
|
return {
|
13013
13027
|
...props.menuProps,
|
@@ -13509,7 +13523,6 @@ const VAutocomplete = genericComponent()({
|
|
13509
13523
|
const vMenuRef = ref();
|
13510
13524
|
const vVirtualScrollRef = ref();
|
13511
13525
|
const selectionIndex = shallowRef(-1);
|
13512
|
-
const color = computed(() => vTextFieldRef.value?.color);
|
13513
13526
|
const {
|
13514
13527
|
items,
|
13515
13528
|
transformIn,
|
@@ -13518,7 +13531,7 @@ const VAutocomplete = genericComponent()({
|
|
13518
13531
|
const {
|
13519
13532
|
textColorClasses,
|
13520
13533
|
textColorStyles
|
13521
|
-
} = useTextColor(color);
|
13534
|
+
} = useTextColor(() => vTextFieldRef.value?.color);
|
13522
13535
|
const search = useProxiedModel(props, 'search', '');
|
13523
13536
|
const model = useProxiedModel(props, 'modelValue', [], v => transformIn(v === null ? [null] : wrapInArray(v)), v => {
|
13524
13537
|
const transformed = transformOut(v);
|
@@ -13967,7 +13980,7 @@ const VBadge = genericComponent()({
|
|
13967
13980
|
const {
|
13968
13981
|
backgroundColorClasses,
|
13969
13982
|
backgroundColorStyles
|
13970
|
-
} = useBackgroundColor(
|
13983
|
+
} = useBackgroundColor(() => props.color);
|
13971
13984
|
const {
|
13972
13985
|
roundedClasses
|
13973
13986
|
} = useRounded(props);
|
@@ -13977,7 +13990,7 @@ const VBadge = genericComponent()({
|
|
13977
13990
|
const {
|
13978
13991
|
textColorClasses,
|
13979
13992
|
textColorStyles
|
13980
|
-
} = useTextColor(
|
13993
|
+
} = useTextColor(() => props.textColor);
|
13981
13994
|
const {
|
13982
13995
|
themeClasses
|
13983
13996
|
} = useTheme();
|
@@ -14089,7 +14102,7 @@ const VBanner = genericComponent()({
|
|
14089
14102
|
const {
|
14090
14103
|
backgroundColorClasses,
|
14091
14104
|
backgroundColorStyles
|
14092
|
-
} = useBackgroundColor(props
|
14105
|
+
} = useBackgroundColor(() => props.bgColor);
|
14093
14106
|
const {
|
14094
14107
|
borderClasses
|
14095
14108
|
} = useBorder(props);
|
@@ -14118,8 +14131,8 @@ const VBanner = genericComponent()({
|
|
14118
14131
|
const {
|
14119
14132
|
themeClasses
|
14120
14133
|
} = provideTheme(props);
|
14121
|
-
const color = toRef(props
|
14122
|
-
const density = toRef(props
|
14134
|
+
const color = toRef(() => props.color);
|
14135
|
+
const density = toRef(() => props.density);
|
14123
14136
|
provideDefaults({
|
14124
14137
|
VBannerActions: {
|
14125
14138
|
color,
|
@@ -14228,7 +14241,7 @@ const VBottomNavigation = genericComponent()({
|
|
14228
14241
|
const {
|
14229
14242
|
backgroundColorClasses,
|
14230
14243
|
backgroundColorStyles
|
14231
|
-
} = useBackgroundColor(
|
14244
|
+
} = useBackgroundColor(() => props.bgColor);
|
14232
14245
|
const {
|
14233
14246
|
densityClasses
|
14234
14247
|
} = useDensity(props);
|
@@ -14248,19 +14261,19 @@ const VBottomNavigation = genericComponent()({
|
|
14248
14261
|
} = useLayoutItem({
|
14249
14262
|
id: props.name,
|
14250
14263
|
order: computed(() => parseInt(props.order, 10)),
|
14251
|
-
position:
|
14252
|
-
layoutSize:
|
14264
|
+
position: toRef(() => 'bottom'),
|
14265
|
+
layoutSize: toRef(() => isActive.value ? height.value : 0),
|
14253
14266
|
elementSize: height,
|
14254
14267
|
active: isActive,
|
14255
|
-
absolute: toRef(props
|
14268
|
+
absolute: toRef(() => props.absolute)
|
14256
14269
|
});
|
14257
14270
|
useGroup(props, VBtnToggleSymbol);
|
14258
14271
|
provideDefaults({
|
14259
14272
|
VBtn: {
|
14260
|
-
baseColor: toRef(props
|
14261
|
-
color: toRef(props
|
14262
|
-
density: toRef(props
|
14263
|
-
stacked:
|
14273
|
+
baseColor: toRef(() => props.baseColor),
|
14274
|
+
color: toRef(() => props.color),
|
14275
|
+
density: toRef(() => props.density),
|
14276
|
+
stacked: toRef(() => props.mode !== 'horizontal'),
|
14264
14277
|
variant: 'text'
|
14265
14278
|
}
|
14266
14279
|
}, {
|
@@ -14496,11 +14509,10 @@ const VBreadcrumbsItem = genericComponent()({
|
|
14496
14509
|
} = _ref;
|
14497
14510
|
const link = useLink(props, attrs);
|
14498
14511
|
const isActive = computed(() => props.active || link.isActive?.value);
|
14499
|
-
const color = computed(() => isActive.value ? props.activeColor : props.color);
|
14500
14512
|
const {
|
14501
14513
|
textColorClasses,
|
14502
14514
|
textColorStyles
|
14503
|
-
} = useTextColor(color);
|
14515
|
+
} = useTextColor(() => isActive.value ? props.activeColor : props.color);
|
14504
14516
|
useRender(() => {
|
14505
14517
|
return createVNode(props.tag, {
|
14506
14518
|
"class": ['v-breadcrumbs-item', {
|
@@ -14555,7 +14567,7 @@ const VBreadcrumbs = genericComponent()({
|
|
14555
14567
|
const {
|
14556
14568
|
backgroundColorClasses,
|
14557
14569
|
backgroundColorStyles
|
14558
|
-
} = useBackgroundColor(
|
14570
|
+
} = useBackgroundColor(() => props.bgColor);
|
14559
14571
|
const {
|
14560
14572
|
densityClasses
|
14561
14573
|
} = useDensity(props);
|
@@ -14564,13 +14576,13 @@ const VBreadcrumbs = genericComponent()({
|
|
14564
14576
|
} = useRounded(props);
|
14565
14577
|
provideDefaults({
|
14566
14578
|
VBreadcrumbsDivider: {
|
14567
|
-
divider: toRef(props
|
14579
|
+
divider: toRef(() => props.divider)
|
14568
14580
|
},
|
14569
14581
|
VBreadcrumbsItem: {
|
14570
|
-
activeClass: toRef(props
|
14571
|
-
activeColor: toRef(props
|
14572
|
-
color: toRef(props
|
14573
|
-
disabled: toRef(props
|
14582
|
+
activeClass: toRef(() => props.activeClass),
|
14583
|
+
activeColor: toRef(() => props.activeColor),
|
14584
|
+
color: toRef(() => props.color),
|
14585
|
+
disabled: toRef(() => props.disabled)
|
14574
14586
|
}
|
14575
14587
|
});
|
14576
14588
|
const items = computed(() => props.items.map(item => {
|
@@ -14893,10 +14905,10 @@ const VCard = genericComponent()({
|
|
14893
14905
|
roundedClasses
|
14894
14906
|
} = useRounded(props);
|
14895
14907
|
const link = useLink(props, attrs);
|
14896
|
-
const isLink = computed(() => props.link !== false && link.isLink.value);
|
14897
|
-
const isClickable = computed(() => !props.disabled && props.link !== false && (props.link || link.isClickable.value));
|
14898
14908
|
useRender(() => {
|
14899
|
-
const
|
14909
|
+
const isLink = props.link !== false && link.isLink.value;
|
14910
|
+
const isClickable = !props.disabled && props.link !== false && (props.link || link.isClickable.value);
|
14911
|
+
const Tag = isLink ? 'a' : props.tag;
|
14900
14912
|
const hasTitle = !!(slots.title || props.title != null);
|
14901
14913
|
const hasSubtitle = !!(slots.subtitle || props.subtitle != null);
|
14902
14914
|
const hasHeader = hasTitle || hasSubtitle;
|
@@ -14910,10 +14922,10 @@ const VCard = genericComponent()({
|
|
14910
14922
|
'v-card--disabled': props.disabled,
|
14911
14923
|
'v-card--flat': props.flat,
|
14912
14924
|
'v-card--hover': props.hover && !(props.disabled || props.flat),
|
14913
|
-
'v-card--link': isClickable
|
14925
|
+
'v-card--link': isClickable
|
14914
14926
|
}, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, loaderClasses.value, positionClasses.value, roundedClasses.value, variantClasses.value, props.class],
|
14915
14927
|
"style": [colorStyles.value, dimensionStyles.value, locationStyles.value, props.style],
|
14916
|
-
"onClick": isClickable
|
14928
|
+
"onClick": isClickable && link.navigate,
|
14917
14929
|
"tabindex": props.disabled ? -1 : undefined
|
14918
14930
|
}, link.linkProps), {
|
14919
14931
|
default: () => [hasImage && createVNode("div", {
|
@@ -14958,8 +14970,8 @@ const VCard = genericComponent()({
|
|
14958
14970
|
default: () => [slots.text?.() ?? props.text]
|
14959
14971
|
}), slots.default?.(), slots.actions && createVNode(VCardActions, null, {
|
14960
14972
|
default: slots.actions
|
14961
|
-
}), genOverlays(isClickable
|
14962
|
-
}), [[resolveDirective("ripple"), isClickable
|
14973
|
+
}), genOverlays(isClickable, 'v-card')]
|
14974
|
+
}), [[resolveDirective("ripple"), isClickable && props.ripple]]);
|
14963
14975
|
});
|
14964
14976
|
return {};
|
14965
14977
|
}
|
@@ -15172,8 +15184,8 @@ const VWindow = genericComponent()({
|
|
15172
15184
|
transitionHeight,
|
15173
15185
|
rootRef
|
15174
15186
|
});
|
15175
|
-
const canMoveBack =
|
15176
|
-
const canMoveForward =
|
15187
|
+
const canMoveBack = toRef(() => props.continuous || activeIndex.value !== 0);
|
15188
|
+
const canMoveForward = toRef(() => props.continuous || activeIndex.value !== group.items.value.length - 1);
|
15177
15189
|
function prev() {
|
15178
15190
|
canMoveBack.value && group.prev();
|
15179
15191
|
}
|
@@ -16075,7 +16087,7 @@ const useSlider = _ref => {
|
|
16075
16087
|
const {
|
16076
16088
|
isRtl
|
16077
16089
|
} = useRtl();
|
16078
|
-
const isReversed = toRef(props
|
16090
|
+
const isReversed = toRef(() => props.reverse);
|
16079
16091
|
const vertical = computed(() => props.direction === 'vertical');
|
16080
16092
|
const indexFromEnd = computed(() => vertical.value !== isReversed.value);
|
16081
16093
|
const {
|
@@ -16089,7 +16101,7 @@ const useSlider = _ref => {
|
|
16089
16101
|
const tickSize = computed(() => parseInt(props.tickSize, 10));
|
16090
16102
|
const trackSize = computed(() => parseInt(props.trackSize, 10));
|
16091
16103
|
const numTicks = computed(() => (max.value - min.value) / step.value);
|
16092
|
-
const disabled = toRef(props
|
16104
|
+
const disabled = toRef(() => props.disabled);
|
16093
16105
|
const thumbColor = computed(() => props.error || props.disabled ? undefined : props.thumbColor ?? props.color);
|
16094
16106
|
const trackColor = computed(() => props.error || props.disabled ? undefined : props.trackColor ?? props.color);
|
16095
16107
|
const trackFillColor = computed(() => props.error || props.disabled ? undefined : props.trackFillColor ?? props.color);
|
@@ -16191,7 +16203,7 @@ const useSlider = _ref => {
|
|
16191
16203
|
const percentage = (val - min.value) / (max.value - min.value) * 100;
|
16192
16204
|
return clamp(isNaN(percentage) ? 0 : percentage, 0, 100);
|
16193
16205
|
};
|
16194
|
-
const showTicks = toRef(props
|
16206
|
+
const showTicks = toRef(() => props.showTicks);
|
16195
16207
|
const parsedTicks = computed(() => {
|
16196
16208
|
if (!showTicks.value) return [];
|
16197
16209
|
if (!props.ticks) {
|
@@ -16222,11 +16234,11 @@ const useSlider = _ref => {
|
|
16222
16234
|
}));
|
16223
16235
|
const data = {
|
16224
16236
|
activeThumbRef,
|
16225
|
-
color: toRef(props
|
16237
|
+
color: toRef(() => props.color),
|
16226
16238
|
decimals,
|
16227
16239
|
disabled,
|
16228
|
-
direction: toRef(props
|
16229
|
-
elevation: toRef(props
|
16240
|
+
direction: toRef(() => props.direction),
|
16241
|
+
elevation: toRef(() => props.elevation),
|
16230
16242
|
hasLabels,
|
16231
16243
|
isReversed,
|
16232
16244
|
indexFromEnd,
|
@@ -16239,16 +16251,16 @@ const useSlider = _ref => {
|
|
16239
16251
|
parsedTicks,
|
16240
16252
|
parseMouseMove,
|
16241
16253
|
position,
|
16242
|
-
readonly: toRef(props
|
16243
|
-
rounded: toRef(props
|
16254
|
+
readonly: toRef(() => props.readonly),
|
16255
|
+
rounded: toRef(() => props.rounded),
|
16244
16256
|
roundValue,
|
16245
16257
|
showTicks,
|
16246
16258
|
startOffset,
|
16247
16259
|
step,
|
16248
16260
|
thumbSize,
|
16249
16261
|
thumbColor,
|
16250
|
-
thumbLabel: toRef(props
|
16251
|
-
ticks: toRef(props
|
16262
|
+
thumbLabel: toRef(() => props.thumbLabel),
|
16263
|
+
ticks: toRef(() => props.ticks),
|
16252
16264
|
tickSize,
|
16253
16265
|
trackColor,
|
16254
16266
|
trackContainerRef,
|
@@ -17167,7 +17179,7 @@ const VSheet = genericComponent()({
|
|
17167
17179
|
const {
|
17168
17180
|
backgroundColorClasses,
|
17169
17181
|
backgroundColorStyles
|
17170
|
-
} = useBackgroundColor(
|
17182
|
+
} = useBackgroundColor(() => props.color);
|
17171
17183
|
const {
|
17172
17184
|
borderClasses
|
17173
17185
|
} = useBorder(props);
|
@@ -17214,7 +17226,7 @@ const VPicker = genericComponent()({
|
|
17214
17226
|
const {
|
17215
17227
|
backgroundColorClasses,
|
17216
17228
|
backgroundColorStyles
|
17217
|
-
} = useBackgroundColor(
|
17229
|
+
} = useBackgroundColor(() => props.color);
|
17218
17230
|
useRender(() => {
|
17219
17231
|
const sheetProps = VSheet.filterProps(props);
|
17220
17232
|
const hasTitle = !!(props.title || slots.title);
|
@@ -18199,7 +18211,6 @@ const VCombobox = genericComponent()({
|
|
18199
18211
|
const vVirtualScrollRef = ref();
|
18200
18212
|
const selectionIndex = shallowRef(-1);
|
18201
18213
|
let cleared = false;
|
18202
|
-
const color = computed(() => vTextFieldRef.value?.color);
|
18203
18214
|
const {
|
18204
18215
|
items,
|
18205
18216
|
transformIn,
|
@@ -18208,7 +18219,7 @@ const VCombobox = genericComponent()({
|
|
18208
18219
|
const {
|
18209
18220
|
textColorClasses,
|
18210
18221
|
textColorStyles
|
18211
|
-
} = useTextColor(color);
|
18222
|
+
} = useTextColor(() => vTextFieldRef.value?.color);
|
18212
18223
|
const model = useProxiedModel(props, 'modelValue', [], v => transformIn(wrapInArray(v)), v => {
|
18213
18224
|
const transformed = transformOut(v);
|
18214
18225
|
return props.multiple ? transformed : transformed[0] ?? null;
|
@@ -18263,7 +18274,7 @@ const VCombobox = genericComponent()({
|
|
18263
18274
|
_menu.value = v;
|
18264
18275
|
}
|
18265
18276
|
});
|
18266
|
-
const label =
|
18277
|
+
const label = toRef(() => menu.value ? props.closeText : props.openText);
|
18267
18278
|
watch(_search, value => {
|
18268
18279
|
if (cleared) {
|
18269
18280
|
// wait for clear to finish, VTextField sets _search to null
|
@@ -18769,7 +18780,7 @@ const makeDataTableExpandProps = propsFactory({
|
|
18769
18780
|
}, 'DataTable-expand');
|
18770
18781
|
const VDataTableExpandedKey = Symbol.for('vuetify:datatable:expanded');
|
18771
18782
|
function provideExpanded(props) {
|
18772
|
-
const expandOnClick = toRef(props
|
18783
|
+
const expandOnClick = toRef(() => props.expandOnClick);
|
18773
18784
|
const expanded = useProxiedModel(props, 'expanded', props.expanded, v => {
|
18774
18785
|
return new Set(v);
|
18775
18786
|
}, v => {
|
@@ -18956,23 +18967,23 @@ function useOptions(_ref) {
|
|
18956
18967
|
search
|
18957
18968
|
} = _ref;
|
18958
18969
|
const vm = getCurrentInstance('VDataTable');
|
18959
|
-
const options =
|
18970
|
+
const options = () => ({
|
18960
18971
|
page: page.value,
|
18961
18972
|
itemsPerPage: itemsPerPage.value,
|
18962
18973
|
sortBy: sortBy.value,
|
18963
18974
|
groupBy: groupBy.value,
|
18964
18975
|
search: search.value
|
18965
|
-
})
|
18976
|
+
});
|
18966
18977
|
let oldOptions = null;
|
18967
|
-
watch(options,
|
18968
|
-
if (deepEqual(oldOptions,
|
18978
|
+
watch(options, value => {
|
18979
|
+
if (deepEqual(oldOptions, value)) return;
|
18969
18980
|
|
18970
18981
|
// Reset page when searching
|
18971
|
-
if (oldOptions && oldOptions.search !==
|
18982
|
+
if (oldOptions && oldOptions.search !== value.search) {
|
18972
18983
|
page.value = 1;
|
18973
18984
|
}
|
18974
|
-
vm.emit('update:options',
|
18975
|
-
oldOptions =
|
18985
|
+
vm.emit('update:options', value);
|
18986
|
+
oldOptions = value;
|
18976
18987
|
}, {
|
18977
18988
|
deep: true,
|
18978
18989
|
immediate: true
|
@@ -19253,7 +19264,7 @@ function provideSelection(props, _ref9) {
|
|
19253
19264
|
});
|
19254
19265
|
return !!items.length && isSelected(items);
|
19255
19266
|
});
|
19256
|
-
const showSelectAll =
|
19267
|
+
const showSelectAll = toRef(() => selectStrategy.value.showSelectAll);
|
19257
19268
|
const data = {
|
19258
19269
|
toggleSelect,
|
19259
19270
|
select,
|
@@ -19291,8 +19302,8 @@ const makeDataTableSortProps = propsFactory({
|
|
19291
19302
|
const VDataTableSortSymbol = Symbol.for('vuetify:data-table-sort');
|
19292
19303
|
function createSort(props) {
|
19293
19304
|
const sortBy = useProxiedModel(props, 'sortBy');
|
19294
|
-
const mustSort = toRef(props
|
19295
|
-
const multiSort = toRef(props
|
19305
|
+
const mustSort = toRef(() => props.mustSort);
|
19306
|
+
const multiSort = toRef(() => props.multiSort);
|
19296
19307
|
return {
|
19297
19308
|
sortBy,
|
19298
19309
|
mustSort,
|
@@ -19510,7 +19521,7 @@ const VDataIterator = genericComponent()({
|
|
19510
19521
|
slots
|
19511
19522
|
} = _ref;
|
19512
19523
|
const groupBy = useProxiedModel(props, 'groupBy');
|
19513
|
-
const search = toRef(props
|
19524
|
+
const search = toRef(() => props.search);
|
19514
19525
|
const {
|
19515
19526
|
items
|
19516
19527
|
} = useDataIteratorItems(props);
|
@@ -19554,7 +19565,7 @@ const VDataIterator = genericComponent()({
|
|
19554
19565
|
const {
|
19555
19566
|
flatItems
|
19556
19567
|
} = useGroupedItems(sortedItems, groupBy, opened);
|
19557
|
-
const itemsLength =
|
19568
|
+
const itemsLength = toRef(() => flatItems.value.length);
|
19558
19569
|
const {
|
19559
19570
|
startIndex,
|
19560
19571
|
stopIndex,
|
@@ -19834,13 +19845,13 @@ const VPagination = genericComponent()({
|
|
19834
19845
|
} = useRefs();
|
19835
19846
|
provideDefaults({
|
19836
19847
|
VPaginationBtn: {
|
19837
|
-
color: toRef(props
|
19838
|
-
border: toRef(props
|
19839
|
-
density: toRef(props
|
19840
|
-
size: toRef(props
|
19841
|
-
variant: toRef(props
|
19842
|
-
rounded: toRef(props
|
19843
|
-
elevation: toRef(props
|
19848
|
+
color: toRef(() => props.color),
|
19849
|
+
border: toRef(() => props.border),
|
19850
|
+
density: toRef(() => props.density),
|
19851
|
+
size: toRef(() => props.size),
|
19852
|
+
variant: toRef(() => props.variant),
|
19853
|
+
rounded: toRef(() => props.rounded),
|
19854
|
+
elevation: toRef(() => props.elevation)
|
19844
19855
|
}
|
19845
19856
|
});
|
19846
19857
|
const items = computed(() => {
|
@@ -20481,7 +20492,7 @@ const VDataTableHeaders = genericComponent()({
|
|
20481
20492
|
const {
|
20482
20493
|
backgroundColorClasses,
|
20483
20494
|
backgroundColorStyles
|
20484
|
-
} = useBackgroundColor(props
|
20495
|
+
} = useBackgroundColor(() => props.color);
|
20485
20496
|
const {
|
20486
20497
|
displayClasses,
|
20487
20498
|
mobile
|
@@ -21139,13 +21150,13 @@ const VDataTable = genericComponent()({
|
|
21139
21150
|
filterFunctions
|
21140
21151
|
} = createHeaders(props, {
|
21141
21152
|
groupBy,
|
21142
|
-
showSelect: toRef(props
|
21143
|
-
showExpand: toRef(props
|
21153
|
+
showSelect: toRef(() => props.showSelect),
|
21154
|
+
showExpand: toRef(() => props.showExpand)
|
21144
21155
|
});
|
21145
21156
|
const {
|
21146
21157
|
items
|
21147
21158
|
} = useDataTableItems(props, columns);
|
21148
|
-
const search = toRef(props
|
21159
|
+
const search = toRef(() => props.search);
|
21149
21160
|
const {
|
21150
21161
|
filteredItems
|
21151
21162
|
} = useFilter(props, items, search, {
|
@@ -21228,10 +21239,10 @@ const VDataTable = genericComponent()({
|
|
21228
21239
|
});
|
21229
21240
|
provideDefaults({
|
21230
21241
|
VDataTableRows: {
|
21231
|
-
hideNoData: toRef(props
|
21232
|
-
noDataText: toRef(props
|
21233
|
-
loading: toRef(props
|
21234
|
-
loadingText: toRef(props
|
21242
|
+
hideNoData: toRef(() => props.hideNoData),
|
21243
|
+
noDataText: toRef(() => props.noDataText),
|
21244
|
+
loading: toRef(() => props.loading),
|
21245
|
+
loadingText: toRef(() => props.loadingText)
|
21235
21246
|
}
|
21236
21247
|
});
|
21237
21248
|
const slotProps = computed(() => ({
|
@@ -21328,13 +21339,13 @@ const VDataTableVirtual = genericComponent()({
|
|
21328
21339
|
sortRawFunctions
|
21329
21340
|
} = createHeaders(props, {
|
21330
21341
|
groupBy,
|
21331
|
-
showSelect: toRef(props
|
21332
|
-
showExpand: toRef(props
|
21342
|
+
showSelect: toRef(() => props.showSelect),
|
21343
|
+
showExpand: toRef(() => props.showExpand)
|
21333
21344
|
});
|
21334
21345
|
const {
|
21335
21346
|
items
|
21336
21347
|
} = useDataTableItems(props, columns);
|
21337
|
-
const search = toRef(props
|
21348
|
+
const search = toRef(() => props.search);
|
21338
21349
|
const {
|
21339
21350
|
filteredItems
|
21340
21351
|
} = useFilter(props, items, search, {
|
@@ -21410,10 +21421,10 @@ const VDataTableVirtual = genericComponent()({
|
|
21410
21421
|
});
|
21411
21422
|
provideDefaults({
|
21412
21423
|
VDataTableRows: {
|
21413
|
-
hideNoData: toRef(props
|
21414
|
-
noDataText: toRef(props
|
21415
|
-
loading: toRef(props
|
21416
|
-
loadingText: toRef(props
|
21424
|
+
hideNoData: toRef(() => props.hideNoData),
|
21425
|
+
noDataText: toRef(() => props.noDataText),
|
21426
|
+
loading: toRef(() => props.loading),
|
21427
|
+
loadingText: toRef(() => props.loadingText)
|
21417
21428
|
}
|
21418
21429
|
});
|
21419
21430
|
const slotProps = computed(() => ({
|
@@ -21566,8 +21577,8 @@ const VDataTableServer = genericComponent()({
|
|
21566
21577
|
headers
|
21567
21578
|
} = createHeaders(props, {
|
21568
21579
|
groupBy,
|
21569
|
-
showSelect: toRef(props
|
21570
|
-
showExpand: toRef(props
|
21580
|
+
showSelect: toRef(() => props.showSelect),
|
21581
|
+
showExpand: toRef(() => props.showExpand)
|
21571
21582
|
});
|
21572
21583
|
const {
|
21573
21584
|
items
|
@@ -21622,7 +21633,7 @@ const VDataTableServer = genericComponent()({
|
|
21622
21633
|
itemsPerPage,
|
21623
21634
|
sortBy,
|
21624
21635
|
groupBy,
|
21625
|
-
search: toRef(props
|
21636
|
+
search: toRef(() => props.search)
|
21626
21637
|
});
|
21627
21638
|
provide('v-data-table', {
|
21628
21639
|
toggleSort,
|
@@ -21630,10 +21641,10 @@ const VDataTableServer = genericComponent()({
|
|
21630
21641
|
});
|
21631
21642
|
provideDefaults({
|
21632
21643
|
VDataTableRows: {
|
21633
|
-
hideNoData: toRef(props
|
21634
|
-
noDataText: toRef(props
|
21635
|
-
loading: toRef(props
|
21636
|
-
loadingText: toRef(props
|
21644
|
+
hideNoData: toRef(() => props.hideNoData),
|
21645
|
+
noDataText: toRef(() => props.noDataText),
|
21646
|
+
loading: toRef(() => props.loading),
|
21647
|
+
loadingText: toRef(() => props.loadingText)
|
21637
21648
|
}
|
21638
21649
|
});
|
21639
21650
|
const slotProps = computed(() => ({
|
@@ -22103,7 +22114,7 @@ const VDatePickerHeader = genericComponent()({
|
|
22103
22114
|
const {
|
22104
22115
|
backgroundColorClasses,
|
22105
22116
|
backgroundColorStyles
|
22106
|
-
} = useBackgroundColor(props
|
22117
|
+
} = useBackgroundColor(() => props.color);
|
22107
22118
|
function onClick() {
|
22108
22119
|
emit('click');
|
22109
22120
|
}
|
@@ -22242,21 +22253,21 @@ function useCalendar(props) {
|
|
22242
22253
|
const isSame = adapter.isSameDay(date, month.value);
|
22243
22254
|
return {
|
22244
22255
|
date,
|
22245
|
-
isoDate,
|
22246
22256
|
formatted: adapter.format(date, 'keyboardDate'),
|
22247
|
-
year: adapter.getYear(date),
|
22248
|
-
month: adapter.getMonth(date),
|
22249
|
-
isDisabled: isDisabled(date),
|
22250
|
-
isWeekStart: index % 7 === 0,
|
22251
|
-
isWeekEnd: index % 7 === 6,
|
22252
|
-
isToday: adapter.isSameDay(date, today),
|
22253
22257
|
isAdjacent,
|
22254
|
-
|
22255
|
-
isStart,
|
22256
|
-
isSelected: model.value.some(value => adapter.isSameDay(date, value)),
|
22258
|
+
isDisabled: isDisabled(date),
|
22257
22259
|
isEnd,
|
22260
|
+
isHidden: isAdjacent && !props.showAdjacentMonths,
|
22258
22261
|
isSame,
|
22259
|
-
|
22262
|
+
isSelected: model.value.some(value => adapter.isSameDay(date, value)),
|
22263
|
+
isStart,
|
22264
|
+
isToday: adapter.isSameDay(date, today),
|
22265
|
+
isWeekEnd: index % 7 === 6,
|
22266
|
+
isWeekStart: index % 7 === 0,
|
22267
|
+
isoDate,
|
22268
|
+
localized: adapter.format(date, 'dayOfMonth'),
|
22269
|
+
month: adapter.getMonth(date),
|
22270
|
+
year: adapter.getYear(date)
|
22260
22271
|
};
|
22261
22272
|
});
|
22262
22273
|
}
|
@@ -22344,7 +22355,7 @@ const VDatePickerMonth = genericComponent()({
|
|
22344
22355
|
const rangeStart = shallowRef();
|
22345
22356
|
const rangeStop = shallowRef();
|
22346
22357
|
const isReverse = shallowRef(false);
|
22347
|
-
const transition =
|
22358
|
+
const transition = toRef(() => {
|
22348
22359
|
return !isReverse.value ? props.transition : props.reverseTransition;
|
22349
22360
|
});
|
22350
22361
|
if (props.multiple === 'range' && model.value.length > 0) {
|
@@ -22724,7 +22735,7 @@ const VDatePicker = genericComponent()({
|
|
22724
22735
|
}
|
22725
22736
|
return value && adapter.isValid(value) ? value : today;
|
22726
22737
|
});
|
22727
|
-
const headerColor =
|
22738
|
+
const headerColor = toRef(() => props.headerColor ?? props.color);
|
22728
22739
|
const month = ref(Number(props.month ?? adapter.getMonth(adapter.startOfMonth(internal.value))));
|
22729
22740
|
const year = ref(Number(props.year ?? adapter.getYear(adapter.startOfYear(adapter.setMonth(internal.value, month.value)))));
|
22730
22741
|
const isReversing = shallowRef(false);
|
@@ -22741,8 +22752,8 @@ const VDatePicker = genericComponent()({
|
|
22741
22752
|
date = adapter.setYear(date, year.value);
|
22742
22753
|
return adapter.format(date, 'monthAndYear');
|
22743
22754
|
});
|
22744
|
-
// const headerIcon =
|
22745
|
-
const headerTransition =
|
22755
|
+
// const headerIcon = toRef(() => props.inputMode === 'calendar' ? props.keyboardIcon : props.calendarIcon)
|
22756
|
+
const headerTransition = toRef(() => `date-picker-header${isReversing.value ? '-reverse' : ''}-transition`);
|
22746
22757
|
const disabled = computed(() => {
|
22747
22758
|
if (props.disabled) return true;
|
22748
22759
|
const targets = [];
|
@@ -22954,7 +22965,7 @@ const VEmptyState = genericComponent()({
|
|
22954
22965
|
const {
|
22955
22966
|
backgroundColorClasses,
|
22956
22967
|
backgroundColorStyles
|
22957
|
-
} = useBackgroundColor(
|
22968
|
+
} = useBackgroundColor(() => props.bgColor);
|
22958
22969
|
const {
|
22959
22970
|
dimensionStyles
|
22960
22971
|
} = useDimension(props);
|
@@ -23117,7 +23128,7 @@ const VExpansionPanelTitle = genericComponent()({
|
|
23117
23128
|
const {
|
23118
23129
|
backgroundColorClasses,
|
23119
23130
|
backgroundColorStyles
|
23120
|
-
} = useBackgroundColor(props
|
23131
|
+
} = useBackgroundColor(() => props.color);
|
23121
23132
|
const {
|
23122
23133
|
dimensionStyles
|
23123
23134
|
} = useDimension(props);
|
@@ -23128,7 +23139,7 @@ const VExpansionPanelTitle = genericComponent()({
|
|
23128
23139
|
expandIcon: props.expandIcon,
|
23129
23140
|
readonly: props.readonly
|
23130
23141
|
}));
|
23131
|
-
const icon =
|
23142
|
+
const icon = toRef(() => expansionPanel.isSelected.value ? props.collapseIcon : props.expandIcon);
|
23132
23143
|
useRender(() => withDirectives(createVNode("button", {
|
23133
23144
|
"class": ['v-expansion-panel-title', {
|
23134
23145
|
'v-expansion-panel-title--active': expansionPanel.isSelected.value,
|
@@ -23183,14 +23194,14 @@ const VExpansionPanel = genericComponent()({
|
|
23183
23194
|
const {
|
23184
23195
|
backgroundColorClasses,
|
23185
23196
|
backgroundColorStyles
|
23186
|
-
} = useBackgroundColor(props
|
23197
|
+
} = useBackgroundColor(() => props.bgColor);
|
23187
23198
|
const {
|
23188
23199
|
elevationClasses
|
23189
23200
|
} = useElevation(props);
|
23190
23201
|
const {
|
23191
23202
|
roundedClasses
|
23192
23203
|
} = useRounded(props);
|
23193
|
-
const isDisabled =
|
23204
|
+
const isDisabled = toRef(() => groupItem?.disabled.value || props.disabled);
|
23194
23205
|
const selectedIndices = computed(() => groupItem.group.items.value.reduce((arr, item, index) => {
|
23195
23206
|
if (groupItem.group.selected.value.includes(item.id)) arr.push(index);
|
23196
23207
|
return arr;
|
@@ -23281,21 +23292,21 @@ const VExpansionPanels = genericComponent()({
|
|
23281
23292
|
const {
|
23282
23293
|
themeClasses
|
23283
23294
|
} = provideTheme(props);
|
23284
|
-
const variantClass =
|
23295
|
+
const variantClass = toRef(() => props.variant && `v-expansion-panels--variant-${props.variant}`);
|
23285
23296
|
provideDefaults({
|
23286
23297
|
VExpansionPanel: {
|
23287
|
-
bgColor: toRef(props
|
23288
|
-
collapseIcon: toRef(props
|
23289
|
-
color: toRef(props
|
23290
|
-
eager: toRef(props
|
23291
|
-
elevation: toRef(props
|
23292
|
-
expandIcon: toRef(props
|
23293
|
-
focusable: toRef(props
|
23294
|
-
hideActions: toRef(props
|
23295
|
-
readonly: toRef(props
|
23296
|
-
ripple: toRef(props
|
23297
|
-
rounded: toRef(props
|
23298
|
-
static: toRef(props
|
23298
|
+
bgColor: toRef(() => props.bgColor),
|
23299
|
+
collapseIcon: toRef(() => props.collapseIcon),
|
23300
|
+
color: toRef(() => props.color),
|
23301
|
+
eager: toRef(() => props.eager),
|
23302
|
+
elevation: toRef(() => props.elevation),
|
23303
|
+
expandIcon: toRef(() => props.expandIcon),
|
23304
|
+
focusable: toRef(() => props.focusable),
|
23305
|
+
hideActions: toRef(() => props.hideActions),
|
23306
|
+
readonly: toRef(() => props.readonly),
|
23307
|
+
ripple: toRef(() => props.ripple),
|
23308
|
+
rounded: toRef(() => props.rounded),
|
23309
|
+
static: toRef(() => props.static)
|
23299
23310
|
}
|
23300
23311
|
});
|
23301
23312
|
useRender(() => createVNode(props.tag, {
|
@@ -23357,7 +23368,7 @@ const VFab = genericComponent()({
|
|
23357
23368
|
if (!entries.length) return;
|
23358
23369
|
height.value = entries[0].target.clientHeight;
|
23359
23370
|
});
|
23360
|
-
const hasPosition =
|
23371
|
+
const hasPosition = toRef(() => props.app || props.absolute);
|
23361
23372
|
const position = computed(() => {
|
23362
23373
|
if (!hasPosition.value) return false;
|
23363
23374
|
return props.location?.split(' ').shift() ?? 'bottom';
|
@@ -23374,7 +23385,7 @@ const VFab = genericComponent()({
|
|
23374
23385
|
layoutSize: computed(() => props.layout ? height.value + 24 : 0),
|
23375
23386
|
elementSize: computed(() => height.value + 24),
|
23376
23387
|
active: computed(() => props.app && model.value),
|
23377
|
-
absolute: toRef(props
|
23388
|
+
absolute: toRef(() => props.absolute)
|
23378
23389
|
});
|
23379
23390
|
watchEffect(() => {
|
23380
23391
|
layoutItemStyles.value = layout.layoutItemStyles.value;
|
@@ -23499,7 +23510,7 @@ const VFileInput = genericComponent()({
|
|
23499
23510
|
const vInputRef = ref();
|
23500
23511
|
const vFieldRef = ref();
|
23501
23512
|
const inputRef = ref();
|
23502
|
-
const isActive =
|
23513
|
+
const isActive = toRef(() => isFocused.value || props.active);
|
23503
23514
|
const isPlainOrUnderlined = computed(() => ['plain', 'underlined'].includes(props.variant));
|
23504
23515
|
function onFocus() {
|
23505
23516
|
if (inputRef.value !== document.activeElement) {
|
@@ -23672,7 +23683,7 @@ const VFooter = genericComponent()({
|
|
23672
23683
|
const {
|
23673
23684
|
backgroundColorClasses,
|
23674
23685
|
backgroundColorStyles
|
23675
|
-
} = useBackgroundColor(
|
23686
|
+
} = useBackgroundColor(() => props.color);
|
23676
23687
|
const {
|
23677
23688
|
borderClasses
|
23678
23689
|
} = useBorder(props);
|
@@ -23694,11 +23705,11 @@ const VFooter = genericComponent()({
|
|
23694
23705
|
const layout = useLayoutItem({
|
23695
23706
|
id: props.name,
|
23696
23707
|
order: computed(() => parseInt(props.order, 10)),
|
23697
|
-
position:
|
23708
|
+
position: toRef(() => 'bottom'),
|
23698
23709
|
layoutSize: height,
|
23699
23710
|
elementSize: computed(() => props.height === 'auto' ? undefined : height.value),
|
23700
|
-
active:
|
23701
|
-
absolute: toRef(props
|
23711
|
+
active: toRef(() => props.app),
|
23712
|
+
absolute: toRef(() => props.absolute)
|
23702
23713
|
});
|
23703
23714
|
watchEffect(() => {
|
23704
23715
|
layoutItemStyles.value = layout.layoutItemStyles.value;
|
@@ -24171,11 +24182,11 @@ const VLayoutItem = genericComponent()({
|
|
24171
24182
|
} = useLayoutItem({
|
24172
24183
|
id: props.name,
|
24173
24184
|
order: computed(() => parseInt(props.order, 10)),
|
24174
|
-
position: toRef(props
|
24175
|
-
elementSize: toRef(props
|
24176
|
-
layoutSize: toRef(props
|
24177
|
-
active: toRef(props
|
24178
|
-
absolute: toRef(props
|
24185
|
+
position: toRef(() => props.position),
|
24186
|
+
elementSize: toRef(() => props.size),
|
24187
|
+
layoutSize: toRef(() => props.size),
|
24188
|
+
active: toRef(() => props.modelValue),
|
24189
|
+
absolute: toRef(() => props.absolute)
|
24179
24190
|
});
|
24180
24191
|
return () => createVNode("div", {
|
24181
24192
|
"class": ['v-layout-item', props.class],
|
@@ -24707,7 +24718,7 @@ const VNavigationDrawer = genericComponent()({
|
|
24707
24718
|
const {
|
24708
24719
|
backgroundColorClasses,
|
24709
24720
|
backgroundColorStyles
|
24710
|
-
} = useBackgroundColor(
|
24721
|
+
} = useBackgroundColor(() => props.color);
|
24711
24722
|
const {
|
24712
24723
|
elevationClasses
|
24713
24724
|
} = useElevation(props);
|
@@ -24740,7 +24751,7 @@ const VNavigationDrawer = genericComponent()({
|
|
24740
24751
|
const location = computed(() => {
|
24741
24752
|
return toPhysical(props.location, isRtl.value);
|
24742
24753
|
});
|
24743
|
-
const isPersistent =
|
24754
|
+
const isPersistent = toRef(() => props.persistent);
|
24744
24755
|
const isTemporary = computed(() => !props.permanent && (mobile.value || props.temporary));
|
24745
24756
|
const isSticky = computed(() => props.sticky && !isTemporary.value && location.value !== 'bottom');
|
24746
24757
|
useToggleScope(() => props.expandOnHover && props.rail != null, () => {
|
@@ -24766,7 +24777,7 @@ const VNavigationDrawer = genericComponent()({
|
|
24766
24777
|
isActive,
|
24767
24778
|
isTemporary,
|
24768
24779
|
width,
|
24769
|
-
touchless: toRef(props
|
24780
|
+
touchless: toRef(() => props.touchless),
|
24770
24781
|
position: location
|
24771
24782
|
});
|
24772
24783
|
const layoutSize = computed(() => {
|
@@ -24783,7 +24794,7 @@ const VNavigationDrawer = genericComponent()({
|
|
24783
24794
|
layoutSize,
|
24784
24795
|
elementSize: width,
|
24785
24796
|
active: readonly(isActive),
|
24786
|
-
disableTransitions:
|
24797
|
+
disableTransitions: toRef(() => isDragging.value),
|
24787
24798
|
absolute: computed(() =>
|
24788
24799
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
24789
24800
|
props.absolute || isSticky.value && typeof isStuck.value !== 'string')
|
@@ -24796,9 +24807,9 @@ const VNavigationDrawer = genericComponent()({
|
|
24796
24807
|
isSticky,
|
24797
24808
|
layoutItemStyles
|
24798
24809
|
});
|
24799
|
-
const scrimColor = useBackgroundColor(
|
24810
|
+
const scrimColor = useBackgroundColor(() => {
|
24800
24811
|
return typeof props.scrim === 'string' ? props.scrim : null;
|
24801
|
-
})
|
24812
|
+
});
|
24802
24813
|
const scrimStyles = computed(() => ({
|
24803
24814
|
...(isDragging.value ? {
|
24804
24815
|
opacity: dragProgress.value * 0.2,
|
@@ -25012,24 +25023,24 @@ const VNumberInput = genericComponent()({
|
|
25012
25023
|
const controlVariant = computed(() => {
|
25013
25024
|
return props.hideInput ? 'stacked' : props.controlVariant;
|
25014
25025
|
});
|
25015
|
-
const incrementIcon =
|
25016
|
-
const decrementIcon =
|
25017
|
-
const controlNodeSize =
|
25018
|
-
const controlNodeDefaultHeight =
|
25019
|
-
const incrementSlotProps =
|
25026
|
+
const incrementIcon = toRef(() => controlVariant.value === 'split' ? '$plus' : '$collapse');
|
25027
|
+
const decrementIcon = toRef(() => controlVariant.value === 'split' ? '$minus' : '$expand');
|
25028
|
+
const controlNodeSize = toRef(() => controlVariant.value === 'split' ? 'default' : 'small');
|
25029
|
+
const controlNodeDefaultHeight = toRef(() => controlVariant.value === 'stacked' ? 'auto' : '100%');
|
25030
|
+
const incrementSlotProps = {
|
25020
25031
|
props: {
|
25021
25032
|
onClick: onControlClick,
|
25022
25033
|
onPointerup: onControlMouseup,
|
25023
25034
|
onPointerdown: onUpControlMousedown
|
25024
25035
|
}
|
25025
|
-
}
|
25026
|
-
const decrementSlotProps =
|
25036
|
+
};
|
25037
|
+
const decrementSlotProps = {
|
25027
25038
|
props: {
|
25028
25039
|
onClick: onControlClick,
|
25029
25040
|
onPointerup: onControlMouseup,
|
25030
25041
|
onPointerdown: onDownControlMousedown
|
25031
25042
|
}
|
25032
|
-
}
|
25043
|
+
};
|
25033
25044
|
watch(() => props.precision, () => formatInputValue());
|
25034
25045
|
onMounted(() => {
|
25035
25046
|
clampModel();
|
@@ -25181,7 +25192,7 @@ const VNumberInput = genericComponent()({
|
|
25181
25192
|
}
|
25182
25193
|
}
|
25183
25194
|
}, {
|
25184
|
-
default: () => [slots.increment(incrementSlotProps
|
25195
|
+
default: () => [slots.increment(incrementSlotProps)]
|
25185
25196
|
});
|
25186
25197
|
}
|
25187
25198
|
function decrementControlNode() {
|
@@ -25210,7 +25221,7 @@ const VNumberInput = genericComponent()({
|
|
25210
25221
|
}
|
25211
25222
|
}
|
25212
25223
|
}, {
|
25213
|
-
default: () => [slots.decrement(decrementSlotProps
|
25224
|
+
default: () => [slots.decrement(decrementSlotProps)]
|
25214
25225
|
});
|
25215
25226
|
}
|
25216
25227
|
function controlNode() {
|
@@ -25410,12 +25421,12 @@ const VOtpInput = genericComponent()({
|
|
25410
25421
|
}
|
25411
25422
|
provideDefaults({
|
25412
25423
|
VField: {
|
25413
|
-
color:
|
25414
|
-
bgColor:
|
25415
|
-
baseColor:
|
25416
|
-
disabled:
|
25417
|
-
error:
|
25418
|
-
variant:
|
25424
|
+
color: toRef(() => props.color),
|
25425
|
+
bgColor: toRef(() => props.color),
|
25426
|
+
baseColor: toRef(() => props.baseColor),
|
25427
|
+
disabled: toRef(() => props.disabled),
|
25428
|
+
error: toRef(() => props.error),
|
25429
|
+
variant: toRef(() => props.variant)
|
25419
25430
|
}
|
25420
25431
|
}, {
|
25421
25432
|
scoped: true
|
@@ -26216,7 +26227,7 @@ const VSkeletonLoader = genericComponent()({
|
|
26216
26227
|
const {
|
26217
26228
|
backgroundColorClasses,
|
26218
26229
|
backgroundColorStyles
|
26219
|
-
} = useBackgroundColor(
|
26230
|
+
} = useBackgroundColor(() => props.color);
|
26220
26231
|
const {
|
26221
26232
|
dimensionStyles
|
26222
26233
|
} = useDimension(props);
|
@@ -27015,7 +27026,7 @@ const VSparkline = genericComponent()({
|
|
27015
27026
|
const {
|
27016
27027
|
textColorClasses,
|
27017
27028
|
textColorStyles
|
27018
|
-
} = useTextColor(
|
27029
|
+
} = useTextColor(() => props.color);
|
27019
27030
|
const hasLabels = computed(() => {
|
27020
27031
|
return Boolean(props.showLabels || props.labels.length > 0 || !!slots?.label);
|
27021
27032
|
});
|
@@ -27561,11 +27572,11 @@ const VSwitch = genericComponent()({
|
|
27561
27572
|
} = useFocus(props);
|
27562
27573
|
const control = ref();
|
27563
27574
|
const isForcedColorsModeActive = IN_BROWSER && window.matchMedia('(forced-colors: active)').matches;
|
27564
|
-
const loaderColor =
|
27575
|
+
const loaderColor = toRef(() => {
|
27565
27576
|
return typeof props.loading === 'string' && props.loading !== '' ? props.loading : props.color;
|
27566
27577
|
});
|
27567
27578
|
const uid = useId();
|
27568
|
-
const id =
|
27579
|
+
const id = toRef(() => props.id || `switch-${uid}`);
|
27569
27580
|
function onChange() {
|
27570
27581
|
if (indeterminate.value) {
|
27571
27582
|
indeterminate.value = false;
|
@@ -27716,7 +27727,7 @@ const VSystemBar = genericComponent()({
|
|
27716
27727
|
const {
|
27717
27728
|
backgroundColorClasses,
|
27718
27729
|
backgroundColorStyles
|
27719
|
-
} = useBackgroundColor(
|
27730
|
+
} = useBackgroundColor(() => props.color);
|
27720
27731
|
const {
|
27721
27732
|
elevationClasses
|
27722
27733
|
} = useElevation(props);
|
@@ -27736,7 +27747,7 @@ const VSystemBar = genericComponent()({
|
|
27736
27747
|
layoutSize: height,
|
27737
27748
|
elementSize: height,
|
27738
27749
|
active: computed(() => true),
|
27739
|
-
absolute: toRef(props
|
27750
|
+
absolute: toRef(() => props.absolute)
|
27740
27751
|
});
|
27741
27752
|
useRender(() => createVNode(props.tag, {
|
27742
27753
|
"class": ['v-system-bar', {
|
@@ -27778,7 +27789,7 @@ const VTab = genericComponent()({
|
|
27778
27789
|
const {
|
27779
27790
|
textColorClasses: sliderColorClasses,
|
27780
27791
|
textColorStyles: sliderColorStyles
|
27781
|
-
} = useTextColor(props
|
27792
|
+
} = useTextColor(() => props.sliderColor);
|
27782
27793
|
const rootEl = ref();
|
27783
27794
|
const sliderEl = ref();
|
27784
27795
|
const isHorizontal = computed(() => props.direction === 'horizontal');
|
@@ -27971,18 +27982,18 @@ const VTabs = genericComponent()({
|
|
27971
27982
|
const {
|
27972
27983
|
backgroundColorClasses,
|
27973
27984
|
backgroundColorStyles
|
27974
|
-
} = useBackgroundColor(
|
27985
|
+
} = useBackgroundColor(() => props.bgColor);
|
27975
27986
|
const {
|
27976
27987
|
scopeId
|
27977
27988
|
} = useScopeId();
|
27978
27989
|
provideDefaults({
|
27979
27990
|
VTab: {
|
27980
|
-
color: toRef(props
|
27981
|
-
direction: toRef(props
|
27982
|
-
stacked: toRef(props
|
27983
|
-
fixed: toRef(props
|
27984
|
-
sliderColor: toRef(props
|
27985
|
-
hideSlider: toRef(props
|
27991
|
+
color: toRef(() => props.color),
|
27992
|
+
direction: toRef(() => props.direction),
|
27993
|
+
stacked: toRef(() => props.stacked),
|
27994
|
+
fixed: toRef(() => props.fixedTabs),
|
27995
|
+
sliderColor: toRef(() => props.sliderColor),
|
27996
|
+
hideSlider: toRef(() => props.hideSlider)
|
27986
27997
|
}
|
27987
27998
|
});
|
27988
27999
|
useRender(() => {
|
@@ -28332,7 +28343,7 @@ const VTimelineDivider = genericComponent()({
|
|
28332
28343
|
const {
|
28333
28344
|
backgroundColorStyles,
|
28334
28345
|
backgroundColorClasses
|
28335
|
-
} = useBackgroundColor(
|
28346
|
+
} = useBackgroundColor(() => props.dotColor);
|
28336
28347
|
const {
|
28337
28348
|
roundedClasses
|
28338
28349
|
} = useRounded(props, 'v-timeline-divider__dot');
|
@@ -28342,7 +28353,7 @@ const VTimelineDivider = genericComponent()({
|
|
28342
28353
|
const {
|
28343
28354
|
backgroundColorClasses: lineColorClasses,
|
28344
28355
|
backgroundColorStyles: lineColorStyles
|
28345
|
-
} = useBackgroundColor(
|
28356
|
+
} = useBackgroundColor(() => props.lineColor);
|
28346
28357
|
useRender(() => createVNode("div", {
|
28347
28358
|
"class": ['v-timeline-divider', {
|
28348
28359
|
'v-timeline-divider--fill-dot': props.fillDot
|
@@ -28513,17 +28524,17 @@ const VTimeline = genericComponent()({
|
|
28513
28524
|
} = useRtl();
|
28514
28525
|
provideDefaults({
|
28515
28526
|
VTimelineDivider: {
|
28516
|
-
lineColor: toRef(props
|
28527
|
+
lineColor: toRef(() => props.lineColor)
|
28517
28528
|
},
|
28518
28529
|
VTimelineItem: {
|
28519
|
-
density: toRef(props
|
28520
|
-
dotColor: toRef(props
|
28521
|
-
fillDot: toRef(props
|
28522
|
-
hideOpposite: toRef(props
|
28523
|
-
iconColor: toRef(props
|
28524
|
-
lineColor: toRef(props
|
28525
|
-
lineInset: toRef(props
|
28526
|
-
size: toRef(props
|
28530
|
+
density: toRef(() => props.density),
|
28531
|
+
dotColor: toRef(() => props.dotColor),
|
28532
|
+
fillDot: toRef(() => props.fillDot),
|
28533
|
+
hideOpposite: toRef(() => props.hideOpposite),
|
28534
|
+
iconColor: toRef(() => props.iconColor),
|
28535
|
+
lineColor: toRef(() => props.lineColor),
|
28536
|
+
lineInset: toRef(() => props.lineInset),
|
28537
|
+
size: toRef(() => props.size)
|
28527
28538
|
}
|
28528
28539
|
});
|
28529
28540
|
const sideClasses = computed(() => {
|
@@ -28570,9 +28581,9 @@ const VToolbarItems = genericComponent()({
|
|
28570
28581
|
} = _ref;
|
28571
28582
|
provideDefaults({
|
28572
28583
|
VBtn: {
|
28573
|
-
color: toRef(props
|
28584
|
+
color: toRef(() => props.color),
|
28574
28585
|
height: 'inherit',
|
28575
|
-
variant: toRef(props
|
28586
|
+
variant: toRef(() => props.variant)
|
28576
28587
|
}
|
28577
28588
|
});
|
28578
28589
|
useRender(() => createVNode("div", {
|
@@ -28619,7 +28630,7 @@ const VTooltip = genericComponent()({
|
|
28619
28630
|
scopeId
|
28620
28631
|
} = useScopeId();
|
28621
28632
|
const uid = useId();
|
28622
|
-
const id =
|
28633
|
+
const id = toRef(() => props.id || `v-tooltip-${uid}`);
|
28623
28634
|
const overlay = ref();
|
28624
28635
|
const location = computed(() => {
|
28625
28636
|
return props.location.split(' ').length > 1 ? props.location : props.location + ' center';
|
@@ -28627,7 +28638,7 @@ const VTooltip = genericComponent()({
|
|
28627
28638
|
const origin = computed(() => {
|
28628
28639
|
return props.origin === 'auto' || props.origin === 'overlap' || props.origin.split(' ').length > 1 || props.location.split(' ').length > 1 ? props.origin : props.origin + ' center';
|
28629
28640
|
});
|
28630
|
-
const transition =
|
28641
|
+
const transition = toRef(() => {
|
28631
28642
|
if (props.transition) return props.transition;
|
28632
28643
|
return isActive.value ? 'scale-transition' : 'fade-transition';
|
28633
28644
|
});
|
@@ -29174,7 +29185,7 @@ function createVuetify$1() {
|
|
29174
29185
|
};
|
29175
29186
|
});
|
29176
29187
|
}
|
29177
|
-
const version$1 = "3.8.2-master.2025-04-
|
29188
|
+
const version$1 = "3.8.2-master.2025-04-22";
|
29178
29189
|
createVuetify$1.version = version$1;
|
29179
29190
|
|
29180
29191
|
// Vue's inject() can only be used in setup
|
@@ -29199,7 +29210,7 @@ const createVuetify = function () {
|
|
29199
29210
|
...options
|
29200
29211
|
});
|
29201
29212
|
};
|
29202
|
-
const version = "3.8.2-master.2025-04-
|
29213
|
+
const version = "3.8.2-master.2025-04-22";
|
29203
29214
|
createVuetify.version = version;
|
29204
29215
|
|
29205
29216
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|