@rangertechnologies/fusion-ui 0.1.7 → 0.1.9

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.7",
3
+ "version": "0.1.9",
4
4
  "author": "Mohamed Riyaz Y",
5
5
  "license": "ISC",
6
6
  "description": "Shared component library for Fusion platform and micro-frontends",
@@ -11,6 +11,7 @@ import { Router } from "@angular/router";
11
11
  import { MatTableDataSource } from "@angular/material/table";
12
12
  import { MatSort } from "@angular/material/sort";
13
13
  import { MatPaginator, MatPaginatorIntl } from "@angular/material/paginator";
14
+ import { SelectionModel } from "@angular/cdk/collections";
14
15
  import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
15
16
  export declare class FusionButtonComponent implements OnInit {
16
17
  private elementRef;
@@ -1109,7 +1110,9 @@ export declare class DataTableComponent implements OnInit {
1109
1110
  set filterColumns(val: any);
1110
1111
  get filterColumns(): Array<any>;
1111
1112
  tableSaveButton: boolean;
1112
- stickyColumn: boolean;
1113
+ private _stickyColumn;
1114
+ set stickyColumn(val: boolean | Array<any>);
1115
+ get stickyColumn(): boolean | Array<any>;
1113
1116
  tableWidth: string;
1114
1117
  actionColumHeader: string;
1115
1118
  multipleFilter: any;
@@ -1162,18 +1165,12 @@ export declare class DataTableComponent implements OnInit {
1162
1165
  dropdownLists: any;
1163
1166
  dateDropdown: boolean;
1164
1167
  from: any;
1165
- isSandwichLeave: boolean;
1166
- isCheckButton: boolean;
1167
- monthArray: any;
1168
- yearArray: any;
1169
- year: any;
1170
- month: any;
1171
1168
  button: any;
1172
1169
  exportDisable: boolean;
1173
1170
  defaultWorkingHours: number;
1174
1171
  set saveLOP(val: boolean);
1175
1172
  get saveLOP(): boolean;
1176
- isAttendanceTable: boolean;
1173
+ isLoading: boolean;
1177
1174
  dateEmit: EventEmitter<any>;
1178
1175
  selectedValues: EventEmitter<any[]>;
1179
1176
  tableRowClick: EventEmitter<any>;
@@ -1218,11 +1215,6 @@ export declare class DataTableComponent implements OnInit {
1218
1215
  }>;
1219
1216
  searchText: EventEmitter<string>;
1220
1217
  dropdownDataEmit: EventEmitter<any>;
1221
- checkClicked: EventEmitter<any>;
1222
- yearDataEmit: EventEmitter<any>;
1223
- selectedValueEmit: EventEmitter<any>;
1224
- monthDataEmit: EventEmitter<any>;
1225
- doubleClickEmit: EventEmitter<any>;
1226
1218
  hyperLinkClickEmit: EventEmitter<any>;
1227
1219
  tableParamsChange: EventEmitter<any>;
1228
1220
  paginator: MatPaginator;
@@ -1264,7 +1256,8 @@ export declare class DataTableComponent implements OnInit {
1264
1256
  infoData: any;
1265
1257
  infoSidescreen: boolean;
1266
1258
  prevSearch: any;
1267
- isLoading: any;
1259
+ loaderLoadingStates: Record<string, string[]>;
1260
+ get isTableLoading(): boolean;
1268
1261
  activeColumn: string | null;
1269
1262
  private scrollSubscription;
1270
1263
  tablePageSubscription: Subscription;
@@ -1336,33 +1329,8 @@ export declare class DataTableComponent implements OnInit {
1336
1329
  isObjectColumn(column: string): boolean;
1337
1330
  onSideNavInfoClick(data: any, col: any, config: any): void;
1338
1331
  onColumnClick(column: string): void;
1339
- selectedMonth: number;
1340
- selectedYear: number;
1341
- popupOpen: boolean;
1342
- confirmModal: boolean;
1343
- months: string[];
1344
- weekendColumnsSet: Set<string>;
1345
- futureColumnsSet: Set<string>;
1346
- todayColumn: string | null;
1347
- leaveTypeSet: Set<string>;
1348
- updateDateLookups(): void;
1349
- isWeekend(column: string): boolean;
1350
- isToday(column: string): boolean;
1351
- isFutureDate(column: string): boolean;
1352
- getInitials(name: string): string;
1353
- isNearTarget(workingDays: any, totalDays: any): boolean;
1354
- isLeaveType(status: any): boolean;
1355
- prevMonth(): void;
1356
- nextMonth(): void;
1357
- togglePopup(): void;
1358
- selectMonth(monthIndex: number): void;
1359
- changeYear(step: number): void;
1360
- emitSelection(): void;
1361
- checkButtonClicked(): void;
1362
- doubleClickFunction(element: any, data: any, presentData: any): void;
1363
- getMonthNumber(month: any): number;
1364
1332
  static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
1365
- static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "app-data-table, app-data-table-two", never, {
1333
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "app-data-table", never, {
1366
1334
  "data": {
1367
1335
  "alias": "data";
1368
1336
  "required": false;
@@ -1611,30 +1579,6 @@ export declare class DataTableComponent implements OnInit {
1611
1579
  "alias": "from";
1612
1580
  "required": false;
1613
1581
  };
1614
- "isSandwichLeave": {
1615
- "alias": "isSandwichLeave";
1616
- "required": false;
1617
- };
1618
- "isCheckButton": {
1619
- "alias": "isCheckButton";
1620
- "required": false;
1621
- };
1622
- "monthArray": {
1623
- "alias": "monthArray";
1624
- "required": false;
1625
- };
1626
- "yearArray": {
1627
- "alias": "yearArray";
1628
- "required": false;
1629
- };
1630
- "year": {
1631
- "alias": "year";
1632
- "required": false;
1633
- };
1634
- "month": {
1635
- "alias": "month";
1636
- "required": false;
1637
- };
1638
1582
  "button": {
1639
1583
  "alias": "button";
1640
1584
  "required": false;
@@ -1651,8 +1595,8 @@ export declare class DataTableComponent implements OnInit {
1651
1595
  "alias": "saveLOP";
1652
1596
  "required": false;
1653
1597
  };
1654
- "isAttendanceTable": {
1655
- "alias": "isAttendanceTable";
1598
+ "isLoading": {
1599
+ "alias": "isLoading";
1656
1600
  "required": false;
1657
1601
  };
1658
1602
  "exportButtonLoadingSpinner": {
@@ -1701,14 +1645,247 @@ export declare class DataTableComponent implements OnInit {
1701
1645
  "sideNavEmit": "sideNavEmit";
1702
1646
  "searchText": "searchText";
1703
1647
  "dropdownDataEmit": "dropdownDataEmit";
1648
+ "hyperLinkClickEmit": "hyperLinkClickEmit";
1649
+ "tableParamsChange": "tableParamsChange";
1650
+ }, never, ["[table-toolbar-left]", "[table-toolbar-right]"], true, never>;
1651
+ }
1652
+ export declare class AttendanceTableComponent implements OnInit, OnChanges {
1653
+ cdr: ChangeDetectorRef;
1654
+ data: any[];
1655
+ displayedColumns: string[];
1656
+ headerLabels: any[];
1657
+ tableWidth: string;
1658
+ tableId: string;
1659
+ withCheckBox: boolean;
1660
+ searchBar: boolean;
1661
+ searchTextValue: string;
1662
+ isSandwichLeave: boolean;
1663
+ isCheckButton: boolean;
1664
+ monthArray: string[];
1665
+ yearArray: any[];
1666
+ year: any;
1667
+ month: any;
1668
+ totalRecords: number;
1669
+ pageSize: number;
1670
+ pageIndex: number;
1671
+ isLoading: boolean;
1672
+ title: string;
1673
+ titleOn: boolean;
1674
+ buttonLoadingSpinner: boolean;
1675
+ exportButtonLoadingSpinner: boolean;
1676
+ isEditRow: boolean;
1677
+ defaultWorkingHours: number;
1678
+ hyperLinkColumns: Array<any>;
1679
+ filterScreenConfigs: Array<any>;
1680
+ exportFieldsListConfigs: any;
1681
+ exportFilterListConfigs: any;
1682
+ private _stickyColumn;
1683
+ private _stickyColumns;
1684
+ set stickyColumn(val: boolean | Array<any>);
1685
+ get stickyColumn(): boolean | Array<any>;
1686
+ set stickyColumns(val: any);
1687
+ get stickyColumns(): Array<any>;
1688
+ checkClicked: EventEmitter<any>;
1689
+ monthDataEmit: EventEmitter<any>;
1690
+ yearDataEmit: EventEmitter<any>;
1691
+ selectedValueEmit: EventEmitter<any>;
1692
+ doubleClickEmit: EventEmitter<any>;
1693
+ rowClick: EventEmitter<any>;
1694
+ tableRowClick: EventEmitter<any>;
1695
+ searchValueChange: EventEmitter<any>;
1696
+ selectedValues: EventEmitter<any[]>;
1697
+ searchText: EventEmitter<string>;
1698
+ exportButton: EventEmitter<any>;
1699
+ importButton: EventEmitter<any>;
1700
+ hyperLinkClickEmit: EventEmitter<any>;
1701
+ sideNavButtons: EventEmitter<any>;
1702
+ exportReports: EventEmitter<any>;
1703
+ multipleSelectFilterExport: EventEmitter<any>;
1704
+ filterDateEmitEvt: EventEmitter<any>;
1705
+ sort: MatSort;
1706
+ paginator: MatPaginator;
1707
+ dataSource: MatTableDataSource<any, MatPaginator>;
1708
+ selection: SelectionModel<any>;
1709
+ selectedMonth: number;
1710
+ selectedYear: number;
1711
+ popupOpen: boolean;
1712
+ confirmModal: boolean;
1713
+ months: string[];
1714
+ weekendColumnsSet: Set<string>;
1715
+ futureColumnsSet: Set<string>;
1716
+ todayColumn: string | null;
1717
+ leaveTypeSet: Set<string>;
1718
+ constructor(cdr: ChangeDetectorRef);
1719
+ ngOnInit(): void;
1720
+ ngOnChanges(changes: SimpleChanges): void;
1721
+ private initMonthYear;
1722
+ private updateDataSource;
1723
+ updateDateLookups(): void;
1724
+ isWeekend(column: string): boolean;
1725
+ isToday(column: string): boolean;
1726
+ isFutureDate(column: string): boolean;
1727
+ isColumnSticky(column: string): boolean;
1728
+ getInitials(name: string): string;
1729
+ triggerChangeDetection(): void;
1730
+ onHyperLinkClick(element: any, column: string): void;
1731
+ private resolveAttendanceValue;
1732
+ getAttendanceChipClass(val: any): string;
1733
+ getAttendanceChipSymbol(val: any): string;
1734
+ prevMonth(): void;
1735
+ nextMonth(): void;
1736
+ togglePopup(): void;
1737
+ selectMonth(monthIndex: number): void;
1738
+ changeYear(step: number): void;
1739
+ emitSelection(): void;
1740
+ checkButtonClicked(): void;
1741
+ onCellClick(element: any, column: string): void;
1742
+ onCellDoubleClick(element: any, column: string): void;
1743
+ applyFilter(event: Event): void;
1744
+ masterToggle(): void;
1745
+ isAllSelected(): boolean;
1746
+ rowToggle(row: any): void;
1747
+ getMonthNumber(month: any): number;
1748
+ static ɵfac: i0.ɵɵFactoryDeclaration<AttendanceTableComponent, never>;
1749
+ static ɵcmp: i0.ɵɵComponentDeclaration<AttendanceTableComponent, "app-attendance-table, app-data-table-two", never, {
1750
+ "data": {
1751
+ "alias": "data";
1752
+ "required": false;
1753
+ };
1754
+ "displayedColumns": {
1755
+ "alias": "displayedColumns";
1756
+ "required": false;
1757
+ };
1758
+ "headerLabels": {
1759
+ "alias": "headerLabels";
1760
+ "required": false;
1761
+ };
1762
+ "tableWidth": {
1763
+ "alias": "tableWidth";
1764
+ "required": false;
1765
+ };
1766
+ "tableId": {
1767
+ "alias": "tableId";
1768
+ "required": false;
1769
+ };
1770
+ "withCheckBox": {
1771
+ "alias": "withCheckBox";
1772
+ "required": false;
1773
+ };
1774
+ "searchBar": {
1775
+ "alias": "searchBar";
1776
+ "required": false;
1777
+ };
1778
+ "searchTextValue": {
1779
+ "alias": "searchTextValue";
1780
+ "required": false;
1781
+ };
1782
+ "isSandwichLeave": {
1783
+ "alias": "isSandwichLeave";
1784
+ "required": false;
1785
+ };
1786
+ "isCheckButton": {
1787
+ "alias": "isCheckButton";
1788
+ "required": false;
1789
+ };
1790
+ "monthArray": {
1791
+ "alias": "monthArray";
1792
+ "required": false;
1793
+ };
1794
+ "yearArray": {
1795
+ "alias": "yearArray";
1796
+ "required": false;
1797
+ };
1798
+ "year": {
1799
+ "alias": "year";
1800
+ "required": false;
1801
+ };
1802
+ "month": {
1803
+ "alias": "month";
1804
+ "required": false;
1805
+ };
1806
+ "totalRecords": {
1807
+ "alias": "totalRecords";
1808
+ "required": false;
1809
+ };
1810
+ "pageSize": {
1811
+ "alias": "pageSize";
1812
+ "required": false;
1813
+ };
1814
+ "pageIndex": {
1815
+ "alias": "pageIndex";
1816
+ "required": false;
1817
+ };
1818
+ "isLoading": {
1819
+ "alias": "isLoading";
1820
+ "required": false;
1821
+ };
1822
+ "title": {
1823
+ "alias": "title";
1824
+ "required": false;
1825
+ };
1826
+ "titleOn": {
1827
+ "alias": "titleOn";
1828
+ "required": false;
1829
+ };
1830
+ "buttonLoadingSpinner": {
1831
+ "alias": "buttonLoadingSpinner";
1832
+ "required": false;
1833
+ };
1834
+ "exportButtonLoadingSpinner": {
1835
+ "alias": "exportButtonLoadingSpinner";
1836
+ "required": false;
1837
+ };
1838
+ "isEditRow": {
1839
+ "alias": "isEditRow";
1840
+ "required": false;
1841
+ };
1842
+ "defaultWorkingHours": {
1843
+ "alias": "defaultWorkingHours";
1844
+ "required": false;
1845
+ };
1846
+ "hyperLinkColumns": {
1847
+ "alias": "hyperLinkColumns";
1848
+ "required": false;
1849
+ };
1850
+ "filterScreenConfigs": {
1851
+ "alias": "filterScreenConfigs";
1852
+ "required": false;
1853
+ };
1854
+ "exportFieldsListConfigs": {
1855
+ "alias": "exportFieldsListConfigs";
1856
+ "required": false;
1857
+ };
1858
+ "exportFilterListConfigs": {
1859
+ "alias": "exportFilterListConfigs";
1860
+ "required": false;
1861
+ };
1862
+ "stickyColumn": {
1863
+ "alias": "stickyColumn";
1864
+ "required": false;
1865
+ };
1866
+ "stickyColumns": {
1867
+ "alias": "stickyColumns";
1868
+ "required": false;
1869
+ };
1870
+ }, {
1704
1871
  "checkClicked": "checkClicked";
1872
+ "monthDataEmit": "monthDataEmit";
1705
1873
  "yearDataEmit": "yearDataEmit";
1706
1874
  "selectedValueEmit": "selectedValueEmit";
1707
- "monthDataEmit": "monthDataEmit";
1708
1875
  "doubleClickEmit": "doubleClickEmit";
1876
+ "rowClick": "rowClick";
1877
+ "tableRowClick": "tableRowClick";
1878
+ "searchValueChange": "searchValueChange";
1879
+ "selectedValues": "selectedValues";
1880
+ "searchText": "searchText";
1881
+ "exportButton": "exportButton";
1882
+ "importButton": "importButton";
1709
1883
  "hyperLinkClickEmit": "hyperLinkClickEmit";
1710
- "tableParamsChange": "tableParamsChange";
1711
- }, never, ["[table-toolbar-left]", "[table-toolbar-right]"], true, never>;
1884
+ "sideNavButtons": "sideNavButtons";
1885
+ "exportReports": "exportReports";
1886
+ "multipleSelectFilterExport": "multipleSelectFilterExport";
1887
+ "filterDateEmitEvt": "filterDateEmitEvt";
1888
+ }, never, never, true, never>;
1712
1889
  }
1713
1890
  export declare class FusionCardComponent implements OnInit {
1714
1891
  private sanitizer;
@@ -1952,7 +2129,7 @@ export declare class GetValuePipe implements PipeTransform {
1952
2129
  export declare class CustomTranslatePipe implements PipeTransform {
1953
2130
  private translate;
1954
2131
  constructor(translate: TranslateService);
1955
- transform(key: string, defaultTranslation?: string): string;
2132
+ transform(key: any, defaultTranslation?: string): string;
1956
2133
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomTranslatePipe, never>;
1957
2134
  static ɵpipe: i0.ɵɵPipeDeclaration<CustomTranslatePipe, "customTranslate", true>;
1958
2135
  }