@magic-xpa/engine 4.1000.0-dev4100.43 → 4.1000.0-dev4100.436
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/esm2020/index.mjs +1 -1
- package/esm2020/src/ClientManager.mjs +17 -14
- package/esm2020/src/ConstInterface.mjs +3 -1
- package/esm2020/src/CurrentClientVersion.mjs +2 -2
- package/esm2020/src/GuiEventsProcessor.mjs +5 -5
- package/esm2020/src/commands/ClientToServer/DataviewCommand.mjs +6 -6
- package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +4 -4
- package/esm2020/src/commands/ClientToServer/EventCommand.mjs +8 -8
- package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +4 -4
- package/esm2020/src/commands/ClientToServer/IniputForceWriteCommand.mjs +5 -5
- package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +7 -7
- package/esm2020/src/commands/ClientToServer/TransactionCommand.mjs +6 -6
- package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +8 -8
- package/esm2020/src/commands/ServerToClient/ResultCommand.mjs +7 -7
- package/esm2020/src/data/DataView.mjs +34 -34
- package/esm2020/src/data/DataviewManager.mjs +7 -7
- package/esm2020/src/data/Record.mjs +10 -10
- package/esm2020/src/data/TaskTransactionManager.mjs +4 -4
- package/esm2020/src/data/XMLBasedDcValuesBuilder.mjs +5 -5
- package/esm2020/src/env/Environment.mjs +14 -7
- package/esm2020/src/env/MirrorString.mjs +2 -3
- package/esm2020/src/event/Event.mjs +4 -1
- package/esm2020/src/event/EventHandler.mjs +8 -3
- package/esm2020/src/event/EventHandlerPosition.mjs +5 -1
- package/esm2020/src/event/EventsManager.mjs +27 -5
- package/esm2020/src/event/IEventsManager.mjs +1 -1
- package/esm2020/src/event/RunTimeEvent.mjs +23 -16
- package/esm2020/src/exp/ExpressionDict.mjs +8 -8
- package/esm2020/src/exp/ExpressionEvaluator.mjs +9 -179
- package/esm2020/src/gui/FormsTable.mjs +8 -8
- package/esm2020/src/gui/MgControl.mjs +10 -13
- package/esm2020/src/gui/MgForm.mjs +11 -28
- package/esm2020/src/http/HttpManager.mjs +8 -8
- package/esm2020/src/remote/RemoteCommandsProcessor.mjs +47 -27
- package/esm2020/src/rt/DataviewHeaderBase.mjs +16 -16
- package/esm2020/src/security/UserDetails.mjs +12 -12
- package/esm2020/src/tasks/MGData.mjs +4 -4
- package/esm2020/src/tasks/RCTimer.mjs +10 -10
- package/esm2020/src/tasks/Task.mjs +43 -42
- package/esm2020/src/util/FlowMonitorQueue.mjs +107 -2
- package/esm2020/src/util/PrmMap.mjs +6 -6
- package/esm2020/src/util/ReturnResult.mjs +7 -7
- package/esm2020/src/util/Scrambler.mjs +3 -1
- package/fesm2015/magic-xpa-engine.mjs +548 -591
- package/fesm2015/magic-xpa-engine.mjs.map +1 -1
- package/fesm2020/magic-xpa-engine.mjs +536 -547
- package/fesm2020/magic-xpa-engine.mjs.map +1 -1
- package/package.json +6 -6
- package/src/ConstInterface.d.ts +2 -0
- package/src/env/Environment.d.ts +2 -0
- package/src/event/EventsManager.d.ts +4 -0
- package/src/event/IEventsManager.d.ts +2 -0
- package/src/event/RunTimeEvent.d.ts +3 -0
- package/src/exp/ExpressionEvaluator.d.ts +1 -10
- package/src/gui/MgControl.d.ts +0 -1
- package/src/gui/MgForm.d.ts +1 -3
- package/src/remote/RemoteCommandsProcessor.d.ts +1 -0
- package/src/util/FlowMonitorQueue.d.ts +8 -0
- package/src/util/PrmMap.d.ts +1 -1
- package/magic-xpa-engine.d.ts +0 -2
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@magic-xpa/engine",
|
3
|
-
"version": "4.1000.0-dev4100.
|
3
|
+
"version": "4.1000.0-dev4100.436",
|
4
4
|
"description": "magic engine package",
|
5
5
|
"license": "SEE LICENSE IN EULA.pdf",
|
6
6
|
"dependencies": {
|
7
|
-
"@magic-xpa/mscorelib": "4.1000.0-dev4100.
|
8
|
-
"@magic-xpa/utils": "4.1000.0-dev4100.
|
9
|
-
"@magic-xpa/gui": "4.1000.0-dev4100.
|
7
|
+
"@magic-xpa/mscorelib": "4.1000.0-dev4100.436",
|
8
|
+
"@magic-xpa/utils": "4.1000.0-dev4100.436",
|
9
|
+
"@magic-xpa/gui": "4.1000.0-dev4100.436",
|
10
10
|
"@angular/http": "^7.1.0",
|
11
11
|
"tslib": "^2.3.0"
|
12
12
|
},
|
@@ -15,13 +15,13 @@
|
|
15
15
|
"esm2020": "esm2020/magic-xpa-engine.mjs",
|
16
16
|
"fesm2020": "fesm2020/magic-xpa-engine.mjs",
|
17
17
|
"fesm2015": "fesm2015/magic-xpa-engine.mjs",
|
18
|
-
"typings": "
|
18
|
+
"typings": "index.d.ts",
|
19
19
|
"exports": {
|
20
20
|
"./package.json": {
|
21
21
|
"default": "./package.json"
|
22
22
|
},
|
23
23
|
".": {
|
24
|
-
"types": "./
|
24
|
+
"types": "./index.d.ts",
|
25
25
|
"esm2020": "./esm2020/magic-xpa-engine.mjs",
|
26
26
|
"es2020": "./fesm2020/magic-xpa-engine.mjs",
|
27
27
|
"es2015": "./fesm2015/magic-xpa-engine.mjs",
|
package/src/ConstInterface.d.ts
CHANGED
@@ -231,6 +231,7 @@ export declare class ConstInterface {
|
|
231
231
|
static MG_ATTR_LOCAL_EXTRA_GENGO: string;
|
232
232
|
static MG_ATTR_LOCAL_FLAGS: string;
|
233
233
|
static MG_ATTR_SPEACIAL_ANSI_EXP: string;
|
234
|
+
static MG_ATTR_SPECIAL_IMMEDIATE_HANDLER_END: string;
|
234
235
|
static MG_ATTR_SPECIAL_SHOW_STATUSBAR_PANES: string;
|
235
236
|
static MG_ATTR_SPECIAL_ROUTE_TO_ROOT_PROG_ON_CONTEXT_RECREATION: string;
|
236
237
|
static MG_ATTR_SPECIAL_SPECIAL_EDIT_LEFT_ALIGN: string;
|
@@ -435,6 +436,7 @@ export declare class ConstInterface {
|
|
435
436
|
static WEBCLIENT_REINITIALIZE_REQUEST: string;
|
436
437
|
static MAIN_PROG_VIEW: string;
|
437
438
|
static GLOBAL_PARAM_LIST: string;
|
439
|
+
static ENV_VAR_LIST: string;
|
438
440
|
static LAST_EXCEPTION: string;
|
439
441
|
static CTX_REMOVED_FROM_SRVR: string;
|
440
442
|
static LAST_ROUTE_EVENT: string;
|
package/src/env/Environment.d.ts
CHANGED
@@ -25,6 +25,7 @@ export declare class Environment implements IEnvironment {
|
|
25
25
|
private _debugMode;
|
26
26
|
private _significantNumSize;
|
27
27
|
private _specialAnsiExpression;
|
28
|
+
private _specialImmediatehandlerEnd;
|
28
29
|
private _specialShowStatusBarPanes;
|
29
30
|
private _specialRouteToRootProgOnContextRecreation;
|
30
31
|
private _specialCancelOnCreate;
|
@@ -77,6 +78,7 @@ export declare class Environment implements IEnvironment {
|
|
77
78
|
GetLocalAs400Set(): boolean;
|
78
79
|
getLocalExtraGengo(): string;
|
79
80
|
GetLocalFlag(f: string): boolean;
|
81
|
+
getSpecialImmediateHandlerEnd(): boolean;
|
80
82
|
getSpecialAnsiExpression(): boolean;
|
81
83
|
getSpecialShowStatusBarPanes(): boolean;
|
82
84
|
getTerminal(): number;
|
@@ -53,6 +53,7 @@ export declare class EventsManager implements IEventsManager {
|
|
53
53
|
static Instance: EventsManager;
|
54
54
|
private _lastFailedFocusedControl;
|
55
55
|
private isSpinnerShown;
|
56
|
+
private isInViewRefresh;
|
56
57
|
SpinnerStopped: Subject<number>;
|
57
58
|
static clientBusyTimeStart: number;
|
58
59
|
private constructor();
|
@@ -112,6 +113,7 @@ export declare class EventsManager implements IEventsManager {
|
|
112
113
|
private handleFocus;
|
113
114
|
private HandleSubformModality;
|
114
115
|
private handleFocusOnNonMagicControl;
|
116
|
+
private HandleZoomIfNeeded;
|
115
117
|
private canGoToControl;
|
116
118
|
private handleTimer;
|
117
119
|
private handleContextInactivityAlert;
|
@@ -198,4 +200,6 @@ export declare class EventsManager implements IEventsManager {
|
|
198
200
|
ProcessAbortingError(ex: ApplicationException): Promise<void>;
|
199
201
|
processHTMLContent(htmlContent: string): void;
|
200
202
|
ShowErrorInMessageBox(ex: ApplicationException): boolean;
|
203
|
+
getIsInViewRefresh(): boolean;
|
204
|
+
setIsInViewRefresh(inViewRefresh: boolean): void;
|
201
205
|
}
|
@@ -72,4 +72,6 @@ export interface IEventsManager extends IGuiEventsManager {
|
|
72
72
|
checkAndSaveRouteEventIfCtxRemovedFromSrvr(rtEvent: any): void;
|
73
73
|
CheckAndShowSpinner(show: boolean): Promise<void>;
|
74
74
|
SpinnerStopped: Subject<number>;
|
75
|
+
getIsInViewRefresh(): boolean;
|
76
|
+
setIsInViewRefresh(inViewRefresh: boolean): void;
|
75
77
|
}
|
@@ -34,6 +34,9 @@ export declare class RunTimeEvent extends RunTimeEventBase implements IComparabl
|
|
34
34
|
private _task;
|
35
35
|
private _taskTag;
|
36
36
|
private _val;
|
37
|
+
private _shouldHandleZoom;
|
38
|
+
set ShouldHandleZoom(value: boolean);
|
39
|
+
get ShouldHandleZoom(): boolean;
|
37
40
|
set Control(value: MgControlBase);
|
38
41
|
set DisplayLine(value: number);
|
39
42
|
get Control(): MgControlBase;
|
@@ -112,7 +112,6 @@ export declare class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
112
112
|
private eval_op_stat;
|
113
113
|
private eval_op_subformExecMode;
|
114
114
|
private eval_op_varset;
|
115
|
-
private eval_op_rollback;
|
116
115
|
private eval_op_like;
|
117
116
|
private static cutArray;
|
118
117
|
private eval_op_repstr;
|
@@ -146,15 +145,7 @@ export declare class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
146
145
|
private eval_op_dbviewrowidx;
|
147
146
|
private eval_op_MlsTrans;
|
148
147
|
private eval_op_StrBuild;
|
149
|
-
private eval_op_range_add;
|
150
|
-
private eval_op_range_reset;
|
151
|
-
private eval_op_locate_add;
|
152
|
-
private eval_op_locate_reset;
|
153
|
-
private eval_op_sort_add;
|
154
|
-
private eval_op_sort_reset;
|
155
148
|
private eval_op_tsk_instance;
|
156
|
-
private add_sort;
|
157
|
-
private add_rt_ranges;
|
158
149
|
private eval_op_getParam;
|
159
150
|
private eval_op_setParam;
|
160
151
|
private eval_op_iniput;
|
@@ -173,7 +164,7 @@ export declare class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
173
164
|
eval_op_set_title(resVal: ExpVal, title: ExpVal): void;
|
174
165
|
eval_op_is_row_editing(resVal: ExpVal, val1: ExpVal): void;
|
175
166
|
eval_op_control_select_program(expVal: ExpVal, resVal: ExpVal): Promise<void>;
|
176
|
-
eval_op_CallJS(task: ITask, methodName: string, expVal: ExpVal[], resVal: ExpVal): void
|
167
|
+
eval_op_CallJS(task: ITask, methodName: string, expVal: ExpVal[], resVal: ExpVal): Promise<void>;
|
177
168
|
eval_op_set_cookie(cookieName: string, expVal: ExpVal[], resVal: ExpVal): any;
|
178
169
|
eval_op_get_cookie(cookieName: string, resVal: ExpVal): void;
|
179
170
|
eval_op_delete_cookie(cookieName: string, resVal: ExpVal): void;
|
package/src/gui/MgControl.d.ts
CHANGED
@@ -50,7 +50,6 @@ export declare class MgControl extends MgControlBase implements PropParentInterf
|
|
50
50
|
GetTableBehaviour(): TableBehaviour;
|
51
51
|
validateAndSetValue(NewValue: any, updateCtrl: boolean): Promise<boolean>;
|
52
52
|
private setValue;
|
53
|
-
refreshAndSetItemsListForRadioButton(line: number, execComputeChoice: boolean): Promise<void>;
|
54
53
|
getSubformTask(): TaskBase;
|
55
54
|
resetSubformTask(): void;
|
56
55
|
GetSubformMgForm(): MgFormBase;
|
package/src/gui/MgForm.d.ts
CHANGED
@@ -23,9 +23,7 @@ export declare class MgForm extends MgFormBase {
|
|
23
23
|
get shouldFetchRecordsAheadFromServer(): boolean;
|
24
24
|
FetchRecordsAheadFromServer(): Promise<void>;
|
25
25
|
private GetDataview;
|
26
|
-
moveInView(unit: string, direction: string
|
27
|
-
private moveInView_0;
|
28
|
-
private moveInView_1;
|
26
|
+
moveInView(unit: string, direction: string): Promise<void>;
|
29
27
|
addRec(doSuffix: boolean, isCrelineAbove: boolean): Promise<void>;
|
30
28
|
delCurrRec(): Promise<void>;
|
31
29
|
cancelEdit(isActCancel: boolean, isQuitEvent: boolean): Promise<void>;
|
@@ -32,6 +32,7 @@ export declare class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
32
32
|
private BuildXMLForMainProgramDataView;
|
33
33
|
Execute_1(sendingInstruction: CommandsProcessorBase_SendingInstruction, sessionStage: CommandsProcessorBase_SessionStage, res: IResultValue): Promise<void>;
|
34
34
|
private DispatchRequest;
|
35
|
+
clearLocalStorage(): void;
|
35
36
|
private HandleErrorResponse;
|
36
37
|
private ExecuteRequest;
|
37
38
|
GetContent(requestedURL: string, useCache: boolean, requestContent?: string): Promise<string>;
|
@@ -2,8 +2,10 @@ import { IFlowMonitorQueue } from '@magic-xpa/gui';
|
|
2
2
|
import { StringBuilder } from '@magic-xpa/mscorelib';
|
3
3
|
import { XmlParser } from '@magic-xpa/utils';
|
4
4
|
import { Operation } from '../rt/Operation';
|
5
|
+
import { Task } from '../tasks/Task';
|
5
6
|
export declare class FlowMonitorQueue implements IFlowMonitorQueue {
|
6
7
|
private static _instance;
|
8
|
+
private static UNPRINTABLE_STR_LOG;
|
7
9
|
private static S_EVENT_STR1;
|
8
10
|
private static S_EVENT_STR2;
|
9
11
|
private static S_EVENT_PROPAGATED;
|
@@ -40,6 +42,7 @@ export declare class FlowMonitorQueue implements IFlowMonitorQueue {
|
|
40
42
|
private _isRecompute;
|
41
43
|
private _isTask;
|
42
44
|
private _isTaskFlow;
|
45
|
+
private _isDataView;
|
43
46
|
ShouldSerialize: boolean;
|
44
47
|
static get Instance(): FlowMonitorQueue;
|
45
48
|
addTaskCngMode(newTaskMode: string, taskInfo: string): void;
|
@@ -49,6 +52,11 @@ export declare class FlowMonitorQueue implements IFlowMonitorQueue {
|
|
49
52
|
isEmpty(): boolean;
|
50
53
|
enable(value: boolean): boolean;
|
51
54
|
addTaskEvent(triggeredBy: string, state: number, taskInfo: string): void;
|
55
|
+
private appendVirtualsAndParameters;
|
56
|
+
addDataViewFlow(task: Task): void;
|
57
|
+
private getFieldData;
|
58
|
+
private PrepareDisplayString;
|
59
|
+
private padRight;
|
52
60
|
addTaskFlowRec(id: number, state: number, taskInfo: string): void;
|
53
61
|
addTaskFlowFld(id: number, fldName: string, state: number, taskInfo: string): void;
|
54
62
|
addTaskFlowCtrl(id: number, ctrlName: string, state: number, taskInfo: string): void;
|
package/src/util/PrmMap.d.ts
CHANGED
@@ -22,7 +22,7 @@ export declare class MirrorPrmMap<TValue extends IMirrorXML> extends PrmMap<TVal
|
|
22
22
|
CheckIfSystemReservedParam(key: any): boolean;
|
23
23
|
mirrorToXML(): string;
|
24
24
|
fillData(parser: XmlParser): void;
|
25
|
-
|
25
|
+
RestoreParams(xml: string): void;
|
26
26
|
mirrorFromXML(foundTagName: string, xmlParser: XmlParser): boolean;
|
27
27
|
fillDataEntry(xmlParser: XmlParser): void;
|
28
28
|
}
|
package/magic-xpa-engine.d.ts
DELETED