@deephaven/embed-widget 0.59.1-beta.3 → 0.59.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.
- package/build/assets/{App-d9b829b7.js → App-478d096f.js} +2 -2
- package/build/assets/{App-d9b829b7.js.map → App-478d096f.js.map} +1 -1
- package/build/assets/{IrisGridModelFactory-08259eaa.js → IrisGridModelFactory-bf9684d0.js} +2 -2
- package/build/assets/{IrisGridModelFactory-08259eaa.js.map → IrisGridModelFactory-bf9684d0.js.map} +1 -1
- package/build/assets/{WidgetView-d13ab00f.js → WidgetView-d2b3fbfa.js} +2 -2
- package/build/assets/{WidgetView-d13ab00f.js.map → WidgetView-d2b3fbfa.js.map} +1 -1
- package/build/assets/{index-d6a38fca.js → index-2f3644e1.js} +2 -2
- package/build/assets/{index-d6a38fca.js.map → index-2f3644e1.js.map} +1 -1
- package/build/assets/{index-d2774692.js → index-9e246861.js} +2 -2
- package/build/assets/{index-d2774692.js.map → index-9e246861.js.map} +1 -1
- package/build/assets/{index-8579cfa4.js → index-a22eb3f5.js} +2 -2
- package/build/assets/{index-8579cfa4.js.map → index-a22eb3f5.js.map} +1 -1
- package/build/assets/index-bdb20aa3.css +1 -0
- package/build/assets/{usePlugins-939066ff.js → usePlugins-816cdf0b.js} +2 -2
- package/build/assets/{usePlugins-939066ff.js.map → usePlugins-816cdf0b.js.map} +1 -1
- package/build/index.html +1 -1
- package/package.json +15 -15
- package/build/assets/index-e27eecbc.css +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{L as m,a as p}from"./index-
|
|
2
|
-
//# sourceMappingURL=WidgetView-
|
|
1
|
+
import{L as m,a as p}from"./index-2f3644e1.js";import{r as c,C as l}from"./vendor-d09ca476.js";import{T as g,s as h,q as E}from"./usePlugins-816cdf0b.js";var T=m.module("ErrorBoundary");class b extends c.Component{static getDerivedStateFromError(r){return{error:r}}constructor(r){super(r),this.state={error:void 0}}componentDidCatch(r,t){var{onError:e}=this.props;T.error("Error caught by ErrorBoundary",r,t),e==null||e(r,t)}render(){var{children:r,className:t,fallback:e}=this.props,{error:o}=this.state;return o!=null?e??l.jsx("div",{className:t,children:l.jsx(p,{errorMessage:"".concat(o),isLoading:!1,isLoaded:!1})}):r}}var w=1e4;function F(a,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w;return new Promise((e,o)=>{var n,s=setTimeout(()=>{var i;(i=n)===null||i===void 0||i(),o(new g("Timeout looking for variable ".concat(r)))},t);function v(i){var u,d=i.created.find(f=>f.title===r);clearTimeout(s),(u=n)===null||u===void 0||u(),d!=null?e(d):o(new Error("Variable ".concat(r," not found")))}n=a.subscribeToFieldUpdates(v)})}function C(a){var{fetch:r,type:t}=a,e=h(),o=c.useMemo(()=>[...e.values()].filter(E).find(s=>[s.supportedTypes].flat().includes(t)),[e,t]);if(o!=null){var n=o.component;return l.jsx(n,{fetch:r})}throw new Error("Unknown widget type '".concat(t,"'"))}export{b as E,w as F,C as W,F as f};
|
|
2
|
+
//# sourceMappingURL=WidgetView-d2b3fbfa.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetView-
|
|
1
|
+
{"version":3,"file":"WidgetView-d2b3fbfa.js","sources":["../../../components/dist/ErrorBoundary.js","../../../jsapi-utils/dist/ConnectionUtils.js","../../../plugin/dist/WidgetView.js"],"sourcesContent":["import Log from '@deephaven/log';\nimport React, { Component } from 'react';\nimport LoadingOverlay from \"./LoadingOverlay.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar log = Log.module('ErrorBoundary');\n/**\n * Error boundary for catching render errors in React. Displays an error message if an error is caught by default, or you can specify a fallback component to render.\n * https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary\n */\nexport class ErrorBoundary extends Component {\n static getDerivedStateFromError(error) {\n return {\n error\n };\n }\n constructor(props) {\n super(props);\n this.state = {\n error: undefined\n };\n }\n componentDidCatch(error, errorInfo) {\n var {\n onError\n } = this.props;\n log.error('Error caught by ErrorBoundary', error, errorInfo);\n onError === null || onError === void 0 ? void 0 : onError(error, errorInfo);\n }\n render() {\n var {\n children,\n className,\n fallback\n } = this.props;\n var {\n error\n } = this.state;\n if (error != null) {\n if (fallback != null) {\n return fallback;\n }\n return /*#__PURE__*/_jsx(\"div\", {\n className: className,\n children: /*#__PURE__*/_jsx(LoadingOverlay, {\n errorMessage: \"\".concat(error),\n isLoading: false,\n isLoaded: false\n })\n });\n }\n return children;\n }\n}\nexport default ErrorBoundary;\n//# sourceMappingURL=ErrorBoundary.js.map","import { TimeoutError } from '@deephaven/utils';\n\n/** Default timeout for fetching a variable definition */\nexport var FETCH_TIMEOUT = 10000;\n\n/**\n * Fetch the definition for a variable given a connection. Subscribes to field updates and triggers when the variable is found.\n * @param connection Connection to get the variable from\n * @param name Name of the definition to fetch\n * @param timeout Timeout for the fetch\n * @returns Promise the resolves to the variable definition if found, or rejects if there's an error or the timeout has exceeded\n */\nexport function fetchVariableDefinition(connection, name) {\n var timeout = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : FETCH_TIMEOUT;\n return new Promise((resolve, reject) => {\n var removeListener;\n var timeoutId = setTimeout(() => {\n var _removeListener;\n (_removeListener = removeListener) === null || _removeListener === void 0 ? void 0 : _removeListener();\n reject(new TimeoutError(\"Timeout looking for variable \".concat(name)));\n }, timeout);\n\n /**\n * Checks if the variable we're looking for is in the changes, and resolves the promise if it does\n * @param changes Variables changes that have occurred\n */\n function handleFieldUpdates(changes) {\n var _removeListener2;\n var definition = changes.created.find(def => def.title === name);\n clearTimeout(timeoutId);\n (_removeListener2 = removeListener) === null || _removeListener2 === void 0 ? void 0 : _removeListener2();\n if (definition != null) {\n resolve(definition);\n } else {\n reject(new Error(\"Variable \".concat(name, \" not found\")));\n }\n }\n removeListener = connection.subscribeToFieldUpdates(handleFieldUpdates);\n });\n}\n//# sourceMappingURL=ConnectionUtils.js.map","import React, { useMemo } from 'react';\nimport usePlugins from \"./usePlugins.js\";\nimport { isWidgetPlugin } from \"./PluginTypes.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function WidgetView(_ref) {\n var {\n fetch,\n type\n } = _ref;\n var plugins = usePlugins();\n var plugin = useMemo(() => [...plugins.values()].filter(isWidgetPlugin).find(p => [p.supportedTypes].flat().includes(type)), [plugins, type]);\n if (plugin != null) {\n var Component = plugin.component;\n return /*#__PURE__*/_jsx(Component, {\n fetch: fetch\n });\n }\n throw new Error(\"Unknown widget type '\".concat(type, \"'\"));\n}\nexport default WidgetView;\n//# sourceMappingURL=WidgetView.js.map"],"names":["log","Log","ErrorBoundary","Component","error","props","errorInfo","onError","children","className","fallback","_jsx","LoadingOverlay","FETCH_TIMEOUT","fetchVariableDefinition","connection","name","timeout","resolve","reject","removeListener","timeoutId","_removeListener","TimeoutError","handleFieldUpdates","changes","_removeListener2","definition","def","WidgetView","_ref","fetch","type","plugins","usePlugins","plugin","useMemo","isWidgetPlugin","p"],"mappings":"0JAIA,IAAIA,EAAMC,EAAI,OAAO,eAAe,EAK7B,MAAMC,UAAsBC,EAAAA,SAAU,CAC3C,OAAO,yBAAyBC,EAAO,CACrC,MAAO,CACL,MAAAA,CACN,CACG,CACD,YAAYC,EAAO,CACjB,MAAMA,CAAK,EACX,KAAK,MAAQ,CACX,MAAO,MACb,CACG,CACD,kBAAkBD,EAAOE,EAAW,CAClC,GAAI,CACF,QAAAC,CACN,EAAQ,KAAK,MACTP,EAAI,MAAM,gCAAiCI,EAAOE,CAAS,EAC3DC,GAAY,MAAsCA,EAAQH,EAAOE,CAAS,CAC3E,CACD,QAAS,CACP,GAAI,CACF,SAAAE,EACA,UAAAC,EACA,SAAAC,CACN,EAAQ,KAAK,MACL,CACF,MAAAN,CACN,EAAQ,KAAK,MACT,OAAIA,GAAS,KACPM,GAGgBC,EAAAA,IAAK,MAAO,CAC9B,UAAWF,EACX,SAAuBE,EAAI,IAACC,EAAgB,CAC1C,aAAc,GAAG,OAAOR,CAAK,EAC7B,UAAW,GACX,SAAU,EACpB,CAAS,CACT,CAAO,EAEII,CACR,CACH,CCjDU,IAACK,EAAgB,IASpB,SAASC,EAAwBC,EAAYC,EAAM,CACxD,IAAIC,EAAU,UAAU,OAAS,GAAK,UAAU,CAAC,IAAM,OAAY,UAAU,CAAC,EAAIJ,EAClF,OAAO,IAAI,QAAQ,CAACK,EAASC,IAAW,CACtC,IAAIC,EACAC,EAAY,WAAW,IAAM,CAC/B,IAAIC,GACHA,EAAkBF,KAAoB,MAAQE,IAAoB,QAAkBA,IACrFH,EAAO,IAAII,EAAa,gCAAgC,OAAOP,CAAI,CAAC,CAAC,CACtE,EAAEC,CAAO,EAMV,SAASO,EAAmBC,EAAS,CACnC,IAAIC,EACAC,EAAaF,EAAQ,QAAQ,KAAKG,GAAOA,EAAI,QAAUZ,CAAI,EAC/D,aAAaK,CAAS,GACrBK,EAAmBN,KAAoB,MAAQM,IAAqB,QAAkBA,IACnFC,GAAc,KAChBT,EAAQS,CAAU,EAElBR,EAAO,IAAI,MAAM,YAAY,OAAOH,EAAM,YAAY,CAAC,CAAC,CAE3D,CACDI,EAAiBL,EAAW,wBAAwBS,CAAkB,CAC1E,CAAG,CACH,CCnCO,SAASK,EAAWC,EAAM,CAC/B,GAAI,CACF,MAAAC,EACA,KAAAC,CACD,EAAGF,EACAG,EAAUC,IACVC,EAASC,EAAAA,QAAQ,IAAM,CAAC,GAAGH,EAAQ,OAAQ,CAAA,EAAE,OAAOI,CAAc,EAAE,KAAKC,GAAK,CAACA,EAAE,cAAc,EAAE,KAAI,EAAG,SAASN,CAAI,CAAC,EAAG,CAACC,EAASD,CAAI,CAAC,EAC5I,GAAIG,GAAU,KAAM,CAClB,IAAIhC,EAAYgC,EAAO,UACvB,OAAoBxB,EAAAA,IAAKR,EAAW,CAClC,MAAO4B,CACb,CAAK,EAEH,MAAM,IAAI,MAAM,wBAAwB,OAAOC,EAAM,GAAG,CAAC,CAC3D"}
|
|
@@ -12,5 +12,5 @@ import{r as m,R as B,C as s,D as N,E as b,F as Ko,_ as y,G as U}from"./vendor-d0
|
|
|
12
12
|
`,r9=`:root{--dh-color-grid-bg: var(--dh-color-content-bg);--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-300);--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-50);--dh-color-grid-row-1-bg: var(--dh-color-gray-100);--dh-color-grid-row-hover-bg: var(--dh-color-highlight-hover);--dh-color-grid-row-hover-bg-selected: var( --dh-color-highlight-selected-hover );--dh-color-grid-row-shadow-alpha: 0.07;--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-400);--dh-color-grid-scroll-bar-hover: var(--dh-color-gray-500);--dh-color-grid-scroll-bar-active: var(--dh-color-gray-600);--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-modified);--dh-color-grid-text-error: var(--dh-color-visual-negative);--dh-color-grid-date: var(--dh-color-visual-purple);--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-purple);--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.45 );--dh-color-grid-filter-bar-active: var(--dh-color-accent-700);--dh-color-grid-filter-bar-expanded-bg: var(--dh-color-gray-50);--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-200)}/*# sourceMappingURL=theme-light-semantic-grid.css.map */
|
|
13
13
|
`,h9=`:root{--dh-color-loading-spinner-primary: var(--dh-color-accent-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-logo-img: var(--dh-logo-light-img);--dh-color-login-form-bg: var(--dh-color-gray-200);--dh-color-login-status-message: var(--dh-color-gray-600);--dh-color-login-logo-bg: var(--dh-color-gray-50);--dh-color-login-footer-fg: var(--dh-color-gray-700);--dh-color-random-area-plot-animation-fg-fill: hsla( var(--dh-color-accent-hsl), 0.08 );--dh-color-random-area-plot-animation-fg-stroke: hsla( var(--dh-color-accent-hsl), 0.2 );--dh-color-random-area-plot-animation-bg: var(--dh-color-gray-75);--dh-color-random-area-plot-animation-grid: var(--dh-color-gray-300);--dh-color-action-bg: var(--dh-color-gray-75);--dh-color-action-fg: var(--dh-color-text);--dh-color-action-border: var(--dh-color-border);--dh-color-action-down-bg: var(--dh-color-gray-300);--dh-color-action-hover-bg: var(--dh-color-gray-50);--dh-color-action-hover-fg: var(--dh-color-text-hover);--dh-color-action-hover-border: var(--dh-color-hover-border);--dh-color-action-active-bg: var(--dh-color-accent-bg);--dh-color-action-active-fg: var(--dh-color-accent-contrast);--dh-color-action-active-border: var(--dh-color-accent-bg);--dh-color-action-active-hover-bg: var(--dh-color-accent-hover-bg);--dh-color-action-active-hover-fg: var(--dh-color-accent-contrast);--dh-color-action-active-hover-border: var(--dh-color-accent-hover-bg);--dh-color-action-disabled-bg: transparent;--dh-color-action-disabled-fg: var(--dh-color-text-disabled);--dh-color-action-disabled-border: var(--dh-color-gray-300);--dh-color-icon-fg: var(--dh-color-gray-700);--dh-color-icon-disabled-fg: var(--dh-color-gray-400);--dh-color-input-bg: var(--dh-color-gray-50);--dh-color-input-fg: var(--dh-color-text);--dh-color-input-border: var(--dh-color-border);--dh-color-input-placeholder: var(--dh-color-gray-600);--dh-color-input-active-bg: var(--dh-color-input-bg);--dh-color-input-disabled-bg: var(--dh-color-disabled-bg);--dh-color-input-disabled-border: transparent;--dh-color-input-disabled-fg: var(--dh-color-text-disabled);--dh-color-input-hover-border: var(--dh-color-gray-600);--dh-color-input-focus-border: var(--dh-color-border-focus);--dh-color-search-icon: var(--dh-color-fg);--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-label-text: var(--dh-color-gray-700);--dh-color-selector-fg: var(--dh-color-icon-fg);--dh-color-selector-bg: var(--dh-color-gray-75);--dh-color-selector-hover-bg: var(--dh-color-gray-50);--dh-color-selector-hover-fg: var(--dh-color-gray-900);--dh-color-selector-disabled-fg: var(--dh-color-icon-disabled-fg);--dh-color-item-list-bg: transparent;--dh-color-item-list-active-bg: var(--dh-color-highlight-active);--dh-color-item-list-hover-bg: var(--dh-color-highlight-hover);--dh-color-item-list-selected-fg: var(--dh-color-text);--dh-color-item-list-selected-bg: var(--dh-color-highlight-selected);--dh-color-item-list-selected-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-item-list-selected-inactive-bg: var(--dh-color-gray-200);--dh-color-item-list-selected-border: hsla(var(--dh-color-accent-hsl), 0.6);--dh-color-item-list-drop-target-fg: var(--dh-color-white);--dh-color-item-list-keyboard-selected-bg: hsla( var(--dh-color-accent-hsl), 0.5 );--dh-color-golden-layout-tab-header-bg: var(--dh-color-gray-200);--dh-color-golden-layout-tab-bg: var(--dh-color-gray-100);--dh-color-golden-layout-tab-selected-bg: var(--dh-color-content-bg);--dh-color-menu-item-fg: var(--dh-color-gray-700);--dh-color-hr: var(--dh-color-gray-300);--dh-color-dialog-title-fg: var(--dh-color-heading-text);--dh-color-dialog-fg: var(--dh-color-text);--dh-color-popover-bg: var(--dh-color-gray-50);--dh-color-tooltip-bg: var(--dh-color-gray-50);--dh-color-tooltip-fg: var(--dh-color-fg);--dh-color-tooltip-box-shadow: var(--dh-color-dropshadow);--dh-color-well-bg: hsla(var(--dh-color-visual-gray-hsl), 0.02);--dh-color-well-border: hsla(var(--dh-color-visual-gray-hsl), 0.05)}/*# sourceMappingURL=theme-light-components.css.map */
|
|
14
14
|
`;var c9=[Ql,Yl,o9,l9,r9,h9].join(`
|
|
15
|
-
`),w="default-dark",e9="default-light",d={blue:{500:"#2f5bc0",400:"#254ba4",600:"#3b6bda"},red:{600:"#c73f61"},gray:{50:"#1a171a",75:"#211f22",300:"#373438",400:"#403e41",500:"#5b5a5c",600:"#929192",700:"#c0bfbf",800:"#f0f0ee",900:"#fcfcfa"}},a9={"--dh-color-accent-contrast":d.gray[900],"--dh-color-accent-bg":d.blue[600],"--dh-color-accent-hover-bg":d.blue[500],"--dh-color-accent-down-bg":d.blue[400],"--dh-color-accent-key-focus-bg":d.blue[500],"--dh-color-negative-bg":d.red[600],"--dh-color-loading-spinner-primary":d.blue[600],"--dh-color-loading-spinner-secondary":"".concat(d.gray[800],"80"),"--dh-color-bg":d.gray[50],"--dh-color-fg":d.gray[800],"--dh-color-input-bg":d.gray[500],"--dh-color-input-fg":d.gray[800],"--dh-color-input-disabled-bg":d.gray[300],"--dh-color-input-border":d.gray[600],"--dh-color-input-placeholder":d.gray[600],"--dh-color-input-focus-border":"".concat(d.blue[600],"d9"),"--dh-color-login-form-bg":d.gray[400],"--dh-color-login-status-message":d.gray[600],"--dh-color-login-logo-bg":d.gray[900],"--dh-color-login-footer-fg":d.gray[700],"--dh-color-random-area-plot-animation-fg-fill":"".concat(d.blue[600],"14"),"--dh-color-random-area-plot-animation-fg-stroke":"".concat(d.blue[600],"33"),"--dh-color-random-area-plot-animation-bg":d.gray[75],"--dh-color-random-area-plot-animation-grid":d.gray[300]},s9={"--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"},Io="deephaven.themeCache",V=Uo.module("ThemeUtils"),_o="var(--",P="dh-tmp",v9=/\S/,E=/\s/;function d9(l){var o=jo(document.body,l),r=Object.keys(l).map(h=>"".concat(h,":").concat(o(h)));return":root{".concat(r.join(";"),"}")}function jo(l,o){var r=getComputedStyle(l);return function(e){var c,a=r.getPropertyValue(e);return a!==""?a:(c=o[e])!==null&&c!==void 0?c:""}}function F(l,o){var r=document.createElement("style");r.id=l,r.innerHTML=o,document.head.appendChild(r)}function i9(l){var o=new Set;return Object.values(l).forEach(r=>{qo(r).forEach(h=>{var[e,c]=h,a=r.substring(e,c+1);a.includes(_o)&&o.add(a)})}),o}function N9(l,o){var r,h=o.custom.find(a=>a.themeKey===l),e=(r=h==null?void 0:h.baseThemeKey)!==null&&r!==void 0?r:l,c=o.base.find(a=>a.themeKey===e);return c==null&&(V.error("No registered base theme found for theme key: '".concat(e,"'"),"Registered:",o.base.map(a=>a.themeKey),o.custom.map(a=>a.themeKey)),c=o.base.find(a=>a.themeKey===w),rl(c,"Default base theme '".concat(w,"' is not registered"))),V.debug("Applied themes:",c.themeKey,h==null?void 0:h.themeKey),h==null?[c]:[c,h]}function A9(){return[{name:"Default Dark",themeKey:w,styleContent:Xl},{name:"Default Light",themeKey:e9,styleContent:c9}]}function n9(){var l=localStorage.getItem(Io);try{return l==null?null:JSON.parse(l)}catch{}return null}function qo(l){for(var o,r,h=[],e=(o=(r=v9.exec(l))===null||r===void 0?void 0:r.index)!==null&&o!==void 0?o:0,c=0,a=0;a<l.length;a+=1)if(l[a]==="("?c+=1:l[a]===")"&&(c-=1),a===l.length-1||E.test(l[a+1])&&c===0){for(h.push([e,a]);a<l.length-1&&E.test(l[a+1]);)a+=1;e=a+1}return c!==0?(V.error("Unbalanced parentheses in css var expression",l),[]):h}function t9(l,o){return l.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(o),"'"))}function w9(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=performance.now(),e=document.createElement("div");o.appendChild(e);var c=[...i9(l)];c.forEach((t,n)=>{var u="--".concat(P,"-").concat(n);e.style.setProperty(u,t)});var a={},v=window.getComputedStyle(e),i=t=>{var n="--".concat(P,"-").concat(c.indexOf(t)),u=v.getPropertyValue(n);return Xo.normalizeCssColor(u,r)};return Object.entries(l).forEach(t=>{var[n,u]=t;a[n]=m9(i,u)}),e.remove(),V.debug("Resolved css variables",performance.now()-h,"ms"),a}function m9(l,o){var r=[],h=0;return qo(o).forEach(e=>{var[c,a]=e;h<c&&(r.push(o.substring(h,c)),h+=c-h);var v=o.substring(c,a+1);r.push(v.includes(_o)?l(v):v),h+=a-c+1}),r.length===0?o:r.join("")}function S9(l){localStorage.setItem(Io,JSON.stringify(l))}function C9(l,o){return"".concat(l,"_").concat(o)}function g9(){var l,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a9,r=(l=n9())===null||l===void 0?void 0:l.preloadStyleContent,h=d9(o);V.debug("Preloading theme content:",{defaultPreloadStyleContent:h,previousPreloadStyleContent:r}),F("theme-preload-defaults",h),r!=null&&F("theme-preload-previous",r)}function k9(l){var o=jo(document.body,l);Object.entries(s9).forEach(r=>{var[h,e]=r;document.body.style.removeProperty(h);var c=o(h),a=o(e),v=t9(c,a);document.body.style.setProperty(h,v)})}function T(l,o,r,h,e,c,a){try{var v=l[c](a),i=v.value}catch(t){r(t);return}v.done?o(i):Promise.resolve(i).then(h,e)}function f9(l){return function(){var o=this,r=arguments;return new Promise(function(h,e){var c=l.apply(o,r);function a(i){T(c,h,e,a,v,"next",i)}function v(i){T(c,h,e,a,v,"throw",i)}a(void 0)})}}var x=Uo.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),u9=m.createContext(null);function z9(l){var{apiUrl:o,children:r,failureElement:h,setGlobally:e=!1}=l,[c,a]=m.useState(!0),[v,i]=m.useState();return m.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=f9(function*(){try{var u=(yield y(()=>import(o),[],import.meta.url)).default;x.info("API bootstrapped from",o),i(u),e&&(x.debug("API set globally"),globalThis.dh=u)}catch(g){x.error("Unable to bootstrap API",g)}a(!1)}),n.apply(this,arguments)}t()},[o,e]),c?s.jsx(Go,{}):v==null?h??s.jsxs(Ul,{isOpen:!0,className:"modal-dialog-centered",children:[s.jsx(Il,{closeButton:!1,children:"Error: Unable to load API"}),s.jsx(Gl,{children:s.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):s.jsx(u9.Provider,{value:v,children:r})}g9();const p9=U.lazy(()=>y(()=>import("./App-
|
|
16
|
-
//# sourceMappingURL=index-
|
|
15
|
+
`),w="default-dark",e9="default-light",d={blue:{500:"#2f5bc0",400:"#254ba4",600:"#3b6bda"},red:{600:"#c73f61"},gray:{50:"#1a171a",75:"#211f22",300:"#373438",400:"#403e41",500:"#5b5a5c",600:"#929192",700:"#c0bfbf",800:"#f0f0ee",900:"#fcfcfa"}},a9={"--dh-color-accent-contrast":d.gray[900],"--dh-color-accent-bg":d.blue[600],"--dh-color-accent-hover-bg":d.blue[500],"--dh-color-accent-down-bg":d.blue[400],"--dh-color-accent-key-focus-bg":d.blue[500],"--dh-color-negative-bg":d.red[600],"--dh-color-loading-spinner-primary":d.blue[600],"--dh-color-loading-spinner-secondary":"".concat(d.gray[800],"80"),"--dh-color-bg":d.gray[50],"--dh-color-fg":d.gray[800],"--dh-color-input-bg":d.gray[500],"--dh-color-input-fg":d.gray[800],"--dh-color-input-disabled-bg":d.gray[300],"--dh-color-input-border":d.gray[600],"--dh-color-input-placeholder":d.gray[600],"--dh-color-input-focus-border":"".concat(d.blue[600],"d9"),"--dh-color-login-form-bg":d.gray[400],"--dh-color-login-status-message":d.gray[600],"--dh-color-login-logo-bg":d.gray[900],"--dh-color-login-footer-fg":d.gray[700],"--dh-color-random-area-plot-animation-fg-fill":"".concat(d.blue[600],"14"),"--dh-color-random-area-plot-animation-fg-stroke":"".concat(d.blue[600],"33"),"--dh-color-random-area-plot-animation-bg":d.gray[75],"--dh-color-random-area-plot-animation-grid":d.gray[300]},s9={"--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"},Io="deephaven.themeCache",V=Uo.module("ThemeUtils"),_o="var(--",P="dh-tmp",v9=/\S/,E=/\s/;function d9(l){var o=jo(document.body,l),r=Object.keys(l).map(h=>"".concat(h,":").concat(o(h)));return":root{".concat(r.join(";"),"}")}function jo(l,o){var r=getComputedStyle(l);return function(e){var c,a=r.getPropertyValue(e);return a!==""?a:(c=o[e])!==null&&c!==void 0?c:""}}function F(l,o){var r=document.createElement("style");r.id=l,r.innerHTML=o,document.head.appendChild(r)}function i9(l){var o=new Set;return Object.values(l).forEach(r=>{qo(r).forEach(h=>{var[e,c]=h,a=r.substring(e,c+1);a.includes(_o)&&o.add(a)})}),o}function N9(l,o){var r,h=o.custom.find(a=>a.themeKey===l),e=(r=h==null?void 0:h.baseThemeKey)!==null&&r!==void 0?r:l,c=o.base.find(a=>a.themeKey===e);return c==null&&(V.error("No registered base theme found for theme key: '".concat(e,"'"),"Registered:",o.base.map(a=>a.themeKey),o.custom.map(a=>a.themeKey)),c=o.base.find(a=>a.themeKey===w),rl(c,"Default base theme '".concat(w,"' is not registered"))),V.debug("Applied themes:",c.themeKey,h==null?void 0:h.themeKey),h==null?[c]:[c,h]}function A9(){return[{name:"Default Dark",themeKey:w,styleContent:Xl},{name:"Default Light",themeKey:e9,styleContent:c9}]}function n9(){var l=localStorage.getItem(Io);try{return l==null?null:JSON.parse(l)}catch{}return null}function qo(l){for(var o,r,h=[],e=(o=(r=v9.exec(l))===null||r===void 0?void 0:r.index)!==null&&o!==void 0?o:0,c=0,a=0;a<l.length;a+=1)if(l[a]==="("?c+=1:l[a]===")"&&(c-=1),a===l.length-1||E.test(l[a+1])&&c===0){for(h.push([e,a]);a<l.length-1&&E.test(l[a+1]);)a+=1;e=a+1}return c!==0?(V.error("Unbalanced parentheses in css var expression",l),[]):h}function t9(l,o){return l.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(o),"'"))}function w9(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=performance.now(),e=document.createElement("div");o.appendChild(e);var c=[...i9(l)];c.forEach((t,n)=>{var u="--".concat(P,"-").concat(n);e.style.setProperty(u,t)});var a={},v=window.getComputedStyle(e),i=t=>{var n="--".concat(P,"-").concat(c.indexOf(t)),u=v.getPropertyValue(n);return Xo.normalizeCssColor(u,r)};return Object.entries(l).forEach(t=>{var[n,u]=t;a[n]=m9(i,u)}),e.remove(),V.debug("Resolved css variables",performance.now()-h,"ms"),a}function m9(l,o){var r=[],h=0;return qo(o).forEach(e=>{var[c,a]=e;h<c&&(r.push(o.substring(h,c)),h+=c-h);var v=o.substring(c,a+1);r.push(v.includes(_o)?l(v):v),h+=a-c+1}),r.length===0?o:r.join("")}function S9(l){localStorage.setItem(Io,JSON.stringify(l))}function C9(l,o){return"".concat(l,"_").concat(o)}function g9(){var l,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a9,r=(l=n9())===null||l===void 0?void 0:l.preloadStyleContent,h=d9(o);V.debug("Preloading theme content:",{defaultPreloadStyleContent:h,previousPreloadStyleContent:r}),F("theme-preload-defaults",h),r!=null&&F("theme-preload-previous",r)}function k9(l){var o=jo(document.body,l);Object.entries(s9).forEach(r=>{var[h,e]=r;document.body.style.removeProperty(h);var c=o(h),a=o(e),v=t9(c,a);document.body.style.setProperty(h,v)})}function T(l,o,r,h,e,c,a){try{var v=l[c](a),i=v.value}catch(t){r(t);return}v.done?o(i):Promise.resolve(i).then(h,e)}function f9(l){return function(){var o=this,r=arguments;return new Promise(function(h,e){var c=l.apply(o,r);function a(i){T(c,h,e,a,v,"next",i)}function v(i){T(c,h,e,a,v,"throw",i)}a(void 0)})}}var x=Uo.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),u9=m.createContext(null);function z9(l){var{apiUrl:o,children:r,failureElement:h,setGlobally:e=!1}=l,[c,a]=m.useState(!0),[v,i]=m.useState();return m.useEffect(()=>{function t(){return n.apply(this,arguments)}function n(){return n=f9(function*(){try{var u=(yield y(()=>import(o),[],import.meta.url)).default;x.info("API bootstrapped from",o),i(u),e&&(x.debug("API set globally"),globalThis.dh=u)}catch(g){x.error("Unable to bootstrap API",g)}a(!1)}),n.apply(this,arguments)}t()},[o,e]),c?s.jsx(Go,{}):v==null?h??s.jsxs(Ul,{isOpen:!0,className:"modal-dialog-centered",children:[s.jsx(Il,{closeButton:!1,children:"Error: Unable to load API"}),s.jsx(Gl,{children:s.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):s.jsx(u9.Provider,{value:v,children:r})}g9();const p9=U.lazy(()=>y(()=>import("./App-478d096f.js"),["./App-478d096f.js","./vendor-d09ca476.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./usePlugins-816cdf0b.js","./WidgetView-d2b3fbfa.js","./App-bad0fe82.css"],import.meta.url)),H9=U.lazy(async()=>({default:(await y(()=>import("./index-a22eb3f5.js"),["./index-a22eb3f5.js","./vendor-d09ca476.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./usePlugins-816cdf0b.js","./IrisGridModelFactory-bf9684d0.js","./plotly-6980623c.js","./IrisGridModelFactory-132baf63.css","./WidgetView-d2b3fbfa.js","./index-bdb20aa3.css"],import.meta.url)).AppBootstrap})),O=new URL("../../jsapi/dh-core.js",document.baseURI),V9=new URL("/js-plugins",document.baseURI);async function b9(){const l=await y(()=>import("./index-9e246861.js"),["./index-9e246861.js","./vendor-d09ca476.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./IrisGridModelFactory-bf9684d0.js","./plotly-6980623c.js","./usePlugins-816cdf0b.js","./IrisGridModelFactory-132baf63.css","./index-91860d5a.css"],import.meta.url),{GridPluginConfig:o,PandasPluginConfig:r,ChartPluginConfig:h}=l;return[o,r,h]}B.render(s.jsx(z9,{apiUrl:O.href,setGlobally:!0,children:s.jsx(m.Suspense,{fallback:s.jsx(Go,{}),children:s.jsx(H9,{getCorePlugins:b9,serverUrl:O.origin,pluginsUrl:V9.href,children:s.jsx(p9,{})})})}),document.getElementById("root"));export{q5 as $,C9 as A,n9 as B,_o as C,w as D,k9 as E,g9 as F,t9 as G,m9 as H,S9 as I,Xl as J,c9 as K,Uo as L,Ul as M,v9 as N,z9 as O,u9 as P,M9 as Q,Q4 as R,s9 as S,A as T,io as U,s6 as V,E as W,Co as X,r5 as Y,c5 as Z,K2 as _,Go as a,D3 as a$,x0 as a0,J5 as a1,W5 as a2,S as a3,A6 as a4,B2 as a5,Q as a6,A0 as a7,$3 as a8,$4 as a9,Y6 as aA,G5 as aB,Oo as aC,s4 as aD,ro as aE,Xo as aF,x9 as aG,X5 as aH,S0 as aI,ll as aJ,f8 as aK,Mo as aL,yo as aM,Q6 as aN,Lo as aO,Y5 as aP,i4 as aQ,bo as aR,Ho as aS,Vo as aT,Po as aU,P2 as aV,Ao as aW,O4 as aX,_5 as aY,I5 as aZ,n8 as a_,H0 as aa,A4 as ab,ko as ac,T0 as ad,U4 as ae,E0 as af,F0 as ag,o1 as ah,to as ai,m6 as aj,w4 as ak,T8 as al,G2 as am,e0 as an,mo as ao,J1 as ap,ao as aq,h2 as ar,fo as as,$5 as at,n1 as au,co as av,v6 as aw,Y as ax,I8 as ay,B4 as az,Gl as b,R2 as b0,k2 as b1,F5 as b2,E5 as b3,To as b4,oo as b5,T5 as b6,go as b7,w6 as b8,V4 as b9,r4 as ba,N6 as bb,e2 as bc,X as bd,ho as be,h3 as bf,Zo as bg,A3 as bh,k8 as bi,X2 as bj,o5 as bk,p8 as bl,H4 as bm,S2 as c,_ as d,J2 as e,Z2 as f,D2 as g,rl as h,Yo as i,v0 as j,d as k,e9 as l,a9 as m,_l as n,Il as o,Io as p,P as q,w9 as r,d9 as s,jo as t,F as u,l5 as v,i9 as w,N9 as x,A9 as y,qo as z};
|
|
16
|
+
//# sourceMappingURL=index-2f3644e1.js.map
|