@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,5 +1,2 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
1
  /// <amd-module name="@magic-xpa/angular" />
5
2
  export * from './index';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@magic-xpa/angular",
3
- "version": "4.800.0-dev480.20",
3
+ "version": "4.800.0-dev480.203",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "dependencies": {
6
- "@magic-xpa/engine": "4.800.0-dev480.20",
7
- "@magic-xpa/angular-material-core": "4.800.0-dev480.20",
6
+ "@magic-xpa/engine": "4.800.0-dev480.203",
7
+ "@magic-xpa/angular-material-core": "4.800.0-dev480.203",
8
8
  "tslib": "^2.0.0"
9
9
  },
10
10
  "peerDependencies": {
@@ -1,8 +1,5 @@
1
1
  import { StorageAttribute } from "@magic-xpa/utils";
2
2
  import { HtmlProperties, CustomValidator } from "@magic-xpa/gui";
3
- /**
4
- * @ignore
5
- */
6
3
  export declare class ControlMetadata {
7
4
  controlType: string;
8
5
  dataType: StorageAttribute;
@@ -17,9 +14,6 @@ export declare class ControlMetadata {
17
14
  setClass(key: any, value: any): void;
18
15
  setStyle(key: any, value: any): void;
19
16
  }
20
- /**
21
- * @ignore
22
- */
23
17
  export declare class ControlsMetadata {
24
18
  values: Map<string, string>;
25
19
  ControlsProperties: Map<string, ControlMetadata>;
@@ -33,9 +27,6 @@ export declare class ControlsMetadata {
33
27
  getProperty(controlId: string, prop: HtmlProperties): any;
34
28
  getValue(controlName: string): string;
35
29
  }
36
- /**
37
- * @ignore
38
- */
39
30
  export declare class Records {
40
31
  data: Map<number, ControlsMetadata>;
41
32
  list: ControlsMetadata[];
@@ -54,10 +45,6 @@ export declare class Records {
54
45
  isRowInRowEditing(guiRowId: string): boolean;
55
46
  update(obj: any): void;
56
47
  updateSize(len: number): void;
57
- /**
58
- * crears data for the first record
59
- * @param template
60
- */
61
48
  clearFirstTableRecord(template: {
62
49
  [id: string]: string;
63
50
  }): void;
@@ -67,9 +54,6 @@ export declare class Records {
67
54
  setGuiTopIndex(topIndex: number): void;
68
55
  getGuiTopIndex(): number;
69
56
  }
70
- /**
71
- * @ignore
72
- */
73
57
  export declare enum HtmlClasses {
74
58
  Color = "color",
75
59
  font = "font",
@@ -1,14 +1,8 @@
1
1
  import { ViewContainerRef } from "@angular/core";
2
- /**
3
- * @ignore
4
- */
5
2
  export interface SubformDefinition {
6
3
  formName: string;
7
4
  parameters: any;
8
5
  }
9
- /**
10
- * @ignore
11
- */
12
6
  export interface RouteDefinition {
13
7
  formName: string;
14
8
  parameters: any;
@@ -37,9 +37,6 @@ import * as i30 from "@angular/forms";
37
37
  import * as i31 from "@angular/router";
38
38
  import * as i32 from "ng-dynamic-component";
39
39
  import * as i33 from "@angular/common/http";
40
- /**
41
- * @ignore
42
- */
43
40
  export declare class MagicModule {
44
41
  static forRoot(): i0.ModuleWithProviders<MagicModule>;
45
42
  static ɵmod: i0.ɵɵNgModuleDefWithMeta<MagicModule, [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef], [typeof i29.CommonModule, typeof i30.FormsModule, typeof i30.ReactiveFormsModule, typeof i31.RouterModule, typeof i32.DynamicModule, typeof i33.HttpClientModule], [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef]>;
@@ -5,9 +5,6 @@ import { OverlayContainerMagicProvider } from "./overlay.conainer.magic.provider
5
5
  import { ConfirmationComponentsMagicProvider } from "./confirmation.components.magic.provider";
6
6
  import { Styles } from "@magic-xpa/gui";
7
7
  import * as i0 from "@angular/core";
8
- /**
9
- * Service managing overlay windows
10
- */
11
8
  export declare class OverlayWindowService {
12
9
  private componentFactoryResolver;
13
10
  protected componentList: ComponentListMagicService;
@@ -20,24 +17,8 @@ export declare class OverlayWindowService {
20
17
  init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element): void;
21
18
  open(formName: string, taskId: string, taskDescription: string): void;
22
19
  close(commandStr: string): void;
23
- /**
24
- * Open Confirmation box
25
- * @param title title of the box
26
- * @param msg message
27
- * @param style Magic style
28
- */
29
20
  openConfirmationBox(title: string, msg: string, style: Styles): void;
30
- /**
31
- * This method is called on close of the confirmation
32
- * @param style Magic style
33
- * @param result
34
- */
35
21
  finishConfirmation(style: Styles, result: boolean): void;
36
- /**
37
- * creates a modal component. Can be used for overlay, message box or confirmation box
38
- * @param parameters component's parameters
39
- * @param component components to create
40
- */
41
22
  private createModalComponent;
42
23
  static ɵfac: i0.ɵɵFactoryDef<OverlayWindowService, never>;
43
24
  static ɵprov: i0.ɵɵInjectableDef<OverlayWindowService>;
@@ -1,6 +1,3 @@
1
- /**
2
- * @ignore
3
- */
4
1
  export declare class StylesMapManager {
5
2
  static StylesMap: Map<string, any>;
6
3
  static MagicPropertyToHtmlAttributeMap: Map<string, string>;
@@ -2,254 +2,61 @@ import { TaskMagicService } from './task.magics.service';
2
2
  import { HtmlProperties } from '@magic-xpa/gui';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import * as i0 from "@angular/core";
5
- /**
6
- * Provides the UI with values calculated by the Magic WebClient
7
- */
8
5
  export declare class AccessorMagicService {
9
6
  protected task: TaskMagicService;
10
7
  Logger: any;
11
- /**
12
- * @ignore
13
- */
14
8
  constructor(task: TaskMagicService);
15
- /**
16
- * Checks if the control is read-only
17
- * @param controlId Id of control
18
- * @returns Is the control not read-only
19
- */
20
9
  checkIsReadOnly(controlId: string): boolean;
21
- /**
22
- * Returns the text of the control
23
- * @param controlId Id of control
24
- * @param rowId Id of row, if applicable
25
- * @returns The text of the control
26
- */
27
10
  getText(controlId: string, rowId?: string): string;
28
- /**
29
- * Gets the text of the tab page
30
- * @param controlId Id of control
31
- * @param layer Id of tabpage
32
- * @returns Text of tabpage
33
- */
34
11
  getTabpageText(controlId: string, layer: number): string;
35
- /**
36
- * Gets the image defined for the control
37
- * @param controlId Id of control
38
- * @param rowId Id of row, if applicable
39
- * @returns Image set on control
40
- */
41
12
  getImage(controlId: string, rowId?: string): string;
42
- /**
43
- * Returns whether an image is set for this control
44
- * @param controlId Id of control
45
- * @param rowId Id of row, if applicable
46
- * @returns returns true if control has an image set on it
47
- */
48
13
  isImageExists(controlId: string, rowId?: string): boolean;
49
- /**
50
- * Gets the CSS classes set on the control
51
- * @param controlId Id of control
52
- * @param rowId Id of row, if applicable
53
- * @returns The classes for this control
54
- */
55
14
  getClasses(controlId: string, rowId?: string): string;
56
- /**
57
- * Gets the CSS styles set on the control
58
- * @param controlId Id of control
59
- * @param styleName NAme of style requested
60
- * @param rowId Id of row, if applicable
61
- * @returns The style set on the control
62
- */
63
15
  getStyle(controlId: string, styleName: string, rowId?: string): string;
64
- /**
65
- * Returns whether a control is visible or not
66
- * @param controlId Id of control
67
- * @param rowId Id of row, if applicable
68
- * @returns Is the control visible or hidden
69
- */
70
16
  getVisible(controlId: string, rowId?: string): string;
71
- /**
72
- * Returns object representing numeric picture
73
- * @param picture string which is defined in magic
74
- * @returns object representing numeric picture
75
- */
76
17
  getNumericPicture(picture: string): any;
77
- /**
78
- * Returns whether a control should have the "required" attribute set on it
79
- * @param controlId Id of control
80
- * @param rowId Id of row, if applicable
81
- * @returns
82
- */
83
18
  getMustInput(controlId: string, rowId?: string): string;
84
- /**
85
- * Returns whether a control is disabled
86
- * @param controlId Id of control
87
- * @param rowId Id of row, if applicable
88
- * @returns
89
- */
90
19
  isDisabled(controlId: string, rowId?: string): any;
91
- /**
92
- * @ignore
93
- */
94
20
  getProperty(controlId: string, prop: HtmlProperties, rowId?: string): any;
95
- /**
96
- * Returns the title (tooltip) text of the control
97
- * @param controlId Id of control
98
- * @param rowId Id of row, if applicable
99
- * @returns
100
- */
101
21
  getTitle(controlId: string, rowId?: string): string;
102
- /**
103
- * Returns the title (tooltip) text of the control
104
- * @param controlId Id of control
105
- * @param rowId Id of row, if applicable
106
- * @returns
107
- */
108
22
  getZoomButtonTitle(controlId: string, rowId?: string): string;
109
- /**
110
- * Gets the selection control's selected value
111
- * @param controlId Id of control
112
- * @param rowId Id of row, if applicable
113
- * @returns
114
- */
115
23
  getSelectedValue(controlId: string, rowId?: string): string;
116
- /**
117
- * Gets the place-holder text of the control
118
- * @param controlId Id of control
119
- * @param rowId Id of row, if applicable
120
- * @returns
121
- */
122
24
  getPlaceholder(controlId: string, rowId?: string): string;
123
- /**
124
- * Returns a type for input controls - should the control be a simple text or a password control
125
- * @param controlId Id of control
126
- * @param rowId Id of row, if applicable
127
- * @returns
128
- */
129
25
  getType(controlId: string, rowId?: string): string;
130
- /**
131
- * Returns the tab-index of the control
132
- * @param controlId Id of control
133
- * @param rowId Id of row, if applicable
134
- * @returns
135
- */
136
26
  getTabIndex(controlId: string, rowId?: string): number;
137
- /**
138
- * Returns the value of the control
139
- * @param controlId Id of control
140
- * @param rowId Id of row, if applicable
141
- * @returns
142
- */
143
27
  getValue(controlId: string, rowId?: string): string;
144
- /**
145
- * Returns the Picture of the control
146
- * @param controlId Id of control
147
- * @param rowId Id of row, if applicable
148
- * @returns
149
- */
28
+ getFormattedValue(controlId: string, rowId?: string): string;
150
29
  getPicture(controlId: string, rowId?: string): string;
151
- /**
152
- * Returns the custom (user) properties of the control
153
- * @param controlId Id of control
154
- * @param propertyName Name of requested property
155
- * @param rowId Id of row, if applicable
156
- * @returns
157
- */
158
30
  getCustomProperty(controlId: string, propertyNameOrRowID?: string, rowId?: string): any;
159
31
  getCustomProperty_1(controlId: string, propertyName: string, rowId?: string): any;
160
- /**
161
- * Gets the values of the items of a selection control
162
- * @param id Id of control
163
- * @param rowId Id of row, if applicable
164
- * @returns
165
- */
166
- getItemListValues(id: string, rowId?: string): string;
167
- /**
168
- * Gets the display value of the item from items of a selection control
169
- * @param id Id of control
170
- * @param rowId Id of row, if applicable
171
- * @returns
172
- */
32
+ getItemListValues(id: string, rowId?: string): Array<{
33
+ index: number;
34
+ displayValue: string;
35
+ }>;
36
+ getFilteredList(controlId: string, rowId?: string): Array<{
37
+ index: number;
38
+ displayValue: string;
39
+ }>;
173
40
  getDisplayValue(id: any, rowId?: any): string;
174
- /**
175
- * Returns whether a tab page is selected or not
176
- * @param index of current option in iterarotr
177
- * @param control Id of list control
178
- * @returns
179
- */ isOptionSelected(index: any, controlId: any): boolean;
180
- /**
181
- * Returns whether a tab page is selected or not - used for the tab buttons
182
- * @param controlId Id of control
183
- * @param layer Id of the tab page
184
- * @returns
185
- */ isTabPageSelected(controlId: string, layer: number): boolean;
186
- /**
187
- * Returns whether a tab page layer is selected or not - used for the div which represents the tab page
188
- * @param controlId Id of control
189
- * @param layer Id of the tab page
190
- * @returns
191
- */ isTabPageLayerSelected(controlId: string, layer: number): boolean;
192
- /**
193
- * Returns the index of the selected tab page
194
- * @param controlId Id of control
195
- * @returns
196
- */
41
+ isOptionSelected(index: any, controlId: any): boolean;
42
+ isTabPageSelected(controlId: string, layer: number): boolean;
43
+ isTabPageLayerSelected(controlId: string, layer: number): boolean;
197
44
  getTabSelectedIndex(controlId: string): any;
198
- /**
199
- * @ignore
200
- */
201
45
  ifRowCreated(row: any): boolean;
202
- /**
203
- * @ignore
204
- */
205
46
  getFormGroupByRow(id: string): FormGroup;
206
- /**
207
- * @ignore
208
- */
209
47
  isRowSelected(controlId: any, rowId?: any): boolean;
210
- /**
211
- * Returns whether a row is in edit state
212
- * @param row
213
- */
214
48
  isRowInRowEditing(row?: any): boolean;
215
- /**
216
- * Returns whether a row is in edit state, use this method while control outside table control
217
- * @param row
218
- */
219
49
  isCurrentInRowEditing(): boolean;
220
- /**
221
- * @ignore
222
- */
223
50
  guiTopIndex(): number;
224
- /**
225
- * @ignore
226
- */
227
51
  getErrMsg(id: string, rowId: string): string;
228
- /**
229
- * Sets a user-supplied value to the specified control
230
- * @param controlName
231
- * @param value
232
- * @param refreshDisplay
233
- */
234
52
  setValueToControl(controlName: string, value: any, refreshDisplay?: boolean): void;
235
- /**
236
- * @ignore
237
- */
238
53
  isDataviewEmpty(): boolean;
239
- /**
240
- * simulates a click event on the specified control, for the Magic engine
241
- * @param controlName
242
- * @param rowId
243
- */
244
54
  simulateClick(controlName: string, rowId?: number): void;
245
- /**
246
- * Return Boolean TRUE if user logged in Else it will return FALSE
247
- */
248
55
  isLoggedIn(): boolean;
249
- /**
250
- * Returns JS object containing the records with all table fields.
251
- */
252
56
  GetFormRecords(): any;
57
+ SetCookie(name: string, value: any, expires?: Date, path?: any, domain?: any, secure?: any, sameSite?: any): void;
58
+ GetCookie(name: string): any;
59
+ DeleteCookie(name: string): any;
253
60
  static ɵfac: i0.ɵɵFactoryDef<AccessorMagicService, never>;
254
61
  static ɵprov: i0.ɵɵInjectableDef<AccessorMagicService>;
255
62
  }
@@ -1,9 +1,6 @@
1
1
  import { EngineMagicService } from './engine.magic.service';
2
2
  import { GuiCommand } from '@magic-xpa/gui';
3
3
  import * as i0 from "@angular/core";
4
- /**
5
- * @ignore
6
- */
7
4
  export declare class CommandsCollectorMagicService {
8
5
  protected magic: EngineMagicService;
9
6
  private count;
@@ -7,41 +7,14 @@ export interface ModuleData {
7
7
  moduleName: string;
8
8
  modulePath: string;
9
9
  }
10
- /**
11
- * Manages the list of components in a project, and the project title
12
- */
13
10
  export declare class ComponentListMagicService {
14
- /**
15
- * Map of project components
16
- */
17
11
  components: Map<string, ComponentData>;
18
- /**
19
- * Map of project dialogs
20
- */
21
12
  dialogs: Map<string, any>;
22
13
  lazyLoadModulesMap: any;
23
14
  getData(name: string, mustHaveData: boolean): ComponentData;
24
- /**
25
- * Return a component according to name
26
- * @param name Name of requested component
27
- * @returns The requested component
28
- */
29
15
  getComponent(name: string, mustHaveData?: boolean): any;
30
16
  addComponents(componentList: any, modulRef?: NgModuleRef<any>): void;
31
- /**
32
- * Return a component according to name
33
- * @param name Name of requested component
34
- * @returns The requested component
35
- */
36
17
  getModuleRef(name: string): NgModuleRef<any>;
37
- /**
38
- * Return the lazy load module details of the specified component
39
- * @param name: Name of requested component
40
- * @returns: lazy load module details
41
- */
42
18
  getLazyLoadModuleData(name: string): ModuleData;
43
- /**
44
- * Project title
45
- */
46
19
  title: string;
47
20
  }
@@ -1,23 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
- /**
3
- * Service managing alert and confirmation windows
4
- * This is Magic's default provider
5
- */
6
2
  export declare class ConfirmationComponentsMagicProvider {
7
- /**
8
- * Return true when use default javascript alert and confirmation or return false to provide custom components
9
- * @returns true is we want to use default javascript alert and confirmation
10
- */
11
3
  showDefaultConfirmations(): boolean;
12
- /**
13
- * Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
14
- * @returns component that will replace javascript Alert
15
- */
16
4
  getAlertComponent(): any;
17
- /**
18
- * Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
19
- * @returns component that will replace javascript confirmation box
20
- */
21
5
  getConfirmtionComponent(): any;
22
6
  static ɵfac: i0.ɵɵFactoryDef<ConfirmationComponentsMagicProvider, never>;
23
7
  static ɵprov: i0.ɵɵInjectableDef<ConfirmationComponentsMagicProvider>;
@@ -3,9 +3,6 @@ import { IGuiEvent, MagicBridge } from "@magic-xpa/engine";
3
3
  import { GuiCommand, GuiInteractive } from "@magic-xpa/gui";
4
4
  import { HttpClient } from "@angular/common/http";
5
5
  import * as i0 from "@angular/core";
6
- /**
7
- * @ignore
8
- */
9
6
  export declare class EngineMagicService {
10
7
  magicBridge: typeof MagicBridge;
11
8
  isStub: boolean;
@@ -17,6 +14,7 @@ export declare class EngineMagicService {
17
14
  insertEvent(guiEvent: IGuiEvent): void;
18
15
  GetRangedValue(taskId: string, controlName: string, value: string): string;
19
16
  GetControlPictureMask(taskId: string, controlName: string): any;
17
+ GetFormattedValue(taskId: string, controlName: string, value: any): any;
20
18
  ValidateControlValue(taskId: string, controlName: string, value: any): string;
21
19
  GetFldRanges(taskId: string, controlName: string): string;
22
20
  saveData(data: string): void;
@@ -1,11 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- /**
3
- * This service supports custom actions on magic exit
4
- */
5
2
  export declare class ExitMagicService {
6
- /**
7
- * Override this method to implement custom logic on magic exit
8
- */
9
3
  exitMagic(): void;
10
4
  static ɵfac: i0.ɵɵFactoryDef<ExitMagicService, never>;
11
5
  static ɵprov: i0.ɵɵInjectableDef<ExitMagicService>;
@@ -39,9 +39,6 @@ export declare const matDateProviders: ({
39
39
  };
40
40
  useClass?: undefined;
41
41
  })[];
42
- /**
43
- * Magic service providers
44
- */
45
42
  export declare const basicMagicProviders: (typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof TaskMagicService | typeof MagicServices | ({
46
43
  provide: typeof DateAdapter;
47
44
  useClass: typeof MgDateAdapter;
@@ -4,18 +4,12 @@ import { TaskMagicService } from "./task.magics.service";
4
4
  import { TitleMagicService } from "./title.magic.service";
5
5
  import { AccessorMagicService } from "./accessor.magic.service";
6
6
  import * as i0 from "@angular/core";
7
- /**
8
- * Central place for adding the Magic services
9
- */
10
7
  export declare class MagicServices {
11
8
  task: TaskMagicService;
12
9
  subformService: SubformMagicService;
13
10
  tableService: TableMagicService;
14
11
  titleService: TitleMagicService;
15
12
  mgAccessorService: AccessorMagicService;
16
- /**
17
- * @ignore
18
- */
19
13
  constructor(task: TaskMagicService, subformService: SubformMagicService, tableService: TableMagicService, titleService: TitleMagicService, mgAccessorService: AccessorMagicService);
20
14
  static ɵfac: i0.ɵɵFactoryDef<MagicServices, never>;
21
15
  static ɵprov: i0.ɵɵInjectableDef<MagicServices>;
@@ -1,9 +1,6 @@
1
1
  import { List } from '@magic-xpa/mscorelib';
2
2
  import { ISubformMagicService } from './ISubformMagicService';
3
3
  import * as i0 from "@angular/core";
4
- /**
5
- * @ignore
6
- */
7
4
  export declare class RouteCommand {
8
5
  callerMgSubformServiceRef: ISubformMagicService;
9
6
  routerOutletName: string;
@@ -11,9 +8,6 @@ export declare class RouteCommand {
11
8
  parameters: any;
12
9
  routeParams: List<any>;
13
10
  }
14
- /**
15
- * @ignore
16
- */
17
11
  export declare class RouterCommandsMagicService {
18
12
  private pendingRouteCommands;
19
13
  AddRouteCommand(routeCommand: RouteCommand): void;
@@ -1,4 +1,4 @@
1
- import { Component } from '@angular/core';
1
+ import { Component, Injector, NgModuleFactoryLoader } from '@angular/core';
2
2
  import { TaskMagicService } from './task.magics.service';
3
3
  import { List } from '@magic-xpa/mscorelib';
4
4
  import { ComponentListMagicService } from './component-list.magic.service';
@@ -9,9 +9,6 @@ import { RouteCommand, RouterCommandsMagicService } from '../services/router-com
9
9
  import { ISubformMagicService } from './ISubformMagicService';
10
10
  import { RouterContainerMagicComponent } from '../ui/router-container.magic.component';
11
11
  import * as i0 from "@angular/core";
12
- /**
13
- * Service for managing subforms and routing
14
- */
15
12
  export declare class SubformMagicService implements ISubformMagicService {
16
13
  private task;
17
14
  protected activatedRoute: ActivatedRoute;
@@ -19,6 +16,9 @@ export declare class SubformMagicService implements ISubformMagicService {
19
16
  protected pendingCommandsCollector: CommandsCollectorMagicService;
20
17
  protected router: Router;
21
18
  protected routerCommandsMagicService: RouterCommandsMagicService;
19
+ private componentListMagicService;
20
+ private loader;
21
+ private injector;
22
22
  subformsDict: {};
23
23
  routesDict: {
24
24
  [x: string]: string;
@@ -26,39 +26,14 @@ export declare class SubformMagicService implements ISubformMagicService {
26
26
  currentRouteDefinition: RouteDefinition;
27
27
  static currentCallerMgSubformServiceRef: any;
28
28
  static routerContainers: Array<RouterContainerMagicComponent>;
29
- constructor(task: TaskMagicService, activatedRoute: ActivatedRoute, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, router: Router, routerCommandsMagicService: RouterCommandsMagicService);
30
- /**
31
- * Finds and returns the component according to the subform name
32
- * @param subformName
33
- * @returns
34
- */
29
+ constructor(task: TaskMagicService, activatedRoute: ActivatedRoute, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, router: Router, routerCommandsMagicService: RouterCommandsMagicService, componentListMagicService: ComponentListMagicService, loader: NgModuleFactoryLoader, injector: Injector);
35
30
  mgGetComp(subformName: string): Component;
36
- /**
37
- * Returns the parameters of the subform
38
- * @param subformName
39
- * @returns
40
- */
41
31
  mgGetParameters(subformName: string): any;
42
- /**
43
- * @ignore
44
- */
45
32
  deleteSubformComp(subformControlName: string, formName: string): void;
46
- /**
47
- * @ignore
48
- */
49
33
  addSubformComp(subformControlName: string, formName: string, taskId: string, taskDescription: any, routerPath: string, params: List<any>, inDefaultOutlet: boolean): void;
50
- /**
51
- * Open the subform using a route command
52
- */
53
34
  ExecuteRouteCommand(routeCommand: RouteCommand): void;
54
35
  private PerformRouterNavigate;
55
- /**
56
- * @ignore
57
- */
58
36
  init(): void;
59
- /**
60
- * @ignore
61
- */
62
37
  refreshView(): void;
63
38
  static getRelativeRoute(sendActivatedRoute: ActivatedRoute): ActivatedRoute;
64
39
  static ɵfac: i0.ɵɵFactoryDef<SubformMagicService, never>;