import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js"; import "../../../../utils/index.js"; import { Alignment, GridConstructorProps, GridItemKeyGetter, GridScrollOptions, GridStates, ItemSize } from "../types.js"; import { useCache } from "../hooks/use-cache.js"; import { VirtualizedGridProps } from "../props.js"; import * as vue from "vue"; import { CSSProperties, Ref, StyleValue, UnwrapRef, VNode } from "vue"; //#region ../../packages/components/virtual-list/src/builders/build-grid.d.ts declare const createGrid: ({ name, clearCache, getColumnPosition, getColumnStartIndexForOffset, getColumnStopIndexForStartIndex, getEstimatedTotalHeight, getEstimatedTotalWidth, getColumnOffset, getRowOffset, getRowPosition, getRowStartIndexForOffset, getRowStopIndexForStartIndex, initCache, injectToInstance, validateProps }: GridConstructorProps) => vue.DefineComponent; readonly containerElement: EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>; readonly data: EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>; readonly direction: EpPropFinalized; readonly height: { readonly type: vue.PropType>; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly innerElement: EpPropFinalized; readonly innerProps: EpPropFinalized<(new (...args: any[]) => Record) | (() => Record) | (((new (...args: any[]) => Record) | (() => Record)) | null)[], unknown, unknown, () => {}, boolean>; readonly style: { readonly type: vue.PropType string | false | CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly useIsScrolling: BooleanConstructor; readonly width: { readonly type: vue.PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly perfMode: EpPropFinalized; readonly scrollbarAlwaysOn: BooleanConstructor; readonly columnCache: EpPropFinalized; readonly columnWidth: { readonly type: vue.PropType number | ItemSize) | (() => number | ItemSize) | (((new (...args: any[]) => number | ItemSize) | (() => number | ItemSize)) | null)[], never, never>>; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly estimatedColumnWidth: { readonly type: vue.PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly estimatedRowHeight: { readonly type: vue.PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly initScrollLeft: EpPropFinalized; readonly initScrollTop: EpPropFinalized; readonly itemKey: EpPropFinalized<(new (...args: any[]) => GridItemKeyGetter) | (() => GridItemKeyGetter) | { (): GridItemKeyGetter; new (): any; readonly prototype: any; } | (((new (...args: any[]) => GridItemKeyGetter) | (() => GridItemKeyGetter) | { (): GridItemKeyGetter; new (): any; readonly prototype: any; }) | null)[], unknown, unknown, ({ columnIndex, rowIndex }: { columnIndex: number; rowIndex: number; }) => string, boolean>; readonly rowCache: EpPropFinalized; readonly rowHeight: { readonly type: vue.PropType number | ItemSize) | (() => number | ItemSize) | (((new (...args: any[]) => number | ItemSize) | (() => number | ItemSize)) | null)[], never, never>>; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly totalColumn: { readonly type: vue.PropType; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly totalRow: { readonly type: vue.PropType; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly hScrollbarSize: EpPropFinalized; readonly vScrollbarSize: EpPropFinalized; readonly scrollbarStartGap: EpPropFinalized; readonly scrollbarEndGap: EpPropFinalized; readonly role: StringConstructor; }>, () => VNode, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("scroll" | "itemRendered")[], "scroll" | "itemRendered", vue.PublicProps, Readonly; readonly containerElement: EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>; readonly data: EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>; readonly direction: EpPropFinalized; readonly height: { readonly type: vue.PropType>; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly innerElement: EpPropFinalized; readonly innerProps: EpPropFinalized<(new (...args: any[]) => Record) | (() => Record) | (((new (...args: any[]) => Record) | (() => Record)) | null)[], unknown, unknown, () => {}, boolean>; readonly style: { readonly type: vue.PropType string | false | CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly useIsScrolling: BooleanConstructor; readonly width: { readonly type: vue.PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly perfMode: EpPropFinalized; readonly scrollbarAlwaysOn: BooleanConstructor; readonly columnCache: EpPropFinalized; readonly columnWidth: { readonly type: vue.PropType number | ItemSize) | (() => number | ItemSize) | (((new (...args: any[]) => number | ItemSize) | (() => number | ItemSize)) | null)[], never, never>>; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly estimatedColumnWidth: { readonly type: vue.PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly estimatedRowHeight: { readonly type: vue.PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly initScrollLeft: EpPropFinalized; readonly initScrollTop: EpPropFinalized; readonly itemKey: EpPropFinalized<(new (...args: any[]) => GridItemKeyGetter) | (() => GridItemKeyGetter) | { (): GridItemKeyGetter; new (): any; readonly prototype: any; } | (((new (...args: any[]) => GridItemKeyGetter) | (() => GridItemKeyGetter) | { (): GridItemKeyGetter; new (): any; readonly prototype: any; }) | null)[], unknown, unknown, ({ columnIndex, rowIndex }: { columnIndex: number; rowIndex: number; }) => string, boolean>; readonly rowCache: EpPropFinalized; readonly rowHeight: { readonly type: vue.PropType number | ItemSize) | (() => number | ItemSize) | (((new (...args: any[]) => number | ItemSize) | (() => number | ItemSize)) | null)[], never, never>>; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly totalColumn: { readonly type: vue.PropType; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly totalRow: { readonly type: vue.PropType; readonly required: true; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly hScrollbarSize: EpPropFinalized; readonly vScrollbarSize: EpPropFinalized; readonly scrollbarStartGap: EpPropFinalized; readonly scrollbarEndGap: EpPropFinalized; readonly role: StringConstructor; }>> & Readonly<{ onScroll?: ((...args: any[]) => any) | undefined; onItemRendered?: ((...args: any[]) => any) | undefined; }>, { readonly data: any[]; readonly className: string; readonly direction: EpPropMergeType; readonly scrollbarAlwaysOn: boolean; readonly itemKey: GridItemKeyGetter; readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>; readonly innerElement: EpPropMergeType; readonly innerProps: Record; readonly perfMode: EpPropMergeType; readonly useIsScrolling: boolean; readonly columnCache: number; readonly initScrollLeft: number; readonly initScrollTop: number; readonly rowCache: number; readonly hScrollbarSize: number; readonly vScrollbarSize: number; readonly scrollbarStartGap: number; readonly scrollbarEndGap: number; }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>; type GridInstance = InstanceType> & UnwrapRef<{ windowRef: Ref; innerRef: Ref; getItemStyleCache: ReturnType; scrollTo: (scrollOptions: GridScrollOptions) => void; scrollToItem: (rowIndex: number, columnIndex: number, alignment: Alignment) => void; states: Ref; }>; //#endregion export { GridInstance };