1 | import { OnChanges, SimpleChanges } from '@angular/core';
|
2 | import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
3 | import { FaSymbol, FlipProp, IconDefinition, IconProp, PullProp, RotateProp, SizeProp, Styles, Transform } from '@fortawesome/fontawesome-svg-core';
|
4 | import { FaConfig } from '../config';
|
5 | import { FaIconLibrary } from '../icon-library';
|
6 | import { AnimationProp } from '../shared/models/props.model';
|
7 | import { FaStackItemSizeDirective } from '../stack/stack-item-size.directive';
|
8 | import { FaStackComponent } from '../stack/stack.component';
|
9 | import * as i0 from "@angular/core";
|
10 | export declare class FaIconComponent implements OnChanges {
|
11 | private sanitizer;
|
12 | private config;
|
13 | private iconLibrary;
|
14 | private stackItem;
|
15 | icon: IconProp;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | title?: string;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | animation?: AnimationProp;
|
30 | |
31 |
|
32 |
|
33 | set spin(value: boolean);
|
34 | |
35 |
|
36 |
|
37 | set pulse(value: boolean);
|
38 | mask?: IconProp;
|
39 | |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | styles?: Styles;
|
48 | flip?: FlipProp;
|
49 | size?: SizeProp;
|
50 | pull?: PullProp;
|
51 | border?: boolean;
|
52 | inverse?: boolean;
|
53 | symbol?: FaSymbol;
|
54 | rotate?: RotateProp;
|
55 | fixedWidth?: boolean;
|
56 | |
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 | classes?: string[];
|
65 | transform?: string | Transform;
|
66 | |
67 |
|
68 |
|
69 |
|
70 |
|
71 | a11yRole: string;
|
72 | renderedIconHTML: SafeHtml;
|
73 | constructor(sanitizer: DomSanitizer, config: FaConfig, iconLibrary: FaIconLibrary, stackItem: FaStackItemSizeDirective, stack: FaStackComponent);
|
74 | ngOnChanges(changes: SimpleChanges): void;
|
75 | /**
|
76 | * Programmatically trigger rendering of the icon.
|
77 | *
|
78 | * This method is useful, when creating {@link FaIconComponent} dynamically or
|
79 | * changing its inputs programmatically as in these cases icon won't be
|
80 | * re-rendered automatically.
|
81 | */
|
82 | render(): void;
|
83 | protected findIconDefinition(i: IconProp | IconDefinition): IconDefinition | null;
|
84 | protected buildParams(): {
|
85 | title: string;
|
86 | transform: Transform;
|
87 | classes: string[];
|
88 | mask: IconDefinition;
|
89 | styles: Styles;
|
90 | symbol: FaSymbol;
|
91 | attributes: {
|
92 | role: string;
|
93 | };
|
94 | };
|
95 | private renderIcon;
|
96 | static ɵfac: i0.ɵɵFactoryDeclaration<FaIconComponent, [null, null, null, { optional: true; }, { optional: true; }]>;
|
97 | static ɵcmp: i0.ɵɵComponentDeclaration<FaIconComponent, "fa-icon", never, { "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "spin": { "alias": "spin"; "required": false; }; "pulse": { "alias": "pulse"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "flip": { "alias": "flip"; "required": false; }; "size": { "alias": "size"; "required": false; }; "pull": { "alias": "pull"; "required": false; }; "border": { "alias": "border"; "required": false; }; "inverse": { "alias": "inverse"; "required": false; }; "symbol": { "alias": "symbol"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "fixedWidth": { "alias": "fixedWidth"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "transform": { "alias": "transform"; "required": false; }; "a11yRole": { "alias": "a11yRole"; "required": false; }; }, {}, never, never, false, never>;
|
98 | }
|