@mcurros2/microm 1.1.25-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
@@ -4044,6 +4044,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
4044
4044
  const modal_id = (0, $b4te3$mantinehooks.randomId)(); // Generate ID upfront
4045
4045
  // try to get the last focused event if none specified
4046
4046
  if (!focusOnClosed) focusOnClosed = document.activeElement;
4047
+ // Default for closeButton
4048
+ if (modalProps.withCloseButton === undefined) modalProps.withCloseButton = $ea58ddf30d0b80dd$export$6ccb6e1de3749d56.withCloseButton;
4047
4049
  // If content is a Promise
4048
4050
  if ((0, $lTNXP.isPromise)(content)) {
4049
4051
  content.then((resolvedContent)=>{
@@ -8347,7 +8349,6 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
8347
8349
  viewName
8348
8350
  ]);
8349
8351
  const [openColumnsConfigMenu, setOpenColumnsConfigMenu] = (0, $b4te3$react.useState)(false);
8350
- const gridRef = (0, $b4te3$react.useRef)(null);
8351
8352
  const ConfigMenuDropDown = (0, $b4te3$react.useMemo)(()=>(0, $b4te3$reactjsxruntime.jsx)((0, $5Buf1.DataGridColumnsMenu), {
8352
8353
  setOpened: setOpenColumnsConfigMenu,
8353
8354
  columns: columns,
@@ -8455,8 +8456,7 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
8455
8456
  autoSizeColumnsOnLoad: autoSizeColumnsOnLoad,
8456
8457
  rowBorders: rowBorders,
8457
8458
  withBorder: withBorder,
8458
- columnsOverrides: effectiveColumnOverrides,
8459
- ref: gridRef
8459
+ columnsOverrides: effectiveColumnOverrides
8460
8460
  })
8461
8461
  ]
8462
8462
  }),
@@ -33439,7 +33439,7 @@ var $42d3a2ac8447d6e0$var$__awaiter = undefined && undefined.__awaiter || functi
33439
33439
  });
33440
33440
  };
33441
33441
  function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
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 } = 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;
33443
33443
  const { setRefresh: setRefresh, setSearchText: setSearchText, executeViewState: executeViewState } = stateProps;
33444
33444
  const selection = (0, $b4te3$react.useRef)([]);
33445
33445
  const selectionKeys = (0, $b4te3$react.useRef)([]);
@@ -33625,7 +33625,8 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
33625
33625
  setColumns(executeViewState.data[0].Header.map((columnText, index)=>({
33626
33626
  field: index.toString(),
33627
33627
  text: columnText,
33628
- sqlType: executeViewState.data[0].typeInfo[index]
33628
+ sqlType: executeViewState.data[0].typeInfo[index],
33629
+ hidden: initialHiddenColumns ? initialHiddenColumns.includes(index) : false
33629
33630
  })));
33630
33631
  setRows(executeViewState.data[0].records);
33631
33632
  setIsLoading(false);
@@ -33635,7 +33636,8 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
33635
33636
  executeViewState.data,
33636
33637
  executeViewState.error,
33637
33638
  executeViewState.loading,
33638
- onDataRefresh
33639
+ onDataRefresh,
33640
+ initialHiddenColumns
33639
33641
  ]);
33640
33642
  return {
33641
33643
  handleSelectionChanged: handleSelectionChanged,