tnx-shared 5.1.553 → 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];
@@ -5155,6 +5156,13 @@
5155
5156
  }
5156
5157
  return ExportItem;
5157
5158
  }());
5159
+ var MergeConfigModel = /** @class */ (function () {
5160
+ function MergeConfigModel() {
5161
+ this.row = 1;
5162
+ this.columnStart = 1;
5163
+ }
5164
+ return MergeConfigModel;
5165
+ }());
5158
5166
 
5159
5167
  var isLiteralObject = function (obj) {
5160
5168
  return (obj instanceof Object)
@@ -59720,6 +59728,7 @@
59720
59728
  height: 900,
59721
59729
  maximize: true
59722
59730
  });
59731
+ _this.hiddenCols = [];
59723
59732
  _this.multiple = false;
59724
59733
  _this.disabled = false;
59725
59734
  _this.onInit = new i0.EventEmitter();
@@ -59828,6 +59837,14 @@
59828
59837
  if (this.fieldSearchText.length == 0) {
59829
59838
  this.fieldSearchText.push(this.controlPicker.displayField);
59830
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
+ }
59831
59848
  if (this.control.returnType == 'value') {
59832
59849
  this.funcReturnValue = function (value) {
59833
59850
  if (value == null)
@@ -60375,6 +60392,7 @@
60375
60392
  filterChucVuRef: [{ type: i0.ViewChild, args: ['filterChucVuRef', { static: true },] }],
60376
60393
  control: [{ type: i0.Input }],
60377
60394
  popupSize: [{ type: i0.Input }],
60395
+ hiddenCols: [{ type: i0.Input }],
60378
60396
  multiple: [{ type: i0.Input }],
60379
60397
  disabled: [{ type: i0.Input }],
60380
60398
  readOnlyValues: [{ type: i0.Input }],
@@ -64946,6 +64964,7 @@
64946
64964
  exports.MasterDataPipe = MasterDataPipe;
64947
64965
  exports.MasterDataService = MasterDataService;
64948
64966
  exports.MenuService = MenuService;
64967
+ exports.MergeConfigModel = MergeConfigModel;
64949
64968
  exports.MethodResult = MethodResult;
64950
64969
  exports.ModelKySoDonVi = ModelKySoDonVi;
64951
64970
  exports.ModelSchema = ModelSchema;