tnx-shared 5.3.280 → 5.3.281

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.
@@ -4879,6 +4879,13 @@
4879
4879
  var blob = new Blob([int8Array], { type: 'image/png' });
4880
4880
  return blob;
4881
4881
  };
4882
+ CommonService.prototype.getInnerText = function (str) {
4883
+ if (!str)
4884
+ return '';
4885
+ var element = document.createElement('div');
4886
+ element.innerHTML = str;
4887
+ return element.innerText;
4888
+ };
4882
4889
  return CommonService;
4883
4890
  }());
4884
4891
  CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
@@ -25445,13 +25452,25 @@
25445
25452
  ListComponentBase.prototype.handleHideHistoryWorkflow = function () {
25446
25453
  this.showHistoryWorkflow = false;
25447
25454
  };
25455
+ ListComponentBase.prototype.validateWorkflowCustom = function (crudListSetting, itemWorkflowSetting, workflowAction, currentItem) {
25456
+ return __awaiter(this, void 0, void 0, function () {
25457
+ return __generator(this, function (_h) {
25458
+ return [2 /*return*/, true];
25459
+ });
25460
+ });
25461
+ };
25448
25462
  ListComponentBase.prototype.processWorkflow = function (crudListSetting, itemWorkflowSetting, workflowAction) {
25449
25463
  return __awaiter(this, void 0, void 0, function () {
25450
- var domainNewTab, compRef;
25464
+ var validateRes, domainNewTab, compRef;
25451
25465
  var _this = this;
25452
25466
  return __generator(this, function (_h) {
25453
25467
  switch (_h.label) {
25454
- case 0:
25468
+ case 0: return [4 /*yield*/, this.validateWorkflowCustom(crudListSetting, itemWorkflowSetting, workflowAction, this.currentItem)];
25469
+ case 1:
25470
+ validateRes = _h.sent();
25471
+ if (!validateRes) {
25472
+ return [2 /*return*/];
25473
+ }
25455
25474
  if (workflowAction.openNewTab) {
25456
25475
  domainNewTab = workflowAction.domainNewTab;
25457
25476
  if (!domainNewTab)
@@ -25471,7 +25490,7 @@
25471
25490
  this.processWorkflowModel.showEditForm = true;
25472
25491
  this.processWorkflowModel.header = workflowAction.name;
25473
25492
  return [4 /*yield*/, this._federationService.loadRemoteNewComponent('commonapp', 'ProcessWorkflowFormComponent', this.processWorkflowFormViewContainer)];
25474
- case 1:
25493
+ case 2:
25475
25494
  compRef = _h.sent();
25476
25495
  if (this.dialogProcessWorkflowForm) {
25477
25496
  this.dialogProcessWorkflowForm.buttonTemplateInput = compRef.instance.buttonTemplate;