ngx-input-color
Version:
Angular color input component and color picker (with HSL, HSV, RGB, CMYK, HEX, alpha, eye-dropper, etc)
33 lines (32 loc) • 1.49 kB
TypeScript
import { ElementRef, OnDestroy, Renderer2, ViewContainerRef } from '@angular/core';
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
import * as i0 from "@angular/core";
export declare class NgxInputBoxShadowDirective implements OnDestroy, ControlValueAccessor, Validator {
private _doc;
private el;
private renderer;
private viewContainerRef;
setInputBackground: boolean;
private pickerComponentRef?;
private backdrop?;
private pickerEl?;
isDisabled: boolean;
value: string;
_onChange: (value: string) => void;
_onTouched: () => void;
_onValidateChange: () => void;
constructor(_doc: Document, el: ElementRef, renderer: Renderer2, viewContainerRef: ViewContainerRef);
onClick(ev: Event): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
setDisabledState(disabled: boolean): void;
registerOnValidatorChange(fn: () => void): void;
validate(control: AbstractControl): ValidationErrors | null;
ngOnDestroy(): void;
writeValue(value: any): void;
toggleColorPicker(): void;
setPosition(): void;
destroyPicker(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxInputBoxShadowDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxInputBoxShadowDirective, "[ngxInputBoxShadow]", never, { "setInputBackground": { "alias": "setInputBackground"; "required": false; }; }, {}, never, never, false, never>;
}