@nice2dev/ui 1.0.31 → 1.1.5

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 (84) hide show
  1. package/CHANGELOG.md +353 -0
  2. package/dist/NiceCodeEditor-BVUwp9yX.js +1134 -0
  3. package/dist/NiceCodeEditor-cIqUSk3j.cjs +260 -0
  4. package/dist/NiceColorPicker-C8NZZcXE.js +596 -0
  5. package/dist/NiceColorPicker-CKVbjicN.cjs +1 -0
  6. package/dist/NiceConfirmDialog-DmBX1Iea.js +81 -0
  7. package/dist/NiceConfirmDialog-oSxVpsCs.cjs +1 -0
  8. package/dist/NiceDataGrid-3AIf2D3t.cjs +10 -0
  9. package/dist/NiceDataGrid-CXCUAkRb.js +1736 -0
  10. package/dist/NiceDocumentViewer-B-uEPZAf.js +672 -0
  11. package/dist/NiceDocumentViewer-BE0gKBlw.cjs +180 -0
  12. package/dist/NiceForm-C6F0HvrX.cjs +1 -0
  13. package/dist/NiceForm-CCyfWgIs.js +4805 -0
  14. package/dist/NiceGantt-CSFLZD2y.js +328 -0
  15. package/dist/NiceGantt-_ysNSVYR.cjs +1 -0
  16. package/dist/NiceHtmlEditor-B8B8AcSC.js +841 -0
  17. package/dist/NiceHtmlEditor-D8RQcBNp.cjs +10 -0
  18. package/dist/NiceLoginForm-Bai7aN8V.js +708 -0
  19. package/dist/NiceLoginForm-BrvIc-wq.cjs +1 -0
  20. package/dist/NiceMention-CWoLD0SE.js +11082 -0
  21. package/dist/NiceMention-J1lUDLhg.cjs +430 -0
  22. package/dist/NiceMention.css +1 -0
  23. package/dist/NiceModal-0UxviEYE.cjs +1 -0
  24. package/dist/NiceModal-D-iOonog.js +95 -0
  25. package/dist/NiceModuleLifecyclePanel-4hzDw6it.js +6999 -0
  26. package/dist/NiceModuleLifecyclePanel-Df_1k5qW.cjs +1 -0
  27. package/dist/NiceModuleLifecyclePanel.css +1 -1
  28. package/dist/NicePagination-CPn-Q1h_.js +172 -0
  29. package/dist/NicePagination-EEQ6o1dF.cjs +1 -0
  30. package/dist/NicePivotGrid-Cmiolup9.cjs +152 -0
  31. package/dist/NicePivotGrid-DX_iUj2X.js +1167 -0
  32. package/dist/NiceSavedQueryPanel-BhjFJBvn.cjs +586 -0
  33. package/dist/NiceSavedQueryPanel-KvyXTnFx.js +5129 -0
  34. package/dist/NiceScheduler-DuxPzQQZ.js +1645 -0
  35. package/dist/NiceScheduler-nW7fMzKL.cjs +5 -0
  36. package/dist/NiceSelect-BVoqtfYN.cjs +1 -0
  37. package/dist/NiceSelect-DHowflmX.js +433 -0
  38. package/dist/NiceWindow-DdD9k4nc.cjs +1 -0
  39. package/dist/NiceWindow-xnTSHdHv.js +1623 -0
  40. package/dist/charts-B-sl1V9y.cjs +882 -0
  41. package/dist/charts-DO2z6Ziu.js +31920 -0
  42. package/dist/charts.cjs +1 -1
  43. package/dist/charts.mjs +7 -7
  44. package/dist/core-C2KhqEaU.cjs +1 -0
  45. package/dist/core-K2DIxXLn.js +795 -0
  46. package/dist/data-branching-DC6hcBQN.cjs +1 -0
  47. package/dist/data-branching-DykdTpjJ.js +6255 -0
  48. package/dist/data-branching.cjs +1 -1
  49. package/dist/data-branching.mjs +1 -1
  50. package/dist/data.cjs +1 -1
  51. package/dist/data.d.ts +29 -7
  52. package/dist/data.mjs +18 -16
  53. package/dist/devops-CU0sOVEA.cjs +17 -0
  54. package/dist/devops-CXyEwQeM.js +8165 -0
  55. package/dist/devops.cjs +1 -1
  56. package/dist/devops.mjs +1 -1
  57. package/dist/editors.cjs +1 -1
  58. package/dist/editors.d.ts +73 -1
  59. package/dist/editors.mjs +58 -54
  60. package/dist/feedback.cjs +1 -1
  61. package/dist/feedback.d.ts +1 -1
  62. package/dist/feedback.mjs +3 -3
  63. package/dist/index.cjs +5137 -1
  64. package/dist/index.css +1 -1
  65. package/dist/index.d.ts +115 -13
  66. package/dist/index.mjs +66371 -992
  67. package/dist/lazy.cjs +1 -1
  68. package/dist/lazy.mjs +24 -24
  69. package/dist/navigation.cjs +1 -1
  70. package/dist/navigation.d.ts +6 -0
  71. package/dist/navigation.mjs +4 -4
  72. package/dist/no-code-C58g8_fb.cjs +332 -0
  73. package/dist/no-code-Cj4xJ3w9.js +7425 -0
  74. package/dist/no-code.cjs +1 -1
  75. package/dist/no-code.mjs +1 -1
  76. package/dist/overlays.cjs +1 -1
  77. package/dist/overlays.d.ts +2 -0
  78. package/dist/overlays.mjs +2 -2
  79. package/dist/pickerCommons-B-wOzHFh.cjs +1 -0
  80. package/dist/pickerCommons-COiSUiP2.js +1122 -0
  81. package/dist/style.css +6 -6
  82. package/dist/vendor-BPVpdtPp.js +271 -0
  83. package/dist/vendor-Bo2Q64AF.cjs +1 -0
  84. package/package.json +17 -17
package/dist/charts.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./charts-DjjKkw0q.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-B-sl1V9y.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-Bs0aDM0X.js";
1
+ import { aq as i, ab as c, a9 as r, ag as s, aH as N, ad as t, aN as C, a8 as h, a6 as n, ac as o, aS as l, a3 as g, af as u, ae as S, a2 as p, a7 as k, aa as G, a4 as H, a5 as L, a1 as M } from "./charts-DO2z6Ziu.js";
2
2
  export {
3
3
  i as CHART_COLORS,
4
4
  c as NiceBarGauge,
@@ -12,12 +12,12 @@ export {
12
12
  o as NiceLinearGauge,
13
13
  l as NiceLiveChart,
14
14
  g as NiceOrganizationChart,
15
- p as NicePieChart,
16
- u as NicePolarChart,
17
- S as NiceRangeSelector,
15
+ u as NicePieChart,
16
+ S as NicePolarChart,
17
+ p as NiceRangeSelector,
18
18
  k as NiceSankey,
19
19
  G as NiceSparkline,
20
- L as NiceStockChart,
21
- M as NiceTreeMap,
22
- O as NiceVectorMap
20
+ H as NiceStockChart,
21
+ L as NiceTreeMap,
22
+ M as NiceVectorMap
23
23
  };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react"),m=require("./charts-B-sl1V9y.cjs"),i=require("react/jsx-runtime"),q=r.createContext(null);function J({children:e,initialPolicy:o,policyEndpoint:t,instanceCeiling:s,tenantPolicy:a,groupPolicy:n,userPreference:u,instanceId:l="default",tenantId:d,onPolicyChange:h}){const[c,S]=r.useState(o||m.od),[g,R]=r.useState(u),[b,x]=r.useState(!!t),[E,p]=r.useState(null),y=r.useRef(new Map);r.useEffect(()=>{const v=s||m.hd(l),f=m.sd(v,a,n,g);S(f),h?.(f),y.current.forEach(N=>{N.updatePolicy(f)})},[s,a,n,g,l,h]),r.useEffect(()=>{if(!t)return;(async()=>{x(!0),p(null);try{const f=await fetch(t,{credentials:"include"});if(!f.ok)throw new Error(`Failed to fetch policy: ${f.status}`);const N=f.headers.get(m.fd);if(N){const M=m.md(N);if(M){const T=s||m.hd(l),H=m.sd(T,a?{...a,mode:M}:{tenantId:"default",mode:M,allowGroupOverride:!0,allowUserOverride:!0,updatedAt:Date.now()},n,g);S(H),h?.(H)}}try{const M=await f.json();M.policy&&(S(M.policy),h?.(M.policy))}catch{}}catch(f){p(f instanceof Error?f:new Error("Unknown error"))}finally{x(!1)}})()},[t,s,a,n,g,l,h]);const A=r.useCallback(v=>{R(f=>({userId:f?.userId||"anonymous",preferredMode:v.preferredMode||f?.preferredMode||"traceless",restrictCookies:v.restrictCookies??f?.restrictCookies,restrictLocalStorage:v.restrictLocalStorage??f?.restrictLocalStorage,restrictSessionStorage:v.restrictSessionStorage??f?.restrictSessionStorage,setAt:Date.now()}))},[]),k=r.useCallback(()=>m.ld(c,l,d),[c,l,d]),z=r.useCallback(()=>m.vd(c),[c]),V=r.useCallback(async()=>{if(t){x(!0);try{const v=await fetch(t,{credentials:"include",cache:"no-cache"});if(v.ok){const f=v.headers.get(m.fd);if(f){const N=m.md(f);if(N){const M=s||m.hd(l),T=m.sd(M,a?{...a,mode:N}:void 0,n,g);S(T),h?.(T)}}}}finally{x(!1)}}},[t,s,a,n,g,l,h]),G=r.useCallback((v="nice2dev")=>{let f=y.current.get(v);return f||(f=new m.an(c,v),y.current.set(v,f)),f},[c]),O=r.useMemo(()=>m.dd(c),[c]),W=r.useMemo(()=>({policy:c,canUseCookies:c.cookiesAllowed,canUseLocalStorage:c.localStorageAllowed,canUseSessionStorage:c.sessionStorageAllowed,canPersist:c.localStorageAllowed,mode:c.effectiveMode,requiresConsentBanner:c.requiresConsentBanner,badgeInfo:O,setUserPreference:A,generateReport:k,runAudit:z,refreshPolicy:V,getStorageAdapter:G,isLoading:b,error:E}),[c,O,A,k,z,V,G,b,E]);return r.createElement(q.Provider,{value:W},e)}function Q(){const e=r.useContext(q);if(!e)throw new Error("useTracelessPolicy must be used within a TracelessProvider");return e}function L(){const e=r.useContext(q);if(e)return e;const o=new m.an(m.od);return{policy:m.od,canUseCookies:!1,canUseLocalStorage:!1,canUseSessionStorage:!1,canPersist:!1,mode:"traceless",requiresConsentBanner:!1,badgeInfo:m.dd(m.od),setUserPreference:()=>{},generateReport:()=>m.ld(m.od,"default"),runAudit:()=>m.vd(m.od),refreshPolicy:async()=>{},getStorageAdapter:()=>o,isLoading:!1,error:null}}function D(e="nice2dev"){const{getStorageAdapter:o}=L();return r.useMemo(()=>o(e),[o,e])}function I(e,o,t){const s=D(t?.namespace),{canPersist:a,canUseSessionStorage:n}=L(),u=t?.storageMode==="session"?n:a,[l,d]=r.useState(()=>{if(u){const c=s.get(e,t?.storageMode);if(c!==null)return c}return o}),h=r.useCallback(c=>{d(S=>{const g=typeof c=="function"?c(S):c;return u&&s.set(e,g,t?.storageMode==="session"?"session":"local"),g})},[s,e,u,t?.storageMode]);return[l,h,u]}function X(){const{requiresConsentBanner:e,mode:o}=L(),t=D("nice2dev-consent"),[s,a]=r.useState(()=>t.get("banner-dismissed")===!0),n=r.useCallback(()=>{a(!0),t.set("banner-dismissed",!0)},[t]);return{shouldShow:e&&!s,mode:o,dismiss:n}}function Y(e=!1){const{runAudit:o}=L(),[t,s]=r.useState(null),a=r.useCallback(()=>{const n=o();return s(n),n},[o]);return r.useEffect(()=>{e&&a()},[e,a]),{result:t,run:a,isCompliant:t?.compliant??null}}function Z(){const{policy:e,getStorageAdapter:o}=L(),t=r.useMemo(()=>o("local"),[o]),s=r.useCallback(l=>t.get(l),[t]),a=r.useCallback((l,d)=>{t.set(l,d)},[t]),n=r.useCallback(l=>{t.remove(l)},[t]),u=r.useCallback(()=>{t.clear()},[t]);return r.useMemo(()=>({getItem:s,setItem:a,removeItem:n,clear:u,isAvailable:e.localStorageAllowed,effectiveMode:e.effectiveMode,policy:e}),[s,a,n,u,e])}function _(){const{policy:e,getStorageAdapter:o}=L(),t=r.useMemo(()=>o("session"),[o]),s=r.useCallback(l=>t.get(l),[t]),a=r.useCallback((l,d)=>{t.set(l,d)},[t]),n=r.useCallback(l=>{t.remove(l)},[t]),u=r.useCallback(()=>{t.clear()},[t]);return r.useMemo(()=>({getItem:s,setItem:a,removeItem:n,clear:u,isAvailable:e.sessionStorageAllowed,effectiveMode:e.effectiveMode}),[s,a,n,u,e])}function ee({storageKey:e,initialState:o={},onStateChange:t,storageType:s="auto"}){const{policy:a,getStorageAdapter:n}=L(),u=`nice-datagrid-${e}`,l=r.useMemo(()=>{if(s==="local"&&a.localStorageAllowed)return"local";if(s==="session"&&a.sessionStorageAllowed)return"session";if(s==="auto"){if(a.localStorageAllowed)return"local";if(a.sessionStorageAllowed)return"session"}return"memory"},[s,a]),d=r.useMemo(()=>n(l==="session"?"session-grid":"local-grid"),[n,l]),[h,c]=r.useState(()=>{const b=d.get(u);if(b)try{return{...o,...JSON.parse(b)}}catch{return o}return o});r.useEffect(()=>{d.set(u,JSON.stringify(h)),t?.(h)},[h,d,u,t]);const S=r.useCallback(b=>{c(x=>({...x,...b}))},[]),g=r.useCallback(()=>{d.remove(u),c(o)},[d,u,o]);return{state:h,updateState:S,setState:c,clearState:g,degraded:l==="memory",effectiveStorageType:l,policy:a}}function te({storageKey:e,autoSaveInterval:o=5e3,maxVersions:t=10}){const{policy:s,getStorageAdapter:a}=L(),n=`nice-editor-${e}`,u=`${n}-history`,l=r.useMemo(()=>a("editor"),[a]),[d,h]=I(n,null,{storageMode:s.localStorageAllowed?"local":"session"}),[c,S]=I(u,[],{storageMode:"local"}),g=r.useCallback((p,y)=>{const A={content:p,cursorPosition:y,lastModified:Date.now(),version:(d?.version??0)+1};h(A)},[d,h]),R=r.useCallback(()=>{!d||!s.localStorageAllowed||S(p=>[...p,d].slice(-t))},[d,s.localStorageAllowed,t,S]),b=r.useCallback(p=>{const y=c.find(A=>A.version===p);y&&h(y)},[c,h]),x=r.useCallback(()=>{l.remove(n),h(null)},[l,n,h]),E=r.useRef(null);return r.useEffect(()=>{if(!o||!d?.content||d.content===E.current)return;const p=setTimeout(()=>{E.current=d.content??null},o);return()=>clearTimeout(p)},[d?.content,o]),{draft:d,saveDraft:g,saveToHistory:R,restoreVersion:b,clearDraft:x,history:c,hasDraft:d!==null,degraded:!s.localStorageAllowed&&!s.sessionStorageAllowed,policy:s}}function re(e="local"){const o=D(e),t=r.useRef([]);return r.useMemo(()=>({getItem:s=>o.get(s),setItem:(s,a)=>{o.set(s,a),t.current.includes(s)||t.current.push(s)},removeItem:s=>{o.remove(s),t.current=t.current.filter(a=>a!==s)},clear:()=>{o.clear(),t.current=[]},get length(){return t.current.length},key:s=>t.current[s]??null}),[o])}function se(e){const{policy:o}=L();return r.useMemo(()=>{const t=o.cookiesAllowed&&e.cookies!==!1,s=o.localStorageAllowed&&e.localStorage!==!1,a=o.sessionStorageAllowed&&e.sessionStorage!==!1;return{cookiesAllowed:t,localStorageAllowed:s,sessionStorageAllowed:a,effectiveMode:o.effectiveMode,canPersist:s||a,degraded:!s&&!a}},[o,e.cookies,e.localStorage,e.sessionStorage])}const j=({height:e=200})=>i.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:i.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"}})}),K=(e,o)=>i.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:[i.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[i.jsx("circle",{cx:"12",cy:"12",r:"10"}),i.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),i.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),i.jsx("p",{style:{margin:"12px 0 8px",fontWeight:500},children:"Failed to load component"}),i.jsx("p",{style:{margin:0,fontSize:"0.875em",opacity:.8},children:e.message}),i.jsx("button",{onClick:o,style:{marginTop:16,padding:"8px 16px",border:"none",borderRadius:"var(--ntd-radius, 8px)",background:"var(--ntd-color-error, #dc2626)",color:"var(--bg-primary, #fff)",cursor:"pointer",fontSize:"0.875em"},children:"Retry"})]});class oe extends r.Component{constructor(){super(...arguments),this.state={error:null},this.handleRetry=()=>{this.setState({error:null})}}static getDerivedStateFromError(o){return{error:o}}render(){return this.state.error?this.props.fallback(this.state.error,this.handleRetry):this.props.children}}function w(e,o={}){const{fallback:t=i.jsx(j,{}),preloadOnMount:s=!1,preloadOnHover:a=!1,preloadAfterIdle:n,minLoadingTime:u=0,ssrFallback:l,errorFallback:d=K,displayName:h}=o;let c=null,S=!1;const g=async()=>{if(c)return c;const p=Date.now();c=e();const y=await c;if(u>0){const A=Date.now()-p;A<u&&await new Promise(k=>setTimeout(k,u-A))}return S=!0,y},R=r.lazy(g),b=p=>{const y=r.useRef(null);return r.useEffect(()=>{s&&!S&&g()},[]),r.useEffect(()=>{if(n&&!S){const k="requestIdleCallback"in window?window.requestIdleCallback(()=>g(),{timeout:n}):setTimeout(()=>g(),n);return()=>{"cancelIdleCallback"in window?window.cancelIdleCallback(k):clearTimeout(k)}}},[]),r.useEffect(()=>{if(!a||S)return;const k=y.current;if(!k)return;const z=()=>{S||g()};return k.addEventListener("mouseenter",z,{once:!0}),()=>k.removeEventListener("mouseenter",z)},[]),typeof window>"u"&&l?i.jsx(i.Fragment,{children:l}):i.jsx("div",{ref:y,className:"ntd-lazy-wrapper",children:i.jsx(oe,{fallback:d,children:i.jsx(r.Suspense,{fallback:t,children:i.jsx(R,{...p})})})})},x=async()=>{S||await g()},E=b;return E.preload=x,E.displayName=h||"LazyComponent",E}function ae(e=.1,o="100px"){const t=r.useRef(null),[s,a]=r.useState(!1);return r.useEffect(()=>{if(!t.current||s)return;const n=new IntersectionObserver(([u])=>{u.isIntersecting&&(a(!0),n.disconnect())},{threshold:e,rootMargin:o});return n.observe(t.current),()=>n.disconnect()},[e,o,s]),[t,s]}function ne(e,o=2e3){r.useEffect(()=>{if("requestIdleCallback"in window){const t=window.requestIdleCallback(()=>{e.forEach(s=>s())},{timeout:o});return()=>window.cancelIdleCallback(t)}else{const t=setTimeout(()=>{e.forEach(s=>s())},o);return()=>clearTimeout(t)}},[])}function le(e,o){const t=r.useRef(new Set);r.useEffect(()=>{const s=document.querySelectorAll("a[href]"),a=n=>{const l=n.currentTarget.getAttribute("href");l&&e[l]&&!t.current.has(l)&&(e[l](),t.current.add(l))};return s.forEach(n=>{n.addEventListener("mouseenter",a)}),()=>{s.forEach(n=>{n.removeEventListener("mouseenter",a)})}},[o,e])}const U=()=>i.jsx(j,{height:400}),$=()=>i.jsx(j,{height:300}),F=()=>i.jsx(j,{height:500}),B=()=>i.jsx(j,{height:600}),P=e=>e,C={CodeEditor:w(P(()=>Promise.resolve().then(()=>require("./NiceCodeEditor-cIqUSk3j.cjs")).then(e=>({default:e.NiceCodeEditor}))),{fallback:i.jsx(U,{}),preloadOnHover:!0,displayName:"LazyCodeEditor"}),HtmlEditor:w(P(()=>Promise.resolve().then(()=>require("./NiceHtmlEditor-D8RQcBNp.cjs")).then(e=>({default:e.NiceHtmlEditor}))),{fallback:i.jsx(U,{}),preloadOnHover:!0,displayName:"LazyHtmlEditor"}),DocumentViewer:w(P(()=>Promise.resolve().then(()=>require("./NiceDocumentViewer-BE0gKBlw.cjs")).then(e=>({default:e.NiceDocumentViewer}))),{fallback:i.jsx(j,{height:600}),displayName:"LazyDocumentViewer"}),Chart:w(P(()=>Promise.resolve().then(()=>require("./charts-B-sl1V9y.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),{fallback:i.jsx($,{}),preloadAfterIdle:3e3,displayName:"LazyChart"}),VectorMap:w(P(()=>Promise.resolve().then(()=>require("./charts-B-sl1V9y.cjs")).then(e=>e.NiceVectorMap$1).then(e=>({default:e.NiceVectorMap}))),{fallback:i.jsx(j,{height:400}),displayName:"LazyVectorMap"}),Sankey:w(P(()=>Promise.resolve().then(()=>require("./charts-B-sl1V9y.cjs")).then(e=>e.NiceSankey$1).then(e=>({default:e.NiceSankey}))),{fallback:i.jsx($,{}),displayName:"LazySankey"}),Scheduler:w(P(()=>Promise.resolve().then(()=>require("./NiceScheduler-nW7fMzKL.cjs")).then(e=>e.NiceScheduler$1).then(e=>({default:e.NiceScheduler}))),{fallback:i.jsx(B,{}),displayName:"LazyScheduler"}),Gantt:w(P(()=>Promise.resolve().then(()=>require("./NiceGantt-_ysNSVYR.cjs")).then(e=>({default:e.NiceGantt}))),{fallback:i.jsx(B,{}),displayName:"LazyGantt"}),PivotGrid:w(P(()=>Promise.resolve().then(()=>require("./NicePivotGrid-Cmiolup9.cjs")).then(e=>e.NicePivotGrid$1).then(e=>({default:e.NicePivotGrid}))),{fallback:i.jsx(F,{}),displayName:"LazyPivotGrid"}),DataGrid:w(P(()=>Promise.resolve().then(()=>require("./NiceDataGrid-3AIf2D3t.cjs")).then(e=>e.NiceDataGrid$1).then(e=>({default:e.NiceDataGrid}))),{fallback:i.jsx(F,{}),preloadAfterIdle:2e3,displayName:"LazyDataGrid"})};async function ce(){await Promise.all([C.CodeEditor.preload(),C.HtmlEditor.preload(),C.DocumentViewer.preload(),C.Chart.preload(),C.VectorMap.preload(),C.Sankey.preload(),C.Scheduler.preload(),C.Gantt.preload(),C.PivotGrid.preload()])}async function ie(e){await Promise.all(e.map(o=>C[o].preload()))}exports.DefaultErrorFallback=K;exports.DefaultLoadingFallback=j;exports.LazyComponents=C;exports.TracelessProvider=J;exports.createLazyComponent=w;exports.preloadAllHeavyComponents=ce;exports.preloadComponents=ie;exports.useCookieBannerVisibility=X;exports.useEditorStatePersistence=te;exports.useGridStatePersistence=ee;exports.useLazyOnVisible=ae;exports.usePersistedState=I;exports.usePreloadOnIdle=ne;exports.usePreloadOnRouteHint=le;exports.useResolvedStorageProps=se;exports.useStorageAdapter=D;exports.useStorageAudit=Y;exports.useTracelessLocalStorage=Z;exports.useTracelessPolicy=Q;exports.useTracelessPolicySafe=L;exports.useTracelessSessionStorage=_;exports.useTracelessStorage=re;