@ieeesa-npm/presentation 0.4.5 → 0.4.7

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.
@@ -25,6 +25,7 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
25
25
  nextMonth: string;
26
26
  menuIcon: string;
27
27
  close: string;
28
+ search: string;
28
29
  };
29
30
  button: {
30
31
  cancel: string;
@@ -65,19 +66,12 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
65
66
  link: string;
66
67
  pagination: string;
67
68
  };
68
- buttons: ({
69
- id: number;
70
- iconURL: string;
71
- toolTip: string;
72
- ariaLabel: string;
73
- disabled: boolean;
74
- } | {
69
+ buttons: {
75
70
  id: number;
76
71
  iconURL: string;
77
72
  toolTip: string;
78
73
  ariaLabel: string;
79
- disabled?: undefined;
80
- })[];
74
+ }[];
81
75
  };
82
76
  datePicker: {
83
77
  selectDateLabel: string;
@@ -114,6 +108,10 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
114
108
  ariaLabel: {
115
109
  helpLink: string;
116
110
  userProfile: string;
111
+ /**
112
+ * Shows list of chips on the basis of view more/less button state.
113
+ * @memberof ChipComponent
114
+ */
117
115
  hamburgerMenu: string;
118
116
  };
119
117
  label: {
@@ -161,9 +159,7 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
161
159
  arrow: IconButton;
162
160
  typeOfChip: ChipsType;
163
161
  isViewMoreNeeded: boolean;
164
- private isChipToggled;
165
- set hasChipToggled(value: boolean);
166
- get hasChipToggled(): boolean;
162
+ hasChipToggled: boolean;
167
163
  viewAllLabel: string;
168
164
  viewLessLabel: string;
169
165
  selectedChip: EventEmitter<any>;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit, AfterViewInit, OnDestroy } from '@angular/core';
2
2
  import { MatTableDataSource } from '@angular/material/table';
3
- import { PageEvent } from '@angular/material/paginator';
3
+ import { MatPaginator, PageEvent } from '@angular/material/paginator';
4
4
  import { MatSort, SortDirection } from '@angular/material/sort';
5
5
  import { SelectionModel } from '@angular/cdk/collections';
6
6
  import { Subject } from 'rxjs';
@@ -69,6 +69,7 @@ export declare class DataTableComponent implements OnInit, AfterViewInit, OnDest
69
69
  clearAll: any;
70
70
  destroy$: Subject<boolean>;
71
71
  sort: MatSort;
72
+ paginator: MatPaginator;
72
73
  constructor(breakpointObserverService: BreakpointObserverService);
73
74
  /**
74
75
  * Initializes the data table component and sets the table action buttons.
@@ -56,6 +56,11 @@ export declare class SearchComponent implements OnInit, AfterViewInit, OnDestroy
56
56
  * @memberof SearchComponent
57
57
  */
58
58
  onSearchInputChange(): void;
59
+ /**
60
+ * Emits the searchValue event along with the searched term while clicking on the search icon
61
+ * @memberof SearchComponent
62
+ */
63
+ onSearchClick(): void;
59
64
  /**
60
65
  * Implementation of ngOnDestroy lifecycle hook method to unsubscribe the open observable subscriptions.
61
66
  * @memberof SearchComponent
@@ -6,6 +6,11 @@ export declare enum TableColumnType {
6
6
  EDIT = "EDIT",
7
7
  DELETE = "DELETE"
8
8
  }
9
+ export declare enum TableColumnSortDirection {
10
+ ASCENDING = "asc",
11
+ DESCENDING = "desc",
12
+ NO_SORT = ""
13
+ }
9
14
  export interface TableColumnSchema {
10
15
  id: number;
11
16
  columnDef: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
@@ -18,8 +18,8 @@
18
18
  "moment": "^2.29.4",
19
19
  "rxjs": "~7.8.0",
20
20
  "zone.js": "~0.13.0",
21
- "@ieeesa-npm/shared-styles": "^0.1.1",
22
- "@ieeesa-npm/feature": "^0.2.7"
21
+ "@ieeesa-npm/shared-styles": "^0.1.2",
22
+ "@ieeesa-npm/feature": "^0.2.9"
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.3.0"
@@ -5,7 +5,8 @@
5
5
  "previousMonth": "Previous month",
6
6
  "nextMonth": "Next month",
7
7
  "menuIcon": "Menu",
8
- "close": "Close"
8
+ "close": "Close",
9
+ "search": "Search"
9
10
  },
10
11
  "button": {
11
12
  "cancel": "Cancel",
@@ -13,7 +14,7 @@
13
14
  },
14
15
  "chips": {
15
16
  "noOfDefaultVisibleChips": 3,
16
- "label" : {
17
+ "label": {
17
18
  "viewAll": "View all",
18
19
  "viewLess": "View less"
19
20
  },
@@ -35,7 +36,7 @@
35
36
  }
36
37
  }
37
38
  },
38
- "dataTable" : {
39
+ "dataTable": {
39
40
  "label": {
40
41
  "clearAll": "Clear All"
41
42
  },
@@ -51,21 +52,31 @@
51
52
  "id": 1,
52
53
  "iconURL": "assets/images/sprites/sprites.svg#icon-data-table-edit",
53
54
  "toolTip": "",
54
- "ariaLabel": "Edit",
55
- "disabled": true
55
+ "ariaLabel": "Edit"
56
56
  },
57
57
  {
58
58
  "id": 2,
59
59
  "iconURL": "assets/images/sprites/sprites.svg#icon-data-table-delete",
60
60
  "toolTip": "",
61
- "ariaLabel": "Delete",
62
- "disabled": true
61
+ "ariaLabel": "Delete"
63
62
  },
64
63
  {
65
64
  "id": 3,
66
65
  "iconURL": "assets/images/sprites/sprites.svg#icon-add-member",
67
66
  "toolTip": "",
68
67
  "ariaLabel": "Add user(s)"
68
+ },
69
+ {
70
+ "id": 4,
71
+ "iconURL": "assets/images/sprites/sprites.svg#icon-data-table-row-edit",
72
+ "toolTip": "",
73
+ "ariaLabel": "Edit"
74
+ },
75
+ {
76
+ "id": 5,
77
+ "iconURL": "assets/images/sprites/sprites.svg#icon-data-table-row-delete",
78
+ "toolTip": "",
79
+ "ariaLabel": "Delete"
69
80
  }
70
81
  ]
71
82
  },
@@ -83,14 +94,14 @@
83
94
  "filterBy": "Filter By:",
84
95
  "applyButton": "Apply"
85
96
  },
86
- "buttons": [
87
- {
88
- "id": 4,
89
- "iconURL": "assets/images/sprites/sprites.svg#icon-filter-list",
90
- "toolTip": "",
91
- "ariaLabel": "Filter"
92
- }
93
- ]
97
+ "buttons": [
98
+ {
99
+ "id": 4,
100
+ "iconURL": "assets/images/sprites/sprites.svg#icon-filter-list",
101
+ "toolTip": "",
102
+ "ariaLabel": "Filter"
103
+ }
104
+ ]
94
105
  },
95
106
  "textarea": {
96
107
  "maxLengthDefault": 1000