import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { NgxColorsTriggerDirective } from 'ngx-colors'; import { FormGroup } from '@angular/forms'; import { ColorFormat, ColorsAnimation, PaletteColor } from '../../models/color-format.model'; import { FieldConfig } from '../../models/field-config.model'; import { FormUtilityService } from '../../services/form-utility.service'; import * as i0 from "@angular/core"; export declare class ColorPickerComponent implements OnInit, OnDestroy { private elementRef; private formUtilityService; colorPickerDirective: NgxColorsTriggerDirective; colorPickerTexts: any; paletteColors: PaletteColor[]; paletteContainer: HTMLElement; group: FormGroup; config: FieldConfig; colorPickerChange: EventEmitter; colorPickerSliderChange: EventEmitter; defaultColor: string; canShowPalette: boolean; palette: string[]; overlayClassName: string; colorFormat: ColorFormat; colorAnimation: ColorsAnimation; formControlName: string; paletteSelectLabel: any; paletteCancelLabel: any; colorPickerLabel: string; isColorCodeLabelNeeded: boolean; isArrowIconNeeded: boolean; canHideTextInput: boolean; canHideColorPicker: boolean; constructor(elementRef: ElementRef, formUtilityService: FormUtilityService); ngOnInit(): void; /** * Sets the color to form group control. * @memberof ColorPickerComponent * @param {string} color * @returns {void} */ inputChange(color: string): void; /** * Sets canShowPalette to true when the palette is opened. * @memberof ColorPickerComponent * @returns {void} */ onOpenPalette(): void; /** * Sets canShowPalette to false when the palette is closed. * @memberof ColorPickerComponent * @returns {void} */ onClosePalette(): void; /** * Gets triggered when the the alpha, hue or Lightness sliders are changed * @param {string} color */ onSliderChange(color: string): void; /** * Toggles the palette panel. * @memberof ColorPickerComponent * @returns {void} */ togglePalette(): void; /** * Listening the color picker events to achieve the accessibility for color palette. * canAddListener false remove the event listeners which we calls in ngDestroy, * canAddListener true adding the event listeners while opening the color palette. * @memberof ColorPickerComponent * @param {boolean} canAddListener * @returns {void} */ colorPickerEventHandlers(canAddListener: boolean): void; /** * Listens keydown event handles to make the palette focusable. * @memberof ColorPickerComponent * @param {HTMLElement[]} colorPallettesList * @param {KeyboardEvent} event * @returns {void} */ colorPickerKeyDownHandler(colorPallettesList: HTMLElement[], event: KeyboardEvent): void; /** * Removing the active listeners while component get destroyed. */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }