UNPKG

@ux-aspects/ux-aspects

Version:

Open source user interface framework for building modern, responsive, mobile big data applications

34 lines (33 loc) 1.54 kB
import * as i0 from "@angular/core"; export declare class ColorContrastDirective { private readonly _colorService; private readonly _contrastService; /** * Define the background color for contrast comparison. * This can be a CSS color value or the name of a * color from the color palette. */ set uxColorContrast(backgroundColor: string); /** * Define the light color for contrast comparison. * This can be a CSS color value or the name of a * color from the color palette. */ set lightColor(lightColor: string); /** * Define the dark color for contrast comparison. * This can be a CSS color value or the name of a * color from the color palette. */ set darkColor(darkColor: string); /** Determine the color to set based on the supplied parameters */ get _color(): string | null; /** Store the background color as a ThemeColor object */ private _backgroundColor; /** Store the light color as a ThemeColor object */ private _lightColor; /** Store the light color as a ThemeColor object */ private _darkColor; static ɵfac: i0.ɵɵFactoryDeclaration<ColorContrastDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ColorContrastDirective, "[uxColorContrast]", never, { "uxColorContrast": { "alias": "uxColorContrast"; "required": false; }; "lightColor": { "alias": "lightColor"; "required": false; }; "darkColor": { "alias": "darkColor"; "required": false; }; }, {}, never, never, false, never>; }