@deephaven/dashboard-core-plugins 0.32.0 → 0.32.1-beta.1
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":"ChartBuilderPlugin.d.ts","sourceRoot":"","sources":["../src/ChartBuilderPlugin.tsx"],"names":[],"mappings":";AAEA,OAAO,EAEL,6BAA6B,EAG9B,MAAM,sBAAsB,CAAC;AAM9B,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAE7E;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,uBAAuB,GAC7B,GAAG,CAAC,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"ChartBuilderPlugin.d.ts","sourceRoot":"","sources":["../src/ChartBuilderPlugin.tsx"],"names":[],"mappings":";AAEA,OAAO,EAEL,6BAA6B,EAG9B,MAAM,sBAAsB,CAAC;AAM9B,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAE7E;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,uBAAuB,GAC7B,GAAG,CAAC,OAAO,GAAG,IAAI,CAmDpB;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -23,9 +23,7 @@ export function ChartBuilderPlugin(props) {
|
|
|
23
23
|
var {
|
|
24
24
|
settings
|
|
25
25
|
} = metadata;
|
|
26
|
-
var makeModel = () =>
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
-
ChartModelFactory.makeModelFromSettings(settings, table);
|
|
26
|
+
var makeModel = () => ChartModelFactory.makeModelFromSettings(settings, table);
|
|
29
27
|
var title = ChartUtils.titleFromSettings(settings);
|
|
30
28
|
var config = {
|
|
31
29
|
type: 'react-component',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartBuilderPlugin.js","names":["useCallback","ChartModelFactory","ChartUtils","assertIsDashboardPluginProps","LayoutUtils","useListener","shortid","IrisGridEvent","ChartPanel","ChartBuilderPlugin","props","id","layout","handleCreateChart","metadata","panelId","generate","table","settings","makeModel","makeModelFromSettings","title","titleFromSettings","config","type","component","COMPONENT","localDashboardId","root","openComponent","eventHub","CREATE_CHART"],"sources":["../src/ChartBuilderPlugin.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { ChartModelFactory, ChartUtils } from '@deephaven/chart';\nimport {\n assertIsDashboardPluginProps,\n DashboardPluginComponentProps,\n LayoutUtils,\n useListener,\n} from '@deephaven/dashboard';\nimport { SeriesPlotStyle, Table } from '@deephaven/jsapi-shim';\nimport shortid from 'shortid';\nimport { IrisGridEvent } from './events';\nimport { ChartPanel } from './panels';\n\nexport type ChartBuilderPluginProps = Partial<DashboardPluginComponentProps>;\n\n/**\n * Listens for IrisGridEvent.CREATE_CHART and creates a chart from the settings provided\n * Requires the GridPlugin and ChartPlugin plugins to be loaded as well\n */\nexport function ChartBuilderPlugin(\n props: ChartBuilderPluginProps\n): JSX.Element | null {\n assertIsDashboardPluginProps(props);\n const { id, layout } = props;\n const handleCreateChart = useCallback(\n ({\n metadata,\n panelId = shortid.generate(),\n table,\n }: {\n metadata: {\n settings: {\n type: keyof SeriesPlotStyle;\n series: string[];\n xAxis: string;\n isLinked: boolean;\n hiddenSeries?: string[];\n };\n sourcePanelId: string;\n table: string;\n tableSettings: Record<string, unknown>;\n };\n panelId?: string;\n table: Table;\n }) => {\n const { settings } = metadata;\n const makeModel = () =>\n
|
|
1
|
+
{"version":3,"file":"ChartBuilderPlugin.js","names":["useCallback","ChartModelFactory","ChartUtils","assertIsDashboardPluginProps","LayoutUtils","useListener","shortid","IrisGridEvent","ChartPanel","ChartBuilderPlugin","props","id","layout","handleCreateChart","metadata","panelId","generate","table","settings","makeModel","makeModelFromSettings","title","titleFromSettings","config","type","component","COMPONENT","localDashboardId","root","openComponent","eventHub","CREATE_CHART"],"sources":["../src/ChartBuilderPlugin.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { ChartModelFactory, ChartUtils } from '@deephaven/chart';\nimport {\n assertIsDashboardPluginProps,\n DashboardPluginComponentProps,\n LayoutUtils,\n useListener,\n} from '@deephaven/dashboard';\nimport { SeriesPlotStyle, Table } from '@deephaven/jsapi-shim';\nimport shortid from 'shortid';\nimport { IrisGridEvent } from './events';\nimport { ChartPanel } from './panels';\n\nexport type ChartBuilderPluginProps = Partial<DashboardPluginComponentProps>;\n\n/**\n * Listens for IrisGridEvent.CREATE_CHART and creates a chart from the settings provided\n * Requires the GridPlugin and ChartPlugin plugins to be loaded as well\n */\nexport function ChartBuilderPlugin(\n props: ChartBuilderPluginProps\n): JSX.Element | null {\n assertIsDashboardPluginProps(props);\n const { id, layout } = props;\n const handleCreateChart = useCallback(\n ({\n metadata,\n panelId = shortid.generate(),\n table,\n }: {\n metadata: {\n settings: {\n type: keyof SeriesPlotStyle;\n series: string[];\n xAxis: string;\n isLinked: boolean;\n hiddenSeries?: string[];\n };\n sourcePanelId: string;\n table: string;\n tableSettings: Record<string, unknown>;\n };\n panelId?: string;\n table: Table;\n }) => {\n const { settings } = metadata;\n const makeModel = () =>\n ChartModelFactory.makeModelFromSettings(settings, table);\n const title = ChartUtils.titleFromSettings(settings);\n\n const config = {\n type: 'react-component' as const,\n component: ChartPanel.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 });\n },\n [id, layout]\n );\n\n useListener(layout.eventHub, IrisGridEvent.CREATE_CHART, handleCreateChart);\n\n return null;\n}\n\nexport default ChartBuilderPlugin;\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,OAAO;AACnC,SAASC,iBAAiB,EAAEC,UAAU,QAAQ,kBAAkB;AAChE,SACEC,4BAA4B,EAE5BC,WAAW,EACXC,WAAW,QACN,sBAAsB;AAE7B,OAAOC,OAAO,MAAM,SAAS;AAAC,SACrBC,aAAa;AAAA,SACbC,UAAU;AAInB;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkB,CAChCC,KAA8B,EACV;EACpBP,4BAA4B,CAACO,KAAK,CAAC;EACnC,IAAM;IAAEC,EAAE;IAAEC;EAAO,CAAC,GAAGF,KAAK;EAC5B,IAAMG,iBAAiB,GAAGb,WAAW,CACnC,QAmBM;IAAA,IAnBL;MACCc,QAAQ;MACRC,OAAO,GAAGT,OAAO,CAACU,QAAQ,EAAE;MAC5BC;IAgBF,CAAC;IACC,IAAM;MAAEC;IAAS,CAAC,GAAGJ,QAAQ;IAC7B,IAAMK,SAAS,GAAG,MAChBlB,iBAAiB,CAACmB,qBAAqB,CAACF,QAAQ,EAAED,KAAK,CAAC;IAC1D,IAAMI,KAAK,GAAGnB,UAAU,CAACoB,iBAAiB,CAACJ,QAAQ,CAAC;IAEpD,IAAMK,MAAM,GAAG;MACbC,IAAI,EAAE,iBAA0B;MAChCC,SAAS,EAAEjB,UAAU,CAACkB,SAAS;MAC/BhB,KAAK,EAAE;QACLiB,gBAAgB,EAAEhB,EAAE;QACpBA,EAAE,EAAEI,OAAO;QACXD,QAAQ;QACRK;MACF,CAAC;MACDE,KAAK;MACLV,EAAE,EAAEI;IACN,CAAC;IAED,IAAM;MAAEa;IAAK,CAAC,GAAGhB,MAAM;IACvBR,WAAW,CAACyB,aAAa,CAAC;MAAED,IAAI;MAAEL;IAAO,CAAC,CAAC;EAC7C,CAAC,EACD,CAACZ,EAAE,EAAEC,MAAM,CAAC,CACb;EAEDP,WAAW,CAACO,MAAM,CAACkB,QAAQ,EAAEvB,aAAa,CAACwB,YAAY,EAAElB,iBAAiB,CAAC;EAE3E,OAAO,IAAI;AACb;AAEA,eAAeJ,kBAAkB"}
|
|
@@ -206,10 +206,10 @@ export declare class IrisGridPanel extends PureComponent<IrisGridPanelProps, Iri
|
|
|
206
206
|
updateGrid(): void;
|
|
207
207
|
render(): ReactElement;
|
|
208
208
|
}
|
|
209
|
-
declare const _default: import("react-redux").ConnectedComponent<typeof IrisGridPanel, import("react-redux").Omit<Pick<React.ClassAttributes<IrisGridPanel> & IrisGridPanelProps, "glContainer" | "children" | "metadata" | "glEventHub" | "panelState" | "columnSelectionValidator" | "settings" | "
|
|
209
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof IrisGridPanel, import("react-redux").Omit<Pick<React.ClassAttributes<IrisGridPanel> & IrisGridPanelProps, "glContainer" | "children" | "metadata" | "glEventHub" | "panelState" | "columnSelectionValidator" | "settings" | "user" | "workspace" | "inputFilters" | "links" | "makeModel" | "getDownloadWorker" | "loadPlugin" | "theme" | keyof React.ClassAttributes<IrisGridPanel>> & Partial<Pick<React.ClassAttributes<IrisGridPanel> & IrisGridPanelProps, "onStateChange" | "onPanelStateUpdate">> & Partial<Pick<{
|
|
210
210
|
onStateChange: () => void;
|
|
211
211
|
onPanelStateUpdate: () => void;
|
|
212
|
-
}, never>>, "columnSelectionValidator" | "settings" | "
|
|
212
|
+
}, never>>, "columnSelectionValidator" | "settings" | "user" | "workspace" | "inputFilters" | "links"> & {
|
|
213
213
|
localDashboardId?: string | undefined;
|
|
214
214
|
}>;
|
|
215
215
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/dashboard-core-plugins",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.1-beta.1+362928f",
|
|
4
4
|
"description": "Deephaven Dashboard Core Plugins",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@deephaven/chart": "^0.32.
|
|
26
|
-
"@deephaven/components": "^0.32.
|
|
27
|
-
"@deephaven/console": "^0.32.
|
|
28
|
-
"@deephaven/dashboard": "^0.32.
|
|
29
|
-
"@deephaven/file-explorer": "^0.32.
|
|
30
|
-
"@deephaven/filters": "^0.32.
|
|
31
|
-
"@deephaven/golden-layout": "^0.32.
|
|
32
|
-
"@deephaven/grid": "^0.32.
|
|
33
|
-
"@deephaven/icons": "^0.32.
|
|
34
|
-
"@deephaven/iris-grid": "^0.32.
|
|
35
|
-
"@deephaven/jsapi-shim": "^0.32.
|
|
36
|
-
"@deephaven/jsapi-utils": "^0.32.
|
|
37
|
-
"@deephaven/log": "^0.32.
|
|
38
|
-
"@deephaven/react-hooks": "^0.32.
|
|
39
|
-
"@deephaven/redux": "^0.32.
|
|
40
|
-
"@deephaven/storage": "^0.32.
|
|
41
|
-
"@deephaven/utils": "^0.32.
|
|
25
|
+
"@deephaven/chart": "^0.32.1-beta.1+362928f",
|
|
26
|
+
"@deephaven/components": "^0.32.1-beta.1+362928f",
|
|
27
|
+
"@deephaven/console": "^0.32.1-beta.1+362928f",
|
|
28
|
+
"@deephaven/dashboard": "^0.32.1-beta.1+362928f",
|
|
29
|
+
"@deephaven/file-explorer": "^0.32.1-beta.1+362928f",
|
|
30
|
+
"@deephaven/filters": "^0.32.1-beta.1+362928f",
|
|
31
|
+
"@deephaven/golden-layout": "^0.32.1-beta.1+362928f",
|
|
32
|
+
"@deephaven/grid": "^0.32.1-beta.1+362928f",
|
|
33
|
+
"@deephaven/icons": "^0.32.1-beta.1+362928f",
|
|
34
|
+
"@deephaven/iris-grid": "^0.32.1-beta.1+362928f",
|
|
35
|
+
"@deephaven/jsapi-shim": "^0.32.1-beta.1+362928f",
|
|
36
|
+
"@deephaven/jsapi-utils": "^0.32.1-beta.1+362928f",
|
|
37
|
+
"@deephaven/log": "^0.32.1-beta.1+362928f",
|
|
38
|
+
"@deephaven/react-hooks": "^0.32.1-beta.1+362928f",
|
|
39
|
+
"@deephaven/redux": "^0.32.1-beta.1+362928f",
|
|
40
|
+
"@deephaven/storage": "^0.32.1-beta.1+362928f",
|
|
41
|
+
"@deephaven/utils": "^0.32.1-beta.1+362928f",
|
|
42
42
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
43
43
|
"classnames": "^2.3.1",
|
|
44
44
|
"deep-equal": "^2.0.5",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"react-redux": "^7.2.4"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@deephaven/mocks": "^0.32.
|
|
65
|
-
"@deephaven/tsconfig": "^0.32.
|
|
64
|
+
"@deephaven/mocks": "^0.32.1-beta.1+362928f",
|
|
65
|
+
"@deephaven/tsconfig": "^0.32.1-beta.1+362928f"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"dist"
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "362928fbf9e5e1fdfcdb84748c38ed9d09acf599"
|
|
74
74
|
}
|