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