1 | import { OnChanges, OnDestroy, EventEmitter, ApplicationRef, ElementRef, ViewContainerRef, Injector, ComponentFactoryResolver } from '@angular/core';
|
2 | import { ColorPickerService } from './color-picker.service';
|
3 | import { AlphaChannel, ColorMode, OutputFormat } from './helpers';
|
4 | export declare class ColorPickerDirective implements OnChanges, OnDestroy {
|
5 | private injector;
|
6 | private cfr;
|
7 | private appRef;
|
8 | private vcRef;
|
9 | private elRef;
|
10 | private _service;
|
11 | private dialog;
|
12 | private dialogCreated;
|
13 | private ignoreChanges;
|
14 | private cmpRef;
|
15 | private viewAttachedToAppRef;
|
16 | colorPicker: string;
|
17 | cpWidth: string;
|
18 | cpHeight: string;
|
19 | cpToggle: boolean;
|
20 | cpDisabled: boolean;
|
21 | cpIgnoredElements: any;
|
22 | cpFallbackColor: string;
|
23 | cpColorMode: ColorMode;
|
24 | cpCmykEnabled: boolean;
|
25 | cpOutputFormat: OutputFormat;
|
26 | cpAlphaChannel: AlphaChannel;
|
27 | cpDisableInput: boolean;
|
28 | cpDialogDisplay: string;
|
29 | cpSaveClickOutside: boolean;
|
30 | cpCloseClickOutside: boolean;
|
31 | cpUseRootViewContainer: boolean;
|
32 | cpPosition: string;
|
33 | cpPositionOffset: string;
|
34 | cpPositionRelativeToArrow: boolean;
|
35 | cpOKButton: boolean;
|
36 | cpOKButtonText: string;
|
37 | cpOKButtonClass: string;
|
38 | cpCancelButton: boolean;
|
39 | cpCancelButtonText: string;
|
40 | cpCancelButtonClass: string;
|
41 | cpPresetLabel: string;
|
42 | cpPresetColors: string[];
|
43 | cpPresetColorsClass: string;
|
44 | cpMaxPresetColorsLength: number;
|
45 | cpPresetEmptyMessage: string;
|
46 | cpPresetEmptyMessageClass: string;
|
47 | cpAddColorButton: boolean;
|
48 | cpAddColorButtonText: string;
|
49 | cpAddColorButtonClass: string;
|
50 | cpRemoveColorButtonClass: string;
|
51 | cpInputChange: EventEmitter<{
|
52 | input: string;
|
53 | value: number | string;
|
54 | color: string;
|
55 | }>;
|
56 | cpToggleChange: EventEmitter<boolean>;
|
57 | cpSliderChange: EventEmitter<{
|
58 | slider: string;
|
59 | value: string | number;
|
60 | color: string;
|
61 | }>;
|
62 | cpSliderDragEnd: EventEmitter<{
|
63 | slider: string;
|
64 | color: string;
|
65 | }>;
|
66 | cpSliderDragStart: EventEmitter<{
|
67 | slider: string;
|
68 | color: string;
|
69 | }>;
|
70 | colorPickerOpen: EventEmitter<string>;
|
71 | colorPickerClose: EventEmitter<string>;
|
72 | colorPickerCancel: EventEmitter<string>;
|
73 | colorPickerSelect: EventEmitter<string>;
|
74 | colorPickerChange: EventEmitter<string>;
|
75 | cpCmykColorChange: EventEmitter<string>;
|
76 | cpPresetColorsChange: EventEmitter<any>;
|
77 | handleClick(): void;
|
78 | handleFocus(): void;
|
79 | handleInput(event: any): void;
|
80 | constructor(injector: Injector, cfr: ComponentFactoryResolver, appRef: ApplicationRef, vcRef: ViewContainerRef, elRef: ElementRef, _service: ColorPickerService);
|
81 | ngOnDestroy(): void;
|
82 | ngOnChanges(changes: any): void;
|
83 | openDialog(): void;
|
84 | closeDialog(): void;
|
85 | cmykChanged(value: string): void;
|
86 | stateChanged(state: boolean): void;
|
87 | colorChanged(value: string, ignore?: boolean): void;
|
88 | colorSelected(value: string): void;
|
89 | colorCanceled(): void;
|
90 | inputFocus(): void;
|
91 | inputChange(event: any): void;
|
92 | inputChanged(event: any): void;
|
93 | sliderChanged(event: any): void;
|
94 | sliderDragEnd(event: {
|
95 | slider: string;
|
96 | color: string;
|
97 | }): void;
|
98 | sliderDragStart(event: {
|
99 | slider: string;
|
100 | color: string;
|
101 | }): void;
|
102 | presetColorsChanged(value: any[]): void;
|
103 | }
|