UNPKG

1.19 kBTypeScriptView Raw
1import { NbJSThemeOptions } from './js-themes/theme.options';
2import * as i0 from "@angular/core";
3export declare const BUILT_IN_THEMES: NbJSThemeOptions[];
4/**
5 * Js Themes registry - provides access to the JS themes' variables.
6 * Usually shouldn't be used directly, but through the NbThemeService class methods (getJsTheme).
7 */
8export declare class NbJSThemesRegistry {
9 private themes;
10 constructor(builtInThemes: NbJSThemeOptions[], newThemes?: NbJSThemeOptions[]);
11 /**
12 * Registers a new JS theme
13 * @param config any
14 * @param themeName string
15 * @param baseTheme string
16 */
17 register(config: any, themeName: string, baseTheme: string): void;
18 /**
19 * Checks whether the theme is registered
20 * @param themeName
21 * @returns boolean
22 */
23 has(themeName: string): boolean;
24 /**
25 * Return a theme
26 * @param themeName
27 * @returns NbJSThemeOptions
28 */
29 get(themeName: string): NbJSThemeOptions;
30 private combineByNames;
31 private isObject;
32 private mergeDeep;
33 static ɵfac: i0.ɵɵFactoryDeclaration<NbJSThemesRegistry, never>;
34 static ɵprov: i0.ɵɵInjectableDeclaration<NbJSThemesRegistry>;
35}