@magic-xpa/engine 4.801.0-dev481.389 → 4.801.0-dev481.390
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 +2 -2
- package/esm2020/src/CurrentClientVersion.mjs +2 -2
- package/esm2020/src/event/EventsManager.mjs +2 -2
- package/esm2020/src/tasks/Task.mjs +2 -1
- package/esm2020/src/util/Scrambler.mjs +3 -2
- package/fesm2015/magic-xpa-engine.mjs +6 -4
- package/fesm2015/magic-xpa-engine.mjs.map +1 -1
- package/fesm2020/magic-xpa-engine.mjs +6 -4
- package/fesm2020/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -4132,9 +4132,10 @@ class Scrambler {
|
|
|
4132
4132
|
if (high > (sqrt / 2))
|
|
4133
4133
|
high = Math.floor(sqrt / 2);
|
|
4134
4134
|
delta = (Math.random() * (high - low)) + low;
|
|
4135
|
+
delta = Math.floor(delta);
|
|
4135
4136
|
if (delta === Scrambler.XML_ILLEGAL_RANDOM)
|
|
4136
4137
|
delta++;
|
|
4137
|
-
return
|
|
4138
|
+
return delta;
|
|
4138
4139
|
}
|
|
4139
4140
|
static UnScramble(inVal, beginOffSet, endOffSet) {
|
|
4140
4141
|
if (!Scrambler.ScramblingEnabled) {
|
|
@@ -23023,6 +23024,7 @@ class Task extends TaskBase {
|
|
|
23023
23024
|
result = await this.DataviewManager.Execute(dataViewCommand);
|
|
23024
23025
|
if (!result.Success)
|
|
23025
23026
|
return null;
|
|
23027
|
+
this.ResumeSubformLayout();
|
|
23026
23028
|
}
|
|
23027
23029
|
nonInteractiveTask = await this.StartSubTasks(moveToFirstControl, nonInteractiveTask, callByDestSubForm);
|
|
23028
23030
|
this.InStartProcess = false;
|
|
@@ -26924,7 +26926,7 @@ class EventsManager {
|
|
|
26924
26926
|
val = Manager.GetCtrlVal(ctrl);
|
|
26925
26927
|
task.CurrentEditingControl = null;
|
|
26926
26928
|
if (!task.cancelWasRaised() &&
|
|
26927
|
-
(ctrl.Type !== MgControlType.CTRL_TYPE_BROWSER && (!isNullOrUndefined(ctrl._field) && ctrl._field.getType() === StorageAttribute.DATE || val !== null) && typeof val != 'undefined' &&
|
|
26929
|
+
(ctrl.Type !== MgControlType.CTRL_TYPE_BROWSER && (!isNullOrUndefined(ctrl._field) && (ctrl._field.getType() === StorageAttribute.DATE || ctrl._field.getType() == StorageAttribute.NUMERIC) || val !== null) && typeof val != 'undefined' &&
|
|
26928
26930
|
!await ctrl.validateAndSetValue(val, true))) {
|
|
26929
26931
|
this.setStopExecution(true);
|
|
26930
26932
|
return false;
|
|
@@ -29516,7 +29518,7 @@ class CommandsTable {
|
|
|
29516
29518
|
}
|
|
29517
29519
|
}
|
|
29518
29520
|
|
|
29519
|
-
let CurrentClientVersion = '4.801.0-dev481.
|
|
29521
|
+
let CurrentClientVersion = '4.801.0-dev481.390';
|
|
29520
29522
|
|
|
29521
29523
|
class ClientManager {
|
|
29522
29524
|
constructor() {
|
|
@@ -29782,7 +29784,7 @@ class ClientManager {
|
|
|
29782
29784
|
let task = MGDataCollection.Instance.GetTaskByID(taskId);
|
|
29783
29785
|
let control = null;
|
|
29784
29786
|
let newValue = value;
|
|
29785
|
-
if (controlName !== null)
|
|
29787
|
+
if (controlName !== null && task !== null)
|
|
29786
29788
|
control = task.getForm().GetCtrl(controlName);
|
|
29787
29789
|
if (control != null && control.DataType == StorageAttribute.NUMERIC) {
|
|
29788
29790
|
pic = control.getPIC();
|