@deephaven/embed-chart 0.55.1-beta.11 → 0.55.1-beta.13

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{r as d,R as T,C as v,D as b,E as V,F as _9,_ as A,G as O}from"./vendor-d4
5
5
  `,j7=`:root{--dh-color-grid-bg: var(--dh-color-background);--dh-color-grid-header-bg: var(--dh-color-gray-100);--dh-color-grid-header-text: var(--dh-color-heading-text);--dh-color-grid-header-separator: var(--dh-color-gray-50);--dh-color-grid-header-separator-hover: var(--dh-color-gray-600);--dh-color-grid-header-separator-hidden-hover: var(--dh-color-accent-700);--dh-color-grid-header-sort-bar: var(--dh-color-visual-purple);--dh-color-grid-header-reverse-bar: var(--dh-color-visual-green);--dh-color-grid-header-bar-casing: var(--dh-color-gray-50);--dh-color-grid-row-0-bg: var(--dh-color-gray-300);--dh-color-grid-row-1-bg: var(--dh-color-gray-100);--dh-color-grid-row-hover-bg: var(--dh-color-gray-400);--dh-color-grid-row-hover-bg-selected: var( --dh-color-highlight-selected-hover );--dh-color-grid-selection: var(--dh-color-highlight-selected);--dh-color-grid-selection-outline: var(--dh-color-accent-900);--dh-color-grid-selection-outline-casing: var(--dh-color-gray-50);--dh-color-grid-scroll-bar-active-selection-tick: var(--dh-color-accent-400);--dh-color-grid-scroll-bar-bg: var(--dh-color-gray-100);--dh-color-grid-scroll-bar-hover-bg: var(--dh-color-gray-200);--dh-color-grid-scroll-bar-casing: var(--dh-color-gray-400);--dh-color-grid-scroll-bar-corner: var(--dh-color-gray-100);--dh-color-grid-scroll-bar: var(--dh-color-gray-500);--dh-color-grid-scroll-bar-hover: var(--dh-color-gray-600);--dh-color-grid-scroll-bar-active: var(--dh-color-gray-700);--dh-color-grid-text: var(--dh-color-text);--dh-color-grid-text-hyperlink: var(--dh-color-accent-1000);--dh-color-grid-text-pending: var(--dh-color-yellow-1300);--dh-color-grid-text-error: var(--dh-color-visual-negative);--dh-color-grid-date: var(--dh-color-visual-notice);--dh-color-grid-number-positive: var(--dh-color-visual-positive);--dh-color-grid-number-negative: var(--dh-color-visual-negative);--dh-color-grid-number-zero: var(--dh-color-visual-notice);--dh-color-grid-string-null: var(--dh-color-gray-600);--dh-color-grid-filter-bar-active-bg: hsla( var(--dh-color-accent-700-hsl), 0.5 );--dh-color-grid-filter-bar-active: var(--dh-color-accent-600);--dh-color-grid-filter-bar-expanded-bg: var(--dh-color-gray-200);--dh-color-grid-filter-bar-expanded-active-bg: hsla( var(--dh-color-accent-1000-hsl), 0.19 );--dh-color-grid-filter-bar-expanded-active-cell-bg: hsla( var(--dh-color-accent-700-hsl), 0.32 );--dh-color-grid-filter-bar-separator: var(--dh-color-gray-600);--dh-color-grid-filter-bar-error: var(--dh-color-visual-negative);--dh-color-grid-filter-icon: var(--dh-color-accent-600);--dh-color-grid-context-menu-sort-icon: var(--dh-color-visual-purple);--dh-color-grid-context-menu-reverse-icon: var(--dh-color-visual-green);--dh-color-grid-column-linker-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-grid-column-grouped-divider: var(--dh-color-gray-50);--dh-color-grid-tree-line: var(--dh-color-gray-500);--dh-color-grid-tree-marker: var(--dh-color-gray-700);--dh-color-grid-tree-marker-hover: var(--dh-color-gray-900);--dh-color-grid-floating-row: var(--dh-color-gray-300);--dh-color-grid-floating-row-bg: var(--dh-color-gray-200);--dh-color-grid-floating-divider-inner: var(--dh-color-gray-200);--dh-color-grid-floating-divider-outer: var(--dh-color-gray-50);--dh-color-grid-overflow-button: var(--dh-color-gray-700);--dh-color-grid-overflow-button-hover: var(--dh-color-gray-900);--dh-color-grid-data-bar-positive: var(--dh-color-visual-positive);--dh-color-grid-data-bar-negative: var(--dh-color-visual-negative);--dh-color-grid-data-bar-marker: var(--dh-color-white);--dh-color-grid-data-bar-zero-line: var(--dh-color-gray-300);--dh-color-grid-scrim: var(--dh-color-gray-50)}/*# sourceMappingURL=theme-dark-semantic-grid.css.map */
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=[G7,U7,I7,_7,j7,q7].join(`
8
- `),N="default-dark",dl="default-light",T9={"--dh-color-loading-spinner-primary":"#3b6bda","--dh-color-loading-spinner-secondary":"#f0f0ee80","--dh-color-background":"#1a171a","--dh-color-foreground":"#f0f0ee"},K7={"--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",H=E9.module("ThemeUtils"),B9="var(--",R="dh-tmp",$7=/\S/,P=/\s/;function J7(){var o=G9(document.body),l=Object.keys(T9).map(e=>"".concat(e,":").concat(o(e)));return":root{".concat(l.join(";"),"}")}function G9(o){var l=getComputedStyle(o);return function(r){var c,a=l.getPropertyValue(r);return a!==""?a:(c=T9[r])!==null&&c!==void 0?c:""}}function X7(o){var l=new Set;return Object.values(o).forEach(e=>{U9(e).forEach(r=>{var[c,a]=r,h=e.substring(c,a+1);h.includes(B9)&&l.add(h)})}),l}function ml(o,l){var e,r=l.custom.find(h=>h.themeKey===o),c=(e=r==null?void 0:r.baseThemeKey)!==null&&e!==void 0?e:o,a=l.base.find(h=>h.themeKey===c);return a==null&&(H.error("No registered base theme found for theme key: '".concat(c,"'"),"Registered:",l.base.map(h=>h.themeKey),l.custom.map(h=>h.themeKey)),a=l.base.find(h=>h.themeKey===N),Q9(a,"Default base theme '".concat(N,"' is not registered"))),H.debug("Applied themes:",a.themeKey,r==null?void 0:r.themeKey),r==null?[a]:[a,r]}function fl(){return[{name:"Default Dark",themeKey:N,styleContent:W7}]}function Q7(){var o=localStorage.getItem(O9);try{return o==null?null:JSON.parse(o)}catch{}return null}function U9(o){for(var l,e,r=[],c=(l=(e=$7.exec(o))===null||e===void 0?void 0:e.index)!==null&&l!==void 0?l:0,a=0,h=0;h<o.length;h+=1)if(o[h]==="("?a+=1:o[h]===")"&&(a-=1),h===o.length-1||P.test(o[h+1])&&a===0){for(r.push([c,h]);h<o.length-1&&P.test(o[h+1]);)h+=1;c=h+1}return a!==0?(H.error("Unbalanced parentheses in css var expression",o),[]):r}function Y7(o,l){return o.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(l),"'"))}function zl(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,e=performance.now(),r=document.createElement("div");l.appendChild(r);var c=[...X7(o)];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(o).forEach(i=>{var[t,n]=i;a[t]=ll(s,n)}),r.remove(),H.debug("Resolved css variables",performance.now()-e,"ms"),a}function ll(o,l){var e=[],r=0;return U9(l).forEach(c=>{var[a,h]=c;r<a&&(e.push(l.substring(r,a)),r+=a-r);var s=l.substring(a,h+1);e.push(s.includes(B9)?o(s):s),r+=h-a+1}),e.length===0?l:e.join("")}function ul(o){localStorage.setItem(O9,JSON.stringify(o))}function gl(o,l){return"".concat(o,"_").concat(l)}function ol(){var o,l,e=(o=(l=Q7())===null||l===void 0?void 0:l.preloadStyleContent)!==null&&o!==void 0?o:J7();H.debug("Preloading theme content:","'".concat(e,"'"));var r=document.createElement("style");r.id="theme-preload",r.innerHTML=e,document.head.appendChild(r)}function Hl(){var o=G9(document.body);Object.entries(K7).forEach(l=>{var[e,r]=l;document.body.style.removeProperty(e);var c=o(e),a=o(r),h=Y7(c,a);document.body.style.setProperty(e,h)})}function E(o,l,e,r,c,a,h){try{var s=o[a](h),i=s.value}catch(t){e(t);return}s.done?l(i):Promise.resolve(i).then(r,c)}function el(o){return function(){var l=this,e=arguments;return new Promise(function(r,c){var a=o.apply(l,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"),rl=d.createContext(null);function al(o){var{apiUrl:l,children:e,failureElement:r,setGlobally:c=!1}=o,[a,h]=d.useState(!0),[s,i]=d.useState();return d.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=el(function*(){try{var p=(yield A(()=>import(l),[],import.meta.url)).default;y.info("API bootstrapped from",l),i(p),c&&(y.debug("API set globally"),globalThis.dh=p)}catch(m){y.error("Unable to bootstrap API",m)}h(!1)}),n.apply(this,arguments)}t()},[l,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 ",l,", then refresh the page."]})})]}):v.jsx(rl.Provider,{value:s,children:e})}ol();const cl=O.lazy(()=>A(()=>import("./App-26d2e872.js"),["./App-26d2e872.js","./vendor-d4b2c5a9.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./useConnection-74989f4c.js","./plotly-3a491416.js","./useConnection-3654ef3d.css","./App-ddc6b344.css"],import.meta.url)),hl=O.lazy(async()=>({default:(await A(()=>import("./index-9b80445a.js"),["./index-9b80445a.js","./vendor-d4b2c5a9.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./useConnection-74989f4c.js","./plotly-3a491416.js","./useConnection-3654ef3d.css","./index-261d047c.css"],import.meta.url)).AppBootstrap})),F=new URL("../../jsapi/dh-core.js",document.baseURI),vl=new URL("/js-plugins",document.baseURI);T.render(v.jsx(al,{apiUrl:F.href,setGlobally:!0,children:v.jsx(d.Suspense,{fallback:v.jsx(F9,{}),children:v.jsx(hl,{serverUrl:F.origin,pluginsUrl:vl.href,children:v.jsx(cl,{})})})}),document.getElementById("root"));export{O4 as $,X7 as A,ml as B,B9 as C,N as D,fl as E,U9 as F,gl as G,Q7 as H,Hl as I,ol as J,Y7 as K,E9 as L,F7 as M,$7 as N,zl as O,ll as P,ul as Q,W7 as R,K7 as S,x as T,al as U,rl as V,P as W,J4 as X,tl as Y,W9 as Z,S as _,F9 as a,$5 as a0,A6 as a1,X9 as a2,m8 as a3,L9 as a4,p9 as a5,l5 as a6,e5 as a7,J0 as a8,V9 as a9,t9 as aA,l4 as aB,b0 as aC,r2 as aD,$ as aE,o9 as aF,o3 as aG,S9 as aH,x3 as aI,w8 as aJ,$2 as aK,Q3 as aL,u8 as aM,g4 as aN,nl as aO,T4 as aP,i1 as aQ,c4 as aR,l9 as aS,X5 as aa,s4 as ab,n9 as ac,a9 as ad,H9 as ae,R9 as af,r6 as ag,u9 as ah,g9 as ai,N9 as aj,T2 as ak,C9 as al,D2 as am,b9 as an,F4 as ao,U5 as ap,G5 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,T7 as b,O7 as c,J as d,X as e,G8 as f,A2 as g,h0 as h,$9 as i,U as j,M9 as k,Z2 as l,C2 as m,K2 as n,Q9 as o,X0 as p,B5 as q,h6 as r,dl as s,T9 as t,B7 as u,Y3 as v,O9 as w,R as x,J7 as y,G9 as z};
9
- //# sourceMappingURL=index-fff953c6.js.map
8
+ `),N="default-dark",dl="default-light",T9={"--dh-color-loading-spinner-primary":"#3b6bda","--dh-color-loading-spinner-secondary":"#f0f0ee80","--dh-color-background":"#1a171a","--dh-color-foreground":"#f0f0ee"},K7={"--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",H=E9.module("ThemeUtils"),B9="var(--",R="dh-tmp",$7=/\S/,P=/\s/;function J7(){var o=G9(document.body),l=Object.keys(T9).map(e=>"".concat(e,":").concat(o(e)));return":root{".concat(l.join(";"),"}")}function G9(o){var l=getComputedStyle(o);return function(r){var c,a=l.getPropertyValue(r);return a!==""?a:(c=T9[r])!==null&&c!==void 0?c:""}}function X7(o){var l=new Set;return Object.values(o).forEach(e=>{U9(e).forEach(r=>{var[c,a]=r,h=e.substring(c,a+1);h.includes(B9)&&l.add(h)})}),l}function ml(o,l){var e,r=l.custom.find(h=>h.themeKey===o),c=(e=r==null?void 0:r.baseThemeKey)!==null&&e!==void 0?e:o,a=l.base.find(h=>h.themeKey===c);return a==null&&(H.error("No registered base theme found for theme key: '".concat(c,"'"),"Registered:",l.base.map(h=>h.themeKey),l.custom.map(h=>h.themeKey)),a=l.base.find(h=>h.themeKey===N),Q9(a,"Default base theme '".concat(N,"' is not registered"))),H.debug("Applied themes:",a.themeKey,r==null?void 0:r.themeKey),r==null?[a]:[a,r]}function fl(){return[{name:"Default Dark",themeKey:N,styleContent:W7}]}function Q7(){var o=localStorage.getItem(O9);try{return o==null?null:JSON.parse(o)}catch{}return null}function U9(o){for(var l,e,r=[],c=(l=(e=$7.exec(o))===null||e===void 0?void 0:e.index)!==null&&l!==void 0?l:0,a=0,h=0;h<o.length;h+=1)if(o[h]==="("?a+=1:o[h]===")"&&(a-=1),h===o.length-1||P.test(o[h+1])&&a===0){for(r.push([c,h]);h<o.length-1&&P.test(o[h+1]);)h+=1;c=h+1}return a!==0?(H.error("Unbalanced parentheses in css var expression",o),[]):r}function Y7(o,l){return o.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(l),"'"))}function zl(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,e=performance.now(),r=document.createElement("div");l.appendChild(r);var c=[...X7(o)];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(o).forEach(i=>{var[t,n]=i;a[t]=ll(s,n)}),r.remove(),H.debug("Resolved css variables",performance.now()-e,"ms"),a}function ll(o,l){var e=[],r=0;return U9(l).forEach(c=>{var[a,h]=c;r<a&&(e.push(l.substring(r,a)),r+=a-r);var s=l.substring(a,h+1);e.push(s.includes(B9)?o(s):s),r+=h-a+1}),e.length===0?l:e.join("")}function ul(o){localStorage.setItem(O9,JSON.stringify(o))}function gl(o,l){return"".concat(o,"_").concat(l)}function ol(){var o,l,e=(o=(l=Q7())===null||l===void 0?void 0:l.preloadStyleContent)!==null&&o!==void 0?o:J7();H.debug("Preloading theme content:","'".concat(e,"'"));var r=document.createElement("style");r.id="theme-preload",r.innerHTML=e,document.head.appendChild(r)}function Hl(){var o=G9(document.body);Object.entries(K7).forEach(l=>{var[e,r]=l;document.body.style.removeProperty(e);var c=o(e),a=o(r),h=Y7(c,a);document.body.style.setProperty(e,h)})}function E(o,l,e,r,c,a,h){try{var s=o[a](h),i=s.value}catch(t){e(t);return}s.done?l(i):Promise.resolve(i).then(r,c)}function el(o){return function(){var l=this,e=arguments;return new Promise(function(r,c){var a=o.apply(l,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"),rl=d.createContext(null);function al(o){var{apiUrl:l,children:e,failureElement:r,setGlobally:c=!1}=o,[a,h]=d.useState(!0),[s,i]=d.useState();return d.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=el(function*(){try{var p=(yield A(()=>import(l),[],import.meta.url)).default;y.info("API bootstrapped from",l),i(p),c&&(y.debug("API set globally"),globalThis.dh=p)}catch(m){y.error("Unable to bootstrap API",m)}h(!1)}),n.apply(this,arguments)}t()},[l,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 ",l,", then refresh the page."]})})]}):v.jsx(rl.Provider,{value:s,children:e})}ol();const cl=O.lazy(()=>A(()=>import("./App-5242446a.js"),["./App-5242446a.js","./vendor-d4b2c5a9.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./useConnection-f339eec0.js","./plotly-3a491416.js","./useConnection-3654ef3d.css","./App-bad0fe82.css"],import.meta.url)),hl=O.lazy(async()=>({default:(await A(()=>import("./index-7981b625.js"),["./index-7981b625.js","./vendor-d4b2c5a9.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./useConnection-f339eec0.js","./plotly-3a491416.js","./useConnection-3654ef3d.css","./index-261d047c.css"],import.meta.url)).AppBootstrap})),F=new URL("../../jsapi/dh-core.js",document.baseURI),vl=new URL("/js-plugins",document.baseURI);T.render(v.jsx(al,{apiUrl:F.href,setGlobally:!0,children:v.jsx(d.Suspense,{fallback:v.jsx(F9,{}),children:v.jsx(hl,{serverUrl:F.origin,pluginsUrl:vl.href,children:v.jsx(cl,{})})})}),document.getElementById("root"));export{O4 as $,X7 as A,ml as B,B9 as C,N as D,fl as E,U9 as F,gl as G,Q7 as H,Hl as I,ol as J,Y7 as K,E9 as L,F7 as M,$7 as N,zl as O,ll as P,ul as Q,W7 as R,K7 as S,x as T,al as U,rl as V,P as W,J4 as X,tl as Y,W9 as Z,S as _,F9 as a,$5 as a0,A6 as a1,X9 as a2,m8 as a3,L9 as a4,p9 as a5,l5 as a6,e5 as a7,J0 as a8,V9 as a9,t9 as aA,l4 as aB,b0 as aC,r2 as aD,$ as aE,o9 as aF,o3 as aG,S9 as aH,x3 as aI,w8 as aJ,$2 as aK,Q3 as aL,u8 as aM,g4 as aN,nl as aO,T4 as aP,i1 as aQ,c4 as aR,l9 as aS,X5 as aa,s4 as ab,n9 as ac,a9 as ad,H9 as ae,R9 as af,r6 as ag,u9 as ah,g9 as ai,N9 as aj,T2 as ak,C9 as al,D2 as am,b9 as an,F4 as ao,U5 as ap,G5 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,T7 as b,O7 as c,J as d,X as e,G8 as f,A2 as g,h0 as h,$9 as i,U as j,M9 as k,Z2 as l,C2 as m,K2 as n,Q9 as o,X0 as p,B5 as q,h6 as r,dl as s,T9 as t,B7 as u,Y3 as v,O9 as w,R as x,J7 as y,G9 as z};
9
+ //# sourceMappingURL=index-cf041b37.js.map