@magic-xpa/gui 4.1000.0-dev4100.401 → 4.1000.0-dev4100.404
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 +4 -5
- package/esm2020/src/GuiEnums.mjs +2 -1
- package/esm2020/src/Manager.mjs +2 -2
- package/esm2020/src/gui/low/GuiInteractive.mjs +3 -2
- package/esm2020/src/management/gui/MgControlBase.mjs +12 -2
- package/fesm2015/magic-xpa-gui.mjs +85 -73
- package/fesm2015/magic-xpa-gui.mjs.map +1 -1
- package/fesm2020/magic-xpa-gui.mjs +85 -73
- package/fesm2020/magic-xpa-gui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/Commands.d.ts +1 -1
- package/src/GuiEnums.d.ts +2 -1
- package/src/gui/low/GuiInteractive.d.ts +1 -1
- package/src/management/gui/MgControlBase.d.ts +2 -0
|
@@ -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();
|
|
@@ -1040,6 +1041,7 @@ var HtmlProperties;
|
|
|
1040
1041
|
HtmlProperties["SelectedLayer"] = "SelectedLayer";
|
|
1041
1042
|
HtmlProperties["BindingLevel"] = "bindingLevel";
|
|
1042
1043
|
HtmlProperties["ZoomButtonTooltip"] = "ZoomButtonTooltip";
|
|
1044
|
+
HtmlProperties["CheckBoxIndeterminate"] = "CheckBoxIndeterminate";
|
|
1043
1045
|
})(HtmlProperties || (HtmlProperties = {}));
|
|
1044
1046
|
var MenuStyle;
|
|
1045
1047
|
(function (MenuStyle) {
|
|
@@ -1155,73 +1157,6 @@ class GuiCommand {
|
|
|
1155
1157
|
}
|
|
1156
1158
|
}
|
|
1157
1159
|
|
|
1158
|
-
class GuiConstants {
|
|
1159
|
-
constructor() {
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
GuiConstants.DEFAULT_LIST_VALUE = -1;
|
|
1163
|
-
GuiConstants.DEFAULT_VALUE_INT = -999999;
|
|
1164
|
-
GuiConstants.ALL_LINES = -1;
|
|
1165
|
-
GuiConstants.NO_ROW_SELECTED = Int32.MinValue;
|
|
1166
|
-
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR = "control is not supported for mobile RIA deployment";
|
|
1167
|
-
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR_WINDOW_6 = "control is not supported for mobile RIA deployment on Window 6 standard";
|
|
1168
|
-
GuiConstants.TOOL_HEIGHT = 17;
|
|
1169
|
-
GuiConstants.TOOL_WIDTH = 16;
|
|
1170
|
-
GuiConstants.STR_DISPLAY_MEMBER = "DisplayMember";
|
|
1171
|
-
GuiConstants.STR_VALUE_MEMBER = "ValueMember";
|
|
1172
|
-
GuiConstants.PARENT_TYPE_TASK = 'T';
|
|
1173
|
-
GuiConstants.PARENT_TYPE_FORM = 'F';
|
|
1174
|
-
GuiConstants.PARENT_TYPE_CONTROL = 'C';
|
|
1175
|
-
GuiConstants.GENERIC_PROPERTY_BASE_ID = 10000;
|
|
1176
|
-
GuiConstants.TABBING_CYCLE_REMAIN_IN_CURRENT_RECORD = 'R';
|
|
1177
|
-
GuiConstants.TABBING_CYCLE_MOVE_TO_NEXT_RECORD = 'N';
|
|
1178
|
-
GuiConstants.TABBING_CYCLE_MOVE_TO_PARENT_TASK = 'P';
|
|
1179
|
-
GuiConstants.BLOB_PREFIX_ELEMENTS_COUNT = 5;
|
|
1180
|
-
GuiConstants.KEY_DOWN = 40;
|
|
1181
|
-
GuiConstants.KEY_RIGHT = 39;
|
|
1182
|
-
GuiConstants.KEY_UP = 38;
|
|
1183
|
-
GuiConstants.KEY_LEFT = 37;
|
|
1184
|
-
GuiConstants.KEY_HOME = 36;
|
|
1185
|
-
GuiConstants.KEY_END = 35;
|
|
1186
|
-
GuiConstants.KEY_PG_DOWN = 34;
|
|
1187
|
-
GuiConstants.KEY_PG_UP = 33;
|
|
1188
|
-
GuiConstants.KEY_SPACE = 32;
|
|
1189
|
-
GuiConstants.KEY_F12 = 123;
|
|
1190
|
-
GuiConstants.KEY_F1 = 112;
|
|
1191
|
-
GuiConstants.KEY_9 = 57;
|
|
1192
|
-
GuiConstants.KEY_0 = 48;
|
|
1193
|
-
GuiConstants.KEY_Z = 90;
|
|
1194
|
-
GuiConstants.KEY_A = 65;
|
|
1195
|
-
GuiConstants.KEY_DELETE = 46;
|
|
1196
|
-
GuiConstants.KEY_INSERT = 45;
|
|
1197
|
-
GuiConstants.KEY_BACKSPACE = 8;
|
|
1198
|
-
GuiConstants.KEY_TAB = 9;
|
|
1199
|
-
GuiConstants.KEY_RETURN = 13;
|
|
1200
|
-
GuiConstants.KEY_ESC = 27;
|
|
1201
|
-
GuiConstants.KEY_CAPS_LOCK = 20;
|
|
1202
|
-
GuiConstants.KEY_POINT1 = 190;
|
|
1203
|
-
GuiConstants.KEY_POINT2 = 110;
|
|
1204
|
-
GuiConstants.KEY_COMMA = 188;
|
|
1205
|
-
GuiConstants.KEY_CTRL = 17;
|
|
1206
|
-
GuiConstants.KEY_ALT = 18;
|
|
1207
|
-
GuiConstants.LOGON_CAPTION = "Logon - ";
|
|
1208
|
-
GuiConstants.ENTER_UID_TTL = "Please enter your user ID and password.";
|
|
1209
|
-
GuiConstants.GROUP_BOX_TITLE_MAX_SIZE = 62;
|
|
1210
|
-
GuiConstants.MSG_CAPTION_MAX_SIZE = 56;
|
|
1211
|
-
GuiConstants.LABEL_CAPTION_MAX_SIZE = 9;
|
|
1212
|
-
GuiConstants.PASSWORD_CAPTION_MAX_SIZE = 19;
|
|
1213
|
-
GuiConstants.REPLACE_ALL_TEXT = -1;
|
|
1214
|
-
GuiConstants.STR_LOGON_RTL = "LogonRTL";
|
|
1215
|
-
GuiConstants.STR_LOGO_WIN_ICON_URL = "LogonWindowIconURL";
|
|
1216
|
-
GuiConstants.STR_LOGON_IMAGE_URL = "LogonImageURL";
|
|
1217
|
-
GuiConstants.STR_LOGON_WIN_TITLE = "LogonWindowTitle";
|
|
1218
|
-
GuiConstants.STR_LOGON_GROUP_TITLE = "LogonGroupTitle";
|
|
1219
|
-
GuiConstants.STR_LOGON_MSG_CAPTION = "LogonMessageCaption";
|
|
1220
|
-
GuiConstants.STR_LOGON_USER_ID_CAPTION = "LogonUserIDCaption";
|
|
1221
|
-
GuiConstants.STR_LOGON_PASS_CAPTION = "LogonPasswordCaption";
|
|
1222
|
-
GuiConstants.STR_LOGON_OK_CAPTION = "LogonOKCaption";
|
|
1223
|
-
GuiConstants.STR_LOGON_CANCEL_CAPTION = "LogonCancelCaption";
|
|
1224
|
-
|
|
1225
1160
|
class Commands {
|
|
1226
1161
|
static SetResolveCallback(resolveCallback) {
|
|
1227
1162
|
this.resolveCallback = resolveCallback;
|
|
@@ -1248,9 +1183,9 @@ class Commands {
|
|
|
1248
1183
|
let guiInteractive = new GuiInteractive();
|
|
1249
1184
|
guiInteractive.setGetSuggestedValueOfChoiceControlOnTagData(ctrl, line, retSuggestedValue);
|
|
1250
1185
|
}
|
|
1251
|
-
static getValue(obj, line) {
|
|
1186
|
+
static getValue(obj, line, isThreeStateCheckBox) {
|
|
1252
1187
|
let guiInteractive = new GuiInteractive();
|
|
1253
|
-
return guiInteractive.getValue(obj, line);
|
|
1188
|
+
return guiInteractive.getValue(obj, line, isThreeStateCheckBox);
|
|
1254
1189
|
}
|
|
1255
1190
|
static getTopIndex(tablecontrol) {
|
|
1256
1191
|
let guiInteractive = new GuiInteractive();
|
|
@@ -1313,7 +1248,7 @@ class Commands {
|
|
|
1313
1248
|
if (obj instanceof GuiMgControl && obj.isChoiceControl()) {
|
|
1314
1249
|
if (value < 0)
|
|
1315
1250
|
if (obj.isComboBox())
|
|
1316
|
-
guiCommand.value =
|
|
1251
|
+
guiCommand.value = undefined;
|
|
1317
1252
|
else
|
|
1318
1253
|
guiCommand.value = '';
|
|
1319
1254
|
}
|
|
@@ -1667,7 +1602,7 @@ class Manager {
|
|
|
1667
1602
|
}
|
|
1668
1603
|
}
|
|
1669
1604
|
static GetCtrlVal(ctrl) {
|
|
1670
|
-
return Commands.getValue(ctrl, ctrl.getDisplayLine(true));
|
|
1605
|
+
return Commands.getValue(ctrl, ctrl.getDisplayLine(true), ctrl.isThreeStateCheckBox());
|
|
1671
1606
|
}
|
|
1672
1607
|
static SetReadOnlyControl(ctrl, isReadOnly) {
|
|
1673
1608
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1733,6 +1668,73 @@ Manager.DefaultServerName = null;
|
|
|
1733
1668
|
Manager.UtilImeJpn = (UtilStrByteMode.isLocaleDefLangJPN() ? new UtilImeJpn() : null);
|
|
1734
1669
|
Manager.EventsManager = null;
|
|
1735
1670
|
|
|
1671
|
+
class GuiConstants {
|
|
1672
|
+
constructor() {
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
GuiConstants.DEFAULT_LIST_VALUE = -1;
|
|
1676
|
+
GuiConstants.DEFAULT_VALUE_INT = -999999;
|
|
1677
|
+
GuiConstants.ALL_LINES = -1;
|
|
1678
|
+
GuiConstants.NO_ROW_SELECTED = Int32.MinValue;
|
|
1679
|
+
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR = "control is not supported for mobile RIA deployment";
|
|
1680
|
+
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR_WINDOW_6 = "control is not supported for mobile RIA deployment on Window 6 standard";
|
|
1681
|
+
GuiConstants.TOOL_HEIGHT = 17;
|
|
1682
|
+
GuiConstants.TOOL_WIDTH = 16;
|
|
1683
|
+
GuiConstants.STR_DISPLAY_MEMBER = "DisplayMember";
|
|
1684
|
+
GuiConstants.STR_VALUE_MEMBER = "ValueMember";
|
|
1685
|
+
GuiConstants.PARENT_TYPE_TASK = 'T';
|
|
1686
|
+
GuiConstants.PARENT_TYPE_FORM = 'F';
|
|
1687
|
+
GuiConstants.PARENT_TYPE_CONTROL = 'C';
|
|
1688
|
+
GuiConstants.GENERIC_PROPERTY_BASE_ID = 10000;
|
|
1689
|
+
GuiConstants.TABBING_CYCLE_REMAIN_IN_CURRENT_RECORD = 'R';
|
|
1690
|
+
GuiConstants.TABBING_CYCLE_MOVE_TO_NEXT_RECORD = 'N';
|
|
1691
|
+
GuiConstants.TABBING_CYCLE_MOVE_TO_PARENT_TASK = 'P';
|
|
1692
|
+
GuiConstants.BLOB_PREFIX_ELEMENTS_COUNT = 5;
|
|
1693
|
+
GuiConstants.KEY_DOWN = 40;
|
|
1694
|
+
GuiConstants.KEY_RIGHT = 39;
|
|
1695
|
+
GuiConstants.KEY_UP = 38;
|
|
1696
|
+
GuiConstants.KEY_LEFT = 37;
|
|
1697
|
+
GuiConstants.KEY_HOME = 36;
|
|
1698
|
+
GuiConstants.KEY_END = 35;
|
|
1699
|
+
GuiConstants.KEY_PG_DOWN = 34;
|
|
1700
|
+
GuiConstants.KEY_PG_UP = 33;
|
|
1701
|
+
GuiConstants.KEY_SPACE = 32;
|
|
1702
|
+
GuiConstants.KEY_F12 = 123;
|
|
1703
|
+
GuiConstants.KEY_F1 = 112;
|
|
1704
|
+
GuiConstants.KEY_9 = 57;
|
|
1705
|
+
GuiConstants.KEY_0 = 48;
|
|
1706
|
+
GuiConstants.KEY_Z = 90;
|
|
1707
|
+
GuiConstants.KEY_A = 65;
|
|
1708
|
+
GuiConstants.KEY_DELETE = 46;
|
|
1709
|
+
GuiConstants.KEY_INSERT = 45;
|
|
1710
|
+
GuiConstants.KEY_BACKSPACE = 8;
|
|
1711
|
+
GuiConstants.KEY_TAB = 9;
|
|
1712
|
+
GuiConstants.KEY_RETURN = 13;
|
|
1713
|
+
GuiConstants.KEY_ESC = 27;
|
|
1714
|
+
GuiConstants.KEY_CAPS_LOCK = 20;
|
|
1715
|
+
GuiConstants.KEY_POINT1 = 190;
|
|
1716
|
+
GuiConstants.KEY_POINT2 = 110;
|
|
1717
|
+
GuiConstants.KEY_COMMA = 188;
|
|
1718
|
+
GuiConstants.KEY_CTRL = 17;
|
|
1719
|
+
GuiConstants.KEY_ALT = 18;
|
|
1720
|
+
GuiConstants.LOGON_CAPTION = "Logon - ";
|
|
1721
|
+
GuiConstants.ENTER_UID_TTL = "Please enter your user ID and password.";
|
|
1722
|
+
GuiConstants.GROUP_BOX_TITLE_MAX_SIZE = 62;
|
|
1723
|
+
GuiConstants.MSG_CAPTION_MAX_SIZE = 56;
|
|
1724
|
+
GuiConstants.LABEL_CAPTION_MAX_SIZE = 9;
|
|
1725
|
+
GuiConstants.PASSWORD_CAPTION_MAX_SIZE = 19;
|
|
1726
|
+
GuiConstants.REPLACE_ALL_TEXT = -1;
|
|
1727
|
+
GuiConstants.STR_LOGON_RTL = "LogonRTL";
|
|
1728
|
+
GuiConstants.STR_LOGO_WIN_ICON_URL = "LogonWindowIconURL";
|
|
1729
|
+
GuiConstants.STR_LOGON_IMAGE_URL = "LogonImageURL";
|
|
1730
|
+
GuiConstants.STR_LOGON_WIN_TITLE = "LogonWindowTitle";
|
|
1731
|
+
GuiConstants.STR_LOGON_GROUP_TITLE = "LogonGroupTitle";
|
|
1732
|
+
GuiConstants.STR_LOGON_MSG_CAPTION = "LogonMessageCaption";
|
|
1733
|
+
GuiConstants.STR_LOGON_USER_ID_CAPTION = "LogonUserIDCaption";
|
|
1734
|
+
GuiConstants.STR_LOGON_PASS_CAPTION = "LogonPasswordCaption";
|
|
1735
|
+
GuiConstants.STR_LOGON_OK_CAPTION = "LogonOKCaption";
|
|
1736
|
+
GuiConstants.STR_LOGON_CANCEL_CAPTION = "LogonCancelCaption";
|
|
1737
|
+
|
|
1736
1738
|
class BlobType {
|
|
1737
1739
|
static getContentType(blob) {
|
|
1738
1740
|
try {
|
|
@@ -12511,6 +12513,16 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
12511
12513
|
setCheckBoxValue(line, mgVal) {
|
|
12512
12514
|
let checkState = DisplayConvertor.toBoolean(mgVal);
|
|
12513
12515
|
Commands.addValueWithLine(CommandType.SET_VALUE, this, line, checkState);
|
|
12516
|
+
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.CheckBoxIndeterminate, this.IsNull);
|
|
12517
|
+
}
|
|
12518
|
+
setAsThreeState() {
|
|
12519
|
+
this._propTab.setProp(PropInterface.PROP_TYPE_THREE_STATES, "1", this, "C");
|
|
12520
|
+
}
|
|
12521
|
+
isThreeStateCheckBox() {
|
|
12522
|
+
let isThreeStateCheckBox = false;
|
|
12523
|
+
if (this.isCheckBox())
|
|
12524
|
+
isThreeStateCheckBox = this.GetComputedBooleanProperty(PropInterface.PROP_TYPE_THREE_STATES, false);
|
|
12525
|
+
return isThreeStateCheckBox;
|
|
12514
12526
|
}
|
|
12515
12527
|
refreshAndSetItemListByDataSource(line, valueChanged) {
|
|
12516
12528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -13021,7 +13033,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
13021
13033
|
return retIsNullControl;
|
|
13022
13034
|
}
|
|
13023
13035
|
CanGetNullFromControlValue() {
|
|
13024
|
-
return
|
|
13036
|
+
return this.isThreeStateCheckBox() && (this._field == null || this._field.NullAllowed);
|
|
13025
13037
|
}
|
|
13026
13038
|
isChoiceNull(idx) {
|
|
13027
13039
|
let result;
|