@magic-xpa/gui 4.801.6 → 4.900.0-dev490.101

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.isCheckBox() || ctrl.isChoiceControl()) {
1598
+ if (ctrl.isTextControl() || ctrl.IsRepeatable || ctrl.isComboBox() || ctrl.isListBox() || ctrl.isCheckBox()) {
1599
1599
  if (UtilStrByteMode.isLocaleDefLangDBCS()) {
1600
1600
  if (await ctrl.getForm().getTask().checkProp(PropInterface.PROP_TYPE_ALLOW_LOCATE_IN_QUERY, false))
1601
1601
  return;
@@ -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.buildCopyPicture(this.Value, newVal);
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.buildCopyPicture(this.Value, newVal);
12055
+ vd = this.buildPicture(this.Value, newVal);
12063
12056
  vd.evaluate();
12064
12057
  this.ModifiedByUser = modified;
12065
12058
  if (vd.ValidationFailed)
@@ -15435,9 +15428,16 @@ class Helps {
15435
15428
  initInnerObjects(foundTagName, parser) {
15436
15429
  if (foundTagName === null)
15437
15430
  return false;
15438
- 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);
15439
15438
  parser.setCurrIndex(parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex()) +
15440
15439
  1);
15440
+ }
15441
15441
  else if (foundTagName === XMLConstants.MG_TAG_HELPITEM) {
15442
15442
  let endContext = parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, parser.getCurrIndex());
15443
15443
  if (endContext !== -1 && endContext < parser.getXMLdata().length) {
@@ -16017,7 +16017,8 @@ class GuiTaskBase {
16017
16017
  this.IsParallel = XmlParser.getBoolean(valueStr);
16018
16018
  break;
16019
16019
  case XMLConstants.MG_ATTR_ROUTER_PATH:
16020
- this.routerPath = valueStr;
16020
+ if (valueStr.trim() != "")
16021
+ this.routerPath = valueStr;
16021
16022
  break;
16022
16023
  case XMLConstants.MG_ATTR_IN_DEFAULT_ROUTER_OUTLET:
16023
16024
  this.inDefaultRouterOutlet = XmlParser.getBoolean(valueStr);