@magic-xpa/angular 4.1300.0-dev4130.27 → 4.1300.0-dev4130.271
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 +710 -595
- package/fesm2022/magic-xpa-angular.mjs.map +1 -1
- package/package.json +14 -11
- package/types/magic-xpa-angular.d.ts +518 -399
|
@@ -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;
|
|
@@ -179,11 +180,11 @@ declare class ComponentListMagicService {
|
|
|
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[];
|
|
@@ -238,6 +239,11 @@ declare class RouterCommandsMagicService {
|
|
|
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
|
|
@@ -348,11 +342,7 @@ 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
|
|
@@ -366,12 +356,13 @@ 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
|
/**
|
|
@@ -389,15 +380,15 @@ declare class MagicColorService {
|
|
|
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
|
/**
|
|
@@ -691,213 +682,10 @@ declare class AccessorMagicService {
|
|
|
691
682
|
static ɵprov: i0.ɵɵInjectableDeclaration<AccessorMagicService>;
|
|
692
683
|
}
|
|
693
684
|
|
|
694
|
-
declare abstract class BaseMagicOverlayContainer {
|
|
695
|
-
/**
|
|
696
|
-
*
|
|
697
|
-
*/
|
|
698
|
-
abstract ModalComp: any;
|
|
699
|
-
/**
|
|
700
|
-
*
|
|
701
|
-
*/
|
|
702
|
-
abstract ModalCompParameters: any;
|
|
703
|
-
/**
|
|
704
|
-
*
|
|
705
|
-
*/
|
|
706
|
-
abstract onClose: any;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* Creates a modal window for Magic modal window components
|
|
711
|
-
*/
|
|
712
|
-
declare class MagicOverlayContainer extends BaseMagicOverlayContainer implements OnInit, AfterViewInit, IMagicViewContainerRef {
|
|
713
|
-
/**
|
|
714
|
-
* HTML to be displayed in the modal window
|
|
715
|
-
*/
|
|
716
|
-
modalbodyViewContainerRef: ViewContainerRef;
|
|
717
|
-
/**
|
|
718
|
-
* Header of the modal window
|
|
719
|
-
*/
|
|
720
|
-
headerElementRef: ElementRef;
|
|
721
|
-
/**
|
|
722
|
-
* Foreground of the modal window
|
|
723
|
-
*/
|
|
724
|
-
foregroundElementRef: ElementRef;
|
|
725
|
-
/**
|
|
726
|
-
*
|
|
727
|
-
*/
|
|
728
|
-
ModalComp: any;
|
|
729
|
-
/**
|
|
730
|
-
*
|
|
731
|
-
*/
|
|
732
|
-
ModalCompParameters: any;
|
|
733
|
-
onClose: EventEmitter<void>;
|
|
734
|
-
/**
|
|
735
|
-
*
|
|
736
|
-
*/
|
|
737
|
-
private componentRef;
|
|
738
|
-
private resizing;
|
|
739
|
-
private resizeDirection;
|
|
740
|
-
private originalWidth;
|
|
741
|
-
private originalHeight;
|
|
742
|
-
private originalMouseX;
|
|
743
|
-
private originalMouseY;
|
|
744
|
-
private isCenteredToWindow;
|
|
745
|
-
private static readonly minAllowedWidth;
|
|
746
|
-
private static readonly minAllowedHeight;
|
|
747
|
-
private _isRtl;
|
|
748
|
-
/**
|
|
749
|
-
*
|
|
750
|
-
*/
|
|
751
|
-
constructor();
|
|
752
|
-
/**
|
|
753
|
-
*
|
|
754
|
-
*/
|
|
755
|
-
ngOnInit(): void;
|
|
756
|
-
ngAfterViewInit(): void;
|
|
757
|
-
setViewContainerRef(vcRef: ViewContainerRef): void;
|
|
758
|
-
/**
|
|
759
|
-
* Returns the form name
|
|
760
|
-
* @returns
|
|
761
|
-
*/
|
|
762
|
-
getText(): any;
|
|
763
|
-
/**
|
|
764
|
-
* Returns boolean to indicate whether the text direction is right-to-left (RTL)
|
|
765
|
-
*/
|
|
766
|
-
get isRtl(): boolean;
|
|
767
|
-
/**
|
|
768
|
-
* Returns CSS styles for the window
|
|
769
|
-
* @returns
|
|
770
|
-
*/
|
|
771
|
-
getStyle(): {};
|
|
772
|
-
/**
|
|
773
|
-
* Returns the CSS styles for the client area
|
|
774
|
-
* @returns
|
|
775
|
-
*/
|
|
776
|
-
getClientAreaStyles(): {};
|
|
777
|
-
/**
|
|
778
|
-
* Should the title bar be displayed
|
|
779
|
-
* @returns
|
|
780
|
-
*/
|
|
781
|
-
getShowTitleBar(): any;
|
|
782
|
-
/**
|
|
783
|
-
*
|
|
784
|
-
*/
|
|
785
|
-
OnClose(): void;
|
|
786
|
-
/**
|
|
787
|
-
* Handles click in the background window
|
|
788
|
-
*/
|
|
789
|
-
OnBackgroundClick(): void;
|
|
790
|
-
/**
|
|
791
|
-
* Checks if the overlay component allows to be resized.
|
|
792
|
-
* @returns {boolean} True if the overlay is resizable, false otherwise.
|
|
793
|
-
*/
|
|
794
|
-
IsResizable(): any;
|
|
795
|
-
/**
|
|
796
|
-
* Checks if the overlay component allows to be moved (dragged).
|
|
797
|
-
* @returns {boolean} True if the overlay is movable, false otherwise.
|
|
798
|
-
*/
|
|
799
|
-
IsMovable(): any;
|
|
800
|
-
/**
|
|
801
|
-
* Initiates the resize process when a mousedown event occurs on a resize handle.
|
|
802
|
-
* Stores the initial state (dimensions, mouse position) and sets flags.
|
|
803
|
-
* @param {MouseEvent} event - The mousedown event triggering the resize.
|
|
804
|
-
* @param {'right' | 'bottom' | 'corner'} direction - Indicates which resize handle was activated.
|
|
805
|
-
*/
|
|
806
|
-
onResizeStart(event: MouseEvent, direction: 'right' | 'left' | 'bottom' | 'corner'): void;
|
|
807
|
-
/**
|
|
808
|
-
* Handles the resizing logic as the mouse moves across the window.
|
|
809
|
-
* This listener is active globally on the window during a resize operation via @HostListener.
|
|
810
|
-
* Calculates and applies the new dimensions to the element based on mouse movement.
|
|
811
|
-
* @param {MouseEvent} event - The mousemove event passed by the HostListener.
|
|
812
|
-
*/
|
|
813
|
-
onResize(event: MouseEvent): void;
|
|
814
|
-
/**
|
|
815
|
-
* Finalizes the resize operation when the mouse button is released anywhere on the window.
|
|
816
|
-
* Resets the resizing state flags. Triggered globally via @HostListener.
|
|
817
|
-
*/
|
|
818
|
-
onResizeEnd(): void;
|
|
819
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainer, never>;
|
|
820
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MagicOverlayContainer, "app-magic-overlay-container", never, { "ModalComp": { "alias": "ModalComp"; "required": false; }; "ModalCompParameters": { "alias": "ModalCompParameters"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
declare class OverlayContainerMagicProvider {
|
|
824
|
-
getComponent(): typeof MagicOverlayContainer;
|
|
825
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainerMagicProvider, never>;
|
|
826
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayContainerMagicProvider>;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
/**
|
|
830
|
-
* Service managing alert and confirmation windows
|
|
831
|
-
* This is Magic's default provider
|
|
832
|
-
*/
|
|
833
|
-
declare class ConfirmationComponentsMagicProvider {
|
|
834
|
-
/**
|
|
835
|
-
* Return true when use default javascript alert and confirmation or return false to provide custom components
|
|
836
|
-
* @returns true is we want to use default javascript alert and confirmation
|
|
837
|
-
*/
|
|
838
|
-
showDefaultConfirmations(): boolean;
|
|
839
|
-
/**
|
|
840
|
-
* Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
|
|
841
|
-
* @returns component that will replace javascript Alert
|
|
842
|
-
*/
|
|
843
|
-
getAlertComponent(): any;
|
|
844
|
-
/**
|
|
845
|
-
* Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
|
|
846
|
-
* @returns component that will replace javascript confirmation box
|
|
847
|
-
*/
|
|
848
|
-
getConfirmtionComponent(): any;
|
|
849
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
|
|
850
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationComponentsMagicProvider>;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* Service managing overlay windows
|
|
855
|
-
*/
|
|
856
|
-
declare class OverlayWindowService {
|
|
857
|
-
protected componentList: ComponentListMagicService;
|
|
858
|
-
protected engineMagicService: EngineMagicService;
|
|
859
|
-
private magicLazyModuleLoader;
|
|
860
|
-
private injector;
|
|
861
|
-
private compiler;
|
|
862
|
-
private overlayContainerMagicProvider;
|
|
863
|
-
private confirmationComponentsMagicProvider;
|
|
864
|
-
constructor(componentList: ComponentListMagicService, engineMagicService: EngineMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, compiler: Compiler, overlayContainerMagicProvider: OverlayContainerMagicProvider, confirmationComponentsMagicProvider: ConfirmationComponentsMagicProvider);
|
|
865
|
-
private overlayWindowsContainerViewRef;
|
|
866
|
-
private overlayWindowFocusManager;
|
|
867
|
-
private changeDetectorRef;
|
|
868
|
-
init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element, changeDetectorRef: ChangeDetectorRef): void;
|
|
869
|
-
loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
|
|
870
|
-
open(formName: string, taskId: string, taskDescription: string): void;
|
|
871
|
-
close(commandStr: string): void;
|
|
872
|
-
/**
|
|
873
|
-
* Open Confirmation box
|
|
874
|
-
* @param title title of the box
|
|
875
|
-
* @param msg message
|
|
876
|
-
* @param style Magic style
|
|
877
|
-
*/
|
|
878
|
-
openConfirmationBox(title: string, msg: string, style: Styles): void;
|
|
879
|
-
/**
|
|
880
|
-
* This method is called on close of the confirmation
|
|
881
|
-
* @param style Magic style
|
|
882
|
-
* @param result
|
|
883
|
-
*/
|
|
884
|
-
finishConfirmation(style: Styles, result: boolean): void;
|
|
885
|
-
/**
|
|
886
|
-
* creates a modal component. Can be used for overlay, message box or confirmation box
|
|
887
|
-
* @param parameters component's parameters
|
|
888
|
-
* @param component components to create
|
|
889
|
-
*/
|
|
890
|
-
private createModalComponent;
|
|
891
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
|
|
892
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayWindowService>;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
685
|
/**
|
|
896
686
|
* Main service to connect the UI with the Magic WebCLient
|
|
897
687
|
*/
|
|
898
688
|
declare class TaskMagicService {
|
|
899
|
-
protected magic: EngineMagicService;
|
|
900
|
-
private overlayWindowService;
|
|
901
689
|
/**
|
|
902
690
|
* Service to provide table-related functionalities
|
|
903
691
|
*/
|
|
@@ -971,11 +759,9 @@ declare class TaskMagicService {
|
|
|
971
759
|
* @ignore
|
|
972
760
|
*/
|
|
973
761
|
oldPageSize: number;
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
*/
|
|
978
|
-
constructor(magic: EngineMagicService, overlayWindowService: OverlayWindowService);
|
|
762
|
+
protected magic: EngineMagicService;
|
|
763
|
+
private overlayWindowService;
|
|
764
|
+
constructor();
|
|
979
765
|
/**
|
|
980
766
|
* returns true if used is logged in
|
|
981
767
|
* @returns
|
|
@@ -1247,10 +1033,10 @@ declare class TaskMagicService {
|
|
|
1247
1033
|
mgOnTabSelectionChanged(idx: string, layer: number): void;
|
|
1248
1034
|
/**
|
|
1249
1035
|
* Handle the Radio button "change" event
|
|
1250
|
-
* @param event The event received from the UI
|
|
1251
1036
|
* @param idx Id of the control raising the event
|
|
1037
|
+
* @param rowId Id of the row containing the control (defaults to '0' for non-table controls)
|
|
1252
1038
|
*/
|
|
1253
|
-
mgOnRadioSelectionChanged(idx: string): void;
|
|
1039
|
+
mgOnRadioSelectionChanged(idx: string, rowId?: string): void;
|
|
1254
1040
|
/**
|
|
1255
1041
|
* Inserts the "close" event to the magic WebClient event queue
|
|
1256
1042
|
*/
|
|
@@ -1291,16 +1077,11 @@ declare class TaskMagicService {
|
|
|
1291
1077
|
* Implements various table-related functionalities
|
|
1292
1078
|
*/
|
|
1293
1079
|
declare class TableMagicService {
|
|
1294
|
-
protected componentList: ComponentListMagicService;
|
|
1295
|
-
protected task: TaskMagicService;
|
|
1296
1080
|
selectedItem: any;
|
|
1297
1081
|
private chunkSize;
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
* @param task Magic task service
|
|
1302
|
-
*/
|
|
1303
|
-
constructor(componentList: ComponentListMagicService, task: TaskMagicService);
|
|
1082
|
+
protected componentList: ComponentListMagicService;
|
|
1083
|
+
protected task: TaskMagicService;
|
|
1084
|
+
constructor();
|
|
1304
1085
|
shouldOpenFieldTextEditor: boolean;
|
|
1305
1086
|
/**
|
|
1306
1087
|
* Refreshes the DataSource
|
|
@@ -1383,7 +1164,7 @@ declare class MagicServices {
|
|
|
1383
1164
|
/**
|
|
1384
1165
|
* @ignore
|
|
1385
1166
|
*/
|
|
1386
|
-
constructor(
|
|
1167
|
+
constructor();
|
|
1387
1168
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagicServices, never>;
|
|
1388
1169
|
static ɵprov: i0.ɵɵInjectableDeclaration<MagicServices>;
|
|
1389
1170
|
}
|
|
@@ -1392,8 +1173,6 @@ declare class MagicServices {
|
|
|
1392
1173
|
* Base component representing a Magic task
|
|
1393
1174
|
*/
|
|
1394
1175
|
declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
1395
|
-
protected ref: ChangeDetectorRef;
|
|
1396
|
-
magicServices: MagicServices;
|
|
1397
1176
|
/**
|
|
1398
1177
|
* Id of task, used for initializing the task service
|
|
1399
1178
|
*/
|
|
@@ -1406,12 +1185,24 @@ declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit
|
|
|
1406
1185
|
* @ignore
|
|
1407
1186
|
*/
|
|
1408
1187
|
magicProperties: typeof MagicProperties;
|
|
1188
|
+
/**
|
|
1189
|
+
* @ignore
|
|
1190
|
+
* Injected as fields rather than constructor parameters, so that the constructor
|
|
1191
|
+
* signature of this base class - which every generated component inherits - is unchanged.
|
|
1192
|
+
*/
|
|
1193
|
+
private readonly magicChangeDetection;
|
|
1194
|
+
/**
|
|
1195
|
+
* @ignore
|
|
1196
|
+
*/
|
|
1197
|
+
private readonly destroyRef;
|
|
1198
|
+
protected ref: ChangeDetectorRef;
|
|
1199
|
+
magicServices: MagicServices;
|
|
1409
1200
|
/**
|
|
1410
1201
|
*
|
|
1411
1202
|
* @param ref changes-detector object
|
|
1412
1203
|
* @param magicServices Access point for all Magic services
|
|
1413
1204
|
*/
|
|
1414
|
-
constructor(
|
|
1205
|
+
constructor();
|
|
1415
1206
|
/**
|
|
1416
1207
|
* Returns the Magic task service
|
|
1417
1208
|
* @returns
|
|
@@ -1496,8 +1287,6 @@ declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit
|
|
|
1496
1287
|
* @ignore
|
|
1497
1288
|
*/
|
|
1498
1289
|
declare class RowMagicDirective implements OnInit, OnDestroy {
|
|
1499
|
-
protected _task: TaskMagicService;
|
|
1500
|
-
protected element: ElementRef;
|
|
1501
1290
|
rowId: string;
|
|
1502
1291
|
/**
|
|
1503
1292
|
* The HTML element connected to this directive
|
|
@@ -1507,7 +1296,9 @@ declare class RowMagicDirective implements OnInit, OnDestroy {
|
|
|
1507
1296
|
* @ignore
|
|
1508
1297
|
*/
|
|
1509
1298
|
private rowChangedSubscriber;
|
|
1510
|
-
|
|
1299
|
+
protected _task: TaskMagicService;
|
|
1300
|
+
protected element: ElementRef;
|
|
1301
|
+
constructor();
|
|
1511
1302
|
/**
|
|
1512
1303
|
* Initializes this object
|
|
1513
1304
|
*/
|
|
@@ -1526,12 +1317,6 @@ declare class RowMagicDirective implements OnInit, OnDestroy {
|
|
|
1526
1317
|
* Connects HTML elements to the Magic Web Client engine
|
|
1527
1318
|
*/
|
|
1528
1319
|
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
1320
|
set magic(val: any);
|
|
1536
1321
|
/**
|
|
1537
1322
|
* This flag is used when we only want to register to events, but do not want to execute commands sent from server
|
|
@@ -1586,12 +1371,18 @@ declare class MagicDirective implements OnInit, OnDestroy {
|
|
|
1586
1371
|
* @param platform
|
|
1587
1372
|
* @param magicRow
|
|
1588
1373
|
*/
|
|
1589
|
-
constructor(
|
|
1374
|
+
constructor();
|
|
1590
1375
|
/**
|
|
1591
1376
|
* Get the task service
|
|
1592
1377
|
* @returns
|
|
1593
1378
|
*/
|
|
1594
1379
|
get task(): TaskMagicService;
|
|
1380
|
+
protected _task: TaskMagicService;
|
|
1381
|
+
protected element: ElementRef;
|
|
1382
|
+
protected renderer: Renderer2;
|
|
1383
|
+
protected vcRef: ViewContainerRef;
|
|
1384
|
+
platform: Platform;
|
|
1385
|
+
protected magicRow: RowMagicDirective;
|
|
1595
1386
|
/**
|
|
1596
1387
|
* Register to the events this element may need to handle
|
|
1597
1388
|
*/
|
|
@@ -1638,7 +1429,7 @@ declare class MagicDirective implements OnInit, OnDestroy {
|
|
|
1638
1429
|
* Cleanup
|
|
1639
1430
|
*/
|
|
1640
1431
|
ngOnDestroy(): void;
|
|
1641
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagicDirective,
|
|
1432
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagicDirective, never>;
|
|
1642
1433
|
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
1434
|
}
|
|
1644
1435
|
|
|
@@ -1646,16 +1437,13 @@ declare class MagicDirective implements OnInit, OnDestroy {
|
|
|
1646
1437
|
* Directive for checkboxes, to handle the 'change' event
|
|
1647
1438
|
*/
|
|
1648
1439
|
declare class CheckboxMagicDirective {
|
|
1440
|
+
threeState: i0.InputSignal<boolean>;
|
|
1441
|
+
private subscribeRefreshDom;
|
|
1442
|
+
private isIndeterminate;
|
|
1649
1443
|
protected magicDirective: MagicDirective;
|
|
1650
1444
|
private el;
|
|
1651
1445
|
protected task: TaskMagicService;
|
|
1652
|
-
|
|
1653
|
-
private subscribeRefreshDom;
|
|
1654
|
-
private isIndeterminate;
|
|
1655
|
-
/**
|
|
1656
|
-
* @ignore
|
|
1657
|
-
*/
|
|
1658
|
-
constructor(magicDirective: MagicDirective, el: ElementRef, task: TaskMagicService);
|
|
1446
|
+
constructor();
|
|
1659
1447
|
/**
|
|
1660
1448
|
* Handles the Checkbox 'change' event - pass it to the Magic engine
|
|
1661
1449
|
*/
|
|
@@ -1669,7 +1457,7 @@ declare class CheckboxMagicDirective {
|
|
|
1669
1457
|
*/
|
|
1670
1458
|
ngOnDestroy(): void;
|
|
1671
1459
|
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>;
|
|
1460
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxMagicDirective, " input[type=checkbox][magic]:not([noFormControl])", never, { "threeState": { "alias": "threeState"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
1673
1461
|
}
|
|
1674
1462
|
|
|
1675
1463
|
/**
|
|
@@ -1677,7 +1465,7 @@ declare class CheckboxMagicDirective {
|
|
|
1677
1465
|
*/
|
|
1678
1466
|
declare class CheckboxNoFormControlMagicDirective {
|
|
1679
1467
|
protected magicDirective: MagicDirective;
|
|
1680
|
-
constructor(
|
|
1468
|
+
constructor();
|
|
1681
1469
|
/**
|
|
1682
1470
|
* Handle the 'Checkbox' change event - pass it to the Magic engine
|
|
1683
1471
|
*/
|
|
@@ -1691,7 +1479,7 @@ declare class CheckboxNoFormControlMagicDirective {
|
|
|
1691
1479
|
*/
|
|
1692
1480
|
declare class InputNoFormControlMagicDirective {
|
|
1693
1481
|
protected magicDirective: MagicDirective;
|
|
1694
|
-
constructor(
|
|
1482
|
+
constructor();
|
|
1695
1483
|
/**
|
|
1696
1484
|
* Handles the 'change' event - pass it to the Magic engine
|
|
1697
1485
|
*/
|
|
@@ -1705,7 +1493,7 @@ declare class InputNoFormControlMagicDirective {
|
|
|
1705
1493
|
*/
|
|
1706
1494
|
declare class ComboboxMagicDirective {
|
|
1707
1495
|
protected magicDirective: MagicDirective;
|
|
1708
|
-
constructor(
|
|
1496
|
+
constructor();
|
|
1709
1497
|
/**
|
|
1710
1498
|
* Handles the Combobox 'change' event - pass it to the Magic engine
|
|
1711
1499
|
*/
|
|
@@ -1752,14 +1540,14 @@ declare const DATE_VALUE_ACCESSOR: any;
|
|
|
1752
1540
|
* `<input type="date" formControlName="birthday" dateInput>`
|
|
1753
1541
|
*/
|
|
1754
1542
|
declare class DateValueAccessor implements ControlValueAccessor {
|
|
1543
|
+
onChange: (_: any) => void;
|
|
1544
|
+
onTouched: () => void;
|
|
1545
|
+
onBlurEvent(event: any): void;
|
|
1755
1546
|
private renderer;
|
|
1756
1547
|
private elementRef;
|
|
1757
1548
|
protected magicDir: MagicDirective;
|
|
1758
1549
|
protected _task: TaskMagicService;
|
|
1759
|
-
|
|
1760
|
-
onTouched: () => void;
|
|
1761
|
-
onBlurEvent(event: any): void;
|
|
1762
|
-
constructor(renderer: Renderer2, elementRef: ElementRef, magicDir: MagicDirective, _task: TaskMagicService);
|
|
1550
|
+
constructor();
|
|
1763
1551
|
/** Format year, if user enters 2 digits instead of 4 digits as per the century given in Magic.ini file */
|
|
1764
1552
|
formatDateWithCentury(userInput: string, century: number, control: AbstractControl): void;
|
|
1765
1553
|
/** Writes a new value to the element (model -> view) */
|
|
@@ -1774,6 +1562,188 @@ declare class DateValueAccessor implements ControlValueAccessor {
|
|
|
1774
1562
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DateValueAccessor, "[dateInput]", never, {}, {}, never, never, false, never>;
|
|
1775
1563
|
}
|
|
1776
1564
|
|
|
1565
|
+
/**
|
|
1566
|
+
* Describes the behavior of a modal window
|
|
1567
|
+
*/
|
|
1568
|
+
interface MagicModalInterface {
|
|
1569
|
+
/**
|
|
1570
|
+
* Returns the X coordinate of the modal window
|
|
1571
|
+
*/
|
|
1572
|
+
X(): any;
|
|
1573
|
+
/**
|
|
1574
|
+
* Returns the Y coordinate of the modal window
|
|
1575
|
+
*/
|
|
1576
|
+
Y(): any;
|
|
1577
|
+
/**
|
|
1578
|
+
* Returns the width of modal window
|
|
1579
|
+
*/
|
|
1580
|
+
Width(): string;
|
|
1581
|
+
/**
|
|
1582
|
+
* Returns the height of modal window
|
|
1583
|
+
*/
|
|
1584
|
+
Height(): string;
|
|
1585
|
+
/**
|
|
1586
|
+
* Is the modal window centered relatively to the main window
|
|
1587
|
+
*/
|
|
1588
|
+
IsCenteredToWindow(): any;
|
|
1589
|
+
/**
|
|
1590
|
+
* Returns the name of the form - title of the modal window
|
|
1591
|
+
*/
|
|
1592
|
+
FormName(): any;
|
|
1593
|
+
/**
|
|
1594
|
+
* Should the title bar be displayed
|
|
1595
|
+
*/
|
|
1596
|
+
ShowTitleBar(): any;
|
|
1597
|
+
/**
|
|
1598
|
+
* Should the modal window close when the user clicks on the background
|
|
1599
|
+
*/
|
|
1600
|
+
ShouldCloseOnBackgroundClick(): any;
|
|
1601
|
+
/**
|
|
1602
|
+
* Is overlay window resizable
|
|
1603
|
+
*/
|
|
1604
|
+
IsResizable(): any;
|
|
1605
|
+
/**
|
|
1606
|
+
* Is overlay window movable
|
|
1607
|
+
*/
|
|
1608
|
+
IsMovable(): any;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* Abstract base for Magic overlay container components.
|
|
1613
|
+
* Concrete classes must implement these members using Angular signal APIs (input/output).
|
|
1614
|
+
* The class is kept as an abstract class (not an interface) so that instanceof checks
|
|
1615
|
+
* in MagicOverlayContainerWrapper continue to work at runtime.
|
|
1616
|
+
*/
|
|
1617
|
+
declare abstract class BaseMagicOverlayContainer {
|
|
1618
|
+
/**
|
|
1619
|
+
* The component class to render inside the overlay
|
|
1620
|
+
*/
|
|
1621
|
+
abstract ModalComp: any;
|
|
1622
|
+
/**
|
|
1623
|
+
* Parameters to pass to the rendered component
|
|
1624
|
+
*/
|
|
1625
|
+
abstract ModalCompParameters: any;
|
|
1626
|
+
/**
|
|
1627
|
+
* Output event emitted when the overlay is closed
|
|
1628
|
+
*/
|
|
1629
|
+
abstract onClose: any;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* Creates a modal window for Magic modal window components
|
|
1634
|
+
*/
|
|
1635
|
+
declare class MagicOverlayContainer extends BaseMagicOverlayContainer implements OnInit, AfterViewInit, IMagicViewContainerRef {
|
|
1636
|
+
/**
|
|
1637
|
+
* HTML to be displayed in the modal window
|
|
1638
|
+
*/
|
|
1639
|
+
modalbodyViewContainerRef: ViewContainerRef;
|
|
1640
|
+
/**
|
|
1641
|
+
* Header of the modal window
|
|
1642
|
+
*/
|
|
1643
|
+
headerElementRef: ElementRef;
|
|
1644
|
+
/**
|
|
1645
|
+
* Foreground of the modal window
|
|
1646
|
+
*/
|
|
1647
|
+
foregroundElementRef: ElementRef;
|
|
1648
|
+
/**
|
|
1649
|
+
*
|
|
1650
|
+
*/
|
|
1651
|
+
ModalComp: any;
|
|
1652
|
+
/**
|
|
1653
|
+
*
|
|
1654
|
+
*/
|
|
1655
|
+
ModalCompParameters: any;
|
|
1656
|
+
onClose: EventEmitter<void>;
|
|
1657
|
+
/**
|
|
1658
|
+
*
|
|
1659
|
+
*/
|
|
1660
|
+
private componentRef;
|
|
1661
|
+
private resizing;
|
|
1662
|
+
private resizeDirection;
|
|
1663
|
+
private originalWidth;
|
|
1664
|
+
private originalHeight;
|
|
1665
|
+
private originalMouseX;
|
|
1666
|
+
private originalMouseY;
|
|
1667
|
+
private isCenteredToWindow;
|
|
1668
|
+
private static readonly minAllowedWidth;
|
|
1669
|
+
private static readonly minAllowedHeight;
|
|
1670
|
+
private _isRtl;
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
*/
|
|
1674
|
+
constructor();
|
|
1675
|
+
/**
|
|
1676
|
+
*
|
|
1677
|
+
*/
|
|
1678
|
+
ngOnInit(): void;
|
|
1679
|
+
ngAfterViewInit(): void;
|
|
1680
|
+
setViewContainerRef(vcRef: ViewContainerRef): void;
|
|
1681
|
+
/**
|
|
1682
|
+
* Returns the form name
|
|
1683
|
+
* @returns
|
|
1684
|
+
*/
|
|
1685
|
+
getText(): any;
|
|
1686
|
+
/**
|
|
1687
|
+
* Returns boolean to indicate whether the text direction is right-to-left (RTL)
|
|
1688
|
+
*/
|
|
1689
|
+
get isRtl(): boolean;
|
|
1690
|
+
/**
|
|
1691
|
+
* Returns CSS styles for the window
|
|
1692
|
+
* @returns
|
|
1693
|
+
*/
|
|
1694
|
+
getStyle(): {};
|
|
1695
|
+
/**
|
|
1696
|
+
* Returns the CSS styles for the client area
|
|
1697
|
+
* @returns
|
|
1698
|
+
*/
|
|
1699
|
+
getClientAreaStyles(): {};
|
|
1700
|
+
/**
|
|
1701
|
+
* Should the title bar be displayed
|
|
1702
|
+
* @returns
|
|
1703
|
+
*/
|
|
1704
|
+
getShowTitleBar(): any;
|
|
1705
|
+
/**
|
|
1706
|
+
*
|
|
1707
|
+
*/
|
|
1708
|
+
OnClose(): void;
|
|
1709
|
+
/**
|
|
1710
|
+
* Handles click in the background window
|
|
1711
|
+
*/
|
|
1712
|
+
OnBackgroundClick(): void;
|
|
1713
|
+
/**
|
|
1714
|
+
* Checks if the overlay component allows to be resized.
|
|
1715
|
+
* @returns {boolean} True if the overlay is resizable, false otherwise.
|
|
1716
|
+
*/
|
|
1717
|
+
IsResizable(): any;
|
|
1718
|
+
/**
|
|
1719
|
+
* Checks if the overlay component allows to be moved (dragged).
|
|
1720
|
+
* @returns {boolean} True if the overlay is movable, false otherwise.
|
|
1721
|
+
*/
|
|
1722
|
+
IsMovable(): any;
|
|
1723
|
+
/**
|
|
1724
|
+
* Initiates the resize process when a mousedown event occurs on a resize handle.
|
|
1725
|
+
* Stores the initial state (dimensions, mouse position) and sets flags.
|
|
1726
|
+
* @param {MouseEvent} event - The mousedown event triggering the resize.
|
|
1727
|
+
* @param {'right' | 'bottom' | 'corner'} direction - Indicates which resize handle was activated.
|
|
1728
|
+
*/
|
|
1729
|
+
onResizeStart(event: MouseEvent, direction: 'right' | 'left' | 'bottom' | 'corner'): void;
|
|
1730
|
+
/**
|
|
1731
|
+
* Handles the resizing logic as the mouse moves across the window.
|
|
1732
|
+
* This listener is active globally on the window during a resize operation via @HostListener.
|
|
1733
|
+
* Calculates and applies the new dimensions to the element based on mouse movement.
|
|
1734
|
+
* @param {MouseEvent} event - The mousemove event passed by the HostListener.
|
|
1735
|
+
*/
|
|
1736
|
+
onResize(event: MouseEvent): void;
|
|
1737
|
+
/**
|
|
1738
|
+
* Finalizes the resize operation when the mouse button is released anywhere on the window.
|
|
1739
|
+
* Resets the resizing state flags. Triggered globally via @HostListener.
|
|
1740
|
+
*/
|
|
1741
|
+
onResizeEnd(): void;
|
|
1742
|
+
getOverlayProps(): MagicModalInterface;
|
|
1743
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainer, never>;
|
|
1744
|
+
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>;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1777
1747
|
/**
|
|
1778
1748
|
* This is a base class for the magic alert components
|
|
1779
1749
|
*/
|
|
@@ -1781,22 +1751,22 @@ declare class BaseMagicAlertComponent {
|
|
|
1781
1751
|
/**
|
|
1782
1752
|
* title of the component
|
|
1783
1753
|
*/
|
|
1784
|
-
title: string
|
|
1754
|
+
title: i0.InputSignal<string>;
|
|
1785
1755
|
/**
|
|
1786
1756
|
* message of the component
|
|
1787
1757
|
*/
|
|
1788
|
-
message: string
|
|
1758
|
+
message: i0.InputSignal<string>;
|
|
1789
1759
|
/**
|
|
1790
1760
|
* onClose Event - to be raised when the component is closed
|
|
1791
1761
|
|
|
1792
1762
|
*/
|
|
1793
|
-
onClose:
|
|
1763
|
+
onClose: i0.OutputEmitterRef<void>;
|
|
1794
1764
|
/**
|
|
1795
1765
|
* close magic alert
|
|
1796
1766
|
*/
|
|
1797
1767
|
OnClose(): void;
|
|
1798
1768
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicAlertComponent, never>;
|
|
1799
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicAlertComponent, "mg-base-alert", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
|
|
1769
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicAlertComponent, "mg-base-alert", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; }, { "onClose": "onClose"; }, never, never, false, never>;
|
|
1800
1770
|
}
|
|
1801
1771
|
|
|
1802
1772
|
/***
|
|
@@ -1814,16 +1784,16 @@ declare class BaseMagicConfirmComponent {
|
|
|
1814
1784
|
/**
|
|
1815
1785
|
* title of the component
|
|
1816
1786
|
*/
|
|
1817
|
-
title: string
|
|
1787
|
+
title: i0.InputSignal<string>;
|
|
1818
1788
|
/**
|
|
1819
1789
|
* message of the component
|
|
1820
1790
|
*/
|
|
1821
|
-
message: string
|
|
1791
|
+
message: i0.InputSignal<string>;
|
|
1822
1792
|
/**
|
|
1823
1793
|
* onClose Event - to be raised when the component is closed
|
|
1824
1794
|
* should pass true when OK is pressed and false when cancel is pressed
|
|
1825
1795
|
*/
|
|
1826
|
-
onClose:
|
|
1796
|
+
onClose: i0.OutputEmitterRef<boolean>;
|
|
1827
1797
|
/**
|
|
1828
1798
|
* raises close Event
|
|
1829
1799
|
* @param result true when OK is pressed and false when cancel is pressed
|
|
@@ -1831,7 +1801,7 @@ declare class BaseMagicConfirmComponent {
|
|
|
1831
1801
|
*/
|
|
1832
1802
|
OnClose(result: any): void;
|
|
1833
1803
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicConfirmComponent, never>;
|
|
1834
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicConfirmComponent, "mg-base-confirm", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
|
|
1804
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicConfirmComponent, "mg-base-confirm", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; }, { "onClose": "onClose"; }, never, never, false, never>;
|
|
1835
1805
|
}
|
|
1836
1806
|
|
|
1837
1807
|
/***
|
|
@@ -1843,26 +1813,21 @@ declare class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
|
|
|
1843
1813
|
}
|
|
1844
1814
|
|
|
1845
1815
|
declare class MagicOverlayContainerWrapper implements IMagicViewContainerRef {
|
|
1846
|
-
private componentListMagicService;
|
|
1847
|
-
private magicLazyModuleLoader;
|
|
1848
|
-
private injector;
|
|
1849
|
-
private changeDetectorRef;
|
|
1850
|
-
private compiler;
|
|
1851
1816
|
/**
|
|
1852
1817
|
*
|
|
1853
1818
|
*/
|
|
1854
|
-
Component: any
|
|
1819
|
+
Component: i0.InputSignal<any>;
|
|
1855
1820
|
/**
|
|
1856
1821
|
*
|
|
1857
1822
|
*/
|
|
1858
|
-
Parameters: any
|
|
1859
|
-
|
|
1860
|
-
|
|
1823
|
+
Parameters: i0.InputSignal<any>;
|
|
1824
|
+
OverlayTypeParam: i0.InputSignal<OverlayType>;
|
|
1825
|
+
onClose: i0.OutputEmitterRef<void>;
|
|
1861
1826
|
/**
|
|
1862
1827
|
* HTML to be displayed in the modal window
|
|
1863
1828
|
*/
|
|
1864
1829
|
overlayContentViewContainerRef: ViewContainerRef;
|
|
1865
|
-
overlayContainerWrapperElementRef: ElementRef
|
|
1830
|
+
overlayContainerWrapperElementRef: i0.Signal<ElementRef<any>>;
|
|
1866
1831
|
/**
|
|
1867
1832
|
* @ignore
|
|
1868
1833
|
* contais data of allowed base components to use
|
|
@@ -1871,11 +1836,11 @@ declare class MagicOverlayContainerWrapper implements IMagicViewContainerRef {
|
|
|
1871
1836
|
comp: any;
|
|
1872
1837
|
error: string;
|
|
1873
1838
|
}>;
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
constructor(
|
|
1839
|
+
private componentListMagicService;
|
|
1840
|
+
private magicLazyModuleLoader;
|
|
1841
|
+
private injector;
|
|
1842
|
+
private changeDetectorRef;
|
|
1843
|
+
constructor();
|
|
1879
1844
|
/**
|
|
1880
1845
|
*
|
|
1881
1846
|
*/
|
|
@@ -1885,7 +1850,7 @@ declare class MagicOverlayContainerWrapper implements IMagicViewContainerRef {
|
|
|
1885
1850
|
GetRootElement(): HTMLElement;
|
|
1886
1851
|
DetectChanges(): void;
|
|
1887
1852
|
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>;
|
|
1853
|
+
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
1854
|
}
|
|
1890
1855
|
|
|
1891
1856
|
/**
|
|
@@ -1904,29 +1869,29 @@ declare class ExitMagicService {
|
|
|
1904
1869
|
* Root Magic component
|
|
1905
1870
|
*/
|
|
1906
1871
|
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
1872
|
/**
|
|
1918
1873
|
* Root component to be displayed in the window
|
|
1919
1874
|
*/
|
|
1920
|
-
RootComponent:
|
|
1875
|
+
RootComponent: Type<any>;
|
|
1921
1876
|
/**
|
|
1922
1877
|
* parameters for the Root Component
|
|
1923
1878
|
*/
|
|
1924
1879
|
RootComponentParameters: any;
|
|
1925
1880
|
overlayWindowsContainerViewRef: ViewContainerRef;
|
|
1926
|
-
rootMagicElementRef: ElementRef
|
|
1927
|
-
SpinnerTemplate: TemplateRef<any
|
|
1881
|
+
rootMagicElementRef: i0.Signal<ElementRef<any>>;
|
|
1882
|
+
SpinnerTemplate: i0.InputSignal<TemplateRef<any>>;
|
|
1928
1883
|
showSpinner: boolean;
|
|
1929
1884
|
magicEngineTerminated: boolean;
|
|
1885
|
+
protected engineMagicService: EngineMagicService;
|
|
1886
|
+
protected componentList: ComponentListMagicService;
|
|
1887
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
1888
|
+
private titleService;
|
|
1889
|
+
private overlayWindowService;
|
|
1890
|
+
private httpClient;
|
|
1891
|
+
private pendingCommandsCollector;
|
|
1892
|
+
private route;
|
|
1893
|
+
private router;
|
|
1894
|
+
exitMagicService: ExitMagicService;
|
|
1930
1895
|
/**
|
|
1931
1896
|
*
|
|
1932
1897
|
* @param magic Magic's service
|
|
@@ -1936,7 +1901,7 @@ declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerR
|
|
|
1936
1901
|
* @param httpClient The native httpClient instance
|
|
1937
1902
|
* @param exitMagicService Magic exit service
|
|
1938
1903
|
*/
|
|
1939
|
-
constructor(
|
|
1904
|
+
constructor();
|
|
1940
1905
|
/**
|
|
1941
1906
|
* Before-unload event listener
|
|
1942
1907
|
* @param event
|
|
@@ -1970,16 +1935,14 @@ declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerR
|
|
|
1970
1935
|
* @param command
|
|
1971
1936
|
*/
|
|
1972
1937
|
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>;
|
|
1938
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagicShellComponent, never>;
|
|
1939
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MagicShellComponent, "magic-root", never, { "SpinnerTemplate": { "alias": "SpinnerTemplate"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
1975
1940
|
}
|
|
1976
1941
|
|
|
1977
1942
|
/**
|
|
1978
1943
|
* Represents a Magic subform
|
|
1979
1944
|
*/
|
|
1980
1945
|
declare class SubformMagicComponent {
|
|
1981
|
-
private vcRef;
|
|
1982
|
-
protected mgSub: SubformMagicService;
|
|
1983
1946
|
/**
|
|
1984
1947
|
* @ignore
|
|
1985
1948
|
*/
|
|
@@ -1995,11 +1958,13 @@ declare class SubformMagicComponent {
|
|
|
1995
1958
|
/**
|
|
1996
1959
|
* @ignore
|
|
1997
1960
|
*/
|
|
1998
|
-
constructor(
|
|
1961
|
+
constructor();
|
|
1962
|
+
private vcRef;
|
|
1963
|
+
protected mgSub: SubformMagicService;
|
|
1999
1964
|
/**
|
|
2000
1965
|
* @ignore
|
|
2001
1966
|
*/
|
|
2002
|
-
get Component():
|
|
1967
|
+
get Component(): Type<any>;
|
|
2003
1968
|
/**
|
|
2004
1969
|
* @ignore
|
|
2005
1970
|
*/
|
|
@@ -2012,9 +1977,6 @@ declare class SubformMagicComponent {
|
|
|
2012
1977
|
* Represents a Magic subform
|
|
2013
1978
|
*/
|
|
2014
1979
|
declare class ErrorMagicComponent {
|
|
2015
|
-
protected _task: TaskMagicService;
|
|
2016
|
-
mgService: AccessorMagicService;
|
|
2017
|
-
protected changeDetectorRef: ChangeDetectorRef;
|
|
2018
1980
|
/**
|
|
2019
1981
|
* @ignore
|
|
2020
1982
|
*/
|
|
@@ -2026,11 +1988,11 @@ declare class ErrorMagicComponent {
|
|
|
2026
1988
|
set magic(val: any);
|
|
2027
1989
|
set rowId1(val: any);
|
|
2028
1990
|
defaultDisplay: boolean;
|
|
2029
|
-
|
|
1991
|
+
private customContentRef;
|
|
2030
1992
|
/**
|
|
2031
1993
|
* @ignore
|
|
2032
1994
|
*/
|
|
2033
|
-
constructor(
|
|
1995
|
+
constructor();
|
|
2034
1996
|
/**
|
|
2035
1997
|
* returns true if the html element has no children
|
|
2036
1998
|
* @param element
|
|
@@ -2040,6 +2002,9 @@ declare class ErrorMagicComponent {
|
|
|
2040
2002
|
* @ignore
|
|
2041
2003
|
*/
|
|
2042
2004
|
HasErrors(id: string): boolean;
|
|
2005
|
+
protected _task: TaskMagicService;
|
|
2006
|
+
mgService: AccessorMagicService;
|
|
2007
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
2043
2008
|
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMagicComponent, never>;
|
|
2044
2009
|
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMagicComponent, "mgError", never, { "magic": { "alias": "magic"; "required": false; }; "rowId1": { "alias": "rowId"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
2045
2010
|
}
|
|
@@ -2049,13 +2014,19 @@ declare class ErrorMagicComponent {
|
|
|
2049
2014
|
*/
|
|
2050
2015
|
declare class NoControlMagicDirective extends MagicDirective {
|
|
2051
2016
|
set magic(val: any);
|
|
2052
|
-
constructor(
|
|
2017
|
+
constructor();
|
|
2018
|
+
_task: TaskMagicService;
|
|
2019
|
+
element: ElementRef;
|
|
2020
|
+
renderer: Renderer2;
|
|
2021
|
+
vcRef: ViewContainerRef;
|
|
2022
|
+
platform: Platform;
|
|
2023
|
+
magicRow: RowMagicDirective;
|
|
2053
2024
|
regEvents(): void;
|
|
2054
2025
|
isTabControl(): boolean;
|
|
2055
2026
|
isRadio(): boolean;
|
|
2056
2027
|
handleCommand(command: GuiCommand): void;
|
|
2057
2028
|
handleSetProperty(command: GuiCommand): void;
|
|
2058
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NoControlMagicDirective,
|
|
2029
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoControlMagicDirective, never>;
|
|
2059
2030
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NoControlMagicDirective, "[magicnc]", never, { "magic": { "alias": "magicnc"; "required": false; }; }, {}, never, never, false, never>;
|
|
2060
2031
|
}
|
|
2061
2032
|
|
|
@@ -2063,13 +2034,13 @@ declare class NoControlMagicDirective extends MagicDirective {
|
|
|
2063
2034
|
* Perform Magic validation on input controls which hold alphanumeric strings
|
|
2064
2035
|
*/
|
|
2065
2036
|
declare class MgformatMagicDirective {
|
|
2037
|
+
datePasteFlag: boolean;
|
|
2066
2038
|
protected magicDir: MagicDirective;
|
|
2067
2039
|
protected _task: TaskMagicService;
|
|
2068
|
-
datePasteFlag: boolean;
|
|
2069
2040
|
/**
|
|
2070
2041
|
* @ignore
|
|
2071
2042
|
*/
|
|
2072
|
-
constructor(
|
|
2043
|
+
constructor();
|
|
2073
2044
|
ngAfterViewInit(): void;
|
|
2074
2045
|
/**
|
|
2075
2046
|
* @ignore
|
|
@@ -2146,7 +2117,7 @@ declare class Constants {
|
|
|
2146
2117
|
*/
|
|
2147
2118
|
declare class DateMagicPipe extends DatePipe implements PipeTransform {
|
|
2148
2119
|
protected _task: TaskMagicService;
|
|
2149
|
-
constructor(
|
|
2120
|
+
constructor();
|
|
2150
2121
|
transform(value: any, controlId: string): any;
|
|
2151
2122
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateMagicPipe, never>;
|
|
2152
2123
|
static ɵpipe: i0.ɵɵPipeDeclaration<DateMagicPipe, "magicDate", false>;
|
|
@@ -2160,7 +2131,7 @@ declare class MgDateFormatter {
|
|
|
2160
2131
|
*/
|
|
2161
2132
|
declare class TimeMagicPipe extends DatePipe implements PipeTransform {
|
|
2162
2133
|
protected _task: TaskMagicService;
|
|
2163
|
-
constructor(
|
|
2134
|
+
constructor();
|
|
2164
2135
|
transform(value: any, controlId: string): any;
|
|
2165
2136
|
static ɵfac: i0.ɵɵFactoryDeclaration<TimeMagicPipe, never>;
|
|
2166
2137
|
static ɵpipe: i0.ɵɵPipeDeclaration<TimeMagicPipe, "magicTime", false>;
|
|
@@ -2177,7 +2148,7 @@ declare class RangeValidatorMagicDirective implements Validator {
|
|
|
2177
2148
|
* @param _task The task service
|
|
2178
2149
|
* @param vcRef
|
|
2179
2150
|
*/
|
|
2180
|
-
constructor(
|
|
2151
|
+
constructor();
|
|
2181
2152
|
/**
|
|
2182
2153
|
* Validation method
|
|
2183
2154
|
* @param c FormControl to validate
|
|
@@ -2200,10 +2171,6 @@ declare class RangeValidatorMagicDirective implements Validator {
|
|
|
2200
2171
|
* 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
2172
|
*/
|
|
2202
2173
|
declare class NonMagicControlDirective implements OnInit {
|
|
2203
|
-
protected _task: TaskMagicService;
|
|
2204
|
-
protected element: ElementRef;
|
|
2205
|
-
protected renderer: Renderer2;
|
|
2206
|
-
protected vcRef: ViewContainerRef;
|
|
2207
2174
|
set magic(val: any);
|
|
2208
2175
|
/**
|
|
2209
2176
|
* The HTML element connected to this directive
|
|
@@ -2237,7 +2204,11 @@ declare class NonMagicControlDirective implements OnInit {
|
|
|
2237
2204
|
* @param renderer Renderer for the element
|
|
2238
2205
|
* @param vcRef
|
|
2239
2206
|
*/
|
|
2240
|
-
constructor(
|
|
2207
|
+
constructor();
|
|
2208
|
+
protected _task: TaskMagicService;
|
|
2209
|
+
protected element: ElementRef;
|
|
2210
|
+
protected renderer: Renderer2;
|
|
2211
|
+
protected vcRef: ViewContainerRef;
|
|
2241
2212
|
/**
|
|
2242
2213
|
* Get the task service
|
|
2243
2214
|
* @returns
|
|
@@ -2264,7 +2235,7 @@ declare class NonMagicControlDirective implements OnInit {
|
|
|
2264
2235
|
*/
|
|
2265
2236
|
declare class MagicFocusDirective {
|
|
2266
2237
|
private hostElement;
|
|
2267
|
-
constructor(
|
|
2238
|
+
constructor();
|
|
2268
2239
|
ngAfterViewInit(): void;
|
|
2269
2240
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagicFocusDirective, never>;
|
|
2270
2241
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MagicFocusDirective, "[magicFocus]", never, {}, {}, never, never, false, never>;
|
|
@@ -2275,14 +2246,14 @@ declare class MagicFocusDirective {
|
|
|
2275
2246
|
*/
|
|
2276
2247
|
declare class MagicViewContainerRef {
|
|
2277
2248
|
private vcRef;
|
|
2278
|
-
constructor(
|
|
2249
|
+
constructor();
|
|
2279
2250
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagicViewContainerRef, never>;
|
|
2280
2251
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MagicViewContainerRef, "[magicViewContainerRef]", never, {}, {}, never, never, false, never>;
|
|
2281
2252
|
}
|
|
2282
2253
|
|
|
2283
2254
|
declare class Time24MagicPipe implements PipeTransform {
|
|
2284
2255
|
protected _task: TaskMagicService;
|
|
2285
|
-
constructor(
|
|
2256
|
+
constructor();
|
|
2286
2257
|
transform(value: any, controlId: string): any;
|
|
2287
2258
|
static ɵfac: i0.ɵɵFactoryDeclaration<Time24MagicPipe, never>;
|
|
2288
2259
|
static ɵpipe: i0.ɵɵPipeDeclaration<Time24MagicPipe, "magicTime24", false>;
|
|
@@ -2293,10 +2264,89 @@ declare class Time24MagicPipe implements PipeTransform {
|
|
|
2293
2264
|
*/
|
|
2294
2265
|
declare class MagicModule {
|
|
2295
2266
|
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
|
|
2267
|
+
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
2268
|
static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
|
|
2298
2269
|
}
|
|
2299
2270
|
|
|
2271
|
+
/**
|
|
2272
|
+
* Service managing alert and confirmation windows
|
|
2273
|
+
* This is Magic's default provider
|
|
2274
|
+
*/
|
|
2275
|
+
declare class ConfirmationComponentsMagicProvider {
|
|
2276
|
+
/**
|
|
2277
|
+
* Return true when use default javascript alert and confirmation or return false to provide custom components
|
|
2278
|
+
* @returns true is we want to use default javascript alert and confirmation
|
|
2279
|
+
*/
|
|
2280
|
+
showDefaultConfirmations(): boolean;
|
|
2281
|
+
/**
|
|
2282
|
+
* Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
|
|
2283
|
+
* @returns component that will replace javascript Alert
|
|
2284
|
+
*/
|
|
2285
|
+
getAlertComponent(): any;
|
|
2286
|
+
/**
|
|
2287
|
+
* Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
|
|
2288
|
+
* @returns component that will replace javascript confirmation box
|
|
2289
|
+
*/
|
|
2290
|
+
getConfirmtionComponent(): any;
|
|
2291
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
|
|
2292
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationComponentsMagicProvider>;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* Notifies Angular that Magic state changed outside of its knowledge.
|
|
2297
|
+
*
|
|
2298
|
+
* The WebClient runs zoneless, so Angular no longer re-renders the application
|
|
2299
|
+
* after every asynchronous task. Change detection is triggered only by Angular's
|
|
2300
|
+
* own APIs - a template event binding, a signal write, `markForCheck()` and so on.
|
|
2301
|
+
*
|
|
2302
|
+
* Magic drives the UI from sources Angular cannot observe: DOM listeners registered
|
|
2303
|
+
* through `Renderer2`, the engine's event loop, and socket callbacks. Every such
|
|
2304
|
+
* source calls {@link notify}, and the Magic components refresh themselves in response.
|
|
2305
|
+
*
|
|
2306
|
+
* Application code can use this service for the same purpose. Call {@link notify}
|
|
2307
|
+
* after changing component state from a callback Angular does not control - a
|
|
2308
|
+
* `setTimeout`, a `Promise`, a `fetch` response or a third-party widget event:
|
|
2309
|
+
*
|
|
2310
|
+
* ```ts
|
|
2311
|
+
* export class MyForm extends TaskBaseMagicComponent {
|
|
2312
|
+
* private readonly magicChangeDetection = inject(MagicChangeDetectionService);
|
|
2313
|
+
*
|
|
2314
|
+
* override mgOnLoad(): void {
|
|
2315
|
+
* setTimeout(() => {
|
|
2316
|
+
* this.statusText = 'Ready';
|
|
2317
|
+
* this.magicChangeDetection.notify();
|
|
2318
|
+
* }, 1000);
|
|
2319
|
+
* }
|
|
2320
|
+
* }
|
|
2321
|
+
* ```
|
|
2322
|
+
*
|
|
2323
|
+
* Notifications are coalesced by Angular's scheduler, so calling {@link notify}
|
|
2324
|
+
* several times in a row still results in a single refresh.
|
|
2325
|
+
*/
|
|
2326
|
+
declare class MagicChangeDetectionService {
|
|
2327
|
+
/**
|
|
2328
|
+
* @ignore
|
|
2329
|
+
*/
|
|
2330
|
+
private readonly changedSubject;
|
|
2331
|
+
/**
|
|
2332
|
+
* Emits whenever Magic state changed and the views should be refreshed.
|
|
2333
|
+
* Subscribers are expected to mark their view for check.
|
|
2334
|
+
*/
|
|
2335
|
+
readonly changed: Observable<void>;
|
|
2336
|
+
/**
|
|
2337
|
+
* Notify Angular that state which the templates depend on has changed.
|
|
2338
|
+
*/
|
|
2339
|
+
notify(): void;
|
|
2340
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagicChangeDetectionService, never>;
|
|
2341
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MagicChangeDetectionService>;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
declare class MagicLazyLoaderService {
|
|
2345
|
+
Load(path: string): Promise<any>;
|
|
2346
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagicLazyLoaderService, never>;
|
|
2347
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MagicLazyLoaderService>;
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2300
2350
|
declare const MG_FORMATS: {
|
|
2301
2351
|
parse: {
|
|
2302
2352
|
dateInput: {
|
|
@@ -2323,10 +2373,10 @@ declare const MG_FORMATS: {
|
|
|
2323
2373
|
};
|
|
2324
2374
|
};
|
|
2325
2375
|
declare class MgDateAdapter extends NativeDateAdapter {
|
|
2376
|
+
mgdtfmt: string;
|
|
2326
2377
|
protected task: TaskMagicService;
|
|
2327
2378
|
localeId: string;
|
|
2328
|
-
|
|
2329
|
-
constructor(task: TaskMagicService, localeId: string);
|
|
2379
|
+
constructor();
|
|
2330
2380
|
parse(value: any): Date | null;
|
|
2331
2381
|
format(date: Date, displayFormat: Object): string;
|
|
2332
2382
|
static ɵfac: i0.ɵɵFactoryDeclaration<MgDateAdapter, never>;
|
|
@@ -2369,7 +2419,7 @@ declare const matDateProviders: ({
|
|
|
2369
2419
|
/**
|
|
2370
2420
|
* Magic service providers
|
|
2371
2421
|
*/
|
|
2372
|
-
declare const basicMagicProviders: (typeof
|
|
2422
|
+
declare const basicMagicProviders: (typeof TaskMagicService | typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof MagicServices | ({
|
|
2373
2423
|
provide: typeof DateAdapter;
|
|
2374
2424
|
useClass: typeof MgDateAdapter;
|
|
2375
2425
|
useValue?: undefined;
|
|
@@ -2402,7 +2452,7 @@ declare const basicMagicProviders: (typeof SubformMagicService | typeof TitleMag
|
|
|
2402
2452
|
};
|
|
2403
2453
|
useClass?: undefined;
|
|
2404
2454
|
})[])[];
|
|
2405
|
-
declare const magicProviders: (typeof
|
|
2455
|
+
declare const magicProviders: (typeof TaskMagicService | typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof TableMagicService | typeof MagicServices | ({
|
|
2406
2456
|
provide: typeof DateAdapter;
|
|
2407
2457
|
useClass: typeof MgDateAdapter;
|
|
2408
2458
|
useValue?: undefined;
|
|
@@ -2436,6 +2486,53 @@ declare const magicProviders: (typeof SubformMagicService | typeof TitleMagicSer
|
|
|
2436
2486
|
useClass?: undefined;
|
|
2437
2487
|
})[])[];
|
|
2438
2488
|
|
|
2489
|
+
declare class OverlayContainerMagicProvider {
|
|
2490
|
+
getComponent(): typeof MagicOverlayContainer;
|
|
2491
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainerMagicProvider, never>;
|
|
2492
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayContainerMagicProvider>;
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* Service managing overlay windows
|
|
2497
|
+
*/
|
|
2498
|
+
declare class OverlayWindowService {
|
|
2499
|
+
protected componentList: ComponentListMagicService;
|
|
2500
|
+
protected engineMagicService: EngineMagicService;
|
|
2501
|
+
private magicLazyModuleLoader;
|
|
2502
|
+
private injector;
|
|
2503
|
+
private overlayContainerMagicProvider;
|
|
2504
|
+
private confirmationComponentsMagicProvider;
|
|
2505
|
+
constructor();
|
|
2506
|
+
private overlayWindowsContainerViewRef;
|
|
2507
|
+
private overlayWindowFocusManager;
|
|
2508
|
+
private changeDetectorRef;
|
|
2509
|
+
init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element, changeDetectorRef: ChangeDetectorRef): void;
|
|
2510
|
+
loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
|
|
2511
|
+
open(formName: string, taskId: string, taskDescription: string): void;
|
|
2512
|
+
close(commandStr: string): void;
|
|
2513
|
+
/**
|
|
2514
|
+
* Open Confirmation box
|
|
2515
|
+
* @param title title of the box
|
|
2516
|
+
* @param msg message
|
|
2517
|
+
* @param style Magic style
|
|
2518
|
+
*/
|
|
2519
|
+
openConfirmationBox(title: string, msg: string, style: Styles): void;
|
|
2520
|
+
/**
|
|
2521
|
+
* This method is called on close of the confirmation
|
|
2522
|
+
* @param style Magic style
|
|
2523
|
+
* @param result
|
|
2524
|
+
*/
|
|
2525
|
+
finishConfirmation(style: Styles, result: boolean): void;
|
|
2526
|
+
/**
|
|
2527
|
+
* creates a modal component. Can be used for overlay, message box or confirmation box
|
|
2528
|
+
* @param parameters component's parameters
|
|
2529
|
+
* @param component components to create
|
|
2530
|
+
*/
|
|
2531
|
+
private createModalComponent;
|
|
2532
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
|
|
2533
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayWindowService>;
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2439
2536
|
/**
|
|
2440
2537
|
* @ignore
|
|
2441
2538
|
*/
|
|
@@ -2445,6 +2542,50 @@ declare class StylesMapManager {
|
|
|
2445
2542
|
static magicValueGetStyle(styleName: string, magicValue: any): string;
|
|
2446
2543
|
}
|
|
2447
2544
|
|
|
2545
|
+
declare class SubscriberService {
|
|
2546
|
+
private static instance;
|
|
2547
|
+
private socket;
|
|
2548
|
+
private constructor();
|
|
2549
|
+
/**
|
|
2550
|
+
* Subscribe to a specific topic
|
|
2551
|
+
* @param topic The topic to subscribe to
|
|
2552
|
+
*/
|
|
2553
|
+
subscribe(topic: string): void;
|
|
2554
|
+
/**
|
|
2555
|
+
* Unsubscribe from a specific topic
|
|
2556
|
+
* @param topic The topic to unsubscribe from
|
|
2557
|
+
*/
|
|
2558
|
+
unsubscribe(topic: string): void;
|
|
2559
|
+
/**
|
|
2560
|
+
* Get an Observable for incoming messages
|
|
2561
|
+
* @returns Observable that emits message data
|
|
2562
|
+
*/
|
|
2563
|
+
onMessage(): Observable<{
|
|
2564
|
+
topic: string;
|
|
2565
|
+
message: any;
|
|
2566
|
+
}>;
|
|
2567
|
+
/**
|
|
2568
|
+
* Get current subscriptions (for debugging)
|
|
2569
|
+
*/
|
|
2570
|
+
getSubscriptions(): void;
|
|
2571
|
+
/**
|
|
2572
|
+
* Listen for subscriptions data
|
|
2573
|
+
* @returns Observable that emits subscriptions list
|
|
2574
|
+
*/
|
|
2575
|
+
onSubscriptionsData(): Observable<any[]>;
|
|
2576
|
+
/**
|
|
2577
|
+
* Get the singleton instance of SubscriberService
|
|
2578
|
+
* @returns {SubscriberService} The singleton instance
|
|
2579
|
+
*/
|
|
2580
|
+
static getInstance(): SubscriberService;
|
|
2581
|
+
/**
|
|
2582
|
+
* Disconnect from the server
|
|
2583
|
+
*/
|
|
2584
|
+
disconnect(): void;
|
|
2585
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriberService, never>;
|
|
2586
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SubscriberService>;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2448
2589
|
/**
|
|
2449
2590
|
* @ignore
|
|
2450
2591
|
*/
|
|
@@ -2514,51 +2655,29 @@ declare class ModalFormDefinition {
|
|
|
2514
2655
|
parameters: any;
|
|
2515
2656
|
}
|
|
2516
2657
|
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
*/
|
|
2658
|
+
declare class MagicModalProperties implements MagicModalInterface {
|
|
2659
|
+
private formName;
|
|
2660
|
+
private showTitleBar;
|
|
2661
|
+
private x;
|
|
2662
|
+
private y;
|
|
2663
|
+
private width;
|
|
2664
|
+
private height;
|
|
2665
|
+
private isCenteredToWindow;
|
|
2666
|
+
private shouldCloseOnBackgroundClick;
|
|
2667
|
+
private isResizable;
|
|
2668
|
+
private isMovable;
|
|
2669
|
+
constructor(formName: string, showTitleBar: boolean, x: number, y: number, width: string, height: string, isCenteredToWindow: boolean, shouldCloseOnBackgroundClick: boolean, isResizable: boolean, isMovable: boolean);
|
|
2670
|
+
X(): number;
|
|
2671
|
+
Y(): number;
|
|
2532
2672
|
Width(): string;
|
|
2533
|
-
/**
|
|
2534
|
-
* Returns the height of modal window
|
|
2535
|
-
*/
|
|
2536
2673
|
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;
|
|
2674
|
+
IsCenteredToWindow(): boolean;
|
|
2675
|
+
FormName(): string;
|
|
2676
|
+
ShowTitleBar(): boolean;
|
|
2677
|
+
ShouldCloseOnBackgroundClick(): boolean;
|
|
2678
|
+
IsResizable(): boolean;
|
|
2679
|
+
IsMovable(): boolean;
|
|
2561
2680
|
}
|
|
2562
2681
|
|
|
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 };
|
|
2682
|
+
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
2683
|
export type { ComponentData, IMagicViewContainerRef, ISubformMagicService, MagicModalInterface, ModuleData, RouteDefinition, SubformDefinition };
|