gantri-components 2.40.0-beta.8 → 2.40.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/components/table/components/table-row/hooks/use-drag-and-drop/use-drag-and-drop.types.d.ts +3 -0
- package/dist/components/table/components/table-row/table-row.types.d.ts +3 -0
- package/dist/components/table/hooks/use-move-row/use-move-row.d.ts +3 -0
- package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.d.ts +6 -1
- package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.types.d.ts +4 -3
- package/dist/components/table/table.types.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/styles/base.d.ts +5 -1
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/theme.d.ts +10 -5
- package/package.json +1 -1
- package/dist/components/icon/generated/ui-control/ExlamationCircleFilled.d.ts +0 -3
- package/dist/components/icon/generated/ui-control/ExlamationCircleFilled24.d.ts +0 -3
- package/dist/components/paging/__tests__/paging.test.d.ts +0 -1
- package/dist/components/paging/index.d.ts +0 -1
- package/dist/components/paging/paging.d.ts +0 -5
- package/dist/components/paging/paging.presets.d.ts +0 -2
- package/dist/components/paging/paging.styles.d.ts +0 -3
- package/dist/components/paging/paging.types.d.ts +0 -13
- package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/get-sort-mapping.d.ts +0 -3
- package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/get-sort-mapping.types.d.ts +0 -2
- package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/index.d.ts +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Row, RowData } from '@tanstack/react-table';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
3
|
export interface UseDragAndDropProps<TData extends RowData> {
|
|
4
|
+
didMove: boolean;
|
|
3
5
|
enableReordering: boolean;
|
|
4
6
|
handleOnReorder: () => Promise<void>;
|
|
5
7
|
index: number;
|
|
6
8
|
isSubRow: boolean;
|
|
7
9
|
moveRow: (startIndex: number, endIndex: number) => void;
|
|
8
10
|
row: Row<TData>;
|
|
11
|
+
setDidMove: Dispatch<SetStateAction<boolean>>;
|
|
9
12
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Row, RowData } from '@tanstack/react-table';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
3
|
import { CustomRowProps, GetCellProps, OnRowClick } from '../../table.types';
|
|
3
4
|
export interface TableRowProps<TData extends RowData> {
|
|
4
5
|
customRowProps: CustomRowProps;
|
|
6
|
+
didMove: boolean;
|
|
5
7
|
enableReordering: boolean;
|
|
6
8
|
getCellProps: GetCellProps<TData> | undefined;
|
|
7
9
|
handleOnReorder: () => Promise<void>;
|
|
@@ -9,4 +11,5 @@ export interface TableRowProps<TData extends RowData> {
|
|
|
9
11
|
moveRow: (startIndex: number, endIndex: number) => void;
|
|
10
12
|
onRowClick?: OnRowClick<TData>;
|
|
11
13
|
row: Row<TData>;
|
|
14
|
+
setDidMove: Dispatch<SetStateAction<boolean>>;
|
|
12
15
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { RowData } from '@tanstack/react-table';
|
|
2
3
|
import { UseMoveRowProps } from './use-move-row.types';
|
|
3
4
|
export declare const useMoveRow: <TData extends RowData<{
|
|
@@ -5,5 +6,7 @@ export declare const useMoveRow: <TData extends RowData<{
|
|
|
5
6
|
id?: string | number | undefined;
|
|
6
7
|
subRows?: any[] | undefined;
|
|
7
8
|
}>>(props: UseMoveRowProps<TData>) => {
|
|
9
|
+
didMove: boolean;
|
|
8
10
|
moveRow: (startIndex: number, endIndex: number) => void;
|
|
11
|
+
setDidMove: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
9
12
|
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { RowData } from '@tanstack/react-table';
|
|
1
2
|
import { UseTrackStickyCellsProps } from './use-track-sticky-cells.types';
|
|
2
3
|
/** Mark table if header and/or first column cells are sticky. */
|
|
3
|
-
export declare const useTrackStickyCells:
|
|
4
|
+
export declare const useTrackStickyCells: <TData extends RowData<{
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
id?: string | number | undefined;
|
|
7
|
+
subRows?: any[] | undefined;
|
|
8
|
+
}>>(props: UseTrackStickyCellsProps<TData>) => void;
|
package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { RowData } from '@tanstack/react-table';
|
|
2
|
+
import { CustomColumnsProps } from '../../components/custom-columns-wrapper/custom-columns-wrapper.types';
|
|
3
|
+
export interface UseTrackStickyCellsProps<TData extends RowData> {
|
|
4
|
+
customColumns: CustomColumnsProps<TData> | undefined;
|
|
4
5
|
/** The containing element that the child will intersect with. */
|
|
5
6
|
root: Element | null;
|
|
6
7
|
stickyFirstColumn: boolean | undefined;
|
|
@@ -26,6 +26,7 @@ export interface TableProps<TData extends RowData> extends Partial<TableDefaultP
|
|
|
26
26
|
paging?: PagingProps;
|
|
27
27
|
reordering?: {
|
|
28
28
|
enable: boolean;
|
|
29
|
+
/** Is fired when the dragged element is dropped. */
|
|
29
30
|
onReorder: (data: TData[]) => Promise<void>;
|
|
30
31
|
};
|
|
31
32
|
search?: SearchProps;
|