@nice2dev/ui 1.3.8 → 1.3.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # [1.0.27] — 2026-06-07
2
2
 
3
+ ## 1.3.9
4
+
5
+ ### Patch Changes
6
+
7
+ - df3a74d: **NiceTreeGrid: a tree with cascading checkboxes, columns and search** — for picking modules in
8
+ packages, with informational rows in between.
9
+
10
+ - `checkable` with `checkedKeys` / `defaultCheckedKeys` / `onCheckedChange(keys, info)`: checking a
11
+ parent checks every row below it; a parent is checked when all of them are, indeterminate when
12
+ some are.
13
+ - `checkStrategy`: `'all'` (default), `'leaves'` or `'parents'`. A parent key in the value checks
14
+ its subtree, and keys of rows not in `data` are kept.
15
+ - `isRowCheckable(row)`: `false` makes a row informational, with no checkbox. A module whose
16
+ children are only categories counts as a leaf; a group header is counted through.
17
+ - `isRowDisabled(row)`: locks a row and its subtree, which keep their state.
18
+ - Checkbox options:
19
+ - `checkboxPlacement`: `'tree'` (after the expander) or `'column'`;
20
+ - `checkOnRowClick`;
21
+ - `showCheckedCount` (a "3/7" badge);
22
+ - a header "select all", which acts on the results while searching.
23
+ - Search:
24
+ - `searchText` / `defaultSearchText` / `onSearchChange`, `searchFields`, `searchFilter`,
25
+ `searchKeepDescendants`;
26
+ - opens the rows above every match without touching the user's expansion (`searchAutoExpand`);
27
+ - marks matches (`highlightMatches`) and shows "No results".
28
+ - Toolbar and expansion:
29
+ - `showOnlyChecked` / `defaultShowOnlyChecked` / `onShowOnlyCheckedChange`;
30
+ - `toolbarActions` (expand all, collapse all, show selected only, clear selection);
31
+ - `defaultExpandedKeys`, `rowClassName`, `getRowLabel`.
32
+ - `virtualScroll` / `rowHeight` / `height` for thousands of rows.
33
+ - Keyboard and ARIA (APG treegrid):
34
+ - one tab stop; arrows, Home / End, `*` and letters move between rows; Space checks, Enter
35
+ clicks, PageUp / PageDown move by 10;
36
+ - `aria-level` / `aria-expanded` / `aria-posinset` / `aria-setsize` on the rows.
37
+ - Takes `NiceStandardProps`: `testId` / `data-testid`, `id`, `accessMode`, `aria-label`.
38
+ - New types: `NiceTreeGridCheckInfo`, `NiceTreeGridToolbarAction`, `NiceTreeCheckState`,
39
+ `NiceTreeCheckStrategy`. 9 new `treeGrid.*` keys in the six dictionaries.
40
+
41
+ **Behaviour changes in NiceTreeGrid:**
42
+
43
+ - Focus moves to rows: expander buttons and checkboxes leave the tab order.
44
+ - A search reveals matches inside collapsed rows.
45
+ - Passing only `onExpandedChange` or only `onSelectionChange` (without the value prop) now updates
46
+ the view.
47
+ - `defaultExpandAll` also opens rows that arrive after mount, until the user toggles one.
48
+
49
+ **NiceTreeList (`selectable`)** now uses the same cascade:
50
+
51
+ - Nested `children` data renders; it used to show only the roots.
52
+ - A parent's key comes and goes with its descendants. Ticking every child one by one adds it, and
53
+ unticking one removes it. Past two levels, the parent's state used to be wrong.
54
+ - Keys come in document order, and a parent key in `selectedKeys` checks its subtree.
55
+ - `render` gets the real row index instead of `0`.
56
+
57
+ **NiceTreeView (`showCheckboxes` + `selectionMode="multiple"`):**
58
+
59
+ - A disabled node's checkbox is really disabled, and a parent's toggle leaves it alone.
60
+ - A parent no longer stays indeterminate with nothing checked.
61
+ - Parent keys come and go automatically, and lazily loaded children of a checked node arrive
62
+ checked.
63
+ - `node.expanded` now opens the node at mount when expansion is uncontrolled.
64
+
65
+ **ui-core:** `useTreeFocus` finds the visible items in one pass. A flat tree of ~2900 rows took a
66
+ minute in jsdom; it now takes a quarter of a second.
67
+
68
+ - Updated dependencies [f5f6251]
69
+ - Updated dependencies [df3a74d]
70
+ - @nice2dev/i18n@1.3.9
71
+ - @nice2dev/ui-core@1.3.9
72
+
3
73
  ## 1.3.8
4
74
 
5
75
  ### Patch Changes