@rangertechnologies/fusion-ui 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,13 +17,13 @@ import * as i1$2 from "@angular/cdk/overlay";
17
17
  import { OverlayModule } from "@angular/cdk/overlay";
18
18
  import * as i10$1 from "@rangertechnologies/ngnxt";
19
19
  import { NxtAppModule, NxtButtonComponent, NxtFileUpload } from "@rangertechnologies/ngnxt";
20
- import * as i4$2 from "@angular/material/tooltip";
20
+ import * as i4$1 from "@angular/material/tooltip";
21
21
  import { MatTooltipModule } from "@angular/material/tooltip";
22
22
  import { saveAs } from "file-saver";
23
23
  import * as i1$1 from "@angular/router";
24
24
  import * as i9$1 from "@angular/material/table";
25
25
  import { MatTableDataSource, MatTableModule } from "@angular/material/table";
26
- import * as i4$1 from "@angular/material/paginator";
26
+ import * as i6$1 from "@angular/material/paginator";
27
27
  import { MatPaginator, MatPaginatorIntl, MatPaginatorModule } from "@angular/material/paginator";
28
28
  import * as i10 from "@angular/material/sort";
29
29
  import { MatSort, MatSortModule } from "@angular/material/sort";
@@ -580,6 +580,11 @@ var GlobalValuesService = class GlobalValuesService {
580
580
  refreshEmp$ = this.refreshEmp.asObservable();
581
581
  tablPageParams = new Subject();
582
582
  tablPageParamsValue$ = this.tablPageParams.asObservable();
583
+ attendanceData = new Subject();
584
+ attendanceDataChange$ = this.attendanceData.asObservable();
585
+ attendancePass(message) {
586
+ this.attendanceData.next(message);
587
+ }
583
588
  cachedPayslipTemplate = null;
584
589
  payslipTemplateInFlight = null;
585
590
  constructor(apiService) {
@@ -3495,7 +3500,7 @@ var SideScreenComponent = class SideScreenComponent {
3495
3500
  },
3496
3501
  {
3497
3502
  kind: "directive",
3498
- type: i4$2.MatTooltip,
3503
+ type: i4$1.MatTooltip,
3499
3504
  selector: "[matTooltip]",
3500
3505
  inputs: [
3501
3506
  "matTooltipPosition",
@@ -7006,7 +7011,7 @@ var DataTableComponent = class DataTableComponent {
7006
7011
  },
7007
7012
  {
7008
7013
  kind: "directive",
7009
- type: i4$2.MatTooltip,
7014
+ type: i4$1.MatTooltip,
7010
7015
  selector: "[matTooltip]",
7011
7016
  inputs: [
7012
7017
  "matTooltipPosition",
@@ -7457,6 +7462,8 @@ i0.ɵɵngDeclareClassMetadata({
7457
7462
  });
7458
7463
  var AttendanceTableComponent = class AttendanceTableComponent {
7459
7464
  cdr;
7465
+ apiService;
7466
+ globalValues;
7460
7467
  data = [];
7461
7468
  displayedColumns = [];
7462
7469
  headerLabels = [];
@@ -7519,6 +7526,8 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7519
7526
  searchValueChange = new EventEmitter();
7520
7527
  selectedValues = new EventEmitter();
7521
7528
  pageChange = new EventEmitter();
7529
+ pageDetails = new EventEmitter();
7530
+ searchFilterData = new EventEmitter();
7522
7531
  searchText = new EventEmitter();
7523
7532
  exportButton = new EventEmitter();
7524
7533
  importButton = new EventEmitter();
@@ -7530,6 +7539,11 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7530
7539
  sort;
7531
7540
  paginator;
7532
7541
  dataSource = new MatTableDataSource([]);
7542
+ renderColumns = "displayedColumns";
7543
+ stickyCondition;
7544
+ itemsPerPage = Constants.PAGE_SIZE_OPTIONS;
7545
+ exportSidescreen = false;
7546
+ attendanceSubscription;
7533
7547
  selection = new SelectionModel(true, []);
7534
7548
  selectedMonth = (/* @__PURE__ */ new Date()).getMonth();
7535
7549
  selectedYear = (/* @__PURE__ */ new Date()).getFullYear();
@@ -7549,6 +7563,37 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7549
7563
  "November",
7550
7564
  "December"
7551
7565
  ];
7566
+ button = {
7567
+ "type": "group",
7568
+ "buttonConfig": { "buttons": [{
7569
+ "name": "Import",
7570
+ "class": "text-only",
7571
+ "buttonType": "importButton",
7572
+ "buttonAction": "",
7573
+ "fileName": "",
7574
+ "tableName": "",
7575
+ "fileFormat": "",
7576
+ "apiCall": "",
7577
+ "endPoint": "",
7578
+ "tooltip": "Import",
7579
+ "tooltipPath": "APP.IMPORT",
7580
+ "isImageSvg": true,
7581
+ "iconSrc": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJWOEwxNCA2IiBzdHJva2U9IiMyOTJEMzIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTEyIDhMMTAgNiIgc3Ryb2tlPSIjMjkyRDMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik03IDEyQzMgMTIgMyAxMy43OSAzIDE2VjE3QzMgMTkuNzYgMyAyMiA4IDIySDE2QzIwIDIyIDIxIDE5Ljc2IDIxIDE3VjE2QzIxIDEzLjc5IDIxIDEyIDE3IDEyQzE2IDEyIDE1LjcyIDEyLjIxIDE1LjIgMTIuNkwxNC4xOCAxMy42OEMxMyAxNC45NCAxMSAxNC45NCA5LjgxIDEzLjY4TDguOCAxMi42QzguMjggMTIuMjEgOCAxMiA3IDEyWiIgZmlsbD0iI0Q5RDlEOSIgc3Ryb2tlPSIjMjkyRDMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTUgMTJWOC4wMDAwNEM1IDUuOTkwMDQgNSA0LjMzMDA0IDggNC4wNDAwNCIgc3Ryb2tlPSIjMjkyRDMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE5IDEyVjguMDAwMDRDMTkgNS45OTAwNCAxOSA0LjMzMDA0IDE2IDQuMDQwMDQiIHN0cm9rZT0iIzI5MkQzMiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo="
7582
+ }, {
7583
+ "name": "Export",
7584
+ "class": "text-only",
7585
+ "buttonType": "exportButton",
7586
+ "buttonAction": "export",
7587
+ "fileName": "",
7588
+ "api": "",
7589
+ "type": "",
7590
+ "collectionName": "",
7591
+ "tooltip": "Export",
7592
+ "tooltipPath": "APP.EXPORT",
7593
+ "isImageSvg": true,
7594
+ "iconSrc": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDhWMkwxMCA0IiBzdHJva2U9IiMyOTJEMzIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTEyIDJMMTQgNCIgc3Ryb2tlPSIjMjkyRDMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik03IDEyQzMgMTIgMyAxMy43OSAzIDE2VjE3QzMgMTkuNzYgMyAyMiA4IDIySDE2QzIwIDIyIDIxIDE5Ljc2IDIxIDE3VjE2QzIxIDEzLjc5IDIxIDEyIDE3IDEyQzE2IDEyIDE1LjcyIDEyLjIxIDE1LjIgMTIuNkwxNC4xOCAxMy42OEMxMyAxNC45NCAxMSAxNC45NCA5LjgxIDEzLjY4TDguOCAxMi42QzguMjggMTIuMjEgOCAxMiA3IDEyWiIgZmlsbD0iI0Q5RDlEOSIgc3Ryb2tlPSIjMjkyRDMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTUgMTJWMTBDNSA3Ljk5MDA0IDUgNi4zMzAwNCA4IDYuMDQwMDQiIHN0cm9rZT0iIzI5MkQzMiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xOSAxMlYxMEMxOSA3Ljk5MDA0IDE5IDYuMzMwMDQgMTYgNi4wNDAwNCIgc3Ryb2tlPSIjMjkyRDMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg=="
7595
+ }] }
7596
+ };
7552
7597
  weekendColumnsSet = /* @__PURE__ */ new Set();
7553
7598
  futureColumnsSet = /* @__PURE__ */ new Set();
7554
7599
  todayColumn = null;
@@ -7563,29 +7608,67 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7563
7608
  "compensatory off",
7564
7609
  "comp off"
7565
7610
  ]);
7566
- constructor(cdr) {
7611
+ constructor(cdr, apiService, globalValues) {
7567
7612
  this.cdr = cdr;
7613
+ this.apiService = apiService;
7614
+ this.globalValues = globalValues;
7615
+ this.apiService.fetchValue("/leavemaster").subscribe((res) => {
7616
+ (res?.template || []).forEach((leave) => {
7617
+ if (leave?.leaveType) this.leaveTypeSet.add(String(leave.leaveType).toLowerCase().trim());
7618
+ });
7619
+ this.cdr.markForCheck();
7620
+ });
7621
+ this.attendanceSubscription = this.globalValues.attendanceDataChange$.subscribe((rows) => {
7622
+ this.data = rows;
7623
+ this.initOrUpdateDataSource(rows);
7624
+ });
7568
7625
  }
7569
7626
  ngOnInit() {
7570
7627
  this.initMonthYear();
7571
- this.updateDataSource();
7628
+ this.ensureSummaryColumn();
7572
7629
  this.updateDateLookups();
7630
+ this.initOrUpdateDataSource(this.data);
7573
7631
  }
7574
7632
  ngOnChanges(changes) {
7575
- if (changes["data"]) this.updateDataSource();
7576
- if (changes["month"]?.currentValue !== void 0) this.selectedMonth = this.getMonthNumber(changes["month"].currentValue);
7577
- if (changes["year"]?.currentValue !== void 0) this.selectedYear = Number(changes["year"].currentValue) || this.selectedYear;
7633
+ if (changes["data"] && this.data) this.initOrUpdateDataSource(this.data);
7634
+ if (changes["month"]?.currentValue) this.selectedMonth = this.getMonthNumber(changes["month"].currentValue);
7635
+ if (changes["year"]?.currentValue) this.selectedYear = Number(changes["year"].currentValue) || this.selectedYear;
7636
+ if (changes["displayedColumns"]) this.ensureSummaryColumn();
7578
7637
  if (changes["headerLabels"] || changes["displayedColumns"]) this.updateDateLookups();
7579
- if (changes["isLoading"]) this.cdr.markForCheck();
7638
+ if (changes["isLoading"]) this.initOrUpdateDataSource(this.data);
7639
+ }
7640
+ ngOnDestroy() {
7641
+ this.attendanceSubscription?.unsubscribe();
7580
7642
  }
7581
7643
  initMonthYear() {
7582
7644
  if (this.month !== void 0) this.selectedMonth = this.getMonthNumber(this.month);
7583
7645
  if (this.year !== void 0) this.selectedYear = Number(this.year) || this.selectedYear;
7584
7646
  }
7585
- updateDataSource() {
7586
- this.dataSource.data = Array.isArray(this.data) ? this.data : [];
7647
+ ensureSummaryColumn() {
7648
+ if (this.displayedColumns?.length && !this.displayedColumns.includes("summary")) this.displayedColumns = [...this.displayedColumns, "summary"];
7649
+ }
7650
+ initOrUpdateDataSource(rows) {
7651
+ this.renderColumns = this.withCheckBox ? "select" : "displayedColumns";
7652
+ if (this.isLoading) {
7653
+ this.dataSource = new MatTableDataSource(Array.from({ length: 8 }, () => ({ isSkeleton: true })));
7654
+ this.selection.clear();
7655
+ this.cdr.markForCheck();
7656
+ return;
7657
+ }
7658
+ const records = Array.isArray(rows) ? rows : [];
7659
+ this.dataSource = new MatTableDataSource(records);
7660
+ this.selection.clear();
7587
7661
  if (this.sort) this.dataSource.sort = this.sort;
7588
7662
  if (this.paginator) this.dataSource.paginator = this.paginator;
7663
+ const storedSize = localStorage.getItem("attendanceTableSize");
7664
+ const storedIndex = Number(localStorage.getItem("attendanceTableIndex"));
7665
+ this.pageSize = storedSize ? Number(storedSize) : this.pageSize;
7666
+ this.pageIndex = storedIndex || 0;
7667
+ this.totalCount = this.totalRecords || records.length;
7668
+ if (this.searchTextValue) {
7669
+ this.dataSource.filter = this.searchTextValue.trim().toLowerCase();
7670
+ this.dataSource.paginator?.firstPage();
7671
+ }
7589
7672
  this.cdr.markForCheck();
7590
7673
  }
7591
7674
  updateDateLookups() {
@@ -7633,12 +7716,29 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7633
7716
  triggerChangeDetection() {
7634
7717
  this.cdr.markForCheck();
7635
7718
  }
7636
- onHyperLinkClick(element, column) {
7719
+ hyperLinkClick(element, column, i) {
7637
7720
  this.hyperLinkClickEmit.emit({
7638
7721
  element,
7639
- column
7722
+ column,
7723
+ i
7640
7724
  });
7641
7725
  }
7726
+ isNearTarget(workingDays, totalDays) {
7727
+ const total = Number(totalDays);
7728
+ if (!total || total <= 0) return false;
7729
+ return Number(workingDays) / total >= .8;
7730
+ }
7731
+ isLeaveType(status) {
7732
+ if (!status || typeof status !== "string") return false;
7733
+ const s = status.toLowerCase().trim();
7734
+ return s === "absent" || this.leaveTypeSet.has(s);
7735
+ }
7736
+ containsOnlyNumbers(value) {
7737
+ if (value === null || value === void 0 || value === "" || typeof value === "object") return false;
7738
+ if (typeof value === "number") return !isNaN(value);
7739
+ const s = String(value).trim();
7740
+ return !!s && !isNaN(Number(s));
7741
+ }
7642
7742
  resolveAttendanceValue(raw) {
7643
7743
  if (!raw) return {
7644
7744
  status: "",
@@ -7738,6 +7838,15 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7738
7838
  this.pageSize = event.pageSize;
7739
7839
  this.pageChange.emit(event);
7740
7840
  }
7841
+ pageParams(event) {
7842
+ localStorage.setItem("attendanceTableSize", event.pageSize);
7843
+ localStorage.setItem("attendanceTableIndex", event.pageIndex);
7844
+ this.onPageChange(event);
7845
+ this.pageDetails.emit({
7846
+ pageSize: event.pageSize,
7847
+ pageIndex: Number(event.pageIndex)
7848
+ });
7849
+ }
7741
7850
  prevMonth() {
7742
7851
  if (this.selectedMonth === 0) {
7743
7852
  this.selectedMonth = 11;
@@ -7780,44 +7889,67 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7780
7889
  checkButtonClicked() {
7781
7890
  this.checkClicked.emit();
7782
7891
  }
7783
- onCellClick(element, column) {
7784
- this.rowClick.emit({
7785
- element,
7786
- column
7787
- });
7788
- this.tableRowClick.emit({
7789
- element,
7790
- column
7791
- });
7892
+ tableClick(row) {
7893
+ if (row?.isSkeleton) return;
7894
+ this.tableRowClick.emit(row);
7792
7895
  }
7793
- onCellDoubleClick(element, column) {
7896
+ doubleClickFunction(element, column, presentData) {
7794
7897
  if (element?.isSkeleton) return;
7795
- const dateData = this.headerLabels && this.displayedColumns ? this.headerLabels[this.displayedColumns.indexOf(column)] : column;
7796
7898
  this.doubleClickEmit.emit({
7797
- employeeDetail: element.employeeDetail || element,
7798
- date: dateData,
7799
- data: element[column]
7899
+ employeeDetail: element.employeeDetail,
7900
+ date: column,
7901
+ data: presentData
7800
7902
  });
7801
7903
  }
7802
7904
  applyFilter(event) {
7803
7905
  const filterValue = event.target.value;
7804
7906
  this.dataSource.filter = filterValue.trim().toLowerCase();
7907
+ this.searchFilterData.emit(this.dataSource.filteredData);
7805
7908
  this.searchValueChange.emit(filterValue);
7806
7909
  this.searchText.emit(filterValue);
7910
+ this.dataSource.paginator?.firstPage();
7911
+ }
7912
+ isAllSelected() {
7913
+ if (this.isLoading || !this.dataSource.data.length) return false;
7914
+ return this.selection.selected.length === this.dataSource.data.length;
7807
7915
  }
7808
7916
  masterToggle() {
7809
- if (this.isAllSelected()) this.selection.clear();
7810
- else this.dataSource.data.forEach((row) => this.selection.select(row));
7917
+ if (this.isLoading) return;
7918
+ if (this.selection.hasValue()) this.selection.clear();
7919
+ else this.dataSource.data.forEach((row) => {
7920
+ if (!row?.isSkeleton) this.selection.select(row);
7921
+ });
7811
7922
  this.selectedValues.emit(this.selection.selected);
7812
7923
  }
7813
- isAllSelected() {
7814
- const numSelected = this.selection.selected.length;
7815
- const numRows = this.dataSource.data.length;
7816
- return numSelected === numRows && numRows > 0;
7924
+ separateRowSelect(toggled, row) {
7925
+ if (!row?.isSkeleton) this.selectedValues.emit(this.selection.selected);
7817
7926
  }
7818
- rowToggle(row) {
7819
- this.selection.toggle(row);
7820
- this.selectedValues.emit(this.selection.selected);
7927
+ importButtonEmit() {
7928
+ this.importButton.emit();
7929
+ }
7930
+ exportButtonEmit() {
7931
+ this.exportSidescreen = true;
7932
+ this.exportButton.emit();
7933
+ }
7934
+ commonButtonClick(button) {
7935
+ if (button.buttonType === "importButton") this.importButtonEmit();
7936
+ else if (button.buttonType === "exportButton") this.exportButtonEmit();
7937
+ }
7938
+ exportButtonSideNav() {
7939
+ if (this.exportButtonLoadingSpinner) return;
7940
+ this.exportReports.emit();
7941
+ }
7942
+ exportFieldsButtonEmit(evt) {
7943
+ this.sideNavButtons.emit(evt);
7944
+ }
7945
+ exportFilterButtonEmit(evt) {
7946
+ this.sideNavButtons.emit(evt);
7947
+ }
7948
+ selectedValuesEmit(evt) {
7949
+ this.multipleSelectFilterExport.emit(evt);
7950
+ }
7951
+ filterDateEmit(evt) {
7952
+ this.filterDateEmitEvt.emit(evt);
7821
7953
  }
7822
7954
  getMonthNumber(month) {
7823
7955
  if (typeof month === "number") return month;
@@ -7844,7 +7976,11 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7844
7976
  version: "22.2.4",
7845
7977
  ngImport: i0,
7846
7978
  type: AttendanceTableComponent,
7847
- deps: [{ token: i0.ChangeDetectorRef }],
7979
+ deps: [
7980
+ { token: i0.ChangeDetectorRef },
7981
+ { token: ApiService },
7982
+ { token: GlobalValuesService }
7983
+ ],
7848
7984
  target: i0.ɵɵFactoryTarget.Component
7849
7985
  });
7850
7986
  static ɵcmp = i0.ɵɵngDeclareComponent({
@@ -7898,6 +8034,8 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7898
8034
  searchValueChange: "searchValueChange",
7899
8035
  selectedValues: "selectedValues",
7900
8036
  pageChange: "pageChange",
8037
+ pageDetails: "pageDetails",
8038
+ searchFilterData: "searchFilterData",
7901
8039
  searchText: "searchText",
7902
8040
  exportButton: "exportButton",
7903
8041
  importButton: "importButton",
@@ -7907,6 +8045,10 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7907
8045
  multipleSelectFilterExport: "multipleSelectFilterExport",
7908
8046
  filterDateEmitEvt: "filterDateEmitEvt"
7909
8047
  },
8048
+ providers: [{
8049
+ provide: MatPaginatorIntl,
8050
+ useClass: CustomPaginatorIntl
8051
+ }],
7910
8052
  viewQueries: [{
7911
8053
  propertyName: "sort",
7912
8054
  first: true,
@@ -7920,19 +8062,13 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7920
8062
  }],
7921
8063
  usesOnChanges: true,
7922
8064
  ngImport: i0,
7923
- template: "<!-- MR 09NOV26 Introduce AttendanceTableComponent and harden CustomTranslatePipe -->\n<!-- MR 10NOV26 Restructure AttendanceTableComponent layout to match Image 1 spec -->\n<div class=\"attendance-table-container\">\n <!-- Top Bar: Navigation, Legend, Subtitle & Toolbar -->\n <div class=\"attendance-top-bar d-flex justify-content-between align-items-center flex-wrap gap-2 pb-2\">\n <!-- Month/Year Navigation -->\n <div class=\"d-flex align-items-center gap-3\">\n <div class=\"picker-container position-relative d-inline-flex align-items-center\">\n <i class=\"arrow-btn cursor-pointer fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"\n (click)=\"prevMonth()\" title=\"Previous Month\"></i>\n <span class=\"month-label cursor-pointer fw-semibold px-2\" (click)=\"togglePopup()\">\n {{ months[selectedMonth] | slice:0:3 }} {{ selectedYear }}\n </span>\n <i class=\"arrow-btn cursor-pointer fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"\n (click)=\"nextMonth()\" title=\"Next Month\"></i>\n\n <!-- Month/Year Picker Dropdown Popup -->\n <div class=\"popup position-absolute shadow-sm rounded-3 p-3 bg-white\" *ngIf=\"popupOpen\">\n <div class=\"year-section d-flex justify-content-between align-items-center mb-2\">\n <i class=\"arrow-btn cursor-pointer fusion-icon fusion-icon-arrow-left-1\" (click)=\"changeYear(-1)\"></i>\n <span class=\"fw-bold\">{{ selectedYear }}</span>\n <i class=\"arrow-btn cursor-pointer fusion-icon fusion-icon-arrow-right-1\" (click)=\"changeYear(1)\"></i>\n </div>\n <div class=\"month-grid d-grid\" style=\"grid-template-columns: repeat(3, 1fr); gap: 6px;\">\n <div *ngFor=\"let m of (monthArray && monthArray.length > 0 ? monthArray : months); let i = index\"\n class=\"month-item text-center p-2 rounded cursor-pointer\"\n [class.active]=\"i === selectedMonth\"\n (click)=\"selectMonth(i)\">\n {{ m | slice:0:3 }}\n </div>\n </div>\n </div>\n </div>\n\n <!-- Attendance Legend Bar -->\n <div class=\"top-legend-bar d-flex align-items-center gap-3 flex-wrap\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">&#10003;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PRESENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">&#10005;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-text-muted fw-bold px-1\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </div>\n\n <!-- Actions & Search Toolbar -->\n <div class=\"d-flex align-items-center gap-2 ms-auto\">\n <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar d-flex align-items-center px-2 py-1\">\n <input type=\"text\"\n class=\"search-input\"\n [placeholder]=\"'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search'\"\n (keyup)=\"applyFilter($event)\"\n [value]=\"searchTextValue || ''\" />\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 22\" fill=\"none\" class=\"ms-1 search-icon\">\n <circle cx=\"11.64\" cy=\"10.54\" r=\"8.7\" stroke=\"#787486\" stroke-width=\"1.5\"/>\n <path d=\"M21.63 20.17L19.73 18.33\" stroke=\"#787486\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\n </svg>\n </div>\n </div>\n\n <!-- Export Button -->\n <button type=\"button\"\n class=\"toolbar-action-btn\"\n (click)=\"exportButton.emit($event)\"\n title=\"Export\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path>\n <polyline points=\"7 10 12 15 17 10\"></polyline>\n <line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"></line>\n </svg>\n </button>\n\n <!-- Import Button -->\n <button type=\"button\"\n class=\"toolbar-action-btn\"\n (click)=\"importButton.emit($event)\"\n title=\"Import\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path>\n <polyline points=\"17 8 12 3 7 8\"></polyline>\n <line x1=\"12\" y1=\"3\" x2=\"12\" y2=\"15\"></line>\n </svg>\n </button>\n\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\"\n type=\"button\"\n class=\"btn btn-primary btn-sm ms-2\"\n (click)=\"confirmModal = true\">\n {{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}\n </button>\n </div>\n </div>\n\n <!-- Subtitle Date Range Bar -->\n <div class=\"attendance-range-row d-flex justify-content-end align-items-center mb-2\">\n <span class=\"range-date-text\">{{ getDateRangeText() }}</span>\n </div>\n\n <!-- Loading Skeleton State -->\n <div *ngIf=\"isLoading; else dataTableTemplate\" class=\"attendance-skeleton-container py-3\">\n <table class=\"w-100\">\n <tr *ngFor=\"let _ of [1, 2, 3, 4, 5, 6]\" style=\"height: 44px;\">\n <td class=\"skeleton-cell p-2\">\n <div class=\"skeleton-line\" style=\"height: 24px; border-radius: 4px; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);\"></div>\n </td>\n </tr>\n </table>\n </div>\n\n <!-- Matrix Table View -->\n <ng-template #dataTableTemplate>\n <div class=\"table-responsive table-container\" tabindex=\"0\">\n <table mat-table [dataSource]=\"dataSource\" matSort class=\"attendance-mat-table\">\n\n <!-- Checkbox Selection Column -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" [sticky]=\"true\">\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column checkbox-col text-center\">\n <input type=\"checkbox\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"masterToggle()\"\n [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n class=\"custom-checkbox\" />\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-column checkbox-col text-center\">\n <input type=\"checkbox\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"rowToggle(row)\"\n [checked]=\"selection.isSelected(row)\"\n class=\"custom-checkbox\" />\n </td>\n </ng-container>\n\n <!-- Dynamic Data & Calendar Day Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i = index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\">\n <!-- Matrix Column Header -->\n <th mat-header-cell *matHeaderCellDef mat-sort-header\n [class.sticky-column]=\"isColumnSticky(column)\"\n [class.weekend-col]=\"isWeekend(column)\"\n [class.today-header]=\"isToday(column)\"\n [class.employee-detail-col]=\"column === 'employeeDetail'\"\n [class.calendar-day-col]=\"column !== 'employeeDetail' && column !== 'summary'\"\n [class.summary-col]=\"column === 'summary'\"\n class=\"head-cell text-center\">\n\n <!-- Employee Detail Column Header -->\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <div class=\"text-start ps-2 fw-semibold\">\n {{ 'Employee' | customTranslate : 'Employee' }}\n </div>\n </ng-container>\n\n <!-- Calendar Day Columns (Objects: { date, day, month, year }) -->\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <div class=\"d-flex flex-column align-items-center py-1\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span *ngIf=\"isToday(column); else standardDateNum\" class=\"head-today-circle\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n <ng-template #standardDateNum>\n <span class=\"head-date-num\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-template>\n </div>\n </ng-container>\n\n <!-- Summary Column Header (\"DAYS\") -->\n <ng-container *ngIf=\"column === 'summary'\">\n <div class=\"d-flex flex-column align-items-center py-1\">\n <span class=\"days-header-label\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'DAYS' }}</span>\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#64748b\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"mt-1\">\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect>\n <line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\"></line>\n <line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\"></line>\n <line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\"></line>\n <polyline points=\"9 16 12 19 16 14\"></polyline>\n </svg>\n </div>\n </ng-container>\n </th>\n\n <!-- Matrix Column Data Cell -->\n <td mat-cell *matCellDef=\"let element\"\n [class.sticky-column]=\"isColumnSticky(column)\"\n [class.weekend-col]=\"isWeekend(column)\"\n [class.employee-detail-col]=\"column === 'employeeDetail'\"\n [class.calendar-day-col]=\"column !== 'employeeDetail' && column !== 'summary'\"\n [class.summary-col]=\"column === 'summary'\"\n class=\"body-cell text-center\"\n (click)=\"onCellClick(element, column)\">\n\n <!-- Employee Detail Cell (Avatar & Info with Inline ID Badge) -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"d-flex align-items-center gap-2 py-1 ps-2 text-start\">\n <div class=\"avatar-circle flex-shrink-0\">\n {{ getInitials(element.employeeName || element.name || '') }}\n </div>\n <div class=\"employee-meta text-truncate\">\n <div class=\"d-flex align-items-center gap-1 text-truncate\">\n <span class=\"emp-name fw-semibold text-truncate\">\n {{ element.employeeName || element.name || '' }}\n </span>\n <span class=\"emp-id-badge\" *ngIf=\"element.employeeId || element.empId\">\n {{ element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-subtitle text-muted text-truncate\" *ngIf=\"element.designation || element.department || element.location\">\n {{ element.designation || element.department || element.location || '' }}\n </div>\n </div>\n </div>\n\n <!-- Calendar Day Attendance Cell -->\n <div *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\"\n class=\"attendance-cell cursor-pointer d-flex justify-content-center align-items-center\"\n (dblclick)=\"onCellDoubleClick(element, column)\">\n <!-- Status Chip for Punches (Present, Absent, Half day, Holiday) -->\n <span *ngIf=\"hasAttendanceChip(element[column], column); else plainStateTemplate\"\n class=\"attendance-chip\"\n [ngClass]=\"getAttendanceChipClass(element[column])\">\n {{ getAttendanceChipSymbol(element[column]) }}\n </span>\n <!-- Plain State (Week Off dash or Unpunched dot) -->\n <ng-template #plainStateTemplate>\n <span *ngIf=\"isWeekOffState(element[column], column)\" class=\"attendance-text-muted\">-</span>\n <span *ngIf=\"!isWeekOffState(element[column], column)\" class=\"attendance-text-dot\">.</span>\n </ng-template>\n </div>\n\n <!-- Summary Column (\"0/22\", \"0/30\") -->\n <div *ngIf=\"column === 'summary'\" class=\"days-summary-cell fw-semibold text-center\">\n {{ element.presentDays !== undefined ? element.presentDays : (element.present || 0) }}/{{ element.totalWorkingDays !== undefined ? element.totalWorkingDays : (element.totalDays || 0) }}\n </div>\n </td>\n </ng-container>\n\n <!-- Row Declarations -->\n <tr mat-header-row *matHeaderRowDef=\"(withCheckBox ? ['select'].concat(displayedColumns) : displayedColumns); sticky: true\" class=\"table-header-row\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: (withCheckBox ? ['select'].concat(displayedColumns) : displayedColumns);\" class=\"table-data-row\"></tr>\n </table>\n\n <!-- Empty State -->\n <div *ngIf=\"!dataSource.data || dataSource.data.length === 0\" class=\"no-records-cell text-center py-4 text-muted\">\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </div>\n </div>\n\n <!-- Paginator Footer -->\n <div class=\"d-flex justify-content-end align-items-center mt-2\">\n <mat-paginator [pageSizeOptions]=\"pageSizeOptions\"\n [pageSize]=\"pageSize\"\n [length]=\"totalCount || totalRecords || dataSource.data.length\"\n [showFirstLastButtons]=\"true\"\n (page)=\"onPageChange($event)\"\n class=\"attendance-paginator\">\n </mat-paginator>\n </div>\n </ng-template>\n</div>\n\n<!-- Sandwich Leave Confirmation Modal -->\n<div *ngIf=\"confirmModal\" class=\"custom-modal-overlay position-fixed top-0 start-0 w-100 h-100 d-flex justify-content-center align-items-center\">\n <div class=\"custom-modal bg-white rounded-3 shadow-lg p-4\" style=\"max-width: 420px; width: 90%;\">\n <div class=\"custom-modal-header d-flex justify-content-between align-items-center mb-3\">\n <b class=\"fs-6\">{{ 'APP_HRM_ATTENDANCE.CHECK_ATTENDANCE' | customTranslate : 'Check Attendance' }}</b>\n <button type=\"button\" class=\"btn-close\" (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"custom-modal-body mb-4 text-secondary\">\n {{ 'APP_HRM_ATTENDANCE.CONFIRM_CHECK' | customTranslate : 'Are you sure you want to run attendance check?' }}\n </div>\n <div class=\"custom-modal-footer d-flex justify-content-end gap-2\">\n <button type=\"button\" class=\"btn btn-secondary btn-sm\" (click)=\"confirmModal = false\">\n {{ 'APP.NO' | customTranslate : 'No' }}\n </button>\n <button type=\"button\" class=\"btn btn-primary btn-sm\" (click)=\"checkButtonClicked(); confirmModal = false\">\n {{ 'APP.YES' | customTranslate : 'Yes' }}\n </button>\n </div>\n </div>\n</div>\n",
7924
- styles: [".attendance-table-container{width:100%;background:var(--comp-bg-color, #ffffff);border-radius:8px}.attendance-top-bar{margin-bottom:4px}.picker-container{-webkit-user-select:none;user-select:none;border:1px solid var(--border-color, #e2e8f0);border-radius:6px;padding:3px 6px;background:#fff}.month-label{font-size:13px;color:var(--fc-text-color-dark, #0f172a)}.arrow-btn{font-size:14px;padding:2px;color:var(--label-text-color, #64748b);transition:color .15s ease-in-out}.arrow-btn:hover{color:var(--fc-primary-color, #0140c1)}.popup{top:100%;left:0;z-index:100;width:230px;border:1px solid var(--border-color, #e2e8f0)}.month-item{font-size:12px;color:var(--fc-text-color, #1e293b);transition:background .15s ease-in-out}.month-item:hover{background:#f1f5f9}.month-item.active{background:var(--fc-primary-color, #0140c1);color:#fff;font-weight:600}.top-legend-bar{font-size:12px}.legend-text{color:var(--label-text-color, #475569);font-size:12px;font-weight:var(--fw-500, 500)}.attendance-chip{width:19px;height:18px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;line-height:1}.attendance-present{background-color:#dcfce7;color:#16a34a}.attendance-absent{background-color:#fee2e2;color:#ef4444}.attendance-half{background-color:#fef3c7;color:#d97706}.attendance-holiday{background-color:#e0e7ff;color:#4338ca}.attendance-text-muted{color:#94a3b8;font-size:12px;font-weight:600}.attendance-text-dot{color:#cbd5e1;font-size:13px;font-weight:700;display:inline-block;transform:translateY(-2px)}.search{display:inline-flex;align-items:center}.search-bar{border:1px solid var(--border-color, #e2e8f0);border-radius:6px;background:#fff}.search-input{background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;font-size:13px!important;color:var(--fc-text-color, #1e293b);width:150px}.search-icon{flex-shrink:0}.toolbar-action-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color, #e2e8f0);border-radius:6px;background:#fff;color:var(--label-text-color, #64748b);cursor:pointer;transition:all .15s ease-in-out}.toolbar-action-btn:hover{background:#f8fafc;color:var(--fc-primary-color, #0140c1);border-color:#cbd5e1}.attendance-range-row{margin-top:-4px}.range-date-text{font-size:12px;color:var(--label-text-color, #64748b);font-weight:500}.table-container{overflow-x:auto;position:relative;border:1px solid var(--border-color, #e2e8f0);border-radius:6px;background:#fff}.attendance-mat-table{table-layout:fixed;width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.head-cell{background:var(--comp-bg-color, #ffffff);border-bottom:1px solid var(--border-color, #e2e8f0);color:var(--fc-text-color, #1e293b);padding:4px 1px!important}.body-cell{border-bottom:1px solid #f1f5f9;background:var(--comp-bg-color, #ffffff);padding:4px 1px!important;height:44px}tr.table-data-row:hover td{background-color:#f8fafc}.checkbox-col{width:38px!important;min-width:38px!important;max-width:38px!important}.employee-detail-col{width:175px!important;min-width:175px!important;max-width:175px!important}.calendar-day-col{width:30px!important;min-width:30px!important;max-width:30px!important}.summary-col{width:48px!important;min-width:48px!important;max-width:48px!important}.head-day-letter{font-size:10px;font-weight:600;color:var(--label-text-color, #64748b)}.head-date-num{font-size:11px;font-weight:600;color:var(--fc-text-color-dark, #0f172a)}.head-today-circle{width:20px;height:20px;border-radius:50%;background-color:#0b2253;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.head-muted{color:#94a3b8}.weekend-col{background-color:#f8fafc!important}.sticky-column{position:sticky!important;z-index:2;background-color:inherit}.avatar-circle{width:28px;height:28px;border-radius:50%;background-color:#e0f2fe;color:#0369a1;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600}.emp-name{font-size:12px;color:var(--fc-text-color-dark, #0f172a);font-weight:600}.emp-id-badge{background-color:#f1f5f9;color:#64748b;border-radius:4px;font-size:10px;padding:1px 4px;font-weight:500}.emp-subtitle{font-size:10px;color:#64748b;line-height:1.2}.days-header-label{font-size:9px;font-weight:600;color:#64748b;text-transform:uppercase}.days-summary-cell{font-size:11px;font-weight:600;color:#334155}.attendance-paginator{background:transparent;font-size:12px}.custom-modal-overlay{background:#00000073;z-index:1050}\n"],
8065
+ template: "<!-- MR 10NOV26 Port exact DataTableTwoComponent template from host testMaster -->\n<div class=\"table-layout w-100\" [id]=\"tableId\">\n <div>\n <div class=\"d-flex justify-content-between\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex\">\n <!-- SC19NOV2025 replace the month year seperate dropdown into month year picker -->\n <div class=\"picker-container\">\n <i class=\" arrow-btn fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"\n (click)=\"prevMonth()\" style=\"color: var(--fc-text-color-dar) !important;\"></i>\n <span class=\"month-label\" (click)=\"togglePopup()\">\n {{ months[selectedMonth] }} {{ selectedYear }}\n </span>\n <i class=\" arrow-btn fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"\n (click)=\"nextMonth()\" style=\"color: var(--fc-text-color-dar) !important;\"></i>\n </div>\n <div class=\"popup\" *ngIf=\"popupOpen\">\n <div class=\"year-section\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\" (click)=\"changeYear(-1)\"\n style=\"color: var(--fc-text-color-dar) !important;\"></i>\n <span>{{ selectedYear }}</span>\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\" (click)=\"changeYear(1)\"\n style=\"color: var(--fc-text-color-dar) !important;\"></i>\n </div>\n\n <div class=\"month-grid\">\n <div class=\"month-item\" *ngFor=\"let m of (monthArray && monthArray.length > 0 ? monthArray : months); let i = index\" [class.active]=\"i === selectedMonth\"\n (click)=\"selectMonth(i)\">\n {{ m | slice:0:3 }} </div>\n </div>\n </div>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar\">\n <input type=\"text\" placeholder=\"{{ 'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search' }}\"\n matInput (keyup)=\"applyFilter($event)\" #input [value]=\"searchTextValue || ''\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\" class=\"btn btn-primary me-2\"\n (click)=\"confirmModal = true\">{{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}</button>\n <div class=\"flex\">\n <!-- MR 18OCT26 Add clear tooltips for Import and Export toolbar buttons -->\n <nxt-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event)\"\n [buttonType]=\"button?.class\" [buttonValue]=\"button?.namePath\" [buttonConfig]=\"button?.buttonConfig\"\n [type]=\"button?.type\" [btnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </nxt-button>\n </div>\n </div>\n </div>\n\n <!-- MR 18OCT26 Reposition legend to top bar with matching chips and contextual title -->\n <div class=\"d-flex justify-content-between align-items-center top-legend-bar\">\n <div class=\"d-flex align-items-center gap-3 flex-wrap\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">&#10003;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">&#10005;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\">\n <!-- MR 18OCT26 Single unified MatTable eliminates header style discrepancy and checkbox shadow -->\n <table mat-table [dataSource]=\"dataSource\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.week-off]=\"isWeekend(column)\"\n style=\"text-align: center; padding: 0px !important;\" *matCellDef=\"let element\">\n <ng-container *ngIf=\"!element?.isSkeleton; else skeletonCell\">\n <!-- Employee Detail Column with Avatar and Metadata -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"emp-avatar\">\n {{ getInitials(element[column]?.empName || element.employeeName || element.name) }}\n </div>\n <div class=\"emp-meta\">\n <div class=\"emp-name-row\">\n <span class=\"emp-name\" [class.hyper-link]=\"hyperLinkColumns.includes(column)\"\n (click)=\"hyperLinkColumns.includes(column) ? hyperLinkClick(element, column, i) : ''\"\n [title]=\"element[column]?.empName || element.employeeName || element.name\">\n {{ element[column]?.empName || element.employeeName || element.name }}\n </span>\n <span *ngIf=\"element[column]?.empId || element.employeeId || element.empId\" class=\"emp-id-tag\">\n {{ element[column]?.empId || element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-sub-row\" [title]=\"(element[column]?.desig || element.designation || '') + ((element[column]?.loc || element.location) ? (', ' + (element[column]?.loc || element.location)) : '')\">\n <span>{{ element[column]?.desig || element.designation }}</span>\n <span *ngIf=\"(element[column]?.desig || element.designation) && (element[column]?.loc || element.location)\">, </span>\n <span>{{ element[column]?.loc || element.location }}</span>\n </div>\n </div>\n </div>\n\n <!-- Summary Pill Column -->\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <span class=\"summary-pill\" [class.summary-pill--target]=\"isNearTarget(element.workingDays ?? element.presentDays, element.totalCompanyWorkingDays ?? element.totalWorkingDays)\"\n [title]=\"'Present: ' + (element.workingDays ?? element.presentDays ?? 0) + ' / Total Working Days: ' + (element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0)\">\n {{element.workingDays ?? element.presentDays ?? 0}}/{{element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0}}\n </span>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">&#10003;</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">&#10005;</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <div class=\"d-flex justify-content-end Legend-div\">\n <mat-paginator #paginator [pageSizeOptions]=\"itemsPerPage\" [length]=\"totalCount\" [pageSize]=\"pageSize\"\n [pageIndex]=\"pageIndex\" showFirstLastButtons (page)=\"pageParams($event)\"></mat-paginator>\n </div>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
8066
+ styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{max-height:600px;overflow-y:auto;display:block;width:100%}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-normal);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color{background:var(--fb-action-surface, #e0f2fe)!important;color:var(--fb-text-primary, #0f172a)!important}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);background:var(--fb-surface, #ffffff);border-radius:6px;align-self:center}.search-bar{display:flex;flex-direction:row;align-items:center;width:100%;margin:5px}.card-btn{height:18px;width:18px}td.mat-cell:last-of-type{padding:8px;font-size:var(--fs-medium)}.table-title{font-weight:var(--fw-600);font-size:var(--fs-medium)}.search-component{top:20px;width:max-content;right:-30%}.sticky-column{background:var(--fb-surface, #ffffff)}.mat-sort-header-container{margin-left:5px}.body-color img{width:25px;padding:5px;cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border:none;color:var(--fb-text-primary, #0f172a);max-width:50px}.mat-cell{padding:8px;white-space:nowrap;text-overflow:ellipsis}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.mat-column-select{width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center;padding:0!important;overflow:clip!important;text-overflow:clip!important}.mat-column-employeeDetail{width:260px!important;min-width:260px!important;max-width:260px!important;left:44px!important;padding-left:8px!important;padding-right:8px!important}.mat-column-summary{width:64px!important;min-width:64px!important;max-width:64px!important;text-align:center;padding:0 4px!important}.th-td{width:36px!important;min-width:36px!important;max-width:36px!important;text-align:center;padding:0!important}::ng-deep .mdc-data-table__cell,.mdc-data-table__header-cell{padding:0!important}::ng-deep .mat-mdc-checkbox-touch-target{height:28px!important}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding:0 8px}.mat-row{height:56px!important;min-height:56px!important;transition:background-color .15s ease}.mat-row:hover,.mat-row:hover .sticky-column,.mat-row:hover .sticky-col{background-color:var(--fb-row-hover, #f8fafc)!important}.mat-cell{height:56px!important;padding:0 2px!important;white-space:nowrap;color:var(--fb-text-primary, #0f172a)}.mat-header-row{height:52px!important;position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);z-index:20;border-bottom:1px solid var(--fb-border-default, #e2e8f0);color:var(--fb-text-primary, #0f172a)}.sticky-select .mdc-checkbox{opacity:.55;transition:opacity .15s ease}.mat-row:hover .sticky-select .mdc-checkbox,.sticky-select .mdc-checkbox--selected,.sticky-select .mdc-checkbox--indeterminate{opacity:1!important}.week-off{background:var(--week-off, #f8fafc)!important}.holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%)!important;color:var(--holiday, #0284c7)}.attendance-chip{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);cursor:pointer;transition:transform .1s ease;-webkit-user-select:none;user-select:none}.attendance-chip:hover{transform:scale(1.1)}.attendance-chip.attendance-present{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a)}.attendance-chip.attendance-absent{background:color-mix(in srgb,var(--attendance-absent, #ef4444),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-absent, #ef4444)}.attendance-chip.attendance-half{background:color-mix(in srgb,var(--attendance-half, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:color-mix(in srgb,var(--attendance-half, #f59e0b),black 45%)}.attendance-chip.attendance-holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%);color:var(--holiday, #0284c7)}.attendance-chip.attendance-review{background:color-mix(in srgb,var(--clr-warning, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:var(--clr-warning, #f59e0b)}.attendance-chip.attendance-weekoff{background:color-mix(in srgb,var(--attendance-weekoff, #64748b),var(--comp-bg-color, #ffffff) 90%);color:var(--attendance-weekoff, #64748b)}.att-missing{width:20px;height:20px;border:1px dashed color-mix(in srgb,var(--border-color, #e2e8f0),black 15%);border-radius:6px;display:inline-block}.att-future{color:var(--fc-text-color-light, #94a3b8);font-size:16px;line-height:1;display:inline-block;opacity:.5}.att-dash{color:var(--label-text-color-light, #64748b);font-size:14px}.emp-cell-container{display:flex;align-items:center;gap:10px;width:100%;padding:0 4px}.emp-avatar{width:32px;height:32px;min-width:32px;border-radius:50%;font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);display:flex;align-items:center;justify-content:center;flex-shrink:0}.emp-meta{display:flex;flex-direction:column;overflow:hidden;text-align:left;line-height:1.25;min-width:0}.emp-name-row{display:flex;align-items:center;gap:6px;overflow:hidden}.emp-name{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emp-id-tag{font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-500, 500);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);padding:1px 5px;border-radius:4px;border:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.emp-sub-row{font-size:var(--fs-Usmall, 11px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.summary-pill{padding:2px 8px;border-radius:20px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);border:1px solid var(--border-color, #e2e8f0);display:inline-block;white-space:nowrap}.summary-pill--target{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a);border-color:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 70%)}.head-employee-label{font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a)}.head-day-letter{font-size:var(--fs-Usmall, 11px);color:var(--fc-text-color-light, #64748b);font-weight:var(--fw-500, 500);line-height:1;text-transform:uppercase}.head-date-num{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);line-height:1.4;margin-top:2px}.head-today{background:var(--fb-action, #003566)!important;color:var(--fb-text-on-action, #ffffff)!important;border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.head-muted{color:var(--fb-text-muted, #94a3b8)!important}.top-legend-bar{border-top:1px solid var(--fb-border-default, #e2e8f0);padding:8px 12px;font-size:var(--fs-small, 12px);background:var(--fb-surface, #ffffff)}.legend-text{font-size:var(--fs-small, 12px);color:var(--fc-text-color-dark, #0f172a);font-weight:var(--fw-500, 500)}.table-subtitle{font-size:var(--fs-normal, 13px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500)}@media screen and (min-width:600px){mat-table{font-size:18px}}@media screen and (max-width:882px){mat-table{font-size:var(--fs-medium)}.mat-column-name,.mat-column-weight{display:none}.mat-header-cell{padding:8px}}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline;cursor:pointer}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.btn-primary{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action, #003566)!important;border-color:var(--fb-action, #003566)!important;padding:4px 9px;border-radius:.375rem}.btn-primary:hover{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-hover, #00284d)!important;border-color:var(--fb-action-hover, #00284d)!important}.btn-primary:active,.btn-primary.active,.show>.btn-primary.dropdown-toggle{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-pressed, #001f3f)!important;border-color:var(--fb-action-pressed, #001f3f)!important}.btn-primary:disabled,.btn-primary.disabled{color:var(--fb-text-disabled, #94a3b8)!important;background-color:var(--fb-action-disabled, #e2e8f0)!important;border-color:var(--fb-action-disabled, #e2e8f0)!important}::ng-deep .clickable-img{height:36px!important;transition:unset!important;border:unset!important;border-radius:0!important}::ng-deep nxt-button.ms-2,::ng-deep nxt-button.me-2{margin-left:0!important;margin-right:0!important}.body-color img{border-radius:8px!important}.modal-backdrop{opacity:.9}.mat-table{width:100%;border-spacing:0}.mat-header-row{position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-text-primary, #0f172a);z-index:2}.picker-container{display:flex;align-items:center;font-size:18px;font-weight:600;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.month-label{cursor:pointer;min-width:100px;text-align:center;font-size:var(--fs-medium, 14px)}.arrow-btn{border:none;background:transparent;font-size:20px;cursor:pointer}.popup{position:absolute;margin-top:45px;background:var(--fb-surface-elevated, #ffffff);padding:15px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0,0,0,.12));border-radius:var(--radius-medium, 8px);width:200px;z-index:1000}.year-section{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:10px;font-size:var(--fs-medium, 14px)}.year-section button{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:none;padding:3px 8px;font-size:14px;cursor:pointer}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-size:var(--fs-medium, 14px)}.month-item{padding:6px;border-radius:4px;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc)}.month-item.active{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.Legend-font{font-size:var(--fs-normal, 13px)}.table-margin,.Legend-div{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.sticky-checkbox{position:sticky;left:0;z-index:1000;background:var(--fb-surface, #ffffff);min-width:48px;width:48px}th.sticky-checkbox{z-index:1100}\n"],
7925
8067
  dependencies: [
7926
8068
  {
7927
8069
  kind: "ngmodule",
7928
8070
  type: CommonModule
7929
8071
  },
7930
- {
7931
- kind: "directive",
7932
- type: i1$4.NgClass,
7933
- selector: "[ngClass]",
7934
- inputs: ["class", "ngClass"]
7935
- },
7936
8072
  {
7937
8073
  kind: "directive",
7938
8074
  type: i1$4.NgForOf,
@@ -7953,6 +8089,23 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7953
8089
  "ngIfElse"
7954
8090
  ]
7955
8091
  },
8092
+ {
8093
+ kind: "directive",
8094
+ type: i1$4.NgSwitch,
8095
+ selector: "[ngSwitch]",
8096
+ inputs: ["ngSwitch"]
8097
+ },
8098
+ {
8099
+ kind: "directive",
8100
+ type: i1$4.NgSwitchCase,
8101
+ selector: "[ngSwitchCase]",
8102
+ inputs: ["ngSwitchCase"]
8103
+ },
8104
+ {
8105
+ kind: "directive",
8106
+ type: i1$4.NgSwitchDefault,
8107
+ selector: "[ngSwitchDefault]"
8108
+ },
7956
8109
  {
7957
8110
  kind: "ngmodule",
7958
8111
  type: FormsModule
@@ -8021,6 +8174,11 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8021
8174
  selector: "mat-row, tr[mat-row]",
8022
8175
  exportAs: ["matRow"]
8023
8176
  },
8177
+ {
8178
+ kind: "directive",
8179
+ type: i9$1.MatNoDataRow,
8180
+ selector: "ng-template[matNoDataRow]"
8181
+ },
8024
8182
  {
8025
8183
  kind: "ngmodule",
8026
8184
  type: MatSortModule
@@ -8039,27 +8197,13 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8039
8197
  outputs: ["matSortChange"],
8040
8198
  exportAs: ["matSort"]
8041
8199
  },
8042
- {
8043
- kind: "component",
8044
- type: i10.MatSortHeader,
8045
- selector: "[mat-sort-header]",
8046
- inputs: [
8047
- "mat-sort-header",
8048
- "arrowPosition",
8049
- "start",
8050
- "disabled",
8051
- "sortActionDescription",
8052
- "disableClear"
8053
- ],
8054
- exportAs: ["matSortHeader"]
8055
- },
8056
8200
  {
8057
8201
  kind: "ngmodule",
8058
8202
  type: MatPaginatorModule
8059
8203
  },
8060
8204
  {
8061
8205
  kind: "component",
8062
- type: i4$1.MatPaginator,
8206
+ type: i6$1.MatPaginator,
8063
8207
  selector: "mat-paginator",
8064
8208
  inputs: [
8065
8209
  "color",
@@ -8079,6 +8223,128 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8079
8223
  kind: "ngmodule",
8080
8224
  type: MatTooltipModule
8081
8225
  },
8226
+ {
8227
+ kind: "ngmodule",
8228
+ type: MatCheckboxModule
8229
+ },
8230
+ {
8231
+ kind: "component",
8232
+ type: i3$1.MatCheckbox,
8233
+ selector: "mat-checkbox",
8234
+ inputs: [
8235
+ "aria-label",
8236
+ "aria-labelledby",
8237
+ "aria-describedby",
8238
+ "aria-expanded",
8239
+ "aria-controls",
8240
+ "aria-owns",
8241
+ "id",
8242
+ "required",
8243
+ "labelPosition",
8244
+ "name",
8245
+ "value",
8246
+ "disableRipple",
8247
+ "tabIndex",
8248
+ "color",
8249
+ "disabledInteractive",
8250
+ "checked",
8251
+ "disabled",
8252
+ "indeterminate"
8253
+ ],
8254
+ outputs: ["change", "indeterminateChange"],
8255
+ exportAs: ["matCheckbox"]
8256
+ },
8257
+ {
8258
+ kind: "component",
8259
+ type: NxtButtonComponent,
8260
+ selector: "nxt-button",
8261
+ inputs: [
8262
+ "buttonValue",
8263
+ "buttonType",
8264
+ "type",
8265
+ "buttonDisable",
8266
+ "btnBgColor",
8267
+ "btnBorder",
8268
+ "btnBorderRadius",
8269
+ "btnBorderColor",
8270
+ "btnTextColor",
8271
+ "btnHeight",
8272
+ "btnWidth",
8273
+ "btnIconLeftSrc",
8274
+ "btnIconRightSrc",
8275
+ "btnHoverBgColor",
8276
+ "btnHoverTextColor",
8277
+ "btnId",
8278
+ "dataDismiss",
8279
+ "modalToTrigger",
8280
+ "isImageSvg",
8281
+ "tabIndex",
8282
+ "buttonConfig",
8283
+ "mode",
8284
+ "languageCode",
8285
+ "padding",
8286
+ "isLoading",
8287
+ "selector",
8288
+ "dropdownLoadingButton"
8289
+ ],
8290
+ outputs: ["buttonClickEmit"]
8291
+ },
8292
+ {
8293
+ kind: "component",
8294
+ type: CommonScreenComponent,
8295
+ selector: "app-common-screen",
8296
+ inputs: ["headerTitle", "dynamicScreenStyle"],
8297
+ outputs: ["sideScreenEmittedEvent"]
8298
+ },
8299
+ {
8300
+ kind: "component",
8301
+ type: MultiCheckboxComponent,
8302
+ selector: "app-multi-checkbox",
8303
+ inputs: [
8304
+ "label",
8305
+ "checkboxList",
8306
+ "activeCheckboxList",
8307
+ "cardSize",
8308
+ "componentData",
8309
+ "cardInlineSize",
8310
+ "buttonList",
8311
+ "cardClass",
8312
+ "clearSelection",
8313
+ "displayValues",
8314
+ "checkBoxStyles",
8315
+ "contentCardStyle",
8316
+ "cardStyle",
8317
+ "radioCheck",
8318
+ "isButtonLoadingSpinner"
8319
+ ],
8320
+ outputs: ["compDataEmit", "checkEmit"]
8321
+ },
8322
+ {
8323
+ kind: "component",
8324
+ type: MultipleFilterComponent,
8325
+ selector: "app-multiple-filter",
8326
+ inputs: [
8327
+ "label",
8328
+ "checkboxList",
8329
+ "activeCheckboxList",
8330
+ "cardSize",
8331
+ "componentData",
8332
+ "cardInlineSize",
8333
+ "buttonList",
8334
+ "cardClass",
8335
+ "displayValues",
8336
+ "checkBoxStyles",
8337
+ "selectionData",
8338
+ "isDateFilter",
8339
+ "isButtonLoadingSpinner"
8340
+ ],
8341
+ outputs: [
8342
+ "compDataEmit",
8343
+ "checkEmit",
8344
+ "selectedValuesEmit",
8345
+ "filterDateEmit"
8346
+ ]
8347
+ },
8082
8348
  {
8083
8349
  kind: "pipe",
8084
8350
  type: i1$4.SlicePipe,
@@ -8111,14 +8377,27 @@ i0.ɵɵngDeclareClassMetadata({
8111
8377
  MatSortModule,
8112
8378
  MatPaginatorModule,
8113
8379
  MatTooltipModule,
8380
+ MatCheckboxModule,
8381
+ NxtButtonComponent,
8382
+ CommonScreenComponent,
8383
+ MultiCheckboxComponent,
8384
+ MultipleFilterComponent,
8114
8385
  CustomTranslatePipe
8115
8386
  ],
8116
8387
  changeDetection: ChangeDetectionStrategy.OnPush,
8117
- template: "<!-- MR 09NOV26 Introduce AttendanceTableComponent and harden CustomTranslatePipe -->\n<!-- MR 10NOV26 Restructure AttendanceTableComponent layout to match Image 1 spec -->\n<div class=\"attendance-table-container\">\n <!-- Top Bar: Navigation, Legend, Subtitle & Toolbar -->\n <div class=\"attendance-top-bar d-flex justify-content-between align-items-center flex-wrap gap-2 pb-2\">\n <!-- Month/Year Navigation -->\n <div class=\"d-flex align-items-center gap-3\">\n <div class=\"picker-container position-relative d-inline-flex align-items-center\">\n <i class=\"arrow-btn cursor-pointer fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"\n (click)=\"prevMonth()\" title=\"Previous Month\"></i>\n <span class=\"month-label cursor-pointer fw-semibold px-2\" (click)=\"togglePopup()\">\n {{ months[selectedMonth] | slice:0:3 }} {{ selectedYear }}\n </span>\n <i class=\"arrow-btn cursor-pointer fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"\n (click)=\"nextMonth()\" title=\"Next Month\"></i>\n\n <!-- Month/Year Picker Dropdown Popup -->\n <div class=\"popup position-absolute shadow-sm rounded-3 p-3 bg-white\" *ngIf=\"popupOpen\">\n <div class=\"year-section d-flex justify-content-between align-items-center mb-2\">\n <i class=\"arrow-btn cursor-pointer fusion-icon fusion-icon-arrow-left-1\" (click)=\"changeYear(-1)\"></i>\n <span class=\"fw-bold\">{{ selectedYear }}</span>\n <i class=\"arrow-btn cursor-pointer fusion-icon fusion-icon-arrow-right-1\" (click)=\"changeYear(1)\"></i>\n </div>\n <div class=\"month-grid d-grid\" style=\"grid-template-columns: repeat(3, 1fr); gap: 6px;\">\n <div *ngFor=\"let m of (monthArray && monthArray.length > 0 ? monthArray : months); let i = index\"\n class=\"month-item text-center p-2 rounded cursor-pointer\"\n [class.active]=\"i === selectedMonth\"\n (click)=\"selectMonth(i)\">\n {{ m | slice:0:3 }}\n </div>\n </div>\n </div>\n </div>\n\n <!-- Attendance Legend Bar -->\n <div class=\"top-legend-bar d-flex align-items-center gap-3 flex-wrap\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">&#10003;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PRESENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">&#10005;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-text-muted fw-bold px-1\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </div>\n\n <!-- Actions & Search Toolbar -->\n <div class=\"d-flex align-items-center gap-2 ms-auto\">\n <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar d-flex align-items-center px-2 py-1\">\n <input type=\"text\"\n class=\"search-input\"\n [placeholder]=\"'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search'\"\n (keyup)=\"applyFilter($event)\"\n [value]=\"searchTextValue || ''\" />\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 22\" fill=\"none\" class=\"ms-1 search-icon\">\n <circle cx=\"11.64\" cy=\"10.54\" r=\"8.7\" stroke=\"#787486\" stroke-width=\"1.5\"/>\n <path d=\"M21.63 20.17L19.73 18.33\" stroke=\"#787486\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\n </svg>\n </div>\n </div>\n\n <!-- Export Button -->\n <button type=\"button\"\n class=\"toolbar-action-btn\"\n (click)=\"exportButton.emit($event)\"\n title=\"Export\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path>\n <polyline points=\"7 10 12 15 17 10\"></polyline>\n <line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"></line>\n </svg>\n </button>\n\n <!-- Import Button -->\n <button type=\"button\"\n class=\"toolbar-action-btn\"\n (click)=\"importButton.emit($event)\"\n title=\"Import\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path>\n <polyline points=\"17 8 12 3 7 8\"></polyline>\n <line x1=\"12\" y1=\"3\" x2=\"12\" y2=\"15\"></line>\n </svg>\n </button>\n\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\"\n type=\"button\"\n class=\"btn btn-primary btn-sm ms-2\"\n (click)=\"confirmModal = true\">\n {{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}\n </button>\n </div>\n </div>\n\n <!-- Subtitle Date Range Bar -->\n <div class=\"attendance-range-row d-flex justify-content-end align-items-center mb-2\">\n <span class=\"range-date-text\">{{ getDateRangeText() }}</span>\n </div>\n\n <!-- Loading Skeleton State -->\n <div *ngIf=\"isLoading; else dataTableTemplate\" class=\"attendance-skeleton-container py-3\">\n <table class=\"w-100\">\n <tr *ngFor=\"let _ of [1, 2, 3, 4, 5, 6]\" style=\"height: 44px;\">\n <td class=\"skeleton-cell p-2\">\n <div class=\"skeleton-line\" style=\"height: 24px; border-radius: 4px; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);\"></div>\n </td>\n </tr>\n </table>\n </div>\n\n <!-- Matrix Table View -->\n <ng-template #dataTableTemplate>\n <div class=\"table-responsive table-container\" tabindex=\"0\">\n <table mat-table [dataSource]=\"dataSource\" matSort class=\"attendance-mat-table\">\n\n <!-- Checkbox Selection Column -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" [sticky]=\"true\">\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column checkbox-col text-center\">\n <input type=\"checkbox\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"masterToggle()\"\n [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n class=\"custom-checkbox\" />\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-column checkbox-col text-center\">\n <input type=\"checkbox\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"rowToggle(row)\"\n [checked]=\"selection.isSelected(row)\"\n class=\"custom-checkbox\" />\n </td>\n </ng-container>\n\n <!-- Dynamic Data & Calendar Day Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i = index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\">\n <!-- Matrix Column Header -->\n <th mat-header-cell *matHeaderCellDef mat-sort-header\n [class.sticky-column]=\"isColumnSticky(column)\"\n [class.weekend-col]=\"isWeekend(column)\"\n [class.today-header]=\"isToday(column)\"\n [class.employee-detail-col]=\"column === 'employeeDetail'\"\n [class.calendar-day-col]=\"column !== 'employeeDetail' && column !== 'summary'\"\n [class.summary-col]=\"column === 'summary'\"\n class=\"head-cell text-center\">\n\n <!-- Employee Detail Column Header -->\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <div class=\"text-start ps-2 fw-semibold\">\n {{ 'Employee' | customTranslate : 'Employee' }}\n </div>\n </ng-container>\n\n <!-- Calendar Day Columns (Objects: { date, day, month, year }) -->\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <div class=\"d-flex flex-column align-items-center py-1\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span *ngIf=\"isToday(column); else standardDateNum\" class=\"head-today-circle\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n <ng-template #standardDateNum>\n <span class=\"head-date-num\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-template>\n </div>\n </ng-container>\n\n <!-- Summary Column Header (\"DAYS\") -->\n <ng-container *ngIf=\"column === 'summary'\">\n <div class=\"d-flex flex-column align-items-center py-1\">\n <span class=\"days-header-label\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'DAYS' }}</span>\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#64748b\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"mt-1\">\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect>\n <line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\"></line>\n <line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\"></line>\n <line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\"></line>\n <polyline points=\"9 16 12 19 16 14\"></polyline>\n </svg>\n </div>\n </ng-container>\n </th>\n\n <!-- Matrix Column Data Cell -->\n <td mat-cell *matCellDef=\"let element\"\n [class.sticky-column]=\"isColumnSticky(column)\"\n [class.weekend-col]=\"isWeekend(column)\"\n [class.employee-detail-col]=\"column === 'employeeDetail'\"\n [class.calendar-day-col]=\"column !== 'employeeDetail' && column !== 'summary'\"\n [class.summary-col]=\"column === 'summary'\"\n class=\"body-cell text-center\"\n (click)=\"onCellClick(element, column)\">\n\n <!-- Employee Detail Cell (Avatar & Info with Inline ID Badge) -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"d-flex align-items-center gap-2 py-1 ps-2 text-start\">\n <div class=\"avatar-circle flex-shrink-0\">\n {{ getInitials(element.employeeName || element.name || '') }}\n </div>\n <div class=\"employee-meta text-truncate\">\n <div class=\"d-flex align-items-center gap-1 text-truncate\">\n <span class=\"emp-name fw-semibold text-truncate\">\n {{ element.employeeName || element.name || '' }}\n </span>\n <span class=\"emp-id-badge\" *ngIf=\"element.employeeId || element.empId\">\n {{ element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-subtitle text-muted text-truncate\" *ngIf=\"element.designation || element.department || element.location\">\n {{ element.designation || element.department || element.location || '' }}\n </div>\n </div>\n </div>\n\n <!-- Calendar Day Attendance Cell -->\n <div *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\"\n class=\"attendance-cell cursor-pointer d-flex justify-content-center align-items-center\"\n (dblclick)=\"onCellDoubleClick(element, column)\">\n <!-- Status Chip for Punches (Present, Absent, Half day, Holiday) -->\n <span *ngIf=\"hasAttendanceChip(element[column], column); else plainStateTemplate\"\n class=\"attendance-chip\"\n [ngClass]=\"getAttendanceChipClass(element[column])\">\n {{ getAttendanceChipSymbol(element[column]) }}\n </span>\n <!-- Plain State (Week Off dash or Unpunched dot) -->\n <ng-template #plainStateTemplate>\n <span *ngIf=\"isWeekOffState(element[column], column)\" class=\"attendance-text-muted\">-</span>\n <span *ngIf=\"!isWeekOffState(element[column], column)\" class=\"attendance-text-dot\">.</span>\n </ng-template>\n </div>\n\n <!-- Summary Column (\"0/22\", \"0/30\") -->\n <div *ngIf=\"column === 'summary'\" class=\"days-summary-cell fw-semibold text-center\">\n {{ element.presentDays !== undefined ? element.presentDays : (element.present || 0) }}/{{ element.totalWorkingDays !== undefined ? element.totalWorkingDays : (element.totalDays || 0) }}\n </div>\n </td>\n </ng-container>\n\n <!-- Row Declarations -->\n <tr mat-header-row *matHeaderRowDef=\"(withCheckBox ? ['select'].concat(displayedColumns) : displayedColumns); sticky: true\" class=\"table-header-row\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: (withCheckBox ? ['select'].concat(displayedColumns) : displayedColumns);\" class=\"table-data-row\"></tr>\n </table>\n\n <!-- Empty State -->\n <div *ngIf=\"!dataSource.data || dataSource.data.length === 0\" class=\"no-records-cell text-center py-4 text-muted\">\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </div>\n </div>\n\n <!-- Paginator Footer -->\n <div class=\"d-flex justify-content-end align-items-center mt-2\">\n <mat-paginator [pageSizeOptions]=\"pageSizeOptions\"\n [pageSize]=\"pageSize\"\n [length]=\"totalCount || totalRecords || dataSource.data.length\"\n [showFirstLastButtons]=\"true\"\n (page)=\"onPageChange($event)\"\n class=\"attendance-paginator\">\n </mat-paginator>\n </div>\n </ng-template>\n</div>\n\n<!-- Sandwich Leave Confirmation Modal -->\n<div *ngIf=\"confirmModal\" class=\"custom-modal-overlay position-fixed top-0 start-0 w-100 h-100 d-flex justify-content-center align-items-center\">\n <div class=\"custom-modal bg-white rounded-3 shadow-lg p-4\" style=\"max-width: 420px; width: 90%;\">\n <div class=\"custom-modal-header d-flex justify-content-between align-items-center mb-3\">\n <b class=\"fs-6\">{{ 'APP_HRM_ATTENDANCE.CHECK_ATTENDANCE' | customTranslate : 'Check Attendance' }}</b>\n <button type=\"button\" class=\"btn-close\" (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"custom-modal-body mb-4 text-secondary\">\n {{ 'APP_HRM_ATTENDANCE.CONFIRM_CHECK' | customTranslate : 'Are you sure you want to run attendance check?' }}\n </div>\n <div class=\"custom-modal-footer d-flex justify-content-end gap-2\">\n <button type=\"button\" class=\"btn btn-secondary btn-sm\" (click)=\"confirmModal = false\">\n {{ 'APP.NO' | customTranslate : 'No' }}\n </button>\n <button type=\"button\" class=\"btn btn-primary btn-sm\" (click)=\"checkButtonClicked(); confirmModal = false\">\n {{ 'APP.YES' | customTranslate : 'Yes' }}\n </button>\n </div>\n </div>\n</div>\n",
8118
- styles: [".attendance-table-container{width:100%;background:var(--comp-bg-color, #ffffff);border-radius:8px}.attendance-top-bar{margin-bottom:4px}.picker-container{-webkit-user-select:none;user-select:none;border:1px solid var(--border-color, #e2e8f0);border-radius:6px;padding:3px 6px;background:#fff}.month-label{font-size:13px;color:var(--fc-text-color-dark, #0f172a)}.arrow-btn{font-size:14px;padding:2px;color:var(--label-text-color, #64748b);transition:color .15s ease-in-out}.arrow-btn:hover{color:var(--fc-primary-color, #0140c1)}.popup{top:100%;left:0;z-index:100;width:230px;border:1px solid var(--border-color, #e2e8f0)}.month-item{font-size:12px;color:var(--fc-text-color, #1e293b);transition:background .15s ease-in-out}.month-item:hover{background:#f1f5f9}.month-item.active{background:var(--fc-primary-color, #0140c1);color:#fff;font-weight:600}.top-legend-bar{font-size:12px}.legend-text{color:var(--label-text-color, #475569);font-size:12px;font-weight:var(--fw-500, 500)}.attendance-chip{width:19px;height:18px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;line-height:1}.attendance-present{background-color:#dcfce7;color:#16a34a}.attendance-absent{background-color:#fee2e2;color:#ef4444}.attendance-half{background-color:#fef3c7;color:#d97706}.attendance-holiday{background-color:#e0e7ff;color:#4338ca}.attendance-text-muted{color:#94a3b8;font-size:12px;font-weight:600}.attendance-text-dot{color:#cbd5e1;font-size:13px;font-weight:700;display:inline-block;transform:translateY(-2px)}.search{display:inline-flex;align-items:center}.search-bar{border:1px solid var(--border-color, #e2e8f0);border-radius:6px;background:#fff}.search-input{background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;font-size:13px!important;color:var(--fc-text-color, #1e293b);width:150px}.search-icon{flex-shrink:0}.toolbar-action-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color, #e2e8f0);border-radius:6px;background:#fff;color:var(--label-text-color, #64748b);cursor:pointer;transition:all .15s ease-in-out}.toolbar-action-btn:hover{background:#f8fafc;color:var(--fc-primary-color, #0140c1);border-color:#cbd5e1}.attendance-range-row{margin-top:-4px}.range-date-text{font-size:12px;color:var(--label-text-color, #64748b);font-weight:500}.table-container{overflow-x:auto;position:relative;border:1px solid var(--border-color, #e2e8f0);border-radius:6px;background:#fff}.attendance-mat-table{table-layout:fixed;width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.head-cell{background:var(--comp-bg-color, #ffffff);border-bottom:1px solid var(--border-color, #e2e8f0);color:var(--fc-text-color, #1e293b);padding:4px 1px!important}.body-cell{border-bottom:1px solid #f1f5f9;background:var(--comp-bg-color, #ffffff);padding:4px 1px!important;height:44px}tr.table-data-row:hover td{background-color:#f8fafc}.checkbox-col{width:38px!important;min-width:38px!important;max-width:38px!important}.employee-detail-col{width:175px!important;min-width:175px!important;max-width:175px!important}.calendar-day-col{width:30px!important;min-width:30px!important;max-width:30px!important}.summary-col{width:48px!important;min-width:48px!important;max-width:48px!important}.head-day-letter{font-size:10px;font-weight:600;color:var(--label-text-color, #64748b)}.head-date-num{font-size:11px;font-weight:600;color:var(--fc-text-color-dark, #0f172a)}.head-today-circle{width:20px;height:20px;border-radius:50%;background-color:#0b2253;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.head-muted{color:#94a3b8}.weekend-col{background-color:#f8fafc!important}.sticky-column{position:sticky!important;z-index:2;background-color:inherit}.avatar-circle{width:28px;height:28px;border-radius:50%;background-color:#e0f2fe;color:#0369a1;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600}.emp-name{font-size:12px;color:var(--fc-text-color-dark, #0f172a);font-weight:600}.emp-id-badge{background-color:#f1f5f9;color:#64748b;border-radius:4px;font-size:10px;padding:1px 4px;font-weight:500}.emp-subtitle{font-size:10px;color:#64748b;line-height:1.2}.days-header-label{font-size:9px;font-weight:600;color:#64748b;text-transform:uppercase}.days-summary-cell{font-size:11px;font-weight:600;color:#334155}.attendance-paginator{background:transparent;font-size:12px}.custom-modal-overlay{background:#00000073;z-index:1050}\n"]
8388
+ providers: [{
8389
+ provide: MatPaginatorIntl,
8390
+ useClass: CustomPaginatorIntl
8391
+ }],
8392
+ template: "<!-- MR 10NOV26 Port exact DataTableTwoComponent template from host testMaster -->\n<div class=\"table-layout w-100\" [id]=\"tableId\">\n <div>\n <div class=\"d-flex justify-content-between\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex\">\n <!-- SC19NOV2025 replace the month year seperate dropdown into month year picker -->\n <div class=\"picker-container\">\n <i class=\" arrow-btn fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"\n (click)=\"prevMonth()\" style=\"color: var(--fc-text-color-dar) !important;\"></i>\n <span class=\"month-label\" (click)=\"togglePopup()\">\n {{ months[selectedMonth] }} {{ selectedYear }}\n </span>\n <i class=\" arrow-btn fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"\n (click)=\"nextMonth()\" style=\"color: var(--fc-text-color-dar) !important;\"></i>\n </div>\n <div class=\"popup\" *ngIf=\"popupOpen\">\n <div class=\"year-section\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\" (click)=\"changeYear(-1)\"\n style=\"color: var(--fc-text-color-dar) !important;\"></i>\n <span>{{ selectedYear }}</span>\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\" (click)=\"changeYear(1)\"\n style=\"color: var(--fc-text-color-dar) !important;\"></i>\n </div>\n\n <div class=\"month-grid\">\n <div class=\"month-item\" *ngFor=\"let m of (monthArray && monthArray.length > 0 ? monthArray : months); let i = index\" [class.active]=\"i === selectedMonth\"\n (click)=\"selectMonth(i)\">\n {{ m | slice:0:3 }} </div>\n </div>\n </div>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar\">\n <input type=\"text\" placeholder=\"{{ 'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search' }}\"\n matInput (keyup)=\"applyFilter($event)\" #input [value]=\"searchTextValue || ''\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\" class=\"btn btn-primary me-2\"\n (click)=\"confirmModal = true\">{{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}</button>\n <div class=\"flex\">\n <!-- MR 18OCT26 Add clear tooltips for Import and Export toolbar buttons -->\n <nxt-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event)\"\n [buttonType]=\"button?.class\" [buttonValue]=\"button?.namePath\" [buttonConfig]=\"button?.buttonConfig\"\n [type]=\"button?.type\" [btnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </nxt-button>\n </div>\n </div>\n </div>\n\n <!-- MR 18OCT26 Reposition legend to top bar with matching chips and contextual title -->\n <div class=\"d-flex justify-content-between align-items-center top-legend-bar\">\n <div class=\"d-flex align-items-center gap-3 flex-wrap\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">&#10003;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">&#10005;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\">\n <!-- MR 18OCT26 Single unified MatTable eliminates header style discrepancy and checkbox shadow -->\n <table mat-table [dataSource]=\"dataSource\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.week-off]=\"isWeekend(column)\"\n style=\"text-align: center; padding: 0px !important;\" *matCellDef=\"let element\">\n <ng-container *ngIf=\"!element?.isSkeleton; else skeletonCell\">\n <!-- Employee Detail Column with Avatar and Metadata -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"emp-avatar\">\n {{ getInitials(element[column]?.empName || element.employeeName || element.name) }}\n </div>\n <div class=\"emp-meta\">\n <div class=\"emp-name-row\">\n <span class=\"emp-name\" [class.hyper-link]=\"hyperLinkColumns.includes(column)\"\n (click)=\"hyperLinkColumns.includes(column) ? hyperLinkClick(element, column, i) : ''\"\n [title]=\"element[column]?.empName || element.employeeName || element.name\">\n {{ element[column]?.empName || element.employeeName || element.name }}\n </span>\n <span *ngIf=\"element[column]?.empId || element.employeeId || element.empId\" class=\"emp-id-tag\">\n {{ element[column]?.empId || element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-sub-row\" [title]=\"(element[column]?.desig || element.designation || '') + ((element[column]?.loc || element.location) ? (', ' + (element[column]?.loc || element.location)) : '')\">\n <span>{{ element[column]?.desig || element.designation }}</span>\n <span *ngIf=\"(element[column]?.desig || element.designation) && (element[column]?.loc || element.location)\">, </span>\n <span>{{ element[column]?.loc || element.location }}</span>\n </div>\n </div>\n </div>\n\n <!-- Summary Pill Column -->\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <span class=\"summary-pill\" [class.summary-pill--target]=\"isNearTarget(element.workingDays ?? element.presentDays, element.totalCompanyWorkingDays ?? element.totalWorkingDays)\"\n [title]=\"'Present: ' + (element.workingDays ?? element.presentDays ?? 0) + ' / Total Working Days: ' + (element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0)\">\n {{element.workingDays ?? element.presentDays ?? 0}}/{{element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0}}\n </span>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">&#10003;</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">&#10005;</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <div class=\"d-flex justify-content-end Legend-div\">\n <mat-paginator #paginator [pageSizeOptions]=\"itemsPerPage\" [length]=\"totalCount\" [pageSize]=\"pageSize\"\n [pageIndex]=\"pageIndex\" showFirstLastButtons (page)=\"pageParams($event)\"></mat-paginator>\n </div>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
8393
+ styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{max-height:600px;overflow-y:auto;display:block;width:100%}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-normal);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color{background:var(--fb-action-surface, #e0f2fe)!important;color:var(--fb-text-primary, #0f172a)!important}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);background:var(--fb-surface, #ffffff);border-radius:6px;align-self:center}.search-bar{display:flex;flex-direction:row;align-items:center;width:100%;margin:5px}.card-btn{height:18px;width:18px}td.mat-cell:last-of-type{padding:8px;font-size:var(--fs-medium)}.table-title{font-weight:var(--fw-600);font-size:var(--fs-medium)}.search-component{top:20px;width:max-content;right:-30%}.sticky-column{background:var(--fb-surface, #ffffff)}.mat-sort-header-container{margin-left:5px}.body-color img{width:25px;padding:5px;cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border:none;color:var(--fb-text-primary, #0f172a);max-width:50px}.mat-cell{padding:8px;white-space:nowrap;text-overflow:ellipsis}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.mat-column-select{width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center;padding:0!important;overflow:clip!important;text-overflow:clip!important}.mat-column-employeeDetail{width:260px!important;min-width:260px!important;max-width:260px!important;left:44px!important;padding-left:8px!important;padding-right:8px!important}.mat-column-summary{width:64px!important;min-width:64px!important;max-width:64px!important;text-align:center;padding:0 4px!important}.th-td{width:36px!important;min-width:36px!important;max-width:36px!important;text-align:center;padding:0!important}::ng-deep .mdc-data-table__cell,.mdc-data-table__header-cell{padding:0!important}::ng-deep .mat-mdc-checkbox-touch-target{height:28px!important}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding:0 8px}.mat-row{height:56px!important;min-height:56px!important;transition:background-color .15s ease}.mat-row:hover,.mat-row:hover .sticky-column,.mat-row:hover .sticky-col{background-color:var(--fb-row-hover, #f8fafc)!important}.mat-cell{height:56px!important;padding:0 2px!important;white-space:nowrap;color:var(--fb-text-primary, #0f172a)}.mat-header-row{height:52px!important;position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);z-index:20;border-bottom:1px solid var(--fb-border-default, #e2e8f0);color:var(--fb-text-primary, #0f172a)}.sticky-select .mdc-checkbox{opacity:.55;transition:opacity .15s ease}.mat-row:hover .sticky-select .mdc-checkbox,.sticky-select .mdc-checkbox--selected,.sticky-select .mdc-checkbox--indeterminate{opacity:1!important}.week-off{background:var(--week-off, #f8fafc)!important}.holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%)!important;color:var(--holiday, #0284c7)}.attendance-chip{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);cursor:pointer;transition:transform .1s ease;-webkit-user-select:none;user-select:none}.attendance-chip:hover{transform:scale(1.1)}.attendance-chip.attendance-present{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a)}.attendance-chip.attendance-absent{background:color-mix(in srgb,var(--attendance-absent, #ef4444),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-absent, #ef4444)}.attendance-chip.attendance-half{background:color-mix(in srgb,var(--attendance-half, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:color-mix(in srgb,var(--attendance-half, #f59e0b),black 45%)}.attendance-chip.attendance-holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%);color:var(--holiday, #0284c7)}.attendance-chip.attendance-review{background:color-mix(in srgb,var(--clr-warning, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:var(--clr-warning, #f59e0b)}.attendance-chip.attendance-weekoff{background:color-mix(in srgb,var(--attendance-weekoff, #64748b),var(--comp-bg-color, #ffffff) 90%);color:var(--attendance-weekoff, #64748b)}.att-missing{width:20px;height:20px;border:1px dashed color-mix(in srgb,var(--border-color, #e2e8f0),black 15%);border-radius:6px;display:inline-block}.att-future{color:var(--fc-text-color-light, #94a3b8);font-size:16px;line-height:1;display:inline-block;opacity:.5}.att-dash{color:var(--label-text-color-light, #64748b);font-size:14px}.emp-cell-container{display:flex;align-items:center;gap:10px;width:100%;padding:0 4px}.emp-avatar{width:32px;height:32px;min-width:32px;border-radius:50%;font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);display:flex;align-items:center;justify-content:center;flex-shrink:0}.emp-meta{display:flex;flex-direction:column;overflow:hidden;text-align:left;line-height:1.25;min-width:0}.emp-name-row{display:flex;align-items:center;gap:6px;overflow:hidden}.emp-name{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emp-id-tag{font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-500, 500);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);padding:1px 5px;border-radius:4px;border:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.emp-sub-row{font-size:var(--fs-Usmall, 11px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.summary-pill{padding:2px 8px;border-radius:20px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);border:1px solid var(--border-color, #e2e8f0);display:inline-block;white-space:nowrap}.summary-pill--target{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a);border-color:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 70%)}.head-employee-label{font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a)}.head-day-letter{font-size:var(--fs-Usmall, 11px);color:var(--fc-text-color-light, #64748b);font-weight:var(--fw-500, 500);line-height:1;text-transform:uppercase}.head-date-num{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);line-height:1.4;margin-top:2px}.head-today{background:var(--fb-action, #003566)!important;color:var(--fb-text-on-action, #ffffff)!important;border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.head-muted{color:var(--fb-text-muted, #94a3b8)!important}.top-legend-bar{border-top:1px solid var(--fb-border-default, #e2e8f0);padding:8px 12px;font-size:var(--fs-small, 12px);background:var(--fb-surface, #ffffff)}.legend-text{font-size:var(--fs-small, 12px);color:var(--fc-text-color-dark, #0f172a);font-weight:var(--fw-500, 500)}.table-subtitle{font-size:var(--fs-normal, 13px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500)}@media screen and (min-width:600px){mat-table{font-size:18px}}@media screen and (max-width:882px){mat-table{font-size:var(--fs-medium)}.mat-column-name,.mat-column-weight{display:none}.mat-header-cell{padding:8px}}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline;cursor:pointer}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.btn-primary{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action, #003566)!important;border-color:var(--fb-action, #003566)!important;padding:4px 9px;border-radius:.375rem}.btn-primary:hover{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-hover, #00284d)!important;border-color:var(--fb-action-hover, #00284d)!important}.btn-primary:active,.btn-primary.active,.show>.btn-primary.dropdown-toggle{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-pressed, #001f3f)!important;border-color:var(--fb-action-pressed, #001f3f)!important}.btn-primary:disabled,.btn-primary.disabled{color:var(--fb-text-disabled, #94a3b8)!important;background-color:var(--fb-action-disabled, #e2e8f0)!important;border-color:var(--fb-action-disabled, #e2e8f0)!important}::ng-deep .clickable-img{height:36px!important;transition:unset!important;border:unset!important;border-radius:0!important}::ng-deep nxt-button.ms-2,::ng-deep nxt-button.me-2{margin-left:0!important;margin-right:0!important}.body-color img{border-radius:8px!important}.modal-backdrop{opacity:.9}.mat-table{width:100%;border-spacing:0}.mat-header-row{position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-text-primary, #0f172a);z-index:2}.picker-container{display:flex;align-items:center;font-size:18px;font-weight:600;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.month-label{cursor:pointer;min-width:100px;text-align:center;font-size:var(--fs-medium, 14px)}.arrow-btn{border:none;background:transparent;font-size:20px;cursor:pointer}.popup{position:absolute;margin-top:45px;background:var(--fb-surface-elevated, #ffffff);padding:15px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0,0,0,.12));border-radius:var(--radius-medium, 8px);width:200px;z-index:1000}.year-section{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:10px;font-size:var(--fs-medium, 14px)}.year-section button{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:none;padding:3px 8px;font-size:14px;cursor:pointer}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-size:var(--fs-medium, 14px)}.month-item{padding:6px;border-radius:4px;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc)}.month-item.active{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.Legend-font{font-size:var(--fs-normal, 13px)}.table-margin,.Legend-div{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.sticky-checkbox{position:sticky;left:0;z-index:1000;background:var(--fb-surface, #ffffff);min-width:48px;width:48px}th.sticky-checkbox{z-index:1100}\n"]
8119
8394
  }]
8120
8395
  }],
8121
- ctorParameters: () => [{ type: i0.ChangeDetectorRef }],
8396
+ ctorParameters: () => [
8397
+ { type: i0.ChangeDetectorRef },
8398
+ { type: ApiService },
8399
+ { type: GlobalValuesService }
8400
+ ],
8122
8401
  propDecorators: {
8123
8402
  data: [{ type: Input }],
8124
8403
  displayedColumns: [{ type: Input }],
@@ -8162,6 +8441,8 @@ i0.ɵɵngDeclareClassMetadata({
8162
8441
  searchValueChange: [{ type: Output }],
8163
8442
  selectedValues: [{ type: Output }],
8164
8443
  pageChange: [{ type: Output }],
8444
+ pageDetails: [{ type: Output }],
8445
+ searchFilterData: [{ type: Output }],
8165
8446
  searchText: [{ type: Output }],
8166
8447
  exportButton: [{ type: Output }],
8167
8448
  importButton: [{ type: Output }],
@@ -8466,7 +8747,7 @@ var FusionCardComponent = class FusionCardComponent {
8466
8747
  },
8467
8748
  {
8468
8749
  kind: "directive",
8469
- type: i4$2.MatTooltip,
8750
+ type: i4$1.MatTooltip,
8470
8751
  selector: "[matTooltip]",
8471
8752
  inputs: [
8472
8753
  "matTooltipPosition",