@magic-xpa/gui 4.1200.0-dev4120.99 → 4.1200.0
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/fesm2022/magic-xpa-gui.mjs +20 -8
- package/fesm2022/magic-xpa-gui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/gui/GuiMgControl.d.ts +1 -0
- package/src/management/exp/ExpressionInterface.d.ts +1 -0
- package/src/management/gui/MgControlBase.d.ts +1 -1
- package/src/management/gui/PropInterface.d.ts +2 -1
|
@@ -1647,6 +1647,13 @@ class GuiMgControl extends ControlBase {
|
|
|
1647
1647
|
return this._type === MgControlType.CTRL_TYPE_LIST;
|
|
1648
1648
|
}
|
|
1649
1649
|
/// <summary>
|
|
1650
|
+
/// Returns true is multi selection list box else false.
|
|
1651
|
+
/// </summary>
|
|
1652
|
+
/// <returns></returns>
|
|
1653
|
+
IsMultipleSelectionListBox() {
|
|
1654
|
+
return this.isListBox();
|
|
1655
|
+
}
|
|
1656
|
+
/// <summary>
|
|
1650
1657
|
/// returns true if this control is a isButton control
|
|
1651
1658
|
/// </summary>
|
|
1652
1659
|
isButton() {
|
|
@@ -2282,7 +2289,7 @@ class Commands {
|
|
|
2282
2289
|
guiCommand.value = value;
|
|
2283
2290
|
guiCommand.line = line;
|
|
2284
2291
|
if (commandType === CommandType.SET_VALUE) {
|
|
2285
|
-
if (obj instanceof GuiMgControl && obj.isChoiceControl()) {
|
|
2292
|
+
if (obj instanceof GuiMgControl && obj.isChoiceControl() && !obj.IsMultipleSelectionListBox()) {
|
|
2286
2293
|
if (value < 0)
|
|
2287
2294
|
//TODO: Handling done for bug # 32083 for combobox only. To be done for all types of choice controls
|
|
2288
2295
|
if (obj.isComboBox())
|
|
@@ -2620,6 +2627,7 @@ var PropInterface;
|
|
|
2620
2627
|
PropInterface[PropInterface["PROP_TYPE_SERVER_READ_AHEAD"] = 736] = "PROP_TYPE_SERVER_READ_AHEAD";
|
|
2621
2628
|
PropInterface[PropInterface["PROP_TYPE_AUTO_COMPLETE_MODE_WC"] = 740] = "PROP_TYPE_AUTO_COMPLETE_MODE_WC";
|
|
2622
2629
|
PropInterface[PropInterface["PROP_TYPE_PARK_FIRST_ON"] = 743] = "PROP_TYPE_PARK_FIRST_ON";
|
|
2630
|
+
PropInterface[PropInterface["PROP_TYPE_ON_DEMAND"] = 747] = "PROP_TYPE_ON_DEMAND";
|
|
2623
2631
|
})(PropInterface || (PropInterface = {}));
|
|
2624
2632
|
|
|
2625
2633
|
class GuiEnvironment {
|
|
@@ -11742,6 +11750,7 @@ class PropDefaults {
|
|
|
11742
11750
|
case PropInterface.PROP_TYPE_FILL_WIDTH:
|
|
11743
11751
|
case PropInterface.PROP_TYPE_MULTI_COLUMN_DISPLAY:
|
|
11744
11752
|
case PropInterface.PROP_TYPE_AUTO_COMPLETE_MODE_WC:
|
|
11753
|
+
case PropInterface.PROP_TYPE_ON_DEMAND:
|
|
11745
11754
|
val = "0"; // no boolean
|
|
11746
11755
|
break;
|
|
11747
11756
|
case PropInterface.PROP_TYPE_SYSTEM_MENU:
|
|
@@ -12227,6 +12236,7 @@ class Property {
|
|
|
12227
12236
|
case PropInterface.PROP_TYPE_DEFAULT_OUTLET:
|
|
12228
12237
|
case PropInterface.PROP_TYPE_SERVER_READ_AHEAD:
|
|
12229
12238
|
case PropInterface.PROP_TYPE_AUTO_COMPLETE_MODE_WC:
|
|
12239
|
+
case PropInterface.PROP_TYPE_ON_DEMAND:
|
|
12230
12240
|
this._dataType = StorageAttribute.BOOLEAN;
|
|
12231
12241
|
break;
|
|
12232
12242
|
case PropInterface.PROP_TYPE_IMAGE_FILENAME:
|
|
@@ -12518,6 +12528,7 @@ class Property {
|
|
|
12518
12528
|
case PropInterface.PROP_TYPE_BEFORE_900_VERSION:
|
|
12519
12529
|
case PropInterface.PROP_TYPE_REFRESH_WHEN_HIDDEN:
|
|
12520
12530
|
case PropInterface.PROP_TYPE_SERVER_READ_AHEAD:
|
|
12531
|
+
case PropInterface.PROP_TYPE_ON_DEMAND:
|
|
12521
12532
|
skip = true;
|
|
12522
12533
|
break;
|
|
12523
12534
|
case PropInterface.PROP_TYPE_BUTTON_STYLE:
|
|
@@ -15873,6 +15884,13 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
15873
15884
|
return result;
|
|
15874
15885
|
}
|
|
15875
15886
|
/// <summary>
|
|
15887
|
+
/// returns true if edit control's on demand property is true.
|
|
15888
|
+
/// </summary>
|
|
15889
|
+
/// <returns></returns>
|
|
15890
|
+
isOnDemandSelectionList() {
|
|
15891
|
+
return this.GetComputedBooleanProperty(PropInterface.PROP_TYPE_ON_DEMAND, false);
|
|
15892
|
+
}
|
|
15893
|
+
/// <summary>
|
|
15876
15894
|
/// returns the current dc values of this data control from the current record
|
|
15877
15895
|
/// </summary>
|
|
15878
15896
|
getDcVals() {
|
|
@@ -16132,13 +16150,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
16132
16150
|
return selectedIndice;
|
|
16133
16151
|
}
|
|
16134
16152
|
/// <summary>
|
|
16135
|
-
/// Returns true is multi selection list box else false.
|
|
16136
|
-
/// </summary>
|
|
16137
|
-
/// <returns></returns>
|
|
16138
|
-
IsMultipleSelectionListBox() {
|
|
16139
|
-
return super.isListBox();
|
|
16140
|
-
}
|
|
16141
|
-
/// <summary>
|
|
16142
16153
|
/// Returns true if control picture is date or time
|
|
16143
16154
|
/// </summary>
|
|
16144
16155
|
/// <returns></returns>
|
|
@@ -20114,6 +20125,7 @@ class ExpressionInterface {
|
|
|
20114
20125
|
static EXP_OP_GET_COOKIE = 702;
|
|
20115
20126
|
static EXP_OP_DELETE_COOKIE = 703;
|
|
20116
20127
|
static EXP_OP_ROUTEGET = 705;
|
|
20128
|
+
static EXP_OP_HASH = 716;
|
|
20117
20129
|
constructor() {
|
|
20118
20130
|
}
|
|
20119
20131
|
}
|