import { nothing } from 'lit'; import { RefOrCallback } from 'lit/directives/ref.js'; import { FileOrderType, FilesResultType } from '../types/files.types'; import { WeavySubTypeComponent } from '../classes/weavy-sub-type-component'; import { ShadowPartsController } from '../controllers/shadow-parts-controller'; import { InfiniteData, InfiniteQueryObserverResult } from '@tanstack/query-core'; declare global { interface HTMLElementTagNameMap { "wy-files-grid": WyFilesGrid; } } /** * Grid view renderer for files (card view). * * **Used sub components:** * * - [``](./wy-file-menu.ts) * - [``](./wy-file-draft-badge.ts) * - [``](./ui/wy-icon.ts) * - [``](./ui/wy-button.ts) * * @csspart wy-grid - Card grid layout * @csspart wy-card - Card root container * @csspart wy-trashed - Modifier for trashed cards * @csspart wy-card-interactive - Hoverable card modifier * @csspart wy-highlight - Highlighted card modifier * @csspart wy-card-actions - Container for per-card actions * @csspart wy-card-image - Thumbnail image area * @csspart wy-card-image-top - Modifier for image top area * @csspart wy-card-icon - Icon area for non-image files * @csspart wy-card-title - Card title area * @csspart wy-card-text - Text in the card * @csspart wy-card-button-icon - Title action / badge * @csspart wy-badge - Badge used for comment counts * @csspart wy-pager - Pager anchor for infinite scrolling detection. * @csspart wy-pager-overlay - Modifier for overlaying pager. * @csspart wy-pager-top - Modifier for pager placed in the top. * @csspart wy-pager-bottom - Modifier for pager placed in the bottom. * * @fires {WyActionEventType} wy-action - Emitted when an action is performed on an entity. * @fires {OrderEventType} order - Emitted when the user changes sort order. */ export declare class WyFilesGrid extends WeavySubTypeComponent { static styles: import('lit').CSSResult[]; /** @internal */ protected exportParts: ShadowPartsController; /** * Infinite query result backing the file grid. * * @internal */ infiniteQueryResult?: InfiniteQueryObserverResult>; /** * File id that is selected. * */ selectedId?: number; /** * File id currently being renamed. * @internal */ isRenamingId?: number; /** * File id that should be scrolled into view and highlighted. * @internal */ highlightId?: number; /** * Reference to the pager element for loading previous items. */ previousPagerRef: RefOrCallback; /** * Reference to the pager element for loading next items. */ nextPagerRef: RefOrCallback; constructor(); /** * Emit an `order` event with the selected sort order. * * @param order - Order to apply. * @returns Whether the event was not canceled. */ dispatchOrder(order: FileOrderType): boolean; render(): import('../../node_modules/lit-html/node/lit-html.js').TemplateResult<1> | typeof nothing; } //# sourceMappingURL=wy-files-grid.d.ts.map