@deephaven/dashboard-core-plugins 0.5.2-matplotlib.2 → 0.6.1-fixed-deps.2
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/ChartPlugin.js +25 -22
- package/dist/ChartPlugin.js.map +1 -1
- package/dist/ConsolePlugin.d.ts.map +1 -1
- package/dist/ConsolePlugin.js +130 -134
- package/dist/ConsolePlugin.js.map +1 -1
- package/dist/FilterPlugin.d.ts.map +1 -1
- package/dist/FilterPlugin.js +114 -116
- package/dist/FilterPlugin.js.map +1 -1
- package/dist/GridPlugin.js +29 -26
- package/dist/GridPlugin.js.map +1 -1
- package/dist/LinkerPlugin.js +7 -5
- package/dist/LinkerPlugin.js.map +1 -1
- package/dist/MarkdownPlugin.js +44 -45
- package/dist/MarkdownPlugin.js.map +1 -1
- package/dist/PandasPlugin.d.ts +5 -2
- package/dist/PandasPlugin.d.ts.map +1 -1
- package/dist/PandasPlugin.js +12 -12
- package/dist/PandasPlugin.js.map +1 -1
- package/dist/controls/ControlType.d.ts +1 -0
- package/dist/controls/ControlType.d.ts.map +1 -1
- package/dist/controls/ControlType.js +3 -5
- package/dist/controls/ControlType.js.map +1 -1
- package/dist/controls/dropdown-filter/DropdownFilter.d.ts +6 -0
- package/dist/controls/dropdown-filter/DropdownFilter.d.ts.map +1 -1
- package/dist/controls/dropdown-filter/DropdownFilter.js +356 -394
- package/dist/controls/dropdown-filter/DropdownFilter.js.map +1 -1
- package/dist/controls/input-filter/InputFilter.d.ts +6 -0
- package/dist/controls/input-filter/InputFilter.d.ts.map +1 -1
- package/dist/controls/input-filter/InputFilter.js +256 -270
- package/dist/controls/input-filter/InputFilter.js.map +1 -1
- package/dist/controls/markdown/MarkdownContainer.js +18 -56
- package/dist/controls/markdown/MarkdownContainer.js.map +1 -1
- package/dist/controls/markdown/MarkdownEditor.js +36 -75
- package/dist/controls/markdown/MarkdownEditor.js.map +1 -1
- package/dist/controls/markdown/MarkdownStartPage.js +93 -133
- package/dist/controls/markdown/MarkdownStartPage.js.map +1 -1
- package/dist/controls/markdown/MarkdownUtils.js +17 -32
- package/dist/controls/markdown/MarkdownUtils.js.map +1 -1
- package/dist/events/ChartEvent.js +1 -5
- package/dist/events/ChartEvent.js.map +1 -1
- package/dist/events/ConsoleEvent.js +1 -5
- package/dist/events/ConsoleEvent.js.map +1 -1
- package/dist/events/ControlEvent.js +1 -5
- package/dist/events/ControlEvent.js.map +1 -1
- package/dist/events/InputFilterEvent.d.ts +2 -0
- package/dist/events/InputFilterEvent.d.ts.map +1 -1
- package/dist/events/InputFilterEvent.js +3 -5
- package/dist/events/InputFilterEvent.js.map +1 -1
- package/dist/events/IrisGridEvent.js +1 -5
- package/dist/events/IrisGridEvent.js.map +1 -1
- package/dist/events/NotebookEvent.js +1 -5
- package/dist/events/NotebookEvent.js.map +1 -1
- package/dist/events/PQEvent.js +1 -5
- package/dist/events/PQEvent.js.map +1 -1
- package/dist/events/PandasEvent.js +1 -5
- package/dist/events/PandasEvent.js.map +1 -1
- package/dist/events/TabEvent.js +1 -5
- package/dist/events/TabEvent.js.map +1 -1
- package/dist/events/index.d.ts +0 -1
- package/dist/events/index.js +9 -10
- package/dist/events/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -11
- package/dist/index.js.map +1 -1
- package/dist/linker/Linker.d.ts +1 -1
- package/dist/linker/Linker.js +594 -606
- package/dist/linker/Linker.js.map +1 -1
- package/dist/linker/LinkerLink.js +92 -126
- package/dist/linker/LinkerLink.js.map +1 -1
- package/dist/linker/LinkerOverlayContent.js +162 -220
- package/dist/linker/LinkerOverlayContent.js.map +1 -1
- package/dist/linker/LinkerUtils.js +105 -114
- package/dist/linker/LinkerUtils.js.map +1 -1
- package/dist/panels/ChartColumnSelectorOverlay.js +19 -25
- package/dist/panels/ChartColumnSelectorOverlay.js.map +1 -1
- package/dist/panels/ChartFilterOverlay.js +18 -24
- package/dist/panels/ChartFilterOverlay.js.map +1 -1
- package/dist/panels/ChartPanel.d.ts +3 -0
- package/dist/panels/ChartPanel.d.ts.map +1 -1
- package/dist/panels/ChartPanel.js +839 -873
- package/dist/panels/ChartPanel.js.map +1 -1
- package/dist/panels/CommandHistoryPanel.d.ts.map +1 -1
- package/dist/panels/CommandHistoryPanel.js +160 -186
- package/dist/panels/CommandHistoryPanel.js.map +1 -1
- package/dist/panels/ConsolePanel.d.ts +1 -1
- package/dist/panels/ConsolePanel.d.ts.map +1 -1
- package/dist/panels/ConsolePanel.js +327 -374
- package/dist/panels/ConsolePanel.js.map +1 -1
- package/dist/panels/DropdownFilterPanel.d.ts +6 -0
- package/dist/panels/DropdownFilterPanel.d.ts.map +1 -1
- package/dist/panels/DropdownFilterPanel.js +537 -566
- package/dist/panels/DropdownFilterPanel.js.map +1 -1
- package/dist/panels/FileExplorerPanel.d.ts +6 -1
- package/dist/panels/FileExplorerPanel.d.ts.map +1 -1
- package/dist/panels/FileExplorerPanel.js +208 -210
- package/dist/panels/FileExplorerPanel.js.map +1 -1
- package/dist/panels/FilterSetManager.css +111 -0
- package/dist/panels/FilterSetManager.css.map +1 -0
- package/dist/panels/FilterSetManager.d.ts +66 -0
- package/dist/panels/FilterSetManager.d.ts.map +1 -0
- package/dist/panels/FilterSetManager.js +732 -0
- package/dist/panels/FilterSetManager.js.map +1 -0
- package/dist/panels/FilterSetManagerPanel.css +33 -0
- package/dist/panels/FilterSetManagerPanel.css.map +1 -0
- package/dist/panels/FilterSetManagerPanel.d.ts +69 -0
- package/dist/panels/FilterSetManagerPanel.d.ts.map +1 -0
- package/dist/panels/FilterSetManagerPanel.js +383 -0
- package/dist/panels/FilterSetManagerPanel.js.map +1 -0
- package/dist/panels/InputFilterPanel.d.ts +7 -0
- package/dist/panels/InputFilterPanel.d.ts.map +1 -1
- package/dist/panels/InputFilterPanel.js +198 -206
- package/dist/panels/InputFilterPanel.js.map +1 -1
- package/dist/panels/IrisGridPanel.d.ts +11 -3
- package/dist/panels/IrisGridPanel.d.ts.map +1 -1
- package/dist/panels/IrisGridPanel.js +779 -771
- package/dist/panels/IrisGridPanel.js.map +1 -1
- package/dist/panels/LogPanel.js +80 -116
- package/dist/panels/LogPanel.js.map +1 -1
- package/dist/panels/MarkdownPanel.js +165 -199
- package/dist/panels/MarkdownPanel.js.map +1 -1
- package/dist/panels/NotebookPanel.d.ts +3 -1
- package/dist/panels/NotebookPanel.d.ts.map +1 -1
- package/dist/panels/NotebookPanel.js +870 -862
- package/dist/panels/NotebookPanel.js.map +1 -1
- package/dist/panels/PandasPanel.js +56 -90
- package/dist/panels/PandasPanel.js.map +1 -1
- package/dist/panels/Panel.js +282 -313
- package/dist/panels/Panel.js.map +1 -1
- package/dist/panels/PanelContextMenu.js +107 -158
- package/dist/panels/PanelContextMenu.js.map +1 -1
- package/dist/panels/RenameDialog.js +144 -172
- package/dist/panels/RenameDialog.js.map +1 -1
- package/dist/panels/Shortcuts.js +1 -1
- package/dist/panels/Shortcuts.js.map +1 -1
- package/dist/panels/WidgetPanel.js +133 -163
- package/dist/panels/WidgetPanel.js.map +1 -1
- package/dist/panels/WidgetPanelTooltip.js +7 -5
- package/dist/panels/WidgetPanelTooltip.js.map +1 -1
- package/dist/panels/index.d.ts +1 -1
- package/dist/panels/index.js +16 -16
- package/dist/panels/index.js.map +1 -1
- package/dist/prop-types/CommonPropTypes.js +4 -8
- package/dist/prop-types/CommonPropTypes.js.map +1 -1
- package/dist/prop-types/UIPropTypes.js +6 -6
- package/dist/prop-types/UIPropTypes.js.map +1 -1
- package/dist/prop-types/index.js +2 -2
- package/dist/prop-types/index.js.map +1 -1
- package/dist/redux/actions.d.ts +1 -0
- package/dist/redux/actions.d.ts.map +1 -1
- package/dist/redux/actions.js +33 -54
- package/dist/redux/actions.js.map +1 -1
- package/dist/redux/index.js +6 -21
- package/dist/redux/index.js.map +1 -1
- package/dist/redux/reducers/index.js +2 -2
- package/dist/redux/reducers/index.js.map +1 -1
- package/dist/redux/reducers/sessionWrapper.js +1 -1
- package/dist/redux/reducers/sessionWrapper.js.map +1 -1
- package/dist/redux/selectors.d.ts +1 -0
- package/dist/redux/selectors.d.ts.map +1 -1
- package/dist/redux/selectors.js +22 -18
- package/dist/redux/selectors.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +27 -54
- package/dist/MatPlotLibPlugin.d.ts +0 -5
- package/dist/MatPlotLibPlugin.d.ts.map +0 -1
- package/dist/MatPlotLibPlugin.js +0 -45
- package/dist/MatPlotLibPlugin.js.map +0 -1
- package/dist/events/MatPlotLibEvent.d.ts +0 -5
- package/dist/events/MatPlotLibEvent.d.ts.map +0 -1
- package/dist/events/MatPlotLibEvent.js +0 -12
- package/dist/events/MatPlotLibEvent.js.map +0 -1
- package/dist/panels/MatPlotLibPanel.d.ts +0 -22
- package/dist/panels/MatPlotLibPanel.d.ts.map +0 -1
- package/dist/panels/MatPlotLibPanel.js +0 -123
- package/dist/panels/MatPlotLibPanel.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/dashboard-core-plugins",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1-fixed-deps.2+1d874ed",
|
|
4
4
|
"description": "Deephaven Dashboard Core Plugins",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
9
10
|
"url": "https://github.com/deephaven/web-client-ui"
|
|
@@ -32,86 +33,58 @@
|
|
|
32
33
|
"prestart": "npm run build-dev",
|
|
33
34
|
"start": "cross-env NODE_ENV=development npm run watch"
|
|
34
35
|
},
|
|
35
|
-
"
|
|
36
|
-
"@deephaven/chart": "^0.
|
|
37
|
-
"@deephaven/
|
|
38
|
-
"@deephaven/
|
|
39
|
-
"@deephaven/
|
|
40
|
-
"@deephaven/
|
|
41
|
-
"@deephaven/
|
|
42
|
-
"@deephaven/
|
|
43
|
-
"@deephaven/
|
|
44
|
-
"@deephaven/
|
|
45
|
-
"@deephaven/log": "^0.4.0",
|
|
46
|
-
"@deephaven/mocks": "^0.4.0",
|
|
47
|
-
"@deephaven/react-hooks": "^0.4.0",
|
|
48
|
-
"@deephaven/redux": "^0.4.0",
|
|
49
|
-
"@deephaven/utils": "^0.4.0",
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@deephaven/chart": "^0.6.1-fixed-deps.2+1d874ed",
|
|
38
|
+
"@deephaven/console": "^0.6.1-fixed-deps.2+1d874ed",
|
|
39
|
+
"@deephaven/dashboard": "^0.6.1-fixed-deps.2+1d874ed",
|
|
40
|
+
"@deephaven/file-explorer": "^0.6.1-fixed-deps.2+1d874ed",
|
|
41
|
+
"@deephaven/golden-layout": "^0.6.1-fixed-deps.2+1d874ed",
|
|
42
|
+
"@deephaven/icons": "^0.6.1-fixed-deps.2+1d874ed",
|
|
43
|
+
"@deephaven/iris-grid": "^0.6.1-fixed-deps.2+1d874ed",
|
|
44
|
+
"@deephaven/jsapi-shim": "^0.6.1-fixed-deps.2+1d874ed",
|
|
45
|
+
"@deephaven/utils": "^0.6.1-fixed-deps.2+1d874ed",
|
|
50
46
|
"@fortawesome/react-fontawesome": "^0.1.12",
|
|
51
47
|
"classnames": "^2.3.1",
|
|
52
48
|
"deep-equal": "^2.0.4",
|
|
53
|
-
"jquery": "^3.5.1",
|
|
54
49
|
"lodash.debounce": "^4.0.8",
|
|
55
50
|
"lodash.throttle": "^4.1.1",
|
|
56
51
|
"memoize-one": "^5.1.1",
|
|
57
52
|
"memoizee": "^0.4.15",
|
|
58
53
|
"prop-types": "^15.7.2",
|
|
59
|
-
"react": "^16.0.0",
|
|
60
|
-
"react-card-flip": "^0.7.2",
|
|
61
|
-
"react-dom": "^16.0.0",
|
|
62
54
|
"react-markdown": "^6.0.2",
|
|
63
|
-
"react-redux": "^7.2.4",
|
|
64
55
|
"react-transition-group": "^2.3.1",
|
|
65
56
|
"reactstrap": "^8.4.1",
|
|
66
57
|
"shortid": "^2.2.15"
|
|
67
58
|
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"@deephaven/components": "^0.4.0",
|
|
61
|
+
"@deephaven/log": "^0.4.0",
|
|
62
|
+
"@deephaven/redux": "^0.4.0",
|
|
63
|
+
"react": "^16.0.0",
|
|
64
|
+
"react-dom": "^16.0.0",
|
|
65
|
+
"react-redux": "^7.2.4"
|
|
66
|
+
},
|
|
68
67
|
"devDependencies": {
|
|
69
68
|
"@babel/cli": "^7.14.8",
|
|
70
|
-
"@deephaven/
|
|
71
|
-
"@deephaven/
|
|
72
|
-
"@deephaven/
|
|
73
|
-
"@deephaven/
|
|
74
|
-
"@deephaven/
|
|
75
|
-
"@deephaven/golden-layout": "^0.5.0",
|
|
76
|
-
"@deephaven/icons": "^0.5.0",
|
|
77
|
-
"@deephaven/iris-grid": "^0.5.1",
|
|
78
|
-
"@deephaven/jsapi-shim": "^0.5.0",
|
|
79
|
-
"@deephaven/log": "^0.5.0",
|
|
80
|
-
"@deephaven/mocks": "^0.5.0",
|
|
81
|
-
"@deephaven/react-hooks": "^0.5.0",
|
|
82
|
-
"@deephaven/redux": "^0.5.0",
|
|
83
|
-
"@deephaven/tsconfig": "^0.5.0",
|
|
84
|
-
"@deephaven/utils": "^0.5.0",
|
|
85
|
-
"@fortawesome/react-fontawesome": "^0.1.12",
|
|
69
|
+
"@deephaven/components": "^0.6.1-fixed-deps.2+1d874ed",
|
|
70
|
+
"@deephaven/log": "^0.6.1-fixed-deps.2+1d874ed",
|
|
71
|
+
"@deephaven/mocks": "^0.6.1-fixed-deps.2+1d874ed",
|
|
72
|
+
"@deephaven/redux": "^0.6.1-fixed-deps.2+1d874ed",
|
|
73
|
+
"@deephaven/tsconfig": "^0.6.1-fixed-deps.2+1d874ed",
|
|
86
74
|
"@storybook/addon-actions": "^6.2.3",
|
|
87
75
|
"@storybook/addon-essentials": "^6.2.3",
|
|
88
76
|
"@storybook/addon-links": "^6.2.3",
|
|
89
77
|
"@storybook/react": "^6.2.3",
|
|
90
78
|
"@types/react": "^16.14.8",
|
|
91
|
-
"classnames": "^2.3.1",
|
|
92
79
|
"cross-env": "^7.0.2",
|
|
93
|
-
"deep-equal": "^2.0.4",
|
|
94
|
-
"gh-pages": "^2.2.0",
|
|
95
80
|
"identity-obj-proxy": "^3.0.0",
|
|
96
|
-
"jquery": "^3.5.1",
|
|
97
|
-
"lodash.debounce": "^4.0.8",
|
|
98
|
-
"lodash.throttle": "^4.1.1",
|
|
99
|
-
"memoize-one": "^5.1.1",
|
|
100
|
-
"memoizee": "^0.4.15",
|
|
101
81
|
"npm-run-all": "^4.1.5",
|
|
102
|
-
"prop-types": "^15.7.2",
|
|
103
82
|
"react": "^16.14.0",
|
|
104
|
-
"react-card-flip": "^0.7.2",
|
|
105
83
|
"react-dom": "^16.14.0",
|
|
106
|
-
"react-markdown": "^6.0.2",
|
|
107
84
|
"react-redux": "^7.2.4",
|
|
108
|
-
"react-transition-group": "^2.3.1",
|
|
109
|
-
"reactstrap": "^8.4.1",
|
|
110
85
|
"rimraf": "^3.0.2",
|
|
111
86
|
"sass": "1.32.13",
|
|
112
|
-
"
|
|
113
|
-
"ts-loader": "^8.3.0",
|
|
114
|
-
"typescript": "^4.3.2"
|
|
87
|
+
"typescript": "~4.3.2"
|
|
115
88
|
},
|
|
116
89
|
"files": [
|
|
117
90
|
"dist"
|
|
@@ -119,5 +92,5 @@
|
|
|
119
92
|
"publishConfig": {
|
|
120
93
|
"access": "public"
|
|
121
94
|
},
|
|
122
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "1d874ede742636976f1479910a0238f8f9abbebf"
|
|
123
96
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DashboardPluginComponentProps } from '@deephaven/dashboard';
|
|
3
|
-
export declare const MatPlotLibPlugin: ({ id, layout, registerComponent, }: DashboardPluginComponentProps) => JSX.Element;
|
|
4
|
-
export default MatPlotLibPlugin;
|
|
5
|
-
//# sourceMappingURL=MatPlotLibPlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MatPlotLibPlugin.d.ts","sourceRoot":"","sources":["../src/MatPlotLibPlugin.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,6BAA6B,EAG9B,MAAM,sBAAsB,CAAC;AAI9B,eAAO,MAAM,gBAAgB,uCAI1B,6BAA6B,KAAG,WAyClC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/MatPlotLibPlugin.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React, { useCallback, useEffect } from 'react';
|
|
2
|
-
import shortid from 'shortid';
|
|
3
|
-
import { LayoutUtils, useListener } from '@deephaven/dashboard';
|
|
4
|
-
import { MatPlotLibPanel } from './panels';
|
|
5
|
-
import { MatPlotLibEvent } from './events';
|
|
6
|
-
export var MatPlotLibPlugin = function MatPlotLibPlugin(_ref) {
|
|
7
|
-
var id = _ref.id,
|
|
8
|
-
layout = _ref.layout,
|
|
9
|
-
registerComponent = _ref.registerComponent;
|
|
10
|
-
var handleOpen = useCallback(function (title, makeModel) {
|
|
11
|
-
var metadata = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
12
|
-
var panelId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : shortid.generate();
|
|
13
|
-
var dragEvent = arguments.length > 4 ? arguments[4] : undefined;
|
|
14
|
-
var config = {
|
|
15
|
-
type: 'react-component',
|
|
16
|
-
component: MatPlotLibPanel.COMPONENT,
|
|
17
|
-
props: {
|
|
18
|
-
localDashboardId: id,
|
|
19
|
-
id: panelId,
|
|
20
|
-
metadata: metadata,
|
|
21
|
-
makeModel: makeModel
|
|
22
|
-
},
|
|
23
|
-
title: title,
|
|
24
|
-
id: panelId
|
|
25
|
-
};
|
|
26
|
-
var root = layout.root;
|
|
27
|
-
LayoutUtils.openComponent({
|
|
28
|
-
root: root,
|
|
29
|
-
config: config,
|
|
30
|
-
dragEvent: dragEvent
|
|
31
|
-
});
|
|
32
|
-
}, [id, layout]);
|
|
33
|
-
useEffect(function () {
|
|
34
|
-
var cleanups = [registerComponent(MatPlotLibPanel.COMPONENT, MatPlotLibPanel)];
|
|
35
|
-
return function () {
|
|
36
|
-
cleanups.forEach(function (cleanup) {
|
|
37
|
-
return cleanup();
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
}, [registerComponent]);
|
|
41
|
-
useListener(layout.eventHub, MatPlotLibEvent.OPEN, handleOpen);
|
|
42
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
43
|
-
};
|
|
44
|
-
export default MatPlotLibPlugin;
|
|
45
|
-
//# sourceMappingURL=MatPlotLibPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/MatPlotLibPlugin.tsx"],"names":["React","useCallback","useEffect","shortid","LayoutUtils","useListener","MatPlotLibPanel","MatPlotLibEvent","MatPlotLibPlugin","id","layout","registerComponent","handleOpen","title","makeModel","metadata","panelId","generate","dragEvent","config","type","component","COMPONENT","props","localDashboardId","root","openComponent","cleanups","forEach","cleanup","eventHub","OPEN"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,WAAhB,EAA6BC,SAA7B,QAA8C,OAA9C;AACA,OAAOC,OAAP,MAAoB,SAApB;AACA,SAEEC,WAFF,EAGEC,WAHF,QAIO,sBAJP;AAKA,SAASC,eAAT,QAAgC,UAAhC;AACA,SAASC,eAAT,QAAgC,UAAhC;AAEA,OAAO,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,OAIkB;AAAA,MAHhDC,EAGgD,QAHhDA,EAGgD;AAAA,MAFhDC,MAEgD,QAFhDA,MAEgD;AAAA,MADhDC,iBACgD,QADhDA,iBACgD;AAChD,MAAMC,UAAU,GAAGX,WAAW,CAC5B,UACEY,KADF,EAEEC,SAFF,EAMK;AAAA,QAHHC,QAGG,uEAHiC,EAGjC;AAAA,QAFHC,OAEG,uEAFOb,OAAO,CAACc,QAAR,EAEP;AAAA,QADHC,SACG;AACH,QAAMC,MAAM,GAAG;AACbC,MAAAA,IAAI,EAAE,iBADO;AAEbC,MAAAA,SAAS,EAAEf,eAAe,CAACgB,SAFd;AAGbC,MAAAA,KAAK,EAAE;AACLC,QAAAA,gBAAgB,EAAEf,EADb;AAELA,QAAAA,EAAE,EAAEO,OAFC;AAGLD,QAAAA,QAAQ,EAARA,QAHK;AAILD,QAAAA,SAAS,EAATA;AAJK,OAHM;AASbD,MAAAA,KAAK,EAALA,KATa;AAUbJ,MAAAA,EAAE,EAAEO;AAVS,KAAf;AAaA,QAAQS,IAAR,GAAiBf,MAAjB,CAAQe,IAAR;AACArB,IAAAA,WAAW,CAACsB,aAAZ,CAA0B;AAAED,MAAAA,IAAI,EAAJA,IAAF;AAAQN,MAAAA,MAAM,EAANA,MAAR;AAAgBD,MAAAA,SAAS,EAATA;AAAhB,KAA1B;AACD,GAvB2B,EAwB5B,CAACT,EAAD,EAAKC,MAAL,CAxB4B,CAA9B;AA2BAR,EAAAA,SAAS,CAAC,YAAM;AACd,QAAMyB,QAAQ,GAAG,CACfhB,iBAAiB,CAACL,eAAe,CAACgB,SAAjB,EAA4BhB,eAA5B,CADF,CAAjB;AAIA,WAAO,YAAM;AACXqB,MAAAA,QAAQ,CAACC,OAAT,CAAiB,UAAAC,OAAO;AAAA,eAAIA,OAAO,EAAX;AAAA,OAAxB;AACD,KAFD;AAGD,GARQ,EAQN,CAAClB,iBAAD,CARM,CAAT;AAUAN,EAAAA,WAAW,CAACK,MAAM,CAACoB,QAAR,EAAkBvB,eAAe,CAACwB,IAAlC,EAAwCnB,UAAxC,CAAX;AAEA,sBAAO,yCAAP;AACD,CA7CM;AA+CP,eAAeJ,gBAAf","sourcesContent":["import React, { useCallback, useEffect } from 'react';\nimport shortid from 'shortid';\nimport {\n DashboardPluginComponentProps,\n LayoutUtils,\n useListener,\n} from '@deephaven/dashboard';\nimport { MatPlotLibPanel } from './panels';\nimport { MatPlotLibEvent } from './events';\n\nexport const MatPlotLibPlugin = ({\n id,\n layout,\n registerComponent,\n}: DashboardPluginComponentProps): JSX.Element => {\n const handleOpen = useCallback(\n (\n title: string,\n makeModel: () => Promise<string>,\n metadata: Record<string, unknown> = {},\n panelId = shortid.generate(),\n dragEvent?: DragEvent\n ) => {\n const config = {\n type: 'react-component',\n component: MatPlotLibPanel.COMPONENT,\n props: {\n localDashboardId: id,\n id: panelId,\n metadata,\n makeModel,\n },\n title,\n id: panelId,\n };\n\n const { root } = layout;\n LayoutUtils.openComponent({ root, config, dragEvent });\n },\n [id, layout]\n );\n\n useEffect(() => {\n const cleanups = [\n registerComponent(MatPlotLibPanel.COMPONENT, MatPlotLibPanel),\n ];\n\n return () => {\n cleanups.forEach(cleanup => cleanup());\n };\n }, [registerComponent]);\n\n useListener(layout.eventHub, MatPlotLibEvent.OPEN, handleOpen);\n\n return <></>;\n};\n\nexport default MatPlotLibPlugin;\n"],"file":"MatPlotLibPlugin.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MatPlotLibEvent.d.ts","sourceRoot":"","sources":["../../src/events/MatPlotLibEvent.js"],"names":[],"mappings":";AAAA;IACE,oBAAgC;CACjC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
-
|
|
3
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
|
|
5
|
-
var MatPlotLibEvent = function MatPlotLibEvent() {
|
|
6
|
-
_classCallCheck(this, MatPlotLibEvent);
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
_defineProperty(MatPlotLibEvent, "OPEN", 'MatPlotLib.OPEN');
|
|
10
|
-
|
|
11
|
-
export default MatPlotLibEvent;
|
|
12
|
-
//# sourceMappingURL=MatPlotLibEvent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/events/MatPlotLibEvent.js"],"names":["MatPlotLibEvent"],"mappings":";;;;IAAMA,e;;;;gBAAAA,e,UACU,iB;;AAGhB,eAAeA,eAAf","sourcesContent":["class MatPlotLibEvent {\n static OPEN = 'MatPlotLib.OPEN';\n}\n\nexport default MatPlotLibEvent;\n"],"file":"MatPlotLibEvent.js"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default MatPlotLibPanel;
|
|
2
|
-
/**
|
|
3
|
-
* Wraps and IrisGridPanel to add a refresh button for Pandas.
|
|
4
|
-
*/
|
|
5
|
-
declare class MatPlotLibPanel extends React.Component<any, any, any> {
|
|
6
|
-
static COMPONENT: string;
|
|
7
|
-
constructor(props: any);
|
|
8
|
-
initImage(): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
declare namespace MatPlotLibPanel {
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
const makeModel: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
|
-
const panelState: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
14
|
-
}
|
|
15
|
-
namespace defaultProps {
|
|
16
|
-
const panelState_1: null;
|
|
17
|
-
export { panelState_1 as panelState };
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
import React from "react";
|
|
21
|
-
import PropTypes from "prop-types";
|
|
22
|
-
//# sourceMappingURL=MatPlotLibPanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MatPlotLibPanel.d.ts","sourceRoot":"","sources":["../../src/panels/MatPlotLibPanel.jsx"],"names":[],"mappings":";AAKA;;GAEG;AACH;IACE,yBAAqC;IAErC,wBAMC;IAMD,2BAIC;CAYF"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2
|
-
|
|
3
|
-
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); } }
|
|
4
|
-
|
|
5
|
-
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); }); }; }
|
|
6
|
-
|
|
7
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
-
|
|
9
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
10
|
-
|
|
11
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12
|
-
|
|
13
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
14
|
-
|
|
15
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
16
|
-
|
|
17
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
|
-
|
|
19
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
20
|
-
|
|
21
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22
|
-
|
|
23
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
-
|
|
25
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
26
|
-
|
|
27
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
28
|
-
|
|
29
|
-
/* eslint-disable react/jsx-props-no-spreading */
|
|
30
|
-
|
|
31
|
-
/* eslint-disable react/no-unused-state */
|
|
32
|
-
import React, { Component } from 'react';
|
|
33
|
-
import PropTypes from 'prop-types';
|
|
34
|
-
/**
|
|
35
|
-
* Wraps and IrisGridPanel to add a refresh button for Pandas.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
var MatPlotLibPanel = /*#__PURE__*/function (_Component) {
|
|
39
|
-
_inherits(MatPlotLibPanel, _Component);
|
|
40
|
-
|
|
41
|
-
var _super = _createSuper(MatPlotLibPanel);
|
|
42
|
-
|
|
43
|
-
function MatPlotLibPanel(props) {
|
|
44
|
-
var _this;
|
|
45
|
-
|
|
46
|
-
_classCallCheck(this, MatPlotLibPanel);
|
|
47
|
-
|
|
48
|
-
_this = _super.call(this, props);
|
|
49
|
-
_this.state = {
|
|
50
|
-
imageData: null
|
|
51
|
-
};
|
|
52
|
-
return _this;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_createClass(MatPlotLibPanel, [{
|
|
56
|
-
key: "componentDidMount",
|
|
57
|
-
value: function componentDidMount() {
|
|
58
|
-
this.initImage();
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
key: "initImage",
|
|
62
|
-
value: function () {
|
|
63
|
-
var _initImage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
64
|
-
var makeModel, imageData;
|
|
65
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
66
|
-
while (1) {
|
|
67
|
-
switch (_context.prev = _context.next) {
|
|
68
|
-
case 0:
|
|
69
|
-
makeModel = this.props.makeModel;
|
|
70
|
-
_context.next = 3;
|
|
71
|
-
return makeModel();
|
|
72
|
-
|
|
73
|
-
case 3:
|
|
74
|
-
imageData = _context.sent;
|
|
75
|
-
this.setState({
|
|
76
|
-
imageData: imageData
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
case 5:
|
|
80
|
-
case "end":
|
|
81
|
-
return _context.stop();
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}, _callee, this);
|
|
85
|
-
}));
|
|
86
|
-
|
|
87
|
-
function initImage() {
|
|
88
|
-
return _initImage.apply(this, arguments);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
return initImage;
|
|
92
|
-
}()
|
|
93
|
-
}, {
|
|
94
|
-
key: "render",
|
|
95
|
-
value: function render() {
|
|
96
|
-
var imageData = this.state.imageData;
|
|
97
|
-
var src = "data:image/png;base64,".concat(imageData);
|
|
98
|
-
return (
|
|
99
|
-
/*#__PURE__*/
|
|
100
|
-
// eslint-disable-next-line jsx-a11y/alt-text
|
|
101
|
-
React.createElement("div", {
|
|
102
|
-
className: "mat-plot-lib-panel"
|
|
103
|
-
}, imageData && /*#__PURE__*/React.createElement("img", {
|
|
104
|
-
src: src
|
|
105
|
-
}))
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
}]);
|
|
109
|
-
|
|
110
|
-
return MatPlotLibPanel;
|
|
111
|
-
}(Component);
|
|
112
|
-
|
|
113
|
-
_defineProperty(MatPlotLibPanel, "COMPONENT", 'MatPlotLibPanel');
|
|
114
|
-
|
|
115
|
-
MatPlotLibPanel.propTypes = {
|
|
116
|
-
makeModel: PropTypes.func.isRequired,
|
|
117
|
-
panelState: PropTypes.shape({})
|
|
118
|
-
};
|
|
119
|
-
MatPlotLibPanel.defaultProps = {
|
|
120
|
-
panelState: null
|
|
121
|
-
};
|
|
122
|
-
export default MatPlotLibPanel;
|
|
123
|
-
//# sourceMappingURL=MatPlotLibPanel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/panels/MatPlotLibPanel.jsx"],"names":["React","Component","PropTypes","MatPlotLibPanel","props","state","imageData","initImage","makeModel","setState","src","propTypes","func","isRequired","panelState","shape","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;AACA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA;AACA;AACA;;IACMC,e;;;;;AAGJ,2BAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,8BAAMA,KAAN;AAEA,UAAKC,KAAL,GAAa;AACXC,MAAAA,SAAS,EAAE;AADA,KAAb;AAHiB;AAMlB;;;;WAED,6BAAoB;AAClB,WAAKC,SAAL;AACD;;;;+EAED;AAAA;AAAA;AAAA;AAAA;AAAA;AACUC,gBAAAA,SADV,GACwB,KAAKJ,KAD7B,CACUI,SADV;AAAA;AAAA,uBAE0BA,SAAS,EAFnC;;AAAA;AAEQF,gBAAAA,SAFR;AAGE,qBAAKG,QAAL,CAAc;AAAEH,kBAAAA,SAAS,EAATA;AAAF,iBAAd;;AAHF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;WAMA,kBAAS;AACP,UAAQA,SAAR,GAAsB,KAAKD,KAA3B,CAAQC,SAAR;AAEA,UAAMI,GAAG,mCAA4BJ,SAA5B,CAAT;AAEA;AAAA;AACE;AACA;AAAK,UAAA,SAAS,EAAC;AAAf,WAAqCA,SAAS,iBAAI;AAAK,UAAA,GAAG,EAAEI;AAAV,UAAlD;AAFF;AAID;;;;EA9B2BT,S;;gBAAxBE,e,eACe,iB;;AAgCrBA,eAAe,CAACQ,SAAhB,GAA4B;AAC1BH,EAAAA,SAAS,EAAEN,SAAS,CAACU,IAAV,CAAeC,UADA;AAE1BC,EAAAA,UAAU,EAAEZ,SAAS,CAACa,KAAV,CAAgB,EAAhB;AAFc,CAA5B;AAKAZ,eAAe,CAACa,YAAhB,GAA+B;AAC7BF,EAAAA,UAAU,EAAE;AADiB,CAA/B;AAIA,eAAeX,eAAf","sourcesContent":["/* eslint-disable react/jsx-props-no-spreading */\n/* eslint-disable react/no-unused-state */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * Wraps and IrisGridPanel to add a refresh button for Pandas.\n */\nclass MatPlotLibPanel extends Component {\n static COMPONENT = 'MatPlotLibPanel';\n\n constructor(props) {\n super(props);\n\n this.state = {\n imageData: null,\n };\n }\n\n componentDidMount() {\n this.initImage();\n }\n\n async initImage() {\n const { makeModel } = this.props;\n const imageData = await makeModel();\n this.setState({ imageData });\n }\n\n render() {\n const { imageData } = this.state;\n\n const src = `data:image/png;base64,${imageData}`;\n\n return (\n // eslint-disable-next-line jsx-a11y/alt-text\n <div className=\"mat-plot-lib-panel\">{imageData && <img src={src} />}</div>\n );\n }\n}\n\nMatPlotLibPanel.propTypes = {\n makeModel: PropTypes.func.isRequired,\n panelState: PropTypes.shape({}),\n};\n\nMatPlotLibPanel.defaultProps = {\n panelState: null,\n};\n\nexport default MatPlotLibPanel;\n"],"file":"MatPlotLibPanel.js"}
|