@magic-xpa/angular 4.1200.0-dev4120.13 → 4.1200.0-dev4120.130

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 +1945 -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 +85 -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
@@ -10,6 +10,9 @@ import { ISubformMagicService } from './ISubformMagicService';
10
10
  import { RouterContainerMagicComponent } from '../ui/router-container.magic.component';
11
11
  import { MagicLazyLoaderService } from './magic.lazy.loader.service';
12
12
  import * as i0 from "@angular/core";
13
+ /**
14
+ * Service for managing subforms and routing
15
+ */
13
16
  export declare class SubformMagicService implements ISubformMagicService {
14
17
  private task;
15
18
  protected activatedRoute: ActivatedRoute;
@@ -29,13 +32,38 @@ export declare class SubformMagicService implements ISubformMagicService {
29
32
  static currentCallerMgSubformServiceRef: any;
30
33
  static routerContainers: Array<RouterContainerMagicComponent>;
31
34
  constructor(task: TaskMagicService, activatedRoute: ActivatedRoute, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, router: Router, routerCommandsMagicService: RouterCommandsMagicService, componentListMagicService: ComponentListMagicService, loader: MagicLazyLoaderService, injector: Injector, compiler: Compiler);
35
+ /**
36
+ * Finds and returns the component according to the subform name
37
+ * @param subformName
38
+ * @returns
39
+ */
32
40
  mgGetComp(subformName: string): Component;
41
+ /**
42
+ * Returns the parameters of the subform
43
+ * @param subformName
44
+ * @returns
45
+ */
33
46
  mgGetParameters(subformName: string): any;
47
+ /**
48
+ * @ignore
49
+ */
34
50
  deleteSubformComp(subformControlName: string, formName: string): void;
51
+ /**
52
+ * @ignore
53
+ */
35
54
  addSubformComp(subformControlName: string, formName: string, taskId: string, taskDescription: any, routerPath: string, params: List<any>, inDefaultOutlet: boolean): void;
55
+ /**
56
+ * Open the subform using a route command
57
+ */
36
58
  ExecuteRouteCommand(routeCommand: RouteCommand): void;
37
59
  private PerformRouterNavigate;
60
+ /**
61
+ * @ignore
62
+ */
38
63
  init(): void;
64
+ /**
65
+ * @ignore
66
+ */
39
67
  refreshView(): void;
40
68
  static getRelativeRoute(sendActivatedRoute: ActivatedRoute): ActivatedRoute;
41
69
  static ɵfac: i0.ɵɵFactoryDeclaration<SubformMagicService, never>;
@@ -1,29 +1,85 @@
1
1
  import { TaskMagicService } from "./task.magics.service";
2
2
  import { ComponentListMagicService } from "./component-list.magic.service";
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Implements various table-related functionalities
6
+ */
4
7
  export declare class TableMagicService {
5
8
  protected componentList: ComponentListMagicService;
6
9
  protected task: TaskMagicService;
7
10
  selectedItem: any;
8
11
  private chunkSize;
12
+ /**
13
+ *
14
+ * @param componentList Component-mapping service
15
+ * @param task Magic task service
16
+ */
9
17
  constructor(componentList: ComponentListMagicService, task: TaskMagicService);
10
18
  shouldOpenFieldTextEditor: boolean;
19
+ /**
20
+ * Refreshes the DataSource
21
+ */
11
22
  refreshDataSource(): void;
23
+ /**
24
+ * Returns the table page size
25
+ * chunkSize as default value for non-paginated tables.
26
+ */
12
27
  getPageSize(): number;
13
28
  setChunkSize(size: number): void;
29
+ /**
30
+ * Returns max no of rows in the table.
31
+ */
14
32
  getMaxRowsInTable(): number;
33
+ /**
34
+ * Selects the specified row
35
+ * @param rowId The row to select
36
+ */
15
37
  selectRow(rowId: string): void;
16
38
  getSelectedRow(): any;
39
+ /**
40
+ * Returns the selected row
41
+ */
17
42
  selectedRow(): any;
43
+ /**
44
+ * Selects the specified page
45
+ * @param pageId The page to select
46
+ */
18
47
  selectPage(pageId: number): void;
48
+ /**
49
+ * Returns whether a dialog should be opened for the HTML element
50
+ * @param element The HTML element for which a dialog may be needed
51
+ * @returns
52
+ */
19
53
  OpenDialogForControl(element: HTMLElement): boolean;
54
+ /**
55
+ * Returns the dialog used to edit values
56
+ */
20
57
  getDialog(): any;
58
+ /**
59
+ * Handles the table "scrolled" event
60
+ */
21
61
  onScrollDown(): void;
62
+ /**
63
+ * To be overwitten in specific implelemtations
64
+ */
22
65
  sortData(e: any): void;
66
+ /**
67
+ * To be overwitten in specific implelemtations
68
+ */
23
69
  mgOnPaginateChange(e: any, changeSelectedRow?: boolean): void;
24
70
  mgOptionChanged(e: any): void;
71
+ /**
72
+ * Change the number of lines in a table
73
+ * @param size New number of lines in table
74
+ */
25
75
  updateTableSize(size: number): void;
76
+ /**
77
+ * @ignore
78
+ */
26
79
  setTableTopIndex(value: number): void;
80
+ /**
81
+ * @ignore
82
+ */
27
83
  getTableTopIndex(): number;
28
84
  static ɵfac: i0.ɵɵFactoryDeclaration<TableMagicService, never>;
29
85
  static ɵprov: i0.ɵɵInjectableDeclaration<TableMagicService>;
@@ -9,91 +9,396 @@ import { TitleMagicService } from './title.magic.service';
9
9
  import { AccessorMagicService } from './accessor.magic.service';
10
10
  import { OverlayWindowService } from './OverlayWindowService';
11
11
  import * as i0 from "@angular/core";
12
+ /**
13
+ * Main service to connect the UI with the Magic WebCLient
14
+ */
12
15
  export declare class TaskMagicService {
13
16
  protected magic: EngineMagicService;
14
17
  private overlayWindowService;
18
+ /**
19
+ * Service to provide table-related functionalities
20
+ */
15
21
  tableService: any;
22
+ /**
23
+ * Collection of data for all controls
24
+ */
16
25
  Records: any;
26
+ /**
27
+ * FormGroup collection for line mode
28
+ */
17
29
  formGroups: Array<FormGroup>;
30
+ /**
31
+ * FormGroup for all controls in screen mode
32
+ */
18
33
  ScreenModeControls: FormGroup;
34
+ /**
35
+ * @ignore
36
+ */
19
37
  refreshDom: Subject<GuiCommand>;
38
+ /**
39
+ * @ignore
40
+ */
20
41
  subscribeRefreshDom: Subscription;
42
+ /**
43
+ * @ignore
44
+ */
21
45
  detectChanges: Subject<any>;
46
+ /**
47
+ * @ignore
48
+ */
22
49
  subscribeInteractiveCommands: Subscription;
50
+ /**
51
+ * @ignore
52
+ */
23
53
  interactiveCommands: Subject<GuiInteractive>;
54
+ /**
55
+ * @ignore
56
+ * This event is emitted when the selected row in a table changes.
57
+ */
24
58
  OnSelectedRowChanged: EventEmitter<string>;
59
+ /**
60
+ * @ignore
61
+ */
25
62
  customPropertiesSubject: Subject<any>;
63
+ /**
64
+ * @ignore
65
+ */
26
66
  recordsCountChangeSubject: Subject<any>;
27
67
  mgLoadSubject: Subject<any>;
68
+ /**
69
+ * @ignore
70
+ */
28
71
  template: {
29
72
  [id: string]: string;
30
73
  };
74
+ /**
75
+ * Service to provide subform-related functionalities
76
+ */
31
77
  mgSubformService: SubformMagicService;
78
+ /**
79
+ * Service to provide the title-change functionality
80
+ */
32
81
  mgTitleService: TitleMagicService;
82
+ /**
83
+ * Service which enables getting/setting values from/to the Magic WebClient engine
84
+ */
33
85
  mgAccessorService: AccessorMagicService;
34
86
  mgInputDateFormat: any;
87
+ /**
88
+ * @ignore
89
+ */
35
90
  oldPageSize: number;
91
+ /**
92
+ *
93
+ * @param magic
94
+ */
36
95
  constructor(magic: EngineMagicService, overlayWindowService: OverlayWindowService);
96
+ /**
97
+ * returns true if used is logged in
98
+ * @returns
99
+ */
37
100
  getIsLoggenIn(): boolean;
101
+ /**
102
+ * Id of task to which this service refers
103
+ */
38
104
  _taskId: string;
105
+ /**
106
+ * returns the task Id
107
+ * @returns
108
+ */
39
109
  get taskId(): string;
110
+ /**
111
+ * Sets the task Id
112
+ * @param value the task id to set
113
+ */
40
114
  set taskId(value: string);
115
+ /**
116
+ * Returns the task's data in Screen mode
117
+ * @returns
118
+ */
41
119
  get ScreenControlsData(): any;
120
+ /**
121
+ * @ignore
122
+ */
42
123
  settemplate(value: any): void;
124
+ /**
125
+ * Builds the FormControl for each and every control
126
+ */
43
127
  buildScreenModeControls(): void;
128
+ /**
129
+ * Is the control a table control
130
+ * @param id Id of the control
131
+ * @returns
132
+ */
44
133
  isTableControl(id: string): boolean;
45
134
  getMgInputDateFormat(): string;
135
+ /**
136
+ * Returns the FormControl of a control
137
+ * @param guiRowid Id of the requested row
138
+ * @param id Id of the control
139
+ * @returns
140
+ */
46
141
  getFormControl(guiRowid: string, id: string): AbstractControl;
142
+ /**
143
+ * handle the change of text for input control inside table
144
+ * @param guiRowId Id of the row for which the FormControls are built
145
+ * set the new value of the formcontrol
146
+ */
47
147
  setInputTextValue(controlId: string, guiRowid: string, val: any): void;
148
+ /**
149
+ * Build the FormControls for a table row
150
+ * @param guiRowId Id of the row for which the FormControls are built
151
+ */
48
152
  buildTableRowControls(guiRowId: number): void;
153
+ /**
154
+ *
155
+ * @ignore
156
+ */
49
157
  updateRecordsBeforeCurrentView(value: number): void;
158
+ /**
159
+ * @ignore
160
+ */
50
161
  setIncludesFirst(value: boolean): void;
162
+ /**
163
+ * @ignore
164
+ */
51
165
  setIncludesLast(value: boolean): void;
166
+ /**
167
+ * @ignore
168
+ */
52
169
  markRowAsCreated(guiRowId: number): void;
170
+ /**
171
+ * @ignore
172
+ */
53
173
  markRowAsNotCreated(guiRowId: number): void;
174
+ /**
175
+ * @ignore
176
+ */
54
177
  startRowEditing(guiRowId: number): void;
178
+ /**
179
+ * @ignore
180
+ */
55
181
  stopRowEditing(guiRowId: number): void;
182
+ /**
183
+ * @ignore
184
+ */
56
185
  isRowInRowEditing(guiRowId: string): boolean;
186
+ /**
187
+ * @ignore
188
+ */
57
189
  setIsEmptyDataView(isEmpty: boolean): void;
190
+ /**
191
+ * Initialize the service to work with the task
192
+ * @param taskId Id of the task
193
+ * @param taskDescription
194
+ */
58
195
  initTask(taskId: any, taskDescription: any): void;
196
+ /**
197
+ * @ignore
198
+ */
59
199
  refreshView(): void;
200
+ /**
201
+ * Insert an event to the Magic WebClient event queue
202
+ * @param guiEvent The event to insert
203
+ */
60
204
  insertEvent(guiEvent: IGuiEvent): void;
205
+ /**
206
+ * @ignore
207
+ */
61
208
  GetControlPictureMask(controlName: string): any;
209
+ /**
210
+ * @ignore
211
+ */
212
+ UploadFileToServer(fileContent: any, serverFileName: string): any;
213
+ DownloadFileFromServer(serverFileName: string): Promise<ArrayBuffer>;
214
+ /**
215
+ * Validates the control value, using the Magic WebClient
216
+ * @param controlName Id of validated control
217
+ * @param value value to be validated
218
+ * @returns If validation fails, returns error message, else returns null
219
+ */
62
220
  ValidateControlValue(controlName: string, value: any): string;
221
+ /**
222
+ * @ignore
223
+ */
63
224
  GetRangedValue(controlName: string, value: string): string;
225
+ /**
226
+ * @ignore
227
+ */
64
228
  GetFldRanges(controlName: string): string;
229
+ /**
230
+ * returns the value of a property of the control
231
+ * @param controlId Id of control
232
+ * @param prop Property
233
+ * @param guiRowId Row Id, if applicable
234
+ * @returns Property value
235
+ */
65
236
  getProperty(controlId: string, prop: HtmlProperties, guiRowId?: string): any;
237
+ /**
238
+ * @ignore
239
+ */
66
240
  getPropertyStub(ControlsProperties: any, controlId: any, prop: any): any;
241
+ /**
242
+ * @ignore
243
+ */
67
244
  getStyleStub(ControlsProperties: any, controlId: any, styleName: string): any;
245
+ /**
246
+ * Return the CSS classes used for this control
247
+ * @param controlId Id of control
248
+ * @param guiRowId Row Id, if applicable
249
+ * @returns String containing the classes currently defined for this control
250
+ */
68
251
  getClasses(controlId: string, guiRowId?: string): string;
252
+ /**
253
+ * Return the value of a style used for a control
254
+ * @param controlId Id of control
255
+ * @param styleName Name of style
256
+ * @param guiRowId Row Id, if applicable
257
+ * @returns value of style of the control
258
+ */
69
259
  getStyle(controlId: string, styleName: string, guiRowId?: string): string;
260
+ /**
261
+ * Return the value of a control
262
+ * @param controlId Id of control
263
+ * @param guiRowId Row Id, if applicable
264
+ * @returns value of the control
265
+ */
70
266
  getValue(controlId: string, guiRowId?: string): any;
267
+ /**
268
+ * Return the formatted value of a control
269
+ * @param controlId Id of control
270
+ * @param guiRowId Row Id, if applicable
271
+ * @returns value of the control
272
+ */
71
273
  getFormattedValue(controlName: string, val: any, rowId?: string): string;
274
+ /**
275
+ * Sets the value of a control
276
+ * @param controlId Id of control
277
+ * @param guiRowId Row Id, if applicable
278
+ * @param value Value to set
279
+ */
72
280
  setValue(controlId: string, guiRowId: string, value: any): void;
281
+ /**
282
+ * @ignore
283
+ */
73
284
  protected executeInteractiveCommand(guiInteractiveCommand: GuiInteractive): void;
285
+ /**
286
+ * @ignore
287
+ */
74
288
  handleSetProperty(command: GuiCommand, isTableChild: boolean): void;
75
289
  executeCommand(command: GuiCommand): void;
290
+ /**
291
+ custom validator
292
+ */
76
293
  customValidator(rowid: string, id: string): ValidatorFn;
294
+ /**
295
+ * COnvert a value from Magic format to native format
296
+ * @param controlId Id of control
297
+ * @param rowId Row Id, if applicable
298
+ * @param val Value to convert
299
+ * @returns Converted value
300
+ */
77
301
  ConvertValToNative(controlId: string, rowId: number, val: any): any;
302
+ /**
303
+ * Convert a value from native to Magic format
304
+ * @param controlId Id of control
305
+ * @param rowId Row Id, if applicable
306
+ * @param val Value to convert
307
+ * @returns Converted value
308
+ */
78
309
  ConvertValFromNative(controlId: string, rowId: number, val: any): any;
310
+ /**
311
+ * Handle resize and also fetch chunk of records if having an empty view.
312
+ * @ignore
313
+ * @param pageSize : PageSize
314
+ * @param topGuiRowId : GuiRowId of first record in view.
315
+ */
79
316
  resize(pageSize: number, topGuiRowId: number): void;
317
+ /**
318
+ * Fetches data for new table rows when scrolling done
319
+ */
80
320
  onScrollDown(): void;
321
+ /**
322
+ * Sets the new browser window title
323
+ * @param newTitle New window title
324
+ */
81
325
  setTitle(newTitle: string): void;
326
+ /**
327
+ * @ignore
328
+ */
82
329
  getGuiRowId(dvRowId: number, isTableControl: boolean): number;
330
+ /**
331
+ *
332
+ * @ignore
333
+ */
83
334
  getDvRowId(guiRowId: number): number;
335
+ /**
336
+ * Clean up the service when it is no longer needed
337
+ */
84
338
  dispose(): void;
339
+ /**
340
+ * Handle the Combobox "change" event
341
+ * @param event The event received from the UI
342
+ * @param idx Id of the control raising the event
343
+ * @param line Row Id, if applicable
344
+ */
85
345
  onComboboxSelectionChanged(event: Event, idx: string, line: number): void;
346
+ /**
347
+ * Handle the Listbox "change" event
348
+ * @param event The event received from the UI
349
+ * @param idx Id of the control raising the event
350
+ */
86
351
  onListBoxSelectionChanged(event: Event, idx: string): void;
352
+ /**
353
+ * Handle the Checkbox "change" event
354
+ * @param event The event received from the UI
355
+ * @param idx Id of the control raising the event
356
+ * @param rowId Row Id, if applicable
357
+ */
87
358
  onCheckChanged(event: Event, idx: string, rowId: number): void;
359
+ /**
360
+ * Handle tab selection change, caused by UI events
361
+ * @param idx Id of the control raising the event
362
+ * @param layer Id of selected tabpage
363
+ */
88
364
  mgOnTabSelectionChanged(idx: string, layer: number): void;
365
+ /**
366
+ * Handle the Radio button "change" event
367
+ * @param event The event received from the UI
368
+ * @param idx Id of the control raising the event
369
+ */
89
370
  mgOnRadioSelectionChanged(idx: string): void;
371
+ /**
372
+ * Inserts the "close" event to the magic WebClient event queue
373
+ */
90
374
  close(): void;
375
+ /**
376
+ * @ignore
377
+ */
91
378
  IsStub(): boolean;
379
+ /**
380
+ * @ignore
381
+ */
92
382
  jsonData: string;
383
+ /**
384
+ * @ignore
385
+ */
93
386
  saveData(data: string): void;
387
+ /**
388
+ * @ignore
389
+ */
94
390
  createData(): void;
391
+ /**
392
+ * @ignore
393
+ */
95
394
  loadStubData(stubData: any): void;
395
+ /**
396
+ * @ignore
397
+ */
96
398
  loadData(): void;
399
+ /**
400
+ * @ignore
401
+ */
97
402
  setStubValue(guiRowId: number, fc: FormControl, name: string): void;
98
403
  static ɵfac: i0.ɵɵFactoryDeclaration<TaskMagicService, never>;
99
404
  static ɵprov: i0.ɵɵInjectableDeclaration<TaskMagicService>;
@@ -1,8 +1,19 @@
1
1
  import { Title } from "@angular/platform-browser";
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * Enables changing the browser title using Magic expression (SetTitle)
5
+ */
3
6
  export declare class TitleMagicService {
4
7
  protected titleService: Title;
8
+ /**
9
+ *
10
+ * @param titleService Angular's title-changing class
11
+ */
5
12
  constructor(titleService: Title);
13
+ /**
14
+ * Set the new title of the window
15
+ * @param newTitle New title of the window
16
+ */
6
17
  setTitle(newTitle: string): void;
7
18
  static ɵfac: i0.ɵɵFactoryDeclaration<TitleMagicService, never>;
8
19
  static ɵprov: i0.ɵɵInjectableDeclaration<TitleMagicService>;
@@ -2,6 +2,9 @@ import { GuiInteractive } from '@magic-xpa/gui';
2
2
  import { TaskBaseMagicComponent } from './task-base.magic.component';
3
3
  import { TaskMagicService } from '../services/task.magics.service';
4
4
  import { OverlayWindowService } from '../services/OverlayWindowService';
5
+ /**
6
+ * @ignore
7
+ */
5
8
  export declare class GuiInteractiveExecutor {
6
9
  command: GuiInteractive;
7
10
  component: TaskBaseMagicComponent;
@@ -1,9 +1,25 @@
1
1
  import { EventEmitter } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * This is a base class for the magic alert components
5
+ */
3
6
  export declare class BaseMagicAlertComponent {
7
+ /**
8
+ * title of the component
9
+ */
4
10
  title: string;
11
+ /**
12
+ * message of the component
13
+ */
5
14
  message: string;
15
+ /**
16
+ * onClose Event - to be raised when the component is closed
17
+
18
+ */
6
19
  onClose: EventEmitter<void>;
20
+ /**
21
+ * close magic alert
22
+ */
7
23
  OnClose(): void;
8
24
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicAlertComponent, never>;
9
25
  static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicAlertComponent, "mg-base-alert", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
@@ -1,9 +1,27 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * This is a base class for the magic confirm components
5
+ */
3
6
  export declare class BaseMagicConfirmComponent {
7
+ /**
8
+ * title of the component
9
+ */
4
10
  title: string;
11
+ /**
12
+ * message of the component
13
+ */
5
14
  message: string;
15
+ /**
16
+ * onClose Event - to be raised when the component is closed
17
+ * should pass true when OK is pressed and false when cancel is pressed
18
+ */
6
19
  onClose: EventEmitter<boolean>;
20
+ /**
21
+ * raises close Event
22
+ * @param result true when OK is pressed and false when cancel is pressed
23
+ *
24
+ */
7
25
  OnClose(result: any): void;
8
26
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicConfirmComponent, never>;
9
27
  static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicConfirmComponent, "mg-base-confirm", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
@@ -1,5 +1,8 @@
1
1
  import { BaseMagicAlertComponent } from './base-magic-alert.component';
2
2
  import * as i0 from "@angular/core";
3
+ /***
4
+ * This is sample component for the alert message
5
+ */
3
6
  export declare class MagicAlertComponent extends BaseMagicAlertComponent {
4
7
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicAlertComponent, never>;
5
8
  static ɵcmp: i0.ɵɵComponentDeclaration<MagicAlertComponent, "sample-magic-alert-component", never, {}, {}, never, never, false, never>;
@@ -1,5 +1,8 @@
1
1
  import { BaseMagicConfirmComponent } from './base-magic-confirm.component';
2
2
  import * as i0 from "@angular/core";
3
+ /***
4
+ * This is sample component for the confirmation box
5
+ */
3
6
  export declare class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
4
7
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicConfirmationBoxComponent, never>;
5
8
  static ɵcmp: i0.ɵɵComponentDeclaration<MagicConfirmationBoxComponent, "sample-magic-confirmation-box", never, {}, {}, never, never, false, never>;
@@ -3,23 +3,64 @@ import { TaskBaseMagicComponent } from '../task-base.magic.component';
3
3
  import { TaskMagicService } from '../../services/task.magics.service';
4
4
  import { Subscription } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
+ /**
7
+ * Responsible for connecting HTML elements to the Magic WebClient engine showing it is not Magic Control but a Dummy control which is used to notify only receeive focus event for now
8
+ */
6
9
  export declare class NonMagicControlDirective implements OnInit {
7
10
  protected _task: TaskMagicService;
8
11
  protected element: ElementRef;
9
12
  protected renderer: Renderer2;
10
13
  protected vcRef: ViewContainerRef;
11
14
  set magic(val: any);
15
+ /**
16
+ * The HTML element connected to this directive
17
+ */
12
18
  protected htmlElement: HTMLElement;
19
+ /**
20
+ * Magic's component handling this control
21
+ */
13
22
  component: TaskBaseMagicComponent;
23
+ /**
24
+ * Collection of event handlers for this element
25
+ */
14
26
  private eventHandlers;
27
+ /**
28
+ * Id of this element
29
+ */
15
30
  id: string;
31
+ /**
32
+ * @ignore
33
+ */
16
34
  protected selector: string;
35
+ /**
36
+ * @ignore
37
+ */
17
38
  subscribeRefreshDom: Subscription;
18
39
  eventsOnlyVal: boolean;
40
+ /**
41
+ *
42
+ * @param _task The task service
43
+ * @param element The element for which the directive is applied
44
+ * @param renderer Renderer for the element
45
+ * @param vcRef
46
+ */
19
47
  constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef);
48
+ /**
49
+ * Get the task service
50
+ * @returns
51
+ */
20
52
  get task(): TaskMagicService;
53
+ /**
54
+ * Register to the events this element may need to handle
55
+ */
21
56
  protected regEvents(): void;
57
+ /**
58
+ * Handle focus event
59
+ */
22
60
  private OnFocus;
61
+ /**
62
+ * Initialize this object
63
+ */
23
64
  ngOnInit(): void;
24
65
  static ɵfac: i0.ɵɵFactoryDeclaration<NonMagicControlDirective, never>;
25
66
  static ɵdir: i0.ɵɵDirectiveDeclaration<NonMagicControlDirective, "[NonMagicControl]", never, { "magic": { "alias": "NonMagicControl"; "required": false; }; }, {}, never, never, false, never>;