@rxap/services 16.0.0-dev.18 → 16.0.0-dev.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +0,0 @@
1
- import { MediaMatcher } from '@angular/cdk/layout';
2
- import { ConfigService } from '@rxap/config';
3
- import { BehaviorSubject } from 'rxjs';
4
- import { ColorPalette } from './compute-color-palette';
5
- import * as i0 from "@angular/core";
6
- export type ThemeDensity = 0 | -1 | -2 | -3;
7
- export interface ColorPaletteConfigWithName extends ColorPaletteConfig {
8
- name?: string;
9
- }
10
- export interface ThemeConfig {
11
- primaryColor?: ColorPaletteConfigWithName;
12
- accentColor?: ColorPaletteConfigWithName;
13
- warnColor?: ColorPaletteConfigWithName;
14
- density?: ThemeDensity;
15
- typography?: string;
16
- }
17
- export interface ColorPaletteConfig {
18
- algorithm?: string;
19
- base?: string;
20
- color?: Partial<ColorPalette>;
21
- }
22
- export declare class ThemeService {
23
- readonly config: ConfigService<any>;
24
- readonly darkMode$: BehaviorSubject<boolean>;
25
- constructor(mediaMatcher: MediaMatcher);
26
- get darkMode(): boolean;
27
- toggleDarkTheme(checked?: boolean): void;
28
- setDensity(density: ThemeDensity): void;
29
- getDensity(): ThemeDensity;
30
- setTypography(typography: string): void;
31
- getTypography(): string;
32
- getAvailableColorPalettes(): string[];
33
- getColorPalette(colorPaletteName: string): Partial<ColorPalette>;
34
- getAvailableThemes(): string[];
35
- setTheme(themeName: string): void;
36
- getCurrentTheme(): string;
37
- private coerceColorPalette;
38
- private getTheme;
39
- getAvailableTypographies(): any[];
40
- private setCssColorVariables;
41
- private clearCssColorVariables;
42
- private resetToDefaultTheme;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
44
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
45
- }
@@ -1 +0,0 @@
1
- export * from './lib/local-storage.service.helper-spec';
@@ -1,13 +0,0 @@
1
- import { Provider } from '@angular/core';
2
- import { LocalStorageService } from '@rxap/services';
3
- import * as i0 from "@angular/core";
4
- export declare class LocalStorageServiceFake implements LocalStorageService {
5
- readonly localStorage: Map<string, string>;
6
- get(key: string): string | null;
7
- has(key: string): boolean;
8
- remove(key: string): void;
9
- set(key: string, value: any): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageServiceFake, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageServiceFake>;
12
- }
13
- export declare const LOCAL_STORAGE_SERVICE_FAKE_PROVIDER: Provider[];