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

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