@rangertechnologies/fusion-ui 0.1.16 → 0.2.2

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.
@@ -15,17 +15,16 @@ import { SelectionModel } from "@angular/cdk/collections";
15
15
  import { Modal, Popover } from "bootstrap";
16
16
  import * as i1$2 from "@angular/cdk/overlay";
17
17
  import { OverlayModule } from "@angular/cdk/overlay";
18
- import * as i10$1 from "@rangertechnologies/ngnxt";
19
- import { NxtAppModule, NxtButtonComponent, NxtFileUpload } from "@rangertechnologies/ngnxt";
20
18
  import * as i4$1 from "@angular/material/tooltip";
21
19
  import { MatTooltipModule } from "@angular/material/tooltip";
22
- import { saveAs } from "file-saver";
23
- import * as i1$1 from "@angular/router";
24
20
  import * as i9$1 from "@angular/material/table";
25
21
  import { MatTableDataSource, MatTableModule } from "@angular/material/table";
26
22
  import { MatPaginatorIntl, MatPaginatorModule } from "@angular/material/paginator";
27
23
  import * as i10 from "@angular/material/sort";
28
24
  import { MatSort, MatSortModule } from "@angular/material/sort";
25
+ import { saveAs } from "file-saver";
26
+ import * as i1$1 from "@angular/router";
27
+ import { debounceTime, distinctUntilChanged, takeUntil } from "rxjs/operators";
29
28
  import * as i1 from "@angular/platform-browser";
30
29
  import * as i2 from "@angular/material/form-field";
31
30
  import { MatFormFieldModule } from "@angular/material/form-field";
@@ -41,7 +40,6 @@ import * as i5 from "@angular/material/button";
41
40
  import { MatButtonModule } from "@angular/material/button";
42
41
  import * as i8 from "@angular/material/core";
43
42
  import { MatRippleModule } from "@angular/material/core";
44
- import { takeUntil } from "rxjs/operators";
45
43
  import * as numberToWords from "number-to-words";
46
44
  var CustomTranslatePipe = class CustomTranslatePipe {
47
45
  translate;
@@ -58,7 +56,7 @@ var CustomTranslatePipe = class CustomTranslatePipe {
58
56
  }
59
57
  static ɵfac = i0.ɵɵngDeclareFactory({
60
58
  minVersion: "12.0.0",
61
- version: "22.2.4",
59
+ version: "22.2.5",
62
60
  ngImport: i0,
63
61
  type: CustomTranslatePipe,
64
62
  deps: [{ token: i1$5.TranslateService }],
@@ -66,7 +64,7 @@ var CustomTranslatePipe = class CustomTranslatePipe {
66
64
  });
67
65
  static ɵpipe = i0.ɵɵngDeclarePipe({
68
66
  minVersion: "14.0.0",
69
- version: "22.2.4",
67
+ version: "22.2.5",
70
68
  ngImport: i0,
71
69
  type: CustomTranslatePipe,
72
70
  isStandalone: true,
@@ -75,7 +73,7 @@ var CustomTranslatePipe = class CustomTranslatePipe {
75
73
  };
76
74
  i0.ɵɵngDeclareClassMetadata({
77
75
  minVersion: "12.0.0",
78
- version: "22.2.4",
76
+ version: "22.2.5",
79
77
  ngImport: i0,
80
78
  type: CustomTranslatePipe,
81
79
  decorators: [{
@@ -149,7 +147,7 @@ var FusionButtonComponent = class FusionButtonComponent {
149
147
  }
150
148
  static ɵfac = i0.ɵɵngDeclareFactory({
151
149
  minVersion: "12.0.0",
152
- version: "22.2.4",
150
+ version: "22.2.5",
153
151
  ngImport: i0,
154
152
  type: FusionButtonComponent,
155
153
  deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }],
@@ -157,7 +155,7 @@ var FusionButtonComponent = class FusionButtonComponent {
157
155
  });
158
156
  static ɵcmp = i0.ɵɵngDeclareComponent({
159
157
  minVersion: "14.0.0",
160
- version: "22.2.4",
158
+ version: "22.2.5",
161
159
  type: FusionButtonComponent,
162
160
  isStandalone: true,
163
161
  selector: "app-fusion-button",
@@ -242,7 +240,7 @@ var FusionButtonComponent = class FusionButtonComponent {
242
240
  };
243
241
  i0.ɵɵngDeclareClassMetadata({
244
242
  minVersion: "12.0.0",
245
- version: "22.2.4",
243
+ version: "22.2.5",
246
244
  ngImport: i0,
247
245
  type: FusionButtonComponent,
248
246
  decorators: [{
@@ -307,7 +305,7 @@ var SearchFilterPipe = class SearchFilterPipe {
307
305
  }
308
306
  static ɵfac = i0.ɵɵngDeclareFactory({
309
307
  minVersion: "12.0.0",
310
- version: "22.2.4",
308
+ version: "22.2.5",
311
309
  ngImport: i0,
312
310
  type: SearchFilterPipe,
313
311
  deps: [],
@@ -315,7 +313,7 @@ var SearchFilterPipe = class SearchFilterPipe {
315
313
  });
316
314
  static ɵpipe = i0.ɵɵngDeclarePipe({
317
315
  minVersion: "14.0.0",
318
- version: "22.2.4",
316
+ version: "22.2.5",
319
317
  ngImport: i0,
320
318
  type: SearchFilterPipe,
321
319
  isStandalone: true,
@@ -324,7 +322,7 @@ var SearchFilterPipe = class SearchFilterPipe {
324
322
  };
325
323
  i0.ɵɵngDeclareClassMetadata({
326
324
  minVersion: "12.0.0",
327
- version: "22.2.4",
325
+ version: "22.2.5",
328
326
  ngImport: i0,
329
327
  type: SearchFilterPipe,
330
328
  decorators: [{
@@ -418,7 +416,7 @@ var ConfigService = class ConfigService {
418
416
  }
419
417
  static ɵfac = i0.ɵɵngDeclareFactory({
420
418
  minVersion: "12.0.0",
421
- version: "22.2.4",
419
+ version: "22.2.5",
422
420
  ngImport: i0,
423
421
  type: ConfigService,
424
422
  deps: [{ token: i1$3.HttpClient }],
@@ -426,7 +424,7 @@ var ConfigService = class ConfigService {
426
424
  });
427
425
  static ɵprov = i0.ɵɵngDeclareInjectable({
428
426
  minVersion: "12.0.0",
429
- version: "22.2.4",
427
+ version: "22.2.5",
430
428
  ngImport: i0,
431
429
  type: ConfigService,
432
430
  providedIn: "root"
@@ -434,7 +432,7 @@ var ConfigService = class ConfigService {
434
432
  };
435
433
  i0.ɵɵngDeclareClassMetadata({
436
434
  minVersion: "12.0.0",
437
- version: "22.2.4",
435
+ version: "22.2.5",
438
436
  ngImport: i0,
439
437
  type: ConfigService,
440
438
  decorators: [{
@@ -527,7 +525,7 @@ var ApiService = class ApiService {
527
525
  }
528
526
  static ɵfac = i0.ɵɵngDeclareFactory({
529
527
  minVersion: "12.0.0",
530
- version: "22.2.4",
528
+ version: "22.2.5",
531
529
  ngImport: i0,
532
530
  type: ApiService,
533
531
  deps: [{ token: i1$3.HttpClient }, { token: ConfigService }],
@@ -535,7 +533,7 @@ var ApiService = class ApiService {
535
533
  });
536
534
  static ɵprov = i0.ɵɵngDeclareInjectable({
537
535
  minVersion: "12.0.0",
538
- version: "22.2.4",
536
+ version: "22.2.5",
539
537
  ngImport: i0,
540
538
  type: ApiService,
541
539
  providedIn: "root"
@@ -543,7 +541,7 @@ var ApiService = class ApiService {
543
541
  };
544
542
  i0.ɵɵngDeclareClassMetadata({
545
543
  minVersion: "12.0.0",
546
- version: "22.2.4",
544
+ version: "22.2.5",
547
545
  ngImport: i0,
548
546
  type: ApiService,
549
547
  decorators: [{
@@ -753,7 +751,7 @@ var GlobalValuesService = class GlobalValuesService {
753
751
  }
754
752
  static ɵfac = i0.ɵɵngDeclareFactory({
755
753
  minVersion: "12.0.0",
756
- version: "22.2.4",
754
+ version: "22.2.5",
757
755
  ngImport: i0,
758
756
  type: GlobalValuesService,
759
757
  deps: [{ token: ApiService }],
@@ -761,7 +759,7 @@ var GlobalValuesService = class GlobalValuesService {
761
759
  });
762
760
  static ɵprov = i0.ɵɵngDeclareInjectable({
763
761
  minVersion: "12.0.0",
764
- version: "22.2.4",
762
+ version: "22.2.5",
765
763
  ngImport: i0,
766
764
  type: GlobalValuesService,
767
765
  providedIn: "root"
@@ -769,7 +767,7 @@ var GlobalValuesService = class GlobalValuesService {
769
767
  };
770
768
  i0.ɵɵngDeclareClassMetadata({
771
769
  minVersion: "12.0.0",
772
- version: "22.2.4",
770
+ version: "22.2.5",
773
771
  ngImport: i0,
774
772
  type: GlobalValuesService,
775
773
  decorators: [{
@@ -840,7 +838,7 @@ var SearchFilterComponent = class SearchFilterComponent {
840
838
  }
841
839
  static ɵfac = i0.ɵɵngDeclareFactory({
842
840
  minVersion: "12.0.0",
843
- version: "22.2.4",
841
+ version: "22.2.5",
844
842
  ngImport: i0,
845
843
  type: SearchFilterComponent,
846
844
  deps: [{ token: GlobalValuesService }],
@@ -848,7 +846,7 @@ var SearchFilterComponent = class SearchFilterComponent {
848
846
  });
849
847
  static ɵcmp = i0.ɵɵngDeclareComponent({
850
848
  minVersion: "14.0.0",
851
- version: "22.2.4",
849
+ version: "22.2.5",
852
850
  type: SearchFilterComponent,
853
851
  isStandalone: true,
854
852
  selector: "app-search-filter",
@@ -928,7 +926,7 @@ var SearchFilterComponent = class SearchFilterComponent {
928
926
  };
929
927
  i0.ɵɵngDeclareClassMetadata({
930
928
  minVersion: "12.0.0",
931
- version: "22.2.4",
929
+ version: "22.2.5",
932
930
  ngImport: i0,
933
931
  type: SearchFilterComponent,
934
932
  decorators: [{
@@ -1049,7 +1047,7 @@ var MultiCheckboxComponent = class MultiCheckboxComponent {
1049
1047
  }
1050
1048
  static ɵfac = i0.ɵɵngDeclareFactory({
1051
1049
  minVersion: "12.0.0",
1052
- version: "22.2.4",
1050
+ version: "22.2.5",
1053
1051
  ngImport: i0,
1054
1052
  type: MultiCheckboxComponent,
1055
1053
  deps: [{ token: GlobalValuesService }, { token: i0.ChangeDetectorRef }],
@@ -1057,7 +1055,7 @@ var MultiCheckboxComponent = class MultiCheckboxComponent {
1057
1055
  });
1058
1056
  static ɵcmp = i0.ɵɵngDeclareComponent({
1059
1057
  minVersion: "14.0.0",
1060
- version: "22.2.4",
1058
+ version: "22.2.5",
1061
1059
  type: MultiCheckboxComponent,
1062
1060
  isStandalone: true,
1063
1061
  selector: "app-multi-checkbox",
@@ -1219,7 +1217,7 @@ var MultiCheckboxComponent = class MultiCheckboxComponent {
1219
1217
  };
1220
1218
  i0.ɵɵngDeclareClassMetadata({
1221
1219
  minVersion: "12.0.0",
1222
- version: "22.2.4",
1220
+ version: "22.2.5",
1223
1221
  ngImport: i0,
1224
1222
  type: MultiCheckboxComponent,
1225
1223
  decorators: [{
@@ -1386,7 +1384,7 @@ var DropDownComponent = class DropDownComponent {
1386
1384
  }
1387
1385
  static ɵfac = i0.ɵɵngDeclareFactory({
1388
1386
  minVersion: "12.0.0",
1389
- version: "22.2.4",
1387
+ version: "22.2.5",
1390
1388
  ngImport: i0,
1391
1389
  type: DropDownComponent,
1392
1390
  deps: [{ token: i0.ElementRef }],
@@ -1394,7 +1392,7 @@ var DropDownComponent = class DropDownComponent {
1394
1392
  });
1395
1393
  static ɵcmp = i0.ɵɵngDeclareComponent({
1396
1394
  minVersion: "17.0.0",
1397
- version: "22.2.4",
1395
+ version: "22.2.5",
1398
1396
  type: DropDownComponent,
1399
1397
  isStandalone: true,
1400
1398
  selector: "app-drop-down",
@@ -1503,7 +1501,7 @@ var DropDownComponent = class DropDownComponent {
1503
1501
  };
1504
1502
  i0.ɵɵngDeclareClassMetadata({
1505
1503
  minVersion: "12.0.0",
1506
- version: "22.2.4",
1504
+ version: "22.2.5",
1507
1505
  ngImport: i0,
1508
1506
  type: DropDownComponent,
1509
1507
  decorators: [{
@@ -1616,7 +1614,7 @@ var MultipleFilterComponent = class MultipleFilterComponent {
1616
1614
  }
1617
1615
  static ɵfac = i0.ɵɵngDeclareFactory({
1618
1616
  minVersion: "12.0.0",
1619
- version: "22.2.4",
1617
+ version: "22.2.5",
1620
1618
  ngImport: i0,
1621
1619
  type: MultipleFilterComponent,
1622
1620
  deps: [{ token: i0.ChangeDetectorRef }],
@@ -1624,7 +1622,7 @@ var MultipleFilterComponent = class MultipleFilterComponent {
1624
1622
  });
1625
1623
  static ɵcmp = i0.ɵɵngDeclareComponent({
1626
1624
  minVersion: "14.0.0",
1627
- version: "22.2.4",
1625
+ version: "22.2.5",
1628
1626
  type: MultipleFilterComponent,
1629
1627
  isStandalone: true,
1630
1628
  selector: "app-multiple-filter",
@@ -1788,7 +1786,7 @@ var MultipleFilterComponent = class MultipleFilterComponent {
1788
1786
  };
1789
1787
  i0.ɵɵngDeclareClassMetadata({
1790
1788
  minVersion: "12.0.0",
1791
- version: "22.2.4",
1789
+ version: "22.2.5",
1792
1790
  ngImport: i0,
1793
1791
  type: MultipleFilterComponent,
1794
1792
  decorators: [{
@@ -1906,7 +1904,7 @@ var PaginationComponent = class PaginationComponent {
1906
1904
  }
1907
1905
  static ɵfac = i0.ɵɵngDeclareFactory({
1908
1906
  minVersion: "12.0.0",
1909
- version: "22.2.4",
1907
+ version: "22.2.5",
1910
1908
  ngImport: i0,
1911
1909
  type: PaginationComponent,
1912
1910
  deps: [],
@@ -1914,7 +1912,7 @@ var PaginationComponent = class PaginationComponent {
1914
1912
  });
1915
1913
  static ɵcmp = i0.ɵɵngDeclareComponent({
1916
1914
  minVersion: "14.0.0",
1917
- version: "22.2.4",
1915
+ version: "22.2.5",
1918
1916
  type: PaginationComponent,
1919
1917
  isStandalone: true,
1920
1918
  selector: "app-pagination",
@@ -2008,7 +2006,7 @@ var PaginationComponent = class PaginationComponent {
2008
2006
  };
2009
2007
  i0.ɵɵngDeclareClassMetadata({
2010
2008
  minVersion: "12.0.0",
2011
- version: "22.2.4",
2009
+ version: "22.2.5",
2012
2010
  ngImport: i0,
2013
2011
  type: PaginationComponent,
2014
2012
  decorators: [{
@@ -2093,7 +2091,7 @@ var PopoverComponent = class PopoverComponent {
2093
2091
  }
2094
2092
  static ɵfac = i0.ɵɵngDeclareFactory({
2095
2093
  minVersion: "12.0.0",
2096
- version: "22.2.4",
2094
+ version: "22.2.5",
2097
2095
  ngImport: i0,
2098
2096
  type: PopoverComponent,
2099
2097
  deps: [{ token: i1$2.Overlay }, { token: i0.ChangeDetectorRef }],
@@ -2101,7 +2099,7 @@ var PopoverComponent = class PopoverComponent {
2101
2099
  });
2102
2100
  static ɵcmp = i0.ɵɵngDeclareComponent({
2103
2101
  minVersion: "14.0.0",
2104
- version: "22.2.4",
2102
+ version: "22.2.5",
2105
2103
  type: PopoverComponent,
2106
2104
  isStandalone: true,
2107
2105
  selector: "app-popover",
@@ -2199,7 +2197,7 @@ var PopoverComponent = class PopoverComponent {
2199
2197
  };
2200
2198
  i0.ɵɵngDeclareClassMetadata({
2201
2199
  minVersion: "12.0.0",
2202
- version: "22.2.4",
2200
+ version: "22.2.5",
2203
2201
  ngImport: i0,
2204
2202
  type: PopoverComponent,
2205
2203
  decorators: [{
@@ -2262,7 +2260,7 @@ var ModalComponent = class ModalComponent {
2262
2260
  }
2263
2261
  static ɵfac = i0.ɵɵngDeclareFactory({
2264
2262
  minVersion: "12.0.0",
2265
- version: "22.2.4",
2263
+ version: "22.2.5",
2266
2264
  ngImport: i0,
2267
2265
  type: ModalComponent,
2268
2266
  deps: [],
@@ -2270,7 +2268,7 @@ var ModalComponent = class ModalComponent {
2270
2268
  });
2271
2269
  static ɵcmp = i0.ɵɵngDeclareComponent({
2272
2270
  minVersion: "14.0.0",
2273
- version: "22.2.4",
2271
+ version: "22.2.5",
2274
2272
  type: ModalComponent,
2275
2273
  isStandalone: true,
2276
2274
  selector: "app-modal",
@@ -2358,7 +2356,7 @@ var ModalComponent = class ModalComponent {
2358
2356
  };
2359
2357
  i0.ɵɵngDeclareClassMetadata({
2360
2358
  minVersion: "12.0.0",
2361
- version: "22.2.4",
2359
+ version: "22.2.5",
2362
2360
  ngImport: i0,
2363
2361
  type: ModalComponent,
2364
2362
  decorators: [{
@@ -2417,16 +2415,75 @@ var FileUploadComponent = class FileUploadComponent {
2417
2415
  bodyRadioConfig;
2418
2416
  templateContent = null;
2419
2417
  allowedFileTypes = [];
2418
+ isDragOver = false;
2419
+ validationErrors = [];
2420
2420
  constructor() {}
2421
2421
  ngOnInit() {
2422
+ this.syncAllowedFileTypes();
2423
+ }
2424
+ ngOnChanges(changes) {
2425
+ if (changes["fileRestrictions"]) this.syncAllowedFileTypes();
2426
+ }
2427
+ syncAllowedFileTypes() {
2422
2428
  this.allowedFileTypes = (this.fileRestrictions?.allowedTypes || []).map((ext) => ext.toLowerCase().startsWith(".") ? ext.toLowerCase() : "." + ext.toLowerCase());
2423
2429
  }
2430
+ onDragOver(event) {
2431
+ event.preventDefault();
2432
+ event.stopPropagation();
2433
+ this.isDragOver = true;
2434
+ }
2435
+ onDragLeave(event) {
2436
+ event.preventDefault();
2437
+ event.stopPropagation();
2438
+ this.isDragOver = false;
2439
+ }
2440
+ onDrop(event) {
2441
+ event.preventDefault();
2442
+ event.stopPropagation();
2443
+ this.isDragOver = false;
2444
+ const files = event.dataTransfer?.files ? Array.from(event.dataTransfer.files) : [];
2445
+ if (files.length > 0) this.processNativeFiles(files);
2446
+ }
2447
+ onNativeFileInputChange(event) {
2448
+ const input = event.target;
2449
+ const files = input?.files ? Array.from(input.files) : [];
2450
+ if (files.length > 0) this.processNativeFiles(files);
2451
+ if (input) input.value = "";
2452
+ }
2453
+ processNativeFiles(incomingFiles) {
2454
+ this.validationErrors = [];
2455
+ const maxSizeBytes = this.fileRestrictions?.maxFileSize || this.fileRestrictions?.maxSize || 0;
2456
+ const maxFiles = this.fileRestrictions?.maxFiles || 0;
2457
+ const accepted = [];
2458
+ for (const file of incomingFiles) {
2459
+ if (this.allowedFileTypes.length > 0) {
2460
+ const lowerName = file.name.toLowerCase();
2461
+ if (!this.allowedFileTypes.some((ext) => lowerName.endsWith(ext))) {
2462
+ this.validationErrors.push(`${file.name}: unsupported file type`);
2463
+ continue;
2464
+ }
2465
+ }
2466
+ if (maxSizeBytes > 0 && file.size > maxSizeBytes) {
2467
+ this.validationErrors.push(`${file.name}: exceeds maximum allowed size`);
2468
+ continue;
2469
+ }
2470
+ accepted.push(file);
2471
+ }
2472
+ if (accepted.length === 0) return;
2473
+ const existing = Array.isArray(this.uploadedFiles) ? [...this.uploadedFiles] : [];
2474
+ let combined = maxFiles === 1 ? [accepted[0]] : [...existing, ...accepted];
2475
+ if (maxFiles > 1 && combined.length > maxFiles) {
2476
+ this.validationErrors.push(`Maximum ${maxFiles} files allowed`);
2477
+ combined = combined.slice(0, maxFiles);
2478
+ }
2479
+ this.onFileSelected({ value: { valueObj: combined } });
2480
+ }
2424
2481
  deleteFile(removedFile) {
2425
2482
  this.uploadedFiles = this.uploadedFiles.filter((file) => file.name !== removedFile?.name || file.size !== removedFile?.size);
2426
2483
  this.fileDeleted.emit(this.uploadedFiles);
2427
2484
  }
2428
2485
  onFileSelected(event) {
2429
- this.uploadedFiles = event?.value?.valueObj || this.uploadedFiles;
2486
+ this.uploadedFiles = event?.value?.valueObj || (Array.isArray(event) ? event : this.uploadedFiles);
2430
2487
  this.fileSelected.emit(this.uploadedFiles);
2431
2488
  }
2432
2489
  uploadFile() {
@@ -2443,7 +2500,7 @@ var FileUploadComponent = class FileUploadComponent {
2443
2500
  }
2444
2501
  static ɵfac = i0.ɵɵngDeclareFactory({
2445
2502
  minVersion: "12.0.0",
2446
- version: "22.2.4",
2503
+ version: "22.2.5",
2447
2504
  ngImport: i0,
2448
2505
  type: FileUploadComponent,
2449
2506
  deps: [],
@@ -2451,7 +2508,7 @@ var FileUploadComponent = class FileUploadComponent {
2451
2508
  });
2452
2509
  static ɵcmp = i0.ɵɵngDeclareComponent({
2453
2510
  minVersion: "17.0.0",
2454
- version: "22.2.4",
2511
+ version: "22.2.5",
2455
2512
  type: FileUploadComponent,
2456
2513
  isStandalone: true,
2457
2514
  selector: "app-file-upload",
@@ -2479,9 +2536,10 @@ var FileUploadComponent = class FileUploadComponent {
2479
2536
  upload: "upload",
2480
2537
  radioSelectEmit: "radioSelectEmit"
2481
2538
  },
2539
+ usesOnChanges: true,
2482
2540
  ngImport: i0,
2483
- 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>",
2484
- 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"],
2541
+ 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\" type=\"button\" (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\n <!-- MR 21NOV26 Native Fusion UI drag-and-drop file upload zone replacing nxt-file-upload -->\n <div class=\"drag-drop-files\"\n [class.drag-over]=\"isDragOver\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n (click)=\"fileInput.click()\">\n <input #fileInput\n type=\"file\"\n [attr.accept]=\"allowedFileTypes.length > 0 ? allowedFileTypes.join(',') : null\"\n [multiple]=\"fileRestrictions?.maxFiles !== 1\"\n (change)=\"onNativeFileInputChange($event)\" />\n <div class=\"drag-drop-content\">\n <div class=\"drag-drop-header\">\n {{ 'APP_HRM_EMPLOYEES_EMPLOYEES.DRAG_AND_DROP' | customTranslate : 'Drag & drop files here' }}\n </div>\n <div class=\"or-break\">or</div>\n <span class=\"step-link browse-trigger\">\n {{ 'APP_HRM_EMPLOYEES_EMPLOYEES.BROWSE_FILES' | customTranslate : 'Browse files' }}\n </span>\n </div>\n </div>\n\n @if(validationErrors.length > 0) {\n <div class=\"file-validation-errors\">\n @for(err of validationErrors; track err) {\n <div class=\"file-validation-error\">{{ err }}</div>\n }\n </div>\n }\n\n @if(uploadedFiles && uploadedFiles.length > 0) {\n <div class=\"file-list\">\n @for(file of uploadedFiles; track file.name + '_' + file.size) {\n <div class=\"file-list-item\">\n <span class=\"file-name\">{{ file.name }}</span>\n <button type=\"button\" class=\"file-remove-btn\" (click)=\"deleteFile(file)\" aria-label=\"Remove file\">&times;</button>\n </div>\n }\n </div>\n }\n\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 <!-- MR 21NOV26 Replace nxt-button with native app-fusion-button -->\n <div class=\"file-modal-footer\">\n <app-fusion-button class=\"data-table-fsbtn\"\n (buttonClickEmit)=\"uploadFile()\"\n [buttonType]=\"'primary'\"\n [fcBtnTextColor]=\"'var(--fb-text-on-action, #ffffff)'\"\n [buttonDisable]=\"isLoading\"\n [buttonLoadingSpinner]=\"isLoading\"\n [buttonValue]=\"'APP_HRM_EMPLOYEES_EMPLOYEES.SAVE' | customTranslate :'Save'\">\n </app-fusion-button>\n <app-fusion-button\n (buttonClickEmit)=\"close()\"\n [buttonType]=\"'secondary'\"\n [fcBtnBgColor]=\"'var(--comp-bg-color)'\"\n [fcBtnTextColor]=\"'var(--fc-primary-color)'\"\n [fcBtnBorder]=\"'1px solid var(--border-color)'\"\n [buttonValue]=\"'APP_HRM_EMPLOYEES_EMPLOYEES.CANCEL' | customTranslate :'Cancel'\">\n </app-fusion-button>\n </div>\n </div>\n</div>\n",
2542
+ 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}.drag-drop-files.drag-over{border-color:var(--fc-primary-color, #0140c1);background:var(--fb-surface-hover, #f8fafc)}.drag-drop-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center}.browse-trigger{font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500)}.file-list{margin:10px 0;display:flex;flex-direction:column;gap:6px;max-height:150px;overflow-y:auto}.file-list-item{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:6px;background:var(--comp-bg-color, #ffffff)}.file-remove-btn{background:transparent;border:none;color:var(--fb-text-secondary, #64748b);font-size:18px;line-height:1;cursor:pointer;padding:0 4px}.file-remove-btn:hover{color:var(--fb-danger-text, #dc2626)}.file-validation-errors{margin-top:8px;display:flex;flex-direction:column;gap:4px}.file-validation-error{font-size:12px;color:var(--fb-danger-text, #dc2626)}\n"],
2485
2543
  dependencies: [
2486
2544
  {
2487
2545
  kind: "ngmodule",
@@ -2509,55 +2567,31 @@ var FileUploadComponent = class FileUploadComponent {
2509
2567
  },
2510
2568
  {
2511
2569
  kind: "component",
2512
- type: NxtFileUpload,
2513
- selector: "nxt-file-upload",
2514
- inputs: [
2515
- "allFiles",
2516
- "mode",
2517
- "config",
2518
- "from",
2519
- "dragAndDrop",
2520
- "readOnly",
2521
- "onlyView",
2522
- "required",
2523
- "hideSubtext",
2524
- "label",
2525
- "fileConfig"
2526
- ],
2527
- outputs: ["selectedFileData", "deletedFileData"]
2528
- },
2529
- {
2530
- kind: "component",
2531
- type: NxtButtonComponent,
2532
- selector: "nxt-button",
2570
+ type: FusionButtonComponent,
2571
+ selector: "app-fusion-button",
2533
2572
  inputs: [
2534
2573
  "buttonValue",
2574
+ "buttonValuePath",
2535
2575
  "buttonType",
2536
2576
  "type",
2537
2577
  "buttonDisable",
2538
- "btnBgColor",
2539
- "btnBorder",
2540
- "btnBorderRadius",
2541
- "btnBorderColor",
2542
- "btnTextColor",
2543
- "btnHeight",
2544
- "btnWidth",
2545
- "btnIconLeftSrc",
2546
- "btnIconRightSrc",
2547
- "btnHoverBgColor",
2548
- "btnHoverTextColor",
2549
- "btnId",
2578
+ "fcBtnBgColor",
2579
+ "fcBtnBorder",
2580
+ "fcBtnTextColor",
2581
+ "fcBtnHeight",
2582
+ "fcBtnWidth",
2583
+ "fcBtnIconLeftSrc",
2584
+ "fcBtnIconRightSrc",
2585
+ "fcBtnHoverBgColor",
2586
+ "fcBtnHoverTextColor",
2587
+ "fcBtnId",
2550
2588
  "dataDismiss",
2589
+ "fcButtonBorder",
2551
2590
  "modalToTrigger",
2552
2591
  "isImageSvg",
2553
2592
  "tabIndex",
2554
2593
  "buttonConfig",
2555
- "mode",
2556
- "languageCode",
2557
- "padding",
2558
- "isLoading",
2559
- "selector",
2560
- "dropdownLoadingButton"
2594
+ "buttonLoadingSpinner"
2561
2595
  ],
2562
2596
  outputs: ["buttonClickEmit"]
2563
2597
  },
@@ -2571,7 +2605,7 @@ var FileUploadComponent = class FileUploadComponent {
2571
2605
  };
2572
2606
  i0.ɵɵngDeclareClassMetadata({
2573
2607
  minVersion: "12.0.0",
2574
- version: "22.2.4",
2608
+ version: "22.2.5",
2575
2609
  ngImport: i0,
2576
2610
  type: FileUploadComponent,
2577
2611
  decorators: [{
@@ -2582,11 +2616,10 @@ i0.ɵɵngDeclareClassMetadata({
2582
2616
  imports: [
2583
2617
  CommonModule,
2584
2618
  CustomTranslatePipe,
2585
- NxtFileUpload,
2586
- NxtButtonComponent
2619
+ FusionButtonComponent
2587
2620
  ],
2588
- 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>",
2589
- 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"]
2621
+ 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\" type=\"button\" (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\n <!-- MR 21NOV26 Native Fusion UI drag-and-drop file upload zone replacing nxt-file-upload -->\n <div class=\"drag-drop-files\"\n [class.drag-over]=\"isDragOver\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n (click)=\"fileInput.click()\">\n <input #fileInput\n type=\"file\"\n [attr.accept]=\"allowedFileTypes.length > 0 ? allowedFileTypes.join(',') : null\"\n [multiple]=\"fileRestrictions?.maxFiles !== 1\"\n (change)=\"onNativeFileInputChange($event)\" />\n <div class=\"drag-drop-content\">\n <div class=\"drag-drop-header\">\n {{ 'APP_HRM_EMPLOYEES_EMPLOYEES.DRAG_AND_DROP' | customTranslate : 'Drag & drop files here' }}\n </div>\n <div class=\"or-break\">or</div>\n <span class=\"step-link browse-trigger\">\n {{ 'APP_HRM_EMPLOYEES_EMPLOYEES.BROWSE_FILES' | customTranslate : 'Browse files' }}\n </span>\n </div>\n </div>\n\n @if(validationErrors.length > 0) {\n <div class=\"file-validation-errors\">\n @for(err of validationErrors; track err) {\n <div class=\"file-validation-error\">{{ err }}</div>\n }\n </div>\n }\n\n @if(uploadedFiles && uploadedFiles.length > 0) {\n <div class=\"file-list\">\n @for(file of uploadedFiles; track file.name + '_' + file.size) {\n <div class=\"file-list-item\">\n <span class=\"file-name\">{{ file.name }}</span>\n <button type=\"button\" class=\"file-remove-btn\" (click)=\"deleteFile(file)\" aria-label=\"Remove file\">&times;</button>\n </div>\n }\n </div>\n }\n\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 <!-- MR 21NOV26 Replace nxt-button with native app-fusion-button -->\n <div class=\"file-modal-footer\">\n <app-fusion-button class=\"data-table-fsbtn\"\n (buttonClickEmit)=\"uploadFile()\"\n [buttonType]=\"'primary'\"\n [fcBtnTextColor]=\"'var(--fb-text-on-action, #ffffff)'\"\n [buttonDisable]=\"isLoading\"\n [buttonLoadingSpinner]=\"isLoading\"\n [buttonValue]=\"'APP_HRM_EMPLOYEES_EMPLOYEES.SAVE' | customTranslate :'Save'\">\n </app-fusion-button>\n <app-fusion-button\n (buttonClickEmit)=\"close()\"\n [buttonType]=\"'secondary'\"\n [fcBtnBgColor]=\"'var(--comp-bg-color)'\"\n [fcBtnTextColor]=\"'var(--fc-primary-color)'\"\n [fcBtnBorder]=\"'1px solid var(--border-color)'\"\n [buttonValue]=\"'APP_HRM_EMPLOYEES_EMPLOYEES.CANCEL' | customTranslate :'Cancel'\">\n </app-fusion-button>\n </div>\n </div>\n</div>\n",
2622
+ 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}.drag-drop-files.drag-over{border-color:var(--fc-primary-color, #0140c1);background:var(--fb-surface-hover, #f8fafc)}.drag-drop-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center}.browse-trigger{font-size:var(--fs-normal, 14px);font-weight:var(--fw-500, 500)}.file-list{margin:10px 0;display:flex;flex-direction:column;gap:6px;max-height:150px;overflow-y:auto}.file-list-item{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:6px;background:var(--comp-bg-color, #ffffff)}.file-remove-btn{background:transparent;border:none;color:var(--fb-text-secondary, #64748b);font-size:18px;line-height:1;cursor:pointer;padding:0 4px}.file-remove-btn:hover{color:var(--fb-danger-text, #dc2626)}.file-validation-errors{margin-top:8px;display:flex;flex-direction:column;gap:4px}.file-validation-error{font-size:12px;color:var(--fb-danger-text, #dc2626)}\n"]
2590
2623
  }]
2591
2624
  }],
2592
2625
  ctorParameters: () => [],
@@ -3312,7 +3345,7 @@ var SideScreenComponent = class SideScreenComponent {
3312
3345
  }
3313
3346
  static ɵfac = i0.ɵɵngDeclareFactory({
3314
3347
  minVersion: "12.0.0",
3315
- version: "22.2.4",
3348
+ version: "22.2.5",
3316
3349
  ngImport: i0,
3317
3350
  type: SideScreenComponent,
3318
3351
  deps: [{ token: i3$2.FormBuilder }],
@@ -3320,7 +3353,7 @@ var SideScreenComponent = class SideScreenComponent {
3320
3353
  });
3321
3354
  static ɵcmp = i0.ɵɵngDeclareComponent({
3322
3355
  minVersion: "14.0.0",
3323
- version: "22.2.4",
3356
+ version: "22.2.5",
3324
3357
  type: SideScreenComponent,
3325
3358
  isStandalone: true,
3326
3359
  selector: "app-side-screen",
@@ -3546,7 +3579,7 @@ var SideScreenComponent = class SideScreenComponent {
3546
3579
  };
3547
3580
  i0.ɵɵngDeclareClassMetadata({
3548
3581
  minVersion: "12.0.0",
3549
- version: "22.2.4",
3582
+ version: "22.2.5",
3550
3583
  ngImport: i0,
3551
3584
  type: SideScreenComponent,
3552
3585
  decorators: [{
@@ -3585,7 +3618,7 @@ var CommonScreenComponent = class CommonScreenComponent {
3585
3618
  ngOnInit() {}
3586
3619
  static ɵfac = i0.ɵɵngDeclareFactory({
3587
3620
  minVersion: "12.0.0",
3588
- version: "22.2.4",
3621
+ version: "22.2.5",
3589
3622
  ngImport: i0,
3590
3623
  type: CommonScreenComponent,
3591
3624
  deps: [],
@@ -3593,7 +3626,7 @@ var CommonScreenComponent = class CommonScreenComponent {
3593
3626
  });
3594
3627
  static ɵcmp = i0.ɵɵngDeclareComponent({
3595
3628
  minVersion: "14.0.0",
3596
- version: "22.2.4",
3629
+ version: "22.2.5",
3597
3630
  type: CommonScreenComponent,
3598
3631
  isStandalone: true,
3599
3632
  selector: "app-common-screen",
@@ -3616,7 +3649,7 @@ var CommonScreenComponent = class CommonScreenComponent {
3616
3649
  };
3617
3650
  i0.ɵɵngDeclareClassMetadata({
3618
3651
  minVersion: "12.0.0",
3619
- version: "22.2.4",
3652
+ version: "22.2.5",
3620
3653
  ngImport: i0,
3621
3654
  type: CommonScreenComponent,
3622
3655
  decorators: [{
@@ -3649,7 +3682,7 @@ var ApprovalScreenComponent = class ApprovalScreenComponent {
3649
3682
  }
3650
3683
  static ɵfac = i0.ɵɵngDeclareFactory({
3651
3684
  minVersion: "12.0.0",
3652
- version: "22.2.4",
3685
+ version: "22.2.5",
3653
3686
  ngImport: i0,
3654
3687
  type: ApprovalScreenComponent,
3655
3688
  deps: [{
@@ -3660,7 +3693,7 @@ var ApprovalScreenComponent = class ApprovalScreenComponent {
3660
3693
  });
3661
3694
  static ɵcmp = i0.ɵɵngDeclareComponent({
3662
3695
  minVersion: "14.0.0",
3663
- version: "22.2.4",
3696
+ version: "22.2.5",
3664
3697
  type: ApprovalScreenComponent,
3665
3698
  isStandalone: true,
3666
3699
  selector: "app-approval-screen",
@@ -3726,7 +3759,7 @@ var ApprovalScreenComponent = class ApprovalScreenComponent {
3726
3759
  };
3727
3760
  i0.ɵɵngDeclareClassMetadata({
3728
3761
  minVersion: "12.0.0",
3729
- version: "22.2.4",
3762
+ version: "22.2.5",
3730
3763
  ngImport: i0,
3731
3764
  type: ApprovalScreenComponent,
3732
3765
  decorators: [{
@@ -3754,2149 +3787,689 @@ i0.ɵɵngDeclareClassMetadata({
3754
3787
  approve: [{ type: Output }]
3755
3788
  }
3756
3789
  });
3757
- var BrowseComponent = class BrowseComponent {
3758
- selectedEmployee;
3759
- employeeFinanceInfo;
3760
- employeeLeaves;
3761
- employeeExpenses;
3762
- nxtJSON;
3763
- bookValue;
3764
- languageCode;
3765
- bookletId;
3766
- dataPatchProperties;
3767
- nxtEdit = false;
3768
- staticComp = false;
3769
- nxtFormBuilder = false;
3770
- type = "";
3771
- broadcast = false;
3772
- isPDFPreview = false;
3773
- dashboardBuilder;
3774
- allData;
3775
- isLoading;
3776
- componentJson;
3777
- modalProperties;
3778
- buttons;
3779
- nxtFormHandlerEmit = new EventEmitter();
3780
- formEditEvent = new EventEmitter();
3781
- nxtButtonHandlerEmit = new EventEmitter();
3782
- handleCalendarDateEmit = new EventEmitter();
3783
- handleCalendarEventDateEmit = new EventEmitter();
3784
- ngOnInit() {}
3790
+ var GetValuePipe = class GetValuePipe {
3791
+ transform(arg, element, column) {
3792
+ const initialEl = element;
3793
+ let flds = column?.split(".");
3794
+ for (let i = 0; i < flds?.length; i++) {
3795
+ let splitFlds = flds[i].split("[");
3796
+ if (splitFlds.length === 1) {
3797
+ if (element != null && element != void 0) {
3798
+ if (typeof element[flds[i]] === "number") element = element[flds[i]] || 0;
3799
+ else if (typeof element[flds[i]] === "boolean") element = element[flds[i]];
3800
+ else {
3801
+ let value = element[flds[i]] || "";
3802
+ if (typeof value === "string" && this.looksLikeDate(value)) value = this.formatShortDate(value);
3803
+ element = value;
3804
+ }
3805
+ }
3806
+ } else {
3807
+ let index = Number(splitFlds[1].split("]")[0]);
3808
+ if (typeof element[flds[i]] === "number") element = element[splitFlds[0]][index] || 0;
3809
+ else if (typeof element[flds[i]] === "boolean") element = element[flds[i]];
3810
+ else element = element[splitFlds[0]][index] || "";
3811
+ }
3812
+ }
3813
+ if (element != null && element != void 0) Object.assign(initialEl, { [column]: element });
3814
+ if (element === null || element === void 0 || element === "") return "";
3815
+ return element;
3816
+ }
3817
+ looksLikeDate(value) {
3818
+ value = value.trim().replace(",", "");
3819
+ return /^[0-9]{1,2}\s+[A-Za-z]+\s+[0-9]{4}$/i.test(value) || /^[A-Za-z]+\s+[0-9]{1,2}\s+[0-9]{4}$/i.test(value) || /^[A-Za-z]+\s+[0-9]{4}$/i.test(value);
3820
+ }
3821
+ formatShortDate(value) {
3822
+ value = value.replace(",", "").replace(/\s+/g, " ").trim();
3823
+ const short = (m) => m.substring(0, 3).toLowerCase().replace(/^./, (c) => c.toUpperCase());
3824
+ let m = value.match(/^([0-9]{1,2})\s+([A-Za-z]+)\s+([0-9]{4})$/i);
3825
+ if (m) return `${m[1].padStart(2, "0")} ${short(m[2])} ${m[3]}`;
3826
+ m = value.match(/^([A-Za-z]+)\s+([0-9]{1,2})\s+([0-9]{4})$/i);
3827
+ if (m) return `${m[2].padStart(2, "0")} ${short(m[1])} ${m[3]}`;
3828
+ m = value.match(/^([A-Za-z]+)\s+([0-9]{4})$/i);
3829
+ if (m) return `${short(m[1])} ${m[2]}`;
3830
+ return value;
3831
+ }
3785
3832
  static ɵfac = i0.ɵɵngDeclareFactory({
3786
3833
  minVersion: "12.0.0",
3787
- version: "22.2.4",
3834
+ version: "22.2.5",
3788
3835
  ngImport: i0,
3789
- type: BrowseComponent,
3836
+ type: GetValuePipe,
3790
3837
  deps: [],
3791
- target: i0.ɵɵFactoryTarget.Component
3838
+ target: i0.ɵɵFactoryTarget.Pipe
3792
3839
  });
3793
- static ɵcmp = i0.ɵɵngDeclareComponent({
3840
+ static ɵpipe = i0.ɵɵngDeclarePipe({
3794
3841
  minVersion: "14.0.0",
3795
- version: "22.2.4",
3796
- type: BrowseComponent,
3797
- isStandalone: true,
3798
- selector: "app-browse",
3799
- inputs: {
3800
- selectedEmployee: "selectedEmployee",
3801
- employeeFinanceInfo: "employeeFinanceInfo",
3802
- employeeLeaves: "employeeLeaves",
3803
- employeeExpenses: "employeeExpenses",
3804
- nxtJSON: "nxtJSON",
3805
- bookValue: "bookValue",
3806
- languageCode: "languageCode",
3807
- bookletId: "bookletId",
3808
- dataPatchProperties: "dataPatchProperties",
3809
- nxtEdit: "nxtEdit",
3810
- staticComp: "staticComp",
3811
- nxtFormBuilder: "nxtFormBuilder",
3812
- type: "type",
3813
- broadcast: "broadcast",
3814
- isPDFPreview: "isPDFPreview",
3815
- dashboardBuilder: "dashboardBuilder",
3816
- allData: "allData",
3817
- isLoading: "isLoading",
3818
- componentJson: "componentJson",
3819
- modalProperties: "modalProperties",
3820
- buttons: "buttons"
3821
- },
3822
- outputs: {
3823
- nxtFormHandlerEmit: "nxtFormHandlerEmit",
3824
- formEditEvent: "formEditEvent",
3825
- nxtButtonHandlerEmit: "nxtButtonHandlerEmit",
3826
- handleCalendarDateEmit: "handleCalendarDateEmit",
3827
- handleCalendarEventDateEmit: "handleCalendarEventDateEmit"
3828
- },
3842
+ version: "22.2.5",
3829
3843
  ngImport: i0,
3830
- template: `<div class="mfe-browse-placeholder" *ngIf="false"></div>`,
3831
- isInline: true,
3832
- dependencies: [{
3833
- kind: "ngmodule",
3834
- type: CommonModule
3835
- }, {
3836
- kind: "directive",
3837
- type: i1$4.NgIf,
3838
- selector: "[ngIf]",
3839
- inputs: [
3840
- "ngIf",
3841
- "ngIfThen",
3842
- "ngIfElse"
3843
- ]
3844
- }]
3844
+ type: GetValuePipe,
3845
+ isStandalone: true,
3846
+ name: "getValue"
3845
3847
  });
3846
3848
  };
3847
3849
  i0.ɵɵngDeclareClassMetadata({
3848
3850
  minVersion: "12.0.0",
3849
- version: "22.2.4",
3851
+ version: "22.2.5",
3850
3852
  ngImport: i0,
3851
- type: BrowseComponent,
3853
+ type: GetValuePipe,
3852
3854
  decorators: [{
3853
- type: Component,
3855
+ type: Pipe,
3854
3856
  args: [{
3855
- selector: "app-browse",
3856
- standalone: true,
3857
- imports: [CommonModule],
3858
- template: `<div class="mfe-browse-placeholder" *ngIf="false"></div>`
3857
+ name: "getValue",
3858
+ standalone: true
3859
3859
  }]
3860
- }],
3861
- propDecorators: {
3862
- selectedEmployee: [{ type: Input }],
3863
- employeeFinanceInfo: [{ type: Input }],
3864
- employeeLeaves: [{ type: Input }],
3865
- employeeExpenses: [{ type: Input }],
3866
- nxtJSON: [{ type: Input }],
3867
- bookValue: [{ type: Input }],
3868
- languageCode: [{ type: Input }],
3869
- bookletId: [{ type: Input }],
3870
- dataPatchProperties: [{ type: Input }],
3871
- nxtEdit: [{ type: Input }],
3872
- staticComp: [{ type: Input }],
3873
- nxtFormBuilder: [{ type: Input }],
3874
- type: [{ type: Input }],
3875
- broadcast: [{ type: Input }],
3876
- isPDFPreview: [{ type: Input }],
3877
- dashboardBuilder: [{ type: Input }],
3878
- allData: [{ type: Input }],
3879
- isLoading: [{ type: Input }],
3880
- componentJson: [{ type: Input }],
3881
- modalProperties: [{ type: Input }],
3882
- buttons: [{ type: Input }],
3883
- nxtFormHandlerEmit: [{ type: Output }],
3884
- formEditEvent: [{ type: Output }],
3885
- nxtButtonHandlerEmit: [{ type: Output }],
3886
- handleCalendarDateEmit: [{ type: Output }],
3887
- handleCalendarEventDateEmit: [{ type: Output }]
3888
- }
3860
+ }]
3889
3861
  });
3890
- var LoaderService = class LoaderService {
3891
- loadingStates = {};
3892
- loadingSubject = new BehaviorSubject({});
3893
- loading = this.loadingSubject.asObservable();
3894
- nxtLoaderId = [];
3895
- emitState() {
3896
- const clonedState = Object.keys(this.loadingStates).reduce((acc, key) => {
3897
- acc[key] = [...this.loadingStates[key]];
3898
- return acc;
3899
- }, {});
3900
- this.loadingSubject.next(clonedState);
3901
- }
3902
- show(componentId, requestId) {
3903
- if (!this.loadingStates[componentId]) this.loadingStates[componentId] = [];
3904
- this.loadingStates[componentId] = [...this.loadingStates[componentId], requestId];
3905
- this.emitState();
3906
- }
3907
- hide(componentId, requestId) {
3908
- if (this.loadingStates[componentId]) {
3909
- const index = this.loadingStates[componentId].indexOf(requestId);
3910
- if (index !== -1) this.loadingStates[componentId] = [...this.loadingStates[componentId].slice(0, index), ...this.loadingStates[componentId].slice(index + 1)];
3911
- if (this.loadingStates[componentId].length === 0) delete this.loadingStates[componentId];
3912
- this.emitState();
3862
+ var EditColumnCheckPipe = class EditColumnCheckPipe {
3863
+ transform(arg, element, editCol) {
3864
+ var returnVal = "";
3865
+ if (editCol.length > 0) {
3866
+ if (typeof editCol[0] === "string") {
3867
+ if (editCol.includes(element)) returnVal = "string";
3868
+ } else if (typeof editCol[0] === "object") returnVal = editCol.filter((col) => col.name === element).length > 0 ? "object" : "";
3913
3869
  }
3914
- }
3915
- nxtLoader(id) {
3916
- if (this.nxtLoaderId.includes(id)) return;
3917
- this.nxtLoaderId.push(id);
3918
- }
3919
- getNxtLoader() {
3920
- return this.nxtLoaderId;
3921
- }
3922
- isLoading(componentId) {
3923
- return !!this.loadingStates[componentId]?.length;
3870
+ return returnVal;
3924
3871
  }
3925
3872
  static ɵfac = i0.ɵɵngDeclareFactory({
3926
3873
  minVersion: "12.0.0",
3927
- version: "22.2.4",
3874
+ version: "22.2.5",
3928
3875
  ngImport: i0,
3929
- type: LoaderService,
3876
+ type: EditColumnCheckPipe,
3930
3877
  deps: [],
3931
- target: i0.ɵɵFactoryTarget.Injectable
3878
+ target: i0.ɵɵFactoryTarget.Pipe
3932
3879
  });
3933
- static ɵprov = i0.ɵɵngDeclareInjectable({
3934
- minVersion: "12.0.0",
3935
- version: "22.2.4",
3880
+ static ɵpipe = i0.ɵɵngDeclarePipe({
3881
+ minVersion: "14.0.0",
3882
+ version: "22.2.5",
3936
3883
  ngImport: i0,
3937
- type: LoaderService,
3938
- providedIn: "root"
3884
+ type: EditColumnCheckPipe,
3885
+ isStandalone: true,
3886
+ name: "editColumnCheck"
3939
3887
  });
3940
3888
  };
3941
3889
  i0.ɵɵngDeclareClassMetadata({
3942
3890
  minVersion: "12.0.0",
3943
- version: "22.2.4",
3891
+ version: "22.2.5",
3944
3892
  ngImport: i0,
3945
- type: LoaderService,
3893
+ type: EditColumnCheckPipe,
3946
3894
  decorators: [{
3947
- type: Injectable,
3948
- args: [{ providedIn: "root" }]
3895
+ type: Pipe,
3896
+ args: [{
3897
+ name: "editColumnCheck",
3898
+ standalone: true
3899
+ }]
3949
3900
  }]
3950
3901
  });
3951
- var AlertService = class AlertService {
3952
- translate;
3953
- static instance = null;
3954
- constructor(translate) {
3955
- this.translate = translate;
3956
- AlertService.instance = this;
3957
- }
3958
- passType = new Subject();
3959
- passAlertType$ = this.passType.asObservable();
3960
- messageData;
3961
- messageOnPass(condition, message, keys, defaultMessage) {
3962
- let finalMessage = this.translateMessage(message, keys);
3963
- if (`RESPONSE_MESSAGE.${message}` === finalMessage || message === finalMessage) finalMessage = defaultMessage || message;
3964
- this.messageData = {
3965
- type: condition,
3966
- message: finalMessage
3967
- };
3968
- this.passType.next(this.messageData);
3969
- }
3970
- static messageOnPassStatic(condition, message, keys, defaultMessage) {
3971
- if (AlertService.instance) {
3972
- AlertService.instance.messageOnPass(condition, message, keys, defaultMessage);
3973
- return;
3974
- }
3975
- const fallbackMessage = defaultMessage || message || "Something went wrong";
3976
- window.alert(fallbackMessage);
3977
- }
3978
- messageOnFetch(condition, identifier, message, keys, defaultMessage) {
3979
- let finalMessage = this.translateMessage(message, keys);
3980
- if (`RESPONSE_MESSAGE.${message}` === finalMessage || message === finalMessage) finalMessage = defaultMessage || message;
3981
- this.messageData = {
3982
- type: condition,
3983
- fetchId: identifier,
3984
- message: finalMessage
3985
- };
3986
- this.passType.next(this.messageData);
3987
- }
3988
- translateMessage(message, keys) {
3989
- if (message === message.toUpperCase()) message = this.translate.instant(`RESPONSE_MESSAGE.${message}`);
3990
- const matches = [...message.matchAll(/\{\{(.*?)\}\}/g)].map((m) => m[1]);
3991
- let finalMessage = message;
3992
- if (matches.length > 0 && keys !== void 0) {
3993
- if (Array.isArray(keys)) matches.forEach((key, index) => {
3994
- const raw = keys[index] !== void 0 ? keys[index] : "";
3995
- const translated = this.translate.instant(`${key}.${raw}`);
3996
- const value = translated !== `${key}.${raw}` ? translated : raw;
3997
- const keyRegex = new RegExp(`\\{\\{${key}\\}\\}`, "g");
3998
- finalMessage = finalMessage.replace(keyRegex, value);
3999
- });
4000
- else if (typeof keys === "string") matches.forEach((key) => {
4001
- const translated = this.translate.instant(`${key}.${keys}`);
4002
- const value = translated !== `${key}.${keys}` ? translated : keys;
4003
- const keyRegex = new RegExp(`\\{\\{${key}\\}\\}`, "g");
4004
- finalMessage = finalMessage.replace(keyRegex, value);
4005
- });
4006
- else if (typeof keys === "object" && keys !== null) matches.forEach((key) => {
4007
- const raw = keys[key] !== void 0 ? keys[key] : "";
4008
- const translated = this.translate.instant(`${key}.${raw}`);
4009
- const value = translated !== `${key}.${raw}` ? translated : raw;
4010
- const keyRegex = new RegExp(`\\{\\{${key}\\}\\}`, "g");
4011
- finalMessage = finalMessage.replace(keyRegex, value);
4012
- });
4013
- }
4014
- return finalMessage;
3902
+ var EditColumnTypePipe = class EditColumnTypePipe {
3903
+ transform(arg, element, editCol) {
3904
+ return editCol.filter((col) => col.name === element)[0].type;
4015
3905
  }
4016
3906
  static ɵfac = i0.ɵɵngDeclareFactory({
4017
3907
  minVersion: "12.0.0",
4018
- version: "22.2.4",
3908
+ version: "22.2.5",
4019
3909
  ngImport: i0,
4020
- type: AlertService,
4021
- deps: [{ token: i1$5.TranslateService }],
4022
- target: i0.ɵɵFactoryTarget.Injectable
3910
+ type: EditColumnTypePipe,
3911
+ deps: [],
3912
+ target: i0.ɵɵFactoryTarget.Pipe
4023
3913
  });
4024
- static ɵprov = i0.ɵɵngDeclareInjectable({
4025
- minVersion: "12.0.0",
4026
- version: "22.2.4",
4027
- ngImport: i0,
4028
- type: AlertService,
4029
- providedIn: "root"
4030
- });
4031
- };
4032
- i0.ɵɵngDeclareClassMetadata({
4033
- minVersion: "12.0.0",
4034
- version: "22.2.4",
4035
- ngImport: i0,
4036
- type: AlertService,
4037
- decorators: [{
4038
- type: Injectable,
4039
- args: [{ providedIn: "root" }]
4040
- }],
4041
- ctorParameters: () => [{ type: i1$5.TranslateService }]
4042
- });
4043
- var ErrorHandlerService = class ErrorHandlerService {
4044
- router;
4045
- alertService;
4046
- errorMessage = "";
4047
- transKeys;
4048
- constructor(router, alertService) {
4049
- this.router = router;
4050
- this.alertService = alertService;
4051
- }
4052
- handleError = (error) => {
4053
- if (error.status === 500) this.handle500Error(error);
4054
- else if (error.status === 404) this.handle404Error(error);
4055
- else this.handleOtherError(error);
4056
- };
4057
- handle500Error = (error) => {
4058
- this.createErrorMessage(error);
4059
- };
4060
- handle404Error = (error) => {
4061
- this.createErrorMessage(error);
4062
- };
4063
- handleOtherError = (error) => {
4064
- this.createErrorMessage(error);
4065
- };
4066
- extractMessageFromPayload(payload) {
4067
- let message = "";
4068
- let transKey = null;
4069
- if (!payload) return {
4070
- message,
4071
- transKey
4072
- };
4073
- if (typeof payload === "string") {
4074
- const trimmed = payload.trim();
4075
- if (trimmed.startsWith("{") && trimmed.endsWith("}") || trimmed.startsWith("[") && trimmed.endsWith("]")) try {
4076
- payload = JSON.parse(trimmed);
4077
- } catch {
4078
- if (!trimmed.startsWith("Http failure response for ")) message = trimmed;
4079
- return {
4080
- message,
4081
- transKey
4082
- };
4083
- }
4084
- else {
4085
- if (!trimmed.startsWith("Http failure response for ")) message = trimmed;
4086
- return {
4087
- message,
4088
- transKey
4089
- };
4090
- }
4091
- }
4092
- if (payload && typeof payload === "object") {
4093
- if (typeof payload.message === "string" && payload.message.trim() && !payload.message.startsWith("Http failure response for ")) message = payload.message.trim();
4094
- else if (typeof payload.error === "string" && payload.error.trim()) message = payload.error.trim();
4095
- else if (payload.error && typeof payload.error === "object") {
4096
- const nestedMsg = payload.error.message || payload.error.error || "";
4097
- if (typeof nestedMsg === "string" && nestedMsg.trim() && !nestedMsg.startsWith("Http failure response for ")) message = nestedMsg.trim();
4098
- } else if (typeof payload.msg === "string" && payload.msg.trim()) message = payload.msg.trim();
4099
- transKey = payload.TRANS_KEY || payload?.error?.TRANS_KEY || null;
4100
- }
4101
- return {
4102
- message,
4103
- transKey
4104
- };
4105
- }
4106
- createErrorMessage = (error) => {
4107
- let message = "";
4108
- let transKey = null;
4109
- let statusText = "";
4110
- let status = null;
4111
- if (typeof error === "string") {
4112
- const extracted = this.extractMessageFromPayload(error);
4113
- message = extracted.message;
4114
- transKey = extracted.transKey;
4115
- }
4116
- if (!message && error?.error) {
4117
- const extracted = this.extractMessageFromPayload(error.error);
4118
- message = extracted.message;
4119
- transKey = extracted.transKey || transKey;
4120
- }
4121
- if (error?.statusText && error.statusText !== "Unknown Error" && error.statusText !== "OK") statusText = error.statusText;
4122
- if (error?.status) status = error.status;
4123
- if (!message && typeof error?.message === "string") try {
4124
- const parsed = JSON.parse(error.message);
4125
- if (parsed && typeof parsed === "object") {
4126
- if (parsed.error) {
4127
- const extracted = this.extractMessageFromPayload(parsed.error);
4128
- message = extracted.message;
4129
- transKey = extracted.transKey || transKey;
4130
- }
4131
- if (!message) {
4132
- const extracted = this.extractMessageFromPayload(parsed);
4133
- message = extracted.message;
4134
- transKey = extracted.transKey || transKey;
4135
- }
4136
- if (!statusText && parsed.statusText && parsed.statusText !== "Unknown Error" && parsed.statusText !== "OK") statusText = parsed.statusText;
4137
- if (!status && parsed.status) status = parsed.status;
4138
- if (!transKey) transKey = parsed.TRANS_KEY || parsed?.error?.TRANS_KEY || null;
4139
- }
4140
- } catch {
4141
- if (!error.message.startsWith("Http failure response for ")) message = error.message;
4142
- }
4143
- if (!message) {
4144
- if (statusText) message = statusText;
4145
- else if (status) message = `Error ${status}: Something went wrong`;
4146
- else message = "Something went wrong";
4147
- }
4148
- if (message.startsWith("Http failure response for ")) message = statusText || (status ? `Error ${status}: Something went wrong` : "Something went wrong");
4149
- this.errorMessage = message;
4150
- this.transKeys = transKey;
4151
- this.alertService.messageOnPass("error", this.errorMessage || "error", this.transKeys);
4152
- };
4153
- static ɵfac = i0.ɵɵngDeclareFactory({
4154
- minVersion: "12.0.0",
4155
- version: "22.2.4",
4156
- ngImport: i0,
4157
- type: ErrorHandlerService,
4158
- deps: [{ token: i1$1.Router }, { token: AlertService }],
4159
- target: i0.ɵɵFactoryTarget.Injectable
4160
- });
4161
- static ɵprov = i0.ɵɵngDeclareInjectable({
4162
- minVersion: "12.0.0",
4163
- version: "22.2.4",
4164
- ngImport: i0,
4165
- type: ErrorHandlerService,
4166
- providedIn: "root"
4167
- });
4168
- };
4169
- i0.ɵɵngDeclareClassMetadata({
4170
- minVersion: "12.0.0",
4171
- version: "22.2.4",
4172
- ngImport: i0,
4173
- type: ErrorHandlerService,
4174
- decorators: [{
4175
- type: Injectable,
4176
- args: [{ providedIn: "root" }]
4177
- }],
4178
- ctorParameters: () => [{ type: i1$1.Router }, { type: AlertService }]
4179
- });
4180
- var TabDataService = class TabDataService {
4181
- cache = /* @__PURE__ */ new Map();
4182
- nxtBooks = /* @__PURE__ */ new Map();
4183
- constructor() {}
4184
- getCachedData(tabName, componentId) {
4185
- const key = `${tabName}_${componentId}`;
4186
- return this.cache.get(key) || null;
4187
- }
4188
- setCachedData(tabName, data, componentId) {
4189
- const key = `${tabName}_${componentId}`;
4190
- this.cache.set(key, data);
4191
- }
4192
- getNxtBook(endpoint) {
4193
- return this.nxtBooks.get(endpoint) || null;
4194
- }
4195
- setNxtBook(endpoint, book) {
4196
- this.nxtBooks.set(endpoint, book);
4197
- }
4198
- clearCache() {
4199
- this.cache.clear();
4200
- this.nxtBooks.clear();
4201
- }
4202
- static ɵfac = i0.ɵɵngDeclareFactory({
4203
- minVersion: "12.0.0",
4204
- version: "22.2.4",
4205
- ngImport: i0,
4206
- type: TabDataService,
4207
- deps: [],
4208
- target: i0.ɵɵFactoryTarget.Injectable
4209
- });
4210
- static ɵprov = i0.ɵɵngDeclareInjectable({
4211
- minVersion: "12.0.0",
4212
- version: "22.2.4",
4213
- ngImport: i0,
4214
- type: TabDataService,
4215
- providedIn: "root"
4216
- });
4217
- };
4218
- i0.ɵɵngDeclareClassMetadata({
4219
- minVersion: "12.0.0",
4220
- version: "22.2.4",
4221
- ngImport: i0,
4222
- type: TabDataService,
4223
- decorators: [{
4224
- type: Injectable,
4225
- args: [{ providedIn: "root" }]
4226
- }],
4227
- ctorParameters: () => []
4228
- });
4229
- var FormsComponent = class FormsComponent {
4230
- loaderService;
4231
- translate;
4232
- globalValues;
4233
- apiService;
4234
- datePipe;
4235
- alertService;
4236
- errorHandler;
4237
- globalValueService;
4238
- configService;
4239
- tabDataService;
4240
- cdr;
4241
- formJson;
4242
- tabs = [];
4243
- eachTypeOfTab = "";
4244
- settingsData;
4245
- components = [];
4246
- direction;
4247
- languageCode;
4248
- isLoading;
4249
- listViews;
4250
- multipleFilter = [];
4251
- tableFilterData;
4252
- selectedQuarterData = "Select Quarter";
4253
- selectedFYData = "Select FY";
4254
- fyList = [];
4255
- dataPatchProperties;
4256
- bookletId;
4257
- apiUrl = "";
4258
- defaultFormJson;
4259
- modalProperties;
4260
- tableData;
4261
- nxtCompID = "";
4262
- nxtTabName = "";
4263
- nxtLoader = [];
4264
- nxtJSON;
4265
- bookValue;
4266
- challans = [];
4267
- tab;
4268
- constructor(loaderService, translate, globalValues, apiService, datePipe, alertService, errorHandler, globalValueService, configService, tabDataService, cdr) {
4269
- this.loaderService = loaderService;
4270
- this.translate = translate;
4271
- this.globalValues = globalValues;
4272
- this.apiService = apiService;
4273
- this.datePipe = datePipe;
4274
- this.alertService = alertService;
4275
- this.errorHandler = errorHandler;
4276
- this.globalValueService = globalValueService;
4277
- this.configService = configService;
4278
- this.tabDataService = tabDataService;
4279
- this.cdr = cdr;
4280
- this.tabs = [
4281
- {
4282
- name: "details",
4283
- label: "Details",
4284
- order: 1
4285
- },
4286
- {
4287
- name: "challans",
4288
- label: "Challans",
4289
- order: 2
4290
- },
4291
- {
4292
- name: "deductees",
4293
- label: "Deductees",
4294
- order: 3
4295
- },
4296
- {
4297
- name: "fileUpload",
4298
- label: "Files",
4299
- order: 4
4300
- }
4301
- ];
4302
- this.defaultFormJson = {
4303
- "file_header": {
4304
- "upload_type": "R",
4305
- "date": `${(/* @__PURE__ */ new Date()).getDate()}${(/* @__PURE__ */ new Date()).getMonth() + 1}${(/* @__PURE__ */ new Date()).getFullYear()}`,
4306
- "file_sequence_number": 1,
4307
- "tan": "",
4308
- "consolidated_file_hash": ""
4309
- },
4310
- "batch_header": {
4311
- "challan_count": 0,
4312
- "transaction_type": "",
4313
- "regular_statement_token_no": "",
4314
- "last_tan_of_deductor": "",
4315
- "previous_regular_statement_token_no": "",
4316
- "financial_year": "",
4317
- "assessment_year": "",
4318
- "period": "",
4319
- "employer_name": "",
4320
- "employer_branch": "",
4321
- "employer_address1": "",
4322
- "employer_address2": "",
4323
- "employer_address3": "",
4324
- "employer_address4": "",
4325
- "employer_address5": "",
4326
- "employer_state": "",
4327
- "employer_pin": "",
4328
- "employer_email": "",
4329
- "employer_std_code": "",
4330
- "employer_telno": "",
4331
- "tan_of_deductor": "",
4332
- "pan_of_deductor": "",
4333
- "change_of_address_employer": "",
4334
- "deductor_type": "",
4335
- "responsible_person_name": "",
4336
- "responsible_person_designation": "",
4337
- "responsible_address1": "",
4338
- "responsible_address2": "",
4339
- "responsible_address3": "",
4340
- "responsible_address4": "",
4341
- "responsible_address5": "",
4342
- "responsible_state": "",
4343
- "responsible_pin": "",
4344
- "responsible_email": "",
4345
- "mobile_number": "",
4346
- "responsible_state_code": "",
4347
- "responsible_telno": "",
4348
- "pan_of_responsible_person": "",
4349
- "change_of_address_responsible_person": "",
4350
- "batch_total_deposit_amount": "",
4351
- "unmatched_challan_count": "",
4352
- "count_of_salary_details": 0,
4353
- "batch_total_gross": "",
4354
- "regular_statement_filed_earlier": "",
4355
- "state_name": "",
4356
- "pao_code": "",
4357
- "ddo_code": "",
4358
- "ministry_name": "",
4359
- "ministry_name_other": "",
4360
- "pao_registration_no": "",
4361
- "ddo_registration_no": "",
4362
- "employer_std_code_alternate": "",
4363
- "employer_tel_phone_no_alternate": "",
4364
- "employer_email_id_alternate": "",
4365
- "responsible_person_std_code_alternate": "",
4366
- "responsible_person_tel_phone_no_alternate": "",
4367
- "responsible_person_email_id_alternate": "",
4368
- "account_office_identification_number": "",
4369
- "gst_number": "",
4370
- "count_of_section_194p_details_records": "",
4371
- "batch_total_gross_total_income_section_194p": "",
4372
- "last_deductor_type": "",
4373
- "record_hash_bh": ""
4374
- }
4375
- };
4376
- this.formJson = this.defaultFormJson;
4377
- this.eachTypeOfTab = this.tabs[0]?.name;
4378
- this.tab = this.tabs[0];
4379
- this.settingsData = JSON.parse(this.globalValues.getItem("settingsData"));
4380
- const userDataConst = JSON.parse(this.globalValues.getItem("userData"));
4381
- this.languageCode = localStorage.getItem("language") || userDataConst?.languageCode || "en";
4382
- this.translate.onLangChange.subscribe((event) => {
4383
- this.languageCode = event.lang || "en";
4384
- });
4385
- this.loaderService.loading.subscribe((loadingStates) => {
4386
- this.isLoading = loadingStates;
4387
- this.cdr.markForCheck();
4388
- });
4389
- if (userDataConst) (userDataConst?.apps)?.forEach((appArr) => {
4390
- if (appArr.name === "hrm") appArr?.modules?.forEach((modArr) => {
4391
- if (modArr?.name === "payroll") modArr?.tabs.forEach((tabArr) => {
4392
- if (tabArr?.name === "forms" || tabArr?.name === "form24q") tabArr?.components.forEach((element) => {
4393
- if (element.type === "subTab") {
4394
- this.tabs = element.config.subTab;
4395
- this.tab = element.config.subTab[0];
4396
- this.eachTypeOfTab = this.tabs[0]?.name;
4397
- }
4398
- });
4399
- });
4400
- });
4401
- });
4402
- }
4403
- async ngOnInit() {
4404
- this.loaderService.loading.subscribe((loadingStates) => {
4405
- this.isLoading = loadingStates;
4406
- this.nxtLoader = this.loaderService.getNxtLoader();
4407
- this.nxtLoader = this.nxtLoader.filter((nxtId) => {
4408
- return this.isLoading[nxtId] && this.isLoading[nxtId]?.length > 0;
4409
- });
4410
- this.cdr.markForCheck();
4411
- });
4412
- this.formJson["file_header"]["date"] = `${(/* @__PURE__ */ new Date()).getDate()}${(/* @__PURE__ */ new Date()).getMonth() + 1}${(/* @__PURE__ */ new Date()).getFullYear()}`;
4413
- const nowYear = (/* @__PURE__ */ new Date()).getFullYear();
4414
- for (let i = 0; i < 5; i++) this.fyList.push(nowYear - i + "-" + (nowYear - (i - 1)));
4415
- const currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1;
4416
- if (currentMonth >= 4 && currentMonth <= 12) this.selectedFYData = this.fyList[0];
4417
- else this.selectedFYData = this.fyList[1];
4418
- this.selectedQuarterData = "Q1";
4419
- await this.getFormData(this.selectedFYData, this.selectedQuarterData);
4420
- this.apiUrl = this.configService.getServiceConfig("apiUrl");
4421
- this.currentTabNav(this.tab);
4422
- }
4423
- async currentTabNav(tab) {
4424
- this.tab = tab;
4425
- this.components = [{ type: "default" }];
4426
- this.eachTypeOfTab = "eachTypeOfTab";
4427
- this.modalProperties = tab?.modalProperties;
4428
- this.components = tab.components;
4429
- this.eachTypeOfTab = tab.name;
4430
- if (tab.components) for (const comps of tab.components) {
4431
- const compType = comps?.type;
4432
- if (this.tabDataService.getCachedData(tab.name, comps._id) !== void 0) {
4433
- if (compType === "nxtPage" || compType === "broadcast" || compType === "mailCampaign" || compType === "pdf" || compType === "invoice") {
4434
- this.bookValue = this.tabDataService.getCachedData(tab.name, comps._id);
4435
- this.nxtJSON = this.tabDataService.getNxtBook(comps?.config?.endpoint);
4436
- comps.config["nxtJSON"] = this.nxtJSON;
4437
- }
4438
- } else if (compType === "table") {
4439
- if (!comps?.config?.endpoint && !comps?.config?.pagination) {
4440
- const formS = this.formJson;
4441
- if (tab.name === "challans") {
4442
- comps.config.data = formS.challans;
4443
- this.tableData = {};
4444
- setTimeout(() => {
4445
- this.tableData = formS;
4446
- });
4447
- this.challans = formS.challans;
4448
- } else if (tab.name === "deductees") {
4449
- comps.config.data = formS.deductees;
4450
- if (comps.name === "deducteeTable") {
4451
- comps.config.data = formS.deductees;
4452
- this.tableData = {};
4453
- setTimeout(() => {
4454
- this.tableData = formS;
4455
- });
4456
- } else {
4457
- comps.config.data = formS.fetchedDeductees;
4458
- this.tableData = {};
4459
- setTimeout(() => {
4460
- this.tableData = formS;
4461
- });
4462
- }
4463
- }
4464
- }
4465
- } else if (compType === "nxtPage") {
4466
- this.nxtCompID = comps._id;
4467
- this.nxtTabName = tab.name;
4468
- this.modalProperties = comps.config.modalProperties;
4469
- this.dataPatchProperties = comps.config.dataPatchProperties;
4470
- if (comps?.config?.apiCall && comps?.config?.endpoint) {
4471
- await this.getData(comps?.config?.apiCall, comps?.config?.endpoint, comps, void 0, void 0, comps._id, { data: this.formJson });
4472
- comps.config.nxtJSON = { ...this.nxtJSON };
4473
- if (this.nxtJSON) this.tabDataService.setNxtBook(comps?.config?.endpoint, this.nxtJSON);
4474
- comps.config.nxtJSON = { ...this.nxtJSON };
4475
- this.tabDataService.setCachedData(tab.name, this.bookValue, comps._id);
4476
- }
4477
- if (comps?.config?.dataGetProperties?.endpoint) {
4478
- const data = await this.apiService.fetchDataAsPromise(comps?.config?.dataGetProperties?.endpoint + (compType === "pdf" || tab?.name, compType._id));
4479
- if (comps?.config?.dataGetProperties.responseObject) {
4480
- comps.config.tabBrowseContent = this.globalValues.getValue(data, comps?.config?.dataGetProperties.responseObjectKey);
4481
- this.bookValue = this.globalValues.getValue(data, comps?.config?.dataGetProperties.responseObjectKey);
4482
- } else if (comps?.config?.dataGetProperties.responseArray) {
4483
- comps.config.tabBrowseContent = data[0];
4484
- this.bookValue = data[0];
4485
- }
4486
- }
4487
- }
4488
- }
4489
- }
4490
- async getData(apiCall, endPoint, event, parentData = void 0, params = void 0, compId, tableData) {
4491
- if (apiCall === "get") {
4492
- let finalGetCall = endPoint;
4493
- if (event?.config?.isQueryParams || event?.config?.isParams) {
4494
- if (event?.config?.paramsValue) finalGetCall = endPoint + event.config?.paramsKey + event.config?.paramsValue;
4495
- else if (event?.config?.paramsKey && parentData) finalGetCall = endPoint + this.globalValues.getValue(parentData, event?.config?.paramsKey);
4496
- } else finalGetCall = endPoint;
4497
- if (event?.config?.searchConfigs?.searchFilterVal) {
4498
- if (event.config.searchConfigs?.paramKeys && event.config.searchConfigs?.searchFilterVal?.trim() != "") event.config.searchConfigs?.paramKeys.forEach((ele) => {
4499
- if (finalGetCall?.includes("?")) finalGetCall += `&${ele}=${event.config.searchConfigs?.searchFilterVal}`;
4500
- else finalGetCall += `?${ele}=${event.config.searchConfigs?.searchFilterVal}`;
4501
- });
4502
- }
4503
- if (params) {
4504
- if (finalGetCall?.includes("?")) finalGetCall += `&${params}`;
4505
- else finalGetCall += `?${params}`;
4506
- }
4507
- try {
4508
- const getData = await this.apiService.fetchDataAsPromise(finalGetCall, compId);
4509
- this.multipleFilter = getData?.distinctValues;
4510
- if (event.config.responseObject) {
4511
- const key = event.config.responseObjectKey;
4512
- if (event.config.type == "openNXTPage") {
4513
- this.nxtJSON = {
4514
- ...this.globalValues.getValue(getData, key) ?? getData,
4515
- loaderId: compId
4516
- };
4517
- event.config.nxtJSON = {
4518
- ...this.globalValues.getValue(getData, key) ?? getData,
4519
- loaderId: compId
4520
- };
4521
- this.bookValue = tableData.data;
4522
- } else if (event.config.type === "table" || event.config.type === "tableData") {
4523
- event.config.data = [];
4524
- if (!event.config.tableParams) event.config.tableParams = {};
4525
- event.config.tableParams = {
4526
- ...event.config.tableParams,
4527
- pagination: {
4528
- ...event.config.tableParams.pagination || {},
4529
- totalRecords: getData["totalRecords"]
4530
- }
4531
- };
4532
- event.config.data = this.globalValues.getValue(getData, key);
4533
- } else {
4534
- event.config.data = this.globalValues.getValue(getData, key);
4535
- if (event.config.type === "nxtGetCall") event.config.data.forEach((data) => {
4536
- const date = this.datePipe.transform(data.parkingDate, "short");
4537
- data.time = date?.split(",")[1];
4538
- data.date = this.datePipe.transform(date?.split(",")[0], "mediumDate");
4539
- delete data._id;
4540
- delete data.parkingDate;
4541
- });
4542
- }
4543
- } else if (event?.config?.responseArray) {
4544
- if (event.config.type === "tableData") event.config.data = structuredClone(getData);
4545
- }
4546
- } catch (error) {}
4547
- }
4548
- }
4549
- openModal = false;
4550
- async commonButtonClickEmit(event, index, allEvent) {
4551
- if (event.buttonAction === "openModal") {
4552
- this.openModal = true;
4553
- if (event.buttonType === "newRecord") this.bookValue = void 0;
4554
- this.modalProperties = event.modalProperties;
4555
- if (this.modalProperties?.type === "openNXTPage" || this.modalProperties?.type === "calendar") {
4556
- const url = "/nxt?name=" + this.modalProperties.pageContent;
4557
- await this.getData("get", url, this.modalProperties, index, void 0, this.modalProperties._id, allEvent);
4558
- if (this.nxtJSON) this.tabDataService.setNxtBook(url, this.nxtJSON);
4559
- }
4560
- } else if (event.buttonAction === "save") {
4561
- this.formJson;
4562
- this.bookValue = void 0;
4563
- this.checkedDeductees.forEach((element) => {
4564
- const filtDeductee = this.formJson.deductees.findIndex((js) => js.employeeId === element.employeeId);
4565
- if (filtDeductee >= 0) this.formJson.deductees[filtDeductee] = element;
4566
- else this.formJson.deductees.push(element);
4567
- });
4568
- let formJsonData = {
4569
- financialYear: this.selectedFYData,
4570
- quarter: this.selectedQuarterData,
4571
- json: this.formJson,
4572
- formId: `${this.selectedFYData}_${this.selectedQuarterData}`
4573
- };
4574
- this.tableData = {};
4575
- setTimeout(() => {
4576
- this.tableData = formJsonData.json;
4577
- });
4578
- this.challans = formJsonData.json.challans;
4579
- this.apiService.writeValue("post", "/hrm/forms?formType=form24q", formJsonData, "syncDeductees").subscribe({
4580
- next: (savedData) => {
4581
- this.openModal = false;
4582
- this.saveSuccess(savedData.message, savedData.TRANS_KEY);
4583
- },
4584
- error: (err) => {
4585
- this.errorHandler.handleError(err);
4586
- }
4587
- });
4588
- }
4589
- }
4590
- async selectedDropdownValue(event, from) {
4591
- if (from === "fyYear") this.selectedFYData = event.data;
4592
- else if (from === "quarter") this.selectedQuarterData = event.data;
4593
- await this.getFormData(this.selectedFYData, this.selectedQuarterData);
4594
- }
4595
- checkedDeductees = [];
4596
- tableCheckedDataa(event) {
4597
- this.checkedDeductees = event;
4598
- }
4599
- tablePageDetails(comp, event) {}
4600
- hyperLinkColumnEmit(comp, event) {}
4601
- saveButtonData(event) {}
4602
- onDeleteRecord(event, comp) {
4603
- event?.data;
4604
- if (comp.name === "deducteeTable") this.formJson.deductees.splice(event.index, 1);
4605
- else this.formJson.challans.splice(event.index, 1);
4606
- let formJsonData = {
4607
- financialYear: this.selectedFYData,
4608
- quarter: this.selectedQuarterData,
4609
- json: this.formJson,
4610
- formId: `${this.selectedFYData}_${this.selectedQuarterData}`
4611
- };
4612
- formJsonData.json.batch_header.challanCount = formJsonData.json.challans.length;
4613
- this.apiService.writeValue("post", "/hrm/forms?formType=form24q", formJsonData, "onDeleteRecord").subscribe({
4614
- next: (savedData) => {
4615
- this.openModal = false;
4616
- this.saveSuccess(savedData.message, savedData.TRANS_KEY);
4617
- this.tableData = {};
4618
- setTimeout(() => {
4619
- this.tableData = { ...formJsonData.json };
4620
- });
4621
- },
4622
- error: (err) => {
4623
- this.errorHandler.handleError(err);
4624
- }
4625
- });
4626
- }
4627
- tableParamsEmit(tab, event, comp) {}
4628
- actionButtonEmit(evt, compId) {
4629
- this.commonButtonClickEmit(evt.event, evt.event, evt);
4630
- }
4631
- nxtTableFilterEmit(event, comp) {}
4632
- async nxtFormHandler(event) {
4633
- if (event.action === "close") this.openModal = false;
4634
- else {
4635
- let nxtLoaderId;
4636
- if (event?.jsonBook?.questionbook?.action) {
4637
- event.jsonBook.questionbook.action.forEach((element) => {
4638
- if (element.eventtoemit === event.action) nxtLoaderId = element.id;
4639
- });
4640
- if (!nxtLoaderId) event.jsonBook.questionbook.action.forEach((element) => {
4641
- if (element.eventtoemit === "submit") nxtLoaderId = element.id;
4642
- });
4643
- }
4644
- this.loaderService.nxtLoader(nxtLoaderId);
4645
- this.formJson["financialYear"] = this.selectedFYData;
4646
- this.formJson["quarter"] = this.selectedQuarterData;
4647
- this.formJson["formId"] = `${this.selectedFYData}_${this.selectedQuarterData}`;
4648
- this.formJson["file_header"]["tan"] = this.settingsData.finance.tan;
4649
- this.formJson["batch_header"]["employer_name"] = this.settingsData.companyName;
4650
- this.formJson["batch_header"]["tan_of_deductor"] = this.settingsData.finance.tan;
4651
- this.formJson["batch_header"]["pan_of_deductor"] = this.settingsData.finance.pan;
4652
- this.formJson["batch_header"]["assessment_year"] = Number(`${Number(this.selectedFYData.split("-")[0]) + 1}${Number(this.selectedFYData.split("-")[1].slice(-2)) + 1}`);
4653
- this.formJson["batch_header"]["financial_year"] = Number(`${this.selectedFYData.split("-")[0]}${this.selectedFYData.split("-")[1].slice(-2)}`);
4654
- this.formJson["batch_header"]["period"] = this.selectedQuarterData;
4655
- if (event.action === "close") this.openModal = false;
4656
- else if (event.action === "submit" && event.actionData === "challanSubmit") {
4657
- let challanJson = {
4658
- "line_number": "",
4659
- "challan_detail_record_number": "",
4660
- "count_of_deductee_party_records": "",
4661
- "nil_challan_indicator": "",
4662
- "bank_challan_no": "",
4663
- "ddo_serial_no_form_24g": "",
4664
- "bank_branch_code_or_24g_receipt_number": "",
4665
- "date_of_bank_challan": "",
4666
- "oltas_income_tax": "",
4667
- "oltas_surcharge": 0,
4668
- "oltas_cess": 0,
4669
- "oltas_interest_amount": 0,
4670
- "oltas_others_amount": 0,
4671
- "total_deposit_amount": "",
4672
- "last_total_deposit_amount": "",
4673
- "total_tax_deposit_as_per_deductee_annexure": "",
4674
- "tds_tcs_income_tax": "",
4675
- "tds_tcs_surcharge": 0,
4676
- "tds_tcs_cess": 0,
4677
- "sum_of_total_income_tax_deducted": "",
4678
- "tds_tcs_interest_amount": 0,
4679
- "tds_tcs_others_amount": 0,
4680
- "cheque_or_dd_no": "",
4681
- "by_book_entry_cash": "",
4682
- "fee": "",
4683
- "minor_head_of_challan": "",
4684
- "last_challan_serial_no": "",
4685
- "last_transfer_voucher_no": "",
4686
- "last_bank_branch_code_or_24g_receipt_number": "",
4687
- "last_date_of_bank_challan": "",
4688
- "record_hash_cd": ""
4689
- };
4690
- event.data.forEach((element) => {
4691
- if (element?.referenceField) challanJson[element?.referenceField] = element?.input ? element?.input : element.type === "Text" ? "" : 0;
4692
- });
4693
- if (challanJson?.challanUID) {
4694
- const ind = this.formJson.challans.findIndex((ch) => ch.challanUID === challanJson?.challanUID);
4695
- this.formJson.challans[ind] = challanJson;
4696
- } else {
4697
- challanJson.challanUID = (/* @__PURE__ */ new Date()).toString();
4698
- this.formJson.challans.push(challanJson);
4699
- }
4700
- let formJsonData = {
4701
- financialYear: this.selectedFYData,
4702
- quarter: this.selectedQuarterData,
4703
- json: this.formJson,
4704
- formId: `${this.selectedFYData}_${this.selectedQuarterData}`
4705
- };
4706
- formJsonData.json.batch_header.challanCount = formJsonData.json.challans.length;
4707
- this.apiService.writeValue("post", "/hrm/forms?formType=form24q", formJsonData, nxtLoaderId).subscribe({
4708
- next: (savedData) => {
4709
- this.openModal = false;
4710
- this.tableData = {};
4711
- setTimeout(() => {
4712
- this.tableData = formJsonData.json;
4713
- });
4714
- this.challans = formJsonData.json.challans;
4715
- this.saveSuccess(savedData.message, savedData.TRANS_KEY);
4716
- },
4717
- error: (err) => {
4718
- this.errorHandler.handleError(err);
4719
- }
4720
- });
4721
- } else if (event.action === "submit" && event.actionData === "deducteeSubmit") {
4722
- let deducteeJson = {
4723
- "line_number": "",
4724
- "challan_detail_record_number": "",
4725
- "deductee_detail_record_no": "",
4726
- "mode": "",
4727
- "employee_reference_no": "",
4728
- "employee_pan": "",
4729
- "pan_ref_no": "",
4730
- "name_of_employee": "",
4731
- "tds_income_tax": "",
4732
- "tds_surcharge": 0,
4733
- "health_and_education_cess": 0,
4734
- "total_income_tax_deducted": "",
4735
- "total_tax_deposited": "",
4736
- "amount_paid_or_credited": "",
4737
- "date_of_payment_or_credit": "",
4738
- "date_on_which_tax_deducted": "",
4739
- "date_of_deposit": "",
4740
- "remarks_1": "",
4741
- "section_code_under_which_payment_made": "",
4742
- "certificate_number_issued_by_ao_section_197": "",
4743
- "batch_number": "",
4744
- "last_employee_reference_no": "",
4745
- "last_employee_pan": "",
4746
- "last_total_income_tax_deducted": "",
4747
- "last_total_tax_deposited": "",
4748
- "record_hash_dd": "",
4749
- "employeeId": ""
4750
- };
4751
- event.data.forEach((element) => {
4752
- if (element?.referenceField) {
4753
- deducteeJson[element?.referenceField] = element?.input ? element?.input : element.type === "Text" ? "" : 0;
4754
- if (element?.referenceField === "date_of_deposit_D") deducteeJson["date_of_deposit"] = `${String(new Date(element?.input).getDate()).padStart(2, "0")}${String(new Date(element?.input).getMonth() + 1).padStart(2, "0")}${new Date(element?.input).getFullYear()}`;
4755
- else if (element?.referenceField === "date_of_payment_or_credit_D") deducteeJson["date_of_payment_or_credit"] = `${String(new Date(element?.input).getDate()).padStart(2, "0")}${String(new Date(element?.input).getMonth() + 1).padStart(2, "0")}${new Date(element?.input).getFullYear()}`;
4756
- else if (element?.referenceField === "date_on_which_tax_deducted_D") deducteeJson["date_on_which_tax_deducted"] = `${String(new Date(element?.input).getDate()).padStart(2, "0")}${String(new Date(element?.input).getMonth() + 1).padStart(2, "0")}${new Date(element?.input).getFullYear()}`;
4757
- }
4758
- });
4759
- if (deducteeJson?.employeeId) {
4760
- const ind = this.formJson.deductees.findIndex((ch) => ch.employeeId === deducteeJson?.employeeId);
4761
- this.formJson.deductees[ind] = deducteeJson;
4762
- } else this.formJson.deductees.push(deducteeJson);
4763
- let formJsonData = {
4764
- financialYear: this.selectedFYData,
4765
- quarter: this.selectedQuarterData,
4766
- json: this.formJson,
4767
- formId: `${this.selectedFYData}_${this.selectedQuarterData}`
4768
- };
4769
- this.apiService.writeValue("post", "/hrm/forms?formType=form24q", formJsonData, nxtLoaderId).subscribe({
4770
- next: (savedData) => {
4771
- this.openModal = false;
4772
- this.tableData = {};
4773
- setTimeout(() => {
4774
- this.tableData = formJsonData.json;
4775
- });
4776
- this.saveSuccess(savedData.message, savedData.TRANS_KEY);
4777
- },
4778
- error: (err) => {
4779
- this.errorHandler.handleError(err);
4780
- }
4781
- });
4782
- } else if (event.action === "submit") {
4783
- let filterEmployee = event.data.find((emp) => emp.referenceField === "searchPerson");
4784
- let filterAddress = event.data.find((emp) => emp.referenceField === "searchAddress");
4785
- if (filterEmployee.input) try {
4786
- let empl = await this.apiService.fetchDataAsPromise(`/employee/employeeDetail?apiRequestType=findOne&employeeId=${filterEmployee.input}`);
4787
- let emp = empl.employee;
4788
- this.formJson["batch_header"]["responsible_person_name"] = emp.fullName;
4789
- this.formJson["batch_header"]["responsible_person_designation"] = emp.workinfo.designation;
4790
- this.formJson["batch_header"]["responsible_address1"] = emp.addressinfo.currentaddress.address1;
4791
- this.formJson["batch_header"]["responsible_address2"] = emp.addressinfo.currentaddress.address2;
4792
- this.formJson["batch_header"]["responsible_address3"] = emp.addressinfo.currentaddress.city;
4793
- this.formJson["batch_header"]["responsible_state"] = this.getStateCodes(emp.addressinfo.currentaddress.state).tin;
4794
- this.formJson["batch_header"]["responsible_pin"] = emp.addressinfo.currentaddress.postalcode;
4795
- this.formJson["batch_header"]["responsible_email"] = emp.email;
4796
- this.formJson["batch_header"]["mobile_number"] = Number(emp.phone.slice(-10));
4797
- this.formJson["batch_header"]["responsible_state_code"] = emp.additionalContacts[0].stdCode;
4798
- this.formJson["batch_header"]["responsible_telno"] = emp.additionalContacts[0].telephoneNumber;
4799
- this.formJson["batch_header"]["pan_of_responsible_person"] = empl.finance.panNumber;
4800
- } catch (error) {}
4801
- if (filterAddress.input) {
4802
- let addr = this.settingsData?.addresses?.find((id) => id._id === filterAddress.input);
4803
- this.formJson["batch_header"]["employer_branch"] = addr.label;
4804
- this.formJson["batch_header"]["employer_address1"] = addr.line1;
4805
- this.formJson["batch_header"]["employer_address2"] = addr.line2;
4806
- this.formJson["batch_header"]["employer_address3"] = addr.city;
4807
- this.formJson["batch_header"]["employer_state"] = this.getStateCodes(addr.state).tin;
4808
- this.formJson["batch_header"]["employer_pin"] = addr.zip;
4809
- this.formJson["batch_header"]["employer_email"] = addr.email;
4810
- this.formJson["batch_header"]["employer_std_code"] = addr.stdCode;
4811
- this.formJson["batch_header"]["employer_telno"] = addr.telephoneNumber;
4812
- }
4813
- event.data.forEach((element) => {
4814
- if (element?.referenceField) this.assignByPath(this.formJson, element?.referenceField, element?.input);
4815
- });
4816
- let formJsonData = {
4817
- financialYear: this.selectedFYData,
4818
- quarter: this.selectedQuarterData,
4819
- json: this.formJson,
4820
- formId: `${this.selectedFYData}_${this.selectedQuarterData}`
4821
- };
4822
- this.apiService.writeValue("post", "/hrm/forms?formType=form24q", formJsonData, nxtLoaderId).subscribe({
4823
- next: (savedData) => {
4824
- this.tableData = {};
4825
- setTimeout(() => {
4826
- this.tableData = formJsonData.json;
4827
- });
4828
- this.saveSuccess(savedData.message, savedData.TRANS_KEY);
4829
- },
4830
- error: (err) => {
4831
- this.errorHandler.handleError(err);
4832
- }
4833
- });
4834
- } else if (event.action === "save") {
4835
- event.data.find((emp) => emp.referenceField === "searchPerson");
4836
- event.data.find((emp) => emp.referenceField === "searchAddress");
4837
- this.apiService.writeValue("patch", "/hrm/forms?formType=form24q", this.formJson, nxtLoaderId).subscribe({
4838
- next: (savedData) => {
4839
- this.tableData = {};
4840
- setTimeout(() => {
4841
- this.tableData = this.formJson;
4842
- });
4843
- this.saveSuccess(savedData.message, savedData.TRANS_KEY);
4844
- },
4845
- error: (err) => {
4846
- this.errorHandler.handleError(err);
4847
- }
4848
- });
4849
- }
4850
- }
4851
- }
4852
- assignByPath(obj, path, value) {
4853
- const keys = path?.split(".");
4854
- let current = obj;
4855
- keys?.forEach((key, index) => {
4856
- if (index === keys.length - 1) current[key] = value;
4857
- else {
4858
- current[key] = current[key] || {};
4859
- current = current[key];
4860
- }
4861
- });
4862
- }
4863
- saveSuccess(event, key, defaultMessage) {
4864
- this.alertService.messageOnPass("success", event, key, defaultMessage);
4865
- }
4866
- nxtButtonHandler(event) {}
4867
- handleCalendarDate(event) {}
4868
- handleCalendarEventDate(event) {}
4869
- onClickEdit(card) {
4870
- if (card.event) {
4871
- if (card.event.buttonAction === "edit") {
4872
- this.modalProperties = card.event.actionButtonProperties;
4873
- this.commonButtonClickEmit(this.modalProperties, card.card?.config?.configData ? card.card?.config?.configData : this.bookValue ? this.bookValue : card.card);
4874
- }
4875
- }
4876
- }
4877
- multiCheckEmit(event) {}
4878
- currentSubTabNav(event) {}
4879
- onSideNav(event) {}
4880
- emitAttachmentClick(event) {}
4881
- modalClose(event) {
4882
- this.openModal = false;
4883
- }
4884
- async getFormData(fyYear, quarter) {
4885
- try {
4886
- this.tableData = void 0;
4887
- const datum = await this.apiService.fetchDataAsPromise(`/hrm/forms?formType=form24q&formId=${fyYear}_${quarter}&quarter=${quarter}&fyYear=${fyYear}`, "getFormData");
4888
- const defJS = this.defaultFormJson;
4889
- let formJS = this.globalValueService.deepMerge(defJS, datum?.forms?.json);
4890
- this.formJson = formJS;
4891
- this.tableData = this.formJson;
4892
- this.tableData = {};
4893
- setTimeout(() => {
4894
- this.tableData = this.formJson;
4895
- });
4896
- this.tabDataService.setCachedData(this.nxtTabName, this.bookValue, this.nxtCompID);
4897
- } catch (error) {}
4898
- }
4899
- submitButtonLoader = false;
4900
- async submitClick(from) {
4901
- if (from === "submit24Q") {
4902
- const data = {
4903
- "json": {
4904
- "file_header": this.formJson.file_header,
4905
- "batch_header": this.formJson.batch_header,
4906
- "challans": this.formJson.challans,
4907
- "deductees": this.formJson.deductees
4908
- },
4909
- "csiBase64": this.formJson?.csiFileNXT?.[0]?.doc?.split(",")[1] || ""
4910
- };
4911
- this.submitButtonLoader = true;
4912
- this.apiService.writeValue("post", "/hrm/forms?apiType=form24q", data).subscribe({
4913
- next: (savedData) => {
4914
- this.submitButtonLoader = false;
4915
- this.saveSuccess("Save Success", "Save Success");
4916
- const file = new Blob([savedData.data], { type: "fvu" });
4917
- saveAs(file, "24Q_Export_" + (/* @__PURE__ */ new Date()).toLocaleDateString() + ".fvu");
4918
- },
4919
- error: (err) => {
4920
- this.submitButtonLoader = false;
4921
- this.errorHandler.handleError(err);
4922
- let err1 = JSON.parse(err?.message)?.error?.content;
4923
- const blob = new Blob([err1], { type: "text/plain" });
4924
- saveAs(blob, "Error_" + (/* @__PURE__ */ new Date()).toLocaleDateString() + ".txt");
4925
- }
4926
- });
4927
- } else {
4928
- let formJsonData = {
4929
- financialYear: this.selectedFYData,
4930
- quarter: this.selectedQuarterData,
4931
- json: this.formJson,
4932
- formId: `${this.selectedFYData}_${this.selectedQuarterData}`
4933
- };
4934
- this.apiService.writeValue("post", "/hrm/forms?formType=form24q", formJsonData).subscribe({
4935
- next: (savedData) => {
4936
- this.saveSuccess(savedData.message, savedData.TRANS_KEY);
4937
- },
4938
- error: (err) => {
4939
- this.errorHandler.handleError(err);
4940
- }
4941
- });
4942
- }
4943
- }
4944
- getStateCodes(stateText) {
4945
- let code = [
4946
- {
4947
- state: ["Andhra Pradesh", "AP"],
4948
- code: "AP",
4949
- tin: 37
4950
- },
4951
- {
4952
- state: ["Arunachal Pradesh", "AR"],
4953
- code: "AR",
4954
- tin: 12
4955
- },
4956
- {
4957
- state: ["Assam", "AS"],
4958
- code: "AS",
4959
- tin: 18
4960
- },
4961
- {
4962
- state: ["Bihar", "BR"],
4963
- code: "BR",
4964
- tin: 10
4965
- },
4966
- {
4967
- state: [
4968
- "Chhattisgarh",
4969
- "CG",
4970
- "Chattisgarh"
4971
- ],
4972
- code: "CG",
4973
- tin: 22
4974
- },
4975
- {
4976
- state: ["Goa", "GA"],
4977
- code: "GA",
4978
- tin: 30
4979
- },
4980
- {
4981
- state: ["Gujarat", "GJ"],
4982
- code: "GJ",
4983
- tin: 24
4984
- },
4985
- {
4986
- state: ["Haryana", "HR"],
4987
- code: "HR",
4988
- tin: 6
4989
- },
4990
- {
4991
- state: ["Himachal Pradesh", "HP"],
4992
- code: "HP",
4993
- tin: 2
4994
- },
4995
- {
4996
- state: ["Jharkhand", "JH"],
4997
- code: "JH",
4998
- tin: 20
4999
- },
5000
- {
5001
- state: ["Karnataka", "KA"],
5002
- code: "KA",
5003
- tin: 29
5004
- },
5005
- {
5006
- state: ["Kerala", "KL"],
5007
- code: "KL",
5008
- tin: 32
5009
- },
5010
- {
5011
- state: ["Madhya Pradesh", "MP"],
5012
- code: "MP",
5013
- tin: 23
5014
- },
5015
- {
5016
- state: ["Maharashtra", "MH"],
5017
- code: "MH",
5018
- tin: 27
5019
- },
5020
- {
5021
- state: ["Manipur", "MN"],
5022
- code: "MN",
5023
- tin: 14
5024
- },
5025
- {
5026
- state: ["Meghalaya", "ML"],
5027
- code: "ML",
5028
- tin: 17
5029
- },
5030
- {
5031
- state: ["Mizoram", "MZ"],
5032
- code: "MZ",
5033
- tin: 15
5034
- },
5035
- {
5036
- state: ["Nagaland", "NL"],
5037
- code: "NL",
5038
- tin: 13
5039
- },
5040
- {
5041
- state: [
5042
- "Odisha",
5043
- "Orissa",
5044
- "OD",
5045
- "OR"
5046
- ],
5047
- code: "OD",
5048
- tin: 21
5049
- },
5050
- {
5051
- state: ["Punjab", "PB"],
5052
- code: "PB",
5053
- tin: 3
5054
- },
5055
- {
5056
- state: ["Rajasthan", "RJ"],
5057
- code: "RJ",
5058
- tin: 8
5059
- },
5060
- {
5061
- state: ["Sikkim", "SK"],
5062
- code: "SK",
5063
- tin: 11
5064
- },
5065
- {
5066
- state: [
5067
- "Tamil Nadu",
5068
- "Tamilnadu",
5069
- "TN"
5070
- ],
5071
- code: "TN",
5072
- tin: 33
5073
- },
5074
- {
5075
- state: [
5076
- "Telangana",
5077
- "TS",
5078
- "TG"
5079
- ],
5080
- code: "TS",
5081
- tin: 36
5082
- },
5083
- {
5084
- state: ["Tripura", "TR"],
5085
- code: "TR",
5086
- tin: 16
5087
- },
5088
- {
5089
- state: ["Uttar Pradesh", "UP"],
5090
- code: "UP",
5091
- tin: 9
5092
- },
5093
- {
5094
- state: [
5095
- "Uttarakhand",
5096
- "UK",
5097
- "UA",
5098
- "Uttaranchal"
5099
- ],
5100
- code: "UK",
5101
- tin: 5
5102
- },
5103
- {
5104
- state: ["West Bengal", "WB"],
5105
- code: "WB",
5106
- tin: 19
5107
- },
5108
- {
5109
- state: ["Andaman and Nicobar Islands", "AN"],
5110
- code: "AN",
5111
- tin: 35
5112
- },
5113
- {
5114
- state: ["Chandigarh", "CH"],
5115
- code: "CH",
5116
- tin: 4
5117
- },
5118
- {
5119
- state: [
5120
- "Dadra and Nagar Haveli and Daman and Diu",
5121
- "DNHDD",
5122
- "DNH",
5123
- "DD"
5124
- ],
5125
- code: "DH",
5126
- tin: 26
5127
- },
5128
- {
5129
- state: ["Lakshadweep", "LD"],
5130
- code: "LD",
5131
- tin: 31
5132
- },
5133
- {
5134
- state: [
5135
- "Delhi",
5136
- "DL",
5137
- "NCT",
5138
- "New Delhi"
5139
- ],
5140
- code: "DL",
5141
- tin: 7
5142
- },
5143
- {
5144
- state: [
5145
- "Puducherry",
5146
- "Pondicherry",
5147
- "PY"
5148
- ],
5149
- code: "PY",
5150
- tin: 34
5151
- },
5152
- {
5153
- state: ["Jammu and Kashmir", "JK"],
5154
- code: "JK",
5155
- tin: 1
5156
- },
5157
- {
5158
- state: ["Ladakh", "LA"],
5159
- code: "LA",
5160
- tin: 38
5161
- }
5162
- ].find((st) => st.state.includes(stateText));
5163
- if (code) return code;
5164
- else return {
5165
- state: void 0,
5166
- code: "",
5167
- tin: void 0
5168
- };
5169
- }
5170
- static ɵfac = i0.ɵɵngDeclareFactory({
5171
- minVersion: "12.0.0",
5172
- version: "22.2.4",
5173
- ngImport: i0,
5174
- type: FormsComponent,
5175
- deps: [
5176
- { token: LoaderService },
5177
- { token: i1$5.TranslateService },
5178
- { token: GlobalValuesService },
5179
- { token: ApiService },
5180
- { token: i1$4.DatePipe },
5181
- { token: AlertService },
5182
- { token: ErrorHandlerService },
5183
- { token: GlobalValuesService },
5184
- { token: ConfigService },
5185
- { token: TabDataService },
5186
- { token: i0.ChangeDetectorRef }
5187
- ],
5188
- target: i0.ɵɵFactoryTarget.Component
5189
- });
5190
- static ɵcmp = i0.ɵɵngDeclareComponent({
5191
- minVersion: "14.0.0",
5192
- version: "22.2.4",
5193
- type: FormsComponent,
5194
- isStandalone: true,
5195
- selector: "app-forms",
5196
- inputs: { tab: "tab" },
5197
- ngImport: i0,
5198
- 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>",
5199
- 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(--fc-primary-color, #0140c1);font-weight:var(--fw-600, 600);border-bottom:3.5px solid var(--fc-primary-color, #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(--fc-primary-color, #0140c1);font-weight:var(--fw-600, 600)}::ng-deep .upload-preview-wrapper{height:0}\n"],
5200
- dependencies: [
5201
- {
5202
- kind: "ngmodule",
5203
- type: CommonModule
5204
- },
5205
- {
5206
- kind: "directive",
5207
- type: i1$4.NgForOf,
5208
- selector: "[ngFor][ngForOf]",
5209
- inputs: [
5210
- "ngForOf",
5211
- "ngForTrackBy",
5212
- "ngForTemplate"
5213
- ]
5214
- },
5215
- {
5216
- kind: "directive",
5217
- type: i1$4.NgIf,
5218
- selector: "[ngIf]",
5219
- inputs: [
5220
- "ngIf",
5221
- "ngIfThen",
5222
- "ngIfElse"
5223
- ]
5224
- },
5225
- {
5226
- kind: "component",
5227
- type: FusionButtonComponent,
5228
- selector: "app-fusion-button",
5229
- inputs: [
5230
- "buttonValue",
5231
- "buttonValuePath",
5232
- "buttonType",
5233
- "type",
5234
- "buttonDisable",
5235
- "fcBtnBgColor",
5236
- "fcBtnBorder",
5237
- "fcBtnTextColor",
5238
- "fcBtnHeight",
5239
- "fcBtnWidth",
5240
- "fcBtnIconLeftSrc",
5241
- "fcBtnIconRightSrc",
5242
- "fcBtnHoverBgColor",
5243
- "fcBtnHoverTextColor",
5244
- "fcBtnId",
5245
- "dataDismiss",
5246
- "fcButtonBorder",
5247
- "modalToTrigger",
5248
- "isImageSvg",
5249
- "tabIndex",
5250
- "buttonConfig",
5251
- "buttonLoadingSpinner"
5252
- ],
5253
- outputs: ["buttonClickEmit"]
5254
- },
5255
- {
5256
- kind: "ngmodule",
5257
- type: NxtAppModule
5258
- },
5259
- {
5260
- kind: "component",
5261
- type: i10$1.BookletComponent,
5262
- selector: "lib-booklet",
5263
- inputs: [
5264
- "bookletId",
5265
- "serv",
5266
- "tkn",
5267
- "bookletJSON",
5268
- "allIcons",
5269
- "themeColor",
5270
- "cdnIconURL",
5271
- "dropdownDependentData",
5272
- "labelValue",
5273
- "token",
5274
- "languageCode",
5275
- "fieldRestrictions",
5276
- "from",
5277
- "apiUrl",
5278
- "isEdit",
5279
- "direction",
5280
- "isLoading",
5281
- "onlyView",
5282
- "dataBind"
5283
- ],
5284
- outputs: [
5285
- "handleBookletActionEvent",
5286
- "handlePage",
5287
- "hadleDropDownDependent",
5288
- "handleCalendarDate",
5289
- "handleCalendarEvent",
5290
- "formEditEvent"
5291
- ]
5292
- },
5293
- {
5294
- kind: "component",
5295
- type: i10$1.NxtDatatable,
5296
- selector: "nxt-datatable",
5297
- inputs: [
5298
- "data",
5299
- "summaryValues",
5300
- "tableFilterData",
5301
- "columns",
5302
- "withCheckBox",
5303
- "searchBar",
5304
- "tableSaveButton",
5305
- "hideSaveButton",
5306
- "stickyColumn",
5307
- "tableWidth",
5308
- "actionColumHeader",
5309
- "actionButton",
5310
- "title",
5311
- "isButtons",
5312
- "buttonArray",
5313
- "tableId",
5314
- "isEditRow",
5315
- "isDeleteRow",
5316
- "addInlineRecord",
5317
- "searchConfigs",
5318
- "direction",
5319
- "pagination",
5320
- "actionButtonArray",
5321
- "multipleFilter",
5322
- "isPagination",
5323
- "isListViews",
5324
- "id",
5325
- "isNosIndicator",
5326
- "isEditable",
5327
- "from",
5328
- "question",
5329
- "rowTextSize",
5330
- "rowTextColor",
5331
- "apiMeta",
5332
- "summaryRows",
5333
- "summaryColumns",
5334
- "isLoading",
5335
- "tableConfig",
5336
- "tableParams",
5337
- "listViews",
5338
- "mode",
5339
- "languageCode",
5340
- "selectedColumn",
5341
- "allIcons",
5342
- "isButtonLoading",
5343
- "isPreview",
5344
- "groupFilter",
5345
- "groupFilterConfig",
5346
- "groupFilterColumn",
5347
- "onlyView",
5348
- "tableHeight",
5349
- "serialNumberColumn",
5350
- "advancedFilters"
5351
- ],
5352
- outputs: [
5353
- "tableRowClick",
5354
- "onEditData",
5355
- "onSaveData",
5356
- "saveButtonData",
5357
- "onDeleteData",
5358
- "buttonEmit",
5359
- "hyperLinkEmit",
5360
- "sideNavEmit",
5361
- "actionButtonEmit",
5362
- "columnSelected",
5363
- "removeColumn",
5364
- "valueChange",
5365
- "selectedValues",
5366
- "fileEmit",
5367
- "NxtTableFilterEmit",
5368
- "hadleDropDownDependent",
5369
- "NxtTableParamsEmit"
5370
- ]
5371
- },
5372
- {
5373
- kind: "component",
5374
- type: BrowseComponent,
5375
- selector: "app-browse",
5376
- inputs: [
5377
- "selectedEmployee",
5378
- "employeeFinanceInfo",
5379
- "employeeLeaves",
5380
- "employeeExpenses",
5381
- "nxtJSON",
5382
- "bookValue",
5383
- "languageCode",
5384
- "bookletId",
5385
- "dataPatchProperties",
5386
- "nxtEdit",
5387
- "staticComp",
5388
- "nxtFormBuilder",
5389
- "type",
5390
- "broadcast",
5391
- "isPDFPreview",
5392
- "dashboardBuilder",
5393
- "allData",
5394
- "isLoading",
5395
- "componentJson",
5396
- "modalProperties",
5397
- "buttons"
5398
- ],
5399
- outputs: [
5400
- "nxtFormHandlerEmit",
5401
- "formEditEvent",
5402
- "nxtButtonHandlerEmit",
5403
- "handleCalendarDateEmit",
5404
- "handleCalendarEventDateEmit"
5405
- ]
5406
- },
5407
- {
5408
- kind: "component",
5409
- type: ModalComponent,
5410
- selector: "app-modal",
5411
- inputs: [
5412
- "modalTitle",
5413
- "isModalOpen",
5414
- "modalSize",
5415
- "saveButtonValue",
5416
- "modalFooter",
5417
- "cancelNXTEmit"
5418
- ],
5419
- outputs: ["saveButtonEmit", "cancelButtonEmit"]
5420
- },
5421
- {
5422
- kind: "component",
5423
- type: DropDownComponent,
5424
- selector: "app-drop-down",
5425
- inputs: [
5426
- "lists",
5427
- "title",
5428
- "dropDownWidth",
5429
- "selectBoxWidth",
5430
- "dropDownHeight",
5431
- "selectBoxHeight",
5432
- "selectBoxBorder",
5433
- "dropBorderRadius",
5434
- "selectedData",
5435
- "controlName",
5436
- "multipleSelect",
5437
- "multipleSelectedData",
5438
- "multipleSelectedView",
5439
- "errorValue",
5440
- "defaultValue",
5441
- "isDisabled",
5442
- "isRequired",
5443
- "isError",
5444
- "bindKey",
5445
- "bindValue",
5446
- "sortData",
5447
- "ddConfigs",
5448
- "errorMessage"
5449
- ],
5450
- outputs: [
5451
- "dataEmit",
5452
- "errorEmit",
5453
- "multipleSelectDataEmit"
5454
- ]
5455
- },
5456
- {
5457
- kind: "ngmodule",
5458
- type: AngularSvgIconModule
5459
- },
5460
- {
5461
- kind: "pipe",
5462
- type: CustomTranslatePipe,
5463
- name: "customTranslate"
5464
- }
5465
- ]
3914
+ static ɵpipe = i0.ɵɵngDeclarePipe({
3915
+ minVersion: "14.0.0",
3916
+ version: "22.2.5",
3917
+ ngImport: i0,
3918
+ type: EditColumnTypePipe,
3919
+ isStandalone: true,
3920
+ name: "editColumnType"
5466
3921
  });
5467
3922
  };
5468
3923
  i0.ɵɵngDeclareClassMetadata({
5469
3924
  minVersion: "12.0.0",
5470
- version: "22.2.4",
3925
+ version: "22.2.5",
5471
3926
  ngImport: i0,
5472
- type: FormsComponent,
3927
+ type: EditColumnTypePipe,
5473
3928
  decorators: [{
5474
- type: Component,
3929
+ type: Pipe,
5475
3930
  args: [{
5476
- selector: "app-forms",
5477
- imports: [
5478
- CommonModule,
5479
- CustomTranslatePipe,
5480
- FusionButtonComponent,
5481
- NxtAppModule,
5482
- BrowseComponent,
5483
- ModalComponent,
5484
- DropDownComponent,
5485
- AngularSvgIconModule,
5486
- FusionButtonComponent
5487
- ],
5488
- 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>",
5489
- 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(--fc-primary-color, #0140c1);font-weight:var(--fw-600, 600);border-bottom:3.5px solid var(--fc-primary-color, #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(--fc-primary-color, #0140c1);font-weight:var(--fw-600, 600)}::ng-deep .upload-preview-wrapper{height:0}\n"]
3931
+ name: "editColumnType",
3932
+ standalone: true
5490
3933
  }]
5491
- }],
5492
- ctorParameters: () => [
5493
- { type: LoaderService },
5494
- { type: i1$5.TranslateService },
5495
- { type: GlobalValuesService },
5496
- { type: ApiService },
5497
- { type: i1$4.DatePipe },
5498
- { type: AlertService },
5499
- { type: ErrorHandlerService },
5500
- { type: GlobalValuesService },
5501
- { type: ConfigService },
5502
- { type: TabDataService },
5503
- { type: i0.ChangeDetectorRef }
5504
- ],
5505
- propDecorators: { tab: [{ type: Input }] }
3934
+ }]
5506
3935
  });
5507
- var GetValuePipe = class GetValuePipe {
5508
- transform(arg, element, column) {
5509
- const initialEl = element;
5510
- let flds = column?.split(".");
5511
- for (let i = 0; i < flds?.length; i++) {
5512
- let splitFlds = flds[i].split("[");
5513
- if (splitFlds.length === 1) {
5514
- if (element != null && element != void 0) {
5515
- if (typeof element[flds[i]] === "number") element = element[flds[i]] || 0;
5516
- else if (typeof element[flds[i]] === "boolean") element = element[flds[i]];
5517
- else {
5518
- let value = element[flds[i]] || "";
5519
- if (typeof value === "string" && this.looksLikeDate(value)) value = this.formatShortDate(value);
5520
- element = value;
5521
- }
5522
- }
5523
- } else {
5524
- let index = Number(splitFlds[1].split("]")[0]);
5525
- if (typeof element[flds[i]] === "number") element = element[splitFlds[0]][index] || 0;
5526
- else if (typeof element[flds[i]] === "boolean") element = element[flds[i]];
5527
- else element = element[splitFlds[0]][index] || "";
5528
- }
5529
- }
5530
- if (element != null && element != void 0) Object.assign(initialEl, { [column]: element });
5531
- if (element === null || element === void 0 || element === "") return "";
5532
- return element;
3936
+ var EditColumnDropdownPipe = class EditColumnDropdownPipe {
3937
+ transform(arg, element, editCol) {
3938
+ return editCol.filter((col) => col.name === element)[0].values;
5533
3939
  }
5534
- looksLikeDate(value) {
5535
- value = value.trim().replace(",", "");
5536
- return /^[0-9]{1,2}\s+[A-Za-z]+\s+[0-9]{4}$/i.test(value) || /^[A-Za-z]+\s+[0-9]{1,2}\s+[0-9]{4}$/i.test(value) || /^[A-Za-z]+\s+[0-9]{4}$/i.test(value);
3940
+ static ɵfac = i0.ɵɵngDeclareFactory({
3941
+ minVersion: "12.0.0",
3942
+ version: "22.2.5",
3943
+ ngImport: i0,
3944
+ type: EditColumnDropdownPipe,
3945
+ deps: [],
3946
+ target: i0.ɵɵFactoryTarget.Pipe
3947
+ });
3948
+ static ɵpipe = i0.ɵɵngDeclarePipe({
3949
+ minVersion: "14.0.0",
3950
+ version: "22.2.5",
3951
+ ngImport: i0,
3952
+ type: EditColumnDropdownPipe,
3953
+ isStandalone: true,
3954
+ name: "editColumnDropdown"
3955
+ });
3956
+ };
3957
+ i0.ɵɵngDeclareClassMetadata({
3958
+ minVersion: "12.0.0",
3959
+ version: "22.2.5",
3960
+ ngImport: i0,
3961
+ type: EditColumnDropdownPipe,
3962
+ decorators: [{
3963
+ type: Pipe,
3964
+ args: [{
3965
+ name: "editColumnDropdown",
3966
+ standalone: true
3967
+ }]
3968
+ }]
3969
+ });
3970
+ var TotalColumSumPipe = class TotalColumSumPipe {
3971
+ transform(arg, data, cumulativeDataColumns, column) {
3972
+ if (cumulativeDataColumns.includes(column)) {
3973
+ const value = cumulativeDataColumns.includes(column) ? data?.reduce((accum, curr) => Number(this.currencyToNumber(accum)) + (Number(this.currencyToNumber(curr[column])) || 0), 0) : null;
3974
+ return this.currencyReturn(value, "INR");
3975
+ } else return "";
5537
3976
  }
5538
- formatShortDate(value) {
5539
- value = value.replace(",", "").replace(/\s+/g, " ").trim();
5540
- const short = (m) => m.substring(0, 3).toLowerCase().replace(/^./, (c) => c.toUpperCase());
5541
- let m = value.match(/^([0-9]{1,2})\s+([A-Za-z]+)\s+([0-9]{4})$/i);
5542
- if (m) return `${m[1].padStart(2, "0")} ${short(m[2])} ${m[3]}`;
5543
- m = value.match(/^([A-Za-z]+)\s+([0-9]{1,2})\s+([0-9]{4})$/i);
5544
- if (m) return `${m[2].padStart(2, "0")} ${short(m[1])} ${m[3]}`;
5545
- m = value.match(/^([A-Za-z]+)\s+([0-9]{4})$/i);
5546
- if (m) return `${short(m[1])} ${m[2]}`;
5547
- return value;
3977
+ currencyToNumber(data) {
3978
+ if (data && typeof data === "string") {
3979
+ const removeComma = Number(data?.replace(/[^0-9.-]+/g, ""));
3980
+ return Number(removeComma);
3981
+ } else if (data && typeof data === "number") return Number(data);
3982
+ return 0;
3983
+ }
3984
+ currencyReturn(rupee, code) {
3985
+ return `${new Intl.NumberFormat(navigator.language, {
3986
+ minimumFractionDigits: 2,
3987
+ maximumFractionDigits: 2
3988
+ }).format(rupee)}`;
5548
3989
  }
5549
3990
  static ɵfac = i0.ɵɵngDeclareFactory({
5550
3991
  minVersion: "12.0.0",
5551
- version: "22.2.4",
3992
+ version: "22.2.5",
5552
3993
  ngImport: i0,
5553
- type: GetValuePipe,
3994
+ type: TotalColumSumPipe,
5554
3995
  deps: [],
5555
3996
  target: i0.ɵɵFactoryTarget.Pipe
5556
3997
  });
5557
3998
  static ɵpipe = i0.ɵɵngDeclarePipe({
5558
3999
  minVersion: "14.0.0",
5559
- version: "22.2.4",
4000
+ version: "22.2.5",
5560
4001
  ngImport: i0,
5561
- type: GetValuePipe,
4002
+ type: TotalColumSumPipe,
5562
4003
  isStandalone: true,
5563
- name: "getValue"
4004
+ name: "totalColumSum"
5564
4005
  });
5565
4006
  };
5566
4007
  i0.ɵɵngDeclareClassMetadata({
5567
4008
  minVersion: "12.0.0",
5568
- version: "22.2.4",
4009
+ version: "22.2.5",
5569
4010
  ngImport: i0,
5570
- type: GetValuePipe,
4011
+ type: TotalColumSumPipe,
5571
4012
  decorators: [{
5572
4013
  type: Pipe,
5573
4014
  args: [{
5574
- name: "getValue",
4015
+ name: "totalColumSum",
5575
4016
  standalone: true
5576
4017
  }]
5577
4018
  }]
5578
4019
  });
5579
- var EditColumnCheckPipe = class EditColumnCheckPipe {
5580
- transform(arg, element, editCol) {
5581
- var returnVal = "";
5582
- if (editCol.length > 0) {
5583
- if (typeof editCol[0] === "string") {
5584
- if (editCol.includes(element)) returnVal = "string";
5585
- } else if (typeof editCol[0] === "object") returnVal = editCol.filter((col) => col.name === element).length > 0 ? "object" : "";
5586
- }
5587
- return returnVal;
4020
+ var CustomPaginatorIntl = class CustomPaginatorIntl extends MatPaginatorIntl {
4021
+ translate;
4022
+ cdr;
4023
+ labelChange = new EventEmitter();
4024
+ constructor(translate, cdr) {
4025
+ super();
4026
+ this.translate = translate;
4027
+ this.cdr = cdr;
4028
+ this.updateTranslations();
4029
+ this.translate.onLangChange.subscribe((event) => {
4030
+ this.updateTranslations();
4031
+ this.labelChange.emit();
4032
+ this.cdr.detectChanges();
4033
+ });
4034
+ }
4035
+ updateTranslations() {
4036
+ if (this.translate.instant("APP.ITEMS_PER_PAGE") === "APP.ITEMS_PER_PAGE") this.itemsPerPageLabel = "Item per page";
4037
+ else this.itemsPerPageLabel = this.translate.instant("APP.ITEMS_PER_PAGE");
4038
+ this.nextPageLabel = this.translate.instant("NEXT_PAGE");
4039
+ this.previousPageLabel = this.translate.instant("PREVIOUS_PAGE");
4040
+ this.firstPageLabel = this.translate.instant("FIRST_PAGE");
4041
+ this.lastPageLabel = this.translate.instant("LAST_PAGE");
5588
4042
  }
5589
4043
  static ɵfac = i0.ɵɵngDeclareFactory({
5590
4044
  minVersion: "12.0.0",
5591
- version: "22.2.4",
4045
+ version: "22.2.5",
5592
4046
  ngImport: i0,
5593
- type: EditColumnCheckPipe,
4047
+ type: CustomPaginatorIntl,
4048
+ deps: [{ token: i1$5.TranslateService }, { token: i0.ChangeDetectorRef }],
4049
+ target: i0.ɵɵFactoryTarget.Injectable
4050
+ });
4051
+ static ɵprov = i0.ɵɵngDeclareInjectable({
4052
+ minVersion: "12.0.0",
4053
+ version: "22.2.5",
4054
+ ngImport: i0,
4055
+ type: CustomPaginatorIntl,
4056
+ providedIn: "root"
4057
+ });
4058
+ };
4059
+ i0.ɵɵngDeclareClassMetadata({
4060
+ minVersion: "12.0.0",
4061
+ version: "22.2.5",
4062
+ ngImport: i0,
4063
+ type: CustomPaginatorIntl,
4064
+ decorators: [{
4065
+ type: Injectable,
4066
+ args: [{ providedIn: "root" }]
4067
+ }],
4068
+ ctorParameters: () => [{ type: i1$5.TranslateService }, { type: i0.ChangeDetectorRef }]
4069
+ });
4070
+ var CustomDatePipe = class CustomDatePipe {
4071
+ transform(value, type = "date") {
4072
+ const date = new Date(value);
4073
+ if (isNaN(date.getTime())) return value;
4074
+ const day = String(date.getDate()).padStart(2, "0");
4075
+ const month = date.toLocaleString("en-US", { month: "short" });
4076
+ const year = date.getFullYear();
4077
+ const time = date.toLocaleString("en-US", {
4078
+ hour: "2-digit",
4079
+ minute: "2-digit",
4080
+ hour12: true
4081
+ });
4082
+ if (type === "date") return `${day} ${month} ${year}`;
4083
+ if (type === "time") return time;
4084
+ if (type === "datetime") return `${day} ${month} ${year} ${time}`;
4085
+ return value;
4086
+ }
4087
+ static ɵfac = i0.ɵɵngDeclareFactory({
4088
+ minVersion: "12.0.0",
4089
+ version: "22.2.5",
4090
+ ngImport: i0,
4091
+ type: CustomDatePipe,
5594
4092
  deps: [],
5595
4093
  target: i0.ɵɵFactoryTarget.Pipe
5596
4094
  });
5597
4095
  static ɵpipe = i0.ɵɵngDeclarePipe({
5598
4096
  minVersion: "14.0.0",
5599
- version: "22.2.4",
4097
+ version: "22.2.5",
5600
4098
  ngImport: i0,
5601
- type: EditColumnCheckPipe,
4099
+ type: CustomDatePipe,
5602
4100
  isStandalone: true,
5603
- name: "editColumnCheck"
4101
+ name: "customDate"
5604
4102
  });
5605
4103
  };
5606
4104
  i0.ɵɵngDeclareClassMetadata({
5607
4105
  minVersion: "12.0.0",
5608
- version: "22.2.4",
4106
+ version: "22.2.5",
5609
4107
  ngImport: i0,
5610
- type: EditColumnCheckPipe,
4108
+ type: CustomDatePipe,
5611
4109
  decorators: [{
5612
4110
  type: Pipe,
5613
4111
  args: [{
5614
- name: "editColumnCheck",
4112
+ name: "customDate",
5615
4113
  standalone: true
5616
4114
  }]
5617
4115
  }]
5618
4116
  });
5619
- var EditColumnTypePipe = class EditColumnTypePipe {
5620
- transform(arg, element, editCol) {
5621
- return editCol.filter((col) => col.name === element)[0].type;
4117
+ var CustomTimePipe = class CustomTimePipe {
4118
+ transform(value, timeFormat = "HH:mm") {
4119
+ if (value === null || value === void 0 || value === "") return "";
4120
+ const date = new Date(value);
4121
+ if (isNaN(date.getTime())) return value;
4122
+ return `${date.getHours().toString().padStart(2, "0")}:${date.getMinutes().toString().padStart(2, "0")}`;
5622
4123
  }
5623
4124
  static ɵfac = i0.ɵɵngDeclareFactory({
5624
4125
  minVersion: "12.0.0",
5625
- version: "22.2.4",
4126
+ version: "22.2.5",
5626
4127
  ngImport: i0,
5627
- type: EditColumnTypePipe,
4128
+ type: CustomTimePipe,
5628
4129
  deps: [],
5629
4130
  target: i0.ɵɵFactoryTarget.Pipe
5630
4131
  });
5631
4132
  static ɵpipe = i0.ɵɵngDeclarePipe({
5632
4133
  minVersion: "14.0.0",
5633
- version: "22.2.4",
4134
+ version: "22.2.5",
5634
4135
  ngImport: i0,
5635
- type: EditColumnTypePipe,
4136
+ type: CustomTimePipe,
5636
4137
  isStandalone: true,
5637
- name: "editColumnType"
4138
+ name: "customTime",
4139
+ pure: false
5638
4140
  });
5639
4141
  };
5640
4142
  i0.ɵɵngDeclareClassMetadata({
5641
4143
  minVersion: "12.0.0",
5642
- version: "22.2.4",
4144
+ version: "22.2.5",
5643
4145
  ngImport: i0,
5644
- type: EditColumnTypePipe,
4146
+ type: CustomTimePipe,
5645
4147
  decorators: [{
5646
4148
  type: Pipe,
5647
4149
  args: [{
5648
- name: "editColumnType",
4150
+ name: "customTime",
4151
+ pure: false,
5649
4152
  standalone: true
5650
4153
  }]
5651
4154
  }]
5652
4155
  });
5653
- var EditColumnDropdownPipe = class EditColumnDropdownPipe {
5654
- transform(arg, element, editCol) {
5655
- return editCol.filter((col) => col.name === element)[0].values;
4156
+ var ScrollService = class ScrollService {
4157
+ scrollPositionSubject = new BehaviorSubject(0);
4158
+ scrollPosition$ = this.scrollPositionSubject.asObservable();
4159
+ setScrollPosition(position) {
4160
+ this.scrollPositionSubject.next(position);
5656
4161
  }
5657
4162
  static ɵfac = i0.ɵɵngDeclareFactory({
5658
4163
  minVersion: "12.0.0",
5659
- version: "22.2.4",
4164
+ version: "22.2.5",
5660
4165
  ngImport: i0,
5661
- type: EditColumnDropdownPipe,
4166
+ type: ScrollService,
5662
4167
  deps: [],
5663
- target: i0.ɵɵFactoryTarget.Pipe
4168
+ target: i0.ɵɵFactoryTarget.Injectable
5664
4169
  });
5665
- static ɵpipe = i0.ɵɵngDeclarePipe({
5666
- minVersion: "14.0.0",
5667
- version: "22.2.4",
4170
+ static ɵprov = i0.ɵɵngDeclareInjectable({
4171
+ minVersion: "12.0.0",
4172
+ version: "22.2.5",
5668
4173
  ngImport: i0,
5669
- type: EditColumnDropdownPipe,
5670
- isStandalone: true,
5671
- name: "editColumnDropdown"
4174
+ type: ScrollService,
4175
+ providedIn: "root"
5672
4176
  });
5673
4177
  };
5674
4178
  i0.ɵɵngDeclareClassMetadata({
5675
4179
  minVersion: "12.0.0",
5676
- version: "22.2.4",
4180
+ version: "22.2.5",
5677
4181
  ngImport: i0,
5678
- type: EditColumnDropdownPipe,
4182
+ type: ScrollService,
5679
4183
  decorators: [{
5680
- type: Pipe,
5681
- args: [{
5682
- name: "editColumnDropdown",
5683
- standalone: true
5684
- }]
4184
+ type: Injectable,
4185
+ args: [{ providedIn: "root" }]
5685
4186
  }]
5686
4187
  });
5687
- var TotalColumSumPipe = class TotalColumSumPipe {
5688
- transform(arg, data, cumulativeDataColumns, column) {
5689
- if (cumulativeDataColumns.includes(column)) {
5690
- const value = cumulativeDataColumns.includes(column) ? data?.reduce((accum, curr) => Number(this.currencyToNumber(accum)) + (Number(this.currencyToNumber(curr[column])) || 0), 0) : null;
5691
- return this.currencyReturn(value, "INR");
5692
- } else return "";
4188
+ var AlertService = class AlertService {
4189
+ translate;
4190
+ static instance = null;
4191
+ constructor(translate) {
4192
+ this.translate = translate;
4193
+ AlertService.instance = this;
5693
4194
  }
5694
- currencyToNumber(data) {
5695
- if (data && typeof data === "string") {
5696
- const removeComma = Number(data?.replace(/[^0-9.-]+/g, ""));
5697
- return Number(removeComma);
5698
- } else if (data && typeof data === "number") return Number(data);
5699
- return 0;
4195
+ passType = new Subject();
4196
+ passAlertType$ = this.passType.asObservable();
4197
+ messageData;
4198
+ messageOnPass(condition, message, keys, defaultMessage) {
4199
+ let finalMessage = this.translateMessage(message, keys);
4200
+ if (`RESPONSE_MESSAGE.${message}` === finalMessage || message === finalMessage) finalMessage = defaultMessage || message;
4201
+ this.messageData = {
4202
+ type: condition,
4203
+ message: finalMessage
4204
+ };
4205
+ this.passType.next(this.messageData);
5700
4206
  }
5701
- currencyReturn(rupee, code) {
5702
- return `${new Intl.NumberFormat(navigator.language, {
5703
- minimumFractionDigits: 2,
5704
- maximumFractionDigits: 2
5705
- }).format(rupee)}`;
4207
+ static messageOnPassStatic(condition, message, keys, defaultMessage) {
4208
+ if (AlertService.instance) {
4209
+ AlertService.instance.messageOnPass(condition, message, keys, defaultMessage);
4210
+ return;
4211
+ }
4212
+ const fallbackMessage = defaultMessage || message || "Something went wrong";
4213
+ window.alert(fallbackMessage);
4214
+ }
4215
+ messageOnFetch(condition, identifier, message, keys, defaultMessage) {
4216
+ let finalMessage = this.translateMessage(message, keys);
4217
+ if (`RESPONSE_MESSAGE.${message}` === finalMessage || message === finalMessage) finalMessage = defaultMessage || message;
4218
+ this.messageData = {
4219
+ type: condition,
4220
+ fetchId: identifier,
4221
+ message: finalMessage
4222
+ };
4223
+ this.passType.next(this.messageData);
4224
+ }
4225
+ translateMessage(message, keys) {
4226
+ if (message === message.toUpperCase()) message = this.translate.instant(`RESPONSE_MESSAGE.${message}`);
4227
+ const matches = [...message.matchAll(/\{\{(.*?)\}\}/g)].map((m) => m[1]);
4228
+ let finalMessage = message;
4229
+ if (matches.length > 0 && keys !== void 0) {
4230
+ if (Array.isArray(keys)) matches.forEach((key, index) => {
4231
+ const raw = keys[index] !== void 0 ? keys[index] : "";
4232
+ const translated = this.translate.instant(`${key}.${raw}`);
4233
+ const value = translated !== `${key}.${raw}` ? translated : raw;
4234
+ const keyRegex = new RegExp(`\\{\\{${key}\\}\\}`, "g");
4235
+ finalMessage = finalMessage.replace(keyRegex, value);
4236
+ });
4237
+ else if (typeof keys === "string") matches.forEach((key) => {
4238
+ const translated = this.translate.instant(`${key}.${keys}`);
4239
+ const value = translated !== `${key}.${keys}` ? translated : keys;
4240
+ const keyRegex = new RegExp(`\\{\\{${key}\\}\\}`, "g");
4241
+ finalMessage = finalMessage.replace(keyRegex, value);
4242
+ });
4243
+ else if (typeof keys === "object" && keys !== null) matches.forEach((key) => {
4244
+ const raw = keys[key] !== void 0 ? keys[key] : "";
4245
+ const translated = this.translate.instant(`${key}.${raw}`);
4246
+ const value = translated !== `${key}.${raw}` ? translated : raw;
4247
+ const keyRegex = new RegExp(`\\{\\{${key}\\}\\}`, "g");
4248
+ finalMessage = finalMessage.replace(keyRegex, value);
4249
+ });
4250
+ }
4251
+ return finalMessage;
5706
4252
  }
5707
4253
  static ɵfac = i0.ɵɵngDeclareFactory({
5708
4254
  minVersion: "12.0.0",
5709
- version: "22.2.4",
4255
+ version: "22.2.5",
5710
4256
  ngImport: i0,
5711
- type: TotalColumSumPipe,
5712
- deps: [],
5713
- target: i0.ɵɵFactoryTarget.Pipe
4257
+ type: AlertService,
4258
+ deps: [{ token: i1$5.TranslateService }],
4259
+ target: i0.ɵɵFactoryTarget.Injectable
5714
4260
  });
5715
- static ɵpipe = i0.ɵɵngDeclarePipe({
5716
- minVersion: "14.0.0",
5717
- version: "22.2.4",
4261
+ static ɵprov = i0.ɵɵngDeclareInjectable({
4262
+ minVersion: "12.0.0",
4263
+ version: "22.2.5",
5718
4264
  ngImport: i0,
5719
- type: TotalColumSumPipe,
5720
- isStandalone: true,
5721
- name: "totalColumSum"
4265
+ type: AlertService,
4266
+ providedIn: "root"
5722
4267
  });
5723
4268
  };
5724
4269
  i0.ɵɵngDeclareClassMetadata({
5725
4270
  minVersion: "12.0.0",
5726
- version: "22.2.4",
4271
+ version: "22.2.5",
5727
4272
  ngImport: i0,
5728
- type: TotalColumSumPipe,
4273
+ type: AlertService,
5729
4274
  decorators: [{
5730
- type: Pipe,
5731
- args: [{
5732
- name: "totalColumSum",
5733
- standalone: true
5734
- }]
5735
- }]
4275
+ type: Injectable,
4276
+ args: [{ providedIn: "root" }]
4277
+ }],
4278
+ ctorParameters: () => [{ type: i1$5.TranslateService }]
5736
4279
  });
5737
- var CustomPaginatorIntl = class CustomPaginatorIntl extends MatPaginatorIntl {
5738
- translate;
5739
- cdr;
5740
- labelChange = new EventEmitter();
5741
- constructor(translate, cdr) {
5742
- super();
5743
- this.translate = translate;
5744
- this.cdr = cdr;
5745
- this.updateTranslations();
5746
- this.translate.onLangChange.subscribe((event) => {
5747
- this.updateTranslations();
5748
- this.labelChange.emit();
5749
- this.cdr.detectChanges();
5750
- });
4280
+ var ErrorHandlerService = class ErrorHandlerService {
4281
+ router;
4282
+ alertService;
4283
+ errorMessage = "";
4284
+ transKeys;
4285
+ constructor(router, alertService) {
4286
+ this.router = router;
4287
+ this.alertService = alertService;
5751
4288
  }
5752
- updateTranslations() {
5753
- if (this.translate.instant("APP.ITEMS_PER_PAGE") === "APP.ITEMS_PER_PAGE") this.itemsPerPageLabel = "Item per page";
5754
- else this.itemsPerPageLabel = this.translate.instant("APP.ITEMS_PER_PAGE");
5755
- this.nextPageLabel = this.translate.instant("NEXT_PAGE");
5756
- this.previousPageLabel = this.translate.instant("PREVIOUS_PAGE");
5757
- this.firstPageLabel = this.translate.instant("FIRST_PAGE");
5758
- this.lastPageLabel = this.translate.instant("LAST_PAGE");
4289
+ handleError = (error) => {
4290
+ if (error.status === 500) this.handle500Error(error);
4291
+ else if (error.status === 404) this.handle404Error(error);
4292
+ else this.handleOtherError(error);
4293
+ };
4294
+ handle500Error = (error) => {
4295
+ this.createErrorMessage(error);
4296
+ };
4297
+ handle404Error = (error) => {
4298
+ this.createErrorMessage(error);
4299
+ };
4300
+ handleOtherError = (error) => {
4301
+ this.createErrorMessage(error);
4302
+ };
4303
+ extractMessageFromPayload(payload) {
4304
+ let message = "";
4305
+ let transKey = null;
4306
+ if (!payload) return {
4307
+ message,
4308
+ transKey
4309
+ };
4310
+ if (typeof payload === "string") {
4311
+ const trimmed = payload.trim();
4312
+ if (trimmed.startsWith("{") && trimmed.endsWith("}") || trimmed.startsWith("[") && trimmed.endsWith("]")) try {
4313
+ payload = JSON.parse(trimmed);
4314
+ } catch {
4315
+ if (!trimmed.startsWith("Http failure response for ")) message = trimmed;
4316
+ return {
4317
+ message,
4318
+ transKey
4319
+ };
4320
+ }
4321
+ else {
4322
+ if (!trimmed.startsWith("Http failure response for ")) message = trimmed;
4323
+ return {
4324
+ message,
4325
+ transKey
4326
+ };
4327
+ }
4328
+ }
4329
+ if (payload && typeof payload === "object") {
4330
+ if (typeof payload.message === "string" && payload.message.trim() && !payload.message.startsWith("Http failure response for ")) message = payload.message.trim();
4331
+ else if (typeof payload.error === "string" && payload.error.trim()) message = payload.error.trim();
4332
+ else if (payload.error && typeof payload.error === "object") {
4333
+ const nestedMsg = payload.error.message || payload.error.error || "";
4334
+ if (typeof nestedMsg === "string" && nestedMsg.trim() && !nestedMsg.startsWith("Http failure response for ")) message = nestedMsg.trim();
4335
+ } else if (typeof payload.msg === "string" && payload.msg.trim()) message = payload.msg.trim();
4336
+ transKey = payload.TRANS_KEY || payload?.error?.TRANS_KEY || null;
4337
+ }
4338
+ return {
4339
+ message,
4340
+ transKey
4341
+ };
5759
4342
  }
4343
+ createErrorMessage = (error) => {
4344
+ let message = "";
4345
+ let transKey = null;
4346
+ let statusText = "";
4347
+ let status = null;
4348
+ if (typeof error === "string") {
4349
+ const extracted = this.extractMessageFromPayload(error);
4350
+ message = extracted.message;
4351
+ transKey = extracted.transKey;
4352
+ }
4353
+ if (!message && error?.error) {
4354
+ const extracted = this.extractMessageFromPayload(error.error);
4355
+ message = extracted.message;
4356
+ transKey = extracted.transKey || transKey;
4357
+ }
4358
+ if (error?.statusText && error.statusText !== "Unknown Error" && error.statusText !== "OK") statusText = error.statusText;
4359
+ if (error?.status) status = error.status;
4360
+ if (!message && typeof error?.message === "string") try {
4361
+ const parsed = JSON.parse(error.message);
4362
+ if (parsed && typeof parsed === "object") {
4363
+ if (parsed.error) {
4364
+ const extracted = this.extractMessageFromPayload(parsed.error);
4365
+ message = extracted.message;
4366
+ transKey = extracted.transKey || transKey;
4367
+ }
4368
+ if (!message) {
4369
+ const extracted = this.extractMessageFromPayload(parsed);
4370
+ message = extracted.message;
4371
+ transKey = extracted.transKey || transKey;
4372
+ }
4373
+ if (!statusText && parsed.statusText && parsed.statusText !== "Unknown Error" && parsed.statusText !== "OK") statusText = parsed.statusText;
4374
+ if (!status && parsed.status) status = parsed.status;
4375
+ if (!transKey) transKey = parsed.TRANS_KEY || parsed?.error?.TRANS_KEY || null;
4376
+ }
4377
+ } catch {
4378
+ if (!error.message.startsWith("Http failure response for ")) message = error.message;
4379
+ }
4380
+ if (!message) {
4381
+ if (statusText) message = statusText;
4382
+ else if (status) message = `Error ${status}: Something went wrong`;
4383
+ else message = "Something went wrong";
4384
+ }
4385
+ if (message.startsWith("Http failure response for ")) message = statusText || (status ? `Error ${status}: Something went wrong` : "Something went wrong");
4386
+ this.errorMessage = message;
4387
+ this.transKeys = transKey;
4388
+ this.alertService.messageOnPass("error", this.errorMessage || "error", this.transKeys);
4389
+ };
5760
4390
  static ɵfac = i0.ɵɵngDeclareFactory({
5761
4391
  minVersion: "12.0.0",
5762
- version: "22.2.4",
4392
+ version: "22.2.5",
5763
4393
  ngImport: i0,
5764
- type: CustomPaginatorIntl,
5765
- deps: [{ token: i1$5.TranslateService }, { token: i0.ChangeDetectorRef }],
4394
+ type: ErrorHandlerService,
4395
+ deps: [{ token: i1$1.Router }, { token: AlertService }],
5766
4396
  target: i0.ɵɵFactoryTarget.Injectable
5767
4397
  });
5768
4398
  static ɵprov = i0.ɵɵngDeclareInjectable({
5769
4399
  minVersion: "12.0.0",
5770
- version: "22.2.4",
4400
+ version: "22.2.5",
5771
4401
  ngImport: i0,
5772
- type: CustomPaginatorIntl,
4402
+ type: ErrorHandlerService,
5773
4403
  providedIn: "root"
5774
4404
  });
5775
4405
  };
5776
4406
  i0.ɵɵngDeclareClassMetadata({
5777
4407
  minVersion: "12.0.0",
5778
- version: "22.2.4",
4408
+ version: "22.2.5",
5779
4409
  ngImport: i0,
5780
- type: CustomPaginatorIntl,
4410
+ type: ErrorHandlerService,
5781
4411
  decorators: [{
5782
4412
  type: Injectable,
5783
4413
  args: [{ providedIn: "root" }]
5784
4414
  }],
5785
- ctorParameters: () => [{ type: i1$5.TranslateService }, { type: i0.ChangeDetectorRef }]
4415
+ ctorParameters: () => [{ type: i1$1.Router }, { type: AlertService }]
5786
4416
  });
5787
- var CustomDatePipe = class CustomDatePipe {
5788
- transform(value, type = "date") {
5789
- const date = new Date(value);
5790
- if (isNaN(date.getTime())) return value;
5791
- const day = String(date.getDate()).padStart(2, "0");
5792
- const month = date.toLocaleString("en-US", { month: "short" });
5793
- const year = date.getFullYear();
5794
- const time = date.toLocaleString("en-US", {
5795
- hour: "2-digit",
5796
- minute: "2-digit",
5797
- hour12: true
5798
- });
5799
- if (type === "date") return `${day} ${month} ${year}`;
5800
- if (type === "time") return time;
5801
- if (type === "datetime") return `${day} ${month} ${year} ${time}`;
5802
- return value;
4417
+ var LoaderService = class LoaderService {
4418
+ loadingStates = {};
4419
+ loadingSubject = new BehaviorSubject({});
4420
+ loading = this.loadingSubject.asObservable();
4421
+ nxtLoaderId = [];
4422
+ emitState() {
4423
+ const clonedState = Object.keys(this.loadingStates).reduce((acc, key) => {
4424
+ acc[key] = [...this.loadingStates[key]];
4425
+ return acc;
4426
+ }, {});
4427
+ this.loadingSubject.next(clonedState);
5803
4428
  }
5804
- static ɵfac = i0.ɵɵngDeclareFactory({
5805
- minVersion: "12.0.0",
5806
- version: "22.2.4",
5807
- ngImport: i0,
5808
- type: CustomDatePipe,
5809
- deps: [],
5810
- target: i0.ɵɵFactoryTarget.Pipe
5811
- });
5812
- static ɵpipe = i0.ɵɵngDeclarePipe({
5813
- minVersion: "14.0.0",
5814
- version: "22.2.4",
5815
- ngImport: i0,
5816
- type: CustomDatePipe,
5817
- isStandalone: true,
5818
- name: "customDate"
5819
- });
5820
- };
5821
- i0.ɵɵngDeclareClassMetadata({
5822
- minVersion: "12.0.0",
5823
- version: "22.2.4",
5824
- ngImport: i0,
5825
- type: CustomDatePipe,
5826
- decorators: [{
5827
- type: Pipe,
5828
- args: [{
5829
- name: "customDate",
5830
- standalone: true
5831
- }]
5832
- }]
5833
- });
5834
- var CustomTimePipe = class CustomTimePipe {
5835
- transform(value, timeFormat = "HH:mm") {
5836
- if (value === null || value === void 0 || value === "") return "";
5837
- const date = new Date(value);
5838
- if (isNaN(date.getTime())) return value;
5839
- return `${date.getHours().toString().padStart(2, "0")}:${date.getMinutes().toString().padStart(2, "0")}`;
4429
+ show(componentId, requestId) {
4430
+ if (!this.loadingStates[componentId]) this.loadingStates[componentId] = [];
4431
+ this.loadingStates[componentId] = [...this.loadingStates[componentId], requestId];
4432
+ this.emitState();
5840
4433
  }
5841
- static ɵfac = i0.ɵɵngDeclareFactory({
5842
- minVersion: "12.0.0",
5843
- version: "22.2.4",
5844
- ngImport: i0,
5845
- type: CustomTimePipe,
5846
- deps: [],
5847
- target: i0.ɵɵFactoryTarget.Pipe
5848
- });
5849
- static ɵpipe = i0.ɵɵngDeclarePipe({
5850
- minVersion: "14.0.0",
5851
- version: "22.2.4",
5852
- ngImport: i0,
5853
- type: CustomTimePipe,
5854
- isStandalone: true,
5855
- name: "customTime",
5856
- pure: false
5857
- });
5858
- };
5859
- i0.ɵɵngDeclareClassMetadata({
5860
- minVersion: "12.0.0",
5861
- version: "22.2.4",
5862
- ngImport: i0,
5863
- type: CustomTimePipe,
5864
- decorators: [{
5865
- type: Pipe,
5866
- args: [{
5867
- name: "customTime",
5868
- pure: false,
5869
- standalone: true
5870
- }]
5871
- }]
5872
- });
5873
- var ScrollService = class ScrollService {
5874
- scrollPositionSubject = new BehaviorSubject(0);
5875
- scrollPosition$ = this.scrollPositionSubject.asObservable();
5876
- setScrollPosition(position) {
5877
- this.scrollPositionSubject.next(position);
4434
+ hide(componentId, requestId) {
4435
+ if (this.loadingStates[componentId]) {
4436
+ const index = this.loadingStates[componentId].indexOf(requestId);
4437
+ if (index !== -1) this.loadingStates[componentId] = [...this.loadingStates[componentId].slice(0, index), ...this.loadingStates[componentId].slice(index + 1)];
4438
+ if (this.loadingStates[componentId].length === 0) delete this.loadingStates[componentId];
4439
+ this.emitState();
4440
+ }
4441
+ }
4442
+ nxtLoader(id) {
4443
+ if (this.nxtLoaderId.includes(id)) return;
4444
+ this.nxtLoaderId.push(id);
4445
+ }
4446
+ getNxtLoader() {
4447
+ return this.nxtLoaderId;
4448
+ }
4449
+ isLoading(componentId) {
4450
+ return !!this.loadingStates[componentId]?.length;
5878
4451
  }
5879
4452
  static ɵfac = i0.ɵɵngDeclareFactory({
5880
4453
  minVersion: "12.0.0",
5881
- version: "22.2.4",
4454
+ version: "22.2.5",
5882
4455
  ngImport: i0,
5883
- type: ScrollService,
4456
+ type: LoaderService,
5884
4457
  deps: [],
5885
4458
  target: i0.ɵɵFactoryTarget.Injectable
5886
4459
  });
5887
4460
  static ɵprov = i0.ɵɵngDeclareInjectable({
5888
4461
  minVersion: "12.0.0",
5889
- version: "22.2.4",
4462
+ version: "22.2.5",
5890
4463
  ngImport: i0,
5891
- type: ScrollService,
4464
+ type: LoaderService,
5892
4465
  providedIn: "root"
5893
4466
  });
5894
4467
  };
5895
4468
  i0.ɵɵngDeclareClassMetadata({
5896
4469
  minVersion: "12.0.0",
5897
- version: "22.2.4",
4470
+ version: "22.2.5",
5898
4471
  ngImport: i0,
5899
- type: ScrollService,
4472
+ type: LoaderService,
5900
4473
  decorators: [{
5901
4474
  type: Injectable,
5902
4475
  args: [{ providedIn: "root" }]
@@ -6585,7 +5158,7 @@ var DataTableComponent = class DataTableComponent {
6585
5158
  }
6586
5159
  static ɵfac = i0.ɵɵngDeclareFactory({
6587
5160
  minVersion: "12.0.0",
6588
- version: "22.2.4",
5161
+ version: "22.2.5",
6589
5162
  ngImport: i0,
6590
5163
  type: DataTableComponent,
6591
5164
  deps: [
@@ -6602,7 +5175,7 @@ var DataTableComponent = class DataTableComponent {
6602
5175
  });
6603
5176
  static ɵcmp = i0.ɵɵngDeclareComponent({
6604
5177
  minVersion: "14.0.0",
6605
- version: "22.2.4",
5178
+ version: "22.2.5",
6606
5179
  type: DataTableComponent,
6607
5180
  isStandalone: true,
6608
5181
  selector: "app-data-table",
@@ -7295,7 +5868,7 @@ var DataTableComponent = class DataTableComponent {
7295
5868
  };
7296
5869
  i0.ɵɵngDeclareClassMetadata({
7297
5870
  minVersion: "12.0.0",
7298
- version: "22.2.4",
5871
+ version: "22.2.5",
7299
5872
  ngImport: i0,
7300
5873
  type: DataTableComponent,
7301
5874
  decorators: [{
@@ -7633,7 +6206,7 @@ var FusionMonthPickerComponent = class FusionMonthPickerComponent {
7633
6206
  }
7634
6207
  static ɵfac = i0.ɵɵngDeclareFactory({
7635
6208
  minVersion: "12.0.0",
7636
- version: "22.2.4",
6209
+ version: "22.2.5",
7637
6210
  ngImport: i0,
7638
6211
  type: FusionMonthPickerComponent,
7639
6212
  deps: [{ token: i0.ElementRef }],
@@ -7641,7 +6214,7 @@ var FusionMonthPickerComponent = class FusionMonthPickerComponent {
7641
6214
  });
7642
6215
  static ɵcmp = i0.ɵɵngDeclareComponent({
7643
6216
  minVersion: "14.0.0",
7644
- version: "22.2.4",
6217
+ version: "22.2.5",
7645
6218
  type: FusionMonthPickerComponent,
7646
6219
  isStandalone: true,
7647
6220
  selector: "fusion-month-picker, nxt-month-picker",
@@ -7703,7 +6276,7 @@ var FusionMonthPickerComponent = class FusionMonthPickerComponent {
7703
6276
  };
7704
6277
  i0.ɵɵngDeclareClassMetadata({
7705
6278
  minVersion: "12.0.0",
7706
- version: "22.2.4",
6279
+ version: "22.2.5",
7707
6280
  ngImport: i0,
7708
6281
  type: FusionMonthPickerComponent,
7709
6282
  decorators: [{
@@ -7766,6 +6339,8 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7766
6339
  ];
7767
6340
  pageIndex = 0;
7768
6341
  isLoading = false;
6342
+ dataGetProperties;
6343
+ liveSyncing = false;
7769
6344
  title = "";
7770
6345
  titleOn = false;
7771
6346
  buttonLoadingSpinner = false;
@@ -7805,6 +6380,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7805
6380
  pageChange = new EventEmitter();
7806
6381
  pageDetails = new EventEmitter();
7807
6382
  searchFilterData = new EventEmitter();
6383
+ serverQueryChange = new EventEmitter();
7808
6384
  searchText = new EventEmitter();
7809
6385
  exportButton = new EventEmitter();
7810
6386
  importButton = new EventEmitter();
@@ -7821,6 +6397,12 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7821
6397
  itemsPerPage = Constants.PAGE_SIZE_OPTIONS;
7822
6398
  exportSidescreen = false;
7823
6399
  attendanceSubscription;
6400
+ searchSubject = new Subject();
6401
+ searchSubscription;
6402
+ filteredClientData = null;
6403
+ lastEmittedServerSearch = null;
6404
+ updatedRowIds = /* @__PURE__ */ new Set();
6405
+ highlightTimers = /* @__PURE__ */ new Map();
7824
6406
  selection = new SelectionModel(true, []);
7825
6407
  selectedMonth = (/* @__PURE__ */ new Date()).getMonth();
7826
6408
  selectedYear = (/* @__PURE__ */ new Date()).getFullYear();
@@ -7900,14 +6482,32 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7900
6482
  this.initOrUpdateDataSource(rows);
7901
6483
  });
7902
6484
  }
6485
+ get isServerSideMode() {
6486
+ return Boolean(this.dataGetProperties?.endpoint || this.totalRecords > 0);
6487
+ }
6488
+ trackByEmployeeId = (index, row) => {
6489
+ if (row?.isSkeleton) return `skeleton-${index}`;
6490
+ return row?.employeeId || row?.employeeDetail?.empId || index;
6491
+ };
6492
+ isRowUpdated(row) {
6493
+ const id = row?.employeeId || row?.employeeDetail?.empId;
6494
+ return Boolean(id && this.updatedRowIds.has(String(id)));
6495
+ }
7903
6496
  ngOnInit() {
7904
6497
  this.initMonthYear();
7905
6498
  this.ensureSummaryColumn();
7906
6499
  this.updateDateLookups();
7907
6500
  this.initOrUpdateDataSource(this.data);
6501
+ this.searchSubscription = this.searchSubject.pipe(debounceTime(300), distinctUntilChanged()).subscribe((value) => {
6502
+ this.emitServerSearch(value);
6503
+ });
7908
6504
  }
7909
6505
  ngOnChanges(changes) {
7910
6506
  if (changes["data"] && this.data) this.initOrUpdateDataSource(this.data);
6507
+ if (changes["totalRecords"] || changes["dataGetProperties"]) {
6508
+ this.totalCount = this.totalRecords || (Array.isArray(this.data) ? this.data.length : 0);
6509
+ this.cdr.markForCheck();
6510
+ }
7911
6511
  if (changes["month"]?.currentValue) this.selectedMonth = this.getMonthNumber(changes["month"].currentValue);
7912
6512
  if (changes["year"]?.currentValue) this.selectedYear = Number(changes["year"].currentValue) || this.selectedYear;
7913
6513
  if (changes["displayedColumns"]) this.ensureSummaryColumn();
@@ -7916,6 +6516,10 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7916
6516
  }
7917
6517
  ngOnDestroy() {
7918
6518
  this.attendanceSubscription?.unsubscribe();
6519
+ this.searchSubscription?.unsubscribe();
6520
+ this.searchSubject.complete();
6521
+ this.highlightTimers.forEach((timer) => clearTimeout(timer));
6522
+ this.highlightTimers.clear();
7919
6523
  }
7920
6524
  initMonthYear() {
7921
6525
  if (this.month !== void 0) this.selectedMonth = this.getMonthNumber(this.month);
@@ -7933,6 +6537,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7933
6537
  return;
7934
6538
  }
7935
6539
  const records = Array.isArray(rows) ? rows : [];
6540
+ this.filteredClientData = null;
7936
6541
  this.dataSource = new MatTableDataSource(records);
7937
6542
  this.selection.clear();
7938
6543
  if (this.sort) this.dataSource.sort = this.sort;
@@ -7941,10 +6546,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
7941
6546
  this.pageSize = storedSize ? Number(storedSize) : this.pageSize;
7942
6547
  this.pageIndex = storedIndex || 1;
7943
6548
  this.totalCount = this.totalRecords || records.length;
7944
- if (this.searchTextValue) {
7945
- this.dataSource.filter = this.searchTextValue.trim().toLowerCase();
7946
- if (this.paginator?.firstPage) this.paginator.firstPage();
7947
- }
6549
+ if (!this.isServerSideMode && this.searchTextValue && this.searchTextValue.trim()) this.applyClientFilterAndSlice(this.searchTextValue, false);
7948
6550
  this.cdr.markForCheck();
7949
6551
  }
7950
6552
  updateDateLookups() {
@@ -8115,20 +6717,31 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8115
6717
  this.pageChange.emit(event);
8116
6718
  }
8117
6719
  pageParams(event) {
8118
- if (!this.totalRecords && this.data) {
8119
- const page = Number(event.pageIndex) || 1;
8120
- const size = Number(event.pageSize) || 10;
6720
+ const page = Number(event.pageIndex) || 1;
6721
+ const size = Number(event.pageSize) || 10;
6722
+ if (!this.isServerSideMode && this.data) {
6723
+ const sourceRows = this.filteredClientData ?? this.data;
8121
6724
  const start = (page - 1) * size;
8122
6725
  const end = start + size;
8123
- this.dataSource.data = this.data.slice(start, end);
6726
+ this.dataSource.data = sourceRows.slice(start, end);
8124
6727
  }
8125
- localStorage.setItem("attendanceTableSize", event.pageSize);
8126
- localStorage.setItem("attendanceTableIndex", event.pageIndex);
8127
- this.onPageChange(event);
6728
+ localStorage.setItem("attendanceTableSize", String(size));
6729
+ localStorage.setItem("attendanceTableIndex", String(page));
6730
+ this.onPageChange({
6731
+ pageIndex: page,
6732
+ pageSize: size
6733
+ });
8128
6734
  this.pageDetails.emit({
8129
- pageSize: event.pageSize,
8130
- pageIndex: Number(event.pageIndex)
6735
+ pageSize: size,
6736
+ pageIndex: page
6737
+ });
6738
+ if (this.isServerSideMode) this.serverQueryChange.emit({
6739
+ searchText: (this.searchTextValue || "").trim(),
6740
+ pageIndex: page,
6741
+ pageSize: size,
6742
+ dataGetProperties: this.dataGetProperties
8131
6743
  });
6744
+ this.cdr.markForCheck();
8132
6745
  }
8133
6746
  onMonthPickerChange(event) {
8134
6747
  this.selectedMonth = event.month;
@@ -8191,12 +6804,106 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8191
6804
  });
8192
6805
  }
8193
6806
  applyFilter(event) {
8194
- const filterValue = event.target.value;
8195
- this.dataSource.filter = filterValue.trim().toLowerCase();
8196
- this.searchFilterData.emit(this.dataSource.filteredData);
8197
- this.searchValueChange.emit(filterValue);
8198
- this.searchText.emit(filterValue);
6807
+ const filterValue = event.target?.value ?? "";
6808
+ this.searchTextValue = filterValue;
6809
+ if (this.isServerSideMode) {
6810
+ if (event?.key === "Enter" || filterValue.trim() === "") this.emitServerSearch(filterValue);
6811
+ else this.searchSubject.next(filterValue);
6812
+ return;
6813
+ }
6814
+ this.applyClientFilterAndSlice(filterValue, true);
6815
+ }
6816
+ emitServerSearch(rawValue) {
6817
+ const trimmed = (rawValue || "").trim();
6818
+ if (this.lastEmittedServerSearch === trimmed) return;
6819
+ this.lastEmittedServerSearch = trimmed;
6820
+ this.pageIndex = 1;
6821
+ localStorage.setItem("attendanceTableIndex", "1");
6822
+ this.searchValueChange.emit(rawValue);
6823
+ this.searchText.emit(rawValue);
6824
+ this.serverQueryChange.emit({
6825
+ searchText: trimmed,
6826
+ pageIndex: 1,
6827
+ pageSize: this.pageSize,
6828
+ dataGetProperties: this.dataGetProperties
6829
+ });
6830
+ this.cdr.markForCheck();
6831
+ }
6832
+ applyClientFilterAndSlice(rawValue, emitEvents) {
6833
+ const normalized = (rawValue || "").trim().toLowerCase();
6834
+ const allRows = Array.isArray(this.data) ? this.data : [];
6835
+ if (!normalized) {
6836
+ this.filteredClientData = null;
6837
+ this.totalCount = allRows.length;
6838
+ this.pageIndex = 1;
6839
+ this.dataSource.filter = "";
6840
+ this.dataSource.data = allRows.slice(0, this.pageSize);
6841
+ } else {
6842
+ const tempSource = new MatTableDataSource(allRows);
6843
+ tempSource.filter = normalized;
6844
+ const matched = tempSource.filteredData;
6845
+ this.filteredClientData = matched;
6846
+ this.totalCount = matched.length;
6847
+ this.pageIndex = 1;
6848
+ this.dataSource.filter = "";
6849
+ this.dataSource.data = matched.slice(0, this.pageSize);
6850
+ }
6851
+ if (emitEvents) {
6852
+ this.searchFilterData.emit(this.filteredClientData ?? allRows);
6853
+ this.searchValueChange.emit(rawValue);
6854
+ this.searchText.emit(rawValue);
6855
+ }
8199
6856
  if (this.paginator?.firstPage) this.paginator.firstPage();
6857
+ this.cdr.markForCheck();
6858
+ }
6859
+ patchRows(updatedRows) {
6860
+ if (!Array.isArray(updatedRows) || updatedRows.length === 0) return;
6861
+ const currentRows = Array.isArray(this.dataSource.data) ? [...this.dataSource.data] : [];
6862
+ const indexByEmpId = /* @__PURE__ */ new Map();
6863
+ currentRows.forEach((row, idx) => {
6864
+ const id = row?.employeeId || row?.employeeDetail?.empId;
6865
+ if (id) indexByEmpId.set(String(id), idx);
6866
+ });
6867
+ const dataRows = Array.isArray(this.data) ? [...this.data] : [];
6868
+ const dataIndexByEmpId = /* @__PURE__ */ new Map();
6869
+ dataRows.forEach((row, idx) => {
6870
+ const id = row?.employeeId || row?.employeeDetail?.empId;
6871
+ if (id) dataIndexByEmpId.set(String(id), idx);
6872
+ });
6873
+ updatedRows.forEach((incoming) => {
6874
+ const id = incoming?.employeeId || incoming?.employeeDetail?.empId;
6875
+ if (!id) return;
6876
+ const key = String(id);
6877
+ const visibleIdx = indexByEmpId.get(key);
6878
+ if (visibleIdx !== void 0) currentRows[visibleIdx] = {
6879
+ ...currentRows[visibleIdx],
6880
+ ...incoming
6881
+ };
6882
+ else if (currentRows.length < this.pageSize) {
6883
+ currentRows.push(incoming);
6884
+ indexByEmpId.set(key, currentRows.length - 1);
6885
+ }
6886
+ const dataIdx = dataIndexByEmpId.get(key);
6887
+ if (dataIdx !== void 0) dataRows[dataIdx] = {
6888
+ ...dataRows[dataIdx],
6889
+ ...incoming
6890
+ };
6891
+ else {
6892
+ dataRows.push(incoming);
6893
+ dataIndexByEmpId.set(key, dataRows.length - 1);
6894
+ }
6895
+ this.updatedRowIds.add(key);
6896
+ const existingTimer = this.highlightTimers.get(key);
6897
+ if (existingTimer) clearTimeout(existingTimer);
6898
+ this.highlightTimers.set(key, setTimeout(() => {
6899
+ this.updatedRowIds.delete(key);
6900
+ this.highlightTimers.delete(key);
6901
+ this.cdr.markForCheck();
6902
+ }, 1800));
6903
+ });
6904
+ this.data = dataRows;
6905
+ this.dataSource.data = currentRows;
6906
+ this.cdr.markForCheck();
8200
6907
  }
8201
6908
  isAllSelected() {
8202
6909
  if (this.isLoading || !this.dataSource.data.length) return false;
@@ -8262,7 +6969,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8262
6969
  }
8263
6970
  static ɵfac = i0.ɵɵngDeclareFactory({
8264
6971
  minVersion: "12.0.0",
8265
- version: "22.2.4",
6972
+ version: "22.2.5",
8266
6973
  ngImport: i0,
8267
6974
  type: AttendanceTableComponent,
8268
6975
  deps: [
@@ -8274,7 +6981,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8274
6981
  });
8275
6982
  static ɵcmp = i0.ɵɵngDeclareComponent({
8276
6983
  minVersion: "14.0.0",
8277
- version: "22.2.4",
6984
+ version: "22.2.5",
8278
6985
  type: AttendanceTableComponent,
8279
6986
  isStandalone: true,
8280
6987
  selector: "app-attendance-table, app-data-table-two",
@@ -8300,6 +7007,8 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8300
7007
  pageSizeOptions: "pageSizeOptions",
8301
7008
  pageIndex: "pageIndex",
8302
7009
  isLoading: "isLoading",
7010
+ dataGetProperties: "dataGetProperties",
7011
+ liveSyncing: "liveSyncing",
8303
7012
  title: "title",
8304
7013
  titleOn: "titleOn",
8305
7014
  buttonLoadingSpinner: "buttonLoadingSpinner",
@@ -8326,6 +7035,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8326
7035
  pageChange: "pageChange",
8327
7036
  pageDetails: "pageDetails",
8328
7037
  searchFilterData: "searchFilterData",
7038
+ serverQueryChange: "serverQueryChange",
8329
7039
  searchText: "searchText",
8330
7040
  exportButton: "exportButton",
8331
7041
  importButton: "importButton",
@@ -8352,8 +7062,8 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8352
7062
  }],
8353
7063
  usesOnChanges: true,
8354
7064
  ngImport: i0,
8355
- 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\">&#10003;</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">&#10005;</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">&#10003;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">&#10005;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </app-pagination>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
8356
- 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"],
7065
+ template: "<!-- MR 10NOV26 Port exact DataTableTwoComponent template from host testMaster -->\n<div class=\"table-layout w-100\" [id]=\"tableId\">\n <div>\n <div class=\"d-flex justify-content-between align-items-center\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex align-items-center gap-2\">\n <!-- MR 16NOV26 Projected content for toolbar left slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (left aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'left'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (right aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'right'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n\n <!-- MR 16NOV26 Projected content for toolbar right slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n <!-- MR 16NOV26 Contextual date range or title placed compactly in toolbar -->\n <div class=\"table-subtitle me-2\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n <!-- MR 22NOV26 Non-blocking live SSE sync indicator in toolbar -->\n <span *ngIf=\"liveSyncing\" class=\"live-sync-pill\" role=\"status\" aria-live=\"polite\">\n <span class=\"live-sync-dot\"></span>\n <span>Live updating...</span>\n </span>\n <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar\">\n <input type=\"text\" placeholder=\"{{ 'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search' }}\"\n matInput (keyup)=\"applyFilter($event)\" #input [value]=\"searchTextValue || ''\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\" class=\"btn btn-primary me-2\"\n (click)=\"confirmModal = true\">{{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}</button>\n <div class=\"flex\">\n <!-- MR 18OCT26 Add clear tooltips for Import and Export toolbar buttons -->\n <!-- MR 21NOV26 Replace nxt-button with native app-fusion-button -->\n <app-fusion-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event)\"\n [buttonType]=\"button?.class\" [buttonValue]=\"button?.namePath\" [buttonConfig]=\"button?.buttonConfig\"\n [type]=\"button?.type\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\n </div>\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\">\n <!-- MR 18OCT26 Single unified MatTable eliminates header style discrepancy and checkbox shadow -->\n <!-- MR 22NOV26 Track rows by employeeId for in-place live SSE patching -->\n <table mat-table [dataSource]=\"dataSource\" [trackBy]=\"trackByEmployeeId\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.sticky-column]=\"isColumnSticky(column) || column === 'summary' || i === (stickyCondition - 1)\"\n [class.week-off]=\"isWeekend(column)\"\n style=\"text-align: center; padding: 0px !important;\" *matCellDef=\"let element\">\n <ng-container *ngIf=\"!element?.isSkeleton; else skeletonCell\">\n <!-- Employee Detail Column with Avatar and Metadata -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"emp-avatar\">\n {{ getInitials(element[column]?.empName || element.employeeName || element.name) }}\n </div>\n <div class=\"emp-meta\">\n <div class=\"emp-name-row\">\n <span class=\"emp-name\" [class.hyper-link]=\"hyperLinkColumns.includes(column)\"\n (click)=\"hyperLinkColumns.includes(column) ? hyperLinkClick(element, column, i) : ''\"\n [title]=\"element[column]?.empName || element.employeeName || element.name\">\n {{ element[column]?.empName || element.employeeName || element.name }}\n </span>\n <span *ngIf=\"element[column]?.empId || element.employeeId || element.empId\" class=\"emp-id-tag\">\n {{ element[column]?.empId || element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-sub-row\" [title]=\"(element[column]?.desig || element.designation || '') + ((element[column]?.loc || element.location) ? (', ' + (element[column]?.loc || element.location)) : '')\">\n <span>{{ element[column]?.desig || element.designation }}</span>\n <span *ngIf=\"(element[column]?.desig || element.designation) && (element[column]?.loc || element.location)\">, </span>\n <span>{{ element[column]?.loc || element.location }}</span>\n </div>\n </div>\n </div>\n\n <!-- Summary Pill Column -->\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <span class=\"summary-pill\" [class.summary-pill--target]=\"isNearTarget(element.workingDays ?? element.presentDays, element.totalCompanyWorkingDays ?? element.totalWorkingDays)\"\n [title]=\"'Present: ' + (element.workingDays ?? element.presentDays ?? 0) + ' / Total Working Days: ' + (element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0)\">\n {{element.workingDays ?? element.presentDays ?? 0}}/{{element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0}}\n </span>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">&#10003;</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">&#10005;</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n [class.row-live-updated]=\"isRowUpdated(row)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"\n [class.row-live-updated]=\"isRowUpdated(row)\"\n (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">&#10003;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">&#10005;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </app-pagination>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
7066
+ styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{max-height:600px;overflow-y:auto;display:block;width:100%}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-normal);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important;color:var(--fb-text-primary, #0f172a)!important}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);background:var(--fb-surface, #ffffff);border-radius:6px;align-self:center}.search-bar{display:flex;flex-direction:row;align-items:center;width:100%;margin:5px}.card-btn{height:18px;width:18px}td.mat-cell:last-of-type{padding:8px;font-size:var(--fs-medium)}.table-title{font-weight:var(--fw-600);font-size:var(--fs-medium)}.search-component{top:20px;width:max-content;right:-30%}.sticky-column{background-color:var(--fb-surface, #ffffff)}th.sticky-column{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.mat-sort-header-container{margin-left:5px}.body-color img{width:25px;padding:5px;cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border:none;color:var(--fb-text-primary, #0f172a);max-width:50px}.mat-cell{padding:8px;white-space:nowrap;text-overflow:ellipsis}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.mat-column-select{width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center;padding:0!important;overflow:clip!important;text-overflow:clip!important}.mat-column-employeeDetail{width:260px!important;min-width:260px!important;max-width:260px!important;left:44px!important;padding-left:8px!important;padding-right:8px!important}.mat-column-summary{width:64px!important;min-width:64px!important;max-width:64px!important;text-align:center;padding:0 4px!important}.th-td{width:36px!important;min-width:36px!important;max-width:36px!important;text-align:center;padding:0!important}::ng-deep .mdc-data-table__cell,.mdc-data-table__header-cell{padding:0!important}::ng-deep .mat-mdc-checkbox-touch-target{height:28px!important}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding:0 8px}.mat-row{height:56px!important;min-height:56px!important;transition:background-color .15s ease}.mat-row:hover,.mat-row:hover .sticky-column,.mat-row:hover .sticky-col{background-color:var(--fb-row-hover, #f8fafc)!important}.mat-cell{height:56px!important;padding:0 2px!important;white-space:nowrap;color:var(--fb-text-primary, #0f172a)}.mat-header-row{height:52px!important;position:sticky;top:0;background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important;z-index:20;border-bottom:1px solid var(--fb-border-default, #e2e8f0);color:var(--fb-text-primary, #0f172a)}.sticky-select .mdc-checkbox{opacity:.55;transition:opacity .15s ease}.mat-row:hover .sticky-select .mdc-checkbox,.sticky-select .mdc-checkbox--selected,.sticky-select .mdc-checkbox--indeterminate{opacity:1!important}.week-off{background:var(--week-off, #f8fafc)!important}.holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%)!important;color:var(--holiday, #0284c7)}.attendance-chip{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);cursor:pointer;transition:transform .1s ease;-webkit-user-select:none;user-select:none}.attendance-chip:hover{transform:scale(1.1)}.attendance-chip.attendance-present{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a)}.attendance-chip.attendance-absent{background:color-mix(in srgb,var(--attendance-absent, #ef4444),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-absent, #ef4444)}.attendance-chip.attendance-half{background:color-mix(in srgb,var(--attendance-half, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:color-mix(in srgb,var(--attendance-half, #f59e0b),black 45%)}.attendance-chip.attendance-holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%);color:var(--holiday, #0284c7)}.attendance-chip.attendance-review{background:color-mix(in srgb,var(--clr-warning, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:var(--clr-warning, #f59e0b)}.attendance-chip.attendance-weekoff{background:color-mix(in srgb,var(--attendance-weekoff, #64748b),var(--comp-bg-color, #ffffff) 90%);color:var(--attendance-weekoff, #64748b)}.att-missing{width:20px;height:20px;border:1px dashed color-mix(in srgb,var(--border-color, #e2e8f0),black 15%);border-radius:6px;display:inline-block}.att-future{color:var(--fc-text-color-light, #94a3b8);font-size:16px;line-height:1;display:inline-block;opacity:.5}.att-dash{color:var(--label-text-color-light, #64748b);font-size:14px}.emp-cell-container{display:flex;align-items:center;gap:10px;width:100%;padding:0 4px}.emp-avatar{width:32px;height:32px;min-width:32px;border-radius:50%;font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);display:flex;align-items:center;justify-content:center;flex-shrink:0}.emp-meta{display:flex;flex-direction:column;overflow:hidden;text-align:left;line-height:1.25;min-width:0}.emp-name-row{display:flex;align-items:center;gap:6px;overflow:hidden}.emp-name{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emp-id-tag{font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-500, 500);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);padding:1px 5px;border-radius:4px;border:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.emp-sub-row{font-size:var(--fs-Usmall, 11px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.summary-pill{padding:2px 8px;border-radius:20px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);border:1px solid var(--border-color, #e2e8f0);display:inline-block;white-space:nowrap}.summary-pill--target{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a);border-color:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 70%)}.head-employee-label{font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a)}.head-day-letter{font-size:var(--fs-Usmall, 11px);color:var(--fc-text-color-light, #64748b);font-weight:var(--fw-500, 500);line-height:1;text-transform:uppercase}.head-date-num{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);line-height:1.4;margin-top:2px}.head-today{background:var(--fb-action, #003566)!important;color:var(--fb-text-on-action, #ffffff)!important;border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.head-muted{color:var(--fb-text-muted, #94a3b8)!important}.attendance-footer-legends{font-size:var(--fs-small, 12px);padding:0 8px}.legend-text{font-size:var(--fs-small, 12px);color:var(--fc-text-color-dark, #0f172a);font-weight:var(--fw-500, 500)}.table-subtitle{font-size:var(--fs-normal, 13px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500)}@media screen and (min-width:600px){mat-table{font-size:18px}}@media screen and (max-width:882px){mat-table{font-size:var(--fs-medium)}.mat-column-name,.mat-column-weight{display:none}.mat-header-cell{padding:8px}}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline;cursor:pointer}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.btn-primary{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action, #003566)!important;border-color:var(--fb-action, #003566)!important;padding:4px 9px;border-radius:.375rem}.btn-primary:hover{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-hover, #00284d)!important;border-color:var(--fb-action-hover, #00284d)!important}.btn-primary:active,.btn-primary.active,.show>.btn-primary.dropdown-toggle{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-pressed, #001f3f)!important;border-color:var(--fb-action-pressed, #001f3f)!important}.btn-primary:disabled,.btn-primary.disabled{color:var(--fb-text-disabled, #94a3b8)!important;background-color:var(--fb-action-disabled, #e2e8f0)!important;border-color:var(--fb-action-disabled, #e2e8f0)!important}::ng-deep .clickable-img{height:36px!important;transition:unset!important;border:unset!important;border-radius:0!important}::ng-deep app-fusion-button.ms-2,::ng-deep app-fusion-button.me-2{margin-left:0!important;margin-right:0!important}.body-color img{border-radius:8px!important}.modal-backdrop{opacity:.9}.mat-table{width:100%;border-spacing:0}.mat-header-row{position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-text-primary, #0f172a);z-index:2}.picker-container{display:flex;align-items:center;font-size:18px;font-weight:600;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.month-label{cursor:pointer;min-width:100px;text-align:center;font-size:var(--fs-medium, 14px)}.arrow-btn{border:none;background:transparent;font-size:20px;cursor:pointer}.popup{position:absolute;margin-top:45px;background:var(--fb-surface-elevated, #ffffff);padding:15px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0,0,0,.12));border-radius:var(--radius-medium, 8px);width:200px;z-index:1000}.year-section{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:10px;font-size:var(--fs-medium, 14px)}.year-section button{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:none;padding:3px 8px;font-size:14px;cursor:pointer}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-size:var(--fs-medium, 14px)}.month-item{padding:6px;border-radius:4px;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc)}.month-item.active{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.Legend-font{font-size:var(--fs-normal, 13px)}.table-margin,.Legend-div{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.sticky-checkbox{position:sticky;left:0;z-index:1000;background:var(--fb-surface, #ffffff);min-width:48px;width:48px}th.sticky-checkbox{z-index:1100}.live-sync-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);white-space:nowrap}.live-sync-dot{width:7px;height:7px;border-radius:50%;background:var(--fb-action, #003566);animation:live-sync-pulse 1.2s ease-in-out infinite}@keyframes live-sync-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}.mat-row.row-live-updated,.mat-row.row-live-updated .sticky-column,.mat-row.row-live-updated .sticky-col{background-color:var(--fb-success-surface, #dcfce7)!important;transition:background-color .6s ease}\n"],
8357
7067
  dependencies: [
8358
7068
  {
8359
7069
  kind: "ngmodule",
@@ -8528,36 +7238,31 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8528
7238
  },
8529
7239
  {
8530
7240
  kind: "component",
8531
- type: NxtButtonComponent,
8532
- selector: "nxt-button",
7241
+ type: FusionButtonComponent,
7242
+ selector: "app-fusion-button",
8533
7243
  inputs: [
8534
7244
  "buttonValue",
7245
+ "buttonValuePath",
8535
7246
  "buttonType",
8536
7247
  "type",
8537
7248
  "buttonDisable",
8538
- "btnBgColor",
8539
- "btnBorder",
8540
- "btnBorderRadius",
8541
- "btnBorderColor",
8542
- "btnTextColor",
8543
- "btnHeight",
8544
- "btnWidth",
8545
- "btnIconLeftSrc",
8546
- "btnIconRightSrc",
8547
- "btnHoverBgColor",
8548
- "btnHoverTextColor",
8549
- "btnId",
7249
+ "fcBtnBgColor",
7250
+ "fcBtnBorder",
7251
+ "fcBtnTextColor",
7252
+ "fcBtnHeight",
7253
+ "fcBtnWidth",
7254
+ "fcBtnIconLeftSrc",
7255
+ "fcBtnIconRightSrc",
7256
+ "fcBtnHoverBgColor",
7257
+ "fcBtnHoverTextColor",
7258
+ "fcBtnId",
8550
7259
  "dataDismiss",
7260
+ "fcButtonBorder",
8551
7261
  "modalToTrigger",
8552
7262
  "isImageSvg",
8553
7263
  "tabIndex",
8554
7264
  "buttonConfig",
8555
- "mode",
8556
- "languageCode",
8557
- "padding",
8558
- "isLoading",
8559
- "selector",
8560
- "dropdownLoadingButton"
7265
+ "buttonLoadingSpinner"
8561
7266
  ],
8562
7267
  outputs: ["buttonClickEmit"]
8563
7268
  },
@@ -8657,7 +7362,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
8657
7362
  };
8658
7363
  i0.ɵɵngDeclareClassMetadata({
8659
7364
  minVersion: "12.0.0",
8660
- version: "22.2.4",
7365
+ version: "22.2.5",
8661
7366
  ngImport: i0,
8662
7367
  type: AttendanceTableComponent,
8663
7368
  decorators: [{
@@ -8674,7 +7379,7 @@ i0.ɵɵngDeclareClassMetadata({
8674
7379
  MatPaginatorModule,
8675
7380
  MatTooltipModule,
8676
7381
  MatCheckboxModule,
8677
- NxtButtonComponent,
7382
+ FusionButtonComponent,
8678
7383
  CommonScreenComponent,
8679
7384
  MultiCheckboxComponent,
8680
7385
  MultipleFilterComponent,
@@ -8687,8 +7392,8 @@ i0.ɵɵngDeclareClassMetadata({
8687
7392
  provide: MatPaginatorIntl,
8688
7393
  useClass: CustomPaginatorIntl
8689
7394
  }],
8690
- 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\">&#10003;</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">&#10005;</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">&#10003;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">&#10005;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </app-pagination>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
8691
- 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"]
7395
+ template: "<!-- MR 10NOV26 Port exact DataTableTwoComponent template from host testMaster -->\n<div class=\"table-layout w-100\" [id]=\"tableId\">\n <div>\n <div class=\"d-flex justify-content-between align-items-center\" style=\"padding-bottom: 5px\">\n <div class=\"d-flex align-items-center gap-2\">\n <!-- MR 16NOV26 Projected content for toolbar left slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (left aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'left'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n </div>\n <!-- SK10APR24 import and export button added inside table -->\n <div class=\"d-flex gap-2 align-items-center\">\n <!-- MR 16NOV26 Integrated standalone FusionMonthPickerComponent (right aligned) -->\n <fusion-month-picker\n *ngIf=\"monthPickerPosition === 'right'\"\n [value]=\"months[selectedMonth] + ' ' + selectedYear\"\n [monthNames]=\"monthArray && monthArray.length > 0 ? monthArray : months\"\n (monthChange)=\"onMonthPickerChange($event)\">\n </fusion-month-picker>\n\n <!-- MR 16NOV26 Projected content for toolbar right slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n <!-- MR 16NOV26 Contextual date range or title placed compactly in toolbar -->\n <div class=\"table-subtitle me-2\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n <!-- MR 22NOV26 Non-blocking live SSE sync indicator in toolbar -->\n <span *ngIf=\"liveSyncing\" class=\"live-sync-pill\" role=\"status\" aria-live=\"polite\">\n <span class=\"live-sync-dot\"></span>\n <span>Live updating...</span>\n </span>\n <div class=\"search\" *ngIf=\"searchBar\">\n <div class=\"search-bar\">\n <input type=\"text\" placeholder=\"{{ 'APP_HRM_ATTENDANCE_TABLE.SEARCH' | customTranslate : 'Search' }}\"\n matInput (keyup)=\"applyFilter($event)\" #input [value]=\"searchTextValue || ''\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n </div>\n </div>\n <button *ngIf=\"isSandwichLeave && isCheckButton !== false\" class=\"btn btn-primary me-2\"\n (click)=\"confirmModal = true\">{{ 'APP_HRM_ATTENDANCE.CHECK' | customTranslate : 'Check' }}</button>\n <div class=\"flex\">\n <!-- MR 18OCT26 Add clear tooltips for Import and Export toolbar buttons -->\n <!-- MR 21NOV26 Replace nxt-button with native app-fusion-button -->\n <app-fusion-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event)\"\n [buttonType]=\"button?.class\" [buttonValue]=\"button?.namePath\" [buttonConfig]=\"button?.buttonConfig\"\n [type]=\"button?.type\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\n </div>\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\">\n <!-- MR 18OCT26 Single unified MatTable eliminates header style discrepancy and checkbox shadow -->\n <!-- MR 22NOV26 Track rows by employeeId for in-place live SSE patching -->\n <table mat-table [dataSource]=\"dataSource\" [trackBy]=\"trackByEmployeeId\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.sticky-column]=\"isColumnSticky(column) || column === 'summary' || i === (stickyCondition - 1)\"\n [class.week-off]=\"isWeekend(column)\"\n style=\"text-align: center; padding: 0px !important;\" *matCellDef=\"let element\">\n <ng-container *ngIf=\"!element?.isSkeleton; else skeletonCell\">\n <!-- Employee Detail Column with Avatar and Metadata -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"emp-avatar\">\n {{ getInitials(element[column]?.empName || element.employeeName || element.name) }}\n </div>\n <div class=\"emp-meta\">\n <div class=\"emp-name-row\">\n <span class=\"emp-name\" [class.hyper-link]=\"hyperLinkColumns.includes(column)\"\n (click)=\"hyperLinkColumns.includes(column) ? hyperLinkClick(element, column, i) : ''\"\n [title]=\"element[column]?.empName || element.employeeName || element.name\">\n {{ element[column]?.empName || element.employeeName || element.name }}\n </span>\n <span *ngIf=\"element[column]?.empId || element.employeeId || element.empId\" class=\"emp-id-tag\">\n {{ element[column]?.empId || element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-sub-row\" [title]=\"(element[column]?.desig || element.designation || '') + ((element[column]?.loc || element.location) ? (', ' + (element[column]?.loc || element.location)) : '')\">\n <span>{{ element[column]?.desig || element.designation }}</span>\n <span *ngIf=\"(element[column]?.desig || element.designation) && (element[column]?.loc || element.location)\">, </span>\n <span>{{ element[column]?.loc || element.location }}</span>\n </div>\n </div>\n </div>\n\n <!-- Summary Pill Column -->\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <span class=\"summary-pill\" [class.summary-pill--target]=\"isNearTarget(element.workingDays ?? element.presentDays, element.totalCompanyWorkingDays ?? element.totalWorkingDays)\"\n [title]=\"'Present: ' + (element.workingDays ?? element.presentDays ?? 0) + ' / Total Working Days: ' + (element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0)\">\n {{element.workingDays ?? element.presentDays ?? 0}}/{{element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0}}\n </span>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">&#10003;</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">&#10005;</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n [class.row-live-updated]=\"isRowUpdated(row)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"\n [class.row-live-updated]=\"isRowUpdated(row)\"\n (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">&#10003;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">&#10005;</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </app-pagination>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
7396
+ styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{max-height:600px;overflow-y:auto;display:block;width:100%}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-normal);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important;color:var(--fb-text-primary, #0f172a)!important}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;justify-content:space-between;border:1px solid var(--fb-border-default, #e2e8f0);background:var(--fb-surface, #ffffff);border-radius:6px;align-self:center}.search-bar{display:flex;flex-direction:row;align-items:center;width:100%;margin:5px}.card-btn{height:18px;width:18px}td.mat-cell:last-of-type{padding:8px;font-size:var(--fs-medium)}.table-title{font-weight:var(--fw-600);font-size:var(--fs-medium)}.search-component{top:20px;width:max-content;right:-30%}.sticky-column{background-color:var(--fb-surface, #ffffff)}th.sticky-column{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.mat-sort-header-container{margin-left:5px}.body-color img{width:25px;padding:5px;cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border:none;color:var(--fb-text-primary, #0f172a);max-width:50px}.mat-cell{padding:8px;white-space:nowrap;text-overflow:ellipsis}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.mat-column-select{width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center;padding:0!important;overflow:clip!important;text-overflow:clip!important}.mat-column-employeeDetail{width:260px!important;min-width:260px!important;max-width:260px!important;left:44px!important;padding-left:8px!important;padding-right:8px!important}.mat-column-summary{width:64px!important;min-width:64px!important;max-width:64px!important;text-align:center;padding:0 4px!important}.th-td{width:36px!important;min-width:36px!important;max-width:36px!important;text-align:center;padding:0!important}::ng-deep .mdc-data-table__cell,.mdc-data-table__header-cell{padding:0!important}::ng-deep .mat-mdc-checkbox-touch-target{height:28px!important}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding:0 8px}.mat-row{height:56px!important;min-height:56px!important;transition:background-color .15s ease}.mat-row:hover,.mat-row:hover .sticky-column,.mat-row:hover .sticky-col{background-color:var(--fb-row-hover, #f8fafc)!important}.mat-cell{height:56px!important;padding:0 2px!important;white-space:nowrap;color:var(--fb-text-primary, #0f172a)}.mat-header-row{height:52px!important;position:sticky;top:0;background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important;z-index:20;border-bottom:1px solid var(--fb-border-default, #e2e8f0);color:var(--fb-text-primary, #0f172a)}.sticky-select .mdc-checkbox{opacity:.55;transition:opacity .15s ease}.mat-row:hover .sticky-select .mdc-checkbox,.sticky-select .mdc-checkbox--selected,.sticky-select .mdc-checkbox--indeterminate{opacity:1!important}.week-off{background:var(--week-off, #f8fafc)!important}.holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%)!important;color:var(--holiday, #0284c7)}.attendance-chip{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);cursor:pointer;transition:transform .1s ease;-webkit-user-select:none;user-select:none}.attendance-chip:hover{transform:scale(1.1)}.attendance-chip.attendance-present{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a)}.attendance-chip.attendance-absent{background:color-mix(in srgb,var(--attendance-absent, #ef4444),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-absent, #ef4444)}.attendance-chip.attendance-half{background:color-mix(in srgb,var(--attendance-half, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:color-mix(in srgb,var(--attendance-half, #f59e0b),black 45%)}.attendance-chip.attendance-holiday{background:color-mix(in srgb,var(--holiday, #0284c7),var(--comp-bg-color, #ffffff) 88%);color:var(--holiday, #0284c7)}.attendance-chip.attendance-review{background:color-mix(in srgb,var(--clr-warning, #f59e0b),var(--comp-bg-color, #ffffff) 85%);color:var(--clr-warning, #f59e0b)}.attendance-chip.attendance-weekoff{background:color-mix(in srgb,var(--attendance-weekoff, #64748b),var(--comp-bg-color, #ffffff) 90%);color:var(--attendance-weekoff, #64748b)}.att-missing{width:20px;height:20px;border:1px dashed color-mix(in srgb,var(--border-color, #e2e8f0),black 15%);border-radius:6px;display:inline-block}.att-future{color:var(--fc-text-color-light, #94a3b8);font-size:16px;line-height:1;display:inline-block;opacity:.5}.att-dash{color:var(--label-text-color-light, #64748b);font-size:14px}.emp-cell-container{display:flex;align-items:center;gap:10px;width:100%;padding:0 4px}.emp-avatar{width:32px;height:32px;min-width:32px;border-radius:50%;font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);display:flex;align-items:center;justify-content:center;flex-shrink:0}.emp-meta{display:flex;flex-direction:column;overflow:hidden;text-align:left;line-height:1.25;min-width:0}.emp-name-row{display:flex;align-items:center;gap:6px;overflow:hidden}.emp-name{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emp-id-tag{font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-500, 500);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);padding:1px 5px;border-radius:4px;border:1px solid var(--border-color, #e2e8f0);flex-shrink:0}.emp-sub-row{font-size:var(--fs-Usmall, 11px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.summary-pill{padding:2px 8px;border-radius:20px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--hover-module-bg, #f1f5f9);color:var(--label-text-color, #475569);border:1px solid var(--border-color, #e2e8f0);display:inline-block;white-space:nowrap}.summary-pill--target{background:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 88%);color:var(--attendance-present, #16a34a);border-color:color-mix(in srgb,var(--attendance-present, #16a34a),var(--comp-bg-color, #ffffff) 70%)}.head-employee-label{font-size:var(--fs-small, 12px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a)}.head-day-letter{font-size:var(--fs-Usmall, 11px);color:var(--fc-text-color-light, #64748b);font-weight:var(--fw-500, 500);line-height:1;text-transform:uppercase}.head-date-num{font-size:var(--fs-normal, 13px);font-weight:var(--fw-600, 600);color:var(--fc-text-color-dark, #0f172a);line-height:1.4;margin-top:2px}.head-today{background:var(--fb-action, #003566)!important;color:var(--fb-text-on-action, #ffffff)!important;border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.head-muted{color:var(--fb-text-muted, #94a3b8)!important}.attendance-footer-legends{font-size:var(--fs-small, 12px);padding:0 8px}.legend-text{font-size:var(--fs-small, 12px);color:var(--fc-text-color-dark, #0f172a);font-weight:var(--fw-500, 500)}.table-subtitle{font-size:var(--fs-normal, 13px);color:var(--label-text-color-light, #64748b);font-weight:var(--fw-500, 500)}@media screen and (min-width:600px){mat-table{font-size:18px}}@media screen and (max-width:882px){mat-table{font-size:var(--fs-medium)}.mat-column-name,.mat-column-weight{display:none}.mat-header-cell{padding:8px}}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline;cursor:pointer}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.btn-primary{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action, #003566)!important;border-color:var(--fb-action, #003566)!important;padding:4px 9px;border-radius:.375rem}.btn-primary:hover{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-hover, #00284d)!important;border-color:var(--fb-action-hover, #00284d)!important}.btn-primary:active,.btn-primary.active,.show>.btn-primary.dropdown-toggle{color:var(--fb-text-on-action, #ffffff)!important;background-color:var(--fb-action-pressed, #001f3f)!important;border-color:var(--fb-action-pressed, #001f3f)!important}.btn-primary:disabled,.btn-primary.disabled{color:var(--fb-text-disabled, #94a3b8)!important;background-color:var(--fb-action-disabled, #e2e8f0)!important;border-color:var(--fb-action-disabled, #e2e8f0)!important}::ng-deep .clickable-img{height:36px!important;transition:unset!important;border:unset!important;border-radius:0!important}::ng-deep app-fusion-button.ms-2,::ng-deep app-fusion-button.me-2{margin-left:0!important;margin-right:0!important}.body-color img{border-radius:8px!important}.modal-backdrop{opacity:.9}.mat-table{width:100%;border-spacing:0}.mat-header-row{position:sticky;top:0;background:var(--fb-action-surface, #e0f2fe);color:var(--fb-text-primary, #0f172a);z-index:2}.picker-container{display:flex;align-items:center;font-size:18px;font-weight:600;border:1px solid var(--fb-border-default, #e2e8f0);border-radius:8px}.month-label{cursor:pointer;min-width:100px;text-align:center;font-size:var(--fs-medium, 14px)}.arrow-btn{border:none;background:transparent;font-size:20px;cursor:pointer}.popup{position:absolute;margin-top:45px;background:var(--fb-surface-elevated, #ffffff);padding:15px;box-shadow:0 4px 12px var(--fb-backdrop, rgba(0,0,0,.12));border-radius:var(--radius-medium, 8px);width:200px;z-index:1000}.year-section{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:10px;font-size:var(--fs-medium, 14px)}.year-section button{background:var(--fb-surface-secondary, #f8fafc);color:var(--fb-text-primary, #0f172a);border:none;padding:3px 8px;font-size:14px;cursor:pointer}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-size:var(--fs-medium, 14px)}.month-item{padding:6px;border-radius:4px;text-align:center;cursor:pointer;background-color:var(--fb-surface-secondary, #f8fafc)}.month-item.active{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.Legend-font{font-size:var(--fs-normal, 13px)}.table-margin,.Legend-div{border-top:solid .5px var(--fb-border-default, #e2e8f0)}.sticky-checkbox{position:sticky;left:0;z-index:1000;background:var(--fb-surface, #ffffff);min-width:48px;width:48px}th.sticky-checkbox{z-index:1100}.live-sync-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:var(--fs-Usmall, 11px);font-weight:var(--fw-600, 600);background:var(--fb-action-surface, #e0f2fe);color:var(--fb-action, #003566);white-space:nowrap}.live-sync-dot{width:7px;height:7px;border-radius:50%;background:var(--fb-action, #003566);animation:live-sync-pulse 1.2s ease-in-out infinite}@keyframes live-sync-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}.mat-row.row-live-updated,.mat-row.row-live-updated .sticky-column,.mat-row.row-live-updated .sticky-col{background-color:var(--fb-success-surface, #dcfce7)!important;transition:background-color .6s ease}\n"]
8692
7397
  }]
8693
7398
  }],
8694
7399
  ctorParameters: () => [
@@ -8718,6 +7423,8 @@ i0.ɵɵngDeclareClassMetadata({
8718
7423
  pageSizeOptions: [{ type: Input }],
8719
7424
  pageIndex: [{ type: Input }],
8720
7425
  isLoading: [{ type: Input }],
7426
+ dataGetProperties: [{ type: Input }],
7427
+ liveSyncing: [{ type: Input }],
8721
7428
  title: [{ type: Input }],
8722
7429
  titleOn: [{ type: Input }],
8723
7430
  buttonLoadingSpinner: [{ type: Input }],
@@ -8742,6 +7449,7 @@ i0.ɵɵngDeclareClassMetadata({
8742
7449
  pageChange: [{ type: Output }],
8743
7450
  pageDetails: [{ type: Output }],
8744
7451
  searchFilterData: [{ type: Output }],
7452
+ serverQueryChange: [{ type: Output }],
8745
7453
  searchText: [{ type: Output }],
8746
7454
  exportButton: [{ type: Output }],
8747
7455
  importButton: [{ type: Output }],
@@ -8968,7 +7676,7 @@ var FusionCardComponent = class FusionCardComponent {
8968
7676
  }
8969
7677
  static ɵfac = i0.ɵɵngDeclareFactory({
8970
7678
  minVersion: "12.0.0",
8971
- version: "22.2.4",
7679
+ version: "22.2.5",
8972
7680
  ngImport: i0,
8973
7681
  type: FusionCardComponent,
8974
7682
  deps: [
@@ -8983,7 +7691,7 @@ var FusionCardComponent = class FusionCardComponent {
8983
7691
  });
8984
7692
  static ɵcmp = i0.ɵɵngDeclareComponent({
8985
7693
  minVersion: "14.0.0",
8986
- version: "22.2.4",
7694
+ version: "22.2.5",
8987
7695
  type: FusionCardComponent,
8988
7696
  isStandalone: true,
8989
7697
  selector: "fusion-card",
@@ -9075,7 +7783,7 @@ var FusionCardComponent = class FusionCardComponent {
9075
7783
  };
9076
7784
  i0.ɵɵngDeclareClassMetadata({
9077
7785
  minVersion: "12.0.0",
9078
- version: "22.2.4",
7786
+ version: "22.2.5",
9079
7787
  ngImport: i0,
9080
7788
  type: FusionCardComponent,
9081
7789
  decorators: [{
@@ -9227,7 +7935,7 @@ var ToastService = class ToastService {
9227
7935
  }
9228
7936
  static ɵfac = i0.ɵɵngDeclareFactory({
9229
7937
  minVersion: "12.0.0",
9230
- version: "22.2.4",
7938
+ version: "22.2.5",
9231
7939
  ngImport: i0,
9232
7940
  type: ToastService,
9233
7941
  deps: [{
@@ -9238,7 +7946,7 @@ var ToastService = class ToastService {
9238
7946
  });
9239
7947
  static ɵprov = i0.ɵɵngDeclareInjectable({
9240
7948
  minVersion: "12.0.0",
9241
- version: "22.2.4",
7949
+ version: "22.2.5",
9242
7950
  ngImport: i0,
9243
7951
  type: ToastService,
9244
7952
  providedIn: "root"
@@ -9246,7 +7954,7 @@ var ToastService = class ToastService {
9246
7954
  };
9247
7955
  i0.ɵɵngDeclareClassMetadata({
9248
7956
  minVersion: "12.0.0",
9249
- version: "22.2.4",
7957
+ version: "22.2.5",
9250
7958
  ngImport: i0,
9251
7959
  type: ToastService,
9252
7960
  decorators: [{
@@ -9320,7 +8028,7 @@ var ToastComponent = class ToastComponent {
9320
8028
  }
9321
8029
  static ɵfac = i0.ɵɵngDeclareFactory({
9322
8030
  minVersion: "12.0.0",
9323
- version: "22.2.4",
8031
+ version: "22.2.5",
9324
8032
  ngImport: i0,
9325
8033
  type: ToastComponent,
9326
8034
  deps: [
@@ -9336,7 +8044,7 @@ var ToastComponent = class ToastComponent {
9336
8044
  });
9337
8045
  static ɵcmp = i0.ɵɵngDeclareComponent({
9338
8046
  minVersion: "17.0.0",
9339
- version: "22.2.4",
8047
+ version: "22.2.5",
9340
8048
  type: ToastComponent,
9341
8049
  isStandalone: true,
9342
8050
  selector: "app-toast, fusion-toast",
@@ -9380,7 +8088,7 @@ var ToastComponent = class ToastComponent {
9380
8088
  };
9381
8089
  i0.ɵɵngDeclareClassMetadata({
9382
8090
  minVersion: "12.0.0",
9383
- version: "22.2.4",
8091
+ version: "22.2.5",
9384
8092
  ngImport: i0,
9385
8093
  type: ToastComponent,
9386
8094
  decorators: [{
@@ -9484,7 +8192,7 @@ var MultiSelectDropdownComponent = class MultiSelectDropdownComponent {
9484
8192
  }
9485
8193
  static ɵfac = i0.ɵɵngDeclareFactory({
9486
8194
  minVersion: "12.0.0",
9487
- version: "22.2.4",
8195
+ version: "22.2.5",
9488
8196
  ngImport: i0,
9489
8197
  type: MultiSelectDropdownComponent,
9490
8198
  deps: [{ token: i0.ChangeDetectorRef }],
@@ -9492,7 +8200,7 @@ var MultiSelectDropdownComponent = class MultiSelectDropdownComponent {
9492
8200
  });
9493
8201
  static ɵcmp = i0.ɵɵngDeclareComponent({
9494
8202
  minVersion: "17.0.0",
9495
- version: "22.2.4",
8203
+ version: "22.2.5",
9496
8204
  type: MultiSelectDropdownComponent,
9497
8205
  isStandalone: true,
9498
8206
  selector: "app-multi-select-dropdown, fusion-multi-select-dropdown",
@@ -9767,7 +8475,7 @@ var MultiSelectDropdownComponent = class MultiSelectDropdownComponent {
9767
8475
  };
9768
8476
  i0.ɵɵngDeclareClassMetadata({
9769
8477
  minVersion: "12.0.0",
9770
- version: "22.2.4",
8478
+ version: "22.2.5",
9771
8479
  ngImport: i0,
9772
8480
  type: MultiSelectDropdownComponent,
9773
8481
  decorators: [{
@@ -9839,7 +8547,7 @@ var AlertMessageComponent = class AlertMessageComponent {
9839
8547
  }
9840
8548
  static ɵfac = i0.ɵɵngDeclareFactory({
9841
8549
  minVersion: "12.0.0",
9842
- version: "22.2.4",
8550
+ version: "22.2.5",
9843
8551
  ngImport: i0,
9844
8552
  type: AlertMessageComponent,
9845
8553
  deps: [{ token: i0.ChangeDetectorRef }, {
@@ -9850,7 +8558,7 @@ var AlertMessageComponent = class AlertMessageComponent {
9850
8558
  });
9851
8559
  static ɵcmp = i0.ɵɵngDeclareComponent({
9852
8560
  minVersion: "17.0.0",
9853
- version: "22.2.4",
8561
+ version: "22.2.5",
9854
8562
  type: AlertMessageComponent,
9855
8563
  isStandalone: true,
9856
8564
  selector: "fusion-alert, app-success-failure-message",
@@ -9891,7 +8599,7 @@ var AlertMessageComponent = class AlertMessageComponent {
9891
8599
  };
9892
8600
  i0.ɵɵngDeclareClassMetadata({
9893
8601
  minVersion: "12.0.0",
9894
- version: "22.2.4",
8602
+ version: "22.2.5",
9895
8603
  ngImport: i0,
9896
8604
  type: AlertMessageComponent,
9897
8605
  decorators: [{
@@ -9917,6 +8625,55 @@ i0.ɵɵngDeclareClassMetadata({
9917
8625
  dismiss: [{ type: Output }]
9918
8626
  }
9919
8627
  });
8628
+ var TabDataService = class TabDataService {
8629
+ cache = /* @__PURE__ */ new Map();
8630
+ nxtBooks = /* @__PURE__ */ new Map();
8631
+ constructor() {}
8632
+ getCachedData(tabName, componentId) {
8633
+ const key = `${tabName}_${componentId}`;
8634
+ return this.cache.get(key) || null;
8635
+ }
8636
+ setCachedData(tabName, data, componentId) {
8637
+ const key = `${tabName}_${componentId}`;
8638
+ this.cache.set(key, data);
8639
+ }
8640
+ getNxtBook(endpoint) {
8641
+ return this.nxtBooks.get(endpoint) || null;
8642
+ }
8643
+ setNxtBook(endpoint, book) {
8644
+ this.nxtBooks.set(endpoint, book);
8645
+ }
8646
+ clearCache() {
8647
+ this.cache.clear();
8648
+ this.nxtBooks.clear();
8649
+ }
8650
+ static ɵfac = i0.ɵɵngDeclareFactory({
8651
+ minVersion: "12.0.0",
8652
+ version: "22.2.5",
8653
+ ngImport: i0,
8654
+ type: TabDataService,
8655
+ deps: [],
8656
+ target: i0.ɵɵFactoryTarget.Injectable
8657
+ });
8658
+ static ɵprov = i0.ɵɵngDeclareInjectable({
8659
+ minVersion: "12.0.0",
8660
+ version: "22.2.5",
8661
+ ngImport: i0,
8662
+ type: TabDataService,
8663
+ providedIn: "root"
8664
+ });
8665
+ };
8666
+ i0.ɵɵngDeclareClassMetadata({
8667
+ minVersion: "12.0.0",
8668
+ version: "22.2.5",
8669
+ ngImport: i0,
8670
+ type: TabDataService,
8671
+ decorators: [{
8672
+ type: Injectable,
8673
+ args: [{ providedIn: "root" }]
8674
+ }],
8675
+ ctorParameters: () => []
8676
+ });
9920
8677
  var PdfFontService = class PdfFontService {
9921
8678
  fontLoadedPromise = null;
9922
8679
  configurePdfMake(pdfMakeInstance) {
@@ -9960,7 +8717,7 @@ var PdfFontService = class PdfFontService {
9960
8717
  }
9961
8718
  static ɵfac = i0.ɵɵngDeclareFactory({
9962
8719
  minVersion: "12.0.0",
9963
- version: "22.2.4",
8720
+ version: "22.2.5",
9964
8721
  ngImport: i0,
9965
8722
  type: PdfFontService,
9966
8723
  deps: [],
@@ -9968,7 +8725,7 @@ var PdfFontService = class PdfFontService {
9968
8725
  });
9969
8726
  static ɵprov = i0.ɵɵngDeclareInjectable({
9970
8727
  minVersion: "12.0.0",
9971
- version: "22.2.4",
8728
+ version: "22.2.5",
9972
8729
  ngImport: i0,
9973
8730
  type: PdfFontService,
9974
8731
  providedIn: "root"
@@ -9976,7 +8733,7 @@ var PdfFontService = class PdfFontService {
9976
8733
  };
9977
8734
  i0.ɵɵngDeclareClassMetadata({
9978
8735
  minVersion: "12.0.0",
9979
- version: "22.2.4",
8736
+ version: "22.2.5",
9980
8737
  ngImport: i0,
9981
8738
  type: PdfFontService,
9982
8739
  decorators: [{
@@ -9995,7 +8752,7 @@ var AmountToWordsPipe = class AmountToWordsPipe {
9995
8752
  }
9996
8753
  static ɵfac = i0.ɵɵngDeclareFactory({
9997
8754
  minVersion: "12.0.0",
9998
- version: "22.2.4",
8755
+ version: "22.2.5",
9999
8756
  ngImport: i0,
10000
8757
  type: AmountToWordsPipe,
10001
8758
  deps: [],
@@ -10003,7 +8760,7 @@ var AmountToWordsPipe = class AmountToWordsPipe {
10003
8760
  });
10004
8761
  static ɵpipe = i0.ɵɵngDeclarePipe({
10005
8762
  minVersion: "14.0.0",
10006
- version: "22.2.4",
8763
+ version: "22.2.5",
10007
8764
  ngImport: i0,
10008
8765
  type: AmountToWordsPipe,
10009
8766
  isStandalone: true,
@@ -10012,7 +8769,7 @@ var AmountToWordsPipe = class AmountToWordsPipe {
10012
8769
  };
10013
8770
  i0.ɵɵngDeclareClassMetadata({
10014
8771
  minVersion: "12.0.0",
10015
- version: "22.2.4",
8772
+ version: "22.2.5",
10016
8773
  ngImport: i0,
10017
8774
  type: AmountToWordsPipe,
10018
8775
  decorators: [{
@@ -10023,6 +8780,6 @@ i0.ɵɵngDeclareClassMetadata({
10023
8780
  }]
10024
8781
  }]
10025
8782
  });
10026
- 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 };
8783
+ export { AlertMessageComponent, AlertService, AmountToWordsPipe, ApiService, ApprovalScreenComponent, AttendanceTableComponent, CommonScreenComponent, ConfigService, Constants, CustomDatePipe, CustomPaginatorIntl, CustomTimePipe, CustomTranslatePipe, DataTableComponent, DropDownComponent, EditColumnCheckPipe, EditColumnDropdownPipe, EditColumnTypePipe, ErrorHandlerService, FileUploadComponent, FusionButtonComponent, FusionCardComponent, FusionMonthPickerComponent, GetValuePipe, GlobalValuesService, LoaderService, ModalComponent, MultiCheckboxComponent, MultiSelectDropdownComponent, MultipleFilterComponent, PaginationComponent, PdfFontService, PopoverComponent, ScrollService, SearchFilterComponent, SearchFilterPipe, SideScreenComponent, TOAST_GLOBAL_CONFIG, TabDataService, ToastComponent, ToastService, TotalColumSumPipe, provideToastConfig };
10027
8784
 
10028
8785
  //# sourceMappingURL=rangertechnologies-fusion-ui.mjs.map