@iplab/ngx-color-picker
Advanced tools
Comparing version 14.0.0 to 14.1.0
@@ -6,2 +6,3 @@ import { EventEmitter, OnChanges, ElementRef, Renderer2, SimpleChanges } from '@angular/core'; | ||
export declare class AlphaComponent extends BaseComponent implements OnChanges { | ||
private readonly renderer; | ||
color: Color; | ||
@@ -11,4 +12,3 @@ colorChange: EventEmitter<Color>; | ||
private isVertical; | ||
constructor(renderer: Renderer2, document: any, elementRef: ElementRef); | ||
onClick(event: any): void; | ||
constructor(renderer: Renderer2); | ||
set vertical(value: string); | ||
@@ -15,0 +15,0 @@ /** |
@@ -1,17 +0,11 @@ | ||
import { ElementRef, Renderer2, OnDestroy } from '@angular/core'; | ||
import { ElementRef, OnDestroy } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
/** | ||
* because a dynamic directive yet is not implemented, | ||
* we have a base class which will | ||
* help us to implement position calculation in our | ||
* components | ||
*/ | ||
export declare abstract class BaseComponent implements OnDestroy { | ||
private readonly subscriptions; | ||
private window; | ||
private readonly requestAnimationFrame; | ||
private mouseup; | ||
private readonly document; | ||
protected readonly elementRef: ElementRef; | ||
protected readonly renderer: Renderer2; | ||
private eventHooks; | ||
private window; | ||
private readonly requestAnimationFrame; | ||
constructor(document: any, elementRef: ElementRef, renderer: Renderer2); | ||
constructor(); | ||
abstract movePointer(coordinates: { | ||
@@ -23,7 +17,7 @@ x: number; | ||
}): void; | ||
protected onEventChange(event: MouseEvent | TouchEvent): void; | ||
private addEventListeners; | ||
private onEventChange; | ||
private calculateCoordinates; | ||
private calculate; | ||
private getRequestAnimationFrame; | ||
private removeListeners; | ||
ngOnDestroy(): void; | ||
@@ -30,0 +24,0 @@ static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>; |
@@ -1,6 +0,5 @@ | ||
import { Renderer2, OnDestroy, ChangeDetectorRef, EventEmitter } from '@angular/core'; | ||
import { OnDestroy, ChangeDetectorRef, EventEmitter } from '@angular/core'; | ||
import { Color } from './../../../helpers/color.class'; | ||
import * as i0 from "@angular/core"; | ||
export declare class ColorPresetSublist implements OnDestroy { | ||
private readonly renderer; | ||
private readonly document; | ||
@@ -13,4 +12,4 @@ private readonly cdr; | ||
showChildren: boolean; | ||
private hooks; | ||
constructor(renderer: Renderer2, document: any, cdr: ChangeDetectorRef); | ||
private subscriptions; | ||
constructor(document: any, cdr: ChangeDetectorRef); | ||
ngOnDestroy(): void; | ||
@@ -23,3 +22,3 @@ private removeListeners; | ||
onLongPress(): void; | ||
private listenDocumentClick; | ||
private listenDocumentEvents; | ||
private closeList; | ||
@@ -26,0 +25,0 @@ get className(): string; |
@@ -1,2 +0,2 @@ | ||
import { EventEmitter, OnDestroy } from '@angular/core'; | ||
import { EventEmitter, OnDestroy, ElementRef } from '@angular/core'; | ||
import { Color, ColorString } from './../../../helpers/color.class'; | ||
@@ -7,2 +7,3 @@ import { ColorPickerConfig } from './../../../services/color-picker.service'; | ||
private readonly pickerConfig; | ||
private readonly elementRef; | ||
activeColor: Color; | ||
@@ -15,3 +16,4 @@ color: Color; | ||
private showDepthText; | ||
constructor(pickerConfig: ColorPickerConfig); | ||
private subscriptions; | ||
constructor(pickerConfig: ColorPickerConfig, elementRef: ElementRef); | ||
ngOnDestroy(): void; | ||
@@ -21,6 +23,8 @@ get bgColor(): ColorString; | ||
get className(): boolean; | ||
onTouch(event: MouseEvent | TouchEvent): void; | ||
onTouchEnd(event: MouseEvent | TouchEvent): void; | ||
private addEventListeners; | ||
private removeEventListeners; | ||
private onTouch; | ||
private onTouchEnd; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPresetComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPresetComponent, "color-preset", never, { "activeColor": "activeColor"; "color": "color"; "depth": "show-depth-title"; }, { "selectionChange": "selectionChange"; "longPress": "longPress"; }, never, never, false>; | ||
} |
@@ -6,2 +6,3 @@ import { Renderer2, ElementRef, EventEmitter, SimpleChanges, OnChanges } from '@angular/core'; | ||
export declare class HueComponent extends BaseComponent implements OnChanges { | ||
private readonly renderer; | ||
hue: Color; | ||
@@ -13,4 +14,3 @@ hueChange: EventEmitter<Color>; | ||
private isVertical; | ||
constructor(renderer: Renderer2, document: any, elementRef: ElementRef); | ||
onClick(event: any): void; | ||
constructor(renderer: Renderer2); | ||
set vertical(value: string); | ||
@@ -17,0 +17,0 @@ /** |
@@ -13,7 +13,8 @@ import { Renderer2, ElementRef } from '@angular/core'; | ||
get title(): string; | ||
private subscriptions; | ||
constructor(pickerConfig: ColorPickerConfig, renderer: Renderer2, elementRef: ElementRef, document: any); | ||
get backgroundColor(): string; | ||
onClick(event: MouseEvent | TouchEvent): void; | ||
private onClick; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<IndicatorComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<IndicatorComponent, "indicator-component", never, { "color": "color"; "colorType": "colorType"; }, {}, never, never, false>; | ||
} |
@@ -6,2 +6,3 @@ import { EventEmitter, Renderer2, ElementRef, OnInit, OnChanges, SimpleChanges } from '@angular/core'; | ||
export declare class SaturationComponent extends BaseComponent implements OnInit, OnChanges { | ||
private readonly renderer; | ||
hue: Color; | ||
@@ -11,5 +12,4 @@ color: Color; | ||
pointer: ElementRef; | ||
constructor(renderer: Renderer2, document: any, elementRef: ElementRef); | ||
constructor(renderer: Renderer2); | ||
get backgroundColor(): string; | ||
onClick(event: any): void; | ||
ngOnInit(): void; | ||
@@ -16,0 +16,0 @@ /** |
@@ -6,3 +6,3 @@ { | ||
"bugs": "https://github.com/pIvan/ngx-color-picker/issues", | ||
"version": "14.0.0", | ||
"version": "14.1.0", | ||
"author": "Ivan Pintar", | ||
@@ -9,0 +9,0 @@ "license": "MIT", |
@@ -69,3 +69,3 @@ # ngx-color-picker | ||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.0. | ||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.0. | ||
@@ -94,3 +94,3 @@ | ||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.0. | ||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.0. | ||
@@ -97,0 +97,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1335906
8748