@magic-xpa/angular-material-core 4.1300.0-dev4130.2 → 4.1300.0-dev4130.200
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/fesm2022/magic-xpa-angular-material-core.mjs +151 -35
- package/fesm2022/magic-xpa-angular-material-core.mjs.map +1 -1
- package/package.json +9 -9
- package/types/magic-xpa-angular-material-core.d.ts +392 -0
- package/index.d.ts +0 -12
- package/src/angular-material.module.d.ts +0 -35
- package/src/components/base-mat-table-magic.component.d.ts +0 -46
- package/src/components/editable-combo-component.d.ts +0 -48
- package/src/directives/magic/form-controls/mat-magic-autocomplete.directive.d.ts +0 -10
- package/src/directives/magic/form-controls/mat-magic-checkbox.directive.d.ts +0 -35
- package/src/directives/magic/form-controls/mat-magic-combobox.directive.d.ts +0 -19
- package/src/directives/magic/form-controls/mat-magic-listbox.directive.d.ts +0 -16
- package/src/services/mat.magic.providers.d.ts +0 -41
- package/src/services/mattable.magic.service.d.ts +0 -129
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { SelectionModel } from "@angular/cdk/collections";
|
|
2
|
-
import { TaskMagicService, ComponentListMagicService } from "@magic-xpa/angular";
|
|
3
|
-
import { TableMagicService } from "@magic-xpa/angular";
|
|
4
|
-
import { MatTableDataSource } from '@angular/material/table';
|
|
5
|
-
import { MatPaginator } from '@angular/material/paginator';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Extends the Magic table service to supply functionality for Material Design tables
|
|
9
|
-
*/
|
|
10
|
-
export declare class MgMatTableService extends TableMagicService {
|
|
11
|
-
protected componentList: ComponentListMagicService;
|
|
12
|
-
protected task: TaskMagicService;
|
|
13
|
-
/**
|
|
14
|
-
* Table data source
|
|
15
|
-
*/
|
|
16
|
-
dataSource: MatTableDataSource<Element>;
|
|
17
|
-
/**
|
|
18
|
-
* @ignore
|
|
19
|
-
*/
|
|
20
|
-
get DataSource(): MatTableDataSource<Element>;
|
|
21
|
-
/**
|
|
22
|
-
* @ignore
|
|
23
|
-
*/
|
|
24
|
-
set DataSource(dataSource: MatTableDataSource<Element>);
|
|
25
|
-
/**
|
|
26
|
-
* Provides selection options for the table
|
|
27
|
-
*/
|
|
28
|
-
selection: SelectionModel<Element>;
|
|
29
|
-
/**
|
|
30
|
-
* @ignore
|
|
31
|
-
*/
|
|
32
|
-
get Selection(): SelectionModel<Element>;
|
|
33
|
-
/**
|
|
34
|
-
* @ignore
|
|
35
|
-
*/
|
|
36
|
-
set Selection(selection: SelectionModel<Element>);
|
|
37
|
-
/**
|
|
38
|
-
* Paginator to enable changing pages in the table
|
|
39
|
-
*/
|
|
40
|
-
paginator: MatPaginator;
|
|
41
|
-
/**
|
|
42
|
-
* @ignore
|
|
43
|
-
*/
|
|
44
|
-
get Paginator(): MatPaginator;
|
|
45
|
-
/**
|
|
46
|
-
* @ignore
|
|
47
|
-
*/
|
|
48
|
-
set Paginator(paginator: MatPaginator);
|
|
49
|
-
/**
|
|
50
|
-
* @ignore
|
|
51
|
-
*/
|
|
52
|
-
constructor(componentList: ComponentListMagicService, task: TaskMagicService);
|
|
53
|
-
/**
|
|
54
|
-
* Connects the service to the elements of the table component
|
|
55
|
-
* @param dataSource Table data source
|
|
56
|
-
* @param paginator Table paginator
|
|
57
|
-
* @param selection table SelectionModel
|
|
58
|
-
*/
|
|
59
|
-
connect(dataSource: MatTableDataSource<Element>, paginator: MatPaginator, selection: SelectionModel<Element>): void;
|
|
60
|
-
/**
|
|
61
|
-
* @ignore
|
|
62
|
-
*/
|
|
63
|
-
refreshDataSource(): void;
|
|
64
|
-
/**
|
|
65
|
-
* returns the page size of the table
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
|
-
getPageSize(): number;
|
|
69
|
-
/**
|
|
70
|
-
* Selects a table row
|
|
71
|
-
* @param guiRowid Id of row to be selected
|
|
72
|
-
*/
|
|
73
|
-
selectRow(guiRowid: string): void;
|
|
74
|
-
/**
|
|
75
|
-
* Displays the requested table page
|
|
76
|
-
* @param pageId Id of page to be selected
|
|
77
|
-
*/
|
|
78
|
-
selectPage(pageId: number): void;
|
|
79
|
-
/**
|
|
80
|
-
* Returns the currently seleted row
|
|
81
|
-
* @returns
|
|
82
|
-
*/
|
|
83
|
-
selectedRow(): any;
|
|
84
|
-
/**
|
|
85
|
-
* Handle the paginator's "page" event
|
|
86
|
-
* @param e The event received from the UI
|
|
87
|
-
* @param changeSelectedRow The flag true or false to indicate change the row
|
|
88
|
-
*/
|
|
89
|
-
mgOnPaginateChange(e: any, changeSelectedRow?: boolean): void;
|
|
90
|
-
/**
|
|
91
|
-
* Handle resize and set table top index.
|
|
92
|
-
* @param pageIndex : New page index.
|
|
93
|
-
* @param prevPageIndex : Prev page index
|
|
94
|
-
* @param pageSize : PageSize
|
|
95
|
-
*/
|
|
96
|
-
handleResize(pageIndex: number, prevPageIndex: number, pageSize: number): void;
|
|
97
|
-
/**
|
|
98
|
-
* Execute getRows to fetch required chunk of records.
|
|
99
|
-
* @param pageIndex : New page index.
|
|
100
|
-
* @param prevPageIndex : Prev page index
|
|
101
|
-
* @param pageSize : PageSize
|
|
102
|
-
*/
|
|
103
|
-
getRowsIfNeeded(pageIndex: number, prevPageIndex: number, pageSize: number): void;
|
|
104
|
-
/**
|
|
105
|
-
* Handles the "matSortChange" event
|
|
106
|
-
* @param e The event received from the UI
|
|
107
|
-
*/
|
|
108
|
-
sortData(e: any): void;
|
|
109
|
-
/**
|
|
110
|
-
* Change the number of lines in a table
|
|
111
|
-
* @param size New number of lines in table
|
|
112
|
-
*/
|
|
113
|
-
updateTableSize(size: number): void;
|
|
114
|
-
/**
|
|
115
|
-
* Handle the selection of row and if needed move to respective page.
|
|
116
|
-
* @param guiRowId New number of lines in table
|
|
117
|
-
*/
|
|
118
|
-
protected selectPageForGuiRowId(guiRowId: number): void;
|
|
119
|
-
/**
|
|
120
|
-
* @ignore
|
|
121
|
-
*/
|
|
122
|
-
setTableTopIndex(value: number): void;
|
|
123
|
-
/**
|
|
124
|
-
* @ignore
|
|
125
|
-
*/
|
|
126
|
-
getTableTopIndex(): number;
|
|
127
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MgMatTableService, never>;
|
|
128
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MgMatTableService>;
|
|
129
|
-
}
|