@ngx-uk-frontend/core
Version:
Core utilities and shared functionality for ngx-uk-frontend libraries
30 lines (29 loc) • 1.31 kB
TypeScript
import { ErrorSummaryItemDirective } from './error-summary-item.directive';
import * as i0 from "@angular/core";
/**
* Base directive for error summary components
*
* This directive provides common functionality for error summary components
* across different design systems. It handles:
* - Auto-focus on render
* - Title property with default value
* - Content children query for error items
*
* Components should extend this directive and provide their own templates
* with design system-specific CSS classes.
*/
export declare class ErrorSummaryDirective {
private elementRef;
/**
* Query for all error summary item directives using signal-based query
* This allows the component to iterate through the child error items
*/
readonly errorItems: import("@angular/core").Signal<readonly ErrorSummaryItemDirective[]>;
/**
* Text to use for the heading of the error summary block
*/
readonly title: import("@angular/core").InputSignal<string>;
constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorSummaryDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ErrorSummaryDirective, "[libErrorSummary]", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, ["errorItems"], never, true, never>;
}