@magic-xpa/angular 4.800.0-dev480.20 → 4.800.0-dev480.203

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/bundles/magic-xpa-angular.umd.js +1377 -2646
  2. package/bundles/magic-xpa-angular.umd.js.map +1 -1
  3. package/bundles/magic-xpa-angular.umd.min.js +2 -2
  4. package/bundles/magic-xpa-angular.umd.min.js.map +1 -1
  5. package/esm2015/index.js +1 -1
  6. package/esm2015/magic-xpa-angular.js +1 -4
  7. package/esm2015/src/controls.metadata.model.js +3 -36
  8. package/esm2015/src/interfaces/sub-form-definition.iterface.js +1 -1
  9. package/esm2015/src/magic.core.module.js +4 -14
  10. package/esm2015/src/services/ISubformMagicService.js +1 -1
  11. package/esm2015/src/services/OverlayWindowService.js +4 -29
  12. package/esm2015/src/services/StylesMapManager.js +1 -4
  13. package/esm2015/src/services/accessor.magic.service.js +41 -249
  14. package/esm2015/src/services/commands-collector.magic.service.js +4 -7
  15. package/esm2015/src/services/component-list.magic.service.js +1 -25
  16. package/esm2015/src/services/confirmation.components.magic.provider.js +4 -24
  17. package/esm2015/src/services/engine.magic.service.js +7 -10
  18. package/esm2015/src/services/exit.magic.service.js +4 -10
  19. package/esm2015/src/services/magic.providers.js +1 -4
  20. package/esm2015/src/services/magic.services.js +4 -10
  21. package/esm2015/src/services/mg-date-adapter.js +5 -5
  22. package/esm2015/src/services/overlay.conainer.magic.provider.js +4 -8
  23. package/esm2015/src/services/router-commands.magic.service.js +4 -10
  24. package/esm2015/src/services/subform.magic.service.js +37 -56
  25. package/esm2015/src/services/table.magic.service.js +5 -61
  26. package/esm2015/src/services/task.magics.service.js +14 -282
  27. package/esm2015/src/services/title.magic.service.js +4 -15
  28. package/esm2015/src/ui/GuiInteractiveExecutor.js +8 -6
  29. package/esm2015/src/ui/components/base-magic-alert.component.js +4 -14
  30. package/esm2015/src/ui/components/base-magic-confirm.component.js +4 -16
  31. package/esm2015/src/ui/components/magic-alert.component.js +5 -8
  32. package/esm2015/src/ui/components/magic-confirmation-box.component.js +5 -8
  33. package/esm2015/src/ui/directives/NonMagicControlDirective.js +4 -31
  34. package/esm2015/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.js +4 -10
  35. package/esm2015/src/ui/directives/magic/checkbox.magic.directive.js +4 -13
  36. package/esm2015/src/ui/directives/magic/combobox.magic.directive.js +4 -10
  37. package/esm2015/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.js +5 -11
  38. package/esm2015/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.js +4 -16
  39. package/esm2015/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.js +5 -11
  40. package/esm2015/src/ui/directives/magic/input.noformcontrol.magic.directive.js +4 -10
  41. package/esm2015/src/ui/directives/magic/nocontrol.magic.directive.js +6 -16
  42. package/esm2015/src/ui/directives/magic/row.magic.directive.js +4 -22
  43. package/esm2015/src/ui/directives/magic-focus.directive.js +4 -7
  44. package/esm2015/src/ui/directives/magic.directive.js +10 -81
  45. package/esm2015/src/ui/directives/magicViewContainerRef.directive.js +4 -8
  46. package/esm2015/src/ui/directives/mgformat.magic.directive.js +4 -57
  47. package/esm2015/src/ui/directives/range-validator.magic.directive.js +4 -20
  48. package/esm2015/src/ui/magic-confirmationBox.js +1 -25
  49. package/esm2015/src/ui/magic-modal/base-magic-overlay-container.js +1 -1
  50. package/esm2015/src/ui/magic-modal/magic-modal-form.js +1 -4
  51. package/esm2015/src/ui/magic-modal/magic-modal-interface.js +1 -1
  52. package/esm2015/src/ui/magic-modal/magic-overlay-container-wrapper.js +4 -21
  53. package/esm2015/src/ui/magic-modal/magic-overlay-container.js +4 -46
  54. package/esm2015/src/ui/magic-root.component.js +10 -53
  55. package/esm2015/src/ui/mgerror.magic.component.js +4 -21
  56. package/esm2015/src/ui/pipes/date.magic.pipe.js +5 -12
  57. package/esm2015/src/ui/pipes/time.magic.pipe.js +4 -7
  58. package/esm2015/src/ui/router-container.magic.component.js +14 -35
  59. package/esm2015/src/ui/subform.magic.component.js +4 -23
  60. package/esm2015/src/ui/task-base.magic.component.js +4 -74
  61. package/esm2015/src/ui/utils.js +1 -20
  62. package/fesm2015/magic-xpa-angular.js +603 -1880
  63. package/fesm2015/magic-xpa-angular.js.map +1 -1
  64. package/magic-xpa-angular.d.ts +0 -3
  65. package/package.json +3 -3
  66. package/src/controls.metadata.model.d.ts +0 -16
  67. package/src/interfaces/sub-form-definition.iterface.d.ts +0 -6
  68. package/src/magic.core.module.d.ts +0 -3
  69. package/src/services/OverlayWindowService.d.ts +0 -19
  70. package/src/services/StylesMapManager.d.ts +0 -3
  71. package/src/services/accessor.magic.service.d.ts +15 -208
  72. package/src/services/commands-collector.magic.service.d.ts +0 -3
  73. package/src/services/component-list.magic.service.d.ts +0 -27
  74. package/src/services/confirmation.components.magic.provider.d.ts +0 -16
  75. package/src/services/engine.magic.service.d.ts +1 -3
  76. package/src/services/exit.magic.service.d.ts +0 -6
  77. package/src/services/magic.providers.d.ts +0 -3
  78. package/src/services/magic.services.d.ts +0 -6
  79. package/src/services/router-commands.magic.service.d.ts +0 -6
  80. package/src/services/subform.magic.service.d.ts +5 -30
  81. package/src/services/table.magic.service.d.ts +0 -55
  82. package/src/services/task.magics.service.d.ts +1 -294
  83. package/src/services/title.magic.service.d.ts +0 -11
  84. package/src/ui/GuiInteractiveExecutor.d.ts +1 -3
  85. package/src/ui/components/base-magic-alert.component.d.ts +0 -16
  86. package/src/ui/components/base-magic-confirm.component.d.ts +0 -18
  87. package/src/ui/components/magic-alert.component.d.ts +0 -3
  88. package/src/ui/components/magic-confirmation-box.component.d.ts +0 -3
  89. package/src/ui/directives/NonMagicControlDirective.d.ts +0 -41
  90. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +0 -6
  91. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +0 -9
  92. package/src/ui/directives/magic/combobox.magic.directive.d.ts +0 -6
  93. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +0 -6
  94. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +0 -12
  95. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +0 -6
  96. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +0 -6
  97. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +0 -3
  98. package/src/ui/directives/magic/row.magic.directive.d.ts +0 -15
  99. package/src/ui/directives/magic-focus.directive.d.ts +0 -3
  100. package/src/ui/directives/magic.directive.d.ts +0 -78
  101. package/src/ui/directives/magicViewContainerRef.directive.d.ts +0 -3
  102. package/src/ui/directives/mgformat.magic.directive.d.ts +0 -40
  103. package/src/ui/directives/range-validator.magic.directive.d.ts +0 -16
  104. package/src/ui/magic-confirmationBox.d.ts +0 -19
  105. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +0 -9
  106. package/src/ui/magic-modal/magic-modal-form.d.ts +0 -3
  107. package/src/ui/magic-modal/magic-modal-interface.d.ts +0 -27
  108. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +0 -20
  109. package/src/ui/magic-modal/magic-overlay-container.d.ts +0 -51
  110. package/src/ui/magic-root.component.d.ts +0 -42
  111. package/src/ui/mgerror.magic.component.d.ts +0 -19
  112. package/src/ui/pipes/date.magic.pipe.d.ts +0 -6
  113. package/src/ui/pipes/time.magic.pipe.d.ts +0 -3
  114. package/src/ui/router-container.magic.component.d.ts +5 -21
  115. package/src/ui/subform.magic.component.d.ts +0 -21
  116. package/src/ui/task-base.magic.component.d.ts +0 -72
  117. package/src/ui/utils.d.ts +0 -3
@@ -2,9 +2,6 @@ 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
- */
8
5
  export declare class TimeMagicPipe extends DatePipe implements PipeTransform {
9
6
  protected _task: TaskMagicService;
10
7
  constructor(_task: TaskMagicService);
@@ -1,16 +1,14 @@
1
1
  import { ComponentFactoryResolver, OnInit, ViewContainerRef } from '@angular/core';
2
- import { ActivatedRoute } from '@angular/router';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { EngineMagicService } from '../services/engine.magic.service';
4
4
  import { ComponentListMagicService } from '../services/component-list.magic.service';
5
5
  import { CommandsCollectorMagicService } from '../services/commands-collector.magic.service';
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
- */
12
9
  export declare class RouterContainerMagicComponent implements OnInit {
13
10
  private activatedRoute;
11
+ protected router: Router;
14
12
  protected magic: EngineMagicService;
15
13
  private containerTaskService;
16
14
  private componentFactoryResolver;
@@ -20,26 +18,12 @@ export declare class RouterContainerMagicComponent implements OnInit {
20
18
  protected routerCommandsMagicService: RouterCommandsMagicService;
21
19
  private componentRef;
22
20
  private parentMgSubformService;
23
- /**
24
- *
25
- * @param changeDetectorRef
26
- * @param activatedRoute
27
- * @param magic
28
- * @param componentFactoryResolver
29
- * @param viewContainerRef
30
- * @param componentList
31
- * @param pendingCommandsCollector
32
- */
33
- constructor(activatedRoute: ActivatedRoute, magic: EngineMagicService, containerTaskService: TaskMagicService, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, routerCommandsMagicService: RouterCommandsMagicService);
34
- /**
35
- * Initialization
36
- */
21
+ private static lastRoute;
22
+ static get LastRoute(): string;
23
+ constructor(activatedRoute: ActivatedRoute, router: Router, magic: EngineMagicService, containerTaskService: TaskMagicService, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, routerCommandsMagicService: RouterCommandsMagicService);
37
24
  ngOnInit(): void;
38
25
  private insertRouteEvent;
39
26
  initializeComponent(): void;
40
- /**
41
- * Cleanup
42
- */
43
27
  ngOnDestroy(): void;
44
28
  static ɵfac: i0.ɵɵFactoryDef<RouterContainerMagicComponent, never>;
45
29
  static ɵcmp: i0.ɵɵComponentDefWithMeta<RouterContainerMagicComponent, "magic-route-outlet", never, {}, {}, never, never>;
@@ -2,35 +2,14 @@ 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
- */
8
5
  export declare class SubformMagicComponent {
9
6
  private vcRef;
10
7
  protected mgSub: SubformMagicService;
11
- /**
12
- * @ignore
13
- */
14
8
  id: string;
15
- /**
16
- * @ignore
17
- */
18
9
  set magic(val: any);
19
- /**
20
- * @ignore
21
- */
22
10
  component: TaskBaseMagicComponent;
23
- /**
24
- * @ignore
25
- */
26
11
  constructor(vcRef: ViewContainerRef, mgSub: SubformMagicService);
27
- /**
28
- * @ignore
29
- */
30
12
  get Component(): Component;
31
- /**
32
- * @ignore
33
- */
34
13
  get Parameters(): any;
35
14
  static ɵfac: i0.ɵɵFactoryDef<SubformMagicComponent, never>;
36
15
  static ɵcmp: i0.ɵɵComponentDefWithMeta<SubformMagicComponent, "magic-subform", never, { "magic": "magic"; }, {}, never, never>;
@@ -7,98 +7,26 @@ 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
- */
13
10
  export declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit {
14
11
  protected ref: ChangeDetectorRef;
15
12
  magicServices: MagicServices;
16
- /**
17
- * Id of task, used for initializing the task service
18
- */
19
13
  taskIdParam: string;
20
- /**
21
- * @ignore
22
- */
23
14
  taskDescription: string;
24
- /**
25
- * @ignore
26
- */
27
15
  magicProperties: typeof MagicProperties;
28
- /**
29
- *
30
- * @param ref changes-detector object
31
- * @param magicServices Access point for all Magic services
32
- */
33
16
  constructor(ref: ChangeDetectorRef, magicServices: MagicServices);
34
- /**
35
- * Returns the Magic task service
36
- * @returns
37
- */
38
17
  get task(): TaskMagicService;
39
- /**
40
- * Returns the Magic subform service
41
- * @returns
42
- */
43
18
  get mgSub(): SubformMagicService;
44
- /**
45
- * Returns the Magic table service
46
- * @returns
47
- */
48
19
  get tableService(): TableMagicService;
49
- /**
50
- * Returns the Magic accessor service
51
- * @returns
52
- */
53
20
  get mg(): AccessorMagicService;
54
- /**
55
- * Returns the task Id
56
- * @returns
57
- */
58
21
  get taskId(): string;
59
- /**
60
- * Returns the FormGroup for screen-mode forms
61
- * @returns
62
- */
63
22
  get screenFormGroup(): FormGroup;
64
- /**
65
- * Interface implementation
66
- */
67
23
  ngOnInit(): void;
68
- /**
69
- * @ignore
70
- */
71
24
  createFormControlsAccessor(formGroup: FormGroup): void;
72
- /**
73
- * @ignore
74
- */
75
25
  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
26
  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
27
  RecordsCountChanged(recordsCount: number): void;
94
- /**
95
- * Interface implementation
96
- */
97
28
  ngAfterViewInit(): void;
98
29
  ngAfterContentChecked(): void;
99
- /**
100
- * Interface implementation
101
- */
102
30
  ngOnDestroy(): void;
103
31
  static ɵfac: i0.ɵɵFactoryDef<TaskBaseMagicComponent, never>;
104
32
  static ɵcmp: i0.ɵɵComponentDefWithMeta<TaskBaseMagicComponent, "task-magic", never, { "taskIdParam": "taskIdParam"; "taskDescription": "taskDescription"; }, {}, never, never>;
package/src/ui/utils.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- /**
2
- * @ignore
3
- */
4
1
  export declare class utils {
5
2
  private static addChildren;
6
3
  static getDistance(control: Element, x: number, y: number): number;