import { LitElement, nothing } from 'lit'; import { type StateController } from '../controllers/state.js'; /** * Toolbar shown above the grid's header row. Hosts opt-in toolbar features * such as the quick-filter (global search) input and the export menu. * * @element apex-grid-toolbar * * @csspart toolbar - The toolbar's container element. * @csspart toolbar-search - The quick-filter input wrapper. * @csspart search-field - The bordered field containing the icon + input. * @csspart search-icon - The leading search icon. * @csspart search-input - The text input itself. * @csspart toolbar-actions - The trailing actions area (right side). * @csspart export-trigger - The export menu trigger button. * @csspart export-menu - The dropdown menu containing export options. * @csspart export-menu-item - A single menu item inside the export dropdown. */ export default class ApexGridToolbar extends LitElement { #private; static get tagName(): "apex-grid-toolbar"; static styles: import("lit").CSSResult; /** * Registers the `` element. Idempotent. */ static register(): void; state: StateController; /** * The current quick-filter value, mirrored from {@link ApexGrid.quickFilter}. */ value: string; /** * The placeholder rendered in the search input. */ placeholder: string; /** * Debounce window (ms) before {@link ApexGrid.quickFilter} updates. */ debounce: number; /** Whether to render the quick-filter input. Driven by the parent grid. */ showQuickFilter: boolean; /** Whether to render the export menu trigger. Driven by the parent grid. */ showExport: boolean; /** Optional override filename (without extension) for exports. */ exportFilename: string; protected input: HTMLInputElement; protected exportTrigger: HTMLButtonElement; protected exportMenuEl: HTMLElement; protected exportMenuOpen: boolean; connectedCallback(): void; disconnectedCallback(): void; protected renderQuickFilter(): import("lit-html").TemplateResult<1> | typeof nothing; protected renderExportMenu(): import("lit-html").TemplateResult<1> | typeof nothing; protected render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { [ApexGridToolbar.tagName]: ApexGridToolbar; } }