import { type CellContext, RowData } from '@tanstack/angular-table'; import { DataTableContextService } from '../src/data-table-context.service'; import { DataTableActionConfig, DataTableActionEvent, DataTableActionsMode, DataTableActionsSizeProps } from './actions.types'; import * as i0 from "@angular/core"; /** * Data-table actions component that auto-syncs with the parent data-table size * and provides row context from TanStack Table. * * @remarks * This component wraps `st-table-actions` for use within TanStack-based data tables. * It injects the flex render context to access the row data and the data table context * to automatically synchronize the action button sizes with the table size. * * @example * ```typescript * // In column definitions: * { * id: 'actions', * header: 'Actions', * enableSorting: false, * cell: () => flexRenderComponent(DataTableActionsComponent, { * inputs: { actions: this.userActions }, * outputs: { actionTriggered: (event) => this.handleAction(event.action, event.row) }, * }), * } * ``` */ export declare class DataTableActionsComponent { /** * TanStack Table context injected by flexRender */ readonly context: CellContext; /** * Data table context for size synchronization */ readonly dataTableContext: DataTableContextService; /** * Array of action configurations. */ readonly actions: import("@angular/core").InputSignal; /** * Rendering mode for the actions. * @defaultValue 'inline' */ readonly mode: import("@angular/core").InputSignal; /** * Icon for the dropdown trigger button. * @defaultValue matMoreVert (Material vertical dots icon) */ readonly triggerIcon: import("@angular/core").InputSignal; /** * Emitted when an action is triggered. Includes both the action config and the row data. */ readonly actionTriggered: import("@angular/core").OutputEmitterRef>; /** * @internal * Computed action size synchronized with the parent data-table size. */ readonly actionsSize: import("@angular/core").Signal; /** * @internal * Handles action click from the inner st-table-actions and emits with row context. */ onActionClick(action: DataTableActionConfig): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "st-data-table-actions", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "triggerIcon": { "alias": "triggerIcon"; "required": false; "isSignal": true; }; }, { "actionTriggered": "actionTriggered"; }, never, never, true, never>; }