tnx-shared 5.1.639 → 5.1.640

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.
@@ -23481,7 +23481,14 @@
23481
23481
  for (var i = 0; i < arrRow.length; i++) {
23482
23482
  var row = arrRow[i];
23483
23483
  var arrTd = row.querySelectorAll('td');
23484
- arrRowData.push(__spread(arrTd).filter(function (x) { return !x.className.includes('chkbox link-or-action cell-checkbox'); }).map(function (x) { return ({ value: x.innerText, rowSpan: x.rowSpan }); }));
23484
+ arrRowData.push(__spread(arrTd).filter(function (x) { return !x.className.includes('chkbox link-or-action cell-checkbox') && !x.className.includes('column-function'); }).map(function (td) {
23485
+ var hasCheckbox = td.querySelector('.p-checkbox.p-component');
23486
+ var isChecked = td.querySelector('.p-checkbox-checked');
23487
+ return {
23488
+ value: hasCheckbox ? (isChecked ? 'Có' : 'Không') : td.innerText,
23489
+ rowSpan: td.rowSpan
23490
+ };
23491
+ }));
23485
23492
  }
23486
23493
  return arrRowData;
23487
23494
  };