pixel-react 1.9.7 → 1.9.8

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.
package/lib/index.esm.js CHANGED
@@ -14451,7 +14451,8 @@ const TableCell = /*#__PURE__*/React__default.memo(({
14451
14451
  }), jsxs("span", {
14452
14452
  className: `tree-table-td-content ${col.isTree && node.folder ? 'folder' : ''}`,
14453
14453
  children: [col.isTree && select === 'checkbox' && jsx(Checkbox, {
14454
- checked: selected.includes(node.id),
14454
+ checked: node?.checked || false,
14455
+ partial: node?.checked === 'partial',
14455
14456
  onChange: e => onCheckBoxChange(e, node)
14456
14457
  }), col.isTree && select === 'radio' && jsx(RadioButton, {
14457
14458
  name: node.title,
@@ -14518,8 +14519,6 @@ const TableBody = /*#__PURE__*/React__default.memo(({
14518
14519
  })]
14519
14520
  }));
14520
14521
 
14521
- const functionCheck = functionToCheck => !checkEmpty(functionToCheck) && functionToCheck && {}.toString.call(functionToCheck) === '[object Function]';
14522
-
14523
14522
  const TreeTable = ({
14524
14523
  treeData,
14525
14524
  columnsData,
@@ -14539,14 +14538,13 @@ const TreeTable = ({
14539
14538
  threshold: 0.1,
14540
14539
  onIntersect: entry => {
14541
14540
  if (entry.isIntersecting) {
14542
- if (functionCheck(loadMore)) {
14543
- let direction = 'up';
14541
+ if (loadMore) {
14542
+ let direction = 'above';
14544
14543
  if (entry.target.id === 'ff-table-tree-last-node') {
14545
- direction = 'down';
14544
+ direction = 'below';
14546
14545
  }
14547
14546
  loadMore(direction);
14548
14547
  }
14549
- console.log('Element in view:', entry.target.id);
14550
14548
  }
14551
14549
  }
14552
14550
  });
@@ -53872,9 +53870,9 @@ const getTreeDetails = (action, oldData, newData, index) => {
53872
53870
  }
53873
53871
  break;
53874
53872
  case 'start':
53875
- if (oldData.length > 0) {
53876
- root = oldData[0];
53877
- treeDataList = oldData.slice(1);
53873
+ if (newData.length > 0) {
53874
+ root = newData[0];
53875
+ treeDataList = newData.slice(1);
53878
53876
  } else {
53879
53877
  throw new Error('Tree data list is empty, cannot determine root.');
53880
53878
  }