@deephaven/dashboard-core-plugins 0.53.1-layout-manager.4 → 0.54.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.
- package/dist/ChartBuilderPlugin.d.ts.map +1 -1
- package/dist/ChartBuilderPlugin.js +4 -3
- package/dist/ChartBuilderPlugin.js.map +1 -1
- package/dist/ChartPlugin.d.ts.map +1 -1
- package/dist/ChartPlugin.js +36 -27
- package/dist/ChartPlugin.js.map +1 -1
- package/dist/GridPlugin.d.ts.map +1 -1
- package/dist/GridPlugin.js +6 -6
- package/dist/GridPlugin.js.map +1 -1
- package/dist/PandasPlugin.d.ts.map +1 -1
- package/dist/PandasPlugin.js +6 -6
- package/dist/PandasPlugin.js.map +1 -1
- package/dist/panels/ChartPanel.d.ts +5 -9
- package/dist/panels/ChartPanel.d.ts.map +1 -1
- package/dist/panels/ChartPanel.js +10 -19
- package/dist/panels/ChartPanel.js.map +1 -1
- package/dist/panels/ChartPanelUtils.d.ts +2 -1
- package/dist/panels/ChartPanelUtils.d.ts.map +1 -1
- package/dist/panels/ChartPanelUtils.js +3 -0
- package/dist/panels/ChartPanelUtils.js.map +1 -1
- package/dist/panels/IrisGridPanel.d.ts +7 -10
- package/dist/panels/IrisGridPanel.d.ts.map +1 -1
- package/dist/panels/IrisGridPanel.js +7 -6
- package/dist/panels/IrisGridPanel.js.map +1 -1
- package/dist/panels/NotebookPanel.d.ts +9 -6
- package/dist/panels/NotebookPanel.d.ts.map +1 -1
- package/dist/panels/NotebookPanel.js +10 -11
- package/dist/panels/NotebookPanel.js.map +1 -1
- package/dist/panels/Panel.css +5 -0
- package/dist/panels/Panel.css.map +1 -0
- package/dist/panels/Panel.d.ts +1 -0
- package/dist/panels/Panel.d.ts.map +1 -1
- package/dist/panels/Panel.js +1 -0
- package/dist/panels/Panel.js.map +1 -1
- package/dist/useHydrateGrid.d.ts +4 -2
- package/dist/useHydrateGrid.d.ts.map +1 -1
- package/dist/useHydrateGrid.js +17 -48
- package/dist/useHydrateGrid.js.map +1 -1
- package/package.json +24 -24
package/dist/useHydrateGrid.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Table } from '@deephaven/jsapi-types';
|
|
2
2
|
import { type IrisGridPanelProps } from './panels';
|
|
3
|
-
export declare function useHydrateGrid
|
|
3
|
+
export declare function useHydrateGrid(fetch: () => Promise<Table>, id: string): {
|
|
4
|
+
localDashboardId: string;
|
|
5
|
+
} & Pick<IrisGridPanelProps, 'loadPlugin' | 'makeModel'>;
|
|
4
6
|
export default useHydrateGrid;
|
|
5
7
|
//# sourceMappingURL=useHydrateGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHydrateGrid.d.ts","sourceRoot":"","sources":["../src/useHydrateGrid.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useHydrateGrid.d.ts","sourceRoot":"","sources":["../src/useHydrateGrid.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGnD,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,EAC3B,EAAE,EAAE,MAAM,GACT;IAAE,gBAAgB,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CACpC,kBAAkB,EAClB,YAAY,GAAG,WAAW,CAC3B,CAiBA;AAED,eAAe,cAAc,CAAC"}
|
package/dist/useHydrateGrid.js
CHANGED
|
@@ -1,58 +1,27 @@
|
|
|
1
1
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
2
2
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
3
|
-
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
7
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
import { useCallback } from 'react';
|
|
3
|
+
import { useMemo } from 'react';
|
|
9
4
|
import { useApi } from '@deephaven/jsapi-bootstrap';
|
|
10
|
-
import { useConnection } from '@deephaven/jsapi-components';
|
|
11
5
|
import { IrisGridModelFactory } from '@deephaven/iris-grid';
|
|
12
|
-
import { isIrisGridPanelMetadata, isLegacyIrisGridPanelMetadata } from "./panels/index.js";
|
|
13
6
|
import { useLoadTablePlugin } from "./useLoadTablePlugin.js";
|
|
14
|
-
export function useHydrateGrid() {
|
|
7
|
+
export function useHydrateGrid(fetch, id) {
|
|
15
8
|
var dh = useApi();
|
|
16
|
-
var connection = useConnection();
|
|
17
9
|
var loadPlugin = useLoadTablePlugin();
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
localDashboardId: id,
|
|
34
|
-
makeModel: function () {
|
|
35
|
-
var _makeModel = _asyncToGenerator(function* () {
|
|
36
|
-
var {
|
|
37
|
-
name: tableName,
|
|
38
|
-
type
|
|
39
|
-
} = metadata;
|
|
40
|
-
var definition = {
|
|
41
|
-
title: tableName,
|
|
42
|
-
name: tableName,
|
|
43
|
-
type
|
|
44
|
-
};
|
|
45
|
-
var table = yield connection.getObject(definition);
|
|
46
|
-
return IrisGridModelFactory.makeModel(dh, table);
|
|
47
|
-
});
|
|
48
|
-
function makeModel() {
|
|
49
|
-
return _makeModel.apply(this, arguments);
|
|
50
|
-
}
|
|
51
|
-
return makeModel;
|
|
52
|
-
}()
|
|
53
|
-
});
|
|
54
|
-
}, [dh, connection, loadPlugin]);
|
|
55
|
-
return hydrate;
|
|
10
|
+
var hydratedProps = useMemo(() => ({
|
|
11
|
+
loadPlugin,
|
|
12
|
+
localDashboardId: id,
|
|
13
|
+
makeModel: function () {
|
|
14
|
+
var _makeModel = _asyncToGenerator(function* () {
|
|
15
|
+
var table = yield fetch();
|
|
16
|
+
return IrisGridModelFactory.makeModel(dh, table);
|
|
17
|
+
});
|
|
18
|
+
function makeModel() {
|
|
19
|
+
return _makeModel.apply(this, arguments);
|
|
20
|
+
}
|
|
21
|
+
return makeModel;
|
|
22
|
+
}()
|
|
23
|
+
}), [dh, loadPlugin, fetch, id]);
|
|
24
|
+
return hydratedProps;
|
|
56
25
|
}
|
|
57
26
|
export default useHydrateGrid;
|
|
58
27
|
//# sourceMappingURL=useHydrateGrid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHydrateGrid.js","names":["
|
|
1
|
+
{"version":3,"file":"useHydrateGrid.js","names":["useMemo","useApi","IrisGridModelFactory","useLoadTablePlugin","useHydrateGrid","fetch","id","dh","loadPlugin","hydratedProps","localDashboardId","makeModel","_makeModel","_asyncToGenerator","table","apply","arguments"],"sources":["../src/useHydrateGrid.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { useApi } from '@deephaven/jsapi-bootstrap';\nimport { Table } from '@deephaven/jsapi-types';\nimport { IrisGridModelFactory } from '@deephaven/iris-grid';\nimport { type IrisGridPanelProps } from './panels';\nimport { useLoadTablePlugin } from './useLoadTablePlugin';\n\nexport function useHydrateGrid(\n fetch: () => Promise<Table>,\n id: string\n): { localDashboardId: string } & Pick<\n IrisGridPanelProps,\n 'loadPlugin' | 'makeModel'\n> {\n const dh = useApi();\n const loadPlugin = useLoadTablePlugin();\n\n const hydratedProps = useMemo(\n () => ({\n loadPlugin,\n localDashboardId: id,\n makeModel: async () => {\n const table = await fetch();\n return IrisGridModelFactory.makeModel(dh, table);\n },\n }),\n [dh, loadPlugin, fetch, id]\n );\n\n return hydratedProps;\n}\n\nexport default useHydrateGrid;\n"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,MAAM,QAAQ,4BAA4B;AAEnD,SAASC,oBAAoB,QAAQ,sBAAsB;AAAC,SAEnDC,kBAAkB;AAE3B,OAAO,SAASC,cAAcA,CAC5BC,KAA2B,EAC3BC,EAAU,EAIV;EACA,IAAMC,EAAE,GAAGN,MAAM,CAAC,CAAC;EACnB,IAAMO,UAAU,GAAGL,kBAAkB,CAAC,CAAC;EAEvC,IAAMM,aAAa,GAAGT,OAAO,CAC3B,OAAO;IACLQ,UAAU;IACVE,gBAAgB,EAAEJ,EAAE;IACpBK,SAAS;MAAA,IAAAC,UAAA,GAAAC,iBAAA,CAAE,aAAY;QACrB,IAAMC,KAAK,SAAST,KAAK,CAAC,CAAC;QAC3B,OAAOH,oBAAoB,CAACS,SAAS,CAACJ,EAAE,EAAEO,KAAK,CAAC;MAClD,CAAC;MAAA,SAAAH,UAAA;QAAA,OAAAC,UAAA,CAAAG,KAAA,OAAAC,SAAA;MAAA;MAAA,OAAAL,SAAA;IAAA;EACH,CAAC,CAAC,EACF,CAACJ,EAAE,EAAEC,UAAU,EAAEH,KAAK,EAAEC,EAAE,CAC5B,CAAC;EAED,OAAOG,aAAa;AACtB;AAEA,eAAeL,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/dashboard-core-plugins",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "Deephaven Dashboard Core Plugins",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,26 +22,26 @@
|
|
|
22
22
|
"build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@deephaven/chart": "^0.
|
|
26
|
-
"@deephaven/components": "^0.
|
|
27
|
-
"@deephaven/console": "^0.
|
|
28
|
-
"@deephaven/dashboard": "^0.
|
|
29
|
-
"@deephaven/file-explorer": "^0.
|
|
30
|
-
"@deephaven/filters": "^0.
|
|
31
|
-
"@deephaven/golden-layout": "^0.
|
|
32
|
-
"@deephaven/grid": "^0.
|
|
33
|
-
"@deephaven/icons": "^0.
|
|
34
|
-
"@deephaven/iris-grid": "^0.
|
|
35
|
-
"@deephaven/jsapi-bootstrap": "^0.
|
|
36
|
-
"@deephaven/jsapi-components": "^0.
|
|
37
|
-
"@deephaven/jsapi-types": "^0.
|
|
38
|
-
"@deephaven/jsapi-utils": "^0.
|
|
39
|
-
"@deephaven/log": "^0.
|
|
40
|
-
"@deephaven/plugin": "^0.
|
|
41
|
-
"@deephaven/react-hooks": "^0.
|
|
42
|
-
"@deephaven/redux": "^0.
|
|
43
|
-
"@deephaven/storage": "^0.
|
|
44
|
-
"@deephaven/utils": "^0.
|
|
25
|
+
"@deephaven/chart": "^0.54.0",
|
|
26
|
+
"@deephaven/components": "^0.54.0",
|
|
27
|
+
"@deephaven/console": "^0.54.0",
|
|
28
|
+
"@deephaven/dashboard": "^0.54.0",
|
|
29
|
+
"@deephaven/file-explorer": "^0.54.0",
|
|
30
|
+
"@deephaven/filters": "^0.54.0",
|
|
31
|
+
"@deephaven/golden-layout": "^0.54.0",
|
|
32
|
+
"@deephaven/grid": "^0.54.0",
|
|
33
|
+
"@deephaven/icons": "^0.54.0",
|
|
34
|
+
"@deephaven/iris-grid": "^0.54.0",
|
|
35
|
+
"@deephaven/jsapi-bootstrap": "^0.54.0",
|
|
36
|
+
"@deephaven/jsapi-components": "^0.54.0",
|
|
37
|
+
"@deephaven/jsapi-types": "^0.54.0",
|
|
38
|
+
"@deephaven/jsapi-utils": "^0.54.0",
|
|
39
|
+
"@deephaven/log": "^0.54.0",
|
|
40
|
+
"@deephaven/plugin": "^0.54.0",
|
|
41
|
+
"@deephaven/react-hooks": "^0.54.0",
|
|
42
|
+
"@deephaven/redux": "^0.54.0",
|
|
43
|
+
"@deephaven/storage": "^0.54.0",
|
|
44
|
+
"@deephaven/utils": "^0.54.0",
|
|
45
45
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
46
46
|
"classnames": "^2.3.1",
|
|
47
47
|
"deep-equal": "^2.0.5",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"react-redux": "^7.2.4"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@deephaven/jsapi-shim": "^0.
|
|
68
|
-
"@deephaven/mocks": "^0.
|
|
67
|
+
"@deephaven/jsapi-shim": "^0.54.0",
|
|
68
|
+
"@deephaven/mocks": "^0.54.0"
|
|
69
69
|
},
|
|
70
70
|
"files": [
|
|
71
71
|
"dist"
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "724c84e40aa8a716f10f39c33019a5301bfd5dab"
|
|
80
80
|
}
|