@magic-xpa/angular 4.800.0-dev480.22 → 4.800.0-dev480.220

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