@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
@@ -1,12 +1,6 @@
1
1
  import { CheckboxControlValueAccessor } from '@angular/forms';
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * @ignore
5
- */
6
3
  export declare const CHECKBOX_VALUE_ACCESSOR: any;
7
- /**
8
- * Value accessor for Checkbox without a FormControl
9
- */
10
4
  export declare class MagicCheckboxControlValueAccessor extends CheckboxControlValueAccessor {
11
5
  static ɵfac: i0.ɵɵFactoryDef<MagicCheckboxControlValueAccessor, never>;
12
6
  static ɵdir: i0.ɵɵDirectiveDefWithMeta<MagicCheckboxControlValueAccessor, " input[type=checkbox][magic]:not([formControlName]):not([no-form-control]), input[type=checkbox][magic]:not([formControl]), input[type=checkbox][magic]:not([ngModel]) ", never, {}, {}, never>;
@@ -2,27 +2,15 @@ import { ElementRef, Renderer2 } from "@angular/core";
2
2
  import { ControlValueAccessor } from "@angular/forms";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare const DATE_VALUE_ACCESSOR: any;
5
- /**
6
- * The accessor for writing a value and listening to changes on a date input element
7
- *
8
- * ### Example
9
- * `<input type="date" name="birthday" ngModel dateInput>`
10
- * OR
11
- * `<input type="date" formControlName="birthday" dateInput>`
12
- */
13
5
  export declare class DateValueAccessor implements ControlValueAccessor {
14
6
  private renderer;
15
7
  private elementRef;
16
8
  onChange: (_: any) => void;
17
9
  onTouched: () => void;
18
10
  constructor(renderer: Renderer2, elementRef: ElementRef);
19
- /** Writes a new value to the element (model -> view) */
20
11
  writeValue(value: Date): void;
21
- /** Registers a callback function, called when value changes (view -> model) */
22
12
  registerOnChange(fn: (_: any) => void): void;
23
- /** Registers a callback function, called when the control is blurred */
24
13
  registerOnTouched(fn: () => void): void;
25
- /** Enables or disables the element when the control status changes */
26
14
  setDisabledState(isDisabled: boolean): void;
27
15
  static ɵfac: i0.ɵɵFactoryDef<DateValueAccessor, never>;
28
16
  static ɵdir: i0.ɵɵDirectiveDefWithMeta<DateValueAccessor, "[dateInput]", never, {}, {}, never>;
@@ -1,12 +1,6 @@
1
1
  import { DefaultValueAccessor } from '@angular/forms';
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * @ignore
5
- */
6
3
  export declare const MAGIC_DEFAULT_VALUE_ACCESSOR: any;
7
- /**
8
- * @ignore
9
- */
10
4
  export declare class MagicDefaultValueAccessor extends DefaultValueAccessor {
11
5
  static ɵfac: i0.ɵɵFactoryDef<MagicDefaultValueAccessor, never>;
12
6
  static ɵdir: i0.ɵɵDirectiveDefWithMeta<MagicDefaultValueAccessor, " input[magic]:not([type=checkbox]):not([formControlName]):not([no-form-control]), textarea[magic]:not([formControlName]):not([noFormControl]):not([no-form-control]) ", ["magic"], {}, {}, never>;
@@ -1,14 +1,8 @@
1
1
  import { MagicDirective } from '../magic.directive';
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * Directive for non-checkbox input controls which do not have a form control
5
- */
6
3
  export declare class InputNoFormControlMagicDirective {
7
4
  protected magicDirective: MagicDirective;
8
5
  constructor(magicDirective: MagicDirective);
9
- /**
10
- * Handles the 'change' event - pass it to the Magic engine
11
- */
12
6
  onChange($event: any): void;
13
7
  static ɵfac: i0.ɵɵFactoryDef<InputNoFormControlMagicDirective, never>;
14
8
  static ɵdir: i0.ɵɵDirectiveDefWithMeta<InputNoFormControlMagicDirective, "input[magic]:([noFormControl]):not([type=checkbox]), textarea[magic]:([noFormControl]):not([type=checkbox])", never, {}, {}, never>;
@@ -4,9 +4,6 @@ import { MagicDirective } from "../magic.directive";
4
4
  import { TaskMagicService } from "../../../services/task.magics.service";
5
5
  import { RowMagicDirective } from "./row.magic.directive";
6
6
  import * as i0 from "@angular/core";
7
- /**
8
- * @ignore
9
- */
10
7
  export declare class NoControlMagicDirective extends MagicDirective {
11
8
  set magic(val: any);
12
9
  constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, magicRow: RowMagicDirective);
@@ -1,30 +1,15 @@
1
1
  import { ElementRef, OnDestroy, OnInit } from "@angular/core";
2
2
  import { TaskMagicService } from "../../../services/task.magics.service";
3
3
  import * as i0 from "@angular/core";
4
- /**
5
- * @ignore
6
- */
7
4
  export declare class RowMagicDirective implements OnInit, OnDestroy {
8
5
  protected _task: TaskMagicService;
9
6
  protected element: ElementRef;
10
7
  rowId: string;
11
- /**
12
- * The HTML element connected to this directive
13
- */
14
8
  protected htmlElement: HTMLElement;
15
- /**
16
- * @ignore
17
- */
18
9
  private rowChangedSubscriber;
19
10
  constructor(_task: TaskMagicService, element: ElementRef);
20
- /**
21
- * Initializes this object
22
- */
23
11
  ngOnInit(): void;
24
12
  private isInView;
25
- /**
26
- * Cleanup
27
- */
28
13
  ngOnDestroy(): void;
29
14
  onClick($event: any): void;
30
15
  static ɵfac: i0.ɵɵFactoryDef<RowMagicDirective, never>;
@@ -1,8 +1,5 @@
1
1
  import { ElementRef } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * Directive for setting focus on element
5
- */
6
3
  export declare class MagicFocusDirective {
7
4
  private hostElement;
8
5
  constructor(hostElement: ElementRef);
@@ -5,9 +5,6 @@ import { TaskMagicService } from '../../services/task.magics.service';
5
5
  import { RowMagicDirective } from './magic/row.magic.directive';
6
6
  import { Subscription } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
- /**
9
- * Connects HTML elements to the Magic Web Client engine
10
- */
11
8
  export declare class MagicDirective implements OnInit, OnDestroy {
12
9
  protected _task: TaskMagicService;
13
10
  protected element: ElementRef;
@@ -15,104 +12,29 @@ export declare class MagicDirective implements OnInit, OnDestroy {
15
12
  protected vcRef: ViewContainerRef;
16
13
  protected magicRow: RowMagicDirective;
17
14
  set magic(val: any);
18
- /**
19
- * This flag is used when we only want to register to events, but do not want to execute commands sent from server
20
- */
21
15
  set eventsOnly(val: any);
22
- /**
23
- * Row id of the control, for when it is on a table
24
- */
25
16
  rowId: string;
26
- /**
27
- *
28
- */
29
- /**
30
- * The HTML element connected to this directive
31
- */
32
17
  protected htmlElement: HTMLElement;
33
- /**
34
- * Magic's component handling this control
35
- */
36
18
  component: TaskBaseMagicComponent;
37
- /**
38
- * Collection of event handlers for this element
39
- */
40
19
  private eventHandlers;
41
- /**
42
- * Id of this element
43
- */
44
20
  id: string;
45
- /**
46
- * @ignore
47
- */
48
21
  protected selector: string;
49
- /**
50
- * @ignore
51
- */
52
22
  subscribeRefreshDom: Subscription;
53
23
  private focusUnlistener;
54
24
  eventsOnlyVal: boolean;
55
25
  static opened: boolean;
56
26
  subscribeInteractiveCommands: Subscription;
57
- /**
58
- *
59
- * @param _task The task service
60
- * @param element The element for which the directive is applied
61
- * @param renderer Renderer for the element
62
- * @param vcRef
63
- * @param magicRow
64
- */
65
27
  constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, magicRow: RowMagicDirective);
66
- /**
67
- * Get the task service
68
- * @returns
69
- */
70
28
  get task(): TaskMagicService;
71
- /**
72
- * Register to the events this element may need to handle
73
- */
74
29
  protected regEvents(): void;
75
- /**
76
- * Handle focus event
77
- */
78
30
  private OnFocus;
79
- /**
80
- * Is the command's element the same as this directive's element
81
- * @param command
82
- * @returns true/false
83
- */
84
31
  private IsSameElement;
85
- /**
86
- * Is the command's element the same as this directive's component
87
- * @param command
88
- * @returns true/false
89
- */
90
32
  private IsSameComponent;
91
- /**
92
- * @ignore
93
- */
94
33
  private regUpdatesUI;
95
- /**
96
- * Initializes this object
97
- */
98
34
  ngOnInit(): void;
99
- /**
100
- * Handles the commands received from the Magic WebClient engine
101
- * @param command
102
- */
103
35
  handleCommand(command: GuiCommand): void;
104
- /**
105
- * handle the interactive commands like CallJS
106
- */
107
36
  handleInteractiveCommands(command: GuiInteractive): void;
108
- /**
109
- * Handle the Magic set-property command
110
- * @param command
111
- */
112
37
  handleSetProperty(command: GuiCommand): void;
113
- /**
114
- * Cleanup
115
- */
116
38
  ngOnDestroy(): void;
117
39
  static ɵfac: i0.ɵɵFactoryDef<MagicDirective, [null, null, null, null, { optional: true; }]>;
118
40
  static ɵdir: i0.ɵɵDirectiveDefWithMeta<MagicDirective, "[magic]", never, { "magic": "magic"; "eventsOnly": "eventsOnly"; "rowId": "rowId"; }, {}, never>;
@@ -1,8 +1,5 @@
1
1
  import { ComponentFactoryResolver, ViewContainerRef } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * Directive for setting ViewContainerRef on element
5
- */
6
3
  export declare class MagicViewContainerRef {
7
4
  private vcRef;
8
5
  private resolver;
@@ -5,61 +5,21 @@ import { MagicDirective } from "./magic.directive";
5
5
  import { AbstractControl } from "@angular/forms";
6
6
  import { PIC } from "@magic-xpa/gui";
7
7
  import * as i0 from "@angular/core";
8
- /**
9
- * Perform Magic validation on input controls which hold alphanumeric strings
10
- */
11
8
  export declare class MgformatMagicDirective {
12
9
  protected magicDir: MagicDirective;
13
10
  protected _task: TaskMagicService;
14
- /**
15
- * @ignore
16
- */
17
11
  constructor(magicDir: MagicDirective, _task: TaskMagicService);
18
12
  ngAfterViewInit(): void;
19
- /**
20
- * @ignore
21
- */
22
- /**
23
- * This can be used to set pattern
24
- * On input, verifies the input matches the required mask
25
- */
26
13
  onFocusEvent($event: any): void;
27
- /**
28
- * @ignore
29
- */
30
14
  onChangeEvent($event: any): void;
31
15
  formatDate(pic: PIC): void;
32
- /**
33
- * @ignore
34
- */
35
16
  formatAlphaUnicode(control: AbstractControl): void;
36
- /**
37
- * @ignore
38
- */
39
17
  formatBoolean(control: AbstractControl): void;
40
- /**
41
- * @ignore
42
- */
43
18
  generatePattern(attribute: StorageAttribute, pic: PIC): string;
44
- /**
45
- * @ignore
46
- */
47
19
  generatePatternForNumber(pic: PIC): string;
48
- /**
49
- * @ignore
50
- */
51
20
  isPatternGenerationNeeded(attr: StorageAttribute, pic: PIC): boolean;
52
- /**
53
- * @ignore
54
- */
55
21
  generatePatternForAlpha(pic: PIC): string;
56
- /**
57
- * @ignore
58
- */
59
22
  getDirectiveCount(mask: string, idx: number, pattern: string, changeInPattern: RefParam<boolean>): number;
60
- /**
61
- * @ignore
62
- */
63
23
  IsPatternMatches(mask: string, pattern: string): boolean;
64
24
  static ɵfac: i0.ɵɵFactoryDef<MgformatMagicDirective, never>;
65
25
  static ɵdir: i0.ɵɵDirectiveDefWithMeta<MgformatMagicDirective, "[mgFormat]", never, {}, {}, never>;
@@ -2,31 +2,15 @@ import { ViewContainerRef } from '@angular/core';
2
2
  import { FormControl, Validator } from '@angular/forms';
3
3
  import { TaskMagicService } from '../../services/task.magics.service';
4
4
  import * as i0 from "@angular/core";
5
- /**
6
- * Validates the field range.
7
- */
8
5
  export declare class RangeValidatorMagicDirective implements Validator {
9
6
  protected _task: TaskMagicService;
10
7
  protected vcRef: ViewContainerRef;
11
- /**
12
- *
13
- * @param _task The task service
14
- * @param vcRef
15
- */
16
8
  constructor(_task: TaskMagicService, vcRef: ViewContainerRef);
17
- /**
18
- * Validation method
19
- * @param c FormControl to validate
20
- * @returns If validation fails, return error message, else returns null
21
- */
22
9
  validate(c: FormControl): {
23
10
  rangevalidator: {
24
11
  errorMsg: string;
25
12
  };
26
13
  };
27
- /**
28
- * @ignore
29
- */
30
14
  getControlName(c: FormControl): string | null;
31
15
  static ɵfac: i0.ɵɵFactoryDef<RangeValidatorMagicDirective, never>;
32
16
  static ɵdir: i0.ɵɵDirectiveDefWithMeta<RangeValidatorMagicDirective, "[rangevalidator] ", never, {}, {}, never>;
@@ -1,25 +1,6 @@
1
1
  import { Styles } from "@magic-xpa/gui";
2
- /**
3
- * Displays a message-box
4
- */
5
2
  export declare class confirmationBox {
6
- /**
7
- * @ignore
8
- */
9
3
  static isConfirmBox(style: Styles): Boolean;
10
- /**
11
- * Converts the result from the HTML window to the expected result type
12
- * @param style Result received from HTML window
13
- * @param okWasPressed Was the "OK" pressed
14
- * @returns MessageBox result type
15
- */
16
4
  static convertToExcpectedResultBox(style: Styles, okWasPressed: Boolean): Styles;
17
- /**
18
- * Show a message box as an HTML window
19
- * @param title Title of the message box
20
- * @param message Message that will be display in the message box
21
- * @param style Style that include buttons \ Icons
22
- * @returns MessageBox result
23
- */
24
5
  static showConfirmationBox(title: string, message: string, style: Styles): boolean;
25
6
  }
@@ -1,14 +1,5 @@
1
1
  export declare abstract class BaseMagicOverlayContainer {
2
- /**
3
- *
4
- */
5
2
  abstract ModalComp: any;
6
- /**
7
- *
8
- */
9
3
  abstract ModalCompParameters: any;
10
- /**
11
- *
12
- */
13
4
  abstract onClose: any;
14
5
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * @ignore
3
- */
4
1
  export declare class ModalFormDefinition {
5
2
  taskId: string;
6
3
  comp: any;
@@ -1,37 +1,10 @@
1
- /**
2
- * Describes the behavior of a modal window
3
- */
4
1
  export interface MagicModalInterface {
5
- /**
6
- * Returns the X coordinate of the modal window
7
- */
8
2
  X(): any;
9
- /**
10
- * Returns the Y coordinate of the modal window
11
- */
12
3
  Y(): any;
13
- /**
14
- * Returns the width of modal window
15
- */
16
4
  Width(): string;
17
- /**
18
- * Returns the height of modal window
19
- */
20
5
  Height(): string;
21
- /**
22
- * Is the modal window centered relatively to the main window
23
- */
24
6
  IsCenteredToWindow(): any;
25
- /**
26
- * Returns the name of the form - title of the modal window
27
- */
28
7
  FormName(): any;
29
- /**
30
- * Should the title bar be displayed
31
- */
32
8
  ShowTitleBar(): any;
33
- /**
34
- * Should the modal window close when the user clicks on the background
35
- */
36
9
  ShouldCloseOnBackgroundClick(): any;
37
10
  }
@@ -8,37 +8,17 @@ export declare class MagicOverlayContainerWrapper implements IMagicViewContainer
8
8
  private injector;
9
9
  private componentFactoryResolver;
10
10
  private changeDetectorRef;
11
- /**
12
- *
13
- */
14
11
  Component: any;
15
- /**
16
- *
17
- */
18
12
  Parameters: any;
19
13
  private OverlayTypeParam;
20
14
  private onClose;
21
- /**
22
- * HTML to be displayed in the modal window
23
- */
24
15
  overlayContentViewContainerRef: ViewContainerRef;
25
16
  overlayContainerWrapperElementRef: ElementRef;
26
- /**
27
- * @ignore
28
- * contais data of allowed base components to use
29
- */
30
17
  static allowedBaseComps: Map<number, {
31
18
  comp: any;
32
19
  error: string;
33
20
  }>;
34
- /**
35
- *
36
- * @param componentFactoryResolver
37
- */
38
21
  constructor(componentListMagicService: ComponentListMagicService, loader: NgModuleFactoryLoader, injector: Injector, componentFactoryResolver: ComponentFactoryResolver, changeDetectorRef: ChangeDetectorRef);
39
- /**
40
- *
41
- */
42
22
  ngOnInit(): void;
43
23
  private loadComponent;
44
24
  setViewContainerRef(vcRef: ViewContainerRef): void;
@@ -2,75 +2,24 @@ import { ComponentFactoryResolver, ElementRef, EventEmitter, Injector, OnInit, V
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
- */
8
5
  export declare class MagicOverlayContainer extends BaseMagicOverlayContainer implements OnInit, IMagicViewContainerRef {
9
6
  private injector;
10
7
  private componentFactoryResolver;
11
- /**
12
- * HTML to be displayed in the modal window
13
- */
14
8
  modalbodyViewContainerRef: ViewContainerRef;
15
- /**
16
- * Header of the modal window
17
- */
18
9
  headerElementRef: ElementRef;
19
- /**
20
- * Foreground of the modal window
21
- */
22
10
  foregroundElementRef: ElementRef;
23
- /**
24
- *
25
- */
26
11
  ModalComp: any;
27
- /**
28
- *
29
- */
30
12
  ModalCompParameters: any;
31
13
  onClose: EventEmitter<void>;
32
- /**
33
- *
34
- */
35
14
  private componentRef;
36
- /**
37
- *
38
- * @param injector
39
- * @param componentFactoryResolver
40
- */
41
15
  constructor(injector: Injector, componentFactoryResolver: ComponentFactoryResolver);
42
- /**
43
- *
44
- */
45
16
  ngOnInit(): void;
46
17
  setViewContainerRef(vcRef: ViewContainerRef): void;
47
- /**
48
- * Returns the form name
49
- * @returns
50
- */
51
18
  getText(): any;
52
- /**
53
- * Returns CSS styles for the window
54
- * @returns
55
- */
56
19
  getStyle(): {};
57
- /**
58
- * Returns the CSS styles for the client area
59
- * @returns
60
- */
61
20
  getClientAreaStyles(): {};
62
- /**
63
- * Should the title bar be displayed
64
- * @returns
65
- */
66
21
  getShowTitleBar(): any;
67
- /**
68
- *
69
- */
70
22
  OnClose(): void;
71
- /**
72
- * Handles click in the background window
73
- */
74
23
  OnBackgroundClick(): void;
75
24
  static ɵfac: i0.ɵɵFactoryDef<MagicOverlayContainer, never>;
76
25
  static ɵcmp: i0.ɵɵComponentDefWithMeta<MagicOverlayContainer, "app-magic-overlay-container", never, { "ModalComp": "ModalComp"; "ModalCompParameters": "ModalCompParameters"; }, { "onClose": "onClose"; }, never, never>;
@@ -9,9 +9,6 @@ import { IMagicViewContainerRef } from '../..';
9
9
  import { CommandsCollectorMagicService } from '../services/commands-collector.magic.service';
10
10
  import { HttpClient } from '@angular/common/http';
11
11
  import * as i0 from "@angular/core";
12
- /**
13
- * Root Magic component
14
- */
15
12
  export declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerRef {
16
13
  protected engineMagicService: EngineMagicService;
17
14
  protected componentList: ComponentListMagicService;
@@ -21,61 +18,22 @@ export declare class MagicShellComponent implements AfterViewInit, IMagicViewCon
21
18
  private httpClient;
22
19
  private pendingCommandsCollector;
23
20
  exitMagicService: ExitMagicService;
24
- /**
25
- * Root component to be displayed in the window
26
- */
27
21
  RootComponent: Component;
28
- /**
29
- * parameters for the Root Component
30
- */
31
22
  RootComponentParameters: any;
32
23
  overlayWindowsContainerViewRef: ViewContainerRef;
33
24
  rootMagicElementRef: ElementRef;
34
25
  SpinnerTemplate: TemplateRef<any>;
35
26
  showSpinner: boolean;
36
27
  magicEngineTerminated: boolean;
37
- /**
38
- *
39
- * @param magic Magic's service
40
- * @param componentList Magic component list
41
- * @param changeDetectorRef Changes detector
42
- * @param titleService Title setting service
43
- * @param httpClient The native httpClient instance
44
- * @param exitMagicService Magic exit service
45
- */
46
28
  constructor(engineMagicService: EngineMagicService, componentList: ComponentListMagicService, changeDetectorRef: ChangeDetectorRef, titleService: Title, overlayWindowService: OverlayWindowService, httpClient: HttpClient, pendingCommandsCollector: CommandsCollectorMagicService, exitMagicService: ExitMagicService);
47
- /**
48
- * Before-unload event listener
49
- * @param event
50
- */
51
29
  onBeforeUnload(event: any): string;
52
30
  onUnload(event: any): void;
53
31
  ngAfterViewInit(): void;
54
32
  setViewContainerRef(vcRef: ViewContainerRef): void;
55
- /**
56
- * Initialization of Magic mechanisms
57
- */
58
33
  initialize(): void;
59
- /**
60
- * Set the title
61
- */
62
34
  setTitle(): void;
63
- /**
64
- * Set the component according to requested form
65
- * @param formName Name of the form to open
66
- * @param taskId Id of opening task
67
- * @param taskDescription TODO
68
- * @param isModal whether modal window is being opened
69
- */
70
35
  private setComponent;
71
- /**
72
- * @ignore
73
- */
74
36
  registerUICommands(): void;
75
- /**
76
- * Execute commands received from the Magic WebClient engine
77
- * @param command
78
- */
79
37
  executeCommand(command: GuiCommand): void;
80
38
  static ɵfac: i0.ɵɵFactoryDef<MagicShellComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
81
39
  static ɵcmp: i0.ɵɵComponentDefWithMeta<MagicShellComponent, "magic-root", never, { "SpinnerTemplate": "SpinnerTemplate"; }, {}, never, never>;
@@ -2,37 +2,18 @@ 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
- */
8
5
  export declare class ErrorMagicComponent {
9
6
  protected _task: TaskMagicService;
10
7
  mgService: AccessorMagicService;
11
8
  protected changeDetectorRef: ChangeDetectorRef;
12
- /**
13
- * @ignore
14
- */
15
9
  id: string;
16
10
  rowId: string;
17
- /**
18
- * @ignore
19
- */
20
11
  set magic(val: any);
21
12
  set rowId1(val: any);
22
13
  defaultDisplay: boolean;
23
14
  set CustomContent(innerComponent: ElementRef);
24
- /**
25
- * @ignore
26
- */
27
15
  constructor(_task: TaskMagicService, mgService: AccessorMagicService, changeDetectorRef: ChangeDetectorRef);
28
- /**
29
- * returns true if the html element has no children
30
- * @param element
31
- */
32
16
  isEmpty(element: HTMLElement): boolean;
33
- /**
34
- * @ignore
35
- */
36
17
  HasErrors(id: string): boolean;
37
18
  static ɵfac: i0.ɵɵFactoryDef<ErrorMagicComponent, never>;
38
19
  static ɵcmp: i0.ɵɵComponentDefWithMeta<ErrorMagicComponent, "mgError", never, { "magic": "magic"; "rowId1": "rowId"; }, {}, never, ["*"]>;
@@ -2,15 +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
- */
8
5
  export declare class Constants {
9
6
  static readonly DATE_FMT = "dd/MMM/yyyy";
10
7
  }
11
- /**
12
- * @ignore
13
- */
14
8
  export declare class DateMagicPipe extends DatePipe implements PipeTransform {
15
9
  protected _task: TaskMagicService;
16
10
  constructor(_task: TaskMagicService);