@magic-xpa/gui 4.1000.0-dev4100.259 → 4.1000.0-dev4100.261
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/management/gui/MgControlBase.mjs +3 -16
- package/fesm2015/magic-xpa-gui.mjs +3 -20
- package/fesm2015/magic-xpa-gui.mjs.map +1 -1
- package/fesm2020/magic-xpa-gui.mjs +2 -15
- package/fesm2020/magic-xpa-gui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/management/gui/MgControlBase.d.ts +0 -1
|
@@ -13053,7 +13053,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
13053
13053
|
valueChanged = await this.refreshAndSetItemListByDataSource(line, valueChanged);
|
|
13054
13054
|
if (!valueChanged)
|
|
13055
13055
|
return;
|
|
13056
|
-
this.setRadioChecked(this.Value);
|
|
13056
|
+
this.setRadioChecked(+this.Value);
|
|
13057
13057
|
break;
|
|
13058
13058
|
default:
|
|
13059
13059
|
Events.WriteExceptionToLog(NString.Format("in Control.RefreshDisplayValue() unknown type: {0}", this.Type));
|
|
@@ -13144,30 +13144,17 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
13144
13144
|
await this.SetAndRefreshDisplayValue(currentLinkValue, this.IsNull);
|
|
13145
13145
|
}
|
|
13146
13146
|
}
|
|
13147
|
-
async refreshAndSetItemsListForRadioButton(line, execComputeChoice) {
|
|
13148
|
-
let displayList = await this.refreshDispRange(execComputeChoice);
|
|
13149
|
-
let options = displayList.map((displayValue, counter) => {
|
|
13150
|
-
let index = counter.toString();
|
|
13151
|
-
return { index, displayValue };
|
|
13152
|
-
});
|
|
13153
|
-
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, line, HtmlProperties.ItemsList, options);
|
|
13154
|
-
}
|
|
13155
13147
|
async refreshAndSetItemsList(line, execComputeChoice) {
|
|
13156
13148
|
if (execComputeChoice) {
|
|
13157
13149
|
this.clearRange(line);
|
|
13158
13150
|
}
|
|
13159
13151
|
let optionsStrings = await this.refreshDispRange(execComputeChoice);
|
|
13160
|
-
if (super.
|
|
13152
|
+
if (super.isChoiceControl() || this.HasAutocomplete()) {
|
|
13161
13153
|
let options = optionsStrings.map((displayValue, index) => {
|
|
13162
13154
|
return { index, displayValue };
|
|
13163
13155
|
});
|
|
13164
13156
|
Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, line, HtmlProperties.ItemsList, options);
|
|
13165
13157
|
}
|
|
13166
|
-
else {
|
|
13167
|
-
if (super.isRadio()) {
|
|
13168
|
-
await this.refreshAndSetItemsListForRadioButton(line, execComputeChoice);
|
|
13169
|
-
}
|
|
13170
|
-
}
|
|
13171
13158
|
}
|
|
13172
13159
|
async refreshDispRange(execComputeChoice) {
|
|
13173
13160
|
let selectCmd = new Array(0);
|