@magic-xpa/angular-material-core 4.702.0 → 4.800.0-dev000.0
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 +102 -174
- package/bundles/magic-xpa-angular-material-core.umd.js.map +1 -1
- package/bundles/magic-xpa-angular-material-core.umd.min.js +1 -15
- package/bundles/magic-xpa-angular-material-core.umd.min.js.map +1 -1
- package/esm2015/index.js +2 -1
- package/esm2015/magic-xpa-angular-material-core.js +1 -4
- package/esm2015/src/angular-material.module.js +9 -10
- package/esm2015/src/components/base-mat-table-magic.component.js +4 -16
- package/esm2015/src/directives/magic/form-controls/mat-magic-autocomplete.directive.js +28 -0
- 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 +70 -169
- package/fesm2015/magic-xpa-angular-material-core.js.map +1 -1
- package/index.d.ts +1 -0
- package/magic-xpa-angular-material-core.d.ts +0 -3
- package/package.json +2 -2
- package/src/angular-material.module.d.ts +17 -22
- package/src/components/base-mat-table-magic.component.d.ts +0 -27
- package/src/directives/magic/form-controls/mat-magic-autocomplete.directive.d.ts +7 -0
- 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,30 +5,25 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
import * as i1 from "./directives/magic/form-controls/mat-magic-checkbox.directive";
|
|
6
6
|
import * as i2 from "./directives/magic/form-controls/mat-magic-combobox.directive";
|
|
7
7
|
import * as i3 from "./directives/magic/form-controls/mat-magic-listbox.directive";
|
|
8
|
-
import * as i4 from "./
|
|
9
|
-
import * as i5 from "
|
|
10
|
-
import * as i6 from "@angular/
|
|
11
|
-
import * as i7 from "@angular/
|
|
12
|
-
import * as i8 from "@angular/material/
|
|
13
|
-
import * as i9 from "@angular/material/
|
|
14
|
-
import * as i10 from "@angular/material/
|
|
15
|
-
import * as i11 from "@angular/material/
|
|
16
|
-
import * as i12 from "@angular/material/
|
|
17
|
-
import * as i13 from "@angular/material/
|
|
18
|
-
import * as i14 from "@angular/material/
|
|
19
|
-
import * as i15 from "@angular/material/
|
|
20
|
-
import * as i16 from "@angular/material/
|
|
21
|
-
import * as i17 from "@angular/material/
|
|
22
|
-
import * as i18 from "@
|
|
23
|
-
|
|
24
|
-
* @ignore
|
|
25
|
-
*/
|
|
8
|
+
import * as i4 from "./directives/magic/form-controls/mat-magic-autocomplete.directive";
|
|
9
|
+
import * as i5 from "./components/base-mat-table-magic.component";
|
|
10
|
+
import * as i6 from "@angular/common";
|
|
11
|
+
import * as i7 from "@angular/forms";
|
|
12
|
+
import * as i8 from "@angular/material/table";
|
|
13
|
+
import * as i9 from "@angular/material/paginator";
|
|
14
|
+
import * as i10 from "@angular/material/input";
|
|
15
|
+
import * as i11 from "@angular/material/button";
|
|
16
|
+
import * as i12 from "@angular/material/list";
|
|
17
|
+
import * as i13 from "@angular/material/checkbox";
|
|
18
|
+
import * as i14 from "@angular/material/tabs";
|
|
19
|
+
import * as i15 from "@angular/material/select";
|
|
20
|
+
import * as i16 from "@angular/material/datepicker";
|
|
21
|
+
import * as i17 from "@angular/material/core";
|
|
22
|
+
import * as i18 from "@angular/material/dialog";
|
|
23
|
+
import * as i19 from "@magic-xpa/angular";
|
|
26
24
|
export declare const materialModules: (typeof MatNativeDateModule)[];
|
|
27
|
-
/**
|
|
28
|
-
* @ignore
|
|
29
|
-
*/
|
|
30
25
|
export declare class MagicAngularMaterialModule {
|
|
31
26
|
constructor(componentList: ComponentListMagicService, matdialog: MatDialog);
|
|
32
|
-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MagicAngularMaterialModule, [typeof i1.MatCheckboxDirective, typeof i2.MatComboboxDirective, typeof i3.MatListboxDirective, typeof i4.BaseMatTableMagicComponent], [typeof
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MagicAngularMaterialModule, [typeof i1.MatCheckboxDirective, typeof i2.MatComboboxDirective, typeof i3.MatListboxDirective, typeof i4.MatMagicAutocompleteDirective, typeof i5.BaseMatTableMagicComponent], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.MatTableModule, typeof i9.MatPaginatorModule, typeof i10.MatInputModule, typeof i11.MatButtonModule, typeof i12.MatListModule, typeof i13.MatCheckboxModule, typeof i14.MatTabsModule, typeof i15.MatSelectModule, typeof i16.MatDatepickerModule, typeof i17.MatNativeDateModule, typeof i18.MatDialogModule, typeof i19.MagicModule], [typeof i1.MatCheckboxDirective, typeof i2.MatComboboxDirective, typeof i3.MatListboxDirective, typeof i4.MatMagicAutocompleteDirective, typeof i5.BaseMatTableMagicComponent]>;
|
|
33
28
|
static ɵinj: i0.ɵɵInjectorDef<MagicAngularMaterialModule>;
|
|
34
29
|
}
|
|
@@ -4,44 +4,17 @@ import { MatSort } from '@angular/material/sort';
|
|
|
4
4
|
import { ChangeDetectorRef } from '@angular/core';
|
|
5
5
|
import { MatPaginator } from '@angular/material/paginator';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* This component is the base component for forms which has a material-design table (grid)
|
|
9
|
-
*/
|
|
10
7
|
export declare class BaseMatTableMagicComponent extends TaskBaseMagicComponent {
|
|
11
8
|
dialog: MatDialog;
|
|
12
9
|
protected ref: ChangeDetectorRef;
|
|
13
10
|
magicService: MagicServices;
|
|
14
|
-
/**
|
|
15
|
-
* Paginator to enable changing pages in the table
|
|
16
|
-
*/
|
|
17
11
|
paginator: MatPaginator;
|
|
18
|
-
/**
|
|
19
|
-
* Provides the table sort capabilities
|
|
20
|
-
*/
|
|
21
12
|
sort: MatSort;
|
|
22
|
-
/**
|
|
23
|
-
* List of table columns to be displayed
|
|
24
|
-
*/
|
|
25
13
|
displayedColumns: any;
|
|
26
|
-
/**
|
|
27
|
-
* Table data source
|
|
28
|
-
*/
|
|
29
14
|
dataSource: any;
|
|
30
|
-
/**
|
|
31
|
-
* Provides selection options for the table
|
|
32
|
-
*/
|
|
33
15
|
selection: any;
|
|
34
|
-
/**
|
|
35
|
-
* @ignore
|
|
36
|
-
*/
|
|
37
16
|
constructor(dialog: MatDialog, ref: ChangeDetectorRef, magicService: MagicServices);
|
|
38
|
-
/**
|
|
39
|
-
* Initializer
|
|
40
|
-
*/
|
|
41
17
|
ngOnInit(): void;
|
|
42
|
-
/**
|
|
43
|
-
* AfterContentChecked implementation
|
|
44
|
-
*/
|
|
45
18
|
ngAfterContentChecked(): void;
|
|
46
19
|
static ɵfac: i0.ɵɵFactoryDef<BaseMatTableMagicComponent, never>;
|
|
47
20
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<BaseMatTableMagicComponent, "ng-component", never, {}, {}, never, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MatMagicAutocompleteDirective {
|
|
3
|
+
onOpenedChanged($event: any): void;
|
|
4
|
+
onClosedChanged($event: any): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDef<MatMagicAutocompleteDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<MatMagicAutocompleteDirective, "mat-autocomplete[magic]", never, {}, {}, never>;
|
|
7
|
+
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { CheckboxMagicDirective } from "@magic-xpa/angular";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Directive for material-design checkboxes not on material-design table
|
|
5
|
-
*/
|
|
6
3
|
export declare class MatCheckboxDirective extends CheckboxMagicDirective {
|
|
7
4
|
static ɵfac: i0.ɵɵFactoryDef<MatCheckboxDirective, never>;
|
|
8
5
|
static ɵdir: i0.ɵɵDirectiveDefWithMeta<MatCheckboxDirective, " mat-checkbox[magic]:not([noFormControl]) ", never, {}, {}, never>;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { ComboboxMagicDirective } from "@magic-xpa/angular";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Directive for material-design comboboxes not on material-design table
|
|
5
|
-
*/
|
|
6
3
|
export declare class MatComboboxDirective extends ComboboxMagicDirective {
|
|
7
|
-
/**
|
|
8
|
-
* Handles the "selectionChange" event - pass it to the "change" event handler
|
|
9
|
-
* @param $event
|
|
10
|
-
*/
|
|
11
4
|
onChange($event: any): void;
|
|
12
5
|
onOpenedChanged($event: any): void;
|
|
13
6
|
static ɵfac: i0.ɵɵFactoryDef<MatComboboxDirective, never>;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { MagicDirective } from "@magic-xpa/angular";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Directive for material-design listboxes not on material-design table
|
|
5
|
-
*/
|
|
6
3
|
export declare class MatListboxDirective {
|
|
7
4
|
protected magicDirective: MagicDirective;
|
|
8
5
|
constructor(magicDirective: MagicDirective);
|
|
9
|
-
/**
|
|
10
|
-
* Handles the "selectionChange" event - pass it to the "change" event handler
|
|
11
|
-
* @param $event
|
|
12
|
-
*/
|
|
13
6
|
onChange($event: any): void;
|
|
14
7
|
static ɵfac: i0.ɵɵFactoryDef<MatListboxDirective, never>;
|
|
15
8
|
static ɵdir: i0.ɵɵDirectiveDefWithMeta<MatListboxDirective, "mat-selection-list[magic]", never, {}, {}, never>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { TableMagicService } from "@magic-xpa/angular";
|
|
2
2
|
import { MgMatTableService } from "./mattable.magic.service";
|
|
3
|
-
/**
|
|
4
|
-
* @ignore
|
|
5
|
-
*/
|
|
6
3
|
export declare const matMagicProviders: (typeof import("@magic-xpa/angular").SubformMagicService | typeof import("@magic-xpa/angular").TitleMagicService | typeof import("@magic-xpa/angular").AccessorMagicService | typeof import("@magic-xpa/angular").TaskMagicService | typeof import("@magic-xpa/angular").MagicServices | ({
|
|
7
4
|
provide: typeof import("@angular/material/core").DateAdapter;
|
|
8
5
|
useClass: typeof import("@magic-xpa/angular").MgDateAdapter;
|
|
@@ -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>;
|