import { nothing } from 'lit'; import { FileOrderType } from '../types/files.types'; import { WeavySubAppComponent } from '../classes/weavy-sub-app-component'; import { ShadowPartsController } from '../controllers/shadow-parts-controller'; import { AppearanceModeType } from '../types/ui.types'; declare global { interface HTMLElementTagNameMap { "wy-files-header": WyFilesHeader; } } /** * Header toolbar for the files view — actions for uploading, sorting, view options and notifications. * * **Used sub components:** * * - [``](./ui/wy-button.ts) * - [``](./ui/wy-dropdown.ts) * - [``](./ui/wy-icon.ts) * - [``](./ui/wy-progress-circular.ts) * - [``](./ui/wy-overlay.ts) * - [``](./ui/wy-container.ts) * - [``](./wy-cloud-files.ts) * - [``](./wy-context-data.ts) * * @slot title - Title placed in the toolbar. * @slot actions - Buttons placed in the toolbar. * * @csspart wy-files-header - Root header container * @csspart wy-header - Header area * @csspart wy-header-outer - Outer styling for header area. * @csspart wy-files-header-toolbar - Toolbar in the header * @csspart wy-toolbar - Toolbar container for header actions * @csspart wy-toolbar-buttons - Group for toolbar buttons * @csspart wy-toolbar-buttons-last - Right aligned toolbar button group * * @fires {WyActionEventType} wy-action - Emitted when a file is created. Editable files use `edit` and are opened in edit mode, other files use `select` and are selected. * @fires {OrderEventType} order - Emitted when the user changes sort order. * @fires {ViewEventType} view - Emitted when the user changes the view mode (list/grid). * @fires {ShowTrashedEventType} show-trashed - Emitted when the show/hide trashed toggle is changed. * @fires {SubscribeEventType} subscribe - Emitted when the app subscribe/unsubscribe action is triggered. */ export declare class WyFilesHeader extends WeavySubAppComponent { static styles: import('lit').CSSResult[]; /** @internal */ protected exportParts: ShadowPartsController; /** * Appearance of the file list header * @type {"interactive" | "empty" | "none"} * @default "interactive" */ header: AppearanceModeType; /** * Active sort order for the list. */ order: FileOrderType; /** * Active layout for rendering files. */ view: "grid" | "list"; /** * Show trashed files when enabled. */ showTrashed: boolean; /** * Emit an `order` event reflecting the chosen sort order. * * @internal * @param order - Order to apply. * @returns {boolean} True if the event was not canceled. */ private dispatchOrder; /** * Emit a `view` event for changing layout mode. * * @internal * @param view - Layout to activate. * @returns {boolean} True if the event was not canceled. */ private dispatchView; /** * Emit a `show-trashed` event to toggle trashed visibility. * * @internal * @param showTrashed - Whether to show trashed files. * @returns {boolean} True if the event was not canceled. */ private dispatchShowTrashed; /** * Emit a `subscribe` event to toggle app subscription. * * @internal * @param subscribe - Desired subscription state. * @returns {boolean} True if the event was not canceled. */ private dispatchSubscribe; render(): import('../../node_modules/lit-html/node/lit-html.js').TemplateResult<1> | typeof nothing; } //# sourceMappingURL=wy-files-header.d.ts.map