@magic-xpa/engine 4.901.0 → 4.1000.0-Time24h-dev4100.351
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/src/ClientManager.mjs +12 -12
- package/esm2020/src/ConstInterface.mjs +3 -2
- package/esm2020/src/CurrentClientVersion.mjs +2 -2
- package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +10 -2
- 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 +10 -1
- package/esm2020/src/event/IEventsManager.mjs +1 -1
- package/esm2020/src/event/RunTimeEvent.mjs +16 -16
- package/esm2020/src/exp/ExpressionDict.mjs +8 -8
- package/esm2020/src/exp/ExpressionEvaluator.mjs +24 -176
- package/esm2020/src/gui/FormsTable.mjs +8 -8
- package/esm2020/src/gui/MgControl.mjs +10 -13
- package/esm2020/src/gui/MgForm.mjs +7 -2
- 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/fesm2015/magic-xpa-engine.mjs +550 -567
- package/fesm2015/magic-xpa-engine.mjs.map +1 -1
- package/fesm2020/magic-xpa-engine.mjs +551 -541
- package/fesm2020/magic-xpa-engine.mjs.map +1 -1
- package/package.json +6 -6
- package/src/ConstInterface.d.ts +2 -1
- package/src/commands/ClientToServer/CommandFactory.d.ts +3 -0
- package/src/env/Environment.d.ts +2 -0
- package/src/event/EventsManager.d.ts +3 -0
- package/src/event/IEventsManager.d.ts +2 -0
- package/src/exp/ExpressionEvaluator.d.ts +1 -9
- package/src/gui/MgControl.d.ts +0 -1
- 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.
|
|
3
|
+
"version": "4.1000.0-Time24h-dev4100.351",
|
|
4
4
|
"description": "magic engine package",
|
|
5
5
|
"license": "SEE LICENSE IN EULA.pdf",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@magic-xpa/mscorelib": "4.
|
|
8
|
-
"@magic-xpa/utils": "4.
|
|
9
|
-
"@magic-xpa/gui": "4.
|
|
7
|
+
"@magic-xpa/mscorelib": "4.1000.0-Time24h-dev4100.351",
|
|
8
|
+
"@magic-xpa/utils": "4.1000.0-Time24h-dev4100.351",
|
|
9
|
+
"@magic-xpa/gui": "4.1000.0-Time24h-dev4100.351",
|
|
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
|
@@ -60,7 +60,6 @@ export declare class ConstInterface {
|
|
|
60
60
|
static MG_TAG_EXEC_STACK_ENTRY: string;
|
|
61
61
|
static MG_TAG_DBH_REAL_IDXS: string;
|
|
62
62
|
static MG_TAG_USER_DETAILS: string;
|
|
63
|
-
s: any;
|
|
64
63
|
static MG_ATTR_OBJECT: string;
|
|
65
64
|
static MG_ATTR_ARGLIST: string;
|
|
66
65
|
static MG_ATTR_VIRTUAL: string;
|
|
@@ -232,6 +231,7 @@ export declare class ConstInterface {
|
|
|
232
231
|
static MG_ATTR_LOCAL_EXTRA_GENGO: string;
|
|
233
232
|
static MG_ATTR_LOCAL_FLAGS: string;
|
|
234
233
|
static MG_ATTR_SPEACIAL_ANSI_EXP: string;
|
|
234
|
+
static MG_ATTR_SPECIAL_IMMEDIATE_HANDLER_END: string;
|
|
235
235
|
static MG_ATTR_SPECIAL_SHOW_STATUSBAR_PANES: string;
|
|
236
236
|
static MG_ATTR_SPECIAL_ROUTE_TO_ROOT_PROG_ON_CONTEXT_RECREATION: string;
|
|
237
237
|
static MG_ATTR_SPECIAL_SPECIAL_EDIT_LEFT_ALIGN: string;
|
|
@@ -436,6 +436,7 @@ export declare class ConstInterface {
|
|
|
436
436
|
static WEBCLIENT_REINITIALIZE_REQUEST: string;
|
|
437
437
|
static MAIN_PROG_VIEW: string;
|
|
438
438
|
static GLOBAL_PARAM_LIST: string;
|
|
439
|
+
static ENV_VAR_LIST: string;
|
|
439
440
|
static LAST_EXCEPTION: string;
|
|
440
441
|
static CTX_REMOVED_FROM_SRVR: string;
|
|
441
442
|
static LAST_ROUTE_EVENT: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MgControlBase } from '@magic-xpa/gui';
|
|
1
2
|
import { StorageAttribute } from '@magic-xpa/utils';
|
|
2
3
|
import { EventCommand } from './EventCommand';
|
|
3
4
|
import { RollbackEventCommand, RollbackEventCommand_RollbackType } from './RollbackEventCommand';
|
|
@@ -29,10 +30,12 @@ import { GlobalParamsQueryCommand } from './GlobalParamsQueryCommand';
|
|
|
29
30
|
import { IniputForceWriteCommand } from './IniputForceWriteCommand';
|
|
30
31
|
import { ContextTerminationEventCommand } from './ContextTerminationEventCommand';
|
|
31
32
|
import { ContextTimeoutResetCommand } from './ContextTimeoutResetCommand';
|
|
33
|
+
import { ControlItemsRefreshCommand } from './ControlItemsRefreshCommand';
|
|
32
34
|
export declare class CommandFactory {
|
|
33
35
|
static CreateEventCommand(taskTag: string, magicEvent: number): EventCommand;
|
|
34
36
|
static CreateRollbackEventCommand(taskTag: string, rollbackType: RollbackEventCommand_RollbackType): RollbackEventCommand;
|
|
35
37
|
static CreateDataViewCommand(taskId: string, commandType: DataViewCommandType): DataviewCommand;
|
|
38
|
+
static CreateControlItemsRefreshCommand(taskId: string, control: MgControlBase): ControlItemsRefreshCommand;
|
|
36
39
|
static CreateAddUserRangeDataviewCommand(taskId: string, userRange: UserRange): AddUserRangeDataviewCommand;
|
|
37
40
|
static CreateAddUserSortDataviewCommand(taskId: string, sort: Sort): AddUserSortDataViewCommand;
|
|
38
41
|
static CreateAddUserLocateDataviewCommand(taskId: string, userRange: UserRange): AddUserLocateDataViewCommand;
|
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();
|
|
@@ -198,4 +199,6 @@ export declare class EventsManager implements IEventsManager {
|
|
|
198
199
|
ProcessAbortingError(ex: ApplicationException): Promise<void>;
|
|
199
200
|
processHTMLContent(htmlContent: string): void;
|
|
200
201
|
ShowErrorInMessageBox(ex: ApplicationException): boolean;
|
|
202
|
+
getIsInViewRefresh(): boolean;
|
|
203
|
+
setIsInViewRefresh(inViewRefresh: boolean): void;
|
|
201
204
|
}
|
|
@@ -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
|
}
|
|
@@ -93,6 +93,7 @@ export declare class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
93
93
|
private eval_op_varinp;
|
|
94
94
|
private eval_op_varname;
|
|
95
95
|
private eval_op_VarDisplayName;
|
|
96
|
+
private eval_op_controlItemRefresh;
|
|
96
97
|
private eval_op_VarControlID;
|
|
97
98
|
private eval_op_ControlItemsList;
|
|
98
99
|
private eval_op_ControlDisplayList;
|
|
@@ -111,7 +112,6 @@ export declare class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
111
112
|
private eval_op_stat;
|
|
112
113
|
private eval_op_subformExecMode;
|
|
113
114
|
private eval_op_varset;
|
|
114
|
-
private eval_op_rollback;
|
|
115
115
|
private eval_op_like;
|
|
116
116
|
private static cutArray;
|
|
117
117
|
private eval_op_repstr;
|
|
@@ -145,15 +145,7 @@ export declare class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
145
145
|
private eval_op_dbviewrowidx;
|
|
146
146
|
private eval_op_MlsTrans;
|
|
147
147
|
private eval_op_StrBuild;
|
|
148
|
-
private eval_op_range_add;
|
|
149
|
-
private eval_op_range_reset;
|
|
150
|
-
private eval_op_locate_add;
|
|
151
|
-
private eval_op_locate_reset;
|
|
152
|
-
private eval_op_sort_add;
|
|
153
|
-
private eval_op_sort_reset;
|
|
154
148
|
private eval_op_tsk_instance;
|
|
155
|
-
private add_sort;
|
|
156
|
-
private add_rt_ranges;
|
|
157
149
|
private eval_op_getParam;
|
|
158
150
|
private eval_op_setParam;
|
|
159
151
|
private eval_op_iniput;
|
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;
|
|
@@ -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