@deephaven/embed-grid 0.55.1-beta.8 → 0.55.1-beta.9

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 v,D as b,E as
6
6
  `,q7=`:root{--dh-color-loading-spinner-primary: var(--dh-color-accent-default-bg);--dh-color-loading-spinner-secondary: hsla(var(--dh-color-gray-800-hsl), 0.5);--dh-color-quickactions-bg: hsla(var(--dh-color-visual-gray-hsl), 0.9);--dh-color-radial-reaction: hsla(var(--dh-color-visual-gray-hsl), 0.6);--dh-color-colorpicker-border: hsla(var(--dh-color-visual-gray-hsl), 0.1);--dh-color-search-icon: var(--dh-color-foreground);--dh-color-form-control-error: hsl(var(--dh-color-visual-negative-hsl));--dh-color-form-control-error-shadow: hsla( var(--dh-color-visual-negative-hsl), 0.25 );--dh-color-selector-fg: hsla(var(--dh-color-gray-800-hsl), 0.4);--dh-color-selector-hover-fg: hsl(var(--dh-color-gray-800-hsl));--dh-color-selector-disabled-fg: hsla( var(--dh-color-gray-800-hsl), /* * Other dropdowns have opacity .4 when not hovered and then an additional * .65 opacity applied to disabled, hence .4 * .65 == .26 */ 0.26 )}/*# sourceMappingURL=theme-dark-components.css.map */
7
7
  `;var W7=[U7,G7,I7,_7,j7,q7].join(`
8
8
  `);const K7=`: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-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 $7=K7,N="default-dark",J7="default-light",T9={"--dh-color-loading-spinner-primary":"#3b6bda","--dh-color-loading-spinner-secondary":"#f0f0ee80","--dh-color-background":"#1a171a","--dh-color-foreground":"#f0f0ee"},X7={"--dh-svg-icon-select-indicator":"--dh-color-selector-fg","--dh-svg-icon-select-indicator-hover":"--dh-color-selector-hover-fg","--dh-svg-icon-select-indicator-disabled":"--dh-color-selector-disabled-fg","--dh-svg-icon-error":"--dh-color-form-control-error"},O9="deephaven.themeCache",p=E9.module("ThemeUtils"),B9="var(--",R="dh-tmp",Q7=/\S/,P=/\s/;function Y7(){var l=U9(document.body),o=Object.keys(T9).map(e=>"".concat(e,":").concat(l(e)));return":root{".concat(o.join(";"),"}")}function U9(l){var o=getComputedStyle(l);return function(r){var c,a=o.getPropertyValue(r);return a!==""?a:(c=T9[r])!==null&&c!==void 0?c:""}}function oo(l){var o=new Set;return Object.values(l).forEach(e=>{G9(e).forEach(r=>{var[c,a]=r,h=e.substring(c,a+1);h.includes(B9)&&o.add(h)})}),o}function go(l,o){var e,r=o.custom.find(h=>h.themeKey===l),c=(e=r==null?void 0:r.baseThemeKey)!==null&&e!==void 0?e:l,a=o.base.find(h=>h.themeKey===c);return a==null&&(p.error("No registered base theme found for theme key: '".concat(c,"'"),"Registered:",o.base.map(h=>h.themeKey),o.custom.map(h=>h.themeKey)),a=o.base.find(h=>h.themeKey===N),Q9(a,"Default base theme '".concat(N,"' is not registered"))),p.debug("Applied themes:",a.themeKey,r==null?void 0:r.themeKey),r==null?[a]:[a,r]}function po(){return[{name:"Default Dark",themeKey:N,styleContent:W7},{name:"Default Light",themeKey:J7,styleContent:$7}]}function lo(){var l=localStorage.getItem(O9);try{return l==null?null:JSON.parse(l)}catch{}return null}function G9(l){for(var o,e,r=[],c=(o=(e=Q7.exec(l))===null||e===void 0?void 0:e.index)!==null&&o!==void 0?o:0,a=0,h=0;h<l.length;h+=1)if(l[h]==="("?a+=1:l[h]===")"&&(a-=1),h===l.length-1||P.test(l[h+1])&&a===0){for(r.push([c,h]);h<l.length-1&&P.test(l[h+1]);)h+=1;c=h+1}return a!==0?(p.error("Unbalanced parentheses in css var expression",l),[]):r}function eo(l,o){return l.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(o),"'"))}function Ho(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,e=performance.now(),r=document.createElement("div");o.appendChild(r);var c=[...oo(l)];c.forEach((i,t)=>{var n="--".concat(R,"-").concat(t);r.style.setProperty(n,i)});var a={},h=window.getComputedStyle(r),s=i=>{var t="--".concat(R,"-").concat(c.indexOf(i)),n=h.getPropertyValue(t);return W9.normalizeCssColor(n)};return Object.entries(l).forEach(i=>{var[t,n]=i;a[t]=ro(s,n)}),r.remove(),p.debug("Resolved css variables",performance.now()-e,"ms"),a}function ro(l,o){var e=[],r=0;return G9(o).forEach(c=>{var[a,h]=c;r<a&&(e.push(o.substring(r,a)),r+=a-r);var s=o.substring(a,h+1);e.push(s.includes(B9)?l(s):s),r+=h-a+1}),e.length===0?o:e.join("")}function Vo(l){localStorage.setItem(O9,JSON.stringify(l))}function Lo(l,o){return"".concat(l,"_").concat(o)}function ao(){var l,o,e=(l=(o=lo())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&l!==void 0?l:Y7();p.debug("Preloading theme content:","'".concat(e,"'"));var r=document.createElement("style");r.innerHTML=e,document.head.appendChild(r)}function Mo(){var l=U9(document.body);Object.entries(X7).forEach(o=>{var[e,r]=o;document.body.style.removeProperty(e);var c=l(e),a=l(r),h=eo(c,a);document.body.style.setProperty(e,h)})}function E(l,o,e,r,c,a,h){try{var s=l[a](h),i=s.value}catch(t){e(t);return}s.done?o(i):Promise.resolve(i).then(r,c)}function co(l){return function(){var o=this,e=arguments;return new Promise(function(r,c){var a=l.apply(o,e);function h(i){E(a,r,c,h,s,"next",i)}function s(i){E(a,r,c,h,s,"throw",i)}h(void 0)})}}var y=E9.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),ho=d.createContext(null);function vo(l){var{apiUrl:o,children:e,failureElement:r,setGlobally:c=!1}=l,[a,h]=d.useState(!0),[s,i]=d.useState();return d.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=co(function*(){try{var H=(yield A(()=>import(o),[],import.meta.url)).default;y.info("API bootstrapped from",o),i(H),c&&(y.debug("API set globally"),globalThis.dh=H)}catch(m){y.error("Unable to bootstrap API",m)}h(!1)}),n.apply(this,arguments)}t()},[o,c]),a?v.jsx(F9,{}):s==null?r??v.jsxs(F7,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[v.jsx(O7,{closeButton:!1,children:"Error: Unable to load API"}),v.jsx(T7,{children:v.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):v.jsx(ho.Provider,{value:s,children:e})}ao();const so=O.lazy(()=>A(()=>import("./App-225475fd.js"),["./App-225475fd.js","./vendor-08550792.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-d8ccd90f.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-0353e828.css","./App-ddc6b344.css"],import.meta.url)),io=O.lazy(async()=>({default:(await A(()=>import("./index-141b4547.js"),["./index-141b4547.js","./vendor-08550792.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-d8ccd90f.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-0353e828.css","./plotly-251c118a.js","./index-6f63f804.css"],import.meta.url)).AppBootstrap})),F=new URL("../../jsapi/dh-core.js",document.baseURI),no=new URL("../../js-plugins",document.baseURI);T.render(v.jsx(vo,{apiUrl:F.href,setGlobally:!0,children:v.jsx(d.Suspense,{fallback:v.jsx(F9,{}),children:v.jsx(io,{serverUrl:F.origin,pluginsUrl:no.href,children:v.jsx(so,{})})})}),document.getElementById("root"));export{U8 as $,G9 as A,Lo as B,B9 as C,N as D,ao as E,eo as F,Ho as G,ro as H,W7 as I,$7 as J,ho as K,E9 as L,F7 as M,Q7 as N,vo as O,J4 as P,R9 as Q,c4 as R,X7 as S,x as T,o9 as U,W9 as V,P as W,zo as X,Z2 as Y,J as Z,X as _,F9 as a,T4 as a0,i1 as a1,h0 as a2,C2 as a3,uo as a4,w as a5,O4 as a6,$5 as a7,A6 as a8,X9 as a9,S2 as aA,P5 as aB,R5 as aC,D9 as aD,Q5 as aE,E5 as aF,t9 as aG,o4 as aH,b0 as aI,r2 as aJ,$ as aK,l9 as aL,l3 as aM,w9 as aN,x3 as aO,S8 as aP,$2 as aQ,Q3 as aR,u8 as aS,g4 as aT,m8 as aa,L9 as ab,H9 as ac,o5 as ad,e5 as ae,J0 as af,V9 as ag,X5 as ah,s4 as ai,n9 as aj,a9 as ak,p9 as al,r6 as am,u9 as an,g9 as ao,N9 as ap,T2 as aq,C9 as ar,D2 as as,b9 as at,F4 as au,G5 as av,U5 as aw,i8 as ax,Z3 as ay,k2 as az,T7 as b,O7 as c,A2 as d,G as e,M9 as f,Q9 as g,X0 as h,$9 as i,B5 as j,h6 as k,po as l,lo as m,go as n,Mo as o,Y7 as p,K2 as q,J7 as r,Vo as s,T9 as t,B7 as u,Y3 as v,O9 as w,R as x,U9 as y,oo as z};
10
- //# sourceMappingURL=index-cb9cc444.js.map
9
+ `;var $7=K7,N="default-dark",J7="default-light",T9={"--dh-color-loading-spinner-primary":"#3b6bda","--dh-color-loading-spinner-secondary":"#f0f0ee80","--dh-color-background":"#1a171a","--dh-color-foreground":"#f0f0ee"},X7={"--dh-svg-icon-select-indicator":"--dh-color-selector-fg","--dh-svg-icon-select-indicator-hover":"--dh-color-selector-hover-fg","--dh-svg-icon-select-indicator-disabled":"--dh-color-selector-disabled-fg","--dh-svg-icon-error":"--dh-color-form-control-error"},O9="deephaven.themeCache",p=E9.module("ThemeUtils"),B9="var(--",R="dh-tmp",Q7=/\S/,P=/\s/;function Y7(){var l=U9(document.body),o=Object.keys(T9).map(e=>"".concat(e,":").concat(l(e)));return":root{".concat(o.join(";"),"}")}function U9(l){var o=getComputedStyle(l);return function(r){var c,a=o.getPropertyValue(r);return a!==""?a:(c=T9[r])!==null&&c!==void 0?c:""}}function oo(l){var o=new Set;return Object.values(l).forEach(e=>{G9(e).forEach(r=>{var[c,a]=r,h=e.substring(c,a+1);h.includes(B9)&&o.add(h)})}),o}function go(l,o){var e,r=o.custom.find(h=>h.themeKey===l),c=(e=r==null?void 0:r.baseThemeKey)!==null&&e!==void 0?e:l,a=o.base.find(h=>h.themeKey===c);return a==null&&(p.error("No registered base theme found for theme key: '".concat(c,"'"),"Registered:",o.base.map(h=>h.themeKey),o.custom.map(h=>h.themeKey)),a=o.base.find(h=>h.themeKey===N),Q9(a,"Default base theme '".concat(N,"' is not registered"))),p.debug("Applied themes:",a.themeKey,r==null?void 0:r.themeKey),r==null?[a]:[a,r]}function po(){return[{name:"Default Dark",themeKey:N,styleContent:W7},{name:"Default Light",themeKey:J7,styleContent:$7}]}function lo(){var l=localStorage.getItem(O9);try{return l==null?null:JSON.parse(l)}catch{}return null}function G9(l){for(var o,e,r=[],c=(o=(e=Q7.exec(l))===null||e===void 0?void 0:e.index)!==null&&o!==void 0?o:0,a=0,h=0;h<l.length;h+=1)if(l[h]==="("?a+=1:l[h]===")"&&(a-=1),h===l.length-1||P.test(l[h+1])&&a===0){for(r.push([c,h]);h<l.length-1&&P.test(l[h+1]);)h+=1;c=h+1}return a!==0?(p.error("Unbalanced parentheses in css var expression",l),[]):r}function eo(l,o){return l.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(o),"'"))}function Ho(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,e=performance.now(),r=document.createElement("div");o.appendChild(r);var c=[...oo(l)];c.forEach((i,t)=>{var n="--".concat(R,"-").concat(t);r.style.setProperty(n,i)});var a={},h=window.getComputedStyle(r),s=i=>{var t="--".concat(R,"-").concat(c.indexOf(i)),n=h.getPropertyValue(t);return W9.normalizeCssColor(n)};return Object.entries(l).forEach(i=>{var[t,n]=i;a[t]=ro(s,n)}),r.remove(),p.debug("Resolved css variables",performance.now()-e,"ms"),a}function ro(l,o){var e=[],r=0;return G9(o).forEach(c=>{var[a,h]=c;r<a&&(e.push(o.substring(r,a)),r+=a-r);var s=o.substring(a,h+1);e.push(s.includes(B9)?l(s):s),r+=h-a+1}),e.length===0?o:e.join("")}function Vo(l){localStorage.setItem(O9,JSON.stringify(l))}function Lo(l,o){return"".concat(l,"_").concat(o)}function ao(){var l,o,e=(l=(o=lo())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&l!==void 0?l:Y7();p.debug("Preloading theme content:","'".concat(e,"'"));var r=document.createElement("style");r.innerHTML=e,document.head.appendChild(r)}function Mo(){var l=U9(document.body);Object.entries(X7).forEach(o=>{var[e,r]=o;document.body.style.removeProperty(e);var c=l(e),a=l(r),h=eo(c,a);document.body.style.setProperty(e,h)})}function E(l,o,e,r,c,a,h){try{var s=l[a](h),i=s.value}catch(t){e(t);return}s.done?o(i):Promise.resolve(i).then(r,c)}function co(l){return function(){var o=this,e=arguments;return new Promise(function(r,c){var a=l.apply(o,e);function h(i){E(a,r,c,h,s,"next",i)}function s(i){E(a,r,c,h,s,"throw",i)}h(void 0)})}}var y=E9.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),ho=d.createContext(null);function vo(l){var{apiUrl:o,children:e,failureElement:r,setGlobally:c=!1}=l,[a,h]=d.useState(!0),[s,i]=d.useState();return d.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=co(function*(){try{var H=(yield A(()=>import(o),[],import.meta.url)).default;y.info("API bootstrapped from",o),i(H),c&&(y.debug("API set globally"),globalThis.dh=H)}catch(m){y.error("Unable to bootstrap API",m)}h(!1)}),n.apply(this,arguments)}t()},[o,c]),a?v.jsx(F9,{}):s==null?r??v.jsxs(F7,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[v.jsx(O7,{closeButton:!1,children:"Error: Unable to load API"}),v.jsx(T7,{children:v.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):v.jsx(ho.Provider,{value:s,children:e})}ao();const so=O.lazy(()=>A(()=>import("./App-e41cdce4.js"),["./App-e41cdce4.js","./vendor-08550792.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-57ad0440.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-0353e828.css","./App-ddc6b344.css"],import.meta.url)),io=O.lazy(async()=>({default:(await A(()=>import("./index-1a1c9a06.js"),["./index-1a1c9a06.js","./vendor-08550792.js","./helpers-042e6b4d.js","./vendor-b58e2f70.css","./useUser-57ad0440.js","./monaco-9eb7d7d5.js","./monaco-0e9455f6.css","./useUser-0353e828.css","./plotly-251c118a.js","./index-6f63f804.css"],import.meta.url)).AppBootstrap})),F=new URL("../../jsapi/dh-core.js",document.baseURI),no=new URL("../../js-plugins",document.baseURI);T.render(v.jsx(vo,{apiUrl:F.href,setGlobally:!0,children:v.jsx(d.Suspense,{fallback:v.jsx(F9,{}),children:v.jsx(io,{serverUrl:F.origin,pluginsUrl:no.href,children:v.jsx(so,{})})})}),document.getElementById("root"));export{U8 as $,G9 as A,Lo as B,B9 as C,N as D,ao as E,eo as F,Ho as G,ro as H,W7 as I,$7 as J,ho as K,E9 as L,F7 as M,Q7 as N,vo as O,J4 as P,R9 as Q,c4 as R,X7 as S,x as T,o9 as U,W9 as V,P as W,zo as X,Z2 as Y,J as Z,X as _,F9 as a,T4 as a0,i1 as a1,h0 as a2,C2 as a3,uo as a4,w as a5,O4 as a6,$5 as a7,A6 as a8,X9 as a9,S2 as aA,P5 as aB,R5 as aC,D9 as aD,Q5 as aE,E5 as aF,t9 as aG,o4 as aH,b0 as aI,r2 as aJ,$ as aK,l9 as aL,l3 as aM,w9 as aN,x3 as aO,S8 as aP,$2 as aQ,Q3 as aR,u8 as aS,g4 as aT,m8 as aa,L9 as ab,H9 as ac,o5 as ad,e5 as ae,J0 as af,V9 as ag,X5 as ah,s4 as ai,n9 as aj,a9 as ak,p9 as al,r6 as am,u9 as an,g9 as ao,N9 as ap,T2 as aq,C9 as ar,D2 as as,b9 as at,F4 as au,G5 as av,U5 as aw,i8 as ax,Z3 as ay,k2 as az,T7 as b,O7 as c,A2 as d,G as e,M9 as f,Q9 as g,X0 as h,$9 as i,B5 as j,h6 as k,po as l,lo as m,go as n,Mo as o,Y7 as p,K2 as q,J7 as r,Vo as s,T9 as t,B7 as u,Y3 as v,O9 as w,R as x,U9 as y,oo as z};
10
+ //# sourceMappingURL=index-a35f1633.js.map