@magic-xpa/angular 4.1300.0-dev4130.29 → 4.1300.0-dev4130.292
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/magic-xpa-angular.mjs +716 -572
- package/fesm2022/magic-xpa-angular.mjs.map +1 -1
- package/package.json +14 -11
- package/types/magic-xpa-angular.d.ts +537 -405
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { StorageAttribute, MagicProperties } from '@magic-xpa/utils';
|
|
2
|
-
import { HtmlProperties, CustomValidator, GuiCommand, GuiInteractive,
|
|
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,
|
|
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
|
|
20
|
-
import * as i35 from '@
|
|
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<
|
|
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<
|
|
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
|
-
|
|
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<
|
|
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<
|
|
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(
|
|
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
|
-
|
|
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):
|
|
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<
|
|
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<
|
|
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
|
-
|
|
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<
|
|
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(
|
|
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<
|
|
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
|
-
|
|
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<
|
|
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
|
-
|
|
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<
|
|
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(
|
|
1174
|
+
constructor();
|
|
1387
1175
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagicServices, never>;
|
|
1388
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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,
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
1860
|
-
|
|
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
|
-
|
|
1877
|
-
|
|
1878
|
-
constructor(
|
|
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<
|
|
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:
|
|
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(
|
|
1911
|
+
constructor();
|
|
1940
1912
|
/**
|
|
1941
1913
|
* Before-unload event listener
|
|
1942
1914
|
* @param event
|
|
1943
1915
|
*/
|
|
1944
1916
|
onBeforeUnload(event: any): string;
|
|
1945
|
-
|
|
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,
|
|
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(
|
|
1974
|
+
constructor();
|
|
1975
|
+
private vcRef;
|
|
1976
|
+
protected mgSub: SubformMagicService;
|
|
1999
1977
|
/**
|
|
2000
1978
|
* @ignore
|
|
2001
1979
|
*/
|
|
2002
|
-
get 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
|
-
|
|
2004
|
+
private customContentRef;
|
|
2030
2005
|
/**
|
|
2031
2006
|
* @ignore
|
|
2032
2007
|
*/
|
|
2033
|
-
constructor(
|
|
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(
|
|
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,
|
|
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,13 @@ 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;
|
|
2066
2051
|
protected magicDir: MagicDirective;
|
|
2067
2052
|
protected _task: TaskMagicService;
|
|
2068
|
-
datePasteFlag: boolean;
|
|
2069
2053
|
/**
|
|
2070
2054
|
* @ignore
|
|
2071
2055
|
*/
|
|
2072
|
-
constructor(
|
|
2056
|
+
constructor();
|
|
2073
2057
|
ngAfterViewInit(): void;
|
|
2074
2058
|
/**
|
|
2075
2059
|
* @ignore
|
|
@@ -2146,7 +2130,7 @@ declare class Constants {
|
|
|
2146
2130
|
*/
|
|
2147
2131
|
declare class DateMagicPipe extends DatePipe implements PipeTransform {
|
|
2148
2132
|
protected _task: TaskMagicService;
|
|
2149
|
-
constructor(
|
|
2133
|
+
constructor();
|
|
2150
2134
|
transform(value: any, controlId: string): any;
|
|
2151
2135
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateMagicPipe, never>;
|
|
2152
2136
|
static ɵpipe: i0.ɵɵPipeDeclaration<DateMagicPipe, "magicDate", false>;
|
|
@@ -2160,7 +2144,7 @@ declare class MgDateFormatter {
|
|
|
2160
2144
|
*/
|
|
2161
2145
|
declare class TimeMagicPipe extends DatePipe implements PipeTransform {
|
|
2162
2146
|
protected _task: TaskMagicService;
|
|
2163
|
-
constructor(
|
|
2147
|
+
constructor();
|
|
2164
2148
|
transform(value: any, controlId: string): any;
|
|
2165
2149
|
static ɵfac: i0.ɵɵFactoryDeclaration<TimeMagicPipe, never>;
|
|
2166
2150
|
static ɵpipe: i0.ɵɵPipeDeclaration<TimeMagicPipe, "magicTime", false>;
|
|
@@ -2177,7 +2161,7 @@ declare class RangeValidatorMagicDirective implements Validator {
|
|
|
2177
2161
|
* @param _task The task service
|
|
2178
2162
|
* @param vcRef
|
|
2179
2163
|
*/
|
|
2180
|
-
constructor(
|
|
2164
|
+
constructor();
|
|
2181
2165
|
/**
|
|
2182
2166
|
* Validation method
|
|
2183
2167
|
* @param c FormControl to validate
|
|
@@ -2200,10 +2184,6 @@ declare class RangeValidatorMagicDirective implements Validator {
|
|
|
2200
2184
|
* 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
2185
|
*/
|
|
2202
2186
|
declare class NonMagicControlDirective implements OnInit {
|
|
2203
|
-
protected _task: TaskMagicService;
|
|
2204
|
-
protected element: ElementRef;
|
|
2205
|
-
protected renderer: Renderer2;
|
|
2206
|
-
protected vcRef: ViewContainerRef;
|
|
2207
2187
|
set magic(val: any);
|
|
2208
2188
|
/**
|
|
2209
2189
|
* The HTML element connected to this directive
|
|
@@ -2237,7 +2217,11 @@ declare class NonMagicControlDirective implements OnInit {
|
|
|
2237
2217
|
* @param renderer Renderer for the element
|
|
2238
2218
|
* @param vcRef
|
|
2239
2219
|
*/
|
|
2240
|
-
constructor(
|
|
2220
|
+
constructor();
|
|
2221
|
+
protected _task: TaskMagicService;
|
|
2222
|
+
protected element: ElementRef;
|
|
2223
|
+
protected renderer: Renderer2;
|
|
2224
|
+
protected vcRef: ViewContainerRef;
|
|
2241
2225
|
/**
|
|
2242
2226
|
* Get the task service
|
|
2243
2227
|
* @returns
|
|
@@ -2264,7 +2248,7 @@ declare class NonMagicControlDirective implements OnInit {
|
|
|
2264
2248
|
*/
|
|
2265
2249
|
declare class MagicFocusDirective {
|
|
2266
2250
|
private hostElement;
|
|
2267
|
-
constructor(
|
|
2251
|
+
constructor();
|
|
2268
2252
|
ngAfterViewInit(): void;
|
|
2269
2253
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagicFocusDirective, never>;
|
|
2270
2254
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MagicFocusDirective, "[magicFocus]", never, {}, {}, never, never, false, never>;
|
|
@@ -2275,14 +2259,14 @@ declare class MagicFocusDirective {
|
|
|
2275
2259
|
*/
|
|
2276
2260
|
declare class MagicViewContainerRef {
|
|
2277
2261
|
private vcRef;
|
|
2278
|
-
constructor(
|
|
2262
|
+
constructor();
|
|
2279
2263
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagicViewContainerRef, never>;
|
|
2280
2264
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MagicViewContainerRef, "[magicViewContainerRef]", never, {}, {}, never, never, false, never>;
|
|
2281
2265
|
}
|
|
2282
2266
|
|
|
2283
2267
|
declare class Time24MagicPipe implements PipeTransform {
|
|
2284
2268
|
protected _task: TaskMagicService;
|
|
2285
|
-
constructor(
|
|
2269
|
+
constructor();
|
|
2286
2270
|
transform(value: any, controlId: string): any;
|
|
2287
2271
|
static ɵfac: i0.ɵɵFactoryDeclaration<Time24MagicPipe, never>;
|
|
2288
2272
|
static ɵpipe: i0.ɵɵPipeDeclaration<Time24MagicPipe, "magicTime24", false>;
|
|
@@ -2293,10 +2277,89 @@ declare class Time24MagicPipe implements PipeTransform {
|
|
|
2293
2277
|
*/
|
|
2294
2278
|
declare class MagicModule {
|
|
2295
2279
|
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
|
|
2280
|
+
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
2281
|
static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
|
|
2298
2282
|
}
|
|
2299
2283
|
|
|
2284
|
+
/**
|
|
2285
|
+
* Service managing alert and confirmation windows
|
|
2286
|
+
* This is Magic's default provider
|
|
2287
|
+
*/
|
|
2288
|
+
declare class ConfirmationComponentsMagicProvider {
|
|
2289
|
+
/**
|
|
2290
|
+
* Return true when use default javascript alert and confirmation or return false to provide custom components
|
|
2291
|
+
* @returns true is we want to use default javascript alert and confirmation
|
|
2292
|
+
*/
|
|
2293
|
+
showDefaultConfirmations(): boolean;
|
|
2294
|
+
/**
|
|
2295
|
+
* Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
|
|
2296
|
+
* @returns component that will replace javascript Alert
|
|
2297
|
+
*/
|
|
2298
|
+
getAlertComponent(): any;
|
|
2299
|
+
/**
|
|
2300
|
+
* Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
|
|
2301
|
+
* @returns component that will replace javascript confirmation box
|
|
2302
|
+
*/
|
|
2303
|
+
getConfirmtionComponent(): any;
|
|
2304
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
|
|
2305
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
* Notifies Angular that Magic state changed outside of its knowledge.
|
|
2310
|
+
*
|
|
2311
|
+
* The WebClient runs zoneless, so Angular no longer re-renders the application
|
|
2312
|
+
* after every asynchronous task. Change detection is triggered only by Angular's
|
|
2313
|
+
* own APIs - a template event binding, a signal write, `markForCheck()` and so on.
|
|
2314
|
+
*
|
|
2315
|
+
* Magic drives the UI from sources Angular cannot observe: DOM listeners registered
|
|
2316
|
+
* through `Renderer2`, the engine's event loop, and socket callbacks. Every such
|
|
2317
|
+
* source calls {@link notify}, and the Magic components refresh themselves in response.
|
|
2318
|
+
*
|
|
2319
|
+
* Application code can use this service for the same purpose. Call {@link notify}
|
|
2320
|
+
* after changing component state from a callback Angular does not control - a
|
|
2321
|
+
* `setTimeout`, a `Promise`, a `fetch` response or a third-party widget event:
|
|
2322
|
+
*
|
|
2323
|
+
* ```ts
|
|
2324
|
+
* export class MyForm extends TaskBaseMagicComponent {
|
|
2325
|
+
* private readonly magicChangeDetection = inject(MagicChangeDetectionService);
|
|
2326
|
+
*
|
|
2327
|
+
* override mgOnLoad(): void {
|
|
2328
|
+
* setTimeout(() => {
|
|
2329
|
+
* this.statusText = 'Ready';
|
|
2330
|
+
* this.magicChangeDetection.notify();
|
|
2331
|
+
* }, 1000);
|
|
2332
|
+
* }
|
|
2333
|
+
* }
|
|
2334
|
+
* ```
|
|
2335
|
+
*
|
|
2336
|
+
* Notifications are coalesced by Angular's scheduler, so calling {@link notify}
|
|
2337
|
+
* several times in a row still results in a single refresh.
|
|
2338
|
+
*/
|
|
2339
|
+
declare class MagicChangeDetectionService {
|
|
2340
|
+
/**
|
|
2341
|
+
* @ignore
|
|
2342
|
+
*/
|
|
2343
|
+
private readonly changedSubject;
|
|
2344
|
+
/**
|
|
2345
|
+
* Emits whenever Magic state changed and the views should be refreshed.
|
|
2346
|
+
* Subscribers are expected to mark their view for check.
|
|
2347
|
+
*/
|
|
2348
|
+
readonly changed: Observable<void>;
|
|
2349
|
+
/**
|
|
2350
|
+
* Notify Angular that state which the templates depend on has changed.
|
|
2351
|
+
*/
|
|
2352
|
+
notify(): void;
|
|
2353
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagicChangeDetectionService, never>;
|
|
2354
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
declare class MagicLazyLoaderService {
|
|
2358
|
+
Load(path: string): Promise<any>;
|
|
2359
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagicLazyLoaderService, never>;
|
|
2360
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2300
2363
|
declare const MG_FORMATS: {
|
|
2301
2364
|
parse: {
|
|
2302
2365
|
dateInput: {
|
|
@@ -2323,14 +2386,14 @@ declare const MG_FORMATS: {
|
|
|
2323
2386
|
};
|
|
2324
2387
|
};
|
|
2325
2388
|
declare class MgDateAdapter extends NativeDateAdapter {
|
|
2389
|
+
mgdtfmt: string;
|
|
2326
2390
|
protected task: TaskMagicService;
|
|
2327
2391
|
localeId: string;
|
|
2328
|
-
|
|
2329
|
-
constructor(task: TaskMagicService, localeId: string);
|
|
2392
|
+
constructor();
|
|
2330
2393
|
parse(value: any): Date | null;
|
|
2331
2394
|
format(date: Date, displayFormat: Object): string;
|
|
2332
2395
|
static ɵfac: i0.ɵɵFactoryDeclaration<MgDateAdapter, never>;
|
|
2333
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
2396
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2334
2397
|
}
|
|
2335
2398
|
|
|
2336
2399
|
declare const matDateProviders: ({
|
|
@@ -2369,7 +2432,7 @@ declare const matDateProviders: ({
|
|
|
2369
2432
|
/**
|
|
2370
2433
|
* Magic service providers
|
|
2371
2434
|
*/
|
|
2372
|
-
declare const basicMagicProviders: (typeof
|
|
2435
|
+
declare const basicMagicProviders: (typeof TaskMagicService | typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof MagicServices | ({
|
|
2373
2436
|
provide: typeof DateAdapter;
|
|
2374
2437
|
useClass: typeof MgDateAdapter;
|
|
2375
2438
|
useValue?: undefined;
|
|
@@ -2402,7 +2465,7 @@ declare const basicMagicProviders: (typeof SubformMagicService | typeof TitleMag
|
|
|
2402
2465
|
};
|
|
2403
2466
|
useClass?: undefined;
|
|
2404
2467
|
})[])[];
|
|
2405
|
-
declare const magicProviders: (typeof
|
|
2468
|
+
declare const magicProviders: (typeof TaskMagicService | typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof TableMagicService | typeof MagicServices | ({
|
|
2406
2469
|
provide: typeof DateAdapter;
|
|
2407
2470
|
useClass: typeof MgDateAdapter;
|
|
2408
2471
|
useValue?: undefined;
|
|
@@ -2436,6 +2499,53 @@ declare const magicProviders: (typeof SubformMagicService | typeof TitleMagicSer
|
|
|
2436
2499
|
useClass?: undefined;
|
|
2437
2500
|
})[])[];
|
|
2438
2501
|
|
|
2502
|
+
declare class OverlayContainerMagicProvider {
|
|
2503
|
+
getComponent(): typeof MagicOverlayContainer;
|
|
2504
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainerMagicProvider, never>;
|
|
2505
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
/**
|
|
2509
|
+
* Service managing overlay windows
|
|
2510
|
+
*/
|
|
2511
|
+
declare class OverlayWindowService {
|
|
2512
|
+
protected componentList: ComponentListMagicService;
|
|
2513
|
+
protected engineMagicService: EngineMagicService;
|
|
2514
|
+
private magicLazyModuleLoader;
|
|
2515
|
+
private injector;
|
|
2516
|
+
private overlayContainerMagicProvider;
|
|
2517
|
+
private confirmationComponentsMagicProvider;
|
|
2518
|
+
constructor();
|
|
2519
|
+
private overlayWindowsContainerViewRef;
|
|
2520
|
+
private overlayWindowFocusManager;
|
|
2521
|
+
private changeDetectorRef;
|
|
2522
|
+
init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element, changeDetectorRef: ChangeDetectorRef): void;
|
|
2523
|
+
loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
|
|
2524
|
+
open(formName: string, taskId: string, taskDescription: string): void;
|
|
2525
|
+
close(commandStr: string): void;
|
|
2526
|
+
/**
|
|
2527
|
+
* Open Confirmation box
|
|
2528
|
+
* @param title title of the box
|
|
2529
|
+
* @param msg message
|
|
2530
|
+
* @param style Magic style
|
|
2531
|
+
*/
|
|
2532
|
+
openConfirmationBox(title: string, msg: string, style: Styles): void;
|
|
2533
|
+
/**
|
|
2534
|
+
* This method is called on close of the confirmation
|
|
2535
|
+
* @param style Magic style
|
|
2536
|
+
* @param result
|
|
2537
|
+
*/
|
|
2538
|
+
finishConfirmation(style: Styles, result: boolean): void;
|
|
2539
|
+
/**
|
|
2540
|
+
* creates a modal component. Can be used for overlay, message box or confirmation box
|
|
2541
|
+
* @param parameters component's parameters
|
|
2542
|
+
* @param component components to create
|
|
2543
|
+
*/
|
|
2544
|
+
private createModalComponent;
|
|
2545
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
|
|
2546
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2439
2549
|
/**
|
|
2440
2550
|
* @ignore
|
|
2441
2551
|
*/
|
|
@@ -2445,6 +2555,50 @@ declare class StylesMapManager {
|
|
|
2445
2555
|
static magicValueGetStyle(styleName: string, magicValue: any): string;
|
|
2446
2556
|
}
|
|
2447
2557
|
|
|
2558
|
+
declare class SubscriberService {
|
|
2559
|
+
private static instance;
|
|
2560
|
+
private socket;
|
|
2561
|
+
private constructor();
|
|
2562
|
+
/**
|
|
2563
|
+
* Subscribe to a specific topic
|
|
2564
|
+
* @param topic The topic to subscribe to
|
|
2565
|
+
*/
|
|
2566
|
+
subscribe(topic: string): void;
|
|
2567
|
+
/**
|
|
2568
|
+
* Unsubscribe from a specific topic
|
|
2569
|
+
* @param topic The topic to unsubscribe from
|
|
2570
|
+
*/
|
|
2571
|
+
unsubscribe(topic: string): void;
|
|
2572
|
+
/**
|
|
2573
|
+
* Get an Observable for incoming messages
|
|
2574
|
+
* @returns Observable that emits message data
|
|
2575
|
+
*/
|
|
2576
|
+
onMessage(): Observable<{
|
|
2577
|
+
topic: string;
|
|
2578
|
+
message: any;
|
|
2579
|
+
}>;
|
|
2580
|
+
/**
|
|
2581
|
+
* Get current subscriptions (for debugging)
|
|
2582
|
+
*/
|
|
2583
|
+
getSubscriptions(): void;
|
|
2584
|
+
/**
|
|
2585
|
+
* Listen for subscriptions data
|
|
2586
|
+
* @returns Observable that emits subscriptions list
|
|
2587
|
+
*/
|
|
2588
|
+
onSubscriptionsData(): Observable<any[]>;
|
|
2589
|
+
/**
|
|
2590
|
+
* Get the singleton instance of SubscriberService
|
|
2591
|
+
* @returns {SubscriberService} The singleton instance
|
|
2592
|
+
*/
|
|
2593
|
+
static getInstance(): SubscriberService;
|
|
2594
|
+
/**
|
|
2595
|
+
* Disconnect from the server
|
|
2596
|
+
*/
|
|
2597
|
+
disconnect(): void;
|
|
2598
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriberService, never>;
|
|
2599
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2448
2602
|
/**
|
|
2449
2603
|
* @ignore
|
|
2450
2604
|
*/
|
|
@@ -2514,51 +2668,29 @@ declare class ModalFormDefinition {
|
|
|
2514
2668
|
parameters: any;
|
|
2515
2669
|
}
|
|
2516
2670
|
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
*/
|
|
2671
|
+
declare class MagicModalProperties implements MagicModalInterface {
|
|
2672
|
+
private formName;
|
|
2673
|
+
private showTitleBar;
|
|
2674
|
+
private x;
|
|
2675
|
+
private y;
|
|
2676
|
+
private width;
|
|
2677
|
+
private height;
|
|
2678
|
+
private isCenteredToWindow;
|
|
2679
|
+
private shouldCloseOnBackgroundClick;
|
|
2680
|
+
private isResizable;
|
|
2681
|
+
private isMovable;
|
|
2682
|
+
constructor(formName: string, showTitleBar: boolean, x: number, y: number, width: string, height: string, isCenteredToWindow: boolean, shouldCloseOnBackgroundClick: boolean, isResizable: boolean, isMovable: boolean);
|
|
2683
|
+
X(): number;
|
|
2684
|
+
Y(): number;
|
|
2532
2685
|
Width(): string;
|
|
2533
|
-
/**
|
|
2534
|
-
* Returns the height of modal window
|
|
2535
|
-
*/
|
|
2536
2686
|
Height(): string;
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
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;
|
|
2687
|
+
IsCenteredToWindow(): boolean;
|
|
2688
|
+
FormName(): string;
|
|
2689
|
+
ShowTitleBar(): boolean;
|
|
2690
|
+
ShouldCloseOnBackgroundClick(): boolean;
|
|
2691
|
+
IsResizable(): boolean;
|
|
2692
|
+
IsMovable(): boolean;
|
|
2561
2693
|
}
|
|
2562
2694
|
|
|
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 };
|
|
2695
|
+
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
2696
|
export type { ComponentData, IMagicViewContainerRef, ISubformMagicService, MagicModalInterface, ModuleData, RouteDefinition, SubformDefinition };
|