tnx-shared 5.3.354 → 5.3.355

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.
@@ -19363,12 +19363,16 @@
19363
19363
  });
19364
19364
  };
19365
19365
  DataFormBase.prototype.getSingleLabel = function (control, dataSource, valueParam) {
19366
+ var _a;
19366
19367
  var result = dataSource.find(function (p) { return (p === null || p === void 0 ? void 0 : p.value[control.valueField]) == valueParam; });
19367
19368
  if (!!result) {
19368
19369
  var funcGetLabel = control.funcGetLabel;
19369
19370
  if (funcGetLabel) {
19370
19371
  result = funcGetLabel(result.value);
19371
19372
  }
19373
+ else {
19374
+ result = (_a = result === null || result === void 0 ? void 0 : result.label) !== null && _a !== void 0 ? _a : result;
19375
+ }
19372
19376
  }
19373
19377
  else {
19374
19378
  result = this.logSetting.emptyValue;
@@ -19397,8 +19401,8 @@
19397
19401
  var dataSource = control._component.selectedValueObject;
19398
19402
  if (!Array.isArray(dataSource))
19399
19403
  dataSource = [dataSource];
19400
- logColumn.visible = true;
19401
19404
  logColumn.valueAfter = this.getSingleLabel(control, dataSource, newValue);
19405
+ logColumn.visible = logColumn.valueBefore !== logColumn.valueAfter;
19402
19406
  }
19403
19407
  else {
19404
19408
  var dataSource = control._component.dataSourceInternal;