axidio-styleguide-library1-v2 0.2.11 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,84 +6,42 @@ export declare class AxTableComponent implements OnInit {
6
6
  clickEvent: EventEmitter<any>;
7
7
  isHeaderVisible: boolean;
8
8
  isUserSort: boolean;
9
- tableHeadList: any;
10
- /**
11
- * List of stores information for the selected state
12
- */
13
- itemList: any;
14
- itemsPerPage: number;
15
- /**
16
- * Total number of stores in selected state
17
- */
18
- totalItems: any;
19
- /**
20
- * Current page displayed in pagination
21
- */
22
- currentPage: any;
23
- /**
24
- * Number of stores that can be displayed in each page
25
- */
26
- pageSize: any;
27
- /**
28
- * Selected page store list
29
- */
30
- currentList: any;
31
- /**
32
- * Sort direction of selected column in the table
33
- */
34
- sortDirection: any;
35
- /**
36
- * Selected column for sorting
37
- */
38
- sortColumn: any;
39
- /**
40
- * Selector for listening to the changes of search text entered in the header
41
- */
42
- searchTextFeature$: any;
43
- /**
44
- * Master store list for the selected state
45
- */
46
- masterList: any;
47
- chartConfiguration: any;
48
- defaultConfiguration: any;
9
+ tableHeadList: string[];
10
+ masterList: any[];
11
+ itemList: any[];
12
+ currentList: any[];
13
+ pageSize: number;
14
+ currentPage: number;
15
+ totalItems: number;
49
16
  totalPages: number;
50
17
  goToPageNumber: number;
51
18
  pagesToShow: number[];
19
+ sortColumn: string;
20
+ sortDirection: 'asc' | 'desc' | '';
21
+ chartConfiguration: any;
22
+ defaultConfiguration: any;
52
23
  constructor();
53
24
  ngOnInit(): void;
54
- loadPage(): void;
55
- calculateTotalPages(): void;
56
- preventNegative(event: KeyboardEvent): void;
57
- generatePagesToShow(): void;
58
- onPaginationChange(): void;
25
+ private initializeTable;
26
+ private setupChartConfiguration;
27
+ private setHeaderVisibility;
28
+ private loadPage;
29
+ private calculateTotalPages;
30
+ private generatePagesToShow;
31
+ private refreshPagination;
59
32
  goToFirstPage(): void;
60
33
  goToPreviousPage(): void;
61
34
  goToNextPage(): void;
62
35
  goToLastPage(): void;
63
- goToPage(page: number): void;
64
36
  goToSpecificPage(): void;
65
- validateNumberInput(event: KeyboardEvent): boolean;
66
- /**
67
- * Returns the width of the column
68
- * @param id - column id
69
- */
70
- getWidthById(id: any, index: any): string;
71
- /**
72
- * Sorts the column that is being passed as the param
73
- * @param id - Column id
74
- */
75
- sortByColumn(id: any): void;
76
- /**
77
- * Returns whether column being passed as the param is currently being sorted or not
78
- * @param id column id
79
- */
80
- checkIfColumnCurrentlyBeingSorted(id: any): boolean;
81
- /**
82
- * Returns the sort direction that is being currently sorted
83
- */
84
- getSortDirection(): "arrow-up" | "arrow-down";
85
- onEnter(event: any): void;
86
- handleClick(d: any): void;
37
+ preventNegative(event: KeyboardEvent): void;
38
+ sortByColumn(id: string): void;
39
+ private sortItemList;
40
+ private resetSort;
41
+ checkIfColumnCurrentlyBeingSorted(id: string): boolean;
42
+ onSearch(event: any): void;
43
+ getWidthById(_: string, index: number): string;
44
+ handleClick(row: any): void;
87
45
  static ɵfac: i0.ɵɵFactoryDeclaration<AxTableComponent, never>;
88
46
  static ɵcmp: i0.ɵɵComponentDeclaration<AxTableComponent, "lib-ax-table", never, { "tableData": { "alias": "tableData"; "required": false; }; "customChartConfiguration": { "alias": "customChartConfiguration"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, never, false, never>;
89
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axidio-styleguide-library1-v2",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.1",
6
6
  "@angular/core": "^17.3.1",