@vuetify/nightly 3.2.0-dev-20230214.0 → 3.2.0-dev-20230322.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -17
- package/dist/json/attributes.json +243 -59
- package/dist/json/tags.json +48 -2
- package/dist/json/web-types.json +1648 -279
- package/dist/vuetify-labs.css +666 -482
- package/dist/vuetify-labs.d.ts +59419 -13475
- package/dist/vuetify-labs.esm.js +797 -531
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +797 -531
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +524 -355
- package/dist/vuetify.d.ts +55670 -14368
- package/dist/vuetify.esm.js +607 -462
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +607 -462
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +793 -793
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.d.ts +6 -9
- package/lib/blueprints/md1.d.ts +6 -9
- package/lib/blueprints/md2.d.ts +6 -9
- package/lib/blueprints/md3.d.ts +6 -9
- package/lib/blueprints/md3.mjs +6 -0
- package/lib/blueprints/md3.mjs.map +1 -1
- package/lib/components/VAlert/VAlert.css +1 -1
- package/lib/components/VAlert/VAlert.mjs +29 -15
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/_variables.scss +1 -1
- package/lib/components/VAlert/index.d.ts +515 -65
- package/lib/components/VApp/VApp.css +1 -0
- package/lib/components/VApp/VApp.sass +1 -0
- package/lib/components/VApp/index.d.ts +161 -17
- package/lib/components/VAppBar/VAppBar.mjs +9 -4
- package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
- package/lib/components/VAppBar/index.d.ts +624 -82
- package/lib/components/VAutocomplete/VAutocomplete.mjs +23 -8
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.ts +1744 -113
- package/lib/components/VAvatar/index.d.ts +207 -25
- package/lib/components/VBadge/index.d.ts +286 -36
- package/lib/components/VBanner/VBanner.mjs +19 -12
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBanner/index.d.ts +485 -67
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs +6 -2
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
- package/lib/components/VBottomNavigation/index.d.ts +323 -36
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +11 -7
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/index.d.ts +346 -42
- package/lib/components/VBtn/VBtn.css +0 -5
- package/lib/components/VBtn/VBtn.mjs +65 -58
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/VBtn.sass +0 -7
- package/lib/components/VBtn/_variables.scss +0 -2
- package/lib/components/VBtn/index.d.ts +454 -59
- package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -7
- package/lib/components/VBtnGroup/VBtnGroup.mjs.map +1 -1
- package/lib/components/VBtnGroup/index.d.ts +187 -22
- package/lib/components/VBtnToggle/VBtnToggle.mjs +2 -2
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.ts +248 -32
- package/lib/components/VCard/VCard.mjs +10 -6
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/VCardItem.mjs +27 -23
- package/lib/components/VCard/VCardItem.mjs.map +1 -1
- package/lib/components/VCard/index.d.ts +958 -132
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/index.d.ts +585 -87
- package/lib/components/VCheckbox/VCheckbox.mjs +2 -2
- package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -4
- package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
- package/lib/components/VCheckbox/index.d.ts +841 -119
- package/lib/components/VChip/VChip.css +110 -90
- package/lib/components/VChip/VChip.mjs +70 -48
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/_mixins.scss +27 -23
- package/lib/components/VChip/index.d.ts +476 -66
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/index.d.ts +229 -28
- package/lib/components/VCode/index.d.ts +112 -13
- package/lib/components/VColorPicker/VColorPicker.mjs +9 -1
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.css +2 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs +36 -18
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.sass +2 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs +4 -4
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.mjs +2 -2
- package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
- package/lib/components/VColorPicker/index.d.ts +284 -20
- package/lib/components/VColorPicker/util/index.mjs +2 -5
- package/lib/components/VColorPicker/util/index.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.mjs +23 -8
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.ts +1756 -113
- package/lib/components/VCounter/index.d.ts +1909 -78
- package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs +4 -1
- package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs.map +1 -1
- package/lib/components/VDefaultsProvider/index.d.ts +136 -18
- package/lib/components/VDialog/VDialog.css +31 -24
- package/lib/components/VDialog/VDialog.mjs +2 -2
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.sass +19 -12
- package/lib/components/VDialog/index.d.ts +2403 -124
- package/lib/components/VDivider/VDivider.mjs.map +1 -1
- package/lib/components/VDivider/index.d.ts +132 -19
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.ts +741 -104
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/index.d.ts +179 -23
- package/lib/components/VFileInput/VFileInput.mjs +1 -0
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.ts +1069 -93
- package/lib/components/VFooter/VFooter.css +2 -0
- package/lib/components/VFooter/VFooter.sass +2 -0
- package/lib/components/VFooter/_variables.scss +2 -0
- package/lib/components/VFooter/index.d.ts +206 -25
- package/lib/components/VForm/index.d.ts +207 -20
- package/lib/components/VGrid/VCol.mjs +6 -5
- package/lib/components/VGrid/VCol.mjs.map +1 -1
- package/lib/components/VGrid/VRow.mjs +4 -4
- package/lib/components/VGrid/VRow.mjs.map +1 -1
- package/lib/components/VGrid/index.d.ts +745 -64
- package/lib/components/VHover/index.d.ts +188 -29
- package/lib/components/VIcon/index.d.ts +500 -44
- package/lib/components/VImg/VImg.mjs +2 -2
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/index.d.ts +281 -40
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/index.d.ts +321 -47
- package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
- package/lib/components/VItemGroup/index.d.ts +313 -45
- package/lib/components/VKbd/VKbd.css +1 -0
- package/lib/components/VKbd/VKbd.sass +1 -0
- package/lib/components/VKbd/_variables.scss +1 -0
- package/lib/components/VKbd/index.d.ts +112 -13
- package/lib/components/VLabel/index.d.ts +115 -16
- package/lib/components/VLayout/index.d.ts +302 -35
- package/lib/components/VLazy/VLazy.mjs +4 -1
- package/lib/components/VLazy/VLazy.mjs.map +1 -1
- package/lib/components/VLazy/index.d.ts +222 -27
- package/lib/components/VList/VListChildren.mjs +2 -2
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/VList/VListGroup.mjs +1 -4
- package/lib/components/VList/VListGroup.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs +23 -19
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListSubheader.mjs.map +1 -1
- package/lib/components/VList/index.d.ts +1500 -191
- package/lib/components/VLocaleProvider/index.d.ts +123 -16
- package/lib/components/VMain/index.d.ts +121 -14
- package/lib/components/VMenu/VMenu.css +4 -4
- package/lib/components/VMenu/VMenu.mjs +8 -7
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/VMenu.sass +1 -1
- package/lib/components/VMenu/index.d.ts +2411 -121
- package/lib/components/VMessages/VMessages.mjs.map +1 -1
- package/lib/components/VMessages/index.d.ts +1934 -87
- package/lib/components/VNavigationDrawer/index.d.ts +382 -47
- package/lib/components/VNoSsr/index.d.ts +6 -0
- package/lib/components/VOverlay/VOverlay.css +2 -2
- package/lib/components/VOverlay/VOverlay.mjs +1 -4
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.sass +1 -1
- package/lib/components/VOverlay/_variables.scss +1 -1
- package/lib/components/VOverlay/index.d.ts +527 -75
- package/lib/components/VOverlay/scrollStrategies.mjs +2 -2
- package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
- package/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/lib/components/VPagination/index.d.ts +504 -56
- package/lib/components/VParallax/VParallax.mjs +3 -3
- package/lib/components/VParallax/VParallax.mjs.map +1 -1
- package/lib/components/VParallax/index.d.ts +144 -19
- package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
- package/lib/components/VProgressCircular/index.d.ts +189 -22
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/index.d.ts +325 -42
- package/lib/components/VRadio/index.d.ts +318 -46
- package/lib/components/VRadioGroup/VRadioGroup.mjs +4 -6
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/index.d.ts +468 -66
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/index.d.ts +530 -66
- package/lib/components/VRating/VRating.css +0 -4
- package/lib/components/VRating/VRating.mjs +6 -35
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VRating/VRating.sass +0 -5
- package/lib/components/VRating/index.d.ts +309 -38
- package/lib/components/VResponsive/index.d.ts +144 -21
- package/lib/components/VSelect/VSelect.mjs +23 -8
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.ts +3150 -247
- package/lib/components/VSelectionControl/VSelectionControl.mjs +1 -4
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.ts +90 -10
- package/lib/components/VSelectionControlGroup/index.d.ts +245 -35
- package/lib/components/VSheet/VSheet.mjs +16 -12
- package/lib/components/VSheet/VSheet.mjs.map +1 -1
- package/lib/components/VSheet/index.d.ts +196 -27
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/index.d.ts +488 -70
- package/lib/components/VSlider/VSliderTrack.mjs +1 -0
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSlider/index.d.ts +523 -65
- package/lib/components/VSlider/slider.mjs +5 -6
- package/lib/components/VSlider/slider.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.css +2 -9
- package/lib/components/VSnackbar/VSnackbar.mjs +10 -11
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.sass +3 -10
- package/lib/components/VSnackbar/index.d.ts +1255 -74
- package/lib/components/VSwitch/VSwitch.mjs +2 -2
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/index.d.ts +503 -75
- package/lib/components/VSystemBar/VSystemBar.css +5 -1
- package/lib/components/VSystemBar/VSystemBar.mjs +6 -2
- package/lib/components/VSystemBar/VSystemBar.mjs.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.sass +5 -1
- package/lib/components/VSystemBar/_variables.scss +4 -1
- package/lib/components/VSystemBar/index.d.ts +186 -23
- package/lib/components/VTable/VTable.mjs.map +1 -1
- package/lib/components/VTable/index.d.ts +193 -26
- package/lib/components/VTabs/VTab.mjs +7 -23
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/index.d.ts +628 -64
- package/lib/components/VTextField/VTextField.mjs +9 -5
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/index.d.ts +1447 -101
- package/lib/components/VTextarea/VTextarea.mjs +8 -1
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/index.d.ts +1043 -93
- package/lib/components/VThemeProvider/index.d.ts +127 -16
- package/lib/components/VTimeline/VTimelineDivider.mjs +18 -10
- package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
- package/lib/components/VTimeline/index.d.ts +446 -60
- package/lib/components/VToolbar/VToolbar.mjs +10 -9
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
- package/lib/components/VToolbar/index.d.ts +552 -73
- package/lib/components/VTooltip/VTooltip.css +3 -3
- package/lib/components/VTooltip/VTooltip.mjs +4 -4
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/VTooltip.sass +1 -1
- package/lib/components/VTooltip/index.d.ts +1315 -73
- package/lib/components/VValidation/index.d.ts +204 -27
- package/lib/components/VWindow/index.d.ts +541 -75
- package/lib/components/index.d.ts +55694 -14389
- package/lib/components/transitions/createTransition.mjs +1 -1
- package/lib/components/transitions/createTransition.mjs.map +1 -1
- package/lib/components/transitions/index.d.ts +2144 -259
- package/lib/composables/defaults.mjs +5 -1
- package/lib/composables/defaults.mjs.map +1 -1
- package/lib/composables/display.mjs +15 -10
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/loader.mjs.map +1 -1
- package/lib/composables/nested/nested.mjs +2 -2
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/nested/selectStrategies.mjs +7 -1
- package/lib/composables/nested/selectStrategies.mjs.map +1 -1
- package/lib/composables/proxiedModel.mjs +1 -1
- package/lib/composables/proxiedModel.mjs.map +1 -1
- package/lib/composables/resizeObserver.mjs.map +1 -1
- package/lib/composables/stack.mjs +2 -2
- package/lib/composables/stack.mjs.map +1 -1
- package/lib/composables/theme.mjs +28 -23
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/variant.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.ts +6 -9
- package/lib/labs/VDataTable/VDataTable.css +15 -0
- package/lib/labs/VDataTable/VDataTable.mjs +45 -19
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTable.sass +9 -0
- package/lib/labs/VDataTable/VDataTableFooter.mjs +3 -2
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRow.mjs +8 -2
- package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs +6 -7
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs +41 -19
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableVirtual.mjs +27 -14
- package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/expand.mjs +1 -1
- package/lib/labs/VDataTable/composables/expand.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/group.mjs +12 -1
- package/lib/labs/VDataTable/composables/group.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/options.mjs +4 -10
- package/lib/labs/VDataTable/composables/options.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/paginate.mjs +25 -4
- package/lib/labs/VDataTable/composables/paginate.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/select.mjs +1 -1
- package/lib/labs/VDataTable/composables/select.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/sort.mjs +19 -3
- package/lib/labs/VDataTable/composables/sort.mjs.map +1 -1
- package/lib/labs/VDataTable/index.d.ts +4934 -317
- package/lib/labs/VVirtualScroll/VVirtualScroll.mjs +18 -5
- package/lib/labs/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
- package/lib/labs/VVirtualScroll/index.d.ts +41 -7
- package/lib/labs/components.d.ts +4970 -324
- package/lib/locale/adapters/vue-i18n.d.ts +1 -1
- package/lib/locale/adapters/vue-i18n.mjs +1 -1
- package/lib/locale/adapters/vue-i18n.mjs.map +1 -1
- package/lib/locale/index.mjs +1 -1
- package/lib/locale/index.mjs.map +1 -1
- package/lib/styles/elements/_global.sass +0 -4
- package/lib/styles/generic/_index.scss +0 -1
- package/lib/styles/generic/_transitions.scss +111 -9
- package/lib/styles/main.css +316 -167
- package/lib/styles/settings/_utilities.scss +7 -0
- package/lib/styles/tools/_sheet.sass +3 -6
- package/lib/styles/utilities/_display.sass +6 -5
- package/lib/styles/utilities/_elevation.scss +13 -0
- package/lib/styles/utilities/_index.sass +3 -2
- package/lib/styles/utilities/_screenreaders.sass +13 -11
- package/lib/util/animation.mjs +8 -1
- package/lib/util/animation.mjs.map +1 -1
- package/lib/util/colorUtils.mjs +4 -5
- package/lib/util/colorUtils.mjs.map +1 -1
- package/lib/util/defineComponent.mjs +15 -7
- package/lib/util/defineComponent.mjs.map +1 -1
- package/lib/util/helpers.mjs +4 -0
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +15 -7
- package/lib/styles/generic/_elevation.scss +0 -10
|
@@ -1,6 +1,108 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare const VLocaleProvider: {
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
$: vue.ComponentInternalInstance;
|
|
11
|
+
$data: {};
|
|
12
|
+
$props: Partial<{
|
|
13
|
+
rtl: boolean;
|
|
14
|
+
}> & Omit<{} & {
|
|
15
|
+
rtl?: boolean | undefined;
|
|
16
|
+
locale?: string | undefined;
|
|
17
|
+
messages?: Record<string, any> | undefined;
|
|
18
|
+
fallbackLocale?: string | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
21
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
22
|
+
};
|
|
23
|
+
$slots?: {
|
|
24
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
'v-slots'?: {
|
|
27
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
31
|
+
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "rtl">;
|
|
32
|
+
$attrs: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
$refs: {
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
$slots: Readonly<{
|
|
39
|
+
[name: string]: vue.Slot | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
42
|
+
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
43
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
44
|
+
$el: any;
|
|
45
|
+
$options: vue.ComponentOptionsBase<{} & {
|
|
46
|
+
rtl?: boolean | undefined;
|
|
47
|
+
locale?: string | undefined;
|
|
48
|
+
messages?: Record<string, any> | undefined;
|
|
49
|
+
fallbackLocale?: string | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
52
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
53
|
+
};
|
|
54
|
+
$slots?: {
|
|
55
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
'v-slots'?: {
|
|
58
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
} & {
|
|
61
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
62
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
63
|
+
rtl: boolean;
|
|
64
|
+
}, {}, string> & {
|
|
65
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
76
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
77
|
+
renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
78
|
+
renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
79
|
+
errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
80
|
+
};
|
|
81
|
+
$forceUpdate: () => void;
|
|
82
|
+
$nextTick: typeof vue.nextTick;
|
|
83
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
|
|
84
|
+
} & {} & {
|
|
85
|
+
rtl?: boolean | undefined;
|
|
86
|
+
locale?: string | undefined;
|
|
87
|
+
messages?: Record<string, any> | undefined;
|
|
88
|
+
fallbackLocale?: string | undefined;
|
|
89
|
+
} & {
|
|
90
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
91
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
92
|
+
};
|
|
93
|
+
$slots?: {
|
|
94
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
'v-slots'?: {
|
|
97
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
} & {
|
|
100
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
101
|
+
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
102
|
+
__isFragment?: undefined;
|
|
103
|
+
__isTeleport?: undefined;
|
|
104
|
+
__isSuspense?: undefined;
|
|
105
|
+
} & vue.ComponentOptionsBase<{} & {
|
|
4
106
|
rtl?: boolean | undefined;
|
|
5
107
|
locale?: string | undefined;
|
|
6
108
|
messages?: Record<string, any> | undefined;
|
|
@@ -9,28 +111,33 @@ declare const VLocaleProvider: vue.DefineComponent<{} & {
|
|
|
9
111
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
10
112
|
default?: (() => vue.VNodeChild) | undefined;
|
|
11
113
|
};
|
|
12
|
-
|
|
13
|
-
default?: false | (() => vue.VNodeChild) | undefined;
|
|
14
|
-
} | undefined;
|
|
15
|
-
} & {
|
|
16
|
-
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
17
|
-
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {} & {
|
|
18
|
-
rtl?: boolean | undefined;
|
|
19
|
-
locale?: string | undefined;
|
|
20
|
-
messages?: Record<string, any> | undefined;
|
|
21
|
-
fallbackLocale?: string | undefined;
|
|
22
|
-
} & {
|
|
23
|
-
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
114
|
+
$slots?: {
|
|
24
115
|
default?: (() => vue.VNodeChild) | undefined;
|
|
25
|
-
};
|
|
116
|
+
} | undefined;
|
|
26
117
|
'v-slots'?: {
|
|
27
118
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
28
119
|
} | undefined;
|
|
29
120
|
} & {
|
|
30
121
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
31
|
-
}, {
|
|
122
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
32
123
|
rtl: boolean;
|
|
33
|
-
}
|
|
124
|
+
}, {}, string> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
125
|
+
locale: StringConstructor;
|
|
126
|
+
fallbackLocale: StringConstructor;
|
|
127
|
+
messages: ObjectConstructor;
|
|
128
|
+
rtl: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: undefined;
|
|
131
|
+
};
|
|
132
|
+
}, vue.ExtractPropTypes<{
|
|
133
|
+
locale: StringConstructor;
|
|
134
|
+
fallbackLocale: StringConstructor;
|
|
135
|
+
messages: ObjectConstructor;
|
|
136
|
+
rtl: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: undefined;
|
|
139
|
+
};
|
|
140
|
+
}>>;
|
|
34
141
|
type VLocaleProvider = InstanceType<typeof VLocaleProvider>;
|
|
35
142
|
|
|
36
143
|
export { VLocaleProvider };
|
|
@@ -1,33 +1,140 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare const VMain: {
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
$: vue.ComponentInternalInstance;
|
|
11
|
+
$data: {};
|
|
12
|
+
$props: Partial<{
|
|
13
|
+
tag: string;
|
|
14
|
+
scrollable: boolean;
|
|
15
|
+
}> & Omit<{
|
|
16
|
+
tag: string;
|
|
17
|
+
scrollable: boolean;
|
|
18
|
+
} & {} & {
|
|
19
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
20
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
21
|
+
};
|
|
22
|
+
$slots?: {
|
|
23
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
'v-slots'?: {
|
|
26
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
30
|
+
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "tag" | "scrollable">;
|
|
31
|
+
$attrs: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
$refs: {
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
};
|
|
37
|
+
$slots: Readonly<{
|
|
38
|
+
[name: string]: vue.Slot | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
41
|
+
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
42
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
43
|
+
$el: any;
|
|
44
|
+
$options: vue.ComponentOptionsBase<{
|
|
45
|
+
tag: string;
|
|
46
|
+
scrollable: boolean;
|
|
47
|
+
} & {} & {
|
|
48
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
49
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
50
|
+
};
|
|
51
|
+
$slots?: {
|
|
52
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
'v-slots'?: {
|
|
55
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
} & {
|
|
58
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
59
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
60
|
+
tag: string;
|
|
61
|
+
scrollable: boolean;
|
|
62
|
+
}, {}, string> & {
|
|
63
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
+
renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
76
|
+
renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
77
|
+
errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
78
|
+
};
|
|
79
|
+
$forceUpdate: () => void;
|
|
80
|
+
$nextTick: typeof vue.nextTick;
|
|
81
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
|
|
82
|
+
} & {
|
|
83
|
+
tag: string;
|
|
84
|
+
scrollable: boolean;
|
|
85
|
+
} & {} & {
|
|
86
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
87
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
88
|
+
};
|
|
89
|
+
$slots?: {
|
|
90
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
'v-slots'?: {
|
|
93
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
} & {
|
|
96
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
97
|
+
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
98
|
+
__isFragment?: undefined;
|
|
99
|
+
__isTeleport?: undefined;
|
|
100
|
+
__isSuspense?: undefined;
|
|
101
|
+
} & vue.ComponentOptionsBase<{
|
|
4
102
|
tag: string;
|
|
5
103
|
scrollable: boolean;
|
|
6
104
|
} & {} & {
|
|
7
105
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
8
106
|
default?: (() => vue.VNodeChild) | undefined;
|
|
9
107
|
};
|
|
10
|
-
|
|
11
|
-
default?: false | (() => vue.VNodeChild) | undefined;
|
|
12
|
-
} | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
15
|
-
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
|
|
16
|
-
tag: string;
|
|
17
|
-
scrollable: boolean;
|
|
18
|
-
} & {} & {
|
|
19
|
-
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
108
|
+
$slots?: {
|
|
20
109
|
default?: (() => vue.VNodeChild) | undefined;
|
|
21
|
-
};
|
|
110
|
+
} | undefined;
|
|
22
111
|
'v-slots'?: {
|
|
23
112
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
24
113
|
} | undefined;
|
|
25
114
|
} & {
|
|
26
115
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
27
|
-
}, {
|
|
116
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
28
117
|
tag: string;
|
|
29
118
|
scrollable: boolean;
|
|
30
|
-
}
|
|
119
|
+
}, {}, string> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
120
|
+
tag: Omit<{
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
}, "type" | "default"> & {
|
|
124
|
+
type: vue.PropType<string>;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
scrollable: BooleanConstructor;
|
|
128
|
+
}, vue.ExtractPropTypes<{
|
|
129
|
+
tag: Omit<{
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: string;
|
|
132
|
+
}, "type" | "default"> & {
|
|
133
|
+
type: vue.PropType<string>;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
scrollable: BooleanConstructor;
|
|
137
|
+
}>>;
|
|
31
138
|
type VMain = InstanceType<typeof VMain>;
|
|
32
139
|
|
|
33
140
|
export { VMain };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.v-menu .v-overlay__content {
|
|
1
|
+
.v-menu > .v-overlay__content {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
border-radius: 4px;
|
|
5
5
|
}
|
|
6
|
-
.v-menu .v-overlay__content > .v-card,
|
|
7
|
-
.v-menu .v-overlay__content > .v-sheet,
|
|
8
|
-
.v-menu .v-overlay__content > .v-list {
|
|
6
|
+
.v-menu > .v-overlay__content > .v-card,
|
|
7
|
+
.v-menu > .v-overlay__content > .v-sheet,
|
|
8
|
+
.v-menu > .v-overlay__content > .v-list {
|
|
9
9
|
background: rgb(var(--v-theme-surface));
|
|
10
10
|
border-radius: inherit;
|
|
11
11
|
overflow: auto;
|
|
@@ -11,7 +11,7 @@ import { useProxiedModel } from "../../composables/proxiedModel.mjs";
|
|
|
11
11
|
import { useScopeId } from "../../composables/scopeId.mjs"; // Utilities
|
|
12
12
|
import { computed, inject, mergeProps, provide, ref, watch } from 'vue';
|
|
13
13
|
import { genericComponent, getUid, omit, useRender } from "../../util/index.mjs";
|
|
14
|
-
import {
|
|
14
|
+
import { makeVOverlayProps } from "../VOverlay/VOverlay.mjs";
|
|
15
15
|
import { VMenuSymbol } from "./shared.mjs"; // Types
|
|
16
16
|
export const VMenu = genericComponent()({
|
|
17
17
|
name: 'VMenu',
|
|
@@ -46,17 +46,17 @@ export const VMenu = genericComponent()({
|
|
|
46
46
|
const id = computed(() => props.id || `v-menu-${uid}`);
|
|
47
47
|
const overlay = ref();
|
|
48
48
|
const parent = inject(VMenuSymbol, null);
|
|
49
|
-
|
|
49
|
+
const openChildren = ref(0);
|
|
50
50
|
provide(VMenuSymbol, {
|
|
51
51
|
register() {
|
|
52
|
-
++openChildren;
|
|
52
|
+
++openChildren.value;
|
|
53
53
|
},
|
|
54
54
|
unregister() {
|
|
55
|
-
--openChildren;
|
|
55
|
+
--openChildren.value;
|
|
56
56
|
},
|
|
57
57
|
closeParents() {
|
|
58
58
|
setTimeout(() => {
|
|
59
|
-
if (!openChildren) {
|
|
59
|
+
if (!openChildren.value) {
|
|
60
60
|
isActive.value = false;
|
|
61
61
|
parent?.closeParents();
|
|
62
62
|
}
|
|
@@ -75,7 +75,7 @@ export const VMenu = genericComponent()({
|
|
|
75
75
|
'aria-owns': id.value
|
|
76
76
|
}, props.activatorProps));
|
|
77
77
|
useRender(() => {
|
|
78
|
-
const [overlayProps] =
|
|
78
|
+
const [overlayProps] = VOverlay.filterProps(props);
|
|
79
79
|
return _createVNode(VOverlay, _mergeProps({
|
|
80
80
|
"ref": overlay,
|
|
81
81
|
"class": ['v-menu']
|
|
@@ -100,7 +100,8 @@ export const VMenu = genericComponent()({
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
return forwardRefs({
|
|
103
|
-
id
|
|
103
|
+
id,
|
|
104
|
+
ΨopenChildren: openChildren
|
|
104
105
|
}, overlay);
|
|
105
106
|
}
|
|
106
107
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VMenu.mjs","names":["VDialogTransition","VDefaultsProvider","VOverlay","forwardRefs","useProxiedModel","useScopeId","computed","inject","mergeProps","provide","ref","watch","genericComponent","getUid","omit","useRender","
|
|
1
|
+
{"version":3,"file":"VMenu.mjs","names":["VDialogTransition","VDefaultsProvider","VOverlay","forwardRefs","useProxiedModel","useScopeId","computed","inject","mergeProps","provide","ref","watch","genericComponent","getUid","omit","useRender","makeVOverlayProps","VMenuSymbol","VMenu","name","props","id","String","closeDelay","closeOnContentClick","locationStrategy","openDelay","scrim","scrollStrategy","transition","component","emits","value","setup","slots","isActive","scopeId","uid","overlay","parent","openChildren","register","unregister","closeParents","setTimeout","val","onClickOutside","activatorProps","overlayProps","filterProps","activator","default","args","ΨopenChildren"],"sources":["../../../src/components/VMenu/VMenu.tsx"],"sourcesContent":["// Styles\nimport './VMenu.sass'\n\n// Components\nimport { VDialogTransition } from '@/components/transitions'\nimport { VDefaultsProvider } from '@/components/VDefaultsProvider'\nimport { VOverlay } from '@/components/VOverlay'\n\n// Composables\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useScopeId } from '@/composables/scopeId'\n\n// Utilities\nimport { computed, inject, mergeProps, provide, ref, watch } from 'vue'\nimport { genericComponent, getUid, omit, useRender } from '@/util'\nimport { makeVOverlayProps } from '@/components/VOverlay/VOverlay'\nimport { VMenuSymbol } from './shared'\n\n// Types\nimport type { OverlaySlots } from '@/components/VOverlay/VOverlay'\n\nexport const VMenu = genericComponent<OverlaySlots>()({\n name: 'VMenu',\n\n props: {\n // TODO\n // disableKeys: Boolean,\n id: String,\n\n ...omit(makeVOverlayProps({\n closeDelay: 250,\n closeOnContentClick: true,\n locationStrategy: 'connected' as const,\n openDelay: 300,\n scrim: false,\n scrollStrategy: 'reposition' as const,\n transition: { component: VDialogTransition },\n }), ['absolute']),\n },\n\n emits: {\n 'update:modelValue': (value: boolean) => true,\n },\n\n setup (props, { slots }) {\n const isActive = useProxiedModel(props, 'modelValue')\n const { scopeId } = useScopeId()\n\n const uid = getUid()\n const id = computed(() => props.id || `v-menu-${uid}`)\n\n const overlay = ref<VOverlay>()\n\n const parent = inject(VMenuSymbol, null)\n const openChildren = ref(0)\n provide(VMenuSymbol, {\n register () {\n ++openChildren.value\n },\n unregister () {\n --openChildren.value\n },\n closeParents () {\n setTimeout(() => {\n if (!openChildren.value) {\n isActive.value = false\n parent?.closeParents()\n }\n }, 40)\n },\n })\n\n watch(isActive, val => {\n val ? parent?.register() : parent?.unregister()\n })\n\n function onClickOutside () {\n parent?.closeParents()\n }\n\n const activatorProps = computed(() =>\n mergeProps({\n 'aria-haspopup': 'menu',\n 'aria-expanded': String(isActive.value),\n 'aria-owns': id.value,\n }, props.activatorProps)\n )\n\n useRender(() => {\n const [overlayProps] = VOverlay.filterProps(props)\n\n return (\n <VOverlay\n ref={ overlay }\n class={[\n 'v-menu',\n ]}\n { ...overlayProps }\n v-model={ isActive.value }\n absolute\n activatorProps={ activatorProps.value }\n onClick:outside={ onClickOutside }\n { ...scopeId }\n >\n {{\n activator: slots.activator,\n default: (...args) => (\n <VDefaultsProvider root>\n { slots.default?.(...args) }\n </VDefaultsProvider>\n ),\n }}\n </VOverlay>\n )\n })\n\n return forwardRefs({ id, ΨopenChildren: openChildren }, overlay)\n },\n})\n\nexport type VMenu = InstanceType<typeof VMenu>\n"],"mappings":"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"}
|