ngx-color-picker
Advanced tools
Comparing version 11.0.0 to 12.0.0
@@ -1,5 +0,6 @@ | ||
import { OnInit, OnDestroy, AfterViewInit, ElementRef, ChangeDetectorRef } from '@angular/core'; | ||
import { OnInit, OnDestroy, AfterViewInit, ElementRef, ChangeDetectorRef, TemplateRef } from '@angular/core'; | ||
import { ColorFormats, Cmyk, Hsla, Rgba } from './formats'; | ||
import { AlphaChannel, OutputFormat, SliderPosition } from './helpers'; | ||
import { ColorPickerService } from './color-picker.service'; | ||
import * as i0 from "@angular/core"; | ||
export declare class ColorPickerComponent implements OnInit, OnDestroy, AfterViewInit { | ||
@@ -64,2 +65,4 @@ private elRef; | ||
cpCancelButtonClass: string; | ||
eyeDropperSupported: boolean; | ||
cpEyeDropper: boolean; | ||
cpPresetLabel: string; | ||
@@ -76,2 +79,3 @@ cpPresetColors: string[]; | ||
cpTriggerElement: ElementRef; | ||
cpExtraTemplate: TemplateRef<any>; | ||
dialogElement: ElementRef; | ||
@@ -88,3 +92,3 @@ hueSlider: ElementRef; | ||
closeDialog(): void; | ||
setupDialog(instance: any, elementRef: ElementRef, color: any, cpWidth: string, cpHeight: string, cpDialogDisplay: string, cpFallbackColor: string, cpColorMode: string, cpCmykEnabled: boolean, cpAlphaChannel: AlphaChannel, cpOutputFormat: OutputFormat, cpDisableInput: boolean, cpIgnoredElements: any, cpSaveClickOutside: boolean, cpCloseClickOutside: boolean, cpUseRootViewContainer: boolean, cpPosition: string, cpPositionOffset: string, cpPositionRelativeToArrow: boolean, cpPresetLabel: string, cpPresetColors: string[], cpPresetColorsClass: string, cpMaxPresetColorsLength: number, cpPresetEmptyMessage: string, cpPresetEmptyMessageClass: string, cpOKButton: boolean, cpOKButtonClass: string, cpOKButtonText: string, cpCancelButton: boolean, cpCancelButtonClass: string, cpCancelButtonText: string, cpAddColorButton: boolean, cpAddColorButtonClass: string, cpAddColorButtonText: string, cpRemoveColorButtonClass: string, cpTriggerElement: ElementRef): void; | ||
setupDialog(instance: any, elementRef: ElementRef, color: any, cpWidth: string, cpHeight: string, cpDialogDisplay: string, cpFallbackColor: string, cpColorMode: string, cpCmykEnabled: boolean, cpAlphaChannel: AlphaChannel, cpOutputFormat: OutputFormat, cpDisableInput: boolean, cpIgnoredElements: any, cpSaveClickOutside: boolean, cpCloseClickOutside: boolean, cpUseRootViewContainer: boolean, cpPosition: string, cpPositionOffset: string, cpPositionRelativeToArrow: boolean, cpPresetLabel: string, cpPresetColors: string[], cpPresetColorsClass: string, cpMaxPresetColorsLength: number, cpPresetEmptyMessage: string, cpPresetEmptyMessageClass: string, cpOKButton: boolean, cpOKButtonClass: string, cpOKButtonText: string, cpCancelButton: boolean, cpCancelButtonClass: string, cpCancelButtonText: string, cpAddColorButton: boolean, cpAddColorButtonClass: string, cpAddColorButtonText: string, cpRemoveColorButtonClass: string, cpEyeDropper: boolean, cpTriggerElement: ElementRef, cpExtraTemplate: TemplateRef<any>): void; | ||
setColorMode(mode: string): void; | ||
@@ -100,2 +104,3 @@ setInitialColor(color: any): void; | ||
onCancelColor(event: Event): void; | ||
onEyeDropper(event: Event): void; | ||
onFormatToggle(change: number): void; | ||
@@ -177,2 +182,4 @@ onColorChange(value: { | ||
private createDialogBox; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "color-picker", never, {}, {}, never, never>; | ||
} |
@@ -1,4 +0,5 @@ | ||
import { OnChanges, OnDestroy, EventEmitter, ApplicationRef, ElementRef, ViewContainerRef, Injector, ComponentFactoryResolver } from '@angular/core'; | ||
import { OnChanges, OnDestroy, EventEmitter, ApplicationRef, ElementRef, ViewContainerRef, Injector, ComponentFactoryResolver, TemplateRef } from '@angular/core'; | ||
import { ColorPickerService } from './color-picker.service'; | ||
import { AlphaChannel, ColorMode, OutputFormat } from './helpers'; | ||
import * as i0 from "@angular/core"; | ||
export declare class ColorPickerDirective implements OnChanges, OnDestroy { | ||
@@ -41,2 +42,3 @@ private injector; | ||
cpCancelButtonClass: string; | ||
cpEyeDropper: boolean; | ||
cpPresetLabel: string; | ||
@@ -52,2 +54,3 @@ cpPresetColors: string[]; | ||
cpRemoveColorButtonClass: string; | ||
cpExtraTemplate: TemplateRef<any>; | ||
cpInputChange: EventEmitter<{ | ||
@@ -105,2 +108,4 @@ input: string; | ||
presetColorsChanged(value: any[]): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerDirective, "[colorPicker]", ["ngxColorPicker"], { "colorPicker": "colorPicker"; "cpWidth": "cpWidth"; "cpHeight": "cpHeight"; "cpToggle": "cpToggle"; "cpDisabled": "cpDisabled"; "cpIgnoredElements": "cpIgnoredElements"; "cpFallbackColor": "cpFallbackColor"; "cpColorMode": "cpColorMode"; "cpCmykEnabled": "cpCmykEnabled"; "cpOutputFormat": "cpOutputFormat"; "cpAlphaChannel": "cpAlphaChannel"; "cpDisableInput": "cpDisableInput"; "cpDialogDisplay": "cpDialogDisplay"; "cpSaveClickOutside": "cpSaveClickOutside"; "cpCloseClickOutside": "cpCloseClickOutside"; "cpUseRootViewContainer": "cpUseRootViewContainer"; "cpPosition": "cpPosition"; "cpPositionOffset": "cpPositionOffset"; "cpPositionRelativeToArrow": "cpPositionRelativeToArrow"; "cpOKButton": "cpOKButton"; "cpOKButtonText": "cpOKButtonText"; "cpOKButtonClass": "cpOKButtonClass"; "cpCancelButton": "cpCancelButton"; "cpCancelButtonText": "cpCancelButtonText"; "cpCancelButtonClass": "cpCancelButtonClass"; "cpEyeDropper": "cpEyeDropper"; "cpPresetLabel": "cpPresetLabel"; "cpPresetColors": "cpPresetColors"; "cpPresetColorsClass": "cpPresetColorsClass"; "cpMaxPresetColorsLength": "cpMaxPresetColorsLength"; "cpPresetEmptyMessage": "cpPresetEmptyMessage"; "cpPresetEmptyMessageClass": "cpPresetEmptyMessageClass"; "cpAddColorButton": "cpAddColorButton"; "cpAddColorButtonText": "cpAddColorButtonText"; "cpAddColorButtonClass": "cpAddColorButtonClass"; "cpRemoveColorButtonClass": "cpRemoveColorButtonClass"; "cpExtraTemplate": "cpExtraTemplate"; }, { "cpInputChange": "cpInputChange"; "cpToggleChange": "cpToggleChange"; "cpSliderChange": "cpSliderChange"; "cpSliderDragEnd": "cpSliderDragEnd"; "cpSliderDragStart": "cpSliderDragStart"; "colorPickerOpen": "colorPickerOpen"; "colorPickerClose": "colorPickerClose"; "colorPickerCancel": "colorPickerCancel"; "colorPickerSelect": "colorPickerSelect"; "colorPickerChange": "colorPickerChange"; "cpCmykColorChange": "cpCmykColorChange"; "cpPresetColorsChange": "cpPresetColorsChange"; }, never>; | ||
} |
@@ -0,2 +1,11 @@ | ||
import './ng-dev-mode'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "./color-picker.component"; | ||
import * as i2 from "./color-picker.directive"; | ||
import * as i3 from "./helpers"; | ||
import * as i4 from "@angular/common"; | ||
export declare class ColorPickerModule { | ||
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<ColorPickerModule, [typeof i1.ColorPickerComponent, typeof i2.ColorPickerDirective, typeof i3.TextDirective, typeof i3.SliderDirective], [typeof i4.CommonModule], [typeof i2.ColorPickerDirective]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<ColorPickerModule>; | ||
} |
import { Cmyk, Rgba, Hsla, Hsva } from './formats'; | ||
import { ColorPickerComponent } from './color-picker.component'; | ||
import * as i0 from "@angular/core"; | ||
export declare class ColorPickerService { | ||
private active; | ||
constructor(); | ||
setActive(active: ColorPickerComponent | null): void; | ||
@@ -19,2 +19,4 @@ hsva2hsla(hsva: Hsva): Hsla; | ||
outputFormat(hsva: Hsva, outputFormat: string, alphaChannel: string | null): string; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerService, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<ColorPickerService>; | ||
} |
import { EventEmitter, ElementRef } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
export declare type ColorMode = 'color' | 'c' | '1' | 'grayscale' | 'g' | '2' | 'presets' | 'p' | '3'; | ||
@@ -20,2 +21,4 @@ export declare type AlphaChannel = 'enabled' | 'disabled' | 'always' | 'forced'; | ||
inputChange(event: any): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<TextDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<TextDirective, "[text]", never, { "rg": "rg"; "text": "text"; }, { "newValue": "newValue"; }, never>; | ||
} | ||
@@ -41,2 +44,4 @@ export declare class SliderDirective { | ||
private setCursor; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<SliderDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderDirective, "[slider]", never, { "rgX": "rgX"; "rgY": "rgY"; "slider": "slider"; }, { "dragEnd": "dragEnd"; "dragStart": "dragStart"; "newValue": "newValue"; }, never>; | ||
} | ||
@@ -43,0 +48,0 @@ export declare class SliderPosition { |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/// <amd-module name="ngx-color-picker" /> | ||
export * from './public-api'; |
@@ -5,3 +5,3 @@ { | ||
"bugs": "https://github.com/zefoy/ngx-color-picker/issues", | ||
"version": "11.0.0", | ||
"version": "12.0.0", | ||
"license": "MIT", | ||
@@ -13,13 +13,25 @@ "peerDependencies": { | ||
}, | ||
"main": "bundles/ngx-color-picker.umd.js", | ||
"module": "fesm2015/ngx-color-picker.js", | ||
"es2015": "fesm2015/ngx-color-picker.js", | ||
"esm2015": "esm2015/ngx-color-picker.js", | ||
"fesm2015": "fesm2015/ngx-color-picker.js", | ||
"module": "fesm2015/ngx-color-picker.mjs", | ||
"es2020": "fesm2020/ngx-color-picker.mjs", | ||
"esm2020": "esm2020/ngx-color-picker.mjs", | ||
"fesm2020": "fesm2020/ngx-color-picker.mjs", | ||
"fesm2015": "fesm2015/ngx-color-picker.mjs", | ||
"typings": "ngx-color-picker.d.ts", | ||
"metadata": "ngx-color-picker.metadata.json", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./ngx-color-picker.d.ts", | ||
"esm2020": "./esm2020/ngx-color-picker.mjs", | ||
"es2020": "./fesm2020/ngx-color-picker.mjs", | ||
"es2015": "./fesm2015/ngx-color-picker.mjs", | ||
"node": "./fesm2015/ngx-color-picker.mjs", | ||
"default": "./fesm2020/ngx-color-picker.mjs" | ||
} | ||
}, | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^2.0.0" | ||
"tslib": "^2.3.0" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
5977
1
850924
24
13
1
Updatedtslib@^2.3.0