tnx-shared 5.1.289 → 5.1.290

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.
@@ -6647,6 +6647,10 @@
6647
6647
  }
6648
6648
  function dateDiff(start, end) {
6649
6649
  return (end.getTime() - start.getTime()) / 86400000;
6650
+ }
6651
+ function monthDiff(start, end) {
6652
+ var yearStart = start.getFullYear(), yearEnd = end.getFullYear(), monthStart = start.getMonth(), monthEnd = end.getMonth();
6653
+ return (yearStart - yearEnd) * 12 + monthStart - monthEnd;
6650
6654
  }
6651
6655
 
6652
6656
  var EXCEL_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';
@@ -24483,6 +24487,8 @@
24483
24487
  return funcGetLabel;
24484
24488
  };
24485
24489
  ListBase.prototype.mergeRefDataToDatasource = function (dataSource, schema, data) {
24490
+ if (data == null)
24491
+ return;
24486
24492
  var field = schema.field;
24487
24493
  var funcGetLabel = this.getFuntionGetLabel(schema);
24488
24494
  var funcSetValueRow = function (rowItem, data) {
@@ -53284,7 +53290,7 @@
53284
53290
  return;
53285
53291
  this.modelView.header = "Th\u00F4ng tin chi ti\u1EBFt " + rowData.tenHienThiDoiTuong + ": " + rowData.tieuDe;
53286
53292
  this.modelView.showEditForm = true;
53287
- this.modelView.data.link = rowData.linkGoc + "?id=" + rowData.entityKey + "&pid=" + rowData.permissionId;
53293
+ this.modelView.data.link = rowData.linkGoc + "?id=" + rowData.entityKey + "&pid=" + rowData.permissionId + "&hash=" + this._commonService.guid();
53288
53294
  this.iframe = document.createElement('iframe');
53289
53295
  this.iframe.style.width = '100%';
53290
53296
  this.iframe.style.height = '100%';
@@ -56634,7 +56640,7 @@
56634
56640
  steps.StepsModule,
56635
56641
  ngxExtendedPdfViewer.NgxExtendedPdfViewerModule,
56636
56642
  steps.StepsModule,
56637
- progressspinner.ProgressSpinnerModule,
56643
+ progressspinner.ProgressSpinnerModule
56638
56644
  ];
56639
56645
  }
56640
56646
  function coreProvider() {
@@ -59033,6 +59039,7 @@
59033
59039
  exports.mergeJSON = mergeJSON;
59034
59040
  exports.mergeJSONOld = mergeJSONOld;
59035
59041
  exports.moduleConfigFunc = moduleConfigFunc;
59042
+ exports.monthDiff = monthDiff;
59036
59043
  exports.multipleSort = multipleSort;
59037
59044
  exports.romanize = romanize;
59038
59045
  exports.setMetadataConnection = setMetadataConnection;