@deephaven/js-plugin-pivot 0.0.3-alpha-pivots.988 → 0.0.3-alpha-pivots.991

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.
Files changed (2) hide show
  1. package/dist/index.js +29 -47
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -10482,27 +10482,6 @@ class IrisGridPivotModel extends irisGrid.IrisGridModel {
10482
10482
  async export() {
10483
10483
  throw new Error("Method not implemented.");
10484
10484
  }
10485
- async showFilter() {
10486
- throw new Error("Method not implemented.");
10487
- }
10488
- async quickFilter() {
10489
- throw new Error("Method not implemented.");
10490
- }
10491
- async autoResizeColumns() {
10492
- throw new Error("Method not implemented.");
10493
- }
10494
- async applySort() {
10495
- throw new Error("Method not implemented.");
10496
- }
10497
- async clearFilter() {
10498
- throw new Error("Method not implemented.");
10499
- }
10500
- async applyFilter() {
10501
- throw new Error("Method not implemented.");
10502
- }
10503
- async copy() {
10504
- throw new Error("Method not implemented.");
10505
- }
10506
10485
  get totalsColumns() {
10507
10486
  return this.getCachedTotalsColumns(
10508
10487
  this.pivotTable,
@@ -11741,34 +11720,36 @@ function useHydratePivotGrid(fetch, id, metadata) {
11741
11720
  },
11742
11721
  metadata,
11743
11722
  mouseHandlers,
11744
- renderer,
11745
- theme: pivotTheme
11723
+ renderer
11746
11724
  }),
11747
- [
11748
- api,
11749
- fetchTable,
11750
- id,
11751
- loadPlugin,
11752
- metadata,
11753
- mouseHandlers,
11754
- renderer,
11755
- pivotTheme
11756
- ]
11725
+ [api, fetchTable, id, loadPlugin, metadata, mouseHandlers, renderer]
11757
11726
  );
11758
- return hydratedProps;
11759
- }
11760
- function PivotPanel(props) {
11761
- const { localDashboardId, fetch, metadata } = props;
11762
- const hydratedProps = useHydratePivotGrid(fetch, localDashboardId, metadata);
11763
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
11764
- dashboardCorePlugins.IrisGridPanel,
11765
- {
11766
- ...props,
11767
- ...hydratedProps
11768
- }
11727
+ const hydratedPropsWithTheme = React.useMemo(
11728
+ () => ({ ...hydratedProps, theme: pivotTheme }),
11729
+ [hydratedProps, pivotTheme]
11769
11730
  );
11731
+ return hydratedPropsWithTheme;
11770
11732
  }
11771
- PivotPanel.COMPONENT = "PivotPanel";
11733
+ const PivotPanel = React.forwardRef(
11734
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11735
+ (props, ref) => {
11736
+ const { localDashboardId, fetch, metadata } = props;
11737
+ const hydratedProps = useHydratePivotGrid(
11738
+ fetch,
11739
+ localDashboardId,
11740
+ metadata
11741
+ );
11742
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
11743
+ dashboardCorePlugins.IrisGridPanel,
11744
+ {
11745
+ ref,
11746
+ ...props,
11747
+ ...hydratedProps
11748
+ }
11749
+ );
11750
+ }
11751
+ );
11752
+ PivotPanel.displayName = "PivotPanel";
11772
11753
  const PivotPlugin = {
11773
11754
  name: "@deephaven/js-plugin-pivot",
11774
11755
  type: plugin.PluginType.WIDGET_PLUGIN,
@@ -11809,7 +11790,7 @@ function DashboardPlugin({
11809
11790
  log.info("Panel opened of type", type);
11810
11791
  const config = {
11811
11792
  type: "react-component",
11812
- component: PivotPanel.COMPONENT,
11793
+ component: PivotPanel.displayName,
11813
11794
  props: {
11814
11795
  localDashboardId: id,
11815
11796
  id: panelId,
@@ -11828,7 +11809,8 @@ function DashboardPlugin({
11828
11809
  [id, layout]
11829
11810
  );
11830
11811
  React.useEffect(() => {
11831
- const cleanups = [registerComponent(PivotPanel.COMPONENT, PivotPanel)];
11812
+ assertNotNull(PivotPanel.displayName);
11813
+ const cleanups = [registerComponent(PivotPanel.displayName, PivotPanel)];
11832
11814
  return () => {
11833
11815
  cleanups.forEach((cleanup) => cleanup());
11834
11816
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/js-plugin-pivot",
3
- "version": "0.0.3-alpha-pivots.988+5b061b1",
3
+ "version": "0.0.3-alpha-pivots.991+e05048f",
4
4
  "description": "Pivot plugin for Deephaven",
5
5
  "keywords": [
6
6
  "Deephaven",
@@ -59,5 +59,5 @@
59
59
  "files": [
60
60
  "dist/index.js"
61
61
  ],
62
- "gitHead": "5b061b1eec07f0532fa8c4bb47b38587cae7109d"
62
+ "gitHead": "e05048f8e3d9a364f7494e82c02064ccf48d1edc"
63
63
  }