@deephaven/js-plugin-ag-grid 0.1.1 → 0.1.3

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/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # Deephaven JS Plugin for AG Grid
2
+
3
+ This package can be used to display Deephaven tables using [AG Grid](https://www.ag-grid.com/). It is currently in a beta state.
4
+
5
+ ## Usage
6
+
7
+ Import the DeephavenViewportDatasource and use it with your AG Grid view. For example, in React:
8
+
9
+ ```tsx
10
+ import React, { useEffect, useRef } from 'react';
11
+ import { AgGridReact } from 'ag-grid-react';
12
+ import type { dh as DhType } from '@deephaven/jsapi-types';
13
+ import { DeephavenViewportDatasource } from '@deephaven/js-plugin-ag-grid';
14
+
15
+ function DeephavenAgGridComponent({
16
+ dh,
17
+ table,
18
+ }: {
19
+ dh: typeof DhType;
20
+ table: DhType.Table;
21
+ }) {
22
+ const datasource = useMemo(
23
+ () => new DeephavenViewportDatasource(dh, table),
24
+ [dh, table]
25
+ );
26
+ return (
27
+ <AgGridReact
28
+ onGridReady={({ api }) => {
29
+ // Set the API in the Grid when the grid is ready
30
+ datasource.setGridApi(api);
31
+ }}
32
+ rowModelType="viewport"
33
+ viewportDatasource={datasource}
34
+ // other AG Grid properties
35
+ />
36
+ );
37
+ }
38
+ ```
39
+
40
+ ## Details
41
+
42
+ The `DeephavenViewportDatasource` class is designed to work with AG Grid's viewport row model. It fetches data from a Deephaven table and provides it to the grid as needed. The datasource handles the logic for fetching rows based on the current viewport, which is defined by the first and last row indices.
43
+
44
+ The [`DeephavenViewportDatasource` listens to the grid's events](./src/datasources/DeephavenViewportDatasource.ts#115) to determine when to update the filters, sorts, aggregations, and groupings in the Deephaven table. Functions in the [utils](./src/utils/) map the Grid's state to operations that can be applied to the Deephaven Table object, which then applies the operation on the server side.
45
+
46
+ - [AgGridFilterUtils](./src/utils/AgGridFilterUtils.ts): Utility functions for mapping AG Grid filter models to Deephaven table operations.
47
+ - [AgGridSortUtils](./src/utils/AgGridSortUtils.ts): Utility functions for mapping AG Grid sort models to Deephaven table operations.
48
+ - [AgGridAggUtils](./src/utils/AgGridAggUtils.ts): Utility functions for mapping AG Grid aggregation and grouping models to Deephaven table operations.
@@ -1 +1 @@
1
- {"version":3,"file":"AgGridWidget.d.ts","sourceRoot":"","sources":["../src/AgGridWidget.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAgB9D;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,oBAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,GACzC,GAAG,CAAC,OAAO,CAwEb;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"AgGridWidget.d.ts","sourceRoot":"","sources":["../src/AgGridWidget.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAe9D;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,oBAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,GACzC,GAAG,CAAC,OAAO,CA2Eb;AAED,eAAe,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useMemo, useState } from 'react';
3
3
  import { LoadingOverlay } from '@deephaven/components';
4
4
  import { useApi } from '@deephaven/jsapi-bootstrap';
@@ -11,7 +11,6 @@ import { ColumnsToolPanelModule } from '@ag-grid-enterprise/column-tool-panel';
11
11
  import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping';
12
12
  import AgGridView from './AgGridView';
13
13
  import AgGridDhTheme from './AgGridDhTheme';
14
- import customStyles from './AgGridCustomStyles.css?inline';
15
14
  const log = Log.module('@deephaven/js-plugin-ag-grid/AgGridView');
16
15
  /**
17
16
  * Fetches an AgGrid widget from the server and fetches the underlying table provided by the widget.
@@ -45,6 +44,10 @@ export function AgGridWidget(props) {
45
44
  suppressCellFocus: true,
46
45
  theme,
47
46
  rowHeight: themeParams.rowHeight,
47
+ rowStyle: {
48
+ // Displays numbers as monospace figures. Keeps decimal alignment.
49
+ fontVariantNumeric: 'tabular-nums',
50
+ },
48
51
  }), [theme, themeParams]);
49
52
  /** First we load the widget object. This is the object that is sent from the server in AgGridMessageStream. */
50
53
  useEffect(() => {
@@ -63,7 +66,7 @@ export function AgGridWidget(props) {
63
66
  cancelled = true;
64
67
  };
65
68
  }, [dh, fetch]);
66
- return table != null ? (_jsxs("div", Object.assign({ className: "ui-table-container" }, { children: [_jsx("style", { children: customStyles }), _jsx(AgGridView, { table: table, settings: settings, agGridProps: agGridProps })] }))) : (_jsx(LoadingOverlay, {}));
69
+ return table != null ? (_jsx("div", Object.assign({ className: "ui-table-container" }, { children: _jsx(AgGridView, { table: table, settings: settings, agGridProps: agGridProps }) }))) : (_jsx(LoadingOverlay, {}));
67
70
  }
68
71
  export default AgGridWidget;
69
72
  //# sourceMappingURL=AgGridWidget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AgGridWidget.js","sourceRoot":"","sources":["../src/AgGridWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,GAAG,MAAM,gBAAgB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAa,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OA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C;IAEhB,OAAO,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,CACrB,4BAAK,SAAS,EAAC,oBAAoB,gBACjC,KAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,GAAI,IACtE,CACP,CAAC,CAAC,CAAC,CACF,KAAC,cAAc,KAAG,CACnB,CAAC;AACJ,CAAC;AAED,eAAe,YAAY,CAAC"}
@@ -60452,7 +60452,6 @@ function TreeCellRenderer(props) {
60452
60452
  {
60453
60453
  icon: isExpanded ? icons.vsTriangleDown : icons.vsTriangleRight,
60454
60454
  kind: "ghost",
60455
- tooltip: isExpanded ? "Collapse" : "Expand",
60456
60455
  onClick: handleClick,
60457
60456
  style: {
60458
60457
  width: "calc(100% - 5px)",
@@ -60624,7 +60623,6 @@ class AgGridDhTheme {
60624
60623
  }
60625
60624
  }
60626
60625
  }
60627
- const customStyles = "/* This file contains any custom CSS rules that should be applied to AG Grid elements */\n/* Only use this for styles that are not possible to do with theme parameters */\n\n.ag-cell {\n font-feature-settings: 'tnum';\n}\n";
60628
60626
  const log = Log.module("@deephaven/js-plugin-ag-grid/AgGridView");
60629
60627
  function AgGridWidget(props) {
60630
60628
  const dh = jsapiBootstrap.useApi();
@@ -60660,7 +60658,11 @@ function AgGridWidget(props) {
60660
60658
  },
60661
60659
  suppressCellFocus: true,
60662
60660
  theme,
60663
- rowHeight: themeParams.rowHeight
60661
+ rowHeight: themeParams.rowHeight,
60662
+ rowStyle: {
60663
+ // Displays numbers as monospace figures. Keeps decimal alignment.
60664
+ fontVariantNumeric: "tabular-nums"
60665
+ }
60664
60666
  }),
60665
60667
  [theme, themeParams]
60666
60668
  );
@@ -60680,10 +60682,7 @@ function AgGridWidget(props) {
60680
60682
  cancelled = true;
60681
60683
  };
60682
60684
  }, [dh, fetch]);
60683
- return table != null ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ui-table-container", children: [
60684
- /* @__PURE__ */ jsxRuntimeExports.jsx("style", { children: customStyles }),
60685
- /* @__PURE__ */ jsxRuntimeExports.jsx(AgGridView, { table, settings, agGridProps })
60686
- ] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(components.LoadingOverlay, {});
60685
+ return table != null ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ui-table-container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgGridView, { table, settings, agGridProps }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(components.LoadingOverlay, {});
60687
60686
  }
60688
60687
  GridLicenseManager.setLicenseKey("Set_your_own_key");
60689
60688
  const AgGridPlugin = {
@@ -60698,6 +60697,7 @@ exports.AgGridCellColors = AgGridCellColors;
60698
60697
  exports.AgGridThemeColors = AgGridThemeColors;
60699
60698
  exports.DeephavenViewportDatasource = DeephavenViewportDatasource;
60700
60699
  exports.TREE_NODE_KEY = TREE_NODE_KEY;
60700
+ exports.TreeCellRenderer = TreeCellRenderer;
60701
60701
  exports.convertColumnToColDef = convertColumnToColDef;
60702
60702
  exports.default = AgGridPlugin;
60703
60703
  exports.extractViewportRow = extractViewportRow;
@@ -4,5 +4,6 @@ import DeephavenViewportDatasource from '../datasources/DeephavenViewportDatasou
4
4
  export type TreeCellRendererProps = CustomCellRendererProps & {
5
5
  datasource: DeephavenViewportDatasource;
6
6
  };
7
- export default function TreeCellRenderer(props: TreeCellRendererProps): JSX.Element;
7
+ export declare function TreeCellRenderer(props: TreeCellRendererProps): JSX.Element;
8
+ export default TreeCellRenderer;
8
9
  //# sourceMappingURL=TreeCellRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TreeCellRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/TreeCellRenderer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAInE,OAAO,2BAA2B,MAAM,4CAA4C,CAAC;AAErF,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,GAAG;IAC5D,UAAU,EAAE,2BAA2B,CAAC;CACzC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,KAAK,EAAE,qBAAqB,GAC3B,GAAG,CAAC,OAAO,CA6Cb"}
1
+ {"version":3,"file":"TreeCellRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/TreeCellRenderer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAInE,OAAO,2BAA2B,MAAM,4CAA4C,CAAC;AAErF,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,GAAG;IAC5D,UAAU,EAAE,2BAA2B,CAAC;CACzC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CA4C1E;AAED,eAAe,gBAAgB,CAAC"}
@@ -4,7 +4,7 @@ import { Button } from '@deephaven/components';
4
4
  import { vsTriangleDown, vsTriangleRight } from '@deephaven/icons';
5
5
  import { TREE_NODE_KEY } from '../utils/AgGridTableUtils';
6
6
  import DeephavenViewportDatasource from '../datasources/DeephavenViewportDatasource';
7
- export default function TreeCellRenderer(props) {
7
+ export function TreeCellRenderer(props) {
8
8
  const { node, datasource, api } = props;
9
9
  const { data } = node;
10
10
  const treeNode = data === null || data === void 0 ? void 0 : data[TREE_NODE_KEY];
@@ -19,7 +19,7 @@ export default function TreeCellRenderer(props) {
19
19
  const colDef = rowGroupColumns[hasChildren ? depth - 2 : rowGroupColumns.length - 1];
20
20
  const colId = colDef === null || colDef === void 0 ? void 0 : colDef.getId();
21
21
  const groupName = data === null || data === void 0 ? void 0 : data[colId];
22
- return (_jsxs(_Fragment, { children: [hasChildren && (_jsx(Button, Object.assign({ icon: isExpanded ? vsTriangleDown : vsTriangleRight, kind: "ghost", tooltip: isExpanded ? 'Collapse' : 'Expand', onClick: handleClick, style: {
22
+ return (_jsxs(_Fragment, { children: [hasChildren && (_jsx(Button, Object.assign({ icon: isExpanded ? vsTriangleDown : vsTriangleRight, kind: "ghost", onClick: handleClick, style: {
23
23
  width: 'calc(100% - 5px)',
24
24
  height: '100%',
25
25
  margin: 0,
@@ -31,4 +31,5 @@ export default function TreeCellRenderer(props) {
31
31
  justifyContent: 'left',
32
32
  } }, { children: groupName }))), !hasChildren && groupName] }));
33
33
  }
34
+ export default TreeCellRenderer;
34
35
  //# sourceMappingURL=TreeCellRenderer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TreeCellRenderer.js","sourceRoot":"","sources":["../../src/renderers/TreeCellRenderer.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAY,MAAM,2BAA2B,CAAC;AACpE,OAAO,2BAA2B,MAAM,4CAA4C,CAAC;AAMrF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,KAA4B;IAE5B,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IACtB,MAAM,QAAQ,GAAyB,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAG,aAAa,CAAC,CAAC;IAC7D,MAAM,EAAE,WAAW,GAAG,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,UAAU,GAAG,KAAK,EAAE,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC;IAE9E,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,IAAI,QAAQ,IAAI,IAAI,IAAI,UAAU,YAAY,2BAA2B,EAAE;YACzE,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;SA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M,kBACL,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,eAAe,EACnD,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE;oBACL,KAAK,EAAE,kBAAkB;oBACzB,MAAM,EAAE,MAAM;oBACd,MAAM,EAAE,CAAC;oBACT,UAAU,EAAE,CAAC;oBACb,aAAa,EAAE,CAAC;oBAChB,YAAY,EAAE,CAAC;oBACf,WAAW,EAAE,KAAK,GAAG,EAAE;oBACvB,SAAS,EAAE,MAAM;oBACjB,cAAc,EAAE,MAAM;iBACvB,gBAEA,SAAS,IACH,CACV,EACA,CAAC,WAAW,IAAI,SAAS,IACzB,CACJ,CAAC;AACJ,CAAC;AAED,eAAe,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/js-plugin-ag-grid",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Deephaven AG Grid plugin",
5
5
  "keywords": [
6
6
  "Deephaven",
@@ -44,8 +44,8 @@
44
44
  "typescript": "^4.5.4"
45
45
  },
46
46
  "peerDependencies": {
47
- "react": "^17.0.2 || ^18.0.0",
48
- "react-dom": "^17.0.2 || ^18.0.0"
47
+ "react": "^17.0.2 || ^18.0.0 || ^19.0.0",
48
+ "react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "@ag-grid-community/core": "32.3.4",
@@ -73,5 +73,5 @@
73
73
  "files": [
74
74
  "dist"
75
75
  ],
76
- "gitHead": "0423022aba67d6a4ee723846a744c9013fd5d5f5"
76
+ "gitHead": "45af14b29719a3c7362a9ad5db282301414055ca"
77
77
  }