libey-ng-component-library 0.0.34 → 0.0.36
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.
- package/bundles/libey-ng-component-library.umd.js +2521 -0
- package/bundles/libey-ng-component-library.umd.js.map +1 -0
- package/esm2015/lib/cpm-indicator/libey-ng-cpm-indicator.component.js +193 -0
- package/esm2015/lib/cpm-indicator/libey-ng-cpm-indicator.module.js +26 -0
- package/esm2015/lib/icons/icons.module.js +26 -0
- package/esm2015/lib/icons/libey-ng-icons/libey-ng-icons.component.js +52 -0
- package/esm2015/lib/libey-ng-component-library.component.js +26 -0
- package/esm2015/lib/libey-ng-component-library.module.js +60 -0
- package/esm2015/lib/libey-ng-component-library.service.js +14 -0
- package/esm2015/lib/signature/libey-ng-signature/libey-ng-signature.component.js +197 -0
- package/esm2015/lib/signature/libey-ng-signature.module.js +57 -0
- package/esm2015/lib/table/directives/libey-column.directive.js +59 -0
- package/esm2015/lib/table/libey-ng-table.component.js +249 -0
- package/esm2015/lib/table/libey-ng-table.module.js +21 -0
- package/esm2015/libey-ng-component-library.js +5 -0
- package/esm2015/public-api.js +23 -0
- package/esm2015/utils/CpmIndicator/cpm-indicator-types.js +25 -0
- package/esm2015/utils/SigWeb/SigWeb.js +1442 -0
- package/fesm2015/libey-ng-component-library.js +2416 -0
- package/fesm2015/libey-ng-component-library.js.map +1 -0
- package/lib/cpm-indicator/libey-ng-cpm-indicator.component.d.ts +66 -0
- package/lib/cpm-indicator/libey-ng-cpm-indicator.module.d.ts +8 -0
- package/lib/icons/icons.module.d.ts +8 -0
- package/lib/icons/libey-ng-icons/libey-ng-icons.component.d.ts +19 -0
- package/lib/libey-ng-component-library.component.d.ts +8 -0
- package/lib/libey-ng-component-library.module.d.ts +13 -0
- package/lib/libey-ng-component-library.service.d.ts +6 -0
- package/lib/signature/libey-ng-signature/libey-ng-signature.component.d.ts +40 -0
- package/lib/signature/libey-ng-signature.module.d.ts +13 -0
- package/lib/table/directives/libey-column.directive.d.ts +24 -0
- package/lib/table/libey-ng-table.component.d.ts +64 -0
- package/lib/table/libey-ng-table.module.d.ts +10 -0
- package/libey-ng-component-library.d.ts +5 -0
- package/package.json +24 -17
- package/{src/public-api.ts → public-api.d.ts} +0 -4
- package/utils/CpmIndicator/cpm-indicator-types.d.ts +40 -0
- package/utils/SigWeb/SigWeb.d.ts +219 -0
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -13
- package/src/lib/cpm-indicator/libey-ng-cpm-indicator.component.css +0 -216
- package/src/lib/cpm-indicator/libey-ng-cpm-indicator.component.html +0 -201
- package/src/lib/cpm-indicator/libey-ng-cpm-indicator.component.spec.ts +0 -25
- package/src/lib/cpm-indicator/libey-ng-cpm-indicator.component.ts +0 -203
- package/src/lib/cpm-indicator/libey-ng-cpm-indicator.module.ts +0 -19
- package/src/lib/icons/icons.component.css +0 -9
- package/src/lib/icons/icons.module.ts +0 -16
- package/src/lib/icons/libey-ng-icons/libey-ng-icons.component.html +0 -1831
- package/src/lib/icons/libey-ng-icons/libey-ng-icons.component.ts +0 -36
- package/src/lib/libey-ng-component-library.component.spec.ts +0 -25
- package/src/lib/libey-ng-component-library.component.ts +0 -20
- package/src/lib/libey-ng-component-library.module.ts +0 -32
- package/src/lib/libey-ng-component-library.service.spec.ts +0 -16
- package/src/lib/libey-ng-component-library.service.ts +0 -9
- package/src/lib/signature/libey-ng-signature/libey-ng-signature.component.css +0 -7
- package/src/lib/signature/libey-ng-signature/libey-ng-signature.component.html +0 -41
- package/src/lib/signature/libey-ng-signature/libey-ng-signature.component.spec.ts +0 -25
- package/src/lib/signature/libey-ng-signature/libey-ng-signature.component.ts +0 -214
- package/src/lib/signature/libey-ng-signature.module.ts +0 -30
- package/src/lib/table/directives/libey-column.directive.ts +0 -29
- package/src/lib/table/libey-ng-table.component.css +0 -249
- package/src/lib/table/libey-ng-table.component.html +0 -122
- package/src/lib/table/libey-ng-table.component.ts +0 -234
- package/src/lib/table/libey-ng-table.module.ts +0 -13
- package/src/test.ts +0 -28
- package/src/utils/CpmIndicator/cpm-indicator-types.ts +0 -63
- package/src/utils/SigWeb/SigWeb.ts +0 -1906
- package/tsconfig.lib.json +0 -20
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// Modos de visualización del indicador
|
|
2
|
-
export enum CpmIndicatorMode {
|
|
3
|
-
Cpm = 'cpm',
|
|
4
|
-
Gauge = 'gauge',
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
// Tipo de ítem: gasto ya consumido (Base) o estimado (Projected)
|
|
8
|
-
export enum CpmItemType {
|
|
9
|
-
Base = 'base',
|
|
10
|
-
Projected = 'projected',
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// El padre excluye los ítems que no aplican al CPM antes de armar esta lista
|
|
14
|
-
export interface CpmItem {
|
|
15
|
-
id: string | number;
|
|
16
|
-
amount: number;
|
|
17
|
-
type: CpmItemType;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Porcentajes del límite (0.0 → 1.0). La zona 4 (rojo) es automática
|
|
21
|
-
export interface CpmThresholds {
|
|
22
|
-
zone1Max: number;
|
|
23
|
-
zone2Max: number;
|
|
24
|
-
zone3Max: number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Resumen que emite el componente para persistir en BD
|
|
28
|
-
export interface CpmSummary {
|
|
29
|
-
baseAmount: number;
|
|
30
|
-
projectedAmount: number;
|
|
31
|
-
totalAmount: number;
|
|
32
|
-
limit: number;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface ZoneColor {
|
|
36
|
-
dark: string;
|
|
37
|
-
light: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface SvgPoint {
|
|
41
|
-
x: number;
|
|
42
|
-
y: number;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// Tercios por defecto si no se proporcionan thresholds
|
|
46
|
-
export const DEFAULT_THRESHOLDS: CpmThresholds = {
|
|
47
|
-
zone1Max: 1 / 3,
|
|
48
|
-
zone2Max: 2 / 3,
|
|
49
|
-
zone3Max: 1.0,
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const ZONE_COLORS: Record<string, ZoneColor> = {
|
|
53
|
-
zone1: { dark: '#2B9429', light: '#80BF7F' }, // Verde
|
|
54
|
-
zone2: { dark: '#FFE500', light: '#F4E878' }, // Amarillo
|
|
55
|
-
zone3: { dark: '#FFA826', light: '#F6C276' }, // Naranja
|
|
56
|
-
zone4: { dark: '#D30000', light: '#DB5E60' }, // Rojo
|
|
57
|
-
};
|
|
58
|
-
export interface CpmColorState {
|
|
59
|
-
darkColor: string; // color de la zona activa — para el Real
|
|
60
|
-
lightColor: string; // color claro de la zona activa — para la Proyección
|
|
61
|
-
grayColor: string; // siempre gris — para el Disponible
|
|
62
|
-
limitReached: boolean; // true si totalAmount >= limit
|
|
63
|
-
}
|