UNPKG

lamb-web-lib

Version:

LambWebLib. Es un proyecto angular de tipo Librería. que contiene una Suit de componentes reutilizables para el proyecto [Lamb Financial](https://lamb.upeu.edu.pe).

7 lines 55.8 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("@angular/common"),require("rxjs/operators"),require("rxjs"),require("@angular/animations"),require("@angular/platform-browser"),require("@angular/forms")):"function"==typeof define&&define.amd?define("lamb-web-lib",["exports","@angular/core","@angular/router","@angular/common","rxjs/operators","rxjs","@angular/animations","@angular/platform-browser","@angular/forms"],e):e(t["lamb-web-lib"]={},t.ng.core,t.ng.router,t.ng.common,t.rxjs.operators,t.rxjs,t.ng.animations,t.ng.platformBrowser,t.ng.forms)}(this,function(t,s,o,e,i,n,a,r,l){"use strict";var c=function(){function t(){}return t.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[]},t.ngInjectableDef=s.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),u=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:s.Component,args:[{selector:"lamb-lamb-web-lib",template:"\n <p>\n lamb-web-lib works!\n </p>\n ",styles:[]}]}],t.ctorParameters=function(){return[]},t}(),p=function(){function t(){}return t.decorators=[{type:s.NgModule,args:[{imports:[],declarations:[u],exports:[u]}]}],t}(),m=function(){function t(t,e,n){this.route=t,this.router=e,this.location=n,this.flag=!0}return t.prototype.ngOnInit=function(){this.initShowOrHideFlag(),this.eventFlagSubscribe()},t.prototype.initShowOrHideFlag=function(){var t=this.pathEnd(this.location.path());this.condition(t)},t.prototype.eventFlagSubscribe=function(){var n=this;this.router.events.pipe(i.filter(function(t){return t instanceof o.NavigationEnd})).subscribe(function(t){var e=n.pathEnd(t.url);n.condition(e)})},t.prototype.pathEnd=function(t){var e=t.split("/").filter(function(t){return""!==t});return e[e.length-1]},t.prototype.condition=function(t){var e=this.route.snapshot.url;if((e[0]&&e[0].path)===t)this.flag=!0;else if(null==e[0]){var n=this.route.parent.snapshot.url;(n[n.length-1]&&n[n.length-1].path)===t?this.flag=!0:this.flag=!1}else this.flag=!1},t.prototype.onBack=function(){var t=this.route.snapshot.url,e=t[0]&&t[0].path||"",n=e?"../"+e:"./"+e;this.router.navigate([n],{relativeTo:this.route})},t.decorators=[{type:s.Component,args:[{selector:"lamb-button-back",template:'\n <a class="btn btn-light lamb-button" [ngClass]="{\'lamb-flag\': flag}" (click)="onBack()">\n <span class="fa fa-reply" > </span>\n </a>\n ',styles:["\n .lamb-flag {\n visibility: hidden;\n }\n .lamb-button {\n /* padding: 0.3rem 0.6rem; */\n padding: 0.1rem 0.3rem;\n cursor: pointer !important;\n border-radius: 50%;\n -webkit-transition: -webkit-transform .4s ease-in-out;\n transition: transform .4s ease-in-out;\n }\n .lamb-button:hover {\n -webkit-transform: rotate(-360deg);\n transform: rotate(-360deg)\n }\n "]}]}],t.ctorParameters=function(){return[{type:o.ActivatedRoute},{type:o.Router},{type:e.Location}]},t}(),d=function(){function t(){}return t.decorators=[{type:s.NgModule,args:[{imports:[e.CommonModule],exports:[m],declarations:[m],providers:[]}]}],t}(),f=function(){function t(){this.colorClass="btn-light",this.icon="fa fa-plus-circle",this.label="New",this.size="lg"}return t.prototype.ngOnInit=function(){},t.decorators=[{type:s.Component,args:[{selector:"lamb-button-icon",template:'\x3c!-- <button class="btn lamb-btn-block btn-sm" [title]="title || \'\'" [routerLink]="routerLink" [disabled]="isDisabled"> --\x3e\n<button class="btn lamb-btn-block btn-{{ size }} {{ colorClass }}" [title]="title || \'\'" [disabled]="isDisabled">\n <span class="{{ icon }}" [ngClass]="{\'lamb-icon\': !onlyIcon, \'lamb-text-black\': (colorClass === \'btn-light\') }"></span>\n <span *ngIf="!onlyIcon" [ngClass]="{\'lamb-text-black\': (colorClass === \'btn-light\')}"> {{ label }}</span>\n</button>',styles:[".lamb-icon{margin-right:3px}@media (max-width:550px){.lamb-btn-block{display:block;width:100%}}:host{display:flex;flex-direction:column;position:relative;height:100%}"]}]}],t.ctorParameters=function(){return[]},t.propDecorators={colorClass:[{type:s.Input}],label:[{type:s.Input}],isDisabled:[{type:s.Input}],onlyIcon:[{type:s.Input}],icon:[{type:s.Input}],title:[{type:s.Input}],size:[{type:s.Input}]},t}(),b=function(){function t(){}return t.decorators=[{type:s.NgModule,args:[{imports:[e.CommonModule],declarations:[f],exports:[f]}]}],t}(),h=function(){function t(){}return Object.defineProperty(t.prototype,"modalClass",{get:function(){return"modal-backdrop fade show"},enumerable:!0,configurable:!0}),t.decorators=[{type:s.Component,args:[{selector:"lamb-modal-backdrop",template:"",styles:[]}]}],t.ctorParameters=function(){return[]},t.propDecorators={modalClass:[{type:s.HostBinding,args:["class"]}]},t}(),g={BACKDROP_CLICK:0,ESC:1};g[g.BACKDROP_CLICK]="BACKDROP_CLICK",g[g.ESC]="ESC";var v=function(){return(v=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function y(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,a=n.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(o=a.next()).done;)r.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=a["return"])&&n.call(a)}finally{if(i)throw i.error}}return r}function I(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(y(arguments[e]));return t}var x={Tab:9,Enter:13,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40};x[x.Tab]="Tab",x[x.Enter]="Enter",x[x.Escape]="Escape",x[x.Space]="Space",x[x.PageUp]="PageUp",x[x.PageDown]="PageDown",x[x.End]="End",x[x.Home]="Home",x[x.ArrowLeft]="ArrowLeft",x[x.ArrowUp]="ArrowUp",x[x.ArrowRight]="ArrowRight",x[x.ArrowDown]="ArrowDown";var C=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");var M=function(l,t){var e=n.fromEvent(l,"focusin").pipe(i.takeUntil(t),i.map(function(t){return t.target}));n.fromEvent(l,"keydown").pipe(i.takeUntil(t),i.filter(function(t){return t.which===x.Tab}),i.withLatestFrom(e)).subscribe(function(t){var e=y(t,2),n=e[0],o=e[1],i=y(function a(t){var e=t.querySelectorAll(C);return[e[0],e[e.length-1]]}(l),2),r=i[0],s=i[1];o===r&&n.shiftKey&&(s.focus(),n.preventDefault()),o!==s||n.shiftKey||(r.focus(),n.preventDefault())}),n.fromEvent(l,"click").pipe(i.takeUntil(t),i.withLatestFrom(e),i.map(function(t){return t[1]})).subscribe(function(t){return t.focus()})},w=function(){function t(t,e,n){this._elRef=e,this._renderer=n,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new s.EventEmitter,this._document=t,M(this._elRef.nativeElement,this.dismissEvent)}return Object.defineProperty(t.prototype,"modalClass",{get:function(){return"modal fade show d-block"+(this.windowClass?" "+this.windowClass:"")},enumerable:!0,configurable:!0}),t.prototype.backdropClick=function(t){!0===this.backdrop&&this._elRef.nativeElement===t.target&&this.dismiss(g.BACKDROP_CLICK)},t.prototype.escKey=function(t){this.keyboard&&!t.defaultPrevented&&this.dismiss(g.ESC)},t.prototype.dismiss=function(t){this.dismissEvent.emit(t)},t.prototype.ngOnInit=function(){this._elWithFocus=this._document.activeElement,this._renderer.addClass(this._document.body,"modal-open")},t.prototype.ngAfterViewInit=function(){this._elRef.nativeElement.contains(document.activeElement)||this._elRef.nativeElement.focus.apply(this._elRef.nativeElement,[])},t.prototype.ngOnDestroy=function(){var t,e=this._document.body,n=this._elWithFocus;(t=n&&n.focus&&e.contains(n)?n:e).focus.apply(t,[]),this._elWithFocus=null,this._renderer.removeClass(e,"modal-open")},t.decorators=[{type:s.Component,args:[{selector:"lamb-modal-window",template:"\n <div\n [class]=\"'modal-dialog' + (size ? ' modal-' + size : '') + (centered ? ' modal-dialog-centered' : '')\"\n role=\"document\">\n <div class=\"modal-content\"><ng-content></ng-content></div>\n </div>\n ",host:{role:"dialog",tabindex:"-1",style:"display: block;"}}]}],t.ctorParameters=function(){return[{type:undefined,decorators:[{type:s.Inject,args:[e.DOCUMENT]}]},{type:s.ElementRef},{type:s.Renderer2}]},t.propDecorators={backdrop:[{type:s.Input}],keyboard:[{type:s.Input}],size:[{type:s.Input}],centered:[{type:s.Input}],windowClass:[{type:s.Input}],dismissEvent:[{type:s.Output}],modalClass:[{type:s.HostBinding,args:["class"]}],backdropClick:[{type:s.HostListener,args:["click",["$event"]]}],escKey:[{type:s.HostListener,args:["keyup.esc",["$event"]]}]},t}(),k=function(){function t(){}return t.prototype.close=function(t){},t.prototype.dismiss=function(t){},t}(),S=function(){function t(t,e,n,o){var i=this;this.windowComponentRef=t,this.contentRef=e,this.backdropComponentRef=n,this.beforeDismiss=o,t.instance.dismissEvent.subscribe(function(t){i.dismiss(t)}),this.result=new Promise(function(t,e){i.resolve=t,i.reject=e}),this.result.then(null,function(){})}return Object.defineProperty(t.prototype,"componentInstance",{get:function(){if(this.contentRef.componentRef)return this.contentRef.componentRef.instance},set:function(t){},enumerable:!0,configurable:!0}),t.prototype.close=function(t){this.windowComponentRef&&(this.resolve(t),this.removeModalElements())},t.prototype.dismiss=function(t){this.windowComponentRef&&(this.beforeDismiss&&!1===this.beforeDismiss()||(this.reject(t),this.removeModalElements()))},t.prototype.removeModalElements=function(){var t=this.windowComponentRef.location.nativeElement;if(t.parentNode.removeChild(t),this.windowComponentRef.destroy(),this.backdropComponentRef){var e=this.backdropComponentRef.location.nativeElement;e.parentNode.removeChild(e),this.backdropComponentRef.destroy()}this.contentRef&&this.contentRef.viewRef&&this.contentRef.viewRef.destroy(),this.windowComponentRef=null,this.backdropComponentRef=null,this.contentRef=null},t}();function E(t){return t!==undefined&&null!==t}var R=function T(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n},j=function(){function t(t,e,n,o){this.applicationRef=t,this.injector=e,this.componentFactoryResolver=n,this._windowAttributes=["backdrop","keyboard","centered","size","windowClass"],this._document=o}return t.prototype.open=function(t,e,n,o){var i=E(o.container)?this._document.querySelector(o.container):this._document.body;if(!i)throw new Error('El contenedor modal especificado "'+(o.container||"body")+'" no fue encontrado en el DOM');var a=new k,r=this.getContentRef(t,o.injector||e,n,a),s=!1!==o.backdrop?this.attachBackdrop(i):null,l=this.attachWindowComponent(i,r),c=new S(l,r,s,o.beforeDismiss);return a.close=function(t){c.close(t)},a.dismiss=function(t){c.dismiss(t)},this.applyWindowOptions(l.instance,o),c},t.prototype.attachBackdrop=function(t){var e=this.componentFactoryResolver.resolveComponentFactory(h).create(this.injector);return this.applicationRef.attachView(e.hostView),t.appendChild(e.location.nativeElement),e},t.prototype.attachWindowComponent=function(t,e){var n=this.componentFactoryResolver.resolveComponentFactory(w).create(this.injector,e.nodes);return this.applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n},t.prototype.applyWindowOptions=function(e,n){this._windowAttributes.forEach(function(t){E(n[t])&&(e[t]=n[t])})},t.prototype.getContentRef=function(t,e,n,o){return n?n instanceof s.TemplateRef?this.createFromTemplateRef(n,o):function i(t){return"string"==typeof t}(n)?this.createFromString(n):this.createFromComponent(t,e,n,o):new R([])},t.prototype.createFromTemplateRef=function(t,e){var n=t.createEmbeddedView(e);return this.applicationRef.attachView(n),new R([n.rootNodes],n)},t.prototype.createFromString=function(t){var e=this._document.createTextNode(""+t);return new R([[e]])},t.prototype.createFromComponent=function(t,e,n,o){var i=t.resolveComponentFactory(n),a=s.ReflectiveInjector.resolveAndCreate([{provide:k,useValue:o}],e),r=i.create(a);return this.applicationRef.attachView(r.hostView),new R([[r.location.nativeElement]],r.hostView,r)},t.decorators=[{type:s.Injectable}],t.ctorParameters=function(){return[{type:s.ApplicationRef},{type:s.Injector},{type:s.ComponentFactoryResolver},{type:undefined,decorators:[{type:s.Inject,args:[e.DOCUMENT]}]}]},t}(),O=function(){function t(t,e,n){this.moduleCFR=t,this.injector=e,this.lambModalStackService=n}return t.prototype.open=function(t,e){return void 0===e&&(e={}),this.lambModalStackService.open(this.moduleCFR,this.injector,t,e)},t.decorators=[{type:s.Injectable}],t.ctorParameters=function(){return[{type:s.ComponentFactoryResolver},{type:s.Injector},{type:j}]},t}(),P=function(){function t(){}return t.decorators=[{type:s.NgModule,args:[{imports:[],declarations:[h,w],entryComponents:[h,w],providers:[O,j]}]}],t}(),N=function(){function t(t){this.activeModal=t}return t.prototype.ngOnInit=function(){},t.prototype.cancel=function(){this.activeModal.dismiss(!1)},t.prototype.ok=function(){this.activeModal.close({data:"Hi"})},t.prototype.dismiss=function(){this.activeModal.dismiss(!1)},t.decorators=[{type:s.Component,args:[{selector:"lamb-confirm-dialog",template:'<div class="modal-header">\n <h6 class="modal-title">{{ title }}</h6>\n <button type="button" class="close" aria-label="Close" (click)="dismiss()">\n <span aria-hidden="true">&times;</span>\n </button>\n</div>\n<div class="modal-body">\n {{ message }}\n</div>\n<div class="modal-footer">\n <button type="submit" class="btn btn-light btn-sm" (click)="cancel()" autofocus>{{ btnCancelText }}</button>\n <button type="button" class="btn btn-primary btn-sm" (click)="ok()" >{{ btnOkText }}</button>\n</div>',styles:[".btn.btn-light,.btn.btn-light:active,.btn.btn-light:hover{color:#2a2a2a}"]}]}],t.ctorParameters=function(){return[{type:k}]},t.propDecorators={title:[{type:s.Input}],message:[{type:s.Input}],btnOkText:[{type:s.Input}],btnCancelText:[{type:s.Input}]},t}(),D="¿Estas seguro de Eliminar este registro?",L="¿Estas seguro de Actualizar este registro?",H="¿Estas seguro de Guardar?",F="¿Estas seguro de realizar la Acción?",A=function(){function t(t){this.lambModalService=t}return t.prototype.confirm=function(t,e){void 0===t&&(t={});var n=this.lambModalService.open(N,{centered:!0});return n.componentInstance.title=t.title?t.title:this.config.title,n.componentInstance.message=t.message?t.message:this.getMessage(e),n.componentInstance.btnOkText=t.btnOkText?t.btnOkText:this.config.btnOkText,n.componentInstance.btnCancelText=t.btnCancelText?t.btnCancelText:this.config.btnCancelText,n.result},t.prototype.confirmDelete=function(t){return void 0===t&&(t={}),this.confirm(t,"D")},t.prototype.confirmUpdate=function(t){return void 0===t&&(t={}),this.confirm(t,"U")},t.prototype.confirmSave=function(t){return void 0===t&&(t={}),this.confirm(t,"S")},t.prototype.getMessage=function(t){switch(t){case"D":return D;case"U":return L;case"S":return H;default:return this.config.message}},Object.defineProperty(t.prototype,"config",{get:function(){return{title:"Confirmación",message:F,btnOkText:"OK",btnCancelText:"CANCELAR",dialogSize:"lg"}},enumerable:!0,configurable:!0}),t.decorators=[{type:s.Injectable}],t.ctorParameters=function(){return[{type:O}]},t}(),z=function(){function t(){}return t.decorators=[{type:s.NgModule,args:[{imports:[P],declarations:[N],providers:[A],entryComponents:[N]}]}],t}(),B=function(){function t(){this.justify="end"}return t.prototype.ngOnInit=function(){},t.decorators=[{type:s.Component,args:[{selector:"lamb-input-icon",template:'<div class="inner-addon {{ justify }}-addon">\n <ng-content></ng-content>\n</div>',styles:["::ng-deep .inner-addon{position:relative}::ng-deep .inner-addon .fa{position:absolute;top:25%;padding-right:.5rem;padding-left:.5rem;pointer-events:none;font-size:initial}.start-addon /deep/ .fa{left:0}.start-addon /deep/ input{padding-left:30px}.end-addon /deep/ .fa{right:0}.end-addon /deep/ input{padding-right:30px}"]}]}],t.ctorParameters=function(){return[]},t.propDecorators={justify:[{type:s.Input}]},t}(),V=function(){function t(){}return t.decorators=[{type:s.NgModule,args:[{imports:[],exports:[B],declarations:[B],providers:[]}]}],t}(),_=function $(t,e,n){this.buttonBack=t,this.buttonNext=e,this.buttonFinish=n},U=function(){function t(){this.justify="center",this.orientation="horizontal",this.type="stepss",this.configNames=new _("Anterior","Siguiente","Finalizar")}return t.decorators=[{type:s.Injectable}],t}(),W=a.trigger("slideOfRight",[a.transition(":enter",[a.style({transform:"translateX(100%)",opacity:0}),a.animate(".35s",a.style({transform:"translateX(0)",opacity:1}))]),a.transition(":leave",[a.style({transform:"translateX(0)",opacity:1}),a.animate(".35s",a.style({transform:"translateX(100%)",opacity:0}))]),a.state("next",a.style({height:"*",transform:"scaleY(1)"})),a.state("back",a.style({height:"6px",transform:"scaleY(0)"})),a.transition("* => back",[a.style({transform:"translateX(100%)",display:"block"}),a.animate(".35s",a.style({transform:"translateX(0)",display:"none"}))]),a.transition("* => next",[a.style({transform:"translateX(0)",display:"none"}),a.animate(".35s",a.style({transform:"translateX(100%)",display:"block"}))])]),q=function(){function t(t){this.templateRef=t}return t.decorators=[{type:s.Directive,args:[{selector:"ng-template[lambStepTitle]"}]}],t.ctorParameters=function(){return[{type:s.TemplateRef}]},t}(),K=function(){function t(t){this.templateRef=t}return t.decorators=[{type:s.Directive,args:[{selector:"ng-template[lambStepContent]"}]}],t.ctorParameters=function(){return[{type:s.TemplateRef}]},t}(),G=0,X=function(){function t(){this.id="lamb-step-"+G++,this.disabled=!1,this.isValidStep=!0}return Object.defineProperty(t.prototype,"validStep",{set:function(t){this.isValidStep="true"===t||!0===t},enumerable:!0,configurable:!0}),t.decorators=[{type:s.Directive,args:[{selector:"lamb-step"}]}],t.propDecorators={id:[{type:s.Input}],title:[{type:s.Input}],icon:[{type:s.Input}],data:[{type:s.Input}],disabled:[{type:s.Input}],validStep:[{type:s.Input}],contentTemplate:[{type:s.ContentChild,args:[K]}],titleTemplate:[{type:s.ContentChild,args:[q]}]},t}(),Y=function(){function t(t){this.config=t,this.hideContent=!1,this.destroyOnHide=!1,this.stepChange=new s.EventEmitter,this.onComplete=new s.EventEmitter,this.type=this.config.type,this.justify=this.config.justify,this.orientation=this.config.orientation,this.iConfigNames=this.config.configNames}return Object.defineProperty(t.prototype,"configNames",{set:function(t){this.iConfigNames.buttonBack=t.buttonBack||this.iConfigNames.buttonBack,this.iConfigNames.buttonNext=t.buttonNext||this.iConfigNames.buttonNext,this.iConfigNames.buttonFinish=t.buttonFinish||this.iConfigNames.buttonFinish},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"justify",{set:function(t){this.justifyClass="fill"===t||"justified"===t?"nav-"+t:"justify-content-"+t},enumerable:!0,configurable:!0}),t.prototype.onSelect=function(t){var e=this.getStepById(t),n=this.getStepById(this.activeId);if(e&&!e.disabled&&this.activeId!==e.id){var o=!1;this.stepChange.emit({activeId:this.activeId,activeData:n.data||null,nextId:e.id,preventDefault:function(){o=!0}}),o||(this.activeId=e.id)}},t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentChecked=function(){var t=this.getStepById(this.activeId);this.activeId=t?t.id:this.steps.length?this.steps.first.id:null},t.prototype.getStepById=function(e){var t=this.steps.filter(function(t){return t.id===e});return t.length?t[0]:null},t.prototype.back=function(){var t=this.getStepIdSplice(-1);this.onSelect(t)},t.prototype.next=function(){var t=this.getStepIdSplice(1);this.onSelect(t)},t.prototype.complete=function(){this.onComplete.emit()},t.prototype.getStepIdSplice=function(t){var e=this.activeId;return""+e.slice(0,e.length-1)+(parseInt(e.slice(e.length-1,e.length),10)+t)},Object.defineProperty(t.prototype,"hidePrevious",{get:function(){return"lamb-step-0"!==this.activeId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideNext",{get:function(){var t=this.steps.length-1;return this.activeId!=="lamb-step-"+t},enumerable:!0,configurable:!0}),t.prototype.hideLineRight=function(t){var e=parseInt(t.slice(t.length-1,t.length),10);return this.steps.length!==e+1},t.prototype.ngOnDestroy=function(){G=0},t.decorators=[{type:s.Component,args:[{selector:"lamb-step-group",template:'\x3c!-- <ul class="nav justify-content-center" id="myStep" role="steplist"> --\x3e\n<ul [class]="\'nav lamb-nav-tabs nav-\' + type + (orientation == \'horizontal\'? \' \' + justifyClass : \' flex-column\' )" id="myStep"\n role="steplist">\n\n \x3c!-- <ng-template ngFor let-step [ngForOf]="steps" *ngFor="let step of steps"> --\x3e\n <ng-template ngFor let-step [ngForOf]="steps">\n <li class="nav-item">\n <a [id]="step.id" class="nav-link" [class.active]="step.id === activeId" [class.disabled]="step.disabled || !step.isValidStep"\n (click)="!!onSelect(step.id)" role="step" [attr.stepindex]="(step.disabled || !step.isValidStep ? \'-1\': undefined)"\n [attr.aria-controls]="(!destroyOnHide || step.id === activeId ? step.id + \'-panel\': null)" [attr.aria-expanded]="step.id === activeId"\n [attr.aria-disabled]="step.disabled || !step.isValidStep">\n \x3c!-- data-toggle="step"\n aria-selected="true" --\x3e\n <ng-template [ngIf]="step.icon">\n <span class="lamb-round-tabs" [title]="step.title">\n <i class="{{ step.icon }} lamb-icon"></i>\n </span>\n </ng-template>\n <br>\n <span class="lamb-round-text">\n {{ step.title }}\n </span>\n <ng-template [ngTemplateOutlet]="step.titleTemplate?.templateRef"></ng-template>\n </a>\n </li>\n <li class="nav-line" *ngIf="hideLineRight(step.id)">\n <div class="lamb-liner"></div>\n </li>\n </ng-template>\n\n \x3c!-- <ng-content select="lamb-step-head"></ng-content> --\x3e\n</ul>\n<div class="tab-content lamb-content" id="myStepContent">\n \x3c!-- <ng-content select="lamb-step-body"></ng-content> --\x3e\n <ng-template ngFor let-step [ngForOf]="steps">\n \x3c!-- class="step-pane fade {{ step.id === activeId ? \'active\': null }}" --\x3e\n \x3c!-- \n <div [@slideOfRight]="((step.id === activeId) && (status === \'next\')) ? \'next\': \'back\'" class="tab-pane {{ step.id === activeId ? \'active\': \'active\' }}"\n *ngIf="!destroyOnHide || step.id === activeId" role="steppanel" [attr.aria-labelledby]="step.id" id="{{ step.id }}-panel"\n [attr.aria-expanded]="step.id === activeId"> --\x3e\n\n <div class="tab-pane {{ step.id === activeId ? \'active\': null }}" *ngIf="!destroyOnHide || step.id === activeId" role="steppanel"\n [attr.aria-labelledby]="step.id" id="{{ step.id }}-panel" [attr.aria-expanded]="step.id === activeId">\n <div class="row">\n <div class="col-md-12">\n <ng-template [ngTemplateOutlet]="step.contentTemplate?.templateRef"></ng-template>\n </div>\n </div>\n <div class="row lamb-button-manage">\n <div class="offset-md-4 col-md-4">\n <div class="row">\n <div class="col-md-6" *ngIf="hidePrevious">\n <div class="form-group text-center space-20">\n <button class="btn btn-sm btn-block btn-outline-rounded btn-default" (click)="back()">\n <span style="margin-right:10px;" class="fa fa-arrow-left"></span>\n {{ iConfigNames.buttonBack }}\n </button>\n </div>\n </div>\n <div class="col-md-6" *ngIf="hideNext">\n <div class="form-group text-center space-20">\n <button class="btn btn-sm btn-block btn-outline-rounded btn-info" [disabled]="!step.isValidStep" (click)="next()">\n {{ iConfigNames.buttonNext }}\n <span style="margin-left:10px;" class="fa fa-arrow-right"></span>\n </button>\n </div>\n </div>\n <div class="col-md-6" *ngIf="hidePrevious && !hideNext">\n <div class="form-group text-center space-20">\n <button class="btn btn-sm btn-block btn-outline-rounded btn-info" [disabled]="!step.isValidStep" (click)="complete()">\n {{ iConfigNames.buttonFinish }}\n <span style="margin-left:10px;" class="fa fa-check"></span>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n</div>',styles:[".lamb-liner{height:2px;position:relative;width:5rem;margin:0 auto;left:0;right:0;top:1.8rem;z-index:1}.tab-content{padding-top:2rem}.nav-link{padding:0 0 5px}.nav-link .lamb-round-text{text-transform:uppercase;font-size:.7rem}@media (max-width:550px){.lamb-liner{width:1rem}.nav-link .lamb-round-text{display:none}}.nav-link.active span.lamb-round-tabs{background:#ffa92d}.lamb-nav-tabs{border-bottom:transparent;position:relative;margin:0 auto;box-sizing:border-box;text-align:center;padding:0 1.5rem}.lamb-nav-tabs li.nav-line{padding-left:0;padding-right:0}.lamb-nav-tabs li a{text-decoration:none}.lamb-button-manage{margin-top:1.5rem}span.lamb-round-tabs{width:40px;height:40px;line-height:40px;display:inline-block;border-radius:100px;z-index:2;left:-1;text-align:center;font-size:1.3rem;position:relative;margin-top:.6rem;margin-bottom:0}"],animations:[W]}]}],t.ctorParameters=function(){return[{type:U}]},t.propDecorators={steps:[{type:s.ContentChildren,args:[X]}],activeId:[{type:s.Input}],configNames:[{type:s.Input}],destroyOnHide:[{type:s.Input}],stepChange:[{type:s.Output}],onComplete:[{type:s.Output}],justify:[{type:s.Input}],orientation:[{type:s.Input}],type:[{type:s.Input}]},t}(),Z=[Y,X,q,K],J=function(){function t(){}return t.decorators=[{type:s.NgModule,args:[{imports:[e.CommonModule],exports:I(Z),declarations:I(Z),providers:[U]}]}],t}(),Q=function(){function t(){this.justify="center",this.orientation="horizontal",this.type="tabss"}return t.decorators=[{type:s.Injectable}],t}(),tt=function(){function t(t){this.templateRef=t}return t.decorators=[{type:s.Directive,args:[{selector:"ng-template[lambTabGroupTitle]"}]}],t.ctorParameters=function(){return[{type:s.TemplateRef}]},t}(),et=function(){function t(t){this.templateRef=t}return t.decorators=[{type:s.Directive,args:[{selector:"ng-template[lambTabTitle]"}]}],t.ctorParameters=function(){return[{type:s.TemplateRef}]},t}(),nt=function(){function t(t){this.templateRef=t}return t.decorators=[{type:s.Directive,args:[{selector:"ng-template[lambTabContent]"}]}],t.ctorParameters=function(){return[{type:s.TemplateRef}]},t}(),ot=0,it=function(){function t(){this.id="lamb-tab-"+ot++,this.disabled=!1}return t.decorators=[{type:s.Directive,args:[{selector:"lamb-tab"}]}],t.propDecorators={id:[{type:s.Input}],title:[{type:s.Input}],icon:[{type:s.Input}],disabled:[{type:s.Input}],contentTemplate:[{type:s.ContentChild,args:[nt]}],titleTemplate:[{type:s.ContentChild,args:[et]}]},t}(),at=function(){function t(t){this.config=t,this.destroyOnHide=!0,this.tabChange=new s.EventEmitter,this.type=this.config.type,this.justify=this.config.justify,this.orientation=this.config.orientation}return Object.defineProperty(t.prototype,"justify",{set:function(t){this.justifyClass="fill"===t||"justified"===t?"nav-"+t:"justify-content-"+t},enumerable:!0,configurable:!0}),t.prototype.onSelect=function(t){var e=this.getTabById(t);if(e&&!e.disabled&&this.activeId!==e.id){var n=!1;this.tabChange.emit({activeId:this.activeId,nextId:e.id,preventDefault:function(){n=!0}}),n||(this.activeId=e.id)}},t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentChecked=function(){var t=this.getTabById(this.activeId);this.activeId=t?t.id:this.tabs.length?this.tabs.first.id:null},t.prototype.getTabById=function(e){var t=this.tabs.filter(function(t){return t.id===e});return t.length?t[0]:null},t.decorators=[{type:s.Component,args:[{selector:"lamb-tab-group",exportAs:"lambTabset",template:'\x3c!-- <ul class="nav justify-content-center" id="myTab" role="tablist"> --\x3e\n<div class="row">\n <div [class]="\'col-md-\' + (orientation === \'horizontal\' ? \'12\' : \'2\' ) ">\n \x3c!-- <div class="card">\n <div class="card-body"> --\x3e\n <ul *ngIf="orientation === \'horizontal\' && tabGroupTitle?.templateRef" class="nav flex-column lamb-nav-group-title">\n <li class="nav-item-group-title">\n <ng-template [ngTemplateOutlet]="tabGroupTitle?.templateRef">\n </ng-template>\n </li>\n </ul>\n <ul [class]="\'nav nav-\' + type + (orientation === \'horizontal\' ? \' \' + justifyClass + \' lamb-nav-horizontal\' : \' flex-column lamb-ul-nav-vertical\' )"\n id="myTab" role="tablist">\n <li class="nav-item-group-title" *ngIf="orientation === \'vertical\' && tabGroupTitle?.templateRef">\n <ng-template [ngTemplateOutlet]="tabGroupTitle?.templateRef">\n </ng-template>\n </li>\n \x3c!-- <li> --\x3e\n \x3c!-- <ul>hola</ul> --\x3e\n \x3c!-- </li> --\x3e\n <li *ngFor="let tab of tabs" class="nav-item">\n <a [id]="tab.id" [class]="\'nav-link\' + (orientation === \'horizontal\'? \' lamb-nav-horizontal\': \' lamb-nav-vertical\' )" [class.active]="tab.id === activeId"\n [class.disabled]="tab.disabled" (click)="!!onSelect(tab.id)" role="tab" [attr.tabindex]="(tab.disabled ? \'-1\': undefined)"\n [attr.aria-controls]="(!destroyOnHide || tab.id === activeId ? tab.id + \'-panel\': null)" [attr.aria-expanded]="tab.id === activeId"\n [attr.aria-disabled]="tab.disabled">\n \x3c!-- data-toggle="tab"\n aria-selected="true" --\x3e\n <ng-template [ngIf]="tab.icon">\n <span>\n <i class="{{ tab.icon }} lamb-icon"></i>\n </span>\n </ng-template>\n {{ tab.title }}\n <ng-template [ngTemplateOutlet]="tab.titleTemplate?.templateRef"></ng-template>\n </a>\n </li>\n \x3c!-- <ng-content select="lamb-tab-head"></ng-content> --\x3e\n </ul>\n \x3c!-- </div>\n </div> --\x3e\n </div>\n <div [class]="\'col-md-\' + (orientation === \'horizontal\' ? \'12\' : \'10\' ) ">\n\n <div class="tab-content" id="myTabContent">\n \x3c!-- <ng-content select="lamb-tab-body"></ng-content> --\x3e\n <ng-template ngFor let-tab [ngForOf]="tabs">\n \x3c!-- class="tab-pane fade {{ tab.id === activeId ? \'active\': null }}" --\x3e\n <div class="tab-pane {{ tab.id === activeId ? \'active\': null }}" *ngIf="!destroyOnHide || tab.id === activeId" role="tabpanel"\n [attr.aria-labelledby]="tab.id" id="{{ tab.id }}-panel" [attr.aria-expanded]="tab.id === activeId">\n <ng-template [ngTemplateOutlet]="tab.contentTemplate?.templateRef"></ng-template>\n </div>\n </ng-template>\n </div>\n </div>\n</div>',styles:["ul.nav{margin-bottom:.8rem;padding-left:0}ul.lamb-ul-nav-vertical{border-bottom:none}.nav-item-group-title{font-weight:400;text-transform:uppercase;padding:.5rem 1rem}.nav-item-group-title /deep/ i{width:50rem}.lamb-nav-group-title{margin-bottom:0!important;text-align:center}.nav-item{text-transform:uppercase;font-weight:400}.nav-item .nav-link{cursor:pointer;font-size:.7rem}.nav-item .nav-link.lamb-nav-vertical{border-right:.214rem solid transparent;display:flex;min-height:2.5rem}.nav-item .nav-link.lamb-nav-horizontal{border-bottom:.214rem solid transparent;display:flex}.nav-item .nav-link:not(.disabled).active,.nav-item .nav-link:not(.disabled).active:focus,.nav-item .nav-link:not(.disabled).active:hover{font-weight:500}.nav-item .nav-link ::ng-deep .lamb-icon{font-size:medium;margin-right:6px}.nav-item .nav-link.disabled{cursor:not-allowed}.nav-item .nav-link.disabled:focus,.nav-item .nav-link.disabled:hover{color:inherit}"]}]}],t.ctorParameters=function(){return[{type:Q}]},t.propDecorators={tabs:[{type:s.ContentChildren,args:[it]}],tabGroupTitle:[{type:s.ContentChild,args:[tt]}],activeId:[{type:s.Input}],destroyOnHide:[{type:s.Input}],tabChange:[{type:s.Output}],justify:[{type:s.Input}],orientation:[{type:s.Input}],type:[{type:s.Input}]},t}(),rt=[at,it,et,nt,tt],st=function(){function t(){}return t.decorators=[{type:s.NgModule,args:[{imports:[e.CommonModule],exports:I(rt),declarations:I(rt),providers:[Q]}]}],t}(); /** * @license * Copyright Lamb Team. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ function lt(t){return"string"==typeof t?"true"===(t=t.toLowerCase().trim())||""===t:!!t}var ct=new n.ReplaySubject(1),ut=new n.ReplaySubject(1),pt=new n.ReplaySubject(1),mt=new n.ReplaySubject(1),dt=new n.ReplaySubject(1),ft=new n.ReplaySubject(1),bt=new n.ReplaySubject(1),ht=function(){function t(t){this.location=t,this.items=[],this.items=[]}return t.prototype.getItems=function(){return this.items},t.prototype.collapseAll=function(t,e,n){var o=this,i=this.getParent(e,n);t.forEach(function(t){return o.collapseItem(t,e,i)})},t.prototype.getParent=function(t,e){if(e){var n=[];return n.push(e),e.parent&&n.push.apply(n,I(this.getParent(t,e.parent))),n}},t.prototype.itemHover=function(t,e){ut.next({tag:e,item:t})},t.prototype.submenuToggle=function(t,e){ct.next({tag:e,item:t})},t.prototype.selectItem=function(t,e){t.selected=!0,this.itemSelect(t,e),this.selectParent(t,e)},t.prototype.selectParent=function(t,e){var n=t.parent;n&&(n.expanded||(n.expanded=!0,this.submenuToggle(n,e)),n.selected=!0,this.selectParent(n,e))},t.prototype.itemClick=function(t,e){mt.next({tag:e,item:t})},t.prototype.itemSelect=function(t,e){pt.next({tag:e,item:t})},t.prototype.onAddItem=function(){return dt.pipe(i.share())},t.prototype.onNavigateHome=function(){return ft.pipe(i.share())},t.prototype.onGetSelectedItem=function(){return bt.pipe(i.share())},t.prototype.resetItems=function(t){var e=this;t.forEach(function(t){return e.resetItem(t)})},t.prototype.resetItem=function(t){var e=this;t.selected=!1,t.children&&t.children.forEach(function(t){e.resetItem(t)})},t.prototype.prepareItems=function(t){var e=this;t.forEach(function(t){return e.setParent(t)})},t.prototype.setParent=function(e){var n=this;e.children&&e.children.forEach(function(t){t.parent=e,n.setParent(t)})},t.prototype.updateSelection=function(t,e,n){var o=this;void 0===n&&(n=!1),n&&this.collapseAll(t,e),t.forEach(function(t){return o.selectItemByUrl(t,e)})},t.prototype.selectItemByUrl=function(t,e){var n=t.selected,o=this.selectedInUrl(t);!n&&o&&this.selectItem(t,e),t.children&&this.updateSelection(t.children,e)},t.prototype.selectedInUrl=function(t){var e="full"===t.pathMatch,n=this.location.path();return e&&n===t.link||!e&&n.includes(t.link)||e&&t.fragment&&n.substr(n.indexOf("#")+1).includes(t.fragment)},t.prototype.collapseItem=function(e,n,t){var o=this;if(!t||!t.some(function(t){return t===e})){var i=e.expanded;e.expanded=!1,i&&this.submenuToggle(e),e.children&&e.children.forEach(function(t){return o.collapseItem(t,n)})}},t.decorators=[{type:s.Injectable}],t.ctorParameters=function(){return[{type:e.Location}]},t}(),gt=function(){function t(t,e){this.lambMenuInternalService=t,this.router=e,this.lambItems=[],this.alive=!0,this.autoCollapseValue=!1}return Object.defineProperty(t.prototype,"items",{set:function(t){t&&(this.lambItems=t,this.afterLoadItems())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inverse",{set:function(t){this.inverseValue=lt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoCollapse",{set:function(t){this.autoCollapseValue=lt(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t,e=this;this.lambMenuInternalService.onAddItem().pipe(i.takeWhile(function(){return e.alive}),i.filter(function(t){return e.compareTag(t.tag)})).subscribe(function(t){return e.onAddItem(t)}),this.lambMenuInternalService.onNavigateHome().pipe(i.takeWhile(function(){return e.alive}),i.filter(function(t){return e.compareTag(t.tag)})).subscribe(function(){return e.navigateHome()}),this.lambMenuInternalService.onGetSelectedItem().pipe(i.takeWhile(function(){return e.alive}),i.filter(function(t){return e.compareTag(t.tag)})).subscribe(function(t){t.listener.next({tag:e.tag,item:e.getSelectedItem(e.lambItems)})}),this.router.events.pipe(i.takeWhile(function(){return e.alive}),i.filter(function(t){return t instanceof o.NavigationEnd})).subscribe(function(){e.lambMenuInternalService.resetItems(e.lambItems),e.lambMenuInternalService.updateSelection(e.lambItems,e.tag,e.autoCollapseValue)}),(t=this.lambItems).push.apply(t,I(this.lambMenuInternalService.getItems()))},t.prototype.getSelectedItem=function(t){var e=this,n=null;return t.forEach(function(t){t.selected&&(n=t),t.selected&&t.children&&0<t.children.length&&(n=e.getSelectedItem(t.children))}),n},t.prototype.afterLoadItems=function(){var t=this;this.lambMenuInternalService.prepareItems(this.lambItems),setTimeout(function(){return t.lambMenuInternalService.updateSelection(t.lambItems,t.tag)})},t.prototype.ngAfterViewInit=function(){},t.prototype.onAddItem=function(t){var e;(e=this.lambItems).push.apply(e,I(t.items)),this.lambMenuInternalService.prepareItems(this.lambItems),this.lambMenuInternalService.updateSelection(this.lambItems,this.tag,this.autoCollapseValue)},t.prototype.onHoverItem=function(t){this.lambMenuInternalService.itemHover(t,this.tag)},t.prototype.onSelectItem=function(t){this.lambMenuInternalService.resetItems(this.lambItems),this.lambMenuInternalService.selectItem(t,this.tag)},t.prototype.onItemClick=function(t){this.lambMenuInternalService.itemClick(t,this.tag)},t.prototype.ngOnDestroy=function(){this.alive=!1},t.prototype.onToggleSubMenu=function(t){this.autoCollapseValue&&this.lambMenuInternalService.collapseAll(this.lambItems,this.tag,t),t.expanded=!t.expanded,this.lambMenuInternalService.submenuToggle(t,this.tag)},t.prototype.compareTag=function(t){return!t||t===this.tag},t.prototype.navigateHome=function(){var t=this.getHomeItem(this.lambItems);t&&(t.link&&this.router.navigate([t.link]),t.url&&(window.location.href=t.url))},t.prototype.getHomeItem=function(t){try{for(var e=function n(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}(t),o=e.next();!o.done;o=e.next()){var i=o.value;if(i.home)return i;var a=i.children&&this.getHomeItem(i.children);if(a)return a}}catch(l){r={error:l}}finally{try{o&&!o.done&&(s=e["return"])&&s.call(e)}finally{if(r)throw r.error}}var r,s},t.decorators=[{type:s.Component,args:[{selector:"lamb-menu",template:'\n <ul class="lamb-menu-items">\n <li lambMenuItem *ngFor="let item of lambItems"\n [lambMenuItemm]="item"\n (hoverItem)="onHoverItem($event)"\n (toggleSubMenu)="onToggleSubMenu($event)"\n (selectItem)="onSelectItem($event)"\n (itemClick)="onItemClick($event)"\n class="lamb-menu-item"></li>\n </ul>\n ',styles:['@charset "UTF-8";:host ::ng-deep{display:block;margin:0 -1.25rem -1.25rem}:host ::ng-deep .lamb-menu-item>.lamb-menu-items,:host ::ng-deep .lamb-menu-items{list-style-type:none;overflow:hidden;transition:max-height .3s ease-in}:host ::ng-deep .lamb-menu-item a{display:flex;color:inherit;text-decoration:none;align-items:center}:host ::ng-deep .lamb-menu-item a .lamb-menu-title{flex:1}']}]}],t.ctorParameters=function(){return[{type:ht},{type:o.Router}]},t.propDecorators={inverseValue:[{type:s.HostBinding,args:["class.inverse"]}],tag:[{type:s.Input}],items:[{type:s.Input}],inverse:[{type:s.Input}],autoCollapse:[{type:s.Input}]},t}(),vt=function(){function t(){}return t.prototype.addItems=function(t,e){dt.next({tag:e,items:t})},t.prototype.navigateHome=function(t){ft.next({tag:t})},t.prototype.getSelectedItem=function(t){var e=new n.BehaviorSubject(null);return bt.next({tag:t,listener:e}),e.asObservable()},t.prototype.onSubmenuToggle$=function(){return ct.pipe(i.share())},t.prototype.onItemClick=function(){return mt.pipe(i.share())},t.prototype.onItemSelect=function(){return pt.pipe(i.share())},t.prototype.onItemHover=function(){return ut.pipe(i.share())},t.decorators=[{type:s.Injectable}],t.ctorParameters=function(){return[]},t}();var yt=function(){function t(t){this.lambMenuService=t,this.lambMenuItem=null,this.hoverItem=new s.EventEmitter,this.toggleSubMenu=new s.EventEmitter,this.selectItem=new s.EventEmitter,this.itemClick=new s.EventEmitter,this.alive=!0,this.maxHeight=0}return Object.defineProperty(t.prototype,"lambMenuItemm",{set:function(t){t&&(t.icon=t.icon&&"icmn-books"!==t.icon&&"icmb-books"!==t.icon&&t.icon||this.randonIcon(),t.link=t.link&&!t.url&&!(t.children&&t.children.length)&&!t.group&&!t.hidden&&"/"+t.link,this.lambMenuItem=t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.subMenu.changes.pipe(i.takeWhile(function(){return t.alive})).subscribe(function(){t.updateSubmenuHeight(),t.updateMaxHeight()}),this.lambMenuService.onSubmenuToggle$().pipe(i.takeWhile(function(){return t.alive})).subscribe(function(){t.updateMaxHeight()}),this.updateSubmenuHeight(),this.updateMaxHeight()},t.prototype.ngOnDestroy=function(){this.alive=!1},Object.defineProperty(t.prototype,"icons",{get:function(){return["fa fa-adn","fa fa-code","fa fa-bullhorn","fa fa-ambulance","fa fa-android","fa fa-angellist","fa fa-apple","fa fa-at","fa fa-chrome","fa fa-child"]},enumerable:!0,configurable:!0}),t.prototype.randonIcon=function(){return this.icons[Math.floor(Math.random()*this.icons.length)]},t.prototype.updateSubmenuHeight=function(){this.lambMenuItem.subMenuHeight=this.subMenu.reduce(function(t,e){return t+function n(t){var e=window.getComputedStyle(t),n=parseInt(e.getPropertyValue("margin-top"),10),o=parseInt(e.getPropertyValue("margin-bottom"),10);return t.offsetHeight+n+o}(e.nativeElement)},0)},t.prototype.updateMaxHeight=function(){var t=this;setTimeout(function(){t.maxHeight=function n(t){return t.expanded?(t.subMenuHeight||0)+t.children.filter(function(t){return t.children}).reduce(function(t,e){return t+n(e)},0):0}(t.lambMenuItem)},0)},t.prototype.onHoverItem=function(t){this.hoverItem.emit(t)},t.prototype.onToggleSubMenu=function(t){this.toggleSubMenu.emit(t)},t.prototype.onItemClick=function(t){this.itemClick.emit(t)},t.prototype.onSelectItem=function(t){this.selectItem.emit(t)},t.decorators=[{type:s.Component,args:[{selector:"[lambMenuItem]",template:'<span *ngIf="lambMenuItem.group && !lambMenuItem.hidden">\n <i class="lamb-menu-icon {{ lambMenuItem.icon }}" *ngIf="lambMenuItem.icon"></i>\n {{ lambMenuItem.title }} 1\n</span>\n<a *ngIf="lambMenuItem.link && !lambMenuItem.url\n && !(lambMenuItem.children && lambMenuItem.children.length) && !lambMenuItem.group && !lambMenuItem.hidden" [routerLink]="lambMenuItem.link"\n [fragment]="lambMenuItem.fragment" [attr.target]="lambMenuItem.target" [attr.title]="lambMenuItem.title" [class.active]="lambMenuItem.selected"\n (mouseenter)="onHoverItem(lambMenuItem)">\n <i class="lamb-menu-icon {{ lambMenuItem.icon }}" *ngIf="lambMenuItem.icon"></i>\n <span class="lamb-menu-title">{{ lambMenuItem.title }}</span>\n</a>\n<a *ngIf="lambMenuItem.url && !(lambMenuItem.children && lambMenuItem.children.length)\n && !lambMenuItem.link && !lambMenuItem.group && !lambMenuItem.hidden" [attr.href]="lambMenuItem.url" [attr.target]="lambMenuItem.target"\n [attr.title]="lambMenuItem.title" [class.active]="lambMenuItem.selected" (mouseenter)="onHoverItem(lambMenuItem)" (click)="onSelectItem(lambMenuItem)">\n <i class="lamb-menu-icon {{ lambMenuItem.icon }}" *ngIf="lambMenuItem.icon"></i>\n <span class="lamb-menu-title">{{ lambMenuItem.title }}</span>\n</a>\n<a *ngIf="!(lambMenuItem.children && lambMenuItem.children.length) && !lambMenuItem.link\n && !lambMenuItem.url && !lambMenuItem.group && !lambMenuItem.hidden" [attr.target]="lambMenuItem.target" [attr.title]="lambMenuItem.title"\n [class.active]="lambMenuItem.selected" (mouseenter)="onHoverItem(lambMenuItem)" (click)="$event.preventDefault(); onItemClick(lambMenuItem);">\n <i class="lamb-menu-icon {{ lambMenuItem.icon }}" *ngIf="lambMenuItem.icon"></i>\n <span class="lamb-menu-title">{{ lambMenuItem.title }}</span>\n</a>\n<a *ngIf="(lambMenuItem.children && lambMenuItem.children.length) && !lambMenuItem.hidden" (click)="$event.preventDefault(); onToggleSubMenu(lambMenuItem);"\n [attr.target]="lambMenuItem.target" [attr.title]="lambMenuItem.title" [class.active]="lambMenuItem.selected" (mouseenter)="onHoverItem(lambMenuItem)"\n href="#">\n <i class="lamb-menu-icon {{ lambMenuItem.icon }}" *ngIf="lambMenuItem.icon"></i>\n <span class="lamb-menu-title">{{ lambMenuItem.title }}</span>\n \x3c!-- <i class="ion chevron" [class.ion-chevron-up]="!lambMenuItem.expanded" [class.ion-chevron-down]="lambMenuItem.expanded"></i> --\x3e\n <i class="fa chevron" [class.fa-chevron-up]="!lambMenuItem.expanded" [class.fa-chevron-down]="lambMenuItem.expanded"></i>\n</a>\n<ul *ngIf="(lambMenuItem.children && lambMenuItem.children.length) && !lambMenuItem.hidden" [class.collapsed]="!(lambMenuItem.children && lambMenuItem.expanded)"\n [class.expanded]="lambMenuItem.expanded" class="lamb-menu-items" [style.max-height.px]="maxHeight">\n <li lambMenuItem *ngFor="let item of lambMenuItem.children" [lambMenuItemm]="item" [class.lamb-menu-group]="item.group" (hoverItem)="onHoverItem($event)"\n (toggleSubMenu)="onToggleSubMenu($event)" (selectItem)="onSelectItem($event)" (itemClick)="onItemClick($event)" class="lamb-menu-item"></li>\n</ul>'}]}],t.ctorParameters=function(){return[{type:vt}]},t.propDecorators={lambMenuItemm:[{type:s.Input}],hoverItem:[{type:s.Output}],toggleSubMenu:[{type:s.Output}],selectItem:[{type:s.Output}],itemClick:[{type:s.Output}],subMenu:[{type:s.ViewChildren,args:[t,{read:s.ElementRef}]}]},t}(),It=[ht,vt],xt=[gt,yt],Ct=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:I(It)}},t.decorators=[{type:s.NgModule,args:[{imports:[e.CommonModule,o.RouterModule],declarations:I(xt),exports:I(xt),providers:I(It)}]}],t}(),Mt=function wt(){this.pathMatch="full",this.subMenuHeight=0},kt={appName:"Mi Aplicación!"},St=new s.InjectionToken("Configuración del Título"),Et=function(){function t(t,e){this.titleService=t,this.config=e,this.titleConfig=v({},e["default"],e.config)}return t.prototype.getTitle=function(){return this.titleService.getTitle()},t.prototype.setTitle=function(t){this.titleService.setTitle(t?t+" | "+this.titleConfig.appName:this.titleConfig.appName)},t.decorators=[{type:s.Injectable}],t.ctorParameters=function(){return[{type:r.Title},{type:undefined,decorators:[{type:s.Inject,args:[St]}]}]},t}(),Rt=function(){function e(){}return e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[Et,{provide:St,useValue:{"default":kt,config:t}}]}},e.decorators=[{type:s.NgModule,args:[{providers:[]}]}],e}(),Tt=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:s.Component,args:[{selector:"lamb-fieldset",template:'\n <fieldset class="lamb-fieldset-border">\n <legend class="lamb-legend-border">\n <ng-content select="lamb-fieldset-head"></ng-content>\n </legend>\n <ng-content></ng-content>\n <ng-content select="lamb-fieldset-body"></ng-content>\n </fieldset>\n ',styles:[".lamb-fieldset-border{padding:0 1em 1em!important}.lamb-legend-border{text-align:left!important;width:auto;padding:0 10px;border-bottom:none}"]}]}],t.ctorParameters=function(){return[]},t}(),jt=function(){function t(){}return t.decorators=[{type:s.Component,args:[{selector:"lamb-fieldset-head",template:'\n <ng-content></ng-content>\n <ng-content caption="lamb-fieldset-icon" ></ng-content>\n <ng-content caption="lamb-fieldset-title"></ng-content>\n '}]}],t.ctorParameters=function(){return[]},t}(),Ot=function(){function t(){}return t.decorators=[{type:s.Component,args:[{selector:"lamb-fieldset-body",template:"\n <ng-content></ng-content>\n "}]}],t.ctorParameters=function(){return[]},t}(),Pt=function(){function t(){}return t.decorators=[{type:s.Component,args:[{selector:"lamb-fieldset-title",template:"\n <ng-content></ng-content>\n "}]}],t.ctorParameters=function(){return[]},t}(),Nt=function(){function t(){}return t.decorators=[{type:s.Component,args:[{selector:"lamb-fieldset-icon",template:'\n <span class="{{ icon }} lamb-icon" ></span>\n ',styles:["\n .lamb-icon {\n font-size: medium;\n margin-right: 6px;\n }\n "]}]}],t.ctorParameters=function(){re