@moving-walls/design-system 1.0.23 → 1.0.24

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.
@@ -39,4 +39,6 @@ export interface AgGridTableProps<T = unknown> {
39
39
  cacheBlockSize?: number;
40
40
  footerData?: any[];
41
41
  pagination?: boolean;
42
+ /** Fired when the user scrolls to the bottom of the grid body. Useful for infinite scroll. */
43
+ onBodyScrollEnd?: () => void;
42
44
  }
package/dist/index.esm.js CHANGED
@@ -36362,9 +36362,10 @@ function CalendarMonth(_ref) {
36362
36362
  }
36363
36363
  // Next month's leading days
36364
36364
  var totalCells = Math.ceil(days.length / 7) * 7;
36365
- for (var _i = days.length; _i < totalCells; _i++) {
36366
- var _date2 = new Date(lastDayOfMonth);
36367
- _date2.setDate(_date2.getDate() + (_i - days.length + 1));
36365
+ var nextMonthStart = days.length;
36366
+ for (var _i = nextMonthStart; _i < totalCells; _i++) {
36367
+ var nextDay = _i - nextMonthStart + 1;
36368
+ var _date2 = new Date(currentMonth.getFullYear(), currentMonth.getMonth() + 1, nextDay);
36368
36369
  days.push({
36369
36370
  date: _date2,
36370
36371
  isCurrentMonth: false
@@ -49551,7 +49552,8 @@ function AgGridTableInner(props) {
49551
49552
  cacheBlockSize = props.cacheBlockSize,
49552
49553
  footerData = props.footerData,
49553
49554
  _props$pagination = props.pagination,
49554
- pagination = _props$pagination === void 0 ? true : _props$pagination;
49555
+ pagination = _props$pagination === void 0 ? true : _props$pagination,
49556
+ onBodyScrollEnd = props.onBodyScrollEnd;
49555
49557
  var gridRef = useRef(null);
49556
49558
  var apiRef = useRef(null);
49557
49559
  var isSortFromExternalRef = useRef(false);
@@ -49719,6 +49721,9 @@ function AgGridTableInner(props) {
49719
49721
  paginationPageSize: useGridPagination ? (_a = serverSideConfig === null || serverSideConfig === void 0 ? void 0 : serverSideConfig.pageSize) !== null && _a !== void 0 ? _a : 10 : undefined,
49720
49722
  paginationPageSizeSelector: useGridPagination ? (_b = serverSideConfig === null || serverSideConfig === void 0 ? void 0 : serverSideConfig.pageSizeSelector) !== null && _b !== void 0 ? _b : DEFAULT_PAGE_SIZE_SELECTOR : undefined,
49721
49723
  cacheBlockSize: cacheBlockSize,
49724
+ onBodyScrollEnd: onBodyScrollEnd ? function () {
49725
+ return onBodyScrollEnd();
49726
+ } : undefined,
49722
49727
  pinnedBottomRowData: footerData === null || footerData === void 0 ? void 0 : footerData.map(function (row, i) {
49723
49728
  return _typeof(row) === "object" && row !== null && !("id" in row) ? Object.assign(Object.assign({}, row), {
49724
49729
  id: "pinned-bottom-".concat(i)