@magic-xpa/gui 4.1000.0-dev4100.401 → 4.1000.0-dev4100.403
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
|
@@ -547,9 +547,10 @@ class GuiInteractiveBase {
|
|
|
547
547
|
this._boolVal = retSuggestedValue;
|
|
548
548
|
this.Invoke();
|
|
549
549
|
}
|
|
550
|
-
getValue(obj, line) {
|
|
550
|
+
getValue(obj, line, isThreeStateCheckBox) {
|
|
551
551
|
this._commandType = InteractiveCommandType.GET_VALUE;
|
|
552
552
|
this._obj2 = obj;
|
|
553
|
+
this._boolVal = isThreeStateCheckBox;
|
|
553
554
|
this._line = line;
|
|
554
555
|
this._mgValue = new MgValue();
|
|
555
556
|
this.Invoke();
|
|
@@ -1039,6 +1040,7 @@ var HtmlProperties;
|
|
|
1039
1040
|
HtmlProperties["SelectedLayer"] = "SelectedLayer";
|
|
1040
1041
|
HtmlProperties["BindingLevel"] = "bindingLevel";
|
|
1041
1042
|
HtmlProperties["ZoomButtonTooltip"] = "ZoomButtonTooltip";
|
|
1043
|
+
HtmlProperties["CheckBoxIndeterminate"] = "CheckBoxIndeterminate";
|
|
1042
1044
|
})(HtmlProperties || (HtmlProperties = {}));
|
|
1043
1045
|
var MenuStyle;
|
|
1044
1046
|
(function (MenuStyle) {
|
|
@@ -1154,73 +1156,6 @@ class GuiCommand {
|
|
|
1154
1156
|
}
|
|
1155
1157
|
}
|
|
1156
1158
|
|
|
1157
|
-
class GuiConstants {
|
|
1158
|
-
constructor() {
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
GuiConstants.DEFAULT_LIST_VALUE = -1;
|
|
1162
|
-
GuiConstants.DEFAULT_VALUE_INT = -999999;
|
|
1163
|
-
GuiConstants.ALL_LINES = -1;
|
|
1164
|
-
GuiConstants.NO_ROW_SELECTED = Int32.MinValue;
|
|
1165
|
-
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR = "control is not supported for mobile RIA deployment";
|
|
1166
|
-
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR_WINDOW_6 = "control is not supported for mobile RIA deployment on Window 6 standard";
|
|
1167
|
-
GuiConstants.TOOL_HEIGHT = 17;
|
|
1168
|
-
GuiConstants.TOOL_WIDTH = 16;
|
|
1169
|
-
GuiConstants.STR_DISPLAY_MEMBER = "DisplayMember";
|
|
1170
|
-
GuiConstants.STR_VALUE_MEMBER = "ValueMember";
|
|
1171
|
-
GuiConstants.PARENT_TYPE_TASK = 'T';
|
|
1172
|
-
GuiConstants.PARENT_TYPE_FORM = 'F';
|
|
1173
|
-
GuiConstants.PARENT_TYPE_CONTROL = 'C';
|
|
1174
|
-
GuiConstants.GENERIC_PROPERTY_BASE_ID = 10000;
|
|
1175
|
-
GuiConstants.TABBING_CYCLE_REMAIN_IN_CURRENT_RECORD = 'R';
|
|
1176
|
-
GuiConstants.TABBING_CYCLE_MOVE_TO_NEXT_RECORD = 'N';
|
|
1177
|
-
GuiConstants.TABBING_CYCLE_MOVE_TO_PARENT_TASK = 'P';
|
|
1178
|
-
GuiConstants.BLOB_PREFIX_ELEMENTS_COUNT = 5;
|
|
1179
|
-
GuiConstants.KEY_DOWN = 40;
|
|
1180
|
-
GuiConstants.KEY_RIGHT = 39;
|
|
1181
|
-
GuiConstants.KEY_UP = 38;
|
|
1182
|
-
GuiConstants.KEY_LEFT = 37;
|
|
1183
|
-
GuiConstants.KEY_HOME = 36;
|
|
1184
|
-
GuiConstants.KEY_END = 35;
|
|
1185
|
-
GuiConstants.KEY_PG_DOWN = 34;
|
|
1186
|
-
GuiConstants.KEY_PG_UP = 33;
|
|
1187
|
-
GuiConstants.KEY_SPACE = 32;
|
|
1188
|
-
GuiConstants.KEY_F12 = 123;
|
|
1189
|
-
GuiConstants.KEY_F1 = 112;
|
|
1190
|
-
GuiConstants.KEY_9 = 57;
|
|
1191
|
-
GuiConstants.KEY_0 = 48;
|
|
1192
|
-
GuiConstants.KEY_Z = 90;
|
|
1193
|
-
GuiConstants.KEY_A = 65;
|
|
1194
|
-
GuiConstants.KEY_DELETE = 46;
|
|
1195
|
-
GuiConstants.KEY_INSERT = 45;
|
|
1196
|
-
GuiConstants.KEY_BACKSPACE = 8;
|
|
1197
|
-
GuiConstants.KEY_TAB = 9;
|
|
1198
|
-
GuiConstants.KEY_RETURN = 13;
|
|
1199
|
-
GuiConstants.KEY_ESC = 27;
|
|
1200
|
-
GuiConstants.KEY_CAPS_LOCK = 20;
|
|
1201
|
-
GuiConstants.KEY_POINT1 = 190;
|
|
1202
|
-
GuiConstants.KEY_POINT2 = 110;
|
|
1203
|
-
GuiConstants.KEY_COMMA = 188;
|
|
1204
|
-
GuiConstants.KEY_CTRL = 17;
|
|
1205
|
-
GuiConstants.KEY_ALT = 18;
|
|
1206
|
-
GuiConstants.LOGON_CAPTION = "Logon - ";
|
|
1207
|
-
GuiConstants.ENTER_UID_TTL = "Please enter your user ID and password.";
|
|
1208
|
-
GuiConstants.GROUP_BOX_TITLE_MAX_SIZE = 62;
|
|
1209
|
-
GuiConstants.MSG_CAPTION_MAX_SIZE = 56;
|
|
1210
|
-
GuiConstants.LABEL_CAPTION_MAX_SIZE = 9;
|
|
1211
|
-
GuiConstants.PASSWORD_CAPTION_MAX_SIZE = 19;
|
|
1212
|
-
GuiConstants.REPLACE_ALL_TEXT = -1;
|
|
1213
|
-
GuiConstants.STR_LOGON_RTL = "LogonRTL";
|
|
1214
|
-
GuiConstants.STR_LOGO_WIN_ICON_URL = "LogonWindowIconURL";
|
|
1215
|
-
GuiConstants.STR_LOGON_IMAGE_URL = "LogonImageURL";
|
|
1216
|
-
GuiConstants.STR_LOGON_WIN_TITLE = "LogonWindowTitle";
|
|
1217
|
-
GuiConstants.STR_LOGON_GROUP_TITLE = "LogonGroupTitle";
|
|
1218
|
-
GuiConstants.STR_LOGON_MSG_CAPTION = "LogonMessageCaption";
|
|
1219
|
-
GuiConstants.STR_LOGON_USER_ID_CAPTION = "LogonUserIDCaption";
|
|
1220
|
-
GuiConstants.STR_LOGON_PASS_CAPTION = "LogonPasswordCaption";
|
|
1221
|
-
GuiConstants.STR_LOGON_OK_CAPTION = "LogonOKCaption";
|
|
1222
|
-
GuiConstants.STR_LOGON_CANCEL_CAPTION = "LogonCancelCaption";
|
|
1223
|
-
|
|
1224
1159
|
class Commands {
|
|
1225
1160
|
static SetResolveCallback(resolveCallback) {
|
|
1226
1161
|
this.resolveCallback = resolveCallback;
|
|
@@ -1245,9 +1180,9 @@ class Commands {
|
|
|
1245
1180
|
let guiInteractive = new GuiInteractive();
|
|
1246
1181
|
guiInteractive.setGetSuggestedValueOfChoiceControlOnTagData(ctrl, line, retSuggestedValue);
|
|
1247
1182
|
}
|
|
1248
|
-
static getValue(obj, line) {
|
|
1183
|
+
static getValue(obj, line, isThreeStateCheckBox) {
|
|
1249
1184
|
let guiInteractive = new GuiInteractive();
|
|
1250
|
-
return guiInteractive.getValue(obj, line);
|
|
1185
|
+
return guiInteractive.getValue(obj, line, isThreeStateCheckBox);
|
|
1251
1186
|
}
|
|
1252
1187
|
static getTopIndex(tablecontrol) {
|
|
1253
1188
|
let guiInteractive = new GuiInteractive();
|
|
@@ -1310,7 +1245,7 @@ class Commands {
|
|
|
1310
1245
|
if (obj instanceof GuiMgControl && obj.isChoiceControl()) {
|
|
1311
1246
|
if (value < 0)
|
|
1312
1247
|
if (obj.isComboBox())
|
|
1313
|
-
guiCommand.value =
|
|
1248
|
+
guiCommand.value = undefined;
|
|
1314
1249
|
else
|
|
1315
1250
|
guiCommand.value = '';
|
|
1316
1251
|
}
|
|
@@ -1664,7 +1599,7 @@ class Manager {
|
|
|
1664
1599
|
}
|
|
1665
1600
|
}
|
|
1666
1601
|
static GetCtrlVal(ctrl) {
|
|
1667
|
-
return Commands.getValue(ctrl, ctrl.getDisplayLine(true));
|
|
1602
|
+
return Commands.getValue(ctrl, ctrl.getDisplayLine(true), ctrl.isThreeStateCheckBox());
|
|
1668
1603
|
}
|
|
1669
1604
|
static async SetReadOnlyControl(ctrl, isReadOnly) {
|
|
1670
1605
|
if (ctrl.isTextControl() || ctrl.IsRepeatable || ctrl.isComboBox() || ctrl.isListBox() || ctrl.isCheckBox() || ctrl.isRadio()) {
|
|
@@ -1726,6 +1661,73 @@ Manager.DefaultServerName = null;
|
|
|
1726
1661
|
Manager.UtilImeJpn = (UtilStrByteMode.isLocaleDefLangJPN() ? new UtilImeJpn() : null);
|
|
1727
1662
|
Manager.EventsManager = null;
|
|
1728
1663
|
|
|
1664
|
+
class GuiConstants {
|
|
1665
|
+
constructor() {
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
GuiConstants.DEFAULT_LIST_VALUE = -1;
|
|
1669
|
+
GuiConstants.DEFAULT_VALUE_INT = -999999;
|
|
1670
|
+
GuiConstants.ALL_LINES = -1;
|
|
1671
|
+
GuiConstants.NO_ROW_SELECTED = Int32.MinValue;
|
|
1672
|
+
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR = "control is not supported for mobile RIA deployment";
|
|
1673
|
+
GuiConstants.RIA_MOBILE_UNSUPPORTED_CONTROL_ERROR_WINDOW_6 = "control is not supported for mobile RIA deployment on Window 6 standard";
|
|
1674
|
+
GuiConstants.TOOL_HEIGHT = 17;
|
|
1675
|
+
GuiConstants.TOOL_WIDTH = 16;
|
|
1676
|
+
GuiConstants.STR_DISPLAY_MEMBER = "DisplayMember";
|
|
1677
|
+
GuiConstants.STR_VALUE_MEMBER = "ValueMember";
|
|
1678
|
+
GuiConstants.PARENT_TYPE_TASK = 'T';
|
|
1679
|
+
GuiConstants.PARENT_TYPE_FORM = 'F';
|
|
1680
|
+
GuiConstants.PARENT_TYPE_CONTROL = 'C';
|
|
1681
|
+
GuiConstants.GENERIC_PROPERTY_BASE_ID = 10000;
|
|
1682
|
+
GuiConstants.TABBING_CYCLE_REMAIN_IN_CURRENT_RECORD = 'R';
|
|
1683
|
+
GuiConstants.TABBING_CYCLE_MOVE_TO_NEXT_RECORD = 'N';
|
|
1684
|
+
GuiConstants.TABBING_CYCLE_MOVE_TO_PARENT_TASK = 'P';
|
|
1685
|
+
GuiConstants.BLOB_PREFIX_ELEMENTS_COUNT = 5;
|
|
1686
|
+
GuiConstants.KEY_DOWN = 40;
|
|
1687
|
+
GuiConstants.KEY_RIGHT = 39;
|
|
1688
|
+
GuiConstants.KEY_UP = 38;
|
|
1689
|
+
GuiConstants.KEY_LEFT = 37;
|
|
1690
|
+
GuiConstants.KEY_HOME = 36;
|
|
1691
|
+
GuiConstants.KEY_END = 35;
|
|
1692
|
+
GuiConstants.KEY_PG_DOWN = 34;
|
|
1693
|
+
GuiConstants.KEY_PG_UP = 33;
|
|
1694
|
+
GuiConstants.KEY_SPACE = 32;
|
|
1695
|
+
GuiConstants.KEY_F12 = 123;
|
|
1696
|
+
GuiConstants.KEY_F1 = 112;
|
|
1697
|
+
GuiConstants.KEY_9 = 57;
|
|
1698
|
+
GuiConstants.KEY_0 = 48;
|
|
1699
|
+
GuiConstants.KEY_Z = 90;
|
|
1700
|
+
GuiConstants.KEY_A = 65;
|
|
1701
|
+
GuiConstants.KEY_DELETE = 46;
|
|
1702
|
+
GuiConstants.KEY_INSERT = 45;
|
|
1703
|
+
GuiConstants.KEY_BACKSPACE = 8;
|
|
1704
|
+
GuiConstants.KEY_TAB = 9;
|
|
1705
|
+
GuiConstants.KEY_RETURN = 13;
|
|
1706
|
+
GuiConstants.KEY_ESC = 27;
|
|
1707
|
+
GuiConstants.KEY_CAPS_LOCK = 20;
|
|
1708
|
+
GuiConstants.KEY_POINT1 = 190;
|
|
1709
|
+
GuiConstants.KEY_POINT2 = 110;
|
|
1710
|
+
GuiConstants.KEY_COMMA = 188;
|
|
1711
|
+
GuiConstants.KEY_CTRL = 17;
|
|
1712
|
+
GuiConstants.KEY_ALT = 18;
|
|
1713
|
+
GuiConstants.LOGON_CAPTION = "Logon - ";
|
|
1714
|
+
GuiConstants.ENTER_UID_TTL = "Please enter your user ID and password.";
|
|
1715
|
+
GuiConstants.GROUP_BOX_TITLE_MAX_SIZE = 62;
|
|
1716
|
+
GuiConstants.MSG_CAPTION_MAX_SIZE = 56;
|
|
1717
|
+
GuiConstants.LABEL_CAPTION_MAX_SIZE = 9;
|
|
1718
|
+
GuiConstants.PASSWORD_CAPTION_MAX_SIZE = 19;
|
|
1719
|
+
GuiConstants.REPLACE_ALL_TEXT = -1;
|
|
1720
|
+
GuiConstants.STR_LOGON_RTL = "LogonRTL";
|
|
1721
|
+
GuiConstants.STR_LOGO_WIN_ICON_URL = "LogonWindowIconURL";
|
|
1722
|
+
GuiConstants.STR_LOGON_IMAGE_URL = "LogonImageURL";
|
|
1723
|
+
GuiConstants.STR_LOGON_WIN_TITLE = "LogonWindowTitle";
|
|
1724
|
+
GuiConstants.STR_LOGON_GROUP_TITLE = "LogonGroupTitle";
|
|
1725
|
+
GuiConstants.STR_LOGON_MSG_CAPTION = "LogonMessageCaption";
|
|
1726
|
+
GuiConstants.STR_LOGON_USER_ID_CAPTION = "LogonUserIDCaption";
|
|
1727
|
+
GuiConstants.STR_LOGON_PASS_CAPTION = "LogonPasswordCaption";
|
|
1728
|
+
GuiConstants.STR_LOGON_OK_CAPTION = "LogonOKCaption";
|
|
1729
|
+
GuiConstants.STR_LOGON_CANCEL_CAPTION = "LogonCancelCaption";
|
|
1730
|
+
|
|
1729
1731
|
class BlobType {
|
|
1730
1732
|
static getContentType(blob) {
|
|
1731
1733
|
try {
|
|
@@ -12425,6 +12427,16 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
12425
12427
|
setCheckBoxValue(line, mgVal) {
|
|
12426
12428
|
let checkState = DisplayConvertor.toBoolean(mgVal);
|
|
12427
12429
|
Commands.addValueWithLine(CommandType.SET_VALUE, this, line, checkState);
|
|
12430
|
+
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, this.getDisplayLine(false), HtmlProperties.CheckBoxIndeterminate, this.IsNull);
|
|
12431
|
+
}
|
|
12432
|
+
setAsThreeState() {
|
|
12433
|
+
this._propTab.setProp(PropInterface.PROP_TYPE_THREE_STATES, "1", this, "C");
|
|
12434
|
+
}
|
|
12435
|
+
isThreeStateCheckBox() {
|
|
12436
|
+
let isThreeStateCheckBox = false;
|
|
12437
|
+
if (this.isCheckBox())
|
|
12438
|
+
isThreeStateCheckBox = this.GetComputedBooleanProperty(PropInterface.PROP_TYPE_THREE_STATES, false);
|
|
12439
|
+
return isThreeStateCheckBox;
|
|
12428
12440
|
}
|
|
12429
12441
|
async refreshAndSetItemListByDataSource(line, valueChanged) {
|
|
12430
12442
|
if (this.SupportsDataSource()) {
|
|
@@ -12909,7 +12921,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
12909
12921
|
return retIsNullControl;
|
|
12910
12922
|
}
|
|
12911
12923
|
CanGetNullFromControlValue() {
|
|
12912
|
-
return
|
|
12924
|
+
return this.isThreeStateCheckBox() && (this._field == null || this._field.NullAllowed);
|
|
12913
12925
|
}
|
|
12914
12926
|
isChoiceNull(idx) {
|
|
12915
12927
|
let result;
|