mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function n(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[9984,8621,5752,5361,4747],{17690:function(e,a,i){"use strict";i.d(a,{g:function(){return s}});var o=i(37716),s=function(){var e=function(){function e(){t(this,e)}return n(e,[{key:"transform",value:function(t){var e=new Date(t.taskStartDate);e.setMonth(e.getMonth()+1);var 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}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=o.Yjl({name:"customTask",type:e,pure:!0}),e}()},28621:function(e,a,i){"use strict";i.d(a,{$:function(){return p}});var o=i(91841),s=i(92340),r=i(37716),c=i(37556),p=function(){var e=function(){function e(n,a){t(this,e),this.http=n,this.authheader={},this.loggeduser=a.ValidatedUser,this.headers=new o.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey)}return n(e,[{key:"GetTasksList",value:function(t,e){var n=s.N.apiURL+"tasks/List",a=new o.LE;return a=(a=a.set("ProcessName",t)).set("OnlyCount",e.toString()),this.http.get("".concat(n),{headers:this.headers,params:a})}},{key:"GetTask",value:function(t){var e=s.N.apiURL+"Tasks/FindTask",n=new o.LE;return n=n.set("serialNumber",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"SetTaskToPending",value:function(t){var e=s.N.apiURL+"Tasks/SetTaskPending",n=new o.LE;return n=n.set("serialNumber",t),this.http.post("".concat(e),"",{headers:this.headers,params:n})}},{key:"GetPendingTasks",value:function(t){var e=s.N.apiURL+"Tasks/ListPending",n=new o.LE;return n=n.set("onlyCount",t.toString()),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"DelegateTask",value:function(t){return this.http.post(s.N.apiURL+"Tasks/DelegateTask",t,{headers:this.headers})}},{key:"GetTaskParticipants",value:function(t){var e=s.N.apiURL+"Processes/GetUsersInDispash",n=new o.LE;return n=n.set("folderId",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"FindTaskDocId",value:function(t){var e=s.N.apiURL+"Tasks/FindExpedienteDocId",n=new o.LE;return n=n.set("serialNumber",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"GetMDOficialTasks",value:function(){return this.http.get(s.N.apiURL+"tasks/GetMDOficialTasks",{headers:this.headers})}},{key:"GetMDPersonalTasks",value:function(){return this.http.get(s.N.apiURL+"tasks/GetMDPersonalTasks",{headers:this.headers})}},{key:"GetToApprovedEvents",value:function(t,e){var n=s.N.apiURL+"Tasks/ListByCategory",a=new o.LE;return a=(a=a.set("categoryname",t)).set("onlyCount",e),this.http.get("".concat(n),{headers:this.headers,params:a})}},{key:"PostTaskAction",value:function(t){return this.http.post(s.N.apiURL+"Tasks/Complete",t,{headers:this.headers})}},{key:"CompleteTask",value:function(t){return this.http.post(s.N.apiURL+"Tasks/CompleteTask",t,{headers:this.headers})}},{key:"CompleteParecerPrTask",value:function(t){return this.http.post(s.N.apiURL+"Tasks/CompleteTaskParecerPr",t,{headers:this.headers})}},{key:"UpdateTaskStatus",value:function(t){var e=s.N.apiURL+"Tasks/UpdateTaskStatus",n=new o.LE;return n=n.set("FolderId",t),this.http.post("".concat(e),"",{headers:this.headers,params:n})}},{key:"GetDocumentUrl",value:function(t,e){var n=s.N.apiURL+"ecm/document/viewrequestshort",a=new o.LE;return a=(a=a.set("DocId",t)).set("applicationid",e),this.http.get("".concat(n),{headers:this.headers,params:a})}},{key:"postDespatcho",value:function(t){return this.http.post(s.N.apiURL+"Processes/CreateDispatch",t,{headers:this.headers})}},{key:"postDespatchoPr",value:function(t){return this.http.post(s.N.apiURL+"Processes/CreateDispatchPR",t,{headers:this.headers})}},{key:"postParecer",value:function(t){return this.http.post(s.N.apiURL+"Processes/CreateParecer",t,{headers:this.headers})}},{key:"postParecerPr",value:function(t){return this.http.post(s.N.apiURL+"Processes/CreateParecerPR",t,{headers:this.headers})}},{key:"postDeferimento",value:function(t){return this.http.post(s.N.apiURL+"Processes/CreateDeferimento",t,{headers:this.headers})}},{key:"GetActionsList",value:function(){var t=s.N.apiURL+"presidentialActions",e={headers:this.headers};return console.log(e),this.http.get("".concat(t),e)}},{key:"GetSubjectType",value:function(){return this.http.get(s.N.apiURL+"ecm/SubjectType",{headers:this.headers})}},{key:"GetDocumentDetails",value:function(t,e){var n=s.N.apiURL+"search/documents",a=new o.LE;return a=(a=a.set("docId",t)).set("applicationId",e),this.http.get("".concat(n),{headers:this.headers,params:a})}},{key:"documentSetUpMeeting",value:function(t){var e=s.N.apiURL+"Processes/CallMeeting";return e=e.replace("/V4/","/V5/"),this.http.post("".concat(e),t,{headers:this.headers})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(o.eN),r.LFG(c.e))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},84747:function(e,n,a){"use strict";a.r(n),a.d(n,{TaskListPageModule:function(){return h}});var i,o=a(38583),s=a(3679),r=a(35957),c=a(39895),p=a(95526),l=a(37716),d=[{path:"",component:p.V}],u=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.oAB({type:e}),e.\u0275inj=l.cJS({imports:[[c.Bz.forChild(d)],c.Bz]}),e}(),h=((i=function e(){t(this,e)}).\u0275fac=function(t){return new(t||i)},i.\u0275mod=l.oAB({type:i}),i.\u0275inj=l.cJS({imports:[[o.ez,s.u5,r.Pc,u]]}),i)},95526:function(e,a,i){"use strict";i.d(a,{V:function(){return g}});var o=i(37716),s=i(35957),r=i(38583);function c(t,e){1&t&&o._UZ(0,"ion-progress-bar",4)}function p(t,e){if(1&t&&(o.TgZ(0,"label"),o._uU(1),o.qZA()),2&t){var n=o.oxw().$implicit;o.xp6(1),o.Oqu(n.DocumentsQty)}}function l(t,e){if(1&t){var n=o.EpF();o.TgZ(0,"div",7),o.NdJ("click",function(){var t=o.CHM(n).$implicit;return o.oxw(2).viewTaskDetail.emit(t)}),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,p,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){var a=e.$implicit;o.xp6(5),o.Oqu(a.Folio),o.xp6(3),o.Q6J("ngIf",0!=a.DocumentsQty),o.xp6(4),o.Oqu(a.Senders),o.xp6(4),o.Oqu(a.activityInstanceName),o.xp6(3),o.Oqu(o.xi3(20,5,a.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,l,21,8,"div",6),o.qZA(),o.qZA()),2&t){var n=o.oxw();o.xp6(2),o.Q6J("ngForOf",n.taskList)}}function u(t,e){1&t&&(o.TgZ(0,"div",19),o.TgZ(1,"span"),o._uU(2,"Lista vazia"),o.qZA(),o.qZA())}function h(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())}var g=function(){var e=function(){function e(){t(this,e),this.taskList=[],this.skeletonLoader=!1,this.viewTaskDetail=new o.vpe,console.log("taskList",this.taskList)}return n(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,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,c,1,0,"ion-progress-bar",1),o.YNc(3,d,3,1,"div",2),o.YNc(4,u,3,0,"div",3),o.YNc(5,h,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:[s.W2,r.O5,s.X7,s.q_,r.sg,s.Q$,s.gu,s.Ie,s.Bs,s.CK],pipes:[r.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}"]}),e}()}}])}(); |