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.
Files changed (69) hide show
  1. package/bundles/libey-ng-component-library.umd.js +2521 -0
  2. package/bundles/libey-ng-component-library.umd.js.map +1 -0
  3. package/esm2015/lib/cpm-indicator/libey-ng-cpm-indicator.component.js +193 -0
  4. package/esm2015/lib/cpm-indicator/libey-ng-cpm-indicator.module.js +26 -0
  5. package/esm2015/lib/icons/icons.module.js +26 -0
  6. package/esm2015/lib/icons/libey-ng-icons/libey-ng-icons.component.js +52 -0
  7. package/esm2015/lib/libey-ng-component-library.component.js +26 -0
  8. package/esm2015/lib/libey-ng-component-library.module.js +60 -0
  9. package/esm2015/lib/libey-ng-component-library.service.js +14 -0
  10. package/esm2015/lib/signature/libey-ng-signature/libey-ng-signature.component.js +197 -0
  11. package/esm2015/lib/signature/libey-ng-signature.module.js +57 -0
  12. package/esm2015/lib/table/directives/libey-column.directive.js +59 -0
  13. package/esm2015/lib/table/libey-ng-table.component.js +249 -0
  14. package/esm2015/lib/table/libey-ng-table.module.js +21 -0
  15. package/esm2015/libey-ng-component-library.js +5 -0
  16. package/esm2015/public-api.js +23 -0
  17. package/esm2015/utils/CpmIndicator/cpm-indicator-types.js +25 -0
  18. package/esm2015/utils/SigWeb/SigWeb.js +1442 -0
  19. package/fesm2015/libey-ng-component-library.js +2416 -0
  20. package/fesm2015/libey-ng-component-library.js.map +1 -0
  21. package/lib/cpm-indicator/libey-ng-cpm-indicator.component.d.ts +66 -0
  22. package/lib/cpm-indicator/libey-ng-cpm-indicator.module.d.ts +8 -0
  23. package/lib/icons/icons.module.d.ts +8 -0
  24. package/lib/icons/libey-ng-icons/libey-ng-icons.component.d.ts +19 -0
  25. package/lib/libey-ng-component-library.component.d.ts +8 -0
  26. package/lib/libey-ng-component-library.module.d.ts +13 -0
  27. package/lib/libey-ng-component-library.service.d.ts +6 -0
  28. package/lib/signature/libey-ng-signature/libey-ng-signature.component.d.ts +40 -0
  29. package/lib/signature/libey-ng-signature.module.d.ts +13 -0
  30. package/lib/table/directives/libey-column.directive.d.ts +24 -0
  31. package/lib/table/libey-ng-table.component.d.ts +64 -0
  32. package/lib/table/libey-ng-table.module.d.ts +10 -0
  33. package/libey-ng-component-library.d.ts +5 -0
  34. package/package.json +24 -17
  35. package/{src/public-api.ts → public-api.d.ts} +0 -4
  36. package/utils/CpmIndicator/cpm-indicator-types.d.ts +40 -0
  37. package/utils/SigWeb/SigWeb.d.ts +219 -0
  38. package/karma.conf.js +0 -44
  39. package/ng-package.json +0 -13
  40. package/src/lib/cpm-indicator/libey-ng-cpm-indicator.component.css +0 -216
  41. package/src/lib/cpm-indicator/libey-ng-cpm-indicator.component.html +0 -201
  42. package/src/lib/cpm-indicator/libey-ng-cpm-indicator.component.spec.ts +0 -25
  43. package/src/lib/cpm-indicator/libey-ng-cpm-indicator.component.ts +0 -203
  44. package/src/lib/cpm-indicator/libey-ng-cpm-indicator.module.ts +0 -19
  45. package/src/lib/icons/icons.component.css +0 -9
  46. package/src/lib/icons/icons.module.ts +0 -16
  47. package/src/lib/icons/libey-ng-icons/libey-ng-icons.component.html +0 -1831
  48. package/src/lib/icons/libey-ng-icons/libey-ng-icons.component.ts +0 -36
  49. package/src/lib/libey-ng-component-library.component.spec.ts +0 -25
  50. package/src/lib/libey-ng-component-library.component.ts +0 -20
  51. package/src/lib/libey-ng-component-library.module.ts +0 -32
  52. package/src/lib/libey-ng-component-library.service.spec.ts +0 -16
  53. package/src/lib/libey-ng-component-library.service.ts +0 -9
  54. package/src/lib/signature/libey-ng-signature/libey-ng-signature.component.css +0 -7
  55. package/src/lib/signature/libey-ng-signature/libey-ng-signature.component.html +0 -41
  56. package/src/lib/signature/libey-ng-signature/libey-ng-signature.component.spec.ts +0 -25
  57. package/src/lib/signature/libey-ng-signature/libey-ng-signature.component.ts +0 -214
  58. package/src/lib/signature/libey-ng-signature.module.ts +0 -30
  59. package/src/lib/table/directives/libey-column.directive.ts +0 -29
  60. package/src/lib/table/libey-ng-table.component.css +0 -249
  61. package/src/lib/table/libey-ng-table.component.html +0 -122
  62. package/src/lib/table/libey-ng-table.component.ts +0 -234
  63. package/src/lib/table/libey-ng-table.module.ts +0 -13
  64. package/src/test.ts +0 -28
  65. package/src/utils/CpmIndicator/cpm-indicator-types.ts +0 -63
  66. package/src/utils/SigWeb/SigWeb.ts +0 -1906
  67. package/tsconfig.lib.json +0 -20
  68. package/tsconfig.lib.prod.json +0 -10
  69. package/tsconfig.spec.json +0 -17
@@ -0,0 +1,66 @@
1
+ import { OnInit, OnChanges, SimpleChanges, EventEmitter, TemplateRef } from '@angular/core';
2
+ import { CpmIndicatorMode, CpmItem, CpmThresholds, CpmSummary, ZoneColor, SvgPoint, CpmColorState } from '../../utils/CpmIndicator/cpm-indicator-types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class LibeyNgCpmIndicatorComponent implements OnInit, OnChanges {
5
+ /** Tope máximo del contrato. */
6
+ limit: number;
7
+ /**
8
+ * Ítems de gasto. El padre es responsable de:
9
+ * - Excluir ítems que no aplican al CPM
10
+ * - Marcar cada uno con CpmItemType.Base o CpmItemType.Projected
11
+ * - Actualizar el array al agregar o eliminar
12
+ */
13
+ items: CpmItem[];
14
+ /** Símbolo de moneda. Por defecto 's/' (sol peruano). */
15
+ currency: string;
16
+ /** Umbrales de zonas como porcentaje del límite (0.0 → 1.0). Usa tercios si no se proporciona. */
17
+ thresholds?: CpmThresholds;
18
+ /** Modo de visualización: CPM (solo gauge) o Gauge (montos + leyenda). */
19
+ mode: CpmIndicatorMode;
20
+ /** Activa sliders de prueba. Solo para desarrollo, nunca en producción. */
21
+ devMode: boolean;
22
+ /** Emite el resumen de montos en cada recalculo. Usar para persistir en BD. */
23
+ cpmChange: EventEmitter<CpmSummary>;
24
+ /** Emite true cuando la proyección supera el límite. */
25
+ limitExceeded: EventEmitter<boolean>;
26
+ cpmLegend: TemplateRef<any>;
27
+ colorChange: EventEmitter<CpmColorState>;
28
+ scale: number;
29
+ baseAmount: number;
30
+ projectedAmount: number;
31
+ totalAmount: number;
32
+ excess: number;
33
+ activeColors: ZoneColor;
34
+ trackArcPath: string;
35
+ baseArcPath: string;
36
+ totalArcPath: string;
37
+ dotBasePos: SvgPoint;
38
+ dotTotalPos: SvgPoint;
39
+ dotTotalVisible: boolean;
40
+ limitTextPos: SvgPoint;
41
+ sliderBase: number;
42
+ sliderProjected: number;
43
+ get sliderMax(): number;
44
+ readonly CpmIndicatorMode: typeof CpmIndicatorMode;
45
+ private readonly CX;
46
+ private readonly CY;
47
+ private readonly R;
48
+ private readonly ANGLE_START;
49
+ private readonly ANGLE_END;
50
+ private readonly EXCESS_TOLERANCE;
51
+ constructor();
52
+ ngOnInit(): void;
53
+ ngOnChanges(changes: SimpleChanges): void;
54
+ onDevBaseChange(event: Event): void;
55
+ onDevProjectedChange(event: Event): void;
56
+ private recalculate;
57
+ private recalculateFromSliders;
58
+ private updateGauge;
59
+ private emitSummary;
60
+ private valueToAngle;
61
+ private polar;
62
+ private buildArcPath;
63
+ private getZoneColors;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgCpmIndicatorComponent, 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>;
66
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./libey-ng-cpm-indicator.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class LibeyNgCpmIndicatorModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgCpmIndicatorModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LibeyNgCpmIndicatorModule, [typeof i1.LibeyNgCpmIndicatorComponent], [typeof i2.CommonModule], [typeof i1.LibeyNgCpmIndicatorComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<LibeyNgCpmIndicatorModule>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./libey-ng-icons/libey-ng-icons.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class IconsModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconsModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IconsModule, [typeof i1.LibeyNgIconsComponent], [typeof i2.CommonModule], [typeof i1.LibeyNgIconsComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<IconsModule>;
8
+ }
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LibeyNgIconsComponent implements OnInit {
4
+ color: string;
5
+ bgColorHover: string;
6
+ borderColor: string;
7
+ borderColorHover: string;
8
+ icon: string;
9
+ width: number;
10
+ height: number;
11
+ activeHover: boolean;
12
+ hover: boolean;
13
+ constructor();
14
+ ngOnInit(): void;
15
+ onMouseEnter(): void;
16
+ onMouseLeave(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgIconsComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibeyNgIconsComponent, "lib-libey-ng-icons", never, { "color": "color"; "bgColorHover": "bgColorHover"; "borderColor": "borderColor"; "borderColorHover": "borderColorHover"; "icon": "icon"; "width": "width"; "height": "height"; "activeHover": "activeHover"; }, {}, never, never>;
19
+ }
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LibeyNgComponentLibraryComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgComponentLibraryComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibeyNgComponentLibraryComponent, "lib-libey-ngComponent-library", never, {}, {}, never, never>;
8
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "./table/libey-ng-table.module";
5
+ import * as i4 from "./signature/libey-ng-signature.module";
6
+ import * as i5 from "angular2-signaturepad";
7
+ import * as i6 from "./icons/icons.module";
8
+ import * as i7 from "./cpm-indicator/libey-ng-cpm-indicator.module";
9
+ export declare class LibeyNgComponentLibraryModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgComponentLibraryModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LibeyNgComponentLibraryModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.LibeyNgTableModule, typeof i4.LibeyNgSignatureModule, typeof i5.SignaturePadModule, typeof i6.IconsModule, typeof i7.LibeyNgCpmIndicatorModule], [typeof i3.LibeyNgTableModule, typeof i4.LibeyNgSignatureModule, typeof i5.SignaturePadModule, typeof i6.IconsModule, typeof i7.LibeyNgCpmIndicatorModule]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<LibeyNgComponentLibraryModule>;
13
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class LibeyNgComponentLibraryService {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgComponentLibraryService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<LibeyNgComponentLibraryService>;
6
+ }
@@ -0,0 +1,40 @@
1
+ import { AfterViewInit, ElementRef, OnDestroy, EventEmitter } from '@angular/core';
2
+ import { SignaturePad } from 'angular2-signaturepad';
3
+ import * as i0 from "@angular/core";
4
+ interface IOutputMessage {
5
+ bioSigData: string;
6
+ sigImgData: string;
7
+ sigString: string;
8
+ }
9
+ export declare class LibeyNgSignatureComponent implements AfterViewInit, OnDestroy {
10
+ OutputSignature: EventEmitter<IOutputMessage>;
11
+ DeviceType: string;
12
+ private _destroy$;
13
+ canvas: ElementRef<HTMLCanvasElement>;
14
+ signaturePad: SignaturePad;
15
+ cnvContext: CanvasRenderingContext2D;
16
+ tmr: any;
17
+ widthView: number;
18
+ heightView: number;
19
+ widthRender: number;
20
+ heightRender: number;
21
+ signaturePadOptions: Object;
22
+ FileValidated: boolean;
23
+ NotDriver: boolean;
24
+ UploadFile: string;
25
+ File: any;
26
+ constructor();
27
+ ngAfterViewInit(): void;
28
+ ngOnDestroy(): void;
29
+ ChangeDevice(): void;
30
+ InitDevice(): void;
31
+ closingSigWeb(): void;
32
+ onSign(): void;
33
+ onClear(): void;
34
+ onDone(): void;
35
+ fileEvent(event: any): void;
36
+ resizeImage(image: File, newWidth: number, newHeight: number): Promise<string>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgSignatureComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibeyNgSignatureComponent, "lib-libey-ng-signature", never, { "DeviceType": "DeviceType"; }, { "OutputSignature": "OutputSignature"; }, never, never>;
39
+ }
40
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./libey-ng-signature/libey-ng-signature.component";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "angular2-signaturepad";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@ng-select/ng-select";
7
+ import * as i6 from "@ng-bootstrap/ng-bootstrap";
8
+ import * as i7 from "../icons/icons.module";
9
+ export declare class LibeyNgSignatureModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgSignatureModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LibeyNgSignatureModule, [typeof i1.LibeyNgSignatureComponent], [typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.SignaturePadModule, typeof i4.CommonModule, typeof i5.NgSelectModule, typeof i6.NgbModule], [typeof i1.LibeyNgSignatureComponent, typeof i3.SignaturePadModule, typeof i5.NgSelectModule, typeof i6.NgbModule, typeof i7.IconsModule]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<LibeyNgSignatureModule>;
13
+ }
@@ -0,0 +1,24 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LibeyColumnDirective {
4
+ header: string;
5
+ property: string;
6
+ width: number;
7
+ view: boolean;
8
+ arrayMap?: string;
9
+ isArray?: boolean;
10
+ expandable?: boolean;
11
+ class?: string;
12
+ classHeader?: string;
13
+ childTableTemplate: TemplateRef<any>;
14
+ isAutoClose: (item: any) => boolean;
15
+ expandedByDefault: (item: any) => boolean;
16
+ rowspan: (item: any) => number;
17
+ isRowspan?: boolean;
18
+ headerTemplate: TemplateRef<any>;
19
+ cellTemplate: TemplateRef<any>;
20
+ defaultTemplate: TemplateRef<any>;
21
+ getCellTemplate(): TemplateRef<any>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyColumnDirective, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LibeyColumnDirective, "libey-ng-column", never, { "header": "header"; "property": "property"; "width": "width"; "view": "view"; "arrayMap": "arrayMap"; "isArray": "isArray"; "expandable": "expandable"; "class": "class"; "classHeader": "classHeader"; "childTableTemplate": "childTableTemplate"; "isAutoClose": "isAutoClose"; "expandedByDefault": "expandedByDefault"; "rowspan": "rowspan"; "isRowspan": "isRowspan"; }, {}, ["headerTemplate", "cellTemplate", "defaultTemplate"]>;
24
+ }
@@ -0,0 +1,64 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { LibeyColumnDirective } from './directives/libey-column.directive';
3
+ import * as i0 from "@angular/core";
4
+ interface IDataKey {
5
+ key: number;
6
+ dataKey: number;
7
+ childTableTemplate: TemplateRef<any>;
8
+ data: any[];
9
+ autoClose: boolean;
10
+ }
11
+ export declare class LibeyNgTableComponent implements OnInit, AfterViewInit, OnChanges {
12
+ private cdr;
13
+ set data(value: any[]);
14
+ get data(): any[];
15
+ pageSize: number;
16
+ totalSize: number;
17
+ maxPageButtons: number;
18
+ height: number;
19
+ expandable: boolean;
20
+ viewPaginate: boolean;
21
+ childTableTemplate: TemplateRef<any>;
22
+ headerfixed: boolean;
23
+ class: string;
24
+ internalPagination: boolean;
25
+ currentPage: number;
26
+ pageChange: EventEmitter<number>;
27
+ columns: QueryList<LibeyColumnDirective>;
28
+ rowExpandable: boolean[];
29
+ rowExpandableDetail: IDataKey[];
30
+ paginatedData: any[];
31
+ _data: any[];
32
+ columnWidths: number[];
33
+ resizingColumnIndex: number | null;
34
+ startX: number;
35
+ startWidth: number;
36
+ tableContainer: ElementRef;
37
+ tableElement: ElementRef;
38
+ constructor(cdr: ChangeDetectorRef);
39
+ ngOnChanges(changes: SimpleChanges): void;
40
+ ngOnInit(): void;
41
+ ngAfterViewInit(): void;
42
+ private initializeExpandedRows;
43
+ initializeColumnWidths(): void;
44
+ getWidthValue(width: number): number;
45
+ get totalPages(): number;
46
+ getCellValue(item: any, column: LibeyColumnDirective): string;
47
+ private getNestedValue;
48
+ private updatePaginatedData;
49
+ pageRange(): number[];
50
+ goToPage(page: number): void;
51
+ toggleRow(index: number): void;
52
+ toggleRowDetail(key: number, indexData: number, column: LibeyColumnDirective, data: any): void;
53
+ getChildren(fila: any): any[];
54
+ onResizeStart(index: number, event: MouseEvent): void;
55
+ onResizeMove: (event: MouseEvent) => void;
56
+ onResizeEnd: () => void;
57
+ existRowExpandableDetail(key: number, indexData: number): boolean;
58
+ viewRowExpandableDetail(indexData: number): boolean;
59
+ findRowExpandableDetail(indexData: number): TemplateRef<any>;
60
+ getRowSpan(column: LibeyColumnDirective, data: any): number;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgTableComponent, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibeyNgTableComponent, "libey-ng-table", never, { "data": "data"; "pageSize": "pageSize"; "totalSize": "totalSize"; "maxPageButtons": "maxPageButtons"; "height": "height"; "expandable": "expandable"; "viewPaginate": "viewPaginate"; "childTableTemplate": "childTableTemplate"; "headerfixed": "headerfixed"; "class": "class"; "internalPagination": "internalPagination"; "currentPage": "currentPage"; }, { "pageChange": "pageChange"; }, ["columns"], never>;
63
+ }
64
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./libey-ng-table.component";
3
+ import * as i2 from "./directives/libey-column.directive";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ export declare class LibeyNgTableModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibeyNgTableModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LibeyNgTableModule, [typeof i1.LibeyNgTableComponent, typeof i2.LibeyColumnDirective], [typeof i3.CommonModule, typeof i4.FormsModule], [typeof i1.LibeyNgTableComponent, typeof i2.LibeyColumnDirective]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<LibeyNgTableModule>;
10
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="libey-ng-component-library" />
5
+ export * from './public-api';
package/package.json CHANGED
@@ -1,17 +1,24 @@
1
- {
2
- "name": "libey-ng-component-library",
3
- "version": "0.0.34",
4
- "peerDependencies": {
5
- "@angular/common": "^12.2.0",
6
- "@angular/core": "^12.2.0",
7
- "@angular/forms": "^12.2.0",
8
- "@ng-bootstrap/ng-bootstrap": "^12.1.2"
9
- },
10
- "dependencies": {
11
- "@ng-bootstrap/ng-bootstrap": "^12.1.1",
12
- "@ng-select/ng-select": "^8.3.0",
13
- "@popperjs/core": "^2.11.5",
14
- "angular2-signaturepad": "^4.0.2",
15
- "tslib": "^2.3.0"
16
- }
17
- }
1
+ {
2
+ "name": "libey-ng-component-library",
3
+ "version": "0.0.36",
4
+ "peerDependencies": {
5
+ "@angular/common": "^12.2.0",
6
+ "@angular/core": "^12.2.0",
7
+ "@angular/forms": "^12.2.0",
8
+ "@ng-bootstrap/ng-bootstrap": "^12.1.2"
9
+ },
10
+ "dependencies": {
11
+ "@ng-bootstrap/ng-bootstrap": "^12.1.1",
12
+ "@ng-select/ng-select": "^8.3.0",
13
+ "@popperjs/core": "^2.11.5",
14
+ "angular2-signaturepad": "^4.0.2",
15
+ "tslib": "^2.3.0"
16
+ },
17
+ "main": "bundles/libey-ng-component-library.umd.js",
18
+ "module": "fesm2015/libey-ng-component-library.js",
19
+ "es2015": "fesm2015/libey-ng-component-library.js",
20
+ "esm2015": "esm2015/libey-ng-component-library.js",
21
+ "fesm2015": "fesm2015/libey-ng-component-library.js",
22
+ "typings": "libey-ng-component-library.d.ts",
23
+ "sideEffects": false
24
+ }
@@ -1,7 +1,3 @@
1
- /*
2
- * Public API Surface of libey-ng-component-library
3
- */
4
-
5
1
  export * from './lib/libey-ng-component-library.service';
6
2
  export * from './lib/libey-ng-component-library.component';
7
3
  export * from './lib/libey-ng-component-library.module';
@@ -0,0 +1,40 @@
1
+ export declare enum CpmIndicatorMode {
2
+ Cpm = "cpm",
3
+ Gauge = "gauge"
4
+ }
5
+ export declare enum CpmItemType {
6
+ Base = "base",
7
+ Projected = "projected"
8
+ }
9
+ export interface CpmItem {
10
+ id: string | number;
11
+ amount: number;
12
+ type: CpmItemType;
13
+ }
14
+ export interface CpmThresholds {
15
+ zone1Max: number;
16
+ zone2Max: number;
17
+ zone3Max: number;
18
+ }
19
+ export interface CpmSummary {
20
+ baseAmount: number;
21
+ projectedAmount: number;
22
+ totalAmount: number;
23
+ limit: number;
24
+ }
25
+ export interface ZoneColor {
26
+ dark: string;
27
+ light: string;
28
+ }
29
+ export interface SvgPoint {
30
+ x: number;
31
+ y: number;
32
+ }
33
+ export declare const DEFAULT_THRESHOLDS: CpmThresholds;
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
+ }
@@ -0,0 +1,219 @@
1
+ export declare class SigWebTablet {
2
+ private static revokeBlobURL;
3
+ private static getBlobURL;
4
+ private static baseUri;
5
+ private static ctx;
6
+ private static Count;
7
+ private static EvStatus;
8
+ private static onSigPenDown;
9
+ private static onSigPenUp;
10
+ private static SigWebFontThreshold;
11
+ private static NumPointsLastTime;
12
+ private static SigImageB64;
13
+ private static makeUri;
14
+ private static generateUUID;
15
+ static isSigWebInstalled(): boolean;
16
+ static isIE(): boolean;
17
+ static isChrome(): boolean;
18
+ static SigWebcreateXHR(): XMLHttpRequest | null;
19
+ static SigWebSetProperty(prop: string): string;
20
+ static SigWebSetPropertySync(prop: string): string;
21
+ static SigWebSetStreamProperty(prop: string, strm: any): string;
22
+ static SigWebSyncSetStreamProperty(prop: string, strm: any): string;
23
+ static SigWebSetImageStreamProperty(prop: string, strm: any): string;
24
+ static SigWebSetImageBlobProperty(prop: any, strm: any): string;
25
+ static SigWebGetVersion(prop: any): string;
26
+ static SigWebGetProperty(prop: any): string;
27
+ static GetSigImageB64(callback: any): void;
28
+ static SigWebWaitForPenDown(callback: any): void;
29
+ static GetSigImage(ctx: any): void;
30
+ static SigWebSetDisplayTarget(obj: any): void;
31
+ static SigWebRefresh(): void;
32
+ static SigWebEvent(): void;
33
+ static setSigWebFontThreshold(v: any): void;
34
+ static createLcdBitmapFromCanvas(ourCanvas: any, xp: any, yp: any, width: any, height: any): string;
35
+ static toHex(NibVal: any): "" | "E" | "C" | "B" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "A" | "D" | "F";
36
+ static ToHexString(ByteVal: any): string;
37
+ static textToTablet(x: any, y: any, height: any, str: any, fnt: any): void;
38
+ static LcdWriteImage(Dst: any, Mode: any, Xp: any, Yp: any, Url: any): void;
39
+ static LcdWriteLocalImage(Dst: any, Mode: any, Xp: any, Yp: any, Url: any): void;
40
+ static LcdWriteImageStream(Dst: any, Mode: any, Xp: any, Yp: any, Xs: any, Ys: any, Url: any): void;
41
+ static LcdWriteImageBlob(Dst: any, Mode: any, Xp: any, Yp: any, Xs: any, Ys: any, Url: any): void;
42
+ static measureText(pText: any, pFontSize: any, pStyle: any): {
43
+ width: number;
44
+ height: number;
45
+ };
46
+ static GetVersionString(): string;
47
+ static IsPenDown(): number;
48
+ static ClearTablet(): string;
49
+ static NumberOfTabletPoints(): string;
50
+ static SetSigString(sigStr: any, ctx: any): string;
51
+ static GetSigString(): string;
52
+ static SetSigCompressionMode(v: any): void;
53
+ static GetSigCompressionMode(): string;
54
+ static SetEncryptionMode(v: any): void;
55
+ static GetEncryptionMode(): string;
56
+ static SetKeyString(keyString: any): void;
57
+ static GetKeyString(): string;
58
+ static AutoKeyStart(): void;
59
+ static AutoKeyFinish(): void;
60
+ static SetAutoKeyData(keyData: any): void;
61
+ static AutoKeyAddData(keyData: any): string;
62
+ static GetKeyReceiptAscii(): string;
63
+ static GetSigReceiptAscii(): string;
64
+ static SetTimeStamp(timeStamp: any): void;
65
+ static GetTimeStamp(): string;
66
+ static SetAnnotate(annotate: any): void;
67
+ static GetAnnotate(): string;
68
+ static SetSaveSigInfo(v: any): void;
69
+ static GetSaveSigInfo(): string;
70
+ static SetSavePressureData(v: any): void;
71
+ static GetSavePressureData(): string;
72
+ static SetSaveTimeData(v: any): void;
73
+ static GetSaveTimeData(): string;
74
+ static SetAntiAliasSpotSize(v: any): void;
75
+ static GetAntiAliasSpotSize(): string;
76
+ static SetAntiAliasLineScale(v: any): void;
77
+ static GetAntiAliasLineScale(): string;
78
+ static GetNumberOfStrokes(): string;
79
+ static GetNumPointsForStroke(v: any): string;
80
+ static GetPointXValue(v1: any, v2: any): string;
81
+ static GetPointYValue(v1: any, v2: any): string;
82
+ static SetAntiAliasEnable(v: any): void;
83
+ static GetAntiAliasEnable(): string;
84
+ static SetUseAmbientColors(v: any): void;
85
+ static SetDisplayXSize(v: any): void;
86
+ static GetDisplayXSize(): string;
87
+ static SetDisplayYSize(v: any): void;
88
+ static GetDisplayYSize(): string;
89
+ static SetDisplayPenWidth(v: any): void;
90
+ static GetDisplayPenWidth(): string;
91
+ static SetDisplayTimeStamp(v: any): void;
92
+ static GetDisplayTimeStamp(): string;
93
+ static SetDisplayTimeStampPosX(v: any): void;
94
+ static GetDisplayTimeStampPosX(): string;
95
+ static SetDisplayTimeStampPosY(v: any): void;
96
+ static GetDisplayTimeStampPosY(): string;
97
+ static SetDisplayTimeStampSize(v: any): void;
98
+ static GetDisplayTimeStampSize(): string;
99
+ static SetDisplayAnnotate(v: any): void;
100
+ static GetDisplayAnnotate(): string;
101
+ static SetDisplayAnnotatePosX(v: any): void;
102
+ static GetDisplayAnnotatePosX(): string;
103
+ static SetDisplayAnnotatePosY(v: any): void;
104
+ static GetDisplayAnnotatePosY(): string;
105
+ static SetDisplayAnnotateSize(v: any): void;
106
+ static GetDisplayAnnotateSize(): string;
107
+ static SetImageXSize(v: any): void;
108
+ static GetImageXSize(): string;
109
+ static SetImageYSize(v: any): void;
110
+ static GetImageYSize(): string;
111
+ static SetImagePenWidth(v: any): void;
112
+ static GetImagePenWidth(): string;
113
+ static SetImageTimeStamp(v: any): void;
114
+ static GetImageTimeStamp(): string;
115
+ static SetImageTimeStampPosX(v: any): void;
116
+ static GetImageTimeStampPosX(): string;
117
+ static SetImageTimeStampPosY(v: any): void;
118
+ static GetImageTimeStampPosY(): string;
119
+ static SetImageTimeStampSize(v: any): void;
120
+ static GetImageTimeStampSize(): string;
121
+ static SetImageAnnotate(v: any): void;
122
+ static GetImageAnnotate(): string;
123
+ static SetImageAnnotatePosX(v: any): void;
124
+ static GetImageAnnotatePosX(): string;
125
+ static SetImageAnnotatePosY(v: any): void;
126
+ static GetImageAnnotatePosY(): string;
127
+ static SetImageAnnotateSize(v: any): void;
128
+ static GetImageAnnotateSize(): string;
129
+ static SetJustifyX(v: any): void;
130
+ static GetJustifyX(): string;
131
+ static SetJustifyY(v: any): void;
132
+ static GetJustifyY(): string;
133
+ static SetJustifyMode(v: any): void;
134
+ static GetJustifyMode(): string;
135
+ static KeyPadAddHotSpot(key: any, coord: any, xp: any, yp: any, xs: any, ys: any): void;
136
+ static KeyPadMarkHotSpot(key: any, coord: any, xp: any, yp: any, xs: any, ys: any): void;
137
+ static KeyPadQueryHotSpot(key: any): string;
138
+ static KeyPadClearHotSpotList(): void;
139
+ static SetSigWindow(coords: any, xp: any, yp: any, xs: any, ys: any): void;
140
+ static ClearSigWindow(inside: any): void;
141
+ static SetLCDCaptureMode(v: any): void;
142
+ static GetLCDCaptureMode(): string;
143
+ static LCDSetWindow(xP: any, yP: any, xS: any, yS: any): void;
144
+ static LCDWriteString(dest: any, mode: any, x: any, y: any, fnt: any, size: any, str: any): void;
145
+ static LCDDrawRectangle(dest: any, mode: any, x: any, y: any, xs: any, ys: any, fill: any): void;
146
+ static LCDDrawButton(dest: any, mode: any, x: any, y: any, xs: any, ys: any, strys: any, fill: any, fnt: any, str: any): void;
147
+ static LCDWriteStringWindow(dest: any, mode: any, x: any, y: any, fnt: any, xsize: any, ysize: any, str: any): void;
148
+ static LCDStringWidth(fnt: any, str: any): number;
149
+ static LCDStringHeight(fnt: any, str: any): number;
150
+ static LcdRefresh(Mode: any, Xp: any, Yp: any, Xs: any, Ys: any): void;
151
+ static LCDSendCmdString(CmdStr: any, ReturnCount: any, Result: any, TimeOut: any): void;
152
+ static LCDSendCmdData(CmdStr: any, ReturnCount: any, Result: any, TimeOut: any): void;
153
+ static LCDSendWindowedGraphicCanvas(dest: any, mode: any, x: any, y: any, xs: any, ys: any, c: any, xps: any, yps: any): void;
154
+ static LCDSendGraphicUrl(dest: any, mode: any, x: any, y: any, url: any): void;
155
+ static LCDClear(): string;
156
+ static LCDSetTabletMap(LCDType: any, LCDXSize: any, LCDYSize: any, LCDXStart: any, LCDYStart: any, LCDXStop: any, LCDYStop: any): void;
157
+ static LCDSetPixelDepth(v: any): void;
158
+ static LCDGetLCDSize(): string;
159
+ static LCDGetCompressionMode(): string;
160
+ static LCDGetZCompressionMode(): string;
161
+ static SetRealTabletState(v: any): void;
162
+ static GetTabletState(): string;
163
+ static SetTabletLogicalXSize(v: any): void;
164
+ static GetTabletLogicalXSize(): string;
165
+ static GetTabletLogicalYSize(): string;
166
+ static SetTabletLogicalYSize(v: any): void;
167
+ static SetTabletXStart(v: any): void;
168
+ static GetTabletXStart(): string;
169
+ static SetTabletYStart(v: any): void;
170
+ static GetTabletYStart(): string;
171
+ static SetTabletXStop(v: any): void;
172
+ static GetTabletXStop(): string;
173
+ static SetTabletYStop(v: any): void;
174
+ static GetTabletYStop(): string;
175
+ static SetTabletFilterPoints(v: any): void;
176
+ static GetTabletFilterPoints(): string;
177
+ static SetTabletTimingAdvance(v: any): void;
178
+ static GetTabletTimingAdvance(): string;
179
+ static SetTabletComPort(v: any): void;
180
+ static GetTabletComPort(): string;
181
+ static SetTabletBaudRate(v: any): void;
182
+ static GetTabletBaudRate(): string;
183
+ static SetTabletRotation(v: any): void;
184
+ static GetTabletRotation(): string;
185
+ static SetTabletType(v: any): void;
186
+ static GetTabletType(): string;
187
+ static SetServerTabletType(v: any): void;
188
+ static GetServerTabletType(): string;
189
+ static SetTabletComTest(v: any): void;
190
+ static GetTabletComTest(): string;
191
+ static SetTabletResolution(v: any): void;
192
+ static GetTabletResolution(): string;
193
+ static TabletConnectQuery(): string;
194
+ static TabletModelNumber(): string;
195
+ static TabletSerialNumber(): string;
196
+ static SetTabletPortPath(v: any): void;
197
+ static SetTabletLocalIniFilePath(v: any): void;
198
+ static SetTabletModel(v: any): void;
199
+ static SetSerialPortCloseDelay(v: any): void;
200
+ static GetSerialPortCloseDelay(): string;
201
+ static EnableTabletEncryption(): void;
202
+ static SetTabletEncryptionMode(hmode: any, tmode: any): void;
203
+ static SetMaxLogFileSize(v: any): void;
204
+ static GetSigSockServerPath(): string;
205
+ static GetSigSockClientName(): string;
206
+ static GetSigSockPortNumber(): string;
207
+ static SetSigSockServerPath(v: any): void;
208
+ static SetSigSockClientName(v: any): void;
209
+ static SetPortNumber(v: any): void;
210
+ static SetSigSockPortNumber(v: any): void;
211
+ static GetFirmwareRevision(): string;
212
+ static SetTabletData(sigStr: any): void;
213
+ static GetTabletData(): string;
214
+ static OpenTablet(v: any): void;
215
+ static CloseTablet(): void;
216
+ static ResetParameters(): void;
217
+ static testRawData(): void;
218
+ static SetTabletState(v: any, ctx: any, tv: any): any;
219
+ }
package/karma.conf.js DELETED
@@ -1,44 +0,0 @@
1
- // Karma configuration file, see link for more information
2
- // https://karma-runner.github.io/1.0/config/configuration-file.html
3
-
4
- module.exports = function (config) {
5
- config.set({
6
- basePath: '',
7
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
- plugins: [
9
- require('karma-jasmine'),
10
- require('karma-chrome-launcher'),
11
- require('karma-jasmine-html-reporter'),
12
- require('karma-coverage'),
13
- require('@angular-devkit/build-angular/plugins/karma')
14
- ],
15
- client: {
16
- jasmine: {
17
- // you can add configuration options for Jasmine here
18
- // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
- // for example, you can disable the random execution with `random: false`
20
- // or set a specific seed with `seed: 4321`
21
- },
22
- clearContext: false // leave Jasmine Spec Runner output visible in browser
23
- },
24
- jasmineHtmlReporter: {
25
- suppressAll: true // removes the duplicated traces
26
- },
27
- coverageReporter: {
28
- dir: require('path').join(__dirname, '../../coverage/libey-ng-component-library'),
29
- subdir: '.',
30
- reporters: [
31
- { type: 'html' },
32
- { type: 'text-summary' }
33
- ]
34
- },
35
- reporters: ['progress', 'kjhtml'],
36
- port: 9876,
37
- colors: true,
38
- logLevel: config.LOG_INFO,
39
- autoWatch: true,
40
- browsers: ['Chrome'],
41
- singleRun: false,
42
- restartOnFileChange: true
43
- });
44
- };