@magic-xpa/engine 4.801.0-dev481.241 → 4.801.0-dev481.245
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/bundles/magic-xpa-engine.umd.js +49 -47
- package/bundles/magic-xpa-engine.umd.js.map +1 -1
- package/bundles/magic-xpa-engine.umd.min.js +2 -2
- package/bundles/magic-xpa-engine.umd.min.js.map +1 -1
- package/esm2015/index.js +3 -1
- package/esm2015/src/AccessHelper.js +1 -1
- package/esm2015/src/CommandsProcessorBase.js +2 -2
- package/esm2015/src/CurrentClientVersion.js +2 -2
- package/esm2015/src/commands/ClientToServer/BrowserEscEventCommand.js +2 -3
- package/esm2015/src/data/DataView.js +2 -3
- package/esm2015/src/data/Field.js +2 -3
- package/esm2015/src/data/Record.js +2 -3
- package/esm2015/src/env/EnvVariablesTable.js +4 -65
- package/esm2015/src/env/LanguageData.js +2 -3
- package/esm2015/src/env/MirrorString.js +66 -0
- package/esm2015/src/event/EventHandler.js +2 -3
- package/esm2015/src/event/EventHandlerPosition.js +2 -2
- package/esm2015/src/event/EventsManager.js +2 -3
- package/esm2015/src/exp/ExpressionEvaluator.js +2 -3
- package/esm2015/src/exp/GlobalParamsTable.js +3 -2
- package/esm2015/src/gui/MgForm.js +2 -3
- package/esm2015/src/http/client/HttpClientBase.js +2 -3
- package/esm2015/src/remote/RemoteCommandsProcessor.js +2 -3
- package/esm2015/src/remote/ServerError.js +2 -3
- package/esm2015/src/rt/DataviewHeadersSaxHandler.js +2 -3
- package/esm2015/src/tasks/Task.js +2 -3
- package/esm2015/src/util/IMirrorXML.js +1 -1
- package/esm2015/src/util/ParamParseResult.js +8 -0
- package/esm2015/src/util/PrmMap.js +2 -8
- package/fesm2015/magic-xpa-engine.js +6 -5
- package/fesm2015/magic-xpa-engine.js.map +1 -1
- package/index.d.ts +2 -0
- package/package.json +4 -4
- package/src/AccessHelper.d.ts +1 -1
- package/src/env/EnvVariablesTable.d.ts +2 -15
- package/src/env/MirrorString.d.ts +15 -0
- package/src/exp/GlobalParamsTable.d.ts +2 -1
- package/src/util/IMirrorXML.d.ts +1 -1
- package/src/util/ParamParseResult.d.ts +6 -0
- package/src/util/PrmMap.d.ts +0 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@magic-xpa/mscorelib'), require('@magic-xpa/utils'), require('@magic-xpa/gui'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@magic-xpa/engine', ['exports', '@magic-xpa/mscorelib', '@magic-xpa/utils', '@magic-xpa/gui', '
|
|
4
|
-
(global = global || self, factory((global['magic-xpa'] = global['magic-xpa'] || {}, global['magic-xpa'].engine = {}), global.mscorelib, global.utils, global.gui, global.
|
|
5
|
-
}(this, (function (exports, mscorelib, utils, gui,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@magic-xpa/mscorelib'), require('@magic-xpa/utils'), require('@magic-xpa/gui'), require('@angular/common/http'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@magic-xpa/engine', ['exports', '@magic-xpa/mscorelib', '@magic-xpa/utils', '@magic-xpa/gui', '@angular/common/http', 'rxjs'], factory) :
|
|
4
|
+
(global = global || self, factory((global['magic-xpa'] = global['magic-xpa'] || {}, global['magic-xpa'].engine = {}), global.mscorelib, global.utils, global.gui, global.ng.common.http, global.rxjs));
|
|
5
|
+
}(this, (function (exports, mscorelib, utils, gui, http, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var AccessHelper = /** @class */ (function () {
|
|
8
8
|
function AccessHelper() {
|
|
@@ -5318,7 +5318,7 @@
|
|
|
5318
5318
|
return __generator(this, function (_a) {
|
|
5319
5319
|
switch (_a.label) {
|
|
5320
5320
|
case 0:
|
|
5321
|
-
if (!
|
|
5321
|
+
if (!mscorelib.isNullOrUndefined(sessionStage)) return [3 /*break*/, 2];
|
|
5322
5322
|
return [4 /*yield*/, this.Execute_0(sendingInstruction)];
|
|
5323
5323
|
case 1:
|
|
5324
5324
|
_a.sent();
|
|
@@ -5455,7 +5455,7 @@
|
|
|
5455
5455
|
if (response != null) {
|
|
5456
5456
|
utils.Logger.Instance.WriteServerToLog("Incoming Headers : " + HttpClientBase.HeadersToString(response.headers, true));
|
|
5457
5457
|
nextSessionCounterString = response.headers.get("MgxpaNextSessionCounter".toLowerCase());
|
|
5458
|
-
if (!
|
|
5458
|
+
if (!mscorelib.isNullOrUndefined(nextSessionCounterString)) {
|
|
5459
5459
|
HttpClientEvents.CheckAndSetSessionCounter(+nextSessionCounterString);
|
|
5460
5460
|
}
|
|
5461
5461
|
}
|
|
@@ -5508,12 +5508,12 @@
|
|
|
5508
5508
|
if (httpMethod === exports.RequestMethod.Post) {
|
|
5509
5509
|
}
|
|
5510
5510
|
requestTime = utils.Misc.getSystemMilliseconds();
|
|
5511
|
-
this.LogRequestInfo(!
|
|
5511
|
+
this.LogRequestInfo(!mscorelib.isNullOrUndefined(requestContent) ? requestContent.length : 0, requestTime, false);
|
|
5512
5512
|
return [4 /*yield*/, this.sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer)];
|
|
5513
5513
|
case 3:
|
|
5514
5514
|
httpResponse = _a.sent();
|
|
5515
5515
|
this.logResponse(httpResponse, clientID, urlString, contentFromServer, timeBeforeRequest);
|
|
5516
|
-
this.LogRequestInfo(!
|
|
5516
|
+
this.LogRequestInfo(!mscorelib.isNullOrUndefined(requestContent) ? requestContent.length : 0, utils.Misc.getSystemMilliseconds() - requestTime, true);
|
|
5517
5517
|
return [3 /*break*/, 6];
|
|
5518
5518
|
case 4:
|
|
5519
5519
|
ex_2 = _a.sent();
|
|
@@ -5934,7 +5934,7 @@
|
|
|
5934
5934
|
function ServerError(msg, codeOrInnerException) {
|
|
5935
5935
|
var _this = _super.call(this, msg) || this;
|
|
5936
5936
|
_this._code = 0;
|
|
5937
|
-
if (arguments.length === 1 ||
|
|
5937
|
+
if (arguments.length === 1 || mscorelib.isNullOrUndefined(codeOrInnerException))
|
|
5938
5938
|
return _this;
|
|
5939
5939
|
if (typeof codeOrInnerException == 'number')
|
|
5940
5940
|
_this._code = codeOrInnerException;
|
|
@@ -6650,7 +6650,7 @@
|
|
|
6650
6650
|
ex_2 = _a.sent();
|
|
6651
6651
|
if (ex_2 instanceof ServerError)
|
|
6652
6652
|
throw ex_2;
|
|
6653
|
-
if (
|
|
6653
|
+
if (mscorelib.isNullOrUndefined(ex_2.InnerException))
|
|
6654
6654
|
throw new ServerError(ex_2.message, new mscorelib.Exception(ex_2));
|
|
6655
6655
|
else
|
|
6656
6656
|
throw new ServerError(ex_2.message, ex_2.InnerException);
|
|
@@ -6664,7 +6664,7 @@
|
|
|
6664
6664
|
var handshakeAuthUrl = this.ServerUrl + ConstInterface.REQ_ARG_START +
|
|
6665
6665
|
ConstInterface.RC_INDICATION + ConstInterface.UTF8TRANS +
|
|
6666
6666
|
ConstInterface.RC_TOKEN_CTX_ID + contextId;
|
|
6667
|
-
if (!
|
|
6667
|
+
if (!mscorelib.isNullOrUndefined(this.SessionId))
|
|
6668
6668
|
handshakeAuthUrl += (ConstInterface.REQ_ARG_SEPARATOR + ConstInterface.RC_TOKEN_SESSION_ID + this.SessionId);
|
|
6669
6669
|
handshakeAuthUrl += (ConstInterface.REQ_ARG_SEPARATOR +
|
|
6670
6670
|
ConstInterface.RC_TOKEN_SESSION_COUNT + sessionCount +
|
|
@@ -6688,7 +6688,7 @@
|
|
|
6688
6688
|
};
|
|
6689
6689
|
RemoteCommandsProcessor.prototype.GetTaskTree = function (task) {
|
|
6690
6690
|
var taskTree = new mscorelib.List();
|
|
6691
|
-
while (!
|
|
6691
|
+
while (!mscorelib.isNullOrUndefined(task)) {
|
|
6692
6692
|
taskTree.push(task.getTaskInfo());
|
|
6693
6693
|
task = task.getParent();
|
|
6694
6694
|
}
|
|
@@ -7022,7 +7022,7 @@
|
|
|
7022
7022
|
return __generator(this, function (_a) {
|
|
7023
7023
|
switch (_a.label) {
|
|
7024
7024
|
case 0:
|
|
7025
|
-
if (
|
|
7025
|
+
if (mscorelib.isUndefined(requestContent))
|
|
7026
7026
|
requestContent = null;
|
|
7027
7027
|
_a.label = 1;
|
|
7028
7028
|
case 1:
|
|
@@ -7038,7 +7038,7 @@
|
|
|
7038
7038
|
return [4 /*yield*/, HttpManager.GetInstance().GetContent(requestedURL, requestContent, useCache, isError)];
|
|
7039
7039
|
case 2:
|
|
7040
7040
|
responseStr = _a.sent();
|
|
7041
|
-
RemoteCommandsProcessor.totalResponseDataLength += RemoteCommandsProcessor.totalResponseDataLength + (!
|
|
7041
|
+
RemoteCommandsProcessor.totalResponseDataLength += RemoteCommandsProcessor.totalResponseDataLength + (!mscorelib.isNullOrUndefined(responseStr) ? responseStr.length : 0);
|
|
7042
7042
|
spinnerTimerSubscription.unsubscribe();
|
|
7043
7043
|
spinnerTimerSubscription = null;
|
|
7044
7044
|
if (isError.value) {
|
|
@@ -7067,7 +7067,7 @@
|
|
|
7067
7067
|
};
|
|
7068
7068
|
RemoteCommandsProcessor.prototype.BuildUrlSuffix = function (hasContent, isInitialCall) {
|
|
7069
7069
|
var prefix = ConstInterface.RC_INDICATION + ConstInterface.RC_TOKEN_CTX_ID + gui.RuntimeContextBase.Instance.ContextID;
|
|
7070
|
-
if (!
|
|
7070
|
+
if (!mscorelib.isNullOrUndefined(this.SessionId))
|
|
7071
7071
|
prefix += (ConstInterface.REQ_ARG_SEPARATOR + ConstInterface.RC_TOKEN_SESSION_ID + this.SessionId);
|
|
7072
7072
|
if (isInitialCall) {
|
|
7073
7073
|
if (RemoteCommandsProcessor.IsSessionReInitializing)
|
|
@@ -7137,7 +7137,7 @@
|
|
|
7137
7137
|
AccessHelper.eventsManager.SpinnerStopped.subscribe(function (clientBusyTime) { return _this.ClientActivated(); });
|
|
7138
7138
|
};
|
|
7139
7139
|
RemoteCommandsProcessor.prototype.ComputeAndLogRequestInfo = function (contentLength, roundTrip, isLoggingResponse) {
|
|
7140
|
-
if (!
|
|
7140
|
+
if (!mscorelib.isNullOrUndefined(this._requestInfo.serverCallAt)) {
|
|
7141
7141
|
this._requestInfo.extraInfo.contentLength = contentLength;
|
|
7142
7142
|
this._requestInfo.extraInfo.timeStamp = new Date().toString();
|
|
7143
7143
|
var extraMessageStr = isLoggingResponse ? 'Response ⤵' : 'Request ⤵';
|
|
@@ -7350,19 +7350,19 @@
|
|
|
7350
7350
|
break;
|
|
7351
7351
|
case "Environment":
|
|
7352
7352
|
var envAttributes = response["Environment"][0]['$'];
|
|
7353
|
-
if (!
|
|
7353
|
+
if (!mscorelib.isNullOrUndefined(envAttributes["ScrambleMessages"])) {
|
|
7354
7354
|
mscorelib.Debug.Assert(envAttributes["ScrambleMessages"] === "N");
|
|
7355
7355
|
this._scrambleMessages = false;
|
|
7356
7356
|
}
|
|
7357
|
-
if (!
|
|
7357
|
+
if (!mscorelib.isNullOrUndefined(envAttributes["MaxInternalLogLevel"]))
|
|
7358
7358
|
this._maxInternalLogLevel = envAttributes["MaxInternalLogLevel"];
|
|
7359
|
-
if (!
|
|
7359
|
+
if (!mscorelib.isNullOrUndefined(envAttributes["InputPassword"]) && envAttributes["InputPassword"].toLocaleLowerCase() === "y")
|
|
7360
7360
|
this._inputPassword = true;
|
|
7361
|
-
if (!
|
|
7361
|
+
if (!mscorelib.isNullOrUndefined(envAttributes["SystemLogin"]))
|
|
7362
7362
|
this._systemLogin = envAttributes["SystemLogin"];
|
|
7363
|
-
if (!
|
|
7363
|
+
if (!mscorelib.isNullOrUndefined(envAttributes[ConstInterface.MG_TAG_HTTP_COMMUNICATION_TIMEOUT]))
|
|
7364
7364
|
this._httpTimeout = +envAttributes[ConstInterface.MG_TAG_HTTP_COMMUNICATION_TIMEOUT];
|
|
7365
|
-
if (!
|
|
7365
|
+
if (!mscorelib.isNullOrUndefined(envAttributes["ForwardSlash"]))
|
|
7366
7366
|
AccessHelper.environment.ForwardSlashUsage = envAttributes["ForwardSlash"];
|
|
7367
7367
|
break;
|
|
7368
7368
|
}
|
|
@@ -7741,7 +7741,7 @@
|
|
|
7741
7741
|
for (var i = 0; i < errorMessages.length; i++) {
|
|
7742
7742
|
var errorId = errorMessages[i]['$']['id'];
|
|
7743
7743
|
var errorMessage = errorMessages[i]['_'];
|
|
7744
|
-
this._constMessages.set_Item(errorId, (
|
|
7744
|
+
this._constMessages.set_Item(errorId, (mscorelib.isUndefined(errorMessage) ? "" : errorMessage.trim()));
|
|
7745
7745
|
}
|
|
7746
7746
|
};
|
|
7747
7747
|
LanguageData.prototype.translate = function (fromString) {
|
|
@@ -9047,7 +9047,7 @@
|
|
|
9047
9047
|
this._handlerIdx = -1;
|
|
9048
9048
|
};
|
|
9049
9049
|
EventHandlerPosition.prototype.getNext = function (evt) {
|
|
9050
|
-
if (!
|
|
9050
|
+
if (!mscorelib.isNullOrUndefined(evt))
|
|
9051
9051
|
return this.getNext_0(evt);
|
|
9052
9052
|
else
|
|
9053
9053
|
return this.getNext_1();
|
|
@@ -9378,7 +9378,7 @@
|
|
|
9378
9378
|
return helper.GetString();
|
|
9379
9379
|
};
|
|
9380
9380
|
BrowserEscEventCommand.prototype.getCommandInfo = function () {
|
|
9381
|
-
return mscorelib.NString.Format('[{0}{1} in {2}]', this.EventDescription, this.CloseSubformOnly ? ' Subform Only' : mscorelib.NString.Empty,
|
|
9381
|
+
return mscorelib.NString.Format('[{0}{1} in {2}]', this.EventDescription, this.CloseSubformOnly ? ' Subform Only' : mscorelib.NString.Empty, mscorelib.isNullOrUndefined(this.Task) ? mscorelib.NString.Empty : this.Task.getTaskInfo());
|
|
9382
9382
|
};
|
|
9383
9383
|
return BrowserEscEventCommand;
|
|
9384
9384
|
}(EventCommand));
|
|
@@ -10044,7 +10044,8 @@
|
|
|
10044
10044
|
ParamParseResult[ParamParseResult["TOUPPER"] = 1] = "TOUPPER";
|
|
10045
10045
|
ParamParseResult[ParamParseResult["DELETE"] = 2] = "DELETE";
|
|
10046
10046
|
ParamParseResult[ParamParseResult["FAILED"] = 3] = "FAILED";
|
|
10047
|
-
})(exports.ParamParseResult || (exports.ParamParseResult = {}));
|
|
10047
|
+
})(exports.ParamParseResult || (exports.ParamParseResult = {}));
|
|
10048
|
+
|
|
10048
10049
|
var PrmMap = /** @class */ (function () {
|
|
10049
10050
|
function PrmMap() {
|
|
10050
10051
|
this.values = null;
|
|
@@ -12037,7 +12038,8 @@
|
|
|
12037
12038
|
return this._reserved;
|
|
12038
12039
|
};
|
|
12039
12040
|
return MirrorString;
|
|
12040
|
-
}());
|
|
12041
|
+
}());
|
|
12042
|
+
|
|
12041
12043
|
var EnvParamsTable = /** @class */ (function (_super_1) {
|
|
12042
12044
|
__extends(EnvParamsTable, _super_1);
|
|
12043
12045
|
function EnvParamsTable() {
|
|
@@ -15561,7 +15563,7 @@
|
|
|
15561
15563
|
}
|
|
15562
15564
|
};
|
|
15563
15565
|
ExpressionEvaluator.prototype.exp_get_var = function (resValOrVal1, val1OrResVal, is_previous) {
|
|
15564
|
-
if (!
|
|
15566
|
+
if (!mscorelib.isNullOrUndefined(is_previous))
|
|
15565
15567
|
this.exp_get_var_0(resValOrVal1, val1OrResVal, is_previous);
|
|
15566
15568
|
else
|
|
15567
15569
|
this.exp_get_var_1(resValOrVal1, val1OrResVal);
|
|
@@ -17050,7 +17052,7 @@
|
|
|
17050
17052
|
}
|
|
17051
17053
|
var form = task.getForm();
|
|
17052
17054
|
var args = this.params2arguments(expVal, 0, expVal.length);
|
|
17053
|
-
if (!
|
|
17055
|
+
if (!mscorelib.isNullOrUndefined(args)) {
|
|
17054
17056
|
resVal.StrVal = gui.Commands.addCallJS(form, form.UniqueName, methodName, args);
|
|
17055
17057
|
resVal.Attr = utils.StorageAttribute.ALPHA;
|
|
17056
17058
|
}
|
|
@@ -17101,7 +17103,7 @@
|
|
|
17101
17103
|
var NULL_STR = '';
|
|
17102
17104
|
var attr = new Array();
|
|
17103
17105
|
for (var i = startAt; i < startAt + count; i++) {
|
|
17104
|
-
if (
|
|
17106
|
+
if (mscorelib.isNullOrUndefined(Exp_params[i])) {
|
|
17105
17107
|
attr.push(NULL_STR);
|
|
17106
17108
|
}
|
|
17107
17109
|
else {
|
|
@@ -17125,7 +17127,7 @@
|
|
|
17125
17127
|
break;
|
|
17126
17128
|
case utils.StorageAttribute.BLOB:
|
|
17127
17129
|
var blob = Exp_params[i].StrVal;
|
|
17128
|
-
if (!
|
|
17130
|
+
if (!mscorelib.isNullOrUndefined(blob)) {
|
|
17129
17131
|
{
|
|
17130
17132
|
var contentType = gui.BlobType.getContentType(blob);
|
|
17131
17133
|
if (contentType !== gui.BlobType.CONTENT_TYPE_BINARY) {
|
|
@@ -17633,7 +17635,7 @@
|
|
|
17633
17635
|
return false;
|
|
17634
17636
|
};
|
|
17635
17637
|
Record.prototype.fillFieldsData = function (fldValInBytesOrFldsVal, recFlags, isCurrRec) {
|
|
17636
|
-
if (
|
|
17638
|
+
if (mscorelib.isNullOrUndefined(isCurrRec))
|
|
17637
17639
|
this.fillFieldsData_0();
|
|
17638
17640
|
else
|
|
17639
17641
|
this.fillFieldsData_1(fldValInBytesOrFldsVal, recFlags, isCurrRec);
|
|
@@ -17734,7 +17736,7 @@
|
|
|
17734
17736
|
return this.getFieldsTab().getRMSize();
|
|
17735
17737
|
};
|
|
17736
17738
|
Record.prototype.buildXML = function (message, isCurrRec, forceBuild) {
|
|
17737
|
-
if (
|
|
17739
|
+
if (mscorelib.isNullOrUndefined(forceBuild))
|
|
17738
17740
|
this.buildXML_0(message, isCurrRec);
|
|
17739
17741
|
else
|
|
17740
17742
|
this.buildXML_1(message, isCurrRec, forceBuild);
|
|
@@ -19663,7 +19665,7 @@
|
|
|
19663
19665
|
return __generator(this, function (_a) {
|
|
19664
19666
|
switch (_a.label) {
|
|
19665
19667
|
case 0:
|
|
19666
|
-
if (
|
|
19668
|
+
if (mscorelib.isNullOrUndefined(enforceVariableChange))
|
|
19667
19669
|
enforceVariableChange = false;
|
|
19668
19670
|
return [4 /*yield*/, this.setValueAndStartRecompute_1(val, isNullFld, recompute, setRecordUpdated, isArgUpdate, false)];
|
|
19669
19671
|
case 1:
|
|
@@ -21351,7 +21353,7 @@
|
|
|
21351
21353
|
return [2 /*return*/];
|
|
21352
21354
|
case 24:
|
|
21353
21355
|
isCreateLineAboveAct = false;
|
|
21354
|
-
lastEvent =
|
|
21356
|
+
lastEvent = mscorelib.isNullOrUndefined(AccessHelper.eventsManager.getLastRtEvent()) ? 0 :
|
|
21355
21357
|
AccessHelper.eventsManager.getLastRtEvent().getInternalCode();
|
|
21356
21358
|
if (newIdx >= 0 && !this.getTask().transactionFailed(ConstInterface.TRANS_RECORD_PREFIX) &&
|
|
21357
21359
|
lastEvent === utils.InternalInterface.MG_ACT_CRELINE_ABOVE) {
|
|
@@ -21921,7 +21923,7 @@
|
|
|
21921
21923
|
return __generator(this, function (_a) {
|
|
21922
21924
|
switch (_a.label) {
|
|
21923
21925
|
case 0:
|
|
21924
|
-
if (!
|
|
21926
|
+
if (!mscorelib.isNullOrUndefined(setRecToOld)) return [3 /*break*/, 2];
|
|
21925
21927
|
return [4 /*yield*/, this.addCurrToModified_0()];
|
|
21926
21928
|
case 1:
|
|
21927
21929
|
_a.sent();
|
|
@@ -23361,7 +23363,7 @@
|
|
|
23361
23363
|
return __generator(this, function (_a) {
|
|
23362
23364
|
switch (_a.label) {
|
|
23363
23365
|
case 0:
|
|
23364
|
-
if (!
|
|
23366
|
+
if (!mscorelib.isNullOrUndefined(returnToCtrl)) return [3 /*break*/, 2];
|
|
23365
23367
|
return [4 /*yield*/, this.moveInView_0(unit, direction)];
|
|
23366
23368
|
case 1:
|
|
23367
23369
|
_a.sent();
|
|
@@ -25641,10 +25643,10 @@
|
|
|
25641
25643
|
throw error;
|
|
25642
25644
|
}
|
|
25643
25645
|
var links = result[ConstInterface.MG_TAG_LINKS][ConstInterface.MG_TAG_LINK];
|
|
25644
|
-
if (!
|
|
25646
|
+
if (!mscorelib.isNullOrUndefined(links) && links.constructor === Array) {
|
|
25645
25647
|
for (var i = 0; i < links.length; i++) {
|
|
25646
25648
|
var link = links[i]['$'];
|
|
25647
|
-
if (!
|
|
25649
|
+
if (!mscorelib.isNullOrUndefined(link[ConstInterface.MG_ATTR_TABLE_INDEX])) {
|
|
25648
25650
|
var tableIndex = +link[ConstInterface.MG_ATTR_TABLE_INDEX];
|
|
25649
25651
|
var dataviewHeader = this._dataviewHeadersFactory.CreateDataviewHeaders(this._task);
|
|
25650
25652
|
var attributes = new mscorelib.Dictionary();
|
|
@@ -26636,13 +26638,13 @@
|
|
|
26636
26638
|
};
|
|
26637
26639
|
EventHandler.prototype.getControlNameForControlHeader = function () {
|
|
26638
26640
|
if (this.getEvent().getType() == ConstInterface.EVENT_TYPE_INTERNAL) {
|
|
26639
|
-
if (this.getEvent().isControlHeader() && !
|
|
26641
|
+
if (this.getEvent().isControlHeader() && !mscorelib.isNullOrUndefined(this._ctrl))
|
|
26640
26642
|
return this.getCtrlName();
|
|
26641
26643
|
}
|
|
26642
26644
|
return mscorelib.NString.Empty;
|
|
26643
26645
|
};
|
|
26644
26646
|
EventHandler.prototype.getVarNameForVariableHeader = function () {
|
|
26645
|
-
if (this.getEvent().isVariableHeader() && !
|
|
26647
|
+
if (this.getEvent().isVariableHeader() && !mscorelib.isNullOrUndefined(this._handlerFld))
|
|
26646
26648
|
return this._handlerFld.getVarName().toUpperCase();
|
|
26647
26649
|
return mscorelib.NString.Empty;
|
|
26648
26650
|
};
|
|
@@ -27498,7 +27500,7 @@
|
|
|
27498
27500
|
_this.TaskSuffixExecuted = false;
|
|
27499
27501
|
_this.RetrunValueExp = 0;
|
|
27500
27502
|
_this.SubformControl = null;
|
|
27501
|
-
if (
|
|
27503
|
+
if (mscorelib.isNullOrUndefined(parent)) {
|
|
27502
27504
|
_this.constructor_0();
|
|
27503
27505
|
return _this;
|
|
27504
27506
|
}
|
|
@@ -29053,7 +29055,7 @@
|
|
|
29053
29055
|
return __generator(this, function (_a) {
|
|
29054
29056
|
switch (_a.label) {
|
|
29055
29057
|
case 0:
|
|
29056
|
-
if (!
|
|
29058
|
+
if (!mscorelib.isNullOrUndefined(subformDestination)) return [3 /*break*/, 2];
|
|
29057
29059
|
return [4 /*yield*/, this.endTask_1(reversibleExit, onlyDescs, false, dueToVerifyError)];
|
|
29058
29060
|
case 1: return [2 /*return*/, _a.sent()];
|
|
29059
29061
|
case 2: return [4 /*yield*/, this.endTask_1(reversibleExit, onlyDescs, subformDestination, dueToVerifyError)];
|
|
@@ -33618,7 +33620,7 @@
|
|
|
33618
33620
|
task.CurrentEditingControl = null;
|
|
33619
33621
|
_b = !task.cancelWasRaised();
|
|
33620
33622
|
if (!_b) return [3 /*break*/, 81];
|
|
33621
|
-
_c = ctrl.Type !== utils.MgControlType.CTRL_TYPE_BROWSER && (!
|
|
33623
|
+
_c = ctrl.Type !== utils.MgControlType.CTRL_TYPE_BROWSER && (!mscorelib.isNullOrUndefined(ctrl._field) && ctrl._field.getType() === utils.StorageAttribute.DATE || val !== null) && typeof val != "undefined";
|
|
33622
33624
|
if (!_c) return [3 /*break*/, 80];
|
|
33623
33625
|
return [4 /*yield*/, ctrl.validateAndSetValue(val, true)];
|
|
33624
33626
|
case 79:
|
|
@@ -33695,7 +33697,7 @@
|
|
|
33695
33697
|
evt = handler.getEvent();
|
|
33696
33698
|
if (!(evt.getInternalCode() === utils.InternalInterface.MG_ACT_CTRL_VERIFICATION)) return [3 /*break*/, 3];
|
|
33697
33699
|
control = ((task.getForm() !== null) ? task.getForm().getCtrlByCtrlName(handler.getCtrlName()) : null);
|
|
33698
|
-
if (!!
|
|
33700
|
+
if (!!mscorelib.isNullOrUndefined(control)) return [3 /*break*/, 3];
|
|
33699
33701
|
runTimeEvent = new RunTimeEvent(control);
|
|
33700
33702
|
runTimeEvent.setInternal(utils.InternalInterface.MG_ACT_CTRL_VERIFICATION);
|
|
33701
33703
|
return [4 /*yield*/, this.handleEvent(runTimeEvent, false)];
|
|
@@ -34919,7 +34921,7 @@
|
|
|
34919
34921
|
return [4 /*yield*/, evt.getArgList().getArgValue(0, utils.StorageAttribute.BOOLEAN, 0)];
|
|
34920
34922
|
case 9:
|
|
34921
34923
|
refetchRecStr = _b.sent();
|
|
34922
|
-
refetchRecord = (
|
|
34924
|
+
refetchRecord = (mscorelib.isNullOrUndefined(refetchRecStr) || refetchRecStr === "1");
|
|
34923
34925
|
_b.label = 10;
|
|
34924
34926
|
case 10:
|
|
34925
34927
|
if (!refetchRecord) return [3 /*break*/, 12];
|
|
@@ -37245,7 +37247,7 @@
|
|
|
37245
37247
|
return CommandsTable;
|
|
37246
37248
|
}());
|
|
37247
37249
|
|
|
37248
|
-
var CurrentClientVersion = '4.801.0-dev481.
|
|
37250
|
+
var CurrentClientVersion = '4.801.0-dev481.245';
|
|
37249
37251
|
|
|
37250
37252
|
var ClientManager = /** @class */ (function () {
|
|
37251
37253
|
function ClientManager() {
|