vuetify 3.10.2 → 3.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/attributes.json +3585 -3581
- package/dist/json/importMap-labs.json +22 -22
- package/dist/json/importMap.json +136 -136
- package/dist/json/tags.json +1 -0
- package/dist/json/web-types.json +6506 -6482
- package/dist/vuetify-labs.cjs +124 -92
- package/dist/vuetify-labs.css +4941 -4941
- package/dist/vuetify-labs.d.ts +1375 -1363
- package/dist/vuetify-labs.esm.js +125 -93
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +124 -92
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +116 -87
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +6491 -6491
- package/dist/vuetify.d.ts +1120 -1108
- package/dist/vuetify.esm.js +116 -87
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +116 -87
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +1435 -1428
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.d.ts +3 -3
- package/lib/components/VAlert/VAlertTitle.d.ts +3 -3
- package/lib/components/VApp/VApp.d.ts +3 -3
- package/lib/components/VAppBar/VAppBar.d.ts +3 -3
- package/lib/components/VAppBar/VAppBarNavIcon.d.ts +6 -6
- package/lib/components/VAppBar/VAppBarTitle.d.ts +3 -3
- package/lib/components/VAutocomplete/VAutocomplete.d.ts +116 -116
- package/lib/components/VAutocomplete/VAutocomplete.js +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VAvatar/VAvatar.d.ts +3 -3
- package/lib/components/VBadge/VBadge.d.ts +3 -3
- package/lib/components/VBanner/VBanner.d.ts +3 -3
- package/lib/components/VBanner/VBannerActions.d.ts +3 -3
- package/lib/components/VBanner/VBannerText.d.ts +3 -3
- package/lib/components/VBottomNavigation/VBottomNavigation.d.ts +3 -3
- package/lib/components/VBottomSheet/VBottomSheet.d.ts +3 -3
- package/lib/components/VBreadcrumbs/VBreadcrumbs.d.ts +3 -3
- package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.d.ts +3 -3
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.d.ts +3 -3
- package/lib/components/VBtn/VBtn.d.ts +6 -6
- package/lib/components/VBtn/VBtn.js +5 -5
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VBtnGroup/VBtnGroup.d.ts +3 -3
- package/lib/components/VBtnToggle/VBtnToggle.d.ts +3 -3
- package/lib/components/VCard/VCard.d.ts +6 -6
- package/lib/components/VCard/VCard.js +2 -2
- package/lib/components/VCard/VCard.js.map +1 -1
- package/lib/components/VCard/VCardActions.d.ts +3 -3
- package/lib/components/VCard/VCardItem.d.ts +3 -3
- package/lib/components/VCard/VCardSubtitle.d.ts +3 -3
- package/lib/components/VCard/VCardText.d.ts +3 -3
- package/lib/components/VCard/VCardTitle.d.ts +3 -3
- package/lib/components/VCarousel/VCarousel.d.ts +3 -3
- package/lib/components/VCarousel/VCarouselItem.d.ts +3 -3
- package/lib/components/VCheckbox/VCheckbox.d.ts +15 -15
- package/lib/components/VCheckbox/VCheckboxBtn.d.ts +6 -6
- package/lib/components/VChip/VChip.d.ts +6 -6
- package/lib/components/VChip/VChip.js +15 -4
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.d.ts +3 -3
- package/lib/components/VCode/index.d.ts +3 -3
- package/lib/components/VCombobox/VCombobox.d.ts +129 -116
- package/lib/components/VCombobox/VCombobox.js +8 -25
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VCounter/VCounter.d.ts +3 -3
- package/lib/components/VDataIterator/VDataIterator.d.ts +9 -9
- package/lib/components/VDataTable/VDataTable.d.ts +3 -3
- package/lib/components/VDataTable/VDataTableServer.d.ts +3 -3
- package/lib/components/VDataTable/VDataTableVirtual.d.ts +6 -6
- package/lib/components/VDataTable/composables/expand.js +8 -8
- package/lib/components/VDataTable/composables/expand.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.d.ts +3 -3
- package/lib/components/VDialog/VDialog.d.ts +12 -12
- package/lib/components/VDialog/VDialog.js +29 -11
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VDialog/__test__/VDialog.spec.browser.js +41 -0
- package/lib/components/VDialog/__test__/VDialog.spec.browser.js.map +1 -1
- package/lib/components/VDivider/VDivider.d.ts +3 -3
- package/lib/components/VEmptyState/VEmptyState.d.ts +6 -6
- package/lib/components/VExpansionPanel/VExpansionPanel.d.ts +6 -6
- package/lib/components/VExpansionPanel/VExpansionPanelText.d.ts +3 -3
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.d.ts +6 -6
- package/lib/components/VExpansionPanel/VExpansionPanels.d.ts +6 -6
- package/lib/components/VFab/VFab.d.ts +6 -6
- package/lib/components/VField/VField.d.ts +3 -3
- package/lib/components/VField/VFieldLabel.d.ts +3 -3
- package/lib/components/VFileInput/VFileInput.d.ts +12 -12
- package/lib/components/VFileInput/VFileInput.js +2 -1
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VFooter/VFooter.d.ts +3 -3
- package/lib/components/VForm/VForm.d.ts +6 -6
- package/lib/components/VGrid/VCol.d.ts +3 -3
- package/lib/components/VGrid/VContainer.d.ts +3 -3
- package/lib/components/VGrid/VRow.d.ts +3 -3
- package/lib/components/VGrid/VSpacer.d.ts +3 -3
- package/lib/components/VIcon/VIcon.d.ts +3 -3
- package/lib/components/VImg/VImg.d.ts +3 -3
- package/lib/components/VInput/VInput.d.ts +3 -3
- package/lib/components/VItemGroup/VItemGroup.d.ts +3 -3
- package/lib/components/VKbd/VKbd.d.ts +3 -3
- package/lib/components/VLabel/VLabel.d.ts +3 -3
- package/lib/components/VLayout/VLayout.d.ts +3 -3
- package/lib/components/VLayout/VLayoutItem.d.ts +3 -3
- package/lib/components/VLazy/VLazy.d.ts +3 -3
- package/lib/components/VList/VList.d.ts +11 -11
- package/lib/components/VList/VList.js.map +1 -1
- package/lib/components/VList/VListGroup.d.ts +3 -3
- package/lib/components/VList/VListImg.d.ts +3 -3
- package/lib/components/VList/VListItem.d.ts +6 -6
- package/lib/components/VList/VListItem.js +2 -2
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/VListItemAction.d.ts +3 -3
- package/lib/components/VList/VListItemMedia.d.ts +3 -3
- package/lib/components/VList/VListItemSubtitle.d.ts +3 -3
- package/lib/components/VList/VListItemTitle.d.ts +3 -3
- package/lib/components/VList/VListSubheader.d.ts +3 -3
- package/lib/components/VLocaleProvider/VLocaleProvider.d.ts +3 -3
- package/lib/components/VMain/VMain.d.ts +3 -3
- package/lib/components/VMenu/VMenu.d.ts +15 -15
- package/lib/components/VMessages/VMessages.d.ts +3 -3
- package/lib/components/VNavigationDrawer/VNavigationDrawer.d.ts +3 -3
- package/lib/components/VNumberInput/VNumberInput.d.ts +66 -66
- package/lib/components/VNumberInput/VNumberInput.js +1 -0
- package/lib/components/VNumberInput/VNumberInput.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.d.ts +3 -3
- package/lib/components/VOverlay/VOverlay.d.ts +3 -3
- package/lib/components/VPagination/VPagination.d.ts +3 -3
- package/lib/components/VParallax/VParallax.d.ts +3 -3
- package/lib/components/VProgressCircular/VProgressCircular.d.ts +3 -3
- package/lib/components/VProgressLinear/VProgressLinear.d.ts +3 -3
- package/lib/components/VRadio/VRadio.d.ts +6 -6
- package/lib/components/VRadioGroup/VRadioGroup.d.ts +15 -15
- package/lib/components/VRangeSlider/VRangeSlider.d.ts +12 -12
- package/lib/components/VRating/VRating.d.ts +3 -3
- package/lib/components/VResponsive/VResponsive.d.ts +3 -3
- package/lib/components/VSelect/VSelect.d.ts +140 -140
- package/lib/components/VSelectionControl/VSelectionControl.d.ts +6 -6
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.d.ts +6 -6
- package/lib/components/VSheet/VSheet.d.ts +3 -3
- package/lib/components/VSlideGroup/VSlideGroup.d.ts +3 -3
- package/lib/components/VSlider/VSlider.d.ts +12 -12
- package/lib/components/VSlider/VSliderThumb.d.ts +6 -6
- package/lib/components/VSlider/VSliderTrack.d.ts +3 -3
- package/lib/components/VSnackbar/VSnackbar.d.ts +12 -12
- package/lib/components/VSnackbarQueue/VSnackbarQueue.d.ts +3 -3
- package/lib/components/VSpeedDial/VSpeedDial.d.ts +9 -9
- package/lib/components/VStepper/VStepper.d.ts +3 -3
- package/lib/components/VStepper/VStepperHeader.d.ts +3 -3
- package/lib/components/VStepper/VStepperItem.d.ts +3 -3
- package/lib/components/VStepper/VStepperWindow.d.ts +3 -3
- package/lib/components/VStepper/VStepperWindowItem.d.ts +3 -3
- package/lib/components/VSwitch/VSwitch.d.ts +15 -15
- package/lib/components/VSwitch/VSwitch.js +2 -2
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.d.ts +3 -3
- package/lib/components/VTable/VTable.d.ts +3 -3
- package/lib/components/VTabs/VTab.d.ts +24 -24
- package/lib/components/VTabs/VTabs.d.ts +3 -3
- package/lib/components/VTabs/VTabsWindow.d.ts +3 -3
- package/lib/components/VTabs/VTabsWindowItem.d.ts +3 -3
- package/lib/components/VTextField/VTextField.d.ts +21 -21
- package/lib/components/VTextarea/VTextarea.d.ts +12 -12
- package/lib/components/VThemeProvider/VThemeProvider.d.ts +3 -3
- package/lib/components/VTimePicker/VTimePicker.d.ts +3 -3
- package/lib/components/VTimeline/VTimeline.d.ts +3 -3
- package/lib/components/VTimeline/VTimelineDivider.d.ts +3 -3
- package/lib/components/VTimeline/VTimelineItem.d.ts +3 -3
- package/lib/components/VToolbar/VToolbar.d.ts +3 -3
- package/lib/components/VToolbar/VToolbarItems.d.ts +3 -3
- package/lib/components/VToolbar/VToolbarTitle.d.ts +3 -3
- package/lib/components/VTooltip/VTooltip.d.ts +15 -15
- package/lib/components/VTreeview/VTreeview.d.ts +26 -26
- package/lib/components/VTreeview/VTreeviewChildren.js +1 -1
- package/lib/components/VTreeview/VTreeviewChildren.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewGroup.d.ts +3 -3
- package/lib/components/VTreeview/VTreeviewItem.d.ts +24 -24
- package/lib/components/VVirtualScroll/VVirtualScroll.d.ts +6 -6
- package/lib/components/VVirtualScroll/VVirtualScrollItem.d.ts +3 -3
- package/lib/components/VWindow/VWindow.d.ts +3 -3
- package/lib/components/VWindow/VWindowItem.d.ts +3 -3
- package/lib/components/transitions/createTransition.d.ts +6 -6
- package/lib/components/transitions/index.d.ts +78 -78
- package/lib/composables/goto.js +2 -2
- package/lib/composables/goto.js.map +1 -1
- package/lib/composables/group.d.ts +2 -0
- package/lib/composables/group.js +15 -9
- package/lib/composables/group.js.map +1 -1
- package/lib/composables/router.d.ts +2 -0
- package/lib/composables/router.js +6 -1
- package/lib/composables/router.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +63 -63
- package/lib/framework.js +1 -1
- package/lib/labs/VCalendar/VCalendar.js +7 -4
- package/lib/labs/VCalendar/VCalendar.js.map +1 -1
- package/lib/labs/VCalendar/composables/calendarWithEvents.js +7 -4
- package/lib/labs/VCalendar/composables/calendarWithEvents.js.map +1 -1
- package/lib/labs/VColorInput/VColorInput.d.ts +6 -6
- package/lib/labs/VDateInput/VDateInput.d.ts +66 -66
- package/lib/labs/VFileUpload/VFileUpload.d.ts +3 -3
- package/lib/labs/VFileUpload/VFileUpload.js +2 -1
- package/lib/labs/VFileUpload/VFileUpload.js.map +1 -1
- package/lib/labs/VFileUpload/VFileUploadItem.d.ts +6 -6
- package/lib/labs/VHotkey/VHotkey.d.ts +3 -3
- package/lib/labs/VIconBtn/VIconBtn.d.ts +3 -3
- package/lib/labs/VMaskInput/VMaskInput.d.ts +66 -66
- package/lib/labs/VPicker/VPicker.d.ts +3 -3
- package/lib/labs/VPicker/VPickerTitle.d.ts +3 -3
- package/lib/labs/VPie/VPieTooltip.d.ts +3 -3
- package/lib/labs/VStepperVertical/VStepperVertical.d.ts +6 -6
- package/lib/labs/VStepperVertical/VStepperVerticalItem.d.ts +6 -6
- package/lib/labs/VVideo/VVideo.d.ts +87 -87
- package/lib/labs/VVideo/VVideoControls.d.ts +40 -40
- package/lib/labs/VVideo/VVideoVolume.d.ts +33 -33
- package/lib/util/animation.js +1 -1
- package/lib/util/animation.js.map +1 -1
- package/lib/util/box.d.ts +1 -1
- package/lib/util/box.js +19 -14
- package/lib/util/box.js.map +1 -1
- package/lib/util/createSimpleFunctional.d.ts +3 -3
- package/lib/util/events.js +2 -2
- package/lib/util/events.js.map +1 -1
- package/package.json +9 -9
|
@@ -10,6 +10,7 @@ export interface LinkProps {
|
|
|
10
10
|
replace: boolean | undefined;
|
|
11
11
|
to: RouteLocationRaw | undefined;
|
|
12
12
|
exact: boolean | undefined;
|
|
13
|
+
disabled: boolean | undefined;
|
|
13
14
|
}
|
|
14
15
|
export interface LinkListeners {
|
|
15
16
|
onClick?: EventProp | undefined;
|
|
@@ -17,6 +18,7 @@ export interface LinkListeners {
|
|
|
17
18
|
}
|
|
18
19
|
export interface UseLink extends Omit<Partial<ReturnType<typeof _useLink>>, 'href'> {
|
|
19
20
|
isLink: Readonly<Ref<boolean>>;
|
|
21
|
+
isRouterLink: Readonly<Ref<boolean>>;
|
|
20
22
|
isClickable: Readonly<Ref<boolean>>;
|
|
21
23
|
href: Ref<string | undefined>;
|
|
22
24
|
linkProps: Record<string, string | undefined>;
|
|
@@ -18,6 +18,7 @@ export function useLink(props, attrs) {
|
|
|
18
18
|
const href = toRef(() => props.href);
|
|
19
19
|
return {
|
|
20
20
|
isLink,
|
|
21
|
+
isRouterLink: toRef(() => false),
|
|
21
22
|
isClickable,
|
|
22
23
|
href,
|
|
23
24
|
linkProps: reactive({
|
|
@@ -41,8 +42,10 @@ export function useLink(props, attrs) {
|
|
|
41
42
|
return link.value.isExactActive?.value && deepEqual(link.value.route.value.query, route.value.query);
|
|
42
43
|
});
|
|
43
44
|
const href = computed(() => props.to ? link.value?.route.value.href : props.href);
|
|
45
|
+
const isRouterLink = toRef(() => !!props.to);
|
|
44
46
|
return {
|
|
45
47
|
isLink,
|
|
48
|
+
isRouterLink,
|
|
46
49
|
isClickable,
|
|
47
50
|
isActive,
|
|
48
51
|
route: link.value?.route,
|
|
@@ -50,7 +53,9 @@ export function useLink(props, attrs) {
|
|
|
50
53
|
href,
|
|
51
54
|
linkProps: reactive({
|
|
52
55
|
href,
|
|
53
|
-
'aria-current': toRef(() => isActive.value ? 'page' : undefined)
|
|
56
|
+
'aria-current': toRef(() => isActive.value ? 'page' : undefined),
|
|
57
|
+
'aria-disabled': toRef(() => props.disabled && isLink.value ? 'true' : undefined),
|
|
58
|
+
tabindex: toRef(() => props.disabled && isLink.value ? '-1' : undefined)
|
|
54
59
|
})
|
|
55
60
|
};
|
|
56
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.js","names":["computed","nextTick","onScopeDispose","reactive","resolveDynamicComponent","toRef","deepEqual","getCurrentInstance","hasEvent","IN_BROWSER","propsFactory","useRoute","vm","proxy","$route","useRouter","$router","useLink","props","attrs","RouterLink","isLink","href","to","isClickable","value","linkProps","routerLink","replace","link","undefined","route","isActive","exact","isExactActive","query","navigate","makeRouterProps","String","Boolean","Object","inTransition","useBackButton","router","cb","popped","removeBefore","removeAfter","beforeEach","window","addEventListener","onPopstate","from","next","setTimeout","afterEach","removeEventListener","e","state","replaced"],"sources":["../../src/composables/router.tsx"],"sourcesContent":["// Utilities\nimport {\n computed,\n nextTick,\n onScopeDispose, reactive,\n resolveDynamicComponent,\n toRef,\n} from 'vue'\nimport { deepEqual, getCurrentInstance, hasEvent, IN_BROWSER, propsFactory } from '@/util'\n\n// Types\nimport type { PropType, Ref, SetupContext } from 'vue'\nimport type {\n RouterLink as _RouterLink,\n useLink as _useLink,\n NavigationGuardNext,\n RouteLocationNormalizedLoaded,\n RouteLocationRaw,\n Router,\n} from 'vue-router'\nimport type { EventProp } from '@/util'\n\nexport function useRoute (): Ref<RouteLocationNormalizedLoaded | undefined> {\n const vm = getCurrentInstance('useRoute')\n\n return computed(() => vm?.proxy?.$route)\n}\n\nexport function useRouter (): Router | undefined {\n return getCurrentInstance('useRouter')?.proxy?.$router\n}\n\nexport interface LinkProps {\n href: string | undefined\n replace: boolean | undefined\n to: RouteLocationRaw | undefined\n exact: boolean | undefined\n}\n\nexport interface LinkListeners {\n onClick?: EventProp | undefined\n onClickOnce?: EventProp | undefined\n}\n\nexport interface UseLink extends Omit<Partial<ReturnType<typeof _useLink>>, 'href'> {\n isLink: Readonly<Ref<boolean>>\n isClickable: Readonly<Ref<boolean>>\n href: Ref<string | undefined>\n linkProps: Record<string, string | undefined>\n}\n\nexport function useLink (props: LinkProps & LinkListeners, attrs: SetupContext['attrs']): UseLink {\n const RouterLink = resolveDynamicComponent('RouterLink') as typeof _RouterLink | string\n\n const isLink = toRef(() => !!(props.href || props.to))\n const isClickable = computed(() => {\n return isLink?.value || hasEvent(attrs, 'click') || hasEvent(props, 'click')\n })\n\n if (typeof RouterLink === 'string' || !('useLink' in RouterLink)) {\n const href = toRef(() => props.href)\n return {\n isLink,\n isClickable,\n href,\n linkProps: reactive({ href }),\n }\n }\n\n // vue-router useLink `to` prop needs to be reactive and useLink will crash if undefined\n const routerLink = RouterLink.useLink({\n to: toRef(() => props.to || ''),\n replace: toRef(() => props.replace),\n })\n // Actual link needs to be undefined when to prop is not used\n const link = computed(() => props.to ? routerLink : undefined)\n const route = useRoute()\n const isActive = computed(() => {\n if (!link.value) return false\n if (!props.exact) return link.value.isActive?.value ?? false\n if (!route.value) return link.value.isExactActive?.value ?? false\n\n return link.value.isExactActive?.value && deepEqual(link.value.route.value.query, route.value.query)\n })\n const href = computed(() => props.to ? link.value?.route.value.href : props.href)\n\n return {\n isLink,\n isClickable,\n isActive,\n route: link.value?.route,\n navigate: link.value?.navigate,\n href,\n linkProps: reactive({\n href,\n 'aria-current': toRef(() => isActive.value ? 'page' : undefined),\n }),\n }\n}\n\nexport const makeRouterProps = propsFactory({\n href: String,\n replace: Boolean,\n to: [String, Object] as PropType<RouteLocationRaw>,\n exact: Boolean,\n}, 'router')\n\nlet inTransition = false\nexport function useBackButton (router: Router | undefined, cb: (next: NavigationGuardNext) => void) {\n let popped = false\n let removeBefore: (() => void) | undefined\n let removeAfter: (() => void) | undefined\n\n if (IN_BROWSER && router?.beforeEach) {\n nextTick(() => {\n window.addEventListener('popstate', onPopstate)\n removeBefore = router.beforeEach((to, from, next) => {\n if (!inTransition) {\n setTimeout(() => popped ? cb(next) : next())\n } else {\n popped ? cb(next) : next()\n }\n inTransition = true\n })\n removeAfter = router?.afterEach(() => {\n inTransition = false\n })\n })\n onScopeDispose(() => {\n window.removeEventListener('popstate', onPopstate)\n removeBefore?.()\n removeAfter?.()\n })\n }\n\n function onPopstate (e: PopStateEvent) {\n if (e.state?.replaced) return\n\n popped = true\n setTimeout(() => (popped = false))\n }\n}\n"],"mappings":"AAAA;AACA,SACEA,QAAQ,EACRC,QAAQ,EACRC,cAAc,EAAEC,QAAQ,EACxBC,uBAAuB,EACvBC,KAAK,QACA,KAAK;AAAA,SACHC,SAAS,EAAEC,kBAAkB,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,YAAY,4BAE1E;AAYA,OAAO,SAASC,QAAQA,CAAA,EAAoD;EAC1E,MAAMC,EAAE,GAAGL,kBAAkB,CAAC,UAAU,CAAC;EAEzC,OAAOP,QAAQ,CAAC,MAAMY,EAAE,EAAEC,KAAK,EAAEC,MAAM,CAAC;AAC1C;AAEA,OAAO,SAASC,SAASA,CAAA,EAAwB;EAC/C,OAAOR,kBAAkB,CAAC,WAAW,CAAC,EAAEM,KAAK,EAAEG,OAAO;AACxD;
|
|
1
|
+
{"version":3,"file":"router.js","names":["computed","nextTick","onScopeDispose","reactive","resolveDynamicComponent","toRef","deepEqual","getCurrentInstance","hasEvent","IN_BROWSER","propsFactory","useRoute","vm","proxy","$route","useRouter","$router","useLink","props","attrs","RouterLink","isLink","href","to","isClickable","value","isRouterLink","linkProps","routerLink","replace","link","undefined","route","isActive","exact","isExactActive","query","navigate","disabled","tabindex","makeRouterProps","String","Boolean","Object","inTransition","useBackButton","router","cb","popped","removeBefore","removeAfter","beforeEach","window","addEventListener","onPopstate","from","next","setTimeout","afterEach","removeEventListener","e","state","replaced"],"sources":["../../src/composables/router.tsx"],"sourcesContent":["// Utilities\nimport {\n computed,\n nextTick,\n onScopeDispose, reactive,\n resolveDynamicComponent,\n toRef,\n} from 'vue'\nimport { deepEqual, getCurrentInstance, hasEvent, IN_BROWSER, propsFactory } from '@/util'\n\n// Types\nimport type { PropType, Ref, SetupContext } from 'vue'\nimport type {\n RouterLink as _RouterLink,\n useLink as _useLink,\n NavigationGuardNext,\n RouteLocationNormalizedLoaded,\n RouteLocationRaw,\n Router,\n} from 'vue-router'\nimport type { EventProp } from '@/util'\n\nexport function useRoute (): Ref<RouteLocationNormalizedLoaded | undefined> {\n const vm = getCurrentInstance('useRoute')\n\n return computed(() => vm?.proxy?.$route)\n}\n\nexport function useRouter (): Router | undefined {\n return getCurrentInstance('useRouter')?.proxy?.$router\n}\n\nexport interface LinkProps {\n href: string | undefined\n replace: boolean | undefined\n to: RouteLocationRaw | undefined\n exact: boolean | undefined\n disabled: boolean | undefined\n}\n\nexport interface LinkListeners {\n onClick?: EventProp | undefined\n onClickOnce?: EventProp | undefined\n}\n\nexport interface UseLink extends Omit<Partial<ReturnType<typeof _useLink>>, 'href'> {\n isLink: Readonly<Ref<boolean>>\n isRouterLink: Readonly<Ref<boolean>>\n isClickable: Readonly<Ref<boolean>>\n href: Ref<string | undefined>\n linkProps: Record<string, string | undefined>\n}\n\nexport function useLink (props: LinkProps & LinkListeners, attrs: SetupContext['attrs']): UseLink {\n const RouterLink = resolveDynamicComponent('RouterLink') as typeof _RouterLink | string\n\n const isLink = toRef(() => !!(props.href || props.to))\n const isClickable = computed(() => {\n return isLink?.value || hasEvent(attrs, 'click') || hasEvent(props, 'click')\n })\n\n if (typeof RouterLink === 'string' || !('useLink' in RouterLink)) {\n const href = toRef(() => props.href)\n return {\n isLink,\n isRouterLink: toRef(() => false),\n isClickable,\n href,\n linkProps: reactive({ href }),\n }\n }\n\n // vue-router useLink `to` prop needs to be reactive and useLink will crash if undefined\n const routerLink = RouterLink.useLink({\n to: toRef(() => props.to || ''),\n replace: toRef(() => props.replace),\n })\n // Actual link needs to be undefined when to prop is not used\n const link = computed(() => props.to ? routerLink : undefined)\n const route = useRoute()\n const isActive = computed(() => {\n if (!link.value) return false\n if (!props.exact) return link.value.isActive?.value ?? false\n if (!route.value) return link.value.isExactActive?.value ?? false\n\n return link.value.isExactActive?.value && deepEqual(link.value.route.value.query, route.value.query)\n })\n const href = computed(() => props.to ? link.value?.route.value.href : props.href)\n const isRouterLink = toRef(() => !!props.to)\n\n return {\n isLink,\n isRouterLink,\n isClickable,\n isActive,\n route: link.value?.route,\n navigate: link.value?.navigate,\n href,\n linkProps: reactive({\n href,\n 'aria-current': toRef(() => isActive.value ? 'page' : undefined),\n 'aria-disabled': toRef(() => props.disabled && isLink.value ? 'true' : undefined),\n tabindex: toRef(() => props.disabled && isLink.value ? '-1' : undefined),\n }),\n }\n}\n\nexport const makeRouterProps = propsFactory({\n href: String,\n replace: Boolean,\n to: [String, Object] as PropType<RouteLocationRaw>,\n exact: Boolean,\n}, 'router')\n\nlet inTransition = false\nexport function useBackButton (router: Router | undefined, cb: (next: NavigationGuardNext) => void) {\n let popped = false\n let removeBefore: (() => void) | undefined\n let removeAfter: (() => void) | undefined\n\n if (IN_BROWSER && router?.beforeEach) {\n nextTick(() => {\n window.addEventListener('popstate', onPopstate)\n removeBefore = router.beforeEach((to, from, next) => {\n if (!inTransition) {\n setTimeout(() => popped ? cb(next) : next())\n } else {\n popped ? cb(next) : next()\n }\n inTransition = true\n })\n removeAfter = router?.afterEach(() => {\n inTransition = false\n })\n })\n onScopeDispose(() => {\n window.removeEventListener('popstate', onPopstate)\n removeBefore?.()\n removeAfter?.()\n })\n }\n\n function onPopstate (e: PopStateEvent) {\n if (e.state?.replaced) return\n\n popped = true\n setTimeout(() => (popped = false))\n }\n}\n"],"mappings":"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","ignoreList":[]}
|
package/lib/entry-bundler.js
CHANGED
|
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
|
16
16
|
...options
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
export const version = "3.10.
|
|
19
|
+
export const version = "3.10.4";
|
|
20
20
|
createVuetify.version = version;
|
|
21
21
|
export { blueprints, components, directives };
|
|
22
22
|
export * from "./composables/index.js";
|
package/lib/framework.d.ts
CHANGED
|
@@ -119,7 +119,7 @@ declare class Box {
|
|
|
119
119
|
y: number;
|
|
120
120
|
width: number;
|
|
121
121
|
height: number;
|
|
122
|
-
constructor(
|
|
122
|
+
constructor(args: DOMRect | {
|
|
123
123
|
x: number;
|
|
124
124
|
y: number;
|
|
125
125
|
width: number;
|
|
@@ -765,7 +765,7 @@ declare function repositionScrollStrategy(data: ScrollStrategyData, props: Strat
|
|
|
765
765
|
|
|
766
766
|
declare const VSnackbar: {
|
|
767
767
|
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
|
|
768
|
-
style: vue.StyleValue;
|
|
768
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
769
769
|
locationStrategy: "connected" | "static" | LocationStrategyFunction;
|
|
770
770
|
location: Anchor;
|
|
771
771
|
origin: "auto" | "overlap" | Anchor;
|
|
@@ -878,7 +878,7 @@ declare const VSnackbar: {
|
|
|
878
878
|
}> & Omit<{
|
|
879
879
|
theme?: string | undefined;
|
|
880
880
|
class?: any;
|
|
881
|
-
style: vue.StyleValue;
|
|
881
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
882
882
|
$children?: {
|
|
883
883
|
default?: ((arg: {
|
|
884
884
|
isActive: Ref<boolean, boolean>;
|
|
@@ -982,7 +982,7 @@ declare const VSnackbar: {
|
|
|
982
982
|
$emit: ((event: "afterEnter") => void) & ((event: "afterLeave") => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "keydown", e: KeyboardEvent) => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
983
983
|
$el: any;
|
|
984
984
|
$options: vue.ComponentOptionsBase<{
|
|
985
|
-
style: vue.StyleValue;
|
|
985
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
986
986
|
locationStrategy: "connected" | "static" | LocationStrategyFunction;
|
|
987
987
|
location: Anchor;
|
|
988
988
|
origin: "auto" | "overlap" | Anchor;
|
|
@@ -1160,7 +1160,7 @@ declare const VSnackbar: {
|
|
|
1160
1160
|
zIndex: string | number;
|
|
1161
1161
|
_disableGlobalStack: boolean;
|
|
1162
1162
|
}> & Omit<{
|
|
1163
|
-
style: vue.StyleValue;
|
|
1163
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
1164
1164
|
locationStrategy: "connected" | "static" | LocationStrategyFunction;
|
|
1165
1165
|
location: Anchor;
|
|
1166
1166
|
origin: "auto" | "overlap" | Anchor;
|
|
@@ -1317,7 +1317,7 @@ declare const VSnackbar: {
|
|
|
1317
1317
|
M: {};
|
|
1318
1318
|
Defaults: {};
|
|
1319
1319
|
}, {
|
|
1320
|
-
style: vue.StyleValue;
|
|
1320
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
1321
1321
|
locationStrategy: "connected" | "static" | LocationStrategyFunction;
|
|
1322
1322
|
location: Anchor;
|
|
1323
1323
|
origin: "auto" | "overlap" | Anchor;
|
|
@@ -1430,7 +1430,7 @@ declare const VSnackbar: {
|
|
|
1430
1430
|
}> & Omit<{
|
|
1431
1431
|
theme?: string | undefined;
|
|
1432
1432
|
class?: any;
|
|
1433
|
-
style: vue.StyleValue;
|
|
1433
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
1434
1434
|
$children?: {
|
|
1435
1435
|
default?: ((arg: {
|
|
1436
1436
|
isActive: Ref<boolean, boolean>;
|
|
@@ -1534,7 +1534,7 @@ declare const VSnackbar: {
|
|
|
1534
1534
|
$emit: ((event: "afterEnter") => void) & ((event: "afterLeave") => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "keydown", e: KeyboardEvent) => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
1535
1535
|
$el: any;
|
|
1536
1536
|
$options: vue.ComponentOptionsBase<{
|
|
1537
|
-
style: vue.StyleValue;
|
|
1537
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
1538
1538
|
locationStrategy: "connected" | "static" | LocationStrategyFunction;
|
|
1539
1539
|
location: Anchor;
|
|
1540
1540
|
origin: "auto" | "overlap" | Anchor;
|
|
@@ -1712,7 +1712,7 @@ declare const VSnackbar: {
|
|
|
1712
1712
|
zIndex: string | number;
|
|
1713
1713
|
_disableGlobalStack: boolean;
|
|
1714
1714
|
}> & Omit<{
|
|
1715
|
-
style: vue.StyleValue;
|
|
1715
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
1716
1716
|
locationStrategy: "connected" | "static" | LocationStrategyFunction;
|
|
1717
1717
|
location: Anchor;
|
|
1718
1718
|
origin: "auto" | "overlap" | Anchor;
|
|
@@ -1846,7 +1846,7 @@ declare const VSnackbar: {
|
|
|
1846
1846
|
__isTeleport?: undefined;
|
|
1847
1847
|
__isSuspense?: undefined;
|
|
1848
1848
|
} & vue.ComponentOptionsBase<{
|
|
1849
|
-
style: vue.StyleValue;
|
|
1849
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
1850
1850
|
locationStrategy: "connected" | "static" | LocationStrategyFunction;
|
|
1851
1851
|
location: Anchor;
|
|
1852
1852
|
origin: "auto" | "overlap" | Anchor;
|
|
@@ -1959,7 +1959,7 @@ declare const VSnackbar: {
|
|
|
1959
1959
|
}> & Omit<{
|
|
1960
1960
|
theme?: string | undefined;
|
|
1961
1961
|
class?: any;
|
|
1962
|
-
style: vue.StyleValue;
|
|
1962
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
1963
1963
|
$children?: {
|
|
1964
1964
|
default?: ((arg: {
|
|
1965
1965
|
isActive: Ref<boolean, boolean>;
|
|
@@ -2063,7 +2063,7 @@ declare const VSnackbar: {
|
|
|
2063
2063
|
$emit: ((event: "afterEnter") => void) & ((event: "afterLeave") => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "keydown", e: KeyboardEvent) => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
2064
2064
|
$el: any;
|
|
2065
2065
|
$options: vue.ComponentOptionsBase<{
|
|
2066
|
-
style: vue.StyleValue;
|
|
2066
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
2067
2067
|
locationStrategy: "connected" | "static" | LocationStrategyFunction;
|
|
2068
2068
|
location: Anchor;
|
|
2069
2069
|
origin: "auto" | "overlap" | Anchor;
|
|
@@ -2241,7 +2241,7 @@ declare const VSnackbar: {
|
|
|
2241
2241
|
zIndex: string | number;
|
|
2242
2242
|
_disableGlobalStack: boolean;
|
|
2243
2243
|
}> & Omit<{
|
|
2244
|
-
style: vue.StyleValue;
|
|
2244
|
+
style: string | false | vue.StyleValue[] | vue.CSSProperties | null;
|
|
2245
2245
|
locationStrategy: "connected" | "static" | LocationStrategyFunction;
|
|
2246
2246
|
location: Anchor;
|
|
2247
2247
|
origin: "auto" | "overlap" | Anchor;
|
|
@@ -2712,42 +2712,43 @@ declare module 'vue' {
|
|
|
2712
2712
|
$children?: VNodeChild
|
|
2713
2713
|
}
|
|
2714
2714
|
export interface GlobalComponents {
|
|
2715
|
-
VApp: typeof import('vuetify/components')['VApp']
|
|
2716
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
2717
2715
|
VAlert: typeof import('vuetify/components')['VAlert']
|
|
2718
2716
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
2719
|
-
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
2720
2717
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
2721
2718
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
2722
2719
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
2723
|
-
|
|
2720
|
+
VApp: typeof import('vuetify/components')['VApp']
|
|
2721
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
2724
2722
|
VBanner: typeof import('vuetify/components')['VBanner']
|
|
2725
2723
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
|
2726
2724
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
|
2725
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
2727
2726
|
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
2728
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
2729
2727
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
|
2730
2728
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
|
2731
2729
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
|
2730
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
|
2731
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
2732
2732
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
|
2733
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
|
2733
2734
|
VCard: typeof import('vuetify/components')['VCard']
|
|
2734
2735
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
|
2735
2736
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
|
2736
2737
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
|
2737
2738
|
VCardText: typeof import('vuetify/components')['VCardText']
|
|
2738
2739
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
|
2739
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
|
2740
|
-
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
2741
2740
|
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
2742
2741
|
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
2743
|
-
|
|
2744
|
-
|
|
2742
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
2743
|
+
VCode: typeof import('vuetify/components')['VCode']
|
|
2745
2744
|
VChip: typeof import('vuetify/components')['VChip']
|
|
2745
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
|
2746
2746
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
|
2747
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
2748
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
2747
2749
|
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
2748
|
-
VCode: typeof import('vuetify/components')['VCode']
|
|
2749
2750
|
VCounter: typeof import('vuetify/components')['VCounter']
|
|
2750
|
-
|
|
2751
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
|
2751
2752
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
|
2752
2753
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
|
2753
2754
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
|
@@ -2755,37 +2756,35 @@ declare module 'vue' {
|
|
|
2755
2756
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
|
2756
2757
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
|
2757
2758
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
|
2758
|
-
|
|
2759
|
+
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
2760
|
+
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
2761
|
+
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
2762
|
+
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
2759
2763
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
|
2760
2764
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
|
2761
2765
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
|
2762
2766
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
|
2763
2767
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
|
2764
2768
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
|
2765
|
-
VFab: typeof import('vuetify/components')['VFab']
|
|
2766
2769
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
2767
|
-
VDialog: typeof import('vuetify/components')['VDialog']
|
|
2768
|
-
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
2769
|
-
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
2770
|
-
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
2771
|
-
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
2772
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
2773
2770
|
VFooter: typeof import('vuetify/components')['VFooter']
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
VImg: typeof import('vuetify/components')['VImg']
|
|
2771
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
|
2772
|
+
VFab: typeof import('vuetify/components')['VFab']
|
|
2777
2773
|
VIcon: typeof import('vuetify/components')['VIcon']
|
|
2778
2774
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
|
2779
2775
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
|
2780
2776
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
|
2781
2777
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
|
2778
|
+
VField: typeof import('vuetify/components')['VField']
|
|
2779
|
+
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
2780
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
2781
|
+
VImg: typeof import('vuetify/components')['VImg']
|
|
2782
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
|
2783
|
+
VInput: typeof import('vuetify/components')['VInput']
|
|
2784
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
|
2782
2785
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
|
2783
2786
|
VItem: typeof import('vuetify/components')['VItem']
|
|
2784
|
-
VInput: typeof import('vuetify/components')['VInput']
|
|
2785
|
-
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
|
2786
2787
|
VKbd: typeof import('vuetify/components')['VKbd']
|
|
2787
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
|
2788
|
-
VMain: typeof import('vuetify/components')['VMain']
|
|
2789
2788
|
VList: typeof import('vuetify/components')['VList']
|
|
2790
2789
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
|
2791
2790
|
VListImg: typeof import('vuetify/components')['VListImg']
|
|
@@ -2795,50 +2794,51 @@ declare module 'vue' {
|
|
|
2795
2794
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
|
2796
2795
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
|
2797
2796
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
|
2798
|
-
|
|
2797
|
+
VMain: typeof import('vuetify/components')['VMain']
|
|
2799
2798
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
|
2799
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
|
2800
2800
|
VMessages: typeof import('vuetify/components')['VMessages']
|
|
2801
2801
|
VNumberInput: typeof import('vuetify/components')['VNumberInput']
|
|
2802
|
+
VPagination: typeof import('vuetify/components')['VPagination']
|
|
2802
2803
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
|
2803
2804
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
|
2804
2805
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
|
2805
|
-
|
|
2806
|
+
VRating: typeof import('vuetify/components')['VRating']
|
|
2807
|
+
VSelect: typeof import('vuetify/components')['VSelect']
|
|
2806
2808
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
|
2807
2809
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
|
2810
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
|
2808
2811
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
|
2809
|
-
VRating: typeof import('vuetify/components')['VRating']
|
|
2810
|
-
VSelect: typeof import('vuetify/components')['VSelect']
|
|
2811
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
2812
2812
|
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
|
2813
|
-
|
|
2813
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
2814
2814
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
|
2815
2815
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
|
2816
2816
|
VSlider: typeof import('vuetify/components')['VSlider']
|
|
2817
|
-
|
|
2818
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
2819
|
-
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
2817
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
2820
2818
|
VStepper: typeof import('vuetify/components')['VStepper']
|
|
2821
2819
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
|
2822
2820
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
|
2823
2821
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
|
2824
2822
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
|
2825
2823
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
|
2824
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
2825
|
+
VTable: typeof import('vuetify/components')['VTable']
|
|
2826
2826
|
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
2827
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
2827
2828
|
VTab: typeof import('vuetify/components')['VTab']
|
|
2828
2829
|
VTabs: typeof import('vuetify/components')['VTabs']
|
|
2829
2830
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
|
2830
2831
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
|
2831
|
-
VTable: typeof import('vuetify/components')['VTable']
|
|
2832
2832
|
VTextField: typeof import('vuetify/components')['VTextField']
|
|
2833
|
-
|
|
2834
|
-
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
|
2835
|
-
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
2833
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
2836
2834
|
VTimePicker: typeof import('vuetify/components')['VTimePicker']
|
|
2837
2835
|
VTimePickerClock: typeof import('vuetify/components')['VTimePickerClock']
|
|
2838
2836
|
VTimePickerControls: typeof import('vuetify/components')['VTimePickerControls']
|
|
2839
2837
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
2840
2838
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
2841
|
-
|
|
2839
|
+
VToolbar: typeof import('vuetify/components')['VToolbar']
|
|
2840
|
+
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
|
2841
|
+
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
2842
2842
|
VTreeview: typeof import('vuetify/components')['VTreeview']
|
|
2843
2843
|
VTreeviewItem: typeof import('vuetify/components')['VTreeviewItem']
|
|
2844
2844
|
VTreeviewGroup: typeof import('vuetify/components')['VTreeviewGroup']
|
|
@@ -2847,11 +2847,11 @@ declare module 'vue' {
|
|
|
2847
2847
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
|
2848
2848
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
|
2849
2849
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
|
2850
|
-
VForm: typeof import('vuetify/components')['VForm']
|
|
2851
2850
|
VContainer: typeof import('vuetify/components')['VContainer']
|
|
2852
2851
|
VCol: typeof import('vuetify/components')['VCol']
|
|
2853
2852
|
VRow: typeof import('vuetify/components')['VRow']
|
|
2854
2853
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
|
2854
|
+
VForm: typeof import('vuetify/components')['VForm']
|
|
2855
2855
|
VHover: typeof import('vuetify/components')['VHover']
|
|
2856
2856
|
VLayout: typeof import('vuetify/components')['VLayout']
|
|
2857
2857
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
|
@@ -2859,9 +2859,9 @@ declare module 'vue' {
|
|
|
2859
2859
|
VLazy: typeof import('vuetify/components')['VLazy']
|
|
2860
2860
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
|
2861
2861
|
VParallax: typeof import('vuetify/components')['VParallax']
|
|
2862
|
-
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
|
2863
2862
|
VRadio: typeof import('vuetify/components')['VRadio']
|
|
2864
2863
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
|
2864
|
+
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
|
2865
2865
|
VSnackbarQueue: typeof import('vuetify/components')['VSnackbarQueue']
|
|
2866
2866
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
|
2867
2867
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
|
@@ -2888,22 +2888,22 @@ declare module 'vue' {
|
|
|
2888
2888
|
VColorInput: typeof import('vuetify/labs/components')['VColorInput']
|
|
2889
2889
|
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
|
2890
2890
|
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2891
|
+
VVideo: typeof import('vuetify/labs/components')['VVideo']
|
|
2892
|
+
VVideoControls: typeof import('vuetify/labs/components')['VVideoControls']
|
|
2893
|
+
VVideoVolume: typeof import('vuetify/labs/components')['VVideoVolume']
|
|
2894
2894
|
VPie: typeof import('vuetify/labs/components')['VPie']
|
|
2895
2895
|
VPieSegment: typeof import('vuetify/labs/components')['VPieSegment']
|
|
2896
2896
|
VPieTooltip: typeof import('vuetify/labs/components')['VPieTooltip']
|
|
2897
|
+
VHotkey: typeof import('vuetify/labs/components')['VHotkey']
|
|
2898
|
+
VIconBtn: typeof import('vuetify/labs/components')['VIconBtn']
|
|
2897
2899
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
|
2898
2900
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
|
2899
2901
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
VVideoVolume: typeof import('vuetify/labs/components')['VVideoVolume']
|
|
2903
|
-
VHotkey: typeof import('vuetify/labs/components')['VHotkey']
|
|
2902
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
|
2903
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
|
2904
2904
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
|
2905
|
-
VMaskInput: typeof import('vuetify/labs/components')['VMaskInput']
|
|
2906
2905
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
|
2906
|
+
VMaskInput: typeof import('vuetify/labs/components')['VMaskInput']
|
|
2907
2907
|
}
|
|
2908
2908
|
export interface GlobalDirectives {
|
|
2909
2909
|
vClickOutside: typeof import('vuetify/directives')['ClickOutside']
|
package/lib/framework.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode, withDirectives as _withDirectives } from "vue";
|
|
2
2
|
// Styles
|
|
3
3
|
import "./VCalendarCategory.css";
|
|
4
4
|
import "./VCalendarDaily.css";
|
|
@@ -10,7 +10,8 @@ import { VCalendarDaily } from "./VCalendarDaily.js";
|
|
|
10
10
|
import { VCalendarWeekly } from "./VCalendarWeekly.js"; // Composables
|
|
11
11
|
import { makeCalendarBaseProps } from "./composables/calendarBase.js";
|
|
12
12
|
import { makeCalendarWithEventsProps, useCalendarWithEvents } from "./composables/calendarWithEvents.js";
|
|
13
|
-
import { forwardRefs } from "../../composables/forwardRefs.js"; //
|
|
13
|
+
import { forwardRefs } from "../../composables/forwardRefs.js"; // Directives
|
|
14
|
+
import vResize from "../../directives/resize/index.js"; // Utilities
|
|
14
15
|
import { computed, onMounted, onUpdated, ref, watch } from 'vue';
|
|
15
16
|
import { getParsedCategories } from "./util/parser.js";
|
|
16
17
|
import { copyTimestamp, DAY_MIN, DAYS_IN_MONTH_MAX, DAYS_IN_WEEK, getEndOfMonth, getStartOfMonth, nextDay, prevDay, relativeDays, timestampToDate, updateFormatted, updateRelative, updateWeekday, validateTimestamp } from "./util/timestamp.js";
|
|
@@ -18,6 +19,9 @@ import { genericComponent, useRender } from "../../util/index.js"; // Types
|
|
|
18
19
|
// Types
|
|
19
20
|
export const VCalendar = genericComponent()({
|
|
20
21
|
name: 'VCalendar',
|
|
22
|
+
directives: {
|
|
23
|
+
vResize
|
|
24
|
+
},
|
|
21
25
|
props: {
|
|
22
26
|
modelValue: {
|
|
23
27
|
type: [String, Number, Date],
|
|
@@ -302,9 +306,8 @@ export const VCalendar = genericComponent()({
|
|
|
302
306
|
"categories": categories,
|
|
303
307
|
"onClick:date": (e, day) => {
|
|
304
308
|
if (attrs['onUpdate:modelValue']) emit('update:modelValue', day.date);
|
|
305
|
-
if (attrs['onClick:date']) emit('click:date', e, day);
|
|
306
309
|
}
|
|
307
|
-
}), base.getScopedSlots()), [[
|
|
310
|
+
}), base.getScopedSlots()), [[vResize, base.updateEventVisibility, void 0, {
|
|
308
311
|
quiet: true
|
|
309
312
|
}]]);
|
|
310
313
|
});
|