@magic-xpa/angular 4.1300.0-dev4130.30 → 4.1300.0-dev4130.301

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.
@@ -1,10 +1,10 @@
1
1
  import { StorageAttribute, MagicProperties } from '@magic-xpa/utils';
2
- import { HtmlProperties, CustomValidator, GuiCommand, GuiInteractive, Styles, PIC } from '@magic-xpa/gui';
2
+ import { HtmlProperties, CustomValidator, GuiCommand, GuiInteractive, OverlayType, PIC, Styles } from '@magic-xpa/gui';
3
3
  import * as i0 from '@angular/core';
4
- import { NgModuleRef, ViewContainerRef, OnInit, Injector, Compiler, Component, InjectionToken, AfterViewInit, ElementRef, EventEmitter, ChangeDetectorRef, OnDestroy, Renderer2, TemplateRef, PipeTransform } from '@angular/core';
4
+ import { NgModuleRef, ViewContainerRef, OnInit, Type, InjectionToken, EventEmitter, OnDestroy, AfterViewInit, ChangeDetectorRef, ElementRef, Renderer2, TemplateRef, PipeTransform } from '@angular/core';
5
5
  import * as i31 from '@angular/forms';
6
6
  import { FormGroup, AbstractControl, ValidatorFn, FormControl, CheckboxControlValueAccessor, DefaultValueAccessor, ControlValueAccessor, Validator } from '@angular/forms';
7
- import { Subject, Subscription } from 'rxjs';
7
+ import { Subject, Subscription, Observable } from 'rxjs';
8
8
  import { MagicBridge, IGuiEvent } from '@magic-xpa/engine';
9
9
  import { HttpClient } from '@angular/common/http';
10
10
  import { List, RefParam } from '@magic-xpa/mscorelib';
@@ -16,8 +16,8 @@ import { Platform } from '@angular/cdk/platform';
16
16
  import * as i30 from '@angular/common';
17
17
  import { DatePipe } from '@angular/common';
18
18
  import * as i33 from 'ng-dynamic-component';
19
- import * as i34 from '@angular/cdk/drag-drop';
20
- import * as i35 from '@maskito/angular';
19
+ import * as i34 from '@maskito/angular';
20
+ import * as i35 from '@angular/cdk/drag-drop';
21
21
  import * as _angular_material_core from '@angular/material/core';
22
22
  import { NativeDateAdapter, DateAdapter } from '@angular/material/core';
23
23
 
@@ -107,6 +107,7 @@ declare class EngineMagicService {
107
107
  isLoggedIn: boolean;
108
108
  refreshDom: Subject<GuiCommand>;
109
109
  interactiveCommands: Subject<GuiInteractive>;
110
+ private readonly magicChangeDetection;
110
111
  startMagicEngine(httpClient: HttpClient, args: Map<string, string>): void;
111
112
  terminateMagic(): Promise<void>;
112
113
  insertEvent(guiEvent: IGuiEvent): void;
@@ -123,7 +124,7 @@ declare class EngineMagicService {
123
124
  TransCacheExists(): boolean;
124
125
  TerminateContextUsingFetchAPI(): void;
125
126
  static ɵfac: i0.ɵɵFactoryDeclaration<EngineMagicService, never>;
126
- static ɵprov: i0.ɵɵInjectableDeclaration<EngineMagicService>;
127
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
127
128
  }
128
129
 
129
130
  interface ComponentData {
@@ -172,23 +173,23 @@ declare class ComponentListMagicService {
172
173
  */
173
174
  title: string;
174
175
  static ɵfac: i0.ɵɵFactoryDeclaration<ComponentListMagicService, never>;
175
- static ɵprov: i0.ɵɵInjectableDeclaration<ComponentListMagicService>;
176
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
176
177
  }
177
178
 
178
179
  /**
179
180
  * @ignore
180
181
  */
181
182
  declare class CommandsCollectorMagicService {
182
- protected magic: EngineMagicService;
183
183
  private count;
184
184
  private commands;
185
185
  private subscription;
186
- constructor(magic: EngineMagicService);
186
+ protected magic: EngineMagicService;
187
+ constructor();
187
188
  startCollecting(): void;
188
189
  stopCollecting(): void;
189
190
  GetCommands(taskId: string): GuiCommand[];
190
191
  static ɵfac: i0.ɵɵFactoryDeclaration<CommandsCollectorMagicService, never>;
191
- static ɵprov: i0.ɵɵInjectableDeclaration<CommandsCollectorMagicService>;
192
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
192
193
  }
193
194
 
194
195
  /**
@@ -231,13 +232,18 @@ declare class RouterCommandsMagicService {
231
232
  AddRouteCommand(routeCommand: RouteCommand): void;
232
233
  ExecuteNextCommand(): void;
233
234
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterCommandsMagicService, never>;
234
- static ɵprov: i0.ɵɵInjectableDeclaration<RouterCommandsMagicService>;
235
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
235
236
  }
236
237
 
237
238
  /**
238
239
  * Mock component, implements routing by connecting the requested URL with the appropriate Magic task
239
240
  */
240
241
  declare class RouterContainerMagicComponent implements OnInit {
242
+ private componentRef;
243
+ private parentMgSubformService;
244
+ private static lastRoute;
245
+ private routePath;
246
+ static get LastRoute(): string;
241
247
  private activatedRoute;
242
248
  protected router: Router;
243
249
  protected magic: EngineMagicService;
@@ -246,11 +252,6 @@ declare class RouterContainerMagicComponent implements OnInit {
246
252
  private componentList;
247
253
  protected pendingCommandsCollector: CommandsCollectorMagicService;
248
254
  protected routerCommandsMagicService: RouterCommandsMagicService;
249
- private componentRef;
250
- private parentMgSubformService;
251
- private static lastRoute;
252
- private routePath;
253
- static get LastRoute(): string;
254
255
  /**
255
256
  *
256
257
  * @param changeDetectorRef
@@ -261,7 +262,7 @@ declare class RouterContainerMagicComponent implements OnInit {
261
262
  * @param componentList
262
263
  * @param pendingCommandsCollector
263
264
  */
264
- constructor(activatedRoute: ActivatedRoute, router: Router, magic: EngineMagicService, containerTaskService: TaskMagicService, viewContainerRef: ViewContainerRef, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, routerCommandsMagicService: RouterCommandsMagicService);
265
+ constructor();
265
266
  /**
266
267
  * Initialization
267
268
  */
@@ -277,16 +278,17 @@ declare class RouterContainerMagicComponent implements OnInit {
277
278
  static ɵcmp: i0.ɵɵComponentDeclaration<RouterContainerMagicComponent, "magic-route-outlet", never, {}, {}, never, never, false, never>;
278
279
  }
279
280
 
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
281
  /**
287
282
  * Service for managing subforms and routing
288
283
  */
289
284
  declare class SubformMagicService implements ISubformMagicService {
285
+ subformsDict: {};
286
+ routesDict: {
287
+ [x: string]: string;
288
+ };
289
+ currentRouteDefinition: RouteDefinition;
290
+ static currentCallerMgSubformServiceRef: any;
291
+ static routerContainers: Array<RouterContainerMagicComponent>;
290
292
  private task;
291
293
  protected activatedRoute: ActivatedRoute;
292
294
  protected componentList: ComponentListMagicService;
@@ -296,21 +298,13 @@ declare class SubformMagicService implements ISubformMagicService {
296
298
  private componentListMagicService;
297
299
  private loader;
298
300
  private injector;
299
- private compiler;
300
- subformsDict: {};
301
- routesDict: {
302
- [x: string]: string;
303
- };
304
- currentRouteDefinition: RouteDefinition;
305
- static currentCallerMgSubformServiceRef: any;
306
- static routerContainers: Array<RouterContainerMagicComponent>;
307
- constructor(task: TaskMagicService, activatedRoute: ActivatedRoute, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, router: Router, routerCommandsMagicService: RouterCommandsMagicService, componentListMagicService: ComponentListMagicService, loader: MagicLazyLoaderService, injector: Injector, compiler: Compiler);
301
+ constructor();
308
302
  /**
309
303
  * Finds and returns the component according to the subform name
310
304
  * @param subformName
311
305
  * @returns
312
306
  */
313
- mgGetComp(subformName: string): Component;
307
+ mgGetComp(subformName: string): Type<any>;
314
308
  /**
315
309
  * Returns the parameters of the subform
316
310
  * @param subformName
@@ -340,7 +334,7 @@ declare class SubformMagicService implements ISubformMagicService {
340
334
  refreshView(): void;
341
335
  static getRelativeRoute(sendActivatedRoute: ActivatedRoute): ActivatedRoute;
342
336
  static ɵfac: i0.ɵɵFactoryDeclaration<SubformMagicService, never>;
343
- static ɵprov: i0.ɵɵInjectableDeclaration<SubformMagicService>;
337
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
344
338
  }
345
339
 
346
340
  /**
@@ -348,30 +342,27 @@ declare class SubformMagicService implements ISubformMagicService {
348
342
  */
349
343
  declare class TitleMagicService {
350
344
  protected titleService: Title;
351
- /**
352
- *
353
- * @param titleService Angular's title-changing class
354
- */
355
- constructor(titleService: Title);
345
+ constructor();
356
346
  /**
357
347
  * Set the new title of the window
358
348
  * @param newTitle New title of the window
359
349
  */
360
350
  setTitle(newTitle: string): void;
361
351
  static ɵfac: i0.ɵɵFactoryDeclaration<TitleMagicService, never>;
362
- static ɵprov: i0.ɵɵInjectableDeclaration<TitleMagicService>;
352
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
363
353
  }
364
354
 
365
355
  declare let COLOR_FILE_NAME: InjectionToken<string>;
366
356
  declare const MAGIC_FG_COLOR: number;
367
357
  declare const MAGIC_BG_COLOR: number;
368
358
  declare class MagicColorService {
369
- private http;
370
359
  colorFileName: string;
371
360
  getColorFilePath(): string;
372
361
  private colorsData;
373
362
  private fileNotFound;
374
- constructor(http: HttpClient, colorFile1?: string);
363
+ private http;
364
+ colorFile1: string;
365
+ constructor();
375
366
  private getColorData;
376
367
  private hexToRgba;
377
368
  /**
@@ -382,22 +373,22 @@ declare class MagicColorService {
382
373
  */
383
374
  getColor(colorIndex: number, colorType: number): any;
384
375
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicColorService, never>;
385
- static ɵprov: i0.ɵɵInjectableDeclaration<MagicColorService>;
376
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
386
377
  }
387
378
 
388
379
  /**
389
380
  * Provides the UI with values calculated by the Magic WebClient
390
381
  */
391
382
  declare class AccessorMagicService {
392
- protected task: TaskMagicService;
393
- protected magicColor: MagicColorService;
394
383
  Logger: any;
395
384
  readonly hhmm: MaskitoOptions;
396
385
  readonly hhmmss: MaskitoOptions;
386
+ protected task: TaskMagicService;
387
+ protected magicColor: MagicColorService;
397
388
  /**
398
389
  * @ignore
399
390
  */
400
- constructor(task: TaskMagicService, magicColor: MagicColorService);
391
+ constructor();
401
392
  UploadFileToServer(fileContent: any, serverFileName: string): any;
402
393
  DownloadFileFromServer(serverFileName: string): Promise<ArrayBuffer>;
403
394
  /**
@@ -456,6 +447,13 @@ declare class AccessorMagicService {
456
447
  * @returns Is the control visible or hidden
457
448
  */
458
449
  getVisible(controlId: string, rowId?: string): string;
450
+ /**
451
+ * Returns whether a control is visible or not
452
+ * @param controlId Id of control
453
+ * @param rowId Id of row, if applicable
454
+ * @returns true if the control is visible, false otherwise
455
+ */
456
+ isVisible(controlId: string, rowId?: string): boolean;
459
457
  /**
460
458
  * Returns alpha mask of a control
461
459
  * @param controlId Id of control
@@ -688,216 +686,13 @@ declare class AccessorMagicService {
688
686
  */
689
687
  getColor(colorNumber: number, colorType: any): any;
690
688
  static ɵfac: i0.ɵɵFactoryDeclaration<AccessorMagicService, never>;
691
- static ɵprov: i0.ɵɵInjectableDeclaration<AccessorMagicService>;
692
- }
693
-
694
- declare abstract class BaseMagicOverlayContainer {
695
- /**
696
- *
697
- */
698
- abstract ModalComp: any;
699
- /**
700
- *
701
- */
702
- abstract ModalCompParameters: any;
703
- /**
704
- *
705
- */
706
- abstract onClose: any;
707
- }
708
-
709
- /**
710
- * Creates a modal window for Magic modal window components
711
- */
712
- declare class MagicOverlayContainer extends BaseMagicOverlayContainer implements OnInit, AfterViewInit, IMagicViewContainerRef {
713
- /**
714
- * HTML to be displayed in the modal window
715
- */
716
- modalbodyViewContainerRef: ViewContainerRef;
717
- /**
718
- * Header of the modal window
719
- */
720
- headerElementRef: ElementRef;
721
- /**
722
- * Foreground of the modal window
723
- */
724
- foregroundElementRef: ElementRef;
725
- /**
726
- *
727
- */
728
- ModalComp: any;
729
- /**
730
- *
731
- */
732
- ModalCompParameters: any;
733
- onClose: EventEmitter<void>;
734
- /**
735
- *
736
- */
737
- private componentRef;
738
- private resizing;
739
- private resizeDirection;
740
- private originalWidth;
741
- private originalHeight;
742
- private originalMouseX;
743
- private originalMouseY;
744
- private isCenteredToWindow;
745
- private static readonly minAllowedWidth;
746
- private static readonly minAllowedHeight;
747
- private _isRtl;
748
- /**
749
- *
750
- */
751
- constructor();
752
- /**
753
- *
754
- */
755
- ngOnInit(): void;
756
- ngAfterViewInit(): void;
757
- setViewContainerRef(vcRef: ViewContainerRef): void;
758
- /**
759
- * Returns the form name
760
- * @returns
761
- */
762
- getText(): any;
763
- /**
764
- * Returns boolean to indicate whether the text direction is right-to-left (RTL)
765
- */
766
- get isRtl(): boolean;
767
- /**
768
- * Returns CSS styles for the window
769
- * @returns
770
- */
771
- getStyle(): {};
772
- /**
773
- * Returns the CSS styles for the client area
774
- * @returns
775
- */
776
- getClientAreaStyles(): {};
777
- /**
778
- * Should the title bar be displayed
779
- * @returns
780
- */
781
- getShowTitleBar(): any;
782
- /**
783
- *
784
- */
785
- OnClose(): void;
786
- /**
787
- * Handles click in the background window
788
- */
789
- OnBackgroundClick(): void;
790
- /**
791
- * Checks if the overlay component allows to be resized.
792
- * @returns {boolean} True if the overlay is resizable, false otherwise.
793
- */
794
- IsResizable(): any;
795
- /**
796
- * Checks if the overlay component allows to be moved (dragged).
797
- * @returns {boolean} True if the overlay is movable, false otherwise.
798
- */
799
- IsMovable(): any;
800
- /**
801
- * Initiates the resize process when a mousedown event occurs on a resize handle.
802
- * Stores the initial state (dimensions, mouse position) and sets flags.
803
- * @param {MouseEvent} event - The mousedown event triggering the resize.
804
- * @param {'right' | 'bottom' | 'corner'} direction - Indicates which resize handle was activated.
805
- */
806
- onResizeStart(event: MouseEvent, direction: 'right' | 'left' | 'bottom' | 'corner'): void;
807
- /**
808
- * Handles the resizing logic as the mouse moves across the window.
809
- * This listener is active globally on the window during a resize operation via @HostListener.
810
- * Calculates and applies the new dimensions to the element based on mouse movement.
811
- * @param {MouseEvent} event - The mousemove event passed by the HostListener.
812
- */
813
- onResize(event: MouseEvent): void;
814
- /**
815
- * Finalizes the resize operation when the mouse button is released anywhere on the window.
816
- * Resets the resizing state flags. Triggered globally via @HostListener.
817
- */
818
- onResizeEnd(): void;
819
- static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainer, never>;
820
- static ɵcmp: i0.ɵɵComponentDeclaration<MagicOverlayContainer, "app-magic-overlay-container", never, { "ModalComp": { "alias": "ModalComp"; "required": false; }; "ModalCompParameters": { "alias": "ModalCompParameters"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
821
- }
822
-
823
- declare class OverlayContainerMagicProvider {
824
- getComponent(): typeof MagicOverlayContainer;
825
- static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainerMagicProvider, never>;
826
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayContainerMagicProvider>;
827
- }
828
-
829
- /**
830
- * Service managing alert and confirmation windows
831
- * This is Magic's default provider
832
- */
833
- declare class ConfirmationComponentsMagicProvider {
834
- /**
835
- * Return true when use default javascript alert and confirmation or return false to provide custom components
836
- * @returns true is we want to use default javascript alert and confirmation
837
- */
838
- showDefaultConfirmations(): boolean;
839
- /**
840
- * Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
841
- * @returns component that will replace javascript Alert
842
- */
843
- getAlertComponent(): any;
844
- /**
845
- * Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
846
- * @returns component that will replace javascript confirmation box
847
- */
848
- getConfirmtionComponent(): any;
849
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
850
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationComponentsMagicProvider>;
851
- }
852
-
853
- /**
854
- * Service managing overlay windows
855
- */
856
- declare class OverlayWindowService {
857
- protected componentList: ComponentListMagicService;
858
- protected engineMagicService: EngineMagicService;
859
- private magicLazyModuleLoader;
860
- private injector;
861
- private compiler;
862
- private overlayContainerMagicProvider;
863
- private confirmationComponentsMagicProvider;
864
- constructor(componentList: ComponentListMagicService, engineMagicService: EngineMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, compiler: Compiler, overlayContainerMagicProvider: OverlayContainerMagicProvider, confirmationComponentsMagicProvider: ConfirmationComponentsMagicProvider);
865
- private overlayWindowsContainerViewRef;
866
- private overlayWindowFocusManager;
867
- private changeDetectorRef;
868
- init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element, changeDetectorRef: ChangeDetectorRef): void;
869
- loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
870
- open(formName: string, taskId: string, taskDescription: string): void;
871
- close(commandStr: string): void;
872
- /**
873
- * Open Confirmation box
874
- * @param title title of the box
875
- * @param msg message
876
- * @param style Magic style
877
- */
878
- openConfirmationBox(title: string, msg: string, style: Styles): void;
879
- /**
880
- * This method is called on close of the confirmation
881
- * @param style Magic style
882
- * @param result
883
- */
884
- finishConfirmation(style: Styles, result: boolean): void;
885
- /**
886
- * creates a modal component. Can be used for overlay, message box or confirmation box
887
- * @param parameters component's parameters
888
- * @param component components to create
889
- */
890
- private createModalComponent;
891
- static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
892
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayWindowService>;
689
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
893
690
  }
894
691
 
895
692
  /**
896
693
  * Main service to connect the UI with the Magic WebCLient
897
694
  */
898
695
  declare class TaskMagicService {
899
- protected magic: EngineMagicService;
900
- private overlayWindowService;
901
696
  /**
902
697
  * Service to provide table-related functionalities
903
698
  */
@@ -971,11 +766,9 @@ declare class TaskMagicService {
971
766
  * @ignore
972
767
  */
973
768
  oldPageSize: number;
974
- /**
975
- *
976
- * @param magic
977
- */
978
- constructor(magic: EngineMagicService, overlayWindowService: OverlayWindowService);
769
+ protected magic: EngineMagicService;
770
+ private overlayWindowService;
771
+ constructor();
979
772
  /**
980
773
  * returns true if used is logged in
981
774
  * @returns
@@ -1247,10 +1040,10 @@ declare class TaskMagicService {
1247
1040
  mgOnTabSelectionChanged(idx: string, layer: number): void;
1248
1041
  /**
1249
1042
  * Handle the Radio button "change" event
1250
- * @param event The event received from the UI
1251
1043
  * @param idx Id of the control raising the event
1044
+ * @param rowId Id of the row containing the control (defaults to '0' for non-table controls)
1252
1045
  */
1253
- mgOnRadioSelectionChanged(idx: string): void;
1046
+ mgOnRadioSelectionChanged(idx: string, rowId?: string): void;
1254
1047
  /**
1255
1048
  * Inserts the "close" event to the magic WebClient event queue
1256
1049
  */
@@ -1284,23 +1077,18 @@ declare class TaskMagicService {
1284
1077
  */
1285
1078
  setStubValue(guiRowId: number, fc: FormControl, name: string): void;
1286
1079
  static ɵfac: i0.ɵɵFactoryDeclaration<TaskMagicService, never>;
1287
- static ɵprov: i0.ɵɵInjectableDeclaration<TaskMagicService>;
1080
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1288
1081
  }
1289
1082
 
1290
1083
  /**
1291
1084
  * Implements various table-related functionalities
1292
1085
  */
1293
1086
  declare class TableMagicService {
1294
- protected componentList: ComponentListMagicService;
1295
- protected task: TaskMagicService;
1296
1087
  selectedItem: any;
1297
1088
  private chunkSize;
1298
- /**
1299
- *
1300
- * @param componentList Component-mapping service
1301
- * @param task Magic task service
1302
- */
1303
- constructor(componentList: ComponentListMagicService, task: TaskMagicService);
1089
+ protected componentList: ComponentListMagicService;
1090
+ protected task: TaskMagicService;
1091
+ constructor();
1304
1092
  shouldOpenFieldTextEditor: boolean;
1305
1093
  /**
1306
1094
  * Refreshes the DataSource
@@ -1368,7 +1156,7 @@ declare class TableMagicService {
1368
1156
  */
1369
1157
  getTableTopIndex(): number;
1370
1158
  static ɵfac: i0.ɵɵFactoryDeclaration<TableMagicService, never>;
1371
- static ɵprov: i0.ɵɵInjectableDeclaration<TableMagicService>;
1159
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1372
1160
  }
1373
1161
 
1374
1162
  /**
@@ -1383,17 +1171,15 @@ declare class MagicServices {
1383
1171
  /**
1384
1172
  * @ignore
1385
1173
  */
1386
- constructor(task: TaskMagicService, subformService: SubformMagicService, tableService: TableMagicService, titleService: TitleMagicService, mgAccessorService: AccessorMagicService);
1174
+ constructor();
1387
1175
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicServices, never>;
1388
- static ɵprov: i0.ɵɵInjectableDeclaration<MagicServices>;
1176
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1389
1177
  }
1390
1178
 
1391
1179
  /**
1392
1180
  * Base component representing a Magic task
1393
1181
  */
1394
1182
  declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit {
1395
- protected ref: ChangeDetectorRef;
1396
- magicServices: MagicServices;
1397
1183
  /**
1398
1184
  * Id of task, used for initializing the task service
1399
1185
  */
@@ -1406,12 +1192,24 @@ declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit
1406
1192
  * @ignore
1407
1193
  */
1408
1194
  magicProperties: typeof MagicProperties;
1195
+ /**
1196
+ * @ignore
1197
+ * Injected as fields rather than constructor parameters, so that the constructor
1198
+ * signature of this base class - which every generated component inherits - is unchanged.
1199
+ */
1200
+ private readonly magicChangeDetection;
1201
+ /**
1202
+ * @ignore
1203
+ */
1204
+ private readonly destroyRef;
1205
+ protected ref: ChangeDetectorRef;
1206
+ magicServices: MagicServices;
1409
1207
  /**
1410
1208
  *
1411
1209
  * @param ref changes-detector object
1412
1210
  * @param magicServices Access point for all Magic services
1413
1211
  */
1414
- constructor(ref: ChangeDetectorRef, magicServices: MagicServices);
1212
+ constructor();
1415
1213
  /**
1416
1214
  * Returns the Magic task service
1417
1215
  * @returns
@@ -1496,8 +1294,6 @@ declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit
1496
1294
  * @ignore
1497
1295
  */
1498
1296
  declare class RowMagicDirective implements OnInit, OnDestroy {
1499
- protected _task: TaskMagicService;
1500
- protected element: ElementRef;
1501
1297
  rowId: string;
1502
1298
  /**
1503
1299
  * The HTML element connected to this directive
@@ -1507,7 +1303,9 @@ declare class RowMagicDirective implements OnInit, OnDestroy {
1507
1303
  * @ignore
1508
1304
  */
1509
1305
  private rowChangedSubscriber;
1510
- constructor(_task: TaskMagicService, element: ElementRef);
1306
+ protected _task: TaskMagicService;
1307
+ protected element: ElementRef;
1308
+ constructor();
1511
1309
  /**
1512
1310
  * Initializes this object
1513
1311
  */
@@ -1526,12 +1324,6 @@ declare class RowMagicDirective implements OnInit, OnDestroy {
1526
1324
  * Connects HTML elements to the Magic Web Client engine
1527
1325
  */
1528
1326
  declare class MagicDirective implements OnInit, OnDestroy {
1529
- protected _task: TaskMagicService;
1530
- protected element: ElementRef;
1531
- protected renderer: Renderer2;
1532
- protected vcRef: ViewContainerRef;
1533
- platform: Platform;
1534
- protected magicRow: RowMagicDirective;
1535
1327
  set magic(val: any);
1536
1328
  /**
1537
1329
  * This flag is used when we only want to register to events, but do not want to execute commands sent from server
@@ -1586,12 +1378,18 @@ declare class MagicDirective implements OnInit, OnDestroy {
1586
1378
  * @param platform
1587
1379
  * @param magicRow
1588
1380
  */
1589
- constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, platform: Platform, magicRow: RowMagicDirective);
1381
+ constructor();
1590
1382
  /**
1591
1383
  * Get the task service
1592
1384
  * @returns
1593
1385
  */
1594
1386
  get task(): TaskMagicService;
1387
+ protected _task: TaskMagicService;
1388
+ protected element: ElementRef;
1389
+ protected renderer: Renderer2;
1390
+ protected vcRef: ViewContainerRef;
1391
+ platform: Platform;
1392
+ protected magicRow: RowMagicDirective;
1595
1393
  /**
1596
1394
  * Register to the events this element may need to handle
1597
1395
  */
@@ -1638,7 +1436,7 @@ declare class MagicDirective implements OnInit, OnDestroy {
1638
1436
  * Cleanup
1639
1437
  */
1640
1438
  ngOnDestroy(): void;
1641
- static ɵfac: i0.ɵɵFactoryDeclaration<MagicDirective, [null, null, null, null, null, { optional: true; }]>;
1439
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicDirective, never>;
1642
1440
  static ɵdir: i0.ɵɵDirectiveDeclaration<MagicDirective, "[magic]", never, { "magic": { "alias": "magic"; "required": false; }; "eventsOnly": { "alias": "eventsOnly"; "required": false; }; "pollTime": { "alias": "pollTime"; "required": false; }; "rowId": { "alias": "rowId"; "required": false; }; }, {}, never, never, false, never>;
1643
1441
  }
1644
1442
 
@@ -1646,16 +1444,13 @@ declare class MagicDirective implements OnInit, OnDestroy {
1646
1444
  * Directive for checkboxes, to handle the 'change' event
1647
1445
  */
1648
1446
  declare class CheckboxMagicDirective {
1447
+ threeState: i0.InputSignal<boolean>;
1448
+ private subscribeRefreshDom;
1449
+ private isIndeterminate;
1649
1450
  protected magicDirective: MagicDirective;
1650
1451
  private el;
1651
1452
  protected task: TaskMagicService;
1652
- threeState: boolean;
1653
- private subscribeRefreshDom;
1654
- private isIndeterminate;
1655
- /**
1656
- * @ignore
1657
- */
1658
- constructor(magicDirective: MagicDirective, el: ElementRef, task: TaskMagicService);
1453
+ constructor();
1659
1454
  /**
1660
1455
  * Handles the Checkbox 'change' event - pass it to the Magic engine
1661
1456
  */
@@ -1669,7 +1464,7 @@ declare class CheckboxMagicDirective {
1669
1464
  */
1670
1465
  ngOnDestroy(): void;
1671
1466
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxMagicDirective, never>;
1672
- static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxMagicDirective, " input[type=checkbox][magic]:not([noFormControl])", never, { "threeState": { "alias": "threeState"; "required": false; }; }, {}, never, never, false, never>;
1467
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxMagicDirective, " input[type=checkbox][magic]:not([noFormControl])", never, { "threeState": { "alias": "threeState"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
1673
1468
  }
1674
1469
 
1675
1470
  /**
@@ -1677,7 +1472,7 @@ declare class CheckboxMagicDirective {
1677
1472
  */
1678
1473
  declare class CheckboxNoFormControlMagicDirective {
1679
1474
  protected magicDirective: MagicDirective;
1680
- constructor(magicDirective: MagicDirective);
1475
+ constructor();
1681
1476
  /**
1682
1477
  * Handle the 'Checkbox' change event - pass it to the Magic engine
1683
1478
  */
@@ -1691,7 +1486,7 @@ declare class CheckboxNoFormControlMagicDirective {
1691
1486
  */
1692
1487
  declare class InputNoFormControlMagicDirective {
1693
1488
  protected magicDirective: MagicDirective;
1694
- constructor(magicDirective: MagicDirective);
1489
+ constructor();
1695
1490
  /**
1696
1491
  * Handles the 'change' event - pass it to the Magic engine
1697
1492
  */
@@ -1705,7 +1500,7 @@ declare class InputNoFormControlMagicDirective {
1705
1500
  */
1706
1501
  declare class ComboboxMagicDirective {
1707
1502
  protected magicDirective: MagicDirective;
1708
- constructor(magicDirective: MagicDirective);
1503
+ constructor();
1709
1504
  /**
1710
1505
  * Handles the Combobox 'change' event - pass it to the Magic engine
1711
1506
  */
@@ -1752,14 +1547,14 @@ declare const DATE_VALUE_ACCESSOR: any;
1752
1547
  * `<input type="date" formControlName="birthday" dateInput>`
1753
1548
  */
1754
1549
  declare class DateValueAccessor implements ControlValueAccessor {
1550
+ onChange: (_: any) => void;
1551
+ onTouched: () => void;
1552
+ onBlurEvent(event: any): void;
1755
1553
  private renderer;
1756
1554
  private elementRef;
1757
1555
  protected magicDir: MagicDirective;
1758
1556
  protected _task: TaskMagicService;
1759
- onChange: (_: any) => void;
1760
- onTouched: () => void;
1761
- onBlurEvent(event: any): void;
1762
- constructor(renderer: Renderer2, elementRef: ElementRef, magicDir: MagicDirective, _task: TaskMagicService);
1557
+ constructor();
1763
1558
  /** Format year, if user enters 2 digits instead of 4 digits as per the century given in Magic.ini file */
1764
1559
  formatDateWithCentury(userInput: string, century: number, control: AbstractControl): void;
1765
1560
  /** Writes a new value to the element (model -> view) */
@@ -1774,6 +1569,188 @@ declare class DateValueAccessor implements ControlValueAccessor {
1774
1569
  static ɵdir: i0.ɵɵDirectiveDeclaration<DateValueAccessor, "[dateInput]", never, {}, {}, never, never, false, never>;
1775
1570
  }
1776
1571
 
1572
+ /**
1573
+ * Describes the behavior of a modal window
1574
+ */
1575
+ interface MagicModalInterface {
1576
+ /**
1577
+ * Returns the X coordinate of the modal window
1578
+ */
1579
+ X(): any;
1580
+ /**
1581
+ * Returns the Y coordinate of the modal window
1582
+ */
1583
+ Y(): any;
1584
+ /**
1585
+ * Returns the width of modal window
1586
+ */
1587
+ Width(): string;
1588
+ /**
1589
+ * Returns the height of modal window
1590
+ */
1591
+ Height(): string;
1592
+ /**
1593
+ * Is the modal window centered relatively to the main window
1594
+ */
1595
+ IsCenteredToWindow(): any;
1596
+ /**
1597
+ * Returns the name of the form - title of the modal window
1598
+ */
1599
+ FormName(): any;
1600
+ /**
1601
+ * Should the title bar be displayed
1602
+ */
1603
+ ShowTitleBar(): any;
1604
+ /**
1605
+ * Should the modal window close when the user clicks on the background
1606
+ */
1607
+ ShouldCloseOnBackgroundClick(): any;
1608
+ /**
1609
+ * Is overlay window resizable
1610
+ */
1611
+ IsResizable(): any;
1612
+ /**
1613
+ * Is overlay window movable
1614
+ */
1615
+ IsMovable(): any;
1616
+ }
1617
+
1618
+ /**
1619
+ * Abstract base for Magic overlay container components.
1620
+ * Concrete classes must implement these members using Angular signal APIs (input/output).
1621
+ * The class is kept as an abstract class (not an interface) so that instanceof checks
1622
+ * in MagicOverlayContainerWrapper continue to work at runtime.
1623
+ */
1624
+ declare abstract class BaseMagicOverlayContainer {
1625
+ /**
1626
+ * The component class to render inside the overlay
1627
+ */
1628
+ abstract ModalComp: any;
1629
+ /**
1630
+ * Parameters to pass to the rendered component
1631
+ */
1632
+ abstract ModalCompParameters: any;
1633
+ /**
1634
+ * Output event emitted when the overlay is closed
1635
+ */
1636
+ abstract onClose: any;
1637
+ }
1638
+
1639
+ /**
1640
+ * Creates a modal window for Magic modal window components
1641
+ */
1642
+ declare class MagicOverlayContainer extends BaseMagicOverlayContainer implements OnInit, AfterViewInit, IMagicViewContainerRef {
1643
+ /**
1644
+ * HTML to be displayed in the modal window
1645
+ */
1646
+ modalbodyViewContainerRef: ViewContainerRef;
1647
+ /**
1648
+ * Header of the modal window
1649
+ */
1650
+ headerElementRef: ElementRef;
1651
+ /**
1652
+ * Foreground of the modal window
1653
+ */
1654
+ foregroundElementRef: ElementRef;
1655
+ /**
1656
+ *
1657
+ */
1658
+ ModalComp: any;
1659
+ /**
1660
+ *
1661
+ */
1662
+ ModalCompParameters: any;
1663
+ onClose: EventEmitter<void>;
1664
+ /**
1665
+ *
1666
+ */
1667
+ private componentRef;
1668
+ private resizing;
1669
+ private resizeDirection;
1670
+ private originalWidth;
1671
+ private originalHeight;
1672
+ private originalMouseX;
1673
+ private originalMouseY;
1674
+ private isCenteredToWindow;
1675
+ private static readonly minAllowedWidth;
1676
+ private static readonly minAllowedHeight;
1677
+ private _isRtl;
1678
+ /**
1679
+ *
1680
+ */
1681
+ constructor();
1682
+ /**
1683
+ *
1684
+ */
1685
+ ngOnInit(): void;
1686
+ ngAfterViewInit(): void;
1687
+ setViewContainerRef(vcRef: ViewContainerRef): void;
1688
+ /**
1689
+ * Returns the form name
1690
+ * @returns
1691
+ */
1692
+ getText(): any;
1693
+ /**
1694
+ * Returns boolean to indicate whether the text direction is right-to-left (RTL)
1695
+ */
1696
+ get isRtl(): boolean;
1697
+ /**
1698
+ * Returns CSS styles for the window
1699
+ * @returns
1700
+ */
1701
+ getStyle(): {};
1702
+ /**
1703
+ * Returns the CSS styles for the client area
1704
+ * @returns
1705
+ */
1706
+ getClientAreaStyles(): {};
1707
+ /**
1708
+ * Should the title bar be displayed
1709
+ * @returns
1710
+ */
1711
+ getShowTitleBar(): any;
1712
+ /**
1713
+ *
1714
+ */
1715
+ OnClose(): void;
1716
+ /**
1717
+ * Handles click in the background window
1718
+ */
1719
+ OnBackgroundClick(): void;
1720
+ /**
1721
+ * Checks if the overlay component allows to be resized.
1722
+ * @returns {boolean} True if the overlay is resizable, false otherwise.
1723
+ */
1724
+ IsResizable(): any;
1725
+ /**
1726
+ * Checks if the overlay component allows to be moved (dragged).
1727
+ * @returns {boolean} True if the overlay is movable, false otherwise.
1728
+ */
1729
+ IsMovable(): any;
1730
+ /**
1731
+ * Initiates the resize process when a mousedown event occurs on a resize handle.
1732
+ * Stores the initial state (dimensions, mouse position) and sets flags.
1733
+ * @param {MouseEvent} event - The mousedown event triggering the resize.
1734
+ * @param {'right' | 'bottom' | 'corner'} direction - Indicates which resize handle was activated.
1735
+ */
1736
+ onResizeStart(event: MouseEvent, direction: 'right' | 'left' | 'bottom' | 'corner'): void;
1737
+ /**
1738
+ * Handles the resizing logic as the mouse moves across the window.
1739
+ * This listener is active globally on the window during a resize operation via @HostListener.
1740
+ * Calculates and applies the new dimensions to the element based on mouse movement.
1741
+ * @param {MouseEvent} event - The mousemove event passed by the HostListener.
1742
+ */
1743
+ onResize(event: MouseEvent): void;
1744
+ /**
1745
+ * Finalizes the resize operation when the mouse button is released anywhere on the window.
1746
+ * Resets the resizing state flags. Triggered globally via @HostListener.
1747
+ */
1748
+ onResizeEnd(): void;
1749
+ getOverlayProps(): MagicModalInterface;
1750
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainer, never>;
1751
+ 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>;
1752
+ }
1753
+
1777
1754
  /**
1778
1755
  * This is a base class for the magic alert components
1779
1756
  */
@@ -1843,26 +1820,21 @@ declare class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
1843
1820
  }
1844
1821
 
1845
1822
  declare class MagicOverlayContainerWrapper implements IMagicViewContainerRef {
1846
- private componentListMagicService;
1847
- private magicLazyModuleLoader;
1848
- private injector;
1849
- private changeDetectorRef;
1850
- private compiler;
1851
1823
  /**
1852
1824
  *
1853
1825
  */
1854
- Component: any;
1826
+ Component: i0.InputSignal<any>;
1855
1827
  /**
1856
1828
  *
1857
1829
  */
1858
- Parameters: any;
1859
- private OverlayTypeParam;
1860
- private onClose;
1830
+ Parameters: i0.InputSignal<any>;
1831
+ OverlayTypeParam: i0.InputSignal<OverlayType>;
1832
+ onClose: i0.OutputEmitterRef<void>;
1861
1833
  /**
1862
1834
  * HTML to be displayed in the modal window
1863
1835
  */
1864
1836
  overlayContentViewContainerRef: ViewContainerRef;
1865
- overlayContainerWrapperElementRef: ElementRef;
1837
+ overlayContainerWrapperElementRef: i0.Signal<ElementRef<any>>;
1866
1838
  /**
1867
1839
  * @ignore
1868
1840
  * contais data of allowed base components to use
@@ -1871,11 +1843,11 @@ declare class MagicOverlayContainerWrapper implements IMagicViewContainerRef {
1871
1843
  comp: any;
1872
1844
  error: string;
1873
1845
  }>;
1874
- /**
1875
- *
1876
- * @param componentFactoryResolver
1877
- */
1878
- constructor(componentListMagicService: ComponentListMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, changeDetectorRef: ChangeDetectorRef, compiler: Compiler);
1846
+ private componentListMagicService;
1847
+ private magicLazyModuleLoader;
1848
+ private injector;
1849
+ private changeDetectorRef;
1850
+ constructor();
1879
1851
  /**
1880
1852
  *
1881
1853
  */
@@ -1885,7 +1857,7 @@ declare class MagicOverlayContainerWrapper implements IMagicViewContainerRef {
1885
1857
  GetRootElement(): HTMLElement;
1886
1858
  DetectChanges(): void;
1887
1859
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainerWrapper, never>;
1888
- static ɵcmp: i0.ɵɵComponentDeclaration<MagicOverlayContainerWrapper, "app-magic-overlay-container-wrapper", never, { "Component": { "alias": "Component"; "required": false; }; "Parameters": { "alias": "Parameters"; "required": false; }; "OverlayTypeParam": { "alias": "OverlayTypeParam"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
1860
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicOverlayContainerWrapper, "app-magic-overlay-container-wrapper", never, { "Component": { "alias": "Component"; "required": false; "isSignal": true; }; "Parameters": { "alias": "Parameters"; "required": false; "isSignal": true; }; "OverlayTypeParam": { "alias": "OverlayTypeParam"; "required": false; "isSignal": true; }; }, { "onClose": "onClose"; }, never, never, false, never>;
1889
1861
  }
1890
1862
 
1891
1863
  /**
@@ -1897,36 +1869,36 @@ declare class ExitMagicService {
1897
1869
  */
1898
1870
  exitMagic(): void;
1899
1871
  static ɵfac: i0.ɵɵFactoryDeclaration<ExitMagicService, never>;
1900
- static ɵprov: i0.ɵɵInjectableDeclaration<ExitMagicService>;
1872
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1901
1873
  }
1902
1874
 
1903
1875
  /**
1904
1876
  * Root Magic component
1905
1877
  */
1906
1878
  declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerRef {
1907
- protected engineMagicService: EngineMagicService;
1908
- protected componentList: ComponentListMagicService;
1909
- protected changeDetectorRef: ChangeDetectorRef;
1910
- private titleService;
1911
- private overlayWindowService;
1912
- private httpClient;
1913
- private pendingCommandsCollector;
1914
- private route;
1915
- private router;
1916
- exitMagicService: ExitMagicService;
1917
1879
  /**
1918
1880
  * Root component to be displayed in the window
1919
1881
  */
1920
- RootComponent: Component;
1882
+ RootComponent: Type<any>;
1921
1883
  /**
1922
1884
  * parameters for the Root Component
1923
1885
  */
1924
1886
  RootComponentParameters: any;
1925
1887
  overlayWindowsContainerViewRef: ViewContainerRef;
1926
- rootMagicElementRef: ElementRef;
1927
- SpinnerTemplate: TemplateRef<any>;
1888
+ rootMagicElementRef: i0.Signal<ElementRef<any>>;
1889
+ SpinnerTemplate: i0.InputSignal<TemplateRef<any>>;
1928
1890
  showSpinner: boolean;
1929
1891
  magicEngineTerminated: boolean;
1892
+ protected engineMagicService: EngineMagicService;
1893
+ protected componentList: ComponentListMagicService;
1894
+ protected changeDetectorRef: ChangeDetectorRef;
1895
+ private titleService;
1896
+ private overlayWindowService;
1897
+ private httpClient;
1898
+ private pendingCommandsCollector;
1899
+ private route;
1900
+ private router;
1901
+ exitMagicService: ExitMagicService;
1930
1902
  /**
1931
1903
  *
1932
1904
  * @param magic Magic's service
@@ -1936,13 +1908,19 @@ declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerR
1936
1908
  * @param httpClient The native httpClient instance
1937
1909
  * @param exitMagicService Magic exit service
1938
1910
  */
1939
- constructor(engineMagicService: EngineMagicService, componentList: ComponentListMagicService, changeDetectorRef: ChangeDetectorRef, titleService: Title, overlayWindowService: OverlayWindowService, httpClient: HttpClient, pendingCommandsCollector: CommandsCollectorMagicService, route: ActivatedRoute, router: Router, exitMagicService: ExitMagicService);
1911
+ constructor();
1940
1912
  /**
1941
1913
  * Before-unload event listener
1942
1914
  * @param event
1943
1915
  */
1944
1916
  onBeforeUnload(event: any): string;
1945
- onUnload(event: any): void;
1917
+ /**
1918
+ * Page-hide event listener, used in place of 'unload'.
1919
+ * Chrome blocks 'unload' by permissions policy ("unload is not allowed in this document"),
1920
+ * so an unload handler is never even registered. 'pagehide' is fired at an earlier step of
1921
+ * the same unloading sequence, so it covers every case 'unload' did.
1922
+ */
1923
+ onPageHide(): void;
1946
1924
  ngAfterViewInit(): void;
1947
1925
  setViewContainerRef(vcRef: ViewContainerRef): void;
1948
1926
  /**
@@ -1970,16 +1948,14 @@ declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerR
1970
1948
  * @param command
1971
1949
  */
1972
1950
  executeCommand(command: GuiCommand): void;
1973
- static ɵfac: i0.ɵɵFactoryDeclaration<MagicShellComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
1974
- static ɵcmp: i0.ɵɵComponentDeclaration<MagicShellComponent, "magic-root", never, { "SpinnerTemplate": { "alias": "SpinnerTemplate"; "required": false; }; }, {}, never, never, false, never>;
1951
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicShellComponent, never>;
1952
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicShellComponent, "magic-root", never, { "SpinnerTemplate": { "alias": "SpinnerTemplate"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
1975
1953
  }
1976
1954
 
1977
1955
  /**
1978
1956
  * Represents a Magic subform
1979
1957
  */
1980
1958
  declare class SubformMagicComponent {
1981
- private vcRef;
1982
- protected mgSub: SubformMagicService;
1983
1959
  /**
1984
1960
  * @ignore
1985
1961
  */
@@ -1995,11 +1971,13 @@ declare class SubformMagicComponent {
1995
1971
  /**
1996
1972
  * @ignore
1997
1973
  */
1998
- constructor(vcRef: ViewContainerRef, mgSub: SubformMagicService);
1974
+ constructor();
1975
+ private vcRef;
1976
+ protected mgSub: SubformMagicService;
1999
1977
  /**
2000
1978
  * @ignore
2001
1979
  */
2002
- get Component(): Component;
1980
+ get Component(): Type<any>;
2003
1981
  /**
2004
1982
  * @ignore
2005
1983
  */
@@ -2012,9 +1990,6 @@ declare class SubformMagicComponent {
2012
1990
  * Represents a Magic subform
2013
1991
  */
2014
1992
  declare class ErrorMagicComponent {
2015
- protected _task: TaskMagicService;
2016
- mgService: AccessorMagicService;
2017
- protected changeDetectorRef: ChangeDetectorRef;
2018
1993
  /**
2019
1994
  * @ignore
2020
1995
  */
@@ -2026,11 +2001,11 @@ declare class ErrorMagicComponent {
2026
2001
  set magic(val: any);
2027
2002
  set rowId1(val: any);
2028
2003
  defaultDisplay: boolean;
2029
- set CustomContent(innerComponent: ElementRef);
2004
+ private customContentRef;
2030
2005
  /**
2031
2006
  * @ignore
2032
2007
  */
2033
- constructor(_task: TaskMagicService, mgService: AccessorMagicService, changeDetectorRef: ChangeDetectorRef);
2008
+ constructor();
2034
2009
  /**
2035
2010
  * returns true if the html element has no children
2036
2011
  * @param element
@@ -2040,6 +2015,9 @@ declare class ErrorMagicComponent {
2040
2015
  * @ignore
2041
2016
  */
2042
2017
  HasErrors(id: string): boolean;
2018
+ protected _task: TaskMagicService;
2019
+ mgService: AccessorMagicService;
2020
+ protected changeDetectorRef: ChangeDetectorRef;
2043
2021
  static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMagicComponent, never>;
2044
2022
  static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMagicComponent, "mgError", never, { "magic": { "alias": "magic"; "required": false; }; "rowId1": { "alias": "rowId"; "required": false; }; }, {}, never, ["*"], false, never>;
2045
2023
  }
@@ -2049,13 +2027,19 @@ declare class ErrorMagicComponent {
2049
2027
  */
2050
2028
  declare class NoControlMagicDirective extends MagicDirective {
2051
2029
  set magic(val: any);
2052
- constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, platform: Platform, magicRow: RowMagicDirective);
2030
+ constructor();
2031
+ _task: TaskMagicService;
2032
+ element: ElementRef;
2033
+ renderer: Renderer2;
2034
+ vcRef: ViewContainerRef;
2035
+ platform: Platform;
2036
+ magicRow: RowMagicDirective;
2053
2037
  regEvents(): void;
2054
2038
  isTabControl(): boolean;
2055
2039
  isRadio(): boolean;
2056
2040
  handleCommand(command: GuiCommand): void;
2057
2041
  handleSetProperty(command: GuiCommand): void;
2058
- static ɵfac: i0.ɵɵFactoryDeclaration<NoControlMagicDirective, [null, null, null, null, null, { optional: true; }]>;
2042
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoControlMagicDirective, never>;
2059
2043
  static ɵdir: i0.ɵɵDirectiveDeclaration<NoControlMagicDirective, "[magicnc]", never, { "magic": { "alias": "magicnc"; "required": false; }; }, {}, never, never, false, never>;
2060
2044
  }
2061
2045
 
@@ -2063,13 +2047,15 @@ declare class NoControlMagicDirective extends MagicDirective {
2063
2047
  * Perform Magic validation on input controls which hold alphanumeric strings
2064
2048
  */
2065
2049
  declare class MgformatMagicDirective {
2050
+ datePasteFlag: boolean;
2051
+ private caretPosAfterMinus;
2052
+ private currencyConfig;
2066
2053
  protected magicDir: MagicDirective;
2067
2054
  protected _task: TaskMagicService;
2068
- datePasteFlag: boolean;
2069
2055
  /**
2070
2056
  * @ignore
2071
2057
  */
2072
- constructor(magicDir: MagicDirective, _task: TaskMagicService);
2058
+ constructor();
2073
2059
  ngAfterViewInit(): void;
2074
2060
  /**
2075
2061
  * @ignore
@@ -2080,7 +2066,20 @@ declare class MgformatMagicDirective {
2080
2066
  */
2081
2067
  onFocusEvent($event: any): void;
2082
2068
  onPaste(event: ClipboardEvent): void;
2069
+ /**
2070
+ * ngx-currency moves the cursor to the end when '-' is typed, so fix the cursor position.
2071
+ * Only Natural input mode needs this. In Financial mode digits are entered
2072
+ * from the right, so the cursor at the end already works.
2073
+ */
2074
+ onBeforeInputEvent(event: any): void;
2083
2075
  onInputEvent(event: any): void;
2076
+ /**
2077
+ * Saves where the cursor must go after '-' is typed in a numeric control.
2078
+ * The cursor can't be set here: ngx-currency adds the '-' on the input event,
2079
+ * which comes after this one, and moves the cursor to the end.
2080
+ * @param input The input control
2081
+ */
2082
+ saveCaretPosition(input: HTMLInputElement): void;
2084
2083
  dateMasking(event: any): void;
2085
2084
  /**
2086
2085
  * @ignore
@@ -2146,7 +2145,7 @@ declare class Constants {
2146
2145
  */
2147
2146
  declare class DateMagicPipe extends DatePipe implements PipeTransform {
2148
2147
  protected _task: TaskMagicService;
2149
- constructor(_task: TaskMagicService);
2148
+ constructor();
2150
2149
  transform(value: any, controlId: string): any;
2151
2150
  static ɵfac: i0.ɵɵFactoryDeclaration<DateMagicPipe, never>;
2152
2151
  static ɵpipe: i0.ɵɵPipeDeclaration<DateMagicPipe, "magicDate", false>;
@@ -2160,7 +2159,7 @@ declare class MgDateFormatter {
2160
2159
  */
2161
2160
  declare class TimeMagicPipe extends DatePipe implements PipeTransform {
2162
2161
  protected _task: TaskMagicService;
2163
- constructor(_task: TaskMagicService);
2162
+ constructor();
2164
2163
  transform(value: any, controlId: string): any;
2165
2164
  static ɵfac: i0.ɵɵFactoryDeclaration<TimeMagicPipe, never>;
2166
2165
  static ɵpipe: i0.ɵɵPipeDeclaration<TimeMagicPipe, "magicTime", false>;
@@ -2177,7 +2176,7 @@ declare class RangeValidatorMagicDirective implements Validator {
2177
2176
  * @param _task The task service
2178
2177
  * @param vcRef
2179
2178
  */
2180
- constructor(_task: TaskMagicService, vcRef: ViewContainerRef);
2179
+ constructor();
2181
2180
  /**
2182
2181
  * Validation method
2183
2182
  * @param c FormControl to validate
@@ -2200,10 +2199,6 @@ declare class RangeValidatorMagicDirective implements Validator {
2200
2199
  * Responsible for connecting HTML elements to the Magic WebClient engine showing it is not Magic Control but a Dummy control which is used to notify only receeive focus event for now
2201
2200
  */
2202
2201
  declare class NonMagicControlDirective implements OnInit {
2203
- protected _task: TaskMagicService;
2204
- protected element: ElementRef;
2205
- protected renderer: Renderer2;
2206
- protected vcRef: ViewContainerRef;
2207
2202
  set magic(val: any);
2208
2203
  /**
2209
2204
  * The HTML element connected to this directive
@@ -2237,7 +2232,11 @@ declare class NonMagicControlDirective implements OnInit {
2237
2232
  * @param renderer Renderer for the element
2238
2233
  * @param vcRef
2239
2234
  */
2240
- constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef);
2235
+ constructor();
2236
+ protected _task: TaskMagicService;
2237
+ protected element: ElementRef;
2238
+ protected renderer: Renderer2;
2239
+ protected vcRef: ViewContainerRef;
2241
2240
  /**
2242
2241
  * Get the task service
2243
2242
  * @returns
@@ -2264,7 +2263,7 @@ declare class NonMagicControlDirective implements OnInit {
2264
2263
  */
2265
2264
  declare class MagicFocusDirective {
2266
2265
  private hostElement;
2267
- constructor(hostElement: ElementRef);
2266
+ constructor();
2268
2267
  ngAfterViewInit(): void;
2269
2268
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicFocusDirective, never>;
2270
2269
  static ɵdir: i0.ɵɵDirectiveDeclaration<MagicFocusDirective, "[magicFocus]", never, {}, {}, never, never, false, never>;
@@ -2275,14 +2274,14 @@ declare class MagicFocusDirective {
2275
2274
  */
2276
2275
  declare class MagicViewContainerRef {
2277
2276
  private vcRef;
2278
- constructor(vcRef: ViewContainerRef);
2277
+ constructor();
2279
2278
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicViewContainerRef, never>;
2280
2279
  static ɵdir: i0.ɵɵDirectiveDeclaration<MagicViewContainerRef, "[magicViewContainerRef]", never, {}, {}, never, never, false, never>;
2281
2280
  }
2282
2281
 
2283
2282
  declare class Time24MagicPipe implements PipeTransform {
2284
2283
  protected _task: TaskMagicService;
2285
- constructor(_task: TaskMagicService);
2284
+ constructor();
2286
2285
  transform(value: any, controlId: string): any;
2287
2286
  static ɵfac: i0.ɵɵFactoryDeclaration<Time24MagicPipe, never>;
2288
2287
  static ɵpipe: i0.ɵɵPipeDeclaration<Time24MagicPipe, "magicTime24", false>;
@@ -2293,10 +2292,89 @@ declare class Time24MagicPipe implements PipeTransform {
2293
2292
  */
2294
2293
  declare class MagicModule {
2295
2294
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicModule, never>;
2296
- static ɵmod: i0.ɵɵNgModuleDeclaration<MagicModule, [typeof MagicDirective, typeof CheckboxMagicDirective, typeof CheckboxNoFormControlMagicDirective, typeof InputNoFormControlMagicDirective, typeof ComboboxMagicDirective, typeof RowMagicDirective, typeof MagicCheckboxControlValueAccessor, typeof MagicDefaultValueAccessor, typeof DateValueAccessor, typeof TaskBaseMagicComponent, typeof MagicOverlayContainer, typeof MagicAlertComponent, typeof MagicConfirmationBoxComponent, typeof BaseMagicAlertComponent, typeof BaseMagicConfirmComponent, typeof MagicOverlayContainerWrapper, typeof RouterContainerMagicComponent, typeof MagicShellComponent, typeof SubformMagicComponent, typeof ErrorMagicComponent, typeof NoControlMagicDirective, typeof MgformatMagicDirective, typeof DateMagicPipe, typeof TimeMagicPipe, typeof RangeValidatorMagicDirective, typeof NonMagicControlDirective, typeof MagicFocusDirective, typeof MagicViewContainerRef, typeof Time24MagicPipe], [typeof i30.CommonModule, typeof i31.FormsModule, typeof i31.ReactiveFormsModule, typeof i32.RouterModule, typeof i33.DynamicModule, typeof i34.CdkDragHandle, typeof i34.CdkDrag, typeof i34.DragDropModule], [typeof MagicDirective, typeof CheckboxMagicDirective, typeof CheckboxNoFormControlMagicDirective, typeof InputNoFormControlMagicDirective, typeof ComboboxMagicDirective, typeof RowMagicDirective, typeof MagicCheckboxControlValueAccessor, typeof MagicDefaultValueAccessor, typeof DateValueAccessor, typeof TaskBaseMagicComponent, typeof MagicOverlayContainer, typeof MagicAlertComponent, typeof MagicConfirmationBoxComponent, typeof BaseMagicAlertComponent, typeof BaseMagicConfirmComponent, typeof MagicOverlayContainerWrapper, typeof RouterContainerMagicComponent, typeof MagicShellComponent, typeof SubformMagicComponent, typeof ErrorMagicComponent, typeof NoControlMagicDirective, typeof MgformatMagicDirective, typeof DateMagicPipe, typeof TimeMagicPipe, typeof RangeValidatorMagicDirective, typeof NonMagicControlDirective, typeof MagicFocusDirective, typeof MagicViewContainerRef, typeof Time24MagicPipe, typeof i35.MaskitoModule]>;
2295
+ 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]>;
2297
2296
  static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
2298
2297
  }
2299
2298
 
2299
+ /**
2300
+ * Service managing alert and confirmation windows
2301
+ * This is Magic's default provider
2302
+ */
2303
+ declare class ConfirmationComponentsMagicProvider {
2304
+ /**
2305
+ * Return true when use default javascript alert and confirmation or return false to provide custom components
2306
+ * @returns true is we want to use default javascript alert and confirmation
2307
+ */
2308
+ showDefaultConfirmations(): boolean;
2309
+ /**
2310
+ * Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
2311
+ * @returns component that will replace javascript Alert
2312
+ */
2313
+ getAlertComponent(): any;
2314
+ /**
2315
+ * Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
2316
+ * @returns component that will replace javascript confirmation box
2317
+ */
2318
+ getConfirmtionComponent(): any;
2319
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
2320
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2321
+ }
2322
+
2323
+ /**
2324
+ * Notifies Angular that Magic state changed outside of its knowledge.
2325
+ *
2326
+ * The WebClient runs zoneless, so Angular no longer re-renders the application
2327
+ * after every asynchronous task. Change detection is triggered only by Angular's
2328
+ * own APIs - a template event binding, a signal write, `markForCheck()` and so on.
2329
+ *
2330
+ * Magic drives the UI from sources Angular cannot observe: DOM listeners registered
2331
+ * through `Renderer2`, the engine's event loop, and socket callbacks. Every such
2332
+ * source calls {@link notify}, and the Magic components refresh themselves in response.
2333
+ *
2334
+ * Application code can use this service for the same purpose. Call {@link notify}
2335
+ * after changing component state from a callback Angular does not control - a
2336
+ * `setTimeout`, a `Promise`, a `fetch` response or a third-party widget event:
2337
+ *
2338
+ * ```ts
2339
+ * export class MyForm extends TaskBaseMagicComponent {
2340
+ * private readonly magicChangeDetection = inject(MagicChangeDetectionService);
2341
+ *
2342
+ * override mgOnLoad(): void {
2343
+ * setTimeout(() => {
2344
+ * this.statusText = 'Ready';
2345
+ * this.magicChangeDetection.notify();
2346
+ * }, 1000);
2347
+ * }
2348
+ * }
2349
+ * ```
2350
+ *
2351
+ * Notifications are coalesced by Angular's scheduler, so calling {@link notify}
2352
+ * several times in a row still results in a single refresh.
2353
+ */
2354
+ declare class MagicChangeDetectionService {
2355
+ /**
2356
+ * @ignore
2357
+ */
2358
+ private readonly changedSubject;
2359
+ /**
2360
+ * Emits whenever Magic state changed and the views should be refreshed.
2361
+ * Subscribers are expected to mark their view for check.
2362
+ */
2363
+ readonly changed: Observable<void>;
2364
+ /**
2365
+ * Notify Angular that state which the templates depend on has changed.
2366
+ */
2367
+ notify(): void;
2368
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicChangeDetectionService, never>;
2369
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2370
+ }
2371
+
2372
+ declare class MagicLazyLoaderService {
2373
+ Load(path: string): Promise<any>;
2374
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicLazyLoaderService, never>;
2375
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2376
+ }
2377
+
2300
2378
  declare const MG_FORMATS: {
2301
2379
  parse: {
2302
2380
  dateInput: {
@@ -2323,14 +2401,14 @@ declare const MG_FORMATS: {
2323
2401
  };
2324
2402
  };
2325
2403
  declare class MgDateAdapter extends NativeDateAdapter {
2404
+ mgdtfmt: string;
2326
2405
  protected task: TaskMagicService;
2327
2406
  localeId: string;
2328
- mgdtfmt: string;
2329
- constructor(task: TaskMagicService, localeId: string);
2407
+ constructor();
2330
2408
  parse(value: any): Date | null;
2331
2409
  format(date: Date, displayFormat: Object): string;
2332
2410
  static ɵfac: i0.ɵɵFactoryDeclaration<MgDateAdapter, never>;
2333
- static ɵprov: i0.ɵɵInjectableDeclaration<MgDateAdapter>;
2411
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2334
2412
  }
2335
2413
 
2336
2414
  declare const matDateProviders: ({
@@ -2369,7 +2447,7 @@ declare const matDateProviders: ({
2369
2447
  /**
2370
2448
  * Magic service providers
2371
2449
  */
2372
- declare const basicMagicProviders: (typeof TaskMagicService | typeof AccessorMagicService | typeof SubformMagicService | typeof TitleMagicService | typeof MagicServices | ({
2450
+ declare const basicMagicProviders: (typeof TaskMagicService | typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof MagicServices | ({
2373
2451
  provide: typeof DateAdapter;
2374
2452
  useClass: typeof MgDateAdapter;
2375
2453
  useValue?: undefined;
@@ -2402,7 +2480,7 @@ declare const basicMagicProviders: (typeof TaskMagicService | typeof AccessorMag
2402
2480
  };
2403
2481
  useClass?: undefined;
2404
2482
  })[])[];
2405
- declare const magicProviders: (typeof TaskMagicService | typeof AccessorMagicService | typeof SubformMagicService | typeof TableMagicService | typeof TitleMagicService | typeof MagicServices | ({
2483
+ declare const magicProviders: (typeof TaskMagicService | typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof TableMagicService | typeof MagicServices | ({
2406
2484
  provide: typeof DateAdapter;
2407
2485
  useClass: typeof MgDateAdapter;
2408
2486
  useValue?: undefined;
@@ -2436,6 +2514,53 @@ declare const magicProviders: (typeof TaskMagicService | typeof AccessorMagicSer
2436
2514
  useClass?: undefined;
2437
2515
  })[])[];
2438
2516
 
2517
+ declare class OverlayContainerMagicProvider {
2518
+ getComponent(): typeof MagicOverlayContainer;
2519
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainerMagicProvider, never>;
2520
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2521
+ }
2522
+
2523
+ /**
2524
+ * Service managing overlay windows
2525
+ */
2526
+ declare class OverlayWindowService {
2527
+ protected componentList: ComponentListMagicService;
2528
+ protected engineMagicService: EngineMagicService;
2529
+ private magicLazyModuleLoader;
2530
+ private injector;
2531
+ private overlayContainerMagicProvider;
2532
+ private confirmationComponentsMagicProvider;
2533
+ constructor();
2534
+ private overlayWindowsContainerViewRef;
2535
+ private overlayWindowFocusManager;
2536
+ private changeDetectorRef;
2537
+ init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element, changeDetectorRef: ChangeDetectorRef): void;
2538
+ loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
2539
+ open(formName: string, taskId: string, taskDescription: string): void;
2540
+ close(commandStr: string): void;
2541
+ /**
2542
+ * Open Confirmation box
2543
+ * @param title title of the box
2544
+ * @param msg message
2545
+ * @param style Magic style
2546
+ */
2547
+ openConfirmationBox(title: string, msg: string, style: Styles): void;
2548
+ /**
2549
+ * This method is called on close of the confirmation
2550
+ * @param style Magic style
2551
+ * @param result
2552
+ */
2553
+ finishConfirmation(style: Styles, result: boolean): void;
2554
+ /**
2555
+ * creates a modal component. Can be used for overlay, message box or confirmation box
2556
+ * @param parameters component's parameters
2557
+ * @param component components to create
2558
+ */
2559
+ private createModalComponent;
2560
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
2561
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2562
+ }
2563
+
2439
2564
  /**
2440
2565
  * @ignore
2441
2566
  */
@@ -2445,6 +2570,50 @@ declare class StylesMapManager {
2445
2570
  static magicValueGetStyle(styleName: string, magicValue: any): string;
2446
2571
  }
2447
2572
 
2573
+ declare class SubscriberService {
2574
+ private static instance;
2575
+ private socket;
2576
+ private constructor();
2577
+ /**
2578
+ * Subscribe to a specific topic
2579
+ * @param topic The topic to subscribe to
2580
+ */
2581
+ subscribe(topic: string): void;
2582
+ /**
2583
+ * Unsubscribe from a specific topic
2584
+ * @param topic The topic to unsubscribe from
2585
+ */
2586
+ unsubscribe(topic: string): void;
2587
+ /**
2588
+ * Get an Observable for incoming messages
2589
+ * @returns Observable that emits message data
2590
+ */
2591
+ onMessage(): Observable<{
2592
+ topic: string;
2593
+ message: any;
2594
+ }>;
2595
+ /**
2596
+ * Get current subscriptions (for debugging)
2597
+ */
2598
+ getSubscriptions(): void;
2599
+ /**
2600
+ * Listen for subscriptions data
2601
+ * @returns Observable that emits subscriptions list
2602
+ */
2603
+ onSubscriptionsData(): Observable<any[]>;
2604
+ /**
2605
+ * Get the singleton instance of SubscriberService
2606
+ * @returns {SubscriberService} The singleton instance
2607
+ */
2608
+ static getInstance(): SubscriberService;
2609
+ /**
2610
+ * Disconnect from the server
2611
+ */
2612
+ disconnect(): void;
2613
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubscriberService, never>;
2614
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2615
+ }
2616
+
2448
2617
  /**
2449
2618
  * @ignore
2450
2619
  */
@@ -2514,51 +2683,29 @@ declare class ModalFormDefinition {
2514
2683
  parameters: any;
2515
2684
  }
2516
2685
 
2517
- /**
2518
- * Describes the behavior of a modal window
2519
- */
2520
- interface MagicModalInterface {
2521
- /**
2522
- * Returns the X coordinate of the modal window
2523
- */
2524
- X(): any;
2525
- /**
2526
- * Returns the Y coordinate of the modal window
2527
- */
2528
- Y(): any;
2529
- /**
2530
- * Returns the width of modal window
2531
- */
2686
+ declare class MagicModalProperties implements MagicModalInterface {
2687
+ private formName;
2688
+ private showTitleBar;
2689
+ private x;
2690
+ private y;
2691
+ private width;
2692
+ private height;
2693
+ private isCenteredToWindow;
2694
+ private shouldCloseOnBackgroundClick;
2695
+ private isResizable;
2696
+ private isMovable;
2697
+ constructor(formName: string, showTitleBar: boolean, x: number, y: number, width: string, height: string, isCenteredToWindow: boolean, shouldCloseOnBackgroundClick: boolean, isResizable: boolean, isMovable: boolean);
2698
+ X(): number;
2699
+ Y(): number;
2532
2700
  Width(): string;
2533
- /**
2534
- * Returns the height of modal window
2535
- */
2536
2701
  Height(): string;
2537
- /**
2538
- * Is the modal window centered relatively to the main window
2539
- */
2540
- IsCenteredToWindow(): any;
2541
- /**
2542
- * Returns the name of the form - title of the modal window
2543
- */
2544
- FormName(): any;
2545
- /**
2546
- * Should the title bar be displayed
2547
- */
2548
- ShowTitleBar(): any;
2549
- /**
2550
- * Should the modal window close when the user clicks on the background
2551
- */
2552
- ShouldCloseOnBackgroundClick(): any;
2553
- /**
2554
- * Is overlay window resizable
2555
- */
2556
- IsResizable(): any;
2557
- /**
2558
- * Is overlay window movable
2559
- */
2560
- IsMovable(): any;
2702
+ IsCenteredToWindow(): boolean;
2703
+ FormName(): string;
2704
+ ShowTitleBar(): boolean;
2705
+ ShouldCloseOnBackgroundClick(): boolean;
2706
+ IsResizable(): boolean;
2707
+ IsMovable(): boolean;
2561
2708
  }
2562
2709
 
2563
- export { AccessorMagicService, BaseMagicAlertComponent, BaseMagicConfirmComponent, BaseMagicOverlayContainer, CHECKBOX_VALUE_ACCESSOR, COLOR_FILE_NAME, CheckboxMagicDirective, CheckboxNoFormControlMagicDirective, ComboboxMagicDirective, CommandsCollectorMagicService, ComponentListMagicService, ConfirmationComponentsMagicProvider, Constants, ControlMetadata, ControlsMetadata, DATE_VALUE_ACCESSOR, DateMagicPipe, DateValueAccessor, EngineMagicService, ErrorMagicComponent, ExitMagicService, GuiInteractiveExecutor, HtmlClasses, InputNoFormControlMagicDirective, MAGIC_BG_COLOR, MAGIC_DEFAULT_VALUE_ACCESSOR, MAGIC_FG_COLOR, MG_FORMATS, MagicAlertComponent, MagicCheckboxControlValueAccessor, MagicColorService, MagicConfirmationBoxComponent, MagicDefaultValueAccessor, MagicDirective, MagicFocusDirective, MagicLazyLoaderService, MagicModule, MagicOverlayContainer, MagicOverlayContainerWrapper, MagicServices, MagicShellComponent, MagicViewContainerRef, MgDateAdapter, MgDateFormatter, MgformatMagicDirective, ModalFormDefinition, NoControlMagicDirective, NonMagicControlDirective, OverlayContainerMagicProvider, OverlayWindowService, RangeValidatorMagicDirective, Records, RouteCommand, RouterCommandsMagicService, RouterContainerMagicComponent, RowMagicDirective, StylesMapManager, SubformMagicComponent, SubformMagicService, TableMagicService, TaskBaseMagicComponent, TaskMagicService, Time24MagicPipe, TimeMagicPipe, TitleMagicService, basicMagicProviders, confirmationBox, magicProviders, matDateProviders, utils };
2710
+ 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, MagicChangeDetectionService, 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 };
2564
2711
  export type { ComponentData, IMagicViewContainerRef, ISubformMagicService, MagicModalInterface, ModuleData, RouteDefinition, SubformDefinition };