codefoxui
Advanced tools
Comparing version 0.7.6 to 0.7.7
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChanges } from "@angular/core"; | ||
import { ControlValueAccessor } from "@angular/forms"; | ||
import { GlobalEventListenerService } from "../../shared"; | ||
import { Coordinates } from "./colorpicker.interfaces"; | ||
@@ -8,20 +9,27 @@ import * as i0 from "@angular/core"; | ||
el: ElementRef; | ||
hiddenInput: ElementRef<HTMLInputElement> | undefined; | ||
block: ElementRef<HTMLCanvasElement> | undefined; | ||
strip: ElementRef<HTMLCanvasElement> | undefined; | ||
blockPositionElement: ElementRef<HTMLCanvasElement> | undefined; | ||
stripLine: ElementRef<HTMLCanvasElement> | undefined; | ||
globalEventListenerService: GlobalEventListenerService; | ||
/** Label */ | ||
label: string | null; | ||
/** Value */ | ||
value: string | null; | ||
displayValueAsText: boolean; | ||
disabled: boolean; | ||
readonly: boolean; | ||
changeValueDebounceTime: number; | ||
/** Width */ | ||
width: string; | ||
onOpened: EventEmitter<void>; | ||
onClosed: EventEmitter<void>; | ||
/** On value changed */ | ||
onValueChanged: EventEmitter<string | null>; | ||
input: ElementRef<HTMLInputElement> | undefined; | ||
block: ElementRef<HTMLCanvasElement> | undefined; | ||
strip: ElementRef<HTMLCanvasElement> | undefined; | ||
blockPositionElement: ElementRef<HTMLCanvasElement> | undefined; | ||
stripLine: ElementRef<HTMLCanvasElement> | undefined; | ||
private valueColorFormat; | ||
height: number; | ||
blockWidth: number; | ||
stripWidth: number; | ||
focused: boolean; | ||
opened: boolean; | ||
protected blockWidth: number; | ||
protected stripWidth: number; | ||
protected focused: boolean; | ||
protected opened: boolean; | ||
private onChangeFn; | ||
@@ -33,3 +41,4 @@ private onTouchedFn; | ||
private stripMousePositionY; | ||
private documentClickEventListener; | ||
private changeValueSubject; | ||
private changeValueSubjectDebounceTime; | ||
private documentBlockMouseMoveEventListener; | ||
@@ -39,4 +48,2 @@ private documentBlockMouseUpEventListener; | ||
private documentStripMouseUpEventListener; | ||
private preventOuterClick; | ||
private changeValue; | ||
get filled(): boolean; | ||
@@ -46,3 +53,3 @@ colorValueClicked(): void; | ||
private close; | ||
keydown(keyboardEvent: KeyboardEvent): void; | ||
keyup(keyboardEvent: KeyboardEvent): void; | ||
focusFromHiddenInput(): void; | ||
@@ -70,5 +77,12 @@ private blur; | ||
private updateSelectedColor; | ||
private bindDocumentClickListener; | ||
private unbindDocumentClickListener; | ||
private documentClicked; | ||
/** | ||
* Reset or set value after blur | ||
* | ||
* If value is a valid color format, set it and fire change event | ||
* If the value is invalid, reset the previous value | ||
* | ||
* @returns `void` | ||
*/ | ||
private resetOrSetValueAfterLeave; | ||
private changeValue; | ||
ngAfterViewInit(): void; | ||
@@ -78,3 +92,3 @@ ngOnChanges(changes: SimpleChanges): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "cf-colorpicker", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "displayValueAsText": { "alias": "displayValueAsText"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "onOpened": "onOpened"; "onClosed": "onClosed"; }, never, never, true, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "cf-colorpicker", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "changeValueDebounceTime": { "alias": "changeValueDebounceTime"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, { "onOpened": "onOpened"; "onClosed": "onClosed"; "onValueChanged": "onValueChanged"; }, never, never, true, never>; | ||
} |
@@ -13,3 +13,3 @@ import { WeekDay } from "@angular/common"; | ||
private locale; | ||
private globalEventListener; | ||
private globalEventListenerService; | ||
private defaultDateDisplayFormat; | ||
@@ -16,0 +16,0 @@ private defaultDateEditFormat; |
{ | ||
"name": "codefoxui", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^16.1.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
6788156
364
45986