@ieeesa-npm/presentation 0.4.6 → 0.4.8
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/esm2022/lib/assets/constants.json +2 -1
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +12 -6
- package/esm2022/lib/components/data-table/data-table.component.mjs +28 -8
- package/esm2022/lib/components/filter/filter.component.mjs +8 -5
- package/esm2022/lib/components/search/search.component.mjs +11 -4
- package/esm2022/lib/models/table-schema.model.mjs +7 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +63 -21
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/checkbox/checkbox.component.d.ts +3 -2
- package/lib/components/chips/chips.component.d.ts +5 -0
- package/lib/components/data-table/data-table.component.d.ts +3 -1
- package/lib/components/filter/filter.component.d.ts +1 -0
- package/lib/components/search/search.component.d.ts +5 -0
- package/lib/models/table-schema.model.d.ts +5 -0
- package/package.json +2 -2
- package/src/lib/assets/constants.json +12 -11
|
@@ -28,6 +28,7 @@ export declare class CheckboxComponent implements OnInit, FormField, OnDestroy {
|
|
|
28
28
|
get checkboxes(): CheckboxOption[];
|
|
29
29
|
selectedCheckboxesInfo: SelectionModel<CheckboxOption>;
|
|
30
30
|
checkboxSelection: EventEmitter<CheckboxOption>;
|
|
31
|
+
checkboxOptionsAndSelection: EventEmitter<CheckboxOption[]>;
|
|
31
32
|
selectedCheckboxes: EventEmitter<CheckboxOption[]>;
|
|
32
33
|
destroy$: Subject<boolean>;
|
|
33
34
|
constructor(formUtilityService: FormUtilityService);
|
|
@@ -48,7 +49,7 @@ export declare class CheckboxComponent implements OnInit, FormField, OnDestroy {
|
|
|
48
49
|
* @param {boolean} checked
|
|
49
50
|
* @memberof CheckboxComponent
|
|
50
51
|
*/
|
|
51
|
-
onChange(option: CheckboxOption
|
|
52
|
+
onChange(option: CheckboxOption): void;
|
|
52
53
|
/**
|
|
53
54
|
* Allows Angular to detect the specific checkbox option that needs to change or be added instead of rebuilding the whole checkbox options in DOM by tracking option unique Id.
|
|
54
55
|
* @param {number} index
|
|
@@ -62,5 +63,5 @@ export declare class CheckboxComponent implements OnInit, FormField, OnDestroy {
|
|
|
62
63
|
*/
|
|
63
64
|
ngOnDestroy(): void;
|
|
64
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ieeesa-checkbox", never, { "checkboxes": { "alias": "checkboxes"; "required": false; }; }, { "checkboxSelection": "checkboxSelection"; "selectedCheckboxes": "selectedCheckboxes"; }, never, never, true, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ieeesa-checkbox", never, { "checkboxes": { "alias": "checkboxes"; "required": false; }; }, { "checkboxSelection": "checkboxSelection"; "checkboxOptionsAndSelection": "checkboxOptionsAndSelection"; "selectedCheckboxes": "selectedCheckboxes"; }, never, never, true, never>;
|
|
66
67
|
}
|
|
@@ -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;
|
|
@@ -107,6 +108,10 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
107
108
|
ariaLabel: {
|
|
108
109
|
helpLink: string;
|
|
109
110
|
userProfile: string;
|
|
111
|
+
/**
|
|
112
|
+
* Shows list of chips on the basis of view more/less button state.
|
|
113
|
+
* @memberof ChipComponent
|
|
114
|
+
*/
|
|
110
115
|
hamburgerMenu: string;
|
|
111
116
|
};
|
|
112
117
|
label: {
|
|
@@ -11,6 +11,7 @@ import { CheckboxOption } from '../../models/checkbox-option.model';
|
|
|
11
11
|
import { IconButton } from '../../models/icon-button.model';
|
|
12
12
|
import { TableActions } from '../../models/table-actions.model';
|
|
13
13
|
import { ChipOption } from '../../models/chip-option.model';
|
|
14
|
+
import { SearchType } from '../../models/search.model';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
/**
|
|
16
17
|
* Provides a Material Design styled data-table that can be used to display rows of data with sortBy, filterBy, add/edit/delete table row data, pagination, search table data.
|
|
@@ -43,6 +44,7 @@ export declare class DataTableComponent implements OnInit, AfterViewInit, OnDest
|
|
|
43
44
|
filters: ChipOption[];
|
|
44
45
|
selectedFilterOptions: CheckboxOption[];
|
|
45
46
|
appliedFilterOptions: ChipOption[];
|
|
47
|
+
searchType: SearchType;
|
|
46
48
|
rowSelected: EventEmitter<any>;
|
|
47
49
|
selectedRowToEdit: EventEmitter<any>;
|
|
48
50
|
selectedRowToDelete: EventEmitter<any>;
|
|
@@ -189,5 +191,5 @@ export declare class DataTableComponent implements OnInit, AfterViewInit, OnDest
|
|
|
189
191
|
*/
|
|
190
192
|
ngOnDestroy(): void;
|
|
191
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
|
|
192
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "ieeesa-data-table", never, { "tableDataInfo": { "alias": "tableDataInfo"; "required": false; }; "columnSchemaInfo": { "alias": "columnSchemaInfo"; "required": false; }; "tableActions": { "alias": "tableActions"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "paginatorConfig": { "alias": "paginatorConfig"; "required": false; }; "searchPlaceHolderText": { "alias": "searchPlaceHolderText"; "required": false; }; "rowEditButton": { "alias": "rowEditButton"; "required": false; }; "rowDeleteButton": { "alias": "rowDeleteButton"; "required": false; }; "tableEditButton": { "alias": "tableEditButton"; "required": false; }; "tableDeleteButton": { "alias": "tableDeleteButton"; "required": false; }; "addButton": { "alias": "addButton"; "required": false; }; "defaultColumnSortDirection": { "alias": "defaultColumnSortDirection"; "required": false; }; "defaultSortedColumn": { "alias": "defaultSortedColumn"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "selectedFilterOptions": { "alias": "selectedFilterOptions"; "required": false; }; "appliedFilterOptions": { "alias": "appliedFilterOptions"; "required": false; }; }, { "rowSelected": "rowSelected"; "selectedRowToEdit": "selectedRowToEdit"; "selectedRowToDelete": "selectedRowToDelete"; "selectedRowsToDelete": "selectedRowsToDelete"; "rowLink": "rowLink"; "addRow": "addRow"; "columnDataOnRowLinkClick": "columnDataOnRowLinkClick"; "paginationChange": "paginationChange"; "selectedFilter": "selectedFilter"; "removeFilteredOption": "removeFilteredOption"; "filteredOptions": "filteredOptions"; "searchedValue": "searchedValue"; }, never, never, true, never>;
|
|
194
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "ieeesa-data-table", never, { "tableDataInfo": { "alias": "tableDataInfo"; "required": false; }; "columnSchemaInfo": { "alias": "columnSchemaInfo"; "required": false; }; "tableActions": { "alias": "tableActions"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "paginatorConfig": { "alias": "paginatorConfig"; "required": false; }; "searchPlaceHolderText": { "alias": "searchPlaceHolderText"; "required": false; }; "rowEditButton": { "alias": "rowEditButton"; "required": false; }; "rowDeleteButton": { "alias": "rowDeleteButton"; "required": false; }; "tableEditButton": { "alias": "tableEditButton"; "required": false; }; "tableDeleteButton": { "alias": "tableDeleteButton"; "required": false; }; "addButton": { "alias": "addButton"; "required": false; }; "defaultColumnSortDirection": { "alias": "defaultColumnSortDirection"; "required": false; }; "defaultSortedColumn": { "alias": "defaultSortedColumn"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "selectedFilterOptions": { "alias": "selectedFilterOptions"; "required": false; }; "appliedFilterOptions": { "alias": "appliedFilterOptions"; "required": false; }; "searchType": { "alias": "searchType"; "required": false; }; }, { "rowSelected": "rowSelected"; "selectedRowToEdit": "selectedRowToEdit"; "selectedRowToDelete": "selectedRowToDelete"; "selectedRowsToDelete": "selectedRowsToDelete"; "rowLink": "rowLink"; "addRow": "addRow"; "columnDataOnRowLinkClick": "columnDataOnRowLinkClick"; "paginationChange": "paginationChange"; "selectedFilter": "selectedFilter"; "removeFilteredOption": "removeFilteredOption"; "filteredOptions": "filteredOptions"; "searchedValue": "searchedValue"; }, never, never, true, never>;
|
|
193
195
|
}
|
|
@@ -21,6 +21,7 @@ export declare class FilterComponent implements OnDestroy {
|
|
|
21
21
|
onFilterToggle: boolean;
|
|
22
22
|
isFilterActive: boolean;
|
|
23
23
|
isMobileView: boolean;
|
|
24
|
+
isApplyButtonDisabled: boolean;
|
|
24
25
|
typeOfChip: ChipsType;
|
|
25
26
|
destroy$: Subject<boolean>;
|
|
26
27
|
private filteredTypeOptionsInfo;
|
|
@@ -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.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.1.0",
|
|
6
6
|
"@angular/core": "^16.1.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"rxjs": "~7.8.0",
|
|
20
20
|
"zone.js": "~0.13.0",
|
|
21
21
|
"@ieeesa-npm/shared-styles": "^0.1.2",
|
|
22
|
-
"@ieeesa-npm/feature": "^0.
|
|
22
|
+
"@ieeesa-npm/feature": "^0.3.0"
|
|
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
|
},
|
|
@@ -93,14 +94,14 @@
|
|
|
93
94
|
"filterBy": "Filter By:",
|
|
94
95
|
"applyButton": "Apply"
|
|
95
96
|
},
|
|
96
|
-
"buttons": [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
"buttons": [
|
|
98
|
+
{
|
|
99
|
+
"id": 4,
|
|
100
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-filter-list",
|
|
101
|
+
"toolTip": "",
|
|
102
|
+
"ariaLabel": "Filter"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
104
105
|
},
|
|
105
106
|
"textarea": {
|
|
106
107
|
"maxLengthDefault": 1000
|