@mcurros2/microm 1.1.39-0 → 1.1.40-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.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36478,6 +36478,7 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
|
|
|
36478
36478
|
});
|
|
36479
36479
|
const { handleLoadMore: handleLoadMore } = dataViewAPI;
|
|
36480
36480
|
const limit_number = parseInt(limit || "0");
|
|
36481
|
+
const effectiveFormMode = formMode || (parentFormAPI === null || parentFormAPI === void 0 ? void 0 : parentFormAPI.formMode) || "view";
|
|
36481
36482
|
return (0, $b4te3$reactjsxruntime.jsx)("section", {
|
|
36482
36483
|
ref: ref,
|
|
36483
36484
|
children: (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Stack), {
|
|
@@ -36530,7 +36531,7 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
|
|
|
36530
36531
|
actionsButtonVariant: actionsButtonVariant,
|
|
36531
36532
|
clientActions: entity ? entity.def.clientActions : {},
|
|
36532
36533
|
handleExecuteAction: dataViewAPI.handleExecuteAction,
|
|
36533
|
-
parentFormMode:
|
|
36534
|
+
parentFormMode: effectiveFormMode
|
|
36534
36535
|
})),
|
|
36535
36536
|
dataViewAPI.isLoading && (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Group), {
|
|
36536
36537
|
children: [
|
|
@@ -36576,9 +36577,9 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
|
|
|
36576
36577
|
EntityCard: Card,
|
|
36577
36578
|
recordIndex: index,
|
|
36578
36579
|
entity: entity,
|
|
36579
|
-
enableDelete: enableDelete,
|
|
36580
|
-
enableEdit: enableEdit,
|
|
36581
|
-
enableView: enableView,
|
|
36580
|
+
enableDelete: effectiveFormMode !== "view" && enableDelete,
|
|
36581
|
+
enableEdit: effectiveFormMode !== "view" && enableEdit,
|
|
36582
|
+
enableView: enableView || effectiveFormMode === "view",
|
|
36582
36583
|
handleSelectRecord: dataViewAPI.handleSelectRecord,
|
|
36583
36584
|
handleDeselectRecord: dataViewAPI.handleDeselectRecord,
|
|
36584
36585
|
handleDeleteClick: dataViewAPI.handleDeleteRecord,
|