vue-virtual-flow 0.0.1

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.
@@ -0,0 +1,46 @@
1
+ import { ItemKey, ScrollAlignment, VirtualScrollEvent } from '../types.cjs';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onScroll?: ((event: VirtualScrollEvent) => any) | undefined;
5
+ readonly onLoadOlder?: (() => any) | undefined;
6
+ readonly onBottomChange?: ((isAtBottom: boolean) => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll" | "onLoadOlder" | "onBottomChange"> & {
8
+ items: readonly T[];
9
+ estimatedItemSize?: number;
10
+ height?: number | string;
11
+ overscan?: number;
12
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
13
+ ariaLabel?: string;
14
+ stickToBottom?: boolean;
15
+ bottomThreshold?: number;
16
+ initialScroll?: "top" | "bottom";
17
+ hasOlder?: boolean;
18
+ loadingOlder?: boolean;
19
+ loadOlderThreshold?: number;
20
+ } & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{
22
+ isAtBottom: import('vue').Ref<boolean, boolean>;
23
+ scrollTo: (position: number, options?: ScrollToOptions) => void;
24
+ scrollToIndex: (index: number, options?: ScrollToOptions & {
25
+ align?: ScrollAlignment;
26
+ }) => void;
27
+ scrollToTop: (behavior?: ScrollBehavior) => void;
28
+ scrollToBottom: (behavior?: ScrollBehavior) => void;
29
+ }>): void;
30
+ attrs: any;
31
+ slots: {
32
+ default(props: {
33
+ item: T;
34
+ index: number;
35
+ }): unknown;
36
+ empty?(): unknown;
37
+ loadingOlder?(): unknown;
38
+ };
39
+ emit: ((evt: "scroll", event: VirtualScrollEvent) => void) & ((evt: "loadOlder") => void) & ((evt: "bottomChange", isAtBottom: boolean) => void);
40
+ }>) => import('vue').VNode & {
41
+ __ctx?: Awaited<typeof __VLS_setup>;
42
+ };
43
+ export default _default;
44
+ type __VLS_PrettifyLocal<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
@@ -0,0 +1,46 @@
1
+ import { ItemKey, ScrollAlignment, VirtualScrollEvent } from '../types.js';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onScroll?: ((event: VirtualScrollEvent) => any) | undefined;
5
+ readonly onLoadOlder?: (() => any) | undefined;
6
+ readonly onBottomChange?: ((isAtBottom: boolean) => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll" | "onLoadOlder" | "onBottomChange"> & {
8
+ items: readonly T[];
9
+ estimatedItemSize?: number;
10
+ height?: number | string;
11
+ overscan?: number;
12
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
13
+ ariaLabel?: string;
14
+ stickToBottom?: boolean;
15
+ bottomThreshold?: number;
16
+ initialScroll?: "top" | "bottom";
17
+ hasOlder?: boolean;
18
+ loadingOlder?: boolean;
19
+ loadOlderThreshold?: number;
20
+ } & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{
22
+ isAtBottom: import('vue').Ref<boolean, boolean>;
23
+ scrollTo: (position: number, options?: ScrollToOptions) => void;
24
+ scrollToIndex: (index: number, options?: ScrollToOptions & {
25
+ align?: ScrollAlignment;
26
+ }) => void;
27
+ scrollToTop: (behavior?: ScrollBehavior) => void;
28
+ scrollToBottom: (behavior?: ScrollBehavior) => void;
29
+ }>): void;
30
+ attrs: any;
31
+ slots: {
32
+ default(props: {
33
+ item: T;
34
+ index: number;
35
+ }): unknown;
36
+ empty?(): unknown;
37
+ loadingOlder?(): unknown;
38
+ };
39
+ emit: ((evt: "scroll", event: VirtualScrollEvent) => void) & ((evt: "loadOlder") => void) & ((evt: "bottomChange", isAtBottom: boolean) => void);
40
+ }>) => import('vue').VNode & {
41
+ __ctx?: Awaited<typeof __VLS_setup>;
42
+ };
43
+ export default _default;
44
+ type __VLS_PrettifyLocal<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
@@ -0,0 +1,50 @@
1
+ import { ItemKey, ScrollAlignment, VirtualScrollEvent } from '../types.cjs';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onScroll?: ((event: VirtualScrollEvent) => any) | undefined;
5
+ readonly onLoadMore?: (() => any) | undefined;
6
+ readonly onRefresh?: (() => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll" | "onLoadMore" | "onRefresh"> & {
8
+ items: readonly T[];
9
+ estimatedItemSize?: number;
10
+ height?: number | string;
11
+ overscan?: number;
12
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
13
+ ariaLabel?: string;
14
+ hasMore?: boolean;
15
+ loading?: boolean;
16
+ loadingItemSize?: number;
17
+ loadMoreThreshold?: number;
18
+ pullToRefresh?: boolean;
19
+ refreshing?: boolean;
20
+ pullRefreshThreshold?: number;
21
+ } & Partial<{}>> & import('vue').PublicProps;
22
+ expose(exposed: import('vue').ShallowUnwrapRef<{
23
+ scrollTo: (position: number, options?: ScrollToOptions) => void;
24
+ scrollToIndex: (index: number, options?: ScrollToOptions & {
25
+ align?: ScrollAlignment;
26
+ }) => void;
27
+ scrollToTop: (behavior?: ScrollBehavior) => void;
28
+ }>): void;
29
+ attrs: any;
30
+ slots: {
31
+ default(props: {
32
+ item: T;
33
+ index: number;
34
+ }): unknown;
35
+ empty?(): unknown;
36
+ loading?(): unknown;
37
+ refresh?(props: {
38
+ pullDistance: number;
39
+ progress: number;
40
+ refreshing: boolean;
41
+ }): unknown;
42
+ };
43
+ emit: ((evt: "scroll", event: VirtualScrollEvent) => void) & ((evt: "loadMore") => void) & ((evt: "refresh") => void);
44
+ }>) => import('vue').VNode & {
45
+ __ctx?: Awaited<typeof __VLS_setup>;
46
+ };
47
+ export default _default;
48
+ type __VLS_PrettifyLocal<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
@@ -0,0 +1,50 @@
1
+ import { ItemKey, ScrollAlignment, VirtualScrollEvent } from '../types.js';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onScroll?: ((event: VirtualScrollEvent) => any) | undefined;
5
+ readonly onLoadMore?: (() => any) | undefined;
6
+ readonly onRefresh?: (() => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll" | "onLoadMore" | "onRefresh"> & {
8
+ items: readonly T[];
9
+ estimatedItemSize?: number;
10
+ height?: number | string;
11
+ overscan?: number;
12
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
13
+ ariaLabel?: string;
14
+ hasMore?: boolean;
15
+ loading?: boolean;
16
+ loadingItemSize?: number;
17
+ loadMoreThreshold?: number;
18
+ pullToRefresh?: boolean;
19
+ refreshing?: boolean;
20
+ pullRefreshThreshold?: number;
21
+ } & Partial<{}>> & import('vue').PublicProps;
22
+ expose(exposed: import('vue').ShallowUnwrapRef<{
23
+ scrollTo: (position: number, options?: ScrollToOptions) => void;
24
+ scrollToIndex: (index: number, options?: ScrollToOptions & {
25
+ align?: ScrollAlignment;
26
+ }) => void;
27
+ scrollToTop: (behavior?: ScrollBehavior) => void;
28
+ }>): void;
29
+ attrs: any;
30
+ slots: {
31
+ default(props: {
32
+ item: T;
33
+ index: number;
34
+ }): unknown;
35
+ empty?(): unknown;
36
+ loading?(): unknown;
37
+ refresh?(props: {
38
+ pullDistance: number;
39
+ progress: number;
40
+ refreshing: boolean;
41
+ }): unknown;
42
+ };
43
+ emit: ((evt: "scroll", event: VirtualScrollEvent) => void) & ((evt: "loadMore") => void) & ((evt: "refresh") => void);
44
+ }>) => import('vue').VNode & {
45
+ __ctx?: Awaited<typeof __VLS_setup>;
46
+ };
47
+ export default _default;
48
+ type __VLS_PrettifyLocal<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
@@ -0,0 +1,37 @@
1
+ import { ItemKey, ShortMediaFeedChangeEvent, ShortMediaFeedExpose } from '../types.cjs';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onLoadMore?: (() => any) | undefined;
5
+ readonly "onUpdate:activeIndex"?: ((index: number) => any) | undefined;
6
+ readonly onChange?: ((event: ShortMediaFeedChangeEvent<T>) => any) | undefined;
7
+ readonly onReachStart?: (() => any) | undefined;
8
+ readonly onReachEnd?: (() => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onLoadMore" | "onUpdate:activeIndex" | "onReachStart" | "onReachEnd"> & {
10
+ items: readonly T[];
11
+ activeIndex?: number;
12
+ buffer?: number;
13
+ height?: number | string;
14
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
15
+ ariaLabel?: string;
16
+ hasMore?: boolean;
17
+ loading?: boolean;
18
+ loadMoreThreshold?: number;
19
+ } & Partial<{}>> & import('vue').PublicProps;
20
+ expose(exposed: import('vue').ShallowUnwrapRef<ShortMediaFeedExpose>): void;
21
+ attrs: any;
22
+ slots: {
23
+ default(props: {
24
+ item: T;
25
+ index: number;
26
+ active: boolean;
27
+ }): unknown;
28
+ empty?(): unknown;
29
+ };
30
+ emit: ((evt: "loadMore") => void) & ((evt: "update:activeIndex", index: number) => void) & ((evt: "change", event: ShortMediaFeedChangeEvent<T>) => void) & ((evt: "reachStart") => void) & ((evt: "reachEnd") => void);
31
+ }>) => import('vue').VNode & {
32
+ __ctx?: Awaited<typeof __VLS_setup>;
33
+ };
34
+ export default _default;
35
+ type __VLS_PrettifyLocal<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
@@ -0,0 +1,37 @@
1
+ import { ItemKey, ShortMediaFeedChangeEvent, ShortMediaFeedExpose } from '../types.js';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onLoadMore?: (() => any) | undefined;
5
+ readonly "onUpdate:activeIndex"?: ((index: number) => any) | undefined;
6
+ readonly onChange?: ((event: ShortMediaFeedChangeEvent<T>) => any) | undefined;
7
+ readonly onReachStart?: (() => any) | undefined;
8
+ readonly onReachEnd?: (() => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onLoadMore" | "onUpdate:activeIndex" | "onReachStart" | "onReachEnd"> & {
10
+ items: readonly T[];
11
+ activeIndex?: number;
12
+ buffer?: number;
13
+ height?: number | string;
14
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
15
+ ariaLabel?: string;
16
+ hasMore?: boolean;
17
+ loading?: boolean;
18
+ loadMoreThreshold?: number;
19
+ } & Partial<{}>> & import('vue').PublicProps;
20
+ expose(exposed: import('vue').ShallowUnwrapRef<ShortMediaFeedExpose>): void;
21
+ attrs: any;
22
+ slots: {
23
+ default(props: {
24
+ item: T;
25
+ index: number;
26
+ active: boolean;
27
+ }): unknown;
28
+ empty?(): unknown;
29
+ };
30
+ emit: ((evt: "loadMore") => void) & ((evt: "update:activeIndex", index: number) => void) & ((evt: "change", event: ShortMediaFeedChangeEvent<T>) => void) & ((evt: "reachStart") => void) & ((evt: "reachEnd") => void);
31
+ }>) => import('vue').VNode & {
32
+ __ctx?: Awaited<typeof __VLS_setup>;
33
+ };
34
+ export default _default;
35
+ type __VLS_PrettifyLocal<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
@@ -0,0 +1,41 @@
1
+ import { ItemKey, VirtualCarouselChangeEvent, VirtualCarouselExpose } from '../types.cjs';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onLoadMore?: (() => any) | undefined;
5
+ readonly "onUpdate:activeIndex"?: ((index: number) => any) | undefined;
6
+ readonly onChange?: ((event: VirtualCarouselChangeEvent<T>) => any) | undefined;
7
+ readonly onReachStart?: (() => any) | undefined;
8
+ readonly onReachEnd?: (() => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onLoadMore" | "onUpdate:activeIndex" | "onReachStart" | "onReachEnd"> & {
10
+ items: readonly T[];
11
+ activeIndex?: number;
12
+ slidesPerView?: number;
13
+ slidesToScroll?: number;
14
+ gap?: number;
15
+ buffer?: number;
16
+ height?: number | string;
17
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
18
+ ariaLabel?: string;
19
+ hasMore?: boolean;
20
+ loading?: boolean;
21
+ loadMoreThreshold?: number;
22
+ } & Partial<{}>> & import('vue').PublicProps;
23
+ expose(exposed: import('vue').ShallowUnwrapRef<VirtualCarouselExpose>): void;
24
+ attrs: any;
25
+ slots: {
26
+ default(props: {
27
+ item: T;
28
+ index: number;
29
+ active: boolean;
30
+ visible: boolean;
31
+ }): unknown;
32
+ empty?(): unknown;
33
+ };
34
+ emit: ((evt: "loadMore") => void) & ((evt: "update:activeIndex", index: number) => void) & ((evt: "change", event: VirtualCarouselChangeEvent<T>) => void) & ((evt: "reachStart") => void) & ((evt: "reachEnd") => void);
35
+ }>) => import('vue').VNode & {
36
+ __ctx?: Awaited<typeof __VLS_setup>;
37
+ };
38
+ export default _default;
39
+ type __VLS_PrettifyLocal<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -0,0 +1,41 @@
1
+ import { ItemKey, VirtualCarouselChangeEvent, VirtualCarouselExpose } from '../types.js';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onLoadMore?: (() => any) | undefined;
5
+ readonly "onUpdate:activeIndex"?: ((index: number) => any) | undefined;
6
+ readonly onChange?: ((event: VirtualCarouselChangeEvent<T>) => any) | undefined;
7
+ readonly onReachStart?: (() => any) | undefined;
8
+ readonly onReachEnd?: (() => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onLoadMore" | "onUpdate:activeIndex" | "onReachStart" | "onReachEnd"> & {
10
+ items: readonly T[];
11
+ activeIndex?: number;
12
+ slidesPerView?: number;
13
+ slidesToScroll?: number;
14
+ gap?: number;
15
+ buffer?: number;
16
+ height?: number | string;
17
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
18
+ ariaLabel?: string;
19
+ hasMore?: boolean;
20
+ loading?: boolean;
21
+ loadMoreThreshold?: number;
22
+ } & Partial<{}>> & import('vue').PublicProps;
23
+ expose(exposed: import('vue').ShallowUnwrapRef<VirtualCarouselExpose>): void;
24
+ attrs: any;
25
+ slots: {
26
+ default(props: {
27
+ item: T;
28
+ index: number;
29
+ active: boolean;
30
+ visible: boolean;
31
+ }): unknown;
32
+ empty?(): unknown;
33
+ };
34
+ emit: ((evt: "loadMore") => void) & ((evt: "update:activeIndex", index: number) => void) & ((evt: "change", event: VirtualCarouselChangeEvent<T>) => void) & ((evt: "reachStart") => void) & ((evt: "reachEnd") => void);
35
+ }>) => import('vue').VNode & {
36
+ __ctx?: Awaited<typeof __VLS_setup>;
37
+ };
38
+ export default _default;
39
+ type __VLS_PrettifyLocal<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -0,0 +1,50 @@
1
+ import { ItemKey, ScrollAlignment, VirtualScrollEvent } from '../types.cjs';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onScroll?: ((event: VirtualScrollEvent) => any) | undefined;
5
+ readonly onLoadMore?: (() => any) | undefined;
6
+ readonly onRefresh?: (() => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll" | "onLoadMore" | "onRefresh"> & {
8
+ items: readonly T[];
9
+ itemSize: number;
10
+ height?: number | string;
11
+ overscan?: number;
12
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
13
+ ariaLabel?: string;
14
+ hasMore?: boolean;
15
+ loading?: boolean;
16
+ loadingItemSize?: number;
17
+ loadMoreThreshold?: number;
18
+ pullToRefresh?: boolean;
19
+ refreshing?: boolean;
20
+ pullRefreshThreshold?: number;
21
+ } & Partial<{}>> & import('vue').PublicProps;
22
+ expose(exposed: import('vue').ShallowUnwrapRef<{
23
+ scrollTo: (position: number, options?: ScrollToOptions) => void;
24
+ scrollToIndex: (index: number, options?: ScrollToOptions & {
25
+ align?: ScrollAlignment;
26
+ }) => void;
27
+ scrollToTop: (behavior?: ScrollBehavior) => void;
28
+ }>): void;
29
+ attrs: any;
30
+ slots: {
31
+ default(props: {
32
+ item: T;
33
+ index: number;
34
+ }): unknown;
35
+ empty?(): unknown;
36
+ loading?(): unknown;
37
+ refresh?(props: {
38
+ pullDistance: number;
39
+ progress: number;
40
+ refreshing: boolean;
41
+ }): unknown;
42
+ };
43
+ emit: ((evt: "scroll", event: VirtualScrollEvent) => void) & ((evt: "loadMore") => void) & ((evt: "refresh") => void);
44
+ }>) => import('vue').VNode & {
45
+ __ctx?: Awaited<typeof __VLS_setup>;
46
+ };
47
+ export default _default;
48
+ type __VLS_PrettifyLocal<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
@@ -0,0 +1,50 @@
1
+ import { ItemKey, ScrollAlignment, VirtualScrollEvent } from '../types.js';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onScroll?: ((event: VirtualScrollEvent) => any) | undefined;
5
+ readonly onLoadMore?: (() => any) | undefined;
6
+ readonly onRefresh?: (() => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll" | "onLoadMore" | "onRefresh"> & {
8
+ items: readonly T[];
9
+ itemSize: number;
10
+ height?: number | string;
11
+ overscan?: number;
12
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
13
+ ariaLabel?: string;
14
+ hasMore?: boolean;
15
+ loading?: boolean;
16
+ loadingItemSize?: number;
17
+ loadMoreThreshold?: number;
18
+ pullToRefresh?: boolean;
19
+ refreshing?: boolean;
20
+ pullRefreshThreshold?: number;
21
+ } & Partial<{}>> & import('vue').PublicProps;
22
+ expose(exposed: import('vue').ShallowUnwrapRef<{
23
+ scrollTo: (position: number, options?: ScrollToOptions) => void;
24
+ scrollToIndex: (index: number, options?: ScrollToOptions & {
25
+ align?: ScrollAlignment;
26
+ }) => void;
27
+ scrollToTop: (behavior?: ScrollBehavior) => void;
28
+ }>): void;
29
+ attrs: any;
30
+ slots: {
31
+ default(props: {
32
+ item: T;
33
+ index: number;
34
+ }): unknown;
35
+ empty?(): unknown;
36
+ loading?(): unknown;
37
+ refresh?(props: {
38
+ pullDistance: number;
39
+ progress: number;
40
+ refreshing: boolean;
41
+ }): unknown;
42
+ };
43
+ emit: ((evt: "scroll", event: VirtualScrollEvent) => void) & ((evt: "loadMore") => void) & ((evt: "refresh") => void);
44
+ }>) => import('vue').VNode & {
45
+ __ctx?: Awaited<typeof __VLS_setup>;
46
+ };
47
+ export default _default;
48
+ type __VLS_PrettifyLocal<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
@@ -0,0 +1,49 @@
1
+ import { ItemKey, ScrollAlignment, VirtualScrollEvent } from '../types.cjs';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onScroll?: ((event: VirtualScrollEvent) => any) | undefined;
5
+ readonly onLoadMore?: (() => any) | undefined;
6
+ readonly onRefresh?: (() => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll" | "onLoadMore" | "onRefresh"> & {
8
+ items: readonly T[];
9
+ estimatedItemSize?: number;
10
+ overscan?: number;
11
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
12
+ ariaLabel?: string;
13
+ hasMore?: boolean;
14
+ loading?: boolean;
15
+ loadingItemSize?: number;
16
+ loadMoreThreshold?: number;
17
+ pullToRefresh?: boolean;
18
+ refreshing?: boolean;
19
+ pullRefreshThreshold?: number;
20
+ } & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{
22
+ scrollTo: (position: number, options?: ScrollToOptions) => void;
23
+ scrollToIndex: (index: number, options?: ScrollToOptions & {
24
+ align?: ScrollAlignment;
25
+ }) => void;
26
+ scrollToTop: (behavior?: ScrollBehavior) => void;
27
+ }>): void;
28
+ attrs: any;
29
+ slots: {
30
+ default(props: {
31
+ item: T;
32
+ index: number;
33
+ }): unknown;
34
+ empty?(): unknown;
35
+ loading?(): unknown;
36
+ refresh?(props: {
37
+ pullDistance: number;
38
+ progress: number;
39
+ refreshing: boolean;
40
+ }): unknown;
41
+ };
42
+ emit: ((evt: "scroll", event: VirtualScrollEvent) => void) & ((evt: "loadMore") => void) & ((evt: "refresh") => void);
43
+ }>) => import('vue').VNode & {
44
+ __ctx?: Awaited<typeof __VLS_setup>;
45
+ };
46
+ export default _default;
47
+ type __VLS_PrettifyLocal<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
@@ -0,0 +1,49 @@
1
+ import { ItemKey, ScrollAlignment, VirtualScrollEvent } from '../types.js';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onScroll?: ((event: VirtualScrollEvent) => any) | undefined;
5
+ readonly onLoadMore?: (() => any) | undefined;
6
+ readonly onRefresh?: (() => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll" | "onLoadMore" | "onRefresh"> & {
8
+ items: readonly T[];
9
+ estimatedItemSize?: number;
10
+ overscan?: number;
11
+ itemKey?: ItemKey<T> extends infer Key ? Key : never;
12
+ ariaLabel?: string;
13
+ hasMore?: boolean;
14
+ loading?: boolean;
15
+ loadingItemSize?: number;
16
+ loadMoreThreshold?: number;
17
+ pullToRefresh?: boolean;
18
+ refreshing?: boolean;
19
+ pullRefreshThreshold?: number;
20
+ } & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{
22
+ scrollTo: (position: number, options?: ScrollToOptions) => void;
23
+ scrollToIndex: (index: number, options?: ScrollToOptions & {
24
+ align?: ScrollAlignment;
25
+ }) => void;
26
+ scrollToTop: (behavior?: ScrollBehavior) => void;
27
+ }>): void;
28
+ attrs: any;
29
+ slots: {
30
+ default(props: {
31
+ item: T;
32
+ index: number;
33
+ }): unknown;
34
+ empty?(): unknown;
35
+ loading?(): unknown;
36
+ refresh?(props: {
37
+ pullDistance: number;
38
+ progress: number;
39
+ refreshing: boolean;
40
+ }): unknown;
41
+ };
42
+ emit: ((evt: "scroll", event: VirtualScrollEvent) => void) & ((evt: "loadMore") => void) & ((evt: "refresh") => void);
43
+ }>) => import('vue').VNode & {
44
+ __ctx?: Awaited<typeof __VLS_setup>;
45
+ };
46
+ export default _default;
47
+ type __VLS_PrettifyLocal<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
@@ -0,0 +1,10 @@
1
+ import { ItemKey } from '../types.cjs';
2
+ interface ItemKeyOptions<T> {
3
+ componentName: string;
4
+ items: () => readonly T[];
5
+ itemKey: () => ItemKey<T> | undefined;
6
+ }
7
+ export declare function useItemKey<T>(options: ItemKeyOptions<T>): {
8
+ getItemKey: (item: T, index: number) => PropertyKey;
9
+ };
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ItemKey } from '../types.js';
2
+ interface ItemKeyOptions<T> {
3
+ componentName: string;
4
+ items: () => readonly T[];
5
+ itemKey: () => ItemKey<T> | undefined;
6
+ }
7
+ export declare function useItemKey<T>(options: ItemKeyOptions<T>): {
8
+ getItemKey: (item: T, index: number) => PropertyKey;
9
+ };
10
+ export {};
@@ -0,0 +1,20 @@
1
+ interface PullToRefreshOptions {
2
+ enabled: () => boolean;
3
+ refreshing: () => boolean;
4
+ threshold: () => number;
5
+ onRefresh: () => void;
6
+ scrollTop?: () => number;
7
+ }
8
+ export declare function usePullToRefresh(options: PullToRefreshOptions): {
9
+ pulling: import('vue').Ref<boolean, boolean>;
10
+ pullDistance: import('vue').Ref<number, number>;
11
+ pullOffset: import('vue').ComputedRef<number>;
12
+ pullProgress: import('vue').ComputedRef<number>;
13
+ refreshMessage: import('vue').ComputedRef<"Refreshing…" | "Release to refresh" | "Pull to refresh">;
14
+ refreshThreshold: import('vue').ComputedRef<number>;
15
+ handleTouchStart: (event: TouchEvent) => void;
16
+ handleTouchMove: (event: TouchEvent) => void;
17
+ handleTouchEnd: () => void;
18
+ handleTouchCancel: () => void;
19
+ };
20
+ export {};
@@ -0,0 +1,20 @@
1
+ interface PullToRefreshOptions {
2
+ enabled: () => boolean;
3
+ refreshing: () => boolean;
4
+ threshold: () => number;
5
+ onRefresh: () => void;
6
+ scrollTop?: () => number;
7
+ }
8
+ export declare function usePullToRefresh(options: PullToRefreshOptions): {
9
+ pulling: import('vue').Ref<boolean, boolean>;
10
+ pullDistance: import('vue').Ref<number, number>;
11
+ pullOffset: import('vue').ComputedRef<number>;
12
+ pullProgress: import('vue').ComputedRef<number>;
13
+ refreshMessage: import('vue').ComputedRef<"Refreshing…" | "Release to refresh" | "Pull to refresh">;
14
+ refreshThreshold: import('vue').ComputedRef<number>;
15
+ handleTouchStart: (event: TouchEvent) => void;
16
+ handleTouchMove: (event: TouchEvent) => void;
17
+ handleTouchEnd: () => void;
18
+ handleTouchCancel: () => void;
19
+ };
20
+ export {};
@@ -0,0 +1,23 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as ChatVirtualScroll } from './components/ChatVirtualScroll.cjs';
3
+ import { default as DynamicVirtualScroll } from './components/DynamicVirtualScroll.cjs';
4
+ import { default as ShortMediaFeed } from './components/ShortMediaFeed.cjs';
5
+ import { default as VirtualCarousel } from './components/VirtualCarousel.cjs';
6
+ import { default as VirtualScroll } from './components/VirtualScroll.cjs';
7
+ import { default as WindowDynamicVirtualScroll } from './components/WindowDynamicVirtualScroll.cjs';
8
+ declare module 'vue' {
9
+ interface GlobalComponents {
10
+ ChatVirtualScroll: typeof ChatVirtualScroll;
11
+ DynamicVirtualScroll: typeof DynamicVirtualScroll;
12
+ ShortMediaFeed: typeof ShortMediaFeed;
13
+ VirtualCarousel: typeof VirtualCarousel;
14
+ VirtualList: typeof DynamicVirtualScroll;
15
+ VirtualScroll: typeof VirtualScroll;
16
+ WindowDynamicVirtualScroll: typeof WindowDynamicVirtualScroll;
17
+ }
18
+ }
19
+ declare const VirtualList: typeof DynamicVirtualScroll;
20
+ export { ChatVirtualScroll, DynamicVirtualScroll, ShortMediaFeed, VirtualCarousel, VirtualList, VirtualScroll, WindowDynamicVirtualScroll, };
21
+ export type { ChatVirtualScrollExpose, ChatVirtualScrollProps, DynamicVirtualScrollProps, ItemKey, ScrollAlignment, ShortMediaFeedChangeEvent, ShortMediaFeedExpose, ShortMediaFeedProps, VirtualCarouselChangeEvent, VirtualCarouselExpose, VirtualCarouselProps, VirtualListExpose, VirtualListProps, VirtualScrollEvent, VirtualScrollExpose, VirtualScrollProps, WindowDynamicVirtualScrollProps, } from './types.cjs';
22
+ export declare const VueVirtualScroll: Plugin;
23
+ export default VueVirtualScroll;