@rangertechnologies/fusion-ui 0.1.15 → 0.2.1
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,15 @@ 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";
|
|
29
27
|
import * as i1 from "@angular/platform-browser";
|
|
30
28
|
import * as i2 from "@angular/material/form-field";
|
|
31
29
|
import { MatFormFieldModule } from "@angular/material/form-field";
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 }
|
|
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\">×</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:
|
|
2513
|
-
selector: "
|
|
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
|
-
"
|
|
2539
|
-
"
|
|
2540
|
-
"
|
|
2541
|
-
"
|
|
2542
|
-
"
|
|
2543
|
-
"
|
|
2544
|
-
"
|
|
2545
|
-
"
|
|
2546
|
-
"
|
|
2547
|
-
"
|
|
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
|
-
"
|
|
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.
|
|
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
|
-
|
|
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 }
|
|
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\">×</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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
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.
|
|
3834
|
+
version: "22.2.5",
|
|
3788
3835
|
ngImport: i0,
|
|
3789
|
-
type:
|
|
3836
|
+
type: GetValuePipe,
|
|
3790
3837
|
deps: [],
|
|
3791
|
-
target: i0.ɵɵFactoryTarget.
|
|
3838
|
+
target: i0.ɵɵFactoryTarget.Pipe
|
|
3792
3839
|
});
|
|
3793
|
-
static
|
|
3840
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
3794
3841
|
minVersion: "14.0.0",
|
|
3795
|
-
version: "22.2.
|
|
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
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
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.
|
|
3851
|
+
version: "22.2.5",
|
|
3850
3852
|
ngImport: i0,
|
|
3851
|
-
type:
|
|
3853
|
+
type: GetValuePipe,
|
|
3852
3854
|
decorators: [{
|
|
3853
|
-
type:
|
|
3855
|
+
type: Pipe,
|
|
3854
3856
|
args: [{
|
|
3855
|
-
|
|
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
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
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.
|
|
3874
|
+
version: "22.2.5",
|
|
3928
3875
|
ngImport: i0,
|
|
3929
|
-
type:
|
|
3876
|
+
type: EditColumnCheckPipe,
|
|
3930
3877
|
deps: [],
|
|
3931
|
-
target: i0.ɵɵFactoryTarget.
|
|
3878
|
+
target: i0.ɵɵFactoryTarget.Pipe
|
|
3932
3879
|
});
|
|
3933
|
-
static
|
|
3934
|
-
minVersion: "
|
|
3935
|
-
version: "22.2.
|
|
3880
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
3881
|
+
minVersion: "14.0.0",
|
|
3882
|
+
version: "22.2.5",
|
|
3936
3883
|
ngImport: i0,
|
|
3937
|
-
type:
|
|
3938
|
-
|
|
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.
|
|
3891
|
+
version: "22.2.5",
|
|
3944
3892
|
ngImport: i0,
|
|
3945
|
-
type:
|
|
3893
|
+
type: EditColumnCheckPipe,
|
|
3946
3894
|
decorators: [{
|
|
3947
|
-
type:
|
|
3948
|
-
args: [{
|
|
3895
|
+
type: Pipe,
|
|
3896
|
+
args: [{
|
|
3897
|
+
name: "editColumnCheck",
|
|
3898
|
+
standalone: true
|
|
3899
|
+
}]
|
|
3949
3900
|
}]
|
|
3950
3901
|
});
|
|
3951
|
-
var
|
|
3952
|
-
|
|
3953
|
-
|
|
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.
|
|
3908
|
+
version: "22.2.5",
|
|
4019
3909
|
ngImport: i0,
|
|
4020
|
-
type:
|
|
4021
|
-
deps: [
|
|
4022
|
-
target: i0.ɵɵFactoryTarget.
|
|
3910
|
+
type: EditColumnTypePipe,
|
|
3911
|
+
deps: [],
|
|
3912
|
+
target: i0.ɵɵFactoryTarget.Pipe
|
|
4023
3913
|
});
|
|
4024
|
-
static
|
|
4025
|
-
minVersion: "
|
|
4026
|
-
version: "22.2.
|
|
3914
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
3915
|
+
minVersion: "14.0.0",
|
|
3916
|
+
version: "22.2.5",
|
|
4027
3917
|
ngImport: i0,
|
|
4028
|
-
type:
|
|
4029
|
-
|
|
3918
|
+
type: EditColumnTypePipe,
|
|
3919
|
+
isStandalone: true,
|
|
3920
|
+
name: "editColumnType"
|
|
4030
3921
|
});
|
|
4031
3922
|
};
|
|
4032
3923
|
i0.ɵɵngDeclareClassMetadata({
|
|
4033
3924
|
minVersion: "12.0.0",
|
|
4034
|
-
version: "22.2.
|
|
3925
|
+
version: "22.2.5",
|
|
4035
3926
|
ngImport: i0,
|
|
4036
|
-
type:
|
|
3927
|
+
type: EditColumnTypePipe,
|
|
4037
3928
|
decorators: [{
|
|
4038
|
-
type:
|
|
4039
|
-
args: [{
|
|
4040
|
-
|
|
4041
|
-
|
|
3929
|
+
type: Pipe,
|
|
3930
|
+
args: [{
|
|
3931
|
+
name: "editColumnType",
|
|
3932
|
+
standalone: true
|
|
3933
|
+
}]
|
|
3934
|
+
}]
|
|
4042
3935
|
});
|
|
4043
|
-
var
|
|
4044
|
-
|
|
4045
|
-
|
|
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
|
-
};
|
|
3936
|
+
var EditColumnDropdownPipe = class EditColumnDropdownPipe {
|
|
3937
|
+
transform(arg, element, editCol) {
|
|
3938
|
+
return editCol.filter((col) => col.name === element)[0].values;
|
|
4105
3939
|
}
|
|
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
3940
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4154
3941
|
minVersion: "12.0.0",
|
|
4155
|
-
version: "22.2.
|
|
3942
|
+
version: "22.2.5",
|
|
4156
3943
|
ngImport: i0,
|
|
4157
|
-
type:
|
|
4158
|
-
deps: [
|
|
4159
|
-
target: i0.ɵɵFactoryTarget.
|
|
3944
|
+
type: EditColumnDropdownPipe,
|
|
3945
|
+
deps: [],
|
|
3946
|
+
target: i0.ɵɵFactoryTarget.Pipe
|
|
4160
3947
|
});
|
|
4161
|
-
static
|
|
4162
|
-
minVersion: "
|
|
4163
|
-
version: "22.2.
|
|
3948
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
3949
|
+
minVersion: "14.0.0",
|
|
3950
|
+
version: "22.2.5",
|
|
4164
3951
|
ngImport: i0,
|
|
4165
|
-
type:
|
|
4166
|
-
|
|
3952
|
+
type: EditColumnDropdownPipe,
|
|
3953
|
+
isStandalone: true,
|
|
3954
|
+
name: "editColumnDropdown"
|
|
4167
3955
|
});
|
|
4168
3956
|
};
|
|
4169
3957
|
i0.ɵɵngDeclareClassMetadata({
|
|
4170
3958
|
minVersion: "12.0.0",
|
|
4171
|
-
version: "22.2.
|
|
3959
|
+
version: "22.2.5",
|
|
4172
3960
|
ngImport: i0,
|
|
4173
|
-
type:
|
|
3961
|
+
type: EditColumnDropdownPipe,
|
|
4174
3962
|
decorators: [{
|
|
4175
|
-
type:
|
|
4176
|
-
args: [{
|
|
4177
|
-
|
|
4178
|
-
|
|
3963
|
+
type: Pipe,
|
|
3964
|
+
args: [{
|
|
3965
|
+
name: "editColumnDropdown",
|
|
3966
|
+
standalone: true
|
|
3967
|
+
}]
|
|
3968
|
+
}]
|
|
4179
3969
|
});
|
|
4180
|
-
var
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
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;
|
|
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 "";
|
|
4194
3976
|
}
|
|
4195
|
-
|
|
4196
|
-
|
|
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;
|
|
4197
3983
|
}
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
3984
|
+
currencyReturn(rupee, code) {
|
|
3985
|
+
return `${new Intl.NumberFormat(navigator.language, {
|
|
3986
|
+
minimumFractionDigits: 2,
|
|
3987
|
+
maximumFractionDigits: 2
|
|
3988
|
+
}).format(rupee)}`;
|
|
4201
3989
|
}
|
|
4202
3990
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4203
3991
|
minVersion: "12.0.0",
|
|
4204
|
-
version: "22.2.
|
|
3992
|
+
version: "22.2.5",
|
|
4205
3993
|
ngImport: i0,
|
|
4206
|
-
type:
|
|
3994
|
+
type: TotalColumSumPipe,
|
|
4207
3995
|
deps: [],
|
|
4208
|
-
target: i0.ɵɵFactoryTarget.
|
|
3996
|
+
target: i0.ɵɵFactoryTarget.Pipe
|
|
4209
3997
|
});
|
|
4210
|
-
static
|
|
4211
|
-
minVersion: "
|
|
4212
|
-
version: "22.2.
|
|
3998
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
3999
|
+
minVersion: "14.0.0",
|
|
4000
|
+
version: "22.2.5",
|
|
4213
4001
|
ngImport: i0,
|
|
4214
|
-
type:
|
|
4215
|
-
|
|
4002
|
+
type: TotalColumSumPipe,
|
|
4003
|
+
isStandalone: true,
|
|
4004
|
+
name: "totalColumSum"
|
|
4216
4005
|
});
|
|
4217
4006
|
};
|
|
4218
4007
|
i0.ɵɵngDeclareClassMetadata({
|
|
4219
4008
|
minVersion: "12.0.0",
|
|
4220
|
-
version: "22.2.
|
|
4009
|
+
version: "22.2.5",
|
|
4221
4010
|
ngImport: i0,
|
|
4222
|
-
type:
|
|
4011
|
+
type: TotalColumSumPipe,
|
|
4223
4012
|
decorators: [{
|
|
4224
|
-
type:
|
|
4225
|
-
args: [{
|
|
4226
|
-
|
|
4227
|
-
|
|
4013
|
+
type: Pipe,
|
|
4014
|
+
args: [{
|
|
4015
|
+
name: "totalColumSum",
|
|
4016
|
+
standalone: true
|
|
4017
|
+
}]
|
|
4018
|
+
}]
|
|
4228
4019
|
});
|
|
4229
|
-
var
|
|
4230
|
-
loaderService;
|
|
4020
|
+
var CustomPaginatorIntl = class CustomPaginatorIntl extends MatPaginatorIntl {
|
|
4231
4021
|
translate;
|
|
4232
|
-
globalValues;
|
|
4233
|
-
apiService;
|
|
4234
|
-
datePipe;
|
|
4235
|
-
alertService;
|
|
4236
|
-
errorHandler;
|
|
4237
|
-
globalValueService;
|
|
4238
|
-
configService;
|
|
4239
|
-
tabDataService;
|
|
4240
4022
|
cdr;
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
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;
|
|
4023
|
+
labelChange = new EventEmitter();
|
|
4024
|
+
constructor(translate, cdr) {
|
|
4025
|
+
super();
|
|
4270
4026
|
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
4027
|
this.cdr = cdr;
|
|
4280
|
-
this.
|
|
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";
|
|
4028
|
+
this.updateTranslations();
|
|
4382
4029
|
this.translate.onLangChange.subscribe((event) => {
|
|
4383
|
-
this.
|
|
4030
|
+
this.updateTranslations();
|
|
4031
|
+
this.labelChange.emit();
|
|
4032
|
+
this.cdr.detectChanges();
|
|
4384
4033
|
});
|
|
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
4034
|
}
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
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
|
-
};
|
|
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");
|
|
5169
4042
|
}
|
|
5170
4043
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5171
4044
|
minVersion: "12.0.0",
|
|
5172
|
-
version: "22.2.
|
|
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" },
|
|
4045
|
+
version: "22.2.5",
|
|
5197
4046
|
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
|
-
|
|
5200
|
-
|
|
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
|
-
]
|
|
4047
|
+
type: CustomPaginatorIntl,
|
|
4048
|
+
deps: [{ token: i1$5.TranslateService }, { token: i0.ChangeDetectorRef }],
|
|
4049
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
5466
4050
|
});
|
|
5467
|
-
|
|
5468
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
5469
|
-
minVersion: "12.0.0",
|
|
5470
|
-
version: "22.2.4",
|
|
5471
|
-
ngImport: i0,
|
|
5472
|
-
type: FormsComponent,
|
|
5473
|
-
decorators: [{
|
|
5474
|
-
type: Component,
|
|
5475
|
-
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(--fb-nav-text-active, #0140c1);font-weight:var(--fw-600, 600);border-bottom:3.5px solid var(--fb-border-on-action, #0140c1)}.tab-box{display:flex;flex-wrap:nowrap;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.tabCls{cursor:pointer}.tab-text,.sub-tab-text{line-height:100%}.tab-active-color{color:var(--fb-nav-text-active, #0140c1);font-weight:var(--fw-600, 600)}::ng-deep .upload-preview-wrapper{height:0}\n"]
|
|
5490
|
-
}]
|
|
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 }] }
|
|
5506
|
-
});
|
|
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;
|
|
5533
|
-
}
|
|
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);
|
|
5537
|
-
}
|
|
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;
|
|
5548
|
-
}
|
|
5549
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4051
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
5550
4052
|
minVersion: "12.0.0",
|
|
5551
|
-
version: "22.2.
|
|
5552
|
-
ngImport: i0,
|
|
5553
|
-
type: GetValuePipe,
|
|
5554
|
-
deps: [],
|
|
5555
|
-
target: i0.ɵɵFactoryTarget.Pipe
|
|
5556
|
-
});
|
|
5557
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
5558
|
-
minVersion: "14.0.0",
|
|
5559
|
-
version: "22.2.4",
|
|
4053
|
+
version: "22.2.5",
|
|
5560
4054
|
ngImport: i0,
|
|
5561
|
-
type:
|
|
5562
|
-
|
|
5563
|
-
name: "getValue"
|
|
4055
|
+
type: CustomPaginatorIntl,
|
|
4056
|
+
providedIn: "root"
|
|
5564
4057
|
});
|
|
5565
4058
|
};
|
|
5566
4059
|
i0.ɵɵngDeclareClassMetadata({
|
|
5567
4060
|
minVersion: "12.0.0",
|
|
5568
|
-
version: "22.2.
|
|
4061
|
+
version: "22.2.5",
|
|
5569
4062
|
ngImport: i0,
|
|
5570
|
-
type:
|
|
5571
|
-
decorators: [{
|
|
5572
|
-
type:
|
|
5573
|
-
args: [{
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
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;
|
|
5588
4086
|
}
|
|
5589
4087
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5590
4088
|
minVersion: "12.0.0",
|
|
5591
|
-
version: "22.2.
|
|
4089
|
+
version: "22.2.5",
|
|
5592
4090
|
ngImport: i0,
|
|
5593
|
-
type:
|
|
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.
|
|
4097
|
+
version: "22.2.5",
|
|
5600
4098
|
ngImport: i0,
|
|
5601
|
-
type:
|
|
4099
|
+
type: CustomDatePipe,
|
|
5602
4100
|
isStandalone: true,
|
|
5603
|
-
name: "
|
|
4101
|
+
name: "customDate"
|
|
5604
4102
|
});
|
|
5605
4103
|
};
|
|
5606
4104
|
i0.ɵɵngDeclareClassMetadata({
|
|
5607
4105
|
minVersion: "12.0.0",
|
|
5608
|
-
version: "22.2.
|
|
4106
|
+
version: "22.2.5",
|
|
5609
4107
|
ngImport: i0,
|
|
5610
|
-
type:
|
|
4108
|
+
type: CustomDatePipe,
|
|
5611
4109
|
decorators: [{
|
|
5612
4110
|
type: Pipe,
|
|
5613
4111
|
args: [{
|
|
5614
|
-
name: "
|
|
4112
|
+
name: "customDate",
|
|
5615
4113
|
standalone: true
|
|
5616
4114
|
}]
|
|
5617
4115
|
}]
|
|
5618
4116
|
});
|
|
5619
|
-
var
|
|
5620
|
-
transform(
|
|
5621
|
-
|
|
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.
|
|
4126
|
+
version: "22.2.5",
|
|
5626
4127
|
ngImport: i0,
|
|
5627
|
-
type:
|
|
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.
|
|
4134
|
+
version: "22.2.5",
|
|
5634
4135
|
ngImport: i0,
|
|
5635
|
-
type:
|
|
4136
|
+
type: CustomTimePipe,
|
|
5636
4137
|
isStandalone: true,
|
|
5637
|
-
name: "
|
|
4138
|
+
name: "customTime",
|
|
4139
|
+
pure: false
|
|
5638
4140
|
});
|
|
5639
4141
|
};
|
|
5640
4142
|
i0.ɵɵngDeclareClassMetadata({
|
|
5641
4143
|
minVersion: "12.0.0",
|
|
5642
|
-
version: "22.2.
|
|
4144
|
+
version: "22.2.5",
|
|
5643
4145
|
ngImport: i0,
|
|
5644
|
-
type:
|
|
4146
|
+
type: CustomTimePipe,
|
|
5645
4147
|
decorators: [{
|
|
5646
4148
|
type: Pipe,
|
|
5647
4149
|
args: [{
|
|
5648
|
-
name: "
|
|
4150
|
+
name: "customTime",
|
|
4151
|
+
pure: false,
|
|
5649
4152
|
standalone: true
|
|
5650
4153
|
}]
|
|
5651
4154
|
}]
|
|
5652
4155
|
});
|
|
5653
|
-
var
|
|
5654
|
-
|
|
5655
|
-
|
|
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.
|
|
4164
|
+
version: "22.2.5",
|
|
5660
4165
|
ngImport: i0,
|
|
5661
|
-
type:
|
|
4166
|
+
type: ScrollService,
|
|
5662
4167
|
deps: [],
|
|
5663
|
-
target: i0.ɵɵFactoryTarget.
|
|
4168
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
5664
4169
|
});
|
|
5665
|
-
static
|
|
5666
|
-
minVersion: "
|
|
5667
|
-
version: "22.2.
|
|
4170
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
4171
|
+
minVersion: "12.0.0",
|
|
4172
|
+
version: "22.2.5",
|
|
5668
4173
|
ngImport: i0,
|
|
5669
|
-
type:
|
|
5670
|
-
|
|
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.
|
|
4180
|
+
version: "22.2.5",
|
|
5677
4181
|
ngImport: i0,
|
|
5678
|
-
type:
|
|
4182
|
+
type: ScrollService,
|
|
5679
4183
|
decorators: [{
|
|
5680
|
-
type:
|
|
5681
|
-
args: [{
|
|
5682
|
-
name: "editColumnDropdown",
|
|
5683
|
-
standalone: true
|
|
5684
|
-
}]
|
|
4184
|
+
type: Injectable,
|
|
4185
|
+
args: [{ providedIn: "root" }]
|
|
5685
4186
|
}]
|
|
5686
4187
|
});
|
|
5687
|
-
var
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
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
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
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
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
}
|
|
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.
|
|
4255
|
+
version: "22.2.5",
|
|
5710
4256
|
ngImport: i0,
|
|
5711
|
-
type:
|
|
5712
|
-
deps: [],
|
|
5713
|
-
target: i0.ɵɵFactoryTarget.
|
|
4257
|
+
type: AlertService,
|
|
4258
|
+
deps: [{ token: i1$5.TranslateService }],
|
|
4259
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
5714
4260
|
});
|
|
5715
|
-
static
|
|
5716
|
-
minVersion: "
|
|
5717
|
-
version: "22.2.
|
|
4261
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
4262
|
+
minVersion: "12.0.0",
|
|
4263
|
+
version: "22.2.5",
|
|
5718
4264
|
ngImport: i0,
|
|
5719
|
-
type:
|
|
5720
|
-
|
|
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.
|
|
4271
|
+
version: "22.2.5",
|
|
5727
4272
|
ngImport: i0,
|
|
5728
|
-
type:
|
|
4273
|
+
type: AlertService,
|
|
5729
4274
|
decorators: [{
|
|
5730
|
-
type:
|
|
5731
|
-
args: [{
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
}]
|
|
5735
|
-
}]
|
|
4275
|
+
type: Injectable,
|
|
4276
|
+
args: [{ providedIn: "root" }]
|
|
4277
|
+
}],
|
|
4278
|
+
ctorParameters: () => [{ type: i1$5.TranslateService }]
|
|
5736
4279
|
});
|
|
5737
|
-
var
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
this.
|
|
5744
|
-
this.
|
|
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
|
-
|
|
5753
|
-
if (
|
|
5754
|
-
else
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
this.
|
|
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.
|
|
4392
|
+
version: "22.2.5",
|
|
5763
4393
|
ngImport: i0,
|
|
5764
|
-
type:
|
|
5765
|
-
deps: [{ token: i1$
|
|
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.
|
|
4400
|
+
version: "22.2.5",
|
|
5771
4401
|
ngImport: i0,
|
|
5772
|
-
type:
|
|
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.
|
|
4408
|
+
version: "22.2.5",
|
|
5779
4409
|
ngImport: i0,
|
|
5780
|
-
type:
|
|
4410
|
+
type: ErrorHandlerService,
|
|
5781
4411
|
decorators: [{
|
|
5782
4412
|
type: Injectable,
|
|
5783
4413
|
args: [{ providedIn: "root" }]
|
|
5784
4414
|
}],
|
|
5785
|
-
ctorParameters: () => [{ type: i1$
|
|
4415
|
+
ctorParameters: () => [{ type: i1$1.Router }, { type: AlertService }]
|
|
5786
4416
|
});
|
|
5787
|
-
var
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
const
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
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
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
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
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
}
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
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.
|
|
4454
|
+
version: "22.2.5",
|
|
5882
4455
|
ngImport: i0,
|
|
5883
|
-
type:
|
|
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.
|
|
4462
|
+
version: "22.2.5",
|
|
5890
4463
|
ngImport: i0,
|
|
5891
|
-
type:
|
|
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.
|
|
4470
|
+
version: "22.2.5",
|
|
5898
4471
|
ngImport: i0,
|
|
5899
|
-
type:
|
|
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.
|
|
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.
|
|
5178
|
+
version: "22.2.5",
|
|
6606
5179
|
type: DataTableComponent,
|
|
6607
5180
|
isStandalone: true,
|
|
6608
5181
|
selector: "app-data-table",
|
|
@@ -6755,7 +5328,7 @@ var DataTableComponent = class DataTableComponent {
|
|
|
6755
5328
|
usesOnChanges: true,
|
|
6756
5329
|
ngImport: i0,
|
|
6757
5330
|
template: "<div class=\"table-layout\" [id]=\"tableId\" style=\"padding-top: 1px;\">\n <div>\n <!-- SK30JAN25 title added -->\n <div class=\"d-flex justify-content-center table-title align-text-center\">\n {{title}}\n </div>\n \n <div class=\"flex justify-content-between\" style=\"padding-bottom: 5px;\">\n <div class=\"d-flex align-items-center\">\n <!-- MR 09NOV26 table-toolbar-left projection slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n\n <div *ngIf=\"dateDropdown \">\n <app-drop-down class=\"field-input\" [lists]='dropdownLists' dropDownHeight=\"38px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dropdownEmitFunction($event)\" [selectedData]=\"dropdownSelectedData\"></app-drop-down>\n </div>\n <!-- SC11NOV2025 if isDatePicker is true then show the date picker -->\n <div *ngIf=\"isDatePicker\">\n <!-- MR 16NOV26 Semantic text token replacing hardcoded hex -->\n <app-drop-down [lists]='list' [selectedData]=\"selectedData\" dropDownHeight=\"42px\" dropFontWeight=\"500\"\n dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\" dropBorderRadius=\"5px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dateFilter($event)\"></app-drop-down>\n </div>\n </div>\n <!-- SKS24JAN25 show Nos in table -->\n <!-- <div style=\"display: flex; align-items: center;\">\n <p *ngIf=\"totalRecords || totalCount\" style=\"font-weight: var(--fw-500); margin-right: 5px; margin-bottom: 0px;\">{{'APP.NOS' | customTranslate : 'Nos'}} </p> <span style=\"color: var(--fc-primary-color, rgb(43, 87, 249));\">{{totalRecords || totalCount}}</span>\n </div> -->\n <!-- SKS24JAN25 search bar config and nonconfig -->\n <div style=\"margin-left:auto;\">\n <div class=\"flex\" style=\"align-items: center;\">\n <!-- MR 09NOV26 table-toolbar-right projection slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n\n <div class=\"search\">\n <div class=\"search-bar\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n <input type=\"text\" placeholder=\"{{ 'APP.SEARCH' | customTranslate : 'Search' }}\" matInput\n (keyup)=\"searchConfigs ? emptySearch($event) : applyFilter($event)\"\n [value]=\" (searchConfigs || searchTextValue) ? searchBoxValue || '' : '' \" #input\n style=\"font-size: 13px !important;\">\n <img *ngIf=\"searchConfigs && searchBar\" (click)=\"onSearch(input.value)\"\n src=\"../assets/images/icons/general/configSearch.svg\" class=\"configSearch\">\n </div>\n </div>\n\n <!-- MR 09NOV26 Single toolbar button support from second-data-table -->\n <div class=\"flex\" *ngIf=\"button\">\n <app-fusion-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event, button)\"\n [buttonType]=\"button?.class || button?.buttonType\" [buttonValue]=\"button?.namePath || button?.labelPath || button?.name | customTranslate : button?.label || button?.name\"\n [buttonConfig]=\"button?.buttonConfig\" [type]=\"button?.type\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc || button?.fcBtnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\n\n <!-- SKS24JAN25 single, group and dropdown dynamic buttons -->\n <div class=\"flex\" *ngIf=\"isButtons\" style=\"padding-left: 7px;\">\n <div class=\"flex\" *ngFor=\"let button of buttonArray\">\n <!-- MR 16NOV26 Clean semantic variant identifier for Export action -->\n <app-fusion-button class=\"data-table-fsbtn\" [buttonDisable]=\"button.buttonDisable\"\n [buttonLoadingSpinner]=\"buttonLoadingSpinner\" (buttonClickEmit)=\"commonButtonClick($event,button)\"\n [buttonType]=\"button.buttonType || (button.label === 'Export' ? 'secondary' : button.class || 'primary')\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\"\n [buttonConfig]=\"button.buttonConfig\" [type]=\"button.type\" class=\"ms-2 me-2\"\n [fcBtnIconLeftSrc]=\"button.label === 'Export' ? '../assets/images/icons/general/upload-icon.svg' : button.fcBtnIconLeftSrc\" [isImageSvg]=\"button.label === 'Export' ? true : button.isImageSvg\">\n <!--SKS25OCT24 If the value is 'Import' or 'Export', this button does not work-->\n </app-fusion-button>\n </div>\n </div>\n \n </div>\n\n <!-- SK23FEB24 for adding new record in table -->\n <div class=\"flex cursor-pointer\" *ngIf=\"addInlineRecord\" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <!-- MR 30OCT26 Refactor inline html template styling to theme tokens -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fb-text-primary, #0f172a) !important;\"></i>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\" cdkScrollable> <!-- SKS3FEB25 The search filter closes when scrolling the table-->\n <!-- MSM28JAN25 MR 09NOV26 skeleton loader condition using isTableLoading --> \n <ng-container *ngIf=\"!isTableLoading; else loadingTemplate\">\n <table mat-table [dataSource]=\"dataSource || []\" [ngStyle]=\"{ width: tableWidth }\" matSort>\n <!-- Checkbox Columns -->\n <ng-container [sticky]=\"true\" class=\"checkboxCol\" *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\" style=\"border-left: 1px solid var(--fb-border-default, #e2e8f0);\">\n <input type=\"checkbox\" (click)=\"$event.stopPropagation()\" (change)=\"masterToggle()\"\n [checked]=\"selection?.hasValue()\" [indeterminate]=\"selection?.hasValue() && !isAllSelected()\"\n class=\"custom-checkbox\" />\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n <!-- SK18OCT24 check payroll Inprogress/Completed from backend data -->\n <input type=\"checkbox\" class=\"custom-checkbox\"\n [title]=\"(fromWhere === 'payrollTable' || fromWhere === 'paySlip') ? (row?.payProcessComment || '') : ''\"\n (click)=\"$event.stopPropagation()\" (change)=\"separateRowSelect(row)\"\n [checked]=\"selection.isSelected(row)\"\n [disabled]=\"(fromWhere === 'payrollTable' && row.isPayProcessed === true) || (fromWhere === 'paySlip' && row.isPayProcessed === false)\" />\n </td>\n <td mat-footer-cell *matFooterCellDef>\n {{ \"\" }}\n </td>\n </ng-container>\n\n <!-- data Columns -->\n <!-- set the matColumnDef attribute to the column name and use interpolation to dynamically generate the mat-header-cell and mat-cell elements based on the column name-->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [stickyEnd]=\"i === (stickyCondition - 1) ? true : false\" [sticky]=\"stickyColumns.includes(column)\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header\n style=\"border-right: 1px solid var(--fb-border-default, #e2e8f0);\" class=\"head-color ms-2 ps-2 pe-2\" \n [ngClass]=\"{'sticky-column': i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column)),'active-column': activeColumn === column,'first-header-border': i === 0}\"\n (click)=\"$event.stopPropagation(); onColumnClick(column)\">\n <span [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">{{\n (\n translatePath && translatePath[displayedColumns.indexOf(column)]\n ? translatePath[displayedColumns.indexOf(column)]\n : headerLabels[displayedColumns.indexOf(column)]\n )\n | customTranslate : headerLabels[displayedColumns.indexOf(column)]\n }}\n </span>\n <div (click)=\"$event.stopPropagation()\" class=\"position-relative\" cdk-overlay-origin\n #trigger=\"cdkOverlayOrigin\">\n <img class=\"ms-1\" *ngIf=\"filterColumns.includes(column)\" style=\"margin-bottom: 2px;\"\n (click)=\"filter(column)\" src=\"../assets/images/icons/general/filter-icon.svg\">\n </div>\n <ng-template cdk-connected-overlay [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"searchFilter === true && column === selectedFilter\"\n [cdkConnectedOverlayScrollStrategy]=\"createScrollStrategy()\"\n (overlayOutsideClick)=\"searchFilter = false\" (detach)=\"searchFilter = false\">\n <app-search-filter class=\"search-component position-absolute\"\n [class]=\"searchFilter === true && column === selectedFilter ? 'd-block' : 'd-none'\"\n [filterItems]=\"filterArray\" (emitValues)=\"filteredData($event)\" (click)=\"$event.stopPropagation()\">\n </app-search-filter>\n </ng-template>\n </th>\n <ng-container *ngIf=\"dataSource.data.length > 0\">\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color ps-2 pe-2\" *matCellDef=\"let element; let j = index\"\n [class.active-column]=\"activeColumn === column\"\n [class.sticky-column]=\"i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column))\">\n <!-- SK29OCT25 employee detail column -->\n <div *ngIf=\"column === 'employeeDetail'\">\n <div class=\"d-flex flex-row\" style=\"left:0;\">\n <div *ngIf=\"element['employeeName'] || element['name']\"\n [class]=\"hyperLinkColumns.includes(column) ? 'hyper-link' : '' \"\n style=\"font-size: var(--fs-small);color: var(--fb-text-primary, #0f172a);font-weight: var(--fw-600);\">\n {{element[\"employeeName\"] || element[\"name\"] || ''}}</div>\n <div *ngIf=\"element['employeeId']\"\n style=\"font-size: 11px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-400);\" class=\"ms-1\">\n [{{element[\"employeeId\"] || ''}}]</div>\n </div>\n <div class=\"d-flex flex-row\" *ngIf=\"element['designation'] && element['designation'] !== ''\">\n <div style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"designation\"] || ''}}\n </div>\n <div *ngIf=\"element['designation'] && element['designation'] !== '' && element['location'] && element['location'] !== ''\"\n style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">,</div>\n <div *ngIf=\"element['location'] && element['location'] !== ''\" style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"location\"] || ''}}\n </div>\n </div>\n </div>\n <div *ngIf=\"column !== 'combinedColumn' && column !== 'employeeDetail' && fromWhere !== 'leaveMaster' && (column !== 'active' && (fromWhere === 'hrmTaxComponent' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrm' || fromWhere === 'compensation'|| fromWhere === 'payrollTable'|| fromWhere === 'payrollCompare'|| fromWhere === 'paySlip' || fromWhere === 'approval' || fromWhere === 'leave' || fromWhere === 'expense' || fromWhere === 'expenseApproval' || fromWhere === 'leaveAllocation' ||fromWhere === 'parkingApp' ||(fromWhere === 'common' && column != 'signature')))\">\n <!-- SK10APR24 getting the table values using pipe instead of function to increase performance-->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('') \">\n <span class=\"font-size-13 {{checkHyperlinkCheck(column) || fromWhere === 'hrm' || fromWhere === 'compensation' || fromWhere === 'parkingApp' ? ' hyper-link clickable ' : ''}} {{fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' }}\"\n *ngIf=\"hyperLinkColumns.includes(column) || isFirstCell(column)\"\n (click)=\"tableClick(element); onClickHyperlink(column,element, j, checkHyperlinkCheck(column))\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </span>\n <div *ngIf=\"!isFirstCell(column) && !editColumn.includes(column) && column != 'receipt'\"\n [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">\n <div *ngIf=\"!checkHyperlinkCheck(column)\" class=\"font-size-13\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </div>\n </div>\n </div>\n <!-- SK27FEB24 added input box for inline edit input-->\n <div *ngIf=\"editColumn.length > 0\">\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('string') \" class=\"on-edit d-flex\">\n <input #editColElement class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \"\n matInput [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n </div>\n <!-- SK10APR24 In table, like text input, added drop down and time inputs as well -->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('object') \" class=\"on-edit d-flex\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('text') \" #editColElement\n class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('time') \" type=\"time\"\n class=\"lop-input table-width\" matInput [class]=\"element?.editRow ? 'input-box' : '' \"\n placeholder=\"HH:mm:ss\" [(ngModel)]=\"element[column]\"\n [disabled]=\"element?.editRow ? false : true\" />\n <div *ngIf=\" ('-' | editColumnType: column : editColumn) === ('dropdown') \">\n <select type=\"dropdown\" *ngIf=\"element?.editRow\" class=\"lop-input table-width\" matInput\n [class]=\"element?.editRow ? 'input-box' : '' \" [(ngModel)]=\"element[column]\">\n <option [disabled]=\"element?.editRow ? false : true\"\n *ngFor=\"let data of [] | editColumnDropdown: column : editColumn \"\n [value]=\"data.value || data.name\">{{data.name}}</option>\n </select>\n <input *ngIf=\"!element?.editRow\" #editColElement class=\"lop-input table-width\"\n [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"true\">\n </div>\n\n </div>\n </div>\n <app-popover\n *ngIf=\"column === 'receipt' && !editColumn.includes(column) && receiptImg == true && element[column] && element[column].length != 0\"\n [isBootstrap]=\"false\" [dynamicPopover]=\"'Popover string comes here'\">\n <div class=\"hover-base\">\n <img class=\"ms-1\" src=\"../../../assets/images/icons/general/file-attach.svg\">\n </div>\n <div class=\"hover-content\">\n <div class=\"expenseCon\">\n <div *ngFor=\"let data of element[column] || []\">\n <div class=\"cursor-pointer expense-file\" (click)=\"expenseAttachment(data,element)\">{{data?.name}}\n <!-- SK20FEB26 loader in expense list-->\n <svg *ngIf=\"data?.loader\"\n class=\"svg-spinner card-icon color\"\n width=\"22\" height=\"22\" viewBox=\"0 0 50 50\"\n style=\"cursor: wait;\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"4\"></circle>\n </svg>\n </div>\n </div>\n </div>\n </div>\n </app-popover>\n </div>\n <div *ngIf=\"fromWhere === 'leaveMaster' && column !== 'employeeDetail' \">\n <div [class]=\"(element[column]) === 'Week Off' ? 'weekoff-color' : '' \" class=\"font-size-13\">{{\n (column == 'default' || column == 'active' || column == 'paidLeave') ? '' : element[column] }}</div>\n <input *ngIf=\"(column === 'default' || column === 'active' || column === 'paidLeave')\"\n class=\"custom-checkbox\" [checked]=\"element[column] == true\" type=\"checkbox\" disabled>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'combinedColumn'\">\n <!-- for the Payroll Settings Component ( Side Screen Component )-->\n <!-- Since the last column is a combination of data and it is also conditional based on the paytype and calculation type we are using this div-->\n <!-- if Component type is Earnings and\n calculationType is 'flat' then output should be => \"'payType\": Flat, Amount of 'amount'\"\n calculationType is 'percentage' then output should be => \"'payType': 'amount' % of Basic \"\n calculationType is 'fixed' then output should be => \"'payType': 'calculationType'\" -->\n <!-- SK20JUN25 to display in table -->\n <ng-container *ngIf=\"\n element?.calculationType === 'flat' ||\n element?.calculationType === 'percentage' ||\n element?.calculationType === 'basicAndDA' ||\n element?.calculationType === 'fixed' ||\n element?.calculationType === 'ctc';\n else noCalculation\n \">\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE_FLAT_AMOUNT'\n | customTranslate : 'Variable: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED_FLAT_AMOUNT'\n | customTranslate : 'Fixed: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'fixed' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS'\n | customTranslate : '% of Gross'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'fixed' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS' |\n customTranslate : '% of Gross'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\"> {{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }} {{ element['amount'] }} {{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_FIXED_CTC' | customTranslate : '% of Fixed CTC'}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount'] }}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_VARIABLE_CTC' | customTranslate : '% of Variable CTC'}}</span>\n </ng-container>\n\n <ng-template #noCalculation>\n <span class=\"spanFontSize\">-</span>\n </ng-template>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'active'\">\n <div class=\"form-check form-switch\">\n <input class=\"custom-checkbox\" type=\"checkbox\" [checked]=\"(element != null && element['active'] === true) ? true : false\"\n (click)=\"element[column]=!element[column]; onToggleChange.emit(fromWhere === 'payrollSettingComponent' ? element : '')\">\n </div>\n </div>\n </td>\n </ng-container>\n <!-- SK16JUL24 to get the sum of column data -->\n <td class=\"ps-2 pe-2 \" mat-footer-cell *matFooterCellDef=\"let element; let j = index\">\n {{ '-' | totalColumSum: data : cumulativeDataColumns : column }}\n </td>\n </ng-container>\n <!-- action button Columns -->\n <!-- SK19MAR25 \"action\" key is changed to \"tableAction\" wherever used, since, it has duplicate error -->\n <ng-container [stickyEnd]=\"true\" *ngIf=\"actionButton || isDeleteRow || isEditRow\"\n matColumnDef=\"tableAction\">\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color action-size sticky-column actionCol text-center\" style=\"border-right: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));\">{{ actionColumHeader |\n customTranslate : 'Action'}}</th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let element; let i=index\" class=\"body-color sticky-column actionCol\">\n <!-- SKS25DEC24 clone button -->\n <div class=\"d-flex flex-row actionButton\"\n [style.justify-content]=\"conditionSendButton ? 'none' : 'center'\">\n <div *ngIf=\"(!conditionCloneButton) && cloneButton\" class=\"imgBtnDiv\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <div *ngIf=\"(conditionCloneButton) && isConditionMet(element, conditionCloneButton.conditions)\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <!-- SK20FEB26 Expense edit on Pending status -->\n <div *ngIf=\"element?.status === 'Rejected'|| fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow || (fromWhere == 'expense' && element?.status === 'Pending' )\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.COMMENTS' | customTranslate : 'comments' \"\n (buttonClickEmit)=\"onEdit(element?.rejectionReason, i, element?.status)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#rejectInfoModal\">\n </app-fusion-button>\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)) || (conditionEditButton && isConditionMet(element, conditionEditButton.conditions))\">\n <!-- MR 20NOV26 Standardize action column edit icon using fusion-icon font glyph \\e140 -->\n <i *ngIf=\"(!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i, element?.status)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n <i *ngIf=\"conditionEditButton && isConditionMet(element, conditionEditButton.conditions)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i)\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n </div>\n <!-- <img *ngIf=\"fromWhere == 'expense'\" (click)=\"delete(element?._id)\" src=\"../assets/images/icons/Vectordelete.svg\"> -->\n </div>\n <div *ngIf=\"element?.leaveStatus === 'New' || element?.status === 'New' || element?.status === 'Pending' || element?.leaveStatus === 'Pending' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || fromWhere == 'expenseApproval' || isDeleteRow\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.CANCEL' | customTranslate : 'Cancel'\" (buttonClickEmit)=\"delete(element, i)\"\n data-bs-toggle=\"modal\" data-bs-target=\"#cancelLeave\"></app-fusion-button>\n <!-- SKS21NOV24 Conditional rendering of delete icon based on various conditions -->\n <!-- Show the delete icon if 'conditionDeleteButton' is false and 'fromWhere' matches specific components or 'isDeleteRow' is true -->\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow) )|| (conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions))\">\n <img\n *ngIf=\"(!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow)\"\n class=\"imgBtn\" [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(fromWhere === 'payrollSettingComponent' || isDeleteRow ? element : element?._id, i)\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n <img *ngIf=\"conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions)\"\n [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(isDeleteRow ? element : element?._id, i)\" class=\"imgBtn\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n </div>\n <div *ngIf=\"fromWhere == 'approval' || fromWhere == 'expenseApproval'\" class=\"flex imgBtnDiv\">\n <img\n *ngIf=\"(fromWhere === 'expenseApproval' && element?.status === 'Approved'&& element?.reImbursed !== 'Reimbursed') || fromWhere == 'approval'\"\n class=\"approval-image me-2\" style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onApprove( element?.employeeId, element?._id, element?.reImbursed )\"\n src=\"../assets/images/icons/general/Approved.svg\">\n <img *ngIf=\"fromWhere !== 'expenseApproval'\" class=\"approval-image\"\n style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onReject( element?.employeeId, element?._id )\"\n src=\"../assets/images/icons/general/Declined.svg\" class=\"\" data-bs-toggle=\"modal\"\n data-bs-target=\"#approvalReject\">\n </div>\n </div>\n <!-- SK02APR24 added preview and download icons -->\n <div *ngIf=\"viewIcon\" class=\"ms-2 imgBtnDiv\">\n <!-- <img [src]=\"('post.svg' | svgIcon:'#000000') | async\" class=\"card-icon color\" title=\"preview\" (click)=\"viewIconClick(element)\" style=\"cursor: pointer;\" /> -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-eye nav-icon\" matTooltip=\"Preview\"\n matTooltipPosition=\"above\" style=\"color: var(--fc-text-color-light) !important; cursor: pointer;\"\n (click)=\"viewIconClick(element)\"></i>\n\n </div>\n <div *ngIf=\"downloadIcon\" class=\"ms-2 imgBtnDiv\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-download card-icon color imgBtn\"\n matTooltip=\"Download\" matTooltipPosition=\"above\"\n style=\"cursor: pointer; color: var(--fc-text-color-light) !important;\"\n (click)=\"downloadIconClick(element)\">\n </i>\n </div>\n <!-- SKS25DEC24 send button -->\n <div *ngIf=\"(!conditionSendButton) && sendButton\" class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <div\n *ngIf=\"(conditionSendButton) && isConditionMet(element, conditionSendButton.conditions) && sendButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <!-- SKS25DEC24 active button -->\n <div *ngIf=\"(!conditionActivateButton) && activeButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionActivateButton) && isConditionMet(element, conditionActivateButton.conditions) && activeButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <!-- SKS25DEC24 deactive button -->\n <div *ngIf=\"(!conditionDeactivateButton) && deactiveButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionDeactivateButton) && isConditionMet(element, conditionDeactivateButton.conditions) && deactiveButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n </div>\n <div>\n\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/downloadfile.svg'\"\n (buttonClickEmit)=\"downloadPdf(element)\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/pencil-icon.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#documentsInfoModal\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/Vectordelete.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#deleteDocModal\"></app-fusion-button>\n </div>\n </td>\n <td mat-footer-cell *matFooterCellDef=\"let element; let i=index\">{{ \"\" }}\n </td>\n </ng-container>\n\n <!-- total Row -->\n <ng-container [sticky]=\"true\" matColumnDef=\"total\">\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\">\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n </td>\n <!-- RS27AUG24 -->\n <!-- Used the translate pipe to successfully implement the translation -->\n <td mat-footer-cell *matFooterCellDef >{{'APP.TOTAL' | customTranslate : 'Total' }}\n </td>\n </ng-container>\n\n <!-- Render the columns -->\n <!-- SK16JUL24 adding the cumulative data row as footer -->\n <!-- <ng-container *ngIf=\"dataSource?.data?.length !== 0\"> -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns);\"></tr>\n <!-- SK19JUL24 table total update -->\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null \">\n </tr>\n </div>\n <div *ngSwitchCase=\"'tableAction'\">\n <tr mat-header-row\n *matHeaderRowDef=\" displayedColumns ? displayedColumns.concat(['tableAction']) : [] ;sticky: true\">\n </tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumns ? displayedColumns.concat(['tableAction']) : []; \">\n </tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <!-- 30JAN24 for both checkbox and action columns-->\n <div *ngSwitchCase=\"'both'\">\n <tr mat-header-row\n *matHeaderRowDef=\"['select'].concat(displayedColumns).concat('tableAction') sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns).concat('tableAction')\"\n (click)=\"tableClick(row)\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row;let i =index; columns: displayedColumns;\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? 'd-block' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null\">\n </tr>\n </ng-container>\n </div>\n </div>\n <!-- </ng-container> -->\n <!-- <tr class=\"mat-row \" *matNoDataRow> -->\n <!-- SK9JAN24 Removed attr.colspan since it throws undefined error -->\n <!-- <td class=\"mat-cell \">\n {{'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </td>\n </tr> -->\n\n </table>\n <div class=\"no-data-cell text-center my-3 \" *ngIf=\"!dataSource || !dataSource.data || dataSource.data.length === 0\">\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </div>\n </ng-container>\n <!-- MSM28JAN25 skeleton loader template -->\n <ng-template #loadingTemplate>\n <table>\n <tr style=\"height: 40px;\" *ngFor=\"let _ of [1, 2, 3, 4,5,6]\">\n <td colspan=\"3\" class=\"skeleton-card\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </td>\n </tr>\n </table>\n </ng-template>\n </div>\n <!-- SK23FEB24 table input save button changes -->\n <div class=\"d-flex justify-content-end\">\n <div class=\"flex mt-4 me-2 cursor-pointer\" *ngIf=\"addInlineRecord \" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fc-text-color-dark, #000000) !important;\"></i>\n </div>\n </div>\n <!-- SK27FEB24 removed button disable logic, SK13MAR24 added another condition for button showing-->\n <!-- SR06JAN2025 button disable logic for not select any employee-->\n <div class=\"d-flex justify-content-between align-items-end\">\n <div class=\"px-2\">\n {{notes}}</div>\n\n <app-fusion-button [buttonLoadingSpinner]=\"tableSaveLoadingSpinner\"\n *ngIf=\"editColumn.length > 0 || tableSaveButton\" buttonType=\"btn btn-primary mt-4 me-2\"\n [buttonDisable]=\"selection?.selected?.length === 0\" (buttonClickEmit)=\"saveButton()\"\n buttonValue=\"{{ 'APP.SAVE' | customTranslate : 'Save' }}\"></app-fusion-button>\n </div>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar matching Image 1 -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n </app-pagination>\n </div>\n </div>\n</div>\n\n<!-- SK03OCT24 while clicking export button, side screen will be displayed, with fields selection and filter boxes -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"{{'APP.EXPORT_DATA' | customTranslate : 'Export Data'}}\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <i *ngIf=\"!exportButtonLoadingSpinner\" class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-upload card-icon color me-1\"></i>\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 displaying components from parent (multipleCheckBox/multipleFilter) -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\"\n [isDateFilter]=\"type?.isDateFilter || false\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n<!-- SKS15DEC25 bulk upload -->\n<app-file-upload [id]=\"'uploadEmployee'\" [headerName]=\"moudleName\" [showFileModal]=\"uploadModal\"\n (closeEmit)=\"uploadModal = false\"\n [bodyHeaderName]=\"('APP.STEPS_TO_UPLOAD' | customTranslate : 'Steps to upload')+moudleName\" [isTemplate]=true\n [templateContent]=\"('APP.DOWNLOAD_THE' | customTranslate : 'Download the')+ moudleName +('APP.TEMPLATE' | customTranslate : 'template')\"\n (templateDownload)=\"downloadTemplate()\"\n [bodyContent]=\"[(('APP.FILL_THE_APPROP' | customTranslate : 'Fill the appropriate')+moudleName+('APP.DETAILS_AND_UPLOAD_ITS_BELOW' | customTranslate : 'Details and upload it below'))]\"\n [fileRestrictions]=\"{\n allowedTypes: ['.csv', '.xlsx', '.xls'],\n maxFileSize: 10,\n maxFiles: 1\n }\" [uploadedFiles]=\"[]\" [saveButtonName]=\"'APP.UPLOAD' | customTranslate : 'Upload'\"\n (upload)=\"uploadRecordsFile($event)\">\n</app-file-upload>\n<!-- SK06NOV24 alert on deleting record -->\n<div *ngIf=\"deleteModal\" class=\"modal modal-backdrop show d-block\" id=\"deleteRecord\" tabindex=\"-1\"\n aria-labelledby=\"deleteRecordLabel\" [attr.aria-hidden]=\"!deleteModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"deleteRecordLabel\">{{'APP.DELETE_RECORD' | customTranslate : 'Delete Record'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"deleteModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC' | customTranslate : 'Are you sure want to delete the record'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? deleteRecordData() : null\">\n <!-- SK04SEP25 button loader -->\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\" (click)=\"deleteModal = false\">{{'APP.NO'\n | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n\n<app-common-screen *ngIf=\"infoSidescreen\" [headerTitle]=\"'APP.APPROVAL_DETAILS' | customTranslate : 'Approval Details'\"\n (sideScreenEmittedEvent)=\"infoSidescreen = false\">\n <div class=\"side-main-content container\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <!-- Approval Info -->\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.NAME' | customTranslate : 'Name'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.name || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.status === 'Approved' || infoData.status === 'Pending' || infoData.status === 'Rejected' \"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.status === 'Approved', \n 'bg-warning': infoData.status === 'Pending',\n 'bg-danger': infoData.status === 'Rejected'}\">\n {{ infoData.status }}</span>\n <span\n *ngIf=\"infoData.status !== 'Approved' && infoData.status !== 'Pending' && infoData.status !== 'Rejected' \">{{\n infoData.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK21DEC24 to add Approval status in side screen-->\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_STATUS' | customTranslate : 'Approval Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.leaveStatus === 'Approved' || infoData.leaveStatus === 'Pending' || infoData.leaveStatus === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.leaveStatus === 'Approved', \n 'bg-warning': infoData.leaveStatus === 'Pending',\n 'bg-danger': infoData.leaveStatus === 'Rejected'}\">\n {{ infoData.leaveStatus || '' }}</span>\n <span\n *ngIf=\"infoData.leaveStatus !== 'Approved' && infoData.leaveStatus !== 'Pending' && infoData.leaveStatus !== 'Rejected'\">{{\n infoData.leaveStatus || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.REASON' | customTranslate : 'Reason'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.reason || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.TYPE' | customTranslate : 'Type'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.type || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPLIED_ON' | customTranslate : 'Applied On'}}:</div>\n <div class=\"col-6 text-start\">{{ (infoData.appliedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVED_COUNT' | customTranslate : 'Approved Count'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.approvedCount || '' }}</div>\n </div>\n </div>\n </div>\n <!-- Approval Managers -->\n <!-- SK03DEC24 show approval managers list only if applicable -->\n <h3 *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"text-center mb-3\">\n {{'APP.APPROVAL_MANAGERS' | customTranslate : 'Approval Managers'}}</h3>\n <ul *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"list-group\">\n <li *ngFor=\"let manager of infoData.approvalManagers\" class=\"list-group-item\">\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_ID' | customTranslate : 'Employee ID'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.employeeId || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK10DEC24 to show manager name -->\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_NAME' | customTranslate : 'Employee Name'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.name || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_ORDER' | customTranslate : 'Approval Order'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.approvalOrder || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span *ngIf=\"manager.status === 'Approved' || manager.status === 'Pending' || manager.status === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': manager.status === 'Approved', \n 'bg-warning': manager.status === 'Pending',\n 'bg-danger': manager.status === 'Rejected'}\">\n {{ manager.status || '' }}\n </span>\n <span\n *ngIf=\"manager.status !== 'Approved' && manager.status !== 'Pending' && manager.status !== 'Rejected'\"> {{\n manager.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\" *ngIf=\"manager.viewedOn\">\n <div class=\"col-6 text-start\">{{'APP.VIEWED_ON' | customTranslate : 'Viewed On'}}:</div>\n <div class=\"col-6 text-start\">{{ (manager.viewedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.IS_OPTIONAL' | customTranslate : 'Is Optional'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.isOptional ? \"Yes\" : \"No\" }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.COMMENTS' | customTranslate : 'Comments'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.rejectionReason || '' }}</div>\n </div>\n </li>\n </ul>\n </div>\n</app-common-screen>\n\n",
|
|
6758
|
-
styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{border-top:1px solid var(--fb-border-default, #e2e8f0);min-height:100px;overflow:auto;width:100%;max-height:62vh}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-medium);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color,tr.mat-header-row,.mat-mdc-header-row{background:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-primary, #0f172a)!important;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;align-items:center}.search .search-bar{background-color:var(--fb-input-bg, #ffffff);border:1px solid var(--fb-input-border, #cbd5e1);border-radius:var(--radius-small, 6px);display:flex;align-items:center;padding:2px 8px;width:100%;gap:6px}.search .search-bar input{background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;width:100%;font-size:13px;color:var(--fb-text-primary, #0f172a);padding:2px 4px}.search .search-bar input::placeholder{color:var(--fb-placeholder-text, #94a3b8)}th.mat-header-cell:last-of-type{padding:0;font-weight:var(--fw-600);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}td.mat-cell:last-of-type{padding:8px;font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.table-title{font-weight:var(--fw-600);color:var(--fb-text-primary, #0f172a)}.sticky-column,td.actionCol{background-color:var(--fb-surface, #ffffff)}th.sticky-column,th.actionCol{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.mat-sort-header-container{margin-left:5px}.body-color img{cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border-radius:5px;color:var(--fb-text-primary, #0f172a);background-color:var(--fb-surface, #ffffff);font-weight:var(--fw-400);font-size:var(--fs-medium);transition:all .2s}::ng-deep [dir=rtl] .body-color img{margin-left:4px!important}@media screen and (min-width:600px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}}@media screen and (max-width:882px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.mat-cell{padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-header-cell{padding:0}}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.expense-file{font-size:var(--fs-small)}.expense-file:hover{font-style:italic;text-decoration:underline;color:var(--fb-action-hover, #00284d)}.expenseCon{background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);padding:5px;border-radius:3px}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline}.clickable{cursor:pointer}.font-size-13{font-size:var(--fs-normal)}.weekoff-color{color:var(--fb-error, #ef4444)}.table-width{width:max-content}.on-edit:hover .edit-icon{visibility:visible}.edit-icon{visibility:hidden}.input-box{border:solid}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.delete-icon{justify-content:center}.side-main-content{border-radius:10px}h2{font-size:28px}.list-group-item{margin-bottom:10px;padding:15px}.list-group-item p{margin-bottom:5px}.custom-badge{display:inline-block;width:50%;text-align:center;padding:.3em 0;margin-top:0!important}.bg-success{--bs-bg-opacity: 1;background-color:var(--fb-success-surface, #e6f4ea)!important;color:var(--fb-success-text, #137333)!important}.custom-search-button{background-color:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff);border-radius:5px;font-size:var(--fs-normal);border:none}.custom-search-button:hover{background-color:var(--fb-action-hover, #00284d)}.custom-search-button:active{transform:translateY(0)}.table{border-top:1px solid var(--fb-border-default, #e2e8f0)}th,td{vertical-align:middle}.configSearch{height:22px;padding:3px;margin:10p;background-color:var(--fb-action, #003566);border-radius:4px}::ng-deep .table>:not(caption)>*>*{background-color:none!important;--bs-table-bg: var(--fb-surface, #ffffff) !important}@font-face{font-display:swap;font-family:fusion-icon;font-style:normal;font-weight:400;src:url(https://icons.valarhr.com/fonts/fusion-icon.woff2) format(\"woff2\"),url(https://icons.valarhr.com/fonts/fusion-icon.woff) format(\"woff\"),url(https://icons.valarhr.com/fonts/fusion-icon.ttf) format(\"truetype\")}.fusion-icon{display:inline-block;font-family:fusion-icon!important;font-weight:400;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.fusion-icon-edit_pencil:before{content:\"\\e140\"}.imgBtn{background-color:var(--fb-surface-secondary, #f8fafc);border-radius:var(--radius-small, 6px);width:15px;height:15px;object-fit:contain}.imgBtnDiv{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;line-height:0px;padding:4px;border-radius:5px;border:1px solid var(--fb-border-default, #e2e8f0)}input::placeholder{font-size:var(--fs-small);font-weight:var(--fw-400);color:var(--fb-placeholder-text, #94a3b8)}::ng-deep .modal-backdrop{background-color:var(--fb-backdrop, #00000073)!important}::ng-deep .modal-backdrop.show{background-color:var(--fb-backdrop, #00000073)!important;opacity:1!important}::ng-deep .mat-sort-header-container .mat-sort-header-content span{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}::ng-deep .mat-mdc-cell{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-400)!important;font-size:var(--fs-primary)!important;min-width:20px!important}.active-column{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}.hover-content{background:var(--fb-surface-elevated, #ffffff)}.position-relative{position:relative;display:inline-block}.filter-popup{position:absolute;top:100%;left:0;z-index:9998;background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .08));padding:10px;min-width:200px}.spanFontSize{font-size:var(--fs-normal)}.mat-column-employees{width:200px;min-width:200px;padding-left:8px;height:57px;left:0!important}.text-start{font-size:var(--fs-normal)}.first-header-border{border-left:1px solid var(--fb-border-default, #e2e8f0)}tr{height:45px!important;text-wrap:nowrap!important}.field-input{width:min(220px,98%);min-height:50px}.svg-spinner{animation:rotate 1s linear infinite}.svg-spinner .path{stroke:var(--fb-action, #003566);stroke-linecap:round;stroke-dasharray:80 150;stroke-width:4}@keyframes rotate{to{transform:rotate(360deg)}}img{max-width:none!important;vertical-align:middle}::ng-deep .mat-mdc-row:hover,::ng-deep .mat-row:hover{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n),::ng-deep .mat-row:nth-child(2n){background-color:var(--fb-row-alternate, #fcfdfe)}::ng-deep .mat-mdc-row:hover td.sticky-column,::ng-deep .mat-row:hover td.sticky-column,::ng-deep .mat-mdc-row:hover td.actionCol,::ng-deep .mat-row:hover td.actionCol{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n) td.sticky-column,::ng-deep .mat-row:nth-child(2n) td.sticky-column,::ng-deep .mat-mdc-row:nth-child(2n) td.actionCol,::ng-deep .mat-row:nth-child(2n) td.actionCol{background-color:var(--fb-row-alternate, #fcfdfe)}\n"],
|
|
5331
|
+
styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{border-top:1px solid var(--fb-border-default, #e2e8f0);min-height:100px;overflow:auto;width:100%;max-height:62vh}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-medium);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color,tr.mat-header-row,.mat-mdc-header-row{background:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-primary, #0f172a)!important;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;align-items:center}.search .search-bar{background-color:var(--fb-input-bg, #ffffff);border:1px solid var(--fb-input-border, #cbd5e1);border-radius:var(--radius-small, 6px);display:flex;align-items:center;padding:2px 8px;width:100%;gap:6px}.search .search-bar input{background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;width:100%;font-size:13px;color:var(--fb-text-primary, #0f172a);padding:2px 4px}.search .search-bar input::placeholder{color:var(--fb-placeholder-text, #94a3b8)}th.mat-header-cell:last-of-type{padding:0;font-weight:var(--fw-600);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}td.mat-cell:last-of-type{padding:8px;font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.table-title{font-weight:var(--fw-600);color:var(--fb-text-primary, #0f172a)}.sticky-column,td.actionCol{background-color:var(--fb-surface, #ffffff)}th.sticky-column,th.actionCol{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.mat-sort-header-container{margin-left:5px}.body-color img{cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border-radius:5px;color:var(--fb-text-primary, #0f172a);background-color:var(--fb-surface, #ffffff);font-weight:var(--fw-400);font-size:var(--fs-medium);transition:all .2s}::ng-deep [dir=rtl] .body-color img{margin-left:4px!important}@media screen and (min-width:600px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}}@media screen and (max-width:882px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.mat-cell{padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-header-cell{padding:0}}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.expense-file{font-size:var(--fs-small)}.expense-file:hover{font-style:italic;text-decoration:underline;color:var(--fb-action-hover, #00284d)}.expenseCon{background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);padding:5px;border-radius:3px}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline}.clickable{cursor:pointer}.font-size-13{font-size:var(--fs-normal)}.weekoff-color{color:var(--fb-error, #ef4444)}.table-width{width:max-content}.on-edit:hover .edit-icon{visibility:visible}.edit-icon{visibility:hidden}.input-box{border:solid}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.delete-icon{justify-content:center}.side-main-content{border-radius:10px}h2{font-size:28px}.list-group-item{margin-bottom:10px;padding:15px}.list-group-item p{margin-bottom:5px}.custom-badge{display:inline-block;width:50%;text-align:center;padding:.3em 0;margin-top:0!important}.bg-success{--bs-bg-opacity: 1;background-color:var(--fb-success-surface, #e6f4ea)!important;color:var(--fb-success-text, #137333)!important}.custom-search-button{background-color:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff);border-radius:5px;font-size:var(--fs-normal);border:none}.custom-search-button:hover{background-color:var(--fb-action-hover, #00284d)}.custom-search-button:active{transform:translateY(0)}.table{border-top:1px solid var(--fb-border-default, #e2e8f0)}th,td{vertical-align:middle}.configSearch{height:22px;padding:3px;margin:10p;background-color:var(--fb-action, #003566);border-radius:4px}::ng-deep .table>:not(caption)>*>*{background-color:none!important;--bs-table-bg: var(--fb-surface, #ffffff) !important}@font-face{font-display:swap;font-family:fusion-icon;font-style:normal;font-weight:400;src:url(https://icons.valarhr.com/fonts/fusion-icon.woff2) format(\"woff2\"),url(https://icons.valarhr.com/fonts/fusion-icon.woff) format(\"woff\"),url(https://icons.valarhr.com/fonts/fusion-icon.ttf) format(\"truetype\")}.fusion-icon{display:inline-block;font-family:fusion-icon!important;font-weight:400;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.fusion-icon-edit_pencil:before,.fusion-icon-edit:before{content:\"\\e140\"}.imgBtn{background-color:var(--fb-surface-secondary, #f8fafc);border-radius:var(--radius-small, 6px);width:15px;height:15px;object-fit:contain}.imgBtnDiv{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;line-height:0px;padding:4px;border-radius:5px;border:1px solid var(--fb-border-default, #e2e8f0)}input::placeholder{font-size:var(--fs-small);font-weight:var(--fw-400);color:var(--fb-placeholder-text, #94a3b8)}::ng-deep .modal-backdrop{background-color:var(--fb-backdrop, #00000073)!important}::ng-deep .modal-backdrop.show{background-color:var(--fb-backdrop, #00000073)!important;opacity:1!important}::ng-deep .mat-sort-header-container .mat-sort-header-content span{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}::ng-deep .mat-mdc-cell{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-400)!important;font-size:var(--fs-primary)!important;min-width:20px!important}.active-column{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}.hover-content{background:var(--fb-surface-elevated, #ffffff)}.position-relative{position:relative;display:inline-block}.filter-popup{position:absolute;top:100%;left:0;z-index:9998;background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .08));padding:10px;min-width:200px}.spanFontSize{font-size:var(--fs-normal)}.mat-column-employees{width:200px;min-width:200px;padding-left:8px;height:57px;left:0!important}.text-start{font-size:var(--fs-normal)}.first-header-border{border-left:1px solid var(--fb-border-default, #e2e8f0)}tr{height:45px!important;text-wrap:nowrap!important}.field-input{width:min(220px,98%);min-height:50px}.svg-spinner{animation:rotate 1s linear infinite}.svg-spinner .path{stroke:var(--fb-action, #003566);stroke-linecap:round;stroke-dasharray:80 150;stroke-width:4}@keyframes rotate{to{transform:rotate(360deg)}}img{max-width:none!important;vertical-align:middle}::ng-deep .mat-mdc-row:hover,::ng-deep .mat-row:hover{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n),::ng-deep .mat-row:nth-child(2n){background-color:var(--fb-row-alternate, #fcfdfe)}::ng-deep .mat-mdc-row:hover td.sticky-column,::ng-deep .mat-row:hover td.sticky-column,::ng-deep .mat-mdc-row:hover td.actionCol,::ng-deep .mat-row:hover td.actionCol{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n) td.sticky-column,::ng-deep .mat-row:nth-child(2n) td.sticky-column,::ng-deep .mat-mdc-row:nth-child(2n) td.actionCol,::ng-deep .mat-row:nth-child(2n) td.actionCol{background-color:var(--fb-row-alternate, #fcfdfe)}\n"],
|
|
6759
5332
|
dependencies: [
|
|
6760
5333
|
{
|
|
6761
5334
|
kind: "ngmodule",
|
|
@@ -7295,7 +5868,7 @@ var DataTableComponent = class DataTableComponent {
|
|
|
7295
5868
|
};
|
|
7296
5869
|
i0.ɵɵngDeclareClassMetadata({
|
|
7297
5870
|
minVersion: "12.0.0",
|
|
7298
|
-
version: "22.2.
|
|
5871
|
+
version: "22.2.5",
|
|
7299
5872
|
ngImport: i0,
|
|
7300
5873
|
type: DataTableComponent,
|
|
7301
5874
|
decorators: [{
|
|
@@ -7338,7 +5911,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7338
5911
|
useClass: CustomPaginatorIntl
|
|
7339
5912
|
}],
|
|
7340
5913
|
template: "<div class=\"table-layout\" [id]=\"tableId\" style=\"padding-top: 1px;\">\n <div>\n <!-- SK30JAN25 title added -->\n <div class=\"d-flex justify-content-center table-title align-text-center\">\n {{title}}\n </div>\n \n <div class=\"flex justify-content-between\" style=\"padding-bottom: 5px;\">\n <div class=\"d-flex align-items-center\">\n <!-- MR 09NOV26 table-toolbar-left projection slot -->\n <ng-content select=\"[table-toolbar-left]\"></ng-content>\n\n\n <div *ngIf=\"dateDropdown \">\n <app-drop-down class=\"field-input\" [lists]='dropdownLists' dropDownHeight=\"38px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dropdownEmitFunction($event)\" [selectedData]=\"dropdownSelectedData\"></app-drop-down>\n </div>\n <!-- SC11NOV2025 if isDatePicker is true then show the date picker -->\n <div *ngIf=\"isDatePicker\">\n <!-- MR 16NOV26 Semantic text token replacing hardcoded hex -->\n <app-drop-down [lists]='list' [selectedData]=\"selectedData\" dropDownHeight=\"42px\" dropFontWeight=\"500\"\n dropFontSize=\"12px\" dropFontColor=\"var(--fb-text-primary, #0f172a)\" dropBorderRadius=\"5px\" dropDownWidth=\"200px\"\n (dataEmit)=\"dateFilter($event)\"></app-drop-down>\n </div>\n </div>\n <!-- SKS24JAN25 show Nos in table -->\n <!-- <div style=\"display: flex; align-items: center;\">\n <p *ngIf=\"totalRecords || totalCount\" style=\"font-weight: var(--fw-500); margin-right: 5px; margin-bottom: 0px;\">{{'APP.NOS' | customTranslate : 'Nos'}} </p> <span style=\"color: var(--fc-primary-color, rgb(43, 87, 249));\">{{totalRecords || totalCount}}</span>\n </div> -->\n <!-- SKS24JAN25 search bar config and nonconfig -->\n <div style=\"margin-left:auto;\">\n <div class=\"flex\" style=\"align-items: center;\">\n <!-- MR 09NOV26 table-toolbar-right projection slot -->\n <ng-content select=\"[table-toolbar-right]\"></ng-content>\n\n\n <div class=\"search\">\n <div class=\"search-bar\">\n <img class=\"card-btn\" src=\"../assets/images/icons/general/Search.svg\">\n <input type=\"text\" placeholder=\"{{ 'APP.SEARCH' | customTranslate : 'Search' }}\" matInput\n (keyup)=\"searchConfigs ? emptySearch($event) : applyFilter($event)\"\n [value]=\" (searchConfigs || searchTextValue) ? searchBoxValue || '' : '' \" #input\n style=\"font-size: 13px !important;\">\n <img *ngIf=\"searchConfigs && searchBar\" (click)=\"onSearch(input.value)\"\n src=\"../assets/images/icons/general/configSearch.svg\" class=\"configSearch\">\n </div>\n </div>\n\n <!-- MR 09NOV26 Single toolbar button support from second-data-table -->\n <div class=\"flex\" *ngIf=\"button\">\n <app-fusion-button class=\"data-table-fsbtn ms-2 me-2\" (buttonClickEmit)=\"commonButtonClick($event, button)\"\n [buttonType]=\"button?.class || button?.buttonType\" [buttonValue]=\"button?.namePath || button?.labelPath || button?.name | customTranslate : button?.label || button?.name\"\n [buttonConfig]=\"button?.buttonConfig\" [type]=\"button?.type\" [fcBtnIconLeftSrc]=\"button?.btnIconLeftSrc || button?.fcBtnIconLeftSrc\"\n [isImageSvg]=\"button?.isImageSvg\">\n </app-fusion-button>\n </div>\n\n <!-- SKS24JAN25 single, group and dropdown dynamic buttons -->\n <div class=\"flex\" *ngIf=\"isButtons\" style=\"padding-left: 7px;\">\n <div class=\"flex\" *ngFor=\"let button of buttonArray\">\n <!-- MR 16NOV26 Clean semantic variant identifier for Export action -->\n <app-fusion-button class=\"data-table-fsbtn\" [buttonDisable]=\"button.buttonDisable\"\n [buttonLoadingSpinner]=\"buttonLoadingSpinner\" (buttonClickEmit)=\"commonButtonClick($event,button)\"\n [buttonType]=\"button.buttonType || (button.label === 'Export' ? 'secondary' : button.class || 'primary')\"\n [buttonValue]=\"button.labelPath || button.namePath || button.name | customTranslate : button.label || button.name\"\n [buttonConfig]=\"button.buttonConfig\" [type]=\"button.type\" class=\"ms-2 me-2\"\n [fcBtnIconLeftSrc]=\"button.label === 'Export' ? '../assets/images/icons/general/upload-icon.svg' : button.fcBtnIconLeftSrc\" [isImageSvg]=\"button.label === 'Export' ? true : button.isImageSvg\">\n <!--SKS25OCT24 If the value is 'Import' or 'Export', this button does not work-->\n </app-fusion-button>\n </div>\n </div>\n \n </div>\n\n <!-- SK23FEB24 for adding new record in table -->\n <div class=\"flex cursor-pointer\" *ngIf=\"addInlineRecord\" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <!-- MR 30OCT26 Refactor inline html template styling to theme tokens -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fb-text-primary, #0f172a) !important;\"></i>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"table-subtitle\" *ngIf=\"titleOn && title\">\n {{ title | customTranslate : title }}\n </div>\n\n <div class=\"table-margin\">\n <div class=\"table-container\" cdkScrollable> <!-- SKS3FEB25 The search filter closes when scrolling the table-->\n <!-- MSM28JAN25 MR 09NOV26 skeleton loader condition using isTableLoading --> \n <ng-container *ngIf=\"!isTableLoading; else loadingTemplate\">\n <table mat-table [dataSource]=\"dataSource || []\" [ngStyle]=\"{ width: tableWidth }\" matSort>\n <!-- Checkbox Columns -->\n <ng-container [sticky]=\"true\" class=\"checkboxCol\" *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\" style=\"border-left: 1px solid var(--fb-border-default, #e2e8f0);\">\n <input type=\"checkbox\" (click)=\"$event.stopPropagation()\" (change)=\"masterToggle()\"\n [checked]=\"selection?.hasValue()\" [indeterminate]=\"selection?.hasValue() && !isAllSelected()\"\n class=\"custom-checkbox\" />\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n <!-- SK18OCT24 check payroll Inprogress/Completed from backend data -->\n <input type=\"checkbox\" class=\"custom-checkbox\"\n [title]=\"(fromWhere === 'payrollTable' || fromWhere === 'paySlip') ? (row?.payProcessComment || '') : ''\"\n (click)=\"$event.stopPropagation()\" (change)=\"separateRowSelect(row)\"\n [checked]=\"selection.isSelected(row)\"\n [disabled]=\"(fromWhere === 'payrollTable' && row.isPayProcessed === true) || (fromWhere === 'paySlip' && row.isPayProcessed === false)\" />\n </td>\n <td mat-footer-cell *matFooterCellDef>\n {{ \"\" }}\n </td>\n </ng-container>\n\n <!-- data Columns -->\n <!-- set the matColumnDef attribute to the column name and use interpolation to dynamically generate the mat-header-cell and mat-cell elements based on the column name-->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [stickyEnd]=\"i === (stickyCondition - 1) ? true : false\" [sticky]=\"stickyColumns.includes(column)\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header\n style=\"border-right: 1px solid var(--fb-border-default, #e2e8f0);\" class=\"head-color ms-2 ps-2 pe-2\" \n [ngClass]=\"{'sticky-column': i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column)),'active-column': activeColumn === column,'first-header-border': i === 0}\"\n (click)=\"$event.stopPropagation(); onColumnClick(column)\">\n <span [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">{{\n (\n translatePath && translatePath[displayedColumns.indexOf(column)]\n ? translatePath[displayedColumns.indexOf(column)]\n : headerLabels[displayedColumns.indexOf(column)]\n )\n | customTranslate : headerLabels[displayedColumns.indexOf(column)]\n }}\n </span>\n <div (click)=\"$event.stopPropagation()\" class=\"position-relative\" cdk-overlay-origin\n #trigger=\"cdkOverlayOrigin\">\n <img class=\"ms-1\" *ngIf=\"filterColumns.includes(column)\" style=\"margin-bottom: 2px;\"\n (click)=\"filter(column)\" src=\"../assets/images/icons/general/filter-icon.svg\">\n </div>\n <ng-template cdk-connected-overlay [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"searchFilter === true && column === selectedFilter\"\n [cdkConnectedOverlayScrollStrategy]=\"createScrollStrategy()\"\n (overlayOutsideClick)=\"searchFilter = false\" (detach)=\"searchFilter = false\">\n <app-search-filter class=\"search-component position-absolute\"\n [class]=\"searchFilter === true && column === selectedFilter ? 'd-block' : 'd-none'\"\n [filterItems]=\"filterArray\" (emitValues)=\"filteredData($event)\" (click)=\"$event.stopPropagation()\">\n </app-search-filter>\n </ng-template>\n </th>\n <ng-container *ngIf=\"dataSource.data.length > 0\">\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color ps-2 pe-2\" *matCellDef=\"let element; let j = index\"\n [class.active-column]=\"activeColumn === column\"\n [class.sticky-column]=\"i === (stickyCondition - 1) || (stickyColumns && stickyColumns.includes(column))\">\n <!-- SK29OCT25 employee detail column -->\n <div *ngIf=\"column === 'employeeDetail'\">\n <div class=\"d-flex flex-row\" style=\"left:0;\">\n <div *ngIf=\"element['employeeName'] || element['name']\"\n [class]=\"hyperLinkColumns.includes(column) ? 'hyper-link' : '' \"\n style=\"font-size: var(--fs-small);color: var(--fb-text-primary, #0f172a);font-weight: var(--fw-600);\">\n {{element[\"employeeName\"] || element[\"name\"] || ''}}</div>\n <div *ngIf=\"element['employeeId']\"\n style=\"font-size: 11px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-400);\" class=\"ms-1\">\n [{{element[\"employeeId\"] || ''}}]</div>\n </div>\n <div class=\"d-flex flex-row\" *ngIf=\"element['designation'] && element['designation'] !== ''\">\n <div style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"designation\"] || ''}}\n </div>\n <div *ngIf=\"element['designation'] && element['designation'] !== '' && element['location'] && element['location'] !== ''\"\n style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">,</div>\n <div *ngIf=\"element['location'] && element['location'] !== ''\" style=\"font-size: 10px;color: var(--fb-text-secondary, #64748b);font-weight: var(--fw-600);\">\n {{element[\"location\"] || ''}}\n </div>\n </div>\n </div>\n <div *ngIf=\"column !== 'combinedColumn' && column !== 'employeeDetail' && fromWhere !== 'leaveMaster' && (column !== 'active' && (fromWhere === 'hrmTaxComponent' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrm' || fromWhere === 'compensation'|| fromWhere === 'payrollTable'|| fromWhere === 'payrollCompare'|| fromWhere === 'paySlip' || fromWhere === 'approval' || fromWhere === 'leave' || fromWhere === 'expense' || fromWhere === 'expenseApproval' || fromWhere === 'leaveAllocation' ||fromWhere === 'parkingApp' ||(fromWhere === 'common' && column != 'signature')))\">\n <!-- SK10APR24 getting the table values using pipe instead of function to increase performance-->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('') \">\n <span class=\"font-size-13 {{checkHyperlinkCheck(column) || fromWhere === 'hrm' || fromWhere === 'compensation' || fromWhere === 'parkingApp' ? ' hyper-link clickable ' : ''}} {{fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' }}\"\n *ngIf=\"hyperLinkColumns.includes(column) || isFirstCell(column)\"\n (click)=\"tableClick(element); onClickHyperlink(column,element, j, checkHyperlinkCheck(column))\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </span>\n <div *ngIf=\"!isFirstCell(column) && !editColumn.includes(column) && column != 'receipt'\"\n [class]=\"fromWhere === 'payrollTable' || fromWhere === 'paySlip' ? 'table-width' : '' \">\n <div *ngIf=\"!checkHyperlinkCheck(column)\" class=\"font-size-13\">\n <!--SKS21NOV24 Use customDateTime Pipe for both Date and Time -->\n <ng-container *ngIf=\"isDateColumn(column)\">\n {{ element[column] | customDate }}\n </ng-container>\n\n <ng-container *ngIf=\"isTimeColumn(column)\">\n {{ element[column] | customTime }}\n </ng-container>\n\n <!--SKS21NOV24 For other columns, display raw value -->\n <ng-container *ngIf=\"!isDateColumn(column) && !isTimeColumn(column)\">\n {{ '-' | getValue: element : column }}\n </ng-container>\n <!--SKS27NOV24 Check if the current column is in buttonColumn array -->\n <ng-container *ngIf=\"sideScreenColumn?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onInfoClick(element, column, j)\">\n </ng-container>\n <!--SKS9JAN25 rightnav column -->\n <ng-container *ngIf=\"objectColumns?.includes(column)\">\n <img class=\"ms-2\" src=\"../assets/images/icons/general/info.svg\"\n (click)=\"onSideNavInfoClick(element, column, j)\">\n </ng-container>\n </div>\n </div>\n </div>\n <!-- SK27FEB24 added input box for inline edit input-->\n <div *ngIf=\"editColumn.length > 0\">\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('string') \" class=\"on-edit d-flex\">\n <input #editColElement class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \"\n matInput [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n </div>\n <!-- SK10APR24 In table, like text input, added drop down and time inputs as well -->\n <div *ngIf=\" ('-' | editColumnCheck: column : editColumn) === ('object') \" class=\"on-edit d-flex\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('text') \" #editColElement\n class=\"lop-input table-width\" [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"element?.editRow ? false : true\">\n <input *ngIf=\" ('-' | editColumnType: column : editColumn) === ('time') \" type=\"time\"\n class=\"lop-input table-width\" matInput [class]=\"element?.editRow ? 'input-box' : '' \"\n placeholder=\"HH:mm:ss\" [(ngModel)]=\"element[column]\"\n [disabled]=\"element?.editRow ? false : true\" />\n <div *ngIf=\" ('-' | editColumnType: column : editColumn) === ('dropdown') \">\n <select type=\"dropdown\" *ngIf=\"element?.editRow\" class=\"lop-input table-width\" matInput\n [class]=\"element?.editRow ? 'input-box' : '' \" [(ngModel)]=\"element[column]\">\n <option [disabled]=\"element?.editRow ? false : true\"\n *ngFor=\"let data of [] | editColumnDropdown: column : editColumn \"\n [value]=\"data.value || data.name\">{{data.name}}</option>\n </select>\n <input *ngIf=\"!element?.editRow\" #editColElement class=\"lop-input table-width\"\n [class]=\"element?.editRow ? 'input-box' : '' \" matInput\n [placeholder]=\"'APP.ENTER' | customTranslate : 'Enter'\" [value]=\"element[column]\"\n [(ngModel)]=\"element[column]\" [readOnly]=\"true\">\n </div>\n\n </div>\n </div>\n <app-popover\n *ngIf=\"column === 'receipt' && !editColumn.includes(column) && receiptImg == true && element[column] && element[column].length != 0\"\n [isBootstrap]=\"false\" [dynamicPopover]=\"'Popover string comes here'\">\n <div class=\"hover-base\">\n <img class=\"ms-1\" src=\"../../../assets/images/icons/general/file-attach.svg\">\n </div>\n <div class=\"hover-content\">\n <div class=\"expenseCon\">\n <div *ngFor=\"let data of element[column] || []\">\n <div class=\"cursor-pointer expense-file\" (click)=\"expenseAttachment(data,element)\">{{data?.name}}\n <!-- SK20FEB26 loader in expense list-->\n <svg *ngIf=\"data?.loader\"\n class=\"svg-spinner card-icon color\"\n width=\"22\" height=\"22\" viewBox=\"0 0 50 50\"\n style=\"cursor: wait;\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"4\"></circle>\n </svg>\n </div>\n </div>\n </div>\n </div>\n </app-popover>\n </div>\n <div *ngIf=\"fromWhere === 'leaveMaster' && column !== 'employeeDetail' \">\n <div [class]=\"(element[column]) === 'Week Off' ? 'weekoff-color' : '' \" class=\"font-size-13\">{{\n (column == 'default' || column == 'active' || column == 'paidLeave') ? '' : element[column] }}</div>\n <input *ngIf=\"(column === 'default' || column === 'active' || column === 'paidLeave')\"\n class=\"custom-checkbox\" [checked]=\"element[column] == true\" type=\"checkbox\" disabled>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'combinedColumn'\">\n <!-- for the Payroll Settings Component ( Side Screen Component )-->\n <!-- Since the last column is a combination of data and it is also conditional based on the paytype and calculation type we are using this div-->\n <!-- if Component type is Earnings and\n calculationType is 'flat' then output should be => \"'payType\": Flat, Amount of 'amount'\"\n calculationType is 'percentage' then output should be => \"'payType': 'amount' % of Basic \"\n calculationType is 'fixed' then output should be => \"'payType': 'calculationType'\" -->\n <!-- SK20JUN25 to display in table -->\n <ng-container *ngIf=\"\n element?.calculationType === 'flat' ||\n element?.calculationType === 'percentage' ||\n element?.calculationType === 'basicAndDA' ||\n element?.calculationType === 'fixed' ||\n element?.calculationType === 'ctc';\n else noCalculation\n \">\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE_FLAT_AMOUNT'\n | customTranslate : 'Variable: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'flat' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED_FLAT_AMOUNT'\n | customTranslate : 'Fixed: Flat Amount: ' }}{{ (element['amount'] || 0)}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'percentage' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC' |\n customTranslate : '% of Basic'}}</span>\n\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'basicAndDA' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_BASIC_AND_DA' | customTranslate : '% of Basic and DA'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'fixed' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS'\n | customTranslate : '% of Gross'}}</span>\n <span class=\"spanFontSize\"\n *ngIf=\"element['calculationType'] == 'fixed' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }}{{ element['amount']}}{{ 'APP_HRM_PAYROLL_SETTINGS.PER_OF_GROSS' |\n customTranslate : '% of Gross'}}</span>\n\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && !element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\"> {{'APP_HRM_PAYROLL_SETTINGS.FIXED' |\n customTranslate : 'Fixed: ' }} {{ element['amount'] }} {{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_FIXED_CTC' | customTranslate : '% of Fixed CTC'}}</span>\n <span class=\"spanFontSize\" *ngIf=\"element['calculationType'] == 'ctc' && element['isVariablePay']\"\n [class]=\"'calculationType-'+element['calculationType']\">{{'APP_HRM_PAYROLL_SETTINGS.VARIABLE' |\n customTranslate : 'Variable: ' }}{{ element['amount'] }}{{\n 'APP_HRM_PAYROLL_SETTINGS.PER_OF_VARIABLE_CTC' | customTranslate : '% of Variable CTC'}}</span>\n </ng-container>\n\n <ng-template #noCalculation>\n <span class=\"spanFontSize\">-</span>\n </ng-template>\n </div>\n <div *ngIf=\"fromWhere === 'payrollSettingComponent' && column === 'active'\">\n <div class=\"form-check form-switch\">\n <input class=\"custom-checkbox\" type=\"checkbox\" [checked]=\"(element != null && element['active'] === true) ? true : false\"\n (click)=\"element[column]=!element[column]; onToggleChange.emit(fromWhere === 'payrollSettingComponent' ? element : '')\">\n </div>\n </div>\n </td>\n </ng-container>\n <!-- SK16JUL24 to get the sum of column data -->\n <td class=\"ps-2 pe-2 \" mat-footer-cell *matFooterCellDef=\"let element; let j = index\">\n {{ '-' | totalColumSum: data : cumulativeDataColumns : column }}\n </td>\n </ng-container>\n <!-- action button Columns -->\n <!-- SK19MAR25 \"action\" key is changed to \"tableAction\" wherever used, since, it has duplicate error -->\n <ng-container [stickyEnd]=\"true\" *ngIf=\"actionButton || isDeleteRow || isEditRow\"\n matColumnDef=\"tableAction\">\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color action-size sticky-column actionCol text-center\" style=\"border-right: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));\">{{ actionColumHeader |\n customTranslate : 'Action'}}</th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let element; let i=index\" class=\"body-color sticky-column actionCol\">\n <!-- SKS25DEC24 clone button -->\n <div class=\"d-flex flex-row actionButton\"\n [style.justify-content]=\"conditionSendButton ? 'none' : 'center'\">\n <div *ngIf=\"(!conditionCloneButton) && cloneButton\" class=\"imgBtnDiv\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <div *ngIf=\"(conditionCloneButton) && isConditionMet(element, conditionCloneButton.conditions)\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <img style=\"padding: 0px;\" (click)=\"onClone(element , i)\"\n src=\"../assets/images/icons/general/clone.svg\" class=\"imgBtn\" data-bs-toggle=\"modal\">\n </div>\n <!-- SK20FEB26 Expense edit on Pending status -->\n <div *ngIf=\"element?.status === 'Rejected'|| fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow || (fromWhere == 'expense' && element?.status === 'Pending' )\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.COMMENTS' | customTranslate : 'comments' \"\n (buttonClickEmit)=\"onEdit(element?.rejectionReason, i, element?.status)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#rejectInfoModal\">\n </app-fusion-button>\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)) || (conditionEditButton && isConditionMet(element, conditionEditButton.conditions))\">\n <!-- MR 20NOV26 Standardize action column edit icon using fusion-icon font glyph \\e140 -->\n <i *ngIf=\"(!conditionEditButton)&& ((fromWhere == 'expense' ) || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isEditRow)\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i, element?.status)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n <i *ngIf=\"conditionEditButton && isConditionMet(element, conditionEditButton.conditions)\"\n [matTooltip]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? ('APP_EXPENSE.CANNOT_EDIT_APPROVED' | customTranslate : 'Approved expenses cannot be edited') : ('APP.EDIT' | customTranslate : 'Edit')\"\n [style.opacity]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? '0.35' : '1'\"\n [style.cursor]=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? 'not-allowed' : 'pointer'\"\n (click)=\"(fromWhere === 'expense' && element?.status?.toLowerCase() === 'approved') ? null : onEdit(fromWhere === 'payrollSettingComponent' || isEditRow ? element : element?._id, i)\"\n class=\"fusion-icon nav-icon fusion-icon-edit_pencil\" style=\"margin: 0px !important; font-size: var(--fs-normal, 15px) !important; color: var(--fc-sub-lite, #787486);\">\n </i>\n </div>\n <!-- <img *ngIf=\"fromWhere == 'expense'\" (click)=\"delete(element?._id)\" src=\"../assets/images/icons/Vectordelete.svg\"> -->\n </div>\n <div *ngIf=\"element?.leaveStatus === 'New' || element?.status === 'New' || element?.status === 'Pending' || element?.leaveStatus === 'Pending' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || fromWhere == 'expenseApproval' || isDeleteRow\">\n <app-fusion-button *ngIf=\"fromWhere == 'leave'\" [buttonType]=\"'text-only'\"\n [buttonValue]=\"'APP.CANCEL' | customTranslate : 'Cancel'\" (buttonClickEmit)=\"delete(element, i)\"\n data-bs-toggle=\"modal\" data-bs-target=\"#cancelLeave\"></app-fusion-button>\n <!-- SKS21NOV24 Conditional rendering of delete icon based on various conditions -->\n <!-- Show the delete icon if 'conditionDeleteButton' is false and 'fromWhere' matches specific components or 'isDeleteRow' is true -->\n <div class=\"imgBtnDiv\"\n *ngIf=\"((!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow) )|| (conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions))\">\n <img\n *ngIf=\"(!conditionDeleteButton)&&(fromWhere == 'expense' || fromWhere === 'leaveMaster' || fromWhere === 'payrollSettingComponent' || fromWhere === 'hrmTaxComponent' || isDeleteRow)\"\n class=\"imgBtn\" [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(fromWhere === 'payrollSettingComponent' || isDeleteRow ? element : element?._id, i)\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n <img *ngIf=\"conditionDeleteButton && isConditionMet(element, conditionDeleteButton.conditions)\"\n [matTooltip]=\"'APP.DELETE_RECORD' | customTranslate : 'Delete Record'\"\n (click)=\"deleteRecord(isDeleteRow ? element : element?._id, i)\" class=\"imgBtn\"\n src=\"../assets/images/icons/Vectordelete.svg\">\n </div>\n <div *ngIf=\"fromWhere == 'approval' || fromWhere == 'expenseApproval'\" class=\"flex imgBtnDiv\">\n <img\n *ngIf=\"(fromWhere === 'expenseApproval' && element?.status === 'Approved'&& element?.reImbursed !== 'Reimbursed') || fromWhere == 'approval'\"\n class=\"approval-image me-2\" style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onApprove( element?.employeeId, element?._id, element?.reImbursed )\"\n src=\"../assets/images/icons/general/Approved.svg\">\n <img *ngIf=\"fromWhere !== 'expenseApproval'\" class=\"approval-image\"\n style=\"padding: 0px; width: 24px !important;\"\n (click)=\"onReject( element?.employeeId, element?._id )\"\n src=\"../assets/images/icons/general/Declined.svg\" class=\"\" data-bs-toggle=\"modal\"\n data-bs-target=\"#approvalReject\">\n </div>\n </div>\n <!-- SK02APR24 added preview and download icons -->\n <div *ngIf=\"viewIcon\" class=\"ms-2 imgBtnDiv\">\n <!-- <img [src]=\"('post.svg' | svgIcon:'#000000') | async\" class=\"card-icon color\" title=\"preview\" (click)=\"viewIconClick(element)\" style=\"cursor: pointer;\" /> -->\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-eye nav-icon\" matTooltip=\"Preview\"\n matTooltipPosition=\"above\" style=\"color: var(--fc-text-color-light) !important; cursor: pointer;\"\n (click)=\"viewIconClick(element)\"></i>\n\n </div>\n <div *ngIf=\"downloadIcon\" class=\"ms-2 imgBtnDiv\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-download card-icon color imgBtn\"\n matTooltip=\"Download\" matTooltipPosition=\"above\"\n style=\"cursor: pointer; color: var(--fc-text-color-light) !important;\"\n (click)=\"downloadIconClick(element)\">\n </i>\n </div>\n <!-- SKS25DEC24 send button -->\n <div *ngIf=\"(!conditionSendButton) && sendButton\" class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <div\n *ngIf=\"(conditionSendButton) && isConditionMet(element, conditionSendButton.conditions) && sendButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 6px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-send-2 card-icon color imgBtn\"\n style=\"cursor: pointer\" (click)=\"onSend(element, i)\"\n [matTooltip]=\"'APP.SEND' | customTranslate : 'Send'\"></i>\n </div>\n <!-- SKS25DEC24 active button -->\n <div *ngIf=\"(!conditionActivateButton) && activeButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionActivateButton) && isConditionMet(element, conditionActivateButton.conditions) && activeButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <!-- SKS25DEC24 deactive button -->\n <div *ngIf=\"(!conditionDeactivateButton) && deactiveButton\" class=\"ms-2 imgBtnDiv\"\n style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n <div\n *ngIf=\"(conditionDeactivateButton) && isConditionMet(element, conditionDeactivateButton.conditions) && deactiveButton\"\n class=\"ms-2 imgBtnDiv\" style=\"margin-top: 10px;\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-group nav-icon\" style=\"color: var(--comp-bg-color, #ffffff);\"></i>\n </div>\n </div>\n <div>\n\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/downloadfile.svg'\"\n (buttonClickEmit)=\"downloadPdf(element)\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/general/pencil-icon.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#documentsInfoModal\"></app-fusion-button>\n <app-fusion-button *ngIf=\"fromWhere == 'document-icons'\" [buttonType]=\"'custom-btn'\"\n [fcBtnIconLeftSrc]=\"'../assets/images/icons/Vectordelete.svg'\"\n (buttonClickEmit)=\"delete(element, i)\" data-bs-toggle=\"modal\"\n data-bs-target=\"#deleteDocModal\"></app-fusion-button>\n </div>\n </td>\n <td mat-footer-cell *matFooterCellDef=\"let element; let i=index\">{{ \"\" }}\n </td>\n </ng-container>\n\n <!-- total Row -->\n <ng-container [sticky]=\"true\" matColumnDef=\"total\">\n <th mat-header-cell *matHeaderCellDef class=\"sticky-column head-color\">\n </th>\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell *matCellDef=\"let row\" class=\"body-color sticky-column\">\n </td>\n <!-- RS27AUG24 -->\n <!-- Used the translate pipe to successfully implement the translation -->\n <td mat-footer-cell *matFooterCellDef >{{'APP.TOTAL' | customTranslate : 'Total' }}\n </td>\n </ng-container>\n\n <!-- Render the columns -->\n <!-- SK16JUL24 adding the cumulative data row as footer -->\n <!-- <ng-container *ngIf=\"dataSource?.data?.length !== 0\"> -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns);\"></tr>\n <!-- SK19JUL24 table total update -->\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null \">\n </tr>\n </div>\n <div *ngSwitchCase=\"'tableAction'\">\n <tr mat-header-row\n *matHeaderRowDef=\" displayedColumns ? displayedColumns.concat(['tableAction']) : [] ;sticky: true\">\n </tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumns ? displayedColumns.concat(['tableAction']) : []; \">\n </tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <!-- 30JAN24 for both checkbox and action columns-->\n <div *ngSwitchCase=\"'both'\">\n <tr mat-header-row\n *matHeaderRowDef=\"['select'].concat(displayedColumns).concat('tableAction') sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns).concat('tableAction')\"\n (click)=\"tableClick(row)\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? '' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns).concat('tableAction') : null\">\n </tr>\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row;let i =index; columns: displayedColumns;\"></tr>\n <ng-container *ngIf=\"cumulativeDataColumns\">\n <tr\n [class]=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? 'd-block' : 'border border-white' \"\n mat-footer-row\n *matFooterRowDef=\"cumulativeDataColumns != undefined && cumulativeDataColumns.length !== 0 ? ['total'].concat(displayedColumns) : null\">\n </tr>\n </ng-container>\n </div>\n </div>\n <!-- </ng-container> -->\n <!-- <tr class=\"mat-row \" *matNoDataRow> -->\n <!-- SK9JAN24 Removed attr.colspan since it throws undefined error -->\n <!-- <td class=\"mat-cell \">\n {{'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </td>\n </tr> -->\n\n </table>\n <div class=\"no-data-cell text-center my-3 \" *ngIf=\"!dataSource || !dataSource.data || dataSource.data.length === 0\">\n {{ 'APP.NO_RECORDS' | customTranslate : 'No records/data found.' }}\n </div>\n </ng-container>\n <!-- MSM28JAN25 skeleton loader template -->\n <ng-template #loadingTemplate>\n <table>\n <tr style=\"height: 40px;\" *ngFor=\"let _ of [1, 2, 3, 4,5,6]\">\n <td colspan=\"3\" class=\"skeleton-card\">\n <div class=\"title\" data-title>\n <div class=\"skeleton skeleton-text\"></div>\n <div class=\"skeleton skeleton-text\"></div>\n </div>\n </td>\n </tr>\n </table>\n </ng-template>\n </div>\n <!-- SK23FEB24 table input save button changes -->\n <div class=\"d-flex justify-content-end\">\n <div class=\"flex mt-4 me-2 cursor-pointer\" *ngIf=\"addInlineRecord \" (click)=\"addTableRecord(inlineElement)\"\n [matTooltip]=\"'APP.ADD_NEW_RECORD' | customTranslate : 'Add New Record'\">\n <div class=\"ms-1 me-1\">\n <i class=\"fusion-icon fusion-icon-size-lg fusion-icon-add-square nav-icon\"\n style=\"color: var(--fc-text-color-dark, #000000) !important;\"></i>\n </div>\n </div>\n <!-- SK27FEB24 removed button disable logic, SK13MAR24 added another condition for button showing-->\n <!-- SR06JAN2025 button disable logic for not select any employee-->\n <div class=\"d-flex justify-content-between align-items-end\">\n <div class=\"px-2\">\n {{notes}}</div>\n\n <app-fusion-button [buttonLoadingSpinner]=\"tableSaveLoadingSpinner\"\n *ngIf=\"editColumn.length > 0 || tableSaveButton\" buttonType=\"btn btn-primary mt-4 me-2\"\n [buttonDisable]=\"selection?.selected?.length === 0\" (buttonClickEmit)=\"saveButton()\"\n buttonValue=\"{{ 'APP.SAVE' | customTranslate : 'Save' }}\"></app-fusion-button>\n </div>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar matching Image 1 -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n </app-pagination>\n </div>\n </div>\n</div>\n\n<!-- SK03OCT24 while clicking export button, side screen will be displayed, with fields selection and filter boxes -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"{{'APP.EXPORT_DATA' | customTranslate : 'Export Data'}}\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <i *ngIf=\"!exportButtonLoadingSpinner\" class=\"fusion-icon fusion-icon-size-lg fusion-icon-document-upload card-icon color me-1\"></i>\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 displaying components from parent (multipleCheckBox/multipleFilter) -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\"\n [isDateFilter]=\"type?.isDateFilter || false\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n<!-- SKS15DEC25 bulk upload -->\n<app-file-upload [id]=\"'uploadEmployee'\" [headerName]=\"moudleName\" [showFileModal]=\"uploadModal\"\n (closeEmit)=\"uploadModal = false\"\n [bodyHeaderName]=\"('APP.STEPS_TO_UPLOAD' | customTranslate : 'Steps to upload')+moudleName\" [isTemplate]=true\n [templateContent]=\"('APP.DOWNLOAD_THE' | customTranslate : 'Download the')+ moudleName +('APP.TEMPLATE' | customTranslate : 'template')\"\n (templateDownload)=\"downloadTemplate()\"\n [bodyContent]=\"[(('APP.FILL_THE_APPROP' | customTranslate : 'Fill the appropriate')+moudleName+('APP.DETAILS_AND_UPLOAD_ITS_BELOW' | customTranslate : 'Details and upload it below'))]\"\n [fileRestrictions]=\"{\n allowedTypes: ['.csv', '.xlsx', '.xls'],\n maxFileSize: 10,\n maxFiles: 1\n }\" [uploadedFiles]=\"[]\" [saveButtonName]=\"'APP.UPLOAD' | customTranslate : 'Upload'\"\n (upload)=\"uploadRecordsFile($event)\">\n</app-file-upload>\n<!-- SK06NOV24 alert on deleting record -->\n<div *ngIf=\"deleteModal\" class=\"modal modal-backdrop show d-block\" id=\"deleteRecord\" tabindex=\"-1\"\n aria-labelledby=\"deleteRecordLabel\" [attr.aria-hidden]=\"!deleteModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"deleteRecordLabel\">{{'APP.DELETE_RECORD' | customTranslate : 'Delete Record'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"deleteModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_REC' | customTranslate : 'Are you sure want to delete the record'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? deleteRecordData() : null\">\n <!-- SK04SEP25 button loader -->\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\" (click)=\"deleteModal = false\">{{'APP.NO'\n | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n\n<app-common-screen *ngIf=\"infoSidescreen\" [headerTitle]=\"'APP.APPROVAL_DETAILS' | customTranslate : 'Approval Details'\"\n (sideScreenEmittedEvent)=\"infoSidescreen = false\">\n <div class=\"side-main-content container\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <!-- Approval Info -->\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.NAME' | customTranslate : 'Name'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.name || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.status === 'Approved' || infoData.status === 'Pending' || infoData.status === 'Rejected' \"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.status === 'Approved', \n 'bg-warning': infoData.status === 'Pending',\n 'bg-danger': infoData.status === 'Rejected'}\">\n {{ infoData.status }}</span>\n <span\n *ngIf=\"infoData.status !== 'Approved' && infoData.status !== 'Pending' && infoData.status !== 'Rejected' \">{{\n infoData.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK21DEC24 to add Approval status in side screen-->\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_STATUS' | customTranslate : 'Approval Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span\n *ngIf=\"infoData.leaveStatus === 'Approved' || infoData.leaveStatus === 'Pending' || infoData.leaveStatus === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': infoData.leaveStatus === 'Approved', \n 'bg-warning': infoData.leaveStatus === 'Pending',\n 'bg-danger': infoData.leaveStatus === 'Rejected'}\">\n {{ infoData.leaveStatus || '' }}</span>\n <span\n *ngIf=\"infoData.leaveStatus !== 'Approved' && infoData.leaveStatus !== 'Pending' && infoData.leaveStatus !== 'Rejected'\">{{\n infoData.leaveStatus || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.REASON' | customTranslate : 'Reason'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.reason || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.TYPE' | customTranslate : 'Type'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.type || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPLIED_ON' | customTranslate : 'Applied On'}}:</div>\n <div class=\"col-6 text-start\">{{ (infoData.appliedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVED_COUNT' | customTranslate : 'Approved Count'}}:</div>\n <div class=\"col-6 text-start\">{{ infoData.approvedCount || '' }}</div>\n </div>\n </div>\n </div>\n <!-- Approval Managers -->\n <!-- SK03DEC24 show approval managers list only if applicable -->\n <h3 *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"text-center mb-3\">\n {{'APP.APPROVAL_MANAGERS' | customTranslate : 'Approval Managers'}}</h3>\n <ul *ngIf=\"infoData.approvalManagers != undefined && infoData.approvalManagers.length > 0\" class=\"list-group\">\n <li *ngFor=\"let manager of infoData.approvalManagers\" class=\"list-group-item\">\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_ID' | customTranslate : 'Employee ID'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.employeeId || ''}}</div>\n </div>\n <div class=\"row mb-3\">\n <!-- SK10DEC24 to show manager name -->\n <div class=\"col-6 text-start\">{{'APP.EMPLOYEE_NAME' | customTranslate : 'Employee Name'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.name || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.APPROVAL_ORDER' | customTranslate : 'Approval Order'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.approvalOrder || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.STATUS' | customTranslate : 'Status'}}:</div>\n <div class=\"col-6 text-start\">\n <span *ngIf=\"manager.status === 'Approved' || manager.status === 'Pending' || manager.status === 'Rejected'\"\n class=\"badge custom-badge\" [ngClass]=\"{\n 'bg-success': manager.status === 'Approved', \n 'bg-warning': manager.status === 'Pending',\n 'bg-danger': manager.status === 'Rejected'}\">\n {{ manager.status || '' }}\n </span>\n <span\n *ngIf=\"manager.status !== 'Approved' && manager.status !== 'Pending' && manager.status !== 'Rejected'\"> {{\n manager.status || '' }}</span>\n </div>\n </div>\n <div class=\"row mb-3\" *ngIf=\"manager.viewedOn\">\n <div class=\"col-6 text-start\">{{'APP.VIEWED_ON' | customTranslate : 'Viewed On'}}:</div>\n <div class=\"col-6 text-start\">{{ (manager.viewedOn | date:'short') || '' }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.IS_OPTIONAL' | customTranslate : 'Is Optional'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.isOptional ? \"Yes\" : \"No\" }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-6 text-start\">{{'APP.COMMENTS' | customTranslate : 'Comments'}}:</div>\n <div class=\"col-6 text-start\">{{ manager.rejectionReason || '' }}</div>\n </div>\n </li>\n </ul>\n </div>\n</app-common-screen>\n\n",
|
|
7341
|
-
styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{border-top:1px solid var(--fb-border-default, #e2e8f0);min-height:100px;overflow:auto;width:100%;max-height:62vh}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-medium);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color,tr.mat-header-row,.mat-mdc-header-row{background:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-primary, #0f172a)!important;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;align-items:center}.search .search-bar{background-color:var(--fb-input-bg, #ffffff);border:1px solid var(--fb-input-border, #cbd5e1);border-radius:var(--radius-small, 6px);display:flex;align-items:center;padding:2px 8px;width:100%;gap:6px}.search .search-bar input{background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;width:100%;font-size:13px;color:var(--fb-text-primary, #0f172a);padding:2px 4px}.search .search-bar input::placeholder{color:var(--fb-placeholder-text, #94a3b8)}th.mat-header-cell:last-of-type{padding:0;font-weight:var(--fw-600);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}td.mat-cell:last-of-type{padding:8px;font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.table-title{font-weight:var(--fw-600);color:var(--fb-text-primary, #0f172a)}.sticky-column,td.actionCol{background-color:var(--fb-surface, #ffffff)}th.sticky-column,th.actionCol{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.mat-sort-header-container{margin-left:5px}.body-color img{cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border-radius:5px;color:var(--fb-text-primary, #0f172a);background-color:var(--fb-surface, #ffffff);font-weight:var(--fw-400);font-size:var(--fs-medium);transition:all .2s}::ng-deep [dir=rtl] .body-color img{margin-left:4px!important}@media screen and (min-width:600px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}}@media screen and (max-width:882px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.mat-cell{padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-header-cell{padding:0}}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.expense-file{font-size:var(--fs-small)}.expense-file:hover{font-style:italic;text-decoration:underline;color:var(--fb-action-hover, #00284d)}.expenseCon{background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);padding:5px;border-radius:3px}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline}.clickable{cursor:pointer}.font-size-13{font-size:var(--fs-normal)}.weekoff-color{color:var(--fb-error, #ef4444)}.table-width{width:max-content}.on-edit:hover .edit-icon{visibility:visible}.edit-icon{visibility:hidden}.input-box{border:solid}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.delete-icon{justify-content:center}.side-main-content{border-radius:10px}h2{font-size:28px}.list-group-item{margin-bottom:10px;padding:15px}.list-group-item p{margin-bottom:5px}.custom-badge{display:inline-block;width:50%;text-align:center;padding:.3em 0;margin-top:0!important}.bg-success{--bs-bg-opacity: 1;background-color:var(--fb-success-surface, #e6f4ea)!important;color:var(--fb-success-text, #137333)!important}.custom-search-button{background-color:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff);border-radius:5px;font-size:var(--fs-normal);border:none}.custom-search-button:hover{background-color:var(--fb-action-hover, #00284d)}.custom-search-button:active{transform:translateY(0)}.table{border-top:1px solid var(--fb-border-default, #e2e8f0)}th,td{vertical-align:middle}.configSearch{height:22px;padding:3px;margin:10p;background-color:var(--fb-action, #003566);border-radius:4px}::ng-deep .table>:not(caption)>*>*{background-color:none!important;--bs-table-bg: var(--fb-surface, #ffffff) !important}@font-face{font-display:swap;font-family:fusion-icon;font-style:normal;font-weight:400;src:url(https://icons.valarhr.com/fonts/fusion-icon.woff2) format(\"woff2\"),url(https://icons.valarhr.com/fonts/fusion-icon.woff) format(\"woff\"),url(https://icons.valarhr.com/fonts/fusion-icon.ttf) format(\"truetype\")}.fusion-icon{display:inline-block;font-family:fusion-icon!important;font-weight:400;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.fusion-icon-edit_pencil:before{content:\"\\e140\"}.imgBtn{background-color:var(--fb-surface-secondary, #f8fafc);border-radius:var(--radius-small, 6px);width:15px;height:15px;object-fit:contain}.imgBtnDiv{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;line-height:0px;padding:4px;border-radius:5px;border:1px solid var(--fb-border-default, #e2e8f0)}input::placeholder{font-size:var(--fs-small);font-weight:var(--fw-400);color:var(--fb-placeholder-text, #94a3b8)}::ng-deep .modal-backdrop{background-color:var(--fb-backdrop, #00000073)!important}::ng-deep .modal-backdrop.show{background-color:var(--fb-backdrop, #00000073)!important;opacity:1!important}::ng-deep .mat-sort-header-container .mat-sort-header-content span{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}::ng-deep .mat-mdc-cell{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-400)!important;font-size:var(--fs-primary)!important;min-width:20px!important}.active-column{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}.hover-content{background:var(--fb-surface-elevated, #ffffff)}.position-relative{position:relative;display:inline-block}.filter-popup{position:absolute;top:100%;left:0;z-index:9998;background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .08));padding:10px;min-width:200px}.spanFontSize{font-size:var(--fs-normal)}.mat-column-employees{width:200px;min-width:200px;padding-left:8px;height:57px;left:0!important}.text-start{font-size:var(--fs-normal)}.first-header-border{border-left:1px solid var(--fb-border-default, #e2e8f0)}tr{height:45px!important;text-wrap:nowrap!important}.field-input{width:min(220px,98%);min-height:50px}.svg-spinner{animation:rotate 1s linear infinite}.svg-spinner .path{stroke:var(--fb-action, #003566);stroke-linecap:round;stroke-dasharray:80 150;stroke-width:4}@keyframes rotate{to{transform:rotate(360deg)}}img{max-width:none!important;vertical-align:middle}::ng-deep .mat-mdc-row:hover,::ng-deep .mat-row:hover{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n),::ng-deep .mat-row:nth-child(2n){background-color:var(--fb-row-alternate, #fcfdfe)}::ng-deep .mat-mdc-row:hover td.sticky-column,::ng-deep .mat-row:hover td.sticky-column,::ng-deep .mat-mdc-row:hover td.actionCol,::ng-deep .mat-row:hover td.actionCol{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n) td.sticky-column,::ng-deep .mat-row:nth-child(2n) td.sticky-column,::ng-deep .mat-mdc-row:nth-child(2n) td.actionCol,::ng-deep .mat-row:nth-child(2n) td.actionCol{background-color:var(--fb-row-alternate, #fcfdfe)}\n"]
|
|
5914
|
+
styles: [".table-wrapper{overflow-x:auto;max-width:100%}.table-container{border-top:1px solid var(--fb-border-default, #e2e8f0);min-height:100px;overflow:auto;width:100%;max-height:62vh}.table-layout{background:var(--fb-surface, #ffffff);border-radius:8px}.th{border-bottom:1px solid var(--fb-border-default, #e2e8f0);font-weight:var(--fw-600);font-size:var(--fs-medium);line-height:21px;color:var(--fb-text-primary, #0f172a)}.head-color,tr.mat-header-row,.mat-mdc-header-row{background:var(--fb-surface-secondary, #f8fafc)!important;color:var(--fb-text-primary, #0f172a)!important;border-bottom:1px solid var(--fb-border-default, #e2e8f0)}.body-color{color:var(--fb-text-primary, #0f172a);cursor:default}.search{display:flex;align-items:center}.search .search-bar{background-color:var(--fb-input-bg, #ffffff);border:1px solid var(--fb-input-border, #cbd5e1);border-radius:var(--radius-small, 6px);display:flex;align-items:center;padding:2px 8px;width:100%;gap:6px}.search .search-bar input{background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;width:100%;font-size:13px;color:var(--fb-text-primary, #0f172a);padding:2px 4px}.search .search-bar input::placeholder{color:var(--fb-placeholder-text, #94a3b8)}th.mat-header-cell:last-of-type{padding:0;font-weight:var(--fw-600);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}td.mat-cell:last-of-type{padding:8px;font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.table-title{font-weight:var(--fw-600);color:var(--fb-text-primary, #0f172a)}.sticky-column,td.actionCol{background-color:var(--fb-surface, #ffffff)}th.sticky-column,th.actionCol{background:linear-gradient(var(--fb-action-surface, #e0f2fe),var(--fb-action-surface, #e0f2fe)),var(--fb-surface, #ffffff)!important}.mat-sort-header-container{margin-left:5px}.body-color img{cursor:pointer}.head-color.action-size{color:var(--fb-text-primary, #0f172a);font-size:var(--fs-primary);font-weight:var(--fw-600)}.lop-input{border-radius:5px;color:var(--fb-text-primary, #0f172a);background-color:var(--fb-surface, #ffffff);font-weight:var(--fw-400);font-size:var(--fs-medium);transition:all .2s}::ng-deep [dir=rtl] .body-color img{margin-left:4px!important}@media screen and (min-width:600px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}}@media screen and (max-width:882px){mat-table{font-weight:var(--fw-400);font-size:var(--fs-medium);color:var(--fb-text-primary, #0f172a)}.mat-cell{padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-header-cell{padding:0}}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-right:24px}::ng-deep [dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type){padding-right:10px!important;padding-left:unset!important}.mat-sort-header-container.mat-focus-indicator.ng-tns-c139-34{margin-left:5px}.expense-file{font-size:var(--fs-small)}.expense-file:hover{font-style:italic;text-decoration:underline;color:var(--fb-action-hover, #00284d)}.expenseCon{background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);padding:5px;border-radius:3px}.hyper-link{text-decoration:none}.hyper-link:hover{color:var(--fb-action, #003566);text-decoration:underline}.clickable{cursor:pointer}.font-size-13{font-size:var(--fs-normal)}.weekoff-color{color:var(--fb-error, #ef4444)}.table-width{width:max-content}.on-edit:hover .edit-icon{visibility:visible}.edit-icon{visibility:hidden}.input-box{border:solid}.button-hov:hover{background:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff)}.delete-icon{justify-content:center}.side-main-content{border-radius:10px}h2{font-size:28px}.list-group-item{margin-bottom:10px;padding:15px}.list-group-item p{margin-bottom:5px}.custom-badge{display:inline-block;width:50%;text-align:center;padding:.3em 0;margin-top:0!important}.bg-success{--bs-bg-opacity: 1;background-color:var(--fb-success-surface, #e6f4ea)!important;color:var(--fb-success-text, #137333)!important}.custom-search-button{background-color:var(--fb-action, #003566);color:var(--fb-text-on-action, #ffffff);border-radius:5px;font-size:var(--fs-normal);border:none}.custom-search-button:hover{background-color:var(--fb-action-hover, #00284d)}.custom-search-button:active{transform:translateY(0)}.table{border-top:1px solid var(--fb-border-default, #e2e8f0)}th,td{vertical-align:middle}.configSearch{height:22px;padding:3px;margin:10p;background-color:var(--fb-action, #003566);border-radius:4px}::ng-deep .table>:not(caption)>*>*{background-color:none!important;--bs-table-bg: var(--fb-surface, #ffffff) !important}@font-face{font-display:swap;font-family:fusion-icon;font-style:normal;font-weight:400;src:url(https://icons.valarhr.com/fonts/fusion-icon.woff2) format(\"woff2\"),url(https://icons.valarhr.com/fonts/fusion-icon.woff) format(\"woff\"),url(https://icons.valarhr.com/fonts/fusion-icon.ttf) format(\"truetype\")}.fusion-icon{display:inline-block;font-family:fusion-icon!important;font-weight:400;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.fusion-icon-edit_pencil:before,.fusion-icon-edit:before{content:\"\\e140\"}.imgBtn{background-color:var(--fb-surface-secondary, #f8fafc);border-radius:var(--radius-small, 6px);width:15px;height:15px;object-fit:contain}.imgBtnDiv{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;line-height:0px;padding:4px;border-radius:5px;border:1px solid var(--fb-border-default, #e2e8f0)}input::placeholder{font-size:var(--fs-small);font-weight:var(--fw-400);color:var(--fb-placeholder-text, #94a3b8)}::ng-deep .modal-backdrop{background-color:var(--fb-backdrop, #00000073)!important}::ng-deep .modal-backdrop.show{background-color:var(--fb-backdrop, #00000073)!important;opacity:1!important}::ng-deep .mat-sort-header-container .mat-sort-header-content span{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}::ng-deep .mat-mdc-cell{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-400)!important;font-size:var(--fs-primary)!important;min-width:20px!important}.active-column{color:var(--fb-text-primary, #0f172a)!important;font-weight:var(--fw-600)!important;font-size:var(--fs-primary)!important}.hover-content{background:var(--fb-surface-elevated, #ffffff)}.position-relative{position:relative;display:inline-block}.filter-popup{position:absolute;top:100%;left:0;z-index:9998;background-color:var(--fb-surface-elevated, #ffffff);border:1px solid var(--fb-border-default, #e2e8f0);box-shadow:0 4px 12px var(--fb-backdrop, rgba(0, 0, 0, .08));padding:10px;min-width:200px}.spanFontSize{font-size:var(--fs-normal)}.mat-column-employees{width:200px;min-width:200px;padding-left:8px;height:57px;left:0!important}.text-start{font-size:var(--fs-normal)}.first-header-border{border-left:1px solid var(--fb-border-default, #e2e8f0)}tr{height:45px!important;text-wrap:nowrap!important}.field-input{width:min(220px,98%);min-height:50px}.svg-spinner{animation:rotate 1s linear infinite}.svg-spinner .path{stroke:var(--fb-action, #003566);stroke-linecap:round;stroke-dasharray:80 150;stroke-width:4}@keyframes rotate{to{transform:rotate(360deg)}}img{max-width:none!important;vertical-align:middle}::ng-deep .mat-mdc-row:hover,::ng-deep .mat-row:hover{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n),::ng-deep .mat-row:nth-child(2n){background-color:var(--fb-row-alternate, #fcfdfe)}::ng-deep .mat-mdc-row:hover td.sticky-column,::ng-deep .mat-row:hover td.sticky-column,::ng-deep .mat-mdc-row:hover td.actionCol,::ng-deep .mat-row:hover td.actionCol{background-color:var(--fb-row-hover, #f8fafc)!important}::ng-deep .mat-mdc-row:nth-child(2n) td.sticky-column,::ng-deep .mat-row:nth-child(2n) td.sticky-column,::ng-deep .mat-mdc-row:nth-child(2n) td.actionCol,::ng-deep .mat-row:nth-child(2n) td.actionCol{background-color:var(--fb-row-alternate, #fcfdfe)}\n"]
|
|
7342
5915
|
}]
|
|
7343
5916
|
}],
|
|
7344
5917
|
ctorParameters: () => [
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
6279
|
+
version: "22.2.5",
|
|
7707
6280
|
ngImport: i0,
|
|
7708
6281
|
type: FusionMonthPickerComponent,
|
|
7709
6282
|
decorators: [{
|
|
@@ -8262,7 +6835,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
8262
6835
|
}
|
|
8263
6836
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
8264
6837
|
minVersion: "12.0.0",
|
|
8265
|
-
version: "22.2.
|
|
6838
|
+
version: "22.2.5",
|
|
8266
6839
|
ngImport: i0,
|
|
8267
6840
|
type: AttendanceTableComponent,
|
|
8268
6841
|
deps: [
|
|
@@ -8274,7 +6847,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
8274
6847
|
});
|
|
8275
6848
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8276
6849
|
minVersion: "14.0.0",
|
|
8277
|
-
version: "22.2.
|
|
6850
|
+
version: "22.2.5",
|
|
8278
6851
|
type: AttendanceTableComponent,
|
|
8279
6852
|
isStandalone: true,
|
|
8280
6853
|
selector: "app-attendance-table, app-data-table-two",
|
|
@@ -8352,8 +6925,8 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
8352
6925
|
}],
|
|
8353
6926
|
usesOnChanges: true,
|
|
8354
6927
|
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\">✓</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">✕</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">✓</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">✕</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </app-pagination>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
|
|
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"],
|
|
6928
|
+
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 <!-- 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 <table mat-table [dataSource]=\"dataSource\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.sticky-column]=\"isColumnSticky(column) || column === 'summary' || i === (stickyCondition - 1)\"\n [class.week-off]=\"isWeekend(column)\"\n style=\"text-align: center; padding: 0px !important;\" *matCellDef=\"let element\">\n <ng-container *ngIf=\"!element?.isSkeleton; else skeletonCell\">\n <!-- Employee Detail Column with Avatar and Metadata -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"emp-avatar\">\n {{ getInitials(element[column]?.empName || element.employeeName || element.name) }}\n </div>\n <div class=\"emp-meta\">\n <div class=\"emp-name-row\">\n <span class=\"emp-name\" [class.hyper-link]=\"hyperLinkColumns.includes(column)\"\n (click)=\"hyperLinkColumns.includes(column) ? hyperLinkClick(element, column, i) : ''\"\n [title]=\"element[column]?.empName || element.employeeName || element.name\">\n {{ element[column]?.empName || element.employeeName || element.name }}\n </span>\n <span *ngIf=\"element[column]?.empId || element.employeeId || element.empId\" class=\"emp-id-tag\">\n {{ element[column]?.empId || element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-sub-row\" [title]=\"(element[column]?.desig || element.designation || '') + ((element[column]?.loc || element.location) ? (', ' + (element[column]?.loc || element.location)) : '')\">\n <span>{{ element[column]?.desig || element.designation }}</span>\n <span *ngIf=\"(element[column]?.desig || element.designation) && (element[column]?.loc || element.location)\">, </span>\n <span>{{ element[column]?.loc || element.location }}</span>\n </div>\n </div>\n </div>\n\n <!-- Summary Pill Column -->\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <span class=\"summary-pill\" [class.summary-pill--target]=\"isNearTarget(element.workingDays ?? element.presentDays, element.totalCompanyWorkingDays ?? element.totalWorkingDays)\"\n [title]=\"'Present: ' + (element.workingDays ?? element.presentDays ?? 0) + ' / Total Working Days: ' + (element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0)\">\n {{element.workingDays ?? element.presentDays ?? 0}}/{{element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0}}\n </span>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">✓</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">✕</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">✓</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">✕</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </app-pagination>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
|
|
6929
|
+
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}\n"],
|
|
8357
6930
|
dependencies: [
|
|
8358
6931
|
{
|
|
8359
6932
|
kind: "ngmodule",
|
|
@@ -8528,36 +7101,31 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
8528
7101
|
},
|
|
8529
7102
|
{
|
|
8530
7103
|
kind: "component",
|
|
8531
|
-
type:
|
|
8532
|
-
selector: "
|
|
7104
|
+
type: FusionButtonComponent,
|
|
7105
|
+
selector: "app-fusion-button",
|
|
8533
7106
|
inputs: [
|
|
8534
7107
|
"buttonValue",
|
|
7108
|
+
"buttonValuePath",
|
|
8535
7109
|
"buttonType",
|
|
8536
7110
|
"type",
|
|
8537
7111
|
"buttonDisable",
|
|
8538
|
-
"
|
|
8539
|
-
"
|
|
8540
|
-
"
|
|
8541
|
-
"
|
|
8542
|
-
"
|
|
8543
|
-
"
|
|
8544
|
-
"
|
|
8545
|
-
"
|
|
8546
|
-
"
|
|
8547
|
-
"
|
|
8548
|
-
"btnHoverTextColor",
|
|
8549
|
-
"btnId",
|
|
7112
|
+
"fcBtnBgColor",
|
|
7113
|
+
"fcBtnBorder",
|
|
7114
|
+
"fcBtnTextColor",
|
|
7115
|
+
"fcBtnHeight",
|
|
7116
|
+
"fcBtnWidth",
|
|
7117
|
+
"fcBtnIconLeftSrc",
|
|
7118
|
+
"fcBtnIconRightSrc",
|
|
7119
|
+
"fcBtnHoverBgColor",
|
|
7120
|
+
"fcBtnHoverTextColor",
|
|
7121
|
+
"fcBtnId",
|
|
8550
7122
|
"dataDismiss",
|
|
7123
|
+
"fcButtonBorder",
|
|
8551
7124
|
"modalToTrigger",
|
|
8552
7125
|
"isImageSvg",
|
|
8553
7126
|
"tabIndex",
|
|
8554
7127
|
"buttonConfig",
|
|
8555
|
-
"
|
|
8556
|
-
"languageCode",
|
|
8557
|
-
"padding",
|
|
8558
|
-
"isLoading",
|
|
8559
|
-
"selector",
|
|
8560
|
-
"dropdownLoadingButton"
|
|
7128
|
+
"buttonLoadingSpinner"
|
|
8561
7129
|
],
|
|
8562
7130
|
outputs: ["buttonClickEmit"]
|
|
8563
7131
|
},
|
|
@@ -8657,7 +7225,7 @@ var AttendanceTableComponent = class AttendanceTableComponent {
|
|
|
8657
7225
|
};
|
|
8658
7226
|
i0.ɵɵngDeclareClassMetadata({
|
|
8659
7227
|
minVersion: "12.0.0",
|
|
8660
|
-
version: "22.2.
|
|
7228
|
+
version: "22.2.5",
|
|
8661
7229
|
ngImport: i0,
|
|
8662
7230
|
type: AttendanceTableComponent,
|
|
8663
7231
|
decorators: [{
|
|
@@ -8674,7 +7242,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8674
7242
|
MatPaginatorModule,
|
|
8675
7243
|
MatTooltipModule,
|
|
8676
7244
|
MatCheckboxModule,
|
|
8677
|
-
|
|
7245
|
+
FusionButtonComponent,
|
|
8678
7246
|
CommonScreenComponent,
|
|
8679
7247
|
MultiCheckboxComponent,
|
|
8680
7248
|
MultipleFilterComponent,
|
|
@@ -8687,8 +7255,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8687
7255
|
provide: MatPaginatorIntl,
|
|
8688
7256
|
useClass: CustomPaginatorIntl
|
|
8689
7257
|
}],
|
|
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\">✓</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">✕</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">✓</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">✕</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </app-pagination>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
|
|
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"]
|
|
7258
|
+
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 <!-- 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 <table mat-table [dataSource]=\"dataSource\" [style.width]=\"tableWidth\" matSort class=\"mat-elevation-z8\">\n <!-- Checkbox Columns -->\n <!-- SK06MAR24 made checkbox sticky -->\n <ng-container *ngIf=\"withCheckBox\" matColumnDef=\"select\" sticky>\n <th mat-header-cell *matHeaderCellDef class=\"head-color sticky-column mat-column-select\">\n <mat-checkbox (change)=\"masterToggle()\" [checked]=\"selection.hasValue()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\" class=\"sticky-col sticky-select mat-column-select\">\n <ng-container *ngIf=\"!row?.isSkeleton; else skeletonSelect\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"separateRowSelect(selection.toggle(row), row)\"\n [checked]=\"selection.isSelected(row)\">\n </mat-checkbox>\n </ng-container>\n <ng-template #skeletonSelect>\n <div class=\"skeleton\" style=\"width: 14px; height: 14px; border-radius: 2px; margin: 0 auto;\"></div>\n </ng-template>\n </td>\n </ng-container>\n <!-- data Columns -->\n <ng-container *ngFor=\"let column of displayedColumns; let i=index\" [matColumnDef]=\"column\"\n [sticky]=\"isColumnSticky(column)\" [stickyEnd]=\"column === 'summary' || i === (stickyCondition - 1)\">\n <!-- MR 18OCT26 Upgraded header with today accent, weekend shading, and weekday letter hierarchy -->\n <th mat-header-cell *matHeaderCellDef\n class=\"head-color ms-2 sticky-col {{ column != 'employeeDetail' ? 'th-td' : '' }} sticky-column\"\n [class.week-off]=\"isWeekend(column)\"\n (click)=\"$event.stopPropagation()\"\n style=\"padding: 0px !important;\">\n <div class=\"d-flex flex-column {{column === 'employeeDetail' ? 'align-items-start ps-2' : 'align-items-center'}}\">\n <ng-container *ngIf=\"column === 'employeeDetail'\">\n <span class=\"head-employee-label\">{{ 'APP_HRM_ATTENDANCE.EMPLOYEE' | customTranslate : 'Employee' }}</span>\n </ng-container>\n <ng-container *ngIf=\"column !== 'employeeDetail' && column !== 'summary'\">\n <span class=\"head-day-letter\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.day : '' }}\n </span>\n <span class=\"head-date-num\" [class.head-today]=\"isToday(column)\" [class.head-muted]=\"isWeekend(column)\">\n {{ headerLabels && displayedColumns ? headerLabels[displayedColumns.indexOf(column)]?.date : '' }}\n </span>\n </ng-container>\n <ng-container *ngIf=\"column === 'summary'\">\n <span class=\"head-day-letter\" title=\"Present / Working Days\">{{ 'APP_HRM_ATTENDANCE_TABLE.DAYS' | customTranslate : 'Days' }}</span>\n <i class=\"fusion-icon fusion-icon-size-md fusion-icon-attendance nav-icon mt-1\" style=\"color: var(--label-text-color);\" title=\"Present / Working Days\"></i>\n </ng-container>\n </div>\n </th>\n <!-- MR 18OCT26 Attendance body cell with initials avatar, softened chips, weekend suppression, and summary pill -->\n <!-- MR 16NOV26 Prevent sticky column bleed-through with opaque layered surface tokens -->\n <td mat-cell class=\"body-color {{ column != 'employeeDetail' ? 'th-td' : '' }}\"\n [class.sticky-column]=\"isColumnSticky(column) || column === 'summary' || i === (stickyCondition - 1)\"\n [class.week-off]=\"isWeekend(column)\"\n style=\"text-align: center; padding: 0px !important;\" *matCellDef=\"let element\">\n <ng-container *ngIf=\"!element?.isSkeleton; else skeletonCell\">\n <!-- Employee Detail Column with Avatar and Metadata -->\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"emp-avatar\">\n {{ getInitials(element[column]?.empName || element.employeeName || element.name) }}\n </div>\n <div class=\"emp-meta\">\n <div class=\"emp-name-row\">\n <span class=\"emp-name\" [class.hyper-link]=\"hyperLinkColumns.includes(column)\"\n (click)=\"hyperLinkColumns.includes(column) ? hyperLinkClick(element, column, i) : ''\"\n [title]=\"element[column]?.empName || element.employeeName || element.name\">\n {{ element[column]?.empName || element.employeeName || element.name }}\n </span>\n <span *ngIf=\"element[column]?.empId || element.employeeId || element.empId\" class=\"emp-id-tag\">\n {{ element[column]?.empId || element.employeeId || element.empId }}\n </span>\n </div>\n <div class=\"emp-sub-row\" [title]=\"(element[column]?.desig || element.designation || '') + ((element[column]?.loc || element.location) ? (', ' + (element[column]?.loc || element.location)) : '')\">\n <span>{{ element[column]?.desig || element.designation }}</span>\n <span *ngIf=\"(element[column]?.desig || element.designation) && (element[column]?.loc || element.location)\">, </span>\n <span>{{ element[column]?.loc || element.location }}</span>\n </div>\n </div>\n </div>\n\n <!-- Summary Pill Column -->\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <span class=\"summary-pill\" [class.summary-pill--target]=\"isNearTarget(element.workingDays ?? element.presentDays, element.totalCompanyWorkingDays ?? element.totalWorkingDays)\"\n [title]=\"'Present: ' + (element.workingDays ?? element.presentDays ?? 0) + ' / Total Working Days: ' + (element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0)\">\n {{element.workingDays ?? element.presentDays ?? 0}}/{{element.totalCompanyWorkingDays ?? element.totalWorkingDays ?? 0}}\n </span>\n </div>\n\n <!-- Attendance Day Columns -->\n <div *ngIf=\"column != 'summary' && column != 'employeeDetail' && column != 'employeeName' && column != 'employeeId' && column != 'designation' && column != 'location'\"\n (click)=\"doubleClickFunction(element, column, element[column])\">\n <!-- Weekend column with weekoff status: suppress chip, show subtle dash -->\n <ng-container *ngIf=\"isWeekend(column) && (!element?.[column]?.['value'] || ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) || element?.[column]?.['value'] === '')\">\n <span class=\"att-dash\">-</span>\n </ng-container>\n\n <!-- Non-weekend future day without data: faint dot -->\n <ng-container *ngIf=\"!isWeekend(column) && isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-future\">·</span>\n </ng-container>\n\n <!-- Non-weekend past day with missing log: subtle dashed outline -->\n <ng-container *ngIf=\"!isWeekend(column) && !isFutureDate(column) && (!element?.[column]?.['value'] || element?.[column]?.['value'] === '' || element?.[column]?.['value']?.status === 'Nil')\">\n <span class=\"att-missing\" title=\"No Record\"></span>\n </ng-container>\n\n <!-- Present State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['present'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-present\" title=\"Present\">✓</span>\n\n <!-- Review State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['review'].includes((element?.[column]?.['value']?.status || '').toLowerCase()) && element?.[column]?.['value']?.halfDay === false\"\n class=\"attendance-chip attendance-review\" title=\"Review\">!</span>\n\n <!-- Absent / Leave State -->\n <span *ngIf=\"element?.[column]?.['value'] && (isLeaveType(element?.[column]?.['value']?.status) && (element?.[column]?.['value']?.halfDay !== true) || element?.[column]?.['value']?.isSplitLeave)\"\n class=\"attendance-chip attendance-absent\" [title]=\"element?.[column]?.['value']?.status || 'Absent'\">✕</span>\n\n <!-- Holiday State -->\n <span *ngIf=\"element?.[column]?.['value'] && ['holiday'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-holiday\" title=\"Holiday\">H</span>\n\n <!-- Half Day State -->\n <span *ngIf=\"element?.[column]?.['value']?.halfDay === true && !element?.[column]?.['value']?.isSplitLeave\"\n class=\"attendance-chip attendance-half\" title=\"Half Day\">½</span>\n\n <!-- Week Off State on non-weekend columns -->\n <span *ngIf=\"!isWeekend(column) && element?.[column]?.['value'] && ['weekoff'].includes((element?.[column]?.['value']?.status || '').toLowerCase())\"\n class=\"attendance-chip attendance-weekoff\" title=\"Week Off\">-</span>\n\n <!-- Total Hours or Numeric Values -->\n <div *ngIf=\"column === 'totalHours'\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n <div *ngIf=\"containsOnlyNumbers(element?.[column]?.['value'])\" style=\"font-size: var(--fs-small); color: var(--label-text-color); font-weight: var(--fw-600);\">\n {{element?.[column]?.['value']}}\n </div>\n </div>\n </ng-container>\n\n <!-- Skeleton Loader Cell matching new layout -->\n <ng-template #skeletonCell>\n <div *ngIf=\"column === 'employeeDetail'\" class=\"emp-cell-container\">\n <div class=\"skeleton\" style=\"width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;\"></div>\n <div class=\"emp-meta\" style=\"flex: 1;\">\n <div class=\"skeleton skeleton-text\" style=\"width: 120px; height: 12px; margin-bottom: 4px; border-radius: 2px;\"></div>\n <div class=\"skeleton skeleton-text\" style=\"width: 80px; height: 10px; border-radius: 2px;\"></div>\n </div>\n </div>\n <div *ngIf=\"column === 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton skeleton-text\" style=\"width: 36px; height: 16px; margin: 0 auto; border-radius: 20px;\"></div>\n </div>\n <div *ngIf=\"column != 'employeeDetail' && column != 'summary'\" class=\"flex justify-center\">\n <div class=\"skeleton\" style=\"width: 22px; height: 22px; border-radius: 6px; margin: 0 auto;\"></div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n <!-- Render the columns -->\n <div [ngSwitch]=\"renderColumns\">\n <div *ngSwitchCase=\"'select'\">\n <tr mat-header-row *matHeaderRowDef=\"['select'].concat(displayedColumns) sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['select'].concat(displayedColumns)\"\n (click)=\"tableClick(row)\">\n </tr>\n </div>\n <div *ngSwitchDefault>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\" (click)=\"tableClick(row)\"></tr>\n </div>\n </div>\n <!-- SKS10FEB26 No Data Row -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumns.length + 1\">\n <div class=\"flex\" style=\"display: flex; justify-content: center; align-items: center; height: 100px;\">\n <div>\n No data/ records found\n </div>\n </div>\n </td>\n </tr>\n </table>\n </div>\n <!-- MR 16NOV26 Standardize compact pagination bar with centered attendance legends -->\n <app-pagination #paginator [pageSizeOptions]=\"itemsPerPage\" [collectionSize]=\"totalCount\" [pageSize]=\"pageSize\"\n [currentPage]=\"pageIndex || 1\" [firstLastButtons]=\"false\" (event)=\"pageParams($event)\">\n <div pagination-center class=\"d-flex align-items-center gap-3 flex-wrap attendance-footer-legends\">\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-present\">✓</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.PREsENT' | customTranslate : 'Present' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-absent\">✕</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.ABSENT' | customTranslate : 'Absent' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-half\">½</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HALF_DAY' | customTranslate : 'Half day' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-holiday\">H</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.HOLIDAY' | customTranslate : 'Holiday' }}</span>\n </div>\n <div class=\"d-flex align-items-center gap-1\">\n <span class=\"attendance-chip attendance-weekoff\">-</span>\n <span class=\"legend-text\">{{ 'APP_HRM_ATTENDANCE_TABLE.WEEK_OFF' | customTranslate : 'Week Off' }}</span>\n </div>\n </div>\n </app-pagination>\n </div>\n </div>\n</div>\n\n\n<!-- SK03OCT24 side screen for filter while export button clicked -->\n<app-common-screen *ngIf=\"exportSidescreen\" headerTitle=\"Export Data\"\n (sideScreenEmittedEvent)=\"exportSidescreen = false\">\n <div class=\"side-main-content\">\n <!-- MY 15OCT26 export file button loader -->\n <div\n class=\"d-flex align-items-center flex-row p-3 justify-content-center cursor-pointer short-button-white-bg button-hov\"\n [class.disabled]=\"exportButtonLoadingSpinner\"\n (click)=\"!exportButtonLoadingSpinner ? exportButtonSideNav() : null\">\n <div *ngIf=\"exportButtonLoadingSpinner\" class=\"spinner-grow spinner-grow-sm me-2\" role=\"status\" aria-hidden=\"true\"></div>\n <img *ngIf=\"!exportButtonLoadingSpinner\" src=\"../assets/images/icons/general/upload-icon.svg \" class=\"card-icon color me-1\"\n title=\"download\">\n <div>{{ exportButtonLoadingSpinner ? (('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...') : ('APP_HRM_ATTENDANCE_TABLE.EXPORT_FILE' | customTranslate : 'Export File') }}</div>\n </div>\n <!-- SK03OCT24 components to be displayed in side screen -->\n <div *ngFor=\"let type of filterScreenConfigs\">\n <!-- MY 15OCT26 pass button loader state to multi-checkbox and multiple-filter -->\n <app-multi-checkbox *ngIf=\"type.type === 'multipleCheckBox' \" class=\"ms-2 me-2\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [checkboxList]=\"type?.checkboxList\"\n [activeCheckboxList]=\"type?.activeCheckboxList\" [buttonList]=\"type?.buttons\"\n [displayValues]=\"type?.displayValues\" [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFieldsButtonEmit($event)\">\n </app-multi-checkbox>\n <app-multiple-filter *ngIf=\"type.type === 'multipleFilter' \" class=\"ms-2 me-2\" [isDateFilter]=\"type?.isDateFilter\"\n [label]=\"type?.labelPath || type?.label | customTranslate : type?.label\" [cardSize]=\"type?.cardSize\"\n [cardInlineSize]=\"type?.cardInlineSize\" [buttonList]=\"type?.buttons\" [displayValues]=\"type?.displayValues\"\n [componentData]=\"type\" [checkBoxStyles]=\"type?.checkBoxStyles\" [selectionData]=\"type?.selectionData\"\n [isButtonLoadingSpinner]=\"type?.isButtonLoadingSpinner || false\"\n (compDataEmit)=\"exportFilterButtonEmit($event)\" (selectedValuesEmit)=\"selectedValuesEmit($event)\"\n (filterDateEmit)=\"filterDateEmit($event)\">\n </app-multiple-filter>\n </div>\n </div>\n</app-common-screen>\n\n<!-- SK24OCT25 Sandwich confirm pop up -->\n<div *ngIf=\"confirmModal\" class=\"modal modal-backdrop show d-block\" id=\"confirmRecord\" tabindex=\"-1\"\n aria-labelledby=\"confirmRecordLabel\" [attr.aria-hidden]=\"!confirmModal\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <b class=\"modal-title fs-5\" id=\"confirmRecordLabel\">{{'APP.CONFIRM_SADWICH' | customTranslate : 'Confirm Sandwich'}}</b>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"confirmModal = false\"></button>\n </div>\n <div class=\"modal-body\">\n {{'APP.ARE_YOU_SURE_YOU_WANT_TO_CONVERT_THE_SANDWICH' | customTranslate : 'Are you sure want to convert sandwich leaves for the month'}} ?\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\n (click)=\"!buttonLoadingSpinner ? checkButtonClicked() : null\">\n <span class=\"{{ buttonLoadingSpinner ? 'spinner-grow' : '' }} spinner-grow-sm\" role=\"buttonValue\"\n aria-hidden=\"true\"></span>\n <span>{{ buttonLoadingSpinner ? ('APP_SETTINGS_APPS.LOADING' | customTranslate : 'Loading') + '...' :\n ('APP.YES' | customTranslate : 'Yes') }}\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\"\n (click)=\"confirmModal = false\">{{'APP.NO' | customTranslate : 'No'}}</button>\n </div>\n </div>\n </div>\n</div>\n",
|
|
7259
|
+
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}\n"]
|
|
8692
7260
|
}]
|
|
8693
7261
|
}],
|
|
8694
7262
|
ctorParameters: () => [
|
|
@@ -8968,7 +7536,7 @@ var FusionCardComponent = class FusionCardComponent {
|
|
|
8968
7536
|
}
|
|
8969
7537
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
8970
7538
|
minVersion: "12.0.0",
|
|
8971
|
-
version: "22.2.
|
|
7539
|
+
version: "22.2.5",
|
|
8972
7540
|
ngImport: i0,
|
|
8973
7541
|
type: FusionCardComponent,
|
|
8974
7542
|
deps: [
|
|
@@ -8983,7 +7551,7 @@ var FusionCardComponent = class FusionCardComponent {
|
|
|
8983
7551
|
});
|
|
8984
7552
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8985
7553
|
minVersion: "14.0.0",
|
|
8986
|
-
version: "22.2.
|
|
7554
|
+
version: "22.2.5",
|
|
8987
7555
|
type: FusionCardComponent,
|
|
8988
7556
|
isStandalone: true,
|
|
8989
7557
|
selector: "fusion-card",
|
|
@@ -9075,7 +7643,7 @@ var FusionCardComponent = class FusionCardComponent {
|
|
|
9075
7643
|
};
|
|
9076
7644
|
i0.ɵɵngDeclareClassMetadata({
|
|
9077
7645
|
minVersion: "12.0.0",
|
|
9078
|
-
version: "22.2.
|
|
7646
|
+
version: "22.2.5",
|
|
9079
7647
|
ngImport: i0,
|
|
9080
7648
|
type: FusionCardComponent,
|
|
9081
7649
|
decorators: [{
|
|
@@ -9227,7 +7795,7 @@ var ToastService = class ToastService {
|
|
|
9227
7795
|
}
|
|
9228
7796
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9229
7797
|
minVersion: "12.0.0",
|
|
9230
|
-
version: "22.2.
|
|
7798
|
+
version: "22.2.5",
|
|
9231
7799
|
ngImport: i0,
|
|
9232
7800
|
type: ToastService,
|
|
9233
7801
|
deps: [{
|
|
@@ -9238,7 +7806,7 @@ var ToastService = class ToastService {
|
|
|
9238
7806
|
});
|
|
9239
7807
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
9240
7808
|
minVersion: "12.0.0",
|
|
9241
|
-
version: "22.2.
|
|
7809
|
+
version: "22.2.5",
|
|
9242
7810
|
ngImport: i0,
|
|
9243
7811
|
type: ToastService,
|
|
9244
7812
|
providedIn: "root"
|
|
@@ -9246,7 +7814,7 @@ var ToastService = class ToastService {
|
|
|
9246
7814
|
};
|
|
9247
7815
|
i0.ɵɵngDeclareClassMetadata({
|
|
9248
7816
|
minVersion: "12.0.0",
|
|
9249
|
-
version: "22.2.
|
|
7817
|
+
version: "22.2.5",
|
|
9250
7818
|
ngImport: i0,
|
|
9251
7819
|
type: ToastService,
|
|
9252
7820
|
decorators: [{
|
|
@@ -9320,7 +7888,7 @@ var ToastComponent = class ToastComponent {
|
|
|
9320
7888
|
}
|
|
9321
7889
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9322
7890
|
minVersion: "12.0.0",
|
|
9323
|
-
version: "22.2.
|
|
7891
|
+
version: "22.2.5",
|
|
9324
7892
|
ngImport: i0,
|
|
9325
7893
|
type: ToastComponent,
|
|
9326
7894
|
deps: [
|
|
@@ -9336,7 +7904,7 @@ var ToastComponent = class ToastComponent {
|
|
|
9336
7904
|
});
|
|
9337
7905
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9338
7906
|
minVersion: "17.0.0",
|
|
9339
|
-
version: "22.2.
|
|
7907
|
+
version: "22.2.5",
|
|
9340
7908
|
type: ToastComponent,
|
|
9341
7909
|
isStandalone: true,
|
|
9342
7910
|
selector: "app-toast, fusion-toast",
|
|
@@ -9380,7 +7948,7 @@ var ToastComponent = class ToastComponent {
|
|
|
9380
7948
|
};
|
|
9381
7949
|
i0.ɵɵngDeclareClassMetadata({
|
|
9382
7950
|
minVersion: "12.0.0",
|
|
9383
|
-
version: "22.2.
|
|
7951
|
+
version: "22.2.5",
|
|
9384
7952
|
ngImport: i0,
|
|
9385
7953
|
type: ToastComponent,
|
|
9386
7954
|
decorators: [{
|
|
@@ -9484,7 +8052,7 @@ var MultiSelectDropdownComponent = class MultiSelectDropdownComponent {
|
|
|
9484
8052
|
}
|
|
9485
8053
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9486
8054
|
minVersion: "12.0.0",
|
|
9487
|
-
version: "22.2.
|
|
8055
|
+
version: "22.2.5",
|
|
9488
8056
|
ngImport: i0,
|
|
9489
8057
|
type: MultiSelectDropdownComponent,
|
|
9490
8058
|
deps: [{ token: i0.ChangeDetectorRef }],
|
|
@@ -9492,7 +8060,7 @@ var MultiSelectDropdownComponent = class MultiSelectDropdownComponent {
|
|
|
9492
8060
|
});
|
|
9493
8061
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9494
8062
|
minVersion: "17.0.0",
|
|
9495
|
-
version: "22.2.
|
|
8063
|
+
version: "22.2.5",
|
|
9496
8064
|
type: MultiSelectDropdownComponent,
|
|
9497
8065
|
isStandalone: true,
|
|
9498
8066
|
selector: "app-multi-select-dropdown, fusion-multi-select-dropdown",
|
|
@@ -9767,7 +8335,7 @@ var MultiSelectDropdownComponent = class MultiSelectDropdownComponent {
|
|
|
9767
8335
|
};
|
|
9768
8336
|
i0.ɵɵngDeclareClassMetadata({
|
|
9769
8337
|
minVersion: "12.0.0",
|
|
9770
|
-
version: "22.2.
|
|
8338
|
+
version: "22.2.5",
|
|
9771
8339
|
ngImport: i0,
|
|
9772
8340
|
type: MultiSelectDropdownComponent,
|
|
9773
8341
|
decorators: [{
|
|
@@ -9839,7 +8407,7 @@ var AlertMessageComponent = class AlertMessageComponent {
|
|
|
9839
8407
|
}
|
|
9840
8408
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9841
8409
|
minVersion: "12.0.0",
|
|
9842
|
-
version: "22.2.
|
|
8410
|
+
version: "22.2.5",
|
|
9843
8411
|
ngImport: i0,
|
|
9844
8412
|
type: AlertMessageComponent,
|
|
9845
8413
|
deps: [{ token: i0.ChangeDetectorRef }, {
|
|
@@ -9850,7 +8418,7 @@ var AlertMessageComponent = class AlertMessageComponent {
|
|
|
9850
8418
|
});
|
|
9851
8419
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9852
8420
|
minVersion: "17.0.0",
|
|
9853
|
-
version: "22.2.
|
|
8421
|
+
version: "22.2.5",
|
|
9854
8422
|
type: AlertMessageComponent,
|
|
9855
8423
|
isStandalone: true,
|
|
9856
8424
|
selector: "fusion-alert, app-success-failure-message",
|
|
@@ -9891,7 +8459,7 @@ var AlertMessageComponent = class AlertMessageComponent {
|
|
|
9891
8459
|
};
|
|
9892
8460
|
i0.ɵɵngDeclareClassMetadata({
|
|
9893
8461
|
minVersion: "12.0.0",
|
|
9894
|
-
version: "22.2.
|
|
8462
|
+
version: "22.2.5",
|
|
9895
8463
|
ngImport: i0,
|
|
9896
8464
|
type: AlertMessageComponent,
|
|
9897
8465
|
decorators: [{
|
|
@@ -9917,6 +8485,55 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9917
8485
|
dismiss: [{ type: Output }]
|
|
9918
8486
|
}
|
|
9919
8487
|
});
|
|
8488
|
+
var TabDataService = class TabDataService {
|
|
8489
|
+
cache = /* @__PURE__ */ new Map();
|
|
8490
|
+
nxtBooks = /* @__PURE__ */ new Map();
|
|
8491
|
+
constructor() {}
|
|
8492
|
+
getCachedData(tabName, componentId) {
|
|
8493
|
+
const key = `${tabName}_${componentId}`;
|
|
8494
|
+
return this.cache.get(key) || null;
|
|
8495
|
+
}
|
|
8496
|
+
setCachedData(tabName, data, componentId) {
|
|
8497
|
+
const key = `${tabName}_${componentId}`;
|
|
8498
|
+
this.cache.set(key, data);
|
|
8499
|
+
}
|
|
8500
|
+
getNxtBook(endpoint) {
|
|
8501
|
+
return this.nxtBooks.get(endpoint) || null;
|
|
8502
|
+
}
|
|
8503
|
+
setNxtBook(endpoint, book) {
|
|
8504
|
+
this.nxtBooks.set(endpoint, book);
|
|
8505
|
+
}
|
|
8506
|
+
clearCache() {
|
|
8507
|
+
this.cache.clear();
|
|
8508
|
+
this.nxtBooks.clear();
|
|
8509
|
+
}
|
|
8510
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
8511
|
+
minVersion: "12.0.0",
|
|
8512
|
+
version: "22.2.5",
|
|
8513
|
+
ngImport: i0,
|
|
8514
|
+
type: TabDataService,
|
|
8515
|
+
deps: [],
|
|
8516
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
8517
|
+
});
|
|
8518
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
8519
|
+
minVersion: "12.0.0",
|
|
8520
|
+
version: "22.2.5",
|
|
8521
|
+
ngImport: i0,
|
|
8522
|
+
type: TabDataService,
|
|
8523
|
+
providedIn: "root"
|
|
8524
|
+
});
|
|
8525
|
+
};
|
|
8526
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
8527
|
+
minVersion: "12.0.0",
|
|
8528
|
+
version: "22.2.5",
|
|
8529
|
+
ngImport: i0,
|
|
8530
|
+
type: TabDataService,
|
|
8531
|
+
decorators: [{
|
|
8532
|
+
type: Injectable,
|
|
8533
|
+
args: [{ providedIn: "root" }]
|
|
8534
|
+
}],
|
|
8535
|
+
ctorParameters: () => []
|
|
8536
|
+
});
|
|
9920
8537
|
var PdfFontService = class PdfFontService {
|
|
9921
8538
|
fontLoadedPromise = null;
|
|
9922
8539
|
configurePdfMake(pdfMakeInstance) {
|
|
@@ -9960,7 +8577,7 @@ var PdfFontService = class PdfFontService {
|
|
|
9960
8577
|
}
|
|
9961
8578
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9962
8579
|
minVersion: "12.0.0",
|
|
9963
|
-
version: "22.2.
|
|
8580
|
+
version: "22.2.5",
|
|
9964
8581
|
ngImport: i0,
|
|
9965
8582
|
type: PdfFontService,
|
|
9966
8583
|
deps: [],
|
|
@@ -9968,7 +8585,7 @@ var PdfFontService = class PdfFontService {
|
|
|
9968
8585
|
});
|
|
9969
8586
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
9970
8587
|
minVersion: "12.0.0",
|
|
9971
|
-
version: "22.2.
|
|
8588
|
+
version: "22.2.5",
|
|
9972
8589
|
ngImport: i0,
|
|
9973
8590
|
type: PdfFontService,
|
|
9974
8591
|
providedIn: "root"
|
|
@@ -9976,7 +8593,7 @@ var PdfFontService = class PdfFontService {
|
|
|
9976
8593
|
};
|
|
9977
8594
|
i0.ɵɵngDeclareClassMetadata({
|
|
9978
8595
|
minVersion: "12.0.0",
|
|
9979
|
-
version: "22.2.
|
|
8596
|
+
version: "22.2.5",
|
|
9980
8597
|
ngImport: i0,
|
|
9981
8598
|
type: PdfFontService,
|
|
9982
8599
|
decorators: [{
|
|
@@ -9995,7 +8612,7 @@ var AmountToWordsPipe = class AmountToWordsPipe {
|
|
|
9995
8612
|
}
|
|
9996
8613
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9997
8614
|
minVersion: "12.0.0",
|
|
9998
|
-
version: "22.2.
|
|
8615
|
+
version: "22.2.5",
|
|
9999
8616
|
ngImport: i0,
|
|
10000
8617
|
type: AmountToWordsPipe,
|
|
10001
8618
|
deps: [],
|
|
@@ -10003,7 +8620,7 @@ var AmountToWordsPipe = class AmountToWordsPipe {
|
|
|
10003
8620
|
});
|
|
10004
8621
|
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
10005
8622
|
minVersion: "14.0.0",
|
|
10006
|
-
version: "22.2.
|
|
8623
|
+
version: "22.2.5",
|
|
10007
8624
|
ngImport: i0,
|
|
10008
8625
|
type: AmountToWordsPipe,
|
|
10009
8626
|
isStandalone: true,
|
|
@@ -10012,7 +8629,7 @@ var AmountToWordsPipe = class AmountToWordsPipe {
|
|
|
10012
8629
|
};
|
|
10013
8630
|
i0.ɵɵngDeclareClassMetadata({
|
|
10014
8631
|
minVersion: "12.0.0",
|
|
10015
|
-
version: "22.2.
|
|
8632
|
+
version: "22.2.5",
|
|
10016
8633
|
ngImport: i0,
|
|
10017
8634
|
type: AmountToWordsPipe,
|
|
10018
8635
|
decorators: [{
|
|
@@ -10023,6 +8640,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10023
8640
|
}]
|
|
10024
8641
|
}]
|
|
10025
8642
|
});
|
|
10026
|
-
export { AlertMessageComponent, AlertService, AmountToWordsPipe, ApiService, ApprovalScreenComponent, AttendanceTableComponent, CommonScreenComponent, ConfigService, Constants, CustomDatePipe, CustomPaginatorIntl, CustomTimePipe, CustomTranslatePipe, DataTableComponent, DropDownComponent, EditColumnCheckPipe, EditColumnDropdownPipe, EditColumnTypePipe, ErrorHandlerService, FileUploadComponent,
|
|
8643
|
+
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
8644
|
|
|
10028
8645
|
//# sourceMappingURL=rangertechnologies-fusion-ui.mjs.map
|