@deephaven/embed-grid 0.51.1-alpha-theme-fix.3 → 0.52.0

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.
@@ -5,5 +5,5 @@ import{_ as A}from"./monaco-9eb7d7d5.js";import{r as d,R as T,C as h,D as y,E as
5
5
  `,U7=`: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 */
6
6
  `;var G7=[T7,E7,O7,B7,U7].join(`
7
7
  `);const I7=`: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 */
8
- `;var j7=I7,N="default-dark",_7="default-light",q7={"--dh-color-accent":"#4c7dee","--dh-color-background":"#1a171a"},T9="deephaven.themeCache",p=P9.module("ThemeUtils"),R="dh-tmp";function K7(){var e=getComputedStyle(document.body),o=Object.entries(q7).map(l=>{var[c,r]=l;return"".concat(c,":").concat(e.getPropertyValue(c)||r)});return":root{".concat(o.join(";"),"}")}function W7(e){var o=new Set;return Object.values(e).forEach(l=>{E9(l).forEach(c=>{var[r,a]=c;o.add(l.substring(r,a+1))})}),o}function io(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&&(p.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),W9(a,"Default base theme '".concat(N,"' is not registered"))),p.debug("Applied themes:",a.themeKey,c==null?void 0:c.themeKey),c==null?[a]:[a,c]}function no(){return[{name:"Default Dark",themeKey:N,styleContent:G7},{name:"Default Light",themeKey:_7,styleContent:j7}]}function $7(){var e=localStorage.getItem(T9);try{return e==null?null:JSON.parse(e)}catch{}return null}function E9(e){for(var o=[],l="var(--",c=e.indexOf(l),r=0;c>-1;){r=1;for(var a=c+l.length;a<e.length;a+=1)if(e[a]==="("?r+=1:e[a]===")"&&(r-=1),r===0){o.push([c,a]);break}if(r!==0)return p.error("Unbalanced parentheses in css var expression",e),[];c=e.indexOf(l,a+1)}return o}function to(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=[...W7(e)];r.forEach((s,t)=>{var n="--".concat(R,"-").concat(t);c.style.setProperty(n,s)});var a={},v=window.getComputedStyle(c),i=s=>{var t="--".concat(R,"-").concat(r.indexOf(s)),n=v.getPropertyValue(t);return I9.normalizeCssColor(n)};return Object.entries(e).forEach(s=>{var[t,n]=s;a[t]=J7(i,n)}),c.remove(),p.debug("Resolved css variables",performance.now()-l,"ms"),a}function J7(e,o){var l=[],c=0;return E9(o).forEach(r=>{var[a,v]=r;c<a&&(l.push(o.substring(c,a)),c+=a-c),l.push(e(o.substring(a,v+1))),c+=v-a+1}),l.length===0?o:l.join("")}function mo(e){localStorage.setItem(T9,JSON.stringify(e))}function fo(e,o){return"".concat(e,"_").concat(o)}function Q7(){var e,o,l=(e=(o=$7())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&e!==void 0?e:K7();p.debug("Preloading theme content:","'".concat(l,"'"));var c=document.createElement("style");c.innerHTML=l,document.head.appendChild(c)}function P(e,o,l,c,r,a,v){try{var i=e[a](v),s=i.value}catch(t){l(t);return}i.done?o(s):Promise.resolve(s).then(c,r)}function Y7(e){return function(){var o=this,l=arguments;return new Promise(function(c,r){var a=e.apply(o,l);function v(s){P(a,c,r,v,i,"next",s)}function i(s){P(a,c,r,v,i,"throw",s)}v(void 0)})}}var b=P9.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),X7=d.createContext(null);function oo(e){var{apiUrl:o,children:l,failureElement:c,setGlobally:r=!1}=e,[a,v]=d.useState(!0),[i,s]=d.useState();return d.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=Y7(function*(){try{var g=(yield A(()=>import(o),[],import.meta.url)).default;b.info("API bootstrapped from",o),s(g),r&&(b.debug("API set globally"),globalThis.dh=g)}catch(m){b.error("Unable to bootstrap API",m)}v(!1)}),n.apply(this,arguments)}t()},[o,r]),a?h.jsx(F9,{}):i==null?c??h.jsxs(D7,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[h.jsx(P7,{closeButton:!1,children:"Error: Unable to load API"}),h.jsx(R7,{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(X7.Provider,{value:i,children:l})}Q7();const eo=E.lazy(()=>A(()=>import("./App-a39e059d.js"),["./App-a39e059d.js","./vendor-949c037e.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-685b7c9f.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-3d8ada4f.css","./App-ddc6b344.css"],import.meta.url)),lo=E.lazy(async()=>({default:(await A(()=>import("./index-d3a31f15.js"),["./index-d3a31f15.js","./vendor-949c037e.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-685b7c9f.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-3d8ada4f.css","./plotly-9f8abe2e.js","./index-0df543ad.css"],import.meta.url)).AppBootstrap})),F=new URL("../../jsapi/dh-core.js",document.baseURI),co=new URL("../../js-plugins",document.baseURI);T.render(h.jsx(oo,{apiUrl:F.href,setGlobally:!0,children:h.jsx(d.Suspense,{fallback:h.jsx(F9,{}),children:h.jsx(lo,{serverUrl:F.origin,pluginsUrl:co.href,children:h.jsx(eo,{})})})}),document.getElementById("root"));export{N6 as $,Q7 as A,to as B,J7 as C,N as D,G7 as E,j7 as F,X7 as G,oo as H,D9 as I,a0 as J,X5 as K,P9 as L,D7 as M,ho as N,C2 as O,B8 as P,X3 as Q,T0 as R,s1 as S,x as T,r4 as U,w2 as V,so as W,I9 as X,S as Y,E0 as Z,W5 as _,F9 as a,K9 as a0,d8 as a1,V9 as a2,p9 as a3,e5 as a4,$4 as a5,g9 as a6,J5 as a7,h0 as a8,i9 as a9,W as aA,o9 as aB,o3 as aC,A9 as aD,y3 as aE,S8 as aF,W2 as aG,Q3 as aH,z8 as aI,u0 as aJ,c9 as aa,H9 as ab,l6 as ac,z9 as ad,u9 as ae,x9 as af,T2 as ag,w9 as ah,k2 as ai,b9 as aj,F0 as ak,U5 as al,B5 as am,s8 as an,C3 as ao,Z2 as ap,S2 as aq,R5 as ar,D5 as as,k9 as at,Q5 as au,P5 as av,n9 as aw,X4 as ax,b4 as ay,l2 as az,R7 as b,P7 as c,L9 as d,N2 as e,U as f,W9 as g,J4 as h,_9 as i,O5 as j,r6 as k,no as l,$7 as m,io as n,K7 as o,K2 as p,_7 as q,q7 as r,mo as s,F7 as t,T9 as u,Y3 as v,R as w,W7 as x,E9 as y,fo as z};
9
- //# sourceMappingURL=index-ceafa011.js.map
8
+ `;var j7=I7,N="default-dark",_7="default-light",q7={"--dh-color-accent":"#4c7dee","--dh-color-background":"#1a171a"},T9="deephaven.themeCache",p=P9.module("ThemeUtils"),R="dh-tmp";function K7(){var e=getComputedStyle(document.body),o=Object.entries(q7).map(l=>{var[c,r]=l;return"".concat(c,":").concat(e.getPropertyValue(c)||r)});return":root{".concat(o.join(";"),"}")}function W7(e){var o=new Set;return Object.values(e).forEach(l=>{E9(l).forEach(c=>{var[r,a]=c;o.add(l.substring(r,a+1))})}),o}function io(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&&(p.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),W9(a,"Default base theme '".concat(N,"' is not registered"))),p.debug("Applied themes:",a.themeKey,c==null?void 0:c.themeKey),c==null?[a]:[a,c]}function no(){return[{name:"Default Dark",themeKey:N,styleContent:G7},{name:"Default Light",themeKey:_7,styleContent:j7}]}function $7(){var e=localStorage.getItem(T9);try{return e==null?null:JSON.parse(e)}catch{}return null}function E9(e){for(var o=[],l="var(--",c=e.indexOf(l),r=0;c>-1;){r=1;for(var a=c+l.length;a<e.length;a+=1)if(e[a]==="("?r+=1:e[a]===")"&&(r-=1),r===0){o.push([c,a]);break}if(r!==0)return p.error("Unbalanced parentheses in css var expression",e),[];c=e.indexOf(l,a+1)}return o}function to(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=[...W7(e)];r.forEach((s,t)=>{var n="--".concat(R,"-").concat(t);c.style.setProperty(n,s)});var a={},v=window.getComputedStyle(c),i=s=>{var t="--".concat(R,"-").concat(r.indexOf(s)),n=v.getPropertyValue(t);return I9.normalizeCssColor(n)};return Object.entries(e).forEach(s=>{var[t,n]=s;a[t]=J7(i,n)}),c.remove(),p.debug("Resolved css variables",performance.now()-l,"ms"),a}function J7(e,o){var l=[],c=0;return E9(o).forEach(r=>{var[a,v]=r;c<a&&(l.push(o.substring(c,a)),c+=a-c),l.push(e(o.substring(a,v+1))),c+=v-a+1}),l.length===0?o:l.join("")}function mo(e){localStorage.setItem(T9,JSON.stringify(e))}function fo(e,o){return"".concat(e,"_").concat(o)}function Q7(){var e,o,l=(e=(o=$7())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&e!==void 0?e:K7();p.debug("Preloading theme content:","'".concat(l,"'"));var c=document.createElement("style");c.innerHTML=l,document.head.appendChild(c)}function P(e,o,l,c,r,a,v){try{var i=e[a](v),s=i.value}catch(t){l(t);return}i.done?o(s):Promise.resolve(s).then(c,r)}function Y7(e){return function(){var o=this,l=arguments;return new Promise(function(c,r){var a=e.apply(o,l);function v(s){P(a,c,r,v,i,"next",s)}function i(s){P(a,c,r,v,i,"throw",s)}v(void 0)})}}var b=P9.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),X7=d.createContext(null);function oo(e){var{apiUrl:o,children:l,failureElement:c,setGlobally:r=!1}=e,[a,v]=d.useState(!0),[i,s]=d.useState();return d.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=Y7(function*(){try{var g=(yield A(()=>import(o),[],import.meta.url)).default;b.info("API bootstrapped from",o),s(g),r&&(b.debug("API set globally"),globalThis.dh=g)}catch(m){b.error("Unable to bootstrap API",m)}v(!1)}),n.apply(this,arguments)}t()},[o,r]),a?h.jsx(F9,{}):i==null?c??h.jsxs(D7,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[h.jsx(P7,{closeButton:!1,children:"Error: Unable to load API"}),h.jsx(R7,{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(X7.Provider,{value:i,children:l})}Q7();const eo=E.lazy(()=>A(()=>import("./App-55b27c8b.js"),["./App-55b27c8b.js","./vendor-949c037e.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-0b52884e.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-3d8ada4f.css","./App-ddc6b344.css"],import.meta.url)),lo=E.lazy(async()=>({default:(await A(()=>import("./index-30958920.js"),["./index-30958920.js","./vendor-949c037e.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-0b52884e.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-3d8ada4f.css","./plotly-c47e1e71.js","./index-0df543ad.css"],import.meta.url)).AppBootstrap})),F=new URL("../../jsapi/dh-core.js",document.baseURI),co=new URL("../../js-plugins",document.baseURI);T.render(h.jsx(oo,{apiUrl:F.href,setGlobally:!0,children:h.jsx(d.Suspense,{fallback:h.jsx(F9,{}),children:h.jsx(lo,{serverUrl:F.origin,pluginsUrl:co.href,children:h.jsx(eo,{})})})}),document.getElementById("root"));export{N6 as $,Q7 as A,to as B,J7 as C,N as D,G7 as E,j7 as F,X7 as G,oo as H,D9 as I,a0 as J,X5 as K,P9 as L,D7 as M,ho as N,C2 as O,B8 as P,X3 as Q,T0 as R,s1 as S,x as T,r4 as U,w2 as V,so as W,I9 as X,S as Y,E0 as Z,W5 as _,F9 as a,K9 as a0,d8 as a1,V9 as a2,p9 as a3,e5 as a4,$4 as a5,g9 as a6,J5 as a7,h0 as a8,i9 as a9,W as aA,o9 as aB,o3 as aC,A9 as aD,y3 as aE,S8 as aF,W2 as aG,Q3 as aH,z8 as aI,u0 as aJ,c9 as aa,H9 as ab,l6 as ac,z9 as ad,u9 as ae,x9 as af,T2 as ag,w9 as ah,k2 as ai,b9 as aj,F0 as ak,U5 as al,B5 as am,s8 as an,C3 as ao,Z2 as ap,S2 as aq,R5 as ar,D5 as as,k9 as at,Q5 as au,P5 as av,n9 as aw,X4 as ax,b4 as ay,l2 as az,R7 as b,P7 as c,L9 as d,N2 as e,U as f,W9 as g,J4 as h,_9 as i,O5 as j,r6 as k,no as l,$7 as m,io as n,K7 as o,K2 as p,_7 as q,q7 as r,mo as s,F7 as t,T9 as u,Y3 as v,R as w,W7 as x,E9 as y,fo as z};
9
+ //# sourceMappingURL=index-f7944fe2.js.map