@magic-xpa/angular 4.1200.0-dev4120.15 → 4.1200.0-dev4120.150

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 (117) hide show
  1. package/fesm2022/magic-xpa-angular.mjs +1968 -210
  2. package/fesm2022/magic-xpa-angular.mjs.map +1 -1
  3. package/index.d.ts +3 -0
  4. package/package.json +6 -8
  5. package/src/controls.metadata.model.d.ts +16 -0
  6. package/src/interfaces/sub-form-definition.iterface.d.ts +6 -0
  7. package/src/magic.core.module.d.ts +5 -2
  8. package/src/services/OverlayWindowService.d.ts +19 -0
  9. package/src/services/StylesMapManager.d.ts +3 -0
  10. package/src/services/accessor.magic.service.d.ts +245 -3
  11. package/src/services/commands-collector.magic.service.d.ts +3 -0
  12. package/src/services/component-list.magic.service.d.ts +27 -0
  13. package/src/services/confirmation.components.magic.provider.d.ts +16 -0
  14. package/src/services/engine.magic.service.d.ts +5 -0
  15. package/src/services/exit.magic.service.d.ts +6 -0
  16. package/src/services/magic-color.service.d.ts +6 -0
  17. package/src/services/magic.providers.d.ts +3 -0
  18. package/src/services/magic.services.d.ts +6 -0
  19. package/src/services/router-commands.magic.service.d.ts +6 -0
  20. package/src/services/subform.magic.service.d.ts +28 -0
  21. package/src/services/table.magic.service.d.ts +56 -0
  22. package/src/services/task.magics.service.d.ts +305 -0
  23. package/src/services/title.magic.service.d.ts +11 -0
  24. package/src/ui/GuiInteractiveExecutor.d.ts +3 -0
  25. package/src/ui/components/base-magic-alert.component.d.ts +16 -0
  26. package/src/ui/components/base-magic-confirm.component.d.ts +18 -0
  27. package/src/ui/components/magic-alert.component.d.ts +3 -0
  28. package/src/ui/components/magic-confirmation-box.component.d.ts +3 -0
  29. package/src/ui/directives/NonMagicControlDirective.d.ts +41 -0
  30. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +6 -0
  31. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +12 -0
  32. package/src/ui/directives/magic/combobox.magic.directive.d.ts +9 -0
  33. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +6 -0
  34. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +13 -0
  35. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +6 -0
  36. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +6 -0
  37. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +3 -0
  38. package/src/ui/directives/magic/row.magic.directive.d.ts +15 -0
  39. package/src/ui/directives/magic-focus.directive.d.ts +3 -0
  40. package/src/ui/directives/magic.directive.d.ts +82 -0
  41. package/src/ui/directives/magicViewContainerRef.directive.d.ts +3 -0
  42. package/src/ui/directives/mgformat.magic.directive.d.ts +44 -0
  43. package/src/ui/directives/range-validator.magic.directive.d.ts +16 -0
  44. package/src/ui/magic-confirmationBox.d.ts +19 -0
  45. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +9 -0
  46. package/src/ui/magic-modal/magic-modal-form.d.ts +3 -0
  47. package/src/ui/magic-modal/magic-modal-interface.d.ts +35 -0
  48. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +20 -0
  49. package/src/ui/magic-modal/magic-overlay-container.d.ts +87 -0
  50. package/src/ui/magic-root.component.d.ts +42 -0
  51. package/src/ui/mgerror.magic.component.d.ts +19 -0
  52. package/src/ui/pipes/date.magic.pipe.d.ts +6 -0
  53. package/src/ui/pipes/time.magic.pipe.d.ts +3 -0
  54. package/src/ui/router-container.magic.component.d.ts +19 -0
  55. package/src/ui/subform.magic.component.d.ts +21 -0
  56. package/src/ui/task-base.magic.component.d.ts +78 -0
  57. package/src/ui/utils.d.ts +3 -0
  58. package/esm2022/index.mjs +0 -59
  59. package/esm2022/magic-xpa-angular.mjs +0 -2
  60. package/esm2022/src/controls.metadata.model.mjs +0 -183
  61. package/esm2022/src/interfaces/sub-form-definition.iterface.mjs +0 -2
  62. package/esm2022/src/magic.core.module.mjs +0 -159
  63. package/esm2022/src/services/ISubformMagicService.mjs +0 -2
  64. package/esm2022/src/services/OverlayWindowService.mjs +0 -245
  65. package/esm2022/src/services/StylesMapManager.mjs +0 -28
  66. package/esm2022/src/services/accessor.magic.service.mjs +0 -358
  67. package/esm2022/src/services/commands-collector.magic.service.mjs +0 -47
  68. package/esm2022/src/services/component-list.magic.service.mjs +0 -45
  69. package/esm2022/src/services/confirmation.components.magic.provider.mjs +0 -21
  70. package/esm2022/src/services/engine.magic.service.mjs +0 -80
  71. package/esm2022/src/services/exit.magic.service.mjs +0 -13
  72. package/esm2022/src/services/magic-color.service.mjs +0 -101
  73. package/esm2022/src/services/magic.lazy.loader.service.mjs +0 -16
  74. package/esm2022/src/services/magic.providers.mjs +0 -25
  75. package/esm2022/src/services/magic.services.mjs +0 -36
  76. package/esm2022/src/services/mg-date-adapter.mjs +0 -108
  77. package/esm2022/src/services/overlay.conainer.magic.provider.mjs +0 -14
  78. package/esm2022/src/services/router-commands.magic.service.mjs +0 -31
  79. package/esm2022/src/services/subform.magic.service.mjs +0 -195
  80. package/esm2022/src/services/table.magic.service.mjs +0 -81
  81. package/esm2022/src/services/task.magics.service.mjs +0 -648
  82. package/esm2022/src/services/title.magic.service.mjs +0 -19
  83. package/esm2022/src/ui/GuiInteractiveExecutor.mjs +0 -114
  84. package/esm2022/src/ui/components/base-magic-alert.component.mjs +0 -24
  85. package/esm2022/src/ui/components/base-magic-confirm.component.mjs +0 -24
  86. package/esm2022/src/ui/components/magic-alert.component.mjs +0 -36
  87. package/esm2022/src/ui/components/magic-confirmation-box.component.mjs +0 -42
  88. package/esm2022/src/ui/directives/NonMagicControlDirective.mjs +0 -58
  89. package/esm2022/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.mjs +0 -29
  90. package/esm2022/src/ui/directives/magic/checkbox.magic.directive.mjs +0 -100
  91. package/esm2022/src/ui/directives/magic/combobox.magic.directive.mjs +0 -37
  92. package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.mjs +0 -27
  93. package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +0 -85
  94. package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.mjs +0 -32
  95. package/esm2022/src/ui/directives/magic/input.noformcontrol.magic.directive.mjs +0 -28
  96. package/esm2022/src/ui/directives/magic/nocontrol.magic.directive.mjs +0 -193
  97. package/esm2022/src/ui/directives/magic/row.magic.directive.mjs +0 -62
  98. package/esm2022/src/ui/directives/magic-focus.directive.mjs +0 -20
  99. package/esm2022/src/ui/directives/magic.directive.mjs +0 -232
  100. package/esm2022/src/ui/directives/magicViewContainerRef.directive.mjs +0 -20
  101. package/esm2022/src/ui/directives/mgformat.magic.directive.mjs +0 -579
  102. package/esm2022/src/ui/directives/range-validator.magic.directive.mjs +0 -60
  103. package/esm2022/src/ui/magic-confirmationBox.mjs +0 -42
  104. package/esm2022/src/ui/magic-modal/base-magic-overlay-container.mjs +0 -22
  105. package/esm2022/src/ui/magic-modal/magic-modal-form.mjs +0 -6
  106. package/esm2022/src/ui/magic-modal/magic-modal-interface.mjs +0 -2
  107. package/esm2022/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +0 -125
  108. package/esm2022/src/ui/magic-modal/magic-overlay-container.mjs +0 -162
  109. package/esm2022/src/ui/magic-root.component.mjs +0 -236
  110. package/esm2022/src/ui/mgerror.magic.component.mjs +0 -125
  111. package/esm2022/src/ui/pipes/date.magic.pipe.mjs +0 -106
  112. package/esm2022/src/ui/pipes/time.magic.pipe.mjs +0 -52
  113. package/esm2022/src/ui/pipes/time24.magic.pipe.mjs +0 -35
  114. package/esm2022/src/ui/router-container.magic.component.mjs +0 -115
  115. package/esm2022/src/ui/subform.magic.component.mjs +0 -56
  116. package/esm2022/src/ui/task-base.magic.component.mjs +0 -91
  117. package/esm2022/src/ui/utils.mjs +0 -54
@@ -2,23 +2,110 @@ import { ElementRef, EventEmitter, OnInit, ViewContainerRef } from '@angular/cor
2
2
  import { BaseMagicOverlayContainer } from './base-magic-overlay-container';
3
3
  import { IMagicViewContainerRef } from '../../..';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Creates a modal window for Magic modal window components
7
+ */
5
8
  export declare class MagicOverlayContainer extends BaseMagicOverlayContainer implements OnInit, IMagicViewContainerRef {
9
+ /**
10
+ * HTML to be displayed in the modal window
11
+ */
6
12
  modalbodyViewContainerRef: ViewContainerRef;
13
+ /**
14
+ * Header of the modal window
15
+ */
7
16
  headerElementRef: ElementRef;
17
+ /**
18
+ * Foreground of the modal window
19
+ */
8
20
  foregroundElementRef: ElementRef;
21
+ /**
22
+ *
23
+ */
9
24
  ModalComp: any;
25
+ /**
26
+ *
27
+ */
10
28
  ModalCompParameters: any;
11
29
  onClose: EventEmitter<void>;
30
+ /**
31
+ *
32
+ */
12
33
  private componentRef;
34
+ private resizing;
35
+ private resizeDirection;
36
+ private originalWidth;
37
+ private originalHeight;
38
+ private originalMouseX;
39
+ private originalMouseY;
40
+ private isCenteredToWindow;
41
+ private static readonly minAllowedWidth;
42
+ private static readonly minAllowedHeight;
43
+ /**
44
+ *
45
+ */
13
46
  constructor();
47
+ /**
48
+ *
49
+ */
14
50
  ngOnInit(): void;
15
51
  setViewContainerRef(vcRef: ViewContainerRef): void;
52
+ /**
53
+ * Returns the form name
54
+ * @returns
55
+ */
16
56
  getText(): any;
57
+ /**
58
+ * Returns CSS styles for the window
59
+ * @returns
60
+ */
17
61
  getStyle(): {};
62
+ /**
63
+ * Returns the CSS styles for the client area
64
+ * @returns
65
+ */
18
66
  getClientAreaStyles(): {};
67
+ /**
68
+ * Should the title bar be displayed
69
+ * @returns
70
+ */
19
71
  getShowTitleBar(): any;
72
+ /**
73
+ *
74
+ */
20
75
  OnClose(): void;
76
+ /**
77
+ * Handles click in the background window
78
+ */
21
79
  OnBackgroundClick(): void;
80
+ /**
81
+ * Checks if the overlay component allows to be resized.
82
+ * @returns {boolean} True if the overlay is resizable, false otherwise.
83
+ */
84
+ IsResizable(): any;
85
+ /**
86
+ * Checks if the overlay component allows to be moved (dragged).
87
+ * @returns {boolean} True if the overlay is movable, false otherwise.
88
+ */
89
+ IsMovable(): any;
90
+ /**
91
+ * Initiates the resize process when a mousedown event occurs on a resize handle.
92
+ * Stores the initial state (dimensions, mouse position) and sets flags.
93
+ * @param {MouseEvent} event - The mousedown event triggering the resize.
94
+ * @param {'right' | 'bottom' | 'corner'} direction - Indicates which resize handle was activated.
95
+ */
96
+ onResizeStart(event: MouseEvent, direction: 'right' | 'bottom' | 'corner'): void;
97
+ /**
98
+ * Handles the resizing logic as the mouse moves across the window.
99
+ * This listener is active globally on the window during a resize operation via @HostListener.
100
+ * Calculates and applies the new dimensions to the element based on mouse movement.
101
+ * @param {MouseEvent} event - The mousemove event passed by the HostListener.
102
+ */
103
+ onResize(event: MouseEvent): void;
104
+ /**
105
+ * Finalizes the resize operation when the mouse button is released anywhere on the window.
106
+ * Resets the resizing state flags. Triggered globally via @HostListener.
107
+ */
108
+ onResizeEnd(): void;
22
109
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainer, never>;
23
110
  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>;
24
111
  }
@@ -10,6 +10,9 @@ import { CommandsCollectorMagicService } from '../services/commands-collector.ma
10
10
  import { HttpClient } from '@angular/common/http';
11
11
  import { ActivatedRoute, Router } from "@angular/router";
12
12
  import * as i0 from "@angular/core";
13
+ /**
14
+ * Root Magic component
15
+ */
13
16
  export declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerRef {
14
17
  protected engineMagicService: EngineMagicService;
15
18
  protected componentList: ComponentListMagicService;
@@ -21,22 +24,61 @@ export declare class MagicShellComponent implements AfterViewInit, IMagicViewCon
21
24
  private route;
22
25
  private router;
23
26
  exitMagicService: ExitMagicService;
27
+ /**
28
+ * Root component to be displayed in the window
29
+ */
24
30
  RootComponent: Component;
31
+ /**
32
+ * parameters for the Root Component
33
+ */
25
34
  RootComponentParameters: any;
26
35
  overlayWindowsContainerViewRef: ViewContainerRef;
27
36
  rootMagicElementRef: ElementRef;
28
37
  SpinnerTemplate: TemplateRef<any>;
29
38
  showSpinner: boolean;
30
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
+ */
31
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
+ */
32
54
  onBeforeUnload(event: any): string;
33
55
  onUnload(event: any): void;
34
56
  ngAfterViewInit(): void;
35
57
  setViewContainerRef(vcRef: ViewContainerRef): void;
58
+ /**
59
+ * Initialization of Magic mechanisms
60
+ */
36
61
  initialize(): void;
62
+ /**
63
+ * Set the title
64
+ */
37
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
+ */
38
73
  private setComponent;
74
+ /**
75
+ * @ignore
76
+ */
39
77
  registerUICommands(): void;
78
+ /**
79
+ * Execute commands received from the Magic WebClient engine
80
+ * @param command
81
+ */
40
82
  executeCommand(command: GuiCommand): void;
41
83
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicShellComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
42
84
  static ɵcmp: i0.ɵɵComponentDeclaration<MagicShellComponent, "magic-root", never, { "SpinnerTemplate": { "alias": "SpinnerTemplate"; "required": false; }; }, {}, never, never, false, never>;
@@ -2,18 +2,37 @@ import { ChangeDetectorRef, ElementRef } from "@angular/core";
2
2
  import { AccessorMagicService } from "../services/accessor.magic.service";
3
3
  import { TaskMagicService } from "../services/task.magics.service";
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Represents a Magic subform
7
+ */
5
8
  export declare class ErrorMagicComponent {
6
9
  protected _task: TaskMagicService;
7
10
  mgService: AccessorMagicService;
8
11
  protected changeDetectorRef: ChangeDetectorRef;
12
+ /**
13
+ * @ignore
14
+ */
9
15
  id: string;
10
16
  rowId: string;
17
+ /**
18
+ * @ignore
19
+ */
11
20
  set magic(val: any);
12
21
  set rowId1(val: any);
13
22
  defaultDisplay: boolean;
14
23
  set CustomContent(innerComponent: ElementRef);
24
+ /**
25
+ * @ignore
26
+ */
15
27
  constructor(_task: TaskMagicService, mgService: AccessorMagicService, changeDetectorRef: ChangeDetectorRef);
28
+ /**
29
+ * returns true if the html element has no children
30
+ * @param element
31
+ */
16
32
  isEmpty(element: HTMLElement): boolean;
33
+ /**
34
+ * @ignore
35
+ */
17
36
  HasErrors(id: string): boolean;
18
37
  static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMagicComponent, never>;
19
38
  static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMagicComponent, "mgError", never, { "magic": { "alias": "magic"; "required": false; }; "rowId1": { "alias": "rowId"; "required": false; }; }, {}, never, ["*"], false, never>;
@@ -2,9 +2,15 @@ import { PipeTransform } from '@angular/core';
2
2
  import { DatePipe } from '@angular/common';
3
3
  import { TaskMagicService } from '../../services/task.magics.service';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * @ignore
7
+ */
5
8
  export declare class Constants {
6
9
  static readonly DATE_FMT = "dd/MMM/yyyy";
7
10
  }
11
+ /**
12
+ * @ignore
13
+ */
8
14
  export declare class DateMagicPipe extends DatePipe implements PipeTransform {
9
15
  protected _task: TaskMagicService;
10
16
  constructor(_task: TaskMagicService);
@@ -2,6 +2,9 @@ import { PipeTransform } from '@angular/core';
2
2
  import { DatePipe } from '@angular/common';
3
3
  import { TaskMagicService } from '../../services/task.magics.service';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * @ignore
7
+ */
5
8
  export declare class TimeMagicPipe extends DatePipe implements PipeTransform {
6
9
  protected _task: TaskMagicService;
7
10
  constructor(_task: TaskMagicService);
@@ -6,6 +6,9 @@ import { CommandsCollectorMagicService } from '../services/commands-collector.ma
6
6
  import { RouterCommandsMagicService } from '../services/router-commands.magic.service';
7
7
  import { TaskMagicService } from '../services/task.magics.service';
8
8
  import * as i0 from "@angular/core";
9
+ /**
10
+ * Mock component, implements routing by connecting the requested URL with the appropriate Magic task
11
+ */
9
12
  export declare class RouterContainerMagicComponent implements OnInit {
10
13
  private activatedRoute;
11
14
  protected router: Router;
@@ -19,10 +22,26 @@ export declare class RouterContainerMagicComponent implements OnInit {
19
22
  private parentMgSubformService;
20
23
  private static lastRoute;
21
24
  static get LastRoute(): string;
25
+ /**
26
+ *
27
+ * @param changeDetectorRef
28
+ * @param activatedRoute
29
+ * @param magic
30
+ * @param componentFactoryResolver
31
+ * @param viewContainerRef
32
+ * @param componentList
33
+ * @param pendingCommandsCollector
34
+ */
22
35
  constructor(activatedRoute: ActivatedRoute, router: Router, magic: EngineMagicService, containerTaskService: TaskMagicService, viewContainerRef: ViewContainerRef, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, routerCommandsMagicService: RouterCommandsMagicService);
36
+ /**
37
+ * Initialization
38
+ */
23
39
  ngOnInit(): void;
24
40
  private insertRouteEvent;
25
41
  initializeComponent(): void;
42
+ /**
43
+ * Cleanup
44
+ */
26
45
  ngOnDestroy(): void;
27
46
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterContainerMagicComponent, never>;
28
47
  static ɵcmp: i0.ɵɵComponentDeclaration<RouterContainerMagicComponent, "magic-route-outlet", never, {}, {}, never, never, false, never>;
@@ -2,14 +2,35 @@ import { Component, ViewContainerRef } from "@angular/core";
2
2
  import { TaskBaseMagicComponent } from "./task-base.magic.component";
3
3
  import { SubformMagicService } from "../services/subform.magic.service";
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Represents a Magic subform
7
+ */
5
8
  export declare class SubformMagicComponent {
6
9
  private vcRef;
7
10
  protected mgSub: SubformMagicService;
11
+ /**
12
+ * @ignore
13
+ */
8
14
  id: string;
15
+ /**
16
+ * @ignore
17
+ */
9
18
  set magic(val: any);
19
+ /**
20
+ * @ignore
21
+ */
10
22
  component: TaskBaseMagicComponent;
23
+ /**
24
+ * @ignore
25
+ */
11
26
  constructor(vcRef: ViewContainerRef, mgSub: SubformMagicService);
27
+ /**
28
+ * @ignore
29
+ */
12
30
  get Component(): Component;
31
+ /**
32
+ * @ignore
33
+ */
13
34
  get Parameters(): any;
14
35
  static ɵfac: i0.ɵɵFactoryDeclaration<SubformMagicComponent, never>;
15
36
  static ɵcmp: i0.ɵɵComponentDeclaration<SubformMagicComponent, "magic-subform", never, { "magic": { "alias": "magic"; "required": false; }; }, {}, never, never, false, never>;
@@ -7,27 +7,105 @@ import { TableMagicService } from "../services/table.magic.service";
7
7
  import { MagicServices } from "../services/magic.services";
8
8
  import { AccessorMagicService } from "../services/accessor.magic.service";
9
9
  import * as i0 from "@angular/core";
10
+ /**
11
+ * Base component representing a Magic task
12
+ */
10
13
  export declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit {
11
14
  protected ref: ChangeDetectorRef;
12
15
  magicServices: MagicServices;
16
+ /**
17
+ * Id of task, used for initializing the task service
18
+ */
13
19
  taskIdParam: string;
20
+ /**
21
+ * @ignore
22
+ */
14
23
  taskDescription: string;
24
+ /**
25
+ * @ignore
26
+ */
15
27
  magicProperties: typeof MagicProperties;
28
+ /**
29
+ *
30
+ * @param ref changes-detector object
31
+ * @param magicServices Access point for all Magic services
32
+ */
16
33
  constructor(ref: ChangeDetectorRef, magicServices: MagicServices);
34
+ /**
35
+ * Returns the Magic task service
36
+ * @returns
37
+ */
17
38
  get task(): TaskMagicService;
39
+ /**
40
+ * Returns the Magic subform service
41
+ * @returns
42
+ */
18
43
  get mgSub(): SubformMagicService;
44
+ /**
45
+ * Returns the Magic table service
46
+ * @returns
47
+ */
19
48
  get tableService(): TableMagicService;
49
+ /**
50
+ * Returns the Magic accessor service
51
+ * @returns
52
+ */
20
53
  get mg(): AccessorMagicService;
54
+ /**
55
+ * Returns the task Id
56
+ * @returns
57
+ */
21
58
  get taskId(): string;
59
+ /**
60
+ * Returns the FormGroup for screen-mode forms
61
+ * @returns
62
+ */
22
63
  get screenFormGroup(): FormGroup;
64
+ /**
65
+ * Interface implementation
66
+ */
23
67
  ngOnInit(): void;
68
+ /**
69
+ * @ignore
70
+ */
24
71
  createFormControlsAccessor(formGroup: FormGroup): void;
72
+ /**
73
+ * @ignore
74
+ */
25
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
+ */
26
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
+ */
27
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
+ */
28
100
  mgOnLoad(): void;
101
+ /**
102
+ * Interface implementation
103
+ */
29
104
  ngAfterViewInit(): void;
30
105
  ngAfterContentChecked(): void;
106
+ /**
107
+ * Interface implementation
108
+ */
31
109
  ngOnDestroy(): void;
32
110
  static ɵfac: i0.ɵɵFactoryDeclaration<TaskBaseMagicComponent, never>;
33
111
  static ɵcmp: i0.ɵɵComponentDeclaration<TaskBaseMagicComponent, "task-magic", never, { "taskIdParam": { "alias": "taskIdParam"; "required": false; }; "taskDescription": { "alias": "taskDescription"; "required": false; }; }, {}, never, never, false, never>;
package/src/ui/utils.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @ignore
3
+ */
1
4
  export declare class utils {
2
5
  static getDistance(control: Element, x: number, y: number): number;
3
6
  static getDimentions(el: any): {
package/esm2022/index.mjs DELETED
@@ -1,59 +0,0 @@
1
- export * from "./src/controls.metadata.model";
2
- export * from "./src/magic.core.module";
3
- export * from "./src/interfaces/sub-form-definition.iterface";
4
- export * from "./src/services/accessor.magic.service";
5
- export * from "./src/services/commands-collector.magic.service";
6
- export * from "./src/services/component-list.magic.service";
7
- export * from "./src/services/confirmation.components.magic.provider";
8
- export * from "./src/services/engine.magic.service";
9
- export * from "./src/services/exit.magic.service";
10
- export * from "./src/services/ISubformMagicService";
11
- export * from "./src/services/magic-color.service";
12
- export * from "./src/services/magic.lazy.loader.service";
13
- export * from "./src/services/magic.providers";
14
- export * from "./src/services/magic.services";
15
- export * from "./src/services/mg-date-adapter";
16
- export * from "./src/services/overlay.conainer.magic.provider";
17
- export * from "./src/services/OverlayWindowService";
18
- export * from "./src/services/router-commands.magic.service";
19
- export * from "./src/services/StylesMapManager";
20
- export * from "./src/services/subform.magic.service";
21
- export * from "./src/services/table.magic.service";
22
- export * from "./src/services/task.magics.service";
23
- export * from "./src/services/title.magic.service";
24
- export * from "./src/ui/GuiInteractiveExecutor";
25
- export * from "./src/ui/magic-confirmationBox";
26
- export * from "./src/ui/magic-root.component";
27
- export * from "./src/ui/mgerror.magic.component";
28
- export * from "./src/ui/router-container.magic.component";
29
- export * from "./src/ui/subform.magic.component";
30
- export * from "./src/ui/task-base.magic.component";
31
- export * from "./src/ui/utils";
32
- export * from "./src/ui/components/base-magic-alert.component";
33
- export * from "./src/ui/components/base-magic-confirm.component";
34
- export * from "./src/ui/components/magic-alert.component";
35
- export * from "./src/ui/components/magic-confirmation-box.component";
36
- export * from "./src/ui/directives/magic-focus.directive";
37
- export * from "./src/ui/directives/magic.directive";
38
- export * from "./src/ui/directives/magicViewContainerRef.directive";
39
- export * from "./src/ui/directives/mgformat.magic.directive";
40
- export * from "./src/ui/directives/NonMagicControlDirective";
41
- export * from "./src/ui/directives/range-validator.magic.directive";
42
- export * from "./src/ui/directives/magic/checkbox-noformcontrol.magic.directive";
43
- export * from "./src/ui/directives/magic/checkbox.magic.directive";
44
- export * from "./src/ui/directives/magic/combobox.magic.directive";
45
- export * from "./src/ui/directives/magic/input.noformcontrol.magic.directive";
46
- export * from "./src/ui/directives/magic/nocontrol.magic.directive";
47
- export * from "./src/ui/directives/magic/row.magic.directive";
48
- export * from "./src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive";
49
- export * from "./src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive";
50
- export * from "./src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive";
51
- export * from "./src/ui/magic-modal/base-magic-overlay-container";
52
- export * from "./src/ui/magic-modal/magic-modal-form";
53
- export * from "./src/ui/magic-modal/magic-modal-interface";
54
- export * from "./src/ui/magic-modal/magic-overlay-container-wrapper";
55
- export * from "./src/ui/magic-modal/magic-overlay-container";
56
- export * from "./src/ui/pipes/date.magic.pipe";
57
- export * from "./src/ui/pipes/time.magic.pipe";
58
- export * from "./src/ui/pipes/time24.magic.pipe";
59
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLGNBQW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