@mcurros2/microm 1.1.118-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
@@ -5749,6 +5749,8 @@ const $4ac0cccb4149213a$export$63c5fa0b2fdccd2e = /*#__PURE__*/ (0, $b4te3$react
5749
5749
  "data-autofocus": autoFocus,
5750
5750
  precision: column.scale
5751
5751
  }, entityForm.form.getInputProps(column.name), {
5752
+ // FIX for maintine NumberInput not supporting null
5753
+ value: entityForm.form.values[column.name] === null ? "" : entityForm.form.values[column.name],
5752
5754
  ref: ref
5753
5755
  }));
5754
5756
  });
@@ -36552,12 +36554,13 @@ const $55dd21617ac1c7dc$export$8d0177ff9f5686ad = {
36552
36554
  showToolbar: true,
36553
36555
  showDeleteOnlyWhenMultiselect: true,
36554
36556
  withModalFullscreenButton: true,
36555
- CardRowAlign: "flex-start"
36557
+ CardRowAlign: "flex-start",
36558
+ RowsContainer: (0, $b4te3$mantinecore.Group)
36556
36559
  };
36557
36560
  const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function DataView(props, ref) {
36558
36561
  var _a;
36559
36562
  props = (0, $b4te3$mantinecore.useComponentDefaultProps)("DataView", $55dd21617ac1c7dc$export$8d0177ff9f5686ad, props);
36560
- 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;
36561
36564
  const [searchData, setSearchData] = (0, $b4te3$react.useState)(search === null || search === void 0 ? void 0 : search.map((s)=>{
36562
36565
  return {
36563
36566
  value: s,
@@ -36664,8 +36667,9 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
36664
36667
  c: "dimmed",
36665
36668
  children: labels === null || labels === void 0 ? void 0 : labels.noRecordsFoundLabel
36666
36669
  }),
36667
- dataViewAPI.data.length > 0 && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Group), {
36668
- align: CardRowAlign,
36670
+ dataViewAPI.data.length > 0 && RowsContainer && (0, $b4te3$reactjsxruntime.jsx)(RowsContainer, Object.assign({}, CardRowAlign ? {
36671
+ align: CardRowAlign
36672
+ } : null, {
36669
36673
  children: CardContainer && entity && dataViewAPI.data.map((record, index)=>{
36670
36674
  return (0, $b4te3$reactjsxruntime.jsx)(CardContainer, {
36671
36675
  record: record,
@@ -36688,7 +36692,7 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
36688
36692
  cardHrefTarget: cardHrefTarget
36689
36693
  }, `CC_${entity.def.name}-${index}`);
36690
36694
  })
36691
- }),
36695
+ })),
36692
36696
  !dataViewAPI.isLoading && !dataViewAPI.executeViewState.error && dataViewAPI.data.length > 0 && (dataViewAPI.recordsCount || 0) > dataViewAPI.displayedItemsCount && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Button), {
36693
36697
  size: "xs",
36694
36698
  variant: "light",