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.
@@ -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)
@@ -42637,6 +42653,7 @@ class NumberPickerRangeComponent {
42637
42653
  this.change = new EventEmitter();
42638
42654
  this.placeholerTu = 'Từ';
42639
42655
  this.placeholerDen = 'Đến';
42656
+ this.decimalMarker = ',';
42640
42657
  }
42641
42658
  ngOnInit() {
42642
42659
  this.onInit.emit(this);
@@ -42733,7 +42750,7 @@ class NumberPickerRangeComponent {
42733
42750
  NumberPickerRangeComponent.decorators = [
42734
42751
  { type: Component, args: [{
42735
42752
  selector: 'tn-number-picker-range',
42736
- 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>",
42753
+ 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>",
42737
42754
  providers: [
42738
42755
  {
42739
42756
  provide: NG_VALUE_ACCESSOR,