@nice2dev/ui 1.3.7 → 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.
Files changed (66) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/dist/NiceCodeEditor-B5YtKZOe.js +1222 -0
  3. package/dist/NiceCodeEditor-D0QZW88r.cjs +268 -0
  4. package/dist/NiceColorPicker-Bzvei7D6.cjs +1 -0
  5. package/dist/NiceColorPicker-DzzJhSXT.js +552 -0
  6. package/dist/NiceDataGrid-BSaBBoNr.js +2267 -0
  7. package/dist/NiceDataGrid-C_E6zIGS.cjs +10 -0
  8. package/dist/NiceForm-D2P6XuaT.cjs +1 -0
  9. package/dist/NiceForm-_kaB4Ikt.js +5017 -0
  10. package/dist/NiceHtmlEditor-CBCJdjmy.cjs +10 -0
  11. package/dist/NiceHtmlEditor-DfkdSxL3.js +901 -0
  12. package/dist/NiceLoginForm-BFvbroGJ.js +820 -0
  13. package/dist/NiceLoginForm-FGf32sro.cjs +1 -0
  14. package/dist/NiceMention-CctjYriS.cjs +430 -0
  15. package/dist/NiceMention-umOghLCf.js +11653 -0
  16. package/dist/NiceModal-BRVzjuUN.cjs +1 -0
  17. package/dist/NiceModal-CU9FqzIH.js +83 -0
  18. package/dist/NiceModuleLifecyclePanel-DQT_forg.js +7404 -0
  19. package/dist/NiceModuleLifecyclePanel-DtOlPChV.cjs +1 -0
  20. package/dist/NicePagination-CK4ZJgu4.cjs +1 -0
  21. package/dist/NicePagination-flHgG-FT.js +200 -0
  22. package/dist/NicePivotGrid-99ZeQ9j6.js +1180 -0
  23. package/dist/NicePivotGrid-CpsBxUhq.cjs +152 -0
  24. package/dist/NiceSavedQueryPanel-B8hVgWR2.cjs +587 -0
  25. package/dist/NiceSavedQueryPanel-BFtY9GOP.js +6002 -0
  26. package/dist/NiceSavedQueryPanel-Br1LQR7u.js +5311 -0
  27. package/dist/NiceSavedQueryPanel-C4SU6W22.cjs +586 -0
  28. package/dist/NiceScheduler-CeYqH0Ux.cjs +5 -0
  29. package/dist/NiceScheduler-yTpVRxfe.js +1710 -0
  30. package/dist/NiceSelect-C3NqDYwR.js +495 -0
  31. package/dist/NiceSelect-CTwSAb8G.cjs +1 -0
  32. package/dist/NiceTree.doc-AIR9cRQp.js +40 -0
  33. package/dist/NiceTree.doc-DGrIAx3G.cjs +16 -0
  34. package/dist/charts-B0tHOpJ7.cjs +768 -0
  35. package/dist/charts-C3u-VyJj.js +5019 -0
  36. package/dist/charts.cjs +1 -1
  37. package/dist/charts.mjs +1 -1
  38. package/dist/core-lazy-Bglo0hFt.cjs +1 -0
  39. package/dist/core-lazy-CRBgQkQl.js +351 -0
  40. package/dist/data.cjs +1 -1
  41. package/dist/data.d.ts +146 -12
  42. package/dist/data.mjs +3 -3
  43. package/dist/devops-Bzp3ZqZ3.cjs +18 -0
  44. package/dist/devops-fLElpPvD.js +9128 -0
  45. package/dist/devops.cjs +1 -1
  46. package/dist/devops.mjs +1 -1
  47. package/dist/editors.cjs +1 -1
  48. package/dist/editors.d.ts +5 -0
  49. package/dist/editors.mjs +7 -7
  50. package/dist/feedback.cjs +1 -1
  51. package/dist/feedback.mjs +3 -3
  52. package/dist/index.cjs +252 -252
  53. package/dist/index.css +1 -1
  54. package/dist/index.d.ts +221 -21
  55. package/dist/index.mjs +16036 -15771
  56. package/dist/lazy.cjs +1 -1
  57. package/dist/lazy.mjs +18 -18
  58. package/dist/navigation.cjs +1 -1
  59. package/dist/navigation.d.ts +42 -3
  60. package/dist/navigation.mjs +2 -2
  61. package/dist/no-code-Bt7SWzsN.js +8318 -0
  62. package/dist/no-code-DnT061qn.cjs +331 -0
  63. package/dist/no-code.cjs +1 -1
  64. package/dist/no-code.mjs +1 -1
  65. package/dist/style.css +1 -1
  66. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,121 @@
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
+
73
+ ## 1.3.8
74
+
75
+ ### Patch Changes
76
+
77
+ - d70e139: Every control whose props extend `NiceStandardProps` now puts `testId` / `data-testid` on its root element. `data-testid` wins, as in `resolveTestId`. Before, 105 of 117 dropped both, and E2E tests had to wrap them, for example `NiceAlert` in a `<div data-testid>`. Overlays carry the id on the dialog or panel, not on the backdrop. Controls that spread their other props onto the DOM no longer leak an unknown `testId` attribute.
78
+
79
+ The new `Test ids on standard controls` gate (`scripts/audit-test-ids.mjs --max=0`) keeps it that way.
80
+
81
+ - 5668e77: Requests from OmniVerk's wishlist:
82
+
83
+ - **NiceSetupWizard:** a step can set
84
+ - `canGoBack: false` (no Back button; `goPrev` / LB do nothing),
85
+ - `canProceed: false` (the main button is disabled without a validation message),
86
+ - `nextLabel` (the main button's label on that step only).
87
+
88
+ `completedSteps` shows steps as done whether or not they were visited. A new `activeStep` now
89
+ moves the wizard to that step; before, it was read only on mount, so hosts re-mounted the wizard.
90
+
91
+ - **NiceSimpleCodeEditor:** the line numbers scroll with the text. Before, only the highlight layer
92
+ followed it.
93
+ - **NicePasswordInput:** a `required: true` rule keeps the strength at `weak` while it fails, however
94
+ many other rules pass.
95
+ - **NiceCopyButton:**
96
+ - the default "Copy to clipboard" name only goes on the bare icon, so visible text names the
97
+ button itself;
98
+ - it takes `aria-label`;
99
+ - it puts its test id on the button.
100
+ - **NiceLanguagePicker / NiceThemePicker:**
101
+ - a trigger without visible text (compact: a flag or a swatch only) is named "Language: Polski" /
102
+ "Theme: Ocean", or after an explicit `aria-label`;
103
+ - the trigger always has an id, so a `label` is tied to it.
104
+
105
+ 4 new keys in the six ui dictionaries.
106
+
107
+ - **Sidebar preferences kept by the host:**
108
+ - `NiceNavShell` takes `sidebarPreferences` and `onSidebarPreferencesChange`;
109
+ - the preference pages (`preferences/*`) then read and change those instead of the library's
110
+ localStorage, and their routes are merged in even beside the host's own `sidebar`;
111
+ - the shell takes `pageMode` / `colorStyle` from them.
112
+ - **`onPreferencesChange(prefs, changed)`:** `changed` holds only the fields that change set. `prefs`
113
+ still carries the defaults of untouched fields; store `changed` on a server.
114
+
115
+ - Updated dependencies [5668e77]
116
+ - @nice2dev/i18n@1.3.8
117
+ - @nice2dev/ui-core@1.3.8
118
+
3
119
  ## 1.3.7
4
120
 
5
121
  ### Patch Changes