@vuetify/nightly 3.6.14-master.2024-08-04 → 3.6.14-master.2024-08-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 +7 -11
- package/dist/json/importMap-labs.json +30 -30
- package/dist/json/importMap.json +144 -144
- package/dist/json/tags.json +0 -1
- package/dist/json/web-types.json +8 -18
- package/dist/vuetify-labs.css +2162 -2162
- package/dist/vuetify-labs.d.ts +33122 -39828
- package/dist/vuetify-labs.esm.js +17 -9
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +17 -9
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1025 -1025
- package/dist/vuetify.d.ts +32674 -39040
- package/dist/vuetify.esm.js +16 -8
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +16 -8
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +22 -22
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/index.d.mts +50 -73
- package/lib/components/VApp/index.d.mts +9 -11
- package/lib/components/VAppBar/index.d.mts +92 -128
- package/lib/components/VAutocomplete/index.d.mts +4771 -3230
- package/lib/components/VAvatar/index.d.mts +23 -22
- package/lib/components/VBadge/index.d.mts +53 -59
- package/lib/components/VBanner/index.d.mts +44 -66
- package/lib/components/VBottomNavigation/index.d.mts +25 -32
- package/lib/components/VBottomSheet/index.d.mts +125 -135
- package/lib/components/VBreadcrumbs/index.d.mts +35 -78
- package/lib/components/VBtn/index.d.mts +49 -53
- package/lib/components/VBtnGroup/index.d.mts +14 -13
- package/lib/components/VBtnToggle/index.d.mts +21 -23
- package/lib/components/VCard/index.d.mts +104 -168
- package/lib/components/VCarousel/index.d.mts +59 -96
- package/lib/components/VCheckbox/index.d.mts +132 -155
- package/lib/components/VChip/index.d.mts +47 -59
- package/lib/components/VChipGroup/index.d.mts +39 -41
- package/lib/components/VCode/index.d.mts +9 -11
- package/lib/components/VColorPicker/index.d.mts +58 -133
- package/lib/components/VCombobox/index.d.mts +4785 -3244
- package/lib/components/VConfirmEdit/index.d.mts +11 -19
- package/lib/components/VCounter/index.d.mts +40 -42
- package/lib/components/VDataIterator/index.d.mts +171 -185
- package/lib/components/VDataTable/index.d.mts +480 -1204
- package/lib/components/VDatePicker/index.d.mts +120 -158
- package/lib/components/VDefaultsProvider/index.d.mts +5 -9
- package/lib/components/VDialog/index.d.mts +243 -277
- package/lib/components/VDivider/index.d.mts +9 -11
- package/lib/components/VEmptyState/index.d.mts +30 -52
- package/lib/components/VExpansionPanel/index.d.mts +60 -85
- package/lib/components/VFab/index.d.mts +81 -73
- package/lib/components/VField/index.d.mts +35 -62
- package/lib/components/VFileInput/VFileInput.mjs +1 -1
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.mts +172 -259
- package/lib/components/VFooter/index.d.mts +9 -11
- package/lib/components/VForm/index.d.mts +105 -77
- package/lib/components/VGrid/index.d.mts +41 -52
- package/lib/components/VHover/index.d.mts +5 -9
- package/lib/components/VIcon/index.d.mts +23 -29
- package/lib/components/VImg/index.d.mts +28 -42
- package/lib/components/VInfiniteScroll/index.d.mts +17 -37
- package/lib/components/VInput/index.d.mts +48 -50
- package/lib/components/VItemGroup/index.d.mts +21 -30
- package/lib/components/VKbd/index.d.mts +9 -11
- package/lib/components/VLabel/index.d.mts +9 -11
- package/lib/components/VLayout/index.d.mts +18 -24
- package/lib/components/VLazy/index.d.mts +42 -44
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/index.d.mts +210 -329
- package/lib/components/VLocaleProvider/index.d.mts +9 -11
- package/lib/components/VMain/index.d.mts +9 -11
- package/lib/components/VMenu/index.d.mts +272 -306
- package/lib/components/VMessages/index.d.mts +49 -51
- package/lib/components/VNavigationDrawer/index.d.mts +27 -40
- package/lib/components/VOtpInput/index.d.mts +22 -28
- package/lib/components/VOverlay/VOverlay.mjs +4 -3
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.mts +53 -63
- package/lib/components/VPagination/index.d.mts +31 -46
- package/lib/components/VParallax/index.d.mts +15 -29
- package/lib/components/VProgressCircular/index.d.mts +9 -11
- package/lib/components/VProgressLinear/index.d.mts +22 -24
- package/lib/components/VRadio/index.d.mts +49 -52
- package/lib/components/VRadioGroup/index.d.mts +66 -66
- package/lib/components/VRangeSlider/index.d.mts +58 -69
- package/lib/components/VRating/index.d.mts +13 -19
- package/lib/components/VResponsive/index.d.mts +11 -17
- package/lib/components/VSelect/index.d.mts +4762 -3221
- package/lib/components/VSelectionControl/index.d.mts +38 -44
- package/lib/components/VSelectionControlGroup/index.d.mts +34 -34
- package/lib/components/VSheet/index.d.mts +15 -17
- package/lib/components/VSkeletonLoader/index.d.mts +41 -11
- package/lib/components/VSlideGroup/index.d.mts +112 -129
- package/lib/components/VSlider/index.d.mts +58 -69
- package/lib/components/VSnackbar/VSnackbar.mjs +5 -1
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/index.d.mts +231 -270
- package/lib/components/VSparkline/index.d.mts +11 -19
- package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.mjs.map +1 -1
- package/lib/components/VSpeedDial/index.d.mts +179 -189
- package/lib/components/VStepper/index.d.mts +105 -180
- package/lib/components/VSwitch/index.d.mts +78 -98
- package/lib/components/VSystemBar/index.d.mts +13 -15
- package/lib/components/VTable/index.d.mts +15 -29
- package/lib/components/VTabs/index.d.mts +213 -297
- package/lib/components/VTextField/index.d.mts +253 -408
- package/lib/components/VTextarea/index.d.mts +157 -236
- package/lib/components/VThemeProvider/index.d.mts +9 -11
- package/lib/components/VTimeline/index.d.mts +29 -43
- package/lib/components/VToolbar/index.d.mts +49 -80
- package/lib/components/VTooltip/index.d.mts +282 -316
- package/lib/components/VValidation/index.d.mts +16 -23
- package/lib/components/VVirtualScroll/index.d.mts +14 -23
- package/lib/components/VWindow/index.d.mts +29 -50
- package/lib/components/index.d.mts +31169 -37524
- package/lib/components/transitions/index.d.mts +84 -148
- package/lib/composables/location.mjs.map +1 -1
- package/lib/directives/click-outside/index.mjs +3 -0
- package/lib/directives/click-outside/index.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +60 -60
- package/lib/labs/VCalendar/index.d.mts +146 -166
- package/lib/labs/VDateInput/index.d.mts +83 -62
- package/lib/labs/VNumberInput/index.d.mts +61 -88
- package/lib/labs/VPicker/index.d.mts +28 -46
- package/lib/labs/VPullToRefresh/index.d.mts +7 -15
- package/lib/labs/VSnackbarQueue/index.d.mts +311 -369
- package/lib/labs/VStepperVertical/index.d.mts +109 -184
- package/lib/labs/VTimePicker/index.d.mts +35 -53
- package/lib/labs/VTreeview/VTreeview.mjs +1 -1
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +200 -292
- package/lib/labs/components.d.mts +905 -1246
- package/lib/util/propsFactory.mjs.map +1 -1
- package/package.json +3 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VOverlay.mjs","names":["makeLocationStrategyProps","useLocationStrategies","makeScrollStrategyProps","useScrollStrategies","makeActivatorProps","useActivator","useBackgroundColor","makeComponentProps","makeDimensionProps","useDimension","useHydration","makeLazyProps","useLazy","useRtl","useProxiedModel","useBackButton","useRouter","useScopeId","useStack","useTeleport","makeThemeProps","provideTheme","useToggleScope","makeTransitionProps","MaybeTransition","ClickOutside","computed","mergeProps","onBeforeUnmount","ref","Teleport","toRef","Transition","watch","animate","convertToUnit","genericComponent","getScrollParent","IN_BROWSER","propsFactory","standardEasing","useRender","Scrim","props","modelValue","color","rest","_createVNode","default","_mergeProps","backgroundColorClasses","value","backgroundColorStyles","makeVOverlayProps","absolute","Boolean","attach","String","Object","closeOnBack","type","contained","contentClass","contentProps","disabled","opacity","Number","noClickAnimation","persistent","scrim","zIndex","VOverlay","name","directives","inheritAttrs","_disableGlobalStack","emits","e","afterEnter","afterLeave","setup","_ref","slots","attrs","emit","model","isActive","get","set","v","themeClasses","rtlClasses","isRtl","hasContent","onAfterLeave","_onAfterLeave","scrimColor","globalTop","localTop","stackStyles","activatorEl","activatorRef","target","targetEl","targetRef","activatorEvents","contentEvents","scrimEvents","isTop","teleportTarget","rootNode","getRootNode","ShadowRoot","dimensionStyles","isMounted","scopeId","root","scrimEl","contentEl","contentStyles","updateLocation","onClickOutside","animateClick","closeConditional","val","window","addEventListener","onKeydown","removeEventListener","immediate","key","contains","document","activeElement","focus","router","next","top","scrollParent","scrollingElement","scrollTop","transformOrigin","transform","duration","easing","onAfterEnter","_Fragment","activator","activatorProps","class","style","transition","_withDirectives","_vShow","_resolveDirective","handler","include"],"sources":["../../../src/components/VOverlay/VOverlay.tsx"],"sourcesContent":["// Styles\nimport './VOverlay.sass'\n\n// Composables\nimport { makeLocationStrategyProps, useLocationStrategies } from './locationStrategies'\nimport { makeScrollStrategyProps, useScrollStrategies } from './scrollStrategies'\nimport { makeActivatorProps, useActivator } from './useActivator'\nimport { useBackgroundColor } from '@/composables/color'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { useHydration } from '@/composables/hydration'\nimport { makeLazyProps, useLazy } from '@/composables/lazy'\nimport { useRtl } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useBackButton, useRouter } from '@/composables/router'\nimport { useScopeId } from '@/composables/scopeId'\nimport { useStack } from '@/composables/stack'\nimport { useTeleport } from '@/composables/teleport'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { useToggleScope } from '@/composables/toggleScope'\nimport { makeTransitionProps, MaybeTransition } from '@/composables/transition'\n\n// Directives\nimport { ClickOutside } from '@/directives/click-outside'\n\n// Utilities\nimport {\n computed,\n mergeProps,\n onBeforeUnmount,\n ref,\n Teleport,\n toRef,\n Transition,\n watch,\n} from 'vue'\nimport {\n animate,\n convertToUnit,\n genericComponent,\n getScrollParent,\n IN_BROWSER,\n propsFactory,\n standardEasing,\n useRender,\n} from '@/util'\n\n// Types\nimport type { PropType, Ref } from 'vue'\nimport type { BackgroundColorData } from '@/composables/color'\nimport type { TemplateRef } from '@/util'\n\ninterface ScrimProps {\n [key: string]: unknown\n modelValue: boolean\n color: BackgroundColorData\n}\nfunction Scrim (props: ScrimProps) {\n const { modelValue, color, ...rest } = props\n return (\n <Transition name=\"fade-transition\" appear>\n { props.modelValue && (\n <div\n class={[\n 'v-overlay__scrim',\n props.color.backgroundColorClasses.value,\n ]}\n style={ props.color.backgroundColorStyles.value }\n { ...rest }\n />\n )}\n </Transition>\n )\n}\n\nexport type OverlaySlots = {\n default: { isActive: Ref<boolean> }\n activator: { isActive: boolean, props: Record<string, any>, targetRef: TemplateRef }\n}\n\nexport const makeVOverlayProps = propsFactory({\n absolute: Boolean,\n attach: [Boolean, String, Object] as PropType<boolean | string | Element>,\n closeOnBack: {\n type: Boolean,\n default: true,\n },\n contained: Boolean,\n contentClass: null,\n contentProps: null,\n disabled: Boolean,\n opacity: [Number, String],\n noClickAnimation: Boolean,\n modelValue: Boolean,\n persistent: Boolean,\n scrim: {\n type: [Boolean, String],\n default: true,\n },\n zIndex: {\n type: [Number, String],\n default: 2000,\n },\n\n ...makeActivatorProps(),\n ...makeComponentProps(),\n ...makeDimensionProps(),\n ...makeLazyProps(),\n ...makeLocationStrategyProps(),\n ...makeScrollStrategyProps(),\n ...makeThemeProps(),\n ...makeTransitionProps(),\n}, 'VOverlay')\n\nexport const VOverlay = genericComponent<OverlaySlots>()({\n name: 'VOverlay',\n\n directives: { ClickOutside },\n\n inheritAttrs: false,\n\n props: {\n _disableGlobalStack: Boolean,\n\n ...makeVOverlayProps(),\n },\n\n emits: {\n 'click:outside': (e: MouseEvent) => true,\n 'update:modelValue': (value: boolean) => true,\n afterEnter: () => true,\n afterLeave: () => true,\n },\n\n setup (props, { slots, attrs, emit }) {\n const model = useProxiedModel(props, 'modelValue')\n const isActive = computed({\n get: () => model.value,\n set: v => {\n if (!(v && props.disabled)) model.value = v\n },\n })\n const { themeClasses } = provideTheme(props)\n const { rtlClasses, isRtl } = useRtl()\n const { hasContent, onAfterLeave: _onAfterLeave } = useLazy(props, isActive)\n const scrimColor = useBackgroundColor(computed(() => {\n return typeof props.scrim === 'string' ? props.scrim : null\n }))\n const { globalTop, localTop, stackStyles } = useStack(isActive, toRef(props, 'zIndex'), props._disableGlobalStack)\n const {\n activatorEl, activatorRef,\n target, targetEl, targetRef,\n activatorEvents,\n contentEvents,\n scrimEvents,\n } = useActivator(props, { isActive, isTop: localTop })\n const { teleportTarget } = useTeleport(() => {\n const target = props.attach || props.contained\n if (target) return target\n const rootNode = activatorEl?.value?.getRootNode()\n if (rootNode instanceof ShadowRoot) return rootNode\n return false\n })\n const { dimensionStyles } = useDimension(props)\n const isMounted = useHydration()\n const { scopeId } = useScopeId()\n\n watch(() => props.disabled, v => {\n if (v) isActive.value = false\n })\n\n const root = ref<HTMLElement>()\n const scrimEl = ref<HTMLElement>()\n const contentEl = ref<HTMLElement>()\n const { contentStyles, updateLocation } = useLocationStrategies(props, {\n isRtl,\n contentEl,\n target,\n isActive,\n })\n useScrollStrategies(props, {\n root,\n contentEl,\n targetEl,\n isActive,\n updateLocation,\n })\n\n function onClickOutside (e: MouseEvent) {\n emit('click:outside', e)\n\n if (!props.persistent) isActive.value = false\n else animateClick()\n }\n\n function closeConditional (e: Event) {\n return isActive.value && globalTop.value && (\n // If using scrim, only close if clicking on it rather than anything opened on top\n !props.scrim || e.target === scrimEl.value\n )\n }\n\n IN_BROWSER && watch(isActive, val => {\n if (val) {\n window.addEventListener('keydown', onKeydown)\n } else {\n window.removeEventListener('keydown', onKeydown)\n }\n }, { immediate: true })\n\n onBeforeUnmount(() => {\n if (!IN_BROWSER) return\n\n window.removeEventListener('keydown', onKeydown)\n })\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key === 'Escape' && globalTop.value) {\n if (!props.persistent) {\n isActive.value = false\n if (contentEl.value?.contains(document.activeElement)) {\n activatorEl.value?.focus()\n }\n } else animateClick()\n }\n }\n\n const router = useRouter()\n useToggleScope(() => props.closeOnBack, () => {\n useBackButton(router, next => {\n if (globalTop.value && isActive.value) {\n next(false)\n if (!props.persistent) isActive.value = false\n else animateClick()\n } else {\n next()\n }\n })\n })\n\n const top = ref<number>()\n watch(() => isActive.value && (props.absolute || props.contained) && teleportTarget.value == null, val => {\n if (val) {\n const scrollParent = getScrollParent(root.value)\n if (scrollParent && scrollParent !== document.scrollingElement) {\n top.value = scrollParent.scrollTop\n }\n }\n })\n\n // Add a quick \"bounce\" animation to the content\n function animateClick () {\n if (props.noClickAnimation) return\n\n contentEl.value && animate(contentEl.value, [\n { transformOrigin: 'center' },\n { transform: 'scale(1.03)' },\n { transformOrigin: 'center' },\n ], {\n duration: 150,\n easing: standardEasing,\n })\n }\n\n function onAfterEnter () {\n emit('afterEnter')\n }\n\n function onAfterLeave () {\n _onAfterLeave()\n emit('afterLeave')\n }\n\n useRender(() => (\n <>\n { slots.activator?.({\n isActive: isActive.value,\n targetRef,\n props: mergeProps({\n ref: activatorRef,\n }, activatorEvents.value, props.activatorProps),\n })}\n\n { isMounted.value && hasContent.value && (\n <Teleport\n disabled={ !teleportTarget.value }\n to={ teleportTarget.value }\n >\n <div\n class={[\n 'v-overlay',\n {\n 'v-overlay--absolute': props.absolute || props.contained,\n 'v-overlay--active': isActive.value,\n 'v-overlay--contained': props.contained,\n },\n themeClasses.value,\n rtlClasses.value,\n props.class,\n ]}\n style={[\n stackStyles.value,\n {\n '--v-overlay-opacity': props.opacity,\n top: convertToUnit(top.value),\n },\n props.style,\n ]}\n ref={ root }\n { ...scopeId }\n { ...attrs }\n >\n <Scrim\n color={ scrimColor }\n modelValue={ isActive.value && !!props.scrim }\n ref={ scrimEl }\n { ...scrimEvents.value }\n />\n <MaybeTransition\n appear\n persisted\n transition={ props.transition }\n target={ target.value }\n onAfterEnter={ onAfterEnter }\n onAfterLeave={ onAfterLeave }\n >\n <div\n ref={ contentEl }\n v-show={ isActive.value }\n v-click-outside={{ handler: onClickOutside, closeConditional, include: () => [activatorEl.value] }}\n class={[\n 'v-overlay__content',\n props.contentClass,\n ]}\n style={[\n dimensionStyles.value,\n contentStyles.value,\n ]}\n { ...contentEvents.value }\n { ...props.contentProps }\n >\n { slots.default?.({ isActive }) }\n </div>\n </MaybeTransition>\n </div>\n </Teleport>\n )}\n </>\n ))\n\n return {\n activatorEl,\n scrimEl,\n target,\n animateClick,\n contentEl,\n globalTop,\n localTop,\n updateLocation,\n }\n },\n})\n\nexport type VOverlay = InstanceType<typeof VOverlay>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,yBAAyB,EAAEC,qBAAqB;AAAA,SAChDC,uBAAuB,EAAEC,mBAAmB;AAAA,SAC5CC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,kBAAkB;AAAA,SAClBC,kBAAkB;AAAA,SAClBC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,YAAY;AAAA,SACZC,aAAa,EAAEC,OAAO;AAAA,SACtBC,MAAM;AAAA,SACNC,eAAe;AAAA,SACfC,aAAa,EAAEC,SAAS;AAAA,SACxBC,UAAU;AAAA,SACVC,QAAQ;AAAA,SACRC,WAAW;AAAA,SACXC,cAAc,EAAEC,YAAY;AAAA,SAC5BC,cAAc;AAAA,SACdC,mBAAmB,EAAEC,eAAe,4CAE7C;AAAA,SACSC,YAAY,oDAErB;AACA,SACEC,QAAQ,EACRC,UAAU,EACVC,eAAe,EACfC,GAAG,EACHC,QAAQ,EACRC,KAAK,EACLC,UAAU,EACVC,KAAK,QACA,KAAK;AAAA,SAEVC,OAAO,EACPC,aAAa,EACbC,gBAAgB,EAChBC,eAAe,EACfC,UAAU,EACVC,YAAY,EACZC,cAAc,EACdC,SAAS,gCAGX;AAUA,SAASC,KAAK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XiB,OAAO;MACPf,MAAM;MACNoB,YAAY;MACZJ,SAAS;MACTrB,SAAS;MACTC,QAAQ;MACRsB;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VOverlay.mjs","names":["makeLocationStrategyProps","useLocationStrategies","makeScrollStrategyProps","useScrollStrategies","makeActivatorProps","useActivator","useBackgroundColor","makeComponentProps","makeDimensionProps","useDimension","useHydration","makeLazyProps","useLazy","useRtl","useProxiedModel","useBackButton","useRouter","useScopeId","useStack","useTeleport","makeThemeProps","provideTheme","useToggleScope","makeTransitionProps","MaybeTransition","ClickOutside","computed","mergeProps","onBeforeUnmount","ref","Teleport","toRef","Transition","watch","animate","convertToUnit","genericComponent","getCurrentInstance","getScrollParent","IN_BROWSER","propsFactory","standardEasing","useRender","Scrim","props","modelValue","color","rest","_createVNode","default","_mergeProps","backgroundColorClasses","value","backgroundColorStyles","makeVOverlayProps","absolute","Boolean","attach","String","Object","closeOnBack","type","contained","contentClass","contentProps","disabled","opacity","Number","noClickAnimation","persistent","scrim","zIndex","VOverlay","name","directives","inheritAttrs","_disableGlobalStack","emits","e","afterEnter","afterLeave","setup","_ref","slots","attrs","emit","vm","model","isActive","get","set","v","themeClasses","rtlClasses","isRtl","hasContent","onAfterLeave","_onAfterLeave","scrimColor","globalTop","localTop","stackStyles","activatorEl","activatorRef","target","targetEl","targetRef","activatorEvents","contentEvents","scrimEvents","isTop","teleportTarget","rootNode","getRootNode","proxy","$el","ShadowRoot","dimensionStyles","isMounted","scopeId","root","scrimEl","contentEl","contentStyles","updateLocation","onClickOutside","animateClick","closeConditional","MouseEvent","shadowTarget","val","window","addEventListener","onKeydown","removeEventListener","immediate","key","contains","document","activeElement","focus","router","next","top","scrollParent","scrollingElement","scrollTop","transformOrigin","transform","duration","easing","onAfterEnter","_Fragment","activator","activatorProps","class","style","transition","_withDirectives","_vShow","_resolveDirective","handler","include"],"sources":["../../../src/components/VOverlay/VOverlay.tsx"],"sourcesContent":["// Styles\nimport './VOverlay.sass'\n\n// Composables\nimport { makeLocationStrategyProps, useLocationStrategies } from './locationStrategies'\nimport { makeScrollStrategyProps, useScrollStrategies } from './scrollStrategies'\nimport { makeActivatorProps, useActivator } from './useActivator'\nimport { useBackgroundColor } from '@/composables/color'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { useHydration } from '@/composables/hydration'\nimport { makeLazyProps, useLazy } from '@/composables/lazy'\nimport { useRtl } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useBackButton, useRouter } from '@/composables/router'\nimport { useScopeId } from '@/composables/scopeId'\nimport { useStack } from '@/composables/stack'\nimport { useTeleport } from '@/composables/teleport'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { useToggleScope } from '@/composables/toggleScope'\nimport { makeTransitionProps, MaybeTransition } from '@/composables/transition'\n\n// Directives\nimport { ClickOutside } from '@/directives/click-outside'\n\n// Utilities\nimport {\n computed,\n mergeProps,\n onBeforeUnmount,\n ref,\n Teleport,\n toRef,\n Transition,\n watch,\n} from 'vue'\nimport {\n animate,\n convertToUnit,\n genericComponent,\n getCurrentInstance,\n getScrollParent,\n IN_BROWSER,\n propsFactory,\n standardEasing,\n useRender,\n} from '@/util'\n\n// Types\nimport type { PropType, Ref } from 'vue'\nimport type { BackgroundColorData } from '@/composables/color'\nimport type { TemplateRef } from '@/util'\n\ninterface ScrimProps {\n [key: string]: unknown\n modelValue: boolean\n color: BackgroundColorData\n}\nfunction Scrim (props: ScrimProps) {\n const { modelValue, color, ...rest } = props\n return (\n <Transition name=\"fade-transition\" appear>\n { props.modelValue && (\n <div\n class={[\n 'v-overlay__scrim',\n props.color.backgroundColorClasses.value,\n ]}\n style={ props.color.backgroundColorStyles.value }\n { ...rest }\n />\n )}\n </Transition>\n )\n}\n\nexport type OverlaySlots = {\n default: { isActive: Ref<boolean> }\n activator: { isActive: boolean, props: Record<string, any>, targetRef: TemplateRef }\n}\n\nexport const makeVOverlayProps = propsFactory({\n absolute: Boolean,\n attach: [Boolean, String, Object] as PropType<boolean | string | Element>,\n closeOnBack: {\n type: Boolean,\n default: true,\n },\n contained: Boolean,\n contentClass: null,\n contentProps: null,\n disabled: Boolean,\n opacity: [Number, String],\n noClickAnimation: Boolean,\n modelValue: Boolean,\n persistent: Boolean,\n scrim: {\n type: [Boolean, String],\n default: true,\n },\n zIndex: {\n type: [Number, String],\n default: 2000,\n },\n\n ...makeActivatorProps(),\n ...makeComponentProps(),\n ...makeDimensionProps(),\n ...makeLazyProps(),\n ...makeLocationStrategyProps(),\n ...makeScrollStrategyProps(),\n ...makeThemeProps(),\n ...makeTransitionProps(),\n}, 'VOverlay')\n\nexport const VOverlay = genericComponent<OverlaySlots>()({\n name: 'VOverlay',\n\n directives: { ClickOutside },\n\n inheritAttrs: false,\n\n props: {\n _disableGlobalStack: Boolean,\n\n ...makeVOverlayProps(),\n },\n\n emits: {\n 'click:outside': (e: MouseEvent) => true,\n 'update:modelValue': (value: boolean) => true,\n afterEnter: () => true,\n afterLeave: () => true,\n },\n\n setup (props, { slots, attrs, emit }) {\n const vm = getCurrentInstance('VOverlay')\n const model = useProxiedModel(props, 'modelValue')\n const isActive = computed({\n get: () => model.value,\n set: v => {\n if (!(v && props.disabled)) model.value = v\n },\n })\n const { themeClasses } = provideTheme(props)\n const { rtlClasses, isRtl } = useRtl()\n const { hasContent, onAfterLeave: _onAfterLeave } = useLazy(props, isActive)\n const scrimColor = useBackgroundColor(computed(() => {\n return typeof props.scrim === 'string' ? props.scrim : null\n }))\n const { globalTop, localTop, stackStyles } = useStack(isActive, toRef(props, 'zIndex'), props._disableGlobalStack)\n const {\n activatorEl, activatorRef,\n target, targetEl, targetRef,\n activatorEvents,\n contentEvents,\n scrimEvents,\n } = useActivator(props, { isActive, isTop: localTop })\n const { teleportTarget } = useTeleport(() => {\n const target = props.attach || props.contained\n if (target) return target\n const rootNode = activatorEl?.value?.getRootNode() || vm.proxy?.$el?.getRootNode()\n if (rootNode instanceof ShadowRoot) return rootNode\n return false\n })\n const { dimensionStyles } = useDimension(props)\n const isMounted = useHydration()\n const { scopeId } = useScopeId()\n\n watch(() => props.disabled, v => {\n if (v) isActive.value = false\n })\n\n const root = ref<HTMLElement>()\n const scrimEl = ref<HTMLElement>()\n const contentEl = ref<HTMLElement>()\n const { contentStyles, updateLocation } = useLocationStrategies(props, {\n isRtl,\n contentEl,\n target,\n isActive,\n })\n useScrollStrategies(props, {\n root,\n contentEl,\n targetEl,\n isActive,\n updateLocation,\n })\n\n function onClickOutside (e: MouseEvent) {\n emit('click:outside', e)\n\n if (!props.persistent) isActive.value = false\n else animateClick()\n }\n\n function closeConditional (e: Event) {\n return isActive.value && globalTop.value && (\n // If using scrim, only close if clicking on it rather than anything opened on top\n !props.scrim || e.target === scrimEl.value || (e instanceof MouseEvent && e.shadowTarget === scrimEl.value)\n )\n }\n\n IN_BROWSER && watch(isActive, val => {\n if (val) {\n window.addEventListener('keydown', onKeydown)\n } else {\n window.removeEventListener('keydown', onKeydown)\n }\n }, { immediate: true })\n\n onBeforeUnmount(() => {\n if (!IN_BROWSER) return\n\n window.removeEventListener('keydown', onKeydown)\n })\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key === 'Escape' && globalTop.value) {\n if (!props.persistent) {\n isActive.value = false\n if (contentEl.value?.contains(document.activeElement)) {\n activatorEl.value?.focus()\n }\n } else animateClick()\n }\n }\n\n const router = useRouter()\n useToggleScope(() => props.closeOnBack, () => {\n useBackButton(router, next => {\n if (globalTop.value && isActive.value) {\n next(false)\n if (!props.persistent) isActive.value = false\n else animateClick()\n } else {\n next()\n }\n })\n })\n\n const top = ref<number>()\n watch(() => isActive.value && (props.absolute || props.contained) && teleportTarget.value == null, val => {\n if (val) {\n const scrollParent = getScrollParent(root.value)\n if (scrollParent && scrollParent !== document.scrollingElement) {\n top.value = scrollParent.scrollTop\n }\n }\n })\n\n // Add a quick \"bounce\" animation to the content\n function animateClick () {\n if (props.noClickAnimation) return\n\n contentEl.value && animate(contentEl.value, [\n { transformOrigin: 'center' },\n { transform: 'scale(1.03)' },\n { transformOrigin: 'center' },\n ], {\n duration: 150,\n easing: standardEasing,\n })\n }\n\n function onAfterEnter () {\n emit('afterEnter')\n }\n\n function onAfterLeave () {\n _onAfterLeave()\n emit('afterLeave')\n }\n\n useRender(() => (\n <>\n { slots.activator?.({\n isActive: isActive.value,\n targetRef,\n props: mergeProps({\n ref: activatorRef,\n }, activatorEvents.value, props.activatorProps),\n })}\n\n { isMounted.value && hasContent.value && (\n <Teleport\n disabled={ !teleportTarget.value }\n to={ teleportTarget.value }\n >\n <div\n class={[\n 'v-overlay',\n {\n 'v-overlay--absolute': props.absolute || props.contained,\n 'v-overlay--active': isActive.value,\n 'v-overlay--contained': props.contained,\n },\n themeClasses.value,\n rtlClasses.value,\n props.class,\n ]}\n style={[\n stackStyles.value,\n {\n '--v-overlay-opacity': props.opacity,\n top: convertToUnit(top.value),\n },\n props.style,\n ]}\n ref={ root }\n { ...scopeId }\n { ...attrs }\n >\n <Scrim\n color={ scrimColor }\n modelValue={ isActive.value && !!props.scrim }\n ref={ scrimEl }\n { ...scrimEvents.value }\n />\n <MaybeTransition\n appear\n persisted\n transition={ props.transition }\n target={ target.value }\n onAfterEnter={ onAfterEnter }\n onAfterLeave={ onAfterLeave }\n >\n <div\n ref={ contentEl }\n v-show={ isActive.value }\n v-click-outside={{ handler: onClickOutside, closeConditional, include: () => [activatorEl.value] }}\n class={[\n 'v-overlay__content',\n props.contentClass,\n ]}\n style={[\n dimensionStyles.value,\n contentStyles.value,\n ]}\n { ...contentEvents.value }\n { ...props.contentProps }\n >\n { slots.default?.({ isActive }) }\n </div>\n </MaybeTransition>\n </div>\n </Teleport>\n )}\n </>\n ))\n\n return {\n activatorEl,\n scrimEl,\n target,\n animateClick,\n contentEl,\n globalTop,\n localTop,\n updateLocation,\n }\n },\n})\n\nexport type VOverlay = InstanceType<typeof VOverlay>\n"],"m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AAC,EACDR,KAAK,CAACgH,KAAK,CACZ;QAAA,OACKpC;MAAI,GACLD,OAAO,EACPnC,KAAK,IAAApC,YAAA,CAAAL,KAAA,EAAAO,WAAA;QAAA,SAGAgD,UAAU;QAAA,cACLV,QAAQ,CAACpC,KAAK,IAAI,CAAC,CAACR,KAAK,CAAC0B,KAAK;QAAA,OACtCmD;MAAO,GACRZ,WAAW,CAACzD,KAAK,UAAAJ,YAAA,CAAAxB,eAAA;QAAA;QAAA;QAAA,cAKToB,KAAK,CAACiH,UAAU;QAAA,UACpBrD,MAAM,CAACpD,KAAK;QAAA,gBACNmG,YAAY;QAAA,gBACZvD;MAAY;QAAA/C,OAAA,EAAAA,CAAA,MAAA6G,eAAA,CAAA9G,YAAA,QAAAE,WAAA;UAAA,OAGnBwE,SAAS;UAAA,SAGR,CACL,oBAAoB,EACpB9E,KAAK,CAACmB,YAAY,CACnB;UAAA,SACM,CACLsD,eAAe,CAACjE,KAAK,EACrBuE,aAAa,CAACvE,KAAK;QACpB,GACIwD,aAAa,CAACxD,KAAK,EACnBR,KAAK,CAACoB,YAAY,IAErBmB,KAAK,CAAClC,OAAO,GAAG;UAAEuC;QAAS,CAAC,CAAC,MAAAuE,MAAA,EAbtBvE,QAAQ,CAACpC,KAAK,IAAA4G,iBAAA,mBACN;UAAEC,OAAO,EAAEpC,cAAc;UAAEE,gBAAgB;UAAEmC,OAAO,EAAEA,CAAA,KAAM,CAAC5D,WAAW,CAAClD,KAAK;QAAE,CAAC;MAAA;IAAA,EAiB3G,EAEJ,CAAC;IAEF,OAAO;MACLkD,WAAW;MACXmB,OAAO;MACPjB,MAAM;MACNsB,YAAY;MACZJ,SAAS;MACTvB,SAAS;MACTC,QAAQ;MACRwB;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import * as vue from 'vue';
|
2
2
|
import { ComponentPropsOptions, ExtractPropTypes, ComponentPublicInstance, Ref, EffectScope, PropType } from 'vue';
|
3
3
|
|
4
|
+
type ClassValue = any;
|
5
|
+
|
4
6
|
declare const block: readonly ["top", "bottom"];
|
5
7
|
declare const inline: readonly ["start", "end", "left", "right"];
|
6
8
|
type Tblock = typeof block[number];
|
@@ -96,16 +98,16 @@ declare const VOverlay: {
|
|
96
98
|
location: Anchor;
|
97
99
|
origin: "auto" | Anchor | "overlap";
|
98
100
|
transition: string | boolean | (vue.TransitionProps & {
|
99
|
-
component?: vue.Component
|
101
|
+
component?: vue.Component;
|
100
102
|
});
|
101
103
|
zIndex: string | number;
|
102
104
|
style: vue.StyleValue;
|
103
105
|
eager: boolean;
|
104
106
|
disabled: boolean;
|
105
107
|
modelValue: boolean;
|
106
|
-
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
|
107
|
-
updateLocation: (e?: Event
|
108
|
-
}
|
108
|
+
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => undefined | {
|
109
|
+
updateLocation: (e?: Event) => void;
|
110
|
+
});
|
109
111
|
scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
|
110
112
|
activatorProps: Record<string, any>;
|
111
113
|
openOnHover: boolean;
|
@@ -192,16 +194,16 @@ declare const VOverlay: {
|
|
192
194
|
location: Anchor;
|
193
195
|
origin: "auto" | Anchor | "overlap";
|
194
196
|
transition: string | boolean | (vue.TransitionProps & {
|
195
|
-
component?: vue.Component
|
197
|
+
component?: vue.Component;
|
196
198
|
});
|
197
199
|
zIndex: string | number;
|
198
200
|
style: vue.StyleValue;
|
199
201
|
eager: boolean;
|
200
202
|
disabled: boolean;
|
201
203
|
modelValue: boolean;
|
202
|
-
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
|
203
|
-
updateLocation: (e?: Event
|
204
|
-
}
|
204
|
+
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => undefined | {
|
205
|
+
updateLocation: (e?: Event) => void;
|
206
|
+
});
|
205
207
|
scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
|
206
208
|
activatorProps: Record<string, any>;
|
207
209
|
openOnHover: boolean;
|
@@ -274,16 +276,16 @@ declare const VOverlay: {
|
|
274
276
|
location: Anchor;
|
275
277
|
origin: "auto" | Anchor | "overlap";
|
276
278
|
transition: string | boolean | (vue.TransitionProps & {
|
277
|
-
component?: vue.Component
|
279
|
+
component?: vue.Component;
|
278
280
|
});
|
279
281
|
zIndex: string | number;
|
280
282
|
style: vue.StyleValue;
|
281
283
|
eager: boolean;
|
282
284
|
disabled: boolean;
|
283
285
|
modelValue: boolean;
|
284
|
-
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
|
285
|
-
updateLocation: (e?: Event
|
286
|
-
}
|
286
|
+
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => undefined | {
|
287
|
+
updateLocation: (e?: Event) => void;
|
288
|
+
});
|
287
289
|
scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
|
288
290
|
activatorProps: Record<string, any>;
|
289
291
|
openOnClick: boolean;
|
@@ -299,16 +301,12 @@ declare const VOverlay: {
|
|
299
301
|
}, true, {}, vue.SlotsType<Partial<{
|
300
302
|
default: (arg: {
|
301
303
|
isActive: Ref<boolean>;
|
302
|
-
}) => vue.VNode
|
303
|
-
[key: string]: any;
|
304
|
-
}>[];
|
304
|
+
}) => vue.VNode[];
|
305
305
|
activator: (arg: {
|
306
306
|
isActive: boolean;
|
307
307
|
props: Record<string, any>;
|
308
308
|
targetRef: TemplateRef;
|
309
|
-
}) => vue.VNode
|
310
|
-
[key: string]: any;
|
311
|
-
}>[];
|
309
|
+
}) => vue.VNode[];
|
312
310
|
}>>, {
|
313
311
|
P: {};
|
314
312
|
B: {};
|
@@ -321,16 +319,16 @@ declare const VOverlay: {
|
|
321
319
|
location: Anchor;
|
322
320
|
origin: "auto" | Anchor | "overlap";
|
323
321
|
transition: string | boolean | (vue.TransitionProps & {
|
324
|
-
component?: vue.Component
|
322
|
+
component?: vue.Component;
|
325
323
|
});
|
326
324
|
zIndex: string | number;
|
327
325
|
style: vue.StyleValue;
|
328
326
|
eager: boolean;
|
329
327
|
disabled: boolean;
|
330
328
|
modelValue: boolean;
|
331
|
-
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
|
332
|
-
updateLocation: (e?: Event
|
333
|
-
}
|
329
|
+
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => undefined | {
|
330
|
+
updateLocation: (e?: Event) => void;
|
331
|
+
});
|
334
332
|
scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
|
335
333
|
activatorProps: Record<string, any>;
|
336
334
|
openOnHover: boolean;
|
@@ -412,16 +410,16 @@ declare const VOverlay: {
|
|
412
410
|
location: Anchor;
|
413
411
|
origin: "auto" | Anchor | "overlap";
|
414
412
|
transition: string | boolean | (vue.TransitionProps & {
|
415
|
-
component?: vue.Component
|
413
|
+
component?: vue.Component;
|
416
414
|
});
|
417
415
|
zIndex: string | number;
|
418
416
|
style: vue.StyleValue;
|
419
417
|
eager: boolean;
|
420
418
|
disabled: boolean;
|
421
419
|
modelValue: boolean;
|
422
|
-
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
|
423
|
-
updateLocation: (e?: Event
|
424
|
-
}
|
420
|
+
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => undefined | {
|
421
|
+
updateLocation: (e?: Event) => void;
|
422
|
+
});
|
425
423
|
scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
|
426
424
|
activatorProps: Record<string, any>;
|
427
425
|
openOnClick: boolean;
|
@@ -435,24 +433,24 @@ declare const VOverlay: {
|
|
435
433
|
scrim: string | boolean;
|
436
434
|
_disableGlobalStack: boolean;
|
437
435
|
}>;
|
438
|
-
__isFragment?:
|
439
|
-
__isTeleport?:
|
440
|
-
__isSuspense?:
|
436
|
+
__isFragment?: never;
|
437
|
+
__isTeleport?: never;
|
438
|
+
__isSuspense?: never;
|
441
439
|
} & vue.ComponentOptionsBase<{
|
442
440
|
absolute: boolean;
|
443
441
|
location: Anchor;
|
444
442
|
origin: "auto" | Anchor | "overlap";
|
445
443
|
transition: string | boolean | (vue.TransitionProps & {
|
446
|
-
component?: vue.Component
|
444
|
+
component?: vue.Component;
|
447
445
|
});
|
448
446
|
zIndex: string | number;
|
449
447
|
style: vue.StyleValue;
|
450
448
|
eager: boolean;
|
451
449
|
disabled: boolean;
|
452
450
|
modelValue: boolean;
|
453
|
-
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
|
454
|
-
updateLocation: (e?: Event
|
455
|
-
}
|
451
|
+
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => undefined | {
|
452
|
+
updateLocation: (e?: Event) => void;
|
453
|
+
});
|
456
454
|
scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
|
457
455
|
activatorProps: Record<string, any>;
|
458
456
|
openOnHover: boolean;
|
@@ -539,16 +537,16 @@ declare const VOverlay: {
|
|
539
537
|
location: Anchor;
|
540
538
|
origin: "auto" | Anchor | "overlap";
|
541
539
|
transition: string | boolean | (vue.TransitionProps & {
|
542
|
-
component?: vue.Component
|
540
|
+
component?: vue.Component;
|
543
541
|
});
|
544
542
|
zIndex: string | number;
|
545
543
|
style: vue.StyleValue;
|
546
544
|
eager: boolean;
|
547
545
|
disabled: boolean;
|
548
546
|
modelValue: boolean;
|
549
|
-
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
|
550
|
-
updateLocation: (e?: Event
|
551
|
-
}
|
547
|
+
locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => undefined | {
|
548
|
+
updateLocation: (e?: Event) => void;
|
549
|
+
});
|
552
550
|
scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
|
553
551
|
activatorProps: Record<string, any>;
|
554
552
|
openOnClick: boolean;
|
@@ -564,46 +562,40 @@ declare const VOverlay: {
|
|
564
562
|
}, {}, string, vue.SlotsType<Partial<{
|
565
563
|
default: (arg: {
|
566
564
|
isActive: Ref<boolean>;
|
567
|
-
}) => vue.VNode
|
568
|
-
[key: string]: any;
|
569
|
-
}>[];
|
565
|
+
}) => vue.VNode[];
|
570
566
|
activator: (arg: {
|
571
567
|
isActive: boolean;
|
572
568
|
props: Record<string, any>;
|
573
569
|
targetRef: TemplateRef;
|
574
|
-
}) => vue.VNode
|
575
|
-
[key: string]: any;
|
576
|
-
}>[];
|
570
|
+
}) => vue.VNode[];
|
577
571
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
578
572
|
transition: {
|
579
573
|
type: PropType<string | boolean | (vue.TransitionProps & {
|
580
|
-
component?: vue.Component
|
574
|
+
component?: vue.Component;
|
581
575
|
})>;
|
582
576
|
default: string;
|
583
577
|
validator: (val: unknown) => boolean;
|
584
578
|
};
|
585
579
|
theme: StringConstructor;
|
586
580
|
scrollStrategy: {
|
587
|
-
type: PropType<
|
581
|
+
type: PropType<StrategyProps["scrollStrategy"]>;
|
588
582
|
default: string;
|
589
583
|
validator: (val: any) => boolean;
|
590
584
|
};
|
591
585
|
locationStrategy: {
|
592
|
-
type: PropType<
|
593
|
-
updateLocation: (e?: Event | undefined) => void;
|
594
|
-
} | undefined)>;
|
586
|
+
type: PropType<StrategyProps$1["locationStrategy"]>;
|
595
587
|
default: string;
|
596
588
|
validator: (val: any) => boolean;
|
597
589
|
};
|
598
590
|
location: {
|
599
|
-
type: PropType<
|
591
|
+
type: PropType<StrategyProps$1["location"]>;
|
600
592
|
default: string;
|
601
593
|
};
|
602
594
|
origin: {
|
603
|
-
type: PropType<"
|
595
|
+
type: PropType<StrategyProps$1["origin"]>;
|
604
596
|
default: string;
|
605
597
|
};
|
606
|
-
offset: PropType<
|
598
|
+
offset: PropType<StrategyProps$1["offset"]>;
|
607
599
|
eager: BooleanConstructor;
|
608
600
|
height: (StringConstructor | NumberConstructor)[];
|
609
601
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
@@ -611,7 +603,7 @@ declare const VOverlay: {
|
|
611
603
|
minHeight: (StringConstructor | NumberConstructor)[];
|
612
604
|
minWidth: (StringConstructor | NumberConstructor)[];
|
613
605
|
width: (StringConstructor | NumberConstructor)[];
|
614
|
-
class: PropType<
|
606
|
+
class: PropType<ClassValue>;
|
615
607
|
style: {
|
616
608
|
type: PropType<vue.StyleValue>;
|
617
609
|
default: null;
|
@@ -635,7 +627,7 @@ declare const VOverlay: {
|
|
635
627
|
};
|
636
628
|
closeOnContentClick: BooleanConstructor;
|
637
629
|
absolute: BooleanConstructor;
|
638
|
-
attach: PropType<
|
630
|
+
attach: PropType<boolean | string | Element>;
|
639
631
|
closeOnBack: {
|
640
632
|
type: BooleanConstructor;
|
641
633
|
default: boolean;
|
@@ -660,33 +652,31 @@ declare const VOverlay: {
|
|
660
652
|
}, vue.ExtractPropTypes<{
|
661
653
|
transition: {
|
662
654
|
type: PropType<string | boolean | (vue.TransitionProps & {
|
663
|
-
component?: vue.Component
|
655
|
+
component?: vue.Component;
|
664
656
|
})>;
|
665
657
|
default: string;
|
666
658
|
validator: (val: unknown) => boolean;
|
667
659
|
};
|
668
660
|
theme: StringConstructor;
|
669
661
|
scrollStrategy: {
|
670
|
-
type: PropType<
|
662
|
+
type: PropType<StrategyProps["scrollStrategy"]>;
|
671
663
|
default: string;
|
672
664
|
validator: (val: any) => boolean;
|
673
665
|
};
|
674
666
|
locationStrategy: {
|
675
|
-
type: PropType<
|
676
|
-
updateLocation: (e?: Event | undefined) => void;
|
677
|
-
} | undefined)>;
|
667
|
+
type: PropType<StrategyProps$1["locationStrategy"]>;
|
678
668
|
default: string;
|
679
669
|
validator: (val: any) => boolean;
|
680
670
|
};
|
681
671
|
location: {
|
682
|
-
type: PropType<
|
672
|
+
type: PropType<StrategyProps$1["location"]>;
|
683
673
|
default: string;
|
684
674
|
};
|
685
675
|
origin: {
|
686
|
-
type: PropType<"
|
676
|
+
type: PropType<StrategyProps$1["origin"]>;
|
687
677
|
default: string;
|
688
678
|
};
|
689
|
-
offset: PropType<
|
679
|
+
offset: PropType<StrategyProps$1["offset"]>;
|
690
680
|
eager: BooleanConstructor;
|
691
681
|
height: (StringConstructor | NumberConstructor)[];
|
692
682
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
@@ -694,7 +684,7 @@ declare const VOverlay: {
|
|
694
684
|
minHeight: (StringConstructor | NumberConstructor)[];
|
695
685
|
minWidth: (StringConstructor | NumberConstructor)[];
|
696
686
|
width: (StringConstructor | NumberConstructor)[];
|
697
|
-
class: PropType<
|
687
|
+
class: PropType<ClassValue>;
|
698
688
|
style: {
|
699
689
|
type: PropType<vue.StyleValue>;
|
700
690
|
default: null;
|
@@ -718,7 +708,7 @@ declare const VOverlay: {
|
|
718
708
|
};
|
719
709
|
closeOnContentClick: BooleanConstructor;
|
720
710
|
absolute: BooleanConstructor;
|
721
|
-
attach: PropType<
|
711
|
+
attach: PropType<boolean | string | Element>;
|
722
712
|
closeOnBack: {
|
723
713
|
type: BooleanConstructor;
|
724
714
|
default: boolean;
|
@@ -5,8 +5,13 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
|
|
5
5
|
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
6
6
|
}
|
7
7
|
|
8
|
+
type ClassValue = any;
|
9
|
+
|
8
10
|
type Density = null | 'default' | 'comfortable' | 'compact';
|
9
11
|
|
12
|
+
declare const allowedVariants: readonly ["elevated", "flat", "tonal", "outlined", "text", "plain"];
|
13
|
+
type Variant = typeof allowedVariants[number];
|
14
|
+
|
10
15
|
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
11
16
|
declare const IconValue: PropType<IconValue>;
|
12
17
|
|
@@ -26,7 +31,7 @@ type ControlSlot = {
|
|
26
31
|
declare const VPagination: {
|
27
32
|
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
28
33
|
length: string | number;
|
29
|
-
variant:
|
34
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
30
35
|
start: string | number;
|
31
36
|
style: vue.StyleValue;
|
32
37
|
ariaLabel: string;
|
@@ -92,7 +97,7 @@ declare const VPagination: {
|
|
92
97
|
last: (value: number) => true;
|
93
98
|
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
94
99
|
length: string | number;
|
95
|
-
variant:
|
100
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
96
101
|
start: string | number;
|
97
102
|
style: vue.StyleValue;
|
98
103
|
ariaLabel: string;
|
@@ -152,7 +157,7 @@ declare const VPagination: {
|
|
152
157
|
onLast?: ((value: number) => any) | undefined;
|
153
158
|
}, {
|
154
159
|
length: string | number;
|
155
|
-
variant:
|
160
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
156
161
|
start: string | number;
|
157
162
|
style: vue.StyleValue;
|
158
163
|
ariaLabel: string;
|
@@ -176,21 +181,11 @@ declare const VPagination: {
|
|
176
181
|
lastAriaLabel: string;
|
177
182
|
showFirstLastPage: boolean;
|
178
183
|
}, true, {}, vue.SlotsType<Partial<{
|
179
|
-
item: (arg: ItemSlot) => vue.VNode
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
}>[];
|
185
|
-
prev: (arg: ControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
186
|
-
[key: string]: any;
|
187
|
-
}>[];
|
188
|
-
next: (arg: ControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
189
|
-
[key: string]: any;
|
190
|
-
}>[];
|
191
|
-
last: (arg: ControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
192
|
-
[key: string]: any;
|
193
|
-
}>[];
|
184
|
+
item: (arg: ItemSlot) => vue.VNode[];
|
185
|
+
first: (arg: ControlSlot) => vue.VNode[];
|
186
|
+
prev: (arg: ControlSlot) => vue.VNode[];
|
187
|
+
next: (arg: ControlSlot) => vue.VNode[];
|
188
|
+
last: (arg: ControlSlot) => vue.VNode[];
|
194
189
|
}>>, {
|
195
190
|
P: {};
|
196
191
|
B: {};
|
@@ -200,7 +195,7 @@ declare const VPagination: {
|
|
200
195
|
Defaults: {};
|
201
196
|
}, {
|
202
197
|
length: string | number;
|
203
|
-
variant:
|
198
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
204
199
|
start: string | number;
|
205
200
|
style: vue.StyleValue;
|
206
201
|
ariaLabel: string;
|
@@ -260,7 +255,7 @@ declare const VPagination: {
|
|
260
255
|
onLast?: ((value: number) => any) | undefined;
|
261
256
|
}, {}, {}, {}, {}, {
|
262
257
|
length: string | number;
|
263
|
-
variant:
|
258
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
264
259
|
start: string | number;
|
265
260
|
style: vue.StyleValue;
|
266
261
|
ariaLabel: string;
|
@@ -284,12 +279,12 @@ declare const VPagination: {
|
|
284
279
|
lastAriaLabel: string;
|
285
280
|
showFirstLastPage: boolean;
|
286
281
|
}>;
|
287
|
-
__isFragment?:
|
288
|
-
__isTeleport?:
|
289
|
-
__isSuspense?:
|
282
|
+
__isFragment?: never;
|
283
|
+
__isTeleport?: never;
|
284
|
+
__isSuspense?: never;
|
290
285
|
} & vue.ComponentOptionsBase<{
|
291
286
|
length: string | number;
|
292
|
-
variant:
|
287
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
293
288
|
start: string | number;
|
294
289
|
style: vue.StyleValue;
|
295
290
|
ariaLabel: string;
|
@@ -355,7 +350,7 @@ declare const VPagination: {
|
|
355
350
|
last: (value: number) => true;
|
356
351
|
}, string, {
|
357
352
|
length: string | number;
|
358
|
-
variant:
|
353
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
359
354
|
start: string | number;
|
360
355
|
style: vue.StyleValue;
|
361
356
|
ariaLabel: string;
|
@@ -379,29 +374,19 @@ declare const VPagination: {
|
|
379
374
|
lastAriaLabel: string;
|
380
375
|
showFirstLastPage: boolean;
|
381
376
|
}, {}, string, vue.SlotsType<Partial<{
|
382
|
-
item: (arg: ItemSlot) => vue.VNode
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
}>[];
|
388
|
-
prev: (arg: ControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
389
|
-
[key: string]: any;
|
390
|
-
}>[];
|
391
|
-
next: (arg: ControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
392
|
-
[key: string]: any;
|
393
|
-
}>[];
|
394
|
-
last: (arg: ControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
395
|
-
[key: string]: any;
|
396
|
-
}>[];
|
377
|
+
item: (arg: ItemSlot) => vue.VNode[];
|
378
|
+
first: (arg: ControlSlot) => vue.VNode[];
|
379
|
+
prev: (arg: ControlSlot) => vue.VNode[];
|
380
|
+
next: (arg: ControlSlot) => vue.VNode[];
|
381
|
+
last: (arg: ControlSlot) => vue.VNode[];
|
397
382
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
398
383
|
color: StringConstructor;
|
399
384
|
variant: Omit<{
|
400
|
-
type: vue.PropType<
|
385
|
+
type: vue.PropType<Variant>;
|
401
386
|
default: string;
|
402
387
|
validator: (v: any) => boolean;
|
403
388
|
}, "type" | "default"> & {
|
404
|
-
type: vue.PropType<
|
389
|
+
type: vue.PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
405
390
|
default: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
406
391
|
};
|
407
392
|
theme: StringConstructor;
|
@@ -430,7 +415,7 @@ declare const VPagination: {
|
|
430
415
|
default: string;
|
431
416
|
validator: (v: any) => boolean;
|
432
417
|
};
|
433
|
-
class: vue.PropType<
|
418
|
+
class: vue.PropType<ClassValue>;
|
434
419
|
style: {
|
435
420
|
type: vue.PropType<vue.StyleValue>;
|
436
421
|
default: null;
|
@@ -504,11 +489,11 @@ declare const VPagination: {
|
|
504
489
|
}, vue.ExtractPropTypes<{
|
505
490
|
color: StringConstructor;
|
506
491
|
variant: Omit<{
|
507
|
-
type: vue.PropType<
|
492
|
+
type: vue.PropType<Variant>;
|
508
493
|
default: string;
|
509
494
|
validator: (v: any) => boolean;
|
510
495
|
}, "type" | "default"> & {
|
511
|
-
type: vue.PropType<
|
496
|
+
type: vue.PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
512
497
|
default: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
513
498
|
};
|
514
499
|
theme: StringConstructor;
|
@@ -537,7 +522,7 @@ declare const VPagination: {
|
|
537
522
|
default: string;
|
538
523
|
validator: (v: any) => boolean;
|
539
524
|
};
|
540
|
-
class: vue.PropType<
|
525
|
+
class: vue.PropType<ClassValue>;
|
541
526
|
style: {
|
542
527
|
type: vue.PropType<vue.StyleValue>;
|
543
528
|
default: null;
|