@mcurros2/microm 1.1.26-0 → 1.1.27-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
@@ -8349,7 +8349,6 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
8349
8349
  viewName
8350
8350
  ]);
8351
8351
  const [openColumnsConfigMenu, setOpenColumnsConfigMenu] = (0, $b4te3$react.useState)(false);
8352
- const gridRef = (0, $b4te3$react.useRef)(null);
8353
8352
  const ConfigMenuDropDown = (0, $b4te3$react.useMemo)(()=>(0, $b4te3$reactjsxruntime.jsx)((0, $5Buf1.DataGridColumnsMenu), {
8354
8353
  setOpened: setOpenColumnsConfigMenu,
8355
8354
  columns: columns,
@@ -8457,8 +8456,7 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
8457
8456
  autoSizeColumnsOnLoad: autoSizeColumnsOnLoad,
8458
8457
  rowBorders: rowBorders,
8459
8458
  withBorder: withBorder,
8460
- columnsOverrides: effectiveColumnOverrides,
8461
- ref: gridRef
8459
+ columnsOverrides: effectiveColumnOverrides
8462
8460
  })
8463
8461
  ]
8464
8462
  }),
@@ -33441,7 +33439,7 @@ var $42d3a2ac8447d6e0$var$__awaiter = undefined && undefined.__awaiter || functi
33441
33439
  });
33442
33440
  };
33443
33441
  function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
33444
- const { entity: entity, parentKeys: parentKeys, viewName: viewName, onSelectionChanged: onSelectionChanged, modalFormSize: modalFormSize, labels: labels, saveFormBeforeAdd: saveFormBeforeAdd, parentFormAPI: parentFormAPI, allwaysRefreshOnEntityClose: allwaysRefreshOnEntityClose, onAddClick: onAddClick, onModalSaved: onModalSaved, onDataRefresh: onDataRefresh, onActionExecuted: onActionExecuted, formMode: formMode, doubleClickAction: doubleClickAction, notExportableColumns: notExportableColumns, withModalFullscreenButton: withModalFullscreenButton } = props;
33442
+ const { entity: entity, parentKeys: parentKeys, viewName: viewName, onSelectionChanged: onSelectionChanged, modalFormSize: modalFormSize, labels: labels, saveFormBeforeAdd: saveFormBeforeAdd, parentFormAPI: parentFormAPI, allwaysRefreshOnEntityClose: allwaysRefreshOnEntityClose, onAddClick: onAddClick, onModalSaved: onModalSaved, onDataRefresh: onDataRefresh, onActionExecuted: onActionExecuted, formMode: formMode, doubleClickAction: doubleClickAction, notExportableColumns: notExportableColumns, withModalFullscreenButton: withModalFullscreenButton, initialHiddenColumns: initialHiddenColumns } = props;
33445
33443
  const { setRefresh: setRefresh, setSearchText: setSearchText, executeViewState: executeViewState } = stateProps;
33446
33444
  const selection = (0, $b4te3$react.useRef)([]);
33447
33445
  const selectionKeys = (0, $b4te3$react.useRef)([]);
@@ -33627,7 +33625,8 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
33627
33625
  setColumns(executeViewState.data[0].Header.map((columnText, index)=>({
33628
33626
  field: index.toString(),
33629
33627
  text: columnText,
33630
- sqlType: executeViewState.data[0].typeInfo[index]
33628
+ sqlType: executeViewState.data[0].typeInfo[index],
33629
+ hidden: initialHiddenColumns ? initialHiddenColumns.includes(index) : false
33631
33630
  })));
33632
33631
  setRows(executeViewState.data[0].records);
33633
33632
  setIsLoading(false);
@@ -33637,7 +33636,8 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
33637
33636
  executeViewState.data,
33638
33637
  executeViewState.error,
33639
33638
  executeViewState.loading,
33640
- onDataRefresh
33639
+ onDataRefresh,
33640
+ initialHiddenColumns
33641
33641
  ]);
33642
33642
  return {
33643
33643
  handleSelectionChanged: handleSelectionChanged,