@magic-xpa/angular-material-core 4.1300.0-dev4130.23 → 4.1300.0-dev4130.233

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/package.json CHANGED
@@ -1,30 +1,31 @@
1
1
  {
2
2
  "name": "@magic-xpa/angular-material-core",
3
- "version": "4.1300.0-dev4130.23",
3
+ "version": "4.1300.0-dev4130.233",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "peerDependencies": {
6
- "@angular/core": "^19.1.3",
7
- "@angular/common": "^19.1.3",
8
- "@angular/forms": "^19.1.3",
9
- "@angular/material": "^19.1.1",
10
- "@magic-xpa/angular": "4.1300.0-dev4130.23"
6
+ "@angular/core": "^22.1.1",
7
+ "@angular/common": "^22.1.1",
8
+ "@angular/forms": "^22.1.1",
9
+ "@angular/material": "^22.1.1",
10
+ "@magic-xpa/angular": "4.1300.0-dev4130.233"
11
11
  },
12
12
  "module": "fesm2022/magic-xpa-angular-material-core.mjs",
13
- "typings": "index.d.ts",
13
+ "typings": "types/magic-xpa-angular-material-core.d.ts",
14
14
  "exports": {
15
15
  "./package.json": {
16
16
  "default": "./package.json"
17
17
  },
18
18
  ".": {
19
- "types": "./index.d.ts",
19
+ "types": "./types/magic-xpa-angular-material-core.d.ts",
20
20
  "default": "./fesm2022/magic-xpa-angular-material-core.mjs"
21
21
  }
22
22
  },
23
23
  "sideEffects": false,
24
+ "type": "module",
24
25
  "dependencies": {
25
26
  "tslib": "^2.3.0"
26
27
  },
27
28
  "scripts": {
28
- "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"
29
+ "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled in full compilation mode. This is not allowed.\\nPlease delete and rebuild the package with partial compilation mode, before attempting to publish.\\n')\" && exit 1"
29
30
  }
30
31
  }
@@ -0,0 +1,391 @@
1
+ import * as i9 from '@angular/material/table';
2
+ import { MatTableModule, MatTableDataSource } from '@angular/material/table';
3
+ import * as i19 from '@angular/material/autocomplete';
4
+ import { MatAutocompleteSelectedEvent, MatAutocompleteTrigger, MatAutocomplete } from '@angular/material/autocomplete';
5
+ import * as i0 from '@angular/core';
6
+ import { ElementRef, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
7
+ import * as _magic_xpa_angular from '@magic-xpa/angular';
8
+ import { MagicDirective, TaskMagicService, ComboboxMagicDirective, TaskBaseMagicComponent, MagicServices, AccessorMagicService, TableMagicService, ComponentListMagicService } from '@magic-xpa/angular';
9
+ import { GuiCommand } from '@magic-xpa/gui';
10
+ import * as i14 from '@angular/material/checkbox';
11
+ import { MatCheckbox } from '@angular/material/checkbox';
12
+ import { MatSort } from '@angular/material/sort';
13
+ import * as i10 from '@angular/material/paginator';
14
+ import { MatPaginator } from '@angular/material/paginator';
15
+ import * as i8 from '@angular/forms';
16
+ import { ControlValueAccessor, NgControl, FormGroup } from '@angular/forms';
17
+ import { MatFormFieldControl } from '@angular/material/form-field';
18
+ import { FocusMonitor } from '@angular/cdk/a11y';
19
+ import { Subject } from 'rxjs';
20
+ import * as i7 from '@angular/common';
21
+ import * as i11 from '@angular/material/input';
22
+ import * as i12 from '@angular/material/button';
23
+ import * as i13 from '@angular/material/list';
24
+ import * as i15 from '@angular/material/tabs';
25
+ import * as i16 from '@angular/material/select';
26
+ import * as i17 from '@angular/material/datepicker';
27
+ import * as _angular_material_core from '@angular/material/core';
28
+ import { SelectionModel } from '@angular/cdk/collections';
29
+
30
+ /**
31
+ * Directive for material-design checkboxes not on material-design table
32
+ */
33
+ declare class MatCheckboxDirective {
34
+ protected magicDirective: MagicDirective;
35
+ private matCheckbox;
36
+ protected task: TaskMagicService;
37
+ protected element: ElementRef;
38
+ threeState: boolean;
39
+ private subscribeRefreshDom;
40
+ private indeterminate;
41
+ /**
42
+ * @ignore
43
+ */
44
+ constructor(magicDirective: MagicDirective, matCheckbox: MatCheckbox, task: TaskMagicService, element: ElementRef);
45
+ /**
46
+ * Handles the Checkbox 'change' event - pass it to the Magic engine
47
+ */
48
+ onChange($event: Event): void;
49
+ ngOnInit(): void;
50
+ private regUpdatesUI;
51
+ handleCommand(command: GuiCommand): void;
52
+ private handleThreeState;
53
+ /**
54
+ * Cleanup
55
+ */
56
+ ngOnDestroy(): void;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxDirective, never>;
58
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxDirective, " mat-checkbox[magic]:not([noFormControl]) ", never, { "threeState": { "alias": "threeState"; "required": false; }; }, {}, never, never, false, never>;
59
+ }
60
+
61
+ /**
62
+ * Directive for material-design comboboxes not on material-design table
63
+ */
64
+ declare class MatComboboxDirective extends ComboboxMagicDirective {
65
+ /**
66
+ * Handles the "selectionChange" event - pass it to the "change" event handler
67
+ * @param $event
68
+ */
69
+ onChange($event: any): void;
70
+ onOpenedChanged($event: any): void;
71
+ /**
72
+ * For mat-select do nothing
73
+ */
74
+ onComboboxItemsListChanged(): void;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatComboboxDirective, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatComboboxDirective, "mat-select[magic]", never, {}, {}, never, never, false, never>;
77
+ }
78
+
79
+ /**
80
+ * Directive for material-design listboxes not on material-design table
81
+ */
82
+ declare class MatListboxDirective {
83
+ protected magicDirective: MagicDirective;
84
+ constructor(magicDirective: MagicDirective);
85
+ /**
86
+ * Handles the "selectionChange" event - pass it to the "change" event handler
87
+ * @param $event
88
+ */
89
+ onChange($event: any): void;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatListboxDirective, never>;
91
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListboxDirective, "mat-selection-list[magic]", never, {}, {}, never, never, false, never>;
92
+ }
93
+
94
+ /**
95
+ * Directive for material-design autocomplete not on material-design table
96
+ */
97
+ declare class MatMagicAutocompleteDirective {
98
+ onOpenedChanged($event: any): void;
99
+ onClosedChanged($event: any): void;
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatMagicAutocompleteDirective, never>;
101
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatMagicAutocompleteDirective, "mat-autocomplete[magic]", never, {}, {}, never, never, false, never>;
102
+ }
103
+
104
+ /**
105
+ * This component is the base component for forms which has a material-design table (grid)
106
+ */
107
+ declare class BaseMatTableMagicComponent extends TaskBaseMagicComponent {
108
+ protected ref: ChangeDetectorRef;
109
+ magicService: MagicServices;
110
+ /**
111
+ * Paginator to enable changing pages in the table
112
+ */
113
+ paginator: MatPaginator;
114
+ /**
115
+ * Provides the table sort capabilities
116
+ */
117
+ sort: MatSort;
118
+ /**
119
+ * List of table columns to be displayed
120
+ */
121
+ displayedColumns: any;
122
+ /**
123
+ * Table data source
124
+ */
125
+ dataSource: any;
126
+ /**
127
+ * Provides selection options for the table
128
+ */
129
+ selection: any;
130
+ /**
131
+ * @ignore
132
+ */
133
+ constructor(ref: ChangeDetectorRef, magicService: MagicServices);
134
+ /**
135
+ * Initializer
136
+ */
137
+ ngOnInit(): void;
138
+ /**
139
+ * AfterContentChecked implementation
140
+ */
141
+ ngAfterContentChecked(): void;
142
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMatTableMagicComponent, never>;
143
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseMatTableMagicComponent, "ng-component", never, {}, {}, never, never, false, never>;
144
+ }
145
+
146
+ declare class EditableComboComponent implements ControlValueAccessor, MatFormFieldControl<number>, OnInit, OnDestroy {
147
+ magicServices: MagicServices;
148
+ private fm;
149
+ private elRef;
150
+ ngControl: NgControl;
151
+ /**
152
+ * @ignore
153
+ */
154
+ controlId: string;
155
+ rowId: string;
156
+ combo_input: ElementRef;
157
+ /**
158
+ * @ignore
159
+ */
160
+ set magic(val: string);
161
+ set rowId1(val: string);
162
+ placeholder: string;
163
+ formGroup: FormGroup;
164
+ isPanelOpen: boolean;
165
+ private onChange;
166
+ private onTouched;
167
+ static nextId: number;
168
+ id: string;
169
+ stateChanges: Subject<void>;
170
+ focused: boolean;
171
+ touched: boolean;
172
+ controlType: string;
173
+ value: number;
174
+ private _required;
175
+ get required(): boolean;
176
+ set required(val: boolean | string);
177
+ private _disabled;
178
+ get disabled(): boolean;
179
+ set disabled(val: boolean | string);
180
+ get empty(): boolean;
181
+ get shouldLabelFloat(): boolean;
182
+ get errorState(): boolean;
183
+ constructor(magicServices: MagicServices, fm: FocusMonitor, elRef: ElementRef, ngControl: NgControl);
184
+ /**
185
+ * Returns the Magic accessor service
186
+ * @returns
187
+ */
188
+ get mg(): AccessorMagicService;
189
+ /**
190
+ * Returns the Magic task service
191
+ * @returns
192
+ */
193
+ get task(): TaskMagicService;
194
+ ngOnInit(): void;
195
+ ngOnDestroy(): void;
196
+ setDescribedByIds(ids: string[]): void;
197
+ onContainerClick(event: MouseEvent): void;
198
+ writeValue(value: number): void;
199
+ registerOnChange(fn: (value: number) => void): void;
200
+ registerOnTouched(fn: () => void): void;
201
+ onBlur(): void;
202
+ setDisabledState(isDisabled: boolean): void;
203
+ onOptionSelected(event: MatAutocompleteSelectedEvent): void;
204
+ onOpened(): void;
205
+ onClosed(): void;
206
+ getFilteredListForChoiceControl(): Array<{
207
+ index: number;
208
+ displayValue: string;
209
+ }>;
210
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditableComboComponent, [null, null, null, { optional: true; self: true; }]>;
211
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditableComboComponent, "editable-combo", never, { "magic": { "alias": "magic"; "required": false; }; "rowId1": { "alias": "rowId"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
212
+ }
213
+
214
+ /**
215
+ * @ignore
216
+ */
217
+ declare const materialModules: (typeof MatTableModule | typeof MatAutocompleteTrigger | typeof MatAutocomplete)[];
218
+ /**
219
+ * @ignore
220
+ */
221
+ declare class MagicAngularMaterialModule {
222
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicAngularMaterialModule, never>;
223
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MagicAngularMaterialModule, [typeof MatCheckboxDirective, typeof MatComboboxDirective, typeof MatListboxDirective, typeof MatMagicAutocompleteDirective, typeof BaseMatTableMagicComponent, typeof EditableComboComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.MatTableModule, typeof i10.MatPaginatorModule, typeof i11.MatInputModule, typeof i12.MatButtonModule, typeof i13.MatListModule, typeof i14.MatCheckboxModule, typeof i15.MatTabsModule, typeof i16.MatSelectModule, typeof i17.MatDatepickerModule, typeof _angular_material_core.MatNativeDateModule, typeof i19.MatAutocompleteTrigger, typeof i19.MatAutocomplete, typeof _magic_xpa_angular.MagicModule, typeof i8.ReactiveFormsModule], [typeof MatCheckboxDirective, typeof MatComboboxDirective, typeof MatListboxDirective, typeof MatMagicAutocompleteDirective, typeof BaseMatTableMagicComponent, typeof EditableComboComponent]>;
224
+ static ɵinj: i0.ɵɵInjectorDeclaration<MagicAngularMaterialModule>;
225
+ }
226
+
227
+ /**
228
+ * Extends the Magic table service to supply functionality for Material Design tables
229
+ */
230
+ declare class MgMatTableService extends TableMagicService {
231
+ protected componentList: ComponentListMagicService;
232
+ protected task: TaskMagicService;
233
+ /**
234
+ * Table data source
235
+ */
236
+ dataSource: MatTableDataSource<Element>;
237
+ /**
238
+ * @ignore
239
+ */
240
+ get DataSource(): MatTableDataSource<Element>;
241
+ /**
242
+ * @ignore
243
+ */
244
+ set DataSource(dataSource: MatTableDataSource<Element>);
245
+ /**
246
+ * Provides selection options for the table
247
+ */
248
+ selection: SelectionModel<Element>;
249
+ /**
250
+ * @ignore
251
+ */
252
+ get Selection(): SelectionModel<Element>;
253
+ /**
254
+ * @ignore
255
+ */
256
+ set Selection(selection: SelectionModel<Element>);
257
+ /**
258
+ * Paginator to enable changing pages in the table
259
+ */
260
+ paginator: MatPaginator;
261
+ /**
262
+ * @ignore
263
+ */
264
+ get Paginator(): MatPaginator;
265
+ /**
266
+ * @ignore
267
+ */
268
+ set Paginator(paginator: MatPaginator);
269
+ /**
270
+ * @ignore
271
+ */
272
+ constructor(componentList: ComponentListMagicService, task: TaskMagicService);
273
+ /**
274
+ * Connects the service to the elements of the table component
275
+ * @param dataSource Table data source
276
+ * @param paginator Table paginator
277
+ * @param selection table SelectionModel
278
+ */
279
+ connect(dataSource: MatTableDataSource<Element>, paginator: MatPaginator, selection: SelectionModel<Element>): void;
280
+ /**
281
+ * @ignore
282
+ */
283
+ refreshDataSource(): void;
284
+ /**
285
+ * returns the page size of the table
286
+ * @returns
287
+ */
288
+ getPageSize(): number;
289
+ /**
290
+ * Selects a table row
291
+ * @param guiRowid Id of row to be selected
292
+ */
293
+ selectRow(guiRowid: string): void;
294
+ /**
295
+ * Displays the requested table page
296
+ * @param pageId Id of page to be selected
297
+ */
298
+ selectPage(pageId: number): void;
299
+ /**
300
+ * Returns the currently seleted row
301
+ * @returns
302
+ */
303
+ selectedRow(): any;
304
+ /**
305
+ * Handle the paginator's "page" event
306
+ * @param e The event received from the UI
307
+ * @param changeSelectedRow The flag true or false to indicate change the row
308
+ */
309
+ mgOnPaginateChange(e: any, changeSelectedRow?: boolean): void;
310
+ /**
311
+ * Handle resize and set table top index.
312
+ * @param pageIndex : New page index.
313
+ * @param prevPageIndex : Prev page index
314
+ * @param pageSize : PageSize
315
+ */
316
+ handleResize(pageIndex: number, prevPageIndex: number, pageSize: number): void;
317
+ /**
318
+ * Execute getRows to fetch required chunk of records.
319
+ * @param pageIndex : New page index.
320
+ * @param prevPageIndex : Prev page index
321
+ * @param pageSize : PageSize
322
+ */
323
+ getRowsIfNeeded(pageIndex: number, prevPageIndex: number, pageSize: number): void;
324
+ /**
325
+ * Handles the "matSortChange" event
326
+ * @param e The event received from the UI
327
+ */
328
+ sortData(e: any): void;
329
+ /**
330
+ * Change the number of lines in a table
331
+ * @param size New number of lines in table
332
+ */
333
+ updateTableSize(size: number): void;
334
+ /**
335
+ * Handle the selection of row and if needed move to respective page.
336
+ * @param guiRowId New number of lines in table
337
+ */
338
+ protected selectPageForGuiRowId(guiRowId: number): void;
339
+ /**
340
+ * @ignore
341
+ */
342
+ setTableTopIndex(value: number): void;
343
+ /**
344
+ * @ignore
345
+ */
346
+ getTableTopIndex(): number;
347
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgMatTableService, never>;
348
+ static ɵprov: i0.ɵɵInjectableDeclaration<MgMatTableService>;
349
+ }
350
+
351
+ /**
352
+ * @ignore
353
+ */
354
+ declare const matMagicProviders: (typeof _magic_xpa_angular.SubformMagicService | typeof _magic_xpa_angular.TitleMagicService | typeof _magic_xpa_angular.AccessorMagicService | typeof _magic_xpa_angular.TaskMagicService | typeof _magic_xpa_angular.MagicServices | ({
355
+ provide: typeof _angular_material_core.DateAdapter;
356
+ useClass: typeof _magic_xpa_angular.MgDateAdapter;
357
+ useValue?: undefined;
358
+ } | {
359
+ provide: i0.InjectionToken<_angular_material_core.MatDateFormats>;
360
+ useValue: {
361
+ parse: {
362
+ dateInput: {
363
+ month: string;
364
+ year: string;
365
+ day: string;
366
+ };
367
+ };
368
+ display: {
369
+ dateInput: string;
370
+ monthYearLabel: {
371
+ year: string;
372
+ month: string;
373
+ };
374
+ dateA11yLabel: {
375
+ year: string;
376
+ month: string;
377
+ day: string;
378
+ };
379
+ monthYearA11yLabel: {
380
+ year: string;
381
+ month: string;
382
+ };
383
+ };
384
+ };
385
+ useClass?: undefined;
386
+ })[] | {
387
+ provide: typeof TableMagicService;
388
+ useClass: typeof MgMatTableService;
389
+ })[];
390
+
391
+ export { BaseMatTableMagicComponent, EditableComboComponent, MagicAngularMaterialModule, MatCheckboxDirective, MatComboboxDirective, MatListboxDirective, MatMagicAutocompleteDirective, MgMatTableService, matMagicProviders, materialModules };
package/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**
2
- * @file Automatically generated by barrelsby.
3
- */
4
- export * from "./src/angular-material.module";
5
- export * from "./src/components/base-mat-table-magic.component";
6
- export * from "./src/components/editable-combo-component";
7
- export * from "./src/directives/magic/form-controls/mat-magic-autocomplete.directive";
8
- export * from "./src/directives/magic/form-controls/mat-magic-checkbox.directive";
9
- export * from "./src/directives/magic/form-controls/mat-magic-combobox.directive";
10
- export * from "./src/directives/magic/form-controls/mat-magic-listbox.directive";
11
- export * from "./src/services/mat.magic.providers";
12
- export * from "./src/services/mattable.magic.service";
@@ -1,35 +0,0 @@
1
- import { MatNativeDateModule } from '@angular/material/core';
2
- import { MatAutocomplete, MatAutocompleteTrigger } from "@angular/material/autocomplete";
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./directives/magic/form-controls/mat-magic-checkbox.directive";
5
- import * as i2 from "./directives/magic/form-controls/mat-magic-combobox.directive";
6
- import * as i3 from "./directives/magic/form-controls/mat-magic-listbox.directive";
7
- import * as i4 from "./directives/magic/form-controls/mat-magic-autocomplete.directive";
8
- import * as i5 from "./components/base-mat-table-magic.component";
9
- import * as i6 from "./components/editable-combo-component";
10
- import * as i7 from "@angular/common";
11
- import * as i8 from "@angular/forms";
12
- import * as i9 from "@angular/material/table";
13
- import * as i10 from "@angular/material/paginator";
14
- import * as i11 from "@angular/material/input";
15
- import * as i12 from "@angular/material/button";
16
- import * as i13 from "@angular/material/list";
17
- import * as i14 from "@angular/material/checkbox";
18
- import * as i15 from "@angular/material/tabs";
19
- import * as i16 from "@angular/material/select";
20
- import * as i17 from "@angular/material/datepicker";
21
- import * as i18 from "@angular/material/core";
22
- import * as i19 from "@angular/material/autocomplete";
23
- import * as i20 from "@magic-xpa/angular";
24
- /**
25
- * @ignore
26
- */
27
- export declare const materialModules: (typeof MatNativeDateModule | typeof MatAutocomplete | typeof MatAutocompleteTrigger)[];
28
- /**
29
- * @ignore
30
- */
31
- export declare class MagicAngularMaterialModule {
32
- static ɵfac: i0.ɵɵFactoryDeclaration<MagicAngularMaterialModule, never>;
33
- static ɵmod: i0.ɵɵNgModuleDeclaration<MagicAngularMaterialModule, [typeof i1.MatCheckboxDirective, typeof i2.MatComboboxDirective, typeof i3.MatListboxDirective, typeof i4.MatMagicAutocompleteDirective, typeof i5.BaseMatTableMagicComponent, typeof i6.EditableComboComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.MatTableModule, typeof i10.MatPaginatorModule, typeof i11.MatInputModule, typeof i12.MatButtonModule, typeof i13.MatListModule, typeof i14.MatCheckboxModule, typeof i15.MatTabsModule, typeof i16.MatSelectModule, typeof i17.MatDatepickerModule, typeof i18.MatNativeDateModule, typeof i19.MatAutocompleteTrigger, typeof i19.MatAutocomplete, typeof i20.MagicModule, typeof i8.ReactiveFormsModule], [typeof i1.MatCheckboxDirective, typeof i2.MatComboboxDirective, typeof i3.MatListboxDirective, typeof i4.MatMagicAutocompleteDirective, typeof i5.BaseMatTableMagicComponent, typeof i6.EditableComboComponent]>;
34
- static ɵinj: i0.ɵɵInjectorDeclaration<MagicAngularMaterialModule>;
35
- }
@@ -1,46 +0,0 @@
1
- import { MagicServices, TaskBaseMagicComponent } from '@magic-xpa/angular';
2
- import { MatSort } from '@angular/material/sort';
3
- import { ChangeDetectorRef } from '@angular/core';
4
- import { MatPaginator } from '@angular/material/paginator';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * This component is the base component for forms which has a material-design table (grid)
8
- */
9
- export declare class BaseMatTableMagicComponent extends TaskBaseMagicComponent {
10
- protected ref: ChangeDetectorRef;
11
- magicService: MagicServices;
12
- /**
13
- * Paginator to enable changing pages in the table
14
- */
15
- paginator: MatPaginator;
16
- /**
17
- * Provides the table sort capabilities
18
- */
19
- sort: MatSort;
20
- /**
21
- * List of table columns to be displayed
22
- */
23
- displayedColumns: any;
24
- /**
25
- * Table data source
26
- */
27
- dataSource: any;
28
- /**
29
- * Provides selection options for the table
30
- */
31
- selection: any;
32
- /**
33
- * @ignore
34
- */
35
- constructor(ref: ChangeDetectorRef, magicService: MagicServices);
36
- /**
37
- * Initializer
38
- */
39
- ngOnInit(): void;
40
- /**
41
- * AfterContentChecked implementation
42
- */
43
- ngAfterContentChecked(): void;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseMatTableMagicComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseMatTableMagicComponent, "ng-component", never, {}, {}, never, never, false, never>;
46
- }
@@ -1,48 +0,0 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { ControlValueAccessor, FormGroup } from '@angular/forms';
3
- import { AccessorMagicService, MagicServices, TaskMagicService } from "@magic-xpa/angular";
4
- import { MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
5
- import * as i0 from "@angular/core";
6
- export declare class EditableComboComponent implements ControlValueAccessor, OnInit {
7
- magicServices: MagicServices;
8
- /**
9
- * @ignore
10
- */
11
- controlId: string;
12
- rowId: string;
13
- combo_input: ElementRef;
14
- /**
15
- * @ignore
16
- */
17
- set magic(val: string);
18
- set rowId1(val: string);
19
- placeholder: string;
20
- formGroup: FormGroup;
21
- private onChange;
22
- private onTouched;
23
- constructor(magicServices: MagicServices);
24
- /**
25
- * Returns the Magic accessor service
26
- * @returns
27
- */
28
- get mg(): AccessorMagicService;
29
- /**
30
- * Returns the Magic task service
31
- * @returns
32
- */
33
- get task(): TaskMagicService;
34
- ngOnInit(): void;
35
- writeValue(value: number): void;
36
- registerOnChange(fn: (value: number) => void): void;
37
- registerOnTouched(fn: () => void): void;
38
- onBlur(): void;
39
- onOptionSelected(event: MatAutocompleteSelectedEvent): void;
40
- onOpened(): void;
41
- onClosed(): void;
42
- getFilteredListForChoiceControl(): Array<{
43
- index: number;
44
- displayValue: string;
45
- }>;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<EditableComboComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<EditableComboComponent, "editable-combo", never, { "magic": { "alias": "magic"; "required": false; }; "rowId1": { "alias": "rowId"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, false, never>;
48
- }
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Directive for material-design autocomplete not on material-design table
4
- */
5
- export declare class MatMagicAutocompleteDirective {
6
- onOpenedChanged($event: any): void;
7
- onClosedChanged($event: any): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<MatMagicAutocompleteDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatMagicAutocompleteDirective, "mat-autocomplete[magic]", never, {}, {}, never, never, false, never>;
10
- }
@@ -1,35 +0,0 @@
1
- import { ElementRef } from "@angular/core";
2
- import { MagicDirective, TaskMagicService } from "@magic-xpa/angular";
3
- import { GuiCommand } from "@magic-xpa/gui";
4
- import { MatCheckbox } from "@angular/material/checkbox";
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Directive for material-design checkboxes not on material-design table
8
- */
9
- export declare class MatCheckboxDirective {
10
- protected magicDirective: MagicDirective;
11
- private matCheckbox;
12
- protected task: TaskMagicService;
13
- protected element: ElementRef;
14
- threeState: boolean;
15
- private subscribeRefreshDom;
16
- private indeterminate;
17
- /**
18
- * @ignore
19
- */
20
- constructor(magicDirective: MagicDirective, matCheckbox: MatCheckbox, task: TaskMagicService, element: ElementRef);
21
- /**
22
- * Handles the Checkbox 'change' event - pass it to the Magic engine
23
- */
24
- onChange($event: Event): void;
25
- ngOnInit(): void;
26
- private regUpdatesUI;
27
- handleCommand(command: GuiCommand): void;
28
- private handleThreeState;
29
- /**
30
- * Cleanup
31
- */
32
- ngOnDestroy(): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxDirective, never>;
34
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxDirective, " mat-checkbox[magic]:not([noFormControl]) ", never, { "threeState": { "alias": "threeState"; "required": false; }; }, {}, never, never, false, never>;
35
- }
@@ -1,19 +0,0 @@
1
- import { ComboboxMagicDirective } from "@magic-xpa/angular";
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Directive for material-design comboboxes not on material-design table
5
- */
6
- export declare class MatComboboxDirective extends ComboboxMagicDirective {
7
- /**
8
- * Handles the "selectionChange" event - pass it to the "change" event handler
9
- * @param $event
10
- */
11
- onChange($event: any): void;
12
- onOpenedChanged($event: any): void;
13
- /**
14
- * For mat-select do nothing
15
- */
16
- onComboboxItemsListChanged(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<MatComboboxDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatComboboxDirective, "mat-select[magic]", never, {}, {}, never, never, false, never>;
19
- }
@@ -1,16 +0,0 @@
1
- import { MagicDirective } from "@magic-xpa/angular";
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Directive for material-design listboxes not on material-design table
5
- */
6
- export declare class MatListboxDirective {
7
- protected magicDirective: MagicDirective;
8
- constructor(magicDirective: MagicDirective);
9
- /**
10
- * Handles the "selectionChange" event - pass it to the "change" event handler
11
- * @param $event
12
- */
13
- onChange($event: any): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<MatListboxDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatListboxDirective, "mat-selection-list[magic]", never, {}, {}, never, never, false, never>;
16
- }