@mcurros2/microm 1.1.119-0 → 1.1.120-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
@@ -36554,12 +36554,13 @@ const $55dd21617ac1c7dc$export$8d0177ff9f5686ad = {
36554
36554
  showToolbar: true,
36555
36555
  showDeleteOnlyWhenMultiselect: true,
36556
36556
  withModalFullscreenButton: true,
36557
- CardRowAlign: "flex-start"
36557
+ CardRowAlign: "flex-start",
36558
+ RowsContainer: (0, $b4te3$mantinecore.Group)
36558
36559
  };
36559
36560
  const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function DataView(props, ref) {
36560
36561
  var _a;
36561
36562
  props = (0, $b4te3$mantinecore.useComponentDefaultProps)("DataView", $55dd21617ac1c7dc$export$8d0177ff9f5686ad, props);
36562
- const { entity: entity, autoFocus: autoFocus, toolbarIconVariant: toolbarIconVariant, actionsButtonVariant: actionsButtonVariant, enableAdd: enableAdd, enableEdit: enableEdit, enableDelete: enableDelete, enableView: enableView, enableExport: enableExport, labels: labels, Card: Card, CardContainer: CardContainer, limit: limit, search: search, viewName: viewName, filtersFormSize: filtersFormSize, toolbarSize: toolbarSize, showAppliedFilters: showAppliedFilters, showRefreshButton: showRefreshButton, hideCheckboxToggle: hideCheckboxToggle, showFiltersButton: showFiltersButton, searchPlaceholder: searchPlaceholder, showActions: showActions, parentKeys: parentKeys, visibleFilters: visibleFilters, setInitialFiltersFromColumns: setInitialFiltersFromColumns, cardHrefRootURL: cardHrefRootURL, cardHrefTarget: cardHrefTarget, showSearchInput: showSearchInput, showSelectRowsButton: showSelectRowsButton, showToolbar: showToolbar, showDeleteOnlyWhenMultiselect: showDeleteOnlyWhenMultiselect, parentFormAPI: parentFormAPI, formMode: formMode, CardRowAlign: CardRowAlign } = props;
36563
+ const { entity: entity, autoFocus: autoFocus, toolbarIconVariant: toolbarIconVariant, actionsButtonVariant: actionsButtonVariant, enableAdd: enableAdd, enableEdit: enableEdit, enableDelete: enableDelete, enableView: enableView, enableExport: enableExport, labels: labels, Card: Card, CardContainer: CardContainer, limit: limit, search: search, viewName: viewName, filtersFormSize: filtersFormSize, toolbarSize: toolbarSize, showAppliedFilters: showAppliedFilters, showRefreshButton: showRefreshButton, hideCheckboxToggle: hideCheckboxToggle, showFiltersButton: showFiltersButton, searchPlaceholder: searchPlaceholder, showActions: showActions, parentKeys: parentKeys, visibleFilters: visibleFilters, setInitialFiltersFromColumns: setInitialFiltersFromColumns, cardHrefRootURL: cardHrefRootURL, cardHrefTarget: cardHrefTarget, showSearchInput: showSearchInput, showSelectRowsButton: showSelectRowsButton, showToolbar: showToolbar, showDeleteOnlyWhenMultiselect: showDeleteOnlyWhenMultiselect, parentFormAPI: parentFormAPI, formMode: formMode, CardRowAlign: CardRowAlign, RowsContainer: RowsContainer } = props;
36563
36564
  const [searchData, setSearchData] = (0, $b4te3$react.useState)(search === null || search === void 0 ? void 0 : search.map((s)=>{
36564
36565
  return {
36565
36566
  value: s,
@@ -36666,8 +36667,9 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
36666
36667
  c: "dimmed",
36667
36668
  children: labels === null || labels === void 0 ? void 0 : labels.noRecordsFoundLabel
36668
36669
  }),
36669
- dataViewAPI.data.length > 0 && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Group), {
36670
- align: CardRowAlign,
36670
+ dataViewAPI.data.length > 0 && RowsContainer && (0, $b4te3$reactjsxruntime.jsx)(RowsContainer, Object.assign({}, CardRowAlign ? {
36671
+ align: CardRowAlign
36672
+ } : null, {
36671
36673
  children: CardContainer && entity && dataViewAPI.data.map((record, index)=>{
36672
36674
  return (0, $b4te3$reactjsxruntime.jsx)(CardContainer, {
36673
36675
  record: record,
@@ -36690,7 +36692,7 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
36690
36692
  cardHrefTarget: cardHrefTarget
36691
36693
  }, `CC_${entity.def.name}-${index}`);
36692
36694
  })
36693
- }),
36695
+ })),
36694
36696
  !dataViewAPI.isLoading && !dataViewAPI.executeViewState.error && dataViewAPI.data.length > 0 && (dataViewAPI.recordsCount || 0) > dataViewAPI.displayedItemsCount && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Button), {
36695
36697
  size: "xs",
36696
36698
  variant: "light",