@vuetify/nightly 3.6.3-dev.2024-05-29 → 3.6.3-dev.2024-05-30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -2
- package/dist/json/attributes.json +8 -0
- package/dist/json/importMap-labs.json +16 -16
- package/dist/json/importMap.json +152 -152
- package/dist/json/tags.json +2 -0
- package/dist/json/web-types.json +21 -1
- package/dist/vuetify-labs.css +2418 -2409
- package/dist/vuetify-labs.d.ts +18 -0
- package/dist/vuetify-labs.esm.js +5 -3
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +5 -3
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +672 -663
- package/dist/vuetify.d.ts +70 -52
- package/dist/vuetify.esm.js +5 -3
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +5 -3
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +5 -5
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VCarousel/index.d.mts +9 -0
- package/lib/components/VImg/VImg.css +9 -0
- package/lib/components/VImg/VImg.mjs +2 -0
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/VImg.sass +9 -0
- package/lib/components/VImg/index.d.mts +9 -0
- package/lib/components/index.d.mts +18 -0
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +52 -52
- package/package.json +1 -1
@@ -533,6 +533,7 @@ declare const VCarouselItem: {
|
|
533
533
|
src: string | srcObject;
|
534
534
|
disabled: boolean;
|
535
535
|
options: IntersectionObserverInit;
|
536
|
+
absolute: boolean;
|
536
537
|
inline: boolean;
|
537
538
|
cover: boolean;
|
538
539
|
tile: boolean;
|
@@ -585,6 +586,7 @@ declare const VCarouselItem: {
|
|
585
586
|
src: string | srcObject;
|
586
587
|
disabled: boolean;
|
587
588
|
options: IntersectionObserverInit;
|
589
|
+
absolute: boolean;
|
588
590
|
inline: boolean;
|
589
591
|
cover: boolean;
|
590
592
|
tile: boolean;
|
@@ -637,6 +639,7 @@ declare const VCarouselItem: {
|
|
637
639
|
src: string | srcObject;
|
638
640
|
disabled: boolean;
|
639
641
|
options: IntersectionObserverInit;
|
642
|
+
absolute: boolean;
|
640
643
|
transition: string | boolean;
|
641
644
|
rounded: string | number | boolean;
|
642
645
|
inline: boolean;
|
@@ -670,6 +673,7 @@ declare const VCarouselItem: {
|
|
670
673
|
src: string | srcObject;
|
671
674
|
disabled: boolean;
|
672
675
|
options: IntersectionObserverInit;
|
676
|
+
absolute: boolean;
|
673
677
|
inline: boolean;
|
674
678
|
cover: boolean;
|
675
679
|
tile: boolean;
|
@@ -722,6 +726,7 @@ declare const VCarouselItem: {
|
|
722
726
|
src: string | srcObject;
|
723
727
|
disabled: boolean;
|
724
728
|
options: IntersectionObserverInit;
|
729
|
+
absolute: boolean;
|
725
730
|
transition: string | boolean;
|
726
731
|
rounded: string | number | boolean;
|
727
732
|
inline: boolean;
|
@@ -739,6 +744,7 @@ declare const VCarouselItem: {
|
|
739
744
|
src: string | srcObject;
|
740
745
|
disabled: boolean;
|
741
746
|
options: IntersectionObserverInit;
|
747
|
+
absolute: boolean;
|
742
748
|
inline: boolean;
|
743
749
|
cover: boolean;
|
744
750
|
tile: boolean;
|
@@ -791,6 +797,7 @@ declare const VCarouselItem: {
|
|
791
797
|
src: string | srcObject;
|
792
798
|
disabled: boolean;
|
793
799
|
options: IntersectionObserverInit;
|
800
|
+
absolute: boolean;
|
794
801
|
transition: string | boolean;
|
795
802
|
rounded: string | number | boolean;
|
796
803
|
inline: boolean;
|
@@ -844,6 +851,7 @@ declare const VCarouselItem: {
|
|
844
851
|
aspectRatio: (StringConstructor | NumberConstructor)[];
|
845
852
|
contentClass: StringConstructor;
|
846
853
|
inline: BooleanConstructor;
|
854
|
+
absolute: BooleanConstructor;
|
847
855
|
alt: StringConstructor;
|
848
856
|
cover: BooleanConstructor;
|
849
857
|
color: StringConstructor;
|
@@ -902,6 +910,7 @@ declare const VCarouselItem: {
|
|
902
910
|
aspectRatio: (StringConstructor | NumberConstructor)[];
|
903
911
|
contentClass: StringConstructor;
|
904
912
|
inline: BooleanConstructor;
|
913
|
+
absolute: BooleanConstructor;
|
905
914
|
alt: StringConstructor;
|
906
915
|
cover: BooleanConstructor;
|
907
916
|
color: StringConstructor;
|
@@ -2,6 +2,15 @@
|
|
2
2
|
--v-theme-overlay-multiplier: 3;
|
3
3
|
z-index: 0;
|
4
4
|
}
|
5
|
+
.v-img.v-img--absolute {
|
6
|
+
height: 100%;
|
7
|
+
left: 0;
|
8
|
+
overflow: hidden;
|
9
|
+
position: absolute;
|
10
|
+
top: 0;
|
11
|
+
width: 100%;
|
12
|
+
z-index: -1;
|
13
|
+
}
|
5
14
|
.v-img--booting .v-responsive__sizer {
|
6
15
|
transition: none;
|
7
16
|
}
|
@@ -13,6 +13,7 @@ import { computed, nextTick, onBeforeMount, onBeforeUnmount, ref, shallowRef, to
|
|
13
13
|
import { convertToUnit, genericComponent, getCurrentInstance, propsFactory, SUPPORTS_INTERSECTION, useRender } from "../../util/index.mjs"; // Types
|
14
14
|
// not intended for public use, this is passed in by vuetify-loader
|
15
15
|
export const makeVImgProps = propsFactory({
|
16
|
+
absolute: Boolean,
|
16
17
|
alt: String,
|
17
18
|
cover: Boolean,
|
18
19
|
color: String,
|
@@ -269,6 +270,7 @@ export const VImg = genericComponent()({
|
|
269
270
|
const responsiveProps = VResponsive.filterProps(props);
|
270
271
|
return _withDirectives(_createVNode(VResponsive, _mergeProps({
|
271
272
|
"class": ['v-img', {
|
273
|
+
'v-img--absolute': props.absolute,
|
272
274
|
'v-img--booting': !isBooted.value
|
273
275
|
}, backgroundColorClasses.value, roundedClasses.value, props.class],
|
274
276
|
"style": [{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VImg.mjs","names":["makeVResponsiveProps","VResponsive","useBackgroundColor","makeComponentProps","makeRoundedProps","useRounded","makeTransitionProps","MaybeTransition","intersect","computed","nextTick","onBeforeMount","onBeforeUnmount","ref","shallowRef","toRef","vShow","watch","withDirectives","convertToUnit","genericComponent","getCurrentInstance","propsFactory","SUPPORTS_INTERSECTION","useRender","makeVImgProps","alt","String","cover","Boolean","color","draggable","type","default","undefined","eager","gradient","lazySrc","options","Object","root","rootMargin","threshold","sizes","src","crossorigin","referrerpolicy","srcset","position","VImg","name","directives","props","emits","loadstart","value","load","error","setup","_ref","emit","slots","backgroundColorClasses","backgroundColorStyles","roundedClasses","vm","currentSrc","image","state","naturalWidth","naturalHeight","normalisedSrc","aspect","Number","aspectRatio","init","val","oldVal","pollForSize","isIntersecting","lazyImg","Image","setTimeout","isUnmounted","complete","onError","onLoad","getSrc","img","timer","clearTimeout","timeout","arguments","length","poll","imgHeight","imgWidth","window","endsWith","startsWith","containClasses","__image","_createVNode","objectPosition","sources","transition","__preloadImage","__placeholder","placeholder","__error","__gradient","backgroundImage","isBooted","stop","requestAnimationFrame","responsiveProps","filterProps","_withDirectives","_mergeProps","class","width","style","additional","_Fragment","_resolveDirective","handler","once"],"sources":["../../../src/components/VImg/VImg.tsx"],"sourcesContent":["// Styles\nimport './VImg.sass'\n\n// Components\nimport { makeVResponsiveProps, VResponsive } from '@/components/VResponsive/VResponsive'\n\n// Composables\nimport { useBackgroundColor } from '@/composables/color'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeRoundedProps, useRounded } from '@/composables/rounded'\nimport { makeTransitionProps, MaybeTransition } from '@/composables/transition'\n\n// Directives\nimport intersect from '@/directives/intersect'\n\n// Utilities\nimport {\n computed,\n nextTick,\n onBeforeMount,\n onBeforeUnmount,\n ref,\n shallowRef,\n toRef,\n vShow,\n watch,\n withDirectives,\n} from 'vue'\nimport {\n convertToUnit,\n genericComponent,\n getCurrentInstance,\n propsFactory,\n SUPPORTS_INTERSECTION,\n useRender,\n} from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\n// not intended for public use, this is passed in by vuetify-loader\nexport interface srcObject {\n src?: string\n srcset?: string\n lazySrc?: string\n aspect: number\n}\n\nexport type VImgSlots = {\n default: never\n placeholder: never\n error: never\n sources: never\n}\n\nexport const makeVImgProps = propsFactory({\n alt: String,\n cover: Boolean,\n color: String,\n draggable: {\n type: [Boolean, String] as PropType<boolean | 'true' | 'false'>,\n default: undefined,\n },\n eager: Boolean,\n gradient: String,\n lazySrc: String,\n options: {\n type: Object as PropType<IntersectionObserverInit>,\n // For more information on types, navigate to:\n // https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API\n default: () => ({\n root: undefined,\n rootMargin: undefined,\n threshold: undefined,\n }),\n },\n sizes: String,\n src: {\n type: [String, Object] as PropType<string | srcObject>,\n default: '',\n },\n crossorigin: String as PropType<'' | 'anonymous' | 'use-credentials'>,\n referrerpolicy: String as PropType<\n | 'no-referrer'\n | 'no-referrer-when-downgrade'\n | 'origin'\n | 'origin-when-cross-origin'\n | 'same-origin'\n | 'strict-origin'\n | 'strict-origin-when-cross-origin'\n | 'unsafe-url'\n >,\n srcset: String,\n position: String,\n\n ...makeVResponsiveProps(),\n ...makeComponentProps(),\n ...makeRoundedProps(),\n ...makeTransitionProps(),\n}, 'VImg')\n\nexport const VImg = genericComponent<VImgSlots>()({\n name: 'VImg',\n\n directives: { intersect },\n\n props: makeVImgProps(),\n\n emits: {\n loadstart: (value: string | undefined) => true,\n load: (value: string | undefined) => true,\n error: (value: string | undefined) => true,\n },\n\n setup (props, { emit, slots }) {\n const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(toRef(props, 'color'))\n const { roundedClasses } = useRounded(props)\n const vm = getCurrentInstance('VImg')\n\n const currentSrc = shallowRef('') // Set from srcset\n const image = ref<HTMLImageElement>()\n const state = shallowRef<'idle' | 'loading' | 'loaded' | 'error'>(props.eager ? 'loading' : 'idle')\n const naturalWidth = shallowRef<number>()\n const naturalHeight = shallowRef<number>()\n\n const normalisedSrc = computed<srcObject>(() => {\n return props.src && typeof props.src === 'object'\n ? {\n src: props.src.src,\n srcset: props.srcset || props.src.srcset,\n lazySrc: props.lazySrc || props.src.lazySrc,\n aspect: Number(props.aspectRatio || props.src.aspect || 0),\n } : {\n src: props.src,\n srcset: props.srcset,\n lazySrc: props.lazySrc,\n aspect: Number(props.aspectRatio || 0),\n }\n })\n const aspectRatio = computed(() => {\n return normalisedSrc.value.aspect || naturalWidth.value! / naturalHeight.value! || 0\n })\n\n watch(() => props.src, () => {\n init(state.value !== 'idle')\n })\n watch(aspectRatio, (val, oldVal) => {\n if (!val && oldVal && image.value) {\n pollForSize(image.value)\n }\n })\n\n // TODO: getSrc when window width changes\n\n onBeforeMount(() => init())\n\n function init (isIntersecting?: boolean) {\n if (props.eager && isIntersecting) return\n if (\n SUPPORTS_INTERSECTION &&\n !isIntersecting &&\n !props.eager\n ) return\n\n state.value = 'loading'\n\n if (normalisedSrc.value.lazySrc) {\n const lazyImg = new Image()\n lazyImg.src = normalisedSrc.value.lazySrc\n pollForSize(lazyImg, null)\n }\n\n if (!normalisedSrc.value.src) return\n\n nextTick(() => {\n emit('loadstart', image.value?.currentSrc || normalisedSrc.value.src)\n\n setTimeout(() => {\n if (vm.isUnmounted) return\n\n if (image.value?.complete) {\n if (!image.value.naturalWidth) {\n onError()\n }\n\n if (state.value === 'error') return\n\n if (!aspectRatio.value) pollForSize(image.value, null)\n if (state.value === 'loading') onLoad()\n } else {\n if (!aspectRatio.value) pollForSize(image.value!)\n getSrc()\n }\n })\n })\n }\n\n function onLoad () {\n if (vm.isUnmounted) return\n\n getSrc()\n pollForSize(image.value!)\n state.value = 'loaded'\n emit('load', image.value?.currentSrc || normalisedSrc.value.src)\n }\n\n function onError () {\n if (vm.isUnmounted) return\n\n state.value = 'error'\n emit('error', image.value?.currentSrc || normalisedSrc.value.src)\n }\n\n function getSrc () {\n const img = image.value\n if (img) currentSrc.value = img.currentSrc || img.src\n }\n\n let timer = -1\n\n onBeforeUnmount(() => {\n clearTimeout(timer)\n })\n\n function pollForSize (img: HTMLImageElement, timeout: number | null = 100) {\n const poll = () => {\n clearTimeout(timer)\n if (vm.isUnmounted) return\n\n const { naturalHeight: imgHeight, naturalWidth: imgWidth } = img\n\n if (imgHeight || imgWidth) {\n naturalWidth.value = imgWidth\n naturalHeight.value = imgHeight\n } else if (!img.complete && state.value === 'loading' && timeout != null) {\n timer = window.setTimeout(poll, timeout)\n } else if (img.currentSrc.endsWith('.svg') || img.currentSrc.startsWith('data:image/svg+xml')) {\n naturalWidth.value = 1\n naturalHeight.value = 1\n }\n }\n\n poll()\n }\n\n const containClasses = computed(() => ({\n 'v-img__img--cover': props.cover,\n 'v-img__img--contain': !props.cover,\n }))\n\n const __image = () => {\n if (!normalisedSrc.value.src || state.value === 'idle') return null\n\n const img = (\n <img\n class={['v-img__img', containClasses.value]}\n style={{ objectPosition: props.position }}\n src={ normalisedSrc.value.src }\n srcset={ normalisedSrc.value.srcset }\n alt={ props.alt }\n crossorigin={ props.crossorigin }\n referrerpolicy={ props.referrerpolicy }\n draggable={ props.draggable }\n sizes={ props.sizes }\n ref={ image }\n onLoad={ onLoad }\n onError={ onError }\n />\n )\n\n const sources = slots.sources?.()\n\n return (\n <MaybeTransition transition={ props.transition } appear>\n {\n withDirectives(\n sources\n ? <picture class=\"v-img__picture\">{ sources }{ img }</picture>\n : img,\n [[vShow, state.value === 'loaded']]\n )\n }\n </MaybeTransition>\n )\n }\n\n const __preloadImage = () => (\n <MaybeTransition transition={ props.transition }>\n { normalisedSrc.value.lazySrc && state.value !== 'loaded' && (\n <img\n class={['v-img__img', 'v-img__img--preload', containClasses.value]}\n style={{ objectPosition: props.position }}\n src={ normalisedSrc.value.lazySrc }\n alt={ props.alt }\n crossorigin={ props.crossorigin }\n referrerpolicy={ props.referrerpolicy }\n draggable={ props.draggable }\n />\n )}\n </MaybeTransition>\n )\n\n const __placeholder = () => {\n if (!slots.placeholder) return null\n\n return (\n <MaybeTransition transition={ props.transition } appear>\n { (state.value === 'loading' || (state.value === 'error' && !slots.error)) &&\n <div class=\"v-img__placeholder\">{ slots.placeholder() }</div>\n }\n </MaybeTransition>\n )\n }\n\n const __error = () => {\n if (!slots.error) return null\n\n return (\n <MaybeTransition transition={ props.transition } appear>\n { state.value === 'error' &&\n <div class=\"v-img__error\">{ slots.error() }</div>\n }\n </MaybeTransition>\n )\n }\n\n const __gradient = () => {\n if (!props.gradient) return null\n\n return <div class=\"v-img__gradient\" style={{ backgroundImage: `linear-gradient(${props.gradient})` }} />\n }\n\n const isBooted = shallowRef(false)\n {\n const stop = watch(aspectRatio, val => {\n if (val) {\n // Doesn't work with nextTick, idk why\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n isBooted.value = true\n })\n })\n stop()\n }\n })\n }\n\n useRender(() => {\n const responsiveProps = VResponsive.filterProps(props)\n return (\n <VResponsive\n class={[\n 'v-img',\n { 'v-img--booting': !isBooted.value },\n backgroundColorClasses.value,\n roundedClasses.value,\n props.class,\n ]}\n style={[\n { width: convertToUnit(props.width === 'auto' ? naturalWidth.value : props.width) },\n backgroundColorStyles.value,\n props.style,\n ]}\n { ...responsiveProps }\n aspectRatio={ aspectRatio.value }\n aria-label={ props.alt }\n role={ props.alt ? 'img' : undefined }\n v-intersect={[{\n handler: init,\n options: props.options,\n }, null, ['once']]}\n >{{\n additional: () => (\n <>\n <__image />\n <__preloadImage />\n <__gradient />\n <__placeholder />\n <__error />\n </>\n ),\n default: slots.default,\n }}</VResponsive>\n )\n })\n\n return {\n currentSrc,\n image,\n state,\n naturalWidth,\n naturalHeight,\n }\n },\n})\n\nexport type VImg = InstanceType<typeof VImg>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,oBAAoB,EAAEC,WAAW,0CAE1C;AAAA,SACSC,kBAAkB;AAAA,SAClBC,kBAAkB;AAAA,SAClBC,gBAAgB,EAAEC,UAAU;AAAA,SAC5BC,mBAAmB,EAAEC,eAAe,4CAE7C;AAAA,OACOC,SAAS,8CAEhB;AACA,SACE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B,KAAK;QAAA,cAClBH,KAAK,CAAC1B,GAAG;QAAA,QACf0B,KAAK,CAAC1B,GAAG,GAAG,KAAK,GAAGQ;MAAS;QAMpCwF,UAAU,EAAEA,CAAA,KAAApB,YAAA,CAAAqB,SAAA,SAAArB,YAAA,CAAAD,OAAA,eAAAC,YAAA,CAAAI,cAAA,eAAAJ,YAAA,CAAAQ,UAAA,eAAAR,YAAA,CAAAK,aAAA,eAAAL,YAAA,CAAAO,OAAA,eAQX;QACD5E,OAAO,EAAE4B,KAAK,CAAC5B;MAAO,MAAA2F,iBAAA,eAdR;QACZC,OAAO,EAAElD,IAAI;QACbrC,OAAO,EAAEc,KAAK,CAACd;MACjB,CAAC,EAAE,IAAI;QAAAwF,IAAA;MAAA;IAcb,CAAC,CAAC;IAEF,OAAO;MACL5D,UAAU;MACVC,KAAK;MACLC,KAAK;MACLC,YAAY;MACZC;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VImg.mjs","names":["makeVResponsiveProps","VResponsive","useBackgroundColor","makeComponentProps","makeRoundedProps","useRounded","makeTransitionProps","MaybeTransition","intersect","computed","nextTick","onBeforeMount","onBeforeUnmount","ref","shallowRef","toRef","vShow","watch","withDirectives","convertToUnit","genericComponent","getCurrentInstance","propsFactory","SUPPORTS_INTERSECTION","useRender","makeVImgProps","absolute","Boolean","alt","String","cover","color","draggable","type","default","undefined","eager","gradient","lazySrc","options","Object","root","rootMargin","threshold","sizes","src","crossorigin","referrerpolicy","srcset","position","VImg","name","directives","props","emits","loadstart","value","load","error","setup","_ref","emit","slots","backgroundColorClasses","backgroundColorStyles","roundedClasses","vm","currentSrc","image","state","naturalWidth","naturalHeight","normalisedSrc","aspect","Number","aspectRatio","init","val","oldVal","pollForSize","isIntersecting","lazyImg","Image","setTimeout","isUnmounted","complete","onError","onLoad","getSrc","img","timer","clearTimeout","timeout","arguments","length","poll","imgHeight","imgWidth","window","endsWith","startsWith","containClasses","__image","_createVNode","objectPosition","sources","transition","__preloadImage","__placeholder","placeholder","__error","__gradient","backgroundImage","isBooted","stop","requestAnimationFrame","responsiveProps","filterProps","_withDirectives","_mergeProps","class","width","style","additional","_Fragment","_resolveDirective","handler","once"],"sources":["../../../src/components/VImg/VImg.tsx"],"sourcesContent":["// Styles\nimport './VImg.sass'\n\n// Components\nimport { makeVResponsiveProps, VResponsive } from '@/components/VResponsive/VResponsive'\n\n// Composables\nimport { useBackgroundColor } from '@/composables/color'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeRoundedProps, useRounded } from '@/composables/rounded'\nimport { makeTransitionProps, MaybeTransition } from '@/composables/transition'\n\n// Directives\nimport intersect from '@/directives/intersect'\n\n// Utilities\nimport {\n computed,\n nextTick,\n onBeforeMount,\n onBeforeUnmount,\n ref,\n shallowRef,\n toRef,\n vShow,\n watch,\n withDirectives,\n} from 'vue'\nimport {\n convertToUnit,\n genericComponent,\n getCurrentInstance,\n propsFactory,\n SUPPORTS_INTERSECTION,\n useRender,\n} from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\n// not intended for public use, this is passed in by vuetify-loader\nexport interface srcObject {\n src?: string\n srcset?: string\n lazySrc?: string\n aspect: number\n}\n\nexport type VImgSlots = {\n default: never\n placeholder: never\n error: never\n sources: never\n}\n\nexport const makeVImgProps = propsFactory({\n absolute: Boolean,\n alt: String,\n cover: Boolean,\n color: String,\n draggable: {\n type: [Boolean, String] as PropType<boolean | 'true' | 'false'>,\n default: undefined,\n },\n eager: Boolean,\n gradient: String,\n lazySrc: String,\n options: {\n type: Object as PropType<IntersectionObserverInit>,\n // For more information on types, navigate to:\n // https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API\n default: () => ({\n root: undefined,\n rootMargin: undefined,\n threshold: undefined,\n }),\n },\n sizes: String,\n src: {\n type: [String, Object] as PropType<string | srcObject>,\n default: '',\n },\n crossorigin: String as PropType<'' | 'anonymous' | 'use-credentials'>,\n referrerpolicy: String as PropType<\n | 'no-referrer'\n | 'no-referrer-when-downgrade'\n | 'origin'\n | 'origin-when-cross-origin'\n | 'same-origin'\n | 'strict-origin'\n | 'strict-origin-when-cross-origin'\n | 'unsafe-url'\n >,\n srcset: String,\n position: String,\n\n ...makeVResponsiveProps(),\n ...makeComponentProps(),\n ...makeRoundedProps(),\n ...makeTransitionProps(),\n}, 'VImg')\n\nexport const VImg = genericComponent<VImgSlots>()({\n name: 'VImg',\n\n directives: { intersect },\n\n props: makeVImgProps(),\n\n emits: {\n loadstart: (value: string | undefined) => true,\n load: (value: string | undefined) => true,\n error: (value: string | undefined) => true,\n },\n\n setup (props, { emit, slots }) {\n const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(toRef(props, 'color'))\n const { roundedClasses } = useRounded(props)\n const vm = getCurrentInstance('VImg')\n\n const currentSrc = shallowRef('') // Set from srcset\n const image = ref<HTMLImageElement>()\n const state = shallowRef<'idle' | 'loading' | 'loaded' | 'error'>(props.eager ? 'loading' : 'idle')\n const naturalWidth = shallowRef<number>()\n const naturalHeight = shallowRef<number>()\n\n const normalisedSrc = computed<srcObject>(() => {\n return props.src && typeof props.src === 'object'\n ? {\n src: props.src.src,\n srcset: props.srcset || props.src.srcset,\n lazySrc: props.lazySrc || props.src.lazySrc,\n aspect: Number(props.aspectRatio || props.src.aspect || 0),\n } : {\n src: props.src,\n srcset: props.srcset,\n lazySrc: props.lazySrc,\n aspect: Number(props.aspectRatio || 0),\n }\n })\n const aspectRatio = computed(() => {\n return normalisedSrc.value.aspect || naturalWidth.value! / naturalHeight.value! || 0\n })\n\n watch(() => props.src, () => {\n init(state.value !== 'idle')\n })\n watch(aspectRatio, (val, oldVal) => {\n if (!val && oldVal && image.value) {\n pollForSize(image.value)\n }\n })\n\n // TODO: getSrc when window width changes\n\n onBeforeMount(() => init())\n\n function init (isIntersecting?: boolean) {\n if (props.eager && isIntersecting) return\n if (\n SUPPORTS_INTERSECTION &&\n !isIntersecting &&\n !props.eager\n ) return\n\n state.value = 'loading'\n\n if (normalisedSrc.value.lazySrc) {\n const lazyImg = new Image()\n lazyImg.src = normalisedSrc.value.lazySrc\n pollForSize(lazyImg, null)\n }\n\n if (!normalisedSrc.value.src) return\n\n nextTick(() => {\n emit('loadstart', image.value?.currentSrc || normalisedSrc.value.src)\n\n setTimeout(() => {\n if (vm.isUnmounted) return\n\n if (image.value?.complete) {\n if (!image.value.naturalWidth) {\n onError()\n }\n\n if (state.value === 'error') return\n\n if (!aspectRatio.value) pollForSize(image.value, null)\n if (state.value === 'loading') onLoad()\n } else {\n if (!aspectRatio.value) pollForSize(image.value!)\n getSrc()\n }\n })\n })\n }\n\n function onLoad () {\n if (vm.isUnmounted) return\n\n getSrc()\n pollForSize(image.value!)\n state.value = 'loaded'\n emit('load', image.value?.currentSrc || normalisedSrc.value.src)\n }\n\n function onError () {\n if (vm.isUnmounted) return\n\n state.value = 'error'\n emit('error', image.value?.currentSrc || normalisedSrc.value.src)\n }\n\n function getSrc () {\n const img = image.value\n if (img) currentSrc.value = img.currentSrc || img.src\n }\n\n let timer = -1\n\n onBeforeUnmount(() => {\n clearTimeout(timer)\n })\n\n function pollForSize (img: HTMLImageElement, timeout: number | null = 100) {\n const poll = () => {\n clearTimeout(timer)\n if (vm.isUnmounted) return\n\n const { naturalHeight: imgHeight, naturalWidth: imgWidth } = img\n\n if (imgHeight || imgWidth) {\n naturalWidth.value = imgWidth\n naturalHeight.value = imgHeight\n } else if (!img.complete && state.value === 'loading' && timeout != null) {\n timer = window.setTimeout(poll, timeout)\n } else if (img.currentSrc.endsWith('.svg') || img.currentSrc.startsWith('data:image/svg+xml')) {\n naturalWidth.value = 1\n naturalHeight.value = 1\n }\n }\n\n poll()\n }\n\n const containClasses = computed(() => ({\n 'v-img__img--cover': props.cover,\n 'v-img__img--contain': !props.cover,\n }))\n\n const __image = () => {\n if (!normalisedSrc.value.src || state.value === 'idle') return null\n\n const img = (\n <img\n class={['v-img__img', containClasses.value]}\n style={{ objectPosition: props.position }}\n src={ normalisedSrc.value.src }\n srcset={ normalisedSrc.value.srcset }\n alt={ props.alt }\n crossorigin={ props.crossorigin }\n referrerpolicy={ props.referrerpolicy }\n draggable={ props.draggable }\n sizes={ props.sizes }\n ref={ image }\n onLoad={ onLoad }\n onError={ onError }\n />\n )\n\n const sources = slots.sources?.()\n\n return (\n <MaybeTransition transition={ props.transition } appear>\n {\n withDirectives(\n sources\n ? <picture class=\"v-img__picture\">{ sources }{ img }</picture>\n : img,\n [[vShow, state.value === 'loaded']]\n )\n }\n </MaybeTransition>\n )\n }\n\n const __preloadImage = () => (\n <MaybeTransition transition={ props.transition }>\n { normalisedSrc.value.lazySrc && state.value !== 'loaded' && (\n <img\n class={['v-img__img', 'v-img__img--preload', containClasses.value]}\n style={{ objectPosition: props.position }}\n src={ normalisedSrc.value.lazySrc }\n alt={ props.alt }\n crossorigin={ props.crossorigin }\n referrerpolicy={ props.referrerpolicy }\n draggable={ props.draggable }\n />\n )}\n </MaybeTransition>\n )\n\n const __placeholder = () => {\n if (!slots.placeholder) return null\n\n return (\n <MaybeTransition transition={ props.transition } appear>\n { (state.value === 'loading' || (state.value === 'error' && !slots.error)) &&\n <div class=\"v-img__placeholder\">{ slots.placeholder() }</div>\n }\n </MaybeTransition>\n )\n }\n\n const __error = () => {\n if (!slots.error) return null\n\n return (\n <MaybeTransition transition={ props.transition } appear>\n { state.value === 'error' &&\n <div class=\"v-img__error\">{ slots.error() }</div>\n }\n </MaybeTransition>\n )\n }\n\n const __gradient = () => {\n if (!props.gradient) return null\n\n return <div class=\"v-img__gradient\" style={{ backgroundImage: `linear-gradient(${props.gradient})` }} />\n }\n\n const isBooted = shallowRef(false)\n {\n const stop = watch(aspectRatio, val => {\n if (val) {\n // Doesn't work with nextTick, idk why\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n isBooted.value = true\n })\n })\n stop()\n }\n })\n }\n\n useRender(() => {\n const responsiveProps = VResponsive.filterProps(props)\n return (\n <VResponsive\n class={[\n 'v-img',\n {\n 'v-img--absolute': props.absolute,\n 'v-img--booting': !isBooted.value,\n },\n backgroundColorClasses.value,\n roundedClasses.value,\n props.class,\n ]}\n style={[\n { width: convertToUnit(props.width === 'auto' ? naturalWidth.value : props.width) },\n backgroundColorStyles.value,\n props.style,\n ]}\n { ...responsiveProps }\n aspectRatio={ aspectRatio.value }\n aria-label={ props.alt }\n role={ props.alt ? 'img' : undefined }\n v-intersect={[{\n handler: init,\n options: props.options,\n }, null, ['once']]}\n >{{\n additional: () => (\n <>\n <__image />\n <__preloadImage />\n <__gradient />\n <__placeholder />\n <__error />\n </>\n ),\n default: slots.default,\n }}</VResponsive>\n )\n })\n\n return {\n currentSrc,\n image,\n state,\n naturalWidth,\n naturalHeight,\n }\n },\n})\n\nexport type VImg = InstanceType<typeof VImg>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,oBAAoB,EAAEC,WAAW,0CAE1C;AAAA,SACSC,kBAAkB;AAAA,SAClBC,kBAAkB;AAAA,SAClBC,gBAAgB,EAAEC,UAAU;AAAA,SAC5BC,mBAAmB,EAAEC,eAAe,4CAE7C;AAAA,OACOC,SAAS,8CAEhB;AACA,SACEC,QAAQ,EACRC,QAAQ,EACRC,aAAa,EACbC,eAAe,EACfC,GAAG,EACHC,UAAU,EACVC,KAAK,EACLC,KAAK,EACLC,KAAK,EACLC,cAAc,QACT,KAAK;AAAA,SAEVC,aAAa,EACbC,gBAAgB,EAChBC,kBAAkB,EAClBC,YAAY,EACZC,qBAAqB,EACrBC,SAAS,gCAGX;AAGA;AAeA,OAAO,MAAMC,aAAa,GAAGH,YAAY,CAAC;EACxCI,QAAQ,EAAEC,OAAO;EACjBC,GAAG,EAAEC,MAAM;EACXC,KAAK,EAAEH,OAAO;EACdI,KAAK,EAAEF,MAAM;EACbG,SAAS,EAAE;IACTC,IAAI,EAAE,CAACN,OAAO,EAAEE,MAAM,CAAyC;IAC/DK,OAAO,EAAEC;EACX,CAAC;EACDC,KAAK,EAAET,OAAO;EACdU,QAAQ,EAAER,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;MAAA;IAcb,CAAC,CAAC;IAEF,OAAO;MACL5D,UAAU;MACVC,KAAK;MACLC,KAAK;MACLC,YAAY;MACZC;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -16,6 +16,7 @@ declare const VImg: {
|
|
16
16
|
style: vue.StyleValue;
|
17
17
|
src: string | srcObject;
|
18
18
|
options: IntersectionObserverInit;
|
19
|
+
absolute: boolean;
|
19
20
|
transition: string | boolean | (vue.TransitionProps & {
|
20
21
|
component?: vue.Component | undefined;
|
21
22
|
});
|
@@ -80,6 +81,7 @@ declare const VImg: {
|
|
80
81
|
style: vue.StyleValue;
|
81
82
|
src: string | srcObject;
|
82
83
|
options: IntersectionObserverInit;
|
84
|
+
absolute: boolean;
|
83
85
|
transition: string | boolean | (vue.TransitionProps & {
|
84
86
|
component?: vue.Component | undefined;
|
85
87
|
});
|
@@ -134,6 +136,7 @@ declare const VImg: {
|
|
134
136
|
style: vue.StyleValue;
|
135
137
|
src: string | srcObject;
|
136
138
|
options: IntersectionObserverInit;
|
139
|
+
absolute: boolean;
|
137
140
|
transition: string | boolean | (vue.TransitionProps & {
|
138
141
|
component?: vue.Component | undefined;
|
139
142
|
});
|
@@ -167,6 +170,7 @@ declare const VImg: {
|
|
167
170
|
style: vue.StyleValue;
|
168
171
|
src: string | srcObject;
|
169
172
|
options: IntersectionObserverInit;
|
173
|
+
absolute: boolean;
|
170
174
|
transition: string | boolean | (vue.TransitionProps & {
|
171
175
|
component?: vue.Component | undefined;
|
172
176
|
});
|
@@ -227,6 +231,7 @@ declare const VImg: {
|
|
227
231
|
style: vue.StyleValue;
|
228
232
|
src: string | srcObject;
|
229
233
|
options: IntersectionObserverInit;
|
234
|
+
absolute: boolean;
|
230
235
|
transition: string | boolean | (vue.TransitionProps & {
|
231
236
|
component?: vue.Component | undefined;
|
232
237
|
});
|
@@ -244,6 +249,7 @@ declare const VImg: {
|
|
244
249
|
style: vue.StyleValue;
|
245
250
|
src: string | srcObject;
|
246
251
|
options: IntersectionObserverInit;
|
252
|
+
absolute: boolean;
|
247
253
|
transition: string | boolean | (vue.TransitionProps & {
|
248
254
|
component?: vue.Component | undefined;
|
249
255
|
});
|
@@ -308,6 +314,7 @@ declare const VImg: {
|
|
308
314
|
style: vue.StyleValue;
|
309
315
|
src: string | srcObject;
|
310
316
|
options: IntersectionObserverInit;
|
317
|
+
absolute: boolean;
|
311
318
|
transition: string | boolean | (vue.TransitionProps & {
|
312
319
|
component?: vue.Component | undefined;
|
313
320
|
});
|
@@ -357,6 +364,7 @@ declare const VImg: {
|
|
357
364
|
aspectRatio: (StringConstructor | NumberConstructor)[];
|
358
365
|
contentClass: StringConstructor;
|
359
366
|
inline: BooleanConstructor;
|
367
|
+
absolute: BooleanConstructor;
|
360
368
|
alt: StringConstructor;
|
361
369
|
cover: BooleanConstructor;
|
362
370
|
color: StringConstructor;
|
@@ -411,6 +419,7 @@ declare const VImg: {
|
|
411
419
|
aspectRatio: (StringConstructor | NumberConstructor)[];
|
412
420
|
contentClass: StringConstructor;
|
413
421
|
inline: BooleanConstructor;
|
422
|
+
absolute: BooleanConstructor;
|
414
423
|
alt: StringConstructor;
|
415
424
|
cover: BooleanConstructor;
|
416
425
|
color: StringConstructor;
|
@@ -14238,6 +14238,7 @@ declare const VImg: {
|
|
14238
14238
|
style: vue.StyleValue;
|
14239
14239
|
src: string | srcObject;
|
14240
14240
|
options: IntersectionObserverInit;
|
14241
|
+
absolute: boolean;
|
14241
14242
|
transition: string | boolean | (vue.TransitionProps & {
|
14242
14243
|
component?: vue.Component | undefined;
|
14243
14244
|
});
|
@@ -14302,6 +14303,7 @@ declare const VImg: {
|
|
14302
14303
|
style: vue.StyleValue;
|
14303
14304
|
src: string | srcObject;
|
14304
14305
|
options: IntersectionObserverInit;
|
14306
|
+
absolute: boolean;
|
14305
14307
|
transition: string | boolean | (vue.TransitionProps & {
|
14306
14308
|
component?: vue.Component | undefined;
|
14307
14309
|
});
|
@@ -14356,6 +14358,7 @@ declare const VImg: {
|
|
14356
14358
|
style: vue.StyleValue;
|
14357
14359
|
src: string | srcObject;
|
14358
14360
|
options: IntersectionObserverInit;
|
14361
|
+
absolute: boolean;
|
14359
14362
|
transition: string | boolean | (vue.TransitionProps & {
|
14360
14363
|
component?: vue.Component | undefined;
|
14361
14364
|
});
|
@@ -14389,6 +14392,7 @@ declare const VImg: {
|
|
14389
14392
|
style: vue.StyleValue;
|
14390
14393
|
src: string | srcObject;
|
14391
14394
|
options: IntersectionObserverInit;
|
14395
|
+
absolute: boolean;
|
14392
14396
|
transition: string | boolean | (vue.TransitionProps & {
|
14393
14397
|
component?: vue.Component | undefined;
|
14394
14398
|
});
|
@@ -14449,6 +14453,7 @@ declare const VImg: {
|
|
14449
14453
|
style: vue.StyleValue;
|
14450
14454
|
src: string | srcObject;
|
14451
14455
|
options: IntersectionObserverInit;
|
14456
|
+
absolute: boolean;
|
14452
14457
|
transition: string | boolean | (vue.TransitionProps & {
|
14453
14458
|
component?: vue.Component | undefined;
|
14454
14459
|
});
|
@@ -14466,6 +14471,7 @@ declare const VImg: {
|
|
14466
14471
|
style: vue.StyleValue;
|
14467
14472
|
src: string | srcObject;
|
14468
14473
|
options: IntersectionObserverInit;
|
14474
|
+
absolute: boolean;
|
14469
14475
|
transition: string | boolean | (vue.TransitionProps & {
|
14470
14476
|
component?: vue.Component | undefined;
|
14471
14477
|
});
|
@@ -14530,6 +14536,7 @@ declare const VImg: {
|
|
14530
14536
|
style: vue.StyleValue;
|
14531
14537
|
src: string | srcObject;
|
14532
14538
|
options: IntersectionObserverInit;
|
14539
|
+
absolute: boolean;
|
14533
14540
|
transition: string | boolean | (vue.TransitionProps & {
|
14534
14541
|
component?: vue.Component | undefined;
|
14535
14542
|
});
|
@@ -14579,6 +14586,7 @@ declare const VImg: {
|
|
14579
14586
|
aspectRatio: (StringConstructor | NumberConstructor)[];
|
14580
14587
|
contentClass: StringConstructor;
|
14581
14588
|
inline: BooleanConstructor;
|
14589
|
+
absolute: BooleanConstructor;
|
14582
14590
|
alt: StringConstructor;
|
14583
14591
|
cover: BooleanConstructor;
|
14584
14592
|
color: StringConstructor;
|
@@ -14633,6 +14641,7 @@ declare const VImg: {
|
|
14633
14641
|
aspectRatio: (StringConstructor | NumberConstructor)[];
|
14634
14642
|
contentClass: StringConstructor;
|
14635
14643
|
inline: BooleanConstructor;
|
14644
|
+
absolute: BooleanConstructor;
|
14636
14645
|
alt: StringConstructor;
|
14637
14646
|
cover: BooleanConstructor;
|
14638
14647
|
color: StringConstructor;
|
@@ -14669,6 +14678,7 @@ declare const VCarouselItem: {
|
|
14669
14678
|
src: string | srcObject;
|
14670
14679
|
disabled: boolean;
|
14671
14680
|
options: IntersectionObserverInit;
|
14681
|
+
absolute: boolean;
|
14672
14682
|
inline: boolean;
|
14673
14683
|
cover: boolean;
|
14674
14684
|
tile: boolean;
|
@@ -14721,6 +14731,7 @@ declare const VCarouselItem: {
|
|
14721
14731
|
src: string | srcObject;
|
14722
14732
|
disabled: boolean;
|
14723
14733
|
options: IntersectionObserverInit;
|
14734
|
+
absolute: boolean;
|
14724
14735
|
inline: boolean;
|
14725
14736
|
cover: boolean;
|
14726
14737
|
tile: boolean;
|
@@ -14773,6 +14784,7 @@ declare const VCarouselItem: {
|
|
14773
14784
|
src: string | srcObject;
|
14774
14785
|
disabled: boolean;
|
14775
14786
|
options: IntersectionObserverInit;
|
14787
|
+
absolute: boolean;
|
14776
14788
|
transition: string | boolean;
|
14777
14789
|
rounded: string | number | boolean;
|
14778
14790
|
inline: boolean;
|
@@ -14806,6 +14818,7 @@ declare const VCarouselItem: {
|
|
14806
14818
|
src: string | srcObject;
|
14807
14819
|
disabled: boolean;
|
14808
14820
|
options: IntersectionObserverInit;
|
14821
|
+
absolute: boolean;
|
14809
14822
|
inline: boolean;
|
14810
14823
|
cover: boolean;
|
14811
14824
|
tile: boolean;
|
@@ -14858,6 +14871,7 @@ declare const VCarouselItem: {
|
|
14858
14871
|
src: string | srcObject;
|
14859
14872
|
disabled: boolean;
|
14860
14873
|
options: IntersectionObserverInit;
|
14874
|
+
absolute: boolean;
|
14861
14875
|
transition: string | boolean;
|
14862
14876
|
rounded: string | number | boolean;
|
14863
14877
|
inline: boolean;
|
@@ -14875,6 +14889,7 @@ declare const VCarouselItem: {
|
|
14875
14889
|
src: string | srcObject;
|
14876
14890
|
disabled: boolean;
|
14877
14891
|
options: IntersectionObserverInit;
|
14892
|
+
absolute: boolean;
|
14878
14893
|
inline: boolean;
|
14879
14894
|
cover: boolean;
|
14880
14895
|
tile: boolean;
|
@@ -14927,6 +14942,7 @@ declare const VCarouselItem: {
|
|
14927
14942
|
src: string | srcObject;
|
14928
14943
|
disabled: boolean;
|
14929
14944
|
options: IntersectionObserverInit;
|
14945
|
+
absolute: boolean;
|
14930
14946
|
transition: string | boolean;
|
14931
14947
|
rounded: string | number | boolean;
|
14932
14948
|
inline: boolean;
|
@@ -14980,6 +14996,7 @@ declare const VCarouselItem: {
|
|
14980
14996
|
aspectRatio: (StringConstructor | NumberConstructor)[];
|
14981
14997
|
contentClass: StringConstructor;
|
14982
14998
|
inline: BooleanConstructor;
|
14999
|
+
absolute: BooleanConstructor;
|
14983
15000
|
alt: StringConstructor;
|
14984
15001
|
cover: BooleanConstructor;
|
14985
15002
|
color: StringConstructor;
|
@@ -15038,6 +15055,7 @@ declare const VCarouselItem: {
|
|
15038
15055
|
aspectRatio: (StringConstructor | NumberConstructor)[];
|
15039
15056
|
contentClass: StringConstructor;
|
15040
15057
|
inline: BooleanConstructor;
|
15058
|
+
absolute: BooleanConstructor;
|
15041
15059
|
alt: StringConstructor;
|
15042
15060
|
cover: BooleanConstructor;
|
15043
15061
|
color: StringConstructor;
|
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.6.3-dev.2024-05-
|
19
|
+
export const version = "3.6.3-dev.2024-05-30";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.mjs";
|
package/lib/framework.mjs
CHANGED