hi-tm 0.11.0 → 0.11.2

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.
@@ -377,21 +377,22 @@ pageIndex = 0, // Default to first page (0-indexed)
377
377
  // );
378
378
  // };
379
379
  const isIndeterminate = (rowId) => {
380
- const findRow = (rows, id) => {
380
+ // 1. پیدا کردن ردیف و مسیر آن
381
+ const findRowAndPath = (rows, id) => {
381
382
  if (!rows)
382
383
  return { row: null, path: [] };
383
384
  for (const row of rows) {
384
385
  if (row.id === id)
385
386
  return { row, path: [row] };
386
387
  if (row.hasChildren && row.childRows) {
387
- const found = findRow(row.childRows, id);
388
+ const found = findRowAndPath(row.childRows, id);
388
389
  if (found.row)
389
390
  return { row: found.row, path: [row, ...found.path] };
390
391
  }
391
392
  }
392
393
  return { row: null, path: [] };
393
394
  };
394
- const { row, path } = findRow(rows, rowId);
395
+ const { row } = findRowAndPath(rows, rowId);
395
396
  if (!row ||
396
397
  !row.hasChildren ||
397
398
  !row.childRows ||
@@ -399,7 +400,7 @@ pageIndex = 0, // Default to first page (0-indexed)
399
400
  return false;
400
401
  }
401
402
  const isRowSelected = selectedRows.includes(rowId);
402
- // پیمایش یکباره برای بررسی وضعیت فرزندان
403
+ // 2. پیمایش یکباره برای بررسی وضعیت فرزندان
403
404
  let hasAnySelected = false;
404
405
  let hasAllSelected = true;
405
406
  const checkDescendants = (children) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hi-tm",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "styles": "dist/styles/globals.css",
5
5
  "main": "dist/index.js",
6
6
  "exports": {