@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.
- package/dist/avocado-not-front/src/components/table/Table.d.ts +1 -1
- package/dist/avocado-not-front/src/components/table/tableScroll.util.d.ts +5 -8
- package/dist/avocado-not-front/src/components/tabs/Tabs.d.ts +1 -1
- package/dist/avocado-not-front/src/components/tabs/Tabs.test.d.ts +1 -0
- package/dist/avocado-not-front/src/types/components.type.d.ts +4 -5
- package/dist/avocado-not-front.es.js +395 -396
- package/dist/avocado-not-front.umd.js +3 -3
- package/package.json +3 -3
|
@@ -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,
|
|
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
|
-
|
|
8
|
+
shouldFitToViewport: boolean;
|
|
9
9
|
availableHeight?: number;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
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,
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -614,12 +614,11 @@ export interface TableNotFrontProps extends NotFrontBaseProps, Omit<TableProps,
|
|
|
614
614
|
*/
|
|
615
615
|
showRowsPerPage?: boolean;
|
|
616
616
|
/**
|
|
617
|
-
* Caps the table
|
|
618
|
-
*
|
|
619
|
-
*
|
|
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
|
-
|
|
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]`.
|