tnx-shared 5.3.373 → 5.3.375

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.
@@ -649,6 +649,7 @@ class CrudListSetting {
649
649
  this.mdWidthCommonSearch = 3;
650
650
  this.useCommonSearch = false;
651
651
  this.useCommonFullTextSearch = true;
652
+ this.arrFullTextSearch = [];
652
653
  this.hiddenSearch = false;
653
654
  this.hiddenAuthorizeButton = false;
654
655
  this.suffixAuthorizeCode = ''; // thêm hậu tố mã code trong chức năng Phân quyền nút (phục vụ case crudList này nằm trong màn hình popup)
@@ -14628,6 +14629,30 @@ class CrudFormComponent extends ComponentBase {
14628
14629
  if (this.tableFormCurrentRow > -1) {
14629
14630
  tableNode.model[this.tableFormCurrentRow] = Object.assign(Object.assign({}, tableNode.model[this.tableFormCurrentRow]), data);
14630
14631
  this.fireModelChanged();
14632
+ if (control.onChanged) {
14633
+ try {
14634
+ yield control.onChanged(new EventData({
14635
+ currentNode: tableNode,
14636
+ sourceNode: null,
14637
+ eventType: eventType || this.eventType.TABLE_CHANGED,
14638
+ crudForm: this
14639
+ }));
14640
+ }
14641
+ catch (_a) {
14642
+ }
14643
+ }
14644
+ if (control.onAfterChanged) {
14645
+ try {
14646
+ yield control.onAfterChanged(new EventData({
14647
+ currentNode: tableNode,
14648
+ sourceNode: null,
14649
+ eventType: eventType || this.eventType.TABLE_CHANGED,
14650
+ crudForm: this
14651
+ }));
14652
+ }
14653
+ catch (_b) {
14654
+ }
14655
+ }
14631
14656
  }
14632
14657
  else {
14633
14658
  const index = tableNode.childNodes.length;
@@ -14645,7 +14670,7 @@ class CrudFormComponent extends ComponentBase {
14645
14670
  crudForm: this
14646
14671
  }));
14647
14672
  }
14648
- catch (_a) {
14673
+ catch (_c) {
14649
14674
  toAdd = false;
14650
14675
  }
14651
14676
  }
@@ -14665,7 +14690,7 @@ class CrudFormComponent extends ComponentBase {
14665
14690
  crudForm: this
14666
14691
  }));
14667
14692
  }
14668
- catch (_b) {
14693
+ catch (_d) {
14669
14694
  }
14670
14695
  }
14671
14696
  if (control.onAfterChanged) {
@@ -14677,7 +14702,7 @@ class CrudFormComponent extends ComponentBase {
14677
14702
  crudForm: this
14678
14703
  }));
14679
14704
  }
14680
- catch (_c) {
14705
+ catch (_e) {
14681
14706
  }
14682
14707
  }
14683
14708
  if (control.onAdded) {
@@ -14689,7 +14714,7 @@ class CrudFormComponent extends ComponentBase {
14689
14714
  crudForm: this
14690
14715
  }));
14691
14716
  }
14692
- catch (_d) {
14717
+ catch (_f) {
14693
14718
  }
14694
14719
  }
14695
14720
  }
@@ -22652,9 +22677,22 @@ class CommonSearchFormComponent extends DataFormBase {
22652
22677
  return 0;
22653
22678
  });
22654
22679
  if (this.parentSetting.useCommonFullTextSearch) {
22680
+ const arrLabel = [];
22655
22681
  const lstTextSearchControl = columnFilters.filter(p => p.fullTextSearch);
22656
- this.lstTextControl = lstTextSearchControl.map(p => p.field);
22657
- this.searchBoxTooltip += `${(lstTextSearchControl.map(x => x.label)).join(', ')}`;
22682
+ if (lstTextSearchControl.length) {
22683
+ lstTextSearchControl.forEach(item => {
22684
+ arrLabel.push(item.label);
22685
+ this.lstTextControl.push(item.field);
22686
+ });
22687
+ }
22688
+ // fullTextSearch custom
22689
+ if (this.parentSetting.arrFullTextSearch.length) {
22690
+ this.parentSetting.arrFullTextSearch.forEach(item => {
22691
+ arrLabel.push(item.name);
22692
+ this.lstTextControl.push(item.field);
22693
+ });
22694
+ }
22695
+ this.searchBoxTooltip += arrLabel.join(', ');
22658
22696
  this._index = 2;
22659
22697
  }
22660
22698
  if (this.isCustomGenerateSearch) {