@triangular/rpg-awesome-icons
Version:
Use the cool icons from RPGAwesome in your app, fully tree-shaked and only loaded when necessary. Injected into the dom, and therefore IE compatible.
35 lines (30 loc) • 1.42 kB
TypeScript
import * as i0 from '@angular/core';
import { ModuleWithProviders } from '@angular/core';
declare class RpgAwesomeIconComponent {
private element;
private iconsRegistry;
private document;
private svgIcon;
set name(iconName: string);
private svgElementFromString;
static ɵfac: i0.ɵɵFactoryDeclaration<RpgAwesomeIconComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<RpgAwesomeIconComponent, "rpg-awesome-icon", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
}
interface AnyRegistryIcon {
name: string;
data: string;
}
declare class RpgAwesomeIconsRegistry {
private registry;
registerIcons(icons: AnyRegistryIcon[]): void;
getIcon(iconName: string): string | undefined;
static ɵfac: i0.ɵɵFactoryDeclaration<RpgAwesomeIconsRegistry, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<RpgAwesomeIconsRegistry>;
}
declare class RpgAwesomeIconsModule {
static forRoot(): ModuleWithProviders<RpgAwesomeIconsModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<RpgAwesomeIconsModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<RpgAwesomeIconsModule, never, [typeof RpgAwesomeIconComponent], [typeof RpgAwesomeIconComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<RpgAwesomeIconsModule>;
}
export { RpgAwesomeIconComponent, RpgAwesomeIconsModule, RpgAwesomeIconsRegistry };