tnx-shared 5.3.346 → 5.3.348

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.
@@ -33291,7 +33291,7 @@
33291
33291
  case exports.DataType.decimal:
33292
33292
  case exports.DataType.currency:
33293
33293
  addColumn_1.maskType = column.dataType;
33294
- addColumn_1.max = 99999999999;
33294
+ addColumn_1.max = column.max || 99999999999;
33295
33295
  addColumn_1.onChanged = function (evt) {
33296
33296
  addColumn_1.autoSearch && _this.handleSearch();
33297
33297
  };
@@ -42174,6 +42174,13 @@
42174
42174
  var url = this.serviceUri + "/MarkUnReadByFilter";
42175
42175
  return this.defaultPost(url, filter);
42176
42176
  };
42177
+ NotificationService.prototype.removeNotificationByFilter = function (filter) {
42178
+ var url = this.serviceUri + "/RemoveNotificationByFilter";
42179
+ return this.defaultPost(url, filter);
42180
+ };
42181
+ NotificationService.prototype.removeNotificationById = function (id) {
42182
+ return this.defaultPost(this.serviceUri + "/RemoveNotificationById/" + id, {});
42183
+ };
42177
42184
  return NotificationService;
42178
42185
  }(BaseService));
42179
42186
  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" });
@@ -48184,22 +48191,48 @@
48184
48191
  this._commonService.addDistinct(arrDisplayField, arrField);
48185
48192
  return arrField.toString();
48186
48193
  };
48194
+ EntityPickerComponent.prototype.onBeforeUnPick = function (data) {
48195
+ return __awaiter(this, void 0, void 0, function () {
48196
+ return __generator(this, function (_a) {
48197
+ switch (_a.label) {
48198
+ case 0:
48199
+ if (!this.control.onDeleting) return [3 /*break*/, 2];
48200
+ return [4 /*yield*/, this.control.onDeleting(data)];
48201
+ case 1: return [2 /*return*/, _a.sent()];
48202
+ case 2: return [2 /*return*/, true];
48203
+ }
48204
+ });
48205
+ });
48206
+ };
48187
48207
  EntityPickerComponent.prototype.handleUnPickEntity = function (data) {
48188
- var _this = this;
48189
- if (this.control.multiple) {
48190
- this.selectedValue = this.selectedValue.filter(function (x) { return x[_this.control.valueField] != data[_this.control.valueField]; });
48191
- }
48192
- else {
48193
- this.selectedValue = null;
48194
- }
48195
- this.onChange(this.selectedValue);
48196
- // data emit phải giống với hàm handleUnSelectEntity
48197
- this.onUnSelect.emit({
48198
- items: [data],
48199
- value: this.selectedValue
48208
+ return __awaiter(this, void 0, void 0, function () {
48209
+ var isAllowUnPick;
48210
+ var _this = this;
48211
+ return __generator(this, function (_a) {
48212
+ switch (_a.label) {
48213
+ case 0: return [4 /*yield*/, this.onBeforeUnPick(data)];
48214
+ case 1:
48215
+ isAllowUnPick = _a.sent();
48216
+ if (!isAllowUnPick)
48217
+ return [2 /*return*/];
48218
+ if (this.control.multiple) {
48219
+ this.selectedValue = this.selectedValue.filter(function (x) { return x[_this.control.valueField] != data[_this.control.valueField]; });
48220
+ }
48221
+ else {
48222
+ this.selectedValue = null;
48223
+ }
48224
+ this.onChange(this.selectedValue);
48225
+ // data emit phải giống với hàm handleUnSelectEntity
48226
+ this.onUnSelect.emit({
48227
+ items: [data],
48228
+ value: this.selectedValue
48229
+ });
48230
+ this.fireChangeEvent();
48231
+ this._triggerProcessData();
48232
+ return [2 /*return*/];
48233
+ }
48234
+ });
48200
48235
  });
48201
- this.fireChangeEvent();
48202
- this._triggerProcessData();
48203
48236
  };
48204
48237
  EntityPickerComponent.prototype.handleUnMultiPickEntity = function () {
48205
48238
  var _this = this;