@magic-xpa/gui 4.1000.0-dev4100.21 → 4.1000.0-dev4100.210
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/Commands.mjs +3 -3
- package/esm2020/src/Events.mjs +3 -3
- package/esm2020/src/management/data/DcValues.mjs +4 -4
- package/esm2020/src/management/data/FieldDef.mjs +7 -7
- package/esm2020/src/management/data/NUM_TYPE.mjs +7 -7
- package/esm2020/src/management/data/RecordUtils.mjs +4 -4
- package/esm2020/src/management/exp/ExpressionInterface.mjs +2 -1
- package/esm2020/src/management/gui/DisplayConvertor.mjs +6 -6
- package/esm2020/src/management/gui/Helps.mjs +16 -16
- package/esm2020/src/management/gui/MgControlBase.mjs +11 -11
- package/esm2020/src/management/gui/Property.mjs +4 -4
- package/esm2020/src/management/gui/ValidationDetails.mjs +10 -10
- package/esm2020/src/management/tasks/GuiTaskBase.mjs +16 -16
- package/fesm2015/magic-xpa-gui.mjs +80 -79
- package/fesm2015/magic-xpa-gui.mjs.map +1 -1
- package/fesm2020/magic-xpa-gui.mjs +80 -79
- package/fesm2020/magic-xpa-gui.mjs.map +1 -1
- package/package.json +4 -4
- package/src/management/exp/ExpressionInterface.d.ts +1 -0
- package/magic-xpa-gui.d.ts +0 -2
|
@@ -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;
|
|
@@ -1154,8 +1154,6 @@ class GuiCommand {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
1156
|
class Commands {
|
|
1157
|
-
constructor() {
|
|
1158
|
-
}
|
|
1159
1157
|
static SetResolveCallback(resolveCallback) {
|
|
1160
1158
|
this.resolveCallback = resolveCallback;
|
|
1161
1159
|
}
|
|
@@ -1320,6 +1318,8 @@ class Commands {
|
|
|
1320
1318
|
static invoke() {
|
|
1321
1319
|
GuiCommandQueue.getInstance().invoke();
|
|
1322
1320
|
}
|
|
1321
|
+
constructor() {
|
|
1322
|
+
}
|
|
1323
1323
|
}
|
|
1324
1324
|
Commands.resolveCallback = null;
|
|
1325
1325
|
|
|
@@ -3277,6 +3277,12 @@ class ValidationDetailsBase {
|
|
|
3277
3277
|
}
|
|
3278
3278
|
|
|
3279
3279
|
class NUM_TYPE {
|
|
3280
|
+
set Data(value) {
|
|
3281
|
+
this._data = value;
|
|
3282
|
+
}
|
|
3283
|
+
get Data() {
|
|
3284
|
+
return this._data;
|
|
3285
|
+
}
|
|
3280
3286
|
constructor(recordHexStrOrByteValOrDecStrOrNumFrom, offsetOrPic, lengthOrCompIdx) {
|
|
3281
3287
|
this.COMMACHAR = ',';
|
|
3282
3288
|
this.DECIMALCHAR = '.';
|
|
@@ -3304,12 +3310,6 @@ class NUM_TYPE {
|
|
|
3304
3310
|
}
|
|
3305
3311
|
this.constructor_5(recordHexStrOrByteValOrDecStrOrNumFrom);
|
|
3306
3312
|
}
|
|
3307
|
-
set Data(value) {
|
|
3308
|
-
this._data = value;
|
|
3309
|
-
}
|
|
3310
|
-
get Data() {
|
|
3311
|
-
return this._data;
|
|
3312
|
-
}
|
|
3313
3313
|
constructor_0() {
|
|
3314
3314
|
this.initConst();
|
|
3315
3315
|
this.NUM_ZERO();
|
|
@@ -5323,17 +5323,17 @@ HebrewDate.DOW_LEN = 5;
|
|
|
5323
5323
|
HebrewDate._localDows = new Array(8);
|
|
5324
5324
|
|
|
5325
5325
|
class DisplayConvertor {
|
|
5326
|
-
constructor() {
|
|
5327
|
-
this._environment = null;
|
|
5328
|
-
this.DATECHAR = 0;
|
|
5329
|
-
this._environment = GuiEnvironment.Environment;
|
|
5330
|
-
}
|
|
5331
5326
|
static get Instance() {
|
|
5332
5327
|
if (DisplayConvertor._instance === null) {
|
|
5333
5328
|
DisplayConvertor._instance = new DisplayConvertor();
|
|
5334
5329
|
}
|
|
5335
5330
|
return DisplayConvertor._instance;
|
|
5336
5331
|
}
|
|
5332
|
+
constructor() {
|
|
5333
|
+
this._environment = null;
|
|
5334
|
+
this.DATECHAR = 0;
|
|
5335
|
+
this._environment = GuiEnvironment.Environment;
|
|
5336
|
+
}
|
|
5337
5337
|
getNewDateBreakParams() {
|
|
5338
5338
|
return new DateBreakParams();
|
|
5339
5339
|
}
|
|
@@ -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))
|
|
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
|
|
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)
|
|
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;
|
|
@@ -15217,6 +15217,7 @@ ExpressionInterface.EXP_OP_CLIENT_DB_DISCONNECT = 636;
|
|
|
15217
15217
|
ExpressionInterface.EXP_OP_DATAVIEW_TO_DATASOURCE = 637;
|
|
15218
15218
|
ExpressionInterface.EXP_OP_CLIENT_DB_DEL = 638;
|
|
15219
15219
|
ExpressionInterface.EXP_OP_VARDISPLAYNAME = 647;
|
|
15220
|
+
ExpressionInterface.EXP_OP_CONTROL_ITEMS_REFRESH = 649;
|
|
15220
15221
|
ExpressionInterface.EXP_OP_VARCONTROLID = 650;
|
|
15221
15222
|
ExpressionInterface.EXP_OP_CONTROLITEMSLIST = 651;
|
|
15222
15223
|
ExpressionInterface.EXP_OP_CONTROLDISPLAYLIST = 652;
|
|
@@ -15534,6 +15535,9 @@ class ExpVal {
|
|
|
15534
15535
|
class MagicHelp {
|
|
15535
15536
|
}
|
|
15536
15537
|
class InternalHelp extends MagicHelp {
|
|
15538
|
+
GetHelpType() {
|
|
15539
|
+
return HelpType.Internal;
|
|
15540
|
+
}
|
|
15537
15541
|
constructor() {
|
|
15538
15542
|
super();
|
|
15539
15543
|
this.val = null;
|
|
@@ -15550,47 +15554,44 @@ class InternalHelp extends MagicHelp {
|
|
|
15550
15554
|
this.TitleBar = 0;
|
|
15551
15555
|
this.FontTableIndex = 0;
|
|
15552
15556
|
}
|
|
15553
|
-
GetHelpType() {
|
|
15554
|
-
return HelpType.Internal;
|
|
15555
|
-
}
|
|
15556
15557
|
}
|
|
15557
15558
|
class PromptpHelp extends MagicHelp {
|
|
15559
|
+
GetHelpType() {
|
|
15560
|
+
return HelpType.Prompt;
|
|
15561
|
+
}
|
|
15558
15562
|
constructor() {
|
|
15559
15563
|
super();
|
|
15560
15564
|
this.PromptHelpText = null;
|
|
15561
15565
|
}
|
|
15562
|
-
GetHelpType() {
|
|
15563
|
-
return HelpType.Prompt;
|
|
15564
|
-
}
|
|
15565
15566
|
}
|
|
15566
15567
|
class ToolTipHelp extends MagicHelp {
|
|
15568
|
+
GetHelpType() {
|
|
15569
|
+
return HelpType.Tooltip;
|
|
15570
|
+
}
|
|
15567
15571
|
constructor() {
|
|
15568
15572
|
super();
|
|
15569
15573
|
this.tooltipHelpText = null;
|
|
15570
15574
|
}
|
|
15571
|
-
GetHelpType() {
|
|
15572
|
-
return HelpType.Tooltip;
|
|
15573
|
-
}
|
|
15574
15575
|
}
|
|
15575
15576
|
class URLHelp extends MagicHelp {
|
|
15577
|
+
GetHelpType() {
|
|
15578
|
+
return HelpType.URL;
|
|
15579
|
+
}
|
|
15576
15580
|
constructor() {
|
|
15577
15581
|
super();
|
|
15578
15582
|
this.urlHelpText = null;
|
|
15579
15583
|
}
|
|
15580
|
-
GetHelpType() {
|
|
15581
|
-
return HelpType.URL;
|
|
15582
|
-
}
|
|
15583
15584
|
}
|
|
15584
15585
|
class WindowsHelp extends MagicHelp {
|
|
15586
|
+
GetHelpType() {
|
|
15587
|
+
return HelpType.Windows;
|
|
15588
|
+
}
|
|
15585
15589
|
constructor() {
|
|
15586
15590
|
super();
|
|
15587
15591
|
this.FilePath = null;
|
|
15588
15592
|
this.HelpCommand = 0;
|
|
15589
15593
|
this.HelpKey = null;
|
|
15590
15594
|
}
|
|
15591
|
-
GetHelpType() {
|
|
15592
|
-
return HelpType.Windows;
|
|
15593
|
-
}
|
|
15594
15595
|
}
|
|
15595
15596
|
class Helps {
|
|
15596
15597
|
constructor() {
|
|
@@ -15770,6 +15771,21 @@ class GuiDataCollection {
|
|
|
15770
15771
|
GuiDataCollection.MGDataTable = null;
|
|
15771
15772
|
|
|
15772
15773
|
class GuiTaskBase {
|
|
15774
|
+
Init() {
|
|
15775
|
+
this.DataView.Init();
|
|
15776
|
+
}
|
|
15777
|
+
get RouterPath() {
|
|
15778
|
+
return this.routerPath;
|
|
15779
|
+
}
|
|
15780
|
+
get RouterParams() {
|
|
15781
|
+
return this.routeParams;
|
|
15782
|
+
}
|
|
15783
|
+
get InDefaultRouterOutlet() {
|
|
15784
|
+
return this.inDefaultRouterOutlet;
|
|
15785
|
+
}
|
|
15786
|
+
get IsBlockingBatch() {
|
|
15787
|
+
return !this._isMainPrg && this.isOpenWin() && !this._allowEvents && !this.IsInteractive;
|
|
15788
|
+
}
|
|
15773
15789
|
constructor() {
|
|
15774
15790
|
this._flowMonitor = null;
|
|
15775
15791
|
this._keyboardMappingState = 0xFFFF0000;
|
|
@@ -15814,21 +15830,6 @@ class GuiTaskBase {
|
|
|
15814
15830
|
this._nullArithmetic = Constants.NULL_ARITH_USE_DEF;
|
|
15815
15831
|
this._propTab = new PropTable(this);
|
|
15816
15832
|
}
|
|
15817
|
-
Init() {
|
|
15818
|
-
this.DataView.Init();
|
|
15819
|
-
}
|
|
15820
|
-
get RouterPath() {
|
|
15821
|
-
return this.routerPath;
|
|
15822
|
-
}
|
|
15823
|
-
get RouterParams() {
|
|
15824
|
-
return this.routeParams;
|
|
15825
|
-
}
|
|
15826
|
-
get InDefaultRouterOutlet() {
|
|
15827
|
-
return this.inDefaultRouterOutlet;
|
|
15828
|
-
}
|
|
15829
|
-
get IsBlockingBatch() {
|
|
15830
|
-
return !this._isMainPrg && this.isOpenWin() && !this._allowEvents && !this.IsInteractive;
|
|
15831
|
-
}
|
|
15832
15833
|
getTaskTag() {
|
|
15833
15834
|
return this._taskTag;
|
|
15834
15835
|
}
|