@magic-xpa/gui 4.900.0-dev490.18 → 4.900.0-dev490.21
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 -2
- package/esm2020/src/management/gui/MgControlBase.mjs +7 -3
- package/fesm2015/magic-xpa-gui.mjs +9 -3
- package/fesm2015/magic-xpa-gui.mjs.map +1 -1
- package/fesm2020/magic-xpa-gui.mjs +9 -3
- package/fesm2020/magic-xpa-gui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/Commands.d.ts +1 -1
|
@@ -1235,11 +1235,13 @@ class Commands {
|
|
|
1235
1235
|
guiCommand.number = num;
|
|
1236
1236
|
GuiCommandQueue.getInstance().addCommand(guiCommand);
|
|
1237
1237
|
}
|
|
1238
|
-
static addValueWithLine(commandType, obj, line, value) {
|
|
1238
|
+
static addValueWithLine(commandType, obj, line, value, reset = false) {
|
|
1239
1239
|
let guiCommand = new GuiCommand(obj, commandType);
|
|
1240
1240
|
guiCommand.value = value;
|
|
1241
1241
|
guiCommand.line = line;
|
|
1242
1242
|
if (commandType === CommandType.SET_VALUE) {
|
|
1243
|
+
if (reset)
|
|
1244
|
+
guiCommand.Bool1 = reset;
|
|
1243
1245
|
if (obj instanceof GuiMgControl && obj.isChoiceControl()) {
|
|
1244
1246
|
if (value < 0)
|
|
1245
1247
|
guiCommand.value = '';
|
|
@@ -12384,8 +12386,12 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
12384
12386
|
if (super.isButton()) {
|
|
12385
12387
|
mlsTranslatedValue = Events.Translate(this.Value);
|
|
12386
12388
|
}
|
|
12387
|
-
if (this.isTextControl() || this.isButton())
|
|
12388
|
-
|
|
12389
|
+
if (this.isTextControl() || this.isButton()) {
|
|
12390
|
+
if (this.isTextControl() && this.getForm().inRefreshDisplay() && this.DataType == StorageAttribute.NUMERIC)
|
|
12391
|
+
Commands.addValueWithLine(CommandType.SET_VALUE, this, displayLine, mlsTranslatedValue, true);
|
|
12392
|
+
else
|
|
12393
|
+
Commands.addValueWithLine(CommandType.SET_VALUE, this, displayLine, mlsTranslatedValue);
|
|
12394
|
+
}
|
|
12389
12395
|
else
|
|
12390
12396
|
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, displayLine, HtmlProperties.Text, mlsTranslatedValue);
|
|
12391
12397
|
}
|