@alaarab/ogrid-react-material 2.1.12 → 2.1.14

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/esm/index.js CHANGED
@@ -820,6 +820,7 @@ function DataGridTableInner(props) {
820
820
  interaction,
821
821
  pinning,
822
822
  handleResizeStart,
823
+ handleResizeDoubleClick,
823
824
  getColumnWidth,
824
825
  isReorderDragging,
825
826
  dropIndicatorX,
@@ -1010,7 +1011,7 @@ function DataGridTableInner(props) {
1010
1011
  className: "ogrid-mat-wrapper",
1011
1012
  sx: wrapperSx,
1012
1013
  children: [
1013
- /* @__PURE__ */ jsx(Box, { sx: WRAPPER_SCROLL_SX, children: /* @__PURE__ */ jsx("div", { style: { minWidth: allowOverflowX ? minTableWidth : void 0 }, children: /* @__PURE__ */ jsxs(Box, { ref: tableContainerRef, sx: isLoading && items.length > 0 ? TABLE_WRAPPER_LOADING_SX : TABLE_WRAPPER_SX, children: [
1014
+ /* @__PURE__ */ jsx(Box, { sx: WRAPPER_SCROLL_SX, children: /* @__PURE__ */ jsx("div", { style: { minWidth: allowOverflowX ? minTableWidth : void 0, overflowX: "clip" }, children: /* @__PURE__ */ jsxs(Box, { ref: tableContainerRef, sx: isLoading && items.length > 0 ? TABLE_WRAPPER_LOADING_SX : TABLE_WRAPPER_SX, children: [
1014
1015
  /* @__PURE__ */ jsxs(
1015
1016
  Table,
1016
1017
  {
@@ -1148,7 +1149,7 @@ function DataGridTableInner(props) {
1148
1149
  interaction.setSelectionRange(null);
1149
1150
  wrapperRef.current?.focus({ preventScroll: true });
1150
1151
  handleResizeStart(e, col);
1151
- }, sx: RESIZE_HANDLE_SX })
1152
+ }, onDoubleClick: (e) => handleResizeDoubleClick(e, col), sx: RESIZE_HANDLE_SX })
1152
1153
  ]
1153
1154
  },
1154
1155
  col.columnId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alaarab/ogrid-react-material",
3
- "version": "2.1.12",
3
+ "version": "2.1.14",
4
4
  "description": "OGrid React Material implementation – MUI Table–based data grid with sorting, filtering, pagination, column chooser, spreadsheet selection, and CSV export.",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -39,7 +39,7 @@
39
39
  "node": ">=18"
40
40
  },
41
41
  "dependencies": {
42
- "@alaarab/ogrid-react": "2.1.12"
42
+ "@alaarab/ogrid-react": "2.1.14"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.0.0",