tnx-shared 5.3.292 → 5.3.293

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);
@@ -39478,6 +39479,28 @@
39478
39479
  return Column;
39479
39480
  }());
39480
39481
 
39482
+ exports.EnumDoiTuongGuiThongBaoNguoiDung = void 0;
39483
+ (function (EnumDoiTuongGuiThongBaoNguoiDung) {
39484
+ EnumDoiTuongGuiThongBaoNguoiDung["TAT_CA_NGUOI_DUNG"] = "0";
39485
+ EnumDoiTuongGuiThongBaoNguoiDung["TAT_CA_LANH_DAO"] = "1";
39486
+ EnumDoiTuongGuiThongBaoNguoiDung["CHON_NGUOI_DUNG"] = "2";
39487
+ EnumDoiTuongGuiThongBaoNguoiDung["LANH_DAO_DON_VI"] = "3";
39488
+ })(exports.EnumDoiTuongGuiThongBaoNguoiDung || (exports.EnumDoiTuongGuiThongBaoNguoiDung = {}));
39489
+ var NotificationParams = /** @class */ (function () {
39490
+ function NotificationParams() {
39491
+ }
39492
+ return NotificationParams;
39493
+ }());
39494
+ exports.EnumNotificationAction = void 0;
39495
+ (function (EnumNotificationAction) {
39496
+ EnumNotificationAction[EnumNotificationAction["NEW"] = 0] = "NEW";
39497
+ })(exports.EnumNotificationAction || (exports.EnumNotificationAction = {}));
39498
+ ;
39499
+ var ɵ0$1 = exports.EnumNotificationAction.NEW;
39500
+ var SEND_ACTION = [
39501
+ { id: ɵ0$1, name: 'NEW' }
39502
+ ];
39503
+
39481
39504
  var ReponseResult = /** @class */ (function () {
39482
39505
  function ReponseResult() {
39483
39506
  }
@@ -40187,28 +40210,6 @@
40187
40210
  { type: ModuleConfigService }
40188
40211
  ]; };
40189
40212
 
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
40213
  var AnnouncementsService = /** @class */ (function (_super) {
40213
40214
  __extends(AnnouncementsService, _super);
40214
40215
  function AnnouncementsService(http, injector, _moduleConfigService) {
@@ -40238,13 +40239,13 @@
40238
40239
  userIds = this._commonService.distinctArray(userIds);
40239
40240
  notificationParams = new NotificationParams();
40240
40241
  if (orgIds.length > 0) {
40241
- notificationParams.receiverType = EnumDoiTuongGuiThongBaoNguoiDung.LANH_DAO_DON_VI;
40242
+ notificationParams.receiverType = exports.EnumDoiTuongGuiThongBaoNguoiDung.LANH_DAO_DON_VI;
40242
40243
  }
40243
40244
  else if (userIds.length > 0) {
40244
- notificationParams.receiverType = EnumDoiTuongGuiThongBaoNguoiDung.CHON_NGUOI_DUNG;
40245
+ notificationParams.receiverType = exports.EnumDoiTuongGuiThongBaoNguoiDung.CHON_NGUOI_DUNG;
40245
40246
  }
40246
40247
  else {
40247
- notificationParams.receiverType = EnumDoiTuongGuiThongBaoNguoiDung.TAT_CA_LANH_DAO;
40248
+ notificationParams.receiverType = exports.EnumDoiTuongGuiThongBaoNguoiDung.TAT_CA_LANH_DAO;
40248
40249
  }
40249
40250
  notificationParams.orgIds = orgIds.join(',');
40250
40251
  notificationParams.userIds = userIds.join(',');
@@ -40258,7 +40259,7 @@
40258
40259
  }
40259
40260
  notificationParams.isSendEmail = isSendEmail;
40260
40261
  notificationParams.isChangeUser = isChangeUser;
40261
- notificationParams.actions = SEND_ACTION[EnumNotificationAction.NEW].name;
40262
+ notificationParams.actions = SEND_ACTION[exports.EnumNotificationAction.NEW].name;
40262
40263
  this.openThongBao(notificationParams);
40263
40264
  return [2 /*return*/];
40264
40265
  });
@@ -56321,6 +56322,7 @@
56321
56322
  exports.MultiTranslateHttpLoader = MultiTranslateHttpLoader;
56322
56323
  exports.MultipleReferenceDataFormatPipe = MultipleReferenceDataFormatPipe;
56323
56324
  exports.NameValidator = NameValidator;
56325
+ exports.NotificationParams = NotificationParams;
56324
56326
  exports.NotificationService = NotificationService;
56325
56327
  exports.NotifierService = NotifierService;
56326
56328
  exports.NumberCompareValidator = NumberCompareValidator;
@@ -56366,6 +56368,7 @@
56366
56368
  exports.RequiredValidator = RequiredValidator;
56367
56369
  exports.RowColorOption = RowColorOption;
56368
56370
  exports.RowExcel = RowExcel;
56371
+ exports.SEND_ACTION = SEND_ACTION;
56369
56372
  exports.SHARE_COMPONENT_ID = SHARE_COMPONENT_ID;
56370
56373
  exports.SHARE_EVENT = SHARE_EVENT;
56371
56374
  exports.SafeHtmlPipe = SafeHtmlPipe;
@@ -56526,7 +56529,6 @@
56526
56529
  exports.monthDiff = monthDiff;
56527
56530
  exports.multipleSort = multipleSort;
56528
56531
  exports.romanize = romanize;
56529
- exports["ɵ0"] = ɵ0$2;
56530
56532
  exports["ɵ1"] = ɵ1$1;
56531
56533
  exports["ɵ2"] = ɵ2$1;
56532
56534
  exports["ɵ3"] = ɵ3;