libey-ng-component-library 0.0.18 → 0.0.19

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.
@@ -2,7 +2,18 @@ import * as i0 from '@angular/core';
2
2
  import { Injectable, Component, TemplateRef, Directive, Input, ContentChild, EventEmitter, ViewEncapsulation, Output, ContentChildren, ViewChild, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, DatePipe } from '@angular/common';
5
- import { FormsModule } from '@angular/forms';
5
+ import * as i4 from '@angular/forms';
6
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
+ import { Subject } from 'rxjs';
8
+ import * as i1$1 from 'angular2-signaturepad';
9
+ import { SignaturePad, SignaturePadModule } from 'angular2-signaturepad';
10
+ export { SignaturePad, SignaturePadModule } from 'angular2-signaturepad';
11
+ import * as i2 from '@ng-select/ng-select';
12
+ import { NgSelectModule } from '@ng-select/ng-select';
13
+ export { NgSelectModule } from '@ng-select/ng-select';
14
+ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
15
+ export { NgbModule } from '@ng-bootstrap/ng-bootstrap';
16
+ export * from '@popperjs/core';
6
17
 
7
18
  class LibeyNgComponentLibraryService {
8
19
  constructor() { }
@@ -334,17 +345,1612 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
334
345
  }]
335
346
  }] });
336
347
 
348
+ // SigWebTablet.ts
349
+ class SigWebTablet {
350
+ static revokeBlobURL(url) {
351
+ if (window.URL) {
352
+ URL.revokeObjectURL(url);
353
+ }
354
+ else if (window.webkitURL) {
355
+ webkitURL.revokeObjectURL(url);
356
+ }
357
+ }
358
+ static getBlobURL(blob) {
359
+ if (window.URL) {
360
+ return URL.createObjectURL(blob);
361
+ }
362
+ else if (window.webkitURL) {
363
+ return webkitURL.createObjectURL(blob);
364
+ }
365
+ return ''; // Retornar un string vacío en caso de error
366
+ }
367
+ static makeUri() {
368
+ var prot = location.protocol;
369
+ if (prot == 'file:') {
370
+ prot = 'http:';
371
+ }
372
+ if (this.isIE()) {
373
+ if (prot == 'https:') {
374
+ return prot + '//tablet.sigwebtablet.com:47290/SigWeb/';
375
+ }
376
+ else {
377
+ return prot + '//tablet.sigwebtablet.com:47289/SigWeb/';
378
+ }
379
+ }
380
+ if (this.isChrome()) {
381
+ if (prot == 'https:') {
382
+ return prot + '//tablet.sigwebtablet.com:47290/SigWeb/';
383
+ }
384
+ else {
385
+ return prot + '//tablet.sigwebtablet.com:47289/SigWeb/';
386
+ }
387
+ }
388
+ else {
389
+ //FIREFOX
390
+ if (prot == 'https:') {
391
+ return prot + '//tablet.sigwebtablet.com:47290/SigWeb/';
392
+ }
393
+ else {
394
+ return prot + '//tablet.sigwebtablet.com:47289/SigWeb/';
395
+ }
396
+ }
397
+ }
398
+ static generateUUID() {
399
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
400
+ const r = (Math.random() * 16) | 0;
401
+ const v = c === 'x' ? r : (r & 0x3) | 0x8;
402
+ return v.toString(16);
403
+ });
404
+ }
405
+ static isSigWebInstalled() {
406
+ const xhr = new XMLHttpRequest();
407
+ try {
408
+ xhr.open('GET', `${this.baseUri}TabletState?noCache=${this.generateUUID()}`, false);
409
+ xhr.send();
410
+ return xhr.status !== 404 && xhr.status !== 0;
411
+ }
412
+ catch (e) {
413
+ console.log('Error checking SigWeb installation', e);
414
+ return false;
415
+ }
416
+ }
417
+ static isIE() {
418
+ return (navigator.appName === 'Microsoft Internet Explorer' ||
419
+ (navigator.appName === 'Netscape' &&
420
+ new RegExp('Trident/.*rv:([0-9]{1,}[.0-9]{0,})').exec(navigator.userAgent) != null));
421
+ }
422
+ static isChrome() {
423
+ return navigator.userAgent.lastIndexOf('Chrome/') > 0;
424
+ }
425
+ static SigWebcreateXHR() {
426
+ const xhr = new XMLHttpRequest();
427
+ if (!xhr) {
428
+ throw new Error('No se pudo crear XMLHttpRequest');
429
+ }
430
+ return xhr;
431
+ }
432
+ static SigWebSetProperty(prop) {
433
+ const xhr = this.SigWebcreateXHR();
434
+ if (xhr) {
435
+ xhr.open('POST', this.baseUri + prop, true);
436
+ xhr.send(null);
437
+ if (xhr.readyState === 4 && xhr.status === 200) {
438
+ return xhr.responseText;
439
+ }
440
+ }
441
+ return '';
442
+ }
443
+ static SigWebSetPropertySync(prop) {
444
+ const xhr = this.SigWebcreateXHR();
445
+ if (xhr) {
446
+ xhr.open('POST', this.baseUri + prop, false);
447
+ xhr.send();
448
+ if (xhr.readyState === 4 && xhr.status === 200) {
449
+ return xhr.responseText;
450
+ }
451
+ }
452
+ return '';
453
+ }
454
+ static SigWebSetStreamProperty(prop, strm) {
455
+ const xhr = this.SigWebcreateXHR();
456
+ if (xhr) {
457
+ xhr.open('POST', this.baseUri + prop);
458
+ xhr.setRequestHeader('Content-Type', 'text/plain');
459
+ xhr.send(strm);
460
+ }
461
+ return '';
462
+ }
463
+ static SigWebSyncSetStreamProperty(prop, strm) {
464
+ const xhr = this.SigWebcreateXHR();
465
+ if (xhr) {
466
+ xhr.open('POST', this.baseUri + prop, false);
467
+ xhr.setRequestHeader('Content-Type', 'text/plain');
468
+ xhr.send(strm);
469
+ if (xhr.readyState === 4 && xhr.status === 200) {
470
+ return xhr.responseText;
471
+ }
472
+ }
473
+ return '';
474
+ }
475
+ static SigWebSetImageStreamProperty(prop, strm) {
476
+ const xhr = this.SigWebcreateXHR();
477
+ if (xhr) {
478
+ xhr.open('POST', this.baseUri + prop, false);
479
+ xhr.setRequestHeader('Content-Type', 'image/png');
480
+ xhr.send(strm);
481
+ if (xhr.readyState === 4 && xhr.status === 200) {
482
+ return xhr.responseText;
483
+ }
484
+ }
485
+ return '';
486
+ }
487
+ static SigWebSetImageBlobProperty(prop, strm) {
488
+ var xhr = this.SigWebcreateXHR();
489
+ if (xhr) {
490
+ xhr.open('POST', this.baseUri + prop, false);
491
+ xhr.setRequestHeader('Content-Type', 'blob');
492
+ xhr.send(strm);
493
+ if (xhr.readyState == 4 && xhr.status == 200) {
494
+ return xhr.responseText;
495
+ }
496
+ }
497
+ return '';
498
+ }
499
+ static SigWebGetProperty(prop) {
500
+ var xhr = this.SigWebcreateXHR();
501
+ if (xhr) {
502
+ xhr.open('GET', this.baseUri + prop + '?noCache=' + this.generateUUID(), false);
503
+ xhr.send(null);
504
+ if (xhr.readyState == 4 && xhr.status == 200) {
505
+ return xhr.responseText;
506
+ }
507
+ }
508
+ return '';
509
+ }
510
+ static GetSigImageB64(callback) {
511
+ var cvs = document.createElement('canvas');
512
+ var width = this.GetImageXSize();
513
+ var height = this.GetImageYSize();
514
+ cvs.width = width == '' || width == null ? 0 : Number(width);
515
+ cvs.height = height == '' || height == null ? 0 : Number(height);
516
+ var xhr2 = new XMLHttpRequest();
517
+ xhr2.open('GET', this.baseUri + 'SigImage/1' + '?noCache=' + this.generateUUID(), true);
518
+ xhr2.responseType = 'blob';
519
+ xhr2.send(null);
520
+ xhr2.onload = () => {
521
+ var cntx = cvs.getContext('2d');
522
+ var img = new Image();
523
+ img.src = this.getBlobURL(xhr2.response);
524
+ img.onload = () => {
525
+ cntx.drawImage(img, 0, 0);
526
+ var b64String = cvs.toDataURL('image/png');
527
+ var loc = b64String.search('base64,');
528
+ var retstring = b64String.slice(loc + 7, b64String.length);
529
+ if (callback) {
530
+ callback(retstring);
531
+ }
532
+ };
533
+ };
534
+ }
535
+ static SigWebWaitForPenDown(callback) {
536
+ var xhr = this.SigWebcreateXHR();
537
+ if (xhr) {
538
+ xhr.open('GET', this.baseUri + 'WaitForPenDown' + '?noCache=' + this.generateUUID());
539
+ xhr.timeout = 10000;
540
+ xhr.onreadystatechange = () => {
541
+ if (xhr.readyState != 4)
542
+ return;
543
+ if (xhr.status == 200)
544
+ callback();
545
+ };
546
+ xhr.send(null);
547
+ }
548
+ }
549
+ static GetSigImage(ctx) {
550
+ var xhr2 = new XMLHttpRequest();
551
+ xhr2.open('GET', this.baseUri + 'SigImage/1' + '?noCache=' + this.generateUUID(), true);
552
+ xhr2.responseType = 'blob';
553
+ xhr2.send(null);
554
+ xhr2.onload = () => {
555
+ var img = new Image();
556
+ img.src = this.getBlobURL(xhr2.response);
557
+ img.onload = () => {
558
+ ctx.drawImage(img, 0, 0);
559
+ this.revokeBlobURL(img.src);
560
+ img = null;
561
+ };
562
+ };
563
+ }
564
+ static SigWebSetDisplayTarget(obj) {
565
+ this.ctx = obj;
566
+ }
567
+ static SigWebRefresh() {
568
+ var NumPoints = Number(this.NumberOfTabletPoints());
569
+ if (NumPoints == this.NumPointsLastTime) {
570
+ return;
571
+ }
572
+ this.NumPointsLastTime = NumPoints;
573
+ var xhr2 = new XMLHttpRequest();
574
+ xhr2.open('GET', this.baseUri + 'SigImage/0' + '?noCache=' + this.generateUUID(), true);
575
+ xhr2.responseType = 'blob';
576
+ xhr2.onload = () => {
577
+ var img = new Image();
578
+ img.src = this.getBlobURL(xhr2.response);
579
+ // img.src = window.URL.createObjectURL(xhr2.response);
580
+ img.onload = () => {
581
+ this.ctx.drawImage(img, 0, 0);
582
+ this.revokeBlobURL(img.src);
583
+ img = null;
584
+ };
585
+ };
586
+ xhr2.send(null);
587
+ }
588
+ static SigWebEvent() {
589
+ var OldEvStatus = this.EvStatus;
590
+ var xhr = this.SigWebcreateXHR();
591
+ if (xhr) {
592
+ xhr.open('GET', this.baseUri + 'EventStatus' + '?noCache=' + this.generateUUID(), true);
593
+ xhr.onload = () => {
594
+ this.EvStatus = xhr.responseText;
595
+ if (OldEvStatus & 0x01 && this.EvStatus & 0x02) {
596
+ if (this.onSigPenDown) {
597
+ this.onSigPenDown();
598
+ }
599
+ }
600
+ if (OldEvStatus & 0x02 && this.EvStatus & 0x01) {
601
+ if (this.onSigPenUp) {
602
+ this.onSigPenUp();
603
+ }
604
+ }
605
+ };
606
+ xhr.send(null);
607
+ }
608
+ }
609
+ static setSigWebFontThreshold(v) {
610
+ this.SigWebFontThreshold = v;
611
+ }
612
+ static createLcdBitmapFromCanvas(ourCanvas, xp, yp, width, height) {
613
+ var canvasCtx = ourCanvas.getContext('2d');
614
+ var imgData = canvasCtx.getImageData(0, 0, width, height);
615
+ var j = 0;
616
+ var sVal = 0;
617
+ var outData = '';
618
+ var outIdx = 0;
619
+ var data = imgData.data;
620
+ for (var y = 0; y < height; y++)
621
+ for (var x = 0; x < width; x++) {
622
+ var tmp1 = data[j];
623
+ var tmp2 = data[j + 1];
624
+ var tmp3 = data[j + 2];
625
+ var tmp4 = data[j + 3];
626
+ // sVal = tmp1 + (tmp2 << 8 ) + ( tmp3 << 16 ) + (tmp4 << 24 );
627
+ j = j + 4;
628
+ if (tmp1 < this.SigWebFontThreshold) {
629
+ outData += 'B';
630
+ }
631
+ else {
632
+ outData += 'W';
633
+ }
634
+ }
635
+ return outData;
636
+ }
637
+ static toHex(NibVal) {
638
+ switch (NibVal) {
639
+ case 0:
640
+ return '0';
641
+ case 1:
642
+ return '1';
643
+ case 2:
644
+ return '2';
645
+ case 3:
646
+ return '3';
647
+ case 4:
648
+ return '4';
649
+ case 5:
650
+ return '5';
651
+ case 6:
652
+ return '6';
653
+ case 7:
654
+ return '7';
655
+ case 8:
656
+ return '8';
657
+ case 9:
658
+ return '9';
659
+ case 10:
660
+ return 'A';
661
+ case 11:
662
+ return 'B';
663
+ case 12:
664
+ return 'C';
665
+ case 13:
666
+ return 'D';
667
+ case 14:
668
+ return 'E';
669
+ case 15:
670
+ return 'F';
671
+ default:
672
+ return '';
673
+ }
674
+ }
675
+ static ToHexString(ByteVal) {
676
+ var Str = '';
677
+ Str += this.toHex((ByteVal >> 4) & 0x0f);
678
+ Str += this.toHex(ByteVal & 0x0f);
679
+ return Str;
680
+ }
681
+ static textToTablet(x, y, height, str, fnt) {
682
+ var c = document.createElement('canvas');
683
+ var cntx = c.getContext('2d');
684
+ cntx.font = fnt;
685
+ var txt = str;
686
+ var xs = Math.round(cntx.measureText(txt).width);
687
+ var ys = height;
688
+ c.width = xs;
689
+ c.height = ys;
690
+ cntx.font = fnt;
691
+ cntx.fillStyle = '#FFFFFF';
692
+ cntx.rect(0, 0, xs, ys);
693
+ cntx.fill();
694
+ cntx.fillStyle = '#000000';
695
+ cntx.textBaseline = 'top';
696
+ cntx.fillText(txt, 0, 0);
697
+ cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
698
+ var Gstr = this.createLcdBitmapFromCanvas(c, 0, 0, xs, ys);
699
+ this.LcdWriteImageStream(0, 2, x, y, xs, ys, Gstr);
700
+ }
701
+ static LcdWriteImage(Dst, Mode, Xp, Yp, Url) {
702
+ var Prop = 'LcdWriteImage/';
703
+ var NewUrl = Url.replace(/\//g, '_');
704
+ Prop = Prop + Dst + ',' + Mode + ',' + Xp + ',' + Yp + ',' + NewUrl;
705
+ this.SigWebSetPropertySync(Prop);
706
+ }
707
+ static LcdWriteLocalImage(Dst, Mode, Xp, Yp, Url) {
708
+ var Prop = 'LcdWriteImage/';
709
+ Prop = Prop + Dst + ',' + Mode + ',' + Xp + ',' + Yp + ',' + Url;
710
+ this.SigWebSetProperty(Prop);
711
+ }
712
+ static LcdWriteImageStream(Dst, Mode, Xp, Yp, Xs, Ys, Url) {
713
+ var Prop1 = 'LcdWriteImageStreamParams/' +
714
+ Dst +
715
+ ',' +
716
+ Mode +
717
+ ',' +
718
+ Xp +
719
+ ',' +
720
+ Yp +
721
+ ',' +
722
+ Xs +
723
+ ',' +
724
+ Ys;
725
+ var Prop2 = 'LcdWriteImageStream/';
726
+ this.SigWebSetPropertySync(Prop1);
727
+ this.SigWebSetImageStreamProperty(Prop2, Url);
728
+ }
729
+ static LcdWriteImageBlob(Dst, Mode, Xp, Yp, Xs, Ys, Url) {
730
+ var Prop = 'LcdWriteImageStream/';
731
+ Prop = Prop + Dst + ',' + Mode + ',' + Xp + ',' + Yp + ',' + Xs + ',' + Ys;
732
+ this.SigWebSetImageBlobProperty(Prop, Url);
733
+ }
734
+ static measureText(pText, pFontSize, pStyle) {
735
+ var lDiv = document.createElement('lDiv');
736
+ document.body.appendChild(lDiv);
737
+ if (pStyle != null) {
738
+ lDiv.setAttribute('style', pStyle);
739
+ }
740
+ lDiv.style.fontSize = '' + pFontSize + 'px';
741
+ lDiv.style.position = 'absolute';
742
+ lDiv.style.left = '-1000';
743
+ lDiv.style.top = '-1000';
744
+ lDiv.innerHTML = pText;
745
+ var lResult = {
746
+ width: lDiv.clientWidth,
747
+ height: lDiv.clientHeight,
748
+ };
749
+ document.body.removeChild(lDiv);
750
+ lDiv = null;
751
+ return lResult;
752
+ }
753
+ static GetVersionString() {
754
+ var Prop = 'Version';
755
+ Prop = Prop;
756
+ var Str = this.SigWebGetProperty(Prop);
757
+ var trimStr = Str.slice(1, Str.length - 2);
758
+ return trimStr;
759
+ }
760
+ static IsPenDown() {
761
+ return this.EvStatus & 0x01;
762
+ }
763
+ //
764
+ // SigPlusNETSig.cs
765
+ //
766
+ static ClearTablet() {
767
+ var Prop = 'ClearSignature';
768
+ Prop = Prop;
769
+ return this.SigWebGetProperty(Prop);
770
+ }
771
+ static NumberOfTabletPoints() {
772
+ var Prop = 'TotalPoints';
773
+ Prop = Prop;
774
+ return this.SigWebGetProperty(Prop);
775
+ }
776
+ static SetSigString(sigStr, ctx) {
777
+ var Prop = 'SigString';
778
+ Prop = Prop;
779
+ var xhr = this.SigWebcreateXHR();
780
+ if (xhr) {
781
+ xhr.open('POST', this.baseUri + Prop);
782
+ xhr.setRequestHeader('Content-Type', 'text/plain');
783
+ xhr.send(sigStr);
784
+ xhr.onload = () => {
785
+ if (ctx) {
786
+ var can = ctx.canvas;
787
+ this.SetImageXSize(can.width);
788
+ this.SetImageYSize(can.height);
789
+ this.GetSigImage(ctx);
790
+ }
791
+ };
792
+ }
793
+ return '';
794
+ }
795
+ static GetSigString() {
796
+ var Prop = 'SigString';
797
+ Prop = Prop;
798
+ var Str = this.SigWebGetProperty(Prop);
799
+ return Str.slice(1, Str.length - 1);
800
+ }
801
+ static SetSigCompressionMode(v) {
802
+ var Prop = 'CompressionMode/';
803
+ Prop = Prop + v;
804
+ this.SigWebSetPropertySync(Prop);
805
+ }
806
+ static GetSigCompressionMode() {
807
+ var Prop = 'CompressionMode';
808
+ Prop = Prop;
809
+ return this.SigWebGetProperty(Prop);
810
+ }
811
+ static SetEncryptionMode(v) {
812
+ var Prop = 'EncryptionMode/';
813
+ Prop = Prop + v;
814
+ this.SigWebSetPropertySync(Prop);
815
+ }
816
+ static GetEncryptionMode() {
817
+ var Prop = 'EncryptionMode';
818
+ Prop = Prop;
819
+ return this.SigWebGetProperty(Prop);
820
+ }
821
+ static SetKeyString(keyString) {
822
+ var Prop = 'KeyString';
823
+ Prop = Prop;
824
+ this.SigWebSetStreamProperty(Prop, keyString);
825
+ }
826
+ static GetKeyString() {
827
+ var Prop = 'KeyString';
828
+ Prop = Prop;
829
+ var Str = this.SigWebGetProperty(Prop);
830
+ return Str.slice(1, Str.length - 1);
831
+ }
832
+ static AutoKeyStart() {
833
+ var Prop = 'AutoKeyStart';
834
+ Prop = Prop;
835
+ this.SigWebSetPropertySync(Prop);
836
+ }
837
+ static AutoKeyFinish() {
838
+ var Prop = 'AutoKeyFinish';
839
+ Prop = Prop;
840
+ this.SigWebSetPropertySync(Prop);
841
+ }
842
+ static SetAutoKeyData(keyData) {
843
+ var Prop = 'SetAutoKeyData';
844
+ Prop = Prop;
845
+ this.SigWebSetStreamProperty(Prop, keyData);
846
+ }
847
+ static AutoKeyAddData(keyData) {
848
+ var Prop = 'AutoKeyAddData';
849
+ Prop = Prop;
850
+ this.SigWebSetStreamProperty(Prop, keyData);
851
+ return this.GetKeyString();
852
+ }
853
+ // function GetKeyReceipt( ) {}
854
+ static GetKeyReceiptAscii() {
855
+ var Prop = 'KeyReceiptAscii';
856
+ Prop = Prop;
857
+ var Str = this.SigWebGetProperty(Prop);
858
+ return Str.slice(1, Str.length - 1);
859
+ }
860
+ // function GetSigReceipt( ) {}
861
+ static GetSigReceiptAscii() {
862
+ var Prop = 'SigReceiptAscii';
863
+ Prop = Prop;
864
+ var Str = this.SigWebGetProperty(Prop);
865
+ return Str.slice(1, Str.length - 1);
866
+ }
867
+ static SetTimeStamp(timeStamp) {
868
+ var Prop = 'TimeStamp';
869
+ Prop = Prop;
870
+ this.SigWebSetStreamProperty(Prop, timeStamp);
871
+ }
872
+ static GetTimeStamp() {
873
+ var Prop = 'TimeStamp';
874
+ Prop = Prop;
875
+ var Str = this.SigWebGetProperty(Prop);
876
+ return Str.slice(1, Str.length - 1);
877
+ }
878
+ static SetAnnotate(annotate) {
879
+ var Prop = 'Annotate';
880
+ Prop = Prop;
881
+ this.SigWebSetStreamProperty(Prop, annotate);
882
+ }
883
+ static GetAnnotate() {
884
+ var Prop = 'Annotate';
885
+ Prop = Prop;
886
+ var Str = this.SigWebGetProperty(Prop);
887
+ return Str.slice(1, Str.length - 1);
888
+ }
889
+ static SetSaveSigInfo(v) {
890
+ var Prop = 'SaveSigInfo/';
891
+ Prop = Prop + v;
892
+ this.SigWebSetPropertySync(Prop);
893
+ }
894
+ static GetSaveSigInfo() {
895
+ var Prop = 'SaveSigInfo';
896
+ Prop = Prop;
897
+ return this.SigWebGetProperty(Prop);
898
+ }
899
+ static SetSavePressureData(v) {
900
+ var Prop = 'SavePressureData/';
901
+ Prop = Prop + v;
902
+ this.SigWebSetPropertySync(Prop);
903
+ }
904
+ static GetSavePressureData() {
905
+ var Prop = 'SavePressureData';
906
+ Prop = Prop;
907
+ return this.SigWebGetProperty(Prop);
908
+ }
909
+ static SetSaveTimeData(v) {
910
+ var Prop = 'SaveTimeData/';
911
+ Prop = Prop + v;
912
+ this.SigWebSetPropertySync(Prop);
913
+ }
914
+ static GetSaveTimeData() {
915
+ var Prop = 'SaveTimeData';
916
+ Prop = Prop;
917
+ return this.SigWebGetProperty(Prop);
918
+ }
919
+ static SetAntiAliasSpotSize(v) {
920
+ var Prop = 'AntiAliasSpotSize/';
921
+ Prop = Prop + v;
922
+ this.SigWebSetPropertySync(Prop);
923
+ }
924
+ static GetAntiAliasSpotSize() {
925
+ var Prop = 'AntiAliasSpotSize';
926
+ Prop = Prop;
927
+ return this.SigWebGetProperty(Prop);
928
+ }
929
+ static SetAntiAliasLineScale(v) {
930
+ var Prop = 'AntiAliasLineScale/';
931
+ Prop = Prop + v;
932
+ this.SigWebSetPropertySync(Prop);
933
+ }
934
+ static GetAntiAliasLineScale() {
935
+ var Prop = 'AntiAliasLineScale';
936
+ Prop = Prop;
937
+ return this.SigWebGetProperty(Prop);
938
+ }
939
+ static GetNumberOfStrokes() {
940
+ var Prop = 'NumberOfStrokes';
941
+ Prop = Prop;
942
+ return this.SigWebGetProperty(Prop);
943
+ }
944
+ static GetNumPointsForStroke(v) {
945
+ var Prop = 'NumberOfPointsInStroke/';
946
+ Prop = Prop + v;
947
+ return this.SigWebGetProperty(Prop);
948
+ }
949
+ static GetPointXValue(v1, v2) {
950
+ var Prop = 'PointXValue/';
951
+ Prop = Prop + v1 + '/' + v2;
952
+ return this.SigWebGetProperty(Prop);
953
+ }
954
+ static GetPointYValue(v1, v2) {
955
+ var Prop = 'PointYValue/';
956
+ Prop = Prop + v1 + '/' + v2;
957
+ return this.SigWebGetProperty(Prop);
958
+ }
959
+ static SetAntiAliasEnable(v) {
960
+ var Prop = 'AntiAliasEnable/';
961
+ Prop = Prop + v;
962
+ this.SigWebSetPropertySync(Prop);
963
+ }
964
+ static GetAntiAliasEnable() {
965
+ var Prop = 'AntiAliasEnable';
966
+ Prop = Prop;
967
+ return this.SigWebGetProperty(Prop);
968
+ }
969
+ static SetUseAmbientColors(v) {
970
+ var Prop = 'UseAmbientColors/';
971
+ Prop = Prop + v;
972
+ this.SigWebSetPropertySync(Prop);
973
+ }
974
+ //
975
+ // SigPlusNETDisplay.cs
976
+ //
977
+ static SetDisplayXSize(v) {
978
+ var Prop = 'DisplayXSize/';
979
+ Prop = Prop + v;
980
+ this.SigWebSetPropertySync(Prop);
981
+ }
982
+ static GetDisplayXSize() {
983
+ var Prop = 'DisplayXSize';
984
+ Prop = Prop;
985
+ return this.SigWebGetProperty(Prop);
986
+ }
987
+ static SetDisplayYSize(v) {
988
+ var Prop = 'DisplayYSize/';
989
+ Prop = Prop + v;
990
+ this.SigWebSetPropertySync(Prop);
991
+ }
992
+ static GetDisplayYSize() {
993
+ var Prop = 'DisplayYSize';
994
+ Prop = Prop;
995
+ return this.SigWebGetProperty(Prop);
996
+ }
997
+ static SetDisplayPenWidth(v) {
998
+ var Prop = 'DisplayPenWidth/';
999
+ Prop = Prop + v;
1000
+ this.SigWebSetPropertySync(Prop);
1001
+ }
1002
+ static GetDisplayPenWidth() {
1003
+ var Prop = 'DisplayPenWidth';
1004
+ Prop = Prop;
1005
+ return this.SigWebGetProperty(Prop);
1006
+ }
1007
+ static SetDisplayTimeStamp(v) {
1008
+ var Prop = 'DisplayTimeStamp/';
1009
+ Prop = Prop + v;
1010
+ this.SigWebSetPropertySync(Prop);
1011
+ }
1012
+ static GetDisplayTimeStamp() {
1013
+ var Prop = 'DisplayTimeStamp';
1014
+ Prop = Prop;
1015
+ return this.SigWebGetProperty(Prop);
1016
+ }
1017
+ static SetDisplayTimeStampPosX(v) {
1018
+ var Prop = 'DisplayTimeStampPosX/';
1019
+ Prop = Prop + v;
1020
+ this.SigWebSetPropertySync(Prop);
1021
+ }
1022
+ static GetDisplayTimeStampPosX() {
1023
+ var Prop = 'DisplayTimeStampPosX';
1024
+ Prop = Prop;
1025
+ return this.SigWebGetProperty(Prop);
1026
+ }
1027
+ static SetDisplayTimeStampPosY(v) {
1028
+ var Prop = 'DisplayTimeStampPosY/';
1029
+ Prop = Prop + v;
1030
+ this.SigWebSetPropertySync(Prop);
1031
+ }
1032
+ static GetDisplayTimeStampPosY() {
1033
+ var Prop = 'DisplayTimeStampPosY';
1034
+ Prop = Prop;
1035
+ return this.SigWebGetProperty(Prop);
1036
+ }
1037
+ static SetDisplayTimeStampSize(v) {
1038
+ var Prop = 'DisplayTimeStampSize/';
1039
+ Prop = Prop + v;
1040
+ this.SigWebSetPropertySync(Prop);
1041
+ }
1042
+ static GetDisplayTimeStampSize() {
1043
+ var Prop = 'DisplayTimeStampSize';
1044
+ Prop = Prop;
1045
+ return this.SigWebGetProperty(Prop);
1046
+ }
1047
+ static SetDisplayAnnotate(v) {
1048
+ var Prop = 'DisplayAnnotate/';
1049
+ Prop = Prop + v;
1050
+ this.SigWebSetPropertySync(Prop);
1051
+ }
1052
+ static GetDisplayAnnotate() {
1053
+ var Prop = 'DisplayAnnotate';
1054
+ Prop = Prop;
1055
+ return this.SigWebGetProperty(Prop);
1056
+ }
1057
+ static SetDisplayAnnotatePosX(v) {
1058
+ var Prop = 'DisplayAnnotatePosX/';
1059
+ Prop = Prop + v;
1060
+ this.SigWebSetPropertySync(Prop);
1061
+ }
1062
+ static GetDisplayAnnotatePosX() {
1063
+ var Prop = 'DisplayAnnotatePosX';
1064
+ Prop = Prop;
1065
+ return this.SigWebGetProperty(Prop);
1066
+ }
1067
+ static SetDisplayAnnotatePosY(v) {
1068
+ var Prop = 'DisplayAnnotatePosY/';
1069
+ Prop = Prop + v;
1070
+ this.SigWebSetPropertySync(Prop);
1071
+ }
1072
+ static GetDisplayAnnotatePosY() {
1073
+ var Prop = 'DisplayAnnotatePosY';
1074
+ Prop = Prop;
1075
+ return this.SigWebGetProperty(Prop);
1076
+ }
1077
+ static SetDisplayAnnotateSize(v) {
1078
+ var Prop = 'DisplayAnnotateSize/';
1079
+ Prop = Prop + v;
1080
+ this.SigWebSetPropertySync(Prop);
1081
+ }
1082
+ static GetDisplayAnnotateSize() {
1083
+ var Prop = 'DisplayAnnotateSize';
1084
+ Prop = Prop;
1085
+ return this.SigWebGetProperty(Prop);
1086
+ }
1087
+ //
1088
+ // SigPlusNETImage.cs
1089
+ //
1090
+ // function GetSigImageB64( )
1091
+ // {
1092
+ // var xhr2 = new XMLHttpRequest();
1093
+ // xhr2.open("GET", baseUri + "SigImage/1", false );
1094
+ // xhr2.responseType = "blob"
1095
+ // xhr2.send(null);
1096
+ // if (xhr2.readyState == 4 && xhr.status == 200)
1097
+ // {
1098
+ // return window.URL.createObjectURL(xhr2.response);
1099
+ // }
1100
+ // return null;
1101
+ // }
1102
+ static SetImageXSize(v) {
1103
+ var Prop = 'ImageXSize/';
1104
+ Prop = Prop + v;
1105
+ this.SigWebSetPropertySync(Prop);
1106
+ }
1107
+ static GetImageXSize() {
1108
+ var Prop = 'ImageXSize';
1109
+ Prop = Prop;
1110
+ return this.SigWebGetProperty(Prop);
1111
+ }
1112
+ static SetImageYSize(v) {
1113
+ var Prop = 'ImageYSize/';
1114
+ Prop = Prop + v;
1115
+ this.SigWebSetPropertySync(Prop);
1116
+ }
1117
+ static GetImageYSize() {
1118
+ var Prop = 'ImageYSize';
1119
+ Prop = Prop;
1120
+ return this.SigWebGetProperty(Prop);
1121
+ }
1122
+ static SetImagePenWidth(v) {
1123
+ var Prop = 'ImagePenWidth/';
1124
+ Prop = Prop + v;
1125
+ this.SigWebSetPropertySync(Prop);
1126
+ }
1127
+ static GetImagePenWidth() {
1128
+ var Prop = 'ImagePenWidth';
1129
+ Prop = Prop;
1130
+ return this.SigWebGetProperty(Prop);
1131
+ }
1132
+ static SetImageTimeStamp(v) {
1133
+ var Prop = 'ImageTimeStamp/';
1134
+ Prop = Prop + v;
1135
+ this.SigWebSetPropertySync(Prop);
1136
+ }
1137
+ static GetImageTimeStamp() {
1138
+ var Prop = 'ImageTimeStamp';
1139
+ Prop = Prop;
1140
+ return this.SigWebGetProperty(Prop);
1141
+ }
1142
+ static SetImageTimeStampPosX(v) {
1143
+ var Prop = 'ImageTimeStampPosX/';
1144
+ Prop = Prop + v;
1145
+ this.SigWebSetPropertySync(Prop);
1146
+ }
1147
+ static GetImageTimeStampPosX() {
1148
+ var Prop = 'ImageTimeStampPosX';
1149
+ Prop = Prop;
1150
+ return this.SigWebGetProperty(Prop);
1151
+ }
1152
+ static SetImageTimeStampPosY(v) {
1153
+ var Prop = 'ImageTimeStampPosY/';
1154
+ Prop = Prop + v;
1155
+ this.SigWebSetPropertySync(Prop);
1156
+ }
1157
+ static GetImageTimeStampPosY() {
1158
+ var Prop = 'ImageTimeStampPosY';
1159
+ Prop = Prop;
1160
+ return this.SigWebGetProperty(Prop);
1161
+ }
1162
+ static SetImageTimeStampSize(v) {
1163
+ var Prop = 'ImageTimeStampSize/';
1164
+ Prop = Prop + v;
1165
+ this.SigWebSetPropertySync(Prop);
1166
+ }
1167
+ static GetImageTimeStampSize() {
1168
+ var Prop = 'ImageTimeStampSize';
1169
+ Prop = Prop;
1170
+ return this.SigWebGetProperty(Prop);
1171
+ }
1172
+ static SetImageAnnotate(v) {
1173
+ var Prop = 'ImageAnnotate/';
1174
+ Prop = Prop + v;
1175
+ this.SigWebSetPropertySync(Prop);
1176
+ }
1177
+ static GetImageAnnotate() {
1178
+ var Prop = 'ImageAnnotate';
1179
+ Prop = Prop;
1180
+ return this.SigWebGetProperty(Prop);
1181
+ }
1182
+ static SetImageAnnotatePosX(v) {
1183
+ var Prop = 'ImageAnnotatePosX/';
1184
+ Prop = Prop + v;
1185
+ this.SigWebSetPropertySync(Prop);
1186
+ }
1187
+ static GetImageAnnotatePosX() {
1188
+ var Prop = 'ImageAnnotatePosX';
1189
+ Prop = Prop;
1190
+ return this.SigWebGetProperty(Prop);
1191
+ }
1192
+ static SetImageAnnotatePosY(v) {
1193
+ var Prop = 'ImageAnnotatePosY/';
1194
+ Prop = Prop + v;
1195
+ this.SigWebSetPropertySync(Prop);
1196
+ }
1197
+ static GetImageAnnotatePosY() {
1198
+ var Prop = 'ImageAnnotatePosY';
1199
+ Prop = Prop;
1200
+ return this.SigWebGetProperty(Prop);
1201
+ }
1202
+ static SetImageAnnotateSize(v) {
1203
+ var Prop = 'ImageAnnotateSize/';
1204
+ Prop = Prop + v;
1205
+ this.SigWebSetPropertySync(Prop);
1206
+ }
1207
+ static GetImageAnnotateSize() {
1208
+ var Prop = 'ImageAnnotateSize';
1209
+ Prop = Prop;
1210
+ return this.SigWebGetProperty(Prop);
1211
+ }
1212
+ static SetJustifyX(v) {
1213
+ var Prop = 'JustifyX/';
1214
+ Prop = Prop + v;
1215
+ this.SigWebSetPropertySync(Prop);
1216
+ }
1217
+ static GetJustifyX() {
1218
+ var Prop = 'JustifyX';
1219
+ Prop = Prop;
1220
+ return this.SigWebGetProperty(Prop);
1221
+ }
1222
+ static SetJustifyY(v) {
1223
+ var Prop = 'JustifyY/';
1224
+ Prop = Prop + v;
1225
+ this.SigWebSetPropertySync(Prop);
1226
+ }
1227
+ static GetJustifyY() {
1228
+ var Prop = 'JustifyY';
1229
+ Prop = Prop;
1230
+ return this.SigWebGetProperty(Prop);
1231
+ }
1232
+ static SetJustifyMode(v) {
1233
+ var Prop = 'JustifyMode/';
1234
+ Prop = Prop + v;
1235
+ this.SigWebSetPropertySync(Prop);
1236
+ }
1237
+ static GetJustifyMode() {
1238
+ var Prop = 'JustifyMode';
1239
+ Prop = Prop;
1240
+ return this.SigWebGetProperty(Prop);
1241
+ }
1242
+ //
1243
+ // SigPlusNETKeyPad.cs
1244
+ //
1245
+ static KeyPadAddHotSpot(key, coord, xp, yp, xs, ys) {
1246
+ var Prop = 'KeyPadAddHotSpot/';
1247
+ Prop = Prop + key + ',' + coord + ',' + xp + ',' + yp + ',' + xs + ',' + ys;
1248
+ this.SigWebSetPropertySync(Prop);
1249
+ }
1250
+ static KeyPadMarkHotSpot(key, coord, xp, yp, xs, ys) {
1251
+ this.LCDWriteString(0, 2, xp, yp, '16pt sans-serif', 32, '+');
1252
+ this.LCDWriteString(0, 2, xp + xs, yp, '16pt sans-serif', 32, '+');
1253
+ this.LCDWriteString(0, 2, xp, yp + ys, '16pt sans-serif', 32, '+');
1254
+ this.LCDWriteString(0, 2, xp + xs, yp + ys, '16pt sans-serif', 32, '+');
1255
+ }
1256
+ static KeyPadQueryHotSpot(key) {
1257
+ var Prop = 'KeyPadQueryHotSpot/';
1258
+ Prop = Prop + key;
1259
+ return this.SigWebGetProperty(Prop);
1260
+ }
1261
+ static KeyPadClearHotSpotList() {
1262
+ var Prop = 'KeyPadClearHotSpotList';
1263
+ this.SigWebSetPropertySync(Prop);
1264
+ }
1265
+ static SetSigWindow(coords, xp, yp, xs, ys) {
1266
+ var Prop = 'SigWindow/';
1267
+ Prop = Prop + coords + ',' + xp + ',' + yp + ',' + xs + ',' + ys;
1268
+ this.SigWebSetPropertySync(Prop);
1269
+ }
1270
+ static ClearSigWindow(inside) {
1271
+ var Prop = 'ClearSigWindow/';
1272
+ Prop = Prop + inside;
1273
+ this.SigWebSetPropertySync(Prop);
1274
+ }
1275
+ //
1276
+ // SigPlusNETLCD.cs
1277
+ //
1278
+ static SetLCDCaptureMode(v) {
1279
+ var Prop = 'CaptureMode/';
1280
+ Prop = Prop + v;
1281
+ this.SigWebSetPropertySync(Prop);
1282
+ }
1283
+ static GetLCDCaptureMode() {
1284
+ var Prop = 'CaptureMode';
1285
+ Prop = Prop;
1286
+ return this.SigWebGetProperty(Prop);
1287
+ }
1288
+ static LCDSetWindow(xP, yP, xS, yS) {
1289
+ var Prop = 'LCDSetWindow/';
1290
+ Prop = Prop + xP + ',' + yP + ',' + xS + ',' + yS;
1291
+ this.SigWebSetPropertySync(Prop);
1292
+ }
1293
+ static LCDWriteString(dest, mode, x, y, fnt, size, str) {
1294
+ var c = document.createElement('canvas');
1295
+ var cntx = c.getContext('2d');
1296
+ cntx.font = fnt;
1297
+ var txt = str;
1298
+ var xs = Math.round(cntx.measureText(txt).width);
1299
+ var ys = size;
1300
+ c.width = xs;
1301
+ c.height = ys;
1302
+ if (xs == 0) {
1303
+ return;
1304
+ }
1305
+ cntx.font = fnt;
1306
+ cntx.fillStyle = '#FFFFFF';
1307
+ cntx.rect(0, 0, xs, ys);
1308
+ cntx.fill();
1309
+ cntx.fillStyle = '#000000';
1310
+ cntx.textBaseline = 'top';
1311
+ cntx.fillText(txt, 0, 0);
1312
+ cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
1313
+ var Gstr = this.createLcdBitmapFromCanvas(c, x, y, xs, ys);
1314
+ this.LcdWriteImageStream(dest, mode, x, y, xs, ys, Gstr);
1315
+ }
1316
+ static LCDDrawRectangle(dest, mode, x, y, xs, ys, fill) {
1317
+ var c = document.createElement('canvas');
1318
+ var cntx = c.getContext('2d');
1319
+ c.width = xs;
1320
+ c.height = ys;
1321
+ cntx.fillStyle = fill;
1322
+ cntx.rect(0, 0, xs, ys);
1323
+ cntx.fill();
1324
+ cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
1325
+ var Gstr = this.createLcdBitmapFromCanvas(c, x, y, xs, ys);
1326
+ this.LcdWriteImageBlob(dest, mode, x, y, xs, ys, Gstr);
1327
+ }
1328
+ static LCDDrawButton(dest, mode, x, y, xs, ys, strys, fill, fnt, str) {
1329
+ var c = document.createElement('canvas');
1330
+ var cntx = c.getContext('2d');
1331
+ cntx.font = fnt;
1332
+ var txt = str;
1333
+ var sxs = Math.round(cntx.measureText(txt).width);
1334
+ var sys = strys;
1335
+ c.width = xs;
1336
+ c.height = ys;
1337
+ cntx.font = fnt;
1338
+ cntx.fillStyle = fill;
1339
+ cntx.rect(0, 0, xs, ys);
1340
+ cntx.fill();
1341
+ cntx.fillStyle = '#FFFFFF';
1342
+ cntx.textBaseline = 'top';
1343
+ cntx.fillText(txt, (xs - sxs) / 2, (ys - sys) / 2);
1344
+ cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
1345
+ var Gstr = this.createLcdBitmapFromCanvas(c, x, y, xs, ys);
1346
+ this.LcdWriteImageBlob(dest, mode, x, y, xs, ys, Gstr);
1347
+ }
1348
+ static LCDWriteStringWindow(dest, mode, x, y, fnt, xsize, ysize, str) {
1349
+ var c = document.createElement('canvas');
1350
+ var cntx = c.getContext('2d');
1351
+ cntx.font = fnt;
1352
+ var txt = str;
1353
+ var xs = xsize;
1354
+ var ys = ysize;
1355
+ c.width = xs;
1356
+ c.height = ys;
1357
+ cntx.font = fnt;
1358
+ cntx.fillStyle = '#FFFFFF';
1359
+ cntx.rect(0, 0, xs, ys);
1360
+ cntx.fill();
1361
+ cntx.fillStyle = '#000000';
1362
+ cntx.textBaseline = 'top';
1363
+ cntx.fillText(txt, 0, 0);
1364
+ cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
1365
+ var Gstr = this.createLcdBitmapFromCanvas(c, x, y, xs, ys);
1366
+ this.LcdWriteImageBlob(dest, mode, x, y, xs, ys, Gstr);
1367
+ }
1368
+ static LCDStringWidth(fnt, str) {
1369
+ var c = document.createElement('canvas');
1370
+ var cntx = c.getContext('2d');
1371
+ cntx.font = fnt;
1372
+ var txt = str;
1373
+ var xs = Math.round(cntx.measureText(txt).width);
1374
+ return xs;
1375
+ }
1376
+ static LCDStringHeight(fnt, str) {
1377
+ return 16;
1378
+ }
1379
+ static LcdRefresh(Mode, Xp, Yp, Xs, Ys) {
1380
+ var Prop = 'LcdRefresh/';
1381
+ Prop = Prop + Mode + ',' + Xp + ',' + Yp + ',' + Xs + ',' + Ys;
1382
+ this.SigWebSetPropertySync(Prop);
1383
+ }
1384
+ static LCDSendCmdString(CmdStr, ReturnCount, Result, TimeOut) {
1385
+ var Prop = 'LcdSendCmdString/';
1386
+ Prop = Prop + ReturnCount + ',' + TimeOut;
1387
+ Result = this.SigWebSetStreamProperty(Prop, CmdStr);
1388
+ }
1389
+ static LCDSendCmdData(CmdStr, ReturnCount, Result, TimeOut) {
1390
+ var Prop = 'LcdSendCmdData/';
1391
+ Prop = Prop + ReturnCount + ',' + TimeOut;
1392
+ Result = this.SigWebSetStreamProperty(Prop, CmdStr);
1393
+ }
1394
+ // function LCDSendWindowedGraphicCanvas( dest, mode, x, y, canvas )
1395
+ // {
1396
+ // }
1397
+ // function LCDSendWindowedGraphicCanvas( dest, mode, x, y, xs, ys, canvas )
1398
+ // {
1399
+ // var Gstr = this.createLcdBitmapFromCanvas( canvas, 0, 0, xs, ys)
1400
+ // LcdWriteImageStream( dest, mode, x, y, xs, ys, Gstr );
1401
+ // }
1402
+ static LCDSendWindowedGraphicCanvas(dest, mode, x, y, xs, ys, c, xps, yps) {
1403
+ var canvas = document.createElement('canvas');
1404
+ var Gstr = this.createLcdBitmapFromCanvas(canvas, xps, yps, xs, ys);
1405
+ this.LcdWriteImageStream(dest, mode, x, y, xs, ys, Gstr);
1406
+ }
1407
+ static LCDSendGraphicUrl(dest, mode, x, y, url) {
1408
+ this.LcdWriteImage(dest, mode, x, y, url);
1409
+ }
1410
+ // function LCDSendGraphic( Dest, Mode, XPos, YPos, ImageFileName ) {}
1411
+ // function LCDSendGraphicURL( Dest, Mode, XPos, YPos, URL ) {}
1412
+ static LCDClear() {
1413
+ var Prop = 'LcdClear';
1414
+ Prop = Prop;
1415
+ return this.SigWebGetProperty(Prop);
1416
+ }
1417
+ static LCDSetTabletMap(LCDType, LCDXSize, LCDYSize, LCDXStart, LCDYStart, LCDXStop, LCDYStop) { }
1418
+ static LCDSetPixelDepth(v) {
1419
+ var Prop = 'LcdSetPixelDepth/';
1420
+ Prop = Prop + v;
1421
+ this.SigWebSetPropertySync(Prop);
1422
+ }
1423
+ static LCDGetLCDSize() {
1424
+ var Prop = 'LcdGetLcdSize';
1425
+ Prop = Prop;
1426
+ return this.SigWebGetProperty(Prop);
1427
+ }
1428
+ static LCDGetCompressionMode() {
1429
+ var Prop = 'LcdCompressionMode';
1430
+ Prop = Prop;
1431
+ return this.SigWebGetProperty(Prop);
1432
+ }
1433
+ static LCDGetZCompressionMode() {
1434
+ var Prop = 'LcdZCompressionMode';
1435
+ Prop = Prop;
1436
+ return this.SigWebGetProperty(Prop);
1437
+ }
1438
+ //
1439
+ // SigPlusNETLCD.cs
1440
+ //
1441
+ static SetRealTabletState(v) {
1442
+ var Prop = 'TabletState/';
1443
+ Prop = Prop + v;
1444
+ this.SigWebSetPropertySync(Prop);
1445
+ }
1446
+ static GetTabletState() {
1447
+ var Prop = 'TabletState';
1448
+ Prop = Prop;
1449
+ return this.SigWebGetProperty(Prop);
1450
+ }
1451
+ static SetTabletLogicalXSize(v) {
1452
+ var Prop = 'TabletLogicalXSize/';
1453
+ Prop = Prop + v;
1454
+ this.SigWebSetPropertySync(Prop);
1455
+ }
1456
+ static GetTabletLogicalXSize() {
1457
+ var Prop = 'TabletLogicalXSize';
1458
+ Prop = Prop;
1459
+ return this.SigWebGetProperty(Prop);
1460
+ }
1461
+ static GetTabletLogicalYSize() {
1462
+ var Prop = 'TabletLogicalYSize';
1463
+ Prop = Prop;
1464
+ return this.SigWebGetProperty(Prop);
1465
+ }
1466
+ static SetTabletLogicalYSize(v) {
1467
+ var Prop = 'TabletLogicalYSize/';
1468
+ Prop = Prop + v;
1469
+ this.SigWebSetPropertySync(Prop);
1470
+ }
1471
+ static SetTabletXStart(v) {
1472
+ var Prop = 'TabletXStart/';
1473
+ Prop = Prop + v;
1474
+ this.SigWebSetPropertySync(Prop);
1475
+ }
1476
+ static GetTabletXStart() {
1477
+ var Prop = 'TabletXStart';
1478
+ Prop = Prop;
1479
+ return this.SigWebGetProperty(Prop);
1480
+ }
1481
+ static SetTabletYStart(v) {
1482
+ var Prop = 'TabletYStart/';
1483
+ Prop = Prop + v;
1484
+ this.SigWebSetPropertySync(Prop);
1485
+ }
1486
+ static GetTabletYStart() {
1487
+ var Prop = 'TabletYStart';
1488
+ Prop = Prop;
1489
+ return this.SigWebGetProperty(Prop);
1490
+ }
1491
+ static SetTabletXStop(v) {
1492
+ var Prop = 'TabletXStop/';
1493
+ Prop = Prop + v;
1494
+ this.SigWebSetPropertySync(Prop);
1495
+ }
1496
+ static GetTabletXStop() {
1497
+ var Prop = 'TabletXStop';
1498
+ Prop = Prop;
1499
+ return this.SigWebGetProperty(Prop);
1500
+ }
1501
+ static SetTabletYStop(v) {
1502
+ var Prop = 'TabletYStop/';
1503
+ Prop = Prop + v;
1504
+ this.SigWebSetPropertySync(Prop);
1505
+ }
1506
+ static GetTabletYStop() {
1507
+ var Prop = 'TabletYStop';
1508
+ Prop = Prop;
1509
+ return this.SigWebGetProperty(Prop);
1510
+ }
1511
+ static SetTabletFilterPoints(v) {
1512
+ var Prop = 'TabletFilterPoints/';
1513
+ Prop = Prop + v;
1514
+ this.SigWebSetPropertySync(Prop);
1515
+ }
1516
+ static GetTabletFilterPoints() {
1517
+ var Prop = 'TabletFilterPoints';
1518
+ Prop = Prop;
1519
+ return this.SigWebGetProperty(Prop);
1520
+ }
1521
+ static SetTabletTimingAdvance(v) {
1522
+ var Prop = 'TabletTimingAdvance/';
1523
+ Prop = Prop + v;
1524
+ this.SigWebSetPropertySync(Prop);
1525
+ }
1526
+ static GetTabletTimingAdvance() {
1527
+ var Prop = 'TabletTimingAdvance';
1528
+ Prop = Prop;
1529
+ return this.SigWebGetProperty(Prop);
1530
+ }
1531
+ static SetTabletComPort(v) {
1532
+ var Prop = 'TabletComPort/';
1533
+ Prop = Prop + v;
1534
+ this.SigWebSetPropertySync(Prop);
1535
+ }
1536
+ static GetTabletComPort() {
1537
+ var Prop = 'TabletComPort';
1538
+ Prop = Prop;
1539
+ return this.SigWebGetProperty(Prop);
1540
+ }
1541
+ static SetTabletBaudRate(v) {
1542
+ var Prop = 'TabletBaudRate/';
1543
+ Prop = Prop + v;
1544
+ this.SigWebSetPropertySync(Prop);
1545
+ }
1546
+ static GetTabletBaudRate() {
1547
+ var Prop = 'TabletBaudRate';
1548
+ Prop = Prop;
1549
+ return this.SigWebGetProperty(Prop);
1550
+ }
1551
+ static SetTabletRotation(v) {
1552
+ var Prop = 'TabletRotation/';
1553
+ Prop = Prop + v;
1554
+ this.SigWebSetPropertySync(Prop);
1555
+ }
1556
+ static GetTabletRotation() {
1557
+ var Prop = 'TabletRotation';
1558
+ Prop = Prop;
1559
+ return this.SigWebGetProperty(Prop);
1560
+ }
1561
+ static SetTabletType(v) {
1562
+ var Prop = 'TabletType/';
1563
+ Prop = Prop + v;
1564
+ this.SigWebSetPropertySync(Prop);
1565
+ }
1566
+ static GetTabletType() {
1567
+ var Prop = 'TabletType';
1568
+ Prop = Prop;
1569
+ return this.SigWebGetProperty(Prop);
1570
+ }
1571
+ static SetServerTabletType(v) {
1572
+ var Prop = 'ServerTabletType/';
1573
+ Prop = Prop + v;
1574
+ this.SigWebSetPropertySync(Prop);
1575
+ }
1576
+ static GetServerTabletType() {
1577
+ var Prop = 'ServerTabletType';
1578
+ Prop = Prop;
1579
+ return this.SigWebGetProperty(Prop);
1580
+ }
1581
+ static SetTabletComTest(v) {
1582
+ var Prop = 'TabletComTest/';
1583
+ Prop = Prop + v;
1584
+ this.SigWebSetPropertySync(Prop);
1585
+ }
1586
+ static GetTabletComTest() {
1587
+ var Prop = 'TabletComTest';
1588
+ Prop = Prop;
1589
+ return this.SigWebGetProperty(Prop);
1590
+ }
1591
+ static SetTabletResolution(v) {
1592
+ var Prop = 'TabletResolution/';
1593
+ Prop = Prop + v;
1594
+ this.SigWebSetPropertySync(Prop);
1595
+ }
1596
+ static GetTabletResolution() {
1597
+ var Prop = 'TabletResolution';
1598
+ Prop = Prop;
1599
+ return this.SigWebGetProperty(Prop);
1600
+ }
1601
+ static TabletConnectQuery() {
1602
+ var Prop = 'TabletConnectQuery';
1603
+ Prop = Prop;
1604
+ return this.SigWebGetProperty(Prop);
1605
+ }
1606
+ static TabletModelNumber() {
1607
+ var Prop = 'TabletModelNumber';
1608
+ Prop = Prop;
1609
+ return this.SigWebGetProperty(Prop);
1610
+ }
1611
+ static TabletSerialNumber() {
1612
+ var Prop = 'TabletSerialNumber';
1613
+ Prop = Prop;
1614
+ return this.SigWebGetProperty(Prop);
1615
+ }
1616
+ static SetTabletPortPath(v) {
1617
+ var Prop = 'TabletPortPath/';
1618
+ Prop = Prop + v;
1619
+ this.SigWebSetPropertySync(Prop);
1620
+ }
1621
+ static SetTabletLocalIniFilePath(v) {
1622
+ var Prop = 'TabletLocalIniFilePath/';
1623
+ Prop = Prop + v;
1624
+ this.SigWebSetPropertySync(Prop);
1625
+ }
1626
+ static SetTabletModel(v) {
1627
+ var Prop = 'TabletModel/';
1628
+ Prop = Prop + v;
1629
+ this.SigWebSetPropertySync(Prop);
1630
+ }
1631
+ static SetSerialPortCloseDelay(v) {
1632
+ var Prop = 'SerialPortCloseDelay/';
1633
+ Prop = Prop + v;
1634
+ this.SigWebSetPropertySync(Prop);
1635
+ }
1636
+ static GetSerialPortCloseDelay() {
1637
+ var Prop = 'SerialPortCloseDelay';
1638
+ Prop = Prop;
1639
+ return this.SigWebGetProperty(Prop);
1640
+ }
1641
+ static EnableTabletEncryption() {
1642
+ var Prop = 'EnableTabletEncryption';
1643
+ Prop = Prop;
1644
+ this.SigWebSetPropertySync(Prop);
1645
+ }
1646
+ static SetTabletEncryptionMode(hmode, tmode) {
1647
+ var Prop = 'TabletEncryptionMode/';
1648
+ Prop = Prop + hmode + ',' + tmode;
1649
+ this.SigWebSetPropertySync(Prop);
1650
+ }
1651
+ static SetMaxLogFileSize(v) {
1652
+ var Prop = 'MaxLogFileSize/';
1653
+ Prop = Prop + v;
1654
+ this.SigWebSetPropertySync(Prop);
1655
+ }
1656
+ static GetSigSockServerPath() {
1657
+ var Prop = 'SigSockServerPath';
1658
+ Prop = Prop;
1659
+ return this.SigWebGetProperty(Prop);
1660
+ }
1661
+ static GetSigSockClientName() {
1662
+ var Prop = 'SigSockClientName';
1663
+ Prop = Prop;
1664
+ return this.SigWebGetProperty(Prop);
1665
+ }
1666
+ static GetSigSockPortNumber() {
1667
+ var Prop = 'SigSockPortNumber';
1668
+ Prop = Prop;
1669
+ return this.SigWebGetProperty(Prop);
1670
+ }
1671
+ static SetSigSockServerPath(v) {
1672
+ var Prop = 'SigSockServerPath/';
1673
+ Prop = Prop + v;
1674
+ this.SigWebSetPropertySync(Prop);
1675
+ }
1676
+ static SetSigSockClientName(v) {
1677
+ var Prop = 'SigSockClientName/';
1678
+ Prop = Prop + v;
1679
+ this.SigWebSetPropertySync(Prop);
1680
+ }
1681
+ static SetPortNumber(v) {
1682
+ var Prop = 'PortNumber/';
1683
+ Prop = Prop + v;
1684
+ this.SigWebSetPropertySync(Prop);
1685
+ }
1686
+ static SetSigSockPortNumber(v) {
1687
+ var Prop = 'SigSockPortNumber/';
1688
+ Prop = Prop + v;
1689
+ this.SigWebSetPropertySync(Prop);
1690
+ }
1691
+ static GetFirmwareRevision() {
1692
+ var Prop = 'FirmwareRevision';
1693
+ Prop = Prop;
1694
+ return this.SigWebGetProperty(Prop);
1695
+ }
1696
+ static SetTabletData(sigStr) {
1697
+ var Prop = 'TabletData';
1698
+ Prop = Prop;
1699
+ this.SigWebSetStreamProperty(Prop, sigStr);
1700
+ }
1701
+ static GetTabletData() {
1702
+ var Prop = 'TabletData';
1703
+ Prop = Prop;
1704
+ var Str = this.SigWebGetProperty(Prop);
1705
+ return Str.slice(1, Str.length - 1);
1706
+ }
1707
+ static OpenTablet(v) {
1708
+ var Prop = 'OpenTablet/';
1709
+ Prop = Prop + v;
1710
+ this.SigWebSetPropertySync(Prop);
1711
+ }
1712
+ static CloseTablet() {
1713
+ var Prop = 'CloseTablet';
1714
+ Prop = Prop;
1715
+ this.SigWebSetProperty(Prop);
1716
+ }
1717
+ static ResetParameters() {
1718
+ var Prop = 'ResetParameters';
1719
+ Prop = Prop;
1720
+ this.SigWebSetPropertySync(Prop);
1721
+ }
1722
+ static testRawData() {
1723
+ this.OpenTablet(1);
1724
+ var Str1 = this.GetTabletData();
1725
+ this.CloseTablet();
1726
+ }
1727
+ static SetTabletState(v, ctx, tv) {
1728
+ var delay;
1729
+ if (tv) {
1730
+ delay = tv;
1731
+ }
1732
+ else {
1733
+ delay = 100;
1734
+ }
1735
+ if (this.GetTabletState() != v) {
1736
+ if (v == 1) {
1737
+ if (ctx) {
1738
+ var can = ctx.canvas;
1739
+ this.SetDisplayXSize(can.width);
1740
+ this.SetDisplayYSize(can.height);
1741
+ this.SigWebSetDisplayTarget(ctx);
1742
+ }
1743
+ this.SetRealTabletState(v);
1744
+ var data = this.GetTabletState();
1745
+ var dataResult = data == '' || data == null ? 0 : Number(data);
1746
+ var tmr = null;
1747
+ if (ctx && dataResult != 0) {
1748
+ tmr = setInterval(() => this.SigWebRefresh(), delay);
1749
+ }
1750
+ else {
1751
+ tmr = null;
1752
+ }
1753
+ return tmr;
1754
+ }
1755
+ else {
1756
+ if (ctx) {
1757
+ clearInterval(ctx);
1758
+ }
1759
+ this.SigWebSetDisplayTarget(null);
1760
+ this.SetRealTabletState(v);
1761
+ }
1762
+ }
1763
+ return null;
1764
+ }
1765
+ }
1766
+ SigWebTablet.baseUri = SigWebTablet.makeUri();
1767
+ SigWebTablet.Count = false;
1768
+ SigWebTablet.SigWebFontThreshold = 155;
1769
+ SigWebTablet.NumPointsLastTime = 0;
1770
+
1771
+ class OutputMessage {
1772
+ }
1773
+ class LibeyNgSignatureComponent {
1774
+ constructor() {
1775
+ this.OutputSignature = new EventEmitter();
1776
+ this.DeviceType = 'mousepad';
1777
+ this._destroy$ = new Subject();
1778
+ this.widthView = 500;
1779
+ this.heightView = 200;
1780
+ this.widthRender = 500;
1781
+ this.heightRender = 200;
1782
+ this.signaturePadOptions = {
1783
+ minWidth: 5,
1784
+ canvasWidth: this.widthView,
1785
+ canvasHeight: this.heightView,
1786
+ backgroundColor: 'rgba(242,242,242,1)',
1787
+ };
1788
+ }
1789
+ ngAfterViewInit() {
1790
+ this.InitDevice();
1791
+ }
1792
+ ngOnDestroy() {
1793
+ this.closingSigWeb();
1794
+ this._destroy$.next(true);
1795
+ }
1796
+ ChangeDevice() {
1797
+ setTimeout(() => {
1798
+ this.InitDevice();
1799
+ }, 200);
1800
+ }
1801
+ InitDevice() {
1802
+ if (this.DeviceType == 'pinpad') {
1803
+ this.cnvContext = (this.canvas.nativeElement).getContext('2d');
1804
+ }
1805
+ if (this.DeviceType == 'mousepad') {
1806
+ this.signaturePad.set('minWidth', 5);
1807
+ this.signaturePad.clear();
1808
+ }
1809
+ }
1810
+ closingSigWeb() {
1811
+ SigWebTablet.ClearTablet();
1812
+ SigWebTablet.SetTabletState(0, this.tmr, null);
1813
+ }
1814
+ onSign() {
1815
+ console.log('onSign Clicked!');
1816
+ SigWebTablet.SetDisplayXSize(this.widthRender);
1817
+ SigWebTablet.SetDisplayYSize(this.heightRender);
1818
+ SigWebTablet.SetTabletState(0, this.tmr, null);
1819
+ SigWebTablet.SetJustifyMode(0);
1820
+ SigWebTablet.ClearTablet();
1821
+ if (this.tmr == null) {
1822
+ this.tmr = SigWebTablet.SetTabletState(1, this.cnvContext, 50);
1823
+ }
1824
+ else {
1825
+ SigWebTablet.SetTabletState(0, this.tmr, null);
1826
+ this.tmr = null;
1827
+ this.tmr = SigWebTablet.SetTabletState(1, this.cnvContext, 50);
1828
+ }
1829
+ }
1830
+ onClear() {
1831
+ if (this.DeviceType == 'pinpad') {
1832
+ SigWebTablet.ClearTablet();
1833
+ if (this.cnvContext) {
1834
+ this.cnvContext.clearRect(0, 0, this.canvas.nativeElement.width, this.canvas.nativeElement.height);
1835
+ }
1836
+ }
1837
+ if (this.DeviceType == 'mousepad') {
1838
+ this.signaturePad.clear();
1839
+ }
1840
+ }
1841
+ onDone() {
1842
+ if (this.DeviceType == 'pinpad') {
1843
+ // if (Number(SigWebTablet.NumberOfTabletPoints()) === 0) {
1844
+ // alert('Por favor firme antes de continuar');
1845
+ // } else {
1846
+ SigWebTablet.SetTabletState(0, this.tmr, null);
1847
+ SigWebTablet.SetSigCompressionMode(1);
1848
+ var result = new OutputMessage();
1849
+ result.bioSigData = SigWebTablet.GetSigString();
1850
+ result.sigImgData = SigWebTablet.GetSigString();
1851
+ SigWebTablet.SetImageXSize(this.widthRender);
1852
+ SigWebTablet.SetImageYSize(this.heightRender);
1853
+ SigWebTablet.SetImagePenWidth(5);
1854
+ SigWebTablet.GetSigImageB64((base64) => {
1855
+ result.sigString = "data:image/png;base64," + base64;
1856
+ this.OutputSignature.emit(result);
1857
+ });
1858
+ // }
1859
+ }
1860
+ if (this.DeviceType == 'mousepad') {
1861
+ var result = new OutputMessage();
1862
+ result.sigString = this.signaturePad.toDataURL();
1863
+ this.OutputSignature.emit(result);
1864
+ }
1865
+ }
1866
+ drawComplete() { }
1867
+ drawStart() { }
1868
+ }
1869
+ LibeyNgSignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgSignatureComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1870
+ LibeyNgSignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LibeyNgSignatureComponent, selector: "lib-libey-ng-signature", inputs: { DeviceType: "DeviceType" }, outputs: { OutputSignature: "OutputSignature" }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["sigImg"], descendants: true }, { propertyName: "signaturePad", first: true, predicate: SignaturePad, descendants: true }], ngImport: i0, template: "<div class=\"container\">\n <div *ngIf=\"DeviceType=='pinpad'\">\n <canvas #sigImg [width]=\"widthView\" [height]=\"heightView\" style=\"background-color: rgba(242,242,242,1);\"></canvas> \n </div>\n <div *ngIf=\"DeviceType=='mousepad'\">\n <signature-pad [options]=\"signaturePadOptions\" (onBeginEvent)=\"drawStart()\" (onEndEvent)=\"drawComplete()\"></signature-pad>\n </div>\n <div class=\"row\">\n <button *ngIf=\"DeviceType=='pinpad'\" mat-raised-button (click)=\"onSign()\">Firmar</button>\n <button mat-raised-button (click)=\"onClear()\">Limpiar</button>\n <button mat-raised-button (click)=\"onDone()\">Guardar</button>\n </div>\n <div class=\"row\">\n <ng-select [(ngModel)]=\"DeviceType\" class=\"ng-select\" placeholder=\"Seleccionar\" [clearable]=\"false\"\n (change)=\"ChangeDevice()\">\n <ng-option [value]=\"'pinpad'\">Pinpad</ng-option>\n <ng-option [value]=\"'mousepad'\">Mousepad</ng-option>\n </ng-select>\n </div>\n</div>", styles: [".container{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.row{display:flex;justify-content:center;grid-gap:10px;gap:10px}\n"], components: [{ type: i1$1.SignaturePad, selector: "signature-pad", inputs: ["options"], outputs: ["onBeginEvent", "onEndEvent"] }, { type: i2.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { type: i2.ɵr, selector: "ng-option", inputs: ["disabled", "value"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
1871
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgSignatureComponent, decorators: [{
1872
+ type: Component,
1873
+ args: [{
1874
+ selector: 'lib-libey-ng-signature',
1875
+ templateUrl: './libey-ng-signature.component.html',
1876
+ styleUrls: ['./libey-ng-signature.component.css'],
1877
+ }]
1878
+ }], ctorParameters: function () { return []; }, propDecorators: { OutputSignature: [{
1879
+ type: Output
1880
+ }], DeviceType: [{
1881
+ type: Input
1882
+ }], canvas: [{
1883
+ type: ViewChild,
1884
+ args: ['sigImg', { static: false }]
1885
+ }], signaturePad: [{
1886
+ type: ViewChild,
1887
+ args: [SignaturePad]
1888
+ }] } });
1889
+
1890
+ class LibeyNgSignatureModule {
1891
+ }
1892
+ LibeyNgSignatureModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgSignatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1893
+ LibeyNgSignatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgSignatureModule, declarations: [LibeyNgSignatureComponent], imports: [FormsModule,
1894
+ ReactiveFormsModule,
1895
+ SignaturePadModule,
1896
+ CommonModule,
1897
+ NgSelectModule,
1898
+ NgbModule], exports: [LibeyNgSignatureComponent,
1899
+ SignaturePadModule,
1900
+ NgSelectModule,
1901
+ NgbModule] });
1902
+ LibeyNgSignatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgSignatureModule, imports: [[
1903
+ FormsModule,
1904
+ ReactiveFormsModule,
1905
+ SignaturePadModule,
1906
+ CommonModule,
1907
+ NgSelectModule,
1908
+ NgbModule
1909
+ ], SignaturePadModule,
1910
+ NgSelectModule,
1911
+ NgbModule] });
1912
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgSignatureModule, decorators: [{
1913
+ type: NgModule,
1914
+ args: [{
1915
+ declarations: [
1916
+ LibeyNgSignatureComponent
1917
+ ],
1918
+ imports: [
1919
+ FormsModule,
1920
+ ReactiveFormsModule,
1921
+ SignaturePadModule,
1922
+ CommonModule,
1923
+ NgSelectModule,
1924
+ NgbModule
1925
+ ],
1926
+ exports: [
1927
+ LibeyNgSignatureComponent,
1928
+ SignaturePadModule,
1929
+ NgSelectModule,
1930
+ NgbModule
1931
+ ]
1932
+ }]
1933
+ }] });
1934
+
337
1935
  class LibeyNgComponentLibraryModule {
338
1936
  }
339
1937
  LibeyNgComponentLibraryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgComponentLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
340
1938
  LibeyNgComponentLibraryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgComponentLibraryModule, imports: [CommonModule,
341
1939
  FormsModule,
342
- LibeyNgTableModule], exports: [LibeyNgTableModule] });
1940
+ LibeyNgTableModule,
1941
+ LibeyNgSignatureModule,
1942
+ SignaturePadModule], exports: [LibeyNgTableModule,
1943
+ LibeyNgSignatureModule,
1944
+ SignaturePadModule] });
343
1945
  LibeyNgComponentLibraryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgComponentLibraryModule, providers: [DatePipe], imports: [[
344
1946
  CommonModule,
345
1947
  FormsModule,
346
- LibeyNgTableModule
347
- ], LibeyNgTableModule] });
1948
+ LibeyNgTableModule,
1949
+ LibeyNgSignatureModule,
1950
+ SignaturePadModule
1951
+ ], LibeyNgTableModule,
1952
+ LibeyNgSignatureModule,
1953
+ SignaturePadModule] });
348
1954
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: LibeyNgComponentLibraryModule, decorators: [{
349
1955
  type: NgModule,
350
1956
  args: [{
@@ -352,9 +1958,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
352
1958
  imports: [
353
1959
  CommonModule,
354
1960
  FormsModule,
355
- LibeyNgTableModule
1961
+ LibeyNgTableModule,
1962
+ LibeyNgSignatureModule,
1963
+ SignaturePadModule
1964
+ ],
1965
+ exports: [
1966
+ LibeyNgTableModule,
1967
+ LibeyNgSignatureModule,
1968
+ SignaturePadModule
356
1969
  ],
357
- exports: [LibeyNgTableModule],
358
1970
  providers: [DatePipe]
359
1971
  }]
360
1972
  }] });
@@ -367,5 +1979,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
367
1979
  * Generated bundle index. Do not edit.
368
1980
  */
369
1981
 
370
- export { LibeyColumnDirective, LibeyNgComponentLibraryComponent, LibeyNgComponentLibraryModule, LibeyNgComponentLibraryService, LibeyNgTableComponent, LibeyNgTableModule };
1982
+ export { LibeyColumnDirective, LibeyNgComponentLibraryComponent, LibeyNgComponentLibraryModule, LibeyNgComponentLibraryService, LibeyNgSignatureComponent, LibeyNgSignatureModule, LibeyNgTableComponent, LibeyNgTableModule, SigWebTablet };
371
1983
  //# sourceMappingURL=libey-ng-component-library.js.map