@magic-xpa/angular 4.1300.0-dev4130.22 → 4.1300.0-dev4130.221

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 (63) hide show
  1. package/fesm2022/magic-xpa-angular.mjs +317 -128
  2. package/fesm2022/magic-xpa-angular.mjs.map +1 -1
  3. package/package.json +13 -11
  4. package/types/magic-xpa-angular.d.ts +2633 -0
  5. package/index.d.ts +0 -61
  6. package/src/controls.metadata.model.d.ts +0 -78
  7. package/src/interfaces/sub-form-definition.iterface.d.ts +0 -18
  8. package/src/magic.core.module.d.ts +0 -44
  9. package/src/services/ISubformMagicService.d.ts +0 -4
  10. package/src/services/OverlayWindowService.d.ts +0 -49
  11. package/src/services/StylesMapManager.d.ts +0 -8
  12. package/src/services/accessor.magic.service.d.ts +0 -311
  13. package/src/services/commands-collector.magic.service.d.ts +0 -18
  14. package/src/services/component-list.magic.service.d.ts +0 -50
  15. package/src/services/confirmation.components.magic.provider.d.ts +0 -24
  16. package/src/services/engine.magic.service.d.ts +0 -32
  17. package/src/services/exit.magic.service.d.ts +0 -12
  18. package/src/services/magic-color.service.d.ts +0 -25
  19. package/src/services/magic.lazy.loader.service.d.ts +0 -6
  20. package/src/services/magic.providers.d.ts +0 -110
  21. package/src/services/magic.services.d.ts +0 -22
  22. package/src/services/mg-date-adapter.d.ts +0 -38
  23. package/src/services/overlay.conainer.magic.provider.d.ts +0 -7
  24. package/src/services/router-commands.magic.service.d.ts +0 -23
  25. package/src/services/subform.magic.service.d.ts +0 -71
  26. package/src/services/table.magic.service.d.ts +0 -86
  27. package/src/services/task.magics.service.d.ts +0 -405
  28. package/src/services/title.magic.service.d.ts +0 -20
  29. package/src/ui/GuiInteractiveExecutor.d.ts +0 -25
  30. package/src/ui/components/base-magic-alert.component.d.ts +0 -26
  31. package/src/ui/components/base-magic-confirm.component.d.ts +0 -28
  32. package/src/ui/components/magic-alert.component.d.ts +0 -9
  33. package/src/ui/components/magic-confirmation-box.component.d.ts +0 -9
  34. package/src/ui/directives/NonMagicControlDirective.d.ts +0 -67
  35. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +0 -15
  36. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +0 -34
  37. package/src/ui/directives/magic/combobox.magic.directive.d.ts +0 -19
  38. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +0 -13
  39. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +0 -36
  40. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +0 -13
  41. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +0 -15
  42. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +0 -21
  43. package/src/ui/directives/magic/row.magic.directive.d.ts +0 -32
  44. package/src/ui/directives/magic-focus.directive.d.ts +0 -12
  45. package/src/ui/directives/magic.directive.d.ts +0 -127
  46. package/src/ui/directives/magicViewContainerRef.directive.d.ts +0 -11
  47. package/src/ui/directives/mgformat.magic.directive.d.ts +0 -82
  48. package/src/ui/directives/range-validator.magic.directive.d.ts +0 -33
  49. package/src/ui/magic-confirmationBox.d.ts +0 -25
  50. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +0 -14
  51. package/src/ui/magic-modal/magic-modal-form.d.ts +0 -8
  52. package/src/ui/magic-modal/magic-modal-interface.d.ts +0 -45
  53. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +0 -50
  54. package/src/ui/magic-modal/magic-overlay-container.d.ts +0 -117
  55. package/src/ui/magic-root.component.d.ts +0 -85
  56. package/src/ui/mgerror.magic.component.d.ts +0 -39
  57. package/src/ui/pipes/date.magic.pipe.d.ts +0 -23
  58. package/src/ui/pipes/time.magic.pipe.d.ts +0 -14
  59. package/src/ui/pipes/time24.magic.pipe.d.ts +0 -10
  60. package/src/ui/router-container.magic.component.d.ts +0 -50
  61. package/src/ui/subform.magic.component.d.ts +0 -37
  62. package/src/ui/task-base.magic.component.d.ts +0 -112
  63. package/src/ui/utils.d.ts +0 -12
@@ -0,0 +1,2633 @@
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, Observable } 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
+ /**
695
+ * Describes the behavior of a modal window
696
+ */
697
+ interface MagicModalInterface {
698
+ /**
699
+ * Returns the X coordinate of the modal window
700
+ */
701
+ X(): any;
702
+ /**
703
+ * Returns the Y coordinate of the modal window
704
+ */
705
+ Y(): any;
706
+ /**
707
+ * Returns the width of modal window
708
+ */
709
+ Width(): string;
710
+ /**
711
+ * Returns the height of modal window
712
+ */
713
+ Height(): string;
714
+ /**
715
+ * Is the modal window centered relatively to the main window
716
+ */
717
+ IsCenteredToWindow(): any;
718
+ /**
719
+ * Returns the name of the form - title of the modal window
720
+ */
721
+ FormName(): any;
722
+ /**
723
+ * Should the title bar be displayed
724
+ */
725
+ ShowTitleBar(): any;
726
+ /**
727
+ * Should the modal window close when the user clicks on the background
728
+ */
729
+ ShouldCloseOnBackgroundClick(): any;
730
+ /**
731
+ * Is overlay window resizable
732
+ */
733
+ IsResizable(): any;
734
+ /**
735
+ * Is overlay window movable
736
+ */
737
+ IsMovable(): any;
738
+ }
739
+
740
+ declare abstract class BaseMagicOverlayContainer {
741
+ /**
742
+ *
743
+ */
744
+ abstract ModalComp: any;
745
+ /**
746
+ *
747
+ */
748
+ abstract ModalCompParameters: any;
749
+ /**
750
+ *
751
+ */
752
+ abstract onClose: any;
753
+ }
754
+
755
+ /**
756
+ * Creates a modal window for Magic modal window components
757
+ */
758
+ declare class MagicOverlayContainer extends BaseMagicOverlayContainer implements OnInit, AfterViewInit, IMagicViewContainerRef {
759
+ /**
760
+ * HTML to be displayed in the modal window
761
+ */
762
+ modalbodyViewContainerRef: ViewContainerRef;
763
+ /**
764
+ * Header of the modal window
765
+ */
766
+ headerElementRef: ElementRef;
767
+ /**
768
+ * Foreground of the modal window
769
+ */
770
+ foregroundElementRef: ElementRef;
771
+ /**
772
+ *
773
+ */
774
+ ModalComp: any;
775
+ /**
776
+ *
777
+ */
778
+ ModalCompParameters: any;
779
+ onClose: EventEmitter<void>;
780
+ /**
781
+ *
782
+ */
783
+ private componentRef;
784
+ private resizing;
785
+ private resizeDirection;
786
+ private originalWidth;
787
+ private originalHeight;
788
+ private originalMouseX;
789
+ private originalMouseY;
790
+ private isCenteredToWindow;
791
+ private static readonly minAllowedWidth;
792
+ private static readonly minAllowedHeight;
793
+ private _isRtl;
794
+ /**
795
+ *
796
+ */
797
+ constructor();
798
+ /**
799
+ *
800
+ */
801
+ ngOnInit(): void;
802
+ ngAfterViewInit(): void;
803
+ setViewContainerRef(vcRef: ViewContainerRef): void;
804
+ /**
805
+ * Returns the form name
806
+ * @returns
807
+ */
808
+ getText(): any;
809
+ /**
810
+ * Returns boolean to indicate whether the text direction is right-to-left (RTL)
811
+ */
812
+ get isRtl(): boolean;
813
+ /**
814
+ * Returns CSS styles for the window
815
+ * @returns
816
+ */
817
+ getStyle(): {};
818
+ /**
819
+ * Returns the CSS styles for the client area
820
+ * @returns
821
+ */
822
+ getClientAreaStyles(): {};
823
+ /**
824
+ * Should the title bar be displayed
825
+ * @returns
826
+ */
827
+ getShowTitleBar(): any;
828
+ /**
829
+ *
830
+ */
831
+ OnClose(): void;
832
+ /**
833
+ * Handles click in the background window
834
+ */
835
+ OnBackgroundClick(): void;
836
+ /**
837
+ * Checks if the overlay component allows to be resized.
838
+ * @returns {boolean} True if the overlay is resizable, false otherwise.
839
+ */
840
+ IsResizable(): any;
841
+ /**
842
+ * Checks if the overlay component allows to be moved (dragged).
843
+ * @returns {boolean} True if the overlay is movable, false otherwise.
844
+ */
845
+ IsMovable(): any;
846
+ /**
847
+ * Initiates the resize process when a mousedown event occurs on a resize handle.
848
+ * Stores the initial state (dimensions, mouse position) and sets flags.
849
+ * @param {MouseEvent} event - The mousedown event triggering the resize.
850
+ * @param {'right' | 'bottom' | 'corner'} direction - Indicates which resize handle was activated.
851
+ */
852
+ onResizeStart(event: MouseEvent, direction: 'right' | 'left' | 'bottom' | 'corner'): void;
853
+ /**
854
+ * Handles the resizing logic as the mouse moves across the window.
855
+ * This listener is active globally on the window during a resize operation via @HostListener.
856
+ * Calculates and applies the new dimensions to the element based on mouse movement.
857
+ * @param {MouseEvent} event - The mousemove event passed by the HostListener.
858
+ */
859
+ onResize(event: MouseEvent): void;
860
+ /**
861
+ * Finalizes the resize operation when the mouse button is released anywhere on the window.
862
+ * Resets the resizing state flags. Triggered globally via @HostListener.
863
+ */
864
+ onResizeEnd(): void;
865
+ getOverlayProps(): MagicModalInterface;
866
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainer, never>;
867
+ 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>;
868
+ }
869
+
870
+ declare class OverlayContainerMagicProvider {
871
+ getComponent(): typeof MagicOverlayContainer;
872
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainerMagicProvider, never>;
873
+ static ɵprov: i0.ɵɵInjectableDeclaration<OverlayContainerMagicProvider>;
874
+ }
875
+
876
+ /**
877
+ * Service managing alert and confirmation windows
878
+ * This is Magic's default provider
879
+ */
880
+ declare class ConfirmationComponentsMagicProvider {
881
+ /**
882
+ * Return true when use default javascript alert and confirmation or return false to provide custom components
883
+ * @returns true is we want to use default javascript alert and confirmation
884
+ */
885
+ showDefaultConfirmations(): boolean;
886
+ /**
887
+ * Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
888
+ * @returns component that will replace javascript Alert
889
+ */
890
+ getAlertComponent(): any;
891
+ /**
892
+ * Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
893
+ * @returns component that will replace javascript confirmation box
894
+ */
895
+ getConfirmtionComponent(): any;
896
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
897
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationComponentsMagicProvider>;
898
+ }
899
+
900
+ /**
901
+ * Service managing overlay windows
902
+ */
903
+ declare class OverlayWindowService {
904
+ protected componentList: ComponentListMagicService;
905
+ protected engineMagicService: EngineMagicService;
906
+ private magicLazyModuleLoader;
907
+ private injector;
908
+ private compiler;
909
+ private overlayContainerMagicProvider;
910
+ private confirmationComponentsMagicProvider;
911
+ constructor(componentList: ComponentListMagicService, engineMagicService: EngineMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, compiler: Compiler, overlayContainerMagicProvider: OverlayContainerMagicProvider, confirmationComponentsMagicProvider: ConfirmationComponentsMagicProvider);
912
+ private overlayWindowsContainerViewRef;
913
+ private overlayWindowFocusManager;
914
+ private changeDetectorRef;
915
+ init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element, changeDetectorRef: ChangeDetectorRef): void;
916
+ loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
917
+ open(formName: string, taskId: string, taskDescription: string): void;
918
+ close(commandStr: string): void;
919
+ /**
920
+ * Open Confirmation box
921
+ * @param title title of the box
922
+ * @param msg message
923
+ * @param style Magic style
924
+ */
925
+ openConfirmationBox(title: string, msg: string, style: Styles): void;
926
+ /**
927
+ * This method is called on close of the confirmation
928
+ * @param style Magic style
929
+ * @param result
930
+ */
931
+ finishConfirmation(style: Styles, result: boolean): void;
932
+ /**
933
+ * creates a modal component. Can be used for overlay, message box or confirmation box
934
+ * @param parameters component's parameters
935
+ * @param component components to create
936
+ */
937
+ private createModalComponent;
938
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
939
+ static ɵprov: i0.ɵɵInjectableDeclaration<OverlayWindowService>;
940
+ }
941
+
942
+ /**
943
+ * Main service to connect the UI with the Magic WebCLient
944
+ */
945
+ declare class TaskMagicService {
946
+ protected magic: EngineMagicService;
947
+ private overlayWindowService;
948
+ /**
949
+ * Service to provide table-related functionalities
950
+ */
951
+ tableService: any;
952
+ /**
953
+ * Collection of data for all controls
954
+ */
955
+ Records: any;
956
+ /**
957
+ * FormGroup collection for line mode
958
+ */
959
+ formGroups: Array<FormGroup>;
960
+ /**
961
+ * FormGroup for all controls in screen mode
962
+ */
963
+ ScreenModeControls: FormGroup;
964
+ /**
965
+ * @ignore
966
+ */
967
+ refreshDom: Subject<GuiCommand>;
968
+ /**
969
+ * @ignore
970
+ */
971
+ subscribeRefreshDom: Subscription;
972
+ /**
973
+ * @ignore
974
+ */
975
+ detectChanges: Subject<any>;
976
+ /**
977
+ * @ignore
978
+ */
979
+ subscribeInteractiveCommands: Subscription;
980
+ /**
981
+ * @ignore
982
+ */
983
+ interactiveCommands: Subject<GuiInteractive>;
984
+ /**
985
+ * @ignore
986
+ * This event is emitted when the selected row in a table changes.
987
+ */
988
+ OnSelectedRowChanged: EventEmitter<string>;
989
+ /**
990
+ * @ignore
991
+ */
992
+ customPropertiesSubject: Subject<any>;
993
+ /**
994
+ * @ignore
995
+ */
996
+ recordsCountChangeSubject: Subject<any>;
997
+ mgLoadSubject: Subject<any>;
998
+ /**
999
+ * @ignore
1000
+ */
1001
+ template: {
1002
+ [id: string]: string;
1003
+ };
1004
+ /**
1005
+ * Service to provide subform-related functionalities
1006
+ */
1007
+ mgSubformService: SubformMagicService;
1008
+ /**
1009
+ * Service to provide the title-change functionality
1010
+ */
1011
+ mgTitleService: TitleMagicService;
1012
+ /**
1013
+ * Service which enables getting/setting values from/to the Magic WebClient engine
1014
+ */
1015
+ mgAccessorService: AccessorMagicService;
1016
+ mgInputDateFormat: any;
1017
+ /**
1018
+ * @ignore
1019
+ */
1020
+ oldPageSize: number;
1021
+ /**
1022
+ *
1023
+ * @param magic
1024
+ */
1025
+ constructor(magic: EngineMagicService, overlayWindowService: OverlayWindowService);
1026
+ /**
1027
+ * returns true if used is logged in
1028
+ * @returns
1029
+ */
1030
+ getIsLoggenIn(): boolean;
1031
+ /**
1032
+ * Id of task to which this service refers
1033
+ */
1034
+ _taskId: string;
1035
+ /**
1036
+ * returns the task Id
1037
+ * @returns
1038
+ */
1039
+ get taskId(): string;
1040
+ /**
1041
+ * Sets the task Id
1042
+ * @param value the task id to set
1043
+ */
1044
+ set taskId(value: string);
1045
+ /**
1046
+ * Returns the task's data in Screen mode
1047
+ * @returns
1048
+ */
1049
+ get ScreenControlsData(): any;
1050
+ /**
1051
+ * @ignore
1052
+ */
1053
+ settemplate(value: any): void;
1054
+ /**
1055
+ * Builds the FormControl for each and every control
1056
+ */
1057
+ buildScreenModeControls(): void;
1058
+ /**
1059
+ * Is the control a table control
1060
+ * @param id Id of the control
1061
+ * @returns
1062
+ */
1063
+ isTableControl(id: string): boolean;
1064
+ getMgInputDateFormat(): string;
1065
+ /**
1066
+ * Returns the FormControl of a control
1067
+ * @param guiRowid Id of the requested row
1068
+ * @param id Id of the control
1069
+ * @returns
1070
+ */
1071
+ getFormControl(guiRowid: string, id: string): AbstractControl;
1072
+ /**
1073
+ * handle the change of text for input control inside table
1074
+ * @param guiRowId Id of the row for which the FormControls are built
1075
+ * set the new value of the formcontrol
1076
+ */
1077
+ setInputTextValue(controlId: string, guiRowid: string, val: any): void;
1078
+ /**
1079
+ * Build the FormControls for a table row
1080
+ * @param guiRowId Id of the row for which the FormControls are built
1081
+ */
1082
+ buildTableRowControls(guiRowId: number): void;
1083
+ /**
1084
+ *
1085
+ * @ignore
1086
+ */
1087
+ updateRecordsBeforeCurrentView(value: number): void;
1088
+ /**
1089
+ * @ignore
1090
+ */
1091
+ setIncludesFirst(value: boolean): void;
1092
+ /**
1093
+ * @ignore
1094
+ */
1095
+ setIncludesLast(value: boolean): void;
1096
+ /**
1097
+ * @ignore
1098
+ */
1099
+ markRowAsCreated(guiRowId: number): void;
1100
+ /**
1101
+ * @ignore
1102
+ */
1103
+ markRowAsNotCreated(guiRowId: number): void;
1104
+ /**
1105
+ * @ignore
1106
+ */
1107
+ startRowEditing(guiRowId: number): void;
1108
+ /**
1109
+ * @ignore
1110
+ */
1111
+ stopRowEditing(guiRowId: number): void;
1112
+ /**
1113
+ * @ignore
1114
+ */
1115
+ isRowInRowEditing(guiRowId: string): boolean;
1116
+ /**
1117
+ * @ignore
1118
+ */
1119
+ setIsEmptyDataView(isEmpty: boolean): void;
1120
+ /**
1121
+ * Initialize the service to work with the task
1122
+ * @param taskId Id of the task
1123
+ * @param taskDescription
1124
+ */
1125
+ initTask(taskId: any, taskDescription: any): void;
1126
+ /**
1127
+ * @ignore
1128
+ */
1129
+ refreshView(): void;
1130
+ /**
1131
+ * Insert an event to the Magic WebClient event queue
1132
+ * @param guiEvent The event to insert
1133
+ */
1134
+ insertEvent(guiEvent: IGuiEvent): void;
1135
+ /**
1136
+ * @ignore
1137
+ */
1138
+ GetControlPictureMask(controlName: string): any;
1139
+ /**
1140
+ * @ignore
1141
+ */
1142
+ UploadFileToServer(fileContent: any, serverFileName: string): any;
1143
+ DownloadFileFromServer(serverFileName: string): Promise<ArrayBuffer>;
1144
+ /**
1145
+ * Validates the control value, using the Magic WebClient
1146
+ * @param controlName Id of validated control
1147
+ * @param value value to be validated
1148
+ * @returns If validation fails, returns error message, else returns null
1149
+ */
1150
+ ValidateControlValue(controlName: string, value: any): string;
1151
+ /**
1152
+ * @ignore
1153
+ */
1154
+ GetRangedValue(controlName: string, value: string): string;
1155
+ /**
1156
+ * @ignore
1157
+ */
1158
+ GetFldRanges(controlName: string): string;
1159
+ /**
1160
+ * returns the value of a property of the control
1161
+ * @param controlId Id of control
1162
+ * @param prop Property
1163
+ * @param guiRowId Row Id, if applicable
1164
+ * @returns Property value
1165
+ */
1166
+ getProperty(controlId: string, prop: HtmlProperties, guiRowId?: string): any;
1167
+ /**
1168
+ * @ignore
1169
+ */
1170
+ getPropertyStub(ControlsProperties: any, controlId: any, prop: any): any;
1171
+ /**
1172
+ * @ignore
1173
+ */
1174
+ getStyleStub(ControlsProperties: any, controlId: any, styleName: string): any;
1175
+ /**
1176
+ * Return the CSS classes used for this control
1177
+ * @param controlId Id of control
1178
+ * @param guiRowId Row Id, if applicable
1179
+ * @returns String containing the classes currently defined for this control
1180
+ */
1181
+ getClasses(controlId: string, guiRowId?: string): string;
1182
+ /**
1183
+ * Return the value of a style used for a control
1184
+ * @param controlId Id of control
1185
+ * @param styleName Name of style
1186
+ * @param guiRowId Row Id, if applicable
1187
+ * @returns value of style of the control
1188
+ */
1189
+ getStyle(controlId: string, styleName: string, guiRowId?: string): string;
1190
+ /**
1191
+ * Return the value of a control
1192
+ * @param controlId Id of control
1193
+ * @param guiRowId Row Id, if applicable
1194
+ * @returns value of the control
1195
+ */
1196
+ getValue(controlId: string, guiRowId?: string): any;
1197
+ /**
1198
+ * Return the formatted value of a control
1199
+ * @param controlId Id of control
1200
+ * @param guiRowId Row Id, if applicable
1201
+ * @returns value of the control
1202
+ */
1203
+ getFormattedValue(controlName: string, val: any, rowId?: string): string;
1204
+ /**
1205
+ * Sets the value of a control
1206
+ * @param controlId Id of control
1207
+ * @param guiRowId Row Id, if applicable
1208
+ * @param value Value to set
1209
+ */
1210
+ setValue(controlId: string, guiRowId: string, value: any): void;
1211
+ /**
1212
+ * @ignore
1213
+ */
1214
+ protected executeInteractiveCommand(guiInteractiveCommand: GuiInteractive): void;
1215
+ /**
1216
+ * @ignore
1217
+ */
1218
+ handleSetProperty(command: GuiCommand, isTableChild: boolean): void;
1219
+ executeCommand(command: GuiCommand): void;
1220
+ /**
1221
+ custom validator
1222
+ */
1223
+ customValidator(rowid: string, id: string): ValidatorFn;
1224
+ /**
1225
+ * COnvert a value from Magic format to native format
1226
+ * @param controlId Id of control
1227
+ * @param rowId Row Id, if applicable
1228
+ * @param val Value to convert
1229
+ * @returns Converted value
1230
+ */
1231
+ ConvertValToNative(controlId: string, rowId: number, val: any): any;
1232
+ /**
1233
+ * Convert a value from native to Magic format
1234
+ * @param controlId Id of control
1235
+ * @param rowId Row Id, if applicable
1236
+ * @param val Value to convert
1237
+ * @returns Converted value
1238
+ */
1239
+ ConvertValFromNative(controlId: string, rowId: number, val: any): any;
1240
+ /**
1241
+ * Handle resize and also fetch chunk of records if having an empty view.
1242
+ * @ignore
1243
+ * @param pageSize : PageSize
1244
+ * @param topGuiRowId : GuiRowId of first record in view.
1245
+ */
1246
+ resize(pageSize: number, topGuiRowId: number): void;
1247
+ /**
1248
+ * Fetches data for new table rows when scrolling done
1249
+ */
1250
+ onScrollDown(): void;
1251
+ /**
1252
+ * Sets the new browser window title
1253
+ * @param newTitle New window title
1254
+ */
1255
+ setTitle(newTitle: string): void;
1256
+ /**
1257
+ * @ignore
1258
+ */
1259
+ getGuiRowId(dvRowId: number, isTableControl: boolean): number;
1260
+ /**
1261
+ *
1262
+ * @ignore
1263
+ */
1264
+ getDvRowId(guiRowId: number): number;
1265
+ /**
1266
+ * Clean up the service when it is no longer needed
1267
+ */
1268
+ dispose(): void;
1269
+ /**
1270
+ * Handle the Combobox "change" event
1271
+ * @param event The event received from the UI
1272
+ * @param idx Id of the control raising the event
1273
+ * @param line Row Id, if applicable
1274
+ */
1275
+ onComboboxSelectionChanged(event: Event, idx: string, line: number): void;
1276
+ /**
1277
+ * Handle the Listbox "change" event
1278
+ * @param event The event received from the UI
1279
+ * @param idx Id of the control raising the event
1280
+ */
1281
+ onListBoxSelectionChanged(event: Event, idx: string): void;
1282
+ /**
1283
+ * Handle the Checkbox "change" event
1284
+ * @param event The event received from the UI
1285
+ * @param idx Id of the control raising the event
1286
+ * @param rowId Row Id, if applicable
1287
+ */
1288
+ onCheckChanged(event: Event, idx: string, rowId: number): void;
1289
+ /**
1290
+ * Handle tab selection change, caused by UI events
1291
+ * @param idx Id of the control raising the event
1292
+ * @param layer Id of selected tabpage
1293
+ */
1294
+ mgOnTabSelectionChanged(idx: string, layer: number): void;
1295
+ /**
1296
+ * Handle the Radio button "change" event
1297
+ * @param idx Id of the control raising the event
1298
+ * @param rowId Id of the row containing the control (defaults to '0' for non-table controls)
1299
+ */
1300
+ mgOnRadioSelectionChanged(idx: string, rowId?: string): void;
1301
+ /**
1302
+ * Inserts the "close" event to the magic WebClient event queue
1303
+ */
1304
+ close(): void;
1305
+ /**
1306
+ * @ignore
1307
+ */
1308
+ IsStub(): boolean;
1309
+ /**
1310
+ * @ignore
1311
+ */
1312
+ jsonData: string;
1313
+ /**
1314
+ * @ignore
1315
+ */
1316
+ saveData(data: string): void;
1317
+ /**
1318
+ * @ignore
1319
+ */
1320
+ createData(): void;
1321
+ /**
1322
+ * @ignore
1323
+ */
1324
+ loadStubData(stubData: any): void;
1325
+ /**
1326
+ * @ignore
1327
+ */
1328
+ loadData(): void;
1329
+ /**
1330
+ * @ignore
1331
+ */
1332
+ setStubValue(guiRowId: number, fc: FormControl, name: string): void;
1333
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskMagicService, never>;
1334
+ static ɵprov: i0.ɵɵInjectableDeclaration<TaskMagicService>;
1335
+ }
1336
+
1337
+ /**
1338
+ * Implements various table-related functionalities
1339
+ */
1340
+ declare class TableMagicService {
1341
+ protected componentList: ComponentListMagicService;
1342
+ protected task: TaskMagicService;
1343
+ selectedItem: any;
1344
+ private chunkSize;
1345
+ /**
1346
+ *
1347
+ * @param componentList Component-mapping service
1348
+ * @param task Magic task service
1349
+ */
1350
+ constructor(componentList: ComponentListMagicService, task: TaskMagicService);
1351
+ shouldOpenFieldTextEditor: boolean;
1352
+ /**
1353
+ * Refreshes the DataSource
1354
+ */
1355
+ refreshDataSource(): void;
1356
+ /**
1357
+ * Returns the table page size
1358
+ * chunkSize as default value for non-paginated tables.
1359
+ */
1360
+ getPageSize(): number;
1361
+ setChunkSize(size: number): void;
1362
+ /**
1363
+ * Returns max no of rows in the table.
1364
+ */
1365
+ getMaxRowsInTable(): number;
1366
+ /**
1367
+ * Selects the specified row
1368
+ * @param rowId The row to select
1369
+ */
1370
+ selectRow(rowId: string): void;
1371
+ getSelectedRow(): any;
1372
+ /**
1373
+ * Returns the selected row
1374
+ */
1375
+ selectedRow(): any;
1376
+ /**
1377
+ * Selects the specified page
1378
+ * @param pageId The page to select
1379
+ */
1380
+ selectPage(pageId: number): void;
1381
+ /**
1382
+ * Returns whether a dialog should be opened for the HTML element
1383
+ * @param element The HTML element for which a dialog may be needed
1384
+ * @returns
1385
+ */
1386
+ OpenDialogForControl(element: HTMLElement): boolean;
1387
+ /**
1388
+ * Returns the dialog used to edit values
1389
+ */
1390
+ getDialog(): any;
1391
+ /**
1392
+ * Handles the table "scrolled" event
1393
+ */
1394
+ onScrollDown(): void;
1395
+ /**
1396
+ * To be overwitten in specific implelemtations
1397
+ */
1398
+ sortData(e: any): void;
1399
+ /**
1400
+ * To be overwitten in specific implelemtations
1401
+ */
1402
+ mgOnPaginateChange(e: any, changeSelectedRow?: boolean): void;
1403
+ mgOptionChanged(e: any): void;
1404
+ /**
1405
+ * Change the number of lines in a table
1406
+ * @param size New number of lines in table
1407
+ */
1408
+ updateTableSize(size: number): void;
1409
+ /**
1410
+ * @ignore
1411
+ */
1412
+ setTableTopIndex(value: number): void;
1413
+ /**
1414
+ * @ignore
1415
+ */
1416
+ getTableTopIndex(): number;
1417
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableMagicService, never>;
1418
+ static ɵprov: i0.ɵɵInjectableDeclaration<TableMagicService>;
1419
+ }
1420
+
1421
+ /**
1422
+ * Central place for adding the Magic services
1423
+ */
1424
+ declare class MagicServices {
1425
+ task: TaskMagicService;
1426
+ subformService: SubformMagicService;
1427
+ tableService: TableMagicService;
1428
+ titleService: TitleMagicService;
1429
+ mgAccessorService: AccessorMagicService;
1430
+ /**
1431
+ * @ignore
1432
+ */
1433
+ constructor(task: TaskMagicService, subformService: SubformMagicService, tableService: TableMagicService, titleService: TitleMagicService, mgAccessorService: AccessorMagicService);
1434
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicServices, never>;
1435
+ static ɵprov: i0.ɵɵInjectableDeclaration<MagicServices>;
1436
+ }
1437
+
1438
+ /**
1439
+ * Base component representing a Magic task
1440
+ */
1441
+ declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit {
1442
+ protected ref: ChangeDetectorRef;
1443
+ magicServices: MagicServices;
1444
+ /**
1445
+ * Id of task, used for initializing the task service
1446
+ */
1447
+ taskIdParam: string;
1448
+ /**
1449
+ * @ignore
1450
+ */
1451
+ taskDescription: string;
1452
+ /**
1453
+ * @ignore
1454
+ */
1455
+ magicProperties: typeof MagicProperties;
1456
+ /**
1457
+ *
1458
+ * @param ref changes-detector object
1459
+ * @param magicServices Access point for all Magic services
1460
+ */
1461
+ constructor(ref: ChangeDetectorRef, magicServices: MagicServices);
1462
+ /**
1463
+ * Returns the Magic task service
1464
+ * @returns
1465
+ */
1466
+ get task(): TaskMagicService;
1467
+ /**
1468
+ * Returns the Magic subform service
1469
+ * @returns
1470
+ */
1471
+ get mgSub(): SubformMagicService;
1472
+ /**
1473
+ * Returns the Magic table service
1474
+ * @returns
1475
+ */
1476
+ get tableService(): TableMagicService;
1477
+ /**
1478
+ * Returns the Magic accessor service
1479
+ * @returns
1480
+ */
1481
+ get mg(): AccessorMagicService;
1482
+ /**
1483
+ * Returns the task Id
1484
+ * @returns
1485
+ */
1486
+ get taskId(): string;
1487
+ /**
1488
+ * Returns the FormGroup for screen-mode forms
1489
+ * @returns
1490
+ */
1491
+ get screenFormGroup(): FormGroup;
1492
+ /**
1493
+ * Interface implementation
1494
+ */
1495
+ ngOnInit(): void;
1496
+ /**
1497
+ * @ignore
1498
+ */
1499
+ createFormControlsAccessor(formGroup: FormGroup): void;
1500
+ /**
1501
+ * @ignore
1502
+ */
1503
+ setInputDateFormat(): void;
1504
+ /**
1505
+ * This method is called when the value of any custom property is updated in Magic
1506
+ * propertyName : name of property which is updated. The format is <controlname>~<propertyname>
1507
+ * rowId : row number of the updated property for controls in table control (0 for controls outside table)
1508
+ * value : updated value of the property
1509
+ * @returns : void
1510
+ * To use the method override it in your component and check the property name and write you code ..for eg
1511
+ * if(propertyName == 'controlname~propertyName') {// your code}
1512
+ * else { // your code}
1513
+ */
1514
+ PropertyChanged(propertyName: string, rowId: number, value: any): void;
1515
+ /**
1516
+ * Records count change subject is subscribed to change in its value. This method will be called
1517
+ * as the value of records count is received at from server.
1518
+ * @returns : void
1519
+ * To use the method override it in your component.
1520
+ */
1521
+ RecordsCountChanged(recordsCount: number): void;
1522
+ /**
1523
+ * This method will be called once engine informs UI about loading of first set of data is sent to client
1524
+ * and client has reached its first idle time.
1525
+ * @returns : void
1526
+ * To use the method override it in your component.
1527
+ */
1528
+ mgOnLoad(): void;
1529
+ /**
1530
+ * Interface implementation
1531
+ */
1532
+ ngAfterViewInit(): void;
1533
+ ngAfterContentChecked(): void;
1534
+ /**
1535
+ * Interface implementation
1536
+ */
1537
+ ngOnDestroy(): void;
1538
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskBaseMagicComponent, never>;
1539
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskBaseMagicComponent, "task-magic", never, { "taskIdParam": { "alias": "taskIdParam"; "required": false; }; "taskDescription": { "alias": "taskDescription"; "required": false; }; }, {}, never, never, false, never>;
1540
+ }
1541
+
1542
+ /**
1543
+ * @ignore
1544
+ */
1545
+ declare class RowMagicDirective implements OnInit, OnDestroy {
1546
+ protected _task: TaskMagicService;
1547
+ protected element: ElementRef;
1548
+ rowId: string;
1549
+ /**
1550
+ * The HTML element connected to this directive
1551
+ */
1552
+ protected htmlElement: HTMLElement;
1553
+ /**
1554
+ * @ignore
1555
+ */
1556
+ private rowChangedSubscriber;
1557
+ constructor(_task: TaskMagicService, element: ElementRef);
1558
+ /**
1559
+ * Initializes this object
1560
+ */
1561
+ ngOnInit(): void;
1562
+ private isInView;
1563
+ /**
1564
+ * Cleanup
1565
+ */
1566
+ ngOnDestroy(): void;
1567
+ onClick($event: any): void;
1568
+ static ɵfac: i0.ɵɵFactoryDeclaration<RowMagicDirective, never>;
1569
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RowMagicDirective, "[magicRow]", never, { "rowId": { "alias": "magicRow"; "required": false; }; }, {}, never, never, false, never>;
1570
+ }
1571
+
1572
+ /**
1573
+ * Connects HTML elements to the Magic Web Client engine
1574
+ */
1575
+ declare class MagicDirective implements OnInit, OnDestroy {
1576
+ protected _task: TaskMagicService;
1577
+ protected element: ElementRef;
1578
+ protected renderer: Renderer2;
1579
+ protected vcRef: ViewContainerRef;
1580
+ platform: Platform;
1581
+ protected magicRow: RowMagicDirective;
1582
+ set magic(val: any);
1583
+ /**
1584
+ * This flag is used when we only want to register to events, but do not want to execute commands sent from server
1585
+ */
1586
+ set eventsOnly(val: any);
1587
+ /**
1588
+ * pollTime: after which value will be sent to magic
1589
+ */
1590
+ pollTime: number;
1591
+ /**
1592
+ * Row id of the control, for when it is on a table
1593
+ */
1594
+ rowId: string;
1595
+ /**
1596
+ *
1597
+ */
1598
+ /**
1599
+ * The HTML element connected to this directive
1600
+ */
1601
+ protected htmlElement: HTMLElement;
1602
+ /**
1603
+ * Magic's component handling this control
1604
+ */
1605
+ component: TaskBaseMagicComponent;
1606
+ /**
1607
+ * Collection of event handlers for this element
1608
+ */
1609
+ private eventHandlers;
1610
+ /**
1611
+ * Id of this element
1612
+ */
1613
+ id: string;
1614
+ /**
1615
+ * @ignore
1616
+ */
1617
+ protected selector: string;
1618
+ /**
1619
+ * @ignore
1620
+ */
1621
+ subscribeRefreshDom: Subscription;
1622
+ private focusUnlistener;
1623
+ eventsOnlyVal: boolean;
1624
+ static opened: boolean;
1625
+ static noOfAutoCompleteBoxesOpened: number;
1626
+ subscribeInteractiveCommands: Subscription;
1627
+ /**
1628
+ *
1629
+ * @param _task The task service
1630
+ * @param element The element for which the directive is applied
1631
+ * @param renderer Renderer for the element
1632
+ * @param vcRef
1633
+ * @param platform
1634
+ * @param magicRow
1635
+ */
1636
+ constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, platform: Platform, magicRow: RowMagicDirective);
1637
+ /**
1638
+ * Get the task service
1639
+ * @returns
1640
+ */
1641
+ get task(): TaskMagicService;
1642
+ /**
1643
+ * Register to the events this element may need to handle
1644
+ */
1645
+ protected regEvents(): void;
1646
+ /**
1647
+ * Handle focus event
1648
+ */
1649
+ private OnFocus;
1650
+ /**
1651
+ * Is the command's element the same as this directive's element
1652
+ * @param command
1653
+ * @returns true/false
1654
+ */
1655
+ IsSameElement(command: any): boolean;
1656
+ /**
1657
+ * Is the command's element the same as this directive's component
1658
+ * @param command
1659
+ * @returns true/false
1660
+ */
1661
+ private IsSameComponent;
1662
+ /**
1663
+ * @ignore
1664
+ */
1665
+ private regUpdatesUI;
1666
+ /**
1667
+ * Initializes this object
1668
+ */
1669
+ ngOnInit(): void;
1670
+ /**
1671
+ * Handles the commands received from the Magic WebClient engine
1672
+ * @param command
1673
+ */
1674
+ handleCommand(command: GuiCommand): void;
1675
+ /**
1676
+ * handle the interactive commands like CallJS
1677
+ */
1678
+ handleInteractiveCommands(command: GuiInteractive): void;
1679
+ /**
1680
+ * Handle the Magic set-property command
1681
+ * @param command
1682
+ */
1683
+ handleSetProperty(command: GuiCommand): void;
1684
+ /**
1685
+ * Cleanup
1686
+ */
1687
+ ngOnDestroy(): void;
1688
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicDirective, [null, null, null, null, null, { optional: true; }]>;
1689
+ 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>;
1690
+ }
1691
+
1692
+ /**
1693
+ * Directive for checkboxes, to handle the 'change' event
1694
+ */
1695
+ declare class CheckboxMagicDirective {
1696
+ protected magicDirective: MagicDirective;
1697
+ private el;
1698
+ protected task: TaskMagicService;
1699
+ threeState: boolean;
1700
+ private subscribeRefreshDom;
1701
+ private isIndeterminate;
1702
+ /**
1703
+ * @ignore
1704
+ */
1705
+ constructor(magicDirective: MagicDirective, el: ElementRef, task: TaskMagicService);
1706
+ /**
1707
+ * Handles the Checkbox 'change' event - pass it to the Magic engine
1708
+ */
1709
+ onChange($event: any): void;
1710
+ ngOnInit(): void;
1711
+ private regUpdatesUI;
1712
+ handleCommand(command: GuiCommand): void;
1713
+ private handleThreeState;
1714
+ /**
1715
+ * Cleanup
1716
+ */
1717
+ ngOnDestroy(): void;
1718
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxMagicDirective, never>;
1719
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxMagicDirective, " input[type=checkbox][magic]:not([noFormControl])", never, { "threeState": { "alias": "threeState"; "required": false; }; }, {}, never, never, false, never>;
1720
+ }
1721
+
1722
+ /**
1723
+ * Directive for checkboxes which should not have a form control
1724
+ */
1725
+ declare class CheckboxNoFormControlMagicDirective {
1726
+ protected magicDirective: MagicDirective;
1727
+ constructor(magicDirective: MagicDirective);
1728
+ /**
1729
+ * Handle the 'Checkbox' change event - pass it to the Magic engine
1730
+ */
1731
+ onChange($event: any): void;
1732
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxNoFormControlMagicDirective, never>;
1733
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxNoFormControlMagicDirective, " input[type=checkbox][magic]:([noFormControl]) ", never, {}, {}, never, never, false, never>;
1734
+ }
1735
+
1736
+ /**
1737
+ * Directive for non-checkbox input controls which do not have a form control
1738
+ */
1739
+ declare class InputNoFormControlMagicDirective {
1740
+ protected magicDirective: MagicDirective;
1741
+ constructor(magicDirective: MagicDirective);
1742
+ /**
1743
+ * Handles the 'change' event - pass it to the Magic engine
1744
+ */
1745
+ onChange($event: any): void;
1746
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputNoFormControlMagicDirective, never>;
1747
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputNoFormControlMagicDirective, "input[magic]:([noFormControl]):not([type=checkbox]), textarea[magic]:([noFormControl]):not([type=checkbox])", never, {}, {}, never, never, false, never>;
1748
+ }
1749
+
1750
+ /**
1751
+ * Directive for comboboxes, to handle the 'change' event
1752
+ */
1753
+ declare class ComboboxMagicDirective {
1754
+ protected magicDirective: MagicDirective;
1755
+ constructor(magicDirective: MagicDirective);
1756
+ /**
1757
+ * Handles the Combobox 'change' event - pass it to the Magic engine
1758
+ */
1759
+ onChange($event: any): void;
1760
+ /**
1761
+ * To refresh Combobox selection as per selected property.
1762
+ */
1763
+ onComboboxItemsListChanged(): void;
1764
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxMagicDirective, never>;
1765
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxMagicDirective, "select[magic]:not([multiple])", never, {}, {}, never, never, false, never>;
1766
+ }
1767
+
1768
+ /**
1769
+ * @ignore
1770
+ */
1771
+ declare const CHECKBOX_VALUE_ACCESSOR: any;
1772
+ /**
1773
+ * Value accessor for Checkbox without a FormControl
1774
+ */
1775
+ declare class MagicCheckboxControlValueAccessor extends CheckboxControlValueAccessor {
1776
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicCheckboxControlValueAccessor, never>;
1777
+ 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>;
1778
+ }
1779
+
1780
+ /**
1781
+ * @ignore
1782
+ */
1783
+ declare const MAGIC_DEFAULT_VALUE_ACCESSOR: any;
1784
+ /**
1785
+ * @ignore
1786
+ */
1787
+ declare class MagicDefaultValueAccessor extends DefaultValueAccessor {
1788
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicDefaultValueAccessor, never>;
1789
+ 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>;
1790
+ }
1791
+
1792
+ declare const DATE_VALUE_ACCESSOR: any;
1793
+ /**
1794
+ * The accessor for writing a value and listening to changes on a date input element
1795
+ *
1796
+ * ### Example
1797
+ * `<input type="date" name="birthday" ngModel dateInput>`
1798
+ * OR
1799
+ * `<input type="date" formControlName="birthday" dateInput>`
1800
+ */
1801
+ declare class DateValueAccessor implements ControlValueAccessor {
1802
+ private renderer;
1803
+ private elementRef;
1804
+ protected magicDir: MagicDirective;
1805
+ protected _task: TaskMagicService;
1806
+ onChange: (_: any) => void;
1807
+ onTouched: () => void;
1808
+ onBlurEvent(event: any): void;
1809
+ constructor(renderer: Renderer2, elementRef: ElementRef, magicDir: MagicDirective, _task: TaskMagicService);
1810
+ /** Format year, if user enters 2 digits instead of 4 digits as per the century given in Magic.ini file */
1811
+ formatDateWithCentury(userInput: string, century: number, control: AbstractControl): void;
1812
+ /** Writes a new value to the element (model -> view) */
1813
+ writeValue(value: Date): void;
1814
+ /** Registers a callback function, called when value changes (view -> model) */
1815
+ registerOnChange(fn: (_: any) => void): void;
1816
+ /** Registers a callback function, called when the control is blurred */
1817
+ registerOnTouched(fn: () => void): void;
1818
+ /** Enables or disables the element when the control status changes */
1819
+ setDisabledState(isDisabled: boolean): void;
1820
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateValueAccessor, never>;
1821
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateValueAccessor, "[dateInput]", never, {}, {}, never, never, false, never>;
1822
+ }
1823
+
1824
+ /**
1825
+ * This is a base class for the magic alert components
1826
+ */
1827
+ declare class BaseMagicAlertComponent {
1828
+ /**
1829
+ * title of the component
1830
+ */
1831
+ title: string;
1832
+ /**
1833
+ * message of the component
1834
+ */
1835
+ message: string;
1836
+ /**
1837
+ * onClose Event - to be raised when the component is closed
1838
+
1839
+ */
1840
+ onClose: EventEmitter<void>;
1841
+ /**
1842
+ * close magic alert
1843
+ */
1844
+ OnClose(): void;
1845
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicAlertComponent, never>;
1846
+ 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>;
1847
+ }
1848
+
1849
+ /***
1850
+ * This is sample component for the alert message
1851
+ */
1852
+ declare class MagicAlertComponent extends BaseMagicAlertComponent {
1853
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicAlertComponent, never>;
1854
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicAlertComponent, "sample-magic-alert-component", never, {}, {}, never, never, false, never>;
1855
+ }
1856
+
1857
+ /**
1858
+ * This is a base class for the magic confirm components
1859
+ */
1860
+ declare class BaseMagicConfirmComponent {
1861
+ /**
1862
+ * title of the component
1863
+ */
1864
+ title: string;
1865
+ /**
1866
+ * message of the component
1867
+ */
1868
+ message: string;
1869
+ /**
1870
+ * onClose Event - to be raised when the component is closed
1871
+ * should pass true when OK is pressed and false when cancel is pressed
1872
+ */
1873
+ onClose: EventEmitter<boolean>;
1874
+ /**
1875
+ * raises close Event
1876
+ * @param result true when OK is pressed and false when cancel is pressed
1877
+ *
1878
+ */
1879
+ OnClose(result: any): void;
1880
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicConfirmComponent, never>;
1881
+ 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>;
1882
+ }
1883
+
1884
+ /***
1885
+ * This is sample component for the confirmation box
1886
+ */
1887
+ declare class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
1888
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicConfirmationBoxComponent, never>;
1889
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicConfirmationBoxComponent, "sample-magic-confirmation-box", never, {}, {}, never, never, false, never>;
1890
+ }
1891
+
1892
+ declare class MagicOverlayContainerWrapper implements IMagicViewContainerRef {
1893
+ private componentListMagicService;
1894
+ private magicLazyModuleLoader;
1895
+ private injector;
1896
+ private changeDetectorRef;
1897
+ private compiler;
1898
+ /**
1899
+ *
1900
+ */
1901
+ Component: any;
1902
+ /**
1903
+ *
1904
+ */
1905
+ Parameters: any;
1906
+ private OverlayTypeParam;
1907
+ private onClose;
1908
+ /**
1909
+ * HTML to be displayed in the modal window
1910
+ */
1911
+ overlayContentViewContainerRef: ViewContainerRef;
1912
+ overlayContainerWrapperElementRef: ElementRef;
1913
+ /**
1914
+ * @ignore
1915
+ * contais data of allowed base components to use
1916
+ */
1917
+ static allowedBaseComps: Map<number, {
1918
+ comp: any;
1919
+ error: string;
1920
+ }>;
1921
+ /**
1922
+ *
1923
+ * @param componentFactoryResolver
1924
+ */
1925
+ constructor(componentListMagicService: ComponentListMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, changeDetectorRef: ChangeDetectorRef, compiler: Compiler);
1926
+ /**
1927
+ *
1928
+ */
1929
+ ngOnInit(): void;
1930
+ private loadComponent;
1931
+ setViewContainerRef(vcRef: ViewContainerRef): void;
1932
+ GetRootElement(): HTMLElement;
1933
+ DetectChanges(): void;
1934
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainerWrapper, never>;
1935
+ 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>;
1936
+ }
1937
+
1938
+ /**
1939
+ * This service supports custom actions on magic exit
1940
+ */
1941
+ declare class ExitMagicService {
1942
+ /**
1943
+ * Override this method to implement custom logic on magic exit
1944
+ */
1945
+ exitMagic(): void;
1946
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExitMagicService, never>;
1947
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExitMagicService>;
1948
+ }
1949
+
1950
+ /**
1951
+ * Root Magic component
1952
+ */
1953
+ declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerRef {
1954
+ protected engineMagicService: EngineMagicService;
1955
+ protected componentList: ComponentListMagicService;
1956
+ protected changeDetectorRef: ChangeDetectorRef;
1957
+ private titleService;
1958
+ private overlayWindowService;
1959
+ private httpClient;
1960
+ private pendingCommandsCollector;
1961
+ private route;
1962
+ private router;
1963
+ exitMagicService: ExitMagicService;
1964
+ /**
1965
+ * Root component to be displayed in the window
1966
+ */
1967
+ RootComponent: Component;
1968
+ /**
1969
+ * parameters for the Root Component
1970
+ */
1971
+ RootComponentParameters: any;
1972
+ overlayWindowsContainerViewRef: ViewContainerRef;
1973
+ rootMagicElementRef: ElementRef;
1974
+ SpinnerTemplate: TemplateRef<any>;
1975
+ showSpinner: boolean;
1976
+ magicEngineTerminated: boolean;
1977
+ /**
1978
+ *
1979
+ * @param magic Magic's service
1980
+ * @param componentList Magic component list
1981
+ * @param changeDetectorRef Changes detector
1982
+ * @param titleService Title setting service
1983
+ * @param httpClient The native httpClient instance
1984
+ * @param exitMagicService Magic exit service
1985
+ */
1986
+ constructor(engineMagicService: EngineMagicService, componentList: ComponentListMagicService, changeDetectorRef: ChangeDetectorRef, titleService: Title, overlayWindowService: OverlayWindowService, httpClient: HttpClient, pendingCommandsCollector: CommandsCollectorMagicService, route: ActivatedRoute, router: Router, exitMagicService: ExitMagicService);
1987
+ /**
1988
+ * Before-unload event listener
1989
+ * @param event
1990
+ */
1991
+ onBeforeUnload(event: any): string;
1992
+ onUnload(event: any): void;
1993
+ ngAfterViewInit(): void;
1994
+ setViewContainerRef(vcRef: ViewContainerRef): void;
1995
+ /**
1996
+ * Initialization of Magic mechanisms
1997
+ */
1998
+ initialize(): void;
1999
+ /**
2000
+ * Set the title
2001
+ */
2002
+ setTitle(): void;
2003
+ /**
2004
+ * Set the component according to requested form
2005
+ * @param formName Name of the form to open
2006
+ * @param taskId Id of opening task
2007
+ * @param taskDescription TODO
2008
+ * @param isModal whether modal window is being opened
2009
+ */
2010
+ private setComponent;
2011
+ /**
2012
+ * @ignore
2013
+ */
2014
+ registerUICommands(): void;
2015
+ /**
2016
+ * Execute commands received from the Magic WebClient engine
2017
+ * @param command
2018
+ */
2019
+ executeCommand(command: GuiCommand): void;
2020
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicShellComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
2021
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicShellComponent, "magic-root", never, { "SpinnerTemplate": { "alias": "SpinnerTemplate"; "required": false; }; }, {}, never, never, false, never>;
2022
+ }
2023
+
2024
+ /**
2025
+ * Represents a Magic subform
2026
+ */
2027
+ declare class SubformMagicComponent {
2028
+ private vcRef;
2029
+ protected mgSub: SubformMagicService;
2030
+ /**
2031
+ * @ignore
2032
+ */
2033
+ id: string;
2034
+ /**
2035
+ * @ignore
2036
+ */
2037
+ set magic(val: any);
2038
+ /**
2039
+ * @ignore
2040
+ */
2041
+ component: TaskBaseMagicComponent;
2042
+ /**
2043
+ * @ignore
2044
+ */
2045
+ constructor(vcRef: ViewContainerRef, mgSub: SubformMagicService);
2046
+ /**
2047
+ * @ignore
2048
+ */
2049
+ get Component(): Component;
2050
+ /**
2051
+ * @ignore
2052
+ */
2053
+ get Parameters(): any;
2054
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubformMagicComponent, never>;
2055
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubformMagicComponent, "magic-subform", never, { "magic": { "alias": "magic"; "required": false; }; }, {}, never, never, false, never>;
2056
+ }
2057
+
2058
+ /**
2059
+ * Represents a Magic subform
2060
+ */
2061
+ declare class ErrorMagicComponent {
2062
+ protected _task: TaskMagicService;
2063
+ mgService: AccessorMagicService;
2064
+ protected changeDetectorRef: ChangeDetectorRef;
2065
+ /**
2066
+ * @ignore
2067
+ */
2068
+ id: string;
2069
+ rowId: string;
2070
+ /**
2071
+ * @ignore
2072
+ */
2073
+ set magic(val: any);
2074
+ set rowId1(val: any);
2075
+ defaultDisplay: boolean;
2076
+ set CustomContent(innerComponent: ElementRef);
2077
+ /**
2078
+ * @ignore
2079
+ */
2080
+ constructor(_task: TaskMagicService, mgService: AccessorMagicService, changeDetectorRef: ChangeDetectorRef);
2081
+ /**
2082
+ * returns true if the html element has no children
2083
+ * @param element
2084
+ */
2085
+ isEmpty(element: HTMLElement): boolean;
2086
+ /**
2087
+ * @ignore
2088
+ */
2089
+ HasErrors(id: string): boolean;
2090
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMagicComponent, never>;
2091
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMagicComponent, "mgError", never, { "magic": { "alias": "magic"; "required": false; }; "rowId1": { "alias": "rowId"; "required": false; }; }, {}, never, ["*"], false, never>;
2092
+ }
2093
+
2094
+ /**
2095
+ * @ignore
2096
+ */
2097
+ declare class NoControlMagicDirective extends MagicDirective {
2098
+ set magic(val: any);
2099
+ constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, platform: Platform, magicRow: RowMagicDirective);
2100
+ regEvents(): void;
2101
+ isTabControl(): boolean;
2102
+ isRadio(): boolean;
2103
+ handleCommand(command: GuiCommand): void;
2104
+ handleSetProperty(command: GuiCommand): void;
2105
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoControlMagicDirective, [null, null, null, null, null, { optional: true; }]>;
2106
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NoControlMagicDirective, "[magicnc]", never, { "magic": { "alias": "magicnc"; "required": false; }; }, {}, never, never, false, never>;
2107
+ }
2108
+
2109
+ /**
2110
+ * Perform Magic validation on input controls which hold alphanumeric strings
2111
+ */
2112
+ declare class MgformatMagicDirective {
2113
+ protected magicDir: MagicDirective;
2114
+ protected _task: TaskMagicService;
2115
+ datePasteFlag: boolean;
2116
+ /**
2117
+ * @ignore
2118
+ */
2119
+ constructor(magicDir: MagicDirective, _task: TaskMagicService);
2120
+ ngAfterViewInit(): void;
2121
+ /**
2122
+ * @ignore
2123
+ */
2124
+ /**
2125
+ * This can be used to set pattern
2126
+ * On input, verifies the input matches the required mask
2127
+ */
2128
+ onFocusEvent($event: any): void;
2129
+ onPaste(event: ClipboardEvent): void;
2130
+ onInputEvent(event: any): void;
2131
+ dateMasking(event: any): void;
2132
+ /**
2133
+ * @ignore
2134
+ */
2135
+ onChangeEvent(event: any): void;
2136
+ onBlurEvent(event: any): void;
2137
+ /** Format year, if user enters 2 digits instead of 4 digits as per the century given in Magic.ini file */
2138
+ formatDateWithCentury(userInput: string, century: number, control: AbstractControl): void;
2139
+ updateYear(day: number, month: string, year: number, separator: string, century: number, centuryVal: number, control: AbstractControl): void;
2140
+ getDateSegments1(dateArray: any): any[];
2141
+ getDateSegments2(dateArray: any): any[];
2142
+ getDateSegments3(dateArray: any): any[];
2143
+ getDateSegments4(dateArray: any): any[];
2144
+ /**
2145
+ * @ignore
2146
+ */
2147
+ calculatePattern(): void;
2148
+ formatDate(pic: PIC): void;
2149
+ /**
2150
+ * @ignore
2151
+ */
2152
+ formatAlphaUnicode(control: AbstractControl): void;
2153
+ /**
2154
+ * @ignore
2155
+ */
2156
+ formatBoolean(control: AbstractControl): void;
2157
+ /**
2158
+ * @ignore
2159
+ */
2160
+ generatePattern(attribute: StorageAttribute, pic: PIC): string;
2161
+ /**
2162
+ * @ignore
2163
+ */
2164
+ generatePatternForNumber(pic: PIC): string;
2165
+ /**
2166
+ * @ignore
2167
+ */
2168
+ isPatternGenerationNeeded(attr: StorageAttribute, pic: PIC): boolean;
2169
+ /**
2170
+ * @ignore
2171
+ */
2172
+ generatePatternForAlpha(pic: PIC): string;
2173
+ /**
2174
+ * @ignore
2175
+ */
2176
+ getDirectiveCount(mask: string, idx: number, pattern: string, changeInPattern: RefParam<boolean>): number;
2177
+ /**
2178
+ * @ignore
2179
+ */
2180
+ IsPatternMatches(mask: string, pattern: string): boolean;
2181
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgformatMagicDirective, never>;
2182
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgformatMagicDirective, "[mgFormat]", never, {}, {}, never, never, false, never>;
2183
+ }
2184
+
2185
+ /**
2186
+ * @ignore
2187
+ */
2188
+ declare class Constants {
2189
+ static readonly DATE_FMT = "dd/MMM/yyyy";
2190
+ }
2191
+ /**
2192
+ * @ignore
2193
+ */
2194
+ declare class DateMagicPipe extends DatePipe implements PipeTransform {
2195
+ protected _task: TaskMagicService;
2196
+ constructor(_task: TaskMagicService);
2197
+ transform(value: any, controlId: string): any;
2198
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateMagicPipe, never>;
2199
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateMagicPipe, "magicDate", false>;
2200
+ }
2201
+ declare class MgDateFormatter {
2202
+ ConvertMgDateFormatToAngular(mgDateMask: string): string;
2203
+ }
2204
+
2205
+ /**
2206
+ * @ignore
2207
+ */
2208
+ declare class TimeMagicPipe extends DatePipe implements PipeTransform {
2209
+ protected _task: TaskMagicService;
2210
+ constructor(_task: TaskMagicService);
2211
+ transform(value: any, controlId: string): any;
2212
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeMagicPipe, never>;
2213
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeMagicPipe, "magicTime", false>;
2214
+ }
2215
+
2216
+ /**
2217
+ * Validates the field range.
2218
+ */
2219
+ declare class RangeValidatorMagicDirective implements Validator {
2220
+ protected _task: TaskMagicService;
2221
+ protected vcRef: ViewContainerRef;
2222
+ /**
2223
+ *
2224
+ * @param _task The task service
2225
+ * @param vcRef
2226
+ */
2227
+ constructor(_task: TaskMagicService, vcRef: ViewContainerRef);
2228
+ /**
2229
+ * Validation method
2230
+ * @param c FormControl to validate
2231
+ * @returns If validation fails, return error message, else returns null
2232
+ */
2233
+ validate(c: FormControl): {
2234
+ rangevalidator: {
2235
+ errorMsg: string;
2236
+ };
2237
+ };
2238
+ /**
2239
+ * @ignore
2240
+ */
2241
+ getControlName(c: FormControl): string | null;
2242
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeValidatorMagicDirective, never>;
2243
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RangeValidatorMagicDirective, "[rangevalidator] ", never, {}, {}, never, never, false, never>;
2244
+ }
2245
+
2246
+ /**
2247
+ * 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
2248
+ */
2249
+ declare class NonMagicControlDirective implements OnInit {
2250
+ protected _task: TaskMagicService;
2251
+ protected element: ElementRef;
2252
+ protected renderer: Renderer2;
2253
+ protected vcRef: ViewContainerRef;
2254
+ set magic(val: any);
2255
+ /**
2256
+ * The HTML element connected to this directive
2257
+ */
2258
+ protected htmlElement: HTMLElement;
2259
+ /**
2260
+ * Magic's component handling this control
2261
+ */
2262
+ component: TaskBaseMagicComponent;
2263
+ /**
2264
+ * Collection of event handlers for this element
2265
+ */
2266
+ private eventHandlers;
2267
+ /**
2268
+ * Id of this element
2269
+ */
2270
+ id: string;
2271
+ /**
2272
+ * @ignore
2273
+ */
2274
+ protected selector: string;
2275
+ /**
2276
+ * @ignore
2277
+ */
2278
+ subscribeRefreshDom: Subscription;
2279
+ eventsOnlyVal: boolean;
2280
+ /**
2281
+ *
2282
+ * @param _task The task service
2283
+ * @param element The element for which the directive is applied
2284
+ * @param renderer Renderer for the element
2285
+ * @param vcRef
2286
+ */
2287
+ constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef);
2288
+ /**
2289
+ * Get the task service
2290
+ * @returns
2291
+ */
2292
+ get task(): TaskMagicService;
2293
+ /**
2294
+ * Register to the events this element may need to handle
2295
+ */
2296
+ protected regEvents(): void;
2297
+ /**
2298
+ * Handle focus event
2299
+ */
2300
+ private OnFocus;
2301
+ /**
2302
+ * Initialize this object
2303
+ */
2304
+ ngOnInit(): void;
2305
+ static ɵfac: i0.ɵɵFactoryDeclaration<NonMagicControlDirective, never>;
2306
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NonMagicControlDirective, "[NonMagicControl]", never, { "magic": { "alias": "NonMagicControl"; "required": false; }; }, {}, never, never, false, never>;
2307
+ }
2308
+
2309
+ /**
2310
+ * Directive for setting focus on element
2311
+ */
2312
+ declare class MagicFocusDirective {
2313
+ private hostElement;
2314
+ constructor(hostElement: ElementRef);
2315
+ ngAfterViewInit(): void;
2316
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicFocusDirective, never>;
2317
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicFocusDirective, "[magicFocus]", never, {}, {}, never, never, false, never>;
2318
+ }
2319
+
2320
+ /**
2321
+ * Directive for setting ViewContainerRef on element
2322
+ */
2323
+ declare class MagicViewContainerRef {
2324
+ private vcRef;
2325
+ constructor(vcRef: ViewContainerRef);
2326
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicViewContainerRef, never>;
2327
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicViewContainerRef, "[magicViewContainerRef]", never, {}, {}, never, never, false, never>;
2328
+ }
2329
+
2330
+ declare class Time24MagicPipe implements PipeTransform {
2331
+ protected _task: TaskMagicService;
2332
+ constructor(_task: TaskMagicService);
2333
+ transform(value: any, controlId: string): any;
2334
+ static ɵfac: i0.ɵɵFactoryDeclaration<Time24MagicPipe, never>;
2335
+ static ɵpipe: i0.ɵɵPipeDeclaration<Time24MagicPipe, "magicTime24", false>;
2336
+ }
2337
+
2338
+ /**
2339
+ * @ignore
2340
+ */
2341
+ declare class MagicModule {
2342
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicModule, never>;
2343
+ 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]>;
2344
+ static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
2345
+ }
2346
+
2347
+ declare const MG_FORMATS: {
2348
+ parse: {
2349
+ dateInput: {
2350
+ month: string;
2351
+ year: string;
2352
+ day: string;
2353
+ };
2354
+ };
2355
+ display: {
2356
+ dateInput: string;
2357
+ monthYearLabel: {
2358
+ year: string;
2359
+ month: string;
2360
+ };
2361
+ dateA11yLabel: {
2362
+ year: string;
2363
+ month: string;
2364
+ day: string;
2365
+ };
2366
+ monthYearA11yLabel: {
2367
+ year: string;
2368
+ month: string;
2369
+ };
2370
+ };
2371
+ };
2372
+ declare class MgDateAdapter extends NativeDateAdapter {
2373
+ protected task: TaskMagicService;
2374
+ localeId: string;
2375
+ mgdtfmt: string;
2376
+ constructor(task: TaskMagicService, localeId: string);
2377
+ parse(value: any): Date | null;
2378
+ format(date: Date, displayFormat: Object): string;
2379
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgDateAdapter, never>;
2380
+ static ɵprov: i0.ɵɵInjectableDeclaration<MgDateAdapter>;
2381
+ }
2382
+
2383
+ declare const matDateProviders: ({
2384
+ provide: typeof DateAdapter;
2385
+ useClass: typeof MgDateAdapter;
2386
+ useValue?: undefined;
2387
+ } | {
2388
+ provide: i0.InjectionToken<_angular_material_core.MatDateFormats>;
2389
+ useValue: {
2390
+ parse: {
2391
+ dateInput: {
2392
+ month: string;
2393
+ year: string;
2394
+ day: string;
2395
+ };
2396
+ };
2397
+ display: {
2398
+ dateInput: string;
2399
+ monthYearLabel: {
2400
+ year: string;
2401
+ month: string;
2402
+ };
2403
+ dateA11yLabel: {
2404
+ year: string;
2405
+ month: string;
2406
+ day: string;
2407
+ };
2408
+ monthYearA11yLabel: {
2409
+ year: string;
2410
+ month: string;
2411
+ };
2412
+ };
2413
+ };
2414
+ useClass?: undefined;
2415
+ })[];
2416
+ /**
2417
+ * Magic service providers
2418
+ */
2419
+ declare const basicMagicProviders: (typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof TaskMagicService | typeof MagicServices | ({
2420
+ provide: typeof DateAdapter;
2421
+ useClass: typeof MgDateAdapter;
2422
+ useValue?: undefined;
2423
+ } | {
2424
+ provide: i0.InjectionToken<_angular_material_core.MatDateFormats>;
2425
+ useValue: {
2426
+ parse: {
2427
+ dateInput: {
2428
+ month: string;
2429
+ year: string;
2430
+ day: string;
2431
+ };
2432
+ };
2433
+ display: {
2434
+ dateInput: string;
2435
+ monthYearLabel: {
2436
+ year: string;
2437
+ month: string;
2438
+ };
2439
+ dateA11yLabel: {
2440
+ year: string;
2441
+ month: string;
2442
+ day: string;
2443
+ };
2444
+ monthYearA11yLabel: {
2445
+ year: string;
2446
+ month: string;
2447
+ };
2448
+ };
2449
+ };
2450
+ useClass?: undefined;
2451
+ })[])[];
2452
+ declare const magicProviders: (typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof TaskMagicService | typeof TableMagicService | typeof MagicServices | ({
2453
+ provide: typeof DateAdapter;
2454
+ useClass: typeof MgDateAdapter;
2455
+ useValue?: undefined;
2456
+ } | {
2457
+ provide: i0.InjectionToken<_angular_material_core.MatDateFormats>;
2458
+ useValue: {
2459
+ parse: {
2460
+ dateInput: {
2461
+ month: string;
2462
+ year: string;
2463
+ day: string;
2464
+ };
2465
+ };
2466
+ display: {
2467
+ dateInput: string;
2468
+ monthYearLabel: {
2469
+ year: string;
2470
+ month: string;
2471
+ };
2472
+ dateA11yLabel: {
2473
+ year: string;
2474
+ month: string;
2475
+ day: string;
2476
+ };
2477
+ monthYearA11yLabel: {
2478
+ year: string;
2479
+ month: string;
2480
+ };
2481
+ };
2482
+ };
2483
+ useClass?: undefined;
2484
+ })[])[];
2485
+
2486
+ /**
2487
+ * @ignore
2488
+ */
2489
+ declare class StylesMapManager {
2490
+ static StylesMap: Map<string, any>;
2491
+ static MagicPropertyToHtmlAttributeMap: Map<string, string>;
2492
+ static magicValueGetStyle(styleName: string, magicValue: any): string;
2493
+ }
2494
+
2495
+ declare class SubscriberService {
2496
+ private static instance;
2497
+ private socket;
2498
+ private constructor();
2499
+ /**
2500
+ * Subscribe to a specific topic
2501
+ * @param topic The topic to subscribe to
2502
+ */
2503
+ subscribe(topic: string): void;
2504
+ /**
2505
+ * Unsubscribe from a specific topic
2506
+ * @param topic The topic to unsubscribe from
2507
+ */
2508
+ unsubscribe(topic: string): void;
2509
+ /**
2510
+ * Get an Observable for incoming messages
2511
+ * @returns Observable that emits message data
2512
+ */
2513
+ onMessage(): Observable<{
2514
+ topic: string;
2515
+ message: any;
2516
+ }>;
2517
+ /**
2518
+ * Get current subscriptions (for debugging)
2519
+ */
2520
+ getSubscriptions(): void;
2521
+ /**
2522
+ * Listen for subscriptions data
2523
+ * @returns Observable that emits subscriptions list
2524
+ */
2525
+ onSubscriptionsData(): Observable<any[]>;
2526
+ /**
2527
+ * Get the singleton instance of SubscriberService
2528
+ * @returns {SubscriberService} The singleton instance
2529
+ */
2530
+ static getInstance(): SubscriberService;
2531
+ /**
2532
+ * Disconnect from the server
2533
+ */
2534
+ disconnect(): void;
2535
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubscriberService, never>;
2536
+ static ɵprov: i0.ɵɵInjectableDeclaration<SubscriberService>;
2537
+ }
2538
+
2539
+ /**
2540
+ * @ignore
2541
+ */
2542
+ declare class GuiInteractiveExecutor {
2543
+ command: GuiInteractive;
2544
+ component: TaskBaseMagicComponent;
2545
+ task: TaskMagicService;
2546
+ overlayService: OverlayWindowService;
2547
+ Run(): void;
2548
+ static executeInteractiveCommand(task: TaskMagicService, guiIntactiveCommand: GuiInteractive, overlayService: OverlayWindowService): void;
2549
+ private onValue;
2550
+ private onGetRowsInPage;
2551
+ private onGetMaxRowsInPaginatedTable;
2552
+ private OnMessageBox;
2553
+ private OnOpenForm;
2554
+ private OnSetTitle;
2555
+ private OnRefreshPage;
2556
+ private OnGetTopIndex;
2557
+ private OnGetIsRowEditing;
2558
+ private OnGetLastRoute;
2559
+ }
2560
+
2561
+ /**
2562
+ * Displays a message-box
2563
+ */
2564
+ declare class confirmationBox {
2565
+ /**
2566
+ * @ignore
2567
+ */
2568
+ static isConfirmBox(style: Styles): Boolean;
2569
+ /**
2570
+ * Converts the result from the HTML window to the expected result type
2571
+ * @param style Result received from HTML window
2572
+ * @param okWasPressed Was the "OK" pressed
2573
+ * @returns MessageBox result type
2574
+ */
2575
+ static convertToExcpectedResultBox(style: Styles, okWasPressed: Boolean): Styles;
2576
+ /**
2577
+ * Show a message box as an HTML window
2578
+ * @param title Title of the message box
2579
+ * @param message Message that will be display in the message box
2580
+ * @param style Style that include buttons \ Icons
2581
+ * @returns MessageBox result
2582
+ */
2583
+ static showConfirmationBox(title: string, message: string, style: Styles): boolean;
2584
+ }
2585
+
2586
+ /**
2587
+ * @ignore
2588
+ */
2589
+ declare class utils {
2590
+ static getDistance(control: Element, x: number, y: number): number;
2591
+ static getDimentions(el: any): {
2592
+ x: number;
2593
+ y: number;
2594
+ width: any;
2595
+ height: any;
2596
+ };
2597
+ }
2598
+
2599
+ /**
2600
+ * @ignore
2601
+ */
2602
+ declare class ModalFormDefinition {
2603
+ taskId: string;
2604
+ comp: any;
2605
+ parameters: any;
2606
+ }
2607
+
2608
+ declare class MagicModalProperties implements MagicModalInterface {
2609
+ private static formName;
2610
+ private static showTitleBar;
2611
+ private static x;
2612
+ private static y;
2613
+ private static width;
2614
+ private static height;
2615
+ private static isCenteredToWindow;
2616
+ private static shouldCloseOnBackgroundClick;
2617
+ private static isResizable;
2618
+ private static isMovable;
2619
+ constructor(formName: string, showTitleBar: boolean, x: number, y: number, width: string, height: string, isCenteredToWindow: boolean, shouldCloseOnBackgroundClick: boolean, isResizable: boolean, isMovable: boolean);
2620
+ X(): number;
2621
+ Y(): number;
2622
+ Width(): string;
2623
+ Height(): string;
2624
+ IsCenteredToWindow(): boolean;
2625
+ FormName(): string;
2626
+ ShowTitleBar(): boolean;
2627
+ ShouldCloseOnBackgroundClick(): boolean;
2628
+ IsResizable(): boolean;
2629
+ IsMovable(): boolean;
2630
+ }
2631
+
2632
+ 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, MagicModalProperties, MagicModule, MagicOverlayContainer, MagicOverlayContainerWrapper, MagicServices, MagicShellComponent, MagicViewContainerRef, MgDateAdapter, MgDateFormatter, MgformatMagicDirective, ModalFormDefinition, NoControlMagicDirective, NonMagicControlDirective, OverlayContainerMagicProvider, OverlayWindowService, RangeValidatorMagicDirective, Records, RouteCommand, RouterCommandsMagicService, RouterContainerMagicComponent, RowMagicDirective, StylesMapManager, SubformMagicComponent, SubformMagicService, SubscriberService, TableMagicService, TaskBaseMagicComponent, TaskMagicService, Time24MagicPipe, TimeMagicPipe, TitleMagicService, basicMagicProviders, confirmationBox, magicProviders, matDateProviders, utils };
2633
+ export type { ComponentData, IMagicViewContainerRef, ISubformMagicService, MagicModalInterface, ModuleData, RouteDefinition, SubformDefinition };