@rangertechnologies/fusion-ui 0.2.4 → 0.2.6

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.
@@ -1,12 +1,12 @@
1
1
  import * as i1$4 from "@angular/common";
2
2
  import { CommonModule, DatePipe } from "@angular/common";
3
3
  import * as i0 from "@angular/core";
4
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostListener, Inject, Injectable, InjectionToken, Input, Optional, Output, Pipe, ViewChild, ViewChildren } from "@angular/core";
4
+ import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostListener, Inject, Injectable, InjectionToken, Input, Optional, Output, Pipe, ViewChild, ViewChildren, forwardRef } from "@angular/core";
5
5
  import { AngularSvgIconModule } from "angular-svg-icon";
6
6
  import * as i1$5 from "@ngx-translate/core";
7
7
  import { TranslateModule } from "@ngx-translate/core";
8
8
  import * as i3$2 from "@angular/forms";
9
- import { FormControl, FormsModule, ReactiveFormsModule, Validators } from "@angular/forms";
9
+ import { FormControl, FormsModule, NG_VALIDATORS, NG_VALUE_ACCESSOR, ReactiveFormsModule, Validators } from "@angular/forms";
10
10
  import { BehaviorSubject, Subject, Subscription, catchError, firstValueFrom, shareReplay, throwError } from "rxjs";
11
11
  import * as i1$3 from "@angular/common/http";
12
12
  import * as i3$1 from "@angular/material/checkbox";
@@ -704,6 +704,11 @@ var GlobalValuesService = class GlobalValuesService {
704
704
  return null;
705
705
  }
706
706
  }
707
+ async invalidateSettings() {
708
+ const response = await firstValueFrom(this.apiService.fetchValue("/settings/finance"));
709
+ this.settingsData = response;
710
+ return response;
711
+ }
707
712
  async getPayslipTemplateAPI() {
708
713
  try {
709
714
  if (this.cachedPayslipTemplate !== null && this.cachedPayslipTemplate !== void 0) return this.cachedPayslipTemplate;
@@ -6906,63 +6911,191 @@ var AttendanceTableComponent = class AttendanceTableComponent {
6906
6911
  const s = String(value).trim();
6907
6912
  return !!s && !isNaN(Number(s));
6908
6913
  }
6914
+ formatPunchTime(timeVal, timeStr) {
6915
+ const rawStr = typeof timeStr === "string" ? timeStr.trim() : "";
6916
+ if (rawStr) {
6917
+ if (!rawStr.includes("T") && !/^\d{4}-\d{2}-\d{2}/.test(rawStr)) return rawStr;
6918
+ const parsedStr = new Date(rawStr);
6919
+ if (!isNaN(parsedStr.getTime())) return `${String(parsedStr.getHours()).padStart(2, "0")}:${String(parsedStr.getMinutes()).padStart(2, "0")}`;
6920
+ return rawStr;
6921
+ }
6922
+ if (!timeVal) return "";
6923
+ if (timeVal instanceof Date) {
6924
+ if (isNaN(timeVal.getTime())) return "";
6925
+ return `${String(timeVal.getHours()).padStart(2, "0")}:${String(timeVal.getMinutes()).padStart(2, "0")}`;
6926
+ }
6927
+ if (typeof timeVal === "string") {
6928
+ const trimmed = timeVal.trim();
6929
+ if (/^\d{1,2}:\d{2}/.test(trimmed)) return trimmed.slice(0, 5);
6930
+ const parsed = new Date(trimmed);
6931
+ if (!isNaN(parsed.getTime())) return `${String(parsed.getHours()).padStart(2, "0")}:${String(parsed.getMinutes()).padStart(2, "0")}`;
6932
+ return trimmed;
6933
+ }
6934
+ return "";
6935
+ }
6909
6936
  resolveAttendanceValue(raw) {
6910
- if (!raw) return {
6937
+ const empty = {
6911
6938
  status: "",
6939
+ rawStatus: "",
6912
6940
  halfDay: false,
6913
- isSplitLeave: false
6941
+ isSplitLeave: false,
6942
+ hasCheckIn: false,
6943
+ hasCheckOut: false,
6944
+ checkInTime: "",
6945
+ checkOutTime: ""
6914
6946
  };
6947
+ if (!raw) return empty;
6915
6948
  const inner = typeof raw === "object" && raw !== null && "value" in raw ? raw.value : raw;
6916
- if (!inner) return {
6917
- status: "",
6918
- halfDay: false,
6919
- isSplitLeave: false
6949
+ if (!inner) return empty;
6950
+ if (typeof inner === "string") {
6951
+ const trimmed = inner.trim();
6952
+ return {
6953
+ ...empty,
6954
+ status: trimmed.toLowerCase(),
6955
+ rawStatus: trimmed
6956
+ };
6957
+ }
6958
+ if (typeof inner === "object") {
6959
+ const rawStatus = String(inner.status || "").trim();
6960
+ return {
6961
+ status: rawStatus.toLowerCase(),
6962
+ rawStatus,
6963
+ halfDay: inner.halfDay === true,
6964
+ isSplitLeave: inner.isSplitLeave === true,
6965
+ hasCheckIn: Boolean(inner.checkIn || inner.checkInString),
6966
+ hasCheckOut: Boolean(inner.checkOut || inner.checkOutString),
6967
+ checkInTime: this.formatPunchTime(inner.checkIn, inner.checkInString),
6968
+ checkOutTime: this.formatPunchTime(inner.checkOut, inner.checkOutString)
6969
+ };
6970
+ }
6971
+ const rawStr = String(inner).trim();
6972
+ return {
6973
+ ...empty,
6974
+ status: rawStr.toLowerCase(),
6975
+ rawStatus: rawStr
6920
6976
  };
6921
- if (typeof inner === "string") return {
6922
- status: inner.toLowerCase().trim(),
6923
- halfDay: false,
6924
- isSplitLeave: false
6977
+ }
6978
+ getCellDateRelation(val, column) {
6979
+ if (column) {
6980
+ if (this.isToday(column)) return "today";
6981
+ if (this.isFutureDate(column)) return "future";
6982
+ const idx = this.displayedColumns?.indexOf(column) ?? -1;
6983
+ const header = idx >= 0 ? this.headerLabels?.[idx] : null;
6984
+ if (header && typeof header === "object" && header.year && header.month && header.date) return "past";
6985
+ }
6986
+ if (val && typeof val === "object") {
6987
+ const now = /* @__PURE__ */ new Date();
6988
+ const todayZero = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime();
6989
+ const year = Number(val.year);
6990
+ const month = Number(val.month);
6991
+ const day = Number(val.day);
6992
+ let cellTime = null;
6993
+ if (year && month && day) cellTime = new Date(year, month - 1, day).getTime();
6994
+ else if (val.value?.date || val.date) {
6995
+ const parsed = new Date(val.value?.date || val.date);
6996
+ if (!isNaN(parsed.getTime())) cellTime = new Date(parsed.getFullYear(), parsed.getMonth(), parsed.getDate()).getTime();
6997
+ }
6998
+ if (cellTime !== null) {
6999
+ if (cellTime === todayZero) return "today";
7000
+ return cellTime > todayZero ? "future" : "past";
7001
+ }
7002
+ }
7003
+ return "past";
7004
+ }
7005
+ resolveChipState(val, column) {
7006
+ const { status, rawStatus, halfDay, isSplitLeave, hasCheckIn, hasCheckOut, checkInTime, checkOutTime } = this.resolveAttendanceValue(val);
7007
+ if (halfDay && !isSplitLeave) return {
7008
+ chipClass: "attendance-half",
7009
+ symbol: "½",
7010
+ tooltip: "Half Day"
7011
+ };
7012
+ if (isSplitLeave) return {
7013
+ chipClass: "attendance-absent",
7014
+ symbol: "✕",
7015
+ tooltip: rawStatus || "Absent"
6925
7016
  };
6926
- if (typeof inner === "object") return {
6927
- status: String(inner.status || "").toLowerCase().trim(),
6928
- halfDay: inner.halfDay === true,
6929
- isSplitLeave: inner.isSplitLeave === true
7017
+ if (!status || status === "nil" || status === "review") {
7018
+ if (status === "review") return {
7019
+ chipClass: "attendance-review",
7020
+ symbol: "!",
7021
+ tooltip: this.buildNeedsReviewTooltip(hasCheckIn, hasCheckOut, checkInTime, checkOutTime)
7022
+ };
7023
+ const dateRelation = this.getCellDateRelation(val, column);
7024
+ if (dateRelation === "today") {
7025
+ if (hasCheckIn && !hasCheckOut) return {
7026
+ chipClass: "attendance-checked-in",
7027
+ symbol: "→",
7028
+ tooltip: checkInTime ? `Checked in at ${checkInTime} (awaiting check-out)` : "Checked in (awaiting check-out)"
7029
+ };
7030
+ if (!hasCheckIn && hasCheckOut) return {
7031
+ chipClass: "attendance-review",
7032
+ symbol: "!",
7033
+ tooltip: this.buildNeedsReviewTooltip(hasCheckIn, hasCheckOut, checkInTime, checkOutTime)
7034
+ };
7035
+ } else if (dateRelation === "past" && hasCheckIn !== hasCheckOut) return {
7036
+ chipClass: "attendance-review",
7037
+ symbol: "!",
7038
+ tooltip: this.buildNeedsReviewTooltip(hasCheckIn, hasCheckOut, checkInTime, checkOutTime)
7039
+ };
7040
+ return {
7041
+ chipClass: "",
7042
+ symbol: "",
7043
+ tooltip: ""
7044
+ };
7045
+ }
7046
+ if (status === "present" || status === "p" || status === "true" || status === "1") return {
7047
+ chipClass: "attendance-present",
7048
+ symbol: "✓",
7049
+ tooltip: "Present"
7050
+ };
7051
+ if (status === "absent" || status === "a" || status === "false" || status === "0") return {
7052
+ chipClass: "attendance-absent",
7053
+ symbol: "✕",
7054
+ tooltip: rawStatus || "Absent"
7055
+ };
7056
+ if (status === "half day" || status === "half" || status === "hd" || status === "0.5") return {
7057
+ chipClass: "attendance-half",
7058
+ symbol: "½",
7059
+ tooltip: "Half Day"
7060
+ };
7061
+ if (status === "holiday" || status === "h") return {
7062
+ chipClass: "attendance-holiday",
7063
+ symbol: "H",
7064
+ tooltip: "Holiday"
7065
+ };
7066
+ if (status === "week off" || status === "weekoff" || status === "wo" || status === "w" || status === "off") return {
7067
+ chipClass: "attendance-weekoff",
7068
+ symbol: "-",
7069
+ tooltip: "Week Off"
7070
+ };
7071
+ if (this.leaveTypeSet.has(status)) return {
7072
+ chipClass: "attendance-absent",
7073
+ symbol: "✕",
7074
+ tooltip: rawStatus || "Absent"
6930
7075
  };
6931
7076
  return {
6932
- status: String(inner).toLowerCase().trim(),
6933
- halfDay: false,
6934
- isSplitLeave: false
7077
+ chipClass: "attendance-present",
7078
+ symbol: status.slice(0, 2),
7079
+ tooltip: rawStatus || status
6935
7080
  };
6936
7081
  }
6937
- getAttendanceChipClass(val) {
6938
- const { status, halfDay } = this.resolveAttendanceValue(val);
6939
- if (!status) return "";
6940
- if (halfDay) return "attendance-half";
6941
- if (status === "present" || status === "p" || status === "true" || status === "1") return "attendance-present";
6942
- if (status === "absent" || status === "a" || status === "false" || status === "0") return "attendance-absent";
6943
- if (status === "half day" || status === "half" || status === "hd" || status === "0.5") return "attendance-half";
6944
- if (status === "holiday" || status === "h") return "attendance-holiday";
6945
- if (status === "week off" || status === "wo" || status === "w" || status === "off") return "attendance-weekoff";
6946
- if (this.leaveTypeSet.has(status)) return "attendance-absent";
6947
- return "attendance-present";
6948
- }
6949
- getAttendanceChipSymbol(val) {
6950
- const { status, halfDay } = this.resolveAttendanceValue(val);
6951
- if (!status) return "";
6952
- if (halfDay) return "½";
6953
- if (status === "present" || status === "p" || status === "true" || status === "1") return "✓";
6954
- if (status === "absent" || status === "a" || status === "false" || status === "0") return "✕";
6955
- if (status === "half day" || status === "half" || status === "hd" || status === "0.5") return "½";
6956
- if (status === "holiday" || status === "h") return "H";
6957
- if (status === "week off" || status === "wo" || status === "w" || status === "off") return "-";
6958
- if (this.leaveTypeSet.has(status)) return "✕";
6959
- return status.slice(0, 2);
7082
+ buildNeedsReviewTooltip(hasCheckIn, hasCheckOut, checkInTime, checkOutTime) {
7083
+ if (hasCheckIn && !hasCheckOut) return checkInTime ? `Missing check-out (Checked in at ${checkInTime})` : "Missing check-out";
7084
+ if (!hasCheckIn && hasCheckOut) return checkOutTime ? `Missing check-in (Checked out at ${checkOutTime})` : "Missing check-in";
7085
+ return "Needs Review";
7086
+ }
7087
+ getAttendanceChipClass(val, column) {
7088
+ return this.resolveChipState(val, column).chipClass;
7089
+ }
7090
+ getAttendanceChipSymbol(val, column) {
7091
+ return this.resolveChipState(val, column).symbol;
7092
+ }
7093
+ getAttendanceTooltip(val, column) {
7094
+ return this.resolveChipState(val, column).tooltip;
6960
7095
  }
6961
7096
  hasAttendanceChip(val, column) {
6962
- const { status } = this.resolveAttendanceValue(val);
6963
- if (!status) return false;
6964
- if (status === "week off" || status === "wo" || status === "w" || status === "off") return false;
6965
- return true;
7097
+ const { chipClass } = this.resolveChipState(val, column);
7098
+ return Boolean(chipClass) && chipClass !== "attendance-weekoff";
6966
7099
  }
6967
7100
  isWeekOffState(val, column) {
6968
7101
  const { status } = this.resolveAttendanceValue(val);
@@ -7354,8 +7487,8 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7354
7487
  }],
7355
7488
  usesOnChanges: true,
7356
7489
  ngImport: i0,
7357
- 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 align-items-center\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex align-items-center gap-2\">\n <!-- MR 16NOV26 Projected content for toolbar left slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (left aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'left'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (right aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'right'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n\n <!-- MR 16NOV26 Projected content for toolbar right slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n <!-- MR 16NOV26 Contextual date range or title placed compactly in toolbar -->\n <div class=\"table-subtitle me-2\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n <!-- MR 22NOV26 Non-blocking live SSE sync indicator in toolbar -->\n <span *ngIf=\"liveSyncing\" class=\"live-sync-pill\" role=\"status\" aria-live=\"polite\">\n <span class=\"live-sync-dot\"></span>\n <span>Live updating...</span>\n </span>\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 <!-- MR 21NOV26 Replace nxt-button with native app-fusion-button -->\n <app-fusion-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\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\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 <!-- MR 22NOV26 Track rows by employeeId for in-place live SSE patching -->\n <table mat-table [dataSource]=\"dataSource\" [trackBy]=\"trackByEmployeeId\" [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 <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.sticky-column]=\"isColumnSticky(column) || column === 'summary' || i === (stickyCondition - 1)\"\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 <!-- MR 30NOV26 Shared user/userTag avatar chip cell -->\n <div *ngIf=\"isUserColumn(column)\" class=\"px-2 py-1 text-start\">\n <app-user-chip\n [value]=\"element[column]\"\n [userLookupMap]=\"userLookupMap\"\n [maxVisible]=\"getUserColumnMaxVisible(column)\">\n </app-user-chip>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"!isUserColumn(column) && 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 [class.row-live-updated]=\"isRowUpdated(row)\"\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\"\n [class.row-live-updated]=\"isRowUpdated(row)\"\n (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 <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\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 </app-pagination>\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",
7358
- 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:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!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-color:var(--fb-surface, #ffffff)}th.sticky-column{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.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:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important;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}.attendance-footer-legends{font-size:var(--fs-small, 12px);padding:0 8px}.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 app-fusion-button.ms-2,::ng-deep app-fusion-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}.live-sync-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);white-space:nowrap}.live-sync-dot{width:7px;height:7px;border-radius:50%;background:var(--fb-action, #003566);animation:live-sync-pulse 1.2s ease-in-out infinite}@keyframes live-sync-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}.mat-row.row-live-updated,.mat-row.row-live-updated .sticky-column,.mat-row.row-live-updated .sticky-col{background-color:var(--fb-success-surface, #dcfce7)!important;transition:background-color .6s ease}\n"],
7490
+ 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 align-items-center\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex align-items-center gap-2\">\n <!-- MR 16NOV26 Projected content for toolbar left slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (left aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'left'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (right aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'right'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n\n <!-- MR 16NOV26 Projected content for toolbar right slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n <!-- MR 16NOV26 Contextual date range or title placed compactly in toolbar -->\n <div class=\"table-subtitle me-2\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n <!-- MR 22NOV26 Non-blocking live SSE sync indicator in toolbar -->\n <span *ngIf=\"liveSyncing\" class=\"live-sync-pill\" role=\"status\" aria-live=\"polite\">\n <span class=\"live-sync-dot\"></span>\n <span>Live updating...</span>\n </span>\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 <!-- MR 21NOV26 Replace nxt-button with native app-fusion-button -->\n <app-fusion-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\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\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 <!-- MR 22NOV26 Track rows by employeeId for in-place live SSE patching -->\n <table mat-table [dataSource]=\"dataSource\" [trackBy]=\"trackByEmployeeId\" [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 <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.sticky-column]=\"isColumnSticky(column) || column === 'summary' || i === (stickyCondition - 1)\"\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 <!-- MR 30NOV26 Shared user/userTag avatar chip cell -->\n <div *ngIf=\"isUserColumn(column)\" class=\"px-2 py-1 text-start\">\n <app-user-chip\n [value]=\"element[column]\"\n [userLookupMap]=\"userLookupMap\"\n [maxVisible]=\"getUserColumnMaxVisible(column)\">\n </app-user-chip>\n </div>\n\n <!-- Attendance Day Columns -->\n <!-- MR 04DEC26 Unify day cell chip rendering and tooltips via resolveChipState -->\n <div *ngIf=\"!isUserColumn(column) && column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <ng-container *ngIf=\"column !== 'totalHours' && !containsOnlyNumbers(element?.[column]?.['value'])\">\n <!-- Attendance Chip (Present, Absent/Leave, Half Day, Holiday, Checked In, Needs Review) -->\n <span *ngIf=\"hasAttendanceChip(element?.[column], column)\"\n class=\"attendance-chip {{ getAttendanceChipClass(element?.[column], column) }}\"\n [title]=\"getAttendanceTooltip(element?.[column], column)\">{{ getAttendanceChipSymbol(element?.[column], column) }}</span>\n\n <!-- Weekend column without active attendance chip: suppress chip, show subtle dash -->\n <span *ngIf=\"!hasAttendanceChip(element?.[column], column) && isWeekend(column)\" class=\"att-dash\">-</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!hasAttendanceChip(element?.[column], column) && !isWeekend(column) && getAttendanceChipClass(element?.[column], column) === 'attendance-weekoff'\"\n class=\"attendance-chip attendance-weekoff\" [title]=\"getAttendanceTooltip(element?.[column], column)\">-</span>\n\n <!-- Non-weekend future day without chip: faint dot -->\n <span *ngIf=\"!hasAttendanceChip(element?.[column], column) && !isWeekend(column) && getAttendanceChipClass(element?.[column], column) !== 'attendance-weekoff' && isFutureDate(column)\"\n class=\"att-future\">·</span>\n\n <!-- Non-weekend past/today day without chip: subtle dashed outline -->\n <span *ngIf=\"!hasAttendanceChip(element?.[column], column) && !isWeekend(column) && getAttendanceChipClass(element?.[column], column) !== 'attendance-weekoff' && !isFutureDate(column)\"\n class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\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 [class.row-live-updated]=\"isRowUpdated(row)\"\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\"\n [class.row-live-updated]=\"isRowUpdated(row)\"\n (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 <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\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 <!-- MR 04DEC26 Add Checked In and Needs Review footer legend items -->\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-checked-in\">&#8594;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.CHECKED_IN' | customTranslate : 'Checked In' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-review\">!</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.NEEDS_REVIEW' | customTranslate : 'Needs Review' }}</span>\n </div>\n </div>\n </app-pagination>\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",
7491
+ 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:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!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-color:var(--fb-surface, #ffffff)}th.sticky-column{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.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:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important;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-checked-in{background:var(--fb-info-surface, #eff6ff);color:var(--fb-info-text, #2563eb);border:1px solid var(--fb-info-border, #bfdbfe)}.attendance-chip.attendance-review{background:var(--fb-warning-surface, #fff7ed);color:var(--fb-warning-text, #ea580c);border:1px solid var(--fb-warning-border, #fed7aa)}.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}.attendance-footer-legends{font-size:var(--fs-small, 12px);padding:0 8px}.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 app-fusion-button.ms-2,::ng-deep app-fusion-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}.live-sync-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);white-space:nowrap}.live-sync-dot{width:7px;height:7px;border-radius:50%;background:var(--fb-action, #003566);animation:live-sync-pulse 1.2s ease-in-out infinite}@keyframes live-sync-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}.mat-row.row-live-updated,.mat-row.row-live-updated .sticky-column,.mat-row.row-live-updated .sticky-col{background-color:var(--fb-success-surface, #dcfce7)!important;transition:background-color .6s ease}\n"],
7359
7492
  dependencies: [
7360
7493
  {
7361
7494
  kind: "ngmodule",
@@ -7695,8 +7828,8 @@ i0.ɵɵngDeclareClassMetadata({
7695
7828
  provide: MatPaginatorIntl,
7696
7829
  useClass: CustomPaginatorIntl
7697
7830
  }],
7698
- 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 align-items-center\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex align-items-center gap-2\">\n <!-- MR 16NOV26 Projected content for toolbar left slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (left aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'left'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (right aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'right'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n\n <!-- MR 16NOV26 Projected content for toolbar right slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n <!-- MR 16NOV26 Contextual date range or title placed compactly in toolbar -->\n <div class=\"table-subtitle me-2\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n <!-- MR 22NOV26 Non-blocking live SSE sync indicator in toolbar -->\n <span *ngIf=\"liveSyncing\" class=\"live-sync-pill\" role=\"status\" aria-live=\"polite\">\n <span class=\"live-sync-dot\"></span>\n <span>Live updating...</span>\n </span>\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 <!-- MR 21NOV26 Replace nxt-button with native app-fusion-button -->\n <app-fusion-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\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\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 <!-- MR 22NOV26 Track rows by employeeId for in-place live SSE patching -->\n <table mat-table [dataSource]=\"dataSource\" [trackBy]=\"trackByEmployeeId\" [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 <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.sticky-column]=\"isColumnSticky(column) || column === 'summary' || i === (stickyCondition - 1)\"\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 <!-- MR 30NOV26 Shared user/userTag avatar chip cell -->\n <div *ngIf=\"isUserColumn(column)\" class=\"px-2 py-1 text-start\">\n <app-user-chip\n [value]=\"element[column]\"\n [userLookupMap]=\"userLookupMap\"\n [maxVisible]=\"getUserColumnMaxVisible(column)\">\n </app-user-chip>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"!isUserColumn(column) && 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 [class.row-live-updated]=\"isRowUpdated(row)\"\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\"\n [class.row-live-updated]=\"isRowUpdated(row)\"\n (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 <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\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 </app-pagination>\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",
7699
- 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:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!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-color:var(--fb-surface, #ffffff)}th.sticky-column{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.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:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important;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}.attendance-footer-legends{font-size:var(--fs-small, 12px);padding:0 8px}.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 app-fusion-button.ms-2,::ng-deep app-fusion-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}.live-sync-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);white-space:nowrap}.live-sync-dot{width:7px;height:7px;border-radius:50%;background:var(--fb-action, #003566);animation:live-sync-pulse 1.2s ease-in-out infinite}@keyframes live-sync-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}.mat-row.row-live-updated,.mat-row.row-live-updated .sticky-column,.mat-row.row-live-updated .sticky-col{background-color:var(--fb-success-surface, #dcfce7)!important;transition:background-color .6s ease}\n"]
7831
+ 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 align-items-center\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex align-items-center gap-2\">\n <!-- MR 16NOV26 Projected content for toolbar left slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (left aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'left'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (right aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'right'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n\n <!-- MR 16NOV26 Projected content for toolbar right slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n <!-- MR 16NOV26 Contextual date range or title placed compactly in toolbar -->\n <div class=\"table-subtitle me-2\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n <!-- MR 22NOV26 Non-blocking live SSE sync indicator in toolbar -->\n <span *ngIf=\"liveSyncing\" class=\"live-sync-pill\" role=\"status\" aria-live=\"polite\">\n <span class=\"live-sync-dot\"></span>\n <span>Live updating...</span>\n </span>\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 <!-- MR 21NOV26 Replace nxt-button with native app-fusion-button -->\n <app-fusion-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\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\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 <!-- MR 22NOV26 Track rows by employeeId for in-place live SSE patching -->\n <table mat-table [dataSource]=\"dataSource\" [trackBy]=\"trackByEmployeeId\" [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 <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.sticky-column]=\"isColumnSticky(column) || column === 'summary' || i === (stickyCondition - 1)\"\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 <!-- MR 30NOV26 Shared user/userTag avatar chip cell -->\n <div *ngIf=\"isUserColumn(column)\" class=\"px-2 py-1 text-start\">\n <app-user-chip\n [value]=\"element[column]\"\n [userLookupMap]=\"userLookupMap\"\n [maxVisible]=\"getUserColumnMaxVisible(column)\">\n </app-user-chip>\n </div>\n\n <!-- Attendance Day Columns -->\n <!-- MR 04DEC26 Unify day cell chip rendering and tooltips via resolveChipState -->\n <div *ngIf=\"!isUserColumn(column) && column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <ng-container *ngIf=\"column !== 'totalHours' && !containsOnlyNumbers(element?.[column]?.['value'])\">\n <!-- Attendance Chip (Present, Absent/Leave, Half Day, Holiday, Checked In, Needs Review) -->\n <span *ngIf=\"hasAttendanceChip(element?.[column], column)\"\n class=\"attendance-chip {{ getAttendanceChipClass(element?.[column], column) }}\"\n [title]=\"getAttendanceTooltip(element?.[column], column)\">{{ getAttendanceChipSymbol(element?.[column], column) }}</span>\n\n <!-- Weekend column without active attendance chip: suppress chip, show subtle dash -->\n <span *ngIf=\"!hasAttendanceChip(element?.[column], column) && isWeekend(column)\" class=\"att-dash\">-</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!hasAttendanceChip(element?.[column], column) && !isWeekend(column) && getAttendanceChipClass(element?.[column], column) === 'attendance-weekoff'\"\n class=\"attendance-chip attendance-weekoff\" [title]=\"getAttendanceTooltip(element?.[column], column)\">-</span>\n\n <!-- Non-weekend future day without chip: faint dot -->\n <span *ngIf=\"!hasAttendanceChip(element?.[column], column) && !isWeekend(column) && getAttendanceChipClass(element?.[column], column) !== 'attendance-weekoff' && isFutureDate(column)\"\n class=\"att-future\">·</span>\n\n <!-- Non-weekend past/today day without chip: subtle dashed outline -->\n <span *ngIf=\"!hasAttendanceChip(element?.[column], column) && !isWeekend(column) && getAttendanceChipClass(element?.[column], column) !== 'attendance-weekoff' && !isFutureDate(column)\"\n class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\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 [class.row-live-updated]=\"isRowUpdated(row)\"\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\"\n [class.row-live-updated]=\"isRowUpdated(row)\"\n (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 <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\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 <!-- MR 04DEC26 Add Checked In and Needs Review footer legend items -->\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-checked-in\">&#8594;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.CHECKED_IN' | customTranslate : 'Checked In' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-review\">!</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.NEEDS_REVIEW' | customTranslate : 'Needs Review' }}</span>\n </div>\n </div>\n </app-pagination>\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",
7832
+ 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:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!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-color:var(--fb-surface, #ffffff)}th.sticky-column{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.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:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important;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-checked-in{background:var(--fb-info-surface, #eff6ff);color:var(--fb-info-text, #2563eb);border:1px solid var(--fb-info-border, #bfdbfe)}.attendance-chip.attendance-review{background:var(--fb-warning-surface, #fff7ed);color:var(--fb-warning-text, #ea580c);border:1px solid var(--fb-warning-border, #fed7aa)}.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}.attendance-footer-legends{font-size:var(--fs-small, 12px);padding:0 8px}.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 app-fusion-button.ms-2,::ng-deep app-fusion-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}.live-sync-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);white-space:nowrap}.live-sync-dot{width:7px;height:7px;border-radius:50%;background:var(--fb-action, #003566);animation:live-sync-pulse 1.2s ease-in-out infinite}@keyframes live-sync-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}.mat-row.row-live-updated,.mat-row.row-live-updated .sticky-column,.mat-row.row-live-updated .sticky-col{background-color:var(--fb-success-surface, #dcfce7)!important;transition:background-color .6s ease}\n"]
7700
7833
  }]
7701
7834
  }],
7702
7835
  ctorParameters: () => [
@@ -7773,6 +7906,533 @@ i0.ɵɵngDeclareClassMetadata({
7773
7906
  }]
7774
7907
  }
7775
7908
  });
7909
+ const VALID_TONES = /* @__PURE__ */ new Set([
7910
+ "neutral",
7911
+ "info",
7912
+ "success",
7913
+ "warning",
7914
+ "danger"
7915
+ ]);
7916
+ var FusionStatusBadgeComponent = class FusionStatusBadgeComponent {
7917
+ label = "";
7918
+ tone = "neutral";
7919
+ size = "md";
7920
+ showDot = false;
7921
+ ariaLabel;
7922
+ get resolvedTone() {
7923
+ return VALID_TONES.has(this.tone) ? this.tone : "neutral";
7924
+ }
7925
+ get resolvedSize() {
7926
+ return this.size === "sm" ? "sm" : "md";
7927
+ }
7928
+ static ɵfac = i0.ɵɵngDeclareFactory({
7929
+ minVersion: "12.0.0",
7930
+ version: "22.2.5",
7931
+ ngImport: i0,
7932
+ type: FusionStatusBadgeComponent,
7933
+ deps: [],
7934
+ target: i0.ɵɵFactoryTarget.Component
7935
+ });
7936
+ static ɵcmp = i0.ɵɵngDeclareComponent({
7937
+ minVersion: "14.0.0",
7938
+ version: "22.2.5",
7939
+ type: FusionStatusBadgeComponent,
7940
+ isStandalone: true,
7941
+ selector: "fusion-status-badge",
7942
+ inputs: {
7943
+ label: "label",
7944
+ tone: "tone",
7945
+ size: "size",
7946
+ showDot: "showDot",
7947
+ ariaLabel: "ariaLabel"
7948
+ },
7949
+ ngImport: i0,
7950
+ template: "<span\n class=\"fusion-status-badge\"\n [ngClass]=\"['tone-' + resolvedTone, 'size-' + resolvedSize]\"\n [attr.aria-label]=\"ariaLabel || null\">\n <span *ngIf=\"showDot\" class=\"badge-dot\" aria-hidden=\"true\"></span>\n <span class=\"badge-label\">{{ label }}</span>\n</span>\n",
7951
+ styles: [":host{display:inline-flex;vertical-align:middle}.fusion-status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:9999px;border:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600, 600);line-height:1.2;white-space:nowrap;box-sizing:border-box}.fusion-status-badge.size-sm{padding:2px 8px;font-size:11px}.fusion-status-badge.size-md{padding:4px 10px;font-size:12px}.badge-dot{width:6px;height:6px;border-radius:50%;background-color:currentColor;flex-shrink:0}.fusion-status-badge.tone-neutral{background-color:var(--fb-surface-tertiary, #f1f5f9);border-color:var(--fb-border-default, #e2e8f0);color:var(--fb-text-secondary, #475569)}.fusion-status-badge.tone-info{background-color:var(--fb-info-surface, #f1f5f9);border-color:var(--fb-info-border, #e2e8f0);color:var(--fb-info-text, #1e293b)}.fusion-status-badge.tone-success{background-color:var(--fb-success-surface, #e6f4ea);border-color:var(--fb-success-border, #a8dab5);color:var(--fb-success-text, #137333)}.fusion-status-badge.tone-warning{background-color:var(--fb-warning-surface, #fef3c7);border-color:var(--fb-warning-border, #fde68a);color:var(--fb-warning-text, #92400e)}.fusion-status-badge.tone-danger{background-color:var(--fb-error-surface, #fee2e2);border-color:var(--fb-error-border, #fecaca);color:var(--fb-error-text, #991b1b)}\n"],
7952
+ dependencies: [
7953
+ {
7954
+ kind: "ngmodule",
7955
+ type: CommonModule
7956
+ },
7957
+ {
7958
+ kind: "directive",
7959
+ type: i1$4.NgClass,
7960
+ selector: "[ngClass]",
7961
+ inputs: ["class", "ngClass"]
7962
+ },
7963
+ {
7964
+ kind: "directive",
7965
+ type: i1$4.NgIf,
7966
+ selector: "[ngIf]",
7967
+ inputs: [
7968
+ "ngIf",
7969
+ "ngIfThen",
7970
+ "ngIfElse"
7971
+ ]
7972
+ }
7973
+ ],
7974
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
7975
+ });
7976
+ };
7977
+ i0.ɵɵngDeclareClassMetadata({
7978
+ minVersion: "12.0.0",
7979
+ version: "22.2.5",
7980
+ ngImport: i0,
7981
+ type: FusionStatusBadgeComponent,
7982
+ decorators: [{
7983
+ type: Component,
7984
+ args: [{
7985
+ selector: "fusion-status-badge",
7986
+ standalone: true,
7987
+ imports: [CommonModule],
7988
+ changeDetection: ChangeDetectionStrategy.OnPush,
7989
+ template: "<span\n class=\"fusion-status-badge\"\n [ngClass]=\"['tone-' + resolvedTone, 'size-' + resolvedSize]\"\n [attr.aria-label]=\"ariaLabel || null\">\n <span *ngIf=\"showDot\" class=\"badge-dot\" aria-hidden=\"true\"></span>\n <span class=\"badge-label\">{{ label }}</span>\n</span>\n",
7990
+ styles: [":host{display:inline-flex;vertical-align:middle}.fusion-status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:9999px;border:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600, 600);line-height:1.2;white-space:nowrap;box-sizing:border-box}.fusion-status-badge.size-sm{padding:2px 8px;font-size:11px}.fusion-status-badge.size-md{padding:4px 10px;font-size:12px}.badge-dot{width:6px;height:6px;border-radius:50%;background-color:currentColor;flex-shrink:0}.fusion-status-badge.tone-neutral{background-color:var(--fb-surface-tertiary, #f1f5f9);border-color:var(--fb-border-default, #e2e8f0);color:var(--fb-text-secondary, #475569)}.fusion-status-badge.tone-info{background-color:var(--fb-info-surface, #f1f5f9);border-color:var(--fb-info-border, #e2e8f0);color:var(--fb-info-text, #1e293b)}.fusion-status-badge.tone-success{background-color:var(--fb-success-surface, #e6f4ea);border-color:var(--fb-success-border, #a8dab5);color:var(--fb-success-text, #137333)}.fusion-status-badge.tone-warning{background-color:var(--fb-warning-surface, #fef3c7);border-color:var(--fb-warning-border, #fde68a);color:var(--fb-warning-text, #92400e)}.fusion-status-badge.tone-danger{background-color:var(--fb-error-surface, #fee2e2);border-color:var(--fb-error-border, #fecaca);color:var(--fb-error-text, #991b1b)}\n"]
7991
+ }]
7992
+ }],
7993
+ propDecorators: {
7994
+ label: [{ type: Input }],
7995
+ tone: [{ type: Input }],
7996
+ size: [{ type: Input }],
7997
+ showDot: [{ type: Input }],
7998
+ ariaLabel: [{ type: Input }]
7999
+ }
8000
+ });
8001
+ let nextCardHeadingId = 0;
8002
+ var FusionSectionCardComponent = class FusionSectionCardComponent {
8003
+ title;
8004
+ subtitle;
8005
+ padded = true;
8006
+ elevated = false;
8007
+ headingId = `fusion-section-card-title-${++nextCardHeadingId}`;
8008
+ static ɵfac = i0.ɵɵngDeclareFactory({
8009
+ minVersion: "12.0.0",
8010
+ version: "22.2.5",
8011
+ ngImport: i0,
8012
+ type: FusionSectionCardComponent,
8013
+ deps: [],
8014
+ target: i0.ɵɵFactoryTarget.Component
8015
+ });
8016
+ static ɵcmp = i0.ɵɵngDeclareComponent({
8017
+ minVersion: "14.0.0",
8018
+ version: "22.2.5",
8019
+ type: FusionSectionCardComponent,
8020
+ isStandalone: true,
8021
+ selector: "fusion-section-card",
8022
+ inputs: {
8023
+ title: "title",
8024
+ subtitle: "subtitle",
8025
+ padded: "padded",
8026
+ elevated: "elevated"
8027
+ },
8028
+ ngImport: i0,
8029
+ template: "<section\n class=\"fsc-card\"\n [class.elevated]=\"elevated\"\n [attr.aria-labelledby]=\"title ? headingId : null\">\n <header class=\"fsc-header\"><div class=\"fsc-heading-group\" *ngIf=\"title || subtitle\"><h3 *ngIf=\"title\" [id]=\"headingId\" class=\"fsc-title\">{{ title }}</h3><p *ngIf=\"subtitle\" class=\"fsc-subtitle\">{{ subtitle }}</p></div><div class=\"fsc-header-extra\"><ng-content select=\"[card-header-extra]\"></ng-content></div><div class=\"fsc-header-actions\"><ng-content select=\"[card-actions]\"></ng-content></div></header>\n <div class=\"fsc-body\" [class.fsc-body-padded]=\"padded\">\n <ng-content></ng-content>\n </div>\n <footer class=\"fsc-footer\"><ng-content select=\"[card-footer]\"></ng-content></footer>\n</section>\n",
8030
+ styles: [":host{display:block}.fsc-card{background-color:var(--comp-bg-color, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);border-radius:var(--radius-medium, 8px);color:var(--fb-text-primary, #0f172a);box-sizing:border-box;overflow:hidden}.fsc-card.elevated{background-color:var(--fb-surface-elevated, #ffffff);box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .08))}.fsc-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 18px;border-bottom:1px solid var(--fb-border-subtle, #f1f5f9)}.fsc-header:empty{display:none}.fsc-heading-group{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 auto}.fsc-title{margin:0;font-size:var(--fs-medium, 15px);font-weight:var(--fw-600, 600);color:var(--fb-text-primary, #0f172a);line-height:1.35}.fsc-subtitle{margin:0;font-size:var(--fs-small, 13px);color:var(--fb-text-secondary, #475569);line-height:1.4}.fsc-header-extra,.fsc-header-actions{display:inline-flex;align-items:center;gap:8px;flex-shrink:0}.fsc-header-extra:empty,.fsc-header-actions:empty{display:none}.fsc-body-padded{padding:16px 18px}.fsc-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 18px;background-color:var(--fb-surface-secondary, #f8fafc);border-top:1px solid var(--fb-border-subtle, #f1f5f9)}.fsc-footer:empty{display:none}\n"],
8031
+ dependencies: [{
8032
+ kind: "ngmodule",
8033
+ type: CommonModule
8034
+ }, {
8035
+ kind: "directive",
8036
+ type: i1$4.NgIf,
8037
+ selector: "[ngIf]",
8038
+ inputs: [
8039
+ "ngIf",
8040
+ "ngIfThen",
8041
+ "ngIfElse"
8042
+ ]
8043
+ }],
8044
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
8045
+ });
8046
+ };
8047
+ i0.ɵɵngDeclareClassMetadata({
8048
+ minVersion: "12.0.0",
8049
+ version: "22.2.5",
8050
+ ngImport: i0,
8051
+ type: FusionSectionCardComponent,
8052
+ decorators: [{
8053
+ type: Component,
8054
+ args: [{
8055
+ selector: "fusion-section-card",
8056
+ standalone: true,
8057
+ imports: [CommonModule],
8058
+ changeDetection: ChangeDetectionStrategy.OnPush,
8059
+ template: "<section\n class=\"fsc-card\"\n [class.elevated]=\"elevated\"\n [attr.aria-labelledby]=\"title ? headingId : null\">\n <header class=\"fsc-header\"><div class=\"fsc-heading-group\" *ngIf=\"title || subtitle\"><h3 *ngIf=\"title\" [id]=\"headingId\" class=\"fsc-title\">{{ title }}</h3><p *ngIf=\"subtitle\" class=\"fsc-subtitle\">{{ subtitle }}</p></div><div class=\"fsc-header-extra\"><ng-content select=\"[card-header-extra]\"></ng-content></div><div class=\"fsc-header-actions\"><ng-content select=\"[card-actions]\"></ng-content></div></header>\n <div class=\"fsc-body\" [class.fsc-body-padded]=\"padded\">\n <ng-content></ng-content>\n </div>\n <footer class=\"fsc-footer\"><ng-content select=\"[card-footer]\"></ng-content></footer>\n</section>\n",
8060
+ styles: [":host{display:block}.fsc-card{background-color:var(--comp-bg-color, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);border-radius:var(--radius-medium, 8px);color:var(--fb-text-primary, #0f172a);box-sizing:border-box;overflow:hidden}.fsc-card.elevated{background-color:var(--fb-surface-elevated, #ffffff);box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .08))}.fsc-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 18px;border-bottom:1px solid var(--fb-border-subtle, #f1f5f9)}.fsc-header:empty{display:none}.fsc-heading-group{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 auto}.fsc-title{margin:0;font-size:var(--fs-medium, 15px);font-weight:var(--fw-600, 600);color:var(--fb-text-primary, #0f172a);line-height:1.35}.fsc-subtitle{margin:0;font-size:var(--fs-small, 13px);color:var(--fb-text-secondary, #475569);line-height:1.4}.fsc-header-extra,.fsc-header-actions{display:inline-flex;align-items:center;gap:8px;flex-shrink:0}.fsc-header-extra:empty,.fsc-header-actions:empty{display:none}.fsc-body-padded{padding:16px 18px}.fsc-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 18px;background-color:var(--fb-surface-secondary, #f8fafc);border-top:1px solid var(--fb-border-subtle, #f1f5f9)}.fsc-footer:empty{display:none}\n"]
8061
+ }]
8062
+ }],
8063
+ propDecorators: {
8064
+ title: [{ type: Input }],
8065
+ subtitle: [{ type: Input }],
8066
+ padded: [{ type: Input }],
8067
+ elevated: [{ type: Input }]
8068
+ }
8069
+ });
8070
+ var FusionTabStripComponent = class FusionTabStripComponent {
8071
+ tabs = [];
8072
+ activeTabId = "";
8073
+ variant = "sub-nav";
8074
+ ariaLabel = "Tabs";
8075
+ activeTabIdChange = new EventEmitter();
8076
+ tabChange = new EventEmitter();
8077
+ tabButtons;
8078
+ get effectiveTabId() {
8079
+ const activeEnabled = this.tabs.find((tab) => tab.id === this.activeTabId && !tab.disabled);
8080
+ if (activeEnabled) return activeEnabled.id;
8081
+ const firstEnabled = this.tabs.find((tab) => !tab.disabled);
8082
+ return firstEnabled ? firstEnabled.id : "";
8083
+ }
8084
+ getTabIndex(tab) {
8085
+ if (tab.disabled) return -1;
8086
+ return tab.id === this.effectiveTabId ? 0 : -1;
8087
+ }
8088
+ selectTab(tab) {
8089
+ if (tab.disabled || tab.id === this.activeTabId) return;
8090
+ this.activeTabId = tab.id;
8091
+ this.activeTabIdChange.emit(tab.id);
8092
+ this.tabChange.emit(tab);
8093
+ }
8094
+ onKeyDown(event, currentIndex) {
8095
+ const enabledIndices = this.tabs.map((tab, index) => tab.disabled ? -1 : index).filter((index) => index !== -1);
8096
+ if (enabledIndices.length === 0) return;
8097
+ const currentPos = enabledIndices.indexOf(currentIndex);
8098
+ let targetIndex = null;
8099
+ switch (event.key) {
8100
+ case "ArrowRight":
8101
+ targetIndex = enabledIndices[(currentPos + 1) % enabledIndices.length];
8102
+ break;
8103
+ case "ArrowLeft":
8104
+ targetIndex = enabledIndices[(currentPos - 1 + enabledIndices.length) % enabledIndices.length];
8105
+ break;
8106
+ case "Home":
8107
+ targetIndex = enabledIndices[0];
8108
+ break;
8109
+ case "End":
8110
+ targetIndex = enabledIndices[enabledIndices.length - 1];
8111
+ break;
8112
+ default: return;
8113
+ }
8114
+ event.preventDefault();
8115
+ if (targetIndex !== null) this.focusTabAt(targetIndex);
8116
+ }
8117
+ trackByTabId(_index, tab) {
8118
+ return tab.id;
8119
+ }
8120
+ focusTabAt(index) {
8121
+ const target = (this.tabButtons?.toArray())?.[index]?.nativeElement;
8122
+ if (target) target.focus();
8123
+ }
8124
+ static ɵfac = i0.ɵɵngDeclareFactory({
8125
+ minVersion: "12.0.0",
8126
+ version: "22.2.5",
8127
+ ngImport: i0,
8128
+ type: FusionTabStripComponent,
8129
+ deps: [],
8130
+ target: i0.ɵɵFactoryTarget.Component
8131
+ });
8132
+ static ɵcmp = i0.ɵɵngDeclareComponent({
8133
+ minVersion: "14.0.0",
8134
+ version: "22.2.5",
8135
+ type: FusionTabStripComponent,
8136
+ isStandalone: true,
8137
+ selector: "fusion-tab-strip",
8138
+ inputs: {
8139
+ tabs: "tabs",
8140
+ activeTabId: "activeTabId",
8141
+ variant: "variant",
8142
+ ariaLabel: "ariaLabel"
8143
+ },
8144
+ outputs: {
8145
+ activeTabIdChange: "activeTabIdChange",
8146
+ tabChange: "tabChange"
8147
+ },
8148
+ viewQueries: [{
8149
+ propertyName: "tabButtons",
8150
+ predicate: ["tabButton"],
8151
+ descendants: true
8152
+ }],
8153
+ ngImport: i0,
8154
+ template: "<div\n class=\"fusion-tab-strip\"\n [ngClass]=\"variant === 'tabs' ? 'fc-tabs' : 'sub-nav-head'\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel\">\n <button\n *ngFor=\"let tab of tabs; let i = index; trackBy: trackByTabId\"\n #tabButton\n type=\"button\"\n role=\"tab\"\n [ngClass]=\"variant === 'tabs' ? 'nav-link' : 'sub-nav'\"\n [class.active]=\"tab.id === activeTabId\"\n [class.disabled]=\"tab.disabled\"\n [disabled]=\"tab.disabled\"\n [attr.tabindex]=\"getTabIndex(tab)\"\n [attr.aria-selected]=\"tab.id === activeTabId\"\n [attr.aria-disabled]=\"tab.disabled || null\"\n [attr.aria-controls]=\"tab.panelId || null\"\n (click)=\"selectTab(tab)\"\n (keydown)=\"onKeyDown($event, i)\">\n <span class=\"tab-label\">{{ tab.label }}</span>\n <fusion-status-badge\n *ngIf=\"tab.badge\"\n [label]=\"tab.badge\"\n [tone]=\"tab.badgeTone || 'neutral'\"\n size=\"sm\">\n </fusion-status-badge>\n </button>\n</div>\n",
8155
+ styles: [":host{display:block}.fusion-tab-strip{display:flex;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid var(--fb-border-default, #e2e8f0);gap:4px;padding:0;margin:0}.fusion-tab-strip .sub-nav,.fusion-tab-strip .nav-link{background:transparent;border:none;border-bottom:3.5px solid transparent;margin-bottom:-1px;font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500);color:var(--fb-nav-text, #475569);cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;transition:color .15s ease-in-out,border-color .15s ease-in-out}.fusion-tab-strip .sub-nav{padding:8px 16px}.fusion-tab-strip .nav-link{padding:10px 18px}.fusion-tab-strip .sub-nav:hover:not(:disabled),.fusion-tab-strip .nav-link:hover:not(:disabled){color:var(--fb-nav-hover, #0f172a)}.fusion-tab-strip .sub-nav.active,.fusion-tab-strip .nav-link.active{color:var(--fc-primary-color, #0140c1);font-weight:var(--fw-600, 600);border-bottom:3.5px solid var(--fc-primary-color, #0140c1)}.fusion-tab-strip .sub-nav:disabled,.fusion-tab-strip .nav-link:disabled{color:var(--fb-text-disabled, #94a3b8);cursor:not-allowed}.fusion-tab-strip .sub-nav:focus-visible,.fusion-tab-strip .nav-link:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--fb-focus-ring, #003566);border-radius:4px 4px 0 0}\n"],
8156
+ dependencies: [
8157
+ {
8158
+ kind: "ngmodule",
8159
+ type: CommonModule
8160
+ },
8161
+ {
8162
+ kind: "directive",
8163
+ type: i1$4.NgClass,
8164
+ selector: "[ngClass]",
8165
+ inputs: ["class", "ngClass"]
8166
+ },
8167
+ {
8168
+ kind: "directive",
8169
+ type: i1$4.NgForOf,
8170
+ selector: "[ngFor][ngForOf]",
8171
+ inputs: [
8172
+ "ngForOf",
8173
+ "ngForTrackBy",
8174
+ "ngForTemplate"
8175
+ ]
8176
+ },
8177
+ {
8178
+ kind: "directive",
8179
+ type: i1$4.NgIf,
8180
+ selector: "[ngIf]",
8181
+ inputs: [
8182
+ "ngIf",
8183
+ "ngIfThen",
8184
+ "ngIfElse"
8185
+ ]
8186
+ },
8187
+ {
8188
+ kind: "component",
8189
+ type: FusionStatusBadgeComponent,
8190
+ selector: "fusion-status-badge",
8191
+ inputs: [
8192
+ "label",
8193
+ "tone",
8194
+ "size",
8195
+ "showDot",
8196
+ "ariaLabel"
8197
+ ]
8198
+ }
8199
+ ],
8200
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
8201
+ });
8202
+ };
8203
+ i0.ɵɵngDeclareClassMetadata({
8204
+ minVersion: "12.0.0",
8205
+ version: "22.2.5",
8206
+ ngImport: i0,
8207
+ type: FusionTabStripComponent,
8208
+ decorators: [{
8209
+ type: Component,
8210
+ args: [{
8211
+ selector: "fusion-tab-strip",
8212
+ standalone: true,
8213
+ imports: [CommonModule, FusionStatusBadgeComponent],
8214
+ changeDetection: ChangeDetectionStrategy.OnPush,
8215
+ template: "<div\n class=\"fusion-tab-strip\"\n [ngClass]=\"variant === 'tabs' ? 'fc-tabs' : 'sub-nav-head'\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel\">\n <button\n *ngFor=\"let tab of tabs; let i = index; trackBy: trackByTabId\"\n #tabButton\n type=\"button\"\n role=\"tab\"\n [ngClass]=\"variant === 'tabs' ? 'nav-link' : 'sub-nav'\"\n [class.active]=\"tab.id === activeTabId\"\n [class.disabled]=\"tab.disabled\"\n [disabled]=\"tab.disabled\"\n [attr.tabindex]=\"getTabIndex(tab)\"\n [attr.aria-selected]=\"tab.id === activeTabId\"\n [attr.aria-disabled]=\"tab.disabled || null\"\n [attr.aria-controls]=\"tab.panelId || null\"\n (click)=\"selectTab(tab)\"\n (keydown)=\"onKeyDown($event, i)\">\n <span class=\"tab-label\">{{ tab.label }}</span>\n <fusion-status-badge\n *ngIf=\"tab.badge\"\n [label]=\"tab.badge\"\n [tone]=\"tab.badgeTone || 'neutral'\"\n size=\"sm\">\n </fusion-status-badge>\n </button>\n</div>\n",
8216
+ styles: [":host{display:block}.fusion-tab-strip{display:flex;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid var(--fb-border-default, #e2e8f0);gap:4px;padding:0;margin:0}.fusion-tab-strip .sub-nav,.fusion-tab-strip .nav-link{background:transparent;border:none;border-bottom:3.5px solid transparent;margin-bottom:-1px;font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500);color:var(--fb-nav-text, #475569);cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;transition:color .15s ease-in-out,border-color .15s ease-in-out}.fusion-tab-strip .sub-nav{padding:8px 16px}.fusion-tab-strip .nav-link{padding:10px 18px}.fusion-tab-strip .sub-nav:hover:not(:disabled),.fusion-tab-strip .nav-link:hover:not(:disabled){color:var(--fb-nav-hover, #0f172a)}.fusion-tab-strip .sub-nav.active,.fusion-tab-strip .nav-link.active{color:var(--fc-primary-color, #0140c1);font-weight:var(--fw-600, 600);border-bottom:3.5px solid var(--fc-primary-color, #0140c1)}.fusion-tab-strip .sub-nav:disabled,.fusion-tab-strip .nav-link:disabled{color:var(--fb-text-disabled, #94a3b8);cursor:not-allowed}.fusion-tab-strip .sub-nav:focus-visible,.fusion-tab-strip .nav-link:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--fb-focus-ring, #003566);border-radius:4px 4px 0 0}\n"]
8217
+ }]
8218
+ }],
8219
+ propDecorators: {
8220
+ tabs: [{ type: Input }],
8221
+ activeTabId: [{ type: Input }],
8222
+ variant: [{ type: Input }],
8223
+ ariaLabel: [{ type: Input }],
8224
+ activeTabIdChange: [{ type: Output }],
8225
+ tabChange: [{ type: Output }],
8226
+ tabButtons: [{
8227
+ type: ViewChildren,
8228
+ args: ["tabButton"]
8229
+ }]
8230
+ }
8231
+ });
8232
+ let nextDatePickerId = 0;
8233
+ function pad2(value) {
8234
+ return String(value).padStart(2, "0");
8235
+ }
8236
+ function isValidIsoDate(value) {
8237
+ const match = value.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);
8238
+ if (!match) return false;
8239
+ const year = Number(match[1]);
8240
+ const month = Number(match[2]);
8241
+ const day = Number(match[3]);
8242
+ const probe = new Date(year, month - 1, day);
8243
+ return probe.getFullYear() === year && probe.getMonth() === month - 1 && probe.getDate() === day;
8244
+ }
8245
+ function toIsoDateString(val) {
8246
+ if (val === null || val === void 0 || val === "") return null;
8247
+ if (val instanceof Date) {
8248
+ if (isNaN(val.getTime())) return null;
8249
+ return `${val.getFullYear()}-${pad2(val.getMonth() + 1)}-${pad2(val.getDate())}`;
8250
+ }
8251
+ if (typeof val === "string") {
8252
+ const trimmed = val.trim();
8253
+ return isValidIsoDate(trimmed) ? trimmed : null;
8254
+ }
8255
+ return null;
8256
+ }
8257
+ var FusionDatePickerComponent = class FusionDatePickerComponent {
8258
+ cdr;
8259
+ set value(val) {
8260
+ this.normalizedValue = toIsoDateString(val) ?? "";
8261
+ this.hasInvalidInput = false;
8262
+ }
8263
+ get value() {
8264
+ return this.normalizedValue;
8265
+ }
8266
+ set min(val) {
8267
+ this.normalizedMin = toIsoDateString(val);
8268
+ }
8269
+ get min() {
8270
+ return this.normalizedMin;
8271
+ }
8272
+ set max(val) {
8273
+ this.normalizedMax = toIsoDateString(val);
8274
+ }
8275
+ get max() {
8276
+ return this.normalizedMax;
8277
+ }
8278
+ disabled = false;
8279
+ readonly = false;
8280
+ required = false;
8281
+ label;
8282
+ inputId;
8283
+ ariaLabel;
8284
+ valueChange = new EventEmitter();
8285
+ normalizedValue = "";
8286
+ normalizedMin = null;
8287
+ normalizedMax = null;
8288
+ hasInvalidInput = false;
8289
+ defaultId = `fusion-date-picker-${++nextDatePickerId}`;
8290
+ onChange = () => {};
8291
+ onTouched = () => {};
8292
+ onValidatorChange = () => {};
8293
+ constructor(cdr) {
8294
+ this.cdr = cdr;
8295
+ }
8296
+ get resolvedId() {
8297
+ return this.inputId || this.defaultId;
8298
+ }
8299
+ writeValue(val) {
8300
+ this.normalizedValue = toIsoDateString(val) ?? "";
8301
+ this.hasInvalidInput = false;
8302
+ this.cdr.markForCheck();
8303
+ }
8304
+ registerOnChange(fn) {
8305
+ this.onChange = fn;
8306
+ }
8307
+ registerOnTouched(fn) {
8308
+ this.onTouched = fn;
8309
+ }
8310
+ setDisabledState(isDisabled) {
8311
+ this.disabled = isDisabled;
8312
+ this.cdr.markForCheck();
8313
+ }
8314
+ registerOnValidatorChange(fn) {
8315
+ this.onValidatorChange = fn;
8316
+ }
8317
+ validate(_control) {
8318
+ return this.hasInvalidInput ? { invalidDate: true } : null;
8319
+ }
8320
+ onNativeInput(event) {
8321
+ if (this.readonly || this.disabled) return;
8322
+ const input = event.target;
8323
+ if (!input) return;
8324
+ const raw = input.value;
8325
+ if (Boolean(input.validity?.badInput) || raw !== "" && !isValidIsoDate(raw)) {
8326
+ this.hasInvalidInput = true;
8327
+ this.normalizedValue = "";
8328
+ this.onChange(null);
8329
+ this.valueChange.emit(null);
8330
+ this.onValidatorChange();
8331
+ return;
8332
+ }
8333
+ this.hasInvalidInput = false;
8334
+ this.normalizedValue = raw;
8335
+ const emitted = raw === "" ? null : raw;
8336
+ this.onChange(emitted);
8337
+ this.valueChange.emit(emitted);
8338
+ this.onValidatorChange();
8339
+ }
8340
+ onNativeBlur() {
8341
+ this.onTouched();
8342
+ }
8343
+ static ɵfac = i0.ɵɵngDeclareFactory({
8344
+ minVersion: "12.0.0",
8345
+ version: "22.2.5",
8346
+ ngImport: i0,
8347
+ type: FusionDatePickerComponent,
8348
+ deps: [{ token: i0.ChangeDetectorRef }],
8349
+ target: i0.ɵɵFactoryTarget.Component
8350
+ });
8351
+ static ɵcmp = i0.ɵɵngDeclareComponent({
8352
+ minVersion: "14.0.0",
8353
+ version: "22.2.5",
8354
+ type: FusionDatePickerComponent,
8355
+ isStandalone: true,
8356
+ selector: "fusion-date-picker",
8357
+ inputs: {
8358
+ value: "value",
8359
+ min: "min",
8360
+ max: "max",
8361
+ disabled: "disabled",
8362
+ readonly: "readonly",
8363
+ required: "required",
8364
+ label: "label",
8365
+ inputId: "inputId",
8366
+ ariaLabel: "ariaLabel"
8367
+ },
8368
+ outputs: { valueChange: "valueChange" },
8369
+ providers: [{
8370
+ provide: NG_VALUE_ACCESSOR,
8371
+ useExisting: forwardRef(() => FusionDatePickerComponent),
8372
+ multi: true
8373
+ }, {
8374
+ provide: NG_VALIDATORS,
8375
+ useExisting: forwardRef(() => FusionDatePickerComponent),
8376
+ multi: true
8377
+ }],
8378
+ ngImport: i0,
8379
+ template: "<div class=\"fdp-wrapper\">\n <label *ngIf=\"label\" class=\"fdp-label\" [for]=\"resolvedId\">\n {{ label }}\n <span *ngIf=\"required\" class=\"fdp-required\" aria-hidden=\"true\">*</span>\n </label>\n <input\n type=\"date\"\n class=\"fdp-input\"\n [class.is-invalid]=\"hasInvalidInput\"\n [id]=\"resolvedId\"\n [value]=\"normalizedValue\"\n [attr.min]=\"normalizedMin\"\n [attr.max]=\"normalizedMax\"\n [disabled]=\"disabled\"\n [readOnly]=\"readonly\"\n [required]=\"required\"\n [attr.aria-label]=\"!label && ariaLabel ? ariaLabel : null\"\n [attr.aria-required]=\"required || null\"\n [attr.aria-invalid]=\"hasInvalidInput || null\"\n (input)=\"onNativeInput($event)\"\n (change)=\"onNativeInput($event)\"\n (blur)=\"onNativeBlur()\" />\n</div>\n",
8380
+ styles: [":host{display:inline-block;width:100%}.fdp-wrapper{display:flex;flex-direction:column;gap:6px}.fdp-label{font-size:var(--fs-small, 13px);font-weight:var(--fw-500, 500);color:var(--fb-text-secondary, #475569);margin:0}.fdp-required{color:var(--fb-error-text, #991b1b);margin-left:2px}.fdp-input{width:100%;min-height:36px;padding:6px 10px;font-size:var(--fs-normal, 14px);font-family:inherit;color:var(--fb-text-primary, #0f172a);background-color:var(--fb-input-bg, #ffffff);border:1px solid var(--fb-input-border, #cbd5e1);border-radius:var(--radius-medium, 8px);box-sizing:border-box;color-scheme:inherit;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.fdp-input:hover:not(:disabled):not(:read-only){border-color:var(--fb-input-hover, #94a3b8)}.fdp-input:focus-visible{outline:none;border-color:var(--fb-input-focus, #0140c1);box-shadow:0 0 0 2px var(--fb-focus-ring, #003566)}.fdp-input:disabled{background-color:var(--fb-input-disabled, #f1f5f9);color:var(--fb-text-disabled, #94a3b8);cursor:not-allowed}.fdp-input:read-only:not(:disabled){background-color:var(--fb-input-readonly, #f8fafc)}.fdp-input.is-invalid{border-color:var(--fb-error-border, #fecaca)}\n"],
8381
+ dependencies: [{
8382
+ kind: "ngmodule",
8383
+ type: CommonModule
8384
+ }, {
8385
+ kind: "directive",
8386
+ type: i1$4.NgIf,
8387
+ selector: "[ngIf]",
8388
+ inputs: [
8389
+ "ngIf",
8390
+ "ngIfThen",
8391
+ "ngIfElse"
8392
+ ]
8393
+ }],
8394
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
8395
+ });
8396
+ };
8397
+ i0.ɵɵngDeclareClassMetadata({
8398
+ minVersion: "12.0.0",
8399
+ version: "22.2.5",
8400
+ ngImport: i0,
8401
+ type: FusionDatePickerComponent,
8402
+ decorators: [{
8403
+ type: Component,
8404
+ args: [{
8405
+ selector: "fusion-date-picker",
8406
+ standalone: true,
8407
+ imports: [CommonModule],
8408
+ changeDetection: ChangeDetectionStrategy.OnPush,
8409
+ providers: [{
8410
+ provide: NG_VALUE_ACCESSOR,
8411
+ useExisting: forwardRef(() => FusionDatePickerComponent),
8412
+ multi: true
8413
+ }, {
8414
+ provide: NG_VALIDATORS,
8415
+ useExisting: forwardRef(() => FusionDatePickerComponent),
8416
+ multi: true
8417
+ }],
8418
+ template: "<div class=\"fdp-wrapper\">\n <label *ngIf=\"label\" class=\"fdp-label\" [for]=\"resolvedId\">\n {{ label }}\n <span *ngIf=\"required\" class=\"fdp-required\" aria-hidden=\"true\">*</span>\n </label>\n <input\n type=\"date\"\n class=\"fdp-input\"\n [class.is-invalid]=\"hasInvalidInput\"\n [id]=\"resolvedId\"\n [value]=\"normalizedValue\"\n [attr.min]=\"normalizedMin\"\n [attr.max]=\"normalizedMax\"\n [disabled]=\"disabled\"\n [readOnly]=\"readonly\"\n [required]=\"required\"\n [attr.aria-label]=\"!label && ariaLabel ? ariaLabel : null\"\n [attr.aria-required]=\"required || null\"\n [attr.aria-invalid]=\"hasInvalidInput || null\"\n (input)=\"onNativeInput($event)\"\n (change)=\"onNativeInput($event)\"\n (blur)=\"onNativeBlur()\" />\n</div>\n",
8419
+ styles: [":host{display:inline-block;width:100%}.fdp-wrapper{display:flex;flex-direction:column;gap:6px}.fdp-label{font-size:var(--fs-small, 13px);font-weight:var(--fw-500, 500);color:var(--fb-text-secondary, #475569);margin:0}.fdp-required{color:var(--fb-error-text, #991b1b);margin-left:2px}.fdp-input{width:100%;min-height:36px;padding:6px 10px;font-size:var(--fs-normal, 14px);font-family:inherit;color:var(--fb-text-primary, #0f172a);background-color:var(--fb-input-bg, #ffffff);border:1px solid var(--fb-input-border, #cbd5e1);border-radius:var(--radius-medium, 8px);box-sizing:border-box;color-scheme:inherit;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.fdp-input:hover:not(:disabled):not(:read-only){border-color:var(--fb-input-hover, #94a3b8)}.fdp-input:focus-visible{outline:none;border-color:var(--fb-input-focus, #0140c1);box-shadow:0 0 0 2px var(--fb-focus-ring, #003566)}.fdp-input:disabled{background-color:var(--fb-input-disabled, #f1f5f9);color:var(--fb-text-disabled, #94a3b8);cursor:not-allowed}.fdp-input:read-only:not(:disabled){background-color:var(--fb-input-readonly, #f8fafc)}.fdp-input.is-invalid{border-color:var(--fb-error-border, #fecaca)}\n"]
8420
+ }]
8421
+ }],
8422
+ ctorParameters: () => [{ type: i0.ChangeDetectorRef }],
8423
+ propDecorators: {
8424
+ value: [{ type: Input }],
8425
+ min: [{ type: Input }],
8426
+ max: [{ type: Input }],
8427
+ disabled: [{ type: Input }],
8428
+ readonly: [{ type: Input }],
8429
+ required: [{ type: Input }],
8430
+ label: [{ type: Input }],
8431
+ inputId: [{ type: Input }],
8432
+ ariaLabel: [{ type: Input }],
8433
+ valueChange: [{ type: Output }]
8434
+ }
8435
+ });
7776
8436
  var FusionCardComponent = class FusionCardComponent {
7777
8437
  sanitizer;
7778
8438
  renderer;
@@ -9085,6 +9745,6 @@ i0.ɵɵngDeclareClassMetadata({
9085
9745
  }]
9086
9746
  }]
9087
9747
  });
9088
- export { AlertMessageComponent, AlertService, AmountToWordsPipe, ApiService, ApprovalScreenComponent, AttendanceTableComponent, CommonScreenComponent, ConfigService, Constants, CustomDatePipe, CustomPaginatorIntl, CustomTimePipe, CustomTranslatePipe, DataTableComponent, DropDownComponent, EditColumnCheckPipe, EditColumnDropdownPipe, EditColumnTypePipe, ErrorHandlerService, FileUploadComponent, FusionButtonComponent, FusionCardComponent, FusionMonthPickerComponent, GetValuePipe, GlobalValuesService, LoaderService, ModalComponent, MultiCheckboxComponent, MultiSelectDropdownComponent, MultipleFilterComponent, PaginationComponent, PdfFontService, PopoverComponent, ScrollService, SearchFilterComponent, SearchFilterPipe, SideScreenComponent, TOAST_GLOBAL_CONFIG, TabDataService, ToastComponent, ToastService, TotalColumSumPipe, UserChipComponent, configureUserTableDataSource, formatUserDisplayName, getColumnConfig, getUserColumnMaxVisible, getUserInitials, isUserColumnType, isValidAvatarUrl, provideToastConfig, resolveUserChipItems, resolveUserColumnText };
9748
+ export { AlertMessageComponent, AlertService, AmountToWordsPipe, ApiService, ApprovalScreenComponent, AttendanceTableComponent, CommonScreenComponent, ConfigService, Constants, CustomDatePipe, CustomPaginatorIntl, CustomTimePipe, CustomTranslatePipe, DataTableComponent, DropDownComponent, EditColumnCheckPipe, EditColumnDropdownPipe, EditColumnTypePipe, ErrorHandlerService, FileUploadComponent, FusionButtonComponent, FusionCardComponent, FusionDatePickerComponent, FusionMonthPickerComponent, FusionSectionCardComponent, FusionStatusBadgeComponent, FusionTabStripComponent, GetValuePipe, GlobalValuesService, LoaderService, ModalComponent, MultiCheckboxComponent, MultiSelectDropdownComponent, MultipleFilterComponent, PaginationComponent, PdfFontService, PopoverComponent, ScrollService, SearchFilterComponent, SearchFilterPipe, SideScreenComponent, TOAST_GLOBAL_CONFIG, TabDataService, ToastComponent, ToastService, TotalColumSumPipe, UserChipComponent, configureUserTableDataSource, formatUserDisplayName, getColumnConfig, getUserColumnMaxVisible, getUserInitials, isUserColumnType, isValidAvatarUrl, isValidIsoDate, provideToastConfig, resolveUserChipItems, resolveUserColumnText, toIsoDateString };
9089
9749
 
9090
9750
  //# sourceMappingURL=rangertechnologies-fusion-ui.mjs.map