@mcurros2/microm 1.1.174-0 → 1.1.176-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
@@ -32737,7 +32737,7 @@ $parcel$export(module.exports, "useDataGrid", function () { return $8e67432a124f
32737
32737
  parcelRequire("7xGLy");
32738
32738
  var $1uAlg = parcelRequire("1uAlg");
32739
32739
  function $8e67432a124f4bfb$export$f77741f33c48605(props, stateProps) {
32740
- 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;
32740
+ 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, enableEdit: enableEdit, enableView: enableView } = props;
32741
32741
  const { setRefresh: setRefresh, setSearchText: setSearchText, executeViewState: executeViewState } = stateProps;
32742
32742
  const selection = (0, $b4te3$react.useRef)([]);
32743
32743
  const selectionKeys = (0, $b4te3$react.useRef)([]);
@@ -32853,12 +32853,25 @@ function $8e67432a124f4bfb$export$f77741f33c48605(props, stateProps) {
32853
32853
  return;
32854
32854
  }
32855
32855
  if (doubleClickAction === 'edit') {
32856
- if (form_mode === 'edit') await handleEditClick();
32857
- if (form_mode === 'view') await handleViewClick();
32856
+ if (form_mode === 'edit' && enableEdit) {
32857
+ await handleEditClick();
32858
+ return;
32859
+ }
32860
+ if (form_mode === 'view' && enableView) {
32861
+ await handleViewClick();
32862
+ return;
32863
+ }
32864
+ return;
32858
32865
  } else if (doubleClickAction === 'view') {
32859
- if (form_mode === 'view') await handleViewClick();
32860
- } else await doubleClickAction(record);
32861
- await handleEditClick();
32866
+ if (form_mode === 'view' && enableView) {
32867
+ await handleViewClick();
32868
+ return;
32869
+ }
32870
+ } else {
32871
+ await doubleClickAction(record);
32872
+ return;
32873
+ }
32874
+ //await handleEditClick();
32862
32875
  }, [
32863
32876
  doubleClickAction,
32864
32877
  formMode,