@deephaven/embed-grid 0.54.1-beta.0 → 0.54.1-beta.4

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.
@@ -6,5 +6,5 @@ import{_ as A}from"./monaco-9eb7d7d5.js";import{r as d,R as T,C as h,D as y,E as
6
6
  `,_7=`:root{--dh-color-quickactions-bg: hsla(var(--dh-color-gray-hue), 0%, 11%, 0.9);--dh-color-radial-reaction: hsla(var(--dh-color-gray-hue), 0%, 92%, 0.6);--dh-color-colorpicker-border: hsla(var(--dh-color-gray-hue), 0%, 94%, 0.1)}/*# sourceMappingURL=theme-dark-components.css.map */
7
7
  `;var j7=[O7,B7,U7,G7,I7,_7].join(`
8
8
  `);const q7=`:root{--dh-color-gray-900: #000;--dh-color-gray-800: #222;--dh-color-gray-700: #464646;--dh-color-gray-600: #6d6d6d;--dh-color-gray-500: #909090;--dh-color-gray-400: #b1b1b1;--dh-color-gray-300: #d5d5d5;--dh-color-gray-200: #e6e6e6;--dh-color-gray-100: #f8f8f8;--dh-color-gray-75: #fdfdfd;--dh-color-gray-50: #fff;--dh-color-blue-100: #112451;--dh-color-blue-200: #16306c;--dh-color-blue-300: #1d3d88;--dh-color-blue-400: #254ba4;--dh-color-blue-500: #2f5bc0;--dh-color-blue-600: #3b6bda;--dh-color-blue-700: #4c7dee;--dh-color-blue-800: #6390fa;--dh-color-blue-900: #7ca4ff;--dh-color-blue-1000: #97b7ff;--dh-color-blue-1100: #afc9ff;--dh-color-blue-1200: #c7d9ff;--dh-color-blue-1300: #dbe6ff;--dh-color-blue-1400: #ecf1ff;--dh-color-seafoam-100: #1f2925;--dh-color-seafoam-200: #263630;--dh-color-seafoam-300: #2f463e;--dh-color-seafoam-400: #37574b;--dh-color-seafoam-500: #3e6959;--dh-color-seafoam-600: #447b68;--dh-color-seafoam-700: #488f78;--dh-color-seafoam-800: #4ca387;--dh-color-seafoam-900: #4fb797;--dh-color-seafoam-1000: #54cba6;--dh-color-seafoam-1100: #5edeb7;--dh-color-seafoam-1200: #78edc7;--dh-color-seafoam-1300: #9ef8d7;--dh-color-seafoam-1400: #cbfce8;--dh-color-black: var(--dh-color-gray-50);--dh-color-white: var(--dh-color-gray-75);--dh-color-accent: var(--dh-color-blue-700);--dh-color-background: var(--dh-color-white);--dh-color-foreground: var(--dh-color-black);--dh-color-grid-bg: var(--dh-color-background)}/*# sourceMappingURL=theme-light-palette.css.map */
9
- `;var W7=q7,N="default-dark",K7="default-light",$7={"--dh-color-accent":"#4c7dee","--dh-color-background":"#1a171a"},T9="deephaven.themeCache",g=E9.module("ThemeUtils"),O9="var(--",R="dh-tmp",J7=/\S/,P=/\s/;function X7(){var e=getComputedStyle(document.body),o=Object.entries($7).map(l=>{var[c,r]=l;return"".concat(c,":").concat(e.getPropertyValue(c)||r)});return":root{".concat(o.join(";"),"}")}function Q7(e){var o=new Set;return Object.values(e).forEach(l=>{B9(l).forEach(c=>{var[r,a]=c,v=l.substring(r,a+1);v.includes(O9)&&o.add(v)})}),o}function fo(e,o){var l,c=o.custom.find(v=>v.themeKey===e),r=(l=c==null?void 0:c.baseThemeKey)!==null&&l!==void 0?l:e,a=o.base.find(v=>v.themeKey===r);return a==null&&(g.error("No registered base theme found for theme key: '".concat(r,"'"),"Registered:",o.base.map(v=>v.themeKey),o.custom.map(v=>v.themeKey)),a=o.base.find(v=>v.themeKey===N),J9(a,"Default base theme '".concat(N,"' is not registered"))),g.debug("Applied themes:",a.themeKey,c==null?void 0:c.themeKey),c==null?[a]:[a,c]}function zo(){return[{name:"Default Dark",themeKey:N,styleContent:j7},{name:"Default Light",themeKey:K7,styleContent:W7}]}function Y7(){var e=localStorage.getItem(T9);try{return e==null?null:JSON.parse(e)}catch{}return null}function B9(e){for(var o,l,c=[],r=(o=(l=J7.exec(e))===null||l===void 0?void 0:l.index)!==null&&o!==void 0?o:0,a=0,v=0;v<e.length;v+=1)if(e[v]==="("?a+=1:e[v]===")"&&(a-=1),v===e.length-1||P.test(e[v+1])&&a===0){for(c.push([r,v]);v<e.length-1&&P.test(e[v+1]);)v+=1;r=v+1}return a!==0?(g.error("Unbalanced parentheses in css var expression",e),[]):c}function uo(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,l=performance.now(),c=document.createElement("div");o.appendChild(c);var r=[...Q7(e)];r.forEach((i,t)=>{var n="--".concat(R,"-").concat(t);c.style.setProperty(n,i)});var a={},v=window.getComputedStyle(c),s=i=>{var t="--".concat(R,"-").concat(r.indexOf(i)),n=v.getPropertyValue(t);return j9.normalizeCssColor(n)};return Object.entries(e).forEach(i=>{var[t,n]=i;a[t]=oo(s,n)}),c.remove(),g.debug("Resolved css variables",performance.now()-l,"ms"),a}function oo(e,o){var l=[],c=0;return B9(o).forEach(r=>{var[a,v]=r;c<a&&(l.push(o.substring(c,a)),c+=a-c);var s=o.substring(a,v+1);l.push(s.includes(O9)?e(s):s),c+=v-a+1}),l.length===0?o:l.join("")}function Ho(e){localStorage.setItem(T9,JSON.stringify(e))}function go(e,o){return"".concat(e,"_").concat(o)}function eo(){var e,o,l=(e=(o=Y7())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&e!==void 0?e:X7();g.debug("Preloading theme content:","'".concat(l,"'"));var c=document.createElement("style");c.innerHTML=l,document.head.appendChild(c)}function E(e,o,l,c,r,a,v){try{var s=e[a](v),i=s.value}catch(t){l(t);return}s.done?o(i):Promise.resolve(i).then(c,r)}function lo(e){return function(){var o=this,l=arguments;return new Promise(function(c,r){var a=e.apply(o,l);function v(i){E(a,c,r,v,s,"next",i)}function s(i){E(a,c,r,v,s,"throw",i)}v(void 0)})}}var b=E9.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),co=d.createContext(null);function ao(e){var{apiUrl:o,children:l,failureElement:c,setGlobally:r=!1}=e,[a,v]=d.useState(!0),[s,i]=d.useState();return d.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=lo(function*(){try{var p=(yield A(()=>import(o),[],import.meta.url)).default;b.info("API bootstrapped from",o),i(p),r&&(b.debug("API set globally"),globalThis.dh=p)}catch(m){b.error("Unable to bootstrap API",m)}v(!1)}),n.apply(this,arguments)}t()},[o,r]),a?h.jsx(F9,{}):s==null?c??h.jsxs(P7,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[h.jsx(F7,{closeButton:!1,children:"Error: Unable to load API"}),h.jsx(E7,{children:h.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):h.jsx(co.Provider,{value:s,children:l})}eo();const ro=O.lazy(()=>A(()=>import("./App-831f2bfe.js"),["./App-831f2bfe.js","./vendor-a731ce4c.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-76c678a7.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-cc187c6e.css","./App-ddc6b344.css"],import.meta.url)),vo=O.lazy(async()=>({default:(await A(()=>import("./index-242e8670.js"),["./index-242e8670.js","./vendor-a731ce4c.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-76c678a7.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-cc187c6e.css","./plotly-7ff7609c.js","./index-df19f378.css"],import.meta.url)).AppBootstrap})),F=new URL("../../jsapi/dh-core.js",document.baseURI),ho=new URL("../../js-plugins",document.baseURI);T.render(h.jsx(ao,{apiUrl:F.href,setGlobally:!0,children:h.jsx(d.Suspense,{fallback:h.jsx(F9,{}),children:h.jsx(vo,{serverUrl:F.origin,pluginsUrl:ho.href,children:h.jsx(ro,{})})})}),document.getElementById("root"));export{mo as $,eo as A,uo as B,O9 as C,N as D,oo as E,j7 as F,W7 as G,co as H,ao as I,J0 as J,R9 as K,E9 as L,P7 as M,J7 as N,r0 as O,o9 as P,j9 as Q,to as R,Z2 as S,x as T,U8 as U,o5 as V,P as W,T0 as X,i1 as Y,v4 as Z,C2 as _,F9 as a,S as a0,O0 as a1,$5 as a2,A6 as a3,$9 as a4,m8 as a5,L9 as a6,p9 as a7,l5 as a8,J4 as a9,t9 as aA,o0 as aB,y4 as aC,c2 as aD,$ as aE,e9 as aF,e3 as aG,S9 as aH,x3 as aI,w8 as aJ,$2 as aK,Q3 as aL,u8 as aM,H0 as aN,V9 as aa,X5 as ab,s0 as ac,n9 as ad,a9 as ae,g9 as af,c6 as ag,u9 as ah,H9 as ai,N9 as aj,T2 as ak,C9 as al,D2 as am,y9 as an,F0 as ao,G5 as ap,U5 as aq,i8 as ar,Z3 as as,k2 as at,w2 as au,P5 as av,R5 as aw,D9 as ax,Q5 as ay,E5 as az,E7 as b,F7 as c,M9 as d,A2 as e,G as f,J9 as g,X4 as h,W9 as i,B5 as j,v6 as k,zo as l,Y7 as m,fo as n,X7 as o,K2 as p,K7 as q,$7 as r,Ho as s,T7 as t,T9 as u,Y3 as v,R as w,Q7 as x,B9 as y,go as z};
10
- //# sourceMappingURL=index-8bbe377e.js.map
9
+ `;var W7=q7,N="default-dark",K7="default-light",$7={"--dh-color-accent":"#4c7dee","--dh-color-background":"#1a171a"},T9="deephaven.themeCache",g=E9.module("ThemeUtils"),O9="var(--",R="dh-tmp",J7=/\S/,P=/\s/;function X7(){var e=getComputedStyle(document.body),o=Object.entries($7).map(l=>{var[c,r]=l;return"".concat(c,":").concat(e.getPropertyValue(c)||r)});return":root{".concat(o.join(";"),"}")}function Q7(e){var o=new Set;return Object.values(e).forEach(l=>{B9(l).forEach(c=>{var[r,a]=c,v=l.substring(r,a+1);v.includes(O9)&&o.add(v)})}),o}function fo(e,o){var l,c=o.custom.find(v=>v.themeKey===e),r=(l=c==null?void 0:c.baseThemeKey)!==null&&l!==void 0?l:e,a=o.base.find(v=>v.themeKey===r);return a==null&&(g.error("No registered base theme found for theme key: '".concat(r,"'"),"Registered:",o.base.map(v=>v.themeKey),o.custom.map(v=>v.themeKey)),a=o.base.find(v=>v.themeKey===N),J9(a,"Default base theme '".concat(N,"' is not registered"))),g.debug("Applied themes:",a.themeKey,c==null?void 0:c.themeKey),c==null?[a]:[a,c]}function zo(){return[{name:"Default Dark",themeKey:N,styleContent:j7},{name:"Default Light",themeKey:K7,styleContent:W7}]}function Y7(){var e=localStorage.getItem(T9);try{return e==null?null:JSON.parse(e)}catch{}return null}function B9(e){for(var o,l,c=[],r=(o=(l=J7.exec(e))===null||l===void 0?void 0:l.index)!==null&&o!==void 0?o:0,a=0,v=0;v<e.length;v+=1)if(e[v]==="("?a+=1:e[v]===")"&&(a-=1),v===e.length-1||P.test(e[v+1])&&a===0){for(c.push([r,v]);v<e.length-1&&P.test(e[v+1]);)v+=1;r=v+1}return a!==0?(g.error("Unbalanced parentheses in css var expression",e),[]):c}function uo(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,l=performance.now(),c=document.createElement("div");o.appendChild(c);var r=[...Q7(e)];r.forEach((i,t)=>{var n="--".concat(R,"-").concat(t);c.style.setProperty(n,i)});var a={},v=window.getComputedStyle(c),s=i=>{var t="--".concat(R,"-").concat(r.indexOf(i)),n=v.getPropertyValue(t);return j9.normalizeCssColor(n)};return Object.entries(e).forEach(i=>{var[t,n]=i;a[t]=oo(s,n)}),c.remove(),g.debug("Resolved css variables",performance.now()-l,"ms"),a}function oo(e,o){var l=[],c=0;return B9(o).forEach(r=>{var[a,v]=r;c<a&&(l.push(o.substring(c,a)),c+=a-c);var s=o.substring(a,v+1);l.push(s.includes(O9)?e(s):s),c+=v-a+1}),l.length===0?o:l.join("")}function Ho(e){localStorage.setItem(T9,JSON.stringify(e))}function go(e,o){return"".concat(e,"_").concat(o)}function eo(){var e,o,l=(e=(o=Y7())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&e!==void 0?e:X7();g.debug("Preloading theme content:","'".concat(l,"'"));var c=document.createElement("style");c.innerHTML=l,document.head.appendChild(c)}function E(e,o,l,c,r,a,v){try{var s=e[a](v),i=s.value}catch(t){l(t);return}s.done?o(i):Promise.resolve(i).then(c,r)}function lo(e){return function(){var o=this,l=arguments;return new Promise(function(c,r){var a=e.apply(o,l);function v(i){E(a,c,r,v,s,"next",i)}function s(i){E(a,c,r,v,s,"throw",i)}v(void 0)})}}var b=E9.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),co=d.createContext(null);function ao(e){var{apiUrl:o,children:l,failureElement:c,setGlobally:r=!1}=e,[a,v]=d.useState(!0),[s,i]=d.useState();return d.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=lo(function*(){try{var p=(yield A(()=>import(o),[],import.meta.url)).default;b.info("API bootstrapped from",o),i(p),r&&(b.debug("API set globally"),globalThis.dh=p)}catch(m){b.error("Unable to bootstrap API",m)}v(!1)}),n.apply(this,arguments)}t()},[o,r]),a?h.jsx(F9,{}):s==null?c??h.jsxs(P7,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[h.jsx(F7,{closeButton:!1,children:"Error: Unable to load API"}),h.jsx(E7,{children:h.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):h.jsx(co.Provider,{value:s,children:l})}eo();const ro=O.lazy(()=>A(()=>import("./App-3b5e6969.js"),["./App-3b5e6969.js","./vendor-a731ce4c.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-10779ca8.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-4445e4bc.css","./App-ddc6b344.css"],import.meta.url)),vo=O.lazy(async()=>({default:(await A(()=>import("./index-c85b8878.js"),["./index-c85b8878.js","./vendor-a731ce4c.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-10779ca8.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-4445e4bc.css","./plotly-7ff7609c.js","./index-df19f378.css"],import.meta.url)).AppBootstrap})),F=new URL("../../jsapi/dh-core.js",document.baseURI),ho=new URL("../../js-plugins",document.baseURI);T.render(h.jsx(ao,{apiUrl:F.href,setGlobally:!0,children:h.jsx(d.Suspense,{fallback:h.jsx(F9,{}),children:h.jsx(vo,{serverUrl:F.origin,pluginsUrl:ho.href,children:h.jsx(ro,{})})})}),document.getElementById("root"));export{mo as $,eo as A,uo as B,O9 as C,N as D,oo as E,j7 as F,W7 as G,co as H,ao as I,J0 as J,R9 as K,E9 as L,P7 as M,J7 as N,r0 as O,o9 as P,j9 as Q,to as R,Z2 as S,x as T,U8 as U,o5 as V,P as W,T0 as X,i1 as Y,v4 as Z,C2 as _,F9 as a,S as a0,O0 as a1,$5 as a2,A6 as a3,$9 as a4,m8 as a5,L9 as a6,p9 as a7,l5 as a8,J4 as a9,t9 as aA,o0 as aB,y4 as aC,c2 as aD,$ as aE,e9 as aF,e3 as aG,S9 as aH,x3 as aI,w8 as aJ,$2 as aK,Q3 as aL,u8 as aM,H0 as aN,V9 as aa,X5 as ab,s0 as ac,n9 as ad,a9 as ae,g9 as af,c6 as ag,u9 as ah,H9 as ai,N9 as aj,T2 as ak,C9 as al,D2 as am,y9 as an,F0 as ao,G5 as ap,U5 as aq,i8 as ar,Z3 as as,k2 as at,w2 as au,P5 as av,R5 as aw,D9 as ax,Q5 as ay,E5 as az,E7 as b,F7 as c,M9 as d,A2 as e,G as f,J9 as g,X4 as h,W9 as i,B5 as j,v6 as k,zo as l,Y7 as m,fo as n,X7 as o,K2 as p,K7 as q,$7 as r,Ho as s,T7 as t,T9 as u,Y3 as v,R as w,Q7 as x,B9 as y,go as z};
10
+ //# sourceMappingURL=index-e00755f6.js.map