gantri-components 3.0.0-beta.17 → 3.0.0-beta.19
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/components/table/components/custom-columns-wrapper/hooks/index.d.ts +1 -1
- package/dist/components/table/components/custom-columns-wrapper/hooks/use-detect-scroll/index.d.ts +1 -0
- package/dist/components/table/components/custom-columns-wrapper/hooks/use-detect-scroll/use-detect-scroll.d.ts +4 -0
- package/dist/components/table/components/custom-columns-wrapper/hooks/use-detect-scroll/use-detect-scroll.types.d.ts +9 -0
- package/dist/components/table/hooks/index.d.ts +1 -2
- package/dist/components/table/hooks/use-track-sticky-cells/helpers.d.ts +2 -0
- package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.types.d.ts +2 -1
- package/dist/components/table/table.types.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './use-detect-scroll';
|
package/dist/components/table/components/custom-columns-wrapper/hooks/use-detect-scroll/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-detect-scroll';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface UseDetectScrollProps {
|
|
2
|
+
/** Time after scrolling has stopped before acting on it. */
|
|
3
|
+
delay?: number;
|
|
4
|
+
direction: 'horizontal' | 'vertical';
|
|
5
|
+
element: HTMLElement | null;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
onEndScrolling?: () => void;
|
|
8
|
+
onStartScrolling?: () => void;
|
|
9
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './useTrackStickyCells';
|
|
1
|
+
export * from './use-track-sticky-cells';
|
package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.types.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export interface UseTrackStickyCellsProps<TData extends RowData> {
|
|
|
4
4
|
customColumns: CustomColumnsProps<TData> | undefined;
|
|
5
5
|
numRows: number;
|
|
6
6
|
/** The containing element that the child will intersect with. */
|
|
7
|
-
root:
|
|
7
|
+
root: HTMLElement | null;
|
|
8
8
|
stickyFirstColumn: boolean | undefined;
|
|
9
|
+
stickyFooter: boolean | undefined;
|
|
9
10
|
stickyLastColumn: boolean | undefined;
|
|
10
11
|
}
|
|
@@ -39,11 +39,11 @@ export interface TableProps<TData extends RowData> extends Partial<TableDefaultP
|
|
|
39
39
|
reordering?: ReorderingProps<TData>;
|
|
40
40
|
search?: SearchProps;
|
|
41
41
|
sorting?: SortProps;
|
|
42
|
-
stickyFooter?: boolean;
|
|
43
|
-
stickyLastColumn?: boolean;
|
|
44
42
|
}
|
|
45
43
|
export interface TableDefaultProps {
|
|
46
44
|
stickyFirstColumn: boolean;
|
|
45
|
+
stickyFooter: boolean;
|
|
46
|
+
stickyLastColumn: boolean;
|
|
47
47
|
}
|
|
48
48
|
export type GetHeaderCellProps<TData extends RowData, TValue = unknown> = (cell?: Header<TData, TValue>) => CustomCellProps;
|
|
49
49
|
/** Include `status` in the returned object to set the row status color. */
|