@mcurros2/microm 1.1.44-0 → 1.1.46-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
@@ -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,
@@ -36579,7 +36580,7 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
36579
36580
  entity: entity,
36580
36581
  enableDelete: effectiveFormMode !== "view" && enableDelete,
36581
36582
  enableEdit: effectiveFormMode !== "view" && enableEdit,
36582
- enableView: enableView || effectiveFormMode === "view",
36583
+ enableView: enableView !== undefined ? enableView : effectiveFormMode === "view",
36583
36584
  handleSelectRecord: dataViewAPI.handleSelectRecord,
36584
36585
  handleDeselectRecord: dataViewAPI.handleDeselectRecord,
36585
36586
  handleDeleteClick: dataViewAPI.handleDeleteRecord,