tnx-shared 5.3.347 → 5.3.349

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.
@@ -1131,6 +1131,7 @@
1131
1131
  this.hiddenWorkflowHistory = false;
1132
1132
  this.allowFilterWorkflowColumn = false;
1133
1133
  this.hiddenFunctionColumn = false;
1134
+ this.hidenSortColumn = false;
1134
1135
  this.hiddenRefresh = false;
1135
1136
  this.hiddenFilterRow = false;
1136
1137
  this.hiddenTrinhKy = true;
@@ -1142,6 +1143,7 @@
1142
1143
  this.requiredVanBanDiAfterTrinhKy = false;
1143
1144
  this.disableLazyLoadCommonSearch = false;
1144
1145
  this.isLimitNumberOfLine = true;
1146
+ this.customGetData = false;
1145
1147
  this.showExportAll = false;
1146
1148
  this.showExportSelectedItems = true;
1147
1149
  this.showExportWordSelectedItems = false;
@@ -4795,8 +4797,8 @@
4795
4797
  return [startDate, endDate];
4796
4798
  };
4797
4799
  CommonService.prototype.getStartDayEndDayInMonth = function (month, year) {
4798
- month = month !== null && month !== void 0 ? month : this.getCurrentMonth();
4799
- year = year !== null && year !== void 0 ? year : this.getCurrentYear();
4800
+ month !== null && month !== void 0 ? month : (month = this.getCurrentMonth());
4801
+ year !== null && year !== void 0 ? year : (year = this.getCurrentYear());
4800
4802
  return [new Date(year, month, 1), new Date(year, month + 1, 0)];
4801
4803
  };
4802
4804
  CommonService.prototype.addHtmlContentWithTagAround = function (lstTag, className, tagAround, attributes) {
@@ -22947,7 +22949,7 @@
22947
22949
  if (!this.serviceCode && this.setting.baseService) {
22948
22950
  this.serviceCode = this.setting.baseService.serviceCode;
22949
22951
  }
22950
- this.isBtnReady = this.setting.hiddenAuthorizeButton;
22952
+ this.isBtnReady = this.setting.hiddenAuthorizeButton || this.setting.customGetData;
22951
22953
  if (this.authorizePath) {
22952
22954
  this.authorizePaths[ComCtxConstants.COMMON.ADD] = this.authorizePath + "/ADD";
22953
22955
  this.authorizePaths[ComCtxConstants.COMMON.EDIT] = this.authorizePath + "/EDIT";
@@ -27157,6 +27159,7 @@
27157
27159
  if (this.setting.cols) {
27158
27160
  this.setting.cols = this.setting.cols.filter(function (q) { return !q.removeOnInit; });
27159
27161
  }
27162
+ this.setting.customGetData = this.customGetData;
27160
27163
  this.mergeInfoToColumnSchema();
27161
27164
  this.generateFieldSearchText();
27162
27165
  if (!this.setting.baseService) {
@@ -27189,6 +27192,9 @@
27189
27192
  if (!this.setting.stickyColumn)
27190
27193
  constWidth = 0;
27191
27194
  this.setting.cols.forEach(function (col) {
27195
+ if (_this.setting.hidenSortColumn) {
27196
+ col.sort = false;
27197
+ }
27192
27198
  if (col.isPinned && col.width && i < _this.numberOfPined) {
27193
27199
  var left = constWidth;
27194
27200
  if (i > 0) {
@@ -28498,6 +28504,11 @@
28498
28504
  ListBase.prototype.modifyRowDataForExport = function (rowData) {
28499
28505
  return rowData;
28500
28506
  };
28507
+ ListBase.prototype.modifySettingInDialog = function () {
28508
+ this.setting.fixHeightTypeInDialog = false;
28509
+ this.setting.heightType = exports.HeightType.dynamic;
28510
+ this.setting.hiddenPageTitle = true;
28511
+ };
28501
28512
  return ListBase;
28502
28513
  }(ComponentBaseWithButton));
28503
28514
  ListBase.decorators = [
@@ -42174,6 +42185,13 @@
42174
42185
  var url = this.serviceUri + "/MarkUnReadByFilter";
42175
42186
  return this.defaultPost(url, filter);
42176
42187
  };
42188
+ NotificationService.prototype.removeNotificationByFilter = function (filter) {
42189
+ var url = this.serviceUri + "/RemoveNotificationByFilter";
42190
+ return this.defaultPost(url, filter);
42191
+ };
42192
+ NotificationService.prototype.removeNotificationById = function (id) {
42193
+ return this.defaultPost(this.serviceUri + "/RemoveNotificationById/" + id, {});
42194
+ };
42177
42195
  return NotificationService;
42178
42196
  }(BaseService));
42179
42197
  NotificationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(i0__namespace.ɵɵinject(i1__namespace$1.HttpClient), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(ModuleConfigService)); }, token: NotificationService, providedIn: "root" });