@rangertechnologies/fusion-ui 0.1.11 → 0.1.13
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.
|
@@ -23,8 +23,7 @@ import { saveAs } from "file-saver";
|
|
|
23
23
|
import * as i1$1 from "@angular/router";
|
|
24
24
|
import * as i9$1 from "@angular/material/table";
|
|
25
25
|
import { MatTableDataSource, MatTableModule } from "@angular/material/table";
|
|
26
|
-
import
|
|
27
|
-
import { MatPaginator, MatPaginatorIntl, MatPaginatorModule } from "@angular/material/paginator";
|
|
26
|
+
import { MatPaginatorIntl, MatPaginatorModule } from "@angular/material/paginator";
|
|
28
27
|
import * as i10 from "@angular/material/sort";
|
|
29
28
|
import { MatSort, MatSortModule } from "@angular/material/sort";
|
|
30
29
|
import * as i1 from "@angular/platform-browser";
|
|
@@ -190,13 +189,19 @@ var FusionButtonComponent = class FusionButtonComponent {
|
|
|
190
189
|
host: { listeners: { "document:click": "onClickOutside($event)" } },
|
|
191
190
|
usesOnChanges: true,
|
|
192
191
|
ngImport: i0,
|
|
193
|
-
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<!--
|
|
194
|
-
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)}.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,.fc-button.side-cancel-component{border:1px solid transparent}.fc-button.side-save-component:focus,.fc-button.side-cancel-component:focus{box-shadow:0 0 0 .25rem var(--box-shadow-color);border:1px solid color-mix(in srgb,var(--fc-primary-color),rgba(0,0,0,0) 40%)}.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
|
+
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 16NOV26 Dynamic class binding decoupling btn-primary from secondary and custom variants -->\n<button type=\"button\" *ngIf=\"type !== 'group' && type !== 'dropdown'\" class=\"btn fc-button flex\"\n [ngClass]=\"{\n 'btn-primary fc-button--primary': !buttonType || buttonType === 'primary',\n 'fc-button--secondary': buttonType === 'secondary' || buttonType === 'outline' || buttonType === 'grey-border',\n 'btn-icon': buttonType === 'icon'\n }\"\n [class]=\"buttonType\"\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",
|
|
193
|
+
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,.fc-button.side-cancel-component{border:1px solid transparent}.fc-button.side-save-component:focus,.fc-button.side-cancel-component:focus{box-shadow:0 0 0 .25rem var(--box-shadow-color);border:1px solid color-mix(in srgb,var(--fc-primary-color),rgba(0,0,0,0) 40%)}.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"],
|
|
195
194
|
dependencies: [
|
|
196
195
|
{
|
|
197
196
|
kind: "ngmodule",
|
|
198
197
|
type: CommonModule
|
|
199
198
|
},
|
|
199
|
+
{
|
|
200
|
+
kind: "directive",
|
|
201
|
+
type: i1$4.NgClass,
|
|
202
|
+
selector: "[ngClass]",
|
|
203
|
+
inputs: ["class", "ngClass"]
|
|
204
|
+
},
|
|
200
205
|
{
|
|
201
206
|
kind: "directive",
|
|
202
207
|
type: i1$4.NgForOf,
|
|
@@ -250,8 +255,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
250
255
|
AngularSvgIconModule,
|
|
251
256
|
CustomTranslatePipe
|
|
252
257
|
],
|
|
253
|
-
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<!--
|
|
254
|
-
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)}.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,.fc-button.side-cancel-component{border:1px solid transparent}.fc-button.side-save-component:focus,.fc-button.side-cancel-component:focus{box-shadow:0 0 0 .25rem var(--box-shadow-color);border:1px solid color-mix(in srgb,var(--fc-primary-color),rgba(0,0,0,0) 40%)}.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
|
+
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 16NOV26 Dynamic class binding decoupling btn-primary from secondary and custom variants -->\n<button type=\"button\" *ngIf=\"type !== 'group' && type !== 'dropdown'\" class=\"btn fc-button flex\"\n [ngClass]=\"{\n 'btn-primary fc-button--primary': !buttonType || buttonType === 'primary',\n 'fc-button--secondary': buttonType === 'secondary' || buttonType === 'outline' || buttonType === 'grey-border',\n 'btn-icon': buttonType === 'icon'\n }\"\n [class]=\"buttonType\"\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",
|
|
259
|
+
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,.fc-button.side-cancel-component{border:1px solid transparent}.fc-button.side-save-component:focus,.fc-button.side-cancel-component:focus{box-shadow:0 0 0 .25rem var(--box-shadow-color);border:1px solid color-mix(in srgb,var(--fc-primary-color),rgba(0,0,0,0) 40%)}.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"]
|
|
255
260
|
}]
|
|
256
261
|
}],
|
|
257
262
|
ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }],
|
|
@@ -1085,7 +1090,7 @@ var MultiCheckboxComponent = class MultiCheckboxComponent {
|
|
|
1085
1090
|
usesOnChanges: true,
|
|
1086
1091
|
ngImport: i0,
|
|
1087
1092
|
template: "<!-- SK15FEB24 Multi check component -->\n<div class=\"card flex {{cardClass}} {{cardSize}}\" style=\"{{cardStyle}}\">\n <div>\n <div class=\"fw-bold\" style=\"padding: 5px 10px 5px;\">{{label | customTranslate : label}}</div>\n </div>\n <!-- SK03OCT24 search filter in multiple checkbox -->\n <div class=\"search\" style=\"margin: 0px 10px 0px;\">\n <div class=\"search-bar flex\">\n <input class=\"width-100\" type=\"text\" placeholder=\"{{ 'APP.SEARCH' | customTranslate : 'Search' }}\" [(ngModel)]=\"searchText\"\n style=\"border:none;\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <!-- SK20FEB24 if the list is array, the list will be shown as it is -->\n <!-- SK14MAR24 fixed stylings and added Select All/ Unselect Allcheckbox -->\n <div *ngIf=\"!isArrayofObj\" style=\"{{checkBoxStyles}}\">\n <!-- SK12SEP25 card inline style modified -->\n <div class=\"flex flex-wrap\" style=\"{{contentCardStyle}}\" >\n <mat-checkbox class=\"col-md-12\" #allCheck *ngIf=\"!radioCheck\" (click)=\"$event.stopPropagation()\" (change)=\"checkAction('Select/UnSelect All', $event)\">\n <span class=\"text-wrap\" style=\"font-size: small;\" >{{\"APP.SELECT_OR_UNSELECT_ALL\" | customTranslate : 'Select/UnSelect All'}}</span>\n </mat-checkbox>\n <div *ngIf=\"radioCheck\" #allCheck ></div>\n <div class=\"{{cardInlineSize}} flex\" *ngFor=\"let list of checkboxList | searchFilter : searchText; let i = index\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? checkboxSelection.toggle(list) : null\" (change)=\"checkAction(list, $event)\"\n [checked]=\"checkboxSelection.isSelected(list)\">\n <span class=\" text-wrap\" style=\"font-size: small;\" >{{list}}</span>\n </mat-checkbox>\n </div>\n </div>\n </div>\n <!-- SK20FEB24 if the list is array of objects, the mopdified list will be shown -->\n <!-- SK14MAR24 fixed stylings and added Select All/ Unselect Allcheckbox -->\n <div *ngIf=\"isArrayofObj\" style=\"{{checkBoxStyles}}\">\n <!-- //SK12SEP25 card inline style -->\n <div class=\"flex flex-wrap\" style=\"{{contentCardStyle}}\">\n <mat-checkbox #allCheck *ngIf=\"!radioCheck\" (click)=\"$event.stopPropagation()\" (change)=\"checkAction('Select/UnSelect All', $event)\">\n <span class=\" text-wrap\" style=\"font-size: small;\" >{{\"APP.SELECT_OR_UNSELECT_ALL\" | customTranslate : \"Select/UnSelect All\"}} </span>\n </mat-checkbox>\n <div class=\"{{cardInlineSize}} flex\" *ngFor=\"let list of checkboxList | searchFilter : searchText : (displayValues?.keyString || 'label | customTranslate : label'); let i = index\">\n <mat-checkbox class=\" flex-wrap\" (click)=\"$event.stopPropagation()\" (change)=\"$event ? checkboxSelection.toggle(list) : null\" (change)=\"checkAction(list, $event)\"\n [checked]=\"checkboxSelection.isSelected(list)\">\n <span class=\" text-wrap\" style=\"font-size: small;\" >{{ displayValues?.keyString ? (list[displayValues.keyString] | customTranslate : list[displayValues.keyString] ) : (list.labelPath || list.label | customTranslate : list.label) }}\n </span>\n </mat-checkbox>\n </div>\n </div>\n </div>\n <div class=\"m-2 d-flex justify-content-end\">\n <!-- MY 16OCT26 support button loader on save/action button and disable cancel while loading -->\n <app-fusion-button *ngFor=\"let button of buttonList\" [buttonLoadingSpinner]=\"button.buttonLoadingSpinner || button.isButtonLoadingSpinner || (button.buttonAction !== 'cancel' && (isButtonLoadingSpinner || componentData?.isButtonLoadingSpinner))\" [buttonDisable]=\"button.buttonDisable || (button.buttonAction === 'cancel' && (isButtonLoadingSpinner || componentData?.isButtonLoadingSpinner))\" [buttonType]=\"button.class\" [buttonValue]=\"button.labelPath || button.label | customTranslate : button.label\"\n (buttonClickEmit)=\"buttonClick(button)\">\n </app-fusion-button>\n </div>\n</div>\n<!-- [disabled]=\"checkboxSelection.isSelected('No Access') && days !== 'No Access'\" -->",
|
|
1088
|
-
styles: [".row{margin-left:0;margin-right:0}.search{display:flex;justify-content:space-between;border:1px solid var(--border-
|
|
1093
|
+
styles: [".row{margin-left:0;margin-right:0}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:6px}.search-bar{display:flex;flex-direction:row;width:100%;margin:3px}.card-btn{width:18px}\n"],
|
|
1089
1094
|
dependencies: [
|
|
1090
1095
|
{
|
|
1091
1096
|
kind: "ngmodule",
|
|
@@ -1231,7 +1236,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1231
1236
|
CustomTranslatePipe
|
|
1232
1237
|
],
|
|
1233
1238
|
template: "<!-- SK15FEB24 Multi check component -->\n<div class=\"card flex {{cardClass}} {{cardSize}}\" style=\"{{cardStyle}}\">\n <div>\n <div class=\"fw-bold\" style=\"padding: 5px 10px 5px;\">{{label | customTranslate : label}}</div>\n </div>\n <!-- SK03OCT24 search filter in multiple checkbox -->\n <div class=\"search\" style=\"margin: 0px 10px 0px;\">\n <div class=\"search-bar flex\">\n <input class=\"width-100\" type=\"text\" placeholder=\"{{ 'APP.SEARCH' | customTranslate : 'Search' }}\" [(ngModel)]=\"searchText\"\n style=\"border:none;\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <!-- SK20FEB24 if the list is array, the list will be shown as it is -->\n <!-- SK14MAR24 fixed stylings and added Select All/ Unselect Allcheckbox -->\n <div *ngIf=\"!isArrayofObj\" style=\"{{checkBoxStyles}}\">\n <!-- SK12SEP25 card inline style modified -->\n <div class=\"flex flex-wrap\" style=\"{{contentCardStyle}}\" >\n <mat-checkbox class=\"col-md-12\" #allCheck *ngIf=\"!radioCheck\" (click)=\"$event.stopPropagation()\" (change)=\"checkAction('Select/UnSelect All', $event)\">\n <span class=\"text-wrap\" style=\"font-size: small;\" >{{\"APP.SELECT_OR_UNSELECT_ALL\" | customTranslate : 'Select/UnSelect All'}}</span>\n </mat-checkbox>\n <div *ngIf=\"radioCheck\" #allCheck ></div>\n <div class=\"{{cardInlineSize}} flex\" *ngFor=\"let list of checkboxList | searchFilter : searchText; let i = index\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? checkboxSelection.toggle(list) : null\" (change)=\"checkAction(list, $event)\"\n [checked]=\"checkboxSelection.isSelected(list)\">\n <span class=\" text-wrap\" style=\"font-size: small;\" >{{list}}</span>\n </mat-checkbox>\n </div>\n </div>\n </div>\n <!-- SK20FEB24 if the list is array of objects, the mopdified list will be shown -->\n <!-- SK14MAR24 fixed stylings and added Select All/ Unselect Allcheckbox -->\n <div *ngIf=\"isArrayofObj\" style=\"{{checkBoxStyles}}\">\n <!-- //SK12SEP25 card inline style -->\n <div class=\"flex flex-wrap\" style=\"{{contentCardStyle}}\">\n <mat-checkbox #allCheck *ngIf=\"!radioCheck\" (click)=\"$event.stopPropagation()\" (change)=\"checkAction('Select/UnSelect All', $event)\">\n <span class=\" text-wrap\" style=\"font-size: small;\" >{{\"APP.SELECT_OR_UNSELECT_ALL\" | customTranslate : \"Select/UnSelect All\"}} </span>\n </mat-checkbox>\n <div class=\"{{cardInlineSize}} flex\" *ngFor=\"let list of checkboxList | searchFilter : searchText : (displayValues?.keyString || 'label | customTranslate : label'); let i = index\">\n <mat-checkbox class=\" flex-wrap\" (click)=\"$event.stopPropagation()\" (change)=\"$event ? checkboxSelection.toggle(list) : null\" (change)=\"checkAction(list, $event)\"\n [checked]=\"checkboxSelection.isSelected(list)\">\n <span class=\" text-wrap\" style=\"font-size: small;\" >{{ displayValues?.keyString ? (list[displayValues.keyString] | customTranslate : list[displayValues.keyString] ) : (list.labelPath || list.label | customTranslate : list.label) }}\n </span>\n </mat-checkbox>\n </div>\n </div>\n </div>\n <div class=\"m-2 d-flex justify-content-end\">\n <!-- MY 16OCT26 support button loader on save/action button and disable cancel while loading -->\n <app-fusion-button *ngFor=\"let button of buttonList\" [buttonLoadingSpinner]=\"button.buttonLoadingSpinner || button.isButtonLoadingSpinner || (button.buttonAction !== 'cancel' && (isButtonLoadingSpinner || componentData?.isButtonLoadingSpinner))\" [buttonDisable]=\"button.buttonDisable || (button.buttonAction === 'cancel' && (isButtonLoadingSpinner || componentData?.isButtonLoadingSpinner))\" [buttonType]=\"button.class\" [buttonValue]=\"button.labelPath || button.label | customTranslate : button.label\"\n (buttonClickEmit)=\"buttonClick(button)\">\n </app-fusion-button>\n </div>\n</div>\n<!-- [disabled]=\"checkboxSelection.isSelected('No Access') && days !== 'No Access'\" -->",
|
|
1234
|
-
styles: [".row{margin-left:0;margin-right:0}.search{display:flex;justify-content:space-between;border:1px solid var(--border-
|
|
1239
|
+
styles: [".row{margin-left:0;margin-right:0}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:6px}.search-bar{display:flex;flex-direction:row;width:100%;margin:3px}.card-btn{width:18px}\n"]
|
|
1235
1240
|
}]
|
|
1236
1241
|
}],
|
|
1237
1242
|
ctorParameters: () => [{ type: GlobalValuesService }, { type: i0.ChangeDetectorRef }],
|
|
@@ -1645,7 +1650,7 @@ var MultipleFilterComponent = class MultipleFilterComponent {
|
|
|
1645
1650
|
usesOnChanges: true,
|
|
1646
1651
|
ngImport: i0,
|
|
1647
1652
|
template: "<!-- SK03OCT24 Multi Filter component -->\n<div class=\"card flex {{cardClass}} {{cardSize}}\">\n <div>\n <div class=\"fw-bold\" style=\"padding: 5px 10px 5px;\">{{label}}</div>\n </div>\n <!-- <div class=\"search m-3\">\n <div class=\"search-bar flex\">\n <input class=\"medium-font width-100\" type=\"text\" placeholder=\"Search\" [(ngModel)]=\"searchText\"\n style=\"border:none;\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div> -->\n <div style=\"{{checkBoxStyles}}\">\n <div class=\"flex flex-wrap px-2\" *ngIf=\"!isDateFilter\">\n <div class=\"{{cardInlineSize}}\" *ngFor=\"let list of selectionData; let i = index\">\n <div class=\"\">\n <label class=\"text-wrap align-self-center\" style=\"font-size: small;\" >{{list.labelPath || list.label | customTranslate : list.label}}</label>\n <div *ngIf=\"componentData.type !== 'crossFilter'\">\n <app-drop-down [lists]=\"list.allValues\" [multipleSelectedView]=\"list.selectedValues\" selectedData=\"Select\" [multipleSelect]=\"true\" (multipleSelectDataEmit)=\"multipleSelectDataEmit($event, list)\"></app-drop-down>\n </div>\n <!-- SKS10JAN25 for cross filter check box -->\n <div *ngIf=\"componentData.type === 'crossFilter'\">\n <app-drop-down [lists]=\"list.allValues\" [multipleSelectedView]=\"list.filterFields\" selectedData=\"Select\" [controlName]=\"componentData.type\" [multipleSelect]=\"true\" (multipleSelectDataEmit)=\"multipleSelectDataEmit($event, list)\"></app-drop-down>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-wrap\" *ngIf=\"isDateFilter\">\n <div class=\"d-flex justify-content-between px-2\" [class]=\"cardInlineSize\">\n <!-- SK03OCT24 startDate and endDate inputs -->\n <div class=\"field-input\">\n <label class=\"modal-field-label\" for=\"end-date\">{{'APP.START_DATE' | customTranslate : 'Start Date' }}*</label>\n <input type=\"date\" max=\"9999-12-31\" [(ngModel)]=\"startDate\" id=\"start-date\" [max]=\"endDate\" name=\"startDate\"\n format=\"mm-dd-yyyy\" class=\"input-border\" (change)=\"leaveCalc()\"/>\n </div>\n\n <div class=\"field-input\"\n [class]=\"dateErr ? 'has-error' : '' \">\n <label class=\"modal-field-label\" for=\"end-date\">{{'APP.END_DATE' | customTranslate : 'End Date' }}*</label>\n <input type=\"date\" max=\"9999-12-31\" [(ngModel)]=\"endDate\" id=\"end-date\" [min]=\"startDate\" name=\"endDate\"\n format=\"mm-dd-yyyy\" class=\"input-border\" (change)=\"leaveCalc()\" />\n <p *ngIf=\"dateErr\" class=\"error-msg\">\n <span> {{ 'APP.SELECT_VALID_DATE' | customTranslate : 'Select valid date' }}\n </span>\n </p>\n </div>\n </div>\n </div>\n </div>\n <div class=\"m-2 d-flex justify-content-end\" *ngIf=\"!isDateFilter\">\n <!-- MY 15OCT26 support button loader on button item, componentData, or multiple-filter input -->\n <app-fusion-button *ngFor=\"let button of buttonList\" [buttonLoadingSpinner]=\"button.buttonLoadingSpinner || button.isButtonLoadingSpinner || isButtonLoadingSpinner || componentData?.isButtonLoadingSpinner\" [buttonType]=\"button.class\" [buttonValue]=\"button.labelPath || button.label | customTranslate : button.label\"\n (buttonClickEmit)=\"buttonClick(button)\">\n </app-fusion-button>\n </div>\n</div>\n",
|
|
1648
|
-
styles: [".row{margin-left:0;margin-right:0}.search{display:flex;justify-content:space-between;border:1px solid var(--border-
|
|
1653
|
+
styles: [".row{margin-left:0;margin-right:0}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:6px}.search-bar{display:flex;flex-direction:row;width:100%;margin:3px}\n"],
|
|
1649
1654
|
dependencies: [
|
|
1650
1655
|
{
|
|
1651
1656
|
kind: "ngmodule",
|
|
@@ -1799,7 +1804,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1799
1804
|
CustomTranslatePipe
|
|
1800
1805
|
],
|
|
1801
1806
|
template: "<!-- SK03OCT24 Multi Filter component -->\n<div class=\"card flex {{cardClass}} {{cardSize}}\">\n <div>\n <div class=\"fw-bold\" style=\"padding: 5px 10px 5px;\">{{label}}</div>\n </div>\n <!-- <div class=\"search m-3\">\n <div class=\"search-bar flex\">\n <input class=\"medium-font width-100\" type=\"text\" placeholder=\"Search\" [(ngModel)]=\"searchText\"\n style=\"border:none;\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div> -->\n <div style=\"{{checkBoxStyles}}\">\n <div class=\"flex flex-wrap px-2\" *ngIf=\"!isDateFilter\">\n <div class=\"{{cardInlineSize}}\" *ngFor=\"let list of selectionData; let i = index\">\n <div class=\"\">\n <label class=\"text-wrap align-self-center\" style=\"font-size: small;\" >{{list.labelPath || list.label | customTranslate : list.label}}</label>\n <div *ngIf=\"componentData.type !== 'crossFilter'\">\n <app-drop-down [lists]=\"list.allValues\" [multipleSelectedView]=\"list.selectedValues\" selectedData=\"Select\" [multipleSelect]=\"true\" (multipleSelectDataEmit)=\"multipleSelectDataEmit($event, list)\"></app-drop-down>\n </div>\n <!-- SKS10JAN25 for cross filter check box -->\n <div *ngIf=\"componentData.type === 'crossFilter'\">\n <app-drop-down [lists]=\"list.allValues\" [multipleSelectedView]=\"list.filterFields\" selectedData=\"Select\" [controlName]=\"componentData.type\" [multipleSelect]=\"true\" (multipleSelectDataEmit)=\"multipleSelectDataEmit($event, list)\"></app-drop-down>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-wrap\" *ngIf=\"isDateFilter\">\n <div class=\"d-flex justify-content-between px-2\" [class]=\"cardInlineSize\">\n <!-- SK03OCT24 startDate and endDate inputs -->\n <div class=\"field-input\">\n <label class=\"modal-field-label\" for=\"end-date\">{{'APP.START_DATE' | customTranslate : 'Start Date' }}*</label>\n <input type=\"date\" max=\"9999-12-31\" [(ngModel)]=\"startDate\" id=\"start-date\" [max]=\"endDate\" name=\"startDate\"\n format=\"mm-dd-yyyy\" class=\"input-border\" (change)=\"leaveCalc()\"/>\n </div>\n\n <div class=\"field-input\"\n [class]=\"dateErr ? 'has-error' : '' \">\n <label class=\"modal-field-label\" for=\"end-date\">{{'APP.END_DATE' | customTranslate : 'End Date' }}*</label>\n <input type=\"date\" max=\"9999-12-31\" [(ngModel)]=\"endDate\" id=\"end-date\" [min]=\"startDate\" name=\"endDate\"\n format=\"mm-dd-yyyy\" class=\"input-border\" (change)=\"leaveCalc()\" />\n <p *ngIf=\"dateErr\" class=\"error-msg\">\n <span> {{ 'APP.SELECT_VALID_DATE' | customTranslate : 'Select valid date' }}\n </span>\n </p>\n </div>\n </div>\n </div>\n </div>\n <div class=\"m-2 d-flex justify-content-end\" *ngIf=\"!isDateFilter\">\n <!-- MY 15OCT26 support button loader on button item, componentData, or multiple-filter input -->\n <app-fusion-button *ngFor=\"let button of buttonList\" [buttonLoadingSpinner]=\"button.buttonLoadingSpinner || button.isButtonLoadingSpinner || isButtonLoadingSpinner || componentData?.isButtonLoadingSpinner\" [buttonType]=\"button.class\" [buttonValue]=\"button.labelPath || button.label | customTranslate : button.label\"\n (buttonClickEmit)=\"buttonClick(button)\">\n </app-fusion-button>\n </div>\n</div>\n",
|
|
1802
|
-
styles: [".row{margin-left:0;margin-right:0}.search{display:flex;justify-content:space-between;border:1px solid var(--border-
|
|
1807
|
+
styles: [".row{margin-left:0;margin-right:0}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:6px}.search-bar{display:flex;flex-direction:row;width:100%;margin:3px}\n"]
|
|
1803
1808
|
}]
|
|
1804
1809
|
}],
|
|
1805
1810
|
ctorParameters: () => [{ type: i0.ChangeDetectorRef }],
|
|
@@ -1842,19 +1847,28 @@ var PaginationComponent = class PaginationComponent {
|
|
|
1842
1847
|
totalPages = [];
|
|
1843
1848
|
constructor() {}
|
|
1844
1849
|
ngOnInit() {
|
|
1845
|
-
this.pageSize = this.pageSize
|
|
1846
|
-
this.currentPage = this.currentPage
|
|
1847
|
-
|
|
1850
|
+
this.pageSize = Number(this.pageSize) || 10;
|
|
1851
|
+
this.currentPage = !this.currentPage || this.currentPage < 1 ? 1 : this.currentPage;
|
|
1852
|
+
this.updateTotalPages();
|
|
1848
1853
|
}
|
|
1849
1854
|
ngOnChanges(changes) {
|
|
1850
|
-
this.pageSize = this.pageSize
|
|
1851
|
-
this.currentPage = this.currentPage
|
|
1852
|
-
|
|
1855
|
+
this.pageSize = Number(this.pageSize) || 10;
|
|
1856
|
+
this.currentPage = !this.currentPage || this.currentPage < 1 ? 1 : this.currentPage;
|
|
1857
|
+
this.updateTotalPages();
|
|
1858
|
+
}
|
|
1859
|
+
updateTotalPages() {
|
|
1860
|
+
if (this.collectionSize && this.pageSize) this.totalPages = new Array(Math.ceil(this.collectionSize / Number(this.pageSize)));
|
|
1861
|
+
else this.totalPages = [];
|
|
1862
|
+
}
|
|
1863
|
+
get totalPageCount() {
|
|
1864
|
+
return this.totalPages.length || 1;
|
|
1853
1865
|
}
|
|
1854
1866
|
get startIndex() {
|
|
1867
|
+
if (!this.collectionSize) return 0;
|
|
1855
1868
|
return (this.currentPage - 1) * Number(this.pageSize);
|
|
1856
1869
|
}
|
|
1857
1870
|
get endIndex() {
|
|
1871
|
+
if (!this.collectionSize) return 0;
|
|
1858
1872
|
return Math.min(Number(this.startIndex) + Number(this.pageSize), this.collectionSize);
|
|
1859
1873
|
}
|
|
1860
1874
|
selectPageNumber(pageNumber) {
|
|
@@ -1863,23 +1877,29 @@ var PaginationComponent = class PaginationComponent {
|
|
|
1863
1877
|
}
|
|
1864
1878
|
next() {
|
|
1865
1879
|
const nextPage = this.currentPage + 1;
|
|
1866
|
-
nextPage <= this.
|
|
1880
|
+
if (nextPage <= this.totalPageCount) this.selectPageNumber(nextPage);
|
|
1867
1881
|
}
|
|
1868
1882
|
previous() {
|
|
1869
1883
|
const previousPage = this.currentPage - 1;
|
|
1870
|
-
previousPage >= 1
|
|
1884
|
+
if (previousPage >= 1) this.selectPageNumber(previousPage);
|
|
1885
|
+
}
|
|
1886
|
+
firstPage() {
|
|
1887
|
+
this.selectPageNumber(1);
|
|
1888
|
+
}
|
|
1889
|
+
lastPage() {
|
|
1890
|
+
this.selectPageNumber(this.totalPageCount);
|
|
1871
1891
|
}
|
|
1872
1892
|
onPageSizeChange(newSize) {
|
|
1873
|
-
this.pageSize = newSize;
|
|
1874
|
-
this.
|
|
1893
|
+
this.pageSize = Number(newSize) || 10;
|
|
1894
|
+
this.updateTotalPages();
|
|
1875
1895
|
this.currentPage = 1;
|
|
1876
1896
|
this.emit();
|
|
1877
1897
|
}
|
|
1878
1898
|
emit() {
|
|
1879
1899
|
this.event.emit({
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1900
|
+
length: this.collectionSize,
|
|
1901
|
+
pageSize: this.pageSize,
|
|
1902
|
+
pageIndex: this.currentPage
|
|
1883
1903
|
});
|
|
1884
1904
|
}
|
|
1885
1905
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -1909,8 +1929,8 @@ var PaginationComponent = class PaginationComponent {
|
|
|
1909
1929
|
outputs: { event: "event" },
|
|
1910
1930
|
usesOnChanges: true,
|
|
1911
1931
|
ngImport: i0,
|
|
1912
|
-
template: "<!--
|
|
1913
|
-
styles: [".
|
|
1932
|
+
template: "<!-- MR 16NOV26 Compact pagination bar matching Image 1 standard with centered projection slot -->\n<div class=\"main-cont\">\n <!-- Left: Showing 1 – 10 of 13 -->\n <div class=\"pagination-info\">\n <ng-container *ngIf=\"collectionSize > 0; else noRecords\">\n {{ 'APP.SHOWING' | customTranslate : 'Showing' }} {{ startIndex + 1 }} – {{ endIndex }} {{ 'APP.OF' | customTranslate : 'of' }} {{ collectionSize }}\n </ng-container>\n <ng-template #noRecords>\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records found' }}\n </ng-template>\n </div>\n\n <!-- Center: Slot for legends or custom content -->\n <div class=\"pagination-center\">\n <ng-content select=\"[pagination-center], [centerContent], [legends]\"></ng-content>\n </div>\n\n <!-- Right: Rows dropdown and compact navigation -->\n <div class=\"pagination-controls\">\n <div class=\"pagination-rows-wrapper\" *ngIf=\"pageSizeOptions?.length\">\n <label class=\"pagination-rows-label\" for=\"perPage\">{{ 'APP.ROWS' | customTranslate : 'Rows' }}:</label>\n <div class=\"pagination-select-wrapper\">\n <select id=\"perPage\" class=\"pagination-select\" [ngModel]=\"pageSize\" (ngModelChange)=\"onPageSizeChange($event)\">\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }}</option>\n </select>\n <svg class=\"pagination-select-arrow\" width=\"8\" height=\"5\" viewBox=\"0 0 9 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0.684136 0.767477C0.922999 0.5378 1.30282 0.545248 1.5325 0.784111L4.5 3.93431L7.4675 0.784111C7.69718 0.545248 8.077 0.5378 8.31587 0.767477C8.55473 0.997153 8.56218 1.37698 8.3325 1.61584L4.9325 5.21584C4.81938 5.33349 4.66321 5.39998 4.5 5.39998C4.33679 5.39998 4.18062 5.33349 4.0675 5.21584L0.667501 1.61584C0.437825 1.37698 0.445272 0.997153 0.684136 0.767477Z\" fill=\"currentColor\"/>\n </svg>\n </div>\n </div>\n\n <div class=\"pagination-nav\">\n <!-- First button (if explicitly requested) -->\n <button class=\"pagination-btn\" *ngIf=\"firstLastButtons\" [disabled]=\"currentPage <= 1\" (click)=\"firstPage()\">««</button>\n\n <!-- Previous button -->\n <button class=\"pagination-btn\" *ngIf=\"nextPreviousButtons\" [disabled]=\"currentPage <= 1\" (click)=\"previous()\">‹ {{ 'APP.PREV' | customTranslate : 'Prev' }}</button>\n\n <!-- Page indicator -->\n <span class=\"pagination-indicator\">{{ 'APP.PAGE' | customTranslate : 'Page' }} {{ currentPage }} {{ 'APP.OF' | customTranslate : 'of' }} {{ totalPageCount }}</span>\n\n <!-- Next button -->\n <button class=\"pagination-btn\" *ngIf=\"nextPreviousButtons\" [disabled]=\"currentPage >= totalPageCount\" (click)=\"next()\">{{ 'APP.NEXT' | customTranslate : 'Next' }} ›</button>\n\n <!-- Last button (if explicitly requested) -->\n <button class=\"pagination-btn\" *ngIf=\"firstLastButtons\" [disabled]=\"currentPage >= totalPageCount\" (click)=\"lastPage()\">»»</button>\n </div>\n </div>\n</div>\n",
|
|
1933
|
+
styles: [".main-cont{display:flex;justify-content:space-between;align-items:center;width:100%;padding:8px 16px;background:var(--comp-bg-color, #ffffff);border-top:1px solid var(--fb-border-default, #e2e8f0);box-sizing:border-box;gap:12px}.pagination-info{color:var(--fb-text-secondary, #64748b);font-size:var(--fs-small, 12px);font-weight:var(--fw-400, 400);white-space:nowrap}.pagination-center{display:flex;align-items:center;justify-content:center;flex:1;min-width:0}.pagination-controls{display:flex;align-items:center;gap:8px;white-space:nowrap}.pagination-rows-wrapper{display:flex;align-items:center;gap:6px;margin-right:6px}.pagination-rows-label{font-size:var(--fs-small, 12px);font-weight:var(--fw-400, 400);color:var(--fb-text-secondary, #64748b);margin:0}.pagination-select-wrapper{position:relative;display:inline-flex;align-items:center}.pagination-select{font-size:var(--fs-small, 12px);color:var(--fb-text-primary, #0f172a);background-color:var(--comp-bg-color, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);border-radius:4px;padding:3px 22px 3px 8px;appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;line-height:normal}.pagination-select:hover{border-color:var(--fb-border-strong, #cbd5e1)}.pagination-select:focus{outline:none;border-color:var(--fb-focus-ring, #003566)}.pagination-select-arrow{position:absolute;right:7px;pointer-events:none;color:var(--fb-text-secondary, #64748b)}.pagination-nav{display:flex;align-items:center;gap:6px}.pagination-btn{background:var(--comp-bg-color, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);color:var(--fb-text-secondary, #64748b);font-size:var(--fs-small, 12px);padding:3px 10px;border-radius:4px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease-in-out;line-height:normal}.pagination-btn:hover:not(:disabled){border-color:var(--fb-border-strong, #cbd5e1);background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a)}.pagination-btn:disabled{opacity:.45;cursor:not-allowed;color:var(--fb-text-disabled, #94a3b8);border-color:var(--fb-border-subtle, #f1f5f9)}.pagination-indicator{font-size:var(--fs-small, 12px);color:var(--fb-text-primary, #0f172a);font-weight:var(--fw-400, 400);padding:0 4px}\n"],
|
|
1914
1934
|
dependencies: [
|
|
1915
1935
|
{
|
|
1916
1936
|
kind: "ngmodule",
|
|
@@ -1999,8 +2019,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1999
2019
|
FormsModule,
|
|
2000
2020
|
CustomTranslatePipe
|
|
2001
2021
|
],
|
|
2002
|
-
template: "<!--
|
|
2003
|
-
styles: [".
|
|
2022
|
+
template: "<!-- MR 16NOV26 Compact pagination bar matching Image 1 standard with centered projection slot -->\n<div class=\"main-cont\">\n <!-- Left: Showing 1 – 10 of 13 -->\n <div class=\"pagination-info\">\n <ng-container *ngIf=\"collectionSize > 0; else noRecords\">\n {{ 'APP.SHOWING' | customTranslate : 'Showing' }} {{ startIndex + 1 }} – {{ endIndex }} {{ 'APP.OF' | customTranslate : 'of' }} {{ collectionSize }}\n </ng-container>\n <ng-template #noRecords>\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records found' }}\n </ng-template>\n </div>\n\n <!-- Center: Slot for legends or custom content -->\n <div class=\"pagination-center\">\n <ng-content select=\"[pagination-center], [centerContent], [legends]\"></ng-content>\n </div>\n\n <!-- Right: Rows dropdown and compact navigation -->\n <div class=\"pagination-controls\">\n <div class=\"pagination-rows-wrapper\" *ngIf=\"pageSizeOptions?.length\">\n <label class=\"pagination-rows-label\" for=\"perPage\">{{ 'APP.ROWS' | customTranslate : 'Rows' }}:</label>\n <div class=\"pagination-select-wrapper\">\n <select id=\"perPage\" class=\"pagination-select\" [ngModel]=\"pageSize\" (ngModelChange)=\"onPageSizeChange($event)\">\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }}</option>\n </select>\n <svg class=\"pagination-select-arrow\" width=\"8\" height=\"5\" viewBox=\"0 0 9 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0.684136 0.767477C0.922999 0.5378 1.30282 0.545248 1.5325 0.784111L4.5 3.93431L7.4675 0.784111C7.69718 0.545248 8.077 0.5378 8.31587 0.767477C8.55473 0.997153 8.56218 1.37698 8.3325 1.61584L4.9325 5.21584C4.81938 5.33349 4.66321 5.39998 4.5 5.39998C4.33679 5.39998 4.18062 5.33349 4.0675 5.21584L0.667501 1.61584C0.437825 1.37698 0.445272 0.997153 0.684136 0.767477Z\" fill=\"currentColor\"/>\n </svg>\n </div>\n </div>\n\n <div class=\"pagination-nav\">\n <!-- First button (if explicitly requested) -->\n <button class=\"pagination-btn\" *ngIf=\"firstLastButtons\" [disabled]=\"currentPage <= 1\" (click)=\"firstPage()\">««</button>\n\n <!-- Previous button -->\n <button class=\"pagination-btn\" *ngIf=\"nextPreviousButtons\" [disabled]=\"currentPage <= 1\" (click)=\"previous()\">‹ {{ 'APP.PREV' | customTranslate : 'Prev' }}</button>\n\n <!-- Page indicator -->\n <span class=\"pagination-indicator\">{{ 'APP.PAGE' | customTranslate : 'Page' }} {{ currentPage }} {{ 'APP.OF' | customTranslate : 'of' }} {{ totalPageCount }}</span>\n\n <!-- Next button -->\n <button class=\"pagination-btn\" *ngIf=\"nextPreviousButtons\" [disabled]=\"currentPage >= totalPageCount\" (click)=\"next()\">{{ 'APP.NEXT' | customTranslate : 'Next' }} ›</button>\n\n <!-- Last button (if explicitly requested) -->\n <button class=\"pagination-btn\" *ngIf=\"firstLastButtons\" [disabled]=\"currentPage >= totalPageCount\" (click)=\"lastPage()\">»»</button>\n </div>\n </div>\n</div>\n",
|
|
2023
|
+
styles: [".main-cont{display:flex;justify-content:space-between;align-items:center;width:100%;padding:8px 16px;background:var(--comp-bg-color, #ffffff);border-top:1px solid var(--fb-border-default, #e2e8f0);box-sizing:border-box;gap:12px}.pagination-info{color:var(--fb-text-secondary, #64748b);font-size:var(--fs-small, 12px);font-weight:var(--fw-400, 400);white-space:nowrap}.pagination-center{display:flex;align-items:center;justify-content:center;flex:1;min-width:0}.pagination-controls{display:flex;align-items:center;gap:8px;white-space:nowrap}.pagination-rows-wrapper{display:flex;align-items:center;gap:6px;margin-right:6px}.pagination-rows-label{font-size:var(--fs-small, 12px);font-weight:var(--fw-400, 400);color:var(--fb-text-secondary, #64748b);margin:0}.pagination-select-wrapper{position:relative;display:inline-flex;align-items:center}.pagination-select{font-size:var(--fs-small, 12px);color:var(--fb-text-primary, #0f172a);background-color:var(--comp-bg-color, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);border-radius:4px;padding:3px 22px 3px 8px;appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;line-height:normal}.pagination-select:hover{border-color:var(--fb-border-strong, #cbd5e1)}.pagination-select:focus{outline:none;border-color:var(--fb-focus-ring, #003566)}.pagination-select-arrow{position:absolute;right:7px;pointer-events:none;color:var(--fb-text-secondary, #64748b)}.pagination-nav{display:flex;align-items:center;gap:6px}.pagination-btn{background:var(--comp-bg-color, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);color:var(--fb-text-secondary, #64748b);font-size:var(--fs-small, 12px);padding:3px 10px;border-radius:4px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease-in-out;line-height:normal}.pagination-btn:hover:not(:disabled){border-color:var(--fb-border-strong, #cbd5e1);background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a)}.pagination-btn:disabled{opacity:.45;cursor:not-allowed;color:var(--fb-text-disabled, #94a3b8);border-color:var(--fb-border-subtle, #f1f5f9)}.pagination-indicator{font-size:var(--fs-small, 12px);color:var(--fb-text-primary, #0f172a);font-weight:var(--fw-400, 400);padding:0 4px}\n"]
|
|
2004
2024
|
}]
|
|
2005
2025
|
}],
|
|
2006
2026
|
ctorParameters: () => [],
|
|
@@ -2090,7 +2110,7 @@ var PopoverComponent = class PopoverComponent {
|
|
|
2090
2110
|
},
|
|
2091
2111
|
ngImport: i0,
|
|
2092
2112
|
template: "<!--SKS4FEB25 Hover Trigger Element -->\n<div cdk-overlay-origin #trigger=\"cdkOverlayOrigin\" class=\"hover-base\" \n (mouseenter)=\"openPopover()\" \n (mouseleave)=\"closePopoverWithDelay()\">\n <ng-content select=\".hover-base\"></ng-content>\n</div>\n<!--SKS4FEB25 Popover Content Template -->\n<ng-template #popoverContent>\n <ng-content select=\".hover-content\"></ng-content>\n</ng-template>\n\n\n<!-- Bootstrap Popover -->\n<div *ngIf=\"isBootstrap\" class=\"bc-popover\">\n <div class=\"btn btn-secondary me-2\" data-bs-container=\"body\" data-bs-trigger=\"hover\" data-bs-toggle=\"popover\" data-bs-placement=\"top\" [attr.data-bs-content]=\"dynamicPopover\">\n <ng-container *ngTemplateOutlet=\"popoverContent\"></ng-container>\n </div>\n</div>\n\n<!-- Fusion Custom Popover -->\n<!-- MR 19SEP26 Popover Overlay with outside-click and hover handlers -->\n<ng-template cdk-connected-overlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"isPopoverOpen\"\n [cdkConnectedOverlayScrollStrategy]=\"createScrollStrategy()\"\n (overlayOutsideClick)=\"closeImmediately()\">\n <div *ngIf=\"!isBootstrap\" class=\"fusion-popover popover-base\"\n (mouseenter)=\"keepPopoverOpen()\" \n (mouseleave)=\"closePopoverWithDelay()\">\n <ng-container *ngTemplateOutlet=\"popoverContent\"></ng-container>\n </div>\n</ng-template>",
|
|
2093
|
-
styles: [".fusion-popover{position:relative}.popover-content{display:none;position:fixed;z-index:1000;right:0;border:1px solid var(--border-
|
|
2113
|
+
styles: [".fusion-popover{position:relative}.popover-content{display:none;position:fixed;z-index:1000;right:0;border:1px solid var(--fb-border-default, #e2e8f0);background-color:var(--fb-surface-elevated, #ffffff);border-radius:4px}.popover-base{padding-left:10px}.popover-base:hover>.popover-content{display:block}.popover-content:has(.white-parent){border-radius:8px;background:var(--fb-surface-elevated, #ffffff);box-shadow:0 0 16px var(--fb-backdrop, rgba(0, 0, 0, .12))}\n"],
|
|
2094
2114
|
dependencies: [
|
|
2095
2115
|
{
|
|
2096
2116
|
kind: "ngmodule",
|
|
@@ -2192,7 +2212,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2192
2212
|
],
|
|
2193
2213
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2194
2214
|
template: "<!--SKS4FEB25 Hover Trigger Element -->\n<div cdk-overlay-origin #trigger=\"cdkOverlayOrigin\" class=\"hover-base\" \n (mouseenter)=\"openPopover()\" \n (mouseleave)=\"closePopoverWithDelay()\">\n <ng-content select=\".hover-base\"></ng-content>\n</div>\n<!--SKS4FEB25 Popover Content Template -->\n<ng-template #popoverContent>\n <ng-content select=\".hover-content\"></ng-content>\n</ng-template>\n\n\n<!-- Bootstrap Popover -->\n<div *ngIf=\"isBootstrap\" class=\"bc-popover\">\n <div class=\"btn btn-secondary me-2\" data-bs-container=\"body\" data-bs-trigger=\"hover\" data-bs-toggle=\"popover\" data-bs-placement=\"top\" [attr.data-bs-content]=\"dynamicPopover\">\n <ng-container *ngTemplateOutlet=\"popoverContent\"></ng-container>\n </div>\n</div>\n\n<!-- Fusion Custom Popover -->\n<!-- MR 19SEP26 Popover Overlay with outside-click and hover handlers -->\n<ng-template cdk-connected-overlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"isPopoverOpen\"\n [cdkConnectedOverlayScrollStrategy]=\"createScrollStrategy()\"\n (overlayOutsideClick)=\"closeImmediately()\">\n <div *ngIf=\"!isBootstrap\" class=\"fusion-popover popover-base\"\n (mouseenter)=\"keepPopoverOpen()\" \n (mouseleave)=\"closePopoverWithDelay()\">\n <ng-container *ngTemplateOutlet=\"popoverContent\"></ng-container>\n </div>\n</ng-template>",
|
|
2195
|
-
styles: [".fusion-popover{position:relative}.popover-content{display:none;position:fixed;z-index:1000;right:0;border:1px solid var(--border-
|
|
2215
|
+
styles: [".fusion-popover{position:relative}.popover-content{display:none;position:fixed;z-index:1000;right:0;border:1px solid var(--fb-border-default, #e2e8f0);background-color:var(--fb-surface-elevated, #ffffff);border-radius:4px}.popover-base{padding-left:10px}.popover-base:hover>.popover-content{display:block}.popover-content:has(.white-parent){border-radius:8px;background:var(--fb-surface-elevated, #ffffff);box-shadow:0 0 16px var(--fb-backdrop, rgba(0, 0, 0, .12))}\n"]
|
|
2196
2216
|
}]
|
|
2197
2217
|
}],
|
|
2198
2218
|
ctorParameters: () => [{ type: i1$2.Overlay }, { type: i0.ChangeDetectorRef }],
|
|
@@ -2458,8 +2478,8 @@ var FileUploadComponent = class FileUploadComponent {
|
|
|
2458
2478
|
radioSelectEmit: "radioSelectEmit"
|
|
2459
2479
|
},
|
|
2460
2480
|
ngImport: i0,
|
|
2461
|
-
template: "<div class=\"file-modal-backdrop\" *ngIf=\"showFileModal\">\n <div class=\"file-modal\">\n <!-- Body -->\n <div class=\"file-modal-body\">\n <!-- SKS3APR26 Header -->\n <div class=\"file-modal-header\">\n <h2>{{ headerName }}</h2>\n <button class=\"close-btn\" (click)=\"close()\">\n <!-- MR
|
|
2462
|
-
styles: [".drag-drop-files{width:100%;border:2px dashed var(--
|
|
2481
|
+
template: "<div class=\"file-modal-backdrop\" *ngIf=\"showFileModal\">\n <div class=\"file-modal\">\n <!-- Body -->\n <div class=\"file-modal-body\">\n <!-- SKS3APR26 Header -->\n <div class=\"file-modal-header\">\n <h2>{{ headerName }}</h2>\n <button class=\"close-btn\" (click)=\"close()\">\n <!-- MR 16NOV26 Remediate template icon color to semantic token -->\n <i class=\"fusion-icon fusion-icon-size-xl fusion-icon-close-square header-sub-icon\" style=\"color: var(--fb-text-primary, #0f172a);\"></i>\n </button>\n </div>\n <p *ngIf=\"bodyHeaderName\" class=\"steps-title\">{{ bodyHeaderName }}</p>\n <ol *ngIf=\"isTemplate || bodyContent.length > 1\" class=\"steps-list\" style=\"font-size: 13px;\">\n @if(isTemplate){\n <li class=\"fc-lite\" style=\"font-size: 13px;\">\n @if(templateContent){\n {{ templateContent }}\n }\n <span class=\"step-link\" style=\"font-size: 13px;\" (click)=\"downloadTemplate()\">\n {{ 'APP_HRM_EMPLOYEES_EMPLOYEES.HERE' | customTranslate : 'here'}}\n </span>.\n </li>\n }\n @if(bodyContent.length > 1 || isTemplate){\n <ng-container *ngFor=\"let cont of bodyContent\">\n <li style=\"font-size: 13px;\" class=\"fc-lite\">{{ cont }}</li>\n </ng-container>\n } \n </ol>\n @if(bodyContent.length === 1 && !isTemplate) {\n <div style=\"margin-bottom: 10px; font-size: 13px;\" class=\"fc-lite\"> {{ bodyContent?.[0] }} </div>\n }\n <nxt-file-upload [allFiles]=\"uploadedFiles\" mode=\"edit\" [fileConfig]=\"fileRestrictions\" [dragAndDrop]=\"true\"\n (selectedFileData)=\"onFileSelected($event)\" [hideSubtext]=\"true\"\n (deletedFileData)=\"deleteFile($event)\">\n </nxt-file-upload>\n <div style=\"margin-bottom: 5px; font-size: 13px;\" class=\"fc-lite\"> \n @if(allowedFileTypes.length > 0) {\n Only support {{ allowedFileTypes.join(', ') }}\n }\n </div>\n </div>\n <!-- MR 18OCT26 Refactor action button styles to theme tokens -->\n <div class=\"file-modal-footer\">\n <nxt-button class=\"data-table-fsbtn\"\n (buttonClickEmit)=\"uploadFile()\" [btnTextColor]=\"'var(--fb-text-on-action, #ffffff)'\"\n [buttonDisable]=\"isLoading\"\n [btnBorder]=\"'1'\" [btnBorderColor]=\"'var(--fb-border-default, #e2e8f0)'\"\n [btnBorderRadius]=\"'8'\" \n [buttonType]=\"'custom-btn'\" [isLoading]=\"isLoading\"\n [buttonValue]=\"'APP_HRM_EMPLOYEES_EMPLOYEES.SAVE' | customTranslate :'Save'\">\n </nxt-button>\n <nxt-button (buttonClickEmit)=\"close()\" [buttonValue]=\"'APP_HRM_EMPLOYEES_EMPLOYEES.CANCEL' | customTranslate :'Cancel'\"\n [btnBgColor]=\"'var(--comp-bg-color)'\" [btnTextColor]=\"'var(--fc-primary-color)'\" [btnBorder]=\"'1'\"\n [btnBorderColor]=\"'var(--border-color)'\" [btnBorderRadius]=\"'8'\"\n [buttonType]=\"'custom-btn'\">\n </nxt-button>\n </div>\n </div>\n</div>",
|
|
2482
|
+
styles: [".drag-drop-files{width:100%;border:2px dashed var(--fb-action-border, #bae6fd);border-radius:10px;padding:25px;background:var(--fb-action-surface, #e0f2fe);cursor:pointer;position:relative}.drag-drop-files input{padding:0;margin:0;height:.1px;width:.1px;position:absolute;top:0;left:0}.upload-preview-wrapper{margin:15px 6px 0;overflow-y:scroll;height:400px;gap:10px;justify-content:space-between;padding-block:20px}.preview-section{position:relative;overflow:scroll;min-width:180px}.preview-section .i-frame-wrapper{overflow:scroll;height:150px}.preview-section .badge{margin-top:0}.i-frame{height:78%!important;width:100%}.i-frame ::ng-deep body:has(img){margin:0;height:100%}.i-frame ::ng-deep img{object-fit:contain;width:100%;height:100%}.file-name{font-size:var(--fs-normal);color:var(--fb-text-primary, #0f172a);padding-left:10px}.upload-information span{display:inline-flex;font-size:var(--fs-small);color:var(--fb-text-secondary, #64748b)}.vertical-separator{width:1px;height:23px;background:var(--fb-border-default, #e2e8f0);margin:2px 5px}.drag-drop-header{color:var(--fc-primary-color, #0140c1);font-size:18px}.or-break{position:relative;font-size:var(--fs-medium);color:var(--fb-text-muted, #94a3b8)}.or-break:before,.or-break:after{width:75px;height:1px;background:var(--fb-border-subtle, #f1f5f9);content:\"\";position:absolute;top:50%}.or-break:before{left:calc(50% - 90px)}.or-break:after{right:calc(50% - 90px)}.i-frame-wrapper .badge{border-radius:0}.file-modal-backdrop{position:fixed;inset:0;background:var(--fb-backdrop, rgba(0, 0, 0, .5));-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;justify-content:center;align-items:center;z-index:99999}.file-modal{background:var(--fb-surface-elevated, #ffffff);width:520px;max-width:95%;border-radius:var(--radius-large, 12px);padding:0;box-shadow:var(--shadow-lg);animation:fadeIn .25s ease;overflow:hidden}.file-modal-header{padding:18px 0 0;display:flex;justify-content:space-between;align-items:center}.file-modal-header h2{margin:0;font-size:17px;font-weight:700}.close-btn{background:transparent;border:none;font-size:26px;line-height:20px;cursor:pointer;color:var(--fb-text-primary, #0f172a);padding:0}.file-modal-body{padding:0 22px}.steps-title{margin-bottom:5px}.steps-list li{margin-bottom:8px;color:var(--fb-text-muted, #94a3b8);line-height:1.45}.step-link{color:var(--fc-primary-color, #0140c1);cursor:pointer;text-decoration:underline}.step-link:hover{color:var(--fb-action-hover, #00284d)!important}.file-modal-footer{padding:5px 15px 22px;gap:10px;display:flex;justify-content:center}\n"],
|
|
2463
2483
|
dependencies: [
|
|
2464
2484
|
{
|
|
2465
2485
|
kind: "ngmodule",
|
|
@@ -2563,8 +2583,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2563
2583
|
NxtFileUpload,
|
|
2564
2584
|
NxtButtonComponent
|
|
2565
2585
|
],
|
|
2566
|
-
template: "<div class=\"file-modal-backdrop\" *ngIf=\"showFileModal\">\n <div class=\"file-modal\">\n <!-- Body -->\n <div class=\"file-modal-body\">\n <!-- SKS3APR26 Header -->\n <div class=\"file-modal-header\">\n <h2>{{ headerName }}</h2>\n <button class=\"close-btn\" (click)=\"close()\">\n <!-- MR
|
|
2567
|
-
styles: [".drag-drop-files{width:100%;border:2px dashed var(--
|
|
2586
|
+
template: "<div class=\"file-modal-backdrop\" *ngIf=\"showFileModal\">\n <div class=\"file-modal\">\n <!-- Body -->\n <div class=\"file-modal-body\">\n <!-- SKS3APR26 Header -->\n <div class=\"file-modal-header\">\n <h2>{{ headerName }}</h2>\n <button class=\"close-btn\" (click)=\"close()\">\n <!-- MR 16NOV26 Remediate template icon color to semantic token -->\n <i class=\"fusion-icon fusion-icon-size-xl fusion-icon-close-square header-sub-icon\" style=\"color: var(--fb-text-primary, #0f172a);\"></i>\n </button>\n </div>\n <p *ngIf=\"bodyHeaderName\" class=\"steps-title\">{{ bodyHeaderName }}</p>\n <ol *ngIf=\"isTemplate || bodyContent.length > 1\" class=\"steps-list\" style=\"font-size: 13px;\">\n @if(isTemplate){\n <li class=\"fc-lite\" style=\"font-size: 13px;\">\n @if(templateContent){\n {{ templateContent }}\n }\n <span class=\"step-link\" style=\"font-size: 13px;\" (click)=\"downloadTemplate()\">\n {{ 'APP_HRM_EMPLOYEES_EMPLOYEES.HERE' | customTranslate : 'here'}}\n </span>.\n </li>\n }\n @if(bodyContent.length > 1 || isTemplate){\n <ng-container *ngFor=\"let cont of bodyContent\">\n <li style=\"font-size: 13px;\" class=\"fc-lite\">{{ cont }}</li>\n </ng-container>\n } \n </ol>\n @if(bodyContent.length === 1 && !isTemplate) {\n <div style=\"margin-bottom: 10px; font-size: 13px;\" class=\"fc-lite\"> {{ bodyContent?.[0] }} </div>\n }\n <nxt-file-upload [allFiles]=\"uploadedFiles\" mode=\"edit\" [fileConfig]=\"fileRestrictions\" [dragAndDrop]=\"true\"\n (selectedFileData)=\"onFileSelected($event)\" [hideSubtext]=\"true\"\n (deletedFileData)=\"deleteFile($event)\">\n </nxt-file-upload>\n <div style=\"margin-bottom: 5px; font-size: 13px;\" class=\"fc-lite\"> \n @if(allowedFileTypes.length > 0) {\n Only support {{ allowedFileTypes.join(', ') }}\n }\n </div>\n </div>\n <!-- MR 18OCT26 Refactor action button styles to theme tokens -->\n <div class=\"file-modal-footer\">\n <nxt-button class=\"data-table-fsbtn\"\n (buttonClickEmit)=\"uploadFile()\" [btnTextColor]=\"'var(--fb-text-on-action, #ffffff)'\"\n [buttonDisable]=\"isLoading\"\n [btnBorder]=\"'1'\" [btnBorderColor]=\"'var(--fb-border-default, #e2e8f0)'\"\n [btnBorderRadius]=\"'8'\" \n [buttonType]=\"'custom-btn'\" [isLoading]=\"isLoading\"\n [buttonValue]=\"'APP_HRM_EMPLOYEES_EMPLOYEES.SAVE' | customTranslate :'Save'\">\n </nxt-button>\n <nxt-button (buttonClickEmit)=\"close()\" [buttonValue]=\"'APP_HRM_EMPLOYEES_EMPLOYEES.CANCEL' | customTranslate :'Cancel'\"\n [btnBgColor]=\"'var(--comp-bg-color)'\" [btnTextColor]=\"'var(--fc-primary-color)'\" [btnBorder]=\"'1'\"\n [btnBorderColor]=\"'var(--border-color)'\" [btnBorderRadius]=\"'8'\"\n [buttonType]=\"'custom-btn'\">\n </nxt-button>\n </div>\n </div>\n</div>",
|
|
2587
|
+
styles: [".drag-drop-files{width:100%;border:2px dashed var(--fb-action-border, #bae6fd);border-radius:10px;padding:25px;background:var(--fb-action-surface, #e0f2fe);cursor:pointer;position:relative}.drag-drop-files input{padding:0;margin:0;height:.1px;width:.1px;position:absolute;top:0;left:0}.upload-preview-wrapper{margin:15px 6px 0;overflow-y:scroll;height:400px;gap:10px;justify-content:space-between;padding-block:20px}.preview-section{position:relative;overflow:scroll;min-width:180px}.preview-section .i-frame-wrapper{overflow:scroll;height:150px}.preview-section .badge{margin-top:0}.i-frame{height:78%!important;width:100%}.i-frame ::ng-deep body:has(img){margin:0;height:100%}.i-frame ::ng-deep img{object-fit:contain;width:100%;height:100%}.file-name{font-size:var(--fs-normal);color:var(--fb-text-primary, #0f172a);padding-left:10px}.upload-information span{display:inline-flex;font-size:var(--fs-small);color:var(--fb-text-secondary, #64748b)}.vertical-separator{width:1px;height:23px;background:var(--fb-border-default, #e2e8f0);margin:2px 5px}.drag-drop-header{color:var(--fc-primary-color, #0140c1);font-size:18px}.or-break{position:relative;font-size:var(--fs-medium);color:var(--fb-text-muted, #94a3b8)}.or-break:before,.or-break:after{width:75px;height:1px;background:var(--fb-border-subtle, #f1f5f9);content:\"\";position:absolute;top:50%}.or-break:before{left:calc(50% - 90px)}.or-break:after{right:calc(50% - 90px)}.i-frame-wrapper .badge{border-radius:0}.file-modal-backdrop{position:fixed;inset:0;background:var(--fb-backdrop, rgba(0, 0, 0, .5));-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;justify-content:center;align-items:center;z-index:99999}.file-modal{background:var(--fb-surface-elevated, #ffffff);width:520px;max-width:95%;border-radius:var(--radius-large, 12px);padding:0;box-shadow:var(--shadow-lg);animation:fadeIn .25s ease;overflow:hidden}.file-modal-header{padding:18px 0 0;display:flex;justify-content:space-between;align-items:center}.file-modal-header h2{margin:0;font-size:17px;font-weight:700}.close-btn{background:transparent;border:none;font-size:26px;line-height:20px;cursor:pointer;color:var(--fb-text-primary, #0f172a);padding:0}.file-modal-body{padding:0 22px}.steps-title{margin-bottom:5px}.steps-list li{margin-bottom:8px;color:var(--fb-text-muted, #94a3b8);line-height:1.45}.step-link{color:var(--fc-primary-color, #0140c1);cursor:pointer;text-decoration:underline}.step-link:hover{color:var(--fb-action-hover, #00284d)!important}.file-modal-footer{padding:5px 15px 22px;gap:10px;display:flex;justify-content:center}\n"]
|
|
2568
2588
|
}]
|
|
2569
2589
|
}],
|
|
2570
2590
|
ctorParameters: () => [],
|
|
@@ -3309,8 +3329,8 @@ var SideScreenComponent = class SideScreenComponent {
|
|
|
3309
3329
|
},
|
|
3310
3330
|
outputs: { sideScreenEmittedEvent: "sideScreenEmittedEvent" },
|
|
3311
3331
|
ngImport: i0,
|
|
3312
|
-
template: "<!-- <div class=\"side-screen\">\n <div class=\"side-header\">\n <p class=\"flex content-space-between mb-0\">{{headerTitle}}\n <span class=\"close-icon\"><img src=\"../assets/images/icons/general/cross-icon.svg\" (click)=\"sideScreenEmittedEvent.emit({'open': false})\" style=\"cursor: pointer;\" class=\"svg-icon-white\"></span>\n </p>\n </div>\n <div class=\"side-content\"> -->\n <form class=\"addPayRollComponent\" [formGroup]=\"addPayRollComponent\" (ngSubmit)=\"submitPayRollComponent()\">\n <!-- <div class=\"scrollable-content\"> -->\n <div class=\"row\">\n <div class=\"col-md-10\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.COMPONENT_TYPE' | customTranslate : 'Component Type' }}<span style=\"color: var(--clr-error, #dc3545);\">*</span></label> \n <app-drop-down [lists]='componentTypeList' tabindex=\"1\" dropDownHeight=\"38px\" dropDownWidth=\"100%\" (dataEmit)=\"dropdownEmitFunction($event, 'type')\" [selectedData]=\"selectedComponentType\"></app-drop-down>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">{{'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME' | customTranslate : 'Component Name' }}<span style=\"color: var(--clr-error, #dc3545);\">*</span></label>\n <app-drop-down [lists]=\"nameList\" tabindex=\"1\" dropDownHeight=\"38px\" dropDownWidth=\"100%\"\n (dataEmit)=\"dropdownEmitFunction($event, 'name')\" [selectedData]=\"selectedComp\">\n </app-drop-down>\n <div *ngIf=\"selectedComp === otherSection || selectedComp === 'Reimbursements' \" [class]=\"addPayRollComponent.controls['name'].invalid && addPayRollComponent.controls['name'].touched ? 'has-error' : '' \">\n <input [matTooltip]=\"'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME_TOOL_TIP' | customTranslate : 'Underscores and Spaces are not allowed'\" type=\"text\" class=\"form-control\" tabindex=\"2\" [placeholder]=\"'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME' | customTranslate : 'Component Name'\"\n aria-label=\"Text input with dropdown button\" formControlName=\"name\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['name'].invalid && addPayRollComponent.controls['name'].touched && addPayRollComponent.controls['name'].hasError('pattern') ? 'display: block' : 'display: none'\">{{ 'APP_HRM_PAYROLL_SETTINGS.VAL_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">{{'APP_HRM_PAYROLL_SETTINGS.NAME_IN_PAYSLIP' | customTranslate : 'Name in Payslip' }}<span style=\"color: var(--clr-error, #dc3545);\">*</span></label>\n <div [class]=\"addPayRollComponent.controls['nameInPaySlip'].invalid && addPayRollComponent.controls['nameInPaySlip'].touched ? 'has-error' : '' \">\n <input type=\"text\" class=\"form-control\" tabindex=\"3\" [placeholder]=\"'APP_HRM_PAYROLL_SETTINGS.NAME_IN_PAYSLIP' | customTranslate : 'Name in Payslip'\"\n aria-label=\"Text input with dropdown button\" formControlName=\"nameInPaySlip\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['nameInPaySlip'].invalid && addPayRollComponent.controls['nameInPaySlip'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.VAL_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n <!-- SK15JUL24 adding isVariable type -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Earnings'\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK02JUN25 fixed and variable components added -->\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.PAY_TYPE' | customTranslate : 'Pay Type' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isVariablePay\" tabindex=\"12\"\n formControlName=\"isVariablePay\" [value]=\"false\" (click)=\"radioEmit('isVariablePay', false)\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.FIXED_COMPONENT' | customTranslate : 'Fixed Component' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isVariablePay\" tabindex=\"11\"\n formControlName=\"isVariablePay\" [value]=\"true\" (click)=\"radioEmit('isVariablePay', true)\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.VARIABLE_COMPONENT' | customTranslate : 'Variable Component' }}</span>\n </label>\n </div>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['isVariablePay'].value === true || addPayRollComponent.controls['type'].value === 'Deductions'\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK02JUN25 fixed and variable components added -->\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.IS_PART_OF_CTC' | customTranslate : 'Is Part of CTC' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isPartOfCTC\" tabindex=\"12\"\n formControlName=\"isPartOfCTC\" [value]=\"true\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.YES' | customTranslate : 'Yes' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isPartOfCTC\" tabindex=\"11\"\n formControlName=\"isPartOfCTC\" [value]=\"false\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.NO' | customTranslate : 'No' }}</span>\n </label>\n </div>\n </div>\n </div>\n <div class=\"show-only-if type-is-deduction\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Allowances' || addPayRollComponent.controls['type'].value == 'Earnings' \" >\n <div class=\"col-md-11 mt-2\" *ngIf=\"addPayRollComponent.controls['isVariablePay'].value\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.FREQUENCY' | customTranslate : 'Frequency' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"proRataBasis\" tabindex=\"12\"\n formControlName=\"proRataBasis\" [value]=\"'regular'\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.REGULAR' | customTranslate : 'Regular' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"proRataBasis\" tabindex=\"11\"\n formControlName=\"proRataBasis\" [value]=\"'oneTime'\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.ONE_TIME' | customTranslate : 'One Time' }}</span>\n </label>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.CALCULATION_TYPE' | customTranslate : 'Calculation Type' }}</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"7\"\n formControlName=\"calculationType\" [value]=\"'flat'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.FLAT_AMOUNT' | customTranslate : 'Flat Amount' }}</span>\n </label>\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"8\"\n formControlName=\"calculationType\" [value]=\"'percentage'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.PERCENTAGE_BASIC' | customTranslate : 'Percentage of Basic' }}</span>\n </label>\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"8\"\n formControlName=\"calculationType\" [value]=\"'basicAndDA'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.PERCENTAGE_BASIC_DA' | customTranslate : 'Percentage of Basic and DA' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"9\"\n formControlName=\"calculationType\" [value]=\"'fixed'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.GROSS_PER' | customTranslate : 'Percentage of Gross' }}</span>\n </label>\n <!-- SK02JUN25 % of CTC added -->\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"9\"\n formControlName=\"calculationType\" [value]=\"'ctc'\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.CTC_PER' | customTranslate : 'Percentage of CTC' }}</span>\n </label>\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['calculationType'].invalid && addPayRollComponent.controls['calculationType'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">{{ 'APP_HRM_PAYROLL_SETTINGS.REQUIRED_FIELD' | customTranslate : 'This field is required.' }}\n </span>\n </p>\n </div>\n </div>\n <!-- SK25AUG25 if it is one time componente, amount input will will be disabled -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['proRataBasis'].value != 'oneTime' \">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">Enter {{addPayRollComponent.controls['calculationType'].value == 'flat' ? 'Amount' : 'Percentage'}}</label>\n <div [class]=\"addPayRollComponent.controls['amount'].invalid && addPayRollComponent.controls['amount'].touched ? 'has-error' : '' \" class=\"flex flex-row\">\n <input type=\"number\" class=\"form-control\" tabindex=\"10\" placeholder=\"\" [ngClass]=\"{'w-25':(addPayRollComponent.controls['calculationType'].value == 'percentage' || addPayRollComponent.controls['calculationType'].value == 'fixed' || addPayRollComponent.controls['calculationType'].value == 'ctc')}\"\n aria-label=\"Text input with dropdown button\" formControlName=\"amount\">\n <div class=\"ms-2 flex\" style=\"align-items: center;\">\n <div class=\"label-txt\" *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'percentage'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_BASIC' | customTranslate : 'of Basic' }}</div>\n <div *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'fixed'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_GROSS' | customTranslate : 'of Gross' }}</div>\n <div *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'ctc'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_CTC' | customTranslate : 'of CTC' }}</div>\n </div>\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['amount'].invalid && addPayRollComponent.controls['amount'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.ENTER_VALID_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n </div>\n <!-- <div class=\"show-only-if type-is-allowance-or-earnings\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Deductions'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">Deduction frequency</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"deductionFrequency\" tabindex=\"4\"\n formControlName=\"deductionFrequency\" [value]=\"'recurring'\"\n />\n <span class=\"radio-text\">Recurring</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"deductionFrequency\" tabindex=\"5\"\n formControlName=\"deductionFrequency\" [value]=\"'one-time'\"\n />\n <span class=\"radio-text\">One time deduction</span>\n </label>\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['deductionFrequency'].invalid && addPayRollComponent.controls['deductionFrequency'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">This field is required.\n </span>\n </p>\n </div>\n </div>\n </div> -->\n <div class=\"show-only-if type-is-allowance-or-reimbursements\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Reimbursements'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.MAX_REIMBURSABLE_AMT' | customTranslate : 'Maximum Reimbursable Amount' }}</label>\n <div [class]=\"addPayRollComponent.controls['maxReimburse'].invalid && addPayRollComponent.controls['maxReimburse'].touched ? 'has-error' : '' \">\n <input type=\"text\" class=\"form-control\" tabindex=\"4\" placeholder=\"1000\"\n aria-label=\"Text input with dropdown button\" formControlName=\"maxReimburse\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['maxReimburse'].invalid && addPayRollComponent.controls['maxReimburse'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.ENTER_VALID_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n </div>\n <!-- SK20JUN25flexi benefit added -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Earnings' \">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"isFlexiBenefitComponent\" tabindex=\"10\"><p class=\"label-txt mb-0\">{{'APP_HRM_PAYROLL_SETTINGS.IS_FLEXI_BENEFIT' | customTranslate : \"Is Flexi Benefit Component\" }}</p></mat-checkbox>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Deductions' \">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"isEmployerContribution\" tabindex=\"10\"><p class=\"label-txt mb-0\">{{'APP_HRM_PAYROLL_SETTINGS.IS_EMPLOYERS_CONTRIBUTION' | customTranslate : \"Is Employer's contribution\" }}</p></mat-checkbox>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK28FEB26 changes from 'Taxable' to 'Tax Exempted', so what components are exempted from tax is checked -->\n <mat-checkbox formControlName=\"taxable\" tabindex=\"13\" ><p class=\"label-txt mb-0\">{{ 'APP_HRM_PAYROLL_SETTINGS.TAXABLE_EXEMPTED' | customTranslate : 'Tax Exempted' }}</p></mat-checkbox>\n </div>\n </div>\n <div *ngIf=\"addPayRollComponent.controls['taxable'].value == true && addPayRollComponent.controls['type'].value == 'Deductions'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.UNDER_NEW_TAX' | customTranslate : 'Is Exempted under New Tax Regime' }}</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"13\"\n formControlName=\"isExempted\" [value]=\"true\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.YES' | customTranslate : 'Yes' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"14\"\n formControlName=\"isExempted\" [value]=\"false\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.NO' | customTranslate : 'No' }}</span>\n </label>\n <!-- <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"14\"\n formControlName=\"isExempted\" [value]=\"'bothRegime'\"\n />\n <span class=\"radio-text\">Both</span>\n </label> -->\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['deductionFrequency'].invalid && addPayRollComponent.controls['deductionFrequency'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">{{ 'APP_HRM_PAYROLL_SETTINGS.REQUIRED_FIELD' | customTranslate : 'This field is required.' }}\n </span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"active\" tabindex=\"15\"><p class=\"label-txt mb-0\">{{ 'APP_HRM_PAYROLL_SETTINGS.MARK_AS_ACTIVE' | customTranslate : 'Mark this as Active' }}</p></mat-checkbox>\n </div>\n </div>\n <!-- MY 15OCT26 support button loader on save button and disable buttons while loading -->\n <div class=\"button-wrapper flex text-right mb-5\">\n <app-fusion-button [buttonLoadingSpinner]=\"buttonLoadingSpinner\" [buttonDisable]=\"!addPayRollComponent.valid || buttonLoadingSpinner\" [buttonType]=\"'ms-2 side-save-component'\" [tabIndex]=\"12\" buttonValue=\"{{ 'APP_HRM_PAYROLL_SETTINGS.SAVE' | customTranslate : 'Save' }}\" (buttonClickEmit)=\"hitPayrollSettingComponentApi($event)\"></app-fusion-button>\n <app-fusion-button [buttonDisable]=\"buttonLoadingSpinner\" [buttonType]=\"'text-only side-cancel-component'\" [tabIndex]=\"13\" buttonValue=\"{{ 'APP_HRM_PAYROLL_SETTINGS.CANCEL' | customTranslate : 'Cancel' }}\" (buttonClickEmit)=\"cancelSideScreen()\"></app-fusion-button>\n </div>\n </form>\n <!-- </div>\n</div> -->",
|
|
3313
|
-
styles: [".side-screen{background:var(--
|
|
3332
|
+
template: "<!-- <div class=\"side-screen\">\n <div class=\"side-header\">\n <p class=\"flex content-space-between mb-0\">{{headerTitle}}\n <span class=\"close-icon\"><img src=\"../assets/images/icons/general/cross-icon.svg\" (click)=\"sideScreenEmittedEvent.emit({'open': false})\" style=\"cursor: pointer;\" class=\"svg-icon-white\"></span>\n </p>\n </div>\n <div class=\"side-content\"> -->\n <form class=\"addPayRollComponent\" [formGroup]=\"addPayRollComponent\" (ngSubmit)=\"submitPayRollComponent()\">\n <!-- <div class=\"scrollable-content\"> -->\n <div class=\"row\">\n <div class=\"col-md-10\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.COMPONENT_TYPE' | customTranslate : 'Component Type' }}<span style=\"color: var(--fb-error-text, #ef4444);\">*</span></label> \n <app-drop-down [lists]='componentTypeList' tabindex=\"1\" dropDownHeight=\"38px\" dropDownWidth=\"100%\" (dataEmit)=\"dropdownEmitFunction($event, 'type')\" [selectedData]=\"selectedComponentType\"></app-drop-down>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">{{'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME' | customTranslate : 'Component Name' }}<span style=\"color: var(--fb-error-text, #ef4444);\">*</span></label>\n <app-drop-down [lists]=\"nameList\" tabindex=\"1\" dropDownHeight=\"38px\" dropDownWidth=\"100%\"\n (dataEmit)=\"dropdownEmitFunction($event, 'name')\" [selectedData]=\"selectedComp\">\n </app-drop-down>\n <div *ngIf=\"selectedComp === otherSection || selectedComp === 'Reimbursements' \" [class]=\"addPayRollComponent.controls['name'].invalid && addPayRollComponent.controls['name'].touched ? 'has-error' : '' \">\n <input [matTooltip]=\"'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME_TOOL_TIP' | customTranslate : 'Underscores and Spaces are not allowed'\" type=\"text\" class=\"form-control\" tabindex=\"2\" [placeholder]=\"'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME' | customTranslate : 'Component Name'\"\n aria-label=\"Text input with dropdown button\" formControlName=\"name\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['name'].invalid && addPayRollComponent.controls['name'].touched && addPayRollComponent.controls['name'].hasError('pattern') ? 'display: block' : 'display: none'\">{{ 'APP_HRM_PAYROLL_SETTINGS.VAL_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">{{'APP_HRM_PAYROLL_SETTINGS.NAME_IN_PAYSLIP' | customTranslate : 'Name in Payslip' }}<span style=\"color: var(--fb-error-text, #ef4444);\">*</span></label>\n <div [class]=\"addPayRollComponent.controls['nameInPaySlip'].invalid && addPayRollComponent.controls['nameInPaySlip'].touched ? 'has-error' : '' \">\n <input type=\"text\" class=\"form-control\" tabindex=\"3\" [placeholder]=\"'APP_HRM_PAYROLL_SETTINGS.NAME_IN_PAYSLIP' | customTranslate : 'Name in Payslip'\"\n aria-label=\"Text input with dropdown button\" formControlName=\"nameInPaySlip\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['nameInPaySlip'].invalid && addPayRollComponent.controls['nameInPaySlip'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.VAL_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n <!-- SK15JUL24 adding isVariable type -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Earnings'\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK02JUN25 fixed and variable components added -->\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.PAY_TYPE' | customTranslate : 'Pay Type' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isVariablePay\" tabindex=\"12\"\n formControlName=\"isVariablePay\" [value]=\"false\" (click)=\"radioEmit('isVariablePay', false)\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.FIXED_COMPONENT' | customTranslate : 'Fixed Component' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isVariablePay\" tabindex=\"11\"\n formControlName=\"isVariablePay\" [value]=\"true\" (click)=\"radioEmit('isVariablePay', true)\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.VARIABLE_COMPONENT' | customTranslate : 'Variable Component' }}</span>\n </label>\n </div>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['isVariablePay'].value === true || addPayRollComponent.controls['type'].value === 'Deductions'\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK02JUN25 fixed and variable components added -->\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.IS_PART_OF_CTC' | customTranslate : 'Is Part of CTC' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isPartOfCTC\" tabindex=\"12\"\n formControlName=\"isPartOfCTC\" [value]=\"true\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.YES' | customTranslate : 'Yes' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isPartOfCTC\" tabindex=\"11\"\n formControlName=\"isPartOfCTC\" [value]=\"false\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.NO' | customTranslate : 'No' }}</span>\n </label>\n </div>\n </div>\n </div>\n <div class=\"show-only-if type-is-deduction\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Allowances' || addPayRollComponent.controls['type'].value == 'Earnings' \" >\n <div class=\"col-md-11 mt-2\" *ngIf=\"addPayRollComponent.controls['isVariablePay'].value\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.FREQUENCY' | customTranslate : 'Frequency' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"proRataBasis\" tabindex=\"12\"\n formControlName=\"proRataBasis\" [value]=\"'regular'\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.REGULAR' | customTranslate : 'Regular' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"proRataBasis\" tabindex=\"11\"\n formControlName=\"proRataBasis\" [value]=\"'oneTime'\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.ONE_TIME' | customTranslate : 'One Time' }}</span>\n </label>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.CALCULATION_TYPE' | customTranslate : 'Calculation Type' }}</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"7\"\n formControlName=\"calculationType\" [value]=\"'flat'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.FLAT_AMOUNT' | customTranslate : 'Flat Amount' }}</span>\n </label>\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"8\"\n formControlName=\"calculationType\" [value]=\"'percentage'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.PERCENTAGE_BASIC' | customTranslate : 'Percentage of Basic' }}</span>\n </label>\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"8\"\n formControlName=\"calculationType\" [value]=\"'basicAndDA'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.PERCENTAGE_BASIC_DA' | customTranslate : 'Percentage of Basic and DA' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"9\"\n formControlName=\"calculationType\" [value]=\"'fixed'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.GROSS_PER' | customTranslate : 'Percentage of Gross' }}</span>\n </label>\n <!-- SK02JUN25 % of CTC added -->\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"9\"\n formControlName=\"calculationType\" [value]=\"'ctc'\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.CTC_PER' | customTranslate : 'Percentage of CTC' }}</span>\n </label>\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['calculationType'].invalid && addPayRollComponent.controls['calculationType'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">{{ 'APP_HRM_PAYROLL_SETTINGS.REQUIRED_FIELD' | customTranslate : 'This field is required.' }}\n </span>\n </p>\n </div>\n </div>\n <!-- SK25AUG25 if it is one time componente, amount input will will be disabled -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['proRataBasis'].value != 'oneTime' \">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">Enter {{addPayRollComponent.controls['calculationType'].value == 'flat' ? 'Amount' : 'Percentage'}}</label>\n <div [class]=\"addPayRollComponent.controls['amount'].invalid && addPayRollComponent.controls['amount'].touched ? 'has-error' : '' \" class=\"flex flex-row\">\n <input type=\"number\" class=\"form-control\" tabindex=\"10\" placeholder=\"\" [ngClass]=\"{'w-25':(addPayRollComponent.controls['calculationType'].value == 'percentage' || addPayRollComponent.controls['calculationType'].value == 'fixed' || addPayRollComponent.controls['calculationType'].value == 'ctc')}\"\n aria-label=\"Text input with dropdown button\" formControlName=\"amount\">\n <div class=\"ms-2 flex\" style=\"align-items: center;\">\n <div class=\"label-txt\" *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'percentage'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_BASIC' | customTranslate : 'of Basic' }}</div>\n <div *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'fixed'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_GROSS' | customTranslate : 'of Gross' }}</div>\n <div *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'ctc'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_CTC' | customTranslate : 'of CTC' }}</div>\n </div>\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['amount'].invalid && addPayRollComponent.controls['amount'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.ENTER_VALID_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n </div>\n <!-- <div class=\"show-only-if type-is-allowance-or-earnings\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Deductions'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">Deduction frequency</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"deductionFrequency\" tabindex=\"4\"\n formControlName=\"deductionFrequency\" [value]=\"'recurring'\"\n />\n <span class=\"radio-text\">Recurring</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"deductionFrequency\" tabindex=\"5\"\n formControlName=\"deductionFrequency\" [value]=\"'one-time'\"\n />\n <span class=\"radio-text\">One time deduction</span>\n </label>\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['deductionFrequency'].invalid && addPayRollComponent.controls['deductionFrequency'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">This field is required.\n </span>\n </p>\n </div>\n </div>\n </div> -->\n <div class=\"show-only-if type-is-allowance-or-reimbursements\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Reimbursements'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.MAX_REIMBURSABLE_AMT' | customTranslate : 'Maximum Reimbursable Amount' }}</label>\n <div [class]=\"addPayRollComponent.controls['maxReimburse'].invalid && addPayRollComponent.controls['maxReimburse'].touched ? 'has-error' : '' \">\n <input type=\"text\" class=\"form-control\" tabindex=\"4\" placeholder=\"1000\"\n aria-label=\"Text input with dropdown button\" formControlName=\"maxReimburse\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['maxReimburse'].invalid && addPayRollComponent.controls['maxReimburse'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.ENTER_VALID_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n </div>\n <!-- SK20JUN25flexi benefit added -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Earnings' \">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"isFlexiBenefitComponent\" tabindex=\"10\"><p class=\"label-txt mb-0\">{{'APP_HRM_PAYROLL_SETTINGS.IS_FLEXI_BENEFIT' | customTranslate : \"Is Flexi Benefit Component\" }}</p></mat-checkbox>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Deductions' \">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"isEmployerContribution\" tabindex=\"10\"><p class=\"label-txt mb-0\">{{'APP_HRM_PAYROLL_SETTINGS.IS_EMPLOYERS_CONTRIBUTION' | customTranslate : \"Is Employer's contribution\" }}</p></mat-checkbox>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK28FEB26 changes from 'Taxable' to 'Tax Exempted', so what components are exempted from tax is checked -->\n <mat-checkbox formControlName=\"taxable\" tabindex=\"13\" ><p class=\"label-txt mb-0\">{{ 'APP_HRM_PAYROLL_SETTINGS.TAXABLE_EXEMPTED' | customTranslate : 'Tax Exempted' }}</p></mat-checkbox>\n </div>\n </div>\n <div *ngIf=\"addPayRollComponent.controls['taxable'].value == true && addPayRollComponent.controls['type'].value == 'Deductions'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.UNDER_NEW_TAX' | customTranslate : 'Is Exempted under New Tax Regime' }}</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"13\"\n formControlName=\"isExempted\" [value]=\"true\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.YES' | customTranslate : 'Yes' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"14\"\n formControlName=\"isExempted\" [value]=\"false\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.NO' | customTranslate : 'No' }}</span>\n </label>\n <!-- <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"14\"\n formControlName=\"isExempted\" [value]=\"'bothRegime'\"\n />\n <span class=\"radio-text\">Both</span>\n </label> -->\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['deductionFrequency'].invalid && addPayRollComponent.controls['deductionFrequency'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">{{ 'APP_HRM_PAYROLL_SETTINGS.REQUIRED_FIELD' | customTranslate : 'This field is required.' }}\n </span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"active\" tabindex=\"15\"><p class=\"label-txt mb-0\">{{ 'APP_HRM_PAYROLL_SETTINGS.MARK_AS_ACTIVE' | customTranslate : 'Mark this as Active' }}</p></mat-checkbox>\n </div>\n </div>\n <!-- MY 15OCT26 support button loader on save button and disable buttons while loading -->\n <div class=\"button-wrapper flex text-right mb-5\">\n <app-fusion-button [buttonLoadingSpinner]=\"buttonLoadingSpinner\" [buttonDisable]=\"!addPayRollComponent.valid || buttonLoadingSpinner\" [buttonType]=\"'ms-2 side-save-component'\" [tabIndex]=\"12\" buttonValue=\"{{ 'APP_HRM_PAYROLL_SETTINGS.SAVE' | customTranslate : 'Save' }}\" (buttonClickEmit)=\"hitPayrollSettingComponentApi($event)\"></app-fusion-button>\n <app-fusion-button [buttonDisable]=\"buttonLoadingSpinner\" [buttonType]=\"'text-only side-cancel-component'\" [tabIndex]=\"13\" buttonValue=\"{{ 'APP_HRM_PAYROLL_SETTINGS.CANCEL' | customTranslate : 'Cancel' }}\" (buttonClickEmit)=\"cancelSideScreen()\"></app-fusion-button>\n </div>\n </form>\n <!-- </div>\n</div> -->",
|
|
3333
|
+
styles: [".side-screen{background:var(--fb-surface-elevated, #ffffff);max-width:415px;width:100%;position:absolute;right:0;top:0;height:100%;z-index:105;max-height:100vh;overflow:hidden;box-shadow:-1px 0 3px 1px var(--fb-backdrop, rgba(0, 0, 0, .12))}.side-header{padding:12px 20px;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.side-header .close-icon svg{transform:scale(1.5)}.side-content{padding-top:10px}.scrollable-content{max-height:calc(100vh - 190px);overflow:hidden;overflow-y:auto}.tiny-info-text{font-size:var(--fs-small);color:var(--fb-text-primary, #0f172a);font-weight:var(--fw-600)}.label-txt.increase-text,.side-content .form-control,.radio-text{font-size:var(--fs-small)}.error-fields{font-size:10px;color:var(--fb-error-text, #ef4444);padding:0;margin:0}.radio-text{margin-inline:5px;cursor:pointer}.addPayRollComponent .button-wrapper{margin-top:50px}\n"],
|
|
3314
3334
|
dependencies: [
|
|
3315
3335
|
{
|
|
3316
3336
|
kind: "ngmodule",
|
|
@@ -3543,8 +3563,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3543
3563
|
CustomTranslatePipe,
|
|
3544
3564
|
MatTooltipModule
|
|
3545
3565
|
],
|
|
3546
|
-
template: "<!-- <div class=\"side-screen\">\n <div class=\"side-header\">\n <p class=\"flex content-space-between mb-0\">{{headerTitle}}\n <span class=\"close-icon\"><img src=\"../assets/images/icons/general/cross-icon.svg\" (click)=\"sideScreenEmittedEvent.emit({'open': false})\" style=\"cursor: pointer;\" class=\"svg-icon-white\"></span>\n </p>\n </div>\n <div class=\"side-content\"> -->\n <form class=\"addPayRollComponent\" [formGroup]=\"addPayRollComponent\" (ngSubmit)=\"submitPayRollComponent()\">\n <!-- <div class=\"scrollable-content\"> -->\n <div class=\"row\">\n <div class=\"col-md-10\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.COMPONENT_TYPE' | customTranslate : 'Component Type' }}<span style=\"color: var(--clr-error, #dc3545);\">*</span></label> \n <app-drop-down [lists]='componentTypeList' tabindex=\"1\" dropDownHeight=\"38px\" dropDownWidth=\"100%\" (dataEmit)=\"dropdownEmitFunction($event, 'type')\" [selectedData]=\"selectedComponentType\"></app-drop-down>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">{{'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME' | customTranslate : 'Component Name' }}<span style=\"color: var(--clr-error, #dc3545);\">*</span></label>\n <app-drop-down [lists]=\"nameList\" tabindex=\"1\" dropDownHeight=\"38px\" dropDownWidth=\"100%\"\n (dataEmit)=\"dropdownEmitFunction($event, 'name')\" [selectedData]=\"selectedComp\">\n </app-drop-down>\n <div *ngIf=\"selectedComp === otherSection || selectedComp === 'Reimbursements' \" [class]=\"addPayRollComponent.controls['name'].invalid && addPayRollComponent.controls['name'].touched ? 'has-error' : '' \">\n <input [matTooltip]=\"'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME_TOOL_TIP' | customTranslate : 'Underscores and Spaces are not allowed'\" type=\"text\" class=\"form-control\" tabindex=\"2\" [placeholder]=\"'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME' | customTranslate : 'Component Name'\"\n aria-label=\"Text input with dropdown button\" formControlName=\"name\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['name'].invalid && addPayRollComponent.controls['name'].touched && addPayRollComponent.controls['name'].hasError('pattern') ? 'display: block' : 'display: none'\">{{ 'APP_HRM_PAYROLL_SETTINGS.VAL_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">{{'APP_HRM_PAYROLL_SETTINGS.NAME_IN_PAYSLIP' | customTranslate : 'Name in Payslip' }}<span style=\"color: var(--clr-error, #dc3545);\">*</span></label>\n <div [class]=\"addPayRollComponent.controls['nameInPaySlip'].invalid && addPayRollComponent.controls['nameInPaySlip'].touched ? 'has-error' : '' \">\n <input type=\"text\" class=\"form-control\" tabindex=\"3\" [placeholder]=\"'APP_HRM_PAYROLL_SETTINGS.NAME_IN_PAYSLIP' | customTranslate : 'Name in Payslip'\"\n aria-label=\"Text input with dropdown button\" formControlName=\"nameInPaySlip\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['nameInPaySlip'].invalid && addPayRollComponent.controls['nameInPaySlip'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.VAL_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n <!-- SK15JUL24 adding isVariable type -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Earnings'\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK02JUN25 fixed and variable components added -->\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.PAY_TYPE' | customTranslate : 'Pay Type' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isVariablePay\" tabindex=\"12\"\n formControlName=\"isVariablePay\" [value]=\"false\" (click)=\"radioEmit('isVariablePay', false)\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.FIXED_COMPONENT' | customTranslate : 'Fixed Component' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isVariablePay\" tabindex=\"11\"\n formControlName=\"isVariablePay\" [value]=\"true\" (click)=\"radioEmit('isVariablePay', true)\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.VARIABLE_COMPONENT' | customTranslate : 'Variable Component' }}</span>\n </label>\n </div>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['isVariablePay'].value === true || addPayRollComponent.controls['type'].value === 'Deductions'\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK02JUN25 fixed and variable components added -->\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.IS_PART_OF_CTC' | customTranslate : 'Is Part of CTC' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isPartOfCTC\" tabindex=\"12\"\n formControlName=\"isPartOfCTC\" [value]=\"true\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.YES' | customTranslate : 'Yes' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isPartOfCTC\" tabindex=\"11\"\n formControlName=\"isPartOfCTC\" [value]=\"false\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.NO' | customTranslate : 'No' }}</span>\n </label>\n </div>\n </div>\n </div>\n <div class=\"show-only-if type-is-deduction\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Allowances' || addPayRollComponent.controls['type'].value == 'Earnings' \" >\n <div class=\"col-md-11 mt-2\" *ngIf=\"addPayRollComponent.controls['isVariablePay'].value\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.FREQUENCY' | customTranslate : 'Frequency' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"proRataBasis\" tabindex=\"12\"\n formControlName=\"proRataBasis\" [value]=\"'regular'\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.REGULAR' | customTranslate : 'Regular' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"proRataBasis\" tabindex=\"11\"\n formControlName=\"proRataBasis\" [value]=\"'oneTime'\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.ONE_TIME' | customTranslate : 'One Time' }}</span>\n </label>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.CALCULATION_TYPE' | customTranslate : 'Calculation Type' }}</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"7\"\n formControlName=\"calculationType\" [value]=\"'flat'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.FLAT_AMOUNT' | customTranslate : 'Flat Amount' }}</span>\n </label>\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"8\"\n formControlName=\"calculationType\" [value]=\"'percentage'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.PERCENTAGE_BASIC' | customTranslate : 'Percentage of Basic' }}</span>\n </label>\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"8\"\n formControlName=\"calculationType\" [value]=\"'basicAndDA'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.PERCENTAGE_BASIC_DA' | customTranslate : 'Percentage of Basic and DA' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"9\"\n formControlName=\"calculationType\" [value]=\"'fixed'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.GROSS_PER' | customTranslate : 'Percentage of Gross' }}</span>\n </label>\n <!-- SK02JUN25 % of CTC added -->\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"9\"\n formControlName=\"calculationType\" [value]=\"'ctc'\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.CTC_PER' | customTranslate : 'Percentage of CTC' }}</span>\n </label>\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['calculationType'].invalid && addPayRollComponent.controls['calculationType'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">{{ 'APP_HRM_PAYROLL_SETTINGS.REQUIRED_FIELD' | customTranslate : 'This field is required.' }}\n </span>\n </p>\n </div>\n </div>\n <!-- SK25AUG25 if it is one time componente, amount input will will be disabled -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['proRataBasis'].value != 'oneTime' \">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">Enter {{addPayRollComponent.controls['calculationType'].value == 'flat' ? 'Amount' : 'Percentage'}}</label>\n <div [class]=\"addPayRollComponent.controls['amount'].invalid && addPayRollComponent.controls['amount'].touched ? 'has-error' : '' \" class=\"flex flex-row\">\n <input type=\"number\" class=\"form-control\" tabindex=\"10\" placeholder=\"\" [ngClass]=\"{'w-25':(addPayRollComponent.controls['calculationType'].value == 'percentage' || addPayRollComponent.controls['calculationType'].value == 'fixed' || addPayRollComponent.controls['calculationType'].value == 'ctc')}\"\n aria-label=\"Text input with dropdown button\" formControlName=\"amount\">\n <div class=\"ms-2 flex\" style=\"align-items: center;\">\n <div class=\"label-txt\" *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'percentage'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_BASIC' | customTranslate : 'of Basic' }}</div>\n <div *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'fixed'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_GROSS' | customTranslate : 'of Gross' }}</div>\n <div *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'ctc'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_CTC' | customTranslate : 'of CTC' }}</div>\n </div>\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['amount'].invalid && addPayRollComponent.controls['amount'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.ENTER_VALID_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n </div>\n <!-- <div class=\"show-only-if type-is-allowance-or-earnings\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Deductions'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">Deduction frequency</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"deductionFrequency\" tabindex=\"4\"\n formControlName=\"deductionFrequency\" [value]=\"'recurring'\"\n />\n <span class=\"radio-text\">Recurring</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"deductionFrequency\" tabindex=\"5\"\n formControlName=\"deductionFrequency\" [value]=\"'one-time'\"\n />\n <span class=\"radio-text\">One time deduction</span>\n </label>\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['deductionFrequency'].invalid && addPayRollComponent.controls['deductionFrequency'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">This field is required.\n </span>\n </p>\n </div>\n </div>\n </div> -->\n <div class=\"show-only-if type-is-allowance-or-reimbursements\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Reimbursements'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.MAX_REIMBURSABLE_AMT' | customTranslate : 'Maximum Reimbursable Amount' }}</label>\n <div [class]=\"addPayRollComponent.controls['maxReimburse'].invalid && addPayRollComponent.controls['maxReimburse'].touched ? 'has-error' : '' \">\n <input type=\"text\" class=\"form-control\" tabindex=\"4\" placeholder=\"1000\"\n aria-label=\"Text input with dropdown button\" formControlName=\"maxReimburse\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['maxReimburse'].invalid && addPayRollComponent.controls['maxReimburse'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.ENTER_VALID_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n </div>\n <!-- SK20JUN25flexi benefit added -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Earnings' \">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"isFlexiBenefitComponent\" tabindex=\"10\"><p class=\"label-txt mb-0\">{{'APP_HRM_PAYROLL_SETTINGS.IS_FLEXI_BENEFIT' | customTranslate : \"Is Flexi Benefit Component\" }}</p></mat-checkbox>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Deductions' \">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"isEmployerContribution\" tabindex=\"10\"><p class=\"label-txt mb-0\">{{'APP_HRM_PAYROLL_SETTINGS.IS_EMPLOYERS_CONTRIBUTION' | customTranslate : \"Is Employer's contribution\" }}</p></mat-checkbox>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK28FEB26 changes from 'Taxable' to 'Tax Exempted', so what components are exempted from tax is checked -->\n <mat-checkbox formControlName=\"taxable\" tabindex=\"13\" ><p class=\"label-txt mb-0\">{{ 'APP_HRM_PAYROLL_SETTINGS.TAXABLE_EXEMPTED' | customTranslate : 'Tax Exempted' }}</p></mat-checkbox>\n </div>\n </div>\n <div *ngIf=\"addPayRollComponent.controls['taxable'].value == true && addPayRollComponent.controls['type'].value == 'Deductions'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.UNDER_NEW_TAX' | customTranslate : 'Is Exempted under New Tax Regime' }}</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"13\"\n formControlName=\"isExempted\" [value]=\"true\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.YES' | customTranslate : 'Yes' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"14\"\n formControlName=\"isExempted\" [value]=\"false\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.NO' | customTranslate : 'No' }}</span>\n </label>\n <!-- <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"14\"\n formControlName=\"isExempted\" [value]=\"'bothRegime'\"\n />\n <span class=\"radio-text\">Both</span>\n </label> -->\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['deductionFrequency'].invalid && addPayRollComponent.controls['deductionFrequency'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">{{ 'APP_HRM_PAYROLL_SETTINGS.REQUIRED_FIELD' | customTranslate : 'This field is required.' }}\n </span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"active\" tabindex=\"15\"><p class=\"label-txt mb-0\">{{ 'APP_HRM_PAYROLL_SETTINGS.MARK_AS_ACTIVE' | customTranslate : 'Mark this as Active' }}</p></mat-checkbox>\n </div>\n </div>\n <!-- MY 15OCT26 support button loader on save button and disable buttons while loading -->\n <div class=\"button-wrapper flex text-right mb-5\">\n <app-fusion-button [buttonLoadingSpinner]=\"buttonLoadingSpinner\" [buttonDisable]=\"!addPayRollComponent.valid || buttonLoadingSpinner\" [buttonType]=\"'ms-2 side-save-component'\" [tabIndex]=\"12\" buttonValue=\"{{ 'APP_HRM_PAYROLL_SETTINGS.SAVE' | customTranslate : 'Save' }}\" (buttonClickEmit)=\"hitPayrollSettingComponentApi($event)\"></app-fusion-button>\n <app-fusion-button [buttonDisable]=\"buttonLoadingSpinner\" [buttonType]=\"'text-only side-cancel-component'\" [tabIndex]=\"13\" buttonValue=\"{{ 'APP_HRM_PAYROLL_SETTINGS.CANCEL' | customTranslate : 'Cancel' }}\" (buttonClickEmit)=\"cancelSideScreen()\"></app-fusion-button>\n </div>\n </form>\n <!-- </div>\n</div> -->",
|
|
3547
|
-
styles: [".side-screen{background:var(--
|
|
3566
|
+
template: "<!-- <div class=\"side-screen\">\n <div class=\"side-header\">\n <p class=\"flex content-space-between mb-0\">{{headerTitle}}\n <span class=\"close-icon\"><img src=\"../assets/images/icons/general/cross-icon.svg\" (click)=\"sideScreenEmittedEvent.emit({'open': false})\" style=\"cursor: pointer;\" class=\"svg-icon-white\"></span>\n </p>\n </div>\n <div class=\"side-content\"> -->\n <form class=\"addPayRollComponent\" [formGroup]=\"addPayRollComponent\" (ngSubmit)=\"submitPayRollComponent()\">\n <!-- <div class=\"scrollable-content\"> -->\n <div class=\"row\">\n <div class=\"col-md-10\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.COMPONENT_TYPE' | customTranslate : 'Component Type' }}<span style=\"color: var(--fb-error-text, #ef4444);\">*</span></label> \n <app-drop-down [lists]='componentTypeList' tabindex=\"1\" dropDownHeight=\"38px\" dropDownWidth=\"100%\" (dataEmit)=\"dropdownEmitFunction($event, 'type')\" [selectedData]=\"selectedComponentType\"></app-drop-down>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">{{'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME' | customTranslate : 'Component Name' }}<span style=\"color: var(--fb-error-text, #ef4444);\">*</span></label>\n <app-drop-down [lists]=\"nameList\" tabindex=\"1\" dropDownHeight=\"38px\" dropDownWidth=\"100%\"\n (dataEmit)=\"dropdownEmitFunction($event, 'name')\" [selectedData]=\"selectedComp\">\n </app-drop-down>\n <div *ngIf=\"selectedComp === otherSection || selectedComp === 'Reimbursements' \" [class]=\"addPayRollComponent.controls['name'].invalid && addPayRollComponent.controls['name'].touched ? 'has-error' : '' \">\n <input [matTooltip]=\"'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME_TOOL_TIP' | customTranslate : 'Underscores and Spaces are not allowed'\" type=\"text\" class=\"form-control\" tabindex=\"2\" [placeholder]=\"'APP_HRM_PAYROLL_SETTINGS.COMPONENT_NAME' | customTranslate : 'Component Name'\"\n aria-label=\"Text input with dropdown button\" formControlName=\"name\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['name'].invalid && addPayRollComponent.controls['name'].touched && addPayRollComponent.controls['name'].hasError('pattern') ? 'display: block' : 'display: none'\">{{ 'APP_HRM_PAYROLL_SETTINGS.VAL_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">{{'APP_HRM_PAYROLL_SETTINGS.NAME_IN_PAYSLIP' | customTranslate : 'Name in Payslip' }}<span style=\"color: var(--fb-error-text, #ef4444);\">*</span></label>\n <div [class]=\"addPayRollComponent.controls['nameInPaySlip'].invalid && addPayRollComponent.controls['nameInPaySlip'].touched ? 'has-error' : '' \">\n <input type=\"text\" class=\"form-control\" tabindex=\"3\" [placeholder]=\"'APP_HRM_PAYROLL_SETTINGS.NAME_IN_PAYSLIP' | customTranslate : 'Name in Payslip'\"\n aria-label=\"Text input with dropdown button\" formControlName=\"nameInPaySlip\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['nameInPaySlip'].invalid && addPayRollComponent.controls['nameInPaySlip'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.VAL_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n <!-- SK15JUL24 adding isVariable type -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Earnings'\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK02JUN25 fixed and variable components added -->\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.PAY_TYPE' | customTranslate : 'Pay Type' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isVariablePay\" tabindex=\"12\"\n formControlName=\"isVariablePay\" [value]=\"false\" (click)=\"radioEmit('isVariablePay', false)\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.FIXED_COMPONENT' | customTranslate : 'Fixed Component' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isVariablePay\" tabindex=\"11\"\n formControlName=\"isVariablePay\" [value]=\"true\" (click)=\"radioEmit('isVariablePay', true)\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.VARIABLE_COMPONENT' | customTranslate : 'Variable Component' }}</span>\n </label>\n </div>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['isVariablePay'].value === true || addPayRollComponent.controls['type'].value === 'Deductions'\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK02JUN25 fixed and variable components added -->\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.IS_PART_OF_CTC' | customTranslate : 'Is Part of CTC' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isPartOfCTC\" tabindex=\"12\"\n formControlName=\"isPartOfCTC\" [value]=\"true\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.YES' | customTranslate : 'Yes' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isPartOfCTC\" tabindex=\"11\"\n formControlName=\"isPartOfCTC\" [value]=\"false\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.NO' | customTranslate : 'No' }}</span>\n </label>\n </div>\n </div>\n </div>\n <div class=\"show-only-if type-is-deduction\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Allowances' || addPayRollComponent.controls['type'].value == 'Earnings' \" >\n <div class=\"col-md-11 mt-2\" *ngIf=\"addPayRollComponent.controls['isVariablePay'].value\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.FREQUENCY' | customTranslate : 'Frequency' }}</label>\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"proRataBasis\" tabindex=\"12\"\n formControlName=\"proRataBasis\" [value]=\"'regular'\" />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.REGULAR' | customTranslate : 'Regular' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"proRataBasis\" tabindex=\"11\"\n formControlName=\"proRataBasis\" [value]=\"'oneTime'\"/>\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.ONE_TIME' | customTranslate : 'One Time' }}</span>\n </label>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.CALCULATION_TYPE' | customTranslate : 'Calculation Type' }}</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"7\"\n formControlName=\"calculationType\" [value]=\"'flat'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.FLAT_AMOUNT' | customTranslate : 'Flat Amount' }}</span>\n </label>\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"8\"\n formControlName=\"calculationType\" [value]=\"'percentage'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.PERCENTAGE_BASIC' | customTranslate : 'Percentage of Basic' }}</span>\n </label>\n <label *ngIf=\"selectedComp !== basicPay \" class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"8\"\n formControlName=\"calculationType\" [value]=\"'basicAndDA'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.PERCENTAGE_BASIC_DA' | customTranslate : 'Percentage of Basic and DA' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"9\"\n formControlName=\"calculationType\" [value]=\"'fixed'\"\n /> <!-- (focusout)=\"handlePayType($event)\"\n (keyup)=\"handlePayType($event)\" -->\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.GROSS_PER' | customTranslate : 'Percentage of Gross' }}</span>\n </label>\n <!-- SK02JUN25 % of CTC added -->\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"calculationType\" tabindex=\"9\"\n formControlName=\"calculationType\" [value]=\"'ctc'\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.CTC_PER' | customTranslate : 'Percentage of CTC' }}</span>\n </label>\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['calculationType'].invalid && addPayRollComponent.controls['calculationType'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">{{ 'APP_HRM_PAYROLL_SETTINGS.REQUIRED_FIELD' | customTranslate : 'This field is required.' }}\n </span>\n </p>\n </div>\n </div>\n <!-- SK25AUG25 if it is one time componente, amount input will will be disabled -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['proRataBasis'].value != 'oneTime' \">\n <div class=\"col-md-10 mt-2\">\n <label class=\"label-txt\">Enter {{addPayRollComponent.controls['calculationType'].value == 'flat' ? 'Amount' : 'Percentage'}}</label>\n <div [class]=\"addPayRollComponent.controls['amount'].invalid && addPayRollComponent.controls['amount'].touched ? 'has-error' : '' \" class=\"flex flex-row\">\n <input type=\"number\" class=\"form-control\" tabindex=\"10\" placeholder=\"\" [ngClass]=\"{'w-25':(addPayRollComponent.controls['calculationType'].value == 'percentage' || addPayRollComponent.controls['calculationType'].value == 'fixed' || addPayRollComponent.controls['calculationType'].value == 'ctc')}\"\n aria-label=\"Text input with dropdown button\" formControlName=\"amount\">\n <div class=\"ms-2 flex\" style=\"align-items: center;\">\n <div class=\"label-txt\" *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'percentage'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_BASIC' | customTranslate : 'of Basic' }}</div>\n <div *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'fixed'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_GROSS' | customTranslate : 'of Gross' }}</div>\n <div *ngIf=\"addPayRollComponent.controls['calculationType'].value == 'ctc'\">{{ 'APP_HRM_PAYROLL_SETTINGS.OF_CTC' | customTranslate : 'of CTC' }}</div>\n </div>\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['amount'].invalid && addPayRollComponent.controls['amount'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.ENTER_VALID_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n </div>\n <!-- <div class=\"show-only-if type-is-allowance-or-earnings\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Deductions'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">Deduction frequency</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"deductionFrequency\" tabindex=\"4\"\n formControlName=\"deductionFrequency\" [value]=\"'recurring'\"\n />\n <span class=\"radio-text\">Recurring</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"deductionFrequency\" tabindex=\"5\"\n formControlName=\"deductionFrequency\" [value]=\"'one-time'\"\n />\n <span class=\"radio-text\">One time deduction</span>\n </label>\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['deductionFrequency'].invalid && addPayRollComponent.controls['deductionFrequency'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">This field is required.\n </span>\n </p>\n </div>\n </div>\n </div> -->\n <div class=\"show-only-if type-is-allowance-or-reimbursements\" *ngIf=\"addPayRollComponent.controls['type'].value == 'Reimbursements'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.MAX_REIMBURSABLE_AMT' | customTranslate : 'Maximum Reimbursable Amount' }}</label>\n <div [class]=\"addPayRollComponent.controls['maxReimburse'].invalid && addPayRollComponent.controls['maxReimburse'].touched ? 'has-error' : '' \">\n <input type=\"text\" class=\"form-control\" tabindex=\"4\" placeholder=\"1000\"\n aria-label=\"Text input with dropdown button\" formControlName=\"maxReimburse\">\n </div>\n <p class=\"error-fields\"\n [style]=\"addPayRollComponent.controls['maxReimburse'].invalid && addPayRollComponent.controls['maxReimburse'].touched ? 'display: block' : 'display: none' \">{{ 'APP_HRM_PAYROLL_SETTINGS.ENTER_VALID_INPUT' | customTranslate : 'Enter valid input' }}</p>\n </div>\n </div>\n </div>\n <!-- SK20JUN25flexi benefit added -->\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Earnings' \">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"isFlexiBenefitComponent\" tabindex=\"10\"><p class=\"label-txt mb-0\">{{'APP_HRM_PAYROLL_SETTINGS.IS_FLEXI_BENEFIT' | customTranslate : \"Is Flexi Benefit Component\" }}</p></mat-checkbox>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"addPayRollComponent.controls['type'].value === 'Deductions' \">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"isEmployerContribution\" tabindex=\"10\"><p class=\"label-txt mb-0\">{{'APP_HRM_PAYROLL_SETTINGS.IS_EMPLOYERS_CONTRIBUTION' | customTranslate : \"Is Employer's contribution\" }}</p></mat-checkbox>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <!-- SK28FEB26 changes from 'Taxable' to 'Tax Exempted', so what components are exempted from tax is checked -->\n <mat-checkbox formControlName=\"taxable\" tabindex=\"13\" ><p class=\"label-txt mb-0\">{{ 'APP_HRM_PAYROLL_SETTINGS.TAXABLE_EXEMPTED' | customTranslate : 'Tax Exempted' }}</p></mat-checkbox>\n </div>\n </div>\n <div *ngIf=\"addPayRollComponent.controls['taxable'].value == true && addPayRollComponent.controls['type'].value == 'Deductions'\">\n <div class=\"row\">\n <div class=\"col-md-11 mt-2 pe-0\">\n <label class=\"label-txt\">{{ 'APP_HRM_PAYROLL_SETTINGS.UNDER_NEW_TAX' | customTranslate : 'Is Exempted under New Tax Regime' }}</label>\n <div class=\"flex flex-direction-row\">\n <div class=\"ms-4\">\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"13\"\n formControlName=\"isExempted\" [value]=\"true\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.YES' | customTranslate : 'Yes' }}</span>\n </label>\n <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"14\"\n formControlName=\"isExempted\" [value]=\"false\"\n />\n <span class=\"radio-text\">{{ 'APP_HRM_PAYROLL_SETTINGS.NO' | customTranslate : 'No' }}</span>\n </label>\n <!-- <label class=\"label-txt increase-text flex\" style=\"margin-left:-20px;\">\n <input type=\"radio\" name=\"isExempted\" tabindex=\"14\"\n formControlName=\"isExempted\" [value]=\"'bothRegime'\"\n />\n <span class=\"radio-text\">Both</span>\n </label> -->\n </div>\n </div>\n <p class=\"error-msg\" *ngIf=\"addPayRollComponent.controls['deductionFrequency'].invalid && addPayRollComponent.controls['deductionFrequency'].touched\">\n <span>\n <img src=\"../assets/images/icons/general/warning icon.svg\">{{ 'APP_HRM_PAYROLL_SETTINGS.REQUIRED_FIELD' | customTranslate : 'This field is required.' }}\n </span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-11 mt-2\">\n <mat-checkbox formControlName=\"active\" tabindex=\"15\"><p class=\"label-txt mb-0\">{{ 'APP_HRM_PAYROLL_SETTINGS.MARK_AS_ACTIVE' | customTranslate : 'Mark this as Active' }}</p></mat-checkbox>\n </div>\n </div>\n <!-- MY 15OCT26 support button loader on save button and disable buttons while loading -->\n <div class=\"button-wrapper flex text-right mb-5\">\n <app-fusion-button [buttonLoadingSpinner]=\"buttonLoadingSpinner\" [buttonDisable]=\"!addPayRollComponent.valid || buttonLoadingSpinner\" [buttonType]=\"'ms-2 side-save-component'\" [tabIndex]=\"12\" buttonValue=\"{{ 'APP_HRM_PAYROLL_SETTINGS.SAVE' | customTranslate : 'Save' }}\" (buttonClickEmit)=\"hitPayrollSettingComponentApi($event)\"></app-fusion-button>\n <app-fusion-button [buttonDisable]=\"buttonLoadingSpinner\" [buttonType]=\"'text-only side-cancel-component'\" [tabIndex]=\"13\" buttonValue=\"{{ 'APP_HRM_PAYROLL_SETTINGS.CANCEL' | customTranslate : 'Cancel' }}\" (buttonClickEmit)=\"cancelSideScreen()\"></app-fusion-button>\n </div>\n </form>\n <!-- </div>\n</div> -->",
|
|
3567
|
+
styles: [".side-screen{background:var(--fb-surface-elevated, #ffffff);max-width:415px;width:100%;position:absolute;right:0;top:0;height:100%;z-index:105;max-height:100vh;overflow:hidden;box-shadow:-1px 0 3px 1px var(--fb-backdrop, rgba(0, 0, 0, .12))}.side-header{padding:12px 20px;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.side-header .close-icon svg{transform:scale(1.5)}.side-content{padding-top:10px}.scrollable-content{max-height:calc(100vh - 190px);overflow:hidden;overflow-y:auto}.tiny-info-text{font-size:var(--fs-small);color:var(--fb-text-primary, #0f172a);font-weight:var(--fw-600)}.label-txt.increase-text,.side-content .form-control,.radio-text{font-size:var(--fs-small)}.error-fields{font-size:10px;color:var(--fb-error-text, #ef4444);padding:0;margin:0}.radio-text{margin-inline:5px;cursor:pointer}.addPayRollComponent .button-wrapper{margin-top:50px}\n"]
|
|
3548
3568
|
}]
|
|
3549
3569
|
}],
|
|
3550
3570
|
ctorParameters: () => [{ type: i3$2.FormBuilder }],
|
|
@@ -3582,7 +3602,7 @@ var CommonScreenComponent = class CommonScreenComponent {
|
|
|
3582
3602
|
outputs: { sideScreenEmittedEvent: "sideScreenEmittedEvent" },
|
|
3583
3603
|
ngImport: i0,
|
|
3584
3604
|
template: "<div class=\"side-screen\" [style]=\"dynamicScreenStyle\">\n <div class=\"side-header\">\n <p class=\"flex content-space-between mb-0\">{{headerTitle}}\n <span class=\"close-icon\"><img src=\"../assets/images/icons/general/cross-icon.svg\" (click)=\"sideScreenEmittedEvent.emit({'open': false})\" style=\"cursor: pointer; height: 25px; width: 25px;\" class=\"svg-icon-white\"></span>\n </p>\n </div>\n <div class=\"side-content\">\n <div class=\"scrollable-content\">\n <ng-content select=\".side-main-content\"></ng-content>\n </div>\n </div>\n</div>",
|
|
3585
|
-
styles: [".side-screen{background:var(--
|
|
3605
|
+
styles: [".side-screen{background:var(--fb-surface-elevated, #ffffff);max-width:415px;width:100%;position:absolute;right:0;top:0;height:100%;z-index:105;max-height:100vh;overflow:hidden;box-shadow:-1px 0 3px 1px var(--fb-backdrop, rgba(0, 0, 0, .12))}.side-header{padding:12px 20px;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.side-header .close-icon svg{transform:scale(1.5)}.side-content{padding:10px}.scrollable-content{max-height:calc(100vh - 90px);overflow:hidden;overflow-y:auto}.tiny-info-text{font-size:var(--fs-small);color:var(--fb-text-primary, #0f172a);font-weight:var(--fw-600)}.label-txt.increase-text,.side-content .form-control,.radio-text{font-size:var(--fs-normal)}.radio-text{margin-inline:5px;cursor:pointer}.addPayRollComponent .button-wrapper{margin-top:50px}\n"],
|
|
3586
3606
|
dependencies: [{
|
|
3587
3607
|
kind: "ngmodule",
|
|
3588
3608
|
type: CommonModule
|
|
@@ -3604,7 +3624,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3604
3624
|
standalone: true,
|
|
3605
3625
|
imports: [CommonModule, AngularSvgIconModule],
|
|
3606
3626
|
template: "<div class=\"side-screen\" [style]=\"dynamicScreenStyle\">\n <div class=\"side-header\">\n <p class=\"flex content-space-between mb-0\">{{headerTitle}}\n <span class=\"close-icon\"><img src=\"../assets/images/icons/general/cross-icon.svg\" (click)=\"sideScreenEmittedEvent.emit({'open': false})\" style=\"cursor: pointer; height: 25px; width: 25px;\" class=\"svg-icon-white\"></span>\n </p>\n </div>\n <div class=\"side-content\">\n <div class=\"scrollable-content\">\n <ng-content select=\".side-main-content\"></ng-content>\n </div>\n </div>\n</div>",
|
|
3607
|
-
styles: [".side-screen{background:var(--
|
|
3627
|
+
styles: [".side-screen{background:var(--fb-surface-elevated, #ffffff);max-width:415px;width:100%;position:absolute;right:0;top:0;height:100%;z-index:105;max-height:100vh;overflow:hidden;box-shadow:-1px 0 3px 1px var(--fb-backdrop, rgba(0, 0, 0, .12))}.side-header{padding:12px 20px;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.side-header .close-icon svg{transform:scale(1.5)}.side-content{padding:10px}.scrollable-content{max-height:calc(100vh - 90px);overflow:hidden;overflow-y:auto}.tiny-info-text{font-size:var(--fs-small);color:var(--fb-text-primary, #0f172a);font-weight:var(--fw-600)}.label-txt.increase-text,.side-content .form-control,.radio-text{font-size:var(--fs-normal)}.radio-text{margin-inline:5px;cursor:pointer}.addPayRollComponent .button-wrapper{margin-top:50px}\n"]
|
|
3608
3628
|
}]
|
|
3609
3629
|
}],
|
|
3610
3630
|
ctorParameters: () => [],
|
|
@@ -3650,7 +3670,7 @@ var ApprovalScreenComponent = class ApprovalScreenComponent {
|
|
|
3650
3670
|
providers: [DatePipe],
|
|
3651
3671
|
ngImport: i0,
|
|
3652
3672
|
template: "<app-common-screen headerTitle=\"Approval Details\" (sideScreenEmittedEvent)=\"sideScreenEmitted()\">\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 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 </div>\n </div>\n <div class=\"row mb-3\" *ngIf=\"!hideFields.includes('leaveStatus')\">\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 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 </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 \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 mt-4\" style=\"font-size: 20px\">{{'APP.APPROVAL_MANAGERS' | customTranslate : 'Approval Managers'}}</h3>\n <ul *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"list-group mt-4\">\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 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 </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 \n \n \n </app-common-screen>",
|
|
3653
|
-
styles: [""],
|
|
3673
|
+
styles: [".custom-badge.bg-success{background-color:var(--fb-success-surface, #e6f4ea)!important;color:var(--fb-success-text, #137333)!important;border:1px solid var(--fb-success-border, #a8dab5)}.custom-badge.bg-warning{background-color:var(--fb-warning-surface, #fef3c7)!important;color:var(--fb-warning-text, #92400e)!important;border:1px solid var(--fb-warning-border, #fde68a)}.custom-badge.bg-danger{background-color:var(--fb-error-surface, #fee2e2)!important;color:var(--fb-error-text, #991b1b)!important;border:1px solid var(--fb-error-border, #fecaca)}\n"],
|
|
3654
3674
|
dependencies: [
|
|
3655
3675
|
{
|
|
3656
3676
|
kind: "component",
|
|
@@ -3718,7 +3738,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3718
3738
|
CustomTranslatePipe
|
|
3719
3739
|
],
|
|
3720
3740
|
providers: [DatePipe],
|
|
3721
|
-
template: "<app-common-screen headerTitle=\"Approval Details\" (sideScreenEmittedEvent)=\"sideScreenEmitted()\">\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 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 </div>\n </div>\n <div class=\"row mb-3\" *ngIf=\"!hideFields.includes('leaveStatus')\">\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 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 </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 \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 mt-4\" style=\"font-size: 20px\">{{'APP.APPROVAL_MANAGERS' | customTranslate : 'Approval Managers'}}</h3>\n <ul *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"list-group mt-4\">\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 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 </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 \n \n \n </app-common-screen>"
|
|
3741
|
+
template: "<app-common-screen headerTitle=\"Approval Details\" (sideScreenEmittedEvent)=\"sideScreenEmitted()\">\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 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 </div>\n </div>\n <div class=\"row mb-3\" *ngIf=\"!hideFields.includes('leaveStatus')\">\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 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 </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 \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 mt-4\" style=\"font-size: 20px\">{{'APP.APPROVAL_MANAGERS' | customTranslate : 'Approval Managers'}}</h3>\n <ul *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"list-group mt-4\">\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 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 </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 \n \n \n </app-common-screen>",
|
|
3742
|
+
styles: [".custom-badge.bg-success{background-color:var(--fb-success-surface, #e6f4ea)!important;color:var(--fb-success-text, #137333)!important;border:1px solid var(--fb-success-border, #a8dab5)}.custom-badge.bg-warning{background-color:var(--fb-warning-surface, #fef3c7)!important;color:var(--fb-warning-text, #92400e)!important;border:1px solid var(--fb-warning-border, #fde68a)}.custom-badge.bg-danger{background-color:var(--fb-error-surface, #fee2e2)!important;color:var(--fb-error-text, #991b1b)!important;border:1px solid var(--fb-error-border, #fecaca)}\n"]
|
|
3722
3743
|
}]
|
|
3723
3744
|
}],
|
|
3724
3745
|
ctorParameters: () => [{
|
|
@@ -5172,8 +5193,8 @@ var FormsComponent = class FormsComponent {
|
|
|
5172
5193
|
selector: "app-forms",
|
|
5173
5194
|
inputs: { tab: "tab" },
|
|
5174
5195
|
ngImport: i0,
|
|
5175
|
-
template: "<div class=\"flex justify-content-between\">\n <div>\n <!-- SK05DEC25 MR 09NOV26 Standardize sub-nav tabs with modern underline indicator -->\n <ul class=\"nav sub-nav-head tab-view-buttons w-100\" role=\"tablist\">\n <li class=\"nav-item\" role=\"presentation\" *ngFor=\"let tab of tabs; let i = index\">\n <button type=\"button\"\n class=\"nav-link sub-nav\"\n [class.active]=\"eachTypeOfTab === tab.name\"\n role=\"tab\"\n [attr.aria-selected]=\"eachTypeOfTab === tab.name\"\n (click)=\"currentTabNav(tab)\">\n <span class=\"sub-tab-text\">\n {{tab.labelPath || tab.label | customTranslate : tab.label }}\n </span>\n </button>\n </li>\n </ul>\n </div>\n <div class=\"flex ms-2\">\n <!-- SK05DEC25 FY dropdown -->\n <app-drop-down class=\"me-2\" [lists]=\"fyList\" [selectedData]=\"selectedFYData\" dropDownHeight=\"32px\"\n dropFontWeight=\"500\" dropFontSize=\"12px\" dropFontColor=\"#434555\" dropBorderRadius=\"5px\"\n dropDownWidth=\"150px\" (dataEmit)=\"selectedDropdownValue($event, 'fyYear')\">\n </app-drop-down>\n <!-- SK05DEC25 Quarter Dropdown -->\n <app-drop-down class=\"me-2\" [lists]=\"['Q1', 'Q2', 'Q3', 'Q4']\" [selectedData]=\"selectedQuarterData\"\n dropDownHeight=\"32px\" dropFontWeight=\"500\" dropFontSize=\"12px\" dropFontColor=\"#434555\"\n dropBorderRadius=\"5px\" dropDownWidth=\"150px\" (dataEmit)=\"selectedDropdownValue($event, 'quarter')\">\n </app-drop-down>\n <!-- SK05DEC25 Submit Form24Q button -->\n <div class=\"align-self-center me-3\">\n <app-fusion-button [buttonValue]=\" 'APP_HRM_PAYROLL_FORM24Q.SUBMIT_24Q' | customTranslate : 'Submit 24Q' \"\n (buttonClickEmit)=\"submitClick('submit24Q')\" [buttonLoadingSpinner]=\"submitButtonLoader\">\n </app-fusion-button>\n </div>\n </div>\n</div>\n\n\n<div class=\"row\">\n <ng-container *ngFor=\"let comp of components; let j=index\">\n <!-- {{comp._id}} -->\n <div class=\"{{comp.size}}\">\n <!-- SK05DEC25 button component -->\n <div *ngIf=\"comp.type === 'buttons'\" class=\"mb-1\" style=\"display: flex; justify-content: end;\">\n <app-fusion-button *ngFor=\"let button of comp?.config?.buttons\"\n (buttonClickEmit)=\"commonButtonClickEmit(button)\" [buttonType]=\"button.class\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\">\n </app-fusion-button>\n </div>\n <!-- SK05DEC25 table for challans -->\n <div *ngIf=\"comp.type === 'table' && eachTypeOfTab === 'challans' \" class=\"comp-wrap mt-2\">\n <nxt-datatable [direction]=\"direction\" [languageCode]=\"languageCode\"\n [isLoading]=\"isLoading['getFormData']?.length > 0\" [searchBar]=\"comp?.config?.searchBar\"\n [withCheckBox]=\"comp?.config?.withCheckBox\" [isEditRow]=\"comp?.config?.isEditRow\"\n [isDeleteRow]=\"comp?.config?.isDeleteRow\"\n [isButtonLoading]=\"isLoading['onDeleteRecord']?.length > 0\"\n [actionButton]=\"comp?.config?.actionButton?.buttonArray?.length > 0 ? comp?.config?.actionButton : false\"\n [isButtons]=\"comp?.config?.isButtons\" [addInlineRecord]=\"comp?.config?.addInlineRecord\"\n [tableId]=\"comp?.config?.tableId\" direction=\"ltr\" [data]=tableData.challans\n [tableWidth]=\"comp?.config?.tableWidth\" [columns]=comp?.config?.columns\n [buttonArray]=comp?.config?.buttons [pagination]=\"comp?.config?.pagination\"\n (selectedValues)=\"tableCheckedDataa($event)\" (buttonEmit)=\"commonButtonClickEmit($event)\"\n (hyperLinkEmit)=\"hyperLinkColumnEmit(comp,$event)\" (onDeleteData)=\"onDeleteRecord($event,comp)\"\n (saveButtonData)=\"saveButtonData($event)\"\n (actionButtonEmit)=\"actionButtonEmit($event, comp._id)\" [multipleFilter]=multipleFilter\n [searchConfigs]=\"comp?.config?.searchConfigs\" [actionButtonArray]=comp?.config?.actionButton\n (NxtTableParamsEmit)=\"comp?.config?.pagination ? tablePageDetails(comp,$event) : tableParamsEmit(tab,$event,comp)\"\n [tableParams]=\"comp?.config?.tableParams\" [listViews]=\"listViews\"\n [tableFilterData]=\"tableFilterData\" [id]=\"comp?._id\"\n (NxtTableFilterEmit)=\"nxtTableFilterEmit($event, comp)\"\n [summaryRows]=\"comp?.config?.summaryRows\" (sideNavEmit)=\"onSideNav($event)\"\n (fileEmit)=\"emitAttachmentClick($event)\">\n </nxt-datatable>\n </div>\n <!-- SK05DEC25 table for deductees and fetched deductees -->\n <div class=\"mb-3 comp-wrap mt-2\" *ngIf=\"comp.type === 'table' && eachTypeOfTab === 'deductees' \" >\n <nxt-datatable [direction]=\"direction\" [languageCode]=\"languageCode\"\n [isLoading]=\"isLoading['getFormData']?.length > 0 || isLoading['syncDeductees']?.length > 0\" [searchBar]=\"comp?.config?.searchBar\"\n [withCheckBox]=\"comp?.config?.withCheckBox\" [isEditRow]=\"comp?.config?.isEditRow\"\n [isDeleteRow]=\"comp?.config?.isDeleteRow\"\n [isButtonLoading]=\"isLoading['onDeleteRecord']?.length > 0\"\n [actionButton]=\"comp?.config?.actionButton?.buttonArray?.length > 0 ? comp?.config?.actionButton : false\"\n [isButtons]=\"comp?.config?.isButtons\" [addInlineRecord]=\"comp?.config?.addInlineRecord\"\n [tableId]=\"comp?.config?.tableId\" direction=\"ltr\"\n [data]=\"comp.name === 'deducteeTable' ? tableData.deductees : tableData.fetchedDeductees \"\n [tableWidth]=\"comp?.config?.tableWidth\" [columns]=comp?.config?.columns\n [buttonArray]=comp?.config?.buttons [pagination]=\"comp?.config?.pagination\"\n (selectedValues)=\"tableCheckedDataa($event)\" (buttonEmit)=\"commonButtonClickEmit($event)\"\n (hyperLinkEmit)=\"hyperLinkColumnEmit(comp,$event)\" (onDeleteData)=\"onDeleteRecord($event,comp)\"\n (saveButtonData)=\"saveButtonData($event)\"\n (actionButtonEmit)=\"actionButtonEmit($event, comp._id)\" [multipleFilter]=multipleFilter\n [searchConfigs]=\"comp?.config?.searchConfigs\" [actionButtonArray]=comp?.config?.actionButton\n (NxtTableParamsEmit)=\"comp?.config?.pagination ? tablePageDetails(comp,$event) : tableParamsEmit(tab,$event,comp)\"\n [tableParams]=\"comp?.config?.tableParams\" [listViews]=\"listViews\"\n [tableFilterData]=\"tableFilterData\" [id]=\"comp?._id\"\n (NxtTableFilterEmit)=\"nxtTableFilterEmit($event, comp)\"\n [summaryRows]=\"comp?.config?.summaryRows\" (sideNavEmit)=\"onSideNav($event)\"\n (fileEmit)=\"emitAttachmentClick($event)\">\n </nxt-datatable>\n </div>\n <!-- SK05DEC25 nxtpage for details/batchheader/fileheader -->\n <div *ngIf=\"comp.type === 'nxtPage'\">\n <lib-booklet *ngIf=\"!isLoading[comp._id] && !isLoading['getFormData']\" [bookletJSON]=\"comp.config.nxtJSON\" [isEdit]=\"true\" [dataBind]=\"bookValue\"\n [languageCode]=\"languageCode\" [apiUrl]=\"apiUrl\" [direction]=\"direction\" [isLoading]=\"nxtLoader\"\n (handleBookletActionEvent)=\"nxtFormHandler($event)\">\n </lib-booklet>\n <div *ngIf=\"isLoading[comp._id]?.length > 0 || isLoading['getFormData']?.length > 0 || (modalProperties ? isLoading[modalProperties?._id]?.length > 0 : false)\" class=\"row my-1\">\n <div class=\"col-md-12\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n\n<!-- SK05DEC25 if condition to open modal -->\n<app-modal \n [modalTitle]=\"modalProperties?.modalTitlePath || modalProperties?.modalTitle || isLoading['deducteeSubmit']?.length > 0 || isLoading['challanSubmit']?.length > 0 || isLoading['detailSubmit']?.length > 0 || 'NXT BOOK' | customTranslate : modalProperties?.modalTitle\"\n [modalFooter]=\"modalProperties?.isModalFooter\" [saveButtonValue]=\"modalProperties?.modalSaveButtonValue\"\n [isModalOpen]=\"openModal\" (cancelButtonEmit)=\"modalClose($event)\" [modalSize]=\"modalProperties?.modalSize\">\n <div class=\"modal-body\">\n <div>\n <!-- <lib-booklet [bookletJSON]=\"nxtJSON\" [isEdit]=\"true\" [dataBind]=\"bookValue\"\n [languageCode]=\"languageCode\" [apiUrl]=\"apiUrl\" [direction]=\"direction\" [isLoading]=\"nxtLoader\"\n (handleBookletActionEvent)=\"nxtFormHandler($event)\">\n </lib-booklet> -->\n <!-- SK24JUN24 language code update to nxt -->\n <app-browse [nxtJSON]=\"nxtJSON\" [modalProperties]=\"modalProperties\" [nxtEdit]=\"true\" [bookValue]=\"bookValue\"\n [languageCode]=\"languageCode\" (nxtFormHandlerEmit)=\"nxtFormHandler($event)\">\n </app-browse>\n </div>\n </div>\n</app-modal>",
|
|
5176
|
-
styles: [".sub-nav-head{display:flex;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid var(--border-
|
|
5196
|
+
template: "<div class=\"flex justify-content-between\">\n <div>\n <!-- SK05DEC25 MR 09NOV26 Standardize sub-nav tabs with modern underline indicator -->\n <ul class=\"nav sub-nav-head tab-view-buttons w-100\" role=\"tablist\">\n <li class=\"nav-item\" role=\"presentation\" *ngFor=\"let tab of tabs; let i = index\">\n <button type=\"button\"\n class=\"nav-link sub-nav\"\n [class.active]=\"eachTypeOfTab === tab.name\"\n role=\"tab\"\n [attr.aria-selected]=\"eachTypeOfTab === tab.name\"\n (click)=\"currentTabNav(tab)\">\n <span class=\"sub-tab-text\">\n {{tab.labelPath || tab.label | customTranslate : tab.label }}\n </span>\n </button>\n </li>\n </ul>\n </div>\n <div class=\"flex ms-2\">\n <!-- SK05DEC25 FY dropdown -->\n <!-- MR 16NOV26 Remediate hardcoded dropdown font colors to semantic theme token -->\n <app-drop-down class=\"me-2\" [lists]=\"fyList\" [selectedData]=\"selectedFYData\" dropDownHeight=\"32px\"\n dropFontWeight=\"500\" dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\" dropBorderRadius=\"5px\"\n dropDownWidth=\"150px\" (dataEmit)=\"selectedDropdownValue($event, 'fyYear')\">\n </app-drop-down>\n <!-- SK05DEC25 Quarter Dropdown -->\n <app-drop-down class=\"me-2\" [lists]=\"['Q1', 'Q2', 'Q3', 'Q4']\" [selectedData]=\"selectedQuarterData\"\n dropDownHeight=\"32px\" dropFontWeight=\"500\" dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\"\n dropBorderRadius=\"5px\" dropDownWidth=\"150px\" (dataEmit)=\"selectedDropdownValue($event, 'quarter')\">\n </app-drop-down>\n <!-- SK05DEC25 Submit Form24Q button -->\n <div class=\"align-self-center me-3\">\n <app-fusion-button [buttonValue]=\" 'APP_HRM_PAYROLL_FORM24Q.SUBMIT_24Q' | customTranslate : 'Submit 24Q' \"\n (buttonClickEmit)=\"submitClick('submit24Q')\" [buttonLoadingSpinner]=\"submitButtonLoader\">\n </app-fusion-button>\n </div>\n </div>\n</div>\n\n\n<div class=\"row\">\n <ng-container *ngFor=\"let comp of components; let j=index\">\n <!-- {{comp._id}} -->\n <div class=\"{{comp.size}}\">\n <!-- SK05DEC25 button component -->\n <div *ngIf=\"comp.type === 'buttons'\" class=\"mb-1\" style=\"display: flex; justify-content: end;\">\n <app-fusion-button *ngFor=\"let button of comp?.config?.buttons\"\n (buttonClickEmit)=\"commonButtonClickEmit(button)\" [buttonType]=\"button.class\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\">\n </app-fusion-button>\n </div>\n <!-- SK05DEC25 table for challans -->\n <div *ngIf=\"comp.type === 'table' && eachTypeOfTab === 'challans' \" class=\"comp-wrap mt-2\">\n <nxt-datatable [direction]=\"direction\" [languageCode]=\"languageCode\"\n [isLoading]=\"isLoading['getFormData']?.length > 0\" [searchBar]=\"comp?.config?.searchBar\"\n [withCheckBox]=\"comp?.config?.withCheckBox\" [isEditRow]=\"comp?.config?.isEditRow\"\n [isDeleteRow]=\"comp?.config?.isDeleteRow\"\n [isButtonLoading]=\"isLoading['onDeleteRecord']?.length > 0\"\n [actionButton]=\"comp?.config?.actionButton?.buttonArray?.length > 0 ? comp?.config?.actionButton : false\"\n [isButtons]=\"comp?.config?.isButtons\" [addInlineRecord]=\"comp?.config?.addInlineRecord\"\n [tableId]=\"comp?.config?.tableId\" direction=\"ltr\" [data]=tableData.challans\n [tableWidth]=\"comp?.config?.tableWidth\" [columns]=comp?.config?.columns\n [buttonArray]=comp?.config?.buttons [pagination]=\"comp?.config?.pagination\"\n (selectedValues)=\"tableCheckedDataa($event)\" (buttonEmit)=\"commonButtonClickEmit($event)\"\n (hyperLinkEmit)=\"hyperLinkColumnEmit(comp,$event)\" (onDeleteData)=\"onDeleteRecord($event,comp)\"\n (saveButtonData)=\"saveButtonData($event)\"\n (actionButtonEmit)=\"actionButtonEmit($event, comp._id)\" [multipleFilter]=multipleFilter\n [searchConfigs]=\"comp?.config?.searchConfigs\" [actionButtonArray]=comp?.config?.actionButton\n (NxtTableParamsEmit)=\"comp?.config?.pagination ? tablePageDetails(comp,$event) : tableParamsEmit(tab,$event,comp)\"\n [tableParams]=\"comp?.config?.tableParams\" [listViews]=\"listViews\"\n [tableFilterData]=\"tableFilterData\" [id]=\"comp?._id\"\n (NxtTableFilterEmit)=\"nxtTableFilterEmit($event, comp)\"\n [summaryRows]=\"comp?.config?.summaryRows\" (sideNavEmit)=\"onSideNav($event)\"\n (fileEmit)=\"emitAttachmentClick($event)\">\n </nxt-datatable>\n </div>\n <!-- SK05DEC25 table for deductees and fetched deductees -->\n <div class=\"mb-3 comp-wrap mt-2\" *ngIf=\"comp.type === 'table' && eachTypeOfTab === 'deductees' \" >\n <nxt-datatable [direction]=\"direction\" [languageCode]=\"languageCode\"\n [isLoading]=\"isLoading['getFormData']?.length > 0 || isLoading['syncDeductees']?.length > 0\" [searchBar]=\"comp?.config?.searchBar\"\n [withCheckBox]=\"comp?.config?.withCheckBox\" [isEditRow]=\"comp?.config?.isEditRow\"\n [isDeleteRow]=\"comp?.config?.isDeleteRow\"\n [isButtonLoading]=\"isLoading['onDeleteRecord']?.length > 0\"\n [actionButton]=\"comp?.config?.actionButton?.buttonArray?.length > 0 ? comp?.config?.actionButton : false\"\n [isButtons]=\"comp?.config?.isButtons\" [addInlineRecord]=\"comp?.config?.addInlineRecord\"\n [tableId]=\"comp?.config?.tableId\" direction=\"ltr\"\n [data]=\"comp.name === 'deducteeTable' ? tableData.deductees : tableData.fetchedDeductees \"\n [tableWidth]=\"comp?.config?.tableWidth\" [columns]=comp?.config?.columns\n [buttonArray]=comp?.config?.buttons [pagination]=\"comp?.config?.pagination\"\n (selectedValues)=\"tableCheckedDataa($event)\" (buttonEmit)=\"commonButtonClickEmit($event)\"\n (hyperLinkEmit)=\"hyperLinkColumnEmit(comp,$event)\" (onDeleteData)=\"onDeleteRecord($event,comp)\"\n (saveButtonData)=\"saveButtonData($event)\"\n (actionButtonEmit)=\"actionButtonEmit($event, comp._id)\" [multipleFilter]=multipleFilter\n [searchConfigs]=\"comp?.config?.searchConfigs\" [actionButtonArray]=comp?.config?.actionButton\n (NxtTableParamsEmit)=\"comp?.config?.pagination ? tablePageDetails(comp,$event) : tableParamsEmit(tab,$event,comp)\"\n [tableParams]=\"comp?.config?.tableParams\" [listViews]=\"listViews\"\n [tableFilterData]=\"tableFilterData\" [id]=\"comp?._id\"\n (NxtTableFilterEmit)=\"nxtTableFilterEmit($event, comp)\"\n [summaryRows]=\"comp?.config?.summaryRows\" (sideNavEmit)=\"onSideNav($event)\"\n (fileEmit)=\"emitAttachmentClick($event)\">\n </nxt-datatable>\n </div>\n <!-- SK05DEC25 nxtpage for details/batchheader/fileheader -->\n <div *ngIf=\"comp.type === 'nxtPage'\">\n <lib-booklet *ngIf=\"!isLoading[comp._id] && !isLoading['getFormData']\" [bookletJSON]=\"comp.config.nxtJSON\" [isEdit]=\"true\" [dataBind]=\"bookValue\"\n [languageCode]=\"languageCode\" [apiUrl]=\"apiUrl\" [direction]=\"direction\" [isLoading]=\"nxtLoader\"\n (handleBookletActionEvent)=\"nxtFormHandler($event)\">\n </lib-booklet>\n <div *ngIf=\"isLoading[comp._id]?.length > 0 || isLoading['getFormData']?.length > 0 || (modalProperties ? isLoading[modalProperties?._id]?.length > 0 : false)\" class=\"row my-1\">\n <div class=\"col-md-12\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n\n<!-- SK05DEC25 if condition to open modal -->\n<app-modal \n [modalTitle]=\"modalProperties?.modalTitlePath || modalProperties?.modalTitle || isLoading['deducteeSubmit']?.length > 0 || isLoading['challanSubmit']?.length > 0 || isLoading['detailSubmit']?.length > 0 || 'NXT BOOK' | customTranslate : modalProperties?.modalTitle\"\n [modalFooter]=\"modalProperties?.isModalFooter\" [saveButtonValue]=\"modalProperties?.modalSaveButtonValue\"\n [isModalOpen]=\"openModal\" (cancelButtonEmit)=\"modalClose($event)\" [modalSize]=\"modalProperties?.modalSize\">\n <div class=\"modal-body\">\n <div>\n <!-- <lib-booklet [bookletJSON]=\"nxtJSON\" [isEdit]=\"true\" [dataBind]=\"bookValue\"\n [languageCode]=\"languageCode\" [apiUrl]=\"apiUrl\" [direction]=\"direction\" [isLoading]=\"nxtLoader\"\n (handleBookletActionEvent)=\"nxtFormHandler($event)\">\n </lib-booklet> -->\n <!-- SK24JUN24 language code update to nxt -->\n <app-browse [nxtJSON]=\"nxtJSON\" [modalProperties]=\"modalProperties\" [nxtEdit]=\"true\" [bookValue]=\"bookValue\"\n [languageCode]=\"languageCode\" (nxtFormHandlerEmit)=\"nxtFormHandler($event)\">\n </app-browse>\n </div>\n </div>\n</app-modal>",
|
|
5197
|
+
styles: [".sub-nav-head{display:flex;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid var(--fb-border-default, #e2e8f0);gap:4px;list-style:none;padding:0;margin:0}.sub-nav{background:transparent;border:none;border-bottom:3.5px solid transparent;margin-bottom:-1px;padding:8px 16px;font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500);color:var(--fb-nav-text, #475569);cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:color .15s ease-in-out,border-color .15s ease-in-out}.sub-nav:hover{color:var(--fb-nav-hover, #0f172a)}.sub-nav.active{color:var(--fb-nav-text-active, #0140c1);font-weight:var(--fw-600, 600);border-bottom:3.5px solid var(--fb-border-on-action, #0140c1)}.tab-box{display:flex;flex-wrap:nowrap;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.tabCls{cursor:pointer}.tab-text,.sub-tab-text{line-height:100%}.tab-active-color{color:var(--fb-nav-text-active, #0140c1);font-weight:var(--fw-600, 600)}::ng-deep .upload-preview-wrapper{height:0}\n"],
|
|
5177
5198
|
dependencies: [
|
|
5178
5199
|
{
|
|
5179
5200
|
kind: "ngmodule",
|
|
@@ -5462,8 +5483,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5462
5483
|
AngularSvgIconModule,
|
|
5463
5484
|
FusionButtonComponent
|
|
5464
5485
|
],
|
|
5465
|
-
template: "<div class=\"flex justify-content-between\">\n <div>\n <!-- SK05DEC25 MR 09NOV26 Standardize sub-nav tabs with modern underline indicator -->\n <ul class=\"nav sub-nav-head tab-view-buttons w-100\" role=\"tablist\">\n <li class=\"nav-item\" role=\"presentation\" *ngFor=\"let tab of tabs; let i = index\">\n <button type=\"button\"\n class=\"nav-link sub-nav\"\n [class.active]=\"eachTypeOfTab === tab.name\"\n role=\"tab\"\n [attr.aria-selected]=\"eachTypeOfTab === tab.name\"\n (click)=\"currentTabNav(tab)\">\n <span class=\"sub-tab-text\">\n {{tab.labelPath || tab.label | customTranslate : tab.label }}\n </span>\n </button>\n </li>\n </ul>\n </div>\n <div class=\"flex ms-2\">\n <!-- SK05DEC25 FY dropdown -->\n <app-drop-down class=\"me-2\" [lists]=\"fyList\" [selectedData]=\"selectedFYData\" dropDownHeight=\"32px\"\n dropFontWeight=\"500\" dropFontSize=\"12px\" dropFontColor=\"#434555\" dropBorderRadius=\"5px\"\n dropDownWidth=\"150px\" (dataEmit)=\"selectedDropdownValue($event, 'fyYear')\">\n </app-drop-down>\n <!-- SK05DEC25 Quarter Dropdown -->\n <app-drop-down class=\"me-2\" [lists]=\"['Q1', 'Q2', 'Q3', 'Q4']\" [selectedData]=\"selectedQuarterData\"\n dropDownHeight=\"32px\" dropFontWeight=\"500\" dropFontSize=\"12px\" dropFontColor=\"#434555\"\n dropBorderRadius=\"5px\" dropDownWidth=\"150px\" (dataEmit)=\"selectedDropdownValue($event, 'quarter')\">\n </app-drop-down>\n <!-- SK05DEC25 Submit Form24Q button -->\n <div class=\"align-self-center me-3\">\n <app-fusion-button [buttonValue]=\" 'APP_HRM_PAYROLL_FORM24Q.SUBMIT_24Q' | customTranslate : 'Submit 24Q' \"\n (buttonClickEmit)=\"submitClick('submit24Q')\" [buttonLoadingSpinner]=\"submitButtonLoader\">\n </app-fusion-button>\n </div>\n </div>\n</div>\n\n\n<div class=\"row\">\n <ng-container *ngFor=\"let comp of components; let j=index\">\n <!-- {{comp._id}} -->\n <div class=\"{{comp.size}}\">\n <!-- SK05DEC25 button component -->\n <div *ngIf=\"comp.type === 'buttons'\" class=\"mb-1\" style=\"display: flex; justify-content: end;\">\n <app-fusion-button *ngFor=\"let button of comp?.config?.buttons\"\n (buttonClickEmit)=\"commonButtonClickEmit(button)\" [buttonType]=\"button.class\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\">\n </app-fusion-button>\n </div>\n <!-- SK05DEC25 table for challans -->\n <div *ngIf=\"comp.type === 'table' && eachTypeOfTab === 'challans' \" class=\"comp-wrap mt-2\">\n <nxt-datatable [direction]=\"direction\" [languageCode]=\"languageCode\"\n [isLoading]=\"isLoading['getFormData']?.length > 0\" [searchBar]=\"comp?.config?.searchBar\"\n [withCheckBox]=\"comp?.config?.withCheckBox\" [isEditRow]=\"comp?.config?.isEditRow\"\n [isDeleteRow]=\"comp?.config?.isDeleteRow\"\n [isButtonLoading]=\"isLoading['onDeleteRecord']?.length > 0\"\n [actionButton]=\"comp?.config?.actionButton?.buttonArray?.length > 0 ? comp?.config?.actionButton : false\"\n [isButtons]=\"comp?.config?.isButtons\" [addInlineRecord]=\"comp?.config?.addInlineRecord\"\n [tableId]=\"comp?.config?.tableId\" direction=\"ltr\" [data]=tableData.challans\n [tableWidth]=\"comp?.config?.tableWidth\" [columns]=comp?.config?.columns\n [buttonArray]=comp?.config?.buttons [pagination]=\"comp?.config?.pagination\"\n (selectedValues)=\"tableCheckedDataa($event)\" (buttonEmit)=\"commonButtonClickEmit($event)\"\n (hyperLinkEmit)=\"hyperLinkColumnEmit(comp,$event)\" (onDeleteData)=\"onDeleteRecord($event,comp)\"\n (saveButtonData)=\"saveButtonData($event)\"\n (actionButtonEmit)=\"actionButtonEmit($event, comp._id)\" [multipleFilter]=multipleFilter\n [searchConfigs]=\"comp?.config?.searchConfigs\" [actionButtonArray]=comp?.config?.actionButton\n (NxtTableParamsEmit)=\"comp?.config?.pagination ? tablePageDetails(comp,$event) : tableParamsEmit(tab,$event,comp)\"\n [tableParams]=\"comp?.config?.tableParams\" [listViews]=\"listViews\"\n [tableFilterData]=\"tableFilterData\" [id]=\"comp?._id\"\n (NxtTableFilterEmit)=\"nxtTableFilterEmit($event, comp)\"\n [summaryRows]=\"comp?.config?.summaryRows\" (sideNavEmit)=\"onSideNav($event)\"\n (fileEmit)=\"emitAttachmentClick($event)\">\n </nxt-datatable>\n </div>\n <!-- SK05DEC25 table for deductees and fetched deductees -->\n <div class=\"mb-3 comp-wrap mt-2\" *ngIf=\"comp.type === 'table' && eachTypeOfTab === 'deductees' \" >\n <nxt-datatable [direction]=\"direction\" [languageCode]=\"languageCode\"\n [isLoading]=\"isLoading['getFormData']?.length > 0 || isLoading['syncDeductees']?.length > 0\" [searchBar]=\"comp?.config?.searchBar\"\n [withCheckBox]=\"comp?.config?.withCheckBox\" [isEditRow]=\"comp?.config?.isEditRow\"\n [isDeleteRow]=\"comp?.config?.isDeleteRow\"\n [isButtonLoading]=\"isLoading['onDeleteRecord']?.length > 0\"\n [actionButton]=\"comp?.config?.actionButton?.buttonArray?.length > 0 ? comp?.config?.actionButton : false\"\n [isButtons]=\"comp?.config?.isButtons\" [addInlineRecord]=\"comp?.config?.addInlineRecord\"\n [tableId]=\"comp?.config?.tableId\" direction=\"ltr\"\n [data]=\"comp.name === 'deducteeTable' ? tableData.deductees : tableData.fetchedDeductees \"\n [tableWidth]=\"comp?.config?.tableWidth\" [columns]=comp?.config?.columns\n [buttonArray]=comp?.config?.buttons [pagination]=\"comp?.config?.pagination\"\n (selectedValues)=\"tableCheckedDataa($event)\" (buttonEmit)=\"commonButtonClickEmit($event)\"\n (hyperLinkEmit)=\"hyperLinkColumnEmit(comp,$event)\" (onDeleteData)=\"onDeleteRecord($event,comp)\"\n (saveButtonData)=\"saveButtonData($event)\"\n (actionButtonEmit)=\"actionButtonEmit($event, comp._id)\" [multipleFilter]=multipleFilter\n [searchConfigs]=\"comp?.config?.searchConfigs\" [actionButtonArray]=comp?.config?.actionButton\n (NxtTableParamsEmit)=\"comp?.config?.pagination ? tablePageDetails(comp,$event) : tableParamsEmit(tab,$event,comp)\"\n [tableParams]=\"comp?.config?.tableParams\" [listViews]=\"listViews\"\n [tableFilterData]=\"tableFilterData\" [id]=\"comp?._id\"\n (NxtTableFilterEmit)=\"nxtTableFilterEmit($event, comp)\"\n [summaryRows]=\"comp?.config?.summaryRows\" (sideNavEmit)=\"onSideNav($event)\"\n (fileEmit)=\"emitAttachmentClick($event)\">\n </nxt-datatable>\n </div>\n <!-- SK05DEC25 nxtpage for details/batchheader/fileheader -->\n <div *ngIf=\"comp.type === 'nxtPage'\">\n <lib-booklet *ngIf=\"!isLoading[comp._id] && !isLoading['getFormData']\" [bookletJSON]=\"comp.config.nxtJSON\" [isEdit]=\"true\" [dataBind]=\"bookValue\"\n [languageCode]=\"languageCode\" [apiUrl]=\"apiUrl\" [direction]=\"direction\" [isLoading]=\"nxtLoader\"\n (handleBookletActionEvent)=\"nxtFormHandler($event)\">\n </lib-booklet>\n <div *ngIf=\"isLoading[comp._id]?.length > 0 || isLoading['getFormData']?.length > 0 || (modalProperties ? isLoading[modalProperties?._id]?.length > 0 : false)\" class=\"row my-1\">\n <div class=\"col-md-12\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n\n<!-- SK05DEC25 if condition to open modal -->\n<app-modal \n [modalTitle]=\"modalProperties?.modalTitlePath || modalProperties?.modalTitle || isLoading['deducteeSubmit']?.length > 0 || isLoading['challanSubmit']?.length > 0 || isLoading['detailSubmit']?.length > 0 || 'NXT BOOK' | customTranslate : modalProperties?.modalTitle\"\n [modalFooter]=\"modalProperties?.isModalFooter\" [saveButtonValue]=\"modalProperties?.modalSaveButtonValue\"\n [isModalOpen]=\"openModal\" (cancelButtonEmit)=\"modalClose($event)\" [modalSize]=\"modalProperties?.modalSize\">\n <div class=\"modal-body\">\n <div>\n <!-- <lib-booklet [bookletJSON]=\"nxtJSON\" [isEdit]=\"true\" [dataBind]=\"bookValue\"\n [languageCode]=\"languageCode\" [apiUrl]=\"apiUrl\" [direction]=\"direction\" [isLoading]=\"nxtLoader\"\n (handleBookletActionEvent)=\"nxtFormHandler($event)\">\n </lib-booklet> -->\n <!-- SK24JUN24 language code update to nxt -->\n <app-browse [nxtJSON]=\"nxtJSON\" [modalProperties]=\"modalProperties\" [nxtEdit]=\"true\" [bookValue]=\"bookValue\"\n [languageCode]=\"languageCode\" (nxtFormHandlerEmit)=\"nxtFormHandler($event)\">\n </app-browse>\n </div>\n </div>\n</app-modal>",
|
|
5466
|
-
styles: [".sub-nav-head{display:flex;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid var(--border-
|
|
5486
|
+
template: "<div class=\"flex justify-content-between\">\n <div>\n <!-- SK05DEC25 MR 09NOV26 Standardize sub-nav tabs with modern underline indicator -->\n <ul class=\"nav sub-nav-head tab-view-buttons w-100\" role=\"tablist\">\n <li class=\"nav-item\" role=\"presentation\" *ngFor=\"let tab of tabs; let i = index\">\n <button type=\"button\"\n class=\"nav-link sub-nav\"\n [class.active]=\"eachTypeOfTab === tab.name\"\n role=\"tab\"\n [attr.aria-selected]=\"eachTypeOfTab === tab.name\"\n (click)=\"currentTabNav(tab)\">\n <span class=\"sub-tab-text\">\n {{tab.labelPath || tab.label | customTranslate : tab.label }}\n </span>\n </button>\n </li>\n </ul>\n </div>\n <div class=\"flex ms-2\">\n <!-- SK05DEC25 FY dropdown -->\n <!-- MR 16NOV26 Remediate hardcoded dropdown font colors to semantic theme token -->\n <app-drop-down class=\"me-2\" [lists]=\"fyList\" [selectedData]=\"selectedFYData\" dropDownHeight=\"32px\"\n dropFontWeight=\"500\" dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\" dropBorderRadius=\"5px\"\n dropDownWidth=\"150px\" (dataEmit)=\"selectedDropdownValue($event, 'fyYear')\">\n </app-drop-down>\n <!-- SK05DEC25 Quarter Dropdown -->\n <app-drop-down class=\"me-2\" [lists]=\"['Q1', 'Q2', 'Q3', 'Q4']\" [selectedData]=\"selectedQuarterData\"\n dropDownHeight=\"32px\" dropFontWeight=\"500\" dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\"\n dropBorderRadius=\"5px\" dropDownWidth=\"150px\" (dataEmit)=\"selectedDropdownValue($event, 'quarter')\">\n </app-drop-down>\n <!-- SK05DEC25 Submit Form24Q button -->\n <div class=\"align-self-center me-3\">\n <app-fusion-button [buttonValue]=\" 'APP_HRM_PAYROLL_FORM24Q.SUBMIT_24Q' | customTranslate : 'Submit 24Q' \"\n (buttonClickEmit)=\"submitClick('submit24Q')\" [buttonLoadingSpinner]=\"submitButtonLoader\">\n </app-fusion-button>\n </div>\n </div>\n</div>\n\n\n<div class=\"row\">\n <ng-container *ngFor=\"let comp of components; let j=index\">\n <!-- {{comp._id}} -->\n <div class=\"{{comp.size}}\">\n <!-- SK05DEC25 button component -->\n <div *ngIf=\"comp.type === 'buttons'\" class=\"mb-1\" style=\"display: flex; justify-content: end;\">\n <app-fusion-button *ngFor=\"let button of comp?.config?.buttons\"\n (buttonClickEmit)=\"commonButtonClickEmit(button)\" [buttonType]=\"button.class\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\">\n </app-fusion-button>\n </div>\n <!-- SK05DEC25 table for challans -->\n <div *ngIf=\"comp.type === 'table' && eachTypeOfTab === 'challans' \" class=\"comp-wrap mt-2\">\n <nxt-datatable [direction]=\"direction\" [languageCode]=\"languageCode\"\n [isLoading]=\"isLoading['getFormData']?.length > 0\" [searchBar]=\"comp?.config?.searchBar\"\n [withCheckBox]=\"comp?.config?.withCheckBox\" [isEditRow]=\"comp?.config?.isEditRow\"\n [isDeleteRow]=\"comp?.config?.isDeleteRow\"\n [isButtonLoading]=\"isLoading['onDeleteRecord']?.length > 0\"\n [actionButton]=\"comp?.config?.actionButton?.buttonArray?.length > 0 ? comp?.config?.actionButton : false\"\n [isButtons]=\"comp?.config?.isButtons\" [addInlineRecord]=\"comp?.config?.addInlineRecord\"\n [tableId]=\"comp?.config?.tableId\" direction=\"ltr\" [data]=tableData.challans\n [tableWidth]=\"comp?.config?.tableWidth\" [columns]=comp?.config?.columns\n [buttonArray]=comp?.config?.buttons [pagination]=\"comp?.config?.pagination\"\n (selectedValues)=\"tableCheckedDataa($event)\" (buttonEmit)=\"commonButtonClickEmit($event)\"\n (hyperLinkEmit)=\"hyperLinkColumnEmit(comp,$event)\" (onDeleteData)=\"onDeleteRecord($event,comp)\"\n (saveButtonData)=\"saveButtonData($event)\"\n (actionButtonEmit)=\"actionButtonEmit($event, comp._id)\" [multipleFilter]=multipleFilter\n [searchConfigs]=\"comp?.config?.searchConfigs\" [actionButtonArray]=comp?.config?.actionButton\n (NxtTableParamsEmit)=\"comp?.config?.pagination ? tablePageDetails(comp,$event) : tableParamsEmit(tab,$event,comp)\"\n [tableParams]=\"comp?.config?.tableParams\" [listViews]=\"listViews\"\n [tableFilterData]=\"tableFilterData\" [id]=\"comp?._id\"\n (NxtTableFilterEmit)=\"nxtTableFilterEmit($event, comp)\"\n [summaryRows]=\"comp?.config?.summaryRows\" (sideNavEmit)=\"onSideNav($event)\"\n (fileEmit)=\"emitAttachmentClick($event)\">\n </nxt-datatable>\n </div>\n <!-- SK05DEC25 table for deductees and fetched deductees -->\n <div class=\"mb-3 comp-wrap mt-2\" *ngIf=\"comp.type === 'table' && eachTypeOfTab === 'deductees' \" >\n <nxt-datatable [direction]=\"direction\" [languageCode]=\"languageCode\"\n [isLoading]=\"isLoading['getFormData']?.length > 0 || isLoading['syncDeductees']?.length > 0\" [searchBar]=\"comp?.config?.searchBar\"\n [withCheckBox]=\"comp?.config?.withCheckBox\" [isEditRow]=\"comp?.config?.isEditRow\"\n [isDeleteRow]=\"comp?.config?.isDeleteRow\"\n [isButtonLoading]=\"isLoading['onDeleteRecord']?.length > 0\"\n [actionButton]=\"comp?.config?.actionButton?.buttonArray?.length > 0 ? comp?.config?.actionButton : false\"\n [isButtons]=\"comp?.config?.isButtons\" [addInlineRecord]=\"comp?.config?.addInlineRecord\"\n [tableId]=\"comp?.config?.tableId\" direction=\"ltr\"\n [data]=\"comp.name === 'deducteeTable' ? tableData.deductees : tableData.fetchedDeductees \"\n [tableWidth]=\"comp?.config?.tableWidth\" [columns]=comp?.config?.columns\n [buttonArray]=comp?.config?.buttons [pagination]=\"comp?.config?.pagination\"\n (selectedValues)=\"tableCheckedDataa($event)\" (buttonEmit)=\"commonButtonClickEmit($event)\"\n (hyperLinkEmit)=\"hyperLinkColumnEmit(comp,$event)\" (onDeleteData)=\"onDeleteRecord($event,comp)\"\n (saveButtonData)=\"saveButtonData($event)\"\n (actionButtonEmit)=\"actionButtonEmit($event, comp._id)\" [multipleFilter]=multipleFilter\n [searchConfigs]=\"comp?.config?.searchConfigs\" [actionButtonArray]=comp?.config?.actionButton\n (NxtTableParamsEmit)=\"comp?.config?.pagination ? tablePageDetails(comp,$event) : tableParamsEmit(tab,$event,comp)\"\n [tableParams]=\"comp?.config?.tableParams\" [listViews]=\"listViews\"\n [tableFilterData]=\"tableFilterData\" [id]=\"comp?._id\"\n (NxtTableFilterEmit)=\"nxtTableFilterEmit($event, comp)\"\n [summaryRows]=\"comp?.config?.summaryRows\" (sideNavEmit)=\"onSideNav($event)\"\n (fileEmit)=\"emitAttachmentClick($event)\">\n </nxt-datatable>\n </div>\n <!-- SK05DEC25 nxtpage for details/batchheader/fileheader -->\n <div *ngIf=\"comp.type === 'nxtPage'\">\n <lib-booklet *ngIf=\"!isLoading[comp._id] && !isLoading['getFormData']\" [bookletJSON]=\"comp.config.nxtJSON\" [isEdit]=\"true\" [dataBind]=\"bookValue\"\n [languageCode]=\"languageCode\" [apiUrl]=\"apiUrl\" [direction]=\"direction\" [isLoading]=\"nxtLoader\"\n (handleBookletActionEvent)=\"nxtFormHandler($event)\">\n </lib-booklet>\n <div *ngIf=\"isLoading[comp._id]?.length > 0 || isLoading['getFormData']?.length > 0 || (modalProperties ? isLoading[modalProperties?._id]?.length > 0 : false)\" class=\"row my-1\">\n <div class=\"col-md-12\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n <div class=\"col-md-12 mt-3\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n\n<!-- SK05DEC25 if condition to open modal -->\n<app-modal \n [modalTitle]=\"modalProperties?.modalTitlePath || modalProperties?.modalTitle || isLoading['deducteeSubmit']?.length > 0 || isLoading['challanSubmit']?.length > 0 || isLoading['detailSubmit']?.length > 0 || 'NXT BOOK' | customTranslate : modalProperties?.modalTitle\"\n [modalFooter]=\"modalProperties?.isModalFooter\" [saveButtonValue]=\"modalProperties?.modalSaveButtonValue\"\n [isModalOpen]=\"openModal\" (cancelButtonEmit)=\"modalClose($event)\" [modalSize]=\"modalProperties?.modalSize\">\n <div class=\"modal-body\">\n <div>\n <!-- <lib-booklet [bookletJSON]=\"nxtJSON\" [isEdit]=\"true\" [dataBind]=\"bookValue\"\n [languageCode]=\"languageCode\" [apiUrl]=\"apiUrl\" [direction]=\"direction\" [isLoading]=\"nxtLoader\"\n (handleBookletActionEvent)=\"nxtFormHandler($event)\">\n </lib-booklet> -->\n <!-- SK24JUN24 language code update to nxt -->\n <app-browse [nxtJSON]=\"nxtJSON\" [modalProperties]=\"modalProperties\" [nxtEdit]=\"true\" [bookValue]=\"bookValue\"\n [languageCode]=\"languageCode\" (nxtFormHandlerEmit)=\"nxtFormHandler($event)\">\n </app-browse>\n </div>\n </div>\n</app-modal>",
|
|
5487
|
+
styles: [".sub-nav-head{display:flex;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid var(--fb-border-default, #e2e8f0);gap:4px;list-style:none;padding:0;margin:0}.sub-nav{background:transparent;border:none;border-bottom:3.5px solid transparent;margin-bottom:-1px;padding:8px 16px;font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500);color:var(--fb-nav-text, #475569);cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:color .15s ease-in-out,border-color .15s ease-in-out}.sub-nav:hover{color:var(--fb-nav-hover, #0f172a)}.sub-nav.active{color:var(--fb-nav-text-active, #0140c1);font-weight:var(--fw-600, 600);border-bottom:3.5px solid var(--fb-border-on-action, #0140c1)}.tab-box{display:flex;flex-wrap:nowrap;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.tabCls{cursor:pointer}.tab-text,.sub-tab-text{line-height:100%}.tab-active-color{color:var(--fb-nav-text-active, #0140c1);font-weight:var(--fw-600, 600)}::ng-deep .upload-preview-wrapper{height:0}\n"]
|
|
5467
5488
|
}]
|
|
5468
5489
|
}],
|
|
5469
5490
|
ctorParameters: () => [
|
|
@@ -6731,8 +6752,8 @@ var DataTableComponent = class DataTableComponent {
|
|
|
6731
6752
|
],
|
|
6732
6753
|
usesOnChanges: true,
|
|
6733
6754
|
ngImport: i0,
|
|
6734
|
-
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 <app-drop-down [lists]='list' [selectedData]=\"selectedData\" dropDownHeight=\"42px\" dropFontWeight=\"500\"\n dropFontSize=\"12px\" dropFontColor=\"#434555\" 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 <app-fusion-button class=\"data-table-fsbtn\" [buttonDisable]=\"button.buttonDisable\"\n [buttonLoadingSpinner]=\"buttonLoadingSpinner\" (buttonClickEmit)=\"commonButtonClick($event,button)\"\n [buttonType]=\"button.label === 'Export' ? 'grey-border rounded-3 bg-white text-dark' : button.class\"\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 <td mat-cell *matCellDef=\"let row\" class=\"body-color\" >\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),'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 <td mat-cell class=\"body-color ps-2 pe-2\" *matCellDef=\"let element; let j = index\"\n [class.active-column]=\"activeColumn === 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 <td mat-cell *matCellDef=\"let element; let i=index\" class=\"body-color 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 <!-- MY 23OCT26 Disable edit action when expense is already Approved -->\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, 16px) !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, 16px) !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 <td mat-cell *matCellDef=\"let row\" class=\"body-color\">\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 <!-- SKS24JAN25 custom paginator -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex\" [firstLastButtons]=\"true\" (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",
|
|
6735
|
-
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{background
|
|
6755
|
+
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 <!-- MY 23OCT26 Disable edit action when expense is already Approved -->\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, 16px) !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, 16px) !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",
|
|
6756
|
+
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}.imgBtn{background-color:var(--fb-surface-secondary, #f8fafc);border-radius:var(--radius-small, 6px)}.imgBtnDiv{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"],
|
|
6736
6757
|
dependencies: [
|
|
6737
6758
|
{
|
|
6738
6759
|
kind: "ngmodule",
|
|
@@ -7314,8 +7335,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7314
7335
|
provide: MatPaginatorIntl,
|
|
7315
7336
|
useClass: CustomPaginatorIntl
|
|
7316
7337
|
}],
|
|
7317
|
-
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 <app-drop-down [lists]='list' [selectedData]=\"selectedData\" dropDownHeight=\"42px\" dropFontWeight=\"500\"\n dropFontSize=\"12px\" dropFontColor=\"#434555\" 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 <app-fusion-button class=\"data-table-fsbtn\" [buttonDisable]=\"button.buttonDisable\"\n [buttonLoadingSpinner]=\"buttonLoadingSpinner\" (buttonClickEmit)=\"commonButtonClick($event,button)\"\n [buttonType]=\"button.label === 'Export' ? 'grey-border rounded-3 bg-white text-dark' : button.class\"\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 <td mat-cell *matCellDef=\"let row\" class=\"body-color\" >\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),'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 <td mat-cell class=\"body-color ps-2 pe-2\" *matCellDef=\"let element; let j = index\"\n [class.active-column]=\"activeColumn === 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 <td mat-cell *matCellDef=\"let element; let i=index\" class=\"body-color 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 <!-- MY 23OCT26 Disable edit action when expense is already Approved -->\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, 16px) !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, 16px) !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 <td mat-cell *matCellDef=\"let row\" class=\"body-color\">\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 <!-- SKS24JAN25 custom paginator -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex\" [firstLastButtons]=\"true\" (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",
|
|
7318
|
-
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{background
|
|
7338
|
+
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 <!-- MY 23OCT26 Disable edit action when expense is already Approved -->\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, 16px) !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, 16px) !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",
|
|
7339
|
+
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}.imgBtn{background-color:var(--fb-surface-secondary, #f8fafc);border-radius:var(--radius-small, 6px)}.imgBtnDiv{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"]
|
|
7319
7340
|
}]
|
|
7320
7341
|
}],
|
|
7321
7342
|
ctorParameters: () => [
|
|
@@ -7460,6 +7481,259 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7460
7481
|
deleteModal: [{ type: Input }]
|
|
7461
7482
|
}
|
|
7462
7483
|
});
|
|
7484
|
+
var FusionMonthPickerComponent = class FusionMonthPickerComponent {
|
|
7485
|
+
elementRef;
|
|
7486
|
+
set value(val) {
|
|
7487
|
+
this.parseValue(val);
|
|
7488
|
+
}
|
|
7489
|
+
disabled = false;
|
|
7490
|
+
minYear = 1970;
|
|
7491
|
+
maxYear = 2100;
|
|
7492
|
+
monthNames = [
|
|
7493
|
+
"January",
|
|
7494
|
+
"February",
|
|
7495
|
+
"March",
|
|
7496
|
+
"April",
|
|
7497
|
+
"May",
|
|
7498
|
+
"June",
|
|
7499
|
+
"July",
|
|
7500
|
+
"August",
|
|
7501
|
+
"September",
|
|
7502
|
+
"October",
|
|
7503
|
+
"November",
|
|
7504
|
+
"December"
|
|
7505
|
+
];
|
|
7506
|
+
valueChange = new EventEmitter();
|
|
7507
|
+
monthChange = new EventEmitter();
|
|
7508
|
+
selectedMonth = (/* @__PURE__ */ new Date()).getMonth();
|
|
7509
|
+
selectedYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
7510
|
+
popupOpen = false;
|
|
7511
|
+
constructor(elementRef) {
|
|
7512
|
+
this.elementRef = elementRef;
|
|
7513
|
+
}
|
|
7514
|
+
ngOnInit() {
|
|
7515
|
+
if (this.selectedYear < this.minYear) this.selectedYear = this.minYear;
|
|
7516
|
+
else if (this.selectedYear > this.maxYear) this.selectedYear = this.maxYear;
|
|
7517
|
+
}
|
|
7518
|
+
get formattedValue() {
|
|
7519
|
+
return `${this.monthNames[this.selectedMonth]} ${this.selectedYear}`;
|
|
7520
|
+
}
|
|
7521
|
+
parseValue(val) {
|
|
7522
|
+
if (!val) return;
|
|
7523
|
+
if (val instanceof Date) {
|
|
7524
|
+
if (!isNaN(val.getTime())) {
|
|
7525
|
+
this.selectedMonth = val.getMonth();
|
|
7526
|
+
this.selectedYear = val.getFullYear();
|
|
7527
|
+
}
|
|
7528
|
+
return;
|
|
7529
|
+
}
|
|
7530
|
+
if (typeof val === "object" && "month" in val && "year" in val) {
|
|
7531
|
+
const m = Number(val.month);
|
|
7532
|
+
const y = Number(val.year);
|
|
7533
|
+
if (!isNaN(m) && !isNaN(y)) {
|
|
7534
|
+
this.selectedMonth = m >= 0 && m <= 11 ? m : 0;
|
|
7535
|
+
this.selectedYear = y;
|
|
7536
|
+
}
|
|
7537
|
+
return;
|
|
7538
|
+
}
|
|
7539
|
+
if (typeof val === "string") {
|
|
7540
|
+
const trimmed = val.trim();
|
|
7541
|
+
const isoMatch = trimmed.match(/^(\d{4})[-/](\d{1,2})$/);
|
|
7542
|
+
if (isoMatch) {
|
|
7543
|
+
const y = parseInt(isoMatch[1], 10);
|
|
7544
|
+
const m = parseInt(isoMatch[2], 10) - 1;
|
|
7545
|
+
if (m >= 0 && m <= 11) {
|
|
7546
|
+
this.selectedYear = y;
|
|
7547
|
+
this.selectedMonth = m;
|
|
7548
|
+
return;
|
|
7549
|
+
}
|
|
7550
|
+
}
|
|
7551
|
+
const parts = trimmed.split(/[\s,]+/);
|
|
7552
|
+
if (parts.length >= 2) {
|
|
7553
|
+
const yearIndex = parts.findIndex((p) => /^\d{4}$/.test(p));
|
|
7554
|
+
if (yearIndex !== -1) {
|
|
7555
|
+
const y = parseInt(parts[yearIndex], 10);
|
|
7556
|
+
const monthStr = parts.filter((_, idx) => idx !== yearIndex).join(" ").toLowerCase();
|
|
7557
|
+
const foundMonth = this.monthNames.findIndex((m) => m.toLowerCase().startsWith(monthStr.slice(0, 3)));
|
|
7558
|
+
if (foundMonth !== -1) {
|
|
7559
|
+
this.selectedYear = y;
|
|
7560
|
+
this.selectedMonth = foundMonth;
|
|
7561
|
+
return;
|
|
7562
|
+
}
|
|
7563
|
+
}
|
|
7564
|
+
}
|
|
7565
|
+
const parsedDate = new Date(trimmed);
|
|
7566
|
+
if (!isNaN(parsedDate.getTime())) {
|
|
7567
|
+
this.selectedMonth = parsedDate.getMonth();
|
|
7568
|
+
this.selectedYear = parsedDate.getFullYear();
|
|
7569
|
+
}
|
|
7570
|
+
}
|
|
7571
|
+
}
|
|
7572
|
+
prevMonth() {
|
|
7573
|
+
if (this.disabled) return;
|
|
7574
|
+
if (this.selectedMonth === 0) {
|
|
7575
|
+
if (this.selectedYear > this.minYear) {
|
|
7576
|
+
this.selectedMonth = 11;
|
|
7577
|
+
this.selectedYear--;
|
|
7578
|
+
this.emitSelection();
|
|
7579
|
+
}
|
|
7580
|
+
} else {
|
|
7581
|
+
this.selectedMonth--;
|
|
7582
|
+
this.emitSelection();
|
|
7583
|
+
}
|
|
7584
|
+
}
|
|
7585
|
+
nextMonth() {
|
|
7586
|
+
if (this.disabled) return;
|
|
7587
|
+
if (this.selectedMonth === 11) {
|
|
7588
|
+
if (this.selectedYear < this.maxYear) {
|
|
7589
|
+
this.selectedMonth = 0;
|
|
7590
|
+
this.selectedYear++;
|
|
7591
|
+
this.emitSelection();
|
|
7592
|
+
}
|
|
7593
|
+
} else {
|
|
7594
|
+
this.selectedMonth++;
|
|
7595
|
+
this.emitSelection();
|
|
7596
|
+
}
|
|
7597
|
+
}
|
|
7598
|
+
togglePopup() {
|
|
7599
|
+
if (this.disabled) return;
|
|
7600
|
+
this.popupOpen = !this.popupOpen;
|
|
7601
|
+
}
|
|
7602
|
+
selectMonth(monthIndex) {
|
|
7603
|
+
if (this.disabled) return;
|
|
7604
|
+
this.selectedMonth = monthIndex;
|
|
7605
|
+
this.popupOpen = false;
|
|
7606
|
+
this.emitSelection();
|
|
7607
|
+
}
|
|
7608
|
+
changeYear(delta) {
|
|
7609
|
+
if (this.disabled) return;
|
|
7610
|
+
const nextYear = this.selectedYear + delta;
|
|
7611
|
+
if (nextYear >= this.minYear && nextYear <= this.maxYear) {
|
|
7612
|
+
this.selectedYear = nextYear;
|
|
7613
|
+
this.emitSelection();
|
|
7614
|
+
}
|
|
7615
|
+
}
|
|
7616
|
+
emitSelection() {
|
|
7617
|
+
const formatted = this.formattedValue;
|
|
7618
|
+
this.valueChange.emit(formatted);
|
|
7619
|
+
this.monthChange.emit({
|
|
7620
|
+
month: this.selectedMonth,
|
|
7621
|
+
year: this.selectedYear,
|
|
7622
|
+
formatted
|
|
7623
|
+
});
|
|
7624
|
+
}
|
|
7625
|
+
onDocumentClick(event) {
|
|
7626
|
+
if (!this.popupOpen) return;
|
|
7627
|
+
if (!this.elementRef.nativeElement.contains(event.target)) this.popupOpen = false;
|
|
7628
|
+
}
|
|
7629
|
+
onEscape() {
|
|
7630
|
+
if (this.popupOpen) this.popupOpen = false;
|
|
7631
|
+
}
|
|
7632
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
7633
|
+
minVersion: "12.0.0",
|
|
7634
|
+
version: "22.2.4",
|
|
7635
|
+
ngImport: i0,
|
|
7636
|
+
type: FusionMonthPickerComponent,
|
|
7637
|
+
deps: [{ token: i0.ElementRef }],
|
|
7638
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
7639
|
+
});
|
|
7640
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7641
|
+
minVersion: "14.0.0",
|
|
7642
|
+
version: "22.2.4",
|
|
7643
|
+
type: FusionMonthPickerComponent,
|
|
7644
|
+
isStandalone: true,
|
|
7645
|
+
selector: "fusion-month-picker, nxt-month-picker",
|
|
7646
|
+
inputs: {
|
|
7647
|
+
value: "value",
|
|
7648
|
+
disabled: "disabled",
|
|
7649
|
+
minYear: "minYear",
|
|
7650
|
+
maxYear: "maxYear",
|
|
7651
|
+
monthNames: "monthNames"
|
|
7652
|
+
},
|
|
7653
|
+
outputs: {
|
|
7654
|
+
valueChange: "valueChange",
|
|
7655
|
+
monthChange: "monthChange"
|
|
7656
|
+
},
|
|
7657
|
+
host: { listeners: {
|
|
7658
|
+
"document:click": "onDocumentClick($event)",
|
|
7659
|
+
"document:keydown.escape": "onEscape()"
|
|
7660
|
+
} },
|
|
7661
|
+
ngImport: i0,
|
|
7662
|
+
template: "<!-- MR 16NOV26 Standalone FusionMonthPickerComponent template -->\n<div class=\"month-picker-container\" [class.disabled]=\"disabled\">\n <button\n type=\"button\"\n class=\"arrow-btn\"\n [disabled]=\"disabled || (selectedMonth === 0 && selectedYear <= minYear)\"\n (click)=\"prevMonth()\"\n aria-label=\"Previous month\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"></i>\n </button>\n\n <span\n class=\"month-label\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"popupOpen\"\n (click)=\"togglePopup()\"\n (keydown.enter)=\"togglePopup()\"\n (keydown.space)=\"togglePopup(); $event.preventDefault()\">\n {{ monthNames[selectedMonth] }} {{ selectedYear }}\n </span>\n\n <button\n type=\"button\"\n class=\"arrow-btn\"\n [disabled]=\"disabled || (selectedMonth === 11 && selectedYear >= maxYear)\"\n (click)=\"nextMonth()\"\n aria-label=\"Next month\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"></i>\n </button>\n</div>\n\n<!-- Calendar Grid Popover -->\n<div class=\"month-picker-popup\" *ngIf=\"popupOpen\" role=\"dialog\" aria-modal=\"true\">\n <div class=\"year-section\">\n <button\n type=\"button\"\n class=\"year-nav-btn\"\n [disabled]=\"selectedYear <= minYear\"\n (click)=\"changeYear(-1)\"\n aria-label=\"Previous year\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"></i>\n </button>\n <span class=\"year-label\">{{ selectedYear }}</span>\n <button\n type=\"button\"\n class=\"year-nav-btn\"\n [disabled]=\"selectedYear >= maxYear\"\n (click)=\"changeYear(1)\"\n aria-label=\"Next year\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"></i>\n </button>\n </div>\n\n <div class=\"month-grid\" role=\"grid\">\n <button\n type=\"button\"\n *ngFor=\"let m of monthNames; let i = index\"\n class=\"month-item\"\n [class.active]=\"i === selectedMonth\"\n [attr.aria-selected]=\"i === selectedMonth\"\n (click)=\"selectMonth(i)\">\n {{ m | slice:0:3 }}\n </button>\n </div>\n</div>\n",
|
|
7663
|
+
styles: [":host{display:inline-block;position:relative;font-family:inherit}.month-picker-container{display:inline-flex;align-items:center;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:var(--radius-medium, 8px);background:var(--comp-bg-color, #ffffff);padding:2px 4px;-webkit-user-select:none;user-select:none;box-sizing:border-box}.month-picker-container.disabled{opacity:.6;cursor:not-allowed;pointer-events:none}.month-label{cursor:pointer;min-width:120px;text-align:center;font-size:var(--fs-medium, 14px);font-weight:var(--fw-600, 600);color:var(--fb-text-primary, #0f172a);padding:4px 8px;outline:none}.month-label:focus-visible{border-radius:4px;box-shadow:0 0 0 2px var(--fb-focus-ring, #003566)}.arrow-btn{border:none;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:4px;color:var(--fb-text-primary, #0f172a);border-radius:4px;transition:background-color .15s ease-in-out}.arrow-btn:hover:not(:disabled){background-color:var(--fb-action-surface-hover, #e0f2fe)}.arrow-btn:disabled{opacity:.4;cursor:not-allowed;color:var(--fb-text-disabled, #94a3b8)}.month-picker-popup{position:absolute;top:calc(100% + 6px);left:0;background:var(--fb-surface-elevated, #ffffff);padding:12px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .12));border:1px solid var(--fb-border-default, #e2e8f0);border-radius:var(--radius-medium, 8px);width:220px;z-index:1050;box-sizing:border-box}.year-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:var(--fs-medium, 14px);font-weight:var(--fw-600, 600)}.year-label{color:var(--fb-text-primary, #0f172a)}.year-nav-btn{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:1px solid var(--fb-border-default, #e2e8f0);border-radius:4px;padding:2px 6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s ease-in-out}.year-nav-btn:hover:not(:disabled){background-color:var(--fb-action-surface-hover, #e0f2fe)}.year-nav-btn:disabled{opacity:.4;cursor:not-allowed;color:var(--fb-text-disabled, #94a3b8)}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.month-item{padding:6px 4px;border-radius:4px;border:1px solid transparent;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);font-size:var(--fs-small, 12px);font-weight:var(--fw-500, 500);transition:all .15s ease-in-out}.month-item:hover:not(.active){background-color:var(--fb-action-surface-hover, #e0f2fe)}.month-item.active{background-color:var(--fb-selected-bg, #003566);color:var(--fb-selected-text, #ffffff);border-color:var(--fb-selected-border, #003566);font-weight:var(--fw-600, 600)}\n"],
|
|
7664
|
+
dependencies: [
|
|
7665
|
+
{
|
|
7666
|
+
kind: "ngmodule",
|
|
7667
|
+
type: CommonModule
|
|
7668
|
+
},
|
|
7669
|
+
{
|
|
7670
|
+
kind: "directive",
|
|
7671
|
+
type: i1$4.NgForOf,
|
|
7672
|
+
selector: "[ngFor][ngForOf]",
|
|
7673
|
+
inputs: [
|
|
7674
|
+
"ngForOf",
|
|
7675
|
+
"ngForTrackBy",
|
|
7676
|
+
"ngForTemplate"
|
|
7677
|
+
]
|
|
7678
|
+
},
|
|
7679
|
+
{
|
|
7680
|
+
kind: "directive",
|
|
7681
|
+
type: i1$4.NgIf,
|
|
7682
|
+
selector: "[ngIf]",
|
|
7683
|
+
inputs: [
|
|
7684
|
+
"ngIf",
|
|
7685
|
+
"ngIfThen",
|
|
7686
|
+
"ngIfElse"
|
|
7687
|
+
]
|
|
7688
|
+
},
|
|
7689
|
+
{
|
|
7690
|
+
kind: "ngmodule",
|
|
7691
|
+
type: FormsModule
|
|
7692
|
+
},
|
|
7693
|
+
{
|
|
7694
|
+
kind: "pipe",
|
|
7695
|
+
type: i1$4.SlicePipe,
|
|
7696
|
+
name: "slice"
|
|
7697
|
+
}
|
|
7698
|
+
],
|
|
7699
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
7700
|
+
});
|
|
7701
|
+
};
|
|
7702
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
7703
|
+
minVersion: "12.0.0",
|
|
7704
|
+
version: "22.2.4",
|
|
7705
|
+
ngImport: i0,
|
|
7706
|
+
type: FusionMonthPickerComponent,
|
|
7707
|
+
decorators: [{
|
|
7708
|
+
type: Component,
|
|
7709
|
+
args: [{
|
|
7710
|
+
selector: "fusion-month-picker, nxt-month-picker",
|
|
7711
|
+
standalone: true,
|
|
7712
|
+
imports: [CommonModule, FormsModule],
|
|
7713
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7714
|
+
template: "<!-- MR 16NOV26 Standalone FusionMonthPickerComponent template -->\n<div class=\"month-picker-container\" [class.disabled]=\"disabled\">\n <button\n type=\"button\"\n class=\"arrow-btn\"\n [disabled]=\"disabled || (selectedMonth === 0 && selectedYear <= minYear)\"\n (click)=\"prevMonth()\"\n aria-label=\"Previous month\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"></i>\n </button>\n\n <span\n class=\"month-label\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"popupOpen\"\n (click)=\"togglePopup()\"\n (keydown.enter)=\"togglePopup()\"\n (keydown.space)=\"togglePopup(); $event.preventDefault()\">\n {{ monthNames[selectedMonth] }} {{ selectedYear }}\n </span>\n\n <button\n type=\"button\"\n class=\"arrow-btn\"\n [disabled]=\"disabled || (selectedMonth === 11 && selectedYear >= maxYear)\"\n (click)=\"nextMonth()\"\n aria-label=\"Next month\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"></i>\n </button>\n</div>\n\n<!-- Calendar Grid Popover -->\n<div class=\"month-picker-popup\" *ngIf=\"popupOpen\" role=\"dialog\" aria-modal=\"true\">\n <div class=\"year-section\">\n <button\n type=\"button\"\n class=\"year-nav-btn\"\n [disabled]=\"selectedYear <= minYear\"\n (click)=\"changeYear(-1)\"\n aria-label=\"Previous year\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"></i>\n </button>\n <span class=\"year-label\">{{ selectedYear }}</span>\n <button\n type=\"button\"\n class=\"year-nav-btn\"\n [disabled]=\"selectedYear >= maxYear\"\n (click)=\"changeYear(1)\"\n aria-label=\"Next year\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"></i>\n </button>\n </div>\n\n <div class=\"month-grid\" role=\"grid\">\n <button\n type=\"button\"\n *ngFor=\"let m of monthNames; let i = index\"\n class=\"month-item\"\n [class.active]=\"i === selectedMonth\"\n [attr.aria-selected]=\"i === selectedMonth\"\n (click)=\"selectMonth(i)\">\n {{ m | slice:0:3 }}\n </button>\n </div>\n</div>\n",
|
|
7715
|
+
styles: [":host{display:inline-block;position:relative;font-family:inherit}.month-picker-container{display:inline-flex;align-items:center;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:var(--radius-medium, 8px);background:var(--comp-bg-color, #ffffff);padding:2px 4px;-webkit-user-select:none;user-select:none;box-sizing:border-box}.month-picker-container.disabled{opacity:.6;cursor:not-allowed;pointer-events:none}.month-label{cursor:pointer;min-width:120px;text-align:center;font-size:var(--fs-medium, 14px);font-weight:var(--fw-600, 600);color:var(--fb-text-primary, #0f172a);padding:4px 8px;outline:none}.month-label:focus-visible{border-radius:4px;box-shadow:0 0 0 2px var(--fb-focus-ring, #003566)}.arrow-btn{border:none;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:4px;color:var(--fb-text-primary, #0f172a);border-radius:4px;transition:background-color .15s ease-in-out}.arrow-btn:hover:not(:disabled){background-color:var(--fb-action-surface-hover, #e0f2fe)}.arrow-btn:disabled{opacity:.4;cursor:not-allowed;color:var(--fb-text-disabled, #94a3b8)}.month-picker-popup{position:absolute;top:calc(100% + 6px);left:0;background:var(--fb-surface-elevated, #ffffff);padding:12px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .12));border:1px solid var(--fb-border-default, #e2e8f0);border-radius:var(--radius-medium, 8px);width:220px;z-index:1050;box-sizing:border-box}.year-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:var(--fs-medium, 14px);font-weight:var(--fw-600, 600)}.year-label{color:var(--fb-text-primary, #0f172a)}.year-nav-btn{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:1px solid var(--fb-border-default, #e2e8f0);border-radius:4px;padding:2px 6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s ease-in-out}.year-nav-btn:hover:not(:disabled){background-color:var(--fb-action-surface-hover, #e0f2fe)}.year-nav-btn:disabled{opacity:.4;cursor:not-allowed;color:var(--fb-text-disabled, #94a3b8)}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.month-item{padding:6px 4px;border-radius:4px;border:1px solid transparent;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);font-size:var(--fs-small, 12px);font-weight:var(--fw-500, 500);transition:all .15s ease-in-out}.month-item:hover:not(.active){background-color:var(--fb-action-surface-hover, #e0f2fe)}.month-item.active{background-color:var(--fb-selected-bg, #003566);color:var(--fb-selected-text, #ffffff);border-color:var(--fb-selected-border, #003566);font-weight:var(--fw-600, 600)}\n"]
|
|
7716
|
+
}]
|
|
7717
|
+
}],
|
|
7718
|
+
ctorParameters: () => [{ type: i0.ElementRef }],
|
|
7719
|
+
propDecorators: {
|
|
7720
|
+
value: [{ type: Input }],
|
|
7721
|
+
disabled: [{ type: Input }],
|
|
7722
|
+
minYear: [{ type: Input }],
|
|
7723
|
+
maxYear: [{ type: Input }],
|
|
7724
|
+
monthNames: [{ type: Input }],
|
|
7725
|
+
valueChange: [{ type: Output }],
|
|
7726
|
+
monthChange: [{ type: Output }],
|
|
7727
|
+
onDocumentClick: [{
|
|
7728
|
+
type: HostListener,
|
|
7729
|
+
args: ["document:click", ["$event"]]
|
|
7730
|
+
}],
|
|
7731
|
+
onEscape: [{
|
|
7732
|
+
type: HostListener,
|
|
7733
|
+
args: ["document:keydown.escape"]
|
|
7734
|
+
}]
|
|
7735
|
+
}
|
|
7736
|
+
});
|
|
7463
7737
|
var AttendanceTableComponent = class AttendanceTableComponent {
|
|
7464
7738
|
cdr;
|
|
7465
7739
|
apiService;
|
|
@@ -7474,6 +7748,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
7474
7748
|
searchTextValue = "";
|
|
7475
7749
|
isSandwichLeave = false;
|
|
7476
7750
|
isCheckButton = true;
|
|
7751
|
+
monthPickerPosition = "left";
|
|
7477
7752
|
monthArray = [];
|
|
7478
7753
|
yearArray = [];
|
|
7479
7754
|
year;
|
|
@@ -7659,15 +7934,14 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
7659
7934
|
this.dataSource = new MatTableDataSource(records);
|
|
7660
7935
|
this.selection.clear();
|
|
7661
7936
|
if (this.sort) this.dataSource.sort = this.sort;
|
|
7662
|
-
if (this.paginator) this.dataSource.paginator = this.paginator;
|
|
7663
7937
|
const storedSize = localStorage.getItem("attendanceTableSize");
|
|
7664
7938
|
const storedIndex = Number(localStorage.getItem("attendanceTableIndex"));
|
|
7665
7939
|
this.pageSize = storedSize ? Number(storedSize) : this.pageSize;
|
|
7666
|
-
this.pageIndex = storedIndex ||
|
|
7940
|
+
this.pageIndex = storedIndex || 1;
|
|
7667
7941
|
this.totalCount = this.totalRecords || records.length;
|
|
7668
7942
|
if (this.searchTextValue) {
|
|
7669
7943
|
this.dataSource.filter = this.searchTextValue.trim().toLowerCase();
|
|
7670
|
-
this.
|
|
7944
|
+
if (this.paginator?.firstPage) this.paginator.firstPage();
|
|
7671
7945
|
}
|
|
7672
7946
|
this.cdr.markForCheck();
|
|
7673
7947
|
}
|
|
@@ -7834,11 +8108,18 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
7834
8108
|
return `${`${dayNames[firstDate.getDay()]} ${monthNames[firstDate.getMonth()]} ${pad(firstDate.getDate())} ${firstDate.getFullYear()}`} to ${`${dayNames[lastDate.getDay()]} ${monthNames[lastDate.getMonth()]} ${pad(lastDate.getDate())} ${lastDate.getFullYear()}`}`;
|
|
7835
8109
|
}
|
|
7836
8110
|
onPageChange(event) {
|
|
7837
|
-
this.pageIndex = event.pageIndex;
|
|
7838
|
-
this.pageSize = event.pageSize;
|
|
8111
|
+
this.pageIndex = Number(event.pageIndex) || 1;
|
|
8112
|
+
this.pageSize = Number(event.pageSize) || 10;
|
|
7839
8113
|
this.pageChange.emit(event);
|
|
7840
8114
|
}
|
|
7841
8115
|
pageParams(event) {
|
|
8116
|
+
if (!this.totalRecords && this.data) {
|
|
8117
|
+
const page = Number(event.pageIndex) || 1;
|
|
8118
|
+
const size = Number(event.pageSize) || 10;
|
|
8119
|
+
const start = (page - 1) * size;
|
|
8120
|
+
const end = start + size;
|
|
8121
|
+
this.dataSource.data = this.data.slice(start, end);
|
|
8122
|
+
}
|
|
7842
8123
|
localStorage.setItem("attendanceTableSize", event.pageSize);
|
|
7843
8124
|
localStorage.setItem("attendanceTableIndex", event.pageIndex);
|
|
7844
8125
|
this.onPageChange(event);
|
|
@@ -7847,6 +8128,12 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
7847
8128
|
pageIndex: Number(event.pageIndex)
|
|
7848
8129
|
});
|
|
7849
8130
|
}
|
|
8131
|
+
onMonthPickerChange(event) {
|
|
8132
|
+
this.selectedMonth = event.month;
|
|
8133
|
+
this.selectedYear = event.year;
|
|
8134
|
+
this.emitSelection();
|
|
8135
|
+
this.cdr.markForCheck();
|
|
8136
|
+
}
|
|
7850
8137
|
prevMonth() {
|
|
7851
8138
|
if (this.selectedMonth === 0) {
|
|
7852
8139
|
this.selectedMonth = 11;
|
|
@@ -7907,7 +8194,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
7907
8194
|
this.searchFilterData.emit(this.dataSource.filteredData);
|
|
7908
8195
|
this.searchValueChange.emit(filterValue);
|
|
7909
8196
|
this.searchText.emit(filterValue);
|
|
7910
|
-
this.
|
|
8197
|
+
if (this.paginator?.firstPage) this.paginator.firstPage();
|
|
7911
8198
|
}
|
|
7912
8199
|
isAllSelected() {
|
|
7913
8200
|
if (this.isLoading || !this.dataSource.data.length) return false;
|
|
@@ -8000,6 +8287,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
8000
8287
|
searchTextValue: "searchTextValue",
|
|
8001
8288
|
isSandwichLeave: "isSandwichLeave",
|
|
8002
8289
|
isCheckButton: "isCheckButton",
|
|
8290
|
+
monthPickerPosition: "monthPickerPosition",
|
|
8003
8291
|
monthArray: "monthArray",
|
|
8004
8292
|
yearArray: "yearArray",
|
|
8005
8293
|
year: "year",
|
|
@@ -8057,13 +8345,13 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
8057
8345
|
}, {
|
|
8058
8346
|
propertyName: "paginator",
|
|
8059
8347
|
first: true,
|
|
8060
|
-
predicate:
|
|
8348
|
+
predicate: ["paginator"],
|
|
8061
8349
|
descendants: true
|
|
8062
8350
|
}],
|
|
8063
8351
|
usesOnChanges: true,
|
|
8064
8352
|
ngImport: i0,
|
|
8065
|
-
template: "<!-- MR 10NOV26 Port exact DataTableTwoComponent template from host testMaster -->\n<div class=\"table-layout w-100\" [id]=\"tableId\">\n <div>\n <div class=\"d-flex justify-content-between\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex\">\n <!-- SC19NOV2025 replace the month year seperate dropdown into month year picker -->\n <div class=\"picker-container\">\n <i class=\" arrow-btn fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"\n (click)=\"prevMonth()\" style=\"color: var(--fc-text-color-dar) !important;\"></i>\n <span class=\"month-label\" (click)=\"togglePopup()\">\n {{ months[selectedMonth] }} {{ selectedYear }}\n </span>\n <i class=\" arrow-btn fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"\n (click)=\"nextMonth()\" style=\"color: var(--fc-text-color-dar) !important;\"></i>\n </div>\n <div class=\"popup\" *ngIf=\"popupOpen\">\n <div class=\"year-section\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\" (click)=\"changeYear(-1)\"\n style=\"color: var(--fc-text-color-dar) !important;\"></i>\n <span>{{ selectedYear }}</span>\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\" (click)=\"changeYear(1)\"\n style=\"color: var(--fc-text-color-dar) !important;\"></i>\n </div>\n\n <div class=\"month-grid\">\n <div class=\"month-item\" *ngFor=\"let m of (monthArray && monthArray.length > 0 ? monthArray : months); let i = index\" [class.active]=\"i === selectedMonth\"\n (click)=\"selectMonth(i)\">\n {{ m | slice:0:3 }} </div>\n </div>\n </div>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar\">\n <input type=\"text\" placeholder=\"{{ 'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search' }}\"\n matInput (keyup)=\"applyFilter($event)\" #input [value]=\"searchTextValue || ''\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\" class=\"btn btn-primary me-2\"\n (click)=\"confirmModal = true\">{{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}</button>\n <div class=\"flex\">\n <!-- MR 18OCT26 Add clear tooltips for Import and Export toolbar buttons -->\n <nxt-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event)\"\n [buttonType]=\"button?.class\" [buttonValue]=\"button?.namePath\" [buttonConfig]=\"button?.buttonConfig\"\n [type]=\"button?.type\" [btnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </nxt-button>\n </div>\n </div>\n </div>\n\n <!-- MR 18OCT26 Reposition legend to top bar with matching chips and contextual title -->\n <div class=\"d-flex justify-content-between align-items-center top-legend-bar\">\n <div class=\"d-flex align-items-center gap-3 flex-wrap\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">✓</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 <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\">\n <!-- MR 18OCT26 Single unified MatTable eliminates header style discrepancy and checkbox shadow -->\n <table mat-table [dataSource]=\"dataSource\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.week-off]=\"isWeekend(column)\"\n style=\"text-align: center; padding: 0px !important;\" *matCellDef=\"let element\">\n <ng-container *ngIf=\"!element?.isSkeleton; else skeletonCell\">\n <!-- Employee Detail Column with Avatar and Metadata -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"emp-avatar\">\n {{ getInitials(element[column]?.empName || element.employeeName || element.name) }}\n </div>\n <div class=\"emp-meta\">\n <div class=\"emp-name-row\">\n <span class=\"emp-name\" [class.hyper-link]=\"hyperLinkColumns.includes(column)\"\n (click)=\"hyperLinkColumns.includes(column) ? hyperLinkClick(element, column, i) : ''\"\n [title]=\"element[column]?.empName || element.employeeName || element.name\">\n {{ element[column]?.empName || element.employeeName || element.name }}\n </span>\n <span *ngIf=\"element[column]?.empId || element.employeeId || element.empId\" class=\"emp-id-tag\">\n {{ element[column]?.empId || element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-sub-row\" [title]=\"(element[column]?.desig || element.designation || '') + ((element[column]?.loc || element.location) ? (', ' + (element[column]?.loc || element.location)) : '')\">\n <span>{{ element[column]?.desig || element.designation }}</span>\n <span *ngIf=\"(element[column]?.desig || element.designation) && (element[column]?.loc || element.location)\">, </span>\n <span>{{ element[column]?.loc || element.location }}</span>\n </div>\n </div>\n </div>\n\n <!-- Summary Pill Column -->\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <span class=\"summary-pill\" [class.summary-pill--target]=\"isNearTarget(element.workingDays ?? element.presentDays, element.totalCompanyWorkingDays ?? element.totalWorkingDays)\"\n [title]=\"'Present: ' + (element.workingDays ?? element.presentDays ?? 0) + ' / Total Working Days: ' + (element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0)\">\n {{element.workingDays ?? element.presentDays ?? 0}}/{{element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0}}\n </span>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">✓</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 (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <div class=\"d-flex justify-content-end Legend-div\">\n <mat-paginator #paginator [pageSizeOptions]=\"itemsPerPage\" [length]=\"totalCount\" [pageSize]=\"pageSize\"\n [pageIndex]=\"pageIndex\" showFirstLastButtons (page)=\"pageParams($event)\"></mat-paginator>\n </div>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
|
|
8066
|
-
styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{max-height:600px;overflow-y:auto;display:block;width:100%}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-normal);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color{background:var(--fb-action-surface, #e0f2fe)!important;color:var(--fb-text-primary, #0f172a)!important}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);background:var(--fb-surface, #ffffff);border-radius:6px;align-self:center}.search-bar{display:flex;flex-direction:row;align-items:center;width:100%;margin:5px}.card-btn{height:18px;width:18px}td.mat-cell:last-of-type{padding:8px;font-size:var(--fs-medium)}.table-title{font-weight:var(--fw-600);font-size:var(--fs-medium)}.search-component{top:20px;width:max-content;right:-30%}.sticky-column{background:var(--fb-surface, #ffffff)}.mat-sort-header-container{margin-left:5px}.body-color img{width:25px;padding:5px;cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border:none;color:var(--fb-text-primary, #0f172a);max-width:50px}.mat-cell{padding:8px;white-space:nowrap;text-overflow:ellipsis}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.mat-column-select{width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center;padding:0!important;overflow:clip!important;text-overflow:clip!important}.mat-column-employeeDetail{width:260px!important;min-width:260px!important;max-width:260px!important;left:44px!important;padding-left:8px!important;padding-right:8px!important}.mat-column-summary{width:64px!important;min-width:64px!important;max-width:64px!important;text-align:center;padding:0 4px!important}.th-td{width:36px!important;min-width:36px!important;max-width:36px!important;text-align:center;padding:0!important}::ng-deep .mdc-data-table__cell,.mdc-data-table__header-cell{padding:0!important}::ng-deep .mat-mdc-checkbox-touch-target{height:28px!important}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding:0 8px}.mat-row{height:56px!important;min-height:56px!important;transition:background-color .15s ease}.mat-row:hover,.mat-row:hover .sticky-column,.mat-row:hover .sticky-col{background-color:var(--fb-row-hover, #f8fafc)!important}.mat-cell{height:56px!important;padding:0 2px!important;white-space:nowrap;color:var(--fb-text-primary, #0f172a)}.mat-header-row{height:52px!important;position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);z-index:20;border-bottom:1px solid var(--fb-border-default, #e2e8f0);color:var(--fb-text-primary, #0f172a)}.sticky-select .mdc-checkbox{opacity:.55;transition:opacity .15s ease}.mat-row:hover .sticky-select .mdc-checkbox,.sticky-select .mdc-checkbox--selected,.sticky-select .mdc-checkbox--indeterminate{opacity:1!important}.week-off{background:var(--week-off, #f8fafc)!important}.holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%)!important;color:var(--holiday, #0284c7)}.attendance-chip{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);cursor:pointer;transition:transform .1s ease;-webkit-user-select:none;user-select:none}.attendance-chip:hover{transform:scale(1.1)}.attendance-chip.attendance-present{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a)}.attendance-chip.attendance-absent{background:color-mix(in srgb,var(--attendance-absent, #ef4444),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-absent, #ef4444)}.attendance-chip.attendance-half{background:color-mix(in srgb,var(--attendance-half, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:color-mix(in srgb,var(--attendance-half, #f59e0b),black 45%)}.attendance-chip.attendance-holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%);color:var(--holiday, #0284c7)}.attendance-chip.attendance-review{background:color-mix(in srgb,var(--clr-warning, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:var(--clr-warning, #f59e0b)}.attendance-chip.attendance-weekoff{background:color-mix(in srgb,var(--attendance-weekoff, #64748b),var(--comp-bg-color, #ffffff) 90%);color:var(--attendance-weekoff, #64748b)}.att-missing{width:20px;height:20px;border:1px dashed color-mix(in srgb,var(--border-color, #e2e8f0),black 15%);border-radius:6px;display:inline-block}.att-future{color:var(--fc-text-color-light, #94a3b8);font-size:16px;line-height:1;display:inline-block;opacity:.5}.att-dash{color:var(--label-text-color-light, #64748b);font-size:14px}.emp-cell-container{display:flex;align-items:center;gap:10px;width:100%;padding:0 4px}.emp-avatar{width:32px;height:32px;min-width:32px;border-radius:50%;font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);display:flex;align-items:center;justify-content:center;flex-shrink:0}.emp-meta{display:flex;flex-direction:column;overflow:hidden;text-align:left;line-height:1.25;min-width:0}.emp-name-row{display:flex;align-items:center;gap:6px;overflow:hidden}.emp-name{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emp-id-tag{font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-500, 500);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);padding:1px 5px;border-radius:4px;border:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.emp-sub-row{font-size:var(--fs-Usmall, 11px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.summary-pill{padding:2px 8px;border-radius:20px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);border:1px solid var(--border-color, #e2e8f0);display:inline-block;white-space:nowrap}.summary-pill--target{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a);border-color:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 70%)}.head-employee-label{font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a)}.head-day-letter{font-size:var(--fs-Usmall, 11px);color:var(--fc-text-color-light, #64748b);font-weight:var(--fw-500, 500);line-height:1;text-transform:uppercase}.head-date-num{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);line-height:1.4;margin-top:2px}.head-today{background:var(--fb-action, #003566)!important;color:var(--fb-text-on-action, #ffffff)!important;border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.head-muted{color:var(--fb-text-muted, #94a3b8)!important}.top-legend-bar{border-top:1px solid var(--fb-border-default, #e2e8f0);padding:8px 12px;font-size:var(--fs-small, 12px);background:var(--fb-surface, #ffffff)}.legend-text{font-size:var(--fs-small, 12px);color:var(--fc-text-color-dark, #0f172a);font-weight:var(--fw-500, 500)}.table-subtitle{font-size:var(--fs-normal, 13px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500)}@media screen and (min-width:600px){mat-table{font-size:18px}}@media screen and (max-width:882px){mat-table{font-size:var(--fs-medium)}.mat-column-name,.mat-column-weight{display:none}.mat-header-cell{padding:8px}}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline;cursor:pointer}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.btn-primary{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action, #003566)!important;border-color:var(--fb-action, #003566)!important;padding:4px 9px;border-radius:.375rem}.btn-primary:hover{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-hover, #00284d)!important;border-color:var(--fb-action-hover, #00284d)!important}.btn-primary:active,.btn-primary.active,.show>.btn-primary.dropdown-toggle{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-pressed, #001f3f)!important;border-color:var(--fb-action-pressed, #001f3f)!important}.btn-primary:disabled,.btn-primary.disabled{color:var(--fb-text-disabled, #94a3b8)!important;background-color:var(--fb-action-disabled, #e2e8f0)!important;border-color:var(--fb-action-disabled, #e2e8f0)!important}::ng-deep .clickable-img{height:36px!important;transition:unset!important;border:unset!important;border-radius:0!important}::ng-deep nxt-button.ms-2,::ng-deep nxt-button.me-2{margin-left:0!important;margin-right:0!important}.body-color img{border-radius:8px!important}.modal-backdrop{opacity:.9}.mat-table{width:100%;border-spacing:0}.mat-header-row{position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-text-primary, #0f172a);z-index:2}.picker-container{display:flex;align-items:center;font-size:18px;font-weight:600;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.month-label{cursor:pointer;min-width:100px;text-align:center;font-size:var(--fs-medium, 14px)}.arrow-btn{border:none;background:transparent;font-size:20px;cursor:pointer}.popup{position:absolute;margin-top:45px;background:var(--fb-surface-elevated, #ffffff);padding:15px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0,0,0,.12));border-radius:var(--radius-medium, 8px);width:200px;z-index:1000}.year-section{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:10px;font-size:var(--fs-medium, 14px)}.year-section button{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:none;padding:3px 8px;font-size:14px;cursor:pointer}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-size:var(--fs-medium, 14px)}.month-item{padding:6px;border-radius:4px;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc)}.month-item.active{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.Legend-font{font-size:var(--fs-normal, 13px)}.table-margin,.Legend-div{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.sticky-checkbox{position:sticky;left:0;z-index:1000;background:var(--fb-surface, #ffffff);min-width:48px;width:48px}th.sticky-checkbox{z-index:1100}\n"],
|
|
8353
|
+
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 <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar\">\n <input type=\"text\" placeholder=\"{{ 'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search' }}\"\n matInput (keyup)=\"applyFilter($event)\" #input [value]=\"searchTextValue || ''\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\" class=\"btn btn-primary me-2\"\n (click)=\"confirmModal = true\">{{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}</button>\n <div class=\"flex\">\n <!-- MR 18OCT26 Add clear tooltips for Import and Export toolbar buttons -->\n <nxt-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event)\"\n [buttonType]=\"button?.class\" [buttonValue]=\"button?.namePath\" [buttonConfig]=\"button?.buttonConfig\"\n [type]=\"button?.type\" [btnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </nxt-button>\n </div>\n </div>\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\">\n <!-- MR 18OCT26 Single unified MatTable eliminates header style discrepancy and checkbox shadow -->\n <table mat-table [dataSource]=\"dataSource\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <!-- 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 (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- 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",
|
|
8354
|
+
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 nxt-button.ms-2,::ng-deep nxt-button.me-2{margin-left:0!important;margin-right:0!important}.body-color img{border-radius:8px!important}.modal-backdrop{opacity:.9}.mat-table{width:100%;border-spacing:0}.mat-header-row{position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-text-primary, #0f172a);z-index:2}.picker-container{display:flex;align-items:center;font-size:18px;font-weight:600;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.month-label{cursor:pointer;min-width:100px;text-align:center;font-size:var(--fs-medium, 14px)}.arrow-btn{border:none;background:transparent;font-size:20px;cursor:pointer}.popup{position:absolute;margin-top:45px;background:var(--fb-surface-elevated, #ffffff);padding:15px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0,0,0,.12));border-radius:var(--radius-medium, 8px);width:200px;z-index:1000}.year-section{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:10px;font-size:var(--fs-medium, 14px)}.year-section button{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:none;padding:3px 8px;font-size:14px;cursor:pointer}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-size:var(--fs-medium, 14px)}.month-item{padding:6px;border-radius:4px;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc)}.month-item.active{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.Legend-font{font-size:var(--fs-normal, 13px)}.table-margin,.Legend-div{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.sticky-checkbox{position:sticky;left:0;z-index:1000;background:var(--fb-surface, #ffffff);min-width:48px;width:48px}th.sticky-checkbox{z-index:1100}\n"],
|
|
8067
8355
|
dependencies: [
|
|
8068
8356
|
{
|
|
8069
8357
|
kind: "ngmodule",
|
|
@@ -8201,24 +8489,6 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
8201
8489
|
kind: "ngmodule",
|
|
8202
8490
|
type: MatPaginatorModule
|
|
8203
8491
|
},
|
|
8204
|
-
{
|
|
8205
|
-
kind: "component",
|
|
8206
|
-
type: i6$1.MatPaginator,
|
|
8207
|
-
selector: "mat-paginator",
|
|
8208
|
-
inputs: [
|
|
8209
|
-
"color",
|
|
8210
|
-
"pageIndex",
|
|
8211
|
-
"length",
|
|
8212
|
-
"pageSize",
|
|
8213
|
-
"pageSizeOptions",
|
|
8214
|
-
"hidePageSize",
|
|
8215
|
-
"showFirstLastButtons",
|
|
8216
|
-
"selectConfig",
|
|
8217
|
-
"disabled"
|
|
8218
|
-
],
|
|
8219
|
-
outputs: ["page"],
|
|
8220
|
-
exportAs: ["matPaginator"]
|
|
8221
|
-
},
|
|
8222
8492
|
{
|
|
8223
8493
|
kind: "ngmodule",
|
|
8224
8494
|
type: MatTooltipModule
|
|
@@ -8346,9 +8616,33 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
8346
8616
|
]
|
|
8347
8617
|
},
|
|
8348
8618
|
{
|
|
8349
|
-
kind: "
|
|
8350
|
-
type:
|
|
8351
|
-
|
|
8619
|
+
kind: "component",
|
|
8620
|
+
type: PaginationComponent,
|
|
8621
|
+
selector: "app-pagination",
|
|
8622
|
+
inputs: [
|
|
8623
|
+
"pageSizeOptions",
|
|
8624
|
+
"collectionSize",
|
|
8625
|
+
"pageSize",
|
|
8626
|
+
"currentPage",
|
|
8627
|
+
"maxSize",
|
|
8628
|
+
"firstLastButtons",
|
|
8629
|
+
"nextPreviousButtons",
|
|
8630
|
+
"small"
|
|
8631
|
+
],
|
|
8632
|
+
outputs: ["event"]
|
|
8633
|
+
},
|
|
8634
|
+
{
|
|
8635
|
+
kind: "component",
|
|
8636
|
+
type: FusionMonthPickerComponent,
|
|
8637
|
+
selector: "fusion-month-picker, nxt-month-picker",
|
|
8638
|
+
inputs: [
|
|
8639
|
+
"value",
|
|
8640
|
+
"disabled",
|
|
8641
|
+
"minYear",
|
|
8642
|
+
"maxYear",
|
|
8643
|
+
"monthNames"
|
|
8644
|
+
],
|
|
8645
|
+
outputs: ["valueChange", "monthChange"]
|
|
8352
8646
|
},
|
|
8353
8647
|
{
|
|
8354
8648
|
kind: "pipe",
|
|
@@ -8382,6 +8676,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8382
8676
|
CommonScreenComponent,
|
|
8383
8677
|
MultiCheckboxComponent,
|
|
8384
8678
|
MultipleFilterComponent,
|
|
8679
|
+
PaginationComponent,
|
|
8680
|
+
FusionMonthPickerComponent,
|
|
8385
8681
|
CustomTranslatePipe
|
|
8386
8682
|
],
|
|
8387
8683
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -8389,8 +8685,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8389
8685
|
provide: MatPaginatorIntl,
|
|
8390
8686
|
useClass: CustomPaginatorIntl
|
|
8391
8687
|
}],
|
|
8392
|
-
template: "<!-- MR 10NOV26 Port exact DataTableTwoComponent template from host testMaster -->\n<div class=\"table-layout w-100\" [id]=\"tableId\">\n <div>\n <div class=\"d-flex justify-content-between\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex\">\n <!-- SC19NOV2025 replace the month year seperate dropdown into month year picker -->\n <div class=\"picker-container\">\n <i class=\" arrow-btn fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\"\n (click)=\"prevMonth()\" style=\"color: var(--fc-text-color-dar) !important;\"></i>\n <span class=\"month-label\" (click)=\"togglePopup()\">\n {{ months[selectedMonth] }} {{ selectedYear }}\n </span>\n <i class=\" arrow-btn fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\"\n (click)=\"nextMonth()\" style=\"color: var(--fc-text-color-dar) !important;\"></i>\n </div>\n <div class=\"popup\" *ngIf=\"popupOpen\">\n <div class=\"year-section\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-left-1 nav-icon\" (click)=\"changeYear(-1)\"\n style=\"color: var(--fc-text-color-dar) !important;\"></i>\n <span>{{ selectedYear }}</span>\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-right-1 nav-icon\" (click)=\"changeYear(1)\"\n style=\"color: var(--fc-text-color-dar) !important;\"></i>\n </div>\n\n <div class=\"month-grid\">\n <div class=\"month-item\" *ngFor=\"let m of (monthArray && monthArray.length > 0 ? monthArray : months); let i = index\" [class.active]=\"i === selectedMonth\"\n (click)=\"selectMonth(i)\">\n {{ m | slice:0:3 }} </div>\n </div>\n </div>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar\">\n <input type=\"text\" placeholder=\"{{ 'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search' }}\"\n matInput (keyup)=\"applyFilter($event)\" #input [value]=\"searchTextValue || ''\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\" class=\"btn btn-primary me-2\"\n (click)=\"confirmModal = true\">{{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}</button>\n <div class=\"flex\">\n <!-- MR 18OCT26 Add clear tooltips for Import and Export toolbar buttons -->\n <nxt-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event)\"\n [buttonType]=\"button?.class\" [buttonValue]=\"button?.namePath\" [buttonConfig]=\"button?.buttonConfig\"\n [type]=\"button?.type\" [btnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </nxt-button>\n </div>\n </div>\n </div>\n\n <!-- MR 18OCT26 Reposition legend to top bar with matching chips and contextual title -->\n <div class=\"d-flex justify-content-between align-items-center top-legend-bar\">\n <div class=\"d-flex align-items-center gap-3 flex-wrap\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">✓</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 <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\">\n <!-- MR 18OCT26 Single unified MatTable eliminates header style discrepancy and checkbox shadow -->\n <table mat-table [dataSource]=\"dataSource\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.week-off]=\"isWeekend(column)\"\n style=\"text-align: center; padding: 0px !important;\" *matCellDef=\"let element\">\n <ng-container *ngIf=\"!element?.isSkeleton; else skeletonCell\">\n <!-- Employee Detail Column with Avatar and Metadata -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"emp-avatar\">\n {{ getInitials(element[column]?.empName || element.employeeName || element.name) }}\n </div>\n <div class=\"emp-meta\">\n <div class=\"emp-name-row\">\n <span class=\"emp-name\" [class.hyper-link]=\"hyperLinkColumns.includes(column)\"\n (click)=\"hyperLinkColumns.includes(column) ? hyperLinkClick(element, column, i) : ''\"\n [title]=\"element[column]?.empName || element.employeeName || element.name\">\n {{ element[column]?.empName || element.employeeName || element.name }}\n </span>\n <span *ngIf=\"element[column]?.empId || element.employeeId || element.empId\" class=\"emp-id-tag\">\n {{ element[column]?.empId || element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-sub-row\" [title]=\"(element[column]?.desig || element.designation || '') + ((element[column]?.loc || element.location) ? (', ' + (element[column]?.loc || element.location)) : '')\">\n <span>{{ element[column]?.desig || element.designation }}</span>\n <span *ngIf=\"(element[column]?.desig || element.designation) && (element[column]?.loc || element.location)\">, </span>\n <span>{{ element[column]?.loc || element.location }}</span>\n </div>\n </div>\n </div>\n\n <!-- Summary Pill Column -->\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <span class=\"summary-pill\" [class.summary-pill--target]=\"isNearTarget(element.workingDays ?? element.presentDays, element.totalCompanyWorkingDays ?? element.totalWorkingDays)\"\n [title]=\"'Present: ' + (element.workingDays ?? element.presentDays ?? 0) + ' / Total Working Days: ' + (element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0)\">\n {{element.workingDays ?? element.presentDays ?? 0}}/{{element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0}}\n </span>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">✓</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 (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <div class=\"d-flex justify-content-end Legend-div\">\n <mat-paginator #paginator [pageSizeOptions]=\"itemsPerPage\" [length]=\"totalCount\" [pageSize]=\"pageSize\"\n [pageIndex]=\"pageIndex\" showFirstLastButtons (page)=\"pageParams($event)\"></mat-paginator>\n </div>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
|
|
8393
|
-
styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{max-height:600px;overflow-y:auto;display:block;width:100%}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-normal);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color{background:var(--fb-action-surface, #e0f2fe)!important;color:var(--fb-text-primary, #0f172a)!important}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);background:var(--fb-surface, #ffffff);border-radius:6px;align-self:center}.search-bar{display:flex;flex-direction:row;align-items:center;width:100%;margin:5px}.card-btn{height:18px;width:18px}td.mat-cell:last-of-type{padding:8px;font-size:var(--fs-medium)}.table-title{font-weight:var(--fw-600);font-size:var(--fs-medium)}.search-component{top:20px;width:max-content;right:-30%}.sticky-column{background:var(--fb-surface, #ffffff)}.mat-sort-header-container{margin-left:5px}.body-color img{width:25px;padding:5px;cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border:none;color:var(--fb-text-primary, #0f172a);max-width:50px}.mat-cell{padding:8px;white-space:nowrap;text-overflow:ellipsis}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.mat-column-select{width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center;padding:0!important;overflow:clip!important;text-overflow:clip!important}.mat-column-employeeDetail{width:260px!important;min-width:260px!important;max-width:260px!important;left:44px!important;padding-left:8px!important;padding-right:8px!important}.mat-column-summary{width:64px!important;min-width:64px!important;max-width:64px!important;text-align:center;padding:0 4px!important}.th-td{width:36px!important;min-width:36px!important;max-width:36px!important;text-align:center;padding:0!important}::ng-deep .mdc-data-table__cell,.mdc-data-table__header-cell{padding:0!important}::ng-deep .mat-mdc-checkbox-touch-target{height:28px!important}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding:0 8px}.mat-row{height:56px!important;min-height:56px!important;transition:background-color .15s ease}.mat-row:hover,.mat-row:hover .sticky-column,.mat-row:hover .sticky-col{background-color:var(--fb-row-hover, #f8fafc)!important}.mat-cell{height:56px!important;padding:0 2px!important;white-space:nowrap;color:var(--fb-text-primary, #0f172a)}.mat-header-row{height:52px!important;position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);z-index:20;border-bottom:1px solid var(--fb-border-default, #e2e8f0);color:var(--fb-text-primary, #0f172a)}.sticky-select .mdc-checkbox{opacity:.55;transition:opacity .15s ease}.mat-row:hover .sticky-select .mdc-checkbox,.sticky-select .mdc-checkbox--selected,.sticky-select .mdc-checkbox--indeterminate{opacity:1!important}.week-off{background:var(--week-off, #f8fafc)!important}.holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%)!important;color:var(--holiday, #0284c7)}.attendance-chip{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);cursor:pointer;transition:transform .1s ease;-webkit-user-select:none;user-select:none}.attendance-chip:hover{transform:scale(1.1)}.attendance-chip.attendance-present{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a)}.attendance-chip.attendance-absent{background:color-mix(in srgb,var(--attendance-absent, #ef4444),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-absent, #ef4444)}.attendance-chip.attendance-half{background:color-mix(in srgb,var(--attendance-half, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:color-mix(in srgb,var(--attendance-half, #f59e0b),black 45%)}.attendance-chip.attendance-holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%);color:var(--holiday, #0284c7)}.attendance-chip.attendance-review{background:color-mix(in srgb,var(--clr-warning, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:var(--clr-warning, #f59e0b)}.attendance-chip.attendance-weekoff{background:color-mix(in srgb,var(--attendance-weekoff, #64748b),var(--comp-bg-color, #ffffff) 90%);color:var(--attendance-weekoff, #64748b)}.att-missing{width:20px;height:20px;border:1px dashed color-mix(in srgb,var(--border-color, #e2e8f0),black 15%);border-radius:6px;display:inline-block}.att-future{color:var(--fc-text-color-light, #94a3b8);font-size:16px;line-height:1;display:inline-block;opacity:.5}.att-dash{color:var(--label-text-color-light, #64748b);font-size:14px}.emp-cell-container{display:flex;align-items:center;gap:10px;width:100%;padding:0 4px}.emp-avatar{width:32px;height:32px;min-width:32px;border-radius:50%;font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);display:flex;align-items:center;justify-content:center;flex-shrink:0}.emp-meta{display:flex;flex-direction:column;overflow:hidden;text-align:left;line-height:1.25;min-width:0}.emp-name-row{display:flex;align-items:center;gap:6px;overflow:hidden}.emp-name{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emp-id-tag{font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-500, 500);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);padding:1px 5px;border-radius:4px;border:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.emp-sub-row{font-size:var(--fs-Usmall, 11px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.summary-pill{padding:2px 8px;border-radius:20px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);border:1px solid var(--border-color, #e2e8f0);display:inline-block;white-space:nowrap}.summary-pill--target{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a);border-color:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 70%)}.head-employee-label{font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a)}.head-day-letter{font-size:var(--fs-Usmall, 11px);color:var(--fc-text-color-light, #64748b);font-weight:var(--fw-500, 500);line-height:1;text-transform:uppercase}.head-date-num{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);line-height:1.4;margin-top:2px}.head-today{background:var(--fb-action, #003566)!important;color:var(--fb-text-on-action, #ffffff)!important;border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.head-muted{color:var(--fb-text-muted, #94a3b8)!important}.top-legend-bar{border-top:1px solid var(--fb-border-default, #e2e8f0);padding:8px 12px;font-size:var(--fs-small, 12px);background:var(--fb-surface, #ffffff)}.legend-text{font-size:var(--fs-small, 12px);color:var(--fc-text-color-dark, #0f172a);font-weight:var(--fw-500, 500)}.table-subtitle{font-size:var(--fs-normal, 13px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500)}@media screen and (min-width:600px){mat-table{font-size:18px}}@media screen and (max-width:882px){mat-table{font-size:var(--fs-medium)}.mat-column-name,.mat-column-weight{display:none}.mat-header-cell{padding:8px}}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline;cursor:pointer}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.btn-primary{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action, #003566)!important;border-color:var(--fb-action, #003566)!important;padding:4px 9px;border-radius:.375rem}.btn-primary:hover{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-hover, #00284d)!important;border-color:var(--fb-action-hover, #00284d)!important}.btn-primary:active,.btn-primary.active,.show>.btn-primary.dropdown-toggle{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-pressed, #001f3f)!important;border-color:var(--fb-action-pressed, #001f3f)!important}.btn-primary:disabled,.btn-primary.disabled{color:var(--fb-text-disabled, #94a3b8)!important;background-color:var(--fb-action-disabled, #e2e8f0)!important;border-color:var(--fb-action-disabled, #e2e8f0)!important}::ng-deep .clickable-img{height:36px!important;transition:unset!important;border:unset!important;border-radius:0!important}::ng-deep nxt-button.ms-2,::ng-deep nxt-button.me-2{margin-left:0!important;margin-right:0!important}.body-color img{border-radius:8px!important}.modal-backdrop{opacity:.9}.mat-table{width:100%;border-spacing:0}.mat-header-row{position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-text-primary, #0f172a);z-index:2}.picker-container{display:flex;align-items:center;font-size:18px;font-weight:600;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.month-label{cursor:pointer;min-width:100px;text-align:center;font-size:var(--fs-medium, 14px)}.arrow-btn{border:none;background:transparent;font-size:20px;cursor:pointer}.popup{position:absolute;margin-top:45px;background:var(--fb-surface-elevated, #ffffff);padding:15px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0,0,0,.12));border-radius:var(--radius-medium, 8px);width:200px;z-index:1000}.year-section{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:10px;font-size:var(--fs-medium, 14px)}.year-section button{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:none;padding:3px 8px;font-size:14px;cursor:pointer}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-size:var(--fs-medium, 14px)}.month-item{padding:6px;border-radius:4px;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc)}.month-item.active{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.Legend-font{font-size:var(--fs-normal, 13px)}.table-margin,.Legend-div{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.sticky-checkbox{position:sticky;left:0;z-index:1000;background:var(--fb-surface, #ffffff);min-width:48px;width:48px}th.sticky-checkbox{z-index:1100}\n"]
|
|
8688
|
+
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 <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar\">\n <input type=\"text\" placeholder=\"{{ 'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search' }}\"\n matInput (keyup)=\"applyFilter($event)\" #input [value]=\"searchTextValue || ''\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\" class=\"btn btn-primary me-2\"\n (click)=\"confirmModal = true\">{{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}</button>\n <div class=\"flex\">\n <!-- MR 18OCT26 Add clear tooltips for Import and Export toolbar buttons -->\n <nxt-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event)\"\n [buttonType]=\"button?.class\" [buttonValue]=\"button?.namePath\" [buttonConfig]=\"button?.buttonConfig\"\n [type]=\"button?.type\" [btnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </nxt-button>\n </div>\n </div>\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\">\n <!-- MR 18OCT26 Single unified MatTable eliminates header style discrepancy and checkbox shadow -->\n <table mat-table [dataSource]=\"dataSource\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <!-- 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 (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- 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",
|
|
8689
|
+
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 nxt-button.ms-2,::ng-deep nxt-button.me-2{margin-left:0!important;margin-right:0!important}.body-color img{border-radius:8px!important}.modal-backdrop{opacity:.9}.mat-table{width:100%;border-spacing:0}.mat-header-row{position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-text-primary, #0f172a);z-index:2}.picker-container{display:flex;align-items:center;font-size:18px;font-weight:600;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.month-label{cursor:pointer;min-width:100px;text-align:center;font-size:var(--fs-medium, 14px)}.arrow-btn{border:none;background:transparent;font-size:20px;cursor:pointer}.popup{position:absolute;margin-top:45px;background:var(--fb-surface-elevated, #ffffff);padding:15px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0,0,0,.12));border-radius:var(--radius-medium, 8px);width:200px;z-index:1000}.year-section{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:10px;font-size:var(--fs-medium, 14px)}.year-section button{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:none;padding:3px 8px;font-size:14px;cursor:pointer}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-size:var(--fs-medium, 14px)}.month-item{padding:6px;border-radius:4px;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc)}.month-item.active{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.Legend-font{font-size:var(--fs-normal, 13px)}.table-margin,.Legend-div{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.sticky-checkbox{position:sticky;left:0;z-index:1000;background:var(--fb-surface, #ffffff);min-width:48px;width:48px}th.sticky-checkbox{z-index:1100}\n"]
|
|
8394
8690
|
}]
|
|
8395
8691
|
}],
|
|
8396
8692
|
ctorParameters: () => [
|
|
@@ -8409,6 +8705,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8409
8705
|
searchTextValue: [{ type: Input }],
|
|
8410
8706
|
isSandwichLeave: [{ type: Input }],
|
|
8411
8707
|
isCheckButton: [{ type: Input }],
|
|
8708
|
+
monthPickerPosition: [{ type: Input }],
|
|
8412
8709
|
monthArray: [{ type: Input }],
|
|
8413
8710
|
yearArray: [{ type: Input }],
|
|
8414
8711
|
year: [{ type: Input }],
|
|
@@ -8457,7 +8754,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8457
8754
|
}],
|
|
8458
8755
|
paginator: [{
|
|
8459
8756
|
type: ViewChild,
|
|
8460
|
-
args: [
|
|
8757
|
+
args: ["paginator"]
|
|
8461
8758
|
}]
|
|
8462
8759
|
}
|
|
8463
8760
|
});
|
|
@@ -8702,8 +8999,8 @@ var FusionCardComponent = class FusionCardComponent {
|
|
|
8702
8999
|
descendants: true
|
|
8703
9000
|
}],
|
|
8704
9001
|
ngImport: i0,
|
|
8705
|
-
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div *ngIf=\"!(isCardLoading?.[comp?._id]?.length > 0) && (!cardData || cardData.length === 0)\" class=\"no-records-container\">\n <div class=\"text-center p-4\">\n <div class=\"no-records-message\">\n <div class=\"mt-3 mb-2\">{{'APP.NO_RECORDS_AVAILABLE' | customTranslate : 'No Records Available'}}</div>\n </div>\n </div>\n</div>\n<div *ngIf=\"isCardLoading?.[comp?._id]?.length > 0; else viewCard\">\n <div class=\"card fc-card fc-card-light skeleton-card\" style=\"height: 200px; border: none;\">\n <div *ngFor=\"let n of [1, 2]\" class=\"flex\" style=\"padding: 25px 0px;\">\n <div *ngFor=\"let e of [1, 2]\" style=\"width: 50%; padding: 5px;\">\n <div class=\"\" style=\"height: 25px;\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\" style=\"width: 95%;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 65%;\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<ng-template #viewCard>\n <div *ngIf=\"cardData && cardData.length > 0\" [class.col-md-12]=\"cardData.length > 0\" [class.dashboard-card-grid]=\"from === 'dashboard'\" style=\"height: 100%;\">\n <div class=\"row\" [ngClass]=\"{\n 'g-2': cardData.length > 1 && from !== 'dashboard',\n 'gutter-remove': from === 'dashboard'\n }\">\n <div *ngFor=\"let card of cardData; let i = index\" class=\"{{card.cardSize}} inside-card\" [ngClass]=\"{'no-padding-margin':from ==='dashboard' ? cardData.length === 1 : false, 'multy-card':from ==='dashboard' ? cardData.length > 1 : false}\" style=\"height: 100%;\" [ngStyle]=\"{'margin-top': card.marginTop}\">\n <div *ngIf=\"card?.config?.details\" style=\"height: 100%;\">\n <div class=\"width-100\" [ngClass]=\"{'static-width-for-card': from === 'dashboard' ? cardData.length != 1 : true}\" [style.border]=\"(from === 'dashboard' && cardData.length === 1 ) ? 'none' : ''\" style=\"height: 100%;\" [ngStyle]=\"from === 'dashboard' && cardData.length === 1 \n ? {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)'\n } \n : null\">\n <div *ngIf=\"card.isTitleHide ? card.isTitleHide === 'true' ? false : true : true\" class=\"header-section flex content-space-between\" style=\"align-items: center;\">\n <div class=\"section-title\">{{card.labelPath || card.label | customTranslate : card.label}}</div>\n <div class=\"actionButton\" style=\"display: flex; align-items: center;\">\n <div *ngFor=\"let button of card?.actionButton?.buttonArray; let i = index\">\n <div *ngIf=\"i < card?.actionButton?.size\"\n style=\"margin-left: 3px; margin-right: 3px;\">\n <div *ngIf=\"isConditionMet(card, button.conditions)\"\n [matTooltip]=\"button.tooltipPath || button.tooltip | customTranslate : button.tooltip\"\n (click)=\"actionButtonClicked(button,card)\"\n (mouseenter)=\"onMouseEnter($event,'border', button.hoverBorderColor)\"\n (mouseleave)=\"onMouseLeave($event,'border', button.borderColor)\"\n style=\"padding: 2px; border-radius: {{button.borderRadius}}px; border: 1px solid {{button.borderColor}};\">\n <div (mouseenter)=\"onMouseEnter($event,'backgroundColor', button.hoverBackgroundColor)\"\n (mouseleave)=\"onMouseLeave($event,'backgroundColor', button.backgroundColor)\"\n style=\"padding: {{button.padding}}px; border-radius: {{button.borderRadius}}px; background-color: {{button.backgroundColor}}; display: flex; gap: 2px; align-items: center;\">\n <img *ngIf=\"button.iconSrc && (button.iconSrc?.startsWith('data:') || button.iconSrc?.startsWith('http'))\"\n #imgElement\n [src]=\"button.iconSrc\"\n style=\"cursor: pointer;\"\n (mouseenter)=\"imgElement.src = button.hoverIconSrc || button.iconSrc\"\n (mouseleave)=\"imgElement.src = button.iconSrc\"/>\n <i *ngIf=\"!(button.iconSrc?.startsWith('data:') || button.iconSrc?.startsWith('http'))\"\n class=\"fusion-icon nav-icon\"\n [ngClass]=\"button.iconSrc\"\n style=\"margin: 0px !important; font-size: var(--fs-normal, 16px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n <div *ngIf=\"button.isLabel\" style=\"color: {{button.labelColor}}; font-size: 12px;\"> {{button.label || button.tooltip | customTranslate : button.label || button.tooltip}}</div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"card?.actionButton?.buttonArray && card?.actionButton?.buttonArray?.length > 0 && card?.actionButton?.buttonArray?.slice(card?.actionButton?.size) && card?.actionButton?.buttonArray?.slice(card?.actionButton?.size).length > 0\"\n class=\"dropdown\">\n <div class=\"clickable-img\" (click)=\"toggleDropdown(i)\"\n style=\"margin-left: 3px; margin-right: 3px;\">\n <div style=\"background-color: var(--comp-bg-secondary, #f5f5f5); padding: 2px 2px; border-radius: var(--radius-small, 5px);\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-square-down nav-icon\" style=\"background-color: var(--comp-bg-secondary, #f5f5f5); border-radius: var(--radius-small, 5px); border: 1px solid var(--border-color, #6c757d);\"></i>\n </div>\n </div>\n\n <div class=\"dropdown-menu\"\n [style.right]=\"(((card?.actionButton?.size ?? 0) - (card?.actionButton?.buttonArray?.size ?? 0) + ((card?.actionButton?.buttonArray?.slice(card?.actionButton?.size)?.length ?? 0) > 0 ? 1 : 0)) * 100) + '%'\"\n *ngIf=\"currentOpenIndex === i\">\n <div *ngFor=\"let btn of card?.actionButton?.buttonArray?.slice(card?.actionButton?.size)\">\n <button *ngIf=\"isConditionMet(card, btn.conditions)\" \n style=\"display: flex;\" type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [matTooltip]=\"btn.tooltipPath || btn.tooltip | customTranslate : btn.tooltip\" [disabled]=\"btn.buttonDisable\"\n (click)=\"actionButtonClicked(btn,card)\">\n <img *ngIf=\"btn.iconSrc\" [src]=\"btn.iconSrc\">\n <div class=\"fc-btn-text\" style=\"padding-left: 10px;\">\n {{btn.labelPath || btn.namePath || btn.name | customTranslate : btn.label || btn.name}}</div>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"body-section card-text\" style=\"height: 100%;\" [ngStyle]=\"{ padding: card?.config?.padding || null }\">\n <div class=\"flex w-100\" [ngClass]=\"{\n 'row': card?.config?.details?.length > 1,\n 'gutter-remove': from === 'dashboard' && card?.config?.details?.length > 1\n }\" style=\"height: 100%;\">\n <ng-container *ngFor=\"let detail of card?.config?.details\">\n <div *ngIf=\"!detail?.hideFromCard\" class=\"{{detail.size || card.cardInlineSize}} card-detail d-flex flex-column\" [ngClass]=\"detail.alignment\">\n <div *ngIf=\"detail.iconSrc && detail.iconPosition !== 'end'\" class=\"icon-container d-flex\">\n <div class=\"icon-wrapper\" [style.border]=\"'4px solid gray'\">\n <img [src]=\"detail.iconSrc\" alt=\"Icon\">\n </div>\n </div>\n\n <div *ngIf=\"!detail.isLabelHide && detail?.type !== 'image'\" class=\"label-head\" [ngClass]=\"detail.labelFont\">{{detail.labelPath || detail.label | customTranslate : detail.label}}</div>\n\n <div [ngClass]=\"detail?.type !== 'image' && detail?.type !== 'file' ? 'flex-column' : ''\" [class.detail-value-wrapper]=\"detail?.type !== 'image' && detail.truncate\">\n <div *ngIf=\"detail?.type !== 'date' && detail?.type !== 'time' && detail?.type !== 'datetime' && detail?.type !== 'label' && detail?.type !== 'image' && detail?.type !== 'file'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">\n {{\n (detail?.type === 'boolean' || (detail?.value === true || detail?.value === false))\n ? (detail?.value === true ? 'True' : 'False')\n : (detail?.value || detail.value === 0)\n ? detail.value\n : '-'\n }}\n </div>\n <div *ngIf=\"detail?.type === 'date'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate) || '-' }}</div>\n <div *ngIf=\"detail?.type === 'datetime'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate : 'datetime') || '-' }}</div>\n <div *ngIf=\"detail?.type === 'time'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate : 'time') || '-' }}</div>\n <div *ngIf=\"detail?.type === 'link'\" class=\"ms-2\">\n <a *ngIf=\"detail?.redirectOnClick\"\n [href]=\"'//'+detail?.value\"\n [target]=\"detail?.openInNewTab ? '_blank' : '_self'\"\n class=\"form-label label-head\">\n <img [src]=\"detail?.srcImg\" />\n </a>\n </div>\n <div *ngIf=\"detail?.type === 'image'\">\n <img [style.height.%]=\"detail.imgHeight\" [src]=\"(detail?.value || detail?.defaultValue)\" style=\"width: 100%; max-height: 100%; object-fit: contain;\"/>\n </div>\n <div *ngIf=\"detail?.type === 'file'\">\n <div class=\"cursor-pointer label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\" (click)=\"fileClick(detail.value, i)\">{{detail?.isLabel ? detail.value.name : ''}}</div>\n <div class=\"flex\" *ngIf=\"detail?.value\">\n <img *ngIf=\"detail?.type === 'file' && !isLoading[i]\"\n src=\"../assets/images/icons/general/download-icon.svg\"\n class=\"card-icon color\"\n title=\"download\"\n (click)=\"downloadFile(detail.value, i)\"\n style=\"cursor: pointer; width:17px\">\n <svg *ngIf=\"detail?.type === 'file' && isLoading[i]\"\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 <img *ngIf=\"detail?.isView && !isViewLoading[i]\"\n src=\"../assets/images/icons/general/preview.svg\"\n class=\"card-icon color\"\n title=\"preview\"\n (click)=\"fileClick(detail.value, i)\"\n style=\"cursor: pointer; width:20px\">\n <svg *ngIf=\"detail?.isView && isViewLoading[i]\"\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 *ngIf=\"detail.iconSrc && detail.iconPosition === 'end'\" class=\"icon-container d-flex\">\n <div class=\"icon-wrapper\" [style.border]=\"'4px solid gray'\">\n <img [src]=\"detail.iconSrc\" alt=\"Icon\">\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<div *ngIf=\"deleteModal\" class=\"custom-modal-overlay\">\n <div class=\"custom-modal\">\n <div class=\"custom-modal-header\">\n <b>{{ 'APP.DELETE_RECORD'| customTranslate : 'Delete Record'}}</b>\n <button class=\"close-button\" (click)=\"deleteModal = false\">×</button>\n </div>\n <div class=\"custom-modal-body\">\n {{ 'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC'| customTranslate : 'Are you sure you want to delete the record'}} ?\n </div>\n <div class=\"custom-modal-footer\">\n <button class=\"confirm-button\" (click)=\"deleteRecordData()\">{{ 'APP.YES'| customTranslate : 'Yes'}}</button>\n <button class=\"cancel-button\" (click)=\"deleteModal = false\">{{ 'APP.NO'| customTranslate : 'No'}}</button>\n </div>\n </div>\n</div>\n\n<div class=\"modal fade container-sm\" id=\"file\" aria-labelledby=\"file\" \naria-hidden=\"true\" #file>\n <div class=\"modal-dialog modal-lg\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <div class=\"modal-title fs-5\" id=\"expenseReceiptModelLabel\">{{popupTitle}}</div>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" (click)=\"closeModal()\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body\">\n <iframe class=\"receipt-view\" *ngIf=\"safeSrc\" [src]=\"safeSrc\" style=\"width: 100%; height: 500px; border: none;\"></iframe>\n </div>\n </div>\n </div>\n</div>\n\n",
|
|
8706
|
-
styles: [".dropdown-menu{left:unset!important;right:300%;top:12.5px;background-color:var(--
|
|
9002
|
+
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div *ngIf=\"!(isCardLoading?.[comp?._id]?.length > 0) && (!cardData || cardData.length === 0)\" class=\"no-records-container\">\n <div class=\"text-center p-4\">\n <div class=\"no-records-message\">\n <div class=\"mt-3 mb-2\">{{'APP.NO_RECORDS_AVAILABLE' | customTranslate : 'No Records Available'}}</div>\n </div>\n </div>\n</div>\n<div *ngIf=\"isCardLoading?.[comp?._id]?.length > 0; else viewCard\">\n <div class=\"card fc-card fc-card-light skeleton-card\" style=\"height: 200px; border: none;\">\n <div *ngFor=\"let n of [1, 2]\" class=\"flex\" style=\"padding: 25px 0px;\">\n <div *ngFor=\"let e of [1, 2]\" style=\"width: 50%; padding: 5px;\">\n <div class=\"\" style=\"height: 25px;\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\" style=\"width: 95%;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 65%;\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<ng-template #viewCard>\n <div *ngIf=\"cardData && cardData.length > 0\" [class.col-md-12]=\"cardData.length > 0\" [class.dashboard-card-grid]=\"from === 'dashboard'\" style=\"height: 100%;\">\n <div class=\"row\" [ngClass]=\"{\n 'g-2': cardData.length > 1 && from !== 'dashboard',\n 'gutter-remove': from === 'dashboard'\n }\">\n <div *ngFor=\"let card of cardData; let i = index\" class=\"{{card.cardSize}} inside-card\" [ngClass]=\"{'no-padding-margin':from ==='dashboard' ? cardData.length === 1 : false, 'multy-card':from ==='dashboard' ? cardData.length > 1 : false}\" style=\"height: 100%;\" [ngStyle]=\"{'margin-top': card.marginTop}\">\n <div *ngIf=\"card?.config?.details\" style=\"height: 100%;\">\n <div class=\"width-100\" [ngClass]=\"{'static-width-for-card': from === 'dashboard' ? cardData.length != 1 : true}\" [style.border]=\"(from === 'dashboard' && cardData.length === 1 ) ? 'none' : ''\" style=\"height: 100%;\" [ngStyle]=\"from === 'dashboard' && cardData.length === 1 \n ? {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)'\n } \n : null\">\n <div *ngIf=\"card.isTitleHide ? card.isTitleHide === 'true' ? false : true : true\" class=\"header-section flex content-space-between\" style=\"align-items: center;\">\n <div class=\"section-title\">{{card.labelPath || card.label | customTranslate : card.label}}</div>\n <div class=\"actionButton\" style=\"display: flex; align-items: center;\">\n <div *ngFor=\"let button of card?.actionButton?.buttonArray; let i = index\">\n <div *ngIf=\"i < card?.actionButton?.size\"\n style=\"margin-left: 3px; margin-right: 3px;\">\n <div *ngIf=\"isConditionMet(card, button.conditions)\"\n [matTooltip]=\"button.tooltipPath || button.tooltip | customTranslate : button.tooltip\"\n (click)=\"actionButtonClicked(button,card)\"\n (mouseenter)=\"onMouseEnter($event,'border', button.hoverBorderColor)\"\n (mouseleave)=\"onMouseLeave($event,'border', button.borderColor)\"\n style=\"padding: 2px; border-radius: {{button.borderRadius}}px; border: 1px solid {{button.borderColor}};\">\n <div (mouseenter)=\"onMouseEnter($event,'backgroundColor', button.hoverBackgroundColor)\"\n (mouseleave)=\"onMouseLeave($event,'backgroundColor', button.backgroundColor)\"\n style=\"padding: {{button.padding}}px; border-radius: {{button.borderRadius}}px; background-color: {{button.backgroundColor}}; display: flex; gap: 2px; align-items: center;\">\n <img *ngIf=\"button.iconSrc && (button.iconSrc?.startsWith('data:') || button.iconSrc?.startsWith('http'))\"\n #imgElement\n [src]=\"button.iconSrc\"\n style=\"cursor: pointer;\"\n (mouseenter)=\"imgElement.src = button.hoverIconSrc || button.iconSrc\"\n (mouseleave)=\"imgElement.src = button.iconSrc\"/>\n <i *ngIf=\"!(button.iconSrc?.startsWith('data:') || button.iconSrc?.startsWith('http'))\"\n class=\"fusion-icon nav-icon\"\n [ngClass]=\"button.iconSrc\"\n style=\"margin: 0px !important; font-size: var(--fs-normal, 16px) !important; color: var(--fb-text-muted, #787486);\">\n </i>\n <div *ngIf=\"button.isLabel\" style=\"color: {{button.labelColor}}; font-size: 12px;\"> {{button.label || button.tooltip | customTranslate : button.label || button.tooltip}}</div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"card?.actionButton?.buttonArray && card?.actionButton?.buttonArray?.length > 0 && card?.actionButton?.buttonArray?.slice(card?.actionButton?.size) && card?.actionButton?.buttonArray?.slice(card?.actionButton?.size).length > 0\"\n class=\"dropdown\">\n <div class=\"clickable-img\" (click)=\"toggleDropdown(i)\"\n style=\"margin-left: 3px; margin-right: 3px;\">\n <!-- MR 16NOV26 Remediate dropdown icon container to semantic tokens -->\n <div style=\"background-color: var(--fb-surface-secondary, #f8fafc); padding: 2px 2px; border-radius: var(--radius-small, 5px);\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-square-down nav-icon\" style=\"background-color: var(--fb-surface-secondary, #f8fafc); border-radius: var(--radius-small, 5px); border: 1px solid var(--fb-border-default, #e2e8f0);\"></i>\n </div>\n </div>\n\n <div class=\"dropdown-menu\"\n [style.right]=\"(((card?.actionButton?.size ?? 0) - (card?.actionButton?.buttonArray?.size ?? 0) + ((card?.actionButton?.buttonArray?.slice(card?.actionButton?.size)?.length ?? 0) > 0 ? 1 : 0)) * 100) + '%'\"\n *ngIf=\"currentOpenIndex === i\">\n <div *ngFor=\"let btn of card?.actionButton?.buttonArray?.slice(card?.actionButton?.size)\">\n <button *ngIf=\"isConditionMet(card, btn.conditions)\" \n style=\"display: flex;\" type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [matTooltip]=\"btn.tooltipPath || btn.tooltip | customTranslate : btn.tooltip\" [disabled]=\"btn.buttonDisable\"\n (click)=\"actionButtonClicked(btn,card)\">\n <img *ngIf=\"btn.iconSrc\" [src]=\"btn.iconSrc\">\n <div class=\"fc-btn-text\" style=\"padding-left: 10px;\">\n {{btn.labelPath || btn.namePath || btn.name | customTranslate : btn.label || btn.name}}</div>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"body-section card-text\" style=\"height: 100%;\" [ngStyle]=\"{ padding: card?.config?.padding || null }\">\n <div class=\"flex w-100\" [ngClass]=\"{\n 'row': card?.config?.details?.length > 1,\n 'gutter-remove': from === 'dashboard' && card?.config?.details?.length > 1\n }\" style=\"height: 100%;\">\n <ng-container *ngFor=\"let detail of card?.config?.details\">\n <div *ngIf=\"!detail?.hideFromCard\" class=\"{{detail.size || card.cardInlineSize}} card-detail d-flex flex-column\" [ngClass]=\"detail.alignment\">\n <div *ngIf=\"detail.iconSrc && detail.iconPosition !== 'end'\" class=\"icon-container d-flex\">\n <div class=\"icon-wrapper\" [style.border]=\"'4px solid gray'\">\n <img [src]=\"detail.iconSrc\" alt=\"Icon\">\n </div>\n </div>\n\n <div *ngIf=\"!detail.isLabelHide && detail?.type !== 'image'\" class=\"label-head\" [ngClass]=\"detail.labelFont\">{{detail.labelPath || detail.label | customTranslate : detail.label}}</div>\n\n <div [ngClass]=\"detail?.type !== 'image' && detail?.type !== 'file' ? 'flex-column' : ''\" [class.detail-value-wrapper]=\"detail?.type !== 'image' && detail.truncate\">\n <div *ngIf=\"detail?.type !== 'date' && detail?.type !== 'time' && detail?.type !== 'datetime' && detail?.type !== 'label' && detail?.type !== 'image' && detail?.type !== 'file'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">\n {{\n (detail?.type === 'boolean' || (detail?.value === true || detail?.value === false))\n ? (detail?.value === true ? 'True' : 'False')\n : (detail?.value || detail.value === 0)\n ? detail.value\n : '-'\n }}\n </div>\n <div *ngIf=\"detail?.type === 'date'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate) || '-' }}</div>\n <div *ngIf=\"detail?.type === 'datetime'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate : 'datetime') || '-' }}</div>\n <div *ngIf=\"detail?.type === 'time'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate : 'time') || '-' }}</div>\n <div *ngIf=\"detail?.type === 'link'\" class=\"ms-2\">\n <a *ngIf=\"detail?.redirectOnClick\"\n [href]=\"'//'+detail?.value\"\n [target]=\"detail?.openInNewTab ? '_blank' : '_self'\"\n class=\"form-label label-head\">\n <img [src]=\"detail?.srcImg\" />\n </a>\n </div>\n <div *ngIf=\"detail?.type === 'image'\">\n <img [style.height.%]=\"detail.imgHeight\" [src]=\"(detail?.value || detail?.defaultValue)\" style=\"width: 100%; max-height: 100%; object-fit: contain;\"/>\n </div>\n <div *ngIf=\"detail?.type === 'file'\">\n <div class=\"cursor-pointer label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\" (click)=\"fileClick(detail.value, i)\">{{detail?.isLabel ? detail.value.name : ''}}</div>\n <div class=\"flex\" *ngIf=\"detail?.value\">\n <img *ngIf=\"detail?.type === 'file' && !isLoading[i]\"\n src=\"../assets/images/icons/general/download-icon.svg\"\n class=\"card-icon color\"\n title=\"download\"\n (click)=\"downloadFile(detail.value, i)\"\n style=\"cursor: pointer; width:17px\">\n <svg *ngIf=\"detail?.type === 'file' && isLoading[i]\"\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 <img *ngIf=\"detail?.isView && !isViewLoading[i]\"\n src=\"../assets/images/icons/general/preview.svg\"\n class=\"card-icon color\"\n title=\"preview\"\n (click)=\"fileClick(detail.value, i)\"\n style=\"cursor: pointer; width:20px\">\n <svg *ngIf=\"detail?.isView && isViewLoading[i]\"\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 *ngIf=\"detail.iconSrc && detail.iconPosition === 'end'\" class=\"icon-container d-flex\">\n <div class=\"icon-wrapper\" [style.border]=\"'4px solid gray'\">\n <img [src]=\"detail.iconSrc\" alt=\"Icon\">\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<div *ngIf=\"deleteModal\" class=\"custom-modal-overlay\">\n <div class=\"custom-modal\">\n <div class=\"custom-modal-header\">\n <b>{{ 'APP.DELETE_RECORD'| customTranslate : 'Delete Record'}}</b>\n <button class=\"close-button\" (click)=\"deleteModal = false\">×</button>\n </div>\n <div class=\"custom-modal-body\">\n {{ 'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC'| customTranslate : 'Are you sure you want to delete the record'}} ?\n </div>\n <div class=\"custom-modal-footer\">\n <button class=\"confirm-button\" (click)=\"deleteRecordData()\">{{ 'APP.YES'| customTranslate : 'Yes'}}</button>\n <button class=\"cancel-button\" (click)=\"deleteModal = false\">{{ 'APP.NO'| customTranslate : 'No'}}</button>\n </div>\n </div>\n</div>\n\n<div class=\"modal fade container-sm\" id=\"file\" aria-labelledby=\"file\" \naria-hidden=\"true\" #file>\n <div class=\"modal-dialog modal-lg\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <div class=\"modal-title fs-5\" id=\"expenseReceiptModelLabel\">{{popupTitle}}</div>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" (click)=\"closeModal()\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body\">\n <iframe class=\"receipt-view\" *ngIf=\"safeSrc\" [src]=\"safeSrc\" style=\"width: 100%; height: 500px; border: none;\"></iframe>\n </div>\n </div>\n </div>\n</div>\n\n",
|
|
9003
|
+
styles: [".dropdown-menu{left:unset!important;right:300%;top:12.5px;background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);border-radius:var(--radius-small, 4px);box-shadow:0 4px 8px var(--fb-backdrop, rgba(0, 0, 0, .1))}.dropdown .dropdown-menu{display:block}.dropdown-menu .btn{display:block;padding:10px;width:100%;text-align:left;background:transparent;border:none;cursor:pointer}.clickable-img{position:relative;cursor:pointer;padding:2px;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:5px}.clickable-img:hover{border:1px solid var(--fb-action-border, #1f69ff);border-radius:var(--radius-small, 5px)}.card-icon.color path{fill:var(--fc-primary-color, #2563eb)}.card-icon.color{margin-left:15px}.custom-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--fb-backdrop, rgba(0, 0, 0, .4));display:flex;align-items:start;justify-content:center;z-index:1050}.custom-modal{background:var(--fb-surface-elevated, #ffffff);border-radius:8px;width:550px;max-width:90%;margin-top:30px;box-shadow:0 5px 15px var(--fb-backdrop, rgba(0, 0, 0, .2));overflow:hidden}.custom-modal-header{border-bottom:solid .5px var(--fb-border-default, #e2e8f0)}.custom-modal-footer{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.custom-modal-header,.custom-modal-footer{padding:.7rem;display:flex;justify-content:space-between;align-items:center}.custom-modal-body{padding:1rem;font-size:1rem}.close-button{background:none;border:none;font-size:1.25rem;cursor:pointer}.cancel-button,.confirm-button{padding:.5rem 1rem;border:none;border-radius:4px;cursor:pointer}.cancel-button{background:var(--fb-surface-secondary, #ffffff);color:var(--fb-text-primary, #0f172a)}.confirm-button{background:var(--fb-error-surface, #d9534f);color:var(--fb-text-on-action, #ffffff)}.text-center{text-align:center!important;border:solid .5px var(--fb-border-default, #94a3b8);border-radius:var(--radius-medium, 10px);margin:10px 0;color:var(--fb-text-muted, #94a3b8)}.receipt-view{width:100%;height:600px}.icon-container{position:relative;margin-top:100px;z-index:1}.card-detail{margin-top:5px;margin-bottom:5px;min-width:0;overflow:hidden}.svg-spinner{animation:rotate 1s linear infinite}.svg-spinner .path{stroke:var(--fc-primary-color, #2563eb);stroke-linecap:round;stroke-dasharray:80 150;stroke-width:4}@keyframes rotate{to{transform:rotate(360deg)}}.no-padding-margin{margin:0!important;padding:0!important}.static-width-for-card{border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.header-section{padding:8px 8px 0}.section-title{font-size:var(--fs-primary, 14px);font-weight:500}.body-section{padding:8px}.label-sub{white-space:normal;overflow-wrap:anywhere}.row.gutter-remove{--bs-gutter-x: 0rem !important;margin-top:0!important}.row{--bs-gutter-y: 0 !important}.inside-card.multy-card{margin-top:5px!important}.detail-value-wrapper{min-width:0;overflow:hidden;width:100%}.row>[class*=col]{min-width:0}.label-sub.truncate{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:unset!important;display:block;max-width:100%}\n"],
|
|
8707
9004
|
dependencies: [
|
|
8708
9005
|
{
|
|
8709
9006
|
kind: "ngmodule",
|
|
@@ -8791,8 +9088,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8791
9088
|
CustomDatePipe
|
|
8792
9089
|
],
|
|
8793
9090
|
providers: [DatePipe],
|
|
8794
|
-
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div *ngIf=\"!(isCardLoading?.[comp?._id]?.length > 0) && (!cardData || cardData.length === 0)\" class=\"no-records-container\">\n <div class=\"text-center p-4\">\n <div class=\"no-records-message\">\n <div class=\"mt-3 mb-2\">{{'APP.NO_RECORDS_AVAILABLE' | customTranslate : 'No Records Available'}}</div>\n </div>\n </div>\n</div>\n<div *ngIf=\"isCardLoading?.[comp?._id]?.length > 0; else viewCard\">\n <div class=\"card fc-card fc-card-light skeleton-card\" style=\"height: 200px; border: none;\">\n <div *ngFor=\"let n of [1, 2]\" class=\"flex\" style=\"padding: 25px 0px;\">\n <div *ngFor=\"let e of [1, 2]\" style=\"width: 50%; padding: 5px;\">\n <div class=\"\" style=\"height: 25px;\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\" style=\"width: 95%;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 65%;\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<ng-template #viewCard>\n <div *ngIf=\"cardData && cardData.length > 0\" [class.col-md-12]=\"cardData.length > 0\" [class.dashboard-card-grid]=\"from === 'dashboard'\" style=\"height: 100%;\">\n <div class=\"row\" [ngClass]=\"{\n 'g-2': cardData.length > 1 && from !== 'dashboard',\n 'gutter-remove': from === 'dashboard'\n }\">\n <div *ngFor=\"let card of cardData; let i = index\" class=\"{{card.cardSize}} inside-card\" [ngClass]=\"{'no-padding-margin':from ==='dashboard' ? cardData.length === 1 : false, 'multy-card':from ==='dashboard' ? cardData.length > 1 : false}\" style=\"height: 100%;\" [ngStyle]=\"{'margin-top': card.marginTop}\">\n <div *ngIf=\"card?.config?.details\" style=\"height: 100%;\">\n <div class=\"width-100\" [ngClass]=\"{'static-width-for-card': from === 'dashboard' ? cardData.length != 1 : true}\" [style.border]=\"(from === 'dashboard' && cardData.length === 1 ) ? 'none' : ''\" style=\"height: 100%;\" [ngStyle]=\"from === 'dashboard' && cardData.length === 1 \n ? {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)'\n } \n : null\">\n <div *ngIf=\"card.isTitleHide ? card.isTitleHide === 'true' ? false : true : true\" class=\"header-section flex content-space-between\" style=\"align-items: center;\">\n <div class=\"section-title\">{{card.labelPath || card.label | customTranslate : card.label}}</div>\n <div class=\"actionButton\" style=\"display: flex; align-items: center;\">\n <div *ngFor=\"let button of card?.actionButton?.buttonArray; let i = index\">\n <div *ngIf=\"i < card?.actionButton?.size\"\n style=\"margin-left: 3px; margin-right: 3px;\">\n <div *ngIf=\"isConditionMet(card, button.conditions)\"\n [matTooltip]=\"button.tooltipPath || button.tooltip | customTranslate : button.tooltip\"\n (click)=\"actionButtonClicked(button,card)\"\n (mouseenter)=\"onMouseEnter($event,'border', button.hoverBorderColor)\"\n (mouseleave)=\"onMouseLeave($event,'border', button.borderColor)\"\n style=\"padding: 2px; border-radius: {{button.borderRadius}}px; border: 1px solid {{button.borderColor}};\">\n <div (mouseenter)=\"onMouseEnter($event,'backgroundColor', button.hoverBackgroundColor)\"\n (mouseleave)=\"onMouseLeave($event,'backgroundColor', button.backgroundColor)\"\n style=\"padding: {{button.padding}}px; border-radius: {{button.borderRadius}}px; background-color: {{button.backgroundColor}}; display: flex; gap: 2px; align-items: center;\">\n <img *ngIf=\"button.iconSrc && (button.iconSrc?.startsWith('data:') || button.iconSrc?.startsWith('http'))\"\n #imgElement\n [src]=\"button.iconSrc\"\n style=\"cursor: pointer;\"\n (mouseenter)=\"imgElement.src = button.hoverIconSrc || button.iconSrc\"\n (mouseleave)=\"imgElement.src = button.iconSrc\"/>\n <i *ngIf=\"!(button.iconSrc?.startsWith('data:') || button.iconSrc?.startsWith('http'))\"\n class=\"fusion-icon nav-icon\"\n [ngClass]=\"button.iconSrc\"\n style=\"margin: 0px !important; font-size: var(--fs-normal, 16px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n <div *ngIf=\"button.isLabel\" style=\"color: {{button.labelColor}}; font-size: 12px;\"> {{button.label || button.tooltip | customTranslate : button.label || button.tooltip}}</div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"card?.actionButton?.buttonArray && card?.actionButton?.buttonArray?.length > 0 && card?.actionButton?.buttonArray?.slice(card?.actionButton?.size) && card?.actionButton?.buttonArray?.slice(card?.actionButton?.size).length > 0\"\n class=\"dropdown\">\n <div class=\"clickable-img\" (click)=\"toggleDropdown(i)\"\n style=\"margin-left: 3px; margin-right: 3px;\">\n <div style=\"background-color: var(--comp-bg-secondary, #f5f5f5); padding: 2px 2px; border-radius: var(--radius-small, 5px);\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-square-down nav-icon\" style=\"background-color: var(--comp-bg-secondary, #f5f5f5); border-radius: var(--radius-small, 5px); border: 1px solid var(--border-color, #6c757d);\"></i>\n </div>\n </div>\n\n <div class=\"dropdown-menu\"\n [style.right]=\"(((card?.actionButton?.size ?? 0) - (card?.actionButton?.buttonArray?.size ?? 0) + ((card?.actionButton?.buttonArray?.slice(card?.actionButton?.size)?.length ?? 0) > 0 ? 1 : 0)) * 100) + '%'\"\n *ngIf=\"currentOpenIndex === i\">\n <div *ngFor=\"let btn of card?.actionButton?.buttonArray?.slice(card?.actionButton?.size)\">\n <button *ngIf=\"isConditionMet(card, btn.conditions)\" \n style=\"display: flex;\" type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [matTooltip]=\"btn.tooltipPath || btn.tooltip | customTranslate : btn.tooltip\" [disabled]=\"btn.buttonDisable\"\n (click)=\"actionButtonClicked(btn,card)\">\n <img *ngIf=\"btn.iconSrc\" [src]=\"btn.iconSrc\">\n <div class=\"fc-btn-text\" style=\"padding-left: 10px;\">\n {{btn.labelPath || btn.namePath || btn.name | customTranslate : btn.label || btn.name}}</div>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"body-section card-text\" style=\"height: 100%;\" [ngStyle]=\"{ padding: card?.config?.padding || null }\">\n <div class=\"flex w-100\" [ngClass]=\"{\n 'row': card?.config?.details?.length > 1,\n 'gutter-remove': from === 'dashboard' && card?.config?.details?.length > 1\n }\" style=\"height: 100%;\">\n <ng-container *ngFor=\"let detail of card?.config?.details\">\n <div *ngIf=\"!detail?.hideFromCard\" class=\"{{detail.size || card.cardInlineSize}} card-detail d-flex flex-column\" [ngClass]=\"detail.alignment\">\n <div *ngIf=\"detail.iconSrc && detail.iconPosition !== 'end'\" class=\"icon-container d-flex\">\n <div class=\"icon-wrapper\" [style.border]=\"'4px solid gray'\">\n <img [src]=\"detail.iconSrc\" alt=\"Icon\">\n </div>\n </div>\n\n <div *ngIf=\"!detail.isLabelHide && detail?.type !== 'image'\" class=\"label-head\" [ngClass]=\"detail.labelFont\">{{detail.labelPath || detail.label | customTranslate : detail.label}}</div>\n\n <div [ngClass]=\"detail?.type !== 'image' && detail?.type !== 'file' ? 'flex-column' : ''\" [class.detail-value-wrapper]=\"detail?.type !== 'image' && detail.truncate\">\n <div *ngIf=\"detail?.type !== 'date' && detail?.type !== 'time' && detail?.type !== 'datetime' && detail?.type !== 'label' && detail?.type !== 'image' && detail?.type !== 'file'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">\n {{\n (detail?.type === 'boolean' || (detail?.value === true || detail?.value === false))\n ? (detail?.value === true ? 'True' : 'False')\n : (detail?.value || detail.value === 0)\n ? detail.value\n : '-'\n }}\n </div>\n <div *ngIf=\"detail?.type === 'date'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate) || '-' }}</div>\n <div *ngIf=\"detail?.type === 'datetime'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate : 'datetime') || '-' }}</div>\n <div *ngIf=\"detail?.type === 'time'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate : 'time') || '-' }}</div>\n <div *ngIf=\"detail?.type === 'link'\" class=\"ms-2\">\n <a *ngIf=\"detail?.redirectOnClick\"\n [href]=\"'//'+detail?.value\"\n [target]=\"detail?.openInNewTab ? '_blank' : '_self'\"\n class=\"form-label label-head\">\n <img [src]=\"detail?.srcImg\" />\n </a>\n </div>\n <div *ngIf=\"detail?.type === 'image'\">\n <img [style.height.%]=\"detail.imgHeight\" [src]=\"(detail?.value || detail?.defaultValue)\" style=\"width: 100%; max-height: 100%; object-fit: contain;\"/>\n </div>\n <div *ngIf=\"detail?.type === 'file'\">\n <div class=\"cursor-pointer label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\" (click)=\"fileClick(detail.value, i)\">{{detail?.isLabel ? detail.value.name : ''}}</div>\n <div class=\"flex\" *ngIf=\"detail?.value\">\n <img *ngIf=\"detail?.type === 'file' && !isLoading[i]\"\n src=\"../assets/images/icons/general/download-icon.svg\"\n class=\"card-icon color\"\n title=\"download\"\n (click)=\"downloadFile(detail.value, i)\"\n style=\"cursor: pointer; width:17px\">\n <svg *ngIf=\"detail?.type === 'file' && isLoading[i]\"\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 <img *ngIf=\"detail?.isView && !isViewLoading[i]\"\n src=\"../assets/images/icons/general/preview.svg\"\n class=\"card-icon color\"\n title=\"preview\"\n (click)=\"fileClick(detail.value, i)\"\n style=\"cursor: pointer; width:20px\">\n <svg *ngIf=\"detail?.isView && isViewLoading[i]\"\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 *ngIf=\"detail.iconSrc && detail.iconPosition === 'end'\" class=\"icon-container d-flex\">\n <div class=\"icon-wrapper\" [style.border]=\"'4px solid gray'\">\n <img [src]=\"detail.iconSrc\" alt=\"Icon\">\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<div *ngIf=\"deleteModal\" class=\"custom-modal-overlay\">\n <div class=\"custom-modal\">\n <div class=\"custom-modal-header\">\n <b>{{ 'APP.DELETE_RECORD'| customTranslate : 'Delete Record'}}</b>\n <button class=\"close-button\" (click)=\"deleteModal = false\">×</button>\n </div>\n <div class=\"custom-modal-body\">\n {{ 'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC'| customTranslate : 'Are you sure you want to delete the record'}} ?\n </div>\n <div class=\"custom-modal-footer\">\n <button class=\"confirm-button\" (click)=\"deleteRecordData()\">{{ 'APP.YES'| customTranslate : 'Yes'}}</button>\n <button class=\"cancel-button\" (click)=\"deleteModal = false\">{{ 'APP.NO'| customTranslate : 'No'}}</button>\n </div>\n </div>\n</div>\n\n<div class=\"modal fade container-sm\" id=\"file\" aria-labelledby=\"file\" \naria-hidden=\"true\" #file>\n <div class=\"modal-dialog modal-lg\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <div class=\"modal-title fs-5\" id=\"expenseReceiptModelLabel\">{{popupTitle}}</div>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" (click)=\"closeModal()\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body\">\n <iframe class=\"receipt-view\" *ngIf=\"safeSrc\" [src]=\"safeSrc\" style=\"width: 100%; height: 500px; border: none;\"></iframe>\n </div>\n </div>\n </div>\n</div>\n\n",
|
|
8795
|
-
styles: [".dropdown-menu{left:unset!important;right:300%;top:12.5px;background-color:var(--
|
|
9091
|
+
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div *ngIf=\"!(isCardLoading?.[comp?._id]?.length > 0) && (!cardData || cardData.length === 0)\" class=\"no-records-container\">\n <div class=\"text-center p-4\">\n <div class=\"no-records-message\">\n <div class=\"mt-3 mb-2\">{{'APP.NO_RECORDS_AVAILABLE' | customTranslate : 'No Records Available'}}</div>\n </div>\n </div>\n</div>\n<div *ngIf=\"isCardLoading?.[comp?._id]?.length > 0; else viewCard\">\n <div class=\"card fc-card fc-card-light skeleton-card\" style=\"height: 200px; border: none;\">\n <div *ngFor=\"let n of [1, 2]\" class=\"flex\" style=\"padding: 25px 0px;\">\n <div *ngFor=\"let e of [1, 2]\" style=\"width: 50%; padding: 5px;\">\n <div class=\"\" style=\"height: 25px;\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\" style=\"width: 95%;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 65%;\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<ng-template #viewCard>\n <div *ngIf=\"cardData && cardData.length > 0\" [class.col-md-12]=\"cardData.length > 0\" [class.dashboard-card-grid]=\"from === 'dashboard'\" style=\"height: 100%;\">\n <div class=\"row\" [ngClass]=\"{\n 'g-2': cardData.length > 1 && from !== 'dashboard',\n 'gutter-remove': from === 'dashboard'\n }\">\n <div *ngFor=\"let card of cardData; let i = index\" class=\"{{card.cardSize}} inside-card\" [ngClass]=\"{'no-padding-margin':from ==='dashboard' ? cardData.length === 1 : false, 'multy-card':from ==='dashboard' ? cardData.length > 1 : false}\" style=\"height: 100%;\" [ngStyle]=\"{'margin-top': card.marginTop}\">\n <div *ngIf=\"card?.config?.details\" style=\"height: 100%;\">\n <div class=\"width-100\" [ngClass]=\"{'static-width-for-card': from === 'dashboard' ? cardData.length != 1 : true}\" [style.border]=\"(from === 'dashboard' && cardData.length === 1 ) ? 'none' : ''\" style=\"height: 100%;\" [ngStyle]=\"from === 'dashboard' && cardData.length === 1 \n ? {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)'\n } \n : null\">\n <div *ngIf=\"card.isTitleHide ? card.isTitleHide === 'true' ? false : true : true\" class=\"header-section flex content-space-between\" style=\"align-items: center;\">\n <div class=\"section-title\">{{card.labelPath || card.label | customTranslate : card.label}}</div>\n <div class=\"actionButton\" style=\"display: flex; align-items: center;\">\n <div *ngFor=\"let button of card?.actionButton?.buttonArray; let i = index\">\n <div *ngIf=\"i < card?.actionButton?.size\"\n style=\"margin-left: 3px; margin-right: 3px;\">\n <div *ngIf=\"isConditionMet(card, button.conditions)\"\n [matTooltip]=\"button.tooltipPath || button.tooltip | customTranslate : button.tooltip\"\n (click)=\"actionButtonClicked(button,card)\"\n (mouseenter)=\"onMouseEnter($event,'border', button.hoverBorderColor)\"\n (mouseleave)=\"onMouseLeave($event,'border', button.borderColor)\"\n style=\"padding: 2px; border-radius: {{button.borderRadius}}px; border: 1px solid {{button.borderColor}};\">\n <div (mouseenter)=\"onMouseEnter($event,'backgroundColor', button.hoverBackgroundColor)\"\n (mouseleave)=\"onMouseLeave($event,'backgroundColor', button.backgroundColor)\"\n style=\"padding: {{button.padding}}px; border-radius: {{button.borderRadius}}px; background-color: {{button.backgroundColor}}; display: flex; gap: 2px; align-items: center;\">\n <img *ngIf=\"button.iconSrc && (button.iconSrc?.startsWith('data:') || button.iconSrc?.startsWith('http'))\"\n #imgElement\n [src]=\"button.iconSrc\"\n style=\"cursor: pointer;\"\n (mouseenter)=\"imgElement.src = button.hoverIconSrc || button.iconSrc\"\n (mouseleave)=\"imgElement.src = button.iconSrc\"/>\n <i *ngIf=\"!(button.iconSrc?.startsWith('data:') || button.iconSrc?.startsWith('http'))\"\n class=\"fusion-icon nav-icon\"\n [ngClass]=\"button.iconSrc\"\n style=\"margin: 0px !important; font-size: var(--fs-normal, 16px) !important; color: var(--fb-text-muted, #787486);\">\n </i>\n <div *ngIf=\"button.isLabel\" style=\"color: {{button.labelColor}}; font-size: 12px;\"> {{button.label || button.tooltip | customTranslate : button.label || button.tooltip}}</div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"card?.actionButton?.buttonArray && card?.actionButton?.buttonArray?.length > 0 && card?.actionButton?.buttonArray?.slice(card?.actionButton?.size) && card?.actionButton?.buttonArray?.slice(card?.actionButton?.size).length > 0\"\n class=\"dropdown\">\n <div class=\"clickable-img\" (click)=\"toggleDropdown(i)\"\n style=\"margin-left: 3px; margin-right: 3px;\">\n <!-- MR 16NOV26 Remediate dropdown icon container to semantic tokens -->\n <div style=\"background-color: var(--fb-surface-secondary, #f8fafc); padding: 2px 2px; border-radius: var(--radius-small, 5px);\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-arrow-square-down nav-icon\" style=\"background-color: var(--fb-surface-secondary, #f8fafc); border-radius: var(--radius-small, 5px); border: 1px solid var(--fb-border-default, #e2e8f0);\"></i>\n </div>\n </div>\n\n <div class=\"dropdown-menu\"\n [style.right]=\"(((card?.actionButton?.size ?? 0) - (card?.actionButton?.buttonArray?.size ?? 0) + ((card?.actionButton?.buttonArray?.slice(card?.actionButton?.size)?.length ?? 0) > 0 ? 1 : 0)) * 100) + '%'\"\n *ngIf=\"currentOpenIndex === i\">\n <div *ngFor=\"let btn of card?.actionButton?.buttonArray?.slice(card?.actionButton?.size)\">\n <button *ngIf=\"isConditionMet(card, btn.conditions)\" \n style=\"display: flex;\" type=\"button\"\n class=\"btn btn-icon {{btn.buttonType}} tooltip-container\"\n [matTooltip]=\"btn.tooltipPath || btn.tooltip | customTranslate : btn.tooltip\" [disabled]=\"btn.buttonDisable\"\n (click)=\"actionButtonClicked(btn,card)\">\n <img *ngIf=\"btn.iconSrc\" [src]=\"btn.iconSrc\">\n <div class=\"fc-btn-text\" style=\"padding-left: 10px;\">\n {{btn.labelPath || btn.namePath || btn.name | customTranslate : btn.label || btn.name}}</div>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"body-section card-text\" style=\"height: 100%;\" [ngStyle]=\"{ padding: card?.config?.padding || null }\">\n <div class=\"flex w-100\" [ngClass]=\"{\n 'row': card?.config?.details?.length > 1,\n 'gutter-remove': from === 'dashboard' && card?.config?.details?.length > 1\n }\" style=\"height: 100%;\">\n <ng-container *ngFor=\"let detail of card?.config?.details\">\n <div *ngIf=\"!detail?.hideFromCard\" class=\"{{detail.size || card.cardInlineSize}} card-detail d-flex flex-column\" [ngClass]=\"detail.alignment\">\n <div *ngIf=\"detail.iconSrc && detail.iconPosition !== 'end'\" class=\"icon-container d-flex\">\n <div class=\"icon-wrapper\" [style.border]=\"'4px solid gray'\">\n <img [src]=\"detail.iconSrc\" alt=\"Icon\">\n </div>\n </div>\n\n <div *ngIf=\"!detail.isLabelHide && detail?.type !== 'image'\" class=\"label-head\" [ngClass]=\"detail.labelFont\">{{detail.labelPath || detail.label | customTranslate : detail.label}}</div>\n\n <div [ngClass]=\"detail?.type !== 'image' && detail?.type !== 'file' ? 'flex-column' : ''\" [class.detail-value-wrapper]=\"detail?.type !== 'image' && detail.truncate\">\n <div *ngIf=\"detail?.type !== 'date' && detail?.type !== 'time' && detail?.type !== 'datetime' && detail?.type !== 'label' && detail?.type !== 'image' && detail?.type !== 'file'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">\n {{\n (detail?.type === 'boolean' || (detail?.value === true || detail?.value === false))\n ? (detail?.value === true ? 'True' : 'False')\n : (detail?.value || detail.value === 0)\n ? detail.value\n : '-'\n }}\n </div>\n <div *ngIf=\"detail?.type === 'date'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate) || '-' }}</div>\n <div *ngIf=\"detail?.type === 'datetime'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate : 'datetime') || '-' }}</div>\n <div *ngIf=\"detail?.type === 'time'\" class=\"label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\">{{ (detail?.value | customDate : 'time') || '-' }}</div>\n <div *ngIf=\"detail?.type === 'link'\" class=\"ms-2\">\n <a *ngIf=\"detail?.redirectOnClick\"\n [href]=\"'//'+detail?.value\"\n [target]=\"detail?.openInNewTab ? '_blank' : '_self'\"\n class=\"form-label label-head\">\n <img [src]=\"detail?.srcImg\" />\n </a>\n </div>\n <div *ngIf=\"detail?.type === 'image'\">\n <img [style.height.%]=\"detail.imgHeight\" [src]=\"(detail?.value || detail?.defaultValue)\" style=\"width: 100%; max-height: 100%; object-fit: contain;\"/>\n </div>\n <div *ngIf=\"detail?.type === 'file'\">\n <div class=\"cursor-pointer label-sub\" [ngClass]=\"detail.valueFont\" [class.truncate]=\"detail.truncate\" (click)=\"fileClick(detail.value, i)\">{{detail?.isLabel ? detail.value.name : ''}}</div>\n <div class=\"flex\" *ngIf=\"detail?.value\">\n <img *ngIf=\"detail?.type === 'file' && !isLoading[i]\"\n src=\"../assets/images/icons/general/download-icon.svg\"\n class=\"card-icon color\"\n title=\"download\"\n (click)=\"downloadFile(detail.value, i)\"\n style=\"cursor: pointer; width:17px\">\n <svg *ngIf=\"detail?.type === 'file' && isLoading[i]\"\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 <img *ngIf=\"detail?.isView && !isViewLoading[i]\"\n src=\"../assets/images/icons/general/preview.svg\"\n class=\"card-icon color\"\n title=\"preview\"\n (click)=\"fileClick(detail.value, i)\"\n style=\"cursor: pointer; width:20px\">\n <svg *ngIf=\"detail?.isView && isViewLoading[i]\"\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 *ngIf=\"detail.iconSrc && detail.iconPosition === 'end'\" class=\"icon-container d-flex\">\n <div class=\"icon-wrapper\" [style.border]=\"'4px solid gray'\">\n <img [src]=\"detail.iconSrc\" alt=\"Icon\">\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<div *ngIf=\"deleteModal\" class=\"custom-modal-overlay\">\n <div class=\"custom-modal\">\n <div class=\"custom-modal-header\">\n <b>{{ 'APP.DELETE_RECORD'| customTranslate : 'Delete Record'}}</b>\n <button class=\"close-button\" (click)=\"deleteModal = false\">×</button>\n </div>\n <div class=\"custom-modal-body\">\n {{ 'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC'| customTranslate : 'Are you sure you want to delete the record'}} ?\n </div>\n <div class=\"custom-modal-footer\">\n <button class=\"confirm-button\" (click)=\"deleteRecordData()\">{{ 'APP.YES'| customTranslate : 'Yes'}}</button>\n <button class=\"cancel-button\" (click)=\"deleteModal = false\">{{ 'APP.NO'| customTranslate : 'No'}}</button>\n </div>\n </div>\n</div>\n\n<div class=\"modal fade container-sm\" id=\"file\" aria-labelledby=\"file\" \naria-hidden=\"true\" #file>\n <div class=\"modal-dialog modal-lg\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <div class=\"modal-title fs-5\" id=\"expenseReceiptModelLabel\">{{popupTitle}}</div>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" (click)=\"closeModal()\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body\">\n <iframe class=\"receipt-view\" *ngIf=\"safeSrc\" [src]=\"safeSrc\" style=\"width: 100%; height: 500px; border: none;\"></iframe>\n </div>\n </div>\n </div>\n</div>\n\n",
|
|
9092
|
+
styles: [".dropdown-menu{left:unset!important;right:300%;top:12.5px;background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);border-radius:var(--radius-small, 4px);box-shadow:0 4px 8px var(--fb-backdrop, rgba(0, 0, 0, .1))}.dropdown .dropdown-menu{display:block}.dropdown-menu .btn{display:block;padding:10px;width:100%;text-align:left;background:transparent;border:none;cursor:pointer}.clickable-img{position:relative;cursor:pointer;padding:2px;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:5px}.clickable-img:hover{border:1px solid var(--fb-action-border, #1f69ff);border-radius:var(--radius-small, 5px)}.card-icon.color path{fill:var(--fc-primary-color, #2563eb)}.card-icon.color{margin-left:15px}.custom-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--fb-backdrop, rgba(0, 0, 0, .4));display:flex;align-items:start;justify-content:center;z-index:1050}.custom-modal{background:var(--fb-surface-elevated, #ffffff);border-radius:8px;width:550px;max-width:90%;margin-top:30px;box-shadow:0 5px 15px var(--fb-backdrop, rgba(0, 0, 0, .2));overflow:hidden}.custom-modal-header{border-bottom:solid .5px var(--fb-border-default, #e2e8f0)}.custom-modal-footer{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.custom-modal-header,.custom-modal-footer{padding:.7rem;display:flex;justify-content:space-between;align-items:center}.custom-modal-body{padding:1rem;font-size:1rem}.close-button{background:none;border:none;font-size:1.25rem;cursor:pointer}.cancel-button,.confirm-button{padding:.5rem 1rem;border:none;border-radius:4px;cursor:pointer}.cancel-button{background:var(--fb-surface-secondary, #ffffff);color:var(--fb-text-primary, #0f172a)}.confirm-button{background:var(--fb-error-surface, #d9534f);color:var(--fb-text-on-action, #ffffff)}.text-center{text-align:center!important;border:solid .5px var(--fb-border-default, #94a3b8);border-radius:var(--radius-medium, 10px);margin:10px 0;color:var(--fb-text-muted, #94a3b8)}.receipt-view{width:100%;height:600px}.icon-container{position:relative;margin-top:100px;z-index:1}.card-detail{margin-top:5px;margin-bottom:5px;min-width:0;overflow:hidden}.svg-spinner{animation:rotate 1s linear infinite}.svg-spinner .path{stroke:var(--fc-primary-color, #2563eb);stroke-linecap:round;stroke-dasharray:80 150;stroke-width:4}@keyframes rotate{to{transform:rotate(360deg)}}.no-padding-margin{margin:0!important;padding:0!important}.static-width-for-card{border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.header-section{padding:8px 8px 0}.section-title{font-size:var(--fs-primary, 14px);font-weight:500}.body-section{padding:8px}.label-sub{white-space:normal;overflow-wrap:anywhere}.row.gutter-remove{--bs-gutter-x: 0rem !important;margin-top:0!important}.row{--bs-gutter-y: 0 !important}.inside-card.multy-card{margin-top:5px!important}.detail-value-wrapper{min-width:0;overflow:hidden;width:100%}.row>[class*=col]{min-width:0}.label-sub.truncate{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:unset!important;display:block;max-width:100%}\n"]
|
|
8796
9093
|
}]
|
|
8797
9094
|
}],
|
|
8798
9095
|
ctorParameters: () => [
|
|
@@ -9048,8 +9345,8 @@ var ToastComponent = class ToastComponent {
|
|
|
9048
9345
|
defaultDuration: "defaultDuration"
|
|
9049
9346
|
},
|
|
9050
9347
|
ngImport: i0,
|
|
9051
|
-
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div class=\"toast-container\" [class]=\"positionClass\">\n <div\n class=\"toast\"\n *ngFor=\"let t of toasts; trackBy: trackById\"\n [class.leaving]=\"t._leaving\"\n [attr.data-type]=\"t.type\"\n [style.background]=\"t.background || ''\"\n [style.color]=\"t.textColor || ''\"\n (mouseenter)=\"onMouseEnter(t, $event)\"\n (mouseleave)=\"onMouseLeave(t, $event)\"\n >\n <div style=\"display: flex; width: 100%; align-items: center;\">\n <div class=\"toast-left\">\n <i *ngIf=\"t.icon\" class=\"fusion-icon fusion-icon-size-lg {{t.icon}} nav-icon icon\" style=\"color: var(--
|
|
9052
|
-
styles: [":host{display:block}.toast-container{position:fixed;width:360px;display:flex;flex-direction:column;gap:12px;z-index:1100;pointer-events:none}.toast-container.top-right{inset:65px 16px auto auto}.toast-container.top-left{inset:16px auto auto 16px}.toast-container.bottom-right{inset:auto 16px 16px auto}.toast-container.bottom-left{inset:auto auto 16px 16px}.toast{pointer-events:auto;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:var(--radius-large, 12px);box-shadow:0 10px 15px -3px
|
|
9348
|
+
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div class=\"toast-container\" [class]=\"positionClass\">\n <div\n class=\"toast\"\n *ngFor=\"let t of toasts; trackBy: trackById\"\n [class.leaving]=\"t._leaving\"\n [attr.data-type]=\"t.type\"\n [style.background]=\"t.background || ''\"\n [style.color]=\"t.textColor || ''\"\n (mouseenter)=\"onMouseEnter(t, $event)\"\n (mouseleave)=\"onMouseLeave(t, $event)\"\n >\n <div style=\"display: flex; width: 100%; align-items: center;\">\n <div class=\"toast-left\">\n <!-- MR 16NOV26 Remediate toast icon color to semantic textPrimary token -->\n <i *ngIf=\"t.icon\" class=\"fusion-icon fusion-icon-size-lg {{t.icon}} nav-icon icon\" style=\"color: var(--fb-text-primary, #0f172a) !important;\"></i>\n <div class=\"icon default\" *ngIf=\"!t.icon\">\n @switch (t.type) {\n @case ('success') {\n <svg viewBox=\"0 0 24 24\" class=\"default-svg\">\n <path fill=\"currentColor\" d=\"M9 16.2l-3.5-3.5L4 14l5 5 12-12-1.5-1.5z\"/>\n </svg>\n }\n @case ('error') {\n <svg viewBox=\"0 0 24 24\" class=\"default-svg\">\n <path fill=\"currentColor\" d=\"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 13.6L13.6 17 12 15.4 10.4 17 7 13.6 8.6 12 7 10.4 10.4 7 12 8.6 13.6 7 17 10.4 15.4 12 17 13.6z\"/>\n </svg>\n }\n @case ('warning') {\n <svg viewBox=\"0 0 24 24\" class=\"default-svg\">\n <path fill=\"currentColor\" d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"/>\n </svg>\n }\n @default {\n <svg viewBox=\"0 0 24 24\" class=\"default-svg\">\n <path fill=\"currentColor\" d=\"M12 2v20M2 12h20\"/>\n </svg>\n }\n }\n </div>\n </div>\n\n <div class=\"toast-body\">\n <div class=\"title\" *ngIf=\"t.title\">{{ t.title }}</div>\n <div class=\"message\">{{ t.message }}</div>\n </div>\n\n <button class=\"close\" (click)=\"dismiss(t.id)\" aria-label=\"Close\">×</button>\n </div>\n\n <div class=\"progress\" *ngIf=\"t.duration && t.duration > 0\">\n <div class=\"bar\" [style.--toast-duration]=\"t.duration + 'ms'\" [style.animation-play-state]=\"progressState()\"></div>\n </div>\n </div>\n</div>\n\n",
|
|
9349
|
+
styles: [":host{display:block}.toast-container{position:fixed;width:360px;display:flex;flex-direction:column;gap:12px;z-index:1100;pointer-events:none}.toast-container.top-right{inset:65px 16px auto auto}.toast-container.top-left{inset:16px auto auto 16px}.toast-container.bottom-right{inset:auto 16px 16px auto}.toast-container.bottom-left{inset:auto auto 16px 16px}.toast{pointer-events:auto;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:var(--radius-large, 12px);box-shadow:0 10px 15px -3px var(--fb-backdrop, rgba(0, 0, 0, .1)),0 4px 6px -2px var(--fb-backdrop, rgba(0, 0, 0, .05));background:var(--fb-surface-elevated, #ffffff);color:var(--fb-text-primary, #0f172a);overflow:hidden;border:1px solid var(--fb-border-default, #e2e8f0);position:relative;transform:translate(8px);opacity:0;animation:toast-in .22s cubic-bezier(.2,.9,.2,1) forwards}.toast.leaving{animation:toast-out .18s ease-in forwards}@keyframes toast-in{0%{opacity:0;transform:translateY(-8px) translate(8px)}to{opacity:1;transform:translateY(0) translate(0)}}@keyframes toast-out{0%{opacity:1;transform:translateY(0) translate(0)}to{opacity:0;transform:translateY(-6px) translate(6px)}}.toast[data-type=success]{border-left:6px solid var(--fb-success-border, #22c55e)}.toast[data-type=error]{border-left:6px solid var(--fb-error-border, #ef4444)}.toast[data-type=warning]{border-left:6px solid var(--fb-warning-border, #f59e0b)}.toast[data-type=info]{border-left:6px solid var(--fb-info-border, #3b82f6)}.toast-left{display:flex;align-items:center}.icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center}.icon svg{width:22px;height:22px}.default-svg{opacity:.95}.toast-body{flex:1;min-width:0;padding:0 8px}.title{font-weight:700;font-size:14px;margin-bottom:4px}.message{font-size:13px;color:inherit;opacity:.88;word-break:break-word}.close{background:none;border:0;font-size:18px;line-height:1;padding:4px 6px;cursor:pointer;color:inherit}.progress{position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--fb-border-subtle, rgba(0, 0, 0, .05))}.progress .bar{height:100%;width:100%;background:var(--fc-primary-color, #3b82f6);transform-origin:left;animation-name:progress-shrink;animation-timing-function:linear;animation-duration:var(--toast-duration, 5s);animation-play-state:var(--toast-playstate, running)}@keyframes progress-shrink{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media(max-width:420px){.toast-container{width:calc(100% - 32px);left:16px;right:16px}}\n"],
|
|
9053
9350
|
dependencies: [
|
|
9054
9351
|
{
|
|
9055
9352
|
kind: "ngmodule",
|
|
@@ -9091,8 +9388,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9091
9388
|
standalone: true,
|
|
9092
9389
|
imports: [CommonModule],
|
|
9093
9390
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9094
|
-
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div class=\"toast-container\" [class]=\"positionClass\">\n <div\n class=\"toast\"\n *ngFor=\"let t of toasts; trackBy: trackById\"\n [class.leaving]=\"t._leaving\"\n [attr.data-type]=\"t.type\"\n [style.background]=\"t.background || ''\"\n [style.color]=\"t.textColor || ''\"\n (mouseenter)=\"onMouseEnter(t, $event)\"\n (mouseleave)=\"onMouseLeave(t, $event)\"\n >\n <div style=\"display: flex; width: 100%; align-items: center;\">\n <div class=\"toast-left\">\n <i *ngIf=\"t.icon\" class=\"fusion-icon fusion-icon-size-lg {{t.icon}} nav-icon icon\" style=\"color: var(--
|
|
9095
|
-
styles: [":host{display:block}.toast-container{position:fixed;width:360px;display:flex;flex-direction:column;gap:12px;z-index:1100;pointer-events:none}.toast-container.top-right{inset:65px 16px auto auto}.toast-container.top-left{inset:16px auto auto 16px}.toast-container.bottom-right{inset:auto 16px 16px auto}.toast-container.bottom-left{inset:auto auto 16px 16px}.toast{pointer-events:auto;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:var(--radius-large, 12px);box-shadow:0 10px 15px -3px
|
|
9391
|
+
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div class=\"toast-container\" [class]=\"positionClass\">\n <div\n class=\"toast\"\n *ngFor=\"let t of toasts; trackBy: trackById\"\n [class.leaving]=\"t._leaving\"\n [attr.data-type]=\"t.type\"\n [style.background]=\"t.background || ''\"\n [style.color]=\"t.textColor || ''\"\n (mouseenter)=\"onMouseEnter(t, $event)\"\n (mouseleave)=\"onMouseLeave(t, $event)\"\n >\n <div style=\"display: flex; width: 100%; align-items: center;\">\n <div class=\"toast-left\">\n <!-- MR 16NOV26 Remediate toast icon color to semantic textPrimary token -->\n <i *ngIf=\"t.icon\" class=\"fusion-icon fusion-icon-size-lg {{t.icon}} nav-icon icon\" style=\"color: var(--fb-text-primary, #0f172a) !important;\"></i>\n <div class=\"icon default\" *ngIf=\"!t.icon\">\n @switch (t.type) {\n @case ('success') {\n <svg viewBox=\"0 0 24 24\" class=\"default-svg\">\n <path fill=\"currentColor\" d=\"M9 16.2l-3.5-3.5L4 14l5 5 12-12-1.5-1.5z\"/>\n </svg>\n }\n @case ('error') {\n <svg viewBox=\"0 0 24 24\" class=\"default-svg\">\n <path fill=\"currentColor\" d=\"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 13.6L13.6 17 12 15.4 10.4 17 7 13.6 8.6 12 7 10.4 10.4 7 12 8.6 13.6 7 17 10.4 15.4 12 17 13.6z\"/>\n </svg>\n }\n @case ('warning') {\n <svg viewBox=\"0 0 24 24\" class=\"default-svg\">\n <path fill=\"currentColor\" d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"/>\n </svg>\n }\n @default {\n <svg viewBox=\"0 0 24 24\" class=\"default-svg\">\n <path fill=\"currentColor\" d=\"M12 2v20M2 12h20\"/>\n </svg>\n }\n }\n </div>\n </div>\n\n <div class=\"toast-body\">\n <div class=\"title\" *ngIf=\"t.title\">{{ t.title }}</div>\n <div class=\"message\">{{ t.message }}</div>\n </div>\n\n <button class=\"close\" (click)=\"dismiss(t.id)\" aria-label=\"Close\">×</button>\n </div>\n\n <div class=\"progress\" *ngIf=\"t.duration && t.duration > 0\">\n <div class=\"bar\" [style.--toast-duration]=\"t.duration + 'ms'\" [style.animation-play-state]=\"progressState()\"></div>\n </div>\n </div>\n</div>\n\n",
|
|
9392
|
+
styles: [":host{display:block}.toast-container{position:fixed;width:360px;display:flex;flex-direction:column;gap:12px;z-index:1100;pointer-events:none}.toast-container.top-right{inset:65px 16px auto auto}.toast-container.top-left{inset:16px auto auto 16px}.toast-container.bottom-right{inset:auto 16px 16px auto}.toast-container.bottom-left{inset:auto auto 16px 16px}.toast{pointer-events:auto;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:var(--radius-large, 12px);box-shadow:0 10px 15px -3px var(--fb-backdrop, rgba(0, 0, 0, .1)),0 4px 6px -2px var(--fb-backdrop, rgba(0, 0, 0, .05));background:var(--fb-surface-elevated, #ffffff);color:var(--fb-text-primary, #0f172a);overflow:hidden;border:1px solid var(--fb-border-default, #e2e8f0);position:relative;transform:translate(8px);opacity:0;animation:toast-in .22s cubic-bezier(.2,.9,.2,1) forwards}.toast.leaving{animation:toast-out .18s ease-in forwards}@keyframes toast-in{0%{opacity:0;transform:translateY(-8px) translate(8px)}to{opacity:1;transform:translateY(0) translate(0)}}@keyframes toast-out{0%{opacity:1;transform:translateY(0) translate(0)}to{opacity:0;transform:translateY(-6px) translate(6px)}}.toast[data-type=success]{border-left:6px solid var(--fb-success-border, #22c55e)}.toast[data-type=error]{border-left:6px solid var(--fb-error-border, #ef4444)}.toast[data-type=warning]{border-left:6px solid var(--fb-warning-border, #f59e0b)}.toast[data-type=info]{border-left:6px solid var(--fb-info-border, #3b82f6)}.toast-left{display:flex;align-items:center}.icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center}.icon svg{width:22px;height:22px}.default-svg{opacity:.95}.toast-body{flex:1;min-width:0;padding:0 8px}.title{font-weight:700;font-size:14px;margin-bottom:4px}.message{font-size:13px;color:inherit;opacity:.88;word-break:break-word}.close{background:none;border:0;font-size:18px;line-height:1;padding:4px 6px;cursor:pointer;color:inherit}.progress{position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--fb-border-subtle, rgba(0, 0, 0, .05))}.progress .bar{height:100%;width:100%;background:var(--fc-primary-color, #3b82f6);transform-origin:left;animation-name:progress-shrink;animation-timing-function:linear;animation-duration:var(--toast-duration, 5s);animation-play-state:var(--toast-playstate, running)}@keyframes progress-shrink{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media(max-width:420px){.toast-container{width:calc(100% - 32px);left:16px;right:16px}}\n"]
|
|
9096
9393
|
}]
|
|
9097
9394
|
}],
|
|
9098
9395
|
ctorParameters: () => [
|
|
@@ -9205,8 +9502,8 @@ var MultiSelectDropdownComponent = class MultiSelectDropdownComponent {
|
|
|
9205
9502
|
outputs: { shareCheckedList: "shareCheckedList" },
|
|
9206
9503
|
usesOnChanges: true,
|
|
9207
9504
|
ngImport: i0,
|
|
9208
|
-
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<mat-form-field style=\"width: 100%;\">\n <mat-label>{{ label }}</mat-label>\n\n <div style=\"margin-bottom: 5px;\">\n @for (selectedItem of selectedItemList; track selectedItem) {\n <mat-chip style=\"margin: 5px;\" [removable]=\"true\" (removed)=\"removeChip(selectedItem)\">\n {{ selectedItem._id }} ({{ selectedItem.label }})\n <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n }\n </div>\n\n <mat-select [formControl]=\"control\" multiple [compareWith]=\"compareItems\">\n <mat-select-trigger></mat-select-trigger>\n\n <mat-form-field style=\"width: 100%;\" appearance=\"outline\">\n <mat-label>Search {{ label }}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"value\" (ngModelChange)=\"onFilterChange($event)\" />\n @if (value) {\n <button style=\"position: absolute; right: -10px; top: 5px;\" mat-icon-button aria-label=\"Clear\"\n (click)=\"clearFilter()\">\n <mat-icon>close</mat-icon>\n </button>\n }\n </mat-form-field>\n\n @if (filteredItemList.length > 0 && isAll) {\n <mat-checkbox color=\"primary\" style=\"user-select: none; width: 100%; cursor: pointer; padding: 5px;\" matRipple\n [checked]=\"isAllSelected()\" (click)=\"toggleSelectAll()\">\n <span [style.color]=\"isAllSelected() ? 'var(--
|
|
9209
|
-
styles: ["::ng-deep mat-checkbox:hover{background-color:var(--
|
|
9505
|
+
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<mat-form-field style=\"width: 100%;\">\n <mat-label>{{ label }}</mat-label>\n\n <div style=\"margin-bottom: 5px;\">\n @for (selectedItem of selectedItemList; track selectedItem) {\n <mat-chip style=\"margin: 5px;\" [removable]=\"true\" (removed)=\"removeChip(selectedItem)\">\n {{ selectedItem._id }} ({{ selectedItem.label }})\n <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n }\n </div>\n\n <mat-select [formControl]=\"control\" multiple [compareWith]=\"compareItems\">\n <mat-select-trigger></mat-select-trigger>\n\n <mat-form-field style=\"width: 100%;\" appearance=\"outline\">\n <mat-label>Search {{ label }}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"value\" (ngModelChange)=\"onFilterChange($event)\" />\n @if (value) {\n <button style=\"position: absolute; right: -10px; top: 5px;\" mat-icon-button aria-label=\"Clear\"\n (click)=\"clearFilter()\">\n <mat-icon>close</mat-icon>\n </button>\n }\n </mat-form-field>\n\n @if (filteredItemList.length > 0 && isAll) {\n <mat-checkbox color=\"primary\" style=\"user-select: none; width: 100%; cursor: pointer; padding: 5px;\" matRipple\n [checked]=\"isAllSelected()\" (click)=\"toggleSelectAll()\">\n <!-- MR 16NOV26 Remediate select-all text color to semantic token -->\n <span [style.color]=\"isAllSelected() ? 'var(--fb-selected-text, #0070d2)' : 'inherit'\" style=\"font-size: var(--fs-normal, 16px);\">All</span>\n </mat-checkbox>\n }\n\n @for (item of filteredItemList; track item) {\n <mat-option [value]=\"item\">\n {{ item._id }} ({{ item.label }})\n </mat-option>\n }\n\n @if (filteredItemList.length == 0) {\n <div style=\"padding: 5px 10px;\">No results found!</div>\n }\n </mat-select>\n</mat-form-field>\n\n",
|
|
9506
|
+
styles: ["::ng-deep mat-checkbox:hover{background-color:var(--fb-action-surface-hover, rgba(0, 0, 0, .04))}::ng-deep mat-option span{white-space:nowrap;text-overflow:ellipsis;max-width:100%;overflow:hidden}.selected-option{background-color:var(--fb-selected-bg, rgba(0, 112, 210, .12))!important;color:var(--fb-selected-text, #0070d2)!important}\n"],
|
|
9210
9507
|
dependencies: [
|
|
9211
9508
|
{
|
|
9212
9509
|
kind: "ngmodule",
|
|
@@ -9490,8 +9787,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9490
9787
|
MatChipsModule
|
|
9491
9788
|
],
|
|
9492
9789
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9493
|
-
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<mat-form-field style=\"width: 100%;\">\n <mat-label>{{ label }}</mat-label>\n\n <div style=\"margin-bottom: 5px;\">\n @for (selectedItem of selectedItemList; track selectedItem) {\n <mat-chip style=\"margin: 5px;\" [removable]=\"true\" (removed)=\"removeChip(selectedItem)\">\n {{ selectedItem._id }} ({{ selectedItem.label }})\n <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n }\n </div>\n\n <mat-select [formControl]=\"control\" multiple [compareWith]=\"compareItems\">\n <mat-select-trigger></mat-select-trigger>\n\n <mat-form-field style=\"width: 100%;\" appearance=\"outline\">\n <mat-label>Search {{ label }}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"value\" (ngModelChange)=\"onFilterChange($event)\" />\n @if (value) {\n <button style=\"position: absolute; right: -10px; top: 5px;\" mat-icon-button aria-label=\"Clear\"\n (click)=\"clearFilter()\">\n <mat-icon>close</mat-icon>\n </button>\n }\n </mat-form-field>\n\n @if (filteredItemList.length > 0 && isAll) {\n <mat-checkbox color=\"primary\" style=\"user-select: none; width: 100%; cursor: pointer; padding: 5px;\" matRipple\n [checked]=\"isAllSelected()\" (click)=\"toggleSelectAll()\">\n <span [style.color]=\"isAllSelected() ? 'var(--
|
|
9494
|
-
styles: ["::ng-deep mat-checkbox:hover{background-color:var(--
|
|
9790
|
+
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<mat-form-field style=\"width: 100%;\">\n <mat-label>{{ label }}</mat-label>\n\n <div style=\"margin-bottom: 5px;\">\n @for (selectedItem of selectedItemList; track selectedItem) {\n <mat-chip style=\"margin: 5px;\" [removable]=\"true\" (removed)=\"removeChip(selectedItem)\">\n {{ selectedItem._id }} ({{ selectedItem.label }})\n <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n }\n </div>\n\n <mat-select [formControl]=\"control\" multiple [compareWith]=\"compareItems\">\n <mat-select-trigger></mat-select-trigger>\n\n <mat-form-field style=\"width: 100%;\" appearance=\"outline\">\n <mat-label>Search {{ label }}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"value\" (ngModelChange)=\"onFilterChange($event)\" />\n @if (value) {\n <button style=\"position: absolute; right: -10px; top: 5px;\" mat-icon-button aria-label=\"Clear\"\n (click)=\"clearFilter()\">\n <mat-icon>close</mat-icon>\n </button>\n }\n </mat-form-field>\n\n @if (filteredItemList.length > 0 && isAll) {\n <mat-checkbox color=\"primary\" style=\"user-select: none; width: 100%; cursor: pointer; padding: 5px;\" matRipple\n [checked]=\"isAllSelected()\" (click)=\"toggleSelectAll()\">\n <!-- MR 16NOV26 Remediate select-all text color to semantic token -->\n <span [style.color]=\"isAllSelected() ? 'var(--fb-selected-text, #0070d2)' : 'inherit'\" style=\"font-size: var(--fs-normal, 16px);\">All</span>\n </mat-checkbox>\n }\n\n @for (item of filteredItemList; track item) {\n <mat-option [value]=\"item\">\n {{ item._id }} ({{ item.label }})\n </mat-option>\n }\n\n @if (filteredItemList.length == 0) {\n <div style=\"padding: 5px 10px;\">No results found!</div>\n }\n </mat-select>\n</mat-form-field>\n\n",
|
|
9791
|
+
styles: ["::ng-deep mat-checkbox:hover{background-color:var(--fb-action-surface-hover, rgba(0, 0, 0, .04))}::ng-deep mat-option span{white-space:nowrap;text-overflow:ellipsis;max-width:100%;overflow:hidden}.selected-option{background-color:var(--fb-selected-bg, rgba(0, 112, 210, .12))!important;color:var(--fb-selected-text, #0070d2)!important}\n"]
|
|
9495
9792
|
}]
|
|
9496
9793
|
}],
|
|
9497
9794
|
ctorParameters: () => [{ type: i0.ChangeDetectorRef }],
|
|
@@ -9564,7 +9861,7 @@ var AlertMessageComponent = class AlertMessageComponent {
|
|
|
9564
9861
|
outputs: { dismiss: "dismiss" },
|
|
9565
9862
|
ngImport: i0,
|
|
9566
9863
|
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div *ngIf=\"visible && (message || true)\" class=\"alert alert-dismissible fade show form-submission-message\" [ngClass]=\"normalizedType\" role=\"alert\">\n <div class=\"info\">\n <div class=\"alert-icon\">\n <ng-content select=\"[alert-icon]\">\n @switch (normalizedType) {\n @case ('success') {\n <svg class=\"icon-svg\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M9 16.2l-3.5-3.5L4 14l5 5 12-12-1.5-1.5z\"/>\n </svg>\n }\n @case ('failure') {\n <svg class=\"icon-svg\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 13.6L13.6 17 12 15.4 10.4 17 7 13.6 8.6 12 7 10.4 10.4 7 12 8.6 13.6 7 17 10.4 15.4 12 17 13.6z\"/>\n </svg>\n }\n @case ('warning') {\n <svg class=\"icon-svg\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"/>\n </svg>\n }\n @default {\n <svg class=\"icon-svg\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M12 2v20M2 12h20\"/>\n </svg>\n }\n }\n </ng-content>\n </div>\n\n <div class=\"alert-content\">\n <ng-content>{{ message }}</ng-content>\n </div>\n\n <button *ngIf=\"dismissible\" type=\"button\" class=\"close-btn\" (click)=\"onDismiss()\" aria-label=\"Close\">\n <svg viewBox=\"0 0 24 24\" class=\"cross-icon\">\n <path fill=\"currentColor\" d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"/>\n </svg>\n </button>\n </div>\n</div>\n\n",
|
|
9567
|
-
styles: [":host{display:block}.form-submission-message{margin:8px 0;padding:10px 14px;border-radius:var(--radius-medium, 8px);position:relative;border:1px solid transparent}.form-submission-message.success{background-color:var(--fb-
|
|
9864
|
+
styles: [":host{display:block}.form-submission-message{margin:8px 0;padding:10px 14px;border-radius:var(--radius-medium, 8px);position:relative;border:1px solid transparent}.form-submission-message.success{background-color:var(--fb-success-surface, #e6f4ea);color:var(--fb-success-text, #137333);border-color:var(--fb-success-border, #a8dab5)}.form-submission-message.failure{background-color:var(--fb-error-surface, #fee2e2);color:var(--fb-error-text, #991b1b);border-color:var(--fb-error-border, #fecaca)}.form-submission-message.warning{background-color:var(--fb-warning-surface, #fef3c7);color:var(--fb-warning-text, #92400e);border-color:var(--fb-warning-border, #fde68a)}.form-submission-message.info{background-color:var(--fb-info-surface, #f1f5f9);color:var(--fb-info-text, #1e293b);border-color:var(--fb-info-border, #e2e8f0)}.info{display:flex;align-items:center;gap:10px;width:100%}.alert-icon{display:flex;align-items:center;flex-shrink:0}.icon-svg{width:20px;height:20px}.alert-content{flex:1;font-size:13px;font-weight:500;line-height:1.4}.close-btn{background:transparent;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;color:inherit;opacity:.7}.close-btn:hover{opacity:1}.cross-icon{width:16px;height:16px}\n"],
|
|
9568
9865
|
dependencies: [
|
|
9569
9866
|
{
|
|
9570
9867
|
kind: "ngmodule",
|
|
@@ -9603,7 +9900,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9603
9900
|
imports: [CommonModule],
|
|
9604
9901
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9605
9902
|
template: "<!-- MR 09NOV26 Migration of Datatables and Tier 1 Primitives to fusion-ui -->\n<div *ngIf=\"visible && (message || true)\" class=\"alert alert-dismissible fade show form-submission-message\" [ngClass]=\"normalizedType\" role=\"alert\">\n <div class=\"info\">\n <div class=\"alert-icon\">\n <ng-content select=\"[alert-icon]\">\n @switch (normalizedType) {\n @case ('success') {\n <svg class=\"icon-svg\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M9 16.2l-3.5-3.5L4 14l5 5 12-12-1.5-1.5z\"/>\n </svg>\n }\n @case ('failure') {\n <svg class=\"icon-svg\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 13.6L13.6 17 12 15.4 10.4 17 7 13.6 8.6 12 7 10.4 10.4 7 12 8.6 13.6 7 17 10.4 15.4 12 17 13.6z\"/>\n </svg>\n }\n @case ('warning') {\n <svg class=\"icon-svg\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"/>\n </svg>\n }\n @default {\n <svg class=\"icon-svg\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M12 2v20M2 12h20\"/>\n </svg>\n }\n }\n </ng-content>\n </div>\n\n <div class=\"alert-content\">\n <ng-content>{{ message }}</ng-content>\n </div>\n\n <button *ngIf=\"dismissible\" type=\"button\" class=\"close-btn\" (click)=\"onDismiss()\" aria-label=\"Close\">\n <svg viewBox=\"0 0 24 24\" class=\"cross-icon\">\n <path fill=\"currentColor\" d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"/>\n </svg>\n </button>\n </div>\n</div>\n\n",
|
|
9606
|
-
styles: [":host{display:block}.form-submission-message{margin:8px 0;padding:10px 14px;border-radius:var(--radius-medium, 8px);position:relative;border:1px solid transparent}.form-submission-message.success{background-color:var(--fb-
|
|
9903
|
+
styles: [":host{display:block}.form-submission-message{margin:8px 0;padding:10px 14px;border-radius:var(--radius-medium, 8px);position:relative;border:1px solid transparent}.form-submission-message.success{background-color:var(--fb-success-surface, #e6f4ea);color:var(--fb-success-text, #137333);border-color:var(--fb-success-border, #a8dab5)}.form-submission-message.failure{background-color:var(--fb-error-surface, #fee2e2);color:var(--fb-error-text, #991b1b);border-color:var(--fb-error-border, #fecaca)}.form-submission-message.warning{background-color:var(--fb-warning-surface, #fef3c7);color:var(--fb-warning-text, #92400e);border-color:var(--fb-warning-border, #fde68a)}.form-submission-message.info{background-color:var(--fb-info-surface, #f1f5f9);color:var(--fb-info-text, #1e293b);border-color:var(--fb-info-border, #e2e8f0)}.info{display:flex;align-items:center;gap:10px;width:100%}.alert-icon{display:flex;align-items:center;flex-shrink:0}.icon-svg{width:20px;height:20px}.alert-content{flex:1;font-size:13px;font-weight:500;line-height:1.4}.close-btn{background:transparent;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;color:inherit;opacity:.7}.close-btn:hover{opacity:1}.cross-icon{width:16px;height:16px}\n"]
|
|
9607
9904
|
}]
|
|
9608
9905
|
}],
|
|
9609
9906
|
ctorParameters: () => [{ type: i0.ChangeDetectorRef }, {
|
|
@@ -9724,6 +10021,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9724
10021
|
}]
|
|
9725
10022
|
}]
|
|
9726
10023
|
});
|
|
9727
|
-
export { AlertMessageComponent, AlertService, AmountToWordsPipe, ApiService, ApprovalScreenComponent, AttendanceTableComponent, CommonScreenComponent, ConfigService, Constants, CustomDatePipe, CustomPaginatorIntl, CustomTimePipe, CustomTranslatePipe, DataTableComponent, DropDownComponent, EditColumnCheckPipe, EditColumnDropdownPipe, EditColumnTypePipe, ErrorHandlerService, FileUploadComponent, FormsComponent, FusionButtonComponent, FusionCardComponent, GetValuePipe, GlobalValuesService, LoaderService, ModalComponent, MultiCheckboxComponent, MultiSelectDropdownComponent, MultipleFilterComponent, PaginationComponent, PdfFontService, PopoverComponent, ScrollService, SearchFilterComponent, SearchFilterPipe, SideScreenComponent, TOAST_GLOBAL_CONFIG, TabDataService, ToastComponent, ToastService, TotalColumSumPipe, provideToastConfig };
|
|
10024
|
+
export { AlertMessageComponent, AlertService, AmountToWordsPipe, ApiService, ApprovalScreenComponent, AttendanceTableComponent, CommonScreenComponent, ConfigService, Constants, CustomDatePipe, CustomPaginatorIntl, CustomTimePipe, CustomTranslatePipe, DataTableComponent, DropDownComponent, EditColumnCheckPipe, EditColumnDropdownPipe, EditColumnTypePipe, ErrorHandlerService, FileUploadComponent, FormsComponent, 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 };
|
|
9728
10025
|
|
|
9729
10026
|
//# sourceMappingURL=rangertechnologies-fusion-ui.mjs.map
|