@ngx-uk-frontend/core
Version:
Core utilities and shared functionality for ngx-uk-frontend libraries
29 lines • 2.22 kB
JavaScript
import { Directive, input } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Base directive for summary list action components.
* Contains common functionality shared between different design system implementations.
*/
export class SummaryListActionDirective {
/**
* The URL for the action link
* Use either href or routerLink
*/
href = input(...(ngDevMode ? [undefined, { debugName: "href" }] : []));
/**
* The Angular router link for the action
* Use either href or routerLink
*/
routerLink = input(...(ngDevMode ? [undefined, { debugName: "routerLink" }] : []));
/**
* Optional visually hidden text for improved accessibility
* This is used to provide context for screen readers, e.g. "Change name"
*/
visuallyHiddenText = input(...(ngDevMode ? [undefined, { debugName: "visuallyHiddenText" }] : []));
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SummaryListActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.6", type: SummaryListActionDirective, isStandalone: true, inputs: { href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, visuallyHiddenText: { classPropertyName: "visuallyHiddenText", publicName: "visuallyHiddenText", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SummaryListActionDirective, decorators: [{
type: Directive
}], propDecorators: { href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], visuallyHiddenText: [{ type: i0.Input, args: [{ isSignal: true, alias: "visuallyHiddenText", required: false }] }] } });
//# sourceMappingURL=summary-list-action.directive.js.map