@magic-xpa/angular-material-core 4.800.0-dev480.94 → 4.801.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.
Files changed (33) hide show
  1. package/esm2020/index.mjs +9 -0
  2. package/{esm2015/magic-xpa-angular-material-core.js → esm2020/magic-xpa-angular-material-core.mjs} +0 -0
  3. package/esm2020/src/angular-material.module.mjs +90 -0
  4. package/esm2020/src/components/base-mat-table-magic.component.mjs +57 -0
  5. package/esm2020/src/directives/magic/form-controls/mat-magic-autocomplete.directive.mjs +28 -0
  6. package/esm2020/src/directives/magic/form-controls/mat-magic-checkbox.directive.mjs +16 -0
  7. package/{esm2015/src/directives/magic/form-controls/mat-magic-combobox.directive.js → esm2020/src/directives/magic/form-controls/mat-magic-combobox.directive.mjs} +3 -4
  8. package/{esm2015/src/directives/magic/form-controls/mat-magic-listbox.directive.js → esm2020/src/directives/magic/form-controls/mat-magic-listbox.directive.mjs} +2 -2
  9. package/{esm2015/src/services/mat.magic.providers.js → esm2020/src/services/mat.magic.providers.mjs} +0 -0
  10. package/esm2020/src/services/mattable.magic.service.mjs +123 -0
  11. package/fesm2015/magic-xpa-angular-material-core.mjs +370 -0
  12. package/fesm2015/magic-xpa-angular-material-core.mjs.map +1 -0
  13. package/{fesm2015/magic-xpa-angular-material-core.js → fesm2020/magic-xpa-angular-material-core.mjs} +88 -60
  14. package/fesm2020/magic-xpa-angular-material-core.mjs.map +1 -0
  15. package/index.d.ts +1 -0
  16. package/package.json +22 -9
  17. package/src/angular-material.module.d.ts +20 -21
  18. package/src/components/base-mat-table-magic.component.d.ts +2 -2
  19. package/src/directives/magic/form-controls/mat-magic-autocomplete.directive.d.ts +7 -0
  20. package/src/directives/magic/form-controls/mat-magic-checkbox.directive.d.ts +2 -2
  21. package/src/directives/magic/form-controls/mat-magic-combobox.directive.d.ts +2 -2
  22. package/src/directives/magic/form-controls/mat-magic-listbox.directive.d.ts +2 -2
  23. package/src/services/mattable.magic.service.d.ts +2 -2
  24. package/bundles/magic-xpa-angular-material-core.umd.js +0 -654
  25. package/bundles/magic-xpa-angular-material-core.umd.js.map +0 -1
  26. package/bundles/magic-xpa-angular-material-core.umd.min.js +0 -16
  27. package/bundles/magic-xpa-angular-material-core.umd.min.js.map +0 -1
  28. package/esm2015/index.js +0 -8
  29. package/esm2015/src/angular-material.module.js +0 -89
  30. package/esm2015/src/components/base-mat-table-magic.component.js +0 -57
  31. package/esm2015/src/directives/magic/form-controls/mat-magic-checkbox.directive.js +0 -17
  32. package/esm2015/src/services/mattable.magic.service.js +0 -123
  33. package/fesm2015/magic-xpa-angular-material-core.js.map +0 -1
@@ -1,13 +1,16 @@
1
- import { ɵɵdefineDirective, ɵɵInheritDefinitionFeature, ɵɵgetInheritedFactory, ɵsetClassMetadata, Directive, ɵɵlistener, HostListener, ɵɵinject, ɵɵdefineInjectable, Injectable, ɵɵdirectiveInject, ChangeDetectorRef, ɵɵdefineComponent, ɵɵstaticViewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵProvidersFeature, Component, ViewChild, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, HostListener, Injectable, Component, ViewChild, NgModule } from '@angular/core';
2
3
  import { CommonModule } from '@angular/common';
3
4
  import { FormsModule } from '@angular/forms';
4
- import { CheckboxMagicDirective, ComboboxMagicDirective, MagicDirective, TableMagicService, ComponentListMagicService, TaskMagicService, basicMagicProviders, TaskBaseMagicComponent, MagicServices, MagicModule } from '@magic-xpa/angular';
5
- import { MatDialog, MatDialogModule } from '@angular/material/dialog';
5
+ import * as i1 from '@magic-xpa/angular';
6
+ import { CheckboxMagicDirective, ComboboxMagicDirective, MagicDirective, TableMagicService, basicMagicProviders, TaskBaseMagicComponent, MagicModule } from '@magic-xpa/angular';
7
+ import * as i1$1 from '@angular/material/dialog';
8
+ import { MatDialogModule } from '@angular/material/dialog';
6
9
  import { MatSort } from '@angular/material/sort';
7
10
  import { MatTableDataSource, MatTableModule } from '@angular/material/table';
8
11
  import { SelectionModel } from '@angular/cdk/collections';
9
12
  import { getGuiEventObj } from '@magic-xpa/engine';
10
- import { isNullOrUndefined } from 'util';
13
+ import { isNullOrUndefined } from '@magic-xpa/mscorelib';
11
14
  import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
12
15
  import { MatInputModule } from '@angular/material/input';
13
16
  import { MatButtonModule } from '@angular/material/button';
@@ -20,10 +23,9 @@ import { MatNativeDateModule } from '@angular/material/core';
20
23
 
21
24
  class MatCheckboxDirective extends CheckboxMagicDirective {
22
25
  }
23
- MatCheckboxDirective.ɵfac = function MatCheckboxDirective_Factory(t) { return ɵMatCheckboxDirective_BaseFactory(t || MatCheckboxDirective); };
24
- MatCheckboxDirective.ɵdir = ɵɵdefineDirective({ type: MatCheckboxDirective, selectors: [["mat-checkbox", "magic", "", 3, "noFormControl", ""]], features: [ɵɵInheritDefinitionFeature] });
25
- const ɵMatCheckboxDirective_BaseFactory = ɵɵgetInheritedFactory(MatCheckboxDirective);
26
- (function () { ɵsetClassMetadata(MatCheckboxDirective, [{
26
+ MatCheckboxDirective.ɵfac = function () { let ɵMatCheckboxDirective_BaseFactory; return function MatCheckboxDirective_Factory(t) { return (ɵMatCheckboxDirective_BaseFactory || (ɵMatCheckboxDirective_BaseFactory = i0.ɵɵgetInheritedFactory(MatCheckboxDirective)))(t || MatCheckboxDirective); }; }();
27
+ MatCheckboxDirective.ɵdir = i0.ɵɵdefineDirective({ type: MatCheckboxDirective, selectors: [["mat-checkbox", "magic", "", 3, "noFormControl", ""]], features: [i0.ɵɵInheritDefinitionFeature] });
28
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MatCheckboxDirective, [{
27
29
  type: Directive,
28
30
  args: [{
29
31
  selector: `
@@ -40,12 +42,11 @@ class MatComboboxDirective extends ComboboxMagicDirective {
40
42
  MagicDirective.opened = $event;
41
43
  }
42
44
  }
43
- MatComboboxDirective.ɵfac = function MatComboboxDirective_Factory(t) { return ɵMatComboboxDirective_BaseFactory(t || MatComboboxDirective); };
44
- MatComboboxDirective.ɵdir = ɵɵdefineDirective({ type: MatComboboxDirective, selectors: [["mat-select", "magic", ""]], hostBindings: function MatComboboxDirective_HostBindings(rf, ctx) { if (rf & 1) {
45
- ɵɵlistener("selectionChange", function MatComboboxDirective_selectionChange_HostBindingHandler($event) { return ctx.onChange($event); })("openedChange", function MatComboboxDirective_openedChange_HostBindingHandler($event) { return ctx.onOpenedChanged($event); });
46
- } }, features: [ɵɵInheritDefinitionFeature] });
47
- const ɵMatComboboxDirective_BaseFactory = ɵɵgetInheritedFactory(MatComboboxDirective);
48
- (function () { ɵsetClassMetadata(MatComboboxDirective, [{
45
+ MatComboboxDirective.ɵfac = function () { let ɵMatComboboxDirective_BaseFactory; return function MatComboboxDirective_Factory(t) { return (ɵMatComboboxDirective_BaseFactory || (ɵMatComboboxDirective_BaseFactory = i0.ɵɵgetInheritedFactory(MatComboboxDirective)))(t || MatComboboxDirective); }; }();
46
+ MatComboboxDirective.ɵdir = i0.ɵɵdefineDirective({ type: MatComboboxDirective, selectors: [["mat-select", "magic", ""]], hostBindings: function MatComboboxDirective_HostBindings(rf, ctx) { if (rf & 1) {
47
+ i0.ɵɵlistener("selectionChange", function MatComboboxDirective_selectionChange_HostBindingHandler($event) { return ctx.onChange($event); })("openedChange", function MatComboboxDirective_openedChange_HostBindingHandler($event) { return ctx.onOpenedChanged($event); });
48
+ } }, features: [i0.ɵɵInheritDefinitionFeature] });
49
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MatComboboxDirective, [{
49
50
  type: Directive,
50
51
  args: [{
51
52
  selector: `mat-select[magic]`,
@@ -168,11 +169,11 @@ class MgMatTableService extends TableMagicService {
168
169
  return this.task.Records.getGuiTopIndex();
169
170
  }
170
171
  }
171
- MgMatTableService.ɵfac = function MgMatTableService_Factory(t) { return new (t || MgMatTableService)(ɵɵinject(ComponentListMagicService), ɵɵinject(TaskMagicService)); };
172
- MgMatTableService.ɵprov = ɵɵdefineInjectable({ token: MgMatTableService, factory: MgMatTableService.ɵfac });
173
- (function () { ɵsetClassMetadata(MgMatTableService, [{
172
+ MgMatTableService.ɵfac = function MgMatTableService_Factory(t) { return new (t || MgMatTableService)(i0.ɵɵinject(i1.ComponentListMagicService), i0.ɵɵinject(i1.TaskMagicService)); };
173
+ MgMatTableService.ɵprov = i0.ɵɵdefineInjectable({ token: MgMatTableService, factory: MgMatTableService.ɵfac });
174
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MgMatTableService, [{
174
175
  type: Injectable
175
- }], function () { return [{ type: ComponentListMagicService }, { type: TaskMagicService }]; }, null); })();
176
+ }], function () { return [{ type: i1.ComponentListMagicService }, { type: i1.TaskMagicService }]; }, null); })();
176
177
 
177
178
  const matMagicProviders = [
178
179
  ...basicMagicProviders,
@@ -201,22 +202,22 @@ class BaseMatTableMagicComponent extends TaskBaseMagicComponent {
201
202
  }
202
203
  }
203
204
  }
204
- BaseMatTableMagicComponent.ɵfac = function BaseMatTableMagicComponent_Factory(t) { return new (t || BaseMatTableMagicComponent)(ɵɵdirectiveInject(MatDialog), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(MagicServices)); };
205
- BaseMatTableMagicComponent.ɵcmp = ɵɵdefineComponent({ type: BaseMatTableMagicComponent, selectors: [["ng-component"]], viewQuery: function BaseMatTableMagicComponent_Query(rf, ctx) { if (rf & 1) {
206
- ɵɵstaticViewQuery(MatPaginator, true);
207
- ɵɵstaticViewQuery(MatSort, true);
205
+ BaseMatTableMagicComponent.ɵfac = function BaseMatTableMagicComponent_Factory(t) { return new (t || BaseMatTableMagicComponent)(i0.ɵɵdirectiveInject(i1$1.MatDialog), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.MagicServices)); };
206
+ BaseMatTableMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseMatTableMagicComponent, selectors: [["ng-component"]], viewQuery: function BaseMatTableMagicComponent_Query(rf, ctx) { if (rf & 1) {
207
+ i0.ɵɵviewQuery(MatPaginator, 7);
208
+ i0.ɵɵviewQuery(MatSort, 7);
208
209
  } if (rf & 2) {
209
- var _t;
210
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.paginator = _t.first);
211
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.sort = _t.first);
212
- } }, features: [ɵɵProvidersFeature(matMagicProviders), ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function BaseMatTableMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
213
- (function () { ɵsetClassMetadata(BaseMatTableMagicComponent, [{
210
+ let _t;
211
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paginator = _t.first);
212
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sort = _t.first);
213
+ } }, features: [i0.ɵɵProvidersFeature(matMagicProviders), i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function BaseMatTableMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
214
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMatTableMagicComponent, [{
214
215
  type: Component,
215
216
  args: [{
216
217
  providers: matMagicProviders,
217
218
  template: ''
218
219
  }]
219
- }], function () { return [{ type: MatDialog }, { type: ChangeDetectorRef }, { type: MagicServices }]; }, { paginator: [{
220
+ }], function () { return [{ type: i1$1.MatDialog }, { type: i0.ChangeDetectorRef }, { type: i1.MagicServices }]; }, { paginator: [{
220
221
  type: ViewChild,
221
222
  args: [MatPaginator, { static: true }]
222
223
  }], sort: [{
@@ -232,20 +233,45 @@ class MatListboxDirective {
232
233
  this.magicDirective.task.onListBoxSelectionChanged($event, this.magicDirective.id);
233
234
  }
234
235
  }
235
- MatListboxDirective.ɵfac = function MatListboxDirective_Factory(t) { return new (t || MatListboxDirective)(ɵɵdirectiveInject(MagicDirective)); };
236
- MatListboxDirective.ɵdir = ɵɵdefineDirective({ type: MatListboxDirective, selectors: [["mat-selection-list", "magic", ""]], hostBindings: function MatListboxDirective_HostBindings(rf, ctx) { if (rf & 1) {
237
- ɵɵlistener("selectionChange", function MatListboxDirective_selectionChange_HostBindingHandler($event) { return ctx.onChange($event); });
236
+ MatListboxDirective.ɵfac = function MatListboxDirective_Factory(t) { return new (t || MatListboxDirective)(i0.ɵɵdirectiveInject(i1.MagicDirective)); };
237
+ MatListboxDirective.ɵdir = i0.ɵɵdefineDirective({ type: MatListboxDirective, selectors: [["mat-selection-list", "magic", ""]], hostBindings: function MatListboxDirective_HostBindings(rf, ctx) { if (rf & 1) {
238
+ i0.ɵɵlistener("selectionChange", function MatListboxDirective_selectionChange_HostBindingHandler($event) { return ctx.onChange($event); });
238
239
  } } });
239
- (function () { ɵsetClassMetadata(MatListboxDirective, [{
240
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MatListboxDirective, [{
240
241
  type: Directive,
241
242
  args: [{
242
243
  selector: `mat-selection-list[magic]`,
243
244
  }]
244
- }], function () { return [{ type: MagicDirective }]; }, { onChange: [{
245
+ }], function () { return [{ type: i1.MagicDirective }]; }, { onChange: [{
245
246
  type: HostListener,
246
247
  args: ['selectionChange', ['$event']]
247
248
  }] }); })();
248
249
 
250
+ class MatMagicAutocompleteDirective {
251
+ onOpenedChanged($event) {
252
+ MagicDirective.noOfAutoCompleteBoxesOpened++;
253
+ }
254
+ onClosedChanged($event) {
255
+ MagicDirective.noOfAutoCompleteBoxesOpened--;
256
+ }
257
+ }
258
+ MatMagicAutocompleteDirective.ɵfac = function MatMagicAutocompleteDirective_Factory(t) { return new (t || MatMagicAutocompleteDirective)(); };
259
+ MatMagicAutocompleteDirective.ɵdir = i0.ɵɵdefineDirective({ type: MatMagicAutocompleteDirective, selectors: [["mat-autocomplete", "magic", ""]], hostBindings: function MatMagicAutocompleteDirective_HostBindings(rf, ctx) { if (rf & 1) {
260
+ i0.ɵɵlistener("opened", function MatMagicAutocompleteDirective_opened_HostBindingHandler($event) { return ctx.onOpenedChanged($event); })("closed", function MatMagicAutocompleteDirective_closed_HostBindingHandler($event) { return ctx.onClosedChanged($event); });
261
+ } } });
262
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MatMagicAutocompleteDirective, [{
263
+ type: Directive,
264
+ args: [{
265
+ selector: 'mat-autocomplete[magic]'
266
+ }]
267
+ }], null, { onOpenedChanged: [{
268
+ type: HostListener,
269
+ args: ['opened', ['$event']]
270
+ }], onClosedChanged: [{
271
+ type: HostListener,
272
+ args: ['closed', ['$event']]
273
+ }] }); })();
274
+
249
275
  const materialModules = [
250
276
  MatTableModule,
251
277
  MatPaginatorModule,
@@ -260,48 +286,30 @@ const materialModules = [
260
286
  MatDialogModule
261
287
  ];
262
288
  class MagicAngularMaterialModule {
263
- constructor(componentList, matdialog) {
264
- componentList.dialogs.set('MatDialog', matdialog);
265
- }
266
289
  }
267
- MagicAngularMaterialModule.ɵmod = ɵɵdefineNgModule({ type: MagicAngularMaterialModule });
268
- MagicAngularMaterialModule.ɵinj = ɵɵdefineInjector({ factory: function MagicAngularMaterialModule_Factory(t) { return new (t || MagicAngularMaterialModule)(ɵɵinject(ComponentListMagicService), ɵɵinject(MatDialog)); }, imports: [[
290
+ MagicAngularMaterialModule.ɵfac = function MagicAngularMaterialModule_Factory(t) { return new (t || MagicAngularMaterialModule)(); };
291
+ MagicAngularMaterialModule.ɵmod = i0.ɵɵdefineNgModule({ type: MagicAngularMaterialModule });
292
+ MagicAngularMaterialModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
269
293
  CommonModule,
270
294
  FormsModule,
271
295
  ...materialModules,
272
296
  MagicModule
273
297
  ]] });
274
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(MagicAngularMaterialModule, { declarations: [MatCheckboxDirective,
275
- MatComboboxDirective,
276
- MatListboxDirective,
277
- BaseMatTableMagicComponent], imports: [CommonModule,
278
- FormsModule, MatTableModule,
279
- MatPaginatorModule,
280
- MatInputModule,
281
- MatButtonModule,
282
- MatListModule,
283
- MatCheckboxModule,
284
- MatTabsModule,
285
- MatSelectModule,
286
- MatDatepickerModule,
287
- MatNativeDateModule,
288
- MatDialogModule, MagicModule], exports: [MatCheckboxDirective,
289
- MatComboboxDirective,
290
- MatListboxDirective,
291
- BaseMatTableMagicComponent] }); })();
292
- (function () { ɵsetClassMetadata(MagicAngularMaterialModule, [{
298
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicAngularMaterialModule, [{
293
299
  type: NgModule,
294
300
  args: [{
295
301
  declarations: [
296
302
  MatCheckboxDirective,
297
303
  MatComboboxDirective,
298
304
  MatListboxDirective,
305
+ MatMagicAutocompleteDirective,
299
306
  BaseMatTableMagicComponent,
300
307
  ],
301
308
  exports: [
302
309
  MatCheckboxDirective,
303
310
  MatComboboxDirective,
304
311
  MatListboxDirective,
312
+ MatMagicAutocompleteDirective,
305
313
  BaseMatTableMagicComponent
306
314
  ],
307
315
  imports: [
@@ -311,7 +319,27 @@ MagicAngularMaterialModule.ɵinj = ɵɵdefineInjector({ factory: function MagicA
311
319
  MagicModule
312
320
  ]
313
321
  }]
314
- }], function () { return [{ type: ComponentListMagicService }, { type: MatDialog }]; }, null); })();
322
+ }], null, null); })();
323
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MagicAngularMaterialModule, { declarations: [MatCheckboxDirective,
324
+ MatComboboxDirective,
325
+ MatListboxDirective,
326
+ MatMagicAutocompleteDirective,
327
+ BaseMatTableMagicComponent], imports: [CommonModule,
328
+ FormsModule, MatTableModule,
329
+ MatPaginatorModule,
330
+ MatInputModule,
331
+ MatButtonModule,
332
+ MatListModule,
333
+ MatCheckboxModule,
334
+ MatTabsModule,
335
+ MatSelectModule,
336
+ MatDatepickerModule,
337
+ MatNativeDateModule,
338
+ MatDialogModule, MagicModule], exports: [MatCheckboxDirective,
339
+ MatComboboxDirective,
340
+ MatListboxDirective,
341
+ MatMagicAutocompleteDirective,
342
+ BaseMatTableMagicComponent] }); })();
315
343
 
316
- export { BaseMatTableMagicComponent, MagicAngularMaterialModule, MatCheckboxDirective, MatComboboxDirective, MatListboxDirective, MgMatTableService, matMagicProviders, materialModules };
317
- //# sourceMappingURL=magic-xpa-angular-material-core.js.map
344
+ export { BaseMatTableMagicComponent, MagicAngularMaterialModule, MatCheckboxDirective, MatComboboxDirective, MatListboxDirective, MatMagicAutocompleteDirective, MgMatTableService, matMagicProviders, materialModules };
345
+ //# sourceMappingURL=magic-xpa-angular-material-core.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"magic-xpa-angular-material-core.mjs","sources":["../../../../projects/angular-material-core/src/directives/magic/form-controls/mat-magic-checkbox.directive.ts","../../../../projects/angular-material-core/src/directives/magic/form-controls/mat-magic-combobox.directive.ts","../../../../projects/angular-material-core/src/services/mattable.magic.service.ts","../../../../projects/angular-material-core/src/services/mat.magic.providers.ts","../../../../projects/angular-material-core/src/components/base-mat-table-magic.component.ts","../../../../projects/angular-material-core/src/directives/magic/form-controls/mat-magic-listbox.directive.ts","../../../../projects/angular-material-core/src/directives/magic/form-controls/mat-magic-autocomplete.directive.ts","../../../../projects/angular-material-core/src/angular-material.module.ts"],"sourcesContent":["import { Directive } from \"@angular/core\";\r\nimport { CheckboxMagicDirective } from \"@magic-xpa/angular\";\r\n\r\n\r\n/**\r\n * Directive for material-design checkboxes not on material-design table\r\n */\r\n@Directive({\r\n selector:\r\n `\r\n mat-checkbox[magic]:not([noFormControl])\r\n `,\r\n})\r\nexport class MatCheckboxDirective extends CheckboxMagicDirective {\r\n\r\n\r\n}\r\n","import { Directive, HostListener } from \"@angular/core\";\r\nimport {ComboboxMagicDirective, MagicDirective} from \"@magic-xpa/angular\";\r\n\r\n\r\n/**\r\n * Directive for material-design comboboxes not on material-design table\r\n */\r\n@Directive({\r\n selector:\r\n `mat-select[magic]`,\r\n})\r\nexport class MatComboboxDirective extends ComboboxMagicDirective {\r\n\r\n /**\r\n * Handles the \"selectionChange\" event - pass it to the \"change\" event handler\r\n * @param $event\r\n */\r\n @HostListener('selectionChange', ['$event'])\r\n onChange($event) {\r\n super.onChange($event);\r\n }\r\n\r\n @HostListener('openedChange', ['$event'])\r\n onOpenedChanged($event) {\r\n MagicDirective.opened = $event;\r\n }\r\n\r\n}\r\n","\nimport { Injectable } from '@angular/core';\nimport { SelectionModel } from \"@angular/cdk/collections\";\n\nimport { TaskMagicService, ComponentListMagicService, ControlsMetadata } from \"@magic-xpa/angular\";\nimport {IGuiEvent, getGuiEventObj} from \"@magic-xpa/engine\";\nimport { TableMagicService } from \"@magic-xpa/angular\";\nimport {isNullOrUndefined} from \"@magic-xpa/mscorelib\";\nimport { MatTableDataSource } from '@angular/material/table';\nimport { MatDialog } from '@angular/material/dialog';\nimport { MatPaginator } from '@angular/material/paginator';\n\n\n/**\n * Extends the Magic table service to supply functionality for Material Design tables\n */\n@Injectable()\nexport class MgMatTableService extends TableMagicService {\n /**\n * Table data source\n */\n dataSource: MatTableDataSource<Element>;\n /**\n * Dialog used for editing values\n */\n dialog: MatDialog;\n /**\n * @ignore\n */\n get DataSource(): MatTableDataSource<Element> {\n return this.dataSource;\n }\n\n /**\n * @ignore\n */\n set DataSource(dataSource: MatTableDataSource<Element>) {\n this.dataSource = dataSource;\n }\n\n /**\n * Provides selection options for the table\n */\n selection: SelectionModel<Element>;\n\n /**\n * @ignore\n */\n get Selection(): SelectionModel<Element> {\n return this.selection;\n }\n\n /**\n * @ignore\n */\n set Selection(selection: SelectionModel<Element>) {\n this.selection = selection;\n }\n\n /**\n * Paginator to enable changing pages in the table\n */\n paginator: MatPaginator;\n\n /**\n * @ignore\n */\n get Paginator(): MatPaginator {\n return this.paginator;\n }\n\n /**\n * @ignore\n */\n set Paginator(paginator: MatPaginator) {\n this.paginator = paginator;\n }\n\n /**\n * @ignore\n */\n constructor(protected componentList: ComponentListMagicService, protected task: TaskMagicService ) {\n super(componentList, task);\n }\n\n /**\n * Connects the service to the elements of the table component\n * @param dataSource Table data source\n * @param paginator Table paginator\n * @param selection table SelectionModel\n * @param dialog Dialog used for editing values\n */\n connect(dataSource: MatTableDataSource<Element> , paginator: MatPaginator, selection: SelectionModel<Element>, dialog: MatDialog) {\n this.dataSource = dataSource;\n this.paginator = paginator;\n this.selection = selection;\n this.dialog = dialog;\n }\n\n /**\n * @ignore\n */\n refreshDataSource() {\n if (!isNullOrUndefined(this.paginator))\n this.dataSource.paginator = this.paginator;\n\n this.dataSource.data = (this.task.mgAccessorService.isDataviewEmpty() ? [] : this.task.Records.list);\n }\n\n /**\n * returns the page size of the table\n * @returns\n */\n getPageSize(): number {\n if (isNullOrUndefined(this.paginator))\n return super.getPageSize();\n return this.paginator.pageSize;\n }\n\n /**\n * Selects a table row\n * @param guiRowid Id of row to be selected\n */\n selectRow(guiRowid: string): void {\n super.selectRow(guiRowid);\n this.selection.select(this.task.Records.list[guiRowid]);\n this.refreshDataSource();\n }\n\n /**\n * @ignore\n */\n getDialog(): any {\n return this.dialog;\n }\n\n /**\n * Displays the requested table page\n * @param pageId Id of page to be selected\n */\n selectPage(pageId: number): void {\n if (!isNullOrUndefined(this.paginator))\n this.paginator.pageIndex = pageId;\n\n this.refreshDataSource();\n }\n\n /**\n * Returns the currently seleted row\n * @returns\n */\n selectedRow(): any {\n return this.selection.selected[0];\n }\n\n /**\n * Handle the paginator's \"page\" event\n * @param e The event received from the UI\n */\n mgOnPaginateChange(e)\n {\n if (this.task.oldPageSize != e.pageSize) {\n this.handleResize(e.pageIndex, e.previousPageIndex, e.pageSize);\n this.task.oldPageSize = e.pageSize;\n }\n else\n this.getRowsIfNeeded(e.pageIndex, e.previousPageIndex, e.pageSize);\n }\n\n /**\n * Handle resize and set table top index.\n * @param pageIndex : New page index.\n * @param prevPageIndex : Prev page index\n * @param pageSize : PageSize\n */\n handleResize(pageIndex: number, prevPageIndex: number, pageSize: number): void {\n let requiredGuiRowId = pageIndex * pageSize;\n this.task.resize(pageSize, requiredGuiRowId);\n }\n\n /**\n * Execute getRows to fetch required chunk of records.\n * @param pageIndex : New page index.\n * @param prevPageIndex : Prev page index\n * @param pageSize : PageSize\n */\n getRowsIfNeeded(pageIndex: number, prevPageIndex: number, pageSize: number): void {\n let guiEvent: IGuiEvent = getGuiEventObj(\"getRows\", \"table\", 0);\n guiEvent.Line = pageIndex * pageSize;\n this.task.insertEvent(guiEvent);\n this.setTableTopIndex(this.task.getDvRowId(pageSize * pageIndex));\n }\n\n /**\n * Handles the \"matSortChange\" event\n * @param e The event received from the UI\n */\n sortData(e) {\n let direction: number = 0;\n if (e.direction === 'asc')\n direction = 0;\n else if (e.direction === 'desc')\n direction = 1;\n\n let guiEvent: IGuiEvent = getGuiEventObj(\"columnSort\", e.active, direction);\n this.task.insertEvent(guiEvent);\n }\n\n /**\n * Change the number of lines in a table\n * @param size New number of lines in table\n */\n updateTableSize(size: number) {\n if (size === 0) // never remove row 0 for now\n {\n size = 1;\n this.task.Records.clearFirstTableRecord(this.task.template);\n }\n\n else if (isNullOrUndefined(this.paginator))\n size = this.getPageSize();\n\n this.task.formGroups.length = size;\n this.task.Records.updateSize(size);\n this.task.setIncludesFirst(false);\n }\n\n /**\n * Handle the selection of row and if needed move to respective page.\n * @param guiRowId New number of lines in table\n */\n protected selectPageForGuiRowId(guiRowId: number): void {\n let pageToBeSelected: number = 0;\n let prevSelectedRow: ControlsMetadata = <ControlsMetadata>this.selectedRow();\n\n pageToBeSelected = Math.floor(guiRowId / this.getPageSize());\n\n // Explicitly handle selection of page when it's not raised by using pagination\n if ((isNullOrUndefined(prevSelectedRow) || (!isNullOrUndefined(this.paginator) && pageToBeSelected != this.paginator.pageIndex)))\n this.selectPage(pageToBeSelected);\n }\n\n /**\n * @ignore\n */\n setTableTopIndex(value: number) {\n this.task.Records.setGuiTopIndex(value);\n\n if (value >= 0)\n this.selectPageForGuiRowId(this.task.getGuiRowId(value, true));\n }\n\n /**\n * @ignore\n */\n getTableTopIndex():number\n {\n return this.task.Records.getGuiTopIndex();\n }\n}\n\n","\r\nimport { basicMagicProviders, TableMagicService} from \"@magic-xpa/angular\";\r\n\r\nimport { MgMatTableService } from \"./mattable.magic.service\";\r\n\r\n\r\n/**\r\n * @ignore\r\n */\r\nexport const matMagicProviders = [\r\n ...basicMagicProviders, // - created error Exported variable 'matMagicProviders' has or is using name 'MagicServices' from external module \"D:/magicxpaproject/_Trunk/Sources/Webclient/dist/angular/src/services/magic.services\" but cannot be named.\r\n { provide: TableMagicService, useClass: MgMatTableService }\r\n];\r\n\r\n","import { MagicServices, TaskBaseMagicComponent } from '@magic-xpa/angular';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { MatSort } from '@angular/material/sort';\r\nimport { MatTableDataSource } from '@angular/material/table';\r\nimport { SelectionModel } from '@angular/cdk/collections';\r\nimport { ChangeDetectorRef, Component, ViewChild } from '@angular/core';\r\nimport { MgMatTableService } from '../services/mattable.magic.service';\r\nimport { matMagicProviders } from '../services/mat.magic.providers';\r\nimport { MatPaginator } from '@angular/material/paginator';\r\nimport { isNullOrUndefined } from '@magic-xpa/mscorelib';\r\n\r\n/**\r\n * This component is the base component for forms which has a material-design table (grid)\r\n */\r\n@Component({\r\n providers: matMagicProviders,\r\n template: ''\r\n\r\n})\r\n export class BaseMatTableMagicComponent extends TaskBaseMagicComponent {\r\n\r\n /**\r\n * Paginator to enable changing pages in the table\r\n */\r\n @ViewChild(MatPaginator, {static:true}) paginator: MatPaginator;\r\n\r\n /**\r\n * Provides the table sort capabilities\r\n */\r\n @ViewChild(MatSort, {static:true}) sort: MatSort;\r\n\r\n /**\r\n * List of table columns to be displayed\r\n */\r\n displayedColumns;\r\n\r\n /**\r\n * Table data source\r\n */\r\n dataSource;\r\n\r\n /**\r\n * Provides selection options for the table\r\n */\r\n selection;\r\n\r\n\r\n /**\r\n * @ignore\r\n */\r\n constructor(\r\n public dialog: MatDialog,\r\n protected ref: ChangeDetectorRef,\r\n public magicService: MagicServices,\r\n ) {\r\n\r\n super(ref, magicService);\r\n\r\n this.displayedColumns = [];\r\n this.dataSource = new MatTableDataSource < Element > (this.task.Records.list);\r\n this.selection = new SelectionModel < Element > (false, []);\r\n }\r\n\r\n /**\r\n * Initializer\r\n */\r\n ngOnInit() {\r\n super.ngOnInit();\r\n (this.magicService.tableService as MgMatTableService).connect(this.dataSource, this.paginator, this.selection, this.dialog);\r\n }\r\n\r\n /**\r\n * AfterContentChecked implementation\r\n */\r\n ngAfterContentChecked() {\r\n if (!isNullOrUndefined(this.paginator) && !isNullOrUndefined(this.paginator.pageSize) &&\r\n this.paginator.pageSize != this.task.oldPageSize) {\r\n (this.magicService.tableService as MgMatTableService).handleResize(this.paginator.pageIndex, 0, this.paginator.pageSize);\r\n this.task.oldPageSize = this.paginator.pageSize;\r\n }\r\n }\r\n}\r\n","import { Directive, HostListener } from \"@angular/core\";\r\nimport { MagicDirective } from \"@magic-xpa/angular\";\r\n\r\n\r\n/**\r\n * Directive for material-design listboxes not on material-design table\r\n */\r\n@Directive({\r\n selector:\r\n `mat-selection-list[magic]`,\r\n})\r\nexport class MatListboxDirective{\r\n\r\n constructor(protected magicDirective: MagicDirective) {\r\n }\r\n\r\n /**\r\n * Handles the \"selectionChange\" event - pass it to the \"change\" event handler\r\n * @param $event\r\n */\r\n @HostListener('selectionChange', ['$event'])\r\n onChange($event) {\r\n this.magicDirective.task.onListBoxSelectionChanged($event, this.magicDirective.id);\r\n }\r\n}\r\n","import { Directive, HostListener } from '@angular/core';\r\nimport { MagicDirective } from '@magic-xpa/angular';\r\n\r\n/**\r\n * Directive for material-design autocomplete not on material-design table\r\n */\r\n@Directive({\r\n selector:\r\n 'mat-autocomplete[magic]'\r\n})\r\nexport class MatMagicAutocompleteDirective {\r\n\r\n @HostListener('opened', ['$event'])\r\n onOpenedChanged($event) {\r\n MagicDirective.noOfAutoCompleteBoxesOpened++;\r\n }\r\n\r\n @HostListener('closed', ['$event'])\r\n onClosedChanged($event) {\r\n MagicDirective.noOfAutoCompleteBoxesOpened--;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatCheckboxDirective } from './directives/magic/form-controls/mat-magic-checkbox.directive';\r\nimport { MatComboboxDirective } from './directives/magic/form-controls/mat-magic-combobox.directive';\r\nimport { BaseMatTableMagicComponent } from './components/base-mat-table-magic.component';\r\nimport { MatListboxDirective } from './directives/magic/form-controls/mat-magic-listbox.directive';\r\nimport { MatTableModule } from '@angular/material/table';\r\nimport { MatPaginatorModule } from '@angular/material/paginator';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatTabsModule } from '@angular/material/tabs';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { MatNativeDateModule } from '@angular/material/core';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MagicModule } from '@magic-xpa/angular';\r\nimport { MatMagicAutocompleteDirective } from './directives/magic/form-controls/mat-magic-autocomplete.directive';\r\n\r\n\r\n/**\r\n * @ignore\r\n */\r\nexport const materialModules = [\r\n MatTableModule,\r\n MatPaginatorModule,\r\n MatInputModule,\r\n MatButtonModule,\r\n MatListModule,\r\n MatCheckboxModule,\r\n MatTabsModule,\r\n MatSelectModule,\r\n MatDatepickerModule,\r\n MatNativeDateModule,\r\n MatDialogModule\r\n];\r\n\r\n/**\r\n * @ignore\r\n */\r\n@NgModule({\r\n declarations: [\r\n MatCheckboxDirective,\r\n MatComboboxDirective,\r\n MatListboxDirective,\r\n MatMagicAutocompleteDirective,\r\n BaseMatTableMagicComponent,\r\n ],\r\n exports: [\r\n MatCheckboxDirective,\r\n MatComboboxDirective,\r\n MatListboxDirective,\r\n MatMagicAutocompleteDirective,\r\n BaseMatTableMagicComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ...materialModules,\r\n MagicModule\r\n ]\r\n})\r\nexport class MagicAngularMaterialModule {\r\n\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MAaa,oBAAqB,SAAQ,sBAAsB;;8OAAnD,oBAAoB,SAApB,oBAAoB;yDAApB,oBAAoB;uFAApB,oBAAoB;cANhC,SAAS;eAAC;gBACT,QAAQ,EACN;;KAEC;aACJ;;;MCDY,oBAAqB,SAAQ,sBAAsB;IAO9D,QAAQ,CAAC,MAAM;QACb,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;KACxB;IAGD,eAAe,CAAC,MAAM;QACpB,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC;KAChC;;8OAdU,oBAAoB,SAApB,oBAAoB;yDAApB,oBAAoB;2HAApB,oBAAgB,oGAAhB,2BAAuB;;uFAAvB,oBAAoB;cAJhC,SAAS;eAAC;gBACT,QAAQ,EACN,mBAAmB;aACtB;gBAQC,QAAQ;kBADP,YAAY;mBAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC;YAM3C,eAAe;kBADd,YAAY;mBAAC,cAAc,EAAE,CAAC,QAAQ,CAAC;;;MCL7B,iBAAkB,SAAQ,iBAAiB;IAgEtD,YAAsB,aAAwC,EAAY,IAAsB;QAC9F,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QADP,kBAAa,GAAb,aAAa,CAA2B;QAAY,SAAI,GAAJ,IAAI,CAAkB;KAE/F;IAtDD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IAKD,IAAI,UAAU,CAAC,UAAuC;QACpD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;K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;QACf,aAAa;QACb,iBAAiB;QACjB,aAAa;QACb,eAAe;QACf,mBAAmB;QACnB,mBAAmB;QACnB,eAAe,EAyBb,WAAW,aAVX,oBAAoB;QACpB,oBAAoB;QACpB,mBAAmB;QACnB,6BAA6B;QAC7B,0BAA0B;;;;"}
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./src/angular-material.module";
2
2
  export * from "./src/components/base-mat-table-magic.component";
3
+ export * from "./src/directives/magic/form-controls/mat-magic-autocomplete.directive";
3
4
  export * from "./src/directives/magic/form-controls/mat-magic-checkbox.directive";
4
5
  export * from "./src/directives/magic/form-controls/mat-magic-combobox.directive";
5
6
  export * from "./src/directives/magic/form-controls/mat-magic-listbox.directive";
package/package.json CHANGED
@@ -1,25 +1,38 @@
1
1
  {
2
2
  "name": "@magic-xpa/angular-material-core",
3
- "version": "4.800.0-dev480.94",
3
+ "version": "4.801.0-dev000.0",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "peerDependencies": {
6
6
  "@angular/core": "^10.2.3",
7
7
  "@angular/common": "^10.2.3",
8
8
  "@angular/forms": "^10.2.3",
9
9
  "@angular/material": "^10.2.7",
10
- "@magic-xpa/angular": "4.800.0-dev480.94"
10
+ "@magic-xpa/angular": "4.801.0-dev000.0"
11
11
  },
12
- "main": "bundles/magic-xpa-angular-material-core.umd.js",
13
- "module": "fesm2015/magic-xpa-angular-material-core.js",
14
- "es2015": "fesm2015/magic-xpa-angular-material-core.js",
15
- "esm2015": "esm2015/magic-xpa-angular-material-core.js",
16
- "fesm2015": "fesm2015/magic-xpa-angular-material-core.js",
12
+ "module": "fesm2015/magic-xpa-angular-material-core.mjs",
13
+ "es2020": "fesm2020/magic-xpa-angular-material-core.mjs",
14
+ "esm2020": "esm2020/magic-xpa-angular-material-core.mjs",
15
+ "fesm2020": "fesm2020/magic-xpa-angular-material-core.mjs",
16
+ "fesm2015": "fesm2015/magic-xpa-angular-material-core.mjs",
17
17
  "typings": "magic-xpa-angular-material-core.d.ts",
18
+ "exports": {
19
+ "./package.json": {
20
+ "default": "./package.json"
21
+ },
22
+ ".": {
23
+ "types": "./magic-xpa-angular-material-core.d.ts",
24
+ "esm2020": "./esm2020/magic-xpa-angular-material-core.mjs",
25
+ "es2020": "./fesm2020/magic-xpa-angular-material-core.mjs",
26
+ "es2015": "./fesm2015/magic-xpa-angular-material-core.mjs",
27
+ "node": "./fesm2015/magic-xpa-angular-material-core.mjs",
28
+ "default": "./fesm2020/magic-xpa-angular-material-core.mjs"
29
+ }
30
+ },
18
31
  "sideEffects": false,
19
32
  "dependencies": {
20
- "tslib": "^2.0.0"
33
+ "tslib": "^2.3.0"
21
34
  },
22
35
  "scripts": {
23
- "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\\n')\" && exit 1"
36
+ "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy in full compilation mode. This is not allowed.\\nPlease delete and rebuild the package with Ivy partial compilation mode, before attempting to publish.\\n')\" && exit 1"
24
37
  }
25
38
  }
@@ -1,28 +1,27 @@
1
- import { MatNativeDateModule } from "@angular/material/core";
2
- import { MatDialog } from '@angular/material/dialog';
3
- import { ComponentListMagicService } from '@magic-xpa/angular';
1
+ import { MatNativeDateModule } from '@angular/material/core';
4
2
  import * as i0 from "@angular/core";
5
3
  import * as i1 from "./directives/magic/form-controls/mat-magic-checkbox.directive";
6
4
  import * as i2 from "./directives/magic/form-controls/mat-magic-combobox.directive";
7
5
  import * as i3 from "./directives/magic/form-controls/mat-magic-listbox.directive";
8
- import * as i4 from "./components/base-mat-table-magic.component";
9
- import * as i5 from "@angular/common";
10
- import * as i6 from "@angular/forms";
11
- import * as i7 from "@angular/material/table";
12
- import * as i8 from "@angular/material/paginator";
13
- import * as i9 from "@angular/material/input";
14
- import * as i10 from "@angular/material/button";
15
- import * as i11 from "@angular/material/list";
16
- import * as i12 from "@angular/material/checkbox";
17
- import * as i13 from "@angular/material/tabs";
18
- import * as i14 from "@angular/material/select";
19
- import * as i15 from "@angular/material/datepicker";
20
- import * as i16 from "@angular/material/core";
21
- import * as i17 from "@angular/material/dialog";
22
- import * as i18 from "@magic-xpa/angular";
6
+ import * as i4 from "./directives/magic/form-controls/mat-magic-autocomplete.directive";
7
+ import * as i5 from "./components/base-mat-table-magic.component";
8
+ import * as i6 from "@angular/common";
9
+ import * as i7 from "@angular/forms";
10
+ import * as i8 from "@angular/material/table";
11
+ import * as i9 from "@angular/material/paginator";
12
+ import * as i10 from "@angular/material/input";
13
+ import * as i11 from "@angular/material/button";
14
+ import * as i12 from "@angular/material/list";
15
+ import * as i13 from "@angular/material/checkbox";
16
+ import * as i14 from "@angular/material/tabs";
17
+ import * as i15 from "@angular/material/select";
18
+ import * as i16 from "@angular/material/datepicker";
19
+ import * as i17 from "@angular/material/core";
20
+ import * as i18 from "@angular/material/dialog";
21
+ import * as i19 from "@magic-xpa/angular";
23
22
  export declare const materialModules: (typeof MatNativeDateModule)[];
24
23
  export declare class MagicAngularMaterialModule {
25
- constructor(componentList: ComponentListMagicService, matdialog: MatDialog);
26
- static ɵmod: i0.ɵɵNgModuleDefWithMeta<MagicAngularMaterialModule, [typeof i1.MatCheckboxDirective, typeof i2.MatComboboxDirective, typeof i3.MatListboxDirective, typeof i4.BaseMatTableMagicComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.MatTableModule, typeof i8.MatPaginatorModule, typeof i9.MatInputModule, typeof i10.MatButtonModule, typeof i11.MatListModule, typeof i12.MatCheckboxModule, typeof i13.MatTabsModule, typeof i14.MatSelectModule, typeof i15.MatDatepickerModule, typeof i16.MatNativeDateModule, typeof i17.MatDialogModule, typeof i18.MagicModule], [typeof i1.MatCheckboxDirective, typeof i2.MatComboboxDirective, typeof i3.MatListboxDirective, typeof i4.BaseMatTableMagicComponent]>;
27
- static ɵinj: i0.ɵɵInjectorDef<MagicAngularMaterialModule>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicAngularMaterialModule, never>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<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]>;
26
+ static ɵinj: i0.ɵɵInjectorDeclaration<MagicAngularMaterialModule>;
28
27
  }
@@ -16,6 +16,6 @@ export declare class BaseMatTableMagicComponent extends TaskBaseMagicComponent {
16
16
  constructor(dialog: MatDialog, ref: ChangeDetectorRef, magicService: MagicServices);
17
17
  ngOnInit(): void;
18
18
  ngAfterContentChecked(): void;
19
- static ɵfac: i0.ɵɵFactoryDef<BaseMatTableMagicComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDefWithMeta<BaseMatTableMagicComponent, "ng-component", never, {}, {}, never, never>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMatTableMagicComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseMatTableMagicComponent, "ng-component", never, {}, {}, never, never>;
21
21
  }
@@ -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.ɵɵFactoryDeclaration<MatMagicAutocompleteDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatMagicAutocompleteDirective, "mat-autocomplete[magic]", never, {}, {}, never>;
7
+ }
@@ -1,6 +1,6 @@
1
1
  import { CheckboxMagicDirective } from "@magic-xpa/angular";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MatCheckboxDirective extends CheckboxMagicDirective {
4
- static ɵfac: i0.ɵɵFactoryDef<MatCheckboxDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDefWithMeta<MatCheckboxDirective, " mat-checkbox[magic]:not([noFormControl]) ", never, {}, {}, never>;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxDirective, " mat-checkbox[magic]:not([noFormControl]) ", never, {}, {}, never>;
6
6
  }
@@ -3,6 +3,6 @@ import * as i0 from "@angular/core";
3
3
  export declare class MatComboboxDirective extends ComboboxMagicDirective {
4
4
  onChange($event: any): void;
5
5
  onOpenedChanged($event: any): void;
6
- static ɵfac: i0.ɵɵFactoryDef<MatComboboxDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDefWithMeta<MatComboboxDirective, "mat-select[magic]", never, {}, {}, never>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatComboboxDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatComboboxDirective, "mat-select[magic]", never, {}, {}, never>;
8
8
  }
@@ -4,6 +4,6 @@ export declare class MatListboxDirective {
4
4
  protected magicDirective: MagicDirective;
5
5
  constructor(magicDirective: MagicDirective);
6
6
  onChange($event: any): void;
7
- static ɵfac: i0.ɵɵFactoryDef<MatListboxDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDefWithMeta<MatListboxDirective, "mat-selection-list[magic]", never, {}, {}, never>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatListboxDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListboxDirective, "mat-selection-list[magic]", never, {}, {}, never>;
9
9
  }
@@ -34,6 +34,6 @@ export declare class MgMatTableService extends TableMagicService {
34
34
  protected selectPageForGuiRowId(guiRowId: number): void;
35
35
  setTableTopIndex(value: number): void;
36
36
  getTableTopIndex(): number;
37
- static ɵfac: i0.ɵɵFactoryDef<MgMatTableService, never>;
38
- static ɵprov: i0.ɵɵInjectableDef<MgMatTableService>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgMatTableService, never>;
38
+ static ɵprov: i0.ɵɵInjectableDeclaration<MgMatTableService>;
39
39
  }