HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/smarthr-co-in/demo/angular/template/chunk-QNAHDKDA.js
import{a as me}from"./chunk-JKERXUEK.js";import{a as re,b as le,c as oe}from"./chunk-NXA7GLYB.js";import{a as de,b as se}from"./chunk-PWMQ74RC.js";import{a as te,b as ie}from"./chunk-U5MFMN2C.js";import{a as K,b as Y}from"./chunk-OPRQFVPE.js";import{a as ne}from"./chunk-PDL2MCPW.js";import{a as ae}from"./chunk-YKW35LPN.js";import"./chunk-JAZSQYD7.js";import{a as q}from"./chunk-RFJHVWQO.js";import{f as J}from"./chunk-QTTEMGWW.js";import"./chunk-VZSYGL77.js";import"./chunk-KT3425N4.js";import"./chunk-L5US5TIY.js";import"./chunk-KLR3GVJ4.js";import"./chunk-ROUB2DV5.js";import"./chunk-ZRYDU45O.js";import"./chunk-D2NXOKOR.js";import"./chunk-3OLHRZ2P.js";import"./chunk-2OYBQGHU.js";import"./chunk-33OPMCTI.js";import"./chunk-OH3XPIE7.js";import"./chunk-D5XKRYC7.js";import"./chunk-PYXABXFS.js";import"./chunk-RAVHNKJU.js";import{f as Z,g as $,h as ee}from"./chunk-WT44ZQWY.js";import"./chunk-GZFJ7A3T.js";import"./chunk-3NNWUWWG.js";import"./chunk-4FNTF56S.js";import{b as F,d as O,h as W,m as H,q as Q,r as U,s as G,y as X}from"./chunk-7PPOABPU.js";import{a as B}from"./chunk-ILLDEPHH.js";import{d as N}from"./chunk-K3YFDFGL.js";import"./chunk-WA2UGD5L.js";import"./chunk-BT37DHWM.js";import{Ac as u,Cc as S,Fc as j,Hd as L,Ic as V,Mb as E,Nb as w,Pb as M,Qb as R,Rb as k,Sb as p,Tb as t,Ub as e,Vb as d,ab as h,ac as D,cc as b,ec as y,fb as s,ic as A,jc as I,kc as T,pa as v,qa as x,sb as C,tc as i,uc as f,ud as z,vc as _,yb as P,yc as c,zc as g}from"./chunk-AQ27DSQO.js";import"./chunk-EQDQRRRY.js";var ge=["chart"],ue=()=>({adaptivePosition:!0}),he=()=>({standalone:!0}),be=(m,o,a)=>({"badge-soft-success":m,"badge-soft-warning":o,"badge-soft-danger":a});function fe(m,o){if(m&1){let a=D();t(0,"select",78),u("ngModelChange",function(l){v(a);let r=y();return g(r.pageSize,l)||(r.pageSize=l),x(l)}),b("ngModelChange",function(){v(a);let l=y();return x(l.changePageSize(l.pageSize))}),t(1,"option",79),i(2,"10"),e(),t(3,"option",80),i(4,"25"),e(),t(5,"option",81),i(6,"50"),e(),t(7,"option",82),i(8,"100"),e()()}if(m&2){let a=y();c("ngModel",a.pageSize)}}function Se(m,o){if(m&1){let a=D();t(0,"tr")(1,"td")(2,"div",83)(3,"input",84),u("ngModelChange",function(l){let r=v(a).$implicit;return g(r.isSelected,l)||(r.isSelected=l),x(l)}),e()()(),t(4,"td"),i(5),e(),t(6,"td")(7,"div",85)(8,"h6",86)(9,"a",87),i(10),e()()()(),t(11,"td")(12,"div",85)(13,"a",88),d(14,"img",89),e(),t(15,"div",90)(16,"h6",86)(17,"a",91),i(18),e()()()()(),t(19,"td")(20,"div",92)(21,"span",93),d(22,"img",94),e(),t(23,"span",93),d(24,"img",94),e(),t(25,"span",93),d(26,"img",94),e(),t(27,"span",95),i(28),e()()(),t(29,"td"),i(30),e(),t(31,"td")(32,"span",96),d(33,"i",97),i(34),e()(),t(35,"td")(36,"span",96),d(37,"i",97),i(38),e()()()}if(m&2){let a=o.$implicit;s(3),c("ngModel",a.isSelected),s(2),f(a.ProjectID),s(5),f(a.ProjectName),s(4),p("src",S("assets/img/users/",a==null?null:a.Image),h),s(4),f(a.Leader),s(4),p("src",S("assets/img/users/",a==null?null:a.Img),h),s(2),p("src",S("assets/img/users/",a==null?null:a.Img1),h),s(2),p("src",S("assets/img/users/",a==null?null:a.Img2),h),s(2),_(" +",a.Team," "),s(2),f(a.Deadline),s(2),p("ngClass",V(18,be,a.Priority==="Low",a.Priority==="Medium",a.Priority==="High")),s(2),_("",a.Priority," "),s(2),p("ngClass",a.Status==="Active"?"badge-success":"badge-danger"),s(2),_("",a.Status," ")}}function ve(m,o){m&1&&(t(0,"tr")(1,"td",98)(2,"h5",99),i(3,"No matching records found"),e()()())}te.register(...ie);var pe=class m{constructor(o,a,n){this.data=o;this.router=a;this.pagination=n;this.breadCrumbItems=[{label:"HR"},{label:"Project Report",active:!0}],this.data.getprojectReport().subscribe(l=>{this.actualData=l.data,this.pagination.tablePageSize.subscribe(r=>{this.router.url==this.routes.projectreport&&(this.getTableData({skip:r.skip,limit:r.limit}),this.pageSize=r.pageSize)})}),this.maxDate.setDate(this.maxDate.getDate()+7),this.bsRangeValue=[this.bsValue,this.maxDate]}routes=B;initChecked=!1;pageSize=10;tableData=[];tableDataCopy=[];actualData=[];currentPage=1;skip=0;limit=this.pageSize;serialNumberArray=[];totalData=0;showFilter=!1;pageSelection=[];dataSource;searchDataValue="";breadCrumbItems=[];bsValue=new Date;bsRangeValue;maxDate=new Date;project_chart;chart;getTableData(o){this.data.getprojectReport().subscribe(a=>{this.tableData=[],this.tableDataCopy=[],this.serialNumberArray=[],this.totalData=a.totalData,a.data.map((n,l)=>{let r=l+1;l>=o.skip&&r<=o.limit&&(n.sNo=r,this.tableData.push(n),this.tableDataCopy.push(n),this.serialNumberArray.push(r))}),this.dataSource=new de(this.actualData),this.pagination.calculatePageSize.next({totalData:this.totalData,pageSize:this.pageSize,tableData:this.tableData,tableDataCopy:this.tableDataCopy,serialNumberArray:this.serialNumberArray})})}row=!0;searchData(o){this.searchDataValue=o.trim().toLowerCase(),this.dataSource.filter=this.searchDataValue,this.tableData=this.dataSource.filteredData,this.row=this.tableData.length>0,this.searchDataValue!==""?this.pagination.calculatePageSize.next({totalData:this.tableData.length,pageSize:this.pageSize,tableData:this.tableData,serialNumberArray:this.tableData.map((a,n)=>n+1)}):this.pagination.calculatePageSize.next({totalData:this.totalData,pageSize:this.pageSize,tableData:this.tableData,serialNumberArray:this.serialNumberArray})}sortData(o){let a=this.tableData.slice();!o.active||o.direction===""?this.tableData=a:this.tableData=a.sort((n,l)=>{let r=n[o.active],ce=l[o.active];return(r<ce?-1:1)*(o.direction==="asc"?1:-1)})}changePageSize(o){this.pageSelection=[],this.limit=o,this.skip=0,this.currentPage=1,this.pagination.tablePageSize.next({skip:this.skip,limit:this.limit,pageSize:this.pageSize})}selectAll(o){o?this.tableData.forEach(a=>{a.isSelected=!1}):this.tableData.forEach(a=>{a.isSelected=!0})}ngOnInit(){this.project_chart={series:[30,10,20,40],chart:{width:280,type:"pie"},labels:["Pending","On Hold","In Progress","Completed"],colors:["#0DCAF0","#AB47BC","#FFC107","#03C95A"],dataLabels:{enabled:!1},legend:{show:!1},tooltip:{y:{formatter:function(o,{seriesIndex:a}){return"Value: "+o}}},responsive:[{breakpoint:480,options:{chart:{width:200},legend:{position:"bottom"}}}]}}static \u0275fac=function(a){return new(a||m)(C(q),C(N),C(se))};static \u0275cmp=P({type:m,selectors:[["app-project-report"]],viewQuery:function(a,n){if(a&1&&A(ge,5),a&2){let l;I(l=T())&&(n.chart=l.first)}},decls:232,vars:20,consts:[[1,"content"],[1,"d-md-flex","d-block","align-items-center","justify-content-between","mb-3"],["title","Project Report",3,"breadcrumbItems"],[1,"d-flex","my-xl-auto","right-content","align-items-center","flex-wrap"],[1,"me-2","mb-2"],[1,"dropdown"],["href","javascript:void(0);","data-bs-toggle","dropdown",1,"dropdown-toggle","btn","btn-white","d-inline-flex","align-items-center"],[1,"ti","ti-file-export","me-1"],[1,"dropdown-menu","dropdown-menu-end","p-3"],["href","javascript:void(0);",1,"dropdown-item","rounded-1"],[1,"ti","ti-file-type-pdf","me-1"],[1,"ti","ti-file-type-xls","me-1"],[1,"row"],[1,"col-lg-6","col-md-6","d-flex"],[1,"row","flex-fill"],[1,"card","flex-fill"],[1,"card-body"],[1,"mb-2"],[1,"fs-14","fw-normal","text-truncate","mb-1"],["role","progressbar","aria-label","Basic example","aria-valuenow","0","aria-valuemin","0","aria-valuemax","100",1,"progress",2,"width","100%","height","5px"],[1,"progress-bar","bg-pink",2,"width","70%"],[1,"d-flex","mt-2"],[1,"fs-12","fw-normal","d-flex","align-items-center","text-truncate"],[1,"text-success","fs-12","d-flex","align-items-center","me-1"],[1,"ti","ti-arrow-wave-right-up","me-1"],[1,"progress-bar","bg-success",2,"width","80%"],[1,"progress-bar","bg-danger",2,"width","20%"],[1,"text-danger","fs-12","d-flex","align-items-center","me-1"],[1,"progress-bar","bg-purple",2,"width","60%"],[1,"card-header","border-0"],[1,"d-flex","flex-wrap","justify-content-between","align-items-center"],[1,"d-flex","align-items-center"],[1,"me-2"],[1,"ti","ti-chart-pie","text-danger"],["href","javascript:void(0);","data-bs-toggle","dropdown",1,"dropdown-toggle","btn","btn-sm","fs-12","btn-white","d-inline-flex","align-items-center"],[1,"dropdown-menu","dropdown-menu-end","p-2"],[1,"card-body","pt-0"],[1,"row","align-items-center","no-tooltips"],[1,"col-md-6","d-flex","justify-content-center"],["id","project-report"],[3,"series","labels","chart","colors","dataLabels","plotOptions","grid","legend","tooltip","responsive"],[1,"col-md-6"],[1,"row","gy-4"],[1,"fs-16","project-report-badge-blue","fw-normal","mb-0","text-gray-5"],[1,"fs-20","fw-bold","text-dark"],[1,"fs-16","project-report-badge-purple","mb-0","fw-normal","text-gray-5"],[1,"fs-16","project-report-badge-warning","mb-0","fw-normal","text-gray-5"],[1,"fs-16","project-report-badge-success","mb-0","fw-normal","text-gray-5"],[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between","flex-wrap","row-gap-3"],[1,"d-flex","my-xl-auto","right-content","align-items-center","flex-wrap","row-gap-3"],[1,"me-3"],[1,"input-icon","position-relative"],[1,"input-icon-addon"],[1,"ti","ti-calendar","text-gray-9"],["type","text","bsDaterangepicker","","placeholder","dd/mm/yyyy - dd/mm/yyyy",1,"form-control","date-range","bookingrange",3,"ngModelChange","ngModel","bsConfig"],[1,"dropdown","me-3"],[1,"card-body","p-0"],[1,"custom-datatable-filter"],[1,"dataTables_wrapper","dt-bootstrap5","no-footer"],[1,"col-sm-12","col-md-6"],[1,"dataTables_length"],[1,"form-select","form-select-sm",3,"ngModel"],["id","DataTables_Table_0_filter",1,"dataTables_filter"],["type","search","placeholder","Search...",1,"form-control","form-control-sm",3,"ngModelChange","ngModel","ngModelOptions"],[1,"table-responsive"],["matSort","",1,"mat-sort","table","datanew","table-center","datatable","dataTable","mb-0",3,"matSortChange"],[1,"thead-light"],[1,"no-sort"],["tabindex","0",1,"form-check","form-check-md",3,"click","keydown.enter"],["type","checkbox","id","select-all",1,"form-check-input",3,"ngModelChange","ngModel"],["mat-sort-header","ProjectID"],["mat-sort-header","ProjectName"],["mat-sort-header","Leader"],["mat-sort-header","Team"],["mat-sort-header","Deadline"],["mat-sort-header","Priority"],["mat-sort-header","Status"],[1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","10"],["value","25"],["value","50"],["value","100"],[1,"form-check","form-check-md"],["type","checkbox",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","file-name-icon"],[1,"fw-medium"],["href","javascriipt:void(0);"],["href","javascript:void(0);",1,"avatar","avatar-md","avatar-rounded"],["alt","img",1,"img-fluid",3,"src"],[1,"ms-2"],["href","javascript:void(0);"],[1,"avatar-list-stacked","avatar-group-sm"],[1,"avatar","border-0"],["alt","img",1,"rounded-circle",3,"src"],[1,"avatar","group-counts","bg-primary","rounded-circle","border-0","fs-10"],[1,"badge","d-inline-flex","align-items-center","badge-xs",3,"ngClass"],[1,"ti","ti-point-filled","me-1"],["colspan","8"],[1,"no-record"]],template:function(a,n){a&1&&(t(0,"div",0)(1,"div",1),d(2,"app-breadcrumbs",2),t(3,"div",3)(4,"div",4)(5,"div",5)(6,"a",6),d(7,"i",7),i(8,"Export "),e(),t(9,"ul",8)(10,"li")(11,"a",9),d(12,"i",10),i(13,"Export as PDF"),e()(),t(14,"li")(15,"a",9),d(16,"i",11),i(17,"Export as Excel "),e()()()()(),d(18,"app-collapse-header"),e()(),t(19,"div",12)(20,"div",13)(21,"div",14)(22,"div",13)(23,"div",15)(24,"div",16)(25,"div")(26,"div",17)(27,"span",18),i(28,"Total Projects"),e(),t(29,"h5"),i(30,"300"),e()(),t(31,"div",19),d(32,"div",20),e()(),t(33,"div",21)(34,"p",22)(35,"span",23),d(36,"i",24),i(37,"+10.54%"),e(),i(38,"from last month"),e()()()()(),t(39,"div",13)(40,"div",15)(41,"div",16)(42,"div")(43,"div",17)(44,"span",18),i(45,"Completed Projects"),e(),t(46,"h5"),i(47,"250"),e()(),t(48,"div",19),d(49,"div",25),e()(),t(50,"div",21)(51,"p",22)(52,"span",23),d(53,"i",24),i(54,"+12.84%"),e(),i(55,"from last month"),e()()()()(),t(56,"div",13)(57,"div",15)(58,"div",16)(59,"div")(60,"div",17)(61,"span",18),i(62,"Pending Projects"),e(),t(63,"h5"),i(64,"50"),e()(),t(65,"div",19),d(66,"div",26),e()(),t(67,"div",21)(68,"p",22)(69,"span",27),d(70,"i",24),i(71,"-10.75%"),e(),i(72,"from last month"),e()()()()(),t(73,"div",13)(74,"div",15)(75,"div",16)(76,"div")(77,"div",17)(78,"span",18),i(79,"New Projects"),e(),t(80,"h5"),i(81,"30"),e()(),t(82,"div",19),d(83,"div",28),e()(),t(84,"div",21)(85,"p",22)(86,"span",23),d(87,"i",24),i(88,"+15.74%"),e(),i(89,"from last month"),e()()()()()()(),t(90,"div",13)(91,"div",15)(92,"div",29)(93,"div",30)(94,"div",31)(95,"span",32),d(96,"i",33),e(),t(97,"h5"),i(98,"Projects By Tasks"),e()(),t(99,"div",5)(100,"a",34),i(101," Office Management App "),e(),t(102,"ul",35)(103,"li")(104,"a",9),i(105,"PRO-001"),e()(),t(106,"li")(107,"a",9),i(108,"PRO-002"),e()(),t(109,"li")(110,"a",9),i(111,"PRO-004"),e()()()()()(),t(112,"div",36)(113,"div",37)(114,"div",38),d(115,"div",39)(116,"apx-chart",40),e(),t(117,"div",41)(118,"div",42)(119,"div",41)(120,"p",43),i(121,"Pending "),e(),t(122,"p",44),i(123,"30%"),e()(),t(124,"div",41)(125,"p",45),i(126,"On Hold"),e(),t(127,"p",44),i(128,"10%"),e()(),t(129,"div",41)(130,"p",46),i(131,"Inprogress "),e(),t(132,"p",44),i(133,"20%"),e()(),t(134,"div",41)(135,"p",47),i(136,"Completed"),e(),t(137,"p",44),i(138,"40%"),e()()()()()()()()(),t(139,"div",48)(140,"div",49)(141,"h5"),i(142,"Project List"),e(),t(143,"div",50)(144,"div",51)(145,"div",52)(146,"span",53),d(147,"i",54),e(),t(148,"input",55),u("ngModelChange",function(r){return g(n.bsRangeValue,r)||(n.bsRangeValue=r),r}),e()()(),t(149,"div",56)(150,"a",6),i(151," Select Priority "),e(),t(152,"ul",8)(153,"li")(154,"a",9),i(155,"Low"),e()(),t(156,"li")(157,"a",9),i(158,"Medium"),e()(),t(159,"li")(160,"a",9),i(161,"High"),e()()()(),t(162,"div",56)(163,"a",6),i(164," Select Status "),e(),t(165,"ul",8)(166,"li")(167,"a",9),i(168,"Active"),e()(),t(169,"li")(170,"a",9),i(171,"Inactive"),e()()()(),t(172,"div",5)(173,"a",6),i(174," Sort By : Last 7 Days "),e(),t(175,"ul",8)(176,"li")(177,"a",9),i(178,"Recently Added"),e()(),t(179,"li")(180,"a",9),i(181,"Ascending"),e()(),t(182,"li")(183,"a",9),i(184,"Desending"),e()(),t(185,"li")(186,"a",9),i(187,"Last Month"),e()(),t(188,"li")(189,"a",9),i(190,"Last 7 Days"),e()()()()()(),t(191,"div",57)(192,"div",58)(193,"div",59)(194,"div",12)(195,"div",60)(196,"div",61)(197,"label"),i(198," Row Per Page "),E(199,fe,9,1,"select",62),i(200," Entries "),e()()(),t(201,"div",60)(202,"div",63)(203,"label")(204,"input",64),u("ngModelChange",function(r){return g(n.searchDataValue,r)||(n.searchDataValue=r),r}),b("ngModelChange",function(){return n.searchData(n.searchDataValue)}),e()()()()(),t(205,"div",65)(206,"table",66),b("matSortChange",function(r){return n.sortData(r)}),t(207,"thead",67)(208,"tr")(209,"th",68)(210,"div",69),b("click",function(){return n.selectAll(n.initChecked)})("keydown.enter",function(){return n.selectAll(n.initChecked)}),t(211,"input",70),u("ngModelChange",function(r){return g(n.initChecked,r)||(n.initChecked=r),r}),e()()(),t(212,"th",71),i(213,"Project ID"),e(),t(214,"th",72),i(215,"Project Name"),e(),t(216,"th",73),i(217,"Leader"),e(),t(218,"th",74),i(219,"Team"),e(),t(220,"th",75),i(221,"Deadline"),e(),t(222,"th",76),i(223,"Priority"),e(),t(224,"th",77),i(225,"Status"),e(),d(226,"th"),e()(),t(227,"tbody"),R(228,Se,39,22,"tr",null,M),E(230,ve,4,0,"tr"),e()()(),d(231,"app-custom-pagination"),e()()()()()),a&2&&(s(2),p("breadcrumbItems",n.breadCrumbItems),s(114),p("series",n.project_chart.series)("labels",n.project_chart.labels)("chart",n.project_chart.chart)("colors",n.project_chart.colors)("dataLabels",n.project_chart.dataLabels)("plotOptions",n.project_chart.plotOptions)("grid",n.project_chart.grid)("legend",n.project_chart.legend)("tooltip",n.project_chart.tooltip)("responsive",n.project_chart.responsive),s(32),c("ngModel",n.bsRangeValue),p("bsConfig",j(18,ue)),s(51),w(n.tableData.length>0?199:-1),s(5),c("ngModel",n.searchDataValue),p("ngModelOptions",j(19,he)),s(7),c("ngModel",n.initChecked),s(17),k(n.tableData),s(2),w(n.tableData.length===0?230:-1))},dependencies:[L,z,X,U,G,O,F,Q,W,H,oe,re,le,ae,ne,me,J,Y,K,ee,Z,$],encapsulation:2})};export{pe as ProjectReportComponent};