@rangertechnologies/fusion-ui 0.2.2 → 0.2.4
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.
|
@@ -85,6 +85,29 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
85
85
|
}],
|
|
86
86
|
ctorParameters: () => [{ type: i1$5.TranslateService }]
|
|
87
87
|
});
|
|
88
|
+
const NON_PRIMARY_VARIANT_TOKENS = /* @__PURE__ */ new Set([
|
|
89
|
+
"secondary",
|
|
90
|
+
"outline",
|
|
91
|
+
"grey-border",
|
|
92
|
+
"text-only",
|
|
93
|
+
"icon",
|
|
94
|
+
"btn-icon",
|
|
95
|
+
"btn-close",
|
|
96
|
+
"custom-btn",
|
|
97
|
+
"border-btn",
|
|
98
|
+
"side-save-component",
|
|
99
|
+
"side-cancel-component",
|
|
100
|
+
"bg-transparent",
|
|
101
|
+
"bg-white",
|
|
102
|
+
"btn-secondary",
|
|
103
|
+
"btn-danger",
|
|
104
|
+
"btn-success",
|
|
105
|
+
"btn-warning",
|
|
106
|
+
"btn-info",
|
|
107
|
+
"btn-light",
|
|
108
|
+
"btn-dark",
|
|
109
|
+
"btn-link"
|
|
110
|
+
]);
|
|
88
111
|
var FusionButtonComponent = class FusionButtonComponent {
|
|
89
112
|
elementRef;
|
|
90
113
|
cdr;
|
|
@@ -124,6 +147,24 @@ var FusionButtonComponent = class FusionButtonComponent {
|
|
|
124
147
|
this.cdr.markForCheck();
|
|
125
148
|
}
|
|
126
149
|
}
|
|
150
|
+
get resolvedButtonClasses() {
|
|
151
|
+
const classes = /* @__PURE__ */ new Set([
|
|
152
|
+
"btn",
|
|
153
|
+
"fc-button",
|
|
154
|
+
"flex"
|
|
155
|
+
]);
|
|
156
|
+
const inputTokens = typeof this.buttonType === "string" ? this.buttonType.trim().split(/\s+/).filter((token) => token.length > 0 && token !== "none") : [];
|
|
157
|
+
const hasExplicitPrimary = inputTokens.includes("primary") || inputTokens.includes("btn-primary");
|
|
158
|
+
const hasNonPrimaryVariant = inputTokens.some((token) => NON_PRIMARY_VARIANT_TOKENS.has(token) || token.startsWith("btn-outline-"));
|
|
159
|
+
if (inputTokens.length === 0 || hasExplicitPrimary || !hasNonPrimaryVariant) {
|
|
160
|
+
classes.add("btn-primary");
|
|
161
|
+
classes.add("fc-button--primary");
|
|
162
|
+
}
|
|
163
|
+
if (inputTokens.some((token) => token === "secondary" || token === "outline" || token === "grey-border")) classes.add("fc-button--secondary");
|
|
164
|
+
if (inputTokens.includes("icon")) classes.add("btn-icon");
|
|
165
|
+
for (const token of inputTokens) classes.add(token);
|
|
166
|
+
return Array.from(classes).join(" ");
|
|
167
|
+
}
|
|
127
168
|
getButtonStyles(config) {
|
|
128
169
|
return {
|
|
129
170
|
"--fc-button-custom-bg": config.fcBtnBgColor || "",
|
|
@@ -187,19 +228,13 @@ var FusionButtonComponent = class FusionButtonComponent {
|
|
|
187
228
|
host: { listeners: { "document:click": "onClickOutside($event)" } },
|
|
188
229
|
usesOnChanges: true,
|
|
189
230
|
ngImport: i0,
|
|
190
|
-
template: "<!-- SKS24JAN25 group button -->\n<div *ngIf=\"type === 'group'\" class=\"btn-group\" role=\"group\" aria-label=\"Button Group\">\n <button *ngFor=\"let btn of buttonConfig.buttons\"\n type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [attr.tabindex]=\"btn.tabIndex\"\n [attr.data-bs-toggle]=\"btn.modalToTrigger ? 'modal' : null\"\n [attr.data-bs-target]=\"btn.modalToTrigger ? '#' + btn.modalToTrigger : null\"\n [ngStyle]=\"getButtonStyles(btn)\"\n [disabled]=\"btn.buttonDisable\"\n [attr.data-bs-dismiss]=\"btn.dataDismiss\"\n (click)=\"buttonClicked(btn)\"\n [attr.id]=\"btn.fcBtnId !== 'default' ? btn.fcBtnId : null\">\n <img *ngIf=\"btn.isImageSvg\" [src]=\"btn.iconSrc\">\n <div class=\"custom-tooltip\" \n [ngStyle]=\"{\n 'background-color': btn.tooltipBcColor,\n 'color': btn.tooltipColor,\n 'font-size': btn.tooltipFSize\n }\">\n {{ btn.tooltip }}\n <div class=\"tooltip-pointer\" [ngStyle]=\"{'background-color': btn.tooltipBcColor}\"></div>\n </div>\n </button>\n</div>\n \n<!-- MR
|
|
231
|
+
template: "<!-- SKS24JAN25 group button -->\n<div *ngIf=\"type === 'group'\" class=\"btn-group\" role=\"group\" aria-label=\"Button Group\">\n <button *ngFor=\"let btn of buttonConfig.buttons\"\n type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [attr.tabindex]=\"btn.tabIndex\"\n [attr.data-bs-toggle]=\"btn.modalToTrigger ? 'modal' : null\"\n [attr.data-bs-target]=\"btn.modalToTrigger ? '#' + btn.modalToTrigger : null\"\n [ngStyle]=\"getButtonStyles(btn)\"\n [disabled]=\"btn.buttonDisable\"\n [attr.data-bs-dismiss]=\"btn.dataDismiss\"\n (click)=\"buttonClicked(btn)\"\n [attr.id]=\"btn.fcBtnId !== 'default' ? btn.fcBtnId : null\">\n <img *ngIf=\"btn.isImageSvg\" [src]=\"btn.iconSrc\">\n <div class=\"custom-tooltip\" \n [ngStyle]=\"{\n 'background-color': btn.tooltipBcColor,\n 'color': btn.tooltipColor,\n 'font-size': btn.tooltipFSize\n }\">\n {{ btn.tooltip }}\n <div class=\"tooltip-pointer\" [ngStyle]=\"{'background-color': btn.tooltipBcColor}\"></div>\n </div>\n </button>\n</div>\n \n<!-- MR 24NOV26 Use single resolvedButtonClasses binding to prevent NgClass/class conflict -->\n<button type=\"button\" *ngIf=\"type !== 'group' && type !== 'dropdown'\"\n [class]=\"resolvedButtonClasses\"\n [tabindex]=\"tabIndex\"\n [attr.data-bs-toggle]=\"modalToTrigger != '' ? 'modal' : ''\"\n [attr.data-bs-target]=\"modalToTrigger != '' ? '#'+modalToTrigger : ''\"\n style=\"--fc-button-custom-bg: {{fcBtnBgColor}};--fc-button-custom-border: {{fcBtnBorder}};--fc-button-custom-color: {{fcBtnTextColor}};--fc-button-custom-height: {{fcBtnHeight}};--fc-button-custom-width: {{fcBtnWidth}};--fc-button-hover-bg: {{fcBtnHoverBgColor}};--fc-button-hover-text-color: {{fcBtnHoverTextColor}};\"\n [disabled]=\"buttonDisable || buttonLoadingSpinner\" [attr.data-bs-dismiss]='dataDismiss' (click)=\"buttonClicked($event)\"\n [attr.id]=\"fcBtnId != 'default' ? fcBtnId : null\">\n <img *ngIf=\"fcBtnIconLeftSrc && fcBtnIconLeftSrc != '' && isImageSvg\" src=\"{{fcBtnIconLeftSrc}}\"\n class=\"fc-btn-icon left-icon\">\n <img *ngIf=\"fcBtnIconLeftSrc && fcBtnIconLeftSrc != '' && !isImageSvg\" src=\"{{fcBtnIconLeftSrc}}\" class=\"fc-btn-icon left-icon\">\n <!-- <div class=\"fc-btn-text\">{{buttonValue}}</div> -->\n <img *ngIf=\"fcBtnIconRightSrc && fcBtnIconRightSrc != '' && isImageSvg\" src=\"{{fcBtnIconRightSrc}}\"\n class=\"fc-btn-icon right-icon\">\n <img *ngIf=\"fcBtnIconRightSrc && fcBtnIconRightSrc != '' && !isImageSvg\" src=\"{{fcBtnIconRightSrc}}\" class=\"fc-btn-icon right-icon\">\n <!-- SK04SEP25 loader -->\n <!-- MY 15OCT26 adjust margin spacing on spinner-grow -->\n <div class=\"{{ buttonLoadingSpinner ? 'spinner-grow me-1' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></div>\n <div style=\"font-size: var(--fs-medium); line-height: normal !important;\">{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' : (buttonValuePath | customTranslate : buttonValue) }}\n </div>\n</button>\n\n<!-- SKS24JAN25 dropdown button -->\n<div *ngIf=\"type === 'dropdown'\" class=\"dropdown\">\n <img src=\"../assets/images/icons/general/others.svg\" class=\"clickable-img\" (click)=\"toggleDropdown()\" />\n <div class=\"dropdown-menu\" *ngIf=\"isDropdownOpen\">\n <button *ngFor=\"let btn of buttonConfig.buttons\"\n type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [attr.tabindex]=\"btn.tabIndex\"\n [attr.data-bs-toggle]=\"btn.modalToTrigger ? 'modal' : null\"\n [attr.data-bs-target]=\"btn.modalToTrigger ? '#' + btn.modalToTrigger : null\"\n [ngStyle]=\"getButtonStyles(btn)\"\n [disabled]=\"btn.buttonDisable\"\n [attr.data-bs-dismiss]=\"btn.dataDismiss\"\n (click)=\"buttonClicked(btn)\"\n [attr.id]=\"btn.fcBtnId !== 'default' ? btn.fcBtnId : null\">\n <img *ngIf=\"btn.isImageSvg\" [src]=\"btn.iconSrc\">\n <div class=\"fc-btn-text\" style=\"padding-left: 12px;\">{{btn.name}}</div>\n </button>\n </div>\n</div>\n",
|
|
191
232
|
styles: [".fc-button,.fc-button:hover,.fc-button:active,.fc-button:focus{outline:none;border:2px solid transparent;box-shadow:none}.fc-button{padding:6.5px}.fc-button:active{transform:scale(1.02)}.fc-button--primary:disabled,.btn-primary:disabled{background-color:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-disabled, #94a3b8)!important;border:1px solid var(--fb-border-default, #e2e8f0)!important;cursor:not-allowed;opacity:1!important}.fc-button--secondary{background-color:var(--comp-bg-color, #ffffff);color:var(--fb-text-primary, #0f172a);border:1px solid var(--fb-border-default, #e2e8f0)}.fc-button--secondary:hover:not(:disabled){background-color:var(--fb-surface-secondary, #f8fafc);border-color:var(--fb-border-strong, #cbd5e1);color:var(--fb-text-primary, #0f172a)}.fc-button--secondary:disabled{background-color:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-disabled, #94a3b8)!important;border-color:var(--fb-border-subtle, #f1f5f9)!important;cursor:not-allowed;opacity:1!important}.text-only{background:transparent;color:var(--fc-primary-color);border:none;outline:none}.grey-text{color:var(--fc-text-color)}.blue-text{color:var(--fc-primary-color)}.grey-border{color:var(--fc-text-color-dark);background:transparent;border:1px solid var(--border-color)}.grey-border:hover{color:var(--fc-primary-color);background:var(--hover-module-bg);border:1px solid var(--fc-primary-color)}.grey-border:active,.grey-border:focus{background-color:var(--fc-primary-color);border:1px solid var(--fc-primary-color);color:var(--fc-text-color)}.blue-border,.blue-border:hover,.blue-border:active,.blue-border:focus{border:1px solid var(--fc-primary-color)}.bg-transparent{background-color:transparent}.custom-btn{background-color:var(--fc-button-custom-bg);border-color:var(--fc-button-custom-border);color:var(--fc-button-custom-color);height:var(--fc-button-custom-height);width:var(--fc-button-custom-width)}.border-btn{height:var(--fc-button-custom-height);width:var(--fc-button-custom-width)}.custom-btn:hover,.custom-btn:active,.custom-btn:focus{border-color:var(--fc-button-custom-border);background-color:var(--fc-button-hover-bg);color:var(--fc-button-hover-text-color)}.fc-btn-text{display:inline-flex;font-size:var(--fs-medium);font-weight:var(--fw-400);padding-left:5px;padding-right:5px}.right-icon{margin-left:5px}.left-icon{margin-right:5px}::ng-deep [dir=rtl] .left-icon{margin-right:unset!important;margin-left:5px}.fc-button.side-save-component{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 22px;border-radius:6px;font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500);background-color:var(--fb-action-surface, var(--fc-primary-color, #0070d2));color:var(--fb-text-on-action, #ffffff);border:1px solid var(--fb-action-border, transparent);cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.fc-button.side-save-component:hover:not(:disabled){background-color:var(--fb-action-hover, #005fb2);color:var(--fb-text-on-action, #ffffff)}.fc-button.side-save-component:active:not(:disabled){background-color:var(--fb-action-pressed, #005096)}.fc-button.side-save-component:focus{box-shadow:0 0 0 .25rem var(--fb-focus-ring, rgba(0, 112, 210, .25));border:1px solid var(--fb-focus-ring-strong, #0070d2)}.fc-button.side-save-component:disabled{background-color:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-disabled, #94a3b8)!important;border:1px solid var(--fb-border-default, #e2e8f0)!important;cursor:not-allowed!important;opacity:1!important}.fc-button.side-cancel-component{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 18px;border-radius:6px;font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500);background-color:transparent;color:var(--fb-text-secondary, #64748b);border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,color .15s ease}.fc-button.side-cancel-component:hover:not(:disabled){background-color:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a)}.fc-button.side-cancel-component:focus{box-shadow:0 0 0 .25rem var(--fb-focus-ring, rgba(0, 112, 210, .25));border:1px solid var(--fb-focus-ring-strong, #0070d2)}.fc-button.side-cancel-component:disabled{color:var(--fb-text-disabled, #94a3b8)!important;cursor:not-allowed!important;opacity:1!important}.btn-group{background-color:var(--comp-bg-color);border:1px solid var(--border-color);border-radius:7px}.btn-icon{background-color:var(--comp-bg-color);border:1px solid var(--border-color)}.custom-tooltip{visibility:visible;position:absolute;background-color:var(--fc-primary-color);color:var(--comp-bg-color);text-align:center;padding:5px 10px;border-radius:4px;font-size:var(--fs-small);white-space:nowrap;bottom:100%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .2s;z-index:10;margin-bottom:10px;line-height:1.5}.tooltip-pointer{position:absolute;width:0;height:0;bottom:-5px;left:50%;transform:translate(-50%);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--fc-primary-color)}.tooltip-container:hover .custom-tooltip{visibility:visible;opacity:1}.clickable-img{position:relative;cursor:pointer;height:41px;transition:transform .3s ease,box-shadow .3s ease;border:2px solid var(--border-color);border-radius:13px}.clickable-img:hover{transform:scale(.95);border:2px solid var(--fc-primary-color);border-radius:14px}.dropdown{position:relative;display:inline-block}.dropdown-menu{right:0;top:45px;background-color:var(--comp-bg-color);border:1px solid var(--border-color);border-radius:4px;box-shadow:0 4px 8px var(--box-shadow-color)}.dropdown .dropdown-menu{display:block}.dropdown-menu .btn{display:block;padding:10px;width:100%;text-align:left;background:transparent;border:none;cursor:pointer}.dropdown-menu .btn:hover{background-color:var(--comp-bg-color)}\n"],
|
|
192
233
|
dependencies: [
|
|
193
234
|
{
|
|
194
235
|
kind: "ngmodule",
|
|
195
236
|
type: CommonModule
|
|
196
237
|
},
|
|
197
|
-
{
|
|
198
|
-
kind: "directive",
|
|
199
|
-
type: i1$4.NgClass,
|
|
200
|
-
selector: "[ngClass]",
|
|
201
|
-
inputs: ["class", "ngClass"]
|
|
202
|
-
},
|
|
203
238
|
{
|
|
204
239
|
kind: "directive",
|
|
205
240
|
type: i1$4.NgForOf,
|
|
@@ -253,7 +288,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
253
288
|
AngularSvgIconModule,
|
|
254
289
|
CustomTranslatePipe
|
|
255
290
|
],
|
|
256
|
-
template: "<!-- SKS24JAN25 group button -->\n<div *ngIf=\"type === 'group'\" class=\"btn-group\" role=\"group\" aria-label=\"Button Group\">\n <button *ngFor=\"let btn of buttonConfig.buttons\"\n type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [attr.tabindex]=\"btn.tabIndex\"\n [attr.data-bs-toggle]=\"btn.modalToTrigger ? 'modal' : null\"\n [attr.data-bs-target]=\"btn.modalToTrigger ? '#' + btn.modalToTrigger : null\"\n [ngStyle]=\"getButtonStyles(btn)\"\n [disabled]=\"btn.buttonDisable\"\n [attr.data-bs-dismiss]=\"btn.dataDismiss\"\n (click)=\"buttonClicked(btn)\"\n [attr.id]=\"btn.fcBtnId !== 'default' ? btn.fcBtnId : null\">\n <img *ngIf=\"btn.isImageSvg\" [src]=\"btn.iconSrc\">\n <div class=\"custom-tooltip\" \n [ngStyle]=\"{\n 'background-color': btn.tooltipBcColor,\n 'color': btn.tooltipColor,\n 'font-size': btn.tooltipFSize\n }\">\n {{ btn.tooltip }}\n <div class=\"tooltip-pointer\" [ngStyle]=\"{'background-color': btn.tooltipBcColor}\"></div>\n </div>\n </button>\n</div>\n \n<!-- MR
|
|
291
|
+
template: "<!-- SKS24JAN25 group button -->\n<div *ngIf=\"type === 'group'\" class=\"btn-group\" role=\"group\" aria-label=\"Button Group\">\n <button *ngFor=\"let btn of buttonConfig.buttons\"\n type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [attr.tabindex]=\"btn.tabIndex\"\n [attr.data-bs-toggle]=\"btn.modalToTrigger ? 'modal' : null\"\n [attr.data-bs-target]=\"btn.modalToTrigger ? '#' + btn.modalToTrigger : null\"\n [ngStyle]=\"getButtonStyles(btn)\"\n [disabled]=\"btn.buttonDisable\"\n [attr.data-bs-dismiss]=\"btn.dataDismiss\"\n (click)=\"buttonClicked(btn)\"\n [attr.id]=\"btn.fcBtnId !== 'default' ? btn.fcBtnId : null\">\n <img *ngIf=\"btn.isImageSvg\" [src]=\"btn.iconSrc\">\n <div class=\"custom-tooltip\" \n [ngStyle]=\"{\n 'background-color': btn.tooltipBcColor,\n 'color': btn.tooltipColor,\n 'font-size': btn.tooltipFSize\n }\">\n {{ btn.tooltip }}\n <div class=\"tooltip-pointer\" [ngStyle]=\"{'background-color': btn.tooltipBcColor}\"></div>\n </div>\n </button>\n</div>\n \n<!-- MR 24NOV26 Use single resolvedButtonClasses binding to prevent NgClass/class conflict -->\n<button type=\"button\" *ngIf=\"type !== 'group' && type !== 'dropdown'\"\n [class]=\"resolvedButtonClasses\"\n [tabindex]=\"tabIndex\"\n [attr.data-bs-toggle]=\"modalToTrigger != '' ? 'modal' : ''\"\n [attr.data-bs-target]=\"modalToTrigger != '' ? '#'+modalToTrigger : ''\"\n style=\"--fc-button-custom-bg: {{fcBtnBgColor}};--fc-button-custom-border: {{fcBtnBorder}};--fc-button-custom-color: {{fcBtnTextColor}};--fc-button-custom-height: {{fcBtnHeight}};--fc-button-custom-width: {{fcBtnWidth}};--fc-button-hover-bg: {{fcBtnHoverBgColor}};--fc-button-hover-text-color: {{fcBtnHoverTextColor}};\"\n [disabled]=\"buttonDisable || buttonLoadingSpinner\" [attr.data-bs-dismiss]='dataDismiss' (click)=\"buttonClicked($event)\"\n [attr.id]=\"fcBtnId != 'default' ? fcBtnId : null\">\n <img *ngIf=\"fcBtnIconLeftSrc && fcBtnIconLeftSrc != '' && isImageSvg\" src=\"{{fcBtnIconLeftSrc}}\"\n class=\"fc-btn-icon left-icon\">\n <img *ngIf=\"fcBtnIconLeftSrc && fcBtnIconLeftSrc != '' && !isImageSvg\" src=\"{{fcBtnIconLeftSrc}}\" class=\"fc-btn-icon left-icon\">\n <!-- <div class=\"fc-btn-text\">{{buttonValue}}</div> -->\n <img *ngIf=\"fcBtnIconRightSrc && fcBtnIconRightSrc != '' && isImageSvg\" src=\"{{fcBtnIconRightSrc}}\"\n class=\"fc-btn-icon right-icon\">\n <img *ngIf=\"fcBtnIconRightSrc && fcBtnIconRightSrc != '' && !isImageSvg\" src=\"{{fcBtnIconRightSrc}}\" class=\"fc-btn-icon right-icon\">\n <!-- SK04SEP25 loader -->\n <!-- MY 15OCT26 adjust margin spacing on spinner-grow -->\n <div class=\"{{ buttonLoadingSpinner ? 'spinner-grow me-1' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></div>\n <div style=\"font-size: var(--fs-medium); line-height: normal !important;\">{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' : (buttonValuePath | customTranslate : buttonValue) }}\n </div>\n</button>\n\n<!-- SKS24JAN25 dropdown button -->\n<div *ngIf=\"type === 'dropdown'\" class=\"dropdown\">\n <img src=\"../assets/images/icons/general/others.svg\" class=\"clickable-img\" (click)=\"toggleDropdown()\" />\n <div class=\"dropdown-menu\" *ngIf=\"isDropdownOpen\">\n <button *ngFor=\"let btn of buttonConfig.buttons\"\n type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [attr.tabindex]=\"btn.tabIndex\"\n [attr.data-bs-toggle]=\"btn.modalToTrigger ? 'modal' : null\"\n [attr.data-bs-target]=\"btn.modalToTrigger ? '#' + btn.modalToTrigger : null\"\n [ngStyle]=\"getButtonStyles(btn)\"\n [disabled]=\"btn.buttonDisable\"\n [attr.data-bs-dismiss]=\"btn.dataDismiss\"\n (click)=\"buttonClicked(btn)\"\n [attr.id]=\"btn.fcBtnId !== 'default' ? btn.fcBtnId : null\">\n <img *ngIf=\"btn.isImageSvg\" [src]=\"btn.iconSrc\">\n <div class=\"fc-btn-text\" style=\"padding-left: 12px;\">{{btn.name}}</div>\n </button>\n </div>\n</div>\n",
|
|
257
292
|
styles: [".fc-button,.fc-button:hover,.fc-button:active,.fc-button:focus{outline:none;border:2px solid transparent;box-shadow:none}.fc-button{padding:6.5px}.fc-button:active{transform:scale(1.02)}.fc-button--primary:disabled,.btn-primary:disabled{background-color:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-disabled, #94a3b8)!important;border:1px solid var(--fb-border-default, #e2e8f0)!important;cursor:not-allowed;opacity:1!important}.fc-button--secondary{background-color:var(--comp-bg-color, #ffffff);color:var(--fb-text-primary, #0f172a);border:1px solid var(--fb-border-default, #e2e8f0)}.fc-button--secondary:hover:not(:disabled){background-color:var(--fb-surface-secondary, #f8fafc);border-color:var(--fb-border-strong, #cbd5e1);color:var(--fb-text-primary, #0f172a)}.fc-button--secondary:disabled{background-color:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-disabled, #94a3b8)!important;border-color:var(--fb-border-subtle, #f1f5f9)!important;cursor:not-allowed;opacity:1!important}.text-only{background:transparent;color:var(--fc-primary-color);border:none;outline:none}.grey-text{color:var(--fc-text-color)}.blue-text{color:var(--fc-primary-color)}.grey-border{color:var(--fc-text-color-dark);background:transparent;border:1px solid var(--border-color)}.grey-border:hover{color:var(--fc-primary-color);background:var(--hover-module-bg);border:1px solid var(--fc-primary-color)}.grey-border:active,.grey-border:focus{background-color:var(--fc-primary-color);border:1px solid var(--fc-primary-color);color:var(--fc-text-color)}.blue-border,.blue-border:hover,.blue-border:active,.blue-border:focus{border:1px solid var(--fc-primary-color)}.bg-transparent{background-color:transparent}.custom-btn{background-color:var(--fc-button-custom-bg);border-color:var(--fc-button-custom-border);color:var(--fc-button-custom-color);height:var(--fc-button-custom-height);width:var(--fc-button-custom-width)}.border-btn{height:var(--fc-button-custom-height);width:var(--fc-button-custom-width)}.custom-btn:hover,.custom-btn:active,.custom-btn:focus{border-color:var(--fc-button-custom-border);background-color:var(--fc-button-hover-bg);color:var(--fc-button-hover-text-color)}.fc-btn-text{display:inline-flex;font-size:var(--fs-medium);font-weight:var(--fw-400);padding-left:5px;padding-right:5px}.right-icon{margin-left:5px}.left-icon{margin-right:5px}::ng-deep [dir=rtl] .left-icon{margin-right:unset!important;margin-left:5px}.fc-button.side-save-component{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 22px;border-radius:6px;font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500);background-color:var(--fb-action-surface, var(--fc-primary-color, #0070d2));color:var(--fb-text-on-action, #ffffff);border:1px solid var(--fb-action-border, transparent);cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.fc-button.side-save-component:hover:not(:disabled){background-color:var(--fb-action-hover, #005fb2);color:var(--fb-text-on-action, #ffffff)}.fc-button.side-save-component:active:not(:disabled){background-color:var(--fb-action-pressed, #005096)}.fc-button.side-save-component:focus{box-shadow:0 0 0 .25rem var(--fb-focus-ring, rgba(0, 112, 210, .25));border:1px solid var(--fb-focus-ring-strong, #0070d2)}.fc-button.side-save-component:disabled{background-color:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-disabled, #94a3b8)!important;border:1px solid var(--fb-border-default, #e2e8f0)!important;cursor:not-allowed!important;opacity:1!important}.fc-button.side-cancel-component{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 18px;border-radius:6px;font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500);background-color:transparent;color:var(--fb-text-secondary, #64748b);border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,color .15s ease}.fc-button.side-cancel-component:hover:not(:disabled){background-color:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a)}.fc-button.side-cancel-component:focus{box-shadow:0 0 0 .25rem var(--fb-focus-ring, rgba(0, 112, 210, .25));border:1px solid var(--fb-focus-ring-strong, #0070d2)}.fc-button.side-cancel-component:disabled{color:var(--fb-text-disabled, #94a3b8)!important;cursor:not-allowed!important;opacity:1!important}.btn-group{background-color:var(--comp-bg-color);border:1px solid var(--border-color);border-radius:7px}.btn-icon{background-color:var(--comp-bg-color);border:1px solid var(--border-color)}.custom-tooltip{visibility:visible;position:absolute;background-color:var(--fc-primary-color);color:var(--comp-bg-color);text-align:center;padding:5px 10px;border-radius:4px;font-size:var(--fs-small);white-space:nowrap;bottom:100%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .2s;z-index:10;margin-bottom:10px;line-height:1.5}.tooltip-pointer{position:absolute;width:0;height:0;bottom:-5px;left:50%;transform:translate(-50%);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--fc-primary-color)}.tooltip-container:hover .custom-tooltip{visibility:visible;opacity:1}.clickable-img{position:relative;cursor:pointer;height:41px;transition:transform .3s ease,box-shadow .3s ease;border:2px solid var(--border-color);border-radius:13px}.clickable-img:hover{transform:scale(.95);border:2px solid var(--fc-primary-color);border-radius:14px}.dropdown{position:relative;display:inline-block}.dropdown-menu{right:0;top:45px;background-color:var(--comp-bg-color);border:1px solid var(--border-color);border-radius:4px;box-shadow:0 4px 8px var(--box-shadow-color)}.dropdown .dropdown-menu{display:block}.dropdown-menu .btn{display:block;padding:10px;width:100%;text-align:left;background:transparent;border:none;cursor:pointer}.dropdown-menu .btn:hover{background-color:var(--comp-bg-color)}\n"]
|
|
258
293
|
}]
|
|
259
294
|
}],
|
|
@@ -4153,6 +4188,222 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4153
4188
|
}]
|
|
4154
4189
|
}]
|
|
4155
4190
|
});
|
|
4191
|
+
function getColumnConfig(tableConfigurations, column) {
|
|
4192
|
+
if (!tableConfigurations || !column) return null;
|
|
4193
|
+
if (Array.isArray(tableConfigurations)) return tableConfigurations.find((cfg) => cfg && (cfg.key === column || cfg.column === column || cfg.field === column || cfg.name === column)) || null;
|
|
4194
|
+
if (typeof tableConfigurations === "object") {
|
|
4195
|
+
const direct = tableConfigurations[column];
|
|
4196
|
+
if (direct && typeof direct === "object") return direct;
|
|
4197
|
+
const nested = tableConfigurations.columns;
|
|
4198
|
+
if (Array.isArray(nested)) return nested.find((cfg) => cfg && (cfg.key === column || cfg.column === column || cfg.field === column || cfg.name === column)) || null;
|
|
4199
|
+
if (nested && typeof nested === "object" && nested[column]) return nested[column];
|
|
4200
|
+
}
|
|
4201
|
+
return null;
|
|
4202
|
+
}
|
|
4203
|
+
function isUserColumnType(tableConfigurations, column) {
|
|
4204
|
+
const colType = getColumnConfig(tableConfigurations, column)?.type;
|
|
4205
|
+
return colType === "user" || colType === "userTag";
|
|
4206
|
+
}
|
|
4207
|
+
function getUserColumnMaxVisible(tableConfigurations, column, defaultMax = 2) {
|
|
4208
|
+
const cfg = getColumnConfig(tableConfigurations, column);
|
|
4209
|
+
const max = Number(cfg?.maxVisible);
|
|
4210
|
+
return Number.isFinite(max) && max > 0 ? max : defaultMax;
|
|
4211
|
+
}
|
|
4212
|
+
function isValidAvatarUrl(url) {
|
|
4213
|
+
if (typeof url !== "string") return false;
|
|
4214
|
+
const trimmed = url.trim();
|
|
4215
|
+
if (!trimmed) return false;
|
|
4216
|
+
const lower = trimmed.toLowerCase();
|
|
4217
|
+
return lower.startsWith("https://") || lower.startsWith("http://") || trimmed.startsWith("/") || lower.startsWith("data:image/");
|
|
4218
|
+
}
|
|
4219
|
+
function getUserInitials(name) {
|
|
4220
|
+
if (!name || typeof name !== "string") return "?";
|
|
4221
|
+
const parts = name.trim().split(/\s+/).filter(Boolean);
|
|
4222
|
+
if (parts.length === 0) return "?";
|
|
4223
|
+
if (parts.length === 1) return parts[0].substring(0, 2).toUpperCase();
|
|
4224
|
+
return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();
|
|
4225
|
+
}
|
|
4226
|
+
function formatUserDisplayName(user, rawFallback) {
|
|
4227
|
+
if (!user || typeof user !== "object") return rawFallback ? String(rawFallback) : "";
|
|
4228
|
+
const fullName = `${user.firstName ?? ""} ${user.lastName ?? ""}`.trim();
|
|
4229
|
+
if (fullName) return fullName;
|
|
4230
|
+
if (user.name && String(user.name).trim()) return String(user.name).trim();
|
|
4231
|
+
return rawFallback ? String(rawFallback) : user.fusionId || user._id || "";
|
|
4232
|
+
}
|
|
4233
|
+
function lookupUser(id, userLookupMap) {
|
|
4234
|
+
if (!id || !userLookupMap) return null;
|
|
4235
|
+
if (userLookupMap instanceof Map) return userLookupMap.get(id) ?? null;
|
|
4236
|
+
return userLookupMap[id] ?? null;
|
|
4237
|
+
}
|
|
4238
|
+
function resolveUserChipItems(value, userLookupMap) {
|
|
4239
|
+
if (value === null || value === void 0 || value === "") return [];
|
|
4240
|
+
const entries = Array.isArray(value) ? value : [value];
|
|
4241
|
+
const items = [];
|
|
4242
|
+
entries.forEach((entry, idx) => {
|
|
4243
|
+
if (entry === null || entry === void 0 || entry === "") return;
|
|
4244
|
+
let userObj = null;
|
|
4245
|
+
let rawId = "";
|
|
4246
|
+
if (typeof entry === "object") {
|
|
4247
|
+
userObj = entry;
|
|
4248
|
+
rawId = userObj._id || userObj.fusionId || "";
|
|
4249
|
+
} else if (typeof entry === "string" || typeof entry === "number") {
|
|
4250
|
+
rawId = String(entry).trim();
|
|
4251
|
+
userObj = lookupUser(rawId, userLookupMap);
|
|
4252
|
+
}
|
|
4253
|
+
const displayName = formatUserDisplayName(userObj, rawId);
|
|
4254
|
+
if (!displayName) return;
|
|
4255
|
+
const rawAvatar = userObj?.thumbnailURL || userObj?.avatarUrl;
|
|
4256
|
+
const avatarUrl = isValidAvatarUrl(rawAvatar) ? rawAvatar.trim() : null;
|
|
4257
|
+
items.push({
|
|
4258
|
+
displayName,
|
|
4259
|
+
initials: getUserInitials(displayName),
|
|
4260
|
+
avatarUrl,
|
|
4261
|
+
key: `${rawId || displayName}-${idx}`
|
|
4262
|
+
});
|
|
4263
|
+
});
|
|
4264
|
+
return items;
|
|
4265
|
+
}
|
|
4266
|
+
function resolveUserColumnText(value, userLookupMap) {
|
|
4267
|
+
return resolveUserChipItems(value, userLookupMap).map((item) => item.displayName).join(", ");
|
|
4268
|
+
}
|
|
4269
|
+
function configureUserTableDataSource(dataSource, getTableConfigurations, getUserLookupMap) {
|
|
4270
|
+
if (!dataSource) return;
|
|
4271
|
+
const defaultSortAccessor = dataSource.sortingDataAccessor;
|
|
4272
|
+
dataSource.sortingDataAccessor = (data, sortHeaderId) => {
|
|
4273
|
+
if (isUserColumnType(getTableConfigurations(), sortHeaderId)) return resolveUserColumnText(data?.[sortHeaderId], getUserLookupMap()).toLowerCase();
|
|
4274
|
+
return defaultSortAccessor(data, sortHeaderId);
|
|
4275
|
+
};
|
|
4276
|
+
dataSource.filterPredicate = (data, filter) => {
|
|
4277
|
+
const normalizedFilter = (filter || "").trim().toLowerCase();
|
|
4278
|
+
if (!normalizedFilter) return true;
|
|
4279
|
+
const configs = getTableConfigurations();
|
|
4280
|
+
const lookupMap = getUserLookupMap();
|
|
4281
|
+
return Object.keys(data || {}).reduce((acc, key) => {
|
|
4282
|
+
if (isUserColumnType(configs, key)) return acc + resolveUserColumnText(data[key], lookupMap) + " ";
|
|
4283
|
+
const val = data[key];
|
|
4284
|
+
if (val !== null && val !== void 0 && typeof val !== "object") return acc + String(val) + " ";
|
|
4285
|
+
return acc;
|
|
4286
|
+
}, "").toLowerCase().includes(normalizedFilter);
|
|
4287
|
+
};
|
|
4288
|
+
}
|
|
4289
|
+
var UserChipComponent = class UserChipComponent {
|
|
4290
|
+
value;
|
|
4291
|
+
userLookupMap;
|
|
4292
|
+
maxVisible = 2;
|
|
4293
|
+
items = [];
|
|
4294
|
+
visibleItems = [];
|
|
4295
|
+
overflowCount = 0;
|
|
4296
|
+
overflowTooltip = "";
|
|
4297
|
+
failedAvatarKeys = /* @__PURE__ */ new Set();
|
|
4298
|
+
ngOnChanges() {
|
|
4299
|
+
this.failedAvatarKeys.clear();
|
|
4300
|
+
this.items = resolveUserChipItems(this.value, this.userLookupMap);
|
|
4301
|
+
const limit = this.maxVisible > 0 ? this.maxVisible : 2;
|
|
4302
|
+
this.visibleItems = this.items.slice(0, limit);
|
|
4303
|
+
const hidden = this.items.slice(limit);
|
|
4304
|
+
this.overflowCount = hidden.length;
|
|
4305
|
+
this.overflowTooltip = hidden.map((item) => item.displayName).join(", ");
|
|
4306
|
+
}
|
|
4307
|
+
onAvatarError(key) {
|
|
4308
|
+
this.failedAvatarKeys.add(key);
|
|
4309
|
+
}
|
|
4310
|
+
showImage(item) {
|
|
4311
|
+
return !!item.avatarUrl && !this.failedAvatarKeys.has(item.key);
|
|
4312
|
+
}
|
|
4313
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4314
|
+
minVersion: "12.0.0",
|
|
4315
|
+
version: "22.2.5",
|
|
4316
|
+
ngImport: i0,
|
|
4317
|
+
type: UserChipComponent,
|
|
4318
|
+
deps: [],
|
|
4319
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
4320
|
+
});
|
|
4321
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4322
|
+
minVersion: "14.0.0",
|
|
4323
|
+
version: "22.2.5",
|
|
4324
|
+
type: UserChipComponent,
|
|
4325
|
+
isStandalone: true,
|
|
4326
|
+
selector: "app-user-chip, fusion-user-chip",
|
|
4327
|
+
inputs: {
|
|
4328
|
+
value: "value",
|
|
4329
|
+
userLookupMap: "userLookupMap",
|
|
4330
|
+
maxVisible: "maxVisible"
|
|
4331
|
+
},
|
|
4332
|
+
usesOnChanges: true,
|
|
4333
|
+
ngImport: i0,
|
|
4334
|
+
template: "<!-- MR 30NOV26 Shared user chip/avatar cell support for DataTableComponent and DataTableTwoComponent -->\n<div class=\"fusion-user-chip-list\" *ngIf=\"visibleItems.length > 0; else emptyUserCell\">\n <span class=\"fusion-user-chip\" *ngFor=\"let item of visibleItems\" [matTooltip]=\"item.displayName\">\n <img\n *ngIf=\"showImage(item); else initialsBadge\"\n class=\"fusion-user-avatar-img\"\n [src]=\"item.avatarUrl\"\n [alt]=\"item.displayName\"\n (error)=\"onAvatarError(item.key)\"\n />\n <ng-template #initialsBadge>\n <span class=\"fusion-user-avatar-initials\">{{ item.initials }}</span>\n </ng-template>\n <span class=\"fusion-user-name\">{{ item.displayName }}</span>\n </span>\n <span\n *ngIf=\"overflowCount > 0\"\n class=\"fusion-user-overflow-badge\"\n [matTooltip]=\"overflowTooltip\"\n >\n +{{ overflowCount }}\n </span>\n</div>\n<ng-template #emptyUserCell>\n <span class=\"fusion-user-empty\">-</span>\n</ng-template>\n",
|
|
4335
|
+
styles: [".fusion-user-chip-list{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%}.fusion-user-chip{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%}.fusion-user-avatar-img,.fusion-user-avatar-initials{width:22px;height:22px;min-width:22px;border-radius:50%;flex-shrink:0}.fusion-user-avatar-img{object-fit:cover;display:block}.fusion-user-avatar-initials{display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:var(--fw-600, 600);line-height:1;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-selected-text, #0f172a)}.fusion-user-name{font-size:var(--fs-small, 13px);color:var(--fb-text-primary, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fusion-user-overflow-badge{display:inline-flex;align-items:center;justify-content:center;height:20px;padding:0 6px;border-radius:10px;font-size:11px;font-weight:var(--fw-600, 600);background:var(--fb-surface-secondary, #f1f5f9);color:var(--fb-text-secondary, #475569);border:1px solid var(--fb-border-default, #e2e8f0);flex-shrink:0}.fusion-user-empty{color:var(--fb-text-muted, #94a3b8)}\n"],
|
|
4336
|
+
dependencies: [
|
|
4337
|
+
{
|
|
4338
|
+
kind: "ngmodule",
|
|
4339
|
+
type: CommonModule
|
|
4340
|
+
},
|
|
4341
|
+
{
|
|
4342
|
+
kind: "directive",
|
|
4343
|
+
type: i1$4.NgForOf,
|
|
4344
|
+
selector: "[ngFor][ngForOf]",
|
|
4345
|
+
inputs: [
|
|
4346
|
+
"ngForOf",
|
|
4347
|
+
"ngForTrackBy",
|
|
4348
|
+
"ngForTemplate"
|
|
4349
|
+
]
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4352
|
+
kind: "directive",
|
|
4353
|
+
type: i1$4.NgIf,
|
|
4354
|
+
selector: "[ngIf]",
|
|
4355
|
+
inputs: [
|
|
4356
|
+
"ngIf",
|
|
4357
|
+
"ngIfThen",
|
|
4358
|
+
"ngIfElse"
|
|
4359
|
+
]
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
kind: "ngmodule",
|
|
4363
|
+
type: MatTooltipModule
|
|
4364
|
+
},
|
|
4365
|
+
{
|
|
4366
|
+
kind: "directive",
|
|
4367
|
+
type: i4$1.MatTooltip,
|
|
4368
|
+
selector: "[matTooltip]",
|
|
4369
|
+
inputs: [
|
|
4370
|
+
"matTooltipPosition",
|
|
4371
|
+
"matTooltipPositionAtOrigin",
|
|
4372
|
+
"matTooltipDisabled",
|
|
4373
|
+
"matTooltipShowDelay",
|
|
4374
|
+
"matTooltipHideDelay",
|
|
4375
|
+
"matTooltipTouchGestures",
|
|
4376
|
+
"matTooltip",
|
|
4377
|
+
"matTooltipClass"
|
|
4378
|
+
],
|
|
4379
|
+
exportAs: ["matTooltip"]
|
|
4380
|
+
}
|
|
4381
|
+
],
|
|
4382
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4383
|
+
});
|
|
4384
|
+
};
|
|
4385
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
4386
|
+
minVersion: "12.0.0",
|
|
4387
|
+
version: "22.2.5",
|
|
4388
|
+
ngImport: i0,
|
|
4389
|
+
type: UserChipComponent,
|
|
4390
|
+
decorators: [{
|
|
4391
|
+
type: Component,
|
|
4392
|
+
args: [{
|
|
4393
|
+
selector: "app-user-chip, fusion-user-chip",
|
|
4394
|
+
standalone: true,
|
|
4395
|
+
imports: [CommonModule, MatTooltipModule],
|
|
4396
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4397
|
+
template: "<!-- MR 30NOV26 Shared user chip/avatar cell support for DataTableComponent and DataTableTwoComponent -->\n<div class=\"fusion-user-chip-list\" *ngIf=\"visibleItems.length > 0; else emptyUserCell\">\n <span class=\"fusion-user-chip\" *ngFor=\"let item of visibleItems\" [matTooltip]=\"item.displayName\">\n <img\n *ngIf=\"showImage(item); else initialsBadge\"\n class=\"fusion-user-avatar-img\"\n [src]=\"item.avatarUrl\"\n [alt]=\"item.displayName\"\n (error)=\"onAvatarError(item.key)\"\n />\n <ng-template #initialsBadge>\n <span class=\"fusion-user-avatar-initials\">{{ item.initials }}</span>\n </ng-template>\n <span class=\"fusion-user-name\">{{ item.displayName }}</span>\n </span>\n <span\n *ngIf=\"overflowCount > 0\"\n class=\"fusion-user-overflow-badge\"\n [matTooltip]=\"overflowTooltip\"\n >\n +{{ overflowCount }}\n </span>\n</div>\n<ng-template #emptyUserCell>\n <span class=\"fusion-user-empty\">-</span>\n</ng-template>\n",
|
|
4398
|
+
styles: [".fusion-user-chip-list{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%}.fusion-user-chip{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%}.fusion-user-avatar-img,.fusion-user-avatar-initials{width:22px;height:22px;min-width:22px;border-radius:50%;flex-shrink:0}.fusion-user-avatar-img{object-fit:cover;display:block}.fusion-user-avatar-initials{display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:var(--fw-600, 600);line-height:1;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-selected-text, #0f172a)}.fusion-user-name{font-size:var(--fs-small, 13px);color:var(--fb-text-primary, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fusion-user-overflow-badge{display:inline-flex;align-items:center;justify-content:center;height:20px;padding:0 6px;border-radius:10px;font-size:11px;font-weight:var(--fw-600, 600);background:var(--fb-surface-secondary, #f1f5f9);color:var(--fb-text-secondary, #475569);border:1px solid var(--fb-border-default, #e2e8f0);flex-shrink:0}.fusion-user-empty{color:var(--fb-text-muted, #94a3b8)}\n"]
|
|
4399
|
+
}]
|
|
4400
|
+
}],
|
|
4401
|
+
propDecorators: {
|
|
4402
|
+
value: [{ type: Input }],
|
|
4403
|
+
userLookupMap: [{ type: Input }],
|
|
4404
|
+
maxVisible: [{ type: Input }]
|
|
4405
|
+
}
|
|
4406
|
+
});
|
|
4156
4407
|
var ScrollService = class ScrollService {
|
|
4157
4408
|
scrollPositionSubject = new BehaviorSubject(0);
|
|
4158
4409
|
scrollPosition$ = this.scrollPositionSubject.asObservable();
|
|
@@ -4555,6 +4806,7 @@ var DataTableComponent = class DataTableComponent {
|
|
|
4555
4806
|
pageSize = 10;
|
|
4556
4807
|
pageIndex = 0;
|
|
4557
4808
|
tableConfigurations;
|
|
4809
|
+
userLookupMap;
|
|
4558
4810
|
actionButtonCondition;
|
|
4559
4811
|
dateColumns;
|
|
4560
4812
|
timeColumns;
|
|
@@ -4702,6 +4954,7 @@ var DataTableComponent = class DataTableComponent {
|
|
|
4702
4954
|
this.objectColumns = Array.isArray(this.objectColumns) ? this.objectColumns : [];
|
|
4703
4955
|
if (changes["buttonLoadingSpinner"] || changes["tableSaveLoadingSpinner"] || changes["isLoading"]) this.cdr.markForCheck();
|
|
4704
4956
|
this.dataSource = new MatTableDataSource(this.data);
|
|
4957
|
+
this.configureDataSource(this.dataSource);
|
|
4705
4958
|
this.selection = new SelectionModel(true, []);
|
|
4706
4959
|
this.filterCheckBox = new SelectionModel(true, []);
|
|
4707
4960
|
if (!this.totalRecords && this.data) {
|
|
@@ -4757,6 +5010,7 @@ var DataTableComponent = class DataTableComponent {
|
|
|
4757
5010
|
this.cdr.markForCheck();
|
|
4758
5011
|
});
|
|
4759
5012
|
this.dataSource = new MatTableDataSource(this.data);
|
|
5013
|
+
this.configureDataSource(this.dataSource);
|
|
4760
5014
|
if (!this.totalRecords && this.data) {
|
|
4761
5015
|
if (this.pageSize && this.pageIndex) {
|
|
4762
5016
|
const start = (Number(this.pageIndex) - 1) * Number(this.pageSize);
|
|
@@ -5034,6 +5288,7 @@ var DataTableComponent = class DataTableComponent {
|
|
|
5034
5288
|
this.data.push(obj);
|
|
5035
5289
|
const data = this.data;
|
|
5036
5290
|
this.dataSource = new MatTableDataSource(data);
|
|
5291
|
+
this.configureDataSource(this.dataSource);
|
|
5037
5292
|
this.selection = new SelectionModel(true, []);
|
|
5038
5293
|
this.filterCheckBox = new SelectionModel(true, []);
|
|
5039
5294
|
this.dataSource.sort = this.sort;
|
|
@@ -5130,6 +5385,15 @@ var DataTableComponent = class DataTableComponent {
|
|
|
5130
5385
|
isTimeColumn(column) {
|
|
5131
5386
|
return this.timeColumns?.includes(column) ?? false;
|
|
5132
5387
|
}
|
|
5388
|
+
isUserColumn(column) {
|
|
5389
|
+
return isUserColumnType(this.tableConfigurations, column);
|
|
5390
|
+
}
|
|
5391
|
+
getUserColumnMaxVisible(column) {
|
|
5392
|
+
return getUserColumnMaxVisible(this.tableConfigurations, column);
|
|
5393
|
+
}
|
|
5394
|
+
configureDataSource(dataSource) {
|
|
5395
|
+
configureUserTableDataSource(dataSource, () => this.tableConfigurations, () => this.userLookupMap);
|
|
5396
|
+
}
|
|
5133
5397
|
onInfoClick(ele, col, index) {
|
|
5134
5398
|
this.infoData = ele;
|
|
5135
5399
|
this.infoSidescreen = true;
|
|
@@ -5224,6 +5488,7 @@ var DataTableComponent = class DataTableComponent {
|
|
|
5224
5488
|
pageSize: "pageSize",
|
|
5225
5489
|
pageIndex: "pageIndex",
|
|
5226
5490
|
tableConfigurations: "tableConfigurations",
|
|
5491
|
+
userLookupMap: "userLookupMap",
|
|
5227
5492
|
actionButtonCondition: "actionButtonCondition",
|
|
5228
5493
|
dateColumns: "dateColumns",
|
|
5229
5494
|
timeColumns: "timeColumns",
|
|
@@ -5327,7 +5592,7 @@ var DataTableComponent = class DataTableComponent {
|
|
|
5327
5592
|
],
|
|
5328
5593
|
usesOnChanges: true,
|
|
5329
5594
|
ngImport: i0,
|
|
5330
|
-
template: "<div class=\"table-layout\" [id]=\"tableId\" style=\"padding-top: 1px;\">\n <div>\n <!-- SK30JAN25 title added -->\n <div class=\"d-flex justify-content-center table-title align-text-center\">\n {{title}}\n </div>\n \n <div class=\"flex justify-content-between\" style=\"padding-bottom: 5px;\">\n <div class=\"d-flex align-items-center\">\n <!-- MR 09NOV26 table-toolbar-left projection slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n\n <div *ngIf=\"dateDropdown \">\n <app-drop-down class=\"field-input\" [lists]='dropdownLists' dropDownHeight=\"38px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dropdownEmitFunction($event)\" [selectedData]=\"dropdownSelectedData\"></app-drop-down>\n </div>\n <!-- SC11NOV2025 if isDatePicker is true then show the date picker -->\n <div *ngIf=\"isDatePicker\">\n <!-- MR 16NOV26 Semantic text token replacing hardcoded hex -->\n <app-drop-down [lists]='list' [selectedData]=\"selectedData\" dropDownHeight=\"42px\" dropFontWeight=\"500\"\n dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\" dropBorderRadius=\"5px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dateFilter($event)\"></app-drop-down>\n </div>\n </div>\n <!-- SKS24JAN25 show Nos in table -->\n <!-- <div style=\"display: flex; align-items: center;\">\n <p *ngIf=\"totalRecords || totalCount\" style=\"font-weight: var(--fw-500); margin-right: 5px; margin-bottom: 0px;\">{{'APP.NOS' | customTranslate : 'Nos'}} </p> <span style=\"color: var(--fc-primary-color, rgb(43, 87, 249));\">{{totalRecords || totalCount}}</span>\n </div> -->\n <!-- SKS24JAN25 search bar config and nonconfig -->\n <div style=\"margin-left:auto;\">\n <div class=\"flex\" style=\"align-items: center;\">\n <!-- MR 09NOV26 table-toolbar-right projection slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n\n <div class=\"search\">\n <div class=\"search-bar\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n <input type=\"text\" placeholder=\"{{ 'APP.SEARCH' | customTranslate : 'Search' }}\" matInput\n (keyup)=\"searchConfigs ? emptySearch($event) : applyFilter($event)\"\n [value]=\" (searchConfigs || searchTextValue) ? searchBoxValue || '' : '' \" #input\n style=\"font-size: 13px !important;\">\n <img *ngIf=\"searchConfigs && searchBar\" (click)=\"onSearch(input.value)\"\n src=\"../assets/images/icons/general/configSearch.svg\" class=\"configSearch\">\n </div>\n </div>\n\n <!-- MR 09NOV26 Single toolbar button support from second-data-table -->\n <div class=\"flex\" *ngIf=\"button\">\n <app-fusion-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event, button)\"\n [buttonType]=\"button?.class || button?.buttonType\" [buttonValue]=\"button?.namePath || button?.labelPath || button?.name | customTranslate : button?.label || button?.name\"\n [buttonConfig]=\"button?.buttonConfig\" [type]=\"button?.type\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc || button?.fcBtnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\n\n <!-- SKS24JAN25 single, group and dropdown dynamic buttons -->\n <div class=\"flex\" *ngIf=\"isButtons\" style=\"padding-left: 7px;\">\n <div class=\"flex\" *ngFor=\"let button of buttonArray\">\n <!-- MR 16NOV26 Clean semantic variant identifier for Export action -->\n <app-fusion-button class=\"data-table-fsbtn\" [buttonDisable]=\"button.buttonDisable\"\n [buttonLoadingSpinner]=\"buttonLoadingSpinner\" (buttonClickEmit)=\"commonButtonClick($event,button)\"\n [buttonType]=\"button.buttonType || (button.label === 'Export' ? 'secondary' : button.class || 'primary')\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\"\n [buttonConfig]=\"button.buttonConfig\" [type]=\"button.type\" class=\"ms-2 me-2\"\n [fcBtnIconLeftSrc]=\"button.label === 'Export' ? '../assets/images/icons/general/upload-icon.svg' : button.fcBtnIconLeftSrc\" [isImageSvg]=\"button.label === 'Export' ? true : button.isImageSvg\">\n <!--SKS25OCT24 If the value is 'Import' or 'Export', this button does not work-->\n </app-fusion-button>\n </div>\n </div>\n \n </div>\n\n <!-- SK23FEB24 for adding new record in table -->\n <div class=\"flex cursor-pointer\" *ngIf=\"addInlineRecord\" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <!-- MR 30OCT26 Refactor inline html template styling to theme tokens -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fb-text-primary, #0f172a) !important;\"></i>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\" cdkScrollable> <!-- SKS3FEB25 The search filter closes when scrolling the table-->\n <!-- MSM28JAN25 MR 09NOV26 skeleton loader condition using isTableLoading --> \n <ng-container *ngIf=\"!isTableLoading; else loadingTemplate\">\n <table mat-table [dataSource]=\"dataSource || []\" [ngStyle]=\"{ width: tableWidth }\" matSort>\n <!-- Checkbox Columns -->\n <ng-container [sticky]=\"true\" class=\"checkboxCol\" *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\" style=\"border-left: 1px solid var(--fb-border-default, #e2e8f0);\">\n <input type=\"checkbox\" (click)=\"$event.stopPropagation()\" (change)=\"masterToggle()\"\n [checked]=\"selection?.hasValue()\" [indeterminate]=\"selection?.hasValue() && !isAllSelected()\"\n class=\"custom-checkbox\" />\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n <!-- SK18OCT24 check payroll Inprogress/Completed from backend data -->\n <input type=\"checkbox\" class=\"custom-checkbox\"\n [title]=\"(fromWhere === 'payrollTable' || fromWhere === 'paySlip') ? (row?.payProcessComment || '') : ''\"\n (click)=\"$event.stopPropagation()\" (change)=\"separateRowSelect(row)\"\n [checked]=\"selection.isSelected(row)\"\n [disabled]=\"(fromWhere === 'payrollTable' && row.isPayProcessed === true) || (fromWhere === 'paySlip' && row.isPayProcessed === false)\" />\n </td>\n <td mat-footer-cell *matFooterCellDef>\n {{ \"\" }}\n </td>\n </ng-container>\n\n <!-- data Columns -->\n <!-- set the matColumnDef attribute to the column name and use interpolation to dynamically generate the mat-header-cell and mat-cell elements based on the column name-->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [stickyEnd]=\"i === (stickyCondition - 1) ? true : false\" [sticky]=\"stickyColumns.includes(column)\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header\n style=\"border-right: 1px solid var(--fb-border-default, #e2e8f0);\" class=\"head-color ms-2 ps-2 pe-2\" \n [ngClass]=\"{'sticky-column': i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column)),'active-column': activeColumn === column,'first-header-border': i === 0}\"\n (click)=\"$event.stopPropagation(); onColumnClick(column)\">\n <span [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">{{\n (\n translatePath && translatePath[displayedColumns.indexOf(column)]\n ? translatePath[displayedColumns.indexOf(column)]\n : headerLabels[displayedColumns.indexOf(column)]\n )\n | customTranslate : headerLabels[displayedColumns.indexOf(column)]\n }}\n </span>\n <div (click)=\"$event.stopPropagation()\" class=\"position-relative\" cdk-overlay-origin\n #trigger=\"cdkOverlayOrigin\">\n <img class=\"ms-1\" *ngIf=\"filterColumns.includes(column)\" style=\"margin-bottom: 2px;\"\n (click)=\"filter(column)\" src=\"../assets/images/icons/general/filter-icon.svg\">\n </div>\n <ng-template cdk-connected-overlay [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"searchFilter === true && column === selectedFilter\"\n [cdkConnectedOverlayScrollStrategy]=\"createScrollStrategy()\"\n (overlayOutsideClick)=\"searchFilter = false\" (detach)=\"searchFilter = false\">\n <app-search-filter class=\"search-component position-absolute\"\n [class]=\"searchFilter === true && column === selectedFilter ? 'd-block' : 'd-none'\"\n [filterItems]=\"filterArray\" (emitValues)=\"filteredData($event)\" (click)=\"$event.stopPropagation()\">\n </app-search-filter>\n </ng-template>\n </th>\n <ng-container *ngIf=\"dataSource.data.length > 0\">\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color ps-2 pe-2\" *matCellDef=\"let element; let j = index\"\n [class.active-column]=\"activeColumn === column\"\n [class.sticky-column]=\"i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column))\">\n <!-- SK29OCT25 employee detail column -->\n <div *ngIf=\"column === 'employeeDetail'\">\n <div class=\"d-flex flex-row\" style=\"left:0;\">\n <div *ngIf=\"element['employeeName'] || element['name']\"\n [class]=\"hyperLinkColumns.includes(column) ? 'hyper-link' : '' \"\n style=\"font-size: var(--fs-small);color: var(--fb-text-primary, #0f172a);font-weight: var(--fw-600);\">\n {{element[\"employeeName\"] || element[\"name\"] || ''}}</div>\n <div *ngIf=\"element['employeeId']\"\n style=\"font-size: 11px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-400);\" class=\"ms-1\">\n [{{element[\"employeeId\"] || ''}}]</div>\n </div>\n <div class=\"d-flex flex-row\" *ngIf=\"element['designation'] && element['designation'] !== ''\">\n <div style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"designation\"] || ''}}\n </div>\n <div *ngIf=\"element['designation'] && element['designation'] !== '' && element['location'] && element['location'] !== ''\"\n style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">,</div>\n <div *ngIf=\"element['location'] && element['location'] !== ''\" style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"location\"] || ''}}\n </div>\n </div>\n </div>\n <div *ngIf=\"column !== 'combinedColumn' && column !== 'employeeDetail' && fromWhere !== 'leaveMaster' && (column !== 'active' && (fromWhere === 'hrmTaxComponent' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrm' || fromWhere === 'compensation'|| fromWhere === 'payrollTable'|| fromWhere === 'payrollCompare'|| fromWhere === 'paySlip' || fromWhere === 'approval' || fromWhere === 'leave' || fromWhere === 'expense' || fromWhere === 'expenseApproval' || fromWhere === 'leaveAllocation' ||fromWhere === 'parkingApp' ||(fromWhere === 'common' && column != 'signature')))\">\n <!-- SK10APR24 getting the table values using pipe instead of function to increase performance-->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('') \">\n <span class=\"font-size-13 {{checkHyperlinkCheck(column) || fromWhere === 'hrm' || fromWhere === 'compensation' || fromWhere === 'parkingApp' ? ' hyper-link clickable ' : ''}} {{fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' }}\"\n *ngIf=\"hyperLinkColumns.includes(column) || isFirstCell(column)\"\n (click)=\"tableClick(element); onClickHyperlink(column,element, j, checkHyperlinkCheck(column))\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </span>\n <div *ngIf=\"!isFirstCell(column) && !editColumn.includes(column) && column != 'receipt'\"\n [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">\n <div *ngIf=\"!checkHyperlinkCheck(column)\" class=\"font-size-13\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </div>\n </div>\n </div>\n <!-- SK27FEB24 added input box for inline edit input-->\n <div *ngIf=\"editColumn.length > 0\">\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('string') \" class=\"on-edit d-flex\">\n <input #editColElement class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \"\n matInput [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n </div>\n <!-- SK10APR24 In table, like text input, added drop down and time inputs as well -->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('object') \" class=\"on-edit d-flex\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('text') \" #editColElement\n class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('time') \" type=\"time\"\n class=\"lop-input table-width\" matInput [class]=\"element?.editRow ? 'input-box' : '' \"\n placeholder=\"HH:mm:ss\" [(ngModel)]=\"element[column]\"\n [disabled]=\"element?.editRow ? false : true\" />\n <div *ngIf=\" ('-' | editColumnType: column : editColumn) === ('dropdown') \">\n <select type=\"dropdown\" *ngIf=\"element?.editRow\" class=\"lop-input table-width\" matInput\n [class]=\"element?.editRow ? 'input-box' : '' \" [(ngModel)]=\"element[column]\">\n <option [disabled]=\"element?.editRow ? false : true\"\n *ngFor=\"let data of [] | editColumnDropdown: column : editColumn \"\n [value]=\"data.value || data.name\">{{data.name}}</option>\n </select>\n <input *ngIf=\"!element?.editRow\" #editColElement class=\"lop-input table-width\"\n [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"true\">\n </div>\n\n </div>\n </div>\n <app-popover\n *ngIf=\"column === 'receipt' && !editColumn.includes(column) && receiptImg == true && element[column] && element[column].length != 0\"\n [isBootstrap]=\"false\" [dynamicPopover]=\"'Popover string comes here'\">\n <div class=\"hover-base\">\n <img class=\"ms-1\" src=\"../../../assets/images/icons/general/file-attach.svg\">\n </div>\n <div class=\"hover-content\">\n <div class=\"expenseCon\">\n <div *ngFor=\"let data of element[column] || []\">\n <div class=\"cursor-pointer expense-file\" (click)=\"expenseAttachment(data,element)\">{{data?.name}}\n <!-- SK20FEB26 loader in expense list-->\n <svg *ngIf=\"data?.loader\"\n class=\"svg-spinner card-icon color\"\n width=\"22\" height=\"22\" viewBox=\"0 0 50 50\"\n style=\"cursor: wait;\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"4\"></circle>\n </svg>\n </div>\n </div>\n </div>\n </div>\n </app-popover>\n </div>\n <div *ngIf=\"fromWhere === 'leaveMaster' && column !== 'employeeDetail' \">\n <div [class]=\"(element[column]) === 'Week Off' ? 'weekoff-color' : '' \" class=\"font-size-13\">{{\n (column == 'default' || column == 'active' || column == 'paidLeave') ? '' : element[column] }}</div>\n <input *ngIf=\"(column === 'default' || column === 'active' || column === 'paidLeave')\"\n class=\"custom-checkbox\" [checked]=\"element[column] == true\" type=\"checkbox\" disabled>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'combinedColumn'\">\n <!-- for the Payroll Settings Component ( Side Screen Component )-->\n <!-- Since the last column is a combination of data and it is also conditional based on the paytype and calculation type we are using this div-->\n <!-- if Component type is Earnings and\n calculationType is 'flat' then output should be => \"'payType\": Flat, Amount of 'amount'\"\n calculationType is 'percentage' then output should be => \"'payType': 'amount' % of Basic \"\n calculationType is 'fixed' then output should be => \"'payType': 'calculationType'\" -->\n <!-- SK20JUN25 to display in table -->\n <ng-container *ngIf=\"\n element?.calculationType === 'flat' ||\n element?.calculationType === 'percentage' ||\n element?.calculationType === 'basicAndDA' ||\n element?.calculationType === 'fixed' ||\n element?.calculationType === 'ctc';\n else noCalculation\n \">\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE_FLAT_AMOUNT'\n | customTranslate : 'Variable: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED_FLAT_AMOUNT'\n | customTranslate : 'Fixed: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'fixed' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS'\n | customTranslate : '% of Gross'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'fixed' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS' |\n customTranslate : '% of Gross'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\"> {{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }} {{ element['amount'] }} {{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_FIXED_CTC' | customTranslate : '% of Fixed CTC'}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount'] }}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_VARIABLE_CTC' | customTranslate : '% of Variable CTC'}}</span>\n </ng-container>\n\n <ng-template #noCalculation>\n <span class=\"spanFontSize\">-</span>\n </ng-template>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'active'\">\n <div class=\"form-check form-switch\">\n <input class=\"custom-checkbox\" type=\"checkbox\" [checked]=\"(element != null && element['active'] === true) ? true : false\"\n (click)=\"element[column]=!element[column]; onToggleChange.emit(fromWhere === 'payrollSettingComponent' ? element : '')\">\n </div>\n </div>\n </td>\n </ng-container>\n <!-- SK16JUL24 to get the sum of column data -->\n <td class=\"ps-2 pe-2 \" mat-footer-cell *matFooterCellDef=\"let element; let j = index\">\n {{ '-' | totalColumSum: data : cumulativeDataColumns : column }}\n </td>\n </ng-container>\n <!-- action button Columns -->\n <!-- SK19MAR25 \"action\" key is changed to \"tableAction\" wherever used, since, it has duplicate error -->\n <ng-container [stickyEnd]=\"true\" *ngIf=\"actionButton || isDeleteRow || isEditRow\"\n matColumnDef=\"tableAction\">\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color action-size sticky-column actionCol text-center\" style=\"border-right: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));\">{{ actionColumHeader |\n customTranslate : 'Action'}}</th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let element; let i=index\" class=\"body-color sticky-column actionCol\">\n <!-- SKS25DEC24 clone button -->\n <div class=\"d-flex flex-row actionButton\"\n [style.justify-content]=\"conditionSendButton ? 'none' : 'center'\">\n <div *ngIf=\"(!conditionCloneButton) && cloneButton\" class=\"imgBtnDiv\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <div *ngIf=\"(conditionCloneButton) && isConditionMet(element, conditionCloneButton.conditions)\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <!-- SK20FEB26 Expense edit on Pending status -->\n <div *ngIf=\"element?.status === 'Rejected'|| fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow || (fromWhere == 'expense' && element?.status === 'Pending' )\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.COMMENTS' | customTranslate : 'comments' \"\n (buttonClickEmit)=\"onEdit(element?.rejectionReason, i, element?.status)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#rejectInfoModal\">\n </app-fusion-button>\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)) || (conditionEditButton && isConditionMet(element, conditionEditButton.conditions))\">\n <!-- MR 20NOV26 Standardize action column edit icon using fusion-icon font glyph \\e140 -->\n <i *ngIf=\"(!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i, element?.status)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n <i *ngIf=\"conditionEditButton && isConditionMet(element, conditionEditButton.conditions)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i)\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n </div>\n <!-- <img *ngIf=\"fromWhere == 'expense'\" (click)=\"delete(element?._id)\" src=\"../assets/images/icons/Vectordelete.svg\"> -->\n </div>\n <div *ngIf=\"element?.leaveStatus === 'New' || element?.status === 'New' || element?.status === 'Pending' || element?.leaveStatus === 'Pending' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || fromWhere == 'expenseApproval' || isDeleteRow\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.CANCEL' | customTranslate : 'Cancel'\" (buttonClickEmit)=\"delete(element, i)\"\n data-bs-toggle=\"modal\" data-bs-target=\"#cancelLeave\"></app-fusion-button>\n <!-- SKS21NOV24 Conditional rendering of delete icon based on various conditions -->\n <!-- Show the delete icon if 'conditionDeleteButton' is false and 'fromWhere' matches specific components or 'isDeleteRow' is true -->\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow) )|| (conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions))\">\n <img\n *ngIf=\"(!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow)\"\n class=\"imgBtn\" [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(fromWhere === 'payrollSettingComponent' || isDeleteRow ? element : element?._id, i)\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n <img *ngIf=\"conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions)\"\n [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(isDeleteRow ? element : element?._id, i)\" class=\"imgBtn\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n </div>\n <div *ngIf=\"fromWhere == 'approval' || fromWhere == 'expenseApproval'\" class=\"flex imgBtnDiv\">\n <img\n *ngIf=\"(fromWhere === 'expenseApproval' && element?.status === 'Approved'&& element?.reImbursed !== 'Reimbursed') || fromWhere == 'approval'\"\n class=\"approval-image me-2\" style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onApprove( element?.employeeId, element?._id, element?.reImbursed )\"\n src=\"../assets/images/icons/general/Approved.svg\">\n <img *ngIf=\"fromWhere !== 'expenseApproval'\" class=\"approval-image\"\n style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onReject( element?.employeeId, element?._id )\"\n src=\"../assets/images/icons/general/Declined.svg\" class=\"\" data-bs-toggle=\"modal\"\n data-bs-target=\"#approvalReject\">\n </div>\n </div>\n <!-- SK02APR24 added preview and download icons -->\n <div *ngIf=\"viewIcon\" class=\"ms-2 imgBtnDiv\">\n <!-- <img [src]=\"('post.svg' | svgIcon:'#000000') | async\" class=\"card-icon color\" title=\"preview\" (click)=\"viewIconClick(element)\" style=\"cursor: pointer;\" /> -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-eye nav-icon\" matTooltip=\"Preview\"\n matTooltipPosition=\"above\" style=\"color: var(--fc-text-color-light) !important; cursor: pointer;\"\n (click)=\"viewIconClick(element)\"></i>\n\n </div>\n <div *ngIf=\"downloadIcon\" class=\"ms-2 imgBtnDiv\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-download card-icon color imgBtn\"\n matTooltip=\"Download\" matTooltipPosition=\"above\"\n style=\"cursor: pointer; color: var(--fc-text-color-light) !important;\"\n (click)=\"downloadIconClick(element)\">\n </i>\n </div>\n <!-- SKS25DEC24 send button -->\n <div *ngIf=\"(!conditionSendButton) && sendButton\" class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <div\n *ngIf=\"(conditionSendButton) && isConditionMet(element, conditionSendButton.conditions) && sendButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <!-- SKS25DEC24 active button -->\n <div *ngIf=\"(!conditionActivateButton) && activeButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionActivateButton) && isConditionMet(element, conditionActivateButton.conditions) && activeButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <!-- SKS25DEC24 deactive button -->\n <div *ngIf=\"(!conditionDeactivateButton) && deactiveButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionDeactivateButton) && isConditionMet(element, conditionDeactivateButton.conditions) && deactiveButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n </div>\n <div>\n\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/downloadfile.svg'\"\n (buttonClickEmit)=\"downloadPdf(element)\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/pencil-icon.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#documentsInfoModal\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/Vectordelete.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#deleteDocModal\"></app-fusion-button>\n </div>\n </td>\n <td mat-footer-cell *matFooterCellDef=\"let element; let i=index\">{{ \"\" }}\n </td>\n </ng-container>\n\n <!-- total Row -->\n <ng-container [sticky]=\"true\" matColumnDef=\"total\">\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\">\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n </td>\n <!-- RS27AUG24 -->\n <!-- Used the translate pipe to successfully implement the translation -->\n <td mat-footer-cell *matFooterCellDef >{{'APP.TOTAL' | customTranslate : 'Total' }}\n </td>\n </ng-container>\n\n <!-- Render the columns -->\n <!-- SK16JUL24 adding the cumulative data row as footer -->\n <!-- <ng-container *ngIf=\"dataSource?.data?.length !== 0\"> -->\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);\"></tr>\n <!-- SK19JUL24 table total update -->\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null \">\n </tr>\n </div>\n <div *ngSwitchCase=\"'tableAction'\">\n <tr mat-header-row\n *matHeaderRowDef=\" displayedColumns ? displayedColumns.concat(['tableAction']) : [] ;sticky: true\">\n </tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumns ? displayedColumns.concat(['tableAction']) : []; \">\n </tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <!-- 30JAN24 for both checkbox and action columns-->\n <div *ngSwitchCase=\"'both'\">\n <tr mat-header-row\n *matHeaderRowDef=\"['select'].concat(displayedColumns).concat('tableAction') sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns).concat('tableAction')\"\n (click)=\"tableClick(row)\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row;let i =index; columns: displayedColumns;\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? 'd-block' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null\">\n </tr>\n </ng-container>\n </div>\n </div>\n <!-- </ng-container> -->\n <!-- <tr class=\"mat-row \" *matNoDataRow> -->\n <!-- SK9JAN24 Removed attr.colspan since it throws undefined error -->\n <!-- <td class=\"mat-cell \">\n {{'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </td>\n </tr> -->\n\n </table>\n <div class=\"no-data-cell text-center my-3 \" *ngIf=\"!dataSource || !dataSource.data || dataSource.data.length === 0\">\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </div>\n </ng-container>\n <!-- MSM28JAN25 skeleton loader template -->\n <ng-template #loadingTemplate>\n <table>\n <tr style=\"height: 40px;\" *ngFor=\"let _ of [1, 2, 3, 4,5,6]\">\n <td colspan=\"3\" class=\"skeleton-card\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </td>\n </tr>\n </table>\n </ng-template>\n </div>\n <!-- SK23FEB24 table input save button changes -->\n <div class=\"d-flex justify-content-end\">\n <div class=\"flex mt-4 me-2 cursor-pointer\" *ngIf=\"addInlineRecord \" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fc-text-color-dark, #000000) !important;\"></i>\n </div>\n </div>\n <!-- SK27FEB24 removed button disable logic, SK13MAR24 added another condition for button showing-->\n <!-- SR06JAN2025 button disable logic for not select any employee-->\n <div class=\"d-flex justify-content-between align-items-end\">\n <div class=\"px-2\">\n {{notes}}</div>\n\n <app-fusion-button [buttonLoadingSpinner]=\"tableSaveLoadingSpinner\"\n *ngIf=\"editColumn.length > 0 || tableSaveButton\" buttonType=\"btn btn-primary mt-4 me-2\"\n [buttonDisable]=\"selection?.selected?.length === 0\" (buttonClickEmit)=\"saveButton()\"\n buttonValue=\"{{ 'APP.SAVE' | customTranslate : 'Save' }}\"></app-fusion-button>\n </div>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar matching Image 1 -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n </app-pagination>\n </div>\n </div>\n</div>\n\n<!-- SK03OCT24 while clicking export button, side screen will be displayed, with fields selection and filter boxes -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"{{'APP.EXPORT_DATA' | customTranslate : '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 <i *ngIf=\"!exportButtonLoadingSpinner\" class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-upload card-icon color me-1\"></i>\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 displaying components from parent (multipleCheckBox/multipleFilter) -->\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\"\n [isDateFilter]=\"type?.isDateFilter || false\"\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<!-- SKS15DEC25 bulk upload -->\n<app-file-upload [id]=\"'uploadEmployee'\" [headerName]=\"moudleName\" [showFileModal]=\"uploadModal\"\n (closeEmit)=\"uploadModal = false\"\n [bodyHeaderName]=\"('APP.STEPS_TO_UPLOAD' | customTranslate : 'Steps to upload')+moudleName\" [isTemplate]=true\n [templateContent]=\"('APP.DOWNLOAD_THE' | customTranslate : 'Download the')+ moudleName +('APP.TEMPLATE' | customTranslate : 'template')\"\n (templateDownload)=\"downloadTemplate()\"\n [bodyContent]=\"[(('APP.FILL_THE_APPROP' | customTranslate : 'Fill the appropriate')+moudleName+('APP.DETAILS_AND_UPLOAD_ITS_BELOW' | customTranslate : 'Details and upload it below'))]\"\n [fileRestrictions]=\"{\n allowedTypes: ['.csv', '.xlsx', '.xls'],\n maxFileSize: 10,\n maxFiles: 1\n }\" [uploadedFiles]=\"[]\" [saveButtonName]=\"'APP.UPLOAD' | customTranslate : 'Upload'\"\n (upload)=\"uploadRecordsFile($event)\">\n</app-file-upload>\n<!-- SK06NOV24 alert on deleting record -->\n<div *ngIf=\"deleteModal\" class=\"modal modal-backdrop show d-block\" id=\"deleteRecord\" tabindex=\"-1\"\n aria-labelledby=\"deleteRecordLabel\" [attr.aria-hidden]=\"!deleteModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"deleteRecordLabel\">{{'APP.DELETE_RECORD' | customTranslate : 'Delete Record'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"deleteModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC' | customTranslate : 'Are you sure want to delete the record'}} ?\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 ? deleteRecordData() : null\">\n <!-- SK04SEP25 button loader -->\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\" (click)=\"deleteModal = false\">{{'APP.NO'\n | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n\n<app-common-screen *ngIf=\"infoSidescreen\" [headerTitle]=\"'APP.APPROVAL_DETAILS' | customTranslate : 'Approval Details'\"\n (sideScreenEmittedEvent)=\"infoSidescreen = false\">\n <div class=\"side-main-content container\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <!-- Approval Info -->\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.NAME' | customTranslate : 'Name'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.name || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.status === 'Approved' || infoData.status === 'Pending' || infoData.status === 'Rejected' \"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.status === 'Approved', \n 'bg-warning': infoData.status === 'Pending',\n 'bg-danger': infoData.status === 'Rejected'}\">\n {{ infoData.status }}</span>\n <span\n *ngIf=\"infoData.status !== 'Approved' && infoData.status !== 'Pending' && infoData.status !== 'Rejected' \">{{\n infoData.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK21DEC24 to add Approval status in side screen-->\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_STATUS' | customTranslate : 'Approval Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.leaveStatus === 'Approved' || infoData.leaveStatus === 'Pending' || infoData.leaveStatus === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.leaveStatus === 'Approved', \n 'bg-warning': infoData.leaveStatus === 'Pending',\n 'bg-danger': infoData.leaveStatus === 'Rejected'}\">\n {{ infoData.leaveStatus || '' }}</span>\n <span\n *ngIf=\"infoData.leaveStatus !== 'Approved' && infoData.leaveStatus !== 'Pending' && infoData.leaveStatus !== 'Rejected'\">{{\n infoData.leaveStatus || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.REASON' | customTranslate : 'Reason'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.reason || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.TYPE' | customTranslate : 'Type'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.type || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPLIED_ON' | customTranslate : 'Applied On'}}:</div>\n <div class=\"col-6 text-start\">{{ (infoData.appliedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVED_COUNT' | customTranslate : 'Approved Count'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.approvedCount || '' }}</div>\n </div>\n </div>\n </div>\n <!-- Approval Managers -->\n <!-- SK03DEC24 show approval managers list only if applicable -->\n <h3 *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"text-center mb-3\">\n {{'APP.APPROVAL_MANAGERS' | customTranslate : 'Approval Managers'}}</h3>\n <ul *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"list-group\">\n <li *ngFor=\"let manager of infoData.approvalManagers\" class=\"list-group-item\">\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_ID' | customTranslate : 'Employee ID'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.employeeId || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK10DEC24 to show manager name -->\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_NAME' | customTranslate : 'Employee Name'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.name || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_ORDER' | customTranslate : 'Approval Order'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.approvalOrder || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span *ngIf=\"manager.status === 'Approved' || manager.status === 'Pending' || manager.status === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': manager.status === 'Approved', \n 'bg-warning': manager.status === 'Pending',\n 'bg-danger': manager.status === 'Rejected'}\">\n {{ manager.status || '' }}\n </span>\n <span\n *ngIf=\"manager.status !== 'Approved' && manager.status !== 'Pending' && manager.status !== 'Rejected'\"> {{\n manager.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\" *ngIf=\"manager.viewedOn\">\n <div class=\"col-6 text-start\">{{'APP.VIEWED_ON' | customTranslate : 'Viewed On'}}:</div>\n <div class=\"col-6 text-start\">{{ (manager.viewedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.IS_OPTIONAL' | customTranslate : 'Is Optional'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.isOptional ? \"Yes\" : \"No\" }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.COMMENTS' | customTranslate : 'Comments'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.rejectionReason || '' }}</div>\n </div>\n </li>\n </ul>\n </div>\n</app-common-screen>\n\n",
|
|
5595
|
+
template: "<div class=\"table-layout\" [id]=\"tableId\" style=\"padding-top: 1px;\">\n <div>\n <!-- SK30JAN25 title added -->\n <div class=\"d-flex justify-content-center table-title align-text-center\">\n {{title}}\n </div>\n \n <div class=\"flex justify-content-between\" style=\"padding-bottom: 5px;\">\n <div class=\"d-flex align-items-center\">\n <!-- MR 09NOV26 table-toolbar-left projection slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n\n <div *ngIf=\"dateDropdown \">\n <app-drop-down class=\"field-input\" [lists]='dropdownLists' dropDownHeight=\"38px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dropdownEmitFunction($event)\" [selectedData]=\"dropdownSelectedData\"></app-drop-down>\n </div>\n <!-- SC11NOV2025 if isDatePicker is true then show the date picker -->\n <div *ngIf=\"isDatePicker\">\n <!-- MR 16NOV26 Semantic text token replacing hardcoded hex -->\n <app-drop-down [lists]='list' [selectedData]=\"selectedData\" dropDownHeight=\"42px\" dropFontWeight=\"500\"\n dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\" dropBorderRadius=\"5px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dateFilter($event)\"></app-drop-down>\n </div>\n </div>\n <!-- SKS24JAN25 show Nos in table -->\n <!-- <div style=\"display: flex; align-items: center;\">\n <p *ngIf=\"totalRecords || totalCount\" style=\"font-weight: var(--fw-500); margin-right: 5px; margin-bottom: 0px;\">{{'APP.NOS' | customTranslate : 'Nos'}} </p> <span style=\"color: var(--fc-primary-color, rgb(43, 87, 249));\">{{totalRecords || totalCount}}</span>\n </div> -->\n <!-- SKS24JAN25 search bar config and nonconfig -->\n <div style=\"margin-left:auto;\">\n <div class=\"flex\" style=\"align-items: center;\">\n <!-- MR 09NOV26 table-toolbar-right projection slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n\n <div class=\"search\">\n <div class=\"search-bar\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n <input type=\"text\" placeholder=\"{{ 'APP.SEARCH' | customTranslate : 'Search' }}\" matInput\n (keyup)=\"searchConfigs ? emptySearch($event) : applyFilter($event)\"\n [value]=\" (searchConfigs || searchTextValue) ? searchBoxValue || '' : '' \" #input\n style=\"font-size: 13px !important;\">\n <img *ngIf=\"searchConfigs && searchBar\" (click)=\"onSearch(input.value)\"\n src=\"../assets/images/icons/general/configSearch.svg\" class=\"configSearch\">\n </div>\n </div>\n\n <!-- MR 09NOV26 Single toolbar button support from second-data-table -->\n <div class=\"flex\" *ngIf=\"button\">\n <app-fusion-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event, button)\"\n [buttonType]=\"button?.class || button?.buttonType\" [buttonValue]=\"button?.namePath || button?.labelPath || button?.name | customTranslate : button?.label || button?.name\"\n [buttonConfig]=\"button?.buttonConfig\" [type]=\"button?.type\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc || button?.fcBtnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\n\n <!-- SKS24JAN25 single, group and dropdown dynamic buttons -->\n <div class=\"flex\" *ngIf=\"isButtons\" style=\"padding-left: 7px;\">\n <div class=\"flex\" *ngFor=\"let button of buttonArray\">\n <!-- MR 16NOV26 Clean semantic variant identifier for Export action -->\n <app-fusion-button class=\"data-table-fsbtn\" [buttonDisable]=\"button.buttonDisable\"\n [buttonLoadingSpinner]=\"buttonLoadingSpinner\" (buttonClickEmit)=\"commonButtonClick($event,button)\"\n [buttonType]=\"button.buttonType || (button.label === 'Export' ? 'secondary' : button.class || 'primary')\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\"\n [buttonConfig]=\"button.buttonConfig\" [type]=\"button.type\" class=\"ms-2 me-2\"\n [fcBtnIconLeftSrc]=\"button.label === 'Export' ? '../assets/images/icons/general/upload-icon.svg' : button.fcBtnIconLeftSrc\" [isImageSvg]=\"button.label === 'Export' ? true : button.isImageSvg\">\n <!--SKS25OCT24 If the value is 'Import' or 'Export', this button does not work-->\n </app-fusion-button>\n </div>\n </div>\n \n </div>\n\n <!-- SK23FEB24 for adding new record in table -->\n <div class=\"flex cursor-pointer\" *ngIf=\"addInlineRecord\" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <!-- MR 30OCT26 Refactor inline html template styling to theme tokens -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fb-text-primary, #0f172a) !important;\"></i>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\" cdkScrollable> <!-- SKS3FEB25 The search filter closes when scrolling the table-->\n <!-- MSM28JAN25 MR 09NOV26 skeleton loader condition using isTableLoading --> \n <ng-container *ngIf=\"!isTableLoading; else loadingTemplate\">\n <table mat-table [dataSource]=\"dataSource || []\" [ngStyle]=\"{ width: tableWidth }\" matSort>\n <!-- Checkbox Columns -->\n <ng-container [sticky]=\"true\" class=\"checkboxCol\" *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\" style=\"border-left: 1px solid var(--fb-border-default, #e2e8f0);\">\n <input type=\"checkbox\" (click)=\"$event.stopPropagation()\" (change)=\"masterToggle()\"\n [checked]=\"selection?.hasValue()\" [indeterminate]=\"selection?.hasValue() && !isAllSelected()\"\n class=\"custom-checkbox\" />\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n <!-- SK18OCT24 check payroll Inprogress/Completed from backend data -->\n <input type=\"checkbox\" class=\"custom-checkbox\"\n [title]=\"(fromWhere === 'payrollTable' || fromWhere === 'paySlip') ? (row?.payProcessComment || '') : ''\"\n (click)=\"$event.stopPropagation()\" (change)=\"separateRowSelect(row)\"\n [checked]=\"selection.isSelected(row)\"\n [disabled]=\"(fromWhere === 'payrollTable' && row.isPayProcessed === true) || (fromWhere === 'paySlip' && row.isPayProcessed === false)\" />\n </td>\n <td mat-footer-cell *matFooterCellDef>\n {{ \"\" }}\n </td>\n </ng-container>\n\n <!-- data Columns -->\n <!-- set the matColumnDef attribute to the column name and use interpolation to dynamically generate the mat-header-cell and mat-cell elements based on the column name-->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [stickyEnd]=\"i === (stickyCondition - 1) ? true : false\" [sticky]=\"stickyColumns.includes(column)\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header\n style=\"border-right: 1px solid var(--fb-border-default, #e2e8f0);\" class=\"head-color ms-2 ps-2 pe-2\" \n [ngClass]=\"{'sticky-column': i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column)),'active-column': activeColumn === column,'first-header-border': i === 0}\"\n (click)=\"$event.stopPropagation(); onColumnClick(column)\">\n <span [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">{{\n (\n translatePath && translatePath[displayedColumns.indexOf(column)]\n ? translatePath[displayedColumns.indexOf(column)]\n : headerLabels[displayedColumns.indexOf(column)]\n )\n | customTranslate : headerLabels[displayedColumns.indexOf(column)]\n }}\n </span>\n <div (click)=\"$event.stopPropagation()\" class=\"position-relative\" cdk-overlay-origin\n #trigger=\"cdkOverlayOrigin\">\n <img class=\"ms-1\" *ngIf=\"filterColumns.includes(column)\" style=\"margin-bottom: 2px;\"\n (click)=\"filter(column)\" src=\"../assets/images/icons/general/filter-icon.svg\">\n </div>\n <ng-template cdk-connected-overlay [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"searchFilter === true && column === selectedFilter\"\n [cdkConnectedOverlayScrollStrategy]=\"createScrollStrategy()\"\n (overlayOutsideClick)=\"searchFilter = false\" (detach)=\"searchFilter = false\">\n <app-search-filter class=\"search-component position-absolute\"\n [class]=\"searchFilter === true && column === selectedFilter ? 'd-block' : 'd-none'\"\n [filterItems]=\"filterArray\" (emitValues)=\"filteredData($event)\" (click)=\"$event.stopPropagation()\">\n </app-search-filter>\n </ng-template>\n </th>\n <ng-container *ngIf=\"dataSource.data.length > 0\">\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color ps-2 pe-2\" *matCellDef=\"let element; let j = index\"\n [class.active-column]=\"activeColumn === column\"\n [class.sticky-column]=\"i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column))\">\n <!-- SK29OCT25 employee detail column -->\n <div *ngIf=\"column === 'employeeDetail'\">\n <div class=\"d-flex flex-row\" style=\"left:0;\">\n <div *ngIf=\"element['employeeName'] || element['name']\"\n [class]=\"hyperLinkColumns.includes(column) ? 'hyper-link' : '' \"\n style=\"font-size: var(--fs-small);color: var(--fb-text-primary, #0f172a);font-weight: var(--fw-600);\">\n {{element[\"employeeName\"] || element[\"name\"] || ''}}</div>\n <div *ngIf=\"element['employeeId']\"\n style=\"font-size: 11px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-400);\" class=\"ms-1\">\n [{{element[\"employeeId\"] || ''}}]</div>\n </div>\n <div class=\"d-flex flex-row\" *ngIf=\"element['designation'] && element['designation'] !== ''\">\n <div style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"designation\"] || ''}}\n </div>\n <div *ngIf=\"element['designation'] && element['designation'] !== '' && element['location'] && element['location'] !== ''\"\n style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">,</div>\n <div *ngIf=\"element['location'] && element['location'] !== ''\" style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"location\"] || ''}}\n </div>\n </div>\n </div>\n <div *ngIf=\"column !== 'combinedColumn' && column !== 'employeeDetail' && fromWhere !== 'leaveMaster' && (column !== 'active' && (fromWhere === 'hrmTaxComponent' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrm' || fromWhere === 'compensation'|| fromWhere === 'payrollTable'|| fromWhere === 'payrollCompare'|| fromWhere === 'paySlip' || fromWhere === 'approval' || fromWhere === 'leave' || fromWhere === 'expense' || fromWhere === 'expenseApproval' || fromWhere === 'leaveAllocation' ||fromWhere === 'parkingApp' ||(fromWhere === 'common' && column != 'signature')))\">\n <!-- SK10APR24 getting the table values using pipe instead of function to increase performance-->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('') \">\n <span class=\"font-size-13 {{checkHyperlinkCheck(column) || fromWhere === 'hrm' || fromWhere === 'compensation' || fromWhere === 'parkingApp' ? ' hyper-link clickable ' : ''}} {{fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' }}\"\n *ngIf=\"hyperLinkColumns.includes(column) || isFirstCell(column)\"\n (click)=\"tableClick(element); onClickHyperlink(column,element, j, checkHyperlinkCheck(column))\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!-- MR 30NOV26 Shared user/userTag avatar chip cell -->\n <ng-container *ngIf=\"isUserColumn(column)\">\n <app-user-chip\n [value]=\"element[column]\"\n [userLookupMap]=\"userLookupMap\"\n [maxVisible]=\"getUserColumnMaxVisible(column)\">\n </app-user-chip>\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column) && !isUserColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </span>\n <div *ngIf=\"!isFirstCell(column) && !editColumn.includes(column) && column != 'receipt'\"\n [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">\n <div *ngIf=\"!checkHyperlinkCheck(column)\" class=\"font-size-13\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!-- MR 30NOV26 Shared user/userTag avatar chip cell -->\n <ng-container *ngIf=\"isUserColumn(column)\">\n <app-user-chip\n [value]=\"element[column]\"\n [userLookupMap]=\"userLookupMap\"\n [maxVisible]=\"getUserColumnMaxVisible(column)\">\n </app-user-chip>\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column) && !isUserColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </div>\n </div>\n </div>\n <!-- SK27FEB24 added input box for inline edit input-->\n <div *ngIf=\"editColumn.length > 0\">\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('string') \" class=\"on-edit d-flex\">\n <input #editColElement class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \"\n matInput [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n </div>\n <!-- SK10APR24 In table, like text input, added drop down and time inputs as well -->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('object') \" class=\"on-edit d-flex\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('text') \" #editColElement\n class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('time') \" type=\"time\"\n class=\"lop-input table-width\" matInput [class]=\"element?.editRow ? 'input-box' : '' \"\n placeholder=\"HH:mm:ss\" [(ngModel)]=\"element[column]\"\n [disabled]=\"element?.editRow ? false : true\" />\n <div *ngIf=\" ('-' | editColumnType: column : editColumn) === ('dropdown') \">\n <select type=\"dropdown\" *ngIf=\"element?.editRow\" class=\"lop-input table-width\" matInput\n [class]=\"element?.editRow ? 'input-box' : '' \" [(ngModel)]=\"element[column]\">\n <option [disabled]=\"element?.editRow ? false : true\"\n *ngFor=\"let data of [] | editColumnDropdown: column : editColumn \"\n [value]=\"data.value || data.name\">{{data.name}}</option>\n </select>\n <input *ngIf=\"!element?.editRow\" #editColElement class=\"lop-input table-width\"\n [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"true\">\n </div>\n\n </div>\n </div>\n <app-popover\n *ngIf=\"column === 'receipt' && !editColumn.includes(column) && receiptImg == true && element[column] && element[column].length != 0\"\n [isBootstrap]=\"false\" [dynamicPopover]=\"'Popover string comes here'\">\n <div class=\"hover-base\">\n <img class=\"ms-1\" src=\"../../../assets/images/icons/general/file-attach.svg\">\n </div>\n <div class=\"hover-content\">\n <div class=\"expenseCon\">\n <div *ngFor=\"let data of element[column] || []\">\n <div class=\"cursor-pointer expense-file\" (click)=\"expenseAttachment(data,element)\">{{data?.name}}\n <!-- SK20FEB26 loader in expense list-->\n <svg *ngIf=\"data?.loader\"\n class=\"svg-spinner card-icon color\"\n width=\"22\" height=\"22\" viewBox=\"0 0 50 50\"\n style=\"cursor: wait;\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"4\"></circle>\n </svg>\n </div>\n </div>\n </div>\n </div>\n </app-popover>\n </div>\n <div *ngIf=\"fromWhere === 'leaveMaster' && column !== 'employeeDetail' \">\n <div [class]=\"(element[column]) === 'Week Off' ? 'weekoff-color' : '' \" class=\"font-size-13\">{{\n (column == 'default' || column == 'active' || column == 'paidLeave') ? '' : element[column] }}</div>\n <input *ngIf=\"(column === 'default' || column === 'active' || column === 'paidLeave')\"\n class=\"custom-checkbox\" [checked]=\"element[column] == true\" type=\"checkbox\" disabled>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'combinedColumn'\">\n <!-- for the Payroll Settings Component ( Side Screen Component )-->\n <!-- Since the last column is a combination of data and it is also conditional based on the paytype and calculation type we are using this div-->\n <!-- if Component type is Earnings and\n calculationType is 'flat' then output should be => \"'payType\": Flat, Amount of 'amount'\"\n calculationType is 'percentage' then output should be => \"'payType': 'amount' % of Basic \"\n calculationType is 'fixed' then output should be => \"'payType': 'calculationType'\" -->\n <!-- SK20JUN25 to display in table -->\n <ng-container *ngIf=\"\n element?.calculationType === 'flat' ||\n element?.calculationType === 'percentage' ||\n element?.calculationType === 'basicAndDA' ||\n element?.calculationType === 'fixed' ||\n element?.calculationType === 'ctc';\n else noCalculation\n \">\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE_FLAT_AMOUNT'\n | customTranslate : 'Variable: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED_FLAT_AMOUNT'\n | customTranslate : 'Fixed: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'fixed' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS'\n | customTranslate : '% of Gross'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'fixed' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS' |\n customTranslate : '% of Gross'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\"> {{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }} {{ element['amount'] }} {{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_FIXED_CTC' | customTranslate : '% of Fixed CTC'}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount'] }}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_VARIABLE_CTC' | customTranslate : '% of Variable CTC'}}</span>\n </ng-container>\n\n <ng-template #noCalculation>\n <span class=\"spanFontSize\">-</span>\n </ng-template>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'active'\">\n <div class=\"form-check form-switch\">\n <input class=\"custom-checkbox\" type=\"checkbox\" [checked]=\"(element != null && element['active'] === true) ? true : false\"\n (click)=\"element[column]=!element[column]; onToggleChange.emit(fromWhere === 'payrollSettingComponent' ? element : '')\">\n </div>\n </div>\n </td>\n </ng-container>\n <!-- SK16JUL24 to get the sum of column data -->\n <td class=\"ps-2 pe-2 \" mat-footer-cell *matFooterCellDef=\"let element; let j = index\">\n {{ '-' | totalColumSum: data : cumulativeDataColumns : column }}\n </td>\n </ng-container>\n <!-- action button Columns -->\n <!-- SK19MAR25 \"action\" key is changed to \"tableAction\" wherever used, since, it has duplicate error -->\n <ng-container [stickyEnd]=\"true\" *ngIf=\"actionButton || isDeleteRow || isEditRow\"\n matColumnDef=\"tableAction\">\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color action-size sticky-column actionCol text-center\" style=\"border-right: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));\">{{ actionColumHeader |\n customTranslate : 'Action'}}</th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let element; let i=index\" class=\"body-color sticky-column actionCol\">\n <!-- SKS25DEC24 clone button -->\n <div class=\"d-flex flex-row actionButton\"\n [style.justify-content]=\"conditionSendButton ? 'none' : 'center'\">\n <div *ngIf=\"(!conditionCloneButton) && cloneButton\" class=\"imgBtnDiv\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <div *ngIf=\"(conditionCloneButton) && isConditionMet(element, conditionCloneButton.conditions)\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <!-- SK20FEB26 Expense edit on Pending status -->\n <div *ngIf=\"element?.status === 'Rejected'|| fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow || (fromWhere == 'expense' && element?.status === 'Pending' )\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.COMMENTS' | customTranslate : 'comments' \"\n (buttonClickEmit)=\"onEdit(element?.rejectionReason, i, element?.status)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#rejectInfoModal\">\n </app-fusion-button>\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)) || (conditionEditButton && isConditionMet(element, conditionEditButton.conditions))\">\n <!-- MR 20NOV26 Standardize action column edit icon using fusion-icon font glyph \\e140 -->\n <i *ngIf=\"(!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i, element?.status)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n <i *ngIf=\"conditionEditButton && isConditionMet(element, conditionEditButton.conditions)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i)\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n </div>\n <!-- <img *ngIf=\"fromWhere == 'expense'\" (click)=\"delete(element?._id)\" src=\"../assets/images/icons/Vectordelete.svg\"> -->\n </div>\n <div *ngIf=\"element?.leaveStatus === 'New' || element?.status === 'New' || element?.status === 'Pending' || element?.leaveStatus === 'Pending' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || fromWhere == 'expenseApproval' || isDeleteRow\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.CANCEL' | customTranslate : 'Cancel'\" (buttonClickEmit)=\"delete(element, i)\"\n data-bs-toggle=\"modal\" data-bs-target=\"#cancelLeave\"></app-fusion-button>\n <!-- SKS21NOV24 Conditional rendering of delete icon based on various conditions -->\n <!-- Show the delete icon if 'conditionDeleteButton' is false and 'fromWhere' matches specific components or 'isDeleteRow' is true -->\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow) )|| (conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions))\">\n <img\n *ngIf=\"(!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow)\"\n class=\"imgBtn\" [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(fromWhere === 'payrollSettingComponent' || isDeleteRow ? element : element?._id, i)\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n <img *ngIf=\"conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions)\"\n [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(isDeleteRow ? element : element?._id, i)\" class=\"imgBtn\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n </div>\n <div *ngIf=\"fromWhere == 'approval' || fromWhere == 'expenseApproval'\" class=\"flex imgBtnDiv\">\n <img\n *ngIf=\"(fromWhere === 'expenseApproval' && element?.status === 'Approved'&& element?.reImbursed !== 'Reimbursed') || fromWhere == 'approval'\"\n class=\"approval-image me-2\" style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onApprove( element?.employeeId, element?._id, element?.reImbursed )\"\n src=\"../assets/images/icons/general/Approved.svg\">\n <img *ngIf=\"fromWhere !== 'expenseApproval'\" class=\"approval-image\"\n style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onReject( element?.employeeId, element?._id )\"\n src=\"../assets/images/icons/general/Declined.svg\" class=\"\" data-bs-toggle=\"modal\"\n data-bs-target=\"#approvalReject\">\n </div>\n </div>\n <!-- SK02APR24 added preview and download icons -->\n <div *ngIf=\"viewIcon\" class=\"ms-2 imgBtnDiv\">\n <!-- <img [src]=\"('post.svg' | svgIcon:'#000000') | async\" class=\"card-icon color\" title=\"preview\" (click)=\"viewIconClick(element)\" style=\"cursor: pointer;\" /> -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-eye nav-icon\" matTooltip=\"Preview\"\n matTooltipPosition=\"above\" style=\"color: var(--fc-text-color-light) !important; cursor: pointer;\"\n (click)=\"viewIconClick(element)\"></i>\n\n </div>\n <div *ngIf=\"downloadIcon\" class=\"ms-2 imgBtnDiv\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-download card-icon color imgBtn\"\n matTooltip=\"Download\" matTooltipPosition=\"above\"\n style=\"cursor: pointer; color: var(--fc-text-color-light) !important;\"\n (click)=\"downloadIconClick(element)\">\n </i>\n </div>\n <!-- SKS25DEC24 send button -->\n <div *ngIf=\"(!conditionSendButton) && sendButton\" class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <div\n *ngIf=\"(conditionSendButton) && isConditionMet(element, conditionSendButton.conditions) && sendButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <!-- SKS25DEC24 active button -->\n <div *ngIf=\"(!conditionActivateButton) && activeButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionActivateButton) && isConditionMet(element, conditionActivateButton.conditions) && activeButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <!-- SKS25DEC24 deactive button -->\n <div *ngIf=\"(!conditionDeactivateButton) && deactiveButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionDeactivateButton) && isConditionMet(element, conditionDeactivateButton.conditions) && deactiveButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n </div>\n <div>\n\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/downloadfile.svg'\"\n (buttonClickEmit)=\"downloadPdf(element)\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/pencil-icon.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#documentsInfoModal\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/Vectordelete.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#deleteDocModal\"></app-fusion-button>\n </div>\n </td>\n <td mat-footer-cell *matFooterCellDef=\"let element; let i=index\">{{ \"\" }}\n </td>\n </ng-container>\n\n <!-- total Row -->\n <ng-container [sticky]=\"true\" matColumnDef=\"total\">\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\">\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n </td>\n <!-- RS27AUG24 -->\n <!-- Used the translate pipe to successfully implement the translation -->\n <td mat-footer-cell *matFooterCellDef >{{'APP.TOTAL' | customTranslate : 'Total' }}\n </td>\n </ng-container>\n\n <!-- Render the columns -->\n <!-- SK16JUL24 adding the cumulative data row as footer -->\n <!-- <ng-container *ngIf=\"dataSource?.data?.length !== 0\"> -->\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);\"></tr>\n <!-- SK19JUL24 table total update -->\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null \">\n </tr>\n </div>\n <div *ngSwitchCase=\"'tableAction'\">\n <tr mat-header-row\n *matHeaderRowDef=\" displayedColumns ? displayedColumns.concat(['tableAction']) : [] ;sticky: true\">\n </tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumns ? displayedColumns.concat(['tableAction']) : []; \">\n </tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <!-- 30JAN24 for both checkbox and action columns-->\n <div *ngSwitchCase=\"'both'\">\n <tr mat-header-row\n *matHeaderRowDef=\"['select'].concat(displayedColumns).concat('tableAction') sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns).concat('tableAction')\"\n (click)=\"tableClick(row)\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row;let i =index; columns: displayedColumns;\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? 'd-block' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null\">\n </tr>\n </ng-container>\n </div>\n </div>\n <!-- </ng-container> -->\n <!-- <tr class=\"mat-row \" *matNoDataRow> -->\n <!-- SK9JAN24 Removed attr.colspan since it throws undefined error -->\n <!-- <td class=\"mat-cell \">\n {{'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </td>\n </tr> -->\n\n </table>\n <div class=\"no-data-cell text-center my-3 \" *ngIf=\"!dataSource || !dataSource.data || dataSource.data.length === 0\">\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </div>\n </ng-container>\n <!-- MSM28JAN25 skeleton loader template -->\n <ng-template #loadingTemplate>\n <table>\n <tr style=\"height: 40px;\" *ngFor=\"let _ of [1, 2, 3, 4,5,6]\">\n <td colspan=\"3\" class=\"skeleton-card\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </td>\n </tr>\n </table>\n </ng-template>\n </div>\n <!-- SK23FEB24 table input save button changes -->\n <div class=\"d-flex justify-content-end\">\n <div class=\"flex mt-4 me-2 cursor-pointer\" *ngIf=\"addInlineRecord \" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fc-text-color-dark, #000000) !important;\"></i>\n </div>\n </div>\n <!-- SK27FEB24 removed button disable logic, SK13MAR24 added another condition for button showing-->\n <!-- SR06JAN2025 button disable logic for not select any employee-->\n <div class=\"d-flex justify-content-between align-items-end\">\n <div class=\"px-2\">\n {{notes}}</div>\n\n <app-fusion-button [buttonLoadingSpinner]=\"tableSaveLoadingSpinner\"\n *ngIf=\"editColumn.length > 0 || tableSaveButton\" buttonType=\"btn btn-primary mt-4 me-2\"\n [buttonDisable]=\"selection?.selected?.length === 0\" (buttonClickEmit)=\"saveButton()\"\n buttonValue=\"{{ 'APP.SAVE' | customTranslate : 'Save' }}\"></app-fusion-button>\n </div>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar matching Image 1 -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n </app-pagination>\n </div>\n </div>\n</div>\n\n<!-- SK03OCT24 while clicking export button, side screen will be displayed, with fields selection and filter boxes -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"{{'APP.EXPORT_DATA' | customTranslate : '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 <i *ngIf=\"!exportButtonLoadingSpinner\" class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-upload card-icon color me-1\"></i>\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 displaying components from parent (multipleCheckBox/multipleFilter) -->\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\"\n [isDateFilter]=\"type?.isDateFilter || false\"\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<!-- SKS15DEC25 bulk upload -->\n<app-file-upload [id]=\"'uploadEmployee'\" [headerName]=\"moudleName\" [showFileModal]=\"uploadModal\"\n (closeEmit)=\"uploadModal = false\"\n [bodyHeaderName]=\"('APP.STEPS_TO_UPLOAD' | customTranslate : 'Steps to upload')+moudleName\" [isTemplate]=true\n [templateContent]=\"('APP.DOWNLOAD_THE' | customTranslate : 'Download the')+ moudleName +('APP.TEMPLATE' | customTranslate : 'template')\"\n (templateDownload)=\"downloadTemplate()\"\n [bodyContent]=\"[(('APP.FILL_THE_APPROP' | customTranslate : 'Fill the appropriate')+moudleName+('APP.DETAILS_AND_UPLOAD_ITS_BELOW' | customTranslate : 'Details and upload it below'))]\"\n [fileRestrictions]=\"{\n allowedTypes: ['.csv', '.xlsx', '.xls'],\n maxFileSize: 10,\n maxFiles: 1\n }\" [uploadedFiles]=\"[]\" [saveButtonName]=\"'APP.UPLOAD' | customTranslate : 'Upload'\"\n (upload)=\"uploadRecordsFile($event)\">\n</app-file-upload>\n<!-- SK06NOV24 alert on deleting record -->\n<div *ngIf=\"deleteModal\" class=\"modal modal-backdrop show d-block\" id=\"deleteRecord\" tabindex=\"-1\"\n aria-labelledby=\"deleteRecordLabel\" [attr.aria-hidden]=\"!deleteModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"deleteRecordLabel\">{{'APP.DELETE_RECORD' | customTranslate : 'Delete Record'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"deleteModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC' | customTranslate : 'Are you sure want to delete the record'}} ?\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 ? deleteRecordData() : null\">\n <!-- SK04SEP25 button loader -->\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\" (click)=\"deleteModal = false\">{{'APP.NO'\n | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n\n<app-common-screen *ngIf=\"infoSidescreen\" [headerTitle]=\"'APP.APPROVAL_DETAILS' | customTranslate : 'Approval Details'\"\n (sideScreenEmittedEvent)=\"infoSidescreen = false\">\n <div class=\"side-main-content container\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <!-- Approval Info -->\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.NAME' | customTranslate : 'Name'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.name || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.status === 'Approved' || infoData.status === 'Pending' || infoData.status === 'Rejected' \"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.status === 'Approved', \n 'bg-warning': infoData.status === 'Pending',\n 'bg-danger': infoData.status === 'Rejected'}\">\n {{ infoData.status }}</span>\n <span\n *ngIf=\"infoData.status !== 'Approved' && infoData.status !== 'Pending' && infoData.status !== 'Rejected' \">{{\n infoData.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK21DEC24 to add Approval status in side screen-->\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_STATUS' | customTranslate : 'Approval Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.leaveStatus === 'Approved' || infoData.leaveStatus === 'Pending' || infoData.leaveStatus === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.leaveStatus === 'Approved', \n 'bg-warning': infoData.leaveStatus === 'Pending',\n 'bg-danger': infoData.leaveStatus === 'Rejected'}\">\n {{ infoData.leaveStatus || '' }}</span>\n <span\n *ngIf=\"infoData.leaveStatus !== 'Approved' && infoData.leaveStatus !== 'Pending' && infoData.leaveStatus !== 'Rejected'\">{{\n infoData.leaveStatus || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.REASON' | customTranslate : 'Reason'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.reason || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.TYPE' | customTranslate : 'Type'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.type || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPLIED_ON' | customTranslate : 'Applied On'}}:</div>\n <div class=\"col-6 text-start\">{{ (infoData.appliedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVED_COUNT' | customTranslate : 'Approved Count'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.approvedCount || '' }}</div>\n </div>\n </div>\n </div>\n <!-- Approval Managers -->\n <!-- SK03DEC24 show approval managers list only if applicable -->\n <h3 *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"text-center mb-3\">\n {{'APP.APPROVAL_MANAGERS' | customTranslate : 'Approval Managers'}}</h3>\n <ul *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"list-group\">\n <li *ngFor=\"let manager of infoData.approvalManagers\" class=\"list-group-item\">\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_ID' | customTranslate : 'Employee ID'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.employeeId || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK10DEC24 to show manager name -->\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_NAME' | customTranslate : 'Employee Name'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.name || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_ORDER' | customTranslate : 'Approval Order'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.approvalOrder || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span *ngIf=\"manager.status === 'Approved' || manager.status === 'Pending' || manager.status === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': manager.status === 'Approved', \n 'bg-warning': manager.status === 'Pending',\n 'bg-danger': manager.status === 'Rejected'}\">\n {{ manager.status || '' }}\n </span>\n <span\n *ngIf=\"manager.status !== 'Approved' && manager.status !== 'Pending' && manager.status !== 'Rejected'\"> {{\n manager.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\" *ngIf=\"manager.viewedOn\">\n <div class=\"col-6 text-start\">{{'APP.VIEWED_ON' | customTranslate : 'Viewed On'}}:</div>\n <div class=\"col-6 text-start\">{{ (manager.viewedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.IS_OPTIONAL' | customTranslate : 'Is Optional'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.isOptional ? \"Yes\" : \"No\" }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.COMMENTS' | customTranslate : 'Comments'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.rejectionReason || '' }}</div>\n </div>\n </li>\n </ul>\n </div>\n</app-common-screen>\n\n",
|
|
5331
5596
|
styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{border-top:1px solid var(--fb-border-default, #e2e8f0);min-height:100px;overflow:auto;width:100%;max-height:62vh}.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-medium);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color,tr.mat-header-row,.mat-mdc-header-row{background:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-primary, #0f172a)!important;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;align-items:center}.search .search-bar{background-color:var(--fb-input-bg, #ffffff);border:1px solid var(--fb-input-border, #cbd5e1);border-radius:var(--radius-small, 6px);display:flex;align-items:center;padding:2px 8px;width:100%;gap:6px}.search .search-bar input{background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;width:100%;font-size:13px;color:var(--fb-text-primary, #0f172a);padding:2px 4px}.search .search-bar input::placeholder{color:var(--fb-placeholder-text, #94a3b8)}th.mat-header-cell:last-of-type{padding:0;font-weight:var(--fw-600);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}td.mat-cell:last-of-type{padding:8px;font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.table-title{font-weight:var(--fw-600);color:var(--fb-text-primary, #0f172a)}.sticky-column,td.actionCol{background-color:var(--fb-surface, #ffffff)}th.sticky-column,th.actionCol{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{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-radius:5px;color:var(--fb-text-primary, #0f172a);background-color:var(--fb-surface, #ffffff);font-weight:var(--fw-400);font-size:var(--fs-medium);transition:all .2s}::ng-deep [dir=rtl] .body-color img{margin-left:4px!important}@media screen and (min-width:600px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}}@media screen and (max-width:882px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.mat-cell{padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-header-cell{padding:0}}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}.expense-file{font-size:var(--fs-small)}.expense-file:hover{font-style:italic;text-decoration:underline;color:var(--fb-action-hover, #00284d)}.expenseCon{background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);padding:5px;border-radius:3px}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline}.clickable{cursor:pointer}.font-size-13{font-size:var(--fs-normal)}.weekoff-color{color:var(--fb-error, #ef4444)}.table-width{width:max-content}.on-edit:hover .edit-icon{visibility:visible}.edit-icon{visibility:hidden}.input-box{border:solid}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.delete-icon{justify-content:center}.side-main-content{border-radius:10px}h2{font-size:28px}.list-group-item{margin-bottom:10px;padding:15px}.list-group-item p{margin-bottom:5px}.custom-badge{display:inline-block;width:50%;text-align:center;padding:.3em 0;margin-top:0!important}.bg-success{--bs-bg-opacity: 1;background-color:var(--fb-success-surface, #e6f4ea)!important;color:var(--fb-success-text, #137333)!important}.custom-search-button{background-color:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff);border-radius:5px;font-size:var(--fs-normal);border:none}.custom-search-button:hover{background-color:var(--fb-action-hover, #00284d)}.custom-search-button:active{transform:translateY(0)}.table{border-top:1px solid var(--fb-border-default, #e2e8f0)}th,td{vertical-align:middle}.configSearch{height:22px;padding:3px;margin:10p;background-color:var(--fb-action, #003566);border-radius:4px}::ng-deep .table>:not(caption)>*>*{background-color:none!important;--bs-table-bg: var(--fb-surface, #ffffff) !important}@font-face{font-display:swap;font-family:fusion-icon;font-style:normal;font-weight:400;src:url(https://icons.valarhr.com/fonts/fusion-icon.woff2) format(\"woff2\"),url(https://icons.valarhr.com/fonts/fusion-icon.woff) format(\"woff\"),url(https://icons.valarhr.com/fonts/fusion-icon.ttf) format(\"truetype\")}.fusion-icon{display:inline-block;font-family:fusion-icon!important;font-weight:400;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.fusion-icon-edit_pencil:before,.fusion-icon-edit:before{content:\"\\e140\"}.imgBtn{background-color:var(--fb-surface-secondary, #f8fafc);border-radius:var(--radius-small, 6px);width:15px;height:15px;object-fit:contain}.imgBtnDiv{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;line-height:0px;padding:4px;border-radius:5px;border:1px solid var(--fb-border-default, #e2e8f0)}input::placeholder{font-size:var(--fs-small);font-weight:var(--fw-400);color:var(--fb-placeholder-text, #94a3b8)}::ng-deep .modal-backdrop{background-color:var(--fb-backdrop, #00000073)!important}::ng-deep .modal-backdrop.show{background-color:var(--fb-backdrop, #00000073)!important;opacity:1!important}::ng-deep .mat-sort-header-container .mat-sort-header-content span{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}::ng-deep .mat-mdc-cell{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-400)!important;font-size:var(--fs-primary)!important;min-width:20px!important}.active-column{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}.hover-content{background:var(--fb-surface-elevated, #ffffff)}.position-relative{position:relative;display:inline-block}.filter-popup{position:absolute;top:100%;left:0;z-index:9998;background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .08));padding:10px;min-width:200px}.spanFontSize{font-size:var(--fs-normal)}.mat-column-employees{width:200px;min-width:200px;padding-left:8px;height:57px;left:0!important}.text-start{font-size:var(--fs-normal)}.first-header-border{border-left:1px solid var(--fb-border-default, #e2e8f0)}tr{height:45px!important;text-wrap:nowrap!important}.field-input{width:min(220px,98%);min-height:50px}.svg-spinner{animation:rotate 1s linear infinite}.svg-spinner .path{stroke:var(--fb-action, #003566);stroke-linecap:round;stroke-dasharray:80 150;stroke-width:4}@keyframes rotate{to{transform:rotate(360deg)}}img{max-width:none!important;vertical-align:middle}::ng-deep .mat-mdc-row:hover,::ng-deep .mat-row:hover{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n),::ng-deep .mat-row:nth-child(2n){background-color:var(--fb-row-alternate, #fcfdfe)}::ng-deep .mat-mdc-row:hover td.sticky-column,::ng-deep .mat-row:hover td.sticky-column,::ng-deep .mat-mdc-row:hover td.actionCol,::ng-deep .mat-row:hover td.actionCol{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n) td.sticky-column,::ng-deep .mat-row:nth-child(2n) td.sticky-column,::ng-deep .mat-mdc-row:nth-child(2n) td.actionCol,::ng-deep .mat-row:nth-child(2n) td.actionCol{background-color:var(--fb-row-alternate, #fcfdfe)}\n"],
|
|
5332
5597
|
dependencies: [
|
|
5333
5598
|
{
|
|
@@ -5817,6 +6082,16 @@ var DataTableComponent = class DataTableComponent {
|
|
|
5817
6082
|
"multipleSelectDataEmit"
|
|
5818
6083
|
]
|
|
5819
6084
|
},
|
|
6085
|
+
{
|
|
6086
|
+
kind: "component",
|
|
6087
|
+
type: UserChipComponent,
|
|
6088
|
+
selector: "app-user-chip, fusion-user-chip",
|
|
6089
|
+
inputs: [
|
|
6090
|
+
"value",
|
|
6091
|
+
"userLookupMap",
|
|
6092
|
+
"maxVisible"
|
|
6093
|
+
]
|
|
6094
|
+
},
|
|
5820
6095
|
{
|
|
5821
6096
|
kind: "pipe",
|
|
5822
6097
|
type: i1$4.DatePipe,
|
|
@@ -5902,7 +6177,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5902
6177
|
CustomTimePipe,
|
|
5903
6178
|
OverlayModule,
|
|
5904
6179
|
PaginationComponent,
|
|
5905
|
-
DropDownComponent
|
|
6180
|
+
DropDownComponent,
|
|
6181
|
+
UserChipComponent
|
|
5906
6182
|
],
|
|
5907
6183
|
standalone: true,
|
|
5908
6184
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -5910,7 +6186,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5910
6186
|
provide: MatPaginatorIntl,
|
|
5911
6187
|
useClass: CustomPaginatorIntl
|
|
5912
6188
|
}],
|
|
5913
|
-
template: "<div class=\"table-layout\" [id]=\"tableId\" style=\"padding-top: 1px;\">\n <div>\n <!-- SK30JAN25 title added -->\n <div class=\"d-flex justify-content-center table-title align-text-center\">\n {{title}}\n </div>\n \n <div class=\"flex justify-content-between\" style=\"padding-bottom: 5px;\">\n <div class=\"d-flex align-items-center\">\n <!-- MR 09NOV26 table-toolbar-left projection slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n\n <div *ngIf=\"dateDropdown \">\n <app-drop-down class=\"field-input\" [lists]='dropdownLists' dropDownHeight=\"38px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dropdownEmitFunction($event)\" [selectedData]=\"dropdownSelectedData\"></app-drop-down>\n </div>\n <!-- SC11NOV2025 if isDatePicker is true then show the date picker -->\n <div *ngIf=\"isDatePicker\">\n <!-- MR 16NOV26 Semantic text token replacing hardcoded hex -->\n <app-drop-down [lists]='list' [selectedData]=\"selectedData\" dropDownHeight=\"42px\" dropFontWeight=\"500\"\n dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\" dropBorderRadius=\"5px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dateFilter($event)\"></app-drop-down>\n </div>\n </div>\n <!-- SKS24JAN25 show Nos in table -->\n <!-- <div style=\"display: flex; align-items: center;\">\n <p *ngIf=\"totalRecords || totalCount\" style=\"font-weight: var(--fw-500); margin-right: 5px; margin-bottom: 0px;\">{{'APP.NOS' | customTranslate : 'Nos'}} </p> <span style=\"color: var(--fc-primary-color, rgb(43, 87, 249));\">{{totalRecords || totalCount}}</span>\n </div> -->\n <!-- SKS24JAN25 search bar config and nonconfig -->\n <div style=\"margin-left:auto;\">\n <div class=\"flex\" style=\"align-items: center;\">\n <!-- MR 09NOV26 table-toolbar-right projection slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n\n <div class=\"search\">\n <div class=\"search-bar\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n <input type=\"text\" placeholder=\"{{ 'APP.SEARCH' | customTranslate : 'Search' }}\" matInput\n (keyup)=\"searchConfigs ? emptySearch($event) : applyFilter($event)\"\n [value]=\" (searchConfigs || searchTextValue) ? searchBoxValue || '' : '' \" #input\n style=\"font-size: 13px !important;\">\n <img *ngIf=\"searchConfigs && searchBar\" (click)=\"onSearch(input.value)\"\n src=\"../assets/images/icons/general/configSearch.svg\" class=\"configSearch\">\n </div>\n </div>\n\n <!-- MR 09NOV26 Single toolbar button support from second-data-table -->\n <div class=\"flex\" *ngIf=\"button\">\n <app-fusion-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event, button)\"\n [buttonType]=\"button?.class || button?.buttonType\" [buttonValue]=\"button?.namePath || button?.labelPath || button?.name | customTranslate : button?.label || button?.name\"\n [buttonConfig]=\"button?.buttonConfig\" [type]=\"button?.type\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc || button?.fcBtnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\n\n <!-- SKS24JAN25 single, group and dropdown dynamic buttons -->\n <div class=\"flex\" *ngIf=\"isButtons\" style=\"padding-left: 7px;\">\n <div class=\"flex\" *ngFor=\"let button of buttonArray\">\n <!-- MR 16NOV26 Clean semantic variant identifier for Export action -->\n <app-fusion-button class=\"data-table-fsbtn\" [buttonDisable]=\"button.buttonDisable\"\n [buttonLoadingSpinner]=\"buttonLoadingSpinner\" (buttonClickEmit)=\"commonButtonClick($event,button)\"\n [buttonType]=\"button.buttonType || (button.label === 'Export' ? 'secondary' : button.class || 'primary')\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\"\n [buttonConfig]=\"button.buttonConfig\" [type]=\"button.type\" class=\"ms-2 me-2\"\n [fcBtnIconLeftSrc]=\"button.label === 'Export' ? '../assets/images/icons/general/upload-icon.svg' : button.fcBtnIconLeftSrc\" [isImageSvg]=\"button.label === 'Export' ? true : button.isImageSvg\">\n <!--SKS25OCT24 If the value is 'Import' or 'Export', this button does not work-->\n </app-fusion-button>\n </div>\n </div>\n \n </div>\n\n <!-- SK23FEB24 for adding new record in table -->\n <div class=\"flex cursor-pointer\" *ngIf=\"addInlineRecord\" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <!-- MR 30OCT26 Refactor inline html template styling to theme tokens -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fb-text-primary, #0f172a) !important;\"></i>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\" cdkScrollable> <!-- SKS3FEB25 The search filter closes when scrolling the table-->\n <!-- MSM28JAN25 MR 09NOV26 skeleton loader condition using isTableLoading --> \n <ng-container *ngIf=\"!isTableLoading; else loadingTemplate\">\n <table mat-table [dataSource]=\"dataSource || []\" [ngStyle]=\"{ width: tableWidth }\" matSort>\n <!-- Checkbox Columns -->\n <ng-container [sticky]=\"true\" class=\"checkboxCol\" *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\" style=\"border-left: 1px solid var(--fb-border-default, #e2e8f0);\">\n <input type=\"checkbox\" (click)=\"$event.stopPropagation()\" (change)=\"masterToggle()\"\n [checked]=\"selection?.hasValue()\" [indeterminate]=\"selection?.hasValue() && !isAllSelected()\"\n class=\"custom-checkbox\" />\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n <!-- SK18OCT24 check payroll Inprogress/Completed from backend data -->\n <input type=\"checkbox\" class=\"custom-checkbox\"\n [title]=\"(fromWhere === 'payrollTable' || fromWhere === 'paySlip') ? (row?.payProcessComment || '') : ''\"\n (click)=\"$event.stopPropagation()\" (change)=\"separateRowSelect(row)\"\n [checked]=\"selection.isSelected(row)\"\n [disabled]=\"(fromWhere === 'payrollTable' && row.isPayProcessed === true) || (fromWhere === 'paySlip' && row.isPayProcessed === false)\" />\n </td>\n <td mat-footer-cell *matFooterCellDef>\n {{ \"\" }}\n </td>\n </ng-container>\n\n <!-- data Columns -->\n <!-- set the matColumnDef attribute to the column name and use interpolation to dynamically generate the mat-header-cell and mat-cell elements based on the column name-->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [stickyEnd]=\"i === (stickyCondition - 1) ? true : false\" [sticky]=\"stickyColumns.includes(column)\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header\n style=\"border-right: 1px solid var(--fb-border-default, #e2e8f0);\" class=\"head-color ms-2 ps-2 pe-2\" \n [ngClass]=\"{'sticky-column': i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column)),'active-column': activeColumn === column,'first-header-border': i === 0}\"\n (click)=\"$event.stopPropagation(); onColumnClick(column)\">\n <span [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">{{\n (\n translatePath && translatePath[displayedColumns.indexOf(column)]\n ? translatePath[displayedColumns.indexOf(column)]\n : headerLabels[displayedColumns.indexOf(column)]\n )\n | customTranslate : headerLabels[displayedColumns.indexOf(column)]\n }}\n </span>\n <div (click)=\"$event.stopPropagation()\" class=\"position-relative\" cdk-overlay-origin\n #trigger=\"cdkOverlayOrigin\">\n <img class=\"ms-1\" *ngIf=\"filterColumns.includes(column)\" style=\"margin-bottom: 2px;\"\n (click)=\"filter(column)\" src=\"../assets/images/icons/general/filter-icon.svg\">\n </div>\n <ng-template cdk-connected-overlay [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"searchFilter === true && column === selectedFilter\"\n [cdkConnectedOverlayScrollStrategy]=\"createScrollStrategy()\"\n (overlayOutsideClick)=\"searchFilter = false\" (detach)=\"searchFilter = false\">\n <app-search-filter class=\"search-component position-absolute\"\n [class]=\"searchFilter === true && column === selectedFilter ? 'd-block' : 'd-none'\"\n [filterItems]=\"filterArray\" (emitValues)=\"filteredData($event)\" (click)=\"$event.stopPropagation()\">\n </app-search-filter>\n </ng-template>\n </th>\n <ng-container *ngIf=\"dataSource.data.length > 0\">\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color ps-2 pe-2\" *matCellDef=\"let element; let j = index\"\n [class.active-column]=\"activeColumn === column\"\n [class.sticky-column]=\"i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column))\">\n <!-- SK29OCT25 employee detail column -->\n <div *ngIf=\"column === 'employeeDetail'\">\n <div class=\"d-flex flex-row\" style=\"left:0;\">\n <div *ngIf=\"element['employeeName'] || element['name']\"\n [class]=\"hyperLinkColumns.includes(column) ? 'hyper-link' : '' \"\n style=\"font-size: var(--fs-small);color: var(--fb-text-primary, #0f172a);font-weight: var(--fw-600);\">\n {{element[\"employeeName\"] || element[\"name\"] || ''}}</div>\n <div *ngIf=\"element['employeeId']\"\n style=\"font-size: 11px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-400);\" class=\"ms-1\">\n [{{element[\"employeeId\"] || ''}}]</div>\n </div>\n <div class=\"d-flex flex-row\" *ngIf=\"element['designation'] && element['designation'] !== ''\">\n <div style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"designation\"] || ''}}\n </div>\n <div *ngIf=\"element['designation'] && element['designation'] !== '' && element['location'] && element['location'] !== ''\"\n style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">,</div>\n <div *ngIf=\"element['location'] && element['location'] !== ''\" style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"location\"] || ''}}\n </div>\n </div>\n </div>\n <div *ngIf=\"column !== 'combinedColumn' && column !== 'employeeDetail' && fromWhere !== 'leaveMaster' && (column !== 'active' && (fromWhere === 'hrmTaxComponent' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrm' || fromWhere === 'compensation'|| fromWhere === 'payrollTable'|| fromWhere === 'payrollCompare'|| fromWhere === 'paySlip' || fromWhere === 'approval' || fromWhere === 'leave' || fromWhere === 'expense' || fromWhere === 'expenseApproval' || fromWhere === 'leaveAllocation' ||fromWhere === 'parkingApp' ||(fromWhere === 'common' && column != 'signature')))\">\n <!-- SK10APR24 getting the table values using pipe instead of function to increase performance-->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('') \">\n <span class=\"font-size-13 {{checkHyperlinkCheck(column) || fromWhere === 'hrm' || fromWhere === 'compensation' || fromWhere === 'parkingApp' ? ' hyper-link clickable ' : ''}} {{fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' }}\"\n *ngIf=\"hyperLinkColumns.includes(column) || isFirstCell(column)\"\n (click)=\"tableClick(element); onClickHyperlink(column,element, j, checkHyperlinkCheck(column))\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </span>\n <div *ngIf=\"!isFirstCell(column) && !editColumn.includes(column) && column != 'receipt'\"\n [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">\n <div *ngIf=\"!checkHyperlinkCheck(column)\" class=\"font-size-13\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </div>\n </div>\n </div>\n <!-- SK27FEB24 added input box for inline edit input-->\n <div *ngIf=\"editColumn.length > 0\">\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('string') \" class=\"on-edit d-flex\">\n <input #editColElement class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \"\n matInput [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n </div>\n <!-- SK10APR24 In table, like text input, added drop down and time inputs as well -->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('object') \" class=\"on-edit d-flex\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('text') \" #editColElement\n class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('time') \" type=\"time\"\n class=\"lop-input table-width\" matInput [class]=\"element?.editRow ? 'input-box' : '' \"\n placeholder=\"HH:mm:ss\" [(ngModel)]=\"element[column]\"\n [disabled]=\"element?.editRow ? false : true\" />\n <div *ngIf=\" ('-' | editColumnType: column : editColumn) === ('dropdown') \">\n <select type=\"dropdown\" *ngIf=\"element?.editRow\" class=\"lop-input table-width\" matInput\n [class]=\"element?.editRow ? 'input-box' : '' \" [(ngModel)]=\"element[column]\">\n <option [disabled]=\"element?.editRow ? false : true\"\n *ngFor=\"let data of [] | editColumnDropdown: column : editColumn \"\n [value]=\"data.value || data.name\">{{data.name}}</option>\n </select>\n <input *ngIf=\"!element?.editRow\" #editColElement class=\"lop-input table-width\"\n [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"true\">\n </div>\n\n </div>\n </div>\n <app-popover\n *ngIf=\"column === 'receipt' && !editColumn.includes(column) && receiptImg == true && element[column] && element[column].length != 0\"\n [isBootstrap]=\"false\" [dynamicPopover]=\"'Popover string comes here'\">\n <div class=\"hover-base\">\n <img class=\"ms-1\" src=\"../../../assets/images/icons/general/file-attach.svg\">\n </div>\n <div class=\"hover-content\">\n <div class=\"expenseCon\">\n <div *ngFor=\"let data of element[column] || []\">\n <div class=\"cursor-pointer expense-file\" (click)=\"expenseAttachment(data,element)\">{{data?.name}}\n <!-- SK20FEB26 loader in expense list-->\n <svg *ngIf=\"data?.loader\"\n class=\"svg-spinner card-icon color\"\n width=\"22\" height=\"22\" viewBox=\"0 0 50 50\"\n style=\"cursor: wait;\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"4\"></circle>\n </svg>\n </div>\n </div>\n </div>\n </div>\n </app-popover>\n </div>\n <div *ngIf=\"fromWhere === 'leaveMaster' && column !== 'employeeDetail' \">\n <div [class]=\"(element[column]) === 'Week Off' ? 'weekoff-color' : '' \" class=\"font-size-13\">{{\n (column == 'default' || column == 'active' || column == 'paidLeave') ? '' : element[column] }}</div>\n <input *ngIf=\"(column === 'default' || column === 'active' || column === 'paidLeave')\"\n class=\"custom-checkbox\" [checked]=\"element[column] == true\" type=\"checkbox\" disabled>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'combinedColumn'\">\n <!-- for the Payroll Settings Component ( Side Screen Component )-->\n <!-- Since the last column is a combination of data and it is also conditional based on the paytype and calculation type we are using this div-->\n <!-- if Component type is Earnings and\n calculationType is 'flat' then output should be => \"'payType\": Flat, Amount of 'amount'\"\n calculationType is 'percentage' then output should be => \"'payType': 'amount' % of Basic \"\n calculationType is 'fixed' then output should be => \"'payType': 'calculationType'\" -->\n <!-- SK20JUN25 to display in table -->\n <ng-container *ngIf=\"\n element?.calculationType === 'flat' ||\n element?.calculationType === 'percentage' ||\n element?.calculationType === 'basicAndDA' ||\n element?.calculationType === 'fixed' ||\n element?.calculationType === 'ctc';\n else noCalculation\n \">\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE_FLAT_AMOUNT'\n | customTranslate : 'Variable: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED_FLAT_AMOUNT'\n | customTranslate : 'Fixed: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'fixed' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS'\n | customTranslate : '% of Gross'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'fixed' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS' |\n customTranslate : '% of Gross'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\"> {{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }} {{ element['amount'] }} {{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_FIXED_CTC' | customTranslate : '% of Fixed CTC'}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount'] }}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_VARIABLE_CTC' | customTranslate : '% of Variable CTC'}}</span>\n </ng-container>\n\n <ng-template #noCalculation>\n <span class=\"spanFontSize\">-</span>\n </ng-template>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'active'\">\n <div class=\"form-check form-switch\">\n <input class=\"custom-checkbox\" type=\"checkbox\" [checked]=\"(element != null && element['active'] === true) ? true : false\"\n (click)=\"element[column]=!element[column]; onToggleChange.emit(fromWhere === 'payrollSettingComponent' ? element : '')\">\n </div>\n </div>\n </td>\n </ng-container>\n <!-- SK16JUL24 to get the sum of column data -->\n <td class=\"ps-2 pe-2 \" mat-footer-cell *matFooterCellDef=\"let element; let j = index\">\n {{ '-' | totalColumSum: data : cumulativeDataColumns : column }}\n </td>\n </ng-container>\n <!-- action button Columns -->\n <!-- SK19MAR25 \"action\" key is changed to \"tableAction\" wherever used, since, it has duplicate error -->\n <ng-container [stickyEnd]=\"true\" *ngIf=\"actionButton || isDeleteRow || isEditRow\"\n matColumnDef=\"tableAction\">\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color action-size sticky-column actionCol text-center\" style=\"border-right: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));\">{{ actionColumHeader |\n customTranslate : 'Action'}}</th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let element; let i=index\" class=\"body-color sticky-column actionCol\">\n <!-- SKS25DEC24 clone button -->\n <div class=\"d-flex flex-row actionButton\"\n [style.justify-content]=\"conditionSendButton ? 'none' : 'center'\">\n <div *ngIf=\"(!conditionCloneButton) && cloneButton\" class=\"imgBtnDiv\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <div *ngIf=\"(conditionCloneButton) && isConditionMet(element, conditionCloneButton.conditions)\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <!-- SK20FEB26 Expense edit on Pending status -->\n <div *ngIf=\"element?.status === 'Rejected'|| fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow || (fromWhere == 'expense' && element?.status === 'Pending' )\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.COMMENTS' | customTranslate : 'comments' \"\n (buttonClickEmit)=\"onEdit(element?.rejectionReason, i, element?.status)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#rejectInfoModal\">\n </app-fusion-button>\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)) || (conditionEditButton && isConditionMet(element, conditionEditButton.conditions))\">\n <!-- MR 20NOV26 Standardize action column edit icon using fusion-icon font glyph \\e140 -->\n <i *ngIf=\"(!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i, element?.status)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n <i *ngIf=\"conditionEditButton && isConditionMet(element, conditionEditButton.conditions)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i)\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n </div>\n <!-- <img *ngIf=\"fromWhere == 'expense'\" (click)=\"delete(element?._id)\" src=\"../assets/images/icons/Vectordelete.svg\"> -->\n </div>\n <div *ngIf=\"element?.leaveStatus === 'New' || element?.status === 'New' || element?.status === 'Pending' || element?.leaveStatus === 'Pending' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || fromWhere == 'expenseApproval' || isDeleteRow\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.CANCEL' | customTranslate : 'Cancel'\" (buttonClickEmit)=\"delete(element, i)\"\n data-bs-toggle=\"modal\" data-bs-target=\"#cancelLeave\"></app-fusion-button>\n <!-- SKS21NOV24 Conditional rendering of delete icon based on various conditions -->\n <!-- Show the delete icon if 'conditionDeleteButton' is false and 'fromWhere' matches specific components or 'isDeleteRow' is true -->\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow) )|| (conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions))\">\n <img\n *ngIf=\"(!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow)\"\n class=\"imgBtn\" [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(fromWhere === 'payrollSettingComponent' || isDeleteRow ? element : element?._id, i)\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n <img *ngIf=\"conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions)\"\n [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(isDeleteRow ? element : element?._id, i)\" class=\"imgBtn\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n </div>\n <div *ngIf=\"fromWhere == 'approval' || fromWhere == 'expenseApproval'\" class=\"flex imgBtnDiv\">\n <img\n *ngIf=\"(fromWhere === 'expenseApproval' && element?.status === 'Approved'&& element?.reImbursed !== 'Reimbursed') || fromWhere == 'approval'\"\n class=\"approval-image me-2\" style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onApprove( element?.employeeId, element?._id, element?.reImbursed )\"\n src=\"../assets/images/icons/general/Approved.svg\">\n <img *ngIf=\"fromWhere !== 'expenseApproval'\" class=\"approval-image\"\n style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onReject( element?.employeeId, element?._id )\"\n src=\"../assets/images/icons/general/Declined.svg\" class=\"\" data-bs-toggle=\"modal\"\n data-bs-target=\"#approvalReject\">\n </div>\n </div>\n <!-- SK02APR24 added preview and download icons -->\n <div *ngIf=\"viewIcon\" class=\"ms-2 imgBtnDiv\">\n <!-- <img [src]=\"('post.svg' | svgIcon:'#000000') | async\" class=\"card-icon color\" title=\"preview\" (click)=\"viewIconClick(element)\" style=\"cursor: pointer;\" /> -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-eye nav-icon\" matTooltip=\"Preview\"\n matTooltipPosition=\"above\" style=\"color: var(--fc-text-color-light) !important; cursor: pointer;\"\n (click)=\"viewIconClick(element)\"></i>\n\n </div>\n <div *ngIf=\"downloadIcon\" class=\"ms-2 imgBtnDiv\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-download card-icon color imgBtn\"\n matTooltip=\"Download\" matTooltipPosition=\"above\"\n style=\"cursor: pointer; color: var(--fc-text-color-light) !important;\"\n (click)=\"downloadIconClick(element)\">\n </i>\n </div>\n <!-- SKS25DEC24 send button -->\n <div *ngIf=\"(!conditionSendButton) && sendButton\" class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <div\n *ngIf=\"(conditionSendButton) && isConditionMet(element, conditionSendButton.conditions) && sendButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <!-- SKS25DEC24 active button -->\n <div *ngIf=\"(!conditionActivateButton) && activeButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionActivateButton) && isConditionMet(element, conditionActivateButton.conditions) && activeButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <!-- SKS25DEC24 deactive button -->\n <div *ngIf=\"(!conditionDeactivateButton) && deactiveButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionDeactivateButton) && isConditionMet(element, conditionDeactivateButton.conditions) && deactiveButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n </div>\n <div>\n\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/downloadfile.svg'\"\n (buttonClickEmit)=\"downloadPdf(element)\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/pencil-icon.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#documentsInfoModal\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/Vectordelete.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#deleteDocModal\"></app-fusion-button>\n </div>\n </td>\n <td mat-footer-cell *matFooterCellDef=\"let element; let i=index\">{{ \"\" }}\n </td>\n </ng-container>\n\n <!-- total Row -->\n <ng-container [sticky]=\"true\" matColumnDef=\"total\">\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\">\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n </td>\n <!-- RS27AUG24 -->\n <!-- Used the translate pipe to successfully implement the translation -->\n <td mat-footer-cell *matFooterCellDef >{{'APP.TOTAL' | customTranslate : 'Total' }}\n </td>\n </ng-container>\n\n <!-- Render the columns -->\n <!-- SK16JUL24 adding the cumulative data row as footer -->\n <!-- <ng-container *ngIf=\"dataSource?.data?.length !== 0\"> -->\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);\"></tr>\n <!-- SK19JUL24 table total update -->\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null \">\n </tr>\n </div>\n <div *ngSwitchCase=\"'tableAction'\">\n <tr mat-header-row\n *matHeaderRowDef=\" displayedColumns ? displayedColumns.concat(['tableAction']) : [] ;sticky: true\">\n </tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumns ? displayedColumns.concat(['tableAction']) : []; \">\n </tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <!-- 30JAN24 for both checkbox and action columns-->\n <div *ngSwitchCase=\"'both'\">\n <tr mat-header-row\n *matHeaderRowDef=\"['select'].concat(displayedColumns).concat('tableAction') sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns).concat('tableAction')\"\n (click)=\"tableClick(row)\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row;let i =index; columns: displayedColumns;\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? 'd-block' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null\">\n </tr>\n </ng-container>\n </div>\n </div>\n <!-- </ng-container> -->\n <!-- <tr class=\"mat-row \" *matNoDataRow> -->\n <!-- SK9JAN24 Removed attr.colspan since it throws undefined error -->\n <!-- <td class=\"mat-cell \">\n {{'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </td>\n </tr> -->\n\n </table>\n <div class=\"no-data-cell text-center my-3 \" *ngIf=\"!dataSource || !dataSource.data || dataSource.data.length === 0\">\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </div>\n </ng-container>\n <!-- MSM28JAN25 skeleton loader template -->\n <ng-template #loadingTemplate>\n <table>\n <tr style=\"height: 40px;\" *ngFor=\"let _ of [1, 2, 3, 4,5,6]\">\n <td colspan=\"3\" class=\"skeleton-card\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </td>\n </tr>\n </table>\n </ng-template>\n </div>\n <!-- SK23FEB24 table input save button changes -->\n <div class=\"d-flex justify-content-end\">\n <div class=\"flex mt-4 me-2 cursor-pointer\" *ngIf=\"addInlineRecord \" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fc-text-color-dark, #000000) !important;\"></i>\n </div>\n </div>\n <!-- SK27FEB24 removed button disable logic, SK13MAR24 added another condition for button showing-->\n <!-- SR06JAN2025 button disable logic for not select any employee-->\n <div class=\"d-flex justify-content-between align-items-end\">\n <div class=\"px-2\">\n {{notes}}</div>\n\n <app-fusion-button [buttonLoadingSpinner]=\"tableSaveLoadingSpinner\"\n *ngIf=\"editColumn.length > 0 || tableSaveButton\" buttonType=\"btn btn-primary mt-4 me-2\"\n [buttonDisable]=\"selection?.selected?.length === 0\" (buttonClickEmit)=\"saveButton()\"\n buttonValue=\"{{ 'APP.SAVE' | customTranslate : 'Save' }}\"></app-fusion-button>\n </div>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar matching Image 1 -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n </app-pagination>\n </div>\n </div>\n</div>\n\n<!-- SK03OCT24 while clicking export button, side screen will be displayed, with fields selection and filter boxes -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"{{'APP.EXPORT_DATA' | customTranslate : '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 <i *ngIf=\"!exportButtonLoadingSpinner\" class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-upload card-icon color me-1\"></i>\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 displaying components from parent (multipleCheckBox/multipleFilter) -->\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\"\n [isDateFilter]=\"type?.isDateFilter || false\"\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<!-- SKS15DEC25 bulk upload -->\n<app-file-upload [id]=\"'uploadEmployee'\" [headerName]=\"moudleName\" [showFileModal]=\"uploadModal\"\n (closeEmit)=\"uploadModal = false\"\n [bodyHeaderName]=\"('APP.STEPS_TO_UPLOAD' | customTranslate : 'Steps to upload')+moudleName\" [isTemplate]=true\n [templateContent]=\"('APP.DOWNLOAD_THE' | customTranslate : 'Download the')+ moudleName +('APP.TEMPLATE' | customTranslate : 'template')\"\n (templateDownload)=\"downloadTemplate()\"\n [bodyContent]=\"[(('APP.FILL_THE_APPROP' | customTranslate : 'Fill the appropriate')+moudleName+('APP.DETAILS_AND_UPLOAD_ITS_BELOW' | customTranslate : 'Details and upload it below'))]\"\n [fileRestrictions]=\"{\n allowedTypes: ['.csv', '.xlsx', '.xls'],\n maxFileSize: 10,\n maxFiles: 1\n }\" [uploadedFiles]=\"[]\" [saveButtonName]=\"'APP.UPLOAD' | customTranslate : 'Upload'\"\n (upload)=\"uploadRecordsFile($event)\">\n</app-file-upload>\n<!-- SK06NOV24 alert on deleting record -->\n<div *ngIf=\"deleteModal\" class=\"modal modal-backdrop show d-block\" id=\"deleteRecord\" tabindex=\"-1\"\n aria-labelledby=\"deleteRecordLabel\" [attr.aria-hidden]=\"!deleteModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"deleteRecordLabel\">{{'APP.DELETE_RECORD' | customTranslate : 'Delete Record'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"deleteModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC' | customTranslate : 'Are you sure want to delete the record'}} ?\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 ? deleteRecordData() : null\">\n <!-- SK04SEP25 button loader -->\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\" (click)=\"deleteModal = false\">{{'APP.NO'\n | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n\n<app-common-screen *ngIf=\"infoSidescreen\" [headerTitle]=\"'APP.APPROVAL_DETAILS' | customTranslate : 'Approval Details'\"\n (sideScreenEmittedEvent)=\"infoSidescreen = false\">\n <div class=\"side-main-content container\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <!-- Approval Info -->\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.NAME' | customTranslate : 'Name'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.name || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.status === 'Approved' || infoData.status === 'Pending' || infoData.status === 'Rejected' \"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.status === 'Approved', \n 'bg-warning': infoData.status === 'Pending',\n 'bg-danger': infoData.status === 'Rejected'}\">\n {{ infoData.status }}</span>\n <span\n *ngIf=\"infoData.status !== 'Approved' && infoData.status !== 'Pending' && infoData.status !== 'Rejected' \">{{\n infoData.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK21DEC24 to add Approval status in side screen-->\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_STATUS' | customTranslate : 'Approval Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.leaveStatus === 'Approved' || infoData.leaveStatus === 'Pending' || infoData.leaveStatus === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.leaveStatus === 'Approved', \n 'bg-warning': infoData.leaveStatus === 'Pending',\n 'bg-danger': infoData.leaveStatus === 'Rejected'}\">\n {{ infoData.leaveStatus || '' }}</span>\n <span\n *ngIf=\"infoData.leaveStatus !== 'Approved' && infoData.leaveStatus !== 'Pending' && infoData.leaveStatus !== 'Rejected'\">{{\n infoData.leaveStatus || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.REASON' | customTranslate : 'Reason'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.reason || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.TYPE' | customTranslate : 'Type'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.type || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPLIED_ON' | customTranslate : 'Applied On'}}:</div>\n <div class=\"col-6 text-start\">{{ (infoData.appliedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVED_COUNT' | customTranslate : 'Approved Count'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.approvedCount || '' }}</div>\n </div>\n </div>\n </div>\n <!-- Approval Managers -->\n <!-- SK03DEC24 show approval managers list only if applicable -->\n <h3 *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"text-center mb-3\">\n {{'APP.APPROVAL_MANAGERS' | customTranslate : 'Approval Managers'}}</h3>\n <ul *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"list-group\">\n <li *ngFor=\"let manager of infoData.approvalManagers\" class=\"list-group-item\">\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_ID' | customTranslate : 'Employee ID'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.employeeId || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK10DEC24 to show manager name -->\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_NAME' | customTranslate : 'Employee Name'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.name || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_ORDER' | customTranslate : 'Approval Order'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.approvalOrder || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span *ngIf=\"manager.status === 'Approved' || manager.status === 'Pending' || manager.status === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': manager.status === 'Approved', \n 'bg-warning': manager.status === 'Pending',\n 'bg-danger': manager.status === 'Rejected'}\">\n {{ manager.status || '' }}\n </span>\n <span\n *ngIf=\"manager.status !== 'Approved' && manager.status !== 'Pending' && manager.status !== 'Rejected'\"> {{\n manager.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\" *ngIf=\"manager.viewedOn\">\n <div class=\"col-6 text-start\">{{'APP.VIEWED_ON' | customTranslate : 'Viewed On'}}:</div>\n <div class=\"col-6 text-start\">{{ (manager.viewedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.IS_OPTIONAL' | customTranslate : 'Is Optional'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.isOptional ? \"Yes\" : \"No\" }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.COMMENTS' | customTranslate : 'Comments'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.rejectionReason || '' }}</div>\n </div>\n </li>\n </ul>\n </div>\n</app-common-screen>\n\n",
|
|
6189
|
+
template: "<div class=\"table-layout\" [id]=\"tableId\" style=\"padding-top: 1px;\">\n <div>\n <!-- SK30JAN25 title added -->\n <div class=\"d-flex justify-content-center table-title align-text-center\">\n {{title}}\n </div>\n \n <div class=\"flex justify-content-between\" style=\"padding-bottom: 5px;\">\n <div class=\"d-flex align-items-center\">\n <!-- MR 09NOV26 table-toolbar-left projection slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n\n <div *ngIf=\"dateDropdown \">\n <app-drop-down class=\"field-input\" [lists]='dropdownLists' dropDownHeight=\"38px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dropdownEmitFunction($event)\" [selectedData]=\"dropdownSelectedData\"></app-drop-down>\n </div>\n <!-- SC11NOV2025 if isDatePicker is true then show the date picker -->\n <div *ngIf=\"isDatePicker\">\n <!-- MR 16NOV26 Semantic text token replacing hardcoded hex -->\n <app-drop-down [lists]='list' [selectedData]=\"selectedData\" dropDownHeight=\"42px\" dropFontWeight=\"500\"\n dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\" dropBorderRadius=\"5px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dateFilter($event)\"></app-drop-down>\n </div>\n </div>\n <!-- SKS24JAN25 show Nos in table -->\n <!-- <div style=\"display: flex; align-items: center;\">\n <p *ngIf=\"totalRecords || totalCount\" style=\"font-weight: var(--fw-500); margin-right: 5px; margin-bottom: 0px;\">{{'APP.NOS' | customTranslate : 'Nos'}} </p> <span style=\"color: var(--fc-primary-color, rgb(43, 87, 249));\">{{totalRecords || totalCount}}</span>\n </div> -->\n <!-- SKS24JAN25 search bar config and nonconfig -->\n <div style=\"margin-left:auto;\">\n <div class=\"flex\" style=\"align-items: center;\">\n <!-- MR 09NOV26 table-toolbar-right projection slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n\n <div class=\"search\">\n <div class=\"search-bar\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n <input type=\"text\" placeholder=\"{{ 'APP.SEARCH' | customTranslate : 'Search' }}\" matInput\n (keyup)=\"searchConfigs ? emptySearch($event) : applyFilter($event)\"\n [value]=\" (searchConfigs || searchTextValue) ? searchBoxValue || '' : '' \" #input\n style=\"font-size: 13px !important;\">\n <img *ngIf=\"searchConfigs && searchBar\" (click)=\"onSearch(input.value)\"\n src=\"../assets/images/icons/general/configSearch.svg\" class=\"configSearch\">\n </div>\n </div>\n\n <!-- MR 09NOV26 Single toolbar button support from second-data-table -->\n <div class=\"flex\" *ngIf=\"button\">\n <app-fusion-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event, button)\"\n [buttonType]=\"button?.class || button?.buttonType\" [buttonValue]=\"button?.namePath || button?.labelPath || button?.name | customTranslate : button?.label || button?.name\"\n [buttonConfig]=\"button?.buttonConfig\" [type]=\"button?.type\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc || button?.fcBtnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\n\n <!-- SKS24JAN25 single, group and dropdown dynamic buttons -->\n <div class=\"flex\" *ngIf=\"isButtons\" style=\"padding-left: 7px;\">\n <div class=\"flex\" *ngFor=\"let button of buttonArray\">\n <!-- MR 16NOV26 Clean semantic variant identifier for Export action -->\n <app-fusion-button class=\"data-table-fsbtn\" [buttonDisable]=\"button.buttonDisable\"\n [buttonLoadingSpinner]=\"buttonLoadingSpinner\" (buttonClickEmit)=\"commonButtonClick($event,button)\"\n [buttonType]=\"button.buttonType || (button.label === 'Export' ? 'secondary' : button.class || 'primary')\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\"\n [buttonConfig]=\"button.buttonConfig\" [type]=\"button.type\" class=\"ms-2 me-2\"\n [fcBtnIconLeftSrc]=\"button.label === 'Export' ? '../assets/images/icons/general/upload-icon.svg' : button.fcBtnIconLeftSrc\" [isImageSvg]=\"button.label === 'Export' ? true : button.isImageSvg\">\n <!--SKS25OCT24 If the value is 'Import' or 'Export', this button does not work-->\n </app-fusion-button>\n </div>\n </div>\n \n </div>\n\n <!-- SK23FEB24 for adding new record in table -->\n <div class=\"flex cursor-pointer\" *ngIf=\"addInlineRecord\" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <!-- MR 30OCT26 Refactor inline html template styling to theme tokens -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fb-text-primary, #0f172a) !important;\"></i>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\" cdkScrollable> <!-- SKS3FEB25 The search filter closes when scrolling the table-->\n <!-- MSM28JAN25 MR 09NOV26 skeleton loader condition using isTableLoading --> \n <ng-container *ngIf=\"!isTableLoading; else loadingTemplate\">\n <table mat-table [dataSource]=\"dataSource || []\" [ngStyle]=\"{ width: tableWidth }\" matSort>\n <!-- Checkbox Columns -->\n <ng-container [sticky]=\"true\" class=\"checkboxCol\" *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\" style=\"border-left: 1px solid var(--fb-border-default, #e2e8f0);\">\n <input type=\"checkbox\" (click)=\"$event.stopPropagation()\" (change)=\"masterToggle()\"\n [checked]=\"selection?.hasValue()\" [indeterminate]=\"selection?.hasValue() && !isAllSelected()\"\n class=\"custom-checkbox\" />\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n <!-- SK18OCT24 check payroll Inprogress/Completed from backend data -->\n <input type=\"checkbox\" class=\"custom-checkbox\"\n [title]=\"(fromWhere === 'payrollTable' || fromWhere === 'paySlip') ? (row?.payProcessComment || '') : ''\"\n (click)=\"$event.stopPropagation()\" (change)=\"separateRowSelect(row)\"\n [checked]=\"selection.isSelected(row)\"\n [disabled]=\"(fromWhere === 'payrollTable' && row.isPayProcessed === true) || (fromWhere === 'paySlip' && row.isPayProcessed === false)\" />\n </td>\n <td mat-footer-cell *matFooterCellDef>\n {{ \"\" }}\n </td>\n </ng-container>\n\n <!-- data Columns -->\n <!-- set the matColumnDef attribute to the column name and use interpolation to dynamically generate the mat-header-cell and mat-cell elements based on the column name-->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [stickyEnd]=\"i === (stickyCondition - 1) ? true : false\" [sticky]=\"stickyColumns.includes(column)\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header\n style=\"border-right: 1px solid var(--fb-border-default, #e2e8f0);\" class=\"head-color ms-2 ps-2 pe-2\" \n [ngClass]=\"{'sticky-column': i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column)),'active-column': activeColumn === column,'first-header-border': i === 0}\"\n (click)=\"$event.stopPropagation(); onColumnClick(column)\">\n <span [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">{{\n (\n translatePath && translatePath[displayedColumns.indexOf(column)]\n ? translatePath[displayedColumns.indexOf(column)]\n : headerLabels[displayedColumns.indexOf(column)]\n )\n | customTranslate : headerLabels[displayedColumns.indexOf(column)]\n }}\n </span>\n <div (click)=\"$event.stopPropagation()\" class=\"position-relative\" cdk-overlay-origin\n #trigger=\"cdkOverlayOrigin\">\n <img class=\"ms-1\" *ngIf=\"filterColumns.includes(column)\" style=\"margin-bottom: 2px;\"\n (click)=\"filter(column)\" src=\"../assets/images/icons/general/filter-icon.svg\">\n </div>\n <ng-template cdk-connected-overlay [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"searchFilter === true && column === selectedFilter\"\n [cdkConnectedOverlayScrollStrategy]=\"createScrollStrategy()\"\n (overlayOutsideClick)=\"searchFilter = false\" (detach)=\"searchFilter = false\">\n <app-search-filter class=\"search-component position-absolute\"\n [class]=\"searchFilter === true && column === selectedFilter ? 'd-block' : 'd-none'\"\n [filterItems]=\"filterArray\" (emitValues)=\"filteredData($event)\" (click)=\"$event.stopPropagation()\">\n </app-search-filter>\n </ng-template>\n </th>\n <ng-container *ngIf=\"dataSource.data.length > 0\">\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color ps-2 pe-2\" *matCellDef=\"let element; let j = index\"\n [class.active-column]=\"activeColumn === column\"\n [class.sticky-column]=\"i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column))\">\n <!-- SK29OCT25 employee detail column -->\n <div *ngIf=\"column === 'employeeDetail'\">\n <div class=\"d-flex flex-row\" style=\"left:0;\">\n <div *ngIf=\"element['employeeName'] || element['name']\"\n [class]=\"hyperLinkColumns.includes(column) ? 'hyper-link' : '' \"\n style=\"font-size: var(--fs-small);color: var(--fb-text-primary, #0f172a);font-weight: var(--fw-600);\">\n {{element[\"employeeName\"] || element[\"name\"] || ''}}</div>\n <div *ngIf=\"element['employeeId']\"\n style=\"font-size: 11px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-400);\" class=\"ms-1\">\n [{{element[\"employeeId\"] || ''}}]</div>\n </div>\n <div class=\"d-flex flex-row\" *ngIf=\"element['designation'] && element['designation'] !== ''\">\n <div style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"designation\"] || ''}}\n </div>\n <div *ngIf=\"element['designation'] && element['designation'] !== '' && element['location'] && element['location'] !== ''\"\n style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">,</div>\n <div *ngIf=\"element['location'] && element['location'] !== ''\" style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"location\"] || ''}}\n </div>\n </div>\n </div>\n <div *ngIf=\"column !== 'combinedColumn' && column !== 'employeeDetail' && fromWhere !== 'leaveMaster' && (column !== 'active' && (fromWhere === 'hrmTaxComponent' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrm' || fromWhere === 'compensation'|| fromWhere === 'payrollTable'|| fromWhere === 'payrollCompare'|| fromWhere === 'paySlip' || fromWhere === 'approval' || fromWhere === 'leave' || fromWhere === 'expense' || fromWhere === 'expenseApproval' || fromWhere === 'leaveAllocation' ||fromWhere === 'parkingApp' ||(fromWhere === 'common' && column != 'signature')))\">\n <!-- SK10APR24 getting the table values using pipe instead of function to increase performance-->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('') \">\n <span class=\"font-size-13 {{checkHyperlinkCheck(column) || fromWhere === 'hrm' || fromWhere === 'compensation' || fromWhere === 'parkingApp' ? ' hyper-link clickable ' : ''}} {{fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' }}\"\n *ngIf=\"hyperLinkColumns.includes(column) || isFirstCell(column)\"\n (click)=\"tableClick(element); onClickHyperlink(column,element, j, checkHyperlinkCheck(column))\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!-- MR 30NOV26 Shared user/userTag avatar chip cell -->\n <ng-container *ngIf=\"isUserColumn(column)\">\n <app-user-chip\n [value]=\"element[column]\"\n [userLookupMap]=\"userLookupMap\"\n [maxVisible]=\"getUserColumnMaxVisible(column)\">\n </app-user-chip>\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column) && !isUserColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </span>\n <div *ngIf=\"!isFirstCell(column) && !editColumn.includes(column) && column != 'receipt'\"\n [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">\n <div *ngIf=\"!checkHyperlinkCheck(column)\" class=\"font-size-13\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!-- MR 30NOV26 Shared user/userTag avatar chip cell -->\n <ng-container *ngIf=\"isUserColumn(column)\">\n <app-user-chip\n [value]=\"element[column]\"\n [userLookupMap]=\"userLookupMap\"\n [maxVisible]=\"getUserColumnMaxVisible(column)\">\n </app-user-chip>\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column) && !isUserColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </div>\n </div>\n </div>\n <!-- SK27FEB24 added input box for inline edit input-->\n <div *ngIf=\"editColumn.length > 0\">\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('string') \" class=\"on-edit d-flex\">\n <input #editColElement class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \"\n matInput [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n </div>\n <!-- SK10APR24 In table, like text input, added drop down and time inputs as well -->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('object') \" class=\"on-edit d-flex\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('text') \" #editColElement\n class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('time') \" type=\"time\"\n class=\"lop-input table-width\" matInput [class]=\"element?.editRow ? 'input-box' : '' \"\n placeholder=\"HH:mm:ss\" [(ngModel)]=\"element[column]\"\n [disabled]=\"element?.editRow ? false : true\" />\n <div *ngIf=\" ('-' | editColumnType: column : editColumn) === ('dropdown') \">\n <select type=\"dropdown\" *ngIf=\"element?.editRow\" class=\"lop-input table-width\" matInput\n [class]=\"element?.editRow ? 'input-box' : '' \" [(ngModel)]=\"element[column]\">\n <option [disabled]=\"element?.editRow ? false : true\"\n *ngFor=\"let data of [] | editColumnDropdown: column : editColumn \"\n [value]=\"data.value || data.name\">{{data.name}}</option>\n </select>\n <input *ngIf=\"!element?.editRow\" #editColElement class=\"lop-input table-width\"\n [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"true\">\n </div>\n\n </div>\n </div>\n <app-popover\n *ngIf=\"column === 'receipt' && !editColumn.includes(column) && receiptImg == true && element[column] && element[column].length != 0\"\n [isBootstrap]=\"false\" [dynamicPopover]=\"'Popover string comes here'\">\n <div class=\"hover-base\">\n <img class=\"ms-1\" src=\"../../../assets/images/icons/general/file-attach.svg\">\n </div>\n <div class=\"hover-content\">\n <div class=\"expenseCon\">\n <div *ngFor=\"let data of element[column] || []\">\n <div class=\"cursor-pointer expense-file\" (click)=\"expenseAttachment(data,element)\">{{data?.name}}\n <!-- SK20FEB26 loader in expense list-->\n <svg *ngIf=\"data?.loader\"\n class=\"svg-spinner card-icon color\"\n width=\"22\" height=\"22\" viewBox=\"0 0 50 50\"\n style=\"cursor: wait;\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"4\"></circle>\n </svg>\n </div>\n </div>\n </div>\n </div>\n </app-popover>\n </div>\n <div *ngIf=\"fromWhere === 'leaveMaster' && column !== 'employeeDetail' \">\n <div [class]=\"(element[column]) === 'Week Off' ? 'weekoff-color' : '' \" class=\"font-size-13\">{{\n (column == 'default' || column == 'active' || column == 'paidLeave') ? '' : element[column] }}</div>\n <input *ngIf=\"(column === 'default' || column === 'active' || column === 'paidLeave')\"\n class=\"custom-checkbox\" [checked]=\"element[column] == true\" type=\"checkbox\" disabled>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'combinedColumn'\">\n <!-- for the Payroll Settings Component ( Side Screen Component )-->\n <!-- Since the last column is a combination of data and it is also conditional based on the paytype and calculation type we are using this div-->\n <!-- if Component type is Earnings and\n calculationType is 'flat' then output should be => \"'payType\": Flat, Amount of 'amount'\"\n calculationType is 'percentage' then output should be => \"'payType': 'amount' % of Basic \"\n calculationType is 'fixed' then output should be => \"'payType': 'calculationType'\" -->\n <!-- SK20JUN25 to display in table -->\n <ng-container *ngIf=\"\n element?.calculationType === 'flat' ||\n element?.calculationType === 'percentage' ||\n element?.calculationType === 'basicAndDA' ||\n element?.calculationType === 'fixed' ||\n element?.calculationType === 'ctc';\n else noCalculation\n \">\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE_FLAT_AMOUNT'\n | customTranslate : 'Variable: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED_FLAT_AMOUNT'\n | customTranslate : 'Fixed: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'fixed' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS'\n | customTranslate : '% of Gross'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'fixed' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS' |\n customTranslate : '% of Gross'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\"> {{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }} {{ element['amount'] }} {{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_FIXED_CTC' | customTranslate : '% of Fixed CTC'}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount'] }}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_VARIABLE_CTC' | customTranslate : '% of Variable CTC'}}</span>\n </ng-container>\n\n <ng-template #noCalculation>\n <span class=\"spanFontSize\">-</span>\n </ng-template>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'active'\">\n <div class=\"form-check form-switch\">\n <input class=\"custom-checkbox\" type=\"checkbox\" [checked]=\"(element != null && element['active'] === true) ? true : false\"\n (click)=\"element[column]=!element[column]; onToggleChange.emit(fromWhere === 'payrollSettingComponent' ? element : '')\">\n </div>\n </div>\n </td>\n </ng-container>\n <!-- SK16JUL24 to get the sum of column data -->\n <td class=\"ps-2 pe-2 \" mat-footer-cell *matFooterCellDef=\"let element; let j = index\">\n {{ '-' | totalColumSum: data : cumulativeDataColumns : column }}\n </td>\n </ng-container>\n <!-- action button Columns -->\n <!-- SK19MAR25 \"action\" key is changed to \"tableAction\" wherever used, since, it has duplicate error -->\n <ng-container [stickyEnd]=\"true\" *ngIf=\"actionButton || isDeleteRow || isEditRow\"\n matColumnDef=\"tableAction\">\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color action-size sticky-column actionCol text-center\" style=\"border-right: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));\">{{ actionColumHeader |\n customTranslate : 'Action'}}</th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let element; let i=index\" class=\"body-color sticky-column actionCol\">\n <!-- SKS25DEC24 clone button -->\n <div class=\"d-flex flex-row actionButton\"\n [style.justify-content]=\"conditionSendButton ? 'none' : 'center'\">\n <div *ngIf=\"(!conditionCloneButton) && cloneButton\" class=\"imgBtnDiv\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <div *ngIf=\"(conditionCloneButton) && isConditionMet(element, conditionCloneButton.conditions)\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <!-- SK20FEB26 Expense edit on Pending status -->\n <div *ngIf=\"element?.status === 'Rejected'|| fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow || (fromWhere == 'expense' && element?.status === 'Pending' )\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.COMMENTS' | customTranslate : 'comments' \"\n (buttonClickEmit)=\"onEdit(element?.rejectionReason, i, element?.status)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#rejectInfoModal\">\n </app-fusion-button>\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)) || (conditionEditButton && isConditionMet(element, conditionEditButton.conditions))\">\n <!-- MR 20NOV26 Standardize action column edit icon using fusion-icon font glyph \\e140 -->\n <i *ngIf=\"(!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i, element?.status)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n <i *ngIf=\"conditionEditButton && isConditionMet(element, conditionEditButton.conditions)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i)\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n </div>\n <!-- <img *ngIf=\"fromWhere == 'expense'\" (click)=\"delete(element?._id)\" src=\"../assets/images/icons/Vectordelete.svg\"> -->\n </div>\n <div *ngIf=\"element?.leaveStatus === 'New' || element?.status === 'New' || element?.status === 'Pending' || element?.leaveStatus === 'Pending' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || fromWhere == 'expenseApproval' || isDeleteRow\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.CANCEL' | customTranslate : 'Cancel'\" (buttonClickEmit)=\"delete(element, i)\"\n data-bs-toggle=\"modal\" data-bs-target=\"#cancelLeave\"></app-fusion-button>\n <!-- SKS21NOV24 Conditional rendering of delete icon based on various conditions -->\n <!-- Show the delete icon if 'conditionDeleteButton' is false and 'fromWhere' matches specific components or 'isDeleteRow' is true -->\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow) )|| (conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions))\">\n <img\n *ngIf=\"(!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow)\"\n class=\"imgBtn\" [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(fromWhere === 'payrollSettingComponent' || isDeleteRow ? element : element?._id, i)\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n <img *ngIf=\"conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions)\"\n [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(isDeleteRow ? element : element?._id, i)\" class=\"imgBtn\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n </div>\n <div *ngIf=\"fromWhere == 'approval' || fromWhere == 'expenseApproval'\" class=\"flex imgBtnDiv\">\n <img\n *ngIf=\"(fromWhere === 'expenseApproval' && element?.status === 'Approved'&& element?.reImbursed !== 'Reimbursed') || fromWhere == 'approval'\"\n class=\"approval-image me-2\" style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onApprove( element?.employeeId, element?._id, element?.reImbursed )\"\n src=\"../assets/images/icons/general/Approved.svg\">\n <img *ngIf=\"fromWhere !== 'expenseApproval'\" class=\"approval-image\"\n style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onReject( element?.employeeId, element?._id )\"\n src=\"../assets/images/icons/general/Declined.svg\" class=\"\" data-bs-toggle=\"modal\"\n data-bs-target=\"#approvalReject\">\n </div>\n </div>\n <!-- SK02APR24 added preview and download icons -->\n <div *ngIf=\"viewIcon\" class=\"ms-2 imgBtnDiv\">\n <!-- <img [src]=\"('post.svg' | svgIcon:'#000000') | async\" class=\"card-icon color\" title=\"preview\" (click)=\"viewIconClick(element)\" style=\"cursor: pointer;\" /> -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-eye nav-icon\" matTooltip=\"Preview\"\n matTooltipPosition=\"above\" style=\"color: var(--fc-text-color-light) !important; cursor: pointer;\"\n (click)=\"viewIconClick(element)\"></i>\n\n </div>\n <div *ngIf=\"downloadIcon\" class=\"ms-2 imgBtnDiv\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-download card-icon color imgBtn\"\n matTooltip=\"Download\" matTooltipPosition=\"above\"\n style=\"cursor: pointer; color: var(--fc-text-color-light) !important;\"\n (click)=\"downloadIconClick(element)\">\n </i>\n </div>\n <!-- SKS25DEC24 send button -->\n <div *ngIf=\"(!conditionSendButton) && sendButton\" class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <div\n *ngIf=\"(conditionSendButton) && isConditionMet(element, conditionSendButton.conditions) && sendButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <!-- SKS25DEC24 active button -->\n <div *ngIf=\"(!conditionActivateButton) && activeButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionActivateButton) && isConditionMet(element, conditionActivateButton.conditions) && activeButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <!-- SKS25DEC24 deactive button -->\n <div *ngIf=\"(!conditionDeactivateButton) && deactiveButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionDeactivateButton) && isConditionMet(element, conditionDeactivateButton.conditions) && deactiveButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n </div>\n <div>\n\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/downloadfile.svg'\"\n (buttonClickEmit)=\"downloadPdf(element)\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/pencil-icon.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#documentsInfoModal\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/Vectordelete.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#deleteDocModal\"></app-fusion-button>\n </div>\n </td>\n <td mat-footer-cell *matFooterCellDef=\"let element; let i=index\">{{ \"\" }}\n </td>\n </ng-container>\n\n <!-- total Row -->\n <ng-container [sticky]=\"true\" matColumnDef=\"total\">\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\">\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n </td>\n <!-- RS27AUG24 -->\n <!-- Used the translate pipe to successfully implement the translation -->\n <td mat-footer-cell *matFooterCellDef >{{'APP.TOTAL' | customTranslate : 'Total' }}\n </td>\n </ng-container>\n\n <!-- Render the columns -->\n <!-- SK16JUL24 adding the cumulative data row as footer -->\n <!-- <ng-container *ngIf=\"dataSource?.data?.length !== 0\"> -->\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);\"></tr>\n <!-- SK19JUL24 table total update -->\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null \">\n </tr>\n </div>\n <div *ngSwitchCase=\"'tableAction'\">\n <tr mat-header-row\n *matHeaderRowDef=\" displayedColumns ? displayedColumns.concat(['tableAction']) : [] ;sticky: true\">\n </tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumns ? displayedColumns.concat(['tableAction']) : []; \">\n </tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <!-- 30JAN24 for both checkbox and action columns-->\n <div *ngSwitchCase=\"'both'\">\n <tr mat-header-row\n *matHeaderRowDef=\"['select'].concat(displayedColumns).concat('tableAction') sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns).concat('tableAction')\"\n (click)=\"tableClick(row)\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row;let i =index; columns: displayedColumns;\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? 'd-block' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null\">\n </tr>\n </ng-container>\n </div>\n </div>\n <!-- </ng-container> -->\n <!-- <tr class=\"mat-row \" *matNoDataRow> -->\n <!-- SK9JAN24 Removed attr.colspan since it throws undefined error -->\n <!-- <td class=\"mat-cell \">\n {{'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </td>\n </tr> -->\n\n </table>\n <div class=\"no-data-cell text-center my-3 \" *ngIf=\"!dataSource || !dataSource.data || dataSource.data.length === 0\">\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </div>\n </ng-container>\n <!-- MSM28JAN25 skeleton loader template -->\n <ng-template #loadingTemplate>\n <table>\n <tr style=\"height: 40px;\" *ngFor=\"let _ of [1, 2, 3, 4,5,6]\">\n <td colspan=\"3\" class=\"skeleton-card\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </td>\n </tr>\n </table>\n </ng-template>\n </div>\n <!-- SK23FEB24 table input save button changes -->\n <div class=\"d-flex justify-content-end\">\n <div class=\"flex mt-4 me-2 cursor-pointer\" *ngIf=\"addInlineRecord \" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fc-text-color-dark, #000000) !important;\"></i>\n </div>\n </div>\n <!-- SK27FEB24 removed button disable logic, SK13MAR24 added another condition for button showing-->\n <!-- SR06JAN2025 button disable logic for not select any employee-->\n <div class=\"d-flex justify-content-between align-items-end\">\n <div class=\"px-2\">\n {{notes}}</div>\n\n <app-fusion-button [buttonLoadingSpinner]=\"tableSaveLoadingSpinner\"\n *ngIf=\"editColumn.length > 0 || tableSaveButton\" buttonType=\"btn btn-primary mt-4 me-2\"\n [buttonDisable]=\"selection?.selected?.length === 0\" (buttonClickEmit)=\"saveButton()\"\n buttonValue=\"{{ 'APP.SAVE' | customTranslate : 'Save' }}\"></app-fusion-button>\n </div>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar matching Image 1 -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n </app-pagination>\n </div>\n </div>\n</div>\n\n<!-- SK03OCT24 while clicking export button, side screen will be displayed, with fields selection and filter boxes -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"{{'APP.EXPORT_DATA' | customTranslate : '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 <i *ngIf=\"!exportButtonLoadingSpinner\" class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-upload card-icon color me-1\"></i>\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 displaying components from parent (multipleCheckBox/multipleFilter) -->\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\"\n [isDateFilter]=\"type?.isDateFilter || false\"\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<!-- SKS15DEC25 bulk upload -->\n<app-file-upload [id]=\"'uploadEmployee'\" [headerName]=\"moudleName\" [showFileModal]=\"uploadModal\"\n (closeEmit)=\"uploadModal = false\"\n [bodyHeaderName]=\"('APP.STEPS_TO_UPLOAD' | customTranslate : 'Steps to upload')+moudleName\" [isTemplate]=true\n [templateContent]=\"('APP.DOWNLOAD_THE' | customTranslate : 'Download the')+ moudleName +('APP.TEMPLATE' | customTranslate : 'template')\"\n (templateDownload)=\"downloadTemplate()\"\n [bodyContent]=\"[(('APP.FILL_THE_APPROP' | customTranslate : 'Fill the appropriate')+moudleName+('APP.DETAILS_AND_UPLOAD_ITS_BELOW' | customTranslate : 'Details and upload it below'))]\"\n [fileRestrictions]=\"{\n allowedTypes: ['.csv', '.xlsx', '.xls'],\n maxFileSize: 10,\n maxFiles: 1\n }\" [uploadedFiles]=\"[]\" [saveButtonName]=\"'APP.UPLOAD' | customTranslate : 'Upload'\"\n (upload)=\"uploadRecordsFile($event)\">\n</app-file-upload>\n<!-- SK06NOV24 alert on deleting record -->\n<div *ngIf=\"deleteModal\" class=\"modal modal-backdrop show d-block\" id=\"deleteRecord\" tabindex=\"-1\"\n aria-labelledby=\"deleteRecordLabel\" [attr.aria-hidden]=\"!deleteModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"deleteRecordLabel\">{{'APP.DELETE_RECORD' | customTranslate : 'Delete Record'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"deleteModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC' | customTranslate : 'Are you sure want to delete the record'}} ?\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 ? deleteRecordData() : null\">\n <!-- SK04SEP25 button loader -->\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\" (click)=\"deleteModal = false\">{{'APP.NO'\n | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n\n<app-common-screen *ngIf=\"infoSidescreen\" [headerTitle]=\"'APP.APPROVAL_DETAILS' | customTranslate : 'Approval Details'\"\n (sideScreenEmittedEvent)=\"infoSidescreen = false\">\n <div class=\"side-main-content container\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <!-- Approval Info -->\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.NAME' | customTranslate : 'Name'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.name || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.status === 'Approved' || infoData.status === 'Pending' || infoData.status === 'Rejected' \"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.status === 'Approved', \n 'bg-warning': infoData.status === 'Pending',\n 'bg-danger': infoData.status === 'Rejected'}\">\n {{ infoData.status }}</span>\n <span\n *ngIf=\"infoData.status !== 'Approved' && infoData.status !== 'Pending' && infoData.status !== 'Rejected' \">{{\n infoData.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK21DEC24 to add Approval status in side screen-->\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_STATUS' | customTranslate : 'Approval Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.leaveStatus === 'Approved' || infoData.leaveStatus === 'Pending' || infoData.leaveStatus === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.leaveStatus === 'Approved', \n 'bg-warning': infoData.leaveStatus === 'Pending',\n 'bg-danger': infoData.leaveStatus === 'Rejected'}\">\n {{ infoData.leaveStatus || '' }}</span>\n <span\n *ngIf=\"infoData.leaveStatus !== 'Approved' && infoData.leaveStatus !== 'Pending' && infoData.leaveStatus !== 'Rejected'\">{{\n infoData.leaveStatus || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.REASON' | customTranslate : 'Reason'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.reason || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.TYPE' | customTranslate : 'Type'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.type || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPLIED_ON' | customTranslate : 'Applied On'}}:</div>\n <div class=\"col-6 text-start\">{{ (infoData.appliedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVED_COUNT' | customTranslate : 'Approved Count'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.approvedCount || '' }}</div>\n </div>\n </div>\n </div>\n <!-- Approval Managers -->\n <!-- SK03DEC24 show approval managers list only if applicable -->\n <h3 *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"text-center mb-3\">\n {{'APP.APPROVAL_MANAGERS' | customTranslate : 'Approval Managers'}}</h3>\n <ul *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"list-group\">\n <li *ngFor=\"let manager of infoData.approvalManagers\" class=\"list-group-item\">\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_ID' | customTranslate : 'Employee ID'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.employeeId || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK10DEC24 to show manager name -->\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_NAME' | customTranslate : 'Employee Name'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.name || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_ORDER' | customTranslate : 'Approval Order'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.approvalOrder || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span *ngIf=\"manager.status === 'Approved' || manager.status === 'Pending' || manager.status === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': manager.status === 'Approved', \n 'bg-warning': manager.status === 'Pending',\n 'bg-danger': manager.status === 'Rejected'}\">\n {{ manager.status || '' }}\n </span>\n <span\n *ngIf=\"manager.status !== 'Approved' && manager.status !== 'Pending' && manager.status !== 'Rejected'\"> {{\n manager.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\" *ngIf=\"manager.viewedOn\">\n <div class=\"col-6 text-start\">{{'APP.VIEWED_ON' | customTranslate : 'Viewed On'}}:</div>\n <div class=\"col-6 text-start\">{{ (manager.viewedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.IS_OPTIONAL' | customTranslate : 'Is Optional'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.isOptional ? \"Yes\" : \"No\" }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.COMMENTS' | customTranslate : 'Comments'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.rejectionReason || '' }}</div>\n </div>\n </li>\n </ul>\n </div>\n</app-common-screen>\n\n",
|
|
5914
6190
|
styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{border-top:1px solid var(--fb-border-default, #e2e8f0);min-height:100px;overflow:auto;width:100%;max-height:62vh}.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-medium);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color,tr.mat-header-row,.mat-mdc-header-row{background:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-primary, #0f172a)!important;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;align-items:center}.search .search-bar{background-color:var(--fb-input-bg, #ffffff);border:1px solid var(--fb-input-border, #cbd5e1);border-radius:var(--radius-small, 6px);display:flex;align-items:center;padding:2px 8px;width:100%;gap:6px}.search .search-bar input{background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;width:100%;font-size:13px;color:var(--fb-text-primary, #0f172a);padding:2px 4px}.search .search-bar input::placeholder{color:var(--fb-placeholder-text, #94a3b8)}th.mat-header-cell:last-of-type{padding:0;font-weight:var(--fw-600);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}td.mat-cell:last-of-type{padding:8px;font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.table-title{font-weight:var(--fw-600);color:var(--fb-text-primary, #0f172a)}.sticky-column,td.actionCol{background-color:var(--fb-surface, #ffffff)}th.sticky-column,th.actionCol{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{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-radius:5px;color:var(--fb-text-primary, #0f172a);background-color:var(--fb-surface, #ffffff);font-weight:var(--fw-400);font-size:var(--fs-medium);transition:all .2s}::ng-deep [dir=rtl] .body-color img{margin-left:4px!important}@media screen and (min-width:600px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}}@media screen and (max-width:882px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.mat-cell{padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-header-cell{padding:0}}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}.expense-file{font-size:var(--fs-small)}.expense-file:hover{font-style:italic;text-decoration:underline;color:var(--fb-action-hover, #00284d)}.expenseCon{background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);padding:5px;border-radius:3px}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline}.clickable{cursor:pointer}.font-size-13{font-size:var(--fs-normal)}.weekoff-color{color:var(--fb-error, #ef4444)}.table-width{width:max-content}.on-edit:hover .edit-icon{visibility:visible}.edit-icon{visibility:hidden}.input-box{border:solid}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.delete-icon{justify-content:center}.side-main-content{border-radius:10px}h2{font-size:28px}.list-group-item{margin-bottom:10px;padding:15px}.list-group-item p{margin-bottom:5px}.custom-badge{display:inline-block;width:50%;text-align:center;padding:.3em 0;margin-top:0!important}.bg-success{--bs-bg-opacity: 1;background-color:var(--fb-success-surface, #e6f4ea)!important;color:var(--fb-success-text, #137333)!important}.custom-search-button{background-color:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff);border-radius:5px;font-size:var(--fs-normal);border:none}.custom-search-button:hover{background-color:var(--fb-action-hover, #00284d)}.custom-search-button:active{transform:translateY(0)}.table{border-top:1px solid var(--fb-border-default, #e2e8f0)}th,td{vertical-align:middle}.configSearch{height:22px;padding:3px;margin:10p;background-color:var(--fb-action, #003566);border-radius:4px}::ng-deep .table>:not(caption)>*>*{background-color:none!important;--bs-table-bg: var(--fb-surface, #ffffff) !important}@font-face{font-display:swap;font-family:fusion-icon;font-style:normal;font-weight:400;src:url(https://icons.valarhr.com/fonts/fusion-icon.woff2) format(\"woff2\"),url(https://icons.valarhr.com/fonts/fusion-icon.woff) format(\"woff\"),url(https://icons.valarhr.com/fonts/fusion-icon.ttf) format(\"truetype\")}.fusion-icon{display:inline-block;font-family:fusion-icon!important;font-weight:400;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.fusion-icon-edit_pencil:before,.fusion-icon-edit:before{content:\"\\e140\"}.imgBtn{background-color:var(--fb-surface-secondary, #f8fafc);border-radius:var(--radius-small, 6px);width:15px;height:15px;object-fit:contain}.imgBtnDiv{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;line-height:0px;padding:4px;border-radius:5px;border:1px solid var(--fb-border-default, #e2e8f0)}input::placeholder{font-size:var(--fs-small);font-weight:var(--fw-400);color:var(--fb-placeholder-text, #94a3b8)}::ng-deep .modal-backdrop{background-color:var(--fb-backdrop, #00000073)!important}::ng-deep .modal-backdrop.show{background-color:var(--fb-backdrop, #00000073)!important;opacity:1!important}::ng-deep .mat-sort-header-container .mat-sort-header-content span{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}::ng-deep .mat-mdc-cell{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-400)!important;font-size:var(--fs-primary)!important;min-width:20px!important}.active-column{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}.hover-content{background:var(--fb-surface-elevated, #ffffff)}.position-relative{position:relative;display:inline-block}.filter-popup{position:absolute;top:100%;left:0;z-index:9998;background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .08));padding:10px;min-width:200px}.spanFontSize{font-size:var(--fs-normal)}.mat-column-employees{width:200px;min-width:200px;padding-left:8px;height:57px;left:0!important}.text-start{font-size:var(--fs-normal)}.first-header-border{border-left:1px solid var(--fb-border-default, #e2e8f0)}tr{height:45px!important;text-wrap:nowrap!important}.field-input{width:min(220px,98%);min-height:50px}.svg-spinner{animation:rotate 1s linear infinite}.svg-spinner .path{stroke:var(--fb-action, #003566);stroke-linecap:round;stroke-dasharray:80 150;stroke-width:4}@keyframes rotate{to{transform:rotate(360deg)}}img{max-width:none!important;vertical-align:middle}::ng-deep .mat-mdc-row:hover,::ng-deep .mat-row:hover{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n),::ng-deep .mat-row:nth-child(2n){background-color:var(--fb-row-alternate, #fcfdfe)}::ng-deep .mat-mdc-row:hover td.sticky-column,::ng-deep .mat-row:hover td.sticky-column,::ng-deep .mat-mdc-row:hover td.actionCol,::ng-deep .mat-row:hover td.actionCol{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n) td.sticky-column,::ng-deep .mat-row:nth-child(2n) td.sticky-column,::ng-deep .mat-mdc-row:nth-child(2n) td.actionCol,::ng-deep .mat-row:nth-child(2n) td.actionCol{background-color:var(--fb-row-alternate, #fcfdfe)}\n"]
|
|
5915
6191
|
}]
|
|
5916
6192
|
}],
|
|
@@ -5969,6 +6245,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5969
6245
|
pageSize: [{ type: Input }],
|
|
5970
6246
|
pageIndex: [{ type: Input }],
|
|
5971
6247
|
tableConfigurations: [{ type: Input }],
|
|
6248
|
+
userLookupMap: [{ type: Input }],
|
|
5972
6249
|
actionButtonCondition: [{ type: Input }],
|
|
5973
6250
|
dateColumns: [{ type: Input }],
|
|
5974
6251
|
timeColumns: [{ type: Input }],
|
|
@@ -6351,6 +6628,8 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
6351
6628
|
filterScreenConfigs = [];
|
|
6352
6629
|
exportFieldsListConfigs;
|
|
6353
6630
|
exportFilterListConfigs;
|
|
6631
|
+
tableConfigurations;
|
|
6632
|
+
userLookupMap;
|
|
6354
6633
|
_stickyColumn = false;
|
|
6355
6634
|
_stickyColumns = [];
|
|
6356
6635
|
set stickyColumn(val) {
|
|
@@ -6539,6 +6818,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
6539
6818
|
const records = Array.isArray(rows) ? rows : [];
|
|
6540
6819
|
this.filteredClientData = null;
|
|
6541
6820
|
this.dataSource = new MatTableDataSource(records);
|
|
6821
|
+
this.configureDataSource(this.dataSource);
|
|
6542
6822
|
this.selection.clear();
|
|
6543
6823
|
if (this.sort) this.dataSource.sort = this.sort;
|
|
6544
6824
|
const storedSize = localStorage.getItem("attendanceTableSize");
|
|
@@ -6591,6 +6871,15 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
6591
6871
|
if (parts.length === 1) return parts[0].substring(0, 2).toUpperCase();
|
|
6592
6872
|
return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();
|
|
6593
6873
|
}
|
|
6874
|
+
isUserColumn(column) {
|
|
6875
|
+
return isUserColumnType(this.tableConfigurations, column);
|
|
6876
|
+
}
|
|
6877
|
+
getUserColumnMaxVisible(column) {
|
|
6878
|
+
return getUserColumnMaxVisible(this.tableConfigurations, column);
|
|
6879
|
+
}
|
|
6880
|
+
configureDataSource(dataSource) {
|
|
6881
|
+
configureUserTableDataSource(dataSource, () => this.tableConfigurations, () => this.userLookupMap);
|
|
6882
|
+
}
|
|
6594
6883
|
triggerChangeDetection() {
|
|
6595
6884
|
this.cdr.markForCheck();
|
|
6596
6885
|
}
|
|
@@ -6840,6 +7129,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
6840
7129
|
this.dataSource.data = allRows.slice(0, this.pageSize);
|
|
6841
7130
|
} else {
|
|
6842
7131
|
const tempSource = new MatTableDataSource(allRows);
|
|
7132
|
+
this.configureDataSource(tempSource);
|
|
6843
7133
|
tempSource.filter = normalized;
|
|
6844
7134
|
const matched = tempSource.filteredData;
|
|
6845
7135
|
this.filteredClientData = matched;
|
|
@@ -7019,6 +7309,8 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
7019
7309
|
filterScreenConfigs: "filterScreenConfigs",
|
|
7020
7310
|
exportFieldsListConfigs: "exportFieldsListConfigs",
|
|
7021
7311
|
exportFilterListConfigs: "exportFilterListConfigs",
|
|
7312
|
+
tableConfigurations: "tableConfigurations",
|
|
7313
|
+
userLookupMap: "userLookupMap",
|
|
7022
7314
|
stickyColumn: "stickyColumn",
|
|
7023
7315
|
stickyColumns: "stickyColumns"
|
|
7024
7316
|
},
|
|
@@ -7062,7 +7354,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
7062
7354
|
}],
|
|
7063
7355
|
usesOnChanges: true,
|
|
7064
7356
|
ngImport: i0,
|
|
7065
|
-
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 <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">✓</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'\">✕</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\">✓</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\">✕</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",
|
|
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\">✓</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'\">✕</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\">✓</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\">✕</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",
|
|
7066
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"],
|
|
7067
7359
|
dependencies: [
|
|
7068
7360
|
{
|
|
@@ -7351,6 +7643,16 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
7351
7643
|
],
|
|
7352
7644
|
outputs: ["valueChange", "monthChange"]
|
|
7353
7645
|
},
|
|
7646
|
+
{
|
|
7647
|
+
kind: "component",
|
|
7648
|
+
type: UserChipComponent,
|
|
7649
|
+
selector: "app-user-chip, fusion-user-chip",
|
|
7650
|
+
inputs: [
|
|
7651
|
+
"value",
|
|
7652
|
+
"userLookupMap",
|
|
7653
|
+
"maxVisible"
|
|
7654
|
+
]
|
|
7655
|
+
},
|
|
7354
7656
|
{
|
|
7355
7657
|
kind: "pipe",
|
|
7356
7658
|
type: CustomTranslatePipe,
|
|
@@ -7385,14 +7687,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7385
7687
|
MultipleFilterComponent,
|
|
7386
7688
|
PaginationComponent,
|
|
7387
7689
|
FusionMonthPickerComponent,
|
|
7388
|
-
CustomTranslatePipe
|
|
7690
|
+
CustomTranslatePipe,
|
|
7691
|
+
UserChipComponent
|
|
7389
7692
|
],
|
|
7390
7693
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7391
7694
|
providers: [{
|
|
7392
7695
|
provide: MatPaginatorIntl,
|
|
7393
7696
|
useClass: CustomPaginatorIntl
|
|
7394
7697
|
}],
|
|
7395
|
-
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 <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">✓</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'\">✕</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\">✓</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\">✕</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",
|
|
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\">✓</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'\">✕</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\">✓</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\">✕</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",
|
|
7396
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"]
|
|
7397
7700
|
}]
|
|
7398
7701
|
}],
|
|
@@ -7435,6 +7738,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7435
7738
|
filterScreenConfigs: [{ type: Input }],
|
|
7436
7739
|
exportFieldsListConfigs: [{ type: Input }],
|
|
7437
7740
|
exportFilterListConfigs: [{ type: Input }],
|
|
7741
|
+
tableConfigurations: [{ type: Input }],
|
|
7742
|
+
userLookupMap: [{ type: Input }],
|
|
7438
7743
|
stickyColumn: [{ type: Input }],
|
|
7439
7744
|
stickyColumns: [{ type: Input }],
|
|
7440
7745
|
checkClicked: [{ type: Output }],
|
|
@@ -8780,6 +9085,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8780
9085
|
}]
|
|
8781
9086
|
}]
|
|
8782
9087
|
});
|
|
8783
|
-
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, provideToastConfig };
|
|
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 };
|
|
8784
9089
|
|
|
8785
9090
|
//# sourceMappingURL=rangertechnologies-fusion-ui.mjs.map
|