flowbite-angular
Version:
<div align="center"> <h1>:construction: flowbite-angular (unreleased) :construction:</h1> <p> <a href="https://flowbite.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src="https://flowbite.s3.amazonaws.com/github/logo-github
46 lines (45 loc) • 2.16 kB
TypeScript
import type { TrustedHTML } from './trusted-types';
import type { OnDestroy } from '@angular/core';
import type { SafeHtml } from '@angular/platform-browser';
import { type SafeResourceUrl } from '@angular/platform-browser';
import { type Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare function getSvgIconFromNamedError(iconName: string): Error;
export declare function getSvgIconFailedToSanitizeRawError(raw: SafeHtml): Error;
export declare function getSvgIconFailedToSanitizeUrlError(url: SafeResourceUrl): Error;
export declare function getSvgIconNoHttpClientProvidedError(): Error;
export interface SvgIconOptions {
viewBox: string;
}
export declare class SvgIconConfig {
url: SafeResourceUrl;
svgText: TrustedHTML | undefined;
options?: SvgIconOptions | undefined;
svgElement: SVGElement | null;
constructor(url: SafeResourceUrl, svgText: TrustedHTML | undefined, options?: SvgIconOptions | undefined);
}
export declare class IconRegistry implements OnDestroy {
private platformId;
private _httpClient;
private _sanitizer;
private _document;
private _svgIconConfig;
private _cachedSvgIconByUrl;
private _inProgressSvgIconFetch;
addSvgIcon(iconName: string, url: SafeResourceUrl, options?: SvgIconOptions): this;
addRawSvgIcon(iconName: string, raw: SafeHtml, options?: SvgIconOptions): this;
addSvgIconInNamespace(namespace: string, iconName: string, url: SafeResourceUrl, options?: SvgIconOptions): this;
addRawSvgIconInNamepsace(namespace: string, iconName: string, raw: SafeHtml, options?: SvgIconOptions): this;
getSvgIconFromUrl(safeUrl: SafeResourceUrl): Observable<SVGElement>;
getSvgIconFromName(iconName: string, namespace: string): Observable<SVGElement>;
ngOnDestroy(): void;
private _addSvgIconConfig;
private _getSvgIconFromConfig;
private _loadSvgIconFromConfig;
private _setSvgAttributes;
private _svgElementFromConfig;
private _svgElementFromString;
private _fetchIcon;
static ɵfac: i0.ɵɵFactoryDeclaration<IconRegistry, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<IconRegistry>;
}