tnx-shared 5.3.279 → 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;
@@ -49552,6 +49571,7 @@
49552
49571
  this.change = new i0.EventEmitter();
49553
49572
  this.placeholerTu = 'Từ';
49554
49573
  this.placeholerDen = 'Đến';
49574
+ this.decimalMarker = ',';
49555
49575
  }
49556
49576
  NumberPickerRangeComponent.prototype.ngOnInit = function () {
49557
49577
  this.onInit.emit(this);
@@ -49649,7 +49669,7 @@
49649
49669
  NumberPickerRangeComponent.decorators = [
49650
49670
  { type: i0.Component, args: [{
49651
49671
  selector: 'tn-number-picker-range',
49652
- template: "<div class=\"tn-number-picker-range\">\n <input type=\"text\" placeholder=\"{{placeholerTu}}\" [attr.disabled]=\"disabled ? true : null\"\n [mask]=\"getMaskByType(maskType)\" [thousandSeparator]=\"getThousandSeperator()\" pInputText [(ngModel)]=\"model[0]\"\n (change)=\"onChanged($event)\" (focus)=\"onFocus($event, 0)\" />\n <span>-</span>\n <input type=\"text\" placeholder=\"{{placeholerDen}}\" [attr.disabled]=\"disabled ? true : null\"\n [mask]=\"getMaskByType(maskType)\" [thousandSeparator]=\"getThousandSeperator()\" pInputText [(ngModel)]=\"model[1]\"\n (change)=\"onChanged($event)\" (focus)=\"onFocus($event, 1)\" />\n</div>",
49672
+ template: "<div class=\"tn-number-picker-range\">\n <input type=\"text\" placeholder=\"{{placeholerTu}}\" [attr.disabled]=\"disabled ? true : null\"\n [mask]=\"getMaskByType(maskType)\" [thousandSeparator]=\"getThousandSeperator()\" [decimalMarker]=\"decimalMarker\"\n pInputText [(ngModel)]=\"model[0]\" (change)=\"onChanged($event)\" (focus)=\"onFocus($event, 0)\" />\n <span>-</span>\n <input type=\"text\" placeholder=\"{{placeholerDen}}\" [attr.disabled]=\"disabled ? true : null\"\n [mask]=\"getMaskByType(maskType)\" [thousandSeparator]=\"getThousandSeperator()\" [decimalMarker]=\"decimalMarker\"\n pInputText [(ngModel)]=\"model[1]\" (change)=\"onChanged($event)\" (focus)=\"onFocus($event, 1)\" />\n</div>",
49653
49673
  providers: [
49654
49674
  {
49655
49675
  provide: forms.NG_VALUE_ACCESSOR,