@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/dist/charts.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./charts-C6iOu0H6.cjs");exports.CHART_COLORS=e.CHART_COLORS;exports.NiceBarGauge=e.NiceBarGauge;exports.NiceBullet=e.NiceBullet;exports.NiceChart=e.NiceChart;exports.NiceChartAI=e.NiceChartAI;exports.NiceCircularGauge=e.NiceCircularGauge;exports.NiceForecastChart=e.NiceForecastChart;exports.NiceFunnel=e.NiceFunnel;exports.NiceHeatMap=e.NiceHeatMap;exports.NiceLinearGauge=e.NiceLinearGauge;exports.NiceLiveChart=e.NiceLiveChart;exports.NiceOrganizationChart=e.NiceOrganizationChart;exports.NicePieChart=e.NicePieChart;exports.NicePolarChart=e.NicePolarChart;exports.NiceRangeSelector=e.NiceRangeSelector;exports.NiceSankey=e.NiceSankey;exports.NiceSparkline=e.NiceSparkline;exports.NiceStockChart=e.NiceStockChart;exports.NiceTreeMap=e.NiceTreeMap;exports.NiceVectorMap=e.NiceVectorMap;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./charts-B0tHOpJ7.cjs");exports.CHART_COLORS=e.CHART_COLORS;exports.NiceBarGauge=e.NiceBarGauge;exports.NiceBullet=e.NiceBullet;exports.NiceChart=e.NiceChart;exports.NiceChartAI=e.NiceChartAI;exports.NiceCircularGauge=e.NiceCircularGauge;exports.NiceForecastChart=e.NiceForecastChart;exports.NiceFunnel=e.NiceFunnel;exports.NiceHeatMap=e.NiceHeatMap;exports.NiceLinearGauge=e.NiceLinearGauge;exports.NiceLiveChart=e.NiceLiveChart;exports.NiceOrganizationChart=e.NiceOrganizationChart;exports.NicePieChart=e.NicePieChart;exports.NicePolarChart=e.NicePolarChart;exports.NiceRangeSelector=e.NiceRangeSelector;exports.NiceSankey=e.NiceSankey;exports.NiceSparkline=e.NiceSparkline;exports.NiceStockChart=e.NiceStockChart;exports.NiceTreeMap=e.NiceTreeMap;exports.NiceVectorMap=e.NiceVectorMap;
package/dist/charts.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as i, j as c, h as r, o as s, p as N, l as t, r as C, g as h, e as n, k as o, s as l, b as g, n as p, m as u, a as S, f as k, i as G, c as L, d as M, N as O } from "./charts-BYQwl_GS.js";
1
+ import { C as i, j as c, h as r, o as s, p as N, l as t, r as C, g as h, e as n, k as o, s as l, b as g, n as p, m as u, a as S, f as k, i as G, c as L, d as M, N as O } from "./charts-C3u-VyJj.js";
2
2
  export {
3
3
  i as CHART_COLORS,
4
4
  c as NiceBarGauge,
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react/jsx-runtime"),C=require("@nice2dev/ui-core"),o=require("react"),f=({height:e=200})=>r.jsx("div",{className:"ntd-lazy-loading",style:{display:"flex",alignItems:"center",justifyContent:"center",height:e,background:"var(--ntd-color-surface, #f5f5f5)",borderRadius:"var(--ntd-radius, 8px)",animation:"ntd-pulse 1.5s ease-in-out infinite"},children:r.jsx("div",{className:"ntd-lazy-loading-spinner",style:{width:24,height:24,border:"2px solid var(--ntd-color-border, #ddd)",borderTopColor:"var(--ntd-color-primary, #6366f1)",borderRadius:"50%",animation:"ntd-spin 0.8s linear infinite"}})}),L=(e,t)=>{const{t:a}=C.useNiceTranslation();return r.jsxs("div",{className:"ntd-lazy-error",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:24,background:"var(--ntd-color-error-bg, #fee2e2)",borderRadius:"var(--ntd-radius, 8px)",color:"var(--ntd-color-error, #dc2626)"},children:[r.jsx(C.NiceIcon,{name:"error",size:32}),r.jsx("p",{style:{margin:"12px 0 8px",fontWeight:500},children:a("lazy.failedToLoadComponent","Failed to load component")}),r.jsx("p",{style:{margin:0,fontSize:"0.875em",opacity:.8},children:e.message}),r.jsx("button",{onClick:t,style:{marginTop:16,padding:"8px 16px",border:"none",borderRadius:"var(--ntd-radius, 8px)",background:"var(--ntd-color-error, #dc2626)",color:"var(--nice-color-white, #fff)",cursor:"pointer",fontSize:"0.875em"},children:a("lazy.retry","Retry")})]})};class D extends o.Component{constructor(){super(...arguments),this.state={error:null},this.handleRetry=()=>{this.setState({error:null})}}static getDerivedStateFromError(t){return{error:t}}render(){return this.state.error?this.props.fallback(this.state.error,this.handleRetry):this.props.children}}function i(e,t={}){const{fallback:a=r.jsx(f,{}),preloadOnMount:l=!1,preloadOnHover:p=!1,preloadAfterIdle:n,minLoadingTime:m=0,ssrFallback:c,errorFallback:S=L,displayName:P}=t;let b=null,h=!1;const y=async()=>{if(b)return b;const x=Date.now();b=e();const v=await b;if(m>0){const w=Date.now()-x;w<m&&await new Promise(u=>setTimeout(u,m-w))}return h=!0,v},I=o.lazy(y),q=x=>{const v=o.useRef(null);return o.useEffect(()=>{l&&!h&&y()},[]),o.useEffect(()=>{if(n&&!h){const u="requestIdleCallback"in window?window.requestIdleCallback(()=>y(),{timeout:n}):setTimeout(()=>y(),n);return()=>{"cancelIdleCallback"in window?window.cancelIdleCallback(u):clearTimeout(u)}}},[]),o.useEffect(()=>{if(!p||h)return;const u=v.current;if(!u)return;const N=()=>{h||y()};return u.addEventListener("mouseenter",N,{once:!0}),()=>u.removeEventListener("mouseenter",N)},[]),typeof window>"u"&&c?r.jsx(r.Fragment,{children:c}):r.jsx("div",{ref:v,className:"ntd-lazy-wrapper",children:r.jsx(D,{fallback:S,children:r.jsx(o.Suspense,{fallback:a,children:r.jsx(I,{...x})})})})},R=async()=>{h||await y()},k=q;return k.preload=R,k.displayName=P||"LazyComponent",k}function G(e=.1,t="100px"){const a=o.useRef(null),[l,p]=o.useState(!1);return o.useEffect(()=>{if(!a.current||l)return;const n=new IntersectionObserver(([m])=>{m.isIntersecting&&(p(!0),n.disconnect())},{threshold:e,rootMargin:t});return n.observe(a.current),()=>n.disconnect()},[e,t,l]),[a,l]}function V(e,t=2e3){o.useEffect(()=>{if("requestIdleCallback"in window){const a=window.requestIdleCallback(()=>{e.forEach(l=>l())},{timeout:t});return()=>window.cancelIdleCallback(a)}else{const a=setTimeout(()=>{e.forEach(l=>l())},t);return()=>clearTimeout(a)}},[])}function T(e,t){const a=o.useRef(new Set);o.useEffect(()=>{const l=document.querySelectorAll("a[href]"),p=n=>{const c=n.currentTarget.getAttribute("href");c&&e[c]&&!a.current.has(c)&&(e[c](),a.current.add(c))};return l.forEach(n=>{n.addEventListener("mouseenter",p)}),()=>{l.forEach(n=>{n.removeEventListener("mouseenter",p)})}},[t,e])}const z=()=>r.jsx(f,{height:400}),g=()=>r.jsx(f,{height:300}),j=()=>r.jsx(f,{height:500}),E=()=>r.jsx(f,{height:600}),d=e=>e,s={CodeEditor:i(d(()=>Promise.resolve().then(()=>require("./NiceCodeEditor-D0QZW88r.cjs")).then(e=>({default:e.NiceCodeEditor}))),{fallback:r.jsx(z,{}),preloadOnHover:!0,displayName:"LazyCodeEditor"}),HtmlEditor:i(d(()=>Promise.resolve().then(()=>require("./NiceHtmlEditor-CBCJdjmy.cjs")).then(e=>({default:e.NiceHtmlEditor}))),{fallback:r.jsx(z,{}),preloadOnHover:!0,displayName:"LazyHtmlEditor"}),DocumentViewer:i(d(()=>Promise.resolve().then(()=>require("./NiceDocumentViewer-CDXAmPp7.cjs")).then(e=>({default:e.NiceDocumentViewer}))),{fallback:r.jsx(f,{height:600}),displayName:"LazyDocumentViewer"}),Chart:i(d(()=>Promise.resolve().then(()=>require("./charts-B0tHOpJ7.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),{fallback:r.jsx(g,{}),preloadAfterIdle:3e3,displayName:"LazyChart"}),VectorMap:i(d(()=>Promise.resolve().then(()=>require("./charts-B0tHOpJ7.cjs")).then(e=>e.NiceVectorMap$1).then(e=>({default:e.NiceVectorMap}))),{fallback:r.jsx(f,{height:400}),displayName:"LazyVectorMap"}),Sankey:i(d(()=>Promise.resolve().then(()=>require("./charts-B0tHOpJ7.cjs")).then(e=>e.NiceSankey$1).then(e=>({default:e.NiceSankey}))),{fallback:r.jsx(g,{}),displayName:"LazySankey"}),Scheduler:i(d(()=>Promise.resolve().then(()=>require("./NiceScheduler-CeYqH0Ux.cjs")).then(e=>e.NiceScheduler$1).then(e=>({default:e.NiceScheduler}))),{fallback:r.jsx(E,{}),displayName:"LazyScheduler"}),Gantt:i(d(()=>Promise.resolve().then(()=>require("./NiceGantt-s2cgt5zD.cjs")).then(e=>({default:e.NiceGantt}))),{fallback:r.jsx(E,{}),displayName:"LazyGantt"}),PivotGrid:i(d(()=>Promise.resolve().then(()=>require("./NicePivotGrid-CpsBxUhq.cjs")).then(e=>e.NicePivotGrid$1).then(e=>({default:e.NicePivotGrid}))),{fallback:r.jsx(j,{}),displayName:"LazyPivotGrid"}),DataGrid:i(d(()=>Promise.resolve().then(()=>require("./NiceDataGrid-C_E6zIGS.cjs")).then(e=>e.NiceDataGrid$1).then(e=>({default:e.NiceDataGrid}))),{fallback:r.jsx(j,{}),preloadAfterIdle:2e3,displayName:"LazyDataGrid"})};async function H(){await Promise.all([s.CodeEditor.preload(),s.HtmlEditor.preload(),s.DocumentViewer.preload(),s.Chart.preload(),s.VectorMap.preload(),s.Sankey.preload(),s.Scheduler.preload(),s.Gantt.preload(),s.PivotGrid.preload()])}async function O(e){await Promise.all(e.map(t=>s[t].preload()))}exports.DefaultErrorFallback=L;exports.DefaultLoadingFallback=f;exports.LazyComponents=s;exports.createLazyComponent=i;exports.preloadAllHeavyComponents=H;exports.preloadComponents=O;exports.useLazyOnVisible=G;exports.usePreloadOnIdle=V;exports.usePreloadOnRouteHint=T;
@@ -0,0 +1,351 @@
1
+ import { jsxs as T, jsx as t, Fragment as V } from "react/jsx-runtime";
2
+ import { useNiceTranslation as P, NiceIcon as H } from "@nice2dev/ui-core";
3
+ import O, { lazy as A, useRef as z, useState as F, useEffect as y, Suspense as M } from "react";
4
+ const u = ({
5
+ height: e = 200
6
+ }) => /* @__PURE__ */ t(
7
+ "div",
8
+ {
9
+ className: "ntd-lazy-loading",
10
+ style: {
11
+ display: "flex",
12
+ alignItems: "center",
13
+ justifyContent: "center",
14
+ height: e,
15
+ background: "var(--ntd-color-surface, #f5f5f5)",
16
+ borderRadius: "var(--ntd-radius, 8px)",
17
+ animation: "ntd-pulse 1.5s ease-in-out infinite"
18
+ },
19
+ children: /* @__PURE__ */ t(
20
+ "div",
21
+ {
22
+ className: "ntd-lazy-loading-spinner",
23
+ style: {
24
+ width: 24,
25
+ height: 24,
26
+ border: "2px solid var(--ntd-color-border, #ddd)",
27
+ borderTopColor: "var(--ntd-color-primary, #6366f1)",
28
+ borderRadius: "50%",
29
+ animation: "ntd-spin 0.8s linear infinite"
30
+ }
31
+ }
32
+ )
33
+ }
34
+ ), q = (e, r) => {
35
+ const { t: a } = P();
36
+ return /* @__PURE__ */ T(
37
+ "div",
38
+ {
39
+ className: "ntd-lazy-error",
40
+ style: {
41
+ display: "flex",
42
+ flexDirection: "column",
43
+ alignItems: "center",
44
+ justifyContent: "center",
45
+ padding: 24,
46
+ background: "var(--ntd-color-error-bg, #fee2e2)",
47
+ borderRadius: "var(--ntd-radius, 8px)",
48
+ color: "var(--ntd-color-error, #dc2626)"
49
+ },
50
+ children: [
51
+ /* @__PURE__ */ t(H, { name: "error", size: 32 }),
52
+ /* @__PURE__ */ t("p", { style: { margin: "12px 0 8px", fontWeight: 500 }, children: a("lazy.failedToLoadComponent", "Failed to load component") }),
53
+ /* @__PURE__ */ t("p", { style: { margin: 0, fontSize: "0.875em", opacity: 0.8 }, children: e.message }),
54
+ /* @__PURE__ */ t(
55
+ "button",
56
+ {
57
+ onClick: r,
58
+ style: {
59
+ marginTop: 16,
60
+ padding: "8px 16px",
61
+ border: "none",
62
+ borderRadius: "var(--ntd-radius, 8px)",
63
+ background: "var(--ntd-color-error, #dc2626)",
64
+ color: "var(--nice-color-white, #fff)",
65
+ cursor: "pointer",
66
+ fontSize: "0.875em"
67
+ },
68
+ children: a("lazy.retry", "Retry")
69
+ }
70
+ )
71
+ ]
72
+ }
73
+ );
74
+ };
75
+ class j extends O.Component {
76
+ constructor() {
77
+ super(...arguments), this.state = { error: null }, this.handleRetry = () => {
78
+ this.setState({ error: null });
79
+ };
80
+ }
81
+ static getDerivedStateFromError(r) {
82
+ return { error: r };
83
+ }
84
+ render() {
85
+ return this.state.error ? this.props.fallback(this.state.error, this.handleRetry) : this.props.children;
86
+ }
87
+ }
88
+ function l(e, r = {}) {
89
+ const {
90
+ fallback: a = /* @__PURE__ */ t(u, {}),
91
+ preloadOnMount: o = !1,
92
+ preloadOnHover: p = !1,
93
+ preloadAfterIdle: n,
94
+ minLoadingTime: f = 0,
95
+ ssrFallback: s,
96
+ errorFallback: I = q,
97
+ displayName: x
98
+ } = r;
99
+ let b = null, m = !1;
100
+ const h = async () => {
101
+ if (b)
102
+ return b;
103
+ const v = Date.now();
104
+ b = e();
105
+ const k = await b;
106
+ if (f > 0) {
107
+ const g = Date.now() - v;
108
+ g < f && await new Promise((c) => setTimeout(c, f - g));
109
+ }
110
+ return m = !0, k;
111
+ }, D = A(h), R = (v) => {
112
+ const k = z(null);
113
+ return y(() => {
114
+ o && !m && h();
115
+ }, []), y(() => {
116
+ if (n && !m) {
117
+ const c = "requestIdleCallback" in window ? window.requestIdleCallback(() => h(), {
118
+ timeout: n
119
+ }) : setTimeout(() => h(), n);
120
+ return () => {
121
+ "cancelIdleCallback" in window ? window.cancelIdleCallback(c) : clearTimeout(c);
122
+ };
123
+ }
124
+ }, []), y(() => {
125
+ if (!p || m)
126
+ return;
127
+ const c = k.current;
128
+ if (!c)
129
+ return;
130
+ const N = () => {
131
+ m || h();
132
+ };
133
+ return c.addEventListener("mouseenter", N, { once: !0 }), () => c.removeEventListener("mouseenter", N);
134
+ }, []), typeof window > "u" && s ? /* @__PURE__ */ t(V, { children: s }) : /* @__PURE__ */ t("div", { ref: k, className: "ntd-lazy-wrapper", children: /* @__PURE__ */ t(j, { fallback: I, children: /* @__PURE__ */ t(M, { fallback: a, children: /* @__PURE__ */ t(D, { ...v }) }) }) });
135
+ }, G = async () => {
136
+ m || await h();
137
+ }, w = R;
138
+ return w.preload = G, w.displayName = x || "LazyComponent", w;
139
+ }
140
+ function K(e = 0.1, r = "100px") {
141
+ const a = z(null), [o, p] = F(!1);
142
+ return y(() => {
143
+ if (!a.current || o)
144
+ return;
145
+ const n = new IntersectionObserver(
146
+ ([f]) => {
147
+ f.isIntersecting && (p(!0), n.disconnect());
148
+ },
149
+ { threshold: e, rootMargin: r }
150
+ );
151
+ return n.observe(a.current), () => n.disconnect();
152
+ }, [e, r, o]), [a, o];
153
+ }
154
+ function Q(e, r = 2e3) {
155
+ y(() => {
156
+ if ("requestIdleCallback" in window) {
157
+ const a = window.requestIdleCallback(
158
+ () => {
159
+ e.forEach((o) => o());
160
+ },
161
+ { timeout: r }
162
+ );
163
+ return () => window.cancelIdleCallback(a);
164
+ } else {
165
+ const a = setTimeout(() => {
166
+ e.forEach((o) => o());
167
+ }, r);
168
+ return () => clearTimeout(a);
169
+ }
170
+ }, []);
171
+ }
172
+ function U(e, r) {
173
+ const a = z(/* @__PURE__ */ new Set());
174
+ y(() => {
175
+ const o = document.querySelectorAll("a[href]"), p = (n) => {
176
+ const s = n.currentTarget.getAttribute("href");
177
+ s && e[s] && !a.current.has(s) && (e[s](), a.current.add(s));
178
+ };
179
+ return o.forEach((n) => {
180
+ n.addEventListener("mouseenter", p);
181
+ }), () => {
182
+ o.forEach((n) => {
183
+ n.removeEventListener("mouseenter", p);
184
+ });
185
+ };
186
+ }, [r, e]);
187
+ }
188
+ const C = () => /* @__PURE__ */ t(u, { height: 400 }), L = () => /* @__PURE__ */ t(u, { height: 300 }), S = () => /* @__PURE__ */ t(u, { height: 500 }), E = () => /* @__PURE__ */ t(u, { height: 600 }), i = (e) => e, d = {
189
+ /**
190
+ * Lazy-loaded NiceCodeEditor (Monaco ~2MB)
191
+ *
192
+ * @example
193
+ * ```tsx
194
+ * import { LazyComponents } from '@nice2dev/ui';
195
+ *
196
+ * <LazyComponents.CodeEditor
197
+ * value={code}
198
+ * language="typescript"
199
+ * onChange={setCode}
200
+ * />
201
+ * ```
202
+ */
203
+ CodeEditor: /* @__PURE__ */ l(
204
+ /* @__PURE__ */ i(
205
+ () => import("./NiceCodeEditor-B5YtKZOe.js").then((e) => ({ default: e.NiceCodeEditor }))
206
+ ),
207
+ {
208
+ fallback: /* @__PURE__ */ t(C, {}),
209
+ preloadOnHover: !0,
210
+ displayName: "LazyCodeEditor"
211
+ }
212
+ ),
213
+ /**
214
+ * Lazy-loaded NiceHtmlEditor
215
+ */
216
+ HtmlEditor: /* @__PURE__ */ l(
217
+ /* @__PURE__ */ i(
218
+ () => import("./NiceHtmlEditor-DfkdSxL3.js").then((e) => ({ default: e.NiceHtmlEditor }))
219
+ ),
220
+ {
221
+ fallback: /* @__PURE__ */ t(C, {}),
222
+ preloadOnHover: !0,
223
+ displayName: "LazyHtmlEditor"
224
+ }
225
+ ),
226
+ /**
227
+ * Lazy-loaded NiceDocumentViewer
228
+ */
229
+ DocumentViewer: /* @__PURE__ */ l(
230
+ /* @__PURE__ */ i(
231
+ () => import("./NiceDocumentViewer-B9VIVKyw.js").then((e) => ({ default: e.NiceDocumentViewer }))
232
+ ),
233
+ {
234
+ fallback: /* @__PURE__ */ t(u, { height: 600 }),
235
+ displayName: "LazyDocumentViewer"
236
+ }
237
+ ),
238
+ /**
239
+ * Lazy-loaded NiceChart
240
+ */
241
+ Chart: /* @__PURE__ */ l(
242
+ /* @__PURE__ */ i(
243
+ () => import("./charts-C3u-VyJj.js").then((e) => e.A).then((e) => ({ default: e.NiceChart }))
244
+ ),
245
+ {
246
+ fallback: /* @__PURE__ */ t(L, {}),
247
+ preloadAfterIdle: 3e3,
248
+ displayName: "LazyChart"
249
+ }
250
+ ),
251
+ /**
252
+ * Lazy-loaded NiceVectorMap
253
+ */
254
+ VectorMap: /* @__PURE__ */ l(
255
+ /* @__PURE__ */ i(
256
+ () => import("./charts-C3u-VyJj.js").then((e) => e.E).then((e) => ({ default: e.NiceVectorMap }))
257
+ ),
258
+ {
259
+ fallback: /* @__PURE__ */ t(u, { height: 400 }),
260
+ displayName: "LazyVectorMap"
261
+ }
262
+ ),
263
+ /**
264
+ * Lazy-loaded NiceSankey
265
+ */
266
+ Sankey: /* @__PURE__ */ l(
267
+ /* @__PURE__ */ i(
268
+ () => import("./charts-C3u-VyJj.js").then((e) => e.B).then((e) => ({ default: e.NiceSankey }))
269
+ ),
270
+ {
271
+ fallback: /* @__PURE__ */ t(L, {}),
272
+ displayName: "LazySankey"
273
+ }
274
+ ),
275
+ /**
276
+ * Lazy-loaded NiceScheduler
277
+ */
278
+ Scheduler: /* @__PURE__ */ l(
279
+ /* @__PURE__ */ i(
280
+ () => import("./NiceScheduler-yTpVRxfe.js").then((e) => e.d).then((e) => ({ default: e.NiceScheduler }))
281
+ ),
282
+ {
283
+ fallback: /* @__PURE__ */ t(E, {}),
284
+ displayName: "LazyScheduler"
285
+ }
286
+ ),
287
+ /**
288
+ * Lazy-loaded NiceGantt
289
+ */
290
+ Gantt: /* @__PURE__ */ l(
291
+ /* @__PURE__ */ i(
292
+ () => import("./NiceGantt-TEXbAELi.js").then((e) => ({ default: e.NiceGantt }))
293
+ ),
294
+ {
295
+ fallback: /* @__PURE__ */ t(E, {}),
296
+ displayName: "LazyGantt"
297
+ }
298
+ ),
299
+ /**
300
+ * Lazy-loaded NicePivotGrid
301
+ */
302
+ PivotGrid: /* @__PURE__ */ l(
303
+ /* @__PURE__ */ i(
304
+ () => import("./NicePivotGrid-99ZeQ9j6.js").then((e) => e.p).then((e) => ({ default: e.NicePivotGrid }))
305
+ ),
306
+ {
307
+ fallback: /* @__PURE__ */ t(S, {}),
308
+ displayName: "LazyPivotGrid"
309
+ }
310
+ ),
311
+ /**
312
+ * Lazy-loaded NiceDataGrid (for very heavy usage)
313
+ */
314
+ DataGrid: /* @__PURE__ */ l(
315
+ /* @__PURE__ */ i(
316
+ () => import("./NiceDataGrid-BSaBBoNr.js").then((e) => e.h).then((e) => ({ default: e.NiceDataGrid }))
317
+ ),
318
+ {
319
+ fallback: /* @__PURE__ */ t(S, {}),
320
+ preloadAfterIdle: 2e3,
321
+ displayName: "LazyDataGrid"
322
+ }
323
+ )
324
+ };
325
+ async function X() {
326
+ await Promise.all([
327
+ d.CodeEditor.preload(),
328
+ d.HtmlEditor.preload(),
329
+ d.DocumentViewer.preload(),
330
+ d.Chart.preload(),
331
+ d.VectorMap.preload(),
332
+ d.Sankey.preload(),
333
+ d.Scheduler.preload(),
334
+ d.Gantt.preload(),
335
+ d.PivotGrid.preload()
336
+ ]);
337
+ }
338
+ async function Y(e) {
339
+ await Promise.all(e.map((r) => d[r].preload()));
340
+ }
341
+ export {
342
+ q as D,
343
+ d as L,
344
+ u as a,
345
+ Y as b,
346
+ l as c,
347
+ Q as d,
348
+ U as e,
349
+ X as p,
350
+ K as u
351
+ };
package/dist/data.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./NiceDataGrid-jZvzaCv3.cjs"),e=require("./NiceSavedQueryPanel-DTSOHW2v.cjs"),r=require("./NicePivotGrid-DqluEkCI.cjs");exports.NiceDataGrid=i.NiceDataGrid;exports.applyColumnOrder=i.applyColumnOrder;exports.buildColumnGroupSegments=i.buildColumnGroupSegments;exports.buildGridState=i.buildGridState;exports.computeAggregate=i.computeAggregate;exports.escapeCsvField=i.escapeCsvField;exports.formatNumberPattern=i.formatNumberPattern;exports.measureColumnContentWidth=i.measureColumnContentWidth;exports.readStoredGridState=i.readStoredGridState;exports.writeStoredGridState=i.writeStoredGridState;exports.NiceDataGridAI=e.NiceDataGridAI;exports.NiceKanbanBoard=e.NiceKanbanBoard;exports.NiceList=e.NiceList;exports.NiceModuleGrid=e.NiceModuleGrid;exports.NiceReconciliationView=e.NiceReconciliationView;exports.NiceSavedQueryPanel=e.NiceSavedQueryPanel;exports.NiceSpreadsheet=e.NiceSpreadsheet;exports.NiceTable=e.NiceTable;exports.NiceTileView=e.NiceTileView;exports.NiceTreeGrid=e.NiceTreeGrid;exports.NiceTreeList=e.NiceTreeList;exports.NiceTreeView=e.NiceTreeView;exports.NicePivotGrid=r.NicePivotGrid;exports.NicePivotGridFieldChooser=r.NicePivotGridFieldChooser;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./NiceDataGrid-C_E6zIGS.cjs"),e=require("./NiceSavedQueryPanel-B8hVgWR2.cjs"),r=require("./NicePivotGrid-CpsBxUhq.cjs");exports.NiceDataGrid=i.NiceDataGrid;exports.applyColumnOrder=i.applyColumnOrder;exports.buildColumnGroupSegments=i.buildColumnGroupSegments;exports.buildGridState=i.buildGridState;exports.computeAggregate=i.computeAggregate;exports.escapeCsvField=i.escapeCsvField;exports.formatNumberPattern=i.formatNumberPattern;exports.measureColumnContentWidth=i.measureColumnContentWidth;exports.readStoredGridState=i.readStoredGridState;exports.writeStoredGridState=i.writeStoredGridState;exports.NiceDataGridAI=e.NiceDataGridAI;exports.NiceKanbanBoard=e.NiceKanbanBoard;exports.NiceList=e.NiceList;exports.NiceModuleGrid=e.NiceModuleGrid;exports.NiceReconciliationView=e.NiceReconciliationView;exports.NiceSavedQueryPanel=e.NiceSavedQueryPanel;exports.NiceSpreadsheet=e.NiceSpreadsheet;exports.NiceTable=e.NiceTable;exports.NiceTileView=e.NiceTileView;exports.NiceTreeGrid=e.NiceTreeGrid;exports.NiceTreeList=e.NiceTreeList;exports.NiceTreeView=e.NiceTreeView;exports.NicePivotGrid=r.NicePivotGrid;exports.NicePivotGridFieldChooser=r.NicePivotGridFieldChooser;
package/dist/data.d.ts CHANGED
@@ -7,6 +7,7 @@ import { NiceComponentTutorial } from '@nice2dev/ui-core';
7
7
  import { NiceDataSource } from '@nice2dev/ui-core';
8
8
  import { NiceFilterGroup } from '@nice2dev/ui-core';
9
9
  import { NiceSize } from '@nice2dev/ui-core';
10
+ import { NiceStandardProps } from '@nice2dev/ui-core';
10
11
  import { ReactNode } from 'react';
11
12
  import { RefAttributes } from 'react';
12
13
  import { TracelessMode } from '@nice2dev/ui-core';
@@ -1651,6 +1652,33 @@ export declare interface NiceTileViewProps<T extends NiceTileViewItem = NiceTile
1651
1652
  emptyText?: string;
1652
1653
  }
1653
1654
 
1655
+ /**
1656
+ * treeCheck — the check state of a tree with cascading checkboxes, shared by NiceTreeGrid,
1657
+ * NiceTreeList and NiceTreeView.
1658
+ *
1659
+ * - A **check node** is a node that can carry a checkbox (`isCheckable`, default true).
1660
+ * - A **check leaf** is a check node without check nodes below it — a module whose children are
1661
+ * only informational rows is a leaf. The check state lives on the leaves; every other node's
1662
+ * state is derived from the leaves below it: checked when all are, indeterminate when some are.
1663
+ * - A node that is **not checkable** never has a checkbox and is never emitted. Above check
1664
+ * nodes (a group header) it is transparent: its ancestors count the leaves below it.
1665
+ * - A **locked** leaf (disabled, or below a disabled node with `inheritDisabled`) keeps its
1666
+ * state when an ancestor is toggled. A parent still shows checked only when all its leaves are,
1667
+ * locked ones included.
1668
+ *
1669
+ * The leaves of every node form one contiguous slice of `index.leaves` (pre-order), so states
1670
+ * and counts are O(1) from a prefix sum; building the index and emitting keys are O(n).
1671
+ */
1672
+ export declare type NiceTreeCheckState = 'checked' | 'unchecked' | 'indeterminate';
1673
+
1674
+ /**
1675
+ * Which keys a checked tree reports:
1676
+ * - `'all'` — every check node whose leaves are all checked (parents and leaves);
1677
+ * - `'leaves'` — only the checked leaves;
1678
+ * - `'parents'` — the topmost fully checked nodes (a fully checked parent stands for its subtree).
1679
+ */
1680
+ export declare type NiceTreeCheckStrategy = 'all' | 'leaves' | 'parents';
1681
+
1654
1682
  /** A context-menu action for {@link NiceTreeView} nodes. */
1655
1683
  declare interface NiceTreeContextMenuItem {
1656
1684
  /** Unique key. */
@@ -1663,16 +1691,31 @@ declare interface NiceTreeContextMenuItem {
1663
1691
  disabled?: boolean;
1664
1692
  }
1665
1693
 
1666
- export declare function NiceTreeGrid<T extends NiceTreeGridNode>({ columns, data, keyField, parentKeyField, nested, childrenField, expandedKeys: controlledExpanded, onExpandedChange, defaultExpandAll, sortable, sortField: controlledSortField, sortDirection: controlledSortDir, onSort, selectable, selectedKeys: controlledSelected, onSelectionChange, searchable, searchPlaceholder, striped, compact, size, loading, disabled, readOnly, error, emptyText, toolbar, onRowClick, className, style, }: NiceTreeGridProps<T>): default_2.JSX.Element;
1694
+ export declare function NiceTreeGrid<T extends NiceTreeGridNode>({ columns, data, keyField, parentKeyField, nested, childrenField, expandedKeys: controlledExpanded, defaultExpandedKeys, onExpandedChange, defaultExpandAll, sortable, sortField: controlledSortField, sortDirection: controlledSortDir, onSort, selectable, selectedKeys: controlledSelected, onSelectionChange, checkable, checkedKeys, defaultCheckedKeys, onCheckedChange, checkStrategy, isRowCheckable, isRowDisabled, checkboxPlacement, checkOnRowClick, showCheckedCount, showSelectAll, showOnlyChecked: controlledOnlyChecked, defaultShowOnlyChecked, onShowOnlyCheckedChange, toolbarActions, searchable, searchPlaceholder, searchText, defaultSearchText, onSearchChange, searchFields, searchFilter, searchKeepDescendants, searchAutoExpand, highlightMatches, rowClassName, getRowLabel, virtualScroll, rowHeight, height, striped, compact, size, loading, disabled, readOnly, error, emptyText, toolbar, onRowClick, className, style, id, testId, 'data-testid': dataTestId, accessMode, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: NiceTreeGridProps<T>): default_2.JSX.Element | null;
1695
+
1696
+ /** What changed in a {@link NiceTreeGrid} check — the second argument of `onCheckedChange`. */
1697
+ export declare interface NiceTreeGridCheckInfo<T = NiceTreeGridNode> {
1698
+ /** A row's checkbox (or Space / a row click), the header's "select all", or "clear selection". */
1699
+ source: 'row' | 'selectAll' | 'clear';
1700
+ /** Whether rows went on. */
1701
+ checked: boolean;
1702
+ /** The toggled row (source `'row'`). */
1703
+ key?: string;
1704
+ row?: T;
1705
+ /** The checked leaves, whatever `checkStrategy` reports. */
1706
+ leafKeys: string[];
1707
+ /** Rows with checkboxes that are partly checked. */
1708
+ halfCheckedKeys: string[];
1709
+ }
1667
1710
 
1668
1711
  /** A row node in the {@link NiceTreeGrid} (supports index-signature for dynamic fields). */
1669
1712
  export declare interface NiceTreeGridNode {
1670
1713
  [field: string]: unknown;
1671
1714
  }
1672
1715
 
1673
- /** Props for the {@link NiceTreeGrid} component — a hierarchical data grid with sorting, selection, search, and NiceDataGrid column features. */
1674
- export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTreeGridNode> extends NiceBaseProps {
1675
- /** Column definitions (reuses NiceDataGridColumn). */
1716
+ /** Props for the {@link NiceTreeGrid} component — a hierarchical data grid with sorting, selection, cascading checkboxes, search, and NiceDataGrid column features. */
1717
+ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTreeGridNode> extends NiceStandardProps {
1718
+ /** Column definitions (reuses NiceDataGridColumn). The tree (indent, expander, checkbox) sits in the first one. */
1676
1719
  columns?: NiceDataGridColumn<T>[];
1677
1720
  /** Row data. */
1678
1721
  data?: T[];
@@ -1686,9 +1729,11 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
1686
1729
  childrenField?: string;
1687
1730
  /** Currently expanded keys. */
1688
1731
  expandedKeys?: string[];
1689
- /** Called when expanded keys change. */
1732
+ /** Rows expanded until the user expands or collapses one (uncontrolled). */
1733
+ defaultExpandedKeys?: string[];
1734
+ /** Called when expanded keys change. Not called for the rows a search opens. */
1690
1735
  onExpandedChange?: (keys: string[]) => void;
1691
- /** Expand all nodes by default. */
1736
+ /** Expand all nodes by default — also rows that arrive later, until the user toggles one. */
1692
1737
  defaultExpandAll?: boolean;
1693
1738
  /** Enable sorting. */
1694
1739
  sortable?: boolean;
@@ -1698,16 +1743,92 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
1698
1743
  sortDirection?: SortDirection;
1699
1744
  /** Called when sort changes. */
1700
1745
  onSort?: (field: string, direction: SortDirection) => void;
1701
- /** Enable row selection. */
1746
+ /**
1747
+ * Enable flat row selection: a checkbox per row, no cascade. With `checkable` the checkbox
1748
+ * belongs to the check and a row click toggles this selection (row highlight).
1749
+ */
1702
1750
  selectable?: boolean;
1703
1751
  /** Currently selected keys. */
1704
1752
  selectedKeys?: Set<string>;
1705
1753
  /** Called when selection changes. */
1706
1754
  onSelectionChange?: (keys: Set<string>) => void;
1755
+ /**
1756
+ * Cascading checkboxes: checking a parent checks every row below it, a parent shows checked
1757
+ * when all rows below it are and indeterminate when some are.
1758
+ */
1759
+ checkable?: boolean;
1760
+ /** Checked keys (controlled). A parent key checks its whole subtree. */
1761
+ checkedKeys?: string[];
1762
+ /** Checked keys at mount (uncontrolled). */
1763
+ defaultCheckedKeys?: string[];
1764
+ /** Called with the checked keys (see `checkStrategy`) and what changed. */
1765
+ onCheckedChange?: (keys: string[], info: NiceTreeGridCheckInfo<T>) => void;
1766
+ /**
1767
+ * Which keys `onCheckedChange` reports: `'all'` (default) every fully checked row, parents
1768
+ * included; `'leaves'` only the checked rows with no checkboxes below them; `'parents'` the
1769
+ * topmost fully checked rows. Keys of rows not in `data` are kept.
1770
+ */
1771
+ checkStrategy?: NiceTreeCheckStrategy;
1772
+ /**
1773
+ * `false` makes a row informational: no checkbox, never reported. Above checkable rows it is a
1774
+ * group header its ancestors count through; below a checkable row (a module's categories) the
1775
+ * checkable row counts as a leaf.
1776
+ */
1777
+ isRowCheckable?: (row: T) => boolean;
1778
+ /** `true` locks a row and every row below it: their checks keep their state. */
1779
+ isRowDisabled?: (row: T) => boolean;
1780
+ /** Where the checkboxes go: after the expander in the tree column (default) or a column of their own. */
1781
+ checkboxPlacement?: 'tree' | 'column';
1782
+ /** A row click toggles the row's checkbox. */
1783
+ checkOnRowClick?: boolean;
1784
+ /** Show a "checked / total" badge on rows with checkboxes below them. */
1785
+ showCheckedCount?: boolean;
1786
+ /** A "select all" checkbox in the header — while searching, it acts on the results. Default true. */
1787
+ showSelectAll?: boolean;
1788
+ /** Show only the checked rows (controlled). */
1789
+ showOnlyChecked?: boolean;
1790
+ /** Show only the checked rows at mount (uncontrolled). */
1791
+ defaultShowOnlyChecked?: boolean;
1792
+ /** Called when "show selected only" is switched. */
1793
+ onShowOnlyCheckedChange?: (value: boolean) => void;
1794
+ /**
1795
+ * Built-in toolbar buttons: `true` for all that apply (expand all, collapse all and — when
1796
+ * `checkable` — show selected only, clear selection), or a list of them.
1797
+ */
1798
+ toolbarActions?: boolean | NiceTreeGridToolbarAction[];
1707
1799
  /** Show a search box. */
1708
1800
  searchable?: boolean;
1709
1801
  /** Search input placeholder. */
1710
1802
  searchPlaceholder?: string;
1803
+ /** Search text (controlled). */
1804
+ searchText?: string;
1805
+ /** Search text at mount (uncontrolled). */
1806
+ defaultSearchText?: string;
1807
+ /** Called when the search text changes. */
1808
+ onSearchChange?: (text: string) => void;
1809
+ /** Fields the search looks in (default: the visible columns). */
1810
+ searchFields?: string[];
1811
+ /** Own match test, instead of a substring of `searchFields`. */
1812
+ searchFilter?: (row: T, query: string) => boolean;
1813
+ /** A matching row keeps all rows below it, not only the matching ones. */
1814
+ searchKeepDescendants?: boolean;
1815
+ /** Open the rows above every match while searching (default true); the user's own expansion comes back when the search is cleared. */
1816
+ searchAutoExpand?: boolean;
1817
+ /** Mark the matches in columns without a `render` (default true). */
1818
+ highlightMatches?: boolean;
1819
+ /** Extra class name of a row. */
1820
+ rowClassName?: string | ((row: T, index: number) => string | undefined);
1821
+ /** A row's name for its checkbox label (default: its first column's value). */
1822
+ getRowLabel?: (row: T) => string;
1823
+ /**
1824
+ * Render only the rows in view, for thousands of rows. Rows get a fixed height (`rowHeight`)
1825
+ * and long cells are cut with an ellipsis.
1826
+ */
1827
+ virtualScroll?: boolean;
1828
+ /** Row height in px with `virtualScroll` (default 36). */
1829
+ rowHeight?: number;
1830
+ /** Height of the scrolling body with `virtualScroll` (default 480). */
1831
+ height?: number | string;
1711
1832
  /** Alternate row coloring. */
1712
1833
  striped?: boolean;
1713
1834
  /** Reduced padding. */
@@ -1730,6 +1851,9 @@ export declare interface NiceTreeGridProps<T extends NiceTreeGridNode = NiceTree
1730
1851
  onRowClick?: (row: T) => void;
1731
1852
  }
1732
1853
 
1854
+ /** A built-in toolbar button of {@link NiceTreeGrid}. */
1855
+ export declare type NiceTreeGridToolbarAction = 'expandAll' | 'collapseAll' | 'onlyChecked' | 'clearChecked';
1856
+
1733
1857
  export declare function NiceTreeList<T extends NiceTreeListNode>({ columns, data, keyField, parentKeyField, expandedKeys: controlledExpanded, onExpandedChange, selectedKeys, onSelectionChange, selectable, sortable, loading, emptyText, className, style, accessMode, id, }: NiceTreeListProps<T>): default_2.JSX.Element | null;
1734
1858
 
1735
1859
  /** A tree-list node for the {@link NiceTreeList} component. */
@@ -1758,11 +1882,17 @@ export declare interface NiceTreeListProps<T extends NiceTreeListNode = NiceTree
1758
1882
  expandedKeys?: string[];
1759
1883
  /** Called when expanded keys change. */
1760
1884
  onExpandedChange?: (keys: string[]) => void;
1761
- /** Currently selected keys. */
1885
+ /**
1886
+ * Currently selected keys. A parent key selects its whole subtree. The keys handed back are every
1887
+ * fully selected row, parents included, in document order; keys of rows not in `data` are kept.
1888
+ */
1762
1889
  selectedKeys?: string[];
1763
1890
  /** Called when selection changes. */
1764
1891
  onSelectionChange?: (keys: string[]) => void;
1765
- /** Enable row selection. Checking a parent row cascades to all its descendants. */
1892
+ /**
1893
+ * Enable row selection. Checking a parent row cascades to all its descendants; a parent shows
1894
+ * checked when all its descendants are, indeterminate when some are.
1895
+ */
1766
1896
  selectable?: boolean;
1767
1897
  /** Enable column sorting (opt-in per column via `NiceDataGridColumn.sortable`). */
1768
1898
  sortable?: boolean;
@@ -1782,9 +1912,9 @@ declare interface NiceTreeNode {
1782
1912
  icon?: default_2.ReactNode;
1783
1913
  /** Child nodes. */
1784
1914
  children?: NiceTreeNode[];
1785
- /** Disable the node. */
1915
+ /** Disable the node. With cascading checkboxes, its own checkbox keeps its state. */
1786
1916
  disabled?: boolean;
1787
- /** Default expanded state. */
1917
+ /** Expanded when the tree mounts (uncontrolled `expandedKeys` only). */
1788
1918
  expanded?: boolean;
1789
1919
  /** If true, children are loaded lazily via onLoadChildren. */
1790
1920
  leaf?: boolean;
@@ -1803,7 +1933,11 @@ export declare interface NiceTreeViewProps extends NiceBaseProps {
1803
1933
  * a title bar, toolbar or count. Pass any node; omit for no header.
1804
1934
  */
1805
1935
  header?: default_2.ReactNode;
1806
- /** Currently selected node keys. */
1936
+ /**
1937
+ * Currently selected node keys. With `showCheckboxes` and `selectionMode="multiple"` the
1938
+ * checkboxes cascade: a parent key checks its subtree, and the keys handed back are every fully
1939
+ * checked node, parents included, in document order.
1940
+ */
1807
1941
  selectedKeys?: string[];
1808
1942
  /** Currently expanded node keys. */
1809
1943
  expandedKeys?: string[];
package/dist/data.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { N as i, a as r, b as s, c as t, d, e as o, f as c, m as N, r as l, w as m } from "./NiceDataGrid-Cs4vOOTE.js";
2
- import { N as u, a as G, b as p, c as S, d as b, e as f, f as C, g, h as w, i as T, j as h, k as v } from "./NiceSavedQueryPanel-Cs_dypgU.js";
3
- import { N as x, a as V } from "./NicePivotGrid-D_kRF1Dt.js";
1
+ import { N as i, a as r, b as s, c as t, d, e as o, f as c, m as N, r as l, w as m } from "./NiceDataGrid-BSaBBoNr.js";
2
+ import { N as u, a as G, b as p, c as S, d as b, e as f, f as C, g, h as w, i as T, j as h, k as v } from "./NiceSavedQueryPanel-BFtY9GOP.js";
3
+ import { N as x, a as V } from "./NicePivotGrid-99ZeQ9j6.js";
4
4
  export {
5
5
  i as NiceDataGrid,
6
6
  u as NiceDataGridAI,