@deephaven/dashboard-core-plugins 1.22.2-alpha-pivot-builder.0730ba6.0 → 1.23.1-alpha-pivot-builder.5e6a5fd.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":"ChartWidgetPlugin.d.ts","sourceRoot":"","sources":["../src/ChartWidgetPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChartWidgetPlugin.d.ts","sourceRoot":"","sources":["../src/ChartWidgetPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG9D,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,oBAAoB,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAC1C,GAAG,CAAC,OAAO,GAAG,IAAI,CA0BpB;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -7,8 +7,10 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
7
7
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
8
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
9
|
import { useEffect, useState } from 'react';
|
|
10
|
+
import { useSelector } from 'react-redux';
|
|
10
11
|
import { useApi } from '@deephaven/jsapi-bootstrap';
|
|
11
12
|
import { Chart, ChartModelFactory } from '@deephaven/chart';
|
|
13
|
+
import { getSettings } from '@deephaven/redux';
|
|
12
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
15
|
export function ChartWidgetPlugin(props) {
|
|
14
16
|
var dh = useApi();
|
|
@@ -16,6 +18,7 @@ export function ChartWidgetPlugin(props) {
|
|
|
16
18
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17
19
|
model = _useState2[0],
|
|
18
20
|
setModel = _useState2[1];
|
|
21
|
+
var settings = useSelector(getSettings);
|
|
19
22
|
var fetch = props.fetch;
|
|
20
23
|
useEffect(() => {
|
|
21
24
|
var cancelled = false;
|
|
@@ -38,7 +41,8 @@ export function ChartWidgetPlugin(props) {
|
|
|
38
41
|
};
|
|
39
42
|
}, [dh, fetch]);
|
|
40
43
|
return model ? /*#__PURE__*/_jsx(Chart, {
|
|
41
|
-
model: model
|
|
44
|
+
model: model,
|
|
45
|
+
settings: settings
|
|
42
46
|
}) : null;
|
|
43
47
|
}
|
|
44
48
|
export default ChartWidgetPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartWidgetPlugin.js","names":["useEffect","useState","useApi","Chart","ChartModelFactory","jsx","_jsx","ChartWidgetPlugin","props","dh","_useState","_useState2","_slicedToArray","model","setModel","fetch","cancelled","init","_init","apply","arguments","_asyncToGenerator","figure","newModel","makeModel","undefined"],"sources":["../src/ChartWidgetPlugin.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport { useApi } from '@deephaven/jsapi-bootstrap';\nimport { Chart, type ChartModel, ChartModelFactory } from '@deephaven/chart';\nimport type { dh } from '@deephaven/jsapi-types';\nimport { type WidgetComponentProps } from '@deephaven/plugin';\n\nexport function ChartWidgetPlugin(\n props: WidgetComponentProps<dh.plot.Figure>\n): JSX.Element | null {\n const dh = useApi();\n const [model, setModel] = useState<ChartModel>();\n\n const { fetch } = props;\n\n useEffect(() => {\n let cancelled = false;\n async function init() {\n const figure = (await fetch()) as unknown as dh.plot.Figure;\n const newModel = await ChartModelFactory.makeModel(dh, undefined, figure);\n\n if (!cancelled) {\n setModel(newModel);\n }\n }\n\n init();\n\n return () => {\n cancelled = true;\n };\n }, [dh, fetch]);\n\n return model ? <Chart model={model} /> : null;\n}\n\nexport default ChartWidgetPlugin;\n"],"mappings":";;;;;;;;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,KAAK,EAAmBC,iBAAiB,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"file":"ChartWidgetPlugin.js","names":["useEffect","useState","useSelector","useApi","Chart","ChartModelFactory","getSettings","jsx","_jsx","ChartWidgetPlugin","props","dh","_useState","_useState2","_slicedToArray","model","setModel","settings","fetch","cancelled","init","_init","apply","arguments","_asyncToGenerator","figure","newModel","makeModel","undefined"],"sources":["../src/ChartWidgetPlugin.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useApi } from '@deephaven/jsapi-bootstrap';\nimport { Chart, type ChartModel, ChartModelFactory } from '@deephaven/chart';\nimport type { dh } from '@deephaven/jsapi-types';\nimport { type WidgetComponentProps } from '@deephaven/plugin';\nimport { getSettings, type RootState } from '@deephaven/redux';\n\nexport function ChartWidgetPlugin(\n props: WidgetComponentProps<dh.plot.Figure>\n): JSX.Element | null {\n const dh = useApi();\n const [model, setModel] = useState<ChartModel>();\n const settings = useSelector(getSettings<RootState>);\n\n const { fetch } = props;\n\n useEffect(() => {\n let cancelled = false;\n async function init() {\n const figure = (await fetch()) as unknown as dh.plot.Figure;\n const newModel = await ChartModelFactory.makeModel(dh, undefined, figure);\n\n if (!cancelled) {\n setModel(newModel);\n }\n }\n\n init();\n\n return () => {\n cancelled = true;\n };\n }, [dh, fetch]);\n\n return model ? <Chart model={model} settings={settings} /> : null;\n}\n\nexport default ChartWidgetPlugin;\n"],"mappings":";;;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AAK,EAAEA,KAAM;IAACE,QAAQ,EAAEA;EAAS,CAAE,CAAC,GAAG,IAAI;AACnE;AAEA,eAAeR,iBAAiB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/dashboard-core-plugins",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
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": "^1.
|
|
26
|
-
"@deephaven/components": "^1.
|
|
27
|
-
"@deephaven/console": "^1.
|
|
28
|
-
"@deephaven/dashboard": "^1.
|
|
29
|
-
"@deephaven/file-explorer": "^1.
|
|
30
|
-
"@deephaven/filters": "^1.
|
|
31
|
-
"@deephaven/golden-layout": "^1.
|
|
32
|
-
"@deephaven/grid": "^1.
|
|
33
|
-
"@deephaven/icons": "^1.
|
|
34
|
-
"@deephaven/iris-grid": "^1.
|
|
35
|
-
"@deephaven/jsapi-bootstrap": "^1.
|
|
36
|
-
"@deephaven/jsapi-components": "^1.
|
|
25
|
+
"@deephaven/chart": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
26
|
+
"@deephaven/components": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
27
|
+
"@deephaven/console": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
28
|
+
"@deephaven/dashboard": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
29
|
+
"@deephaven/file-explorer": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
30
|
+
"@deephaven/filters": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
31
|
+
"@deephaven/golden-layout": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
32
|
+
"@deephaven/grid": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
33
|
+
"@deephaven/icons": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
34
|
+
"@deephaven/iris-grid": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
35
|
+
"@deephaven/jsapi-bootstrap": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
36
|
+
"@deephaven/jsapi-components": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
37
37
|
"@deephaven/jsapi-types": "^1.0.0-dev0.40.4",
|
|
38
|
-
"@deephaven/jsapi-utils": "^1.
|
|
39
|
-
"@deephaven/log": "^1.
|
|
40
|
-
"@deephaven/plugin": "^1.
|
|
41
|
-
"@deephaven/react-hooks": "^1.
|
|
42
|
-
"@deephaven/redux": "^1.
|
|
43
|
-
"@deephaven/storage": "^1.
|
|
44
|
-
"@deephaven/utils": "^1.
|
|
38
|
+
"@deephaven/jsapi-utils": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
39
|
+
"@deephaven/log": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
40
|
+
"@deephaven/plugin": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
41
|
+
"@deephaven/react-hooks": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
42
|
+
"@deephaven/redux": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
43
|
+
"@deephaven/storage": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
44
|
+
"@deephaven/utils": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
45
45
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
46
46
|
"classnames": "^2.3.1",
|
|
47
47
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"react-redux": "^7.2.4"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@deephaven/jsapi-shim": "^1.
|
|
69
|
-
"@deephaven/mocks": "^1.
|
|
70
|
-
"@deephaven/test-utils": "^1.
|
|
68
|
+
"@deephaven/jsapi-shim": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
69
|
+
"@deephaven/mocks": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd",
|
|
70
|
+
"@deephaven/test-utils": "^1.23.1-alpha-pivot-builder.5e6a5fd.0+5e6a5fd"
|
|
71
71
|
},
|
|
72
72
|
"files": [
|
|
73
73
|
"dist",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "5e6a5fd5dd807416aa31fe5032dd014fed27774a"
|
|
83
83
|
}
|