UNPKG

sb-element

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.1. It is a component library constructed around the SCSS library [Sb-Theming](https://github.com/SeverinBuchser/SbTheming) and supports [Angular Schematics]

24 lines (23 loc) 767 B
import { BehaviorSubject } from "rxjs"; import * as i0 from "@angular/core"; export declare class ThemesConfig extends Array<ThemeConfig> { } export interface ThemeConfig { name: string; href: string; } export declare class SbThemeService extends BehaviorSubject<string> { private themesConfig; private document; private _themeConfig; constructor(themesConfig: ThemesConfig, document: Document); private findThemeByName; commit(themeName: string): void; get(): string; private createNewLinkElement; private updateLinkElement; private createLinkElement; private removeLinkElement; static ɵfac: i0.ɵɵFactoryDeclaration<SbThemeService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<SbThemeService>; }