@magic-xpa/angular 4.1201.0-dev4121.306 → 4.1201.0-dev4121.308

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 (64) hide show
  1. package/README.md +5 -5
  2. package/fesm2022/magic-xpa-angular.mjs +193 -163
  3. package/fesm2022/magic-xpa-angular.mjs.map +1 -1
  4. package/package.json +10 -10
  5. package/types/magic-xpa-angular.d.ts +2564 -0
  6. package/index.d.ts +0 -61
  7. package/src/controls.metadata.model.d.ts +0 -78
  8. package/src/interfaces/sub-form-definition.iterface.d.ts +0 -18
  9. package/src/magic.core.module.d.ts +0 -44
  10. package/src/services/ISubformMagicService.d.ts +0 -4
  11. package/src/services/OverlayWindowService.d.ts +0 -49
  12. package/src/services/StylesMapManager.d.ts +0 -8
  13. package/src/services/accessor.magic.service.d.ts +0 -311
  14. package/src/services/commands-collector.magic.service.d.ts +0 -18
  15. package/src/services/component-list.magic.service.d.ts +0 -50
  16. package/src/services/confirmation.components.magic.provider.d.ts +0 -24
  17. package/src/services/engine.magic.service.d.ts +0 -32
  18. package/src/services/exit.magic.service.d.ts +0 -12
  19. package/src/services/magic-color.service.d.ts +0 -25
  20. package/src/services/magic.lazy.loader.service.d.ts +0 -6
  21. package/src/services/magic.providers.d.ts +0 -110
  22. package/src/services/magic.services.d.ts +0 -22
  23. package/src/services/mg-date-adapter.d.ts +0 -38
  24. package/src/services/overlay.conainer.magic.provider.d.ts +0 -7
  25. package/src/services/router-commands.magic.service.d.ts +0 -23
  26. package/src/services/subform.magic.service.d.ts +0 -71
  27. package/src/services/table.magic.service.d.ts +0 -86
  28. package/src/services/task.magics.service.d.ts +0 -405
  29. package/src/services/title.magic.service.d.ts +0 -20
  30. package/src/ui/GuiInteractiveExecutor.d.ts +0 -25
  31. package/src/ui/components/base-magic-alert.component.d.ts +0 -26
  32. package/src/ui/components/base-magic-confirm.component.d.ts +0 -28
  33. package/src/ui/components/magic-alert.component.d.ts +0 -9
  34. package/src/ui/components/magic-confirmation-box.component.d.ts +0 -9
  35. package/src/ui/directives/NonMagicControlDirective.d.ts +0 -67
  36. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +0 -15
  37. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +0 -34
  38. package/src/ui/directives/magic/combobox.magic.directive.d.ts +0 -19
  39. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +0 -13
  40. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +0 -36
  41. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +0 -13
  42. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +0 -15
  43. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +0 -21
  44. package/src/ui/directives/magic/row.magic.directive.d.ts +0 -32
  45. package/src/ui/directives/magic-focus.directive.d.ts +0 -12
  46. package/src/ui/directives/magic.directive.d.ts +0 -127
  47. package/src/ui/directives/magicViewContainerRef.directive.d.ts +0 -11
  48. package/src/ui/directives/mgformat.magic.directive.d.ts +0 -82
  49. package/src/ui/directives/range-validator.magic.directive.d.ts +0 -33
  50. package/src/ui/magic-confirmationBox.d.ts +0 -25
  51. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +0 -14
  52. package/src/ui/magic-modal/magic-modal-form.d.ts +0 -8
  53. package/src/ui/magic-modal/magic-modal-interface.d.ts +0 -45
  54. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +0 -50
  55. package/src/ui/magic-modal/magic-overlay-container.d.ts +0 -117
  56. package/src/ui/magic-root.component.d.ts +0 -85
  57. package/src/ui/mgerror.magic.component.d.ts +0 -39
  58. package/src/ui/pipes/date.magic.pipe.d.ts +0 -23
  59. package/src/ui/pipes/time.magic.pipe.d.ts +0 -14
  60. package/src/ui/pipes/time24.magic.pipe.d.ts +0 -10
  61. package/src/ui/router-container.magic.component.d.ts +0 -50
  62. package/src/ui/subform.magic.component.d.ts +0 -37
  63. package/src/ui/task-base.magic.component.d.ts +0 -112
  64. package/src/ui/utils.d.ts +0 -12
@@ -0,0 +1,2564 @@
1
+ import { StorageAttribute, MagicProperties } from '@magic-xpa/utils';
2
+ import { HtmlProperties, CustomValidator, GuiCommand, GuiInteractive, Styles, PIC } from '@magic-xpa/gui';
3
+ import * as i0 from '@angular/core';
4
+ import { NgModuleRef, ViewContainerRef, OnInit, Injector, Compiler, Component, InjectionToken, AfterViewInit, ElementRef, EventEmitter, ChangeDetectorRef, OnDestroy, Renderer2, TemplateRef, PipeTransform } from '@angular/core';
5
+ import * as i31 from '@angular/forms';
6
+ import { FormGroup, AbstractControl, ValidatorFn, FormControl, CheckboxControlValueAccessor, DefaultValueAccessor, ControlValueAccessor, Validator } from '@angular/forms';
7
+ import { Subject, Subscription } from 'rxjs';
8
+ import { MagicBridge, IGuiEvent } from '@magic-xpa/engine';
9
+ import { HttpClient } from '@angular/common/http';
10
+ import { List, RefParam } from '@magic-xpa/mscorelib';
11
+ import * as i32 from '@angular/router';
12
+ import { Router, ActivatedRoute } from '@angular/router';
13
+ import { Title } from '@angular/platform-browser';
14
+ import { MaskitoOptions } from '@maskito/core';
15
+ import { Platform } from '@angular/cdk/platform';
16
+ import * as i30 from '@angular/common';
17
+ import { DatePipe } from '@angular/common';
18
+ import * as i33 from 'ng-dynamic-component';
19
+ import * as i34 from '@angular/cdk/drag-drop';
20
+ import * as i35 from '@maskito/angular';
21
+ import * as _angular_material_core from '@angular/material/core';
22
+ import { NativeDateAdapter, DateAdapter } from '@angular/material/core';
23
+
24
+ /**
25
+ * @ignore
26
+ */
27
+ declare class ControlMetadata {
28
+ controlType: string;
29
+ dataType: StorageAttribute;
30
+ properties: Map<HtmlProperties, any>;
31
+ classesMap: Map<HtmlClasses, any>;
32
+ stylesMap: Map<HtmlClasses, any>;
33
+ removedClass: string;
34
+ classes: string;
35
+ rangeValidator: boolean;
36
+ userProperties: Map<string, any>;
37
+ customValidators: Map<string, CustomValidator>;
38
+ setClass(key: any, value: any): void;
39
+ setStyle(key: any, value: any): void;
40
+ }
41
+ /**
42
+ * @ignore
43
+ */
44
+ declare class ControlsMetadata {
45
+ values: Map<string, string>;
46
+ ControlsProperties: Map<string, ControlMetadata>;
47
+ rowId: string;
48
+ isCreated: boolean;
49
+ isEditing: boolean;
50
+ get Values(): Map<string, string>;
51
+ getControlMetadata(controlId: string): ControlMetadata;
52
+ update(obj: any): void;
53
+ setValue(controlName: string, value: any): void;
54
+ getProperty(controlId: string, prop: HtmlProperties): any;
55
+ getValue(controlName: string): string;
56
+ }
57
+ /**
58
+ * @ignore
59
+ */
60
+ declare class Records {
61
+ data: Map<number, ControlsMetadata>;
62
+ list: ControlsMetadata[];
63
+ includesFirst: boolean;
64
+ includesLast: boolean;
65
+ guiTopIndex: number;
66
+ recordsBeforeCurrentView: number;
67
+ isEmptyDataView: boolean;
68
+ sizeUpdated: boolean;
69
+ getRow(dvRowId: number): ControlsMetadata;
70
+ markRowAsCreated(guiRowId: number): void;
71
+ markRowAsNotCreated(guiRowId: number): void;
72
+ isRowCreated(guiRowId: number): boolean;
73
+ startRowEditing(guiRowId: number): void;
74
+ stopRowEditing(guiRowId: number): void;
75
+ isRowInRowEditing(guiRowId: string): boolean;
76
+ update(obj: any): void;
77
+ updateSize(len: number): void;
78
+ /**
79
+ * crears data for the first record
80
+ * @param template
81
+ */
82
+ clearFirstTableRecord(template: {
83
+ [id: string]: string;
84
+ }): void;
85
+ addRow(guiRowId: number): void;
86
+ createFirst(): void;
87
+ fromJson(data: string): void;
88
+ setGuiTopIndex(topIndex: number): void;
89
+ getGuiTopIndex(): number;
90
+ }
91
+ /**
92
+ * @ignore
93
+ */
94
+ declare enum HtmlClasses {
95
+ Color = "color",
96
+ font = "font",
97
+ FocusColor = "focuscolor",
98
+ HintColor = "hintcolor"
99
+ }
100
+
101
+ /**
102
+ * @ignore
103
+ */
104
+ declare class EngineMagicService {
105
+ magicBridge: typeof MagicBridge;
106
+ isStub: boolean;
107
+ isLoggedIn: boolean;
108
+ refreshDom: Subject<GuiCommand>;
109
+ interactiveCommands: Subject<GuiInteractive>;
110
+ startMagicEngine(httpClient: HttpClient, args: Map<string, string>): void;
111
+ terminateMagic(): Promise<void>;
112
+ insertEvent(guiEvent: IGuiEvent): void;
113
+ GetRangedValue(taskId: string, controlName: string, value: string): string;
114
+ GetControlPictureMask(taskId: string, controlName: string): any;
115
+ UploadFileToServer(fileContent: any, serverFileName: string): any;
116
+ DownloadFileFromServer(serverFileName: string): Promise<ArrayBuffer>;
117
+ GetFormattedValue(taskId: string, controlName: string, value: any, rowId?: string): any;
118
+ ValidateControlValue(taskId: string, controlName: string, value: any): string;
119
+ GetFldRanges(taskId: string, controlName: string): string;
120
+ saveData(data: string): void;
121
+ getIsLoggedIn(): boolean;
122
+ setIsLoggedIn(setIsLoggedIn: boolean): void;
123
+ TransCacheExists(): boolean;
124
+ TerminateContextUsingFetchAPI(): void;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<EngineMagicService, never>;
126
+ static ɵprov: i0.ɵɵInjectableDeclaration<EngineMagicService>;
127
+ }
128
+
129
+ interface ComponentData {
130
+ component: any;
131
+ moduleRef: NgModuleRef<any>;
132
+ }
133
+ interface ModuleData {
134
+ moduleName: string;
135
+ modulePath: string;
136
+ }
137
+ /**
138
+ * Manages the list of components in a project, and the project title
139
+ */
140
+ declare class ComponentListMagicService {
141
+ /**
142
+ * Map of project components
143
+ */
144
+ components: Map<string, ComponentData>;
145
+ /**
146
+ * Map of project dialogs
147
+ */
148
+ dialogs: Map<string, any>;
149
+ lazyLoadModulesMap: any;
150
+ getData(name: string, mustHaveData: boolean): ComponentData;
151
+ /**
152
+ * Return a component according to name
153
+ * @param name Name of requested component
154
+ * @returns The requested component
155
+ */
156
+ getComponent(name: string, mustHaveData?: boolean): any;
157
+ addComponents(componentList: any, modulRef?: NgModuleRef<any>): void;
158
+ /**
159
+ * Return a component according to name
160
+ * @param name Name of requested component
161
+ * @returns The requested component
162
+ */
163
+ getModuleRef(name: string): NgModuleRef<any>;
164
+ /**
165
+ * Return the lazy load module details of the specified component
166
+ * @param name: Name of requested component
167
+ * @returns: lazy load module details
168
+ */
169
+ getLazyLoadModuleData(name: string): ModuleData;
170
+ /**
171
+ * Project title
172
+ */
173
+ title: string;
174
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentListMagicService, never>;
175
+ static ɵprov: i0.ɵɵInjectableDeclaration<ComponentListMagicService>;
176
+ }
177
+
178
+ /**
179
+ * @ignore
180
+ */
181
+ declare class CommandsCollectorMagicService {
182
+ protected magic: EngineMagicService;
183
+ private count;
184
+ private commands;
185
+ private subscription;
186
+ constructor(magic: EngineMagicService);
187
+ startCollecting(): void;
188
+ stopCollecting(): void;
189
+ GetCommands(taskId: string): GuiCommand[];
190
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommandsCollectorMagicService, never>;
191
+ static ɵprov: i0.ɵɵInjectableDeclaration<CommandsCollectorMagicService>;
192
+ }
193
+
194
+ /**
195
+ * @ignore
196
+ */
197
+ interface SubformDefinition {
198
+ formName: string;
199
+ parameters: any;
200
+ }
201
+ /**
202
+ * @ignore
203
+ */
204
+ interface RouteDefinition {
205
+ formName: string;
206
+ parameters: any;
207
+ }
208
+ interface IMagicViewContainerRef {
209
+ setViewContainerRef(vcRef: ViewContainerRef): any;
210
+ }
211
+
212
+ interface ISubformMagicService {
213
+ ExecuteRouteCommand(routeCommand: RouteCommand): any;
214
+ }
215
+
216
+ /**
217
+ * @ignore
218
+ */
219
+ declare class RouteCommand {
220
+ callerMgSubformServiceRef: ISubformMagicService;
221
+ routerOutletName: string;
222
+ formName: string;
223
+ parameters: any;
224
+ routeParams: List<any>;
225
+ }
226
+ /**
227
+ * @ignore
228
+ */
229
+ declare class RouterCommandsMagicService {
230
+ private pendingRouteCommands;
231
+ AddRouteCommand(routeCommand: RouteCommand): void;
232
+ ExecuteNextCommand(): void;
233
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterCommandsMagicService, never>;
234
+ static ɵprov: i0.ɵɵInjectableDeclaration<RouterCommandsMagicService>;
235
+ }
236
+
237
+ /**
238
+ * Mock component, implements routing by connecting the requested URL with the appropriate Magic task
239
+ */
240
+ declare class RouterContainerMagicComponent implements OnInit {
241
+ private activatedRoute;
242
+ protected router: Router;
243
+ protected magic: EngineMagicService;
244
+ private containerTaskService;
245
+ private viewContainerRef;
246
+ private componentList;
247
+ protected pendingCommandsCollector: CommandsCollectorMagicService;
248
+ protected routerCommandsMagicService: RouterCommandsMagicService;
249
+ private componentRef;
250
+ private parentMgSubformService;
251
+ private static lastRoute;
252
+ private routePath;
253
+ static get LastRoute(): string;
254
+ /**
255
+ *
256
+ * @param changeDetectorRef
257
+ * @param activatedRoute
258
+ * @param magic
259
+ * @param componentFactoryResolver
260
+ * @param viewContainerRef
261
+ * @param componentList
262
+ * @param pendingCommandsCollector
263
+ */
264
+ constructor(activatedRoute: ActivatedRoute, router: Router, magic: EngineMagicService, containerTaskService: TaskMagicService, viewContainerRef: ViewContainerRef, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, routerCommandsMagicService: RouterCommandsMagicService);
265
+ /**
266
+ * Initialization
267
+ */
268
+ ngOnInit(): void;
269
+ private insertRouteEvent;
270
+ initializeComponent(): void;
271
+ /**
272
+ * Cleanup
273
+ */
274
+ ngOnDestroy(): void;
275
+ getRouterPath(): string;
276
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterContainerMagicComponent, never>;
277
+ static ɵcmp: i0.ɵɵComponentDeclaration<RouterContainerMagicComponent, "magic-route-outlet", never, {}, {}, never, never, false, never>;
278
+ }
279
+
280
+ declare class MagicLazyLoaderService {
281
+ Load(path: string): Promise<any>;
282
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicLazyLoaderService, never>;
283
+ static ɵprov: i0.ɵɵInjectableDeclaration<MagicLazyLoaderService>;
284
+ }
285
+
286
+ /**
287
+ * Service for managing subforms and routing
288
+ */
289
+ declare class SubformMagicService implements ISubformMagicService {
290
+ private task;
291
+ protected activatedRoute: ActivatedRoute;
292
+ protected componentList: ComponentListMagicService;
293
+ protected pendingCommandsCollector: CommandsCollectorMagicService;
294
+ protected router: Router;
295
+ protected routerCommandsMagicService: RouterCommandsMagicService;
296
+ private componentListMagicService;
297
+ private loader;
298
+ private injector;
299
+ private compiler;
300
+ subformsDict: {};
301
+ routesDict: {
302
+ [x: string]: string;
303
+ };
304
+ currentRouteDefinition: RouteDefinition;
305
+ static currentCallerMgSubformServiceRef: any;
306
+ static routerContainers: Array<RouterContainerMagicComponent>;
307
+ constructor(task: TaskMagicService, activatedRoute: ActivatedRoute, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, router: Router, routerCommandsMagicService: RouterCommandsMagicService, componentListMagicService: ComponentListMagicService, loader: MagicLazyLoaderService, injector: Injector, compiler: Compiler);
308
+ /**
309
+ * Finds and returns the component according to the subform name
310
+ * @param subformName
311
+ * @returns
312
+ */
313
+ mgGetComp(subformName: string): Component;
314
+ /**
315
+ * Returns the parameters of the subform
316
+ * @param subformName
317
+ * @returns
318
+ */
319
+ mgGetParameters(subformName: string): any;
320
+ /**
321
+ * @ignore
322
+ */
323
+ deleteSubformComp(subformControlName: string, formName: string): void;
324
+ /**
325
+ * @ignore
326
+ */
327
+ addSubformComp(subformControlName: string, formName: string, taskId: string, taskDescription: any, routerPath: string, params: List<any>, inDefaultOutlet: boolean): void;
328
+ /**
329
+ * Open the subform using a route command
330
+ */
331
+ ExecuteRouteCommand(routeCommand: RouteCommand): void;
332
+ private PerformRouterNavigate;
333
+ /**
334
+ * @ignore
335
+ */
336
+ init(): void;
337
+ /**
338
+ * @ignore
339
+ */
340
+ refreshView(): void;
341
+ static getRelativeRoute(sendActivatedRoute: ActivatedRoute): ActivatedRoute;
342
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubformMagicService, never>;
343
+ static ɵprov: i0.ɵɵInjectableDeclaration<SubformMagicService>;
344
+ }
345
+
346
+ /**
347
+ * Enables changing the browser title using Magic expression (SetTitle)
348
+ */
349
+ declare class TitleMagicService {
350
+ protected titleService: Title;
351
+ /**
352
+ *
353
+ * @param titleService Angular's title-changing class
354
+ */
355
+ constructor(titleService: Title);
356
+ /**
357
+ * Set the new title of the window
358
+ * @param newTitle New title of the window
359
+ */
360
+ setTitle(newTitle: string): void;
361
+ static ɵfac: i0.ɵɵFactoryDeclaration<TitleMagicService, never>;
362
+ static ɵprov: i0.ɵɵInjectableDeclaration<TitleMagicService>;
363
+ }
364
+
365
+ declare let COLOR_FILE_NAME: InjectionToken<string>;
366
+ declare const MAGIC_FG_COLOR: number;
367
+ declare const MAGIC_BG_COLOR: number;
368
+ declare class MagicColorService {
369
+ private http;
370
+ colorFileName: string;
371
+ getColorFilePath(): string;
372
+ private colorsData;
373
+ private fileNotFound;
374
+ constructor(http: HttpClient, colorFile1?: string);
375
+ private getColorData;
376
+ private hexToRgba;
377
+ /**
378
+ * Returns the rgba value of specified color
379
+ * @returns : value in format rgba(128,128,128,1)
380
+ * @param : colorNumber -0 based index of color for which RGBA values are returned
381
+ * @param: colorType : 1-MAGIC_FG_COLOR, 2-MAGIC_BG_COLOR
382
+ */
383
+ getColor(colorIndex: number, colorType: number): any;
384
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicColorService, never>;
385
+ static ɵprov: i0.ɵɵInjectableDeclaration<MagicColorService>;
386
+ }
387
+
388
+ /**
389
+ * Provides the UI with values calculated by the Magic WebClient
390
+ */
391
+ declare class AccessorMagicService {
392
+ protected task: TaskMagicService;
393
+ protected magicColor: MagicColorService;
394
+ Logger: any;
395
+ readonly hhmm: MaskitoOptions;
396
+ readonly hhmmss: MaskitoOptions;
397
+ /**
398
+ * @ignore
399
+ */
400
+ constructor(task: TaskMagicService, magicColor: MagicColorService);
401
+ UploadFileToServer(fileContent: any, serverFileName: string): any;
402
+ DownloadFileFromServer(serverFileName: string): Promise<ArrayBuffer>;
403
+ /**
404
+ * Checks if the control is read-only
405
+ * @param controlId Id of control
406
+ * @returns Is the control not read-only
407
+ */
408
+ checkIsReadOnly(controlId: string): boolean;
409
+ /**
410
+ * Returns the text of the control
411
+ * @param controlId Id of control
412
+ * @param rowId Id of row, if applicable
413
+ * @returns The text of the control
414
+ */
415
+ getText(controlId: string, rowId?: string): string;
416
+ /**
417
+ * Gets the text of the tab page
418
+ * @param controlId Id of control
419
+ * @param layer Id of tabpage
420
+ * @returns Text of tabpage
421
+ */
422
+ getTabpageText(controlId: string, layer: number): string;
423
+ /**
424
+ * Gets the image defined for the control
425
+ * @param controlId Id of control
426
+ * @param rowId Id of row, if applicable
427
+ * @returns Image set on control
428
+ */
429
+ getImage(controlId: string, rowId?: string): string;
430
+ /**
431
+ * Returns whether an image is set for this control
432
+ * @param controlId Id of control
433
+ * @param rowId Id of row, if applicable
434
+ * @returns returns true if control has an image set on it
435
+ */
436
+ isImageExists(controlId: string, rowId?: string): boolean;
437
+ /**
438
+ * Gets the CSS classes set on the control
439
+ * @param controlId Id of control
440
+ * @param rowId Id of row, if applicable
441
+ * @returns The classes for this control
442
+ */
443
+ getClasses(controlId: string, rowId?: string): string;
444
+ /**
445
+ * Gets the CSS styles set on the control
446
+ * @param controlId Id of control
447
+ * @param styleName NAme of style requested
448
+ * @param rowId Id of row, if applicable
449
+ * @returns The style set on the control
450
+ */
451
+ getStyle(controlId: string, styleName: string, rowId?: string): string;
452
+ /**
453
+ * Returns whether a control is visible or not
454
+ * @param controlId Id of control
455
+ * @param rowId Id of row, if applicable
456
+ * @returns Is the control visible or hidden
457
+ */
458
+ getVisible(controlId: string, rowId?: string): string;
459
+ /**
460
+ * Returns alpha mask of a control
461
+ * @param controlId Id of control
462
+ * @param rowId Id of row, if applicable
463
+ * @returns alpha mask of the control
464
+ */
465
+ getAlphaMask(controlId: string, rowId?: string): string;
466
+ /**
467
+ * Returns object representing numeric picture
468
+ * @param picture string which is defined in magic
469
+ * @returns object representing numeric picture
470
+ */
471
+ getNumericPicture(picture: string): any;
472
+ /**
473
+ * Returns whether a control should have the "required" attribute set on it
474
+ * @param controlId Id of control
475
+ * @param rowId Id of row, if applicable
476
+ * @returns
477
+ */
478
+ getMustInput(controlId: string, rowId?: string): string;
479
+ /**
480
+ * Returns whether a control is disabled
481
+ * @param controlId Id of control
482
+ * @param rowId Id of row, if applicable
483
+ * @returns
484
+ */
485
+ isDisabled(controlId: string, rowId?: string): any;
486
+ /**
487
+ * @ignore
488
+ */
489
+ getProperty(controlId: string, prop: HtmlProperties, rowId?: string): any;
490
+ /**
491
+ * Returns the title (tooltip) text of the control
492
+ * @param controlId Id of control
493
+ * @param rowId Id of row, if applicable
494
+ * @returns
495
+ */
496
+ getTitle(controlId: string, rowId?: string): string;
497
+ /**
498
+ * Returns the title (tooltip) text of the control
499
+ * @param controlId Id of control
500
+ * @param rowId Id of row, if applicable
501
+ * @returns
502
+ */
503
+ getZoomButtonTitle(controlId: string, rowId?: string): string;
504
+ /**
505
+ * Gets the selection control's selected value
506
+ * @param controlId Id of control
507
+ * @param rowId Id of row, if applicable
508
+ * @returns
509
+ */
510
+ getSelectedValue(controlId: string, rowId?: string): string;
511
+ /**
512
+ * Gets the place-holder text of the control
513
+ * @param controlId Id of control
514
+ * @param rowId Id of row, if applicable
515
+ * @returns
516
+ */
517
+ getPlaceholder(controlId: string, rowId?: string): string;
518
+ /**
519
+ * Returns a type for input controls - should the control be a simple text or a password control
520
+ * @param controlId Id of control
521
+ * @param rowId Id of row, if applicable
522
+ * @returns
523
+ */
524
+ getType(controlId: string, rowId?: string): string;
525
+ /**
526
+ * Returns the tab-index of the control
527
+ * @param controlId Id of control
528
+ * @param rowId Id of row, if applicable
529
+ * @returns
530
+ */
531
+ getTabIndex(controlId: string, rowId?: string): number;
532
+ /**
533
+ * Returns the value of the control
534
+ * @param controlId Id of control
535
+ * @param rowId Id of row, if applicable
536
+ * @returns
537
+ */
538
+ getValue(controlId: string, rowId?: string): any;
539
+ /**
540
+ * Returns the formatted value of the control
541
+ * @param controlId Id of control
542
+ * @param rowId Id of row, if applicable
543
+ * @returns
544
+ */
545
+ getFormattedValue(controlId: string, rowId?: string): string;
546
+ /**
547
+ * Returns the Picture of the control
548
+ * @param controlId Id of control
549
+ * @param rowId Id of row, if applicable
550
+ * @returns
551
+ */
552
+ getPicture(controlId: string, rowId?: string): string;
553
+ /**
554
+ * Returns the custom (user) properties of the control
555
+ * @param controlId Id of control
556
+ * @param propertyName Name of requested property
557
+ * @param rowId Id of row, if applicable
558
+ * @returns
559
+ */
560
+ getCustomProperty(controlId: string, propertyNameOrRowID?: string, rowId?: string): any;
561
+ getCustomProperty_1(controlId: string, propertyName: string, rowId?: string): any;
562
+ /**
563
+ * Gets the values of the items of a selection control
564
+ * @param id Id of control
565
+ * @param rowId Id of row, if applicable
566
+ * @returns
567
+ */
568
+ getItemListValues(id: string, rowId?: string): Array<{
569
+ index: number;
570
+ displayValue: string;
571
+ }>;
572
+ /**
573
+ * Gets the filtered items list based on the current value of the control
574
+ * @param controlId Id of control
575
+ * @param rowId Id of row, if applicable
576
+ * @returns
577
+ */
578
+ getFilteredList(controlId: string, rowId?: string): Array<{
579
+ index: number;
580
+ displayValue: string;
581
+ }>;
582
+ /**
583
+ * Gets the display value of the item from items of a selection control
584
+ * @param id Id of control
585
+ * @param rowId Id of row, if applicable
586
+ * @returns
587
+ */
588
+ getDisplayValue(id: any, rowId?: any): string;
589
+ /**
590
+ * Returns whether a tab page is selected or not
591
+ * @param index of current option in iterarotr
592
+ * @param control Id of list control
593
+ * @returns
594
+ */ isOptionSelected(index: any, controlId: any): boolean;
595
+ /**
596
+ * Returns whether a tab page is selected or not - used for the tab buttons
597
+ * @param controlId Id of control
598
+ * @param layer Id of the tab page
599
+ * @returns
600
+ */ isTabPageSelected(controlId: string, layer: number): boolean;
601
+ /**
602
+ * Returns whether a tab page layer is selected or not - used for the div which represents the tab page
603
+ * @param controlId Id of control
604
+ * @param layer Id of the tab page
605
+ * @returns
606
+ */ isTabPageLayerSelected(controlId: string, layer: number): boolean;
607
+ /**
608
+ * Returns the index of the selected tab page
609
+ * @param controlId Id of control
610
+ * @returns
611
+ */
612
+ getTabSelectedIndex(controlId: string): any;
613
+ /**
614
+ * @ignore
615
+ */
616
+ ifRowCreated(row: any): boolean;
617
+ /**
618
+ * @ignore
619
+ */
620
+ getFormGroupByRow(id: string): FormGroup;
621
+ /**
622
+ * @ignore
623
+ */
624
+ isRowSelected(controlId: any, rowId?: any): boolean;
625
+ /**
626
+ * Returns whether a row is in edit state
627
+ * @param row
628
+ */
629
+ isRowInRowEditing(row?: any): boolean;
630
+ /**
631
+ * Returns whether a row is in edit state, use this method while control outside table control
632
+ * @param row
633
+ */
634
+ isCurrentInRowEditing(): boolean;
635
+ /**
636
+ * @ignore
637
+ */
638
+ guiTopIndex(): number;
639
+ /**
640
+ * @ignore
641
+ */
642
+ getErrMsg(id: string, rowId: string): string;
643
+ private getNumericFormatErrorString;
644
+ /**
645
+ * Sets a user-supplied value to the specified control
646
+ * @param controlName
647
+ * @param value
648
+ * @param refreshDisplay
649
+ */
650
+ setValueToControl(controlName: string, value: any, refreshDisplay?: boolean): void;
651
+ /**
652
+ * @ignore
653
+ */
654
+ isDataviewEmpty(): boolean;
655
+ /**
656
+ * simulates a click event on the specified control, for the Magic engine
657
+ * @param controlName
658
+ * @param rowId
659
+ */
660
+ simulateClick(controlName: string, rowId?: number): void;
661
+ /**
662
+ * Return Boolean TRUE if user logged in Else it will return FALSE
663
+ */
664
+ isLoggedIn(): boolean;
665
+ /**
666
+ * Returns JS object containing the records with all table fields.
667
+ */
668
+ GetFormRecords(): any;
669
+ /**
670
+ * SetCookie : set the cookie with specified name and value in browser
671
+ * expires - expiration time
672
+ * path - path which much exists in order so that cookie is sent as header
673
+ * domain - specifies which hosts are allowed to receive the cookie
674
+ * secure - specifies if cookie is secure ( works only with HTTPS)
675
+ * sameSite - lets servers specify whether/when cookies are sent with cross-site requests
676
+ */
677
+ SetCookie(name: string, value: any, expires?: Date, path?: any, domain?: any, secure?: any, sameSite?: any): void;
678
+ /**
679
+ * GetCookie : get the cookie with specified name and value in browser
680
+ */
681
+ GetCookie(name: string): any;
682
+ /**
683
+ * DeleteCookie : deletes the cookie
684
+ */
685
+ DeleteCookie(name: string): any;
686
+ /**
687
+ * get RGBA color from color file
688
+ */
689
+ getColor(colorNumber: number, colorType: any): any;
690
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccessorMagicService, never>;
691
+ static ɵprov: i0.ɵɵInjectableDeclaration<AccessorMagicService>;
692
+ }
693
+
694
+ declare abstract class BaseMagicOverlayContainer {
695
+ /**
696
+ *
697
+ */
698
+ abstract ModalComp: any;
699
+ /**
700
+ *
701
+ */
702
+ abstract ModalCompParameters: any;
703
+ /**
704
+ *
705
+ */
706
+ abstract onClose: any;
707
+ }
708
+
709
+ /**
710
+ * Creates a modal window for Magic modal window components
711
+ */
712
+ declare class MagicOverlayContainer extends BaseMagicOverlayContainer implements OnInit, AfterViewInit, IMagicViewContainerRef {
713
+ /**
714
+ * HTML to be displayed in the modal window
715
+ */
716
+ modalbodyViewContainerRef: ViewContainerRef;
717
+ /**
718
+ * Header of the modal window
719
+ */
720
+ headerElementRef: ElementRef;
721
+ /**
722
+ * Foreground of the modal window
723
+ */
724
+ foregroundElementRef: ElementRef;
725
+ /**
726
+ *
727
+ */
728
+ ModalComp: any;
729
+ /**
730
+ *
731
+ */
732
+ ModalCompParameters: any;
733
+ onClose: EventEmitter<void>;
734
+ /**
735
+ *
736
+ */
737
+ private componentRef;
738
+ private resizing;
739
+ private resizeDirection;
740
+ private originalWidth;
741
+ private originalHeight;
742
+ private originalMouseX;
743
+ private originalMouseY;
744
+ private isCenteredToWindow;
745
+ private static readonly minAllowedWidth;
746
+ private static readonly minAllowedHeight;
747
+ private _isRtl;
748
+ /**
749
+ *
750
+ */
751
+ constructor();
752
+ /**
753
+ *
754
+ */
755
+ ngOnInit(): void;
756
+ ngAfterViewInit(): void;
757
+ setViewContainerRef(vcRef: ViewContainerRef): void;
758
+ /**
759
+ * Returns the form name
760
+ * @returns
761
+ */
762
+ getText(): any;
763
+ /**
764
+ * Returns boolean to indicate whether the text direction is right-to-left (RTL)
765
+ */
766
+ get isRtl(): boolean;
767
+ /**
768
+ * Returns CSS styles for the window
769
+ * @returns
770
+ */
771
+ getStyle(): {};
772
+ /**
773
+ * Returns the CSS styles for the client area
774
+ * @returns
775
+ */
776
+ getClientAreaStyles(): {};
777
+ /**
778
+ * Should the title bar be displayed
779
+ * @returns
780
+ */
781
+ getShowTitleBar(): any;
782
+ /**
783
+ *
784
+ */
785
+ OnClose(): void;
786
+ /**
787
+ * Handles click in the background window
788
+ */
789
+ OnBackgroundClick(): void;
790
+ /**
791
+ * Checks if the overlay component allows to be resized.
792
+ * @returns {boolean} True if the overlay is resizable, false otherwise.
793
+ */
794
+ IsResizable(): any;
795
+ /**
796
+ * Checks if the overlay component allows to be moved (dragged).
797
+ * @returns {boolean} True if the overlay is movable, false otherwise.
798
+ */
799
+ IsMovable(): any;
800
+ /**
801
+ * Initiates the resize process when a mousedown event occurs on a resize handle.
802
+ * Stores the initial state (dimensions, mouse position) and sets flags.
803
+ * @param {MouseEvent} event - The mousedown event triggering the resize.
804
+ * @param {'right' | 'bottom' | 'corner'} direction - Indicates which resize handle was activated.
805
+ */
806
+ onResizeStart(event: MouseEvent, direction: 'right' | 'left' | 'bottom' | 'corner'): void;
807
+ /**
808
+ * Handles the resizing logic as the mouse moves across the window.
809
+ * This listener is active globally on the window during a resize operation via @HostListener.
810
+ * Calculates and applies the new dimensions to the element based on mouse movement.
811
+ * @param {MouseEvent} event - The mousemove event passed by the HostListener.
812
+ */
813
+ onResize(event: MouseEvent): void;
814
+ /**
815
+ * Finalizes the resize operation when the mouse button is released anywhere on the window.
816
+ * Resets the resizing state flags. Triggered globally via @HostListener.
817
+ */
818
+ onResizeEnd(): void;
819
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainer, never>;
820
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicOverlayContainer, "app-magic-overlay-container", never, { "ModalComp": { "alias": "ModalComp"; "required": false; }; "ModalCompParameters": { "alias": "ModalCompParameters"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
821
+ }
822
+
823
+ declare class OverlayContainerMagicProvider {
824
+ getComponent(): typeof MagicOverlayContainer;
825
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainerMagicProvider, never>;
826
+ static ɵprov: i0.ɵɵInjectableDeclaration<OverlayContainerMagicProvider>;
827
+ }
828
+
829
+ /**
830
+ * Service managing alert and confirmation windows
831
+ * This is Magic's default provider
832
+ */
833
+ declare class ConfirmationComponentsMagicProvider {
834
+ /**
835
+ * Return true when use default javascript alert and confirmation or return false to provide custom components
836
+ * @returns true is we want to use default javascript alert and confirmation
837
+ */
838
+ showDefaultConfirmations(): boolean;
839
+ /**
840
+ * Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
841
+ * @returns component that will replace javascript Alert
842
+ */
843
+ getAlertComponent(): any;
844
+ /**
845
+ * Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
846
+ * @returns component that will replace javascript confirmation box
847
+ */
848
+ getConfirmtionComponent(): any;
849
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
850
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationComponentsMagicProvider>;
851
+ }
852
+
853
+ /**
854
+ * Service managing overlay windows
855
+ */
856
+ declare class OverlayWindowService {
857
+ protected componentList: ComponentListMagicService;
858
+ protected engineMagicService: EngineMagicService;
859
+ private magicLazyModuleLoader;
860
+ private injector;
861
+ private compiler;
862
+ private overlayContainerMagicProvider;
863
+ private confirmationComponentsMagicProvider;
864
+ constructor(componentList: ComponentListMagicService, engineMagicService: EngineMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, compiler: Compiler, overlayContainerMagicProvider: OverlayContainerMagicProvider, confirmationComponentsMagicProvider: ConfirmationComponentsMagicProvider);
865
+ private overlayWindowsContainerViewRef;
866
+ private overlayWindowFocusManager;
867
+ private changeDetectorRef;
868
+ init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element, changeDetectorRef: ChangeDetectorRef): void;
869
+ loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
870
+ open(formName: string, taskId: string, taskDescription: string): void;
871
+ close(commandStr: string): void;
872
+ /**
873
+ * Open Confirmation box
874
+ * @param title title of the box
875
+ * @param msg message
876
+ * @param style Magic style
877
+ */
878
+ openConfirmationBox(title: string, msg: string, style: Styles): void;
879
+ /**
880
+ * This method is called on close of the confirmation
881
+ * @param style Magic style
882
+ * @param result
883
+ */
884
+ finishConfirmation(style: Styles, result: boolean): void;
885
+ /**
886
+ * creates a modal component. Can be used for overlay, message box or confirmation box
887
+ * @param parameters component's parameters
888
+ * @param component components to create
889
+ */
890
+ private createModalComponent;
891
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
892
+ static ɵprov: i0.ɵɵInjectableDeclaration<OverlayWindowService>;
893
+ }
894
+
895
+ /**
896
+ * Main service to connect the UI with the Magic WebCLient
897
+ */
898
+ declare class TaskMagicService {
899
+ protected magic: EngineMagicService;
900
+ private overlayWindowService;
901
+ /**
902
+ * Service to provide table-related functionalities
903
+ */
904
+ tableService: any;
905
+ /**
906
+ * Collection of data for all controls
907
+ */
908
+ Records: any;
909
+ /**
910
+ * FormGroup collection for line mode
911
+ */
912
+ formGroups: Array<FormGroup>;
913
+ /**
914
+ * FormGroup for all controls in screen mode
915
+ */
916
+ ScreenModeControls: FormGroup;
917
+ /**
918
+ * @ignore
919
+ */
920
+ refreshDom: Subject<GuiCommand>;
921
+ /**
922
+ * @ignore
923
+ */
924
+ subscribeRefreshDom: Subscription;
925
+ /**
926
+ * @ignore
927
+ */
928
+ detectChanges: Subject<any>;
929
+ /**
930
+ * @ignore
931
+ */
932
+ subscribeInteractiveCommands: Subscription;
933
+ /**
934
+ * @ignore
935
+ */
936
+ interactiveCommands: Subject<GuiInteractive>;
937
+ /**
938
+ * @ignore
939
+ * This event is emitted when the selected row in a table changes.
940
+ */
941
+ OnSelectedRowChanged: EventEmitter<string>;
942
+ /**
943
+ * @ignore
944
+ */
945
+ customPropertiesSubject: Subject<any>;
946
+ /**
947
+ * @ignore
948
+ */
949
+ recordsCountChangeSubject: Subject<any>;
950
+ mgLoadSubject: Subject<any>;
951
+ /**
952
+ * @ignore
953
+ */
954
+ template: {
955
+ [id: string]: string;
956
+ };
957
+ /**
958
+ * Service to provide subform-related functionalities
959
+ */
960
+ mgSubformService: SubformMagicService;
961
+ /**
962
+ * Service to provide the title-change functionality
963
+ */
964
+ mgTitleService: TitleMagicService;
965
+ /**
966
+ * Service which enables getting/setting values from/to the Magic WebClient engine
967
+ */
968
+ mgAccessorService: AccessorMagicService;
969
+ mgInputDateFormat: any;
970
+ /**
971
+ * @ignore
972
+ */
973
+ oldPageSize: number;
974
+ /**
975
+ *
976
+ * @param magic
977
+ */
978
+ constructor(magic: EngineMagicService, overlayWindowService: OverlayWindowService);
979
+ /**
980
+ * returns true if used is logged in
981
+ * @returns
982
+ */
983
+ getIsLoggenIn(): boolean;
984
+ /**
985
+ * Id of task to which this service refers
986
+ */
987
+ _taskId: string;
988
+ /**
989
+ * returns the task Id
990
+ * @returns
991
+ */
992
+ get taskId(): string;
993
+ /**
994
+ * Sets the task Id
995
+ * @param value the task id to set
996
+ */
997
+ set taskId(value: string);
998
+ /**
999
+ * Returns the task's data in Screen mode
1000
+ * @returns
1001
+ */
1002
+ get ScreenControlsData(): any;
1003
+ /**
1004
+ * @ignore
1005
+ */
1006
+ settemplate(value: any): void;
1007
+ /**
1008
+ * Builds the FormControl for each and every control
1009
+ */
1010
+ buildScreenModeControls(): void;
1011
+ /**
1012
+ * Is the control a table control
1013
+ * @param id Id of the control
1014
+ * @returns
1015
+ */
1016
+ isTableControl(id: string): boolean;
1017
+ getMgInputDateFormat(): string;
1018
+ /**
1019
+ * Returns the FormControl of a control
1020
+ * @param guiRowid Id of the requested row
1021
+ * @param id Id of the control
1022
+ * @returns
1023
+ */
1024
+ getFormControl(guiRowid: string, id: string): AbstractControl;
1025
+ /**
1026
+ * handle the change of text for input control inside table
1027
+ * @param guiRowId Id of the row for which the FormControls are built
1028
+ * set the new value of the formcontrol
1029
+ */
1030
+ setInputTextValue(controlId: string, guiRowid: string, val: any): void;
1031
+ /**
1032
+ * Build the FormControls for a table row
1033
+ * @param guiRowId Id of the row for which the FormControls are built
1034
+ */
1035
+ buildTableRowControls(guiRowId: number): void;
1036
+ /**
1037
+ *
1038
+ * @ignore
1039
+ */
1040
+ updateRecordsBeforeCurrentView(value: number): void;
1041
+ /**
1042
+ * @ignore
1043
+ */
1044
+ setIncludesFirst(value: boolean): void;
1045
+ /**
1046
+ * @ignore
1047
+ */
1048
+ setIncludesLast(value: boolean): void;
1049
+ /**
1050
+ * @ignore
1051
+ */
1052
+ markRowAsCreated(guiRowId: number): void;
1053
+ /**
1054
+ * @ignore
1055
+ */
1056
+ markRowAsNotCreated(guiRowId: number): void;
1057
+ /**
1058
+ * @ignore
1059
+ */
1060
+ startRowEditing(guiRowId: number): void;
1061
+ /**
1062
+ * @ignore
1063
+ */
1064
+ stopRowEditing(guiRowId: number): void;
1065
+ /**
1066
+ * @ignore
1067
+ */
1068
+ isRowInRowEditing(guiRowId: string): boolean;
1069
+ /**
1070
+ * @ignore
1071
+ */
1072
+ setIsEmptyDataView(isEmpty: boolean): void;
1073
+ /**
1074
+ * Initialize the service to work with the task
1075
+ * @param taskId Id of the task
1076
+ * @param taskDescription
1077
+ */
1078
+ initTask(taskId: any, taskDescription: any): void;
1079
+ /**
1080
+ * @ignore
1081
+ */
1082
+ refreshView(): void;
1083
+ /**
1084
+ * Insert an event to the Magic WebClient event queue
1085
+ * @param guiEvent The event to insert
1086
+ */
1087
+ insertEvent(guiEvent: IGuiEvent): void;
1088
+ /**
1089
+ * @ignore
1090
+ */
1091
+ GetControlPictureMask(controlName: string): any;
1092
+ /**
1093
+ * @ignore
1094
+ */
1095
+ UploadFileToServer(fileContent: any, serverFileName: string): any;
1096
+ DownloadFileFromServer(serverFileName: string): Promise<ArrayBuffer>;
1097
+ /**
1098
+ * Validates the control value, using the Magic WebClient
1099
+ * @param controlName Id of validated control
1100
+ * @param value value to be validated
1101
+ * @returns If validation fails, returns error message, else returns null
1102
+ */
1103
+ ValidateControlValue(controlName: string, value: any): string;
1104
+ /**
1105
+ * @ignore
1106
+ */
1107
+ GetRangedValue(controlName: string, value: string): string;
1108
+ /**
1109
+ * @ignore
1110
+ */
1111
+ GetFldRanges(controlName: string): string;
1112
+ /**
1113
+ * returns the value of a property of the control
1114
+ * @param controlId Id of control
1115
+ * @param prop Property
1116
+ * @param guiRowId Row Id, if applicable
1117
+ * @returns Property value
1118
+ */
1119
+ getProperty(controlId: string, prop: HtmlProperties, guiRowId?: string): any;
1120
+ /**
1121
+ * @ignore
1122
+ */
1123
+ getPropertyStub(ControlsProperties: any, controlId: any, prop: any): any;
1124
+ /**
1125
+ * @ignore
1126
+ */
1127
+ getStyleStub(ControlsProperties: any, controlId: any, styleName: string): any;
1128
+ /**
1129
+ * Return the CSS classes used for this control
1130
+ * @param controlId Id of control
1131
+ * @param guiRowId Row Id, if applicable
1132
+ * @returns String containing the classes currently defined for this control
1133
+ */
1134
+ getClasses(controlId: string, guiRowId?: string): string;
1135
+ /**
1136
+ * Return the value of a style used for a control
1137
+ * @param controlId Id of control
1138
+ * @param styleName Name of style
1139
+ * @param guiRowId Row Id, if applicable
1140
+ * @returns value of style of the control
1141
+ */
1142
+ getStyle(controlId: string, styleName: string, guiRowId?: string): string;
1143
+ /**
1144
+ * Return the value of a control
1145
+ * @param controlId Id of control
1146
+ * @param guiRowId Row Id, if applicable
1147
+ * @returns value of the control
1148
+ */
1149
+ getValue(controlId: string, guiRowId?: string): any;
1150
+ /**
1151
+ * Return the formatted value of a control
1152
+ * @param controlId Id of control
1153
+ * @param guiRowId Row Id, if applicable
1154
+ * @returns value of the control
1155
+ */
1156
+ getFormattedValue(controlName: string, val: any, rowId?: string): string;
1157
+ /**
1158
+ * Sets the value of a control
1159
+ * @param controlId Id of control
1160
+ * @param guiRowId Row Id, if applicable
1161
+ * @param value Value to set
1162
+ */
1163
+ setValue(controlId: string, guiRowId: string, value: any): void;
1164
+ /**
1165
+ * @ignore
1166
+ */
1167
+ protected executeInteractiveCommand(guiInteractiveCommand: GuiInteractive): void;
1168
+ /**
1169
+ * @ignore
1170
+ */
1171
+ handleSetProperty(command: GuiCommand, isTableChild: boolean): void;
1172
+ executeCommand(command: GuiCommand): void;
1173
+ /**
1174
+ custom validator
1175
+ */
1176
+ customValidator(rowid: string, id: string): ValidatorFn;
1177
+ /**
1178
+ * COnvert a value from Magic format to native format
1179
+ * @param controlId Id of control
1180
+ * @param rowId Row Id, if applicable
1181
+ * @param val Value to convert
1182
+ * @returns Converted value
1183
+ */
1184
+ ConvertValToNative(controlId: string, rowId: number, val: any): any;
1185
+ /**
1186
+ * Convert a value from native to Magic format
1187
+ * @param controlId Id of control
1188
+ * @param rowId Row Id, if applicable
1189
+ * @param val Value to convert
1190
+ * @returns Converted value
1191
+ */
1192
+ ConvertValFromNative(controlId: string, rowId: number, val: any): any;
1193
+ /**
1194
+ * Handle resize and also fetch chunk of records if having an empty view.
1195
+ * @ignore
1196
+ * @param pageSize : PageSize
1197
+ * @param topGuiRowId : GuiRowId of first record in view.
1198
+ */
1199
+ resize(pageSize: number, topGuiRowId: number): void;
1200
+ /**
1201
+ * Fetches data for new table rows when scrolling done
1202
+ */
1203
+ onScrollDown(): void;
1204
+ /**
1205
+ * Sets the new browser window title
1206
+ * @param newTitle New window title
1207
+ */
1208
+ setTitle(newTitle: string): void;
1209
+ /**
1210
+ * @ignore
1211
+ */
1212
+ getGuiRowId(dvRowId: number, isTableControl: boolean): number;
1213
+ /**
1214
+ *
1215
+ * @ignore
1216
+ */
1217
+ getDvRowId(guiRowId: number): number;
1218
+ /**
1219
+ * Clean up the service when it is no longer needed
1220
+ */
1221
+ dispose(): void;
1222
+ /**
1223
+ * Handle the Combobox "change" event
1224
+ * @param event The event received from the UI
1225
+ * @param idx Id of the control raising the event
1226
+ * @param line Row Id, if applicable
1227
+ */
1228
+ onComboboxSelectionChanged(event: Event, idx: string, line: number): void;
1229
+ /**
1230
+ * Handle the Listbox "change" event
1231
+ * @param event The event received from the UI
1232
+ * @param idx Id of the control raising the event
1233
+ */
1234
+ onListBoxSelectionChanged(event: Event, idx: string): void;
1235
+ /**
1236
+ * Handle the Checkbox "change" event
1237
+ * @param event The event received from the UI
1238
+ * @param idx Id of the control raising the event
1239
+ * @param rowId Row Id, if applicable
1240
+ */
1241
+ onCheckChanged(event: Event, idx: string, rowId: number): void;
1242
+ /**
1243
+ * Handle tab selection change, caused by UI events
1244
+ * @param idx Id of the control raising the event
1245
+ * @param layer Id of selected tabpage
1246
+ */
1247
+ mgOnTabSelectionChanged(idx: string, layer: number): void;
1248
+ /**
1249
+ * Handle the Radio button "change" event
1250
+ * @param event The event received from the UI
1251
+ * @param idx Id of the control raising the event
1252
+ */
1253
+ mgOnRadioSelectionChanged(idx: string): void;
1254
+ /**
1255
+ * Inserts the "close" event to the magic WebClient event queue
1256
+ */
1257
+ close(): void;
1258
+ /**
1259
+ * @ignore
1260
+ */
1261
+ IsStub(): boolean;
1262
+ /**
1263
+ * @ignore
1264
+ */
1265
+ jsonData: string;
1266
+ /**
1267
+ * @ignore
1268
+ */
1269
+ saveData(data: string): void;
1270
+ /**
1271
+ * @ignore
1272
+ */
1273
+ createData(): void;
1274
+ /**
1275
+ * @ignore
1276
+ */
1277
+ loadStubData(stubData: any): void;
1278
+ /**
1279
+ * @ignore
1280
+ */
1281
+ loadData(): void;
1282
+ /**
1283
+ * @ignore
1284
+ */
1285
+ setStubValue(guiRowId: number, fc: FormControl, name: string): void;
1286
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskMagicService, never>;
1287
+ static ɵprov: i0.ɵɵInjectableDeclaration<TaskMagicService>;
1288
+ }
1289
+
1290
+ /**
1291
+ * Implements various table-related functionalities
1292
+ */
1293
+ declare class TableMagicService {
1294
+ protected componentList: ComponentListMagicService;
1295
+ protected task: TaskMagicService;
1296
+ selectedItem: any;
1297
+ private chunkSize;
1298
+ /**
1299
+ *
1300
+ * @param componentList Component-mapping service
1301
+ * @param task Magic task service
1302
+ */
1303
+ constructor(componentList: ComponentListMagicService, task: TaskMagicService);
1304
+ shouldOpenFieldTextEditor: boolean;
1305
+ /**
1306
+ * Refreshes the DataSource
1307
+ */
1308
+ refreshDataSource(): void;
1309
+ /**
1310
+ * Returns the table page size
1311
+ * chunkSize as default value for non-paginated tables.
1312
+ */
1313
+ getPageSize(): number;
1314
+ setChunkSize(size: number): void;
1315
+ /**
1316
+ * Returns max no of rows in the table.
1317
+ */
1318
+ getMaxRowsInTable(): number;
1319
+ /**
1320
+ * Selects the specified row
1321
+ * @param rowId The row to select
1322
+ */
1323
+ selectRow(rowId: string): void;
1324
+ getSelectedRow(): any;
1325
+ /**
1326
+ * Returns the selected row
1327
+ */
1328
+ selectedRow(): any;
1329
+ /**
1330
+ * Selects the specified page
1331
+ * @param pageId The page to select
1332
+ */
1333
+ selectPage(pageId: number): void;
1334
+ /**
1335
+ * Returns whether a dialog should be opened for the HTML element
1336
+ * @param element The HTML element for which a dialog may be needed
1337
+ * @returns
1338
+ */
1339
+ OpenDialogForControl(element: HTMLElement): boolean;
1340
+ /**
1341
+ * Returns the dialog used to edit values
1342
+ */
1343
+ getDialog(): any;
1344
+ /**
1345
+ * Handles the table "scrolled" event
1346
+ */
1347
+ onScrollDown(): void;
1348
+ /**
1349
+ * To be overwitten in specific implelemtations
1350
+ */
1351
+ sortData(e: any): void;
1352
+ /**
1353
+ * To be overwitten in specific implelemtations
1354
+ */
1355
+ mgOnPaginateChange(e: any, changeSelectedRow?: boolean): void;
1356
+ mgOptionChanged(e: any): void;
1357
+ /**
1358
+ * Change the number of lines in a table
1359
+ * @param size New number of lines in table
1360
+ */
1361
+ updateTableSize(size: number): void;
1362
+ /**
1363
+ * @ignore
1364
+ */
1365
+ setTableTopIndex(value: number): void;
1366
+ /**
1367
+ * @ignore
1368
+ */
1369
+ getTableTopIndex(): number;
1370
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableMagicService, never>;
1371
+ static ɵprov: i0.ɵɵInjectableDeclaration<TableMagicService>;
1372
+ }
1373
+
1374
+ /**
1375
+ * Central place for adding the Magic services
1376
+ */
1377
+ declare class MagicServices {
1378
+ task: TaskMagicService;
1379
+ subformService: SubformMagicService;
1380
+ tableService: TableMagicService;
1381
+ titleService: TitleMagicService;
1382
+ mgAccessorService: AccessorMagicService;
1383
+ /**
1384
+ * @ignore
1385
+ */
1386
+ constructor(task: TaskMagicService, subformService: SubformMagicService, tableService: TableMagicService, titleService: TitleMagicService, mgAccessorService: AccessorMagicService);
1387
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicServices, never>;
1388
+ static ɵprov: i0.ɵɵInjectableDeclaration<MagicServices>;
1389
+ }
1390
+
1391
+ /**
1392
+ * Base component representing a Magic task
1393
+ */
1394
+ declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit {
1395
+ protected ref: ChangeDetectorRef;
1396
+ magicServices: MagicServices;
1397
+ /**
1398
+ * Id of task, used for initializing the task service
1399
+ */
1400
+ taskIdParam: string;
1401
+ /**
1402
+ * @ignore
1403
+ */
1404
+ taskDescription: string;
1405
+ /**
1406
+ * @ignore
1407
+ */
1408
+ magicProperties: typeof MagicProperties;
1409
+ /**
1410
+ *
1411
+ * @param ref changes-detector object
1412
+ * @param magicServices Access point for all Magic services
1413
+ */
1414
+ constructor(ref: ChangeDetectorRef, magicServices: MagicServices);
1415
+ /**
1416
+ * Returns the Magic task service
1417
+ * @returns
1418
+ */
1419
+ get task(): TaskMagicService;
1420
+ /**
1421
+ * Returns the Magic subform service
1422
+ * @returns
1423
+ */
1424
+ get mgSub(): SubformMagicService;
1425
+ /**
1426
+ * Returns the Magic table service
1427
+ * @returns
1428
+ */
1429
+ get tableService(): TableMagicService;
1430
+ /**
1431
+ * Returns the Magic accessor service
1432
+ * @returns
1433
+ */
1434
+ get mg(): AccessorMagicService;
1435
+ /**
1436
+ * Returns the task Id
1437
+ * @returns
1438
+ */
1439
+ get taskId(): string;
1440
+ /**
1441
+ * Returns the FormGroup for screen-mode forms
1442
+ * @returns
1443
+ */
1444
+ get screenFormGroup(): FormGroup;
1445
+ /**
1446
+ * Interface implementation
1447
+ */
1448
+ ngOnInit(): void;
1449
+ /**
1450
+ * @ignore
1451
+ */
1452
+ createFormControlsAccessor(formGroup: FormGroup): void;
1453
+ /**
1454
+ * @ignore
1455
+ */
1456
+ setInputDateFormat(): void;
1457
+ /**
1458
+ * This method is called when the value of any custom property is updated in Magic
1459
+ * propertyName : name of property which is updated. The format is <controlname>~<propertyname>
1460
+ * rowId : row number of the updated property for controls in table control (0 for controls outside table)
1461
+ * value : updated value of the property
1462
+ * @returns : void
1463
+ * To use the method override it in your component and check the property name and write you code ..for eg
1464
+ * if(propertyName == 'controlname~propertyName') {// your code}
1465
+ * else { // your code}
1466
+ */
1467
+ PropertyChanged(propertyName: string, rowId: number, value: any): void;
1468
+ /**
1469
+ * Records count change subject is subscribed to change in its value. This method will be called
1470
+ * as the value of records count is received at from server.
1471
+ * @returns : void
1472
+ * To use the method override it in your component.
1473
+ */
1474
+ RecordsCountChanged(recordsCount: number): void;
1475
+ /**
1476
+ * This method will be called once engine informs UI about loading of first set of data is sent to client
1477
+ * and client has reached its first idle time.
1478
+ * @returns : void
1479
+ * To use the method override it in your component.
1480
+ */
1481
+ mgOnLoad(): void;
1482
+ /**
1483
+ * Interface implementation
1484
+ */
1485
+ ngAfterViewInit(): void;
1486
+ ngAfterContentChecked(): void;
1487
+ /**
1488
+ * Interface implementation
1489
+ */
1490
+ ngOnDestroy(): void;
1491
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskBaseMagicComponent, never>;
1492
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskBaseMagicComponent, "task-magic", never, { "taskIdParam": { "alias": "taskIdParam"; "required": false; }; "taskDescription": { "alias": "taskDescription"; "required": false; }; }, {}, never, never, false, never>;
1493
+ }
1494
+
1495
+ /**
1496
+ * @ignore
1497
+ */
1498
+ declare class RowMagicDirective implements OnInit, OnDestroy {
1499
+ protected _task: TaskMagicService;
1500
+ protected element: ElementRef;
1501
+ rowId: string;
1502
+ /**
1503
+ * The HTML element connected to this directive
1504
+ */
1505
+ protected htmlElement: HTMLElement;
1506
+ /**
1507
+ * @ignore
1508
+ */
1509
+ private rowChangedSubscriber;
1510
+ constructor(_task: TaskMagicService, element: ElementRef);
1511
+ /**
1512
+ * Initializes this object
1513
+ */
1514
+ ngOnInit(): void;
1515
+ private isInView;
1516
+ /**
1517
+ * Cleanup
1518
+ */
1519
+ ngOnDestroy(): void;
1520
+ onClick($event: any): void;
1521
+ static ɵfac: i0.ɵɵFactoryDeclaration<RowMagicDirective, never>;
1522
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RowMagicDirective, "[magicRow]", never, { "rowId": { "alias": "magicRow"; "required": false; }; }, {}, never, never, false, never>;
1523
+ }
1524
+
1525
+ /**
1526
+ * Connects HTML elements to the Magic Web Client engine
1527
+ */
1528
+ declare class MagicDirective implements OnInit, OnDestroy {
1529
+ protected _task: TaskMagicService;
1530
+ protected element: ElementRef;
1531
+ protected renderer: Renderer2;
1532
+ protected vcRef: ViewContainerRef;
1533
+ platform: Platform;
1534
+ protected magicRow: RowMagicDirective;
1535
+ set magic(val: any);
1536
+ /**
1537
+ * This flag is used when we only want to register to events, but do not want to execute commands sent from server
1538
+ */
1539
+ set eventsOnly(val: any);
1540
+ /**
1541
+ * pollTime: after which value will be sent to magic
1542
+ */
1543
+ pollTime: number;
1544
+ /**
1545
+ * Row id of the control, for when it is on a table
1546
+ */
1547
+ rowId: string;
1548
+ /**
1549
+ *
1550
+ */
1551
+ /**
1552
+ * The HTML element connected to this directive
1553
+ */
1554
+ protected htmlElement: HTMLElement;
1555
+ /**
1556
+ * Magic's component handling this control
1557
+ */
1558
+ component: TaskBaseMagicComponent;
1559
+ /**
1560
+ * Collection of event handlers for this element
1561
+ */
1562
+ private eventHandlers;
1563
+ /**
1564
+ * Id of this element
1565
+ */
1566
+ id: string;
1567
+ /**
1568
+ * @ignore
1569
+ */
1570
+ protected selector: string;
1571
+ /**
1572
+ * @ignore
1573
+ */
1574
+ subscribeRefreshDom: Subscription;
1575
+ private focusUnlistener;
1576
+ eventsOnlyVal: boolean;
1577
+ static opened: boolean;
1578
+ static noOfAutoCompleteBoxesOpened: number;
1579
+ subscribeInteractiveCommands: Subscription;
1580
+ /**
1581
+ *
1582
+ * @param _task The task service
1583
+ * @param element The element for which the directive is applied
1584
+ * @param renderer Renderer for the element
1585
+ * @param vcRef
1586
+ * @param platform
1587
+ * @param magicRow
1588
+ */
1589
+ constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, platform: Platform, magicRow: RowMagicDirective);
1590
+ /**
1591
+ * Get the task service
1592
+ * @returns
1593
+ */
1594
+ get task(): TaskMagicService;
1595
+ /**
1596
+ * Register to the events this element may need to handle
1597
+ */
1598
+ protected regEvents(): void;
1599
+ /**
1600
+ * Handle focus event
1601
+ */
1602
+ private OnFocus;
1603
+ /**
1604
+ * Is the command's element the same as this directive's element
1605
+ * @param command
1606
+ * @returns true/false
1607
+ */
1608
+ IsSameElement(command: any): boolean;
1609
+ /**
1610
+ * Is the command's element the same as this directive's component
1611
+ * @param command
1612
+ * @returns true/false
1613
+ */
1614
+ private IsSameComponent;
1615
+ /**
1616
+ * @ignore
1617
+ */
1618
+ private regUpdatesUI;
1619
+ /**
1620
+ * Initializes this object
1621
+ */
1622
+ ngOnInit(): void;
1623
+ /**
1624
+ * Handles the commands received from the Magic WebClient engine
1625
+ * @param command
1626
+ */
1627
+ handleCommand(command: GuiCommand): void;
1628
+ /**
1629
+ * handle the interactive commands like CallJS
1630
+ */
1631
+ handleInteractiveCommands(command: GuiInteractive): void;
1632
+ /**
1633
+ * Handle the Magic set-property command
1634
+ * @param command
1635
+ */
1636
+ handleSetProperty(command: GuiCommand): void;
1637
+ /**
1638
+ * Cleanup
1639
+ */
1640
+ ngOnDestroy(): void;
1641
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicDirective, [null, null, null, null, null, { optional: true; }]>;
1642
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicDirective, "[magic]", never, { "magic": { "alias": "magic"; "required": false; }; "eventsOnly": { "alias": "eventsOnly"; "required": false; }; "pollTime": { "alias": "pollTime"; "required": false; }; "rowId": { "alias": "rowId"; "required": false; }; }, {}, never, never, false, never>;
1643
+ }
1644
+
1645
+ /**
1646
+ * Directive for checkboxes, to handle the 'change' event
1647
+ */
1648
+ declare class CheckboxMagicDirective {
1649
+ protected magicDirective: MagicDirective;
1650
+ private el;
1651
+ protected task: TaskMagicService;
1652
+ threeState: boolean;
1653
+ private subscribeRefreshDom;
1654
+ private isIndeterminate;
1655
+ /**
1656
+ * @ignore
1657
+ */
1658
+ constructor(magicDirective: MagicDirective, el: ElementRef, task: TaskMagicService);
1659
+ /**
1660
+ * Handles the Checkbox 'change' event - pass it to the Magic engine
1661
+ */
1662
+ onChange($event: any): void;
1663
+ ngOnInit(): void;
1664
+ private regUpdatesUI;
1665
+ handleCommand(command: GuiCommand): void;
1666
+ private handleThreeState;
1667
+ /**
1668
+ * Cleanup
1669
+ */
1670
+ ngOnDestroy(): void;
1671
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxMagicDirective, never>;
1672
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxMagicDirective, " input[type=checkbox][magic]:not([noFormControl])", never, { "threeState": { "alias": "threeState"; "required": false; }; }, {}, never, never, false, never>;
1673
+ }
1674
+
1675
+ /**
1676
+ * Directive for checkboxes which should not have a form control
1677
+ */
1678
+ declare class CheckboxNoFormControlMagicDirective {
1679
+ protected magicDirective: MagicDirective;
1680
+ constructor(magicDirective: MagicDirective);
1681
+ /**
1682
+ * Handle the 'Checkbox' change event - pass it to the Magic engine
1683
+ */
1684
+ onChange($event: any): void;
1685
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxNoFormControlMagicDirective, never>;
1686
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxNoFormControlMagicDirective, " input[type=checkbox][magic]:([noFormControl]) ", never, {}, {}, never, never, false, never>;
1687
+ }
1688
+
1689
+ /**
1690
+ * Directive for non-checkbox input controls which do not have a form control
1691
+ */
1692
+ declare class InputNoFormControlMagicDirective {
1693
+ protected magicDirective: MagicDirective;
1694
+ constructor(magicDirective: MagicDirective);
1695
+ /**
1696
+ * Handles the 'change' event - pass it to the Magic engine
1697
+ */
1698
+ onChange($event: any): void;
1699
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputNoFormControlMagicDirective, never>;
1700
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputNoFormControlMagicDirective, "input[magic]:([noFormControl]):not([type=checkbox]), textarea[magic]:([noFormControl]):not([type=checkbox])", never, {}, {}, never, never, false, never>;
1701
+ }
1702
+
1703
+ /**
1704
+ * Directive for comboboxes, to handle the 'change' event
1705
+ */
1706
+ declare class ComboboxMagicDirective {
1707
+ protected magicDirective: MagicDirective;
1708
+ constructor(magicDirective: MagicDirective);
1709
+ /**
1710
+ * Handles the Combobox 'change' event - pass it to the Magic engine
1711
+ */
1712
+ onChange($event: any): void;
1713
+ /**
1714
+ * To refresh Combobox selection as per selected property.
1715
+ */
1716
+ onComboboxItemsListChanged(): void;
1717
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxMagicDirective, never>;
1718
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxMagicDirective, "select[magic]:not([multiple])", never, {}, {}, never, never, false, never>;
1719
+ }
1720
+
1721
+ /**
1722
+ * @ignore
1723
+ */
1724
+ declare const CHECKBOX_VALUE_ACCESSOR: any;
1725
+ /**
1726
+ * Value accessor for Checkbox without a FormControl
1727
+ */
1728
+ declare class MagicCheckboxControlValueAccessor extends CheckboxControlValueAccessor {
1729
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicCheckboxControlValueAccessor, never>;
1730
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicCheckboxControlValueAccessor, " input[type=checkbox][magic]:not([formControlName]):not([no-form-control]), input[type=checkbox][magic]:not([formControl]), input[type=checkbox][magic]:not([ngModel]) ", never, {}, {}, never, never, false, never>;
1731
+ }
1732
+
1733
+ /**
1734
+ * @ignore
1735
+ */
1736
+ declare const MAGIC_DEFAULT_VALUE_ACCESSOR: any;
1737
+ /**
1738
+ * @ignore
1739
+ */
1740
+ declare class MagicDefaultValueAccessor extends DefaultValueAccessor {
1741
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicDefaultValueAccessor, never>;
1742
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicDefaultValueAccessor, " input[magic]:not([type=checkbox]):not([formControlName]):not([no-form-control]), textarea[magic]:not([formControlName]):not([noFormControl]):not([no-form-control]) ", ["magic"], {}, {}, never, never, false, never>;
1743
+ }
1744
+
1745
+ declare const DATE_VALUE_ACCESSOR: any;
1746
+ /**
1747
+ * The accessor for writing a value and listening to changes on a date input element
1748
+ *
1749
+ * ### Example
1750
+ * `<input type="date" name="birthday" ngModel dateInput>`
1751
+ * OR
1752
+ * `<input type="date" formControlName="birthday" dateInput>`
1753
+ */
1754
+ declare class DateValueAccessor implements ControlValueAccessor {
1755
+ private renderer;
1756
+ private elementRef;
1757
+ protected magicDir: MagicDirective;
1758
+ protected _task: TaskMagicService;
1759
+ onChange: (_: any) => void;
1760
+ onTouched: () => void;
1761
+ onBlurEvent(event: any): void;
1762
+ constructor(renderer: Renderer2, elementRef: ElementRef, magicDir: MagicDirective, _task: TaskMagicService);
1763
+ /** Format year, if user enters 2 digits instead of 4 digits as per the century given in Magic.ini file */
1764
+ formatDateWithCentury(userInput: string, century: number, control: AbstractControl): void;
1765
+ /** Writes a new value to the element (model -> view) */
1766
+ writeValue(value: Date): void;
1767
+ /** Registers a callback function, called when value changes (view -> model) */
1768
+ registerOnChange(fn: (_: any) => void): void;
1769
+ /** Registers a callback function, called when the control is blurred */
1770
+ registerOnTouched(fn: () => void): void;
1771
+ /** Enables or disables the element when the control status changes */
1772
+ setDisabledState(isDisabled: boolean): void;
1773
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateValueAccessor, never>;
1774
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateValueAccessor, "[dateInput]", never, {}, {}, never, never, false, never>;
1775
+ }
1776
+
1777
+ /**
1778
+ * This is a base class for the magic alert components
1779
+ */
1780
+ declare class BaseMagicAlertComponent {
1781
+ /**
1782
+ * title of the component
1783
+ */
1784
+ title: string;
1785
+ /**
1786
+ * message of the component
1787
+ */
1788
+ message: string;
1789
+ /**
1790
+ * onClose Event - to be raised when the component is closed
1791
+
1792
+ */
1793
+ onClose: EventEmitter<void>;
1794
+ /**
1795
+ * close magic alert
1796
+ */
1797
+ OnClose(): void;
1798
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicAlertComponent, never>;
1799
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicAlertComponent, "mg-base-alert", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
1800
+ }
1801
+
1802
+ /***
1803
+ * This is sample component for the alert message
1804
+ */
1805
+ declare class MagicAlertComponent extends BaseMagicAlertComponent {
1806
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicAlertComponent, never>;
1807
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicAlertComponent, "sample-magic-alert-component", never, {}, {}, never, never, false, never>;
1808
+ }
1809
+
1810
+ /**
1811
+ * This is a base class for the magic confirm components
1812
+ */
1813
+ declare class BaseMagicConfirmComponent {
1814
+ /**
1815
+ * title of the component
1816
+ */
1817
+ title: string;
1818
+ /**
1819
+ * message of the component
1820
+ */
1821
+ message: string;
1822
+ /**
1823
+ * onClose Event - to be raised when the component is closed
1824
+ * should pass true when OK is pressed and false when cancel is pressed
1825
+ */
1826
+ onClose: EventEmitter<boolean>;
1827
+ /**
1828
+ * raises close Event
1829
+ * @param result true when OK is pressed and false when cancel is pressed
1830
+ *
1831
+ */
1832
+ OnClose(result: any): void;
1833
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicConfirmComponent, never>;
1834
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicConfirmComponent, "mg-base-confirm", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
1835
+ }
1836
+
1837
+ /***
1838
+ * This is sample component for the confirmation box
1839
+ */
1840
+ declare class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
1841
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicConfirmationBoxComponent, never>;
1842
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicConfirmationBoxComponent, "sample-magic-confirmation-box", never, {}, {}, never, never, false, never>;
1843
+ }
1844
+
1845
+ declare class MagicOverlayContainerWrapper implements IMagicViewContainerRef {
1846
+ private componentListMagicService;
1847
+ private magicLazyModuleLoader;
1848
+ private injector;
1849
+ private changeDetectorRef;
1850
+ private compiler;
1851
+ /**
1852
+ *
1853
+ */
1854
+ Component: any;
1855
+ /**
1856
+ *
1857
+ */
1858
+ Parameters: any;
1859
+ private OverlayTypeParam;
1860
+ private onClose;
1861
+ /**
1862
+ * HTML to be displayed in the modal window
1863
+ */
1864
+ overlayContentViewContainerRef: ViewContainerRef;
1865
+ overlayContainerWrapperElementRef: ElementRef;
1866
+ /**
1867
+ * @ignore
1868
+ * contais data of allowed base components to use
1869
+ */
1870
+ static allowedBaseComps: Map<number, {
1871
+ comp: any;
1872
+ error: string;
1873
+ }>;
1874
+ /**
1875
+ *
1876
+ * @param componentFactoryResolver
1877
+ */
1878
+ constructor(componentListMagicService: ComponentListMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, changeDetectorRef: ChangeDetectorRef, compiler: Compiler);
1879
+ /**
1880
+ *
1881
+ */
1882
+ ngOnInit(): void;
1883
+ private loadComponent;
1884
+ setViewContainerRef(vcRef: ViewContainerRef): void;
1885
+ GetRootElement(): HTMLElement;
1886
+ DetectChanges(): void;
1887
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainerWrapper, never>;
1888
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicOverlayContainerWrapper, "app-magic-overlay-container-wrapper", never, { "Component": { "alias": "Component"; "required": false; }; "Parameters": { "alias": "Parameters"; "required": false; }; "OverlayTypeParam": { "alias": "OverlayTypeParam"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
1889
+ }
1890
+
1891
+ /**
1892
+ * This service supports custom actions on magic exit
1893
+ */
1894
+ declare class ExitMagicService {
1895
+ /**
1896
+ * Override this method to implement custom logic on magic exit
1897
+ */
1898
+ exitMagic(): void;
1899
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExitMagicService, never>;
1900
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExitMagicService>;
1901
+ }
1902
+
1903
+ /**
1904
+ * Root Magic component
1905
+ */
1906
+ declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerRef {
1907
+ protected engineMagicService: EngineMagicService;
1908
+ protected componentList: ComponentListMagicService;
1909
+ protected changeDetectorRef: ChangeDetectorRef;
1910
+ private titleService;
1911
+ private overlayWindowService;
1912
+ private httpClient;
1913
+ private pendingCommandsCollector;
1914
+ private route;
1915
+ private router;
1916
+ exitMagicService: ExitMagicService;
1917
+ /**
1918
+ * Root component to be displayed in the window
1919
+ */
1920
+ RootComponent: Component;
1921
+ /**
1922
+ * parameters for the Root Component
1923
+ */
1924
+ RootComponentParameters: any;
1925
+ overlayWindowsContainerViewRef: ViewContainerRef;
1926
+ rootMagicElementRef: ElementRef;
1927
+ SpinnerTemplate: TemplateRef<any>;
1928
+ showSpinner: boolean;
1929
+ magicEngineTerminated: boolean;
1930
+ /**
1931
+ *
1932
+ * @param magic Magic's service
1933
+ * @param componentList Magic component list
1934
+ * @param changeDetectorRef Changes detector
1935
+ * @param titleService Title setting service
1936
+ * @param httpClient The native httpClient instance
1937
+ * @param exitMagicService Magic exit service
1938
+ */
1939
+ constructor(engineMagicService: EngineMagicService, componentList: ComponentListMagicService, changeDetectorRef: ChangeDetectorRef, titleService: Title, overlayWindowService: OverlayWindowService, httpClient: HttpClient, pendingCommandsCollector: CommandsCollectorMagicService, route: ActivatedRoute, router: Router, exitMagicService: ExitMagicService);
1940
+ /**
1941
+ * Before-unload event listener
1942
+ * @param event
1943
+ */
1944
+ onBeforeUnload(event: any): string;
1945
+ onUnload(event: any): void;
1946
+ ngAfterViewInit(): void;
1947
+ setViewContainerRef(vcRef: ViewContainerRef): void;
1948
+ /**
1949
+ * Initialization of Magic mechanisms
1950
+ */
1951
+ initialize(): void;
1952
+ /**
1953
+ * Set the title
1954
+ */
1955
+ setTitle(): void;
1956
+ /**
1957
+ * Set the component according to requested form
1958
+ * @param formName Name of the form to open
1959
+ * @param taskId Id of opening task
1960
+ * @param taskDescription TODO
1961
+ * @param isModal whether modal window is being opened
1962
+ */
1963
+ private setComponent;
1964
+ /**
1965
+ * @ignore
1966
+ */
1967
+ registerUICommands(): void;
1968
+ /**
1969
+ * Execute commands received from the Magic WebClient engine
1970
+ * @param command
1971
+ */
1972
+ executeCommand(command: GuiCommand): void;
1973
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicShellComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
1974
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicShellComponent, "magic-root", never, { "SpinnerTemplate": { "alias": "SpinnerTemplate"; "required": false; }; }, {}, never, never, false, never>;
1975
+ }
1976
+
1977
+ /**
1978
+ * Represents a Magic subform
1979
+ */
1980
+ declare class SubformMagicComponent {
1981
+ private vcRef;
1982
+ protected mgSub: SubformMagicService;
1983
+ /**
1984
+ * @ignore
1985
+ */
1986
+ id: string;
1987
+ /**
1988
+ * @ignore
1989
+ */
1990
+ set magic(val: any);
1991
+ /**
1992
+ * @ignore
1993
+ */
1994
+ component: TaskBaseMagicComponent;
1995
+ /**
1996
+ * @ignore
1997
+ */
1998
+ constructor(vcRef: ViewContainerRef, mgSub: SubformMagicService);
1999
+ /**
2000
+ * @ignore
2001
+ */
2002
+ get Component(): Component;
2003
+ /**
2004
+ * @ignore
2005
+ */
2006
+ get Parameters(): any;
2007
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubformMagicComponent, never>;
2008
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubformMagicComponent, "magic-subform", never, { "magic": { "alias": "magic"; "required": false; }; }, {}, never, never, false, never>;
2009
+ }
2010
+
2011
+ /**
2012
+ * Represents a Magic subform
2013
+ */
2014
+ declare class ErrorMagicComponent {
2015
+ protected _task: TaskMagicService;
2016
+ mgService: AccessorMagicService;
2017
+ protected changeDetectorRef: ChangeDetectorRef;
2018
+ /**
2019
+ * @ignore
2020
+ */
2021
+ id: string;
2022
+ rowId: string;
2023
+ /**
2024
+ * @ignore
2025
+ */
2026
+ set magic(val: any);
2027
+ set rowId1(val: any);
2028
+ defaultDisplay: boolean;
2029
+ set CustomContent(innerComponent: ElementRef);
2030
+ /**
2031
+ * @ignore
2032
+ */
2033
+ constructor(_task: TaskMagicService, mgService: AccessorMagicService, changeDetectorRef: ChangeDetectorRef);
2034
+ /**
2035
+ * returns true if the html element has no children
2036
+ * @param element
2037
+ */
2038
+ isEmpty(element: HTMLElement): boolean;
2039
+ /**
2040
+ * @ignore
2041
+ */
2042
+ HasErrors(id: string): boolean;
2043
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMagicComponent, never>;
2044
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMagicComponent, "mgError", never, { "magic": { "alias": "magic"; "required": false; }; "rowId1": { "alias": "rowId"; "required": false; }; }, {}, never, ["*"], false, never>;
2045
+ }
2046
+
2047
+ /**
2048
+ * @ignore
2049
+ */
2050
+ declare class NoControlMagicDirective extends MagicDirective {
2051
+ set magic(val: any);
2052
+ constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, platform: Platform, magicRow: RowMagicDirective);
2053
+ regEvents(): void;
2054
+ isTabControl(): boolean;
2055
+ isRadio(): boolean;
2056
+ handleCommand(command: GuiCommand): void;
2057
+ handleSetProperty(command: GuiCommand): void;
2058
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoControlMagicDirective, [null, null, null, null, null, { optional: true; }]>;
2059
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NoControlMagicDirective, "[magicnc]", never, { "magic": { "alias": "magicnc"; "required": false; }; }, {}, never, never, false, never>;
2060
+ }
2061
+
2062
+ /**
2063
+ * Perform Magic validation on input controls which hold alphanumeric strings
2064
+ */
2065
+ declare class MgformatMagicDirective {
2066
+ protected magicDir: MagicDirective;
2067
+ protected _task: TaskMagicService;
2068
+ datePasteFlag: boolean;
2069
+ /**
2070
+ * @ignore
2071
+ */
2072
+ constructor(magicDir: MagicDirective, _task: TaskMagicService);
2073
+ ngAfterViewInit(): void;
2074
+ /**
2075
+ * @ignore
2076
+ */
2077
+ /**
2078
+ * This can be used to set pattern
2079
+ * On input, verifies the input matches the required mask
2080
+ */
2081
+ onFocusEvent($event: any): void;
2082
+ onPaste(event: ClipboardEvent): void;
2083
+ onInputEvent(event: any): void;
2084
+ dateMasking(event: any): void;
2085
+ /**
2086
+ * @ignore
2087
+ */
2088
+ onChangeEvent(event: any): void;
2089
+ onBlurEvent(event: any): void;
2090
+ /** Format year, if user enters 2 digits instead of 4 digits as per the century given in Magic.ini file */
2091
+ formatDateWithCentury(userInput: string, century: number, control: AbstractControl): void;
2092
+ updateYear(day: number, month: string, year: number, separator: string, century: number, centuryVal: number, control: AbstractControl): void;
2093
+ getDateSegments1(dateArray: any): any[];
2094
+ getDateSegments2(dateArray: any): any[];
2095
+ getDateSegments3(dateArray: any): any[];
2096
+ getDateSegments4(dateArray: any): any[];
2097
+ /**
2098
+ * @ignore
2099
+ */
2100
+ calculatePattern(): void;
2101
+ formatDate(pic: PIC): void;
2102
+ /**
2103
+ * @ignore
2104
+ */
2105
+ formatAlphaUnicode(control: AbstractControl): void;
2106
+ /**
2107
+ * @ignore
2108
+ */
2109
+ formatBoolean(control: AbstractControl): void;
2110
+ /**
2111
+ * @ignore
2112
+ */
2113
+ generatePattern(attribute: StorageAttribute, pic: PIC): string;
2114
+ /**
2115
+ * @ignore
2116
+ */
2117
+ generatePatternForNumber(pic: PIC): string;
2118
+ /**
2119
+ * @ignore
2120
+ */
2121
+ isPatternGenerationNeeded(attr: StorageAttribute, pic: PIC): boolean;
2122
+ /**
2123
+ * @ignore
2124
+ */
2125
+ generatePatternForAlpha(pic: PIC): string;
2126
+ /**
2127
+ * @ignore
2128
+ */
2129
+ getDirectiveCount(mask: string, idx: number, pattern: string, changeInPattern: RefParam<boolean>): number;
2130
+ /**
2131
+ * @ignore
2132
+ */
2133
+ IsPatternMatches(mask: string, pattern: string): boolean;
2134
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgformatMagicDirective, never>;
2135
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgformatMagicDirective, "[mgFormat]", never, {}, {}, never, never, false, never>;
2136
+ }
2137
+
2138
+ /**
2139
+ * @ignore
2140
+ */
2141
+ declare class Constants {
2142
+ static readonly DATE_FMT = "dd/MMM/yyyy";
2143
+ }
2144
+ /**
2145
+ * @ignore
2146
+ */
2147
+ declare class DateMagicPipe extends DatePipe implements PipeTransform {
2148
+ protected _task: TaskMagicService;
2149
+ constructor(_task: TaskMagicService);
2150
+ transform(value: any, controlId: string): any;
2151
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateMagicPipe, never>;
2152
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateMagicPipe, "magicDate", false>;
2153
+ }
2154
+ declare class MgDateFormatter {
2155
+ ConvertMgDateFormatToAngular(mgDateMask: string): string;
2156
+ }
2157
+
2158
+ /**
2159
+ * @ignore
2160
+ */
2161
+ declare class TimeMagicPipe extends DatePipe implements PipeTransform {
2162
+ protected _task: TaskMagicService;
2163
+ constructor(_task: TaskMagicService);
2164
+ transform(value: any, controlId: string): any;
2165
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeMagicPipe, never>;
2166
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeMagicPipe, "magicTime", false>;
2167
+ }
2168
+
2169
+ /**
2170
+ * Validates the field range.
2171
+ */
2172
+ declare class RangeValidatorMagicDirective implements Validator {
2173
+ protected _task: TaskMagicService;
2174
+ protected vcRef: ViewContainerRef;
2175
+ /**
2176
+ *
2177
+ * @param _task The task service
2178
+ * @param vcRef
2179
+ */
2180
+ constructor(_task: TaskMagicService, vcRef: ViewContainerRef);
2181
+ /**
2182
+ * Validation method
2183
+ * @param c FormControl to validate
2184
+ * @returns If validation fails, return error message, else returns null
2185
+ */
2186
+ validate(c: FormControl): {
2187
+ rangevalidator: {
2188
+ errorMsg: string;
2189
+ };
2190
+ };
2191
+ /**
2192
+ * @ignore
2193
+ */
2194
+ getControlName(c: FormControl): string | null;
2195
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeValidatorMagicDirective, never>;
2196
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RangeValidatorMagicDirective, "[rangevalidator] ", never, {}, {}, never, never, false, never>;
2197
+ }
2198
+
2199
+ /**
2200
+ * Responsible for connecting HTML elements to the Magic WebClient engine showing it is not Magic Control but a Dummy control which is used to notify only receeive focus event for now
2201
+ */
2202
+ declare class NonMagicControlDirective implements OnInit {
2203
+ protected _task: TaskMagicService;
2204
+ protected element: ElementRef;
2205
+ protected renderer: Renderer2;
2206
+ protected vcRef: ViewContainerRef;
2207
+ set magic(val: any);
2208
+ /**
2209
+ * The HTML element connected to this directive
2210
+ */
2211
+ protected htmlElement: HTMLElement;
2212
+ /**
2213
+ * Magic's component handling this control
2214
+ */
2215
+ component: TaskBaseMagicComponent;
2216
+ /**
2217
+ * Collection of event handlers for this element
2218
+ */
2219
+ private eventHandlers;
2220
+ /**
2221
+ * Id of this element
2222
+ */
2223
+ id: string;
2224
+ /**
2225
+ * @ignore
2226
+ */
2227
+ protected selector: string;
2228
+ /**
2229
+ * @ignore
2230
+ */
2231
+ subscribeRefreshDom: Subscription;
2232
+ eventsOnlyVal: boolean;
2233
+ /**
2234
+ *
2235
+ * @param _task The task service
2236
+ * @param element The element for which the directive is applied
2237
+ * @param renderer Renderer for the element
2238
+ * @param vcRef
2239
+ */
2240
+ constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef);
2241
+ /**
2242
+ * Get the task service
2243
+ * @returns
2244
+ */
2245
+ get task(): TaskMagicService;
2246
+ /**
2247
+ * Register to the events this element may need to handle
2248
+ */
2249
+ protected regEvents(): void;
2250
+ /**
2251
+ * Handle focus event
2252
+ */
2253
+ private OnFocus;
2254
+ /**
2255
+ * Initialize this object
2256
+ */
2257
+ ngOnInit(): void;
2258
+ static ɵfac: i0.ɵɵFactoryDeclaration<NonMagicControlDirective, never>;
2259
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NonMagicControlDirective, "[NonMagicControl]", never, { "magic": { "alias": "NonMagicControl"; "required": false; }; }, {}, never, never, false, never>;
2260
+ }
2261
+
2262
+ /**
2263
+ * Directive for setting focus on element
2264
+ */
2265
+ declare class MagicFocusDirective {
2266
+ private hostElement;
2267
+ constructor(hostElement: ElementRef);
2268
+ ngAfterViewInit(): void;
2269
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicFocusDirective, never>;
2270
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicFocusDirective, "[magicFocus]", never, {}, {}, never, never, false, never>;
2271
+ }
2272
+
2273
+ /**
2274
+ * Directive for setting ViewContainerRef on element
2275
+ */
2276
+ declare class MagicViewContainerRef {
2277
+ private vcRef;
2278
+ constructor(vcRef: ViewContainerRef);
2279
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicViewContainerRef, never>;
2280
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicViewContainerRef, "[magicViewContainerRef]", never, {}, {}, never, never, false, never>;
2281
+ }
2282
+
2283
+ declare class Time24MagicPipe implements PipeTransform {
2284
+ protected _task: TaskMagicService;
2285
+ constructor(_task: TaskMagicService);
2286
+ transform(value: any, controlId: string): any;
2287
+ static ɵfac: i0.ɵɵFactoryDeclaration<Time24MagicPipe, never>;
2288
+ static ɵpipe: i0.ɵɵPipeDeclaration<Time24MagicPipe, "magicTime24", false>;
2289
+ }
2290
+
2291
+ /**
2292
+ * @ignore
2293
+ */
2294
+ declare class MagicModule {
2295
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicModule, never>;
2296
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MagicModule, [typeof MagicDirective, typeof CheckboxMagicDirective, typeof CheckboxNoFormControlMagicDirective, typeof InputNoFormControlMagicDirective, typeof ComboboxMagicDirective, typeof RowMagicDirective, typeof MagicCheckboxControlValueAccessor, typeof MagicDefaultValueAccessor, typeof DateValueAccessor, typeof TaskBaseMagicComponent, typeof MagicOverlayContainer, typeof MagicAlertComponent, typeof MagicConfirmationBoxComponent, typeof BaseMagicAlertComponent, typeof BaseMagicConfirmComponent, typeof MagicOverlayContainerWrapper, typeof RouterContainerMagicComponent, typeof MagicShellComponent, typeof SubformMagicComponent, typeof ErrorMagicComponent, typeof NoControlMagicDirective, typeof MgformatMagicDirective, typeof DateMagicPipe, typeof TimeMagicPipe, typeof RangeValidatorMagicDirective, typeof NonMagicControlDirective, typeof MagicFocusDirective, typeof MagicViewContainerRef, typeof Time24MagicPipe], [typeof i30.CommonModule, typeof i31.FormsModule, typeof i31.ReactiveFormsModule, typeof i32.RouterModule, typeof i33.DynamicModule, typeof i34.CdkDragHandle, typeof i34.CdkDrag, typeof i34.DragDropModule], [typeof MagicDirective, typeof CheckboxMagicDirective, typeof CheckboxNoFormControlMagicDirective, typeof InputNoFormControlMagicDirective, typeof ComboboxMagicDirective, typeof RowMagicDirective, typeof MagicCheckboxControlValueAccessor, typeof MagicDefaultValueAccessor, typeof DateValueAccessor, typeof TaskBaseMagicComponent, typeof MagicOverlayContainer, typeof MagicAlertComponent, typeof MagicConfirmationBoxComponent, typeof BaseMagicAlertComponent, typeof BaseMagicConfirmComponent, typeof MagicOverlayContainerWrapper, typeof RouterContainerMagicComponent, typeof MagicShellComponent, typeof SubformMagicComponent, typeof ErrorMagicComponent, typeof NoControlMagicDirective, typeof MgformatMagicDirective, typeof DateMagicPipe, typeof TimeMagicPipe, typeof RangeValidatorMagicDirective, typeof NonMagicControlDirective, typeof MagicFocusDirective, typeof MagicViewContainerRef, typeof Time24MagicPipe, typeof i35.MaskitoModule]>;
2297
+ static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
2298
+ }
2299
+
2300
+ declare const MG_FORMATS: {
2301
+ parse: {
2302
+ dateInput: {
2303
+ month: string;
2304
+ year: string;
2305
+ day: string;
2306
+ };
2307
+ };
2308
+ display: {
2309
+ dateInput: string;
2310
+ monthYearLabel: {
2311
+ year: string;
2312
+ month: string;
2313
+ };
2314
+ dateA11yLabel: {
2315
+ year: string;
2316
+ month: string;
2317
+ day: string;
2318
+ };
2319
+ monthYearA11yLabel: {
2320
+ year: string;
2321
+ month: string;
2322
+ };
2323
+ };
2324
+ };
2325
+ declare class MgDateAdapter extends NativeDateAdapter {
2326
+ protected task: TaskMagicService;
2327
+ localeId: string;
2328
+ mgdtfmt: string;
2329
+ constructor(task: TaskMagicService, localeId: string);
2330
+ parse(value: any): Date | null;
2331
+ format(date: Date, displayFormat: Object): string;
2332
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgDateAdapter, never>;
2333
+ static ɵprov: i0.ɵɵInjectableDeclaration<MgDateAdapter>;
2334
+ }
2335
+
2336
+ declare const matDateProviders: ({
2337
+ provide: typeof DateAdapter;
2338
+ useClass: typeof MgDateAdapter;
2339
+ useValue?: undefined;
2340
+ } | {
2341
+ provide: i0.InjectionToken<_angular_material_core.MatDateFormats>;
2342
+ useValue: {
2343
+ parse: {
2344
+ dateInput: {
2345
+ month: string;
2346
+ year: string;
2347
+ day: string;
2348
+ };
2349
+ };
2350
+ display: {
2351
+ dateInput: string;
2352
+ monthYearLabel: {
2353
+ year: string;
2354
+ month: string;
2355
+ };
2356
+ dateA11yLabel: {
2357
+ year: string;
2358
+ month: string;
2359
+ day: string;
2360
+ };
2361
+ monthYearA11yLabel: {
2362
+ year: string;
2363
+ month: string;
2364
+ };
2365
+ };
2366
+ };
2367
+ useClass?: undefined;
2368
+ })[];
2369
+ /**
2370
+ * Magic service providers
2371
+ */
2372
+ declare const basicMagicProviders: (typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof TaskMagicService | typeof MagicServices | ({
2373
+ provide: typeof DateAdapter;
2374
+ useClass: typeof MgDateAdapter;
2375
+ useValue?: undefined;
2376
+ } | {
2377
+ provide: i0.InjectionToken<_angular_material_core.MatDateFormats>;
2378
+ useValue: {
2379
+ parse: {
2380
+ dateInput: {
2381
+ month: string;
2382
+ year: string;
2383
+ day: string;
2384
+ };
2385
+ };
2386
+ display: {
2387
+ dateInput: string;
2388
+ monthYearLabel: {
2389
+ year: string;
2390
+ month: string;
2391
+ };
2392
+ dateA11yLabel: {
2393
+ year: string;
2394
+ month: string;
2395
+ day: string;
2396
+ };
2397
+ monthYearA11yLabel: {
2398
+ year: string;
2399
+ month: string;
2400
+ };
2401
+ };
2402
+ };
2403
+ useClass?: undefined;
2404
+ })[])[];
2405
+ declare const magicProviders: (typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof TaskMagicService | typeof TableMagicService | typeof MagicServices | ({
2406
+ provide: typeof DateAdapter;
2407
+ useClass: typeof MgDateAdapter;
2408
+ useValue?: undefined;
2409
+ } | {
2410
+ provide: i0.InjectionToken<_angular_material_core.MatDateFormats>;
2411
+ useValue: {
2412
+ parse: {
2413
+ dateInput: {
2414
+ month: string;
2415
+ year: string;
2416
+ day: string;
2417
+ };
2418
+ };
2419
+ display: {
2420
+ dateInput: string;
2421
+ monthYearLabel: {
2422
+ year: string;
2423
+ month: string;
2424
+ };
2425
+ dateA11yLabel: {
2426
+ year: string;
2427
+ month: string;
2428
+ day: string;
2429
+ };
2430
+ monthYearA11yLabel: {
2431
+ year: string;
2432
+ month: string;
2433
+ };
2434
+ };
2435
+ };
2436
+ useClass?: undefined;
2437
+ })[])[];
2438
+
2439
+ /**
2440
+ * @ignore
2441
+ */
2442
+ declare class StylesMapManager {
2443
+ static StylesMap: Map<string, any>;
2444
+ static MagicPropertyToHtmlAttributeMap: Map<string, string>;
2445
+ static magicValueGetStyle(styleName: string, magicValue: any): string;
2446
+ }
2447
+
2448
+ /**
2449
+ * @ignore
2450
+ */
2451
+ declare class GuiInteractiveExecutor {
2452
+ command: GuiInteractive;
2453
+ component: TaskBaseMagicComponent;
2454
+ task: TaskMagicService;
2455
+ overlayService: OverlayWindowService;
2456
+ Run(): void;
2457
+ static executeInteractiveCommand(task: TaskMagicService, guiIntactiveCommand: GuiInteractive, overlayService: OverlayWindowService): void;
2458
+ private onValue;
2459
+ private onGetRowsInPage;
2460
+ private onGetMaxRowsInPaginatedTable;
2461
+ private OnMessageBox;
2462
+ private OnOpenForm;
2463
+ private OnSetTitle;
2464
+ private OnRefreshPage;
2465
+ private OnGetTopIndex;
2466
+ private OnGetIsRowEditing;
2467
+ private OnGetLastRoute;
2468
+ }
2469
+
2470
+ /**
2471
+ * Displays a message-box
2472
+ */
2473
+ declare class confirmationBox {
2474
+ /**
2475
+ * @ignore
2476
+ */
2477
+ static isConfirmBox(style: Styles): Boolean;
2478
+ /**
2479
+ * Converts the result from the HTML window to the expected result type
2480
+ * @param style Result received from HTML window
2481
+ * @param okWasPressed Was the "OK" pressed
2482
+ * @returns MessageBox result type
2483
+ */
2484
+ static convertToExcpectedResultBox(style: Styles, okWasPressed: Boolean): Styles;
2485
+ /**
2486
+ * Show a message box as an HTML window
2487
+ * @param title Title of the message box
2488
+ * @param message Message that will be display in the message box
2489
+ * @param style Style that include buttons \ Icons
2490
+ * @returns MessageBox result
2491
+ */
2492
+ static showConfirmationBox(title: string, message: string, style: Styles): boolean;
2493
+ }
2494
+
2495
+ /**
2496
+ * @ignore
2497
+ */
2498
+ declare class utils {
2499
+ static getDistance(control: Element, x: number, y: number): number;
2500
+ static getDimentions(el: any): {
2501
+ x: number;
2502
+ y: number;
2503
+ width: any;
2504
+ height: any;
2505
+ };
2506
+ }
2507
+
2508
+ /**
2509
+ * @ignore
2510
+ */
2511
+ declare class ModalFormDefinition {
2512
+ taskId: string;
2513
+ comp: any;
2514
+ parameters: any;
2515
+ }
2516
+
2517
+ /**
2518
+ * Describes the behavior of a modal window
2519
+ */
2520
+ interface MagicModalInterface {
2521
+ /**
2522
+ * Returns the X coordinate of the modal window
2523
+ */
2524
+ X(): any;
2525
+ /**
2526
+ * Returns the Y coordinate of the modal window
2527
+ */
2528
+ Y(): any;
2529
+ /**
2530
+ * Returns the width of modal window
2531
+ */
2532
+ Width(): string;
2533
+ /**
2534
+ * Returns the height of modal window
2535
+ */
2536
+ Height(): string;
2537
+ /**
2538
+ * Is the modal window centered relatively to the main window
2539
+ */
2540
+ IsCenteredToWindow(): any;
2541
+ /**
2542
+ * Returns the name of the form - title of the modal window
2543
+ */
2544
+ FormName(): any;
2545
+ /**
2546
+ * Should the title bar be displayed
2547
+ */
2548
+ ShowTitleBar(): any;
2549
+ /**
2550
+ * Should the modal window close when the user clicks on the background
2551
+ */
2552
+ ShouldCloseOnBackgroundClick(): any;
2553
+ /**
2554
+ * Is overlay window resizable
2555
+ */
2556
+ IsResizable(): any;
2557
+ /**
2558
+ * Is overlay window movable
2559
+ */
2560
+ IsMovable(): any;
2561
+ }
2562
+
2563
+ export { AccessorMagicService, BaseMagicAlertComponent, BaseMagicConfirmComponent, BaseMagicOverlayContainer, CHECKBOX_VALUE_ACCESSOR, COLOR_FILE_NAME, CheckboxMagicDirective, CheckboxNoFormControlMagicDirective, ComboboxMagicDirective, CommandsCollectorMagicService, ComponentListMagicService, ConfirmationComponentsMagicProvider, Constants, ControlMetadata, ControlsMetadata, DATE_VALUE_ACCESSOR, DateMagicPipe, DateValueAccessor, EngineMagicService, ErrorMagicComponent, ExitMagicService, GuiInteractiveExecutor, HtmlClasses, InputNoFormControlMagicDirective, MAGIC_BG_COLOR, MAGIC_DEFAULT_VALUE_ACCESSOR, MAGIC_FG_COLOR, MG_FORMATS, MagicAlertComponent, MagicCheckboxControlValueAccessor, MagicColorService, MagicConfirmationBoxComponent, MagicDefaultValueAccessor, MagicDirective, MagicFocusDirective, MagicLazyLoaderService, MagicModule, MagicOverlayContainer, MagicOverlayContainerWrapper, MagicServices, MagicShellComponent, MagicViewContainerRef, MgDateAdapter, MgDateFormatter, MgformatMagicDirective, ModalFormDefinition, NoControlMagicDirective, NonMagicControlDirective, OverlayContainerMagicProvider, OverlayWindowService, RangeValidatorMagicDirective, Records, RouteCommand, RouterCommandsMagicService, RouterContainerMagicComponent, RowMagicDirective, StylesMapManager, SubformMagicComponent, SubformMagicService, TableMagicService, TaskBaseMagicComponent, TaskMagicService, Time24MagicPipe, TimeMagicPipe, TitleMagicService, basicMagicProviders, confirmationBox, magicProviders, matDateProviders, utils };
2564
+ export type { ComponentData, IMagicViewContainerRef, ISubformMagicService, MagicModalInterface, ModuleData, RouteDefinition, SubformDefinition };