tnx-shared 5.1.554 → 5.1.555

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.
@@ -1793,6 +1793,7 @@
1793
1793
  _this.fieldSearchText = [];
1794
1794
  _this.operatorFieldSearchText = exports.Operator.contain;
1795
1795
  _this.usePicker = true;
1796
+ _this.hiddenCols = [];
1796
1797
  _this.funcCompare = function (item, value) { return item[_this.valueField] == value; };
1797
1798
  for (var key in init) {
1798
1799
  _this[key] = init[key];
@@ -59727,6 +59728,7 @@
59727
59728
  height: 900,
59728
59729
  maximize: true
59729
59730
  });
59731
+ _this.hiddenCols = [];
59730
59732
  _this.multiple = false;
59731
59733
  _this.disabled = false;
59732
59734
  _this.onInit = new i0.EventEmitter();
@@ -59835,6 +59837,14 @@
59835
59837
  if (this.fieldSearchText.length == 0) {
59836
59838
  this.fieldSearchText.push(this.controlPicker.displayField);
59837
59839
  }
59840
+ // Ẩn cột khi có giá trị được tryền vào hiddenCols
59841
+ if (this.control.hiddenCols.length) {
59842
+ this.controlPicker.columns.forEach(function (item) {
59843
+ if (_this.control.hiddenCols.includes(item.code)) {
59844
+ item.isDisplay = false;
59845
+ }
59846
+ });
59847
+ }
59838
59848
  if (this.control.returnType == 'value') {
59839
59849
  this.funcReturnValue = function (value) {
59840
59850
  if (value == null)
@@ -60382,6 +60392,7 @@
60382
60392
  filterChucVuRef: [{ type: i0.ViewChild, args: ['filterChucVuRef', { static: true },] }],
60383
60393
  control: [{ type: i0.Input }],
60384
60394
  popupSize: [{ type: i0.Input }],
60395
+ hiddenCols: [{ type: i0.Input }],
60385
60396
  multiple: [{ type: i0.Input }],
60386
60397
  disabled: [{ type: i0.Input }],
60387
60398
  readOnlyValues: [{ type: i0.Input }],