tnx-shared 5.3.313 → 5.3.314

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.
@@ -20893,11 +20893,8 @@
20893
20893
  finally { if (e_4) throw e_4.error; }
20894
20894
  }
20895
20895
  }
20896
- if (item.ngaySinh) {
20897
- item.strNgaySinh = this._crudService.renderDate(item.ngaySinh, 'normal');
20898
- }
20899
- else {
20900
- item.strNgaySinh = item.ngaySinh2;
20896
+ if (!item.ngaySinh && item.ngaySinh2) {
20897
+ item.ngaySinh = new Date(item.ngaySinh2);
20901
20898
  }
20902
20899
  item.hocHamHocVi
20903
20900
  = item.idHocHam && item.idHocVi
@@ -20989,7 +20986,8 @@
20989
20986
  }),
20990
20987
  new EntityPickerColumn({
20991
20988
  label: 'Ngày sinh',
20992
- code: 'strNgaySinh',
20989
+ code: 'ngaySinh',
20990
+ dataType: exports.DataType.date,
20993
20991
  isSearchable: true,
20994
20992
  width: '120px',
20995
20993
  notInFields: true,
@@ -21068,8 +21066,9 @@
21068
21066
  }),
21069
21067
  new EntityPickerColumn({
21070
21068
  label: 'Ngày sinh',
21071
- code: 'strNgaySinh',
21069
+ code: 'ngaySinh',
21072
21070
  isSearchable: true,
21071
+ dataType: exports.DataType.date,
21073
21072
  width: '120px',
21074
21073
  notInFields: true,
21075
21074
  textAlign: 1,
@@ -53151,8 +53150,8 @@
53151
53150
  TnAppNotificationComponent.prototype.afterGetNotication = function () {
53152
53151
  return __awaiter(this, void 0, void 0, function () {
53153
53152
  var idsUserCreated, userRes, lstUserInfo;
53154
- return __generator(this, function (_a) {
53155
- switch (_a.label) {
53153
+ return __generator(this, function (_b) {
53154
+ switch (_b.label) {
53156
53155
  case 0:
53157
53156
  idsUserCreated = [];
53158
53157
  this.notifications.forEach(function (element) {
@@ -53166,7 +53165,7 @@
53166
53165
  }
53167
53166
  return [4 /*yield*/, this._userV5Service.getAll([this.newFilter('id', exports.Operator.in, idsUserCreated)], 'avatar,id')];
53168
53167
  case 1:
53169
- userRes = _a.sent();
53168
+ userRes = _b.sent();
53170
53169
  if (!userRes.success || !userRes.data || userRes.data.length === 0) {
53171
53170
  return [2 /*return*/];
53172
53171
  }
@@ -53218,15 +53217,15 @@
53218
53217
  TnAppNotificationComponent.prototype.goToLink = function (item) {
53219
53218
  return __awaiter(this, void 0, void 0, function () {
53220
53219
  var link;
53221
- return __generator(this, function (_a) {
53222
- switch (_a.label) {
53220
+ return __generator(this, function (_b) {
53221
+ switch (_b.label) {
53223
53222
  case 0:
53224
53223
  if (!!this.isReaded(item)) return [3 /*break*/, 2];
53225
53224
  return [4 /*yield*/, this.readById(item)];
53226
53225
  case 1:
53227
- _a.sent();
53226
+ _b.sent();
53228
53227
  this.totalUnRead--;
53229
- _a.label = 2;
53228
+ _b.label = 2;
53230
53229
  case 2:
53231
53230
  // Save current path to go back
53232
53231
  localStorage.setItem('currentUrl', top.location.href);
@@ -53262,8 +53261,9 @@
53262
53261
  this.bounceNoti = false;
53263
53262
  };
53264
53263
  TnAppNotificationComponent.prototype.handleClicked = function () {
53265
- var thongBaoDomain = "/thong-bao";
53266
- window.open(thongBaoDomain);
53264
+ var _a;
53265
+ var appCode = (_a = window['appCode']) !== null && _a !== void 0 ? _a : '';
53266
+ this._router.navigateByUrl("/" + appCode.toLowerCase() + "/thong-bao");
53267
53267
  };
53268
53268
  return TnAppNotificationComponent;
53269
53269
  }(ComponentBase));