@magic-xpa/gui 4.801.3 → 4.801.6
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 +2 -2
- package/esm2020/src/management/gui/DisplayConvertor.mjs +6 -15
- package/esm2020/src/management/gui/FieldValidator.mjs +1 -1
- package/esm2020/src/management/gui/MgControlBase.mjs +6 -1
- package/esm2020/src/management/tasks/GuiTaskBase.mjs +16 -5
- package/fesm2015/magic-xpa-gui.mjs +25 -19
- package/fesm2015/magic-xpa-gui.mjs.map +1 -1
- package/fesm2020/magic-xpa-gui.mjs +25 -19
- package/fesm2020/magic-xpa-gui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/management/tasks/GuiTaskBase.d.ts +2 -0
|
@@ -1595,7 +1595,7 @@ class Manager {
|
|
|
1595
1595
|
return Commands.getValue(ctrl, ctrl.getDisplayLine(true));
|
|
1596
1596
|
}
|
|
1597
1597
|
static async SetReadOnlyControl(ctrl, isReadOnly) {
|
|
1598
|
-
if (ctrl.isTextControl() || ctrl.IsRepeatable) {
|
|
1598
|
+
if (ctrl.isTextControl() || ctrl.IsRepeatable || ctrl.isCheckBox() || ctrl.isChoiceControl()) {
|
|
1599
1599
|
if (UtilStrByteMode.isLocaleDefLangDBCS()) {
|
|
1600
1600
|
if (await ctrl.getForm().getTask().checkProp(PropInterface.PROP_TYPE_ALLOW_LOCATE_IN_QUERY, false))
|
|
1601
1601
|
return;
|
|
@@ -5638,25 +5638,16 @@ class DisplayConvertor {
|
|
|
5638
5638
|
case PICInterface.PIC_YY:
|
|
5639
5639
|
{
|
|
5640
5640
|
this.int_2_a(outVal, outIdx, 2, breakParams.year, '0');
|
|
5641
|
-
let yearStr = NString.FromChars(outVal);
|
|
5642
|
-
year = +yearStr
|
|
5643
|
-
outIdx += 2;
|
|
5644
|
-
len -= 2;
|
|
5645
|
-
}
|
|
5646
|
-
break;
|
|
5647
|
-
case PICInterface.PIC_YY:
|
|
5648
|
-
{
|
|
5649
|
-
this.int_2_a(outVal, outIdx, 2, breakParams.year, '0');
|
|
5650
|
-
let yearStr = NString.FromChars(outVal);
|
|
5651
|
-
year = +yearStr.substr(outIdx);
|
|
5641
|
+
let yearStr = NString.FromChars(outVal, outIdx, 2);
|
|
5642
|
+
year = +yearStr;
|
|
5652
5643
|
outIdx += 2;
|
|
5653
5644
|
len -= 2;
|
|
5654
5645
|
}
|
|
5655
5646
|
break;
|
|
5656
5647
|
case PICInterface.PIC_YYYY:
|
|
5657
|
-
this.int_2_a(outVal, outIdx, 4, year, '0');
|
|
5658
|
-
let yearStr = NString.FromChars(outVal);
|
|
5659
|
-
year = +yearStr
|
|
5648
|
+
this.int_2_a(outVal, outIdx, 4, breakParams.year, '0');
|
|
5649
|
+
let yearStr = NString.FromChars(outVal, outIdx, 4);
|
|
5650
|
+
year = +yearStr;
|
|
5660
5651
|
outIdx += 4;
|
|
5661
5652
|
len -= 4;
|
|
5662
5653
|
break;
|
|
@@ -13076,6 +13067,11 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
13076
13067
|
if (prevMustInput !== await this.checkProp(PropInterface.PROP_TYPE_MUST_INPUT, false))
|
|
13077
13068
|
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.MustInput, !prevMustInput);
|
|
13078
13069
|
}
|
|
13070
|
+
else if (mustInputProperty != null) {
|
|
13071
|
+
let mustInputVal = this.GetComputedBooleanProperty(PropInterface.PROP_TYPE_MUST_INPUT, false);
|
|
13072
|
+
if (mustInputVal)
|
|
13073
|
+
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.MustInput, mustInputVal);
|
|
13074
|
+
}
|
|
13079
13075
|
if (!this.GetComputedBooleanProperty(PropInterface.PROP_TYPE_TAB_IN, true))
|
|
13080
13076
|
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.TabIndex, -1);
|
|
13081
13077
|
}
|
|
@@ -15601,16 +15597,17 @@ class GuiTaskBase {
|
|
|
15601
15597
|
constructor() {
|
|
15602
15598
|
this._flowMonitor = null;
|
|
15603
15599
|
this._keyboardMappingState = 0xFFFF0000;
|
|
15604
|
-
this._refreshType =
|
|
15600
|
+
this._refreshType = "T";
|
|
15605
15601
|
this._lastParkedCtrl = null;
|
|
15606
15602
|
this._brkLevel = null;
|
|
15607
15603
|
this._brkLevelIndex = -1;
|
|
15608
15604
|
this._mainLevel = null;
|
|
15609
|
-
this._level =
|
|
15605
|
+
this._level = "\0";
|
|
15610
15606
|
this._enteredRecLevel = false;
|
|
15611
15607
|
this._currParkedFld = null;
|
|
15612
15608
|
this.isInRecompute = false;
|
|
15613
15609
|
this.CurrentEditingControl = null;
|
|
15610
|
+
this.shouldResumeSubformLayout = true;
|
|
15614
15611
|
this.ApplicationGuid = null;
|
|
15615
15612
|
this.ProgramIsn = 0;
|
|
15616
15613
|
this.TaskIsn = 0;
|
|
@@ -15758,7 +15755,7 @@ class GuiTaskBase {
|
|
|
15758
15755
|
return this._helpTab.getHelp(idx);
|
|
15759
15756
|
}
|
|
15760
15757
|
setProp(propId, val) {
|
|
15761
|
-
this._propTab.setProp(propId, val, this,
|
|
15758
|
+
this._propTab.setProp(propId, val, this, "T");
|
|
15762
15759
|
}
|
|
15763
15760
|
setBrkLevel(cBrkLevel, NewBrkLevelIndex) {
|
|
15764
15761
|
this._brkLevel = cBrkLevel;
|
|
@@ -15864,6 +15861,15 @@ class GuiTaskBase {
|
|
|
15864
15861
|
this.Form.InInitForm = false;
|
|
15865
15862
|
}
|
|
15866
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
|
+
}
|
|
15867
15873
|
GetLastParkedCtrlName(depth) {
|
|
15868
15874
|
let ancestor = this.GetTaskAncestor(depth);
|
|
15869
15875
|
if (ancestor === null || ancestor._lastParkedCtrl === null)
|
|
@@ -15924,7 +15930,7 @@ class GuiTaskBase {
|
|
|
15924
15930
|
return this.GetExpressionStorage(expId);
|
|
15925
15931
|
}
|
|
15926
15932
|
async CalculateExpression(expId, resType, length) {
|
|
15927
|
-
return Promise.resolve(
|
|
15933
|
+
return Promise.resolve("");
|
|
15928
15934
|
}
|
|
15929
15935
|
isStarted() {
|
|
15930
15936
|
return true;
|