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

1 line
15 KiB
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[1515,4747],{1515:function(t,e,n){"use strict";n.r(e),n.d(e,{DespachosPrPageModule:function(){return p}});var o=n(38583),i=n(3679),a=n(35957),r=n(39895),l=n(84371),c=n(37716);const d=[{path:"",component:l.a}];let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[r.Bz.forChild(d)],r.Bz]}),t})();var g=n(84747);let p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,a.Pc,s,g.TaskListPageModule]]}),t})()},84371:function(t,e,n){"use strict";n.d(e,{a:function(){return x}});var o=n(64762),i=n(39895),a=n(92173),r=n(17690),l=n(37716),c=n(28621),d=n(37556),s=n(35957),g=n(38583),p=n(95526);function f(t,e){1&t&&(l.TgZ(0,"ion-label"),l._uU(1,"Despachos Presidenciais"),l.qZA())}function h(t,e){1&t&&(l.TgZ(0,"ion-label"),l._uU(1,"Despachos"),l.qZA())}function m(t,e){1&t&&(l.TgZ(0,"div",11),l.TgZ(1,"h3",12),l._uU(2,"Presidente da Rep\xfablica"),l.qZA(),l.qZA())}let x=(()=>{class t{constructor(t,e,n){this.processes=t,this.authService=e,this.router=n,this.customTaskPipe=new r.g,this.skeletonLoader=!0,this.despachosprstore=a.d,this.loggeduser=e.ValidatedUser}ngOnInit(){this.LoadList(),this.router.events.forEach(t=>{t instanceof i.OD&&t.url.startsWith("/home/gabinete-digital?despachospr=true")&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.refreshing():this.LoadList())})}LoadList(){return(0,o.mG)(this,void 0,void 0,function*(){this.skeletonLoader=!0;let t,e=yield this.processes.GetTasksList("Despacho do Presidente da Rep\xfablica",!1).toPromise(),n=[];switch(this.loggeduser.Profile){case"MDGPR":t=e.reverse().filter(t=>"Tarefa de Despacho"==t.activityInstanceName);break;case"PR":t=e.reverse().filter(t=>"Concluir Despacho"==t.activityInstanceName)}t=t.filter(t=>"Active"==t.workflowInstanceDataFields.Status),t.forEach((t,e)=>{let o=this.customTaskPipe.transform(t);n.push(o)}),n=this.sortArrayISODate(n).reverse(),this.despachosprstore.reset(n),this.skeletonLoader=!1})}sortArrayISODate(t){return t.sort(function(t,e){return t.CreateDate<e.CreateDate?-1:t.CreateDate>e.CreateDate?1:0})}refreshing(){setTimeout(()=>{this.LoadList()},1e3)}doRefresh(){setTimeout(()=>{this.LoadList()},1e3)}goToDespacho({SerialNumber:t}){this.router.navigate(["/home/gabinete-digital/despachos-pr",t,"gabinete-digital"])}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(c.$),l.Y36(d.e),l.Y36(i.F0))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-despachos-pr"]],decls:13,vars:5,consts:[[1,"ion-no-border"],[1,"main-header"],[1,"thetitle"],[4,"ngIf"],[1,"theicon"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],["class","bottom-title d-flex",4,"ngIf"],["name","refresher","slot","fixed",3,"ionRefresh"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],[3,"taskList","skeletonLoader","viewTaskDetail"],[1,"bottom-title","d-flex"],[1,"bottom-text"]],template:function(t,e){1&t&&(l.TgZ(0,"ion-header",0),l.TgZ(1,"div",1),l.TgZ(2,"div",2),l.YNc(3,f,2,0,"ion-label",3),l.YNc(4,h,2,0,"ion-label",3),l.qZA(),l.TgZ(5,"div",4),l.TgZ(6,"button",5),l.NdJ("click",function(){return e.doRefresh()}),l._UZ(7,"ion-icon",6),l.qZA(),l.qZA(),l.qZA(),l.YNc(8,m,3,0,"div",7),l.qZA(),l.TgZ(9,"ion-content"),l.TgZ(10,"ion-refresher",8),l.NdJ("ionRefresh",function(){return e.doRefresh()}),l._UZ(11,"ion-refresher-content",9),l.qZA(),l.TgZ(12,"app-task-list",10),l.NdJ("viewTaskDetail",function(t){return e.goToDespacho(t)}),l.qZA(),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngIf","MDGPR"==e.loggeduser.Profile),l.xp6(1),l.Q6J("ngIf","PR"==e.loggeduser.Profile),l.xp6(4),l.Q6J("ngIf","MDGPR"==e.loggeduser.Profile),l.xp6(4),l.Q6J("taskList",e.despachosprstore.list)("skeletonLoader",e.skeletonLoader))},directives:[s.Gu,g.O5,s.gu,s.W2,s.nJ,s.Wo,p.V,s.Q$],styles:[".main-container[_ngcontent-%COMP%], .main-header[_ngcontent-%COMP%]{padding:30px 20px 0!important;margin:0;color:#000}.main-header[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;overflow:auto}.main-header[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.main-header[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .main-header[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.main-header[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.bottom-title[_ngcontent-%COMP%]{margin-left:20px!important;margin-right:20px!important;margin:0 auto;align-items:center;justify-content:center;border-bottom:5px solid #42b9fe}.bottom-title[_ngcontent-%COMP%] .bottom-text[_ngcontent-%COMP%]{font-size:15px!important;font-family:Roboto!important;color:#0d89d1!important}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:hidden}.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:hidden}.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})()},84747:function(t,e,n){"use strict";n.r(e),n.d(e,{TaskListPageModule:function(){return g}});var o=n(38583),i=n(3679),a=n(35957),r=n(39895),l=n(95526),c=n(37716);const d=[{path:"",component:l.V}];let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[r.Bz.forChild(d)],r.Bz]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,a.Pc,s]]}),t})()},95526:function(t,e,n){"use strict";n.d(e,{V:function(){return p}});var o=n(37716),i=n(35957),a=n(38583);function r(t,e){1&t&&o._UZ(0,"ion-progress-bar",4)}function l(t,e){if(1&t&&(o.TgZ(0,"label"),o._uU(1),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.Oqu(t.DocumentsQty)}}function c(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",7),o.NdJ("click",function(){const e=o.CHM(t).$implicit;return o.oxw(2).viewTaskDetail.emit(e)}),o.TgZ(1,"div",8),o.TgZ(2,"div",9),o.TgZ(3,"div",10),o.TgZ(4,"ion-label"),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"div",11),o._UZ(7,"ion-icon",12),o.YNc(8,l,2,1,"label",2),o.qZA(),o.qZA(),o.TgZ(9,"div",13),o.TgZ(10,"div",14),o.TgZ(11,"ion-label"),o._uU(12),o.qZA(),o.qZA(),o.qZA(),o.TgZ(13,"div",15),o.TgZ(14,"div",16),o.TgZ(15,"span",17),o._uU(16),o.qZA(),o.qZA(),o.TgZ(17,"div",18),o.TgZ(18,"ion-label"),o._uU(19),o.ALo(20,"date"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=e.$implicit;o.xp6(5),o.Oqu(t.Folio),o.xp6(3),o.Q6J("ngIf",0!=t.DocumentsQty),o.xp6(4),o.Oqu(t.Senders),o.xp6(4),o.Oqu(t.activityInstanceName),o.xp6(3),o.Oqu(o.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function d(t,e){if(1&t&&(o.TgZ(0,"div"),o.TgZ(1,"ion-list",5),o.YNc(2,c,21,8,"div",6),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.Q6J("ngForOf",t.taskList)}}function s(t,e){1&t&&(o.TgZ(0,"div",19),o.TgZ(1,"span"),o._uU(2,"Lista vazia"),o.qZA(),o.qZA())}function g(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"ion-list"),o.TgZ(2,"ion-item"),o.TgZ(3,"ion-thumbnail",20),o._UZ(4,"ion-skeleton-text",21),o.qZA(),o.TgZ(5,"ion-label"),o.TgZ(6,"h3"),o._UZ(7,"ion-skeleton-text",22),o.qZA(),o.TgZ(8,"p"),o._UZ(9,"ion-skeleton-text",23),o.qZA(),o.TgZ(10,"p"),o._UZ(11,"ion-skeleton-text",24),o.qZA(),o.qZA(),o.qZA(),o.TgZ(12,"ion-item"),o.TgZ(13,"ion-thumbnail",20),o._UZ(14,"ion-skeleton-text",21),o.qZA(),o.TgZ(15,"ion-label"),o.TgZ(16,"h3"),o._UZ(17,"ion-skeleton-text",22),o.qZA(),o.TgZ(18,"p"),o._UZ(19,"ion-skeleton-text",23),o.qZA(),o.TgZ(20,"p"),o._UZ(21,"ion-skeleton-text",24),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA())}let p=(()=>{class t{constructor(){this.taskList=[],this.skeletonLoader=!1,this.viewTaskDetail=new o.vpe,console.log("taskList",this.taskList)}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-task-list"]],inputs:{taskList:"taskList",skeletonLoader:"skeletonLoader"},outputs:{viewTaskDetail:"viewTaskDetail"},decls:6,vars:4,consts:[[1,"overflow-y-auto","height-100","width-100","px-20"],["type","indeterminate",4,"ngIf"],[4,"ngIf"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],["type","indeterminate"],["part","divo"],["class","expediente ion-no-padding ion-no-margin cursor-pointer",3,"click",4,"ngFor","ngForOf"],[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&&(o.TgZ(0,"ion-content"),o.TgZ(1,"div",0),o.YNc(2,r,1,0,"ion-progress-bar",1),o.YNc(3,d,3,1,"div",2),o.YNc(4,s,3,0,"div",3),o.YNc(5,g,22,0,"div",2),o.qZA(),o.qZA()),2&t&&(o.xp6(2),o.Q6J("ngIf",e.skeletonLoader),o.xp6(1),o.Q6J("ngIf",e.taskList.length>=0),o.xp6(1),o.Q6J("ngIf",!e.skeletonLoader&&0==e.taskList.length),o.xp6(1),o.Q6J("ngIf",e.skeletonLoader&&0==e.taskList.length))},directives:[i.W2,a.O5,i.X7,i.q_,a.sg,i.Q$,i.gu,i.Ie,i.Bs,i.CK],pipes:[a.uU],styles:[".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})()}}]);