@nice2dev/ui 1.1.9 → 1.1.10

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 (77) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +17 -16
  3. package/dist/NiceCodeEditor-BfkH1bsZ.cjs +260 -0
  4. package/dist/NiceCodeEditor-CduGYggj.js +1179 -0
  5. package/dist/NiceColorPicker-CdUnhM-A.cjs +1 -0
  6. package/dist/NiceColorPicker-DpXwnDwL.js +598 -0
  7. package/dist/NiceConfirmDialog-B7aNRL2K.cjs +1 -0
  8. package/dist/NiceConfirmDialog-BdhWenrO.js +81 -0
  9. package/dist/NiceDataGrid-CVYEo_nv.cjs +10 -0
  10. package/dist/NiceDataGrid-D-rm4lu8.js +2217 -0
  11. package/dist/NiceDocumentViewer-BgcgLWJ3.cjs +180 -0
  12. package/dist/NiceDocumentViewer-sukmGhRx.js +672 -0
  13. package/dist/NiceForm-DVc0Xoly.js +4819 -0
  14. package/dist/NiceForm-qD_RKPYz.cjs +1 -0
  15. package/dist/NiceGantt-4UBd4uJ8.cjs +1 -0
  16. package/dist/NiceGantt-B_1lwEsp.js +328 -0
  17. package/dist/NiceHtmlEditor-Bce9Vwe1.cjs +10 -0
  18. package/dist/NiceHtmlEditor-CGRgcu2h.js +848 -0
  19. package/dist/NiceLoginForm-BTuQ0eKk.cjs +1 -0
  20. package/dist/NiceLoginForm-o1A-TBcp.js +736 -0
  21. package/dist/NiceMention-Dds9GQzk.cjs +430 -0
  22. package/dist/NiceMention-DlLXWddO.js +11268 -0
  23. package/dist/NiceModal-Dr1e3nQZ.cjs +1 -0
  24. package/dist/NiceModal-sihGCfDy.js +95 -0
  25. package/dist/NiceModuleLifecyclePanel-Du7G3-RG.js +7053 -0
  26. package/dist/NiceModuleLifecyclePanel-js1p7LIY.cjs +1 -0
  27. package/dist/NicePagination-D44waj9o.cjs +1 -0
  28. package/dist/NicePagination-DdxH8KMG.js +179 -0
  29. package/dist/NicePivotGrid-B2YHP3Z6.js +1183 -0
  30. package/dist/NicePivotGrid-BtVUWiud.cjs +152 -0
  31. package/dist/NiceSavedQueryPanel-C0A-eoYN.js +5142 -0
  32. package/dist/NiceSavedQueryPanel-ZrilZRtf.cjs +586 -0
  33. package/dist/NiceScheduler-KSzaUQxC.js +1693 -0
  34. package/dist/NiceScheduler-O3AwmdGG.cjs +5 -0
  35. package/dist/NiceSelect-BCbWtu1v.js +433 -0
  36. package/dist/NiceSelect-BqtiQbfD.cjs +1 -0
  37. package/dist/NiceWindow-BU1Ce7gS.js +1623 -0
  38. package/dist/NiceWindow-jjdE6vGy.cjs +1 -0
  39. package/dist/charts-C44vJber.cjs +768 -0
  40. package/dist/charts-XVlDwU0y.js +4732 -0
  41. package/dist/charts.cjs +1 -1
  42. package/dist/charts.mjs +8 -8
  43. package/dist/core-BxiH7vkV.cjs +1 -0
  44. package/dist/core-DMV6_SEE.js +795 -0
  45. package/dist/data-branching-oEH04O3i.js +6273 -0
  46. package/dist/data-branching-wmsbLNfa.cjs +1 -0
  47. package/dist/data-branching.cjs +1 -1
  48. package/dist/data-branching.mjs +1 -1
  49. package/dist/data.cjs +1 -1
  50. package/dist/data.d.ts +2 -2
  51. package/dist/data.mjs +3 -3
  52. package/dist/devops-Bt6EsfPa.cjs +17 -0
  53. package/dist/devops-CnZQ1rU5.js +8312 -0
  54. package/dist/devops.cjs +1 -1
  55. package/dist/devops.mjs +1 -1
  56. package/dist/editors.cjs +1 -1
  57. package/dist/editors.d.ts +2 -1
  58. package/dist/editors.mjs +7 -7
  59. package/dist/feedback.cjs +1 -1
  60. package/dist/feedback.mjs +3 -3
  61. package/dist/index.cjs +142 -142
  62. package/dist/index.d.ts +45 -26
  63. package/dist/index.mjs +7480 -7459
  64. package/dist/lazy.cjs +1 -1
  65. package/dist/lazy.mjs +24 -24
  66. package/dist/navigation.cjs +1 -1
  67. package/dist/navigation.d.ts +4 -4
  68. package/dist/navigation.mjs +69 -69
  69. package/dist/no-code-4GtIBr6f.js +7503 -0
  70. package/dist/no-code-Bdwh1vyS.cjs +332 -0
  71. package/dist/no-code.cjs +1 -1
  72. package/dist/no-code.mjs +1 -1
  73. package/dist/overlays.cjs +1 -1
  74. package/dist/overlays.mjs +102 -102
  75. package/dist/pickerCommons-31hyz1gs.js +1122 -0
  76. package/dist/pickerCommons-BifIkPdk.cjs +1 -0
  77. 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-BtGltdoA.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-C44vJber.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 { ar as i, ac as c, aa as r, ah as s, aI as N, ae as t, aO as C, a9 as h, a7 as n, ad as o, aT as l, a4 as g, ag as u, af as p, a3 as S, a8 as O, ab as k, a5 as G, a6 as L, a2 as M } from "./charts-BreQfYCL.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-XVlDwU0y.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
- u as NicePieChart,
16
- p as NicePolarChart,
15
+ p as NicePieChart,
16
+ u as NicePolarChart,
17
17
  S as NiceRangeSelector,
18
- O as NiceSankey,
19
- k as NiceSparkline,
20
- G as NiceStockChart,
21
- L as NiceTreeMap,
22
- M as NiceVectorMap
18
+ k as NiceSankey,
19
+ G as NiceSparkline,
20
+ L as NiceStockChart,
21
+ M as NiceTreeMap,
22
+ O as NiceVectorMap
23
23
  };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react"),m=require("@nice2dev/ui-core"),i=require("react/jsx-runtime"),O=r.createContext(null);function K({children:e,initialPolicy:o,policyEndpoint:t,instanceCeiling:s,tenantPolicy:a,groupPolicy:n,userPreference:d,instanceId:l="default",tenantId:u,onPolicyChange:g}){const[c,h]=r.useState(o||m.DEFAULT_TRACELESS_POLICY),[S,M]=r.useState(d),[C,A]=r.useState(!!t),[P,p]=r.useState(null),y=r.useRef(new Map);r.useEffect(()=>{const v=s||m.createPermissiveInstanceCeiling(l),f=m.resolveTracelessPolicy(v,a,n,S);h(f),g?.(f),y.current.forEach(I=>{I.updatePolicy(f)})},[s,a,n,S,l,g]),r.useEffect(()=>{if(!t)return;(async()=>{A(!0),p(null);try{const f=await fetch(t,{credentials:"include"});if(!f.ok)throw new Error(`Failed to fetch policy: ${f.status}`);const I=f.headers.get(m.TRACELESS_POLICY_HEADER);if(I){const T=m.parsePolicyFromHeader(I);if(T){const N=s||m.createPermissiveInstanceCeiling(l),F=m.resolveTracelessPolicy(N,a?{...a,mode:T}:{tenantId:"default",mode:T,allowGroupOverride:!0,allowUserOverride:!0,updatedAt:Date.now()},n,S);h(F),g?.(F)}}try{const T=await f.json();T.policy&&(h(T.policy),g?.(T.policy))}catch{}}catch(f){p(f instanceof Error?f:new Error("Unknown error"))}finally{A(!1)}})()},[t,s,a,n,S,l,g]);const E=r.useCallback(v=>{M(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()}))},[]),b=r.useCallback(()=>m.generateTracelessComplianceReport(c,l,u),[c,l,u]),j=r.useCallback(()=>m.auditStorageCompliance(c),[c]),q=r.useCallback(async()=>{if(t){A(!0);try{const v=await fetch(t,{credentials:"include",cache:"no-cache"});if(v.ok){const f=v.headers.get(m.TRACELESS_POLICY_HEADER);if(f){const I=m.parsePolicyFromHeader(f);if(I){const T=s||m.createPermissiveInstanceCeiling(l),N=m.resolveTracelessPolicy(T,a?{...a,mode:I}:void 0,n,S);h(N),g?.(N)}}}}finally{A(!1)}}},[t,s,a,n,S,l,g]),U=r.useCallback((v="nice2dev")=>{let f=y.current.get(v);return f||(f=new m.StorageAdapter(c,v),y.current.set(v,f)),f},[c]),V=r.useMemo(()=>m.getTracelessBadgeInfo(c),[c]),Y=r.useMemo(()=>({policy:c,canUseCookies:c.cookiesAllowed,canUseLocalStorage:c.localStorageAllowed,canUseSessionStorage:c.sessionStorageAllowed,canPersist:c.localStorageAllowed,mode:c.effectiveMode,requiresConsentBanner:c.requiresConsentBanner,badgeInfo:V,setUserPreference:E,generateReport:b,runAudit:j,refreshPolicy:q,getStorageAdapter:U,isLoading:C,error:P}),[c,V,E,b,j,q,U,C,P]);return r.createElement(O.Provider,{value:Y},e)}function W(){const e=r.useContext(O);if(!e)throw new Error("useTracelessPolicy must be used within a TracelessProvider");return e}function x(){const e=r.useContext(O);if(e)return e;const o=new m.StorageAdapter(m.DEFAULT_TRACELESS_POLICY);return{policy:m.DEFAULT_TRACELESS_POLICY,canUseCookies:!1,canUseLocalStorage:!1,canUseSessionStorage:!1,canPersist:!1,mode:"traceless",requiresConsentBanner:!1,badgeInfo:m.getTracelessBadgeInfo(m.DEFAULT_TRACELESS_POLICY),setUserPreference:()=>{},generateReport:()=>m.generateTracelessComplianceReport(m.DEFAULT_TRACELESS_POLICY,"default"),runAudit:()=>m.auditStorageCompliance(m.DEFAULT_TRACELESS_POLICY),refreshPolicy:async()=>{},getStorageAdapter:()=>o,isLoading:!1,error:null}}function D(e="nice2dev"){const{getStorageAdapter:o}=x();return r.useMemo(()=>o(e),[o,e])}function z(e,o,t){const s=D(t?.namespace),{canPersist:a,canUseSessionStorage:n}=x(),d=t?.storageMode==="session"?n:a,[l,u]=r.useState(()=>{if(d){const c=s.get(e,t?.storageMode);if(c!==null)return c}return o}),g=r.useCallback(c=>{u(h=>{const S=typeof c=="function"?c(h):c;return d&&s.set(e,S,t?.storageMode==="session"?"session":"local"),S})},[s,e,d,t?.storageMode]);return[l,g,d]}function J(){const{requiresConsentBanner:e,mode:o}=x(),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 Q(e=!1){const{runAudit:o}=x(),[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 X(){const{policy:e,getStorageAdapter:o}=x(),t=r.useMemo(()=>o("local"),[o]),s=r.useCallback(l=>t.get(l),[t]),a=r.useCallback((l,u)=>{t.set(l,u)},[t]),n=r.useCallback(l=>{t.remove(l)},[t]),d=r.useCallback(()=>{t.clear()},[t]);return r.useMemo(()=>({getItem:s,setItem:a,removeItem:n,clear:d,isAvailable:e.localStorageAllowed,effectiveMode:e.effectiveMode,policy:e}),[s,a,n,d,e])}function Z(){const{policy:e,getStorageAdapter:o}=x(),t=r.useMemo(()=>o("session"),[o]),s=r.useCallback(l=>t.get(l),[t]),a=r.useCallback((l,u)=>{t.set(l,u)},[t]),n=r.useCallback(l=>{t.remove(l)},[t]),d=r.useCallback(()=>{t.clear()},[t]);return r.useMemo(()=>({getItem:s,setItem:a,removeItem:n,clear:d,isAvailable:e.sessionStorageAllowed,effectiveMode:e.effectiveMode}),[s,a,n,d,e])}function ee({storageKey:e,initialState:o={},onStateChange:t,storageType:s="auto"}){const{policy:a,getStorageAdapter:n}=x(),d=`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]),u=r.useMemo(()=>n(l==="session"?"session-grid":"local-grid"),[n,l]),[g,c]=r.useState(()=>{const C=u.get(d);if(C)try{return{...o,...JSON.parse(C)}}catch{return o}return o});r.useEffect(()=>{u.set(d,JSON.stringify(g)),t?.(g)},[g,u,d,t]);const h=r.useCallback(C=>{c(A=>({...A,...C}))},[]),S=r.useCallback(()=>{u.remove(d),c(o)},[u,d,o]);return{state:g,updateState:h,setState:c,clearState:S,degraded:l==="memory",effectiveStorageType:l,policy:a}}function te({storageKey:e,autoSaveInterval:o=5e3,maxVersions:t=10}){const{policy:s,getStorageAdapter:a}=x(),n=`nice-editor-${e}`,d=`${n}-history`,l=r.useMemo(()=>a("editor"),[a]),[u,g]=z(n,null,{storageMode:s.localStorageAllowed?"local":"session"}),[c,h]=z(d,[],{storageMode:"local"}),S=r.useCallback((p,y)=>{const E={content:p,cursorPosition:y,lastModified:Date.now(),version:(u?.version??0)+1};g(E)},[u,g]),M=r.useCallback(()=>{!u||!s.localStorageAllowed||h(p=>[...p,u].slice(-t))},[u,s.localStorageAllowed,t,h]),C=r.useCallback(p=>{const y=c.find(E=>E.version===p);y&&g(y)},[c,g]),A=r.useCallback(()=>{l.remove(n),g(null)},[l,n,g]),P=r.useRef(null);return r.useEffect(()=>{if(!o||!u?.content||u.content===P.current)return;const p=setTimeout(()=>{P.current=u.content??null},o);return()=>clearTimeout(p)},[u?.content,o]),{draft:u,saveDraft:S,saveToHistory:M,restoreVersion:C,clearDraft:A,history:c,hasDraft:u!==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}=x();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 R=({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"}})}),$=(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(--nice-text-on-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 k(e,o={}){const{fallback:t=i.jsx(R,{}),preloadOnMount:s=!1,preloadOnHover:a=!1,preloadAfterIdle:n,minLoadingTime:d=0,ssrFallback:l,errorFallback:u=$,displayName:g}=o;let c=null,h=!1;const S=async()=>{if(c)return c;const p=Date.now();c=e();const y=await c;if(d>0){const E=Date.now()-p;E<d&&await new Promise(b=>setTimeout(b,d-E))}return h=!0,y},M=r.lazy(S),C=p=>{const y=r.useRef(null);return r.useEffect(()=>{s&&!h&&S()},[]),r.useEffect(()=>{if(n&&!h){const b="requestIdleCallback"in window?window.requestIdleCallback(()=>S(),{timeout:n}):setTimeout(()=>S(),n);return()=>{"cancelIdleCallback"in window?window.cancelIdleCallback(b):clearTimeout(b)}}},[]),r.useEffect(()=>{if(!a||h)return;const b=y.current;if(!b)return;const j=()=>{h||S()};return b.addEventListener("mouseenter",j,{once:!0}),()=>b.removeEventListener("mouseenter",j)},[]),typeof window>"u"&&l?i.jsx(i.Fragment,{children:l}):i.jsx("div",{ref:y,className:"ntd-lazy-wrapper",children:i.jsx(oe,{fallback:u,children:i.jsx(r.Suspense,{fallback:t,children:i.jsx(M,{...p})})})})},A=async()=>{h||await S()},P=C;return P.preload=A,P.displayName=g||"LazyComponent",P}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(([d])=>{d.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 G=()=>i.jsx(R,{height:400}),H=()=>i.jsx(R,{height:300}),_=()=>i.jsx(R,{height:500}),B=()=>i.jsx(R,{height:600}),L=e=>e,w={CodeEditor:k(L(()=>Promise.resolve().then(()=>require("./NiceCodeEditor-BfkH1bsZ.cjs")).then(e=>({default:e.NiceCodeEditor}))),{fallback:i.jsx(G,{}),preloadOnHover:!0,displayName:"LazyCodeEditor"}),HtmlEditor:k(L(()=>Promise.resolve().then(()=>require("./NiceHtmlEditor-Bce9Vwe1.cjs")).then(e=>({default:e.NiceHtmlEditor}))),{fallback:i.jsx(G,{}),preloadOnHover:!0,displayName:"LazyHtmlEditor"}),DocumentViewer:k(L(()=>Promise.resolve().then(()=>require("./NiceDocumentViewer-BgcgLWJ3.cjs")).then(e=>({default:e.NiceDocumentViewer}))),{fallback:i.jsx(R,{height:600}),displayName:"LazyDocumentViewer"}),Chart:k(L(()=>Promise.resolve().then(()=>require("./charts-C44vJber.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),{fallback:i.jsx(H,{}),preloadAfterIdle:3e3,displayName:"LazyChart"}),VectorMap:k(L(()=>Promise.resolve().then(()=>require("./charts-C44vJber.cjs")).then(e=>e.NiceVectorMap$1).then(e=>({default:e.NiceVectorMap}))),{fallback:i.jsx(R,{height:400}),displayName:"LazyVectorMap"}),Sankey:k(L(()=>Promise.resolve().then(()=>require("./charts-C44vJber.cjs")).then(e=>e.NiceSankey$1).then(e=>({default:e.NiceSankey}))),{fallback:i.jsx(H,{}),displayName:"LazySankey"}),Scheduler:k(L(()=>Promise.resolve().then(()=>require("./NiceScheduler-O3AwmdGG.cjs")).then(e=>e.NiceScheduler$1).then(e=>({default:e.NiceScheduler}))),{fallback:i.jsx(B,{}),displayName:"LazyScheduler"}),Gantt:k(L(()=>Promise.resolve().then(()=>require("./NiceGantt-4UBd4uJ8.cjs")).then(e=>({default:e.NiceGantt}))),{fallback:i.jsx(B,{}),displayName:"LazyGantt"}),PivotGrid:k(L(()=>Promise.resolve().then(()=>require("./NicePivotGrid-BtVUWiud.cjs")).then(e=>e.NicePivotGrid$1).then(e=>({default:e.NicePivotGrid}))),{fallback:i.jsx(_,{}),displayName:"LazyPivotGrid"}),DataGrid:k(L(()=>Promise.resolve().then(()=>require("./NiceDataGrid-CVYEo_nv.cjs")).then(e=>e.NiceDataGrid$1).then(e=>({default:e.NiceDataGrid}))),{fallback:i.jsx(_,{}),preloadAfterIdle:2e3,displayName:"LazyDataGrid"})};async function ce(){await Promise.all([w.CodeEditor.preload(),w.HtmlEditor.preload(),w.DocumentViewer.preload(),w.Chart.preload(),w.VectorMap.preload(),w.Sankey.preload(),w.Scheduler.preload(),w.Gantt.preload(),w.PivotGrid.preload()])}async function ie(e){await Promise.all(e.map(o=>w[o].preload()))}exports.DefaultErrorFallback=$;exports.DefaultLoadingFallback=R;exports.LazyComponents=w;exports.TracelessProvider=K;exports.createLazyComponent=k;exports.preloadAllHeavyComponents=ce;exports.preloadComponents=ie;exports.useCookieBannerVisibility=J;exports.useEditorStatePersistence=te;exports.useGridStatePersistence=ee;exports.useLazyOnVisible=ae;exports.usePersistedState=z;exports.usePreloadOnIdle=ne;exports.usePreloadOnRouteHint=le;exports.useResolvedStorageProps=se;exports.useStorageAdapter=D;exports.useStorageAudit=Q;exports.useTracelessLocalStorage=X;exports.useTracelessPolicy=W;exports.useTracelessPolicySafe=x;exports.useTracelessSessionStorage=Z;exports.useTracelessStorage=re;