@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
|
@@ -25,8 +25,6 @@ class GuiMgForm extends ControlBase {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
class Events {
|
|
28
|
-
constructor() {
|
|
29
|
-
}
|
|
30
28
|
static OnFocus(ctrl, line, isProduceClick, onMultiMark) {
|
|
31
29
|
Debug.Assert(Events.FocusEvent !== null);
|
|
32
30
|
Events.FocusEvent(ctrl, line, isProduceClick, onMultiMark);
|
|
@@ -375,6 +373,8 @@ class Events {
|
|
|
375
373
|
Events.CopyDataEvent(guiMgForm, copyData);
|
|
376
374
|
}
|
|
377
375
|
}
|
|
376
|
+
constructor() {
|
|
377
|
+
}
|
|
378
378
|
}
|
|
379
379
|
Events.NonParkableLastParkedCtrlEvent = null;
|
|
380
380
|
Events.IsBatchRunningInMainContextEvent = null;
|
|
@@ -1153,8 +1153,6 @@ class GuiCommand {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
|
|
1155
1155
|
class Commands {
|
|
1156
|
-
constructor() {
|
|
1157
|
-
}
|
|
1158
1156
|
static SetResolveCallback(resolveCallback) {
|
|
1159
1157
|
this.resolveCallback = resolveCallback;
|
|
1160
1158
|
}
|
|
@@ -1317,6 +1315,8 @@ class Commands {
|
|
|
1317
1315
|
static invoke() {
|
|
1318
1316
|
GuiCommandQueue.getInstance().invoke();
|
|
1319
1317
|
}
|
|
1318
|
+
constructor() {
|
|
1319
|
+
}
|
|
1320
1320
|
}
|
|
1321
1321
|
Commands.resolveCallback = null;
|
|
1322
1322
|
|
|
@@ -3270,6 +3270,12 @@ class ValidationDetailsBase {
|
|
|
3270
3270
|
}
|
|
3271
3271
|
|
|
3272
3272
|
class NUM_TYPE {
|
|
3273
|
+
set Data(value) {
|
|
3274
|
+
this._data = value;
|
|
3275
|
+
}
|
|
3276
|
+
get Data() {
|
|
3277
|
+
return this._data;
|
|
3278
|
+
}
|
|
3273
3279
|
constructor(recordHexStrOrByteValOrDecStrOrNumFrom, offsetOrPic, lengthOrCompIdx) {
|
|
3274
3280
|
this.COMMACHAR = ',';
|
|
3275
3281
|
this.DECIMALCHAR = '.';
|
|
@@ -3297,12 +3303,6 @@ class NUM_TYPE {
|
|
|
3297
3303
|
}
|
|
3298
3304
|
this.constructor_5(recordHexStrOrByteValOrDecStrOrNumFrom);
|
|
3299
3305
|
}
|
|
3300
|
-
set Data(value) {
|
|
3301
|
-
this._data = value;
|
|
3302
|
-
}
|
|
3303
|
-
get Data() {
|
|
3304
|
-
return this._data;
|
|
3305
|
-
}
|
|
3306
3306
|
constructor_0() {
|
|
3307
3307
|
this.initConst();
|
|
3308
3308
|
this.NUM_ZERO();
|
|
@@ -5316,17 +5316,17 @@ HebrewDate.DOW_LEN = 5;
|
|
|
5316
5316
|
HebrewDate._localDows = new Array(8);
|
|
5317
5317
|
|
|
5318
5318
|
class DisplayConvertor {
|
|
5319
|
-
constructor() {
|
|
5320
|
-
this._environment = null;
|
|
5321
|
-
this.DATECHAR = 0;
|
|
5322
|
-
this._environment = GuiEnvironment.Environment;
|
|
5323
|
-
}
|
|
5324
5319
|
static get Instance() {
|
|
5325
5320
|
if (DisplayConvertor._instance === null) {
|
|
5326
5321
|
DisplayConvertor._instance = new DisplayConvertor();
|
|
5327
5322
|
}
|
|
5328
5323
|
return DisplayConvertor._instance;
|
|
5329
5324
|
}
|
|
5325
|
+
constructor() {
|
|
5326
|
+
this._environment = null;
|
|
5327
|
+
this.DATECHAR = 0;
|
|
5328
|
+
this._environment = GuiEnvironment.Environment;
|
|
5329
|
+
}
|
|
5330
5330
|
getNewDateBreakParams() {
|
|
5331
5331
|
return new DateBreakParams();
|
|
5332
5332
|
}
|
|
@@ -7081,7 +7081,7 @@ class RecordUtils {
|
|
|
7081
7081
|
case StorageAttribute.TIME:
|
|
7082
7082
|
itemVal = !toBase64
|
|
7083
7083
|
? itemVal.substr(0, significantNumSize)
|
|
7084
|
-
: Base64.encode(this.byteStreamToString(itemVal.substr(0, significantNumSize))
|
|
7084
|
+
: Base64.encode(this.byteStreamToString(itemVal.substr(0, significantNumSize)));
|
|
7085
7085
|
break;
|
|
7086
7086
|
case StorageAttribute.ALPHA:
|
|
7087
7087
|
case StorageAttribute.UNICODE:
|
|
@@ -7164,7 +7164,7 @@ class RecordUtils {
|
|
|
7164
7164
|
itemVal = itemVal.substr(pos, (fldValLen) - (pos));
|
|
7165
7165
|
itemVal = !toBase64
|
|
7166
7166
|
? StrUtil.stringToHexaDump(itemVal, 4)
|
|
7167
|
-
: Base64.encode(itemVal
|
|
7167
|
+
: Base64.encode(itemVal);
|
|
7168
7168
|
pos = fldValLen;
|
|
7169
7169
|
}
|
|
7170
7170
|
else {
|
|
@@ -7173,7 +7173,7 @@ class RecordUtils {
|
|
|
7173
7173
|
if (!toBase64)
|
|
7174
7174
|
tmpBuf.Append(StrUtil.stringToHexaDump(itemVal.substr(pos, 0x7FFF), 4));
|
|
7175
7175
|
else
|
|
7176
|
-
tmpBuf.Append(Base64.encode(itemVal.substr(pos, 0x7FFF)
|
|
7176
|
+
tmpBuf.Append(Base64.encode(itemVal.substr(pos, 0x7FFF)));
|
|
7177
7177
|
tmpBuf.Append("0000");
|
|
7178
7178
|
pos += 0x7FFF;
|
|
7179
7179
|
}
|
|
@@ -8008,6 +8008,12 @@ class CellElement {
|
|
|
8008
8008
|
}
|
|
8009
8009
|
|
|
8010
8010
|
class FieldDef {
|
|
8011
|
+
set DbModifiable(value) {
|
|
8012
|
+
this._dbModifiable = value;
|
|
8013
|
+
}
|
|
8014
|
+
get DbModifiable() {
|
|
8015
|
+
return this._dbModifiable;
|
|
8016
|
+
}
|
|
8011
8017
|
constructor(id) {
|
|
8012
8018
|
this.DefaultValue = null;
|
|
8013
8019
|
this.NullAllowed = false;
|
|
@@ -8031,12 +8037,6 @@ class FieldDef {
|
|
|
8031
8037
|
this._id = id;
|
|
8032
8038
|
this.VarDisplayName = NString.Empty;
|
|
8033
8039
|
}
|
|
8034
|
-
set DbModifiable(value) {
|
|
8035
|
-
this._dbModifiable = value;
|
|
8036
|
-
}
|
|
8037
|
-
get DbModifiable() {
|
|
8038
|
-
return this._dbModifiable;
|
|
8039
|
-
}
|
|
8040
8040
|
get PartOfDataview() {
|
|
8041
8041
|
return this._partOfDataview;
|
|
8042
8042
|
}
|
|
@@ -8756,6 +8756,9 @@ class CustomValidator {
|
|
|
8756
8756
|
getErrMessage() { return this._errorMessage; }
|
|
8757
8757
|
}
|
|
8758
8758
|
class Property {
|
|
8759
|
+
get TaskDefinitionId() {
|
|
8760
|
+
return this._taskDefinitionId;
|
|
8761
|
+
}
|
|
8759
8762
|
constructor(cId, cParentObj, parType, val) {
|
|
8760
8763
|
this._id = Int32.MinValue;
|
|
8761
8764
|
this._dataType = StorageAttribute.NONE;
|
|
@@ -8780,9 +8783,6 @@ class Property {
|
|
|
8780
8783
|
else
|
|
8781
8784
|
this.constructor_2(cId, cParentObj, parType, val);
|
|
8782
8785
|
}
|
|
8783
|
-
get TaskDefinitionId() {
|
|
8784
|
-
return this._taskDefinitionId;
|
|
8785
|
-
}
|
|
8786
8786
|
constructor_0() {
|
|
8787
8787
|
this._prevValues = new List();
|
|
8788
8788
|
}
|
|
@@ -11041,6 +11041,15 @@ class FieldValidator {
|
|
|
11041
11041
|
}
|
|
11042
11042
|
|
|
11043
11043
|
class ValidationDetails extends ValidationDetailsBase {
|
|
11044
|
+
get ErrorMessage() {
|
|
11045
|
+
return this.errMessage;
|
|
11046
|
+
}
|
|
11047
|
+
set ErrorMessage(msg) {
|
|
11048
|
+
this.errMessage = msg;
|
|
11049
|
+
}
|
|
11050
|
+
get ValidationFailed() {
|
|
11051
|
+
return this._validationFailed;
|
|
11052
|
+
}
|
|
11044
11053
|
constructor(oldvalueOrRangeStrOrVd, val, range, pic, control) {
|
|
11045
11054
|
super();
|
|
11046
11055
|
this._control = null;
|
|
@@ -11061,15 +11070,6 @@ class ValidationDetails extends ValidationDetailsBase {
|
|
|
11061
11070
|
else if (arguments.length === 1 && (oldvalueOrRangeStrOrVd === null || oldvalueOrRangeStrOrVd instanceof ValidationDetails))
|
|
11062
11071
|
this.constructor_2(oldvalueOrRangeStrOrVd);
|
|
11063
11072
|
}
|
|
11064
|
-
get ErrorMessage() {
|
|
11065
|
-
return this.errMessage;
|
|
11066
|
-
}
|
|
11067
|
-
set ErrorMessage(msg) {
|
|
11068
|
-
this.errMessage = msg;
|
|
11069
|
-
}
|
|
11070
|
-
get ValidationFailed() {
|
|
11071
|
-
return this._validationFailed;
|
|
11072
|
-
}
|
|
11073
11073
|
constructor_0(oldvalue, val, range, pic, control) {
|
|
11074
11074
|
this._picData = pic;
|
|
11075
11075
|
this._oldvalue = oldvalue;
|
|
@@ -11286,6 +11286,9 @@ class ValidationDetails extends ValidationDetailsBase {
|
|
|
11286
11286
|
const EMPTY_DCREF = -2;
|
|
11287
11287
|
const NOT_FOUND = GuiConstants.DEFAULT_VALUE_INT;
|
|
11288
11288
|
class DcValues {
|
|
11289
|
+
get HasReferences() {
|
|
11290
|
+
return this._refCount > 0;
|
|
11291
|
+
}
|
|
11289
11292
|
constructor(empty) {
|
|
11290
11293
|
this._id = 0;
|
|
11291
11294
|
this._type = StorageAttribute.NONE;
|
|
@@ -11300,9 +11303,6 @@ class DcValues {
|
|
|
11300
11303
|
}
|
|
11301
11304
|
this._isNumericType = false;
|
|
11302
11305
|
}
|
|
11303
|
-
get HasReferences() {
|
|
11304
|
-
return this._refCount > 0;
|
|
11305
|
-
}
|
|
11306
11306
|
GetAttr() {
|
|
11307
11307
|
return this._type;
|
|
11308
11308
|
}
|
|
@@ -11557,6 +11557,16 @@ class FocusManager {
|
|
|
11557
11557
|
}
|
|
11558
11558
|
|
|
11559
11559
|
class MgControlBase extends GuiControlPropertyAdapter {
|
|
11560
|
+
set Form(value) {
|
|
11561
|
+
this._form = value;
|
|
11562
|
+
this.GuiMgForm = value;
|
|
11563
|
+
}
|
|
11564
|
+
get Form() {
|
|
11565
|
+
return this._form;
|
|
11566
|
+
}
|
|
11567
|
+
get ControlIsn() {
|
|
11568
|
+
return this._controlIsn;
|
|
11569
|
+
}
|
|
11560
11570
|
constructor(type, parentMgForm, parentControl) {
|
|
11561
11571
|
super();
|
|
11562
11572
|
this._ditIdx = 0;
|
|
@@ -11609,16 +11619,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
11609
11619
|
}
|
|
11610
11620
|
this.constructor_1(type, parentMgForm, parentControl);
|
|
11611
11621
|
}
|
|
11612
|
-
set Form(value) {
|
|
11613
|
-
this._form = value;
|
|
11614
|
-
this.GuiMgForm = value;
|
|
11615
|
-
}
|
|
11616
|
-
get Form() {
|
|
11617
|
-
return this._form;
|
|
11618
|
-
}
|
|
11619
|
-
get ControlIsn() {
|
|
11620
|
-
return this._controlIsn;
|
|
11621
|
-
}
|
|
11622
11622
|
constructor_0() {
|
|
11623
11623
|
this._linkedControls = new List();
|
|
11624
11624
|
this.DataType = StorageAttribute.NONE;
|
|
@@ -15041,6 +15041,7 @@ ExpressionInterface.EXP_OP_CLIENT_DB_DISCONNECT = 636;
|
|
|
15041
15041
|
ExpressionInterface.EXP_OP_DATAVIEW_TO_DATASOURCE = 637;
|
|
15042
15042
|
ExpressionInterface.EXP_OP_CLIENT_DB_DEL = 638;
|
|
15043
15043
|
ExpressionInterface.EXP_OP_VARDISPLAYNAME = 647;
|
|
15044
|
+
ExpressionInterface.EXP_OP_CONTROL_ITEMS_REFRESH = 649;
|
|
15044
15045
|
ExpressionInterface.EXP_OP_VARCONTROLID = 650;
|
|
15045
15046
|
ExpressionInterface.EXP_OP_CONTROLITEMSLIST = 651;
|
|
15046
15047
|
ExpressionInterface.EXP_OP_CONTROLDISPLAYLIST = 652;
|
|
@@ -15358,6 +15359,9 @@ class ExpVal {
|
|
|
15358
15359
|
class MagicHelp {
|
|
15359
15360
|
}
|
|
15360
15361
|
class InternalHelp extends MagicHelp {
|
|
15362
|
+
GetHelpType() {
|
|
15363
|
+
return HelpType.Internal;
|
|
15364
|
+
}
|
|
15361
15365
|
constructor() {
|
|
15362
15366
|
super();
|
|
15363
15367
|
this.val = null;
|
|
@@ -15374,47 +15378,44 @@ class InternalHelp extends MagicHelp {
|
|
|
15374
15378
|
this.TitleBar = 0;
|
|
15375
15379
|
this.FontTableIndex = 0;
|
|
15376
15380
|
}
|
|
15377
|
-
GetHelpType() {
|
|
15378
|
-
return HelpType.Internal;
|
|
15379
|
-
}
|
|
15380
15381
|
}
|
|
15381
15382
|
class PromptpHelp extends MagicHelp {
|
|
15383
|
+
GetHelpType() {
|
|
15384
|
+
return HelpType.Prompt;
|
|
15385
|
+
}
|
|
15382
15386
|
constructor() {
|
|
15383
15387
|
super();
|
|
15384
15388
|
this.PromptHelpText = null;
|
|
15385
15389
|
}
|
|
15386
|
-
GetHelpType() {
|
|
15387
|
-
return HelpType.Prompt;
|
|
15388
|
-
}
|
|
15389
15390
|
}
|
|
15390
15391
|
class ToolTipHelp extends MagicHelp {
|
|
15392
|
+
GetHelpType() {
|
|
15393
|
+
return HelpType.Tooltip;
|
|
15394
|
+
}
|
|
15391
15395
|
constructor() {
|
|
15392
15396
|
super();
|
|
15393
15397
|
this.tooltipHelpText = null;
|
|
15394
15398
|
}
|
|
15395
|
-
GetHelpType() {
|
|
15396
|
-
return HelpType.Tooltip;
|
|
15397
|
-
}
|
|
15398
15399
|
}
|
|
15399
15400
|
class URLHelp extends MagicHelp {
|
|
15401
|
+
GetHelpType() {
|
|
15402
|
+
return HelpType.URL;
|
|
15403
|
+
}
|
|
15400
15404
|
constructor() {
|
|
15401
15405
|
super();
|
|
15402
15406
|
this.urlHelpText = null;
|
|
15403
15407
|
}
|
|
15404
|
-
GetHelpType() {
|
|
15405
|
-
return HelpType.URL;
|
|
15406
|
-
}
|
|
15407
15408
|
}
|
|
15408
15409
|
class WindowsHelp extends MagicHelp {
|
|
15410
|
+
GetHelpType() {
|
|
15411
|
+
return HelpType.Windows;
|
|
15412
|
+
}
|
|
15409
15413
|
constructor() {
|
|
15410
15414
|
super();
|
|
15411
15415
|
this.FilePath = null;
|
|
15412
15416
|
this.HelpCommand = 0;
|
|
15413
15417
|
this.HelpKey = null;
|
|
15414
15418
|
}
|
|
15415
|
-
GetHelpType() {
|
|
15416
|
-
return HelpType.Windows;
|
|
15417
|
-
}
|
|
15418
15419
|
}
|
|
15419
15420
|
class Helps {
|
|
15420
15421
|
constructor() {
|
|
@@ -15594,6 +15595,21 @@ class GuiDataCollection {
|
|
|
15594
15595
|
GuiDataCollection.MGDataTable = null;
|
|
15595
15596
|
|
|
15596
15597
|
class GuiTaskBase {
|
|
15598
|
+
Init() {
|
|
15599
|
+
this.DataView.Init();
|
|
15600
|
+
}
|
|
15601
|
+
get RouterPath() {
|
|
15602
|
+
return this.routerPath;
|
|
15603
|
+
}
|
|
15604
|
+
get RouterParams() {
|
|
15605
|
+
return this.routeParams;
|
|
15606
|
+
}
|
|
15607
|
+
get InDefaultRouterOutlet() {
|
|
15608
|
+
return this.inDefaultRouterOutlet;
|
|
15609
|
+
}
|
|
15610
|
+
get IsBlockingBatch() {
|
|
15611
|
+
return !this._isMainPrg && this.isOpenWin() && !this._allowEvents && !this.IsInteractive;
|
|
15612
|
+
}
|
|
15597
15613
|
constructor() {
|
|
15598
15614
|
this._flowMonitor = null;
|
|
15599
15615
|
this._keyboardMappingState = 0xFFFF0000;
|
|
@@ -15638,21 +15654,6 @@ class GuiTaskBase {
|
|
|
15638
15654
|
this._nullArithmetic = Constants.NULL_ARITH_USE_DEF;
|
|
15639
15655
|
this._propTab = new PropTable(this);
|
|
15640
15656
|
}
|
|
15641
|
-
Init() {
|
|
15642
|
-
this.DataView.Init();
|
|
15643
|
-
}
|
|
15644
|
-
get RouterPath() {
|
|
15645
|
-
return this.routerPath;
|
|
15646
|
-
}
|
|
15647
|
-
get RouterParams() {
|
|
15648
|
-
return this.routeParams;
|
|
15649
|
-
}
|
|
15650
|
-
get InDefaultRouterOutlet() {
|
|
15651
|
-
return this.inDefaultRouterOutlet;
|
|
15652
|
-
}
|
|
15653
|
-
get IsBlockingBatch() {
|
|
15654
|
-
return !this._isMainPrg && this.isOpenWin() && !this._allowEvents && !this.IsInteractive;
|
|
15655
|
-
}
|
|
15656
15657
|
getTaskTag() {
|
|
15657
15658
|
return this._taskTag;
|
|
15658
15659
|
}
|