@trackunit/react-table 0.0.74-alpha-8c607117a7.0 → 0.0.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table",
3
- "version": "0.0.74-alpha-8c607117a7.0",
3
+ "version": "0.0.75",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,18 +8,18 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@tanstack/react-table": "8.9.3",
11
- "@tanstack/react-virtual": "3.0.0-alpha.0",
12
- "@trackunit/css-class-variance-utilities": "0.0.15-alpha-8c607117a7.0",
13
- "@trackunit/css-core": "0.0.100-alpha-8c607117a7.0",
14
- "@trackunit/i18n-library-translation": "0.0.88-alpha-8c607117a7.0",
15
- "@trackunit/iris-app-api": "0.0.126-alpha-8c607117a7.0",
16
- "@trackunit/react-components": "0.1.184-alpha-8c607117a7.0",
17
- "@trackunit/react-core-contexts-api": "0.2.65-alpha-8c607117a7.0",
18
- "@trackunit/react-core-contexts-test": "0.1.122-alpha-8c607117a7.0",
19
- "@trackunit/react-form-components": "0.0.183-alpha-8c607117a7.0",
20
- "@trackunit/react-table-base-components": "0.0.59-alpha-8c607117a7.0",
21
- "@trackunit/shared-utils": "0.0.13-alpha-8c607117a7.0",
22
- "@trackunit/ui-icons": "0.0.79-alpha-8c607117a7.0",
11
+ "@tanstack/react-virtual": "3.0.0-beta.66",
12
+ "@trackunit/css-class-variance-utilities": "0.0.15",
13
+ "@trackunit/css-core": "0.0.99",
14
+ "@trackunit/i18n-library-translation": "0.0.88",
15
+ "@trackunit/iris-app-api": "0.0.125",
16
+ "@trackunit/react-components": "0.1.185",
17
+ "@trackunit/react-core-contexts-api": "0.2.65",
18
+ "@trackunit/react-core-contexts-test": "0.1.122",
19
+ "@trackunit/react-form-components": "0.0.184",
20
+ "@trackunit/react-table-base-components": "0.0.60",
21
+ "@trackunit/shared-utils": "0.0.13",
22
+ "@trackunit/ui-icons": "0.0.78",
23
23
  "immutability-helper": "3.1.1",
24
24
  "react": "18.2.0",
25
25
  "react-dnd": "14.0.5",
package/src/Table.d.ts CHANGED
@@ -10,6 +10,7 @@ export interface TableProps<TData extends object> extends ReactTable<TData>, Com
10
10
  onRowClick?: (row: Row<TData>) => void;
11
11
  noDataMessage?: JSX.Element | string;
12
12
  loading?: boolean;
13
+ rowHeight?: number;
13
14
  }
14
15
  /**
15
16
  * Table component for displaying large sets of data in tables with infinite scroll, sorting, filtering and others.
@@ -17,4 +18,4 @@ export interface TableProps<TData extends object> extends ReactTable<TData>, Com
17
18
  * @param {ReactTable} props - The props for the Table component
18
19
  * @returns {JSX.Element} Table component
19
20
  */
20
- export declare const Table: <TData extends object>(props: TableProps<TData>) => JSX.Element;
21
+ export declare const Table: <TData extends object>({ rowHeight, ...props }: TableProps<TData>) => JSX.Element;
@@ -15,8 +15,8 @@ export declare const translations: TranslationResource<TranslationKeys>;
15
15
  /**
16
16
  * Local useTranslation for this specific library
17
17
  */
18
- export declare const useTranslation: () => [TransForLibs<"table.actionsheet.selected" | "layout.actions.reset" | "table.pagination.of" | "table.pagination.full" | "table.pagination.page" | "table.results.plural" | "table.sorting.toolip" | "table.columnFilters.columns" | "table.columnFilters.hiddenColumnCount" | "table.columnFilters.title" | "table.columnFilters.tooltip" | "table.exportFileName" | "table.format" | "table.results.plural.capped" | "table.noResults" | "table.error" | "table.result" | "table.rowDensity.compact" | "table.rowDensity.spacious" | "table.search.placeholder" | "table.searchPlaceholder" | "table.sorting.ascending" | "table.sorting.descending" | "table.sorting.label" | "table.sorting.order" | "table.spacing" | "table.spacing.toolip">, import("i18next").i18n, boolean] & {
19
- t: TransForLibs<"table.actionsheet.selected" | "layout.actions.reset" | "table.pagination.of" | "table.pagination.full" | "table.pagination.page" | "table.results.plural" | "table.sorting.toolip" | "table.columnFilters.columns" | "table.columnFilters.hiddenColumnCount" | "table.columnFilters.title" | "table.columnFilters.tooltip" | "table.exportFileName" | "table.format" | "table.results.plural.capped" | "table.noResults" | "table.error" | "table.result" | "table.rowDensity.compact" | "table.rowDensity.spacious" | "table.search.placeholder" | "table.searchPlaceholder" | "table.sorting.ascending" | "table.sorting.descending" | "table.sorting.label" | "table.sorting.order" | "table.spacing" | "table.spacing.toolip">;
18
+ export declare const useTranslation: () => [TransForLibs<"table.actionsheet.selected" | "layout.actions.reset" | "table.pagination.of" | "table.pagination.full" | "table.pagination.page" | "table.results.plural" | "table.sorting.toolip" | "table.columnFilters.columns" | "table.columnFilters.hiddenColumnCount" | "table.columnFilters.hiddenColumnsCount" | "table.columnFilters.title" | "table.columnFilters.tooltip" | "table.exportFileName" | "table.format" | "table.results.plural.capped" | "table.noResults" | "table.error" | "table.result" | "table.rowDensity.compact" | "table.rowDensity.spacious" | "table.search.placeholder" | "table.searchPlaceholder" | "table.sorting.ascending" | "table.sorting.descending" | "table.sorting.label" | "table.sorting.order" | "table.spacing" | "table.spacing.toolip">, import("i18next").i18n, boolean] & {
19
+ t: TransForLibs<"table.actionsheet.selected" | "layout.actions.reset" | "table.pagination.of" | "table.pagination.full" | "table.pagination.page" | "table.results.plural" | "table.sorting.toolip" | "table.columnFilters.columns" | "table.columnFilters.hiddenColumnCount" | "table.columnFilters.hiddenColumnsCount" | "table.columnFilters.title" | "table.columnFilters.tooltip" | "table.exportFileName" | "table.format" | "table.results.plural.capped" | "table.noResults" | "table.error" | "table.result" | "table.rowDensity.compact" | "table.rowDensity.spacious" | "table.search.placeholder" | "table.searchPlaceholder" | "table.sorting.ascending" | "table.sorting.descending" | "table.sorting.label" | "table.sorting.order" | "table.spacing" | "table.spacing.toolip">;
20
20
  i18n: import("i18next").i18n;
21
21
  ready: boolean;
22
22
  };
@@ -5,13 +5,12 @@ interface InfiniteScrollProps {
5
5
  pagination: RelayPagination;
6
6
  containerRef: RefObject<HTMLDivElement>;
7
7
  rowSize: number;
8
+ rowHeight: number;
8
9
  }
9
10
  interface InfiniteScroll {
10
- paddingTop: number;
11
- paddingBottom: number;
12
11
  fetchMoreOnBottomReached: (containerRefElement?: HTMLDivElement | null) => void;
13
- rowVirtualizer: unknown;
14
- virtualRows: VirtualItem[];
12
+ getTotalSize: () => number;
13
+ getVirtualItems: () => VirtualItem[];
15
14
  }
16
15
  /**
17
16
  * Custom hook for implementing infinite scrolling in a table.