@deephaven/app-utils 0.92.1-beta.2 → 0.93.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppDashboards.d.ts","sourceRoot":"","sources":["../../src/components/AppDashboards.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AppDashboards.d.ts","sourceRoot":"","sources":["../../src/components/AppDashboards.tsx"],"names":[],"mappings":";AAQA,OAAO,aAAa,EAAE,EACpB,UAAU,EACV,QAAQ,IAAI,cAAc,EAC3B,MAAM,0BAA0B,CAAC;AAGlC,UAAU,kBAAkB;IAC1B,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,YAAY,EAAE,UAAU,EAAE,CAAC;QAC3B,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;QACzC,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,oBAAoB,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5D,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,OAAO,EACP,cAAmC,GACpC,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CA+ClC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -8,7 +8,7 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
|
|
|
8
8
|
import React, { useCallback } from 'react';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import { DashboardUtils, LazyDashboard } from '@deephaven/dashboard';
|
|
11
|
-
import {
|
|
11
|
+
import { useObjectFetcher } from '@deephaven/jsapi-bootstrap';
|
|
12
12
|
import { LoadingOverlay } from '@deephaven/components';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function AppDashboards(_ref) {
|
|
@@ -27,11 +27,10 @@ export function AppDashboards(_ref) {
|
|
|
27
27
|
} = hydrateProps;
|
|
28
28
|
try {
|
|
29
29
|
if (metadata != null) {
|
|
30
|
-
var widget = sanitizeVariableDescriptor(metadata);
|
|
31
30
|
return _objectSpread(_objectSpread({
|
|
32
31
|
fetch: function () {
|
|
33
32
|
var _fetch = _asyncToGenerator(function* () {
|
|
34
|
-
return fetchObject(
|
|
33
|
+
return fetchObject(metadata);
|
|
35
34
|
});
|
|
36
35
|
function fetch() {
|
|
37
36
|
return _fetch.apply(this, arguments);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppDashboards.js","names":["React","useCallback","classNames","DashboardUtils","LazyDashboard","
|
|
1
|
+
{"version":3,"file":"AppDashboards.js","names":["React","useCallback","classNames","DashboardUtils","LazyDashboard","useObjectFetcher","LoadingOverlay","jsx","_jsx","AppDashboards","_ref","dashboards","activeDashboard","onLayoutInitialized","onGoldenLayoutChange","plugins","emptyDashboard","fetchObject","hydratePanel","hydrateProps","id","metadata","_objectSpread","fetch","_fetch","_asyncToGenerator","apply","arguments","localDashboardId","e","hydrate","className","children","map","d","active","isActive","layoutConfig","layoutSettings","key"],"sources":["../../src/components/AppDashboards.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport classNames from 'classnames';\nimport {\n DashboardUtils,\n DehydratedDashboardPanelProps,\n LazyDashboard,\n} from '@deephaven/dashboard';\nimport { useObjectFetcher } from '@deephaven/jsapi-bootstrap';\nimport LayoutManager, {\n ItemConfig,\n Settings as LayoutSettings,\n} from '@deephaven/golden-layout';\nimport { LoadingOverlay } from '@deephaven/components';\n\ninterface AppDashboardsProps {\n dashboards: {\n id: string;\n layoutConfig: ItemConfig[];\n layoutSettings?: Partial<LayoutSettings>;\n key?: string;\n }[];\n activeDashboard: string;\n onLayoutInitialized?: () => void;\n onGoldenLayoutChange: (goldenLayout: LayoutManager) => void;\n plugins: JSX.Element[];\n emptyDashboard?: JSX.Element;\n}\n\nexport function AppDashboards({\n dashboards,\n activeDashboard,\n onLayoutInitialized,\n onGoldenLayoutChange,\n plugins,\n emptyDashboard = <LoadingOverlay />,\n}: AppDashboardsProps): JSX.Element {\n const fetchObject = useObjectFetcher();\n\n const hydratePanel = useCallback(\n (hydrateProps: DehydratedDashboardPanelProps, id: string) => {\n const { metadata } = hydrateProps;\n try {\n if (metadata != null) {\n return {\n fetch: async () => fetchObject(metadata),\n ...hydrateProps,\n localDashboardId: id,\n };\n }\n } catch (e: unknown) {\n // Ignore being unable to get the variable descriptor, do the default dashboard hydration\n }\n return DashboardUtils.hydrate(hydrateProps, id);\n },\n [fetchObject]\n );\n\n return (\n <div className=\"tab-content\">\n {dashboards.map(d => (\n <div\n key={d.id}\n className={classNames('tab-pane', {\n active: d.id === activeDashboard,\n })}\n >\n <LazyDashboard\n id={d.id}\n key={d.key}\n isActive={d.id === activeDashboard}\n emptyDashboard={emptyDashboard}\n layoutConfig={d.layoutConfig}\n layoutSettings={d.layoutSettings}\n onLayoutInitialized={onLayoutInitialized}\n onGoldenLayoutChange={onGoldenLayoutChange}\n hydrate={hydratePanel}\n plugins={plugins}\n />\n </div>\n ))}\n </div>\n );\n}\n\nexport default AppDashboards;\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,OAAOC,UAAU,MAAM,YAAY;AACnC,SACEC,cAAc,EAEdC,aAAa,QACR,sBAAsB;AAC7B,SAASC,gBAAgB,QAAQ,4BAA4B;AAK7D,SAASC,cAAc,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAgBvD,OAAO,SAASC,aAAaA,CAAAC,IAAA,EAOO;EAAA,IAPN;IAC5BC,UAAU;IACVC,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Ae;QACjCzB,mBAAmB,EAAEA,mBAAoB;QACzCC,oBAAoB,EAAEA,oBAAqB;QAC3CgB,OAAO,EAAEZ,YAAa;QACtBH,OAAO,EAAEA;MAAQ,GARZmB,CAAC,CAACK,GASR;IAAC,GAhBGL,CAAC,CAACd,EAiBJ,CACN;EAAC,CACC,CAAC;AAEV;AAEA,eAAeX,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/app-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.93.0",
|
|
4
4
|
"description": "Deephaven App Utils",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@adobe/react-spectrum": "3.35.1",
|
|
32
|
-
"@deephaven/auth-plugins": "^0.
|
|
33
|
-
"@deephaven/chart": "^0.
|
|
34
|
-
"@deephaven/components": "^0.
|
|
35
|
-
"@deephaven/console": "^0.
|
|
36
|
-
"@deephaven/dashboard": "^0.
|
|
37
|
-
"@deephaven/dashboard-core-plugins": "^0.
|
|
38
|
-
"@deephaven/file-explorer": "^0.
|
|
39
|
-
"@deephaven/golden-layout": "^0.
|
|
40
|
-
"@deephaven/icons": "^0.
|
|
41
|
-
"@deephaven/iris-grid": "^0.
|
|
42
|
-
"@deephaven/jsapi-bootstrap": "^0.
|
|
43
|
-
"@deephaven/jsapi-components": "^0.
|
|
32
|
+
"@deephaven/auth-plugins": "^0.93.0",
|
|
33
|
+
"@deephaven/chart": "^0.93.0",
|
|
34
|
+
"@deephaven/components": "^0.93.0",
|
|
35
|
+
"@deephaven/console": "^0.93.0",
|
|
36
|
+
"@deephaven/dashboard": "^0.93.0",
|
|
37
|
+
"@deephaven/dashboard-core-plugins": "^0.93.0",
|
|
38
|
+
"@deephaven/file-explorer": "^0.93.0",
|
|
39
|
+
"@deephaven/golden-layout": "^0.93.0",
|
|
40
|
+
"@deephaven/icons": "^0.93.0",
|
|
41
|
+
"@deephaven/iris-grid": "^0.93.0",
|
|
42
|
+
"@deephaven/jsapi-bootstrap": "^0.93.0",
|
|
43
|
+
"@deephaven/jsapi-components": "^0.93.0",
|
|
44
44
|
"@deephaven/jsapi-types": "^1.0.0-dev0.34.0",
|
|
45
|
-
"@deephaven/jsapi-utils": "^0.
|
|
46
|
-
"@deephaven/log": "^0.
|
|
47
|
-
"@deephaven/plugin": "^0.
|
|
48
|
-
"@deephaven/react-hooks": "^0.
|
|
49
|
-
"@deephaven/redux": "^0.
|
|
50
|
-
"@deephaven/storage": "^0.
|
|
51
|
-
"@deephaven/utils": "^0.
|
|
45
|
+
"@deephaven/jsapi-utils": "^0.93.0",
|
|
46
|
+
"@deephaven/log": "^0.93.0",
|
|
47
|
+
"@deephaven/plugin": "^0.93.0",
|
|
48
|
+
"@deephaven/react-hooks": "^0.93.0",
|
|
49
|
+
"@deephaven/redux": "^0.93.0",
|
|
50
|
+
"@deephaven/storage": "^0.93.0",
|
|
51
|
+
"@deephaven/utils": "^0.93.0",
|
|
52
52
|
"@fontsource/fira-mono": "5.0.13",
|
|
53
53
|
"@fontsource/fira-sans": "5.0.20",
|
|
54
54
|
"@paciolan/remote-component": "2.13.0",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "1503a37f687860ed63e5fd009fc2fb9416e40eef"
|
|
76
76
|
}
|