1 | import { ElementRef, OnDestroy, EventEmitter, Renderer2, ChangeDetectorRef } from '@angular/core';
|
---|
2 | import { AnimationEvent } from '@angular/animations';
|
---|
3 | import { ControlValueAccessor } from '@angular/forms';
|
---|
4 | import { OverlayService, PrimeNGConfig } from 'primeng/api';
|
---|
5 | import * as i0 from "@angular/core";
|
---|
6 | import * as i1 from "@angular/common";
|
---|
7 | export declare const COLORPICKER_VALUE_ACCESSOR: any;
|
---|
8 | export declare class ColorPicker implements ControlValueAccessor, OnDestroy {
|
---|
9 | el: ElementRef;
|
---|
10 | renderer: Renderer2;
|
---|
11 | cd: ChangeDetectorRef;
|
---|
12 | config: PrimeNGConfig;
|
---|
13 | overlayService: OverlayService;
|
---|
14 | style: any;
|
---|
15 | styleClass: string;
|
---|
16 | inline: boolean;
|
---|
17 | format: string;
|
---|
18 | appendTo: any;
|
---|
19 | disabled: boolean;
|
---|
20 | tabindex: string;
|
---|
21 | inputId: string;
|
---|
22 | autoZIndex: boolean;
|
---|
23 | baseZIndex: number;
|
---|
24 | showTransitionOptions: string;
|
---|
25 | hideTransitionOptions: string;
|
---|
26 | onChange: EventEmitter<any>;
|
---|
27 | onShow: EventEmitter<any>;
|
---|
28 | onHide: EventEmitter<any>;
|
---|
29 | containerViewChild: ElementRef;
|
---|
30 | inputViewChild: ElementRef;
|
---|
31 | value: any;
|
---|
32 | inputBgColor: string;
|
---|
33 | shown: boolean;
|
---|
34 | overlayVisible: boolean;
|
---|
35 | defaultColor: string;
|
---|
36 | onModelChange: Function;
|
---|
37 | onModelTouched: Function;
|
---|
38 | documentClickListener: Function;
|
---|
39 | documentResizeListener: any;
|
---|
40 | documentMousemoveListener: Function;
|
---|
41 | documentMouseupListener: Function;
|
---|
42 | documentHueMoveListener: Function;
|
---|
43 | scrollHandler: any;
|
---|
44 | selfClick: boolean;
|
---|
45 | colorDragging: boolean;
|
---|
46 | hueDragging: boolean;
|
---|
47 | overlay: HTMLDivElement;
|
---|
48 | colorSelectorViewChild: ElementRef;
|
---|
49 | colorHandleViewChild: ElementRef;
|
---|
50 | hueViewChild: ElementRef;
|
---|
51 | hueHandleViewChild: ElementRef;
|
---|
52 | constructor(el: ElementRef, renderer: Renderer2, cd: ChangeDetectorRef, config: PrimeNGConfig, overlayService: OverlayService);
|
---|
53 | set colorSelector(element: ElementRef);
|
---|
54 | set colorHandle(element: ElementRef);
|
---|
55 | set hue(element: ElementRef);
|
---|
56 | set hueHandle(element: ElementRef);
|
---|
57 | onHueMousedown(event: MouseEvent): void;
|
---|
58 | onHueTouchStart(event: any): void;
|
---|
59 | onColorTouchStart(event: any): void;
|
---|
60 | pickHue(event: any, position?: any): void;
|
---|
61 | onColorMousedown(event: MouseEvent): void;
|
---|
62 | onMove(event: any): void;
|
---|
63 | onDragEnd(): void;
|
---|
64 | pickColor(event: any, position?: any): void;
|
---|
65 | getValueToUpdate(): any;
|
---|
66 | updateModel(): void;
|
---|
67 | writeValue(value: any): void;
|
---|
68 | updateColorSelector(): void;
|
---|
69 | updateUI(): void;
|
---|
70 | onInputFocus(): void;
|
---|
71 | show(): void;
|
---|
72 | onOverlayAnimationStart(event: AnimationEvent): void;
|
---|
73 | onOverlayAnimationEnd(event: AnimationEvent): void;
|
---|
74 | appendOverlay(): void;
|
---|
75 | restoreOverlayAppend(): void;
|
---|
76 | alignOverlay(): void;
|
---|
77 | hide(): void;
|
---|
78 | onInputClick(): void;
|
---|
79 | togglePanel(): void;
|
---|
80 | onInputKeydown(event: KeyboardEvent): void;
|
---|
81 | onOverlayClick(event: any): void;
|
---|
82 | registerOnChange(fn: Function): void;
|
---|
83 | registerOnTouched(fn: Function): void;
|
---|
84 | setDisabledState(val: boolean): void;
|
---|
85 | bindDocumentClickListener(): void;
|
---|
86 | unbindDocumentClickListener(): void;
|
---|
87 | bindDocumentMousemoveListener(): void;
|
---|
88 | unbindDocumentMousemoveListener(): void;
|
---|
89 | bindDocumentMouseupListener(): void;
|
---|
90 | unbindDocumentMouseupListener(): void;
|
---|
91 | bindDocumentResizeListener(): void;
|
---|
92 | unbindDocumentResizeListener(): void;
|
---|
93 | onWindowResize(): void;
|
---|
94 | bindScrollListener(): void;
|
---|
95 | unbindScrollListener(): void;
|
---|
96 | validateHSB(hsb: any): {
|
---|
97 | h: number;
|
---|
98 | s: number;
|
---|
99 | b: number;
|
---|
100 | };
|
---|
101 | validateRGB(rgb: any): {
|
---|
102 | r: number;
|
---|
103 | g: number;
|
---|
104 | b: number;
|
---|
105 | };
|
---|
106 | validateHEX(hex: any): any;
|
---|
107 | HEXtoRGB(hex: any): {
|
---|
108 | r: number;
|
---|
109 | g: number;
|
---|
110 | b: number;
|
---|
111 | };
|
---|
112 | HEXtoHSB(hex: any): {
|
---|
113 | h: number;
|
---|
114 | s: number;
|
---|
115 | b: number;
|
---|
116 | };
|
---|
117 | RGBtoHSB(rgb: any): {
|
---|
118 | h: number;
|
---|
119 | s: number;
|
---|
120 | b: number;
|
---|
121 | };
|
---|
122 | HSBtoRGB(hsb: any): {
|
---|
123 | r: number;
|
---|
124 | g: number;
|
---|
125 | b: number;
|
---|
126 | };
|
---|
127 | RGBtoHEX(rgb: any): string;
|
---|
128 | HSBtoHEX(hsb: any): string;
|
---|
129 | onOverlayHide(): void;
|
---|
130 | ngOnDestroy(): void;
|
---|
131 | static ɵfac: i0.ɵɵFactoryDeclaration<ColorPicker, never>;
|
---|
132 | static ɵcmp: i0.ɵɵComponentDeclaration<ColorPicker, "p-colorPicker", never, { "style": "style"; "styleClass": "styleClass"; "inline": "inline"; "format": "format"; "appendTo": "appendTo"; "disabled": "disabled"; "tabindex": "tabindex"; "inputId": "inputId"; "autoZIndex": "autoZIndex"; "baseZIndex": "baseZIndex"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; }, { "onChange": "onChange"; "onShow": "onShow"; "onHide": "onHide"; }, never, never>;
|
---|
133 | }
|
---|
134 | export declare class ColorPickerModule {
|
---|
135 | static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerModule, never>;
|
---|
136 | static ɵmod: i0.ɵɵNgModuleDeclaration<ColorPickerModule, [typeof ColorPicker], [typeof i1.CommonModule], [typeof ColorPicker]>;
|
---|
137 | static ɵinj: i0.ɵɵInjectorDeclaration<ColorPickerModule>;
|
---|
138 | }
|
---|