primeng
Version:
PrimeNG is a premium UI library for Angular featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock,
32 lines (29 loc) • 901 B
TypeScript
import * as i0 from '@angular/core';
declare class UseStyle {
document: Document;
private styleSheets;
private shadowRoots;
/**
* Applies the injected styles inside the given shadow root.
*/
addShadowRoot(shadowRoot: ShadowRoot): () => void;
/**
* Stops applying the injected styles inside the given shadow root.
*/
removeShadowRoot(shadowRoot: ShadowRoot): void;
/**
* Removes an injected style from the document and from the shadow roots that adopted it.
*/
remove(name: string): void;
use(css: any, options?: any): {
id: any;
name: any;
el: HTMLStyleElement;
css: any;
} | undefined;
private adoptStyleSheet;
private isAdoptionSupported;
static ɵfac: i0.ɵɵFactoryDeclaration<UseStyle, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<UseStyle>;
}
export { UseStyle };