mantine-datatable 1.7.12 → 1.7.14

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.
Files changed (67) hide show
  1. package/dist/DataTable.d.ts +2 -2
  2. package/dist/DataTable.d.ts.map +1 -1
  3. package/dist/DataTableFooter.d.ts +3 -3
  4. package/dist/DataTableFooter.d.ts.map +1 -1
  5. package/dist/DataTableHeader.d.ts +1 -1
  6. package/dist/DataTableHeader.d.ts.map +1 -1
  7. package/dist/DataTableHeaderCell.d.ts +1 -1
  8. package/dist/DataTableHeaderCell.d.ts.map +1 -1
  9. package/dist/DataTableLoader.d.ts +8 -5
  10. package/dist/DataTableLoader.d.ts.map +1 -1
  11. package/dist/DataTablePageSizeSelector.d.ts +12 -0
  12. package/dist/DataTablePageSizeSelector.d.ts.map +1 -0
  13. package/dist/DataTableRow.d.ts +1 -1
  14. package/dist/DataTableRow.d.ts.map +1 -1
  15. package/dist/DataTableRowCell.d.ts +1 -1
  16. package/dist/DataTableRowCell.d.ts.map +1 -1
  17. package/dist/DataTableRowExpansion.d.ts +1 -1
  18. package/dist/DataTableRowExpansion.d.ts.map +1 -1
  19. package/dist/hooks.d.ts +2 -2
  20. package/dist/hooks.d.ts.map +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.cjs.map +4 -4
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.mjs +1 -1
  26. package/dist/index.mjs.map +4 -4
  27. package/dist/types/DataTableCellClickHandler.d.ts +20 -0
  28. package/dist/types/DataTableCellClickHandler.d.ts.map +1 -0
  29. package/dist/types/DataTableColumn.d.ts +71 -0
  30. package/dist/types/DataTableColumn.d.ts.map +1 -0
  31. package/dist/types/DataTableColumnTextAlignment.d.ts +2 -0
  32. package/dist/types/DataTableColumnTextAlignment.d.ts.map +1 -0
  33. package/dist/types/DataTableContextMenuItemProps.d.ts +48 -0
  34. package/dist/types/DataTableContextMenuItemProps.d.ts.map +1 -0
  35. package/dist/types/DataTableContextMenuProps.d.ts +30 -0
  36. package/dist/types/DataTableContextMenuProps.d.ts.map +1 -0
  37. package/dist/types/DataTableEmptyStateProps.d.ts +16 -0
  38. package/dist/types/DataTableEmptyStateProps.d.ts.map +1 -0
  39. package/dist/types/DataTableLoaderProps.d.ts +31 -0
  40. package/dist/types/DataTableLoaderProps.d.ts.map +1 -0
  41. package/dist/types/DataTableOuterBorderProps.d.ts +15 -0
  42. package/dist/types/DataTableOuterBorderProps.d.ts.map +1 -0
  43. package/dist/types/DataTablePageSizeSelectorProps.d.ts +19 -0
  44. package/dist/types/DataTablePageSizeSelectorProps.d.ts.map +1 -0
  45. package/dist/types/DataTablePaginationProps.d.ts +59 -0
  46. package/dist/types/DataTablePaginationProps.d.ts.map +1 -0
  47. package/dist/types/DataTableProps.d.ts +86 -0
  48. package/dist/types/DataTableProps.d.ts.map +1 -0
  49. package/dist/types/DataTableRowExpansionCollapseProps.d.ts +3 -0
  50. package/dist/types/DataTableRowExpansionCollapseProps.d.ts.map +1 -0
  51. package/dist/types/DataTableRowExpansionProps.d.ts +45 -0
  52. package/dist/types/DataTableRowExpansionProps.d.ts.map +1 -0
  53. package/dist/types/DataTableSelectionProps.d.ts +20 -0
  54. package/dist/types/DataTableSelectionProps.d.ts.map +1 -0
  55. package/dist/types/DataTableSortProps.d.ts +15 -0
  56. package/dist/types/DataTableSortProps.d.ts.map +1 -0
  57. package/dist/types/DataTableSortStatus.d.ts +12 -0
  58. package/dist/types/DataTableSortStatus.d.ts.map +1 -0
  59. package/dist/types/DataTableVerticalAlignment.d.ts +2 -0
  60. package/dist/types/DataTableVerticalAlignment.d.ts.map +1 -0
  61. package/dist/types/index.d.ts +16 -0
  62. package/dist/types/index.d.ts.map +1 -0
  63. package/dist/types/utils.d.ts +5 -0
  64. package/dist/types/utils.d.ts.map +1 -0
  65. package/package.json +5 -5
  66. package/dist/DataTable.props.d.ts +0 -407
  67. package/dist/DataTable.props.d.ts.map +0 -1
@@ -0,0 +1,71 @@
1
+ import type { MantineTheme, Sx } from '@mantine/core';
2
+ import type { CSSProperties, ReactNode } from 'react';
3
+ import type { DataTableColumnTextAlignment } from './DataTableColumnTextAlignment';
4
+ export declare type DataTableColumn<T> = {
5
+ /**
6
+ * Column accessor; you can use dot-notation for nested objects property drilling
7
+ * (i.e. `department.name` or `department.company.name`)
8
+ */
9
+ accessor: string;
10
+ /**
11
+ * Optional column header title; if not present, one will be generated by "humanizing"
12
+ * the provided column accessor
13
+ * (i.e. `firstName` -> `First name`; `user.firstName` -> `User first name`)
14
+ */
15
+ title?: ReactNode;
16
+ /**
17
+ * Custom cell data render function accepting the current record and its index in `records`
18
+ */
19
+ render?: (record: T, index: number) => ReactNode;
20
+ /**
21
+ * Column text alignment; defaults to `left`
22
+ */
23
+ textAlignment?: DataTableColumnTextAlignment;
24
+ /**
25
+ * If true, column will be sortable
26
+ */
27
+ sortable?: boolean;
28
+ /**
29
+ * Desired column width
30
+ */
31
+ width?: string | number;
32
+ /**
33
+ * If true, cell content in this column will be truncated with ellipsis as needed
34
+ */
35
+ ellipsis?: boolean;
36
+ /**
37
+ * If true, column will not be visible
38
+ */
39
+ hidden?: boolean;
40
+ /**
41
+ * If set, the column will only be visible according to the specified media query
42
+ */
43
+ visibleMediaQuery?: string | ((theme: MantineTheme) => string);
44
+ /**
45
+ * Optional class name passed to the column title
46
+ */
47
+ titleClassName?: string;
48
+ /**
49
+ * Optional style passed to the column title
50
+ */
51
+ titleStyle?: CSSProperties;
52
+ /**
53
+ * Optional style passed to the column title; see https://mantine.dev/styles/sx/
54
+ */
55
+ titleSx?: Sx;
56
+ /**
57
+ * Optional class name passed to each data cell in the column; can be a string or a function
58
+ * receiving the current record and its index as arguments and returning a string
59
+ */
60
+ cellsClassName?: string | ((record: T, recordIndex: number) => string | undefined);
61
+ /**
62
+ * Optional style passed to each data cell in the column; can be a CSS properties object or
63
+ * a function receiving the current record and its index as arguments and returning a CSS properties object
64
+ */
65
+ cellsStyle?: CSSProperties | ((record: T, recordIndex: number) => CSSProperties | undefined);
66
+ /**
67
+ * Optional style passed to each data cell in the column; see https://mantine.dev/styles/sx/
68
+ */
69
+ cellsSx?: Sx;
70
+ };
71
+ //# sourceMappingURL=DataTableColumn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableColumn.d.ts","sourceRoot":"","sources":["../../types/DataTableColumn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,oBAAY,eAAe,CAAC,CAAC,IAAI;IAC/B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAEjD;;OAEG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAC;IAE7C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC,CAAC;IAE/D;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC;IAEb;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,CAAC;IAEnF;;;OAGG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,KAAK,aAAa,GAAG,SAAS,CAAC,CAAC;IAE7F;;OAEG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC;CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type DataTableColumnTextAlignment = 'left' | 'center' | 'right';
2
+ //# sourceMappingURL=DataTableColumnTextAlignment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableColumnTextAlignment.d.ts","sourceRoot":"","sources":["../../types/DataTableColumnTextAlignment.ts"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC"}
@@ -0,0 +1,48 @@
1
+ import type { MantineColor } from '@mantine/core';
2
+ import type { ReactNode } from 'react';
3
+ export declare type DataTableContextMenuItemProps = ({
4
+ /**
5
+ * Unique item key
6
+ */
7
+ key: string;
8
+ } & ({
9
+ /**
10
+ * If true, insert an actions divider
11
+ */
12
+ divider: true;
13
+ icon?: never;
14
+ title?: never;
15
+ color?: never;
16
+ hidden?: never;
17
+ disabled?: never;
18
+ onClick?: never;
19
+ } | {
20
+ divider?: never;
21
+ /**
22
+ * Item icon
23
+ */
24
+ icon?: ReactNode;
25
+ /**
26
+ * Item title; if not present, one will be generated by "humanizing"
27
+ * the provided item key
28
+ * (i.e. `viewRecord` -> `View record`)
29
+ */
30
+ title?: ReactNode;
31
+ /**
32
+ * Item color
33
+ */
34
+ color?: MantineColor;
35
+ /**
36
+ * if true, the menu item will not be shown
37
+ */
38
+ hidden?: boolean;
39
+ /**
40
+ * if true, the menu item will be disabled
41
+ */
42
+ disabled?: boolean;
43
+ /**
44
+ * Function to call when the menu item is clicked
45
+ */
46
+ onClick: () => void;
47
+ }));
48
+ //# sourceMappingURL=DataTableContextMenuItemProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableContextMenuItemProps.d.ts","sourceRoot":"","sources":["../../types/DataTableContextMenuItemProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,oBAAY,6BAA6B,GACvC,CAAE;IACE;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,CACA;IACE;;OAEG;IACH,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACE,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CACJ,CAAA,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { MantineNumberSize, MantineShadow } from '@mantine/core';
2
+ import type { DataTableContextMenuItemProps } from './DataTableContextMenuItemProps';
3
+ export declare type DataTableContextMenuProps<T> = {
4
+ /**
5
+ * Context menu trigger; defaults to `rightClick` for classic behavior
6
+ */
7
+ trigger?: 'rightClick' | 'click';
8
+ /**
9
+ * Menu z-index; defaults to `3`
10
+ */
11
+ zIndex?: number;
12
+ /**
13
+ * Menu border radius; defaults to `xs`
14
+ */
15
+ borderRadius?: MantineNumberSize;
16
+ /**
17
+ * Menu shadow; defaults to `sm`
18
+ */
19
+ shadow?: MantineShadow;
20
+ /**
21
+ * Boolean or a function accepting the current record and its index as arguments and returning a boolean value;
22
+ * if true, the menu will not be shown
23
+ */
24
+ hidden?: boolean | ((record: T, recordIndex: number) => boolean);
25
+ /**
26
+ * Function accepting the current record and its index as arguments and returning the row menu items
27
+ */
28
+ items: (record: T, recordIndex: number) => DataTableContextMenuItemProps[];
29
+ };
30
+ //# sourceMappingURL=DataTableContextMenuProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableContextMenuProps.d.ts","sourceRoot":"","sources":["../../types/DataTableContextMenuProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,oBAAY,yBAAyB,CAAC,CAAC,IAAI;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAEjE;;OAEG;IACH,KAAK,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,KAAK,6BAA6B,EAAE,CAAC;CAC5E,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare type DataTableEmptyStateProps = {
3
+ /**
4
+ * Content to show when no records are available; the provided content
5
+ * will be overlaid and centered automatically
6
+ */
7
+ emptyState?: ReactNode;
8
+ noRecordsIcon?: never;
9
+ } | {
10
+ emptyState?: never;
11
+ /**
12
+ * Icon to show when no records are available
13
+ */
14
+ noRecordsIcon?: ReactNode;
15
+ };
16
+ //# sourceMappingURL=DataTableEmptyStateProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableEmptyStateProps.d.ts","sourceRoot":"","sources":["../../types/DataTableEmptyStateProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,oBAAY,wBAAwB,GAChC;IACE;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB,GACD;IACE,UAAU,CAAC,EAAE,KAAK,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { DefaultMantineColor, MantineNumberSize, MantineTheme } from '@mantine/core';
2
+ import { ReactNode } from 'react';
3
+ export declare type DataTableLoaderProps = {
4
+ /**
5
+ * Loader background blur (in pixels)
6
+ */
7
+ loaderBackgroundBlur?: number;
8
+ } & ({
9
+ loaderSize?: never;
10
+ loaderVariant?: never;
11
+ loaderColor?: never;
12
+ /**
13
+ * Custom loader component to use instead of default one
14
+ */
15
+ customLoader?: ReactNode;
16
+ } | {
17
+ /**
18
+ * Loader size; defaults to `lg`
19
+ */
20
+ loaderSize?: MantineNumberSize;
21
+ /**
22
+ * Loader variant
23
+ */
24
+ loaderVariant?: MantineTheme['loader'];
25
+ /**
26
+ * Loader color
27
+ */
28
+ loaderColor?: DefaultMantineColor;
29
+ customLoader?: never;
30
+ });
31
+ //# sourceMappingURL=DataTableLoaderProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableLoaderProps.d.ts","sourceRoot":"","sources":["../../types/DataTableLoaderProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,oBAAY,oBAAoB,GAAG;IACjC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,GAAG,CACA;IACE,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,GACD;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAEvC;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAElC,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,CACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { MantineNumberSize } from '@mantine/core';
2
+ export declare type DataTableOuterBorderProps = {
3
+ withBorder?: never;
4
+ borderRadius?: never;
5
+ } | {
6
+ /**
7
+ * If true, table will have border
8
+ */
9
+ withBorder: boolean;
10
+ /**
11
+ * Table border radius
12
+ */
13
+ borderRadius?: MantineNumberSize;
14
+ };
15
+ //# sourceMappingURL=DataTableOuterBorderProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableOuterBorderProps.d.ts","sourceRoot":"","sources":["../../types/DataTableOuterBorderProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,oBAAY,yBAAyB,GACjC;IACE,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,GACD;IACE;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare type DataTablePageSizeSelectorProps = {
2
+ onRecordsPerPageChange?: never;
3
+ recordsPerPageOptions?: never;
4
+ recordsPerPageLabel?: never;
5
+ } | {
6
+ /**
7
+ * Callback fired a new page size is selected
8
+ */
9
+ onRecordsPerPageChange: (recordsPerPage: number) => void;
10
+ /**
11
+ * Array of options to show in records per page selector
12
+ */
13
+ recordsPerPageOptions: number[];
14
+ /**
15
+ * Label for records per page selector
16
+ */
17
+ recordsPerPageLabel?: string;
18
+ };
19
+ //# sourceMappingURL=DataTablePageSizeSelectorProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTablePageSizeSelectorProps.d.ts","sourceRoot":"","sources":["../../types/DataTablePageSizeSelectorProps.ts"],"names":[],"mappings":"AAAA,oBAAY,8BAA8B,GACtC;IACE,sBAAsB,CAAC,EAAE,KAAK,CAAC;IAC/B,qBAAqB,CAAC,EAAE,KAAK,CAAC;IAC9B,mBAAmB,CAAC,EAAE,KAAK,CAAC;CAC7B,GACD;IACE;;OAEG;IACH,sBAAsB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IAEzD;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
@@ -0,0 +1,59 @@
1
+ import type { MantineColor, MantineNumberSize, MantineSize } from '@mantine/core';
2
+ import type { ReactNode } from 'react';
3
+ import { DataTablePageSizeSelectorProps } from './DataTablePageSizeSelectorProps';
4
+ export declare type DataTablePaginationProps = ({
5
+ page?: never;
6
+ onPageChange?: never;
7
+ totalRecords?: never;
8
+ recordsPerPage?: never;
9
+ paginationColor?: never;
10
+ paginationSize?: never;
11
+ loadingText?: never;
12
+ paginationText?: never;
13
+ paginationWrapBreakpoint?: never;
14
+ } | {
15
+ /**
16
+ * Current page number (1-based); if provided, a pagination component is shown
17
+ */
18
+ page: number;
19
+ /**
20
+ * Callback fired after change of each page
21
+ */
22
+ onPageChange: (page: number) => void;
23
+ /**
24
+ * Total number of records in the dataset
25
+ */
26
+ totalRecords: number | undefined;
27
+ /**
28
+ * Number of records per page
29
+ */
30
+ recordsPerPage: number;
31
+ /**
32
+ * Pagination component size; defaults to `sm`
33
+ */
34
+ paginationSize?: MantineSize;
35
+ /**
36
+ * Pagination component color; defaults to primary theme color
37
+ */
38
+ paginationColor?: MantineColor;
39
+ /**
40
+ * Text to show while records are loading
41
+ */
42
+ loadingText?: string;
43
+ /**
44
+ * Pagination text; defaults to ```({ from, to, totalRecords }) => `${from}-${to}/${totalRecords}`
45
+ * ```
46
+ */
47
+ paginationText?: (options: {
48
+ from: number;
49
+ to: number;
50
+ totalRecords: number;
51
+ }) => ReactNode;
52
+ /**
53
+ * Pagination wrap breakpints; defaults to `sm`.
54
+ * Below this breakpoint the content will be displayed on multiple lines;
55
+ * above it the content will be displayed on a single line.
56
+ */
57
+ paginationWrapBreakpoint?: MantineNumberSize;
58
+ }) & DataTablePageSizeSelectorProps;
59
+ //# sourceMappingURL=DataTablePaginationProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTablePaginationProps.d.ts","sourceRoot":"","sources":["../../types/DataTablePaginationProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF,oBAAY,wBAAwB,GAAG,CACnC;IACE,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,wBAAwB,CAAC,EAAE,KAAK,CAAC;CAClC,GACD;IACE;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,cAAc,CAAC,EAAE,WAAW,CAAC;IAE7B;;OAEG;IACH,eAAe,CAAC,EAAE,YAAY,CAAC;IAE/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IAE5F;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,iBAAiB,CAAC;CAC9C,CACJ,GACC,8BAA8B,CAAC"}
@@ -0,0 +1,86 @@
1
+ import type { DefaultProps, MantineShadow, MantineTheme, TableProps } from '@mantine/core';
2
+ import type { CSSProperties } from 'react';
3
+ import type { DataTableCellClickHandler } from './DataTableCellClickHandler';
4
+ import type { DataTableColumn } from './DataTableColumn';
5
+ import type { DataTableContextMenuProps } from './DataTableContextMenuProps';
6
+ import type { DataTableEmptyStateProps } from './DataTableEmptyStateProps';
7
+ import { DataTableLoaderProps } from './DataTableLoaderProps';
8
+ import type { DataTableOuterBorderProps } from './DataTableOuterBorderProps';
9
+ import type { DataTablePaginationProps } from './DataTablePaginationProps';
10
+ import type { DataTableRowExpansionProps } from './DataTableRowExpansionProps';
11
+ import type { DataTableSelectionProps } from './DataTableSelectionProps';
12
+ import type { DataTableSortProps } from './DataTableSortProps';
13
+ import type { DataTableVerticalAlignment } from './DataTableVerticalAlignment';
14
+ export declare type DataTableProps<T> = {
15
+ /**
16
+ * Table height; defaults to `100%`
17
+ */
18
+ height?: string | number;
19
+ /**
20
+ * Minimum table height
21
+ */
22
+ minHeight?: string | number;
23
+ /**
24
+ * `DataTable` component shadow
25
+ */
26
+ shadow?: MantineShadow;
27
+ /**
28
+ * If true, columns will have vertical borders
29
+ */
30
+ withColumnBorders?: boolean;
31
+ /**
32
+ * Table border color, applied to the outer border, the header bottom border, and the pagination
33
+ * footer top border; defaults to
34
+ * `(theme) => (theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.colors.gray[3])`
35
+ */
36
+ borderColor?: string | ((theme: MantineTheme) => string);
37
+ /**
38
+ * Row border color; defaults to
39
+ * `(theme) => (theme.fn.rgba(theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.colors.gray[3], 0.65))`
40
+ */
41
+ rowBorderColor?: string | ((theme: MantineTheme) => string);
42
+ /**
43
+ * If true, the user will not be able to select text
44
+ */
45
+ textSelectionDisabled?: boolean;
46
+ /**
47
+ * Vertical alignment for row cells; defaults to `center`
48
+ */
49
+ verticalAlignment?: DataTableVerticalAlignment;
50
+ /**
51
+ * If true, will show a loader with semi-transparent background, centered over the table
52
+ */
53
+ fetching?: boolean;
54
+ /**
55
+ * Visible columns
56
+ */
57
+ columns: DataTableColumn<T>[];
58
+ /**
59
+ * Accessor to use as unique record key; you can use dot-notation for nested objects property drilling
60
+ * (i.e. `department.name` or `department.company.name`);
61
+ * defaults to `id`
62
+ */
63
+ idAccessor?: string;
64
+ /**
65
+ * Visible records; the `DataTable` component will try to infer its row type from here
66
+ */
67
+ records?: T[];
68
+ /**
69
+ * Text to show on empty state and pagination footer when no records are available
70
+ */
71
+ noRecordsText?: string;
72
+ /**
73
+ * Function to call when a row cell is clicked
74
+ */
75
+ onCellClick?: DataTableCellClickHandler<T>;
76
+ /**
77
+ * Function to call when a row is clicked, accepting the current record and its index in `records`
78
+ */
79
+ onRowClick?: (record: T, recordIndex: number) => void;
80
+ /**
81
+ * Defines a context-menu to show when user right-clicks or clicks on a row
82
+ */
83
+ rowContextMenu?: DataTableContextMenuProps<T>;
84
+ rowExpansion?: DataTableRowExpansionProps<T>;
85
+ } & Pick<TableProps, 'striped' | 'highlightOnHover' | 'horizontalSpacing' | 'verticalSpacing' | 'fontSize'> & Omit<DefaultProps<'root' | 'header' | 'pagination', CSSProperties>, 'unstyled' | 'p' | 'px' | 'py' | 'pt' | 'pb' | 'pl' | 'pr'> & DataTableOuterBorderProps & DataTableLoaderProps & DataTableEmptyStateProps & DataTablePaginationProps & DataTableSortProps & DataTableSelectionProps<T>;
86
+ //# sourceMappingURL=DataTableProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableProps.d.ts","sourceRoot":"","sources":["../../types/DataTableProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,oBAAY,cAAc,CAAC,CAAC,IAAI;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC,CAAC;IAEzD;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC,CAAC;IAE5D;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,iBAAiB,CAAC,EAAE,0BAA0B,CAAC;IAE/C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IAEd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;IAE3C;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtD;;OAEG;IACH,cAAc,CAAC,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;IAE9C,YAAY,CAAC,EAAE,0BAA0B,CAAC,CAAC,CAAC,CAAC;CAC9C,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,UAAU,CAAC,GACzG,IAAI,CACF,YAAY,CAAC,MAAM,GAAG,QAAQ,GAAG,YAAY,EAAE,aAAa,CAAC,EAC7D,UAAU,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAC3D,GACD,yBAAyB,GACzB,oBAAoB,GACpB,wBAAwB,GACxB,wBAAwB,GACxB,kBAAkB,GAClB,uBAAuB,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { CollapseProps } from '@mantine/core';
2
+ export declare type DataTableRowExpansionCollapseProps = Pick<CollapseProps, 'animateOpacity' | 'transitionDuration' | 'transitionTimingFunction'>;
3
+ //# sourceMappingURL=DataTableRowExpansionCollapseProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableRowExpansionCollapseProps.d.ts","sourceRoot":"","sources":["../../types/DataTableRowExpansionCollapseProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,oBAAY,kCAAkC,GAAG,IAAI,CACnD,aAAa,EACb,gBAAgB,GAAG,oBAAoB,GAAG,0BAA0B,CACrE,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { Dispatch, ReactNode, SetStateAction } from 'react';
2
+ import type { DataTableRowExpansionCollapseProps } from './DataTableRowExpansionCollapseProps';
3
+ export declare type DataTableRowExpansionProps<T> = {
4
+ /**
5
+ * Defines when rows should expand; defaults to `click`
6
+ */
7
+ trigger?: 'click' | 'always' | 'never';
8
+ /**
9
+ * If true, multiple rows can be expanded at the same time
10
+ */
11
+ allowMultiple?: boolean;
12
+ /**
13
+ * Function defining which records will be initially expanded;
14
+ * does nothing if `trigger === 'always'`
15
+ */
16
+ initiallyExpanded?: (record: T, recordIndex: number) => boolean;
17
+ /**
18
+ * Additional properties passed to the Mantine Collapse component wrapping the custom content
19
+ */
20
+ collapseProps?: DataTableRowExpansionCollapseProps;
21
+ /**
22
+ * An object defining the row expansion behavior in controlled mode
23
+ */
24
+ expanded?: {
25
+ /**
26
+ * Currently expanded record IDs
27
+ */
28
+ recordIds: unknown[];
29
+ /**
30
+ * Callback fired when expanded records change;
31
+ * receives an array containing the newly expanded record IDs
32
+ */
33
+ onRecordIdsChange: Dispatch<SetStateAction<any[]>> | ((recordIds: unknown[]) => void);
34
+ };
35
+ /**
36
+ * Function returning the custom content to be lazily rendered for an expanded row;
37
+ * accepts the current record and a `collapse()` callback that can be used to collapse the expanded row
38
+ */
39
+ content: (props: {
40
+ record: T;
41
+ recordIndex: number;
42
+ collapse: () => void;
43
+ }) => ReactNode;
44
+ };
45
+ //# sourceMappingURL=DataTableRowExpansionProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableRowExpansionProps.d.ts","sourceRoot":"","sources":["../../types/DataTableRowExpansionProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE/F,oBAAY,0BAA0B,CAAC,CAAC,IAAI;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAEvC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;IAEhE;;OAEG;IACH,aAAa,CAAC,EAAE,kCAAkC,CAAC;IAEnD;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT;;WAEG;QACH,SAAS,EAAE,OAAO,EAAE,CAAC;QAErB;;;WAGG;QAEH,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC,CAAC;KACvF,CAAC;IAEF;;;OAGG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,SAAS,CAAC;CACzF,CAAC"}
@@ -0,0 +1,20 @@
1
+ export declare type DataTableSelectionProps<T> = {
2
+ selectedRecords?: never;
3
+ onSelectedRecordsChange?: never;
4
+ isRecordSelectable?: never;
5
+ } | {
6
+ /**
7
+ * Currently-selected records
8
+ */
9
+ selectedRecords: T[];
10
+ /**
11
+ * Callback fired when selected records change
12
+ */
13
+ onSelectedRecordsChange?: (selectedRecords: T[]) => void;
14
+ /**
15
+ * A function used to determine whether a certain record is selectable;
16
+ * if the function returns false, the row selection checkbox is disabled
17
+ */
18
+ isRecordSelectable?: (record: T, index: number) => boolean;
19
+ };
20
+ //# sourceMappingURL=DataTableSelectionProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableSelectionProps.d.ts","sourceRoot":"","sources":["../../types/DataTableSelectionProps.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB,CAAC,CAAC,IACjC;IACE,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,uBAAuB,CAAC,EAAE,KAAK,CAAC;IAChC,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B,GACD;IACE;;OAEG;IACH,eAAe,EAAE,CAAC,EAAE,CAAC;IAErB;;OAEG;IACH,uBAAuB,CAAC,EAAE,CAAC,eAAe,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IAEzD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CAC5D,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { DataTableSortStatus } from './DataTableSortStatus';
2
+ export declare type DataTableSortProps = {
3
+ sortStatus?: never;
4
+ onSortStatusChange?: never;
5
+ } | {
6
+ /**
7
+ * Current sort status (sort column accessor & direction)
8
+ */
9
+ sortStatus: DataTableSortStatus;
10
+ /**
11
+ * Callback fired after change of sort status
12
+ */
13
+ onSortStatusChange?: (sortStatus: DataTableSortStatus) => void;
14
+ };
15
+ //# sourceMappingURL=DataTableSortProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableSortProps.d.ts","sourceRoot":"","sources":["../../types/DataTableSortProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,oBAAY,kBAAkB,GAC1B;IACE,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B,GACD;IACE;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAChE,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare type DataTableSortStatus = {
2
+ /**
3
+ * Sort column accessor; you can use dot-notation for nested objects property drilling
4
+ * (i.e. `department.name` or `department.company.name`)
5
+ */
6
+ columnAccessor: string;
7
+ /**
8
+ * Sort direction; `asc` for ascending or `desc` for descending
9
+ */
10
+ direction: 'asc' | 'desc';
11
+ };
12
+ //# sourceMappingURL=DataTableSortStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableSortStatus.d.ts","sourceRoot":"","sources":["../../types/DataTableSortStatus.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB,GAAG;IAChC;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare type DataTableVerticalAlignment = 'top' | 'center' | 'bottom';
2
+ //# sourceMappingURL=DataTableVerticalAlignment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTableVerticalAlignment.d.ts","sourceRoot":"","sources":["../../types/DataTableVerticalAlignment.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ export * from './DataTableCellClickHandler';
2
+ export * from './DataTableColumn';
3
+ export * from './DataTableColumnTextAlignment';
4
+ export * from './DataTableContextMenuItemProps';
5
+ export * from './DataTableContextMenuProps';
6
+ export * from './DataTableEmptyStateProps';
7
+ export * from './DataTableOuterBorderProps';
8
+ export * from './DataTablePaginationProps';
9
+ export * from './DataTableProps';
10
+ export * from './DataTableRowExpansionCollapseProps';
11
+ export * from './DataTableRowExpansionProps';
12
+ export * from './DataTableSelectionProps';
13
+ export * from './DataTableSortProps';
14
+ export * from './DataTableSortStatus';
15
+ export * from './DataTableVerticalAlignment';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare type WithOptional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
2
+ export declare type WithRequired<Type, Key extends keyof Type> = Type & {
3
+ [Property in Key]-?: Type[Property];
4
+ };
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../types/utils.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAElF,oBAAY,YAAY,CAAC,IAAI,EAAE,GAAG,SAAS,MAAM,IAAI,IAAI,IAAI,GAAG;KAC7D,QAAQ,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;CACpC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mantine-datatable",
3
- "version": "1.7.12",
3
+ "version": "1.7.14",
4
4
  "description": "Datatable component for Mantine UI, featuring asynchronous data loading support, pagination, multple rows selection, column sorting, custom cell data rendering, row context menu, row expansion and more",
5
5
  "keywords": [
6
6
  "ui",
@@ -40,8 +40,8 @@
40
40
  "lint": "eslint *.ts* && tsc --noEmit"
41
41
  },
42
42
  "devDependencies": {
43
- "@mantine/core": "^5.6.3",
44
- "@mantine/hooks": "^5.6.3",
43
+ "@mantine/core": "^5.6.4",
44
+ "@mantine/hooks": "^5.6.4",
45
45
  "@types/react": "^18.0.24",
46
46
  "@types/react-dom": "^18.0.8",
47
47
  "esbuild": "^0.15.12",
@@ -50,8 +50,8 @@
50
50
  "typescript": "^4.8.4"
51
51
  },
52
52
  "peerDependencies": {
53
- "@mantine/core": "^5.6.3",
54
- "@mantine/hooks": "^5.6.3",
53
+ "@mantine/core": "^5.6.4",
54
+ "@mantine/hooks": "^5.6.4",
55
55
  "react": "^18.2.0"
56
56
  }
57
57
  }