tnx-shared 5.3.292 → 5.3.294

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.
@@ -2352,6 +2352,7 @@
2352
2352
  this.isServerLoad = false;
2353
2353
  this.refFields = [];
2354
2354
  this.isTreeBaseModel = false;
2355
+ this.isGetAll = false;
2355
2356
  this.funcCompare = function (item, value) { return item[_this.valueField] == value; };
2356
2357
  for (var key in init) {
2357
2358
  this[key] = init[key];
@@ -7032,11 +7033,11 @@
7032
7033
  refFields: schema.refFields,
7033
7034
  isTreeBaseModel: schema.isTreeBaseModel,
7034
7035
  // TODO: Cần điền vào không có lỗi không chạy được
7035
- selectChildItem: null
7036
+ selectChildItem: null,
7037
+ isGetAll: !(schema instanceof DropdownControlSchema)
7036
7038
  });
7037
7039
  if (result.isServerLoad) {
7038
7040
  result.pageSize = schema.pageSize;
7039
- // result.pageSize = 2;
7040
7041
  }
7041
7042
  return result;
7042
7043
  };
@@ -8364,7 +8365,7 @@
8364
8365
  var _this = this;
8365
8366
  return new Promise(function (resolve, reject) {
8366
8367
  var gridInfo = _this.generateGridInfoDropdown(filters, options);
8367
- if (options.isServerLoad) {
8368
+ if (options.isServerLoad && !options.isGetAll) {
8368
8369
  _this.getByGridRequest(gridInfo, options.plusUrl)
8369
8370
  .then(function (res) {
8370
8371
  resolve(res);
@@ -27878,6 +27879,9 @@
27878
27879
  ], __read(lstData.map(function (item, index) {
27879
27880
  var row = [index + 1];
27880
27881
  lstVisibleField.forEach(function (field) {
27882
+ if (typeof item[field] == 'boolean') {
27883
+ item[field] = item[field] ? 'Có' : 'Không';
27884
+ }
27881
27885
  row.push(item[field]);
27882
27886
  });
27883
27887
  return row;
@@ -39478,6 +39482,28 @@
39478
39482
  return Column;
39479
39483
  }());
39480
39484
 
39485
+ exports.EnumDoiTuongGuiThongBaoNguoiDung = void 0;
39486
+ (function (EnumDoiTuongGuiThongBaoNguoiDung) {
39487
+ EnumDoiTuongGuiThongBaoNguoiDung["TAT_CA_NGUOI_DUNG"] = "0";
39488
+ EnumDoiTuongGuiThongBaoNguoiDung["TAT_CA_LANH_DAO"] = "1";
39489
+ EnumDoiTuongGuiThongBaoNguoiDung["CHON_NGUOI_DUNG"] = "2";
39490
+ EnumDoiTuongGuiThongBaoNguoiDung["LANH_DAO_DON_VI"] = "3";
39491
+ })(exports.EnumDoiTuongGuiThongBaoNguoiDung || (exports.EnumDoiTuongGuiThongBaoNguoiDung = {}));
39492
+ var NotificationParams = /** @class */ (function () {
39493
+ function NotificationParams() {
39494
+ }
39495
+ return NotificationParams;
39496
+ }());
39497
+ exports.EnumNotificationAction = void 0;
39498
+ (function (EnumNotificationAction) {
39499
+ EnumNotificationAction[EnumNotificationAction["NEW"] = 0] = "NEW";
39500
+ })(exports.EnumNotificationAction || (exports.EnumNotificationAction = {}));
39501
+ ;
39502
+ var ɵ0$1 = exports.EnumNotificationAction.NEW;
39503
+ var SEND_ACTION = [
39504
+ { id: ɵ0$1, name: 'NEW' }
39505
+ ];
39506
+
39481
39507
  var ReponseResult = /** @class */ (function () {
39482
39508
  function ReponseResult() {
39483
39509
  }
@@ -40187,28 +40213,6 @@
40187
40213
  { type: ModuleConfigService }
40188
40214
  ]; };
40189
40215
 
40190
- var EnumDoiTuongGuiThongBaoNguoiDung;
40191
- (function (EnumDoiTuongGuiThongBaoNguoiDung) {
40192
- EnumDoiTuongGuiThongBaoNguoiDung["TAT_CA_NGUOI_DUNG"] = "0";
40193
- EnumDoiTuongGuiThongBaoNguoiDung["TAT_CA_LANH_DAO"] = "1";
40194
- EnumDoiTuongGuiThongBaoNguoiDung["CHON_NGUOI_DUNG"] = "2";
40195
- EnumDoiTuongGuiThongBaoNguoiDung["LANH_DAO_DON_VI"] = "3";
40196
- })(EnumDoiTuongGuiThongBaoNguoiDung || (EnumDoiTuongGuiThongBaoNguoiDung = {}));
40197
- var NotificationParams = /** @class */ (function () {
40198
- function NotificationParams() {
40199
- }
40200
- return NotificationParams;
40201
- }());
40202
- var EnumNotificationAction;
40203
- (function (EnumNotificationAction) {
40204
- EnumNotificationAction[EnumNotificationAction["NEW"] = 0] = "NEW";
40205
- })(EnumNotificationAction || (EnumNotificationAction = {}));
40206
- ;
40207
- var ɵ0$1 = EnumNotificationAction.NEW;
40208
- var SEND_ACTION = [
40209
- { id: ɵ0$1, name: 'NEW' }
40210
- ];
40211
-
40212
40216
  var AnnouncementsService = /** @class */ (function (_super) {
40213
40217
  __extends(AnnouncementsService, _super);
40214
40218
  function AnnouncementsService(http, injector, _moduleConfigService) {
@@ -40238,13 +40242,13 @@
40238
40242
  userIds = this._commonService.distinctArray(userIds);
40239
40243
  notificationParams = new NotificationParams();
40240
40244
  if (orgIds.length > 0) {
40241
- notificationParams.receiverType = EnumDoiTuongGuiThongBaoNguoiDung.LANH_DAO_DON_VI;
40245
+ notificationParams.receiverType = exports.EnumDoiTuongGuiThongBaoNguoiDung.LANH_DAO_DON_VI;
40242
40246
  }
40243
40247
  else if (userIds.length > 0) {
40244
- notificationParams.receiverType = EnumDoiTuongGuiThongBaoNguoiDung.CHON_NGUOI_DUNG;
40248
+ notificationParams.receiverType = exports.EnumDoiTuongGuiThongBaoNguoiDung.CHON_NGUOI_DUNG;
40245
40249
  }
40246
40250
  else {
40247
- notificationParams.receiverType = EnumDoiTuongGuiThongBaoNguoiDung.TAT_CA_LANH_DAO;
40251
+ notificationParams.receiverType = exports.EnumDoiTuongGuiThongBaoNguoiDung.TAT_CA_LANH_DAO;
40248
40252
  }
40249
40253
  notificationParams.orgIds = orgIds.join(',');
40250
40254
  notificationParams.userIds = userIds.join(',');
@@ -40258,7 +40262,7 @@
40258
40262
  }
40259
40263
  notificationParams.isSendEmail = isSendEmail;
40260
40264
  notificationParams.isChangeUser = isChangeUser;
40261
- notificationParams.actions = SEND_ACTION[EnumNotificationAction.NEW].name;
40265
+ notificationParams.actions = SEND_ACTION[exports.EnumNotificationAction.NEW].name;
40262
40266
  this.openThongBao(notificationParams);
40263
40267
  return [2 /*return*/];
40264
40268
  });
@@ -56321,6 +56325,7 @@
56321
56325
  exports.MultiTranslateHttpLoader = MultiTranslateHttpLoader;
56322
56326
  exports.MultipleReferenceDataFormatPipe = MultipleReferenceDataFormatPipe;
56323
56327
  exports.NameValidator = NameValidator;
56328
+ exports.NotificationParams = NotificationParams;
56324
56329
  exports.NotificationService = NotificationService;
56325
56330
  exports.NotifierService = NotifierService;
56326
56331
  exports.NumberCompareValidator = NumberCompareValidator;
@@ -56366,6 +56371,7 @@
56366
56371
  exports.RequiredValidator = RequiredValidator;
56367
56372
  exports.RowColorOption = RowColorOption;
56368
56373
  exports.RowExcel = RowExcel;
56374
+ exports.SEND_ACTION = SEND_ACTION;
56369
56375
  exports.SHARE_COMPONENT_ID = SHARE_COMPONENT_ID;
56370
56376
  exports.SHARE_EVENT = SHARE_EVENT;
56371
56377
  exports.SafeHtmlPipe = SafeHtmlPipe;
@@ -56526,7 +56532,6 @@
56526
56532
  exports.monthDiff = monthDiff;
56527
56533
  exports.multipleSort = multipleSort;
56528
56534
  exports.romanize = romanize;
56529
- exports["ɵ0"] = ɵ0$2;
56530
56535
  exports["ɵ1"] = ɵ1$1;
56531
56536
  exports["ɵ2"] = ɵ2$1;
56532
56537
  exports["ɵ3"] = ɵ3;