@obliczeniowo/elementary
Version:
Library made in Angular version 19
37 lines (36 loc) • 1.81 kB
TypeScript
import { ColorComponent, ColorTranslations } from './../color-component/color.component';
import { ElementRef, EventEmitter } from '@angular/core';
import { ColorRGB } from '@obliczeniowo/elementary/classes';
import { ControlValueAccessor } from '@angular/forms';
import * as i0 from "@angular/core";
export interface ColorPickerTranslations extends ColorTranslations {
set: string;
cancel: string;
}
export type PickerColor = ColorRGB | {
r: string | number;
g: string | number;
b: string | number;
a: string | number;
};
export declare class ColorPickerControlComponent implements ControlValueAccessor {
private pChosenColor;
isOpen: boolean;
translations: import("@angular/core").InputSignal<ColorPickerTranslations>;
set chosenColor(chosenColor: PickerColor);
inputBorder: import("@angular/core").InputSignal<"outlined" | "underlined" | "none">;
buttonPos: ElementRef<HTMLElement>;
colorComponent: ColorComponent;
changed: EventEmitter<ColorRGB>;
onChange: (value: ColorRGB | undefined) => void;
onTouched: () => void;
registerOnValidatorChange(fn: () => void): void;
writeValue(set?: ColorRGB): void;
registerOnChange(onChange: any): void;
registerOnTouched(onTouched: any): void;
save(): void;
toggle(): void;
color(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerControlComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerControlComponent, "obl-color-picker-control", never, { "translations": { "alias": "translations"; "required": false; "isSignal": true; }; "chosenColor": { "alias": "chosenColor"; "required": false; }; "inputBorder": { "alias": "inputBorder"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, never, false, never>;
}