@pepperi/lib
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.1.
2 lines • 20.5 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("@angular/material/core"),require("@angular/material/button"),require("@angular/material/form-field"),require("@angular/material/input"),require("@angular/material/icon"),require("@angular/material/dialog"),require("angular2-signaturepad"),require("@pepperi/lib"),require("@pepperi/lib/icon"),require("@pepperi/lib/field-title"),require("@pepperi/lib/files-uploader"),require("@pepperi/lib/dialog"),require("@ngx-translate/core")):"function"==typeof define&&define.amd?define("@pepperi/lib/signature",["exports","@angular/core","@angular/common","@angular/forms","@angular/material/core","@angular/material/button","@angular/material/form-field","@angular/material/input","@angular/material/icon","@angular/material/dialog","angular2-signaturepad","@pepperi/lib","@pepperi/lib/icon","@pepperi/lib/field-title","@pepperi/lib/files-uploader","@pepperi/lib/dialog","@ngx-translate/core"],t):t(((e=e||self).pepperi=e.pepperi||{},e.pepperi.lib=e.pepperi.lib||{},e.pepperi.lib.signature={}),e.ng.core,e.ng.common,e.ng.forms,e.ng.material.core,e.ng.material.button,e.ng.material.formField,e.ng.material.input,e.ng.material.icon,e.ng.material.dialog,e.signaturepad,e.pepperi.lib,e.pepperi.lib.icon,e.pepperi.lib["field-title"],e.pepperi.lib["files-uploader"],e.pepperi.lib.dialog,e.translate)}(this,(function(e,t,n,i,r,a,l,o,p,s,u,d,c,g,m,f,h){"use strict";var v=["signaturePad"],y=["signaturePopupPad"];function x(e,n){1&e&&t.ɵɵelementContainer(0)}var C=function(e){return{"right-alignment":e}};function S(e,n){if(1&e){var i=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",16),t.ɵɵlistener("click",(function(e){return t.ɵɵrestoreView(i),t.ɵɵnextContext(3).deleteSignature(e)})),t.ɵɵelementStart(1,"mat-icon"),t.ɵɵelement(2,"pep-icon",17),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext(3);t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(1,C,"2"==r.xAlignment))}}var b=function(e){return[e]};function M(e,n){if(1&e){var i=t.ɵɵgetCurrentView();t.ɵɵtemplate(0,S,3,3,"button",13),t.ɵɵelementStart(1,"div",14),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(i),t.ɵɵnextContext(2).openSignModal()})),t.ɵɵelementStart(2,"img",15),t.ɵɵlistener("error",(function(e){return t.ɵɵrestoreView(i),t.ɵɵnextContext(2).errorHandler(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext(2);t.ɵɵproperty("ngIf",!r.disabled),t.ɵɵadvance(2),t.ɵɵstyleProp("max-height",r.fieldHeight),t.ɵɵproperty("src",r.src,t.ɵɵsanitizeUrl)("alt",r.label)("ngClass",t.ɵɵpureFunction1(6,b,"text-align-"+r.xAlignment))}}function E(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",18),t.ɵɵelement(1,"pep-icon",19),t.ɵɵelementStart(2,"span",20),t.ɵɵtext(3),t.ɵɵpipe(4,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var i=t.ɵɵnextContext(2);t.ɵɵadvance(3),t.ɵɵtextInterpolate1(" ",t.ɵɵpipeBind1(4,1,i.disabled?"SignaturePad_MissingSignature":"SignaturePad_PleaseSignUp")," ")}}var I=function(e){return{disable:e}},w=function(e){return{field:e}};function T(e,n){if(1&e){var i=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"mat-form-field",5),t.ɵɵelementStart(1,"div",6),t.ɵɵelementStart(2,"div",7),t.ɵɵtemplate(3,x,1,0,"ng-container",8),t.ɵɵtemplate(4,M,3,8,"ng-template",null,9,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(6,E,5,3,"ng-template",null,10,t.ɵɵtemplateRefExtractor),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"input",11),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(i),t.ɵɵnextContext().openSignModal()}))("keypress",(function(e){return t.ɵɵrestoreView(i),t.ɵɵnextContext().onKeyPress_OpenSignModal(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"mat-error"),t.ɵɵelement(10,"span",12),t.ɵɵpipe(11,"translate"),t.ɵɵpipe(12,"translate"),t.ɵɵpipe(13,"translate"),t.ɵɵpipe(14,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵreference(5),a=t.ɵɵreference(7),l=t.ɵɵnextContext();t.ɵɵproperty("formGroup",l.form),t.ɵɵadvance(2),t.ɵɵstyleProp("height",l.fieldHeight),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(25,I,l.disabled)),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",""!=l.src)("ngIfThen",r)("ngIfElse",a),t.ɵɵadvance(5),t.ɵɵproperty("id",l.key)("formControlName",l.key)("value",l.src)("disabled",l.disabled),t.ɵɵadvance(2),t.ɵɵproperty("title",l.required&&0==l.src.length?t.ɵɵpipeBind2(11,13,"Msg_Is_Required",t.ɵɵpureFunction1(27,w,l.label)):t.ɵɵpipeBind2(12,16,"Msg_Is_Not_Valid",t.ɵɵpureFunction1(29,w,l.label)))("innerText",l.required&&0==l.src.length?t.ɵɵpipeBind2(13,19,"Msg_Is_Required",t.ɵɵpureFunction1(31,w,l.label)):t.ɵɵpipeBind2(14,22,"Msg_Is_Not_Valid",t.ɵɵpureFunction1(33,w,l.label)))}}function P(e,n){1&e&&t.ɵɵelementContainer(0)}var R=function(e,t){return{"one-row":e,"stand-alone":t}};function U(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵelementStart(1,"div",21),t.ɵɵelement(2,"pep-field-title",22),t.ɵɵtemplate(3,P,1,0,"ng-container",23),t.ɵɵelementEnd(),t.ɵɵelementContainerEnd()),2&e){var i=t.ɵɵnextContext(),r=t.ɵɵreference(3);t.ɵɵadvance(1),t.ɵɵproperty("ngClass",t.ɵɵpureFunction2(7,R,1==i.rowSpan,i.standAlone)),t.ɵɵadvance(1),t.ɵɵproperty("label",i.label)("required",i.required)("disabled",i.disabled)("xAlignment",i.xAlignment)("showTitle",i.showTitle),t.ɵɵadvance(1),t.ɵɵproperty("ngTemplateOutlet",r)}}function F(e,n){1&e&&t.ɵɵelementContainer(0)}function A(e,n){1&e&&t.ɵɵelementContainer(0)}var O=function(e){return{"one-row":e}};function V(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",21),t.ɵɵtemplate(1,A,1,0,"ng-container",23),t.ɵɵelementEnd()),2&e){var i=t.ɵɵnextContext(2),r=t.ɵɵreference(3);t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(2,O,1==i.rowSpan)),t.ɵɵadvance(1),t.ɵɵproperty("ngTemplateOutlet",r)}}function _(e,n){1&e&&t.ɵɵelementContainer(0)}var L=function(){return{isTableView:!1}};function k(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",21),t.ɵɵtemplate(1,_,1,0,"ng-container",26),t.ɵɵelementEnd()),2&e){var i=t.ɵɵnextContext(2),r=t.ɵɵreference(8);t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(3,O,1==i.rowSpan)),t.ɵɵadvance(1),t.ɵɵproperty("ngTemplateOutlet",r)("ngTemplateOutletContext",t.ɵɵpureFunction0(5,L))}}function q(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtemplate(1,F,1,0,"ng-container",8),t.ɵɵtemplate(2,V,2,4,"ng-template",null,24,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(4,k,2,6,"ng-template",null,25,t.ɵɵtemplateRefExtractor),t.ɵɵelementContainerEnd()),2&e){var i=t.ɵɵreference(3),r=t.ɵɵreference(5);t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!1)("ngIfThen",i)("ngIfElse",r)}}function D(e,n){1&e&&t.ɵɵelementContainer(0)}function B(e,n){1&e&&t.ɵɵelementContainer(0)}function N(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",27),t.ɵɵtemplate(1,B,1,0,"ng-container",23),t.ɵɵelementEnd()),2&e){t.ɵɵnextContext(2);var i=t.ɵɵreference(3);t.ɵɵadvance(1),t.ɵɵproperty("ngTemplateOutlet",i)}}function j(e,n){1&e&&t.ɵɵelementContainer(0)}var H=function(){return{isTableView:!0}};function Y(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",27),t.ɵɵtemplate(1,j,1,0,"ng-container",26),t.ɵɵelementEnd()),2&e){t.ɵɵnextContext(2);var i=t.ɵɵreference(8);t.ɵɵadvance(1),t.ɵɵproperty("ngTemplateOutlet",i)("ngTemplateOutletContext",t.ɵɵpureFunction0(2,H))}}function z(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtemplate(1,D,1,0,"ng-container",8),t.ɵɵtemplate(2,N,2,1,"ng-template",null,24,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(4,Y,2,3,"ng-template",null,25,t.ɵɵtemplateRefExtractor),t.ɵɵelementContainerEnd()),2&e){var i=t.ɵɵreference(3),r=t.ɵɵreference(5);t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!1)("ngIfThen",i)("ngIfElse",r)}}function G(e,n){1&e&&t.ɵɵelementContainer(0)}function Q(e,n){if(1&e){var i=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"img",15),t.ɵɵlistener("error",(function(e){return t.ɵɵrestoreView(i),t.ɵɵnextContext(3).errorHandler(e)})),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext(3);t.ɵɵstyleProp("max-height",r.fieldHeight),t.ɵɵproperty("src",r.src,t.ɵɵsanitizeUrl)("alt",r.label)("ngClass",t.ɵɵpureFunction1(5,b,"text-align-"+r.xAlignment))}}function J(e,n){if(1&e){var i=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"img",32),t.ɵɵlistener("error",(function(e){return t.ɵɵrestoreView(i),t.ɵɵnextContext(3).errorHandler(e)})),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext(3);t.ɵɵstyleProp("max-height",r.fieldHeight),t.ɵɵproperty("src",r.src,t.ɵɵsanitizeUrl)("alt",r.label)("ngClass",t.ɵɵpureFunction1(5,b,"text-align-"+r.xAlignment))}}function K(e,n){if(1&e){var i=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",14),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(i),t.ɵɵnextContext(2).openSignModal()})),t.ɵɵtemplate(1,Q,1,7,"img",30),t.ɵɵtemplate(2,J,1,7,"img",31),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext().isTableView;t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!r),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",r)}}function W(e,t){}function X(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",28),t.ɵɵelementStart(1,"div",6),t.ɵɵelementStart(2,"div",29),t.ɵɵtemplate(3,G,1,0,"ng-container",8),t.ɵɵtemplate(4,K,3,2,"ng-template",null,9,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(6,W,0,0,"ng-template",null,10,t.ɵɵtemplateRefExtractor),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var i=t.ɵɵreference(5),r=t.ɵɵreference(7),a=t.ɵɵnextContext();t.ɵɵadvance(3),t.ɵɵproperty("ngIf",""!=a.src)("ngIfThen",i)("ngIfElse",r)}}function Z(e,n){if(1&e){var i=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",41),t.ɵɵelementStart(1,"div",42),t.ɵɵelementStart(2,"button",43),t.ɵɵlistener("click",(function(e){return t.ɵɵrestoreView(i),t.ɵɵnextContext(2).saveSignModal(e)})),t.ɵɵtext(3),t.ɵɵpipe(4,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"button",44),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(i),t.ɵɵnextContext(2).clearSignModal()})),t.ɵɵtext(6),t.ɵɵpipe(7,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext(2);t.ɵɵadvance(2),t.ɵɵproperty("disabled",!r.showActionBtn||r.readonly||r.disabled)("mat-dialog-close",r.signatureURL),t.ɵɵadvance(1),t.ɵɵtextInterpolate1(" ",t.ɵɵpipeBind1(4,5,"Done")," "),t.ɵɵadvance(2),t.ɵɵproperty("disabled",!r.showActionBtn||r.readonly||r.disabled),t.ɵɵadvance(1),t.ɵɵtextInterpolate1(" ",t.ɵɵpipeBind1(7,7,"Clear")," ")}}function $(e,n){if(1&e){var i=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"h2",33),t.ɵɵelementStart(1,"span",34),t.ɵɵtext(2),t.ɵɵpipe(3,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"button",35),t.ɵɵelementStart(5,"mat-icon"),t.ɵɵelement(6,"pep-icon",36),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"div",37),t.ɵɵelementStart(8,"signature-pad",38,39),t.ɵɵlistener("onBeginEvent",(function(){return t.ɵɵrestoreView(i),t.ɵɵnextContext().drawStart()}))("onEndEvent",(function(){return t.ɵɵrestoreView(i),t.ɵɵnextContext().drawComplete()})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(10,Z,8,9,"div",40)}if(2&e){var r=t.ɵɵnextContext();t.ɵɵadvance(2),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(3,4,"SignaturePad_PleaseSignUpModalTitle")),t.ɵɵadvance(2),t.ɵɵproperty("mat-dialog-close",null),t.ɵɵadvance(4),t.ɵɵproperty("options",r.signaturePadOptions),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",r.showActionBtn)}}var ee=function(){function e(e,n,i,r,a,l){this.dialogService=e,this.customizationService=n,this.fileService=i,this.cd=r,this.renderer=a,this.element=l,this.key="",this.src="",this.label="",this.required=!1,this.disabled=!1,this.readonly=!1,this.xAlignment="0",this.rowSpan=1,this.signatureURL="",this.controlType="signature",this.form=null,this.showTitle=!0,this.layoutType=d.LAYOUT_TYPE.PepperiForm,this.isActive=!1,this.valueChanged=new t.EventEmitter,this.LAYOUT_TYPE=d.LAYOUT_TYPE,this.fieldHeight="",this.standAlone=!1,this.dataURI=null,this.showActionBtn=!0,this.isVisibleModal=!1,this.acceptSignatureType="png",this.signaturePadOptions={minWidth:2,canvasWidth:500,canvasHeight:300,penColor:"rgb(151, 151, 151)"}}return e.prototype.ngOnInit=function(){null===this.form&&(this.standAlone=!0,this.form=this.customizationService.getDefaultFromGroup(this.key,this.src,this.required,this.readonly,this.disabled),this.renderer.addClass(this.element.nativeElement,d.CustomizationService.STAND_ALONE_FIELD_CLASS_NAME)),this.fieldHeight=this.customizationService.calculateFieldHeight(this.layoutType,this.rowSpan,this.standAlone)},e.prototype.ngOnChanges=function(e){e.src&&e.src.currentValue.length>0&&(this.dataURI=null)},e.prototype.ngOnDestroy=function(){this.valueChanged&&this.valueChanged.unsubscribe()},e.prototype.drawComplete=function(){},e.prototype.drawStart=function(){},e.prototype.openSignModal=function(){if(this.standAlone&&this.dataURI){var e=this.dataURI.fileStr.split(";");if(2===e.length){var t=window.open("","_blank"),n=e[0].split(":")[1],i=e[1].split(",")[1],r=this.fileService.convertFromb64toBlob(i,n),a=URL.createObjectURL(r);t.location.href=a}}else this.signatureURL=this.src,this.openSignatoreDlg(this.signatureURL)},e.prototype.openSignatoreDlg=function(e){var t=this;void 0===e&&(e=""),this.showActionBtn=!this.signatureURL||""===this.signatureURL,this.dialogService.openDialog(this.signaturePopupPad).afterOpened().subscribe((function(){t.afterDialogOpened()}))},e.prototype.afterDialogOpened=function(){this.signatureURL&&""!==this.signatureURL&&(this.signaturePad.fromDataURL(this.signatureURL),this.signaturePad.off())},e.prototype.clearSignModal=function(){this.signatureURL="",this.signaturePad.clear(),this.signaturePad.on()},e.prototype.deleteSignature=function(e){this.signatureURL="",this.changeValue(this.signatureURL),this.cd.detectChanges()},e.prototype.saveSignModal=function(e){if(this.signaturePad.isEmpty())this.signatureURL="",this.changeValue(this.signatureURL);else{this.signatureURL=this.signaturePad.toDataURL("image/png");var t=JSON.stringify({acceptedExtensions:this.acceptSignatureType,fileStr:this.signatureURL,fileExt:this.acceptSignatureType});this.changeValue(t)}},e.prototype.errorHandler=function(e){this.signatureURL=this.src=""},e.prototype.changeValue=function(e,t){void 0===t&&(t=null),this.dataURI=e.length>0?JSON.parse(e):null,this.src=this.standAlone&&this.dataURI?this.dataURI.fileStr:"",this.customizationService.updateFormFieldValue(this.form,this.key,this.dataURI?this.dataURI.fileExt:""),this.valueChanged.emit({apiName:this.key,value:e,controlType:this.controlType,lastFocusedField:t})},e.prototype.onKeyPress_OpenSignModal=function(e){var t=e;-1!==[13,32].indexOf(t.which)&&this.openSignModal(),t.preventDefault()},e}();ee.ɵfac=function(e){return new(e||ee)(t.ɵɵdirectiveInject(f.DialogService),t.ɵɵdirectiveInject(d.CustomizationService),t.ɵɵdirectiveInject(d.FileService),t.ɵɵdirectiveInject(t.ChangeDetectorRef),t.ɵɵdirectiveInject(t.Renderer2),t.ɵɵdirectiveInject(t.ElementRef))},ee.ɵcmp=t.ɵɵdefineComponent({type:ee,selectors:[["pep-signature"]],viewQuery:function(e,n){var i;(1&e&&(t.ɵɵviewQuery(v,!0),t.ɵɵviewQuery(y,!0,t.TemplateRef)),2&e)&&(t.ɵɵqueryRefresh(i=t.ɵɵloadQuery())&&(n.signaturePad=i.first),t.ɵɵqueryRefresh(i=t.ɵɵloadQuery())&&(n.signaturePopupPad=i.first))},inputs:{key:"key",src:"src",label:"label",required:"required",disabled:"disabled",readonly:"readonly",xAlignment:"xAlignment",rowSpan:"rowSpan",signatureURL:"signatureURL",form:"form",showTitle:"showTitle",layoutType:"layoutType",isActive:"isActive"},outputs:{valueChanged:"valueChanged"},features:[t.ɵɵNgOnChangesFeature],decls:11,vars:4,consts:[[3,"formGroup"],["pepperiTemplate",""],[4,"ngIf"],["pepperiReadonlyTemplate",""],["signaturePopupPad",""],["appearance","outline",3,"formGroup"],[1,"pepperi-file-wrapper"],[1,"pepperi-file","body-sm",3,"ngClass"],[4,"ngIf","ngIfThen","ngIfElse"],["withImg",""],["noImg",""],["matInput","","type","text","autocomplete","off","readonly","",1,"hidden-input","signature",3,"id","formControlName","value","disabled","click","keypress"],[1,"body-xs",3,"title","innerText"],["mat-button","","class","pepperi-button icon-button weak md delete","tabindex","-1",3,"ngClass","click",4,"ngIf"],[1,"pepperi-file-preview",3,"click"],[1,"pepperi-file-preview-img",3,"src","alt","ngClass","error"],["mat-button","","tabindex","-1",1,"pepperi-button","icon-button","weak","md","delete",3,"ngClass","click"],["name","system_bin"],[1,"ellipsis","pepperi-file-message"],["name","system_signature"],[1,"body-sm","ellipsis"],[1,"pepperi-file-container",3,"ngClass"],[3,"label","required","disabled","xAlignment","showTitle"],[4,"ngTemplateOutlet"],["selectedBlock",""],["notSelectedBlock",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"pepperi-file-container","one-row"],[1,"pepperi-file-container"],[1,"pepperi-file","body-sm","disable"],["class","pepperi-file-preview-img",3,"src","max-height","alt","ngClass","error",4,"ngIf"],["class","pepperi-report-file pepperi-file-preview-img",3,"src","max-height","alt","ngClass","error",4,"ngIf"],[1,"pepperi-report-file","pepperi-file-preview-img",3,"src","alt","ngClass","error"],["mat-dialog-title","",1,"pepperi-border-bottom"],[1,"pull-left","flip","ellipsis"],["mat-button","",1,"pepperi-button","icon-button","md","weak","pull-right","flip",3,"mat-dialog-close"],["name","system_close"],["mat-dialog-content",""],[3,"options","onBeginEvent","onEndEvent"],["signaturePad",""],["mat-dialog-actions","","class"," pepperi-border-top",4,"ngIf"],["mat-dialog-actions","",1,"pepperi-border-top"],[1,"spacing-element-negative"],["mat-button","",1,"spacing-element","pepperi-button","md","strong","pull-right","flip",3,"disabled","mat-dialog-close","click"],["mat-button","",1,"spacing-element","pepperi-button","md","weak","pull-right","flip",3,"disabled","click"]],template:function(e,n){1&e&&(t.ɵɵelementContainerStart(0,0),t.ɵɵelementContainerStart(1),t.ɵɵtemplate(2,T,15,35,"ng-template",null,1,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(4,U,4,10,"ng-container",2),t.ɵɵtemplate(5,q,6,3,"ng-container",2),t.ɵɵtemplate(6,z,6,3,"ng-container",2),t.ɵɵelementContainerEnd(),t.ɵɵtemplate(7,X,8,3,"ng-template",null,3,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(9,$,11,6,"ng-template",null,4,t.ɵɵtemplateRefExtractor),t.ɵɵelementContainerEnd()),2&e&&(t.ɵɵproperty("formGroup",n.form),t.ɵɵadvance(4),t.ɵɵproperty("ngIf",n.layoutType===n.LAYOUT_TYPE.PepperiForm),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.layoutType===n.LAYOUT_TYPE.PepperiCard),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.layoutType===n.LAYOUT_TYPE.PepperiTable))},directives:[i.NgControlStatusGroup,i.FormGroupDirective,n.NgIf,l.MatFormField,n.NgClass,o.MatInput,i.DefaultValueAccessor,i.NgControlStatus,i.FormControlName,l.MatError,a.MatButton,p.MatIcon,c.PepperiIconComponent,g.PepperiFieldTitleComponent,n.NgTemplateOutlet,s.MatDialogTitle,s.MatDialogClose,s.MatDialogContent,u.SignaturePad,s.MatDialogActions],pipes:[h.TranslatePipe],styles:["[_nghost-%COMP%]{display:block}signature-pad[_ngcontent-%COMP%]{display:-ms-grid;display:grid;height:inherit;width:inherit}"],changeDetection:0});var te=function(e){this.pepperiIconRegistry=e,this.pepperiIconRegistry.registerIcons([c.pepperiIconSystemBin,c.pepperiIconSystemSignature,c.pepperiIconSystemClose])};te.ɵmod=t.ɵɵdefineNgModule({type:te}),te.ɵinj=t.ɵɵdefineInjector({factory:function(e){return new(e||te)(t.ɵɵinject(c.PepperiIconRegistry))},imports:[[n.CommonModule,i.ReactiveFormsModule,i.FormsModule,r.MatCommonModule,a.MatButtonModule,l.MatFormFieldModule,o.MatInputModule,p.MatIconModule,s.MatDialogModule,u.SignaturePadModule,d.PepperiModule,c.PepperiIconModule,g.PepperiFieldTitleModule,m.PepperiFilesUploaderModule,f.PepperiDialogModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(te,{declarations:[ee],imports:[n.CommonModule,i.ReactiveFormsModule,i.FormsModule,r.MatCommonModule,a.MatButtonModule,l.MatFormFieldModule,o.MatInputModule,p.MatIconModule,s.MatDialogModule,u.SignaturePadModule,d.PepperiModule,c.PepperiIconModule,g.PepperiFieldTitleModule,m.PepperiFilesUploaderModule,f.PepperiDialogModule],exports:[ee]}),e.PepperiSignatureComponent=ee,e.PepperiSignatureModule=te,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=pepperi-lib-signature.umd.min.js.map