UNPKG

@engie-group/fluid-design-system-angular

Version:

Fluid Design System Angular

29 lines (28 loc) 1.15 kB
import { ElementRef, OnChanges, SimpleChanges } from '@angular/core'; import * as i0 from "@angular/core"; export declare class HighlightDirective implements OnChanges { private el; /** * Content we want to highlight */ content: string; /** * Text to highlight in the content */ textToHighlight: string; /** * Whether to escape accents or no */ escapeAccents: boolean; /** * Whether to take into account case or no */ caseSensitive: boolean; private readonly OPENING_TAG; private readonly CLOSING_TAG; constructor(el: ElementRef); ngOnChanges(changes: SimpleChanges): void; private highlightText; static ɵfac: i0.ɵɵFactoryDeclaration<HighlightDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightDirective, "[njHighlight]", never, { "content": { "alias": "content"; "required": false; }; "textToHighlight": { "alias": "textToHighlight"; "required": false; }; "escapeAccents": { "alias": "escapeAccents"; "required": false; }; "caseSensitive": { "alias": "caseSensitive"; "required": false; }; }, {}, never, never, true, never>; }