UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

1,153 lines (1,152 loc) • 52.7 kB
/** * The Grid model extends the `ListModel` and changes some config. For example, the `columnCount` is * required on the grid model's configuration and `orientation` is removed. */ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{ /** * Controls the state changes when the user sends navigation events to the model. For example, * when the user hits the "right" arrow, a behavior hook will determine directionality * (left-to-right or right-to-left) and call the correct navigation method. In our example, a * left-to-right language would send a `getNext`. The navigation manager may return the next * item in the list. Different managers can be created for slightly different use cases. The * default navigation manager will stop when the end of a row/column is detected. For example, * `getNext` will return the same item the cursor was previously on if the cursor is on the last * item of a row. */ navigation: import("./useCursorListModel").NavigationManager; initialSelectedIds: import("./useSelectionListModel").SelectedIds; initialUnselectedIds: string[]; selection: import("./useSelectionListModel").SelectionManager; initialCursorId: string; pageSize: number; id: string; getId: (item: any) => string; getTextValue: (item: any) => string; nonInteractiveIds: string[]; defaultItemHeight: number; shouldVirtualize: boolean; items: any[]; }> & { /** * The number of columns represented in a grid */ columnCount: number; } & { onSelect?: ((data: { id: string; }, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onSelectAll?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onUnselectAll?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onSetSelectedIds?: ((data: string[] | "all", prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onRemove?: ((data: { id: string; nextId?: string | undefined; event?: Event | import("react").SyntheticEvent<Element, Event> | undefined; }, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoTo?: ((data: { id: string; }, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToNext?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToPrevious?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToPreviousRow?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToNextRow?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToFirst?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToLast?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToFirstOfRow?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToLastOfRow?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToNextPage?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onGoToPreviousPage?: ((data: undefined, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onRegisterItem?: ((data: { id: string; textValue: string; }, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onUnregisterItem?: ((data: { id: string; }, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; onUpdateItemHeight?: ((data: { value: number; }, prevState: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => void) | undefined; } & { shouldSelect?: ((data: { id: string; }, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldSelectAll?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldUnselectAll?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldSetSelectedIds?: ((data: string[] | "all", state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldRemove?: ((data: { id: string; nextId?: string | undefined; event?: Event | import("react").SyntheticEvent<Element, Event> | undefined; }, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoTo?: ((data: { id: string; }, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToNext?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToPrevious?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToPreviousRow?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToNextRow?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToFirst?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToLast?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToFirstOfRow?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToLastOfRow?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToNextPage?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldGoToPreviousPage?: ((data: undefined, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldRegisterItem?: ((data: { id: string; textValue: string; }, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldUnregisterItem?: ((data: { id: string; }, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; shouldUpdateItemHeight?: ((data: { value: number; }, state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }) => boolean) | undefined; }) | undefined) => { state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }; events: { select(data: { id: string; }): void; selectAll(): void; unselectAll(): void; setSelectedIds(ids: string[] | "all"): void; remove(data: { id: string; nextId?: string | undefined; event?: Event | import("react").SyntheticEvent<Element, Event> | undefined; }): void; goTo(data: { id: string; }): void; goToNext(): void; goToPrevious(): void; goToPreviousRow(): void; goToNextRow(): void; goToFirst(): void; goToLast(): void; goToFirstOfRow(): void; goToLastOfRow(): void; goToNextPage(): void; goToPreviousPage(): void; registerItem(data: { id: string; textValue: string; }): void; unregisterItem(data: { id: string; }): void; updateItemHeight(data: { value: number; }): void; }; selection: import("./useSelectionListModel").SelectionManager; navigation: import("./useCursorListModel").NavigationManager; getId: (item: any) => string; }) & import("@workday/canvas-kit-react/common").ModelExtras<{ /** * Controls the state changes when the user sends navigation events to the model. For example, * when the user hits the "right" arrow, a behavior hook will determine directionality * (left-to-right or right-to-left) and call the correct navigation method. In our example, a * left-to-right language would send a `getNext`. The navigation manager may return the next * item in the list. Different managers can be created for slightly different use cases. The * default navigation manager will stop when the end of a row/column is detected. For example, * `getNext` will return the same item the cursor was previously on if the cursor is on the last * item of a row. */ navigation: import("./useCursorListModel").NavigationManager; initialSelectedIds: import("./useSelectionListModel").SelectedIds; initialUnselectedIds: string[]; selection: import("./useSelectionListModel").SelectionManager; initialCursorId: string; pageSize: number; id: string; getId: (item: any) => string; getTextValue: (item: any) => string; nonInteractiveIds: string[]; defaultItemHeight: number; shouldVirtualize: boolean; items: any[]; }, { /** * The number of columns represented in a grid */ columnCount: number; }, { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string; columnCount: number; pageSizeRef: import("react").MutableRefObject<number>; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: { virtualItems: import("./react-virtual").VirtualItem[]; totalSize: number; scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void; scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void; measure: () => void; }; UNSTABLE_defaultItemHeight: number; containerRef: import("react").RefObject<HTMLDivElement>; id: string; orientation: "horizontal" | "vertical"; indexRef: import("react").MutableRefObject<number>; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("./useBaseListModel").Item<any>[]; }, { select(data: { id: string; }): void; selectAll(): void; unselectAll(): void; setSelectedIds(ids: string[] | "all"): void; remove(data: { id: string; nextId?: string | undefined; event?: Event | import("react").SyntheticEvent<Element, Event> | undefined; }): void; goTo(data: { id: string; }): void; goToNext(): void; goToPrevious(): void; goToPreviousRow(): void; goToNextRow(): void;