@vallift/ngl 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ export declare class ButtonComponent {
8
8
  type: import("@angular/core").InputSignal<"submit" | "button" | "reset">;
9
9
  disabled: import("@angular/core").InputSignal<boolean>;
10
10
  fullWidth: import("@angular/core").InputSignal<boolean>;
11
- appearance: import("@angular/core").InputSignal<"outline" | "textType" | "primary" | "primaryRounded" | "outlineRounded">;
11
+ appearance: import("@angular/core").InputSignal<"textType" | "primary" | "outline" | "primaryRounded" | "outlineRounded">;
12
12
  loading: import("@angular/core").InputSignal<boolean>;
13
13
  iconSize: import("@angular/core").InputSignal<number>;
14
14
  iconSrc: import("@angular/core").InputSignal<string | null | undefined>;
@@ -40,7 +40,7 @@ export declare class ColorPickerComponent extends BaseControlValueAccessorV3<str
40
40
  ngOnInit(): void;
41
41
  ngOnChanges(changes: any): void;
42
42
  ngAfterViewInit(): void;
43
- setHexColor(hexColor: string): void;
43
+ setHexColor(hexColor: string, emit?: boolean): void;
44
44
  mapRange(value: number): number;
45
45
  onSliderChange(type: string, event: any): void;
46
46
  setColor(color: Hsva): void;
@@ -2177,11 +2177,11 @@ class ColorPickerComponent extends BaseControlValueAccessorV3 {
2177
2177
  }
2178
2178
  }
2179
2179
  ngOnInit() {
2180
- this.setHexColor(this.hexColor());
2180
+ this.setHexColor(this.hexColor(), false);
2181
2181
  }
2182
2182
  ngOnChanges(changes) {
2183
2183
  if (changes?.hexColor?.currentValue) {
2184
- this.setHexColor(changes.hexColor.currentValue);
2184
+ this.setHexColor(changes.hexColor.currentValue, false);
2185
2185
  }
2186
2186
  }
2187
2187
  ngAfterViewInit() {
@@ -2191,7 +2191,7 @@ class ColorPickerComponent extends BaseControlValueAccessorV3 {
2191
2191
  this.sliderDimMax.set(sliderDimensionMax);
2192
2192
  this.update();
2193
2193
  }
2194
- setHexColor(hexColor) {
2194
+ setHexColor(hexColor, emit = true) {
2195
2195
  if (!this.enableAlpha()) {
2196
2196
  hexColor = this.converterService.removeAlpha(hexColor);
2197
2197
  }
@@ -2213,7 +2213,9 @@ class ColorPickerComponent extends BaseControlValueAccessorV3 {
2213
2213
  this.update();
2214
2214
  }
2215
2215
  if (this.converterService.isValidHexColor(hexColor)) {
2216
- this.onValueChange(hexColor);
2216
+ if (emit) {
2217
+ this.onValueChange(hexColor);
2218
+ }
2217
2219
  }
2218
2220
  }
2219
2221
  mapRange(value) {