tnx-shared 5.3.280 → 5.3.282

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.
@@ -3996,6 +3996,13 @@ class CommonService {
3996
3996
  const blob = new Blob([int8Array], { type: 'image/png' });
3997
3997
  return blob;
3998
3998
  }
3999
+ getInnerText(str) {
4000
+ if (!str)
4001
+ return '';
4002
+ const element = document.createElement('div');
4003
+ element.innerHTML = str;
4004
+ return element.innerText;
4005
+ }
3999
4006
  }
4000
4007
  CommonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
4001
4008
  CommonService.decorators = [
@@ -21566,8 +21573,17 @@ class ListComponentBase extends ComponentBase {
21566
21573
  handleHideHistoryWorkflow() {
21567
21574
  this.showHistoryWorkflow = false;
21568
21575
  }
21576
+ validateWorkflowCustom(crudListSetting, itemWorkflowSetting, workflowAction, currentItem) {
21577
+ return __awaiter(this, void 0, void 0, function* () {
21578
+ return true;
21579
+ });
21580
+ }
21569
21581
  processWorkflow(crudListSetting, itemWorkflowSetting, workflowAction) {
21570
21582
  return __awaiter(this, void 0, void 0, function* () {
21583
+ const validateRes = yield this.validateWorkflowCustom(crudListSetting, itemWorkflowSetting, workflowAction, this.currentItem);
21584
+ if (!validateRes) {
21585
+ return;
21586
+ }
21571
21587
  if (workflowAction.openNewTab) {
21572
21588
  let domainNewTab = workflowAction.domainNewTab;
21573
21589
  if (!domainNewTab)
@@ -47196,7 +47212,8 @@ class UserPickerComponent extends ComponentBase {
47196
47212
  temp.label = item[this.controlPicker.displayField];
47197
47213
  }
47198
47214
  else {
47199
- temp.label = this._userV5Service.getFullCanBoLabel(item, true);
47215
+ const tenDonVi = item.lstTenDonVi && item.lstTenDonVi.length > 0 ? item.lstTenDonVi.split(',')[0] : '';
47216
+ temp.label = (item.maChucVu ? `${item.maChucVu}. ` : '') + `${temp.label}` + (tenDonVi ? ` - ${tenDonVi}` : '');
47200
47217
  }
47201
47218
  temp.value._dropdownvalue = this.controlPicker.valueField;
47202
47219
  return temp;