virtua 0.49.2 → 0.50.0
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/README.md +39 -5
- package/lib/angular/ListItem.d.ts +1 -0
- package/lib/angular/VList.d.ts +85 -0
- package/lib/angular/Virtualizer.d.ts +141 -0
- package/lib/angular/WindowVirtualizer.d.ts +103 -0
- package/lib/angular/index.d.ts +6 -0
- package/lib/angular/index.js +1148 -0
- package/lib/angular/index.js.map +1 -0
- package/lib/angular/utils.d.ts +19 -0
- package/lib/core/index.cjs +237 -233
- package/lib/core/index.cjs.map +1 -1
- package/lib/core/index.d.ts +6 -6
- package/lib/core/index.js +272 -272
- package/lib/core/index.js.map +1 -1
- package/lib/index.cjs +529 -499
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +321 -315
- package/lib/index.js.map +1 -1
- package/lib/react/VGrid.d.ts +2 -2
- package/lib/react/VList.d.ts +3 -3
- package/lib/react/Virtualizer.d.ts +3 -3
- package/lib/react/WindowVirtualizer.d.ts +3 -3
- package/lib/react/index.d.ts +9 -9
- package/lib/react/types.d.ts +1 -1
- package/lib/solid/VList.d.ts +3 -6
- package/lib/solid/Virtualizer.d.ts +2 -5
- package/lib/solid/WindowVirtualizer.d.ts +2 -5
- package/lib/solid/index.cjs +331 -323
- package/lib/solid/index.cjs.map +1 -1
- package/lib/solid/index.d.ts +7 -7
- package/lib/solid/index.js +249 -257
- package/lib/solid/index.js.map +1 -1
- package/lib/solid/index.jsx +1224 -1566
- package/lib/solid/index.jsx.map +1 -1
- package/lib/solid/types.d.ts +1 -1
- package/lib/svelte/ListItem.svelte +12 -2
- package/lib/svelte/VList.svelte +2 -0
- package/lib/svelte/VList.type.d.ts +3 -3
- package/lib/svelte/Virtualizer.svelte +2 -0
- package/lib/svelte/Virtualizer.type.d.ts +8 -3
- package/lib/svelte/WindowVirtualizer.type.d.ts +2 -2
- package/lib/svelte/index.d.ts +6 -6
- package/lib/svelte/index.js +4 -4
- package/lib/svelte/types.d.ts +1 -1
- package/lib/svelte/utils.d.ts +7 -0
- package/lib/svelte/utils.js +11 -11
- package/lib/svelte/utils.js.map +1 -1
- package/lib/vue/VList.d.ts +2 -3
- package/lib/vue/Virtualizer.d.ts +3 -4
- package/lib/vue/WindowVirtualizer.d.ts +2 -3
- package/lib/vue/index.cjs +327 -317
- package/lib/vue/index.cjs.map +1 -1
- package/lib/vue/index.d.ts +6 -6
- package/lib/vue/index.js +284 -284
- package/lib/vue/index.js.map +1 -1
- package/lib/vue/utils.d.ts +1 -1
- package/package.json +40 -17
- package/lib/svelte/index.js.map +0 -1
package/lib/react/VGrid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import {
|
|
1
|
+
import { default as React, JSX, CSSProperties, ReactNode, Ref } from 'react';
|
|
2
|
+
import { ViewportComponentAttributes } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Props of customized cell component for {@link VGrid}.
|
|
5
5
|
*/
|
package/lib/react/VList.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ReactElement, Ref } from 'react';
|
|
2
|
+
import { ViewportComponentAttributes } from './types.js';
|
|
3
|
+
import { VirtualizerHandle, VirtualizerProps } from './Virtualizer.js';
|
|
4
4
|
/**
|
|
5
5
|
* Methods of {@link VList}.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { JSX, ReactElement, ReactNode, RefObject, Ref } from 'react';
|
|
2
|
+
import { CacheSnapshot, ScrollToIndexOpts } from '../core/index.js';
|
|
3
|
+
import { CustomContainerComponent, CustomItemComponent } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Methods of {@link Virtualizer}.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { JSX, ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import { CacheSnapshot, ScrollToIndexOpts } from '../core/index.js';
|
|
3
|
+
import { CustomContainerComponent, CustomItemComponent } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Methods of {@link WindowVirtualizer}.
|
|
6
6
|
*/
|
package/lib/react/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { VList } from
|
|
2
|
-
export type { VListProps, VListHandle } from
|
|
3
|
-
export { Virtualizer } from
|
|
4
|
-
export type { VirtualizerProps, VirtualizerHandle } from
|
|
5
|
-
export { WindowVirtualizer } from
|
|
6
|
-
export type { WindowVirtualizerProps, WindowVirtualizerHandle, } from
|
|
7
|
-
export { VGrid as experimental_VGrid } from
|
|
8
|
-
export type { VGridItemResize, VGridProps, VGridHandle, CustomCellComponent, CustomCellComponentProps, } from
|
|
9
|
-
export type * from
|
|
1
|
+
export { VList } from './VList.js';
|
|
2
|
+
export type { VListProps, VListHandle } from './VList.js';
|
|
3
|
+
export { Virtualizer } from './Virtualizer.js';
|
|
4
|
+
export type { VirtualizerProps, VirtualizerHandle } from './Virtualizer.js';
|
|
5
|
+
export { WindowVirtualizer } from './WindowVirtualizer.js';
|
|
6
|
+
export type { WindowVirtualizerProps, WindowVirtualizerHandle, } from './WindowVirtualizer.js';
|
|
7
|
+
export { VGrid as experimental_VGrid } from './VGrid.js';
|
|
8
|
+
export type { VGridItemResize, VGridProps, VGridHandle, CustomCellComponent, CustomCellComponentProps, } from './VGrid.js';
|
|
9
|
+
export type * from './types.js';
|
package/lib/react/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentType, CSSProperties, LegacyRef, ReactNode } from 'react';
|
|
2
2
|
export type ViewportComponentAttributes = Pick<React.HTMLAttributes<HTMLElement>, "className" | "style" | "id" | "role" | "tabIndex" | "onKeyDown" | "onWheel"> & React.AriaAttributes;
|
|
3
3
|
export interface CustomContainerComponentProps {
|
|
4
4
|
style: CSSProperties;
|
package/lib/solid/VList.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { type JSX } from "solid-js";
|
|
5
|
-
import { type ViewportComponentAttributes } from "./types.js";
|
|
6
|
-
import { type VirtualizerHandle, type VirtualizerProps } from "./Virtualizer.js";
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { ViewportComponentAttributes } from './types.js';
|
|
3
|
+
import { VirtualizerHandle, VirtualizerProps } from './Virtualizer.js';
|
|
7
4
|
/**
|
|
8
5
|
* Methods of {@link VList}.
|
|
9
6
|
*/
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import { type JSX, type ValidComponent, type Accessor } from "solid-js";
|
|
5
|
-
import { type ScrollToIndexOpts, type CacheSnapshot } from "../core/index.js";
|
|
1
|
+
import { JSX, ValidComponent, Accessor } from 'solid-js';
|
|
2
|
+
import { ScrollToIndexOpts, CacheSnapshot } from '../core/index.js';
|
|
6
3
|
/**
|
|
7
4
|
* Methods of {@link Virtualizer}.
|
|
8
5
|
*/
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import { type JSX, type Accessor } from "solid-js";
|
|
5
|
-
import { type ScrollToIndexOpts, type CacheSnapshot } from "../core/index.js";
|
|
1
|
+
import { JSX, Accessor } from 'solid-js';
|
|
2
|
+
import { ScrollToIndexOpts, CacheSnapshot } from '../core/index.js';
|
|
6
3
|
/**
|
|
7
4
|
* Methods of {@link WindowVirtualizer}.
|
|
8
5
|
*/
|