/// import { FiltersMap } from '@wix/bex-core'; import { CardsGridPresetProps } from './CardsGrid.types'; import { CardsGridState } from '../../state'; import { DragAndDrop } from '../DragAndDrop'; import { BulkActionToolbarRenderProp } from '../BulkAction'; import { CardGridItemBaseProps } from './CardGridItemBaseProps'; import { ToolbarCollectionBaseProps } from '../ToolbarCollection'; interface CardsGridVirtualBaseProps extends Omit, 'sticky'>, CardGridItemBaseProps { dataHook?: string; /** * Drag and drop implementation: `import { CardsGridDragAndDrop } from '@wix/cairo';` * > In order to make the drag and drop also re-order the collection after drop, also add [OptimisticActions](/pages/cairo/?path=/story/components-collection-features--optimistic-actions). * @external */ dragAndDrop?: DragAndDrop; /** * A grid state instance created using [useGrid](/pages/cairo/?path=/story/common-hooks--usegrid). * @external */ state: CardsGridState; /** * Render a custom toolbar when more than 1 item is selected.
* The function accepts the following parameters * * `selectedValues`: The items that were checked via the selection column * * `uncheckedValues`: The items that were unchecked via the selection column * * `isSelectAll`: Indicates whether the "Select All" checkbox is checked * * `openModal`: Opens a modal that contains the component from `bulkActionModal` render prop * * `clearSelection`: Clears all existing selection, call this after the action on the selected items was done * * `total`: Total items in the server (taken from [`fetchData`](/pages/cairo/?path=/story/common-hooks--usecollection) return value). * * `openConfirmModal`: Opens a `` to confirm an action about to be applied on the selected items. * * `query`: ComputedQuery - Representation of the current paging, sorting & filtering applied. Usually for using together with bulk action such as `updateAll` and `deleteAll` * * > When passed, enables `showSelection` by default. * @external */ bulkActionToolbar?: BulkActionToolbarRenderProp; } export type CardsGridVirtualBasePropsWithoutPreset = Omit, 'preset' | 'renderItem'>; export type CardsGridVirtualProps = CardsGridPresetProps>; declare function _CardsGridVirtual(props: CardsGridVirtualProps): JSX.Element; export declare const CardsGridVirtual: typeof _CardsGridVirtual & { displayName: string; }; export {}; //# sourceMappingURL=CardsGridVirtual.d.ts.map