@bluemarble/bm-components 0.0.88 → 0.0.90

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/esm/index.js CHANGED
@@ -14820,10 +14820,8 @@ const BaseInputMask = (_a) => {
14820
14820
  var { mask, defaultValue, onChangeValue, value: controlledValue } = _a, rest = __rest(_a, ["mask", "defaultValue", "onChangeValue", "value"]);
14821
14821
  const { ref, value, setValue, maskRef, unmaskedValue } = useIMask(mask, {
14822
14822
  onComplete: (...params) => {
14823
- // console.log( )
14824
14823
  if (onChangeValue)
14825
14824
  onChangeValue(params[0], unmaskedValue);
14826
- // params[1].updateValue()
14827
14825
  }
14828
14826
  });
14829
14827
  useEffect(() => {
@@ -15079,11 +15077,14 @@ const styles = {
15079
15077
  }
15080
15078
  };
15081
15079
 
15082
- function BaseGrid({ columns, children, fixedColumns, paperProps, tableBodyProps, tableHeadProps, tableProps, sortedDirection, sortedBy, onSortBy, dense = true, striped, bordered, currentPage, totalNumberOfPages, onPageChange, rowsPerPage, setRowsPerPage, rowsPerPageOptions, hideFooter, isLoading }) {
15080
+ function BaseGrid({ columns, children, paperProps, tableBodyProps, tableHeadProps, tableProps, sortedDirection, sortedBy, onSortBy, dense = true, striped, bordered, currentPage, totalNumberOfPages, onPageChange, rowsPerPage, setRowsPerPage, rowsPerPageOptions, hideFooter, prependColumn, appendColumn, isLoading }) {
15083
15081
  return (React__default.createElement(Paper, Object.assign({}, paperProps, { sx: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, styles.rowGap(dense)), styles.bordered(bordered)), styles.striped(striped)), styles.lastRowBorder(hideFooter)), paperProps === null || paperProps === void 0 ? void 0 : paperProps.sx) }),
15084
15082
  React__default.createElement(Table, Object.assign({ size: "small", stickyHeader: true }, tableProps, { sx: Object.assign({}, tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx) }),
15085
15083
  React__default.createElement(TableHead, Object.assign({}, tableHeadProps),
15086
- React__default.createElement(TableRow, null, columns.map((column) => (React__default.createElement(TableCell, { key: column.name, padding: dense ? 'none' : 'normal', sx: Object.assign({ pl: 2 }, column === null || column === void 0 ? void 0 : column.sx) }, column.children ? (column.children) : (React__default.createElement(TableSortLabel, { active: sortedBy === column.name, direction: sortedDirection, onClick: () => onSortBy(column.name), disabled: column.canSort === false }, column.label)))))),
15084
+ React__default.createElement(TableRow, null,
15085
+ prependColumn,
15086
+ columns.map((column) => (React__default.createElement(TableCell, { key: column.name, padding: dense ? 'none' : 'normal', sx: Object.assign({ pl: 2 }, column === null || column === void 0 ? void 0 : column.sx) }, column.children ? (column.children) : (React__default.createElement(TableSortLabel, { active: sortedBy === column.name, direction: sortedDirection, onClick: () => onSortBy(column.name), disabled: column.canSort === false }, column.label))))),
15087
+ appendColumn),
15087
15088
  isLoading && (React__default.createElement(TableRow, null,
15088
15089
  React__default.createElement(TableCell, { colSpan: columns.length, sx: { p: 0, border: 'none' } },
15089
15090
  React__default.createElement(LinearProgress, null))))),