@mcurros2/microm 1.1.9-0 → 1.1.10-0

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/index.js CHANGED
@@ -8279,9 +8279,11 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
8279
8279
  viewName
8280
8280
  ]);
8281
8281
  const [openColumnsConfigMenu, setOpenColumnsConfigMenu] = (0, $b4te3$react.useState)(false);
8282
+ const gridRef = (0, $b4te3$react.useRef)(null);
8282
8283
  const ConfigMenuDropDown = (0, $b4te3$react.useMemo)(()=>(0, $b4te3$reactjsxruntime.jsx)((0, $5Buf1.DataGridColumnsMenu), {
8283
8284
  setOpened: setOpenColumnsConfigMenu,
8284
- columns: columns
8285
+ columns: columns,
8286
+ grid: gridRef.current
8285
8287
  }), [
8286
8288
  columns
8287
8289
  ]);
@@ -8384,7 +8386,8 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
8384
8386
  autoSizeColumnsOnLoad: autoSizeColumnsOnLoad,
8385
8387
  rowBorders: rowBorders,
8386
8388
  withBorder: withBorder,
8387
- columnsOverrides: effectiveColumnOverrides
8389
+ columnsOverrides: effectiveColumnOverrides,
8390
+ ref: gridRef
8388
8391
  })
8389
8392
  ]
8390
8393
  }),
@@ -32804,7 +32807,7 @@ $parcel$export(module.exports, "DataGridColumnsMenu", function () { return $4147
32804
32807
 
32805
32808
 
32806
32809
  function $4147ddc1926c6c51$export$72c73377cef8aa5(props) {
32807
- const { columns: columns, setOpened: setOpened } = props;
32810
+ const { columns: columns, setOpened: setOpened, grid: grid } = props;
32808
32811
  return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Menu).Dropdown, {
32809
32812
  children: columns === null || columns === void 0 ? void 0 : columns.map((column, index)=>{
32810
32813
  return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Menu).Item, {
@@ -32813,6 +32816,7 @@ function $4147ddc1926c6c51$export$72c73377cef8aa5(props) {
32813
32816
  }),
32814
32817
  onClick: ()=>{
32815
32818
  column.hidden = !column.hidden;
32819
+ grid === null || grid === void 0 || grid.refresh();
32816
32820
  setOpened(false);
32817
32821
  },
32818
32822
  children: column.text