@rangertechnologies/fusion-ui 0.1.16 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangertechnologies/fusion-ui",
3
- "version": "0.1.16",
3
+ "version": "0.2.2",
4
4
  "author": "Mohamed Riyaz Y",
5
5
  "license": "ISC",
6
6
  "description": "Shared component library for Fusion platform and micro-frontends",
@@ -16,11 +16,10 @@
16
16
  "rxjs": "^7.8.0"
17
17
  },
18
18
  "dependencies": {
19
- "@angular/google-maps": "^22.2.5",
20
- "@angular/router": "^22.2.4",
19
+ "@angular/google-maps": "22.2.5",
20
+ "@angular/router": "22.2.5",
21
21
  "@ng-bootstrap/ng-bootstrap": "^20.0.0",
22
22
  "@popperjs/core": "^2.11.8",
23
- "@rangertechnologies/ngnxt": "^2.2.4",
24
23
  "bootstrap": "^5.3.8",
25
24
  "file-saver": "^2.0.5",
26
25
  "lodash": "^4.18.1",
@@ -6,11 +6,11 @@ import { Overlay, ScrollStrategy } from "@angular/cdk/overlay";
6
6
  import { Modal } from "bootstrap";
7
7
  import { FormBuilder, FormControl, FormGroup } from "@angular/forms";
8
8
  import { DatePipe } from "@angular/common";
9
- import { TranslateService } from "@ngx-translate/core";
10
- import { Router } from "@angular/router";
11
9
  import { MatTableDataSource } from "@angular/material/table";
12
10
  import { MatSort } from "@angular/material/sort";
13
11
  import { MatPaginator, MatPaginatorIntl } from "@angular/material/paginator";
12
+ import { TranslateService } from "@ngx-translate/core";
13
+ import { Router } from "@angular/router";
14
14
  import { SelectionModel } from "@angular/cdk/collections";
15
15
  import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
16
16
  export declare class FusionButtonComponent implements OnInit {
@@ -622,7 +622,7 @@ export declare class ModalComponent implements OnInit {
622
622
  "cancelButtonEmit": "cancelButtonEmit";
623
623
  }, never, [".modal-body"], true, never>;
624
624
  }
625
- export declare class FileUploadComponent implements OnInit {
625
+ export declare class FileUploadComponent implements OnInit, OnChanges {
626
626
  fileSelected: EventEmitter<any>;
627
627
  fileDeleted: EventEmitter<any>;
628
628
  closeEmit: EventEmitter<any>;
@@ -644,8 +644,17 @@ export declare class FileUploadComponent implements OnInit {
644
644
  bodyRadioConfig: any;
645
645
  templateContent: any;
646
646
  allowedFileTypes: string[];
647
+ isDragOver: boolean;
648
+ validationErrors: string[];
647
649
  constructor();
648
650
  ngOnInit(): void;
651
+ ngOnChanges(changes: SimpleChanges): void;
652
+ private syncAllowedFileTypes;
653
+ onDragOver(event: DragEvent): void;
654
+ onDragLeave(event: DragEvent): void;
655
+ onDrop(event: DragEvent): void;
656
+ onNativeFileInputChange(event: Event): void;
657
+ private processNativeFiles;
649
658
  deleteFile(removedFile: any): void;
650
659
  onFileSelected(event: any): void;
651
660
  uploadFile(): void;
@@ -943,22 +952,6 @@ export declare class ApprovalScreenComponent {
943
952
  "approve": "approve";
944
953
  }, never, never, true, never>;
945
954
  }
946
- export declare class LoaderService {
947
- private loadingStates;
948
- private loadingSubject;
949
- loading: import("rxjs").Observable<{
950
- [componentId: string]: string[];
951
- }>;
952
- nxtLoaderId: any;
953
- private emitState;
954
- show(componentId: string, requestId: string): void;
955
- hide(componentId: string, requestId: string): void;
956
- nxtLoader(id: any): void;
957
- getNxtLoader(): any;
958
- isLoading(componentId: string): boolean;
959
- static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
960
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
961
- }
962
955
  export declare class AlertService {
963
956
  private translate;
964
957
  private static instance;
@@ -988,105 +981,22 @@ export declare class ErrorHandlerService {
988
981
  static ɵfac: i0.ɵɵFactoryDeclaration<ErrorHandlerService, never>;
989
982
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
990
983
  }
991
- export declare class TabDataService {
992
- private cache;
993
- private nxtBooks;
994
- constructor();
995
- getCachedData(tabName: string, componentId: string): any;
996
- setCachedData(tabName: string, data: any, componentId: string): void;
997
- getNxtBook(endpoint: string): any;
998
- setNxtBook(endpoint: string, book: any): void;
999
- clearCache(): void;
1000
- static ɵfac: i0.ɵɵFactoryDeclaration<TabDataService, never>;
984
+ export declare class LoaderService {
985
+ private loadingStates;
986
+ private loadingSubject;
987
+ loading: import("rxjs").Observable<{
988
+ [componentId: string]: string[];
989
+ }>;
990
+ nxtLoaderId: any;
991
+ private emitState;
992
+ show(componentId: string, requestId: string): void;
993
+ hide(componentId: string, requestId: string): void;
994
+ nxtLoader(id: any): void;
995
+ getNxtLoader(): any;
996
+ isLoading(componentId: string): boolean;
997
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
1001
998
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1002
999
  }
1003
- export declare class FormsComponent {
1004
- private loaderService;
1005
- private translate;
1006
- private globalValues;
1007
- private apiService;
1008
- private datePipe;
1009
- private alertService;
1010
- private errorHandler;
1011
- private globalValueService;
1012
- private configService;
1013
- private tabDataService;
1014
- private cdr;
1015
- formJson: any;
1016
- tabs: Array<any>;
1017
- eachTypeOfTab: string;
1018
- settingsData: any;
1019
- components: Array<any>;
1020
- direction: any;
1021
- languageCode: any;
1022
- isLoading: any;
1023
- listViews: any;
1024
- multipleFilter: Array<any>;
1025
- tableFilterData: any;
1026
- selectedQuarterData: string;
1027
- selectedFYData: string;
1028
- fyList: Array<any>;
1029
- dataPatchProperties: any;
1030
- bookletId: any;
1031
- apiUrl: string;
1032
- defaultFormJson: any;
1033
- modalProperties: any;
1034
- tableData: any;
1035
- nxtCompID: string;
1036
- nxtTabName: string;
1037
- nxtLoader: any;
1038
- nxtJSON: any;
1039
- bookValue: any;
1040
- challans: Array<any>;
1041
- tab: any;
1042
- constructor(loaderService: LoaderService, translate: TranslateService, globalValues: GlobalValuesService, apiService: ApiService, datePipe: DatePipe, alertService: AlertService, errorHandler: ErrorHandlerService, globalValueService: GlobalValuesService, configService: ConfigService, tabDataService: TabDataService, cdr: ChangeDetectorRef);
1043
- ngOnInit(): Promise<void>;
1044
- currentTabNav(tab: any): Promise<void>;
1045
- getData(apiCall: any, endPoint: any, event: any, parentData?: any | undefined, params?: any | undefined, compId?: any, tableData?: any): Promise<void>;
1046
- openModal: boolean;
1047
- commonButtonClickEmit(event: any, index?: any, allEvent?: any): Promise<void>;
1048
- selectedDropdownValue(event: any, from?: string): Promise<void>;
1049
- checkedDeductees: Array<any>;
1050
- tableCheckedDataa(event: any): void;
1051
- tablePageDetails(comp: any, event: any): void;
1052
- hyperLinkColumnEmit(comp: any, event: any): void;
1053
- saveButtonData(event: any): void;
1054
- onDeleteRecord(event: any, comp: any): void;
1055
- tableParamsEmit(tab: any, event: any, comp: any): void;
1056
- actionButtonEmit(evt: any, compId?: string): void;
1057
- nxtTableFilterEmit(event: any, comp: any): void;
1058
- nxtFormHandler(event: any): Promise<void>;
1059
- assignByPath(obj: any, path: string, value: any): void;
1060
- saveSuccess(event: any, key?: any, defaultMessage?: any): void;
1061
- nxtButtonHandler(event: any): void;
1062
- handleCalendarDate(event: any): void;
1063
- handleCalendarEventDate(event: any): void;
1064
- onClickEdit(card: any): void;
1065
- multiCheckEmit(event: any): void;
1066
- currentSubTabNav(event: any): void;
1067
- onSideNav(event: any): void;
1068
- emitAttachmentClick(event: any): void;
1069
- modalClose(event: any): void;
1070
- getFormData(fyYear: string, quarter: string): Promise<void>;
1071
- submitButtonLoader: boolean;
1072
- submitClick(from: string): Promise<void>;
1073
- getStateCodes(stateText: string): {
1074
- state: string[];
1075
- code: string;
1076
- tin: number;
1077
- } | {
1078
- state: undefined;
1079
- code: string;
1080
- tin: undefined;
1081
- };
1082
- static ɵfac: i0.ɵɵFactoryDeclaration<FormsComponent, never>;
1083
- static ɵcmp: i0.ɵɵComponentDeclaration<FormsComponent, "app-forms", never, {
1084
- "tab": {
1085
- "alias": "tab";
1086
- "required": false;
1087
- };
1088
- }, {}, never, never, true, never>;
1089
- }
1090
1000
  export declare class ScrollService {
1091
1001
  private scrollPositionSubject;
1092
1002
  scrollPosition$: import("rxjs").Observable<number>;
@@ -1743,6 +1653,8 @@ export declare class AttendanceTableComponent implements OnInit, OnChanges, OnDe
1743
1653
  pageSizeOptions: number[];
1744
1654
  pageIndex: number;
1745
1655
  isLoading: boolean;
1656
+ dataGetProperties?: any;
1657
+ liveSyncing: boolean;
1746
1658
  title: string;
1747
1659
  titleOn: boolean;
1748
1660
  buttonLoadingSpinner: boolean;
@@ -1771,6 +1683,12 @@ export declare class AttendanceTableComponent implements OnInit, OnChanges, OnDe
1771
1683
  pageChange: EventEmitter<any>;
1772
1684
  pageDetails: EventEmitter<any>;
1773
1685
  searchFilterData: EventEmitter<any>;
1686
+ serverQueryChange: EventEmitter<{
1687
+ searchText: string;
1688
+ pageIndex: number;
1689
+ pageSize: number;
1690
+ dataGetProperties?: any;
1691
+ }>;
1774
1692
  searchText: EventEmitter<string>;
1775
1693
  exportButton: EventEmitter<any>;
1776
1694
  importButton: EventEmitter<any>;
@@ -1787,6 +1705,12 @@ export declare class AttendanceTableComponent implements OnInit, OnChanges, OnDe
1787
1705
  itemsPerPage: any[];
1788
1706
  exportSidescreen: boolean;
1789
1707
  attendanceSubscription: Subscription;
1708
+ private searchSubject;
1709
+ private searchSubscription?;
1710
+ private filteredClientData;
1711
+ private lastEmittedServerSearch;
1712
+ updatedRowIds: Set<string>;
1713
+ private highlightTimers;
1790
1714
  selection: SelectionModel<any>;
1791
1715
  selectedMonth: number;
1792
1716
  selectedYear: number;
@@ -1799,6 +1723,9 @@ export declare class AttendanceTableComponent implements OnInit, OnChanges, OnDe
1799
1723
  todayColumn: string | null;
1800
1724
  leaveTypeSet: Set<string>;
1801
1725
  constructor(cdr: ChangeDetectorRef, apiService: ApiService, globalValues: GlobalValuesService);
1726
+ get isServerSideMode(): boolean;
1727
+ trackByEmployeeId: (index: number, row: any) => string | number;
1728
+ isRowUpdated(row: any): boolean;
1802
1729
  ngOnInit(): void;
1803
1730
  ngOnChanges(changes: SimpleChanges): void;
1804
1731
  ngOnDestroy(): void;
@@ -1835,6 +1762,9 @@ export declare class AttendanceTableComponent implements OnInit, OnChanges, OnDe
1835
1762
  tableClick(row: any): void;
1836
1763
  doubleClickFunction(element: any, column: string, presentData: any): void;
1837
1764
  applyFilter(event: Event): void;
1765
+ private emitServerSearch;
1766
+ private applyClientFilterAndSlice;
1767
+ patchRows(updatedRows: any[]): void;
1838
1768
  isAllSelected(): boolean;
1839
1769
  masterToggle(): void;
1840
1770
  separateRowSelect(toggled: any, row: any): void;
@@ -1933,6 +1863,14 @@ export declare class AttendanceTableComponent implements OnInit, OnChanges, OnDe
1933
1863
  "alias": "isLoading";
1934
1864
  "required": false;
1935
1865
  };
1866
+ "dataGetProperties": {
1867
+ "alias": "dataGetProperties";
1868
+ "required": false;
1869
+ };
1870
+ "liveSyncing": {
1871
+ "alias": "liveSyncing";
1872
+ "required": false;
1873
+ };
1936
1874
  "title": {
1937
1875
  "alias": "title";
1938
1876
  "required": false;
@@ -1994,6 +1932,7 @@ export declare class AttendanceTableComponent implements OnInit, OnChanges, OnDe
1994
1932
  "pageChange": "pageChange";
1995
1933
  "pageDetails": "pageDetails";
1996
1934
  "searchFilterData": "searchFilterData";
1935
+ "serverQueryChange": "serverQueryChange";
1997
1936
  "searchText": "searchText";
1998
1937
  "exportButton": "exportButton";
1999
1938
  "importButton": "importButton";
@@ -2289,6 +2228,18 @@ export declare class TotalColumSumPipe implements PipeTransform {
2289
2228
  static ɵfac: i0.ɵɵFactoryDeclaration<TotalColumSumPipe, never>;
2290
2229
  static ɵpipe: i0.ɵɵPipeDeclaration<TotalColumSumPipe, "totalColumSum", true>;
2291
2230
  }
2231
+ export declare class TabDataService {
2232
+ private cache;
2233
+ private nxtBooks;
2234
+ constructor();
2235
+ getCachedData(tabName: string, componentId: string): any;
2236
+ setCachedData(tabName: string, data: any, componentId: string): void;
2237
+ getNxtBook(endpoint: string): any;
2238
+ setNxtBook(endpoint: string, book: any): void;
2239
+ clearCache(): void;
2240
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabDataService, never>;
2241
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2242
+ }
2292
2243
  export declare class PdfFontService {
2293
2244
  private fontLoadedPromise;
2294
2245
  /**