@mcurros2/microm 1.1.43-0 → 1.1.45-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 +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36479,6 +36479,7 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
|
|
|
36479
36479
|
const { handleLoadMore: handleLoadMore } = dataViewAPI;
|
|
36480
36480
|
const limit_number = parseInt(limit || "0");
|
|
36481
36481
|
const effectiveFormMode = formMode || (parentFormAPI === null || parentFormAPI === void 0 ? void 0 : parentFormAPI.formMode) || "view";
|
|
36482
|
+
if ((entity === null || entity === void 0 ? void 0 : entity.def.views[viewName]) === undefined) console.warn(`DataView: View ${viewName} not found in entity ${entity === null || entity === void 0 ? void 0 : entity.def.name}`);
|
|
36482
36483
|
return (0, $b4te3$reactjsxruntime.jsx)("section", {
|
|
36483
36484
|
ref: ref,
|
|
36484
36485
|
children: (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Stack), {
|
|
@@ -36498,7 +36499,7 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
|
|
|
36498
36499
|
searchData: searchData,
|
|
36499
36500
|
setSearchData: setSearchData,
|
|
36500
36501
|
client: entity === null || entity === void 0 ? void 0 : entity.API.client,
|
|
36501
|
-
FiltersEntity: entity && viewName ? entity === null || entity === void 0 ? void 0 : entity.def.views[viewName].FiltersEntity : undefined,
|
|
36502
|
+
FiltersEntity: entity && viewName && (entity === null || entity === void 0 ? void 0 : entity.def.views[viewName]) ? entity === null || entity === void 0 ? void 0 : entity.def.views[viewName].FiltersEntity : undefined,
|
|
36502
36503
|
filterValues: viewState.filterValues,
|
|
36503
36504
|
setFilterValues: viewState.setFilterValues,
|
|
36504
36505
|
filtersDescription: viewState.filtersDescription,
|
|
@@ -45882,7 +45883,7 @@ var $d79003fd5611c3b6$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
45882
45883
|
};
|
|
45883
45884
|
function $d79003fd5611c3b6$export$66b3c1a9709bd8fc(_a) {
|
|
45884
45885
|
return $d79003fd5611c3b6$var$__awaiter(this, arguments, void 0, function*({ modals: modals, title: title, element: element, handleModalCancel: handleModalCancel, handleModalSaved: handleModalSaved, modalFormSize: modalFormSize, formProps: formProps, handleModalClosed: handleModalClosed, withModalFullscreenButton: withModalFullscreenButton }) {
|
|
45885
|
-
withModalFullscreenButton = withModalFullscreenButton === undefined ?
|
|
45886
|
+
withModalFullscreenButton = withModalFullscreenButton === undefined ? true : withModalFullscreenButton;
|
|
45886
45887
|
const showOK = formProps.initialFormMode !== "view";
|
|
45887
45888
|
const onSaved = formProps.initialFormMode !== "view" ? (new_status)=>handleModalSaved(new_status) : ()=>Promise.resolve();
|
|
45888
45889
|
const onCancel = ()=>handleModalCancel();
|