ngx-colors
Advanced tools
Comparing version 3.5.2 to 3.5.3
@@ -1,6 +0,6 @@ | ||
import { OnInit, ChangeDetectorRef, ElementRef } from "@angular/core"; | ||
import { ColorFormats } from "../../enums/formats"; | ||
import { ConverterService } from "../../services/converter.service"; | ||
import { NgxColorsTriggerDirective } from "../../directives/ngx-colors-trigger.directive"; | ||
import { Hsva } from "../../clases/formats"; | ||
import { OnInit, ChangeDetectorRef, ElementRef } from '@angular/core'; | ||
import { ColorFormats } from '../../enums/formats'; | ||
import { ConverterService } from '../../services/converter.service'; | ||
import { NgxColorsTriggerDirective } from '../../directives/ngx-colors-trigger.directive'; | ||
import { Hsva } from '../../clases/formats'; | ||
import * as i0 from "@angular/core"; | ||
@@ -35,3 +35,3 @@ export declare class PanelComponent implements OnInit { | ||
cancelLabel: string; | ||
colorPickerControls: "default" | "only-alpha" | "no-alpha"; | ||
colorPickerControls: 'default' | 'only-alpha' | 'no-alpha'; | ||
private triggerInstance; | ||
@@ -44,2 +44,3 @@ private TriggerBBox; | ||
backupColor: any; | ||
placeholder: string; | ||
ngOnInit(): void; | ||
@@ -49,3 +50,3 @@ ngAfterViewInit(): void; | ||
private findIndexSelectedColor; | ||
iniciate(triggerInstance: NgxColorsTriggerDirective, triggerElementRef: any, color: any, palette: any, animation: any, format: string, hideTextInput: boolean, hideColorPicker: boolean, acceptLabel: string, cancelLabel: string, colorPickerControls: "default" | "only-alpha" | "no-alpha", position: "top" | "bottom"): void; | ||
iniciate(triggerInstance: NgxColorsTriggerDirective, triggerElementRef: any, color: any, palette: any, animation: any, format: string, hideTextInput: boolean, hideColorPicker: boolean, acceptLabel: string, cancelLabel: string, colorPickerControls: 'default' | 'only-alpha' | 'no-alpha', position: 'top' | 'bottom'): void; | ||
setPosition(): void; | ||
@@ -74,3 +75,3 @@ private setPositionY; | ||
nextFormat(): void; | ||
emitClose(status: "cancel" | "accept"): void; | ||
emitClose(status: 'cancel' | 'accept'): void; | ||
onClickBack(): void; | ||
@@ -77,0 +78,0 @@ isOutside(event: any): any; |
@@ -1,15 +0,17 @@ | ||
import { EventEmitter, ElementRef, ComponentRef } from "@angular/core"; | ||
import { PanelFactoryService } from "../services/panel-factory.service"; | ||
import { PanelComponent } from "../components/panel/panel.component"; | ||
import { ControlValueAccessor } from "@angular/forms"; | ||
import { NgxColorsColor } from "../clases/color"; | ||
import { EventEmitter, ElementRef, ComponentRef, OnDestroy } from '@angular/core'; | ||
import { PanelFactoryService } from '../services/panel-factory.service'; | ||
import { PanelComponent } from '../components/panel/panel.component'; | ||
import { ControlValueAccessor } from '@angular/forms'; | ||
import { NgxColorsColor } from '../clases/color'; | ||
import { ConverterService } from '../services/converter.service'; | ||
import * as i0 from "@angular/core"; | ||
export declare class NgxColorsTriggerDirective implements ControlValueAccessor { | ||
export declare class NgxColorsTriggerDirective implements ControlValueAccessor, OnDestroy { | ||
private triggerRef; | ||
private panelFactory; | ||
private service; | ||
color: string; | ||
colorsAnimation: "slide-in" | "popup"; | ||
colorsAnimation: 'slide-in' | 'popup'; | ||
palette: Array<string> | Array<NgxColorsColor>; | ||
format: string; | ||
position: "top" | "bottom"; | ||
position: 'top' | 'bottom'; | ||
hideTextInput: boolean; | ||
@@ -19,3 +21,3 @@ hideColorPicker: boolean; | ||
overlayClassName: string | undefined; | ||
colorPickerControls: "default" | "only-alpha" | "no-alpha"; | ||
colorPickerControls: 'default' | 'only-alpha' | 'no-alpha'; | ||
acceptLabel: string; | ||
@@ -29,3 +31,3 @@ cancelLabel: string; | ||
onClick(): void; | ||
constructor(triggerRef: ElementRef, panelFactory: PanelFactoryService); | ||
constructor(triggerRef: ElementRef, panelFactory: PanelFactoryService, service: ConverterService); | ||
panelRef: ComponentRef<PanelComponent>; | ||
@@ -35,5 +37,5 @@ isDisabled: boolean; | ||
onChangeCallback: (_: any) => void; | ||
ngOnDestroy(): void; | ||
openPanel(): void; | ||
closePanel(): void; | ||
onChange(): void; | ||
setDisabledState(isDisabled: boolean): void; | ||
@@ -40,0 +42,0 @@ setColor(color: any): void; |
{ | ||
"name": "ngx-colors", | ||
"version": "3.5.2", | ||
"version": "3.5.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A beautiful color picker for angular that let you choose from a color palette, using sliders (Hue, Lightness, Alpha sliders) or through text input(hex, rgba, hsla)", |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
4402
601029
44