vuetify 3.10.2 → 3.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/attributes.json +3585 -3581
- package/dist/json/importMap-labs.json +22 -22
- package/dist/json/importMap.json +136 -136
- package/dist/json/tags.json +1 -0
- package/dist/json/web-types.json +6506 -6482
- package/dist/vuetify-labs.cjs +124 -92
- package/dist/vuetify-labs.css +4941 -4941
- package/dist/vuetify-labs.d.ts +1375 -1363
- package/dist/vuetify-labs.esm.js +125 -93
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +124 -92
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +116 -87
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +6491 -6491
- package/dist/vuetify.d.ts +1120 -1108
- package/dist/vuetify.esm.js +116 -87
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +116 -87
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +1435 -1428
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.d.ts +3 -3
- package/lib/components/VAlert/VAlertTitle.d.ts +3 -3
- package/lib/components/VApp/VApp.d.ts +3 -3
- package/lib/components/VAppBar/VAppBar.d.ts +3 -3
- package/lib/components/VAppBar/VAppBarNavIcon.d.ts +6 -6
- package/lib/components/VAppBar/VAppBarTitle.d.ts +3 -3
- package/lib/components/VAutocomplete/VAutocomplete.d.ts +116 -116
- package/lib/components/VAutocomplete/VAutocomplete.js +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VAvatar/VAvatar.d.ts +3 -3
- package/lib/components/VBadge/VBadge.d.ts +3 -3
- package/lib/components/VBanner/VBanner.d.ts +3 -3
- package/lib/components/VBanner/VBannerActions.d.ts +3 -3
- package/lib/components/VBanner/VBannerText.d.ts +3 -3
- package/lib/components/VBottomNavigation/VBottomNavigation.d.ts +3 -3
- package/lib/components/VBottomSheet/VBottomSheet.d.ts +3 -3
- package/lib/components/VBreadcrumbs/VBreadcrumbs.d.ts +3 -3
- package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.d.ts +3 -3
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.d.ts +3 -3
- package/lib/components/VBtn/VBtn.d.ts +6 -6
- package/lib/components/VBtn/VBtn.js +5 -5
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VBtnGroup/VBtnGroup.d.ts +3 -3
- package/lib/components/VBtnToggle/VBtnToggle.d.ts +3 -3
- package/lib/components/VCard/VCard.d.ts +6 -6
- package/lib/components/VCard/VCard.js +2 -2
- package/lib/components/VCard/VCard.js.map +1 -1
- package/lib/components/VCard/VCardActions.d.ts +3 -3
- package/lib/components/VCard/VCardItem.d.ts +3 -3
- package/lib/components/VCard/VCardSubtitle.d.ts +3 -3
- package/lib/components/VCard/VCardText.d.ts +3 -3
- package/lib/components/VCard/VCardTitle.d.ts +3 -3
- package/lib/components/VCarousel/VCarousel.d.ts +3 -3
- package/lib/components/VCarousel/VCarouselItem.d.ts +3 -3
- package/lib/components/VCheckbox/VCheckbox.d.ts +15 -15
- package/lib/components/VCheckbox/VCheckboxBtn.d.ts +6 -6
- package/lib/components/VChip/VChip.d.ts +6 -6
- package/lib/components/VChip/VChip.js +15 -4
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.d.ts +3 -3
- package/lib/components/VCode/index.d.ts +3 -3
- package/lib/components/VCombobox/VCombobox.d.ts +129 -116
- package/lib/components/VCombobox/VCombobox.js +8 -25
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VCounter/VCounter.d.ts +3 -3
- package/lib/components/VDataIterator/VDataIterator.d.ts +9 -9
- package/lib/components/VDataTable/VDataTable.d.ts +3 -3
- package/lib/components/VDataTable/VDataTableServer.d.ts +3 -3
- package/lib/components/VDataTable/VDataTableVirtual.d.ts +6 -6
- package/lib/components/VDataTable/composables/expand.js +8 -8
- package/lib/components/VDataTable/composables/expand.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.d.ts +3 -3
- package/lib/components/VDialog/VDialog.d.ts +12 -12
- package/lib/components/VDialog/VDialog.js +29 -11
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VDialog/__test__/VDialog.spec.browser.js +41 -0
- package/lib/components/VDialog/__test__/VDialog.spec.browser.js.map +1 -1
- package/lib/components/VDivider/VDivider.d.ts +3 -3
- package/lib/components/VEmptyState/VEmptyState.d.ts +6 -6
- package/lib/components/VExpansionPanel/VExpansionPanel.d.ts +6 -6
- package/lib/components/VExpansionPanel/VExpansionPanelText.d.ts +3 -3
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.d.ts +6 -6
- package/lib/components/VExpansionPanel/VExpansionPanels.d.ts +6 -6
- package/lib/components/VFab/VFab.d.ts +6 -6
- package/lib/components/VField/VField.d.ts +3 -3
- package/lib/components/VField/VFieldLabel.d.ts +3 -3
- package/lib/components/VFileInput/VFileInput.d.ts +12 -12
- package/lib/components/VFileInput/VFileInput.js +2 -1
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VFooter/VFooter.d.ts +3 -3
- package/lib/components/VForm/VForm.d.ts +6 -6
- package/lib/components/VGrid/VCol.d.ts +3 -3
- package/lib/components/VGrid/VContainer.d.ts +3 -3
- package/lib/components/VGrid/VRow.d.ts +3 -3
- package/lib/components/VGrid/VSpacer.d.ts +3 -3
- package/lib/components/VIcon/VIcon.d.ts +3 -3
- package/lib/components/VImg/VImg.d.ts +3 -3
- package/lib/components/VInput/VInput.d.ts +3 -3
- package/lib/components/VItemGroup/VItemGroup.d.ts +3 -3
- package/lib/components/VKbd/VKbd.d.ts +3 -3
- package/lib/components/VLabel/VLabel.d.ts +3 -3
- package/lib/components/VLayout/VLayout.d.ts +3 -3
- package/lib/components/VLayout/VLayoutItem.d.ts +3 -3
- package/lib/components/VLazy/VLazy.d.ts +3 -3
- package/lib/components/VList/VList.d.ts +11 -11
- package/lib/components/VList/VList.js.map +1 -1
- package/lib/components/VList/VListGroup.d.ts +3 -3
- package/lib/components/VList/VListImg.d.ts +3 -3
- package/lib/components/VList/VListItem.d.ts +6 -6
- package/lib/components/VList/VListItem.js +2 -2
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/VListItemAction.d.ts +3 -3
- package/lib/components/VList/VListItemMedia.d.ts +3 -3
- package/lib/components/VList/VListItemSubtitle.d.ts +3 -3
- package/lib/components/VList/VListItemTitle.d.ts +3 -3
- package/lib/components/VList/VListSubheader.d.ts +3 -3
- package/lib/components/VLocaleProvider/VLocaleProvider.d.ts +3 -3
- package/lib/components/VMain/VMain.d.ts +3 -3
- package/lib/components/VMenu/VMenu.d.ts +15 -15
- package/lib/components/VMessages/VMessages.d.ts +3 -3
- package/lib/components/VNavigationDrawer/VNavigationDrawer.d.ts +3 -3
- package/lib/components/VNumberInput/VNumberInput.d.ts +66 -66
- package/lib/components/VNumberInput/VNumberInput.js +1 -0
- package/lib/components/VNumberInput/VNumberInput.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.d.ts +3 -3
- package/lib/components/VOverlay/VOverlay.d.ts +3 -3
- package/lib/components/VPagination/VPagination.d.ts +3 -3
- package/lib/components/VParallax/VParallax.d.ts +3 -3
- package/lib/components/VProgressCircular/VProgressCircular.d.ts +3 -3
- package/lib/components/VProgressLinear/VProgressLinear.d.ts +3 -3
- package/lib/components/VRadio/VRadio.d.ts +6 -6
- package/lib/components/VRadioGroup/VRadioGroup.d.ts +15 -15
- package/lib/components/VRangeSlider/VRangeSlider.d.ts +12 -12
- package/lib/components/VRating/VRating.d.ts +3 -3
- package/lib/components/VResponsive/VResponsive.d.ts +3 -3
- package/lib/components/VSelect/VSelect.d.ts +140 -140
- package/lib/components/VSelectionControl/VSelectionControl.d.ts +6 -6
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.d.ts +6 -6
- package/lib/components/VSheet/VSheet.d.ts +3 -3
- package/lib/components/VSlideGroup/VSlideGroup.d.ts +3 -3
- package/lib/components/VSlider/VSlider.d.ts +12 -12
- package/lib/components/VSlider/VSliderThumb.d.ts +6 -6
- package/lib/components/VSlider/VSliderTrack.d.ts +3 -3
- package/lib/components/VSnackbar/VSnackbar.d.ts +12 -12
- package/lib/components/VSnackbarQueue/VSnackbarQueue.d.ts +3 -3
- package/lib/components/VSpeedDial/VSpeedDial.d.ts +9 -9
- package/lib/components/VStepper/VStepper.d.ts +3 -3
- package/lib/components/VStepper/VStepperHeader.d.ts +3 -3
- package/lib/components/VStepper/VStepperItem.d.ts +3 -3
- package/lib/components/VStepper/VStepperWindow.d.ts +3 -3
- package/lib/components/VStepper/VStepperWindowItem.d.ts +3 -3
- package/lib/components/VSwitch/VSwitch.d.ts +15 -15
- package/lib/components/VSwitch/VSwitch.js +2 -2
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.d.ts +3 -3
- package/lib/components/VTable/VTable.d.ts +3 -3
- package/lib/components/VTabs/VTab.d.ts +24 -24
- package/lib/components/VTabs/VTabs.d.ts +3 -3
- package/lib/components/VTabs/VTabsWindow.d.ts +3 -3
- package/lib/components/VTabs/VTabsWindowItem.d.ts +3 -3
- package/lib/components/VTextField/VTextField.d.ts +21 -21
- package/lib/components/VTextarea/VTextarea.d.ts +12 -12
- package/lib/components/VThemeProvider/VThemeProvider.d.ts +3 -3
- package/lib/components/VTimePicker/VTimePicker.d.ts +3 -3
- package/lib/components/VTimeline/VTimeline.d.ts +3 -3
- package/lib/components/VTimeline/VTimelineDivider.d.ts +3 -3
- package/lib/components/VTimeline/VTimelineItem.d.ts +3 -3
- package/lib/components/VToolbar/VToolbar.d.ts +3 -3
- package/lib/components/VToolbar/VToolbarItems.d.ts +3 -3
- package/lib/components/VToolbar/VToolbarTitle.d.ts +3 -3
- package/lib/components/VTooltip/VTooltip.d.ts +15 -15
- package/lib/components/VTreeview/VTreeview.d.ts +26 -26
- package/lib/components/VTreeview/VTreeviewChildren.js +1 -1
- package/lib/components/VTreeview/VTreeviewChildren.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewGroup.d.ts +3 -3
- package/lib/components/VTreeview/VTreeviewItem.d.ts +24 -24
- package/lib/components/VVirtualScroll/VVirtualScroll.d.ts +6 -6
- package/lib/components/VVirtualScroll/VVirtualScrollItem.d.ts +3 -3
- package/lib/components/VWindow/VWindow.d.ts +3 -3
- package/lib/components/VWindow/VWindowItem.d.ts +3 -3
- package/lib/components/transitions/createTransition.d.ts +6 -6
- package/lib/components/transitions/index.d.ts +78 -78
- package/lib/composables/goto.js +2 -2
- package/lib/composables/goto.js.map +1 -1
- package/lib/composables/group.d.ts +2 -0
- package/lib/composables/group.js +15 -9
- package/lib/composables/group.js.map +1 -1
- package/lib/composables/router.d.ts +2 -0
- package/lib/composables/router.js +6 -1
- package/lib/composables/router.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +63 -63
- package/lib/framework.js +1 -1
- package/lib/labs/VCalendar/VCalendar.js +7 -4
- package/lib/labs/VCalendar/VCalendar.js.map +1 -1
- package/lib/labs/VCalendar/composables/calendarWithEvents.js +7 -4
- package/lib/labs/VCalendar/composables/calendarWithEvents.js.map +1 -1
- package/lib/labs/VColorInput/VColorInput.d.ts +6 -6
- package/lib/labs/VDateInput/VDateInput.d.ts +66 -66
- package/lib/labs/VFileUpload/VFileUpload.d.ts +3 -3
- package/lib/labs/VFileUpload/VFileUpload.js +2 -1
- package/lib/labs/VFileUpload/VFileUpload.js.map +1 -1
- package/lib/labs/VFileUpload/VFileUploadItem.d.ts +6 -6
- package/lib/labs/VHotkey/VHotkey.d.ts +3 -3
- package/lib/labs/VIconBtn/VIconBtn.d.ts +3 -3
- package/lib/labs/VMaskInput/VMaskInput.d.ts +66 -66
- package/lib/labs/VPicker/VPicker.d.ts +3 -3
- package/lib/labs/VPicker/VPickerTitle.d.ts +3 -3
- package/lib/labs/VPie/VPieTooltip.d.ts +3 -3
- package/lib/labs/VStepperVertical/VStepperVertical.d.ts +6 -6
- package/lib/labs/VStepperVertical/VStepperVerticalItem.d.ts +6 -6
- package/lib/labs/VVideo/VVideo.d.ts +87 -87
- package/lib/labs/VVideo/VVideoControls.d.ts +40 -40
- package/lib/labs/VVideo/VVideoVolume.d.ts +33 -33
- package/lib/util/animation.js +1 -1
- package/lib/util/animation.js.map +1 -1
- package/lib/util/box.d.ts +1 -1
- package/lib/util/box.js +19 -14
- package/lib/util/box.js.map +1 -1
- package/lib/util/createSimpleFunctional.d.ts +3 -3
- package/lib/util/events.js +2 -2
- package/lib/util/events.js.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation.js","names":["Box","nullifyTransforms","el","rect","getBoundingClientRect","style","getComputedStyle","tx","transform","ta","sx","sy","dx","dy","startsWith","slice","split","Number","to","transformOrigin","x","parseFloat","y","indexOf","w","width","offsetWidth","h","height","offsetHeight","animate","keyframes","options","finished","Promise","resolve","animation","err","onfinish"],"sources":["../../src/util/animation.ts"],"sourcesContent":["// Utilities\nimport { Box } from '@/util/box'\n\n/** @see https://stackoverflow.com/a/57876601/2074736 */\nexport function nullifyTransforms (el: HTMLElement): Box {\n const rect = el.getBoundingClientRect()\n const style = getComputedStyle(el)\n const tx = style.transform\n\n if (tx) {\n let ta, sx, sy, dx, dy\n if (tx.startsWith('matrix3d(')) {\n ta = tx.slice(9, -1).split(/, /)\n sx = Number(ta[0])\n sy = Number(ta[5])\n dx = Number(ta[12])\n dy = Number(ta[13])\n } else if (tx.startsWith('matrix(')) {\n ta = tx.slice(7, -1).split(/, /)\n sx = Number(ta[0])\n sy = Number(ta[3])\n dx = Number(ta[4])\n dy = Number(ta[5])\n } else {\n return new Box(rect)\n }\n\n const to = style.transformOrigin\n const x = rect.x - dx - (1 - sx) * parseFloat(to)\n const y = rect.y - dy - (1 - sy) * parseFloat(to.slice(to.indexOf(' ') + 1))\n const w = sx ? rect.width / sx : el.offsetWidth + 1\n const h = sy ? rect.height / sy : el.offsetHeight + 1\n\n return new Box({ x, y, width: w, height: h })\n } else {\n return new Box(rect)\n }\n}\n\nexport function animate (\n el: Element,\n keyframes: Keyframe[] | PropertyIndexedKeyframes | null,\n options?: number | KeyframeAnimationOptions\n) {\n if (typeof el.animate === 'undefined') return { finished: Promise.resolve() }\n\n let animation: Animation\n try {\n animation = el.animate(keyframes, options)\n } catch (err) {\n return { finished: Promise.resolve() }\n }\n\n if (typeof animation.finished === 'undefined') {\n (animation as any).finished = new Promise(resolve => {\n animation.onfinish = () => {\n resolve(animation)\n }\n })\n }\n\n return animation\n}\n"],"mappings":"AAAA;AAAA,SACSA,GAAG;AAEZ;AACA,OAAO,SAASC,iBAAiBA,CAAEC,EAAe,EAAO;EACvD,MAAMC,IAAI,
|
|
1
|
+
{"version":3,"file":"animation.js","names":["Box","nullifyTransforms","el","rect","getBoundingClientRect","style","getComputedStyle","tx","transform","ta","sx","sy","dx","dy","startsWith","slice","split","Number","to","transformOrigin","x","parseFloat","y","indexOf","w","width","offsetWidth","h","height","offsetHeight","animate","keyframes","options","finished","Promise","resolve","animation","err","onfinish"],"sources":["../../src/util/animation.ts"],"sourcesContent":["// Utilities\nimport { Box } from '@/util/box'\n\n/** @see https://stackoverflow.com/a/57876601/2074736 */\nexport function nullifyTransforms (el: HTMLElement): Box {\n const rect = new Box(el.getBoundingClientRect())\n const style = getComputedStyle(el)\n const tx = style.transform\n\n if (tx) {\n let ta, sx, sy, dx, dy\n if (tx.startsWith('matrix3d(')) {\n ta = tx.slice(9, -1).split(/, /)\n sx = Number(ta[0])\n sy = Number(ta[5])\n dx = Number(ta[12])\n dy = Number(ta[13])\n } else if (tx.startsWith('matrix(')) {\n ta = tx.slice(7, -1).split(/, /)\n sx = Number(ta[0])\n sy = Number(ta[3])\n dx = Number(ta[4])\n dy = Number(ta[5])\n } else {\n return new Box(rect)\n }\n\n const to = style.transformOrigin\n const x = rect.x - dx - (1 - sx) * parseFloat(to)\n const y = rect.y - dy - (1 - sy) * parseFloat(to.slice(to.indexOf(' ') + 1))\n const w = sx ? rect.width / sx : el.offsetWidth + 1\n const h = sy ? rect.height / sy : el.offsetHeight + 1\n\n return new Box({ x, y, width: w, height: h })\n } else {\n return new Box(rect)\n }\n}\n\nexport function animate (\n el: Element,\n keyframes: Keyframe[] | PropertyIndexedKeyframes | null,\n options?: number | KeyframeAnimationOptions\n) {\n if (typeof el.animate === 'undefined') return { finished: Promise.resolve() }\n\n let animation: Animation\n try {\n animation = el.animate(keyframes, options)\n } catch (err) {\n return { finished: Promise.resolve() }\n }\n\n if (typeof animation.finished === 'undefined') {\n (animation as any).finished = new Promise(resolve => {\n animation.onfinish = () => {\n resolve(animation)\n }\n })\n }\n\n return animation\n}\n"],"mappings":"AAAA;AAAA,SACSA,GAAG;AAEZ;AACA,OAAO,SAASC,iBAAiBA,CAAEC,EAAe,EAAO;EACvD,MAAMC,IAAI,GAAG,IAAIH,GAAG,CAACE,EAAE,CAACE,qBAAqB,CAAC,CAAC,CAAC;EAChD,MAAMC,KAAK,GAAGC,gBAAgB,CAACJ,EAAE,CAAC;EAClC,MAAMK,EAAE,GAAGF,KAAK,CAACG,SAAS;EAE1B,IAAID,EAAE,EAAE;IACN,IAAIE,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE;IACtB,IAAIN,EAAE,CAACO,UAAU,CAAC,WAAW,CAAC,EAAE;MAC9BL,EAAE,GAAGF,EAAE,CAACQ,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAACC,KAAK,CAAC,IAAI,CAAC;MAChCN,EAAE,GAAGO,MAAM,CAACR,EAAE,CAAC,CAAC,CAAC,CAAC;MAClBE,EAAE,GAAGM,MAAM,CAACR,EAAE,CAAC,CAAC,CAAC,CAAC;MAClBG,EAAE,GAAGK,MAAM,CAACR,EAAE,CAAC,EAAE,CAAC,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MAAEI,MAAM,EAAED;IAAE,CAAC,CAAC;EAC/C,CAAC,MAAM;IACL,OAAO,IAAI3B,GAAG,CAACG,IAAI,CAAC;EACtB;AACF;AAEA,OAAO,SAAS2B,OAAOA,CACrB5B,EAAW,EACX6B,SAAuD,EACvDC,OAA2C,EAC3C;EACA,IAAI,OAAO9B,EAAE,CAAC4B,OAAO,KAAK,WAAW,EAAE,OAAO;IAAEG,QAAQ,EAAEC,OAAO,CAACC,OAAO,CAAC;EAAE,CAAC;EAE7E,IAAIC,SAAoB;EACxB,IAAI;IACFA,SAAS,GAAGlC,EAAE,CAAC4B,OAAO,CAACC,SAAS,EAAEC,OAAO,CAAC;EAC5C,CAAC,CAAC,OAAOK,GAAG,EAAE;IACZ,OAAO;MAAEJ,QAAQ,EAAEC,OAAO,CAACC,OAAO,CAAC;IAAE,CAAC;EACxC;EAEA,IAAI,OAAOC,SAAS,CAACH,QAAQ,KAAK,WAAW,EAAE;IAC5CG,SAAS,CAASH,QAAQ,GAAG,IAAIC,OAAO,CAACC,OAAO,IAAI;MACnDC,SAAS,CAACE,QAAQ,GAAG,MAAM;QACzBH,OAAO,CAACC,SAAS,CAAC;MACpB,CAAC;IACH,CAAC,CAAC;EACJ;EAEA,OAAOA,SAAS;AAClB","ignoreList":[]}
|
package/lib/util/box.d.ts
CHANGED
package/lib/util/box.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
export class Box {
|
|
2
|
-
constructor(
|
|
3
|
-
|
|
2
|
+
constructor(args) {
|
|
3
|
+
const pageScale = document.body.currentCSSZoom ?? 1;
|
|
4
|
+
const factor = args instanceof DOMRect ? 1 + (1 - pageScale) / pageScale : 1;
|
|
5
|
+
const {
|
|
4
6
|
x,
|
|
5
7
|
y,
|
|
6
8
|
width,
|
|
7
9
|
height
|
|
8
|
-
} =
|
|
9
|
-
this.x = x;
|
|
10
|
-
this.y = y;
|
|
11
|
-
this.width = width;
|
|
12
|
-
this.height = height;
|
|
10
|
+
} = args;
|
|
11
|
+
this.x = x * factor;
|
|
12
|
+
this.y = y * factor;
|
|
13
|
+
this.width = width * factor;
|
|
14
|
+
this.height = height * factor;
|
|
13
15
|
}
|
|
14
16
|
get top() {
|
|
15
17
|
return this.y;
|
|
@@ -38,14 +40,16 @@ export function getOverflow(a, b) {
|
|
|
38
40
|
}
|
|
39
41
|
export function getTargetBox(target) {
|
|
40
42
|
if (Array.isArray(target)) {
|
|
43
|
+
const pageScale = document.body.currentCSSZoom ?? 1;
|
|
44
|
+
const factor = 1 + (1 - pageScale) / pageScale;
|
|
41
45
|
return new Box({
|
|
42
|
-
x: target[0],
|
|
43
|
-
y: target[1],
|
|
44
|
-
width: 0,
|
|
45
|
-
height: 0
|
|
46
|
+
x: target[0] * factor,
|
|
47
|
+
y: target[1] * factor,
|
|
48
|
+
width: 0 * factor,
|
|
49
|
+
height: 0 * factor
|
|
46
50
|
});
|
|
47
51
|
} else {
|
|
48
|
-
return target.getBoundingClientRect();
|
|
52
|
+
return new Box(target.getBoundingClientRect());
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
export function getElementBox(el) {
|
|
@@ -58,11 +62,12 @@ export function getElementBox(el) {
|
|
|
58
62
|
height: document.documentElement.clientHeight
|
|
59
63
|
});
|
|
60
64
|
} else {
|
|
65
|
+
const pageScale = document.body.currentCSSZoom ?? 1;
|
|
61
66
|
return new Box({
|
|
62
67
|
x: visualViewport.scale > 1 ? 0 : visualViewport.offsetLeft,
|
|
63
68
|
y: visualViewport.scale > 1 ? 0 : visualViewport.offsetTop,
|
|
64
|
-
width: visualViewport.width * visualViewport.scale,
|
|
65
|
-
height: visualViewport.height * visualViewport.scale
|
|
69
|
+
width: visualViewport.width * visualViewport.scale / pageScale,
|
|
70
|
+
height: visualViewport.height * visualViewport.scale / pageScale
|
|
66
71
|
});
|
|
67
72
|
}
|
|
68
73
|
} else {
|
package/lib/util/box.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.js","names":["Box","constructor","
|
|
1
|
+
{"version":3,"file":"box.js","names":["Box","constructor","args","pageScale","document","body","currentCSSZoom","factor","DOMRect","x","y","width","height","top","bottom","left","right","getOverflow","a","b","before","Math","max","after","getTargetBox","target","Array","isArray","getBoundingClientRect","getElementBox","el","documentElement","visualViewport","clientWidth","clientHeight","scale","offsetLeft","offsetTop","rect"],"sources":["../../src/util/box.ts"],"sourcesContent":["export class Box {\n x: number\n y: number\n width: number\n height: number\n\n constructor (args: DOMRect | {\n x: number\n y: number\n width: number\n height: number\n }) {\n const pageScale = document.body.currentCSSZoom ?? 1\n const factor = args instanceof DOMRect ? 1 + (1 - pageScale) / pageScale : 1\n\n const { x, y, width, height } = args\n\n this.x = x * factor\n this.y = y * factor\n this.width = width * factor\n this.height = height * factor\n }\n\n get top () { return this.y }\n get bottom () { return this.y + this.height }\n get left () { return this.x }\n get right () { return this.x + this.width }\n}\n\nexport function getOverflow (a: Box, b: Box) {\n return {\n x: {\n before: Math.max(0, b.left - a.left),\n after: Math.max(0, a.right - b.right),\n },\n y: {\n before: Math.max(0, b.top - a.top),\n after: Math.max(0, a.bottom - b.bottom),\n },\n }\n}\n\nexport function getTargetBox (target: HTMLElement | [x: number, y: number]): Box {\n if (Array.isArray(target)) {\n const pageScale = document.body.currentCSSZoom ?? 1\n const factor = 1 + (1 - pageScale) / pageScale\n\n return new Box({\n x: target[0] * factor,\n y: target[1] * factor,\n width: 0 * factor,\n height: 0 * factor,\n })\n } else {\n return new Box(target.getBoundingClientRect())\n }\n}\n\nexport function getElementBox (el: HTMLElement) {\n if (el === document.documentElement) {\n if (!visualViewport) {\n return new Box({\n x: 0,\n y: 0,\n width: document.documentElement.clientWidth,\n height: document.documentElement.clientHeight,\n })\n } else {\n const pageScale = document.body.currentCSSZoom ?? 1\n return new Box({\n x: visualViewport.scale > 1 ? 0 : visualViewport.offsetLeft,\n y: visualViewport.scale > 1 ? 0 : visualViewport.offsetTop,\n width: visualViewport.width * visualViewport.scale / pageScale,\n height: visualViewport.height * visualViewport.scale / pageScale,\n })\n }\n } else {\n const rect = el.getBoundingClientRect()\n return new Box({\n x: rect.x,\n y: rect.y,\n width: el.clientWidth,\n height: el.clientHeight,\n })\n }\n}\n"],"mappings":"AAAA,OAAO,MAAMA,GAAG,CAAC;EAMfC,WAAWA,CAAEC,IAKZ,EAAE;IACD,MAAMC,SAAS,GAAGC,QAAQ,CAACC,IAAI,CAACC,cAAc,IAAI,CAAC;IACnD,MAAMC,MAAM,GAAGL,IAAI,YAAYM,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,GAAGL,SAAS,IAAIA,SAAS,GAAG,CAAC;IAE5E,MAAM;MAAEM,CAAC;MAAEC,CAAC;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAGV,IAAI;IAEpC,IAAI,CAACO,CAAC,GAAGA,CAAC,GAAGF,MAAM;IACnB,IAAI,CAACG,CAAC,GAAGA,CAAC,GAAGH,MAAM;IACnB,IAAI,CAACI,KAAK,GAAGA,KAAK,GAAGJ,MAAM;IAC3B,IAAI,CAACK,MAAM,GAAGA,MAAM,GAAGL,MAAM;EAC/B;EAEA,IAAIM,GAAGA,CAAA,EAAI;IAAE,OAAO,IAAI,CAACH,CAAC;EAAC;EAC3B,IAAII,MAAMA,CAAA,EAAI;IAAE,OAAO,IAAI,CAACJ,CAAC,GAAG,IAAI,CAACE,MAAM;EAAC;EAC5C,IAAIG,IAAIA,CAAA,EAAI;IAAE,OAAO,IAAI,CAACN,CAAC;EAAC;EAC5B,IAAIO,KAAKA,CAAA,EAAI;IAAE,OAAO,IAAI,CAACP,CAAC,GAAG,IAAI,CAACE,KAAK;EAAC;AAC5C;AAEA,OAAO,SAASM,WAAWA,CAAEC,CAAM,EAAEC,CAAM,EAAE;EAC3C,OAAO;IACLV,CAAC,EAAE;MACDW,MAAM,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,CAAC,CAACJ,IAAI,GAAGG,CAAC,CAACH,IAAI,CAAC;MACpCQ,KAA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,CAAC2B,eAAe,CAACG;MACnC,CAAC,CAAC;IACJ,CAAC,MAAM;MACL,MAAM/B,SAAS,GAAGC,QAAQ,CAACC,IAAI,CAACC,cAAc,IAAI,CAAC;MACnD,OAAO,IAAIN,GAAG,CAAC;QACbS,CAAC,EAAEuB,cAAc,CAACG,KAAK,GAAG,CAAC,GAAG,CAAC,GAAGH,cAAc,CAACI,UAAU;QAC3D1B,CAAC,EAAEsB,cAAc,CAACG,KAAK,GAAG,CAAC,GAAG,CAAC,GAAGH,cAAc,CAACK,SAAS;QAC1D1B,KAAK,EAAEqB,cAAc,CAACrB,KAAK,GAAGqB,cAAc,CAACG,KAAK,GAAGhC,SAAS;QAC9DS,MAAM,EAAEoB,cAAc,CAACpB,MAAM,GAAGoB,cAAc,CAACG,KAAK,GAAGhC;MACzD,CAAC,CAAC;IACJ;EACF,CAAC,MAAM;IACL,MAAMmC,IAAI,GAAGR,EAAE,CAACF,qBAAqB,CAAC,CAAC;IACvC,OAAO,IAAI5B,GAAG,CAAC;MACbS,CAAC,EAAE6B,IAAI,CAAC7B,CAAC;MACTC,CAAC,EAAE4B,IAAI,CAAC5B,CAAC;MACTC,KAAK,EAAEmB,EAAE,CAACG,WAAW;MACrBrB,MAAM,EAAEkB,EAAE,CAACI;IACb,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function createSimpleFunctional(klass: string, tag?: string, name?: string): {
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<{
|
|
3
|
-
style: import("vue").StyleValue;
|
|
3
|
+
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
|
|
4
4
|
tag: string;
|
|
5
5
|
} & {
|
|
6
6
|
class?: any;
|
|
@@ -32,7 +32,7 @@ export declare function createSimpleFunctional(klass: string, tag?: string, name
|
|
|
32
32
|
M: {};
|
|
33
33
|
Defaults: {};
|
|
34
34
|
}, {
|
|
35
|
-
style: import("vue").StyleValue;
|
|
35
|
+
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
|
|
36
36
|
tag: string;
|
|
37
37
|
} & {
|
|
38
38
|
class?: any;
|
|
@@ -57,7 +57,7 @@ export declare function createSimpleFunctional(klass: string, tag?: string, name
|
|
|
57
57
|
__isTeleport?: undefined;
|
|
58
58
|
__isSuspense?: undefined;
|
|
59
59
|
} & import("vue").ComponentOptionsBase<{
|
|
60
|
-
style: import("vue").StyleValue;
|
|
60
|
+
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
|
|
61
61
|
tag: string;
|
|
62
62
|
} & {
|
|
63
63
|
class?: any;
|
package/lib/util/events.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Utilities
|
|
2
|
-
import { isOn } from "./helpers.js";
|
|
2
|
+
import { callEvent, isOn } from "./helpers.js";
|
|
3
3
|
export function getPrefixedEventHandlers(attrs, suffix, getData) {
|
|
4
4
|
return Object.keys(attrs).filter(key => isOn(key) && key.endsWith(suffix)).reduce((acc, key) => {
|
|
5
|
-
acc[key.slice(0, -suffix.length)] = event => attrs[key]
|
|
5
|
+
acc[key.slice(0, -suffix.length)] = event => callEvent(attrs[key], event, getData(event));
|
|
6
6
|
return acc;
|
|
7
7
|
}, {});
|
|
8
8
|
}
|
package/lib/util/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","names":["isOn","getPrefixedEventHandlers","attrs","suffix","getData","Object","keys","filter","key","endsWith","reduce","acc","slice","length","event"],"sources":["../../src/util/events.ts"],"sourcesContent":["// Utilities\nimport { isOn } from '@/util/helpers'\n\ntype EventHandler = (event: Event) => any\n\nexport function getPrefixedEventHandlers<T extends `:${string}`> (\n attrs: Record<string, any>,\n suffix: T,\n getData: EventHandler\n): Record<`${string}${T}`, EventHandler> {\n return Object.keys(attrs)\n .filter(key => isOn(key) && key.endsWith(suffix))\n .reduce((acc: any, key) => {\n acc[key.slice(0, -suffix.length)] = (event: Event) => attrs[key]
|
|
1
|
+
{"version":3,"file":"events.js","names":["callEvent","isOn","getPrefixedEventHandlers","attrs","suffix","getData","Object","keys","filter","key","endsWith","reduce","acc","slice","length","event"],"sources":["../../src/util/events.ts"],"sourcesContent":["// Utilities\nimport { callEvent, isOn } from '@/util/helpers'\n\ntype EventHandler = (event: Event) => any\n\nexport function getPrefixedEventHandlers<T extends `:${string}`> (\n attrs: Record<string, any>,\n suffix: T,\n getData: EventHandler\n): Record<`${string}${T}`, EventHandler> {\n return Object.keys(attrs)\n .filter(key => isOn(key) && key.endsWith(suffix))\n .reduce((acc: any, key) => {\n acc[key.slice(0, -suffix.length)] = (event: Event) => callEvent(attrs[key], event, getData(event))\n return acc\n }, {} as Record<`${string}${T}`, EventHandler>)\n}\n"],"mappings":"AAAA;AAAA,SACSA,SAAS,EAAEC,IAAI;AAIxB,OAAO,SAASC,wBAAwBA,CACtCC,KAA0B,EAC1BC,MAAS,EACTC,OAAqB,EACkB;EACvC,OAAOC,MAAM,CAACC,IAAI,CAACJ,KAAK,CAAC,CACtBK,MAAM,CAACC,GAAG,IAAIR,IAAI,CAACQ,GAAG,CAAC,IAAIA,GAAG,CAACC,QAAQ,CAACN,MAAM,CAAC,CAAC,CAChDO,MAAM,CAAC,CAACC,GAAQ,EAAEH,GAAG,KAAK;IACzBG,GAAG,CAACH,GAAG,CAACI,KAAK,CAAC,CAAC,EAAE,CAACT,MAAM,CAACU,MAAM,CAAC,CAAC,GAAIC,KAAY,IAAKf,SAAS,CAACG,KAAK,CAACM,GAAG,CAAC,EAAEM,KAAK,EAAEV,OAAO,CAACU,KAAK,CAAC,CAAC;IAClG,OAAOH,GAAG;EACZ,CAAC,EAAE,CAAC,CAA0C,CAAC;AACnD","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuetify",
|
|
3
3
|
"description": "Vue Material Component Framework",
|
|
4
|
-
"version": "3.10.
|
|
4
|
+
"version": "3.10.4",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "John Leider",
|
|
7
7
|
"email": "john@vuetifyjs.com"
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
135
135
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
136
136
|
"@fortawesome/vue-fontawesome": "^3.0.8",
|
|
137
|
-
"@intlify/devtools-types": "^11.1.
|
|
137
|
+
"@intlify/devtools-types": "^11.1.12",
|
|
138
138
|
"@percy/cli": "^1.30.10",
|
|
139
139
|
"@percy/sdk-utils": "^1.30.10",
|
|
140
140
|
"@rollup/plugin-alias": "^5.1.1",
|
|
@@ -145,10 +145,10 @@
|
|
|
145
145
|
"@testing-library/user-event": "^14.6.1",
|
|
146
146
|
"@testing-library/vue": "^8.1.0",
|
|
147
147
|
"@types/resize-observer-browser": "^0.1.11",
|
|
148
|
-
"@vitejs/plugin-vue-jsx": "^
|
|
149
|
-
"@vitest/browser": "^3.
|
|
150
|
-
"@vitest/coverage-istanbul": "^3.
|
|
151
|
-
"@vitest/ui": "^3.
|
|
148
|
+
"@vitejs/plugin-vue-jsx": "^5.1.1",
|
|
149
|
+
"@vitest/browser": "^3.2.4",
|
|
150
|
+
"@vitest/coverage-istanbul": "^3.2.4",
|
|
151
|
+
"@vitest/ui": "^3.2.4",
|
|
152
152
|
"@vue/reactivity": "^3.5.13",
|
|
153
153
|
"@vue/shared": "^3.5.13",
|
|
154
154
|
"@vue/test-utils": "^2.4.6",
|
|
@@ -182,9 +182,9 @@
|
|
|
182
182
|
"upath": "^2.0.1",
|
|
183
183
|
"vite-live-preview": "^0.3.2",
|
|
184
184
|
"vite-ssr": "^0.17.2",
|
|
185
|
-
"vitest": "^3.
|
|
186
|
-
"vue": "^3.5.
|
|
187
|
-
"vue-i18n": "^11.1.
|
|
185
|
+
"vitest": "^3.2.4",
|
|
186
|
+
"vue": "^3.5.21",
|
|
187
|
+
"vue-i18n": "^11.1.12",
|
|
188
188
|
"vue-router": "^4.5.0",
|
|
189
189
|
"webdriverio": "^9.15.0"
|
|
190
190
|
},
|