@magic-xpa/gui 4.1000.0-dev4100.43 → 4.1000.0-dev4100.431

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.
@@ -26,8 +26,6 @@ class GuiMgForm extends ControlBase {
26
26
  }
27
27
 
28
28
  class Events {
29
- constructor() {
30
- }
31
29
  static OnFocus(ctrl, line, isProduceClick, onMultiMark) {
32
30
  Debug.Assert(Events.FocusEvent !== null);
33
31
  Events.FocusEvent(ctrl, line, isProduceClick, onMultiMark);
@@ -376,6 +374,8 @@ class Events {
376
374
  Events.CopyDataEvent(guiMgForm, copyData);
377
375
  }
378
376
  }
377
+ constructor() {
378
+ }
379
379
  }
380
380
  Events.NonParkableLastParkedCtrlEvent = null;
381
381
  Events.IsBatchRunningInMainContextEvent = null;
@@ -548,9 +548,10 @@ class GuiInteractiveBase {
548
548
  this._boolVal = retSuggestedValue;
549
549
  this.Invoke();
550
550
  }
551
- getValue(obj, line) {
551
+ getValue(obj, line, isThreeStateCheckBox) {
552
552
  this._commandType = InteractiveCommandType.GET_VALUE;
553
553
  this._obj2 = obj;
554
+ this._boolVal = isThreeStateCheckBox;
554
555
  this._line = line;
555
556
  this._mgValue = new MgValue();
556
557
  this.Invoke();
@@ -1018,6 +1019,8 @@ var CommandType;
1018
1019
  CommandType[CommandType["PROP_SET_BINDING_LEVEL"] = 154] = "PROP_SET_BINDING_LEVEL";
1019
1020
  CommandType[CommandType["SHOW_SPINNER"] = 155] = "SHOW_SPINNER";
1020
1021
  CommandType[CommandType["SHOW_HTML_ERROR"] = 156] = "SHOW_HTML_ERROR";
1022
+ CommandType[CommandType["SET_WC_IDLE"] = 157] = "SET_WC_IDLE";
1023
+ CommandType[CommandType["SET_CHUNK_SIZE"] = 158] = "SET_CHUNK_SIZE";
1021
1024
  })(CommandType || (CommandType = {}));
1022
1025
  var HtmlProperties;
1023
1026
  (function (HtmlProperties) {
@@ -1038,6 +1041,7 @@ var HtmlProperties;
1038
1041
  HtmlProperties["SelectedLayer"] = "SelectedLayer";
1039
1042
  HtmlProperties["BindingLevel"] = "bindingLevel";
1040
1043
  HtmlProperties["ZoomButtonTooltip"] = "ZoomButtonTooltip";
1044
+ HtmlProperties["CheckBoxIndeterminate"] = "CheckBoxIndeterminate";
1041
1045
  })(HtmlProperties || (HtmlProperties = {}));
1042
1046
  var MenuStyle;
1043
1047
  (function (MenuStyle) {
@@ -1154,8 +1158,6 @@ class GuiCommand {
1154
1158
  }
1155
1159
 
1156
1160
  class Commands {
1157
- constructor() {
1158
- }
1159
1161
  static SetResolveCallback(resolveCallback) {
1160
1162
  this.resolveCallback = resolveCallback;
1161
1163
  }
@@ -1181,9 +1183,9 @@ class Commands {
1181
1183
  let guiInteractive = new GuiInteractive();
1182
1184
  guiInteractive.setGetSuggestedValueOfChoiceControlOnTagData(ctrl, line, retSuggestedValue);
1183
1185
  }
1184
- static getValue(obj, line) {
1186
+ static getValue(obj, line, isThreeStateCheckBox) {
1185
1187
  let guiInteractive = new GuiInteractive();
1186
- return guiInteractive.getValue(obj, line);
1188
+ return guiInteractive.getValue(obj, line, isThreeStateCheckBox);
1187
1189
  }
1188
1190
  static getTopIndex(tablecontrol) {
1189
1191
  let guiInteractive = new GuiInteractive();
@@ -1245,7 +1247,10 @@ class Commands {
1245
1247
  if (commandType === CommandType.SET_VALUE) {
1246
1248
  if (obj instanceof GuiMgControl && obj.isChoiceControl()) {
1247
1249
  if (value < 0)
1248
- guiCommand.value = '';
1250
+ if (obj.isComboBox())
1251
+ guiCommand.value = undefined;
1252
+ else
1253
+ guiCommand.value = '';
1249
1254
  }
1250
1255
  }
1251
1256
  GuiCommandQueue.getInstance().addCommand(guiCommand);
@@ -1320,6 +1325,8 @@ class Commands {
1320
1325
  static invoke() {
1321
1326
  GuiCommandQueue.getInstance().invoke();
1322
1327
  }
1328
+ constructor() {
1329
+ }
1323
1330
  }
1324
1331
  Commands.resolveCallback = null;
1325
1332
 
@@ -1595,7 +1602,7 @@ class Manager {
1595
1602
  }
1596
1603
  }
1597
1604
  static GetCtrlVal(ctrl) {
1598
- return Commands.getValue(ctrl, ctrl.getDisplayLine(true));
1605
+ return Commands.getValue(ctrl, ctrl.getDisplayLine(true), ctrl.isThreeStateCheckBox());
1599
1606
  }
1600
1607
  static SetReadOnlyControl(ctrl, isReadOnly) {
1601
1608
  return __awaiter(this, void 0, void 0, function* () {
@@ -3277,6 +3284,12 @@ class ValidationDetailsBase {
3277
3284
  }
3278
3285
 
3279
3286
  class NUM_TYPE {
3287
+ set Data(value) {
3288
+ this._data = value;
3289
+ }
3290
+ get Data() {
3291
+ return this._data;
3292
+ }
3280
3293
  constructor(recordHexStrOrByteValOrDecStrOrNumFrom, offsetOrPic, lengthOrCompIdx) {
3281
3294
  this.COMMACHAR = ',';
3282
3295
  this.DECIMALCHAR = '.';
@@ -3304,12 +3317,6 @@ class NUM_TYPE {
3304
3317
  }
3305
3318
  this.constructor_5(recordHexStrOrByteValOrDecStrOrNumFrom);
3306
3319
  }
3307
- set Data(value) {
3308
- this._data = value;
3309
- }
3310
- get Data() {
3311
- return this._data;
3312
- }
3313
3320
  constructor_0() {
3314
3321
  this.initConst();
3315
3322
  this.NUM_ZERO();
@@ -5323,17 +5330,17 @@ HebrewDate.DOW_LEN = 5;
5323
5330
  HebrewDate._localDows = new Array(8);
5324
5331
 
5325
5332
  class DisplayConvertor {
5326
- constructor() {
5327
- this._environment = null;
5328
- this.DATECHAR = 0;
5329
- this._environment = GuiEnvironment.Environment;
5330
- }
5331
5333
  static get Instance() {
5332
5334
  if (DisplayConvertor._instance === null) {
5333
5335
  DisplayConvertor._instance = new DisplayConvertor();
5334
5336
  }
5335
5337
  return DisplayConvertor._instance;
5336
5338
  }
5339
+ constructor() {
5340
+ this._environment = null;
5341
+ this.DATECHAR = 0;
5342
+ this._environment = GuiEnvironment.Environment;
5343
+ }
5337
5344
  getNewDateBreakParams() {
5338
5345
  return new DateBreakParams();
5339
5346
  }
@@ -5642,37 +5649,7 @@ class DisplayConvertor {
5642
5649
  breakParams.month = breakParams.month - 1;
5643
5650
  if (breakParams.year == 0 && breakParams.month == 0 && breakParams.day == 0)
5644
5651
  return null;
5645
- let maskStr = pic.getMask();
5646
- let outVal = NString.ToCharArray(maskStr);
5647
- let len = pic.getMaskSize();
5648
- let year = breakParams.year;
5649
- let outIdx = 0;
5650
- while (len > 0) {
5651
- switch (outVal[outIdx].charCodeAt(0)) {
5652
- case PICInterface.PIC_YY:
5653
- {
5654
- this.int_2_a(outVal, outIdx, 2, breakParams.year, '0');
5655
- let yearStr = NString.FromChars(outVal, outIdx, 2);
5656
- year = +yearStr;
5657
- outIdx += 2;
5658
- len -= 2;
5659
- }
5660
- break;
5661
- case PICInterface.PIC_YYYY:
5662
- this.int_2_a(outVal, outIdx, 4, breakParams.year, '0');
5663
- let yearStr = NString.FromChars(outVal, outIdx, 4);
5664
- year = +yearStr;
5665
- outIdx += 4;
5666
- len -= 4;
5667
- break;
5668
- default:
5669
- outIdx++;
5670
- len--;
5671
- break;
5672
- }
5673
- }
5674
- let nativeDt = new Date(year, breakParams.month, breakParams.day);
5675
- return nativeDt;
5652
+ return new Date(breakParams.year, breakParams.month, breakParams.day);
5676
5653
  }
5677
5654
  fromNativeDateToMgDateNumber(nativeDate, pic) {
5678
5655
  let numVal;
@@ -6097,10 +6074,33 @@ class DisplayConvertor {
6097
6074
  let time = new NUM_TYPE(dataStr).NUM_2_ULONG();
6098
6075
  let breakParams = new TimeBreakParams();
6099
6076
  DisplayConvertor.time_break(breakParams, time);
6100
- let nativeDt = new Date();
6101
- nativeDt.setHours(breakParams.hour);
6102
- nativeDt.setMinutes(breakParams.minute);
6103
- nativeDt.setSeconds(breakParams.second);
6077
+ let nativeDt = new Date(0);
6078
+ let maskStr = pic.getMask();
6079
+ let outVal = NString.ToCharArray(maskStr);
6080
+ let len = pic.getMaskSize();
6081
+ let outIdx = 0;
6082
+ while (len > 0) {
6083
+ switch (outVal[outIdx].charCodeAt(0)) {
6084
+ case (PICInterface.PIC_HH):
6085
+ nativeDt.setHours(breakParams.hour);
6086
+ outIdx += 2;
6087
+ len -= 2;
6088
+ break;
6089
+ case (PICInterface.PIC_MMT):
6090
+ nativeDt.setMinutes(breakParams.minute);
6091
+ outIdx += 2;
6092
+ len -= 2;
6093
+ break;
6094
+ case (PICInterface.PIC_SS):
6095
+ nativeDt.setSeconds(breakParams.second);
6096
+ outIdx += 2;
6097
+ len -= 2;
6098
+ break;
6099
+ default:
6100
+ outIdx++;
6101
+ len--;
6102
+ }
6103
+ }
6104
6104
  return nativeDt;
6105
6105
  }
6106
6106
  time_2_a_pic(AsciiStr, AsciiL, time, pic, time_pic_Z_edt, milliSeconds) {
@@ -7088,7 +7088,7 @@ class RecordUtils {
7088
7088
  case StorageAttribute.TIME:
7089
7089
  itemVal = !toBase64
7090
7090
  ? itemVal.substr(0, significantNumSize)
7091
- : Base64.encode(this.byteStreamToString(itemVal.substr(0, significantNumSize)), GuiEnvironment.Environment.GetEncoding());
7091
+ : Base64.encode(this.byteStreamToString(itemVal.substr(0, significantNumSize)));
7092
7092
  break;
7093
7093
  case StorageAttribute.ALPHA:
7094
7094
  case StorageAttribute.UNICODE:
@@ -7171,7 +7171,7 @@ class RecordUtils {
7171
7171
  itemVal = itemVal.substr(pos, (fldValLen) - (pos));
7172
7172
  itemVal = !toBase64
7173
7173
  ? StrUtil.stringToHexaDump(itemVal, 4)
7174
- : Base64.encode(itemVal, GuiEnvironment.Environment.GetEncoding());
7174
+ : Base64.encode(itemVal);
7175
7175
  pos = fldValLen;
7176
7176
  }
7177
7177
  else {
@@ -7180,7 +7180,7 @@ class RecordUtils {
7180
7180
  if (!toBase64)
7181
7181
  tmpBuf.Append(StrUtil.stringToHexaDump(itemVal.substr(pos, 0x7FFF), 4));
7182
7182
  else
7183
- tmpBuf.Append(Base64.encode(itemVal.substr(pos, 0x7FFF), GuiEnvironment.Environment.GetEncoding()));
7183
+ tmpBuf.Append(Base64.encode(itemVal.substr(pos, 0x7FFF)));
7184
7184
  tmpBuf.Append("0000");
7185
7185
  pos += 0x7FFF;
7186
7186
  }
@@ -8015,6 +8015,12 @@ class CellElement {
8015
8015
  }
8016
8016
 
8017
8017
  class FieldDef {
8018
+ set DbModifiable(value) {
8019
+ this._dbModifiable = value;
8020
+ }
8021
+ get DbModifiable() {
8022
+ return this._dbModifiable;
8023
+ }
8018
8024
  constructor(id) {
8019
8025
  this.DefaultValue = null;
8020
8026
  this.NullAllowed = false;
@@ -8038,12 +8044,6 @@ class FieldDef {
8038
8044
  this._id = id;
8039
8045
  this.VarDisplayName = NString.Empty;
8040
8046
  }
8041
- set DbModifiable(value) {
8042
- this._dbModifiable = value;
8043
- }
8044
- get DbModifiable() {
8045
- return this._dbModifiable;
8046
- }
8047
8047
  get PartOfDataview() {
8048
8048
  return this._partOfDataview;
8049
8049
  }
@@ -8777,6 +8777,9 @@ class CustomValidator {
8777
8777
  getErrMessage() { return this._errorMessage; }
8778
8778
  }
8779
8779
  class Property {
8780
+ get TaskDefinitionId() {
8781
+ return this._taskDefinitionId;
8782
+ }
8780
8783
  constructor(cId, cParentObj, parType, val) {
8781
8784
  this._id = Int32.MinValue;
8782
8785
  this._dataType = StorageAttribute.NONE;
@@ -8801,9 +8804,6 @@ class Property {
8801
8804
  else
8802
8805
  this.constructor_2(cId, cParentObj, parType, val);
8803
8806
  }
8804
- get TaskDefinitionId() {
8805
- return this._taskDefinitionId;
8806
- }
8807
8807
  constructor_0() {
8808
8808
  this._prevValues = new List();
8809
8809
  }
@@ -11094,6 +11094,15 @@ class FieldValidator {
11094
11094
  }
11095
11095
 
11096
11096
  class ValidationDetails extends ValidationDetailsBase {
11097
+ get ErrorMessage() {
11098
+ return this.errMessage;
11099
+ }
11100
+ set ErrorMessage(msg) {
11101
+ this.errMessage = msg;
11102
+ }
11103
+ get ValidationFailed() {
11104
+ return this._validationFailed;
11105
+ }
11097
11106
  constructor(oldvalueOrRangeStrOrVd, val, range, pic, control) {
11098
11107
  super();
11099
11108
  this._control = null;
@@ -11114,15 +11123,6 @@ class ValidationDetails extends ValidationDetailsBase {
11114
11123
  else if (arguments.length === 1 && (oldvalueOrRangeStrOrVd === null || oldvalueOrRangeStrOrVd instanceof ValidationDetails))
11115
11124
  this.constructor_2(oldvalueOrRangeStrOrVd);
11116
11125
  }
11117
- get ErrorMessage() {
11118
- return this.errMessage;
11119
- }
11120
- set ErrorMessage(msg) {
11121
- this.errMessage = msg;
11122
- }
11123
- get ValidationFailed() {
11124
- return this._validationFailed;
11125
- }
11126
11126
  constructor_0(oldvalue, val, range, pic, control) {
11127
11127
  this._picData = pic;
11128
11128
  this._oldvalue = oldvalue;
@@ -11339,6 +11339,9 @@ class ValidationDetails extends ValidationDetailsBase {
11339
11339
  const EMPTY_DCREF = -2;
11340
11340
  const NOT_FOUND = GuiConstants.DEFAULT_VALUE_INT;
11341
11341
  class DcValues {
11342
+ get HasReferences() {
11343
+ return this._refCount > 0;
11344
+ }
11342
11345
  constructor(empty) {
11343
11346
  this._id = 0;
11344
11347
  this._type = StorageAttribute.NONE;
@@ -11353,9 +11356,6 @@ class DcValues {
11353
11356
  }
11354
11357
  this._isNumericType = false;
11355
11358
  }
11356
- get HasReferences() {
11357
- return this._refCount > 0;
11358
- }
11359
11359
  GetAttr() {
11360
11360
  return this._type;
11361
11361
  }
@@ -11616,6 +11616,16 @@ class FocusManager {
11616
11616
  }
11617
11617
 
11618
11618
  class MgControlBase extends GuiControlPropertyAdapter {
11619
+ set Form(value) {
11620
+ this._form = value;
11621
+ this.GuiMgForm = value;
11622
+ }
11623
+ get Form() {
11624
+ return this._form;
11625
+ }
11626
+ get ControlIsn() {
11627
+ return this._controlIsn;
11628
+ }
11619
11629
  constructor(type, parentMgForm, parentControl) {
11620
11630
  super();
11621
11631
  this._ditIdx = 0;
@@ -11668,16 +11678,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
11668
11678
  }
11669
11679
  this.constructor_1(type, parentMgForm, parentControl);
11670
11680
  }
11671
- set Form(value) {
11672
- this._form = value;
11673
- this.GuiMgForm = value;
11674
- }
11675
- get Form() {
11676
- return this._form;
11677
- }
11678
- get ControlIsn() {
11679
- return this._controlIsn;
11680
- }
11681
11681
  constructor_0() {
11682
11682
  this._linkedControls = new List();
11683
11683
  this.DataType = StorageAttribute.NONE;
@@ -12483,6 +12483,16 @@ class MgControlBase extends GuiControlPropertyAdapter {
12483
12483
  setCheckBoxValue(line, mgVal) {
12484
12484
  let checkState = DisplayConvertor.toBoolean(mgVal);
12485
12485
  Commands.addValueWithLine(CommandType.SET_VALUE, this, line, checkState);
12486
+ Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.CheckBoxIndeterminate, this.IsNull);
12487
+ }
12488
+ setAsThreeState() {
12489
+ this._propTab.setProp(PropInterface.PROP_TYPE_THREE_STATES, "1", this, "C");
12490
+ }
12491
+ isThreeStateCheckBox() {
12492
+ let isThreeStateCheckBox = false;
12493
+ if (this.isCheckBox())
12494
+ isThreeStateCheckBox = this.GetComputedBooleanProperty(PropInterface.PROP_TYPE_THREE_STATES, false);
12495
+ return isThreeStateCheckBox;
12486
12496
  }
12487
12497
  refreshAndSetItemListByDataSource(line, valueChanged) {
12488
12498
  return __awaiter(this, void 0, void 0, function* () {
@@ -12993,7 +13003,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
12993
13003
  return retIsNullControl;
12994
13004
  }
12995
13005
  CanGetNullFromControlValue() {
12996
- return false;
13006
+ return this.isThreeStateCheckBox() && (this._field == null || this._field.NullAllowed);
12997
13007
  }
12998
13008
  isChoiceNull(idx) {
12999
13009
  let result;
@@ -13152,7 +13162,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
13152
13162
  valueChanged = yield this.refreshAndSetItemListByDataSource(line, valueChanged);
13153
13163
  if (!valueChanged)
13154
13164
  return;
13155
- this.setRadioChecked(this.Value);
13165
+ this.setRadioChecked(+this.Value);
13156
13166
  break;
13157
13167
  default:
13158
13168
  Events.WriteExceptionToLog(NString.Format("in Control.RefreshDisplayValue() unknown type: {0}", this.Type));
@@ -13255,38 +13265,21 @@ class MgControlBase extends GuiControlPropertyAdapter {
13255
13265
  }
13256
13266
  });
13257
13267
  }
13258
- refreshAndSetItemsListForRadioButton(line, execComputeChoice) {
13259
- return __awaiter(this, void 0, void 0, function* () {
13260
- let displayList = yield this.refreshDispRange(execComputeChoice);
13261
- let options = displayList.map((displayValue, counter) => {
13262
- let index = counter.toString();
13263
- return { index, displayValue };
13264
- });
13265
- Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, line, HtmlProperties.ItemsList, options);
13266
- });
13267
- }
13268
13268
  refreshAndSetItemsList(line, execComputeChoice) {
13269
13269
  const _super = Object.create(null, {
13270
- isSelectionCtrl: { get: () => super.isSelectionCtrl },
13271
- isTabControl: { get: () => super.isTabControl },
13272
- isRadio: { get: () => super.isRadio }
13270
+ isChoiceControl: { get: () => super.isChoiceControl }
13273
13271
  });
13274
13272
  return __awaiter(this, void 0, void 0, function* () {
13275
13273
  if (execComputeChoice) {
13276
13274
  this.clearRange(line);
13277
13275
  }
13278
13276
  let optionsStrings = yield this.refreshDispRange(execComputeChoice);
13279
- if (_super.isSelectionCtrl.call(this) || _super.isTabControl.call(this) || this.HasAutocomplete()) {
13277
+ if (_super.isChoiceControl.call(this) || this.HasAutocomplete()) {
13280
13278
  let options = optionsStrings.map((displayValue, index) => {
13281
13279
  return { index, displayValue };
13282
13280
  });
13283
13281
  Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, line, HtmlProperties.ItemsList, options);
13284
13282
  }
13285
- else {
13286
- if (_super.isRadio.call(this)) {
13287
- yield this.refreshAndSetItemsListForRadioButton(line, execComputeChoice);
13288
- }
13289
- }
13290
13283
  });
13291
13284
  }
13292
13285
  refreshDispRange(execComputeChoice) {
@@ -14025,7 +14018,7 @@ class MgFormBase extends GuiFormPropertyAdapter {
14025
14018
  }
14026
14019
  }
14027
14020
  else {
14028
- items.AddRange(yield mgControl.GetItemsRange());
14021
+ items.AddRange(yield mgControl.GetDisplayRange());
14029
14022
  }
14030
14023
  return MgFormBase.ConvertArrayListToString(items, false);
14031
14024
  }
@@ -14382,6 +14375,7 @@ class MgFormBase extends GuiFormPropertyAdapter {
14382
14375
  InitTableControl_1(dvSize, tableItemsCount) {
14383
14376
  if (this._tableMgControl != null) {
14384
14377
  Commands.addWithNumber(CommandType.SET_TABLE_ITEMS_COUNT, this._tableMgControl, tableItemsCount);
14378
+ Commands.addWithNumber(CommandType.SET_CHUNK_SIZE, this._tableMgControl, (this._task.DataView).getChunkSize());
14385
14379
  this._tableItemsCount = tableItemsCount;
14386
14380
  this.Rows.SetSize(dvSize);
14387
14381
  this._prevGuiTopIndex = -2;
@@ -15535,6 +15529,9 @@ class ExpVal {
15535
15529
  class MagicHelp {
15536
15530
  }
15537
15531
  class InternalHelp extends MagicHelp {
15532
+ GetHelpType() {
15533
+ return HelpType.Internal;
15534
+ }
15538
15535
  constructor() {
15539
15536
  super();
15540
15537
  this.val = null;
@@ -15551,47 +15548,44 @@ class InternalHelp extends MagicHelp {
15551
15548
  this.TitleBar = 0;
15552
15549
  this.FontTableIndex = 0;
15553
15550
  }
15554
- GetHelpType() {
15555
- return HelpType.Internal;
15556
- }
15557
15551
  }
15558
15552
  class PromptpHelp extends MagicHelp {
15553
+ GetHelpType() {
15554
+ return HelpType.Prompt;
15555
+ }
15559
15556
  constructor() {
15560
15557
  super();
15561
15558
  this.PromptHelpText = null;
15562
15559
  }
15563
- GetHelpType() {
15564
- return HelpType.Prompt;
15565
- }
15566
15560
  }
15567
15561
  class ToolTipHelp extends MagicHelp {
15562
+ GetHelpType() {
15563
+ return HelpType.Tooltip;
15564
+ }
15568
15565
  constructor() {
15569
15566
  super();
15570
15567
  this.tooltipHelpText = null;
15571
15568
  }
15572
- GetHelpType() {
15573
- return HelpType.Tooltip;
15574
- }
15575
15569
  }
15576
15570
  class URLHelp extends MagicHelp {
15571
+ GetHelpType() {
15572
+ return HelpType.URL;
15573
+ }
15577
15574
  constructor() {
15578
15575
  super();
15579
15576
  this.urlHelpText = null;
15580
15577
  }
15581
- GetHelpType() {
15582
- return HelpType.URL;
15583
- }
15584
15578
  }
15585
15579
  class WindowsHelp extends MagicHelp {
15580
+ GetHelpType() {
15581
+ return HelpType.Windows;
15582
+ }
15586
15583
  constructor() {
15587
15584
  super();
15588
15585
  this.FilePath = null;
15589
15586
  this.HelpCommand = 0;
15590
15587
  this.HelpKey = null;
15591
15588
  }
15592
- GetHelpType() {
15593
- return HelpType.Windows;
15594
- }
15595
15589
  }
15596
15590
  class Helps {
15597
15591
  constructor() {
@@ -15608,7 +15602,7 @@ class Helps {
15608
15602
  if (foundTagName === XMLConstants.MG_TAG_HELPTABLE) {
15609
15603
  let currrentIndex = parser.getCurrIndex();
15610
15604
  let encoded = parser.ReadContentOfCurrentElement().trim();
15611
- let decoded = Base64.decode(encoded.substr(0, encoded.length).trim());
15605
+ let decoded = Base64.decode(encoded.substr(0, encoded.length).trim(), Encoding.UTF8);
15612
15606
  let newXmlData = parser.getXMLdata().replace(encoded.trim(), decoded);
15613
15607
  parser.setXMLdata(newXmlData);
15614
15608
  parser.setCurrIndex(currrentIndex);
@@ -15771,6 +15765,21 @@ class GuiDataCollection {
15771
15765
  GuiDataCollection.MGDataTable = null;
15772
15766
 
15773
15767
  class GuiTaskBase {
15768
+ Init() {
15769
+ this.DataView.Init();
15770
+ }
15771
+ get RouterPath() {
15772
+ return this.routerPath;
15773
+ }
15774
+ get RouterParams() {
15775
+ return this.routeParams;
15776
+ }
15777
+ get InDefaultRouterOutlet() {
15778
+ return this.inDefaultRouterOutlet;
15779
+ }
15780
+ get IsBlockingBatch() {
15781
+ return !this._isMainPrg && this.isOpenWin() && !this._allowEvents && !this.IsInteractive;
15782
+ }
15774
15783
  constructor() {
15775
15784
  this._flowMonitor = null;
15776
15785
  this._keyboardMappingState = 0xFFFF0000;
@@ -15815,21 +15824,6 @@ class GuiTaskBase {
15815
15824
  this._nullArithmetic = Constants.NULL_ARITH_USE_DEF;
15816
15825
  this._propTab = new PropTable(this);
15817
15826
  }
15818
- Init() {
15819
- this.DataView.Init();
15820
- }
15821
- get RouterPath() {
15822
- return this.routerPath;
15823
- }
15824
- get RouterParams() {
15825
- return this.routeParams;
15826
- }
15827
- get InDefaultRouterOutlet() {
15828
- return this.inDefaultRouterOutlet;
15829
- }
15830
- get IsBlockingBatch() {
15831
- return !this._isMainPrg && this.isOpenWin() && !this._allowEvents && !this.IsInteractive;
15832
- }
15833
15827
  getTaskTag() {
15834
15828
  return this._taskTag;
15835
15829
  }