@magic-xpa/gui 4.801.4 → 4.801.7

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.
@@ -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 || ctrl.isComboBox() || ctrl.isListBox() || ctrl.isCheckBox()) {
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;
@@ -13067,6 +13067,11 @@ class MgControlBase extends GuiControlPropertyAdapter {
13067
13067
  if (prevMustInput !== await this.checkProp(PropInterface.PROP_TYPE_MUST_INPUT, false))
13068
13068
  Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.MustInput, !prevMustInput);
13069
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
+ }
13070
13075
  if (!this.GetComputedBooleanProperty(PropInterface.PROP_TYPE_TAB_IN, true))
13071
13076
  Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.TabIndex, -1);
13072
13077
  }
@@ -15592,16 +15597,17 @@ class GuiTaskBase {
15592
15597
  constructor() {
15593
15598
  this._flowMonitor = null;
15594
15599
  this._keyboardMappingState = 0xFFFF0000;
15595
- this._refreshType = 'T';
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 = '\0';
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, 'T');
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;