@magic-xpa/gui 4.801.4 → 4.900.0-dev490.100
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/Manager.mjs +1 -1
- package/esm2020/src/management/gui/DisplayConvertor.mjs +1 -1
- package/esm2020/src/management/gui/FieldValidator.mjs +1 -1
- package/esm2020/src/management/gui/Helps.mjs +10 -3
- package/esm2020/src/management/gui/MgControlBase.mjs +8 -10
- package/esm2020/src/management/tasks/GuiTaskBase.mjs +18 -6
- package/fesm2015/magic-xpa-gui.mjs +31 -15
- package/fesm2015/magic-xpa-gui.mjs.map +1 -1
- package/fesm2020/magic-xpa-gui.mjs +31 -15
- package/fesm2020/magic-xpa-gui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/management/gui/MgControlBase.d.ts +0 -2
- package/src/management/tasks/GuiTaskBase.d.ts +2 -0
|
@@ -11567,7 +11567,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
11567
11567
|
this._firstRefreshProperties = true;
|
|
11568
11568
|
this._form = null;
|
|
11569
11569
|
this._hasValidItmAndDispVal = false;
|
|
11570
|
-
this._id = -1;
|
|
11571
11570
|
this._controlIsn = -1;
|
|
11572
11571
|
this._linkedParentDitIdx = -1;
|
|
11573
11572
|
this._orgChoiceDisps = null;
|
|
@@ -11610,9 +11609,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
11610
11609
|
get Form() {
|
|
11611
11610
|
return this._form;
|
|
11612
11611
|
}
|
|
11613
|
-
get Id() {
|
|
11614
|
-
return this._id;
|
|
11615
|
-
}
|
|
11616
11612
|
get ControlIsn() {
|
|
11617
11613
|
return this._controlIsn;
|
|
11618
11614
|
}
|
|
@@ -11834,9 +11830,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
11834
11830
|
case XMLConstants.MG_ATTR_CONTAINER:
|
|
11835
11831
|
this.setContainer(XmlParser.getInt(valueStr));
|
|
11836
11832
|
break;
|
|
11837
|
-
case XMLConstants.MG_ATTR_ID:
|
|
11838
|
-
this._id = XmlParser.getInt(valueStr);
|
|
11839
|
-
break;
|
|
11840
11833
|
case XMLConstants.MG_ATTR_CONTROL_ISN:
|
|
11841
11834
|
this._controlIsn = XmlParser.getInt(valueStr);
|
|
11842
11835
|
break;
|
|
@@ -12049,7 +12042,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
12049
12042
|
}
|
|
12050
12043
|
getRangedValue(newVal) {
|
|
12051
12044
|
let vd;
|
|
12052
|
-
vd = this.
|
|
12045
|
+
vd = this.buildPicture(this.Value, newVal);
|
|
12053
12046
|
vd.evaluate();
|
|
12054
12047
|
this.ModifiedByUser = true;
|
|
12055
12048
|
let val = vd.getDispValue();
|
|
@@ -12059,7 +12052,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
12059
12052
|
let vd;
|
|
12060
12053
|
let modified = this.ModifiedByUser;
|
|
12061
12054
|
this.ModifiedByUser = true;
|
|
12062
|
-
vd = this.
|
|
12055
|
+
vd = this.buildPicture(this.Value, newVal);
|
|
12063
12056
|
vd.evaluate();
|
|
12064
12057
|
this.ModifiedByUser = modified;
|
|
12065
12058
|
if (vd.ValidationFailed)
|
|
@@ -13067,6 +13060,11 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
13067
13060
|
if (prevMustInput !== await this.checkProp(PropInterface.PROP_TYPE_MUST_INPUT, false))
|
|
13068
13061
|
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.MustInput, !prevMustInput);
|
|
13069
13062
|
}
|
|
13063
|
+
else if (mustInputProperty != null) {
|
|
13064
|
+
let mustInputVal = this.GetComputedBooleanProperty(PropInterface.PROP_TYPE_MUST_INPUT, false);
|
|
13065
|
+
if (mustInputVal)
|
|
13066
|
+
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.MustInput, mustInputVal);
|
|
13067
|
+
}
|
|
13070
13068
|
if (!this.GetComputedBooleanProperty(PropInterface.PROP_TYPE_TAB_IN, true))
|
|
13071
13069
|
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.TabIndex, -1);
|
|
13072
13070
|
}
|
|
@@ -15430,9 +15428,16 @@ class Helps {
|
|
|
15430
15428
|
initInnerObjects(foundTagName, parser) {
|
|
15431
15429
|
if (foundTagName === null)
|
|
15432
15430
|
return false;
|
|
15433
|
-
if (foundTagName === XMLConstants.MG_TAG_HELPTABLE)
|
|
15431
|
+
if (foundTagName === XMLConstants.MG_TAG_HELPTABLE) {
|
|
15432
|
+
let currrentIndex = parser.getCurrIndex();
|
|
15433
|
+
let encoded = parser.ReadContentOfCurrentElement().trim();
|
|
15434
|
+
let decoded = Base64.decode(encoded.substr(0, encoded.length).trim());
|
|
15435
|
+
let newXmlData = parser.getXMLdata().replace(encoded.trim(), decoded);
|
|
15436
|
+
parser.setXMLdata(newXmlData);
|
|
15437
|
+
parser.setCurrIndex(currrentIndex);
|
|
15434
15438
|
parser.setCurrIndex(parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex()) +
|
|
15435
15439
|
1);
|
|
15440
|
+
}
|
|
15436
15441
|
else if (foundTagName === XMLConstants.MG_TAG_HELPITEM) {
|
|
15437
15442
|
let endContext = parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, parser.getCurrIndex());
|
|
15438
15443
|
if (endContext !== -1 && endContext < parser.getXMLdata().length) {
|
|
@@ -15592,16 +15597,17 @@ class GuiTaskBase {
|
|
|
15592
15597
|
constructor() {
|
|
15593
15598
|
this._flowMonitor = null;
|
|
15594
15599
|
this._keyboardMappingState = 0xFFFF0000;
|
|
15595
|
-
this._refreshType =
|
|
15600
|
+
this._refreshType = "T";
|
|
15596
15601
|
this._lastParkedCtrl = null;
|
|
15597
15602
|
this._brkLevel = null;
|
|
15598
15603
|
this._brkLevelIndex = -1;
|
|
15599
15604
|
this._mainLevel = null;
|
|
15600
|
-
this._level =
|
|
15605
|
+
this._level = "\0";
|
|
15601
15606
|
this._enteredRecLevel = false;
|
|
15602
15607
|
this._currParkedFld = null;
|
|
15603
15608
|
this.isInRecompute = false;
|
|
15604
15609
|
this.CurrentEditingControl = null;
|
|
15610
|
+
this.shouldResumeSubformLayout = true;
|
|
15605
15611
|
this.ApplicationGuid = null;
|
|
15606
15612
|
this.ProgramIsn = 0;
|
|
15607
15613
|
this.TaskIsn = 0;
|
|
@@ -15749,7 +15755,7 @@ class GuiTaskBase {
|
|
|
15749
15755
|
return this._helpTab.getHelp(idx);
|
|
15750
15756
|
}
|
|
15751
15757
|
setProp(propId, val) {
|
|
15752
|
-
this._propTab.setProp(propId, val, this,
|
|
15758
|
+
this._propTab.setProp(propId, val, this, "T");
|
|
15753
15759
|
}
|
|
15754
15760
|
setBrkLevel(cBrkLevel, NewBrkLevelIndex) {
|
|
15755
15761
|
this._brkLevel = cBrkLevel;
|
|
@@ -15855,6 +15861,15 @@ class GuiTaskBase {
|
|
|
15855
15861
|
this.Form.InInitForm = false;
|
|
15856
15862
|
}
|
|
15857
15863
|
}
|
|
15864
|
+
ResumeSubformLayout() {
|
|
15865
|
+
if (this.Form !== null) {
|
|
15866
|
+
let subFormCtrl = this.Form.getSubFormCtrl();
|
|
15867
|
+
if (subFormCtrl !== null && this.shouldResumeSubformLayout) {
|
|
15868
|
+
Commands.addOperationWithLine(CommandType.SET_PROPERTY, subFormCtrl, 0, HtmlProperties.Visible, subFormCtrl.isVisible());
|
|
15869
|
+
this.shouldResumeSubformLayout = false;
|
|
15870
|
+
}
|
|
15871
|
+
}
|
|
15872
|
+
}
|
|
15858
15873
|
GetLastParkedCtrlName(depth) {
|
|
15859
15874
|
let ancestor = this.GetTaskAncestor(depth);
|
|
15860
15875
|
if (ancestor === null || ancestor._lastParkedCtrl === null)
|
|
@@ -15915,7 +15930,7 @@ class GuiTaskBase {
|
|
|
15915
15930
|
return this.GetExpressionStorage(expId);
|
|
15916
15931
|
}
|
|
15917
15932
|
async CalculateExpression(expId, resType, length) {
|
|
15918
|
-
return Promise.resolve(
|
|
15933
|
+
return Promise.resolve("");
|
|
15919
15934
|
}
|
|
15920
15935
|
isStarted() {
|
|
15921
15936
|
return true;
|
|
@@ -16002,7 +16017,8 @@ class GuiTaskBase {
|
|
|
16002
16017
|
this.IsParallel = XmlParser.getBoolean(valueStr);
|
|
16003
16018
|
break;
|
|
16004
16019
|
case XMLConstants.MG_ATTR_ROUTER_PATH:
|
|
16005
|
-
|
|
16020
|
+
if (valueStr.trim() != "")
|
|
16021
|
+
this.routerPath = valueStr;
|
|
16006
16022
|
break;
|
|
16007
16023
|
case XMLConstants.MG_ATTR_IN_DEFAULT_ROUTER_OUTLET:
|
|
16008
16024
|
this.inDefaultRouterOutlet = XmlParser.getBoolean(valueStr);
|