@nice2dev/ui 1.4.22 → 1.4.24
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 +96 -0
- package/dist/{NicePivotGrid-BshofJh1.cjs → NicePivotGrid-D53CQ2cY.cjs} +1 -1
- package/dist/charts/NiceAdvancedCharts.mjs +621 -764
- package/dist/charts/NiceBarGauge.mjs +100 -65
- package/dist/charts/NiceBullet.mjs +103 -98
- package/dist/charts/NiceChart.mjs +269 -266
- package/dist/charts/NiceChartRangeSelector.mjs +159 -0
- package/dist/charts/NiceCircularGauge.mjs +99 -70
- package/dist/charts/NiceHeatMap.mjs +140 -70
- package/dist/charts/NiceLinearGauge.mjs +168 -119
- package/dist/charts/NiceOrganizationChart.mjs +183 -90
- package/dist/charts/NicePieChart.mjs +94 -49
- package/dist/charts/NicePolarChart.mjs +2 -2
- package/dist/charts/NiceSankey.mjs +166 -93
- package/dist/charts/NiceStockChart.mjs +258 -157
- package/dist/charts-CSgOgfES.cjs +867 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.d.ts +150 -104
- package/dist/charts.mjs +22 -24
- package/dist/core/lazy.mjs +50 -63
- package/dist/core-lazy-sO0xvg64.cjs +1 -0
- package/dist/data.cjs +1 -1
- package/dist/demo/docs/docPreviews.mjs +450 -466
- package/dist/demo/docs/docRegistry.mjs +5 -35
- package/dist/index.cjs +60 -67
- package/dist/index.d.ts +145 -174
- package/dist/index.mjs +831 -836
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.d.ts +49 -23
- package/dist/lazy.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tools/NiceShowcase.mjs +1 -2
- package/package.json +4 -4
- package/dist/charts/NiceRangeSelector.mjs +0 -135
- package/dist/charts/NiceTreeMap.mjs +0 -100
- package/dist/charts/NiceVectorMap.mjs +0 -59
- package/dist/charts-C3Q3r8Yz.cjs +0 -918
- package/dist/core-lazy-CUnBYI-T.cjs +0 -1
package/dist/core/lazy.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as T, jsx as r, Fragment as
|
|
2
|
-
import { useNiceTranslation as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as T, jsx as r, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { useNiceTranslation as H, NiceIcon as O } from "@nice2dev/ui-core";
|
|
3
|
+
import V, { lazy as A, useRef as z, useState as F, useEffect as h, Suspense as q } from "react";
|
|
4
|
+
const y = ({
|
|
5
5
|
height: e = 200
|
|
6
6
|
}) => /* @__PURE__ */ r(
|
|
7
7
|
"div",
|
|
@@ -31,8 +31,8 @@ const u = ({
|
|
|
31
31
|
}
|
|
32
32
|
)
|
|
33
33
|
}
|
|
34
|
-
),
|
|
35
|
-
const { t: a } =
|
|
34
|
+
), j = (e, t) => {
|
|
35
|
+
const { t: a } = H();
|
|
36
36
|
return /* @__PURE__ */ T(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
@@ -48,7 +48,7 @@ const u = ({
|
|
|
48
48
|
color: "var(--ntd-color-error, #dc2626)"
|
|
49
49
|
},
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */ r(
|
|
51
|
+
/* @__PURE__ */ r(O, { name: "error", size: 32 }),
|
|
52
52
|
/* @__PURE__ */ r("p", { style: { margin: "12px 0 8px", fontWeight: 500 }, children: a("lazy.failedToLoadComponent", "Failed to load component") }),
|
|
53
53
|
/* @__PURE__ */ r("p", { style: { margin: 0, fontSize: "0.875em", opacity: 0.8 }, children: e.message }),
|
|
54
54
|
/* @__PURE__ */ r(
|
|
@@ -72,7 +72,7 @@ const u = ({
|
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
};
|
|
75
|
-
class
|
|
75
|
+
class M extends V.Component {
|
|
76
76
|
constructor() {
|
|
77
77
|
super(...arguments), this.state = { error: null }, this.handleRetry = () => {
|
|
78
78
|
this.setState({ error: null });
|
|
@@ -87,64 +87,64 @@ class j extends O.Component {
|
|
|
87
87
|
}
|
|
88
88
|
function l(e, t = {}) {
|
|
89
89
|
const {
|
|
90
|
-
fallback: a = /* @__PURE__ */ r(
|
|
90
|
+
fallback: a = /* @__PURE__ */ r(y, {}),
|
|
91
91
|
preloadOnMount: o = !1,
|
|
92
|
-
preloadOnHover:
|
|
92
|
+
preloadOnHover: u = !1,
|
|
93
93
|
preloadAfterIdle: n,
|
|
94
|
-
minLoadingTime:
|
|
94
|
+
minLoadingTime: p = 0,
|
|
95
95
|
ssrFallback: s,
|
|
96
|
-
errorFallback: I =
|
|
96
|
+
errorFallback: I = j,
|
|
97
97
|
displayName: x
|
|
98
98
|
} = t;
|
|
99
|
-
let b = null,
|
|
100
|
-
const
|
|
99
|
+
let b = null, f = !1;
|
|
100
|
+
const m = async () => {
|
|
101
101
|
if (b)
|
|
102
102
|
return b;
|
|
103
103
|
const v = Date.now();
|
|
104
104
|
b = e();
|
|
105
105
|
const k = await b;
|
|
106
|
-
if (
|
|
106
|
+
if (p > 0) {
|
|
107
107
|
const g = Date.now() - v;
|
|
108
|
-
g <
|
|
108
|
+
g < p && await new Promise((c) => setTimeout(c, p - g));
|
|
109
109
|
}
|
|
110
|
-
return
|
|
111
|
-
}, R = A(
|
|
110
|
+
return f = !0, k;
|
|
111
|
+
}, R = A(m), D = (v) => {
|
|
112
112
|
const k = z(null);
|
|
113
|
-
return
|
|
114
|
-
o && !
|
|
115
|
-
}, []),
|
|
116
|
-
if (n && !
|
|
117
|
-
const c = "requestIdleCallback" in window ? window.requestIdleCallback(() =>
|
|
113
|
+
return h(() => {
|
|
114
|
+
o && !f && m();
|
|
115
|
+
}, []), h(() => {
|
|
116
|
+
if (n && !f) {
|
|
117
|
+
const c = "requestIdleCallback" in window ? window.requestIdleCallback(() => m(), {
|
|
118
118
|
timeout: n
|
|
119
|
-
}) : setTimeout(() =>
|
|
119
|
+
}) : setTimeout(() => m(), n);
|
|
120
120
|
return () => {
|
|
121
121
|
"cancelIdleCallback" in window ? window.cancelIdleCallback(c) : clearTimeout(c);
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
}, []),
|
|
125
|
-
if (!
|
|
124
|
+
}, []), h(() => {
|
|
125
|
+
if (!u || f)
|
|
126
126
|
return;
|
|
127
127
|
const c = k.current;
|
|
128
128
|
if (!c)
|
|
129
129
|
return;
|
|
130
|
-
const
|
|
131
|
-
|
|
130
|
+
const C = () => {
|
|
131
|
+
f || m();
|
|
132
132
|
};
|
|
133
|
-
return c.addEventListener("mouseenter",
|
|
134
|
-
}, []), typeof window > "u" && s ? /* @__PURE__ */ r(
|
|
133
|
+
return c.addEventListener("mouseenter", C, { once: !0 }), () => c.removeEventListener("mouseenter", C);
|
|
134
|
+
}, []), typeof window > "u" && s ? /* @__PURE__ */ r(P, { children: s }) : /* @__PURE__ */ r("div", { ref: k, className: "ntd-lazy-wrapper", children: /* @__PURE__ */ r(M, { fallback: I, children: /* @__PURE__ */ r(q, { fallback: a, children: /* @__PURE__ */ r(R, { ...v }) }) }) });
|
|
135
135
|
}, G = async () => {
|
|
136
|
-
|
|
136
|
+
f || await m();
|
|
137
137
|
}, w = D;
|
|
138
138
|
return w.preload = G, w.displayName = x || "LazyComponent", w;
|
|
139
139
|
}
|
|
140
140
|
function K(e = 0.1, t = "100px") {
|
|
141
|
-
const a = z(null), [o,
|
|
142
|
-
return
|
|
141
|
+
const a = z(null), [o, u] = F(!1);
|
|
142
|
+
return h(() => {
|
|
143
143
|
if (!a.current || o)
|
|
144
144
|
return;
|
|
145
145
|
const n = new IntersectionObserver(
|
|
146
|
-
([
|
|
147
|
-
|
|
146
|
+
([p]) => {
|
|
147
|
+
p.isIntersecting && (u(!0), n.disconnect());
|
|
148
148
|
},
|
|
149
149
|
{ threshold: e, rootMargin: t }
|
|
150
150
|
);
|
|
@@ -152,7 +152,7 @@ function K(e = 0.1, t = "100px") {
|
|
|
152
152
|
}, [e, t, o]), [a, o];
|
|
153
153
|
}
|
|
154
154
|
function Q(e, t = 2e3) {
|
|
155
|
-
|
|
155
|
+
h(() => {
|
|
156
156
|
if ("requestIdleCallback" in window) {
|
|
157
157
|
const a = window.requestIdleCallback(
|
|
158
158
|
() => {
|
|
@@ -171,21 +171,21 @@ function Q(e, t = 2e3) {
|
|
|
171
171
|
}
|
|
172
172
|
function U(e, t) {
|
|
173
173
|
const a = z(/* @__PURE__ */ new Set());
|
|
174
|
-
|
|
175
|
-
const o = document.querySelectorAll("a[href]"),
|
|
174
|
+
h(() => {
|
|
175
|
+
const o = document.querySelectorAll("a[href]"), u = (n) => {
|
|
176
176
|
const s = n.currentTarget.getAttribute("href");
|
|
177
177
|
s && e[s] && !a.current.has(s) && (e[s](), a.current.add(s));
|
|
178
178
|
};
|
|
179
179
|
return o.forEach((n) => {
|
|
180
|
-
n.addEventListener("mouseenter",
|
|
180
|
+
n.addEventListener("mouseenter", u);
|
|
181
181
|
}), () => {
|
|
182
182
|
o.forEach((n) => {
|
|
183
|
-
n.removeEventListener("mouseenter",
|
|
183
|
+
n.removeEventListener("mouseenter", u);
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
186
|
}, [t, e]);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const N = () => /* @__PURE__ */ r(y, { height: 400 }), S = () => /* @__PURE__ */ r(y, { height: 300 }), L = () => /* @__PURE__ */ r(y, { height: 500 }), E = () => /* @__PURE__ */ r(y, { height: 600 }), i = (e) => e, d = {
|
|
189
189
|
/**
|
|
190
190
|
* Lazy-loaded NiceCodeEditor (Monaco ~2MB)
|
|
191
191
|
*
|
|
@@ -205,7 +205,7 @@ const C = () => /* @__PURE__ */ r(u, { height: 400 }), L = () => /* @__PURE__ */
|
|
|
205
205
|
() => import("../editors/rich/NiceCodeEditor.mjs").then((e) => ({ default: e.NiceCodeEditor }))
|
|
206
206
|
),
|
|
207
207
|
{
|
|
208
|
-
fallback: /* @__PURE__ */ r(
|
|
208
|
+
fallback: /* @__PURE__ */ r(N, {}),
|
|
209
209
|
preloadOnHover: !0,
|
|
210
210
|
displayName: "LazyCodeEditor"
|
|
211
211
|
}
|
|
@@ -218,7 +218,7 @@ const C = () => /* @__PURE__ */ r(u, { height: 400 }), L = () => /* @__PURE__ */
|
|
|
218
218
|
() => import("../editors/rich/NiceHtmlEditor.mjs").then((e) => ({ default: e.NiceHtmlEditor }))
|
|
219
219
|
),
|
|
220
220
|
{
|
|
221
|
-
fallback: /* @__PURE__ */ r(
|
|
221
|
+
fallback: /* @__PURE__ */ r(N, {}),
|
|
222
222
|
preloadOnHover: !0,
|
|
223
223
|
displayName: "LazyHtmlEditor"
|
|
224
224
|
}
|
|
@@ -231,7 +231,7 @@ const C = () => /* @__PURE__ */ r(u, { height: 400 }), L = () => /* @__PURE__ */
|
|
|
231
231
|
() => import("../tools/NiceDocumentViewer.mjs").then((e) => ({ default: e.NiceDocumentViewer }))
|
|
232
232
|
),
|
|
233
233
|
{
|
|
234
|
-
fallback: /* @__PURE__ */ r(
|
|
234
|
+
fallback: /* @__PURE__ */ r(y, { height: 600 }),
|
|
235
235
|
displayName: "LazyDocumentViewer"
|
|
236
236
|
}
|
|
237
237
|
),
|
|
@@ -243,23 +243,11 @@ const C = () => /* @__PURE__ */ r(u, { height: 400 }), L = () => /* @__PURE__ */
|
|
|
243
243
|
() => import("../charts/NiceChart.mjs").then((e) => ({ default: e.NiceChart }))
|
|
244
244
|
),
|
|
245
245
|
{
|
|
246
|
-
fallback: /* @__PURE__ */ r(
|
|
246
|
+
fallback: /* @__PURE__ */ r(S, {}),
|
|
247
247
|
preloadAfterIdle: 3e3,
|
|
248
248
|
displayName: "LazyChart"
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
|
-
/**
|
|
252
|
-
* Lazy-loaded NiceVectorMap
|
|
253
|
-
*/
|
|
254
|
-
VectorMap: /* @__PURE__ */ l(
|
|
255
|
-
/* @__PURE__ */ i(
|
|
256
|
-
() => import("../charts/NiceVectorMap.mjs").then((e) => ({ default: e.NiceVectorMap }))
|
|
257
|
-
),
|
|
258
|
-
{
|
|
259
|
-
fallback: /* @__PURE__ */ r(u, { height: 400 }),
|
|
260
|
-
displayName: "LazyVectorMap"
|
|
261
|
-
}
|
|
262
|
-
),
|
|
263
251
|
/**
|
|
264
252
|
* Lazy-loaded NiceSankey
|
|
265
253
|
*/
|
|
@@ -268,7 +256,7 @@ const C = () => /* @__PURE__ */ r(u, { height: 400 }), L = () => /* @__PURE__ */
|
|
|
268
256
|
() => import("../charts/NiceSankey.mjs").then((e) => ({ default: e.NiceSankey }))
|
|
269
257
|
),
|
|
270
258
|
{
|
|
271
|
-
fallback: /* @__PURE__ */ r(
|
|
259
|
+
fallback: /* @__PURE__ */ r(S, {}),
|
|
272
260
|
displayName: "LazySankey"
|
|
273
261
|
}
|
|
274
262
|
),
|
|
@@ -304,7 +292,7 @@ const C = () => /* @__PURE__ */ r(u, { height: 400 }), L = () => /* @__PURE__ */
|
|
|
304
292
|
() => import("../data/NicePivotGrid.mjs").then((e) => ({ default: e.NicePivotGrid }))
|
|
305
293
|
),
|
|
306
294
|
{
|
|
307
|
-
fallback: /* @__PURE__ */ r(
|
|
295
|
+
fallback: /* @__PURE__ */ r(L, {}),
|
|
308
296
|
displayName: "LazyPivotGrid"
|
|
309
297
|
}
|
|
310
298
|
),
|
|
@@ -316,7 +304,7 @@ const C = () => /* @__PURE__ */ r(u, { height: 400 }), L = () => /* @__PURE__ */
|
|
|
316
304
|
() => import("../data/NiceDataGrid.mjs").then((e) => ({ default: e.NiceDataGrid }))
|
|
317
305
|
),
|
|
318
306
|
{
|
|
319
|
-
fallback: /* @__PURE__ */ r(
|
|
307
|
+
fallback: /* @__PURE__ */ r(L, {}),
|
|
320
308
|
preloadAfterIdle: 2e3,
|
|
321
309
|
displayName: "LazyDataGrid"
|
|
322
310
|
}
|
|
@@ -328,7 +316,6 @@ async function X() {
|
|
|
328
316
|
d.HtmlEditor.preload(),
|
|
329
317
|
d.DocumentViewer.preload(),
|
|
330
318
|
d.Chart.preload(),
|
|
331
|
-
d.VectorMap.preload(),
|
|
332
319
|
d.Sankey.preload(),
|
|
333
320
|
d.Scheduler.preload(),
|
|
334
321
|
d.Gantt.preload(),
|
|
@@ -339,8 +326,8 @@ async function Y(e) {
|
|
|
339
326
|
await Promise.all(e.map((t) => d[t].preload()));
|
|
340
327
|
}
|
|
341
328
|
export {
|
|
342
|
-
|
|
343
|
-
|
|
329
|
+
j as DefaultErrorFallback,
|
|
330
|
+
y as DefaultLoadingFallback,
|
|
344
331
|
d as LazyComponents,
|
|
345
332
|
l as createLazyComponent,
|
|
346
333
|
X as preloadAllHeavyComponents,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),N=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:n}=N.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(N.NiceIcon,{name:"error",size:32}),r.jsx("p",{style:{margin:"12px 0 8px",fontWeight:500},children:n("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:n("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:n=r.jsx(f,{}),preloadOnMount:l=!1,preloadOnHover:p=!1,preloadAfterIdle:a,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),R=x=>{const v=o.useRef(null);return o.useEffect(()=>{l&&!h&&y()},[]),o.useEffect(()=>{if(a&&!h){const u="requestIdleCallback"in window?window.requestIdleCallback(()=>y(),{timeout:a}):setTimeout(()=>y(),a);return()=>{"cancelIdleCallback"in window?window.cancelIdleCallback(u):clearTimeout(u)}}},[]),o.useEffect(()=>{if(!p||h)return;const u=v.current;if(!u)return;const C=()=>{h||y()};return u.addEventListener("mouseenter",C,{once:!0}),()=>u.removeEventListener("mouseenter",C)},[]),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:n,children:r.jsx(I,{...x})})})})},q=async()=>{h||await y()},k=R;return k.preload=q,k.displayName=P||"LazyComponent",k}function G(e=.1,t="100px"){const n=o.useRef(null),[l,p]=o.useState(!1);return o.useEffect(()=>{if(!n.current||l)return;const a=new IntersectionObserver(([m])=>{m.isIntersecting&&(p(!0),a.disconnect())},{threshold:e,rootMargin:t});return a.observe(n.current),()=>a.disconnect()},[e,t,l]),[n,l]}function T(e,t=2e3){o.useEffect(()=>{if("requestIdleCallback"in window){const n=window.requestIdleCallback(()=>{e.forEach(l=>l())},{timeout:t});return()=>window.cancelIdleCallback(n)}else{const n=setTimeout(()=>{e.forEach(l=>l())},t);return()=>clearTimeout(n)}},[])}function H(e,t){const n=o.useRef(new Set);o.useEffect(()=>{const l=document.querySelectorAll("a[href]"),p=a=>{const c=a.currentTarget.getAttribute("href");c&&e[c]&&!n.current.has(c)&&(e[c](),n.current.add(c))};return l.forEach(a=>{a.addEventListener("mouseenter",p)}),()=>{l.forEach(a=>{a.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-CBgbzwjx.cjs")).then(e=>({default:e.NiceCodeEditor}))),{fallback:r.jsx(z,{}),preloadOnHover:!0,displayName:"LazyCodeEditor"}),HtmlEditor:i(d(()=>Promise.resolve().then(()=>require("./NiceHtmlEditor-BEWNA_UI.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-CSgOgfES.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),{fallback:r.jsx(g,{}),preloadAfterIdle:3e3,displayName:"LazyChart"}),Sankey:i(d(()=>Promise.resolve().then(()=>require("./charts-CSgOgfES.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-Dff8fuq_.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-Drl4gvw9.cjs")).then(e=>({default:e.NiceGantt}))),{fallback:r.jsx(E,{}),displayName:"LazyGantt"}),PivotGrid:i(d(()=>Promise.resolve().then(()=>require("./NicePivotGrid-D53CQ2cY.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-Cszjz8NV.cjs")).then(e=>e.NiceDataGrid$1).then(e=>({default:e.NiceDataGrid}))),{fallback:r.jsx(j,{}),preloadAfterIdle:2e3,displayName:"LazyDataGrid"})};async function O(){await Promise.all([s.CodeEditor.preload(),s.HtmlEditor.preload(),s.DocumentViewer.preload(),s.Chart.preload(),s.Sankey.preload(),s.Scheduler.preload(),s.Gantt.preload(),s.PivotGrid.preload()])}async function F(e){await Promise.all(e.map(t=>s[t].preload()))}exports.DefaultErrorFallback=L;exports.DefaultLoadingFallback=f;exports.LazyComponents=s;exports.createLazyComponent=i;exports.preloadAllHeavyComponents=O;exports.preloadComponents=F;exports.useLazyOnVisible=G;exports.usePreloadOnIdle=T;exports.usePreloadOnRouteHint=H;
|
package/dist/data.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./NiceDataGrid-Cszjz8NV.cjs"),e=require("./NiceSavedQueryPanel-DJKEOqy5.cjs"),r=require("./NicePivotGrid-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./NiceDataGrid-Cszjz8NV.cjs"),e=require("./NiceSavedQueryPanel-DJKEOqy5.cjs"),r=require("./NicePivotGrid-D53CQ2cY.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;
|