@foris/avocado-not-front 8.2.0 → 8.4.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.
@@ -7,5 +7,5 @@ interface TableNotFrontExtendedProps extends TableNotFrontProps {
7
7
  userFlow: string;
8
8
  pageId: string;
9
9
  }
10
- declare const TableNotFront: ({ userFlow, pageId, responseKey, component, dataSource, rightActions, data: inlineData, pageSize, showRowsPerPage, pageSizeOptions, labelRowsPerPage, autoHeight, ...tableProps }: TableNotFrontExtendedProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const TableNotFront: ({ userFlow, pageId, responseKey, component, dataSource, rightActions, data: inlineData, pageSize, showRowsPerPage, pageSizeOptions, labelRowsPerPage, fitToViewport, ...tableProps }: TableNotFrontExtendedProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export default TableNotFront;
@@ -5,16 +5,13 @@ export type TableScrollLayout = {
5
5
  type ResolveTableScrollLayoutArgs = {
6
6
  maxHeight?: string | number;
7
7
  stickyHeader?: boolean;
8
- autoFitToViewport: boolean;
8
+ shouldFitToViewport: boolean;
9
9
  availableHeight?: number;
10
10
  };
11
11
  /**
12
- * Resolves table scroll layout for EntityHub-style tables.
13
- *
14
- * David T.'s criterion: cap the table at the viewport space below it so the
15
- * pager stays on screen. The suite scroll container grows with content up to
16
- * that cap; overflow triggers internal scroll and the sticky header keeps
17
- * column labels visible. Independent of rows-per-page (`autoFitToViewport`).
12
+ * An explicit `maxHeight` wins; otherwise, when fitting to the viewport, the
13
+ * table is capped at the space below it so the pager stays on screen.
14
+ * Any capped table gets a sticky header unless `stickyHeader: false`.
18
15
  */
19
- export declare const resolveTableScrollLayout: ({ maxHeight, stickyHeader, autoFitToViewport, availableHeight, }: ResolveTableScrollLayoutArgs) => TableScrollLayout;
16
+ export declare const resolveTableScrollLayout: ({ maxHeight, stickyHeader, shouldFitToViewport, availableHeight, }: ResolveTableScrollLayoutArgs) => TableScrollLayout;
20
17
  export {};
@@ -3,5 +3,5 @@ interface TabsNotFrontExtendedProps extends TabsNotFrontProps {
3
3
  userFlow: string;
4
4
  pageId: string;
5
5
  }
6
- declare const TabsNotFront: ({ userFlow, pageId, hash, items, activeIndex, className, responseKey, }: TabsNotFrontExtendedProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const TabsNotFront: ({ userFlow, pageId, hash, items, activeIndex, className, responseKey, preserveHeight, }: TabsNotFrontExtendedProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export default TabsNotFront;
@@ -614,12 +614,11 @@ export interface TableNotFrontProps extends NotFrontBaseProps, Omit<TableProps,
614
614
  */
615
615
  showRowsPerPage?: boolean;
616
616
  /**
617
- * Caps the table scroll area to the viewport space below it so the pager
618
- * stays on screen. Overflow uses internal scroll with a sticky header.
619
- * Default: true (disabled for cursor pagination). Override with explicit
620
- * `maxHeight` / `stickyHeader`.
617
+ * Caps the table to the viewport space below it so the pager stays on
618
+ * screen; overflow scrolls internally with a sticky header. Default: false.
619
+ * An explicit `maxHeight` wins. Never applies with cursor pagination.
621
620
  */
622
- autoHeight?: boolean;
621
+ fitToViewport?: boolean;
623
622
  /**
624
623
  * Options for the rows-per-page selector. The backend may override the
625
624
  * default list. Default when omitted: `[10, 20, 50, 100]`.