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.
@@ -744,12 +744,24 @@
744
744
  }
745
745
  return next();
746
746
  }
747
+ function __rewriteRelativeImportExtension(path, preserveJsx) {
748
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
749
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
750
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
751
+ });
752
+ }
753
+ return path;
754
+ }
747
755
  var tslib_es6 = {
748
756
  __extends: __extends,
749
757
  __assign: __assign,
750
758
  __rest: __rest,
751
759
  __decorate: __decorate,
752
760
  __param: __param,
761
+ __esDecorate: __esDecorate,
762
+ __runInitializers: __runInitializers,
763
+ __propKey: __propKey,
764
+ __setFunctionName: __setFunctionName,
753
765
  __metadata: __metadata,
754
766
  __awaiter: __awaiter,
755
767
  __generator: __generator,
@@ -772,6 +784,7 @@
772
784
  __classPrivateFieldIn: __classPrivateFieldIn,
773
785
  __addDisposableResource: __addDisposableResource,
774
786
  __disposeResources: __disposeResources,
787
+ __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,
775
788
  };
776
789
 
777
790
  exports.EnumLoaiVanBanBase = void 0;
@@ -2583,7 +2596,7 @@
2583
2596
  var LogColumn = /** @class */ (function () {
2584
2597
  function LogColumn(init) {
2585
2598
  this.visible = true;
2586
- this.enumLogType = 1;
2599
+ this.enumLogType = exports.EnumLogType.Normal;
2587
2600
  for (var key in init) {
2588
2601
  this[key] = init[key];
2589
2602
  }
@@ -19363,12 +19376,16 @@
19363
19376
  });
19364
19377
  };
19365
19378
  DataFormBase.prototype.getSingleLabel = function (control, dataSource, valueParam) {
19379
+ var _a;
19366
19380
  var result = dataSource.find(function (p) { return (p === null || p === void 0 ? void 0 : p.value[control.valueField]) == valueParam; });
19367
19381
  if (!!result) {
19368
19382
  var funcGetLabel = control.funcGetLabel;
19369
19383
  if (funcGetLabel) {
19370
19384
  result = funcGetLabel(result.value);
19371
19385
  }
19386
+ else {
19387
+ result = (_a = result === null || result === void 0 ? void 0 : result.label) !== null && _a !== void 0 ? _a : result;
19388
+ }
19372
19389
  }
19373
19390
  else {
19374
19391
  result = this.logSetting.emptyValue;
@@ -19397,8 +19414,8 @@
19397
19414
  var dataSource = control._component.selectedValueObject;
19398
19415
  if (!Array.isArray(dataSource))
19399
19416
  dataSource = [dataSource];
19400
- logColumn.visible = true;
19401
19417
  logColumn.valueAfter = this.getSingleLabel(control, dataSource, newValue);
19418
+ logColumn.visible = logColumn.valueBefore !== logColumn.valueAfter;
19402
19419
  }
19403
19420
  else {
19404
19421
  var dataSource = control._component.dataSourceInternal;