HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 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-5LRO5OKW.js
import{a as $}from"./chunk-JKERXUEK.js";import{a as K,b as Q,c as X}from"./chunk-NXA7GLYB.js";import{a as Y,b as Z}from"./chunk-PWMQ74RC.js";import{a as J}from"./chunk-PDL2MCPW.js";import{a as G}from"./chunk-YKW35LPN.js";import"./chunk-JAZSQYD7.js";import{a as q}from"./chunk-RFJHVWQO.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-33OPMCTI.js";import"./chunk-OH3XPIE7.js";import"./chunk-D5XKRYC7.js";import"./chunk-PYXABXFS.js";import"./chunk-RAVHNKJU.js";import"./chunk-3NNWUWWG.js";import"./chunk-4FNTF56S.js";import{b as W,d as R,h as F,m as L,q as B,r as O,s as H,y as U}from"./chunk-7PPOABPU.js";import{a as j}from"./chunk-ILLDEPHH.js";import{d as N,g as I}from"./chunk-K3YFDFGL.js";import"./chunk-WA2UGD5L.js";import"./chunk-BT37DHWM.js";import{Ac as b,Cc as k,Fc as z,Hd as T,Mb as C,Nb as v,Pb as A,Qb as M,Rb as P,Sb as d,Tb as e,Ub as t,Vb as p,ab as x,ac as y,cc as c,ec as _,fb as s,pa as f,qa as S,sb as D,tc as n,uc as u,ud as V,vc as E,yb as w,yc as g,zc as h}from"./chunk-AQ27DSQO.js";import"./chunk-EQDQRRRY.js";var ae=()=>({standalone:!0});function ie(m,o){if(m&1){let a=y();e(0,"select",34),b("ngModelChange",function(l){f(a);let r=_();return h(r.pageSize,l)||(r.pageSize=l),S(l)}),c("ngModelChange",function(){f(a);let l=_();return S(l.changePageSize(l.pageSize))}),e(1,"option",35),n(2,"10"),t(),e(3,"option",36),n(4,"25"),t(),e(5,"option",37),n(6,"50"),t(),e(7,"option",38),n(8,"100"),t()()}if(m&2){let a=_();g("ngModel",a.pageSize)}}function ne(m,o){if(m&1){let a=y();e(0,"tr")(1,"td")(2,"div",39)(3,"input",40),b("ngModelChange",function(l){let r=f(a).$implicit;return h(r.isSelected,l)||(r.isSelected=l),S(l)}),t()()(),e(4,"td")(5,"div",41)(6,"a",42),p(7,"img",43),t(),e(8,"div",44)(9,"h6",45)(10,"a",46),n(11),t()()()()(),e(12,"td"),n(13),t(),e(14,"td"),n(15),t(),e(16,"td"),n(17),t(),e(18,"td")(19,"span",47),p(20,"i",48),n(21),t()(),e(22,"td")(23,"div",49)(24,"a",50),p(25,"i",51),t(),e(26,"a",52),p(27,"i",53),t()()()()}if(m&2){let a=o.$implicit;s(3),g("ngModel",a.isSelected),s(4),d("src",k("assets/img/users/",a==null?null:a.Image),x),s(4),u(a==null?null:a.Name),s(2),u(a.Designation),s(2),u(a.Department),s(2),u(a.AppraisalDate),s(2),d("ngClass",a.Status==="Active"?"badge-success":"badge-danger"),s(2),E("",a.Status," ")}}function re(m,o){m&1&&(e(0,"tr")(1,"td",54)(2,"h5",55),n(3,"No matching records found"),t()()())}var ee=class m{constructor(o,a,i){this.data=o;this.router=a;this.pagination=i;this.breadCrumbItems=[{label:"Performance"},{label:"Performance Appraisal",active:!0}],this.data.getperformanceAppraisal().subscribe(l=>{this.actualData=l.data,this.pagination.tablePageSize.subscribe(r=>{this.router.url==this.routes.performanceAppraisal&&(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=j;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;getTableData(o){this.data.getperformanceAppraisal().subscribe(a=>{this.tableData=[],this.tableDataCopy=[],this.serialNumberArray=[],this.totalData=a.totalData,a.data.map((i,l)=>{let r=l+1;l>=o.skip&&r<=o.limit&&(i.sNo=r,this.tableData.push(i),this.tableDataCopy.push(i),this.serialNumberArray.push(r))}),this.dataSource=new Y(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,i)=>i+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((i,l)=>{let r=i[o.active],te=l[o.active];return(r<te?-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})}static \u0275fac=function(a){return new(a||m)(D(q),D(N),D(Z))};static \u0275cmp=w({type:m,selectors:[["app-performance-appraisal"]],decls:70,vars:7,consts:[[1,"content"],[1,"d-md-flex","d-block","align-items-center","justify-content-between","mb-3"],["title","Performance Appraisal",3,"breadcrumbItems"],[1,"d-flex","my-xl-auto","right-content","align-items-center","flex-wrap"],[1,"mb-2"],["href","javascript:void(0);","data-bs-toggle","modal","data-bs-target","#add_performance_appraisal",1,"btn","btn-primary","d-flex","align-items-center"],[1,"ti","ti-circle-plus","me-2"],[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,"dropdown"],["href","javascript:void(0);","data-bs-toggle","dropdown",1,"dropdown-toggle","btn","btn-white","d-inline-flex","align-items-center"],[1,"dropdown-menu","dropdown-menu-end","p-3"],["href","javascript:void(0);",1,"dropdown-item","rounded-1"],[1,"card-body","p-0"],[1,"custom-datatable-filter"],[1,"dataTables_wrapper","dt-bootstrap5","no-footer"],[1,"row"],[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","Name"],["mat-sort-header","Designation"],["mat-sort-header","Department"],["mat-sort-header","AppraisalDate"],["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"],["href","javascript:void(0);",1,"avatar","avatar-md","border","avatar-rounded"],["alt","img",1,"img-fluid",3,"src"],[1,"ms-2"],[1,"fw-medium"],["href","javascript:void(0);"],[1,"badge","d-inline-flex","align-items-center","badge-xs",3,"ngClass"],[1,"ti","ti-point-filled","me-1"],[1,"action-icon","d-inline-flex"],["href","javascript:void(0);","data-bs-toggle","modal","data-bs-target","#edit_performance_appraisal",1,"me-2"],[1,"ti","ti-edit"],["href","javascript:void(0);","data-bs-toggle","modal","data-bs-target","#delete_modal"],[1,"ti","ti-trash"],["colspan","8"],[1,"no-record"]],template:function(a,i){a&1&&(e(0,"div",0)(1,"div",1),p(2,"app-breadcrumbs",2),e(3,"div",3)(4,"div",4)(5,"a",5),p(6,"i",6),n(7,"Add Appraisal"),t()(),p(8,"app-collapse-header"),t()(),e(9,"div",7)(10,"div",8)(11,"h5"),n(12,"Performance Appraisal List"),t(),e(13,"div",9)(14,"div",10)(15,"a",11),n(16," Sort By : Last 7 Days "),t(),e(17,"ul",12)(18,"li")(19,"a",13),n(20,"Recently Added"),t()(),e(21,"li")(22,"a",13),n(23,"Ascending"),t()(),e(24,"li")(25,"a",13),n(26,"Desending"),t()(),e(27,"li")(28,"a",13),n(29,"Last Month"),t()(),e(30,"li")(31,"a",13),n(32,"Last 7 Days"),t()()()()()(),e(33,"div",14)(34,"div",15)(35,"div",16)(36,"div",17)(37,"div",18)(38,"div",19)(39,"label"),n(40," Row Per Page "),C(41,ie,9,1,"select",20),n(42," Entries "),t()()(),e(43,"div",18)(44,"div",21)(45,"label")(46,"input",22),b("ngModelChange",function(r){return h(i.searchDataValue,r)||(i.searchDataValue=r),r}),c("ngModelChange",function(){return i.searchData(i.searchDataValue)}),t()()()()(),e(47,"div",23)(48,"table",24),c("matSortChange",function(r){return i.sortData(r)}),e(49,"thead",25)(50,"tr")(51,"th",26)(52,"div",27),c("click",function(){return i.selectAll(i.initChecked)})("keydown.enter",function(){return i.selectAll(i.initChecked)}),e(53,"input",28),b("ngModelChange",function(r){return h(i.initChecked,r)||(i.initChecked=r),r}),t()()(),e(54,"th",29),n(55,"Name"),t(),e(56,"th",30),n(57,"Designation"),t(),e(58,"th",31),n(59,"Department"),t(),e(60,"th",32),n(61,"Appraisal Date"),t(),e(62,"th",33),n(63,"Status"),t(),p(64,"th"),t()(),e(65,"tbody"),M(66,ne,28,9,"tr",null,A),C(68,re,4,0,"tr"),t()()(),p(69,"app-custom-pagination"),t()()()()()),a&2&&(s(2),d("breadcrumbItems",i.breadCrumbItems),s(39),v(i.tableData.length>0?41:-1),s(5),g("ngModel",i.searchDataValue),d("ngModelOptions",z(6,ae)),s(7),g("ngModel",i.initChecked),s(13),P(i.tableData),s(2),v(i.tableData.length===0?68:-1))},dependencies:[I,T,V,J,U,O,H,R,W,B,F,L,G,$,X,K,Q],encapsulation:2})};export{ee as PerformanceAppraisalComponent};