UNPKG

@pepperi/lib

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.1.

2 lines 22.3 kB
!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("@pepperi/lib"),require("@pepperi/lib/icon"),require("@pepperi/lib/textbox-icon"),require("@pepperi/lib/field-title"),require("@ngx-translate/core")):"function"==typeof define&&define.amd?define("@pepperi/lib/textbox",["exports","@angular/core","@angular/common","@angular/forms","@angular/material/core","@angular/material/button","@angular/material/form-field","@angular/material/input","@angular/material/icon","@pepperi/lib","@pepperi/lib/icon","@pepperi/lib/textbox-icon","@pepperi/lib/field-title","@ngx-translate/core"],t):t(((e=e||self).pepperi=e.pepperi||{},e.pepperi.lib=e.pepperi.lib||{},e.pepperi.lib.textbox={}),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.pepperi.lib,e.pepperi.lib.icon,e.pepperi.lib["textbox-icon"],e.pepperi.lib["field-title"],e.translate)}(this,(function(e,t,n,r,a,i,l,o,p,u,s,d,c,m){"use strict";var f=["input"];function g(e,n){if(1&e&&t.ɵɵelement(0,"pep-field-title",14),2&e){t.ɵɵnextContext();var r=t.ɵɵreference(3),a=t.ɵɵnextContext();t.ɵɵproperty("label",a.label)("required",a.required)("disabled",a.disabled)("maxFieldCharacters",a.maxFieldCharacters)("xAlignment",a.xAlignment)("showTitle",a.showTitle)("inputLength",null==r.value?null:r.value.length)}}function h(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",15),t.ɵɵelementStart(1,"a",16),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext(2).anchorClicked()})),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var a=t.ɵɵnextContext(2);t.ɵɵadvance(1),t.ɵɵproperty("id",a.key)("name",a.key),t.ɵɵadvance(1),t.ɵɵtextInterpolate1(" ",a.formattedValue,"")}}function x(e,n){1&e&&t.ɵɵelementContainer(0)}var y=function(e){return{field:e}};function v(e,n){if(1&e&&(t.ɵɵelement(0,"span",11),t.ɵɵpipe(1,"translate"),t.ɵɵpipe(2,"translate")),2&e){var r=t.ɵɵnextContext(2);t.ɵɵproperty("title",t.ɵɵpipeBind2(1,2,"Msg_Is_Required",t.ɵɵpureFunction1(8,y,r.label)))("innerText",t.ɵɵpipeBind2(2,5,"Msg_Is_Required",t.ɵɵpureFunction1(10,y,r.label)))}}var C=function(e,t){return{min:e,max:t}};function b(e,n){if(1&e&&(t.ɵɵelement(0,"span",11),t.ɵɵpipe(1,"toNumber"),t.ɵɵpipe(2,"toNumber"),t.ɵɵpipe(3,"translate"),t.ɵɵpipe(4,"translate"),t.ɵɵpipe(5,"toNumber"),t.ɵɵpipe(6,"toNumber"),t.ɵɵpipe(7,"translate"),t.ɵɵpipe(8,"translate")),2&e){t.ɵɵnextContext();var r=t.ɵɵreference(3),a=t.ɵɵnextContext();t.ɵɵproperty("title",t.ɵɵpipeBind1(1,2,r.value)>a.maxValue||t.ɵɵpipeBind1(2,4,r.value)<a.minValue?t.ɵɵpipeBind2(3,6,"Msg_Range_Is_Not_Valid",t.ɵɵpureFunction2(22,C,a.minValue,a.maxValue)):t.ɵɵpipeBind2(4,9,"Msg_Is_Not_Valid",t.ɵɵpureFunction1(25,y,a.label)))("innerText",t.ɵɵpipeBind1(5,12,r.value)>a.maxValue||t.ɵɵpipeBind1(6,14,r.value)<a.minValue?t.ɵɵpipeBind2(7,16,"Msg_Range_Is_Not_Valid",t.ɵɵpureFunction2(27,C,a.minValue,a.maxValue)):t.ɵɵpipeBind2(8,19,"Msg_Is_Not_Valid",t.ɵɵpureFunction1(30,y,a.label)))}}function I(e,n){if(1&e&&t.ɵɵelement(0,"pep-textbox-icon",17),2&e){var r=t.ɵɵnextContext(2);t.ɵɵproperty("value",r.value)("label",r.label)("type",r.type)("disabled",r.disabled)}}function F(e,n){if(1&e&&t.ɵɵelement(0,"pep-textbox-icon",18),2&e){var r=t.ɵɵnextContext(2);t.ɵɵproperty("value",r.value)("label",r.label)("type",r.type)("disabled",r.disabled)}}var V=function(e,t){return{color:e,"text-align":t}},T=function(e){return{"disable-hidden":e}};function E(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵtemplate(0,g,1,7,"pep-field-title",3),t.ɵɵelementStart(1,"mat-form-field",4),t.ɵɵelementStart(2,"input",5,6),t.ɵɵlistener("keyup",(function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().onKeyUp(e)}))("keypress",(function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().onKeyPress(e)}))("blur",(function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().onBlur(e)}))("keyup.enter",(function(e){return t.ɵɵrestoreView(r),null==e||null==e.currentTarget?null:e.currentTarget.blur()}))("focus",(function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().onFocus(e)})),t.ɵɵelementEnd(),t.ɵɵtemplate(4,h,3,3,"span",7),t.ɵɵelementStart(5,"mat-error"),t.ɵɵtemplate(6,x,1,0,"ng-container",8),t.ɵɵtemplate(7,v,3,12,"ng-template",null,9,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(9,b,9,32,"ng-template",null,10,t.ɵɵtemplateRefExtractor),t.ɵɵelement(11,"span",11),t.ɵɵpipe(12,"translate"),t.ɵɵpipe(13,"translate"),t.ɵɵpipe(14,"translate"),t.ɵɵpipe(15,"translate"),t.ɵɵelementEnd(),t.ɵɵtemplate(16,I,1,4,"pep-textbox-icon",12),t.ɵɵtemplate(17,F,1,4,"pep-textbox-icon",13),t.ɵɵelementEnd()}if(2&e){var a=n.isFormView,i=n.hasParent,l=t.ɵɵreference(3),o=t.ɵɵreference(8),p=t.ɵɵreference(10),u=t.ɵɵnextContext();t.ɵɵproperty("ngIf",a&&!i),t.ɵɵadvance(2),t.ɵɵpropertyInterpolate("maxlength",u.maxFieldCharacters>0?u.maxFieldCharacters:99999),t.ɵɵpropertyInterpolate("title",u.formattedValue),t.ɵɵproperty("id",u.key)("name",u.key)("placeholder",i&&!u.disabled?u.placeholder:"")("ngStyle",t.ɵɵpureFunction2(32,V,u.textColor,"3"==u.xAlignment?"center":"2"==u.xAlignment?"right":"left"))("formControlName",u.key)("type",u.type)("value","link"==u.type?u.formattedValue:u.isFocus?u.value:u.formattedValue)("disabled",u.disabled)("ngClass",t.ɵɵpureFunction1(35,T,u.disabled&&u.formattedValue.length>0&&("phone"===u.type||"email"===u.type||"link"===u.type))),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",u.disabled&&u.formattedValue.length>0&&("phone"===u.type||"email"===u.type||"link"===u.type)),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",u.required&&0==l.value.length)("ngIfThen",o)("ngIfElse",p),t.ɵɵadvance(5),t.ɵɵproperty("title",u.required&&0==u.value.length?t.ɵɵpipeBind2(12,20,"Msg_Is_Required",t.ɵɵpureFunction1(37,y,u.label)):t.ɵɵpipeBind2(13,23,"Msg_Is_Not_Valid",t.ɵɵpureFunction1(39,y,u.label)))("innerText",u.required&&0==u.value.length?t.ɵɵpipeBind2(14,26,"Msg_Is_Required",t.ɵɵpureFunction1(41,y,u.label)):t.ɵɵpipeBind2(15,29,"Msg_Is_Not_Valid",t.ɵɵpureFunction1(43,y,u.label))),t.ɵɵadvance(5),t.ɵɵproperty("ngIf",a&&"2"==u.xAlignment),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",a&&("1"==u.xAlignment||"0"==u.xAlignment))}}function M(e,n){1&e&&t.ɵɵelementContainer(0)}function w(e,n){1&e&&t.ɵɵelementContainer(0)}var k=function(){return{isFormView:!0,hasParent:!1}};function S(e,n){if(1&e&&t.ɵɵtemplate(0,w,1,0,"ng-container",21),2&e){t.ɵɵnextContext(2);var r=t.ɵɵreference(2);t.ɵɵproperty("ngTemplateOutlet",r)("ngTemplateOutletContext",t.ɵɵpureFunction0(2,k))}}function _(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementContainerStart(0,22),t.ɵɵelementStart(1,"mat-form-field",4),t.ɵɵelementStart(2,"input",23),t.ɵɵlistener("keyup",(function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext(2).onKeyUp(e)}))("keypress",(function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext(2).onKeyPress(e)}))("blur",(function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext(2).onBlur(e)}))("keyup.enter",(function(e){return t.ɵɵrestoreView(r),null==e||null==e.currentTarget?null:e.currentTarget.blur()}))("focus",(function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext(2).onFocus(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementContainerEnd()}if(2&e){var a=t.ɵɵnextContext(2);t.ɵɵproperty("formGroupName",a.parentFieldKey),t.ɵɵadvance(2),t.ɵɵpropertyInterpolate("title",a.formattedValue),t.ɵɵproperty("id",a.key)("name",a.key)("placeholder",a.disabled?"":a.placeholder)("formControlName",a.key)("value",a.value)("disabled",a.disabled)}}function N(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtemplate(1,M,1,0,"ng-container",8),t.ɵɵtemplate(2,S,1,3,"ng-template",null,19,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(4,_,3,8,"ng-template",null,20,t.ɵɵtemplateRefExtractor),t.ɵɵelementContainerEnd()),2&e){var r=t.ɵɵreference(3),a=t.ɵɵreference(5),i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.parentFieldKey)("ngIfThen",a)("ngIfElse",r)}}function P(e,n){1&e&&t.ɵɵelementContainer(0)}function A(e,n){1&e&&t.ɵɵelementContainer(0)}var O=function(e){return{"one-row":e}},q=function(){return{isFormView:!1,hasParent:!1}};function B(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",26),t.ɵɵtemplate(1,A,1,0,"ng-container",21),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext(2),a=t.ɵɵreference(2);t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(3,O,1===r.rowSpan)),t.ɵɵadvance(1),t.ɵɵproperty("ngTemplateOutlet",a)("ngTemplateOutletContext",t.ɵɵpureFunction0(5,q))}}function R(e,n){if(1&e&&(t.ɵɵelementStart(0,"span",31),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext(3);t.ɵɵpropertyInterpolate("title",r.label),t.ɵɵadvance(1),t.ɵɵtextInterpolate1("",r.label," ")}}function K(e,n){1&e&&(t.ɵɵelementStart(0,"button",32),t.ɵɵelementStart(1,"mat-icon"),t.ɵɵelement(2,"pep-icon",33),t.ɵɵelementEnd(),t.ɵɵelementEnd())}var L=function(e,t){return{"one-row":e,"pepperi-button weak":t}};function Y(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",27),t.ɵɵlistener("click",(function(e){t.ɵɵrestoreView(r);var n=t.ɵɵnextContext(2);return n.disabled?"":n.cardTemplateClicked(e)})),t.ɵɵtemplate(1,R,2,2,"span",28),t.ɵɵelementStart(2,"span",29),t.ɵɵtext(3),t.ɵɵelementEnd(),t.ɵɵtemplate(4,K,3,0,"button",30),t.ɵɵelementEnd()}if(2&e){var a=t.ɵɵnextContext(2);t.ɵɵclassMap("text-align-"+a.xAlignment),t.ɵɵproperty("ngClass",t.ɵɵpureFunction2(8,L,1===a.rowSpan,a.isActive&&!a.disabled)),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",a.showTitle&&""!=a.label),t.ɵɵadvance(1),t.ɵɵpropertyInterpolate("title",a.formattedValue),t.ɵɵproperty("id",a.key),t.ɵɵadvance(1),t.ɵɵtextInterpolate(a.formattedValue),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",a.isActive&&!a.disabled)}}function D(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtemplate(1,P,1,0,"ng-container",8),t.ɵɵtemplate(2,B,2,6,"ng-template",null,24,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(4,Y,5,11,"ng-template",null,25,t.ɵɵtemplateRefExtractor),t.ɵɵelementContainerEnd()),2&e){var r=t.ɵɵreference(3),a=t.ɵɵreference(5),i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.isInEditMode)("ngIfThen",r)("ngIfElse",a)}}function U(e,n){1&e&&t.ɵɵelementContainer(0)}function j(e,n){1&e&&t.ɵɵelementContainer(0)}function G(e,n){if(1&e&&t.ɵɵtemplate(0,j,1,0,"ng-container",21),2&e){t.ɵɵnextContext(2);var r=t.ɵɵreference(2);t.ɵɵproperty("ngTemplateOutlet",r)("ngTemplateOutletContext",t.ɵɵpureFunction0(2,q))}}function z(e,n){1&e&&t.ɵɵelementContainer(0)}var Q=function(e){return{disable:e}};function J(e,n){if(1&e&&(t.ɵɵelementStart(0,"a",42),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext(5);t.ɵɵpropertyInterpolate("title",r.formattedValue),t.ɵɵpropertyInterpolate("href",r.value?r.value:r.formattedValue,t.ɵɵsanitizeUrl),t.ɵɵproperty("id",r.key)("ngClass",t.ɵɵpureFunction1(5,Q,r.disabled&&""===r.value)),t.ɵɵadvance(1),t.ɵɵtextInterpolate(r.formattedValue)}}function $(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtemplate(1,J,2,7,"a",41),t.ɵɵelementContainerEnd()),2&e){var r=t.ɵɵnextContext(4);t.ɵɵadvance(1),t.ɵɵproperty("ngIf",null!=r.formattedValue)}}var H=function(e){return{readonly:e}},W=function(e){return{color:e}};function X(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵelementStart(1,"span",43),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵelementContainerEnd()),2&e){var r=t.ɵɵnextContext(4);t.ɵɵadvance(1),t.ɵɵpropertyInterpolate("title",r.formattedValue),t.ɵɵproperty("id",r.key)("ngClass",t.ɵɵpureFunction1(5,H,r.disabled))("ngStyle",t.ɵɵpureFunction1(7,W,r.textColor)),t.ɵɵadvance(1),t.ɵɵtextInterpolate(r.formattedValue)}}function Z(e,n){if(1&e&&(t.ɵɵelementContainerStart(0,38),t.ɵɵtemplate(1,$,2,1,"ng-container",39),t.ɵɵtemplate(2,X,3,9,"ng-container",40),t.ɵɵelementContainerEnd()),2&e){var r=t.ɵɵnextContext(3);t.ɵɵproperty("ngSwitch",r.type),t.ɵɵadvance(1),t.ɵɵproperty("ngSwitchCase","link")}}function ee(e,n){if(1&e&&(t.ɵɵelementStart(0,"span",44),t.ɵɵtext(1," "),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext(3);t.ɵɵproperty("id",r.key)}}function te(e,n){if(1&e&&(t.ɵɵtemplate(0,z,1,0,"ng-container",8),t.ɵɵtemplate(1,Z,3,2,"ng-template",null,36,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(3,ee,2,1,"ng-template",null,37,t.ɵɵtemplateRefExtractor)),2&e){var r=t.ɵɵreference(2),a=t.ɵɵreference(4),i=t.ɵɵnextContext(2);t.ɵɵproperty("ngIf",(null==i.formattedValue?null:i.formattedValue.length)>0)("ngIfThen",r)("ngIfElse",a)}}function ne(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtemplate(1,U,1,0,"ng-container",8),t.ɵɵtemplate(2,G,1,3,"ng-template",null,34,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(4,te,5,3,"ng-template",null,35,t.ɵɵtemplateRefExtractor),t.ɵɵelementContainerEnd()),2&e){var r=t.ɵɵreference(3),a=t.ɵɵreference(5),i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.isActive&&!i.disabled)("ngIfThen",r)("ngIfElse",a)}}function re(e,n){1&e&&t.ɵɵelementContainer(0)}function ae(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtemplate(1,re,1,0,"ng-container",21),t.ɵɵelementContainerEnd()),2&e){t.ɵɵnextContext();var r=t.ɵɵreference(2);t.ɵɵadvance(1),t.ɵɵproperty("ngTemplateOutlet",r)("ngTemplateOutletContext",t.ɵɵpureFunction0(2,k))}}var ie=function(){function e(e,n,r,a){this.fb=e,this.customizationService=n,this.renderer=r,this.element=a,this.key="",this.value="",this.formattedValue="",this.label="",this.placeholder="",this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1,this.textColor="",this.xAlignment="0",this.rowSpan=1,this.minValue=NaN,this.maxValue=NaN,this.controlType="textbox",this.form=null,this.isActive=!1,this.showTitle=!0,this.layoutType=u.LAYOUT_TYPE.PepperiForm,this.parentFieldKey=null,this.valueChanged=new t.EventEmitter,this.formValidationChanged=new t.EventEmitter,this.LAYOUT_TYPE=u.LAYOUT_TYPE,this.standAlone=!1,this.isInEditMode=!1,this.isFocus=!1}return e.prototype.ngOnInit=function(){null===this.form&&(this.standAlone=!0,this.minValue=isNaN(this.minValue)&&!isNaN(this.maxValue)?0:this.minValue,this.maxValue=isNaN(this.maxValue)&&!isNaN(this.minValue)?99999:this.maxValue,this.form=this.customizationService.getDefaultFromGroup(this.key,this.value,this.required,this.readonly,this.disabled,this.maxFieldCharacters,this.type,!1,!0,this.minValue,this.maxValue),this.formattedValue=this.formattedValue||this.value,this.renderer.addClass(this.element.nativeElement,u.CustomizationService.STAND_ALONE_FIELD_CLASS_NAME)),this.readonly="duration"===this.type||this.readonly},e.prototype.ngOnChanges=function(e){this.readonly="duration"===this.type||this.readonly;var t=this;setTimeout((function(){t.lastFocusField&&(t.lastFocusField.focus(),t.lastFocusField=null)}),100)},e.prototype.ngOnDestroy=function(){this.valueChanged&&this.valueChanged.unsubscribe(),this.formValidationChanged&&this.formValidationChanged.unsubscribe()},e.prototype.onFocus=function(e){this.isFocus=!0},e.prototype.onBlur=function(e){this.isFocus=!1;var t=e.target?e.target.value:e;t!==this.value&&(this.formattedValue=this.value=t,this.valueChanged.emit({apiName:this.key,value:t,lastFocusedField:e.relatedTarget})),this.isInEditMode&&(this.isInEditMode=!1)},e.prototype.onKeyUp=function(e){var t=e.target?e.target.value:e;this.customizationService.updateFormFieldValue(this.form,this.key,t,this.parentFieldKey),this.formValidationChanged.emit(this.form.valid)},e.prototype.onKeyPress=function(e){var t=String.fromCharCode(e.charCode),n=e;if(-1!==[8,9,13,27,190].indexOf(n.which)||65===n.which&&!0===n.ctrlKey||67===n.which&&!0===n.ctrlKey||86===n.which&&!0===n.ctrlKey||88===n.which&&!0===n.ctrlKey)return!0;switch(this.type){case"int":(r=/[0-9\+\-\ ]/).test(t)||n.preventDefault();break;case"currency":case"real":var r=/^\d+(\.\d{1,9})?$/;46===n.which?t+="0":44===n.which&&(t+="000"),r.test(e.target.value+t)||n.preventDefault();break;case"phone":(r=/^[\d\.\-\+\(\)\*\#]+$/).test(e.target.value+t)||n.preventDefault()}},e.prototype.anchorClicked=function(){var e=this.value;if(e.trim().length>0)switch(this.type){case"email":window.open("mailto:"+e,"email");break;case"phone":window.open("tel:"+e,"tel");break;case"link":window.open(e)}},e.prototype.cardTemplateClicked=function(e){var t=this;this.isInEditMode=!0,setTimeout((function(){t.input.nativeElement.focus()}),0)},e}();ie.ɵfac=function(e){return new(e||ie)(t.ɵɵdirectiveInject(r.FormBuilder),t.ɵɵdirectiveInject(u.CustomizationService),t.ɵɵdirectiveInject(t.Renderer2),t.ɵɵdirectiveInject(t.ElementRef))},ie.ɵcmp=t.ɵɵdefineComponent({type:ie,selectors:[["pep-textbox"]],viewQuery:function(e,n){var r;(1&e&&t.ɵɵviewQuery(f,!0),2&e)&&(t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n.input=r.first))},inputs:{key:"key",value:"value",formattedValue:"formattedValue",label:"label",placeholder:"placeholder",type:"type",required:"required",disabled:"disabled",readonly:"readonly",maxFieldCharacters:"maxFieldCharacters",textColor:"textColor",xAlignment:"xAlignment",rowSpan:"rowSpan",lastFocusField:"lastFocusField",minValue:"minValue",maxValue:"maxValue",form:"form",isActive:"isActive",showTitle:"showTitle",layoutType:"layoutType",parentFieldKey:"parentFieldKey"},outputs:{valueChanged:"valueChanged",formValidationChanged:"formValidationChanged"},features:[t.ɵɵNgOnChangesFeature],decls:7,vars:5,consts:[[3,"formGroup"],["pepperiTemplate",""],[4,"ngIf"],[3,"label","required","disabled","maxFieldCharacters","xAlignment","showTitle","inputLength",4,"ngIf"],["appearance","outline"],["matInput","","autocomplete","off",1,"body-sm",3,"id","name","maxlength","placeholder","ngStyle","title","formControlName","type","value","disabled","ngClass","keyup","keypress","blur","keyup.enter","focus"],["input",""],["class","dis-grid",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["requiredError",""],["otherError",""],[1,"body-xs",3,"title","innerText"],["matPrefix","",3,"value","label","type","disabled",4,"ngIf"],["matSuffix","",3,"value","label","type","disabled",4,"ngIf"],[3,"label","required","disabled","maxFieldCharacters","xAlignment","showTitle","inputLength"],[1,"dis-grid"],["href","javascript:void(0)",1,"color-link","body-sm",3,"id","name","click"],["matPrefix","",3,"value","label","type","disabled"],["matSuffix","",3,"value","label","type","disabled"],["regularBlock",""],["groupedBlock",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formGroupName"],["matInput","","autocomplete","off",1,"body-sm",3,"id","name","placeholder","title","formControlName","value","disabled","keyup","keypress","blur","keyup.enter","focus"],["editBlock",""],["readOnlyBlock",""],[3,"ngClass"],[1,"pepperi-card-input","card-flex-container",3,"ngClass","click"],["class","body-xs title",3,"title",4,"ngIf"],[1,"body-sm","value",3,"id","title"],["class","pepperi-button weak card-edit-button","mat-button","",4,"ngIf"],[1,"body-xs","title",3,"title"],["mat-button","",1,"pepperi-button","weak","card-edit-button"],["name","system_edit"],["selectedBlock",""],["notSelectedBlock",""],["notEmptyBlock",""],["emptyBlock",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","color-link body-sm pepperi-report-input","target","_blank",3,"id","ngClass","title","href",4,"ngIf"],["target","_blank",1,"color-link","body-sm","pepperi-report-input",3,"id","ngClass","title","href"],[1,"body-sm","pepperi-report-input",3,"id","ngClass","title","ngStyle"],[3,"id"]],template:function(e,n){1&e&&(t.ɵɵelementContainerStart(0,0),t.ɵɵtemplate(1,E,18,45,"ng-template",null,1,t.ɵɵtemplateRefExtractor),t.ɵɵtemplate(3,N,6,3,"ng-container",2),t.ɵɵtemplate(4,D,6,3,"ng-container",2),t.ɵɵtemplate(5,ne,6,3,"ng-container",2),t.ɵɵtemplate(6,ae,2,3,"ng-container",2),t.ɵɵelementContainerEnd()),2&e&&(t.ɵɵproperty("formGroup",n.form),t.ɵɵadvance(3),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),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.layoutType===n.LAYOUT_TYPE.Editmodal))},directives:[r.NgControlStatusGroup,r.FormGroupDirective,n.NgIf,l.MatFormField,o.MatInput,r.DefaultValueAccessor,r.MaxLengthValidator,n.NgStyle,r.NgControlStatus,r.FormControlName,n.NgClass,l.MatError,c.PepperiFieldTitleComponent,d.PepperiTextboxIconComponent,l.MatPrefix,l.MatSuffix,n.NgTemplateOutlet,r.FormGroupName,i.MatButton,p.MatIcon,s.PepperiIconComponent,n.NgSwitch,n.NgSwitchCase,n.NgSwitchDefault],pipes:[m.TranslatePipe,u.ToNumber],styles:["[_nghost-%COMP%]{display:-ms-grid;display:grid;height:inherit}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{-ms-grid-row-align:center;align-self:center}.disable-hidden[_ngcontent-%COMP%]{display:none}.dis-grid[_ngcontent-%COMP%]{display:-ms-grid;display:grid}"],changeDetection:0});var le=function(e){this.pepperiIconRegistry=e,this.pepperiIconRegistry.registerIcons([s.pepperiIconSystemEdit])};le.ɵmod=t.ɵɵdefineNgModule({type:le}),le.ɵinj=t.ɵɵdefineInjector({factory:function(e){return new(e||le)(t.ɵɵinject(s.PepperiIconRegistry))},imports:[[n.CommonModule,r.ReactiveFormsModule,r.FormsModule,a.MatCommonModule,i.MatButtonModule,l.MatFormFieldModule,o.MatInputModule,p.MatIconModule,u.PepperiModule,s.PepperiIconModule,c.PepperiFieldTitleModule,d.PepperiTextboxIconModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(le,{declarations:[ie],imports:[n.CommonModule,r.ReactiveFormsModule,r.FormsModule,a.MatCommonModule,i.MatButtonModule,l.MatFormFieldModule,o.MatInputModule,p.MatIconModule,u.PepperiModule,s.PepperiIconModule,c.PepperiFieldTitleModule,d.PepperiTextboxIconModule],exports:[ie]}),e.PepperiTextboxComponent=ie,e.PepperiTextboxModule=le,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=pepperi-lib-textbox.umd.min.js.map