mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[9984,8621,5752,5361,4747],{17690:function(t,e,n){"use strict";n.d(e,{g:function(){return i}});var s=n(37716);let i=(()=>{class t{transform(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();return{SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.workflowInstanceDataFields.Sender,CreateDate:n,DocumentURL:t.workflowInstanceDataFields.ViewerRequest,Remetente:t.workflowInstanceDataFields.Remetente,DocumentsQty:t.totalDocuments,DocId:t.workflowInstanceDataFields.DispatchDocId,FolderID:t.workflowInstanceDataFields.FolderID,WorkflowName:t.workflowDisplayName,activityInstanceName:t.activityInstanceName,Status:t.workflowInstanceDataFields.Status}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"customTask",type:t,pure:!0}),t})()},28621:function(t,e,n){"use strict";n.d(e,{$:function(){return r}});var s=n(91841),i=n(92340),o=n(37716),a=n(37556);let r=(()=>{class t{constructor(t,e){this.http=t,this.authheader={},this.loggeduser=e.ValidatedUser,this.headers=new s.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey)}GetTasksList(t,e){const n=i.N.apiURL+"tasks/List";let o=new s.LE;return o=o.set("ProcessName",t),o=o.set("OnlyCount",e.toString()),this.http.get(`${n}`,{headers:this.headers,params:o})}GetTask(t){const e=i.N.apiURL+"Tasks/FindTask";let n=new s.LE;return n=n.set("serialNumber",t),this.http.get(`${e}`,{headers:this.headers,params:n})}SetTaskToPending(t){const e=i.N.apiURL+"Tasks/SetTaskPending";let n=new s.LE;return n=n.set("serialNumber",t),this.http.post(`${e}`,"",{headers:this.headers,params:n})}GetPendingTasks(t){const e=i.N.apiURL+"Tasks/ListPending";let n=new s.LE;return n=n.set("onlyCount",t.toString()),this.http.get(`${e}`,{headers:this.headers,params:n})}DelegateTask(t){return this.http.post(i.N.apiURL+"Tasks/DelegateTask",t,{headers:this.headers})}GetTaskParticipants(t){const e=i.N.apiURL+"Processes/GetUsersInDispash";let n=new s.LE;return n=n.set("folderId",t),this.http.get(`${e}`,{headers:this.headers,params:n})}FindTaskDocId(t){const e=i.N.apiURL+"Tasks/FindExpedienteDocId";let n=new s.LE;return n=n.set("serialNumber",t),this.http.get(`${e}`,{headers:this.headers,params:n})}GetMDOficialTasks(){return this.http.get(i.N.apiURL+"tasks/GetMDOficialTasks",{headers:this.headers})}GetMDPersonalTasks(){return this.http.get(i.N.apiURL+"tasks/GetMDPersonalTasks",{headers:this.headers})}GetToApprovedEvents(t,e){const n=i.N.apiURL+"Tasks/ListByCategory";let o=new s.LE;return o=o.set("categoryname",t),o=o.set("onlyCount",e),this.http.get(`${n}`,{headers:this.headers,params:o})}PostTaskAction(t){return this.http.post(i.N.apiURL+"Tasks/Complete",t,{headers:this.headers})}CompleteTask(t){return this.http.post(i.N.apiURL+"Tasks/CompleteTask",t,{headers:this.headers})}CompleteParecerPrTask(t){return this.http.post(i.N.apiURL+"Tasks/CompleteTaskParecerPr",t,{headers:this.headers})}UpdateTaskStatus(t){const e=i.N.apiURL+"Tasks/UpdateTaskStatus";let n=new s.LE;return n=n.set("FolderId",t),this.http.post(`${e}`,"",{headers:this.headers,params:n})}GetDocumentUrl(t,e){const n=i.N.apiURL+"ecm/document/viewrequestshort";let o=new s.LE;return o=o.set("DocId",t),o=o.set("applicationid",e),this.http.get(`${n}`,{headers:this.headers,params:o})}postDespatcho(t){return this.http.post(i.N.apiURL+"Processes/CreateDispatch",t,{headers:this.headers})}postDespatchoPr(t){return this.http.post(i.N.apiURL+"Processes/CreateDispatchPR",t,{headers:this.headers})}postParecer(t){return this.http.post(i.N.apiURL+"Processes/CreateParecer",t,{headers:this.headers})}postParecerPr(t){return this.http.post(i.N.apiURL+"Processes/CreateParecerPR",t,{headers:this.headers})}postDeferimento(t){return this.http.post(i.N.apiURL+"Processes/CreateDeferimento",t,{headers:this.headers})}GetActionsList(){const t=i.N.apiURL+"presidentialActions";let e={headers:this.headers};return console.log(e),this.http.get(`${t}`,e)}GetSubjectType(){return this.http.get(i.N.apiURL+"ecm/SubjectType",{headers:this.headers})}GetDocumentDetails(t,e){const n=i.N.apiURL+"search/documents";let o=new s.LE;return o=o.set("docId",t),o=o.set("applicationId",e),this.http.get(`${n}`,{headers:this.headers,params:o})}documentSetUpMeeting(t){let e=i.N.apiURL+"Processes/CallMeeting";return e=e.replace("/V4/","/V5/"),this.http.post(`${e}`,t,{headers:this.headers})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(s.eN),o.LFG(a.e))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},84747:function(t,e,n){"use strict";n.r(e),n.d(e,{TaskListPageModule:function(){return c}});var s=n(38583),i=n(3679),o=n(35957),a=n(39895),r=n(95526),p=n(37716);const d=[{path:"",component:r.V}];let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({imports:[[a.Bz.forChild(d)],a.Bz]}),t})(),c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({imports:[[s.ez,i.u5,o.Pc,l]]}),t})()},95526:function(t,e,n){"use strict";n.d(e,{V:function(){return h}});var s=n(37716),i=n(35957),o=n(38583);function a(t,e){1&t&&s._UZ(0,"ion-progress-bar",4)}function r(t,e){if(1&t&&(s.TgZ(0,"label"),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Oqu(t.DocumentsQty)}}function p(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",7),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).viewTaskDetail.emit(e)}),s.TgZ(1,"div",8),s.TgZ(2,"div",9),s.TgZ(3,"div",10),s.TgZ(4,"ion-label"),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"div",11),s._UZ(7,"ion-icon",12),s.YNc(8,r,2,1,"label",2),s.qZA(),s.qZA(),s.TgZ(9,"div",13),s.TgZ(10,"div",14),s.TgZ(11,"ion-label"),s._uU(12),s.qZA(),s.qZA(),s.qZA(),s.TgZ(13,"div",15),s.TgZ(14,"div",16),s.TgZ(15,"span",17),s._uU(16),s.qZA(),s.qZA(),s.TgZ(17,"div",18),s.TgZ(18,"ion-label"),s._uU(19),s.ALo(20,"date"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(5),s.Oqu(t.Folio),s.xp6(3),s.Q6J("ngIf",0!=t.DocumentsQty),s.xp6(4),s.Oqu(t.Senders),s.xp6(4),s.Oqu(t.activityInstanceName),s.xp6(3),s.Oqu(s.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function d(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"ion-list",5),s.YNc(2,p,21,8,"div",6),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("ngForOf",t.taskList)}}function l(t,e){1&t&&(s.TgZ(0,"div",19),s.TgZ(1,"span"),s._uU(2,"Lista vazia"),s.qZA(),s.qZA())}function c(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"ion-list"),s.TgZ(2,"ion-item"),s.TgZ(3,"ion-thumbnail",20),s._UZ(4,"ion-skeleton-text",21),s.qZA(),s.TgZ(5,"ion-label"),s.TgZ(6,"h3"),s._UZ(7,"ion-skeleton-text",22),s.qZA(),s.TgZ(8,"p"),s._UZ(9,"ion-skeleton-text",23),s.qZA(),s.TgZ(10,"p"),s._UZ(11,"ion-skeleton-text",24),s.qZA(),s.qZA(),s.qZA(),s.TgZ(12,"ion-item"),s.TgZ(13,"ion-thumbnail",20),s._UZ(14,"ion-skeleton-text",21),s.qZA(),s.TgZ(15,"ion-label"),s.TgZ(16,"h3"),s._UZ(17,"ion-skeleton-text",22),s.qZA(),s.TgZ(18,"p"),s._UZ(19,"ion-skeleton-text",23),s.qZA(),s.TgZ(20,"p"),s._UZ(21,"ion-skeleton-text",24),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())}let h=(()=>{class t{constructor(){this.taskList=[],this.skeletonLoader=!1,this.viewTaskDetail=new s.vpe,console.log("taskList",this.taskList)}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.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&&(s.TgZ(0,"ion-content"),s.TgZ(1,"div",0),s.YNc(2,a,1,0,"ion-progress-bar",1),s.YNc(3,d,3,1,"div",2),s.YNc(4,l,3,0,"div",3),s.YNc(5,c,22,0,"div",2),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.skeletonLoader),s.xp6(1),s.Q6J("ngIf",e.taskList.length>=0),s.xp6(1),s.Q6J("ngIf",!e.skeletonLoader&&0==e.taskList.length),s.xp6(1),s.Q6J("ngIf",e.skeletonLoader&&0==e.taskList.length))},directives:[i.W2,o.O5,i.X7,i.q_,o.sg,i.Q$,i.gu,i.Ie,i.Bs,i.CK],pipes:[o.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})()}}]); |