libey-ng-component-library 0.0.17 → 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.
- package/bundles/libey-ng-component-library.umd.js +1673 -23
- package/bundles/libey-ng-component-library.umd.js.map +1 -1
- package/esm2015/lib/libey-ng-component-library.module.js +22 -6
- package/esm2015/lib/signature/libey-ng-signature/libey-ng-signature.component.js +128 -0
- package/esm2015/lib/signature/libey-ng-signature.module.js +53 -0
- package/esm2015/lib/table/directives/libey-column.directive.js +5 -2
- package/esm2015/lib/table/libey-ng-table.component.js +2 -2
- package/esm2015/public-api.js +9 -1
- package/esm2015/utils/SigWeb/SigWeb.js +1423 -0
- package/fesm2015/libey-ng-component-library.js +1624 -9
- package/fesm2015/libey-ng-component-library.js.map +1 -1
- package/lib/libey-ng-component-library.module.d.ts +3 -1
- package/lib/signature/libey-ng-signature/libey-ng-signature.component.d.ts +36 -0
- package/lib/signature/libey-ng-signature.module.d.ts +12 -0
- package/lib/table/directives/libey-column.directive.d.ts +2 -1
- package/package.json +5 -1
- package/public-api.d.ts +8 -0
- package/utils/SigWeb/SigWeb.d.ts +218 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('libey-ng-component-library', ['exports', '@angular/core', '@angular/common', '@angular/forms'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["libey-ng-component-library"] = {}, global.ng.core, global.ng.common, global.ng.forms));
|
|
5
|
-
})(this, (function (exports, i0, i1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('rxjs'), require('angular2-signaturepad'), require('@ng-select/ng-select'), require('@ng-bootstrap/ng-bootstrap'), require('@popperjs/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('libey-ng-component-library', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'rxjs', 'angular2-signaturepad', '@ng-select/ng-select', '@ng-bootstrap/ng-bootstrap', '@popperjs/core'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["libey-ng-component-library"] = {}, global.ng.core, global.ng.common, global.ng.forms, global.rxjs, global.i1, global.i2, global.ngBootstrap, global.core));
|
|
5
|
+
})(this, (function (exports, i0, i1$1, i4, rxjs, i1, i2, ngBootstrap, core) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -23,7 +23,10 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
27
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
28
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
30
|
|
|
28
31
|
var LibeyNgComponentLibraryService = /** @class */ (function () {
|
|
29
32
|
function LibeyNgComponentLibraryService() {
|
|
@@ -59,6 +62,7 @@
|
|
|
59
62
|
|
|
60
63
|
var LibeyColumnDirective = /** @class */ (function () {
|
|
61
64
|
function LibeyColumnDirective() {
|
|
65
|
+
this.view = true;
|
|
62
66
|
this.isAutoClose = function () { return true; };
|
|
63
67
|
this.rowspan = function () { return 0; };
|
|
64
68
|
}
|
|
@@ -68,7 +72,7 @@
|
|
|
68
72
|
return LibeyColumnDirective;
|
|
69
73
|
}());
|
|
70
74
|
LibeyColumnDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyColumnDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
71
|
-
LibeyColumnDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: LibeyColumnDirective, selector: "libey-ng-column", inputs: { header: "header", property: "property", width: "width", arrayMap: "arrayMap", isArray: "isArray", expandable: "expandable", class: "class", classHeader: "classHeader", childTableTemplate: "childTableTemplate", isAutoClose: "isAutoClose", rowspan: "rowspan", isRowspan: "isRowspan" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["headerTemplate"], descendants: true, static: true }, { propertyName: "cellTemplate", first: true, predicate: ["cellTemplate"], descendants: true, static: true }, { propertyName: "defaultTemplate", first: true, predicate: i0.TemplateRef, descendants: true, static: true }], ngImport: i0__namespace });
|
|
75
|
+
LibeyColumnDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: LibeyColumnDirective, selector: "libey-ng-column", inputs: { header: "header", property: "property", width: "width", view: "view", arrayMap: "arrayMap", isArray: "isArray", expandable: "expandable", class: "class", classHeader: "classHeader", childTableTemplate: "childTableTemplate", isAutoClose: "isAutoClose", rowspan: "rowspan", isRowspan: "isRowspan" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["headerTemplate"], descendants: true, static: true }, { propertyName: "cellTemplate", first: true, predicate: ["cellTemplate"], descendants: true, static: true }, { propertyName: "defaultTemplate", first: true, predicate: i0.TemplateRef, descendants: true, static: true }], ngImport: i0__namespace });
|
|
72
76
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyColumnDirective, decorators: [{
|
|
73
77
|
type: i0.Directive,
|
|
74
78
|
args: [{
|
|
@@ -80,6 +84,8 @@
|
|
|
80
84
|
type: i0.Input
|
|
81
85
|
}], width: [{
|
|
82
86
|
type: i0.Input
|
|
87
|
+
}], view: [{
|
|
88
|
+
type: i0.Input
|
|
83
89
|
}], arrayMap: [{
|
|
84
90
|
type: i0.Input
|
|
85
91
|
}], isArray: [{
|
|
@@ -304,7 +310,7 @@
|
|
|
304
310
|
return LibeyNgTableComponent;
|
|
305
311
|
}());
|
|
306
312
|
LibeyNgTableComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgTableComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
307
|
-
LibeyNgTableComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LibeyNgTableComponent, selector: "libey-ng-table", inputs: { data: "data", pageSize: "pageSize", totalSize: "totalSize", maxPageButtons: "maxPageButtons", height: "height", expandable: "expandable", viewPaginate: "viewPaginate", childTableTemplate: "childTableTemplate", headerfixed: "headerfixed", class: "class", internalPagination: "internalPagination", currentPage: "currentPage" }, outputs: { pageChange: "pageChange" }, queries: [{ propertyName: "columns", predicate: LibeyColumnDirective }], viewQueries: [{ propertyName: "tableContainer", first: true, predicate: ["tableContainer"], descendants: true }, { propertyName: "tableElement", first: true, predicate: ["table"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"table-container\" #tableContainer [style.height]=\"height == null ? 'auto':(height + 'px')\">\r\n <!-- <table cdkDropList (cdkDropListDropped)=\"drop($event)\"> -->\r\n <table #table [ngClass]=\"class\">\r\n <thead>\r\n <tr>\r\n <th *ngIf=\"expandable\" [ngClass]=\"headerfixed == true ? 'th-fixed':''\" style=\"width: 25px;\"></th>\r\n <ng-container *ngFor=\"let column of columns; let i = index\">\r\n <th [style.width]=\"column.width ? (column.width + 'px') : 'auto'\"\r\n [ngClass]=\"headerfixed == true ? (column.classHeader + ' th-fixed'): column.classHeader\">\r\n <!-- Custom header template -->\r\n <ng-container *ngIf=\"column.headerTemplate; else defaultHeader\">\r\n <ng-container [ngTemplateOutlet]=\"column.headerTemplate\"\r\n [ngTemplateOutletContext]=\"{ column: column, index: i }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #defaultHeader>\r\n <span style=\"white-space: nowrap;\">{{ column.header }}</span>\r\n </ng-template>\r\n <div class=\"resize-handle\" (mousedown)=\"onResizeStart(i, $event)\"></div>\r\n </th>\r\n </ng-container>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *ngIf=\"_data.length == 0\">\r\n <tr>\r\n <td [colSpan]=\"expandable ? (columns.length + 1) : (columns.length)\" class=\"text-center\">\r\n No existen datos disponibles\r\n </td>\r\n </tr>\r\n </ng-container>\r\n <ng-container *ngIf=\"paginatedData.length != 0\">\r\n <ng-container *ngFor=\"let item of paginatedData; let a = index\">\r\n <tr>\r\n <td *ngIf=\"expandable\">\r\n <button (click)=\"toggleRow(a)\">\r\n <i [ngClass]=\"rowExpandable[a] ? 'icon-arrow-up':'icon-arrow-down'\"></i>\r\n </button>\r\n </td>\r\n <ng-container *ngFor=\"let column of columns; let i = index\">\r\n <td \r\n *ngIf=\"(column.isRowspan && column.rowspan(item) > 0)\"\r\n [attr.rowspan]=\"column.rowspan(item)\"\r\n [ngClass]=\"column.class\" (click)=\"toggleRowDetail(i, a, column, item)\" [class]=\"column.expandable ? 'cursor-pointer': ''\">\r\n <ng-container \r\n [ngTemplateOutlet]=\"detailTd\" \r\n [ngTemplateOutletContext]=\"{item:item, column:column, indexData:a, indexColumn:i}\">\r\n </ng-container> \r\n </td>\r\n <td \r\n *ngIf=\"column.isRowspan != true\"\r\n [ngClass]=\"column.class\" (click)=\"toggleRowDetail(i, a, column, item)\" [class]=\"column.expandable ? 'cursor-pointer': ''\">\r\n <ng-container \r\n [ngTemplateOutlet]=\"detailTd\" \r\n [ngTemplateOutletContext]=\"{item:item, column:column, indexData:a, indexColumn:i}\">\r\n </ng-container> \r\n </td>\r\n </ng-container>\r\n </tr>\r\n <ng-container *ngIf=\"viewRowExpandableDetail(a)\">\r\n <ng-container *ngTemplateOutlet=\"findRowExpandableDetail(a); context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <tr *ngIf=\"rowExpandable[a]\">\r\n <td [attr.colspan]=\"columns.length + (expandable ? 1 : 0)\">\r\n <ng-container [ngTemplateOutlet]=\"childTableTemplate\"\r\n [ngTemplateOutletContext]=\"{ parentRow: item }\">\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n </ng-container>\r\n </tbody>\r\n </table>\r\n</div>\r\n<div *ngIf=\"viewPaginate && _data.length != 0\" class=\"pagination-controls\">\r\n <div class=\"d-align-center\">\r\n <label class=\"lbl-footer me-20px\"># Registros: {{this.totalSize}}</label>\r\n <label class=\"lbl-footer\"># Filas: {{this.pageSize}}</label>\r\n </div>\r\n <div>\r\n <button (click)=\"goToPage(1)\" [disabled]=\"currentPage === 1\">\r\n <i class=\"icon-first-page\"></i>\r\n </button>\r\n <button (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\">\r\n <i class=\"icon-previous-page\"></i>\r\n </button>\r\n <ng-container *ngFor=\"let page of pageRange()\">\r\n <button\r\n (click)=\"goToPage(page)\"\r\n [class.active]=\"currentPage === page\"\r\n [disabled]=\"currentPage === page\">\r\n {{ page }}\r\n </button>\r\n </ng-container>\r\n <button (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\">\r\n <i class=\"icon-next-page\"></i>\r\n </button>\r\n <button (click)=\"goToPage(totalPages)\" [disabled]=\"currentPage === totalPages\">\r\n <i class=\"icon-last-page\"></i>\r\n </button>\r\n </div>\r\n</div>\r\n<ng-template #detailTd let-item=\"item\" let-column=\"column\" let-indexData=\"indexData\" let-indexColumn=\"indexColumn\">\r\n <ng-container *ngIf=\"column.getCellTemplate(); else defaultCell\">\r\n <div style=\"display: flex; justify-content: space-between; white-space: nowrap;\">\r\n <ng-container [ngTemplateOutlet]=\"column.getCellTemplate()\"\r\n [ngTemplateOutletContext]=\"{ $implicit: item, column: column, index: indexData }\">\r\n </ng-container>\r\n <button *ngIf=\"column.expandable\">\r\n <i [ngClass]=\"existRowExpandableDetail(indexColumn, indexData) ? 'icon-arrow-up':'icon-arrow-down'\"></i>\r\n </button>\r\n </div>\r\n </ng-container>\r\n <ng-template #defaultCell>\r\n <div style=\"display: flex; justify-content: space-between; white-space: nowrap;\">\r\n {{ getCellValue(item, column) }}\r\n <button *ngIf=\"column.expandable\">\r\n <i [ngClass]=\"existRowExpandableDetail(indexColumn, indexData) ? 'icon-arrow-up':'icon-arrow-down'\"></i>\r\n </button>\r\n </div>\r\n </ng-template>\r\n</ng-template>", styles: [".libey-table{table {width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed;};.table-container {width: 100%; overflow-x: auto;};td,th {padding: 5px 15px; text-align: left; position: relative; overflow: hidden;};th {font-weight: 400; color: #1087E8; border-top: 1px solid #D6DEE5; background-color: #EEF5FC; border-right: 1px solid #fff;};th:last-child {border-right: 1px solid #D6DEE5;};td {border-bottom: 1px solid #D6DEE5; border-style: none none solid none;};tr td:last-child {border-right: 1px solid #D6DEE5;};tr td:first-child {border-left: 1px solid #D6DEE5;};th.sortable {cursor: pointer;};.th-fixed{position: sticky !important; top: 0 !important; z-index: 1 !important;};.th-fixed::after {content: \"\"; position: absolute; left: 0; bottom: 0; width: 100%;};.table-actions {margin-bottom: 10px; display: flex; justify-content: space-between;};.table-pagination {margin-top: 10px; display: flex; justify-content: space-between;};.pagination-controls {border-radius: 10px; justify-content: space-between; border: 1px solid #D6DEE5; padding: 0px 15px; display: flex; align-items: center; margin-top: 10px; grid-gap: 5px; gap: 5px;};button {font-size: 14px; border: 0px; padding: 5px; cursor: pointer; background-color: transparent;};button.active {font-weight: 600; color: #38E8C6;};tr:first-child th:first-child {border-top-left-radius: 10px; border-left: 1px solid #D6DEE5;};tr:first-child th:last-child {border-top-right-radius: 10px; border-right: 1px solid #D6DEE5;};tr:last-child td:first-child {border-bottom-left-radius: 10px;};tr:last-child td:last-child {border-bottom-right-radius: 10px;};.d-align-center {display: flex !important; align-items: center !important;};.me-20px{margin-right: 20px;};.icon-first-page {background-repeat: no-repeat; display: block; width: 12px; height: 10px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.0922 0.292893C10.4827 -0.0976311 11.1159 -0.0976311 11.5064 0.292893C11.8969 0.683417 11.8969 1.31658 11.5064 1.70711L8.21353 5L11.5064 8.29289C11.8969 8.68342 11.8969 9.31658 11.5064 9.70711C11.1159 10.0976 10.4827 10.0976 10.0922 9.70711L6.09221 5.70711C5.70169 5.31658 5.70169 4.68342 6.09221 4.29289L10.0922 0.292893ZM4.49211 0.292893C4.88264 -0.0976311 5.5158 -0.0976311 5.90633 0.292893C6.29685 0.683417 6.29685 1.31658 5.90633 1.70711L2.61343 5L5.90633 8.29289C6.29685 8.68342 6.29685 9.31658 5.90633 9.70711C5.5158 10.0976 4.88264 10.0976 4.49211 9.70711L0.492111 5.70711C0.101587 5.31658 0.101587 4.68342 0.492111 4.29289L4.49211 0.292893Z' fill='%2338E8C6'/%3E%3C/svg%3E%0A\");};button:disabled .icon-first-page {background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.0922 0.292893C10.4827 -0.0976311 11.1159 -0.0976311 11.5064 0.292893C11.8969 0.683417 11.8969 1.31658 11.5064 1.70711L8.21353 5L11.5064 8.29289C11.8969 8.68342 11.8969 9.31658 11.5064 9.70711C11.1159 10.0976 10.4827 10.0976 10.0922 9.70711L6.09221 5.70711C5.70169 5.31658 5.70169 4.68342 6.09221 4.29289L10.0922 0.292893ZM4.49211 0.292893C4.88264 -0.0976311 5.5158 -0.0976311 5.90633 0.292893C6.29685 0.683417 6.29685 1.31658 5.90633 1.70711L2.61343 5L5.90633 8.29289C6.29685 8.68342 6.29685 9.31658 5.90633 9.70711C5.5158 10.0976 4.88264 10.0976 4.49211 9.70711L0.492111 5.70711C0.101587 5.31658 0.101587 4.68342 0.492111 4.29289L4.49211 0.292893Z' fill='%23D0D0D0'/%3E%3C/svg%3E%0A\");};.icon-previous-page {background-repeat: no-repeat; display: block; width: 7px; height: 10px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 7 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90681 0.292893C6.29734 0.683417 6.29734 1.31658 5.90681 1.70711L2.61392 5L5.90681 8.29289C6.29734 8.68342 6.29734 9.31658 5.90681 9.70711C5.51629 10.0976 4.88312 10.0976 4.4926 9.70711L0.4926 5.70711C0.102076 5.31658 0.102076 4.68342 0.4926 4.29289L4.4926 0.292893C4.88312 -0.0976311 5.51629 -0.0976311 5.90681 0.292893Z' fill='%2338E8C6'/%3E%3C/svg%3E%0A\");};button:disabled .icon-previous-page {background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 7 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90681 0.292893C6.29734 0.683417 6.29734 1.31658 5.90681 1.70711L2.61392 5L5.90681 8.29289C6.29734 8.68342 6.29734 9.31658 5.90681 9.70711C5.51629 10.0976 4.88312 10.0976 4.4926 9.70711L0.4926 5.70711C0.102076 5.31658 0.102076 4.68342 0.4926 4.29289L4.4926 0.292893C4.88312 -0.0976311 5.51629 -0.0976311 5.90681 0.292893Z' fill='%23D0D0D0'/%3E%3C/svg%3E%0A\");};.icon-next-page {background-repeat: no-repeat; display: block; width: 7px; height: 10px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 7 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.4926 0.292893C0.102076 0.683417 0.102076 1.31658 0.4926 1.70711L3.78549 5L0.4926 8.29289C0.102076 8.68342 0.102076 9.31658 0.4926 9.70711C0.883124 10.0976 1.51629 10.0976 1.90681 9.70711L5.90681 5.70711C6.29734 5.31658 6.29734 4.68342 5.90681 4.29289L1.90681 0.292893C1.51629 -0.0976311 0.883124 -0.0976311 0.4926 0.292893Z' fill='%2338E8C6'/%3E%3C/svg%3E%0A\");};button:disabled .icon-next-page {background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 7 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.4926 0.292893C0.102076 0.683417 0.102076 1.31658 0.4926 1.70711L3.78549 5L0.4926 8.29289C0.102076 8.68342 0.102076 9.31658 0.4926 9.70711C0.883124 10.0976 1.51629 10.0976 1.90681 9.70711L5.90681 5.70711C6.29734 5.31658 6.29734 4.68342 5.90681 4.29289L1.90681 0.292893C1.51629 -0.0976311 0.883124 -0.0976311 0.4926 0.292893Z' fill='%23D0D0D0'/%3E%3C/svg%3E%0A\");};.icon-last-page {background-repeat: no-repeat; display: block; width: 12px; height: 10px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.10701 0.292893C1.71648 -0.0976311 1.08332 -0.0976311 0.692796 0.292893C0.302271 0.683417 0.302271 1.31658 0.692796 1.70711L3.98569 5L0.692796 8.29289C0.302271 8.68342 0.302271 9.31658 0.692796 9.70711C1.08332 10.0976 1.71648 10.0976 2.10701 9.70711L6.10701 5.70711C6.49753 5.31658 6.49753 4.68342 6.10701 4.29289L2.10701 0.292893ZM7.70711 0.292893C7.31658 -0.0976311 6.68342 -0.0976311 6.29289 0.292893C5.90237 0.683417 5.90237 1.31658 6.29289 1.70711L9.58579 5L6.29289 8.29289C5.90237 8.68342 5.90237 9.31658 6.29289 9.70711C6.68342 10.0976 7.31658 10.0976 7.70711 9.70711L11.7071 5.70711C12.0976 5.31658 12.0976 4.68342 11.7071 4.29289L7.70711 0.292893Z' fill='%2338E8C6'/%3E%3C/svg%3E%0A\");};button:disabled .icon-last-page {background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.10701 0.292893C1.71648 -0.0976311 1.08332 -0.0976311 0.692796 0.292893C0.302271 0.683417 0.302271 1.31658 0.692796 1.70711L3.98569 5L0.692796 8.29289C0.302271 8.68342 0.302271 9.31658 0.692796 9.70711C1.08332 10.0976 1.71648 10.0976 2.10701 9.70711L6.10701 5.70711C6.49753 5.31658 6.49753 4.68342 6.10701 4.29289L2.10701 0.292893ZM7.70711 0.292893C7.31658 -0.0976311 6.68342 -0.0976311 6.29289 0.292893C5.90237 0.683417 5.90237 1.31658 6.29289 1.70711L9.58579 5L6.29289 8.29289C5.90237 8.68342 5.90237 9.31658 6.29289 9.70711C6.68342 10.0976 7.31658 10.0976 7.70711 9.70711L11.7071 5.70711C12.0976 5.31658 12.0976 4.68342 11.7071 4.29289L7.70711 0.292893Z' fill='%23D0D0D0'/%3E%3C/svg%3E%0A\");};.resize-handle {position: absolute; right: 0; top: 0; bottom: 0; width: 5px; cursor: col-resize; background-color: transparent;};::-webkit-scrollbar {width: .7rem; height: .7rem;};::-webkit-scrollbar-thumb {background-color: #d9d9d9 !important; border-radius: 20px !important; border: 3px solid #d9d9d9 !important;};.icon-arrow-up {background-repeat: no-repeat; display: block; width: 12px; height: 8px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 19 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.347794 9.61517C0.825615 10.1134 1.6169 10.13 2.11517 9.65221L9.07106 2.98186L16.0269 9.65221C16.5252 10.13 17.3165 10.1134 17.7943 9.61517C18.2721 9.11689 18.2556 8.32561 17.7573 7.84779L9.93623 0.347793C9.45266 -0.115931 8.68946 -0.115931 8.20589 0.347793L0.38483 7.84779C-0.113445 8.32561 -0.130027 9.11689 0.347794 9.61517Z' fill='%23224051'/%3E%3C/svg%3E%0A\");};.icon-arrow-down {background-repeat: no-repeat; display: block; width: 12px; height: 8px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.6234 0.387653C17.1213 -0.129218 16.3073 -0.129218 15.8051 0.387653L9 7.39295L2.19485 0.387652C1.69275 -0.129219 0.878679 -0.129219 0.376577 0.387651C-0.125527 0.904522 -0.125527 1.74253 0.376577 2.25941L8.09086 10.2006C8.59296 10.7175 9.40703 10.7175 9.90914 10.2006L17.6234 2.25941C18.1255 1.74254 18.1255 0.904523 17.6234 0.387653Z' fill='%23224051'/%3E%3C/svg%3E%0A\");};.text-center {text-align: center !important;};.cursor-pointer{cursor: pointer;}}\n"], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
313
|
+
LibeyNgTableComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LibeyNgTableComponent, selector: "libey-ng-table", inputs: { data: "data", pageSize: "pageSize", totalSize: "totalSize", maxPageButtons: "maxPageButtons", height: "height", expandable: "expandable", viewPaginate: "viewPaginate", childTableTemplate: "childTableTemplate", headerfixed: "headerfixed", class: "class", internalPagination: "internalPagination", currentPage: "currentPage" }, outputs: { pageChange: "pageChange" }, queries: [{ propertyName: "columns", predicate: LibeyColumnDirective }], viewQueries: [{ propertyName: "tableContainer", first: true, predicate: ["tableContainer"], descendants: true }, { propertyName: "tableElement", first: true, predicate: ["table"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"table-container\" #tableContainer [style.height]=\"height == null ? 'auto':(height + 'px')\">\r\n <!-- <table cdkDropList (cdkDropListDropped)=\"drop($event)\"> -->\r\n <table #table [ngClass]=\"class\">\r\n <thead>\r\n <tr>\r\n <th *ngIf=\"expandable\" [ngClass]=\"headerfixed == true ? 'th-fixed':''\" style=\"width: 25px;\"></th>\r\n <ng-container *ngFor=\"let column of columns; let i = index\">\r\n <th *ngIf=\"column.view\" [style.width]=\"column.width ? (column.width + 'px') : 'auto'\"\r\n [ngClass]=\"headerfixed == true ? (column.classHeader + ' th-fixed'): column.classHeader\">\r\n <!-- Custom header template -->\r\n <ng-container *ngIf=\"column.headerTemplate; else defaultHeader\">\r\n <ng-container [ngTemplateOutlet]=\"column.headerTemplate\"\r\n [ngTemplateOutletContext]=\"{ column: column, index: i }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #defaultHeader>\r\n <span style=\"white-space: nowrap;\">{{ column.header }}</span>\r\n </ng-template>\r\n <div class=\"resize-handle\" (mousedown)=\"onResizeStart(i, $event)\"></div>\r\n </th>\r\n </ng-container>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *ngIf=\"_data.length == 0\">\r\n <tr>\r\n <td [colSpan]=\"expandable ? (columns.length + 1) : (columns.length)\" class=\"text-center\">\r\n No existen datos disponibles\r\n </td>\r\n </tr>\r\n </ng-container>\r\n <ng-container *ngIf=\"paginatedData.length != 0\">\r\n <ng-container *ngFor=\"let item of paginatedData; let a = index\">\r\n <tr>\r\n <td *ngIf=\"expandable\">\r\n <button (click)=\"toggleRow(a)\">\r\n <i [ngClass]=\"rowExpandable[a] ? 'icon-arrow-up':'icon-arrow-down'\"></i>\r\n </button>\r\n </td>\r\n <ng-container *ngFor=\"let column of columns; let i = index\">\r\n <td \r\n *ngIf=\"column.view && (column.isRowspan && column.rowspan(item) > 0)\"\r\n [attr.rowspan]=\"column.rowspan(item)\"\r\n [ngClass]=\"column.class\" (click)=\"toggleRowDetail(i, a, column, item)\" [class]=\"column.expandable ? 'cursor-pointer': ''\">\r\n <ng-container \r\n [ngTemplateOutlet]=\"detailTd\" \r\n [ngTemplateOutletContext]=\"{item:item, column:column, indexData:a, indexColumn:i}\">\r\n </ng-container> \r\n </td>\r\n <td \r\n *ngIf=\"column.view && column.isRowspan != true\"\r\n [ngClass]=\"column.class\" (click)=\"toggleRowDetail(i, a, column, item)\" [class]=\"column.expandable ? 'cursor-pointer': ''\">\r\n <ng-container \r\n [ngTemplateOutlet]=\"detailTd\" \r\n [ngTemplateOutletContext]=\"{item:item, column:column, indexData:a, indexColumn:i}\">\r\n </ng-container> \r\n </td>\r\n </ng-container>\r\n </tr>\r\n <ng-container *ngIf=\"viewRowExpandableDetail(a)\">\r\n <ng-container *ngTemplateOutlet=\"findRowExpandableDetail(a); context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <tr *ngIf=\"rowExpandable[a]\">\r\n <td [attr.colspan]=\"columns.length + (expandable ? 1 : 0)\">\r\n <ng-container [ngTemplateOutlet]=\"childTableTemplate\"\r\n [ngTemplateOutletContext]=\"{ parentRow: item }\">\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n </ng-container>\r\n </tbody>\r\n </table>\r\n</div>\r\n<div *ngIf=\"viewPaginate && _data.length != 0\" class=\"pagination-controls\">\r\n <div class=\"d-align-center\">\r\n <label class=\"lbl-footer me-20px\"># Registros: {{this.totalSize}}</label>\r\n <label class=\"lbl-footer\"># Filas: {{this.pageSize}}</label>\r\n </div>\r\n <div>\r\n <button (click)=\"goToPage(1)\" [disabled]=\"currentPage === 1\">\r\n <i class=\"icon-first-page\"></i>\r\n </button>\r\n <button (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\">\r\n <i class=\"icon-previous-page\"></i>\r\n </button>\r\n <ng-container *ngFor=\"let page of pageRange()\">\r\n <button\r\n (click)=\"goToPage(page)\"\r\n [class.active]=\"currentPage === page\"\r\n [disabled]=\"currentPage === page\">\r\n {{ page }}\r\n </button>\r\n </ng-container>\r\n <button (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\">\r\n <i class=\"icon-next-page\"></i>\r\n </button>\r\n <button (click)=\"goToPage(totalPages)\" [disabled]=\"currentPage === totalPages\">\r\n <i class=\"icon-last-page\"></i>\r\n </button>\r\n </div>\r\n</div>\r\n<ng-template #detailTd let-item=\"item\" let-column=\"column\" let-indexData=\"indexData\" let-indexColumn=\"indexColumn\">\r\n <ng-container *ngIf=\"column.getCellTemplate(); else defaultCell\">\r\n <div style=\"display: flex; justify-content: space-between; white-space: nowrap;\">\r\n <ng-container [ngTemplateOutlet]=\"column.getCellTemplate()\"\r\n [ngTemplateOutletContext]=\"{ $implicit: item, column: column, index: indexData }\">\r\n </ng-container>\r\n <button *ngIf=\"column.expandable\">\r\n <i [ngClass]=\"existRowExpandableDetail(indexColumn, indexData) ? 'icon-arrow-up':'icon-arrow-down'\"></i>\r\n </button>\r\n </div>\r\n </ng-container>\r\n <ng-template #defaultCell>\r\n <div style=\"display: flex; justify-content: space-between; white-space: nowrap;\">\r\n {{ getCellValue(item, column) }}\r\n <button *ngIf=\"column.expandable\">\r\n <i [ngClass]=\"existRowExpandableDetail(indexColumn, indexData) ? 'icon-arrow-up':'icon-arrow-down'\"></i>\r\n </button>\r\n </div>\r\n </ng-template>\r\n</ng-template>", styles: [".libey-table{table {width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed;};.table-container {width: 100%; overflow-x: auto;};td,th {padding: 5px 15px; text-align: left; position: relative; overflow: hidden;};th {font-weight: 400; color: #1087E8; border-top: 1px solid #D6DEE5; background-color: #EEF5FC; border-right: 1px solid #fff;};th:last-child {border-right: 1px solid #D6DEE5;};td {border-bottom: 1px solid #D6DEE5; border-style: none none solid none;};tr td:last-child {border-right: 1px solid #D6DEE5;};tr td:first-child {border-left: 1px solid #D6DEE5;};th.sortable {cursor: pointer;};.th-fixed{position: sticky !important; top: 0 !important; z-index: 1 !important;};.th-fixed::after {content: \"\"; position: absolute; left: 0; bottom: 0; width: 100%;};.table-actions {margin-bottom: 10px; display: flex; justify-content: space-between;};.table-pagination {margin-top: 10px; display: flex; justify-content: space-between;};.pagination-controls {border-radius: 10px; justify-content: space-between; border: 1px solid #D6DEE5; padding: 0px 15px; display: flex; align-items: center; margin-top: 10px; grid-gap: 5px; gap: 5px;};button {font-size: 14px; border: 0px; padding: 5px; cursor: pointer; background-color: transparent;};button.active {font-weight: 600; color: #38E8C6;};tr:first-child th:first-child {border-top-left-radius: 10px; border-left: 1px solid #D6DEE5;};tr:first-child th:last-child {border-top-right-radius: 10px; border-right: 1px solid #D6DEE5;};tr:last-child td:first-child {border-bottom-left-radius: 10px;};tr:last-child td:last-child {border-bottom-right-radius: 10px;};.d-align-center {display: flex !important; align-items: center !important;};.me-20px{margin-right: 20px;};.icon-first-page {background-repeat: no-repeat; display: block; width: 12px; height: 10px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.0922 0.292893C10.4827 -0.0976311 11.1159 -0.0976311 11.5064 0.292893C11.8969 0.683417 11.8969 1.31658 11.5064 1.70711L8.21353 5L11.5064 8.29289C11.8969 8.68342 11.8969 9.31658 11.5064 9.70711C11.1159 10.0976 10.4827 10.0976 10.0922 9.70711L6.09221 5.70711C5.70169 5.31658 5.70169 4.68342 6.09221 4.29289L10.0922 0.292893ZM4.49211 0.292893C4.88264 -0.0976311 5.5158 -0.0976311 5.90633 0.292893C6.29685 0.683417 6.29685 1.31658 5.90633 1.70711L2.61343 5L5.90633 8.29289C6.29685 8.68342 6.29685 9.31658 5.90633 9.70711C5.5158 10.0976 4.88264 10.0976 4.49211 9.70711L0.492111 5.70711C0.101587 5.31658 0.101587 4.68342 0.492111 4.29289L4.49211 0.292893Z' fill='%2338E8C6'/%3E%3C/svg%3E%0A\");};button:disabled .icon-first-page {background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.0922 0.292893C10.4827 -0.0976311 11.1159 -0.0976311 11.5064 0.292893C11.8969 0.683417 11.8969 1.31658 11.5064 1.70711L8.21353 5L11.5064 8.29289C11.8969 8.68342 11.8969 9.31658 11.5064 9.70711C11.1159 10.0976 10.4827 10.0976 10.0922 9.70711L6.09221 5.70711C5.70169 5.31658 5.70169 4.68342 6.09221 4.29289L10.0922 0.292893ZM4.49211 0.292893C4.88264 -0.0976311 5.5158 -0.0976311 5.90633 0.292893C6.29685 0.683417 6.29685 1.31658 5.90633 1.70711L2.61343 5L5.90633 8.29289C6.29685 8.68342 6.29685 9.31658 5.90633 9.70711C5.5158 10.0976 4.88264 10.0976 4.49211 9.70711L0.492111 5.70711C0.101587 5.31658 0.101587 4.68342 0.492111 4.29289L4.49211 0.292893Z' fill='%23D0D0D0'/%3E%3C/svg%3E%0A\");};.icon-previous-page {background-repeat: no-repeat; display: block; width: 7px; height: 10px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 7 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90681 0.292893C6.29734 0.683417 6.29734 1.31658 5.90681 1.70711L2.61392 5L5.90681 8.29289C6.29734 8.68342 6.29734 9.31658 5.90681 9.70711C5.51629 10.0976 4.88312 10.0976 4.4926 9.70711L0.4926 5.70711C0.102076 5.31658 0.102076 4.68342 0.4926 4.29289L4.4926 0.292893C4.88312 -0.0976311 5.51629 -0.0976311 5.90681 0.292893Z' fill='%2338E8C6'/%3E%3C/svg%3E%0A\");};button:disabled .icon-previous-page {background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 7 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90681 0.292893C6.29734 0.683417 6.29734 1.31658 5.90681 1.70711L2.61392 5L5.90681 8.29289C6.29734 8.68342 6.29734 9.31658 5.90681 9.70711C5.51629 10.0976 4.88312 10.0976 4.4926 9.70711L0.4926 5.70711C0.102076 5.31658 0.102076 4.68342 0.4926 4.29289L4.4926 0.292893C4.88312 -0.0976311 5.51629 -0.0976311 5.90681 0.292893Z' fill='%23D0D0D0'/%3E%3C/svg%3E%0A\");};.icon-next-page {background-repeat: no-repeat; display: block; width: 7px; height: 10px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 7 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.4926 0.292893C0.102076 0.683417 0.102076 1.31658 0.4926 1.70711L3.78549 5L0.4926 8.29289C0.102076 8.68342 0.102076 9.31658 0.4926 9.70711C0.883124 10.0976 1.51629 10.0976 1.90681 9.70711L5.90681 5.70711C6.29734 5.31658 6.29734 4.68342 5.90681 4.29289L1.90681 0.292893C1.51629 -0.0976311 0.883124 -0.0976311 0.4926 0.292893Z' fill='%2338E8C6'/%3E%3C/svg%3E%0A\");};button:disabled .icon-next-page {background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 7 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.4926 0.292893C0.102076 0.683417 0.102076 1.31658 0.4926 1.70711L3.78549 5L0.4926 8.29289C0.102076 8.68342 0.102076 9.31658 0.4926 9.70711C0.883124 10.0976 1.51629 10.0976 1.90681 9.70711L5.90681 5.70711C6.29734 5.31658 6.29734 4.68342 5.90681 4.29289L1.90681 0.292893C1.51629 -0.0976311 0.883124 -0.0976311 0.4926 0.292893Z' fill='%23D0D0D0'/%3E%3C/svg%3E%0A\");};.icon-last-page {background-repeat: no-repeat; display: block; width: 12px; height: 10px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.10701 0.292893C1.71648 -0.0976311 1.08332 -0.0976311 0.692796 0.292893C0.302271 0.683417 0.302271 1.31658 0.692796 1.70711L3.98569 5L0.692796 8.29289C0.302271 8.68342 0.302271 9.31658 0.692796 9.70711C1.08332 10.0976 1.71648 10.0976 2.10701 9.70711L6.10701 5.70711C6.49753 5.31658 6.49753 4.68342 6.10701 4.29289L2.10701 0.292893ZM7.70711 0.292893C7.31658 -0.0976311 6.68342 -0.0976311 6.29289 0.292893C5.90237 0.683417 5.90237 1.31658 6.29289 1.70711L9.58579 5L6.29289 8.29289C5.90237 8.68342 5.90237 9.31658 6.29289 9.70711C6.68342 10.0976 7.31658 10.0976 7.70711 9.70711L11.7071 5.70711C12.0976 5.31658 12.0976 4.68342 11.7071 4.29289L7.70711 0.292893Z' fill='%2338E8C6'/%3E%3C/svg%3E%0A\");};button:disabled .icon-last-page {background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.10701 0.292893C1.71648 -0.0976311 1.08332 -0.0976311 0.692796 0.292893C0.302271 0.683417 0.302271 1.31658 0.692796 1.70711L3.98569 5L0.692796 8.29289C0.302271 8.68342 0.302271 9.31658 0.692796 9.70711C1.08332 10.0976 1.71648 10.0976 2.10701 9.70711L6.10701 5.70711C6.49753 5.31658 6.49753 4.68342 6.10701 4.29289L2.10701 0.292893ZM7.70711 0.292893C7.31658 -0.0976311 6.68342 -0.0976311 6.29289 0.292893C5.90237 0.683417 5.90237 1.31658 6.29289 1.70711L9.58579 5L6.29289 8.29289C5.90237 8.68342 5.90237 9.31658 6.29289 9.70711C6.68342 10.0976 7.31658 10.0976 7.70711 9.70711L11.7071 5.70711C12.0976 5.31658 12.0976 4.68342 11.7071 4.29289L7.70711 0.292893Z' fill='%23D0D0D0'/%3E%3C/svg%3E%0A\");};.resize-handle {position: absolute; right: 0; top: 0; bottom: 0; width: 5px; cursor: col-resize; background-color: transparent;};::-webkit-scrollbar {width: .7rem; height: .7rem;};::-webkit-scrollbar-thumb {background-color: #d9d9d9 !important; border-radius: 20px !important; border: 3px solid #d9d9d9 !important;};.icon-arrow-up {background-repeat: no-repeat; display: block; width: 12px; height: 8px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 19 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.347794 9.61517C0.825615 10.1134 1.6169 10.13 2.11517 9.65221L9.07106 2.98186L16.0269 9.65221C16.5252 10.13 17.3165 10.1134 17.7943 9.61517C18.2721 9.11689 18.2556 8.32561 17.7573 7.84779L9.93623 0.347793C9.45266 -0.115931 8.68946 -0.115931 8.20589 0.347793L0.38483 7.84779C-0.113445 8.32561 -0.130027 9.11689 0.347794 9.61517Z' fill='%23224051'/%3E%3C/svg%3E%0A\");};.icon-arrow-down {background-repeat: no-repeat; display: block; width: 12px; height: 8px; background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.6234 0.387653C17.1213 -0.129218 16.3073 -0.129218 15.8051 0.387653L9 7.39295L2.19485 0.387652C1.69275 -0.129219 0.878679 -0.129219 0.376577 0.387651C-0.125527 0.904522 -0.125527 1.74253 0.376577 2.25941L8.09086 10.2006C8.59296 10.7175 9.40703 10.7175 9.90914 10.2006L17.6234 2.25941C18.1255 1.74254 18.1255 0.904523 17.6234 0.387653Z' fill='%23224051'/%3E%3C/svg%3E%0A\");};.text-center {text-align: center !important;};.cursor-pointer{cursor: pointer;}}\n"], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
308
314
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgTableComponent, decorators: [{
|
|
309
315
|
type: i0.Component,
|
|
310
316
|
args: [{
|
|
@@ -357,42 +363,1661 @@
|
|
|
357
363
|
return LibeyNgTableModule;
|
|
358
364
|
}());
|
|
359
365
|
LibeyNgTableModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgTableModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
360
|
-
LibeyNgTableModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgTableModule, declarations: [LibeyNgTableComponent, LibeyColumnDirective], imports: [i1.CommonModule,
|
|
361
|
-
LibeyNgTableModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgTableModule, imports: [[i1.CommonModule,
|
|
366
|
+
LibeyNgTableModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgTableModule, declarations: [LibeyNgTableComponent, LibeyColumnDirective], imports: [i1$1.CommonModule, i4.FormsModule], exports: [LibeyNgTableComponent, LibeyColumnDirective] });
|
|
367
|
+
LibeyNgTableModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgTableModule, imports: [[i1$1.CommonModule, i4.FormsModule]] });
|
|
362
368
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgTableModule, decorators: [{
|
|
363
369
|
type: i0.NgModule,
|
|
364
370
|
args: [{
|
|
365
371
|
declarations: [LibeyNgTableComponent, LibeyColumnDirective],
|
|
366
|
-
imports: [i1.CommonModule,
|
|
372
|
+
imports: [i1$1.CommonModule, i4.FormsModule],
|
|
367
373
|
exports: [LibeyNgTableComponent, LibeyColumnDirective]
|
|
368
374
|
}]
|
|
369
375
|
}] });
|
|
370
376
|
|
|
377
|
+
// SigWebTablet.ts
|
|
378
|
+
var SigWebTablet = /** @class */ (function () {
|
|
379
|
+
function SigWebTablet() {
|
|
380
|
+
}
|
|
381
|
+
SigWebTablet.revokeBlobURL = function (url) {
|
|
382
|
+
if (window.URL) {
|
|
383
|
+
URL.revokeObjectURL(url);
|
|
384
|
+
}
|
|
385
|
+
else if (window.webkitURL) {
|
|
386
|
+
webkitURL.revokeObjectURL(url);
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
SigWebTablet.getBlobURL = function (blob) {
|
|
390
|
+
if (window.URL) {
|
|
391
|
+
return URL.createObjectURL(blob);
|
|
392
|
+
}
|
|
393
|
+
else if (window.webkitURL) {
|
|
394
|
+
return webkitURL.createObjectURL(blob);
|
|
395
|
+
}
|
|
396
|
+
return ''; // Retornar un string vacío en caso de error
|
|
397
|
+
};
|
|
398
|
+
SigWebTablet.makeUri = function () {
|
|
399
|
+
var prot = location.protocol;
|
|
400
|
+
if (prot == 'file:') {
|
|
401
|
+
prot = 'http:';
|
|
402
|
+
}
|
|
403
|
+
if (this.isIE()) {
|
|
404
|
+
if (prot == 'https:') {
|
|
405
|
+
return prot + '//tablet.sigwebtablet.com:47290/SigWeb/';
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
return prot + '//tablet.sigwebtablet.com:47289/SigWeb/';
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
if (this.isChrome()) {
|
|
412
|
+
if (prot == 'https:') {
|
|
413
|
+
return prot + '//tablet.sigwebtablet.com:47290/SigWeb/';
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
return prot + '//tablet.sigwebtablet.com:47289/SigWeb/';
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
//FIREFOX
|
|
421
|
+
if (prot == 'https:') {
|
|
422
|
+
return prot + '//tablet.sigwebtablet.com:47290/SigWeb/';
|
|
423
|
+
}
|
|
424
|
+
else {
|
|
425
|
+
return prot + '//tablet.sigwebtablet.com:47289/SigWeb/';
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
SigWebTablet.generateUUID = function () {
|
|
430
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
431
|
+
var r = (Math.random() * 16) | 0;
|
|
432
|
+
var v = c === 'x' ? r : (r & 0x3) | 0x8;
|
|
433
|
+
return v.toString(16);
|
|
434
|
+
});
|
|
435
|
+
};
|
|
436
|
+
SigWebTablet.isSigWebInstalled = function () {
|
|
437
|
+
var xhr = new XMLHttpRequest();
|
|
438
|
+
try {
|
|
439
|
+
xhr.open('GET', this.baseUri + "TabletState?noCache=" + this.generateUUID(), false);
|
|
440
|
+
xhr.send();
|
|
441
|
+
return xhr.status !== 404 && xhr.status !== 0;
|
|
442
|
+
}
|
|
443
|
+
catch (e) {
|
|
444
|
+
console.log('Error checking SigWeb installation', e);
|
|
445
|
+
return false;
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
SigWebTablet.isIE = function () {
|
|
449
|
+
return (navigator.appName === 'Microsoft Internet Explorer' ||
|
|
450
|
+
(navigator.appName === 'Netscape' &&
|
|
451
|
+
new RegExp('Trident/.*rv:([0-9]{1,}[.0-9]{0,})').exec(navigator.userAgent) != null));
|
|
452
|
+
};
|
|
453
|
+
SigWebTablet.isChrome = function () {
|
|
454
|
+
return navigator.userAgent.lastIndexOf('Chrome/') > 0;
|
|
455
|
+
};
|
|
456
|
+
SigWebTablet.SigWebcreateXHR = function () {
|
|
457
|
+
var xhr = new XMLHttpRequest();
|
|
458
|
+
if (!xhr) {
|
|
459
|
+
throw new Error('No se pudo crear XMLHttpRequest');
|
|
460
|
+
}
|
|
461
|
+
return xhr;
|
|
462
|
+
};
|
|
463
|
+
SigWebTablet.SigWebSetProperty = function (prop) {
|
|
464
|
+
var xhr = this.SigWebcreateXHR();
|
|
465
|
+
if (xhr) {
|
|
466
|
+
xhr.open('POST', this.baseUri + prop, true);
|
|
467
|
+
xhr.send(null);
|
|
468
|
+
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
469
|
+
return xhr.responseText;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
return '';
|
|
473
|
+
};
|
|
474
|
+
SigWebTablet.SigWebSetPropertySync = function (prop) {
|
|
475
|
+
var xhr = this.SigWebcreateXHR();
|
|
476
|
+
if (xhr) {
|
|
477
|
+
xhr.open('POST', this.baseUri + prop, false);
|
|
478
|
+
xhr.send();
|
|
479
|
+
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
480
|
+
return xhr.responseText;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return '';
|
|
484
|
+
};
|
|
485
|
+
SigWebTablet.SigWebSetStreamProperty = function (prop, strm) {
|
|
486
|
+
var xhr = this.SigWebcreateXHR();
|
|
487
|
+
if (xhr) {
|
|
488
|
+
xhr.open('POST', this.baseUri + prop);
|
|
489
|
+
xhr.setRequestHeader('Content-Type', 'text/plain');
|
|
490
|
+
xhr.send(strm);
|
|
491
|
+
}
|
|
492
|
+
return '';
|
|
493
|
+
};
|
|
494
|
+
SigWebTablet.SigWebSyncSetStreamProperty = function (prop, strm) {
|
|
495
|
+
var xhr = this.SigWebcreateXHR();
|
|
496
|
+
if (xhr) {
|
|
497
|
+
xhr.open('POST', this.baseUri + prop, false);
|
|
498
|
+
xhr.setRequestHeader('Content-Type', 'text/plain');
|
|
499
|
+
xhr.send(strm);
|
|
500
|
+
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
501
|
+
return xhr.responseText;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
return '';
|
|
505
|
+
};
|
|
506
|
+
SigWebTablet.SigWebSetImageStreamProperty = function (prop, strm) {
|
|
507
|
+
var xhr = this.SigWebcreateXHR();
|
|
508
|
+
if (xhr) {
|
|
509
|
+
xhr.open('POST', this.baseUri + prop, false);
|
|
510
|
+
xhr.setRequestHeader('Content-Type', 'image/png');
|
|
511
|
+
xhr.send(strm);
|
|
512
|
+
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
513
|
+
return xhr.responseText;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return '';
|
|
517
|
+
};
|
|
518
|
+
SigWebTablet.SigWebSetImageBlobProperty = function (prop, strm) {
|
|
519
|
+
var xhr = this.SigWebcreateXHR();
|
|
520
|
+
if (xhr) {
|
|
521
|
+
xhr.open('POST', this.baseUri + prop, false);
|
|
522
|
+
xhr.setRequestHeader('Content-Type', 'blob');
|
|
523
|
+
xhr.send(strm);
|
|
524
|
+
if (xhr.readyState == 4 && xhr.status == 200) {
|
|
525
|
+
return xhr.responseText;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
return '';
|
|
529
|
+
};
|
|
530
|
+
SigWebTablet.SigWebGetProperty = function (prop) {
|
|
531
|
+
var xhr = this.SigWebcreateXHR();
|
|
532
|
+
if (xhr) {
|
|
533
|
+
xhr.open('GET', this.baseUri + prop + '?noCache=' + this.generateUUID(), false);
|
|
534
|
+
xhr.send(null);
|
|
535
|
+
if (xhr.readyState == 4 && xhr.status == 200) {
|
|
536
|
+
return xhr.responseText;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return '';
|
|
540
|
+
};
|
|
541
|
+
SigWebTablet.GetSigImageB64 = function (callback) {
|
|
542
|
+
var _this = this;
|
|
543
|
+
var cvs = document.createElement('canvas');
|
|
544
|
+
var width = this.GetImageXSize();
|
|
545
|
+
var height = this.GetImageYSize();
|
|
546
|
+
cvs.width = width == '' || width == null ? 0 : Number(width);
|
|
547
|
+
cvs.height = height == '' || height == null ? 0 : Number(height);
|
|
548
|
+
var xhr2 = new XMLHttpRequest();
|
|
549
|
+
xhr2.open('GET', this.baseUri + 'SigImage/1' + '?noCache=' + this.generateUUID(), true);
|
|
550
|
+
xhr2.responseType = 'blob';
|
|
551
|
+
xhr2.send(null);
|
|
552
|
+
xhr2.onload = function () {
|
|
553
|
+
var cntx = cvs.getContext('2d');
|
|
554
|
+
var img = new Image();
|
|
555
|
+
img.src = _this.getBlobURL(xhr2.response);
|
|
556
|
+
img.onload = function () {
|
|
557
|
+
cntx.drawImage(img, 0, 0);
|
|
558
|
+
var b64String = cvs.toDataURL('image/png');
|
|
559
|
+
var loc = b64String.search('base64,');
|
|
560
|
+
var retstring = b64String.slice(loc + 7, b64String.length);
|
|
561
|
+
if (callback) {
|
|
562
|
+
callback(retstring);
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
SigWebTablet.SigWebWaitForPenDown = function (callback) {
|
|
568
|
+
var xhr = this.SigWebcreateXHR();
|
|
569
|
+
if (xhr) {
|
|
570
|
+
xhr.open('GET', this.baseUri + 'WaitForPenDown' + '?noCache=' + this.generateUUID());
|
|
571
|
+
xhr.timeout = 10000;
|
|
572
|
+
xhr.onreadystatechange = function () {
|
|
573
|
+
if (xhr.readyState != 4)
|
|
574
|
+
return;
|
|
575
|
+
if (xhr.status == 200)
|
|
576
|
+
callback();
|
|
577
|
+
};
|
|
578
|
+
xhr.send(null);
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
SigWebTablet.GetSigImage = function (ctx) {
|
|
582
|
+
var _this = this;
|
|
583
|
+
var xhr2 = new XMLHttpRequest();
|
|
584
|
+
xhr2.open('GET', this.baseUri + 'SigImage/1' + '?noCache=' + this.generateUUID(), true);
|
|
585
|
+
xhr2.responseType = 'blob';
|
|
586
|
+
xhr2.send(null);
|
|
587
|
+
xhr2.onload = function () {
|
|
588
|
+
var img = new Image();
|
|
589
|
+
img.src = _this.getBlobURL(xhr2.response);
|
|
590
|
+
img.onload = function () {
|
|
591
|
+
ctx.drawImage(img, 0, 0);
|
|
592
|
+
_this.revokeBlobURL(img.src);
|
|
593
|
+
img = null;
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
SigWebTablet.SigWebSetDisplayTarget = function (obj) {
|
|
598
|
+
this.ctx = obj;
|
|
599
|
+
};
|
|
600
|
+
SigWebTablet.SigWebRefresh = function () {
|
|
601
|
+
var _this = this;
|
|
602
|
+
var NumPoints = Number(this.NumberOfTabletPoints());
|
|
603
|
+
if (NumPoints == this.NumPointsLastTime) {
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
this.NumPointsLastTime = NumPoints;
|
|
607
|
+
var xhr2 = new XMLHttpRequest();
|
|
608
|
+
xhr2.open('GET', this.baseUri + 'SigImage/0' + '?noCache=' + this.generateUUID(), true);
|
|
609
|
+
xhr2.responseType = 'blob';
|
|
610
|
+
xhr2.onload = function () {
|
|
611
|
+
var img = new Image();
|
|
612
|
+
img.src = _this.getBlobURL(xhr2.response);
|
|
613
|
+
// img.src = window.URL.createObjectURL(xhr2.response);
|
|
614
|
+
img.onload = function () {
|
|
615
|
+
_this.ctx.drawImage(img, 0, 0);
|
|
616
|
+
_this.revokeBlobURL(img.src);
|
|
617
|
+
img = null;
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
xhr2.send(null);
|
|
621
|
+
};
|
|
622
|
+
SigWebTablet.SigWebEvent = function () {
|
|
623
|
+
var _this = this;
|
|
624
|
+
var OldEvStatus = this.EvStatus;
|
|
625
|
+
var xhr = this.SigWebcreateXHR();
|
|
626
|
+
if (xhr) {
|
|
627
|
+
xhr.open('GET', this.baseUri + 'EventStatus' + '?noCache=' + this.generateUUID(), true);
|
|
628
|
+
xhr.onload = function () {
|
|
629
|
+
_this.EvStatus = xhr.responseText;
|
|
630
|
+
if (OldEvStatus & 0x01 && _this.EvStatus & 0x02) {
|
|
631
|
+
if (_this.onSigPenDown) {
|
|
632
|
+
_this.onSigPenDown();
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
if (OldEvStatus & 0x02 && _this.EvStatus & 0x01) {
|
|
636
|
+
if (_this.onSigPenUp) {
|
|
637
|
+
_this.onSigPenUp();
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
xhr.send(null);
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
SigWebTablet.setSigWebFontThreshold = function (v) {
|
|
645
|
+
this.SigWebFontThreshold = v;
|
|
646
|
+
};
|
|
647
|
+
SigWebTablet.createLcdBitmapFromCanvas = function (ourCanvas, xp, yp, width, height) {
|
|
648
|
+
var canvasCtx = ourCanvas.getContext('2d');
|
|
649
|
+
var imgData = canvasCtx.getImageData(0, 0, width, height);
|
|
650
|
+
var j = 0;
|
|
651
|
+
var sVal = 0;
|
|
652
|
+
var outData = '';
|
|
653
|
+
var outIdx = 0;
|
|
654
|
+
var data = imgData.data;
|
|
655
|
+
for (var y = 0; y < height; y++)
|
|
656
|
+
for (var x = 0; x < width; x++) {
|
|
657
|
+
var tmp1 = data[j];
|
|
658
|
+
var tmp2 = data[j + 1];
|
|
659
|
+
var tmp3 = data[j + 2];
|
|
660
|
+
var tmp4 = data[j + 3];
|
|
661
|
+
// sVal = tmp1 + (tmp2 << 8 ) + ( tmp3 << 16 ) + (tmp4 << 24 );
|
|
662
|
+
j = j + 4;
|
|
663
|
+
if (tmp1 < this.SigWebFontThreshold) {
|
|
664
|
+
outData += 'B';
|
|
665
|
+
}
|
|
666
|
+
else {
|
|
667
|
+
outData += 'W';
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
return outData;
|
|
671
|
+
};
|
|
672
|
+
SigWebTablet.toHex = function (NibVal) {
|
|
673
|
+
switch (NibVal) {
|
|
674
|
+
case 0:
|
|
675
|
+
return '0';
|
|
676
|
+
case 1:
|
|
677
|
+
return '1';
|
|
678
|
+
case 2:
|
|
679
|
+
return '2';
|
|
680
|
+
case 3:
|
|
681
|
+
return '3';
|
|
682
|
+
case 4:
|
|
683
|
+
return '4';
|
|
684
|
+
case 5:
|
|
685
|
+
return '5';
|
|
686
|
+
case 6:
|
|
687
|
+
return '6';
|
|
688
|
+
case 7:
|
|
689
|
+
return '7';
|
|
690
|
+
case 8:
|
|
691
|
+
return '8';
|
|
692
|
+
case 9:
|
|
693
|
+
return '9';
|
|
694
|
+
case 10:
|
|
695
|
+
return 'A';
|
|
696
|
+
case 11:
|
|
697
|
+
return 'B';
|
|
698
|
+
case 12:
|
|
699
|
+
return 'C';
|
|
700
|
+
case 13:
|
|
701
|
+
return 'D';
|
|
702
|
+
case 14:
|
|
703
|
+
return 'E';
|
|
704
|
+
case 15:
|
|
705
|
+
return 'F';
|
|
706
|
+
default:
|
|
707
|
+
return '';
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
SigWebTablet.ToHexString = function (ByteVal) {
|
|
711
|
+
var Str = '';
|
|
712
|
+
Str += this.toHex((ByteVal >> 4) & 0x0f);
|
|
713
|
+
Str += this.toHex(ByteVal & 0x0f);
|
|
714
|
+
return Str;
|
|
715
|
+
};
|
|
716
|
+
SigWebTablet.textToTablet = function (x, y, height, str, fnt) {
|
|
717
|
+
var c = document.createElement('canvas');
|
|
718
|
+
var cntx = c.getContext('2d');
|
|
719
|
+
cntx.font = fnt;
|
|
720
|
+
var txt = str;
|
|
721
|
+
var xs = Math.round(cntx.measureText(txt).width);
|
|
722
|
+
var ys = height;
|
|
723
|
+
c.width = xs;
|
|
724
|
+
c.height = ys;
|
|
725
|
+
cntx.font = fnt;
|
|
726
|
+
cntx.fillStyle = '#FFFFFF';
|
|
727
|
+
cntx.rect(0, 0, xs, ys);
|
|
728
|
+
cntx.fill();
|
|
729
|
+
cntx.fillStyle = '#000000';
|
|
730
|
+
cntx.textBaseline = 'top';
|
|
731
|
+
cntx.fillText(txt, 0, 0);
|
|
732
|
+
cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
|
|
733
|
+
var Gstr = this.createLcdBitmapFromCanvas(c, 0, 0, xs, ys);
|
|
734
|
+
this.LcdWriteImageStream(0, 2, x, y, xs, ys, Gstr);
|
|
735
|
+
};
|
|
736
|
+
SigWebTablet.LcdWriteImage = function (Dst, Mode, Xp, Yp, Url) {
|
|
737
|
+
var Prop = 'LcdWriteImage/';
|
|
738
|
+
var NewUrl = Url.replace(/\//g, '_');
|
|
739
|
+
Prop = Prop + Dst + ',' + Mode + ',' + Xp + ',' + Yp + ',' + NewUrl;
|
|
740
|
+
this.SigWebSetPropertySync(Prop);
|
|
741
|
+
};
|
|
742
|
+
SigWebTablet.LcdWriteLocalImage = function (Dst, Mode, Xp, Yp, Url) {
|
|
743
|
+
var Prop = 'LcdWriteImage/';
|
|
744
|
+
Prop = Prop + Dst + ',' + Mode + ',' + Xp + ',' + Yp + ',' + Url;
|
|
745
|
+
this.SigWebSetProperty(Prop);
|
|
746
|
+
};
|
|
747
|
+
SigWebTablet.LcdWriteImageStream = function (Dst, Mode, Xp, Yp, Xs, Ys, Url) {
|
|
748
|
+
var Prop1 = 'LcdWriteImageStreamParams/' +
|
|
749
|
+
Dst +
|
|
750
|
+
',' +
|
|
751
|
+
Mode +
|
|
752
|
+
',' +
|
|
753
|
+
Xp +
|
|
754
|
+
',' +
|
|
755
|
+
Yp +
|
|
756
|
+
',' +
|
|
757
|
+
Xs +
|
|
758
|
+
',' +
|
|
759
|
+
Ys;
|
|
760
|
+
var Prop2 = 'LcdWriteImageStream/';
|
|
761
|
+
this.SigWebSetPropertySync(Prop1);
|
|
762
|
+
this.SigWebSetImageStreamProperty(Prop2, Url);
|
|
763
|
+
};
|
|
764
|
+
SigWebTablet.LcdWriteImageBlob = function (Dst, Mode, Xp, Yp, Xs, Ys, Url) {
|
|
765
|
+
var Prop = 'LcdWriteImageStream/';
|
|
766
|
+
Prop = Prop + Dst + ',' + Mode + ',' + Xp + ',' + Yp + ',' + Xs + ',' + Ys;
|
|
767
|
+
this.SigWebSetImageBlobProperty(Prop, Url);
|
|
768
|
+
};
|
|
769
|
+
SigWebTablet.measureText = function (pText, pFontSize, pStyle) {
|
|
770
|
+
var lDiv = document.createElement('lDiv');
|
|
771
|
+
document.body.appendChild(lDiv);
|
|
772
|
+
if (pStyle != null) {
|
|
773
|
+
lDiv.setAttribute('style', pStyle);
|
|
774
|
+
}
|
|
775
|
+
lDiv.style.fontSize = '' + pFontSize + 'px';
|
|
776
|
+
lDiv.style.position = 'absolute';
|
|
777
|
+
lDiv.style.left = '-1000';
|
|
778
|
+
lDiv.style.top = '-1000';
|
|
779
|
+
lDiv.innerHTML = pText;
|
|
780
|
+
var lResult = {
|
|
781
|
+
width: lDiv.clientWidth,
|
|
782
|
+
height: lDiv.clientHeight,
|
|
783
|
+
};
|
|
784
|
+
document.body.removeChild(lDiv);
|
|
785
|
+
lDiv = null;
|
|
786
|
+
return lResult;
|
|
787
|
+
};
|
|
788
|
+
SigWebTablet.GetVersionString = function () {
|
|
789
|
+
var Prop = 'Version';
|
|
790
|
+
Prop = Prop;
|
|
791
|
+
var Str = this.SigWebGetProperty(Prop);
|
|
792
|
+
var trimStr = Str.slice(1, Str.length - 2);
|
|
793
|
+
return trimStr;
|
|
794
|
+
};
|
|
795
|
+
SigWebTablet.IsPenDown = function () {
|
|
796
|
+
return this.EvStatus & 0x01;
|
|
797
|
+
};
|
|
798
|
+
//
|
|
799
|
+
// SigPlusNETSig.cs
|
|
800
|
+
//
|
|
801
|
+
SigWebTablet.ClearTablet = function () {
|
|
802
|
+
var Prop = 'ClearSignature';
|
|
803
|
+
Prop = Prop;
|
|
804
|
+
return this.SigWebGetProperty(Prop);
|
|
805
|
+
};
|
|
806
|
+
SigWebTablet.NumberOfTabletPoints = function () {
|
|
807
|
+
var Prop = 'TotalPoints';
|
|
808
|
+
Prop = Prop;
|
|
809
|
+
return this.SigWebGetProperty(Prop);
|
|
810
|
+
};
|
|
811
|
+
SigWebTablet.SetSigString = function (sigStr, ctx) {
|
|
812
|
+
var _this = this;
|
|
813
|
+
var Prop = 'SigString';
|
|
814
|
+
Prop = Prop;
|
|
815
|
+
var xhr = this.SigWebcreateXHR();
|
|
816
|
+
if (xhr) {
|
|
817
|
+
xhr.open('POST', this.baseUri + Prop);
|
|
818
|
+
xhr.setRequestHeader('Content-Type', 'text/plain');
|
|
819
|
+
xhr.send(sigStr);
|
|
820
|
+
xhr.onload = function () {
|
|
821
|
+
if (ctx) {
|
|
822
|
+
var can = ctx.canvas;
|
|
823
|
+
_this.SetImageXSize(can.width);
|
|
824
|
+
_this.SetImageYSize(can.height);
|
|
825
|
+
_this.GetSigImage(ctx);
|
|
826
|
+
}
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
return '';
|
|
830
|
+
};
|
|
831
|
+
SigWebTablet.GetSigString = function () {
|
|
832
|
+
var Prop = 'SigString';
|
|
833
|
+
Prop = Prop;
|
|
834
|
+
var Str = this.SigWebGetProperty(Prop);
|
|
835
|
+
return Str.slice(1, Str.length - 1);
|
|
836
|
+
};
|
|
837
|
+
SigWebTablet.SetSigCompressionMode = function (v) {
|
|
838
|
+
var Prop = 'CompressionMode/';
|
|
839
|
+
Prop = Prop + v;
|
|
840
|
+
this.SigWebSetPropertySync(Prop);
|
|
841
|
+
};
|
|
842
|
+
SigWebTablet.GetSigCompressionMode = function () {
|
|
843
|
+
var Prop = 'CompressionMode';
|
|
844
|
+
Prop = Prop;
|
|
845
|
+
return this.SigWebGetProperty(Prop);
|
|
846
|
+
};
|
|
847
|
+
SigWebTablet.SetEncryptionMode = function (v) {
|
|
848
|
+
var Prop = 'EncryptionMode/';
|
|
849
|
+
Prop = Prop + v;
|
|
850
|
+
this.SigWebSetPropertySync(Prop);
|
|
851
|
+
};
|
|
852
|
+
SigWebTablet.GetEncryptionMode = function () {
|
|
853
|
+
var Prop = 'EncryptionMode';
|
|
854
|
+
Prop = Prop;
|
|
855
|
+
return this.SigWebGetProperty(Prop);
|
|
856
|
+
};
|
|
857
|
+
SigWebTablet.SetKeyString = function (keyString) {
|
|
858
|
+
var Prop = 'KeyString';
|
|
859
|
+
Prop = Prop;
|
|
860
|
+
this.SigWebSetStreamProperty(Prop, keyString);
|
|
861
|
+
};
|
|
862
|
+
SigWebTablet.GetKeyString = function () {
|
|
863
|
+
var Prop = 'KeyString';
|
|
864
|
+
Prop = Prop;
|
|
865
|
+
var Str = this.SigWebGetProperty(Prop);
|
|
866
|
+
return Str.slice(1, Str.length - 1);
|
|
867
|
+
};
|
|
868
|
+
SigWebTablet.AutoKeyStart = function () {
|
|
869
|
+
var Prop = 'AutoKeyStart';
|
|
870
|
+
Prop = Prop;
|
|
871
|
+
this.SigWebSetPropertySync(Prop);
|
|
872
|
+
};
|
|
873
|
+
SigWebTablet.AutoKeyFinish = function () {
|
|
874
|
+
var Prop = 'AutoKeyFinish';
|
|
875
|
+
Prop = Prop;
|
|
876
|
+
this.SigWebSetPropertySync(Prop);
|
|
877
|
+
};
|
|
878
|
+
SigWebTablet.SetAutoKeyData = function (keyData) {
|
|
879
|
+
var Prop = 'SetAutoKeyData';
|
|
880
|
+
Prop = Prop;
|
|
881
|
+
this.SigWebSetStreamProperty(Prop, keyData);
|
|
882
|
+
};
|
|
883
|
+
SigWebTablet.AutoKeyAddData = function (keyData) {
|
|
884
|
+
var Prop = 'AutoKeyAddData';
|
|
885
|
+
Prop = Prop;
|
|
886
|
+
this.SigWebSetStreamProperty(Prop, keyData);
|
|
887
|
+
return this.GetKeyString();
|
|
888
|
+
};
|
|
889
|
+
// function GetKeyReceipt( ) {}
|
|
890
|
+
SigWebTablet.GetKeyReceiptAscii = function () {
|
|
891
|
+
var Prop = 'KeyReceiptAscii';
|
|
892
|
+
Prop = Prop;
|
|
893
|
+
var Str = this.SigWebGetProperty(Prop);
|
|
894
|
+
return Str.slice(1, Str.length - 1);
|
|
895
|
+
};
|
|
896
|
+
// function GetSigReceipt( ) {}
|
|
897
|
+
SigWebTablet.GetSigReceiptAscii = function () {
|
|
898
|
+
var Prop = 'SigReceiptAscii';
|
|
899
|
+
Prop = Prop;
|
|
900
|
+
var Str = this.SigWebGetProperty(Prop);
|
|
901
|
+
return Str.slice(1, Str.length - 1);
|
|
902
|
+
};
|
|
903
|
+
SigWebTablet.SetTimeStamp = function (timeStamp) {
|
|
904
|
+
var Prop = 'TimeStamp';
|
|
905
|
+
Prop = Prop;
|
|
906
|
+
this.SigWebSetStreamProperty(Prop, timeStamp);
|
|
907
|
+
};
|
|
908
|
+
SigWebTablet.GetTimeStamp = function () {
|
|
909
|
+
var Prop = 'TimeStamp';
|
|
910
|
+
Prop = Prop;
|
|
911
|
+
var Str = this.SigWebGetProperty(Prop);
|
|
912
|
+
return Str.slice(1, Str.length - 1);
|
|
913
|
+
};
|
|
914
|
+
SigWebTablet.SetAnnotate = function (annotate) {
|
|
915
|
+
var Prop = 'Annotate';
|
|
916
|
+
Prop = Prop;
|
|
917
|
+
this.SigWebSetStreamProperty(Prop, annotate);
|
|
918
|
+
};
|
|
919
|
+
SigWebTablet.GetAnnotate = function () {
|
|
920
|
+
var Prop = 'Annotate';
|
|
921
|
+
Prop = Prop;
|
|
922
|
+
var Str = this.SigWebGetProperty(Prop);
|
|
923
|
+
return Str.slice(1, Str.length - 1);
|
|
924
|
+
};
|
|
925
|
+
SigWebTablet.SetSaveSigInfo = function (v) {
|
|
926
|
+
var Prop = 'SaveSigInfo/';
|
|
927
|
+
Prop = Prop + v;
|
|
928
|
+
this.SigWebSetPropertySync(Prop);
|
|
929
|
+
};
|
|
930
|
+
SigWebTablet.GetSaveSigInfo = function () {
|
|
931
|
+
var Prop = 'SaveSigInfo';
|
|
932
|
+
Prop = Prop;
|
|
933
|
+
return this.SigWebGetProperty(Prop);
|
|
934
|
+
};
|
|
935
|
+
SigWebTablet.SetSavePressureData = function (v) {
|
|
936
|
+
var Prop = 'SavePressureData/';
|
|
937
|
+
Prop = Prop + v;
|
|
938
|
+
this.SigWebSetPropertySync(Prop);
|
|
939
|
+
};
|
|
940
|
+
SigWebTablet.GetSavePressureData = function () {
|
|
941
|
+
var Prop = 'SavePressureData';
|
|
942
|
+
Prop = Prop;
|
|
943
|
+
return this.SigWebGetProperty(Prop);
|
|
944
|
+
};
|
|
945
|
+
SigWebTablet.SetSaveTimeData = function (v) {
|
|
946
|
+
var Prop = 'SaveTimeData/';
|
|
947
|
+
Prop = Prop + v;
|
|
948
|
+
this.SigWebSetPropertySync(Prop);
|
|
949
|
+
};
|
|
950
|
+
SigWebTablet.GetSaveTimeData = function () {
|
|
951
|
+
var Prop = 'SaveTimeData';
|
|
952
|
+
Prop = Prop;
|
|
953
|
+
return this.SigWebGetProperty(Prop);
|
|
954
|
+
};
|
|
955
|
+
SigWebTablet.SetAntiAliasSpotSize = function (v) {
|
|
956
|
+
var Prop = 'AntiAliasSpotSize/';
|
|
957
|
+
Prop = Prop + v;
|
|
958
|
+
this.SigWebSetPropertySync(Prop);
|
|
959
|
+
};
|
|
960
|
+
SigWebTablet.GetAntiAliasSpotSize = function () {
|
|
961
|
+
var Prop = 'AntiAliasSpotSize';
|
|
962
|
+
Prop = Prop;
|
|
963
|
+
return this.SigWebGetProperty(Prop);
|
|
964
|
+
};
|
|
965
|
+
SigWebTablet.SetAntiAliasLineScale = function (v) {
|
|
966
|
+
var Prop = 'AntiAliasLineScale/';
|
|
967
|
+
Prop = Prop + v;
|
|
968
|
+
this.SigWebSetPropertySync(Prop);
|
|
969
|
+
};
|
|
970
|
+
SigWebTablet.GetAntiAliasLineScale = function () {
|
|
971
|
+
var Prop = 'AntiAliasLineScale';
|
|
972
|
+
Prop = Prop;
|
|
973
|
+
return this.SigWebGetProperty(Prop);
|
|
974
|
+
};
|
|
975
|
+
SigWebTablet.GetNumberOfStrokes = function () {
|
|
976
|
+
var Prop = 'NumberOfStrokes';
|
|
977
|
+
Prop = Prop;
|
|
978
|
+
return this.SigWebGetProperty(Prop);
|
|
979
|
+
};
|
|
980
|
+
SigWebTablet.GetNumPointsForStroke = function (v) {
|
|
981
|
+
var Prop = 'NumberOfPointsInStroke/';
|
|
982
|
+
Prop = Prop + v;
|
|
983
|
+
return this.SigWebGetProperty(Prop);
|
|
984
|
+
};
|
|
985
|
+
SigWebTablet.GetPointXValue = function (v1, v2) {
|
|
986
|
+
var Prop = 'PointXValue/';
|
|
987
|
+
Prop = Prop + v1 + '/' + v2;
|
|
988
|
+
return this.SigWebGetProperty(Prop);
|
|
989
|
+
};
|
|
990
|
+
SigWebTablet.GetPointYValue = function (v1, v2) {
|
|
991
|
+
var Prop = 'PointYValue/';
|
|
992
|
+
Prop = Prop + v1 + '/' + v2;
|
|
993
|
+
return this.SigWebGetProperty(Prop);
|
|
994
|
+
};
|
|
995
|
+
SigWebTablet.SetAntiAliasEnable = function (v) {
|
|
996
|
+
var Prop = 'AntiAliasEnable/';
|
|
997
|
+
Prop = Prop + v;
|
|
998
|
+
this.SigWebSetPropertySync(Prop);
|
|
999
|
+
};
|
|
1000
|
+
SigWebTablet.GetAntiAliasEnable = function () {
|
|
1001
|
+
var Prop = 'AntiAliasEnable';
|
|
1002
|
+
Prop = Prop;
|
|
1003
|
+
return this.SigWebGetProperty(Prop);
|
|
1004
|
+
};
|
|
1005
|
+
SigWebTablet.SetUseAmbientColors = function (v) {
|
|
1006
|
+
var Prop = 'UseAmbientColors/';
|
|
1007
|
+
Prop = Prop + v;
|
|
1008
|
+
this.SigWebSetPropertySync(Prop);
|
|
1009
|
+
};
|
|
1010
|
+
//
|
|
1011
|
+
// SigPlusNETDisplay.cs
|
|
1012
|
+
//
|
|
1013
|
+
SigWebTablet.SetDisplayXSize = function (v) {
|
|
1014
|
+
var Prop = 'DisplayXSize/';
|
|
1015
|
+
Prop = Prop + v;
|
|
1016
|
+
this.SigWebSetPropertySync(Prop);
|
|
1017
|
+
};
|
|
1018
|
+
SigWebTablet.GetDisplayXSize = function () {
|
|
1019
|
+
var Prop = 'DisplayXSize';
|
|
1020
|
+
Prop = Prop;
|
|
1021
|
+
return this.SigWebGetProperty(Prop);
|
|
1022
|
+
};
|
|
1023
|
+
SigWebTablet.SetDisplayYSize = function (v) {
|
|
1024
|
+
var Prop = 'DisplayYSize/';
|
|
1025
|
+
Prop = Prop + v;
|
|
1026
|
+
this.SigWebSetPropertySync(Prop);
|
|
1027
|
+
};
|
|
1028
|
+
SigWebTablet.GetDisplayYSize = function () {
|
|
1029
|
+
var Prop = 'DisplayYSize';
|
|
1030
|
+
Prop = Prop;
|
|
1031
|
+
return this.SigWebGetProperty(Prop);
|
|
1032
|
+
};
|
|
1033
|
+
SigWebTablet.SetDisplayPenWidth = function (v) {
|
|
1034
|
+
var Prop = 'DisplayPenWidth/';
|
|
1035
|
+
Prop = Prop + v;
|
|
1036
|
+
this.SigWebSetPropertySync(Prop);
|
|
1037
|
+
};
|
|
1038
|
+
SigWebTablet.GetDisplayPenWidth = function () {
|
|
1039
|
+
var Prop = 'DisplayPenWidth';
|
|
1040
|
+
Prop = Prop;
|
|
1041
|
+
return this.SigWebGetProperty(Prop);
|
|
1042
|
+
};
|
|
1043
|
+
SigWebTablet.SetDisplayTimeStamp = function (v) {
|
|
1044
|
+
var Prop = 'DisplayTimeStamp/';
|
|
1045
|
+
Prop = Prop + v;
|
|
1046
|
+
this.SigWebSetPropertySync(Prop);
|
|
1047
|
+
};
|
|
1048
|
+
SigWebTablet.GetDisplayTimeStamp = function () {
|
|
1049
|
+
var Prop = 'DisplayTimeStamp';
|
|
1050
|
+
Prop = Prop;
|
|
1051
|
+
return this.SigWebGetProperty(Prop);
|
|
1052
|
+
};
|
|
1053
|
+
SigWebTablet.SetDisplayTimeStampPosX = function (v) {
|
|
1054
|
+
var Prop = 'DisplayTimeStampPosX/';
|
|
1055
|
+
Prop = Prop + v;
|
|
1056
|
+
this.SigWebSetPropertySync(Prop);
|
|
1057
|
+
};
|
|
1058
|
+
SigWebTablet.GetDisplayTimeStampPosX = function () {
|
|
1059
|
+
var Prop = 'DisplayTimeStampPosX';
|
|
1060
|
+
Prop = Prop;
|
|
1061
|
+
return this.SigWebGetProperty(Prop);
|
|
1062
|
+
};
|
|
1063
|
+
SigWebTablet.SetDisplayTimeStampPosY = function (v) {
|
|
1064
|
+
var Prop = 'DisplayTimeStampPosY/';
|
|
1065
|
+
Prop = Prop + v;
|
|
1066
|
+
this.SigWebSetPropertySync(Prop);
|
|
1067
|
+
};
|
|
1068
|
+
SigWebTablet.GetDisplayTimeStampPosY = function () {
|
|
1069
|
+
var Prop = 'DisplayTimeStampPosY';
|
|
1070
|
+
Prop = Prop;
|
|
1071
|
+
return this.SigWebGetProperty(Prop);
|
|
1072
|
+
};
|
|
1073
|
+
SigWebTablet.SetDisplayTimeStampSize = function (v) {
|
|
1074
|
+
var Prop = 'DisplayTimeStampSize/';
|
|
1075
|
+
Prop = Prop + v;
|
|
1076
|
+
this.SigWebSetPropertySync(Prop);
|
|
1077
|
+
};
|
|
1078
|
+
SigWebTablet.GetDisplayTimeStampSize = function () {
|
|
1079
|
+
var Prop = 'DisplayTimeStampSize';
|
|
1080
|
+
Prop = Prop;
|
|
1081
|
+
return this.SigWebGetProperty(Prop);
|
|
1082
|
+
};
|
|
1083
|
+
SigWebTablet.SetDisplayAnnotate = function (v) {
|
|
1084
|
+
var Prop = 'DisplayAnnotate/';
|
|
1085
|
+
Prop = Prop + v;
|
|
1086
|
+
this.SigWebSetPropertySync(Prop);
|
|
1087
|
+
};
|
|
1088
|
+
SigWebTablet.GetDisplayAnnotate = function () {
|
|
1089
|
+
var Prop = 'DisplayAnnotate';
|
|
1090
|
+
Prop = Prop;
|
|
1091
|
+
return this.SigWebGetProperty(Prop);
|
|
1092
|
+
};
|
|
1093
|
+
SigWebTablet.SetDisplayAnnotatePosX = function (v) {
|
|
1094
|
+
var Prop = 'DisplayAnnotatePosX/';
|
|
1095
|
+
Prop = Prop + v;
|
|
1096
|
+
this.SigWebSetPropertySync(Prop);
|
|
1097
|
+
};
|
|
1098
|
+
SigWebTablet.GetDisplayAnnotatePosX = function () {
|
|
1099
|
+
var Prop = 'DisplayAnnotatePosX';
|
|
1100
|
+
Prop = Prop;
|
|
1101
|
+
return this.SigWebGetProperty(Prop);
|
|
1102
|
+
};
|
|
1103
|
+
SigWebTablet.SetDisplayAnnotatePosY = function (v) {
|
|
1104
|
+
var Prop = 'DisplayAnnotatePosY/';
|
|
1105
|
+
Prop = Prop + v;
|
|
1106
|
+
this.SigWebSetPropertySync(Prop);
|
|
1107
|
+
};
|
|
1108
|
+
SigWebTablet.GetDisplayAnnotatePosY = function () {
|
|
1109
|
+
var Prop = 'DisplayAnnotatePosY';
|
|
1110
|
+
Prop = Prop;
|
|
1111
|
+
return this.SigWebGetProperty(Prop);
|
|
1112
|
+
};
|
|
1113
|
+
SigWebTablet.SetDisplayAnnotateSize = function (v) {
|
|
1114
|
+
var Prop = 'DisplayAnnotateSize/';
|
|
1115
|
+
Prop = Prop + v;
|
|
1116
|
+
this.SigWebSetPropertySync(Prop);
|
|
1117
|
+
};
|
|
1118
|
+
SigWebTablet.GetDisplayAnnotateSize = function () {
|
|
1119
|
+
var Prop = 'DisplayAnnotateSize';
|
|
1120
|
+
Prop = Prop;
|
|
1121
|
+
return this.SigWebGetProperty(Prop);
|
|
1122
|
+
};
|
|
1123
|
+
//
|
|
1124
|
+
// SigPlusNETImage.cs
|
|
1125
|
+
//
|
|
1126
|
+
// function GetSigImageB64( )
|
|
1127
|
+
// {
|
|
1128
|
+
// var xhr2 = new XMLHttpRequest();
|
|
1129
|
+
// xhr2.open("GET", baseUri + "SigImage/1", false );
|
|
1130
|
+
// xhr2.responseType = "blob"
|
|
1131
|
+
// xhr2.send(null);
|
|
1132
|
+
// if (xhr2.readyState == 4 && xhr.status == 200)
|
|
1133
|
+
// {
|
|
1134
|
+
// return window.URL.createObjectURL(xhr2.response);
|
|
1135
|
+
// }
|
|
1136
|
+
// return null;
|
|
1137
|
+
// }
|
|
1138
|
+
SigWebTablet.SetImageXSize = function (v) {
|
|
1139
|
+
var Prop = 'ImageXSize/';
|
|
1140
|
+
Prop = Prop + v;
|
|
1141
|
+
this.SigWebSetPropertySync(Prop);
|
|
1142
|
+
};
|
|
1143
|
+
SigWebTablet.GetImageXSize = function () {
|
|
1144
|
+
var Prop = 'ImageXSize';
|
|
1145
|
+
Prop = Prop;
|
|
1146
|
+
return this.SigWebGetProperty(Prop);
|
|
1147
|
+
};
|
|
1148
|
+
SigWebTablet.SetImageYSize = function (v) {
|
|
1149
|
+
var Prop = 'ImageYSize/';
|
|
1150
|
+
Prop = Prop + v;
|
|
1151
|
+
this.SigWebSetPropertySync(Prop);
|
|
1152
|
+
};
|
|
1153
|
+
SigWebTablet.GetImageYSize = function () {
|
|
1154
|
+
var Prop = 'ImageYSize';
|
|
1155
|
+
Prop = Prop;
|
|
1156
|
+
return this.SigWebGetProperty(Prop);
|
|
1157
|
+
};
|
|
1158
|
+
SigWebTablet.SetImagePenWidth = function (v) {
|
|
1159
|
+
var Prop = 'ImagePenWidth/';
|
|
1160
|
+
Prop = Prop + v;
|
|
1161
|
+
this.SigWebSetPropertySync(Prop);
|
|
1162
|
+
};
|
|
1163
|
+
SigWebTablet.GetImagePenWidth = function () {
|
|
1164
|
+
var Prop = 'ImagePenWidth';
|
|
1165
|
+
Prop = Prop;
|
|
1166
|
+
return this.SigWebGetProperty(Prop);
|
|
1167
|
+
};
|
|
1168
|
+
SigWebTablet.SetImageTimeStamp = function (v) {
|
|
1169
|
+
var Prop = 'ImageTimeStamp/';
|
|
1170
|
+
Prop = Prop + v;
|
|
1171
|
+
this.SigWebSetPropertySync(Prop);
|
|
1172
|
+
};
|
|
1173
|
+
SigWebTablet.GetImageTimeStamp = function () {
|
|
1174
|
+
var Prop = 'ImageTimeStamp';
|
|
1175
|
+
Prop = Prop;
|
|
1176
|
+
return this.SigWebGetProperty(Prop);
|
|
1177
|
+
};
|
|
1178
|
+
SigWebTablet.SetImageTimeStampPosX = function (v) {
|
|
1179
|
+
var Prop = 'ImageTimeStampPosX/';
|
|
1180
|
+
Prop = Prop + v;
|
|
1181
|
+
this.SigWebSetPropertySync(Prop);
|
|
1182
|
+
};
|
|
1183
|
+
SigWebTablet.GetImageTimeStampPosX = function () {
|
|
1184
|
+
var Prop = 'ImageTimeStampPosX';
|
|
1185
|
+
Prop = Prop;
|
|
1186
|
+
return this.SigWebGetProperty(Prop);
|
|
1187
|
+
};
|
|
1188
|
+
SigWebTablet.SetImageTimeStampPosY = function (v) {
|
|
1189
|
+
var Prop = 'ImageTimeStampPosY/';
|
|
1190
|
+
Prop = Prop + v;
|
|
1191
|
+
this.SigWebSetPropertySync(Prop);
|
|
1192
|
+
};
|
|
1193
|
+
SigWebTablet.GetImageTimeStampPosY = function () {
|
|
1194
|
+
var Prop = 'ImageTimeStampPosY';
|
|
1195
|
+
Prop = Prop;
|
|
1196
|
+
return this.SigWebGetProperty(Prop);
|
|
1197
|
+
};
|
|
1198
|
+
SigWebTablet.SetImageTimeStampSize = function (v) {
|
|
1199
|
+
var Prop = 'ImageTimeStampSize/';
|
|
1200
|
+
Prop = Prop + v;
|
|
1201
|
+
this.SigWebSetPropertySync(Prop);
|
|
1202
|
+
};
|
|
1203
|
+
SigWebTablet.GetImageTimeStampSize = function () {
|
|
1204
|
+
var Prop = 'ImageTimeStampSize';
|
|
1205
|
+
Prop = Prop;
|
|
1206
|
+
return this.SigWebGetProperty(Prop);
|
|
1207
|
+
};
|
|
1208
|
+
SigWebTablet.SetImageAnnotate = function (v) {
|
|
1209
|
+
var Prop = 'ImageAnnotate/';
|
|
1210
|
+
Prop = Prop + v;
|
|
1211
|
+
this.SigWebSetPropertySync(Prop);
|
|
1212
|
+
};
|
|
1213
|
+
SigWebTablet.GetImageAnnotate = function () {
|
|
1214
|
+
var Prop = 'ImageAnnotate';
|
|
1215
|
+
Prop = Prop;
|
|
1216
|
+
return this.SigWebGetProperty(Prop);
|
|
1217
|
+
};
|
|
1218
|
+
SigWebTablet.SetImageAnnotatePosX = function (v) {
|
|
1219
|
+
var Prop = 'ImageAnnotatePosX/';
|
|
1220
|
+
Prop = Prop + v;
|
|
1221
|
+
this.SigWebSetPropertySync(Prop);
|
|
1222
|
+
};
|
|
1223
|
+
SigWebTablet.GetImageAnnotatePosX = function () {
|
|
1224
|
+
var Prop = 'ImageAnnotatePosX';
|
|
1225
|
+
Prop = Prop;
|
|
1226
|
+
return this.SigWebGetProperty(Prop);
|
|
1227
|
+
};
|
|
1228
|
+
SigWebTablet.SetImageAnnotatePosY = function (v) {
|
|
1229
|
+
var Prop = 'ImageAnnotatePosY/';
|
|
1230
|
+
Prop = Prop + v;
|
|
1231
|
+
this.SigWebSetPropertySync(Prop);
|
|
1232
|
+
};
|
|
1233
|
+
SigWebTablet.GetImageAnnotatePosY = function () {
|
|
1234
|
+
var Prop = 'ImageAnnotatePosY';
|
|
1235
|
+
Prop = Prop;
|
|
1236
|
+
return this.SigWebGetProperty(Prop);
|
|
1237
|
+
};
|
|
1238
|
+
SigWebTablet.SetImageAnnotateSize = function (v) {
|
|
1239
|
+
var Prop = 'ImageAnnotateSize/';
|
|
1240
|
+
Prop = Prop + v;
|
|
1241
|
+
this.SigWebSetPropertySync(Prop);
|
|
1242
|
+
};
|
|
1243
|
+
SigWebTablet.GetImageAnnotateSize = function () {
|
|
1244
|
+
var Prop = 'ImageAnnotateSize';
|
|
1245
|
+
Prop = Prop;
|
|
1246
|
+
return this.SigWebGetProperty(Prop);
|
|
1247
|
+
};
|
|
1248
|
+
SigWebTablet.SetJustifyX = function (v) {
|
|
1249
|
+
var Prop = 'JustifyX/';
|
|
1250
|
+
Prop = Prop + v;
|
|
1251
|
+
this.SigWebSetPropertySync(Prop);
|
|
1252
|
+
};
|
|
1253
|
+
SigWebTablet.GetJustifyX = function () {
|
|
1254
|
+
var Prop = 'JustifyX';
|
|
1255
|
+
Prop = Prop;
|
|
1256
|
+
return this.SigWebGetProperty(Prop);
|
|
1257
|
+
};
|
|
1258
|
+
SigWebTablet.SetJustifyY = function (v) {
|
|
1259
|
+
var Prop = 'JustifyY/';
|
|
1260
|
+
Prop = Prop + v;
|
|
1261
|
+
this.SigWebSetPropertySync(Prop);
|
|
1262
|
+
};
|
|
1263
|
+
SigWebTablet.GetJustifyY = function () {
|
|
1264
|
+
var Prop = 'JustifyY';
|
|
1265
|
+
Prop = Prop;
|
|
1266
|
+
return this.SigWebGetProperty(Prop);
|
|
1267
|
+
};
|
|
1268
|
+
SigWebTablet.SetJustifyMode = function (v) {
|
|
1269
|
+
var Prop = 'JustifyMode/';
|
|
1270
|
+
Prop = Prop + v;
|
|
1271
|
+
this.SigWebSetPropertySync(Prop);
|
|
1272
|
+
};
|
|
1273
|
+
SigWebTablet.GetJustifyMode = function () {
|
|
1274
|
+
var Prop = 'JustifyMode';
|
|
1275
|
+
Prop = Prop;
|
|
1276
|
+
return this.SigWebGetProperty(Prop);
|
|
1277
|
+
};
|
|
1278
|
+
//
|
|
1279
|
+
// SigPlusNETKeyPad.cs
|
|
1280
|
+
//
|
|
1281
|
+
SigWebTablet.KeyPadAddHotSpot = function (key, coord, xp, yp, xs, ys) {
|
|
1282
|
+
var Prop = 'KeyPadAddHotSpot/';
|
|
1283
|
+
Prop = Prop + key + ',' + coord + ',' + xp + ',' + yp + ',' + xs + ',' + ys;
|
|
1284
|
+
this.SigWebSetPropertySync(Prop);
|
|
1285
|
+
};
|
|
1286
|
+
SigWebTablet.KeyPadMarkHotSpot = function (key, coord, xp, yp, xs, ys) {
|
|
1287
|
+
this.LCDWriteString(0, 2, xp, yp, '16pt sans-serif', 32, '+');
|
|
1288
|
+
this.LCDWriteString(0, 2, xp + xs, yp, '16pt sans-serif', 32, '+');
|
|
1289
|
+
this.LCDWriteString(0, 2, xp, yp + ys, '16pt sans-serif', 32, '+');
|
|
1290
|
+
this.LCDWriteString(0, 2, xp + xs, yp + ys, '16pt sans-serif', 32, '+');
|
|
1291
|
+
};
|
|
1292
|
+
SigWebTablet.KeyPadQueryHotSpot = function (key) {
|
|
1293
|
+
var Prop = 'KeyPadQueryHotSpot/';
|
|
1294
|
+
Prop = Prop + key;
|
|
1295
|
+
return this.SigWebGetProperty(Prop);
|
|
1296
|
+
};
|
|
1297
|
+
SigWebTablet.KeyPadClearHotSpotList = function () {
|
|
1298
|
+
var Prop = 'KeyPadClearHotSpotList';
|
|
1299
|
+
this.SigWebSetPropertySync(Prop);
|
|
1300
|
+
};
|
|
1301
|
+
SigWebTablet.SetSigWindow = function (coords, xp, yp, xs, ys) {
|
|
1302
|
+
var Prop = 'SigWindow/';
|
|
1303
|
+
Prop = Prop + coords + ',' + xp + ',' + yp + ',' + xs + ',' + ys;
|
|
1304
|
+
this.SigWebSetPropertySync(Prop);
|
|
1305
|
+
};
|
|
1306
|
+
SigWebTablet.ClearSigWindow = function (inside) {
|
|
1307
|
+
var Prop = 'ClearSigWindow/';
|
|
1308
|
+
Prop = Prop + inside;
|
|
1309
|
+
this.SigWebSetPropertySync(Prop);
|
|
1310
|
+
};
|
|
1311
|
+
//
|
|
1312
|
+
// SigPlusNETLCD.cs
|
|
1313
|
+
//
|
|
1314
|
+
SigWebTablet.SetLCDCaptureMode = function (v) {
|
|
1315
|
+
var Prop = 'CaptureMode/';
|
|
1316
|
+
Prop = Prop + v;
|
|
1317
|
+
this.SigWebSetPropertySync(Prop);
|
|
1318
|
+
};
|
|
1319
|
+
SigWebTablet.GetLCDCaptureMode = function () {
|
|
1320
|
+
var Prop = 'CaptureMode';
|
|
1321
|
+
Prop = Prop;
|
|
1322
|
+
return this.SigWebGetProperty(Prop);
|
|
1323
|
+
};
|
|
1324
|
+
SigWebTablet.LCDSetWindow = function (xP, yP, xS, yS) {
|
|
1325
|
+
var Prop = 'LCDSetWindow/';
|
|
1326
|
+
Prop = Prop + xP + ',' + yP + ',' + xS + ',' + yS;
|
|
1327
|
+
this.SigWebSetPropertySync(Prop);
|
|
1328
|
+
};
|
|
1329
|
+
SigWebTablet.LCDWriteString = function (dest, mode, x, y, fnt, size, str) {
|
|
1330
|
+
var c = document.createElement('canvas');
|
|
1331
|
+
var cntx = c.getContext('2d');
|
|
1332
|
+
cntx.font = fnt;
|
|
1333
|
+
var txt = str;
|
|
1334
|
+
var xs = Math.round(cntx.measureText(txt).width);
|
|
1335
|
+
var ys = size;
|
|
1336
|
+
c.width = xs;
|
|
1337
|
+
c.height = ys;
|
|
1338
|
+
if (xs == 0) {
|
|
1339
|
+
return;
|
|
1340
|
+
}
|
|
1341
|
+
cntx.font = fnt;
|
|
1342
|
+
cntx.fillStyle = '#FFFFFF';
|
|
1343
|
+
cntx.rect(0, 0, xs, ys);
|
|
1344
|
+
cntx.fill();
|
|
1345
|
+
cntx.fillStyle = '#000000';
|
|
1346
|
+
cntx.textBaseline = 'top';
|
|
1347
|
+
cntx.fillText(txt, 0, 0);
|
|
1348
|
+
cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
|
|
1349
|
+
var Gstr = this.createLcdBitmapFromCanvas(c, x, y, xs, ys);
|
|
1350
|
+
this.LcdWriteImageStream(dest, mode, x, y, xs, ys, Gstr);
|
|
1351
|
+
};
|
|
1352
|
+
SigWebTablet.LCDDrawRectangle = function (dest, mode, x, y, xs, ys, fill) {
|
|
1353
|
+
var c = document.createElement('canvas');
|
|
1354
|
+
var cntx = c.getContext('2d');
|
|
1355
|
+
c.width = xs;
|
|
1356
|
+
c.height = ys;
|
|
1357
|
+
cntx.fillStyle = fill;
|
|
1358
|
+
cntx.rect(0, 0, xs, ys);
|
|
1359
|
+
cntx.fill();
|
|
1360
|
+
cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
|
|
1361
|
+
var Gstr = this.createLcdBitmapFromCanvas(c, x, y, xs, ys);
|
|
1362
|
+
this.LcdWriteImageBlob(dest, mode, x, y, xs, ys, Gstr);
|
|
1363
|
+
};
|
|
1364
|
+
SigWebTablet.LCDDrawButton = function (dest, mode, x, y, xs, ys, strys, fill, fnt, str) {
|
|
1365
|
+
var c = document.createElement('canvas');
|
|
1366
|
+
var cntx = c.getContext('2d');
|
|
1367
|
+
cntx.font = fnt;
|
|
1368
|
+
var txt = str;
|
|
1369
|
+
var sxs = Math.round(cntx.measureText(txt).width);
|
|
1370
|
+
var sys = strys;
|
|
1371
|
+
c.width = xs;
|
|
1372
|
+
c.height = ys;
|
|
1373
|
+
cntx.font = fnt;
|
|
1374
|
+
cntx.fillStyle = fill;
|
|
1375
|
+
cntx.rect(0, 0, xs, ys);
|
|
1376
|
+
cntx.fill();
|
|
1377
|
+
cntx.fillStyle = '#FFFFFF';
|
|
1378
|
+
cntx.textBaseline = 'top';
|
|
1379
|
+
cntx.fillText(txt, (xs - sxs) / 2, (ys - sys) / 2);
|
|
1380
|
+
cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
|
|
1381
|
+
var Gstr = this.createLcdBitmapFromCanvas(c, x, y, xs, ys);
|
|
1382
|
+
this.LcdWriteImageBlob(dest, mode, x, y, xs, ys, Gstr);
|
|
1383
|
+
};
|
|
1384
|
+
SigWebTablet.LCDWriteStringWindow = function (dest, mode, x, y, fnt, xsize, ysize, str) {
|
|
1385
|
+
var c = document.createElement('canvas');
|
|
1386
|
+
var cntx = c.getContext('2d');
|
|
1387
|
+
cntx.font = fnt;
|
|
1388
|
+
var txt = str;
|
|
1389
|
+
var xs = xsize;
|
|
1390
|
+
var ys = ysize;
|
|
1391
|
+
c.width = xs;
|
|
1392
|
+
c.height = ys;
|
|
1393
|
+
cntx.font = fnt;
|
|
1394
|
+
cntx.fillStyle = '#FFFFFF';
|
|
1395
|
+
cntx.rect(0, 0, xs, ys);
|
|
1396
|
+
cntx.fill();
|
|
1397
|
+
cntx.fillStyle = '#000000';
|
|
1398
|
+
cntx.textBaseline = 'top';
|
|
1399
|
+
cntx.fillText(txt, 0, 0);
|
|
1400
|
+
cntx.drawImage(cntx.canvas, 0, 0, xs, ys);
|
|
1401
|
+
var Gstr = this.createLcdBitmapFromCanvas(c, x, y, xs, ys);
|
|
1402
|
+
this.LcdWriteImageBlob(dest, mode, x, y, xs, ys, Gstr);
|
|
1403
|
+
};
|
|
1404
|
+
SigWebTablet.LCDStringWidth = function (fnt, str) {
|
|
1405
|
+
var c = document.createElement('canvas');
|
|
1406
|
+
var cntx = c.getContext('2d');
|
|
1407
|
+
cntx.font = fnt;
|
|
1408
|
+
var txt = str;
|
|
1409
|
+
var xs = Math.round(cntx.measureText(txt).width);
|
|
1410
|
+
return xs;
|
|
1411
|
+
};
|
|
1412
|
+
SigWebTablet.LCDStringHeight = function (fnt, str) {
|
|
1413
|
+
return 16;
|
|
1414
|
+
};
|
|
1415
|
+
SigWebTablet.LcdRefresh = function (Mode, Xp, Yp, Xs, Ys) {
|
|
1416
|
+
var Prop = 'LcdRefresh/';
|
|
1417
|
+
Prop = Prop + Mode + ',' + Xp + ',' + Yp + ',' + Xs + ',' + Ys;
|
|
1418
|
+
this.SigWebSetPropertySync(Prop);
|
|
1419
|
+
};
|
|
1420
|
+
SigWebTablet.LCDSendCmdString = function (CmdStr, ReturnCount, Result, TimeOut) {
|
|
1421
|
+
var Prop = 'LcdSendCmdString/';
|
|
1422
|
+
Prop = Prop + ReturnCount + ',' + TimeOut;
|
|
1423
|
+
Result = this.SigWebSetStreamProperty(Prop, CmdStr);
|
|
1424
|
+
};
|
|
1425
|
+
SigWebTablet.LCDSendCmdData = function (CmdStr, ReturnCount, Result, TimeOut) {
|
|
1426
|
+
var Prop = 'LcdSendCmdData/';
|
|
1427
|
+
Prop = Prop + ReturnCount + ',' + TimeOut;
|
|
1428
|
+
Result = this.SigWebSetStreamProperty(Prop, CmdStr);
|
|
1429
|
+
};
|
|
1430
|
+
// function LCDSendWindowedGraphicCanvas( dest, mode, x, y, canvas )
|
|
1431
|
+
// {
|
|
1432
|
+
// }
|
|
1433
|
+
// function LCDSendWindowedGraphicCanvas( dest, mode, x, y, xs, ys, canvas )
|
|
1434
|
+
// {
|
|
1435
|
+
// var Gstr = this.createLcdBitmapFromCanvas( canvas, 0, 0, xs, ys)
|
|
1436
|
+
// LcdWriteImageStream( dest, mode, x, y, xs, ys, Gstr );
|
|
1437
|
+
// }
|
|
1438
|
+
SigWebTablet.LCDSendWindowedGraphicCanvas = function (dest, mode, x, y, xs, ys, c, xps, yps) {
|
|
1439
|
+
var canvas = document.createElement('canvas');
|
|
1440
|
+
var Gstr = this.createLcdBitmapFromCanvas(canvas, xps, yps, xs, ys);
|
|
1441
|
+
this.LcdWriteImageStream(dest, mode, x, y, xs, ys, Gstr);
|
|
1442
|
+
};
|
|
1443
|
+
SigWebTablet.LCDSendGraphicUrl = function (dest, mode, x, y, url) {
|
|
1444
|
+
this.LcdWriteImage(dest, mode, x, y, url);
|
|
1445
|
+
};
|
|
1446
|
+
// function LCDSendGraphic( Dest, Mode, XPos, YPos, ImageFileName ) {}
|
|
1447
|
+
// function LCDSendGraphicURL( Dest, Mode, XPos, YPos, URL ) {}
|
|
1448
|
+
SigWebTablet.LCDClear = function () {
|
|
1449
|
+
var Prop = 'LcdClear';
|
|
1450
|
+
Prop = Prop;
|
|
1451
|
+
return this.SigWebGetProperty(Prop);
|
|
1452
|
+
};
|
|
1453
|
+
SigWebTablet.LCDSetTabletMap = function (LCDType, LCDXSize, LCDYSize, LCDXStart, LCDYStart, LCDXStop, LCDYStop) { };
|
|
1454
|
+
SigWebTablet.LCDSetPixelDepth = function (v) {
|
|
1455
|
+
var Prop = 'LcdSetPixelDepth/';
|
|
1456
|
+
Prop = Prop + v;
|
|
1457
|
+
this.SigWebSetPropertySync(Prop);
|
|
1458
|
+
};
|
|
1459
|
+
SigWebTablet.LCDGetLCDSize = function () {
|
|
1460
|
+
var Prop = 'LcdGetLcdSize';
|
|
1461
|
+
Prop = Prop;
|
|
1462
|
+
return this.SigWebGetProperty(Prop);
|
|
1463
|
+
};
|
|
1464
|
+
SigWebTablet.LCDGetCompressionMode = function () {
|
|
1465
|
+
var Prop = 'LcdCompressionMode';
|
|
1466
|
+
Prop = Prop;
|
|
1467
|
+
return this.SigWebGetProperty(Prop);
|
|
1468
|
+
};
|
|
1469
|
+
SigWebTablet.LCDGetZCompressionMode = function () {
|
|
1470
|
+
var Prop = 'LcdZCompressionMode';
|
|
1471
|
+
Prop = Prop;
|
|
1472
|
+
return this.SigWebGetProperty(Prop);
|
|
1473
|
+
};
|
|
1474
|
+
//
|
|
1475
|
+
// SigPlusNETLCD.cs
|
|
1476
|
+
//
|
|
1477
|
+
SigWebTablet.SetRealTabletState = function (v) {
|
|
1478
|
+
var Prop = 'TabletState/';
|
|
1479
|
+
Prop = Prop + v;
|
|
1480
|
+
this.SigWebSetPropertySync(Prop);
|
|
1481
|
+
};
|
|
1482
|
+
SigWebTablet.GetTabletState = function () {
|
|
1483
|
+
var Prop = 'TabletState';
|
|
1484
|
+
Prop = Prop;
|
|
1485
|
+
return this.SigWebGetProperty(Prop);
|
|
1486
|
+
};
|
|
1487
|
+
SigWebTablet.SetTabletLogicalXSize = function (v) {
|
|
1488
|
+
var Prop = 'TabletLogicalXSize/';
|
|
1489
|
+
Prop = Prop + v;
|
|
1490
|
+
this.SigWebSetPropertySync(Prop);
|
|
1491
|
+
};
|
|
1492
|
+
SigWebTablet.GetTabletLogicalXSize = function () {
|
|
1493
|
+
var Prop = 'TabletLogicalXSize';
|
|
1494
|
+
Prop = Prop;
|
|
1495
|
+
return this.SigWebGetProperty(Prop);
|
|
1496
|
+
};
|
|
1497
|
+
SigWebTablet.GetTabletLogicalYSize = function () {
|
|
1498
|
+
var Prop = 'TabletLogicalYSize';
|
|
1499
|
+
Prop = Prop;
|
|
1500
|
+
return this.SigWebGetProperty(Prop);
|
|
1501
|
+
};
|
|
1502
|
+
SigWebTablet.SetTabletLogicalYSize = function (v) {
|
|
1503
|
+
var Prop = 'TabletLogicalYSize/';
|
|
1504
|
+
Prop = Prop + v;
|
|
1505
|
+
this.SigWebSetPropertySync(Prop);
|
|
1506
|
+
};
|
|
1507
|
+
SigWebTablet.SetTabletXStart = function (v) {
|
|
1508
|
+
var Prop = 'TabletXStart/';
|
|
1509
|
+
Prop = Prop + v;
|
|
1510
|
+
this.SigWebSetPropertySync(Prop);
|
|
1511
|
+
};
|
|
1512
|
+
SigWebTablet.GetTabletXStart = function () {
|
|
1513
|
+
var Prop = 'TabletXStart';
|
|
1514
|
+
Prop = Prop;
|
|
1515
|
+
return this.SigWebGetProperty(Prop);
|
|
1516
|
+
};
|
|
1517
|
+
SigWebTablet.SetTabletYStart = function (v) {
|
|
1518
|
+
var Prop = 'TabletYStart/';
|
|
1519
|
+
Prop = Prop + v;
|
|
1520
|
+
this.SigWebSetPropertySync(Prop);
|
|
1521
|
+
};
|
|
1522
|
+
SigWebTablet.GetTabletYStart = function () {
|
|
1523
|
+
var Prop = 'TabletYStart';
|
|
1524
|
+
Prop = Prop;
|
|
1525
|
+
return this.SigWebGetProperty(Prop);
|
|
1526
|
+
};
|
|
1527
|
+
SigWebTablet.SetTabletXStop = function (v) {
|
|
1528
|
+
var Prop = 'TabletXStop/';
|
|
1529
|
+
Prop = Prop + v;
|
|
1530
|
+
this.SigWebSetPropertySync(Prop);
|
|
1531
|
+
};
|
|
1532
|
+
SigWebTablet.GetTabletXStop = function () {
|
|
1533
|
+
var Prop = 'TabletXStop';
|
|
1534
|
+
Prop = Prop;
|
|
1535
|
+
return this.SigWebGetProperty(Prop);
|
|
1536
|
+
};
|
|
1537
|
+
SigWebTablet.SetTabletYStop = function (v) {
|
|
1538
|
+
var Prop = 'TabletYStop/';
|
|
1539
|
+
Prop = Prop + v;
|
|
1540
|
+
this.SigWebSetPropertySync(Prop);
|
|
1541
|
+
};
|
|
1542
|
+
SigWebTablet.GetTabletYStop = function () {
|
|
1543
|
+
var Prop = 'TabletYStop';
|
|
1544
|
+
Prop = Prop;
|
|
1545
|
+
return this.SigWebGetProperty(Prop);
|
|
1546
|
+
};
|
|
1547
|
+
SigWebTablet.SetTabletFilterPoints = function (v) {
|
|
1548
|
+
var Prop = 'TabletFilterPoints/';
|
|
1549
|
+
Prop = Prop + v;
|
|
1550
|
+
this.SigWebSetPropertySync(Prop);
|
|
1551
|
+
};
|
|
1552
|
+
SigWebTablet.GetTabletFilterPoints = function () {
|
|
1553
|
+
var Prop = 'TabletFilterPoints';
|
|
1554
|
+
Prop = Prop;
|
|
1555
|
+
return this.SigWebGetProperty(Prop);
|
|
1556
|
+
};
|
|
1557
|
+
SigWebTablet.SetTabletTimingAdvance = function (v) {
|
|
1558
|
+
var Prop = 'TabletTimingAdvance/';
|
|
1559
|
+
Prop = Prop + v;
|
|
1560
|
+
this.SigWebSetPropertySync(Prop);
|
|
1561
|
+
};
|
|
1562
|
+
SigWebTablet.GetTabletTimingAdvance = function () {
|
|
1563
|
+
var Prop = 'TabletTimingAdvance';
|
|
1564
|
+
Prop = Prop;
|
|
1565
|
+
return this.SigWebGetProperty(Prop);
|
|
1566
|
+
};
|
|
1567
|
+
SigWebTablet.SetTabletComPort = function (v) {
|
|
1568
|
+
var Prop = 'TabletComPort/';
|
|
1569
|
+
Prop = Prop + v;
|
|
1570
|
+
this.SigWebSetPropertySync(Prop);
|
|
1571
|
+
};
|
|
1572
|
+
SigWebTablet.GetTabletComPort = function () {
|
|
1573
|
+
var Prop = 'TabletComPort';
|
|
1574
|
+
Prop = Prop;
|
|
1575
|
+
return this.SigWebGetProperty(Prop);
|
|
1576
|
+
};
|
|
1577
|
+
SigWebTablet.SetTabletBaudRate = function (v) {
|
|
1578
|
+
var Prop = 'TabletBaudRate/';
|
|
1579
|
+
Prop = Prop + v;
|
|
1580
|
+
this.SigWebSetPropertySync(Prop);
|
|
1581
|
+
};
|
|
1582
|
+
SigWebTablet.GetTabletBaudRate = function () {
|
|
1583
|
+
var Prop = 'TabletBaudRate';
|
|
1584
|
+
Prop = Prop;
|
|
1585
|
+
return this.SigWebGetProperty(Prop);
|
|
1586
|
+
};
|
|
1587
|
+
SigWebTablet.SetTabletRotation = function (v) {
|
|
1588
|
+
var Prop = 'TabletRotation/';
|
|
1589
|
+
Prop = Prop + v;
|
|
1590
|
+
this.SigWebSetPropertySync(Prop);
|
|
1591
|
+
};
|
|
1592
|
+
SigWebTablet.GetTabletRotation = function () {
|
|
1593
|
+
var Prop = 'TabletRotation';
|
|
1594
|
+
Prop = Prop;
|
|
1595
|
+
return this.SigWebGetProperty(Prop);
|
|
1596
|
+
};
|
|
1597
|
+
SigWebTablet.SetTabletType = function (v) {
|
|
1598
|
+
var Prop = 'TabletType/';
|
|
1599
|
+
Prop = Prop + v;
|
|
1600
|
+
this.SigWebSetPropertySync(Prop);
|
|
1601
|
+
};
|
|
1602
|
+
SigWebTablet.GetTabletType = function () {
|
|
1603
|
+
var Prop = 'TabletType';
|
|
1604
|
+
Prop = Prop;
|
|
1605
|
+
return this.SigWebGetProperty(Prop);
|
|
1606
|
+
};
|
|
1607
|
+
SigWebTablet.SetServerTabletType = function (v) {
|
|
1608
|
+
var Prop = 'ServerTabletType/';
|
|
1609
|
+
Prop = Prop + v;
|
|
1610
|
+
this.SigWebSetPropertySync(Prop);
|
|
1611
|
+
};
|
|
1612
|
+
SigWebTablet.GetServerTabletType = function () {
|
|
1613
|
+
var Prop = 'ServerTabletType';
|
|
1614
|
+
Prop = Prop;
|
|
1615
|
+
return this.SigWebGetProperty(Prop);
|
|
1616
|
+
};
|
|
1617
|
+
SigWebTablet.SetTabletComTest = function (v) {
|
|
1618
|
+
var Prop = 'TabletComTest/';
|
|
1619
|
+
Prop = Prop + v;
|
|
1620
|
+
this.SigWebSetPropertySync(Prop);
|
|
1621
|
+
};
|
|
1622
|
+
SigWebTablet.GetTabletComTest = function () {
|
|
1623
|
+
var Prop = 'TabletComTest';
|
|
1624
|
+
Prop = Prop;
|
|
1625
|
+
return this.SigWebGetProperty(Prop);
|
|
1626
|
+
};
|
|
1627
|
+
SigWebTablet.SetTabletResolution = function (v) {
|
|
1628
|
+
var Prop = 'TabletResolution/';
|
|
1629
|
+
Prop = Prop + v;
|
|
1630
|
+
this.SigWebSetPropertySync(Prop);
|
|
1631
|
+
};
|
|
1632
|
+
SigWebTablet.GetTabletResolution = function () {
|
|
1633
|
+
var Prop = 'TabletResolution';
|
|
1634
|
+
Prop = Prop;
|
|
1635
|
+
return this.SigWebGetProperty(Prop);
|
|
1636
|
+
};
|
|
1637
|
+
SigWebTablet.TabletConnectQuery = function () {
|
|
1638
|
+
var Prop = 'TabletConnectQuery';
|
|
1639
|
+
Prop = Prop;
|
|
1640
|
+
return this.SigWebGetProperty(Prop);
|
|
1641
|
+
};
|
|
1642
|
+
SigWebTablet.TabletModelNumber = function () {
|
|
1643
|
+
var Prop = 'TabletModelNumber';
|
|
1644
|
+
Prop = Prop;
|
|
1645
|
+
return this.SigWebGetProperty(Prop);
|
|
1646
|
+
};
|
|
1647
|
+
SigWebTablet.TabletSerialNumber = function () {
|
|
1648
|
+
var Prop = 'TabletSerialNumber';
|
|
1649
|
+
Prop = Prop;
|
|
1650
|
+
return this.SigWebGetProperty(Prop);
|
|
1651
|
+
};
|
|
1652
|
+
SigWebTablet.SetTabletPortPath = function (v) {
|
|
1653
|
+
var Prop = 'TabletPortPath/';
|
|
1654
|
+
Prop = Prop + v;
|
|
1655
|
+
this.SigWebSetPropertySync(Prop);
|
|
1656
|
+
};
|
|
1657
|
+
SigWebTablet.SetTabletLocalIniFilePath = function (v) {
|
|
1658
|
+
var Prop = 'TabletLocalIniFilePath/';
|
|
1659
|
+
Prop = Prop + v;
|
|
1660
|
+
this.SigWebSetPropertySync(Prop);
|
|
1661
|
+
};
|
|
1662
|
+
SigWebTablet.SetTabletModel = function (v) {
|
|
1663
|
+
var Prop = 'TabletModel/';
|
|
1664
|
+
Prop = Prop + v;
|
|
1665
|
+
this.SigWebSetPropertySync(Prop);
|
|
1666
|
+
};
|
|
1667
|
+
SigWebTablet.SetSerialPortCloseDelay = function (v) {
|
|
1668
|
+
var Prop = 'SerialPortCloseDelay/';
|
|
1669
|
+
Prop = Prop + v;
|
|
1670
|
+
this.SigWebSetPropertySync(Prop);
|
|
1671
|
+
};
|
|
1672
|
+
SigWebTablet.GetSerialPortCloseDelay = function () {
|
|
1673
|
+
var Prop = 'SerialPortCloseDelay';
|
|
1674
|
+
Prop = Prop;
|
|
1675
|
+
return this.SigWebGetProperty(Prop);
|
|
1676
|
+
};
|
|
1677
|
+
SigWebTablet.EnableTabletEncryption = function () {
|
|
1678
|
+
var Prop = 'EnableTabletEncryption';
|
|
1679
|
+
Prop = Prop;
|
|
1680
|
+
this.SigWebSetPropertySync(Prop);
|
|
1681
|
+
};
|
|
1682
|
+
SigWebTablet.SetTabletEncryptionMode = function (hmode, tmode) {
|
|
1683
|
+
var Prop = 'TabletEncryptionMode/';
|
|
1684
|
+
Prop = Prop + hmode + ',' + tmode;
|
|
1685
|
+
this.SigWebSetPropertySync(Prop);
|
|
1686
|
+
};
|
|
1687
|
+
SigWebTablet.SetMaxLogFileSize = function (v) {
|
|
1688
|
+
var Prop = 'MaxLogFileSize/';
|
|
1689
|
+
Prop = Prop + v;
|
|
1690
|
+
this.SigWebSetPropertySync(Prop);
|
|
1691
|
+
};
|
|
1692
|
+
SigWebTablet.GetSigSockServerPath = function () {
|
|
1693
|
+
var Prop = 'SigSockServerPath';
|
|
1694
|
+
Prop = Prop;
|
|
1695
|
+
return this.SigWebGetProperty(Prop);
|
|
1696
|
+
};
|
|
1697
|
+
SigWebTablet.GetSigSockClientName = function () {
|
|
1698
|
+
var Prop = 'SigSockClientName';
|
|
1699
|
+
Prop = Prop;
|
|
1700
|
+
return this.SigWebGetProperty(Prop);
|
|
1701
|
+
};
|
|
1702
|
+
SigWebTablet.GetSigSockPortNumber = function () {
|
|
1703
|
+
var Prop = 'SigSockPortNumber';
|
|
1704
|
+
Prop = Prop;
|
|
1705
|
+
return this.SigWebGetProperty(Prop);
|
|
1706
|
+
};
|
|
1707
|
+
SigWebTablet.SetSigSockServerPath = function (v) {
|
|
1708
|
+
var Prop = 'SigSockServerPath/';
|
|
1709
|
+
Prop = Prop + v;
|
|
1710
|
+
this.SigWebSetPropertySync(Prop);
|
|
1711
|
+
};
|
|
1712
|
+
SigWebTablet.SetSigSockClientName = function (v) {
|
|
1713
|
+
var Prop = 'SigSockClientName/';
|
|
1714
|
+
Prop = Prop + v;
|
|
1715
|
+
this.SigWebSetPropertySync(Prop);
|
|
1716
|
+
};
|
|
1717
|
+
SigWebTablet.SetPortNumber = function (v) {
|
|
1718
|
+
var Prop = 'PortNumber/';
|
|
1719
|
+
Prop = Prop + v;
|
|
1720
|
+
this.SigWebSetPropertySync(Prop);
|
|
1721
|
+
};
|
|
1722
|
+
SigWebTablet.SetSigSockPortNumber = function (v) {
|
|
1723
|
+
var Prop = 'SigSockPortNumber/';
|
|
1724
|
+
Prop = Prop + v;
|
|
1725
|
+
this.SigWebSetPropertySync(Prop);
|
|
1726
|
+
};
|
|
1727
|
+
SigWebTablet.GetFirmwareRevision = function () {
|
|
1728
|
+
var Prop = 'FirmwareRevision';
|
|
1729
|
+
Prop = Prop;
|
|
1730
|
+
return this.SigWebGetProperty(Prop);
|
|
1731
|
+
};
|
|
1732
|
+
SigWebTablet.SetTabletData = function (sigStr) {
|
|
1733
|
+
var Prop = 'TabletData';
|
|
1734
|
+
Prop = Prop;
|
|
1735
|
+
this.SigWebSetStreamProperty(Prop, sigStr);
|
|
1736
|
+
};
|
|
1737
|
+
SigWebTablet.GetTabletData = function () {
|
|
1738
|
+
var Prop = 'TabletData';
|
|
1739
|
+
Prop = Prop;
|
|
1740
|
+
var Str = this.SigWebGetProperty(Prop);
|
|
1741
|
+
return Str.slice(1, Str.length - 1);
|
|
1742
|
+
};
|
|
1743
|
+
SigWebTablet.OpenTablet = function (v) {
|
|
1744
|
+
var Prop = 'OpenTablet/';
|
|
1745
|
+
Prop = Prop + v;
|
|
1746
|
+
this.SigWebSetPropertySync(Prop);
|
|
1747
|
+
};
|
|
1748
|
+
SigWebTablet.CloseTablet = function () {
|
|
1749
|
+
var Prop = 'CloseTablet';
|
|
1750
|
+
Prop = Prop;
|
|
1751
|
+
this.SigWebSetProperty(Prop);
|
|
1752
|
+
};
|
|
1753
|
+
SigWebTablet.ResetParameters = function () {
|
|
1754
|
+
var Prop = 'ResetParameters';
|
|
1755
|
+
Prop = Prop;
|
|
1756
|
+
this.SigWebSetPropertySync(Prop);
|
|
1757
|
+
};
|
|
1758
|
+
SigWebTablet.testRawData = function () {
|
|
1759
|
+
this.OpenTablet(1);
|
|
1760
|
+
var Str1 = this.GetTabletData();
|
|
1761
|
+
this.CloseTablet();
|
|
1762
|
+
};
|
|
1763
|
+
SigWebTablet.SetTabletState = function (v, ctx, tv) {
|
|
1764
|
+
var _this = this;
|
|
1765
|
+
var delay;
|
|
1766
|
+
if (tv) {
|
|
1767
|
+
delay = tv;
|
|
1768
|
+
}
|
|
1769
|
+
else {
|
|
1770
|
+
delay = 100;
|
|
1771
|
+
}
|
|
1772
|
+
if (this.GetTabletState() != v) {
|
|
1773
|
+
if (v == 1) {
|
|
1774
|
+
if (ctx) {
|
|
1775
|
+
var can = ctx.canvas;
|
|
1776
|
+
this.SetDisplayXSize(can.width);
|
|
1777
|
+
this.SetDisplayYSize(can.height);
|
|
1778
|
+
this.SigWebSetDisplayTarget(ctx);
|
|
1779
|
+
}
|
|
1780
|
+
this.SetRealTabletState(v);
|
|
1781
|
+
var data = this.GetTabletState();
|
|
1782
|
+
var dataResult = data == '' || data == null ? 0 : Number(data);
|
|
1783
|
+
var tmr = null;
|
|
1784
|
+
if (ctx && dataResult != 0) {
|
|
1785
|
+
tmr = setInterval(function () { return _this.SigWebRefresh(); }, delay);
|
|
1786
|
+
}
|
|
1787
|
+
else {
|
|
1788
|
+
tmr = null;
|
|
1789
|
+
}
|
|
1790
|
+
return tmr;
|
|
1791
|
+
}
|
|
1792
|
+
else {
|
|
1793
|
+
if (ctx) {
|
|
1794
|
+
clearInterval(ctx);
|
|
1795
|
+
}
|
|
1796
|
+
this.SigWebSetDisplayTarget(null);
|
|
1797
|
+
this.SetRealTabletState(v);
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
return null;
|
|
1801
|
+
};
|
|
1802
|
+
return SigWebTablet;
|
|
1803
|
+
}());
|
|
1804
|
+
SigWebTablet.baseUri = SigWebTablet.makeUri();
|
|
1805
|
+
SigWebTablet.Count = false;
|
|
1806
|
+
SigWebTablet.SigWebFontThreshold = 155;
|
|
1807
|
+
SigWebTablet.NumPointsLastTime = 0;
|
|
1808
|
+
|
|
1809
|
+
var OutputMessage = /** @class */ (function () {
|
|
1810
|
+
function OutputMessage() {
|
|
1811
|
+
}
|
|
1812
|
+
return OutputMessage;
|
|
1813
|
+
}());
|
|
1814
|
+
var LibeyNgSignatureComponent = /** @class */ (function () {
|
|
1815
|
+
function LibeyNgSignatureComponent() {
|
|
1816
|
+
this.OutputSignature = new i0.EventEmitter();
|
|
1817
|
+
this.DeviceType = 'mousepad';
|
|
1818
|
+
this._destroy$ = new rxjs.Subject();
|
|
1819
|
+
this.widthView = 500;
|
|
1820
|
+
this.heightView = 200;
|
|
1821
|
+
this.widthRender = 500;
|
|
1822
|
+
this.heightRender = 200;
|
|
1823
|
+
this.signaturePadOptions = {
|
|
1824
|
+
minWidth: 5,
|
|
1825
|
+
canvasWidth: this.widthView,
|
|
1826
|
+
canvasHeight: this.heightView,
|
|
1827
|
+
backgroundColor: 'rgba(242,242,242,1)',
|
|
1828
|
+
};
|
|
1829
|
+
}
|
|
1830
|
+
LibeyNgSignatureComponent.prototype.ngAfterViewInit = function () {
|
|
1831
|
+
this.InitDevice();
|
|
1832
|
+
};
|
|
1833
|
+
LibeyNgSignatureComponent.prototype.ngOnDestroy = function () {
|
|
1834
|
+
this.closingSigWeb();
|
|
1835
|
+
this._destroy$.next(true);
|
|
1836
|
+
};
|
|
1837
|
+
LibeyNgSignatureComponent.prototype.ChangeDevice = function () {
|
|
1838
|
+
var _this = this;
|
|
1839
|
+
setTimeout(function () {
|
|
1840
|
+
_this.InitDevice();
|
|
1841
|
+
}, 200);
|
|
1842
|
+
};
|
|
1843
|
+
LibeyNgSignatureComponent.prototype.InitDevice = function () {
|
|
1844
|
+
if (this.DeviceType == 'pinpad') {
|
|
1845
|
+
this.cnvContext = (this.canvas.nativeElement).getContext('2d');
|
|
1846
|
+
}
|
|
1847
|
+
if (this.DeviceType == 'mousepad') {
|
|
1848
|
+
this.signaturePad.set('minWidth', 5);
|
|
1849
|
+
this.signaturePad.clear();
|
|
1850
|
+
}
|
|
1851
|
+
};
|
|
1852
|
+
LibeyNgSignatureComponent.prototype.closingSigWeb = function () {
|
|
1853
|
+
SigWebTablet.ClearTablet();
|
|
1854
|
+
SigWebTablet.SetTabletState(0, this.tmr, null);
|
|
1855
|
+
};
|
|
1856
|
+
LibeyNgSignatureComponent.prototype.onSign = function () {
|
|
1857
|
+
console.log('onSign Clicked!');
|
|
1858
|
+
SigWebTablet.SetDisplayXSize(this.widthRender);
|
|
1859
|
+
SigWebTablet.SetDisplayYSize(this.heightRender);
|
|
1860
|
+
SigWebTablet.SetTabletState(0, this.tmr, null);
|
|
1861
|
+
SigWebTablet.SetJustifyMode(0);
|
|
1862
|
+
SigWebTablet.ClearTablet();
|
|
1863
|
+
if (this.tmr == null) {
|
|
1864
|
+
this.tmr = SigWebTablet.SetTabletState(1, this.cnvContext, 50);
|
|
1865
|
+
}
|
|
1866
|
+
else {
|
|
1867
|
+
SigWebTablet.SetTabletState(0, this.tmr, null);
|
|
1868
|
+
this.tmr = null;
|
|
1869
|
+
this.tmr = SigWebTablet.SetTabletState(1, this.cnvContext, 50);
|
|
1870
|
+
}
|
|
1871
|
+
};
|
|
1872
|
+
LibeyNgSignatureComponent.prototype.onClear = function () {
|
|
1873
|
+
if (this.DeviceType == 'pinpad') {
|
|
1874
|
+
SigWebTablet.ClearTablet();
|
|
1875
|
+
if (this.cnvContext) {
|
|
1876
|
+
this.cnvContext.clearRect(0, 0, this.canvas.nativeElement.width, this.canvas.nativeElement.height);
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
if (this.DeviceType == 'mousepad') {
|
|
1880
|
+
this.signaturePad.clear();
|
|
1881
|
+
}
|
|
1882
|
+
};
|
|
1883
|
+
LibeyNgSignatureComponent.prototype.onDone = function () {
|
|
1884
|
+
var _this = this;
|
|
1885
|
+
if (this.DeviceType == 'pinpad') {
|
|
1886
|
+
// if (Number(SigWebTablet.NumberOfTabletPoints()) === 0) {
|
|
1887
|
+
// alert('Por favor firme antes de continuar');
|
|
1888
|
+
// } else {
|
|
1889
|
+
SigWebTablet.SetTabletState(0, this.tmr, null);
|
|
1890
|
+
SigWebTablet.SetSigCompressionMode(1);
|
|
1891
|
+
var result = new OutputMessage();
|
|
1892
|
+
result.bioSigData = SigWebTablet.GetSigString();
|
|
1893
|
+
result.sigImgData = SigWebTablet.GetSigString();
|
|
1894
|
+
SigWebTablet.SetImageXSize(this.widthRender);
|
|
1895
|
+
SigWebTablet.SetImageYSize(this.heightRender);
|
|
1896
|
+
SigWebTablet.SetImagePenWidth(5);
|
|
1897
|
+
SigWebTablet.GetSigImageB64(function (base64) {
|
|
1898
|
+
result.sigString = "data:image/png;base64," + base64;
|
|
1899
|
+
_this.OutputSignature.emit(result);
|
|
1900
|
+
});
|
|
1901
|
+
// }
|
|
1902
|
+
}
|
|
1903
|
+
if (this.DeviceType == 'mousepad') {
|
|
1904
|
+
var result = new OutputMessage();
|
|
1905
|
+
result.sigString = this.signaturePad.toDataURL();
|
|
1906
|
+
this.OutputSignature.emit(result);
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1909
|
+
LibeyNgSignatureComponent.prototype.drawComplete = function () { };
|
|
1910
|
+
LibeyNgSignatureComponent.prototype.drawStart = function () { };
|
|
1911
|
+
return LibeyNgSignatureComponent;
|
|
1912
|
+
}());
|
|
1913
|
+
LibeyNgSignatureComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgSignatureComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1914
|
+
LibeyNgSignatureComponent.ɵcmp = i0__namespace.ɵɵ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: i1.SignaturePad, descendants: true }], ngImport: i0__namespace, 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__namespace$1.SignaturePad, selector: "signature-pad", inputs: ["options"], outputs: ["onBeginEvent", "onEndEvent"] }, { type: i2__namespace.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__namespace.ɵr, selector: "ng-option", inputs: ["disabled", "value"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1915
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgSignatureComponent, decorators: [{
|
|
1916
|
+
type: i0.Component,
|
|
1917
|
+
args: [{
|
|
1918
|
+
selector: 'lib-libey-ng-signature',
|
|
1919
|
+
templateUrl: './libey-ng-signature.component.html',
|
|
1920
|
+
styleUrls: ['./libey-ng-signature.component.css'],
|
|
1921
|
+
}]
|
|
1922
|
+
}], ctorParameters: function () { return []; }, propDecorators: { OutputSignature: [{
|
|
1923
|
+
type: i0.Output
|
|
1924
|
+
}], DeviceType: [{
|
|
1925
|
+
type: i0.Input
|
|
1926
|
+
}], canvas: [{
|
|
1927
|
+
type: i0.ViewChild,
|
|
1928
|
+
args: ['sigImg', { static: false }]
|
|
1929
|
+
}], signaturePad: [{
|
|
1930
|
+
type: i0.ViewChild,
|
|
1931
|
+
args: [i1.SignaturePad]
|
|
1932
|
+
}] } });
|
|
1933
|
+
|
|
1934
|
+
var LibeyNgSignatureModule = /** @class */ (function () {
|
|
1935
|
+
function LibeyNgSignatureModule() {
|
|
1936
|
+
}
|
|
1937
|
+
return LibeyNgSignatureModule;
|
|
1938
|
+
}());
|
|
1939
|
+
LibeyNgSignatureModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgSignatureModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1940
|
+
LibeyNgSignatureModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgSignatureModule, declarations: [LibeyNgSignatureComponent], imports: [i4.FormsModule,
|
|
1941
|
+
i4.ReactiveFormsModule,
|
|
1942
|
+
i1.SignaturePadModule,
|
|
1943
|
+
i1$1.CommonModule,
|
|
1944
|
+
i2.NgSelectModule,
|
|
1945
|
+
ngBootstrap.NgbModule], exports: [LibeyNgSignatureComponent,
|
|
1946
|
+
i1.SignaturePadModule,
|
|
1947
|
+
i2.NgSelectModule,
|
|
1948
|
+
ngBootstrap.NgbModule] });
|
|
1949
|
+
LibeyNgSignatureModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgSignatureModule, imports: [[
|
|
1950
|
+
i4.FormsModule,
|
|
1951
|
+
i4.ReactiveFormsModule,
|
|
1952
|
+
i1.SignaturePadModule,
|
|
1953
|
+
i1$1.CommonModule,
|
|
1954
|
+
i2.NgSelectModule,
|
|
1955
|
+
ngBootstrap.NgbModule
|
|
1956
|
+
], i1.SignaturePadModule,
|
|
1957
|
+
i2.NgSelectModule,
|
|
1958
|
+
ngBootstrap.NgbModule] });
|
|
1959
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgSignatureModule, decorators: [{
|
|
1960
|
+
type: i0.NgModule,
|
|
1961
|
+
args: [{
|
|
1962
|
+
declarations: [
|
|
1963
|
+
LibeyNgSignatureComponent
|
|
1964
|
+
],
|
|
1965
|
+
imports: [
|
|
1966
|
+
i4.FormsModule,
|
|
1967
|
+
i4.ReactiveFormsModule,
|
|
1968
|
+
i1.SignaturePadModule,
|
|
1969
|
+
i1$1.CommonModule,
|
|
1970
|
+
i2.NgSelectModule,
|
|
1971
|
+
ngBootstrap.NgbModule
|
|
1972
|
+
],
|
|
1973
|
+
exports: [
|
|
1974
|
+
LibeyNgSignatureComponent,
|
|
1975
|
+
i1.SignaturePadModule,
|
|
1976
|
+
i2.NgSelectModule,
|
|
1977
|
+
ngBootstrap.NgbModule
|
|
1978
|
+
]
|
|
1979
|
+
}]
|
|
1980
|
+
}] });
|
|
1981
|
+
|
|
371
1982
|
var LibeyNgComponentLibraryModule = /** @class */ (function () {
|
|
372
1983
|
function LibeyNgComponentLibraryModule() {
|
|
373
1984
|
}
|
|
374
1985
|
return LibeyNgComponentLibraryModule;
|
|
375
1986
|
}());
|
|
376
1987
|
LibeyNgComponentLibraryModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgComponentLibraryModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
377
|
-
LibeyNgComponentLibraryModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgComponentLibraryModule, imports: [i1.CommonModule,
|
|
378
|
-
|
|
379
|
-
LibeyNgTableModule
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
1988
|
+
LibeyNgComponentLibraryModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgComponentLibraryModule, imports: [i1$1.CommonModule,
|
|
1989
|
+
i4.FormsModule,
|
|
1990
|
+
LibeyNgTableModule,
|
|
1991
|
+
LibeyNgSignatureModule,
|
|
1992
|
+
i1.SignaturePadModule], exports: [LibeyNgTableModule,
|
|
1993
|
+
LibeyNgSignatureModule,
|
|
1994
|
+
i1.SignaturePadModule] });
|
|
1995
|
+
LibeyNgComponentLibraryModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgComponentLibraryModule, providers: [i1$1.DatePipe], imports: [[
|
|
1996
|
+
i1$1.CommonModule,
|
|
1997
|
+
i4.FormsModule,
|
|
1998
|
+
LibeyNgTableModule,
|
|
1999
|
+
LibeyNgSignatureModule,
|
|
2000
|
+
i1.SignaturePadModule
|
|
2001
|
+
], LibeyNgTableModule,
|
|
2002
|
+
LibeyNgSignatureModule,
|
|
2003
|
+
i1.SignaturePadModule] });
|
|
385
2004
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LibeyNgComponentLibraryModule, decorators: [{
|
|
386
2005
|
type: i0.NgModule,
|
|
387
2006
|
args: [{
|
|
388
2007
|
declarations: [],
|
|
389
2008
|
imports: [
|
|
390
|
-
i1.CommonModule,
|
|
391
|
-
|
|
392
|
-
LibeyNgTableModule
|
|
2009
|
+
i1$1.CommonModule,
|
|
2010
|
+
i4.FormsModule,
|
|
2011
|
+
LibeyNgTableModule,
|
|
2012
|
+
LibeyNgSignatureModule,
|
|
2013
|
+
i1.SignaturePadModule
|
|
2014
|
+
],
|
|
2015
|
+
exports: [
|
|
2016
|
+
LibeyNgTableModule,
|
|
2017
|
+
LibeyNgSignatureModule,
|
|
2018
|
+
i1.SignaturePadModule
|
|
393
2019
|
],
|
|
394
|
-
|
|
395
|
-
providers: [i1.DatePipe]
|
|
2020
|
+
providers: [i1$1.DatePipe]
|
|
396
2021
|
}]
|
|
397
2022
|
}] });
|
|
398
2023
|
|
|
@@ -404,12 +2029,37 @@
|
|
|
404
2029
|
* Generated bundle index. Do not edit.
|
|
405
2030
|
*/
|
|
406
2031
|
|
|
2032
|
+
Object.defineProperty(exports, 'SignaturePad', {
|
|
2033
|
+
enumerable: true,
|
|
2034
|
+
get: function () { return i1.SignaturePad; }
|
|
2035
|
+
});
|
|
2036
|
+
Object.defineProperty(exports, 'SignaturePadModule', {
|
|
2037
|
+
enumerable: true,
|
|
2038
|
+
get: function () { return i1.SignaturePadModule; }
|
|
2039
|
+
});
|
|
2040
|
+
Object.defineProperty(exports, 'NgSelectModule', {
|
|
2041
|
+
enumerable: true,
|
|
2042
|
+
get: function () { return i2.NgSelectModule; }
|
|
2043
|
+
});
|
|
2044
|
+
Object.defineProperty(exports, 'NgbModule', {
|
|
2045
|
+
enumerable: true,
|
|
2046
|
+
get: function () { return ngBootstrap.NgbModule; }
|
|
2047
|
+
});
|
|
407
2048
|
exports.LibeyColumnDirective = LibeyColumnDirective;
|
|
408
2049
|
exports.LibeyNgComponentLibraryComponent = LibeyNgComponentLibraryComponent;
|
|
409
2050
|
exports.LibeyNgComponentLibraryModule = LibeyNgComponentLibraryModule;
|
|
410
2051
|
exports.LibeyNgComponentLibraryService = LibeyNgComponentLibraryService;
|
|
2052
|
+
exports.LibeyNgSignatureComponent = LibeyNgSignatureComponent;
|
|
2053
|
+
exports.LibeyNgSignatureModule = LibeyNgSignatureModule;
|
|
411
2054
|
exports.LibeyNgTableComponent = LibeyNgTableComponent;
|
|
412
2055
|
exports.LibeyNgTableModule = LibeyNgTableModule;
|
|
2056
|
+
exports.SigWebTablet = SigWebTablet;
|
|
2057
|
+
Object.keys(core).forEach(function (k) {
|
|
2058
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
2059
|
+
enumerable: true,
|
|
2060
|
+
get: function () { return core[k]; }
|
|
2061
|
+
});
|
|
2062
|
+
});
|
|
413
2063
|
|
|
414
2064
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
415
2065
|
|