@ieeesa-npm/presentation 0.11.9 → 0.12.1
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 +12 -0
- package/esm2022/lib/components/data-table/data-table.component.mjs +82 -7
- package/esm2022/lib/components/form-error/form-error.component.mjs +3 -3
- package/esm2022/lib/models/field-config.model.mjs +1 -1
- package/esm2022/lib/models/table-schema.model.mjs +2 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +96 -8
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/chips/chips.component.d.ts +4 -1
- package/lib/components/data-table/data-table.component.d.ts +28 -4
- package/lib/models/field-config.model.d.ts +1 -0
- package/lib/models/table-schema.model.d.ts +2 -1
- package/package.json +1 -1
- package/src/lib/assets/constants.json +13 -1
|
@@ -139,7 +139,10 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
139
139
|
logo: string;
|
|
140
140
|
};
|
|
141
141
|
links: {
|
|
142
|
-
label: string;
|
|
142
|
+
label: string; /**
|
|
143
|
+
* Sets the isViewMoreNeeded value based on hasViewMore and isMobileView values.
|
|
144
|
+
* @memberof ChipsComponent
|
|
145
|
+
*/
|
|
143
146
|
ariaLabel: string;
|
|
144
147
|
redirectUrl: string;
|
|
145
148
|
}[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatTableDataSource } from '@angular/material/table';
|
|
3
|
-
import {
|
|
3
|
+
import { PageEvent } from '@angular/material/paginator';
|
|
4
4
|
import { MatSort, Sort, SortDirection } from '@angular/material/sort';
|
|
5
5
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
@@ -26,23 +26,38 @@ import * as i0 from "@angular/core";
|
|
|
26
26
|
export declare class DataTableComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
27
27
|
private breakpointObserverService;
|
|
28
28
|
private tableData;
|
|
29
|
+
private nestedTableData;
|
|
30
|
+
expandedElement: any;
|
|
29
31
|
set tableDataInfo(value: any[]);
|
|
30
32
|
get tableDataInfo(): any[];
|
|
33
|
+
set nestedTableDataInfo(value: any[]);
|
|
34
|
+
get nestedTableDataInfo(): any[];
|
|
31
35
|
private columnSchema;
|
|
32
36
|
set columnSchemaInfo(value: TableColumnSchema[]);
|
|
33
37
|
get columnSchemaInfo(): TableColumnSchema[];
|
|
38
|
+
private nestedTableColumnSchema;
|
|
39
|
+
set nestedTableColumnSchemaInfo(value: TableColumnSchema[]);
|
|
40
|
+
get nestedTableColumnSchemaInfo(): TableColumnSchema[];
|
|
34
41
|
constants: any;
|
|
35
42
|
tableActions: TableActions;
|
|
36
43
|
tableRowActions: Menu[];
|
|
44
|
+
nestedTableRowActions: Menu[];
|
|
37
45
|
caption: string;
|
|
46
|
+
viewAll: string;
|
|
38
47
|
private paginatorConfiguration;
|
|
39
48
|
set paginatorConfig(value: PaginatorConfig);
|
|
40
49
|
get paginatorConfig(): PaginatorConfig;
|
|
50
|
+
private nestedPaginatorConfiguration;
|
|
51
|
+
set nestedPaginatorConfig(value: PaginatorConfig);
|
|
52
|
+
get nestedPaginatorConfig(): PaginatorConfig;
|
|
41
53
|
searchPlaceHolderText: string;
|
|
42
54
|
rowEditButton: IconButton;
|
|
43
55
|
rowDeleteButton: IconButton;
|
|
44
56
|
tableEditButton: IconButton;
|
|
45
57
|
tableDeleteButton: IconButton;
|
|
58
|
+
rowExpandButton: IconButton;
|
|
59
|
+
rowCollapseButton: IconButton;
|
|
60
|
+
isNestedTableHeaderNeeded: boolean;
|
|
46
61
|
addButton: IconButton;
|
|
47
62
|
defaultColumnSortDirection: SortDirection;
|
|
48
63
|
defaultSortedColumn: string;
|
|
@@ -71,9 +86,13 @@ export declare class DataTableComponent implements OnInit, AfterViewInit, OnDest
|
|
|
71
86
|
searchedValue: EventEmitter<string>;
|
|
72
87
|
sortChange: EventEmitter<Sort>;
|
|
73
88
|
selectedRowsInfo: EventEmitter<TableColumnSchema[]>;
|
|
89
|
+
rowExpansionClick: EventEmitter<any>;
|
|
90
|
+
sort: MatSort;
|
|
74
91
|
displayedColumns: string[];
|
|
92
|
+
nestedTableDisplayedColumns: string[];
|
|
75
93
|
isMobileView: boolean;
|
|
76
94
|
dataSource: MatTableDataSource<any>;
|
|
95
|
+
nestedTableDataSource: MatTableDataSource<any>;
|
|
77
96
|
selectedRows: SelectionModel<TableColumnSchema>;
|
|
78
97
|
pageLimit: number;
|
|
79
98
|
pageOffset: number;
|
|
@@ -82,8 +101,7 @@ export declare class DataTableComponent implements OnInit, AfterViewInit, OnDest
|
|
|
82
101
|
clearAll: any;
|
|
83
102
|
noRecordFound: any;
|
|
84
103
|
destroy$: Subject<boolean>;
|
|
85
|
-
|
|
86
|
-
paginator: MatPaginator;
|
|
104
|
+
showNestedTablePaginationInfo: string;
|
|
87
105
|
constructor(breakpointObserverService: BreakpointObserverService);
|
|
88
106
|
/**
|
|
89
107
|
* Initializes the data table component and sets the table action buttons.
|
|
@@ -170,6 +188,12 @@ export declare class DataTableComponent implements OnInit, AfterViewInit, OnDest
|
|
|
170
188
|
* @memberof DataTableComponent
|
|
171
189
|
*/
|
|
172
190
|
selectedFilterTypeInfo(option: ChipOption): void;
|
|
191
|
+
/**
|
|
192
|
+
* Emits the rowExpansionClick event with the selected row data when the row is expanded.
|
|
193
|
+
* @param {*} row
|
|
194
|
+
* @memberof DataTableComponent
|
|
195
|
+
*/
|
|
196
|
+
onTableRowExpansionClick(row: any): void;
|
|
173
197
|
/**
|
|
174
198
|
* OnSelectedFilterOptions method emits the filteredOptions event with the selected options and adds "Clear all" option to clear the all selections.
|
|
175
199
|
* @param {CheckboxOption[]} options
|
|
@@ -220,5 +244,5 @@ export declare class DataTableComponent implements OnInit, AfterViewInit, OnDest
|
|
|
220
244
|
*/
|
|
221
245
|
ngOnDestroy(): void;
|
|
222
246
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
|
|
223
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "ieeesa-data-table", never, { "tableDataInfo": { "alias": "tableDataInfo"; "required": false; }; "columnSchemaInfo": { "alias": "columnSchemaInfo"; "required": false; }; "tableActions": { "alias": "tableActions"; "required": false; }; "tableRowActions": { "alias": "tableRowActions"; "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; }; "isClearSortNeeded": { "alias": "isClearSortNeeded"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "selectedFilterOptions": { "alias": "selectedFilterOptions"; "required": false; }; "appliedFilterOptions": { "alias": "appliedFilterOptions"; "required": false; }; "searchType": { "alias": "searchType"; "required": false; }; "className": { "alias": "className"; "required": false; }; "inbuiltSortingNeeded": { "alias": "inbuiltSortingNeeded"; "required": false; }; "isCellTextOverflowEllipsis": { "alias": "isCellTextOverflowEllipsis"; "required": false; }; "isTableHeaderNeeded": { "alias": "isTableHeaderNeeded"; "required": false; }; }, { "rowSelected": "rowSelected"; "selectedRowToEdit": "selectedRowToEdit"; "selectedRowToDelete": "selectedRowToDelete"; "selectedRowsToDelete": "selectedRowsToDelete"; "rowLink": "rowLink"; "addRow": "addRow"; "columnDataOnRowLinkClick": "columnDataOnRowLinkClick"; "menuActionClick": "menuActionClick"; "selectActionMenu": "selectActionMenu"; "paginationChange": "paginationChange"; "selectedFilter": "selectedFilter"; "removeFilteredOption": "removeFilteredOption"; "filteredOptions": "filteredOptions"; "searchedValue": "searchedValue"; "sortChange": "sortChange"; "selectedRowsInfo": "selectedRowsInfo"; }, never, never, true, never>;
|
|
247
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "ieeesa-data-table", never, { "tableDataInfo": { "alias": "tableDataInfo"; "required": false; }; "nestedTableDataInfo": { "alias": "nestedTableDataInfo"; "required": false; }; "columnSchemaInfo": { "alias": "columnSchemaInfo"; "required": false; }; "nestedTableColumnSchemaInfo": { "alias": "nestedTableColumnSchemaInfo"; "required": false; }; "tableActions": { "alias": "tableActions"; "required": false; }; "tableRowActions": { "alias": "tableRowActions"; "required": false; }; "nestedTableRowActions": { "alias": "nestedTableRowActions"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "viewAll": { "alias": "viewAll"; "required": false; }; "paginatorConfig": { "alias": "paginatorConfig"; "required": false; }; "nestedPaginatorConfig": { "alias": "nestedPaginatorConfig"; "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; }; "rowExpandButton": { "alias": "rowExpandButton"; "required": false; }; "rowCollapseButton": { "alias": "rowCollapseButton"; "required": false; }; "isNestedTableHeaderNeeded": { "alias": "isNestedTableHeaderNeeded"; "required": false; }; "addButton": { "alias": "addButton"; "required": false; }; "defaultColumnSortDirection": { "alias": "defaultColumnSortDirection"; "required": false; }; "defaultSortedColumn": { "alias": "defaultSortedColumn"; "required": false; }; "isClearSortNeeded": { "alias": "isClearSortNeeded"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "selectedFilterOptions": { "alias": "selectedFilterOptions"; "required": false; }; "appliedFilterOptions": { "alias": "appliedFilterOptions"; "required": false; }; "searchType": { "alias": "searchType"; "required": false; }; "className": { "alias": "className"; "required": false; }; "inbuiltSortingNeeded": { "alias": "inbuiltSortingNeeded"; "required": false; }; "isCellTextOverflowEllipsis": { "alias": "isCellTextOverflowEllipsis"; "required": false; }; "isTableHeaderNeeded": { "alias": "isTableHeaderNeeded"; "required": false; }; }, { "rowSelected": "rowSelected"; "selectedRowToEdit": "selectedRowToEdit"; "selectedRowToDelete": "selectedRowToDelete"; "selectedRowsToDelete": "selectedRowsToDelete"; "rowLink": "rowLink"; "addRow": "addRow"; "columnDataOnRowLinkClick": "columnDataOnRowLinkClick"; "menuActionClick": "menuActionClick"; "selectActionMenu": "selectActionMenu"; "paginationChange": "paginationChange"; "selectedFilter": "selectedFilter"; "removeFilteredOption": "removeFilteredOption"; "filteredOptions": "filteredOptions"; "searchedValue": "searchedValue"; "sortChange": "sortChange"; "selectedRowsInfo": "selectedRowsInfo"; "rowExpansionClick": "rowExpansionClick"; }, never, never, true, never>;
|
|
224
248
|
}
|
package/package.json
CHANGED
|
@@ -82,6 +82,18 @@
|
|
|
82
82
|
"iconURL": "assets/images/sprites/sprites.svg#icon-data-table-row-delete",
|
|
83
83
|
"toolTip": "",
|
|
84
84
|
"ariaLabel": "Delete"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": 6,
|
|
88
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-expand-collapse-arrow-up",
|
|
89
|
+
"toolTip": "",
|
|
90
|
+
"ariaLabel": "Expand"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": 7,
|
|
94
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-expand-collapse-arrow-down",
|
|
95
|
+
"toolTip": "",
|
|
96
|
+
"ariaLabel": "Collapse"
|
|
85
97
|
}
|
|
86
98
|
]
|
|
87
99
|
},
|
|
@@ -228,4 +240,4 @@
|
|
|
228
240
|
"timePicker": {
|
|
229
241
|
"defaultTimeFormat": 12
|
|
230
242
|
}
|
|
231
|
-
}
|
|
243
|
+
}
|