@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.
@@ -13175,7 +13175,7 @@ class MgControlBase extends GuiControlPropertyAdapter {
13175
13175
  valueChanged = yield this.refreshAndSetItemListByDataSource(line, valueChanged);
13176
13176
  if (!valueChanged)
13177
13177
  return;
13178
- this.setRadioChecked(this.Value);
13178
+ this.setRadioChecked(+this.Value);
13179
13179
  break;
13180
13180
  default:
13181
13181
  Events.WriteExceptionToLog(NString.Format("in Control.RefreshDisplayValue() unknown type: {0}", this.Type));
@@ -13278,38 +13278,21 @@ class MgControlBase extends GuiControlPropertyAdapter {
13278
13278
  }
13279
13279
  });
13280
13280
  }
13281
- refreshAndSetItemsListForRadioButton(line, execComputeChoice) {
13282
- return __awaiter(this, void 0, void 0, function* () {
13283
- let displayList = yield this.refreshDispRange(execComputeChoice);
13284
- let options = displayList.map((displayValue, counter) => {
13285
- let index = counter.toString();
13286
- return { index, displayValue };
13287
- });
13288
- Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, line, HtmlProperties.ItemsList, options);
13289
- });
13290
- }
13291
13281
  refreshAndSetItemsList(line, execComputeChoice) {
13292
13282
  const _super = Object.create(null, {
13293
- isSelectionCtrl: { get: () => super.isSelectionCtrl },
13294
- isTabControl: { get: () => super.isTabControl },
13295
- isRadio: { get: () => super.isRadio }
13283
+ isChoiceControl: { get: () => super.isChoiceControl }
13296
13284
  });
13297
13285
  return __awaiter(this, void 0, void 0, function* () {
13298
13286
  if (execComputeChoice) {
13299
13287
  this.clearRange(line);
13300
13288
  }
13301
13289
  let optionsStrings = yield this.refreshDispRange(execComputeChoice);
13302
- if (_super.isSelectionCtrl.call(this) || _super.isTabControl.call(this) || this.HasAutocomplete()) {
13290
+ if (_super.isChoiceControl.call(this) || this.HasAutocomplete()) {
13303
13291
  let options = optionsStrings.map((displayValue, index) => {
13304
13292
  return { index, displayValue };
13305
13293
  });
13306
13294
  Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, line, HtmlProperties.ItemsList, options);
13307
13295
  }
13308
- else {
13309
- if (_super.isRadio.call(this)) {
13310
- yield this.refreshAndSetItemsListForRadioButton(line, execComputeChoice);
13311
- }
13312
- }
13313
13296
  });
13314
13297
  }
13315
13298
  refreshDispRange(execComputeChoice) {