@magic-xpa/angular 4.1201.0-dev4121.306 → 4.1201.0-dev4121.308
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.
- package/README.md +5 -5
- package/fesm2022/magic-xpa-angular.mjs +193 -163
- package/fesm2022/magic-xpa-angular.mjs.map +1 -1
- package/package.json +10 -10
- package/types/magic-xpa-angular.d.ts +2564 -0
- package/index.d.ts +0 -61
- package/src/controls.metadata.model.d.ts +0 -78
- package/src/interfaces/sub-form-definition.iterface.d.ts +0 -18
- package/src/magic.core.module.d.ts +0 -44
- package/src/services/ISubformMagicService.d.ts +0 -4
- package/src/services/OverlayWindowService.d.ts +0 -49
- package/src/services/StylesMapManager.d.ts +0 -8
- package/src/services/accessor.magic.service.d.ts +0 -311
- package/src/services/commands-collector.magic.service.d.ts +0 -18
- package/src/services/component-list.magic.service.d.ts +0 -50
- package/src/services/confirmation.components.magic.provider.d.ts +0 -24
- package/src/services/engine.magic.service.d.ts +0 -32
- package/src/services/exit.magic.service.d.ts +0 -12
- package/src/services/magic-color.service.d.ts +0 -25
- package/src/services/magic.lazy.loader.service.d.ts +0 -6
- package/src/services/magic.providers.d.ts +0 -110
- package/src/services/magic.services.d.ts +0 -22
- package/src/services/mg-date-adapter.d.ts +0 -38
- package/src/services/overlay.conainer.magic.provider.d.ts +0 -7
- package/src/services/router-commands.magic.service.d.ts +0 -23
- package/src/services/subform.magic.service.d.ts +0 -71
- package/src/services/table.magic.service.d.ts +0 -86
- package/src/services/task.magics.service.d.ts +0 -405
- package/src/services/title.magic.service.d.ts +0 -20
- package/src/ui/GuiInteractiveExecutor.d.ts +0 -25
- package/src/ui/components/base-magic-alert.component.d.ts +0 -26
- package/src/ui/components/base-magic-confirm.component.d.ts +0 -28
- package/src/ui/components/magic-alert.component.d.ts +0 -9
- package/src/ui/components/magic-confirmation-box.component.d.ts +0 -9
- package/src/ui/directives/NonMagicControlDirective.d.ts +0 -67
- package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +0 -15
- package/src/ui/directives/magic/checkbox.magic.directive.d.ts +0 -34
- package/src/ui/directives/magic/combobox.magic.directive.d.ts +0 -19
- package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +0 -13
- package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +0 -36
- package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +0 -13
- package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +0 -15
- package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +0 -21
- package/src/ui/directives/magic/row.magic.directive.d.ts +0 -32
- package/src/ui/directives/magic-focus.directive.d.ts +0 -12
- package/src/ui/directives/magic.directive.d.ts +0 -127
- package/src/ui/directives/magicViewContainerRef.directive.d.ts +0 -11
- package/src/ui/directives/mgformat.magic.directive.d.ts +0 -82
- package/src/ui/directives/range-validator.magic.directive.d.ts +0 -33
- package/src/ui/magic-confirmationBox.d.ts +0 -25
- package/src/ui/magic-modal/base-magic-overlay-container.d.ts +0 -14
- package/src/ui/magic-modal/magic-modal-form.d.ts +0 -8
- package/src/ui/magic-modal/magic-modal-interface.d.ts +0 -45
- package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +0 -50
- package/src/ui/magic-modal/magic-overlay-container.d.ts +0 -117
- package/src/ui/magic-root.component.d.ts +0 -85
- package/src/ui/mgerror.magic.component.d.ts +0 -39
- package/src/ui/pipes/date.magic.pipe.d.ts +0 -23
- package/src/ui/pipes/time.magic.pipe.d.ts +0 -14
- package/src/ui/pipes/time24.magic.pipe.d.ts +0 -10
- package/src/ui/router-container.magic.component.d.ts +0 -50
- package/src/ui/subform.magic.component.d.ts +0 -37
- package/src/ui/task-base.magic.component.d.ts +0 -112
- package/src/ui/utils.d.ts +0 -12
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { AbstractControl, FormControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
3
|
-
import { Subject, Subscription } from 'rxjs';
|
|
4
|
-
import { EngineMagicService } from './engine.magic.service';
|
|
5
|
-
import { GuiCommand, GuiInteractive, HtmlProperties } from '@magic-xpa/gui';
|
|
6
|
-
import { IGuiEvent } from '@magic-xpa/engine';
|
|
7
|
-
import { SubformMagicService } from './subform.magic.service';
|
|
8
|
-
import { TitleMagicService } from './title.magic.service';
|
|
9
|
-
import { AccessorMagicService } from './accessor.magic.service';
|
|
10
|
-
import { OverlayWindowService } from './OverlayWindowService';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Main service to connect the UI with the Magic WebCLient
|
|
14
|
-
*/
|
|
15
|
-
export declare class TaskMagicService {
|
|
16
|
-
protected magic: EngineMagicService;
|
|
17
|
-
private overlayWindowService;
|
|
18
|
-
/**
|
|
19
|
-
* Service to provide table-related functionalities
|
|
20
|
-
*/
|
|
21
|
-
tableService: any;
|
|
22
|
-
/**
|
|
23
|
-
* Collection of data for all controls
|
|
24
|
-
*/
|
|
25
|
-
Records: any;
|
|
26
|
-
/**
|
|
27
|
-
* FormGroup collection for line mode
|
|
28
|
-
*/
|
|
29
|
-
formGroups: Array<FormGroup>;
|
|
30
|
-
/**
|
|
31
|
-
* FormGroup for all controls in screen mode
|
|
32
|
-
*/
|
|
33
|
-
ScreenModeControls: FormGroup;
|
|
34
|
-
/**
|
|
35
|
-
* @ignore
|
|
36
|
-
*/
|
|
37
|
-
refreshDom: Subject<GuiCommand>;
|
|
38
|
-
/**
|
|
39
|
-
* @ignore
|
|
40
|
-
*/
|
|
41
|
-
subscribeRefreshDom: Subscription;
|
|
42
|
-
/**
|
|
43
|
-
* @ignore
|
|
44
|
-
*/
|
|
45
|
-
detectChanges: Subject<any>;
|
|
46
|
-
/**
|
|
47
|
-
* @ignore
|
|
48
|
-
*/
|
|
49
|
-
subscribeInteractiveCommands: Subscription;
|
|
50
|
-
/**
|
|
51
|
-
* @ignore
|
|
52
|
-
*/
|
|
53
|
-
interactiveCommands: Subject<GuiInteractive>;
|
|
54
|
-
/**
|
|
55
|
-
* @ignore
|
|
56
|
-
* This event is emitted when the selected row in a table changes.
|
|
57
|
-
*/
|
|
58
|
-
OnSelectedRowChanged: EventEmitter<string>;
|
|
59
|
-
/**
|
|
60
|
-
* @ignore
|
|
61
|
-
*/
|
|
62
|
-
customPropertiesSubject: Subject<any>;
|
|
63
|
-
/**
|
|
64
|
-
* @ignore
|
|
65
|
-
*/
|
|
66
|
-
recordsCountChangeSubject: Subject<any>;
|
|
67
|
-
mgLoadSubject: Subject<any>;
|
|
68
|
-
/**
|
|
69
|
-
* @ignore
|
|
70
|
-
*/
|
|
71
|
-
template: {
|
|
72
|
-
[id: string]: string;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Service to provide subform-related functionalities
|
|
76
|
-
*/
|
|
77
|
-
mgSubformService: SubformMagicService;
|
|
78
|
-
/**
|
|
79
|
-
* Service to provide the title-change functionality
|
|
80
|
-
*/
|
|
81
|
-
mgTitleService: TitleMagicService;
|
|
82
|
-
/**
|
|
83
|
-
* Service which enables getting/setting values from/to the Magic WebClient engine
|
|
84
|
-
*/
|
|
85
|
-
mgAccessorService: AccessorMagicService;
|
|
86
|
-
mgInputDateFormat: any;
|
|
87
|
-
/**
|
|
88
|
-
* @ignore
|
|
89
|
-
*/
|
|
90
|
-
oldPageSize: number;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @param magic
|
|
94
|
-
*/
|
|
95
|
-
constructor(magic: EngineMagicService, overlayWindowService: OverlayWindowService);
|
|
96
|
-
/**
|
|
97
|
-
* returns true if used is logged in
|
|
98
|
-
* @returns
|
|
99
|
-
*/
|
|
100
|
-
getIsLoggenIn(): boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Id of task to which this service refers
|
|
103
|
-
*/
|
|
104
|
-
_taskId: string;
|
|
105
|
-
/**
|
|
106
|
-
* returns the task Id
|
|
107
|
-
* @returns
|
|
108
|
-
*/
|
|
109
|
-
get taskId(): string;
|
|
110
|
-
/**
|
|
111
|
-
* Sets the task Id
|
|
112
|
-
* @param value the task id to set
|
|
113
|
-
*/
|
|
114
|
-
set taskId(value: string);
|
|
115
|
-
/**
|
|
116
|
-
* Returns the task's data in Screen mode
|
|
117
|
-
* @returns
|
|
118
|
-
*/
|
|
119
|
-
get ScreenControlsData(): any;
|
|
120
|
-
/**
|
|
121
|
-
* @ignore
|
|
122
|
-
*/
|
|
123
|
-
settemplate(value: any): void;
|
|
124
|
-
/**
|
|
125
|
-
* Builds the FormControl for each and every control
|
|
126
|
-
*/
|
|
127
|
-
buildScreenModeControls(): void;
|
|
128
|
-
/**
|
|
129
|
-
* Is the control a table control
|
|
130
|
-
* @param id Id of the control
|
|
131
|
-
* @returns
|
|
132
|
-
*/
|
|
133
|
-
isTableControl(id: string): boolean;
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
152
|
-
buildTableRowControls(guiRowId: number): void;
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
* @ignore
|
|
156
|
-
*/
|
|
157
|
-
updateRecordsBeforeCurrentView(value: number): void;
|
|
158
|
-
/**
|
|
159
|
-
* @ignore
|
|
160
|
-
*/
|
|
161
|
-
setIncludesFirst(value: boolean): void;
|
|
162
|
-
/**
|
|
163
|
-
* @ignore
|
|
164
|
-
*/
|
|
165
|
-
setIncludesLast(value: boolean): void;
|
|
166
|
-
/**
|
|
167
|
-
* @ignore
|
|
168
|
-
*/
|
|
169
|
-
markRowAsCreated(guiRowId: number): void;
|
|
170
|
-
/**
|
|
171
|
-
* @ignore
|
|
172
|
-
*/
|
|
173
|
-
markRowAsNotCreated(guiRowId: number): void;
|
|
174
|
-
/**
|
|
175
|
-
* @ignore
|
|
176
|
-
*/
|
|
177
|
-
startRowEditing(guiRowId: number): void;
|
|
178
|
-
/**
|
|
179
|
-
* @ignore
|
|
180
|
-
*/
|
|
181
|
-
stopRowEditing(guiRowId: number): void;
|
|
182
|
-
/**
|
|
183
|
-
* @ignore
|
|
184
|
-
*/
|
|
185
|
-
isRowInRowEditing(guiRowId: string): boolean;
|
|
186
|
-
/**
|
|
187
|
-
* @ignore
|
|
188
|
-
*/
|
|
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
|
-
*/
|
|
195
|
-
initTask(taskId: any, taskDescription: any): void;
|
|
196
|
-
/**
|
|
197
|
-
* @ignore
|
|
198
|
-
*/
|
|
199
|
-
refreshView(): void;
|
|
200
|
-
/**
|
|
201
|
-
* Insert an event to the Magic WebClient event queue
|
|
202
|
-
* @param guiEvent The event to insert
|
|
203
|
-
*/
|
|
204
|
-
insertEvent(guiEvent: IGuiEvent): void;
|
|
205
|
-
/**
|
|
206
|
-
* @ignore
|
|
207
|
-
*/
|
|
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
|
-
*/
|
|
220
|
-
ValidateControlValue(controlName: string, value: any): string;
|
|
221
|
-
/**
|
|
222
|
-
* @ignore
|
|
223
|
-
*/
|
|
224
|
-
GetRangedValue(controlName: string, value: string): string;
|
|
225
|
-
/**
|
|
226
|
-
* @ignore
|
|
227
|
-
*/
|
|
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
|
-
*/
|
|
236
|
-
getProperty(controlId: string, prop: HtmlProperties, guiRowId?: string): any;
|
|
237
|
-
/**
|
|
238
|
-
* @ignore
|
|
239
|
-
*/
|
|
240
|
-
getPropertyStub(ControlsProperties: any, controlId: any, prop: any): any;
|
|
241
|
-
/**
|
|
242
|
-
* @ignore
|
|
243
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
280
|
-
setValue(controlId: string, guiRowId: string, value: any): void;
|
|
281
|
-
/**
|
|
282
|
-
* @ignore
|
|
283
|
-
*/
|
|
284
|
-
protected executeInteractiveCommand(guiInteractiveCommand: GuiInteractive): void;
|
|
285
|
-
/**
|
|
286
|
-
* @ignore
|
|
287
|
-
*/
|
|
288
|
-
handleSetProperty(command: GuiCommand, isTableChild: boolean): void;
|
|
289
|
-
executeCommand(command: GuiCommand): void;
|
|
290
|
-
/**
|
|
291
|
-
custom validator
|
|
292
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
316
|
-
resize(pageSize: number, topGuiRowId: number): void;
|
|
317
|
-
/**
|
|
318
|
-
* Fetches data for new table rows when scrolling done
|
|
319
|
-
*/
|
|
320
|
-
onScrollDown(): void;
|
|
321
|
-
/**
|
|
322
|
-
* Sets the new browser window title
|
|
323
|
-
* @param newTitle New window title
|
|
324
|
-
*/
|
|
325
|
-
setTitle(newTitle: string): void;
|
|
326
|
-
/**
|
|
327
|
-
* @ignore
|
|
328
|
-
*/
|
|
329
|
-
getGuiRowId(dvRowId: number, isTableControl: boolean): number;
|
|
330
|
-
/**
|
|
331
|
-
*
|
|
332
|
-
* @ignore
|
|
333
|
-
*/
|
|
334
|
-
getDvRowId(guiRowId: number): number;
|
|
335
|
-
/**
|
|
336
|
-
* Clean up the service when it is no longer needed
|
|
337
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
370
|
-
mgOnRadioSelectionChanged(idx: string): void;
|
|
371
|
-
/**
|
|
372
|
-
* Inserts the "close" event to the magic WebClient event queue
|
|
373
|
-
*/
|
|
374
|
-
close(): void;
|
|
375
|
-
/**
|
|
376
|
-
* @ignore
|
|
377
|
-
*/
|
|
378
|
-
IsStub(): boolean;
|
|
379
|
-
/**
|
|
380
|
-
* @ignore
|
|
381
|
-
*/
|
|
382
|
-
jsonData: string;
|
|
383
|
-
/**
|
|
384
|
-
* @ignore
|
|
385
|
-
*/
|
|
386
|
-
saveData(data: string): void;
|
|
387
|
-
/**
|
|
388
|
-
* @ignore
|
|
389
|
-
*/
|
|
390
|
-
createData(): void;
|
|
391
|
-
/**
|
|
392
|
-
* @ignore
|
|
393
|
-
*/
|
|
394
|
-
loadStubData(stubData: any): void;
|
|
395
|
-
/**
|
|
396
|
-
* @ignore
|
|
397
|
-
*/
|
|
398
|
-
loadData(): void;
|
|
399
|
-
/**
|
|
400
|
-
* @ignore
|
|
401
|
-
*/
|
|
402
|
-
setStubValue(guiRowId: number, fc: FormControl, name: string): void;
|
|
403
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TaskMagicService, never>;
|
|
404
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TaskMagicService>;
|
|
405
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Title } from "@angular/platform-browser";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Enables changing the browser title using Magic expression (SetTitle)
|
|
5
|
-
*/
|
|
6
|
-
export declare class TitleMagicService {
|
|
7
|
-
protected titleService: Title;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param titleService Angular's title-changing class
|
|
11
|
-
*/
|
|
12
|
-
constructor(titleService: Title);
|
|
13
|
-
/**
|
|
14
|
-
* Set the new title of the window
|
|
15
|
-
* @param newTitle New title of the window
|
|
16
|
-
*/
|
|
17
|
-
setTitle(newTitle: string): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TitleMagicService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TitleMagicService>;
|
|
20
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { GuiInteractive } from '@magic-xpa/gui';
|
|
2
|
-
import { TaskBaseMagicComponent } from './task-base.magic.component';
|
|
3
|
-
import { TaskMagicService } from '../services/task.magics.service';
|
|
4
|
-
import { OverlayWindowService } from '../services/OverlayWindowService';
|
|
5
|
-
/**
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
export declare class GuiInteractiveExecutor {
|
|
9
|
-
command: GuiInteractive;
|
|
10
|
-
component: TaskBaseMagicComponent;
|
|
11
|
-
task: TaskMagicService;
|
|
12
|
-
overlayService: OverlayWindowService;
|
|
13
|
-
Run(): void;
|
|
14
|
-
static executeInteractiveCommand(task: TaskMagicService, guiIntactiveCommand: GuiInteractive, overlayService: OverlayWindowService): void;
|
|
15
|
-
private onValue;
|
|
16
|
-
private onGetRowsInPage;
|
|
17
|
-
private onGetMaxRowsInPaginatedTable;
|
|
18
|
-
private OnMessageBox;
|
|
19
|
-
private OnOpenForm;
|
|
20
|
-
private OnSetTitle;
|
|
21
|
-
private OnRefreshPage;
|
|
22
|
-
private OnGetTopIndex;
|
|
23
|
-
private OnGetIsRowEditing;
|
|
24
|
-
private OnGetLastRoute;
|
|
25
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* This is a base class for the magic alert components
|
|
5
|
-
*/
|
|
6
|
-
export declare class BaseMagicAlertComponent {
|
|
7
|
-
/**
|
|
8
|
-
* title of the component
|
|
9
|
-
*/
|
|
10
|
-
title: string;
|
|
11
|
-
/**
|
|
12
|
-
* message of the component
|
|
13
|
-
*/
|
|
14
|
-
message: string;
|
|
15
|
-
/**
|
|
16
|
-
* onClose Event - to be raised when the component is closed
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
onClose: EventEmitter<void>;
|
|
20
|
-
/**
|
|
21
|
-
* close magic alert
|
|
22
|
-
*/
|
|
23
|
-
OnClose(): void;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicAlertComponent, never>;
|
|
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>;
|
|
26
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* This is a base class for the magic confirm components
|
|
5
|
-
*/
|
|
6
|
-
export declare class BaseMagicConfirmComponent {
|
|
7
|
-
/**
|
|
8
|
-
* title of the component
|
|
9
|
-
*/
|
|
10
|
-
title: string;
|
|
11
|
-
/**
|
|
12
|
-
* message of the component
|
|
13
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
25
|
-
OnClose(result: any): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicConfirmComponent, never>;
|
|
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>;
|
|
28
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseMagicAlertComponent } from './base-magic-alert.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/***
|
|
4
|
-
* This is sample component for the alert message
|
|
5
|
-
*/
|
|
6
|
-
export declare class MagicAlertComponent extends BaseMagicAlertComponent {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagicAlertComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MagicAlertComponent, "sample-magic-alert-component", never, {}, {}, never, never, false, never>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseMagicConfirmComponent } from './base-magic-confirm.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/***
|
|
4
|
-
* This is sample component for the confirmation box
|
|
5
|
-
*/
|
|
6
|
-
export declare class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagicConfirmationBoxComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MagicConfirmationBoxComponent, "sample-magic-confirmation-box", never, {}, {}, never, never, false, never>;
|
|
9
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { TaskBaseMagicComponent } from '../task-base.magic.component';
|
|
3
|
-
import { TaskMagicService } from '../../services/task.magics.service';
|
|
4
|
-
import { Subscription } from 'rxjs';
|
|
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
|
-
export declare class NonMagicControlDirective implements OnInit {
|
|
10
|
-
protected _task: TaskMagicService;
|
|
11
|
-
protected element: ElementRef;
|
|
12
|
-
protected renderer: Renderer2;
|
|
13
|
-
protected vcRef: ViewContainerRef;
|
|
14
|
-
set magic(val: any);
|
|
15
|
-
/**
|
|
16
|
-
* The HTML element connected to this directive
|
|
17
|
-
*/
|
|
18
|
-
protected htmlElement: HTMLElement;
|
|
19
|
-
/**
|
|
20
|
-
* Magic's component handling this control
|
|
21
|
-
*/
|
|
22
|
-
component: TaskBaseMagicComponent;
|
|
23
|
-
/**
|
|
24
|
-
* Collection of event handlers for this element
|
|
25
|
-
*/
|
|
26
|
-
private eventHandlers;
|
|
27
|
-
/**
|
|
28
|
-
* Id of this element
|
|
29
|
-
*/
|
|
30
|
-
id: string;
|
|
31
|
-
/**
|
|
32
|
-
* @ignore
|
|
33
|
-
*/
|
|
34
|
-
protected selector: string;
|
|
35
|
-
/**
|
|
36
|
-
* @ignore
|
|
37
|
-
*/
|
|
38
|
-
subscribeRefreshDom: Subscription;
|
|
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
|
-
*/
|
|
47
|
-
constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef);
|
|
48
|
-
/**
|
|
49
|
-
* Get the task service
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
get task(): TaskMagicService;
|
|
53
|
-
/**
|
|
54
|
-
* Register to the events this element may need to handle
|
|
55
|
-
*/
|
|
56
|
-
protected regEvents(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Handle focus event
|
|
59
|
-
*/
|
|
60
|
-
private OnFocus;
|
|
61
|
-
/**
|
|
62
|
-
* Initialize this object
|
|
63
|
-
*/
|
|
64
|
-
ngOnInit(): void;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NonMagicControlDirective, never>;
|
|
66
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NonMagicControlDirective, "[NonMagicControl]", never, { "magic": { "alias": "NonMagicControl"; "required": false; }; }, {}, never, never, false, never>;
|
|
67
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { MagicDirective } from "../magic.directive";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Directive for checkboxes which should not have a form control
|
|
5
|
-
*/
|
|
6
|
-
export declare class CheckboxNoFormControlMagicDirective {
|
|
7
|
-
protected magicDirective: MagicDirective;
|
|
8
|
-
constructor(magicDirective: MagicDirective);
|
|
9
|
-
/**
|
|
10
|
-
* Handle the 'Checkbox' change event - pass it to the Magic engine
|
|
11
|
-
*/
|
|
12
|
-
onChange($event: any): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxNoFormControlMagicDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxNoFormControlMagicDirective, " input[type=checkbox][magic]:([noFormControl]) ", never, {}, {}, never, never, false, never>;
|
|
15
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { MagicDirective } from '../magic.directive';
|
|
3
|
-
import { TaskMagicService } from "../../../services/task.magics.service";
|
|
4
|
-
import { GuiCommand } from "@magic-xpa/gui";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Directive for checkboxes, to handle the 'change' event
|
|
8
|
-
*/
|
|
9
|
-
export declare class CheckboxMagicDirective {
|
|
10
|
-
protected magicDirective: MagicDirective;
|
|
11
|
-
private el;
|
|
12
|
-
protected task: TaskMagicService;
|
|
13
|
-
threeState: boolean;
|
|
14
|
-
private subscribeRefreshDom;
|
|
15
|
-
private isIndeterminate;
|
|
16
|
-
/**
|
|
17
|
-
* @ignore
|
|
18
|
-
*/
|
|
19
|
-
constructor(magicDirective: MagicDirective, el: ElementRef, task: TaskMagicService);
|
|
20
|
-
/**
|
|
21
|
-
* Handles the Checkbox 'change' event - pass it to the Magic engine
|
|
22
|
-
*/
|
|
23
|
-
onChange($event: any): void;
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
private regUpdatesUI;
|
|
26
|
-
handleCommand(command: GuiCommand): void;
|
|
27
|
-
private handleThreeState;
|
|
28
|
-
/**
|
|
29
|
-
* Cleanup
|
|
30
|
-
*/
|
|
31
|
-
ngOnDestroy(): void;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxMagicDirective, never>;
|
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxMagicDirective, " input[type=checkbox][magic]:not([noFormControl])", never, { "threeState": { "alias": "threeState"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MagicDirective } from '../magic.directive';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Directive for comboboxes, to handle the 'change' event
|
|
5
|
-
*/
|
|
6
|
-
export declare class ComboboxMagicDirective {
|
|
7
|
-
protected magicDirective: MagicDirective;
|
|
8
|
-
constructor(magicDirective: MagicDirective);
|
|
9
|
-
/**
|
|
10
|
-
* Handles the Combobox 'change' event - pass it to the Magic engine
|
|
11
|
-
*/
|
|
12
|
-
onChange($event: any): void;
|
|
13
|
-
/**
|
|
14
|
-
* To refresh Combobox selection as per selected property.
|
|
15
|
-
*/
|
|
16
|
-
onComboboxItemsListChanged(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxMagicDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxMagicDirective, "select[magic]:not([multiple])", never, {}, {}, never, never, false, never>;
|
|
19
|
-
}
|
package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CheckboxControlValueAccessor } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* @ignore
|
|
5
|
-
*/
|
|
6
|
-
export declare const CHECKBOX_VALUE_ACCESSOR: any;
|
|
7
|
-
/**
|
|
8
|
-
* Value accessor for Checkbox without a FormControl
|
|
9
|
-
*/
|
|
10
|
-
export declare class MagicCheckboxControlValueAccessor extends CheckboxControlValueAccessor {
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagicCheckboxControlValueAccessor, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MagicCheckboxControlValueAccessor, " input[type=checkbox][magic]:not([formControlName]):not([no-form-control]), input[type=checkbox][magic]:not([formControl]), input[type=checkbox][magic]:not([ngModel]) ", never, {}, {}, never, never, false, never>;
|
|
13
|
-
}
|