vuetify 3.7.11 → 3.7.13
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 +2699 -2703
- package/dist/json/importMap-labs.json +28 -28
- package/dist/json/importMap.json +166 -166
- package/dist/json/tags.json +3 -4
- package/dist/json/web-types.json +5312 -5321
- package/dist/vuetify-labs.css +3272 -3266
- package/dist/vuetify-labs.d.ts +296 -326
- package/dist/vuetify-labs.esm.js +301 -159
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +300 -158
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +2292 -2294
- package/dist/vuetify.d.ts +258 -297
- package/dist/vuetify.esm.js +177 -99
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +176 -98
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +266 -252
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.d.mts +1 -1
- package/lib/blueprints/md1.d.mts +1 -1
- package/lib/blueprints/md2.d.mts +1 -1
- package/lib/blueprints/md3.d.mts +1 -1
- package/lib/components/VAlert/VAlert.mjs +1 -1
- package/lib/components/VAlert/index.d.mts +1 -1
- package/lib/components/VAppBar/VAppBar.mjs +1 -1
- package/lib/components/VAppBar/VAppBarNavIcon.mjs +1 -1
- package/lib/components/VAppBar/VAppBarTitle.mjs +1 -1
- package/lib/components/VAppBar/index.d.mts +5 -5
- package/lib/components/VAutocomplete/VAutocomplete.mjs +3 -3
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +29 -51
- package/lib/components/VAvatar/index.d.mts +1 -1
- package/lib/components/VBadge/VBadge.mjs +1 -1
- package/lib/components/VBadge/index.d.mts +1 -1
- package/lib/components/VBanner/VBanner.mjs +1 -1
- package/lib/components/VBanner/index.d.mts +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.css +1 -0
- package/lib/components/VBottomNavigation/VBottomNavigation.sass +1 -0
- package/lib/components/VBottomNavigation/index.d.mts +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +1 -1
- package/lib/components/VBreadcrumbs/index.d.mts +5 -5
- package/lib/components/VBtn/VBtn.mjs +1 -1
- package/lib/components/VBtn/index.d.mts +5 -5
- package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -1
- package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -1
- package/lib/components/VBtnToggle/index.d.mts +1 -1
- package/lib/components/VCard/VCard.mjs +1 -1
- package/lib/components/VCard/VCardItem.mjs +1 -1
- package/lib/components/VCard/VCardSubtitle.mjs +1 -1
- package/lib/components/VCard/VCardText.mjs +1 -1
- package/lib/components/VCard/index.d.mts +5 -5
- package/lib/components/VCarousel/VCarousel.mjs +1 -1
- package/lib/components/VCarousel/VCarouselItem.mjs +1 -1
- package/lib/components/VCarousel/index.d.mts +1 -1
- package/lib/components/VCheckbox/VCheckbox.mjs +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -1
- package/lib/components/VCheckbox/index.d.mts +1 -1
- package/lib/components/VChip/VChip.mjs +1 -1
- package/lib/components/VChip/index.d.mts +5 -5
- package/lib/components/VChipGroup/VChipGroup.mjs +1 -1
- package/lib/components/VChipGroup/index.d.mts +1 -1
- package/lib/components/VColorPicker/VColorPicker.mjs +1 -1
- package/lib/components/VColorPicker/index.d.mts +10 -10
- package/lib/components/VCombobox/VCombobox.mjs +4 -4
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +29 -51
- package/lib/components/VConfirmEdit/VConfirmEdit.mjs +1 -1
- package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs +5 -5
- package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs.map +1 -1
- package/lib/components/VConfirmEdit/index.d.mts +1 -1
- package/lib/components/VCounter/VCounter.mjs +1 -1
- package/lib/components/VDataIterator/index.d.mts +1 -1
- package/lib/components/VDataTable/VDataTable.mjs +1 -1
- package/lib/components/VDataTable/VDataTableFooter.mjs +1 -1
- package/lib/components/VDataTable/VDataTableGroupHeaderRow.mjs +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.mjs +1 -1
- package/lib/components/VDataTable/VDataTableRow.mjs +1 -1
- package/lib/components/VDataTable/VDataTableRows.mjs +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs +1 -1
- package/lib/components/VDataTable/composables/sort.mjs +12 -8
- package/lib/components/VDataTable/composables/sort.mjs.map +1 -1
- package/lib/components/VDataTable/index.d.mts +1 -1
- package/lib/components/VDatePicker/VDatePicker.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerControls.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerControls.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.mjs +3 -3
- package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonths.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.mjs +1 -1
- package/lib/components/VDatePicker/index.d.mts +38 -38
- package/lib/components/VDialog/VDialog.mjs +1 -1
- package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +1 -1
- package/lib/components/VDialog/index.d.mts +3 -3
- package/lib/components/VEmptyState/VEmptyState.mjs +1 -1
- package/lib/components/VEmptyState/index.d.mts +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +1 -1
- package/lib/components/VExpansionPanel/index.d.mts +1 -1
- package/lib/components/VFab/VFab.mjs +1 -1
- package/lib/components/VFab/index.d.mts +5 -5
- package/lib/components/VField/VField.mjs +1 -1
- package/lib/components/VField/VFieldLabel.mjs +1 -1
- package/lib/components/VField/index.d.mts +1 -1
- package/lib/components/VFileInput/VFileInput.mjs +2 -3
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.mts +4 -4
- package/lib/components/VFooter/VFooter.mjs +1 -1
- package/lib/components/VGrid/VContainer.mjs +1 -1
- package/lib/components/VIcon/index.d.mts +1 -1
- package/lib/components/VImg/VImg.mjs +1 -1
- package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs +1 -1
- package/lib/components/VInput/VInput.mjs +3 -3
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/index.d.mts +1 -1
- package/lib/components/VItemGroup/index.d.mts +1 -1
- package/lib/components/VLazy/VLazy.mjs +1 -1
- package/lib/components/VList/VList.mjs +3 -6
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VListChildren.mjs +1 -1
- package/lib/components/VList/VListGroup.mjs +1 -1
- package/lib/components/VList/VListItem.mjs +3 -2
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListItemAction.mjs +1 -1
- package/lib/components/VList/VListItemMedia.mjs +1 -1
- package/lib/components/VList/VListItemSubtitle.mjs +1 -1
- package/lib/components/VList/index.d.mts +24 -21
- package/lib/components/VMenu/VMenu.mjs +1 -1
- package/lib/components/VMenu/index.d.mts +3 -3
- package/lib/components/VNavigationDrawer/VNavigationDrawer.css +0 -4
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +3 -6
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +0 -5
- package/lib/components/VOtpInput/VOtpInput.mjs +3 -3
- package/lib/components/VOtpInput/VOtpInput.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.css +2 -1
- package/lib/components/VOverlay/VOverlay.mjs +1 -1
- package/lib/components/VOverlay/VOverlay.sass +2 -1
- package/lib/components/VOverlay/_variables.scss +1 -1
- package/lib/components/VPagination/VPagination.mjs +1 -1
- package/lib/components/VPagination/index.d.mts +1 -1
- package/lib/components/VParallax/VParallax.mjs +1 -1
- package/lib/components/VRadio/VRadio.mjs +1 -1
- package/lib/components/VRadio/index.d.mts +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.mjs +1 -1
- package/lib/components/VRadioGroup/index.d.mts +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.mjs +1 -1
- package/lib/components/VRating/VRating.mjs +1 -1
- package/lib/components/VRating/index.d.mts +1 -1
- package/lib/components/VSelect/VSelect.mjs +5 -5
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +29 -51
- package/lib/components/VSelectionControl/VSelectionControl.mjs +1 -1
- package/lib/components/VSelectionControl/index.d.mts +1 -1
- package/lib/components/VSelectionControlGroup/index.d.mts +1 -1
- package/lib/components/VSheet/VSheet.mjs +1 -1
- package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +1 -1
- package/lib/components/VSlideGroup/index.d.mts +1 -1
- package/lib/components/VSlider/VSlider.mjs +1 -1
- package/lib/components/VSlider/VSliderThumb.mjs +1 -1
- package/lib/components/VSlider/slider.mjs +25 -12
- package/lib/components/VSlider/slider.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.mjs +1 -1
- package/lib/components/VSnackbar/index.d.mts +3 -3
- package/lib/components/VSparkline/VBarline.mjs +1 -2
- package/lib/components/VSparkline/VBarline.mjs.map +1 -1
- package/lib/components/VSparkline/VSparkline.mjs +1 -1
- package/lib/components/VSparkline/VTrendline.mjs +1 -2
- package/lib/components/VSparkline/VTrendline.mjs.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
- package/lib/components/VStepper/VStepper.mjs +3 -3
- package/lib/components/VStepper/VStepper.mjs.map +1 -1
- package/lib/components/VStepper/VStepperItem.mjs +1 -1
- package/lib/components/VStepper/VStepperWindow.mjs +1 -1
- package/lib/components/VStepper/VStepperWindowItem.mjs +1 -1
- package/lib/components/VStepper/index.d.mts +1 -1
- package/lib/components/VSwitch/VSwitch.mjs +1 -1
- package/lib/components/VSwitch/index.d.mts +1 -1
- package/lib/components/VSystemBar/VSystemBar.mjs +1 -1
- package/lib/components/VTabs/VTab.mjs +1 -1
- package/lib/components/VTabs/VTabs.mjs +1 -1
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/VTabsWindow.mjs +1 -1
- package/lib/components/VTabs/VTabsWindowItem.mjs +1 -1
- package/lib/components/VTabs/index.d.mts +21 -21
- package/lib/components/VTextField/VTextField.mjs +1 -1
- package/lib/components/VTextField/index.d.mts +7 -7
- package/lib/components/VTextarea/VTextarea.mjs +1 -1
- package/lib/components/VTextarea/index.d.mts +4 -4
- package/lib/components/VTimeline/VTimeline.mjs +3 -3
- package/lib/components/VTimeline/VTimeline.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineDivider.mjs +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs +1 -1
- package/lib/components/VTimeline/index.d.mts +1 -1
- package/lib/components/VToolbar/VToolbar.mjs +1 -1
- package/lib/components/VTooltip/VTooltip.mjs +1 -1
- package/lib/components/VTooltip/index.d.mts +3 -3
- package/lib/components/VValidation/index.d.mts +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.mjs +1 -1
- package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +1 -1
- package/lib/components/VVirtualScroll/index.d.mts +1 -1
- package/lib/components/VWindow/VWindow.mjs +1 -1
- package/lib/components/VWindow/VWindowItem.mjs +1 -1
- package/lib/components/VWindow/index.d.mts +1 -1
- package/lib/components/index.d.mts +198 -237
- package/lib/components/transitions/dialog-transition.mjs +1 -2
- package/lib/components/transitions/dialog-transition.mjs.map +1 -1
- package/lib/composables/calendar.mjs +4 -1
- package/lib/composables/calendar.mjs.map +1 -1
- package/lib/composables/icons.mjs +1 -1
- package/lib/composables/list-items.mjs +69 -17
- package/lib/composables/list-items.mjs.map +1 -1
- package/lib/composables/nested/nested.mjs +16 -1
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/nested/selectStrategies.mjs +6 -7
- package/lib/composables/nested/selectStrategies.mjs.map +1 -1
- package/lib/composables/variant.mjs +1 -1
- package/lib/directives/ripple/index.mjs +7 -5
- package/lib/directives/ripple/index.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/iconsets/fa-svg.d.mts +1 -1
- package/lib/iconsets/fa.d.mts +1 -1
- package/lib/iconsets/fa4.d.mts +1 -1
- package/lib/iconsets/md.d.mts +1 -1
- package/lib/iconsets/mdi-svg.d.mts +1 -1
- package/lib/iconsets/mdi.d.mts +1 -1
- package/lib/index.d.mts +61 -61
- package/lib/labs/VCalendar/VCalendar.mjs +1 -1
- package/lib/labs/VCalendar/VCalendarDay.mjs +1 -1
- package/lib/labs/VCalendar/index.d.mts +8 -2
- package/lib/labs/VDateInput/VDateInput.mjs +21 -10
- package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
- package/lib/labs/VDateInput/index.d.mts +19 -19
- package/lib/labs/VFileUpload/VFileUpload.mjs +3 -3
- package/lib/labs/VFileUpload/VFileUpload.mjs.map +1 -1
- package/lib/labs/VFileUpload/VFileUploadItem.mjs +1 -1
- package/lib/labs/VFileUpload/index.d.mts +5 -5
- package/lib/labs/VNumberInput/VNumberInput.css +10 -2
- package/lib/labs/VNumberInput/VNumberInput.mjs +94 -36
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/lib/labs/VNumberInput/VNumberInput.sass +12 -2
- package/lib/labs/VNumberInput/index.d.mts +59 -32
- package/lib/labs/VPicker/VPicker.mjs +1 -1
- package/lib/labs/VSnackbarQueue/VSnackbarQueue.mjs +1 -1
- package/lib/labs/VSnackbarQueue/index.d.mts +3 -3
- package/lib/labs/VStepperVertical/VStepperVertical.mjs +1 -1
- package/lib/labs/VStepperVertical/VStepperVerticalActions.mjs +1 -1
- package/lib/labs/VStepperVertical/VStepperVerticalItem.mjs +1 -1
- package/lib/labs/VStepperVertical/index.d.mts +1 -1
- package/lib/labs/VTimePicker/VTimePicker.mjs +1 -1
- package/lib/labs/VTimePicker/VTimePickerControls.mjs +1 -1
- package/lib/labs/VTreeview/VTreeview.mjs +2 -2
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewChildren.mjs +2 -8
- package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewGroup.mjs +1 -1
- package/lib/labs/VTreeview/VTreeviewItem.mjs +10 -12
- package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +12 -36
- package/lib/labs/components.d.mts +103 -94
- package/lib/locale/adapters/vue-i18n.mjs +0 -1
- package/lib/locale/adapters/vue-i18n.mjs.map +1 -1
- package/lib/util/helpers.mjs +6 -9
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +17 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["isObject","keyCodes","stopSymbol","Symbol","DELAY_RIPPLE","transform","el","value","style","webkitTransform","isTouchEvent","e","constructor","name","isKeyboardEvent","calculate","arguments","length","undefined","localX","localY","offset","getBoundingClientRect","target","touches","clientX","left","clientY","top","radius","scale","_ripple","circle","clientWidth","center","Math","sqrt","clientHeight","centerX","centerY","x","y","ripples","show","enabled","container","document","createElement","animation","appendChild","className","class","size","width","height","computed","window","getComputedStyle","position","dataset","previousPosition","classList","add","activated","String","performance","now","setTimeout","remove","hide","getElementsByClassName","isHiding","diff","Number","delay","max","parentNode","removeChild","isRippleEnabled","rippleShow","element","currentTarget","touched","isTouch","centered","showTimerCommit","showTimer","rippleStop","rippleHide","clearTimeout","type","rippleCancelShow","keyboardRipple","keyboardRippleShow","keyCode","enter","space","keyboardRippleHide","focusRippleHide","updateRipple","binding","wasEnabled","modifiers","stop","addEventListener","passive","removeListeners","removeEventListener","mounted","unmounted","updated","oldValue","Ripple"],"sources":["../../../src/directives/ripple/index.ts"],"sourcesContent":["// Styles\nimport './VRipple.sass'\n\n// Utilities\nimport { isObject, keyCodes } from '@/util'\n\n// Types\nimport type { DirectiveBinding } from 'vue'\n\nconst stopSymbol = Symbol('rippleStop')\n\ntype VuetifyRippleEvent = (MouseEvent | TouchEvent | KeyboardEvent) & { [stopSymbol]?: boolean }\n\nconst DELAY_RIPPLE = 80\n\nfunction transform (el: HTMLElement, value: string) {\n el.style.transform = value\n el.style.webkitTransform = value\n}\n\ninterface RippleOptions {\n class?: string\n center?: boolean\n circle?: boolean\n}\n\nexport interface RippleDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {\n value?: boolean | { class: string }\n modifiers: {\n center?: boolean\n circle?: boolean\n stop?: boolean\n }\n}\n\nfunction isTouchEvent (e: VuetifyRippleEvent): e is TouchEvent {\n return e.constructor.name === 'TouchEvent'\n}\n\nfunction isKeyboardEvent (e: VuetifyRippleEvent): e is KeyboardEvent {\n return e.constructor.name === 'KeyboardEvent'\n}\n\nconst calculate = (\n e: VuetifyRippleEvent,\n el: HTMLElement,\n value: RippleOptions = {}\n) => {\n let localX = 0\n let localY = 0\n\n if (!isKeyboardEvent(e)) {\n const offset = el.getBoundingClientRect()\n const target = isTouchEvent(e) ? e.touches[e.touches.length - 1] : e\n\n localX = target.clientX - offset.left\n localY = target.clientY - offset.top\n }\n\n let radius = 0\n let scale = 0.3\n if (el._ripple?.circle) {\n scale = 0.15\n radius = el.clientWidth / 2\n radius = value.center ? radius : radius + Math.sqrt((localX - radius) ** 2 + (localY - radius) ** 2) / 4\n } else {\n radius = Math.sqrt(el.clientWidth ** 2 + el.clientHeight ** 2) / 2\n }\n\n const centerX = `${(el.clientWidth - (radius * 2)) / 2}px`\n const centerY = `${(el.clientHeight - (radius * 2)) / 2}px`\n\n const x = value.center ? centerX : `${localX - radius}px`\n const y = value.center ? centerY : `${localY - radius}px`\n\n return { radius, scale, x, y, centerX, centerY }\n}\n\nconst ripples = {\n /* eslint-disable max-statements */\n show (\n e: VuetifyRippleEvent,\n el: HTMLElement,\n value: RippleOptions = {}\n ) {\n if (!el?._ripple?.enabled) {\n return\n }\n\n const container = document.createElement('span')\n const animation = document.createElement('span')\n\n container.appendChild(animation)\n container.className = 'v-ripple__container'\n\n if (value.class) {\n container.className += ` ${value.class}`\n }\n\n const { radius, scale, x, y, centerX, centerY } = calculate(e, el, value)\n\n const size = `${radius * 2}px`\n animation.className = 'v-ripple__animation'\n animation.style.width = size\n animation.style.height = size\n\n el.appendChild(container)\n\n const computed = window.getComputedStyle(el)\n if (computed && computed.position === 'static') {\n el.style.position = 'relative'\n el.dataset.previousPosition = 'static'\n }\n\n animation.classList.add('v-ripple__animation--enter')\n animation.classList.add('v-ripple__animation--visible')\n transform(animation, `translate(${x}, ${y}) scale3d(${scale},${scale},${scale})`)\n animation.dataset.activated = String(performance.now())\n\n setTimeout(() => {\n animation.classList.remove('v-ripple__animation--enter')\n animation.classList.add('v-ripple__animation--in')\n transform(animation, `translate(${centerX}, ${centerY}) scale3d(1,1,1)`)\n }, 0)\n },\n\n hide (el: HTMLElement | null) {\n if (!el?._ripple?.enabled) return\n\n const ripples = el.getElementsByClassName('v-ripple__animation')\n\n if (ripples.length === 0) return\n const animation = ripples[ripples.length - 1]\n\n if (animation.dataset.isHiding) return\n else animation.dataset.isHiding = 'true'\n\n const diff = performance.now() - Number(animation.dataset.activated)\n const delay = Math.max(250 - diff, 0)\n\n setTimeout(() => {\n animation.classList.remove('v-ripple__animation--in')\n animation.classList.add('v-ripple__animation--out')\n\n setTimeout(() => {\n const ripples = el.getElementsByClassName('v-ripple__animation')\n if (ripples.length === 1 && el.dataset.previousPosition) {\n el.style.position = el.dataset.previousPosition\n delete el.dataset.previousPosition\n }\n\n if (animation.parentNode?.parentNode === el) el.removeChild(animation.parentNode)\n }, 300)\n }, delay)\n },\n}\n\nfunction isRippleEnabled (value: any): value is true {\n return typeof value === 'undefined' || !!value\n}\n\nfunction rippleShow (e: VuetifyRippleEvent) {\n const value: RippleOptions = {}\n const element = e.currentTarget as HTMLElement | undefined\n\n if (!element?._ripple || element._ripple.touched || e[stopSymbol]) return\n\n // Don't allow the event to trigger ripples on any other elements\n e[stopSymbol] = true\n\n if (isTouchEvent(e)) {\n element._ripple.touched = true\n element._ripple.isTouch = true\n } else {\n // It's possible for touch events to fire\n // as mouse events on Android/iOS, this\n // will skip the event call if it has\n // already been registered as touch\n if (element._ripple.isTouch) return\n }\n\n value.center = element._ripple.centered || isKeyboardEvent(e)\n if (element._ripple.class) {\n value.class = element._ripple.class\n }\n\n if (isTouchEvent(e)) {\n // already queued that shows or hides the ripple\n if (element._ripple.showTimerCommit) return\n\n element._ripple.showTimerCommit = () => {\n ripples.show(e, element, value)\n }\n element._ripple.showTimer = window.setTimeout(() => {\n if (element?._ripple?.showTimerCommit) {\n element._ripple.showTimerCommit()\n element._ripple.showTimerCommit = null\n }\n }, DELAY_RIPPLE)\n } else {\n ripples.show(e, element, value)\n }\n}\n\nfunction rippleStop (e: VuetifyRippleEvent) {\n e[stopSymbol] = true\n}\n\nfunction rippleHide (e: Event) {\n const element = e.currentTarget as HTMLElement | null\n if (!element?._ripple) return\n\n window.clearTimeout(element._ripple.showTimer)\n\n // The touch interaction occurs before the show timer is triggered.\n // We still want to show ripple effect.\n if (e.type === 'touchend' && element._ripple.showTimerCommit) {\n element._ripple.showTimerCommit()\n element._ripple.showTimerCommit = null\n\n // re-queue ripple hiding\n element._ripple.showTimer = window.setTimeout(() => {\n rippleHide(e)\n })\n return\n }\n\n window.setTimeout(() => {\n if (element._ripple) {\n element._ripple.touched = false\n }\n })\n ripples.hide(element)\n}\n\nfunction rippleCancelShow (e: MouseEvent | TouchEvent) {\n const element = e.currentTarget as HTMLElement | undefined\n\n if (!element?._ripple) return\n\n if (element._ripple.showTimerCommit) {\n element._ripple.showTimerCommit = null\n }\n\n window.clearTimeout(element._ripple.showTimer)\n}\n\nlet keyboardRipple = false\n\nfunction keyboardRippleShow (e: KeyboardEvent) {\n if (!keyboardRipple && (e.keyCode === keyCodes.enter || e.keyCode === keyCodes.space)) {\n keyboardRipple = true\n rippleShow(e)\n }\n}\n\nfunction keyboardRippleHide (e: KeyboardEvent) {\n keyboardRipple = false\n rippleHide(e)\n}\n\nfunction focusRippleHide (e: FocusEvent) {\n if (keyboardRipple) {\n keyboardRipple = false\n rippleHide(e)\n }\n}\n\nfunction updateRipple (el: HTMLElement, binding: RippleDirectiveBinding, wasEnabled: boolean) {\n const { value, modifiers } = binding\n const enabled = isRippleEnabled(value)\n if (!enabled) {\n ripples.hide(el)\n }\n\n el._ripple = el._ripple ?? {}\n el._ripple.enabled = enabled\n el._ripple.centered = modifiers.center\n el._ripple.circle = modifiers.circle\n if (isObject(value) && value.class) {\n el._ripple.class = value.class\n }\n\n if (enabled && !wasEnabled) {\n if (modifiers.stop) {\n el.addEventListener('touchstart', rippleStop, { passive: true })\n el.addEventListener('mousedown', rippleStop)\n return\n }\n\n el.addEventListener('touchstart', rippleShow, { passive: true })\n el.addEventListener('touchend', rippleHide, { passive: true })\n el.addEventListener('touchmove', rippleCancelShow, { passive: true })\n el.addEventListener('touchcancel', rippleHide)\n\n el.addEventListener('mousedown', rippleShow)\n el.addEventListener('mouseup', rippleHide)\n el.addEventListener('mouseleave', rippleHide)\n\n el.addEventListener('keydown', keyboardRippleShow)\n el.addEventListener('keyup', keyboardRippleHide)\n\n el.addEventListener('blur', focusRippleHide)\n\n // Anchor tags can be dragged, causes other hides to fail - #1537\n el.addEventListener('dragstart', rippleHide, { passive: true })\n } else if (!enabled && wasEnabled) {\n removeListeners(el)\n }\n}\n\nfunction removeListeners (el: HTMLElement) {\n el.removeEventListener('mousedown', rippleShow)\n el.removeEventListener('touchstart', rippleShow)\n el.removeEventListener('touchend', rippleHide)\n el.removeEventListener('touchmove', rippleCancelShow)\n el.removeEventListener('touchcancel', rippleHide)\n el.removeEventListener('mouseup', rippleHide)\n el.removeEventListener('mouseleave', rippleHide)\n el.removeEventListener('keydown', keyboardRippleShow)\n el.removeEventListener('keyup', keyboardRippleHide)\n el.removeEventListener('dragstart', rippleHide)\n el.removeEventListener('blur', focusRippleHide)\n}\n\nfunction mounted (el: HTMLElement, binding: RippleDirectiveBinding) {\n updateRipple(el, binding, false)\n}\n\nfunction unmounted (el: HTMLElement) {\n delete el._ripple\n removeListeners(el)\n}\n\nfunction updated (el: HTMLElement, binding: RippleDirectiveBinding) {\n if (binding.value === binding.oldValue) {\n return\n }\n\n const wasEnabled = isRippleEnabled(binding.oldValue)\n updateRipple(el, binding, wasEnabled)\n}\n\nexport const Ripple = {\n mounted,\n unmounted,\n updated,\n}\n\nexport default Ripple\n"],"mappings":"AAAA;AACA;;AAEA;AAAA,SACSA,QAAQ,EAAEC,QAAQ,gCAE3B;AAGA,MAAMC,UAAU,GAAGC,MAAM,CAAC,YAAY,CAAC;AAIvC,MAAMC,YAAY,GAAG,EAAE;AAEvB,SAASC,SAASA,CAAEC,EAAe,EAAEC,KAAa,EAAE;EAClDD,EAAE,CAACE,KAAK,CAACH,SAAS,GAAGE,KAAK;EAC1BD,EAAE,CAACE,KAAK,CAACC,eAAe,GAAGF,KAAK;AAClC;AAiBA,SAASG,YAAYA,CAAEC,CAAqB,EAAmB;EAC7D,OAAOA,CAAC,CAACC,WAAW,CAACC,IAAI,KAAK,YAAY;AAC5C;AAEA,SAASC,eAAeA,CAAEH,CAAqB,EAAsB;EACnE,OAAOA,CAAC,CAACC,WAAW,CAACC,IAAI,KAAK,eAAe;AAC/C;AAEA,MAAME,SAAS,GAAG,SAAAA,CAChBJ,CAAqB,EACrBL,EAAe,EAEZ;EAAA,IADHC,KAAoB,GAAAS,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAEzB,IAAIG,MAAM,GAAG,CAAC;EACd,IAAIC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List":[]}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["isObject","keyCodes","stopSymbol","Symbol","DELAY_RIPPLE","transform","el","value","style","webkitTransform","isTouchEvent","e","constructor","name","isKeyboardEvent","calculate","arguments","length","undefined","localX","localY","offset","getBoundingClientRect","target","touches","clientX","left","clientY","top","radius","scale","_ripple","circle","clientWidth","center","Math","sqrt","clientHeight","centerX","centerY","x","y","ripples","show","enabled","container","document","createElement","animation","appendChild","className","class","size","width","height","computed","window","getComputedStyle","position","dataset","previousPosition","classList","add","activated","String","performance","now","requestAnimationFrame","remove","hide","getElementsByClassName","isHiding","diff","Number","delay","max","setTimeout","parentNode","removeChild","isRippleEnabled","rippleShow","element","currentTarget","touched","isTouch","centered","showTimerCommit","showTimer","rippleStop","rippleHide","clearTimeout","type","rippleCancelShow","keyboardRipple","keyboardRippleShow","keyCode","enter","space","keyboardRippleHide","focusRippleHide","updateRipple","binding","wasEnabled","modifiers","stop","addEventListener","passive","removeListeners","removeEventListener","mounted","unmounted","updated","oldValue","Ripple"],"sources":["../../../src/directives/ripple/index.ts"],"sourcesContent":["// Styles\nimport './VRipple.sass'\n\n// Utilities\nimport { isObject, keyCodes } from '@/util'\n\n// Types\nimport type { DirectiveBinding } from 'vue'\n\nconst stopSymbol = Symbol('rippleStop')\n\ntype VuetifyRippleEvent = (MouseEvent | TouchEvent | KeyboardEvent) & { [stopSymbol]?: boolean }\n\nconst DELAY_RIPPLE = 80\n\nfunction transform (el: HTMLElement, value: string) {\n el.style.transform = value\n el.style.webkitTransform = value\n}\n\ninterface RippleOptions {\n class?: string\n center?: boolean\n circle?: boolean\n}\n\nexport interface RippleDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {\n value?: boolean | { class: string }\n modifiers: {\n center?: boolean\n circle?: boolean\n stop?: boolean\n }\n}\n\nfunction isTouchEvent (e: VuetifyRippleEvent): e is TouchEvent {\n return e.constructor.name === 'TouchEvent'\n}\n\nfunction isKeyboardEvent (e: VuetifyRippleEvent): e is KeyboardEvent {\n return e.constructor.name === 'KeyboardEvent'\n}\n\nconst calculate = (\n e: VuetifyRippleEvent,\n el: HTMLElement,\n value: RippleOptions = {}\n) => {\n let localX = 0\n let localY = 0\n\n if (!isKeyboardEvent(e)) {\n const offset = el.getBoundingClientRect()\n const target = isTouchEvent(e) ? e.touches[e.touches.length - 1] : e\n\n localX = target.clientX - offset.left\n localY = target.clientY - offset.top\n }\n\n let radius = 0\n let scale = 0.3\n if (el._ripple?.circle) {\n scale = 0.15\n radius = el.clientWidth / 2\n radius = value.center ? radius : radius + Math.sqrt((localX - radius) ** 2 + (localY - radius) ** 2) / 4\n } else {\n radius = Math.sqrt(el.clientWidth ** 2 + el.clientHeight ** 2) / 2\n }\n\n const centerX = `${(el.clientWidth - (radius * 2)) / 2}px`\n const centerY = `${(el.clientHeight - (radius * 2)) / 2}px`\n\n const x = value.center ? centerX : `${localX - radius}px`\n const y = value.center ? centerY : `${localY - radius}px`\n\n return { radius, scale, x, y, centerX, centerY }\n}\n\nconst ripples = {\n /* eslint-disable max-statements */\n show (\n e: VuetifyRippleEvent,\n el: HTMLElement,\n value: RippleOptions = {}\n ) {\n if (!el?._ripple?.enabled) {\n return\n }\n\n const container = document.createElement('span')\n const animation = document.createElement('span')\n\n container.appendChild(animation)\n container.className = 'v-ripple__container'\n\n if (value.class) {\n container.className += ` ${value.class}`\n }\n\n const { radius, scale, x, y, centerX, centerY } = calculate(e, el, value)\n\n const size = `${radius * 2}px`\n animation.className = 'v-ripple__animation'\n animation.style.width = size\n animation.style.height = size\n\n el.appendChild(container)\n\n const computed = window.getComputedStyle(el)\n if (computed && computed.position === 'static') {\n el.style.position = 'relative'\n el.dataset.previousPosition = 'static'\n }\n\n animation.classList.add('v-ripple__animation--enter')\n animation.classList.add('v-ripple__animation--visible')\n transform(animation, `translate(${x}, ${y}) scale3d(${scale},${scale},${scale})`)\n animation.dataset.activated = String(performance.now())\n\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n animation.classList.remove('v-ripple__animation--enter')\n animation.classList.add('v-ripple__animation--in')\n transform(animation, `translate(${centerX}, ${centerY}) scale3d(1,1,1)`)\n })\n })\n },\n\n hide (el: HTMLElement | null) {\n if (!el?._ripple?.enabled) return\n\n const ripples = el.getElementsByClassName('v-ripple__animation')\n\n if (ripples.length === 0) return\n const animation = ripples[ripples.length - 1]\n\n if (animation.dataset.isHiding) return\n else animation.dataset.isHiding = 'true'\n\n const diff = performance.now() - Number(animation.dataset.activated)\n const delay = Math.max(250 - diff, 0)\n\n setTimeout(() => {\n animation.classList.remove('v-ripple__animation--in')\n animation.classList.add('v-ripple__animation--out')\n\n setTimeout(() => {\n const ripples = el.getElementsByClassName('v-ripple__animation')\n if (ripples.length === 1 && el.dataset.previousPosition) {\n el.style.position = el.dataset.previousPosition\n delete el.dataset.previousPosition\n }\n\n if (animation.parentNode?.parentNode === el) el.removeChild(animation.parentNode)\n }, 300)\n }, delay)\n },\n}\n\nfunction isRippleEnabled (value: any): value is true {\n return typeof value === 'undefined' || !!value\n}\n\nfunction rippleShow (e: VuetifyRippleEvent) {\n const value: RippleOptions = {}\n const element = e.currentTarget as HTMLElement | undefined\n\n if (!element?._ripple || element._ripple.touched || e[stopSymbol]) return\n\n // Don't allow the event to trigger ripples on any other elements\n e[stopSymbol] = true\n\n if (isTouchEvent(e)) {\n element._ripple.touched = true\n element._ripple.isTouch = true\n } else {\n // It's possible for touch events to fire\n // as mouse events on Android/iOS, this\n // will skip the event call if it has\n // already been registered as touch\n if (element._ripple.isTouch) return\n }\n\n value.center = element._ripple.centered || isKeyboardEvent(e)\n if (element._ripple.class) {\n value.class = element._ripple.class\n }\n\n if (isTouchEvent(e)) {\n // already queued that shows or hides the ripple\n if (element._ripple.showTimerCommit) return\n\n element._ripple.showTimerCommit = () => {\n ripples.show(e, element, value)\n }\n element._ripple.showTimer = window.setTimeout(() => {\n if (element?._ripple?.showTimerCommit) {\n element._ripple.showTimerCommit()\n element._ripple.showTimerCommit = null\n }\n }, DELAY_RIPPLE)\n } else {\n ripples.show(e, element, value)\n }\n}\n\nfunction rippleStop (e: VuetifyRippleEvent) {\n e[stopSymbol] = true\n}\n\nfunction rippleHide (e: Event) {\n const element = e.currentTarget as HTMLElement | null\n if (!element?._ripple) return\n\n window.clearTimeout(element._ripple.showTimer)\n\n // The touch interaction occurs before the show timer is triggered.\n // We still want to show ripple effect.\n if (e.type === 'touchend' && element._ripple.showTimerCommit) {\n element._ripple.showTimerCommit()\n element._ripple.showTimerCommit = null\n\n // re-queue ripple hiding\n element._ripple.showTimer = window.setTimeout(() => {\n rippleHide(e)\n })\n return\n }\n\n window.setTimeout(() => {\n if (element._ripple) {\n element._ripple.touched = false\n }\n })\n ripples.hide(element)\n}\n\nfunction rippleCancelShow (e: MouseEvent | TouchEvent) {\n const element = e.currentTarget as HTMLElement | undefined\n\n if (!element?._ripple) return\n\n if (element._ripple.showTimerCommit) {\n element._ripple.showTimerCommit = null\n }\n\n window.clearTimeout(element._ripple.showTimer)\n}\n\nlet keyboardRipple = false\n\nfunction keyboardRippleShow (e: KeyboardEvent) {\n if (!keyboardRipple && (e.keyCode === keyCodes.enter || e.keyCode === keyCodes.space)) {\n keyboardRipple = true\n rippleShow(e)\n }\n}\n\nfunction keyboardRippleHide (e: KeyboardEvent) {\n keyboardRipple = false\n rippleHide(e)\n}\n\nfunction focusRippleHide (e: FocusEvent) {\n if (keyboardRipple) {\n keyboardRipple = false\n rippleHide(e)\n }\n}\n\nfunction updateRipple (el: HTMLElement, binding: RippleDirectiveBinding, wasEnabled: boolean) {\n const { value, modifiers } = binding\n const enabled = isRippleEnabled(value)\n if (!enabled) {\n ripples.hide(el)\n }\n\n el._ripple = el._ripple ?? {}\n el._ripple.enabled = enabled\n el._ripple.centered = modifiers.center\n el._ripple.circle = modifiers.circle\n if (isObject(value) && value.class) {\n el._ripple.class = value.class\n }\n\n if (enabled && !wasEnabled) {\n if (modifiers.stop) {\n el.addEventListener('touchstart', rippleStop, { passive: true })\n el.addEventListener('mousedown', rippleStop)\n return\n }\n\n el.addEventListener('touchstart', rippleShow, { passive: true })\n el.addEventListener('touchend', rippleHide, { passive: true })\n el.addEventListener('touchmove', rippleCancelShow, { passive: true })\n el.addEventListener('touchcancel', rippleHide)\n\n el.addEventListener('mousedown', rippleShow)\n el.addEventListener('mouseup', rippleHide)\n el.addEventListener('mouseleave', rippleHide)\n\n el.addEventListener('keydown', keyboardRippleShow)\n el.addEventListener('keyup', keyboardRippleHide)\n\n el.addEventListener('blur', focusRippleHide)\n\n // Anchor tags can be dragged, causes other hides to fail - #1537\n el.addEventListener('dragstart', rippleHide, { passive: true })\n } else if (!enabled && wasEnabled) {\n removeListeners(el)\n }\n}\n\nfunction removeListeners (el: HTMLElement) {\n el.removeEventListener('mousedown', rippleShow)\n el.removeEventListener('touchstart', rippleShow)\n el.removeEventListener('touchend', rippleHide)\n el.removeEventListener('touchmove', rippleCancelShow)\n el.removeEventListener('touchcancel', rippleHide)\n el.removeEventListener('mouseup', rippleHide)\n el.removeEventListener('mouseleave', rippleHide)\n el.removeEventListener('keydown', keyboardRippleShow)\n el.removeEventListener('keyup', keyboardRippleHide)\n el.removeEventListener('dragstart', rippleHide)\n el.removeEventListener('blur', focusRippleHide)\n}\n\nfunction mounted (el: HTMLElement, binding: RippleDirectiveBinding) {\n updateRipple(el, binding, false)\n}\n\nfunction unmounted (el: HTMLElement) {\n delete el._ripple\n removeListeners(el)\n}\n\nfunction updated (el: HTMLElement, binding: RippleDirectiveBinding) {\n if (binding.value === binding.oldValue) {\n return\n }\n\n const wasEnabled = isRippleEnabled(binding.oldValue)\n updateRipple(el, binding, wasEnabled)\n}\n\nexport const Ripple = {\n mounted,\n unmounted,\n updated,\n}\n\nexport default Ripple\n"],"mappings":"AAAA;AACA;;AAEA;AAAA,SACSA,QAAQ,EAAEC,QAAQ,gCAE3B;AAGA,MAAMC,UAAU,GAAGC,MAAM,CAAC,YAAY,CAAC;AAIvC,MAAMC,YAAY,GAAG,EAAE;AAEvB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e,CAAC;AACjD;AAEA,SAASU,OAAOA,CAAEvG,EAAe,EAAE+F,OAA+B,EAAE;EAClED,YAAY,CAAC9F,EAAE,EAAE+F,OAAO,EAAE,KAAK,CAAC;AAClC;AAEA,SAASS,SAASA,CAAExG,EAAe,EAAE;EACnC,OAAOA,EAAE,CAACyB,OAAO;EACjB4E,eAAe,CAACrG,EAAE,CAAC;AACrB;AAEA,SAASyG,OAAOA,CAAEzG,EAAe,EAAE+F,OAA+B,EAAE;EAClE,IAAIA,OAAO,CAAC9F,KAAK,KAAK8F,OAAO,CAACW,QAAQ,EAAE;IACtC;EACF;EAEA,MAAMV,UAAU,GAAGvB,eAAe,CAACsB,OAAO,CAACW,QAAQ,CAAC;EACpDZ,YAAY,CAAC9F,EAAE,EAAE+F,OAAO,EAAEC,UAAU,CAAC;AACvC;AAEA,OAAO,MAAMW,MAAM,GAAG;EACpBJ,OAAO;EACPC,SAAS;EACTC;AACF,CAAC;AAED,eAAeE,MAAM","ignoreList":[]}
|
package/lib/entry-bundler.mjs
CHANGED
|
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
|
16
16
|
...options
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
export const version = "3.7.
|
|
19
|
+
export const version = "3.7.13";
|
|
20
20
|
createVuetify.version = version;
|
|
21
21
|
export { blueprints, components, directives };
|
|
22
22
|
export * from "./composables/index.mjs";
|
package/lib/framework.mjs
CHANGED
package/lib/iconsets/fa.d.mts
CHANGED
package/lib/iconsets/fa4.d.mts
CHANGED
package/lib/iconsets/md.d.mts
CHANGED
package/lib/iconsets/mdi.d.mts
CHANGED
package/lib/index.d.mts
CHANGED
|
@@ -486,37 +486,41 @@ declare module 'vue' {
|
|
|
486
486
|
$children?: VNodeChild
|
|
487
487
|
}
|
|
488
488
|
export interface GlobalComponents {
|
|
489
|
-
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
490
|
-
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
491
|
-
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
492
489
|
VApp: typeof import('vuetify/components')['VApp']
|
|
493
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
494
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
495
|
-
VAlert: typeof import('vuetify/components')['VAlert']
|
|
496
|
-
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
497
490
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
491
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
498
492
|
VBanner: typeof import('vuetify/components')['VBanner']
|
|
499
493
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
|
500
494
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
|
501
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
502
495
|
VBadge: typeof import('vuetify/components')['VBadge']
|
|
503
|
-
|
|
504
|
-
|
|
496
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
497
|
+
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
498
|
+
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
499
|
+
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
500
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
501
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
502
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
505
503
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
|
506
|
-
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
|
507
|
-
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
|
508
|
-
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
|
509
|
-
VChip: typeof import('vuetify/components')['VChip']
|
|
510
504
|
VCard: typeof import('vuetify/components')['VCard']
|
|
511
505
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
|
512
506
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
|
513
507
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
|
514
508
|
VCardText: typeof import('vuetify/components')['VCardText']
|
|
515
509
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
510
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
|
511
|
+
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
|
512
|
+
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
|
513
|
+
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
|
514
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
515
|
+
VChip: typeof import('vuetify/components')['VChip']
|
|
519
516
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
|
517
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
518
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
519
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
|
520
|
+
VCode: typeof import('vuetify/components')['VCode']
|
|
521
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
522
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
|
523
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
|
520
524
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
|
521
525
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
|
522
526
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
|
@@ -524,41 +528,37 @@ declare module 'vue' {
|
|
|
524
528
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
|
525
529
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
|
526
530
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
|
527
|
-
VCode: typeof import('vuetify/components')['VCode']
|
|
528
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
529
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
|
530
531
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
|
531
532
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
|
532
533
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
|
533
534
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
|
534
535
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
|
535
536
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
|
536
|
-
VDialog: typeof import('vuetify/components')['VDialog']
|
|
537
|
-
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
538
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
539
|
-
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
540
537
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
541
538
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
542
539
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
543
540
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
544
541
|
VDivider: typeof import('vuetify/components')['VDivider']
|
|
542
|
+
VFab: typeof import('vuetify/components')['VFab']
|
|
543
|
+
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
544
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
545
545
|
VField: typeof import('vuetify/components')['VField']
|
|
546
546
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
547
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
|
548
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
549
547
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
|
550
548
|
VItem: typeof import('vuetify/components')['VItem']
|
|
551
|
-
|
|
549
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
|
552
550
|
VIcon: typeof import('vuetify/components')['VIcon']
|
|
553
551
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
|
554
552
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
|
555
553
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
|
556
554
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
|
557
|
-
|
|
558
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
|
555
|
+
VInput: typeof import('vuetify/components')['VInput']
|
|
559
556
|
VImg: typeof import('vuetify/components')['VImg']
|
|
560
|
-
|
|
557
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
|
558
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
|
561
559
|
VMessages: typeof import('vuetify/components')['VMessages']
|
|
560
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
|
561
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
|
562
562
|
VList: typeof import('vuetify/components')['VList']
|
|
563
563
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
|
564
564
|
VListImg: typeof import('vuetify/components')['VListImg']
|
|
@@ -568,72 +568,71 @@ declare module 'vue' {
|
|
|
568
568
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
|
569
569
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
|
570
570
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
|
571
|
-
VInput: typeof import('vuetify/components')['VInput']
|
|
572
|
-
VMenu: typeof import('vuetify/components')['VMenu']
|
|
573
|
-
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
|
574
571
|
VMain: typeof import('vuetify/components')['VMain']
|
|
572
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
|
575
573
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
|
576
|
-
|
|
574
|
+
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
|
577
575
|
VPagination: typeof import('vuetify/components')['VPagination']
|
|
578
576
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
|
579
|
-
|
|
577
|
+
VOverlay: typeof import('vuetify/components')['VOverlay']
|
|
578
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
|
580
579
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
|
581
|
-
VSelect: typeof import('vuetify/components')['VSelect']
|
|
582
580
|
VRating: typeof import('vuetify/components')['VRating']
|
|
583
|
-
VSheet: typeof import('vuetify/components')['VSheet']
|
|
584
581
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
|
582
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
583
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
|
585
584
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
|
586
585
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
|
587
|
-
|
|
588
|
-
|
|
586
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
|
587
|
+
VSelect: typeof import('vuetify/components')['VSelect']
|
|
589
588
|
VStepper: typeof import('vuetify/components')['VStepper']
|
|
590
589
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
|
591
590
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
|
592
591
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
|
593
592
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
|
594
593
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
|
595
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
596
|
-
VSlider: typeof import('vuetify/components')['VSlider']
|
|
597
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
598
594
|
VTab: typeof import('vuetify/components')['VTab']
|
|
599
595
|
VTabs: typeof import('vuetify/components')['VTabs']
|
|
600
596
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
|
601
597
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
|
598
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
599
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
600
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
602
601
|
VTextField: typeof import('vuetify/components')['VTextField']
|
|
603
602
|
VTable: typeof import('vuetify/components')['VTable']
|
|
604
603
|
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
605
|
-
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
606
|
-
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
607
604
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
608
605
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
606
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
609
607
|
VWindow: typeof import('vuetify/components')['VWindow']
|
|
610
608
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
|
611
609
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
|
612
610
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
|
613
611
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
612
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
|
613
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
614
614
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
|
615
|
-
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
|
616
615
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
|
617
|
-
|
|
618
|
-
VHover: typeof import('vuetify/components')['VHover']
|
|
616
|
+
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
|
619
617
|
VContainer: typeof import('vuetify/components')['VContainer']
|
|
620
618
|
VCol: typeof import('vuetify/components')['VCol']
|
|
621
619
|
VRow: typeof import('vuetify/components')['VRow']
|
|
622
620
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
|
621
|
+
VForm: typeof import('vuetify/components')['VForm']
|
|
622
|
+
VHover: typeof import('vuetify/components')['VHover']
|
|
623
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
|
623
624
|
VLayout: typeof import('vuetify/components')['VLayout']
|
|
624
625
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
|
625
626
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
|
626
627
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
|
627
|
-
VLazy: typeof import('vuetify/components')['VLazy']
|
|
628
628
|
VParallax: typeof import('vuetify/components')['VParallax']
|
|
629
629
|
VRadio: typeof import('vuetify/components')['VRadio']
|
|
630
|
-
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
|
631
630
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
|
632
|
-
|
|
631
|
+
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
|
633
632
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
|
634
|
-
|
|
633
|
+
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
|
635
634
|
VValidation: typeof import('vuetify/components')['VValidation']
|
|
636
|
-
|
|
635
|
+
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
|
637
636
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
|
638
637
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
|
639
638
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
|
@@ -650,28 +649,29 @@ declare module 'vue' {
|
|
|
650
649
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
|
651
650
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
|
652
651
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
|
652
|
+
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
|
653
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
|
653
654
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
|
654
655
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
|
655
656
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
|
656
657
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
|
657
658
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
|
658
659
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
|
659
|
-
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
|
660
|
-
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
|
661
|
-
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
|
662
|
-
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
|
663
660
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
|
664
661
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
|
665
662
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
|
669
|
-
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
|
663
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
|
664
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
|
670
665
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
|
671
666
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
|
672
667
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
|
668
|
+
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
|
669
|
+
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
|
670
|
+
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
|
671
|
+
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
|
672
|
+
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
|
673
673
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
|
674
|
-
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
|
675
674
|
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
|
675
|
+
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
|
676
676
|
}
|
|
677
677
|
}
|
|
@@ -590,7 +590,10 @@ declare const VCalendar: {
|
|
|
590
590
|
default: number;
|
|
591
591
|
};
|
|
592
592
|
allowedDates: vue.PropType<unknown[] | ((date: unknown) => boolean)>;
|
|
593
|
-
disabled:
|
|
593
|
+
disabled: {
|
|
594
|
+
type: BooleanConstructor;
|
|
595
|
+
default: null;
|
|
596
|
+
};
|
|
594
597
|
displayValue: vue.PropType<unknown>;
|
|
595
598
|
modelValue: vue.PropType<unknown[]>;
|
|
596
599
|
month: (StringConstructor | NumberConstructor)[];
|
|
@@ -689,7 +692,10 @@ declare const VCalendar: {
|
|
|
689
692
|
default: number;
|
|
690
693
|
};
|
|
691
694
|
allowedDates: vue.PropType<unknown[] | ((date: unknown) => boolean)>;
|
|
692
|
-
disabled:
|
|
695
|
+
disabled: {
|
|
696
|
+
type: BooleanConstructor;
|
|
697
|
+
default: null;
|
|
698
|
+
};
|
|
693
699
|
displayValue: vue.PropType<unknown>;
|
|
694
700
|
modelValue: vue.PropType<unknown[]>;
|
|
695
701
|
month: (StringConstructor | NumberConstructor)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
2
2
|
// Components
|
|
3
3
|
import { makeVConfirmEditProps, VConfirmEdit } from "../../components/VConfirmEdit/VConfirmEdit.mjs";
|
|
4
4
|
import { makeVDatePickerProps, VDatePicker } from "../../components/VDatePicker/VDatePicker.mjs";
|
|
@@ -6,9 +6,10 @@ import { VMenu } from "../../components/VMenu/VMenu.mjs";
|
|
|
6
6
|
import { makeVTextFieldProps, VTextField } from "../../components/VTextField/VTextField.mjs"; // Composables
|
|
7
7
|
import { useDate } from "../../composables/date/index.mjs";
|
|
8
8
|
import { makeFocusProps, useFocus } from "../../composables/focus.mjs";
|
|
9
|
+
import { forwardRefs } from "../../composables/forwardRefs.mjs";
|
|
9
10
|
import { useLocale } from "../../composables/locale.mjs";
|
|
10
11
|
import { useProxiedModel } from "../../composables/proxiedModel.mjs"; // Utilities
|
|
11
|
-
import { computed, shallowRef } from 'vue';
|
|
12
|
+
import { computed, ref, shallowRef } from 'vue';
|
|
12
13
|
import { genericComponent, omit, propsFactory, useRender, wrapInArray } from "../../util/index.mjs"; // Types
|
|
13
14
|
// Types
|
|
14
15
|
export const makeVDateInputProps = propsFactory({
|
|
@@ -26,7 +27,7 @@ export const makeVDateInputProps = propsFactory({
|
|
|
26
27
|
...omit(makeVDatePickerProps({
|
|
27
28
|
weeksInMonth: 'dynamic',
|
|
28
29
|
hideHeader: true
|
|
29
|
-
}), ['active', 'location'])
|
|
30
|
+
}), ['active', 'location', 'rounded'])
|
|
30
31
|
}, 'VDateInput');
|
|
31
32
|
export const VDateInput = genericComponent()({
|
|
32
33
|
name: 'VDateInput',
|
|
@@ -47,8 +48,9 @@ export const VDateInput = genericComponent()({
|
|
|
47
48
|
focus,
|
|
48
49
|
blur
|
|
49
50
|
} = useFocus(props);
|
|
50
|
-
const model = useProxiedModel(props, 'modelValue', props.multiple ? [] : null);
|
|
51
|
+
const model = useProxiedModel(props, 'modelValue', props.multiple ? [] : null, val => Array.isArray(val) ? val.map(item => adapter.toJsDate(item)) : val ? adapter.toJsDate(val) : val, val => Array.isArray(val) ? val.map(item => adapter.date(item)) : val ? adapter.date(val) : val);
|
|
51
52
|
const menu = shallowRef(false);
|
|
53
|
+
const vDateInputRef = ref();
|
|
52
54
|
const display = computed(() => {
|
|
53
55
|
const value = wrapInArray(model.value);
|
|
54
56
|
if (!value.length) return null;
|
|
@@ -70,7 +72,7 @@ export const VDateInput = genericComponent()({
|
|
|
70
72
|
return;
|
|
71
73
|
}
|
|
72
74
|
const target = e.target;
|
|
73
|
-
model.value =
|
|
75
|
+
model.value = target.value;
|
|
74
76
|
}
|
|
75
77
|
function onClick(e) {
|
|
76
78
|
e.preventDefault();
|
|
@@ -80,11 +82,17 @@ export const VDateInput = genericComponent()({
|
|
|
80
82
|
function onSave() {
|
|
81
83
|
menu.value = false;
|
|
82
84
|
}
|
|
85
|
+
function onUpdateModel(value) {
|
|
86
|
+
if (value != null) return;
|
|
87
|
+
model.value = null;
|
|
88
|
+
}
|
|
83
89
|
useRender(() => {
|
|
84
90
|
const confirmEditProps = VConfirmEdit.filterProps(props);
|
|
85
|
-
const datePickerProps = VDatePicker.filterProps(omit(props, ['active', 'location']));
|
|
91
|
+
const datePickerProps = VDatePicker.filterProps(omit(props, ['active', 'location', 'rounded']));
|
|
86
92
|
const textFieldProps = VTextField.filterProps(props);
|
|
87
|
-
return _createVNode(VTextField, _mergeProps(
|
|
93
|
+
return _createVNode(VTextField, _mergeProps({
|
|
94
|
+
"ref": vDateInputRef
|
|
95
|
+
}, textFieldProps, {
|
|
88
96
|
"class": props.class,
|
|
89
97
|
"style": props.style,
|
|
90
98
|
"modelValue": display.value,
|
|
@@ -93,9 +101,11 @@ export const VDateInput = genericComponent()({
|
|
|
93
101
|
"onFocus": focus,
|
|
94
102
|
"onBlur": blur,
|
|
95
103
|
"onClick:control": isInteractive.value ? onClick : undefined,
|
|
96
|
-
"onClick:prepend": isInteractive.value ? onClick : undefined
|
|
104
|
+
"onClick:prepend": isInteractive.value ? onClick : undefined,
|
|
105
|
+
"onUpdate:modelValue": onUpdateModel
|
|
97
106
|
}), {
|
|
98
|
-
|
|
107
|
+
...slots,
|
|
108
|
+
default: () => _createVNode(_Fragment, null, [_createVNode(VMenu, {
|
|
99
109
|
"modelValue": menu.value,
|
|
100
110
|
"onUpdate:modelValue": $event => menu.value = $event,
|
|
101
111
|
"activator": "parent",
|
|
@@ -138,9 +148,10 @@ export const VDateInput = genericComponent()({
|
|
|
138
148
|
});
|
|
139
149
|
}
|
|
140
150
|
})]
|
|
141
|
-
}), slots.default?.()]
|
|
151
|
+
}), slots.default?.()])
|
|
142
152
|
});
|
|
143
153
|
});
|
|
154
|
+
return forwardRefs({}, vDateInputRef);
|
|
144
155
|
}
|
|
145
156
|
});
|
|
146
157
|
//# sourceMappingURL=VDateInput.mjs.map
|