tnx-shared 5.3.354 → 5.3.356

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.
@@ -1897,7 +1897,7 @@ class LogSetting {
1897
1897
  class LogColumn {
1898
1898
  constructor(init) {
1899
1899
  this.visible = true;
1900
- this.enumLogType = 1;
1900
+ this.enumLogType = EnumLogType.Normal;
1901
1901
  for (const key in init) {
1902
1902
  this[key] = init[key];
1903
1903
  }
@@ -16168,12 +16168,16 @@ class DataFormBase extends ComponentBaseWithButton {
16168
16168
  });
16169
16169
  }
16170
16170
  getSingleLabel(control, dataSource, valueParam) {
16171
+ var _a;
16171
16172
  let result = dataSource.find(p => (p === null || p === void 0 ? void 0 : p.value[control.valueField]) == valueParam);
16172
16173
  if (!!result) {
16173
16174
  const funcGetLabel = control.funcGetLabel;
16174
16175
  if (funcGetLabel) {
16175
16176
  result = funcGetLabel(result.value);
16176
16177
  }
16178
+ else {
16179
+ result = (_a = result === null || result === void 0 ? void 0 : result.label) !== null && _a !== void 0 ? _a : result;
16180
+ }
16177
16181
  }
16178
16182
  else {
16179
16183
  result = this.logSetting.emptyValue;
@@ -16202,8 +16206,8 @@ class DataFormBase extends ComponentBaseWithButton {
16202
16206
  let dataSource = control._component.selectedValueObject;
16203
16207
  if (!Array.isArray(dataSource))
16204
16208
  dataSource = [dataSource];
16205
- logColumn.visible = true;
16206
16209
  logColumn.valueAfter = this.getSingleLabel(control, dataSource, newValue);
16210
+ logColumn.visible = logColumn.valueBefore !== logColumn.valueAfter;
16207
16211
  }
16208
16212
  else {
16209
16213
  const dataSource = control._component.dataSourceInternal;