Files
doneit-web/_platforms/browser/www/8142-es2015.a2031a22946e38c4fc17.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
11 KiB
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[8142],{18142:function(t,e,n){"use strict";n.r(e),n.d(e,{ExpedientesPrPageModule:function(){return k}});var o=n(38583),i=n(3679),a=n(35957),r=n(39895),s=n(64762),l=n(37716),d=n(87732),c=n(11055),g=n(42764),p=n(28621),f=n(25970),h=n(37556),m=n(962),x=n(23890);function u(t,e){1&t&&l._UZ(0,"ion-progress-bar",15)}function Z(t,e){1&t&&l._UZ(0,"ion-progress-bar",15)}function _(t,e){if(1&t&&(l.TgZ(0,"label"),l._uU(1),l.qZA()),2&t){const t=l.oxw().$implicit;l.xp6(1),l.Oqu(t.DocumentsQty)}}function w(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",16),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw().goToExpediente(e.SerialNumber)}),l.TgZ(1,"div",17),l.TgZ(2,"div",18),l.TgZ(3,"div",19),l.TgZ(4,"ion-label"),l._uU(5),l.qZA(),l.qZA(),l.TgZ(6,"div",20),l._UZ(7,"ion-icon",21),l.YNc(8,_,2,1,"label",14),l.qZA(),l.qZA(),l.TgZ(9,"div",22),l.TgZ(10,"div",23),l.TgZ(11,"ion-label"),l._uU(12),l.qZA(),l.qZA(),l.qZA(),l.TgZ(13,"div",24),l.TgZ(14,"div",25),l.TgZ(15,"span",26),l._uU(16),l.qZA(),l.qZA(),l.TgZ(17,"div",27),l.TgZ(18,"ion-label"),l._uU(19),l.ALo(20,"date"),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(5),l.Oqu(t.Folio),l.xp6(3),l.Q6J("ngIf",0!=t.DocumentsQty),l.xp6(4),l.Oqu(t.Senders),l.xp6(4),l.Oqu(t.activityInstanceName),l.xp6(3),l.Oqu(l.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function C(t,e){1&t&&(l.TgZ(0,"div",28),l.TgZ(1,"span"),l._uU(2,"Lista vazia"),l.qZA(),l.qZA())}function M(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"ion-list"),l.TgZ(2,"ion-item"),l.TgZ(3,"ion-thumbnail",29),l._UZ(4,"ion-skeleton-text",30),l.qZA(),l.TgZ(5,"ion-label"),l.TgZ(6,"h3"),l._UZ(7,"ion-skeleton-text",31),l.qZA(),l.TgZ(8,"p"),l._UZ(9,"ion-skeleton-text",32),l.qZA(),l.TgZ(10,"p"),l._UZ(11,"ion-skeleton-text",33),l.qZA(),l.qZA(),l.qZA(),l.TgZ(12,"ion-item"),l.TgZ(13,"ion-thumbnail",29),l._UZ(14,"ion-skeleton-text",30),l.qZA(),l.TgZ(15,"ion-label"),l.TgZ(16,"h3"),l._UZ(17,"ion-skeleton-text",31),l.qZA(),l.TgZ(18,"p"),l._UZ(19,"ion-skeleton-text",32),l.qZA(),l.TgZ(20,"p"),l._UZ(21,"ion-skeleton-text",33),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA())}const O=[{path:"",component:(()=>{class t{constructor(t,e,n,o,i,a){this.processes=t,this.modalController=e,this.alertService=n,this.authService=o,this.router=i,this.location=a,this.taskslist=[],this.openExpedientDetail=new l.vpe,this.skeletonLoader=!0,this.expedienteprstore=g.s,this.loggeduser=o.ValidatedUser}ngOnInit(){const t=window.location,e=t.pathname+t.search;this.LoadList(),this.router.events.forEach(t=>{t instanceof r.OD&&t.url.startsWith(e)&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.refreshing():this.LoadList())})}LoadList(){this.skeletonLoader=!0,this.processes.GetTasksList("Expediente",!1).subscribe(t=>{console.log(t),this.skeletonLoader=!1,this.showLoader=!1,this.taskslist=new Array,t.reverse().filter(t=>"Active"==t.workflowInstanceDataFields.Status).forEach(t=>{let e=new Date(t.taskStartDate);e.setMonth(e.getMonth()+1);let n=e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds();this.taskslist.push({SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.workflowInstanceDataFields.Sender,CreateDate:n,DocumentURL:t.workflowInstanceDataFields.ViewerRequest,Remetente:t.workflowInstanceDataFields.Remetente,DocumentsQty:t.totalDocuments,WorkflowName:t.workflowDisplayName,activityInstanceName:t.activityInstanceName,Status:t.workflowInstanceDataFields.Status})}),console.log(this.taskslist),this.expedienteprstore.reset(this.taskslist),this.skeletonLoader=!1})}refreshing(){setTimeout(()=>{this.LoadList()},1e3)}doRefresh(t){this.LoadList(),setTimeout(()=>{t.target.complete()},2e3)}goToExpediente(t){this.router.navigate(["/home/gabinete-digital/expedientes-pr",t,"gabinete-digital"])}viewExpedientDetail(t){return(0,s.mG)(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:c.C,componentProps:{enterAnimation:"",serialNumber:t,profile:this.loggeduser.Profile},cssClass:"modal modal-desktop"});yield e.present(),e.onDidDismiss().then(t=>{console.log("refresh list"),this.LoadList()})})}goBack(){this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(p.$),l.Y36(a.IN),l.Y36(f.c),l.Y36(h.e),l.Y36(r.F0),l.Y36(o.Ye))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-expedientes-pr"]],viewQuery:function(t,e){if(1&t&&l.Gf(d.eV,5),2&t){let t;l.iGM(t=l.CRH())&&(e.myCal=t.first)}},outputs:{openExpedientDetail:"openExpedientDetail"},decls:22,vars:5,consts:[[1,"ion-no-border"],[1,"ion-no-border","header-2"],[3,"click"],[1,"title"],[1,"thetitle"],[1,"theicon","btn-refresh"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],[1,"main-content","width-100","overflow-y-auto","height-100"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],[1,"width-100"],["class","expediente ion-no-padding ion-no-margin cursor-pointer",3,"click",4,"ngFor","ngForOf"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],[4,"ngIf"],["type","indeterminate"],[1,"expediente","ion-no-padding","ion-no-margin","cursor-pointer",3,"click"],[1,"item","width-100"],[1,"exp-top-detail"],[1,"subject"],[1,"exp-icon"],["src","assets/images/icons-expediente-attachment.svg"],[1,"exp-bottom-detail"],[1,"exp-remetente"],[1,"exp-middle-detail"],[1,"exp-workflow"],[1,"label"],[1,"exp-date"],[1,"empty-list","d-flex","height-100","align-center","justify-content-center"],["slot","end"],["animated",""],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["animated","",2,"width","60%"]],template:function(t,e){1&t&&(l.TgZ(0,"ion-header",0),l._UZ(1,"app-header"),l.qZA(),l.TgZ(2,"ion-header",1),l.TgZ(3,"app-btn-modal-dismiss",2),l.NdJ("click",function(){return e.goBack()}),l.qZA(),l.TgZ(4,"div",3),l.TgZ(5,"div",4),l.TgZ(6,"ion-label"),l._uU(7,"Expediente"),l.qZA(),l.qZA(),l.TgZ(8,"div",5),l.TgZ(9,"button",6),l.NdJ("click",function(){return e.refreshing()}),l._UZ(10,"ion-icon",7),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.TgZ(11,"ion-content"),l.TgZ(12,"div",8),l.TgZ(13,"ion-refresher",9),l.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),l.YNc(14,u,1,0,"ion-progress-bar",10),l._UZ(15,"ion-refresher-content"),l.qZA(),l.TgZ(16,"div",11),l.YNc(17,Z,1,0,"ion-progress-bar",10),l.TgZ(18,"ion-list"),l.YNc(19,w,21,8,"div",12),l.qZA(),l.qZA(),l.YNc(20,C,3,0,"div",13),l.YNc(21,M,22,0,"div",14),l.qZA(),l.qZA()),2&t&&(l.xp6(14),l.Q6J("ngIf",e.showLoader),l.xp6(3),l.Q6J("ngIf",e.skeletonLoader),l.xp6(2),l.Q6J("ngForOf",e.expedienteprstore.list),l.xp6(1),l.Q6J("ngIf",!e.skeletonLoader&&0==e.expedienteprstore.list.length&&0==e.expedienteprstore.list.length),l.xp6(1),l.Q6J("ngIf",e.skeletonLoader&&0==e.expedienteprstore.list.length))},directives:[a.Gu,m.E,x.E,a.Q$,a.gu,a.W2,a.nJ,o.O5,a.Wo,a.q_,o.sg,a.X7,a.Ie,a.Bs,a.CK],pipes:[o.uU],styles:["[_nghost-%COMP%]{margin:0}.header-2[_ngcontent-%COMP%]{border-top-right-radius:24px;border-top-left-radius:24px}.header-2[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%]{padding:30px 20px 0!important;background-color:#fff}.main-content[_ngcontent-%COMP%]{padding-top:0!important}.title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:auto}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}ion-item[_ngcontent-%COMP%]{--background:none}.item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:auto}.div-content-expediente[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #dae3f3;padding:5px 5px 15px;margin:10px 0;background:#dae3f3;border-radius:20px}.div-content-pendentes[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #d9d9d9;padding:5px}.div-content-expediente[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:14pt;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:20px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-expediente[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14pt;color:#5e5c5c;padding:0;margin:0}.span-left[_ngcontent-%COMP%]{float:left;font-size:12px;padding-left:18px}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:12px;padding-right:18px}.expediente[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.exp-list-item[_ngcontent-%COMP%]{overflow:auto;margin:10px auto}.exp-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.exp-top-detail[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{width:84%;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.exp-bottom-detail[_ngcontent-%COMP%], .exp-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}.exp-middle-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%]{float:left;margin:0!important}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.exp-middle-detail[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;float:right}.exp-bottom-detail[_ngcontent-%COMP%]{font-size:8pt;width:100%;overflow:auto;padding-left:3px}.exp-bottom-detail[_ngcontent-%COMP%] .exp-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:6px auto;background-color:#0782c9;overflow:auto}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:150px;margin:2.5px 0 2.5px 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}"]}),t})()},{path:"expediente-pr",loadChildren:()=>n.e(2344).then(n.bind(n,42344)).then(t=>t.ExpedientePrPageModule)}];let b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[r.Bz.forChild(O)],r.Bz]}),t})();var P=n(6527),v=n(4502);let k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[o.ez,i.u5,a.Pc,b,P.a,v.F]]}),t})()}}]);