@magic-xpa/angular 4.1201.0-dev4121.306 → 4.1201.0-dev4121.308

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +5 -5
  2. package/fesm2022/magic-xpa-angular.mjs +193 -163
  3. package/fesm2022/magic-xpa-angular.mjs.map +1 -1
  4. package/package.json +10 -10
  5. package/types/magic-xpa-angular.d.ts +2564 -0
  6. package/index.d.ts +0 -61
  7. package/src/controls.metadata.model.d.ts +0 -78
  8. package/src/interfaces/sub-form-definition.iterface.d.ts +0 -18
  9. package/src/magic.core.module.d.ts +0 -44
  10. package/src/services/ISubformMagicService.d.ts +0 -4
  11. package/src/services/OverlayWindowService.d.ts +0 -49
  12. package/src/services/StylesMapManager.d.ts +0 -8
  13. package/src/services/accessor.magic.service.d.ts +0 -311
  14. package/src/services/commands-collector.magic.service.d.ts +0 -18
  15. package/src/services/component-list.magic.service.d.ts +0 -50
  16. package/src/services/confirmation.components.magic.provider.d.ts +0 -24
  17. package/src/services/engine.magic.service.d.ts +0 -32
  18. package/src/services/exit.magic.service.d.ts +0 -12
  19. package/src/services/magic-color.service.d.ts +0 -25
  20. package/src/services/magic.lazy.loader.service.d.ts +0 -6
  21. package/src/services/magic.providers.d.ts +0 -110
  22. package/src/services/magic.services.d.ts +0 -22
  23. package/src/services/mg-date-adapter.d.ts +0 -38
  24. package/src/services/overlay.conainer.magic.provider.d.ts +0 -7
  25. package/src/services/router-commands.magic.service.d.ts +0 -23
  26. package/src/services/subform.magic.service.d.ts +0 -71
  27. package/src/services/table.magic.service.d.ts +0 -86
  28. package/src/services/task.magics.service.d.ts +0 -405
  29. package/src/services/title.magic.service.d.ts +0 -20
  30. package/src/ui/GuiInteractiveExecutor.d.ts +0 -25
  31. package/src/ui/components/base-magic-alert.component.d.ts +0 -26
  32. package/src/ui/components/base-magic-confirm.component.d.ts +0 -28
  33. package/src/ui/components/magic-alert.component.d.ts +0 -9
  34. package/src/ui/components/magic-confirmation-box.component.d.ts +0 -9
  35. package/src/ui/directives/NonMagicControlDirective.d.ts +0 -67
  36. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +0 -15
  37. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +0 -34
  38. package/src/ui/directives/magic/combobox.magic.directive.d.ts +0 -19
  39. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +0 -13
  40. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +0 -36
  41. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +0 -13
  42. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +0 -15
  43. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +0 -21
  44. package/src/ui/directives/magic/row.magic.directive.d.ts +0 -32
  45. package/src/ui/directives/magic-focus.directive.d.ts +0 -12
  46. package/src/ui/directives/magic.directive.d.ts +0 -127
  47. package/src/ui/directives/magicViewContainerRef.directive.d.ts +0 -11
  48. package/src/ui/directives/mgformat.magic.directive.d.ts +0 -82
  49. package/src/ui/directives/range-validator.magic.directive.d.ts +0 -33
  50. package/src/ui/magic-confirmationBox.d.ts +0 -25
  51. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +0 -14
  52. package/src/ui/magic-modal/magic-modal-form.d.ts +0 -8
  53. package/src/ui/magic-modal/magic-modal-interface.d.ts +0 -45
  54. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +0 -50
  55. package/src/ui/magic-modal/magic-overlay-container.d.ts +0 -117
  56. package/src/ui/magic-root.component.d.ts +0 -85
  57. package/src/ui/mgerror.magic.component.d.ts +0 -39
  58. package/src/ui/pipes/date.magic.pipe.d.ts +0 -23
  59. package/src/ui/pipes/time.magic.pipe.d.ts +0 -14
  60. package/src/ui/pipes/time24.magic.pipe.d.ts +0 -10
  61. package/src/ui/router-container.magic.component.d.ts +0 -50
  62. package/src/ui/subform.magic.component.d.ts +0 -37
  63. package/src/ui/task-base.magic.component.d.ts +0 -112
  64. package/src/ui/utils.d.ts +0 -12
@@ -1,85 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { GuiCommand } from '@magic-xpa/gui';
3
- import { Title } from '@angular/platform-browser';
4
- import { EngineMagicService } from '../services/engine.magic.service';
5
- import { ComponentListMagicService } from '../services/component-list.magic.service';
6
- import { ExitMagicService } from '../services/exit.magic.service';
7
- import { OverlayWindowService } from '../services/OverlayWindowService';
8
- import { IMagicViewContainerRef } from '../..';
9
- import { CommandsCollectorMagicService } from '../services/commands-collector.magic.service';
10
- import { HttpClient } from '@angular/common/http';
11
- import { ActivatedRoute, Router } from "@angular/router";
12
- import * as i0 from "@angular/core";
13
- /**
14
- * Root Magic component
15
- */
16
- export declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerRef {
17
- protected engineMagicService: EngineMagicService;
18
- protected componentList: ComponentListMagicService;
19
- protected changeDetectorRef: ChangeDetectorRef;
20
- private titleService;
21
- private overlayWindowService;
22
- private httpClient;
23
- private pendingCommandsCollector;
24
- private route;
25
- private router;
26
- exitMagicService: ExitMagicService;
27
- /**
28
- * Root component to be displayed in the window
29
- */
30
- RootComponent: Component;
31
- /**
32
- * parameters for the Root Component
33
- */
34
- RootComponentParameters: any;
35
- overlayWindowsContainerViewRef: ViewContainerRef;
36
- rootMagicElementRef: ElementRef;
37
- SpinnerTemplate: TemplateRef<any>;
38
- showSpinner: boolean;
39
- magicEngineTerminated: boolean;
40
- /**
41
- *
42
- * @param magic Magic's service
43
- * @param componentList Magic component list
44
- * @param changeDetectorRef Changes detector
45
- * @param titleService Title setting service
46
- * @param httpClient The native httpClient instance
47
- * @param exitMagicService Magic exit service
48
- */
49
- constructor(engineMagicService: EngineMagicService, componentList: ComponentListMagicService, changeDetectorRef: ChangeDetectorRef, titleService: Title, overlayWindowService: OverlayWindowService, httpClient: HttpClient, pendingCommandsCollector: CommandsCollectorMagicService, route: ActivatedRoute, router: Router, exitMagicService: ExitMagicService);
50
- /**
51
- * Before-unload event listener
52
- * @param event
53
- */
54
- onBeforeUnload(event: any): string;
55
- onUnload(event: any): void;
56
- ngAfterViewInit(): void;
57
- setViewContainerRef(vcRef: ViewContainerRef): void;
58
- /**
59
- * Initialization of Magic mechanisms
60
- */
61
- initialize(): void;
62
- /**
63
- * Set the title
64
- */
65
- setTitle(): void;
66
- /**
67
- * Set the component according to requested form
68
- * @param formName Name of the form to open
69
- * @param taskId Id of opening task
70
- * @param taskDescription TODO
71
- * @param isModal whether modal window is being opened
72
- */
73
- private setComponent;
74
- /**
75
- * @ignore
76
- */
77
- registerUICommands(): void;
78
- /**
79
- * Execute commands received from the Magic WebClient engine
80
- * @param command
81
- */
82
- executeCommand(command: GuiCommand): void;
83
- static ɵfac: i0.ɵɵFactoryDeclaration<MagicShellComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<MagicShellComponent, "magic-root", never, { "SpinnerTemplate": { "alias": "SpinnerTemplate"; "required": false; }; }, {}, never, never, false, never>;
85
- }
@@ -1,39 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef } from "@angular/core";
2
- import { AccessorMagicService } from "../services/accessor.magic.service";
3
- import { TaskMagicService } from "../services/task.magics.service";
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Represents a Magic subform
7
- */
8
- export declare class ErrorMagicComponent {
9
- protected _task: TaskMagicService;
10
- mgService: AccessorMagicService;
11
- protected changeDetectorRef: ChangeDetectorRef;
12
- /**
13
- * @ignore
14
- */
15
- id: string;
16
- rowId: string;
17
- /**
18
- * @ignore
19
- */
20
- set magic(val: any);
21
- set rowId1(val: any);
22
- defaultDisplay: boolean;
23
- set CustomContent(innerComponent: ElementRef);
24
- /**
25
- * @ignore
26
- */
27
- constructor(_task: TaskMagicService, mgService: AccessorMagicService, changeDetectorRef: ChangeDetectorRef);
28
- /**
29
- * returns true if the html element has no children
30
- * @param element
31
- */
32
- isEmpty(element: HTMLElement): boolean;
33
- /**
34
- * @ignore
35
- */
36
- HasErrors(id: string): boolean;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMagicComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMagicComponent, "mgError", never, { "magic": { "alias": "magic"; "required": false; }; "rowId1": { "alias": "rowId"; "required": false; }; }, {}, never, ["*"], false, never>;
39
- }
@@ -1,23 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DatePipe } from '@angular/common';
3
- import { TaskMagicService } from '../../services/task.magics.service';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @ignore
7
- */
8
- export declare class Constants {
9
- static readonly DATE_FMT = "dd/MMM/yyyy";
10
- }
11
- /**
12
- * @ignore
13
- */
14
- export declare class DateMagicPipe extends DatePipe implements PipeTransform {
15
- protected _task: TaskMagicService;
16
- constructor(_task: TaskMagicService);
17
- transform(value: any, controlId: string): any;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DateMagicPipe, never>;
19
- static ɵpipe: i0.ɵɵPipeDeclaration<DateMagicPipe, "magicDate", false>;
20
- }
21
- export declare class MgDateFormatter {
22
- ConvertMgDateFormatToAngular(mgDateMask: string): string;
23
- }
@@ -1,14 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DatePipe } from '@angular/common';
3
- import { TaskMagicService } from '../../services/task.magics.service';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @ignore
7
- */
8
- export declare class TimeMagicPipe extends DatePipe implements PipeTransform {
9
- protected _task: TaskMagicService;
10
- constructor(_task: TaskMagicService);
11
- transform(value: any, controlId: string): any;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TimeMagicPipe, never>;
13
- static ɵpipe: i0.ɵɵPipeDeclaration<TimeMagicPipe, "magicTime", false>;
14
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { TaskMagicService } from "../../services/task.magics.service";
3
- import * as i0 from "@angular/core";
4
- export declare class Time24MagicPipe implements PipeTransform {
5
- protected _task: TaskMagicService;
6
- constructor(_task: TaskMagicService);
7
- transform(value: any, controlId: string): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<Time24MagicPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<Time24MagicPipe, "magicTime24", false>;
10
- }
@@ -1,50 +0,0 @@
1
- import { OnInit, ViewContainerRef } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
3
- import { EngineMagicService } from '../services/engine.magic.service';
4
- import { ComponentListMagicService } from '../services/component-list.magic.service';
5
- import { CommandsCollectorMagicService } from '../services/commands-collector.magic.service';
6
- import { RouterCommandsMagicService } from '../services/router-commands.magic.service';
7
- import { TaskMagicService } from '../services/task.magics.service';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * Mock component, implements routing by connecting the requested URL with the appropriate Magic task
11
- */
12
- export declare class RouterContainerMagicComponent implements OnInit {
13
- private activatedRoute;
14
- protected router: Router;
15
- protected magic: EngineMagicService;
16
- private containerTaskService;
17
- private viewContainerRef;
18
- private componentList;
19
- protected pendingCommandsCollector: CommandsCollectorMagicService;
20
- protected routerCommandsMagicService: RouterCommandsMagicService;
21
- private componentRef;
22
- private parentMgSubformService;
23
- private static lastRoute;
24
- private routePath;
25
- static get LastRoute(): string;
26
- /**
27
- *
28
- * @param changeDetectorRef
29
- * @param activatedRoute
30
- * @param magic
31
- * @param componentFactoryResolver
32
- * @param viewContainerRef
33
- * @param componentList
34
- * @param pendingCommandsCollector
35
- */
36
- constructor(activatedRoute: ActivatedRoute, router: Router, magic: EngineMagicService, containerTaskService: TaskMagicService, viewContainerRef: ViewContainerRef, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, routerCommandsMagicService: RouterCommandsMagicService);
37
- /**
38
- * Initialization
39
- */
40
- ngOnInit(): void;
41
- private insertRouteEvent;
42
- initializeComponent(): void;
43
- /**
44
- * Cleanup
45
- */
46
- ngOnDestroy(): void;
47
- getRouterPath(): string;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<RouterContainerMagicComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<RouterContainerMagicComponent, "magic-route-outlet", never, {}, {}, never, never, false, never>;
50
- }
@@ -1,37 +0,0 @@
1
- import { Component, ViewContainerRef } from "@angular/core";
2
- import { TaskBaseMagicComponent } from "./task-base.magic.component";
3
- import { SubformMagicService } from "../services/subform.magic.service";
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Represents a Magic subform
7
- */
8
- export declare class SubformMagicComponent {
9
- private vcRef;
10
- protected mgSub: SubformMagicService;
11
- /**
12
- * @ignore
13
- */
14
- id: string;
15
- /**
16
- * @ignore
17
- */
18
- set magic(val: any);
19
- /**
20
- * @ignore
21
- */
22
- component: TaskBaseMagicComponent;
23
- /**
24
- * @ignore
25
- */
26
- constructor(vcRef: ViewContainerRef, mgSub: SubformMagicService);
27
- /**
28
- * @ignore
29
- */
30
- get Component(): Component;
31
- /**
32
- * @ignore
33
- */
34
- get Parameters(): any;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<SubformMagicComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<SubformMagicComponent, "magic-subform", never, { "magic": { "alias": "magic"; "required": false; }; }, {}, never, never, false, never>;
37
- }
@@ -1,112 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { MagicProperties } from "@magic-xpa/utils";
4
- import { TaskMagicService } from "../services/task.magics.service";
5
- import { SubformMagicService } from "../services/subform.magic.service";
6
- import { TableMagicService } from "../services/table.magic.service";
7
- import { MagicServices } from "../services/magic.services";
8
- import { AccessorMagicService } from "../services/accessor.magic.service";
9
- import * as i0 from "@angular/core";
10
- /**
11
- * Base component representing a Magic task
12
- */
13
- export declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit {
14
- protected ref: ChangeDetectorRef;
15
- magicServices: MagicServices;
16
- /**
17
- * Id of task, used for initializing the task service
18
- */
19
- taskIdParam: string;
20
- /**
21
- * @ignore
22
- */
23
- taskDescription: string;
24
- /**
25
- * @ignore
26
- */
27
- magicProperties: typeof MagicProperties;
28
- /**
29
- *
30
- * @param ref changes-detector object
31
- * @param magicServices Access point for all Magic services
32
- */
33
- constructor(ref: ChangeDetectorRef, magicServices: MagicServices);
34
- /**
35
- * Returns the Magic task service
36
- * @returns
37
- */
38
- get task(): TaskMagicService;
39
- /**
40
- * Returns the Magic subform service
41
- * @returns
42
- */
43
- get mgSub(): SubformMagicService;
44
- /**
45
- * Returns the Magic table service
46
- * @returns
47
- */
48
- get tableService(): TableMagicService;
49
- /**
50
- * Returns the Magic accessor service
51
- * @returns
52
- */
53
- get mg(): AccessorMagicService;
54
- /**
55
- * Returns the task Id
56
- * @returns
57
- */
58
- get taskId(): string;
59
- /**
60
- * Returns the FormGroup for screen-mode forms
61
- * @returns
62
- */
63
- get screenFormGroup(): FormGroup;
64
- /**
65
- * Interface implementation
66
- */
67
- ngOnInit(): void;
68
- /**
69
- * @ignore
70
- */
71
- createFormControlsAccessor(formGroup: FormGroup): void;
72
- /**
73
- * @ignore
74
- */
75
- setInputDateFormat(): void;
76
- /**
77
- * This method is called when the value of any custom property is updated in Magic
78
- * propertyName : name of property which is updated. The format is <controlname>~<propertyname>
79
- * rowId : row number of the updated property for controls in table control (0 for controls outside table)
80
- * value : updated value of the property
81
- * @returns : void
82
- * To use the method override it in your component and check the property name and write you code ..for eg
83
- * if(propertyName == 'controlname~propertyName') {// your code}
84
- * else { // your code}
85
- */
86
- PropertyChanged(propertyName: string, rowId: number, value: any): void;
87
- /**
88
- * Records count change subject is subscribed to change in its value. This method will be called
89
- * as the value of records count is received at from server.
90
- * @returns : void
91
- * To use the method override it in your component.
92
- */
93
- RecordsCountChanged(recordsCount: number): void;
94
- /**
95
- * This method will be called once engine informs UI about loading of first set of data is sent to client
96
- * and client has reached its first idle time.
97
- * @returns : void
98
- * To use the method override it in your component.
99
- */
100
- mgOnLoad(): void;
101
- /**
102
- * Interface implementation
103
- */
104
- ngAfterViewInit(): void;
105
- ngAfterContentChecked(): void;
106
- /**
107
- * Interface implementation
108
- */
109
- ngOnDestroy(): void;
110
- static ɵfac: i0.ɵɵFactoryDeclaration<TaskBaseMagicComponent, never>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<TaskBaseMagicComponent, "task-magic", never, { "taskIdParam": { "alias": "taskIdParam"; "required": false; }; "taskDescription": { "alias": "taskDescription"; "required": false; }; }, {}, never, never, false, never>;
112
- }
package/src/ui/utils.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**
2
- * @ignore
3
- */
4
- export declare class utils {
5
- static getDistance(control: Element, x: number, y: number): number;
6
- static getDimentions(el: any): {
7
- x: number;
8
- y: number;
9
- width: any;
10
- height: any;
11
- };
12
- }