@magic-xpa/angular 4.1200.0-dev4120.5 → 4.1200.0-dev4120.51
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/fesm2022/magic-xpa-angular.mjs +1783 -192
- package/fesm2022/magic-xpa-angular.mjs.map +1 -1
- package/index.d.ts +3 -0
- package/package.json +6 -8
- package/src/controls.metadata.model.d.ts +16 -0
- package/src/interfaces/sub-form-definition.iterface.d.ts +6 -0
- package/src/magic.core.module.d.ts +5 -3
- package/src/services/OverlayWindowService.d.ts +19 -0
- package/src/services/StylesMapManager.d.ts +3 -0
- package/src/services/accessor.magic.service.d.ts +243 -3
- package/src/services/commands-collector.magic.service.d.ts +3 -0
- package/src/services/component-list.magic.service.d.ts +27 -0
- package/src/services/confirmation.components.magic.provider.d.ts +16 -0
- package/src/services/engine.magic.service.d.ts +3 -0
- package/src/services/exit.magic.service.d.ts +6 -0
- package/src/services/magic-color.service.d.ts +6 -0
- package/src/services/magic.providers.d.ts +3 -0
- package/src/services/magic.services.d.ts +6 -0
- package/src/services/router-commands.magic.service.d.ts +6 -0
- package/src/services/subform.magic.service.d.ts +28 -0
- package/src/services/table.magic.service.d.ts +56 -0
- package/src/services/task.magics.service.d.ts +300 -0
- package/src/services/title.magic.service.d.ts +11 -0
- package/src/ui/GuiInteractiveExecutor.d.ts +3 -0
- package/src/ui/components/base-magic-alert.component.d.ts +16 -0
- package/src/ui/components/base-magic-confirm.component.d.ts +18 -0
- package/src/ui/components/magic-alert.component.d.ts +3 -0
- package/src/ui/components/magic-confirmation-box.component.d.ts +3 -0
- package/src/ui/directives/NonMagicControlDirective.d.ts +41 -0
- package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +6 -0
- package/src/ui/directives/magic/checkbox.magic.directive.d.ts +12 -0
- package/src/ui/directives/magic/combobox.magic.directive.d.ts +9 -0
- package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +6 -0
- package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +13 -0
- package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +6 -0
- package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +6 -0
- package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +3 -0
- package/src/ui/directives/magic/row.magic.directive.d.ts +15 -0
- package/src/ui/directives/magic-focus.directive.d.ts +3 -0
- package/src/ui/directives/magic.directive.d.ts +82 -0
- package/src/ui/directives/magicViewContainerRef.directive.d.ts +3 -0
- package/src/ui/directives/mgformat.magic.directive.d.ts +44 -0
- package/src/ui/directives/range-validator.magic.directive.d.ts +16 -0
- package/src/ui/magic-confirmationBox.d.ts +19 -0
- package/src/ui/magic-modal/base-magic-overlay-container.d.ts +9 -0
- package/src/ui/magic-modal/magic-modal-form.d.ts +3 -0
- package/src/ui/magic-modal/magic-modal-interface.d.ts +27 -0
- package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +20 -0
- package/src/ui/magic-modal/magic-overlay-container.d.ts +51 -0
- package/src/ui/magic-root.component.d.ts +42 -0
- package/src/ui/mgerror.magic.component.d.ts +19 -0
- package/src/ui/pipes/date.magic.pipe.d.ts +6 -0
- package/src/ui/pipes/time.magic.pipe.d.ts +3 -0
- package/src/ui/router-container.magic.component.d.ts +19 -0
- package/src/ui/subform.magic.component.d.ts +21 -0
- package/src/ui/task-base.magic.component.d.ts +78 -0
- package/src/ui/utils.d.ts +3 -0
- package/esm2022/index.mjs +0 -59
- package/esm2022/magic-xpa-angular.mjs +0 -2
- package/esm2022/src/controls.metadata.model.mjs +0 -183
- package/esm2022/src/interfaces/sub-form-definition.iterface.mjs +0 -2
- package/esm2022/src/magic.core.module.mjs +0 -159
- package/esm2022/src/services/ISubformMagicService.mjs +0 -2
- package/esm2022/src/services/OverlayWindowService.mjs +0 -245
- package/esm2022/src/services/StylesMapManager.mjs +0 -28
- package/esm2022/src/services/accessor.magic.service.mjs +0 -358
- package/esm2022/src/services/commands-collector.magic.service.mjs +0 -47
- package/esm2022/src/services/component-list.magic.service.mjs +0 -45
- package/esm2022/src/services/confirmation.components.magic.provider.mjs +0 -21
- package/esm2022/src/services/engine.magic.service.mjs +0 -80
- package/esm2022/src/services/exit.magic.service.mjs +0 -13
- package/esm2022/src/services/magic-color.service.mjs +0 -101
- package/esm2022/src/services/magic.lazy.loader.service.mjs +0 -16
- package/esm2022/src/services/magic.providers.mjs +0 -25
- package/esm2022/src/services/magic.services.mjs +0 -36
- package/esm2022/src/services/mg-date-adapter.mjs +0 -108
- package/esm2022/src/services/overlay.conainer.magic.provider.mjs +0 -14
- package/esm2022/src/services/router-commands.magic.service.mjs +0 -31
- package/esm2022/src/services/subform.magic.service.mjs +0 -195
- package/esm2022/src/services/table.magic.service.mjs +0 -81
- package/esm2022/src/services/task.magics.service.mjs +0 -648
- package/esm2022/src/services/title.magic.service.mjs +0 -19
- package/esm2022/src/ui/GuiInteractiveExecutor.mjs +0 -114
- package/esm2022/src/ui/components/base-magic-alert.component.mjs +0 -24
- package/esm2022/src/ui/components/base-magic-confirm.component.mjs +0 -24
- package/esm2022/src/ui/components/magic-alert.component.mjs +0 -36
- package/esm2022/src/ui/components/magic-confirmation-box.component.mjs +0 -42
- package/esm2022/src/ui/directives/NonMagicControlDirective.mjs +0 -58
- package/esm2022/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.mjs +0 -29
- package/esm2022/src/ui/directives/magic/checkbox.magic.directive.mjs +0 -100
- package/esm2022/src/ui/directives/magic/combobox.magic.directive.mjs +0 -37
- package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.mjs +0 -27
- package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +0 -85
- package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.mjs +0 -32
- package/esm2022/src/ui/directives/magic/input.noformcontrol.magic.directive.mjs +0 -28
- package/esm2022/src/ui/directives/magic/nocontrol.magic.directive.mjs +0 -193
- package/esm2022/src/ui/directives/magic/row.magic.directive.mjs +0 -62
- package/esm2022/src/ui/directives/magic-focus.directive.mjs +0 -20
- package/esm2022/src/ui/directives/magic.directive.mjs +0 -232
- package/esm2022/src/ui/directives/magicViewContainerRef.directive.mjs +0 -20
- package/esm2022/src/ui/directives/mgformat.magic.directive.mjs +0 -579
- package/esm2022/src/ui/directives/range-validator.magic.directive.mjs +0 -60
- package/esm2022/src/ui/magic-confirmationBox.mjs +0 -42
- package/esm2022/src/ui/magic-modal/base-magic-overlay-container.mjs +0 -22
- package/esm2022/src/ui/magic-modal/magic-modal-form.mjs +0 -6
- package/esm2022/src/ui/magic-modal/magic-modal-interface.mjs +0 -2
- package/esm2022/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +0 -125
- package/esm2022/src/ui/magic-modal/magic-overlay-container.mjs +0 -162
- package/esm2022/src/ui/magic-root.component.mjs +0 -236
- package/esm2022/src/ui/mgerror.magic.component.mjs +0 -125
- package/esm2022/src/ui/pipes/date.magic.pipe.mjs +0 -106
- package/esm2022/src/ui/pipes/time.magic.pipe.mjs +0 -52
- package/esm2022/src/ui/pipes/time24.magic.pipe.mjs +0 -35
- package/esm2022/src/ui/router-container.magic.component.mjs +0 -115
- package/esm2022/src/ui/subform.magic.component.mjs +0 -56
- package/esm2022/src/ui/task-base.magic.component.mjs +0 -91
- 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,391 @@ 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
|
+
* Validates the control value, using the Magic WebClient
|
211
|
+
* @param controlName Id of validated control
|
212
|
+
* @param value value to be validated
|
213
|
+
* @returns If validation fails, returns error message, else returns null
|
214
|
+
*/
|
62
215
|
ValidateControlValue(controlName: string, value: any): string;
|
216
|
+
/**
|
217
|
+
* @ignore
|
218
|
+
*/
|
63
219
|
GetRangedValue(controlName: string, value: string): string;
|
220
|
+
/**
|
221
|
+
* @ignore
|
222
|
+
*/
|
64
223
|
GetFldRanges(controlName: string): string;
|
224
|
+
/**
|
225
|
+
* returns the value of a property of the control
|
226
|
+
* @param controlId Id of control
|
227
|
+
* @param prop Property
|
228
|
+
* @param guiRowId Row Id, if applicable
|
229
|
+
* @returns Property value
|
230
|
+
*/
|
65
231
|
getProperty(controlId: string, prop: HtmlProperties, guiRowId?: string): any;
|
232
|
+
/**
|
233
|
+
* @ignore
|
234
|
+
*/
|
66
235
|
getPropertyStub(ControlsProperties: any, controlId: any, prop: any): any;
|
236
|
+
/**
|
237
|
+
* @ignore
|
238
|
+
*/
|
67
239
|
getStyleStub(ControlsProperties: any, controlId: any, styleName: string): any;
|
240
|
+
/**
|
241
|
+
* Return the CSS classes used for this control
|
242
|
+
* @param controlId Id of control
|
243
|
+
* @param guiRowId Row Id, if applicable
|
244
|
+
* @returns String containing the classes currently defined for this control
|
245
|
+
*/
|
68
246
|
getClasses(controlId: string, guiRowId?: string): string;
|
247
|
+
/**
|
248
|
+
* Return the value of a style used for a control
|
249
|
+
* @param controlId Id of control
|
250
|
+
* @param styleName Name of style
|
251
|
+
* @param guiRowId Row Id, if applicable
|
252
|
+
* @returns value of style of the control
|
253
|
+
*/
|
69
254
|
getStyle(controlId: string, styleName: string, guiRowId?: string): string;
|
255
|
+
/**
|
256
|
+
* Return the value of a control
|
257
|
+
* @param controlId Id of control
|
258
|
+
* @param guiRowId Row Id, if applicable
|
259
|
+
* @returns value of the control
|
260
|
+
*/
|
70
261
|
getValue(controlId: string, guiRowId?: string): any;
|
262
|
+
/**
|
263
|
+
* Return the formatted value of a control
|
264
|
+
* @param controlId Id of control
|
265
|
+
* @param guiRowId Row Id, if applicable
|
266
|
+
* @returns value of the control
|
267
|
+
*/
|
71
268
|
getFormattedValue(controlName: string, val: any, rowId?: string): string;
|
269
|
+
/**
|
270
|
+
* Sets the value of a control
|
271
|
+
* @param controlId Id of control
|
272
|
+
* @param guiRowId Row Id, if applicable
|
273
|
+
* @param value Value to set
|
274
|
+
*/
|
72
275
|
setValue(controlId: string, guiRowId: string, value: any): void;
|
276
|
+
/**
|
277
|
+
* @ignore
|
278
|
+
*/
|
73
279
|
protected executeInteractiveCommand(guiInteractiveCommand: GuiInteractive): void;
|
280
|
+
/**
|
281
|
+
* @ignore
|
282
|
+
*/
|
74
283
|
handleSetProperty(command: GuiCommand, isTableChild: boolean): void;
|
75
284
|
executeCommand(command: GuiCommand): void;
|
285
|
+
/**
|
286
|
+
custom validator
|
287
|
+
*/
|
76
288
|
customValidator(rowid: string, id: string): ValidatorFn;
|
289
|
+
/**
|
290
|
+
* COnvert a value from Magic format to native 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
|
+
*/
|
77
296
|
ConvertValToNative(controlId: string, rowId: number, val: any): any;
|
297
|
+
/**
|
298
|
+
* Convert a value from native to Magic format
|
299
|
+
* @param controlId Id of control
|
300
|
+
* @param rowId Row Id, if applicable
|
301
|
+
* @param val Value to convert
|
302
|
+
* @returns Converted value
|
303
|
+
*/
|
78
304
|
ConvertValFromNative(controlId: string, rowId: number, val: any): any;
|
305
|
+
/**
|
306
|
+
* Handle resize and also fetch chunk of records if having an empty view.
|
307
|
+
* @ignore
|
308
|
+
* @param pageSize : PageSize
|
309
|
+
* @param topGuiRowId : GuiRowId of first record in view.
|
310
|
+
*/
|
79
311
|
resize(pageSize: number, topGuiRowId: number): void;
|
312
|
+
/**
|
313
|
+
* Fetches data for new table rows when scrolling done
|
314
|
+
*/
|
80
315
|
onScrollDown(): void;
|
316
|
+
/**
|
317
|
+
* Sets the new browser window title
|
318
|
+
* @param newTitle New window title
|
319
|
+
*/
|
81
320
|
setTitle(newTitle: string): void;
|
321
|
+
/**
|
322
|
+
* @ignore
|
323
|
+
*/
|
82
324
|
getGuiRowId(dvRowId: number, isTableControl: boolean): number;
|
325
|
+
/**
|
326
|
+
*
|
327
|
+
* @ignore
|
328
|
+
*/
|
83
329
|
getDvRowId(guiRowId: number): number;
|
330
|
+
/**
|
331
|
+
* Clean up the service when it is no longer needed
|
332
|
+
*/
|
84
333
|
dispose(): void;
|
334
|
+
/**
|
335
|
+
* Handle the Combobox "change" event
|
336
|
+
* @param event The event received from the UI
|
337
|
+
* @param idx Id of the control raising the event
|
338
|
+
* @param line Row Id, if applicable
|
339
|
+
*/
|
85
340
|
onComboboxSelectionChanged(event: Event, idx: string, line: number): void;
|
341
|
+
/**
|
342
|
+
* Handle the Listbox "change" event
|
343
|
+
* @param event The event received from the UI
|
344
|
+
* @param idx Id of the control raising the event
|
345
|
+
*/
|
86
346
|
onListBoxSelectionChanged(event: Event, idx: string): void;
|
347
|
+
/**
|
348
|
+
* Handle the Checkbox "change" event
|
349
|
+
* @param event The event received from the UI
|
350
|
+
* @param idx Id of the control raising the event
|
351
|
+
* @param rowId Row Id, if applicable
|
352
|
+
*/
|
87
353
|
onCheckChanged(event: Event, idx: string, rowId: number): void;
|
354
|
+
/**
|
355
|
+
* Handle tab selection change, caused by UI events
|
356
|
+
* @param idx Id of the control raising the event
|
357
|
+
* @param layer Id of selected tabpage
|
358
|
+
*/
|
88
359
|
mgOnTabSelectionChanged(idx: string, layer: number): void;
|
360
|
+
/**
|
361
|
+
* Handle the Radio button "change" event
|
362
|
+
* @param event The event received from the UI
|
363
|
+
* @param idx Id of the control raising the event
|
364
|
+
*/
|
89
365
|
mgOnRadioSelectionChanged(idx: string): void;
|
366
|
+
/**
|
367
|
+
* Inserts the "close" event to the magic WebClient event queue
|
368
|
+
*/
|
90
369
|
close(): void;
|
370
|
+
/**
|
371
|
+
* @ignore
|
372
|
+
*/
|
91
373
|
IsStub(): boolean;
|
374
|
+
/**
|
375
|
+
* @ignore
|
376
|
+
*/
|
92
377
|
jsonData: string;
|
378
|
+
/**
|
379
|
+
* @ignore
|
380
|
+
*/
|
93
381
|
saveData(data: string): void;
|
382
|
+
/**
|
383
|
+
* @ignore
|
384
|
+
*/
|
94
385
|
createData(): void;
|
386
|
+
/**
|
387
|
+
* @ignore
|
388
|
+
*/
|
95
389
|
loadStubData(stubData: any): void;
|
390
|
+
/**
|
391
|
+
* @ignore
|
392
|
+
*/
|
96
393
|
loadData(): void;
|
394
|
+
/**
|
395
|
+
* @ignore
|
396
|
+
*/
|
97
397
|
setStubValue(guiRowId: number, fc: FormControl, name: string): void;
|
98
398
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaskMagicService, never>;
|
99
399
|
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>;
|