@chumsinc/sortable-tables 2.0.7 → 2.0.9
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/CHANGELOG.md +23 -1
- package/dist/DataTableCell.d.ts +5 -3
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
- package/src/index.tsx +18 -3
- package/src/types.ts +2 -1
- package/test/TestTable.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
9
|
|
|
10
|
-
#### [v2.0.
|
|
10
|
+
#### [v2.0.9](https://github.com/ChumsInc/sortable-tables/compare/v2.0.8...v2.0.9)
|
|
11
|
+
|
|
12
|
+
> 2025-05-21
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Commits
|
|
18
|
+
|
|
19
|
+
- [`08001a6`](https://github.com/ChumsInc/sortable-tables/commit/08001a6604fea9ae723147f36a54261d798153c8) fix: add correct fields type for SortableTableProps, npm updates
|
|
20
|
+
|
|
21
|
+
#### [v2.0.8](https://github.com/ChumsInc/sortable-tables/compare/v2.0.7...v2.0.8) - 2025-03-13
|
|
22
|
+
|
|
23
|
+
> 2025-03-13
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Commits
|
|
29
|
+
|
|
30
|
+
- [`ad120cd`](https://github.com/ChumsInc/sortable-tables/commit/ad120cd7f521d194613370aa91befd24582aef5d) fix: allow React.ReactNode for rowsPerPage label
|
|
31
|
+
|
|
32
|
+
#### [v2.0.7](https://github.com/ChumsInc/sortable-tables/compare/v2.0.6...v2.0.7) - 2025-02-27
|
|
11
33
|
|
|
12
34
|
> 2025-02-27
|
|
13
35
|
|
package/dist/DataTableCell.d.ts
CHANGED
|
@@ -63,6 +63,8 @@ export default function DataTableCell<T = unknown>({ field, row, className, as,
|
|
|
63
63
|
inert?: boolean | undefined;
|
|
64
64
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
65
65
|
is?: string | undefined;
|
|
66
|
+
exportparts?: string | undefined;
|
|
67
|
+
part?: string | undefined;
|
|
66
68
|
"aria-activedescendant"?: string | undefined;
|
|
67
69
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
68
70
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -137,7 +139,7 @@ export default function DataTableCell<T = unknown>({ field, row, className, as,
|
|
|
137
139
|
onBlurCapture?: React.FocusEventHandler<HTMLTableCellElement> | undefined;
|
|
138
140
|
onChange?: React.FormEventHandler<HTMLTableCellElement> | undefined;
|
|
139
141
|
onChangeCapture?: React.FormEventHandler<HTMLTableCellElement> | undefined;
|
|
140
|
-
onBeforeInput?: React.
|
|
142
|
+
onBeforeInput?: React.InputEventHandler<HTMLTableCellElement> | undefined;
|
|
141
143
|
onBeforeInputCapture?: React.FormEventHandler<HTMLTableCellElement> | undefined;
|
|
142
144
|
onInput?: React.FormEventHandler<HTMLTableCellElement> | undefined;
|
|
143
145
|
onInputCapture?: React.FormEventHandler<HTMLTableCellElement> | undefined;
|
|
@@ -187,8 +189,6 @@ export default function DataTableCell<T = unknown>({ field, row, className, as,
|
|
|
187
189
|
onProgressCapture?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
|
|
188
190
|
onRateChange?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
|
|
189
191
|
onRateChangeCapture?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
|
|
190
|
-
onResize?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
|
|
191
|
-
onResizeCapture?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
|
|
192
192
|
onSeeked?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
|
|
193
193
|
onSeekedCapture?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
|
|
194
194
|
onSeeking?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
|
|
@@ -269,6 +269,8 @@ export default function DataTableCell<T = unknown>({ field, row, className, as,
|
|
|
269
269
|
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLTableCellElement> | undefined;
|
|
270
270
|
onScroll?: React.UIEventHandler<HTMLTableCellElement> | undefined;
|
|
271
271
|
onScrollCapture?: React.UIEventHandler<HTMLTableCellElement> | undefined;
|
|
272
|
+
onScrollEnd?: React.UIEventHandler<HTMLTableCellElement> | undefined;
|
|
273
|
+
onScrollEndCapture?: React.UIEventHandler<HTMLTableCellElement> | undefined;
|
|
272
274
|
onWheel?: React.WheelEventHandler<HTMLTableCellElement> | undefined;
|
|
273
275
|
onWheelCapture?: React.WheelEventHandler<HTMLTableCellElement> | undefined;
|
|
274
276
|
onAnimationStart?: React.AnimationEventHandler<HTMLTableCellElement> | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export { default as SortableTableHead } from './SortableTableHead';
|
|
|
7
7
|
export { default as SortableTableTH } from './SortableTableTH';
|
|
8
8
|
export { default as RowsPerPage, defaultRowsPerPageValues } from './RowsPerPage';
|
|
9
9
|
export { default as TablePagination } from './TablePagination';
|
|
10
|
-
export type { DataTableHeadProps, DataTableField, DataTableTHProps, DataTableClassNames, DataTableProps, SortableTableField, DataTableRowProps, DataTableTBodyProps, SortableTableTHProps, SortableTableHeadProps, SortProps, SortableTableProps, UISize, UIFlexAlign, TablePaginationProps, RowsPerPageProps } from './types';
|
|
10
|
+
export type { DataTableHeadProps, DataTableField, DataTableTHProps, DataTableClassNames, DataTableProps, SortableTableField, DataTableRowProps, DataTableTBodyProps, SortableTableTHProps, SortableTableHeadProps, SortProps, SortableTableProps, UISize, UIFlexAlign, TablePaginationProps, RowsPerPageProps, UITableSize, DataTableCellProps } from './types';
|
package/dist/types.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export interface DataTableRowProps<T = unknown> extends Omit<TableHTMLAttributes
|
|
|
70
70
|
onClick?: (row?: T) => T | void;
|
|
71
71
|
}
|
|
72
72
|
export interface SortableTableProps<T = unknown> extends DataTableProps<T> {
|
|
73
|
+
fields: SortableTableField<T>[];
|
|
73
74
|
currentSort: SortProps<T>;
|
|
74
75
|
onChangeSort: (sort: SortProps<T>) => void;
|
|
75
76
|
}
|
|
@@ -87,7 +88,7 @@ export interface SortableTableTHProps<T = unknown> extends Omit<DataTableTHProps
|
|
|
87
88
|
export interface RowsPerPageProps extends Omit<HTMLAttributes<HTMLSelectElement>, 'onChange'> {
|
|
88
89
|
value: number;
|
|
89
90
|
pageValues?: number[];
|
|
90
|
-
label?: string;
|
|
91
|
+
label?: string | React.ReactNode;
|
|
91
92
|
size?: UISize;
|
|
92
93
|
className?: string;
|
|
93
94
|
onChange: (value: number) => void;
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -8,7 +8,22 @@ export {default as SortableTableTH} from './SortableTableTH';
|
|
|
8
8
|
export {default as RowsPerPage, defaultRowsPerPageValues} from './RowsPerPage';
|
|
9
9
|
export {default as TablePagination} from './TablePagination';
|
|
10
10
|
export type {
|
|
11
|
-
DataTableHeadProps,
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
DataTableHeadProps,
|
|
12
|
+
DataTableField,
|
|
13
|
+
DataTableTHProps,
|
|
14
|
+
DataTableClassNames,
|
|
15
|
+
DataTableProps,
|
|
16
|
+
SortableTableField,
|
|
17
|
+
DataTableRowProps,
|
|
18
|
+
DataTableTBodyProps,
|
|
19
|
+
SortableTableTHProps,
|
|
20
|
+
SortableTableHeadProps,
|
|
21
|
+
SortProps,
|
|
22
|
+
SortableTableProps,
|
|
23
|
+
UISize,
|
|
24
|
+
UIFlexAlign,
|
|
25
|
+
TablePaginationProps,
|
|
26
|
+
RowsPerPageProps,
|
|
27
|
+
UITableSize,
|
|
28
|
+
DataTableCellProps
|
|
14
29
|
} from './types';
|
package/src/types.ts
CHANGED
|
@@ -88,6 +88,7 @@ export interface DataTableRowProps<T = unknown> extends Omit <TableHTMLAttribute
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export interface SortableTableProps<T = unknown> extends DataTableProps<T> {
|
|
91
|
+
fields: SortableTableField<T>[];
|
|
91
92
|
currentSort: SortProps<T>;
|
|
92
93
|
onChangeSort: (sort: SortProps<T>) => void;
|
|
93
94
|
}
|
|
@@ -108,7 +109,7 @@ export interface SortableTableTHProps<T = unknown> extends Omit<DataTableTHProps
|
|
|
108
109
|
export interface RowsPerPageProps extends Omit<HTMLAttributes<HTMLSelectElement>, 'onChange'> {
|
|
109
110
|
value: number;
|
|
110
111
|
pageValues?: number[];
|
|
111
|
-
label?: string;
|
|
112
|
+
label?: string|React.ReactNode;
|
|
112
113
|
size?: UISize;
|
|
113
114
|
className?: string;
|
|
114
115
|
onChange: (value: number) => void;
|
package/test/TestTable.tsx
CHANGED