@magic-xpa/angular-material-core 4.800.0-dev480.21 → 4.800.0-dev480.210

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.
Files changed (27) hide show
  1. package/bundles/magic-xpa-angular-material-core.umd.js +58 -152
  2. package/bundles/magic-xpa-angular-material-core.umd.js.map +1 -1
  3. package/bundles/magic-xpa-angular-material-core.umd.min.js +2 -2
  4. package/bundles/magic-xpa-angular-material-core.umd.min.js.map +1 -1
  5. package/esm2015/index.js +2 -1
  6. package/esm2015/magic-xpa-angular-material-core.js +1 -4
  7. package/esm2015/src/angular-material.module.js +9 -10
  8. package/esm2015/src/components/base-mat-table-magic.component.js +4 -16
  9. package/esm2015/src/directives/magic/form-controls/mat-magic-autocomplete.directive.js +28 -0
  10. package/esm2015/src/directives/magic/form-controls/mat-magic-checkbox.directive.js +5 -8
  11. package/esm2015/src/directives/magic/form-controls/mat-magic-combobox.directive.js +5 -12
  12. package/esm2015/src/directives/magic/form-controls/mat-magic-listbox.directive.js +4 -11
  13. package/esm2015/src/services/mat.magic.providers.js +1 -4
  14. package/esm2015/src/services/mattable.magic.service.js +5 -94
  15. package/fesm2015/magic-xpa-angular-material-core.js +51 -153
  16. package/fesm2015/magic-xpa-angular-material-core.js.map +1 -1
  17. package/index.d.ts +1 -0
  18. package/magic-xpa-angular-material-core.d.ts +0 -3
  19. package/package.json +2 -2
  20. package/src/angular-material.module.d.ts +17 -22
  21. package/src/components/base-mat-table-magic.component.d.ts +0 -27
  22. package/src/directives/magic/form-controls/mat-magic-autocomplete.directive.d.ts +7 -0
  23. package/src/directives/magic/form-controls/mat-magic-checkbox.directive.d.ts +0 -3
  24. package/src/directives/magic/form-controls/mat-magic-combobox.directive.d.ts +0 -7
  25. package/src/directives/magic/form-controls/mat-magic-listbox.directive.d.ts +0 -7
  26. package/src/services/mat.magic.providers.d.ts +0 -3
  27. package/src/services/mattable.magic.service.d.ts +0 -99
@@ -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>;