libey-ng-component-library 0.0.30 → 0.0.32

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.
@@ -1,5 +1,5 @@
1
1
  import { OnInit, OnChanges, SimpleChanges, EventEmitter, TemplateRef } from '@angular/core';
2
- import { CpmIndicatorMode, CpmItem, CpmThresholds, CpmSummary, ZoneColor, SvgPoint } from '../../utils/CpmIndicator/cpm-indicator-types';
2
+ import { CpmIndicatorMode, CpmItem, CpmThresholds, CpmSummary, ZoneColor, SvgPoint, CpmColorState } from '../../utils/CpmIndicator/cpm-indicator-types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class LibeyNgCpmIndicatorComponent implements OnInit, OnChanges {
5
5
  /** Tope máximo del contrato. */
@@ -24,6 +24,8 @@ export declare class LibeyNgCpmIndicatorComponent implements OnInit, OnChanges {
24
24
  /** Emite true cuando la proyección supera el límite. */
25
25
  limitExceeded: EventEmitter<boolean>;
26
26
  cpmLegend: TemplateRef<any>;
27
+ colorChange: EventEmitter<CpmColorState>;
28
+ scale: number;
27
29
  baseAmount: number;
28
30
  projectedAmount: number;
29
31
  totalAmount: number;
@@ -60,5 +62,5 @@ export declare class LibeyNgCpmIndicatorComponent implements OnInit, OnChanges {
60
62
  private buildArcPath;
61
63
  private getZoneColors;
62
64
  static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgCpmIndicatorComponent, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<LibeyNgCpmIndicatorComponent, "lib-libey-ng-cpm-indicator", never, { "limit": "limit"; "items": "items"; "currency": "currency"; "thresholds": "thresholds"; "mode": "mode"; "devMode": "devMode"; }, { "cpmChange": "cpmChange"; "limitExceeded": "limitExceeded"; }, never, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibeyNgCpmIndicatorComponent, "lib-libey-ng-cpm-indicator", never, { "limit": "limit"; "items": "items"; "currency": "currency"; "thresholds": "thresholds"; "mode": "mode"; "devMode": "devMode"; "scale": "scale"; }, { "cpmChange": "cpmChange"; "limitExceeded": "limitExceeded"; "colorChange": "colorChange"; }, never, never>;
64
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libey-ng-component-library",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0",
@@ -32,3 +32,9 @@ export interface SvgPoint {
32
32
  }
33
33
  export declare const DEFAULT_THRESHOLDS: CpmThresholds;
34
34
  export declare const ZONE_COLORS: Record<string, ZoneColor>;
35
+ export interface CpmColorState {
36
+ darkColor: string;
37
+ lightColor: string;
38
+ grayColor: string;
39
+ limitReached: boolean;
40
+ }